PageSourceSearch

https://www.mondaymerch.com/shop/_nuxt/-zY5ktx3.js

js mondaymerch.com collected 2026-09-25 19:55:22 UTC 7,082 bytes, 1 lines download raw bytes

1import{M as de}from"./XW2HGwAd.js";import{d as te,o as v,c as y,w as a,a as fe,m as pe,u as r,P as me,b as ve,e as ge,f as j,G as he,g as k,h as be,i as _e,j as D,k as h,l as Ce,n as ye,p as s,q as G,t as d,s as f,v as z,F as R,x as T,y as we,z as Se,A as xe,L as C,B as Le,C as B}from"./BkFNd4Gq.js";import{S as q,a as K,b as Y,c as H,d as J,e as Q,f as W,g as X}from"./fRws7KBe.js";import{u as Pe}from"./DtHFko1W.js";import{M as Z}from"./DsxuQTAJ.js";import{B as ke}from"./ClSrj-v2.js";import{B as Ge}from"./oegTg2Th.js";import"./Dz8RFnud.js";import"./zFMjUu_4.js";import"./5c-S9OT8.js";import"./BbrM7EhO.js";import"./fRiMiWOG.js";import"./9w6Og10j.js";import"./CArcnfth.js";import"./BR8ME3Ce.js";import"./DlAUqK2U.js";import"./DIqu2b3O.js";import"./BwBbeyaZ.js";import"./Cbz15lSX.js";const[lt,Be]=ve("SelectGroup");var $e=te({__name:"SelectGroup",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup($){const g=$,u=Pe(void 0,"reka-select-group");return Be({id:u}),(w,b)=>(v(),y(r(me),pe({role:"group"},g,{"aria-labelledby":r(u)}),{default:a(()=>[fe(w.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),ee=$e;const Ne={class:"text-neutral-900 text-base font-medium uppercase"},Ue={class:"text-neutral-900 text-sm font-normal mb-8"},Ve={class:"space-y-6"},Me={class:"flex flex-col items-start justify-start"},Ae={class:"block text-neutral-900 text-xs font-medium uppercase"},Oe={class:"flex flex-col items-start justify-start"},Ie={class:"block text-neutral-900 text-xs font-medium uppercase"},Ee=te({__name:"GeoPreferencesModal",setup($){const{t:g}=ge(),u=j("show-geo-modal"),w=j(he),b=k(new de("sm")),n=k(""),c=k(""),N=be(),{countries:U,getCountryNameKey:oe,getAvailableLanguages:S,getOtherCountries:ae}=_e();D(n,()=>{const e=M.value;!e.some(o=>o.code===c.value)&&e.length>0&&(c.value=e[0].code)});const x=h(()=>!!n.value&&!!c.value),V=h(()=>{if(!U.value?.regionGroups)return[];const{northAmerica:e,europe:t,other:o}=U.value.regionGroups;return[...e,...t,...o]}),p=h(()=>[...V.value.map(t=>({code:t.iso,name:t.name||t.iso})),{code:"other",name:g("modals.geoPreferences.otherCountry")}]),le=h(()=>p.value.map(e=>({code:e.code,name:re(e.code)}))),re=e=>{const t=oe(e.toLowerCase());try{const o=g(`countrySelector.regions.${t}`,{},{locale:"en"});return o&&o!==`countrySelector.regions.${t}`?o:p.value.find(i=>i.code===e)?.name||e}catch{return p.value.find(i=>i.code===e)?.name||e}},M=h(()=>n.value?S(n.value.toLowerCase()).map(t=>({code:t.localeCode,label:A(t.key)})):(Ce().$i18n?.availableLocales??[]).map(l=>({code:String(l),label:A(String(l))}))),A=e=>{try{const t=g(`countrySelector.languages.${e}`,{},{locale:"en"});return t&&t!==`countrySelector.languages.${e}`?t:e.charAt(0).toUpperCase()+e.slice(1)}catch{return e.charAt(0).toUpperCase()+e.slice(1)}},O=e=>S(e.toLowerCase())[0]?.localeCode||"en",L=e=>{const t=(e||"").toUpperCase(),o=p.value.find(l=>l.code.toUpperCase()===t);return o?o.code:"other"},se=(e,t)=>S(e.toLowerCase()).find(l=>l.key===t)?.localeCode||O(e),ne=async()=>{try{return((await $fetch("/api/geo-location"))?.countryCode??"EN").toString().toUpperCase()}catch{return"EN"}},I=e=>{const t=(e||"").toUpperCase(),o=we(N.path),l=Se(),i=o||l,_=i?xe(i):"";let m;o&&o!=="en"&&C[o]?m=L(C[o]):!o&&l&&l!=="en"&&C[l]?m=L(C[l]):m=L(t),n.value=m,c.value=_?se(m,_):O(m)},E=e=>{if(Le(N.path,w.value,e)){b.value.open();return}const{persistPreferred:t}=B();t(c.value,n.value,{confirm:!1}),u.value=void 0},ue=()=>{b.value.close(),u.value=void 0},F=async()=>{if(!x.value)return;const e=c.value.toLowerCase(),t=n.value.toUpperCase(),o=V.value.find(l=>l.iso?.toUpperCase()===t);if(o){const{switchLocale:l}=B();await l(e,o,!1)}else{const{persistPreferred:l,switchLocale:i}=B();l(e,t);const _=ae()[0];await i(e,_,!1)}u.value=void 0};let P=!1;const ce=async()=>{P=!0,await F(),ue()},ie=async()=>{if(P){P=!1;return}x.value?await F():u.value=void 0};return ye(async()=>{{if(!u.value)return;const e=await ne();if(p.value.length)I(e),E(e);else{const t=D(p,o=>{o.length&&(I(e),E(e),t())},{immediate:!1})}}}),(e,t)=>(v(),y(Ge,{"modal-state":b.value,"has-close-button":!1,"on-before-close":ie,"border-radius":"md","background-color":"light","padding-size":"wide"},{title:a(()=>[f("h2",Ne,d(e.$t("modals.geoPreferences.title")),1)]),content:a(()=>[f("p",Ue,d(e.$t("modals.geoPreferences.description")),1),f("div",Ve,[f("div",Me,[f("label",Ae,d(e.$t("modals.geoPreferences.countryLabel")),1),s(r(q),{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=o=>n.value=o)},{default:a(()=>[s(r(K),{class:"w-full border-b border-neutral-500 flex justify-between items-center py-1 text-base font-normal text-neutral-900 focus:outline-none focus:ring-0"},{default:a(()=>[s(r(Y),{placeholder:e.$t("modals.geoPreferences.countryPlaceholder")},null,8,["placeholder"]),s(Z,{icon:"heroChevronDown20Solid","custom-class":"h-5 w-5"})]),_:1}),s(r(H),null,{default:a(()=>[s(r(J),{class:"z-[200] w-full overflow-hidden rounded-md border border-neutral-500 bg-neutral-50 text-neutral-900 font-normal text-sm shadow-md"},{default:a(()=>[s(r(Q),{class:"p-1"},{default:a(()=>[s(r(ee),null,{default:a(()=>[(v(!0),z(R,null,T(le.value,o=>
1(v(),y(r(W),{key:o.code,value:o.code,class:"relative flex select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm font-normal text-neutral-900 outline-none focus:bg-neutral-100 hover:bg-neutral-100 data-[state=checked]:bg-neutral-100 cursor-pointer"},{default:a(()=>[s(r(X),null,{default:a(()=>[G(d(o.name),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])]),f("div",Oe,[f("label",Ie,d(e.$t("modals.geoPreferences.languageLabel")),1),s(r(q),{modelValue:c.value,"onUpdate:modelValue":t[1]||(t[1]=o=>c.value=o)},{default:a(()=>[s(r(K),{class:"w-full border-b border-neutral-500 flex justify-between items-center py-1 text-base font-normal text-neutral-900 focus:outline-none focus:ring-0"},{default:a(()=>[s(r(Y),{placeholder:e.$t("modals.geoPreferences.languagePlaceholder")},null,8,["placeholder"]),s(Z,{icon:"heroChevronDown20Solid","custom-class":"h-5 w-5"})]),_:1}),s(r(H),null,{default:a(()=>[s(r(J),{class:"z-[200] w-full overflow-hidden rounded-md border border-neutral-500 bg-neutral-50 text-neutral-900 font-normal text-sm shadow-md"},{default:a(()=>[s(r(Q),{class:"p-1"},{default:a(()=>[s(r(ee),null,{default:a(()=>[(v(!0),z(R,null,T(M.value,o=>
1(v(),y(r(W),{key:o.code,value:o.code,class:"relative flex select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm font-normal text-neutral-900 outline-none focus:bg-neutral-100 hover:bg-neutral-100 data-[state=checked]:bg-neutral-100 cursor-pointer"},{default:a(()=>[s(r(X),null,{default:a(()=>[G(d(o.label),1)]),_:2},1024)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"])])])]),buttons:a(()=>[s(ke,{variant:"solid",color:"primary",class:"mt-3.5 h-12","full-width":!0,disabled:!x.value,onClick:ce},{default:a(()=>[G(d(e.$t("modals.geoPreferences.continue")),1)]),_:1},8,["disabled"])]),_:1},8,["modal-state"]))}}),rt=Object.assign(Ee,{__name:"UiModalGeoPreferencesModal"});export{rt as default};

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.