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the-footer.vue","webpack://app/./app/javascript/components/the-footer.vue?feb8","webpack://app/./app/javascript/utils/scroll-to-element.ts","webpack://app/./app/javascript/components/the-header.vue?ef4f","webpack://app/./app/javascript/components/the-header.vue","webpack://app/./app/javascript/store/order.ts","webpack://app/./app/javascript/api/index.ts","webpack://app/./app/javascript/utils/csrfToken.ts","webpack://app/./app/javascript/utils/query-params.ts","webpack://app/./app/javascript/api/communes.ts","webpack://app/./app/javascript/api/delivery-schedules.ts","webpack://app/./app/javascript/utils/get-stgo-hour-from-date.ts","webpack://app/./app/javascript/utils/get-current-date-info.ts","webpack://app/./app/javascript/composables/useDeliveryScheduleHours.ts","webpack://app/./app/javascript/utils/currency.ts","webpack://app/./app/javascript/components/gas-table-column-item.vue?4fa8","webpack://app/./app/javascript/components/gas-table-column-item.vue","webpack://app/./app/javascript/components/gas-table-column.vue?0016","webpack://app/./app/javascript/components/gas-table-column.vue","webpack://app/./app/javascript/components/gas-table-modal.vue?e194","webpack://app/./app/javascript/components/gas-table-modal.vue","webpack://app/./app/javascript/components/base-callout.vue","webpack://app/./app/javascript/components/base-callout.vue?5b1b","webpack://app/./app/javascript/components/gas-table.vue?428c","webpack://app/./app/javascript/composables/useDeliverySchedule.ts","webpack://app/./app/javascript/components/gas-table.vue","webpack://app/./app/javascript/api/users.ts","webpack://app/./app/javascript/components/refer-link.vue?778a","webpack://app/./app/javascript/components/refer-link.vue","webpack://app/./app/javascript/components/refer-form.vue?0b0a","webpack://app/./app/javascript/components/refer-form.vue","webpack://app/./app/javascript/components/mail-confirmation-modal.vue?b6f0","webpack://app/./app/javascript/components/mail-confirmation-modal.vue","webpack://app/./app/javascript/components/subscription-form.vue?c9ba","webpack://app/./app/javascript/api/subscriptions.ts","webpack://app/./app/javascript/components/subscription-form.vue","webpack://app/./app/javascript/components/order-tracking-home.vue","webpack://app/./app/javascript/components/order-tracking-home.vue?3d0b","webpack://app/./app/javascript/components/frequent-questions.vue?80b7","webpack://app/./app/javascript/components/frequent-questions.vue","webpack://app/./app/javascript/components/users-testimonies.vue?0c02","webpack://app/./app/javascript/components/users-testimonies.vue","webpack://app/./app/javascript/components/home-view.vue?8d75","webpack://app/./app/javascript/api/commune-company-items.ts","webpack://app/./app/javascript/components/home-view.vue?4329","webpack://app/./app/javascript/api/orders.ts","webpack://app/./app/javascript/api/delivery-addresses.ts","webpack://app/./app/javascript/api/gas-items.ts","webpack://app/./app/javascript/components/order-personal-info-form.vue?7d9b","webpack://app/./app/javascript/components/order-personal-info-form.vue","webpack://app/./app/javascript/api/obfuscated-orders.ts","webpack://app/./app/javascript/components/order-items-form-item.vue?0700","webpack://app/./app/javascript/components/order-items-form-item.vue","webpack://app/./app/javascript/components/order-items-form.vue?f5bc","webpack://app/./app/javascript/components/order-items-form.vue","webpack://app/./app/javascript/helpers/slotOptions.ts","webpack://app/./app/javascript/components/order-confirmation-form.vue?ca84","webpack://app/./app/javascript/components/order-confirmation-form.vue","webpack://app/./app/javascript/components/order-success-message.vue?24f3","webpack://app/./app/javascript/components/order-success-message.vue","webpack://app/./app/javascript/components/order-view.vue?00d6","webpack://app/./app/javascript/components/order-view.vue","webpack://app/./app/javascript/api/couriers.ts","webpack://app/./app/javascript/components/otp-form.vue?ac76","webpack://app/./app/javascript/components/otp-form.vue","webpack://app/./app/javascript/components/refer-view.vue?0aaf","webpack://app/./app/javascript/components/refer-view.vue","webpack://app/./app/javascript/store/user-obfuscated-orders.ts","webpack://app/./app/javascript/components/repeat-order-header.vue","webpack://app/./app/javascript/components/repeat-order-header.vue?d117","webpack://app/./app/javascript/components/repeat-order-user-phone-form.vue?3765","webpack://app/./app/javascript/components/repeat-order-user-phone-form.vue","webpack://app/./app/javascript/components/repeat-order-user-form.vue?1192","webpack://app/./app/javascript/components/repeat-order-user-form.vue","webpack://app/./app/javascript/components/base-stepper.vue?c14a","webpack://app/./app/javascript/components/base-stepper.vue","webpack://app/./app/javascript/components/base-modal.vue?aa6a","webpack://app/./app/javascript/components/base-modal.vue","webpack://app/./app/javascript/components/repeat-order-view.vue?93d4","webpack://app/./app/javascript/components/repeat-order-view.vue","webpack://app/./app/javascript/components/base-select.vue?4a50","webpack://app/./app/javascript/components/base-select.vue","webpack://app/./app/javascript/components/base-button.vue","webpack://app/./app/javascript/components/base-button.vue?85aa","webpack://app/./app/javascript/components/base-alert.vue?9044","webpack://app/./app/javascript/components/base-alert.vue","webpack://app/./app/javascript/components/base-input.vue?085d","webpack://app/./app/javascript/components/base-input.vue","webpack://app/./app/javascript/components/base-notice-bar.vue","webpack://app/./app/javascript/components/base-notice-bar.vue?c059","webpack://app/./app/javascript/api/order-reports.ts","webpack://app/./app/javascript/components/order-report-modal.vue?c7a4","webpack://app/./app/javascript/components/order-report-modal.vue","webpack://app/./app/javascript/components/order-tracking.vue?6381","webpack://app/./app/javascript/components/order-tracking.vue","webpack://app/./app/javascript/locales/yup.ts","webpack://app/./app/javascript/locales/es.js","webpack://app/./app/javascript/locales/locales.ts","webpack://app/./app/javascript/application.ts"],"sourcesContent":["var map = {\n\t\"./11-kg-icon.svg\": 2150,\n\t\"./15-kg-icon.svg\": 2483,\n\t\"./45-kg-icon.svg\": 7276,\n\t\"./5-kg-icon.svg\": 7121\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 2617;","var map = {\n\t\"./11-kg-icon.svg\": 2150,\n\t\"./15-kg-icon.svg\": 2483,\n\t\"./45-kg-icon.svg\": 7276,\n\t\"./5-kg-icon.svg\": 7121,\n\t\"./alert.svg\": 484,\n\t\"./arrow-back.svg\": 7077,\n\t\"./arrow-right.svg\": 2009,\n\t\"./arrow-small-right.svg\": 6841,\n\t\"./banknotes.svg\": 5329,\n\t\"./building.svg\": 8771,\n\t\"./cancel.svg\": 2392,\n\t\"./check-circle.svg\": 1986,\n\t\"./check.svg\": 8018,\n\t\"./chevron-left.svg\": 5617,\n\t\"./chevron-right.svg\": 1070,\n\t\"./circle.svg\": 5340,\n\t\"./clock.svg\": 993,\n\t\"./close.svg\": 8790,\n\t\"./dash.svg\": 3032,\n\t\"./delete.svg\": 7219,\n\t\"./down-arrow.svg\": 3009,\n\t\"./envelope.svg\": 1637,\n\t\"./error-circle.svg\": 378,\n\t\"./home.svg\": 2474,\n\t\"./info.svg\": 3669,\n\t\"./loading.svg\": 5789,\n\t\"./menu.svg\": 6451,\n\t\"./oval.svg\": 4947,\n\t\"./question-mark-circle.svg\": 8299,\n\t\"./timer-flash-line.svg\": 768,\n\t\"./truck.svg\": 6985\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 3739;","var map = {\n\t\"./abastible-web.svg\": 2159,\n\t\"./abastible.svg\": 3261,\n\t\"./bg-menu.svg\": 2877,\n\t\"./bg-noticebar-md.svg\": 7913,\n\t\"./bg-noticebar.svg\": 3618,\n\t\"./copy.svg\": 1318,\n\t\"./courier_card.svg\": 6710,\n\t\"./facebook.svg\": 8616,\n\t\"./gas-hn.svg\": 1916,\n\t\"./gas-maule.svg\": 9282,\n\t\"./gasco.svg\": 2914,\n\t\"./haygas.svg\": 7391,\n\t\"./icons/11-kg-icon.svg\": 2150,\n\t\"./icons/15-kg-icon.svg\": 2483,\n\t\"./icons/45-kg-icon.svg\": 7276,\n\t\"./icons/5-kg-icon.svg\": 7121,\n\t\"./icons/alert.svg\": 484,\n\t\"./icons/arrow-back.svg\": 7077,\n\t\"./icons/arrow-right.svg\": 2009,\n\t\"./icons/arrow-small-right.svg\": 6841,\n\t\"./icons/banknotes.svg\": 5329,\n\t\"./icons/building.svg\": 8771,\n\t\"./icons/cancel.svg\": 2392,\n\t\"./icons/check-circle.svg\": 1986,\n\t\"./icons/check.svg\": 8018,\n\t\"./icons/chevron-left.svg\": 5617,\n\t\"./icons/chevron-right.svg\": 1070,\n\t\"./icons/circle.svg\": 5340,\n\t\"./icons/clock.svg\": 993,\n\t\"./icons/close.svg\": 8790,\n\t\"./icons/dash.svg\": 3032,\n\t\"./icons/delete.svg\": 7219,\n\t\"./icons/down-arrow.svg\": 3009,\n\t\"./icons/envelope.svg\": 1637,\n\t\"./icons/error-circle.svg\": 378,\n\t\"./icons/home.svg\": 2474,\n\t\"./icons/info.svg\": 3669,\n\t\"./icons/loading.svg\": 5789,\n\t\"./icons/menu.svg\": 6451,\n\t\"./icons/oval.svg\": 4947,\n\t\"./icons/question-mark-circle.svg\": 8299,\n\t\"./icons/timer-flash-line.svg\": 768,\n\t\"./icons/truck.svg\": 6985,\n\t\"./instagram.svg\": 2356,\n\t\"./lipigas.svg\": 6231,\n\t\"./logo.svg\": 6065,\n\t\"./twitter.svg\": 820,\n\t\"./whatsapp-color.svg\": 704,\n\t\"./whatsapp.svg\": 2706\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 5590;","\n\n","import { render } from \"./the-footer.vue?vue&type=template&id=84eee26c\"\nconst script = {}\n\nimport exportComponent from \"/tmp/build_6638a752/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","function scrollToElement(element, scrollTo) { if (element) {\n element.scrollIntoView({ behavior: 'smooth', block: scrollTo });\n} }\nexport { scrollToElement };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { class: \"sticky -top-14 z-20 flex w-full flex-col md:-top-12\" };\nconst _hoisted_2 = /*#__PURE__*/ _createTextVNode(\" ¡La nueva manera de pedir gas! \");\nconst _hoisted_3 = { class: \"w-full\" };\nconst _hoisted_4 = { class: \"flex h-20 items-center justify-between bg-hg-neutral-900 px-8 md:h-28 md:px-16\" };\nconst _hoisted_5 = { href: \"/\" };\nconst _hoisted_6 = [\"src\"];\nconst _hoisted_7 = { key: 0, class: \"hidden space-x-14 md:flex\" };\nconst _hoisted_8 = [\"id\", \"onClick\"];\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"w-20\" }, null, -1);\nconst _hoisted_10 = [\"src\"];\nconst _hoisted_11 = [\"src\"];\nconst _hoisted_12 = [\"id\", \"onClick\"];\nimport { ref } from 'vue';\nimport { kebabCase } from 'lodash';\nimport { scrollToElement } from 'utils/scroll-to-element';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'the-header', props: { menuItems: { default: undefined } }, setup(__props) { const props = __props; const showMobileMenu = ref(false); const selectedItem = ref(null); const gtmButtonsId = 'header-menu-item'; function selectItem(index, item) { if (item.label === 'Seguir pedido') {\n showMobileMenu.value = false;\n window.location.href = '/seguimiento';\n }\n else {\n selectedItem.value = index;\n showMobileMenu.value = false;\n if (item.scrollTo && item.element) {\n scrollToElement(item.element, item.scrollTo);\n }\n } } return (_ctx, _cache) => { const _component_base_notice_bar = _resolveComponent(\"base-notice-bar\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_base_notice_bar, null, { default: _withCtx(() => [_hoisted_2]), _: 1 }), _createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"a\", _hoisted_5, [_createElementVNode(\"img\", { id: \"hay-gas-logo\", \"gtm-id\": gtmButtonsId, src: require('assets/images/logo.svg'), class: \"h-12 md:h-16\", alt: \"HAY Gas! logo\" }, null, 8, _hoisted_6)]), props.menuItems ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(props.menuItems, (item, index) => { return _openBlock(), _createElementBlock(\"button\", { id: _unref(kebabCase)(item.label), key: index, \"gtm-id\": gtmButtonsId, class: _normalizeClass([\"h-14 font-bold\", selectedItem.value === index ? 'border-b-4 border-hg-pink text-hg-pink' : 'text-white']), onClick: $event => selectItem(index, item) }, _toDisplayString(item.label), 11, _hoisted_8); }), 128))])) : _createCommentVNode(\"\", true), _hoisted_9, props.menuItems ? (_openBlock(), _createElementBlock(\"button\", { key: 1, class: \"text-white md:hidden\", onClick: _cache[0] || (_cache[0] = $event => showMobileMenu.value = !showMobileMenu.value) }, [showMobileMenu.value ? (_openBlock(), _createElementBlock(\"img\", { key: 0, src: require('assets/images/icons/cancel.svg') }, null, 8, _hoisted_10)) : (_openBlock(), _createElementBlock(\"img\", { key: 1, src: require('assets/images/icons/menu.svg') }, null, 8, _hoisted_11))])) : _createCommentVNode(\"\", true)]), props.menuItems ? (_openBlock(), _createElementBlock(\"div\", { key: 0, class: _normalizeClass([\"absolute z-10 w-full flex-col items-center space-y-7 bg-menu bg-cover py-8 font-bold text-white md:hidden\", showMobileMenu.value ? 'flex' : 'hidden']) }, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.menuItems, (item, index) => { return _openBlock(), _createElementBlock(\"button\", { id: _unref(kebabCase)(item.label), key: index, \"gtm-id\": gtmButtonsId, class: _normalizeClass([\"h-10 w-40 rounded-md\", { 'bg-white/20': selectedItem.value === index }]), onClick: $event => selectItem(index, item) }, _toDisplayString(item.label), 11, _hoisted_12); }), 128))], 2)) : _createCommentVNode(\"\", true)])]); }; } });\n","import script from \"./the-header.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./the-header.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineStore } from 'pinia';\nimport { ref } from 'vue';\nconst useOrder = defineStore('order', // eslint-disable-next-line max-statements\n() => { const order = ref(); const orderItems = ref([]); const communeWithHayGasPrice = ref(false); const isHayGasOrder = ref(false); const gasItemsCompanyPrices = ref(); const prefillRegionId = ref(); const prefillCommuneId = ref(); const prefillEmail = ref(); const prefillDeliverySchedule = ref(); const skipPersonalForm = ref(false); const pesosHaygas = ref(0); function clearOrder() { order.value = undefined; } function setOrder(orderData) { order.value = orderData; } function setOrderItems(orderItemsData) { orderItems.value = orderItemsData; } function setGasItemsCompanyPrices(gasItemsCompanyPricesData) { gasItemsCompanyPrices.value = gasItemsCompanyPricesData; } function setIsHayGasOrder(isHayGasOrderData) { isHayGasOrder.value = isHayGasOrderData; } function setPrefillRegionId(regionId) { prefillRegionId.value = regionId; } function setPrefillCommuneId(communeId) { prefillCommuneId.value = communeId; } function setPrefillEmail(email) { prefillEmail.value = email; } function setPrefillDeliverySchedule(delierySchedule) { prefillDeliverySchedule.value = delierySchedule; } function setPesosHaygas(pesosHaygasData) { pesosHaygas.value = pesosHaygasData; } function setCommuneWithHayGasPrice(hasHayGasPrice) { communeWithHayGasPrice.value = hasHayGasPrice; } function setSkipPersonalForm(skip) { skipPersonalForm.value = skip; } function resetOrder() { order.value = undefined; orderItems.value = []; isHayGasOrder.value = false; gasItemsCompanyPrices.value = undefined; } function resetPrefilled() { prefillRegionId.value = 0; prefillCommuneId.value = 0; prefillDeliverySchedule.value = undefined; } return { order, orderItems, isHayGasOrder, communeWithHayGasPrice, gasItemsCompanyPrices, prefillRegionId, prefillCommuneId, prefillEmail, prefillDeliverySchedule, pesosHaygas, skipPersonalForm, setOrder, setOrderItems, setIsHayGasOrder, setGasItemsCompanyPrices, setPrefillRegionId, setPrefillCommuneId, setPrefillEmail, resetOrder, resetPrefilled, setPrefillDeliverySchedule, setPesosHaygas, setCommuneWithHayGasPrice, setSkipPersonalForm, clearOrder }; }, { persist: { storage: sessionStorage } });\nexport { useOrder };\n","import axios from 'axios';\nimport { csrfToken } from '../utils/csrfToken';\nimport { camelizeKeys, decamelizeKeys } from 'humps';\nimport { formatQueryParams } from '../utils/query-params';\nconst api = axios.create({ transformRequest: [data => decamelizeKeys(data), ...axios.defaults.transformRequest], transformResponse: [...axios.defaults.transformResponse, data => camelizeKeys(data)], headers: { 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-CSRF-Token': csrfToken() }, paramsSerializer(params) { return formatQueryParams(params); } });\nexport { api };\n","// From: https://github.com/rails/rails/blob/main/actionview/app/javascript/rails-ujs/utils/csrf.js\nfunction csrfToken() { const meta = document.querySelector('meta[name=csrf-token]'); const token = meta && meta.getAttribute('content'); return token != null ? token : false; }\nexport { csrfToken };\n","import { decamelizeKeys } from 'humps';\nexport function formatQueryParams(params) { const decamelizedParams = Object.entries(decamelizeKeys(params)); const activeParams = decamelizedParams.filter(([, value]) => value !== undefined); return new URLSearchParams(activeParams).toString(); }\n","import { api } from './index';\nfunction index(regionId) { const path = `/api/internal/regions/${regionId}/communes`; return api({ method: 'get', url: path }).then(response => { var _response$data; return (_response$data = response.data) == null ? void 0 : _response$data.communes; }); }\nexport { index };\n","import { api } from './index';\nexport const deliveryScheduleApi = { index(communesDistributorIds) { const path = '/api/internal/delivery_schedules'; return api({ method: 'get', url: path, params: { communesDistributorIds } }).then(response => { var _response$data; return (_response$data = response.data) == null ? void 0 : _response$data.deliverySchedules; }); }, show(communeId, distributorId, weekDay) { const path = '/api/internal/delivery_schedule'; return api({ method: 'get', url: path, params: { communeId, distributorId, weekDay } }).then(response => { var _response$data2; return (_response$data2 = response.data) == null ? void 0 : _response$data2.deliverySchedule; }); } };\n","export function getStgoHourFromDate(date) { return date.toLocaleString('es-CL', { timeZone: 'America/Santiago', hour: 'numeric', minute: 'numeric', hour12: false }); }\n","import { ref, onMounted, onUnmounted } from 'vue';\nimport { getStgoHourFromDate } from './get-stgo-hour-from-date';\nfunction getCurrentDateInfo() { const dateTime = ref(new Date()); const weekDay = ref(dateTime.value.getDay()); const stgoHour = ref(getStgoHourFromDate(dateTime.value)); function updateDateTime() { dateTime.value = new Date(); weekDay.value = dateTime.value.getDay(); stgoHour.value = getStgoHourFromDate(dateTime.value); } let intervalId; onMounted(() => { const oneSecond = 1000; intervalId = setInterval(updateDateTime, oneSecond); }); onUnmounted(() => { clearInterval(intervalId); }); return { dateTime, weekDay, stgoHour }; }\nexport { getCurrentDateInfo };\n","import { computed } from 'vue';\nimport { addMinutes } from 'date-fns';\nimport { getCurrentDateInfo } from 'utils/get-current-date-info';\nimport { getStgoHourFromDate } from 'utils/get-stgo-hour-from-date';\nconst ADDITION_MINUTES = 70;\nfunction useDeliveryScheduleHours(deliverySchedule) { const { dateTime, stgoHour } = getCurrentDateInfo(); const distributorOpeningHour = computed(() => deliverySchedule.value ? deliverySchedule.value.openingHour : undefined); const distributorClosingHour = computed(() => deliverySchedule.value ? deliverySchedule.value.closingHour : undefined); const offsetDateTime = addMinutes(dateTime.value, ADDITION_MINUTES); const offsetHourSantiago = getStgoHourFromDate(offsetDateTime); const beforeDistributorOpeningHour = computed(() => distributorOpeningHour.value === undefined || stgoHour.value < distributorOpeningHour.value); const afterDistributorClosingHour = computed(() => distributorClosingHour.value === undefined || stgoHour.value > distributorClosingHour.value); const outOfDeliveryTime = computed(() => beforeDistributorOpeningHour.value || afterDistributorClosingHour.value); return { offsetHourSantiago, beforeDistributorOpeningHour, afterDistributorClosingHour, outOfDeliveryTime }; }\nexport { useDeliveryScheduleHours };\n","function currency(value) { return new Intl.NumberFormat('es-CL', { style: 'currency', currency: 'CLP', currencyDisplay: 'symbol', useGrouping: true }).format(value); }\nexport { currency };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, resolveDynamicComponent as _resolveDynamicComponent, mergeProps as _mergeProps, createVNode as _createVNode } from \"vue\";\nconst _hoisted_1 = { class: \"relative mt-2 flex h-24 flex-col items-center justify-center space-y-2 text-base md:h-32 md:px-4 md:text-2xl\" };\nconst _hoisted_2 = { key: 0, class: \"absolute -top-2 block text-sm text-hg-pink md:text-base\" };\nconst _hoisted_3 = { key: 0, class: \"text-center md:text-2xl\" };\nconst _hoisted_4 = [\"src\"];\nconst _hoisted_5 = /*#__PURE__*/ _createTextVNode(\" No disponible \");\nconst _hoisted_6 = { key: 1, class: \"flex h-6 w-20 justify-center gap-2 md:w-28\" };\nconst _hoisted_7 = [\"id\"];\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"ml-2 text-sm text-white\" }, \"Pedir\", -1);\nimport kebabCase from 'lodash/kebabCase';\nimport { computed, inject } from 'vue';\nimport { currency } from 'utils/currency';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'gas-table-column-item', props: { distributorId: { default: 0 }, distributor: { default: '' }, communeCompanyItem: { default: undefined }, lowestPrice: { default: 0 }, url: { default: '' }, hayGasTablePrice: { default: undefined } }, setup(__props) { const props = __props; const isHayGasItem = computed(() => { var _props$communeCompany; return (_props$communeCompany = props.communeCompanyItem) == null ? void 0 : _props$communeCompany.hayGas; }); const orderItemInfo = computed(() => { var _props$communeCompany2, _props$communeCompany3, _props$communeCompany4; return { quantity: 1, size: (_props$communeCompany2 = props.communeCompanyItem) == null ? void 0 : _props$communeCompany2.size, gasItemReportId: (_props$communeCompany3 = props.communeCompanyItem) == null ? void 0 : _props$communeCompany3.gasItemReportId, userPrice: (_props$communeCompany4 = props.communeCompanyItem) == null ? void 0 : _props$communeCompany4.tablePrice }; }); const anchorAttrs = computed(() => { if (props.url.startsWith('https://')) {\n return { href: props.url, target: '_blank', rel: 'noopener' };\n } return { href: props.url }; }); const isHighlight = computed(() => { var _props$communeCompany5; const isLowestPrice = props.lowestPrice === ((_props$communeCompany5 = props.communeCompanyItem) == null ? void 0 : _props$communeCompany5.tablePrice); if (!isLowestPrice)\n return false; if (!props.communeCompanyItem.hayGas) {\n if (props.hayGasTablePrice) {\n return props.lowestPrice < props.hayGasTablePrice;\n }\n return true;\n } return isLowestPrice; }); const handleDistributorSelectWithTimeCheck = inject('handleDistributorSelectWithTimeCheck'); function clickOrderItem(event) { if (orderItemInfo.value.userPrice && handleDistributorSelectWithTimeCheck) {\n handleDistributorSelectWithTimeCheck(event, props.distributorId, props.url, props.communeCompanyItem.distributorCompanyName, isHayGasItem.value, orderItemInfo.value);\n } } return (_ctx, _cache) => { const _component_VTooltip = _resolveComponent(\"VTooltip\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_unref(isHighlight) ? (_openBlock(), _createElementBlock(\"p\", _hoisted_2, \" Más barato \")) : _createCommentVNode(\"\", true), (_openBlock(), _createBlock(_resolveDynamicComponent(_unref(orderItemInfo).userPrice ? 'a' : 'div'), _mergeProps({ id: _unref(kebabCase)(__props.distributor) }, _unref(orderItemInfo).userPrice ? _unref(anchorAttrs) : '', { \"gtm-id\": \"table-column-link\", class: [\"flex w-20 items-center justify-center font-bold text-zinc-100 md:w-28 md:font-normal\", { 'h-12 rounded-md border border-hg-pink bg-hg-pink/20 shadow-hg-item': _unref(isHighlight), 'md:h-16 md:rounded-xl md:font-bold': _unref(isHighlight), 'h-4 md:h-6': !_unref(isHighlight) }], onClick: _cache[0] || (_cache[0] = $event => clickOrderItem($event)) }), { default: _withCtx(() => [_unref(orderItemInfo).userPrice ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_unref(currency)(_unref(orderItemInfo).userPrice)), 1)) : (_openBlock(), _createBlock(_component_VTooltip, { key: 1, distance: -24, class: \"w-full\" }, { popper: _withCtx(() => [_hoisted_5]), default: _withCtx(() => [_createElementVNode(\"img\", { src: require('assets/images/icons/dash.svg'), class: \"mx-auto w-11 md:w-full md:p-8\" }, null, 8, _hoisted_4)]), _: 1 }))]), _: 1 }, 16, [\"id\", \"class\"])), _unref(orderItemInfo).userPrice ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [_createElementVNode(\"a\", _mergeProps({ id: _unref(kebabCase)(__props.distributor) }, _unref(anchorAttrs), { \"gtm-id\": \"table-request-button-link\", class: ['flex h-full w-full items-center justify-center rounded px-0.5 py-px', _unref(isHighlight) ? 'bg-hg-pink' : 'bg-hg-pink/25'], onClick: _cache[1] || (_cache[1] = $event => clickOrderItem($event)) }), [_hoisted_8, _createVNode(_component_inline_svg, { src: require('assets/images/icons/arrow-right.svg'), class: \"h-5 w-5 fill-current\", alt: \"Flecha para hacer pedido\" }, null, 8, [\"src\"])], 16, _hoisted_7)])) : _createCommentVNode(\"\", true)]); }; } });\n","import script from \"./gas-table-column-item.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./gas-table-column-item.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex w-full flex-col\" };\nconst _hoisted_2 = { class: \"flex h-20 items-center justify-center space-x-3 border-b border-white/20 text-center font-bold text-zinc-50 md:mb-3 md:h-14 md:items-start md:space-x-0 md:px-5 md:text-2xl\" };\nconst _hoisted_3 = [\"src\"];\nconst _hoisted_4 = { class: \"w-auto text-center\" };\nconst _hoisted_5 = [\"src\"];\nimport { computed } from 'vue';\nimport minBy from 'lodash/minBy';\nimport GasTableColumnItem from './gas-table-column-item.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'gas-table-column', props: { communeCompanyItems: null, distributors: null, companiesNames: null, size: null, showPrev: { type: Boolean, default: true }, showNext: { type: Boolean, default: true } }, emits: ['previous', 'next'], setup(__props, { emit }) { const props = __props; const lowestPrice = computed(() => { var _minBy; return (_minBy = minBy(props.communeCompanyItems, 'tablePrice')) == null ? void 0 : _minBy.tablePrice; }); const hayGasInfo = computed(() => { const hayGasItem = props.communeCompanyItems.find(item => item.hayGas); return { existHayGasPrice: !!hayGasItem, hayGasTablePrice: hayGasItem ? hayGasItem.tablePrice : undefined }; }); function getCommuneCompanyItem(companyName) { return props.communeCompanyItems.find(communeCompanyItem => communeCompanyItem.companyName === companyName); } function getDistributor(communeCompanyItem) { return props.distributors.find(distributor => distributor.name === (communeCompanyItem == null ? void 0 : communeCompanyItem.distributorName)); } function getDistributorName(companyName) { const communeCompanyItem = getCommuneCompanyItem(companyName); const gasItemDistributor = getDistributor(communeCompanyItem); return gasItemDistributor == null ? void 0 : gasItemDistributor.name; } function getDistributorId(companyName) { const gasItem = getCommuneCompanyItem(companyName); const gasItemDistributor = getDistributor(gasItem); return gasItemDistributor == null ? void 0 : gasItemDistributor.id; } function getDistributorUrl(companyName) { const gasItem = getCommuneCompanyItem(companyName); const gasItemDistributor = getDistributor(gasItem); return gasItemDistributor == null ? void 0 : gasItemDistributor.buyUrl; } return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"button\", { class: _normalizeClass([\"block md:hidden\", { 'invisible': !__props.showPrev }]), onClick: _cache[0] || (_cache[0] = $event => emit('previous')) }, [_createElementVNode(\"img\", { src: require('assets/images/icons/chevron-left.svg') }, null, 8, _hoisted_3)], 2), _createElementVNode(\"p\", _hoisted_4, _toDisplayString(__props.size) + \"kg \", 1), _createElementVNode(\"button\", { class: _normalizeClass([\"block md:hidden\", { 'invisible': !__props.showNext }]), onClick: _cache[1] || (_cache[1] = $event => emit('next')) }, [_createElementVNode(\"img\", { src: require('assets/images/icons/chevron-right.svg') }, null, 8, _hoisted_5)], 2)]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.companiesNames, companyName => { return _openBlock(), _createBlock(GasTableColumnItem, { key: companyName, \"commune-company-item\": getCommuneCompanyItem(companyName), \"distributor-id\": getDistributorId(companyName), url: getDistributorUrl(companyName), distributor: getDistributorName(companyName), \"lowest-price\": _unref(lowestPrice), \"hay-gas-table-price\": _unref(hayGasInfo).hayGasTablePrice }, null, 8, [\"commune-company-item\", \"distributor-id\", \"url\", \"distributor\", \"lowest-price\", \"hay-gas-table-price\"]); }), 128))]); }; } });\n","import script from \"./gas-table-column.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./gas-table-column.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, unref as _unref, withCtx as _withCtx, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = [\"src\"];\nimport { ref, inject, computed, watch } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'gas-table-modal', props: { modalState: null, isBeforeDistributorOpeningHour: { type: Boolean }, cheapestCommuneCompanyItem: null, cheapestDistributor: null, distributorBuyUrl: null }, setup(__props) {\n const props = __props;\n const officialDistributorUrl = computed(() => { switch (props.distributorBuyUrl) {\n case 'LIPIGAS': return 'https://lipigas.cl/';\n case 'GASCO': return 'https://pedidos.gasco.cl/#/cilindro/pedido-cilindro';\n case 'ABASTIBLE WEB': return 'https://abastible.cl/';\n default: return 'https://haygas.cl/';\n } });\n const cheapestPrice = computed(() => ({ modalIcon: require('assets/images/icons/error-circle.svg'), modalTitle: '¡No elegiste el gas más barato!', firstButtonModalUrl: props.cheapestDistributor ? props.cheapestDistributor.buyUrl : '', firstButtonTitle: 'Pedir el más barato', secondButtonModalUrl: props.distributorBuyUrl, secondButtonTitle: 'Continuar con mi elección', modalMessage: '¡No elegiste el gas más barato! ' + 'Recuerda que puedes pedir cualquier marca sin costo adicional. ' + 'No importa la marca de tu cilindro vacío.' }));\n const outOfDeliveryTime = computed(() => ({ modalIcon: props.isBeforeDistributorOpeningHour ? require('assets/images/door-opening-time.png') : require('assets/images/store-closing-time.png'), modalTitle: props.isBeforeDistributorOpeningHour ? 'Muy pronto abrirán' : 'Este distribuidor acaba de cerrar', firstButtonModalUrl: props.distributorBuyUrl, firstButtonTitle: 'Programar el pedido', secondButtonModalUrl: '', secondButtonTitle: '', modalMessage: props.isBeforeDistributorOpeningHour ? `Nuestros distribuidores están a puertas de abrir,\n de igual forma puedes pedirlo para que llegue el día de hoy.` : 'Este distribuidor acaba de cerrar hace unos minutos, pero puedes programar tu pedido para mañana.' }));\n const officialDistributor = computed(() => ({ modalIcon: require('assets/images/icons/error-circle.svg'), modalTitle: 'Actualmente no tenemos distribuidores de esa marca', firstButtonModalUrl: officialDistributorUrl.value, firstButtonTitle: 'Pedir de manera directa', secondButtonModalUrl: '', secondButtonTitle: '', modalMessage: 'Actualmente no tenemos distribuidores de esa marca, pero puedes pedirlo directamente por su página' }));\n const emptyModal = { modalIcon: '', modalTitle: '', firstButtonModalUrl: '', firstButtonTitle: '', secondButtonModalUrl: '', secondButtonTitle: '', modalMessage: '' };\n const currentModal = ref(emptyModal);\n const isCheapestCommuneCompanyItemHayGas = computed(() => { var _props$cheapestCommun; return ((_props$cheapestCommun = props.cheapestCommuneCompanyItem) == null ? void 0 : _props$cheapestCommun.hayGas) || false; });\n const closeModal = inject('closeModal');\n const setOrderItemInfo = inject('setOrderItemInfo');\n const checkDistributorTime = inject('checkDistributorTime');\n function getSize() { var _props$cheapestCommun2; return ((_props$cheapestCommun2 = props.cheapestCommuneCompanyItem) == null ? void 0 : _props$cheapestCommun2.size) || 0; }\n function getGasItemReportId() { var _props$cheapestCommun3; return ((_props$cheapestCommun3 = props.cheapestCommuneCompanyItem) == null ? void 0 : _props$cheapestCommun3.gasItemReportId) || 0; }\n function getPrice() { var _props$cheapestCommun4; return ((_props$cheapestCommun4 = props.cheapestCommuneCompanyItem) == null ? void 0 : _props$cheapestCommun4.tablePrice) || 0; }\n function getCheapestOrderItemInfo() { const size = getSize(); const gasItemReportId = getGasItemReportId(); const userPrice = getPrice(); return { quantity: 1, size, gasItemReportId, userPrice }; }\n const cheapestOrderItemInfo = computed(getCheapestOrderItemInfo);\n function fillOrderWithCheapestGasItem() { if (props.cheapestDistributor && setOrderItemInfo) {\n setOrderItemInfo(props.cheapestDistributor.id, props.cheapestDistributor.buyUrl, props.cheapestDistributor.gasCompanyName, isCheapestCommuneCompanyItemHayGas.value, cheapestOrderItemInfo.value);\n } }\n function clickCurrentGasItemOption(payload) { const event = payload.event; if (checkDistributorTime && closeModal) {\n closeModal();\n checkDistributorTime(event);\n } }\n function clickCheapestGasItemOption(payload) { const event = payload.event; if (props.modalState === 'cheapestPrice' && checkDistributorTime && closeModal) {\n fillOrderWithCheapestGasItem();\n closeModal();\n checkDistributorTime(event);\n } }\n watch(() => props.modalState, newModalState => { switch (newModalState) {\n case 'outOfDeliveryTime':\n currentModal.value = outOfDeliveryTime.value;\n break;\n case 'cheapestPrice':\n currentModal.value = cheapestPrice.value;\n break;\n case 'officialDistributor':\n currentModal.value = officialDistributor.value;\n break;\n default: currentModal.value = emptyModal;\n } });\n return (_ctx, _cache) => { const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: props.modalState !== 'none', \"first-button-url\": currentModal.value.firstButtonModalUrl, \"second-button-url\": currentModal.value.secondButtonModalUrl, onClose: _unref(closeModal), onFirstButtonClick: clickCheapestGasItemOption, onSecondButtonClick: clickCurrentGasItemOption }, _createSlots({ title: _withCtx(() => [_createTextVNode(_toDisplayString(currentModal.value.modalTitle), 1)]), image: _withCtx(() => [_createElementVNode(\"img\", { src: currentModal.value.modalIcon, class: \"h-20 w-20 fill-current text-hg-pink\" }, null, 8, _hoisted_1)]), description: _withCtx(() => [_createTextVNode(_toDisplayString(currentModal.value.modalMessage), 1)]), firstButtonTitle: _withCtx(() => [_createTextVNode(_toDisplayString(currentModal.value.firstButtonTitle), 1)]), _: 2 }, [currentModal.value.secondButtonTitle ? { name: \"secondButtonTitle\", fn: _withCtx(() => [_createTextVNode(_toDisplayString(currentModal.value.secondButtonTitle), 1)]) } : undefined]), 1032, [\"open\", \"first-button-url\", \"second-button-url\", \"onClose\"]); };\n } });\n","import script from \"./gas-table-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./gas-table-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import { render } from \"./base-callout.vue?vue&type=template&id=741b52cb\"\nconst script = {}\n\nimport exportComponent from \"/tmp/build_6638a752/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"p-3 text-left md:p-6 md:text-center md:text-2xl\" }, [/*#__PURE__*/ _createTextVNode(\" Precio \"), /*#__PURE__*/ _createElementVNode(\"strong\", null, \"HAY Gas!\"), /*#__PURE__*/ _createTextVNode(\" es un precio exclusivo que nos han dado nuestros distribuidores en esta comuna \")], -1);\nconst _hoisted_2 = { class: \"flex flex-row items-end justify-end space-x-2 md:hidden\" };\nconst _hoisted_3 = [\"onClick\"];\nconst _hoisted_4 = { class: \"flex rounded-xl bg-hg-pink/20 text-zinc-100 md:justify-between md:rounded-3xl md:p-6\" };\nconst _hoisted_5 = { class: \"flex w-36 shrink-0 flex-col rounded-l-xl pt-[79px] shadow-hg-col md:w-auto md:rounded-l-3xl md:bg-transparent md:pt-[68px] md:shadow-none\" };\nconst _hoisted_6 = { key: 0, class: \"w-full text-center font-bold text-zinc-100\" };\nconst _hoisted_7 = { class: \"mx-auto flex flex-col space-y-2 md:space-y-4\" };\nconst _hoisted_8 = [\"id\", \"href\", \"onClick\"];\nconst _hoisted_9 = { key: 1, class: \"w-36 text-center text-zinc-100\" };\nimport { computed, ref, watch, provide } from 'vue';\nimport { useOrder } from 'store/order';\nimport { useIndexDeliverySchedules } from 'composables/useDeliverySchedule';\nimport { useDeliveryScheduleHours } from 'composables/useDeliveryScheduleHours';\nimport groupBy from 'lodash/groupBy';\nimport kebabCase from 'lodash/kebabCase';\nimport mapValues from 'lodash/mapValues';\nimport sortBy from 'lodash/sortBy';\nimport uniq from 'lodash/uniq';\nimport GasTableColumn from './gas-table-column.vue';\nimport GasTableModal from './gas-table-modal.vue';\nimport BaseCallout from './base-callout.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'gas-table', props: { communeCompanyItems: null, distributors: null }, setup(__props) {\n const props = __props;\n const MINIMUM_SWIPE = 40;\n const DEFAULT_GAS_SIZE = 11;\n const companiesNames = computed(() => { const allCompanyNames = props.communeCompanyItems.map(communeCompanyItem => communeCompanyItem.companyName); const uniqueCompanyNames = uniq(allCompanyNames); const haygasIndex = uniqueCompanyNames.indexOf('haygas'); if (haygasIndex > -1) {\n uniqueCompanyNames.splice(haygasIndex, 1);\n return ['haygas', ...uniqueCompanyNames];\n } return uniqueCompanyNames; });\n const gasGroupedBySize = computed(() => { const groupedGas = groupBy(props.communeCompanyItems, 'size'); return mapValues(groupedGas, group => sortBy(group, 'id')); });\n const cheapestCommuneCompanyItemBySize = computed(() => { const cheapestCommuneCompanyItem = mapValues(gasGroupedBySize.value, communeCompanyItems => { const minPrice = Math.min(...communeCompanyItems.map(item => item.tablePrice)); return communeCompanyItems.filter(communeCompanyItem => communeCompanyItem.tablePrice === minPrice); }); return cheapestCommuneCompanyItem; });\n const cheapestCommuneCompanyItem = ref(undefined);\n const cheapestDistributor = computed(() => { const distributor = props.distributors.find(d => { var _cheapestCommuneCompa; return d.name === ((_cheapestCommuneCompa = cheapestCommuneCompanyItem.value) == null ? void 0 : _cheapestCommuneCompa.distributorName); }); return distributor; });\n const gasSizes = computed(() => sortBy(Object.keys(gasGroupedBySize.value).map(Number)));\n const currentSizeIndex = ref(gasSizes.value.indexOf(DEFAULT_GAS_SIZE));\n const touchstartX = ref(0);\n const touchendX = ref(0);\n const orderStore = useOrder();\n const communesDistributorIds = computed(() => [...new Set(props.communeCompanyItems.map(communeCompanyItem => communeCompanyItem.communesDistributorId))]);\n const distributorsDeliverySchedules = useIndexDeliverySchedules(communesDistributorIds);\n const prefillDeliverySchedule = ref(orderStore.prefillDeliverySchedule);\n const distributorBuyUrl = ref('');\n const { outOfDeliveryTime, beforeDistributorOpeningHour } = useDeliveryScheduleHours(prefillDeliverySchedule);\n const currentModal = ref('none');\n function nextSizeIndex() { const maxIndex = gasSizes.value.length - 1; if (currentSizeIndex.value !== maxIndex) {\n currentSizeIndex.value++;\n } }\n function getGasItemCompanyPricesGroupedBySize(distributorCompanyName) { const gasItemCompanyPricesGroupedBySize = {}; Object.keys(gasGroupedBySize.value).forEach(size => { const items = gasGroupedBySize.value[parseInt(size, 10)]; const prices = { hayGasPrice: null, companyTablePrice: null }; const hayGasItem = items.find(item => item.gasCompanyId === null); const companyItem = items.find(item => item.companyName === distributorCompanyName); if (hayGasItem) {\n prices.hayGasPrice = hayGasItem.tablePrice;\n } if (companyItem) {\n prices.companyTablePrice = companyItem.tablePrice;\n } gasItemCompanyPricesGroupedBySize[parseInt(size, 10)] = prices; }); return gasItemCompanyPricesGroupedBySize; }\n function prevSizeIndex() { if (currentSizeIndex.value !== 0) {\n currentSizeIndex.value--;\n } }\n function handleTouchStart(event) { touchstartX.value = event.changedTouches[0].screenX; }\n function handleTouchEnd(event) { touchendX.value = event.changedTouches[0].screenX; if (Math.abs(touchstartX.value - touchendX.value) > MINIMUM_SWIPE) {\n if (touchstartX.value < touchendX.value) {\n prevSizeIndex();\n }\n else {\n nextSizeIndex();\n }\n } }\n function setPrefillDeliverySchedule(distributorId) { var _distributorsDelivery; prefillDeliverySchedule.value = (_distributorsDelivery = distributorsDeliverySchedules.value) == null ? void 0 : _distributorsDelivery.find(deliverySchedule => deliverySchedule.distributorId === distributorId); orderStore.setPrefillDeliverySchedule(prefillDeliverySchedule.value); }\n function setDistributorBuyUrl(url) { distributorBuyUrl.value = url; }\n function setPrefillOrderItem(orderItem) { orderStore.setOrderItems([orderItem]); }\n function setGasItemsCompanyPrices(companyName) { const gasItemCompanyPricesGroupedBySize = getGasItemCompanyPricesGroupedBySize(companyName); orderStore.setGasItemsCompanyPrices(gasItemCompanyPricesGroupedBySize); }\n function setIsHayGasOrder(isHayGasOrder) { orderStore.setIsHayGasOrder(isHayGasOrder); }\n function isLowestPriceOfCategory(orderItem) { if (orderStore.isHayGasOrder) {\n return true;\n } cheapestCommuneCompanyItem.value = cheapestCommuneCompanyItemBySize.value[orderItem.size][0]; return orderItem.userPrice <= cheapestCommuneCompanyItem.value.tablePrice; }\n function checkOfficialDistributor(event, orderItem, distributorCompanyName) { if (orderItem && !Boolean(orderItem.gasItemReportId)) {\n event.preventDefault();\n setDistributorBuyUrl(distributorCompanyName);\n currentModal.value = 'officialDistributor';\n } }\n function checkOrderItemPrice(event, orderItem) { if (orderItem && !isLowestPriceOfCategory(orderItem)) {\n event.preventDefault();\n currentModal.value = 'cheapestPrice';\n } }\n function checkDistributorTime(event) { if (outOfDeliveryTime.value) {\n event.preventDefault();\n currentModal.value = 'outOfDeliveryTime';\n } }\n function getCommuneCompanyItem(companyName) { return props.communeCompanyItems.find(communeCompanyItem => communeCompanyItem.companyName === companyName); }\n function getDistributor(communeCompanyItem) { return props.distributors.find(distributor => distributor.name === (communeCompanyItem == null ? void 0 : communeCompanyItem.distributorName)); }\n function getDistributorName(companyName) { const communeCompanyItem = getCommuneCompanyItem(companyName); const gasItemDistributor = getDistributor(communeCompanyItem); return gasItemDistributor == null ? void 0 : gasItemDistributor.name; }\n function getDistributorId(companyName) { const gasItem = getCommuneCompanyItem(companyName); const gasItemDistributor = getDistributor(gasItem); return gasItemDistributor == null ? void 0 : gasItemDistributor.id; }\n function getDistributorUrl(companyName) { const gasItem = getCommuneCompanyItem(companyName); const gasItemDistributor = getDistributor(gasItem); return gasItemDistributor == null ? void 0 : gasItemDistributor.buyUrl; } // eslint-disable-next-line max-params\n function setOrderItemInfo(distributorId, distributorUrl, distributorCompanyName, isHayGasItem, orderItem) { setPrefillDeliverySchedule(distributorId); setDistributorBuyUrl(distributorUrl); setGasItemsCompanyPrices(distributorCompanyName); setIsHayGasOrder(isHayGasItem); if (orderItem) {\n setPrefillOrderItem(orderItem);\n } } // eslint-disable-next-line max-len, vue/max-len, max-params\n function handleDistributorSelectWithTimeCheck(event, distributorId, distributorUrl, distributorCompanyName, isHayGasItem, orderItem) { setOrderItemInfo(distributorId, distributorUrl, distributorCompanyName, isHayGasItem, orderItem); if (orderItem) {\n checkOfficialDistributor(event, orderItem, distributorCompanyName);\n } if (currentModal.value !== 'officialDistributor' && orderItem) {\n checkOrderItemPrice(event, orderItem);\n } if (currentModal.value !== 'cheapestPrice' && currentModal.value !== 'officialDistributor') {\n checkDistributorTime(event);\n } }\n function getOrderItemInfo(companyName) { const communeCompanyItem = getCommuneCompanyItem(companyName); return { quantity: 1, size: communeCompanyItem == null ? void 0 : communeCompanyItem.size, gasItemReportId: communeCompanyItem == null ? void 0 : communeCompanyItem.gasItemReportId, userPrice: communeCompanyItem == null ? void 0 : communeCompanyItem.tablePrice }; }\n function closeModal() { currentModal.value = 'none'; }\n provide('handleDistributorSelectWithTimeCheck', handleDistributorSelectWithTimeCheck);\n provide('checkDistributorTime', checkDistributorTime);\n provide('setOrderItemInfo', setOrderItemInfo);\n provide('closeModal', closeModal);\n watch(gasGroupedBySize, () => { const defaultGasIndex = gasSizes.value.indexOf(DEFAULT_GAS_SIZE); currentSizeIndex.value = defaultGasIndex > -1 ? defaultGasIndex : 0; });\n const sizes = { 5: 'h-6 w-4', 11: 'h-9 w-5', 15: 'h-9 w-6', 45: 'h-12 w-5' };\n function gasItemIconSize(size) { return sizes[size] || ''; }\n return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(_Fragment, null, [_unref(companiesNames).find(companyName => companyName === 'haygas') ? (_openBlock(), _createBlock(BaseCallout, { key: 0, class: \"mb-7\" }, { default: _withCtx(() => [_hoisted_1]), _: 1 })) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", { class: \"flex flex-col space-y-3 md:space-y-0\", onTouchstart: handleTouchStart, onTouchend: handleTouchEnd }, [_createElementVNode(\"div\", _hoisted_2, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(gasSizes), (size, index) => { return _openBlock(), _createElementBlock(\"button\", { key: size, class: _normalizeClass(index === currentSizeIndex.value ? 'text-hg-pink' : 'text-hg-pink/20'), onClick: $event => currentSizeIndex.value = index }, [_createVNode(_component_inline_svg, { src: require(`assets/images/icons/${size}-kg-icon.svg`), class: _normalizeClass([\"fill-current\", gasItemIconSize(size)]), alt: \"Icono de balón de gas\" }, null, 8, [\"src\", \"class\"])], 10, _hoisted_3); }), 128))]), _createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"div\", _hoisted_5, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(companiesNames), companyName => { return _openBlock(), _createElementBlock(\"div\", { key: companyName, class: \"mt-1 flex h-24 flex-col items-start justify-center space-y-2 px-2.5 text-sm text-hg-pink md:h-32 md:px-5 md:pl-4 md:pr-12 md:text-base\", target: \"_blank\", rel: \"noopener\" }, [companyName === 'haygas' ? (_openBlock(), _createElementBlock(\"p\", _hoisted_6, \" Precio especial para \")) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_7, [_createElementVNode(\"a\", { id: _unref(kebabCase)(getDistributorName(companyName)), href: getDistributorUrl(companyName), rel: \"noopener\", \"gtm-id\": \"table-logo-link\", target: '_self', onClick: event => { var _getCommuneCompanyIte; return handleDistributorSelectWithTimeCheck(event, getDistributorId(companyName), getDistributorUrl(companyName), (_getCommuneCompanyIte = getCommuneCompanyItem(companyName)) == null ? void 0 : _getCommuneCompanyIte.distributorCompanyName, companyName === 'haygas', getOrderItemInfo(companyName)); } }, [_createVNode(_component_inline_svg, { src: require(`assets/images/${_unref(kebabCase)(companyName)}.svg`), class: _normalizeClass(companyName === 'haygas' ? 'h-14 md:16' : 'h-5 md:h-7'), alt: `Logo del distribuidor ${_unref(kebabCase)(companyName)}` }, null, 8, [\"src\", \"class\", \"alt\"])], 8, _hoisted_8)]), companyName === 'haygas' ? (_openBlock(), _createElementBlock(\"p\", _hoisted_9, \" Recibirás Abastible, Gasco o Lipigas \")) : _createCommentVNode(\"\", true)]); }), 128))]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(gasSizes), (size, index) => { return _openBlock(), _createBlock(GasTableColumn, { key: size, \"commune-company-items\": _unref(gasGroupedBySize)[size], distributors: props.distributors, \"companies-names\": _unref(companiesNames), size: size, \"show-prev\": index !== 0, \"show-next\": index !== _unref(gasSizes).length - 1, class: _normalizeClass([{ 'hidden': index !== currentSizeIndex.value }, \"px-2 md:flex md:p-0\"]), onPrevious: _cache[0] || (_cache[0] = $event => prevSizeIndex()), onNext: _cache[1] || (_cache[1] = $event => nextSizeIndex()) }, null, 8, [\"commune-company-items\", \"distributors\", \"companies-names\", \"size\", \"show-prev\", \"show-next\", \"class\"]); }), 128)), _createVNode(GasTableModal, { \"is-before-distributor-opening-hour\": _unref(beforeDistributorOpeningHour), \"modal-state\": currentModal.value, \"cheapest-commune-company-item\": cheapestCommuneCompanyItem.value, \"cheapest-distributor\": _unref(cheapestDistributor), \"distributor-buy-url\": distributorBuyUrl.value }, null, 8, [\"is-before-distributor-opening-hour\", \"modal-state\", \"cheapest-commune-company-item\", \"cheapest-distributor\", \"distributor-buy-url\"])])], 32)], 64); };\n } });\n","import { useQuery } from '@tanstack/vue-query';\nimport { deliveryScheduleApi } from 'api/delivery-schedules';\nfunction useIndexDeliverySchedules(communesDistributorIds) { const { data: distributorsDeliverySchedule } = useQuery(['deliverySchedules', communesDistributorIds], () => deliveryScheduleApi.index(communesDistributorIds.value)); return distributorsDeliverySchedule; }\nfunction useGetDeliverySchedule({ distributorId, communeId, day }) { const { data: deliverySchedule } = useQuery(['deliverySchedule', communeId, distributorId, day], () => deliveryScheduleApi.show(communeId, distributorId, day), { enabled: !!communeId && !!distributorId }); return deliverySchedule; }\nexport { useGetDeliverySchedule, useIndexDeliverySchedules };\n","import script from \"./gas-table.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./gas-table.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { api } from './index';\nexport const usersApi = { show(phoneNumber) { const path = '/api/internal/user'; return api({ method: 'get', url: path, params: { phoneNumber } }).then(response => { var _response$data; return (_response$data = response.data) == null ? void 0 : _response$data.user; }); }, create(user) { const path = '/api/internal/users'; return api({ method: 'post', url: path, data: { user } }).then(response => response.data); }, createRefereeUser(refereeUser) { const path = '/api/internal/users/create_referee_user'; return api({ method: 'post', url: path, data: { refereeUser } }).then(response => response.data); }, getUserWithReferralCode(phoneNumber) { const path = '/api/internal/users/get_user_with_referral_code'; return api({ method: 'get', url: path, params: { phoneNumber } }).then(response => response.data.user); }, validateReferLinkForUser(referralCode, phoneNumber) { const path = '/api/internal/users/valid_refer_link_for_user'; return api({ method: 'get', url: path, params: { referralCode, phoneNumber } }).then(response => response.data); }, sendRegistrationOtp(phoneNumber, otpCode) { const path = '/api/internal/users/send_registration_otp'; return api({ method: 'post', url: path, data: { registrationOtp: { phoneNumber, otpCode } } }).then(response => response.data.success); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { key: 0, class: \"mb-1 flex justify-end text-sm font-semibold text-white\" };\nconst _hoisted_2 = { class: \"flex items-center justify-between rounded-lg border border-gray-300 bg-gray-50 p-3 shadow-sm\" };\nconst _hoisted_3 = [\"href\"];\nconst _hoisted_4 = { class: \"flex items-center space-x-3\" };\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"h-6 border-l border-gray-300\" }, null, -1);\nconst _hoisted_6 = [\"src\"];\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"h-6 border-l border-gray-300\" }, null, -1);\nconst _hoisted_8 = [\"src\"];\nimport { computed, ref } from 'vue';\nimport { currency } from 'utils/currency';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'refer-link', props: { referLink: null, isCourier: { type: Boolean } }, setup(__props) { const props = __props; const COURIER_REWARD = 500; const USER_REWARD = 3000; const milisecondsToCopyText = 2000; const showCopyText = ref(false); const reward = computed(() => props.isCourier ? COURIER_REWARD : USER_REWARD); const textToReffer = 'En HAY Gas! ya tenemos precios bajos y el mejor servicio, pero te regalo ' + `${currency(reward.value)} pesos adicionales de descuento para tu primer pedido a precio HAY Gas!*` + `Activa tu descuento en este link, el que se aplicará automáticamente cuando hagas tu próximo pedido:\\n\\n${props.referLink}`; function copyToClipboard() { navigator.clipboard.writeText(props.referLink); showCopyText.value = true; setTimeout(() => { showCopyText.value = false; }, milisecondsToCopyText); } function shareOnWhatsApp() { const whatsappUrl = `https://wa.me/?text=${encodeURIComponent(textToReffer)}`; window.open(whatsappUrl, '_blank'); } return (_ctx, _cache) => { return _openBlock(), _createElementBlock(_Fragment, null, [showCopyText.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_1, \" ¡Copiado! \")) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"a\", { href: `https://${props.referLink}`, class: \"mr-4 flex-1 break-all text-blue-400\" }, _toDisplayString(props.referLink), 9, _hoisted_3), _createElementVNode(\"div\", _hoisted_4, [_hoisted_5, _createElementVNode(\"button\", { class: \"rounded-full p-2 hover:bg-gray-200\", onClick: copyToClipboard }, [_createElementVNode(\"img\", { src: require('assets/images/copy.svg'), alt: \"Copiar\", class: \"h-8 w-8 md:h-10 md:w-10\" }, null, 8, _hoisted_6)]), _hoisted_7, _createElementVNode(\"button\", { class: \"rounded-full p-2 hover:bg-gray-200\", onClick: shareOnWhatsApp }, [_createElementVNode(\"img\", { src: require('assets/images/whatsapp-color.svg'), alt: \"WhatsApp\", class: \"h-8 w-8 md:h-10 md:w-10\" }, null, 8, _hoisted_8)])])])], 64); }; } });\n","import script from \"./refer-link.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./refer-link.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, unref as _unref, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"space-y-6 p-6 md:py-10 md:px-11\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"font-display text-3xl md:text-[40px]\" }, \" ¡Regala $3.000 a un amigo para su primer pedido y gana $3.000 tu también! \", -1);\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"md:text-2xl\" }, \" Crea y comparte tu link de descuento con tus amigos y les haremos $3.000 de descuento en su primer pedido a precio HAY Gas!. Además ganarás $3.000 de descuento cuando tus amigos hagan su primer pedido HAY Gas! \", -1);\nconst _hoisted_4 = { class: \"flex flex-col space-y-1 sm:items-center sm:justify-center md:flex-row md:space-x-2\" };\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-1 flex w-14 items-center justify-center rounded-l-lg bg-slate-200 px-2 text-sm font-normal text-black\" }, \" +56 \", -1);\nconst _hoisted_6 = { class: \"w-full md:w-1/4\" };\nconst _hoisted_7 = /*#__PURE__*/ _createTextVNode(\" Cambiar número \");\nconst _hoisted_8 = /*#__PURE__*/ _createTextVNode(\" Obtener mi link de descuento \");\nconst _hoisted_9 = { key: 0, class: \"my-6 mx-auto w-4/5\" };\nimport { useForm } from 'vee-validate';\nimport { ref } from 'vue';\nimport { usersApi } from 'api/users';\nimport { object, string } from 'yup';\nimport BaseCallout from './base-callout.vue';\nimport ReferLink from './refer-link.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'refer-form', setup(__props) { const maxPhoneNumberLength = 9; const phoneNumber = ref(''); const phoneNumberIsSet = ref(false); const userLink = ref('haygas.cl'); const loading = ref(false); const error = ref(false); const isCourier = ref(false); const formRules = object().shape({ phoneNumber: string().matches(/^\\d{9}$/, 'Ingresa un número de teléfono válido').required('Ingresa un número de teléfono válido') }); useForm({ validationSchema: formRules }); const formValues = { phoneNumber: '' }; function clearPhoneNumber() { phoneNumberIsSet.value = false; phoneNumber.value = ''; } async function getUserReferralLink() { phoneNumberIsSet.value = true; loading.value = true; try {\n const user = await usersApi.getUserWithReferralCode(phoneNumber.value);\n const courierParam = user.courierId ? `&courier=${user.courierId}` : '';\n isCourier.value = !!user.courierId;\n userLink.value = `https://haygas.cl/referidos?ref=${user.referralCode}${courierParam}`;\n loading.value = false;\n }\n catch (e) {\n error.value = true;\n loading.value = false;\n } } function checkPhoneNumber(event) { const isNotNumber = isNaN(Number(event.key)); if (isNotNumber)\n event.preventDefault(); } return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createBlock(BaseCallout, { class: \"rounded-2xl\" }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_1, [_hoisted_2, _hoisted_3, _createVNode(_component_v_form, { \"validation-schema\": _unref(formRules), \"initial-values\": formValues }, { default: _withCtx(({ meta }) => [_createElementVNode(\"div\", _hoisted_4, [_createVNode(_component_base_input, { modelValue: phoneNumber.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => phoneNumber.value = $event), name: \"phoneNumber\", label: \"\", placeholder: \"Ingresa tu número\", class: \"w-full md:w-1/2\", maxlength: maxPhoneNumberLength, disabled: phoneNumberIsSet.value, onKeypress: checkPhoneNumber }, { before: _withCtx(() => [_hoisted_5]), _: 1 }, 8, [\"modelValue\", \"disabled\"]), _createElementVNode(\"div\", _hoisted_6, [phoneNumberIsSet.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, variant: \"primaryOutline\", size: \"lg\", class: \"w-full font-bold\", type: \"button\", onClick: clearPhoneNumber }, { default: _withCtx(() => [_hoisted_7]), _: 1 })) : (_openBlock(), _createBlock(_component_base_button, { key: 1, variant: meta.valid ? 'primary' : 'disabled', class: \"w-full\", size: \"lg\", type: \"button\", onClick: getUserReferralLink }, { default: _withCtx(() => [_hoisted_8]), _: 2 }, 1032, [\"variant\"]))]), loading.value ? (_openBlock(), _createBlock(_component_inline_svg, { key: 0, src: require('assets/images/icons/loading.svg'), class: \"m-2 h-6 animate-spin\" }, null, 8, [\"src\"])) : _createCommentVNode(\"\", true)])]), _: 1 }, 8, [\"validation-schema\"])]), !loading.value && phoneNumberIsSet.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [_createVNode(ReferLink, { \"refer-link\": userLink.value, \"is-courier\": isCourier.value }, null, 8, [\"refer-link\", \"is-courier\"])])) : _createCommentVNode(\"\", true)]), _: 1 }); }; } });\n","import script from \"./refer-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./refer-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = /*#__PURE__*/ _createTextVNode(\" Confirma tu correo por favor \");\nconst _hoisted_2 = [\"src\"];\nconst _hoisted_3 = { class: \"flex flex-col items-center\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-3 text-justify text-xs\" }, \" Es importante que revises tu correo para que te puedan llegar de forma correcta nuestra información. \", -1);\nconst _hoisted_5 = /*#__PURE__*/ _createTextVNode(\" Confirmar Correo \");\nimport { ref } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'mail-confirmation-modal', props: { isOpen: { type: Boolean }, inputValidation: { type: Boolean } }, emits: [\"closeModal\", \"submitForm\"], setup(__props, { emit }) { const email = ref(''); function confirmEmail() { emit('submitForm'); emit('closeModal'); } return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: __props.isOpen, \"is-first-button-disabled\": !__props.inputValidation, onClose: _cache[1] || (_cache[1] = $event => _ctx.$emit('closeModal')), onFirstButtonClick: confirmEmail }, { title: _withCtx(() => [_hoisted_1]), image: _withCtx(() => [_createElementVNode(\"img\", { src: require('assets/images/icons/envelope.svg'), class: \"h-20 w-20 fill-current text-hg-pink\" }, null, 8, _hoisted_2)]), description: _withCtx(() => [_createElementVNode(\"div\", _hoisted_3, [_createVNode(_component_base_input, { modelValue: email.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => email.value = $event), name: \"email\", label: \"Tu correo\", placeholder: \"nombre@email.com\", type: \"email\", style: 'black' }, null, 8, [\"modelValue\"]), _hoisted_4])]), firstButtonTitle: _withCtx(() => [_hoisted_5]), _: 1 }, 8, [\"open\", \"is-first-button-disabled\"]); }; } });\n","import script from \"./mail-confirmation-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./mail-confirmation-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex w-full flex-col space-y-8 rounded-3xl bg-hg-neutral-900/70 p-8 md:py-12\" };\nconst _hoisted_2 = [\"src\"];\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"flex flex-col gap-3\" }, [/*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-base font-bold text-rose-500\" }, \" Suscríbete a nuestro newsletter: \"), /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-display text-xl uppercase md:text-3xl\" }, \" Recibe los precios más baratos del gas en tu comuna \"), /*#__PURE__*/ _createElementVNode(\"p\", null, [/*#__PURE__*/ _createTextVNode(\" Recibe, semana a semana, \"), /*#__PURE__*/ _createElementVNode(\"strong\", null, \"precios actualizados del gas para tu comuna\"), /*#__PURE__*/ _createTextVNode(\", además de las novedades y beneficios exclusivos para ti. \"), /*#__PURE__*/ _createElementVNode(\"strong\", null, \"HAY Gas por Menos Precio!\")])], -1);\nconst _hoisted_4 = { class: \"flex flex-col space-y-2.5\" };\nconst _hoisted_5 = { class: \"grid grid-cols-1 gap-1 md:grid-cols-3 md:gap-6\" };\nconst _hoisted_6 = { class: \"md:col-span-2\" };\nconst _hoisted_7 = [\"onClick\"];\nconst _hoisted_8 = [\"onClick\"];\nconst _hoisted_9 = { class: \"flex flex-col space-y-5\" };\nconst _hoisted_10 = /*#__PURE__*/ _createTextVNode(\" Te has suscrito a \");\nconst _hoisted_11 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"font-bold\" }, \"HAY Gas\", -1);\nconst _hoisted_12 = /*#__PURE__*/ _createTextVNode(\" con \");\nconst _hoisted_13 = { class: \"font-bold underline\" };\nconst _hoisted_14 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold text-white\" }, \" Comunas suscritas: \", -1);\nconst _hoisted_15 = /*#__PURE__*/ _createTextVNode(\" Avísenme los precios \");\nimport { ref } from 'vue';\nimport { object, string, number, array } from 'yup';\nimport * as communesApi from 'api/communes';\nimport * as subscriptionsApi from 'api/subscriptions';\nimport MailConfirmationModal from 'components/mail-confirmation-modal.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'subscription-form', props: { regions: null }, emits: [\"subscriptionCreated\"], setup(__props, { emit }) { const formRules = object().shape({ email: string().email('Ingresa un correo válido').required('Ingresa un correo válido'), communeFormItems: array().of(object().shape({ regionId: number().required('Tienes que seleccionar una región').moreThan(0, 'Tienes que seleccionar una región'), communeId: number().required('Tienes que seleccionar una comuna').moreThan(0, 'Tienes que seleccionar una comuna') })) }); const formValues = { email: '', communeFormItems: [{ communeId: 0, regionId: 0 }] }; const error = ref(false); const showAlert = ref(false); const email = ref(''); const subscriptions = ref(); const regionCommunes = ref([[]]); const isEmailConfirmationModalOpened = ref(false); function sortCommunes(notSortedCommunes) { return notSortedCommunes.sort((prev, curr) => { const collator = new Intl.Collator('es'); return collator.compare(prev.name, curr.name); }); } async function getCommunes(regionId, index) { try {\n const response = await communesApi.index(regionId);\n regionCommunes.value[index] = sortCommunes(response);\n }\n catch (e) {\n error.value = true;\n } } function selectRegion(index, regionId, update) { update(index, { regionId, communeId: 0 }); getCommunes(regionId, index); } function deleteNotSelectedCommunes(communeFormItems) { return communeFormItems.filter(communeFormItem => communeFormItem.communeId !== 0); } async function createSubscription(values, { resetForm }) { try {\n const response = await subscriptionsApi.create({ email: values.email, communeIds: deleteNotSelectedCommunes(values.communeFormItems).map(element => element.communeId) });\n emit('subscriptionCreated', values.communeFormItems[0]);\n subscriptions.value = response.subscriptions;\n showAlert.value = true;\n resetForm();\n }\n catch (e) {\n error.value = true;\n } } function createdCommuneNames() { if (!!subscriptions.value) {\n return subscriptions.value.map(subscription => subscription.communeName);\n } return []; } function showDeleteButton(index, fieldsLength) { return index !== 0 && index === fieldsLength - 1; } return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_v_field_array = _resolveComponent(\"v-field-array\"); const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", null, [_createElementVNode(\"img\", { src: require('assets/images/email-ray.png') }, null, 8, _hoisted_2)]), _hoisted_3, _createVNode(_component_v_form, { \"validation-schema\": _unref(formRules), \"initial-values\": formValues }, { default: _withCtx(({ meta, handleSubmit }) => [_createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"div\", _hoisted_5, [_createVNode(_component_base_input, { modelValue: email.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => email.value = $event), name: \"email\", label: \"Tu correo\", class: \"w-full\", placeholder: \"Ej.: haygas@mail.com\", type: \"email\" }, null, 8, [\"modelValue\"]), _createElementVNode(\"div\", _hoisted_6, [_createVNode(_component_v_field_array, { name: \"communeFormItems\" }, { default: _withCtx(({ fields, push, remove, update }) => [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(fields, (formSubscription, index) => { return _openBlock(), _createElementBlock(\"div\", { key: index, class: \"mb-6 md:flex md:flex-row md:items-start md:space-x-5\" }, [_createVNode(_component_base_select, { options: __props.regions, label: \"Región\", name: `communeFormItems[${index}].regionId`, \"empty-label\": \"Ej.: de los Ríos\", \"allow-empty\": \"\", required: true, class: \"w-full\", \"onUpdate:modelValue\": $event => selectRegion(index, $event, update) }, null, 8, [\"options\", \"name\", \"onUpdate:modelValue\"]), _createVNode(_component_base_select, { options: regionCommunes.value[index] || [], label: \"Comuna\", name: `communeFormItems[${index}].communeId`, \"empty-label\": \"Ej.: Valdivia\", \"allow-empty\": \"\", required: true, class: \"w-full\" }, null, 8, [\"options\", \"name\"]), showDeleteButton(index, fields.length) ? (_openBlock(), _createElementBlock(\"button\", { key: 0, class: \"self-end\", type: \"button\", onClick: $event => remove(index) }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/delete.svg'), class: \"h-8 fill-current text-hg-pink\" }, null, 8, [\"src\"])], 8, _hoisted_7)) : _createCommentVNode(\"\", true)]); }), 128)), _createElementVNode(\"button\", { type: \"button\", class: \"text-base text-hg-pink\", onClick: $event => push({ communeId: 0, regionId: 0 }) }, \" + Agregar comuna \", 8, _hoisted_8)]), _: 1 })])]), _createElementVNode(\"div\", _hoisted_9, [!!showAlert.value && !!subscriptions.value ? (_openBlock(), _createBlock(_component_base_alert, { key: 0, icon: \"info\", \"show-close-button\": \"\", onCloseAlert: _cache[1] || (_cache[1] = $event => showAlert.value = false) }, { default: _withCtx(() => [_createElementVNode(\"p\", null, [_hoisted_10, _hoisted_11, _hoisted_12, _createElementVNode(\"span\", _hoisted_13, _toDisplayString(subscriptions.value[0].email), 1)]), _hoisted_14, (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(createdCommuneNames(), (communeName, index) => { return _openBlock(), _createElementBlock(\"p\", { key: index, class: \"rounded-sm bg-white/25 py-1 text-center font-bold text-white md:mr-1 md:inline-block md:px-2\" }, _toDisplayString(communeName), 1); }), 128))]), _: 1 })) : _createCommentVNode(\"\", true), _createVNode(_component_base_button, { variant: meta.valid ? 'primary' : 'disabled', size: \"md\", class: \"self-end\", type: \"button\", onClick: _cache[2] || (_cache[2] = $event => isEmailConfirmationModalOpened.value = true) }, { default: _withCtx(() => [_hoisted_15]), _: 2 }, 1032, [\"variant\"])])]), _createVNode(MailConfirmationModal, { \"input-validation\": meta.valid, \"is-open\": isEmailConfirmationModalOpened.value, onCloseModal: _cache[3] || (_cache[3] = $event => isEmailConfirmationModalOpened.value = false), onSubmitForm: $event => handleSubmit($event, createSubscription) }, null, 8, [\"input-validation\", \"is-open\", \"onSubmitForm\"])]), _: 1 }, 8, [\"validation-schema\"])]); }; } });\n","import { api } from './index';\nfunction create(subscription) { const path = '/api/internal/subscriptions'; return api({ method: 'post', url: path, data: { subscription } }).then(response => response.data); }\nexport { create };\n","import script from \"./subscription-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./subscription-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n\n","import { render } from \"./order-tracking-home.vue?vue&type=template&id=e51c810c\"\nconst script = {}\n\nimport exportComponent from \"/tmp/build_6638a752/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, Transition as _Transition, createBlock as _createBlock, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { class: \"w-full\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"mb-6 font-display text-3xl md:text-[40px]\" }, \" Preguntas frecuentes \", -1);\nconst _hoisted_3 = { class: \"flex flex-col rounded-xl bg-hg-pink/20 py-8 px-6\" };\nconst _hoisted_4 = { class: \"pr-2 text-left text-xl font-bold\" };\nimport { ref, computed } from 'vue';\nimport { Disclosure, DisclosureButton, DisclosurePanel } from '@headlessui/vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'frequent-questions', props: { frequentQuestions: null }, setup(__props) { const props = __props; const QUESTIONS_LIMIT = 4; const showMoreButton = ref(props.frequentQuestions.length > QUESTIONS_LIMIT); const isShowingMore = ref(false); const filteredFrequentQuestions = computed(() => isShowingMore.value ? props.frequentQuestions : props.frequentQuestions.slice(0, QUESTIONS_LIMIT)); return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_hoisted_2, _createElementVNode(\"div\", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(filteredFrequentQuestions), frequentQuestion => { return _openBlock(), _createBlock(_unref(Disclosure), { key: frequentQuestion.id, as: \"div\", class: \"my-4 border-b border-hg-pink/20\" }, { default: _withCtx(({ open }) => [_createVNode(_unref(DisclosureButton), { class: \"mb-4 flex w-full\" }, { default: _withCtx(() => [_createElementVNode(\"p\", _hoisted_4, _toDisplayString(frequentQuestion.question), 1), _createVNode(_component_inline_svg, { src: require('assets/images/icons/down-arrow.svg'), class: _normalizeClass([\"ml-auto h-4 w-4 fill-white transition-all duration-700\", { 'rotate-180': open }]) }, null, 8, [\"src\", \"class\"])]), _: 2 }, 1024), _createVNode(_Transition, { \"enter-active-class\": \"duration-500 ease-out\", \"enter-from-class\": \"-translate-y-1/2 scale-y-0 opacity-0\", \"enter-to-class\": \"translate-y-0 scale-y-100 opacity-100\", \"leave-active-class\": \"duration-500 ease-out\", \"leave-from-class\": \"translate-y-0 scale-y-100 opacity-100\", \"leave-to-class\": \"-translate-y-1/2 scale-y-0 opacity-70\" }, { default: _withCtx(() => [_createVNode(_unref(DisclosurePanel), { class: \"mb-4\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(frequentQuestion.answer), 1)]), _: 2 }, 1024)]), _: 2 }, 1024)]), _: 2 }, 1024); }), 128)), showMoreButton.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, class: \"mx-auto\", onClick: _cache[0] || (_cache[0] = $event => isShowingMore.value = !isShowingMore.value) }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(isShowingMore.value ? 'Ver menos' : 'Ver más') + \" \", 1), _createVNode(_component_inline_svg, { src: require('assets/images/icons/down-arrow.svg'), class: _normalizeClass([\"ml-2 h-3 w-3 fill-white duration-500\", { 'rotate-180': isShowingMore.value }]) }, null, 8, [\"src\", \"class\"])]), _: 1 })) : _createCommentVNode(\"\", true)])]); }; } });\n","import script from \"./frequent-questions.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./frequent-questions.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, unref as _unref, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex w-full flex-col gap-6 md:flex-row md:gap-10 md:p-8\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"h1\", { class: \"mx-6 text-center font-display text-xl md:mx-0 md:basis-1/2 md:text-3xl md:leading-10\" }, \" ¡MILES DE PERSONAS CONFÍAN EN HAY GAS! \", -1);\nconst _hoisted_3 = { class: \"flex w-full flex-col gap-6 md:gap-8\" };\nconst _hoisted_4 = { class: \"flex w-full flex-row justify-center gap-0 p-0 md:gap-8\" };\nconst _hoisted_5 = { class: \"text-lg font-bold md:text-xl\" };\nconst _hoisted_6 = { class: \"text-hg-pink md:text-lg\" };\nconst _hoisted_7 = { class: \"md:text-lg\" };\nconst _hoisted_8 = { class: \"flex flex-row items-center justify-center gap-2\" };\nimport { ref, computed } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'users-testimonies', props: { usersTestimonies: null }, setup(__props) { const props = __props; const MINIMUM_SWIPE = 40; const currentTestimonyIndex = ref(0); const currentTestimony = computed(() => props.usersTestimonies[currentTestimonyIndex.value]); function changeTestimony(direction) { if (direction === 'next') {\n currentTestimonyIndex.value = (currentTestimonyIndex.value + 1) % props.usersTestimonies.length;\n }\n else {\n currentTestimonyIndex.value = (currentTestimonyIndex.value - 1 + props.usersTestimonies.length) % props.usersTestimonies.length;\n } } const touchstartX = ref(0); const touchendX = ref(0); function handleTouchStart(event) { touchstartX.value = event.changedTouches[0].screenX; } function handleTouchEnd(event) { touchendX.value = event.changedTouches[0].screenX; if (Math.abs(touchstartX.value - touchendX.value) > MINIMUM_SWIPE) {\n if (touchstartX.value < touchendX.value) {\n changeTestimony('previous');\n }\n else {\n changeTestimony('next');\n }\n } } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_hoisted_2, _createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"a\", { class: \"relative top-1/2 hidden h-6 w-6 md:block\", onClick: _cache[0] || (_cache[0] = $event => changeTestimony('previous')) }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/chevron-left.svg'), class: \"h-6 w-6 fill-current\", alt: \"Flecha para ver comentario anterior\" }, null, 8, [\"src\"])]), _createElementVNode(\"div\", { class: \"flex w-full max-w-md flex-col gap-2 rounded-2xl bg-white/[.15] py-8 px-6\", onTouchstart: handleTouchStart, onTouchend: handleTouchEnd }, [_createElementVNode(\"p\", _hoisted_5, _toDisplayString(_unref(currentTestimony).name) + \" - \" + _toDisplayString(_unref(currentTestimony).commune), 1), _createElementVNode(\"p\", _hoisted_6, _toDisplayString(_unref(currentTestimony).numberOfOrders) + \" pedidos en HAY Gas! \", 1), _createElementVNode(\"p\", _hoisted_7, \" “\" + _toDisplayString(_unref(currentTestimony).testimony) + \"” \", 1)], 32), _createElementVNode(\"a\", { class: \"relative top-1/2 hidden h-6 w-6 md:block\", onClick: _cache[1] || (_cache[1] = $event => changeTestimony('next')) }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/chevron-right.svg'), class: \"h-6 w-6 fill-current\", alt: \"Flecha para ver siguiente comentario\" }, null, 8, [\"src\"])])]), _createElementVNode(\"div\", _hoisted_8, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.usersTestimonies, userTestimony => { return _openBlock(), _createElementBlock(\"div\", { key: userTestimony.id }, [currentTestimonyIndex.value === userTestimony.position - 1 ? (_openBlock(), _createBlock(_component_inline_svg, { key: 0, src: require('assets/images/icons/oval.svg'), class: \"h-2 w-4 fill-current md:h-4 md:w-8\", alt: \"Óvalo para indicar que el comentario es el actual\" }, null, 8, [\"src\"])) : (_openBlock(), _createBlock(_component_inline_svg, { key: 1, src: require('assets/images/icons/circle.svg'), class: \"h-2 w-2 fill-current md:h-4 md:w-4\", alt: \"Círculo para indicar que existe otro comentario\" }, null, 8, [\"src\"]))]); }), 128))])])]); }; } });\n","import script from \"./users-testimonies.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./users-testimonies.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\";\nconst _withScopeId = n => (_pushScopeId(\"data-v-95fc2fbc\"), n = n(), _popScopeId(), n);\nconst _hoisted_1 = { class: \"relative mx-auto flex max-w-md flex-col items-center gap-10 text-white sm:max-w-screen-sm md:mt-20 md:max-w-screen-md lg:max-w-screen-lg xl:max-w-screen-xl\" };\nconst _hoisted_2 = [\"src\"];\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-4 flex flex-col items-center gap-6 md:gap-4\" }, [/*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-center font-display text-4xl uppercase leading-normal md:text-5xl\" }, [/*#__PURE__*/ _createTextVNode(\" PIDE tu GAS con entrega inmediata\"), /*#__PURE__*/ _createElementVNode(\"br\"), /*#__PURE__*/ _createTextVNode(\" ¡más barato! \")]), /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-center text-2xl leading-normal\" }, \" Recibimos cilindros de todos los colores. \")], -1));\nconst _hoisted_4 = { class: \"flex w-full flex-wrap justify-center gap-6 md:gap-12\" };\nconst _hoisted_5 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-center font-display text-3xl uppercase md:text-5xl\" }, \" Cotiza y pide aquí: \", -1));\nconst _hoisted_6 = { class: \"flex flex-col md:flex-row md:gap-8\" };\nconst _hoisted_7 = { class: \"flex flex-col justify-center gap-4 md:flex-row md:space-y-0 md:space-x-16\" };\nconst _hoisted_8 = /*#__PURE__*/ _createTextVNode(\" Limpiar búsqueda \");\nconst _hoisted_9 = /*#__PURE__*/ _createTextVNode(\" Repetir mi último pedido \");\nconst _hoisted_10 = { class: \"w-full\" };\nconst _hoisted_11 = /*#__PURE__*/ _createTextVNode(\" Por el momento no tenemos distribuidores asociados en esta comuna. ¡Trabajaremos para ello! \");\nconst _hoisted_12 = /*#__PURE__*/ _createTextVNode(\" ¡Fiestas Patrias! \");\nconst _hoisted_13 = /*#__PURE__*/ _createTextVNode(\" Algunos de nuestros distribuidores cierran más temprano los días 18 y 19, por lo que pueden haber menos servicios disponibles \");\nconst _hoisted_14 = /*#__PURE__*/ _createTextVNode(\" Entendido \");\nconst _hoisted_15 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"p-3 text-left md:p-6 md:text-center md:text-2xl\" }, \" Pide aquí y paga al momento de la entrega. \", -1));\nconst _hoisted_16 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_17 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"space-y-6 p-6 md:py-10 md:px-11\" }, [/*#__PURE__*/ _createElementVNode(\"h2\", { class: \"font-display text-3xl md:text-[40px]\" }, \" ¿QUÉ ES HAY GAS? \"), /*#__PURE__*/ _createElementVNode(\"p\", { class: \"md:text-2xl\" }, [/*#__PURE__*/ _createTextVNode(\" HAY Gas es una plataforma que busca conectarte con los mejores distribuidores de gas de cada comuna. Seleccionamos distribuidores baratos y confiables para que ahorres dinero y tiempo en cada pedido de gas. Para que el gas deje de ser un problema...\"), /*#__PURE__*/ _createElementVNode(\"br\"), /*#__PURE__*/ _createElementVNode(\"strong\", null, \"¡Pídelo por HAY Gas!\")])], -1));\nconst _hoisted_18 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_19 = { ref: \"trackingDiv\", class: \"w-full\" };\nconst _hoisted_20 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_21 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_22 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_23 = { class: \"flex w-full overflow-hidden rounded-2xl bg-hg-pink/20 p-4 md:p-7\" };\nconst _hoisted_24 = { class: \"relative w-1/4 md:w-[12.5%]\" };\nconst _hoisted_25 = [\"src\"];\nconst _hoisted_26 = { class: \"flex w-3/4 flex-col gap-2 md:w-[87.5%]\" };\nconst _hoisted_27 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-xlmd:text-[45px] md:leading-10\" }, \" Queremos seguir mejorando y nos interesa tu opinión. ¿Tienes 2 minutos? \", -1));\nconst _hoisted_28 = /*#__PURE__*/ _createTextVNode(\" ¡Vamos! \");\nconst _hoisted_29 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_30 = { class: \"flex w-full flex-col gap-14 md:gap-14\" };\nconst _hoisted_31 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-display text-3xl md:text-[40px]\" }, \" ¡HAY DATO! \", -1));\nconst _hoisted_32 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", null, \" Da lo mismo la marca de tu cilindro vacío, ¡siempre puedes pedir gas a la compañía más barata! Ellos están obligados a llevarse tu cilindro vacío, aunque sea de otra marca. \", -1));\nconst _hoisted_33 = [_hoisted_31, _hoisted_32];\nconst _hoisted_34 = { class: \"flex flex-col items-center gap-12 text-xl md:flex-row md:items-baseline md:justify-between md:space-y-0 md:text-2xl\" };\nconst _hoisted_35 = { class: \"flex w-72 flex-col items-center justify-between px-10 text-center\" };\nconst _hoisted_36 = [\"src\"];\nconst _hoisted_37 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-3 md:mt-9\" }, \" Puedes intercambiar de proveedor \", -1));\nconst _hoisted_38 = { class: \"flex w-72 flex-col items-center justify-between px-10 text-center\" };\nconst _hoisted_39 = [\"src\"];\nconst _hoisted_40 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-3 md:mt-9\" }, \" No hay costos asociado al cambio \", -1));\nconst _hoisted_41 = { class: \"flex w-72 flex-col items-center justify-between px-10 text-center\" };\nconst _hoisted_42 = [\"src\"];\nconst _hoisted_43 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-3 md:mt-9\" }, \" Recibimos todo tipo de cilindros \", -1));\nconst _hoisted_44 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"div\", { class: \"inline-flex h-px w-full bg-pink-500\" }, null, -1));\nconst _hoisted_45 = { class: \"flex w-full flex-col gap-4 overflow-hidden rounded-2xl bg-hg-pink/20 p-4 md:p-7\" };\nconst _hoisted_46 = { class: \"flex w-full flex-col gap-4\" };\nconst _hoisted_47 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/ _createElementVNode(\"p\", { class: \"md:text-xl md:leading-7\" }, \" En HAY Gas sabemos que no puede faltar el gas y trabajamos para que nuestros pedidos se entreguen lo más rápido posible. Si eres distribuidor y te interesa sumarte a HAY Gas, completa tu registro aquí y te contactaremos. \", -1));\nconst _hoisted_48 = { class: \"flex w-full justify-center\" };\nconst _hoisted_49 = [\"href\"];\nconst _hoisted_50 = /*#__PURE__*/ _createTextVNode(\" ¡Hacer pedido a domicilio! \");\nimport { useOrder } from 'store/order';\nimport { ref, computed, onMounted, nextTick, watch } from 'vue';\nimport { scrollToElement } from 'utils/scroll-to-element';\nimport * as communesApi from 'api/communes';\nimport * as communeCompanyItemsApi from 'api/commune-company-items';\nimport find from 'lodash/find';\nimport TheHeader from './the-header.vue';\nimport GasTable from './gas-table.vue';\nimport ReferForm from './refer-form.vue';\nimport SubscriptionForm from './subscription-form.vue';\nimport OrderTrackingHome from './order-tracking-home.vue';\nimport BaseCallout from './base-callout.vue';\nimport FrequentQuestions from './frequent-questions.vue';\nimport UsersTestimonies from './users-testimonies.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'home-view', props: { regions: null, gasCompanies: null, distributors: null, initialRegion: { default: undefined }, initialCommune: { default: undefined }, initialCommuneCompanyItems: { default: undefined }, frequentQuestions: null, usersTestimonies: null, slowDeliveryMode: { type: Boolean } }, setup(__props) { const props = __props; const orderStore = useOrder(); orderStore.resetOrder(); orderStore.resetPrefilled(); const selectorsDiv = ref(); const refferDiv = ref(); const subscriptionDiv = ref(); const missionDiv = ref(); const tipsDiv = ref(); const frequentQuestionsDiv = ref(); const distributorDiv = ref(); const menuItems = computed(() => [{ label: 'Cotiza y pide', element: selectorsDiv.value, scrollTo: 'start' }, { label: 'Refiere y gana', element: refferDiv.value, scrollTo: 'center' }, { label: 'Qué es HAY Gas', element: missionDiv.value, scrollTo: 'center' }, { label: 'Seguir pedido' }, { label: 'Preguntas frecuentes', element: frequentQuestionsDiv.value, scrollTo: 'center' }, { label: 'Ahorra siempre', element: subscriptionDiv.value, scrollTo: 'center' }, { label: 'HAY Dato', element: tipsDiv.value, scrollTo: 'start' }, { label: '¿Eres distribuidor?', element: distributorDiv.value, scrollTo: 'center' }]); const communes = ref([]); const selectedRegion = ref(props.initialRegion ? props.initialRegion.id : 0); const selectedCommuneId = ref(props.initialCommune ? props.initialCommune.id : 0); const error = ref(false); const communeCompanyItems = ref(props.initialCommuneCompanyItems ? props.initialCommuneCompanyItems : []); const currentCommune = ref(props.initialCommune); const currentRegion = ref(props.initialRegion); const gasTableDiv = ref(); const isCommuneCompanyItemsEmpty = computed(() => communeCompanyItems.value.length === 0); const showTable = ref(!isCommuneCompanyItemsEmpty.value); function sortCommunes(notSortedCommunes) { return notSortedCommunes.sort((prev, curr) => { const collator = new Intl.Collator('es'); return collator.compare(prev.name, curr.name); }); } async function getCommunes(regionId) { try {\n const response = await communesApi.index(regionId);\n communes.value = sortCommunes(response);\n }\n catch (e) {\n error.value = true;\n } } function selectRegion(regionId) { selectedCommuneId.value = 0; getCommunes(regionId); } function updateUrl() { var _currentRegion$value, _currentCommune$value; const url = new URL(window.location.href); url.pathname = `/precios/${(_currentRegion$value = currentRegion.value) == null ? void 0 : _currentRegion$value.slug}/${(_currentCommune$value = currentCommune.value) == null ? void 0 : _currentCommune$value.slug}`; window.history.replaceState({}, '', url); } function setCurrentCommuneAndRegion() { currentCommune.value = find(communes.value, { id: selectedCommuneId.value }); currentRegion.value = find(props.regions, { id: selectedRegion.value }); orderStore.resetOrder(); orderStore.setPrefillCommuneId(selectedCommuneId.value); orderStore.setPrefillRegionId(selectedRegion.value); } async function getCommuneCompanyItems(communeId) { try {\n const response = await communeCompanyItemsApi.index(communeId);\n communeCompanyItems.value = response;\n showTable.value = !isCommuneCompanyItemsEmpty.value;\n }\n catch (e) {\n error.value = true;\n } } watch(communeCompanyItems, newCommuneCompanyItems => { orderStore.setCommuneWithHayGasPrice(newCommuneCompanyItems.some(item => item.hayGas)); }); async function getGasItems(communeId) { try {\n getCommuneCompanyItems(communeId);\n setCurrentCommuneAndRegion();\n updateUrl();\n await nextTick();\n scrollToElement(gasTableDiv.value, 'center');\n }\n catch (e) {\n error.value = true;\n } } function handleSubcriptionCreated(subscription) { selectedCommuneId.value = Number(subscription.communeId); selectedRegion.value = Number(subscription.regionId); getCommunes(selectedRegion.value); getGasItems(selectedCommuneId.value); } async function resetGasTable() { try {\n currentCommune.value = undefined;\n currentRegion.value = undefined;\n selectedRegion.value = 0;\n selectedCommuneId.value = 0;\n showTable.value = false;\n window.history.replaceState({}, '', '/');\n await nextTick();\n scrollToElement(selectorsDiv.value, 'center');\n }\n catch (e) {\n error.value = true;\n } } const variantSearchButton = computed(() => !selectedRegion.value || !selectedCommuneId.value ? 'disabled' : 'primary'); onMounted(() => { if (props.initialRegion !== undefined && props.initialCommune !== undefined) {\n getCommunes(selectedRegion.value);\n scrollToElement(gasTableDiv.value, 'center');\n setCurrentCommuneAndRegion();\n } orderStore.setCommuneWithHayGasPrice(communeCompanyItems.value.some(item => item.hayGas)); }); const FEEDBACK_URL = process.env.FEEDBACK_URL; const DISTRIBUTOR_FORM_URL = process.env.DISTRIBUTOR_FORM_URL; const showSlowDeliveryModal = ref(props.slowDeliveryMode); function closeSlowDeliveryModal() { showSlowDeliveryModal.value = false; } const gasCompaniesNames = ['abastible', 'gasco', 'lipigas']; return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createVNode(TheHeader, { \"menu-items\": _unref(menuItems) }, null, 8, [\"menu-items\"]), _createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"img\", { class: \"absolute -right-14 -top-3 -z-10 h-64 w-64 self-start md:-top-28 md:h-auto md:w-auto xl:-right-52\", src: require('assets/images/ray.png') }, null, 8, _hoisted_2), _hoisted_3, _createElementVNode(\"div\", _hoisted_4, [(_openBlock(), _createElementBlock(_Fragment, null, _renderList(gasCompaniesNames, gasCompanyName => { return _createElementVNode(\"div\", { key: gasCompanyName }, [_createVNode(_component_inline_svg, { src: require(`assets/images/${gasCompanyName}.svg`) }, null, 8, [\"src\"])]); }), 64))]), _createElementVNode(\"section\", { ref_key: \"selectorsDiv\", ref: selectorsDiv, class: \"flex w-full flex-col gap-6 rounded-3xl bg-hg-pink/10 p-4 md:gap-8 md:p-8\" }, [_hoisted_5, _createElementVNode(\"div\", _hoisted_6, [_createVNode(_component_base_select, { modelValue: selectedRegion.value, \"onUpdate:modelValue\": [_cache[0] || (_cache[0] = $event => selectedRegion.value = $event), _cache[1] || (_cache[1] = $event => selectRegion(selectedRegion.value))], modelModifiers: { number: true }, options: __props.regions, label: \"Región\", name: \"region\", \"empty-label\": \"Ej.: de los Ríos\", \"allow-empty\": \"\", class: \"w-full\" }, null, 8, [\"modelValue\", \"options\"]), _createVNode(_component_base_select, { modelValue: selectedCommuneId.value, \"onUpdate:modelValue\": [_cache[2] || (_cache[2] = $event => selectedCommuneId.value = $event), _cache[3] || (_cache[3] = $event => getGasItems(selectedCommuneId.value))], modelModifiers: { number: true }, options: communes.value, label: \"Comuna\", name: \"commune\", \"empty-label\": \"Ej.: Valdivia\", \"allow-empty\": \"\", class: \"w-full\" }, null, 8, [\"modelValue\", \"options\"])]), _createElementVNode(\"div\", _hoisted_7, [showTable.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, id: \"reset-search-button\", class: \"self-center\", variant: \"secondary\", size: \"md\", onClick: _cache[4] || (_cache[4] = $event => resetGasTable()) }, { default: _withCtx(() => [_hoisted_8]), _: 1 })) : _createCommentVNode(\"\", true), _createVNode(_component_base_button, { id: \"search-prices-button\", class: \"self-center\", variant: _unref(variantSearchButton), size: \"md\", onClick: _cache[5] || (_cache[5] = $event => getGasItems(selectedCommuneId.value)) }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(showTable.value ? 'Nueva búsqueda' : 'Busca y pide'), 1)]), _: 1 }, 8, [\"variant\"]), _createVNode(_component_base_button, { id: \"repeat-order-button\", class: \"self-center\", \"gtm-id\": \"repeat-order-home-button\", variant: 'primaryOutline', href: '/orders/repeat', size: \"md\" }, { default: _withCtx(() => [_hoisted_9]), _: 1 })])], 512), _createElementVNode(\"section\", _hoisted_10, [_unref(isCommuneCompanyItemsEmpty) && currentCommune.value ? (_openBlock(), _createBlock(_component_base_alert, { key: 0 }, { default: _withCtx(() => [_hoisted_11]), _: 1 })) : _createCommentVNode(\"\", true), showTable.value ? (_openBlock(), _createElementBlock(\"div\", { key: 1, ref_key: \"gasTableDiv\", ref: gasTableDiv, \"gtm-id\": \"price-table\" }, [_createVNode(_component_base_modal, { open: showSlowDeliveryModal.value, onClose: closeSlowDeliveryModal, onFirstButtonClick: closeSlowDeliveryModal }, { title: _withCtx(() => [_hoisted_12]), description: _withCtx(() => [_hoisted_13]), firstButtonTitle: _withCtx(() => [_hoisted_14]), _: 1 }, 8, [\"open\"]), _createVNode(GasTable, { \"commune-company-items\": communeCompanyItems.value, distributors: __props.distributors }, null, 8, [\"commune-company-items\", \"distributors\"])], 512)) : _createCommentVNode(\"\", true)]), _createVNode(BaseCallout, null, { default: _withCtx(() => [_hoisted_15]), _: 1 }), _createElementVNode(\"section\", { ref_key: \"refferDiv\", ref: refferDiv }, [_createVNode(ReferForm)], 512), _createElementVNode(\"section\", null, [__props.usersTestimonies && __props.usersTestimonies.length > 0 ? (_openBlock(), _createBlock(UsersTestimonies, { key: 0, \"users-testimonies\": __props.usersTestimonies }, null, 8, [\"users-testimonies\"])) : _createCommentVNode(\"\", true)]), _hoisted_16, _createElementVNode(\"section\", { ref_key: \"missionDiv\", ref: missionDiv }, [_createVNode(BaseCallout, { class: \"rounded-2xl\" }, { default: _withCtx(() => [_hoisted_17]), _: 1 })], 512), _hoisted_18, _createElementVNode(\"section\", _hoisted_19, [_createVNode(OrderTrackingHome, { regions: __props.regions }, null, 8, [\"regions\"])], 512), _hoisted_20, __props.frequentQuestions.length > 0 ? (_openBlock(), _createElementBlock(\"section\", { key: 0, ref_key: \"frequentQuestionsDiv\", ref: frequentQuestionsDiv, class: \"w-full\" }, [_createVNode(FrequentQuestions, { \"frequent-questions\": __props.frequentQuestions }, null, 8, [\"frequent-questions\"])], 512)) : _createCommentVNode(\"\", true), _hoisted_21, _createElementVNode(\"section\", { ref_key: \"subscriptionDiv\", ref: subscriptionDiv, class: \"w-full\" }, [_createVNode(SubscriptionForm, { regions: __props.regions, onSubscriptionCreated: _cache[6] || (_cache[6] = subscription => handleSubcriptionCreated(subscription)) }, null, 8, [\"regions\"])], 512), _hoisted_22, _createElementVNode(\"section\", _hoisted_23, [_createElementVNode(\"div\", _hoisted_24, [_createElementVNode(\"img\", { src: require('assets/images/reminder-2.png'), class: \"absolute -right-1 top-2 w-40 max-w-none md:right-0 md:-top-4\" }, null, 8, _hoisted_25)]), _createElementVNode(\"div\", _hoisted_26, [_hoisted_27, _createVNode(_component_base_button, { id: \"feedback-form\", variant: \"primaryOutline\", size: \"md\", type: \"button\", href: _unref(FEEDBACK_URL) }, { default: _withCtx(() => [_hoisted_28]), _: 1 }, 8, [\"href\"])])]), _hoisted_29, _createElementVNode(\"section\", _hoisted_30, [_createElementVNode(\"div\", { ref_key: \"tipsDiv\", ref: tipsDiv, class: \"flex scroll-mt-24 flex-col gap-5 md:scroll-mt-48\" }, _hoisted_33, 512), _createElementVNode(\"div\", _hoisted_34, [_createElementVNode(\"div\", _hoisted_35, [_createElementVNode(\"img\", { src: require('assets/images/reminder-1.png') }, null, 8, _hoisted_36), _hoisted_37]), _createElementVNode(\"div\", _hoisted_38, [_createElementVNode(\"img\", { src: require('assets/images/reminder-3.png') }, null, 8, _hoisted_39), _hoisted_40]), _createElementVNode(\"div\", _hoisted_41, [_createElementVNode(\"img\", { src: require('assets/images/reminder-2.png') }, null, 8, _hoisted_42), _hoisted_43])])]), _hoisted_44, _createElementVNode(\"section\", _hoisted_45, [_createElementVNode(\"div\", _hoisted_46, [_createElementVNode(\"h1\", { ref_key: \"distributorDiv\", ref: distributorDiv, class: \"font-display text-4xl uppercase md:leading-10\" }, \" ¿Eres distribuidor? \", 512), _hoisted_47]), _createElementVNode(\"div\", _hoisted_48, [_createElementVNode(\"a\", { id: \"feedback-form\", href: _unref(DISTRIBUTOR_FORM_URL), target: \"_blank\", rel: \"noopener\", class: \"flex w-fit items-center justify-center gap-2 rounded-lg bg-hg-pink px-6 py-1 font-bold text-zinc-100 md:py-2 md:px-10\" }, \" Llenar el formulario \", 8, _hoisted_49)])]), _createVNode(_component_base_button, { id: \"go-to-table-button\", variant: \"primary\", size: \"xl\", type: \"button\", onClick: _cache[7] || (_cache[7] = $event => _unref(scrollToElement)(selectorsDiv.value, 'center')) }, { default: _withCtx(() => [_hoisted_50]), _: 1 })])], 64); }; } });\n","import { api } from './index';\nfunction index(communeId) { const path = '/api/internal/commune_company_items'; return api({ method: 'get', url: path, params: { communeId } }).then(response => { var _response$data; return (_response$data = response.data) == null ? void 0 : _response$data.communeCompanyItems; }); }\nexport { index };\n","import script from \"./home-view.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./home-view.vue?vue&type=script&setup=true&lang=ts\"\n\nimport \"./home-view.vue?vue&type=style&index=0&id=95fc2fbc&scoped=true&lang=css\"\n\nimport exportComponent from \"/tmp/build_6638a752/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['__scopeId',\"data-v-95fc2fbc\"]])\n\nexport default __exports__","import { api } from './index';\nexport const ordersApi = { create(order) { const path = '/api/internal/orders'; return api({ method: 'post', url: path, data: { order } }).then(response => response.data); }, search(phoneNumber) { const path = '/api/internal/orders/search'; return api({ method: 'get', url: path, params: { phoneNumber } }).then(response => { var _response$data; return (_response$data = response.data) == null ? void 0 : _response$data.order; }); }, update(orderId, status) { const path = `/api/internal/orders/${orderId}`; return api({ method: 'patch', url: path, data: { status } }).then(response => response.data); }, repeat(obfuscatedOrderId, paymentMethod, deliverAt, deliverySchedule) { const path = '/api/internal/orders/repeat'; const order = { obfuscatedOrderId, paymentMethod }; if (deliverAt && deliverySchedule) {\n order.deliverAt = deliverAt;\n order.deliverySchedule = deliverySchedule;\n } return api({ method: 'post', url: path, data: { order } }).then(response => response.data); } };\n","import { api } from './index';\nexport const deliveryAddressesApi = { create(deliveryAddress) { const path = '/api/internal/delivery_addresses'; return api({ method: 'post', url: path, data: { deliveryAddress } }).then(response => response.data); } };\n","import { api } from './index';\nfunction index(communeId, distributorId) { let path = `/api/internal/gas_items/?commune_id=${communeId}`; if (distributorId) {\n path = `${path}&distributor_id=${distributorId}`;\n} return api({ method: 'get', url: path }).then(response => { var _response$data; return (_response$data = response.data) == null ? void 0 : _response$data.gasItems; }); }\nexport { index };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createBlock as _createBlock, normalizeClass as _normalizeClass, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = { class: \"mt-24 flex w-full flex-col space-y-6 md:w-auto\" };\nconst _hoisted_2 = { class: \"list-inside list-disc\" };\nconst _hoisted_3 = [\"value\"];\nconst _hoisted_4 = { class: \"max-w-5xl flex-col space-y-8 rounded-2xl pb-8 pt-4 md:border md:border-hg-pink md:px-8 md:shadow-hg-border\" };\nconst _hoisted_5 = { class: \"rounded-2xl border border-hg-pink p-6 shadow-hg-border md:border-0 md:p-0 md:shadow-none\" };\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Ingresar tu número de contacto \", -1);\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-sm text-gray-50\" }, \" Es importante para poder contactarte al momento de la entrega. \", -1);\nconst _hoisted_8 = { class: \"mt-4 flex flex-col space-y-4 rounded-2xl bg-hg-pink/20 p-6 font-bold text-gray-50 md:p-8\" };\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-1 flex w-14 items-center justify-center rounded-l-lg bg-slate-200 px-2 text-sm font-normal text-black\" }, \" +56 \", -1);\nconst _hoisted_10 = /*#__PURE__*/ _createTextVNode(\" Continuar \");\nconst _hoisted_11 = /*#__PURE__*/ _createTextVNode(\" Cambiar número \");\nconst _hoisted_12 = { key: 2, class: \"flex h-max grow items-center justify-center\" };\nconst _hoisted_13 = { key: 0 };\nconst _hoisted_14 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Ingresa tu información personal \", -1);\nconst _hoisted_15 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-sm text-gray-50\" }, \" Solo requerimos la información esencial para una entrega exitosa. \", -1);\nconst _hoisted_16 = { class: \"mt-4 flex flex-col gap-y-4 rounded-2xl bg-hg-pink/20 p-6 font-bold text-gray-50 md:flex-row md:flex-wrap md:gap-x-6 md:p-8\" };\nconst _hoisted_17 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Ingresa una dirección \", -1);\nconst _hoisted_18 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-sm text-gray-50\" }, \" Para que pueda llegar el pedido al destino correcto. \", -1);\nconst _hoisted_19 = { class: \"mt-4 flex flex-wrap gap-x-6 gap-y-4 rounded-2xl bg-hg-pink/20 p-6 font-bold text-gray-50 md:p-8\" };\nconst _hoisted_20 = { class: \"w-full\" };\nconst _hoisted_21 = { class: \"flex w-full flex-col justify-between md:flex-row\" };\nconst _hoisted_22 = { class: \"w-full\" };\nconst _hoisted_23 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"map\", class: \"font-bold\" }, [/*#__PURE__*/ _createTextVNode(\" Dirección \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"-ml-0.5 text-hg-pink\" }, \" * \")], -1);\nconst _hoisted_24 = { key: 0, class: \"mt-2 flex space-x-1\" };\nconst _hoisted_25 = { class: \"text-xs text-hg-pink\" };\nconst _hoisted_26 = { class: \"flex w-full flex-col justify-between md:flex-row\" };\nconst _hoisted_27 = { key: 0, class: \"space-y-6\" };\nconst _hoisted_28 = { class: \"text-base font-normal text-white\" };\nconst _hoisted_29 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-sm font-normal text-white\" }, \" Si estos no son tus datos, puedes presionar en “No soy yo”. \", -1);\nconst _hoisted_30 = /*#__PURE__*/ _createTextVNode(\" No soy yo \");\nconst _hoisted_31 = { key: 1, class: \"mt-8 flex gap-2\" };\nconst _hoisted_32 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-gray-50\" }, [/*#__PURE__*/ _createTextVNode(\" Acepta nuestros \"), /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/files/terms.pdf\", class: \"underline\", download: \"\" }, \"Términos y Condiciones\"), /*#__PURE__*/ _createTextVNode(\" y \"), /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/files/privacy.pdf\", class: \"underline\", download: \"\" }, \"Política de Privacidad\"), /*#__PURE__*/ _createTextVNode(\". \")], -1);\nconst _hoisted_33 = /*#__PURE__*/ _createTextVNode(\" Continuar \");\nimport { useOrder } from 'store/order';\nimport { computed, onMounted, ref } from 'vue';\nimport levenshtein from 'js-levenshtein';\nimport { Field, useForm } from 'vee-validate';\nimport { object, string, number, boolean } from 'yup';\nimport { toTypedSchema } from '@vee-validate/yup';\nimport { scrollToElement } from 'utils/scroll-to-element';\nimport { rutValidate } from 'rut-helpers';\nimport { kebabCase } from 'lodash';\nimport * as communesApi from 'api/communes';\nimport * as obfuscatedOrdersApi from 'api/obfuscated-orders';\nimport { usersApi } from 'api/users';\nimport * as gasItemsApi from 'api/gas-items';\nimport VueGoogleAutocomplete from 'vue-google-autocomplete';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-personal-info-form', props: { regions: null, companyName: null, distributorId: null, phoneNumber: null }, emits: [\"success\"], setup(__props, { emit }) {\n var _orderStore$order, _orderStore$order2, _orderStore$order3, _orderStore$order4, _orderStore$order5, _orderStore$order6, _orderStore$order7, _orderStore$order8, _orderStore$order9, _orderStore$order10, _orderStore$order11, _orderStore$order12, _orderStore$order13, _orderStore$order14, _orderStore$order15;\n const props = __props;\n const MAX_LEVENSHTEIN_DISTANCE = 3;\n const WAIT_ADDRESS_TO_UPDATE_TIME = 5;\n const WAIT_TO_TRIGGER_CONTINUE = 30;\n const APARTMENT_MAX_LENGTH = 6;\n const orderStore = useOrder();\n const error = ref(false);\n const errorsAlert = ref(null);\n const rut = ref((_orderStore$order = orderStore.order) == null ? void 0 : _orderStore$order.rut);\n const phoneNumber = ref(((_orderStore$order2 = orderStore.order) == null ? void 0 : _orderStore$order2.phoneNumber) || '');\n const firstName = ref((_orderStore$order3 = orderStore.order) == null ? void 0 : _orderStore$order3.firstName);\n const lastName = ref((_orderStore$order4 = orderStore.order) == null ? void 0 : _orderStore$order4.lastName);\n const regionId = ref(((_orderStore$order5 = orderStore.order) == null ? void 0 : _orderStore$order5.regionId) || orderStore.prefillRegionId || 0);\n const communeId = ref(((_orderStore$order6 = orderStore.order) == null ? void 0 : _orderStore$order6.communeId) || orderStore.prefillCommuneId || 0);\n const address = ref(((_orderStore$order7 = orderStore.order) == null ? void 0 : _orderStore$order7.address) || '');\n const googleAddressInformation = ref(((_orderStore$order8 = orderStore.order) == null ? void 0 : _orderStore$order8.googleAddressInformation) || '');\n const communeAddress = ref('');\n const streetNumber = ref(((_orderStore$order9 = orderStore.order) == null ? void 0 : _orderStore$order9.streetNumber) || 0);\n const apartment = ref((_orderStore$order10 = orderStore.order) == null ? void 0 : _orderStore$order10.apartment);\n const email = ref((_orderStore$order11 = orderStore.order) == null ? void 0 : _orderStore$order11.email);\n const addressReference = ref((_orderStore$order12 = orderStore.order) == null ? void 0 : _orderStore$order12.addressReference);\n const termsAndConditions = ref(false);\n const addressError = ref(false);\n const communes = ref([]);\n const loading = ref(false);\n const orderId = ref(((_orderStore$order13 = orderStore.order) == null ? void 0 : _orderStore$order13.orderId) || '');\n const pesosHaygas = ref(((_orderStore$order14 = orderStore.order) == null ? void 0 : _orderStore$order14.discountValue) || 0);\n const googleMapsAutocomplete = ref(VueGoogleAutocomplete || null);\n const phoneNumberIsSet = ref(!!((_orderStore$order15 = orderStore.order) != null && _orderStore$order15.phoneNumber));\n const usingExistingClient = computed(() => !!orderId.value);\n const addressErrorType = ref('number');\n const ADDRESS_ERRORS = { 'number': 'La dirección ingresada debe tener calle y número.', 'commune': 'La dirección ingresada no es de la misma comuna seleccionada.' };\n const urlParams = new URLSearchParams(window.location.search);\n const distributorName = kebabCase(urlParams.get('distributor') || '');\n const avoidGetClientParam = kebabCase(urlParams.get('avoid_get_client') || 'false');\n const formRules = toTypedSchema(object().shape({ orderId: string().when([], { is: () => usingExistingClient.value, then: s => s.required() }), phoneNumber: string().matches(/^\\d{9}$/, 'Ingresa un número de teléfono válido').required('Ingresa un número de teléfono válido'), firstName: string().required('Ingresa tu nombre'), lastName: string().required('Ingresa tu apellido'), email: string().email('Ingresa un correo válido').required('Ingresa un correo válido'), address: string().when('orderId', { is: orderIdYup => orderIdYup === '', then: s => s.required('Ingresa una dirección con calle y número') }), googleAddressInformation: string().when('orderId', { is: orderIdYup => orderIdYup === '' && !orderStore.skipPersonalForm && !!address.value && !addressError.value, then: s => s.required('Selecciona una de las direcciones sugeridas') }), streetNumber: number().when('orderId', { is: orderIdYup => orderIdYup === '' && addressError.value && addressErrorType.value === 'number', then: s => s.required('Selecciona una dirección con número').moreThan(0, 'Selecciona una dirección con número') }), communeAddress: string().when('orderId', { is: orderIdYup => orderIdYup === '' && addressError.value && addressErrorType.value === 'commune', then: s => s.required('La dirección ingresada no es de la misma comuna seleccionada') }), communeId: number().when('orderId', { is: orderIdYup => orderIdYup === '', then: s => s.required('Tienes que seleccionar una comuna').moreThan(0, 'Tienes que seleccionar una comuna') }), regionId: number().when('orderId', { is: orderIdYup => orderIdYup === '', then: s => s.required('Tienes que seleccionar una región').moreThan(0, 'Tienes que seleccionar una región') }), addressReference: string().when('orderId', { is: orderIdYup => orderIdYup === '' && !orderStore.skipPersonalForm, then: s => s.required('Ingresa una referencia de dirección') }), apartment: string().notRequired().max(APARTMENT_MAX_LENGTH, `Sólo puedes ingresar hasta ${APARTMENT_MAX_LENGTH} caracteres`), termsAndConditions: boolean().required().oneOf([true], 'Tienes que aceptar los términos').label('Términos y condiciones'), rut: string().required().when('orderId', { is: orderIdYup => orderIdYup === '', then: s => s.test(value => { if (value) {\n return rutValidate(value);\n } return false; }).label('Rut') }) }));\n const { resetForm, setFieldValue, meta, handleSubmit, errors, validate } = useForm({ validationSchema: formRules });\n function sortCommunes(notSortedCommunes) { return notSortedCommunes.sort((prev, curr) => { const collator = new Intl.Collator('es'); return collator.compare(prev.name, curr.name); }); }\n async function getCommunes(region) { try {\n const response = await communesApi.index(region);\n communes.value = sortCommunes(response);\n }\n catch (e) {\n error.value = true;\n } }\n function selectRegion() { communeId.value = 0; getCommunes(regionId.value); }\n const communeName = computed(() => { var _communes$value$find; const name = (_communes$value$find = communes.value.find(commune => commune.id === Number(communeId.value))) == null ? void 0 : _communes$value$find.name; return name || ''; });\n const regionName = computed(() => { var _props$regions$find; const name = (_props$regions$find = props.regions.find(region => region.id === Number(regionId.value))) == null ? void 0 : _props$regions$find.name; return name || ''; });\n function checkPhoneNumber(event) { const isNotNumber = isNaN(Number(event.key)); if (isNotNumber)\n event.preventDefault(); }\n const createOrder = handleSubmit(values => { orderStore.setOrder({ ...values, regionId: regionId.value, communeId: communeId.value, address: address.value, streetNumber: streetNumber.value, apartment: apartment.value, companyName: props.companyName, communeName: communeName.value, regionName: regionName.value, googleAddressInformation: googleAddressInformation.value, orderId: orderId.value, distributorId: props.distributorId, isHayGasOrder: orderStore.isHayGasOrder, discountValue: orderStore.isHayGasOrder || orderStore.skipPersonalForm ? pesosHaygas.value : 0 }); emit('success'); });\n function resetAddress() { streetNumber.value = 0; address.value = ''; googleAddressInformation.value = ''; }\n function getPossibleCommunesFromPlace(place) {\n const possibleCommunes = place.address_components.filter(// eslint-disable-next-line max-len, vue/max-len\n // eslint-disable-next-line max-len, vue/max-len\n component => component.types.includes('locality') || component.types.includes('administrative_area_level_3'));\n return possibleCommunes || [];\n }\n function setAddress({ newVal }) { address.value = newVal; addressError.value = false; }\n function setAddressError(errorType) { addressErrorType.value = errorType; addressError.value = true; streetNumber.value = 0; googleAddressInformation.value = ''; }\n function checkCommuneConditions(dataStreetNumber, leinsteinDistanceCondition) { const conditionsApproved = { 'number': dataStreetNumber, 'commune': leinsteinDistanceCondition }; for (const key of Object.keys(conditionsApproved)) {\n const conditionKey = key;\n if (!conditionsApproved[conditionKey]) {\n setAddressError(conditionKey);\n return;\n }\n } addressError.value = false; streetNumber.value = Number(dataStreetNumber); }\n function getAddressData(addressData, place) { setTimeout(() => { var _address$value$match; communeAddress.value = ''; const dataStreetNumber = (_address$value$match = address.value.match(/\\d+/g)) == null ? void 0 : _address$value$match.at(-1); const possibleCommunes = getPossibleCommunesFromPlace(place); googleAddressInformation.value = JSON.stringify(place); const leinsteinDistanceCondition = possibleCommunes.some(possibleCommune => { const distanceWithCommune = levenshtein(communeName.value.toLowerCase(), possibleCommune.long_name); const isSameCommune = distanceWithCommune <= MAX_LEVENSHTEIN_DISTANCE; if (isSameCommune) {\n communeAddress.value = possibleCommune.long_name.toLowerCase();\n } return isSameCommune; }); checkCommuneConditions(dataStreetNumber, leinsteinDistanceCondition); }, WAIT_ADDRESS_TO_UPDATE_TIME); }\n function resetVueGoogleAutocompleteInput() { if (!!streetNumber.value) {\n resetAddress();\n addressError.value = true;\n googleMapsAutocomplete.value.clear();\n } } // eslint-disable-next-line max-statements\n function updateFieldsFromObfuscatedOrder(obfuscatedOrder) { rut.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.rut; firstName.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.firstName; lastName.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.lastName; regionId.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.regionId; communeId.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.communeId; address.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.address; streetNumber.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.streetNumber; apartment.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.apartment; email.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.email; addressReference.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.addressReference; orderId.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.orderId; pesosHaygas.value = obfuscatedOrder == null ? void 0 : obfuscatedOrder.pesosHaygas; getCommunes(regionId.value); }\n function clearOrderFormData() { const settedPhoneNumber = phoneNumber.value; resetForm({ values: { rut: '', firstName: '', lastName: '', regionId: orderStore.prefillRegionId || 0, communeId: orderStore.prefillCommuneId || 0, address: '', streetNumber: 0, communeAddress: '', apartment: '', email: '', addressReference: '', orderId: '', termsAndConditions: false } }); setFieldValue('phoneNumber', settedPhoneNumber); }\n function clearOrderData() { clearOrderFormData(); }\n function clearPhoneNumber() { clearOrderData(); phoneNumberIsSet.value = false; }\n function customEncode(str) { return str.replace(/%2B/g, '+').replace(/ /g, '+'); }\n function setNewUrlWithNewDistributorAndPhoneNumber(newDistributorName) { const newUrl = new URL(window.location.href); const queryParams = [`distributor=${customEncode(newDistributorName)}`, `phone_number=${phoneNumber.value}`, 'avoid_get_client=true']; const queryString = queryParams.join('&'); newUrl.search = queryString; window.location.href = newUrl.toString(); }\n function shouldUpdateUrl(filteredGasItems, userDistributorName, currentDistributorName) { if (filteredGasItems.length === 0 || avoidGetClientParam === 'true' || userDistributorName === currentDistributorName) {\n return false;\n } const isSameCompany = filteredGasItems[0].name.toLowerCase() === props.companyName.toLowerCase(); return isSameCompany || orderStore.isHayGasOrder; }\n async function tryToUpdateUrlWithNewDistributor(user) { var _user$distributorUrl; const userDistributorGasItems = await gasItemsApi.index(communeId.value, user.distributorId); const filteredGasItems = userDistributorGasItems.filter(gasItem => { var _orderStore$orderItem; return gasItem.size === ((_orderStore$orderItem = orderStore.orderItems[0]) == null ? void 0 : _orderStore$orderItem.size); }); const userDistributorName = (_user$distributorUrl = user.distributorUrl) == null ? void 0 : _user$distributorUrl.split('distributor=')[1]; const currentDistributorName = urlParams.get('distributor') || ''; if (shouldUpdateUrl(filteredGasItems, userDistributorName, currentDistributorName)) {\n setNewUrlWithNewDistributorAndPhoneNumber(userDistributorName);\n } } // eslint-disable-next-line max-statements\n async function getClientByPhoneNumber() { phoneNumberIsSet.value = true; loading.value = true; clearOrderFormData(); try {\n const response = await obfuscatedOrdersApi.index(phoneNumber.value);\n const user = await usersApi.show(phoneNumber.value);\n const responseOrder = response[0];\n orderStore.setPesosHaygas(user.pesosHaygas);\n pesosHaygas.value = user.pesosHaygas;\n if (user.distributorId) {\n await tryToUpdateUrlWithNewDistributor(user);\n }\n if (response.length !== 0 && responseOrder.validGoogleAddressInformation && responseOrder.rut !== '1111****1') {\n updateFieldsFromObfuscatedOrder(responseOrder);\n }\n }\n catch (e) {\n error.value = true;\n } loading.value = false; }\n function submitPersonalInformationForm() { setTimeout(() => { validate(); const waitAlertToAppear = 10; if (meta.value.valid) {\n createOrder();\n }\n else {\n setTimeout(() => { scrollToElement(errorsAlert.value, 'start'); }, waitAlertToAppear);\n } }, WAIT_TO_TRIGGER_CONTINUE); } // eslint-disable-next-line max-statements\n function skipPersonalFormComplete() { orderStore.clearOrder(); if (rut.value === '11111111-1' || rut.value === '' || rut.value === undefined) {\n rut.value = '11111111-1';\n phoneNumber.value = props.phoneNumber;\n firstName.value = 'referido';\n lastName.value = 'referido';\n regionId.value = orderStore.prefillRegionId;\n communeId.value = orderStore.prefillCommuneId;\n address.value = `address ${Date.now()}`;\n googleAddressInformation.value = 'googleAddressInformation';\n communeAddress.value = 'communeAddress';\n streetNumber.value = 1;\n apartment.value = 'apar';\n email.value = orderStore.prefillEmail;\n addressReference.value = 'noref';\n } termsAndConditions.value = true; orderStore.setIsHayGasOrder(true); orderStore.setPesosHaygas(pesosHaygas.value); submitPersonalInformationForm(); }\n onMounted(async () => { if (props.phoneNumber) {\n phoneNumber.value = props.phoneNumber;\n if (/^\\d{9}$/.test(phoneNumber.value)) {\n await getClientByPhoneNumber();\n }\n if (orderStore.skipPersonalForm) {\n skipPersonalFormComplete();\n }\n } if (googleMapsAutocomplete.value)\n googleMapsAutocomplete.value.update(address.value); if (regionId.value !== 0)\n getCommunes(regionId.value); });\n return (_ctx, _cache) => { const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_select = _resolveComponent(\"base-select\"); return _openBlock(), _createElementBlock(\"form\", _hoisted_1, [Object.keys(_unref(errors)).length > 0 && phoneNumberIsSet.value ? (_openBlock(), _createElementBlock(\"div\", { key: 0, ref_key: \"errorsAlert\", ref: errorsAlert }, [_createVNode(_component_base_alert, { id: Object.keys(_unref(errors)), \"gtm-id\": \"order-personal-info-form-errors\" }, { default: _withCtx(() => [_createElementVNode(\"ul\", _hoisted_2, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(errors), errorText => { return _openBlock(), _createElementBlock(\"li\", { key: errorText, value: errorText }, _toDisplayString(errorText), 9, _hoisted_3); }), 128))])]), _: 1 }, 8, [\"id\"])], 512)) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_4, [_createElementVNode(\"div\", _hoisted_5, [_hoisted_6, _hoisted_7, _createElementVNode(\"div\", _hoisted_8, [_createVNode(_component_base_input, { modelValue: phoneNumber.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => phoneNumber.value = $event), name: \"phoneNumber\", placeholder: \"Ingresa tu número\", label: \"Número de contacto\", required: \"\", class: \"md:w-80\", maxlength: \"9\", disabled: phoneNumberIsSet.value, onKeypress: checkPhoneNumber }, { before: _withCtx(() => [_hoisted_9]), _: 1 }, 8, [\"modelValue\", \"disabled\"]), _createVNode(_component_base_input, { modelValue: orderId.value, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => orderId.value = $event), label: \"Número de orden\", name: \"orderId\", type: \"hidden\", class: \"hidden\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: orderId.value, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => orderId.value = $event), label: \"Número de orden\", name: \"orderId\", type: \"hidden\", class: \"hidden\" }, null, 8, [\"modelValue\"]), !phoneNumberIsSet.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, id: _unref(distributorName), type: \"button\", \"gtm-id\": \"order-phone-number-continue-button\", variant: !phoneNumber.value || _unref(errors).phoneNumber ? 'disabled' : 'primary', size: \"lg\", class: \"w-full md:mt-16 md:w-auto md:self-start\", disabled: !phoneNumber.value || _unref(errors).phoneNumber, onClick: getClientByPhoneNumber }, { default: _withCtx(() => [_hoisted_10]), _: 1 }, 8, [\"id\", \"variant\", \"disabled\"])) : _createCommentVNode(\"\", true), phoneNumberIsSet.value ? (_openBlock(), _createBlock(_component_base_button, { key: 1, variant: \"primaryOutline\", size: \"md\", class: \"mt-4 font-normal\", type: \"button\", onClick: clearPhoneNumber }, { default: _withCtx(() => [_hoisted_11]), _: 1 })) : _createCommentVNode(\"\", true), loading.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_12, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/loading.svg'), class: \"mr-2 h-6 animate-spin\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)])]), phoneNumberIsSet.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_13, [_hoisted_14, _hoisted_15, _createElementVNode(\"div\", _hoisted_16, [_createVNode(_component_base_input, { modelValue: rut.value, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => rut.value = $event), name: \"rut\", placeholder: \"Ingresa tu RUT\", label: \"RUT\", required: \"\", class: \"flex-none md:w-80\", disabled: _unref(usingExistingClient) }, null, 8, [\"modelValue\", \"disabled\"]), _createVNode(_component_base_input, { modelValue: firstName.value, \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => firstName.value = $event), name: \"firstName\", placeholder: \"Ingresa tu nombre\", label: \"Nombre\", required: \"\", class: \"flex-none md:w-80\", disabled: _unref(usingExistingClient) }, null, 8, [\"modelValue\", \"disabled\"]), _createVNode(_component_base_input, { modelValue: lastName.value, \"onUpdate:modelValue\": _cache[5] || (_cache[5] = $event => lastName.value = $event), name: \"lastName\", placeholder: \"Ingresa tu Apellido\", label: \"Apellido\", required: \"\", class: \"flex-none md:w-80\", disabled: _unref(usingExistingClient) }, null, 8, [\"modelValue\", \"disabled\"]), _createVNode(_component_base_input, { modelValue: email.value, \"onUpdate:modelValue\": _cache[6] || (_cache[6] = $event => email.value = $event), name: \"email\", placeholder: \"Ingresa tu correo electrónico\", label: \"Correo electrónico\", required: \"\", class: \"flex-none md:w-80\", disabled: _unref(usingExistingClient) }, null, 8, [\"modelValue\", \"disabled\"])])])) : _createCommentVNode(\"\", true), _withDirectives(_createElementVNode(\"div\", null, [_hoisted_17, _hoisted_18, _createElementVNode(\"div\", _hoisted_19, [_withDirectives(_createElementVNode(\"div\", _hoisted_20, [_createElementVNode(\"div\", _hoisted_21, [_createVNode(_component_base_select, { modelValue: regionId.value, \"onUpdate:modelValue\": [_cache[7] || (_cache[7] = $event => regionId.value = $event), selectRegion], options: __props.regions, name: \"regionId\", label: \"Región\", \"empty-label\": \"Selecciona una región\", \"allow-empty\": \"\", required: \"\", class: \"w-full md:mr-6\" }, null, 8, [\"modelValue\", \"options\"]), _createVNode(_component_base_select, { modelValue: communeId.value, \"onUpdate:modelValue\": _cache[8] || (_cache[8] = $event => communeId.value = $event), options: communes.value, name: \"communeId\", label: \"Comuna\", \"empty-label\": \"Selecciona una comuna\", \"allow-empty\": \"\", required: \"\", class: \"w-full\" }, null, 8, [\"modelValue\", \"options\"])]), _createElementVNode(\"div\", _hoisted_22, [_hoisted_23, _createVNode(_unref(VueGoogleAutocomplete), { id: \"map\", ref_key: \"googleMapsAutocomplete\", ref: googleMapsAutocomplete, name: \"map\", class: _normalizeClass([\"mt-1 w-full rounded-lg bg-white px-4 text-black\", { 'border border-hg-pink': addressError.value }]), placeholder: \"Nombre de la calle y numeración\", country: ['cl'], fields: ['address_components', 'adr_address', 'alt_id', 'formatted_address', 'geometry', 'icon', 'name', 'business_status', 'photo', 'place_id', 'scope', 'type', 'url', 'vicinity'], onPlacechanged: getAddressData, onFocus: resetVueGoogleAutocompleteInput, onInputChange: setAddress }, null, 8, [\"class\"]), addressError.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_24, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/error-circle.svg'), class: \"h-4 w-4 fill-current text-hg-pink\" }, null, 8, [\"src\"]), _createElementVNode(\"p\", _hoisted_25, _toDisplayString(ADDRESS_ERRORS[addressErrorType.value]), 1)])) : _createCommentVNode(\"\", true), _createVNode(_component_base_input, { modelValue: address.value, \"onUpdate:modelValue\": _cache[9] || (_cache[9] = $event => address.value = $event), label: \"\", name: \"address\", class: \"hidden\", required: \"\", type: \"hidden\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: streetNumber.value, \"onUpdate:modelValue\": _cache[10] || (_cache[10] = $event => streetNumber.value = $event), name: \"streetNumber\", class: \"hidden\", type: \"hidden\", label: \"\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: communeAddress.value, \"onUpdate:modelValue\": _cache[11] || (_cache[11] = $event => communeAddress.value = $event), name: \"communeAdress\", class: \"hidden\", type: \"hidden\", label: \"\" }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: googleAddressInformation.value, \"onUpdate:modelValue\": _cache[12] || (_cache[12] = $event => googleAddressInformation.value = $event), name: \"googleAddressInformation\", class: \"hidden\", type: \"hidden\", label: \"\" }, null, 8, [\"modelValue\"])]), _createElementVNode(\"div\", _hoisted_26, [_createVNode(_component_base_input, { modelValue: apartment.value, \"onUpdate:modelValue\": _cache[13] || (_cache[13] = $event => apartment.value = $event), name: \"apartment\", placeholder: \"Ejem: Etapa 4 Casa 46\", label: \"Depto / Bloque / Lote (opcional)\", class: \"w-full md:mr-6\", maxlength: APARTMENT_MAX_LENGTH }, null, 8, [\"modelValue\"]), _createVNode(_component_base_input, { modelValue: addressReference.value, \"onUpdate:modelValue\": _cache[14] || (_cache[14] = $event => addressReference.value = $event), name: \"addressReference\", placeholder: \"Ejem: Al lado de la farmacia\", label: \"Referencia\", required: \"\", class: \"w-full\" }, null, 8, [\"modelValue\"])])], 512), [[_vShow, !_unref(usingExistingClient)]]), _unref(usingExistingClient) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_27, [_createElementVNode(\"div\", _hoisted_28, [_createElementVNode(\"p\", null, _toDisplayString(address.value) + \", \" + _toDisplayString(_unref(communeName)), 1)]), _createElementVNode(\"div\", null, [_hoisted_29, _createVNode(_component_base_button, { variant: \"primaryOutline\", size: \"md\", class: \"mt-4 font-normal\", type: \"button\", onClick: clearOrderData }, { default: _withCtx(() => [_hoisted_30]), _: 1 })])])) : _createCommentVNode(\"\", true)])], 512), [[_vShow, phoneNumberIsSet.value]]), phoneNumberIsSet.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_31, [_createVNode(_unref(Field), { modelValue: termsAndConditions.value, \"onUpdate:modelValue\": _cache[15] || (_cache[15] = $event => termsAndConditions.value = $event), type: \"checkbox\", value: true, name: \"termsAndConditions\", class: \"h-6 w-6 rounded border-hg-pink bg-transparent checked:text-hg-pink focus:ring-transparent focus:ring-offset-0\" }, null, 8, [\"modelValue\"]), _hoisted_32])) : _createCommentVNode(\"\", true)]), phoneNumberIsSet.value ? (_openBlock(), _createBlock(_component_base_button, { key: 1, id: _unref(distributorName), \"gtm-id\": \"order-personal-info-continue-button\", variant: \"primary\", size: \"lg\", class: \"mt-6 w-full md:mt-16 md:w-auto md:self-end\", type: \"button\", onClick: submitPersonalInformationForm }, { default: _withCtx(() => [_hoisted_33]), _: 1 }, 8, [\"id\"])) : _createCommentVNode(\"\", true)]); };\n } });\n","import script from \"./order-personal-info-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-personal-info-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { api } from './index';\nfunction index(phoneNumber) { const path = `/api/internal/obfuscated_orders?phone_number=${phoneNumber}`; return api({ method: 'get', url: path }).then(response => response.data.orders); }\nfunction searchAll(phoneNumber) { const path = `/api/internal/obfuscated_orders/search_all?phone_number=${phoneNumber}`; return api({ method: 'get', url: path }).then(response => response.data.orders); }\nexport { index, searchAll };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col justify-between space-y-6 rounded-xl border border-hg-pink p-4 md:flex-row md:items-center md:pr-8\" };\nconst _hoisted_2 = { class: \"flex\" };\nconst _hoisted_3 = { class: \"flex h-full flex-col space-y-3 text-white\" };\nconst _hoisted_4 = { class: \"text-xl font-bold\" };\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"\" }, \" Cilindro \", -1);\nconst _hoisted_6 = { class: \"text-xs font-bold\" };\nconst _hoisted_7 = { class: \"flex h-full items-center justify-between md:space-x-9\" };\nconst _hoisted_8 = { class: \"flex h-8 w-1/2 rounded\" };\nconst _hoisted_9 = { class: \"h-full w-full border border-hg-pink pt-1 text-center md:w-16\" };\nconst _hoisted_10 = { class: \"text-center md:w-16\" };\nimport { computed, ref } from 'vue';\nimport { currency } from 'utils/currency';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-items-form-item', props: { item: null, initialQuantity: null, userPrice: null }, emits: [\"update:quantity\"], setup(__props, { emit }) { const props = __props; const quantity = ref(props.initialQuantity); const totalPrice = computed(() => props.userPrice * quantity.value); function updateQuantity(newQuantity) { if (newQuantity >= 0) {\n quantity.value = newQuantity;\n emit('update:quantity', quantity.value);\n } } return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"div\", null, [_createElementVNode(\"p\", _hoisted_4, _toDisplayString(__props.item.size) + \" kilos \", 1), _hoisted_5]), _createElementVNode(\"p\", _hoisted_6, \" Precio: \" + _toDisplayString(_unref(currency)(__props.userPrice)), 1)])]), _createElementVNode(\"div\", _hoisted_7, [_createElementVNode(\"div\", _hoisted_8, [_createElementVNode(\"button\", { class: \"h-full w-10 rounded-l bg-hg-pink\", onClick: _cache[0] || (_cache[0] = $event => updateQuantity(quantity.value - 1)) }, \" - \"), _createElementVNode(\"p\", _hoisted_9, _toDisplayString(quantity.value), 1), _createElementVNode(\"button\", { class: \"h-full w-10 rounded-r bg-hg-pink\", onClick: _cache[1] || (_cache[1] = $event => updateQuantity(quantity.value + 1)) }, \" + \")]), _createElementVNode(\"div\", _hoisted_10, _toDisplayString(_unref(currency)(_unref(totalPrice))), 1)])]); }; } });\n","import script from \"./order-items-form-item.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-items-form-item.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"mt-24 flex w-full max-w-5xl flex-col\" };\nconst _hoisted_2 = { class: \"mb-5 flex items-center gap-3 rounded-xl bg-hg-pink/20 px-3 py-6 text-sm text-white md:rounded-3xl md:px-4 md:text-base\" };\nconst _hoisted_3 = { class: \"flex flex-col gap-2 md:flex-row md:gap-4\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"font-bold\" }, \"Comuna:\", -1);\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"font-bold\" }, \"Región:\", -1);\nconst _hoisted_6 = { class: \"flex w-full flex-col space-y-8 rounded-2xl pt-8 md:border md:border-hg-pink md:px-8 md:pb-8 md:shadow-hg-border\" };\nconst _hoisted_7 = /*#__PURE__*/ _createTextVNode(\" El pago lo realizas directamente al distribuidor cuando entregue tu pedido! \");\nconst _hoisted_8 = { class: \"flex flex-col items-center md:flex-row md:justify-between\" };\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"hidden font-print text-4xl text-gray-50 md:block\" }, \" Selecciona el producto que deseas \", -1);\nconst _hoisted_10 = { class: \"inline-flex w-full items-center gap-3 rounded bg-white/[.15] px-2.5 py-1 md:w-auto md:gap-2\" };\nconst _hoisted_11 = { class: \"h-7\" };\nconst _hoisted_12 = { class: \"text-amber-400\" };\nconst _hoisted_13 = /*#__PURE__*/ _createTextVNode(\" Tiempo de entrega distribuidor: \");\nconst _hoisted_14 = { class: \"font-bold\" };\nconst _hoisted_15 = { class: \"mt-4 space-y-8 rounded-2xl text-gray-50 md:bg-hg-pink/20 md:p-8\" };\nconst _hoisted_16 = { key: 0, class: \"text-sm\" };\nconst _hoisted_17 = /*#__PURE__*/ _createTextVNode(\" Tienes \");\nconst _hoisted_18 = { class: \"font-extrabold text-amber-300\" };\nconst _hoisted_19 = /*#__PURE__*/ _createTextVNode(\" pesos HAY Gas!, pero sólo puedes ocuparlos en tus pedidos a precios HAY Gas! y no al elegir una marca específica. \");\nconst _hoisted_20 = { key: 1, class: \"text-sm\" };\nconst _hoisted_21 = { key: 1, class: \"mt-4 rounded-2xl border border-hg-pink bg-hg-pink/20 p-1 text-gray-50 shadow-hg-border md:p-4\" };\nconst _hoisted_22 = /*#__PURE__*/ _createTextVNode(\" ¡Tienes \");\nconst _hoisted_23 = { class: \"font-extrabold\" };\nconst _hoisted_24 = /*#__PURE__*/ _createTextVNode(\" pesos HAY Gas! Se aplicarán como descuento en esta compra. \");\nconst _hoisted_25 = { class: \"flex flex-col md:h-56 md:flex-row md:space-x-8\" };\nconst _hoisted_26 = { class: \"flex flex-col md:w-2/3\" };\nconst _hoisted_27 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Resumen de tu pedido \", -1);\nconst _hoisted_28 = { class: \"mt-4 flex h-full gap-3 rounded-2xl md:space-x-11 md:bg-hg-pink/20 md:p-11\" };\nconst _hoisted_29 = { class: \"font-bold text-white\" };\nconst _hoisted_30 = { class: \"absolute -top-3 -right-3 h-6 w-6 rounded-full bg-hg-pink text-center font-bold text-white\" };\nconst _hoisted_31 = { class: \"flex flex-col md:w-1/3\" };\nconst _hoisted_32 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"hidden font-print text-4xl text-gray-50 md:block\" }, \" Total a pagar \", -1);\nconst _hoisted_33 = { class: \"mt-4 flex h-14 items-center justify-center rounded-2xl bg-hg-pink/20 text-2xl font-bold text-white md:h-full\" };\nconst _hoisted_34 = { key: 0 };\nconst _hoisted_35 = { class: \"text-sm font-medium line-through\" };\nconst _hoisted_36 = { key: 1 };\nconst _hoisted_37 = /*#__PURE__*/ _createTextVNode(\" Continuar \");\nimport { useOrder } from 'store/order';\nimport { computed, onMounted, ref } from 'vue';\nimport sortBy from 'lodash/sortBy';\nimport kebabCase from 'lodash/kebabCase';\nimport upperCase from 'lodash/upperCase';\nimport * as gasItemsApi from 'api/gas-items';\nimport OrderItemsFormItem from './order-items-form-item.vue';\nimport { currency } from '../utils/currency';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-items-form', props: { distributor: null }, emits: [\"success\"], setup(__props, { emit }) { const props = __props; const orderStore = useOrder(); const order = orderStore.order; const availableGasItems = ref([]); const officialDistributorGasItemsPrices = ref(); const error = ref(false); const isHayGasOrder = ref(orderStore.isHayGasOrder); const gasItemsCompanyPrices = ref(orderStore.gasItemsCompanyPrices || {}); const orderItems = ref(orderStore.orderItems); const orderItemSelectedByUser = ref(orderStore.orderItems[0]); const urlParams = new URLSearchParams(window.location.search); const distributorName = kebabCase(urlParams.get('distributor') || ''); const totalPrice = computed(() => orderItems.value.reduce((sum, item) => sum + item.userPrice * item.quantity, 0)); const addedOrderItems = computed(() => orderItems.value.filter(item => item.quantity > 0)); const averageDeliveryTime = computed(() => { const [min, max] = props.distributor.averageDeliveryTime.split(' - '); return `${min}min - ${max}min`; }); async function addItemsToOrder() { orderStore.setOrderItems(addedOrderItems.value); emit('success'); } function getOrderItemQuantity(orderItemsToSearch, size) { const orderItem = orderItemsToSearch.find(item => item.size === size); return (orderItem == null ? void 0 : orderItem.quantity) || 0; } function isGasItemSelectedByUser(gasItem) { var _orderItemSelectedByU; return gasItem.lastGasItemReportId === (orderItemSelectedByUser == null ? void 0 : (_orderItemSelectedByU = orderItemSelectedByUser.value) == null ? void 0 : _orderItemSelectedByU.gasItemReportId); } function calculatePrice(currentPrice, companyTablePrice, officialDistributorPrice) { if (currentPrice <= companyTablePrice) {\n return companyTablePrice;\n } if (currentPrice <= officialDistributorPrice) {\n return currentPrice;\n } if (officialDistributorPrice === 0 && companyTablePrice === 0) {\n return currentPrice;\n } return officialDistributorPrice; } function getUserPrice(gasItem) { var _officialDistributorG; const size = gasItem.size; const tablePrices = gasItemsCompanyPrices.value[size] || { 'hayGasPrice': 0, 'companyTablePrice': 0 }; const priceType = isHayGasOrder.value ? 'hayGasPrice' : 'companyTablePrice'; const companyTablePrice = tablePrices[priceType] || 0; const officialDistributorPrice = ((_officialDistributorG = officialDistributorGasItemsPrices.value) == null ? void 0 : _officialDistributorG[size]) || 0; return calculatePrice(gasItem.currentPrice, companyTablePrice, officialDistributorPrice); } function getOrderItemUserPrice(gasItem) { if (isGasItemSelectedByUser(gasItem)) {\n return orderItemSelectedByUser.value.userPrice;\n } return getUserPrice(gasItem); } function getAvailableGasItemsFromAllItems(communeGasItems) { if (!order)\n return []; const filteredGasItems = communeGasItems.filter(gasItem => upperCase(gasItem.name) === order.companyName && gasItem.distributorId === props.distributor.id); return sortBy(filteredGasItems, 'size'); } function getOfficialDistributorGasItemsPrices(communeGasItems) { if (!order)\n return []; const filteredGasItems = communeGasItems.filter(gasItem => upperCase(gasItem.name) === order.companyName && gasItem.distributorIsOfficial); const officialDistributorGasItemsWithPrices = filteredGasItems.reduce((acc, gasItem) => { acc[gasItem.size] = gasItem.currentPrice; return acc; }, {}); return officialDistributorGasItemsWithPrices; } onMounted(async () => { if (order) {\n try {\n const communeGasItems = await gasItemsApi.index(order.communeId);\n availableGasItems.value = getAvailableGasItemsFromAllItems(communeGasItems);\n officialDistributorGasItemsPrices.value = getOfficialDistributorGasItemsPrices(communeGasItems);\n orderItems.value = availableGasItems.value.map(gasItem => ({ size: gasItem.size, quantity: getOrderItemQuantity(orderItems.value, gasItem.size), gasItemReportId: gasItem.lastGasItemReportId, userPrice: getOrderItemUserPrice(gasItem), distributorPrice: gasItem.currentPrice }));\n }\n catch (e) {\n error.value = true;\n }\n } }); return (_ctx, _cache) => { var _unref2, _unref3, _unref4, _unref5, _unref6, _unref7, _unref8, _unref9, _unref10; const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createVNode(_component_inline_svg, { src: require(`assets/images/icons/home.svg`), class: \"h-6 w-6 text-hg-pink\" }, null, 8, [\"src\"]), _createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"p\", null, [_hoisted_4, _createTextVNode(\" \" + _toDisplayString((_unref2 = _unref(order)) == null ? void 0 : _unref2.communeName), 1)]), _createElementVNode(\"p\", null, [_hoisted_5, _createTextVNode(\" \" + _toDisplayString((_unref3 = _unref(order)) == null ? void 0 : _unref3.regionName), 1)])])]), _createElementVNode(\"div\", _hoisted_6, [_createVNode(_component_base_alert, null, { default: _withCtx(() => [_hoisted_7]), _: 1 }), _createElementVNode(\"div\", null, [_createElementVNode(\"div\", _hoisted_8, [_hoisted_9, _createElementVNode(\"div\", _hoisted_10, [_createElementVNode(\"div\", _hoisted_11, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/clock.svg'), class: \"h-6 w-6\" }, null, 8, [\"src\"])]), _createElementVNode(\"p\", _hoisted_12, [_hoisted_13, _createElementVNode(\"span\", _hoisted_14, _toDisplayString(_unref(averageDeliveryTime)), 1)])])]), _createElementVNode(\"div\", _hoisted_15, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(availableGasItems.value, (item, index) => { var _orderItems$value$ind; return _openBlock(), _createElementBlock(\"div\", { key: index }, [_createVNode(OrderItemsFormItem, { id: `order-item-${item.size}`, item: item, \"initial-quantity\": getOrderItemQuantity(_unref(addedOrderItems), item.size), \"user-price\": (_orderItems$value$ind = orderItems.value[index]) == null ? void 0 : _orderItems$value$ind.userPrice, \"onUpdate:quantity\": quantity => orderItems.value[index].quantity = quantity }, null, 8, [\"id\", \"item\", \"initial-quantity\", \"user-price\", \"onUpdate:quantity\"])]); }), 128))])]), _unref(orderStore).pesosHaygas !== 0 && ((_unref4 = _unref(order)) == null ? void 0 : _unref4.discountValue) === 0 && !((_unref5 = _unref(order)) != null && _unref5.isHayGasOrder) ? (_openBlock(), _createBlock(_component_base_alert, { key: 0, color: \"pink\", class: \"border border-hg-pink shadow-hg-border\" }, { default: _withCtx(() => [_unref(orderStore).communeWithHayGasPrice ? (_openBlock(), _createElementBlock(\"p\", _hoisted_16, [_hoisted_17, _createElementVNode(\"span\", _hoisted_18, _toDisplayString(_unref(currency)(_unref(orderStore).pesosHaygas)), 1), _hoisted_19])) : (_openBlock(), _createElementBlock(\"p\", _hoisted_20, \" Tienes pesos HAY Gas! pero aún no tenemos Precio HAY Gas disponible. Trabajaremos para que eso ocurra y te avisaremos. \"))]), _: 1 })) : _createCommentVNode(\"\", true), _unref(orderStore).pesosHaygas !== 0 && ((_unref6 = _unref(order)) == null ? void 0 : _unref6.discountValue) !== 0 && (_unref7 = _unref(order)) != null && _unref7.isHayGasOrder ? (_openBlock(), _createElementBlock(\"div\", _hoisted_21, [_createElementVNode(\"p\", null, [_hoisted_22, _createElementVNode(\"span\", _hoisted_23, _toDisplayString(_unref(currency)(_unref(orderStore).pesosHaygas)), 1), _hoisted_24])])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_25, [_createElementVNode(\"div\", _hoisted_26, [_hoisted_27, _createElementVNode(\"div\", _hoisted_28, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(addedOrderItems), item => { return _openBlock(), _createElementBlock(\"div\", { key: item.size, class: \"relative flex h-20 w-20 items-center justify-center rounded-2xl bg-hg-pink\" }, [_createElementVNode(\"p\", _hoisted_29, _toDisplayString(item.size) + \"kg \", 1), _createElementVNode(\"div\", _hoisted_30, _toDisplayString(item.quantity), 1)]); }), 128))])]), _createElementVNode(\"div\", _hoisted_31, [_hoisted_32, _createElementVNode(\"div\", _hoisted_33, [_unref(orderStore).pesosHaygas !== 0 && ((_unref8 = _unref(order)) == null ? void 0 : _unref8.discountValue) !== 0 && (_unref9 = _unref(order)) != null && _unref9.isHayGasOrder ? (_openBlock(), _createElementBlock(\"span\", _hoisted_34, [_createElementVNode(\"p\", _hoisted_35, _toDisplayString(_unref(currency)(_unref(totalPrice))), 1), _createTextVNode(\" \" + _toDisplayString(_unref(currency)(_unref(totalPrice) - (((_unref10 = _unref(order)) == null ? void 0 : _unref10.discountValue) || 0))), 1)])) : (_openBlock(), _createElementBlock(\"span\", _hoisted_36, _toDisplayString(_unref(currency)(_unref(totalPrice))), 1))])])])]), _createVNode(_component_base_button, { id: _unref(distributorName), \"gtm-id\": \"order-items-continue-button\", variant: !!_unref(totalPrice) ? 'primary' : 'disabled', class: \"mt-6 w-full self-end md:w-auto\", size: \"lg\", type: \"button\", onClick: addItemsToOrder }, { default: _withCtx(() => [_hoisted_37]), _: 1 }, 8, [\"id\", \"variant\"])]); }; } });\n","import script from \"./order-items-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-items-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","const MINUTE_PER_HOUR = 60;\nconst OPTIONS = [{ name: '09:00 - 11:00' }, { name: '11:00 - 13:00' }, { name: '13:00 - 15:00' }, { name: '15:00 - 17:00' }, { name: '17:00 - 19:00' }, { name: '19:00 - 21:00' }, { name: '21:00 - 23:00' }];\nfunction isMoreThanOneHourDiff(slotTime, distributorTime) { const [distributorTimeHour, distributorTimeMinute] = distributorTime.split(':'); const [slotTimeHour, slotTimeMinute] = slotTime.split(':'); const hourDiff = Number(distributorTimeHour) - Number(slotTimeHour); const minuteDiff = Number(distributorTimeMinute) - Number(slotTimeMinute); return hourDiff + minuteDiff / MINUTE_PER_HOUR >= 1; }\nfunction filterOptionsByDistributorHours(distributorDeliverySchedule, options) { if (!distributorDeliverySchedule)\n return options; const { openingHour, closingHour } = distributorDeliverySchedule; const filteredOptions = options.filter(option => { const [start, end] = option.name.split(' - '); const validStart = openingHour <= start; const validEnd = closingHour >= end || isMoreThanOneHourDiff(start, closingHour); return validEnd && validStart; }); return filteredOptions; }\nfunction isTimeLeftToBuy(currentTime, option) { const [, end] = option.name.split(' - '); return end > currentTime; }\nexport { OPTIONS, filterOptionsByDistributorHours, isTimeLeftToBuy };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex w-full max-w-5xl flex-col\" };\nconst _hoisted_2 = { class: \"mt-24 flex w-full flex-col space-y-8 rounded-2xl border border-hg-pink px-6 py-8 shadow-hg-border md:px-8\" };\nconst _hoisted_3 = /*#__PURE__*/ _createTextVNode(\" El pago lo realizas directamente al distribuidor cuando entregue tu pedido! \");\nconst _hoisted_4 = { class: \"list-inside list-disc\" };\nconst _hoisted_5 = [\"value\"];\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Selecciona método de pago \", -1);\nconst _hoisted_7 = { class: \"flex flex-col rounded-xl border border-hg-pink px-4 py-6 text-gray-50\" };\nconst _hoisted_8 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:text-xl\" }, [/*#__PURE__*/ _createTextVNode(\" Pago en domicilio \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-hg-pink\" }, \"*\")], -1);\nconst _hoisted_10 = { class: \"flex flex-col space-y-6 pt-3\" };\nconst _hoisted_11 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_12 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"cash\", class: \"text-sm font-bold\" }, \" Efectivo \", -1);\nconst _hoisted_13 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_14 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"card\", class: \"text-sm font-bold\" }, \" Débito/Crédito \", -1);\nconst _hoisted_15 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Selecciona la hora de entrega \", -1);\nconst _hoisted_16 = { class: \"flex flex-col rounded-xl border border-hg-pink px-4 py-6 text-gray-50\" };\nconst _hoisted_17 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_18 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:text-xl\" }, [/*#__PURE__*/ _createTextVNode(\" Horario de entrega \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-hg-pink\" }, \"*\")], -1);\nconst _hoisted_19 = { class: \"flex flex-col space-y-6 pt-3\" };\nconst _hoisted_20 = { key: 1, class: \"flex items-center space-x-2\" };\nconst _hoisted_21 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"immediate\", class: \"text-sm font-bold\" }, \" Inmediato \", -1);\nconst _hoisted_22 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_23 = { for: \"scheduled\", class: \"text-sm font-bold\" };\nconst _hoisted_24 = /*#__PURE__*/ _createTextVNode(\" /> \");\nconst _hoisted_25 = { key: 0, class: \"text-sm\" };\nconst _hoisted_26 = /*#__PURE__*/ _createTextVNode(\" Tienes \");\nconst _hoisted_27 = { class: \"font-extrabold text-amber-300\" };\nconst _hoisted_28 = /*#__PURE__*/ _createTextVNode(\" pesos HAY Gas!, pero sólo puedes ocuparlos en tus pedidos a precios HAY Gas! y no al elegir una marca específica. \");\nconst _hoisted_29 = { key: 1, class: \"text-sm\" };\nconst _hoisted_30 = { class: \"mt-4 flex flex-col rounded-2xl bg-hg-pink/20 p-6 text-gray-50 md:p-8\" };\nconst _hoisted_31 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl\" }, \" Resumen de tu pedido \", -1);\nconst _hoisted_32 = [\"id\"];\nconst _hoisted_33 = { class: \"flex flex-col justify-between space-y-3 md:flex-row\" };\nconst _hoisted_34 = { class: \"flex\" };\nconst _hoisted_35 = { class: \"flex flex-col md:ml-3\" };\nconst _hoisted_36 = { class: \"font-bold md:text-xl\" };\nconst _hoisted_37 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-xs md:text-base\" }, \" Cilindro \", -1);\nconst _hoisted_38 = { class: \"mt-3 text-xs font-bold\" };\nconst _hoisted_39 = { class: \"flex flex-col\" };\nconst _hoisted_40 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:text-xl\" }, \" Cantidad: \", -1);\nconst _hoisted_41 = { class: \"flex flex-col\" };\nconst _hoisted_42 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:text-xl\" }, \" Precio: \", -1);\nconst _hoisted_43 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-print text-4xl\" }, \" Datos de entrega \", -1);\nconst _hoisted_44 = { class: \"mt-2 flex flex-col space-y-2 rounded-xl border border-hg-pink py-4 pl-4 pr-8 font-bold\" };\nconst _hoisted_45 = /*#__PURE__*/ _createTextVNode(\"RUT: \");\nconst _hoisted_46 = { class: \"font-normal\" };\nconst _hoisted_47 = /*#__PURE__*/ _createTextVNode(\"Nombre y apellido: \");\nconst _hoisted_48 = { class: \"font-normal\" };\nconst _hoisted_49 = /*#__PURE__*/ _createTextVNode(\"Región: \");\nconst _hoisted_50 = { class: \"font-normal\" };\nconst _hoisted_51 = /*#__PURE__*/ _createTextVNode(\"Comuna: \");\nconst _hoisted_52 = { class: \"font-normal\" };\nconst _hoisted_53 = /*#__PURE__*/ _createTextVNode(\"Dirección: \");\nconst _hoisted_54 = { class: \"font-normal\" };\nconst _hoisted_55 = /*#__PURE__*/ _createTextVNode(\"Referencia: \");\nconst _hoisted_56 = { class: \"font-normal\" };\nconst _hoisted_57 = /*#__PURE__*/ _createTextVNode(\"Entrega: \");\nconst _hoisted_58 = { class: \"font-normal\" };\nconst _hoisted_59 = { class: \"mt-4 flex flex-col space-y-2 rounded-xl border border-hg-pink bg-hg-pink/10 p-3 font-medium shadow-hg-border\" };\nconst _hoisted_60 = { key: 0 };\nconst _hoisted_61 = /*#__PURE__*/ _createTextVNode(\" Precio inicial: \");\nconst _hoisted_62 = { class: \"font-black\" };\nconst _hoisted_63 = { key: 1 };\nconst _hoisted_64 = /*#__PURE__*/ _createTextVNode(\" Pesos HAY Gas: \");\nconst _hoisted_65 = { class: \"font-extrabold\" };\nconst _hoisted_66 = /*#__PURE__*/ _createTextVNode(\"Precio total: \");\nconst _hoisted_67 = { class: \"font-normal\" };\nconst _hoisted_68 = { class: \"mt-6 flex items-center justify-end space-x-2\" };\nconst _hoisted_69 = { key: 0, class: \"flex h-max items-center justify-center\" };\nconst _hoisted_70 = /*#__PURE__*/ _createTextVNode(\" Enviar pedido \");\nimport { toTypedSchema } from '@vee-validate/yup';\nimport { Field, useForm } from 'vee-validate';\nimport { object, string } from 'yup';\nimport { useOrder } from 'store/order';\nimport { computed, ref, onMounted } from 'vue';\nimport { kebabCase } from 'lodash';\nimport { addDays } from 'date-fns';\nimport { currency } from 'utils/currency';\nimport { scrollToElement } from 'utils/scroll-to-element';\nimport { getCurrentDateInfo } from 'utils/get-current-date-info';\nimport { OPTIONS, filterOptionsByDistributorHours, isTimeLeftToBuy } from '../helpers/slotOptions';\nimport { useDeliveryScheduleHours } from '../composables/useDeliveryScheduleHours';\nimport { useGetDeliverySchedule } from '../composables/useDeliverySchedule';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-confirmation-form', props: { loading: { type: Boolean }, distributorId: null }, emits: [\"success\"], setup(__props, { emit }) { const props = __props; const orderStore = useOrder(); const order = orderStore.order; const orderItems = orderStore.orderItems; const isCourierOrder = orderStore.skipPersonalForm; const paymentMethod = ref(''); const deliverySchedule = ref(''); const deliveryTime = ref(''); const errorsAlert = ref(null); const urlParams = new URLSearchParams(window.location.search); const distributorName = kebabCase(urlParams.get('distributor') || ''); const orderSchedule = computed(() => { switch (deliverySchedule.value) {\n case 'scheduled': return deliveryTime.value;\n case 'immediate_courier': return 'Inmediato por chofer';\n default: return 'Inmediato';\n } }); const { dateTime: currentDateTime, weekDay: currentWeekDay } = getCurrentDateInfo(); const daysOfTheWeek = 7; const tomorrowWeekDay = (currentWeekDay.value + 1) % daysOfTheWeek; const distributorDeliverySchedule = ref(orderStore.prefillDeliverySchedule); const { offsetHourSantiago, beforeDistributorOpeningHour, afterDistributorClosingHour } = useDeliveryScheduleHours(distributorDeliverySchedule); const distributorDeliveryScheduleForTomorrow = useGetDeliverySchedule({ distributorId: props.distributorId, communeId: order == null ? void 0 : order.communeId, day: tomorrowWeekDay }); const optionsFilteredByCurrentTime = computed(() => filterOptionsByDistributorHours(distributorDeliverySchedule.value, OPTIONS).filter(option => isTimeLeftToBuy(offsetHourSantiago, option))); const tomorrowsDelivery = computed(() => afterDistributorClosingHour.value || optionsFilteredByCurrentTime.value.length === 0); const slotOptions = computed(() => { if (tomorrowsDelivery.value && distributorDeliveryScheduleForTomorrow) {\n return filterOptionsByDistributorHours(distributorDeliveryScheduleForTomorrow.value, OPTIONS);\n } return optionsFilteredByCurrentTime.value; }); const slotOptionsNames = computed(() => slotOptions.value.map(option => option.name)); const deliveryDate = computed(() => tomorrowsDelivery.value ? addDays(currentDateTime.value, 1) : currentDateTime.value); const totalPrice = computed(() => orderItems.reduce((sum, item) => sum + item.userPrice * item.quantity, 0)); const deliverAt = computed(() => `${deliveryDate.value.toLocaleDateString('es-CL')} ${deliveryTime.value}`); const scheduleAlertText = computed(() => { if (beforeDistributorOpeningHour.value)\n return 'Los distribuidores abrirán pronto, programa tu pedido hoy.'; if (afterDistributorClosingHour.value) {\n return 'Los distribuidores ya cerraron, pero puedes programar tu pedido para mañana.';\n } return undefined; }); const formRules = toTypedSchema(object().shape({ paymentMethod: string().required('Selecciona un método de pago').oneOf(['cash', 'card'], 'Selecciona un método de pago'), deliverySchedule: string().required('Selecciona un método de envío').oneOf(['immediate', 'scheduled', 'immediate_courier'], 'Selecciona un método de envío'), deliveryTime: string().when('deliverySchedule', { is: selectedSchedule => selectedSchedule === 'scheduled', then: s => s.required('Selecciona una hora de entrega').oneOf(slotOptionsNames.value, 'Selecciona una hora de entrega') }) })); const { errors, meta, validate } = useForm({ validationSchema: formRules }); function updateOrderPaymentMethod() { validate(); if (meta.value.valid && order) {\n order.paymentMethod = paymentMethod.value;\n order.deliverySchedule = deliverySchedule.value;\n order.deliverAt = deliverySchedule.value === 'scheduled' ? deliverAt.value : undefined;\n orderStore.setOrder(order);\n emit('success');\n }\n else {\n const waitAlertToAppear = 10;\n setTimeout(() => { scrollToElement(errorsAlert.value, 'start'); }, waitAlertToAppear);\n } } onMounted(() => { if (isCourierOrder) {\n deliverySchedule.value = 'immediate_courier';\n paymentMethod.value = 'cash';\n } }); return (_ctx, _cache) => { var _unref2, _unref3, _unref4, _unref5, _unref6, _unref7, _unref8, _unref9, _unref10, _unref11, _unref12, _unref13, _unref14, _unref15, _unref16; const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"form\", null, [_createElementVNode(\"div\", _hoisted_2, [_createVNode(_component_base_alert, { color: \"amber\" }, { default: _withCtx(() => [_hoisted_3]), _: 1 }), Object.keys(_unref(errors)).length > 0 ? (_openBlock(), _createElementBlock(\"div\", { key: 0, ref_key: \"errorsAlert\", ref: errorsAlert }, [_createVNode(_component_base_alert, null, { default: _withCtx(() => [_createElementVNode(\"ul\", _hoisted_4, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(errors), errorText => { return _openBlock(), _createElementBlock(\"li\", { key: errorText, value: errorText }, _toDisplayString(errorText), 9, _hoisted_5); }), 128))])]), _: 1 })], 512)) : _createCommentVNode(\"\", true), _withDirectives(_createElementVNode(\"div\", null, [_hoisted_6, _createElementVNode(\"div\", _hoisted_7, [_createElementVNode(\"div\", _hoisted_8, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/banknotes.svg'), class: \"h-7 w-7\" }, null, 8, [\"src\"]), _hoisted_9]), _createElementVNode(\"div\", _hoisted_10, [_createElementVNode(\"div\", _hoisted_11, [_createVNode(_unref(Field), { id: \"cash\", modelValue: paymentMethod.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => paymentMethod.value = $event), type: \"radio\", name: \"paymentMethod\", value: \"cash\" }, null, 8, [\"modelValue\"]), _hoisted_12]), _createElementVNode(\"div\", _hoisted_13, [_createVNode(_unref(Field), { id: \"card\", modelValue: paymentMethod.value, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => paymentMethod.value = $event), type: \"radio\", name: \"paymentMethod\", value: \"card\" }, null, 8, [\"modelValue\"]), _hoisted_14])])])], 512), [[_vShow, !_unref(isCourierOrder)]]), _withDirectives(_createElementVNode(\"div\", null, [_hoisted_15, _createElementVNode(\"div\", _hoisted_16, [_createElementVNode(\"div\", _hoisted_17, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/banknotes.svg'), class: \"h-7 w-7\" }, null, 8, [\"src\"]), _hoisted_18]), _createElementVNode(\"div\", _hoisted_19, [_unref(scheduleAlertText) ? (_openBlock(), _createBlock(_component_base_alert, { key: 0, icon: \"info\", color: \"orange\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(scheduleAlertText)), 1)]), _: 1 })) : _createCommentVNode(\"\", true), !_unref(beforeDistributorOpeningHour) && !_unref(afterDistributorClosingHour) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_20, [_createVNode(_unref(Field), { id: \"immediate\", modelValue: deliverySchedule.value, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => deliverySchedule.value = $event), selected: \"\", type: \"radio\", name: \"deliverySchedule\", value: \"immediate\" }, null, 8, [\"modelValue\"]), _hoisted_21])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_22, [_createVNode(_unref(Field), { id: \"scheduled\", modelValue: deliverySchedule.value, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => deliverySchedule.value = $event), type: \"radio\", name: \"deliverySchedule\", value: \"scheduled\" }, null, 8, [\"modelValue\"]), _createElementVNode(\"label\", _hoisted_23, _toDisplayString(_unref(tomorrowsDelivery) ? 'Programar para mañana' : 'Programar hora'), 1)]), deliverySchedule.value === 'scheduled' ? (_openBlock(), _createBlock(_component_base_select, { key: 2, modelValue: deliveryTime.value, \"onUpdate:modelValue\": _cache[4] || (_cache[4] = $event => deliveryTime.value = $event), name: \"deliveryTime\", class: \"md:w-1/4\", options: _unref(slotOptions) }, { default: _withCtx(() => [_hoisted_24]), _: 1 }, 8, [\"modelValue\", \"options\"])) : _createCommentVNode(\"\", true)])])], 512), [[_vShow, !_unref(isCourierOrder)]]), _unref(orderStore).pesosHaygas !== 0 && ((_unref2 = _unref(order)) == null ? void 0 : _unref2.discountValue) === 0 && !((_unref3 = _unref(order)) != null && _unref3.isHayGasOrder) ? (_openBlock(), _createBlock(_component_base_alert, { key: 1, color: \"pink\", class: \"border border-hg-pink shadow-hg-border\" }, { default: _withCtx(() => [_unref(orderStore).communeWithHayGasPrice ? (_openBlock(), _createElementBlock(\"p\", _hoisted_25, [_hoisted_26, _createElementVNode(\"span\", _hoisted_27, _toDisplayString(_unref(currency)(_unref(orderStore).pesosHaygas)), 1), _hoisted_28])) : (_openBlock(), _createElementBlock(\"p\", _hoisted_29, \" Tienes Pesos HAY Gas! pero aún no tenemos Precio HAY Gas disponible. Trabajaremos para que eso ocurra y te avisaremos \"))]), _: 1 })) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_30, [_hoisted_31, (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(orderItems), (orderItem, index) => { return _openBlock(), _createElementBlock(\"div\", { id: `order-item-${orderItem.size}`, key: index, class: \"mt-2 flex flex-col rounded-xl border border-hg-pink py-4 pl-4 pr-8\" }, [_createElementVNode(\"div\", _hoisted_33, [_createElementVNode(\"div\", _hoisted_34, [_createElementVNode(\"div\", _hoisted_35, [_createElementVNode(\"p\", _hoisted_36, _toDisplayString(orderItem.size) + \" kilos \", 1), _hoisted_37, _createElementVNode(\"p\", _hoisted_38, \" Precio: \" + _toDisplayString(_unref(currency)(orderItem.userPrice)), 1)])]), _createElementVNode(\"div\", _hoisted_39, [_hoisted_40, _createElementVNode(\"p\", null, _toDisplayString(orderItem.quantity) + \" \" + _toDisplayString(orderItem.quantity > 1 ? 'Cilindros' : 'Cilindro'), 1)]), _createElementVNode(\"div\", _hoisted_41, [_hoisted_42, _createElementVNode(\"p\", null, _toDisplayString(_unref(currency)(orderItem.userPrice * orderItem.quantity)), 1)])])], 8, _hoisted_32); }), 128)), _hoisted_43, _createElementVNode(\"div\", _hoisted_44, [_createElementVNode(\"p\", null, [_hoisted_45, _createElementVNode(\"span\", _hoisted_46, _toDisplayString((_unref4 = _unref(order)) == null ? void 0 : _unref4.rut), 1)]), _createElementVNode(\"p\", null, [_hoisted_47, _createElementVNode(\"span\", _hoisted_48, _toDisplayString((_unref5 = _unref(order)) == null ? void 0 : _unref5.firstName) + \" \" + _toDisplayString((_unref6 = _unref(order)) == null ? void 0 : _unref6.lastName), 1)]), _createElementVNode(\"p\", null, [_hoisted_49, _createElementVNode(\"span\", _hoisted_50, _toDisplayString((_unref7 = _unref(order)) == null ? void 0 : _unref7.regionName), 1)]), _createElementVNode(\"p\", null, [_hoisted_51, _createElementVNode(\"span\", _hoisted_52, _toDisplayString((_unref8 = _unref(order)) == null ? void 0 : _unref8.communeName), 1)]), _createElementVNode(\"p\", null, [_hoisted_53, _createElementVNode(\"span\", _hoisted_54, _toDisplayString((_unref9 = _unref(order)) == null ? void 0 : _unref9.address) + \" \" + _toDisplayString((_unref10 = _unref(order)) == null ? void 0 : _unref10.apartment), 1)]), _createElementVNode(\"p\", null, [_hoisted_55, _createElementVNode(\"span\", _hoisted_56, _toDisplayString((_unref11 = _unref(order)) == null ? void 0 : _unref11.addressReference), 1)]), _createElementVNode(\"p\", null, [_hoisted_57, _createElementVNode(\"span\", _hoisted_58, _toDisplayString(_unref(orderSchedule)), 1)])]), _createElementVNode(\"div\", _hoisted_59, [((_unref12 = _unref(order)) == null ? void 0 : _unref12.discountValue) !== 0 ? (_openBlock(), _createElementBlock(\"p\", _hoisted_60, [_hoisted_61, _createElementVNode(\"span\", _hoisted_62, _toDisplayString(_unref(currency)(_unref(totalPrice))), 1)])) : _createCommentVNode(\"\", true), ((_unref13 = _unref(order)) == null ? void 0 : _unref13.discountValue) !== 0 ? (_openBlock(), _createElementBlock(\"p\", _hoisted_63, [_hoisted_64, _createElementVNode(\"span\", _hoisted_65, _toDisplayString(_unref(currency)(((_unref14 = _unref(order)) == null ? void 0 : _unref14.discountValue) || 0)), 1)])) : _createCommentVNode(\"\", true), _createElementVNode(\"p\", null, [_hoisted_66, _createElementVNode(\"span\", _hoisted_67, _toDisplayString(_unref(currency)(((_unref15 = _unref(order)) == null ? void 0 : _unref15.discountValue) === 0 ? _unref(totalPrice) : _unref(totalPrice) - (((_unref16 = _unref(order)) == null ? void 0 : _unref16.discountValue) || 0))), 1)])])])]), _createElementVNode(\"div\", _hoisted_68, [__props.loading ? (_openBlock(), _createElementBlock(\"div\", _hoisted_69, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/loading.svg'), class: \"h-6 animate-spin\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true), _createVNode(_component_base_button, { id: _unref(distributorName), variant: !__props.loading ? 'primary' : 'disabled', \"gtm-id\": \"send-order\", type: \"button\", onClick: updateOrderPaymentMethod }, { default: _withCtx(() => [_hoisted_70]), _: 1 }, 8, [\"id\", \"variant\"])])])]); }; } });\n","import script from \"./order-confirmation-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-confirmation-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, withCtx as _withCtx } from \"vue\";\nconst _hoisted_1 = { class: \"flex w-full max-w-5xl flex-col\" };\nconst _hoisted_2 = { class: \"mt-5 mb-6 flex w-full max-w-5xl flex-col items-center gap-6 rounded-2xl text-lg font-bold text-white md:mb-14\" };\nconst _hoisted_3 = { class: \"flex w-80 flex-col items-center gap-2 text-center leading-7 md:w-120\" };\nconst _hoisted_4 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"w-64 md:w-full\" }, [/*#__PURE__*/ _createTextVNode(\" Gracias por pedir con nosotros \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-hg-pink\" }, \" ¡HAY GAS en tu comuna! \")], -1);\nconst _hoisted_5 = { class: \"font-normal\" };\nconst _hoisted_6 = { class: \"text-hg-pink\" };\nconst _hoisted_7 = [\"href\"];\nconst _hoisted_8 = /*#__PURE__*/ _createTextVNode(\". Tambien \");\nconst _hoisted_9 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-hg-pink\" }, \" recuerda tener a la mano el cilindro vacío para entregar al repartidor \", -1);\nconst _hoisted_10 = /*#__PURE__*/ _createTextVNode(\". \");\nconst _hoisted_11 = { class: \"font-normal\" };\nconst _hoisted_12 = /*#__PURE__*/ _createTextVNode(\" Realiza seguimiento a tu pedido en \");\nconst _hoisted_13 = { class: \"text-hg-pink\" };\nconst _hoisted_14 = [\"href\"];\nconst _hoisted_15 = { class: \"flex flex-col rounded-2xl bg-hg-pink/20 p-6 text-gray-50 md:p-8\" };\nconst _hoisted_16 = { key: 0, class: \"font-bold\" };\nconst _hoisted_17 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-print text-4xl\" }, \" Datos de entrega \", -1);\nconst _hoisted_18 = { class: \"mt-2 flex flex-col space-y-2 rounded-xl border border-hg-pink py-4 pl-4 pr-8 font-bold\" };\nconst _hoisted_19 = /*#__PURE__*/ _createTextVNode(\"RUT: \");\nconst _hoisted_20 = { class: \"font-normal\" };\nconst _hoisted_21 = /*#__PURE__*/ _createTextVNode(\"Nombre y apellido: \");\nconst _hoisted_22 = { class: \"font-normal\" };\nconst _hoisted_23 = /*#__PURE__*/ _createTextVNode(\"Región: \");\nconst _hoisted_24 = { class: \"font-normal\" };\nconst _hoisted_25 = /*#__PURE__*/ _createTextVNode(\"Comuna: \");\nconst _hoisted_26 = { class: \"font-normal\" };\nconst _hoisted_27 = /*#__PURE__*/ _createTextVNode(\"Dirección: \");\nconst _hoisted_28 = { class: \"font-normal\" };\nconst _hoisted_29 = /*#__PURE__*/ _createTextVNode(\"Referencia: \");\nconst _hoisted_30 = { class: \"font-normal\" };\nconst _hoisted_31 = /*#__PURE__*/ _createTextVNode(\"Entrega: \");\nconst _hoisted_32 = { class: \"font-normal\" };\nconst _hoisted_33 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-print text-4xl\" }, \" Resumen de tu pedido \", -1);\nconst _hoisted_34 = { class: \"flex flex-col space-y-4 rounded-xl border-hg-pink md:mt-2 md:space-y-0 md:border md:py-4 md:pl-4 md:pr-8\" };\nconst _hoisted_35 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"hidden justify-between font-bold md:flex\" }, [/*#__PURE__*/ _createElementVNode(\"p\", { class: \"w-28\" }, \" Cilindro: \"), /*#__PURE__*/ _createElementVNode(\"p\", { class: \"w-28\" }, \" Cantidad: \"), /*#__PURE__*/ _createElementVNode(\"p\", { class: \"w-28 text-right\" }, \" Precio: \")], -1);\nconst _hoisted_36 = [\"id\"];\nconst _hoisted_37 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:hidden\" }, \" Cilindro \", -1);\nconst _hoisted_38 = { class: \"md:w-28\" };\nconst _hoisted_39 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-bold md:hidden\" }, \" Cantidad: \", -1);\nconst _hoisted_40 = { class: \"md:w-28\" };\nconst _hoisted_41 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-bold md:hidden\" }, \" Precio: \", -1);\nconst _hoisted_42 = { class: \"md:w-28 md:text-right\" };\nconst _hoisted_43 = { class: \"mt-4 flex flex-col rounded-xl border border-hg-pink py-4 pl-4 pr-8 md:items-end md:border-0 md:p-0\" };\nconst _hoisted_44 = { key: 0, class: \"mt-4\" };\nconst _hoisted_45 = /*#__PURE__*/ _createTextVNode(\" Total: \");\nconst _hoisted_46 = { class: \"font-bold\" };\nconst _hoisted_47 = { key: 1 };\nconst _hoisted_48 = /*#__PURE__*/ _createTextVNode(\" Pesos HAY Gas: \");\nconst _hoisted_49 = { class: \"font-bold\" };\nconst _hoisted_50 = { class: \"md:mt-2\" };\nconst _hoisted_51 = /*#__PURE__*/ _createTextVNode(\" Total a pagar: \");\nconst _hoisted_52 = { class: \"font-bold\" };\nconst _hoisted_53 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-print text-4xl\" }, \" Método de pago \", -1);\nconst _hoisted_54 = { class: \"mt-2 flex flex-col space-y-2 rounded-xl border border-hg-pink py-4 pl-4 pr-8\" };\nconst _hoisted_55 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_56 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold\" }, \" Pago en domicilio \", -1);\nconst _hoisted_57 = { class: \"text-sm\" };\nconst _hoisted_58 = /*#__PURE__*/ _createTextVNode(\" No aceptes cobros adicionales al precio total confirmado. \");\nconst _hoisted_59 = /*#__PURE__*/ _createTextVNode(\" Volver al inicio \");\nimport { currency } from 'utils/currency';\nimport reduce from 'lodash/reduce';\nimport { computed, onMounted } from 'vue';\nimport { useI18n } from 'vue-i18n';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-success-message', props: { orderData: null, orderItems: null, createdOrderId: null }, setup(__props) { const props = __props; const { t } = useI18n(); const totalPriceWithoutDiscount = computed(() => reduce(props.orderItems, (sum, item) => sum + item.userPrice * item.quantity, 0)); const totalPrice = computed(() => { if (props.orderData.discountValue === undefined) {\n return totalPriceWithoutDiscount.value;\n } return totalPriceWithoutDiscount.value - props.orderData.discountValue; }); const orderSchedule = computed(() => props.orderData.deliverySchedule === 'scheduled' ? props.orderData.deliverAt : 'Inmediato'); function trackConversion() { window.trackdesk(\"hay-gas\", \"conversion\", { \"conversionType\": \"sale\" }); } onMounted(() => { trackConversion(); }); return (_ctx, _cache) => { var _props$orderData, _props$orderData2, _props$orderData3, _props$orderData4, _props$orderData5, _props$orderData6, _props$orderData7, _props$orderData8, _props$orderData9, _props$orderData10, _props$orderData11, _props$orderData12; const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/check-circle.svg'), class: \"mt-6 fill-current\" }, null, 8, [\"src\"]), _createElementVNode(\"div\", _hoisted_3, [_hoisted_4, _createElementVNode(\"div\", _hoisted_5, [_createElementVNode(\"p\", null, [_createTextVNode(\" ¡Atención a tu teléfono \" + _toDisplayString(props.orderData.phoneNumber) + \"! ya que el distribuidor te llamará para la entrega. Si el número es incorrecto \", 1), _createElementVNode(\"span\", _hoisted_6, [_createElementVNode(\"a\", { href: `/seguimiento?report=true&phone-number=${props.orderData.phoneNumber}` }, \"repórtalo aqui\", 8, _hoisted_7)]), _hoisted_8, _hoisted_9, _hoisted_10])]), _createElementVNode(\"p\", _hoisted_11, [_hoisted_12, _createElementVNode(\"span\", _hoisted_13, [_createElementVNode(\"a\", { href: `/seguimiento?phone-number=${props.orderData.phoneNumber}` }, \"este link\", 8, _hoisted_14)])])])]), _createElementVNode(\"div\", _hoisted_15, [__props.createdOrderId ? (_openBlock(), _createElementBlock(\"p\", _hoisted_16, \" Pedido: #\" + _toDisplayString(props.createdOrderId), 1)) : _createCommentVNode(\"\", true), _hoisted_17, _createElementVNode(\"div\", _hoisted_18, [_createElementVNode(\"p\", null, [_hoisted_19, _createElementVNode(\"span\", _hoisted_20, _toDisplayString((_props$orderData = __props.orderData) == null ? void 0 : _props$orderData.rut), 1)]), _createElementVNode(\"p\", null, [_hoisted_21, _createElementVNode(\"span\", _hoisted_22, _toDisplayString((_props$orderData2 = __props.orderData) == null ? void 0 : _props$orderData2.firstName) + \" \" + _toDisplayString((_props$orderData3 = __props.orderData) == null ? void 0 : _props$orderData3.lastName), 1)]), _createElementVNode(\"p\", null, [_hoisted_23, _createElementVNode(\"span\", _hoisted_24, _toDisplayString((_props$orderData4 = __props.orderData) == null ? void 0 : _props$orderData4.regionName), 1)]), _createElementVNode(\"p\", null, [_hoisted_25, _createElementVNode(\"span\", _hoisted_26, _toDisplayString((_props$orderData5 = __props.orderData) == null ? void 0 : _props$orderData5.communeName), 1)]), _createElementVNode(\"p\", null, [_hoisted_27, _createElementVNode(\"span\", _hoisted_28, _toDisplayString((_props$orderData6 = __props.orderData) == null ? void 0 : _props$orderData6.address) + \" \" + _toDisplayString((_props$orderData7 = __props.orderData) == null ? void 0 : _props$orderData7.apartment), 1)]), _createElementVNode(\"p\", null, [_hoisted_29, _createElementVNode(\"span\", _hoisted_30, _toDisplayString((_props$orderData8 = __props.orderData) == null ? void 0 : _props$orderData8.addressReference), 1)]), _createElementVNode(\"p\", null, [_hoisted_31, _createElementVNode(\"span\", _hoisted_32, _toDisplayString(_unref(orderSchedule)), 1)])]), _hoisted_33, _createElementVNode(\"div\", _hoisted_34, [_hoisted_35, (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.orderItems, (orderItem, index) => { return _openBlock(), _createElementBlock(\"div\", { id: `order-item-${orderItem.size}`, key: index, class: \"flex flex-col rounded-xl border border-hg-pink py-4 pl-4 pr-8 md:flex-row md:justify-between md:border-0 md:p-0\" }, [_hoisted_37, _createElementVNode(\"p\", _hoisted_38, _toDisplayString(orderItem.size) + \" kilos \", 1), _hoisted_39, _createElementVNode(\"p\", _hoisted_40, _toDisplayString(orderItem.quantity) + \" \" + _toDisplayString(orderItem.quantity > 1 ? 'Cilindros' : 'Cilindro'), 1), _hoisted_41, _createElementVNode(\"p\", _hoisted_42, _toDisplayString(_unref(currency)(orderItem.userPrice)), 1)], 8, _hoisted_36); }), 128)), _createElementVNode(\"div\", _hoisted_43, [((_props$orderData9 = props.orderData) == null ? void 0 : _props$orderData9.discountValue) !== 0 ? (_openBlock(), _createElementBlock(\"p\", _hoisted_44, [_hoisted_45, _createElementVNode(\"span\", _hoisted_46, _toDisplayString(_unref(currency)(_unref(totalPriceWithoutDiscount))), 1)])) : _createCommentVNode(\"\", true), ((_props$orderData10 = props.orderData) == null ? void 0 : _props$orderData10.discountValue) !== 0 && ((_props$orderData11 = props.orderData) == null ? void 0 : _props$orderData11.discountValue) !== undefined ? (_openBlock(), _createElementBlock(\"p\", _hoisted_47, [_hoisted_48, _createElementVNode(\"span\", _hoisted_49, \" -\" + _toDisplayString(_unref(currency)(props.orderData.discountValue)), 1)])) : _createCommentVNode(\"\", true), _createElementVNode(\"p\", _hoisted_50, [_hoisted_51, _createElementVNode(\"span\", _hoisted_52, _toDisplayString(_unref(currency)(_unref(totalPrice))), 1)])])]), _hoisted_53, _createElementVNode(\"div\", _hoisted_54, [_createElementVNode(\"div\", _hoisted_55, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/banknotes.svg'), class: \"h-7 w-7\" }, null, 8, [\"src\"]), _hoisted_56]), _createElementVNode(\"p\", _hoisted_57, _toDisplayString(_unref(t)(`order.paymentMethod.${(_props$orderData12 = __props.orderData) == null ? void 0 : _props$orderData12.paymentMethod}`)), 1)]), _createVNode(_component_base_alert, { icon: \"info\", color: \"amber\", class: \"mt-6\" }, { default: _withCtx(() => [_hoisted_58]), _: 1 })]), _createVNode(_component_base_button, { class: \"mt-6 self-center md:self-end\", type: \"button\", href: \"/\" }, { default: _withCtx(() => [_hoisted_59]), _: 1 })]); }; } });\n","import script from \"./order-success-message.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-success-message.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, unref as _unref, createBlock as _createBlock, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { class: \"mt-3 flex flex-col items-center px-6 md:mt-20\" };\nconst _hoisted_2 = { class: \"flex w-full max-w-5xl space-x-6\" };\nconst _hoisted_3 = { class: \"flex w-full flex-col space-y-0.5\" };\nconst _hoisted_4 = { key: 0 };\nconst _hoisted_5 = { key: 1 };\nconst _hoisted_6 = /*#__PURE__*/ _createTextVNode(\" Realizar pedido \");\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"span\", { class: \"hidden md:inline\" }, \"a domicilio\", -1);\nconst _hoisted_8 = [_hoisted_6, _hoisted_7];\nconst _hoisted_9 = { key: 0, class: \"flex items-center space-x-2\" };\nconst _hoisted_10 = [\"src\"];\nconst _hoisted_11 = { key: 0, class: \"w-auto font-bold text-zinc-100\" };\nimport { useOrder } from 'store/order';\nimport { ref } from 'vue';\nimport { ordersApi } from 'api/orders';\nimport { usersApi } from 'api/users';\nimport { deliveryAddressesApi } from 'api/delivery-addresses';\nimport kebabCase from 'lodash/kebabCase';\nimport { scrollToElement } from 'utils/scroll-to-element';\nimport TheHeader from './the-header.vue';\nimport OrderPersonalInfoForm from './order-personal-info-form.vue';\nimport OrderItemsForm from './order-items-form.vue';\nimport OrderConfirmationForm from './order-confirmation-form.vue';\nimport OrderSuccessMessage from './order-success-message.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-view', props: { regions: null, distributor: null, phoneNumber: null }, setup(__props) { const props = __props; const orderStore = useOrder(); const isHayGasOrder = orderStore.isHayGasOrder; const step = ref(0); const error = ref(false); const topDiv = ref(null); const loadingOrder = ref(false); const deliveryAddressId = ref(null); const steps = ['Datos personales', 'Pedido', 'Pedir']; const createdOrderId = ref(0); const createdOrder = ref(); const createdOrderItems = ref([]); const companyNameTitle = ref(isHayGasOrder ? 'HayGas' : props.distributor.gasCompanyName); function nextStep() { step.value += 1; scrollToElement(topDiv.value, 'start'); } function previousStep() { step.value -= 1; } function handleBackButton() { if (step.value === 0) {\n window.location.href = '/';\n }\n else {\n previousStep();\n } } function parseOrder(orderForm) { return { communeId: orderForm.communeId, paymentMethod: orderForm.paymentMethod, companyName: orderForm.companyName, deliverySchedule: orderForm.deliverySchedule, deliverAt: orderForm.deliverAt, distributorId: orderForm.distributorId, orderItemsAttributes: orderStore.orderItems, deliveryAddressId: deliveryAddressId.value, discountAmount: orderForm.discountValue, isHayGasOrder: orderForm.isHayGasOrder }; } function parseUser(orderForm) { return { rut: orderForm.rut, firstName: orderForm.firstName, lastName: orderForm.lastName, email: orderForm.email, phoneNumber: orderForm.phoneNumber }; } function parseDeliveryAddress(orderForm) { return { communeId: orderForm.communeId, address: orderForm.address, apartment: orderForm.apartment, addressReference: orderForm.addressReference, googleAddressInformation: orderForm.googleAddressInformation, phoneNumber: orderForm.phoneNumber, existingOrderId: orderForm.orderId }; } function setCreatedOrder() { createdOrder.value = orderStore.order; createdOrderItems.value = orderStore.orderItems; } function resetOrderStore() { orderStore.resetOrder(); orderStore.resetPrefilled(); } async function createUser() { if (orderStore.order) {\n try {\n await usersApi.create(parseUser(orderStore.order));\n }\n catch (e) {\n error.value = true;\n }\n } } async function createDeliveryAddress() { if (orderStore.order) {\n try {\n const deliveryAddressResponse = await deliveryAddressesApi.create(parseDeliveryAddress(orderStore.order));\n deliveryAddressId.value = deliveryAddressResponse.deliveryAddress.id;\n }\n catch (e) {\n error.value = true;\n }\n } } async function createOrder() { if (orderStore.order) {\n try {\n const orderResponse = await ordersApi.create(parseOrder(orderStore.order));\n createdOrderId.value = orderResponse.order.id;\n setCreatedOrder();\n resetOrderStore();\n nextStep();\n }\n catch (e) {\n error.value = true;\n }\n } } async function handleSuccessConfirmationForm() { try {\n loadingOrder.value = true;\n await createUser();\n await createDeliveryAddress();\n if (!error.value) {\n await createOrder();\n }\n }\n catch (e) {\n error.value = true;\n } } function isLastStep() { return step.value === steps.length; } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_stepper = _resolveComponent(\"base-stepper\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"div\", { ref_key: \"topDiv\", ref: topDiv }, [_createVNode(TheHeader)], 512), _createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [!isLastStep() ? (_openBlock(), _createElementBlock(\"button\", { key: 0, class: \"flex h-7 w-12 items-center justify-center rounded bg-hg-neutral-500 px-2 md:h-11 md:w-16\", onClick: handleBackButton }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/arrow-back.svg'), class: \"h-6\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"h1\", { class: _normalizeClass([\"font-display text-2xl text-zinc-50 md:h-11 md:text-4xl\", isLastStep() ? 'text-center' : 'text-left']) }, [isLastStep() ? (_openBlock(), _createElementBlock(\"span\", _hoisted_4, \" 🎉 Pedido realizado 🎉 \")) : (_openBlock(), _createElementBlock(\"span\", _hoisted_5, _hoisted_8))], 2), !isLastStep() ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9, [_createElementVNode(\"img\", { src: _unref(isHayGasOrder) ? require('assets/images/haygas.svg') : require(`assets/images/${_unref(kebabCase)(props.distributor.gasCompanyName)}.svg`), class: \"h-14\" }, null, 8, _hoisted_10), companyNameTitle.value === 'HayGas' ? (_openBlock(), _createElementBlock(\"p\", _hoisted_11, \" Recibirás Abastible, Gasco o Lipigas \")) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true)])]), _createVNode(_component_base_stepper, { steps: steps, \"current-step\": step.value }, null, 8, [\"current-step\"]), step.value === 0 ? (_openBlock(), _createBlock(OrderPersonalInfoForm, { key: 0, regions: __props.regions, \"company-name\": __props.distributor.gasCompanyName, \"distributor-id\": __props.distributor.id, \"phone-number\": __props.phoneNumber, onSuccess: nextStep }, null, 8, [\"regions\", \"company-name\", \"distributor-id\", \"phone-number\"])) : _createCommentVNode(\"\", true), step.value === 1 && _unref(orderStore).order ? (_openBlock(), _createBlock(OrderItemsForm, { key: 1, distributor: __props.distributor, onSuccess: nextStep }, null, 8, [\"distributor\"])) : _createCommentVNode(\"\", true), step.value === 2 && _unref(orderStore).order ? (_openBlock(), _createBlock(OrderConfirmationForm, { key: 2, loading: loadingOrder.value, \"distributor-id\": __props.distributor.id, onSuccess: handleSuccessConfirmationForm }, null, 8, [\"loading\", \"distributor-id\"])) : step.value === 3 && createdOrder.value ? (_openBlock(), _createBlock(OrderSuccessMessage, { key: 3, \"created-order-id\": createdOrderId.value, \"order-data\": createdOrder.value, \"order-items\": createdOrderItems.value }, null, 8, [\"created-order-id\", \"order-data\", \"order-items\"])) : _createCommentVNode(\"\", true)])], 64); }; } });\n","import script from \"./order-view.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-view.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { api } from './index';\nexport const couriersApi = { async validateCourier({ phoneNumber, courierCode, referredPhoneNumber }) { const path = '/api/internal/couriers'; return api({ method: 'post', url: path, data: { phoneNumber, courierCode, referredPhoneNumber } }).then(response => response.data); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, vModelText as _vModelText, withKeys as _withKeys, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = { class: \"mx-auto flex w-full flex-col gap-4 rounded-3xl bg-hg-neutral-900/70 p-8 text-white md:w-3/4 md:py-12\" };\nconst _hoisted_2 = { class: \"text-center font-display text-3xl uppercase md:text-3xl\" };\nconst _hoisted_3 = { class: \"flex w-full justify-center gap-2\" };\nconst _hoisted_4 = [\"onUpdate:modelValue\", \"onInput\", \"onKeydown\"];\nimport { ref } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'otp-form', emits: [\"otpConfirmed\"], setup(__props, { emit }) { const otp = ref(['', '', '', '']); const otpRefs = ref([]); const error = ref(false); function verifyOtpCode() { const storedOtpCode = localStorage.getItem('otpCode'); const enteredOtp = otp.value.join(''); return storedOtpCode === enteredOtp; } function resetOtp() { otp.value = ['', '', '', '']; otpRefs.value[0].focus(); } async function submitOtp() { if (verifyOtpCode()) {\n error.value = false;\n emit('otpConfirmed');\n }\n else {\n resetOtp();\n error.value = true;\n } } function moveToNext(index) { if (otp.value[index].length === 1 && index < otp.value.length - 1) {\n otpRefs.value[index + 1].focus();\n }\n else if (index === otp.value.length - 1 && otp.value[index].length === 1) {\n submitOtp();\n } } function handleBackspace(index, event) { if (event.key === 'Backspace' && otp.value[index] === '' && index > 0) {\n otpRefs.value[index - 1].focus();\n } } return (_ctx, _cache) => { return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"p\", _hoisted_2, _toDisplayString(error.value ? 'Código incorrecto, intenta de nuevo' : 'Ingresa el código de verificación'), 1), _createElementVNode(\"div\", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(otp.value, (_, index) => { return _withDirectives((_openBlock(), _createElementBlock(\"input\", { key: index, ref_for: true, ref_key: \"otpRefs\", ref: otpRefs, \"onUpdate:modelValue\": $event => otp.value[index] = $event, type: \"text\", maxlength: \"1\", class: \"h-16 w-16 rounded-lg border-2 border-white bg-transparent text-center text-3xl text-white focus:outline-none focus:ring-0\", onInput: $event => moveToNext(index), onKeydown: _withKeys($event => handleBackspace(index, $event), [\"backspace\"]) }, null, 40, _hoisted_4)), [[_vModelText, otp.value[index]]]); }), 128))])]); }; } });\n","import script from \"./otp-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./otp-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createBlock as _createBlock, createTextVNode as _createTextVNode, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { ref: \"topDiv\" };\nconst _hoisted_2 = { class: \"space-y-6 p-6 text-white md:py-10 md:px-11\" };\nconst _hoisted_3 = { class: \"font-display text-3xl md:text-[40px]\" };\nconst _hoisted_4 = { class: \"md:text-2xl\" };\nconst _hoisted_5 = { key: 0, class: \"mb-3 flex w-full justify-center space-x-2\" };\nconst _hoisted_6 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-gray-50\" }, \" ¿Eres repartidor y quieres ingresar un pedido inmediato? \", -1);\nconst _hoisted_7 = { class: \"flex w-full flex-col items-center justify-center space-y-2 md:w-1/4\" };\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-1 flex w-14 items-center justify-center rounded-l-lg bg-slate-200 px-2 text-sm font-normal text-black\" }, \" +56 \", -1);\nconst _hoisted_9 = { class: \"flex w-full flex-col items-center justify-center space-y-1 md:flex-row md:space-x-2\" };\nconst _hoisted_10 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-1 flex w-14 items-center justify-center rounded-l-lg bg-slate-200 px-2 text-sm font-normal text-black\" }, \" +56 \", -1);\nconst _hoisted_11 = { class: \"w-full\" };\nconst _hoisted_12 = /*#__PURE__*/ _createTextVNode(\" Cambiar número \");\nconst _hoisted_13 = /*#__PURE__*/ _createTextVNode(\" Obtener mi código \");\nconst _hoisted_14 = { class: \"mx-3 flex justify-center\" };\nconst _hoisted_15 = /*#__PURE__*/ _createTextVNode(\" Ir a comprar HAY Gas! \");\nconst _hoisted_16 = { class: \"space-y-6 p-6 md:py-10 md:px-11\" };\nconst _hoisted_17 = /*#__PURE__*/ _createElementVNode(\"h2\", { class: \"font-display text-3xl md:text-[40px]\" }, \" ¿Crees que a alguien más le puede servir este descuento? \", -1);\nconst _hoisted_18 = { class: \"md:text-2xl\" };\nconst _hoisted_19 = /*#__PURE__*/ _createElementVNode(\"br\", null, null, -1);\nimport { Field, useForm } from 'vee-validate';\nimport { ref, computed, onMounted } from 'vue';\nimport { usersApi } from 'api/users';\nimport { couriersApi } from 'api/couriers';\nimport * as communesApi from 'api/communes';\nimport { object, string } from 'yup';\nimport { useOrder } from 'store/order';\nimport { currency } from 'utils/currency';\nimport TheHeader from './the-header.vue';\nimport OtpForm from './otp-form.vue';\nimport ReferLink from './refer-link.vue';\nimport BaseCallout from './base-callout.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'refer-view', props: { regions: null, referralCode: null, courierCode: null }, setup(__props) {\n const props = __props;\n const steps = ['phoneNumberInput', 'otpInput', 'validated', 'errorUserCanNotReferHimself', 'errorUserHaveOrder', 'errorUserUsedLink'];\n const MIN_OTP_VALUE = 1000;\n const MAX_OTP_RANGE = 9000;\n const METROPOLITAN_REGION_ID = 13;\n const currentStep = ref(steps[0]);\n const communes = ref([]);\n const orderStore = useOrder();\n const maxPhoneNumberLength = 9;\n const USER_REWARD_WITH_COURIER = 500;\n const USER_REWARD = 3000;\n const userReward = props.courierCode ? USER_REWARD_WITH_COURIER : USER_REWARD;\n const userRewardFormatted = currency(userReward);\n const phoneNumber = ref('');\n const courierPhoneNumber = ref('');\n const distributorUrl = ref('');\n const email = ref('');\n const phoneNumberIsSet = ref(false);\n const selectedCommuneId = ref();\n const selectedRegion = ref(METROPOLITAN_REGION_ID);\n const isCourier = ref(false);\n const loading = ref(false);\n const error = ref(false);\n const userLink = ref('haygas.cl');\n const showIsCourierBox = computed(() => currentStep.value === 'phoneNumberInput' && props.courierCode);\n const formRules = computed(() => object().shape({ phoneNumber: string().matches(/^\\d{9}$/, 'Ingresa un número de teléfono válido').required('Ingresa un número de teléfono válido'), email: string().matches(/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/, 'Ingresa un correo válido').required('Ingresa un correo válido'), courierPhoneNumber: string().when([], { is: () => isCourier.value, then: schema => schema.required('Ingresa un número de teléfono válido').matches(/^\\d{9}$/, 'Ingresa un número de teléfono válido'), otherwise: schema => schema.notRequired() }) }));\n useForm({ validationSchema: formRules });\n const formValues = { phoneNumber: '', email: '', courierPhoneNumber: '' };\n function clearPhoneNumber() { currentStep.value = 'phoneNumberInput'; phoneNumberIsSet.value = false; phoneNumber.value = ''; }\n function generateOtpCode() { const otpCode = Math.floor(MIN_OTP_VALUE + Math.random() * MAX_OTP_RANGE).toString(); localStorage.setItem('otpCode', otpCode); return otpCode; }\n function buildRefereeUser() { return { phoneNumber: phoneNumber.value, firstName: 'referido', lastName: 'referido', email: email.value, rut: '19', referralCode: props.referralCode, pesosHaygas: userReward }; }\n async function validateReferLinkForUser() { try {\n if (isCourier.value)\n return true;\n const response = await usersApi.validateReferLinkForUser(props.referralCode, phoneNumber.value);\n if (response.valid)\n return true;\n const messageToStep = { 'No puedes referirte a ti mismo': 'errorUserCanNotReferHimself', 'Ya utilizaste el link': 'errorUserUsedLink', 'Ya tienes ordenes en HAYGas': 'errorUserHaveOrder' };\n currentStep.value = messageToStep[response.message] || 'errorUserUsedLink';\n return false;\n }\n catch (e) {\n error.value = true;\n return false;\n } }\n async function sendWhatsappWithOtp() { try {\n loading.value = true;\n const otpCode = generateOtpCode();\n await usersApi.sendRegistrationOtp(phoneNumber.value, otpCode);\n currentStep.value = 'otpInput';\n }\n catch (e) {\n error.value = true;\n }\n finally {\n loading.value = false;\n } }\n async function getUserReferralLink() { loading.value = true; try {\n const user = await usersApi.getUserWithReferralCode(phoneNumber.value);\n userLink.value = `https://haygas.cl/referidos?ref=${user.referralCode}`;\n loading.value = false;\n }\n catch (e) {\n error.value = true;\n loading.value = false;\n } }\n async function createRefereeUser() { try {\n loading.value = true;\n await usersApi.createRefereeUser(buildRefereeUser());\n await getUserReferralLink();\n currentStep.value = 'validated';\n }\n catch (e) {\n error.value = true;\n }\n finally {\n loading.value = false;\n } } // eslint-disable-next-line max-statements\n async function validateCourierPhoneNumber() { try {\n const response = await couriersApi.validateCourier({ phoneNumber: courierPhoneNumber.value, courierCode: props.courierCode, referredPhoneNumber: phoneNumber.value });\n loading.value = true;\n const isValid = response.valid;\n if (isValid) {\n distributorUrl.value = response.distributorUrl;\n orderStore.setSkipPersonalForm(true);\n return true;\n }\n currentStep.value = 'errorWrongCourier';\n return false;\n }\n catch (e) {\n error.value = true;\n return false;\n } }\n async function sendOtpCode() { phoneNumberIsSet.value = true; const isValidCourier = isCourier.value ? await validateCourierPhoneNumber() : true; const isValidUser = await validateReferLinkForUser(); if (isValidUser && isValidCourier) {\n orderStore.setPrefillEmail(email.value);\n await sendWhatsappWithOtp();\n } }\n function checkPhoneNumber(event) { const isNotNumber = isNaN(Number(event.key)); if (isNotNumber)\n event.preventDefault(); }\n function goToBuyButton() { if (distributorUrl.value) {\n window.location.href = `${distributorUrl.value}&phone_number=${phoneNumber.value}`;\n }\n else {\n window.location.href = '/';\n } } // eslint-disable-next-line complexity\n const titleText = computed(() => {\n switch (currentStep.value) {\n case 'phoneNumberInput': return `¡Te han regalado ${userRewardFormatted} para tu primer pedido a Precio HAY Gas!`;\n case 'otpInput': return `Ingresa el código que te enviamos por WhatsApp y gana ${userRewardFormatted}\n automáticamente en tu primer pedido`;\n case 'validated': return '¡Felicidades!';\n case 'errorUserCanNotReferHimself': return '¡No puedes referirte a ti mismo!';\n case 'errorUserHaveOrder': return '¡Lo lamento el programa de referidos es solo para nuevos usuarios!';\n case 'errorWrongCourier': return '¡Parece que ingresaste mal tu número de repartidor!';\n default: return '¡Ya usaste un link de referido!';\n }\n }); // eslint-disable-next-line complexity\n const subTitleText = computed(() => { switch (currentStep.value) {\n case 'phoneNumberInput': return 'Confirma tu celular y el descuento se aplicará automáticamente en tu primera compra con ese número.';\n case 'otpInput': return 'Confirma tu celular y el descuento se aplicará automáticamente en tu primera compra con ese número.';\n case 'validated': return `Tienes ${userRewardFormatted} para tu primer pedido con precio HAY Gas! ` + 'El descuento se aplicará automáticamente en tu próxima compra con ese número. ' + 'Recuerda que es válido sólo en las comunas en que tenemos disponible Precio HAY Gas!';\n case 'errorUserCanNotReferHimself': return '¡Pero recuerda que puedes referir a tus amigos!';\n case 'errorUserHaveOrder': return '';\n case 'errorWrongCourier': return '';\n default: return 'El programa de referidos solo lo puedes utilizar una vez.';\n } });\n function sortCommunes(notSortedCommunes) { return notSortedCommunes.sort((prev, curr) => { const collator = new Intl.Collator('es'); return collator.compare(prev.name, curr.name); }); }\n async function getCommunes(regionId) { orderStore.setPrefillRegionId(regionId); try {\n const response = await communesApi.index(regionId);\n communes.value = sortCommunes(response);\n }\n catch (e) {\n error.value = true;\n } }\n function selectRegion(regionId) { selectedCommuneId.value = 0; getCommunes(regionId); }\n const showGoToHomeButton = computed(() => currentStep.value === 'validated' || currentStep.value === 'errorUserCanNotReferHimself' || currentStep.value === 'errorUserHaveOrder' || currentStep.value === 'errorUserUsedLink');\n onMounted(() => selectRegion(METROPOLITAN_REGION_ID));\n return (_ctx, _cache) => { const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_select = _resolveComponent(\"base-select\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_v_form = _resolveComponent(\"v-form\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"div\", _hoisted_1, [_createVNode(TheHeader)], 512), _createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"h2\", _hoisted_3, _toDisplayString(_unref(titleText)), 1), _createElementVNode(\"p\", _hoisted_4, _toDisplayString(_unref(subTitleText)), 1)]), _unref(showIsCourierBox) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [_createVNode(_unref(Field), { modelValue: isCourier.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => isCourier.value = $event), type: \"checkbox\", value: true, name: \"isCourier\", class: \"h-6 w-6 rounded border-hg-pink bg-transparent checked:text-hg-pink focus:ring-transparent focus:ring-offset-0\" }, null, 8, [\"modelValue\"]), _hoisted_6])) : _createCommentVNode(\"\", true), currentStep.value === 'phoneNumberInput' || currentStep.value === 'otpInput' ? (_openBlock(), _createBlock(_component_v_form, { key: 1, \"validation-schema\": _unref(formRules), \"initial-values\": formValues, class: \"flex w-full items-center justify-center\" }, { default: _withCtx(({ meta }) => [_createElementVNode(\"div\", _hoisted_7, [_createVNode(_component_base_input, { modelValue: phoneNumber.value, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => phoneNumber.value = $event), name: \"phoneNumber\", label: \"\", placeholder: isCourier.value ? 'Ingresa el número del cliente' : 'Ingresa tu número', class: \"w-full\", maxlength: maxPhoneNumberLength, disabled: phoneNumberIsSet.value, onKeypress: checkPhoneNumber }, { before: _withCtx(() => [_hoisted_8]), _: 1 }, 8, [\"modelValue\", \"placeholder\", \"disabled\"]), _createVNode(_component_base_input, { modelValue: email.value, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => email.value = $event), name: \"email\", label: \"\", placeholder: isCourier.value ? 'Ingresa el correo del cliente' : 'Ingresa tu correo', class: \"w-full\", disabled: phoneNumberIsSet.value }, null, 8, [\"modelValue\", \"placeholder\", \"disabled\"]), _createElementVNode(\"div\", _hoisted_9, [isCourier.value ? (_openBlock(), _createBlock(_component_base_input, { key: 0, modelValue: courierPhoneNumber.value, \"onUpdate:modelValue\": _cache[3] || (_cache[3] = $event => courierPhoneNumber.value = $event), name: \"courierPhoneNumber\", placeholder: \"Ingresa tu número de chofer\", class: \"w-full\", maxlength: maxPhoneNumberLength, onKeypress: checkPhoneNumber }, { before: _withCtx(() => [_hoisted_10]), _: 1 }, 8, [\"modelValue\"])) : _createCommentVNode(\"\", true)]), isCourier.value ? (_openBlock(), _createBlock(_component_base_select, { key: 0, modelValue: selectedRegion.value, \"onUpdate:modelValue\": [_cache[4] || (_cache[4] = $event => selectedRegion.value = $event), _cache[5] || (_cache[5] = $event => selectRegion(selectedRegion.value))], modelModifiers: { number: true }, options: __props.regions, label: \"Región y Comuna\", name: \"region\", class: \"w-full\" }, null, 8, [\"modelValue\", \"options\"])) : _createCommentVNode(\"\", true), isCourier.value ? (_openBlock(), _createBlock(_component_base_select, { key: 1, modelValue: selectedCommuneId.value, \"onUpdate:modelValue\": [_cache[6] || (_cache[6] = $event => selectedCommuneId.value = $event), _cache[7] || (_cache[7] = $event => _unref(orderStore).setPrefillCommuneId(selectedCommuneId.value))], modelModifiers: { number: true }, options: communes.value, label: \"\", name: \"commune\", \"empty-label\": \"Ej.: Santiago\", \"allow-empty\": \"\", class: \"w-full\" }, null, 8, [\"modelValue\", \"options\"])) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_11, [phoneNumberIsSet.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, variant: \"primaryOutline\", size: \"lg\", class: \"w-full font-bold\", type: \"button\", onClick: clearPhoneNumber }, { default: _withCtx(() => [_hoisted_12]), _: 1 })) : (_openBlock(), _createBlock(_component_base_button, { key: 1, variant: meta.valid ? 'primary' : 'disabled', size: \"lg\", class: \"w-full font-bold\", type: \"button\", onClick: sendOtpCode }, { default: _withCtx(() => [_hoisted_13]), _: 2 }, 1032, [\"variant\"]))]), loading.value ? (_openBlock(), _createBlock(_component_inline_svg, { key: 2, src: require('assets/images/icons/loading.svg'), class: \"m-2 h-6 animate-spin\" }, null, 8, [\"src\"])) : _createCommentVNode(\"\", true)])]), _: 1 }, 8, [\"validation-schema\"])) : _createCommentVNode(\"\", true), currentStep.value === 'otpInput' ? (_openBlock(), _createBlock(OtpForm, { key: 2, onOtpConfirmed: createRefereeUser })) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_14, [_unref(showGoToHomeButton) ? (_openBlock(), _createBlock(_component_base_button, { key: 0, id: \"go-to-home-button\", class: \"w-full self-center md:w-auto\", \"gtm-id\": \"repeat-order-home-button\", variant: 'primary', size: \"lg\", onClick: _cache[8] || (_cache[8] = $event => goToBuyButton()) }, { default: _withCtx(() => [_hoisted_15]), _: 1 })) : _createCommentVNode(\"\", true)]), !loading.value && currentStep.value == 'validated' ? (_openBlock(), _createBlock(BaseCallout, { key: 3, class: \"mx-auto mt-4 rounded-2xl text-white md:w-3/4\" }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_16, [_hoisted_17, _createElementVNode(\"p\", _hoisted_18, [_createTextVNode(\" Aquí tienes tu propio link de descuento para compartir con tus amigos. ¡Además, por cada amigo que haga su primer pedido te regalamos \" + _toDisplayString(_unref(userRewardFormatted)) + \" + pesos HAY Gas! para tu próxima compra!\", 1), _hoisted_19]), _createVNode(ReferLink, { \"refer-link\": userLink.value, \"is-courier\": false }, null, 8, [\"refer-link\"])])]), _: 1 })) : _createCommentVNode(\"\", true)], 64); };\n } });\n","import script from \"./refer-view.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./refer-view.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineStore } from 'pinia';\nimport { ref } from 'vue';\nconst useUserObfuscatedOrders = defineStore('userOrders', // eslint-disable-next-line max-statements\n() => { const obfuscatedOrders = ref([]); const obfuscatedOrderSelected = ref(null); const prefillDeliverySchedules = ref([]); function setUserObfuscatedOrder(userObfuscatedOrders) { obfuscatedOrders.value = userObfuscatedOrders; } function resetUserObfuscatedOrders() { obfuscatedOrders.value = []; obfuscatedOrderSelected.value = null; prefillDeliverySchedules.value = null; } function setUserObfuscatedOrderSelected(orderData) { obfuscatedOrderSelected.value = orderData; } function setPrefillDeliverySchedules(deliverySchedules) { prefillDeliverySchedules.value = deliverySchedules; } return { obfuscatedOrders, obfuscatedOrderSelected, prefillDeliverySchedules, setUserObfuscatedOrder, resetUserObfuscatedOrders, setUserObfuscatedOrderSelected, setPrefillDeliverySchedules }; }, { persist: { storage: sessionStorage } });\nexport { useUserObfuscatedOrders };\n","\n\n\n","import { render } from \"./repeat-order-header.vue?vue&type=template&id=27526bc5\"\nconst script = {}\n\nimport exportComponent from \"/tmp/build_6638a752/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = { class: \"mt-24 flex w-full flex-col space-y-6 md:w-auto\" };\nconst _hoisted_2 = { key: 0, ref: \"errorsAlert\" };\nconst _hoisted_3 = { class: \"list-inside list-disc\" };\nconst _hoisted_4 = [\"value\"];\nconst _hoisted_5 = { class: \"max-w-5xl flex-col space-y-8 rounded-2xl pb-8 pt-4 md:border md:border-hg-pink md:px-8 md:shadow-hg-border\" };\nconst _hoisted_6 = { class: \"rounded-2xl border border-hg-pink p-6 shadow-hg-border md:border-0 md:p-0 md:shadow-none\" };\nconst _hoisted_7 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-print text-4xl text-gray-50\" }, \" Ingresar tu número de contacto \", -1);\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-sm text-gray-50\" }, \" Es importante para poder contactarte al momento de la entrega. \", -1);\nconst _hoisted_9 = { class: \"mt-4 flex flex-col space-y-4 rounded-2xl bg-hg-pink/20 p-6 font-bold text-gray-50 md:p-8\" };\nconst _hoisted_10 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-1 flex w-14 items-center justify-center rounded-l-lg bg-slate-200 px-2 text-sm font-normal text-black\" }, \" +56 \", -1);\nconst _hoisted_11 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_12 = /*#__PURE__*/ _createTextVNode(\" Continuar \");\nconst _hoisted_13 = /*#__PURE__*/ _createTextVNode(\" No hemos encontrado pedidos asociados al número de teléfono ingresado \");\nimport { useForm } from 'vee-validate';\nimport { object, string } from 'yup';\nimport { toTypedSchema } from '@vee-validate/yup';\nimport { computed, ref } from 'vue';\nimport { useUserObfuscatedOrders } from 'store/user-obfuscated-orders';\nimport * as obfuscatedOrdersApi from 'api/obfuscated-orders';\nimport { deliveryScheduleApi } from 'api/delivery-schedules';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'repeat-order-user-phone-form', emits: [\"success\"], setup(__props, { emit }) { const phoneNumber = ref(''); const maxLength = 9; const error = ref(false); const loading = ref(false); const userObfuscatedOrdersStore = useUserObfuscatedOrders(); const formRules = toTypedSchema(object().shape({ phoneNumber: string().matches(/^\\d{9}$/, 'Ingresa un número de teléfono válido') })); const { meta, errors, validate } = useForm({ validationSchema: formRules }); const isButtonDisabled = computed(() => { if (phoneNumber.value.length === maxLength && !loading.value) {\n return false;\n } return true; }); const communesDistributorsIds = computed(() => { var _userObfuscatedOrders; return (_userObfuscatedOrders = userObfuscatedOrdersStore.obfuscatedOrders) == null ? void 0 : _userObfuscatedOrders.map(order => order.cheapestCurrentOrder.communesDistributorId); }); async function getUserObfuscatedOrders(UserPhoneNumber) { try {\n const obfuscatedOrders = await obfuscatedOrdersApi.searchAll(UserPhoneNumber);\n userObfuscatedOrdersStore.setUserObfuscatedOrder(obfuscatedOrders);\n const deliverySchedules = await deliveryScheduleApi.index(communesDistributorsIds.value);\n userObfuscatedOrdersStore.setPrefillDeliverySchedules(deliverySchedules);\n loading.value = false;\n emit('success');\n }\n catch (e) {\n loading.value = false;\n error.value = true;\n } } function handleContinueButton(event) { event.preventDefault(); validate(); if (meta.value.valid) {\n loading.value = true;\n getUserObfuscatedOrders(phoneNumber.value);\n } } return (_ctx, _cache) => { const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_base_input = _resolveComponent(\"base-input\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"form\", _hoisted_1, [Object.keys(_unref(errors)).length > 0 ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [_createVNode(_component_base_alert, { id: Object.keys(_unref(errors)), \"gtd-id\": \"order-personal-info-form-errors\" }, { default: _withCtx(() => [_createElementVNode(\"ul\", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(errors), errorText => { return _openBlock(), _createElementBlock(\"li\", { key: errorText, value: errorText }, _toDisplayString(errorText), 9, _hoisted_4); }), 128))])]), _: 1 }, 8, [\"id\"])], 512)) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_5, [_createElementVNode(\"div\", _hoisted_6, [_hoisted_7, _hoisted_8, _createElementVNode(\"div\", _hoisted_9, [_createVNode(_component_base_input, { modelValue: phoneNumber.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => phoneNumber.value = $event), name: \"phoneNumber\", placeholder: \"Ingresa tu número\", label: \"Número de contacto\", required: \"\", maxlength: \"9\" }, { before: _withCtx(() => [_hoisted_10]), _: 1 }, 8, [\"modelValue\"]), _createElementVNode(\"div\", _hoisted_11, [_createVNode(_component_base_button, { variant: _unref(isButtonDisabled) ? 'disabled' : 'primary', \"gtm-id\": \"repeat-order-enter-phone-button\", onClick: handleContinueButton }, { default: _withCtx(() => [_hoisted_12]), _: 1 }, 8, [\"variant\"]), loading.value ? (_openBlock(), _createBlock(_component_inline_svg, { key: 0, src: require('assets/images/icons/loading.svg'), class: \"h-6 animate-spin\" }, null, 8, [\"src\"])) : _createCommentVNode(\"\", true)]), error.value ? (_openBlock(), _createBlock(_component_base_alert, { key: 0, \"gtm-id\": \"repeat-order-enter-no-previous-order-with-this-number\", color: 'pink' }, { default: _withCtx(() => [_hoisted_13]), _: 1 })) : _createCommentVNode(\"\", true)])])])]); }; } });\n","import script from \"./repeat-order-user-phone-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./repeat-order-user-phone-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"flex w-full max-w-5xl flex-col\" };\nconst _hoisted_2 = [\"src\"];\nconst _hoisted_3 = /*#__PURE__*/ _createTextVNode(\" Programar mi pedido \");\nconst _hoisted_4 = { class: \"mt-24 flex w-full flex-col space-y-8 rounded-2xl border border-hg-pink px-6 py-8 shadow-hg-border md:px-8\" };\nconst _hoisted_5 = /*#__PURE__*/ _createTextVNode(\" Elegimos la marca con el precio más barato y conservamos los datos de tu último pedido \");\nconst _hoisted_6 = /*#__PURE__*/ _createTextVNode(\" Ha ocurrido un error repitiendo tu pedido, por favor intenta nuevamente \");\nconst _hoisted_7 = { class: \"mt-4 flex flex-col rounded-2xl bg-hg-pink/20 p-6 text-gray-50 md:p-8\" };\nconst _hoisted_8 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-print text-4xl\" }, \" Método de pago \", -1);\nconst _hoisted_9 = { class: \"flex flex-col rounded-xl border border-hg-pink px-4 py-6 text-gray-50\" };\nconst _hoisted_10 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_11 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:text-xl\" }, [/*#__PURE__*/ _createTextVNode(\" Pago en domicilio \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-hg-pink\" }, \"*\")], -1);\nconst _hoisted_12 = { class: \"flex flex-col space-y-6 pt-3\" };\nconst _hoisted_13 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_14 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"cash\", class: \"text-sm font-bold\" }, \" Efectivo \", -1);\nconst _hoisted_15 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_16 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"card\", class: \"text-sm font-bold\" }, \" Débito/Crédito \", -1);\nconst _hoisted_17 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"mt-4 font-print text-4xl\" }, \" Resumen del pedido \", -1);\nconst _hoisted_18 = { class: \"flex flex-col justify-between space-x-0 lg:flex-row lg:space-x-20\" };\nconst _hoisted_19 = { class: \"mb-4 flex flex-col lg:mb-0 lg:grow\" };\nconst _hoisted_20 = /*#__PURE__*/ _createTextVNode(\"RUT: \");\nconst _hoisted_21 = { class: \"font-bold\" };\nconst _hoisted_22 = /*#__PURE__*/ _createTextVNode(\"Nombre y apellido: \");\nconst _hoisted_23 = { class: \"font-bold\" };\nconst _hoisted_24 = /*#__PURE__*/ _createElementVNode(\"p\", null, [/*#__PURE__*/ _createTextVNode(\"Entrega: \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"font-bold\" }, \"Inmediata\")], -1);\nconst _hoisted_25 = /*#__PURE__*/ _createTextVNode(\"Comuna: \");\nconst _hoisted_26 = { class: \"font-bold\" };\nconst _hoisted_27 = /*#__PURE__*/ _createTextVNode(\"Dirección: \");\nconst _hoisted_28 = { class: \"font-bold\" };\nconst _hoisted_29 = /*#__PURE__*/ _createTextVNode(\"Precio total: \");\nconst _hoisted_30 = { class: \"font-bold\" };\nconst _hoisted_31 = /*#__PURE__*/ _createTextVNode(\"Cilindro: \");\nconst _hoisted_32 = { class: \"font-bold\" };\nconst _hoisted_33 = /*#__PURE__*/ _createTextVNode(\"Cantidad: \");\nconst _hoisted_34 = { class: \"font-bold\" };\nconst _hoisted_35 = { key: 0, class: \"flex flex-col items-center justify-center sm:flex-row lg:grow\" };\nconst _hoisted_36 = /*#__PURE__*/ _createTextVNode(\" Repetir este pedido \");\nconst _hoisted_37 = { key: 0, class: \"m-2 flex h-max items-center justify-center\" };\nconst _hoisted_38 = { key: 0, class: \"mt-4 font-print text-4xl\" };\nconst _hoisted_39 = { class: \"flex items-center space-x-2\" };\nconst _hoisted_40 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"font-bold md:text-xl\" }, [/*#__PURE__*/ _createTextVNode(\" Horario de entrega \"), /*#__PURE__*/ _createElementVNode(\"span\", { class: \"text-hg-pink\" }, \"*\")], -1);\nconst _hoisted_41 = { class: \"flex flex-col space-y-6 pt-3\" };\nconst _hoisted_42 = /*#__PURE__*/ _createTextVNode(\" /> \");\nconst _hoisted_43 = /*#__PURE__*/ _createTextVNode(\" Programar este pedido \");\nconst _hoisted_44 = { key: 0, class: \"m-2 flex h-max items-center justify-center\" };\nconst _hoisted_45 = { class: \"mt-5 flex justify-center\" };\nconst _hoisted_46 = /*#__PURE__*/ _createTextVNode(\" Ver todos mis pedidos \");\nimport { computed, ref, watchEffect, nextTick } from 'vue';\nimport { Field } from 'vee-validate';\nimport { addDays } from 'date-fns';\nimport { ordersApi } from 'api/orders';\nimport { deliveryScheduleApi } from 'api/delivery-schedules';\nimport { useUserObfuscatedOrders } from 'store/user-obfuscated-orders';\nimport { currency } from 'utils/currency';\nimport { useDeliveryScheduleHours } from 'composables/useDeliveryScheduleHours';\nimport { getCurrentDateInfo } from 'utils/get-current-date-info';\nimport { scrollToElement } from 'utils/scroll-to-element';\nimport { OPTIONS, filterOptionsByDistributorHours, isTimeLeftToBuy } from '../helpers/slotOptions';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'repeat-order-user-form', emits: [\"success\", \"oficialCompanyOrder\"], setup(__props, { emit }) {\n const showAllOrders = ref(false);\n const error = ref(false);\n const loading = ref(false);\n const deliverySchedule = ref();\n const paymentMethod = ref('cash');\n const isOutOfTimeModalOpen = ref(false);\n const selectedObfuscatedOrderId = ref('');\n const scheduleDiv = ref(null);\n const prefillDeliverySchedule = ref(undefined);\n const deliveryTime = ref('');\n const distributorDeliveryScheduleForTomorrow = ref(undefined);\n const userObfuscatedOrdersStore = useUserObfuscatedOrders();\n const userObfuscatedOrders = computed(() => userObfuscatedOrdersStore.obfuscatedOrders);\n const obfuscatedOrderSelected = computed(() => userObfuscatedOrdersStore.obfuscatedOrderSelected);\n const { offsetHourSantiago, outOfDeliveryTime, beforeDistributorOpeningHour, afterDistributorClosingHour } = useDeliveryScheduleHours(prefillDeliverySchedule);\n const userObfuscatedOrdersToShow = computed(() => { if (showAllOrders.value) {\n return userObfuscatedOrders.value;\n } return [userObfuscatedOrders.value[0]]; });\n const { dateTime: currentDateTime, weekDay: currentWeekDay } = getCurrentDateInfo();\n const daysOfTheWeek = 7;\n const tomorrowWeekDay = (currentWeekDay.value + 1) % daysOfTheWeek;\n const optionsFilteredByCurrentTime = computed(() => filterOptionsByDistributorHours(prefillDeliverySchedule.value, OPTIONS).filter(option => isTimeLeftToBuy(offsetHourSantiago, option)));\n const tomorrowsDelivery = computed(() => afterDistributorClosingHour.value || optionsFilteredByCurrentTime.value.length === 0);\n const deliveryDate = computed(() => tomorrowsDelivery.value ? addDays(currentDateTime.value, 1) : currentDateTime.value);\n const deliverAt = computed(() => `${deliveryDate.value.toLocaleDateString('es-CL')} ${deliveryTime.value}`);\n const obfuscatedOrderSelectedWithDeliverySchedule = computed(() => ({\n ...obfuscatedOrderSelected.value, deliverAt: deliverAt.value, deliverySchedule: deliverySchedule.value\n }));\n const outOfDeliveryTimeTitle = computed(() => beforeDistributorOpeningHour.value ? 'Muy pronto abrirán' : 'Este distribuidor acaba de cerrar');\n const slotOptions = computed(() => { if (tomorrowsDelivery.value && distributorDeliveryScheduleForTomorrow) {\n return filterOptionsByDistributorHours(distributorDeliveryScheduleForTomorrow.value, OPTIONS);\n } return optionsFilteredByCurrentTime.value; });\n const outOfDeliveryTimeDescription = computed(() => beforeDistributorOpeningHour.value ? `Nuestros distribuidores están a puertas de abrir,\n de igual forma puedes pedirlo para que llegue el día de hoy.` : 'Este distribuidor acaba de cerrar hace unos minutos, pero puedes programar tu pedido para mañana.');\n const outOfDeliveryTimeIconPath = computed(() => beforeDistributorOpeningHour.value ? require('assets/images/door-opening-time.png') : require('assets/images/store-closing-time.png'));\n function setDistributorDeliverySchedule() { var _userObfuscatedOrders; const prefillDeliverySchedules = userObfuscatedOrdersStore.prefillDeliverySchedules; const selectedCommunesDistributorId = (_userObfuscatedOrders = userObfuscatedOrdersStore.obfuscatedOrderSelected) == null ? void 0 : _userObfuscatedOrders.cheapestCurrentOrder.communesDistributorId; const distributorDeliverySchedule = (prefillDeliverySchedules == null ? void 0 : prefillDeliverySchedules.find(schedule => schedule.communesDistributorId === selectedCommunesDistributorId)) || undefined; prefillDeliverySchedule.value = distributorDeliverySchedule; }\n function handleShowAllOrdersButton(event) { event.preventDefault(); showAllOrders.value = true; }\n async function repeatOrder() { try {\n let response;\n if (deliverAt.value !== '' && deliverySchedule) {\n response = await ordersApi.repeat(selectedObfuscatedOrderId.value, paymentMethod.value, deliverAt.value, deliverySchedule.value);\n }\n else {\n response = await ordersApi.repeat(selectedObfuscatedOrderId.value, paymentMethod.value);\n }\n emit('success', response);\n loading.value = false;\n }\n catch (e) {\n error.value = true;\n } }\n async function getTomorrowDeliverySchedule() { try {\n var _obfuscatedOrderSelec, _obfuscatedOrderSelec2;\n const distributorId = (_obfuscatedOrderSelec = obfuscatedOrderSelected.value) == null ? void 0 : _obfuscatedOrderSelec.distributorId;\n const communeId = (_obfuscatedOrderSelec2 = obfuscatedOrderSelected.value) == null ? void 0 : _obfuscatedOrderSelec2.communeId;\n if (distributorId && communeId) {\n const distributorDeliverySchedule = await deliveryScheduleApi.show(communeId, distributorId, tomorrowWeekDay);\n distributorDeliveryScheduleForTomorrow.value = distributorDeliverySchedule;\n }\n }\n catch (e) {\n error.value = true;\n } }\n function openModal() { isOutOfTimeModalOpen.value = true; }\n function closeModal() { isOutOfTimeModalOpen.value = false; }\n function checkTime() { if (outOfDeliveryTime.value) {\n openModal();\n }\n else {\n loading.value = true;\n repeatOrder();\n } }\n function handleRepeatOrderButton(obfuscatedOrder, event) { event.preventDefault(); if (obfuscatedOrder.cheapestCurrentOrder.communesDistributorId === null) {\n emit('oficialCompanyOrder', obfuscatedOrder.gasCompany.url);\n return;\n } selectedObfuscatedOrderId.value = obfuscatedOrder.orderId; userObfuscatedOrdersStore.setUserObfuscatedOrderSelected(obfuscatedOrder); setDistributorDeliverySchedule(); checkTime(); }\n function handleScheduleOrderButton(event) { event.preventDefault(); userObfuscatedOrdersStore.setUserObfuscatedOrderSelected(obfuscatedOrderSelectedWithDeliverySchedule.value); loading.value = true; repeatOrder(); }\n function scheduleOrder() { closeModal(); deliverySchedule.value = 'scheduled'; nextTick(() => { scrollToElement(scheduleDiv.value, 'start'); }); }\n watchEffect(() => { if (obfuscatedOrderSelected.value) {\n getTomorrowDeliverySchedule();\n }\n else {\n distributorDeliveryScheduleForTomorrow.value = undefined;\n } });\n return (_ctx, _cache) => { const _component_base_modal = _resolveComponent(\"base-modal\"); const _component_base_alert = _resolveComponent(\"base-alert\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); const _component_base_select = _resolveComponent(\"base-select\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_base_modal, { open: isOutOfTimeModalOpen.value, onClose: closeModal, onFirstButtonClick: scheduleOrder }, { title: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(outOfDeliveryTimeTitle)), 1)]), image: _withCtx(() => [_createElementVNode(\"img\", { src: _unref(outOfDeliveryTimeIconPath), class: \"h-20 w-20 fill-current text-hg-pink\" }, null, 8, _hoisted_2)]), description: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(outOfDeliveryTimeDescription)), 1)]), firstButtonTitle: _withCtx(() => [_hoisted_3]), _: 1 }, 8, [\"open\"]), _createElementVNode(\"form\", null, [_createElementVNode(\"div\", _hoisted_4, [_createVNode(_component_base_alert, { color: \"ambar\" }, { default: _withCtx(() => [_hoisted_5]), _: 1 }), error.value ? (_openBlock(), _createBlock(_component_base_alert, { key: 0, color: \"pink\" }, { default: _withCtx(() => [_hoisted_6]), _: 1 })) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_7, [_hoisted_8, _createElementVNode(\"div\", _hoisted_9, [_createElementVNode(\"div\", _hoisted_10, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/banknotes.svg'), class: \"h-7 w-7\" }, null, 8, [\"src\"]), _hoisted_11]), _createElementVNode(\"div\", _hoisted_12, [_createElementVNode(\"div\", _hoisted_13, [_createVNode(_unref(Field), { id: \"cash\", modelValue: paymentMethod.value, \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => paymentMethod.value = $event), type: \"radio\", name: \"paymentMethod\", value: \"cash\" }, null, 8, [\"modelValue\"]), _hoisted_14]), _createElementVNode(\"div\", _hoisted_15, [_createVNode(_unref(Field), { id: \"card\", modelValue: paymentMethod.value, \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => paymentMethod.value = $event), type: \"radio\", name: \"paymentMethod\", value: \"card\" }, null, 8, [\"modelValue\"]), _hoisted_16])])]), _hoisted_17, (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(userObfuscatedOrdersToShow), order => { return _openBlock(), _createElementBlock(\"div\", { key: order.orderId, class: \"mt-2 flex flex-col space-y-2 rounded-xl border border-hg-pink p-4\" }, [_createElementVNode(\"div\", _hoisted_18, [_createElementVNode(\"div\", _hoisted_19, [_createElementVNode(\"p\", null, [_hoisted_20, _createElementVNode(\"span\", _hoisted_21, _toDisplayString(order.rut), 1)]), _createElementVNode(\"p\", null, [_hoisted_22, _createElementVNode(\"span\", _hoisted_23, _toDisplayString(order.firstName) + \" \" + _toDisplayString(order.lastName), 1)]), _hoisted_24, _createElementVNode(\"p\", null, [_hoisted_25, _createElementVNode(\"span\", _hoisted_26, _toDisplayString(order.communeName), 1)]), _createElementVNode(\"p\", null, [_hoisted_27, _createElementVNode(\"span\", _hoisted_28, _toDisplayString(order.address), 1)]), _createElementVNode(\"p\", null, [_hoisted_29, _createElementVNode(\"span\", _hoisted_30, _toDisplayString(_unref(currency)(order.cheapestCurrentOrder.totalUserPrice)), 1)])]), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(order.cheapestCurrentOrder.newOrderItems, gasItem => { return _openBlock(), _createElementBlock(\"div\", { key: gasItem.size, class: \"mb-4 flex flex-col lg:mb-0 lg:grow\" }, [_createElementVNode(\"p\", null, [_hoisted_31, _createElementVNode(\"span\", _hoisted_32, _toDisplayString(gasItem.size) + \" kilos\", 1)]), _createElementVNode(\"p\", null, [_hoisted_33, _createElementVNode(\"span\", _hoisted_34, _toDisplayString(gasItem.quantity) + \" \" + _toDisplayString(gasItem.quantity > 1 ? \"unidades\" : \"unidad\"), 1)])]); }), 128)), !deliverySchedule.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_35, [_createVNode(_component_base_button, { id: order.orderId, variant: 'primary', disabled: loading.value, \"gtm-id\": \"repeat-order-send-order-button\", onClick: $event => handleRepeatOrderButton(order, $event) }, { default: _withCtx(() => [_hoisted_36]), _: 2 }, 1032, [\"id\", \"disabled\", \"onClick\"]), loading.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_37, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/loading.svg'), class: \"h-6 animate-spin\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true)])]); }), 128)), deliverySchedule.value ? (_openBlock(), _createElementBlock(\"p\", _hoisted_38, \" Programa tu pedido \")) : _createCommentVNode(\"\", true), deliverySchedule.value ? (_openBlock(), _createElementBlock(\"div\", { key: 1, ref_key: \"scheduleDiv\", ref: scheduleDiv, class: \"mt-2 flex flex-col space-y-2 rounded-xl border border-hg-pink p-4\" }, [_createElementVNode(\"div\", _hoisted_39, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/banknotes.svg'), class: \"h-7 w-7\" }, null, 8, [\"src\"]), _hoisted_40]), _createElementVNode(\"div\", _hoisted_41, [_createVNode(_component_base_alert, { icon: \"info\", color: \"orange\" }, { default: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(tomorrowsDelivery) ? 'Programar para mañana' : 'Programar hora'), 1)]), _: 1 }), _createVNode(_component_base_select, { modelValue: deliveryTime.value, \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => deliveryTime.value = $event), name: \"deliveryTime\", class: \"md:w-1/4\", options: _unref(slotOptions) }, { default: _withCtx(() => [_hoisted_42]), _: 1 }, 8, [\"modelValue\", \"options\"]), _createVNode(_component_base_button, { id: 2, variant: 'primary', disabled: deliveryTime.value === '', \"gtm-id\": \"repeat-order-send-order-scheduled-button\", onClick: _cache[3] || (_cache[3] = $event => handleScheduleOrderButton($event)) }, { default: _withCtx(() => [_hoisted_43]), _: 1 }, 8, [\"disabled\"]), loading.value ? (_openBlock(), _createElementBlock(\"div\", _hoisted_44, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/loading.svg'), class: \"h-6 animate-spin\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)])], 512)) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_45, [!showAllOrders.value && _unref(userObfuscatedOrders).length > 1 && !deliverySchedule.value ? (_openBlock(), _createBlock(_component_base_button, { key: 0, variant: 'back', onClick: handleShowAllOrdersButton }, { default: _withCtx(() => [_hoisted_46]), _: 1 })) : _createCommentVNode(\"\", true)])])])])]); };\n } });\n","import script from \"./repeat-order-user-form.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./repeat-order-user-form.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode } from \"vue\";\nconst _hoisted_1 = { class: \"mt-16\" };\nconst _hoisted_2 = { class: \"flex h-1 flex-row items-center space-x-16 bg-hg-pink\" };\nconst _hoisted_3 = { key: 0, class: \"absolute -top-1 -right-2 flex h-6 w-6 items-center justify-center rounded-full border-2 border-hg-pink bg-white text-hg-pink\" };\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-stepper', props: { steps: null, currentStep: null }, setup(__props) { return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createElementVNode(\"div\", _hoisted_2, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.steps, (step, index) => { return _openBlock(), _createElementBlock(\"div\", { key: index, class: \"mt-5 flex w-16 flex-col items-center space-y-2 overflow-visible\" }, [_createElementVNode(\"div\", { class: _normalizeClass([\"relative flex h-16 w-16 items-center justify-center rounded-full border-4 border-hg-pink pb-2 text-center font-print text-7xl text-white\", index < __props.currentStep ? 'bg-hg-pink' : 'bg-hg-neutral-800']) }, [_createTextVNode(_toDisplayString(index + 1) + \" \", 1), index < __props.currentStep ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, [_createVNode(_component_inline_svg, { class: \"fill-current\", src: require('assets/images/icons/check.svg') }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)], 2), _createElementVNode(\"p\", { class: _normalizeClass([\"whitespace-nowrap text-sm font-bold\", index < __props.currentStep ? 'text-hg-pink' : 'text-white']) }, _toDisplayString(step), 3)]); }), 128))])]); }; } });\n","import script from \"./base-stepper.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-stepper.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, createVNode as _createVNode, resolveComponent as _resolveComponent, createElementVNode as _createElementVNode, renderSlot as _renderSlot, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = { class: \"relative mx-auto flex max-h-screen flex-col overflow-auto rounded-md bg-white p-4 md:max-w-screen-md\" };\nconst _hoisted_2 = { class: \"relative flex items-start justify-center py-4 px-6\" };\nconst _hoisted_3 = { class: \"mb-4 flex flex-col items-center space-y-4 text-lg font-bold\" };\nconst _hoisted_4 = { class: \"flex flex-col items-center\" };\nconst _hoisted_5 = { key: 0, class: \"w-72 text-center\" };\nimport { Dialog, DialogOverlay, DialogTitle } from '@headlessui/vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-modal', props: { open: { type: Boolean, default: false }, firstButtonUrl: { default: '' }, secondButtonUrl: { default: '' }, isFirstButtonDisabled: { type: Boolean }, isSecondButtonDisabled: { type: Boolean } }, emits: [\"close\", \"firstButtonClick\", \"secondButtonClick\"], setup(__props) { return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createBlock(_unref(Dialog), { open: __props.open, class: \"fixed inset-0 z-50 flex items-center justify-center\", onClose: _cache[3] || (_cache[3] = () => { }) }, { default: _withCtx(() => [_createVNode(_unref(DialogOverlay), { class: \"fixed inset-0 bg-black opacity-60\" }), _createElementVNode(\"div\", _hoisted_1, [_createElementVNode(\"button\", { class: \"m-0 ml-auto cursor-pointer overflow-y-auto border-0 bg-transparent p-0 text-gray-500 hover:text-gray-800 focus:text-gray-800 focus:outline-none\", type: \"button\", onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('close')) }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/close.svg'), class: \"h-6 w-6 fill-current\" }, null, 8, [\"src\"])]), _createElementVNode(\"div\", _hoisted_2, [_ctx.$slots.title ? (_openBlock(), _createBlock(_unref(DialogTitle), { key: 0, class: \"flex flex-col items-center\" }, { default: _withCtx(() => [_createElementVNode(\"div\", _hoisted_3, [_renderSlot(_ctx.$slots, \"image\"), _createElementVNode(\"p\", null, [_renderSlot(_ctx.$slots, \"title\")])])]), _: 3 })) : _createCommentVNode(\"\", true)]), _createElementVNode(\"div\", _hoisted_4, [_ctx.$slots.description ? (_openBlock(), _createElementBlock(\"p\", _hoisted_5, [_renderSlot(_ctx.$slots, \"description\")])) : _createCommentVNode(\"\", true)]), _ctx.$slots.firstButtonTitle ? (_openBlock(), _createBlock(_component_base_button, { key: 0, variant: __props.isFirstButtonDisabled ? 'disabled' : 'primary', size: \"lg\", type: \"button\", class: \"mt-7 h-12 w-full\", href: __props.firstButtonUrl, onClick: _cache[1] || (_cache[1] = $event => _ctx.$emit('firstButtonClick', { event: $event })) }, { default: _withCtx(() => [_renderSlot(_ctx.$slots, \"firstButtonTitle\")]), _: 3 }, 8, [\"variant\", \"href\"])) : _createCommentVNode(\"\", true), _ctx.$slots.secondButtonTitle ? (_openBlock(), _createBlock(_component_base_button, { key: 1, variant: __props.isSecondButtonDisabled ? 'disabled' : 'terciary', href: __props.secondButtonUrl, type: \"button\", class: \"mt-2 h-12 w-full\", size: \"lg\", onClick: _cache[2] || (_cache[2] = $event => _ctx.$emit('secondButtonClick', { event: $event })) }, { default: _withCtx(() => [_renderSlot(_ctx.$slots, \"secondButtonTitle\")]), _: 3 }, 8, [\"variant\", \"href\"])) : _createCommentVNode(\"\", true)])]), _: 3 }, 8, [\"open\"]); }; } });\n","import script from \"./base-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementBlock as _createElementBlock, unref as _unref, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { class: \"mt-3 flex flex-col items-center px-6 md:mt-20\" };\nconst _hoisted_2 = [\"src\"];\nconst _hoisted_3 = /*#__PURE__*/ _createTextVNode(\" Actualmente no tenemos distribuidores de esa marca \");\nconst _hoisted_4 = { key: 0, class: \"flex flex-row space-x-3\" };\nimport { ref, onMounted, computed, nextTick } from 'vue';\nimport { useUserObfuscatedOrders } from 'store/user-obfuscated-orders';\nimport { scrollToElement } from 'utils/scroll-to-element';\nimport RepeatOrderHeader from './repeat-order-header.vue';\nimport RepeatOrderUserPhoneForm from './repeat-order-user-phone-form.vue';\nimport RepeatOrderUserForm from './repeat-order-user-form.vue';\nimport orderSuccessMessage from './order-success-message.vue';\nimport TheHeader from './the-header.vue';\nimport baseStepper from './base-stepper.vue';\nimport baseModal from './base-modal.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'repeat-order-view', setup(__props) { const steps = ['Número de teléfono', 'Repetir pedido', 'Pedido exitoso']; const step = ref(0); const showModal = ref(false); const companyUrl = ref(''); const topDiv = ref(); const obfuscatedOrdersStore = useUserObfuscatedOrders(); const obfuscatedOrderSelected = computed(() => obfuscatedOrdersStore.obfuscatedOrderSelected || {}); function previousStep() { step.value -= 1; } function handleOfficialCompanyOrder(companyUrlEvent) { if (companyUrlEvent) {\n companyUrl.value = companyUrlEvent;\n }\n else {\n console.error('No se ha recibido la URL en el evento');\n } showModal.value = true; } function nextStep() { step.value += 1; nextTick(() => { scrollToElement(topDiv.value, 'start'); }); } function handleBackButton(event) { event.preventDefault(); if (step.value === 0) {\n window.location.href = '/';\n }\n else {\n previousStep();\n } } function handleSuccess(response) { if (response && typeof response === 'object' && 'gasCompanyUrl' in response) {\n showModal.value = true;\n companyUrl.value = response.gasCompanyUrl;\n }\n else {\n nextStep();\n } } function closeModal() { showModal.value = false; } function goToGasCompanyUrl() { if (companyUrl.value && companyUrl.value != null) {\n window.open(companyUrl.value, '_blank');\n }\n else {\n showModal.value = false;\n console.error('No se ha recibido la URL de la compañía');\n } } onMounted(() => { obfuscatedOrdersStore.resetUserObfuscatedOrders(); }); return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"div\", { ref_key: \"topDiv\", ref: topDiv }, [_createVNode(TheHeader)], 512), _createElementVNode(\"div\", _hoisted_1, [_createVNode(baseModal, { open: showModal.value, onClose: closeModal, onFirstButtonClick: goToGasCompanyUrl }, { image: _withCtx(() => [_createElementVNode(\"img\", { src: require('assets/images/icons/error-circle.svg'), class: \"h-20 w-20 fill-current text-hg-pink\" }, null, 8, _hoisted_2)]), title: _withCtx(() => [_hoisted_3]), description: _withCtx(() => [_createTextVNode(_toDisplayString(companyUrl.value === \"\" || companyUrl.value == null ? 'Lamentablemente esta compañía no tiene página web aún' : 'No contamos con distribuidores en esa zona, pero puedes pedir de manera directa'), 1)]), firstButtonTitle: _withCtx(() => [_createTextVNode(_toDisplayString(companyUrl.value === \"\" || companyUrl.value == null ? 'Intentemos con otro pedido' : 'Ir a la página'), 1)]), _: 1 }, 8, [\"open\"]), step.value < 2 ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [_createElementVNode(\"button\", { class: \"flex h-7 w-12 items-center justify-center rounded bg-hg-neutral-500 px-2 md:h-11 md:w-16\", onClick: handleBackButton }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/arrow-back.svg'), class: \"h-6\" }, null, 8, [\"src\"])]), step.value < 2 ? (_openBlock(), _createBlock(RepeatOrderHeader, { key: 0 })) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true), step.value < 2 ? (_openBlock(), _createBlock(baseStepper, { key: 1, steps: steps, \"current-step\": step.value }, null, 8, [\"current-step\"])) : _createCommentVNode(\"\", true), step.value === 0 ? (_openBlock(), _createBlock(RepeatOrderUserPhoneForm, { key: 2, onSuccess: nextStep })) : _createCommentVNode(\"\", true), step.value === 1 ? (_openBlock(), _createBlock(RepeatOrderUserForm, { key: 3, onSuccess: handleSuccess, onOficialCompanyOrder: _cache[0] || (_cache[0] = $event => handleOfficialCompanyOrder($event)) })) : _createCommentVNode(\"\", true), step.value === 2 ? (_openBlock(), _createBlock(orderSuccessMessage, { key: 4, \"order-data\": _unref(obfuscatedOrderSelected), \"order-items\": _unref(obfuscatedOrderSelected).cheapestCurrentOrder.newOrderItems }, null, 8, [\"order-data\", \"order-items\"])) : _createCommentVNode(\"\", true)])], 64); }; } });\n","import script from \"./repeat-order-view.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./repeat-order-view.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, unref as _unref, renderList as _renderList, Fragment as _Fragment, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = { class: \"flex flex-col\" };\nconst _hoisted_2 = [\"for\"];\nconst _hoisted_3 = { key: 0, class: \"-ml-0.5 text-hg-pink\" };\nconst _hoisted_4 = [\"id\", \"value\", \"name\"];\nconst _hoisted_5 = { key: 0, class: \"hidden\", value: \"0\" };\nconst _hoisted_6 = [\"value\"];\nimport { useField } from 'vee-validate';\nimport { watch } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-select', props: { modelValue: { default: undefined }, options: null, label: { default: undefined }, name: null, required: { type: Boolean }, allowEmpty: { type: Boolean, default: false }, emptyLabel: { default: undefined } }, emits: [\"update:modelValue\"], setup(__props, { emit }) {\n const props = __props;\n const { meta, value: inputValue, errorMessage, handleBlur, handleChange } = useField(props.name, undefined, { initialValue: props.modelValue, valueProp: props.modelValue });\n function onChange(e) { const value = e.target.value; handleChange(value); emit('update:modelValue', value); }\n watch(() => props.modelValue, newModel => { if (newModel === inputValue.value) {\n return;\n } inputValue.value = newModel; });\n return (_ctx, _cache) => {\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [!!__props.label ? (_openBlock(), _createElementBlock(\"label\", { key: 0, for: __props.name, class: \"font-bold text-zinc-50\" }, [_createTextVNode(_toDisplayString(__props.label) + \" \", 1), __props.required ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, \" * \")) : _createCommentVNode(\"\", true)], 8, _hoisted_2)) : _createCommentVNode(\"\", true), _createElementVNode(\"select\", { id: __props.name, value: _unref(inputValue), name: __props.name, class: _normalizeClass([\"mt-1 h-10 rounded-lg border-0 bg-white px-4 text-black\", [{ 'border border-hg-pink': !!_unref(errorMessage) && _unref(meta).touched, 'text-gray-500': _unref(inputValue) === 0 }]]), onChange: onChange, onBlur: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => _unref(handleBlur) && _unref(handleBlur)(...args)) }, [__props.allowEmpty ? (_openBlock(), _createElementBlock(\"option\", _hoisted_5, _toDisplayString(__props.emptyLabel), 1)) : _createCommentVNode(\"\", true), (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, option => { return _openBlock(), _createElementBlock(\"option\", { key: option.id, value: option.id }, _toDisplayString(option.name), 9, _hoisted_6); }), 128))], 42, _hoisted_4), _withDirectives(_createElementVNode(\"p\", { class: \"text-right text-xs text-hg-pink md:col-span-2\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]])]);\n };\n } });\n","import script from \"./base-select.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-select.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import script from \"./base-button.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-button.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, renderSlot as _renderSlot, resolveDynamicComponent as _resolveDynamicComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\";\nimport { computed, useAttrs } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-button', props: { size: { default: 'md' }, variant: { default: 'primary' } }, setup(__props) { const props = __props; const attrs = useAttrs(); const currentTag = computed(() => attrs.href ? 'a' : 'button'); const sizes = { md: 'h-9 md:w-44 w-full md:min-w-max text-sm px-5', lg: 'h-11 text-lg px-7', xl: 'h-16 text-xl px-9' }; const colors = { primary: 'bg-hg-pink text-white', secondary: 'bg-hg-neutral-500 text-white', terciary: 'border-2 border-hg-pink text-hg-pink', disabled: 'bg-hg-pink/70 text-zinc-100/70 cursor-default', secondaryDisabled: 'bg-hg-neutral-500/70 text-zinc-100/70 cursor-default', back: 'text-sky-400', primaryOutline: 'border-2 border-hg-pink text-white font-bold shadow-hg-border ' }; const currentClasses = computed(() => { const color = colors[props.variant]; const size = props.variant === 'back' ? 'text-sm' : sizes[props.size]; return [color, size].join(' '); }); const isDisabled = computed(() => props.variant === 'disabled'); return (_ctx, _cache) => { return _openBlock(), _createBlock(_resolveDynamicComponent(_unref(currentTag)), { class: _normalizeClass([\"inline-flex shrink-0 items-center justify-center rounded-md text-center\", _unref(currentClasses)]), disabled: _unref(isDisabled) }, { default: _withCtx(() => [_renderSlot(_ctx.$slots, \"default\")]), _: 3 }, 8, [\"class\", \"disabled\"]); }; } });\n","import { defineComponent as _defineComponent } from 'vue';\nimport { resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\";\nconst _hoisted_1 = { class: \"mt-0.5 w-full break-words\" };\nexport default /*#__PURE__*/ _defineComponent({ __name: 'base-alert', props: { icon: { default: 'alert' }, showCloseButton: { type: Boolean, default: false }, color: { default: 'pink' } }, emits: [\"closeAlert\"], setup(__props) { const props = __props; return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); return _openBlock(), _createElementBlock(\"div\", { class: _normalizeClass([\"flex items-start gap-3 rounded-xl px-3 py-6 text-sm md:rounded-lg md:px-4 md:text-base\", __props.color === 'pink' ? 'bg-hg-pink/20 text-hg-pink' : 'bg-white/[.15] text-amber-500']) }, [_createElementVNode(\"div\", { class: _normalizeClass([\"flex h-7 items-center border-l-4 pl-3\", __props.color === 'pink' ? 'border-hg-pink' : 'border-amber-500']) }, [_createVNode(_component_inline_svg, { src: require(`assets/images/icons/${props.icon}.svg`), class: \"h-6 w-6 fill-current\" }, null, 8, [\"src\"])], 2), _createElementVNode(\"div\", _hoisted_1, [_renderSlot(_ctx.$slots, \"default\")]), __props.showCloseButton ? (_openBlock(), _createElementBlock(\"button\", { key: 0, onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('closeAlert')) }, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/close.svg'), class: \"h-6 w-6 fill-current\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)], 2); }; } });\n","import script from \"./base-alert.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-alert.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, renderSlot as _renderSlot, mergeProps as _mergeProps, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createBlock as _createBlock, vShow as _vShow, withDirectives as _withDirectives } from \"vue\";\nconst _hoisted_1 = [\"for\"];\nconst _hoisted_2 = { key: 0, class: \"-ml-0.5 text-hg-pink\" };\nconst _hoisted_3 = { class: \"relative flex\" };\nconst _hoisted_4 = [\"id\", \"value\", \"placeholder\", \"name\", \"type\", \"disabled\"];\nconst __default__ = { inheritAttrs: false };\nimport { useField } from 'vee-validate';\nimport { useAttrs, watch } from 'vue';\nexport default /*#__PURE__*/ _defineComponent({ ...__default__, __name: 'base-input', props: { type: { default: 'text' }, modelValue: { default: undefined }, label: null, placeholder: { default: undefined }, name: null, required: { type: Boolean }, labelHint: { default: undefined }, style: { default: 'white' }, disabled: { type: Boolean } }, emits: [\"update:modelValue\"], setup(__props, { emit }) {\n const props = __props;\n const { meta, value: inputValue, errorMessage, handleBlur, handleChange } = useField(props.name, undefined, { initialValue: props.modelValue });\n watch(inputValue, newVal => { if (newVal === props.modelValue) {\n return;\n } emit('update:modelValue', newVal); });\n watch(() => props.modelValue, newModel => { if (newModel === inputValue.value) {\n return;\n } inputValue.value = newModel; });\n const attrs = useAttrs();\n const attrsWithoutClass = Object.fromEntries(Object.entries(attrs).filter(([key, _]) => key !== 'class'));\n const labelClasses = { black: 'text-black', white: 'text-zinc-50' };\n const inputClasses = { black: 'bg-zinc-50 border border-black', white: 'bg-white text-black ' };\n return (_ctx, _cache) => {\n const _component_inline_svg = _resolveComponent(\"inline-svg\");\n return _openBlock(), _createElementBlock(\"div\", { class: _normalizeClass([\"flex w-full flex-col\", _unref(attrs)['class']]) }, [!!__props.label ? (_openBlock(), _createElementBlock(\"label\", { key: 0, for: __props.name, class: _normalizeClass([\"font-bold\", labelClasses[__props.style]]) }, [_createTextVNode(_toDisplayString(__props.label) + \" \", 1), __props.required ? (_openBlock(), _createElementBlock(\"span\", _hoisted_2, \" * \")) : _createCommentVNode(\"\", true)], 10, _hoisted_1)) : _createCommentVNode(\"\", true), _createElementVNode(\"div\", _hoisted_3, [_renderSlot(_ctx.$slots, \"before\"), _createElementVNode(\"input\", _mergeProps(_unref(attrsWithoutClass), { id: __props.name, value: _unref(inputValue), placeholder: __props.placeholder, name: __props.name, type: __props.type, disabled: __props.disabled, class: [\"mt-1 h-10 w-full rounded-lg border-0 bg-white px-4 text-black\", [{ 'border border-hg-pink': !!_unref(errorMessage) && _unref(meta).touched, 'rounded-l-none': _ctx.$slots.before, 'bg-gray-300 opacity-75': __props.disabled }, inputClasses[__props.style]]], onInput: _cache[0] || (_cache[0] = //@ts-ignore\n (...args) => _unref(handleChange) && _unref(handleChange)(...args)), onBlur: _cache[1] || (_cache[1] = //@ts-ignore\n (...args) => _unref(handleBlur) && _unref(handleBlur)(...args)) }), null, 16, _hoisted_4), !!_unref(errorMessage) ? (_openBlock(), _createBlock(_component_inline_svg, { key: 0, src: require('assets/images/icons/error-circle.svg'), class: \"absolute right-2 top-2 ml-2 h-7 w-7 fill-current text-hg-pink\" }, null, 8, [\"src\"])) : _createCommentVNode(\"\", true)]), _withDirectives(_createElementVNode(\"p\", { class: \"mt-1 text-right text-xs text-hg-pink md:col-span-2\" }, _toDisplayString(_unref(errorMessage)), 513), [[_vShow, _unref(errorMessage)]])], 2);\n };\n } });\n","import script from \"./base-input.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./base-input.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\n","import { render } from \"./base-notice-bar.vue?vue&type=template&id=bbb1377c\"\nconst script = {}\n\nimport exportComponent from \"/tmp/build_6638a752/node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { api } from './index';\nexport const orderReportsApi = { create(orderReport) { const path = '/api/internal/order_reports'; return api({ method: 'post', url: path, data: orderReport }).then(response => response.data); } };\n","import { defineComponent as _defineComponent } from 'vue';\nimport { unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, withCtx as _withCtx, createSlots as _createSlots, createBlock as _createBlock } from \"vue\";\nconst _hoisted_1 = [\"src\"];\nconst _hoisted_2 = { class: \"flex flex-col items-center space-y-4 text-black\" };\nconst _hoisted_3 = { class: \"flex flex-col justify-center space-y-4\" };\nconst _hoisted_4 = { class: \"rounded bg-slate-50 p-4\" };\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"cancel\", class: \"text-sm font-bold\" }, \" Cancelar pedido \", -1);\nconst _hoisted_6 = { class: \"rounded bg-slate-50 p-4\" };\nconst _hoisted_7 = { for: \"contact\", class: \"text-sm font-bold\" };\nconst _hoisted_8 = { key: 0, class: \"flex flex-col\" };\nconst _hoisted_9 = { for: \"message\" };\nconst _hoisted_10 = { key: 0, class: \"mt-1 text-right text-xs text-hg-pink md:col-span-2\" };\nconst _hoisted_11 = { key: 1, class: \"text-sm\" };\nconst _hoisted_12 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Ocurrió un error al enviar tu mensaje. \", -1);\nconst _hoisted_13 = /*#__PURE__*/ _createElementVNode(\"p\", null, \"Inténtalo denuevo o contacta a equipo@haygas.cl\", -1);\nconst _hoisted_14 = [_hoisted_12, _hoisted_13];\nconst _hoisted_15 = { key: 2, class: \"flex h-max grow items-center justify-center\" };\nconst _hoisted_16 = [\"src\"];\nimport { ref, onMounted, watch, computed } from 'vue';\nimport { toTypedSchema } from '@vee-validate/yup';\nimport { object, string } from 'yup';\nimport { Field, useForm } from 'vee-validate';\nimport { useQuery, useQueryClient } from '@tanstack/vue-query';\nimport { orderReportsApi } from 'api/order-reports';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-report-modal', props: { isOpen: { type: Boolean }, orderId: null, distributorPhoneNumber: null, isDistributorOfficial: { type: Boolean }, communeName: null }, emits: [\"closeModal\"], setup(__props, { emit }) { const props = __props; const successMessageByReportType = { cancel: 'Tu pedido fue cancelado con éxito', contact: 'Nuestro equipo revisará tu mensaje para darte solución a la brevedad con tu distribuidor' }; const messageLabelByReportType = { cancel: 'Motivo de cancelación', contact: 'Ingresa un mensaje para tu distribuidor asignado' }; const inputPlaceholderByReportType = { cancel: 'Ejem: Debo salir urgente', contact: 'Ejem: Mi pedido está atrasado, ¿Dónde viene?' }; const reportType = ref(); const formRules = toTypedSchema(object().shape({ reportType: string().required('Selecciona qué quieres reportar').oneOf(['contact', 'cancel'], 'Selecciona qué quieres reportar'), message: string().when('reportType', { is: reportTypeYup => reportTypeYup === 'cancel', then: s => s.required('Tienes que dejar un motivo de cancelación') }).when('reportType', { is: reportTypeYup => reportTypeYup === 'contact', then: s => s.required('Tienes que ingresar un mensaje') }) })); const { meta, validate, values, errors } = useForm({ validationSchema: formRules }); const reportFormText = computed(() => { if (reportType.value === 'contact') {\n return `Mensaje de pedido *HAY Gas!* ID ${props.orderId}, Comuna ${props.communeName}:\\n\\n*${values.message}*`;\n } return ''; }); const whatsappUrl = computed(() => { const baseUrl = `https://wa.me/569${props.distributorPhoneNumber}`; const text = encodeURIComponent(reportFormText.value); return `${baseUrl}?text=${text}`; }); function getParamsFromUrl() { const urlParams = new URLSearchParams(window.location.search); const reportTypeParam = urlParams.get('report-type'); const sendParam = urlParams.get('send'); if (reportTypeParam) {\n values.reportType = reportType.value = reportTypeParam;\n } return { sendParam }; } const { isSuccess, refetch, isFetching, error } = useQuery(['orderReport', props.orderId], () => orderReportsApi.create({ orderId: props.orderId, reportType: values.reportType, message: values.message }), { enabled: false, retry: 2 }); async function handleSubmit() { validate(); if (meta.value.valid) {\n reportType.value = values.reportType;\n await refetch();\n } } onMounted(() => { const { sendParam } = getParamsFromUrl(); if (sendParam === 'true') {\n handleSubmit();\n } }); const queryClient = useQueryClient(); function updateUrlParams(type) { const url = new URL(window.location.href); url.searchParams.set('report-type', type); window.history.replaceState({}, '', url); } const title = computed(() => { if (isSuccess.value) {\n return '¡Gracias!';\n } return '¿Qué tipo de mensaje deseas enviar?'; }); const isButtonDisabled = computed(() => isFetching.value); const contactOptionText = computed(() => { if (props.isDistributorOfficial) {\n return ' Contactar a distribuidor';\n } return ' Contacta al distribuidor por WhatsApp'; }); const showWhatsAppIcon = computed(() => { const hasReportType = !!reportType.value; const isContactType = reportType.value === 'contact'; const isNotSuccess = !isSuccess.value; const isNotDistributorOfficial = !props.isDistributorOfficial; return hasReportType && isContactType && isNotSuccess && isNotDistributorOfficial; }); const buttonText = computed(() => { if (isSuccess.value) {\n return 'Aceptar';\n } if (reportType.value === 'contact') {\n if (!props.isDistributorOfficial) {\n return 'Ir a enviar por WhatsApp';\n }\n return 'Enviar mensaje a distribuidor';\n } if (reportType.value === 'cancel') {\n return 'Enviar mensaje a distribuidor';\n } return ''; }); const redirectToWhatsapp = computed(() => { if (reportType.value === 'contact' && !props.isDistributorOfficial && values.message) {\n return true;\n } return false; }); watch(values, newValue => { if (newValue.reportType) {\n reportType.value = newValue.reportType;\n updateUrlParams(newValue.reportType);\n } }); function closeModal() { reportType.value = undefined; emit('closeModal'); queryClient.resetQueries({ queryKey: ['orderReport', props.orderId] }); } return (_ctx, _cache) => { const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_modal = _resolveComponent(\"base-modal\"); return _openBlock(), _createBlock(_component_base_modal, { open: __props.isOpen, \"is-first-button-disabled\": _unref(isButtonDisabled), \"first-button-url\": _unref(redirectToWhatsapp) === false ? undefined : _unref(whatsappUrl), onClose: closeModal, onFirstButtonClick: _cache[1] || (_cache[1] = $event => _unref(isSuccess) ? closeModal() : handleSubmit()) }, _createSlots({ title: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(title)), 1)]), image: _withCtx(() => [_createElementVNode(\"img\", { src: require('assets/images/icons/question-mark-circle.svg'), class: \"h-20 w-20 fill-current text-hg-pink\" }, null, 8, _hoisted_1)]), _: 2 }, [!_unref(isSuccess) ? { name: \"description\", fn: _withCtx(() => [_createElementVNode(\"div\", _hoisted_2, [_createElementVNode(\"form\", { onSubmit: _cache[0] || (_cache[0] = _withModifiers($event => handleSubmit(), [\"prevent\"])) }, [_createElementVNode(\"div\", _hoisted_3, [_createElementVNode(\"div\", _hoisted_4, [_createVNode(_unref(Field), { id: \"cancel\", type: \"radio\", name: \"reportType\", value: \"cancel\" }), _hoisted_5]), _createElementVNode(\"div\", _hoisted_6, [_createVNode(_unref(Field), { id: \"contact\", type: \"radio\", name: \"reportType\", value: \"contact\" }), _createElementVNode(\"label\", _hoisted_7, _toDisplayString(_unref(contactOptionText)), 1)]), _unref(values).reportType === 'contact' || _unref(values).reportType === 'cancel' ? (_openBlock(), _createElementBlock(\"div\", _hoisted_8, [_createElementVNode(\"label\", _hoisted_9, _toDisplayString(messageLabelByReportType[_unref(values).reportType]), 1), _createVNode(_unref(Field), { name: \"message\", as: \"textarea\", rows: \"5\", placeholder: inputPlaceholderByReportType[_unref(values).reportType] }, null, 8, [\"placeholder\"]), _unref(errors).message ? (_openBlock(), _createElementBlock(\"p\", _hoisted_10, _toDisplayString(_unref(errors).message), 1)) : _createCommentVNode(\"\", true)])) : _createCommentVNode(\"\", true), !!_unref(error) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_11, _hoisted_14)) : _createCommentVNode(\"\", true), _unref(isFetching) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/loading.svg'), class: \"mr-2 h-6 animate-spin\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)])], 32)])]) } : { name: \"description\", fn: _withCtx(() => [_createElementVNode(\"div\", { class: \"flex flex-col items-center space-y-2\" }, [_createElementVNode(\"div\", { class: \"flex flex-col items-center\" }, [!!reportType.value ? (_openBlock(), _createElementBlock(\"p\", { key: 0 }, _toDisplayString(successMessageByReportType[reportType.value]), 1)) : _createCommentVNode(\"\", true)])])]) }, !!reportType.value ? { name: \"firstButtonTitle\", fn: _withCtx(() => [_createTextVNode(_toDisplayString(_unref(buttonText)) + \" \", 1), _unref(showWhatsAppIcon) ? (_openBlock(), _createElementBlock(\"img\", { key: 0, src: require('assets/images/whatsapp.svg'), class: \"ml-2 h-6\" }, null, 8, _hoisted_16)) : _createCommentVNode(\"\", true)]) } : undefined]), 1032, [\"open\", \"is-first-button-disabled\", \"first-button-url\"]); }; } });\n","import script from \"./order-report-modal.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-report-modal.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue';\nimport { createVNode as _createVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, unref as _unref, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createBlock as _createBlock, withModifiers as _withModifiers, normalizeClass as _normalizeClass, toDisplayString as _toDisplayString, Fragment as _Fragment } from \"vue\";\nconst _hoisted_1 = { class: \"mt-16 flex flex-col items-center justify-items-center space-y-12 px-6 text-white md:mt-20\" };\nconst _hoisted_2 = /*#__PURE__*/ _createElementVNode(\"div\", null, [/*#__PURE__*/ _createElementVNode(\"h1\", { class: \"font-display text-2xl md:text-4xl\" }, \" Seguimiento de pedidos \"), /*#__PURE__*/ _createElementVNode(\"p\", null, \"Ingresa tu número de celular para buscar el estado de tu último pedido\")], -1);\nconst _hoisted_3 = /*#__PURE__*/ _createElementVNode(\"label\", { for: \"phoneNumber\", class: \"text-white\" }, \" Número de teléfono \", -1);\nconst _hoisted_4 = { class: \"flex items-center justify-center space-x-2\" };\nconst _hoisted_5 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-1 flex w-14 items-center justify-center rounded-l-lg bg-slate-200 px-2 text-sm font-normal text-black\" }, \" +56 \", -1);\nconst _hoisted_6 = { key: 0, class: \"flex h-max grow items-center justify-center\" };\nconst _hoisted_7 = { class: \"mt-6 flex flex-col justify-center space-y-3 md:flex-row md:space-y-0 md:space-x-16\" };\nconst _hoisted_8 = /*#__PURE__*/ _createTextVNode(\" Limpiar búsqueda \");\nconst _hoisted_9 = /*#__PURE__*/ _createTextVNode(\" Buscar \");\nconst _hoisted_10 = { key: 0, class: \"flex flex-col items-center justify-center space-y-2\" };\nconst _hoisted_11 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-2xl font-bold\" }, \" ¡Ups! \", -1);\nconst _hoisted_12 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Lo sentimos, no econtramos ningún pedido con este número de teléfono. \", -1);\nconst _hoisted_13 = /*#__PURE__*/ _createElementVNode(\"p\", null, [/*#__PURE__*/ _createTextVNode(\" ¡Puedes hacer otro pedido \"), /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/\", class: \"text-hg-pink underline\" }, \"aquí\"), /*#__PURE__*/ _createTextVNode(\"! \")], -1);\nconst _hoisted_14 = [_hoisted_11, _hoisted_12, _hoisted_13];\nconst _hoisted_15 = { key: 1, class: \"flex items-start justify-center\" };\nconst _hoisted_16 = { class: \"flex flex-row space-x-2 md:flex-col md:space-y-4\" };\nconst _hoisted_17 = { class: \"flex flex-col items-center justify-center md:flex-row\" };\nconst _hoisted_18 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"grow border-l-2 border-dashed border-hg-neutral-500 md:w-1/12 md:border-t-2\" }, null, -1);\nconst _hoisted_19 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"grow border-l-2 border-dashed border-hg-neutral-500 md:w-1/12 md:border-t-2\" }, null, -1);\nconst _hoisted_20 = { class: \"flex flex-col items-start md:flex-row\" };\nconst _hoisted_21 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-base font-bold\" }, \" Programado \", -1);\nconst _hoisted_22 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Tu pedido está aceptado y programado. \", -1);\nconst _hoisted_23 = { class: \"font-bold\" };\nconst _hoisted_24 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Hora de entrega estimada: \", -1);\nconst _hoisted_25 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-base font-bold\" }, \" Recibido \", -1);\nconst _hoisted_26 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-start\" }, \" Hemos registrado de forma correcta tu pedido. \", -1);\nconst _hoisted_27 = { class: \"font-bold\" };\nconst _hoisted_28 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Hora de entrega estimada: \", -1);\nconst _hoisted_29 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-9 w-full border-b-2 border-dashed border-hg-neutral-800 md:w-1/12\" }, null, -1);\nconst _hoisted_30 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-base font-bold\" }, \" En camino \", -1);\nconst _hoisted_31 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" El distribuidor aceptó el pedido y se encuentra en camino. \", -1);\nconst _hoisted_32 = { key: 0, class: \"font-bold\" };\nconst _hoisted_33 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Hora de entrega actualizada: \", -1);\nconst _hoisted_34 = /*#__PURE__*/ _createElementVNode(\"div\", { class: \"mt-9 w-full border-b-2 border-dashed border-hg-neutral-800 md:w-1/12\" }, null, -1);\nconst _hoisted_35 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"whitespace-nowrap text-base font-bold\" }, \" Pedido entregado \", -1);\nconst _hoisted_36 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Tu pedido fue entregado con éxito \", -1);\nconst _hoisted_37 = { key: 0, class: \"font-bold\" };\nconst _hoisted_38 = { key: 2, class: \"flex flex-col items-center justify-center space-y-2\" };\nconst _hoisted_39 = /*#__PURE__*/ _createElementVNode(\"p\", { class: \"text-2xl font-bold\" }, \" ¡Ups! \", -1);\nconst _hoisted_40 = /*#__PURE__*/ _createElementVNode(\"p\", null, \" Lo sentimos, tu último pedido está cancelado. \", -1);\nconst _hoisted_41 = /*#__PURE__*/ _createElementVNode(\"p\", null, [/*#__PURE__*/ _createTextVNode(\" ¡Puedes volver a ingresar un nuevo pedido \"), /*#__PURE__*/ _createElementVNode(\"a\", { href: \"/\", class: \"text-hg-pink underline\" }, \"aquí\"), /*#__PURE__*/ _createTextVNode(\"! \")], -1);\nconst _hoisted_42 = [_hoisted_39, _hoisted_40, _hoisted_41];\nconst _hoisted_43 = { key: 3, class: \"flex flex-col items-center rounded-lg bg-hg-neutral-700 px-5 py-6 text-white\" };\nconst _hoisted_44 = /*#__PURE__*/ _createElementVNode(\"p\", null, [/*#__PURE__*/ _createTextVNode(\" Si tu pedido no ha llegado o tienes algún problema, \"), /*#__PURE__*/ _createElementVNode(\"b\", null, \"envía un mensaje a tu distribuidor asignado\"), /*#__PURE__*/ _createTextVNode(\": \")], -1);\nimport { computed, ref, onMounted } from 'vue';\nimport { useQuery, useQueryClient } from '@tanstack/vue-query';\nimport { toTypedSchema } from '@vee-validate/yup';\nimport { object, string } from 'yup';\nimport { useForm } from 'vee-validate';\nimport { ordersApi } from 'api/orders';\nimport TheHeader from './the-header.vue';\nimport OrderReportModal from './order-report-modal.vue';\nexport default /*#__PURE__*/ _defineComponent({ __name: 'order-tracking', setup(__props) { const modalOpen = ref(false); const deliverOrderParam = ref('true'); const formRules = toTypedSchema(object().shape({ phoneNumber: string().matches(/^\\d{9}$/, 'Ingresa un teléfono de 9 dígitos').required('Ingresa un número de teléfono') })); const { meta, validate, values, resetForm } = useForm({ validationSchema: formRules }); const { data: order, refetch, isFetching, error } = useQuery(['order'], () => ordersApi.search(values.phoneNumber), { enabled: false, retry: 2 }); const isReceived = computed(() => !!order.value && ['pending', 'ordering', 'error', 'scheduling'].includes(order.value.status)); const isOnItsWay = computed(() => { var _order$value; return ((_order$value = order.value) == null ? void 0 : _order$value.status) === 'done'; }); const isDelivered = computed(() => { var _order$value2; return ((_order$value2 = order.value) == null ? void 0 : _order$value2.status) === 'delivered'; }); const isCancelled = computed(() => { var _order$value3; return ((_order$value3 = order.value) == null ? void 0 : _order$value3.status) === 'canceled'; }); const activateFirstStep = computed(() => isReceived.value || isOnItsWay.value || isDelivered.value); const activateReceivedStep = computed(() => { var _order$value4; return ((_order$value4 = order.value) == null ? void 0 : _order$value4.deliverySchedule) === 'immediate' && activateFirstStep.value; }); const activateScheduledStep = computed(() => { var _order$value5; return ((_order$value5 = order.value) == null ? void 0 : _order$value5.deliverySchedule) === 'scheduled' && activateFirstStep.value; }); const activateOnItsWayStep = computed(() => isOnItsWay.value || isDelivered.value); const activateDeliveredStep = computed(() => isDelivered.value); const activeCircleClass = 'bg-hg-neutral-400 text-white'; const inactiveCircleClass = 'bg-hg-neutral-700 text-hg-neutral-400'; const queryClient = useQueryClient(); function deleteUrlParamsWithoutPhoneNumber() { const url = new URL(window.location.href); url.searchParams.delete('report'); url.searchParams.delete('report-type'); url.searchParams.delete('send'); url.searchParams.delete('deliver-order'); window.history.replaceState({}, '', url); } function deleteUrlParamsWithPhoneNumber() { const url = new URL(window.location.href); url.searchParams.delete('phone-number'); window.history.replaceState({}, '', url); } function resetSearch() { queryClient.resetQueries({ queryKey: ['order'] }); resetForm(); deleteUrlParamsWithPhoneNumber(); } function getParamsFromUrl() { const urlParams = new URLSearchParams(window.location.search); values.phoneNumber = urlParams.get('phone-number') || ''; modalOpen.value = urlParams.get('report') === 'true'; deliverOrderParam.value = urlParams.get('deliver-order'); if (!values.phoneNumber) {\n resetSearch();\n } } function updateUrl() { const url = new URL(window.location.href); url.searchParams.set('phone-number', values.phoneNumber); window.history.replaceState({}, '', url); } async function handleSubmit() { queryClient.resetQueries({ queryKey: ['order'] }); validate(); if (meta.value.valid) {\n await refetch();\n updateUrl();\n } } async function updateOrderStatus() { if (deliverOrderParam.value === 'true' && order.value) {\n var _order$value6;\n await ordersApi.update((_order$value6 = order.value) == null ? void 0 : _order$value6.id, 'delivered');\n deliverOrderParam.value = 'false';\n await refetch();\n } } function closeOrderReportModal() { deleteUrlParamsWithoutPhoneNumber(); modalOpen.value = false; refetch(); } function openOrderReportModal() { const url = new URL(window.location.href); modalOpen.value = true; url.searchParams.set('report', modalOpen.value ? 'true' : 'false'); window.history.replaceState({}, '', url); } onMounted(async () => { getParamsFromUrl(); if (values.phoneNumber) {\n await handleSubmit();\n } await updateOrderStatus(); deleteUrlParamsWithoutPhoneNumber(); }); return (_ctx, _cache) => { var _unref2, _unref3, _unref4, _unref5; const _component_base_input = _resolveComponent(\"base-input\"); const _component_inline_svg = _resolveComponent(\"inline-svg\"); const _component_base_button = _resolveComponent(\"base-button\"); return _openBlock(), _createElementBlock(_Fragment, null, [_createElementVNode(\"div\", null, [_createVNode(TheHeader)]), _createElementVNode(\"div\", _hoisted_1, [_hoisted_2, _createElementVNode(\"div\", null, [_createElementVNode(\"form\", { onSubmit: _cache[1] || (_cache[1] = _withModifiers($event => handleSubmit(), [\"prevent\"])) }, [_hoisted_3, _createElementVNode(\"div\", _hoisted_4, [_createVNode(_component_base_input, { name: \"phoneNumber\", placeholder: \"993882732\" }, { before: _withCtx(() => [_hoisted_5]), _: 1 }), _unref(isFetching) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_6, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/loading.svg'), class: \"mr-2 h-6 animate-spin\" }, null, 8, [\"src\"])])) : _createCommentVNode(\"\", true)]), _createElementVNode(\"div\", _hoisted_7, [!!_unref(meta).valid ? (_openBlock(), _createBlock(_component_base_button, { key: 0, class: \"self-center\", variant: _unref(isFetching) ? 'secondaryDisabled' : 'secondary', size: \"md\", type: \"button\", disabled: _unref(isFetching), onClick: _cache[0] || (_cache[0] = $event => resetSearch()) }, { default: _withCtx(() => [_hoisted_8]), _: 1 }, 8, [\"variant\", \"disabled\"])) : _createCommentVNode(\"\", true), _createVNode(_component_base_button, { id: \"search-prices-button\", class: \"self-center\", variant: _unref(isFetching) ? 'disabled' : 'primary', type: \"submit\", disabled: _unref(isFetching) }, { default: _withCtx(() => [_hoisted_9]), _: 1 }, 8, [\"variant\", \"disabled\"])])], 32)]), !!_unref(error) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, _hoisted_14)) : _createCommentVNode(\"\", true), !!_unref(order) && !_unref(isCancelled) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_15, [_createElementVNode(\"div\", _hoisted_16, [_createElementVNode(\"div\", _hoisted_17, [_createElementVNode(\"div\", { class: _normalizeClass([\"flex h-12 w-12 items-center justify-center rounded-full p-3.5\", _unref(activateFirstStep) ? activeCircleClass : inactiveCircleClass]) }, [_createVNode(_component_inline_svg, { class: \"fill-current\", src: require('assets/images/icons/check.svg') }, null, 8, [\"src\"])], 2), _hoisted_18, _createElementVNode(\"div\", { class: _normalizeClass([\"flex h-12 w-12 items-center justify-center rounded-full p-3.5\", _unref(activateOnItsWayStep) ? activeCircleClass : inactiveCircleClass]) }, [_createVNode(_component_inline_svg, { class: \"fill-current\", src: require('assets/images/icons/check.svg') }, null, 8, [\"src\"])], 2), _hoisted_19, _createElementVNode(\"div\", { class: _normalizeClass([\"flex h-12 w-12 items-center justify-center rounded-full p-3.5\", _unref(activateDeliveredStep) ? activeCircleClass : inactiveCircleClass]) }, [_createVNode(_component_inline_svg, { class: \"fill-current\", src: require('assets/images/icons/check.svg') }, null, 8, [\"src\"])], 2)]), _createElementVNode(\"div\", _hoisted_20, [_unref(order).deliverySchedule === 'scheduled' ? (_openBlock(), _createElementBlock(\"div\", { key: 0, class: _normalizeClass([\"flex flex-col pr-10 text-sm font-normal\", _unref(activateScheduledStep) ? 'text-white' : 'text-hg-neutral-400']) }, [_hoisted_21, _hoisted_22, _createElementVNode(\"div\", _hoisted_23, [_hoisted_24, _createElementVNode(\"p\", null, _toDisplayString(_unref(order).deliveryRangeWithReceivedStatus), 1)])], 2)) : (_openBlock(), _createElementBlock(\"div\", { key: 1, class: _normalizeClass([\"flex flex-col text-sm font-normal\", _unref(activateReceivedStep) ? 'text-white' : 'text-hg-neutral-400']) }, [_hoisted_25, _hoisted_26, _createElementVNode(\"div\", _hoisted_27, [_hoisted_28, _createElementVNode(\"p\", null, _toDisplayString(_unref(order).deliveryRangeWithReceivedStatus), 1)])], 2)), _hoisted_29, _createElementVNode(\"div\", { class: _normalizeClass([\"flex flex-col text-sm font-normal md:pr-16 md:text-center\", [_unref(activateOnItsWayStep) ? 'text-white' : 'pb-10 text-hg-neutral-400 md:pb-0']]) }, [_hoisted_30, _hoisted_31, _unref(activateOnItsWayStep) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_32, [_hoisted_33, _createElementVNode(\"p\", null, _toDisplayString(_unref(order).deliveryRangeWithAcceptedStatus), 1)])) : _createCommentVNode(\"\", true)], 2), _hoisted_34, _createElementVNode(\"div\", { class: _normalizeClass([\"flex flex-col text-sm font-normal md:text-end\", _unref(activateDeliveredStep) ? 'text-white' : 'text-hg-neutral-400']) }, [_hoisted_35, _hoisted_36, _unref(activateDeliveredStep) ? (_openBlock(), _createElementBlock(\"p\", _hoisted_37, \" Fecha: \" + _toDisplayString(_unref(order).deliveryDate), 1)) : _createCommentVNode(\"\", true)], 2)])])])) : _createCommentVNode(\"\", true), !!_unref(order) && _unref(isCancelled) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_38, _hoisted_42)) : _createCommentVNode(\"\", true), !!_unref(order) ? (_openBlock(), _createElementBlock(\"div\", _hoisted_43, [_createVNode(_component_inline_svg, { src: require('assets/images/icons/question-mark-circle.svg'), class: \"h-8 w-8\" }, null, 8, [\"src\"]), _hoisted_44, _createElementVNode(\"button\", { class: \"mt-1 text-sm text-hg-pink underline\", type: \"button\", onClick: _cache[2] || (_cache[2] = $event => openOrderReportModal()) }, \" Enviar mensaje al distribuidor \"), _createVNode(OrderReportModal, { \"is-open\": modalOpen.value, \"order-id\": (_unref2 = _unref(order)) == null ? void 0 : _unref2.id, \"distributor-phone-number\": (_unref3 = _unref(order)) == null ? void 0 : _unref3.distributorPhoneNumber, \"is-distributor-official\": (_unref4 = _unref(order)) == null ? void 0 : _unref4.isOfficial, \"commune-name\": (_unref5 = _unref(order)) == null ? void 0 : _unref5.communeName, onCloseModal: _cache[3] || (_cache[3] = $event => closeOrderReportModal()) }, null, 8, [\"is-open\", \"order-id\", \"distributor-phone-number\", \"is-distributor-official\", \"commune-name\"])])) : _createCommentVNode(\"\", true)])], 64); }; } });\n","import script from \"./order-tracking.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./order-tracking.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { es } from 'yup-locales';\nimport { setLocale } from 'yup';\nsetLocale(es);\n","export const esLocale = {\n order: {\n paymentMethod: {\n cash: 'Efectivo',\n card: 'Débito/Crédito',\n coupon: 'Cupón vale',\n },\n },\n};\n","import { esLocale } from './es';\nconst messages = { es: esLocale };\nexport const Locales = { messages };\n","import { createApp } from 'vue';\nimport { createI18n } from 'vue-i18n';\nimport { createPinia } from 'pinia';\nimport piniaPluginPersistedstate from 'pinia-plugin-persistedstate';\nimport { VueQueryPlugin } from '@tanstack/vue-query';\nimport { Form, FieldArray } from 'vee-validate';\nimport InlineSvg from 'vue-inline-svg';\nimport FloatingVue from 'floating-vue';\nimport 'floating-vue/dist/style.css';\nimport './css/application.css';\nimport TheFooter from './components/the-footer.vue';\nimport TheHeader from './components/the-header.vue';\nimport HomeView from './components/home-view.vue';\nimport OrderView from './components/order-view.vue';\nimport ReferView from './components/refer-view.vue';\nimport RepeatOrderView from './components/repeat-order-view.vue';\nimport BaseSelect from './components/base-select.vue';\nimport BaseButton from './components/base-button.vue';\nimport BaseAlert from './components/base-alert.vue';\nimport BaseInput from './components/base-input.vue';\nimport BaseNoticeBar from './components/base-notice-bar.vue';\nimport BaseModal from './components/base-modal.vue';\nimport BaseStepper from './components/base-stepper.vue';\nimport OrderTracking from './components/order-tracking.vue';\nimport './locales/yup';\nimport { Locales } from './locales/locales';\nconst i18n = createI18n({ legacy: false, locale: 'es', fallbackLocale: 'es', messages: Locales.messages }); // eslint-disable-next-line max-statements\ndocument.addEventListener('DOMContentLoaded', () => { const app = createApp({ components: { TheFooter, TheHeader, HomeView, OrderView, ReferView, RepeatOrderView, OrderTracking } }); const pinia = createPinia(); app.component('VForm', Form); app.component('VFieldArray', FieldArray); app.component('BaseSelect', BaseSelect); app.component('BaseButton', BaseButton); app.component('BaseInput', BaseInput); app.component('InlineSvg', InlineSvg); app.component('BaseAlert', BaseAlert); app.component('BaseNoticeBar', BaseNoticeBar); app.component('BaseModal', BaseModal); app.component('BaseStepper', BaseStepper); app.use(FloatingVue); app.use(pinia); app.use(i18n); app.use(VueQueryPlugin); pinia.use(piniaPluginPersistedstate); app.mount('#vue-app'); return app; });\n"],"names":["map","webpackContext","req","id","webpackContextResolve","__webpack_require__","o","e","Error","code","keys","Object","resolve","module","exports","class","href","_createElementVNode","target","rel","script","_createElementBlock","src","require","alt","_hoisted_5","scrollToElement","element","scrollTo","scrollIntoView","behavior","block","key","__name","props","menuItems","default","undefined","setup","__props","showMobileMenu","ref","selectedItem","gtmButtonsId","selectItem","index","item","label","value","window","location","_ctx","_cache","_component_base_notice_bar","_","kebabCase","onClick","$event","useOrder","order","orderItems","communeWithHayGasPrice","isHayGasOrder","gasItemsCompanyPrices","prefillRegionId","prefillCommuneId","prefillEmail","prefillDeliverySchedule","skipPersonalForm","pesosHaygas","setOrder","orderData","setOrderItems","orderItemsData","setIsHayGasOrder","isHayGasOrderData","setGasItemsCompanyPrices","gasItemsCompanyPricesData","setPrefillRegionId","regionId","setPrefillCommuneId","communeId","setPrefillEmail","email","resetOrder","resetPrefilled","setPrefillDeliverySchedule","delierySchedule","setPesosHaygas","pesosHaygasData","setCommuneWithHayGasPrice","hasHayGasPrice","setSkipPersonalForm","skip","clearOrder","persist","storage","sessionStorage","api","transformRequest","data","decamelizeKeys","transformResponse","camelizeKeys","headers","meta","document","querySelector","token","getAttribute","csrfToken","paramsSerializer","params","activeParams","entries","filter","URLSearchParams","toString","formatQueryParams","method","url","then","response","_response$data","communes","deliveryScheduleApi","communesDistributorIds","deliverySchedules","show","distributorId","weekDay","_response$data2","deliverySchedule","getStgoHourFromDate","date","toLocaleString","timeZone","hour","minute","hour12","getCurrentDateInfo","dateTime","Date","getDay","stgoHour","updateDateTime","intervalId","onMounted","setInterval","onUnmounted","clearInterval","useDeliveryScheduleHours","distributorOpeningHour","computed","openingHour","distributorClosingHour","closingHour","offsetHourSantiago","addMinutes","beforeDistributorOpeningHour","afterDistributorClosingHour","outOfDeliveryTime","currency","Intl","NumberFormat","style","currencyDisplay","useGrouping","format","distributor","communeCompanyItem","lowestPrice","hayGasTablePrice","isHayGasItem","_props$communeCompany","hayGas","orderItemInfo","_props$communeCompany2","_props$communeCompany3","_props$communeCompany4","quantity","size","gasItemReportId","userPrice","tablePrice","anchorAttrs","startsWith","isHighlight","_props$communeCompany5","isLowestPrice","handleDistributorSelectWithTimeCheck","inject","clickOrderItem","event","distributorCompanyName","_component_VTooltip","_component_inline_svg","distance","popper","communeCompanyItems","distributors","companiesNames","showPrev","type","Boolean","showNext","emits","emit","_minBy","hayGasInfo","hayGasItem","find","existHayGasPrice","getCommuneCompanyItem","companyName","getDistributor","name","distributorName","getDistributorName","gasItemDistributor","getDistributorId","getDistributorUrl","buyUrl","modalState","isBeforeDistributorOpeningHour","cheapestCommuneCompanyItem","cheapestDistributor","distributorBuyUrl","officialDistributorUrl","cheapestPrice","modalIcon","modalTitle","firstButtonModalUrl","firstButtonTitle","secondButtonModalUrl","secondButtonTitle","modalMessage","officialDistributor","emptyModal","currentModal","isCheapestCommuneCompanyItemHayGas","_props$cheapestCommun","closeModal","setOrderItemInfo","checkDistributorTime","cheapestOrderItemInfo","_props$cheapestCommun2","_props$cheapestCommun3","_props$cheapestCommun4","clickCurrentGasItemOption","payload","clickCheapestGasItemOption","gasCompanyName","watch","newModalState","_component_base_modal","open","onClose","onFirstButtonClick","onSecondButtonClick","title","image","description","fn","_renderSlot","allCompanyNames","uniqueCompanyNames","haygasIndex","indexOf","splice","gasGroupedBySize","groupedGas","group","cheapestCommuneCompanyItemBySize","minPrice","Math","min","d","_cheapestCommuneCompa","gasSizes","Number","currentSizeIndex","touchstartX","touchendX","orderStore","distributorsDeliverySchedules","distributorsDeliverySchedule","useQuery","useIndexDeliverySchedules","Set","communesDistributorId","nextSizeIndex","maxIndex","length","prevSizeIndex","handleTouchStart","changedTouches","screenX","handleTouchEnd","abs","setDistributorBuyUrl","gasItemCompanyPricesGroupedBySize","forEach","items","parseInt","prices","hayGasPrice","companyTablePrice","gasCompanyId","companyItem","getGasItemCompanyPricesGroupedBySize","checkOrderItemPrice","orderItem","isLowestPriceOfCategory","preventDefault","distributorUrl","_distributorsDelivery","setPrefillOrderItem","checkOfficialDistributor","provide","defaultGasIndex","sizes","gasItemIconSize","onTouchstart","onTouchend","_getCommuneCompanyIte","getOrderItemInfo","onPrevious","onNext","usersApi","phoneNumber","user","create","createRefereeUser","refereeUser","getUserWithReferralCode","validateReferLinkForUser","referralCode","sendRegistrationOtp","otpCode","registrationOtp","success","referLink","isCourier","showCopyText","textToReffer","copyToClipboard","navigator","clipboard","writeText","setTimeout","shareOnWhatsApp","whatsappUrl","encodeURIComponent","phoneNumberIsSet","userLink","loading","error","formRules","shape","matches","required","validationSchema","formValues","clearPhoneNumber","async","getUserReferralLink","courierParam","courierId","checkPhoneNumber","isNaN","_component_base_input","_component_base_button","_component_v_form","modelValue","placeholder","maxlength","disabled","onKeypress","before","variant","valid","isOpen","inputValidation","confirmEmail","$emit","_hoisted_15","regions","communeFormItems","of","moreThan","showAlert","subscriptions","regionCommunes","isEmailConfirmationModalOpened","getCommunes","sort","prev","curr","Collator","compare","createSubscription","values","resetForm","subscription","communeIds","communeFormItem","showDeleteButton","fieldsLength","_component_base_select","_component_v_field_array","_component_base_alert","handleSubmit","fields","push","remove","update","formSubscription","options","selectRegion","icon","onCloseAlert","communeName","onCloseModal","onSubmitForm","_hoisted_2","_hoisted_3","_createVNode","frequentQuestions","showMoreButton","isShowingMore","filteredFrequentQuestions","slice","frequentQuestion","as","question","answer","usersTestimonies","currentTestimonyIndex","currentTestimony","changeTestimony","direction","commune","numberOfOrders","testimony","userTestimony","position","_withScopeId","n","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","_hoisted_29","_hoisted_30","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_40","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","_hoisted_45","_hoisted_46","_hoisted_47","_hoisted_48","_hoisted_49","_hoisted_50","gasCompanies","initialRegion","initialCommune","initialCommuneCompanyItems","slowDeliveryMode","selectorsDiv","refferDiv","subscriptionDiv","missionDiv","tipsDiv","frequentQuestionsDiv","distributorDiv","selectedRegion","selectedCommuneId","currentCommune","currentRegion","gasTableDiv","isCommuneCompanyItemsEmpty","showTable","setCurrentCommuneAndRegion","getCommuneCompanyItems","getGasItems","_currentRegion$value","_currentCommune$value","URL","pathname","slug","history","replaceState","updateUrl","nextTick","newCommuneCompanyItems","some","variantSearchButton","showSlowDeliveryModal","closeSlowDeliveryModal","gasCompaniesNames","ref_key","modelModifiers","number","resetGasTable","onSubscriptionCreated","handleSubcriptionCreated","ordersApi","search","orderId","status","repeat","obfuscatedOrderId","paymentMethod","deliverAt","deliveryAddressesApi","deliveryAddress","path","gasItems","for","download","_orderStore$order","_orderStore$order2","_orderStore$order3","_orderStore$order4","_orderStore$order5","_orderStore$order6","_orderStore$order7","_orderStore$order8","_orderStore$order9","_orderStore$order10","_orderStore$order11","_orderStore$order12","_orderStore$order13","_orderStore$order14","_orderStore$order15","errorsAlert","rut","firstName","lastName","address","googleAddressInformation","communeAddress","streetNumber","apartment","addressReference","termsAndConditions","addressError","discountValue","googleMapsAutocomplete","VueGoogleAutocomplete","usingExistingClient","addressErrorType","ADDRESS_ERRORS","urlParams","get","avoidGetClientParam","when","is","s","orderIdYup","notRequired","max","oneOf","test","setFieldValue","errors","validate","region","_communes$value$find","regionName","_props$regions$find","createOrder","setAddress","newVal","getAddressData","addressData","place","_address$value$match","dataStreetNumber","match","at","possibleCommunes","address_components","component","types","includes","getPossibleCommunesFromPlace","JSON","stringify","leinsteinDistanceCondition","conditionsApproved","conditionKey","errorType","checkCommuneConditions","possibleCommune","isSameCommune","toLowerCase","long_name","resetVueGoogleAutocompleteInput","clear","clearOrderFormData","settedPhoneNumber","clearOrderData","tryToUpdateUrlWithNewDistributor","_user$distributorUrl","filteredGasItems","gasItem","_orderStore$orderItem","userDistributorName","split","currentDistributorName","shouldUpdateUrl","newDistributorName","newUrl","str","queryString","replace","join","setNewUrlWithNewDistributorAndPhoneNumber","getClientByPhoneNumber","orders","responseOrder","validGoogleAddressInformation","obfuscatedOrder","submitPersonalInformationForm","now","errorText","country","onPlacechanged","onFocus","onInputChange","initialQuantity","totalPrice","updateQuantity","newQuantity","availableGasItems","officialDistributorGasItemsPrices","orderItemSelectedByUser","reduce","sum","addedOrderItems","averageDeliveryTime","addItemsToOrder","getOrderItemQuantity","orderItemsToSearch","getOrderItemUserPrice","_orderItemSelectedByU","lastGasItemReportId","isGasItemSelectedByUser","_officialDistributorG","officialDistributorPrice","currentPrice","calculatePrice","getUserPrice","communeGasItems","getAvailableGasItemsFromAllItems","distributorIsOfficial","acc","getOfficialDistributorGasItemsPrices","distributorPrice","_unref2","_unref3","_unref4","_unref5","_unref6","_unref7","_unref8","_unref9","_unref10","_orderItems$value$ind","color","OPTIONS","filterOptionsByDistributorHours","distributorDeliverySchedule","option","start","end","validStart","slotTime","distributorTime","distributorTimeHour","distributorTimeMinute","slotTimeHour","slotTimeMinute","isMoreThanOneHourDiff","isTimeLeftToBuy","currentTime","_hoisted_51","_hoisted_52","_hoisted_53","_hoisted_54","_hoisted_55","_hoisted_56","_hoisted_57","_hoisted_58","_hoisted_59","_hoisted_60","_hoisted_61","_hoisted_62","_hoisted_63","_hoisted_64","_hoisted_65","_hoisted_66","_hoisted_67","_hoisted_68","_hoisted_69","_hoisted_70","isCourierOrder","deliveryTime","orderSchedule","currentDateTime","currentWeekDay","tomorrowWeekDay","distributorDeliveryScheduleForTomorrow","day","enabled","useGetDeliverySchedule","optionsFilteredByCurrentTime","tomorrowsDelivery","slotOptions","slotOptionsNames","deliveryDate","addDays","toLocaleDateString","scheduleAlertText","selectedSchedule","updateOrderPaymentMethod","_unref11","_unref12","_unref13","_unref14","_unref15","_unref16","selected","createdOrderId","t","totalPriceWithoutDiscount","trackdesk","_props$orderData","_props$orderData2","_props$orderData3","_props$orderData4","_props$orderData5","_props$orderData6","_props$orderData7","_props$orderData8","_props$orderData9","_props$orderData10","_props$orderData11","_props$orderData12","step","topDiv","loadingOrder","deliveryAddressId","steps","createdOrder","createdOrderItems","companyNameTitle","nextStep","handleBackButton","orderResponse","orderForm","orderItemsAttributes","discountAmount","handleSuccessConfirmationForm","createUser","deliveryAddressResponse","existingOrderId","createDeliveryAddress","isLastStep","_component_base_stepper","onSuccess","couriersApi","courierCode","referredPhoneNumber","otp","otpRefs","submitOtp","localStorage","getItem","focus","ref_for","onInput","moveToNext","onKeydown","handleBackspace","currentStep","userReward","userRewardFormatted","courierPhoneNumber","showIsCourierBox","schema","otherwise","sendWhatsappWithOtp","floor","random","setItem","generateOtpCode","sendOtpCode","isValidCourier","validateCourier","validateCourierPhoneNumber","messageToStep","message","titleText","subTitleText","showGoToHomeButton","onOtpConfirmed","useUserObfuscatedOrders","obfuscatedOrders","obfuscatedOrderSelected","prefillDeliverySchedules","setUserObfuscatedOrder","userObfuscatedOrders","resetUserObfuscatedOrders","setUserObfuscatedOrderSelected","setPrefillDeliverySchedules","userObfuscatedOrdersStore","isButtonDisabled","communesDistributorsIds","_userObfuscatedOrders","cheapestCurrentOrder","getUserObfuscatedOrders","UserPhoneNumber","handleContinueButton","showAllOrders","isOutOfTimeModalOpen","selectedObfuscatedOrderId","scheduleDiv","userObfuscatedOrdersToShow","obfuscatedOrderSelectedWithDeliverySchedule","outOfDeliveryTimeTitle","outOfDeliveryTimeDescription","outOfDeliveryTimeIconPath","handleShowAllOrdersButton","repeatOrder","checkTime","handleRepeatOrderButton","selectedCommunesDistributorId","schedule","setDistributorDeliverySchedule","gasCompany","scheduleOrder","watchEffect","_obfuscatedOrderSelec","_obfuscatedOrderSelec2","getTomorrowDeliverySchedule","totalUserPrice","newOrderItems","firstButtonUrl","secondButtonUrl","isFirstButtonDisabled","isSecondButtonDisabled","$slots","showModal","companyUrl","obfuscatedOrdersStore","handleSuccess","gasCompanyUrl","goToGasCompanyUrl","console","onOficialCompanyOrder","handleOfficialCompanyOrder","companyUrlEvent","allowEmpty","emptyLabel","inputValue","errorMessage","handleBlur","handleChange","initialValue","valueProp","onChange","newModel","touched","onBlur","args","attrs","useAttrs","currentTag","md","lg","xl","colors","primary","secondary","terciary","secondaryDisabled","back","primaryOutline","currentClasses","isDisabled","showCloseButton","inheritAttrs","labelHint","attrsWithoutClass","fromEntries","labelClasses","black","white","inputClasses","orderReportsApi","orderReport","distributorPhoneNumber","isDistributorOfficial","successMessageByReportType","cancel","contact","messageLabelByReportType","inputPlaceholderByReportType","reportType","reportTypeYup","reportFormText","isSuccess","refetch","isFetching","retry","sendParam","reportTypeParam","getParamsFromUrl","queryClient","useQueryClient","contactOptionText","showWhatsAppIcon","hasReportType","isContactType","isNotSuccess","isNotDistributorOfficial","buttonText","redirectToWhatsapp","resetQueries","queryKey","newValue","searchParams","set","updateUrlParams","onSubmit","rows","modalOpen","deliverOrderParam","isReceived","isOnItsWay","_order$value","isDelivered","_order$value2","isCancelled","_order$value3","activateFirstStep","activateReceivedStep","_order$value4","activateScheduledStep","_order$value5","activateOnItsWayStep","activateDeliveredStep","activeCircleClass","inactiveCircleClass","deleteUrlParamsWithoutPhoneNumber","delete","resetSearch","deleteUrlParamsWithPhoneNumber","_order$value6","updateOrderStatus","deliveryRangeWithReceivedStatus","deliveryRangeWithAcceptedStatus","openOrderReportModal","isOfficial","es","Locales","messages","cash","card","coupon","i18n","legacy","locale","fallbackLocale","addEventListener","app","createApp","components","TheFooter","pinia","use","mount"],"sourceRoot":""}