1import{_ as z}from"./DgAbpuX5.js";import{d as S,a as T,c as U,r as V,a4 as $,j as m,q as n,l as j,h,i as u,m as _,aG as G,co as M,C as v,Z as y,cB as O,cA as A,n as F,Y as H,k as Y,ak as q,b4 as D,B as l,ee as R,V as X}from"./CCFi5x9s.js";import{V as Z}from"./DPV_hxoy.js";const J={class:"search-box px-4 py-4"},K={key:0,class:"text-center pb-4 no-result"},P={key:1,class:"list-container"},Q={key:0,class:"group-header px-4 font-weight-bold"},W=S({__name:"CountryGroup",props:{modelValue:{},languageCode:{}},emits:["update:modelValue","close"],setup(g,{emit:k}){const i=g,f=k,{$tt:c}=T(),x=G(),{getCountry:b,getCountries:w}=U(),I=w(),p=V(i.modelValue.id);$(()=>i.modelValue,o=>{p.value=o.id});const r=V(""),L={ja:[158,840,36],en:[840,36,702,124],"zh-Hans":[156,344,446],"zh-Hant":[158,156,344],ko:[410],th:[764]},E=v(()=>(L[i.languageCode]||[]).map(a=>b(a)).filter(a=>!!a)),C=v(()=>{let o=I.filter(t=>{const s=r.value.toLowerCase();return!R.includes(t.id)&&((t.name_en||"").toLowerCase().includes(s)||(t.name||"").toLowerCase().includes(s))});if(o=[...o].sort((t,s)=>(t.name_en||"").localeCompare(s.name_en||"")),r.value)return[{type:"header",title:c("web_search_result","æ¤ç´¢çµæ")},...o.map(t=>({type:"country",data:t}))];const a=[],d=E.value;d.length>0&&(a.push({type:"header",title:c("web_popular_countries","ãã使ããã¦ãã¾ã")}),d.forEach(t=>a.push({type:"country",data:t})));const e={};return o.forEach(t=>{const s=(t.init||"").toUpperCase();e[s]||(e[s]=[]),e[s].push(t)}),Object.keys(e).sort().forEach(t=>{const s=e[t];s&&s.length>0&&(a.push({type:"header",title:t}
1),s.forEach(B=>a.push({type:"country",data:B})))}),a}),N=o=>{f("update:modelValue",o),f("close")};return(o,a)=>{const d=z;return l(),m(D,{class:"select-menu-card","min-width":"320"},{default:n(()=>[j("div",J,[u(M,{id:_(x),modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=e=>r.value=e),placeholder:_(c)("web_search_country_region","å½ã»å°åãæ¤ç´¢"),density:"compact",variant:"outlined","hide-details":"","prepend-inner-icon":"mdi-magnify",rounded:"pill",class:"search-input","bg-color":"white",clearable:"","onClick:clear":a[1]||(a[1]=e=>r.value="")},null,8,["id","modelValue","placeholder"])]),C.value.filter(e=>e.type==="country").length===0?(l(),h("div",K,y(_(c)("web_no_search_result","æ¤ç´¢çµæãè¦ã¤ããã¾ããã§ãã")),1)):(l(),h("div",P,[u(Z,{items:C.value},{default:n(({item:e})=>[e.type==="header"?(l(),h("div",Q,y(e.title),1)):(l(),m(O,{key:1,class:"country-item px-4",onClick:t=>N(e.data)},{prepend:n(()=>[u(d,{id:e.data.id,width:40,height:27,class:"mr-4"},null,8,["id"])]),append:n(()=>[e.data.id===p.value?(l(),m(q,{key:0,icon:"mdi-check",color:"#0071E3",size:"24"})):Y("",!0)]),default:n(()=>[u(A,{class:F(["country-item-name",{"selected-text":e.data.id===p.value}])},{default:n(()=>[H(y(e.data.name),1)]),_:2},1032,["class"])]),_:2},1032,["onClick"]))]),_:1},8,["items"])]))]),_:1})}}}),se=X(W,[["__scopeId","data-v-6f76946a"]]);export{se 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.