1import{d as k,a as P,c,r as v,w as j,o as q,b as B,e as F,f as u,g as H,h as d,i as D,j as o,n as T,F as x,k as y,T as G,l as N}from"./vendor-DAhJwOS6.js";const O=k("globalStore",{state:()=>({assets:{},storage:"",showLanguageModal:!1,showMobileMenu:!1,requestToShowVideo:null,modalInitiator:null,socials:{},showingModal:!1,currentRoute:null,isMobile:!1,isTablet:!1,isDesktop:!1,reducedMotion:!1,isPortrait:!1,routes:{}}),actions:{initializeFromSettings(e){this.assets=e.assets,this.currentRoute=e.currentRoute,this.routes=e.routes,this.storage=e.storage,this.socials=Object.entries(e.social).map(([i,l])=>({id:i,caption:l.caption,link:l.link,tooltip:l.tooltip,class:l.class}))},setIsMobile(e){this.isMobile=e},setIsTablet(e){this.isTablet=e},setReducedMotion(e){this.reducedMotion=e},setIsPortrait(e){this.isPortrait=e},setShowLanguageModal(e){this.showLanguageModal=e,this.showMobileMenu||this.showModal(e)},setShowMobileMenu(e){this.showMobileMenu=e,this.showModal(e)},setModalInitiator(e){this.modalInitiator=e},showModal(e){this.showingModal=e,e?document.querySelector("body").classList.add("show-modal"):document.querySelector("body").classList.remove("show-modal")}}}),V=k("loc",{state:()=>({isoLocale:"en_US",locale:"en-us",language:"en",baseLocale:"en",ui:null,ageGate:null,pageLoc:null,regions:null,sectors:null,rating:"esrb",localeReading:null}),actions:{setPageLoc(e){this.pageLoc=e},initializeFromSettings(e){this.isoLocale=e.isoLocale,this.locale=e.locale,this.language=e.language,this.baseLocale=e.resolvedCustomRegion,this.rating=e.rating,this.ui=e.localization.ui,this.ageGate=e.localization.ageGate,this.sectors=e.localization.sectors,this.regions=e.localization.regions,this.localeReading=e.currentLocaleNativeReading}}}),$={key:0,id:"LanguageModal",class:"modal-mask"},U={class:"modal-wrapper"},A={class:"modal-body"},K=["innerHTML"],J=["innerHTML"],Q=["data-index","data-locale","aria-current","lang","hreflang","href","innerHTML"],W='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',X=P({name:"Language Modal",__name:"LanguageModal",setup(e){const i=O(),l=V(),g=c(()=>l.locale),w=c(()=>{var a;return((a=l.ui)==null?void 0:a.languageModal)||{}}),z=c(()=>l.sectors),f=c(()=>i.showLanguageModal),E=c(()=>i.modalInitiator),R=c(()=>i.showMobileMenu),m=v(null),M=v(null),L=v(null),p=()=>{var a;i.setShowLanguageModal(!1),(a=E.value)==null||a.focus(),i.setModalInitiator(null)},C=(a,t)=>t==="ko-kr"||t==="ja-jp"?a.native:t==="zh-tw"||t==="zh-hk"?a.label:t==="ar-sa"||t==="ar-ae"?a.region:`${a.region} - ${a.native}`,b=a=>{var s,n;a.key==="Escape"&&p(),(a.key==="Tab"||a.keyCode===9)&&(a.shiftKey?document.activeElement===m.value&&((s=M.value)==null||s.focus(),a.preventDefault()):document.activeElement===M.value&&((n=m.value)==null||n.focus(),a.preventDefault()))},_=a=>{a?N(()=>{var n;const t=document.querySelector("#LanguageModal"),s=(n=L.value)==null?void 0:n.querySelector(`a[data-locale=${g.value}]`);if(t){const h=t.querySelectorAll(W);m.value=h[0],M.value=h[h.length-1],s==null||s.focus()}document.addEventListener("keydown",b)}):document.removeEventListener("keydown",b)};return j(f,_),q(()=>{_(f.value)}),B(()=>{document.removeEventListener("keydown",b)}),(a,t)=>(u(),F(G,{name:"modal"},{default:H(()=>[f.value?(u(),d("div",$,[o("div",U,[o("div",{class:T(["modal-content",{full:R.value}]),"aria-modal":"true","aria-labelledby":"ModalLanguageTitle",role:"dialog"},[o("div",A,[o("button",{type:"button",class:"btn-close close","aria-label":"close",onClick:p},t[0]||(t[0]=[o("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26.16 26.16"},[o("g",null,[o("g",{style:{fill:"currentColor"}},[o("rect",{x:"-4.92",y:"12.58",width:"36",height:"2",transform:"translate(13.08 -5.42) rotate(45)"}),o("rect",{x:"-4.92",y:"12.58",width:"36",height:"2",transform:"translate(-5.42 13.08) rotate(-45)"})])])],-1)])),o("h2",{id:"ModalLanguageTitle",innerHTML:w.value["select-region"]},null,8,K),o("div",{ref_key:"regionsRef",ref:L,class:"d-flex flex-column"},[(u(!0),d(x,null,y(z.value,(s,n,h)=>(u(),d("div",{key:n,class:"sector"},[o("h3",{innerHTML:w.value[n]},null,8,J),o("ul",null,[(u(!0),d(x,null,y(s,(S,r,I)=>(u(),d("li",{key:r},[o("a",{class:T({active:r===g.value}),"data-index":I,"data-locale":r,"aria-current":r===g.value?"page":!1,lang:r,rel:"alternate",hreflang:r,href:S.route,innerHTML:C(S,r)},null,10,Q)]))),128))])]))),128))],512)])],2)])])):D("",!0)]),_:1}))}}),Z=Object.freeze(Object.defineProperty({__proto__:null,default:X},Symbol.toStringTag,{value:"Module"}));
1export{Z as L,V as a,O 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.