1import{importShared as n}from"./__federation_fn_import-CEP4bGph.js";import{j as e}from"./jsx-runtime-BjG_zV1W.js";import{ap as u,D as d,z as m}from"./useGTM-6CiILgP4.js";import{I as h}from"./index-Dn2xOol2.js";import{u as C}from"./useTranslate-BhYKDIKX.js";import{u as l}from"./countries-wM8W1bUm.js";const y=o=>{const{countries:s,onSelect:r}=o,a=C();return e.jsxs("div",{className:"CountrySelect",children:[e.jsx("div",{className:"CountrySelect__search",children:e.jsx(h,{name:"country",placeholder:a("casino.countries.search"),value:""})}),e.jsx("div",{className:"CountrySelect__list",children:s&&s.length&&s.map((t,i)=>e.jsxs("div",{className:"CountrySelect__country","data-analytic-key":"auth.countries.item_country","data-analytic-entity-id":t.code,onClick:()=>r(t.code),children:[e.jsx("div",{className:"CountrySelect__flag",children:e.jsx("img",{src:`https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/flags/1x1/${t.code.toLowerCase()}.svg`,alt:t.name})}),e.jsx("div",{className:"CountrySelect__name",children:t.name})]},i+t.code))})]})},{useMemo:f}=await n("react"),{FormProvider:x,useForm:j}=await n("react-hook-form"),S=()=>{const{data:o}=u(),s=l(c=>c.setCountryCode),r=j(),a=r.watch(),t=c=>{s(c)},i=f(()=>a.country&&o?o.filter(c=>c.name.toLowerCase().includes(a.country.toLowerCase())):o??null,[a,o]);return e.jsx(x,{...r,children:e.jsx(y,{countries:i,onSelect:t})})},{useEffect:p}=await n("react"),{FormProvider:v,useForm:_}=await n("react-hook-form"),{useNavigate:g}=await n("react-router-dom"),P=()=>{const o=g(),s=_(),r=l(t=>t.countryCode);p(()=>{r&&o(-1)},[r]);const a=()=>{o(-1)};return e.jsx(d,{title:"casino.countries.select",onClose:a,closeIcon:e.jsx(m,{"data-analytic-key":"auth.countries.icon_close",style:{display:"block"}}),children:e.jsx(v,{...s,children:e.jsx(S,{})})})};export{P 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.