{"version":3,"sources":["webpack:///./src/views/account/manual-changes/ManualChanges.vue?5664","webpack:///./src/views/account/manual-changes/ManualChanges.vue","webpack:///./src/views/account/manual-changes/ManualChanges.vue?7ce7","webpack:///./src/views/account/manual-changes/ManualChanges.vue?867c"],"names":["_withScopeId","n","_pushScopeId","_popScopeId","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","key","_hoisted_8","_hoisted_9","_hoisted_10","_createElementVNode","id","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","style","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","render","_ctx","_cache","$props","$setup","$data","$options","_component_PageTitle","_resolveComponent","_component_SearchInput","_component_BaseIcon","_component_FilterPanel","_component_vue_excel_xlsx","_component_TableGhost","_component_Pagination","_openBlock","_createElementBlock","_Fragment","_createVNode","title","modelValue","searchValue","$event","placeholder","$t","onClick","showFilter","name","filters","onClose","onFetchData","onExpandPanelClick","_createCommentVNode","exportLoading","data","columns","default","_withCtx","disabled","exportTableToExcel","_createBlock","_","_normalizeStyle","height","_toDisplayString","loading","_renderList","manualChanges","manualChange","i","owner","username","entityName","createdAtFormatted","entityType","fieldName","oldValue","newValue","row","col","length","pagination","totalItems","current","total","pageSize","onPageChanged","defineComponent","components","SearchInput","defineAsyncComponent","FilterPanel","TableGhost","Pagination","PageTitle","BaseIcon","setup","v$","useVuelidate","label","this","field","sortFields","currentSort","sort","model","dataLoading","fetchDataOnExpand","dataRequested","actionName","type","calendarType","mounted","document","documentElement","clientHeight","addEventListener","computed","$store","getters","entityTypes","methods","event","stopPropagation","params","pageNumber","$route","query","export","Number","Object","assign","search","dispatch","ManualChangesActions","FETCH_MANUAL_CHANGES","then","res","button","getElementById","map","request","userName","createdAt","setTimeout","click","clickSort","currentSortName","el","queries","router","push","orderBy","eventName","FETCH_ENTITY_TYPES","watch","val","immediate","handler","JSON","parse","stringify","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,EAAQ,CAAC,CAAC,SAASjJ,GAAQ,CAAC,YAAY,qBAE1E,gB,2DCTf","file":"js/chunk-5f72db44.83fb4e7f.js","sourcesContent":["import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withCtx as _withCtx, toDisplayString as _toDisplayString, renderList as _renderList, Fragment as _Fragment, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-1fa5bb71\"),n=n(),_popScopeId(),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\" }\nconst _hoisted_4 = { class: \"flex justify-between\" }\nconst _hoisted_5 = { class: \"relative h-42 w-288 me-3\" }\nconst _hoisted_6 = { class: \"w-full\" }\nconst _hoisted_7 = { key: 0 }\nconst _hoisted_8 = { class: \"flex justify-end mb-2 relative\" }\nconst _hoisted_9 = {\n key: 0,\n class: \"w-full h-full absolute top-0 left-0 right-0 bottom-0 bg-red overflow-hidden z-50\"\n}\nconst _hoisted_10 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"button\", { id: \"excel-export\" }, null, -1))\nconst _hoisted_11 = [\"disabled\"]\nconst _hoisted_12 = {\n key: 1,\n class: \"spinner\"\n}\nconst _hoisted_13 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"span\", { class: \"ms-2\" }, \"Export\", -1))\nconst _hoisted_14 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"15%\"}\n}\nconst _hoisted_15 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"14%\"}\n}\nconst _hoisted_16 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"14%\"}\n}\nconst _hoisted_17 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"14%\"}\n}\nconst _hoisted_18 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"15%\"}\n}\nconst _hoisted_19 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"14%\"}\n}\nconst _hoisted_20 = {\n class: \"bg-white opacity-100 z-40\",\n style: {\"width\":\"14%\"}\n}\nconst _hoisted_21 = { key: 0 }\nconst _hoisted_22 = {\n key: 0,\n class: \"text-center text-darkText text-lg px-4 mt-32 font-bold\"\n}\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_BaseIcon = _resolveComponent(\"BaseIcon\")!\n const _component_FilterPanel = _resolveComponent(\"FilterPanel\")!\n const _component_vue_excel_xlsx = _resolveComponent(\"vue-excel-xlsx\")!\n const _component_TableGhost = _resolveComponent(\"TableGhost\")!\n const _component_Pagination = _resolveComponent(\"Pagination\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n _createElementVNode(\"div\", _hoisted_1, [\n _createVNode(_component_PageTitle, { title: \"manualChanges.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 modelValue: _ctx.searchValue,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.searchValue) = $event)),\n placeholder: _ctx.$t('placeholders.entitySearch')\n }, null, 8, [\"modelValue\", \"placeholder\"])\n ]),\n _createElementVNode(\"button\", {\n onClick: _cache[1] || (_cache[1] = ($event: any) => (_ctx.showFilter = true)),\n class: \"border border-inputBorder w-42 h-42\"\n }, [\n _createElementVNode(\"span\", _hoisted_6, [\n _createVNode(_component_BaseIcon, { name: \"filter\" })\n ])\n ]),\n (_ctx.showFilter)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createVNode(_component_FilterPanel, {\n filters: _ctx.filters,\n onClose: _cache[2] || (_cache[2] = ($event: any) => (_ctx.showFilter = false)),\n onFetchData: _cache[3] || (_cache[3] = ($event: any) => (_ctx.onExpandPanelClick($event)))\n }, null, 8, [\"filters\"])\n ]))\n : _createCommentVNode(\"\", true)\n ])\n ]),\n _createElementVNode(\"div\", _hoisted_8, [\n (_ctx.exportLoading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_9))\n : _createCommentVNode(\"\", true),\n _createVNode(_component_vue_excel_xlsx, {\n data: _ctx.data,\n columns: _ctx.columns,\n \"file-name\": 'workshift-report',\n \"file-type\": 'xlsx',\n \"sheet-name\": 'sheetname'\n }, {\n default: _withCtx(() => [\n _hoisted_10,\n _createElementVNode(\"button\", {\n disabled: _ctx.exportLoading,\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.exportTableToExcel($event))),\n class: \"flex items-center primary px-4 py-2.5 w-140 justify-center\"\n }, [\n (!_ctx.exportLoading)\n ? (_openBlock(), _createBlock(_component_BaseIcon, {\n key: 0,\n name: \"file-white\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.exportLoading)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_12))\n : _createCommentVNode(\"\", true),\n _hoisted_13\n ], 8, _hoisted_11)\n ]),\n _: 1\n }, 8, [\"data\", \"columns\"])\n ])\n ])\n ]),\n _createElementVNode(\"div\", {\n class: \"px-5 tableFixHead\",\n style: _normalizeStyle({height: _ctx.height + 'px'})\n }, [\n _createElementVNode(\"table\", null, [\n _createElementVNode(\"thead\", null, [\n _createElementVNode(\"tr\", null, [\n _createElementVNode(\"th\", _hoisted_14, _toDisplayString(_ctx.$t('table.userName')), 1),\n _createElementVNode(\"th\", _hoisted_15, _toDisplayString(_ctx.$t('table.entityName')), 1),\n _createElementVNode(\"th\", _hoisted_16, _toDisplayString(_ctx.$t('table.createdAt')), 1),\n _createElementVNode(\"th\", _hoisted_17, _toDisplayString(_ctx.$t('table.entityType')), 1),\n _createElementVNode(\"th\", _hoisted_18, _toDisplayString(_ctx.$t('table.fieldName')), 1),\n _createElementVNode(\"th\", _hoisted_19, _toDisplayString(_ctx.$t('table.oldValue')), 1),\n _createElementVNode(\"th\", _hoisted_20, _toDisplayString(_ctx.$t('table.newValue')), 1)\n ])\n ]),\n (!_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"tbody\", _hoisted_21, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.manualChanges, (manualChange, i) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: i + 'manual-change'\n }, [\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.owner?.username ?? ''), 1),\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.entityName), 1),\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.createdAtFormatted), 1),\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.entityType), 1),\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.fieldName), 1),\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.oldValue), 1),\n _createElementVNode(\"td\", null, _toDisplayString(manualChange.newValue), 1)\n ]))\n }), 128))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.loading)\n ? (_openBlock(), _createBlock(_component_TableGhost, {\n key: 1,\n \"col-margin\": \"my-0\",\n row: 10,\n col: 6\n }))\n : _createCommentVNode(\"\", true)\n ]),\n (!_ctx.manualChanges.length && !_ctx.loading)\n ? (_openBlock(), _createElementBlock(\"p\", _hoisted_22, _toDisplayString(_ctx.$t('validation.noItemsToShow')), 1))\n : _createCommentVNode(\"\", true)\n ], 4),\n (_ctx.pagination && _ctx.pagination.totalItems)\n ? (_openBlock(), _createBlock(_component_Pagination, {\n key: 0,\n current: _ctx.current,\n total: _ctx.pagination.totalItems,\n \"page-range\": 2,\n \"per-page\": _ctx.pagination.pageSize,\n onPageChanged: _cache[5] || (_cache[5] = ($event: any) => (_ctx.current = $event)),\n \"text-before-input\": \"Go to page\"\n }, null, 8, [\"current\", \"total\", \"per-page\"]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","\nimport { defineAsyncComponent, defineComponent } from 'vue'\nimport router from '@/router'\nimport { PaginationInterface } from '@/shared/interfaces/pagination.interface'\nimport useVuelidate from '@vuelidate/core'\nimport { ManualChangesActions } from '@/store/modules/manual-changes/actions'\nimport { ManualChangesInterface } from '@/shared/interfaces/manual-changes.interface'\n\nexport default defineComponent({\n components: {\n SearchInput: defineAsyncComponent(() => import('@/shared/components/SearchInput.vue')),\n FilterPanel: defineAsyncComponent(() => import('@/shared/components/filter/FilterPanel.vue')),\n TableGhost: defineAsyncComponent(() => import('@/shared/components/ghosts/TableGhost.vue')),\n Pagination: defineAsyncComponent(() => import('@/shared/components/Pagination.vue')),\n PageTitle: defineAsyncComponent(() => import('@/shared/components/PageTitle.vue')),\n BaseIcon: defineAsyncComponent(() => import('@/shared/components/base-icon/BaseIcon.vue'))\n },\n setup: () => ({ v$: useVuelidate() }),\n data () {\n return {\n data: [],\n columns: [\n {\n label: this.$t('table.userName'),\n field: 'userName'\n },\n {\n label: this.$t('table.entityName'),\n field: 'entityName'\n },\n {\n label: this.$t('table.createdAt'),\n field: 'createdAt'\n },\n {\n label: this.$t('table.entityType'),\n field: 'entityType'\n },\n {\n label: this.$t('table.fieldName'),\n field: 'fieldName'\n },\n {\n label: this.$t('table.oldValue'),\n field: 'oldValue'\n },\n {\n label: this.$t('table.newValue'),\n field: 'newValue'\n }\n ],\n exportLoading: false,\n showFilter: false,\n sortFields: [\n { id: 'created_at', currentSort: false, sort: null },\n { id: 'last_login', currentSort: false, sort: null }\n ],\n height: 400,\n current: 1,\n searchValue: null as any,\n filters: [\n {\n name: this.$t('filters.entityTypes'),\n model: 'entityType',\n dataLoading: true,\n fetchDataOnExpand: true,\n dataRequested: false,\n actionName: 'fetchEntityTypes',\n type: 'radio',\n data: []\n },\n { name: this.$t('filters.entityId'), model: 'entityId', type: 'number' },\n { name: this.$t('filters.date'), model: 'date', type: 'date', calendarType: 'range' }\n ]\n }\n },\n mounted () {\n this.height = document.documentElement.clientHeight - 280\n addEventListener('resize', () => {\n this.height = document.documentElement.clientHeight - 280\n })\n },\n computed: {\n manualChanges (): ManualChangesInterface[] {\n return this.$store.getters['manualChanges/getManualChanges']\n },\n pagination (): PaginationInterface {\n return this.$store.getters['manualChanges/getPagination']\n },\n loading (): boolean {\n return this.$store.getters['manualChanges/getLoading']\n },\n entityTypes (): any {\n return this.$store.getters['manualChanges/getEntityTypes']\n }\n },\n methods: {\n exportTableToExcel (event: any) {\n event.stopPropagation()\n this.exportLoading = true\n const params = { pageSize: 10, pageNumber: this.$route.query.pageNumber || 100, export: true }\n this.current = this.$route.query.pageNumber ? Number(this.$route.query.pageNumber) : 1\n if (this.searchValue) {\n Object.assign(params, { search: this.searchValue })\n }\n this.$store.dispatch(`manualChanges/${ManualChangesActions.FETCH_MANUAL_CHANGES}`, params).then((res: any) => {\n const button = document.getElementById('excel-export')\n this.data = res.data.map((request: any) => {\n return {\n userName: request?.owner?.username ?? '',\n entityName: request.entityName,\n createdAt: request.createdAtFormatted,\n entityType: request.entityType,\n fieldName: request.fieldName,\n oldValue: request.oldValue,\n newValue: request.newValue\n }\n })\n this.exportLoading = false\n if (button) {\n setTimeout(() => {\n button.click()\n }, 200)\n }\n })\n },\n clickSort (field: any, currentSortName: string): void {\n this.sortFields.map((el: any) => {\n if (el.id === currentSortName) {\n el.currentSort = true\n if (el.sort === null) {\n el.sort = 'asc'\n } else if (el.sort === 'asc') {\n el.sort = 'desc'\n } else if (el.sort === 'desc') {\n el.sort = null\n }\n } else {\n el.currentSort = false\n el.sort = null\n }\n return el\n })\n const queries = this.$route.query\n router.push({ query: { ...queries, orderBy: field.id, sort: field.sort } })\n },\n onExpandPanelClick (eventName: string): void {\n if (eventName === 'fetchEntityTypes') {\n this.$store.dispatch(`manualChanges/${ManualChangesActions.FETCH_ENTITY_TYPES}`)\n }\n }\n },\n watch: {\n current (val) {\n router.push({ query: { ...this.$route.query, pageNumber: val } })\n },\n searchValue (val) {\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 === 'ManualChanges') {\n this.current = this.$route.query.pageNumber ? Number(this.$route.query.pageNumber) : 1\n if (val.query.search) {\n this.searchValue = val.query.search\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(`manualChanges/${ManualChangesActions.FETCH_MANUAL_CHANGES}`, params)\n }\n }\n },\n entityTypes (val: any) {\n if (!val?.length) return\n const filterItems = val.map((el: any) => {\n return {\n id: el.name,\n label: el.value\n }\n })\n const target = this.filters[0]\n target.data = filterItems\n target.dataRequested = true\n target.dataLoading = false\n }\n }\n})\n","import { render } from \"./ManualChanges.vue?vue&type=template&id=1fa5bb71&scoped=true&ts=true\"\nimport script from \"./ManualChanges.vue?vue&type=script&lang=ts\"\nexport * from \"./ManualChanges.vue?vue&type=script&lang=ts\"\n\nimport \"./ManualChanges.vue?vue&type=style&index=0&id=1fa5bb71&scoped=true&lang=css\"\n\nimport exportComponent from \"/usr/src/app/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-1fa5bb71\"]])\n\nexport default __exports__","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/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./ManualChanges.vue?vue&type=style&index=0&id=1fa5bb71&scoped=true&lang=css\""],"sourceRoot":""}