(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]||(globalThis["TURBOPACK_remote_chunk_loading_global_wx-next-web"]=[])).push(["object"==typeof document?document.currentScript:void 0,543836,e=>{"use strict";var t=Object.defineProperty,n=(e,n)=>t(e,"name",{value:n,configurable:!0}),o=!!("u">typeof window&&window.document&&window.document.createElement);function r(e,t,{checkForDefaultPrevented:o=!0}={}){return n(function(n){if(e?.(n),!1===o||!n||!n.defaultPrevented)return t?.(n)},"handleEvent")}function i(e){if(!o)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function a(e){return"IFRAME"===e.tagName}n(r,"composeEventHandlers"),n(function(e){if(!o)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),n(i,"getOwnerDocument"),n(function e(t,n=!1){let{activeElement:o}=i(t);if(!o?.nodeName)return null;if(a(o)&&o.contentDocument)return e(o.contentDocument.body,n);if(n){let e=o.getAttribute("aria-activedescendant");if(e){let t=i(o).getElementById(e);if(t)return t}}return o},"getActiveElement"),n(a,"isFrame"),e.s(["composeEventHandlers",0,r])},899300,e=>{"use strict";e.s(["IS_DEVELOPMENT",0,!1])},271359,e=>{"use strict";var t=e.i(247865),n=Object.defineProperty,o=(e,t)=>n(e,"name",{value:t,configurable:!0});function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return t=>{let n=!1,o=e.map(e=>{let o=r(e,t);return n||"function"!=typeof o||(n=!0),o});if(n)return()=>{for(let t=0;t{"use strict";var t=e.i(247865),n=e.i(902875),o=Object.defineProperty,r=(e,t)=>o(e,"name",{value:t,configurable:!0});function i(e,o=[]){let l=[];function s(o,i){let a=t.createContext(i);a.displayName=o+"Context";let s=l.length;l=[...l,i];let c=r(o=>{let{scope:r,children:i,...l}=o,c=r?.[e]?.[s]||a,u=t.useMemo(()=>l,Object.values(l));return(0,n.jsx)(c.Provider,{value:u,children:i})},"Provider");function u(n,r,l={}){let{optional:c=!1}=l,d=r?.[e]?.[s]||a,f=t.useContext(d);if(f)return f;if(void 0!==i)return i;if(!c)throw Error(`\`${n}\` must be used within \`${o}\``)}return c.displayName=o+"Provider",r(u,"useContext"),[c,u]}r(s,"createContext");let c=r(()=>{let n=l.map(e=>t.createContext(e));return r(function(o){let r=o?.[e]||n;return t.useMemo(()=>({[`__scope${e}`]:{...o,[e]:r}}),[o,r])},"useScope")},"createScope");return c.scopeName=e,[s,a(c,...o)]}function a(...e){let n=e[0];if(1===e.length)return n;let o=r(()=>{let o=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return r(function(e){let r=o.reduce((t,{useScope:n,scopeName:o})=>{let r=n(e)[`__scope${o}`];return{...t,...r}},{});return t.useMemo(()=>({[`__scope${n.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return o.scopeName=n.scopeName,o}r(function(e,o){let i=t.createContext(o);i.displayName=e+"Context";let a=r(e=>{let{children:o,...r}=e,a=t.useMemo(()=>r,Object.values(r));return(0,n.jsx)(i.Provider,{value:a,children:o})},"Provider");function l(n,r={}){let{optional:a=!1}=r,s=t.useContext(i);if(s)return s;if(void 0!==o)return o;if(!a)throw Error(`\`${n}\` must be used within \`${e}\``)}return a.displayName=e+"Provider",r(l,"useContext"),[a,l]},"createContext"),r(i,"createContextScope"),r(a,"composeContextScopes"),e.s(["createContextScope",0,i])},296994,e=>{"use strict";var t=e.i(247865),n=e.i(714035),o=Object.defineProperty,r=t[" useId ".trim().toString()]||(()=>void 0),i=0;function a(e){let[o,a]=t.useState(r());return(0,n.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}o(a,"name",{value:"useId",configurable:!0}),e.s(["useId",0,a])},312610,e=>{"use strict";var t=e.i(247865),n=e.i(714035),o=Object.defineProperty,r=(e,t)=>o(e,"name",{value:t,configurable:!0});function i(e,n){return t.useReducer((e,t)=>n[e][t]??e,e)}r(i,"useStateMachine");var a=r(e=>{let{present:n,children:o}=e,r=l(n),i="function"==typeof o?o({present:r.isPresent}):t.Children.only(o),a=c(r.ref,d(i));return"function"==typeof o||r.isPresent?t.cloneElement(i,{ref:a}):null},"Presence");function l(e){let[o,a]=t.useState(),l=t.useRef(null),s=t.useRef(e),c=t.useRef("none"),d=t.useRef(void 0),[f,p]=i(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return t.useEffect(()=>{"mounted"===f?(c.current=d.current??u(l.current),d.current=void 0):c.current="none"},[f]),(0,n.useLayoutEffect)(()=>{let t=l.current,n=s.current;if(n!==e){let o=c.current,r=u(t);e?(d.current=r,p("MOUNT")):"none"===r||t?.display==="none"?p("UNMOUNT"):n&&o!==r?p("ANIMATION_OUT"):p("UNMOUNT"),s.current=e}},[e,p]),(0,n.useLayoutEffect)(()=>{if(o){let e,t=o.ownerDocument.defaultView??window,n=r(n=>{let r=u(l.current).includes(CSS.escape(n.animationName));if(n.target===o&&r&&(p("ANIMATION_END"),!s.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},"handleAnimationEnd"),i=r(e=>{e.target===o&&(c.current=u(l.current))},"handleAnimationStart");return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}p("ANIMATION_END")},[o,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:t.useCallback(e=>{if(e){let t=getComputedStyle(e);l.current=t,d.current=u(t)}else l.current=null;a(e)},[])}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function c(...e){let n=t.useRef(e);return n.current=e,t.useCallback(e=>{let t=n.current,o=!1,r=t.map(t=>{let n=s(t,e);return o||"function"!=typeof n||(o=!0),n});if(o)return()=>{for(let e=0;e{"use strict";var t=e.i(247865),n=e.i(352825),o=e.i(982538),r=e.i(902875),i=Object.defineProperty,a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{let i=(0,o.createSlot)(`Primitive.${n}`),a=t.forwardRef((e,t)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,r.jsx)(o?i:n,{...a,ref:t})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{});function l(e,t){e&&n.flushSync(()=>e.dispatchEvent(t))}i(l,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0}),e.s(["Primitive",0,a,"dispatchDiscreteCustomEvent",0,l])},803976,e=>{"use strict";var t=e.i(247865),n=e.i(899300),o=e.i(714035),r=Object.defineProperty,i=t[" useEffectEvent ".trim().toString()],a=t[" useInsertionEffect ".trim().toString()];function l(e){if("function"==typeof i)return i(e);let n=t.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof a?a(()=>{n.current=e}):(0,o.useLayoutEffect)(()=>{n.current=e}),t.useMemo(()=>(...e)=>n.current?.(...e),[])}r(l,"name",{value:"useEffectEvent",configurable:!0});var s=Object.defineProperty,c=(e,t)=>s(e,"name",{value:t,configurable:!0}),u=t[" useInsertionEffect ".trim().toString()]||o.useLayoutEffect;function d({prop:e,defaultProp:o,onChange:r=c(()=>{},"onChange"),caller:i}){let[a,l,s]=f({defaultProp:o,onChange:r}),u=void 0!==e,m=u?e:a;if(n.IS_DEVELOPMENT){let n=t.useRef(void 0!==e);t.useEffect(()=>{let e=n.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}n.current=u},[u,i])}return[m,t.useCallback(t=>{if(u){let n=p(t)?t(e):t;n!==e&&s.current?.(n)}else l(t)},[u,e,l,s])]}function f({defaultProp:e,onChange:n}){let[o,r]=t.useState(e),i=t.useRef(o),a=t.useRef(n);return u(()=>{a.current=n},[n]),t.useEffect(()=>{i.current!==o&&(a.current?.(o),i.current=o)},[o,i]),[o,r,a]}function p(e){return"function"==typeof e}c(d,"useControllableState"),c(f,"useUncontrolledState"),c(p,"isFunction");var m=Symbol("RADIX:SYNC_STATE");c(function(e,o,r,i){let{prop:a,defaultProp:s,onChange:c,caller:u}=o,d=void 0!==a,f=l(c);if(n.IS_DEVELOPMENT){let e=t.useRef(void 0!==a);t.useEffect(()=>{let t=e.current;if(t!==d){let e=d?"controlled":"uncontrolled";console.warn(`${u} is changing from ${t?"controlled":"uncontrolled"} to ${e}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}e.current=d},[d,u])}let p=[{...r,state:s}];i&&p.push(i);let[g,v]=t.useReducer((t,n)=>{if(n.type===m)return{...t,state:n.state};let o=e(t,n);return d&&!Object.is(o.state,t.state)&&f(o.state),o},...p),h=g.state,x=t.useRef(h);t.useEffect(()=>{x.current!==h&&(x.current=h,d||f(h))},[h,x,d]);let y=t.useMemo(()=>void 0!==a?{...g,state:a}:g,[g,a]);return t.useEffect(()=>{d&&!Object.is(a,g.state)&&v({type:m,state:a})},[a,g.state,d]),[y,v]},"useControllableStateReducer"),e.s(["useControllableState",0,d],803976)},714035,e=>{"use strict";var t=e.i(247865),n=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,n])},329017,e=>{"use strict";e.i(288906);var t=e.i(247865),n=e.i(725287),o=e.i(546446),r=e.i(540768),i=e.i(682142),a=e.i(782937),l=e.i(695881),s=e.i(333350),c=e.i(64412),u=e.i(950771),d=e.i(537989),f=e.i(695203),p=e.i(158662),m=e.i(358273),g=e.i(122124),v=e.i(777638),h=e.i(727365),x=e.i(896363),y=e.i(924776),w=e.i(409628),b=e.i(605781);let C=(0,l.createLogger)("useTrackInteraction"),E=new Set(["city","locality","neighborhood","airport","postal","poi","ski","geocode","locid"]),P=new Set(["mapbox","twc-poi","twc-v3-loc-search","twc-v3-loc-point"]);e.s(["useTrackInteraction",0,()=>{let e=(0,o.useAtomValue)(d.pageIdAtom),l=(0,o.useAtomValue)(u.pageLocaleAtom),D=(0,o.useAtomValue)(f.deviceClassAtom),S=(0,o.useAtomValue)(p.experimentJoinListAtom),j=(0,n.usePathname)(),{location:R}=(0,c.useLocation)(),N=(0,y.useIsHightouchReady)(),I=(0,t.useCallback)(t=>{let n=(0,i.getCICookie)(),o=n?.["TWC-GeoIP-Country"]??(0,r.getCookie)("twc-location-country"),s=n?.["TWC-GeoIP-Region"]??(0,r.getCookie)("twc-location-region"),c=n?.["TWC-Privacy"]??(0,r.getCookie)("twc-privacy"),u=window.DprSdk?.getGdprConsentOptInsString()??"",d=window.DprSdk?.getCcpaSaleOptInString()??"",f=window.navigator?.globalPrivacyControl??!1,p=u?.includes("functional-technology")??!1,y=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,b=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,C=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),N=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),I=navigator?.cookieEnabled??!1,O=(0,r.getCookie)("partner")||"",A=(0,a.getPartnerByPattern)(O)??O,T=(0,m.getMetricsSession)(),_=T?.sessionId||"",k=new Date(T?.sessionStartTime||0).toISOString(),L=new Date,M=L.getHours(),U=w.WEEK_DAYS[L.getDay()]??"",F=e&&["article","video"].includes(e)?j?.split("/").slice(0,-1).join("/")??"":(0,g.getAnonymizedPath)(j??""),$=(0,h.normalizeWlocType)(R?.type),V=R?.featureSource??null;return{moduleId:t.moduleId??"",moduleTitle:t.moduleTitle??null,modulePosition:t.modulePosition,interactionType:t.interactionType??"",interactionElement:t.interactionElement??null,lockedContent:t.lockedContent??"false",destinationPageId:t.destinationPageId??null,upsellCampaign:t.upsellCampaign??null,upsellCreative:t.upsellCreative??null,upsellPlacement:t.upsellPlacement,pageId:e??"",url:F,referrer:document.referrer,locale:l,deviceClass:D,partner:A,sessionId:_,sessionStartTime:k,siteMode:"normal",dayOfWeek:U,hourOfDay:M,regime:c??"",cookiesEnabled:I,gpcSignalOptOut:f,functionalTechnologies:p,geographicallyRelevantAds:y,interestBasedAds:b,priv:u,privProducts:d,saleOfDataAuthorization:C,sensitiveDataAuthorization:N,campaign:(0,v.getCampaign)(),experimentJoinList:S,weatherMode:"normal",physicalCountry:o??"",physicalState:s??"",wlocCity:R?.city??null,wlocCountry:R?.countryCode??null,wlocState:R?.adminDistrictCode??null,wlocDMA:R?.dmaCd??null,wlocId:R?.placeId??null,wlocFeatureId:R?.featureId??null,wlocFeatureSource:null!=V&&P.has(V)?V:void 0,wlocTags:R?.tags?.length?(0,x.parseArrayToString)(R.tags):null,wlocType:null!==$&&E.has($)?$:void 0,samsungVersion:(0,v.getSamsungVersion)(),appVersion:"b4ee6b8a9b7a5cea26876dd24ff63a13c366fbff".slice(0,10)}},[e,l,D,S,j,R]);return(0,t.useCallback)(e=>{if(s.default){if(!N)return void C.warn('Hightouch: Event "interaction" skipped - SDK not ready');try{(0,b.trackInteraction)(I(e)),C.info('Hightouch: Event "interaction" tracked')}catch(e){C.error('Hightouch: Event "interaction" failed',{error:e})}}},[N,I])}])},598513,e=>{"use strict";var t=e.i(487709),n=e.i(737801),o=e.i(329017),r=e.i(247865);e.s(["useSendInteractionEvent",0,()=>{let e="interaction",i=(0,n.useEventAttributes)(),a=(0,o.useTrackInteraction)();return(0,r.useCallback)((n,o={})=>{a(n);let r={...i,...n};if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");try{if(window.mParticle?.logEvent?.(e,window.mParticle?.EventType?.Other,r),o.flushImmediately)try{window.mParticle?.upload?.()}catch{}console.debug(`MParticle: Event "${e}" tracked`,r)}catch(t){console.error(`MParticle: Event "${e}" failed`,t)}},[i,a])}])},18358,e=>{"use strict";var t=e.i(487709),n=e.i(737801),o=e.i(247865);e.s(["useTrackEvent",0,()=>{let e=(0,n.useEventAttributes)(),r=(0,o.useCallback)((n,o={},i={})=>{let a={...e,...o};if(!(0,t.canLogEvent)())return void console.warn("MParticle is not loaded");try{if(window.mParticle?.logEvent(n,window.mParticle.EventType.Other,a),i.flushImmediately)try{window.mParticle.upload?.()}catch{}console.debug(`MParticle: Event "${n}" tracked`,a)}catch(e){console.error(`MParticle: Event "${n}" failed`,e)}return r},[e]);return r}])},226602,e=>{"use strict";var t=e.i(902875),n=e.i(247865),o=e.i(747961);let r=(0,n.forwardRef)(({title:e,titleId:n,desc:o,descId:r,...i},a)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:a,"aria-labelledby":n,"aria-describedby":r,...i,children:[o?(0,t.jsx)("desc",{id:r,children:o}):null,void 0===e?(0,t.jsx)("title",{id:n,children:"Close"}):e?(0,t.jsx)("title",{id:n,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M12.809 4.113a.652.652 0 1 0-.922-.922L8 7.078 4.113 3.19a.652.652 0 1 0-.922.922L7.078 8 3.19 11.887a.652.652 0 0 0 .922.922L8 8.922l3.887 3.887a.652.652 0 1 0 .922-.922L8.922 8z"})]})),i=n.default.forwardRef((e,n)=>(0,t.jsx)(o.BaseIcon,{ref:n,icon:r,...e}));i.displayName="Close",e.s(["Close",0,i])},62544,396817,634177,e=>{"use strict";var t=e.i(902875),n=e.i(247865),o=e.i(543836),r=e.i(271359),i=e.i(855128),a=e.i(296994),l=e.i(803976),s=e.i(698900),c=e.i(546504),u=e.i(778469),d=e.i(312610),f=e.i(942928),p=e.i(235453),m=e.i(714035),g=e.i(621790),v=e.i(73772),h=e.i(982538),x=Object.defineProperty,y=(e,t)=>x(e,"name",{value:t,configurable:!0}),w="Dialog",[b,C]=(0,i.createContextScope)(w),[E,P]=b(w),D=y(e=>{let{__scopeDialog:o,children:r,open:i,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,d=n.useRef(null),f=n.useRef(null),[p,m]=(0,l.useControllableState)({prop:i,defaultProp:s??!1,onChange:c,caller:w}),[g,v]=n.useState(0),[h,x]=n.useState(0);return(0,t.jsx)(E,{scope:o,triggerRef:d,contentRef:f,contentId:(0,a.useId)(),titleId:(0,a.useId)(),descriptionId:(0,a.useId)(),titlePresent:g>0,descriptionPresent:h>0,setTitleCount:v,setDescriptionCount:x,open:p,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),modal:u,children:r})},"Dialog"),S=n.forwardRef(y(function(e,n){let{__scopeDialog:i,...a}=e,l=P("DialogTrigger",i),s=(0,r.useComposedRefs)(n,l.triggerRef);return(0,t.jsx)(f.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":H(l.open),...a,ref:s,onClick:(0,o.composeEventHandlers)(e.onClick,l.onOpenToggle)})},"DialogTrigger")),j="DialogPortal",[R,N]=b(j,{forceMount:void 0}),I=y(e=>{let{__scopeDialog:o,forceMount:r,children:i,container:a}=e,l=P(j,o);return(0,t.jsx)(R,{scope:o,forceMount:r,children:n.Children.map(i,e=>(0,t.jsx)(d.Presence,{present:r||l.open,children:(0,t.jsx)(u.Portal,{asChild:!0,container:a,children:e})}))})},"DialogPortal"),O="DialogOverlay",A=n.forwardRef(y(function(e,n){let o=N(O,e.__scopeDialog),{forceMount:r=o.forceMount,...i}=e,a=P(O,e.__scopeDialog);return a.modal?(0,t.jsx)(d.Presence,{present:r||a.open,children:(0,t.jsx)(_,{...i,ref:n})}):null},"DialogOverlay")),T=(0,h.createSlot)("DialogOverlay.RemoveScroll"),_=n.forwardRef(y(function(e,n){let{__scopeDialog:o,...i}=e,a=P(O,o),l=(0,s.useDismissableLayerSurface)(),c=(0,r.useComposedRefs)(n,l);return(0,t.jsx)(g.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[a.contentRef],children:(0,t.jsx)(f.Primitive.div,{"data-state":H(a.open),...i,ref:c,style:{pointerEvents:"auto",...i.style}})})},"DialogOverlayImpl")),k="DialogContent",L=n.forwardRef(y(function(e,n){let o=N(k,e.__scopeDialog),{forceMount:r=o.forceMount,...i}=e,a=P(k,e.__scopeDialog);return(0,t.jsx)(d.Presence,{present:r||a.open,children:a.modal?(0,t.jsx)(M,{...i,ref:n}):(0,t.jsx)(U,{...i,ref:n})})},"DialogContent")),M=n.forwardRef(y(function(e,i){let a=P(k,e.__scopeDialog),l=n.useRef(null),s=(0,r.useComposedRefs)(i,a.contentRef,l);return n.useEffect(()=>{let e=l.current;if(e)return(0,v.hideOthers)(e)},[]),(0,t.jsx)(F,{...e,ref:s,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:(0,o.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),U=n.forwardRef(y(function(e,o){let r=P(k,e.__scopeDialog),i=n.useRef(!1),a=n.useRef(!1);return(0,t.jsx)(F,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let n=t.target;r.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})},"DialogContentNonModal")),F=n.forwardRef(y(function(e,n){let{__scopeDialog:o,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...l}=e,u=P(k,o);return(0,p.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,t.jsx)(s.DismissableLayer,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionPresent?u.descriptionId:void 0,"aria-labelledby":u.titlePresent?u.titleId:void 0,"data-state":H(u.open),...l,ref:n,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})},"DialogContentImpl")),$=n.forwardRef(y(function(e,n){let{__scopeDialog:o,...r}=e,i=P("DialogTitle",o),{setTitleCount:a}=i;return(0,m.useLayoutEffect)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(f.Primitive.h2,{id:i.titleId,...r,ref:n})},"DialogTitle")),V=n.forwardRef(y(function(e,n){let{__scopeDialog:o,...r}=e,i=P("DialogDescription",o),{setDescriptionCount:a}=i;return(0,m.useLayoutEffect)(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,t.jsx)(f.Primitive.p,{id:i.descriptionId,...r,ref:n})},"DialogDescription")),W=n.forwardRef(y(function(e,n){let{__scopeDialog:r,...i}=e,a=P("DialogClose",r);return(0,t.jsx)(f.Primitive.button,{type:"button",...i,ref:n,onClick:(0,o.composeEventHandlers)(e.onClick,()=>a.onOpenChange(!1))})},"DialogClose"));function H(e){return e?"open":"closed"}y(H,"getState"),e.s(["Close",0,W,"Content",0,L,"Description",0,V,"Overlay",0,A,"Portal",0,I,"Root",0,D,"Title",0,$,"Trigger",0,S],396817);var z=e.i(226602),B=e.i(632137),Y=e.i(877957),G=e.i(294237);e.i(368847);let K=(0,G.cva)("",{variants:{type:{overlay:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-overlay bg-black/50",content:"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed left-[50%] top-[50%] z-overlay w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-white shadow-lg duration-200 sm:max-w-md p-6",header:"mb-4 text-center",footer:"mt-6 flex flex-col-reverse gap-2 text-center"}},defaultVariants:{type:"content"}});function X({...e}){return(0,t.jsx)(I,{"data-slot":"dialog-portal",...e})}function J({className:e,...n}){return(0,t.jsx)(A,{"data-slot":"dialog-overlay",className:(0,B.cn)(K({type:"overlay"}),e),...n})}function Z({className:e,overlayClassName:n,children:o,showCloseButton:r=!0,...i}){return(0,t.jsxs)(X,{"data-slot":"dialog-portal",children:[(0,t.jsx)(J,{className:n}),(0,t.jsxs)(L,{"data-slot":"dialog-content",className:(0,B.cn)(K({type:"content"}),e),...i,children:[o,r&&(0,t.jsxs)(W,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)(z.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function q({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,B.cn)(K({type:"header"}),e),...n})}function Q({className:e,children:n,...o}){return(0,t.jsx)($,{"data-slot":"dialog-title",className:(0,B.cn)("pt-4 text-center",e),...o,children:n})}function ee({className:e,children:n,...o}){return(0,t.jsx)(V,{"data-slot":"dialog-description",className:(0,B.cn)("pb-4 text-center",e),...o,children:n})}function et({primary:e,secondary:n,className:o}){return(0,t.jsxs)("div",{className:(0,B.cn)("flex flex-col-reverse gap-3",o),children:[n&&(0,t.jsx)(Y.Button,{variant:"secondary",onClick:n.onClick,className:"w-full",children:n.label}),e&&(0,t.jsx)(Y.Button,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["dialogStyles",0,K],634177),e.s(["BasicDialog",0,function({title:e,description:n,primaryAction:o,secondaryAction:r,showCloseButton:i=!0,className:a,children:l,...s}){return(0,t.jsxs)(Z,{showCloseButton:i,className:(0,B.cn)("p-6",a),...s,children:[(0,t.jsx)(q,{children:(0,t.jsx)(Q,{children:e})}),(0,t.jsx)(ee,{children:n}),l,(o||r)&&(0,t.jsx)(et,{primary:o,secondary:r})]})},"Dialog",0,function({...e}){return(0,t.jsx)(D,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(W,{"data-slot":"dialog-close",...e})},"DialogContent",0,Z,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...n}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,B.cn)(K({type:"footer"}),e),...n})},"DialogHeader",0,q,"DialogTitle",0,Q,"DialogTrigger",0,function({...e}){return(0,t.jsx)(S,{"data-slot":"dialog-trigger",...e})}],62544)},429745,e=>{"use strict";var t=e.i(902875),n=e.i(62544),o=e.i(226602),r=e.i(632137);e.s(["InstallPromptSheet",0,({open:e,onOpenChange:i,title:a,headline:l,description:s,imageUrl:c,imageAlt:u="",imageContent:d,getAppHref:f,getAppLabel:p="Get the app",onGetAppClick:m,learnMoreHref:g,learnMoreLabel:v="Learn more",onLearnMoreClick:h,closeLabel:x="Close",onCloseClick:y,dismissLabel:w,onDismissClick:b})=>(0,t.jsx)(n.Dialog,{open:e,onOpenChange:i,children:(0,t.jsxs)(n.DialogContent,{"aria-describedby":void 0,showCloseButton:!1,onOpenAutoFocus:e=>{e.preventDefault(),e.currentTarget.focus()},className:(0,r.cn)("flex flex-col gap-6 overflow-y-auto border-0 border-b border-black/10 bg-white px-8 py-6","pb-[calc(1.5rem+env(safe-area-inset-bottom))]","fixed inset-x-0 top-auto bottom-0 max-h-[90dvh] w-full max-w-none translate-x-0 translate-y-0 sm:max-w-none","rounded-t-3xl rounded-b-none","data-[state=open]:slide-in-from-bottom-full data-[state=closed]:slide-out-to-bottom-full"),children:[(0,t.jsx)(n.DialogClose,{"aria-label":x,onClick:y,className:"absolute top-4 left-4 z-10 flex size-8 cursor-pointer items-center justify-center rounded-2xl bg-[#f5f5f5] text-gray-900 transition-colors hover:bg-gray-200 focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:outline-none",children:(0,t.jsx)(o.Close,{size:"sm",ariaHidden:!0,className:"size-4"})}),a?(0,t.jsx)(n.DialogTitle,{className:"p-0 text-center text-base font-bold text-[#252422]",children:a}):(0,t.jsx)(n.DialogTitle,{className:"sr-only",children:l}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6",children:[d||(c?(0,t.jsx)("div",{className:"relative h-40 w-full",children:(0,t.jsx)("img",{src:c,alt:u,className:"size-full rounded-lg object-cover"})}):null),(0,t.jsxs)("div",{className:"flex flex-col gap-2 text-center",children:[(0,t.jsx)("p",{className:"text-2xl font-extrabold text-[#252422]",children:l}),(0,t.jsx)("p",{className:"text-base font-medium text-[#676767]",children:s})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)("a",{href:f,onClick:m,className:"flex h-12 w-40 items-center justify-center rounded-lg bg-[#252422] text-base font-bold text-white hover:bg-[#3a3a3a] active:bg-black",children:p}),g&&(0,t.jsx)("a",{href:g,onClick:h,className:"flex h-12 w-full max-w-60 items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:v}),!g&&w&&(0,t.jsx)(n.DialogClose,{onClick:b,className:"flex h-12 w-full max-w-60 cursor-pointer items-center justify-center rounded-lg text-base font-bold text-[#252422] hover:opacity-70",children:w})]})]})})])},837879,e=>{"use strict";var t=e.i(247865),n=e.i(546446),o=e.i(725287),r=e.i(485737),i=e.i(739971),a=e.i(725296),l=e.i(394481),s=e.i(763886),c=e.i(132084);e.s(["useSubscriptionsEnabled",0,()=>{let e=(0,n.useAtomValue)(i.subscriptionsEnabledAtom),u=(0,n.useAtomValue)(r.geoipCountry),d=(0,o.useParams)()?.locale,f=(0,n.useAtomValue)(l.privacyRegimeAtom)??a.Regime.EXEMPT,p=(0,n.useAtomValue)(s.partnerAtom);return(0,t.useMemo)(()=>null!==e?e:"US"===u&&"en-US"===d&&a.US_REGIMES.includes(f)&&p!==c.Partner.OPPO,[e,u,d,f,p])}])},726812,16730,e=>{"use strict";let t="com.weather.Weather",n="id295646461",o="https://app.appsflyer.com",r="weather.com",i=`https://apps.apple.com/us/app/the-weather-channel/${n}`,a=`https://play.google.com/store/apps/details?id=${t}`;e.s(["APPSFLYER_DEFAULT_CAMPAIGN",0,r,"APPSFLYER_HOST",0,o,"APPSFLYER_PID",0,"WWW","APP_STORE_URL",0,i,"DEFAULT_ANDROID_ID",0,t,"DEFAULT_IPHONE_ID",0,n,"PLAY_STORE_URL",0,a],726812);var l=e.i(288906);e.s(["getAppsFlyerLink",0,function({platform:e,trackAdset:i,currentUrl:a,allowAppsFlyer:s,deepLinkValue:c}){if(!s||!i||null===e)return"";let u="android"===e?t:n,d=l.default.env.NEXT_PUBLIC_APPSFLYER_ONELINK_URL,f=d||`${o}/${u}`,p=encodeURIComponent(i.replace(/ /g,"_")),m=`${f}?pid=WWW&af_adset=${p}&c=${r}`;return c&&(m+=`&deep_link_value=${encodeURIComponent(c)}`),!d&&"ios"===e&&a&&(m+=`&af_ios_fallback=${encodeURIComponent(a)}`),m}],16730)},881282,e=>{"use strict";e.s(["getPlatform",0,function(e){return/iPhone|iPod|iPad/.test(e)?"ios":/Android/.test(e)?"android":null}])},677691,e=>{"use strict";var t=e.i(247865),n=e.i(726812),o=e.i(16730),r=e.i(881282),i=e.i(546446),a=e.i(402525),l=e.i(216809);e.s(["useAppInstallLink",0,function(e,s){let[c,u]=(0,t.useState)(null),[d,f]=(0,t.useState)(null),p=(0,i.useAtomValue)(a.smartScriptClickUrlAtom),m=(0,l.useAppsFlyerConsent)();(0,t.useEffect)(()=>{u((0,r.getPlatform)(navigator.userAgent)),f(window.location.href)},[]);let g=(0,o.getAppsFlyerLink)({platform:c,trackAdset:e,currentUrl:d,allowAppsFlyer:m,deepLinkValue:s}),v="android"===c?n.PLAY_STORE_URL:n.APP_STORE_URL,h=p?(0,a.withCtaAttribution)(p,{trackAdset:e,deepLinkValue:s}):"";return{href:(m&&null!==c?h||g:"")||v,platform:c}}])}]);