{"version":3,"file":"multilocation-DXzVPuDq.js","sources":["../../src/apps/multilocation/MultilocationApp.vue","../../src/api/Company.ts","../../src/apps/multilocation/views/LocationSelector.vue","../../src/apps/multilocation/router.ts","../../src/apps/multilocation/main.ts"],"sourcesContent":["\nApp\n\n\n\n","import type { App } from \"@/models\";\nimport { get as apiGet } from \"./API\";\n\nexport function locations(): Promise {\n return apiGet(\"company/locations\");\n}\n","\nEatView(:loading=\"viewLoading\")\n template(v-slot:default)\n div.bg-white.border-b.px-4.py-2\n EatSearchBar.elevation-1(v-model=\"searchInput\" icon=\"$search\" ref=\"inputRef\" :placeholder=\"$t('multilocation.searchBarPlaceholder')\")\n template(v-slot:append-content)\n EatIconBtn(icon=\"$position\" :padding=\"3\" :loading=\"isLoadingGeolocation\" @click=\"sortByDistance\")\n div.bg-neutral-a.flex-grow-1(v-scrollable=\"true\")\n div.bg-primary.text-center.px-9.py-3 {{ $t(\"multilocation.orderFromOurLocations\") }}\n div.rounded-xxl.container.bg-white.mt-2.mb-5.pt-8\n div.locations__container\n transition-group(name=\"fade\" tag=\"div\" v-if=\"filteredLocations.length\")\n div.location__card.px-3.pb-2(v-for=\"location in filteredLocations\" :key=\"location.channel\")\n a.text-black(:href=\"getWebappUrl(location)\")\n EatImage.location__image.rounded-lg(:src=\"location.coverImageUrl\" aspectRatio=\"16/9\")\n div.pt-3.pb-6\n div.text-h6.mb-3 {{ location.location.businessName }}\n div.mb-1 {{ getAddressToString(location.location) }}\n div.text-primary {{ getOpeningHours(location.location.openingHours) }}\n\n\n\n\n\n","import { createRouter, createWebHashHistory, type RouteRecordRaw } from \"vue-router\";\nimport EatTopBar from \"@/layout/partials/EatTopBar.vue\";\nimport LocationSelector from \"@/apps/multilocation/views/LocationSelector.vue\";\n\nconst routes: Array = [\n {\n path: \"/\",\n name: \"locationSelector\",\n components: {\n topBar: EatTopBar,\n default: LocationSelector\n },\n meta: {\n mainView: true,\n hideNavbar: true,\n topBarBorderBottom: true\n }\n },\n {\n path: '/:pathMatch(.*)*',\n redirect: { name: \"locationSelector\" }\n }\n];\n\nconst router = createRouter({\n history: createWebHashHistory(),\n routes\n});\n\nexport default router;","import createEatUp from \"@/app\";\nimport MultilocationApp from \"./MultilocationApp.vue\";\nimport router from \"./router\";\nimport { EAT_UP_PAGES } from \"@/types\";\n\ncreateEatUp(MultilocationApp, router, EAT_UP_PAGES.MULTILOCATION);\n"],"names":["apiGet","locations","getCompanyLocations","MultilocationApp"],"mappings":";;;;;AAQqB;;;;;;ACLd,SAAS,YAA4B;AAC1C,SAAOA,IAAO,mBAAmB;AACnC;;;;;;;;;;;;;;ACqCM,UAAA,cAAc,IAAI,IAAI;AACtB,UAAAC,cAAY,IAAkC,CAAA,CAAE;AAChD,UAAA,oBAAoB,IAAkC,CAAA,CAAE;AAE9D,UAAM,OAAO;AACG,QAAI,OAAO,SAAS,SAAS,MAAM,GAAG,EAAE,CAAC,CAAC;AAC1D,gBAAY,KAAK,EAAE,qBAAqB,EAAE,SAAU,CAAA;AAE9C,UAAA,EAAE,gBAAgB;AAClB,UAAA,uBAAuB,IAAI,KAAK;AAEhC,UAAA,qBAAqB,CAAC,aAA0B;AACpD,YAAM,EAAE,MAAM,SAAS,SAAS,aAAa;AAC7C,aAAO,GAAG,OAAO,IAAI,IAAI,KAAK,OAAO,IAAI,QAAQ;AAAA,IAAA;AAO7C,UAAA,cAAc,CAAC,SAAiB,YAAoB;AACxD,YAAM,IAAI;AACV,YAAM,KAAM,QAAQ,MAAM,KAAK,KAAM;AACrC,YAAM,KAAM,QAAQ,MAAM,KAAK,KAAM;AACrC,YAAM,MAAO,QAAQ,MAAM,QAAQ,OAAO,KAAK,KAAM;AACrD,YAAM,MAAO,QAAQ,MAAM,QAAQ,OAAO,KAAK,KAAM;AAE/C,YAAA,IACJ,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,IAClC,KAAK,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,IAAI,KAAK,IAAI,KAA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