[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: resources_js_components_admin_pos_PosComponent_vue.js
"use strict"; (self["webpackChunk"] = self["webpackChunk"] || []).push([["resources_js_components_admin_pos_PosComponent_vue"],{ /***/ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__); // Imports var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]}); // Module ___CSS_LOADER_EXPORT___.push([module.id, "\n@media print {\n.hidden-print[data-v-773e416b] {\n display: none !important;\n}\n}\n", ""]); // Exports /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (___CSS_LOADER_EXPORT___); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/components/VariationComponent.vue?vue&type=script&lang=js": /*!******************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/components/VariationComponent.vue?vue&type=script&lang=js ***! \******************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "VariationComponent", props: { "variations": { type: Object }, "method": { type: Function } }, data: function data() { return { selectedVariationId: null, selectedVariations: [], finalSelectedVariation: null }; }, methods: { selectVariation: function selectVariation(variation) { var _this = this; this.selectedVariationId = variation.id; if (!variation.sku) { this.finalSelectedVariation = null; this.getFinalVariationId(this.finalSelectedVariation); } else { this.finalSelectedVariation = variation; this.getFinalVariationId(this.finalSelectedVariation); } this.$store.dispatch("posProductVariation/childrenVariation", this.selectedVariationId).then(function (res) { _this.selectedVariations = res.data.data; })["catch"](function (err) { _this.loading.isActive = false; }); }, getFinalVariationId: function getFinalVariationId(id) { this.method(id); } } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=script&lang=js": /*!****************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=script&lang=js ***! \****************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _components_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/LoadingComponent.vue */ "./resources/js/components/admin/components/LoadingComponent.vue"); /* harmony import */ var _components_ProductListComponent_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../components/ProductListComponent.vue */ "./resources/js/components/admin/components/ProductListComponent.vue"); /* harmony import */ var _components_VariationComponent_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/VariationComponent.vue */ "./resources/js/components/admin/components/VariationComponent.vue"); /* harmony import */ var _services_appService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/appService */ "./resources/js/services/appService.js"); /* harmony import */ var _services_alertService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../services/alertService */ "./resources/js/services/alertService.js"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "BarcodeProductComponent", components: { VariationComponent: _components_VariationComponent_vue__WEBPACK_IMPORTED_MODULE_2__["default"], ProductListComponent: _components_ProductListComponent_vue__WEBPACK_IMPORTED_MODULE_1__["default"], LoadingComponent: _components_LoadingComponent_vue__WEBPACK_IMPORTED_MODULE_0__["default"] }, data: function data() { return { loading: { isActive: false }, props: { search: { product_id: null } }, barcode: null, selectedVariation: null, productArray: {}, initProduct: { isVariation: false, variationId: null, sku: null, stock: 0, quantity: 1, discount: 0, price: 0, oldPrice: 0, totalPrice: 0 }, temp: { name: "", image: "", isVariation: false, variationId: null, productId: 0, sku: null, stock: 0, taxes: {}, quantity: 1, discount: 0, price: 0, oldPrice: 0, totalPrice: 0 } }; }, computed: { setting: function setting() { return this.$store.getters['frontendSetting/lists']; }, product: function product() { return this.$store.getters["posProduct/show"]; }, images: function images() { return this.$store.getters["posProduct/showImages"]; } }, mounted: function mounted() { this.$refs.posBarcodeScan.focus(); }, methods: { onlyNumber: function onlyNumber(e) { return _services_appService__WEBPACK_IMPORTED_MODULE_3__["default"].onlyNumber(e); }, currencyFormat: function currencyFormat(amount, decimal, currency, position) { return _services_appService__WEBPACK_IMPORTED_MODULE_3__["default"].currencyFormat(amount, decimal, currency, position); }, getProduct: function getProduct() { var _this = this; if (this.barcode) { if (this.barcode.toString().length > 8) { this.barcode = this.barcode.toString().slice(0, -1); } else if (this.barcode.toString().length > 7) { this.barcode = this.barcode.toString().slice(0, -1); } this.barcode = parseInt(this.barcode); this.$store.dispatch("product/barcodeProduct", this.barcode).then(function (barcodeRes) { _this.props.search.product_id = barcodeRes.data.data.product_id; _this.$store.dispatch("posProduct/show", _this.props.search).then(function (res) { _this.initProduct = { isVariation: false, variationId: null, sku: res.data.data.sku, stock: res.data.data.stock, quantity: 1, discount: 0, price: res.data.data.price, oldPrice: res.data.data.old_price, totalPrice: res.data.data.price }; _this.temp = { name: res.data.data.name, image: res.data.data.image, isVariation: false, variationId: null, productId: res.data.data.id, sku: res.data.data.sku, stock: res.data.data.stock, taxes: res.data.data.taxes, quantity: 1, discount: 0, price: res.data.data.price, oldPrice: res.data.data.old_price, totalPrice: res.data.data.price }; if (barcodeRes.data.data.variation_id) { _this.selectedVariation = barcodeRes.data.data.variation_id; _this.$store.dispatch("posProductVariation/barcodeVariationProduct", barcodeRes.data.data.variation_id).then(function (variationRes) { _this.temp.isVariation = true; _this.temp.variationId = variationRes.data.data.id; _this.temp.sku = variationRes.data.data.sku; _this.temp.stock = variationRes.data.data.stock; _this.temp.quantity = 1; _this.temp.discount = 0; _this.temp.price = variationRes.data.data.price; _this.temp.oldPrice = variationRes.data.data.old_price; _this.temp.totalPrice = variationRes.data.data.price; if (_this.temp.stock > 0) { _this.addToCart(); } else { _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].error(_this.$t('label.stock_out')); _this.barcode = null; } })["catch"](function (err) { _this.loading.isActive = false; }); } else { if (_this.temp.stock > 0) { _this.addToCart(); } else { _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].error(_this.$t('label.stock_out')); _this.barcode = null; } } })["catch"](function (err) { _this.loading.isActive = false; }); })["catch"](function (err) { _this.loading.isActive = false; _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].error(err.response.data.message); _this.barcode = null; }); } }, addToCart: function addToCart() { var _this2 = this; this.productArray = { name: this.temp.name, product_id: this.temp.productId, image: this.temp.image, variation_names: '', variation_id: this.temp.variationId, sku: this.temp.sku, stock: this.temp.stock, taxes: this.temp.taxes, quantity: this.temp.quantity, discount: this.temp.discount, price: this.temp.price, old_price: this.temp.oldPrice, total_price: this.temp.totalPrice }; if (this.selectedVariation) { this.$store.dispatch("posProductVariation/ancestorsToString", this.selectedVariation).then(function (res) { _this2.productArray.variation_names = res.data.data; _this2.$store.dispatch("posCart/lists", _this2.productArray).then(function (res) { _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].success(_this2.$t('message.add_to_cart')); _this2.barcode = null; _this2.productArray = {}; _this2.selectedVariation = null; _this2.temp.isVariation = _this2.initProduct.isVariation; _this2.temp.variationId = _this2.initProduct.variationId; _this2.temp.sku = _this2.initProduct.sku; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; _this2.temp.discount = _this2.initProduct.discount; _this2.temp.price = _this2.initProduct.price; _this2.temp.oldPrice = _this2.initProduct.oldPrice; _this2.temp.totalPrice = _this2.initProduct.price; })["catch"](function (err) { _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].error(_this2.$t('message.maximum_quantity')); _this2.barcode = null; _this2.variationComponent = true; _this2.selectedVariation = null; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; }); })["catch"](function (err) {}); } else { this.$store.dispatch("posCart/lists", this.productArray).then(function (res) { _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].success(_this2.$t('message.add_to_cart')); _this2.barcode = null; _this2.productArray = {}; _this2.selectedVariation = null; _this2.temp.isVariation = _this2.initProduct.isVariation; _this2.temp.variationId = _this2.initProduct.variationId; _this2.temp.sku = _this2.initProduct.sku; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; _this2.temp.discount = _this2.initProduct.discount; _this2.temp.price = _this2.initProduct.price; _this2.temp.oldPrice = _this2.initProduct.oldPrice; _this2.temp.totalPrice = _this2.initProduct.price; })["catch"](function (err) { _services_alertService__WEBPACK_IMPORTED_MODULE_4__["default"].error(_this2.$t('message.maximum_quantity')); _this2.barcode = null; _this2.selectedVariation = null; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; }); } } } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=script&lang=js": /*!*********************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=script&lang=js ***! \*********************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _services_appService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/appService */ "./resources/js/services/appService.js"); /* harmony import */ var _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../enums/modules/posPaymentMethodEnum */ "./resources/js/enums/modules/posPaymentMethodEnum.js"); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "PaymentComponent", props: { total: String }, data: function data() { return { changesht: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", '⇧', "a", "s", "d", "f", "g", "h", "j", "k", '↩', "l", "z", "x", "c", "v", "b", "n", "m"], originalsht: [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", '⇧', "A", "S", "D", "F", "G", "H", "J", "K", '↩', "L", "Z", "X", "C", "V", "B", "N", "M"], posPaymentMethodEnum: _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"], pos_payment_method: _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"].CASH, pos_payment_note: '', pos_received_amount: null, keyboard: false }; }, computed: { company: function company() { return this.$store.getters['company/lists']; }, orderProducts: function orderProducts() { return this.$store.getters['posOrder/orderProducts']; } }, mounted: function mounted() { this.$store.dispatch("company/lists").then()["catch"](); }, methods: _defineProperty(_defineProperty(_defineProperty(_defineProperty({ reset: function reset() { this.pos_payment_note = ''; this.pos_received_amount = null; ["cashInput", "cardInput", "mfs-trans", "other-trans"].forEach(function (id) { var input = document.getElementById(id); if (input) input.value = ''; }); }, updatePaymentMethod: function updatePaymentMethod(method) { this.pos_payment_method = method; this.pos_payment_note = ''; this.pos_received_amount = null; ["cashInput", "cardInput", "mfs-trans", "other-trans"].forEach(function (id) { var input = document.getElementById(id); if (input) input.value = ''; }); if ([_enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"].MOBILE_BANKING, _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"].OTHER].includes(method) && !this.keyboard) { this.initializeKeyboard(); this.keyboard = true; } }, solve: function solve(val, id) { var v = document.getElementById(id); v.value += val; if (this.pos_payment_method === _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"].CASH) { this.pos_received_amount = v.value; } else { this.pos_payment_note = v.value; } }, clear: function clear(id) { var inp = document.getElementById(id); inp.value = ''; }, back: function back(inputId) { if (inputId === "cashInput") { this.pos_received_amount = this.pos_received_amount.slice(0, -1); } else if (inputId === "cardInput") { this.pos_payment_note = this.pos_payment_note.slice(0, -1); } }, backspace: function backspace(id) { var textBoard = document.getElementById(id); textBoard.value = textBoard.value.slice(0, textBoard.value.length - 1); }, evaluateClick: function evaluateClick(e) { var btnclicked = e.target.classList[0]; if (btnclicked !== "board" && btnclicked !== "rows") { var btnText = e.target.innerText; var btnId = e.target.parentElement.parentElement.querySelector('input').getAttribute('id'); this.action(btnText, btnId); } }, shift: function shift(btnId) { var btn = document.getElementById(btnId).parentElement.parentElement.querySelector('.shifter'); if (btn !== null && btn !== void 0 && btn.classList.contains("noshift")) { this.shifton(this.changesht, btnId); } else { this.shifton(this.originalsht, btnId); } }, shifton: function shifton(change, btnId) { var shift = document.getElementById(btnId).parentElement.parentElement.querySelector('.shifter'); shift === null || shift === void 0 || shift.classList.toggle("noshift"); var btnchng = document.getElementById(btnId).parentElement.parentElement.querySelectorAll(".cng"); Array.from(btnchng).forEach(function (value, index) { value.innerText = change[index]; }); }, action: function action(btnText, btnId) { switch (btnText) { case '↩': this.backspace(btnId); break; case "⇧": this.shift(btnId); break; default: this.setText(btnText, btnId); } } }, "clear", function clear(id) { this.pos_received_amount = ''; this.pos_payment_note = ''; }), "setText", function setText(text, id) { var element = document.getElementById(id); var cursorPosition = element.selectionStart; var currentText = element.value; element.value = currentText.substring(0, cursorPosition) + text + currentText.substring(cursorPosition); element.selectionStart = element.selectionEnd = cursorPosition + text.length; element.focus(); if (this.pos_payment_method === _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"].MOBILE_BANKING || this.pos_payment_method === _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_1__["default"].OTHER) { this.pos_payment_note = element.value; } }), "initializeKeyboard", function initializeKeyboard() { var _this = this; if (!this.keyboard) { var boards = document.querySelectorAll(".board"); boards.forEach(function (board) { board.addEventListener("click", _this.evaluateClick); _this.originalsht.forEach(function (sht) { var div = document.createElement('div'); div.classList.add('btnr', 'cng'); if (sht === '⇧') { div.classList.add('noshift', 'row-span-2', 'col-span-1', 'shifter'); div.textContent = sht; } else if (sht === '↩') { div.classList.add('row-span-2', 'col-span-1'); div.textContent = sht; } else { div.textContent = sht; } board.appendChild(div); }); }); } }), "closeModal", function closeModal() { _services_appService__WEBPACK_IMPORTED_MODULE_0__["default"].modalHide('#orderPayment'); }) }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosComponent.vue?vue&type=script&lang=js": /*!*****************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosComponent.vue?vue&type=script&lang=js ***! \*****************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _components_LoadingComponent__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../components/LoadingComponent */ "./resources/js/components/admin/components/LoadingComponent.vue"); /* harmony import */ var _ProductListComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ProductListComponent */ "./resources/js/components/admin/pos/ProductListComponent.vue"); /* harmony import */ var _enums_modules_sourceEnum__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../enums/modules/sourceEnum */ "./resources/js/enums/modules/sourceEnum.js"); /* harmony import */ var _enums_modules_orderTypeEnum__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../enums/modules/orderTypeEnum */ "./resources/js/enums/modules/orderTypeEnum.js"); /* harmony import */ var _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../enums/modules/statusEnum */ "./resources/js/enums/modules/statusEnum.js"); /* harmony import */ var _enums_modules_paymentTypeEnum__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../enums/modules/paymentTypeEnum */ "./resources/js/enums/modules/paymentTypeEnum.js"); /* harmony import */ var _enums_modules_roleEnum__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../enums/modules/roleEnum */ "./resources/js/enums/modules/roleEnum.js"); /* harmony import */ var _services_appService__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../services/appService */ "./resources/js/services/appService.js"); /* harmony import */ var _enums_modules_discountTypeEnum__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../enums/modules/discountTypeEnum */ "./resources/js/enums/modules/discountTypeEnum.js"); /* harmony import */ var _services_alertService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/alertService */ "./resources/js/services/alertService.js"); /* harmony import */ var _services_targetService__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../services/targetService */ "./resources/js/services/targetService.js"); /* harmony import */ var _ReceiptComponent__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ReceiptComponent */ "./resources/js/components/admin/pos/ReceiptComponent.vue"); /* harmony import */ var _PaymentComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./PaymentComponent */ "./resources/js/components/admin/pos/PaymentComponent.vue"); /* harmony import */ var _PosCustomerComponent__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./PosCustomerComponent */ "./resources/js/components/admin/pos/PosCustomerComponent.vue"); /* harmony import */ var _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../enums/modules/posPaymentMethodEnum */ "./resources/js/enums/modules/posPaymentMethodEnum.js"); /* harmony import */ var _BarcodeProductComponent_vue__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./BarcodeProductComponent.vue */ "./resources/js/components/admin/pos/BarcodeProductComponent.vue"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "PosComponent", components: { ReceiptComponent: _ReceiptComponent__WEBPACK_IMPORTED_MODULE_11__["default"], LoadingComponent: _components_LoadingComponent__WEBPACK_IMPORTED_MODULE_0__["default"], ProductListComponent: _ProductListComponent__WEBPACK_IMPORTED_MODULE_1__["default"], PoscustomerComponent: _PosCustomerComponent__WEBPACK_IMPORTED_MODULE_13__["default"], BarcodeProductComponent: _BarcodeProductComponent_vue__WEBPACK_IMPORTED_MODULE_15__["default"], PaymentComponent: _PaymentComponent__WEBPACK_IMPORTED_MODULE_12__["default"] }, data: function data() { return { loading: { isActive: false }, order: {}, discount: null, checkoutProps: { form: { customer_id: null, category: null, brand: null, discount: 0, total: 0, pos_payment_method: _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__["default"].CASH, pos_payment_note: '', pos_payment_receive_amount: 0 } }, props: { search: { paginate: 0, order_column: "id", order_type: "asc", name: "", product_category_id: "", product_brand_id: "", status: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_4__["default"].ACTIVE } }, searchProps: { paginate: 0, order_column: "id", order_type: "asc", status: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_4__["default"].ACTIVE }, settings: { itemsToShow: 6.2, wrapAround: false, snapAlign: "start" }, statusEnum: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_4__["default"], discountTypeEnum: _enums_modules_discountTypeEnum__WEBPACK_IMPORTED_MODULE_8__["default"], posPaymentMethodEnum: _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__["default"], discountType: _enums_modules_discountTypeEnum__WEBPACK_IMPORTED_MODULE_8__["default"].PERCENTAGE, discountErrorMessage: "", form: {} }; }, computed: { setting: function setting() { return this.$store.getters['frontendSetting/lists']; }, categories: function categories() { return this.$store.getters["productCategory/depthTrees"]; }, brands: function brands() { return this.$store.getters["productBrand/lists"]; }, products: function products() { return this.$store.getters["product/lists"]; }, customers: function customers() { return this.$store.getters['user/lists']; }, carts: function carts() { return this.$store.getters['posCart/lists']; }, subtotal: function subtotal() { return this.$store.getters['posCart/subtotal']; }, total: function total() { return this.$store.getters['posCart/total']; }, posCartDiscount: function posCartDiscount() { return this.$store.getters['posCart/discount']; }, totalTax: function totalTax() { return this.$store.getters['posCart/totalTax']; }, posCartProducts: function posCartProducts() { return this.$store.getters['posCart/lists']; }, posDiscount: function posDiscount() { return this.$store.getters['posCart/discount']; } }, mounted: function mounted() { var _this = this; this.productCategories(); this.productBrands(); this.productList(); try { this.customerList(); this.loading.isActive = true; this.$store.dispatch("company/lists").then(function (res) { _this.company.name = res.data.data.company_name; _this.company.email = res.data.data.company_email; _this.company.phone = res.data.data.company_phone; _this.company.address = res.data.data.company_address; _this.loading.isActive = false; })["catch"](function (err) { _this.loading.isActive = false; }); } catch (err) { this.loading.isActive = false; } }, methods: { hideTarget: function hideTarget(id, cClass) { _services_targetService__WEBPACK_IMPORTED_MODULE_10__["default"].hideTarget(id, cClass); }, onlyNumber: function onlyNumber(e) { return _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].onlyNumber(e); }, floatNumber: function floatNumber(e) { return _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].floatNumber(e); }, currencyFormat: function currencyFormat(amount, decimal, currency, position) { return _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].currencyFormat(amount, decimal, currency, position); }, floatFormat: function floatFormat(amount, decimal) { return _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].floatFormat(amount, decimal); }, reset: function reset() { this.props.search.name = ""; this.checkoutProps.form.category = null; this.props.search.product_category_id = ""; this.checkoutProps.form.brand = null; this.props.search.product_brand_id = ""; this.productList(); }, search: function search() { this.productList(); }, addCustomer: function addCustomer() { _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].modalShow("#customerModal"); }, productCategories: function productCategories() { var _this2 = this; var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; this.loading.isActive = true; this.props.search.page = page; this.$store.dispatch("productCategory/depthTrees", this.searchProps).then(function (res) { _this2.loading.isActive = false; })["catch"](function (err) { _this2.loading.isActive = false; }); }, productBrands: function productBrands() { var _this3 = this; var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; this.loading.isActive = true; this.props.search.page = page; this.$store.dispatch("productBrand/lists", this.searchProps).then(function (res) { _this3.loading.isActive = false; })["catch"](function (err) { _this3.loading.isActive = false; }); }, customerList: function customerList() { var _this4 = this; var id = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; this.loading.isActive = true; this.$store.dispatch('user/lists', { order_column: 'id', order_type: 'asc', status: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_4__["default"].ACTIVE, role_id: _enums_modules_roleEnum__WEBPACK_IMPORTED_MODULE_6__["default"].CUSTOMER }).then(function (res) { _this4.checkoutProps.form.customer_id = id === null ? res.data.data[0].id : id; _this4.loading.isActive = false; })["catch"](function (err) { _this4.loading.isActive = false; }); }, productList: function productList() { var _this5 = this; var page = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1; this.loading.isActive = true; this.props.search.page = page; this.$store.dispatch("product/lists", this.props.search).then(function (res) { _this5.loading.isActive = false; })["catch"](function (err) { _this5.loading.isActive = false; }); }, setCategory: function setCategory(id) { this.props.search.product_category_id = id; this.productList(); }, setBrand: function setBrand(id) { this.props.search.product_brand_id = id; this.productList(); }, quantityUp: function quantityUp(id, product, e) { var quantity = e.target.value; if (quantity === 0 || quantity < 0 || quantity === "0") { quantity = 1; } if (quantity > product.stock) { quantity = product.stock; } this.$store.dispatch('posCart/quantity', { id: id, status: quantity }).then()["catch"](); this.checkoutProps.form.discount = 0; this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); }, quantityIncrement: function quantityIncrement(id, product) { var quantity = product.quantity; quantity++; if (quantity <= 0) { quantity = 1; } if (quantity > product.stock) { quantity--; } this.$store.dispatch('posCart/quantity', { id: id, status: quantity }).then()["catch"](); this.checkoutProps.form.discount = 0; this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); }, quantityDecrement: function quantityDecrement(id, product) { var quantity = product.quantity; quantity--; if (quantity <= 0) { quantity = 1; } this.$store.dispatch('posCart/quantity', { id: id, status: quantity }).then()["catch"](); this.checkoutProps.form.discount = 0; this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); }, removeProduct: function removeProduct(id) { this.$store.dispatch('posCart/remove', { id: id }).then()["catch"](); this.checkoutProps.form.discount = 0; this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); if (this.carts.length === 0) { this.checkoutProps.form.pos_payment_method = _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__["default"].CASH; this.checkoutProps.form.pos_payment_note = ""; this.discountErrorMessage = ""; } }, applyDiscount: function applyDiscount() { this.discountErrorMessage = ""; if (this.discountType === _enums_modules_discountTypeEnum__WEBPACK_IMPORTED_MODULE_8__["default"].FIXED) { if (this.subtotal < this.discount) { this.discountErrorMessage = this.$t('message.discount_fixed_error_message'); this.checkoutProps.form.discount = 0; this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); } else { this.discountErrorMessage = ""; this.checkoutProps.form.discount = parseFloat(+this.discount).toFixed(this.setting.site_digit_after_decimal_point); this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); } } else { if (this.discount > 100) { this.discountErrorMessage = this.$t('message.discount_error_message'); this.checkoutProps.form.discount = 0; this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); } else { this.discountErrorMessage = ""; this.checkoutProps.form.discount = parseFloat(this.subtotal * this.discount / 100).toFixed(this.setting.site_digit_after_decimal_point); this.$store.dispatch('posCart/discount', this.checkoutProps.form.discount).then()["catch"](); } } }, resetCart: function resetCart() { this.$store.dispatch('posCart/resetCart').then(function (res) {})["catch"](); if (this.carts.length === 0) { this.checkoutProps.form.pos_payment_method = _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__["default"].CASH; this.checkoutProps.form.pos_payment_note = ""; this.discountErrorMessage = ""; } }, orderSubmit: function orderSubmit(data) { var _this6 = this; this.loading.isActive = true; this.form = { customer_id: this.checkoutProps.form.customer_id, subtotal: this.subtotal, discount: parseFloat(this.posCartDiscount), tax: this.totalTax, total: this.total, order_type: _enums_modules_orderTypeEnum__WEBPACK_IMPORTED_MODULE_3__["default"].POS, source: _enums_modules_sourceEnum__WEBPACK_IMPORTED_MODULE_2__["default"].POS, payment_method: _enums_modules_paymentTypeEnum__WEBPACK_IMPORTED_MODULE_5__["default"].CASH_ON_DELIVERY, pos_payment_method: data.pos_payment_method, pos_payment_note: data.pos_payment_method === _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__["default"].CASH ? "" : data.pos_payment_note, pos_received_amount: data.pos_received_amount, products: JSON.stringify(this.posCartProducts) }; this.$store.dispatch('posOrder/save', this.form).then(function (orderResponse) { _this6.$store.dispatch('posCart/resetCart').then(function (res) { _this6.checkoutProps.form.pos_payment_method = _enums_modules_posPaymentMethodEnum__WEBPACK_IMPORTED_MODULE_14__["default"].CASH; _this6.checkoutProps.form.pos_payment_note = ""; _this6.discount = null; _this6.discountErrorMessage = ""; _this6.loading.isActive = false; })["catch"](); _services_alertService__WEBPACK_IMPORTED_MODULE_9__["default"].success(_this6.$t('message.pos_order')); _this6.$store.dispatch('posOrder/show', orderResponse.data.data.id).then(function (res) { _this6.order = res.data.data; _this6.loading.isActive = false; })["catch"](function (error) { _this6.loading.isActive = false; _services_alertService__WEBPACK_IMPORTED_MODULE_9__["default"].error(error.response.data.message); }); _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].modalHide('#orderPayment'); _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].modalShow('#posReceiptModal'); })["catch"](function (err) { _this6.loading.isActive = false; if (_typeof(err.response.data.errors) === 'object') { _.forEach(err.response.data.errors, function (error) { _services_alertService__WEBPACK_IMPORTED_MODULE_9__["default"].error(error[0]); }); } }); }, orderPayment: function orderPayment() { _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].modalShow('#orderPayment'); }, totalProducts: function totalProducts() { if (this.carts.length > 0) { var totalProduct = 0; this.carts.forEach(function (cart) { totalProduct += cart.quantity; }); return totalProduct; } }, onCustomverCreate: function onCustomverCreate(customerId) { _services_appService__WEBPACK_IMPORTED_MODULE_7__["default"].modalHide(); this.customerList(customerId); }, resetName: function resetName() { this.props.search.name = ""; } } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=script&lang=js": /*!*************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=script&lang=js ***! \*************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _services_appService__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/appService */ "./resources/js/services/appService.js"); /* harmony import */ var _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../enums/modules/statusEnum */ "./resources/js/enums/modules/statusEnum.js"); /* harmony import */ var _components_LoadingComponent__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/LoadingComponent */ "./resources/js/components/admin/components/LoadingComponent.vue"); /* harmony import */ var _services_alertService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../services/alertService */ "./resources/js/services/alertService.js"); function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "PoscustomerComponent", components: { LoadingComponent: _components_LoadingComponent__WEBPACK_IMPORTED_MODULE_2__["default"] }, data: function data() { return { loading: { isActive: false }, enums: { statusEnum: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__["default"], statusEnumArray: _defineProperty(_defineProperty({}, _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__["default"].ACTIVE, this.$t("label.active")), _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__["default"].INACTIVE, this.$t("label.inactive")) }, props: { form: { name: "", email: "", phone: "", password: "", password_confirmation: "", country_code: "", status: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__["default"].ACTIVE } }, errors: {}, flag: "", country_code: "" }; }, computed: { countryCodes: function countryCodes() { return this.$store.getters['countryCode/lists']; } }, mounted: function mounted() { var _this = this; this.loading.isActive = true; this.$store.dispatch('countryCode/lists'); this.$store.dispatch('company/lists').then(function (companyRes) { _this.$store.dispatch('countryCode/show', companyRes.data.data.company_country_code).then(function (res) { if (_this.props.form.country_code === "") { _this.props.form.country_code = res.data.data.calling_code; _this.country_code = res.data.data.calling_code; } _this.flag = res.data.data.flag_emoji; _this.loading.isActive = false; })["catch"](function (err) { _this.loading.isActive = false; }); })["catch"](function (err) { _this.loading.isActive = false; }); }, methods: { phoneNumber: function phoneNumber(e) { return _services_appService__WEBPACK_IMPORTED_MODULE_0__["default"].phoneNumber(e); }, change: function change(e) { this.flag = e.flag_emoji; this.props.form.country_code = e.calling_code; }, reset: function reset() { _services_appService__WEBPACK_IMPORTED_MODULE_0__["default"].modalHide(); this.errors = {}; this.props.form = { name: "", email: "", phone: "", password: "", password_confirmation: "", status: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__["default"].ACTIVE, country_code: this.country_code }; }, save: function save() { var _this2 = this; try { this.loading.isActive = true; this.$store.dispatch("posOrder/saveCustomer", this.props).then(function (res) { _services_appService__WEBPACK_IMPORTED_MODULE_0__["default"].sideDrawerHide(); _this2.loading.isActive = false; _services_alertService__WEBPACK_IMPORTED_MODULE_3__["default"].successFlip(0, _this2.$t("menu.customers")); _this2.props.form = { name: "", email: "", phone: "", password: "", password_confirmation: "", status: _enums_modules_statusEnum__WEBPACK_IMPORTED_MODULE_1__["default"].ACTIVE, country_code: _this2.country_code }; _this2.errors = {}; _this2.$emit('onCustomverCreate', res.data.data.id); })["catch"](function (err) { _this2.loading.isActive = false; _this2.errors = err.response.data.errors; }); } catch (err) { this.loading.isActive = false; _services_alertService__WEBPACK_IMPORTED_MODULE_3__["default"].error(err); } } } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=script&lang=js": /*!****************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=script&lang=js ***! \****************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); /* harmony import */ var swiper_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! swiper/vue */ "./node_modules/swiper/swiper-vue.mjs"); /* harmony import */ var swiper_modules__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! swiper/modules */ "./node_modules/swiper/modules/index.mjs"); /* harmony import */ var _components_LoadingComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/LoadingComponent */ "./resources/js/components/admin/components/LoadingComponent.vue"); /* harmony import */ var vue_star_rating__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-star-rating */ "./node_modules/vue-star-rating/dist/VueStarRating.common.js"); /* harmony import */ var vue_star_rating__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_star_rating__WEBPACK_IMPORTED_MODULE_4__); /* harmony import */ var _services_targetService__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../services/targetService */ "./resources/js/services/targetService.js"); /* harmony import */ var _components_ProductListComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/ProductListComponent */ "./resources/js/components/admin/components/ProductListComponent.vue"); /* harmony import */ var _components_VariationComponent__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/VariationComponent */ "./resources/js/components/admin/components/VariationComponent.vue"); /* harmony import */ var _services_appService__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../services/appService */ "./resources/js/services/appService.js"); /* harmony import */ var _services_alertService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../services/alertService */ "./resources/js/services/alertService.js"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "ProductDetailsComponent", components: { VariationComponent: _components_VariationComponent__WEBPACK_IMPORTED_MODULE_7__["default"], ProductListComponent: _components_ProductListComponent__WEBPACK_IMPORTED_MODULE_6__["default"], starRating: (vue_star_rating__WEBPACK_IMPORTED_MODULE_4___default()), Swiper: swiper_vue__WEBPACK_IMPORTED_MODULE_1__.Swiper, SwiperSlide: swiper_vue__WEBPACK_IMPORTED_MODULE_1__.SwiperSlide, LoadingComponent: _components_LoadingComponent__WEBPACK_IMPORTED_MODULE_3__["default"] }, setup: function setup() { var thumbsSwiper = (0,vue__WEBPACK_IMPORTED_MODULE_0__.ref)(null); var setThumbsSwiper = function setThumbsSwiper(swiper) { thumbsSwiper.value = swiper; }; return { thumbsSwiper: thumbsSwiper, setThumbsSwiper: setThumbsSwiper, modules: [swiper_modules__WEBPACK_IMPORTED_MODULE_2__.FreeMode, swiper_modules__WEBPACK_IMPORTED_MODULE_2__.Navigation, swiper_modules__WEBPACK_IMPORTED_MODULE_2__.Thumbs], slug: "" }; }, props: { "method": { type: Function }, "productId": { type: Number } }, data: function data() { return { loading: { isActive: false }, props: { search: { product_id: null, review_limit: 3 } }, enableAddToCardButton: true, selectedVariation: null, productArray: {}, variationComponent: false, initProduct: { isVariation: false, variationId: null, sku: null, stock: 0, quantity: 1, discount: 0, price: 0, oldPrice: 0, totalPrice: 0 }, temp: { name: "", image: "", isVariation: false, variationId: null, productId: 0, sku: null, stock: 0, taxes: {}, quantity: 1, discount: 0, price: 0, oldPrice: 0, totalPrice: 0 } }; }, computed: { setting: function setting() { return this.$store.getters['frontendSetting/lists']; }, categories: function categories() { return this.$store.getters["posProductCategory/ancestorsAndSelf"]; }, initialVariations: function initialVariations() { return this.$store.getters["posProductVariation/initialVariation"]; }, product: function product() { return this.$store.getters["posProduct/show"]; }, images: function images() { return this.$store.getters["posProduct/showImages"]; }, reviews: function reviews() { return this.$store.getters["posProduct/showReviews"]; } }, mounted: function mounted() { this.modalShow(); this.show(); }, methods: { onlyNumber: function onlyNumber(e) { return _services_appService__WEBPACK_IMPORTED_MODULE_8__["default"].onlyNumber(e); }, currencyFormat: function currencyFormat(amount, decimal, currency, position) { return _services_appService__WEBPACK_IMPORTED_MODULE_8__["default"].currencyFormat(amount, decimal, currency, position); }, modalShow: function modalShow() { _services_targetService__WEBPACK_IMPORTED_MODULE_5__["default"].showTarget("variation-modal", 'modal-active'); }, show: function show() { var _this = this; if (typeof this.$props.productId !== "undefined") { this.loading.isActive = true; this.props.search.product_id = this.$props.productId; this.$store.dispatch("posProduct/show", this.props.search).then(function (res) { _this.initProduct = { isVariation: false, variationId: null, sku: res.data.data.sku, stock: res.data.data.stock, quantity: 1, discount: 0, price: res.data.data.price, oldPrice: res.data.data.old_price, totalPrice: res.data.data.price }; _this.temp = { name: res.data.data.name, image: res.data.data.image, isVariation: false, variationId: null, productId: res.data.data.id, sku: res.data.data.sku, stock: res.data.data.stock, taxes: res.data.data.taxes, quantity: 1, discount: 0, price: res.data.data.price, oldPrice: res.data.data.old_price, totalPrice: res.data.data.price }; _this.$store.dispatch("posProductCategory/ancestorsAndSelf", res.data.data.category_slug).then(function (categoryRes) { _this.loading.isActive = false; })["catch"](function (err) { _this.loading.isActive = false; }); _this.$store.dispatch("posProductVariation/initialVariation", res.data.data.id).then(function (initVariationRes) { if (initVariationRes.data.data.length > 0) { _this.variationComponent = true; } if (!initVariationRes.data.data.length && res.data.data.stock > 0) { _this.enableAddToCardButton = false; } _this.loading.isActive = false; })["catch"](function (err) { _this.loading.isActive = false; }); })["catch"](function (err) { _this.loading.isActive = false; }); } }, selectedVariationMethod: function selectedVariationMethod(variation) { this.enableAddToCardButton = true; this.selectedVariation = null; this.temp.isVariation = this.initProduct.isVariation; this.temp.variationId = this.initProduct.variationId; this.temp.sku = this.initProduct.sku; this.temp.stock = this.initProduct.stock; this.temp.quantity = this.initProduct.quantity; this.temp.discount = this.initProduct.discount; this.temp.price = this.initProduct.price; this.temp.oldPrice = this.initProduct.oldPrice; this.temp.totalPrice = this.initProduct.price; if (variation) { this.selectedVariation = variation; this.temp.isVariation = true; this.temp.variationId = variation.id; this.temp.sku = variation.sku; this.temp.stock = variation.stock; this.temp.quantity = 1; this.temp.discount = 0; this.temp.price = variation.price; this.temp.oldPrice = variation.old_price; this.temp.totalPrice = variation.price; if (variation.stock > 0) { this.enableAddToCardButton = false; } } }, quantityUp: function quantityUp() { if (this.temp.quantity === 0 || this.temp.quantity < 0) { this.temp.quantity = 1; } if (this.temp.quantity > this.temp.stock) { this.temp.quantity = this.temp.stock; } this.totalPriceSetup(); }, quantityIncrement: function quantityIncrement() { this.temp.quantity++; if (this.temp.quantity <= 0) { this.temp.quantity = 1; } if (this.temp.quantity > this.temp.stock) { this.temp.quantity--; } this.totalPriceSetup(); }, quantityDecrement: function quantityDecrement() { this.temp.quantity--; if (this.temp.quantity <= 0) { this.temp.quantity = 1; } this.totalPriceSetup(); }, totalPriceSetup: function totalPriceSetup() { this.temp.totalPrice = this.temp.price * this.temp.quantity; }, addToCart: function addToCart() { var _this2 = this; this.enableAddToCardButton = true; this.productArray = { name: this.temp.name, product_id: this.temp.productId, image: this.temp.image, variation_names: '', variation_id: this.temp.variationId, sku: this.temp.sku, stock: this.temp.stock, taxes: this.temp.taxes, quantity: this.temp.quantity, discount: this.temp.discount, price: this.temp.price, old_price: this.temp.oldPrice, total_price: this.temp.totalPrice }; if (this.selectedVariation) { this.$store.dispatch("posProductVariation/ancestorsToString", this.selectedVariation.id).then(function (res) { _this2.productArray.variation_names = res.data.data; _this2.variationComponent = false; _this2.$store.dispatch("posCart/lists", _this2.productArray).then(function (res) { _services_targetService__WEBPACK_IMPORTED_MODULE_5__["default"].hideTarget("variation-modal", 'modal-active'); _this2.method(); _services_alertService__WEBPACK_IMPORTED_MODULE_9__["default"].success(_this2.$t('message.add_to_cart')); _this2.variationComponent = true; _this2.productArray = {}; _this2.selectedVariation = null; _this2.temp.isVariation = _this2.initProduct.isVariation; _this2.temp.variationId = _this2.initProduct.variationId; _this2.temp.sku = _this2.initProduct.sku; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; _this2.temp.discount = _this2.initProduct.discount; _this2.temp.price = _this2.initProduct.price; _this2.temp.oldPrice = _this2.initProduct.oldPrice; _this2.temp.totalPrice = _this2.initProduct.price; })["catch"](function (err) { _this2.variationComponent = true; _this2.selectedVariation = null; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; }); })["catch"](function (err) {}); } else { this.$store.dispatch("posCart/lists", this.productArray).then(function (res) { _services_targetService__WEBPACK_IMPORTED_MODULE_5__["default"].hideTarget("variation-modal", 'modal-active'); _this2.method(); _services_alertService__WEBPACK_IMPORTED_MODULE_9__["default"].success(_this2.$t('message.add_to_cart')); _this2.enableAddToCardButton = false; _this2.productArray = {}; _this2.selectedVariation = null; _this2.temp.isVariation = _this2.initProduct.isVariation; _this2.temp.variationId = _this2.initProduct.variationId; _this2.temp.sku = _this2.initProduct.sku; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; _this2.temp.discount = _this2.initProduct.discount; _this2.temp.price = _this2.initProduct.price; _this2.temp.oldPrice = _this2.initProduct.oldPrice; _this2.temp.totalPrice = _this2.initProduct.price; })["catch"](function (err) { _this2.enableAddToCardButton = false; _this2.selectedVariation = null; _this2.temp.stock = _this2.initProduct.stock; _this2.temp.quantity = _this2.initProduct.quantity; }); } } } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=script&lang=js": /*!*************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=script&lang=js ***! \*************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue_star_rating__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue-star-rating */ "./node_modules/vue-star-rating/dist/VueStarRating.common.js"); /* harmony import */ var vue_star_rating__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue_star_rating__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _ProductDetailsComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ProductDetailsComponent */ "./resources/js/components/admin/pos/ProductDetailsComponent.vue"); /* harmony import */ var _services_targetService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/targetService */ "./resources/js/services/targetService.js"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "ProductListComponent", components: { starRating: (vue_star_rating__WEBPACK_IMPORTED_MODULE_0___default()), ProductDetailsComponent: _ProductDetailsComponent__WEBPACK_IMPORTED_MODULE_1__["default"] }, props: { "products": "object" }, data: function data() { return { rating: [], productId: "" }; }, methods: { handleProductModal: function handleProductModal(product) { this.productId = product.id; }, reset: function reset() { var _this = this; _services_targetService__WEBPACK_IMPORTED_MODULE_2__["default"].hideTarget("variation-modal", 'modal-active'); setTimeout(function () { _this.productId = ""; }, 500); } } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=script&lang=js": /*!*********************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=script&lang=js ***! \*********************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var vue3_print_nb__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue3-print-nb */ "./node_modules/vue3-print-nb/dist/vue3-print-nb.es.js"); /* harmony import */ var _services_appService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../services/appService */ "./resources/js/services/appService.js"); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({ name: "ReceiptComponent", props: { order: Object }, data: function data() { return { printObj: { id: "print", popTitle: this.$t("menu.order_receipt") } }; }, computed: { company: function company() { return this.$store.getters['company/lists']; }, orderProducts: function orderProducts() { return this.$store.getters['posOrder/orderProducts']; } }, mounted: function mounted() { this.$store.dispatch("company/lists").then()["catch"](); }, methods: { reset: function reset() { _services_appService__WEBPACK_IMPORTED_MODULE_1__["default"].modalHide(); } }, directives: { print: vue3_print_nb__WEBPACK_IMPORTED_MODULE_0__["default"] } }); /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/components/VariationComponent.vue?vue&type=template&id=5fcc68b0": /*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/components/VariationComponent.vue?vue&type=template&id=5fcc68b0 ***! \**********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { key: 0, "class": "flex flex-wrap items-center gap-x-6 gap-y-3 mb-6" }; var _hoisted_2 = { "class": "flex flex-wrap items-center gap-3" }; var _hoisted_3 = ["onClick"]; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_VariationComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("VariationComponent", true); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [$props.variations.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("dl", _hoisted_1, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($props.variations.slice(0, 1), function (variationLabel) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("dt", { key: variationLabel, "class": "capitalize text-lg font-semibold" }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(variationLabel.product_attribute_name) + ":", 1 /* TEXT */); }), 128 /* KEYED_FRAGMENT */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("dd", _hoisted_2, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($props.variations, function (variation, index) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { onClick: function onClick($event) { return $options.selectVariation(variation); }, "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.selectedVariationId === variation.id ? 'text-white bg-primary' : '', "px-3 h-8 leading-8 text-center rounded-full text-sm font-medium capitalize flex-shrink-0 cursor-pointer text-secondary bg-[#F7F7FC]"]), type: "button", key: index }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(variation.product_attribute_option_name), 11 /* TEXT, CLASS, PROPS */, _hoisted_3); }), 128 /* KEYED_FRAGMENT */))])])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), $data.selectedVariations.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_VariationComponent, { method: $options.getFinalVariationId, key: $data.selectedVariations, variations: $data.selectedVariations }, null, 8 /* PROPS */, ["method", "variations"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)], 64 /* STABLE_FRAGMENT */); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=template&id=13978598": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=template&id=13978598 ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { "class": "db-group-field" }; var _hoisted_2 = ["placeholder"]; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_LoadingComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("LoadingComponent"); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_LoadingComponent, { props: $data.loading }, null, 8 /* PROPS */, ["props"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { onKeypress: _cache[0] || (_cache[0] = function ($event) { return $options.onlyNumber($event); }), "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { return $data.barcode = $event; }), type: "number", id: "barcode", ref: "posBarcodeScan", placeholder: _ctx.$t('label.barcode'), onKeyup: _cache[2] || (_cache[2] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withKeys)(function () { return $options.getProduct && $options.getProduct.apply($options, arguments); }, ["enter"])) }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_2), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.barcode]]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { type: "button", onClick: _cache[3] || (_cache[3] = function () { return $options.getProduct && $options.getProduct.apply($options, arguments); }), "class": "lab lab-line-enter" })])], 64 /* STABLE_FRAGMENT */); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=template&id=bda9bf46": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=template&id=bda9bf46 ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { id: "orderPayment", "class": "modal" }; var _hoisted_2 = { "class": "modal-dialog max-w-[428px] w-full" }; var _hoisted_3 = { "class": "modal-header pb-3 border-b border-[#D9DBE9]" }; var _hoisted_4 = { "class": "capitalize font-medium" }; var _hoisted_5 = { "class": "modal-body" }; var _hoisted_6 = { "class": "mb-4" }; var _hoisted_7 = { "class": "flex justify-between items-center h-12 w-full rounded-lg py-1.5 px-2 placeholder:text-[10px] placeholder:text-[#6E7191] bg-[#F7F7FC]" }; var _hoisted_8 = { "class": "text-sm font-normal text-[#2E2F38]" }; var _hoisted_9 = { "class": "text-primary text-base font-medium" }; var _hoisted_10 = { "class": "mb-4" }; var _hoisted_11 = { "class": "capitalize font-medium mb-2" }; var _hoisted_12 = { "class": "flex flex-wrap gap-4 active-group" }; var _hoisted_13 = { "class": "text-xs font-normal leading-none text-heading" }; var _hoisted_14 = { "class": "text-xs font-normal leading-none text-heading" }; var _hoisted_15 = { "class": "text-xs font-normal leading-none text-heading" }; var _hoisted_16 = { "class": "text-xs font-normal leading-none text-heading" }; var _hoisted_17 = { "class": "mb-4" }; var _hoisted_18 = { "class": "capitalize font-medium mb-2" }; var _hoisted_19 = { "class": "grid grid-cols-4 gap-x-4 gap-y-3.5 mb-6" }; var _hoisted_20 = { "class": "mb-4" }; var _hoisted_21 = { "class": "capitalize font-medium mb-2" }; var _hoisted_22 = { "class": "grid grid-cols-4 gap-x-4 gap-y-3.5 mb-6" }; var _hoisted_23 = { "class": "mb-4" }; var _hoisted_24 = { "class": "capitalize font-medium mb-2" }; var _hoisted_25 = { "class": "mb-4" }; var _hoisted_26 = { "class": "capitalize font-medium mb-2" }; function render(_ctx, _cache, $props, $setup, $data, $options) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.order_payment")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[0] || (_cache[0] = function () { return $options.closeModal && $options.closeModal.apply($options, arguments); }), "class": "modal-close fa-regular fa-circle-xmark" })]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_8, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.total_amount")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.total), 1 /* TEXT */)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_11, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.select_payment_method")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("nav", _hoisted_12, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.updatePaymentMethod($data.posPaymentMethodEnum.CASH); }, ["prevent"])), "data-tab": "#cash", type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.CASH ? 'active' : '', "db-tab-btn w-fit flex flex-col items-center gap-2 rounded-lg py-3 px-7 border bg-[#F7F7FC] border-[#F7F7FC]"]) }, [_cache[38] || (_cache[38] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M19.1709 6.64002C18.7409 4.47002 17.1309 3.52002 14.8909 3.52002H6.11094C3.47094 3.52002 1.71094 4.84002 1.71094 7.92002V13.07C1.71094 15.29 2.62094 16.59 4.12094 17.15C4.34094 17.23 4.58094 17.3 4.83094 17.34C5.23094 17.43 5.66094 17.47 6.11094 17.47H14.9009C17.5409 17.47 19.3009 16.15 19.3009 13.07V7.92002C19.3009 7.45002 19.2609 7.03002 19.1709 6.64002ZM5.53094 12C5.53094 12.41 5.19094 12.75 4.78094 12.75C4.37094 12.75 4.03094 12.41 4.03094 12V9.00002C4.03094 8.59002 4.37094 8.25002 4.78094 8.25002C5.19094 8.25002 5.53094 8.59002 5.53094 9.00002V12ZM10.5009 13.14C9.04094 13.14 7.86094 11.96 7.86094 10.5C7.86094 9.04002 9.04094 7.86002 10.5009 7.86002C11.9609 7.86002 13.1409 9.04002 13.1409 10.5C13.1409 11.96 11.9609 13.14 10.5009 13.14ZM16.9609 12C16.9609 12.41 16.6209 12.75 16.2109 12.75C15.8009 12.75 15.4609 12.41 15.4609 12V9.00002C15.4609 8.59002 15.8009 8.25002 16.2109 8.25002C16.6209 8.25002 16.9609 8.59002 16.9609 9.00002V12Z", fill: "#6E7191" }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M22.2998 10.92V16.07C22.2998 19.15 20.5398 20.48 17.8898 20.48H9.10977C8.35977 20.48 7.68977 20.37 7.10977 20.15C6.63977 19.98 6.22977 19.73 5.89977 19.41C5.71977 19.24 5.85977 18.97 6.10977 18.97H14.8898C18.5898 18.97 20.7898 16.77 20.7898 13.08V7.92003C20.7898 7.68003 21.0598 7.53003 21.2298 7.71003C21.9098 8.43003 22.2998 9.48003 22.2998 10.92Z", fill: "#6E7191" })], -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_13, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.cash")), 1 /* TEXT */)], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[2] || (_cache[2] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.updatePaymentMethod($data.posPaymentMethodEnum.CARD); }, ["prevent"])), "data-tab": "#card", type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.CARD ? 'active' : '', "db-tab-btn w-fit flex flex-col items-center gap-2 rounded-lg py-3 px-7 border bg-[#F7F7FC] border-[#F7F7FC]"]) }, [_cache[39] || (_cache[39] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M22 7.5499C22 8.2099 21.46 8.7499 20.8 8.7499H3.2C2.54 8.7499 2 8.2099 2 7.5499V7.5399C2 5.2499 3.85 3.3999 6.14 3.3999H17.85C20.14 3.3999 22 5.2599 22 7.5499Z", fill: "#6E7191" }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M2 11.45V16.46C2 18.75 3.85 20.6 6.14 20.6H17.85C20.14 20.6 22 18.74 22 16.45V11.45C22 10.79 21.46 10.25 20.8 10.25H3.2C2.54 10.25 2 10.79 2 11.45ZM8 17.25H6C5.59 17.25 5.25 16.91 5.25 16.5C5.25 16.09 5.59 15.75 6 15.75H8C8.41 15.75 8.75 16.09 8.75 16.5C8.75 16.91 8.41 17.25 8 17.25ZM14.5 17.25H10.5C10.09 17.25 9.75 16.91 9.75 16.5C9.75 16.09 10.09 15.75 10.5 15.75H14.5C14.91 15.75 15.25 16.09 15.25 16.5C15.25 16.91 14.91 17.25 14.5 17.25Z", fill: "#6E7191" })], -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_14, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.card")), 1 /* TEXT */)], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[3] || (_cache[3] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.updatePaymentMethod($data.posPaymentMethodEnum.MOBILE_BANKING); }, ["prevent"])), "data-tab": "#mfs", type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.MOBILE_BANKING ? 'active' : '', "db-tab-btn w-fit flex flex-col items-center gap-2 rounded-lg py-3 px-7 border bg-[#F7F7FC] border-[#F7F7FC]"]) }, [_cache[40] || (_cache[40] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M16.24 2H7.76C5 2 4 3 4 5.81V18.19C4 21 5 22 7.76 22H16.23C19 22 20 21 20 18.19V5.81C20 3 19 2 16.24 2ZM12 19.3C11.04 19.3 10.25 18.51 10.25 17.55C10.25 16.59 11.04 15.8 12 15.8C12.96 15.8 13.75 16.59 13.75 17.55C13.75 18.51 12.96 19.3 12 19.3ZM14 6.25H10C9.59 6.25 9.25 5.91 9.25 5.5C9.25 5.09 9.59 4.75 10 4.75H14C14.41 4.75 14.75 5.09 14.75 5.5C14.75 5.91 14.41 6.25 14 6.25Z", fill: "#6E7191" })], -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_15, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.mfs")), 1 /* TEXT */)], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.updatePaymentMethod($data.posPaymentMethodEnum.OTHER); }, ["prevent"])), "data-tab": "#otherpay", type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.OTHER ? 'active' : '', "db-tab-btn w-fit flex flex-col items-center gap-2 rounded-lg py-3 px-7 border bg-[#F7F7FC] border-[#F7F7FC]"]) }, [_cache[41] || (_cache[41] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M15.78 2H8.22C4.44 2 3.5 3.01 3.5 7.04V18.3C3.5 20.96 4.96 21.59 6.73 19.69L6.74 19.68C7.56 18.81 8.81 18.88 9.52 19.83L10.53 21.18C11.34 22.25 12.65 22.25 13.46 21.18L14.47 19.83C15.19 18.87 16.44 18.8 17.26 19.68C19.04 21.58 20.49 20.95 20.49 18.29V7.04C20.5 3.01 19.56 2 15.78 2ZM15 11.75H9C8.59 11.75 8.25 11.41 8.25 11C8.25 10.59 8.59 10.25 9 10.25H15C15.41 10.25 15.75 10.59 15.75 11C15.75 11.41 15.41 11.75 15 11.75ZM16 7.75H8C7.59 7.75 7.25 7.41 7.25 7C7.25 6.59 7.59 6.25 8 6.25H16C16.41 6.25 16.75 6.59 16.75 7C16.75 7.41 16.41 7.75 16 7.75Z", fill: "#6E7191" })], -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_16, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.other")), 1 /* TEXT */)], 2 /* CLASS */)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { id: "cash", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.CASH ? 'active' : '', "db-tab-div"]) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_17, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_18, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.input_amount")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { ref: "pos_received_amount", "onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) { return $data.pos_received_amount = $event; }), id: "cashInput", type: "float", "class": "h-12 w-full rounded-lg border py-1.5 px-4 placeholder:text-xs border-[#D9DBE9] text-black" }, null, 512 /* NEED_PATCH */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.pos_received_amount]])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[6] || (_cache[6] = function ($event) { return $options.solve('1', 'cashInput'); }), value: "1", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "1"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[7] || (_cache[7] = function ($event) { return $options.solve('2', 'cashInput'); }), value: "2", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "2"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[8] || (_cache[8] = function ($event) { return $options.solve('3', 'cashInput'); }), value: "3", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "3"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[9] || (_cache[9] = function ($event) { return $options.back('cashInput'); }), value: "cut", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39] row-span-2" }, _cache[42] || (_cache[42] = [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M16.9997 3.75H10.2797C8.86969 3.75 7.52969 4.34 6.57969 5.39L3.04969 9.27C1.63969 10.82 1.63969 13.18 3.04969 14.73L6.57969 18.61C7.52969 19.65 8.86969 20.25 10.2797 20.25H16.9997C19.7597 20.25 21.9997 18.01 21.9997 15.25V8.75C21.9997 5.99 19.7597 3.75 16.9997 3.75ZM16.5297 13.94C16.8197 14.23 16.8197 14.71 16.5297 15C16.3797 15.15 16.1897 15.22 15.9997 15.22C15.8097 15.22 15.6197 15.15 15.4697 15L13.5297 13.06L11.5897 15C11.4397 15.15 11.2497 15.22 11.0597 15.22C10.8697 15.22 10.6797 15.15 10.5297 15C10.2397 14.71 10.2397 14.23 10.5297 13.94L12.4697 12L10.5297 10.06C10.2397 9.77 10.2397 9.29 10.5297 9C10.8197 8.71 11.2997 8.71 11.5897 9L13.5297 10.94L15.4697 9C15.7597 8.71 16.2397 8.71 16.5297 9C16.8197 9.29 16.8197 9.77 16.5297 10.06L14.5897 12L16.5297 13.94Z", fill: "#1F1F39" })], -1 /* CACHED */)])), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[10] || (_cache[10] = function ($event) { return $options.solve('4', 'cashInput'); }), value: "4", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "4"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[11] || (_cache[11] = function ($event) { return $options.solve('5', 'cashInput'); }), value: "5", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "5"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[12] || (_cache[12] = function ($event) { return $options.solve('6', 'cashInput'); }), value: "6", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "6"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[13] || (_cache[13] = function ($event) { return $options.solve('7', 'cashInput'); }), value: "7", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "7"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[14] || (_cache[14] = function ($event) { return $options.solve('8', 'cashInput'); }), value: "8", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "8"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[15] || (_cache[15] = function ($event) { return $options.solve('9', 'cashInput'); }), value: "9", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "9"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[16] || (_cache[16] = function ($event) { return $options.clear('cashInput'); }), type: "reset", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39] row-span-2" }, " Clear "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[17] || (_cache[17] = function ($event) { return $options.solve('00', 'cashInput'); }), value: "00", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "00"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[18] || (_cache[18] = function ($event) { return $options.solve('0', 'cashInput'); }), value: "0", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "0"), _cache[43] || (_cache[43] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { value: "point", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, ".", -1 /* CACHED */))])], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { id: "card", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.CARD ? 'active' : '', "db-tab-div"]) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_20, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_21, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.enter_card_last_4_digits")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { ref: "pos_payment_note", "onUpdate:modelValue": _cache[19] || (_cache[19] = function ($event) { return $data.pos_payment_note = $event; }), id: "cardInput", max: "4", type: "number", "class": "h-12 w-full rounded-lg border py-1.5 px-4 placeholder:text-xs border-[#D9DBE9] text-black", required: "" }, null, 512 /* NEED_PATCH */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.pos_payment_note]])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[20] || (_cache[20] = function ($event) { return $options.solve('1', 'cardInput'); }), "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "1"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[21] || (_cache[21] = function ($event) { return $options.solve('2', 'cardInput'); }), value: "2", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "2"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[22] || (_cache[22] = function ($event) { return $options.solve('3', 'cardInput'); }), value: "3", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "3"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[23] || (_cache[23] = function ($event) { return $options.back('cardInput'); }), value: "cut", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39] row-span-2" }, _cache[44] || (_cache[44] = [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("path", { d: "M16.9997 3.75H10.2797C8.86969 3.75 7.52969 4.34 6.57969 5.39L3.04969 9.27C1.63969 10.82 1.63969 13.18 3.04969 14.73L6.57969 18.61C7.52969 19.65 8.86969 20.25 10.2797 20.25H16.9997C19.7597 20.25 21.9997 18.01 21.9997 15.25V8.75C21.9997 5.99 19.7597 3.75 16.9997 3.75ZM16.5297 13.94C16.8197 14.23 16.8197 14.71 16.5297 15C16.3797 15.15 16.1897 15.22 15.9997 15.22C15.8097 15.22 15.6197 15.15 15.4697 15L13.5297 13.06L11.5897 15C11.4397 15.15 11.2497 15.22 11.0597 15.22C10.8697 15.22 10.6797 15.15 10.5297 15C10.2397 14.71 10.2397 14.23 10.5297 13.94L12.4697 12L10.5297 10.06C10.2397 9.77 10.2397 9.29 10.5297 9C10.8197 8.71 11.2997 8.71 11.5897 9L13.5297 10.94L15.4697 9C15.7597 8.71 16.2397 8.71 16.5297 9C16.8197 9.29 16.8197 9.77 16.5297 10.06L14.5897 12L16.5297 13.94Z", fill: "#1F1F39" })], -1 /* CACHED */)])), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[24] || (_cache[24] = function ($event) { return $options.solve('4', 'cardInput'); }), value: "4", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "4"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[25] || (_cache[25] = function ($event) { return $options.solve('5', 'cardInput'); }), value: "5", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "5"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[26] || (_cache[26] = function ($event) { return $options.solve('6', 'cardInput'); }), value: "6", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "6"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[27] || (_cache[27] = function ($event) { return $options.solve('7', 'cardInput'); }), value: "7", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "7"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[28] || (_cache[28] = function ($event) { return $options.solve('8', 'cardInput'); }), value: "8", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "8"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[29] || (_cache[29] = function ($event) { return $options.solve('9', 'cardInput'); }), value: "9", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "9"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[30] || (_cache[30] = function ($event) { return $options.clear('cardInput'); }), value: "clear", type: "reset", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39] row-span-2" }, " Clear "), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[31] || (_cache[31] = function ($event) { return $options.solve('00', 'cardInput'); }), value: "00", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "00"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[32] || (_cache[32] = function ($event) { return $options.solve('0', 'cardInput'); }), value: "0", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, "0"), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[33] || (_cache[33] = function ($event) { return $options.solve('.', 'cardInput'); }), value: "point", "class": "num bg-[#F7F7FC] rounded-lg p-2.5 flex items-center justify-center text-base font-medium text-[#1F1F39]" }, ".")])], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { id: "mfs", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.MOBILE_BANKING ? 'active' : '', "db-tab-div"]) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_23, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_24, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.enter_transaction_id")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { ref: "pos_payment_note", "onUpdate:modelValue": _cache[34] || (_cache[34] = function ($event) { return $data.pos_payment_note = $event; }), id: "mfs-trans", type: "text", "class": "h-12 w-full rounded-lg border py-1.5 px-4 placeholder:text-xs border-[#D9DBE9]" }, null, 512 /* NEED_PATCH */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.pos_payment_note]])]), _cache[45] || (_cache[45] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": "board grid grid-cols-10 justify-between gap-1.5 mb-6" }, null, -1 /* CACHED */))], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { id: "otherpay", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.pos_payment_method === $data.posPaymentMethodEnum.OTHER ? 'active' : '', "db-tab-div"]) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_25, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_26, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.enter_note")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { ref: "pos_payment_note", onChange: _cache[35] || (_cache[35] = function () { return _ctx.getData && _ctx.getData.apply(_ctx, arguments); }), "onUpdate:modelValue": _cache[36] || (_cache[36] = function ($event) { return $data.pos_payment_note = $event; }), id: "other-trans", type: "text", "class": "h-12 w-full rounded-lg border py-1.5 px-4 placeholder:text-xs border-[#D9DBE9]" }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.pos_payment_note]])]), _cache[46] || (_cache[46] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": "board grid grid-cols-10 justify-between gap-1.5 mb-6" }, null, -1 /* CACHED */))], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[37] || (_cache[37] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { _ctx.$emit('orderSubmit', { pos_payment_note: $data.pos_payment_note, pos_payment_method: $data.pos_payment_method, pos_received_amount: $data.pos_received_amount }); $options.reset(); }, ["prevent"])), "data-modal": "#receipt", "class": "rounded-3xl text-base py-2 px-3 font-medium w-full text-white bg-primary" }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("button.confirm_and_print_receipt")), 1 /* TEXT */)])])]); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosComponent.vue?vue&type=template&id=7a8fd462": /*!*********************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosComponent.vue?vue&type=template&id=7a8fd462 ***! \*********************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { "class": "md:w-[calc(100%-340px)] lg:w-[calc(100%-320px)] xl:w-[calc(100%-377px)]" }; var _hoisted_2 = { "class": "form-row" }; var _hoisted_3 = { "class": "w-full flex items-center h-10 px-3 rounded-md border border-[#EFF0F6] bg-white" }; var _hoisted_4 = ["placeholder"]; var _hoisted_5 = { "class": "db-field w-full" }; var _hoisted_6 = { "class": "db-field w-full" }; var _hoisted_7 = { key: 0, "class": "form-col-12 sm:form-col-6 xl:form-col-2" }; var _hoisted_8 = { "class": "db-pos-cartDiv fixed top-0 ltr:right-0 rtl:left-0 w-full h-dvh rounded-none z-50 md:z-10 md:top-[85px] ltr:md:right-5 rtl:md:left-5 md:w-[322px] lg:w-[305px] xl:w-[360px] md:h-[calc(100vh-85px)] md:rounded-lg overflow-y-auto thin-scrolling bg-white" }; var _hoisted_9 = { "class": "p-4" }; var _hoisted_10 = { "class": "db-field mb-3" }; var _hoisted_11 = { "class": "flex gap-2 mb-3" }; var _hoisted_12 = { "class": "capitalize text-sm font-bold" }; var _hoisted_13 = { key: 0, "class": "flex items-center justify-center" }; var _hoisted_14 = ["src"]; var _hoisted_15 = { key: 1, "class": "p-4" }; var _hoisted_16 = { "class": "flex items-start gap-3 pb-4 mb-4 border-b last:mb-0 last:pb-0 last:border-none border-gray-100" }; var _hoisted_17 = ["src"]; var _hoisted_18 = { "class": "relative w-full overflow-hidden" }; var _hoisted_19 = { "class": "font-semibold capitalize whitespace-nowrap overflow-hidden text-ellipsis mb-1" }; var _hoisted_20 = { key: 0, "class": "flex flex-wrap mb-2" }; var _hoisted_21 = { "class": "text-xs capitalize inline-flex items-center" }; var _hoisted_22 = { "class": "flex flex-wrap gap-3 mb-3" }; var _hoisted_23 = { "class": "font-semibold font-sans" }; var _hoisted_24 = { key: 0, "class": "font-semibold font-sans text-[#FF6262]" }; var _hoisted_25 = { "class": "flex items-start justify-between gap-3" }; var _hoisted_26 = { "class": "flex items-center gap-1 w-20 p-1 rounded-full bg-[#F7F7FC]" }; var _hoisted_27 = ["onClick"]; var _hoisted_28 = ["onKeyup", "onUpdate:modelValue"]; var _hoisted_29 = ["onClick"]; var _hoisted_30 = ["onClick"]; var _hoisted_31 = { "class": "text-xs font-medium capitalize hidden sm:block" }; var _hoisted_32 = { "class": "p-4" }; var _hoisted_33 = { key: 0, "class": "flex h-[38px]" }; var _hoisted_34 = { "class": "db-field-down-arrow" }; var _hoisted_35 = ["value"]; var _hoisted_36 = ["value"]; var _hoisted_37 = ["placeholder"]; var _hoisted_38 = { key: 1, "class": "text-xs db-field-alert m-0 mt-1" }; var _hoisted_39 = { "class": "flex flex-col gap-1.5 mt-4 mb-4" }; var _hoisted_40 = { "class": "flex items-center justify-between" }; var _hoisted_41 = { "class": "text-sm font-client capitalize leading-6 text-[#2E2F38]" }; var _hoisted_42 = { "class": "text-sm font-client capitalize leading-6 text-[#2E2F38]" }; var _hoisted_43 = { "class": "flex items-center justify-between" }; var _hoisted_44 = { "class": "text-sm font-client capitalize leading-6" }; var _hoisted_45 = { "class": "text-sm font-client capitalize leading-6" }; var _hoisted_46 = { "class": "flex items-center justify-between" }; var _hoisted_47 = { "class": "text-sm font-client capitalize leading-6" }; var _hoisted_48 = { "class": "text-sm font-client capitalize leading-6" }; var _hoisted_49 = { "class": "flex items-center justify-between" }; var _hoisted_50 = { "class": "text-sm font-medium font-client capitalize leading-6 text-[#2E2F38]" }; var _hoisted_51 = { "class": "text-sm font-medium font-client capitalize leading-6 text-[#2E2F38]" }; var _hoisted_52 = { key: 2, "class": "flex items-center justify-center gap-6" }; var _hoisted_53 = { "class": "db-pos-cartBtn fixed md:hidden bottom-0 left-0 z-10 w-full h-14 py-4 text-center flex items-center justify-center shadow-xl-top gap-3 bg-primary text-white" }; var _hoisted_54 = { "class": "text-base font-medium" }; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_LoadingComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("LoadingComponent"); var _component_PoscustomerComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PoscustomerComponent"); var _component_vue_select = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("vue-select"); var _component_ProductListComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("ProductListComponent"); var _component_BarcodeProductComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("BarcodeProductComponent"); var _component_ReceiptComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("ReceiptComponent"); var _component_PaymentComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("PaymentComponent"); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_LoadingComponent, { props: $data.loading }, null, 8 /* PROPS */, ["props"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_PoscustomerComponent, { onOnCustomverCreate: $options.onCustomverCreate }, null, 8 /* PROPS */, ["onOnCustomverCreate"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("form", { "class": "w-full mb-4", onSubmit: _cache[7] || (_cache[7] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.search && $options.search.apply($options, arguments); }, ["prevent"])) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-col-12 sm:form-col-6", $data.checkoutProps.form.category || $data.checkoutProps.form.brand ? 'xl:form-col-4' : 'xl:form-col-4']) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [_cache[17] || (_cache[17] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { type: "submit", "class": "lab-line-search ltr:mr-2 rtl:ml-2" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { type: "search", "onUpdate:modelValue": _cache[0] || (_cache[0] = function ($event) { return $data.props.search.name = $event; }), placeholder: _ctx.$t('label.search_here'), "class": "w-full" }, null, 8 /* PROPS */, _hoisted_4), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.props.search.name]]), $data.props.search.name ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", { key: 0, onClick: _cache[1] || (_cache[1] = function () { return $options.resetName && $options.resetName.apply($options, arguments); }), type: "button", "class": "text-sm text-red-500 fa-regular fa-circle-xmark" })) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-col-12 sm:form-col-6", $data.checkoutProps.form.category || $data.checkoutProps.form.brand ? 'xl:form-col-3' : 'xl:form-col-4']) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_vue_select, { modelValue: $data.checkoutProps.form.category, "onUpdate:modelValue": [_cache[2] || (_cache[2] = function ($event) { return $data.checkoutProps.form.category = $event; }), _cache[3] || (_cache[3] = function ($event) { return $options.setCategory($event); })], "class": "db-field-control appearance-none cursor-pointer f-b-custom-select", id: "customer", options: $options.categories, "label-by": "option", "value-by": "id", closeOnSelect: true, searchable: true, clearOnClose: true, placeholder: _ctx.$t('label.select_category'), "search-placeholder": _ctx.$t('label.search_category') }, null, 8 /* PROPS */, ["modelValue", "options", "placeholder", "search-placeholder"])])], 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)(["form-col-12 sm:form-col-6", $data.checkoutProps.form.category || $data.checkoutProps.form.brand ? 'xl:form-col-3' : 'xl:form-col-4']) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_vue_select, { modelValue: $data.checkoutProps.form.brand, "onUpdate:modelValue": [_cache[4] || (_cache[4] = function ($event) { return $data.checkoutProps.form.brand = $event; }), _cache[5] || (_cache[5] = function ($event) { return $options.setBrand($event); })], "class": "db-field-control appearance-none cursor-pointer", id: "customer", options: $options.brands, "label-by": "name", "value-by": "id", closeOnSelect: true, searchable: true, clearOnClose: true, placeholder: _ctx.$t('label.select_brand'), "search-placeholder": _ctx.$t('label.search_brand') }, null, 8 /* PROPS */, ["modelValue", "options", "placeholder", "search-placeholder"])])], 2 /* CLASS */), $data.checkoutProps.form.category || $data.checkoutProps.form.brand ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { "class": "db-btn-outline h-[38px] w-full flex-shrink-0 !text-[#FB4E4E] !bg-white !border-[#FB4E4E]", onClick: _cache[6] || (_cache[6] = function () { return $options.reset && $options.reset.apply($options, arguments); }) }, [_cache[18] || (_cache[18] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab lab-line-reset" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("button.reset")), 1 /* TEXT */)])])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])], 32 /* NEED_HYDRATION */), $options.products.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_ProductListComponent, { key: 0, products: $options.products }, null, 8 /* PROPS */, ["products"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_8, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_9, [_cache[20] || (_cache[20] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": "md:hidden text-right mb-3" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { "class": "db-pos-cartCls" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab-line-circle-cross text-lg text-[#E93C3C]" })])], -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_BarcodeProductComponent)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_11, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_vue_select, { "class": "db-field-control w-full flex-auto text-sm rounded-lg appearance-none cursor-pointer text-heading border-[#D9DBE9]", id: "customer", modelValue: $data.checkoutProps.form.customer_id, "onUpdate:modelValue": _cache[8] || (_cache[8] = function ($event) { return $data.checkoutProps.form.customer_id = $event; }), options: $options.customers, "label-by": "name", "value-by": "id", closeOnSelect: true, searchable: true, clearOnClose: true, placeholder: _ctx.$t('label.select_customer'), "search-placeholder": _ctx.$t('label.search_customer') }, null, 8 /* PROPS */, ["modelValue", "options", "placeholder", "search-placeholder"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[9] || (_cache[9] = function () { return $options.addCustomer && $options.addCustomer.apply($options, arguments); }), type: "button", "class": "flex items-center justify-center gap-1.5 px-3 h-10 rounded-lg text-white bg-primary" }, [_cache[19] || (_cache[19] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab lab-add-circle-line" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_12, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.add')), 1 /* TEXT */)])])]), $options.carts.length === 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { "class": "w-52", src: $options.setting.image_cart, alt: "empty" }, null, 8 /* PROPS */, _hoisted_14)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), $options.carts.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("ul", _hoisted_15, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.carts, function (cart, index) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("li", _hoisted_16, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { src: cart.image, alt: "products", "class": "w-28 rounded-lg flex-shrink-0" }, null, 8 /* PROPS */, _hoisted_17), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_18, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h4", _hoisted_19, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(cart.name), 1 /* TEXT */), cart.variation_id > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_20, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_21, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(cart.variation_names), 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_23, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat(cart.price, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */), cart.discount > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("del", _hoisted_24, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat(cart.old_price, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_25, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.quantityDecrement(index, cart); }, ["prevent"]), type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([cart.quantity === 1 ? 'cursor-not-allowed' : '', "lab-fill-circle-minus text-lg leading-none transition-all duration-300 hover:text-primary"]) }, null, 10 /* CLASS, PROPS */, _hoisted_27), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { onKeypress: _cache[10] || (_cache[10] = function ($event) { return $options.onlyNumber($event); }), onKeyup: function onKeyup($event) { return $options.quantityUp(index, cart, $event); }, type: "number", "onUpdate:modelValue": function onUpdateModelValue($event) { return cart.quantity = $event; }, "class": "text-center w-full h-5 text-sm font-medium" }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_28), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, cart.quantity]]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([cart.quantity >= cart.stock ? 'cursor-not-allowed' : '', "lab-fill-circle-plus text-lg leading-none transition-all duration-300 hover:text-primary"]), onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.quantityIncrement(index, cart); }, ["prevent"]), type: "button" }, null, 10 /* CLASS, PROPS */, _hoisted_29)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.removeProduct(index); }, ["prevent"]), "class": "flex items-center gap-1.5 px-2.5 py-1 rounded-full bg-[#FFF4F4] text-[#E93C3C] transition-all duration-300 hover:bg-[#E93C3C] hover:text-white" }, [_cache[21] || (_cache[21] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab-line-trash text-sm" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_31, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.remove')), 1 /* TEXT */)], 8 /* PROPS */, _hoisted_30)])])]); }), 256 /* UNKEYED_FRAGMENT */))])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_32, [$options.carts.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_33, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_34, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("select", { "onUpdate:modelValue": _cache[11] || (_cache[11] = function ($event) { return $data.discountType = $event; }), "class": "w-[120px] h-full cursor-pointer text-sm font-client ltr:rounded-tl ltr:rounded-bl rtl:rounded-tr rtl:rounded-br appearance-none border ltr:pl-3 rtl:pr-3 text-heading border-[#EFF0F6]" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: $data.discountTypeEnum.PERCENTAGE }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.percentage")), 9 /* TEXT, PROPS */, _hoisted_35), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("option", { value: $data.discountTypeEnum.FIXED }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.fixed")), 9 /* TEXT, PROPS */, _hoisted_36)], 512 /* NEED_PATCH */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelSelect, $data.discountType]])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { "onUpdate:modelValue": _cache[12] || (_cache[12] = function ($event) { return $data.discount = $event; }), type: "text", onKeypress: _cache[13] || (_cache[13] = function ($event) { return $options.floatNumber($event); }), placeholder: _ctx.$t('label.add_discount'), "class": "w-full h-full border-t border-b px-3 border-[#EFF0F6]" }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_37), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.discount]]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[14] || (_cache[14] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.applyDiscount && $options.applyDiscount.apply($options, arguments); }, ["prevent"])), type: "submit", "class": "flex-shrink-0 w-16 h-full text-sm font-medium font-client capitalize ltr:rounded-tr ltr:rounded-br rtl:rounded-tl rtl:rounded-bl text-white bg-[#008BBA]" }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.apply')), 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), $data.discountErrorMessage ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_38, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.discountErrorMessage), 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("ul", _hoisted_39, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("li", _hoisted_40, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_41, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.sub_total")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_42, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($options.subtotal, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("li", _hoisted_43, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_44, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.tax')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_45, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($options.totalTax, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("li", _hoisted_46, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_47, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.discount")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_48, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($options.posDiscount, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("li", _hoisted_49, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_50, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.total")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_51, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($options.subtotal + $options.totalTax - $options.posDiscount, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)])]), $options.carts.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_52, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[15] || (_cache[15] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.resetCart && $options.resetCart.apply($options, arguments); }, ["prevent"])), "class": "capitalize text-sm font-medium leading-6 font-client w-full text-center rounded-3xl py-2 text-white bg-[#FB4E4E]" }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.cancel')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[16] || (_cache[16] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.orderPayment && $options.orderPayment.apply($options, arguments); }, ["prevent"])), "class": "capitalize text-sm font-medium leading-6 font-client w-full text-center rounded-3xl py-2 text-white bg-[#1AB759]" }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.order')), 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", _hoisted_53, [_cache[22] || (_cache[22] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab-fill-bag text-xl" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_54, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.totalProducts()) + " " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.products')) + " - " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($options.subtotal + $options.totalTax - $options.posDiscount, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_ReceiptComponent, { order: $data.order }, null, 8 /* PROPS */, ["order"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_PaymentComponent, { onOrderSubmit: $options.orderSubmit, total: $options.currencyFormat($options.subtotal + $options.totalTax - $options.posDiscount, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position) }, null, 8 /* PROPS */, ["onOrderSubmit", "total"])], 64 /* STABLE_FRAGMENT */); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=template&id=5d1da491": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=template&id=5d1da491 ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { id: "customerModal", "class": "modal" }; var _hoisted_2 = { "class": "modal-dialog max-w-[840px]" }; var _hoisted_3 = { "class": "modal-header hidden-print" }; var _hoisted_4 = { "class": "drawer-title" }; var _hoisted_5 = { "class": "modal-body" }; var _hoisted_6 = { "class": "form-row" }; var _hoisted_7 = { "class": "form-col-12 sm:form-col-6" }; var _hoisted_8 = { "for": "name", "class": "db-field-title required" }; var _hoisted_9 = { key: 0, "class": "db-field-alert" }; var _hoisted_10 = { "class": "form-col-12 sm:form-col-6" }; var _hoisted_11 = { "for": "email", "class": "db-field-title required" }; var _hoisted_12 = { key: 0, "class": "db-field-alert" }; var _hoisted_13 = { "class": "form-col-12 sm:form-col-6" }; var _hoisted_14 = { "for": "phone", "class": "text-xs uppercase mb-1 text-heading" }; var _hoisted_15 = { "class": "w-fit flex-shrink-0 dropdown-group" }; var _hoisted_16 = { type: "button", "class": "flex items-center gap-1 dropdown-btn" }; var _hoisted_17 = { "class": "whitespace-nowrap flex-shrink-0 text-xs" }; var _hoisted_18 = { "class": "p-1.5 w-24 rounded-lg shadow-xl absolute top-8 -left-4 z-10 border border-gray-200 bg-white scale-y-0 origin-top dropdown-list !h-52 !overflow-x-hidden !overflow-y-auto thin-scrolling" }; var _hoisted_19 = ["onClick"]; var _hoisted_20 = { "class": "whitespace-nowrap text-xs" }; var _hoisted_21 = { key: 0, "class": "db-field-alert" }; var _hoisted_22 = { "class": "form-col-12 sm:form-col-6" }; var _hoisted_23 = { "class": "db-field-title required", "for": "active" }; var _hoisted_24 = { "class": "db-field-radio-group" }; var _hoisted_25 = { "class": "db-field-radio" }; var _hoisted_26 = { "class": "custom-radio" }; var _hoisted_27 = ["value"]; var _hoisted_28 = { "for": "active", "class": "db-field-label" }; var _hoisted_29 = { "class": "db-field-radio" }; var _hoisted_30 = { "class": "custom-radio" }; var _hoisted_31 = ["value"]; var _hoisted_32 = { "for": "inactive", "class": "db-field-label" }; var _hoisted_33 = { key: 0, "class": "db-field-alert" }; var _hoisted_34 = { "class": "form-col-12 sm:form-col-6" }; var _hoisted_35 = { "for": "password", "class": "db-field-title required" }; var _hoisted_36 = { key: 0, "class": "db-field-alert" }; var _hoisted_37 = { "class": "form-col-12 sm:form-col-6" }; var _hoisted_38 = { "for": "password_confirmation", "class": "db-field-title required" }; var _hoisted_39 = { key: 0, "class": "db-field-alert" }; var _hoisted_40 = { "class": "form-col-12" }; var _hoisted_41 = { "class": "flex flex-wrap gap-3 mt-4" }; var _hoisted_42 = { type: "submit", "class": "db-btn py-2 text-white bg-primary" }; function render(_ctx, _cache, $props, $setup, $data, $options) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("menu.customers")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { "class": "fa-solid fa-xmark close-btn", onClick: _cache[0] || (_cache[0] = function () { return $options.reset && $options.reset.apply($options, arguments); }) })]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("form", { onSubmit: _cache[10] || (_cache[10] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.save && $options.save.apply($options, arguments); }, ["prevent"])) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_8, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.name")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { return $data.props.form.name = $event; }), "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.errors.name ? 'invalid' : '', "db-field-control"]), type: "text", id: "name" }, null, 2 /* CLASS */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.props.form.name]]), $data.errors.name ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", _hoisted_9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.errors.name[0]), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_11, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.email")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { "onUpdate:modelValue": _cache[2] || (_cache[2] = function ($event) { return $data.props.form.email = $event; }), "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.errors.email ? 'invalid' : '', "db-field-control"]), type: "text", id: "email" }, null, 2 /* CLASS */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.props.form.email]]), $data.errors.email ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", _hoisted_12, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.errors.email[0]), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_14, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.phone')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", { "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.errors.phone ? 'invalid' : '', "db-field-control flex items-center"]) }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_15, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", _hoisted_16, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.flag) + " ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_17, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.props.form.country_code), 1 /* TEXT */), _cache[11] || (_cache[11] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "fa-solid fa-caret-down text-xs" }, null, -1 /* CACHED */))]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("ul", _hoisted_18, [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.countryCodes, function (countryCode) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("li", { onClick: function onClick($event) { return $options.change(countryCode); }, "class": "flex items-center gap-2 p-1.5 rounded-md cursor-pointer hover:bg-gray-100" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(countryCode.flag_emoji) + " ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_20, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(countryCode.calling_code), 1 /* TEXT */)], 8 /* PROPS */, _hoisted_19); }), 256 /* UNKEYED_FRAGMENT */))])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { "onUpdate:modelValue": _cache[3] || (_cache[3] = function ($event) { return $data.props.form.phone = $event; }), onKeypress: _cache[4] || (_cache[4] = function ($event) { return $options.phoneNumber($event); }), "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.errors.phone ? 'invalid' : '', "pl-2 text-sm w-full h-full"]), type: "text", id: "phone" }, null, 34 /* CLASS, NEED_HYDRATION */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.props.form.phone]])], 2 /* CLASS */), $data.errors.phone ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", _hoisted_21, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.errors.phone[0]), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_22, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_23, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.status")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_24, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_25, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { value: $data.enums.statusEnum.ACTIVE, "onUpdate:modelValue": _cache[5] || (_cache[5] = function ($event) { return $data.props.form.status = $event; }), id: "active", type: "radio", "class": "custom-radio-field" }, null, 8 /* PROPS */, _hoisted_27), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelRadio, $data.props.form.status]]), _cache[12] || (_cache[12] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { "class": "custom-radio-span" }, null, -1 /* CACHED */))]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_28, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.active")), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_29, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_30, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { value: $data.enums.statusEnum.INACTIVE, "onUpdate:modelValue": _cache[6] || (_cache[6] = function ($event) { return $data.props.form.status = $event; }), type: "radio", id: "inactive", "class": "custom-radio-field" }, null, 8 /* PROPS */, _hoisted_31), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelRadio, $data.props.form.status]]), _cache[13] || (_cache[13] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", { "class": "custom-radio-span" }, null, -1 /* CACHED */))]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_32, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.inactive")), 1 /* TEXT */)])]), $data.errors.status ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", _hoisted_33, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.errors.status[0]), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_34, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_35, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.password")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { "onUpdate:modelValue": _cache[7] || (_cache[7] = function ($event) { return $data.props.form.password = $event; }), "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.errors.password ? 'invalid' : '', "db-field-control"]), type: "password", id: "password", autocomplete: "off" }, null, 2 /* CLASS */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.props.form.password]]), $data.errors.password ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", _hoisted_36, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.errors.password[0]), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_37, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("label", _hoisted_38, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.confirm_password")), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { "onUpdate:modelValue": _cache[8] || (_cache[8] = function ($event) { return $data.props.form.password_confirmation = $event; }), "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.errors.password_confirmation ? 'invalid' : '', "db-field-control"]), type: "password", id: "password_confirmation", autocomplete: "off" }, null, 2 /* CLASS */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.props.form.password_confirmation]]), $data.errors.password_confirmation ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("small", _hoisted_39, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.errors.password_confirmation[0]), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_40, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_41, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", _hoisted_42, [_cache[14] || (_cache[14] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab lab-fill-save" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("label.save")), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { type: "button", "class": "modal-btn-outline modal-close", onClick: _cache[9] || (_cache[9] = function () { return $options.reset && $options.reset.apply($options, arguments); }) }, [_cache[15] || (_cache[15] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab lab-fill-close-circle" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("button.close")), 1 /* TEXT */)])])])])], 32 /* NEED_HYDRATION */)])])]); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=template&id=04213614": /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=template&id=04213614 ***! \********************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { "class": "row p-4" }; var _hoisted_2 = { key: 0, "class": "col-12 sm:col-6 lg:col-5" }; var _hoisted_3 = ["src"]; var _hoisted_4 = ["src"]; var _hoisted_5 = { key: 1, "class": "col-12 sm:col-6 lg:col-5" }; var _hoisted_6 = ["src"]; var _hoisted_7 = { "class": "col-12 sm:col-6 lg:col-7 lg:pl-10" }; var _hoisted_8 = { "class": "text-3xl sm:text-4xl font-bold capitalize mb-5" }; var _hoisted_9 = { "class": "flex items-start gap-4 mb-5" }; var _hoisted_10 = { "class": "text-2xl font-bold" }; var _hoisted_11 = { key: 0, "class": "text-lg font-bold text-shopperz-red" }; var _hoisted_12 = { "class": "flex flex-wrap items-center gap-2 border-b border-gray-100 mb-6 pb-6" }; var _hoisted_13 = { key: 0, "class": "flex items-center gap-1" }; var _hoisted_14 = { "class": "text-base font-medium whitespace-nowrap text-text" }; var _hoisted_15 = { "class": "text-base font-medium whitespace-nowrap text-text hover:text-primary cursor-pointer" }; var _hoisted_16 = { "class": "flex flex-wrap items-center gap-x-6 gap-y-3 mb-8" }; var _hoisted_17 = { "class": "capitalize text-lg font-semibold" }; var _hoisted_18 = { "class": "flex items-center gap-6" }; var _hoisted_19 = { "class": "flex items-center gap-1 w-20 p-1 rounded-full bg-[#F7F7FC]" }; var _hoisted_20 = { key: 0 }; var _hoisted_21 = { key: 0, "class": "capitalize" }; var _hoisted_22 = { key: 1, "class": "capitalize text-danger" }; var _hoisted_23 = { key: 1, "class": "flex flex-wrap items-center gap-x-6 gap-y-3 mb-8" }; var _hoisted_24 = { "class": "capitalize text-lg font-semibold" }; var _hoisted_25 = { "class": "flex items-center gap-6 text-green-500 font-semibold text-lg" }; var _hoisted_26 = { "class": "flex flex-wrap items-center gap-8 mb-10" }; var _hoisted_27 = ["disabled"]; var _hoisted_28 = { "class": "whitespace-nowrap font-bold" }; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_LoadingComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("LoadingComponent"); var _component_SwiperSlide = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("SwiperSlide"); var _component_Swiper = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("Swiper"); var _component_starRating = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("starRating"); var _component_VariationComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("VariationComponent"); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_LoadingComponent, { props: $data.loading }, null, 8 /* PROPS */, ["props"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1, [$options.images.length ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Swiper, { dir: "ltr", spaceBetween: 10, navigation: true, thumbs: { swiper: $setup.thumbsSwiper }, modules: $setup.modules, "class": "gallery-swiper" }, { "default": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () { return [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.images, function (image, index) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_SwiperSlide, { key: index, "class": "w-full" }, { "default": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () { return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { "class": "w-full rounded-2xl", src: image, alt: "gallery" }, null, 8 /* PROPS */, _hoisted_3)]; }), _: 2 /* DYNAMIC */ }, 1024 /* DYNAMIC_SLOTS */); }), 128 /* KEYED_FRAGMENT */))]; }), _: 1 /* STABLE */ }, 8 /* PROPS */, ["thumbs", "modules"]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_Swiper, { dir: "ltr", onSwiper: $setup.setThumbsSwiper, spaceBetween: 12, slidesPerView: 4, freeMode: true, watchSlidesProgress: true, modules: $setup.modules, "class": "thumb-swiper" }, { "default": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () { return [((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.images, function (image, index) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_SwiperSlide, { key: index, "class": "w-full cursor-pointer rounded-lg border border-gray-200 transition-all duration-500" }, { "default": (0,vue__WEBPACK_IMPORTED_MODULE_0__.withCtx)(function () { return [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { "class": "w-full rounded-lg border-2 border-gray-200 transition-all duration-500", src: image, alt: "gallery" }, null, 8 /* PROPS */, _hoisted_4)]; }), _: 2 /* DYNAMIC */ }, 1024 /* DYNAMIC_SLOTS */); }), 128 /* KEYED_FRAGMENT */))]; }), _: 1 /* STABLE */ }, 8 /* PROPS */, ["onSwiper", "modules"])])) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_5, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { src: $options.product.image, alt: "products", "class": "w-full rounded-2xl" }, null, 8 /* PROPS */, _hoisted_6)])), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h2", _hoisted_8, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.product.name), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_9, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_10, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($data.temp.price, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */), $options.product.is_offer ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("del", _hoisted_11, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($data.temp.oldPrice, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_12, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_starRating, { "border-color": "#FFBC1F", "rounded-corners": true, padding: 2.5, "border-width": 2.5, "star-size": 11, "class": "-mt-0.5", "inactive-color": "#FFFFFF", "active-color": "#FFBC1F", "round-start-rating": false, "show-rating": false, "read-only": true, "max-rating": 5, rating: $options.product.rating_star / $options.product.rating_star_count }, null, 8 /* PROPS */, ["rating"]), $options.product.rating_star_count > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_14, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(($options.product.rating_star / $options.product.rating_star_count).toFixed(1)), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_15, " (" + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.product.rating_star_count) + " " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.product.rating_star_count > 1 ? _ctx.$t('label.reviews') : _ctx.$t('label.review')) + ") ", 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), $options.initialVariations.length > 0 && $data.variationComponent ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_VariationComponent, { key: 0, method: $options.selectedVariationMethod, variations: $options.initialVariations }, null, 8 /* PROPS */, ["method", "variations"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("dl", _hoisted_16, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("dt", _hoisted_17, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.quantity')) + ":", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("dd", _hoisted_18, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[0] || (_cache[0] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.quantityDecrement && $options.quantityDecrement.apply($options, arguments); }, ["prevent"])), type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.temp.quantity === 1 ? 'cursor-not-allowed' : '', "lab-fill-circle-minus text-lg leading-none transition-all duration-300 hover:text-primary"]) }, null, 2 /* CLASS */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)((0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("input", { type: "number", "onUpdate:modelValue": _cache[1] || (_cache[1] = function ($event) { return $data.temp.quantity = $event; }), onKeypress: _cache[2] || (_cache[2] = function ($event) { return $options.onlyNumber($event); }), onKeyup: _cache[3] || (_cache[3] = function () { return $options.quantityUp && $options.quantityUp.apply($options, arguments); }), "class": "text-center w-full h-5 text-sm font-medium" }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [[vue__WEBPACK_IMPORTED_MODULE_0__.vModelText, $data.temp.quantity]]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[4] || (_cache[4] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.quantityIncrement && $options.quantityIncrement.apply($options, arguments); }, ["prevent"])), type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.temp.stock === $data.temp.quantity ? 'cursor-not-allowed' : '', "lab-fill-circle-plus text-lg leading-none transition-all duration-300 hover:text-primary"]) }, null, 2 /* CLASS */)]), !$options.initialVariations.length || $data.selectedVariation != null ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_20, [$data.temp.stock > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("p", _hoisted_21, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)((0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.available')) + ": ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("b", null, "(" + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($data.temp.stock) + ") ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createTextVNode)(" " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.product.unit), 1 /* TEXT */)])) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("p", _hoisted_22, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.stock_out')), 1 /* TEXT */))])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), $data.temp.quantity > 1 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("dl", _hoisted_23, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("dt", _hoisted_24, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.total_price')) + ":", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("dd", _hoisted_25, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.currencyFormat($data.temp.totalPrice, $options.setting.site_digit_after_decimal_point, $options.setting.site_default_currency_symbol, $options.setting.site_currency_position)), 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_26, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[5] || (_cache[5] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function () { return $options.addToCart && $options.addToCart.apply($options, arguments); }, ["prevent"])), disabled: $data.enableAddToCardButton, type: "button", "class": (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([$data.enableAddToCardButton === false ? 'shadow-btn-primary !bg-primary' : '', "flex items-center gap-3 px-8 h-12 leading-12 rounded-full transition-all duration-500 bg-slate-400 text-white"]) }, [_cache[6] || (_cache[6] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab-line-bag text-xl" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_28, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t("button.add_to_cart")), 1 /* TEXT */)], 10 /* CLASS, PROPS */, _hoisted_27)])])])], 64 /* STABLE_FRAGMENT */); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=template&id=06e7a096": /*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=template&id=06e7a096 ***! \*****************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { "class": "grid gap-3 sm:gap-[18px] grid-cols-[repeat(auto-fill,_minmax(140px,_1fr))] sm:grid-cols-[repeat(auto-fill,_minmax(185px,_1fr))] mb-8 md:mb-0" }; var _hoisted_2 = ["onClick"]; var _hoisted_3 = { "class": "relative overflow-hidden rounded-xl isolate" }; var _hoisted_4 = { key: 0, "class": "capitalize text-xs font-semibold rounded-xl py-1 px-2 shadow-badge absolute top-3 left-3 z-10 bg-secondary text-white" }; var _hoisted_5 = ["src"]; var _hoisted_6 = { "class": "px-1 sm:px-0 pt-4 pb-2" }; var _hoisted_7 = { "class": "capitalize text-base font-semibold whitespace-nowrap mb-1.5 transition-all duration-300 hover:text-primary overflow-hidden" }; var _hoisted_8 = { "class": "flex flex-wrap items-center gap-2 mb-5" }; var _hoisted_9 = { "class": "flex items-center gap-1" }; var _hoisted_10 = { key: 0, "class": "flex items-center gap-1 mt-[5px]" }; var _hoisted_11 = { "class": "text-xs font-medium whitespace-nowrap text-text" }; var _hoisted_12 = { "class": "text-xs font-medium whitespace-nowrap text-text hover:text-primary" }; var _hoisted_13 = { key: 0, "class": "flex flex-wrap-reverse items-center gap-x-3 gap-y-1" }; var _hoisted_14 = { "class": "text-xl sm:text-[22px] font-bold" }; var _hoisted_15 = { "class": "text-sm sm:text-base font-semibold text-shopperz-red" }; var _hoisted_16 = { key: 1, "class": "text-xl sm:text-[22px] font-bold" }; var _hoisted_17 = { id: "variation-modal", "class": "fixed inset-0 z-50 p-3 w-screen h-dvh overflow-y-auto bg-black/50 transition-all duration-500 opacity-0 invisible" }; var _hoisted_18 = { "class": "w-full rounded-xl mx-auto bg-white transition-all duration-500 max-w-4xl" }; var _hoisted_19 = { "class": "flex items-center justify-between gap-2 py-4 px-4 border-b border-slate-100" }; var _hoisted_20 = { "class": "text-lg font-bold capitalize" }; function render(_ctx, _cache, $props, $setup, $data, $options) { var _component_starRating = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("starRating"); var _component_ProductDetailsComponent = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveComponent)("ProductDetailsComponent"); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_1, [$props.products.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($props.products, function (product) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", { onClick: (0,vue__WEBPACK_IMPORTED_MODULE_0__.withModifiers)(function ($event) { return $options.handleProductModal(product); }, ["prevent"]), "data-modal": "#modal", "class": "sm:p-2 rounded-2xl sm:shadow-card transition-all duration-300 sm:hover:shadow-hover group bg-white cursor-pointer" }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [product.is_offer && product.flash_sale ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("label", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.flash_sale')), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("img", { src: product.cover, alt: "product", "class": "w-full rounded-xl transition-all duration-300 group-hover:scale-105 group-hover:rotate-3" }, null, 8 /* PROPS */, _hoisted_5)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_6, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_7, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.name), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_8, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_9, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(_component_starRating, { "border-color": "#FFBC1F", "rounded-corners": true, padding: 2.5, "border-width": 2.5, "star-size": 9, "class": "mt-[2px]", "inactive-color": "#FFFFFF", "active-color": "#FFBC1F", "round-start-rating": false, "show-rating": false, "read-only": true, "max-rating": 5, rating: product.rating_star / product.rating_star_count }, null, 8 /* PROPS */, ["rating"])]), product.rating_star_count > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_10, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_11, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)((product.rating_star / product.rating_star_count).toFixed(1)), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_12, "(" + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.rating_star_count) + " " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.rating_star_count > 1 ? _ctx.$t('label.reviews') : _ctx.$t('label.review')) + ")", 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), product.is_offer ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_13, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_14, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.discounted_price), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h4", _hoisted_15, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("del", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.currency_price), 1 /* TEXT */)])])) : ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("h4", _hoisted_16, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.currency_price), 1 /* TEXT */)]))])], 8 /* PROPS */, _hoisted_2); }), 256 /* UNKEYED_FRAGMENT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_17, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_18, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_19, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_20, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.product_variation')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { onClick: _cache[0] || (_cache[0] = function () { return $options.reset && $options.reset.apply($options, arguments); }), type: "button", "class": "lab-line-circle-cross text-lg text-[#E93C3C]" })]), $data.productId ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createBlock)(_component_ProductDetailsComponent, { key: 0, method: $options.reset, productId: $data.productId }, null, 8 /* PROPS */, ["method", "productId"])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])], 64 /* STABLE_FRAGMENT */); } /***/ }), /***/ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* binding */ render) /* harmony export */ }); /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm-bundler.js"); var _hoisted_1 = { id: "posReceiptModal", "class": "modal" }; var _hoisted_2 = { "class": "modal-dialog max-w-[340px] rounded-none", id: "print" }; var _hoisted_3 = { "class": "modal-header hidden-print" }; var _hoisted_4 = { "class": "text-xs leading-5 capitalize text-white" }; var _hoisted_5 = { type: "button", "class": "flex items-center justify-center gap-1.5 py-2 px-4 rounded bg-[#1AB759]" }; var _hoisted_6 = { "class": "text-xs leading-5 capitalize text-white" }; var _hoisted_7 = { "class": "modal-body" }; var _hoisted_8 = { "class": "text-center pb-3.5 border-b border-dashed border-gray-400" }; var _hoisted_9 = { "class": "text-2xl font-bold mb-1" }; var _hoisted_10 = { "class": "text-sm font-normal" }; var _hoisted_11 = { "class": "text-sm font-normal" }; var _hoisted_12 = { "class": "w-full my-1.5" }; var _hoisted_13 = { "class": "text-xs text-left py-0.5 text-heading" }; var _hoisted_14 = { "class": "text-xs text-left py-0.5 text-heading" }; var _hoisted_15 = { "class": "text-xs text-right py-0.5 text-heading" }; var _hoisted_16 = { "class": "w-full" }; var _hoisted_17 = { "class": "border-t border-b border-dashed border-gray-400" }; var _hoisted_18 = { scope: "col", "class": "py-1 font-normal text-xs capitalize text-left text-heading w-8" }; var _hoisted_19 = { scope: "col", "class": "py-1 font-normal text-xs capitalize flex items-center justify-between text-heading" }; var _hoisted_20 = { "class": "border-b border-dashed border-gray-400" }; var _hoisted_21 = { "class": "text-left font-normal align-top py-1" }; var _hoisted_22 = { "class": "text-xs leading-5 text-heading" }; var _hoisted_23 = { "class": "text-left font-normal align-top py-1" }; var _hoisted_24 = { "class": "flex items-center justify-between" }; var _hoisted_25 = { "class": "text-xs leading-5 text-heading" }; var _hoisted_26 = { "class": "text-xs leading-5 text-heading" }; var _hoisted_27 = { key: 0, "class": "text-xs leading-5 text-heading max-w-[200px]" }; var _hoisted_28 = { "class": "py-2 pl-7" }; var _hoisted_29 = { "class": "w-full" }; var _hoisted_30 = { "class": "text-xs text-left py-0.5 uppercase text-heading" }; var _hoisted_31 = { "class": "text-xs text-right py-0.5 text-heading" }; var _hoisted_32 = { "class": "text-xs text-left py-0.5 uppercase text-heading" }; var _hoisted_33 = { "class": "text-xs text-right py-0.5 text-heading" }; var _hoisted_34 = { "class": "text-xs text-left py-0.5 uppercase text-heading" }; var _hoisted_35 = { "class": "text-xs text-right py-0.5 text-heading" }; var _hoisted_36 = { "class": "text-xs text-left py-0.5 font-bold uppercase text-heading" }; var _hoisted_37 = { "class": "text-xs text-right py-0.5 font-bold text-heading" }; var _hoisted_38 = { "class": "text-xs py-2 border-t border-b border-dashed border-gray-400 text-heading" }; var _hoisted_39 = { "class": "w-full" }; var _hoisted_40 = { "class": "pt-1 pb-1 pr-1 align-top text-start" }; var _hoisted_41 = { key: 0, "class": "pt-1 pb-1 text-end" }; var _hoisted_42 = { "class": "text-center pt-2 pb-4" }; var _hoisted_43 = { "class": "text-[11px] leading-[14px] capitalize text-heading" }; var _hoisted_44 = { "class": "text-[11px] leading-[14px] capitalize text-heading" }; var _hoisted_45 = { "class": "flex flex-col items-end" }; var _hoisted_46 = { "class": "text-[8px] font-normal text-left w-[46px] leading-[10px]" }; var _hoisted_47 = { "class": "text-xs font-normal leading-4" }; function render(_ctx, _cache, $props, $setup, $data, $options) { var _directive_print = (0,vue__WEBPACK_IMPORTED_MODULE_0__.resolveDirective)("print"); return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("div", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_3, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("button", { type: "button", onClick: _cache[0] || (_cache[0] = function () { return $options.reset && $options.reset.apply($options, arguments); }), "class": "modal-close flex items-center justify-center gap-1.5 py-2 px-4 rounded bg-[#FB4E4E]" }, [_cache[1] || (_cache[1] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab lab-fill-close-circle lab-font-size-16 text-white" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.close')), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.withDirectives)(((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("button", _hoisted_5, [_cache[2] || (_cache[2] = (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("i", { "class": "lab lab-fill-printer lab-font-size-16 text-white" }, null, -1 /* CACHED */)), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", _hoisted_6, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('button.print_invoice')), 1 /* TEXT */)])), [[_directive_print, $data.printObj]])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_7, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_8, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h3", _hoisted_9, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.company.company_name), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h4", _hoisted_10, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.company.company_address), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h5", _hoisted_11, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.tel')) + ": " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.company.company_calling_code) + " " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.company.company_phone), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("table", _hoisted_12, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tbody", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_13, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.order_id')) + " #" + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.order_serial_no), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_14, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.order_date), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_15, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.order_time), 1 /* TEXT */)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("table", _hoisted_16, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("thead", _hoisted_17, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("th", _hoisted_18, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.qty')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("th", _hoisted_19, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.product_description')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.price')), 1 /* TEXT */)])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tbody", _hoisted_20, [$options.orderProducts.length > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(true), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, { key: 0 }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.renderList)($options.orderProducts, function (product) { return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("tr", { key: product }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_21, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_22, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.quantity), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_23, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_24, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_25, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.product_name), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_26, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.subtotal_currency_price), 1 /* TEXT */)]), product.variation_names ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("p", _hoisted_27, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(product.variation_names), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]); }), 128 /* KEYED_FRAGMENT */)) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_28, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("table", _hoisted_29, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tbody", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_30, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.subtotal')) + ": ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_31, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.subtotal_currency_price), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_32, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.tax_fee')) + ": ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_33, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.tax_currency_price), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_34, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.discount')) + ": ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_35, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.discount_currency_price), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_36, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.total')) + ": ", 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_37, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.total_currency_price), 1 /* TEXT */)])])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_38, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("table", _hoisted_39, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tbody", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("tr", null, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("td", _hoisted_40, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.payment_type')) + ": " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.pos_payment_method_name), 1 /* TEXT */), $props.order.pos_received_amount > 0 ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)("td", _hoisted_41, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.cash')) + ": " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.pos_currency_received_amount), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("span", null, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.change')) + " : " + (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($props.order.change_currency_amount), 1 /* TEXT */)])) : (0,vue__WEBPACK_IMPORTED_MODULE_0__.createCommentVNode)("v-if", true)])])])]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_42, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_43, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('message.thank_you')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("p", _hoisted_44, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('message.please_come_again')), 1 /* TEXT */)]), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("div", _hoisted_45, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h5", _hoisted_46, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)(_ctx.$t('label.powered_by')), 1 /* TEXT */), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)("h6", _hoisted_47, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($options.company.company_name), 1 /* TEXT */)])])])]); } /***/ }), /***/ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css": /*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\ !*** ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css ***! \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! !../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js */ "./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"); /* harmony import */ var _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_style_index_0_id_773e416b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! !!../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!../../../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css */ "./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css"); var options = {}; options.insert = "head"; options.singleton = false; var update = _node_modules_style_loader_dist_runtime_injectStylesIntoStyleTag_js__WEBPACK_IMPORTED_MODULE_0___default()(_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_style_index_0_id_773e416b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"], options); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_style_index_0_id_773e416b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_1__["default"].locals || {}); /***/ }), /***/ "./node_modules/vue3-print-nb/dist/vue3-print-nb.es.js": /*!*************************************************************!*\ !*** ./node_modules/vue3-print-nb/dist/vue3-print-nb.es.js ***! \*************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); class e{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl((function(e){let i=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(i)}),t.settings.vue);let i=this.getPrintWindow(e);this.settings.url||this.write(i.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(i)}addEvent(e,t,i){e.addEventListener?e.addEventListener(t,i,!1):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,i=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(i,"load",(function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()})),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",(function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),i.contentWindow.print(),t.settings.closeCallback()}))}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(t){console.log(t)}}print(e){var t=this;let i=document.getElementById(this.settings.id)||e.f,l=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(i,"load",(function(){l.focus(),t.settings.openCallback(),l.print(),i.remove(),t.settings.closeCallback(),t.removeCanvasImg()}))}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",i="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,(t=>{e+=t})),[].forEach.call(document.querySelectorAll("link"),(function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)}));let l=document.styleSheets;if(l&&l.length>0)for(let r=0;r<l.length;r++)try{if(l[r].cssRules||l[r].rules){let e=l[r].cssRules||l[r].rules;for(let t=0;t<e.length;t++)i+=e[t].cssText}}catch(s){console.log(l[r].href+s)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,(e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`})),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${i}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let i=0;i<t.length;i++)if(!t[i].style.display){let e=t[i].parentNode,l=t[i].toDataURL("image/png"),s=new Image;s.className="canvasImg",s.style.display="none",s.src=l,e.appendChild(s)}return e}getFormData(e){let t=e.cloneNode(!0),i=t.querySelectorAll("input,select,textarea"),l=t.querySelectorAll(".canvasImg,canvas"),s=-1;for(let r=0;r<l.length;r++){let e=l[r].parentNode,t=l[r];"canvas"===t.tagName.toLowerCase()?e.removeChild(t):t.style.display="block"}for(let r=0;r<i.length;r++){let t=i[r],l=t.getAttribute("type"),n=i[r];if(l||(l="SELECT"===t.tagName?"select":"TEXTAREA"===t.tagName?"textarea":""),"INPUT"===t.tagName)"radio"===l||"checkbox"===l?t.checked&&n.setAttribute("checked",t.checked):(n.value=t.value,n.setAttribute("value",t.value));else if("select"===l){s++;for(let i=0;i<e.querySelectorAll("select").length;i++){let l=e.querySelectorAll("select")[i];if(!l.getAttribute("newbs")&&l.setAttribute("newbs",i),l.getAttribute("newbs")==s){let i=e.querySelectorAll("select")[s].selectedIndex;t.options[i].setAttribute("selected",!0)}}}else n.innerHTML=t.value,n.setAttribute("html",t.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox"),t="previewBody";if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let i=document.createElement("div");i.setAttribute("id","vue-pirnt-nb-previewBox"),i.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),i.style.zIndex=this.settings.zIndex;let l=document.createElement("div");l.setAttribute("class","previewHeader"),l.setAttribute("style","padding: 5px 20px;"),l.innerHTML=this.settings.previewTitle,i.appendChild(l),this.close=document.createElement("div");let s=this.close;s.setAttribute("class","previewClose"),s.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let r=document.createElement("div"),n=document.createElement("div");r.setAttribute("class","closeBefore"),r.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),n.setAttribute("class","closeAfter"),n.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),s.appendChild(r),s.appendChild(n),l.appendChild(s),this.previewBody=document.createElement("div");let o=this.previewBody;o.setAttribute("class",t),o.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),i.appendChild(o);let a=document.createElement("div");a.setAttribute("class","previewBodyUtil"),a.setAttribute("style","height: 32px;background: #474747;position: relative;"),o.appendChild(a),this.previewBodyUtilPrintBtn=document.createElement("div");let d=this.previewBodyUtilPrintBtn;return d.setAttribute("class","previewBodyUtilPrintBtn"),d.innerHTML=this.settings.previewPrintBtnLabel,d.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),a.appendChild(d),document.body.appendChild(i),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let i=document.createElement("iframe");return i.style.border="0px",i.style.position="absolute",i.style.width="0px",i.style.height="0px",i.style.right="0px",i.style.top="0px",i.setAttribute("id",e),i.setAttribute("src",t),i}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let i=this,l=this.iframeBox(t,e);try{if(this.settings.preview){l.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,s=e.close;t.appendChild(l),this.addEvent(s,"click",(function(){i.previewBoxHide()}))}else document.body.appendChild(l);l.doc=null,l.doc=l.contentDocument?l.contentDocument:l.contentWindow?l.contentWindow.document:l.document}catch(s){throw new Error(s+". iframes may not be supported in this browser.")}if(null==l.doc)throw new Error("Cannot find document.");return l}}var t={directiveName:"print",mounted(t,i,l){let s=i.instance,r="";var n,o,a;o="click",a=()=>{if("string"==typeof i.value)r=i.value;else{if("object"!=typeof i.value||!i.value.id)return void window.print();{r=i.value.id;let e=r.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),r="")}}d()},(n=t).addEventListener?n.addEventListener(o,a,!1):n.attachEvent?n.attachEvent("on"+o,a):n["on"+o]=a;const d=()=>{new e({ids:r,vue:s,url:i.value.url,standard:"",extraHead:i.value.extraHead,extraCss:i.value.extraCss,zIndex:i.value.zIndex||20002,previewTitle:i.value.previewTitle||"打印预览",previewPrintBtnLabel:i.value.previewPrintBtnLabel||"打印",popTitle:i.value.popTitle,preview:i.value.preview||!1,asyncUrl:i.value.asyncUrl,previewBeforeOpenCallback(){i.value.previewBeforeOpenCallback&&i.value.previewBeforeOpenCallback(s)},previewOpenCallback(){i.value.previewOpenCallback&&i.value.previewOpenCallback(s)},openCallback(){i.value.openCallback&&i.value.openCallback(s)},closeCallback(){i.value.closeCallback&&i.value.closeCallback(s)},beforeOpenCallback(){i.value.beforeOpenCallback&&i.value.beforeOpenCallback(s)}})}},install:function(e){e.directive("print",t)}};/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (t); /***/ }), /***/ "./resources/js/components/admin/components/VariationComponent.vue": /*!*************************************************************************!*\ !*** ./resources/js/components/admin/components/VariationComponent.vue ***! \*************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _VariationComponent_vue_vue_type_template_id_5fcc68b0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./VariationComponent.vue?vue&type=template&id=5fcc68b0 */ "./resources/js/components/admin/components/VariationComponent.vue?vue&type=template&id=5fcc68b0"); /* harmony import */ var _VariationComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VariationComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/components/VariationComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_VariationComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_VariationComponent_vue_vue_type_template_id_5fcc68b0__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/components/VariationComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/components/VariationComponent.vue?vue&type=script&lang=js": /*!*************************************************************************************************!*\ !*** ./resources/js/components/admin/components/VariationComponent.vue?vue&type=script&lang=js ***! \*************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_VariationComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_VariationComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./VariationComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/components/VariationComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/components/VariationComponent.vue?vue&type=template&id=5fcc68b0": /*!*******************************************************************************************************!*\ !*** ./resources/js/components/admin/components/VariationComponent.vue?vue&type=template&id=5fcc68b0 ***! \*******************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_VariationComponent_vue_vue_type_template_id_5fcc68b0__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_VariationComponent_vue_vue_type_template_id_5fcc68b0__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./VariationComponent.vue?vue&type=template&id=5fcc68b0 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/components/VariationComponent.vue?vue&type=template&id=5fcc68b0"); /***/ }), /***/ "./resources/js/components/admin/pos/BarcodeProductComponent.vue": /*!***********************************************************************!*\ !*** ./resources/js/components/admin/pos/BarcodeProductComponent.vue ***! \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _BarcodeProductComponent_vue_vue_type_template_id_13978598__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./BarcodeProductComponent.vue?vue&type=template&id=13978598 */ "./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=template&id=13978598"); /* harmony import */ var _BarcodeProductComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BarcodeProductComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_BarcodeProductComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_BarcodeProductComponent_vue_vue_type_template_id_13978598__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/pos/BarcodeProductComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=script&lang=js": /*!***********************************************************************************************!*\ !*** ./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=script&lang=js ***! \***********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BarcodeProductComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BarcodeProductComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./BarcodeProductComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=template&id=13978598": /*!*****************************************************************************************************!*\ !*** ./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=template&id=13978598 ***! \*****************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BarcodeProductComponent_vue_vue_type_template_id_13978598__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_BarcodeProductComponent_vue_vue_type_template_id_13978598__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./BarcodeProductComponent.vue?vue&type=template&id=13978598 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/BarcodeProductComponent.vue?vue&type=template&id=13978598"); /***/ }), /***/ "./resources/js/components/admin/pos/PaymentComponent.vue": /*!****************************************************************!*\ !*** ./resources/js/components/admin/pos/PaymentComponent.vue ***! \****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _PaymentComponent_vue_vue_type_template_id_bda9bf46__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PaymentComponent.vue?vue&type=template&id=bda9bf46 */ "./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=template&id=bda9bf46"); /* harmony import */ var _PaymentComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PaymentComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_PaymentComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_PaymentComponent_vue_vue_type_template_id_bda9bf46__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/pos/PaymentComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=script&lang=js": /*!****************************************************************************************!*\ !*** ./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=script&lang=js ***! \****************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PaymentComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PaymentComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./PaymentComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=template&id=bda9bf46": /*!**********************************************************************************************!*\ !*** ./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=template&id=bda9bf46 ***! \**********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PaymentComponent_vue_vue_type_template_id_bda9bf46__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PaymentComponent_vue_vue_type_template_id_bda9bf46__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./PaymentComponent.vue?vue&type=template&id=bda9bf46 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PaymentComponent.vue?vue&type=template&id=bda9bf46"); /***/ }), /***/ "./resources/js/components/admin/pos/PosComponent.vue": /*!************************************************************!*\ !*** ./resources/js/components/admin/pos/PosComponent.vue ***! \************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _PosComponent_vue_vue_type_template_id_7a8fd462__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PosComponent.vue?vue&type=template&id=7a8fd462 */ "./resources/js/components/admin/pos/PosComponent.vue?vue&type=template&id=7a8fd462"); /* harmony import */ var _PosComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PosComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/PosComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_PosComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_PosComponent_vue_vue_type_template_id_7a8fd462__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/pos/PosComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/PosComponent.vue?vue&type=script&lang=js": /*!************************************************************************************!*\ !*** ./resources/js/components/admin/pos/PosComponent.vue?vue&type=script&lang=js ***! \************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./PosComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/PosComponent.vue?vue&type=template&id=7a8fd462": /*!******************************************************************************************!*\ !*** ./resources/js/components/admin/pos/PosComponent.vue?vue&type=template&id=7a8fd462 ***! \******************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosComponent_vue_vue_type_template_id_7a8fd462__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosComponent_vue_vue_type_template_id_7a8fd462__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./PosComponent.vue?vue&type=template&id=7a8fd462 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosComponent.vue?vue&type=template&id=7a8fd462"); /***/ }), /***/ "./resources/js/components/admin/pos/PosCustomerComponent.vue": /*!********************************************************************!*\ !*** ./resources/js/components/admin/pos/PosCustomerComponent.vue ***! \********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _PosCustomerComponent_vue_vue_type_template_id_5d1da491__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PosCustomerComponent.vue?vue&type=template&id=5d1da491 */ "./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=template&id=5d1da491"); /* harmony import */ var _PosCustomerComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PosCustomerComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_PosCustomerComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_PosCustomerComponent_vue_vue_type_template_id_5d1da491__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/pos/PosCustomerComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=script&lang=js": /*!********************************************************************************************!*\ !*** ./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=script&lang=js ***! \********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosCustomerComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosCustomerComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./PosCustomerComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=template&id=5d1da491": /*!**************************************************************************************************!*\ !*** ./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=template&id=5d1da491 ***! \**************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosCustomerComponent_vue_vue_type_template_id_5d1da491__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_PosCustomerComponent_vue_vue_type_template_id_5d1da491__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./PosCustomerComponent.vue?vue&type=template&id=5d1da491 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/PosCustomerComponent.vue?vue&type=template&id=5d1da491"); /***/ }), /***/ "./resources/js/components/admin/pos/ProductDetailsComponent.vue": /*!***********************************************************************!*\ !*** ./resources/js/components/admin/pos/ProductDetailsComponent.vue ***! \***********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _ProductDetailsComponent_vue_vue_type_template_id_04213614__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProductDetailsComponent.vue?vue&type=template&id=04213614 */ "./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=template&id=04213614"); /* harmony import */ var _ProductDetailsComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ProductDetailsComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_ProductDetailsComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_ProductDetailsComponent_vue_vue_type_template_id_04213614__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/pos/ProductDetailsComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=script&lang=js": /*!***********************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=script&lang=js ***! \***********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductDetailsComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductDetailsComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ProductDetailsComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=template&id=04213614": /*!*****************************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=template&id=04213614 ***! \*****************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductDetailsComponent_vue_vue_type_template_id_04213614__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductDetailsComponent_vue_vue_type_template_id_04213614__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ProductDetailsComponent.vue?vue&type=template&id=04213614 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductDetailsComponent.vue?vue&type=template&id=04213614"); /***/ }), /***/ "./resources/js/components/admin/pos/ProductListComponent.vue": /*!********************************************************************!*\ !*** ./resources/js/components/admin/pos/ProductListComponent.vue ***! \********************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _ProductListComponent_vue_vue_type_template_id_06e7a096__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ProductListComponent.vue?vue&type=template&id=06e7a096 */ "./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=template&id=06e7a096"); /* harmony import */ var _ProductListComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ProductListComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_ProductListComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_ProductListComponent_vue_vue_type_template_id_06e7a096__WEBPACK_IMPORTED_MODULE_0__.render],['__file',"resources/js/components/admin/pos/ProductListComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=script&lang=js": /*!********************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=script&lang=js ***! \********************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductListComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductListComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ProductListComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=template&id=06e7a096": /*!**************************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=template&id=06e7a096 ***! \**************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductListComponent_vue_vue_type_template_id_06e7a096__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ProductListComponent_vue_vue_type_template_id_06e7a096__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ProductListComponent.vue?vue&type=template&id=06e7a096 */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ProductListComponent.vue?vue&type=template&id=06e7a096"); /***/ }), /***/ "./resources/js/components/admin/pos/ReceiptComponent.vue": /*!****************************************************************!*\ !*** ./resources/js/components/admin/pos/ReceiptComponent.vue ***! \****************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); /* harmony import */ var _ReceiptComponent_vue_vue_type_template_id_773e416b_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true */ "./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true"); /* harmony import */ var _ReceiptComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ReceiptComponent.vue?vue&type=script&lang=js */ "./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=script&lang=js"); /* harmony import */ var _ReceiptComponent_vue_vue_type_style_index_0_id_773e416b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css */ "./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css"); /* harmony import */ var _node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/dist/exportHelper.js */ "./node_modules/vue-loader/dist/exportHelper.js"); ; const __exports__ = /*#__PURE__*/(0,_node_modules_vue_loader_dist_exportHelper_js__WEBPACK_IMPORTED_MODULE_3__["default"])(_ReceiptComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__["default"], [['render',_ReceiptComponent_vue_vue_type_template_id_773e416b_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render],['__scopeId',"data-v-773e416b"],['__file',"resources/js/components/admin/pos/ReceiptComponent.vue"]]) /* hot reload */ if (false) // removed by dead control flow {} /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__exports__); /***/ }), /***/ "./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=script&lang=js": /*!****************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=script&lang=js ***! \****************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__["default"]) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ReceiptComponent.vue?vue&type=script&lang=js */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=script&lang=js"); /***/ }), /***/ "./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css": /*!************************************************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css ***! \************************************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony import */ var _node_modules_style_loader_dist_cjs_js_node_modules_css_loader_dist_cjs_js_clonedRuleSet_9_use_1_node_modules_vue_loader_dist_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_clonedRuleSet_9_use_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_style_index_0_id_773e416b_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/style-loader/dist/cjs.js!../../../../../node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!../../../../../node_modules/vue-loader/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css */ "./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-9.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-9.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=style&index=0&id=773e416b&scoped=true&lang=css"); /***/ }), /***/ "./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true": /*!**********************************************************************************************************!*\ !*** ./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true ***! \**********************************************************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ render: () => (/* reexport safe */ _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_template_id_773e416b_scoped_true__WEBPACK_IMPORTED_MODULE_0__.render) /* harmony export */ }); /* harmony import */ var _node_modules_laravel_mix_node_modules_babel_loader_lib_index_js_clonedRuleSet_5_use_0_node_modules_vue_loader_dist_templateLoader_js_ruleSet_1_rules_2_node_modules_vue_loader_dist_index_js_ruleSet_0_use_0_ReceiptComponent_vue_vue_type_template_id_773e416b_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!../../../../../node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!../../../../../node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true */ "./node_modules/laravel-mix/node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/components/admin/pos/ReceiptComponent.vue?vue&type=template&id=773e416b&scoped=true"); /***/ }), /***/ "./resources/js/enums/modules/discountTypeEnum.js": /*!********************************************************!*\ !*** ./resources/js/enums/modules/discountTypeEnum.js ***! \********************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); var discountTypeEnum = Object.freeze({ FIXED: 5, PERCENTAGE: 10 }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (discountTypeEnum); /***/ }), /***/ "./resources/js/enums/modules/paymentTypeEnum.js": /*!*******************************************************!*\ !*** ./resources/js/enums/modules/paymentTypeEnum.js ***! \*******************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); var paymentTypeEnum = Object.freeze({ CASH_ON_DELIVERY: 1, E_WALLET: 2, PAYPAL: 3 }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (paymentTypeEnum); /***/ }), /***/ "./resources/js/enums/modules/posPaymentMethodEnum.js": /*!************************************************************!*\ !*** ./resources/js/enums/modules/posPaymentMethodEnum.js ***! \************************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); var posPaymentMethodEnum = Object.freeze({ CASH: 5, CARD: 10, MOBILE_BANKING: 15, OTHER: 20 }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (posPaymentMethodEnum); /***/ }), /***/ "./resources/js/enums/modules/sourceEnum.js": /*!**************************************************!*\ !*** ./resources/js/enums/modules/sourceEnum.js ***! \**************************************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__) /* harmony export */ }); var sourceEnum = Object.freeze({ WEB: 5, APP: 10, POS: 15 }); /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (sourceEnum); /***/ }) }]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285