{"version":3,"sources":["webpack:///./src/components/fonts/_Fonts.vue?2201","webpack:///./src/components/fonts/fields/fontFields.ts","webpack:///./src/components/fonts/validators.ts","webpack:///./src/components/fonts/modals/FontDeleteModal.vue?8fee","webpack:///./src/components/fonts/modals/FontDeleteModal.vue","webpack:///./src/components/fonts/modals/FontDeleteModal.vue?b80a","webpack:///./src/components/fonts/modals/FontDeleteModal.vue?ad22","webpack:///./src/components/fonts/modals/FontAlreadyExistsModal.vue?b3db","webpack:///./src/components/fonts/modals/FontAlreadyExistsModal.vue","webpack:///./src/components/fonts/modals/FontAlreadyExistsModal.vue?1b4e","webpack:///./src/components/fonts/modals/FontAlreadyExistsModal.vue?4563","webpack:///./src/components/fonts/modals/SelectValidFontTypeModal.vue?98f0","webpack:///./src/components/fonts/modals/SelectValidFontTypeModal.vue","webpack:///./src/components/fonts/modals/SelectValidFontTypeModal.vue?b734","webpack:///./src/components/fonts/modals/SelectValidFontTypeModal.vue?6c2b","webpack:///./src/components/fonts/_Fonts.vue","webpack:///./src/components/fonts/_Fonts.vue?2433","webpack:///./src/components/fonts/_Fonts.vue?afb7","webpack:///./src/components/fonts/_Fonts.vue?f483","webpack:///./src/directives/validate.ts","webpack:///./src/components/fonts/_Fonts.vue?edef","webpack:///./node_modules/guid-typescript/dist/guid.js","webpack:///./src/services/fonts/types.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","model","value","callback","$$v","searchText","expression","on","$event","preventDefault","editFont","openFileSelection","ref","onFilesChanged","addNewFont","fields","filteredData","rowClass","sortChanged","scopedSlots","_u","key","fn","scope","row","item","id","selectedRow","domProps","status","toggleActive","directives","name","rawName","validators","state","$set","_e","technicalName","message","displayName","getFontType","modifiers","editRow","saveFont","deleteFont","class","cancelEditing","length","onFontDelete","staticRenderFns","fontFields","label","i18n","t","tdClass","sortable","addFontValidators","set","rules","type","Required","removeFontValidators","delete","removeEvent","confirm","decline","proxy","localFont","FontDeleteModal","isSaved","e","window","removeEventListener","handleEnter","$bvModal","show","addEventListener","hide","$emit","component","FontAlreadyExistsModal","SelectValidFontTypeModal","localFonts","tmpNewFile","sorting","loadFonts","hasFile","toLowerCase","sort","a","b","localeCompare","forEach","x","font","create","toString","Active","substr","indexOf","unshift","duplicate","some","$refs","fontExistsModal","open","formData","FormData","append","JSON","stringify","then","fileInput","find","splice","fontDeleteModal","Disabled","click","event","target","files","fontType","validFontTypeModal","val","history","go","fonts","filter","includes","sortBy","sortDesc","reverse","components","validate","bind","element","binding","vNode","componentContext","context","el","property","matchRule","Confirm","confirmProperty","response","update","unbind","exports","__esModule","Guid","guid","TypeError","EMPTY","isGuid","validator","test","gen","join","createEmpty","parse","raw","count","out","i","Math","random","substring","prototype","equals","other","isEmpty","toJSON","RegExp","FontStatusEnum"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,SAAS,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,kCAAkC,CAACF,EAAG,KAAK,CAACA,EAAG,MAAM,CAACE,YAAY,UAAUC,MAAM,CAAC,QAAU,gBAAgB,CAACH,EAAG,MAAM,CAACG,MAAM,CAAC,aAAa,mBAAmBP,EAAIQ,GAAG,IAAIR,EAAIS,GAAGT,EAAIU,GAAG,gBAAgB,WAAWN,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,eAAe,CAACE,YAAY,+BAA+BC,MAAM,CAAC,YAAcP,EAAIU,GAAG,kBAAkBC,MAAM,CAACC,MAAOZ,EAAc,WAAEa,SAAS,SAAUC,GAAMd,EAAIe,WAAWD,GAAKE,WAAW,gBAAgBZ,EAAG,SAAS,CAACE,YAAY,wBAAwBC,M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KG,OAE/BH,EAAKkB,UAAUxE,SAAW,WACtB,OAAO1G,KAAKW,OAEhBqJ,EAAKkB,UAAUI,OAAS,WACpB,MAAO,CACH3K,MAAOX,KAAKW,QAGpBqJ,EAAKK,UAAY,IAAIkB,OAAO,iEAAkE,KAC9FvB,EAAKG,MAAQ,uCACNH,EApDc,GAsDzBF,EAAQE,KAAOA,G,gFC/Cf,IAAYwB,EAAZ,2CAAYA,GACR,0BACA,8BAFJ,CAAYA,MAAc","file":"js/chunk-0a39a3fa.0c9456a3.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('header',{staticClass:\"page-header\"},[_c('div',{staticClass:\"d-flex justify-content-between\"},[_c('h2',[_c('svg',{staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#fonts-icon\"}})]),_vm._v(\" \"+_vm._s(_vm.$t(\"fonts.title\"))+\" \")])])]),_c('div',[_c('div',{staticClass:\"table-top-actions\"},[_c('div',{staticClass:\"actions-btn-wrapper\"},[_c('div',{staticClass:\"content-search\"},[_c('b-form-input',{staticClass:\"form-control form-control-sm\",attrs:{\"placeholder\":_vm.$t('common.search')},model:{value:(_vm.searchText),callback:function ($$v) {_vm.searchText=$$v},expression:\"searchText\"}}),_c('button',{staticClass:\"search-btn btn btn-sm\",attrs:{\"type\":\"submit\"}},[_c('svg',{staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#search-icon\"}})])]),_c('button',{staticClass:\"search-clear btn btn-sm\",attrs:{\"type\":\"submit\"},on:{\"mousedown\":function($event){$event.preventDefault();_vm.searchText = ''}}},[_c('svg',{staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#close-icon\"}})])])],1),_c('div',{staticClass:\"file-container\"},[_c('b-button',{attrs:{\"disabled\":_vm.editFont,\"variant\":\"primary\"},on:{\"click\":_vm.openFileSelection}},[_vm._v(_vm._s(_vm.$t(\"fonts.uploadFont\")))]),_c('input',{ref:\"fileInput\",staticClass:\"file-input\",attrs:{\"type\":\"file\"},on:{\"change\":_vm.onFilesChanged}})],1),_c('b-button',{attrs:{\"type\":\"submit\",\"variant\":\"primary\",\"disabled\":_vm.editFont},on:{\"click\":_vm.addNewFont}},[_vm._v(_vm._s(_vm.$t(\"fonts.newFont\")))])],1)])]),_c('div',{staticClass:\"table-wrapper custom-scrollbar darkScroll-grayBg\"},[_c('b-table',{staticClass:\"thead-sticky\",attrs:{\"table-class\":\"font-table\",\"fields\":_vm.fields,\"sort-by\":\"technicalName\",\"no-local-sorting\":\"\",\"items\":_vm.filteredData,\"tbody-tr-class\":_vm.rowClass,\"responsive\":\"sm\",\"show-empty\":\"\"},on:{\"sort-changed\":_vm.sortChanged},scopedSlots:_vm._u([{key:\"empty\",fn:function(scope){return [_c('h4',{staticClass:\"text-center\"},[_vm._v(_vm._s(_vm.$t(\"common.emptyTable\")))])]}},{key:\"cell(status)\",fn:function(row){return [_c('div',{staticClass:\"custom-control custom-switch\"},[_c('input',{staticClass:\"custom-control-input\",attrs:{\"id\":'checkbox' + row.item.id,\"type\":\"checkbox\",\"disabled\":!!(_vm.editFont && _vm.selectedRow !== row.item.id)},domProps:{\"checked\":row.item.status},on:{\"click\":function($event){return _vm.toggleActive(row.item)}}}),_c('label',{staticClass:\"custom-control-label\",attrs:{\"for\":'checkbox' + row.item.id}})])]}},{key:\"cell(technicalName)\",fn:function(row){return [(_vm.editFont && _vm.selectedRow === row.item.id)?_c('b-form-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(row.item.technicalName),expression:\"row.item.technicalName\"}],staticClass:\"vsc-font-input\",attrs:{\"id\":(\"technicalName-\" + (row.item.id)),\"state\":_vm.validators[(\"technicalName-\" + (row.item.id))].state},model:{value:(row.item.technicalName),callback:function ($$v) {_vm.$set(row.item, \"technicalName\", $$v)},expression:\"row.item.technicalName\"}}):_vm._e(),(!(_vm.editFont && _vm.selectedRow === row.item.id))?_c('label',[_vm._v(_vm._s(row.item.technicalName))]):_vm._e(),_c('b-form-invalid-feedback',[_vm._v(_vm._s(_vm.validators[(\"technicalName-\" + (row.item.id))].message))])]}},{key:\"cell(displayName)\",fn:function(row){return [(_vm.editFont && _vm.selectedRow === row.item.id)?_c('b-form-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:(row.item.displayName),expression:\"row.item.displayName\"}],staticClass:\"vsc-font-input\",attrs:{\"id\":(\"displayName-\" + (row.item.id)),\"state\":_vm.validators[(\"displayName-\" + (row.item.id))].state},model:{value:(row.item.displayName),callback:function ($$v) {_vm.$set(row.item, \"displayName\", $$v)},expression:\"row.item.displayName\"}}):_vm._e(),(!(_vm.editFont && _vm.selectedRow === row.item.id))?_c('label',[_vm._v(_vm._s(row.item.displayName))]):_vm._e(),_c('b-form-invalid-feedback',[_vm._v(_vm._s(_vm.validators[(\"displayName-\" + (row.item.id))].message))])]}},{key:\"cell(type)\",fn:function(row){return [_c('div',[_vm._v(_vm._s(_vm.getFontType(row.item)))])]}},{key:\"cell(actions)\",fn:function(row){return [_c('div',{staticClass:\"d-flex justify-content-end\"},[(!_vm.editFont)?_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"btn-only-icon d-inline-flex ml-3 mb-2\",attrs:{\"disabled\":!!(_vm.editFont && _vm.selectedRow !== row.item.id),\"title\":_vm.$t('common.edit')},on:{\"click\":function($event){return _vm.editRow(row.item.id)}}},[_c('svg',{staticClass:\"vc-icon ver-ar\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#pen-icon\"}})])]):_vm._e(),(_vm.editFont && _vm.selectedRow === row.item.id)?_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"btn-only-icon btn-secondary\",attrs:{\"title\":_vm.$t('common.save')},on:{\"click\":function($event){return _vm.saveFont(row.item)}}},[_c('svg',{staticClass:\"vc-icon_lg fill-white\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#check-icon\"}})])]):_vm._e(),(!_vm.editFont)?_c('b-button',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"btn-only-icon\",attrs:{\"disabled\":_vm.editFont && _vm.selectedRow === row.item.id,\"title\":_vm.$t('common.delete')},on:{\"click\":function($event){return _vm.deleteFont(row.item.id)}}},[_c('svg',{class:_vm.editFont && _vm.selectedRow === row.item.id ? 'vc-icon_lg fill-white' : 'vc-icon_lg',attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#delete-icon\"}})])]):_vm._e(),(_vm.editFont && _vm.selectedRow === row.item.id)?_c('b-button',{staticClass:\"remove-reverse-btn btn-only-icon ml-2\",on:{\"click\":function($event){return _vm.cancelEditing(row.item.id)}}},[_c('svg',{directives:[{name:\"b-tooltip\",rawName:\"v-b-tooltip.hover\",modifiers:{\"hover\":true}}],staticClass:\"vc-icon\",attrs:{\"viewBox\":\"0 0 100 100\",\"title\":_vm.$t('common.remove')}},[_c('use',{attrs:{\"xlink:href\":\"#plus-icon\"}})])]):_vm._e()],1)]}}])}),_c('div',{staticClass:\"result-counter\"},[_vm._v(\" \"+_vm._s(_vm.filteredData.length)+\" \"+_vm._s(_vm.filteredData.length > 1 || _vm.filteredData.length === 0 ? _vm.$t(\"common.resultMany\") : _vm.$t(\"common.resultSingle\"))+\" \")])],1),_c('FontDeleteModal',{ref:\"fontDeleteModal\",on:{\"deleteFont\":_vm.onFontDelete}}),_c('FontAlreadyExistsModal',{ref:\"fontExistsModal\"}),_c('SelectValidFontTypeModal',{ref:\"validFontTypeModal\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import i18n from \"@/i18n\";\r\n\r\nexport const fontFields = [\r\n {\r\n key: \"status\",\r\n label: \"\"\r\n },\r\n {\r\n key: \"technicalName\",\r\n label: i18n.t(\"fonts.technicalName\"),\r\n tdClass: \"td-sm\",\r\n sortable: true\r\n },\r\n {\r\n key: \"displayName\",\r\n label: i18n.t(\"fonts.displayName\"),\r\n tdClass: \"td-sm\",\r\n sortable: true\r\n },\r\n {\r\n key: \"type\",\r\n label: i18n.t(\"fonts.type\"),\r\n tdClass: \"td-sm\",\r\n sortable: true\r\n },\r\n {\r\n key: \"actions\",\r\n label: \"\"\r\n }];\r\n","import { ValidationModel, ValidationType } from \"@/services/validation/types\";\r\nimport { Vue } from \"vue-property-decorator\";\r\n\r\nexport function addFontValidators(validators: any, id: string) {\r\n Vue.set(validators,\r\n `technicalName-${id}`,\r\n { rules: [{ type: ValidationType.Required }] } as ValidationModel);\r\n Vue.set(validators,\r\n `displayName-${id}`,\r\n { rules: [{ type: ValidationType.Required }] } as ValidationModel);\r\n}\r\n\r\nexport function removeFontValidators(validators: any, id: string) {\r\n Vue.delete(validators,\r\n `technicalName-${id}`);\r\n Vue.delete(validators,\r\n `displayName-${id}`);\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{attrs:{\"centered\":\"\",\"id\":\"modal-deleteFont\"},on:{\"hide\":_vm.removeEvent},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.confirm}},[_vm._v(_vm._s(_vm.$t(\"common.btnYes\")))]),_c('b-button',{attrs:{\"variant\":\"dark\"},on:{\"click\":_vm.decline}},[_vm._v(_vm._s(_vm.$t(\"common.btnNo\")))])]},proxy:true}])},[_c('div',{staticClass:\"confirmation-modal-body\"},[_c('svg',{staticClass:\"vc-icon_xl ver-ar fill-danger\",attrs:{\"viewBox\":\"0 0 100 100\"}},[_c('use',{attrs:{\"xlink:href\":\"#delete-icon\"}})]),_c('h2',[_vm._v(_vm._s(_vm.$t(\"fonts.deleteFontPrompt\"))+\" \\\"\"+_vm._s(this.localFont.displayName)+\"\\\"?\")]),_c('small',[_vm._v(_vm._s(_vm.$t(\"common.deleteDescription\")))])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { Font } from \"@/services/fonts/types\";\r\n\r\n @Component\r\nexport default class FontDeleteModal extends Vue {\r\n // local\r\n localFont = {} as Font;\r\n isSaved: boolean = false;\r\n\r\n // methods\r\n handleEnter(e: KeyboardEvent) {\r\n if (e.key === \"Enter\") this.confirm();\r\n }\r\n\r\n removeEvent() {\r\n window.removeEventListener(\"keydown\", this.handleEnter);\r\n this.isSaved = false;\r\n }\r\n\r\n open(item: Font) {\r\n this.localFont = item;\r\n this.$bvModal.show(\"modal-deleteFont\");\r\n window.addEventListener(\"keydown\", this.handleEnter);\r\n }\r\n\r\n decline() {\r\n this.$bvModal.hide(\"modal-deleteFont\");\r\n }\r\n\r\n confirm() {\r\n if (this.isSaved) return;\r\n this.isSaved = true;\r\n this.$emit(\"deleteFont\", this.localFont);\r\n this.$bvModal.hide(\"modal-deleteFont\");\r\n }\r\n}\r\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!./FontDeleteModal.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!./FontDeleteModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FontDeleteModal.vue?vue&type=template&id=7d1f170b&scoped=true&\"\nimport script from \"./FontDeleteModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./FontDeleteModal.vue?vue&type=script&lang=ts&\"\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 \"7d1f170b\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{attrs:{\"centered\":\"\",\"id\":\"modal-FontAlreadyExists\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.confirm}},[_vm._v(_vm._s(_vm.$t(\"common.ok\")))])]},proxy:true}])},[_c('div',{staticClass:\"confirmation-modal-body\"},[_c('h2',[_vm._v(_vm._s(_vm.$t(\"fonts.fontExistsPrefix\"))+\" \"+_vm._s(_vm.$t(\"fonts.technicalName\"))+\" \\\"\"+_vm._s(this.localFont.displayName)+\"\\\" \"+_vm._s(_vm.$t(\"fonts.displayName\"))+\" \\\"\"+_vm._s(this.localFont.displayName)+\"\\\" \"+_vm._s(_vm.$t(\"fonts.fontExistsSufix\")))])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { Font } from \"@/services/fonts/types\";\r\n\r\n @Component\r\nexport default class FontAlreadyExistsModal extends Vue {\r\n // local\r\n localFont = {} as Font;\r\n\r\n // methods\r\n handleEnter(e: KeyboardEvent) {\r\n if (e.key === \"Enter\") this.confirm();\r\n }\r\n\r\n removeEvent() {\r\n window.removeEventListener(\"keydown\", this.handleEnter);\r\n }\r\n\r\n open(item: Font) {\r\n this.localFont = item;\r\n this.$bvModal.show(\"modal-FontAlreadyExists\");\r\n window.addEventListener(\"keydown\", this.handleEnter);\r\n }\r\n\r\n confirm() {\r\n this.$bvModal.hide(\"modal-FontAlreadyExists\");\r\n }\r\n}\r\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!./FontAlreadyExistsModal.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!./FontAlreadyExistsModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FontAlreadyExistsModal.vue?vue&type=template&id=667b8918&scoped=true&\"\nimport script from \"./FontAlreadyExistsModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./FontAlreadyExistsModal.vue?vue&type=script&lang=ts&\"\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 \"667b8918\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('b-modal',{attrs:{\"centered\":\"\",\"id\":\"modal-ValidFontType\"},scopedSlots:_vm._u([{key:\"modal-footer\",fn:function(){return [_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.confirm}},[_vm._v(_vm._s(_vm.$t(\"common.ok\")))])]},proxy:true}])},[_c('div',{staticClass:\"confirmation-modal-body\"},[_c('h2',[_vm._v(_vm._s(_vm.$t(\"fonts.selectValidFont\")))])])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport { Font } from \"@/services/fonts/types\";\r\n\r\n @Component\r\nexport default class SelectValidFontTypeModal extends Vue {\r\n // local\r\n localFont = {} as Font;\r\n\r\n // methods\r\n handleEnter(e: KeyboardEvent) {\r\n if (e.key === \"Enter\") this.confirm();\r\n }\r\n\r\n removeEvent() {\r\n window.removeEventListener(\"keydown\", this.handleEnter);\r\n }\r\n\r\n open(item: Font) {\r\n this.localFont = item;\r\n this.$bvModal.show(\"modal-ValidFontType\");\r\n window.addEventListener(\"keydown\", this.handleEnter);\r\n }\r\n\r\n confirm() {\r\n this.$bvModal.hide(\"modal-ValidFontType\");\r\n }\r\n}\r\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!./SelectValidFontTypeModal.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!./SelectValidFontTypeModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SelectValidFontTypeModal.vue?vue&type=template&id=289a9a97&scoped=true&\"\nimport script from \"./SelectValidFontTypeModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./SelectValidFontTypeModal.vue?vue&type=script&lang=ts&\"\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 \"289a9a97\",\n null\n \n)\n\nexport default component.exports","\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\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\n// types\r\nimport { Font, FontStatusEnum } from \"@/services/fonts/types\";\r\nimport { fontFields } from \"@/components/fonts/fields/fontFields\";\r\nimport { Guid } from \"guid-typescript\";\r\n// validation\r\nimport validate from \"@/directives/validate\";\r\nimport { addFontValidators, removeFontValidators } from \"@/components/fonts/validators\";\r\nimport { validateForm } from \"@/services/validation/validationService\";\r\n// services\r\nimport { changeStatus, deleteFont, getAllFonts, saveFont, LoadCustomWebFonts } from \"@/services/fonts/fontsService\";\r\n// components\r\nimport FontDeleteModal from \"@/components/fonts/modals/FontDeleteModal.vue\";\r\nimport FontAlreadyExistsModal from \"@/components/fonts/modals/FontAlreadyExistsModal.vue\";\r\nimport SelectValidFontTypeModal from \"@/components/fonts/modals/SelectValidFontTypeModal.vue\";\r\n\r\n@Component({\r\n components: {\r\n FontDeleteModal,\r\n FontAlreadyExistsModal,\r\n SelectValidFontTypeModal\r\n },\r\n directives: {\r\n validate\r\n }\r\n})\r\nexport default class Fonts extends Vue {\r\n // local\r\n localFonts = [] as Font[];\r\n fields = fontFields;\r\n validators = {};\r\n searchText = \"\";\r\n editFont = false;\r\n selectedRow = \"\";\r\n private tmpNewFile: File = {} as File;\r\n sorting = {} as any;\r\n\r\n // lifecycle hooks\r\n created() {\r\n this.loadFonts();\r\n }\r\n\r\n // computed\r\n get filteredData() {\r\n const fonts = this.localFonts.filter(\r\n x => (this.searchText === \"\" ? true : x.displayName.toLowerCase().includes(this.searchText.toLowerCase()) ||\r\n x.technicalName.toLowerCase().includes(this.searchText.toLowerCase())));\r\n\r\n if (!this.editFont) {\r\n if (!this.sorting.sortBy) fonts.sort((a: Font, b: Font) => a.technicalName.localeCompare(b.technicalName));\r\n else {\r\n fonts.sort((a: any, b: any) => a[this.sorting.sortBy].localeCompare(b[this.sorting.sortBy]));\r\n if (this.sorting.sortDesc) fonts.reverse();\r\n }\r\n }\r\n return fonts;\r\n }\r\n\r\n getFontType(item: Font) {\r\n if (item.hasFile && item.type) {\r\n switch (item.type.toLowerCase()) {\r\n case \".woff2\":\r\n return \"Webfont .WOFF2\";\r\n case \".ttf\":\r\n return \"Webfont .TTF\";\r\n case \".woff\":\r\n return \"Webfont .WOFF\";\r\n default:\r\n return \"\";\r\n }\r\n }\r\n return \"\";\r\n }\r\n\r\n // methods\r\n async loadFonts() {\r\n this.localFonts = await getAllFonts();\r\n this.tmpNewFile = {} as File;\r\n this.localFonts.sort((a, b) => a.technicalName.localeCompare(b.technicalName)).forEach(x => addFontValidators(this.validators, x.id));\r\n }\r\n\r\n addNewFont() {\r\n this.editFont = true;\r\n const font = {} as Font;\r\n font.id = Guid.create().toString();\r\n this.selectedRow = font.id;\r\n font.status = FontStatusEnum.Active;\r\n if (this.tmpNewFile.type || this.tmpNewFile.name) {\r\n font.technicalName = this.tmpNewFile.name.substr(0, this.tmpNewFile.name.indexOf(\".\"));\r\n font.displayName = this.tmpNewFile.name.substr(0, this.tmpNewFile.name.indexOf(\".\"));\r\n font.hasFile = true;\r\n }\r\n addFontValidators(this.validators, font.id);\r\n this.localFonts.unshift(font);\r\n }\r\n\r\n async saveFont(item: Font) {\r\n const duplicate = this.localFonts.some(x => (x.displayName === item.displayName || x.technicalName === item.technicalName) && x.id !== item.id);\r\n if (duplicate) {\r\n (this.$refs.fontExistsModal as any).open(item);\r\n }\r\n if (!await validateForm([this.validators]) || duplicate) return;\r\n this.editFont = false;\r\n const formData = new FormData();\r\n formData.append(\"file\", this.tmpNewFile);\r\n formData.append(\"model\", JSON.stringify(item));\r\n saveFont(formData).then(() => {\r\n this.loadFonts();\r\n this.tmpNewFile = {} as File;\r\n (this.$refs.fileInput as any).value = null;\r\n LoadCustomWebFonts();\r\n });\r\n }\r\n\r\n async deleteFont(id: string) {\r\n this.editFont = false;\r\n this.tmpNewFile = {} as File;\r\n const item = this.localFonts.find(x => x.id === id);\r\n if (!item) return;\r\n if (!await validateForm([this.validators])) {\r\n this.localFonts.splice(this.localFonts.indexOf(item), 1);\r\n return;\r\n }\r\n (this.$refs.fontDeleteModal as any).open(item);\r\n }\r\n\r\n cancelEditing(id: string) {\r\n this.editFont = false;\r\n this.tmpNewFile = {} as File;\r\n (this.$refs.fileInput as any).value = null;\r\n this.loadFonts();\r\n }\r\n\r\n onFontDelete(item: Font) {\r\n this.localFonts.splice(this.localFonts.indexOf(item), 1);\r\n deleteFont(item.id).then(() => {\r\n removeFontValidators(this.validators, item.id);\r\n this.loadFonts();\r\n });\r\n }\r\n\r\n toggleActive(item: Font) {\r\n item.status = item.status === FontStatusEnum.Active ? FontStatusEnum.Disabled : FontStatusEnum.Active;\r\n changeStatus(item).then(() => this.loadFonts());\r\n }\r\n\r\n editRow(id: string) {\r\n this.editFont = true;\r\n this.selectedRow = id;\r\n }\r\n\r\n rowClass(item: Font, type: string) {\r\n return type === \"row\" && item.id === this.selectedRow && this.editFont ? \"b-table-row-selected table-active\" : \"\";\r\n }\r\n\r\n openFileSelection(): void {\r\n (this.$refs.fileInput as any).click();\r\n }\r\n\r\n onFilesChanged(event: any) {\r\n if (!event.target.files[0]) return;\r\n this.tmpNewFile = event.target.files[0];\r\n const fontType = this.tmpNewFile.name.substr(this.tmpNewFile.name.indexOf(\".\") + 1).toLowerCase();\r\n if (fontType === \"woff\" || fontType === \"woff2\" || fontType === \"ttf\") {\r\n this.addNewFont();\r\n } else {\r\n (this.$refs.validFontTypeModal as any).open();\r\n this.tmpNewFile = {} as File;\r\n }\r\n }\r\n\r\n sortChanged(val: any) {\r\n this.sorting = val;\r\n }\r\n\r\n back() {\r\n window.history.go(-1);\r\n }\r\n}\r\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!./_Fonts.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!./_Fonts.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./_Fonts.vue?vue&type=template&id=3c31bf50&scoped=true&\"\nimport script from \"./_Fonts.vue?vue&type=script&lang=ts&\"\nexport * from \"./_Fonts.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./_Fonts.vue?vue&type=style&index=0&id=3c31bf50&lang=scss&scoped=true&\"\nimport style1 from \"./_Fonts.vue?vue&type=style&index=1&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 \"3c31bf50\",\n null\n \n)\n\nexport default component.exports","import mod 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!./_Fonts.vue?vue&type=style&index=0&id=3c31bf50&lang=scss&scoped=true&\"; export default mod; 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!./_Fonts.vue?vue&type=style&index=0&id=3c31bf50&lang=scss&scoped=true&\"","import { DirectiveOptions } from \"vue\";\r\nimport { Vue } from \"vue-property-decorator\";\r\nimport { validateValue } from \"@/services/validation/validationService\";\r\nimport { ValidationType } from \"@/services/validation/types\";\r\n\r\nconst validate: DirectiveOptions = {\r\n bind(element, binding, vNode) {\r\n const componentContext = vNode.context as any;\r\n const el = element as HTMLInputElement;\r\n\r\n if (!componentContext || !componentContext.validators) return;\r\n\r\n const property = componentContext.validators[el.id];\r\n if (!property || !property.rules) return;\r\n\r\n Vue.set(property, \"value\", binding.value);\r\n Vue.set(property, \"active\", true);\r\n\r\n element.addEventListener(\"input\", (event) => {\r\n Vue.set(property, \"value\", el.value);\r\n\r\n if (binding.value && binding.value.confirm) {\r\n const matchRule = (property.rules as any[]).find(x => x.type === ValidationType.Confirm);\r\n const confirmProperty = componentContext.validators[binding.value.confirm];\r\n matchRule.value = confirmProperty.value;\r\n }\r\n validateValue(property).then(response => {\r\n Vue.set(property, \"message\", response.message);\r\n Vue.set(property, \"state\", response.state);\r\n });\r\n });\r\n },\r\n // we use update for setting the value of already populated form fields\r\n update(element, binding, vNode) {\r\n const componentContext = vNode.context as any;\r\n const property = componentContext.validators[element.id];\r\n Vue.set(property, \"value\", binding.value);\r\n },\r\n unbind(element, binding, vNode) {\r\n const componentContext = vNode.context as any;\r\n const property = componentContext.validators[element.id];\r\n Vue.set(property, \"state\", null);\r\n Vue.set(property, \"message\", \"\");\r\n Vue.set(property, \"value\", \"\");\r\n Vue.set(property, \"active\", false);\r\n }\r\n};\r\n\r\nexport default validate;\r\n","import mod 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!./_Fonts.vue?vue&type=style&index=1&lang=scss&\"; export default mod; 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!./_Fonts.vue?vue&type=style&index=1&lang=scss&\"","\"use strict\";\r\nexports.__esModule = true;\r\nvar Guid = /** @class */ (function () {\r\n function Guid(guid) {\r\n if (!guid) {\r\n throw new TypeError(\"Invalid argument; `value` has no value.\");\r\n }\r\n this.value = Guid.EMPTY;\r\n if (guid && Guid.isGuid(guid)) {\r\n this.value = guid;\r\n }\r\n }\r\n Guid.isGuid = function (guid) {\r\n var value = guid.toString();\r\n return guid && (guid instanceof Guid || Guid.validator.test(value));\r\n };\r\n Guid.create = function () {\r\n return new Guid([Guid.gen(2), Guid.gen(1), Guid.gen(1), Guid.gen(1), Guid.gen(3)].join(\"-\"));\r\n };\r\n Guid.createEmpty = function () {\r\n return new Guid(\"emptyguid\");\r\n };\r\n Guid.parse = function (guid) {\r\n return new Guid(guid);\r\n };\r\n Guid.raw = function () {\r\n return [Guid.gen(2), Guid.gen(1), Guid.gen(1), Guid.gen(1), Guid.gen(3)].join(\"-\");\r\n };\r\n Guid.gen = function (count) {\r\n var out = \"\";\r\n for (var i = 0; i < count; i++) {\r\n // tslint:disable-next-line:no-bitwise\r\n out += (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\r\n }\r\n return out;\r\n };\r\n Guid.prototype.equals = function (other) {\r\n // Comparing string `value` against provided `guid` will auto-call\r\n // toString on `guid` for comparison\r\n return Guid.isGuid(other) && this.value === other.toString();\r\n };\r\n Guid.prototype.isEmpty = function () {\r\n return this.value === Guid.EMPTY;\r\n };\r\n Guid.prototype.toString = function () {\r\n return this.value;\r\n };\r\n Guid.prototype.toJSON = function () {\r\n return {\r\n value: this.value\r\n };\r\n };\r\n Guid.validator = new RegExp(\"^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$\", \"i\");\r\n Guid.EMPTY = \"00000000-0000-0000-0000-000000000000\";\r\n return Guid;\r\n}());\r\nexports.Guid = Guid;\r\n","export interface Font {\r\n id: string,\r\n technicalName: string,\r\n displayName: string,\r\n status: FontStatusEnum,\r\n hasFile: boolean;\r\n type: string;\r\n}\r\n\r\nexport enum FontStatusEnum {\r\n Active = 1,\r\n Disabled = 0\r\n}\r\n"],"sourceRoot":""}