(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,414338,e=>{"use strict";var t=e.i(902875),o=e.i(247865),a=e.i(730921),n=e.i(581014),r=e.i(877957),i=e.i(62544),l=e.i(901351),s=e.i(313983),c=e.i(725296),d=e.i(521350),u=e.i(546446),p=e.i(540768),g=e.i(682142),f=e.i(782937),m=e.i(695881),C=e.i(333350),v=e.i(64412),x=e.i(950771),D=e.i(537989),h=e.i(695203),w=e.i(158662),y=e.i(358273),S=e.i(777638),j=e.i(924776),b=e.i(409628),P=e.i(605781);let O=(0,m.createLogger)("useTrackConsentChange"),k={"sale-of-data":"sod","sensitive-data":"sensitive-data"};var A=e.i(611540),R=e.i(553329);let _=async e=>{let t;await (0,R.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{t=setTimeout(e,1e3)})])),clearTimeout(t)},I=({isUserLoggedIn:e,regime:m,deviceClass:R,experience:I,isPremiumUser:T})=>{let E=(0,n.useTranslations)("PrivacyConsentModal"),N=(0,a.useLocale)(),U=(0,A.interpolateUrl)(A.URLS.privacyPolicy,{locale:N}),[F,L]=(0,o.useState)(!1),[M,B]=(0,o.useState)(!1),[H,V]=(0,o.useState)(!1),K=(()=>{let e=(0,u.useAtomValue)(D.pageIdAtom),t=(0,u.useAtomValue)(x.pageLocaleAtom),a=(0,u.useAtomValue)(h.deviceClassAtom),n=(0,u.useAtomValue)(w.experimentJoinListAtom),{location:r}=(0,v.useLocation)(),i=(0,j.useIsHightouchReady)(),l=(0,o.useCallback)(()=>{let e=(0,g.getCICookie)(),o=e?.["TWC-GeoIP-Country"]??(0,p.getCookie)("twc-location-country"),i=e?.["TWC-GeoIP-Region"]??(0,p.getCookie)("twc-location-region"),l=e?.["TWC-Privacy"]??(0,p.getCookie)("twc-privacy"),s=window.DprSdk?.getGdprConsentOptInsString()??"",c=window.DprSdk?.getCcpaSaleOptInString()??"",d=window.navigator?.globalPrivacyControl??!1,u=s?.includes("functional-technology")??!1,m=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,C=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,v=String(window.DprSdk?.getUserConsent("sale-of-data")!==!1),x=String(window.DprSdk?.getUserConsent("sensitive-data")!==!1),D=navigator?.cookieEnabled??!1,h=(0,p.getCookie)("partner")||"",w=(0,f.getPartnerByPattern)(h)??h,j=(0,y.getMetricsSession)(),P=j?.sessionId||"",O=new Date(j?.sessionStartTime||0).toISOString(),k=new Date,A=k.getHours(),R=b.WEEK_DAYS[k.getDay()]??"";return{schemaVersion:"nextgen",referrer:document.referrer,locale:t,deviceClass:a,partner:w,sessionId:P,sessionStartTime:O,siteMode:"normal",dayOfWeek:R,hourOfDay:A,regime:l??"",cookiesEnabled:D,gpcSignalOptOut:d,functionalTechnologies:u,geographicallyRelevantAds:m,interestBasedAds:C,priv:s,privProducts:c,saleOfData:v,saleOfDataAuthorization:v,sensitiveDataAuthorization:x,campaign:(0,S.getCampaign)(),experimentJoinList:n,weatherMode:"normal",physicalCountry:o??"",physicalState:i??"",caUser:"US"===o&&"CA"===i,wlocCity:r?.city??null,wlocCountry:r?.countryCode??null,wlocState:r?.adminDistrictCode??null,samsungVersion:(0,S.getSamsungVersion)(),appVersion:"b1f2a8b9d69b0e3e05fe6d294ee6a35cce1a3921".slice(0,10)}},[t,a,n,r]),s=(0,o.useCallback)((t,o)=>{if("sensitive-data"===t&&o)return(0,P.trackSensitiveDataOptin)(l());let a={...l(),pageId:e??"",wlocDMA:r?.dmaCd??null};return"sensitive-data"===t?(0,P.trackSensitiveDataOptout)(a):o?(0,P.trackSodOptin)(a):(0,P.trackSodOptout)(a)},[l,e,r]);return(0,o.useCallback)((e,t)=>{let o=`${k[e]}-${t?"optin":"optout"}`;if(C.default)return i?(O.info(`Hightouch: Event "${o}" tracked`),s(e,t)):void O.warn(`Hightouch: Event "${o}" skipped - SDK not ready`)},[i,s])})();(0,o.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||T||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),o=localStorage.getItem("saleOfDataConflict");t?(B(!0),L(!0)):e&&o&&m===c.Regime.USA_CCPA&&(V(!0),L(!0))},[m,T,e]);let $=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await l.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&(await e.beforeRefresh,window.location.reload())}catch(e){console.error("Failed to update UPSX consent:",e)}},G=t=>{let o=window,a=window.top,n=o.DprSdk||a?.DprSdk;if(!n)return void console.error("Unable to fix conflict, missing DprSdk.");n.setUserConsents({[s.Purpose.SALE_OF_DATA]:t});let r=_(()=>K(s.Purpose.SALE_OF_DATA,t));e&&$({purpose:s.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0,beforeRefresh:r}),M?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||r.then(()=>window.location.reload())):H&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),L(!1)},z="",W="";if(M?(z="gpcConflictHeader",W="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(W+="_usa-ccpa")):H&&(z="saleOfDataConflictHeader",W="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(W+="_usa-ccpa")),W)return(0,t.jsx)(i.Dialog,{open:F,onOpenChange:L,children:(0,t.jsxs)(i.DialogContent,{className:`text-center ${"desktop"!==R?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===I?"wu-theme":""} `,onEscapeKeyDown:e=>{(H||M)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[z&&(0,t.jsx)(i.DialogHeader,{children:(0,t.jsx)(i.DialogTitle,{className:"text-xl font-semibold",children:E(z)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:E.rich(W,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:U,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(i.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(r.Button,{onClick:()=>{G(!0)},variant:"default",className:"w-full sm:w-auto",children:E("optInButtonText")}),(0,t.jsx)(r.Button,{onClick:()=>{G(!1)},variant:"secondary",className:"w-full sm:w-auto",children:E("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModalClient",0,I,"SOD_TRACK_TIMEOUT_MS",0,1e3,"default",0,I],414338)},685840,function(e){e.n(e.i(414338))},62544,396817,634177,e=>{"use strict";var t=e.i(902875),o=e.i(247865),a=e.i(543836),n=e.i(271359),r=e.i(855128),i=e.i(296994),l=e.i(803976),s=e.i(698900),c=e.i(546504),d=e.i(778469),u=e.i(312610),p=e.i(942928),g=e.i(235453),f=e.i(714035),m=e.i(621790),C=e.i(73772),v=e.i(982538),x=Object.defineProperty,D=(e,t)=>x(e,"name",{value:t,configurable:!0}),h="Dialog",[w,y]=(0,r.createContextScope)(h),[S,j]=w(h),b=D(e=>{let{__scopeDialog:a,children:n,open:r,defaultOpen:s,onOpenChange:c,modal:d=!0}=e,u=o.useRef(null),p=o.useRef(null),[g,f]=(0,l.useControllableState)({prop:r,defaultProp:s??!1,onChange:c,caller:h}),[m,C]=o.useState(0),[v,x]=o.useState(0);return(0,t.jsx)(S,{scope:a,triggerRef:u,contentRef:p,contentId:(0,i.useId)(),titleId:(0,i.useId)(),descriptionId:(0,i.useId)(),titlePresent:m>0,descriptionPresent:v>0,setTitleCount:C,setDescriptionCount:x,open:g,onOpenChange:f,onOpenToggle:o.useCallback(()=>f(e=>!e),[f]),modal:d,children:n})},"Dialog"),P=o.forwardRef(D(function(e,o){let{__scopeDialog:r,...i}=e,l=j("DialogTrigger",r),s=(0,n.useComposedRefs)(o,l.triggerRef);return(0,t.jsx)(p.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":K(l.open),...i,ref:s,onClick:(0,a.composeEventHandlers)(e.onClick,l.onOpenToggle)})},"DialogTrigger")),O="DialogPortal",[k,A]=w(O,{forceMount:void 0}),R=D(e=>{let{__scopeDialog:a,forceMount:n,children:r,container:i}=e,l=j(O,a);return(0,t.jsx)(k,{scope:a,forceMount:n,children:o.Children.map(r,e=>(0,t.jsx)(u.Presence,{present:n||l.open,children:(0,t.jsx)(d.Portal,{asChild:!0,container:i,children:e})}))})},"DialogPortal"),_="DialogOverlay",I=o.forwardRef(D(function(e,o){let a=A(_,e.__scopeDialog),{forceMount:n=a.forceMount,...r}=e,i=j(_,e.__scopeDialog);return i.modal?(0,t.jsx)(u.Presence,{present:n||i.open,children:(0,t.jsx)(E,{...r,ref:o})}):null},"DialogOverlay")),T=(0,v.createSlot)("DialogOverlay.RemoveScroll"),E=o.forwardRef(D(function(e,o){let{__scopeDialog:a,...r}=e,i=j(_,a),l=(0,s.useDismissableLayerSurface)(),c=(0,n.useComposedRefs)(o,l);return(0,t.jsx)(m.RemoveScroll,{as:T,allowPinchZoom:!0,shards:[i.contentRef],children:(0,t.jsx)(p.Primitive.div,{"data-state":K(i.open),...r,ref:c,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),N="DialogContent",U=o.forwardRef(D(function(e,o){let a=A(N,e.__scopeDialog),{forceMount:n=a.forceMount,...r}=e,i=j(N,e.__scopeDialog);return(0,t.jsx)(u.Presence,{present:n||i.open,children:i.modal?(0,t.jsx)(F,{...r,ref:o}):(0,t.jsx)(L,{...r,ref:o})})},"DialogContent")),F=o.forwardRef(D(function(e,r){let i=j(N,e.__scopeDialog),l=o.useRef(null),s=(0,n.useComposedRefs)(r,i.contentRef,l);return o.useEffect(()=>{let e=l.current;if(e)return(0,C.hideOthers)(e)},[]),(0,t.jsx)(M,{...e,ref:s,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:(0,a.composeEventHandlers)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:(0,a.composeEventHandlers)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&e.preventDefault()}),onFocusOutside:(0,a.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),L=o.forwardRef(D(function(e,a){let n=j(N,e.__scopeDialog),r=o.useRef(!1),i=o.useRef(!1);return(0,t.jsx)(M,{...e,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})},"DialogContentNonModal")),M=o.forwardRef(D(function(e,o){let{__scopeDialog:a,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,...l}=e,d=j(N,a);return(0,g.useFocusGuards)(),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(c.FocusScope,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:r,onUnmountAutoFocus:i,children:(0,t.jsx)(s.DismissableLayer,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionPresent?d.descriptionId:void 0,"aria-labelledby":d.titlePresent?d.titleId:void 0,"data-state":K(d.open),...l,ref:o,deferPointerDownOutside:!0,onDismiss:()=>d.onOpenChange(!1)})})})},"DialogContentImpl")),B=o.forwardRef(D(function(e,o){let{__scopeDialog:a,...n}=e,r=j("DialogTitle",a),{setTitleCount:i}=r;return(0,f.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,t.jsx)(p.Primitive.h2,{id:r.titleId,...n,ref:o})},"DialogTitle")),H=o.forwardRef(D(function(e,o){let{__scopeDialog:a,...n}=e,r=j("DialogDescription",a),{setDescriptionCount:i}=r;return(0,f.useLayoutEffect)(()=>(i(e=>e+1),()=>i(e=>e-1)),[i]),(0,t.jsx)(p.Primitive.p,{id:r.descriptionId,...n,ref:o})},"DialogDescription")),V=o.forwardRef(D(function(e,o){let{__scopeDialog:n,...r}=e,i=j("DialogClose",n);return(0,t.jsx)(p.Primitive.button,{type:"button",...r,ref:o,onClick:(0,a.composeEventHandlers)(e.onClick,()=>i.onOpenChange(!1))})},"DialogClose"));function K(e){return e?"open":"closed"}D(K,"getState"),e.s(["Close",0,V,"Content",0,U,"Description",0,H,"Overlay",0,I,"Portal",0,R,"Root",0,b,"Title",0,B,"Trigger",0,P],396817);var $=e.i(226602),G=e.i(632137),z=e.i(877957),W=e.i(294237);e.i(368847);let J=(0,W.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)(R,{"data-slot":"dialog-portal",...e})}function Y({className:e,...o}){return(0,t.jsx)(I,{"data-slot":"dialog-overlay",className:(0,G.cn)(J({type:"overlay"}),e),...o})}function Z({className:e,overlayClassName:o,children:a,showCloseButton:n=!0,...r}){return(0,t.jsxs)(X,{"data-slot":"dialog-portal",children:[(0,t.jsx)(Y,{className:o}),(0,t.jsxs)(U,{"data-slot":"dialog-content",className:(0,G.cn)(J({type:"content"}),e),...r,children:[a,n&&(0,t.jsxs)(V,{className:"absolute top-4 right-4 cursor-pointer transition-opacity hover:opacity-70 focus:outline-none",children:[(0,t.jsx)($.Close,{className:"h-5 w-5 text-black"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function q({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,G.cn)(J({type:"header"}),e),...o})}function Q({className:e,children:o,...a}){return(0,t.jsx)(B,{"data-slot":"dialog-title",className:(0,G.cn)("pt-4 text-center",e),...a,children:o})}function ee({className:e,children:o,...a}){return(0,t.jsx)(H,{"data-slot":"dialog-description",className:(0,G.cn)("pb-4 text-center",e),...a,children:o})}function et({primary:e,secondary:o,className:a}){return(0,t.jsxs)("div",{className:(0,G.cn)("flex flex-col-reverse gap-3",a),children:[o&&(0,t.jsx)(z.Button,{variant:"secondary",onClick:o.onClick,className:"w-full",children:o.label}),e&&(0,t.jsx)(z.Button,{variant:"default",onClick:e.onClick,className:"w-full",children:e.label})]})}e.s(["dialogStyles",0,J],634177),e.s(["BasicDialog",0,function({title:e,description:o,primaryAction:a,secondaryAction:n,showCloseButton:r=!0,className:i,children:l,...s}){return(0,t.jsxs)(Z,{showCloseButton:r,className:(0,G.cn)("p-6",i),...s,children:[(0,t.jsx)(q,{children:(0,t.jsx)(Q,{children:e})}),(0,t.jsx)(ee,{children:o}),l,(a||n)&&(0,t.jsx)(et,{primary:a,secondary:n})]})},"Dialog",0,function({...e}){return(0,t.jsx)(b,{"data-slot":"dialog",...e})},"DialogClose",0,function({...e}){return(0,t.jsx)(V,{"data-slot":"dialog-close",...e})},"DialogContent",0,Z,"DialogDescription",0,ee,"DialogFooter",0,function({className:e,...o}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,G.cn)(J({type:"footer"}),e),...o})},"DialogHeader",0,q,"DialogOverlay",0,Y,"DialogPortal",0,X,"DialogTitle",0,Q,"DialogTrigger",0,function({...e}){return(0,t.jsx)(P,{"data-slot":"dialog-trigger",...e})}],62544)}]);