{"version":3,"sources":["webpack:///./src/views/account/clients/ClientsList.vue?2aa5","webpack:///./src/views/account/clients/ClientsList.vue","webpack:///./src/views/account/clients/ClientsList.vue?6c46"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","render","_ctx","_cache","$props","$setup","$data","$options","_component_PageTitle","_resolveComponent","_component_SearchInput","_component_DynamicTable","_component_ClientForm","_component_BaseModal","_component_ConfirmationModal","_openBlock","_createElementBlock","_Fragment","_createElementVNode","_createVNode","title","placeholder","$t","modelValue","searchValue","$event","onClick","showCreateClientPopup","_toDisplayString","tableData","clients","loading","pagination","tableFields","scrollable","buttons","edit","delete","export","onSort","clickSort","onMenuEvent","menuEvent","_createBlock","key","selectedClient","width","onClose","onCancel","default","_withCtx","client","onOnCompleted","onCompleteHandler","_","_createCommentVNode","confirmObject","header","hasIcon","cancelText","confirmText","onConfirm","handler","message","showSecretKeyPopup","name","disabled","type","value","secretKey","copySecretKey","toast","useToast","defineComponent","components","SearchInput","defineAsyncComponent","DynamicTable","PageTitle","BaseModal","ClientForm","ConfirmationModal","data","current","id","this","sortable","currentSort","sort","contentWidth","componentName","props","on","onEdit","onDelete","show","onShowSecretKey","methods","$store","dispatch","ClientActions","DELETE_CLIENT","init","route","val","$route","query","search","params","JSON","parse","stringify","pageSize","pageNumber","FETCH_CLIENTS","navigator","clipboard","writeText","success","timeout","error","computed","getters","map","c","darkstoreName","darkstore","isSuperAdmin","watch","router","push","queries","immediate","mounted","$router","DarkStoresActions","FETCH_DARKSTORES","page","size","__exports__"],"mappings":"iJAEMA,EAAa,CAAEC,MAAO,mBACtBC,EAAa,CAAED,MAAO,6BACtBE,EAAa,CAAEF,MAAO,6BACtBG,EAAa,CAAEH,MAAO,+BACtBI,EAAa,CAAEJ,MAAO,4BACtBK,EAAa,CAAEL,MAAO,QACtBM,EAAa,CAAEN,MAAO,wCACtBO,EAA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as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, Fragment as _Fragment, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = { class: \"pt-14 pb-5 px-5\" }\nconst _hoisted_2 = { class: \"flex justify-between mb-7\" }\nconst _hoisted_3 = { class: \"flex justify-start w-full\" }\nconst _hoisted_4 = { class: \"flex justify-between w-full\" }\nconst _hoisted_5 = { class: \"relative h-42 w-288 me-3\" }\nconst _hoisted_6 = { class: \"px-5\" }\nconst _hoisted_7 = { class: \"text-textColor font-bold text-md mb-\" }\nconst _hoisted_8 = { class: \"p-6\" }\nconst _hoisted_9 = { class: \"font-bold\" }\nconst _hoisted_10 = { class: \"flex gap-4 mt-2\" }\nconst _hoisted_11 = [\"value\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_PageTitle = _resolveComponent(\"PageTitle\")!\n const _component_SearchInput = _resolveComponent(\"SearchInput\")!\n const _component_DynamicTable = _resolveComponent(\"DynamicTable\")!\n const _component_ClientForm = _resolveComponent(\"ClientForm\")!\n const _component_BaseModal = _resolveComponent(\"BaseModal\")!\n const _component_ConfirmationModal = _resolveComponent(\"ConfirmationModal\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_PageTitle, { title: \"clients.title\" }),\n _createElementVNode(\"div\", _hoisted_2, [\n _createElementVNode(\"div\", _hoisted_3, [\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"div\", _hoisted_5, [\n _createVNode(_component_SearchInput, {\n placeholder: _ctx.$t('clients.search'),\n modelValue: _ctx.searchValue,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.searchValue) = $event))\n }, null, 8, [\"placeholder\", \"modelValue\"])\n ]),\n _createElementVNode(\"button\", {\n class: \"primary flex items-center rounded-md px-3\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.showCreateClientPopup = true))\n }, _toDisplayString(_ctx.$t('clients.createModal.create')), 1)\n ])\n ])\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_6, [\n _createVNode(_component_DynamicTable, {\n tableData: _ctx.clients,\n loading: _ctx.loading,\n pagination: _ctx.pagination,\n tableFields: _ctx.tableFields,\n scrollable: true,\n buttons: { edit: false, delete: false, export: false},\n onSort: _cache[2] || (_cache[2] = ($event: any) => (_ctx.clickSort($event))),\n onMenuEvent: _cache[3] || (_cache[3] = ($event: any) => (_ctx.menuEvent($event)))\n }, null, 8, [\"tableData\", \"loading\", \"pagination\", \"tableFields\"])\n ]),\n (_ctx.showCreateClientPopup)\n ? (_openBlock(), _createBlock(_component_BaseModal, {\n key: 0,\n title: _ctx.selectedClient ? _ctx.$t('clients.createModal.edit') : _ctx.$t('clients.createModal.create'),\n width: '675',\n onClose: _ctx.onCancel\n }, {\n default: _withCtx(() => [\n _createVNode(_component_ClientForm, {\n client: _ctx.selectedClient,\n onOnCompleted: _ctx.onCompleteHandler,\n onClose: _ctx.onCancel\n }, null, 8, [\"client\", \"onOnCompleted\", \"onClose\"])\n ]),\n _: 1\n }, 8, [\"title\", \"onClose\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.confirmObject)\n ? (_openBlock(), _createBlock(_component_ConfirmationModal, {\n key: 1,\n header: _ctx.confirmObject.title,\n hasIcon: false,\n cancelText: _ctx.$t('buttons.no'),\n confirmText: _ctx.$t('buttons.yes'),\n onConfirm: _ctx.confirmObject?.handler,\n onCancel: _cache[4] || (_cache[4] = () => { _ctx.confirmObject = null; _ctx.onCancel() })\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_7, _toDisplayString(_ctx.confirmObject.message), 1)\n ]),\n _: 1\n }, 8, [\"header\", \"cancelText\", \"confirmText\", \"onConfirm\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.showSecretKeyPopup)\n ? (_openBlock(), _createBlock(_component_BaseModal, {\n key: 2,\n title: _ctx.selectedClient.name,\n width: '420',\n onClose: _ctx.onCancel\n }, {\n default: _withCtx(() => [\n _createElementVNode(\"div\", _hoisted_8, [\n _createElementVNode(\"div\", _hoisted_9, _toDisplayString(_ctx.$t('clients.secretKey')), 1),\n _createElementVNode(\"div\", _hoisted_10, [\n _createElementVNode(\"input\", {\n disabled: \"\",\n type: \"secretKey\",\n class: \"w-full px-2 border-gray-400\",\n value: _ctx.selectedClient.secretKey\n }, null, 8, _hoisted_11),\n _createElementVNode(\"button\", {\n class: \"border border-gray-400 px-2 hover:bg-gray-100\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.copySecretKey(_ctx.selectedClient.secretKey)))\n }, _toDisplayString(_ctx.$t('copy')), 1)\n ])\n ])\n ]),\n _: 1\n }, 8, [\"title\", \"onClose\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","\nimport router from '@/router'\nimport { defineComponent, defineAsyncComponent } from 'vue'\nimport { PaginationInterface } from '@/shared/interfaces/pagination.interface'\nimport { ClientActions } from '@/store/modules/clients/actions'\nimport { ClientInterface } from '@/shared/interfaces/clients.interface'\nimport { DarkStoresActions } from '@/store/modules/darkstores/actions'\nimport { useToast } from 'vue-toastification'\n\nconst toast = useToast()\n\nexport default defineComponent({\n components: {\n SearchInput: defineAsyncComponent(() => import('@/shared/components/SearchInput.vue')),\n DynamicTable: defineAsyncComponent(() => import('@/shared/components/dynamic-table/DynamicTable.vue')),\n PageTitle: defineAsyncComponent(() => import('@/shared/components/PageTitle.vue')),\n BaseModal: defineAsyncComponent(() => import('@/shared/components/modals/BaseModal.vue')),\n ClientForm: defineAsyncComponent(() => import('@/views/account/clients/components/ClientForm.vue')),\n ConfirmationModal: defineAsyncComponent(() => import('@/shared/components/modals/ConfirmationModal.vue'))\n },\n data () {\n return {\n confirmObject: null as any,\n current: 1,\n searchValue: '',\n tableFields: [\n { id: 'name', name: this.$t('table.name'), width: '18%', sortable: false, currentSort: false, sort: null },\n { id: 'description', name: this.$t('table.description'), width: '18%', sortable: false, currentSort: false, sort: null },\n { id: 'status', name: this.$t('table.status'), width: '18%', sortable: false, currentSort: false, sort: null },\n { id: 'erpnextMerchant', name: this.$t('table.erpnextMerchant'), width: '18%', sortable: false, currentSort: false, sort: null },\n { id: 'darkstoreName', name: this.$t('table.darkstore'), width: '18%', sortable: false, currentSort: false, sort: null },\n {\n id: 'actions',\n type: 'component',\n name: '',\n width: '18%',\n contentWidth: 'w-18',\n sortable: false,\n currentSort: false,\n sort: null,\n componentName: 'DynamicTableClientActionsCell',\n props: {\n data: 'rowData' // rowData is all data of row\n },\n on: {\n edit: this.onEdit,\n delete: this.onDelete,\n show: this.onShowSecretKey\n }\n }\n ],\n selectedClient: null as any,\n showCreateClientPopup: false,\n showSecretKeyPopup: false\n }\n },\n methods: {\n onEdit (client: ClientInterface) {\n this.selectedClient = client\n this.showCreateClientPopup = true\n },\n onDelete (client: ClientInterface) {\n this.selectedClient = client\n this.confirmObject = {\n title: this.$t('clients.deleteConfirm.title'),\n message: this.$t('clients.deleteConfirm.message', [this.selectedClient.name]),\n handler: async () => {\n await this.$store.dispatch(`clients/${[ClientActions.DELETE_CLIENT]}`, this.selectedClient.id)\n this.init()\n this.onCancel()\n }\n }\n },\n onShowSecretKey (client: ClientInterface) {\n this.selectedClient = client\n this.showSecretKeyPopup = true\n },\n init (route = null) {\n const val = route || this.$route\n if (val.query.search) {\n this.searchValue = val.query.search as any\n }\n let params = JSON.parse(JSON.stringify(val.query))\n params = { pageSize: 10, pageNumber: val.query.pageNumber ? val.query.pageNumber : 1, ...params }\n this.$store.dispatch(`clients/${[ClientActions.FETCH_CLIENTS]}`, params)\n },\n onCompleteHandler () {\n this.onCancel()\n this.init()\n },\n onCancel () {\n this.selectedClient = null\n this.showCreateClientPopup = false\n this.showSecretKeyPopup = false\n this.confirmObject = null\n },\n async copySecretKey (key: string) {\n try {\n await navigator.clipboard.writeText(key)\n toast.success(this.$t('copied'), { timeout: 3000 })\n this.onCancel()\n } catch (e: any) {\n toast.error('Cannot copied', { timeout: 3000 })\n }\n }\n },\n computed: {\n clients (): ClientInterface[] {\n return this.$store.getters['clients/getClients'].map((c: ClientInterface) => {\n return {\n ...c,\n darkstoreName: c.darkstore.name\n }\n })\n },\n pagination (): PaginationInterface {\n return this.$store.getters['clients/getPagination']\n },\n loading (): boolean {\n return this.$store.getters['clients/getLoading']\n },\n isSuperAdmin (): boolean {\n return this.$store.getters.isSuperAdmin\n }\n },\n watch: {\n current (val) {\n router.push({ query: { ...this.$route.query, pageNumber: val } })\n },\n searchValue () {\n const queries = this.$route.query\n queries.pageNumber = '1'\n router.push({ query: { ...queries, search: this.searchValue } })\n },\n $route: {\n immediate: true,\n handler (val) {\n if (val.name === 'Clients') {\n this.init(val)\n }\n }\n }\n },\n mounted () {\n if (!this.isSuperAdmin) {\n this.$router.push('/')\n }\n this.$store.dispatch(`darkstores/${DarkStoresActions.FETCH_DARKSTORES}`, { page: 1, size: 100 })\n }\n})\n","import { render } from \"./ClientsList.vue?vue&type=template&id=40fb2c31&ts=true\"\nimport script from \"./ClientsList.vue?vue&type=script&lang=ts\"\nexport * from \"./ClientsList.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"/usr/src/app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__"],"sourceRoot":""}