{"version":3,"sources":["webpack:///../../../src/components/VSnackbar/VSnackbar.ts","webpack:///../../../src/components/VGrid/VSpacer.ts","webpack:///../../../src/components/VForm/VForm.ts","webpack:///./src/views/finance/balance-breakdown/BalanceBreakdownList.vue?526b","webpack:///./src/views/finance/balance-breakdown/storeModule.js","webpack:///./src/views/finance/balance-breakdown/useBalanceBreakdownList.js","webpack:///src/views/finance/balance-breakdown/BalanceBreakdownList.vue","webpack:///./src/views/finance/balance-breakdown/BalanceBreakdownList.vue?b124","webpack:///./src/views/finance/balance-breakdown/BalanceBreakdownList.vue?846d","webpack:///./src/@core/utils/validation.js","webpack:///./src/views/finance/balance-breakdown/BalanceBreakdownList.vue?f616","webpack:///./src/components/VToast.vue?4f80","webpack:///src/components/VToast.vue","webpack:///./src/components/VToast.vue?3160","webpack:///./src/components/VToast.vue"],"names":["mixins","VSheet","Colorable","Toggleable","PositionableFactory","extend","name","props","app","Boolean","centered","contentClass","type","String","default","multiLine","text","timeout","Number","transition","validator","v","vertical","data","activeTimeout","computed","classes","this","absolute","isActive","bottom","top","hasBackground","left","right","outlined","isDark","light","Themeable","options","call","styles","bar","footer","insetFooter","$vuetify","application","paddingBottom","convertToUnit","paddingLeft","paddingRight","paddingTop","watch","mounted","setTimeout","created","$attrs","hasOwnProperty","removed","deprecate","methods","genActions","$createElement","staticClass","getSlot","attrs","class","genContent","role","genWrapper","setColor","setBackgroundColor","setTextColor","color","style","directives","value","on","pointerenter","window","clearTimeout","pointerleave","genTransition","includes","render","h","createSimpleFunctional","BindsAttrs","RegistrableProvide","provide","form","inheritAttrs","disabled","lazyValidation","readonly","inputs","watchers","errorBag","handler","val","errors","Object","values","$emit","deep","immediate","watchInput","input","watcher","$watch","$set","_uid","valid","shouldValidate","validate","filter","length","reset","forEach","resetErrorBag","resetValidation","register","push","unregister","found","find","i","unwatch","$delete","novalidate","attrs$","submit","e","$slots","_vm","_h","_c","_self","_v","ref","model","callback","$$v","filtersFormIsValid","expression","shopFilterItems","validators","required","shopFilterModel","monthDate","$event","scopedSlots","_u","key","fn","_g","_b","staticStyle","icons","mdiCalendarMonthOutline","monthModal","allowedDates","$refs","dialog","save","loading","preventDefault","applyFilters","apply","arguments","resetFilters","_s","formatCurrency","openingBalance","balanceBreakdownItemsLength","downloadList","mdiDownloadBoxOutline","tableColumns","balanceBreakdownItems","itemsPerPage","footerTableProps","item","formatDate","date","dateStyle","credit","debit","fees","balance","staticRenderFns","namespaced","state","getters","mutations","actions","fetchBalanceBreakdownListConfig","Promise","resolve","reject","axios","get","then","response","catch","error","fetchBalanceBreakdownList","ctx","params","downloadBalanceBreakdownList","responseType","headers","Accept","useBalanceBreakdownList","STORE_MODULE_NAME","store","hasModule","registerModule","balanceBreakdownStoreModule","onUnmounted","unregisterModule","sortable","width","align","filtersForm","Date","toISOString","substr","monthMenu","closingBalance","showFirstLastPage","itemsPerPageOptions","showCurrentPage","firstIcon","mdiPageFirst","lastIcon","mdiPageLast","prevIcon","mdiChevronLeft","nextIcon","mdiChevronRight","vtoast","dispatch","shopId","period","records","count","finally","url","URL","createObjectURL","Blob","link","document","createElement","href","fileName","filename","setAttribute","body","appendChild","click","remove","revokeObjectURL","show","message","code","fetchConfig","config","shops","isFormValid","year","getFullYear","onMounted","components","VToast","setup","mdiExportVariant","component","VAutocomplete","VBtn","VCard","VCardText","VCardTitle","VCol","VDataTable","VDatePicker","VDialog","VDivider","VForm","VIcon","VRow","VSpacer","VTextField","emailValidator","isEmpty","re","Array","isArray","every","test","passwordValidator","password","regExp","validPassword","alphaValidator","decimalValidator","numbersValidator","snackbar","_l","msg","domProps","visible","icon","messages","mdiCheck","mdiCancel","VSnackbar"],"mappings":"oKAAA,8GAoBeA,sBACbC,OACAC,OACAC,OACAC,eAAoB,CAClB,WACA,SACA,OACA,QACA,SAGFC,OAAO,CACPC,KAAM,aAENC,MAAO,CACLC,IAAKC,QACLC,SAAUD,QACVE,aAAc,CACZC,KAAMC,OACNC,QAAS,IAEXC,UAAWN,QACXO,KAAMP,Q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L,KAAA,SACA6Q,QACA,MAAAgC,EAAAxK,eAAA,CACA4K,SAAA,EACA9O,MAAA,OACAgP,SAAA,EACAhD,KAAA,GACAD,QAAA,KAEAvP,QAAA,OACAuS,KAAAE,SAGAnD,GAAAkD,EAAA7S,KACAuS,EAAAvO,MAAA6O,WACAN,EAAAvO,MAAAH,MAAA,UAAA7D,EAAA,WACAuS,EAAAvO,MAAA4O,KAAA,UAAA5S,EAAA+S,OAAAD,OACAP,EAAAvO,MAAA2O,SAAA,GAGA,OACAJ,WACA5C,OACAzG,MAAA,CACA4J,gBACAC,qBCjEmX,I,qECO/WtC,EAAY,eACd,EACAjM,EACAyG,GACA,EACA,KACA,KACA,MAIa,OAAAwF,EAAiB,QAOhC,IAAkBA,EAAW,CAACE,OAAA,KAAKU,QAAA,KAAM2B,YAAA,Q","file":"js/chunk-0845c2d4.643ab0f1.js","sourcesContent":["// Styles\nimport './VSnackbar.sass'\n\n// Components\nimport VSheet from '../VSheet/VSheet'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\nimport Toggleable from '../../mixins/toggleable'\nimport { factory as PositionableFactory } from '../../mixins/positionable'\n\n// Utilities\nimport mixins from '../../util/mixins'\nimport { convertToUnit, getSlot } from '../../util/helpers'\nimport { deprecate, removed } from '../../util/console'\n\n// Types\nimport { PropType, VNode } from 'vue'\n\nexport default mixins(\n VSheet,\n Colorable,\n Toggleable,\n PositionableFactory([\n 'absolute',\n 'bottom',\n 'left',\n 'right',\n 'top',\n ])\n/* @vue/component */\n).extend({\n name: 'v-snackbar',\n\n props: {\n app: Boolean,\n centered: Boolean,\n contentClass: {\n type: String,\n default: '',\n },\n multiLine: Boolean,\n text: Boolean,\n timeout: {\n type: [Number, String],\n default: 5000,\n },\n transition: {\n type: [Boolean, String] as PropType,\n default: 'v-snack-transition',\n validator: v => typeof v === 'string' || v === false,\n },\n vertical: Boolean,\n },\n\n data: () => ({\n activeTimeout: -1,\n }),\n\n computed: {\n classes (): object {\n return {\n 'v-snack--absolute': this.absolute,\n 'v-snack--active': this.isActive,\n 'v-snack--bottom': this.bottom || !this.top,\n 'v-snack--centered': this.centered,\n 'v-snack--has-background': this.hasBackground,\n 'v-snack--left': this.left,\n 'v-snack--multi-line': this.multiLine && !this.vertical,\n 'v-snack--right': this.right,\n 'v-snack--text': this.text,\n 'v-snack--top': this.top,\n 'v-snack--vertical': this.vertical,\n }\n },\n // Text and outlined styles both\n // use transparent backgrounds\n hasBackground (): boolean {\n return (\n !this.text &&\n !this.outlined\n )\n },\n // Snackbar is dark by default\n // override themeable logic.\n isDark (): boolean {\n return this.hasBackground\n ? !this.light\n : Themeable.options.computed.isDark.call(this)\n },\n styles (): object {\n if (this.absolute || !this.app) return {}\n\n const {\n bar,\n bottom,\n footer,\n insetFooter,\n left,\n right,\n top,\n } = this.$vuetify.application\n\n return {\n paddingBottom: convertToUnit(bottom + footer + insetFooter),\n paddingLeft: convertToUnit(left),\n paddingRight: convertToUnit(right),\n paddingTop: convertToUnit(bar + top),\n }\n },\n },\n\n watch: {\n isActive: 'setTimeout',\n timeout: 'setTimeout',\n },\n\n mounted () {\n if (this.isActive) this.setTimeout()\n },\n\n created () {\n /* istanbul ignore next */\n if (this.$attrs.hasOwnProperty('auto-height')) {\n removed('auto-height', this)\n }\n\n /* istanbul ignore next */\n // eslint-disable-next-line eqeqeq\n if (this.timeout == 0) {\n deprecate('timeout=\"0\"', '-1', this)\n }\n },\n\n methods: {\n genActions () {\n return this.$createElement('div', {\n staticClass: 'v-snack__action ',\n }, [\n getSlot(this, 'action', {\n attrs: { class: 'v-snack__btn' },\n }),\n ])\n },\n genContent () {\n return this.$createElement('div', {\n staticClass: 'v-snack__content',\n class: {\n [this.contentClass]: true,\n },\n attrs: {\n role: 'status',\n 'aria-live': 'polite',\n },\n }, [getSlot(this)])\n },\n genWrapper () {\n const setColor = this.hasBackground\n ? this.setBackgroundColor\n : this.setTextColor\n\n const data = setColor(this.color, {\n staticClass: 'v-snack__wrapper',\n class: VSheet.options.computed.classes.call(this),\n style: VSheet.options.computed.styles.call(this),\n directives: [{\n name: 'show',\n value: this.isActive,\n }],\n on: {\n pointerenter: () => window.clearTimeout(this.activeTimeout),\n pointerleave: this.setTimeout,\n },\n })\n\n return this.$createElement('div', data, [\n this.genContent(),\n this.genActions(),\n ])\n },\n genTransition () {\n return this.$createElement('transition', {\n props: { name: this.transition },\n }, [this.genWrapper()])\n },\n setTimeout () {\n window.clearTimeout(this.activeTimeout)\n\n const timeout = Number(this.timeout)\n\n if (\n !this.isActive ||\n // TODO: remove 0 in v3\n [0, -1].includes(timeout)\n ) {\n return\n }\n\n this.activeTimeout = window.setTimeout(() => {\n this.isActive = false\n }, timeout)\n },\n },\n\n render (h): VNode {\n return h('div', {\n staticClass: 'v-snack',\n class: this.classes,\n style: this.styles,\n }, [\n this.transition !== false\n ? this.genTransition()\n : this.genWrapper(),\n ])\n },\n})\n","import './_grid.sass'\nimport { createSimpleFunctional } from '../../util/helpers'\n\nexport default createSimpleFunctional('spacer', 'div', 'v-spacer')\n","// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\n\ntype ErrorBag = Record\ntype VInputInstance = InstanceType\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, this.$slots.default)\n },\n})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"balanceBreakdown-list\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\" Balance Breakdown \")]),_c('v-form',{ref:\"filtersForm\",model:{value:(_vm.filtersFormIsValid),callback:function ($$v) {_vm.filtersFormIsValid=$$v},expression:\"filtersFormIsValid\"}},[_c('v-row',{staticClass:\"px-2 ma-0\"},[_c('v-col',{attrs:{\"cols\":\"10\",\"sm\":\"10\"}},[_c('v-autocomplete',{attrs:{\"placeholder\":\"Select Shop\",\"items\":_vm.shopFilterItems,\"item-text\":\"text\",\"item-value\":\"value\",\"label\":\"Shop\",\"clearable\":\"\",\"outlined\":\"\",\"hide-details\":\"\",\"rules\":[_vm.validators.required]},model:{value:(_vm.shopFilterModel),callback:function ($$v) {_vm.shopFilterModel=$$v},expression:\"shopFilterModel\"}})],1),_c('v-col',{attrs:{\"cols\":\"2\",\"sm\":\"2\"}},[_c('v-dialog',{ref:\"dialog\",attrs:{\"return-value\":_vm.monthDate,\"persistent\":\"\",\"width\":\"290px\"},on:{\"update:returnValue\":function($event){_vm.monthDate=$event},\"update:return-value\":function($event){_vm.monthDate=$event}},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-text-field',_vm._g(_vm._b({staticStyle:{\"text-align\":\"center\"},attrs:{\"label\":\"Period\",\"prepend-inner-icon\":_vm.icons.mdiCalendarMonthOutline,\"readonly\":\"\",\"outlined\":\"\",\"hide-details\":\"\"},model:{value:(_vm.monthDate),callback:function ($$v) {_vm.monthDate=$$v},expression:\"monthDate\"}},'v-text-field',attrs,false),on))]}}]),model:{value:(_vm.monthModal),callback:function ($$v) {_vm.monthModal=$$v},expression:\"monthModal\"}},[_c('v-date-picker',{attrs:{\"allowed-dates\":_vm.allowedDates,\"type\":\"month\",\"scrollable\":\"\"},model:{value:(_vm.monthDate),callback:function ($$v) {_vm.monthDate=$$v},expression:\"monthDate\"}},[_c('v-spacer'),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){_vm.monthModal = false}}},[_vm._v(\" Cancel \")]),_c('v-btn',{attrs:{\"text\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.$refs.dialog.save(_vm.monthDate)}}},[_vm._v(\" OK \")])],1)],1)],1)],1),_c('v-divider',{staticClass:\"mt-4\"}),_c('v-card-text',{staticClass:\"d-flex align-center flex-wrap pb-0\"},[_c('v-btn',{ref:\"btnApplyFilters\",staticClass:\"me-3 mb-4\",attrs:{\"color\":\"primary\",\"loading\":_vm.loading,\"disabled\":_vm.loading || !_vm.filtersFormIsValid},on:{\"click\":function($event){$event.preventDefault();return _vm.applyFilters.apply(null, arguments)}}},[_vm._v(\" Apply Filters \")]),_c('v-btn',{staticClass:\"me-3 mb-4\",attrs:{\"color\":\"secondary\",\"outlined\":\"\",\"type\":\"reset\",\"disabled\":_vm.loading || !_vm.filtersFormIsValid},on:{\"click\":function($event){$event.preventDefault();return _vm.resetFilters.apply(null, arguments)}}},[_vm._v(\" Reset \")])],1)],1),_c('v-card',[_c('v-card-text',{staticClass:\"d-flex align-center flex-wrap pb-0 balanceDetails\"},[_c('h1',[_vm._v(\"Opening Balance \"),_c('span',[_vm._v(\"$\"+_vm._s(_vm.formatCurrency(_vm.openingBalance)))])]),_c('v-spacer'),_c('v-btn',{staticClass:\"mb-4 me-0\",attrs:{\"color\":\"secondary\",\"outlined\":\"\",\"disabled\":_vm.balanceBreakdownItemsLength == 0,\"loading\":_vm.loading},on:{\"click\":_vm.downloadList}},[_c('v-icon',{staticClass:\"me-1\",attrs:{\"size\":\"17\"}},[_vm._v(\" \"+_vm._s(_vm.icons.mdiDownloadBoxOutline)+\" \")]),_c('span',[_vm._v(\"Download\")])],1)],1)],1),_c('v-data-table',{ref:\"balanceBreakdownTable\",attrs:{\"headers\":_vm.tableColumns,\"items\":_vm.balanceBreakdownItems,\"items-per-page\":_vm.itemsPerPage,\"options\":_vm.options,\"server-items-length\":_vm.balanceBreakdownItemsLength,\"loading\":_vm.loading,\"show-current-page\":\"\",\"footer-props\":_vm.footerTableProps},on:{\"update:options\":function($event){_vm.options=$event}},scopedSlots:_vm._u([{key:\"item.date\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',[_vm._v(_vm._s(_vm.formatDate(item.date, { dateStyle: \"short\" })))])]}},{key:\"item.credit\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',[_vm._v(\"$ \"+_vm._s(_vm.formatCurrency(item.credit)))])]}},{key:\"item.debit\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',[_vm._v(\"$ \"+_vm._s(_vm.formatCurrency(item.debit)))])]}},{key:\"item.fees\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',[_vm._v(\"$ \"+_vm._s(_vm.formatCurrency(item.fees)))])]}},{key:\"item.balance\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('span',[_vm._v(\"$ \"+_vm._s(_vm.formatCurrency(item.balance)))])]}}],null,true)})],1),_c('v-toast',{ref:\"vtoast\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import axios from '@axios'\n\nexport default {\n namespaced: true,\n state: {},\n getters: {},\n mutations: {},\n actions: {\n fetchBalanceBreakdownListConfig() {\n return new Promise((resolve, reject) => {\n axios\n .get('/finance/balance-breakdown/page-setups/list')\n .then(response => resolve(response))\n .catch(error => reject(error))\n })\n },\n fetchBalanceBreakdownList(ctx, params) {\n return new Promise((resolve, reject) => {\n axios\n .get('/finance/balance-breakdown', { params })\n .then(response => resolve(response))\n .catch(error => reject(error))\n })\n },\n downloadBalanceBreakdownList(ctx, params) {\n return new Promise((resolve, reject) => {\n axios\n .get('/finance/balance-breakdown/download', {\n params,\n responseType: 'arraybuffer',\n headers: {\n 'Content-Type': 'application/vnd.ms-excel',\n Accept: 'application/vnd.ms-excel',\n },\n })\n .then(response => resolve(response))\n .catch(error => reject(error))\n })\n },\n },\n}\n","import {\n ref, onUnmounted, onMounted, watch,\n} from '@vue/composition-api'\nimport store from '@/store'\nimport balanceBreakdownStoreModule from '@/views/finance/balance-breakdown/storeModule'\nimport {\n mdiPageFirst,\n mdiPageLast,\n mdiChevronLeft,\n mdiChevronRight,\n} from '@mdi/js'\nimport { required } from '@core/utils/validation'\n\nexport default function useBalanceBreakdownList() {\n const STORE_MODULE_NAME = 'finance-balance-breakdown'\n\n // Register module\n if (!store.hasModule(STORE_MODULE_NAME)) {\n store.registerModule(STORE_MODULE_NAME, balanceBreakdownStoreModule)\n }\n\n onUnmounted(() => {\n if (store.hasModule(STORE_MODULE_NAME)) {\n store.unregisterModule(STORE_MODULE_NAME)\n }\n })\n\n const tableColumns = [\n {\n text: 'DATE', value: 'date', sortable: false, width: 80,\n },\n {\n text: 'TRANSACTION ID', value: 'transactionId', sortable: false, width: 150,\n },\n {\n text: 'TRANSACTION TYPE', value: 'transactionType', sortable: false, width: 300,\n },\n {\n text: 'CREDIT', value: 'credit', sortable: false, align: 'right', width: 150,\n },\n {\n text: 'DEBIT', value: 'debit', sortable: false, align: 'right', width: 150,\n },\n {\n text: 'FEES', value: 'fees', sortable: false, align: 'right', width: 150,\n },\n {\n text: 'BALANCE', value: 'balance', sortable: false, align: 'right', width: 150,\n },\n ]\n\n const filtersForm = ref(null)\n const filtersFormIsValid = ref(false)\n\n const monthDate = ref(new Date().toISOString().substr(0, 7))\n const monthMenu = ref(false)\n const monthModal = ref(false)\n\n const shopFilterModel = ref(null)\n const shopFilterItems = ref([])\n\n const balanceBreakdownItems = ref([])\n const balanceBreakdownItemsLength = ref(0)\n\n const openingBalance = ref(0)\n const closingBalance = ref(0)\n\n const options = ref({})\n\n const loading = ref(false)\n\n const footerTableProps = {\n showFirstLastPage: true,\n itemsPerPageOptions: [10, 20, 50],\n showCurrentPage: true,\n firstIcon: mdiPageFirst,\n lastIcon: mdiPageLast,\n prevIcon: mdiChevronLeft,\n nextIcon: mdiChevronRight,\n }\n\n const itemsPerPage = ref(footerTableProps[0])\n\n const vtoast = ref(null)\n\n // fetch data\n const fetchBalanceBreakdownList = () => {\n loading.value = true\n\n store\n .dispatch(`${STORE_MODULE_NAME}/fetchBalanceBreakdownList`, {\n shopId: shopFilterModel.value,\n period: monthDate.value,\n options: options.value,\n })\n .then(response => {\n const {\n records, count,\n } = response.data\n balanceBreakdownItems.value = records\n balanceBreakdownItemsLength.value = count\n openingBalance.value = response.data.openingBalance\n closingBalance.value = response.data.closingBalance\n })\n .catch(error => error).finally(() => {\n loading.value = false\n })\n }\n\n const downloadList = () => {\n loading.value = true\n store\n .dispatch(`${STORE_MODULE_NAME}/downloadBalanceBreakdownList`, {\n shopId: shopFilterModel.value,\n period: monthDate.value,\n })\n .then(response => {\n const url = window.URL.createObjectURL(new Blob([response.data]))\n const link = document.createElement('a')\n link.href = url\n const fileName = response.headers.filename\n link.setAttribute('download', fileName)\n document.body.appendChild(link)\n link.click()\n link.remove()\n window.URL.revokeObjectURL(url)\n vtoast.value.show([{ message: 'The report has been downloaded!', code: '000' }], 'info')\n })\n .catch(error => {\n vtoast.value.show(error.response.data.errors, 'error')\n })\n .finally(() => {\n loading.value = false\n })\n }\n\n const applyFilters = () => {\n fetchBalanceBreakdownList()\n }\n\n const resetFilters = () => {\n shopFilterModel.value = null\n balanceBreakdownItemsLength.value = 0\n }\n\n const fetchConfig = () => {\n loading.value = true\n store\n .dispatch(`${STORE_MODULE_NAME}/fetchBalanceBreakdownListConfig`)\n .then(response => {\n const config = response.data\n shopFilterItems.value = config.shops\n })\n .catch(error => error).finally(() => {\n loading.value = false\n })\n }\n\n const isFormValid = () => {\n filtersForm.value.validate()\n }\n\n const allowedDates = val => {\n const year = new Date(val).getFullYear()\n\n return year !== 2021 && year !== 2022 && year !== 2023 && year !== 2024 // Disable specific years\n }\n\n onMounted(() => {\n fetchConfig()\n })\n\n watch([options], () => {\n fetchBalanceBreakdownList()\n })\n\n return {\n vtoast,\n balanceBreakdownItems,\n balanceBreakdownItemsLength,\n openingBalance,\n closingBalance,\n tableColumns,\n shopFilterItems,\n shopFilterModel,\n loading,\n footerTableProps,\n itemsPerPage,\n options,\n monthDate,\n monthMenu,\n monthModal,\n filtersForm,\n filtersFormIsValid,\n allowedDates,\n isFormValid,\n downloadList,\n applyFilters,\n resetFilters,\n fetchConfig,\n validators: {\n required,\n },\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BalanceBreakdownList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BalanceBreakdownList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BalanceBreakdownList.vue?vue&type=template&id=d2f8f242&scoped=true&\"\nimport script from \"./BalanceBreakdownList.vue?vue&type=script&lang=js&\"\nexport * from \"./BalanceBreakdownList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BalanceBreakdownList.vue?vue&type=style&index=0&id=d2f8f242&prod&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d2f8f242\",\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAutocomplete } from 'vuetify/lib/components/VAutocomplete';\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VDatePicker } from 'vuetify/lib/components/VDatePicker';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VAutocomplete,VBtn,VCard,VCardText,VCardTitle,VCol,VDataTable,VDatePicker,VDialog,VDivider,VForm,VIcon,VRow,VSpacer,VTextField})\n","import { isEmpty } from './index'\n\nexport const required = value => (value && value.length ? true : 'This field is required')\nexport const emailValidator = value => {\n if (isEmpty(value)) {\n return true\n }\n\n // eslint-disable-next-line\n const re = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n\n if (Array.isArray(value)) {\n return value.every(val => re.test(String(val)))\n }\n\n return re.test(String(value)) || 'The Email field must be a valid email'\n}\n\nexport const passwordValidator = password => {\n /* eslint-disable no-useless-escape */\n const regExp = /(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%&*()]).{8,}/\n /* eslint-enable no-useless-escape */\n const validPassword = regExp.test(password)\n\n return (\n // eslint-disable-next-line operator-linebreak\n validPassword ||\n 'Field must contain at least one uppercase, lowercase, special character and digit with min 8 chars'\n )\n}\n\nexport const confirmedValidator = (value, target) =>\n // eslint-disable-next-line implicit-arrow-linebreak\n value === target || 'The Confirm Password field confirmation does not match'\n\nexport const between = (value, min, max) => () => {\n const valueAsNumber = Number(value)\n\n return (Number(min) <= valueAsNumber && Number(max) >= valueAsNumber) || `Enter number between ${min} and ${max}`\n}\n\nexport const integerValidator = value => {\n if (isEmpty(value)) {\n return true\n }\n\n if (Array.isArray(value)) {\n return value.every(val => /^-?[0-9]+$/.test(String(val)))\n }\n\n return /^-?[0-9]+$/.test(String(value)) || 'This field must be an integer'\n}\n\nexport const regexValidator = (value, regex) => {\n if (isEmpty(value)) {\n return true\n }\n\n let regeX = regex\n if (typeof regeX === 'string') {\n regeX = new RegExp(regeX)\n }\n\n if (Array.isArray(value)) {\n return value.every(val => regexValidator(val, { regeX }))\n }\n\n return regeX.test(String(value)) || 'The Regex field format is invalid'\n}\n\nexport const alphaValidator = value => {\n if (isEmpty(value)) {\n return true\n }\n\n // const valueAsString = String(value)\n\n return /^[A-Z]*$/i.test(String(value)) || 'The Alpha field may only contain alphabetic characters'\n}\n\nexport const urlValidator = value => {\n if (value === undefined || value === null || value.length === 0) {\n return true\n }\n /* eslint-disable no-useless-escape */\n const re = /^(http[s]?:\\/\\/){0,1}(www\\.){0,1}[a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,5}[\\.]{0,1}/\n\n return re.test(value) || 'URL is invalid'\n}\n\nexport const lengthValidator = (value, length) => {\n if (isEmpty(value)) {\n return true\n }\n\n return value.length === length || `The Min Character field must be at least ${length} characters`\n}\nexport const alphaDashValidator = value => {\n if (isEmpty(value)) {\n return true\n }\n\n const valueAsString = String(value)\n\n return /^[0-9A-Z_-]*$/i.test(valueAsString) || 'All Character is not valid'\n}\nexport const decimalValidator = value => {\n if (isEmpty(value)) {\n return true\n }\n\n const re = /^[-+]?[0-9]+\\.[0-9]+$/\n\n return re.test(value) || 'This field must be a decimal'\n}\nexport const numbersValidator = value => {\n if (isEmpty(value)) {\n return 'This field must be a number'\n } \n\n const re = /^\\s*[+-]?(\\d+|\\d*\\.\\d+|\\d+\\.\\d*)([Ee][+-]?\\d+)?\\s*$/\n\n return re.test(value) || 'This field must be a number'\n}","export * from \"-!../../../../node_modules/@vue/cli-service/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/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./BalanceBreakdownList.vue?vue&type=style&index=0&id=d2f8f242&prod&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-snackbar',{attrs:{\"timeout\":_vm.snackbar.timeout,\"color\":_vm.snackbar.color,\"multi-line\":\"\",\"bottom\":\"\"},scopedSlots:_vm._u([{key:\"action\",fn:function(ref){\nvar attrs = ref.attrs;\nreturn [_vm._l((_vm.snackbar.messages),function(msg){return _c('div',{key:msg.code,staticClass:\"mr-5\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(msg.message)}})])}),_c('v-btn',_vm._b({attrs:{\"color\":\"error\",\"text\":\"\"},on:{\"click\":function($event){_vm.snackbar.visible = false}}},'v-btn',attrs,false),[_vm._v(\" Close \")])]}}]),model:{value:(_vm.snackbar.visible),callback:function ($$v) {_vm.$set(_vm.snackbar, \"visible\", $$v)},expression:\"snackbar.visible\"}},[_c('v-icon',{attrs:{\"left\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.snackbar.icon)+\" \")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VToast.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/@vue/cli-plugin-babel/node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./VToast.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VToast.vue?vue&type=template&id=bf5c1112&\"\nimport script from \"./VToast.vue?vue&type=script&lang=js&\"\nexport * from \"./VToast.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VSnackbar } from 'vuetify/lib/components/VSnackbar';\ninstallComponents(component, {VBtn,VIcon,VSnackbar})\n"],"sourceRoot":""}