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Q,IASM,CATNC,EASM,MATNJ,EASM,CARJK,EAOEK,EAAA,CANC,OAAQD,EAAM,OACd,eAAcA,EAAW,eACzB,kBAAiBA,EAAW,eAC5B,OAAQA,EAAM,OACd,gBAAeA,EAAY,aAC5B,4GA5BZ","names":["RetailerSearchFi","defineAsyncComponent","__vitePreload","_sfc_main","ComponentWrapper","GridContainerFi","breakpointMixin","distanceMixin","getSelectList","ranges","_a","range","_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createBlock","_component_component_wrapper","_withCtx","_createElementVNode","_createVNode","_component_grid_container_fi","_ctx","_createElementBlock","$options","_component_retailer_search_fi"],"ignoreList":[],"sources":["../../src/pages/retailer-search-page-fi/RetailerSearchPageFi.vue"],"sourcesContent":["<template>\n <component-wrapper>\n <div class=\"retailer-search-page-fi\">\n <grid-container-fi>\n <div class=\"fi-col-start-1 fi-col-end-13 lg:fi-col-start-4 lg:fi-col-end-10\">\n <!-- eslint-disable vue/no-v-html -->\n <h1\n v-if=\"isEditMode\"\n class=\"retailer-search-page-fi__headline\"\n v-html=\"fields.retailerSearchHeadline.editable\"\n />\n <h1\n v-else\n class=\"retailer-search-page-fi__headline\"\n v-html=\"fields.retailerSearchHeadline?.value\"\n />\n <!-- eslint-enable vue/no-v-html -->\n </div>\n </grid-container-fi>\n\n <grid-container-fi :container=\"isSM\">\n <div class=\"fi-col-start-1 fi-col-end-13 lg:fi-col-start-2 lg:fi-col-end-12\">\n <retailer-search-fi\n :fields=\"fields\"\n :country-list=\"countryList[1]\"\n :default-country=\"countryList[2]\"\n :ranges=\"ranges\"\n :default-range=\"defaultRange\"\n retailer-search-page\n />\n </div>\n </grid-container-fi>\n </div>\n </component-wrapper>\n</template>\n\n<script>\nimport ComponentWrapper from 'components/component-wrapper/ComponentWrapper';\nimport GridContainerFi from 'components/grid-fi/GridContainerFi';\nimport breakpointMixin from 'mixins/breakpointMixin';\nimport distanceMixin from 'mixins/distanceMixin';\nimport { defineAsyncComponent } from 'vue';\n\nimport { getSelectList } from '@/utils/fieldTransformations';\n\nconst RetailerSearchFi = defineAsyncComponent(\n () => import('components/retailer-search-fi/RetailerSearchFi'),\n);\n\nexport default {\n name: 'RetailerSearchPageFi',\n components: {\n ComponentWrapper,\n GridContainerFi,\n RetailerSearchFi,\n },\n mixins: [breakpointMixin, distanceMixin],\n inject: ['fields'],\n computed: {\n countryList() {\n return getSelectList(this.fields, 'countryList', []);\n },\n ranges() {\n const ranges = [];\n if (this.fields.retailerSearchRanges?.value) {\n this.fields.retailerSearchRanges.value.split(',').forEach((range) => {\n ranges.push({ name: `${range} ${this.unit}`, value: range });\n });\n }\n\n return ranges.length ? ranges : undefined;\n },\n defaultRange() {\n if (this.fields.retailerSearchDefaultRange?.value) {\n return this.fields.retailerSearchDefaultRange.value;\n }\n\n return undefined;\n },\n },\n};\n</script>\n\n<style scoped lang=\"scss\">\n@import './retailer-search-page-fi';\n</style>\n"],"file":"assets/RetailerSearchPageFi-8rI3DYRh.js"}