import{_ as N,o as n,b as o,p as c,u as S,v as p,q as u,I,ay as oe,r as f,l as h,bg as ce,Z as V,w as y,n as R,F as P,e as F,az as de,k as D,N as ue,O as ge,D as K,T as he,a as v,h as J,ad as Q,b1 as X,ae as Y,C as $,x as me,i as fe,B as pe,Y as _e,a$ as ve,U as ye}from"./main-DtyiNRRn.js";import{L as ee}from"./LoadingIndicatorWrapper-Cd2Pg2hk.js";import{G as ke,a as be,b as Re}from"./GMapMap-OK_M6BFX.js";import{G as Se}from"./GridColumnsFi-g3v7QeQd.js";import{B as Me}from"./BlockNotificationFi-BuUtmEX2.js";import{g as T}from"./AssetService-SVtDjug-.js";import{S as Ne}from"./SelectInputFi-y7iX7osI.js";import{_ as G}from"./distanceMixin-zxg0wk3d.js";import{P as Ce}from"./PaginationProgressBar-BeoLQCaE.js";const Te={name:"AvailabilityIndicator",props:{isStocked:Boolean}},Le={class:"availability-indicator"},we={key:0,class:"availability-indicator__available"},Pe={key:1,class:"availability-indicator__likelyavailable"};function Fe(e,t,a,s,r,i){return n(),o("span",Le,[a.isStocked?(n(),o("span",we,[t[0]||(t[0]=c("span",{class:"availability-indicator__trafficlight availability-indicator__trafficlight__available"},null,-1)),S(" "+p(e.$dict.get("dealer-Locator.Availability-Indicator.Available")),1)])):(n(),o("span",Pe,[t[1]||(t[1]=c("span",{class:"availability-indicator__trafficlight availability-indicator__trafficlight__likelyavailable"},null,-1)),S(" "+p(e.$dict.get("dealer-Locator.Availability-Indicator.Likely-Available")),1)]))])}const te=N(Te,[["render",Fe],["__scopeId","data-v-fbf3bfe3"]]),Ie={inject:["$mapPromise"],emits:["map"],async created(){const e=await this.$mapPromise;this.$emit("map",e)}};function Ae(e,t,a,s,r,i){return u("",!0)}const De=N(Ie,[["render",Ae]]),w={Available:T("/img/google-maps-fi/marker-enabled.png"),AvailableActive:T("/img/google-maps-fi/marker-selected.png"),PartlyAvailable:T("/img/google-maps-fi/marker-enabled.png"),PartlyAvailableActive:T("/img/google-maps-fi/marker-selected.png"),Neutral:T("/img/google-maps-fi/marker-enabled.png"),NeutralActive:T("/img/google-maps-fi/marker-selected.png"),Start:T("/img/google-maps-fi/marker-enabled.png"),End:T("/img/google-maps-fi/marker-selected.png")};function Ee(e,t,a){let s;return e?t?a?s=w.AvailableActive:s=w.PartlyAvailableActive:s=w.NeutralActive:t?a?s=w.Available:s=w.PartlyAvailable:s=w.Neutral,s}function Oe(e){switch(e){case"Start":return w.Start;case"End":return w.End;default:return null}}const Z={mapTypeControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1,zoomControl:!1,styles:[{featureType:"water",elementType:"geometry",stylers:[{color:"#e9e9e9"},{lightness:17}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:20}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffffff"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#ffffff"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#ffffff"},{lightness:16}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#f5f5f5"},{lightness:21}]},{elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#ffffff"},{lightness:16}]},{elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#333333"},{lightness:40}]},{elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#f2f2f2"},{lightness:19}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#fefefe"},{lightness:20}]},{featureType:"administrative",stylers:[{visibility:"on"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#fefefe"},{lightness:17},{weight:1.2}]}]};function Ve(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Be={name:"RetailerSearchInputFi",components:{IconFi:I,LoadingIndicatorWrapper:ee,LabelFi:oe},props:{value:{type:String,default:""},userLocationLoading:{type:Boolean,default:!1},userLocationError:{type:Boolean,default:!1}},emits:["clear","input","keyup-enter","search","user-location"],data(){return{isFocused:!1,isActive:!1}},watch:{value(e){this.isActive=e!==""}},methods:{onFocusInput(){this.isFocused=!0},onKeyupEnter(){this.$emit("keyup-enter",this.value)},clearInput(){this.onInput(null),this.$emit("clear")},searchClicked(){this.$emit("search",this.value)},onInput(e){this.$emit("input",e?e.target.value:null)},onBlur(){this.isFocused=!1},userLocationClicked(){this.$emit("user-location")}}},xe={class:"retailer-search-input-fi__field"},Ge=["value"],Ue={class:"retailer-search-input-fi__icons"};function ze(e,t,a,s,r,i){const d=f("label-fi"),l=f("icon-fi"),g=f("loading-indicator-wrapper");return n(),o("div",{class:R(["retailer-search-input-fi",{"retailer-search-input-fi--focused":r.isFocused,"retailer-search-input-fi--active":r.isActive,"retailer-search-input-fi--error":a.userLocationError}])},[c("div",xe,[h(d,{class:"retailer-search-input-fi__label",label:e.$dict.get("dealer-Locator.Place-entry")},null,8,["label"]),c("input",{ref:"input",value:a.value,class:"retailer-search-input-fi__input",type:"text","data-test":"retailer-search-input",onKeyup:t[0]||(t[0]=ce((...m)=>i.onKeyupEnter&&i.onKeyupEnter(...m),["enter"])),onBlur:t[1]||(t[1]=(...m)=>i.onBlur&&i.onBlur(...m)),onFocus:t[2]||(t[2]=(...m)=>i.onFocusInput&&i.onFocusInput(...m)),onInput:t[3]||(t[3]=V((...m)=>i.onInput&&i.onInput(...m),["stop"]))},null,40,Ge)]),c("div",Ue,[c("div",{class:"retailer-search-input-fi__icon",onClick:t[4]||(t[4]=V((...m)=>i.searchClicked&&i.searchClicked(...m),["stop"]))},[h(l,{icon:"search"})]),a.value&&a.value!==""?(n(),o("div",{key:0,class:"retailer-search-input-fi__icon",onClick:t[5]||(t[5]=(...m)=>i.clearInput&&i.clearInput(...m))},[h(l,{icon:"close"})])):(n(),o("div",{key:1,class:"retailer-search-input-fi__icon",onClick:t[6]||(t[6]=V((...m)=>i.userLocationClicked&&i.userLocationClicked(...m),["stop"]))},[h(g,{loading:a.userLocationLoading,variant:"spinnerLocal",spinoff:"in-relative-centered"},{default:y(()=>[h(l,{icon:"my-location"})]),_:1},8,["loading"])]))])],2)}const qe=N(Be,[["render",ze]]),He={name:"RetailerSearchLocationFi",components:{RetailerSearchInputFi:qe},props:{autocompleteOptions:{type:Object,default:()=>({})},loc:{type:Object,default:null},locationError:{type:Boolean,default:!1}},emits:["location-changed","user-location-error"],data(){return{location:null,places:[],showPlaces:!1,selected:{},service:null,userlocation:{},userLocationLoading:!1,activePlace:!1,googleMaps:{lat:0,lng:0}}},watch:{google(){this.mapsInit()},location(){this.service===null&&this.mapsInit(),(!this.location||this.location.length===0)&&this.clearForm()},loc(e){this.location=(e==null?void 0:e.description)||""}},methods:{mapsInit(){this.service=new window.google.maps.places.AutocompleteService},async searchPlaces(e){var t;if(this.location=e,this.activePlace){this.activePlace=!1;return}try{if(this.service&&this.location){const a=await this.service.getPlacePredictions({input:this.location,componentRestrictions:(t=this.autocompleteOptions)==null?void 0:t.componentRestrictions}),{predictions:s}=a;this.places=s,this.showPlaces=!0}else this.$emit("location-changed",null)}catch(a){console.error(a)}},getLatLong(e){try{new window.google.maps.Geocoder().geocode({placeId:e.place_id},async(a,s)=>{s===window.google.maps.GeocoderStatus.OK&&(this.googleMaps.lat=await a[0].geometry.location.lat(),this.googleMaps.lng=await a[0].geometry.location.lng(),this.$emit("location-changed",{description:e.description,...this.googleMaps}))})}catch(t){console.error(`Error getting LatLon coords: ${t}`)}},async selectPlace(e){e&&(this.activePlace=!0,this.location=e.description,this.selected.description=e.description,this.selected.location_id=e.place_id,this.getLatLong(e),this.showPlaces=!1)},clearForm(){this.activePlace=!1,this.location="",this.selected={},this.places=[],this.showPlaces=!1},highlight(e){let t=e;return this.location.split(/\s+/).forEach(a=>{if(!a)return;const s=new RegExp(Ve(a),"i");t=t.replace(s,r=>`<span class="fi-semibold">${r}</span>`)}),t},useUserLocation(){this.userLocationLoading=!0,navigator.geolocation?navigator.geolocation.getCurrentPosition(e=>{const t={lat:e.coords.latitude,lng:e.coords.longitude};new window.google.maps.Geocoder().geocode({location:t},(s,r)=>{if(r==="OK")if(s[0]){const{formatted_address:i,geometry:d}=s[0],l={location:i,lat:parseFloat(d.location.lat()),lng:parseFloat(d.location.lng())};this.activePlace=!0,this.location=l.location,this.places=[],this.showPlaces=!1,this.googleMaps.lat=l.lat,this.googleMaps.lng=l.lng,this.$emit("location-changed",{description:l.location,...this.googleMaps,userloaction:!0})}else console.error("No results found");else console.error(r);this.userLocationLoading=!1})},e=>{this.userLocationLoading=!1,this.$emit("user-location-error",e.message),console.error(e.message)}):(this.userLocationLoading=!1,this.$emit("user-location-error","navigator geolocation not defined"),console.error("navigator geolocation not defined"))}}},je={class:"retailer-search-location-fi"},Ze={key:0,class:"retailer-search-location-fi__search-results"},We=["onClick","innerHTML"];function Ke(e,t,a,s,r,i){const d=f("retailer-search-input-fi");return n(),o("div",je,[h(d,{ref:"retailerSearchLocationInput",value:r.location,class:"retailer-search-location-fi__input","user-location-loading":r.userLocationLoading,"user-location-error":a.locationError,onInput:i.searchPlaces,onSearch:t[0]||(t[0]=l=>i.selectPlace(r.places[0])),onClear:t[1]||(t[1]=l=>e.$emit("location-changed",null)),onUserLocation:i.useUserLocation,onKeyupEnter:t[2]||(t[2]=l=>i.selectPlace(r.places[0]))},null,8,["value","user-location-loading","user-location-error","onInput","onUserLocation"]),r.showPlaces&&r.places.length>0?(n(),o("div",Ze,[(n(!0),o(P,null,F(r.places,l=>(n(),o("div",{key:l.place_id,class:"retailer-search-location-fi__search-results__item","data-test":"retailer-search-location-item",onClick:g=>i.selectPlace(l),innerHTML:i.highlight(l.description)},null,8,We))),128))])):u("",!0)])}const Je=N(He,[["render",Ke],["__scopeId","data-v-f553e2f9"]]),Qe={name:"RetailerSearchTypeOptionsFi",props:{elements:{type:Array,default:null},partners:{type:Array,default:null},retailers:{type:Array,default:null}},emits:["select-changed"],data(){return{clonedElements:null,activePartners:this.partners,activeRetailers:this.retailers}},created(){this.clonedElements=JSON.parse(JSON.stringify(this.elements))},methods:{checkBoxChanged(e,t,a){var s;e&&a&&!t.selected?this.clonedElements.find(r=>r===t).selected=!0:!e&&!a&&t.subElements.length&&this.clonedElements.forEach(r=>{r.subElements.forEach(i=>{i.selected=!1})}),e?a?a.type==="partner"?(this.activePartners.find(r=>r.name===a.name)||this.activePartners.push(a),t.type==="retailer"?(this.activeRetailers=this.activeRetailers.filter(r=>r.name!==t.name),this.activeRetailers.unshift(t)):this.activePartners.find(r=>r.name===t.name)||this.activePartners.push(t)):this.activeRetailers.find(r=>r.name===a.name)||this.activeRetailers.push(a):t.type==="partner"?this.activePartners.find(r=>r.name===t.name)||this.activePartners.push(t):this.activeRetailers.find(r=>r.name===t.name)||this.activeRetailers.push(t):a?a.type==="partner"?this.activePartners=this.activePartners.filter(r=>r.name!==a.name):this.activeRetailers=this.activeRetailers.filter(r=>r.name!==a.name):(t.type==="partner"?this.activePartners=this.activePartners.filter(r=>r.name!==t.name):this.activeRetailers=this.activeRetailers.filter(r=>r.name!==t.name),(s=t.subElements)!=null&&s.length&&t.subElements.forEach(r=>{r.type==="partner"?this.activePartners=this.activePartners.filter(i=>i.name!==r.name):this.activeRetailers=this.activeRetailers.filter(i=>i.name!==r.name)})),this.$emit("select-changed",{newElements:this.clonedElements,activePartners:this.activePartners,activeRetailers:this.activeRetailers})}}},Xe={class:"retailer-search-type-options-fi"},Ye={class:"retailer-search-type-options-fi__container"},$e={class:"count"},et={class:"count"};function tt(e,t,a,s,r,i){const d=f("checkbox-fi");return n(),o("div",Xe,[c("div",Ye,[(n(!0),o(P,null,F(r.clonedElements,l=>(n(),o("div",{key:l.name,class:R({"retailer-search-type-options-fi__option":!0,"retailer-search-type-options-fi__option--active":l.selected})},[h(d,{ref_for:!0,ref:"input",modelValue:l.selected,"onUpdate:modelValue":[g=>l.selected=g,g=>i.checkBoxChanged(g,l)],class:"retailer-search-type-options-fi__checkbox checkbox-fi--label-normal checkbox-fi--no-margin",disabled:l.disabled,variant:l.disabled?"disabled":null,name:l.key||l.name},{default:y(()=>[S(p(l.name)+" ",1),c("span",$e,"("+p(l.count)+")",1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","variant","name"]),l.subElements?(n(!0),o(P,{key:0},F(l.subElements,g=>(n(),o("div",{key:g.name,class:R({"retailer-search-type-options-fi__suboption":!0,"retailer-search-type-options-fi__suboption--active":g.selected})},[h(d,{ref_for:!0,ref:"input",modelValue:g.selected,"onUpdate:modelValue":[m=>g.selected=m,m=>i.checkBoxChanged(m,l,g)],class:"retailer-search-type-options-fi__checkbox checkbox-fi--label-normal checkbox-fi--no-margin",disabled:g.disabled,variant:g.disabled?"disabled":null,name:g.key||g.name},{default:y(()=>[S(p(g.name)+" ",1),c("span",et,"("+p(g.count)+")",1)]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","variant","name"])],2))),128)):u("",!0)],2))),128))])])}const it=N(Qe,[["render",tt],["__scopeId","data-v-19534a9a"]]),at={name:"RetailerSearchTypeFi",components:{IconFi:I,RetailerSearchTypeOptionsFi:it},mixins:[de,D],props:{facet:{type:Object,required:!0},retailersCount:{type:String,default:null}},emits:["retailer-type-changed"],data(){return{openSelect:!1,active:!1,retailerTypeOptions:null,changedOptions:null,activePartners:[],activeRetailers:[]}},computed:{activeRetailersCount(){return this.active?this.retailersCount:null}},created(){this.retailerTypeOptions=JSON.parse(JSON.stringify(this.facet.elements))},methods:{toggleSelect(){this.openSelect?this.close():this.open()},open(){this.openSelect=!0,this.isSM||this.bodyDisableScroll()},close(){this.openSelect=!1,this.isSM||this.bodyEnableScroll()},selectChanged(e){const{newElements:t,activePartners:a,activeRetailers:s}=e;this.changedOptions=t,this.activePartners=a,this.activeRetailers=s,this.isSM&&(this.active=!!(a.length||s.length),this.retailerTypeOptions=t,this.$emit("retailer-type-changed",{partners:a,retailers:s}))},save(){this.retailerTypeOptions=this.changedOptions,this.active=!!(this.activePartners.length||this.activeRetailers.length),this.$emit("retailer-type-changed",{partners:this.activePartners,retailers:this.activeRetailers}),this.close()},clear(){this.active=!1,this.retailerTypeOptions=JSON.parse(JSON.stringify(this.facet.elements)),this.activePartners=[],this.activeRetailers=[],this.$emit("retailer-type-changed",{partners:[],retailers:[]}),this.close()}}},rt={class:"retailer-search-type-fi"},nt={class:"retailer-search-type-fi__button__label"},st={key:0,class:"active-count"},lt={class:"retailer-search-type-fi__button__label--mobile"},ot={key:0,class:"retailer-search-type-fi__options"},ct={class:"retailer-search-type-fi__options__header"},dt={class:"retailer-search-type-fi__options__body"},ut={class:"retailer-search-type-fi__options__bottom"};function gt(e,t,a,s,r,i){const d=f("icon-fi"),l=f("retailer-search-type-options-fi"),g=f("button-fi"),m=ue("click-outside");return ge((n(),o("div",rt,[c("div",{class:R(["retailer-search-type-fi__button",{"retailer-search-type-fi__button":!0,"retailer-search-type-fi__button--open":r.openSelect}]),onClick:t[0]||(t[0]=(..._)=>i.toggleSelect&&i.toggleSelect(..._))},[c("div",nt,[h(d,{icon:i.activeRetailersCount?"checkbox-checked":"filter"},null,8,["icon"]),S(" "+p(a.facet.name)+" ",1),i.activeRetailersCount?(n(),o("span",st,"("+p(i.activeRetailersCount)+")",1)):u("",!0)]),h(d,{class:"retailer-search-type-fi__button__icon",icon:"chevron-down"}),c("div",lt,[h(d,{icon:i.activeRetailersCount?"checkbox-checked":"filter"},null,8,["icon"])])],2),h(K,{mode:"in-out",appear:"","leave-active-class":"retailer-search-type-fi__options--leaving",onAfterLeave:i.close},{default:y(()=>[r.openSelect?(n(),o("div",ot,[c("div",ct,[S(p(a.facet.name)+" ",1),h(d,{class:"retailer-search-type-fi__options__header__icon",icon:"close",onClick:i.close},null,8,["onClick"])]),c("div",dt,[h(l,{elements:r.retailerTypeOptions,"emit-only-on-save":!e.isSM,partners:r.activePartners,retailers:r.activeRetailers,onSelectChanged:i.selectChanged},null,8,["elements","emit-only-on-save","partners","retailers","onSelectChanged"])]),c("div",ut,[h(g,{class:"button-fi__primary button-fi--large button-fi__xs-streched retailer-search-type-fi__options__save",onClick:i.save},{default:y(()=>[S(p(e.$dict.get("dealer-Locator.Facets.Labels.Use-Facet")),1)]),_:1},8,["onClick"]),c("div",{class:"retailer-search-type-fi__options__clear",onClick:t[1]||(t[1]=(..._)=>i.clear&&i.clear(..._))},p(e.$dict.get("dealer-Locator.Facets.Labels.Clear-Facet")),1)])])):u("",!0)]),_:1},8,["onAfterLeave"])])),[[m,i.close]])}const ht=N(at,[["render",gt],["__scopeId","data-v-b0f985c4"]]),mt={name:"RetailerSearchFilterFi",components:{RetailerSearchLocationFi:Je,RetailerSearchTypeFi:ht,SelectInputFi:Ne,TextInputFi:he},mixins:[D],props:{google:{type:Object,default:null},location:{type:Object,default:null},locationError:{type:Boolean,default:null},retailerName:{type:String,default:""},autocompleteOptions:{type:Object,default:()=>({})},ranges:{type:Array,required:!0},defaultRange:{type:String,required:!0},theme:{type:String,default:null},retailerSearchPage:{type:Boolean,default:!1},retailerTypes:{type:Array,default:()=>[]},retailersCount:{type:String,default:null},navigationActive:{type:Boolean,default:!1}},emits:["location-changed","range-changed","retailer-name-changed","type-changed","user-location-error"],data(){return{internRetailerName:"",selectRange:null}},computed:{retailerNameModel:{get(){return this.retailerName||this.internRetailerName},set(e){this.internRetailerName=e,this.retailerNameChanged(e)}},isModal(){return this.theme==="modal"},hasUserLocationError(){return this.userLocationError},retailerType(){var e;return(e=this.retailerTypes)==null?void 0:e[0]}},created(){this.selectRange=this.defaultRange},methods:{locationChanged(e){e&&this.prepareDataLayer(e),this.$emit("location-changed",e)},retailerNameChanged(e,t){(!e||e.length>2||t)&&this.$emit("retailer-name-changed",e)},rangeChanged(e){this.selectRange=e,this.$emit("range-changed",e)},clearRange(){this.selectRange=this.defaultRange,this.$emit("range-changed",this.defaultRange)},typeChanged(e){this.$emit("type-changed",e)},prepareDataLayer(e){if(!(e!=null&&e.description))return;window.dataLayer=window.dataLayer||[];const t=window.dataLayer.filter(a=>a.pageId)[0];this.retailerSearchPage?window.dataLayer.push({event:"DealerSearchLocation",locationName:e.description}):t?window.dataLayer.push({event:"RCBuyLocalLocation",pageId:t.pageId,pageTitle:t.pageTitle,pageUrl:t.pageUrl,pageTemplate:t.pageTemplate,cartItems:t.cartItems,locationName:e.description}):window.dataLayer.push({event:"RCBuyLocalLocation",locationName:e.description})}}},ft={class:"retailer-search-filter-fi__range"},pt={class:"retailer-search-filter-fi__wrapper"},_t={class:"retailer-search-filter-fi__retailer-name"},vt={key:0,class:"retailer-search-filter-fi__retailer-type__mobile"},yt={key:0,class:"retailer-search-filter-fi__retailer-type"};function kt(e,t,a,s,r,i){const d=f("retailer-search-location-fi"),l=f("select-input-fi"),g=f("text-input-fi"),m=f("retailer-search-type-fi");return n(),o("div",{class:R(["retailer-search-filter-fi",a.theme?`retailer-search-filter-fi--${a.theme}`:null,a.navigationActive?"retailer-search-filter-fi--navigation-active":null])},[h(d,{class:"retailer-search-filter-fi__search",google:a.google,"autocomplete-options":a.autocompleteOptions,loc:a.location,"location-error":a.locationError,onLocationChanged:i.locationChanged,onUserLocationError:t[0]||(t[0]=_=>e.$emit("user-location-error",_))},null,8,["google","autocomplete-options","loc","location-error","onLocationChanged"]),c("div",ft,[h(l,{class:"retailer-search-filter-fi__range__select",label:e.$dict.get("dealer-Locator.Circle-Entry"),value:r.selectRange,options:a.ranges,large:e.isMD,light:"",onInput:i.rangeChanged,onClearSelection:i.clearRange},null,8,["label","value","options","large","onInput","onClearSelection"])]),c("div",pt,[c("div",_t,[h(g,{modelValue:i.retailerNameModel,"onUpdate:modelValue":t[1]||(t[1]=_=>i.retailerNameModel=_),modelModifiers:{trim:!0},class:"retailer-search-filter-fi__retailer-name__input",label:e.$dict.get("dealer-Locator.Dealer-Name"),icon:"search",large:e.isMD,light:"",clear:"","clear-icon":"close",onIconClicked:t[2]||(t[2]=_=>i.retailerNameChanged(_,!0)),onKeyupEnter:t[3]||(t[3]=_=>i.retailerNameChanged(_,!0)),onClear:i.retailerNameChanged},null,8,["modelValue","label","large","onClear"])]),i.retailerType&&i.retailerType.elements.length>1?(n(),o("div",vt,[h(m,{facet:i.retailerType,"retailers-count":a.retailersCount,onRetailerTypeChanged:i.typeChanged},null,8,["facet","retailers-count","onRetailerTypeChanged"])])):u("",!0)]),i.retailerType&&i.retailerType.elements.length>1?(n(),o("div",yt,[h(m,{facet:i.retailerType,"retailers-count":a.retailersCount,onRetailerTypeChanged:i.typeChanged},null,8,["facet","retailers-count","onRetailerTypeChanged"])])):u("",!0)],2)}const bt=N(mt,[["render",kt],["__scopeId","data-v-d981c482"]]),Rt={name:"ContactDetails",components:{IconFi:I},props:{icon:{type:String,required:!1,default:null},target:{type:String,required:!1,default:null},href:{type:String,required:!1,default:null},detail:{type:String,required:!0},dfTextSize:{type:Number,default:16}}};function St(e,t,a,s,r,i){const d=f("icon-fi");return n(),o("div",{class:R({"contact-detail-fi":!0,"contact-detail-fi--link":a.href})},[a.icon?(n(),v(d,{key:0,class:"contact-detail-fi__icon",icon:a.icon},null,8,["icon"])):u("",!0),(n(),v(J(a.href?"a":"span"),{class:R(`contact-detail-fi__text fi-text-size-df-${a.dfTextSize}`),href:a.href,target:a.target,rel:a.target&&a.target==="_blank"?"noopener noreferrer":null},{default:y(()=>[S(p(a.detail),1)]),_:1},8,["class","href","target","rel"]))],2)}const ie=N(Rt,[["render",St],["__scopeId","data-v-14fa769f"]]),Mt={name:"RetailerDetailFi",components:{IconFi:I,AvailabilityIndicator:te,ContactDetailFi:ie},mixins:[G],props:{retailer:{type:Object,required:!0},distance:{type:Number,default:null},isStocked:Boolean,showStock:Boolean},emits:["navigate-to"],computed:{roundedDistance(){return this.roundDistance(this.distance)}},methods:{getTel(e){return Q(e)},getFax(e){return X(e)},getMailto(e){return Y(e)},navigateTo(){this.$emit("navigate-to",{description:this.retailer.Names.join(", "),lat:this.retailer.Address.Latitude,lng:this.retailer.Address.Longitude})},openGoogleMaps(e){var s;const t=`${e.Address.AddressLines.join(", ")}, ${e.Address.City}, ${e.Names.join(", ")}`.replace(/\s/g,"+"),a=(s=navigator==null?void 0:navigator.userAgentData)==null?void 0:s.platform;a&&["iPhone","iPod","iPad"].some(r=>a.includes(r))?window.open(`maps://www.google.com/maps/search/?api=1&query=${t}`):window.open(`https://www.google.com/maps/search/?api=1&query=${t}`)}}},Nt={class:"retailer-detail-fi"},Ct={key:0,class:"retailer-detail-fi__name"},Tt={key:1,class:"retailer-detail-fi__subname"},Lt={key:2,class:"retailer-detail-fi__address__retailer-type"},wt={class:"retailer-detail-fi__address"},Pt={class:"retailer-detail-fi__address__data"},Ft={key:0},It={key:1},At={key:4,class:"retailer-detail-fi__contact"},Dt={class:"retailer-detail-fi__navigation"};function Et(e,t,a,s,r,i){var m,_,k,M;const d=f("icon-fi"),l=f("availability-indicator"),g=f("contact-detail-fi");return n(),o("div",Nt,[a.retailer.Names[0]?(n(),o("div",Ct,p(a.retailer.Names[0]),1)):u("",!0),a.retailer.Names[1]?(n(),o("div",Tt,p(a.retailer.Names[1]),1)):u("",!0),(m=a.retailer.RetailerTypeList)!=null&&m.length?(n(),o("div",Lt,p(a.retailer.RetailerTypeList.join(", ")),1)):u("",!0),c("div",wt,[h(d,{icon:"store",class:"retailer-detail-fi__address__icon"}),c("div",Pt,[(k=(_=a.retailer.Address)==null?void 0:_.AddressLines)!=null&&k[0]?(n(),o("div",Ft,p(a.retailer.Address.AddressLines[0]),1)):u("",!0),(M=a.retailer.Address)!=null&&M.PostalCode?(n(),o("div",It,p(a.retailer.Address.PostalCode)+" "+p(a.retailer.Address.City),1)):u("",!0)])]),a.showStock?(n(),v(l,{key:3,class:"retailer-detail-fi__stock","is-stocked":a.isStocked},null,8,["is-stocked"])):u("",!0),a.retailer.Contact?(n(),o("div",At,[a.retailer.Contact.Phone?(n(),v(g,{key:0,icon:"phone-call",href:i.getTel(a.retailer.Contact.Phone),detail:a.retailer.Contact.Phone},null,8,["href","detail"])):u("",!0),a.retailer.Contact.Fax?(n(),v(g,{key:1,icon:"printer",href:i.getFax(a.retailer.Contact.Fax),detail:a.retailer.Contact.Fax},null,8,["href","detail"])):u("",!0),a.retailer.Contact.Email?(n(),v(g,{key:2,icon:"mail",href:i.getMailto(a.retailer.Contact.Email),detail:a.retailer.Contact.Email},null,8,["href","detail"])):u("",!0),a.retailer.Contact.Url?(n(),v(g,{key:3,icon:"globe",detail:a.retailer.Contact.Url,href:a.retailer.Contact.Url,target:"_blank"},null,8,["detail","href"])):u("",!0)])):u("",!0),c("div",Dt,[c("div",{class:"retailer-detail-fi__navigate-to",onClick:t[0]||(t[0]=(...b)=>i.navigateTo&&i.navigateTo(...b))},[h(d,{icon:"map-pin",class:"retailer-detail-fi__navigation__icon"}),S(" "+p(e.$dict.get("dealer-Locator.Start-Navigation")),1)]),c("div",{class:"retailer-detail-fi__google-maps",onClick:t[1]||(t[1]=b=>i.openGoogleMaps(a.retailer))},[h(d,{icon:"google-map-pin",class:"retailer-detail-fi__navigation__icon"}),S(" "+p(e.$dict.get("dealer-Locator.Open-In-Google-Maps")),1)])])])}const Ot=N(Mt,[["render",Et],["__scopeId","data-v-6c6a6477"]]),Vt={name:"RetailerSearchResultItemFi",components:{IconFi:I,AvailabilityIndicator:te,ContactDetailFi:ie,CloudImageFi:$,SlideUpDown:me},mixins:[D,G],props:{data:{type:Object,required:!0},showStock:{type:Boolean,default:!1},isStocked:{type:Boolean,default:!1},partnerTypeLogo:{type:Object,default:null},showDistance:{type:Boolean,default:!1},theme:{type:String,default:null}},emits:["clicked"],data(){return{showMore:!1}},computed:{retailer(){return this.data.Retailer}},methods:{getTel(e){return Q(e)},getFax(e){return X(e)},getMailto(e){return Y(e)},toggleShowMore(){this.showMore=!this.showMore}}},Bt={class:"retailer-search-result-item-fi__top"},xt={class:"retailer-search-result-item-fi__title"},Gt={key:0,class:"retailer-search-result-item-fi__name"},Ut={key:1,class:"retailer-search-result-item-fi__subname"},zt={class:"retailer-search-result-item-fi__action__text"},qt={key:0,class:"retailer-search-result-item-fi__retailer-type"},Ht={class:"retailer-search-result-item-fi__bottom"},jt={class:"retailer-search-result-item-fi__more-info__content"},Zt={class:"retailer-search-result-item-fi__address"},Wt={class:"retailer-search-result-item-fi__address__container"},Kt={class:"retailer-search-result-item-fi__address__details"},Jt={key:0,class:"retailer-search-result-item-fi__address__detail"},Qt={key:1,class:"retailer-search-result-item-fi__address__detail"},Xt={key:0,class:"retailer-search-result-item-fi__contact"},Yt={key:1,class:"retailer-search-result-item-fi__partner__container"},$t={class:"retailer-search-result-item-fi__partner"},ei={class:"retailer-search-result-item-fi__mobile-show-more"};function ti(e,t,a,s,r,i){var _;const d=f("icon-fi"),l=f("contact-detail-fi"),g=f("cloud-image-fi"),m=f("availability-indicator");return n(),o("div",{class:R(["retailer-search-result-item-fi",a.theme?`retailer-search-result-item-fi--${a.theme}`:null]),"data-test":"retailer-search-item"},[c("div",Bt,[c("div",xt,[i.retailer.Names[0]?(n(),o("div",Gt,p(i.retailer.Names[0]),1)):u("",!0),i.retailer.Names[1]?(n(),o("div",Ut,p(i.retailer.Names[1]),1)):u("",!0)]),c("div",{class:"retailer-search-result-item-fi__action",onClick:t[0]||(t[0]=k=>e.$emit("clicked",a.data))},[c("span",zt,p(e.$dict.get("dealer-Locator.Show-Retailer-Map")),1),h(d,{icon:"map-pin",class:"retailer-search-result-item-fi__action__icon"})])]),(_=i.retailer.RetailerTypeList)!=null&&_.length?(n(),o("div",qt,p(i.retailer.RetailerTypeList.join(", ")),1)):u("",!0),c("div",Ht,[(n(),v(J(e.isSM?"div":"slide-up-down"),{"model-value":r.showMore,duration:700,class:"retailer-search-result-item-fi__more-info"},{default:y(()=>{var k,M,b;return[c("div",jt,[c("div",Zt,[h(d,{class:"retailer-search-result-item-fi__address__icon",icon:"store"}),c("div",Wt,[c("div",Kt,[(M=(k=i.retailer.Address)==null?void 0:k.AddressLines)!=null&&M[0]?(n(),o("div",Jt,p(i.retailer.Address.AddressLines[0]),1)):u("",!0),(b=i.retailer.Address)!=null&&b.PostalCode?(n(),o("div",Qt,p(i.retailer.Address.PostalCode)+" "+p(i.retailer.Address.City),1)):u("",!0)])])]),i.retailer.Contact?(n(),o("div",Xt,[i.retailer.Contact.Phone?(n(),v(l,{key:0,class:"retailer-search-result-item-fi__contact__detail",icon:"phone-call",href:i.getTel(i.retailer.Contact.Phone),detail:i.retailer.Contact.Phone},null,8,["href","detail"])):u("",!0),i.retailer.Contact.Fax?(n(),v(l,{key:1,class:"retailer-search-result-item-fi__contact__detail",icon:"printer",href:i.getFax(i.retailer.Contact.Fax),detail:i.retailer.Contact.Fax},null,8,["href","detail"])):u("",!0),i.retailer.Contact.Email?(n(),v(l,{key:2,class:"retailer-search-result-item-fi__contact__detail",icon:"mail",href:i.getMailto(i.retailer.Contact.Email),detail:i.retailer.Contact.Email},null,8,["href","detail"])):u("",!0),i.retailer.Contact.Url?(n(),v(l,{key:3,class:"retailer-search-result-item-fi__contact__detail",icon:"globe",detail:i.retailer.Contact.Url,href:i.retailer.Contact.Url,target:"_blank"},null,8,["detail","href"])):u("",!0)])):u("",!0),i.retailer.PartnerType&&a.partnerTypeLogo?(n(),o("div",Yt,[c("div",$t,[h(g,{field:a.partnerTypeLogo,class:"retailer-search-result-item-fi__partner__img"},null,8,["field"])])])):u("",!0)])]}),_:1},8,["model-value"]))]),a.showStock?(n(),v(m,{key:1,class:"retailer-search-result-item-fi__stock","is-stocked":a.data.isStocked},null,8,["is-stocked"])):u("",!0),c("div",ei,[c("span",{class:"retailer-search-result-item-fi__mobile-show-more__text",onClick:t[1]||(t[1]=(...k)=>i.toggleShowMore&&i.toggleShowMore(...k))},p(r.showMore?e.$dict.get("dealer-Locator.Retailer-Show-Less"):e.$dict.get("dealer-Locator.Retailer-Show-More")),1)])],2)}const ii=N(Vt,[["render",ti],["__scopeId","data-v-99fad289"]]),ai={name:"RetailerSearchResultFi",components:{PaginationProgressBar:Ce,RetailerSearchResultItemFi:ii},props:{retailers:{type:Array,required:!0},showStock:{type:Boolean,default:!1},isStocked:{type:Boolean,default:!1},partnerTypeLogo:{type:Object,default:null},showDistance:{type:Boolean,default:!1},theme:{type:String,default:null}},emits:["clicked"],data(){return{itemsPerPage:10,currentPage:1}},computed:{totalItems(){return this.retailers.length},totalPages(){return Math.ceil(this.totalItems/this.itemsPerPage)},percentagePagination(){return this.currentPage*this.itemsPerPage/(this.totalPages*this.itemsPerPage)*100},currentItem(){return Math.min(this.currentPage*this.itemsPerPage,this.retailers.length)},slicedRetailers(){const e=this.currentPage*this.itemsPerPage,t=Math.min(e,this.retailers.length);return this.retailers.slice(0,t)}},methods:{nextPage(){this.currentPage+=1}}},ri={class:"retailer-search-result-fi__items"},ni={key:0,class:"retailer-search-result-fi__pagination"};function si(e,t,a,s,r,i){const d=f("retailer-search-result-item-fi"),l=f("pagination-progress-bar");return n(),o("div",{class:R(["retailer-search-result-fi",a.theme?`retailer-search-result-fi--${a.theme}`:null])},[c("div",ri,[(n(!0),o(P,null,F(i.slicedRetailers,g=>(n(),v(d,{key:g.Retailer.RetailerId,data:g,"show-stock":a.showStock,"show-distance":a.showDistance,"is-stocked":a.isStocked,"partner-type-logo":a.partnerTypeLogo,theme:a.theme,onClicked:t[0]||(t[0]=m=>e.$emit("clicked",m))},null,8,["data","show-stock","show-distance","is-stocked","partner-type-logo","theme"]))),128))]),i.totalItems>r.itemsPerPage?(n(),o("div",ni,[h(l,{"pagination-page":r.currentPage,"pagination-total":i.totalPages,"progressbar-value":i.percentagePagination,onLoadmore:i.nextPage},{default:y(()=>[c("span",null,p(e.$dict.get("dealer-Locator.Pagination",[i.currentItem,i.totalItems])),1)]),_:1},8,["pagination-page","pagination-total","progressbar-value","onLoadmore"])])):u("",!0)],2)}const li=N(ai,[["render",si],["__scopeId","data-v-532ee42c"]]);var E={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getRetailerSearch"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"brand"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CatalogChannel"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"language"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"latitude"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"longitude"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"unit"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"distance"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"retailerTypes"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"partnerTypes"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"articleNumbers"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"availabilityStatus"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"campaignRetailer"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"hiddenRetailers"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"getRetailerSearch"},arguments:[{kind:"Argument",name:{kind:"Name",value:"brand"},value:{kind:"Variable",name:{kind:"Name",value:"brand"}}},{kind:"Argument",name:{kind:"Name",value:"language"},value:{kind:"Variable",name:{kind:"Name",value:"language"}}},{kind:"Argument",name:{kind:"Name",value:"latitude"},value:{kind:"Variable",name:{kind:"Name",value:"latitude"}}},{kind:"Argument",name:{kind:"Name",value:"longitude"},value:{kind:"Variable",name:{kind:"Name",value:"longitude"}}},{kind:"Argument",name:{kind:"Name",value:"unit"},value:{kind:"Variable",name:{kind:"Name",value:"unit"}}},{kind:"Argument",name:{kind:"Name",value:"distance"},value:{kind:"Variable",name:{kind:"Name",value:"distance"}}},{kind:"Argument",name:{kind:"Name",value:"retailerTypes"},value:{kind:"Variable",name:{kind:"Name",value:"retailerTypes"}}},{kind:"Argument",name:{kind:"Name",value:"partnerTypes"},value:{kind:"Variable",name:{kind:"Name",value:"partnerTypes"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"articleNumbers"},value:{kind:"Variable",name:{kind:"Name",value:"articleNumbers"}}},{kind:"Argument",name:{kind:"Name",value:"availabilityStatus"},value:{kind:"Variable",name:{kind:"Name",value:"availabilityStatus"}}},{kind:"Argument",name:{kind:"Name",value:"campaignRetailer"},value:{kind:"Variable",name:{kind:"Name",value:"campaignRetailer"}}},{kind:"Argument",name:{kind:"Name",value:"hiddenRetailers"},value:{kind:"Variable",name:{kind:"Name",value:"hiddenRetailers"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"RecordCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"GroupsRetailerType"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"SubGroup"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Elements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RecordCount"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"Retailers"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Distance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Unit"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"AvailabilityStatus"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Retailer"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"AddressLines"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"City"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Continent"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"CountryCode"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Latitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Longitude"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PostalCode"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Contact"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ContactPerson"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Fax"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"OnlineShopUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Phone"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"Names"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"PartnerType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RetailerId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RetailerType"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RetailerTypeList"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"AvailabilityStatus"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"RecordCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"Selected"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1474}};E.loc.source={body:`query getRetailerSearch( $brand: CatalogChannel! $language: String! $latitude: String! $longitude: String! $unit: String! $distance: String! $retailerTypes: [String] $partnerTypes: [String] $query: String $articleNumbers: String $availabilityStatus: String $campaignRetailer: Boolean $hiddenRetailers: Boolean ) { getRetailerSearch( brand: $brand language: $language latitude: $latitude longitude: $longitude unit: $unit distance: $distance retailerTypes:$retailerTypes partnerTypes:$partnerTypes query:$query articleNumbers:$articleNumbers availabilityStatus: $availabilityStatus campaignRetailer: $campaignRetailer hiddenRetailers: $hiddenRetailers ){ RecordCount GroupsRetailerType { Name SubGroup { Elements { Name RecordCount } } } Retailers { Distance Unit AvailabilityStatus Retailer { Address { AddressLines City Continent CountryCode Latitude Longitude PostalCode } Contact { ContactPerson Email Fax OnlineShopUrl Phone Url } Names PartnerType RetailerId RetailerType RetailerTypeList } } AvailabilityStatus { Name RecordCount Selected } } } `,name:"GraphQL request",locationOffset:{line:1,column:1}};function A(e,t){if(e.kind==="FragmentSpread")t.add(e.name.value);else if(e.kind==="VariableDefinition"){var a=e.type;a.kind==="NamedType"&&t.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach(function(s){A(s,t)}),e.variableDefinitions&&e.variableDefinitions.forEach(function(s){A(s,t)}),e.definitions&&e.definitions.forEach(function(s){A(s,t)})}var x={};(function(){E.definitions.forEach(function(t){if(t.name){var a=new Set;A(t,a),x[t.name.value]=a}})})();function W(e,t){for(var a=0;a<e.definitions.length;a++){var s=e.definitions[a];if(s.name&&s.name.value==t)return s}}function oi(e,t){var a={kind:e.kind,definitions:[W(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=x[t]||new Set,r=new Set,i=new Set;for(s.forEach(function(l){i.add(l)});i.size>0;){var d=i;i=new Set,d.forEach(function(l){if(!r.has(l)){r.add(l);var g=x[l]||new Set;g.forEach(function(m){i.add(m)})}})}return r.forEach(function(l){var g=W(e,l);g&&a.definitions.push(g)}),a}oi(E,"getRetailerSearch");const B=e=>{window.debugMaps&&console.debug(e)},ci={name:"RetailerSearchFi",components:{GMapMap:ke,GoogleMapFetcherFi:De,GMapMarker:be,GMapCluster:Re,RetailerSearchResultFi:li,CloudImageFi:$,ComponentWrapper:fe,GridColumnsFi:Se,RetailerSearchFilterFi:bt,RetailerDetailFi:Ot,IconFi:I,BlockNotificationFi:Me,LoadingIndicator:pe,LoadingIndicatorWrapper:ee},mixins:[D,G,_e],inject:["fields"],props:{productIds:{type:[String,Number,Array],default:null},countryList:{type:Array,default:()=>[]},defaultCountry:{type:String,default:null},ranges:{type:Array,default:null},defaultRange:{type:String,default:"10"},theme:{type:String,default:null},retailerSearchPage:{type:Boolean,default:!1}},data(){return{retailerName:"",location:null,locationError:!1,userLocationError:!1,showroomFallbackRetailer:null,range:null,noRetailersFound:!1,country:null,countrySelector:null,currentLocation:null,directionsService:null,routeData:null,directions:{loading:!1,active:!1,origin:null,destination:null,markers:[],travelMode:"DRIVING"},google:null,autocompleteService:null,googleMaps:{url:"https://maps.googleapis.com/maps/api/geocode/json?latlng",lat:0,lng:0,newLat:0,newLng:0,defaultLat:0,defaultLng:0,defaultZoom:6,zoom:6,languageIsoCode:null,countries:null,autoCompleteOptions:{componentRestrictions:{country:null}},googleMapsOptions:Z,retailers:null,retailersCount:null,infoWindowOpened:!1,closeIcon:T("/img/google-maps/066-cancel.svg"),markerRefArray:[],marker:{partnerType:!1,Retailer:{},Distance:null,Unit:null,IsStocked:!1},facets:{facetsRetailerTypes:null,retailerTypes:[],availabilityStatus:"",partnerTypes:null},clusterMarkerOptionStyles:[]},throttledGetRetailersByLocation:null,loading:!1,activeRetailer:null,isMounted:!1}},computed:{renderer(){return{render:({count:e,position:t})=>new window.google.maps.Marker({label:{text:String(e),color:"rgba(var(--color-white))",fontSize:"16px",fontFamily:'"fischerstrong semi bold", "Open Sans", sans-serif'},position:t,zIndex:Number(window.google.maps.Marker.MAX_ZINDEX)+e,icon:{scaledSize:new window.google.maps.Size(51,51),url:T("/img/google-maps-fi/marker-group.png")}})}},retailerRanges(){return this.ranges?this.ranges:[{name:`10 ${this.unit}`,value:"10"},{name:`25 ${this.unit}`,value:"25"},{name:`50 ${this.unit}`,value:"50"},{name:`75 ${this.unit}`,value:"75"},{name:`100 ${this.unit}`,value:"100"}]},retailerDefaultRange(){return this.retailerRanges&&!this.retailerRanges.find(e=>e.value===this.defaultRange)?this.retailerRanges[0].value:this.defaultRange},haveLocation(){return!(this.googleMaps.lat===0&&this.googleMaps.lng===0||this.googleMaps.lat===this.googleMaps.defaultLat&&this.googleMaps.lng===this.googleMaps.defaultLng)},haveArticles(){return!!(this.productIds&&(typeof this.productIds=="number"||this.productIds.length))},retailerTypes(){var e;if((e=this.googleMaps.facets.facetsRetailerTypes)!=null&&e.length){const t=[{name:this.$dict.get("dealer-Locator.Facets.Labels.Retailer-Types"),elements:[],multiselect:!0}];return this.googleMaps.facets.facetsRetailerTypes.forEach(a=>{var r;const s=[];(r=a.Facets)!=null&&r.length&&a.Facets.forEach(i=>{const d=i.Selected.toString()==="true";s.push({name:i.Name,type:"partner",selected:d,count:i.RecordCount})}),t[0].elements.push({name:a.Name,type:"retailer",selected:a.Selected,count:a.RecordCount,subElements:s})}),t}return[]},countries(){var e;return(e=this.countryList)!=null&&e.length?this.countryList.map(t=>t.value):[]}},watch:{async country(e){const t=this.countryLocations[e];if(!t){console.log(`Current country '${e}' not found in list of locations`,this.countryLocations);return}const a=parseFloat(t.lat),s=parseFloat(t.lng),r=parseFloat(t.zoom)||6;this.googleMaps.defaultLat=a,this.googleMaps.defaultLng=s,this.googleMaps.defaultZoom=r;const i=await this.getMapPromise();this.changeZoom(r),i.panTo({lat:a,lng:s})}},async mounted(){this.range=this.defaultRange;const e=this.getLanguageIsoCode();this.googleMaps.languageIsoCode=e;const{countries:t}=this;this.googleMaps.autoCompleteOptions.componentRestrictions.country=[e,...t],this.isSM&&(this.googleMaps.googleMapsOptions={...Z,zoomControl:!0}),this.throttledGetRetailersByLocation=ve(400,this.getRetailersByLocation),this.getDefaultGoogleMapsWithCountry(),this.isMounted=!0},methods:{getFacetsRetailerTypes(e,t){const a=t.retailerTypes||[];return e.GroupsRetailerType.map(s=>{var r;return{Name:s.Name,RecordCount:e.Retailers.filter(i=>{var d,l;return(l=(d=i.Retailer)==null?void 0:d.RetailerTypeList)==null?void 0:l.includes(s.Name)}).length,Selected:a.includes(s.Name),Facets:(r=s.SubGroup)!=null&&r.Elements?s.SubGroup.Elements.map(i=>({Name:i.Name,Selected:a.includes(i.Name),RecordCount:i.RecordCount})):[]}}).filter(s=>s.RecordCount)},getMapPromise(){return this.$refs.gmap.$mapPromise},locationChanged(e){this.location=e,this.locationError=!1,e?(this.googleMaps.newLat=e.lat,this.googleMaps.newLng=e.lng,e.userloaction&&(this.currentLocation=e)):this.retailerName="",this.directions.active?e&&(this.directions.origin=e,this.updateRoute()):this.sendGoogleMaps()},retailerNameChanged(e){this.retailerName=e,this.sendGoogleMaps()},setRange(e){this.range=e,this.sendGoogleMaps()},userLocationErrorChanged(e){this.userLocationError=!!e},getLanguageIsoCode(){return this.defaultCountry?this.defaultCountry:this.$fischer.languageIsoCode()},activateResultItem(e){this.clearNavigation(),this.activateMarker(e),this.activeRetailer=e;const t=this.getMarkerPosition(e);this.changeZoom(16);const{gmap:a}=this.$refs;a.panTo(t),this.theme!=="modal"?this.$smoothScroll({scrollTo:this.$refs.gmap.$el,duration:500,updateHistory:!1,offset:-150}):this.$smoothScroll({scrollTo:this.$refs.gmap.$el,duration:500,updateHistory:!1,offset:-200,container:document.querySelector(".retail-search-dialog-fi .sweet-modal")})},isStocked(e){return!!(e.AvailabilityStatus&&e.AvailabilityStatus==="AVAILABLE")},activateMarker(e){this.clearNavigation(),this.displayMarkerDetailInfo(e),this.setMarkerIconActive(e)},clearSomeData(){this.googleMaps.facets.facetsRetailerTypes=null,this.googleMaps.facets.partnerTypes=null,this.googleMaps.facets.retailerTypes=null,this.googleMaps.facets.availabilityStatus=null,this.googleMaps.retailers=null,this.googleMaps.retailersCount=null,this.googleMaps.infoWindowOpened=!1,this.noRetailersFound=!1,this.activeRetailer=null},async getDefaultGoogleMapsWithCountry(){try{B("getting countries");const{data:e}=await ye.get(T("/countries.json"));B("got countries"),this.countryLocations=e,this.country=this.googleMaps.languageIsoCode,this.countryList.length&&!this.countryList.some(t=>t.value===this.country)&&console.error(`Current country '${this.country}' not in country-list`,this.countryLocations)}catch(e){console.error("Error getting countries",e)}},changeZoom(e){B(`Zoom changed to ${e}`),this.googleMaps.zoom=e},async sendGoogleMaps(){if(this.retailerName&&this.retailerName!==""||this.location){if(this.clearSomeData(),this.searchActive=!0,await this.$nextTick(),this.googleMaps.newLat){this.googleMaps.lat=this.googleMaps.newLat,this.googleMaps.lng=this.googleMaps.newLng;const e=new window.google.maps.Circle({zoom:this.googleMaps.zoom,radius:this.lengthUnitDistance(this.range),center:{lat:parseFloat(this.googleMaps.lat),lng:parseFloat(this.googleMaps.lng)}});this.$refs.gmap.fitBounds(e.getBounds())}else this.googleMaps.lat=this.googleMaps.defaultLat,this.googleMaps.lng=this.googleMaps.defaultLng,this.changeZoom(this.googleMaps.defaultZoom);this.throttledGetRetailersByLocation()}else this.resetGoogleMaps()},getRetailersByLocation(e){var r,i,d,l,g;this.loading=!0;const t={brand:this.$fischer.brandId(),language:this.$fischer.catalogLocale(),latitude:this.googleMaps.lat===0?".000000":this.googleMaps.lat.toString(),longitude:this.googleMaps.lng===0?".000000":this.googleMaps.lng.toString(),distance:this.haveLocation?this.range.toString():"50000",unit:this.$fischer.lengthUnit(),retailerTypes:this.googleMaps.facets.retailerTypes,availabilityStatus:this.productIds?"AVAILABLE":void 0,partnerTypes:this.googleMaps.facets.partnerTypes,query:this.retailerName,articleNumbers:this.productIds,campaignRetailer:!!((i=(r=this.fields)==null?void 0:r.campaignRetailers)!=null&&i.value),hiddenRetailers:!!((l=(d=this.fields)==null?void 0:d.hiddenRetailers)!=null&&l.value)},a=t.articleNumbers?t.articleNumbers.split(",").map(m=>({productId:m})):void 0,s=a?"retail_connect_local":"retailer_search";this.sendEvent(s,{searchTerm:(g=this.location)==null?void 0:g.description,items:a,retailerQuery:t.query,latitude:t.latitude,longitude:t.longitude,distance:t.distance,unit:t.unit,retailerTypes:t.retailerTypes,availabilityStatus:t.availabilityStatus,partnerTypes:t.partnerTypes,campaignRetailer:t.campaignRetailers,hiddenRetailers:t.hiddenRetailers}),this.$apollo.query({query:E,variables:t}).then(m=>{var k;let _=(k=m.data)==null?void 0:k.getRetailerSearch;if(_){const M={...this.googleMaps};!e&&_.GroupsRetailerType&&(M.facets.facetsRetailerTypes=this.getFacetsRetailerTypes(_,t)),M.retailers=_.Retailers.map(b=>({...b,isStocked:this.isStocked(b)})),M.retailersCount=_.RecordCount,this.googleMaps=M}this.noRetailersFound=!(this.googleMaps.retailersCount>0),this.loading=!1}).catch(m=>{this.noRetailersFound=!0,this.loading=!1,this.error=m})},getMarkerPosition(e){return{lat:parseFloat(e.Retailer.Address.Latitude),lng:parseFloat(e.Retailer.Address.Longitude)}},getMarkerIcon(e,t){return t?Ee(e.isActive,this.haveArticles,this.isStocked(e)):Oe(e)},closeInfoWindow(){this.googleMaps.infoWindowOpened=!1,this.setMarkerIconActive(null),this.activeRetailer&&(this.activeRetailer=null,this.sendGoogleMaps())},setMarkerIconActive(e){this.googleMaps.retailers.forEach(t=>{t.isActive=!1}),e&&(e.isActive=!0)},displayMarkerDetailInfo(e){this.googleMaps.infoWindowOpened=!0,this.googleMaps.marker.Retailer=e.Retailer,this.googleMaps.marker.Distance=e.Distance,this.googleMaps.marker.Unit=e.Unit,this.googleMaps.marker.IsStocked=this.isStocked(e),e.Retailer.PartnerType?this.googleMaps.marker.partnerType=!0:this.googleMaps.marker.partnerType=!1},retailerTypeChanged(e){if(!e){this.googleMaps.facets.retailerTypes=null,this.googleMaps.facets.partnerTypes=null;return}const{partners:t,retailers:a}=e;if(a.length){this.googleMaps.facets.retailerTypes=a.map(r=>r.name);const s=new window.google.maps.Circle({zoom:this.googleMaps.zoom,radius:this.lengthUnitDistance(this.range),center:{lat:parseFloat(this.googleMaps.newLat),lng:parseFloat(this.googleMaps.newLng)}});this.$refs.gmap.fitBounds(s.getBounds())}else this.googleMaps.facets.retailerTypes=null;t.length?this.googleMaps.facets.partnerTypes=t.map(s=>s.name):this.googleMaps.facets.partnerTypes=null,this.closeInfoWindow(),this.getRetailersByLocation(!0)},async resetGoogleMaps(){this.clearSomeData(),this.clearNavigation(),this.retailerName="",this.googleMaps.lat=0,this.googleMaps.lng=0,this.googleMaps.newLat=0,this.googleMaps.newLng=0,this.googleMaps.lat=this.googleMaps.defaultLat,this.googleMaps.lng=this.googleMaps.defaultLng,this.googleMaps.facets.retailerTypes=null,this.changeZoom(this.googleMaps.defaultZoom);const e=await this.getMapPromise();e.panTo({lat:this.googleMaps.lat,lng:this.googleMaps.lng}),e.zoom=this.googleMaps.zoom},navigateTo(e){this.directions.loading||(this.clearNavigation(),this.directions.active=!0,this.directions.destination=e,this.location?(this.directions.origin=this.location,this.setRoute()):this.locationError=!0)},updateRoute(){this.directions.markers=[],this.directionsDisplay&&this.directionsDisplay.setDirections({routes:[]}),this.setRoute()},setRoute(){const e=this.$refs.gmap.$mapObject;this.directionsDisplay||(this.directionsDisplay=new window.google.maps.DirectionsRenderer({map:e,suppressMarkers:!0})),this.directionsService=new window.google.maps.DirectionsService;const{origin:t,destination:a,markers:s,travelMode:r}=this.directions;this.directionsService.route({origin:t,destination:a,travelMode:r},(i,d)=>{if(d!=="OK")return;this.directionsDisplay.setDirections(i);const l=i.routes[0].legs[0];this.routeData=l,s.push({name:"Start",position:l.start_location,draggable:!0,icon:"Start"},{name:"End",position:l.end_location,draggable:!1,icon:"End"})})},closeDirections(){this.retailerName="",this.setMarkerIconActive(null),this.clearNavigation(),this.locationChanged(null)},clearNavigation(){this.directions.active&&(this.directionsDisplay&&this.directionsDisplay.setDirections({routes:[]}),this.directions.loading=!1,this.directions.active=!1,this.directions.origin=null,this.directions.destination=null,this.directions.markers=[])},markerDragged(e){this.directions.origin.lat=e.latLng.lat(),this.directions.origin.lng=e.latLng.lng(),this.updateRoute()},openGoogleMaps(){var i;const{origin:e,destination:t,travelMode:a}=this.directions,s=`origin=${e.description}&destination=${t.description}&travelmode=${a.toLowerCase()}`,r=(i=navigator==null?void 0:navigator.userAgentData)==null?void 0:i.platform;r&&["iPhone","iPod","iPad"].some(d=>r.includes(d))?window.open(`maps://www.google.com/maps/dir/?api=1&${s}`):window.open(`https://www.google.com/maps/dir/?api=1&${s}`)}}},di={class:"retailer-search-fi__map"},ui={class:"retailer-search-fi__directions"},gi={class:"retailer-search-fi__directions__wrapper"},hi={key:0,class:"retailer-search-fi__directions__info"},mi={key:0,class:"retailer-search-fi__directions__info__distance"},fi={key:1,class:"retailer-search-fi__directions__info__duration"},pi={class:"retailer-search-fi__map__info-window__close"},_i={class:"retailer-search-fi__map__info-window__inner"},vi={key:0,class:"retailer-search-fi__map__info-window__partner"},yi=["innerHTML"],ki=["innerHTML"],bi={key:3,class:"retailer-search-fi__retailers__loading"},Ri={key:4,class:"retailer-search-fi__retailers"},Si={key:5,class:"fi-col-span-full"},Mi={class:"retailer-search-fi__no-results"},Ni=["innerHTML"],Ci=["innerHTML"],Ti=["innerHTML"],Li=["innerHTML"];function wi(e,t,a,s,r,i){const d=f("block-notification-fi"),l=f("GMapMarker"),g=f("GMapCluster"),m=f("google-map-fetcher-fi"),_=f("GMapMap"),k=f("loading-indicator-wrapper"),M=f("retailer-search-filter-fi"),b=f("icon-fi"),ae=f("retailer-detail-fi"),re=f("cloud-image-fi"),U=f("loading-indicator"),ne=f("retailer-search-result-fi"),se=f("grid-columns-fi"),le=f("component-wrapper");return n(),v(le,{class:R(["retailer-search-fi",a.theme?`retailer-search-fi--${a.theme}`:null])},{default:y(()=>{var z,q,H;return[r.isMounted?(n(),o(P,{key:0},[r.userLocationError?(n(),o("div",{key:0,class:R(["retailer-search-fi__user-location-error",[a.theme?"fi-col-span-full":"fi-col-start-1 md:fi-col-start-2 fi-col-end-13 md:fi-col-end-12"]])},[h(d,{"close-btn":"",type:"error",icon:"alert-triangle",class:"fi-mb-30"},{default:y(()=>[S(p(e.$dict.get("dealer-Locator.User-Location.Error")),1)]),_:1})],2)):u("",!0),c("div",di,[h(k,{loading:r.directions.loading,variant:"spinnerLocal",spinoff:"in-relative-centered"},{default:y(()=>[h(_,{ref:"gmap",center:{lat:r.googleMaps.lat,lng:r.googleMaps.lng},zoom:r.googleMaps.zoom,options:r.googleMaps.googleMapsOptions,onZoom_changed:i.changeZoom},{default:y(()=>[h(g,{ref:"cluster","zoom-on-click":!0,"grid-size":120,"max-zoom":15,"minimum-cluster-size":2,renderer:i.renderer},{default:y(()=>{var L;return[(n(!0),o(P,null,F(r.directions.markers,(C,O)=>(n(),v(l,{key:O,draggable:C.draggable,position:C.position,icon:i.getMarkerIcon(C.icon,!1),title:C.name,onDragend:i.markerDragged},null,8,["draggable","position","icon","title","onDragend"]))),128)),(!r.directions.active||r.locationError)&&r.activeRetailer?(n(),v(l,{key:r.activeRetailer.Retailer.Names[0],clickable:!0,draggable:!1,position:i.getMarkerPosition(r.activeRetailer),icon:i.getMarkerIcon(r.activeRetailer,!0),title:r.activeRetailer.Retailer.Names[0],"show-stock":i.haveArticles,onClick:t[0]||(t[0]=C=>i.activateMarker(r.activeRetailer))},null,8,["position","icon","title","show-stock"])):(!r.directions.active||r.locationError)&&((L=r.googleMaps.retailers)==null?void 0:L.length)<1e3?(n(!0),o(P,{key:1},F(r.googleMaps.retailers,(C,O)=>{var j;return n(),v(l,{key:`${O}-${C.Retailer.Names[0]}`,clickable:!0,draggable:!1,position:i.getMarkerPosition(C),icon:i.getMarkerIcon(C,!0),title:(j=C.Retailer.Names)==null?void 0:j[0],"show-stock":i.haveArticles,onClick:Pi=>i.activateMarker(C)},null,8,["position","icon","title","show-stock","onClick"])}),128)):u("",!0)]}),_:1},8,["renderer"]),h(m,{onMap:t[1]||(t[1]=L=>r.google=L)})]),_:1},8,["center","zoom","options","onZoom_changed"])]),_:1},8,["loading"]),c("div",{class:R({"retailer-search-fi__actions":!0,"retailer-search-fi__actions--navigation-active":r.directions.active})},[h(M,{class:"retailer-search-fi__filters",google:r.google,location:r.location,"location-error":r.locationError,"retailer-name":r.retailerName,"autocomplete-options":r.googleMaps.autoCompleteOptions,ranges:i.retailerRanges,"default-range":i.retailerDefaultRange,theme:a.theme,"retailer-search-page":a.retailerSearchPage,"retailer-types":i.retailerTypes,"retailers-count":r.googleMaps.retailersCount,"navigation-active":r.directions.active,onLocationChanged:i.locationChanged,onRetailerNameChanged:i.retailerNameChanged,onRangeChanged:i.setRange,onUserLocationError:i.userLocationErrorChanged,onTypeChanged:i.retailerTypeChanged},null,8,["google","location","location-error","retailer-name","autocomplete-options","ranges","default-range","theme","retailer-search-page","retailer-types","retailers-count","navigation-active","onLocationChanged","onRetailerNameChanged","onRangeChanged","onUserLocationError","onTypeChanged"]),c("div",ui,[c("div",gi,[r.routeData?(n(),o("div",hi,[(z=r.routeData.distance)!=null&&z.text?(n(),o("span",mi,[h(b,{class:"retailer-search-fi__directions__icon",icon:"car"}),S(" "+p(r.routeData.distance.text),1)])):u("",!0),(q=r.routeData.duration)!=null&&q.text?(n(),o("span",fi,p(r.routeData.duration.text),1)):u("",!0)])):u("",!0),c("div",{class:"retailer-search-fi__directions__close",onClick:t[2]||(t[2]=(...L)=>i.closeDirections&&i.closeDirections(...L))},[h(b,{icon:"close"})])]),c("div",{class:"retailer-search-fi__directions__maps",onClick:t[3]||(t[3]=(...L)=>i.openGoogleMaps&&i.openGoogleMaps(...L))},[h(b,{icon:"google-map-pin",class:"retailer-search-fi__directions__icon"}),S(" "+p(e.$dict.get("dealer-Locator.Open-In-Google-Maps")),1)])])],2),h(K,{mode:"in-out",appear:"","enter-active-class":`animated ${e.isSM?"fadeInFromRight":"slideInFromBottom"} faster`,"leave-active-class":`animated ${e.isSM?"fadeOutToRight":"slideOutToBottom"} faster`},{default:y(()=>[r.googleMaps.infoWindowOpened?(n(),o("div",{key:0,class:R({"retailer-search-fi__map__info-window":!0,"retailer-search-fi__map__info-window--partner":r.googleMaps.marker.Retailer.PartnerType})},[c("div",pi,[h(b,{icon:"close",onClick:t[4]||(t[4]=L=>i.closeInfoWindow())})]),c("div",_i,[h(ae,{retailer:r.googleMaps.marker.Retailer,"is-stocked":r.googleMaps.marker.IsStocked,distance:r.googleMaps.marker.Distance,unit:r.googleMaps.marker.Unit,"show-stock":i.haveArticles,onNavigateTo:i.navigateTo},null,8,["retailer","is-stocked","distance","unit","show-stock","onNavigateTo"]),r.googleMaps.marker.Retailer.PartnerType?(n(),o("div",vi,[h(re,{field:i.fields.partnerTypeLogo,class:"retailer-search-fi__map__info-window__partner__img"},null,8,["field"])])):u("",!0)])],2)):u("",!0)]),_:1},8,["enter-active-class","leave-active-class"])]),e.isEditMode?(n(),o("div",{key:1,class:"retailer-search-fi__disclaimer",innerHTML:i.fields.disclaimer.editable},null,8,yi)):u("",!0),!e.isEditMode&&((H=i.fields.disclaimer)!=null&&H.value)?(n(),o("div",{key:2,class:"retailer-search-fi__disclaimer",innerHTML:i.fields.disclaimer.value},null,8,ki)):u("",!0),r.loading?(n(),o("div",bi,[h(U,{class:"assisted-service-company-fi__c-spinner",variant:"spinnerLocal"})])):u("",!0),r.noRetailersFound?(n(),o("div",Si,[c("div",Mi,[e.isEditMode?(n(),o("div",{key:0,class:"retailer-search-fi__no-results__headline",innerHTML:i.fields.noResultsHeadline.editable},null,8,Ni)):(n(),o("div",{key:1,class:"retailer-search-fi__no-results__headline",innerHTML:i.fields.noResultsHeadline.value},null,8,Ci)),e.isEditMode?(n(),o("div",{key:2,class:"retailer-search-fi__no-results__text",innerHTML:i.fields.noResultsText.editable},null,8,Ti)):(n(),o("div",{key:3,class:"retailer-search-fi__no-results__text",innerHTML:i.fields.noResultsText.value},null,8,Li))])])):(n(),o("div",Ri,[h(se,{columns:8},{default:y(()=>[r.googleMaps.retailers?(n(),v(ne,{key:0,class:"fi-col-span-full",retailers:r.googleMaps.retailers,"show-stock":i.haveArticles,"partner-type-logo":i.fields.partnerTypeLogo,"show-distance":i.haveLocation,theme:a.theme,onClicked:i.activateResultItem},null,8,["retailers","show-stock","partner-type-logo","show-distance","theme","onClicked"])):u("",!0)]),_:1})]))],64)):(n(),v(U,{key:1,variant:"spinnerLocal"}))]}),_:1},8,["class"])}const Gi=N(ci,[["render",wi],["__scopeId","data-v-f60136cc"]]);export{Gi as default};