import{d as p,e as h,f as c,o as s,c as n,a as o,w as m,v as f,F as v,r as w,u as l,T as C,b as y,t as S,g as T,_ as g}from"./index-DpQ5MC1S.js";const k={class:"dropdown__modal"},x={class:"dropdown__search"},L={class:"dropdown__list"},b=["onClick","data-test-id"],B={class:"dropdown__flag","aria-hidden":"true",width:"16",height:"16"},D=["href"],N=p({__name:"SelectCountryModal",emits:["clickToSelectCountryButton"],setup(O,{emit:d}){const t=T(""),u=h(()=>t.value&&t.value.length?c.filter(a=>a.name.toLocaleLowerCase().includes(t.value.toLocaleLowerCase())):c),i=d,_="/v3/6866/dog-house-fortune-wheel";return(a,r)=>(s(),n("div",k,[o("label",x,[m(o("input",{type:"text",class:"dropdown__input",placeholder:"Country search","onUpdate:modelValue":r[0]||(r[0]=e=>t.value=e)},null,512),[[f,t.value]])]),o("ul",L,[(s(!0),n(v,null,w(u.value,e=>(s(),n("li",{class:"dropdown__item",key:e.code},[o("button",{class:"dropdown__button-item",type:"button",onClick:E=>i("clickToSelectCountryButton",e.code),"data-test-id":e.code=="ru"?l(C).MODAL.REGISTRATION.DROPDOWN.RUSSIA_PHONE:null},[(s(),n("svg",B,[o("use",{href:`${l(_)}/sprites/country-flags.svg#${e.code}`},null,8,D)])),y(" "+S(e.name),1)],8,b)]))),128))])]))}}),M=g(N,[["__scopeId","data-v-905a2133"]]);export{M as default};
