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A,IADG+E,GAA4BA,EAA2Bzd,GACrD0K,EAAI2O,EAASzY,OAAQ8J,IACzBgQ,EAAUrB,EAAS3O,GAChBgO,EAAoB2B,EAAE4C,EAAiBvC,IAAYuC,EAAgBvC,IACrEuC,EAAgBvC,GAAS,KAE1BuC,EAAgBvC,GAAW,EAE5B,OAAOhC,EAAoBU,EAAEvU,EAC9B,EAEIgZ,EAAqBC,KAAK,0BAA4BA,KAAK,2BAA6B,GAC5FD,EAAmB9c,QAAQyc,EAAqBf,KAAK,KAAM,IAC3DoB,EAAmBlc,KAAO6b,EAAqBf,KAAK,KAAMoB,EAAmBlc,KAAK8a,KAAKoB,G,ICpFvF,IAAIE,EAAsBrF,EAAoBU,OAAE3Q,EAAW,CAAC,MAAM,WAAa,OAAOiQ,EAAoB,MAAQ,IAClHqF,EAAsBrF,EAAoBU,EAAE2E,E","sources":["webpack://ryan-meats/./src/App.vue?2a5e","webpack://ryan-meats/./src/App.vue","webpack://ryan-meats/./src/App.vue?7ccd","webpack://ryan-meats/./src/store/app.ts","webpack://ryan-meats/./src/service/category.ts","webpack://ryan-meats/./src/service/product.ts","webpack://ryan-meats/./src/store/product.ts","webpack://ryan-meats/./src/store/category.ts","webpack://ryan-meats/./src/use/common/image.ts","webpack://ryan-meats/./src/components/customer/products/Product.vue?bd14","webpack://ryan-meats/./src/components/customer/products/Product.vue","webpack://ryan-meats/./src/components/customer/products/Product.vue?f9d5","webpack://ryan-meats/./src/components/customer/products/Index.vue?2337","webpack://ryan-meats/./src/components/customer/products/Index.vue","webpack://ryan-meats/./src/components/customer/products/Index.vue?333c","webpack://ryan-meats/./src/views/customer/Products.vue?1456","webpack://ryan-meats/./src/views/customer/Products.vue","webpack://ryan-meats/./src/store/router.ts","webpack://ryan-meats/./src/components/layouts/default/Burger.vue?6646","webpack://ryan-meats/./src/components/layouts/default/Burger.vue","webpack://ryan-meats/./src/components/layouts/default/Burger.vue?1c5e","webpack://ryan-meats/./src/components/layouts/default/Navigation.vue?fc70","webpack://ryan-meats/./src/components/layouts/default/Navigation.vue","webpack://ryan-meats/./src/components/layouts/default/Navigation.vue?455d","webpack://ryan-meats/./src/components/layouts/default/Layout.vue?46d8","webpack://ryan-meats/./src/components/layouts/default/Layout.vue","webpack://ryan-meats/./src/components/layouts/default/Layout.vue?4403","webpack://ryan-meats/./src/components/layouts/public/Layout.vue","webpack://ryan-meats/./src/components/layouts/public/Layout.vue?285d","webpack://ryan-meats/./src/router/generator-routers.ts","webpack://ryan-meats/./src/router/index.ts","webpack://ryan-meats/./src/config/defaultSettings.ts","webpack://ryan-meats/./src/utils/domUtil.ts","webpack://ryan-meats/./src/permission.ts","webpack://ryan-meats/./src/main.ts","webpack://ryan-meats/./src/models/common/Option.ts","webpack://ryan-meats/./src/models/common/OrderedBy.ts","webpack://ryan-meats/./src/models/common/Unit.ts","webpack://ryan-meats/./src/models/common/OrderStatus.ts","webpack://ryan-meats/./src/service/auth.ts","webpack://ryan-meats/./src/utils/util.ts","webpack://ryan-meats/./src/store/auth.ts","webpack://ryan-meats/./src/store/mutation-types.ts","webpack://ryan-meats/./src/service/order.ts","webpack://ryan-meats/./src/store/order.ts","webpack://ryan-meats/./src/use/currency.ts","webpack://ryan-meats/./src/utils/axios.ts","webpack://ryan-meats/./src/utils/request.ts","webpack://ryan-meats/webpack/bootstrap","webpack://ryan-meats/webpack/runtime/chunk loaded","webpack://ryan-meats/webpack/runtime/compat get default export","webpack://ryan-meats/webpack/runtime/define property getters","webpack://ryan-meats/webpack/runtime/ensure chunk","webpack://ryan-meats/webpack/runtime/get javascript chunk filename","webpack://ryan-meats/webpack/runtime/get mini-css chunk filename","webpack://ryan-meats/webpack/runtime/global","webpack://ryan-meats/webpack/runtime/hasOwnProperty shorthand","webpack://ryan-meats/webpack/runtime/load script","webpack://ryan-meats/webpack/runtime/make namespace object","webpack://ryan-meats/webpack/runtime/node module decorator","webpack://ryan-meats/webpack/runtime/publicPath","webpack://ryan-meats/webpack/runtime/jsonp chunk loading","webpack://ryan-meats/webpack/startup"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport { theme } from 'ant-design-vue';\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'App',\n setup(__props) {\n\r\n\r\n const { useToken } = theme;\r\n //const { defaultAlgorithm, defaultSeed } = theme;\r\n const { token } = useToken();\r\n //const mapToken = defaultAlgorithm(defaultSeed);\r\n\r\n token.value.fontFamily = 'Inter-Normal';\r\n token.value.fontSize = 12;\r\n token.value.colorPrimary = '#8e0b0b';\r\n token.value.borderRadius = 4;\r\n token.value.borderRadiusLG = 4;\r\n \r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_view = _resolveComponent(\"router-view\")!\n const _component_a_config_provider = _resolveComponent(\"a-config-provider\")!\n\n return (_openBlock(), _createBlock(_component_a_config_provider, { theme: _unref(theme) }, {\n default: _withCtx(() => [\n _createVNode(_component_router_view)\n ]),\n _: 1\n }, 8, [\"theme\"]))\n}\n}\n\n})","\r\n \r\n \r\n \r\n\r\n\r\n\r\n","import script from \"./App.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./App.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\n\r\n\r\nexport const useApp = defineStore('app', () => {\r\n\r\n const isActiveBurger = ref(false);\r\n\r\n\r\n const onBurger = () => {\r\n isActiveBurger.value = !isActiveBurger.value;\r\n\r\n //document.body.classList.toggle('lock');\r\n //if (isActiveBurger.value === true)\r\n // document.body.classList.add('lock');\r\n //else\r\n // document.body.classList.remove('lock');\r\n }\r\n\r\n const toggleClassBody = (param: string) => {\r\n\r\n document.body.classList.toggle(param);\r\n\r\n //if (isActiveBurger.value === true)\r\n // document.body.classList.add(param);\r\n //else\r\n // document.body.classList.remove(param);\r\n }\r\n\r\n\r\n return {\r\n isActiveBurger,\r\n onBurger,\r\n toggleClassBody,\r\n }\r\n});\r\n\r\n\r\n","import request from '@/utils/request'\r\n\r\nimport {\r\n ICategory,\r\n} from '@/models';\r\n\r\nconst api = '/categories'\r\n\r\n\r\nexport function getList() {\r\n return request({\r\n url: api,\r\n method: 'get',\r\n })\r\n}\r\n","import request from '@/utils/request'\r\nimport {\r\n IPagingVm,\r\n IPagingDto,\r\n IProduct,\r\n} from '@/models';\r\n\r\nconst api = '/products'\r\n\r\n\r\n\r\n\r\nexport function getPage(data: IPagingDto) {\r\n return request>({\r\n url: api,\r\n method: 'post',\r\n data: data\r\n })\r\n}","import { ref } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { message } from 'ant-design-vue';\r\nimport {\r\n IPagingDto,\r\n IPagingVm,\r\n IProduct,\r\n} from '@/models';\r\nimport {\r\n getPage,\r\n} from '@/service/product';\r\n\r\n\r\n\r\nexport const useProduct = defineStore('product', () => {\r\n\r\n const search = ref();\r\n\r\n async function GetPage(params: IPagingDto): Promise | undefined> {\r\n const res = await getPage(params);\r\n if (!res) {\r\n message.warn('Error');\r\n return undefined;\r\n }\r\n\r\n return res;\r\n }\r\n\r\n\r\n return {\r\n GetPage,\r\n search,\r\n };\r\n}); ","import { ref, computed } from 'vue';\r\nimport { defineStore } from 'pinia';\r\n//import { message } from 'ant-design-vue';\r\n\r\nimport prodsComp from '@/views/customer/Products.vue';\r\n\r\nimport {\r\n ICategory\r\n} from '@/models';\r\n\r\nimport {\r\n getList,\r\n} from '@/service/category';\r\n\r\nimport { RouteRecordRaw } from 'vue-router';\r\n\r\n\r\nexport const useCategory = defineStore('category', () => {\r\n\r\n\r\n const _categories = ref([]);\r\n\r\n //const categories = computed(() => _categories.value);\r\n\r\n\r\n\r\n async function Get(): Promise {\r\n \r\n if (_categories.value && _categories.value.length > 0) {\r\n return _categories.value;\r\n }\r\n \r\n const res = await getList();\r\n _categories.value = !res ? [] : res;\r\n return _categories.value;\r\n }\r\n\r\n\r\n async function GetRoute(): Promise {\r\n\r\n let res: RouteRecordRaw[] = [];\r\n\r\n const categories = await Get();\r\n\r\n if (!categories || categories.length <= 0) {\r\n return res;\r\n }\r\n\r\n \r\n\r\n categories.forEach((cat) => {\r\n const route: RouteRecordRaw = {\r\n path: `/${cat.name}`,\r\n name: `${cat.name}`,\r\n component: () => prodsComp, //import('@/views/customer/Products.vue'),\r\n meta: { title: `${cat.name}`, keepAlive: true, icon: '', hidden: false }\r\n }\r\n res.push(route);\r\n });\r\n\r\n\r\n return res;\r\n }\r\n\r\n\r\n\r\n\r\n\r\n return {\r\n Get,\r\n GetRoute\r\n //categories\r\n };\r\n}); ","export function useImage() {\r\n\r\n const isExist = async (path: string): Promise => {\r\n\r\n return new Promise(function (resolve, reject) {\r\n\r\n try {\r\n \r\n if (path.length === 0) return resolve(false);\r\n\r\n var img = new Image();\r\n\r\n img.onerror = () => {\r\n //debugger;\r\n return resolve(false);\r\n };\r\n\r\n img.onload = () => {\r\n //debugger;\r\n return resolve(true);\r\n };\r\n\r\n img.src = path;\r\n \r\n } catch (e) {\r\n //debugger;\r\n return resolve(false);\r\n }\r\n\r\n });\r\n\r\n };\r\n\r\n\r\n return { isExist }\r\n}","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, unref as _unref, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, withCtx as _withCtx } from \"vue\"\nimport _imports_0 from '@/assets/img/flashLabel2.svg'\n\n\nconst _hoisted_1 = { class: \"product__header\" }\nconst _hoisted_2 = [\"src\", \"code\", \"alt\"]\nconst _hoisted_3 = {\n key: 0,\n class: \"product__banner\",\n src: _imports_0,\n alt: \"Special Offer\"\n}\nconst _hoisted_4 = { class: \"product__body\" }\nconst _hoisted_5 = { class: \"product__title\" }\nconst _hoisted_6 = { class: \"product__price\" }\nconst _hoisted_7 = /*#__PURE__*/_createElementVNode(\"span\", null, \" per Kg\", -1)\nconst _hoisted_8 = { class: \"product__size\" }\nconst _hoisted_9 = { class: \"product__unit unit\" }\nconst _hoisted_10 = { class: \"unit__title\" }\nconst _hoisted_11 = { class: \"unit__weight\" }\nconst _hoisted_12 = { class: \"product__quantity quantity\" }\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"div\", { class: \"quantity__title\" }, \"Quantity\", -1)\n\nimport { ref, onMounted } from 'vue';\r\n import { IProduct, IAddProduct, Option } from '@/models';\r\n //import { debounce, cloneDeep } from 'lodash';\r\n import { message } from 'ant-design-vue';\r\n\r\n\r\n //---------------------------------------------------------------------------------------------------\r\n\r\n import { useOrder } from '@/store/order';\r\n import { useCurrency } from '@/use/currency';\r\n import { useImage } from '@/use/common/image';\r\n const urlNoImage = '/img/product/0.jpg';\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Product',\n props: {\n product: {},\n units: {}\n },\n setup(__props: any) {\n\r\n const orderStore = useOrder();\r\n\r\n\r\n const euro = useCurrency().euro;\r\n\r\n\r\n const isExistImage = useImage().isExist;\r\n\r\n //---------------------------------------------------------------------------------------------------\r\n\r\n const props = __props;\r\n\r\n // Var ---------------------------------------------------------------------------------------------------\r\n\r\n const loading = ref(false);\r\n\r\n const src = ref(urlNoImage);\r\n \r\n //------------------------------------------------------------------------------------------------------\r\n\r\n\r\n const onAddToCart = async () => {\r\n try {\r\n loading.value = true;\r\n\r\n if (!props.product || !props.product.id || props.product.id <= 0) {\r\n message.warn('Product not add to cart');\r\n return;\r\n }\r\n\r\n props.product.isOrder = true;\r\n\r\n var model: IAddProduct = {\r\n id: props.product.id,\r\n unit: props.product.unit,\r\n quantity: props.product.quantity ? props.product.quantity : 1\r\n };\r\n\r\n await orderStore.AddProduct(model)\r\n\r\n\r\n\r\n } catch (e) {\r\n } finally {\r\n loading.value = false;\r\n }\r\n }\r\n\r\n\r\n //------------------------------------------------------------------------------------------------------------------\r\n\r\n const Init = async () => {\r\n const url = `/img/product/${props.product.code}.jpg`;\r\n\r\n isExistImage(url).then((result: boolean) => {\r\n src.value = result ? url : urlNoImage;\r\n //console.log(`isExistImage: ${result} | src: ${src} `);\r\n });\r\n \r\n }\r\n\r\n\r\n onMounted(async () => {\r\n await Init();\r\n })\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_input_number = _resolveComponent(\"a-input-number\")!\n const _component_a_button = _resolveComponent(\"a-button\")!\n\n return (props.product)\n ? (_openBlock(), _createElementBlock(\"div\", {\n class: \"product\",\n key: props.product.id\n }, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"img\", {\n class: \"product__img\",\n src: src.value,\n code: props.product.code,\n alt: props.product.name\n }, null, 8, _hoisted_2),\n (props.product.isOffer)\n ? (_openBlock(), _createElementBlock(\"img\", _hoisted_3))\n : _createCommentVNode(\"\", true)\n ]),\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, _toDisplayString(props.product.name), 1),\n _createElementVNode(\"div\", _hoisted_6, [\n _createTextVNode(_toDisplayString(_unref(euro)(props.product.price)) + \" \", 1),\n _hoisted_7\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, [\n _createElementVNode(\"div\", _hoisted_10, [\n _createTextVNode(\"Unit \"),\n _createElementVNode(\"span\", _hoisted_11, \"≈\" + _toDisplayString(props.product.weight) + \"kg\", 1)\n ]),\n _createVNode(_component_a_select, {\n value: props.product.unit,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((props.product.unit) = $event)),\n placeholder: \"Unit\",\n style: {\"width\":\"100%\"},\n class: \"unit__list\",\n options: props.units\n }, null, 8, [\"value\", \"options\"])\n ]),\n _createElementVNode(\"div\", _hoisted_12, [\n _hoisted_13,\n _createVNode(_component_a_input_number, {\n class: \"quantity__input\",\n placeholder: \"1\",\n value: props.product.quantity,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((props.product.quantity) = $event)),\n min: 1,\n max: 1000\n }, null, 8, [\"value\"])\n ])\n ]),\n _createVNode(_component_a_button, {\n class: \"product__btn\",\n type: \"primary\",\n size: \"large\",\n disabled: props.product.isOrder,\n onClick: _cache[2] || (_cache[2] = _withModifiers(() => onAddToCart(), [\"prevent\"]))\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Add to Cart\")\n ]),\n _: 1\n }, 8, [\"disabled\"])\n ])\n ]))\n : _createCommentVNode(\"\", true)\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n \r\n\r\n \r\n {{props.product.name}}\r\n {{euro(props.product.price)}} per Kg\r\n\r\n \r\n\r\n \r\n\r\n Unit ≈{{props.product.weight}}kg\r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n Quantity\r\n \r\n \r\n\r\n \r\n\r\n onAddToCart()\">Add to Cart\r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./Product.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Product.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { unref as _unref, resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, withCtx as _withCtx, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"products\" }\nconst _hoisted_2 = { class: \"products__header\" }\nconst _hoisted_3 = { class: \"products__body\" }\nconst _hoisted_4 = { class: \"products__list\" }\nconst _hoisted_5 = {\n key: 0,\n class: \"component__pagination pagination\"\n}\n\nimport { ref, onMounted, watch } from 'vue';\r\n import { IPagingDto, IPagingVm, IProduct, ICategory, IAddProduct, OrderedBy, Unit, Option } from '@/models';\r\n import { debounce, cloneDeep } from 'lodash';\r\n import { message } from 'ant-design-vue';\r\n\r\n\r\n //---------------------------------------------------------------------------------------------------\r\n import { RouteRecordRaw, useRoute } from 'vue-router';\r\n import { useProduct } from '@/store/product';\r\n import { useOrder } from '@/store/order';\r\n import { useCategory } from '@/store/category';\r\n import { useCurrency } from '@/use/currency';\r\n import { useImage } from '@/use/common/image';\r\n import prod from '../products/Product.vue';\r\n\r\n // Var ---------------------------------------------------------------------------------------------------\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Index',\n setup(__props) {\n\r\n const route = useRoute();\r\n\r\n const productStore = useProduct();\r\n\r\n const orderStore = useOrder();\r\n\r\n\r\n const categoryStore = useCategory();\r\n\r\n\r\n const euro = useCurrency().euro;\r\n\r\n\r\n const isExistImage = useImage().isExist;\r\n\r\n // ---------------------------------------------------------------------------------------------------\r\n\r\n const loading = ref(false);\r\n\r\n\r\n const orderedList = ref([\r\n new Option(OrderedBy.Name, \"Name Product\"),\r\n new Option(OrderedBy.Popular, \"Most Popular\"),\r\n new Option(OrderedBy.LowPrice, \"Lowest Price\"),\r\n new Option(OrderedBy.HighPrice, \"Highest Price\")\r\n ]);\r\n\r\n const ordered = ref(orderedList.value[0]);\r\n\r\n //ordered.value = orderedList.value[0];\r\n\r\n\r\n const InitPagint = (): IPagingDto => {\r\n return {\r\n current: 1,\r\n pageSize: 100,\r\n field: 'name',\r\n order: 'descend',\r\n filter: {\r\n search: '',\r\n categoryId: ''\r\n },\r\n }\r\n }\r\n\r\n const params = ref(InitPagint());\r\n\r\n const source = ref>();\r\n const products = ref([]);\r\n\r\n //const search = ref('');\r\n const categoryName = ref('pork');\r\n\r\n const categoryId = ref(0);\r\n\r\n const categories = ref([]);\r\n\r\n\r\n\r\n\r\n const getUnits = (prodId: number): Option[] => {\r\n if (!products.value)\r\n return Unit.Values;\r\n\r\n const prodOrigin = products.value.find(x => x.id == prodId);\r\n if (!prodOrigin)\r\n return Unit.Values;\r\n\r\n var res = prodOrigin.unit === Unit.Piece\r\n ? Unit.ValuePiece\r\n : Unit.Values;\r\n\r\n return res;\r\n }\r\n\r\n //------------------------------------------------------------------------------------------------------\r\n\r\n const onChangePage = async (current: number, pageSize: number) => {\r\n params.value.current = current;\r\n params.value.pageSize = pageSize;\r\n loading.value = true;\r\n await load();\r\n };\r\n\r\n\r\n const onChange = (pagination: any, filters: any, sorter: any) => {\r\n console.log(\"pagination:\", pagination);\r\n console.log(\"filters:\", filters);\r\n console.log(\"sorter:\", sorter);\r\n }\r\n\r\n\r\n const onOrdered = async (value: number) => {\r\n\r\n switch (value) {\r\n case OrderedBy.Popular:\r\n params.value.field = 'popular';\r\n params.value.order = \"descend\"; //'ascend' | 'descend' | '';\r\n break;\r\n case OrderedBy.LowPrice:\r\n params.value.field = 'price';\r\n params.value.order = \"ascend\";\r\n break;\r\n case OrderedBy.HighPrice:\r\n params.value.field = 'price';\r\n params.value.order = \"descend\";\r\n break;\r\n default:\r\n }\r\n\r\n loading.value = true;\r\n\r\n await load();\r\n }\r\n\r\n const onSubmit = async () => {\r\n loading.value = true;\r\n await load();\r\n }\r\n\r\n //--------------------------------------------------------------------------------------------\r\n\r\n //const onAddToCart = async (product: IProduct) => {\r\n // try {\r\n // loading.value = true;\r\n\r\n // if (!product || !product.id || product.id <= 0) {\r\n // message.warn('Product not add to cart');\r\n // return;\r\n // }\r\n\r\n // product.isOrder = true;\r\n\r\n // var model: IAddProduct = {\r\n // id: product.id,\r\n // unit: product.unit,\r\n // quantity: product.quantity ? product.quantity : 1\r\n // };\r\n\r\n // await orderStore.AddProduct(model)\r\n\r\n\r\n\r\n // } catch (e) {\r\n // } finally {\r\n // loading.value = false;\r\n // }\r\n //}\r\n\r\n\r\n //------------------------------------------------------------------------------------------------------------------\r\n\r\n\r\n const load = debounce(async () => {\r\n try {\r\n loading.value = true;\r\n\r\n //if (categories.value) {\r\n // var currentCategory = categories.value.find(x => x.name.toLowerCase() == categoryName.value);\r\n // if (currentCategory) {\r\n // categoryId.value = currentCategory.id;\r\n // }\r\n //}\r\n\r\n\r\n var param: IPagingDto = {\r\n current: params.value.current,\r\n pageSize: params.value.pageSize,\r\n field: params.value.field,\r\n order: params.value.order,\r\n filter: {\r\n search: productStore.search ?? '',// search.value,\r\n categoryId: productStore.search && productStore.search.length > 0 ? '' : categoryId.value.toString()\r\n }\r\n };\r\n\r\n source.value = await productStore.GetPage(param);\r\n\r\n if (!source.value)\r\n return;\r\n\r\n products.value = cloneDeep(source.value.data);\r\n\r\n } catch (e) {\r\n } finally {\r\n loading.value = false;\r\n }\r\n\r\n }, 1000);\r\n\r\n\r\n\r\n\r\n const init = async (category: string) => {\r\n try {\r\n\r\n productStore.search = undefined;\r\n\r\n source.value = undefined;\r\n //params.value = InitPagint();\r\n\r\n if (!categories.value || categories.value.length === 0)\r\n categories.value = await categoryStore.Get();\r\n\r\n if (!categories.value || categories.value.length === 0)\r\n return;\r\n\r\n\r\n var currentCategory = categories.value.find(x => x.name.toLowerCase() == category.toLowerCase());\r\n if (!currentCategory)\r\n return;\r\n\r\n categoryId.value = currentCategory.id;\r\n\r\n\r\n await load();\r\n\r\n } catch (e) {\r\n } finally {\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n\r\n watch(() => route.name, async () => {\r\n\r\n\r\n const category = route.name && !Array.isArray(route.name)\r\n ? route.name.toString().toLowerCase()\r\n : categoryName.value;\r\n\r\n\r\n await init(category);\r\n\r\n }, { deep: true, immediate: true });\r\n\r\n\r\n watch(() => productStore.search, async () => {\r\n loading.value = true;\r\n await load();\r\n }, { deep: true, immediate: true });\r\n\r\n\r\n //-------------------------------------------------------\r\n //init();\r\n //-------------------------------------------------------\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_a_select = _resolveComponent(\"a-select\")!\n const _component_a_spin = _resolveComponent(\"a-spin\")!\n const _component_a_pagination = _resolveComponent(\"a-pagination\")!\n\n return (_openBlock(), _createElementBlock(\"section\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createVNode(_component_a_select, {\n value: ordered.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((ordered).value = $event)),\n placeholder: \"Filter by\",\n class: \"filter\",\n size: \"large\",\n options: _unref(OrderedBy).Options(),\n onChange: onOrdered\n }, null, 8, [\"value\", \"options\"])\n ]),\n _createElementVNode(\"div\", _hoisted_3, [\n _createVNode(_component_a_spin, {\n spinning: loading.value,\n size: \"large\"\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_4, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(source.value?.data, (x) => {\n return (_openBlock(), _createBlock(prod, {\n key: x.id,\n product: x,\n units: getUnits(x.id)\n }, null, 8, [\"product\", \"units\"]))\n }), 128))\n ])\n ]),\n _: 1\n }, 8, [\"spinning\"])\n ]),\n (source.value?.total)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n _createVNode(_component_a_pagination, {\n current: params.value.current,\n \"onUpdate:current\": _cache[1] || (_cache[1] = ($event: any) => ((params.value.current) = $event)),\n \"page-size\": params.value.pageSize,\n \"onUpdate:pageSize\": _cache[2] || (_cache[2] = ($event: any) => ((params.value.pageSize) = $event)),\n total: source.value?.total,\n onChange: onChangePage,\n onShowSizeChange: onChangePage,\n \"show-total\": (total, range) => `${range[0]}-${range[1]} of ${total} items`\n }, null, 8, [\"current\", \"page-size\", \"total\", \"show-total\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}\n}\n\n})","\r\n\r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n\r\n \r\n\r\n\r\n `${range[0]}-${range[1]} of ${total} items`\" />\r\n\r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./Index.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Index.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createBlock as _createBlock } from \"vue\"\n\nimport dash from '@/components/customer/products/Index.vue';\r\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'Products',\n setup(__props) {\n\r\n \nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createBlock(dash))\n}\n}\n\n})","import script from \"./Products.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Products.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { ref, computed } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { generatorDynamicRouter } from '@/router/generator-routers'\r\nimport { RouteRecordRaw, Router, useRoute } from 'vue-router';\r\nimport { message } from 'ant-design-vue';\r\nimport { IAuthVm, ICategory } from '@/models';\r\nimport { getList } from '@/service/category';\r\nimport prodsComp from '@/views/customer/Products.vue';\r\n\r\n\r\nexport const useRouter = defineStore('router', () => {\r\n\r\n const _route = useRoute();\r\n\r\n const route = ref();\r\n //const pages = ref();\r\n //const currentPage = ref();\r\n\r\n const _categories = ref([]);\r\n\r\n\r\n //-----------------------------------------------------------\r\n\r\n async function GenerateRoutes(router: Router, user: IAuthVm): Promise {\r\n\r\n let res: RouteRecordRaw | undefined;\r\n\r\n try {\r\n \r\n if (!router || !user || user.id <= 0) {\r\n return res;\r\n }\r\n\r\n if (route.value && route.value.children && route.value.children.length > 0) {\r\n return route.value;\r\n }\r\n\r\n const menuDynemic = await GetCategoryPages();\r\n \r\n \r\n res = route.value = await generatorDynamicRouter(user, menuDynemic);\r\n \r\n if (!route.value\r\n || !route.value.children\r\n || route.value.children.length === 0) {\r\n return res;\r\n }\r\n\r\n\r\n //route.value = res;\r\n\r\n //Remove\r\n const _routes = router.getRoutes();\r\n\r\n for (let i = 0; i < _routes.length; i++) {\r\n const r = _routes[i];\r\n if (r && r.name) {\r\n router.removeRoute(r.name);\r\n }\r\n }\r\n\r\n\r\n //Add\r\n router.addRoute(route.value);\r\n\r\n //if (res.length > 0) {\r\n // for (let i = 0; i < res.length; i++) {\r\n // const r = res[i];\r\n // router.addRoute(r);\r\n // }\r\n //}\r\n\r\n console.log('Routers:', route.value);\r\n\r\n\r\n } catch (e) {\r\n \r\n message.error('Error. Routes');\r\n console.log(e);\r\n }\r\n \r\n return res;\r\n }\r\n\r\n\r\n\r\n\r\n var pages = computed(() => {\r\n let res: RouteRecordRaw[] = [];\r\n if (!route || !route.value || !route.value.children)\r\n return res;\r\n\r\n res = route.value.children.filter(x => x.meta != null); //&& !x.meta.hidden\r\n return res;\r\n });\r\n\r\n\r\n\r\n\r\n const currentPage = computed(() => {\r\n let res: RouteRecordRaw | undefined;\r\n\r\n if (!pages.value || !_route)\r\n return undefined;\r\n\r\n res = pages.value.find(x => x.name == _route.name);\r\n\r\n return res;\r\n });\r\n\r\n\r\n\r\n\r\n\r\n //------------------------------------------------------------\r\n\r\n async function GetCategory(): Promise {\r\n\r\n if (_categories.value && _categories.value.length > 0) {\r\n return _categories.value;\r\n }\r\n\r\n const res = await getList();\r\n _categories.value = !res ? [] : res;\r\n return _categories.value;\r\n }\r\n\r\n async function GetCategoryPages(): Promise {\r\n\r\n let res: RouteRecordRaw[] = [];\r\n\r\n const categories = await GetCategory();\r\n\r\n if (!categories || categories.length <= 0) {\r\n return res;\r\n }\r\n\r\n categories.forEach((cat) => {\r\n const name = cat.name.toLowerCase();\r\n const route: RouteRecordRaw = {\r\n path: `/${name}`,\r\n name: `${name}`,\r\n component: prodsComp, //import('@/views/customer/Products.vue'),\r\n meta: { title: `${cat.name}`, keepAlive: true, icon: '', hidden: false }\r\n }\r\n res.push(route);\r\n });\r\n\r\n\r\n return res;\r\n }\r\n\r\n\r\n return { route, GenerateRoutes, pages, currentPage, GetCategoryPages }\r\n\r\n})\r\n","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = /*#__PURE__*/_createElementVNode(\"span\", null, null, -1)\nconst _hoisted_2 = /*#__PURE__*/_createElementVNode(\"span\", null, null, -1)\nconst _hoisted_3 = /*#__PURE__*/_createElementVNode(\"span\", null, null, -1)\nconst _hoisted_4 = [\n _hoisted_1,\n _hoisted_2,\n _hoisted_3\n]\nconst _hoisted_5 = { class: \"menu\" }\nconst _hoisted_6 = { class: \"menu__title\" }\nconst _hoisted_7 = { class: \"menu__list\" }\nconst _hoisted_8 = { class: \"menu__name\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"hr\", null, null, -1)\nconst _hoisted_10 = { class: \"menu__list\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"menu__name\" }, \"Basket\", -1)\nconst _hoisted_12 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"menu__name\" }, \"Order History\", -1)\nconst _hoisted_13 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"menu__name\" }, \"Change Password\", -1)\nconst _hoisted_14 = /*#__PURE__*/_createElementVNode(\"span\", { class: \"menu__name\" }, \"Log out\", -1)\n\nimport { ref, computed } from 'vue';\r\n import { RouteRecordRaw, useRoute } from 'vue-router';\r\n\r\n\r\n import { useAuth } from '@/store/auth';\r\n import { useApp } from '@/store/app';\r\n import { useRouter } from '@/store/router';\r\n //----------------------------------------------------------------------\r\n\r\n const urlIcons = '@/assets/img/';\r\n //router.pages\r\n //router.currentPage\r\n\r\n\r\n //const pages = computed(() => {\r\n // let res: RouteRecordRaw[] = [];\r\n // if (!router.route || !router.route.children)\r\n // return res;\r\n\r\n // res = router.route.children.filter(x => x.meta != null && !x.meta.hidden );\r\n // return res;\r\n //});\r\n\r\n //const current = computed(() => {\r\n // let res: RouteRecordRaw | undefined;\r\n // if (!pages.value || !route)\r\n // return undefined;\r\n\r\n // res = pages.value.find(x => x.name == route.name);\r\n\r\n // return res;\r\n //});\r\n\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Burger',\n setup(__props) {\n\r\n const auth = useAuth();\r\n const app = useApp();\r\n const router = useRouter();\r\n const route = useRoute();\r\n\r\n const onOpenMenu = () => {\r\n\r\n app.toggleClassBody('open');\r\n\r\n }\r\n\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"button\", {\n class: \"burger-btn\",\n id: \"burger\",\n onClick: onOpenMenu\n }, _hoisted_4),\n _createElementVNode(\"nav\", _hoisted_5, [\n _createElementVNode(\"div\", _hoisted_6, [\n _createTextVNode(\"Hello, \"),\n _createElementVNode(\"span\", null, _toDisplayString(_unref(auth).user?.name), 1)\n ]),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_unref(router)?.pages, (page) => {\n return (_openBlock(), _createElementBlock(\"ul\", _hoisted_7, [\n (!page?.meta?.hidden)\n ? (_openBlock(), _createElementBlock(\"li\", {\n class: \"menu__item\",\n key: page.name\n }, [\n _createVNode(_component_router_link, {\n to: page.path,\n class: _normalizeClass([\"menu__link\", {menu__link_active:page.name == _unref(router)?.currentPage?.name}]),\n onClick: onOpenMenu\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", _hoisted_8, _toDisplayString(page.meta.title), 1)\n ]),\n _: 2\n }, 1032, [\"to\", \"class\"])\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n }), 256)),\n _hoisted_9,\n _createElementVNode(\"ul\", _hoisted_10, [\n (_openBlock(), _createElementBlock(\"li\", {\n class: \"menu__item\",\n key: _ctx.basket\n }, [\n _createVNode(_component_router_link, {\n to: \"/basket\",\n class: _normalizeClass([\"menu__link\", {menu__link_active:'basket' == _unref(router)?.currentPage?.name}]),\n onClick: onOpenMenu\n }, {\n default: _withCtx(() => [\n _hoisted_11\n ]),\n _: 1\n }, 8, [\"class\"])\n ])),\n (_openBlock(), _createElementBlock(\"li\", {\n class: \"menu__item\",\n key: _ctx.history\n }, [\n _createVNode(_component_router_link, {\n to: \"/history\",\n class: _normalizeClass([\"menu__link\", {menu__link_active:'history' == _unref(router)?.currentPage?.name}]),\n onClick: onOpenMenu\n }, {\n default: _withCtx(() => [\n _hoisted_12\n ]),\n _: 1\n }, 8, [\"class\"])\n ])),\n (_openBlock(), _createElementBlock(\"li\", {\n class: \"menu__item\",\n key: _ctx.password\n }, [\n _createVNode(_component_router_link, {\n to: \"/password\",\n class: _normalizeClass([\"menu__link\", {menu__link_active:'password' == _unref(router)?.currentPage?.name}]),\n onClick: onOpenMenu\n }, {\n default: _withCtx(() => [\n _hoisted_13\n ]),\n _: 1\n }, 8, [\"class\"])\n ])),\n (_openBlock(), _createElementBlock(\"li\", {\n class: \"menu__item\",\n key: _ctx.logout\n }, [\n _createVNode(_component_router_link, {\n to: \"/logout\",\n class: \"menu__link\",\n onClick: onOpenMenu\n }, {\n default: _withCtx(() => [\n _hoisted_14\n ]),\n _: 1\n })\n ]))\n ])\n ])\n ], 64))\n}\n}\n\n})","\r\n\r\n\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n Hello, {{auth.user?.name}}\r\n\r\n \r\n \r\n\r\n \r\n {{page.meta.title}}\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n Basket\r\n \r\n \r\n\r\n \r\n \r\n Order History\r\n \r\n \r\n\r\n \r\n \r\n Change Password\r\n \r\n \r\n\r\n \r\n \r\n Log out\r\n \r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./Burger.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Burger.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, withCtx as _withCtx, createVNode as _createVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"nav\" }\n\nimport { ref, onMounted } from 'vue';\r\n import { RouteRecordRaw, useRoute } from 'vue-router';\r\n\r\n import { useAuth } from '@/store/auth';\r\n import { useApp } from '@/store/app';\r\n import { useRouter } from '@/store/router';\r\n //import { ICategory } from '@/models';\r\n //----------------------------------------------------------------------\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Navigation',\n setup(__props) {\n\r\n const auth = useAuth();\r\n const app = useApp();\r\n const routerStore = useRouter();\r\n const route = useRoute();\r\n //----------------------------------------------------------------------\r\n\r\n const pages = ref([]);\r\n\r\n //----------------------------------------------------------------------\r\n const init = async () => {\r\n pages.value = await routerStore.GetCategoryPages();\r\n }\r\n\r\n onMounted(async () => {\r\n await init();\r\n });\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"ul\", null, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(pages.value, (page) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: page.name + 'nav'\n }, [\n _createVNode(_component_router_link, {\n to: page.path,\n class: _normalizeClass({active:page.name == _unref(routerStore)?.currentPage?.name})\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"span\", null, _toDisplayString(page.meta.title), 1)\n ]),\n _: 2\n }, 1032, [\"to\", \"class\"])\n ]))\n }), 128))\n ])\n ]))\n}\n}\n\n})","\r\n\r\n\r\n \r\n \r\n \r\n \r\n {{page.meta.title}}\r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n\r\n","import script from \"./Navigation.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Navigation.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","import { defineComponent as _defineComponent } from 'vue'\nimport { createElementVNode as _createElementVNode, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\nimport _imports_0 from '@/assets/img/user.svg'\nimport _imports_1 from '@/assets/img/rm-logo-mb.svg'\nimport _imports_2 from '@/assets/img/rm-logo.svg'\n\n\nconst _hoisted_1 = { class: \"header\" }\nconst _hoisted_2 = { class: \"header__container\" }\nconst _hoisted_3 = { class: \"header__top\" }\nconst _hoisted_4 = { class: \"header__left\" }\nconst _hoisted_5 = { class: \"header__user\" }\nconst _hoisted_6 = /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_0,\n alt: \"user\"\n}, null, -1)\nconst _hoisted_7 = { class: \"header__password\" }\nconst _hoisted_8 = { class: \"header__logout\" }\nconst _hoisted_9 = /*#__PURE__*/_createElementVNode(\"a\", {\n class: \"logo\",\n href: \"#\"\n}, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n src: _imports_1,\n alt: \"Ryan Meats\"\n })\n], -1)\nconst _hoisted_10 = { class: \"header__center\" }\nconst _hoisted_11 = /*#__PURE__*/_createElementVNode(\"a\", {\n class: \"logo\",\n href: \"#\"\n}, [\n /*#__PURE__*/_createElementVNode(\"img\", {\n class: \"logo__img\",\n src: _imports_2,\n alt: \"Ryan Meats\"\n })\n], -1)\nconst _hoisted_12 = { class: \"basket\" }\nconst _hoisted_13 = { class: \"basket__info\" }\nconst _hoisted_14 = { class: \"basket__alert_red\" }\nconst _hoisted_15 = { class: \"header__right\" }\nconst _hoisted_16 = { class: \"header__history\" }\nconst _hoisted_17 = { class: \"header__bottom\" }\nconst _hoisted_18 = { class: \"search\" }\nconst _hoisted_19 = { class: \"content\" }\nconst _hoisted_20 = { class: \"container\" }\n\nimport { ref, computed, onMounted } from 'vue';\r\n import { IAuthVm, IOrder } from '@/models';\r\n //import { RouteRecordRaw, useRoute } from 'vue-router';\r\n import { useAuth } from '@/store/auth';\r\n import { useApp } from '@/store/app';\r\n import { useRouter } from '@/store/router';\r\n import { debounce } from 'lodash';\r\n import burger from '@/components/layouts/default/Burger.vue';\r\n import navigation from '@/components/layouts/default/Navigation.vue';\r\n //---------------------------------------------------------------------------------------\r\n import { useOrder } from '@/store/order';\r\n import { useProduct } from '@/store/product';\r\n \nexport default /*#__PURE__*/_defineComponent({\n __name: 'Layout',\n setup(__props) {\n\r\n const auth = useAuth();\r\n const app = useApp();\r\n const router = useRouter();\r\n //---------------------------------------------------------------------------------------------------\r\n const orderStore = useOrder();\r\n //---------------------------------------------------------------------------------------------------\r\n const productStore = useProduct();\r\n //---------------------------------------------------------------------------------------------------\r\n\r\n const search = ref();\r\n\r\n const countProducts = computed(() => orderStore.current && orderStore.current.products ? orderStore.current.products.length : 0);\r\n //--------------------------------------------------------------------\r\n const class_role = auth?.user?.roles?.[0].toLowerCase() ?? '';\r\n document.body.classList.add(class_role);\r\n //--------------------------------------------------------------------\r\n\r\n const minOrderValue = computed(() => auth.user && auth.user.minOrderValue ? auth.user.minOrderValue : 0);\r\n //const isViewMinOrderValue = computed(() => minOrderValue.value > 0 && total.value.estimate > 0 && total.value.estimate < minOrderValue.value);\r\n\r\n //----------------------------------------------------------------------------------\r\n\r\n const onSearch = () => {\r\n productStore.search = search.value\r\n }\r\n\r\n\r\n\r\n const onOpenMenu = () => {\r\n app.toggleClassBody('open');\r\n }\r\n\r\n //--------------------------------------------------------------------\r\n const load = debounce(async () => {\r\n orderStore.GetCurrent();\r\n }, 1000);\r\n\r\n onMounted(async () => {\r\n await load();\r\n });\r\n\r\n\nreturn (_ctx: any,_cache: any) => {\n const _component_router_link = _resolveComponent(\"router-link\")!\n const _component_a_input_search = _resolveComponent(\"a-input-search\")!\n const _component_router_view = _resolveComponent(\"router-view\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _hoisted_6,\n _createTextVNode(\" Hello, \"),\n _createElementVNode(\"b\", null, _toDisplayString(_unref(auth).user?.name), 1)\n ]),\n _createElementVNode(\"div\", _hoisted_7, [\n _createVNode(_component_router_link, {\n to: \"/password\",\n class: \"btn\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Change Password\")\n ]),\n _: 1\n })\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n _createVNode(_component_router_link, {\n to: \"/logout\",\n class: \"btn\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Log out\")\n ]),\n _: 1\n })\n ]),\n _hoisted_9\n ]),\n _createElementVNode(\"div\", _hoisted_10, [\n _hoisted_11,\n _createElementVNode(\"div\", _hoisted_12, [\n _createVNode(_component_router_link, {\n to: \"/basket\",\n class: \"basket__btn btn\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"View Basket \"),\n _createElementVNode(\"span\", null, \"(\" + _toDisplayString(countProducts.value) + \")\", 1)\n ]),\n _: 1\n }),\n _createElementVNode(\"div\", _hoisted_13, [\n _createTextVNode(\" Your order must be over \"),\n _createElementVNode(\"span\", _hoisted_14, \"€\" + _toDisplayString(minOrderValue.value), 1)\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_15, [\n _createElementVNode(\"div\", _hoisted_16, [\n _createVNode(_component_router_link, {\n to: \"/history\",\n class: \"btn\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"Order History\")\n ]),\n _: 1\n })\n ]),\n _createVNode(_component_router_link, {\n to: \"/basket\",\n class: \"header__basket btn\"\n }, {\n default: _withCtx(() => [\n _createTextVNode(\"View Basket \"),\n _createElementVNode(\"span\", null, \"(\" + _toDisplayString(countProducts.value) + \")\", 1)\n ]),\n _: 1\n }),\n _createVNode(burger)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_17, [\n _createVNode(navigation),\n _createElementVNode(\"div\", _hoisted_18, [\n _createVNode(_component_a_input_search, {\n value: search.value,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((search).value = $event)),\n placeholder: \"Search...\",\n class: \"search\",\n onSearch: onSearch\n }, null, 8, [\"value\"])\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_19, [\n _createElementVNode(\"div\", _hoisted_20, [\n (_unref(auth).user)\n ? (_openBlock(), _createBlock(_component_router_view, { key: 0 }))\n : _createCommentVNode(\"\", true)\n ])\n ])\n ], 64))\n}\n}\n\n})","\r\n\r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n Hello, \r\n {{auth.user?.name}}\r\n \r\n\r\n \r\n Change Password\r\n \r\n \r\n Log out\r\n \r\n\r\n\r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n View Basket ({{countProducts}})\r\n \r\n Your order must be over €{{minOrderValue}}\r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n Order History\r\n \r\n\r\n View Basket ({{countProducts}})\r\n\r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n \r\n\r\n \r\n\r\n\r\n \r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n","import script from \"./Layout.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./Layout.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__","\r\n\r\n\r\n\r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./Layout.vue?vue&type=template&id=6da982b5\"\nconst script = {}\n\nimport exportComponent from \"../../../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { IAuthVm } from '@/models'\r\nimport { RouteRecordRaw } from 'vue-router'\r\nimport { cloneDeep } from 'lodash';\r\n\r\n//import CabinetLayout from '@/layouts/Cabinet.vue';\r\n//import MainLayout from '@/layouts/Main.vue';\r\nimport LayoutDefault from '@/components/layouts/default/Layout.vue';\r\nimport LayoutPublic from '@/components/layouts/public/Layout.vue';\r\n//\r\nimport Products from '@/views/customer/Products.vue';\r\n\r\n//-----------------------------------------------------------------------------------------------------\r\n\r\n\r\n\r\nexport const publicRoutes: RouteRecordRaw[] = [\r\n {\r\n path: '/',\r\n component: LayoutPublic,\r\n //redirect: '/home',\r\n name: 'main',\r\n //hidden: false,\r\n children: [\r\n {\r\n path: '',\r\n name: 'home',\r\n component: () => import('@/views/public/Index.vue')\r\n },\r\n {\r\n path: '/:pathMatch(.*)*',\r\n name: '404',\r\n component: () => import('@/views/exception/404.vue'),\r\n meta: { title: '404', keepAlive: true, hidden: true },\r\n }\r\n ,{\r\n path: '/logout',\r\n name: 'logout',\r\n component: () => import('@/views/auth/Logout.vue')\r\n }\r\n ]\r\n },\r\n\r\n {\r\n path: '/404',\r\n name: '404',\r\n component: () => import(/* webpackChunkName: \"fail\" */ '@/views/exception/404.vue')\r\n }\r\n\r\n]\r\n\r\n//-----------------------------------------------------------------------------------------------------\r\n\r\n\r\nconst _root: RouteRecordRaw = {\r\n path: '/',\r\n name: 'index',\r\n component: LayoutDefault,\r\n meta: { title: '' },\r\n redirect: '/pork',\r\n children: []\r\n}\r\n\r\n\r\n\r\nconst _common: RouteRecordRaw[] = [\r\n {\r\n path: '/refresh',\r\n name: 'refresh',\r\n component: () => import('@/views/auth/Refresh.vue'),\r\n meta: { hidden: true }\r\n },\r\n {\r\n path: '/logout',\r\n name: 'logout',\r\n component: () => import('@/views/auth/Logout.vue')\r\n },\r\n {\r\n path: '/:pathMatch(.*)*',\r\n name: '404',\r\n component: () => import('@/views/exception/404.vue'),\r\n meta: { title: '404', keepAlive: true, icon: '', hidden: true },\r\n },\r\n\r\n];\r\n\r\n\r\n\r\nconst _admin: RouteRecordRaw[] = [\r\n {\r\n path: '/dashboard',\r\n name: 'dashboard',\r\n component: () => import('@/views/admin/Dashboard.vue'),\r\n meta: { title: 'Dashboard', keepAlive: true, icon: '', hidden: false }\r\n },\r\n \r\n\r\n ...cloneDeep(_common),\r\n];\r\n\r\n\r\n\r\nconst _customer: RouteRecordRaw[] = [\r\n //{\r\n // path: '/dashboard',\r\n // name: 'dashboard',\r\n // component: () => import('@/views/customer/Dashboard.vue'),\r\n // meta: { title: 'Dashboard', keepAlive: true, icon: '', hidden: false }\r\n //},\r\n {\r\n path: '/products',\r\n name: 'products',\r\n component: Products, //() => import('@/views/customer/Products.vue'),\r\n meta: { title: 'Products', keepAlive: true, icon: '', hidden: true }\r\n },\r\n {\r\n path: '/basket',\r\n name: 'basket',\r\n component: () => import('@/views/customer/Basket.vue'),\r\n meta: { title: 'Basket', keepAlive: true, icon: '', hidden: true }\r\n },\r\n {\r\n path: '/history',\r\n name: 'history',\r\n component: () => import('@/views/customer/History.vue'),\r\n meta: { title: 'History', keepAlive: true, icon: '', hidden: true }\r\n },\r\n {\r\n path: '/password',\r\n name: 'password',\r\n component: () => import('@/views/customer/Password.vue'),\r\n meta: { title: 'Change Password', keepAlive: true, icon: '', hidden: true }\r\n },\r\n\r\n ...cloneDeep(_common),\r\n];\r\n\r\n\r\n\r\n//-----------------------------------------------------------------------------------------------------\r\n\r\n\r\nconst createRoutes = (root: RouteRecordRaw, children: RouteRecordRaw[]) => {\r\n if (!root.children) return;\r\n for (let i = 0; i < children.length; i++) {\r\n root.children?.push(children[i]);\r\n }\r\n}\r\n\r\n\r\n\r\nexport const generatorDynamicRouter = (user: IAuthVm, menuDynemic?: RouteRecordRaw[]): Promise => {\r\n return new Promise((resolve: Function, reject: Function) => {\r\n try {\r\n\r\n\r\n\r\n if (!user\r\n || !user.token\r\n || user.token.length <= 0\r\n || !user.roles\r\n || user.roles.length <= 0) {\r\n return reject([]);\r\n\r\n }\r\n\r\n const currentRole = user.roles[0];//.toLowerCase();\r\n\r\n let r: RouteRecordRaw = cloneDeep(_root);\r\n\r\n switch (currentRole) {\r\n case 'Admin':\r\n createRoutes(r, _admin);\r\n break;\r\n case 'Customer':\r\n createRoutes(r, _customer);\r\n if (menuDynemic)\r\n createRoutes(r, menuDynemic);\r\n break;\r\n }\r\n\r\n return resolve(r)\r\n\r\n } catch (err) {\r\n\r\n console.log('generator routers:', err);\r\n return reject([]);\r\n }\r\n\r\n })\r\n}\r\n\r\n","import { createRouter, createWebHistory } from 'vue-router'\r\n//import { constantRouterMap } from '@/config/router.config'\r\nimport { publicRoutes } from '@/router/generator-routers'\r\n\r\n\r\nconst router = createRouter({\r\n history: createWebHistory(process.env.BASE_URL),\r\n routes: publicRoutes,\r\n});\r\n\r\n\r\nexport default router\r\n","/**\r\n * Элементы конфигурации проекта по умолчанию\r\n * primaryColor - цвет темы по умолчанию, если измененный цвет не вступит в силу, очистите localStorage\r\n * navTheme - sidebar theme['dark', 'light'] две темы\r\n * режим цветовой слепоты\r\n * layout - общий метод макета['sidemenu', 'topmenu'] два макета\r\n * fixedHeader - fixed Заголовок: логический\r\n * fixSiderbar - исправить левую строку меню: boolean\r\n * макет contentWidth - content: потоковая передача | исправлено\r\n *\r\n * storageOptions: () - Vue - ls элемент конфигурации плагина(localStorage / sessionStorage)\r\n *\r\n */\r\n\r\nexport default {\r\n navTheme: 'dark', // theme for nav menu\r\n primaryColor: '#52C41A', // primary color of ant design //#1890ff//#52C41A\r\n layout: 'sidemenu', // nav menu position: `sidemenu` or `topmenu`\r\n contentWidth: 'Fluid', // layout of content: `Fluid` or `Fixed`, only works when layout is topmenu\r\n fixedHeader: false, // sticky header\r\n fixSiderbar: false, // sticky siderbar\r\n colorWeak: false,\r\n menu: {\r\n locale: true\r\n },\r\n title: 'Ryan Meats',\r\n pwa: false,\r\n iconfontUrl: '',\r\n production: process.env.NODE_ENV === 'production' && process.env.VUE_APP_PREVIEW !== 'true',\r\n autoHideHeader: false,\r\n multiTab: false,\r\n\r\n}\r\n","import config from '@/config/defaultSettings'\r\n\r\nexport const setDocumentTitle = function (title: string) {\r\n document.title = title;\r\n\r\n //setTimeout(function (){\r\n // var date = new Date();\r\n // document.title = `${title} ${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`;\r\n // console.log(document.title);\r\n //},1000);\r\n\r\n const agent = navigator.userAgent;\r\n // eslint-disable-next-line\r\n const regex = /\\bMicroMessenger\\/([\\d\\.]+)/;\r\n if (regex.test(agent) && /ip(hone|od|ad)/i.test(agent)) {\r\n const i = document.createElement('iframe')\r\n i.src = '/favicon.ico'\r\n i.style.display = 'none'\r\n i.onload = function () {\r\n setTimeout(function () {\r\n i.remove()\r\n }, 9)\r\n }\r\n document.body.appendChild(i)\r\n }\r\n}\r\n\r\nexport const domTitle = config.title\r\n","import router from './router'\r\n//import { store } from './store'\r\nimport { useAuth } from '@/store/auth';\r\nimport { useRouter } from '@/store/router';\r\nimport storage from 'store'\r\nimport NProgress from 'nprogress'\r\nimport { setDocumentTitle, domTitle } from '@/utils/domUtil'\r\nimport { USER } from '@/store/mutation-types'\r\nimport { IAuthVm } from '@/models';\r\nimport { RouteRecordRaw } from 'vue-router';\r\nimport { publicRoutes } from '@/router/generator-routers';\r\n\r\n\r\n\r\n\r\nNProgress.configure({ showSpinner: false, ease: 'ease' });\r\n\r\n\r\n//const publicPages = _route.routers\r\n// ? (_route.routers as RouteRecordRaw[]).map(x => {\r\n// if (x && x.name === 'main' && x.children) {\r\n// return x.children ? x.children.map(r => r.name) as string[] : [];\r\n// }\r\n// })[0]\r\n// : [];\r\n\r\nfunction GetPublicPages(route: any): string[] | undefined {\r\n\r\n const res = publicRoutes.map(x => x.children?.map(r => r.name) as string[])[0];\r\n return res;\r\n\r\n //return route.routers\r\n // ? (route.routers as RouteRecordRaw[]).map(x => {\r\n // if (x && x.name === 'main' && x.children) {\r\n // return x.children ? x.children.map(r => r.name) as string[] : [];\r\n // }\r\n // })[0]\r\n // : [];\r\n\r\n}\r\n\r\n\r\n\r\nrouter.beforeEach((to: any, from: any, next: any) => {\r\n\r\n NProgress.start();\r\n\r\n //if (to && to.meta && to?.meta?.title) {\r\n if (to?.meta?.title) {\r\n setDocumentTitle(`${to.meta.title} - ${domTitle}`);\r\n }\r\n\r\n //to.meta && (typeof to.meta.title !== 'undefined' && setDocumentTitle(`${to.meta.title} - ${domTitle}`))\r\n\r\n const _auth = useAuth();\r\n const _route = useRouter();\r\n\r\n \r\n\r\n const storageUser: IAuthVm = storage.get(USER);\r\n \r\n if (!storageUser || !storageUser.id || storageUser.id <= 0 || !storageUser.token || storageUser.token.length <= 0)\r\n {\r\n \r\n const publicPages = GetPublicPages(_route);\r\n \r\n const isPublicPage = publicPages ? publicPages.includes(to.name) : true;\r\n if (isPublicPage) {\r\n \r\n return next();\r\n } else {\r\n \r\n return next('/');\r\n }\r\n }\r\n else if (storageUser && storageUser.id > 0 && storageUser.token)\r\n {\r\n \r\n const route = _route.route;\r\n\r\n if (!route || !route.children || route.children.length === 0) {\r\n\r\n \r\n if (to.path === '/logout') {\r\n \r\n return next();\r\n }\r\n\r\n if (from.path === '/' && from.name !== 'home') {\r\n _auth.$patch({ user: storageUser })\r\n }\r\n\r\n \r\n _route.GenerateRoutes(router, storageUser).then((res: RouteRecordRaw | undefined) => {\r\n \r\n if (!res || res.children?.length === 0)\r\n return next('/logout');\r\n //return next({ name: 'logout' });\r\n\r\n return next(to.path);\r\n\r\n }).catch(() => {\r\n \r\n return next({ name: 'logout' });\r\n });\r\n\r\n }\r\n else {\r\n \r\n if (!router.hasRoute(to.name)) {\r\n return next({ name: 'logout' });\r\n } else if (to.name === '404') {\r\n return next({ name: 'products', replace: true });\r\n } else {\r\n return next();\r\n }\r\n\r\n }\r\n }\r\n else {\r\n \r\n return next('/');\r\n }\r\n\r\n});\r\n\r\nrouter.afterEach(() => {\r\n NProgress.done();\r\n});","//import storage from 'store'\r\nimport 'core-js/stable'\r\nimport 'regenerator-runtime/runtime'\r\n\r\nimport { createApp } from 'vue';\r\nimport { createPinia } from 'pinia'\r\n\r\nimport App from './App.vue'\r\nimport router from './router'\r\nimport { VueAxios } from './utils/request'\r\n\r\nimport './permission';\r\n\r\nimport '@/assets/style/index.less';\r\n\r\n//import VueGoogleMaps from 'vue-google-maps-community-fork';\r\n\r\n//import { VueEmailPlugin } from 'vue-email'\r\n\r\n//import VueApexCharts from \"vue3-apexcharts\";\r\n\r\n// Fortawesome-----------------------------------------------------------------\r\n\r\n/* import the fontawesome core */\r\n//import { library } from '@fortawesome/fontawesome-svg-core'\r\n\r\n/* import font awesome icon component */\r\n//import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'\r\n\r\n/* import specific icons */\r\n//import {\r\n// faDashboard,\r\n// faTachometer,\r\n//} from '@fortawesome/free-solid-svg-icons'\r\n\r\n\r\n//import {\r\n//} from '@fortawesome/free-regular-svg-icons'\r\n\r\n\r\n///* add icons to the library */\r\n//library.add(\r\n// faDashboard,\r\n// faTachometer,\r\n//)\r\n\r\n\r\n// Ant -----------------------------------------------------------------\r\n\r\nimport {\r\n Calendar,\r\n //Rate,\r\n //Space,\r\n //Slider,\r\n //Collapse,\r\n Carousel,\r\n //Cascader,\r\n //Tree,\r\n //Anchor,\r\n ConfigProvider,\r\n //Layout,\r\n Input,\r\n InputNumber,\r\n Button,\r\n Switch,\r\n Radio,\r\n Checkbox,\r\n Select,\r\n //Card,\r\n //Form,\r\n //Row,\r\n //Col,\r\n Modal,\r\n Table,\r\n Tabs,\r\n /*Icon,*/\r\n //Badge,\r\n Popover,\r\n Pagination,\r\n Dropdown,\r\n //List,\r\n //Avatar,\r\n //Breadcrumb,\r\n //Steps,\r\n Spin,\r\n //Menu,\r\n //Drawer,\r\n Tooltip,\r\n Alert,\r\n Tag,\r\n Divider,\r\n DatePicker,\r\n Drawer,\r\n TimePicker,\r\n //Upload,\r\n //Progress,\r\n //Skeleton,\r\n Popconfirm,\r\n //PageHeader,\r\n //Result,\r\n //Statistic,\r\n //Descriptions,\r\n Image,\r\n Transfer,\r\n message,\r\n} from 'ant-design-vue'\r\n\r\n\r\n//process.env.NODE_ENV !== 'production' && console.warn('[antd-pro] NOTICE: Antd use lazy-load.')\r\n\r\n\r\n//Pinia-----------------------------------------------\r\n\r\n//Это полезно для добавления глобальных объектов, таких как маршрутизатор, модальные окна или менеджеры тостов.\r\nfunction CommonPiniaPlugin() {\r\n //if (process.env.NODE_ENV === 'development') {\r\n //}\r\n return { env: process.env.NODE_ENV }\r\n}\r\n\r\nconst pinia = createPinia();\r\npinia.use(CommonPiniaPlugin);\r\n//pinia.use(() => ({ hello: 'world' }))\r\n\r\n//Pinia-----------------------------------------------\r\n\r\n\r\nconst app = createApp(App);\r\n\r\n//console.log('CONFIG:', app.config);\r\n\r\napp.use(pinia);\r\n//app.use(store);\r\napp.use(router);\r\n\r\n//app.use(PrimeVue); //app.use(PrimeVue, { ripple: true });\r\napp.use(Calendar);\r\n//app.use(Rate);\r\n//app.use(Space);\r\n//app.use(Slider);\r\n//app.use(Collapse)\r\napp.use(Carousel)\r\n//app.use(Cascader)\r\n//app.use(Tree)\r\n//app.use(Anchor)\r\napp.use(ConfigProvider)\r\n//app.use(Layout)\r\napp.use(Input)\r\napp.use(InputNumber)\r\napp.use(Button)\r\napp.use(Switch)\r\napp.use(Radio)\r\napp.use(Checkbox)\r\napp.use(Select)\r\n//app.use(Card)\r\n//app.use(Form)\r\n//app.use(Row)\r\n//app.use(Col)\r\napp.use(Modal)\r\napp.use(Table)\r\napp.use(Tabs)\r\n/*app.use(Icon)*/\r\n//app.use(Badge)\r\napp.use(Popover)\r\napp.use(Pagination)\r\napp.use(Dropdown)\r\n//app.use(List)\r\n//app.use(Avatar)\r\n//app.use(Breadcrumb)\r\n//app.use(Steps)\r\napp.use(Spin)\r\n//app.use(Menu)\r\napp.use(Tooltip)\r\napp.use(Alert)\r\napp.use(Tag)\r\napp.use(Divider)\r\napp.use(DatePicker)\r\napp.use(Drawer)\r\napp.use(TimePicker)\r\n//app.use(Upload)\r\n//app.use(Progress)\r\n//app.use(Skeleton)\r\napp.use(Popconfirm)\r\n//app.use(PageHeader)\r\n//app.use(Result)\r\n//app.use(Statistic)\r\n//app.use(Descriptions)\r\n//app.use(message)\r\n//app.use(notification)\r\napp.use(Image)\r\napp.use(Transfer)\r\n\r\napp.use(VueAxios);\r\n\r\n\r\n\r\n//app.use(VueGoogleMaps, {\r\n// load: {\r\n// key: process.env.VUE_APP_GOOGLEMAPS_KEY,\r\n// //libraries: \"places\",\r\n// libraries: [\"places\"],\r\n \r\n// language: 'en',\r\n// },\r\n//});\r\n\r\n\r\n//app.use(VueEmailPlugin, {\r\n// baseUrl: process.env.VUE_APP_DOMAIN,//'', //Базовый URL-адрес сайта, используемый для изображений.\r\n// i18n: { //Конфигурация i18n для плагина.\r\n// defaultLocale: 'en',\r\n// //translations: {\r\n// // en: {\r\n// // greetings: 'Welcome {user}',\r\n// // },\r\n// // es: {\r\n// // greetings: 'Bienvenido {user}',\r\n// // }\r\n// //}\r\n// }\r\n//});\r\n\r\n//app.use(VueApexCharts);\r\n//--components--------------------------------------------------\r\n\r\n\r\n//app.component('fa', FontAwesomeIcon);\r\n\r\n//--config------------------------------------------------------\r\n\r\n\r\napp.config.errorHandler = (err: any) => {\r\n//app.config.errorHandler = (err, instance, info) => {\r\n//app.config.errorHandler = (err:any, vm:any, info:any) => {\r\n // `info` ��� Vue-����������� ������\r\n //\r\n if (err) {\r\n console.log(`%c Error message: ${err.message}`, 'background: red; color: #fff');\r\n console.log(`Error stack: ${err.stack}`);\r\n //console.log(`vm: ${vm}`);\r\n\r\n //console.log(`errorHandler.err: ${err}`);\r\n //console.log(`errorHandler.info: ${info}`);\r\n \r\n //storage.set('_error.message', err.message);\r\n //storage.set('_error.stack', err.stack);\r\n\r\n message.error(err.message);\r\n //message.error(info);\r\n debugger\r\n }\r\n};\r\n\r\n\r\napp.mount('#root');\r\n\r\nexport default app;\r\n","export default class Option {\r\n readonly value: number;\r\n readonly label: string;\r\n\r\n readonly disabled?: boolean;\r\n readonly key?: string;\r\n readonly title?: string;\r\n \r\n\r\n constructor(value: number, label: string, disabled?: boolean, key?: string, title?: string,) {\r\n this.value = value;\r\n this.label = label;\r\n\r\n this.disabled = disabled;\r\n this.key = key;\r\n this.title = title;\r\n }\r\n\r\n}","import { Option } from '@/models';\r\n\r\nexport default class OrderedBy {\r\n static Name: number = 0;\r\n static Popular: number = 1;\r\n static LowPrice: number = 2;\r\n static HighPrice: number = 3;\r\n\r\n constructor() {\r\n //this.Popularity = 0;\r\n //this.HighPrice = 1;\r\n //this.LowPrice = 2;\r\n }\r\n\r\n static Options(): Option[] {\r\n return [\r\n new Option(OrderedBy.Name, \"Name Product\"),\r\n new Option(OrderedBy.Popular, \"Most Popular\"),\r\n new Option(OrderedBy.LowPrice, \"Lowest Price\"),\r\n new Option(OrderedBy.HighPrice, \"Highest Price\")\r\n ];\r\n }\r\n\r\n //get Key(): K {\r\n // return this.key;\r\n //}\r\n\r\n //get Value():V {\r\n // return this.value;\r\n //}\r\n}","import { Option } from '@/models';\r\n\r\nexport default class Unit {\r\n static Kg: number = 0;\r\n static Piece: number = 1;\r\n\r\n static Values = [new Option(this.Kg, \"Kg\"), new Option(this.Piece, \"Piece\")];\r\n static ValuePiece = [new Option(this.Piece, \"Piece\")];\r\n\r\n constructor() {\r\n }\r\n\r\n static Options(): Option[] {\r\n return this.Values;\r\n }\r\n\r\n //static Options(): Option[] {\r\n // return [new Option(this.Kg, \"Kg\"), new Option(this.Piece, \"Piece\")];\r\n //}\r\n\r\n //static Options(val: number | undefined): Option[] {\r\n // const values = [new Option(this.Kg, \"Kg\"), new Option(this.Piece, \"Piece\")];\r\n // return val !== undefined && !Number.isNaN(val)\r\n // ? values.filter(x => x.value == val)\r\n // : values;\r\n\r\n\r\n //}\r\n\r\n\r\n static OptionsPiece(val: number | undefined, valOrigin: number | undefined): Option[] {\r\n\r\n return val !== undefined\r\n && !Number.isNaN(val)\r\n && valOrigin !== undefined\r\n && !Number.isNaN(valOrigin)\r\n && val == valOrigin\r\n && val == this.Piece\r\n\r\n ? this.ValuePiece\r\n : this.Values;\r\n\r\n //var res = val !== undefined\r\n // && !Number.isNaN(val)\r\n // && val == this.Piece\r\n\r\n // ? this.valuePiece\r\n // : this.values;\r\n\r\n //console.log(`val:${val} | res:${res[0].title}`);\r\n ////debugger;\r\n //return res;\r\n\r\n\r\n \r\n }\r\n\r\n}","//import { Option } from '@/models';\r\n\r\nexport default class OrderStatus {\r\n static Assembly: number = 0;\r\n static Delivery: number = 1;\r\n static Accepted: number = 2;\r\n\r\n constructor() {\r\n }\r\n\r\n //static Options(): Option[] {\r\n // return [\r\n // new Option(OrderStatus.Assembly, \"Assembly\"),\r\n // new Option(OrderStatus.Delivery, \"Delivery\"),\r\n // new Option(OrderStatus.Accepted, \"Accepted\"),\r\n // ];\r\n //}\r\n\r\n}","import request from '@/utils/request'\r\nimport { ILogin, IRegister } from '@/models';\r\n\r\nconst api = '/user'\r\n\r\n\r\n\r\n//IAuthVm\r\nexport function _register(parameter: IRegister) {\r\n return request({\r\n url: `${api}/Register`,\r\n method: 'post',\r\n data: parameter\r\n })\r\n}\r\n\r\n\r\n//IAuthVm\r\nexport function _login(parameter: ILogin) {\r\n return request({\r\n url: `${api}/login`,\r\n method: 'post',\r\n data: parameter\r\n })\r\n}\r\n\r\n\r\n//AuthVm\r\nexport function _refreshToken() {\r\n return request({\r\n url: `${api}/RefreshToken`,\r\n method: 'get',\r\n })\r\n}\r\n\r\n\r\n//bool\r\nexport function _revokeToken() {\r\n return request({\r\n url: `${api}/Logout`,\r\n method: 'get',\r\n })\r\n}\r\n\r\n\r\n\r\nexport function _getUserAuth() {\r\n return request({\r\n url: `${api}/auth`,\r\n method: 'get'\r\n })\r\n}","export function timeFix() {\r\n const time = new Date()\r\n const hour = time.getHours()\r\n return hour < 9 ? 'Good morning' : hour <= 11 ? 'Good morning' : hour <= 13 ? 'Good day' : hour < 20 ? 'Good day' : 'Good evening'\r\n}\r\n\r\nexport function welcome() {\r\n const arr = ['Work', 'Work', 'Work', 'Work', 'Work']\r\n const index = Math.floor(Math.random() * arr.length)\r\n return arr[index]\r\n}\r\n\r\ninterface EventEx extends globalThis.Event {\r\n eventType?: string\r\n}\r\n\r\n/**\r\n * 触发 window.resize\r\n */\r\nexport function triggerWindowResizeEvent() {\r\n const event: EventEx = document.createEvent('HTMLEvents')\r\n event.initEvent('resize', true, true)\r\n event.eventType = 'message'\r\n window.dispatchEvent(event)\r\n}\r\n\r\nexport function handleScrollHeader(callback: Function) {\r\n let timer = 0\r\n\r\n let beforeScrollTop = window.pageYOffset\r\n callback = callback || function () { }\r\n window.addEventListener(\r\n 'scroll',\r\n event => {\r\n clearTimeout(timer)\r\n setTimeout(() => {\r\n let direction = 'up'\r\n const afterScrollTop = window.pageYOffset\r\n const delta = afterScrollTop - beforeScrollTop\r\n if (delta === 0) {\r\n return false\r\n }\r\n direction = delta > 0 ? 'down' : 'up'\r\n callback(direction)\r\n beforeScrollTop = afterScrollTop\r\n }, 50)\r\n },\r\n false\r\n )\r\n}\r\n\r\nexport function isIE() {\r\n const bw = window.navigator.userAgent\r\n const compare = (s: string) => bw.indexOf(s) >= 0\r\n const ie11 = (() => 'ActiveXObject' in window)()\r\n return compare('MSIE') || ie11\r\n}\r\n\r\n/**\r\n * Remove loading animate\r\n * @param id parent element id or class\r\n * @param timeout\r\n */\r\nexport function removeLoadingAnimate(id = '', timeout = 1500) {\r\n if (id === '') {\r\n return\r\n }\r\n setTimeout(() => {\r\n const el = document.getElementById(id);\r\n if (el) {\r\n document.body.removeChild(el);\r\n }\r\n \r\n }, timeout)\r\n}\r\n","import { ref } from 'vue';\r\n//import router from '@/router'\r\nimport storage from 'store'\r\n//import { resetState } from '@/store';\r\nimport { defineStore } from 'pinia';\r\n//import { useRouter } from '@/store/router';\r\nimport { _register, _login, _refreshToken, _revokeToken } from '@/service/auth'\r\nimport { IAuthVm, ILogin, IRegister } from '@/models'\r\n\r\nimport { timeFix } from '@/utils/util'\r\nimport { USER } from '@/store/mutation-types'\r\nimport { message } from 'ant-design-vue';\r\n\r\n\r\n\r\nexport const useAuth = defineStore('auth', () => {\r\n\r\n const user = ref();\r\n\r\n //-----------------------------------------------------------\r\n\r\n async function Register(model: IRegister): Promise {\r\n\r\n try {\r\n\r\n const res: any = await _register(model);\r\n\r\n if (res) {\r\n\r\n user.value = res.data;\r\n storage.set(USER, res.data);\r\n\r\n message.success(`${timeFix()}`);\r\n console.log(`%c New token (Register): ${new Date().toTimeString().split(' ')[0]}`, 'background: red; color: #fff');\r\n return res.data;\r\n } else {\r\n message.warning('Register');\r\n return undefined;\r\n }\r\n\r\n } catch (e) {\r\n message.error('Register');\r\n console.log(e);\r\n return undefined;\r\n }\r\n\r\n }\r\n\r\n\r\n async function Login(model: ILogin): Promise {\r\n\r\n try {\r\n \r\n const res: any = await _login(model);\r\n \r\n if (res) {\r\n\r\n user.value = res;\r\n storage.set(USER, res);\r\n\r\n //document.body.classList.add(this.auth?.roles[0]?.toLowerCase());\r\n\r\n message.success(`${timeFix()}`);\r\n console.log(`%c New token (Login): ${new Date().toTimeString().split(' ')[0]}`, 'background: red; color: #fff');\r\n\r\n\r\n\r\n return res;\r\n } else {\r\n message.warning('Login');\r\n return undefined;\r\n }\r\n\r\n } catch (e) {\r\n message.error('Login');\r\n console.log(e);\r\n return undefined;\r\n }\r\n\r\n }\r\n\r\n\r\n async function RefreshToken(): Promise {\r\n\r\n try {\r\n\r\n //const auth: IAuthVm = storage.get(USER);\r\n //if (!auth || !auth.RefreshToken || auth.RefreshToken.length <= 0) {\r\n // return undefined;\r\n //}\r\n //const model: ITokenRequest = {\r\n // refreshToken: user.refreshToken\r\n //};\r\n\r\n //------------------------------------------------------------------------------------------\r\n //commit('DELETE_ROUTES');\r\n //------------------------------------------------------------------------------------------\r\n\r\n \r\n const res: any = await _refreshToken(); //IResult\r\n \r\n\r\n if (res && res.id > 0) {\r\n\r\n //var _router = useRouter();\r\n //_router.$patch({ route: undefined });\r\n\r\n user.value = res;\r\n storage.set(USER, res);\r\n\r\n console.log(`%c New token (RefreshToken): ${new Date().toTimeString().split(' ')[0]}`, 'background: orange; color: #fff');\r\n\r\n return res;\r\n } else {\r\n message.warning('Refresh token');\r\n //dispatch('Logout');\r\n return undefined;\r\n }\r\n\r\n } catch (e) {\r\n\r\n message.error('Refresh token');\r\n console.log(e);\r\n return undefined;\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n async function Logout(): Promise {\r\n\r\n try {\r\n\r\n //const auth: IAuthVm = storage.get(USER);\r\n //if (!auth || !auth.token || auth.token.length === 0) {\r\n // commit('DELETE_USER');\r\n // window.location.href = '/';\r\n // return;\r\n //}\r\n\r\n //var res = await _revokeToken();\r\n\r\n user.value = {} as IAuthVm;\r\n storage.remove(USER);\r\n\r\n\r\n } catch (e: any) {\r\n } finally {\r\n window.location.href = '/';\r\n }\r\n }\r\n\r\n\r\n //-----------------------------------------------------------\r\n return { user, Login, RefreshToken, Logout };\r\n});\r\n\r\n\r\n","export const ACCESS_TOKEN = 'Access-Token'\r\nexport const USER = 'user'\r\n\r\nexport const SIDEBAR_TYPE = 'sidebar_type'\r\nexport const TOGGLE_MOBILE_TYPE = 'is_mobile'\r\nexport const TOGGLE_NAV_THEME = 'nav_theme'\r\nexport const TOGGLE_LAYOUT = 'layout'\r\nexport const TOGGLE_FIXED_HEADER = 'fixed_header'\r\nexport const TOGGLE_FIXED_SIDEBAR = 'fixed_sidebar'\r\nexport const TOGGLE_CONTENT_WIDTH = 'content_width'\r\nexport const TOGGLE_HIDE_HEADER = 'auto_hide_header'\r\nexport const TOGGLE_COLOR = 'color'\r\nexport const TOGGLE_WEAK = 'weak'\r\nexport const TOGGLE_MULTI_TAB = 'multi_tab'\r\nexport const APP_LANGUAGE = 'app_language'\r\n\r\nexport const CONTENT_WIDTH_TYPE = {\r\n Fluid: 'Fluid',\r\n Fixed: 'Fixed'\r\n}\r\n\r\nexport const NAV_THEME = {\r\n LIGHT: 'light',\r\n DARK: 'dark'\r\n}\r\n","import request from '@/utils/request'\r\nimport {\r\n //IPagingVm,\r\n //IPagingDto,\r\n IOrder,\r\n IAddProduct,\r\n IUpdateProduct,\r\n IUpdateOrder\r\n} from '@/models';\r\n\r\nconst api = '/order'\r\n\r\n\r\n\r\nexport function getCurrent() {\r\n return request({\r\n url: api,\r\n method: 'get'\r\n });\r\n}\r\n\r\nexport function getDelivery() {\r\n return request({\r\n url: `${api}/delivery`,\r\n method: 'get'\r\n });\r\n}\r\n\r\n\r\nexport function addProduct(parameter: IAddProduct) {\r\n return request({\r\n url: `${api}/add`,\r\n method: 'post',\r\n data: parameter\r\n })\r\n}\r\n\r\n\r\nexport function updateOrder(parameter: IUpdateOrder) {\r\n return request({\r\n url: `${api}/update`,\r\n method: 'post',\r\n data: parameter\r\n })\r\n}\r\n\r\n\r\n//export function updateOrder(parameter: IUpdateOrder) {\r\n// return request({\r\n// url: api,\r\n// method: 'put',\r\n// data: parameter\r\n// })\r\n//}\r\n\r\n\r\n//export function updateOrder(id: number, parameter: IUpdateOrder) {\r\n// return request({\r\n// url: `${api}/${id}`,\r\n// method: 'put',\r\n// data: parameter\r\n// })\r\n//}\r\n\r\n\r\nexport function deleteProduct(orderId: number, productId: number) {\r\n return request({\r\n url: `${api}/${orderId}/product/${productId}`,\r\n method: 'delete',\r\n })\r\n}\r\n\r\n\r\n//export function updateProduct(parameter: IUpdateProduct) {\r\n// return request({\r\n// url: `${api}/product`,\r\n// method: 'put',\r\n// data: parameter\r\n// })\r\n//}\r\n\r\n\r\n\r\n//export function deleteProduct(id: number) {\r\n// return request({\r\n// url: `${api}/product/${id}`,\r\n// method: 'delete',\r\n// })\r\n//}","import { ref, computed } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { message } from 'ant-design-vue';\r\nimport {\r\n //IPagingDto,\r\n //IPagingVm,\r\n IOrder,\r\n IAddProduct,\r\n //IUpdateProduct,\r\n IUpdateOrder,\r\n} from '@/models';\r\nimport {\r\n getCurrent,\r\n getDelivery,\r\n addProduct,\r\n //updateProduct,\r\n updateOrder,\r\n deleteProduct,\r\n} from '@/service/order';\r\n\r\n\r\n\r\nexport const useOrder = defineStore('order', () => {\r\n\r\n\r\n const current = ref();\r\n\r\n const total = computed(() => {\r\n let estimate = 0;\r\n\r\n if (!current.value) {\r\n return { estimate };\r\n }\r\n\r\n current.value?.products.forEach(({ price, quantity }) => {\r\n estimate += price * (quantity ? quantity : 1);\r\n });\r\n\r\n return { estimate };\r\n });\r\n\r\n\r\n async function GetCurrent(): Promise {\r\n\r\n console.log(`%c GetCurrent start`, 'background: black; color: yellow');\r\n\r\n current.value = await getCurrent();\r\n\r\n return current.value;\r\n }\r\n\r\n async function GetDelivery(): Promise {\r\n const res = await getDelivery();\r\n return res;\r\n }\r\n\r\n\r\n\r\n\r\n async function AddProduct(param: IAddProduct): Promise {\r\n \r\n const res = await addProduct(param);\r\n \r\n if (!res) {\r\n message.warn('Product not added to cart');\r\n return false;\r\n }\r\n\r\n message.success('Successfully');\r\n\r\n await GetCurrent();\r\n\r\n return true;\r\n }\r\n\r\n\r\n\r\n //async function UpdateProduct(param: IUpdateProduct): Promise {\r\n \r\n // const res = await updateProduct(param);\r\n \r\n // if (res.localeCompare(\"\") == -1) {\r\n // message.warn('Not change');\r\n // return false;\r\n // }\r\n\r\n // message.success('Change success');\r\n // //await GetCurrent();\r\n // return true;\r\n\r\n //}\r\n\r\n\r\n\r\n async function UpdateOrder(param: IUpdateOrder): Promise {\r\n\r\n if (!param || param.id <= 0 || param.delivery == '') {\r\n message.warn('Wrong params');\r\n return false;\r\n }\r\n\r\n const res = await updateOrder(param);\r\n \r\n //if (res.localeCompare(\"\") == -1) {\r\n if (!res) {\r\n message.warn('Not change');\r\n return false;\r\n }\r\n\r\n message.success('Successfully');\r\n\r\n await GetCurrent();\r\n\r\n return true;\r\n }\r\n\r\n\r\n async function DeleteProduct(orderId: number, productId: number): Promise {\r\n\r\n if (!orderId || orderId <= 0 || !productId || productId <= 0) {\r\n message.warn('Wrong params');\r\n return false;\r\n }\r\n\r\n const res: any = await deleteProduct(orderId, productId);\r\n\r\n //if (res.localeCompare(\"\") == -1) {\r\n if (!res) {\r\n message.warn('Not Delete');\r\n return false;\r\n }\r\n\r\n message.success('Successfully');\r\n\r\n await GetCurrent();\r\n\r\n return true;\r\n }\r\n\r\n\r\n\r\n\r\n return {\r\n current,\r\n total,\r\n\r\n GetCurrent,\r\n GetDelivery,\r\n\r\n AddProduct,\r\n UpdateOrder,\r\n DeleteProduct,\r\n };\r\n}); ","\r\nexport function useCurrency() {\r\n\r\n // Create our number formatter.\r\n const euroFormat = new Intl.NumberFormat('en-IE', {\r\n style: 'currency',\r\n currency: 'EUR',\r\n\r\n //useGrouping: false,\r\n //console.log(`Euro: ${euro.format(price)}`);\r\n // Euro: �143450.00\r\n\r\n // These settings are needed to round to whole numbers if that's what you want.\r\n //minimumFractionDigits: 0, // (this suffices for whole numbers, but will print 2500.10 as $2,500.1)\r\n //maximumFractionDigits: 0, // (causes 2500.99 to be printed as $2,501)\r\n });\r\n\r\n const euro = (value: number) => {\r\n return euroFormat.format(value);\r\n }\r\n\r\n\r\n return { euro }\r\n}\r\n\r\n\r\n","const VueAxios = {\r\n vm: {},\r\n // eslint-disable-next-line no-unused-vars\r\n\r\n install: (app: any, instance: any) => {\r\n\r\n\r\n if (app.installed) {\r\n return\r\n }\r\n app.installed = true\r\n\r\n if (!instance) {\r\n // eslint-disable-next-line no-console\r\n console.error('You have to install axios')\r\n return\r\n }\r\n\r\n app.config.globalProperties.axios = instance;\r\n app.config.globalProperties.$http = instance;\r\n\r\n //Object.defineProperties(app.prototype, {\r\n // axios: {\r\n // get: function get() {\r\n // return instance\r\n // }\r\n // },\r\n // $http: {\r\n // get: function get() {\r\n // return instance\r\n // }\r\n // }\r\n //})\r\n\r\n\r\n\r\n }\r\n\r\n}\r\n\r\nexport {\r\n VueAxios\r\n}\r\n","import axios from 'axios'\r\n//import { store } from '@/store'\r\nimport { useAuth } from '@/store/auth';\r\nimport storage from 'store'\r\nimport { VueAxios } from './axios'\r\nimport { USER } from '@/store/mutation-types'\r\nimport { IAuthVm } from '@/models'\r\n//import { plainToClass } from 'class-transformer';\r\n\r\n\r\n/** @type {Array} */\r\nlet requestsToRefresh: Function[] = []\r\n\r\n/** @type {boolean} */\r\nlet isRefreshRequesting: boolean = false\r\n\r\n\r\n// Создаем экземпляр axios\r\nconst request = axios.create({\r\n // API // Запрошенный префикс по умолчанию\r\n baseURL: process.env.VUE_APP_API_BASE_URL,\r\n timeout: process.env.AXIOS_REQUEST_TIMEOUT //600000//6000 // Тайм-аут запроса\r\n});\r\n\r\n\r\n// Error. Обработчик перехвата исключений\r\n\r\nconst errorHandler = (err: any) => {\r\n\r\n const { response, config } = err\r\n\r\n console.log(`%c Status: ${response.status}:`, 'background: red; color: white');\r\n \r\n \r\n\r\n if (response && response.data && Array.isArray(response.data)) {\r\n response.data.forEach((item) => {\r\n for (const [key, value] of Object.entries(item)) {\r\n if (key == 'ErrorMessage') {\r\n console.log(`%c ${value}:`, 'background: black; color: yellow');\r\n }\r\n }\r\n });\r\n //debugger\r\n } else if (response.data.error) {\r\n console.log(`%c ${response.data.error}:`, 'background: black; color: yellow');\r\n //debugger\r\n } else if (response.data.title) {\r\n console.log(`%c ${response.data.title}:`, 'background: black; color: yellow');\r\n //debugger\r\n }\r\n\r\n\r\n if (response.status === 401) {\r\n\r\n // If we have not logged in before, it makes no sense\r\n // to try to get a new token\r\n //if (!currentToken) {\r\n // return Promise.reject(err)\r\n //}\r\n\r\n // User is auth, probably token is expired, try renew\r\n // And send all failed requests again\r\n if (!isRefreshRequesting) {\r\n\r\n isRefreshRequesting = true\r\n\r\n //console.log('Request for a new token')\r\n\r\n // Send request to refresh token\r\n const user: IAuthVm = storage.get(USER)\r\n if (!user) {\r\n //TODO: расскометрировать\r\n //store.dispatch('Logout');\r\n \r\n window.location.href = '/';\r\n return;\r\n }\r\n\r\n var store = useAuth();\r\n //\r\n \r\n store.RefreshToken().then((auth: IAuthVm | undefined) => {\r\n \r\n //console.log(`%c RefreshToken: ${new Date().toTimeString().split(' ')[0]}`, 'background: red; color: #fff');\r\n\r\n if (!auth || !auth.token || auth.token.trim().length === 0) {\r\n \r\n store.Logout();\r\n return;\r\n }\r\n\r\n \r\n requestsToRefresh.forEach((cb: Function) => cb(auth.token));\r\n \r\n }).catch((err) => {\r\n \r\n console.log('An error occurred while getting a new token')\r\n requestsToRefresh.forEach((cb: Function) => cb(null));\r\n store.Logout();\r\n\r\n }).finally(() => {\r\n //console.log('Clear queue of failed requests')\r\n requestsToRefresh = []\r\n isRefreshRequesting = false\r\n });//store RefreshToken\r\n\r\n\r\n }\r\n\r\n\r\n //console.log(`The request is waiting for a new token.. [${response.config.url}]`)\r\n return new Promise((resolve, reject) => {\r\n // In our variable (requests that expect a new token\r\n // from the first request), we add a callback,\r\n // which the first request to execute\r\n \r\n requestsToRefresh.push((token: string) => {\r\n if (token) {\r\n \r\n config.headers.Authorization = 'Bearer ' + token\r\n resolve(request(config))\r\n }\r\n // If the first request could not update the token, we\r\n // must return the basic request processing logic\r\n reject(err)\r\n });\r\n\r\n });\r\n\r\n }//if status 401\r\n\r\n \r\n return Promise.reject(err)\r\n\r\n\r\n}\r\n\r\n\r\n\r\n\r\n\r\n// request interceptor\r\nrequest.interceptors.request.use(config => {\r\n\r\n //var baseURL = process.env.VUE_APP_API_BASE_URL;\r\n \r\n const params = config.method === 'get' ? JSON.stringify(config.params) : JSON.stringify(config.data);\r\n console.log(`%c Request url:${config.url} | params:${params}`, 'background: #222; color: #bada55');\r\n \r\n\r\n if (config.headers) {\r\n\r\n if (config.method === 'post' && config.data instanceof FormData) {\r\n console.log('Content-Type:', 'multipart/form-data');\r\n config.headers['Content-Type'] = 'multipart/form-data';//'application/x-www-form-urlencoded';//'multipart/form-data'\r\n } else {\r\n config.headers['Content-Type'] = 'application/json;charset=UTF-8';\r\n }\r\n\r\n //config.headers['Content-Type'] = 'application/json;charset=UTF-8'; \r\n //config.headers['Content-Type'] = 'multipart/form-data'; \r\n\r\n const user: IAuthVm = storage.get(USER)\r\n if (user && user.token) {\r\n config.headers['Authorization'] = `Bearer ${user.token}`;\r\n }\r\n }\r\n \r\n return config\r\n}, errorHandler)\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n// response interceptor\r\nrequest.interceptors.response.use((response: any) => {\r\n\r\n console.log(`%c ${response.config.url}:`, 'background: green; color: #fff');\r\n if (response && response.data) {\r\n for (const [key, value] of Object.entries(response.data)) {\r\n console.log(key, value);\r\n }\r\n }\r\n\r\n //return plainToClass(Exercise, x)\r\n return response.data\r\n}, errorHandler)\r\n\r\n\r\n\r\nconst installer = {\r\n vm: {},\r\n install(Vue: any) {\r\n Vue.use(VueAxios, request)\r\n }\r\n}\r\n\r\n\r\n\r\n\r\nexport default request\r\n\r\nexport {\r\n installer as VueAxios,\r\n request as axios\r\n}\r\n\r\n\r\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"js/\" + (chunkId === 593 ? \"fail\" : chunkId) + \".\" + {\"181\":\"ac7dd723\",\"341\":\"e36aad28\",\"461\":\"21ccbd92\",\"521\":\"2947b86c\",\"531\":\"dca81da5\",\"593\":\"3cad35f5\",\"642\":\"f60a9b27\",\"756\":\"9e701d3f\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks\n__webpack_require__.miniCssF = function(chunkId) {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","var inProgress = {};\nvar dataWebpackPrefix = \"ryan-meats:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkryan_meats\"] = self[\"webpackChunkryan_meats\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(44882); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["_defineComponent","__name","setup","__props","useToken","theme","token","value","fontFamily","fontSize","colorPrimary","borderRadius","borderRadiusLG","_ctx","_cache","_component_router_view","_resolveComponent","_component_a_config_provider","_openBlock","_createBlock","_unref","default","_withCtx","_createVNode","_","__exports__","useApp","defineStore","isActiveBurger","ref","onBurger","toggleClassBody","param","document","body","classList","toggle","api","getList","request","url","method","getPage","data","useProduct","search","async","GetPage","params","res","message","warn","useCategory","_categories","Get","length","GetRoute","categories","forEach","cat","route","path","name","component","prodsComp","meta","title","keepAlive","icon","hidden","push","useImage","isExist","Promise","resolve","reject","img","Image","onerror","onload","src","e","_hoisted_1","class","_hoisted_2","_hoisted_3","key","_imports_0","alt","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_createElementVNode","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","urlNoImage","props","product","units","orderStore","useOrder","euro","useCurrency","isExistImage","loading","onAddToCart","id","isOrder","model","unit","quantity","AddProduct","Init","code","then","result","onMounted","_component_a_select","_component_a_input_number","_component_a_button","_createElementBlock","isOffer","_createCommentVNode","_toDisplayString","_createTextVNode","price","weight","$event","placeholder","style","options","min","max","type","size","disabled","onClick","_withModifiers","useRoute","productStore","categoryStore","orderedList","Option","OrderedBy","Name","Popular","LowPrice","HighPrice","ordered","InitPagint","current","pageSize","field","order","filter","categoryId","source","products","categoryName","getUnits","prodId","Unit","Values","prodOrigin","find","x","Piece","ValuePiece","onChangePage","load","onOrdered","debounce","toString","cloneDeep","init","undefined","currentCategory","toLowerCase","category","watch","Array","isArray","deep","immediate","_component_a_spin","_component_a_pagination","Options","onChange","spinning","_Fragment","_renderList","prod","total","onShowSizeChange","show-total","range","dash","useRouter","_route","GenerateRoutes","router","user","children","menuDynemic","GetCategoryPages","generatorDynamicRouter","_routes","getRoutes","i","r","removeRoute","addRoute","error","pages","computed","currentPage","GetCategory","_hoisted_14","auth","useAuth","app","onOpenMenu","_component_router_link","page","to","_normalizeClass","menu__link_active","basket","history","password","logout","routerStore","active","href","_imports_1","_imports_2","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","countProducts","class_role","roles","add","minOrderValue","onSearch","GetCurrent","_component_a_input_search","burger","navigation","script","render","publicRoutes","LayoutPublic","_root","LayoutDefault","redirect","_common","_admin","_customer","Products","createRoutes","root","currentRole","err","createRouter","createWebHistory","process","routes","navTheme","primaryColor","layout","contentWidth","fixedHeader","fixSiderbar","colorWeak","menu","locale","pwa","iconfontUrl","production","autoHideHeader","multiTab","setDocumentTitle","agent","navigator","userAgent","regex","test","createElement","display","setTimeout","remove","appendChild","domTitle","config","GetPublicPages","map","NProgress","configure","showSpinner","ease","beforeEach","from","next","start","_auth","storageUser","storage","USER","publicPages","isPublicPage","includes","hasRoute","replace","$patch","catch","afterEach","done","CommonPiniaPlugin","env","pinia","createPinia","use","createApp","App","Calendar","Carousel","ConfigProvider","Input","InputNumber","Button","Switch","Radio","Checkbox","Select","Modal","Table","Tabs","Popover","Pagination","Dropdown","Spin","Tooltip","Alert","Tag","Divider","DatePicker","Drawer","TimePicker","Popconfirm","Transfer","VueAxios","errorHandler","mount","constructor","label","_defineProperty","this","OptionsPiece","val","valOrigin","Number","isNaN","_class","Kg","OrderStatus","_login","parameter","_refreshToken","timeFix","time","Date","hour","getHours","Login","success","warning","RefreshToken","Logout","window","location","getCurrent","getDelivery","addProduct","updateOrder","deleteProduct","orderId","productId","estimate","GetDelivery","UpdateOrder","delivery","DeleteProduct","euroFormat","Intl","NumberFormat","currency","format","vm","install","instance","installed","globalProperties","axios","$http","requestsToRefresh","isRefreshRequesting","create","baseURL","timeout","AXIOS_REQUEST_TIMEOUT","response","item","Object","entries","status","store","trim","cb","finally","headers","Authorization","interceptors","JSON","stringify","FormData","installer","Vue","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","loaded","__webpack_modules__","call","m","deferred","O","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","f","chunkId","all","reduce","promises","u","miniCssF","g","globalThis","Function","obj","prop","prototype","hasOwnProperty","inProgress","dataWebpackPrefix","l","needAttach","scripts","getElementsByTagName","s","getAttribute","charset","nc","setAttribute","onScriptComplete","prev","event","clearTimeout","doneFns","parentNode","removeChild","bind","target","head","Symbol","toStringTag","nmd","paths","p","installedChunks","installedChunkData","promise","Error","loadingEnded","errorType","realSrc","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""}