(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,198050,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(533760),i=e.i(405341),o=e.i(829065);e.s(["CJUniversalTagScript",0,()=>{let[e,a]=(0,r.useState)(null);return((0,r.useEffect)(()=>{let e=(0,i.getCjConfig)();e&&(0,o.isCjEligible)()&&a(e)},[]),e)?(0,t.jsx)(n.default,{id:"cj-site-page",strategy:"afterInteractive",children:`(function (w, d, src, enterpriseId) { w.cj = w.cj || {}; w.cj.sitePage = { enterpriseId: enterpriseId }; if (d.getElementById('cjapitag')) return; var tag = d.createElement('script'); var first = d.getElementsByTagName('script')[0]; tag.id = 'cjapitag'; tag.async = true; tag.src = src; if (first && first.parentNode) first.parentNode.insertBefore(tag, first); else d.body.appendChild(tag); })(window, document, ${JSON.stringify(e.tagSrc)}, ${JSON.stringify(e.enterpriseId)});`}):null}])},405341,829065,e=>{"use strict";e.s(["CJ_ACTION_ID_DIRECT_PURCHASE",0,521782,"CJ_ACTION_ID_TRIAL_SIGNUP",0,519532,"getCjConfig",0,()=>{let e=Number("1601099".trim()),t="1377327807670".trim();return Number.isInteger(e)&&!(et.US_REGIMES.includes((0,t.getRegime)())],829065)},560542,e=>{"use strict";var t=e.i(247865),r=e.i(293163),n=e.i(695881),i=e.i(553329),o=e.i(405341),a=e.i(829065);let s=(0,n.createLogger)("CommissionJunction");e.s(["useCjConversionTag",0,({shouldFire:e,orderId:n,amount:l,hasTrial:c})=>{let d=(0,t.useRef)(!1);(0,t.useEffect)(()=>{if(!e||d.current||!n)return;let t=(0,o.getCjConfig)();t&&(0,a.isCjEligible)()&&(d.current=!0,(0,i.tryCatch)((async()=>{var e;let i,a,s;return e={orderId:n,amount:l,actionTrackerId:c?o.CJ_ACTION_ID_TRIAL_SIGNUP:o.CJ_ACTION_ID_DIRECT_PURCHASE,cjEventId:(0,r.getCjEvent)()},(i=window).cj=i.cj||{},i.cj.order={enterpriseId:t.enterpriseId,actionTrackerId:e.actionTrackerId,orderId:e.orderId,pageType:"conversionConfirmation",currency:"USD",amount:e.amount,...e.cjEventId?{cjeventOrder:e.cjEventId}:{}},document.getElementById("cjapitag")?.remove(),(a=document.createElement("script")).id="cjapitag",a.async=!0,a.src=t.tagSrc,s=document.getElementsByTagName("script")[0],void(s?.parentNode?s.parentNode.insertBefore(a,s):document.body.appendChild(a))})()).then(({error:e})=>{e&&s.error("conversion tag failed",{orderId:n,error:e})}))},[e,n,l,c])}],560542)},414338,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(730921),i=e.i(581014),o=e.i(877957),a=e.i(62544),s=e.i(901351),l=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),v=e.i(333350),h=e.i(64412),w=e.i(950771),C=e.i(537989),b=e.i(695203),E=e.i(158662),S=e.i(358273),y=e.i(777638),A=e.i(924776),_=e.i(409628),I=e.i(605781),R=e.i(289681);let T=(0,m.createLogger)("useTrackConsentChange"),k={"sale-of-data":"sod","sensitive-data":"sensitive-data"};var x=e.i(611540),O=e.i(553329);let P=async e=>{let t;await (0,O.tryCatch)(Promise.race([Promise.resolve().then(e),new Promise(e=>{t=setTimeout(e,1e3)})])),clearTimeout(t)},L=({isUserLoggedIn:e,regime:m,deviceClass:O,experience:L,isPremiumUser:D})=>{let N=(0,i.useTranslations)("PrivacyConsentModal"),j=(0,n.useLocale)(),U=(0,x.interpolateUrl)(x.URLS.privacyPolicy,{locale:j}),[B,V]=(0,r.useState)(!1),[H,M]=(0,r.useState)(!1),[$,F]=(0,r.useState)(!1),G=(()=>{let e=(0,u.useAtomValue)(C.pageIdAtom),t=(0,u.useAtomValue)(w.pageLocaleAtom),n=(0,u.useAtomValue)(b.deviceClassAtom),i=(0,u.useAtomValue)(E.experimentJoinListAtom),{location:o}=(0,h.useLocation)(),a=(0,A.useIsHightouchReady)(),s=(0,r.useCallback)(()=>{let e=(0,g.getCICookie)(),r=e?.["TWC-GeoIP-Country"]??(0,p.getCookie)("twc-location-country"),a=e?.["TWC-GeoIP-Region"]??(0,p.getCookie)("twc-location-region"),s=e?.["TWC-Privacy"]??(0,p.getCookie)("twc-privacy"),l=window.DprSdk?.getGdprConsentOptInsString()??"",c=window.DprSdk?.getCcpaSaleOptInString()??"",d=window.navigator?.globalPrivacyControl??!1,u=l?.includes("functional-technology")??!1,m=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,v=window.DprSdk?.getUserConsent("interest-based-ads")!==!1,h=(0,R.getConsentAuthorization)("sale-of-data"),w=(0,R.getConsentAuthorization)("sensitive-data"),C=navigator?.cookieEnabled??!1,b=(0,p.getCookie)("partner")||"",E=(0,f.getPartnerByPattern)(b)??b,A=(0,S.getMetricsSession)(),I=A?.sessionId||"",T=new Date(A?.sessionStartTime||0).toISOString(),k=new Date,x=k.getHours(),O=_.WEEK_DAYS[k.getDay()]??"";return{schemaVersion:"nextgen",referrer:document.referrer,locale:t,deviceClass:n,partner:E,sessionId:I,sessionStartTime:T,siteMode:"normal",dayOfWeek:O,hourOfDay:x,regime:s??"",cookiesEnabled:C,gpcSignalOptOut:d,functionalTechnologies:u,geographicallyRelevantAds:m,interestBasedAds:v,priv:l,privProducts:c,saleOfData:h??void 0,saleOfDataAuthorization:h,sensitiveDataAuthorization:w,campaign:(0,y.getCampaign)(),experimentJoinList:i,weatherMode:"normal",physicalCountry:r??"",physicalState:a??"",caUser:"US"===r&&"CA"===a,wlocCity:o?.city??null,wlocCountry:o?.countryCode??null,wlocState:o?.adminDistrictCode??null,samsungVersion:(0,y.getSamsungVersion)(),appVersion:"389773fb268e11f29ae005c6d1e2df0edccc3d48".slice(0,10)}},[t,n,i,o]),l=(0,r.useCallback)((t,r)=>{if("sensitive-data"===t&&r)return(0,I.trackSensitiveDataOptin)(s());let n={...s(),pageId:e??"",wlocDMA:o?.dmaCd??null};return"sensitive-data"===t?(0,I.trackSensitiveDataOptout)(n):r?(0,I.trackSodOptin)(n):(0,I.trackSodOptout)(n)},[s,e,o]);return(0,r.useCallback)((e,t)=>{let r=`${k[e]}-${t?"optin":"optout"}`;if(v.default)return a?(T.info(`Hightouch: Event "${r}" tracked`),l(e,t)):void T.warn(`Hightouch: Event "${r}" skipped - SDK not ready`)},[a,l])})();(0,r.useEffect)(()=>{if(!c.US_REGIMES.includes(m)||D||!(0,d.isLocalStorageAvailable)())return;let t=localStorage.getItem("gpcConflict"),r=localStorage.getItem("saleOfDataConflict");t?(M(!0),V(!0)):e&&r&&m===c.Regime.USA_CCPA&&(F(!0),V(!0))},[m,D,e]);let W=async e=>{try{let t={purpose:e.purpose,consent:e.value,setByUser:!0};await s.upsxClient.consent.createUserConsent(t),e.refreshAfterUpdate&&(await e.beforeRefresh,window.location.reload())}catch(e){console.error("Failed to update UPSX consent:",e)}},J=t=>{let r=window,n=window.top,i=r.DprSdk||n?.DprSdk;if(!i)return void console.error("Unable to fix conflict, missing DprSdk.");i.setUserConsents({[l.Purpose.SALE_OF_DATA]:t});let o=P(()=>G(l.Purpose.SALE_OF_DATA,t));e&&W({purpose:l.Purpose.SALE_OF_DATA,value:t,refreshAfterUpdate:!0,beforeRefresh:o}),H?((0,d.isLocalStorageAvailable)()&&localStorage.removeItem("gpcConflict"),e||o.then(()=>window.location.reload())):$&&(0,d.isLocalStorageAvailable)()&&localStorage.removeItem("saleOfDataConflict"),V(!1)},z="",Y="";if(H?(z="gpcConflictHeader",Y="gpcConflictParagraph",m===c.Regime.USA_CCPA&&(Y+="_usa-ccpa")):$&&(z="saleOfDataConflictHeader",Y="saleOfDataConflictParagraph",m===c.Regime.USA_CCPA&&(Y+="_usa-ccpa")),Y)return(0,t.jsx)(a.Dialog,{open:B,onOpenChange:V,children:(0,t.jsxs)(a.DialogContent,{className:`text-center ${"desktop"!==O?"h-screen w-screen max-w-none rounded-none":"max-w-lg"} ${"wu"===L?"wu-theme":""} `,onEscapeKeyDown:e=>{($||H)&&e.preventDefault()},onPointerDownOutside:e=>{e.preventDefault()},showCloseButton:!1,children:[z&&(0,t.jsx)(a.DialogHeader,{children:(0,t.jsx)(a.DialogTitle,{className:"text-xl font-semibold",children:N(z)})}),(0,t.jsx)("div",{className:"py-4",children:(0,t.jsx)("p",{className:"text-sm leading-relaxed",children:N.rich(Y,{privacyPolicyLink:e=>(0,t.jsx)("a",{href:U,target:"_top",className:"text-blue-600 underline hover:text-blue-800",children:e})})})}),(0,t.jsxs)(a.DialogFooter,{className:"flex w-fit flex-col gap-3 justify-self-center",children:[(0,t.jsx)(o.Button,{onClick:()=>{J(!0)},variant:"default",className:"w-full sm:w-auto",children:N("optInButtonText")}),(0,t.jsx)(o.Button,{onClick:()=>{J(!1)},variant:"secondary",className:"w-full sm:w-auto",children:N("optOutButtonText")})]})]})})};e.s(["PrivacyConsentModalClient",0,L,"SOD_TRACK_TIMEOUT_MS",0,1e3,"default",0,L],414338)},248064,e=>{"use strict";var t=e.i(991511),r=e.i(763886),n=e.i(458001),i=e.i(394481),o=e.i(663333),a=e.i(849177),s=e.i(889753),l=e.i(5397),c=e.i(21121),d=e.i(889781);e.i(647872);var u=e.i(494889),p=e.i(928083),g=e.i(624432),f=e.i(739971),m=e.i(688070),v=e.i(647292),h=e.i(247865),w=e.i(459598),C=e.i(90543);let b=!1,E=!1;function S(){E=!0,(0,w.suppressNextPurchaseAbandon)(),(0,w.suppressNextHightouchPurchaseAbandon)(),window.location.reload()}e.s(["FlagsBoundaryClient",0,({params:e})=>{var w;return(0,t.useRehydrateAtoms)([[r.partnerAtom,e.partner],[n.cscCountryCodeAtom,e.cscCountryCode],[i.privacyRegimeAtom,e.privacyRegime],[o.deviceClassAtom,e.deviceClass],[s.userTierAtom,e.userTier],[a.adsDisabledAtom,e.adsDisabled],[l.showAdminHeaderAtom,e.showAdminHeader],[c.showVelvetcakeModuleAtom,e.showVelvetcakeModule],[d.nextgenRadarDriverAtom,e.nextgenRadarDriver],[u.newsHubEnabledAtom,e.newsHubEnabled],[p.activityHubMenuEnabledAtom,e.activityHubMenuEnabled],[g.contentSearchUniversalAtom,e.contentSearchUniversal],[f.subscriptionsEnabledAtom,e.subscriptionsEnabled],[v.webViewPlatformAtom,e.webViewPlatform],[m.isWebViewOnlyAtom,e.isWebViewOnly]]),w=e.userTier,(0,h.useEffect)(()=>{let e=String(w);if(!b&&(b=!0,function(){let[e]=performance.getEntriesByType("navigation");return e?.type==="back_forward"}()&&(0,C.isStaleRestore)({renderedTier:e,recordedTier:(0,C.readRecordedTier)()})))return void S();if(E)return;(0,C.recordTier)(e);let t=(0,C.readAuthEpoch)(),r=r=>{r.persisted&&!E&&(0,C.isStaleRestore)({renderedTier:e,recordedTier:(0,C.readRecordedTier)(),epochAtLoad:t,currentEpoch:(0,C.readAuthEpoch)()})&&S()};return window.addEventListener("pageshow",r),()=>window.removeEventListener("pageshow",r)},[w]),null}],248064)},281468,e=>{"use strict";var t=e.i(288906),r=e.i(247865),n=e.i(725287);function i(){return false}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function a(e){(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(n.current)e.route&&n.current(e.route);else{let r=function(e={}){var t;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){(window.siq=window.siq||[]).push(e)});let r=e.scriptSrc?e.scriptSrc:i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":e.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.js":e.basePath?`${e.basePath}/speed-insights/script.js`:"/_vercel/speed-insights/script.js";if(document.head.querySelector(`script[src*="${r}"]`))return null;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend));let n=document.createElement("script");return n.src=r,n.defer=!0,n.dataset.sdkn="@vercel/speed-insights"+(e.framework?`/${e.framework}`:""),n.dataset.sdkv="1.3.1",e.sampleRate&&(n.dataset.sampleRate=e.sampleRate.toString()),e.route&&(n.dataset.route=e.route),e.endpoint?n.dataset.endpoint=e.endpoint:e.basePath&&(n.dataset.endpoint=`${e.basePath}/speed-insights/vitals`),e.dsn&&(n.dataset.dsn=e.dsn),i()&&!1===e.debug&&(n.dataset.debug="false"),n.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${r}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(n),{setRoute:e=>{n.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e});r&&(n.current=r.setRoute)}},[e.route]),null}function s(e){let i=(()=>{let e=(0,n.useParams)(),t=(0,n.useSearchParams)()||new URLSearchParams,r=(0,n.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!r||!i)return r;let a=r;try{let e=Object.entries(i);for(let[t,r]of e)if(!Array.isArray(r)){let e=o(r);e.test(a)&&(a=a.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=o(r.join("/"));e.test(a)&&(a=a.replace(e,`/[...${t}]`))}return a}catch(e){return r}})();return r.default.createElement(a,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}()})}e.s(["SpeedInsights",0,function(e){return r.default.createElement(r.Suspense,{fallback:null},r.default.createElement(s,{...e}))}])},175897,e=>{"use strict";var t,r=e.i(288906),n={scriptHostname:("u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_HOST:void 0)??"https://vercel.live",ownerId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_OWNER_ID:void 0,projectId:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_PROJECT_ID:void 0,branch:"u">typeof r.default?r.default.env.NEXT_PUBLIC_VERCEL_TOOLBAR_BRANCH:void 0,deploymentId:"u">typeof r.default?"dpl_C4zMz2iTYaSWqwnJ6pvES7iFkW4R":void 0},i=e.i(247865),o=!1;e.s(["UnmountController",0,function({shouldMount:e,nonce:r}){return(0,i.useEffect)(()=>(e&&o&&function(e={}){if(typeof window>"u"||null===document.querySelector("vercel-live-feedback")){Object.assign(n,e);let r=document.createElement("script");for(let[i,o]of(r.src=`${n.scriptHostname}/_next-live/feedback/feedback.js`,r.setAttribute("data-explicit-opt-in","true"),e.nonce&&r.setAttribute("nonce",e.nonce),Object.entries((n.ownerId&&n.projectId?{"data-owner-id":n.ownerId,"data-project-id":n.projectId,"data-branch":t??n.branch}:n.deploymentId?{"data-deployment-id":n.deploymentId}:void 0)??{})))o&&r.setAttribute(i,o);(document.head||document.documentElement).appendChild(r)}}({nonce:r}),o=!0,()=>{(typeof window>"u"?void 0:window.__vercel_toolbar)?.unmount()}),[]),null}],175897)},232598,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={callServer:function(){return o.callServer},createServerReference:function(){return s.createServerReference},findSourceMapURL:function(){return a.findSourceMapURL}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(276247),a=e.r(788443),s=e.r(955011)},647872,494889,928083,624432,e=>{"use strict";var t=e.i(981030);let r=(0,t.atom)(!1);e.s(["newsHubEnabledAtom",0,r],494889);let n=(0,t.atom)(!1);e.s(["activityHubMenuEnabledAtom",0,n],928083);let i=(0,t.atom)(!1);e.s(["contentSearchUniversalAtom",0,i],624432),e.s([],647872)},520362,e=>{"use strict";var t=e.i(902875),r=e.i(247865);let n=e=>{let{apiRoute:t,depth:n,refresh:i,serverURL:o}=e,a=(0,r.useRef)(!1),s=(0,r.useCallback)(e=>{e.origin===o&&e.data&&"object"==typeof e.data&&"payload-document-event"===e.data.type&&("function"==typeof i?i():console.error("You must provide a refresh function to `RefreshRouteOnSave`"))},[i,o]);return(0,r.useEffect)(()=>("u">typeof window&&window.addEventListener("message",s),a.current||(a.current=!0,(e=>{let{serverURL:t}=e;if("u">typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}})({serverURL:o}),i()),()=>{"u">typeof window&&window.removeEventListener("message",s)}),[o,s,n,t,i]),null};var i=e.i(725287);let o=(0,e.i(695881).createLogger)("BlockHighlightOverlay"),a={position:"absolute",pointerEvents:"none",border:"2px solid #5B9BD5",backgroundColor:"rgba(91, 155, 213, 0.04)",borderRadius:"8px",boxShadow:"0 0 8px rgba(91, 155, 213, 0.3)",zIndex:"9999",transition:"opacity 150ms ease"},s=e=>{let r=(0,i.useRouter)();return(0,t.jsx)(n,{...e,refresh:r.refresh})};e.s(["LivePreviewListener",0,s],346267),e.i(346267),e.s(["BlockHighlightOverlay",0,()=>{let e=(0,r.useRef)(null),t=(0,r.useRef)(null),n=(0,r.useRef)(null),i=(0,r.useRef)(null),s=(0,r.useRef)(null),l=(0,r.useCallback)(()=>{if("u"{let r=t.current,i=e.current;if(!r||!i)return;if(!r.isConnected){t.current=null,i.style.opacity="0",n.current?.disconnect();return}let o=r.getBoundingClientRect();i.style.top=`${o.top+window.scrollY}px`,i.style.left=`${o.left+window.scrollX}px`,i.style.width=`${o.width}px`,i.style.height=`${o.height}px`,i.style.opacity="1"},[]),d=(0,r.useCallback)(()=>{t.current=null,s.current=null,e.current&&(e.current.style.opacity="0"),n.current?.disconnect()},[]),u=(0,r.useCallback)(()=>{t.current&&null===i.current&&(i.current=requestAnimationFrame(()=>{i.current=null,c()}))},[c]),p=(0,r.useCallback)(e=>{if(e===s.current)return;let r=document.querySelector(`[data-block-id="${CSS.escape(e)}"]`);if(!r)return void o.debug("No element found for block ID",{blockId:e});let i=(e=>{let t=e,r=t.getBoundingClientRect();for(let e=0;e{let t=e=>{var t;(e=>{if(e===window.location.origin)return!0;try{let{hostname:t}=new URL(e);return"weather.com"===t||t.endsWith(".weather.com")}catch{return!1}})(e.origin)&&"object"==typeof(t=e.data)&&null!==t&&"type"in t&&("wx:block-highlight-clear"===t.type||"wx:block-highlight"===t.type&&"blockId"in t&&"string"==typeof t.blockId)&&("wx:block-highlight"===e.data.type?p(e.data.blockId):d())};return window.addEventListener("message",t),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u,{passive:!0}),()=>{window.removeEventListener("message",t),window.removeEventListener("scroll",u),window.removeEventListener("resize",u),null!==i.current&&cancelAnimationFrame(i.current),n.current?.disconnect(),e.current?.remove()}},[p,d,u]),null},"LivePreviewListener",0,s],520362)},313983,e=>{"use strict";var t,r=((t={}).ESSENTIAL_TECHNOLOGY="essential-technology",t.FUNCTIONAL_TECHNOLOGY="functional-technology",t.GEOGRAPHICALLY_RELEVANT_ADVERTISING="geographically-relevant-advertising",t.INTERNATIONAL_TRANSFER="international-transfer",t.SALE_OF_DATA="sale-of-data",t.SENSITIVE_DATA="sensitive-data",t.SELECT_PERSONALISED_CONTENT="Select personalised content",t.SELECT_PERSONALISED_ADS="Select personalised ads",t.SELECT_BASIC_ADS="Select basic ads",t.CREATE_A_PERSONALISED_ADS_PROFILE="Create a personalised ads profile",t.CREATE_A_PERSONALISED_CONTENT_PROFILE="Create a personalised content profile",t.MEASURE_AD_PERFORMANCE="Measure ad performance",t.APPLY_MARKET_RESEARCH_TO_GENERATE_AUDIENCE_INSIGHTS="Apply market research to generate audience insights",t.DEVELOP_AND_IMPROVE_PRODUCTS="Develop and improve products",t.STORE_AND_OR_ACCESS_INFORMATION_ON_A_DEVICE="Store and/or access information on a device",t.MEASURE_CONTENT_PERFORMANCE="Measure content performance",t);e.s(["Purpose",()=>r])},457492,e=>{"use strict";var t=e.i(902875),r=e.i(247865),n=e.i(632137),i=e.i(546446),o=e.i(663333),a=e.i(235577),s=e.i(315730),l=e.i(240058);let c=(0,n.cn)("h-full rounded-3xl px-4 text-sm whitespace-nowrap transition-colors text-gray-900 font-bold","inline-flex items-center hover:bg-gray-100 active:bg-gray-200 focus-visible:outline-none focus-visible:bg-gray-100"),d=e=>{let{activeIndex:r,index:i,link:o}=e,a=r===i,s=(0,n.cn)(c,{"bg-gray-100 text-blue-500":a});if(e.onSelect){let{onSelect:r}=e;return(0,t.jsx)("button",{type:"button",onClick:()=>r(i,o),className:(0,n.cn)("cursor-pointer",s),"aria-current":a?"page":void 0,children:o.label})}let{basePath:d,mpa:u}=e,p=o.href??("/"===o.slug?d||"/":`${d}/${o.slug}`);return(0,t.jsx)(l.default,{href:p,mpa:u,className:s,"aria-current":a?"page":void 0,sourceModule:"subnavigation",children:o.label})},u=(0,r.memo)(e=>{let{links:r,activeIndex:l,className:c,constrained:u=!0}=e,p=(0,i.useAtomValue)(o.deviceClassAtom),{ref:g,showLeft:f,showRight:m,scrollLeft:v,scrollRight:h}=(0,s.useHorizontalScroll)({enabled:"mobile"!==p&&"tablet"!==p,scrollAmount:200,contentKey:r});return(0,t.jsxs)("div",{className:(0,n.cn)("relative overflow-hidden rounded-3xl bg-white p-1 shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]","md:rounded-4xl md:rounded-[28px]",u&&"md:mr-auto md:max-w-[min(958px,100%)]",c),"data-testid":"subnavigation",children:[(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -left-25 h-full w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":f}),"aria-hidden":"true"}),(0,t.jsx)(a.ScrollButton,{hidden:!f,onClick:v,direction:"left"}),(0,t.jsx)("div",{ref:g,className:(0,n.cn)("scrollbar-hide flex h-10 items-center gap-1 overflow-x-auto md:h-12"),children:r.map((r,n)=>e.onSelect?(0,t.jsx)(d,{link:r,index:n,activeIndex:l,onSelect:e.onSelect},`${r.label}_${r.slug}`):(0,t.jsx)(d,{link:r,index:n,activeIndex:l,basePath:e.basePath,mpa:e.mpa},`${r.label}_${r.slug}`))}),(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -right-25 h-full w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":m}),"aria-hidden":"true"}),(0,t.jsx)(a.ScrollButton,{hidden:!m,onClick:h,direction:"right"})]})},(e,t)=>e.activeIndex===t.activeIndex&&e.basePath===t.basePath&&e.mpa===t.mpa&&e.onSelect===t.onSelect&&e.constrained===t.constrained&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));u.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,u],457492)},731672,e=>{"use strict";var t=e.i(546446),r=e.i(965586),n=e.i(671525),i=e.i(889753),o=e.i(810564),a=e.i(45846),s=e.i(284007),l=e.i(756227),c=e.i(358273),d=e.i(247865),u=e.i(540768),p=e.i(682142),g=e.i(782937),f=e.i(695881),m=e.i(333350),v=e.i(64412),h=e.i(950771),w=e.i(537989),C=e.i(695203),b=e.i(158662),E=e.i(777638),S=e.i(924776),y=e.i(409628),A=e.i(605781);let _=(0,f.createLogger)("useUserLoggedOut");e.s(["useUserLogout",0,function({reload:e=!0}={}){let f=(0,t.useSetAtom)(i.userPreferencesAtom),I=(0,l.useResetAuthState)(),{refresh:R}=(0,n.usePageNavigation)(),T=((e={})=>{let r=(0,t.useAtomValue)(w.pageIdAtom),n=(0,t.useAtomValue)(h.pageLocaleAtom),i=(0,t.useAtomValue)(C.deviceClassAtom),o=(0,t.useAtomValue)(b.experimentJoinListAtom),{location:a}=(0,v.useLocation)(),s=(0,S.useIsHightouchReady)(),{url:l,logoutMethod:f}=e;return(0,d.useCallback)(()=>{if(!m.default||!s)return;let e=(0,p.getCICookie)(),t=e?.["TWC-GeoIP-Country"]??(0,u.getCookie)("twc-location-country"),d=e?.["TWC-GeoIP-Region"]??(0,u.getCookie)("twc-location-region"),v=e?.["TWC-Privacy"]??(0,u.getCookie)("twc-privacy"),h=window.DprSdk?.getGdprConsentOptInsString()??"",w=window.DprSdk?.getCcpaSaleOptInString()??"",C=window.navigator?.globalPrivacyControl??!1,b=h?.includes("functional-technology")??!1,S=window.DprSdk?.getUserConsent("geographically-relevant-advertising")!==!1,I=navigator?.cookieEnabled??!1,R=(0,u.getCookie)("partner")||"",T=(0,g.getPartnerByPattern)(R)??R,k=(0,c.getMetricsSession)(),x=k?.sessionId||"",O=k?.sessionStartTime||0,P=new Date,L=P.getHours(),D=y.WEEK_DAYS[P.getDay()]??"",N=-P.getTimezoneOffset()/60,j=document.referrer,U={url:l??window.location.pathname,logoutMethod:f??"manual",referrer:j,privProducts:w,deviceTimeZone:N,pageId:r??"",locale:n,deviceClass:i,sessionId:x,sessionStartTime:O,partner:T,wlocCity:a?.city??null,wlocCountry:a?.countryCode??null,wlocState:a?.adminDistrictCode??null,wlocDMA:a?.dmaCd??null,dayOfWeek:D,regime:v??"",cookiesEnabled:I,gpcSignalOptOut:C,functionalTechnologies:b,geographicallyRelevantAds:S,priv:h,hourOfDay:L,physicalCountry:t??"",physicalState:d??"",campaign:(0,E.getCampaign)()??void 0,tpcc:(0,E.getTpcc)(),linkReferral:(0,E.getLinkReferral)(),experimentJoinList:o,weatherMode:"normal",samsungVersion:(0,E.getSamsungVersion)(),appVersion:"389773fb268e11f29ae005c6d1e2df0edccc3d48".slice(0,10)};try{(0,A.trackUserLoggedout)(U),_.info('Hightouch: Event "user-loggedout" tracked')}catch(e){_.error('Hightouch: Event "user-loggedout" failed',{error:e})}},[l,f,r,n,i,o,a,s])})();return async()=>{try{return(0,c.regenerateMetricsSession)(),await a.upsxClient.auth.logout(),T(),I(),f(s.RESET),(0,r.deleteCookie)("twc-user",{domain:(0,o.upsxCookieDomain)(window.location.hostname)}),e&&R({mpa:!0}),!0}catch(e){return console.error("Failed to log out:",e),!1}}}],731672)}]);