{"version":3,"sources":["webpack:///./src/components/ApiCredentialsTable.vue?f04a","webpack:///./src/components/ApiCredentialsForm.vue?efea","webpack:///./src/views/Settings/ApiCredentials.vue?fa23","webpack:///./src/components/ApiCredentialsTable.vue?9738","webpack:///./src/components/ApiCredentialsForm.vue?9f5b","webpack:///./src/shared/models/apiCredential.ts","webpack:///./src/components/ApiCredentialsForm.vue","webpack:///./src/components/ApiCredentialsForm.vue?6bd6","webpack:///./src/components/ApiCredentialsForm.vue?24dd","webpack:///./src/components/ApiCredentialsTable.vue","webpack:///./src/components/ApiCredentialsTable.vue?63ba","webpack:///./src/components/ApiCredentialsTable.vue?2cfb","webpack:///./src/views/Settings/ApiCredentials.vue","webpack:///./src/views/Settings/ApiCredentials.vue?345e","webpack:///./src/views/Settings/ApiCredentials.vue?327f","webpack:///./src/views/Settings/ApiCredentials.vue?4531"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","key","sensitiveKey","class","$vuetify","breakpoint","xsOnly","staticRenderFns","attrs","loading","headers","list","result","count","options","settingsOpen","on","$event","rowDoubleClick","scopedSlots","_u","fn","ref","header","text","stopPropagation","model","value","filters","callback","$$v","$set","expression","item","copyTemplate","id","apiKey","_v","_s","proxy","_g","_b","openItemDetails","$t","deleteItem","length","_e","addItem","apiCredentialFormOpen","apiCredentialId","userList","load","open","initialApiCredential","apiCredential","isFormValid","$emit","theme","dark","submitDisabled","saving","save","close","name","fkey","rules","required","maxLength","staticStyle","idApiKey","x","username","businessUnits","fresh","old","loadApiCredential","max","v","$refs","form","rightDrawer","clickOverlay","axios","get","then","res","data","finally","update","post","$store","dispatch","color","message","timeout","localize","refresh","put","Function","navigator","clipboard","writeText","default","components","RightDrawer","NoData","component","VAutocomplete","VBtn","VCol","VForm","VIcon","VProgressLinear","VRow","VSelect","VTextField","VToolbar","active","exportHeaders","sortable","userTenantUsername","businessUnitName","page","itemsPerPage","sortBy","sortDesc","groupBy","groupDesc","multiSort","mustSort","val","debouncedLoad","initLoaded","params","queryParams","loadUsers","$skip","$top","$orderby","map","$count","e","includes","actions","fun","deleteItemConfirm","delete","deep","GenericPMSTableMenu","SortableHeadersTable","ApiCredentialForm","directives","SortableTable","VList","VListItem","VListItemContent","VListItemIcon","VListItemTitle","VMenu","ApiCredentialsTable","mixins","GlobalFilterSensitiveMixin"],"mappings":"2IAAA,W,oFCAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,sBAAsB,CAACG,IAAIP,EAAIQ,aAAaF,YAAY,wBAAwBG,MAAOT,EAAIU,SAASC,WAAWC,OAAS,UAAW,MAAQ,IAC9QC,EAAkB,G,4DCDlB,EAAS,WAAa,IAAIb,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,uBAAuB,CAACE,YAAY,sBAAsBQ,MAAM,CAAC,eAAe,GAAG,OAAS,OAAO,WAAW,KAAK,QAAUd,EAAIe,QAAQ,QAAUf,EAAIgB,QAAQ,MAAQhB,EAAIiB,KAAKC,OAAO,sBAAsBlB,EAAIiB,KAAKE,MAAM,QAAUnB,EAAIoB,QAAQ,eAAe,CAAE,yBAA0B,CAAC,GAAI,GAAI,GAAI,MAAO,aAAepB,EAAIqB,aAAa,UAAY,kBAAkBC,GAAG,CAAC,iBAAiB,SAASC,GAAQvB,EAAIgB,QAAQO,GAAQ,iBAAiB,SAASA,GAAQvB,EAAIoB,QAAQG,GAAQ,sBAAsB,SAASA,GAAQvB,EAAIqB,aAAaE,GAAQ,uBAAuB,SAASA,GAAQvB,EAAIqB,aAAaE,GAAQ,eAAevB,EAAIwB,gBAAgBC,YAAYzB,EAAI0B,GAAG,CAAC,CAACnB,IAAI,cAAcoB,GAAG,SAASC,GACl0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IAAMC,GAEzCzC,KAAK+F,OAAOC,SAAS,mBAAoB,CACvCC,MAAO,UACPC,QAASlG,KAAKgD,GAAG,yBACjBmD,QAAS,UA7NA,GAAkC,QAsD/C,gBADC,eAAM,UAAW,CAAEqD,MAAM,K,2BAMzB,MAiBD,gBADC,eAAM,UAAW,CAAEA,MAAM,K,2BAMzB,MAjFkB,EAAmB,gBAXvC,eAAU,CACT5C,WAAY,CACV6C,sBAAA,KACAC,uBAAA,KACAC,kBAAA,EACA7C,SAAA,MAEF8C,WAAY,CACVC,cAAA,WAGiB,WC1IyX,I,wECQ1Y,GAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,MAIa,MAAiB,QAahC,IAAkB,GAAW,CAAC5C,OAAA,KAAKG,QAAA,KAAM0C,QAAA,KAAMC,YAAA,KAAUC,iBAAA,OAAiBC,gBAAA,KAAcC,eAAA,OAAeC,QAAA,KAAM3C,aAAA,O,iBCdxF,GAAN,qIAA6B,QAAvB,GAAc,gBARlC,eAAU,CACTZ,WAAY,CACVwD,oBAAA,IAEFC,OAAQ,CACNC,GAAA,SAGiB,cClBsY,MCQvZ,I,UAAY,eACd,GACAxK,EACAc,GACA,EACA,KACA,WACA,OAIa,gB,2CCnBf","file":"js/chunk-dd9f89e4.e4261253.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentialsTable.vue?vue&type=style&index=0&id=2106bb60&scoped=true&lang=css&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentialsForm.vue?vue&type=style&index=0&id=435d0491&scoped=true&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tax-rates\"},[_c('ApiCredentialsTable',{key:_vm.sensitiveKey,staticClass:\"api-credentials-table\",class:(_vm.$vuetify.breakpoint.xsOnly ? 'xs mt-4' :'' )})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"apiCredentials\"},[_c('SortableHeadersTable',{staticClass:\"apiCredentialsTable\",attrs:{\"fixed-header\":\"\",\"height\":\"100%\",\"item-key\":\"id\",\"loading\":_vm.loading,\"headers\":_vm.headers,\"items\":_vm.list.result,\"server-items-length\":_vm.list.count,\"options\":_vm.options,\"footer-props\":{ 'items-per-page-options': [15, 25, 50, 100] },\"settingsOpen\":_vm.settingsOpen,\"tableName\":\"apiCredentials\"},on:{\"update:headers\":function($event){_vm.headers=$event},\"update:options\":function($event){_vm.options=$event},\"update:settingsOpen\":function($event){_vm.settingsOpen=$event},\"update:settings-open\":function($event){_vm.settingsOpen=$event},\"dblclick:row\":_vm.rowDoubleClick},scopedSlots:_vm._u([{key:\"header.name\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-text-field',{staticClass:\"header-filter\",attrs:{\"label\":header.text},on:{\"click\":function($event){$event.stopPropagation();}},model:{value:(_vm.filters.name),callback:function ($$v) {_vm.$set(_vm.filters, \"name\", $$v)},expression:\"filters.name\"}})]}},{key:\"item.id\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-btn',{attrs:{\"icon\":\"\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.copyTemplate(item.id, item.apiKey)}}},[_c('v-icon',{attrs:{\"size\":\"18\",\"color\":\"primary\"}},[_vm._v(\"fal fa-copy\")])],1),_vm._v(\" \"+_vm._s(item.id + '|' + item.apiKey)+\" \")]}},{key:\"header.userTenantUsername\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-text-field',{staticClass:\"header-filter\",attrs:{\"label\":header.text},on:{\"click\":function($event){$event.stopPropagation();}},model:{value:(_vm.filters.userTenantUsername),callback:function ($$v) {_vm.$set(_vm.filters, \"userTenantUsername\", $$v)},expression:\"filters.userTenantUsername\"}})]}},{key:\"header.businessUnitName\",fn:function(ref){\nvar header = ref.header;\nreturn [_c('v-text-field',{staticClass:\"header-filter\",attrs:{\"label\":header.text},on:{\"click\":function($event){$event.stopPropagation();}},model:{value:(_vm.filters.businessUnitName),callback:function ($$v) {_vm.$set(_vm.filters, \"businessUnitName\", $$v)},expression:\"filters.businessUnitName\"}})]}},{key:\"header.actions\",fn:function(){return [_c('v-btn',{ref:\"settings\",attrs:{\"icon\":\"\"},on:{\"click\":function($event){_vm.settingsOpen = true}}},[_c('v-icon',[_vm._v(\"fal fa-fw fa-cog\")])],1)]},proxy:true},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('v-menu',{attrs:{\"bottom\":\"\",\"left\":\"\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nvar attrs = ref.attrs;\nreturn [_c('v-btn',_vm._g(_vm._b({attrs:{\"small\":\"\",\"icon\":\"\"}},'v-btn',attrs,false),on),[_c('v-icon',[_vm._v(\"fal fa-fw fa-ellipsis-v\")])],1)]}}],null,true)},[_c('v-list',[_c('v-list-item',{on:{\"click\":function($event){return _vm.openItemDetails(item)}}},[_c('v-list-item-icon',[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"color\":\"primary\"}},[_vm._v(\"fal fa-pen\")])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t(\"Edit\")))])],1)],1),_c('v-list-item',{attrs:{\"disabled\":_vm.loading},on:{\"click\":function($event){return _vm.deleteItem(item)}}},[_c('v-list-item-icon',[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\",\"color\":\"red\"}},[_vm._v(\"fal fa-trash\")])],1),_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(_vm._s(_vm.$t(\"Delete\")))])],1)],1)],1)],1)]}},{key:\"body.append\",fn:function(){return [((!_vm.list.result || _vm.list.result.length == 0) && !_vm.loading)?_c('td',{attrs:{\"colspan\":_vm.headers.length}},[_c('NoData',{attrs:{\"icon\":\"fas fa-briefcase\"}})],1):_vm._e()]},proxy:true}])}),_c('v-btn',{staticClass:\"add-button\",attrs:{\"fab\":\"\",\"color\":\"primary\"},on:{\"click\":function($event){return _vm.addItem()}}},[_c('v-icon',[_vm._v(\"fal fa-plus\")])],1),_c('ApiCredentialForm',{attrs:{\"open\":_vm.apiCredentialFormOpen,\"apiCredentialId\":_vm.apiCredentialId,\"userList\":_vm.userList.result},on:{\"update:open\":function($event){_vm.apiCredentialFormOpen=$event},\"callback\":_vm.load}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('RightDrawer',{ref:\"drawer\",staticClass:\"drawer\",attrs:{\"open\":_vm.open,\"initial\":_vm.initialApiCredential,\"watched\":_vm.apiCredential,\"is-watched-valid\":_vm.isFormValid},on:{\"update:open\":function($event){return _vm.$emit('update:open', $event)}},scopedSlots:_vm._u([{key:\"append\",fn:function(){return [_c('div',{staticClass:\"api-credentials-form-actions\",class:{ 'theme--dark': _vm.$vuetify.theme.dark }},[_c('v-btn',{attrs:{\"color\":\"primary\",\"disabled\":!_vm.submitDisabled,\"loading\":_vm.saving},on:{\"click\":_vm.save}},[_vm._v(_vm._s(_vm.$t(\"Save\")))]),_c('v-btn',{on:{\"click\":_vm.close}},[_vm._v(_vm._s(_vm.$t(\"Close\")))])],1)]},proxy:true}])},[_c('v-toolbar',[_c('div',{staticClass:\"api-credentials-form-title\"},[(!!_vm.apiCredential.id)?_c('span',[_vm._v(_vm._s(_vm.$t(\"ApiCredentials.Editing\") + \" - \")+\" \"+_vm._s(_vm.initialApiCredential.name))]):_vm._e(),(!(_vm.apiCredential.id))?_c('span',[_vm._v(_vm._s(_vm.$t(\"ApiCredentials.New\")))]):_vm._e()])]),_c('v-progress-linear',{attrs:{\"indeterminate\":\"\",\"active\":_vm.loading,\"bottom\":\"\"}}),_c('v-form',{key:_vm.fkey,ref:\"form\",staticClass:\"form\",attrs:{\"disabled\":_vm.loading},model:{value:(_vm.isFormValid),callback:function ($$v) {_vm.isFormValid=$$v},expression:\"isFormValid\"}},[_c('div',{staticClass:\"form-items\"},[_c('v-row',[_c('v-col',{attrs:{\"lg\":\"6\",\"md\":\"6\",\"sm\":\"12\"}},[_c('v-text-field',{attrs:{\"label\":_vm.$t('ApiCredentials.Name') + '*',\"rules\":[_vm.rules.required, _vm.maxLength(120)]},model:{value:(_vm.apiCredential.name),callback:function ($$v) {_vm.$set(_vm.apiCredential, \"name\", $$v)},expression:\"apiCredential.name\"}})],1)],1),_c('v-row',[(_vm.apiCredential.id)?_c('v-col',{attrs:{\"cols\":\"10\"}},[_c('v-text-field',{attrs:{\"label\":_vm.$t('ApiCredentials.IdApiKey'),\"disabled\":\"\"},model:{value:(_vm.apiCredential.idApiKey),callback:function ($$v) {_vm.$set(_vm.apiCredential, \"idApiKey\", $$v)},expression:\"apiCredential.idApiKey\"}})],1):_vm._e(),(_vm.apiCredential.id)?_c('v-col',{attrs:{\"cols\":\"2\"}},[_c('span',{staticStyle:{\"padding\":\"12px\",\"display\":\"flex\"}},[_c('v-btn',{on:{\"click\":function($event){$event.stopPropagation();return _vm.copyTemplate(_vm.apiCredential.idApiKey)}}},[_vm._v(\" \"+_vm._s(_vm.$t(\"Copy\"))+\" \"),_c('span',{staticStyle:{\"padding-left\":\"5px\"}},[_c('v-icon',{attrs:{\"dense\":\"\",\"color\":\"primary\"}},[_vm._v(\"fal fa-copy\")])],1)])],1)]):_vm._e(),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-autocomplete',{attrs:{\"item-text\":function (x) { return x.username; },\"item-value\":function (x) { return x.id; },\"label\":_vm.$t('ApiCredentials.UserTenant'),\"items\":_vm.userList,\"clearable\":\"\"},model:{value:(_vm.apiCredential.userTenantId),callback:function ($$v) {_vm.$set(_vm.apiCredential, \"userTenantId\", $$v)},expression:\"apiCredential.userTenantId\"}})],1),_c('v-col',{attrs:{\"cols\":\"6\"}},[_c('v-select',{attrs:{\"label\":_vm.$t('ApiCredentials.BusinessUnit'),\"items\":_vm.businessUnits,\"item-value\":\"id\",\"item-text\":\"name\",\"clearable\":\"\"},model:{value:(_vm.apiCredential.businessUnitId),callback:function ($$v) {_vm.$set(_vm.apiCredential, \"businessUnitId\", $$v)},expression:\"apiCredential.businessUnitId\"}})],1)],1)],1)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export type ApiCredential = {\n id: string;\n name: string;\n apiKey: string;\n tenantId: number;\n userTenantId: number;\n userTenantUsername: string;\n businessUnitId: number;\n businessUnitName: string;\n}\n\nexport class ApiCredentialModel {\n id = \"\";\n name = \"\";\n apiKey = \"\";\n idApiKey = \"\";\n userTenantId = null;\n businessUnitId = null;\n}","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch, Prop, Ref } from \"vue-property-decorator\";\nimport RightDrawer from \"@/components/misc/RightDrawer.vue\";\nimport * as _ from \"lodash\";\nimport NoData from \"@/components/misc/NoData.vue\";\nimport { ApiCredentialModel } from \"@/shared/models/apiCredential\";\nimport UserViewModel from \"@/shared/models/userModel\";\nimport { ListModel } from \"@/shared/models/listModel\";\nimport { BusinessUnit } from \"@/shared/models/businessUnit\";\nimport { Getter } from \"vuex-class\";\n\n@Component({\n components: {\n RightDrawer,\n NoData,\n }\n})\n\nexport default class ApiCredentialsForm extends Vue {\n @Prop({ default: false }) open!: boolean;\n @Prop() apiCredentialId?: string | null;\n @Prop() callback!: () => any;\n @Prop() userList?: ListModel | null;\n\n @Getter(\"businessUnit/availableBusinessUnits\")\n businessUnits?: BusinessUnit[];\n\n fkey = 0;\n\n loading = false;\n saving = false;\n initialApiCredential = new ApiCredentialModel();\n apiCredential = new ApiCredentialModel();\n\n pickedUser = null as number | null;\n\n @Watch(\"open\")\n async openWatch(fresh: boolean, old: boolean) {\n if (fresh && !old) {\n this.fkey++;\n }\n\n if (fresh && this.apiCredentialId) {\n await this.loadApiCredential()\n this.initialApiCredential = _.cloneDeep(this.apiCredential)\n } else {\n this.apiCredential = new ApiCredentialModel();\n this.initialApiCredential = _.cloneDeep(this.apiCredential);\n }\n }\n\n get rules() {\n return {\n required: (value: any) => !!value || value === 0 || this.$t(\"Validation.Required\")\n }\n }\n maxLength(max: number) {\n return (v: string) =>\n v.length <= max ? true : this.$t(\"Validation.MaxLength\", { count: max });\n }\n\n isFormValid = false;\n get submitDisabled(): boolean {\n return this.isFormValid && !this.loading;\n }\n\n get form(): Vue & { validate: () => boolean } {\n return this.$refs.form as Vue & { validate: () => boolean };\n }\n\n @Ref(\"drawer\") rightDrawer?: RightDrawer;\n\n close() {\n this.rightDrawer?.clickOverlay();\n }\n\n async loadApiCredential() {\n this.loading = true;\n await Vue.axios\n .get(\"/apiCredentials/\" + this.apiCredentialId)\n .then((res) => {\n this.apiCredential = res.data;\n this.initialApiCredential = _.cloneDeep(this.apiCredential)\n this.apiCredential.idApiKey = this.apiCredential.id + \"|\" + this.apiCredential.apiKey;\n })\n .finally(() => {\n this.loading = false;\n })\n }\n async save() {\n if (this.apiCredential.id){\n await this.update();\n return;\n }\n\n await this.axios\n .post(\"/apiCredentials\", {...this.apiCredential})\n .then(() => {\n this.initialApiCredential = _.cloneDeep(this.apiCredential);\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"ApiCredentials.SaveSuccess\"),\n timeout: 5000,\n localize: true\n })\n this.$emit(\"update:open\", false);\n this.$emit(\"callback\");\n })\n .finally(() => {\n this.refresh();\n })\n }\n\n async update() {\n await this.axios\n .put(\"/apiCredentials\", {...this.apiCredential})\n .then(() => {\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"ApiCredentials.SaveSuccess\"),\n timeout: 5000,\n localize: true\n });\n this.$emit(\"update:open\", false);\n this.$emit(\"callback\");\n })\n .finally(() => {\n this.refresh();\n })\n }\n\n refresh() {\n if (this.callback instanceof Function){\n this.callback();\n }\n }\n \n copyTemplate(idApiKey: string) {\n navigator.clipboard.writeText(idApiKey);\n\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"LinkCopiedToClipboard\"),\n timeout: 5000\n });\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentialsForm.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentialsForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ApiCredentialsForm.vue?vue&type=template&id=435d0491&scoped=true&\"\nimport script from \"./ApiCredentialsForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./ApiCredentialsForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ApiCredentialsForm.vue?vue&type=style&index=0&id=435d0491&scoped=true&lang=scss&\"\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 \"435d0491\",\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 { VCol } from 'vuetify/lib/components/VGrid';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSelect } from 'vuetify/lib/components/VSelect';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\ninstallComponents(component, {VAutocomplete,VBtn,VCol,VForm,VIcon,VProgressLinear,VRow,VSelect,VTextField,VToolbar})\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Watch } from \"vue-property-decorator\";\nimport GenericPMSTableMenu from \"@/components/generic-pms-table/GenericPMSTableMenu.vue\";\nimport { SortableTableHeader } from \"@/components/generic-pms-table/SortableTableDirective\";\nimport SortableTable from \"@/components/generic-pms-table/SortableTableDirective\";\nimport SortableHeadersTable from \"@/components/generic-pms-table/SortableHeadersTable.vue\";\nimport ApiCredentialForm from \"@/components/ApiCredentialsForm.vue\";\nimport { ListModel } from \"@/shared/models/listModel\";\nimport { DataOptions } from \"vuetify\";\nimport { formatOrderbyArray } from \"@/shared/sortHelperFunctions\";\nimport { Notification } from \"../store/modules/notifications\";\nimport * as _ from \"lodash\";\nimport NoData from \"@/components/misc/NoData.vue\";\nimport { ApiCredential } from \"@/shared/models/apiCredential\";\nimport UserViewModel from \"@/shared/models/userModel\";\n\n@Component({\n components: {\n GenericPMSTableMenu,\n SortableHeadersTable,\n ApiCredentialForm,\n NoData\n },\n directives: {\n SortableTable,\n },\n})\nexport default class ApiCredentialsTable extends Vue {\n settingsOpen = false;\n\n headers: SortableTableHeader[] = [\n {\n text: \"ApiCredentials.Name\",\n value: \"name\",\n active: true,\n default: false,\n class: \"resize-header\",\n exportHeaders: [],\n },\n {\n text: \"ApiCredentials.IdApiKey\",\n value: \"id\",\n active: true,\n default: false,\n class: \"resize-header\",\n exportHeaders: [],\n },\n {\n text: \"ApiCredentials.UserTenant\",\n value: \"userTenantUsername\",\n active: true,\n default: false,\n class: \"resize-header\",\n exportHeaders: [],\n },\n {\n text: \"ApiCredentials.BusinessUnit\",\n value: \"businessUnitName\",\n active: true,\n default: false,\n class: \"resize-header\",\n exportHeaders: [],\n },\n {\n text: \"Actions\",\n value: \"actions\",\n sortable: false,\n active: true,\n default: true,\n class: \"resize-header\",\n exportHeaders: [],\n },\n ];\n\n filters = {\n name: \"\",\n userTenantUsername: \"\",\n businessUnitName: \"\"\n };\n\n @Watch(\"filters\", { deep: true })\n watchFilters(val: any, old: any) {\n if (_.isEqual(val, old)) {\n this.options.page = 1;\n this.debouncedLoad();\n }\n }\n\n debouncedLoad = _.debounce(this.load, 500);\n\n options: DataOptions = {\n page: 1,\n itemsPerPage: 15,\n sortBy: [\"name\"],\n sortDesc: [],\n groupBy: [],\n groupDesc: [],\n multiSort: false,\n mustSort: true,\n };\n\n initLoaded = false;\n @Watch(\"options\", { deep: true })\n watchOptions(fresh: DataOptions, old: DataOptions) {\n if (!this.initLoaded || !_.isEqual(fresh, old)) {\n this.initLoaded = true;\n this.load();\n }\n }\n\n loading = true;\n list: ListModel = {\n count: 0,\n result: [],\n };\n\n async load(): Promise> {\n this.loading = true;\n \n return (\n this.axios\n .get>(\"/ApiCredentials\", {\n params: this.queryParams,\n })\n .then((res) => {\n this.list = res.data;\n return this.list;\n })\n .finally(() => {\n this.loading = false;\n this.loadUsers();\n })\n );\n }\n\n get queryParams() {\n return {\n $skip: this.options.itemsPerPage * (this.options.page - 1),\n $top: this.options.itemsPerPage,\n $orderby: formatOrderbyArray(\n this.options.sortBy,\n this.options.sortDesc.map((x) => !x)\n ),\n $count: true,\n ...this.filters,\n };\n }\n\n userList: ListModel = {\n count: 0,\n result: [],\n };\n\n async loadUsers(): Promise> {\n this.loading = true;\n return this.axios\n .get>(\"/users\")\n .then((res) => {\n this.userList = res.data;\n return this.userList;\n })\n .finally(() => (this.loading = false));\n }\n\n apiCredentialFormOpen = false;\n apiCredentialId: string | null = null;\n\n rowDoubleClick(e: MouseEvent, { item }: { item: ApiCredential }) {\n this.openItemDetails(item);\n }\n async openItemDetails(item: ApiCredential) {\n this.apiCredentialId = item.id\n this.apiCredentialFormOpen = true;\n }\n\n addItem() {\n this.apiCredentialId = null;\n this.apiCredentialFormOpen = true;\n }\n\n deleteItem(item: ApiCredential) {\n if(item.name.includes('iCal')){\n this.$store.dispatch(\"showNotification\", {\n color: \"warning\",\n message: this.$t(\"ApiKey.iCal.DeleteApiKeyWarning\") + ' ' + this.$t(\"DeleteConfirmation\") + ` '${item?.name}'? `,\n actions: [\n {\n text: this.$t(\"Delete\"),\n fun: () => {\n this.deleteItemConfirm(item.id);\n return true;\n },\n },\n {\n text: this.$t(\"Cancel\"),\n fun: () => {\n return true;\n }\n }\n ],\n timeout: 30000,\n } as Notification);\n }\n else{\n this.$store.dispatch(\"showNotification\", {\n color: \"warning\",\n message: this.$t(\"DeleteConfirmation\") + ` '${item?.name}'?`,\n actions: [\n {\n text: this.$t(\"Delete\"),\n fun: () => {\n this.deleteItemConfirm(item.id);\n return true;\n },\n },\n {\n text: this.$t(\"Cancel\"),\n fun: () => {\n return true;\n }\n }\n ],\n timeout: 30000,\n } as Notification);\n }\n }\n\n deleteItemConfirm(id: string) {\n Vue.axios\n .delete(`/ApiCredentials/${id}`)\n .then(() => {\n this.$store.dispatch(\"showNotification\",{\n color: \"success\",\n message: this.$t(\"ApiCredentials.DeleteSuccess\"),\n timeout: 5000,\n } as Notification);\n })\n .finally(() => {\n this.load();\n });\n }\n\n copyTemplate(id: string, apiKey: string) {\n navigator.clipboard.writeText(id + \"|\" + apiKey);\n\n this.$store.dispatch(\"showNotification\", {\n color: \"success\",\n message: this.$t(\"LinkCopiedToClipboard\"),\n timeout: 5000\n });\n }\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentialsTable.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentialsTable.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ApiCredentialsTable.vue?vue&type=template&id=2106bb60&scoped=true&\"\nimport script from \"./ApiCredentialsTable.vue?vue&type=script&lang=ts&\"\nexport * from \"./ApiCredentialsTable.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ApiCredentialsTable.vue?vue&type=style&index=0&id=2106bb60&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 \"2106bb60\",\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 { VList } from 'vuetify/lib/components/VList';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemIcon } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VMenu } from 'vuetify/lib/components/VMenu';\nimport { VTextField } from 'vuetify/lib/components/VTextField';\ninstallComponents(component, {VBtn,VIcon,VList,VListItem,VListItemContent,VListItemIcon,VListItemTitle,VMenu,VTextField})\n","\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport ApiCredentialsTable from \"@/components/ApiCredentialsTable.vue\";\nimport GlobalFilterSensitiveMixin from '@/mixins/GlobalFilterSensitiveMixin';\n\n@Component({\n components: {\n ApiCredentialsTable\n },\n mixins: [\n GlobalFilterSensitiveMixin\n ]\n})\nexport default class ApiCredentials extends Vue {}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentials.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentials.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ApiCredentials.vue?vue&type=template&id=6dcb9f94&scoped=true&\"\nimport script from \"./ApiCredentials.vue?vue&type=script&lang=ts&\"\nexport * from \"./ApiCredentials.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ApiCredentials.vue?vue&type=style&index=0&id=6dcb9f94&scoped=true&lang=scss&\"\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 \"6dcb9f94\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ApiCredentials.vue?vue&type=style&index=0&id=6dcb9f94&scoped=true&lang=scss&\""],"sourceRoot":""}