import{_ as h,i as p,G as m,k as g,r as i,o as n,a as v,w as s,p as l,l as c,b as f}from"./main-DtyiNRRn.js";import S from"./RetailerSearchFi-Dz7tF2gx.js";import{_ as y}from"./distanceMixin-zxg0wk3d.js";import{g as L}from"./fieldTransformations-DY2-qceq.js";import"./LoadingIndicatorWrapper-Cd2Pg2hk.js";import"./GMapMap-OK_M6BFX.js";import"./GridColumnsFi-g3v7QeQd.js";import"./BlockNotificationFi-BuUtmEX2.js";import"./AssetService-SVtDjug-.js";import"./SelectInputFi-y7iX7osI.js";import"./PaginationProgressBar-BeoLQCaE.js";const R={name:"RetailerSearchPageFi",components:{ComponentWrapper:p,GridContainerFi:m,RetailerSearchFi:S},mixins:[g,y],inject:["fields"],computed:{countryList(){return L(this.fields,"countryList",[])},ranges(){var r;const e=[];return(r=this.fields.retailerSearchRanges)!=null&&r.value&&this.fields.retailerSearchRanges.value.split(",").forEach(t=>{e.push({name:`${t} ${this.unit}`,value:t})}),e.length?e:void 0},defaultRange(){var e;if((e=this.fields.retailerSearchDefaultRange)!=null&&e.value)return this.fields.retailerSearchDefaultRange.value}}},k={class:"retailer-search-page-fi"},H={class:"fi-col-start-1 lg:fi-col-start-4 fi-col-end-13 lg:fi-col-end-10"},M=["innerHTML"],w=["innerHTML"],B={class:"fi-col-start-1 lg:fi-col-start-2 fi-col-end-13 lg:fi-col-end-12"};function C(e,r,t,F,T,a){const o=i("grid-container-fi"),_=i("retailer-search-fi"),u=i("component-wrapper");return n(),v(u,null,{default:s(()=>[l("div",k,[c(o,null,{default:s(()=>{var d;return[l("div",H,[e.isEditMode?(n(),f("h1",{key:0,class:"retailer-search-page-fi__headline",innerHTML:a.fields.retailerSearchHeadline.editable},null,8,M)):(n(),f("h1",{key:1,class:"retailer-search-page-fi__headline",innerHTML:(d=a.fields.retailerSearchHeadline)==null?void 0:d.value},null,8,w))])]}),_:1}),c(o,{container:e.isSM},{default:s(()=>[l("div",B,[c(_,{fields:a.fields,"country-list":a.countryList[1],"default-country":a.countryList[2],ranges:a.ranges,"default-range":a.defaultRange,"retailer-search-page":""},null,8,["fields","country-list","default-country","ranges","default-range"])])]),_:1},8,["container"])])]),_:1})}const W=h(R,[["render",C],["__scopeId","data-v-2cc18d01"]]);export{W as default};