1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[94],{90219:(e,a,l)=>{l.r(a),l.d(a,{default:()=>g});var t=l(67294),c=l(86933),n=l(3280),r=l(94184),o=l.n(r),i=l(86706),s=l(29665),m=l(83660),d=l(98760),u=l(24512),E=l(56514);const g=e=>{let{setOpen:a}=e;const l=(0,i.I0)(),r=(0,s.getAll)(),g=r.find((e=>e.code===window.locale)),p=localStorage.getItem("displayCurrency")||E.Ep,[v,w]=(0,t.useState)(g),[f,N]=(0,t.useState)(p),y=(0,u.rn)();return t.createElement(t.Fragment,null,t.createElement("div",{className:"account-modal-title"},t.createElement(c.Z,{id:"language-modal.welcome",defaultMessage:"Language"}),y&&t.createElement(c.Z,{id:"language-modal.welcome-extra",defaultMessage:" and Currency"})),t.createElement("div",{className:"language-selection"},r.map((e=>t.createElement(n.Z,{key:e.code,color:"link",className:o()("language",{active:e.code===v.code}),onClick:()=>w((0,s.publicFormat)(e))},t.createElement("div",{className:"selection-circle"},e.code===v.code&&t.createElement("div",{className:"inner-circle"})),t.createElement("div",null,e.nativeLabel))))),y&&t.createElement("div",null,t.createElement("div",{className:"currency-intro"},t.createElement("p",null,t.createElement(c.Z,{id:"language-modal.currency-intro",defaultMessage:"Exchange rates may vary. You will be charged in "}),t.createElement("span",null,`${E.K7} (${E.Ep}).`))),t.createElement("div",{className:"currency-selection"},t.createElement(n.Z,{color:"link",className:o()("currency",{active:f===E.Ep}),onClick:()=>N(E.Ep)},t.createElement("div",{className:"selection-circle"},f===E.Ep&&t.createElement("div",{className:"inner-circle"})),t.createElement("div",null,`${E.K7} (${E.Ep})`)),t.createElement(n.Z,{color:"link",className:o()("currency",{active:f===E.jl}),onClick:()=>N(E.jl)},t.createElement("div",{className:"selection-circle"},f===E.jl&&t.createElement("div",{className:"inner-circle"})),t.createElement("div",null,`${E.e6} (${E.jl})`)))),t.createElement("div",{className:"account-modal-form"},t.createElement("div",{className:"account-modal-form-buttons"},t.createElement("div",{className:"form-button-container"},t.createElement(n.Z,{color:"primary",onClick:()=>(async(e,t)=>{localStorage.setItem("language",JSON.stringify(e)),localStorage.setItem("displayCurrency",t),await(0,m.M_)(e);const c=e.code!==window.locale;if(l((0,d.CE)()),c){l({type:"frontend/languages/CHANGE_LANGUAGE",payload:{context:"footer-modal",from:window.locale,to:e.code}});const a=new RegExp(window.locale),t=window.location.pathname.replace(a,e.code);window.location.href=window.location.origin+t+window.location.search}else a()})((0,s.publicFormat)(v),f)},t.createElement(c.Z,{id:"language-modal.update-settings",defaultMessage:"Update Settings"}))))))}}}]); 2//# sourceMappingURL=LanguagePickerModal.18edc6bc.js.map
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.