import{d as f,a as v,bO as S,r as b,f as g,h as t,i as s,z as h,g as a,v as l,o as k,bp as x,_ as N}from"./BxiWQxwE.js";import y from"./B_7hk5vn.js";import C from"./Egyo_DST.js";import"./6f6dE3EF.js";const B={class:"dialog-assortment"},I=["aria-label"],T={class:"dialog-assortment__content"},$={class:"dialog-assortment__content--search-store"},w=f({__name:"store-select",emits:["back","close"],setup(D,{emit:i}){const{$messages:o}=v(),{currentStore:p}=S(),n=b(),c=i,_=e=>{e&&(p.value={fullName:e.fullName,storeId:e.storeId,postalCode:e.postalCode,city:e.city}),clearTimeout(n.value),n.value=setTimeout(()=>{c("close")},200)};return(e,r)=>{const m=x,d=y,u=C;return k(),g("div",B,[t("button",{class:"back","aria-label":a(o)("aria.back"),onClick:r[0]||(r[0]=h(V=>c("back","store-options"),["prevent"]))},[s(m)],8,I),t("div",T,[t("h2",null,l(a(o)("assortment.popup.selectStore.title")),1),t("p",null,l(a(o)("assortment.popup.selectStore.description")),1),t("div",$,[s(d,{onSelectStore:_}),s(u,{onSelectStore:_})])])])}}}),O=N(w,[["__scopeId","data-v-d24ea919"]]);export{O as default};
