1import{d as g,f as o,h as u,g as m,B as r,I as a,F as b,C,j as h,o as n}from"./vendor.DFAb0jsy.js";import{a as S}from"./app.OtV8efoB.js";import{u as _}from"./use-country-specific-listing-page-results.BCMWQ17I.js";import"./js-cookie.Cz0CWeBA.js";const L={class:"form"},N={key:0,for:"country",class:"m-b-3 f-bold"},v=["disabled"],B={key:0,value:""},k=["value","selected"],x=g({__name:"CountrySpecificListingPageCountrySelection",props:{requireSelection:{type:Boolean,default:!1},requireSelectionLabel:{default:"Select country"},showLabel:{type:Boolean,default:!0}},setup(s){const d=S(),{countries:i,isLoading:l,selectedCountryName:f}=_();function y(c){const e=c.target.value;if(!e)return!1;d.emit("changeActiveCountry",e)}return(c,e)=>(n(),o("form",L,[s.showLabel?(n(),o("label",N,r(a(i).DisplayName),1)):u("",!0),m("div",{class:h(["form-select-container",{disabled:a(l)}])},[m("select",{id:"country",name:"country","aria-label":"Select country",disabled:a(l),onChange:e[0]||(e[0]=t=>y(t))},[s.requireSelection?(n(),o("option",B,r(s.requireSelectionLabel),1)):u("",!0),(n(!0),o(b,null,C(a(i).Facets,(t,p)=>(n(),o("option",{key:p,value:t.Name,selected:a(f)==t.Name},r(t.Name),9,k))),128))],40,v)],2)]))}});export{x 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.