iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://static.nyse.com/cms/41.0.1/chunks/cms-components/nav-flyout/Main-CG-JzQxK.js
var Ze=Object.defineProperty;var et=(e,r,t)=>r in e?Ze(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t;var y=(e,r,t)=>(et(e,typeof r!="symbol"?r+"":r,t),t);import{b as F,r as l,c as tt}from"../../node_modules/@tanstack/react-query/build/lib/index-C410icEk.js";import{h as Te,b as rt,j as p,c as C,d as Fe,e as nt,f as ot,g as st}from"../../node_modules/@theice/sandstorm-widgets-nyse-website/dist/QuotePage-CsNEa6hD.js";import{I as at}from"../bigfoot/Main-3SM3LJeo.js";import{u as ge}from"../content-surfacing/Main-DZMfub2H.js";import{d as ye,c as it,T as ut}from"../bighead/Main-BQVS_npA.js";import{D as ct}from"../banner/Main-DfP1SMhi.js";import{B as lt}from"../ad-hoc-ex-date-dividends/Main-B24obMFX.js";import{M as dt}from"../bell-request/Main-DGYuDVI4.js";import{A as pt}from"../../__generated__/components/demos-Bw_3mhO9.js";import{_ as A}from"../cds-settlement-prices-icc/Main-Vw4kVivB.js";var Le=F.createContext(null);function ft(e){e()}var $e=ft,ht=function(r){return $e=r},vt=function(){return $e};function mt(){var e=vt(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e(function(){for(var o=r;o;)o.callback(),o=o.next})},get:function(){for(var o=[],n=r;n;)o.push(n),n=n.next;return o},subscribe:function(o){var n=!0,a=t={callback:o,next:null,prev:t};return a.prev?a.prev.next=a:r=a,function(){!n||r===null||(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:r=a.next)}}}}var Ce={notify:function(){},get:function(){return[]}};function je(e,r){var t,s=Ce;function o(c){return h(),s.subscribe(c)}function n(){s.notify()}function a(){u.onStateChange&&u.onStateChange()}function i(){return!!t}function h(){t||(t=r?r.addNestedSub(a):e.subscribe(a),s=mt())}function d(){t&&(t(),t=void 0,s.clear(),s=Ce)}var u={addNestedSub:o,notifyNestedSubs:n,handleChangeWrapper:a,isSubscribed:i,trySubscribe:h,tryUnsubscribe:d,getListeners:function(){return s}};return u}var Ae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?l.useLayoutEffect:l.useEffect;function gt(e){var r=e.store,t=e.context,s=e.children,o=l.useMemo(function(){var i=je(r);return{store:r,subscription:i}},[r]),n=l.useMemo(function(){return r.getState()},[r]);Ae(function(){var i=o.subscription;return i.onStateChange=i.notifyNestedSubs,i.trySubscribe(),n!==r.getState()&&i.notifyNestedSubs(),function(){i.tryUnsubscribe(),i.onStateChange=null}},[o,n]);var a=t||Le;return F.createElement(a.Provider,{value:o},s)}function oe(e,r){if(e==null)return{};var t={},s=Object.keys(e),o,n;for(n=0;n=0)&&(t[o]=e[o]);return t}var De={exports:{}},v={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var se=60103,ae=60106,Y=60107,V=60108,z=60114,G=60109,W=60110,K=60112,X=60113,Me=60120,Q=60115,J=60116,Ue=60121,qe=60122,ke=60117,He=60129,Be=60131;if(typeof Symbol=="function"&&Symbol.for){var M=Symbol.for;se=M("react.element"),ae=M("react.portal"),Y=M("react.fragment"),V=M("react.strict_mode"),z=M("react.profiler"),G=M("react.provider"),W=M("react.context"),K=M("react.forward_ref"),X=M("react.suspense"),Me=M("react.suspense_list"),Q=M("react.memo"),J=M("react.lazy"),Ue=M("react.block"),qe=M("react.server.block"),ke=M("react.fundamental"),He=M("react.debug_trace_mode"),Be=M("react.legacy_hidden")}function _(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case se:switch(e=e.type,e){case Y:case z:case V:case X:case Me:return e;default:switch(e=e&&e.$$typeof,e){case W:case K:case J:case Q:case G:return e;default:return r}}case ae:return r}}}var yt=G,Mt=se,Et=K,St=Y,Pt=J,bt=Q,_t=ae,wt=z,xt=V,Tt=X;v.ContextConsumer=W;v.ContextProvider=yt;v.Element=Mt;v.ForwardRef=Et;v.Fragment=St;v.Lazy=Pt;v.Memo=bt;v.Portal=_t;v.Profiler=wt;v.StrictMode=xt;v.Suspense=Tt;v.isAsyncMode=function(){return!1};v.isConcurrentMode=function(){return!1};v.isContextConsumer=function(e){return _(e)===W};v.isContextProvider=function(e){return _(e)===G};v.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===se};v.isForwardRef=function(e){return _(e)===K};v.isFragment=function(e){return _(e)===Y};v.isLazy=function(e){return _(e)===J};v.isMemo=function(e){return _(e)===Q};v.isPortal=function(e){return _(e)===ae};v.isProfiler=function(e){return _(e)===z};v.isStrictMode=function(e){return _(e)===V};v.isSuspense=function(e){return _(e)===X};v.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Y||e===z||e===He||e===V||e===X||e===Me||e===Be||typeof e=="object"&&e!==null&&(e.$$typeof===J||e.$$typeof===Q||e.$$typeof===G||e.$$typeof===W||e.$$typeof===K||e.$$typeof===ke||e.$$typeof===Ue||e[0]===qe)};v.typeOf=_;De.exports=v;var Ct=De.exports,Ot=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],Nt=["reactReduxForwardedRef"],It=[],Rt=[null,null];function Ft(e,r){var t=e[1];return[r.payload,t+1]}function Oe(e,r,t){Ae(function(){return e.apply(void 0,r)},t)}function Lt(e,r,t,s,o,n,a){e.current=s,r.current=o,t.current=!1,n.current&&(n.current=null,a())}function $t(e,r,t,s,o,n,a,i,h,d){if(e){var u=!1,c=null,f=function(){if(!u){var O=r.getState(),b,E;try{b=s(O,o.current)}catch(w){E=w,c=w}E||(c=null),b===n.current?a.current||h():(n.current=b,i.current=b,a.current=!0,d({type:"STORE_UPDATED",payload:{error:E}}))}};t.onStateChange=f,t.trySubscribe(),f();var g=function(){if(u=!0,t.tryUnsubscribe(),t.onStateChange=null,c)throw c};return g}}var jt=function(){return[null,0]};function At(e,r){r===void 0&&(r={});var t=r,s=t.getDisplayName,o=s===void 0?function(P){return"ConnectAdvanced("+P+")"}:s,n=t.methodName,a=n===void 0?"connectAdvanced":n,i=t.renderCountProp,h=i===void 0?void 0:i,d=t.shouldHandleStateChanges,u=d===void 0?!0:d,c=t.storeKey,f=c===void 0?"store":c;t.withRef;var g=t.forwardRef,L=g===void 0?!1:g,O=t.context,b=O===void 0?Le:O,E=oe(t,Ot),w=b;return function(m){var x=m.displayName||m.name||"Component",T=o(x),ie=A({},E,{getDisplayName:o,methodName:a,renderCountProp:h,shouldHandleStateChanges:u,storeKey:f,displayName:T,wrappedComponentName:x,WrappedComponent:m}),D=E.pure;function ue(S){return e(S.dispatch,ie)}var Z=D?l.useMemo:function(S){return S()};function U(S){var $=l.useMemo(function(){var B=S.reactReduxForwardedRef,he=oe(S,Nt);return[S.context,B,he]},[S]),N=$[0],ee=$[1],k=$[2],ce=l.useMemo(function(){return N&&N.Consumer&&Ct.isContextConsumer(F.createElement(N.Consumer,null))?N:w},[N,w]),I=l.useContext(ce),H=!!S.store&&!!S.store.getState&&!!S.store.dispatch;I&&I.store;var R=H?S.store:I.store,le=l.useMemo(function(){return ue(R)},[R]),Se=l.useMemo(function(){if(!u)return Rt;var B=je(R,H?null:I.subscription),he=B.notifyNestedSubs.bind(B);return[B,he]},[R,H,I]),te=Se[0],Pe=Se[1],be=l.useMemo(function(){return H?I:A({},I,{subscription:te})},[H,I,te]),_e=l.useReducer(Ft,It,jt),Xe=_e[0],re=Xe[0],Qe=_e[1];if(re&&re.error)throw re.error;var we=l.useRef(),de=l.useRef(k),ne=l.useRef(),xe=l.useRef(!1),pe=Z(function(){return ne.current&&k===de.current?ne.current:le(R.getState(),k)},[R,re,k]);Oe(Lt,[de,we,xe,k,pe,ne,Pe]),Oe($t,[u,R,te,le,de,we,xe,ne,Pe,Qe],[R,te,le]);var fe=l.useMemo(function(){return F.createElement(m,A({},pe,{ref:ee}))},[ee,m,pe]),Je=l.useMemo(function(){return u?F.createElement(ce.Provider,{value:be},fe):fe},[ce,fe,be]);return Je}var j=D?F.memo(U):U;if(j.WrappedComponent=m,j.displayName=U.displayName=T,L){var q=F.forwardRef(function($,N){return F.createElement(j,A({},$,{reactReduxForwardedRef:N}))});return q.displayName=T,q.WrappedComponent=m,Te(q,m)}return Te(j,m)}}function Ne(e,r){return e===r?e!==0||r!==0||1/e===1/r:e!==e&&r!==r}function ve(e,r){if(Ne(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var t=Object.keys(e),s=Object.keys(r);if(t.length!==s.length)return!1;for(var o=0;o=0;s--){var o=r[s](e);if(o)return o}return function(n,a){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+a.wrappedComponentName+".")}}function rr(e,r){return e===r}function nr(e){var r=e===void 0?{}:e,t=r.connectHOC,s=t===void 0?At:t,o=r.mapStateToPropsFactories,n=o===void 0?Vt:o,a=r.mapDispatchToPropsFactories,i=a===void 0?Ht:a,h=r.mergePropsFactories,d=h===void 0?Xt:h,u=r.selectorFactory,c=u===void 0?er:u;return function(g,L,O,b){b===void 0&&(b={});var E=b,w=E.pure,P=w===void 0?!0:w,m=E.areStatesEqual,x=m===void 0?rr:m,T=E.areOwnPropsEqual,ie=T===void 0?ve:T,D=E.areStatePropsEqual,ue=D===void 0?ve:D,Z=E.areMergedPropsEqual,U=Z===void 0?ve:Z,j=oe(E,tr),q=me(g,n,"mapStateToProps"),S=me(L,i,"mapDispatchToProps"),$=me(O,d,"mergeProps");return s(c,A({methodName:"connect",getDisplayName:function(ee){return"Connect("+ee+")"},shouldHandleStateChanges:!!g,initMapStateToProps:q,initMapDispatchToProps:S,initMergeProps:$,pure:P,areStatesEqual:x,areOwnPropsEqual:ie,areStatePropsEqual:ue,areMergedPropsEqual:U},j))}}const or=nr();ht(tt.unstable_batchedUpdates);const sr=(e=[])=>e,ar=(e=!1,r)=>r.type==="OPEN_MENU"?!0:r.type==="CLOSE_MENU"?!1:e,ir=(e=null,r)=>r.type==="ACTIVATE_MENU_ITEM"?r.index:r.type==="DEACTIVATE_MENU_ITEM"?null:r.type==="TOGGLE_MENU_ITEM"?e===r.index?null:r.index:r.type==="CLOSE_MENU"?null:e,ur=(e="Scroll to top")=>e,cr=(e=!1)=>e,lr=rt({items:sr,isOpen:ar,activeMenuIndex:ir,scrollToTopLabel:ur,isScrollToTopEnabled:cr}),dr=e=>e.items,pr=e=>e.activeMenuIndex,Ve=e=>e.isOpen,fr=e=>e.isScrollToTopEnabled,hr=e=>e.scrollToTopLabel,vr=()=>(e,r)=>void e(Ve(r())?{type:"CLOSE_MENU"}:{type:"OPEN_MENU"}),mr=e=>({type:"TOGGLE_MENU_ITEM",index:e}),gr=e=>({type:"ACTIVATE_MENU_ITEM",index:e}),yr=()=>({type:"DEACTIVATE_MENU_ITEM"}),Mr=25,Er=34.75,Sr=l.forwardRef(({index:e,item:r,isActive:t=!1,isOtherItemActive:s,itemMouseIn:o,itemMouseOut:n,toggleItem:a,renderSlot:i,isNyse:h},d)=>{const u=ge(ye,!0),c=f=>(h?Er:Mr)*f;return p.jsxs("li",{ref:d,onMouseOver:()=>{o&&o(r.id)},onMouseLeave:()=>{n&&n(r.id)},style:u?{position:"relative",opacity:s?0:1,top:t?c(e)*-1:0}:{},children:[p.jsx("a",{href:r.linkUrl,onTouchEnd:f=>{r.partialUrl&&f.preventDefault(),a(e)},onClick:f=>{u&&r.partialUrl&&(f.preventDefault(),a(e))},children:r.name}),p.jsx("div",{className:C(" z-[1010] w-full overflow-hidden px-4 md:absolute md:inset-x-0 md:top-11 md:border-b md:border-solid md:border-gray-300 md:bg-white md:bg-gradient-to-b md:from-white md:to-gray-200 md:shadow-[0_3px_5px_rgba(0,0,0,0.1)] md:first:mt-5 lg:top-10 lg:px-16 xl:top-11",{block:t,hidden:!t}),children:i(r.id,{readOnly:!0})})]})}),Pr=({item:e,isAnyItemActive:r,renderSlot:t})=>{const s=ge(ye,!0),[o,n]=l.useState(!1);return p.jsxs("li",{className:C("[&>a]::after:hidden [&>a]:text-left [&>a]:text-primary",{"opacity-0":!s&&r,"opacity-100":!s&&!r}),children:[p.jsx("a",{href:e.linkUrl,onClick:a=>{a.preventDefault(),n(!0)},children:e.name}),o?p.jsx(ct,{isModal:!0,onClose:()=>n(!1),isOpen:!0,closeButton:!0,title:e.name,children:t(e.id,{readOnly:!0})}):null]})},br=({className:e,href:r,isAnyItemActive:t,text:s,onClick:o})=>{const n=ge(ye,!0);return p.jsx("li",{className:C(e,"[&>a]::after:hidden pl-4 [&>a]:text-left [&>a]:text-primary","[.nav_&>a]:inline-flex [.nav_&>a]:py-1",{"opacity-0":n&&t,"opacity-1":n&&!t}),children:p.jsx(lt,{type:"link",wide:!0,icon:p.jsx(dt,{}),iconPosition:"right",href:r,onClick:o,children:s})})},_r=6,wr=100;class ze extends l.Component{constructor(){super(...arguments);y(this,"rootElementRef",l.createRef());y(this,"_pos");y(this,"_lastPos");y(this,"interval");y(this,"_handleMouseMove",t=>{this._pos=[t.pageX,t.pageY]});y(this,"_handleMouseEnter",t=>{this._lastPos=this._pos=[t.pageX,t.pageY],this.interval=window.setInterval(this._checkDistance,wr)});y(this,"_handleMouseLeave",()=>{clearInterval(this.interval),this._lastPos=null,this._pos=null,this.props.onBlur&&this.props.onBlur()});y(this,"_checkDistance",()=>{this._lastPos&&this._pos&&(this._getDistance(this._lastPos,this._pos)<_r&&(this.props.onFocus&&this.props.onFocus(),clearInterval(this.interval)),this._lastPos=this._pos)})}componentDidMount(){const t=this.rootElementRef.current;if(!t)throw new Error("Missing root element!?");t.addEventListener("mousemove",this._handleMouseMove),t.addEventListener("mouseenter",this._handleMouseEnter),t.addEventListener("mouseleave",this._handleMouseLeave)}componentWillUnmount(){const t=this.rootElementRef.current;if(!t)throw new Error("Missing root element!?");t.removeEventListener("mousemove",this._handleMouseMove),t.removeEventListener("mouseenter",this._handleMouseEnter),t.removeEventListener("mouseleave",this._handleMouseLeave)}render(){const t=l.Children.only(this.props.children);return l.isValidElement(t)?l.cloneElement(t,{ref:this.rootElementRef}):null}_getDistance(t,s){const o=t[0]-s[0],n=t[1]-s[1];return Math.sqrt(Math.abs(o*o)+Math.abs(n*n))}}y(ze,"displayName","MouseFocusPoint");const xr=({offsetBottom:e=0,children:r})=>{const[t,s]=l.useState(null),o=l.useRef(null);l.useEffect(()=>{const a=()=>{const i=o.current,h=document.body.scrollHeight,d=i?i.getBoundingClientRect().height:0,u=window.pageYOffset>h-window.innerHeight-e+d;s(u?h-d-e:null)};return document.addEventListener("scroll",a),()=>document.removeEventListener("scroll",a)},[e]);const n=l.Children.only(r);return l.isValidElement(n)?l.cloneElement(n,{ref:o,style:t==null?void 0:{position:"absolute",top:"".concat(t,"px"),bottom:"auto"}}):null},Tr=80,Re=10,Cr=({label:e="Scroll to top"})=>{const[r,t]=l.useState(0),[s,o]=l.useState(null),[n]=it(s),a=l.useRef(null),i=c=>{c.preventDefault(),a.current==null&&(t(Re),a.current=window.setInterval(()=>{const f=window.pageYOffset-r;window.scrollTo(0,f),window.pageYOffset<=0?(a.current!=null&&clearInterval(a.current),a.current=null):t(r+Re)},10))},h=l.useMemo(()=>{const c=s,f=n;return c==null||f==null||(typeof window>"u"?!0:window.pageYOffsetc?c.getBoundingClientRect().height:0,u=()=>{if(typeof document>"u")return 0;const c=document.querySelectorAll(".page-subfooter")[0],f=document.querySelectorAll(".page-footer")[0];return d(c)+d(f)};return l.useEffect(()=>{const c=()=>o(window.pageYOffset);return document.addEventListener("scroll",c),()=>document.removeEventListener("scroll",c)},[]),p.jsx(xr,{offsetBottom:u(),children:p.jsx("div",{className:C({"alert-fixed-bottom":!0,"is-hidden":!h}),children:p.jsx(pt,{intent:"info",children:p.jsx("a",{href:"#scrollToTop",onClick:i,children:e})})})})},Or=Fe(ut);class Ge extends l.Component{constructor(){super(...arguments);y(this,"_toggleMenu",()=>{this.props.toggleMenu()});y(this,"_renderButtonItem",(t,s)=>{var o,n;return p.jsx(br,{href:(o=t.linkUrl)!=null?o:"",text:(n=t.name)!=null?n:"",isAnyItemActive:this.props.activeMenuIndex!==null,className:s===0?"sm:ml-auto md:right-[calc(100%/12)]":null},t.id)});y(this,"_renderMenuItem",(t,s)=>{const o=this.props.activeMenuIndex===s,n=this.props.activeMenuIndex!==null;return t.modal?p.jsx(Pr,{item:t,isAnyItemActive:n,renderSlot:this.props.renderSlot},t.id):p.jsx(ze,{onFocus:this._focusHandler(s),children:p.jsx(Sr,{index:s,item:t,isActive:o,isOtherItemActive:n?!o:!1,isNyse:this.props.isNyse,toggleItem:this.props.toggleItem,renderSlot:this.props.renderSlot})},t.id)});y(this,"_focusHandler",t=>()=>{this.props.itemMouseIn(t)});y(this,"_handleMouseLeave",()=>this.props.itemMouseOut());y(this,"_handleToggle",t=>{var s,o;t.preventDefault(),this.props.toggleMenu(),(o=(s=this.props).onToggle)==null||o.call(s)})}componentDidMount(){const t=this.props.toggleId?document.querySelector("#".concat(this.props.toggleId)):null;t&&t.addEventListener("click",this._toggleMenu)}componentWillUnmount(){const t=this.props.toggleId?document.querySelector("#".concat(this.props.toggleId)):null;t&&t.removeEventListener("click",this._toggleMenu)}render(){return p.jsxs("div",{children:[this.props.isOpen?p.jsx("div",{className:"xs-only:fixed xs-only:inset-0 xs-only:z-[900] xs-only:bg-black/50",onClick:this._handleToggle}):null,p.jsxs("ul",{className:C(this.getMobileBarClass(),{hidden:this.props.isOpen}),children:[p.jsx("li",{children:p.jsx("a",{href:"/",className:"text-3xl",children:p.jsx(at,{dark:!0})})}),p.jsx("li",{className:"float-right pt-2",children:p.jsx("a",{href:"#toggle",onClick:this._handleToggle,className:"p-0",children:p.jsx("span",{className:C("text-white",{"xs-only:[&>.hamburger-react]:hidden":this.props.isOpen}),children:p.jsx(Or,{toggled:this.props.isOpen})})})})]}),p.jsxs("ul",{className:C(this.getClass(),"xs-only:top-0 xs-only:h-screen xs-only:first:[&>li]:!block"),onMouseLeave:this._handleMouseLeave,children:[this.props.items.filter(t=>t.type!=="button").map(this._renderMenuItem),this.props.items.filter(t=>t.type==="button").map(this._renderButtonItem)]}),this.props.isScrollToTopEnabled?p.jsx(Cr,{label:this.props.scrollToTopLabel}):null]})}getMobileBarClass(){return C({"nav-mobile":!0,"is-flyout-open":this.props.isOpen})}getClass(){return C({nav:!0,"nav-flyout":!0,"is-open":this.props.isOpen})}}y(Ge,"displayName","NavFlyout");const Nr=nt({items:dr,isOpen:Ve,activeMenuIndex:pr,isScrollToTopEnabled:fr,scrollToTopLabel:hr}),Ir={itemMouseIn:gr,itemMouseOut:yr,toggleItem:mr,toggleMenu:vr},Rr=or(Nr,Ir),Fr=Rr(Ge);function We(e){var r=function(s){var o=s.dispatch,n=s.getState;return function(a){return function(i){return typeof i=="function"?i(o,n,e):a(i)}}};return r}var Ke=We();Ke.withExtraArgument=We;const Lr=Ke,$r=Fe(Lr),jr=ot($r),Ar=[],Dr=({items:e=Ar,toggleId:r,isNyse:t,isScrollToTopEnabled:s,scrollToTopLabel:o,demo:n,renderSlot:a})=>{const i=l.useRef(st(lr,{scrollToTopLabel:o!=null?o:"",isScrollToTopEnabled:s!=null?s:!1,items:e,activeMenuIndex:null,isOpen:!1},jr));return p.jsxs(gt,{store:i.current,children:[p.jsx(Fr,{toggleId:r,isNyse:!!t,renderSlot:a}),null]})},Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Dr},Symbol.toStringTag,{value:"Module"}));export{Xr as M,gt as P,or as c,Lr as t};