1import{ch as I,n as _,o as O,f as x,cp as E,cu as $,cA as R,_ as w,ce as P,eN as T,z as N,c5 as C,cx as q,fW as H,x as y,eD as A,l as K,bq as z,m as v,c$ as U,b7 as Y,d as j,aM as W,dB as Q,ez as X,bi as J,cn as Z,w as tt,dC as et,dm as ot,T as nt}from"./D_3224tG.js";import{u as at}from"./BjYnBuiJ.js";import{u as st}from"./Cp-2a3KL.js";import{u as it}from"./D6pPrViH.js";const rt=["inert"],ut=I({__name:"NavigationA11yBoundary",setup(t){const{isNavigationOpen:e}=_();return(n,r)=>(O(),x("div",{class:$(n.$style.boundary),inert:E(e)},[R(n.$slots,"default")],10,rt))}}),ct="360",lt="412",vt="768",gt="1024",pt="1200",ft="1440",dt="1800",mt="2500",bt="_boundary_1psq0_27",yt={mobile:ct,mobileLarge:lt,tablet:vt,tabletLarge:gt,desktop:pt,desktopLarge:ft,desktopHuge:dt,desktopGigantic:mt,boundary:bt},_t={$style:yt},zt=Object.assign(w(ut,[["__cssModules",_t]]),{__name:"TopNavigationCommonNavigationA11yBoundary"}),Ut=Symbol("top-navigation-tab-item-name"),Yt=Symbol("top-navigation-tab-a11y-attrs"),ht=Symbol("navigation-escape-hint-id");function jt(t){return t?`navigation-tab-${t}`:void 0}function Tt(t){return t?`navigation-content-${t}`:void 0}function Nt(t){return t.replace("navigation-content-","")}const At=P(()=>{const t=N(null),e=N(null);function n(o){o!==t.value&&(t.value=o)}function r(){e.value=null,t.value?.focus()}function s(){e.value=null}async function c(o){const l=o.getAttribute("aria-controls");if(!l){console.warn("NavigationFocusManagement: Trigger has no aria-controls attribute.",{trigger:o,triggerId:o.id||null});return}const a=Nt(l),i=Tt(a);if(!i){console.warn(`NavigationFocusManagement: Content not found for tab with ID "${a}".`,{trigger:o,triggerId:o.id||null});return}const g=document.getElementById(i);if(!g){console.warn(`NavigationFocusManagement: No content found with ID "${l}".`,{trigger:o,triggerId:o.id||null});return}t.value=o,e.value=g,await C(),g.focus()}return{lastFocusedTrigger:T(t),lastFocusedSlot:T(e),saveTriggerFocus:n,restoreTriggerFocus:r,activateContentSlot:c,clearSlotFocus:s}}),kt="[role=tab]";function k(t,e){if(!e)return null;const n=Array.from(t.querySelectorAll(kt)),r=n.indexOf(e);return r>-1?{tabs:n,currentIndex:r}:null}function St(t){const{isNavigationOpen:e,closeNavigation:n}=_(),{restoreTriggerFocus:r}=At(),s=q(),c=H();
1y(c.escape,async a=>{a&&e.value&&(n(),await C(),r())});function o(a){if(!t.value)return;const i=k(t.value,s.value);i&&(a.preventDefault(),i.tabs[i.currentIndex-1]?.focus())}function l(a){if(!t.value)return;const i=k(t.value,s.value);i&&(a.preventDefault(),i.tabs[i.currentIndex+1]?.focus())}A(["ArrowLeft","ArrowUp"],o,{target:t}),A(["ArrowRight","ArrowDown"],l,{target:t})}const S="loyalty-top-navigation-account-onboarding-global-web";function It(){const{getExperimentVariantId:t,isLoadingExperiments:e,trackExperimentExposure:n}=K(),{isLoading:r}=z(),s=v(()=>t(S)),c=v(()=>typeof s.value=="string"&&s.value!=="off"),o=v(()=>s.value==="treatment"),l=v(()=>s.value!==null||!r.value&&!e.value);function a(){c.value&&n(S,s.value)}return{isExperimentResolved:l,isTreatmentVariant:o,trackTopNavigationOnboardingExposure:a}}const Ot=48;function xt(){const{bannerState:t}=U(),e={top:v(()=>t.isVisible&&t.position==="top"?t.height:0),bottom:v(()=>t.isVisible&&t.position==="bottom"?t.height:0),visibility:"always"},{hasTopHeaderTickerMessages:n}=it(),r={top:v(()=>n.value?Ot:0),bottom:v(()=>0),visibility:"closed-only"},s=[e,r];function c(m,d){return v(()=>s.filter(f=>!d||f.visibility===d).reduce((f,b)=>f+b[m].value,0))}const o=c("top"),l=c("bottom"),a=c("top","always"),i=c("bottom","always"),g=v(()=>({"--navigation-root-top-offset":`${o.value}px`,"--navigation-root-bottom-offset":`${l.value}px`,"--navigation-root-top-offset-open":`${a.value}px`,"--navigation-root-bottom-offset-open":`${i.value}px`}));return{topOffset:o,bottomOffset:l,topOffsetOpen:a,bottomOffsetOpen:i,styleOffset:g}}const Et=I({__name:"NavigationRoot",setup(t){Y(ht,"navigation-escape-hint");const e=j(),n=W(),{isNavigationOpen:r,closeNavigation:s,enableNavigationVisibility:c}=_(),{styleOffset:o}=xt(),{openAuthentication:l}=at(),a=Q(),{isAutoOnboardingEnabled:i,openAccountOnboarding:g}=st(),{isExperimentResolved:m,isTreatmentVariant:d,trackTopNavigationOnboardingExposure:f}=It(),b=X();St(b);const L=new Set(["login","signup"]);function B(){const{navState:u,...p}=e.query;return n.resolve({path:e.path,query:p,hash:e.hash}).fullPath}function M(){const{navState:u,...p}=e.query;u&&n.push({query:p})}function h(){const{navState:u}=e.query;if(u){if(typeof u!="string"||!L.has(u)){M();return}l({returnTo:B(),component:nt.Account,replace:!0})}}function F(u,p){u.path!==p.path&&(s(),c())}{const u=n.afterEach(F);J(()=>{u()})}Z(()=>{h()}),y(()=>e.query.navState,h);const V=v(()=>a.value?.path===e.path);tt(()=>V.value&&m.value,()=>{i.value&&(f(),d.value&&g(),a.value=null)},{immediate:!0,once:!0});const{isDesktop:D}=et();function G(){r.value&&s()}return y(D,G),(u,p)=>(O(),x("div",{class:$(u.$style.navigationRoot),style:ot(E(o))},[R(u.$slots,"default")],6))}}),$t="360",Rt="412",wt="768",Ct="1024",Lt="1200",Bt="1440",Mt="1800",Ft="2500",Vt="_navigationRoot_efiex_27",Dt={mobile:$t,mobileLarge:Rt,tablet:wt,tabletLarge:Ct,desktop:Lt,desktopLarge:Bt,desktopHuge:Mt,desktopGigantic:Ft,navigationRoot:Vt},Gt={$style:Dt},Wt=Object.assign(w(Et,[["__cssModules",Gt]]),{__name:"TopNavigationCommonNavigationRoot"});export{Wt as N,Ut as T,zt as a,xt as b,ht as c,Tt as d,Yt as e,jt as g,At as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.