{"version":3,"sources":["webpack:///./src/components/contents/Inventory/Links/products.vue?686e","webpack:///./src/services/inventory.http.js","webpack:///./node_modules/core-js/modules/es.array.reduce.js","webpack:///./node_modules/quasar/src/components/item/QList.js","webpack:///./node_modules/quasar/src/utils/private/position-engine.js","webpack:///./node_modules/quasar/src/components/menu/QMenu.js","webpack:///./node_modules/quasar/src/composables/private/use-scroll-target.js","webpack:///./node_modules/quasar/src/components/badge/QBadge.js","webpack:///./node_modules/quasar/src/composables/private/use-anchor.js","webpack:///./node_modules/quasar/src/components/item/QItem.js","webpack:///./src/components/contents/Inventory/Links/products.vue","webpack:///./src/components/contents/Inventory/Links/products.vue?3629","webpack:///./node_modules/quasar/src/utils/private/click-outside.js","webpack:///./src/helpers/money.js","webpack:///./src/assets/white-plus.svg","webpack:///./node_modules/core-js/modules/es.iterator.reduce.js","webpack:///./src/helpers/utils.js","webpack:///./node_modules/core-js/internals/array-method-is-strict.js","webpack:///./src/components/base/Button/Button.vue?8704","webpack:///./node_modules/core-js/internals/array-reduce.js","webpack:///./src/components/base/Button/Button.vue","webpack:///./src/components/base/Button/Button.vue?c87c","webpack:///./src/components/base/Button/_button.scss?1ec2","webpack:///./node_modules/quasar/src/utils/private/selection.js"],"names":["Inventory","constructor","api","this","http","getInventoryCategories","params","get","getInventoryCategory","ref","createInventoryCategory","payload","post","editInventoryCategory","put","deleteInventoryCategory","delete","getInventoryProducts","getInventoryProduct","createInventoryProduct","editInventoryProduct","deleteInventoryProduct","createInventorySale","getSalesUnderEachProduct","createInventorySaleTransaction","getInventorySales","generateSalesHistory","getInventorySale","getReservedAccounts","walletId","$","$reduce","left","arrayMethodIsStrict","CHROME_VERSION","IS_NODE","CHROME_BUG","FORCED","target","proto","forced","reduce","callbackfn","length","arguments","undefined","defineComponent","name","props","useDarkProps","bordered","Boolean","dense","separator","padding","setup","slots","vm","getCurrentInstance","isDark","useDark","proxy","$q","classes","computed","value","h","class","hSlot","default","vpLeft","vpTop","validatePosition","pos","parts","split","includes","validateOffset","val","horizontalPos","parsePosition","rtl","vertical","horizontal","getAnchorProps","el","offset","top","right","bottom","width","height","getBoundingClientRect","middle","center","getTargetProps","offsetHeight","offsetWidth","setPosition","cfg","client","is","ios","window","visualViewport","document","body","style","offsetLeft","offsetTop","setProperty","anchorProps","scrollLeft","scrollTop","absoluteOffset","anchorEl","cover","anchorTop","anchorLeft","elStyle","maxHeight","maxWidth","visibility","fit","minWidth","minHeight","Object","assign","targetProps","anchorOrigin","selfOrigin","applyBoundaries","currentHeight","currentWidth","margin","getScrollbarWidth","innerHeight","innerWidth","clientWidth","Math","max","min","anchorY","anchorX","forEach","inheritAttrs","useAnchorProps","useModelToggleProps","useTransitionProps","persistent","autoClose","separateClosePopup","noRouteDismiss","noRefocus","noFocus","square","anchor","type","String","validator","self","Array","scrollTarget","touchPosition","emits","useModelToggleEmits","emit","attrs","unwatchPosition","avoidAutoClose","refocusTarget","innerRef","showing","hideOnRouteChange","registerTick","removeTick","prepareTick","useTick","registerTimeout","removeTimeout","useTimeout","transition","transitionStyle","useTransition","localScrollTarget","changeScrollEvent","unconfigureScrollTarget","useScrollTarget","configureScrollTarget","canShow","useAnchor","hide","useModelToggle","handleShow","handleHide","processOnMount","showPortal","hidePortal","renderPortal","usePortal","renderPortalContent","clickOutsideProps","getEl","$el","onClickOutside","e","classList","contains","stopAndPrevent","lang","menuClass","onEvents","onClick","onAutoClose","handlesFocus","focus","addFocusFn","node","activeElement","querySelector","evt","addFocusout","onFocusout","contextMenu","position","watch","screen","updatePosition","blur","platform","click","transitionDuration","anchorCleanup","qClickOutside","hiding","removeFocusout","removeClickOutside","removeEscapeKey","onEscapeKey","getScrollTarget","closePortalMenus","childHasFocus","Transition","appear","tabindex","addEscapeKey","addClickOutside","onBeforeUnmount","scrollFn","fn","fnProp","fnHandler","listenOpts","passive","noParentEventWatcher","noParentEvent","alignValues","color","textColor","floating","transparent","multiLine","outline","rounded","label","Number","align","v","verticalAlign","text","role","avoidEmit","configureAnchorEl","touchTimer","touches","anchorEvents","unconfigureAnchorEl","cleanEvt","setAnchorEl","parentNode","pickAnchorEl","err","toggle","toggleKey","isKeyCode","contextClick","nextTick","show","prevent","mobilePrevent","mobileTouch","mobileCleanup","add","addEvt","setTimeout","remove","clearTimeout","clearSelection","context","evts","mobile","onMounted","modelValue","useRouterLinkProps","tag","active","clickable","insetLevel","focused","manualFocus","hasLink","linkProps","linkClass","linkTag","navigateToLink","useRouterLink","rootRef","blurTargetRef","isActionable","isClickable","disable","activeClass","dir","qKeyEvent","onKeyup","MouseEvent","dispatchEvent","getContent","child","hUniqueSlot","unshift","data","_createElementBlock","_hoisted_1","_createVNode","_component_vue_excel_xlsx","id","$setup","rows","columns","exportColumn","file-name","file-type","sheet-name","_cache","_component_DataTable","flat","title","row-key","filter","loading","onOnRowClick","$options","onRowClick","rows-per-page-options","selected","$event","totalCount","onFilterTable","size","_ctx","resize","placeholder","canBePaginated","limit","currentPage","onPaginationAction","paginationAction","emptyStateData","selected-rows-label","getSelectedString","selection","onOnSelection","updateSelection","buttons","_withCtx","_component_AppButton","makeSales","addNewProduct","_createElementVNode","src","_imports_0","alt","_component_q_tr","row","_component_q_td","key","_component_q_checkbox","_component_q_list","_component_q_item","_component_q_item_section","avatar","_component_q_avatar","images","imageUrl","_component_q_item_label","caption","displayReference","_props$rows","_props$rows2","_component_q_badge","_normalizeClass","productStatus","quantity","restockQuantityThreshold","_props$rows3","_props$rows4","replace","formatMoney","price","showCurrency","_props$rows$row$categ","truncateStringToLength","category","_component_q_btn","unelevated","round","text-color","icon","new","_hoisted_3","field","format","sortable","dataFormat","toLocaleString","originalRows","components","AppButton","DataTable","mixins","authRulesMixin","rowCount","rowsPerPage","details","added","message","description","page","created","inventoryService","InventoryService","$api2","mounted","getElementsByTagName","hidden","methods","purposeCase","formatDate","date","string","substring","status","$router","push","reference","_res$data","_res$data2","res","products","error","errMsg","showMessage","scrollTo","__exports__","render","QTr","QTd","QCheckbox","QList","QItem","QItemSection","QAvatar","QItemLabel","QBadge","QBtn","QTable","timer","notPassiveCapture","registeredList","hasModalsAbove","nextElementSibling","globalHandler","nodeType","i","state","addEventListener","index","findIndex","splice","removeEventListener","currency","number","options","toBasicUnit","figure","Intl","NumberFormat","minimumFractionDigits","maximumFractionDigits","currencyDisplay","module","exports","iterate","aCallable","anObject","getIteratorDirect","$TypeError","TypeError","real","reducer","record","noInitial","accumulator","counter","IS_RECORD","groupBy","xs","rv","x","snakeCaseToTitle","str","map","word","toUpperCase","slice","toLowerCase","join","capitalizeFirstLetter","charAt","_date","subtotal","items","total","item","calculateDiscount","discount_selected","discount","_subtotal","parseInt","grandTotal","shipping_fee","vat","discountAmount","truncateLengthyText","maxLength","fails","METHOD_NAME","argument","method","call","toObject","IndexedObject","lengthOfArrayLike","REDUCE_EMPTY","createMethod","IS_RIGHT","that","argumentsLength","memo","O","_createBlock","_normalizeStyle","$props","background","borderRadius","border","txColor","no-caps","$emit","_renderSlot","$slots","getSelection","empty","removeAllRanges","Platform","addRange","createRange"],"mappings":"kHAAA,W,oCCAA,kCAAe,MAAMA,EAInBC,YAAYC,GACVC,KAAKC,KAAOF,EAGdG,uBAAuBC,GACrB,OAAOH,KAAKC,KAAKG,IAAI,oCAAqC,CAAED,WAG9DE,qBAAqBC,GACnB,OAAON,KAAKC,KAAKG,IAAI,qCAAqCE,GAG5DC,wBAAwBC,GACtB,OAAOR,KAAKC,KAAKQ,KAAK,oCAAqCD,GAG7DE,sBAAsBJ,EAAKE,GACzB,OAAOR,KAAKC,KAAKU,IAAI,qCAAqCL,EAAOE,GAGnEI,wBAAwBN,GACtB,OAAON,KAAKC,KAAKY,OAAO,qCAAqCP,GAG/DQ,qBAAqBX,GACnB,OAAOH,KAAKC,KAAKG,IAAI,kCAAmC,CAAED,WAG5DY,oBAAoBT,GAClB,OAAON,KAAKC,KAAKG,IAAI,mCAAmCE,GAG1DU,uBAAuBR,GACrB,OAAOR,KAAKC,KAAKQ,KAAK,kCAAmCD,GAG3DS,qBAAqBX,EA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2B,IAA9B1M,EAAU2M,kBACjB3M,EAAU2M,mBACa,IAAvBC,OAAS1d,GAAGuM,QAAmBuE,EAAU6M,SAASvd,SAASwd,0BAG/B,IAAvBxd,SAAS0Q,WAChB1Q,SAAS0Q,UAAU0M","file":"js/chunk-55f0f014.80cf7d62.js","sourcesContent":["export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./products.vue?vue&type=style&index=0&id=78426717&lang=scss&scoped=true\"","export default class Inventory {\n /**\n * @constructor\n */\n constructor(api) {\n this.http = api;\n }\n\n getInventoryCategories(params) {\n return this.http.get(`/v1/business/inventory/categories`, { params });\n }\n\n getInventoryCategory(ref) {\n return this.http.get(`/v1/business/inventory/categories/${ref}`);\n }\n\n createInventoryCategory(payload) {\n return this.http.post(`/v1/business/inventory/categories`, payload);\n }\n\n editInventoryCategory(ref, payload) {\n return this.http.put(`/v1/business/inventory/categories/${ref}`, payload);\n }\n\n deleteInventoryCategory(ref) {\n return this.http.delete(`/v1/business/inventory/categories/${ref}`);\n }\n\n getInventoryProducts(params) {\n return this.http.get(`/v1/business/inventory/products`, { params });\n }\n\n getInventoryProduct(ref) {\n return this.http.get(`/v1/business/inventory/products/${ref}`);\n }\n\n createInventoryProduct(payload) {\n return this.http.post(`/v1/business/inventory/products`, payload);\n }\n\n editInventoryProduct(ref, payload) {\n return this.http.put(`/v1/business/inventory/products/${ref}`, payload);\n }\n\n deleteInventoryProduct(ref) {\n return this.http.delete(`/v1/business/inventory/products/${ref}`);\n }\n\n createInventorySale(payload) {\n return this.http.post(`/v1/business/inventory/sales`, payload);\n }\n\n getSalesUnderEachProduct(ref, params) {\n return this.http.get(`/v1/business/inventory/products/${ref}/sales`, {\n params,\n });\n }\n\n createInventorySaleTransaction(ref, payload) {\n return this.http.post(\n `/v1/business/inventory/sales/${ref}/transactions`,\n payload\n );\n }\n\n getInventorySales(params) {\n return this.http.get(`/v1/business/inventory/sales`, { params });\n }\n\n generateSalesHistory(payload) {\n return this.http.post(`/v1/business/inventory/sales/export`, payload);\n }\n\n getInventorySale(ref) {\n return this.http.get(`/v1/business/inventory/sales/${ref}`);\n }\n\n getReservedAccounts(walletId) {\n return this.http.get(`/v1/business/wallets/${walletId}/reserved-accounts`);\n }\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/environment-v8-version');\nvar IS_NODE = require('../internals/environment-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","import { h, defineComponent, computed, getCurrentInstance } from 'vue'\n\nimport useDark, { useDarkProps } from '../../composables/private/use-dark.js'\n\nimport { hSlot } from '../../utils/private/render.js'\n\nexport default defineComponent({\n name: 'QList',\n\n props: {\n ...useDarkProps,\n\n bordered: Boolean,\n dense: Boolean,\n separator: Boolean,\n padding: Boolean\n },\n\n setup (props, { slots }) {\n const vm = getCurrentInstance()\n const isDark = useDark(props, vm.proxy.$q)\n\n const classes = computed(() =>\n 'q-list'\n + (props.bordered === true ? ' q-list--bordered' : '')\n + (props.dense === true ? ' q-list--dense' : '')\n + (props.separator === true ? ' q-list--separator' : '')\n + (isDark.value === true ? ' q-list--dark' : '')\n + (props.padding === true ? ' q-list--padding' : '')\n )\n\n return () => h('div', { class: classes.value }, hSlot(slots.default))\n }\n})\n","import { getScrollbarWidth } from '../scroll.js'\nimport { client } from '../../plugins/Platform.js'\n\nlet vpLeft, vpTop\n\nexport function validatePosition (pos) {\n const parts = pos.split(' ')\n if (parts.length !== 2) {\n return false\n }\n if ([ 'top', 'center', 'bottom' ].includes(parts[ 0 ]) !== true) {\n console.error('Anchor/Self position must start with one of top/center/bottom')\n return false\n }\n if ([ 'left', 'middle', 'right', 'start', 'end' ].includes(parts[ 1 ]) !== true) {\n console.error('Anchor/Self position must end with one of left/middle/right/start/end')\n return false\n }\n return true\n}\n\nexport function validateOffset (val) {\n if (!val) { return true }\n if (val.length !== 2) { return false }\n if (typeof val[ 0 ] !== 'number' || typeof val[ 1 ] !== 'number') {\n return false\n }\n return true\n}\n\nconst horizontalPos = {\n 'start#ltr': 'left',\n 'start#rtl': 'right',\n 'end#ltr': 'right',\n 'end#rtl': 'left'\n}\n\n;[ 'left', 'middle', 'right' ].forEach(pos => {\n horizontalPos[ `${ pos }#ltr` ] = pos\n horizontalPos[ `${ pos }#rtl` ] = pos\n})\n\nexport function parsePosition (pos, rtl) {\n const parts = pos.split(' ')\n return {\n vertical: parts[ 0 ],\n horizontal: horizontalPos[ `${ parts[ 1 ] }#${ rtl === true ? 'rtl' : 'ltr' }` ]\n }\n}\n\nexport function validateCover (val) {\n if (val === true || val === false) { return true }\n return validatePosition(val)\n}\n\nexport function getAnchorProps (el, offset) {\n let { top, left, right, bottom, width, height } = el.getBoundingClientRect()\n\n if (offset !== void 0) {\n top -= offset[ 1 ]\n left -= offset[ 0 ]\n bottom += offset[ 1 ]\n right += offset[ 0 ]\n\n width += offset[ 0 ]\n height += offset[ 1 ]\n }\n\n return {\n top,\n left,\n right,\n bottom,\n width,\n height,\n middle: left + (right - left) / 2,\n center: top + (bottom - top) / 2\n }\n}\n\nexport function getTargetProps (el) {\n return {\n top: 0,\n center: el.offsetHeight / 2,\n bottom: el.offsetHeight,\n left: 0,\n middle: el.offsetWidth / 2,\n right: el.offsetWidth\n }\n}\n\n// cfg: { el, anchorEl, anchorOrigin, selfOrigin, offset, absoluteOffset, cover, fit, maxHeight, maxWidth }\nexport function setPosition (cfg) {\n if (client.is.ios === true && window.visualViewport !== void 0) {\n // uses the q-position-engine CSS class\n\n const el = document.body.style\n const { offsetLeft: left, offsetTop: top } = window.visualViewport\n\n if (left !== vpLeft) {\n el.setProperty('--q-pe-left', left + 'px')\n vpLeft = left\n }\n if (top !== vpTop) {\n el.setProperty('--q-pe-top', top + 'px')\n vpTop = top\n }\n }\n\n let anchorProps\n\n // scroll position might change\n // if max-height/-width changes, so we\n // need to restore it after we calculate\n // the new positioning\n const { scrollLeft, scrollTop } = cfg.el\n\n if (cfg.absoluteOffset === void 0) {\n anchorProps = getAnchorProps(cfg.anchorEl, cfg.cover === true ? [ 0, 0 ] : cfg.offset)\n }\n else {\n const\n { top: anchorTop, left: anchorLeft } = cfg.anchorEl.getBoundingClientRect(),\n top = anchorTop + cfg.absoluteOffset.top,\n left = anchorLeft + cfg.absoluteOffset.left\n\n anchorProps = { top, left, width: 1, height: 1, right: left + 1, center: top, middle: left, bottom: top + 1 }\n }\n\n let elStyle = {\n maxHeight: cfg.maxHeight,\n maxWidth: cfg.maxWidth,\n visibility: 'visible'\n }\n\n if (cfg.fit === true || cfg.cover === true) {\n elStyle.minWidth = anchorProps.width + 'px'\n if (cfg.cover === true) {\n elStyle.minHeight = anchorProps.height + 'px'\n }\n }\n\n Object.assign(cfg.el.style, elStyle)\n\n const\n targetProps = getTargetProps(cfg.el),\n props = {\n top: anchorProps[ cfg.anchorOrigin.vertical ] - targetProps[ cfg.selfOrigin.vertical ],\n left: anchorProps[ cfg.anchorOrigin.horizontal ] - targetProps[ cfg.selfOrigin.horizontal ]\n }\n\n applyBoundaries(props, anchorProps, targetProps, cfg.anchorOrigin, cfg.selfOrigin)\n\n elStyle = {\n top: props.top + 'px',\n left: props.left + 'px'\n }\n\n if (props.maxHeight !== void 0) {\n elStyle.maxHeight = props.maxHeight + 'px'\n\n if (anchorProps.height > props.maxHeight) {\n elStyle.minHeight = elStyle.maxHeight\n }\n }\n if (props.maxWidth !== void 0) {\n elStyle.maxWidth = props.maxWidth + 'px'\n\n if (anchorProps.width > props.maxWidth) {\n elStyle.minWidth = elStyle.maxWidth\n }\n }\n\n Object.assign(cfg.el.style, elStyle)\n\n // restore scroll position\n if (cfg.el.scrollTop !== scrollTop) {\n cfg.el.scrollTop = scrollTop\n }\n if (cfg.el.scrollLeft !== scrollLeft) {\n cfg.el.scrollLeft = scrollLeft\n }\n}\n\nfunction applyBoundaries (props, anchorProps, targetProps, anchorOrigin, selfOrigin) {\n const\n currentHeight = targetProps.bottom,\n currentWidth = targetProps.right,\n margin = getScrollbarWidth(),\n innerHeight = window.innerHeight - margin,\n innerWidth = document.body.clientWidth\n\n if (props.top < 0 || props.top + currentHeight > innerHeight) {\n if (selfOrigin.vertical === 'center') {\n props.top = anchorProps[ anchorOrigin.vertical ] > innerHeight / 2\n ? Math.max(0, innerHeight - currentHeight)\n : 0\n props.maxHeight = Math.min(currentHeight, innerHeight)\n }\n else if (anchorProps[ anchorOrigin.vertical ] > innerHeight / 2) {\n const anchorY = Math.min(\n innerHeight,\n anchorOrigin.vertical === 'center'\n ? anchorProps.center\n : (anchorOrigin.vertical === selfOrigin.vertical ? anchorProps.bottom : anchorProps.top)\n )\n props.maxHeight = Math.min(currentHeight, anchorY)\n props.top = Math.max(0, anchorY - currentHeight)\n }\n else {\n props.top = Math.max(0, anchorOrigin.vertical === 'center'\n ? anchorProps.center\n : (anchorOrigin.vertical === selfOrigin.vertical ? anchorProps.top : anchorProps.bottom)\n )\n props.maxHeight = Math.min(currentHeight, innerHeight - props.top)\n }\n }\n\n if (props.left < 0 || props.left + currentWidth > innerWidth) {\n props.maxWidth = Math.min(currentWidth, innerWidth)\n if (selfOrigin.horizontal === 'middle') {\n props.left = anchorProps[ anchorOrigin.horizontal ] > innerWidth / 2\n ? Math.max(0, innerWidth - currentWidth)\n : 0\n }\n else if (anchorProps[ anchorOrigin.horizontal ] > innerWidth / 2) {\n const anchorX = Math.min(\n innerWidth,\n anchorOrigin.horizontal === 'middle'\n ? anchorProps.middle\n : (anchorOrigin.horizontal === selfOrigin.horizontal ? anchorProps.right : anchorProps.left)\n )\n props.maxWidth = Math.min(currentWidth, anchorX)\n props.left = Math.max(0, anchorX - props.maxWidth)\n }\n else {\n props.left = Math.max(0, anchorOrigin.horizontal === 'middle'\n ? anchorProps.middle\n : (anchorOrigin.horizontal === selfOrigin.horizontal ? anchorProps.left : anchorProps.right)\n )\n props.maxWidth = Math.min(currentWidth, innerWidth - props.left)\n }\n }\n}\n","import { h, defineComponent, ref, computed, watch, Transition, onBeforeUnmount, getCurrentInstance } from 'vue'\n\nimport useAnchor, { useAnchorProps } from '../../composables/private/use-anchor.js'\nimport useScrollTarget from '../../composables/private/use-scroll-target.js'\nimport useModelToggle, { useModelToggleProps, useModelToggleEmits } from '../../composables/private/use-model-toggle.js'\nimport useDark, { useDarkProps } from '../../composables/private/use-dark.js'\nimport usePortal from '../../composables/private/use-portal.js'\nimport useTransition, { useTransitionProps } from '../../composables/private/use-transition.js'\nimport useTick from '../../composables/private/use-tick.js'\nimport useTimeout from '../../composables/private/use-timeout.js'\n\nimport { closePortalMenus } from '../../utils/private/portal.js'\nimport { getScrollTarget } from '../../utils/scroll.js'\nimport { position, stopAndPrevent } from '../../utils/event.js'\nimport { hSlot } from '../../utils/private/render.js'\nimport { addEscapeKey, removeEscapeKey } from '../../utils/private/escape-key.js'\nimport { addFocusout, removeFocusout } from '../../utils/private/focusout.js'\nimport { childHasFocus } from '../../utils/dom.js'\nimport { addClickOutside, removeClickOutside } from '../../utils/private/click-outside.js'\n\nimport {\n validatePosition, validateOffset, setPosition, parsePosition\n} from '../../utils/private/position-engine.js'\nimport { addFocusFn } from '../../utils/private/focus-manager.js'\n\nexport default defineComponent({\n name: 'QMenu',\n\n inheritAttrs: false,\n\n props: {\n ...useAnchorProps,\n ...useModelToggleProps,\n ...useDarkProps,\n ...useTransitionProps,\n\n persistent: Boolean,\n autoClose: Boolean,\n separateClosePopup: Boolean,\n\n noRouteDismiss: Boolean,\n noRefocus: Boolean,\n noFocus: Boolean,\n\n fit: Boolean,\n cover: Boolean,\n\n square: Boolean,\n\n anchor: {\n type: String,\n validator: validatePosition\n },\n self: {\n type: String,\n validator: validatePosition\n },\n offset: {\n type: Array,\n validator: validateOffset\n },\n\n scrollTarget: {\n default: void 0\n },\n\n touchPosition: Boolean,\n\n maxHeight: {\n type: String,\n default: null\n },\n maxWidth: {\n type: String,\n default: null\n }\n },\n\n emits: [\n ...useModelToggleEmits,\n 'click', 'escape-key'\n ],\n\n setup (props, { slots, emit, attrs }) {\n let refocusTarget = null, absoluteOffset, unwatchPosition, avoidAutoClose\n\n const vm = getCurrentInstance()\n const { proxy } = vm\n const { $q } = proxy\n\n const innerRef = ref(null)\n const showing = ref(false)\n\n const hideOnRouteChange = computed(() =>\n props.persistent !== true\n && props.noRouteDismiss !== true\n )\n\n const isDark = useDark(props, $q)\n const { registerTick, removeTick, prepareTick } = useTick()\n const { registerTimeout, removeTimeout } = useTimeout()\n const { transition, transitionStyle } = useTransition(props, showing)\n const { localScrollTarget, changeScrollEvent, unconfigureScrollTarget } = useScrollTarget(props, configureScrollTarget)\n\n const { anchorEl, canShow } = useAnchor({ showing })\n\n const { hide } = useModelToggle({\n showing, canShow, handleShow, handleHide,\n hideOnRouteChange,\n processOnMount: true\n })\n\n const { showPortal, hidePortal, renderPortal } = usePortal(vm, innerRef, renderPortalContent)\n\n const clickOutsideProps = {\n anchorEl,\n innerRef,\n getEl: () => proxy.$el,\n onClickOutside (e) {\n if (props.persistent !== true && showing.value === true) {\n hide(e)\n\n if (\n // always prevent touch event\n e.type === 'touchstart'\n // prevent click if it's on a dialog backdrop\n || e.target.classList.contains('q-dialog__backdrop')\n ) {\n stopAndPrevent(e)\n }\n\n return true\n }\n }\n }\n\n const anchorOrigin = computed(() =>\n parsePosition(\n props.anchor || (\n props.cover === true ? 'center middle' : 'bottom start'\n ),\n $q.lang.rtl\n )\n )\n\n const selfOrigin = computed(() => (\n props.cover === true\n ? anchorOrigin.value\n : parsePosition(props.self || 'top start', $q.lang.rtl)\n ))\n\n const menuClass = computed(() =>\n (props.square === true ? ' q-menu--square' : '')\n + (isDark.value === true ? ' q-menu--dark q-dark' : '')\n )\n\n const onEvents = computed(() => (\n props.autoClose === true\n ? { onClick: onAutoClose }\n : {}\n ))\n\n const handlesFocus = computed(() =>\n showing.value === true && props.persistent !== true\n )\n\n watch(handlesFocus, val => {\n if (val === true) {\n addEscapeKey(onEscapeKey)\n addClickOutside(clickOutsideProps)\n }\n else {\n removeEscapeKey(onEscapeKey)\n removeClickOutside(clickOutsideProps)\n }\n })\n\n function focus () {\n addFocusFn(() => {\n let node = innerRef.value\n\n if (node && node.contains(document.activeElement) !== true) {\n node = node.querySelector('[autofocus], [data-autofocus]') || node\n node.focus()\n }\n })\n }\n\n function handleShow (evt) {\n removeTick()\n removeTimeout()\n\n refocusTarget = props.noRefocus === false\n ? document.activeElement\n : null\n\n addFocusout(onFocusout)\n\n showPortal()\n configureScrollTarget()\n\n absoluteOffset = void 0\n\n if (evt !== void 0 && (props.touchPosition || props.contextMenu)) {\n const pos = position(evt)\n\n if (pos.left !== void 0) {\n const { top, left } = anchorEl.value.getBoundingClientRect()\n absoluteOffset = { left: pos.left - left, top: pos.top - top }\n }\n }\n\n if (unwatchPosition === void 0) {\n unwatchPosition = watch(\n () => $q.screen.width + '|' + $q.screen.height + '|' + props.self + '|' + props.anchor + '|' + $q.lang.rtl,\n updatePosition\n )\n }\n\n if (props.noFocus !== true) {\n document.activeElement.blur()\n }\n\n registerTick(() => {\n updatePosition()\n props.noFocus !== true && focus()\n })\n prepareTick()\n\n registerTimeout(() => {\n // required in order to avoid the \"double-tap needed\" issue\n if ($q.platform.is.ios === true) {\n // if auto-close, then this click should\n // not close the menu\n avoidAutoClose = props.autoClose\n innerRef.value.click()\n }\n\n updatePosition()\n showPortal(true) // done showing portal\n emit('show', evt)\n }, props.transitionDuration)\n }\n\n function handleHide (evt) {\n removeTick()\n removeTimeout()\n\n anchorCleanup(true)\n\n if (\n refocusTarget !== null\n && (\n // menu was hidden from code or ESC plugin\n evt === void 0\n // menu was not closed from a mouse or touch clickOutside\n || evt.qClickOutside !== true\n )\n ) {\n refocusTarget.focus()\n }\n\n registerTimeout(() => {\n hidePortal()\n emit('hide', evt)\n }, props.transitionDuration)\n }\n\n function anchorCleanup (hiding) {\n absoluteOffset = void 0\n\n if (unwatchPosition !== void 0) {\n unwatchPosition()\n unwatchPosition = void 0\n }\n\n if (hiding === true || showing.value === true) {\n removeFocusout(onFocusout)\n unconfigureScrollTarget()\n removeClickOutside(clickOutsideProps)\n removeEscapeKey(onEscapeKey)\n }\n }\n\n function configureScrollTarget () {\n if (anchorEl.value !== null || props.scrollTarget !== void 0) {\n localScrollTarget.value = getScrollTarget(anchorEl.value, props.scrollTarget)\n changeScrollEvent(localScrollTarget.value, updatePosition)\n }\n }\n\n function onAutoClose (e) {\n // if auto-close, then the ios double-tap fix which\n // issues a click should not close the menu\n if (avoidAutoClose !== true) {\n closePortalMenus(proxy, e)\n emit('click', e)\n }\n else {\n avoidAutoClose = false\n }\n }\n\n function onFocusout (evt) {\n // the focus is not in a vue child component\n if (\n handlesFocus.value === true\n && childHasFocus(innerRef.value, evt.target) !== true\n ) {\n focus()\n }\n }\n\n function onEscapeKey (evt) {\n emit('escape-key')\n hide(evt)\n }\n\n function updatePosition () {\n const el = innerRef.value\n\n if (el === null || anchorEl.value === null) {\n return\n }\n\n setPosition({\n el,\n offset: props.offset,\n anchorEl: anchorEl.value,\n anchorOrigin: anchorOrigin.value,\n selfOrigin: selfOrigin.value,\n absoluteOffset,\n fit: props.fit,\n cover: props.cover,\n maxHeight: props.maxHeight,\n maxWidth: props.maxWidth\n })\n }\n\n function renderPortalContent () {\n return h(\n Transition,\n { name: transition.value, appear: true },\n () => (\n showing.value === true\n ? h('div', {\n ...attrs,\n ref: innerRef,\n tabindex: -1,\n class: [\n 'q-menu q-position-engine scroll' + menuClass.value,\n attrs.class\n ],\n style: [ attrs.style, transitionStyle.value ],\n ...onEvents.value\n }, hSlot(slots.default))\n : null\n )\n )\n }\n\n onBeforeUnmount(anchorCleanup)\n\n // expose public methods\n Object.assign(proxy, { focus, updatePosition })\n\n return renderPortal\n }\n})\n","import { ref, watch, onBeforeUnmount } from 'vue'\n\nimport { listenOpts } from '../../utils/event.js'\n\nexport default function (\n props,\n configureScrollTarget\n) {\n const localScrollTarget = ref(null)\n let scrollFn\n\n function changeScrollEvent (scrollTarget, fn) {\n const fnProp = `${ fn !== void 0 ? 'add' : 'remove' }EventListener`\n const fnHandler = fn !== void 0 ? fn : scrollFn\n\n if (scrollTarget !== window) {\n scrollTarget[ fnProp ]('scroll', fnHandler, listenOpts.passive)\n }\n\n window[ fnProp ]('scroll', fnHandler, listenOpts.passive)\n\n scrollFn = fn\n }\n\n function unconfigureScrollTarget () {\n if (localScrollTarget.value !== null) {\n changeScrollEvent(localScrollTarget.value)\n localScrollTarget.value = null\n }\n }\n\n const noParentEventWatcher = watch(() => props.noParentEvent, () => {\n if (localScrollTarget.value !== null) {\n unconfigureScrollTarget()\n configureScrollTarget()\n }\n })\n\n onBeforeUnmount(noParentEventWatcher)\n\n return {\n localScrollTarget,\n unconfigureScrollTarget,\n changeScrollEvent\n }\n}\n","import { h, defineComponent, computed } from 'vue'\n\nimport { hSlot } from '../../utils/private/render.js'\n\nconst alignValues = [ 'top', 'middle', 'bottom' ]\n\nexport default defineComponent({\n name: 'QBadge',\n\n props: {\n color: String,\n textColor: String,\n\n floating: Boolean,\n transparent: Boolean,\n multiLine: Boolean,\n outline: Boolean,\n rounded: Boolean,\n\n label: [ Number, String ],\n\n align: {\n type: String,\n validator: v => alignValues.includes(v)\n }\n },\n\n setup (props, { slots }) {\n const style = computed(() => {\n return props.align !== void 0\n ? { verticalAlign: props.align }\n : null\n })\n\n const classes = computed(() => {\n const text = props.outline === true\n ? props.color || props.textColor\n : props.textColor\n\n return 'q-badge flex inline items-center no-wrap'\n + ` q-badge--${ props.multiLine === true ? 'multi' : 'single' }-line`\n + (props.outline === true\n ? ' q-badge--outline'\n : (props.color !== void 0 ? ` bg-${ props.color }` : '')\n )\n + (text !== void 0 ? ` text-${ text }` : '')\n + (props.floating === true ? ' q-badge--floating' : '')\n + (props.rounded === true ? ' q-badge--rounded' : '')\n + (props.transparent === true ? ' q-badge--transparent' : '')\n })\n\n return () => h('div', {\n class: classes.value,\n style: style.value,\n role: 'alert',\n 'aria-label': props.label\n }, props.label !== void 0 ? props.label : hSlot(slots.default))\n }\n})\n","import { ref, watch, onMounted, onBeforeUnmount, nextTick, getCurrentInstance } from 'vue'\n\nimport { clearSelection } from '../../utils/private/selection.js'\nimport { addEvt, cleanEvt, prevent } from '../../utils/event.js'\nimport { isKeyCode } from '../../utils/private/key-composition.js'\n\nexport const useAnchorProps = {\n target: {\n default: true\n },\n noParentEvent: Boolean,\n contextMenu: Boolean\n}\n\nexport default function ({\n showing,\n avoidEmit, // required for QPopupProxy (true)\n configureAnchorEl // optional\n}) {\n const { props, proxy, emit } = getCurrentInstance()\n\n const anchorEl = ref(null)\n\n let touchTimer\n\n function canShow (evt) {\n // abort with no parent configured or on multi-touch\n return anchorEl.value === null\n ? false\n : (evt === void 0 || evt.touches === void 0 || evt.touches.length <= 1)\n }\n\n const anchorEvents = {}\n\n if (configureAnchorEl === void 0) {\n // default configureAnchorEl is designed for\n // QMenu & QPopupProxy (which is why it's handled here)\n\n Object.assign(anchorEvents, {\n hide (evt) {\n proxy.hide(evt)\n },\n\n toggle (evt) {\n proxy.toggle(evt)\n },\n\n toggleKey (evt) {\n isKeyCode(evt, 13) === true && proxy.toggle(evt)\n },\n\n contextClick (evt) {\n proxy.hide(evt)\n nextTick(() => { proxy.show(evt) })\n prevent(evt)\n },\n\n mobilePrevent: prevent,\n\n mobileTouch (evt) {\n anchorEvents.mobileCleanup(evt)\n\n if (canShow(evt) !== true) {\n return\n }\n\n proxy.hide(evt)\n anchorEl.value.classList.add('non-selectable')\n\n const target = evt.target\n addEvt(anchorEvents, 'anchor', [\n [ target, 'touchmove', 'mobileCleanup', 'passive' ],\n [ target, 'touchend', 'mobileCleanup', 'passive' ],\n [ target, 'touchcancel', 'mobileCleanup', 'passive' ],\n [ anchorEl.value, 'contextmenu', 'mobilePrevent', 'notPassive' ]\n ])\n\n touchTimer = setTimeout(() => {\n proxy.show(evt)\n }, 300)\n },\n\n mobileCleanup (evt) {\n anchorEl.value.classList.remove('non-selectable')\n clearTimeout(touchTimer)\n\n if (showing.value === true && evt !== void 0) {\n clearSelection()\n }\n }\n })\n\n configureAnchorEl = function (context = props.contextMenu) {\n if (props.noParentEvent === true || anchorEl.value === null) { return }\n\n let evts\n\n if (context === true) {\n if (proxy.$q.platform.is.mobile === true) {\n evts = [\n [ anchorEl.value, 'touchstart', 'mobileTouch', 'passive' ]\n ]\n }\n else {\n evts = [\n [ anchorEl.value, 'click', 'hide', 'passive' ],\n [ anchorEl.value, 'contextmenu', 'contextClick', 'notPassive' ]\n ]\n }\n }\n else {\n evts = [\n [ anchorEl.value, 'click', 'toggle', 'passive' ],\n [ anchorEl.value, 'keyup', 'toggleKey', 'passive' ]\n ]\n }\n\n addEvt(anchorEvents, 'anchor', evts)\n }\n }\n\n function unconfigureAnchorEl () {\n cleanEvt(anchorEvents, 'anchor')\n }\n\n function setAnchorEl (el) {\n anchorEl.value = el\n while (anchorEl.value.classList.contains('q-anchor--skip')) {\n anchorEl.value = anchorEl.value.parentNode\n }\n configureAnchorEl()\n }\n\n function pickAnchorEl () {\n if (props.target === false || props.target === '') {\n anchorEl.value = null\n }\n else if (props.target === true) {\n setAnchorEl(proxy.$el.parentNode)\n }\n else {\n let el = props.target\n\n if (typeof props.target === 'string') {\n try {\n el = document.querySelector(props.target)\n }\n catch (err) {\n el = void 0\n }\n }\n\n if (el !== void 0 && el !== null) {\n anchorEl.value = el.$el || el\n configureAnchorEl()\n }\n else {\n anchorEl.value = null\n console.error(`Anchor: target \"${ props.target }\" not found`)\n }\n }\n }\n\n watch(() => props.contextMenu, val => {\n if (anchorEl.value !== null) {\n unconfigureAnchorEl()\n configureAnchorEl(val)\n }\n })\n\n watch(() => props.target, () => {\n if (anchorEl.value !== null) {\n unconfigureAnchorEl()\n }\n\n pickAnchorEl()\n })\n\n watch(() => props.noParentEvent, val => {\n if (anchorEl.value !== null) {\n if (val === true) {\n unconfigureAnchorEl()\n }\n else {\n configureAnchorEl()\n }\n }\n })\n\n onMounted(() => {\n pickAnchorEl()\n\n if (avoidEmit !== true && props.modelValue === true && anchorEl.value === null) {\n emit('update:modelValue', false)\n }\n })\n\n onBeforeUnmount(() => {\n clearTimeout(touchTimer)\n unconfigureAnchorEl()\n })\n\n return {\n anchorEl,\n canShow,\n anchorEvents\n }\n}\n","import { h, defineComponent, ref, computed, getCurrentInstance } from 'vue'\n\nimport useDark, { useDarkProps } from '../../composables/private/use-dark.js'\nimport useRouterLink, { useRouterLinkProps } from '../../composables/private/use-router-link.js'\n\nimport { hUniqueSlot } from '../../utils/private/render.js'\nimport { stopAndPrevent } from '../../utils/event.js'\nimport { isKeyCode } from '../../utils/private/key-composition.js'\n\nexport default defineComponent({\n name: 'QItem',\n\n props: {\n ...useDarkProps,\n ...useRouterLinkProps,\n\n tag: {\n type: String,\n default: 'div'\n },\n\n active: Boolean,\n\n clickable: Boolean,\n dense: Boolean,\n insetLevel: Number,\n\n tabindex: [ String, Number ],\n\n focused: Boolean,\n manualFocus: Boolean\n },\n\n emits: [ 'click', 'keyup' ],\n\n setup (props, { slots, emit }) {\n const { proxy: { $q } } = getCurrentInstance()\n\n const isDark = useDark(props, $q)\n const { hasLink, linkProps, linkClass, linkTag, navigateToLink } = useRouterLink()\n\n const rootRef = ref(null)\n const blurTargetRef = ref(null)\n\n const isActionable = computed(() =>\n props.clickable === true\n || hasLink.value === true\n || props.tag === 'a'\n || props.tag === 'label'\n )\n\n const isClickable = computed(() =>\n props.disable !== true && isActionable.value === true\n )\n\n const classes = computed(() =>\n 'q-item q-item-type row no-wrap'\n + (props.dense === true ? ' q-item--dense' : '')\n + (isDark.value === true ? ' q-item--dark' : '')\n + (\n hasLink.value === true\n ? linkClass.value\n : (\n props.active === true\n ? `${ props.activeClass !== void 0 ? ` ${ props.activeClass }` : '' } q-item--active`\n : ''\n )\n )\n + (props.disable === true ? ' disabled' : '')\n + (\n isClickable.value === true\n ? ' q-item--clickable q-link cursor-pointer '\n + (props.manualFocus === true ? 'q-manual-focusable' : 'q-focusable q-hoverable')\n + (props.focused === true ? ' q-manual-focusable--focused' : '')\n : ''\n )\n )\n\n const style = computed(() => {\n if (props.insetLevel === void 0) {\n return null\n }\n\n const dir = $q.lang.rtl === true ? 'Right' : 'Left'\n return {\n [ 'padding' + dir ]: (16 + props.insetLevel * 56) + 'px'\n }\n })\n\n function onClick (e) {\n if (isClickable.value === true) {\n if (blurTargetRef.value !== null) {\n if (e.qKeyEvent !== true && document.activeElement === rootRef.value) {\n blurTargetRef.value.focus()\n }\n else if (document.activeElement === blurTargetRef.value) {\n rootRef.value.focus()\n }\n }\n\n hasLink.value === true && navigateToLink(e)\n emit('click', e)\n }\n }\n\n function onKeyup (e) {\n if (isClickable.value === true && isKeyCode(e, 13) === true) {\n stopAndPrevent(e)\n\n // for ripple\n e.qKeyEvent = true\n\n // for click trigger\n const evt = new MouseEvent('click', e)\n evt.qKeyEvent = true\n rootRef.value.dispatchEvent(evt)\n }\n\n emit('keyup', e)\n }\n\n function getContent () {\n const child = hUniqueSlot(slots.default, [])\n\n isClickable.value === true && child.unshift(\n h('div', { class: 'q-focus-helper', tabindex: -1, ref: blurTargetRef })\n )\n\n return child\n }\n\n return () => {\n const data = {\n ref: rootRef,\n class: classes.value,\n style: style.value,\n onClick,\n onKeyup\n }\n\n if (isClickable.value === true) {\n data.tabindex = props.tabindex || '0'\n Object.assign(data, linkProps.value)\n }\n else if (isActionable.value === true) {\n data[ 'aria-disabled' ] = 'true'\n }\n\n return h(\n linkTag.value,\n data,\n getContent()\n )\n }\n }\n})\n","\n \n \n
\n Download\n \n
\n \n \n Make a sale\n \n\n \n
\n Add New Product\n \n \n \n \n \n (selected = val)\"\n />\n \n \n \n \n \n \n
\n \n \n \n {{ props.rows.row.name }}\n {{\n props.rows.row.displayReference\n }}\n \n \n \n \n \n \n {{\n productStatus(\n props.rows?.row?.quantity,\n props.rows?.row?.restockQuantityThreshold\n ).replace(/-/g, \" \")\n }}\n \n \n \n {{ props.rows.row.quantity }}\n \n \n {{ formatMoney(props.rows.row.price, { showCurrency: false }) }}\n \n \n {{\n truncateStringToLength(props.rows.row.category?.name || \"-\", 20)\n }}\n \n \n \n \n \n
\n \n \n \n \n \n
\n
\n Add New Product\n \n
\n \n \n
\n\n\n\n\n\n","import { render } from \"./products.vue?vue&type=template&id=78426717&scoped=true\"\nimport script from \"./products.vue?vue&type=script&lang=js\"\nexport * from \"./products.vue?vue&type=script&lang=js\"\n\nimport \"./products.vue?vue&type=style&index=0&id=78426717&lang=scss&scoped=true\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-78426717\"]])\n\nexport default __exports__\nimport QTr from 'quasar/src/components/table/QTr.js';\nimport QTd from 'quasar/src/components/table/QTd.js';\nimport QCheckbox from 'quasar/src/components/checkbox/QCheckbox.js';\nimport QList from 'quasar/src/components/item/QList.js';\nimport QItem from 'quasar/src/components/item/QItem.js';\nimport QItemSection from 'quasar/src/components/item/QItemSection.js';\nimport QAvatar from 'quasar/src/components/avatar/QAvatar.js';\nimport QItemLabel from 'quasar/src/components/item/QItemLabel.js';\nimport QBadge from 'quasar/src/components/badge/QBadge.js';\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport QTable from 'quasar/src/components/table/QTable.js';\nimport qInstall from \"../../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QTr,QTd,QCheckbox,QList,QItem,QItemSection,QAvatar,QItemLabel,QBadge,QBtn,QTable});\n","import { listenOpts } from '../event.js'\n\nlet timer\n\nconst\n { notPassiveCapture } = listenOpts,\n registeredList = []\n\nfunction hasModalsAbove (node) {\n while ((node = node.nextElementSibling) !== null) {\n if (node.classList.contains('q-dialog--modal')) {\n return true\n }\n }\n\n return false\n}\n\nfunction globalHandler (evt) {\n clearTimeout(timer)\n\n const target = evt.target\n\n if (\n target === void 0\n || target.nodeType === 8\n || target.classList.contains('no-pointer-events') === true\n ) {\n return\n }\n\n for (let i = registeredList.length - 1; i >= 0; i--) {\n const state = registeredList[ i ]\n if (\n (\n state.anchorEl.value === null\n || state.anchorEl.value.contains(target) === false\n )\n && (\n target === document.body\n || (state.innerRef.value !== null && state.innerRef.value.contains(target) === false)\n )\n && (\n state.getEl !== void 0\n ? hasModalsAbove(state.getEl()) !== true\n : true\n )\n ) {\n // mark the event as being processed by clickOutside\n // used to prevent refocus after menu close\n evt.qClickOutside = true\n state.onClickOutside(evt)\n }\n else {\n return\n }\n }\n}\n\nexport function addClickOutside (clickOutsideProps) {\n registeredList.push(clickOutsideProps)\n\n if (registeredList.length === 1) {\n document.addEventListener('mousedown', globalHandler, notPassiveCapture)\n document.addEventListener('touchstart', globalHandler, notPassiveCapture)\n }\n}\n\nexport function removeClickOutside (clickOutsideProps) {\n const index = registeredList.findIndex(h => h === clickOutsideProps)\n\n if (index > -1) {\n registeredList.splice(index, 1)\n\n if (registeredList.length === 0) {\n clearTimeout(timer)\n document.removeEventListener('mousedown', globalHandler, notPassiveCapture)\n document.removeEventListener('touchstart', globalHandler, notPassiveCapture)\n }\n }\n}\n","// @ts-check\nconst currency = \"NGN\";\n\n/**\n * @param {number | string} number\n * @param {{showCurrency?: Boolean, toBasicUnit?: Boolean}} options\n * - toBasicUnit used to convert from fractional (monetary) unit to basic (monetary) unit e.g kobo to naira\n * @returns {string}\n */\nexport const formatMoney = (number = 0, options = {}) => {\n const { showCurrency = options.showCurrency ? options.showCurrency : true, toBasicUnit = true } = options;\n /**\n * @type {string | number}\n */\n let figure = toBasicUnit ? +number / 100 : +number;\n\n figure = new Intl.NumberFormat(\"en-NG\", {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n ...(showCurrency\n ? {\n style: \"currency\",\n currency,\n currencyDisplay: \"code\",\n }\n : {}),\n }).format(figure);\n\n return figure;\n};\n","module.exports = __webpack_public_path__ + \"img/white-plus.7fa11735.svg\";","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\nvar $TypeError = TypeError;\n\n// `Iterator.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-iterator.prototype.reduce\n$({ target: 'Iterator', proto: true, real: true }, {\n reduce: function reduce(reducer /* , initialValue */) {\n anObject(this);\n aCallable(reducer);\n var record = getIteratorDirect(this);\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n var counter = 0;\n iterate(record, function (value) {\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n } else {\n accumulator = reducer(accumulator, value, counter);\n }\n counter++;\n }, { IS_RECORD: true });\n if (noInitial) throw new $TypeError('Reduce of empty iterator with no initial value');\n return accumulator;\n }\n});\n","import date from 'quasar/src/utils/date.js';;\n/**\n * @param {Array} xs\n * @param {number | string} key\n * @returns any\n */\nexport const groupBy = function (xs, key) {\n return xs.reduce(function (rv, x) {\n (rv[x[key]] = rv[x[key]] || []).push(x);\n return rv;\n }, {});\n};\n\n/**\n * @param {String} str\n * @returns String\n */\nexport const snakeCaseToTitle = function (str) {\n return str\n .replace(\"_\", \" \")\n .split(\" \")\n .map((word) => word[0].toUpperCase() + word.slice(1).toLowerCase())\n .join(\" \");\n};\n\nexport const purposeCase = (value) => {\n switch (value) {\n case \"bank_transfer\":\n return \"Bank_transfer_outward\";\n case \"bill_payment\":\n return \"Bill_payment\";\n case \"card_funding\":\n return \"Card_funding\";\n case \"commission_feecase\":\n return \"Commission_fee\";\n case \"delivery_fee\":\n return \"Delivery_fee\";\n case \"item_purchase\":\n return \"Item_purchase\";\n case \"Lien_Credit\":\n return \"Lien_credit\";\n case \"payment_link\":\n return \"Payment_link\";\n case \"pos_funding\":\n return \"POS_terminal\";\n case \"product_sale\":\n return \"Product_sale\";\n case \"qr_code\":\n return \"QR_payment\";\n case \"reserved_bank_account_funding\":\n return \"Bank_transfer_inward\";\n case \"reversal\":\n return \"Reversal\";\n case \"stamp_duty_fee\":\n return \"Stamp_duty\";\n case \"transaction_fee\":\n return \"Transaction_fee\";\n case \"transaction_fee_bank_transfer\":\n return \"Transaction_fee_bank_transfer\";\n case \"transaction_fee_checkout\":\n return \"Transaction_fee_checkout\";\n case \"transaction_fee_payment_link\":\n return \"Transaction_fee_payment_link\";\n case \"transaction_fee_pos_funding\":\n return \"Transaction_fee_POS_terminal\";\n case \"transaction_fee_qr_code\":\n return \"Transaction_fee_QR_payment\";\n case \"transaction_fee_reserved_account\":\n return \"Transaction_fee_bank_transfer_inward\";\n case \"wallet_transfer\":\n return \"Wallet_transfer\";\n case \"Cash_offline\":\n return \"Cash_offline\";\n\n default:\n return value.replace(\"_\", \" \");\n }\n};\n\n/**\n *\n * @param {string} string\n * @returns string\n */\nexport const capitalizeFirstLetter = (string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\n/**\n *\n * @param {*} _date\n * @returns string\n */\nexport const formatDate = (_date, format = \"MMM DD, YYYY hh:mm A\") => {\n return date.formatDate(_date, format);\n};\n\n/**\n *\n * @param {string} string\n * @returns string\n */\nexport const createHash = async (string) => {\n const utf8 = new TextEncoder().encode(string);\n const hashBuffer = await crypto.subtle.digest(\"SHA-256\", utf8);\n const hashArray = Array.from(new Uint8Array(hashBuffer));\n const hashHex = hashArray\n .map((bytes) => bytes.toString(16).padStart(2, \"0\"))\n .join(\"\");\n return hashHex;\n};\n\n/**\n * @param {Array} items\n * @returns string || Number\n */\nexport const subtotal = (items) => {\n let total = 0;\n items.forEach((item) => {\n total += item.quantity * item.price;\n });\n\n return total;\n};\n\n/**\n * calculate discount\n * @param {Object} data\n * @return {Number}\n */\n\nexport const calculateDiscount = (data) => {\n const { discount_selected, discount, _subtotal } = data;\n let subtotal = _subtotal;\n return discount_selected === \"Fixed\"\n ? parseInt(discount)\n : parseInt(subtotal) * (parseInt(discount) / 100);\n};\n\n/**\n * @param {Object} details\n * @returns string || Number\n */\nexport const grandTotal = (details) => {\n const { shipping_fee, vat, discount, discount_selected, items } = details;\n let _subtotal = subtotal(items);\n let discountAmount = calculateDiscount({\n discount_selected: discount_selected,\n discount: discount,\n _subtotal: _subtotal,\n });\n return _subtotal + parseInt(shipping_fee) + parseInt(vat) - discountAmount;\n};\n\n/**\n * Truncate lenghty text.\n *\n * @param {string} text The text\n * @param {number} business_name The max length\n * @returns {string}\n */\nexport const truncateLengthyText = (text, maxLength) => {\n if (text?.length > maxLength) {\n return `${text?.substring(0, maxLength)}...`;\n } else return text;\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/vue-cli-plugin-quasar/lib/loader.vue.auto-import-quasar.js??ref--1-0!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-1!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-2!./Button.vue?vue&type=style&index=1&id=bd910e9c&lang=css\"","'use strict';\nvar aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\nvar REDUCE_EMPTY = 'Reduce of empty array with no initial value';\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n aCallable(callbackfn);\n if (length === 0 && argumentsLength < 2) throw new $TypeError(REDUCE_EMPTY);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw new $TypeError(REDUCE_EMPTY);\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","\n \n \n \n\n\n\n\n\n\n","import { render } from \"./Button.vue?vue&type=template&id=bd910e9c\"\nimport script from \"./Button.vue?vue&type=script&lang=js\"\nexport * from \"./Button.vue?vue&type=script&lang=js\"\n\nimport \"./_button.scss?vue&type=style&index=0&lang=scss\"\nimport \"./Button.vue?vue&type=style&index=1&id=bd910e9c&lang=css\"\n\nimport exportComponent from \"/codebuild/output/src612567107/src/new-merchant-app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__\nimport QBtn from 'quasar/src/components/btn/QBtn.js';\nimport qInstall from \"../../../../node_modules/vue-cli-plugin-quasar/lib/runtime.auto-import.js\";\nqInstall(script, 'components', {QBtn});\n","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!./_button.scss?vue&type=style&index=0&lang=scss\"","import Platform from '../../plugins/Platform.js'\n\nexport function clearSelection () {\n if (window.getSelection !== void 0) {\n const selection = window.getSelection()\n if (selection.empty !== void 0) {\n selection.empty()\n }\n else if (selection.removeAllRanges !== void 0) {\n selection.removeAllRanges()\n Platform.is.mobile !== true && selection.addRange(document.createRange())\n }\n }\n else if (document.selection !== void 0) {\n document.selection.empty()\n }\n}\n"],"sourceRoot":""}