{"version":3,"sources":["webpack:///../../../src/components/VTextField/index.ts","webpack:///../../../src/components/VForm/VForm.ts","webpack:///./node_modules/vuetify/src/components/VFileInput/VFileInput.sass?4095","webpack:///./src/components/treeSelects/AreaTreeSelect.vue?e901","webpack:///./src/components/treeSelects/AreaTreeSelect.vue","webpack:///./src/components/treeSelects/AreaTreeSelect.vue?d6d2","webpack:///./src/components/treeSelects/AreaTreeSelect.vue?a38b","webpack:///./src/util/area/areautil.ts","webpack:///./src/store/modules/subscriberModule.ts","webpack:///./src/util/imageconverter.ts","webpack:///./src/components/users/Details.vue?b139","webpack:///./src/components/users/Details.vue","webpack:///./src/components/users/Details.vue?23ec","webpack:///./src/components/users/Details.vue?36bc","webpack:///./src/components/shared/CustomFileInput.vue?9c60","webpack:///./src/components/shared/CustomFileInput.vue","webpack:///./src/components/shared/CustomFileInput.vue?f359","webpack:///../../../src/components/VFileInput/VFileInput.ts","webpack:///./src/components/shared/CustomFileInput.vue?0545"],"names":["VTextField","mixins","BindsAttrs","RegistrableProvide","extend","name","provide","form","inheritAttrs","props","disabled","Boolean","lazyValidation","readonly","value","data","inputs","watchers","errorBag","watch","handler","val","errors","Object","values","includes","$emit","deep","immediate","methods","watchInput","input","watcher","$watch","$set","_uid","valid","shouldValidate","hasOwnProperty","validate","filter","length","reset","forEach","resetErrorBag","setTimeout","resetValidation","register","push","unregister","found","find","i","unwatch","$delete","render","h","staticClass","attrs","novalidate","attrs$","on","submit","e","$slots","default","AreaTreeSelect","Vue","treeNodesWatcher","nodes","generateTree","areaTreeNodes","map","area","id","mappedObj","selected","getInitialSelection","getObjectsByKeyValue","subAreas","subArea","onSelectionChange","areasSelected","getAreasFromNodes","initialSelection","customAreas","areaModule","useSubAreas","featureModule","__decorate","Prop","prototype","Watch","Component","components","difference","a","b","xa","some","xb","synchronizeAreas","subscription","existingAreas","newAreas","Promise","reject","toCreate","subscriptionModule","addAreaToSubscription","subscriptionId","toDelete","removeAreaFromSubscription","toCreate2","flatMap","s","xs","c","addSubAreaToSubscription","toDelete2","d","removeSubAreaFromSubscription","all","then","areas","node","copyArea","mergedID","subNode","copySubArea","getAreaFromNode","showInParkAdmin","updateShowInParkadminProp","areasSelection","initialAreas","areasCopy","assign","create","AreaRequest","SubAreaRequest","SubscriberModule","VuexModule","getSubscriber","subscriber","getSubscribers","subscribers","getCount","totalRecords","fetchSubscribers","request","statusModule","updateLoading","apiClient","subscribersGET","pageNumber","pageSize","sortOrderAsc","orderBy","search","includeInactive","context","commit","err","console","error","fetchSubscriberById","subscriberId","subscribersGET2","response","catch","notificationModule","SHOW_NOTIFICATION","message","t","criticality","Criticality","Error","updateSubscriber","updateDispatch","subscribersPUT","authenticationModule","getCustomerId","subscriberType","dispatch","Success","deleteSubscriber","subscribersDELETE","activateSubscriber","activate","active","hasBeenMasked","createSubscriber","createdSubscriber","person","SubscriberPersonRequest","address1","address2","city","email","externalCostumerID","firstName","lastName","phoneNumber","phonenumber","recieveNewsLetter","zipcode","zipCode","created","undefined","company","SubscriberCompanyRequest","cvr","attPersonName","SET_SUBSCRIBERS","SET_SUBSCRIBER","SET_PAGECOUNT","pagecount","SET_LOADING","loading","Action","rawError","Mutation","Module","dynamic","store","namespaced","subscriberModule","getModule","convertFileToBase64","logo","resolve","reader","FileReader","readAsDataURL","onload","result","readUploadedFileAsText","inputFile","temporaryFileReader","onerror","abort","DOMException","getFileBase64String","file","base64String","encodedString","split","Details","InputType","paramsWatcher","userId","parseInt","$route","params","userModule","fetchUser","userStemData","subscriberID","fetchAffiliationConfiguration","useSubareas","onAreasChange","list","affiliationConfiguration","onBackClick","$router","back","goTo","setHeaderLogo","$refs","userDetailsForm","fileContents","headerLogo","setFooterLogo","footerLogo","onSaveClick","isFormValid","user","UserUpdateRequest","accessLevel","password","newPassword","updateUser","finally","newPasswordConfirm","isSuperAdmin","affiliation","ModeConfigurationRequest","features","welcomeEmailEmplateID","subscriptonTypeID","payload","updateAffiliationConfiguration","getBtnsContainerSize","size","isExternal","accessLevels","getAccessLevelsOnUpdate","getUser","getAffiliationConfiguration","getAreas","emailTemplates","emailTemplateModule","getEmailTemplates","subscriptionTypes","getSubscriptionTypes","getFeatures","getLoggedInCustomerFeatures","feature","router","getRoutes","route","meta","modes","modeID","featureID","getMultipleSelectionText","showFeatures","ModeEnum","Delegate","toString","ParkAdmin","CustomButton","CustomFileInput","CustomSelect","CustomTextField","CustomTreeSelect","maxFileSize","passwordMatch","required","onChange","onClickClear","getLabel","rules","rule","label","PropSync","type","String","Array","model","prop","event","chips","clearable","counterSizeString","counterString","hideInput","multiple","placeholder","prependIcon","showSize","Number","validator","v","smallChips","truncateLength","wrapInArray","every","computed","classes","options","call","computedCounterValue","fileCount","lazyValue","File","$vuetify","lang","bytes","internalArrayValue","reduce","humanReadableFileSize","base","internalValue","get","set","isDirty","isLabelActive","text","persistentPlaceholder","isFocused","hasLabel","truncatedText","truncateText","hasChips","consoleError","deepEqual","files","clearableCallback","genChips","index","$createElement","VChip","small","splice","genControl","style","mergeStyles","display","genInput","domProps","change","onInput","genSelections","genPrependSlot","icon","genIcon","click","genSlot","genSelectionText","counter","children","$scopedSlots","selection","class","genTextFieldSlot","target","initialValue","onKeyDown","str","charsKeepOneSide","Math","floor","slice"],"mappings":";;;;;;AAAA;AAAA;AAEA;AACeA,oHAAf,E;;;;;;;;ACAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AAaA;;AACeC,6HAAM,CACnBC,mEADmB,EAEnBC,2EAAkB,CAAC,MAAD;AAClB,qBAHa,CAIbC,MAJa,CAIN;EACPC,IAAI,EAAE,QADC;EAGPC,OAAO;IACL,OAAO;MAAEC,IAAI,EAAE;IAAR,CAAP;EACD,CALM;EAOPC,YAAY,EAAE,KAPP;EASPC,KAAK,EAAE;IACLC,QAAQ,EAAEC,OADL;IAELC,cAAc,EAAED,OAFX;IAGLE,QAAQ,EAAEF,OAHL;IAILG,KAAK,EAAEH;EAJF,CATA;EAgBPI,IAAI,EAAE,OAAO;IACXC,MAAM,EAAE,EADG;I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,GAAasT,MAAM,CAAC,KAAKI,cAAN,CAAvB,EAA8C,OAAOgE,GAAP;MAC9C,MAAMC,gBAAgB,GAAGC,IAAI,CAACC,KAAL,CAAW,CAACvE,MAAM,CAAC,KAAKI,cAAN,CAAN,GAA8B,CAA/B,IAAoC,CAA/C,CAAzB;MACA,OAAO,GAAGgE,GAAG,CAACI,KAAJ,CAAU,CAAV,EAAaH,gBAAb,CAA8B,IAAID,GAAG,CAACI,KAAJ,CAAUJ,GAAG,CAAC1X,MAAJ,GAAa2X,gBAAvB,CAAwC,EAApF;IACD;EAxHM;AAlJsB,CAAlB,CAAf,E;;;;;ACjB0G;AACvC;AACL;;;AAG9D;AAC6F;AAC7F,gBAAgB,8CAAU;AAC1B,EAAE,8CAAM;AACR,EAAE,+DAAM;AACR,EAAE,eAAe;AACjB;AACA;AACA;AACA;;AAEA;;AAEe,uGAAiB;;AAEhC;AACsG;AACvC;AACV;AACrD,2BAAiB,aAAa,iCAAU,CAAC,+BAAK,CAAC","file":"js/chunk-42dac8c2.da6bf960.js","sourcesContent":["import VTextField from './VTextField'\n\nexport { VTextField }\nexport default VTextField\n","// Components\nimport VInput from '../VInput/VInput'\n\n// Mixins\nimport mixins from '../../util/mixins'\nimport BindsAttrs from '../../mixins/binds-attrs'\nimport { provide as RegistrableProvide } from '../../mixins/registrable'\n\n// Helpers\nimport { VNode } from 'vue'\n\ntype ErrorBag = Record\ntype VInputInstance = InstanceType\ntype Watchers = {\n _uid: number\n valid: () => void\n shouldValidate: () => void\n}\n\n/* @vue/component */\nexport default mixins(\n BindsAttrs,\n RegistrableProvide('form')\n /* @vue/component */\n).extend({\n name: 'v-form',\n\n provide (): object {\n return { form: this }\n },\n\n inheritAttrs: false,\n\n props: {\n disabled: Boolean,\n lazyValidation: Boolean,\n readonly: Boolean,\n value: Boolean,\n },\n\n data: () => ({\n inputs: [] as VInputInstance[],\n watchers: [] as Watchers[],\n errorBag: {} as ErrorBag,\n }),\n\n watch: {\n errorBag: {\n handler (val) {\n const errors = Object.values(val).includes(true)\n\n this.$emit('input', !errors)\n },\n deep: true,\n immediate: true,\n },\n },\n\n methods: {\n watchInput (input: any): Watchers {\n const watcher = (input: any): (() => void) => {\n return input.$watch('hasError', (val: boolean) => {\n this.$set(this.errorBag, input._uid, val)\n }, { immediate: true })\n }\n\n const watchers: Watchers = {\n _uid: input._uid,\n valid: () => {},\n shouldValidate: () => {},\n }\n\n if (this.lazyValidation) {\n // Only start watching inputs if we need to\n watchers.shouldValidate = input.$watch('shouldValidate', (val: boolean) => {\n if (!val) return\n\n // Only watch if we're not already doing it\n if (this.errorBag.hasOwnProperty(input._uid)) return\n\n watchers.valid = watcher(input)\n })\n } else {\n watchers.valid = watcher(input)\n }\n\n return watchers\n },\n /** @public */\n validate (): boolean {\n return this.inputs.filter(input => !input.validate(true)).length === 0\n },\n /** @public */\n reset (): void {\n this.inputs.forEach(input => input.reset())\n this.resetErrorBag()\n },\n resetErrorBag () {\n if (this.lazyValidation) {\n // Account for timeout in validatable\n setTimeout(() => {\n this.errorBag = {}\n }, 0)\n }\n },\n /** @public */\n resetValidation () {\n this.inputs.forEach(input => input.resetValidation())\n this.resetErrorBag()\n },\n register (input: VInputInstance) {\n this.inputs.push(input)\n this.watchers.push(this.watchInput(input))\n },\n unregister (input: VInputInstance) {\n const found = this.inputs.find(i => i._uid === input._uid)\n\n if (!found) return\n\n const unwatch = this.watchers.find(i => i._uid === found._uid)\n if (unwatch) {\n unwatch.valid()\n unwatch.shouldValidate()\n }\n\n this.watchers = this.watchers.filter(i => i._uid !== found._uid)\n this.inputs = this.inputs.filter(i => i._uid !== found._uid)\n this.$delete(this.errorBag, found._uid)\n },\n },\n\n render (h): VNode {\n return h('form', {\n staticClass: 'v-form',\n attrs: {\n novalidate: true,\n ...this.attrs$,\n },\n on: {\n submit: (e: Event) => this.$emit('submit', e),\n },\n }, this.$slots.default)\n },\n})\n","// extracted by mini-css-extract-plugin","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"w-100\"},[(_vm.nodes && _vm.nodes.length > 0)?_vm._t(\"default\",null,{\"nodes\":_vm.nodes,\"showChildNodes\":_vm.useSubAreas,\"label\":_vm.$tc('area', 1),\"showSearch\":_vm.nodes.length > 10,\"onSelectionChange\":_vm.onSelectionChange,\"initialSelection\":_vm.getInitialSelection,\"icon\":\"mdi-garage-open\"}):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { __decorate } from \"tslib\";\nimport { areaModule } from \"@/store/modules/areaModule\";\nimport { Component, Watch, Vue, Prop } from \"vue-property-decorator\";\nimport { featureModule } from \"@/store/modules/featureModule\";\nimport { generateTree, getObjectsByKeyValue } from \"@/components/treeSelects/util\";\nimport { getAreasFromNodes } from \"@/util/area/areautil\";\nlet AreaTreeSelect = class AreaTreeSelect extends Vue {\n nodes = [];\n initialSelection;\n customAreas;\n treeNodesWatcher() {\n this.nodes = generateTree([...this.areaTreeNodes].map(area => {\n return {\n id: `${area.name}-${area.id}-1`,\n name: area.name,\n mappedObj: area,\n selected: this.getInitialSelection\n ? Boolean(getObjectsByKeyValue(this.getInitialSelection, \"id\", `${area.name}-${area.id}-1`)[0])\n : false,\n nodes: area.subAreas.map(subArea => {\n return {\n id: `${subArea.name}-${subArea.id}-2`,\n name: subArea.name,\n mappedObj: subArea,\n selected: this.getInitialSelection\n ? Boolean(getObjectsByKeyValue(this.getInitialSelection, \"id\", `${subArea.name}-${subArea.id}-2`)[0])\n : false,\n };\n }),\n };\n }));\n }\n onSelectionChange(nodes) {\n const areasSelected = getAreasFromNodes(nodes);\n this.$emit(\"onAreasChange\", areasSelected);\n }\n get areaTreeNodes() {\n const watcher = this.initialSelection;\n return this.customAreas ?? areaModule.areaTreeNodes;\n }\n get useSubAreas() {\n return featureModule.useSubAreas;\n }\n get getInitialSelection() {\n return this.initialSelection == null\n ? []\n : this.initialSelection.map(area => ({\n ...area,\n id: `${area.name}-${area.id}-1`,\n subAreas: area.subAreas.map(subArea => ({\n ...subArea,\n id: `${subArea.name}-${subArea.id}-2`,\n })),\n }));\n }\n};\n__decorate([\n Prop()\n], AreaTreeSelect.prototype, \"initialSelection\", void 0);\n__decorate([\n Prop()\n], AreaTreeSelect.prototype, \"customAreas\", void 0);\n__decorate([\n Watch(\"areaTreeNodes\", { immediate: true, deep: true })\n], AreaTreeSelect.prototype, \"treeNodesWatcher\", null);\nAreaTreeSelect = __decorate([\n Component({\n components: {},\n methods: {},\n })\n], AreaTreeSelect);\nexport default AreaTreeSelect;\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!./AreaTreeSelect.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!./AreaTreeSelect.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AreaTreeSelect.vue?vue&type=template&id=39092995&scoped=true&\"\nimport script from \"./AreaTreeSelect.vue?vue&type=script&lang=ts&\"\nexport * from \"./AreaTreeSelect.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 \"39092995\",\n null\n \n)\n\nexport default component.exports","import { AreaRequest, SubAreaRequest } from \"@/apiclient/client\";\nimport { getObjectsByKeyValue } from \"@/components/treeSelects/util\";\nimport { subscriptionModule } from \"@/store/modules/subscriptionModule\";\nfunction difference(a, b) {\n return a.filter(xa => !b.some(xb => xb.id === xa.id));\n}\nfunction synchronizeAreas(subscription, existingAreas, newAreas) {\n if (!existingAreas || !newAreas) {\n return new Promise((reject) => {\n reject(false);\n });\n }\n //add areas to subscription\n let toCreate = difference(newAreas, existingAreas);\n let a = toCreate.map(a => subscriptionModule.addAreaToSubscription({ subscriptionId: subscription.id, area: a }));\n //delete the areas that needs to be removed from the subscription\n let toDelete = difference(existingAreas, newAreas);\n let b = toDelete.map(a => subscriptionModule.removeAreaFromSubscription({ subscriptionId: subscription.id, area: a }));\n //add subareas to subscription\n let toCreate2 = difference(newAreas.flatMap(s => s.subAreas ?? []), existingAreas.flatMap(s => s.subAreas ?? []))\n .filter(s => !toCreate.flatMap(xs => xs.subAreas ?? []).some(xs => xs.id == s.id));\n let c = toCreate2.map(a => subscriptionModule.addSubAreaToSubscription({ subscriptionId: subscription.id, area: a }));\n //delete the subareas that needs to be removed from the subscription\n let toDelete2 = difference(existingAreas.flatMap(s => s.subAreas ?? []), newAreas.flatMap(s => s.subAreas ?? []))\n .filter(s => !toDelete.flatMap(xs => xs.subAreas ?? []).some(xs => xs.id == s.id));\n let d = toDelete2.map(a => subscriptionModule.removeSubAreaFromSubscription({ subscriptionId: subscription.id, area: a }));\n return Promise.all([...a, ...b, ...c, ...d]).then(() => true);\n}\nconst getAreasFromNodes = (nodes) => {\n const areas = [];\n nodes.forEach(node => {\n const area = copyArea(node.mappedObj);\n area.mergedID = `${area.name}-${area.id}-1`;\n area.subAreas = [];\n node.nodes?.forEach(subNode => {\n const subArea = copySubArea(subNode.mappedObj);\n subArea.mergedID = `${subArea.name}-${subArea.id}-2`;\n area.subAreas.push(subArea);\n });\n areas.push(area);\n });\n return areas;\n};\nconst getAreaFromNode = (node) => {\n const area = copyArea(node.mappedObj);\n area.showInParkAdmin = node.selected;\n area.subAreas = [];\n node.nodes?.forEach(subNode => {\n const subArea = copySubArea(subNode.mappedObj);\n subArea.showInParkAdmin = subNode.selected;\n area.subAreas.push(subArea);\n });\n return area;\n};\nconst updateShowInParkadminProp = (areasSelection, initialAreas) => {\n const areasCopy = [...initialAreas].map(area => ({\n id: area.id,\n name: area.name,\n showInParkAdmin: Boolean(areasSelection.find(a => a.id === area.id)),\n subAreas: area.subAreas.map(subArea => ({\n id: subArea.id,\n name: subArea.name,\n showInParkAdmin: Boolean(getObjectsByKeyValue([...areasSelection], \"id\", `${subArea.name}-${subArea.id}-2`)[0])\n }))\n }));\n return areasCopy;\n};\nfunction copyArea(area) {\n return Object.assign(Object.create(AreaRequest.prototype), { ...area });\n}\nfunction copySubArea(subArea) {\n return Object.assign(Object.create(SubAreaRequest.prototype), {\n ...subArea,\n });\n}\nexport { copyArea, copySubArea, getAreasFromNodes, synchronizeAreas, getAreaFromNode, updateShowInParkadminProp };\n","import { __decorate } from \"tslib\";\nimport { Action, getModule, Module, Mutation, VuexModule } from \"vuex-module-decorators\";\nimport { apiClient } from \"@/apiclient/baseclient\";\nimport { authenticationModule } from \"./authenticationModule\";\nimport { Criticality, notificationModule } from \"./notificationModule\";\nimport { statusModule } from \"@/store/modules/statusModule\";\nimport { SubscriberCompanyRequest, SubscriberPersonRequest, } from \"@/apiclient/client\";\nimport store from \"@/store/index\";\nlet SubscriberModule = class SubscriberModule extends VuexModule {\n subscriber = null;\n subscribers = [];\n loading = false;\n totalRecords = 0;\n get getSubscriber() {\n return this.subscriber;\n }\n get getSubscribers() {\n return this.subscribers;\n }\n get getCount() {\n return this.totalRecords;\n }\n async fetchSubscribers(request) {\n statusModule.updateLoading(true);\n try {\n var subscribers = await apiClient.subscribersGET(request.pageNumber, request.pageSize, request.sortOrderAsc, request.orderBy, request.search, request.includeInactive);\n this.context.commit(\"SET_SUBSCRIBERS\", subscribers.data);\n this.context.commit(\"SET_PAGECOUNT\", subscribers.totalRecords);\n }\n catch (err) {\n console.error(err);\n }\n finally {\n statusModule.updateLoading(false);\n }\n }\n async fetchSubscriberById(subscriberId) {\n return await apiClient\n .subscribersGET2(subscriberId)\n .then(response => {\n this.context.commit(\"SET_SUBSCRIBER\", response.data);\n })\n .catch(e => {\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_error_occured\".t(),\n criticality: Criticality.Error,\n });\n });\n }\n async updateSubscriber(updateDispatch) {\n return await apiClient\n .subscribersPUT(updateDispatch.subscriberId, authenticationModule.getCustomerId, updateDispatch.subscriberType === 2, updateDispatch.subscriber)\n .then(response => {\n this.context.dispatch(\"fetchSubscriberById\", updateDispatch.subscriberId);\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_success_update_subscriber\".t(),\n criticality: Criticality.Success,\n });\n })\n .catch(e => {\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_error_occured\".t(),\n criticality: Criticality.Error,\n });\n });\n }\n async deleteSubscriber(subscriber) {\n return apiClient\n .subscribersDELETE(subscriber.id || 0)\n .then(response => {\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_success_delete_subscriber\".t(),\n criticality: Criticality.Success,\n });\n return response;\n })\n .catch(() => {\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_error_occured\".t(),\n criticality: Criticality.Error,\n });\n });\n }\n async activateSubscriber(subscriber) {\n return apiClient\n .activate(subscriber.id || 0, subscriber.active) //PATCH\n .then(response => {\n if (subscriber.hasBeenMasked) {\n this.context.dispatch(\"fetchSubscriberById\", subscriber.id);\n }\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_success_create_subscriber\".t(),\n criticality: Criticality.Success,\n });\n })\n .catch(() => {\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_error_occured\".t(),\n criticality: Criticality.Error,\n });\n });\n }\n async createSubscriber(subscriber) {\n statusModule.updateLoading(true);\n var createdSubscriber;\n try {\n if (subscriber.subscriberType === 2) {\n var person = new SubscriberPersonRequest();\n person.address1 = subscriber.address1;\n person.address2 = subscriber.address2;\n person.city = subscriber.city;\n person.email = subscriber.email;\n person.externalCostumerID = subscriber.externalCostumerID;\n person.firstName = subscriber.firstName;\n person.lastName = subscriber.lastName;\n person.phoneNumber = subscriber.phonenumber;\n person.recieveNewsLetter = subscriber.recieveNewsLetter;\n person.zipcode = subscriber.zipCode;\n let created = await apiClient.person(person);\n createdSubscriber = created?.data;\n }\n else if (subscriber.subscriberType === 1 || subscriber.subscriberType === undefined) {\n var company = new SubscriberCompanyRequest();\n company.address1 = subscriber.address1;\n company.address2 = subscriber.address2;\n company.city = subscriber.city;\n company.email = subscriber.email;\n company.externalCostumerID = subscriber.externalCostumerID;\n company.cvr = subscriber.cvr;\n company.name = subscriber.name;\n company.attPersonName = subscriber.attPersonName;\n company.phoneNumber = subscriber.phonenumber;\n company.recieveNewsLetter = subscriber.recieveNewsLetter;\n company.zipcode = subscriber.zipCode;\n let created = await apiClient.company(authenticationModule.getCustomerId, company);\n createdSubscriber = created?.data;\n }\n statusModule.updateLoading(false);\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_success_create_subscriber\".t(),\n criticality: Criticality.Success,\n });\n return createdSubscriber;\n }\n catch {\n statusModule.updateLoading(false);\n notificationModule.SHOW_NOTIFICATION({\n message: \"notification_error_occured\".t(),\n criticality: Criticality.Error,\n });\n }\n }\n //Mutations\n SET_SUBSCRIBERS(subscribers) {\n this.subscribers = subscribers;\n }\n SET_SUBSCRIBER(subscriber) {\n this.subscriber = subscriber;\n }\n SET_PAGECOUNT(pagecount) {\n this.totalRecords = pagecount;\n }\n SET_LOADING(loading) {\n this.loading = loading;\n }\n};\n__decorate([\n Action({ rawError: true })\n], SubscriberModule.prototype, \"fetchSubscribers\", null);\n__decorate([\n Action({ rawError: true })\n], SubscriberModule.prototype, \"fetchSubscriberById\", null);\n__decorate([\n Action({ rawError: true })\n], SubscriberModule.prototype, \"updateSubscriber\", null);\n__decorate([\n Action({ rawError: true })\n], SubscriberModule.prototype, \"deleteSubscriber\", null);\n__decorate([\n Action({ rawError: true })\n], SubscriberModule.prototype, \"activateSubscriber\", null);\n__decorate([\n Action({ rawError: true })\n], SubscriberModule.prototype, \"createSubscriber\", null);\n__decorate([\n Mutation\n], SubscriberModule.prototype, \"SET_SUBSCRIBERS\", null);\n__decorate([\n Mutation\n], SubscriberModule.prototype, \"SET_SUBSCRIBER\", null);\n__decorate([\n Mutation\n], SubscriberModule.prototype, \"SET_PAGECOUNT\", null);\n__decorate([\n Mutation\n], SubscriberModule.prototype, \"SET_LOADING\", null);\nSubscriberModule = __decorate([\n Module({ dynamic: true, store, name: \"subscriberModule\", namespaced: true })\n], SubscriberModule);\nexport default SubscriberModule;\nexport const subscriberModule = getModule(SubscriberModule);\n","export async function convertFileToBase64(logo) {\n return new Promise((resolve, reject) => {\n try {\n if (!logo) {\n resolve(\"\");\n }\n const reader = new FileReader();\n reader.readAsDataURL(logo);\n reader.onload = () => {\n if (typeof reader.result === \"string\") {\n resolve(reader.result);\n }\n else {\n reject(\"error\");\n }\n };\n }\n catch (error) {\n reject(error);\n }\n });\n}\nexport const readUploadedFileAsText = inputFile => {\n const temporaryFileReader = new FileReader();\n return new Promise((resolve, reject) => {\n temporaryFileReader.onerror = () => {\n temporaryFileReader.abort();\n reject(new DOMException(\"Problem parsing input file.\"));\n };\n temporaryFileReader.readAsDataURL(inputFile);\n temporaryFileReader.onload = () => {\n resolve(temporaryFileReader.result);\n };\n });\n};\nexport const getFileBase64String = (file) => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.onload = function () {\n const base64String = reader.result;\n const encodedString = base64String.split(\",\")[1];\n resolve(encodedString);\n };\n reader.onerror = function (error) {\n reject(error);\n };\n reader.readAsDataURL(file);\n });\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-form',{ref:\"userDetailsForm\",model:{value:(_vm.userDetailsFormValid),callback:function ($$v) {_vm.userDetailsFormValid=$$v},expression:\"userDetailsFormValid\"}},[_c('v-row',[_c('v-col',{attrs:{\"sm\":\"12\",\"md\":\"6\",\"lg\":\"4\",\"xl\":\"3\"}},[_c('v-card',{attrs:{\"height\":\"100%\"}},[_c('v-card-title',[_vm._v(\" \"+_vm._s(\"stemData\".t())+\" \")]),(!_vm.userStemData)?_c('v-container',{staticClass:\"d-flex justify-center\"},[_c('v-progress-circular',{attrs:{\"color\":\"primary\",\"indeterminate\":\"\",\"size\":\"64\"}})],1):_c('v-card-text',[_c('CustomTextField',{attrs:{\"text\":_vm.userStemData.username,\"label\":'username'.t(),\"type\":_vm.type.Text,\"rules\":[_vm.required],\"disabled\":true},on:{\"update:text\":function($event){return _vm.$set(_vm.userStemData, \"username\", $event)}}}),_c('CustomTextField',{attrs:{\"text\":_vm.userStemData.name,\"label\":'name'.t(),\"type\":_vm.type.Text,\"rules\":[_vm.required],\"disabled\":_vm.isExternal},on:{\"update:text\":function($event){return _vm.$set(_vm.userStemData, \"name\", $event)}}}),_c('CustomSelect',{attrs:{\"selected\":_vm.userStemData.accessLevel,\"items\":_vm.accessLevels,\"itemText\":\"accessLevel\",\"itemValue\":\"accessLevelID\",\"label\":'role'.t(),\"multipleSelection\":false,\"returnObject\":false,\"disabled\":_vm.userStemData.accessLevel === 4 || _vm.isExternal},on:{\"update:selected\":function($event){return _vm.$set(_vm.userStemData, \"accessLevel\", $event)}}}),_c('CustomTextField',{attrs:{\"text\":_vm.newPassword,\"label\":\"Password\",\"type\":_vm.type.Password,\"counter\":true,\"rules\":_vm.newPassword !== null ? [_vm.password] : []},on:{\"update:text\":function($event){_vm.newPassword=$event}}}),_c('CustomTextField',{attrs:{\"text\":_vm.newPasswordConfirm,\"label\":\"Password\",\"type\":_vm.type.Password,\"counter\":true,\"rules\":_vm.newPassword !== null\n ? [_vm.password, _vm.passwordMatch(_vm.newPassword, _vm.newPasswordConfirm)]\n : []},on:{\"update:text\":function($event){_vm.newPasswordConfirm=$event}}})],1)],1)],1),(_vm.userStemData && _vm.userStemData.subscriberID && !_vm.isExternal)?_c('v-col',{attrs:{\"sm\":\"12\",\"md\":\"6\",\"lg\":\"4\",\"xl\":\"3\"}},[_c('v-card',[_c('v-card-title',[_vm._v(\" \"+_vm._s(\"affiliation\".tc(1))+\" \")]),_c('v-card-text',[_c('h4',{staticClass:\"mt-1 mb-4\"},[_vm._v(\" \"+_vm._s(\"subscriber\".tc(1))+\": \"+_vm._s(_vm.subscriber ? _vm.subscriber.name : \"\")+\" \"),(_vm.isSuperAdmin)?_c('CustomButton',{staticClass:\"pa-0\",attrs:{\"icon\":\"mdi-link\",\"action\":_vm.action.Primary},on:{\"on-button-click\":function($event){return _vm.goTo(_vm.userStemData.subscriberID)}}}):_vm._e()],1),(!_vm.affiliationConfiguration)?_c('div',{staticClass:\"d-flex justify-center\"},[_c('v-progress-circular',{attrs:{\"color\":\"primary\",\"indeterminate\":\"\",\"size\":\"64\"}})],1):_c('div',[_c('AreaTreeSelect',{key:_vm.affiliationConfiguration.modeConfigurationID,attrs:{\"initialSelection\":_vm.affiliationConfiguration.areas},on:{\"onAreasChange\":_vm.onAreasChange},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('CustomTreeSelect',{attrs:{\"nodes\":scope.nodes,\"showChildNodes\":scope.showChildNodes,\"initialSelection\":scope.initialSelection,\"rules\":[_vm.required],\"label\":scope.label,\"icon\":scope.icon,\"showSearch\":scope.showSearch,\"disabled\":!_vm.isSuperAdmin},on:{\"onSelectionChange\":scope.onSelectionChange}})]}}],null,false,1937371930)}),_c('CustomSelect',{attrs:{\"selected\":_vm.affiliationConfiguration.welcomeEmailEmplateID,\"items\":_vm.emailTemplates,\"itemText\":\"emailTemplateName\",\"itemValue\":\"id\",\"label\":'emailTemplate'.t().capitalize(),\"multipleSelection\":false,\"returnObject\":false,\"disabled\":!_vm.isSuperAdmin},on:{\"update:selected\":function($event){return _vm.$set(_vm.affiliationConfiguration, \"welcomeEmailEmplateID\", $event)}}}),_c('CustomSelect',{attrs:{\"selected\":_vm.affiliationConfiguration.subscriptonTypeID,\"items\":_vm.subscriptionTypes,\"itemText\":\"subscriptionType\",\"itemValue\":\"subscriptionTypeId\",\"label\":_vm.$t('customerType'),\"multipleSelection\":false,\"returnObject\":false,\"disabled\":!_vm.isSuperAdmin},on:{\"update:selected\":function($event){return _vm.$set(_vm.affiliationConfiguration, \"subscriptonTypeID\", $event)}}}),(_vm.showFeatures)?_c('CustomSelect',{attrs:{\"selected\":_vm.affiliationConfiguration.features,\"items\":_vm.getFeatures,\"itemText\":\"feature\",\"itemValue\":\"featureID\",\"label\":\"Features\",\"multipleSelectionText\":_vm.getMultipleSelectionText,\"multipleSelection\":true,\"returnObject\":true,\"rules\":[_vm.required],\"disabled\":!_vm.isSuperAdmin},on:{\"update:selected\":function($event){return _vm.$set(_vm.affiliationConfiguration, \"features\", $event)}}}):_vm._e(),_c('CustomFileInput',{attrs:{\"label\":\"Header logo\",\"rules\":[_vm.maxFileSize(_vm.affiliationConfiguration.headerLogo, 8000)],\"disabled\":!_vm.isSuperAdmin},on:{\"on-file-input-change\":function($event){return _vm.setHeaderLogo($event)},\"on-file-input-clear\":function($event){_vm.affiliationConfiguration.headerLogo = ''}}}),_c('img',{attrs:{\"src\":_vm.affiliationConfiguration.headerLogo}}),_c('CustomFileInput',{attrs:{\"label\":\"Footer logo\",\"rules\":[_vm.maxFileSize(_vm.affiliationConfiguration.footerLogo, 8000)],\"disabled\":!_vm.isSuperAdmin},on:{\"on-file-input-change\":function($event){return _vm.setFooterLogo($event)},\"on-file-input-clear\":function($event){_vm.affiliationConfiguration.footerLogo = ''}}}),_c('img',{attrs:{\"src\":_vm.affiliationConfiguration.footerLogo}})],1)])],1)],1):_vm._e()],1),_c('v-row',[_c('v-col',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"space-between\"},attrs:{\"sm\":\"12\",\"md\":_vm.getBtnsContainerSize(6),\"lg\":_vm.getBtnsContainerSize(4),\"xl\":_vm.getBtnsContainerSize(3)}},[_c('CustomButton',{attrs:{\"text\":'button_back'.t(),\"action\":_vm.action.Back},on:{\"on-button-click\":_vm.onBackClick}}),_c('CustomButton',{attrs:{\"text\":'button_save'.t(),\"action\":_vm.action.Primary},on:{\"on-button-click\":_vm.onSaveClick}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { __decorate } from \"tslib\";\nimport { ModeConfigurationRequest, UserUpdateRequest, } from \"@/apiclient/client\";\nimport { maxFileSize, password, passwordMatch, required, } from \"@/components/shared/validationRules\";\nimport { areaModule } from \"@/store/modules/areaModule\";\nimport { authenticationModule } from \"@/store/modules/authenticationModule\";\nimport { emailTemplateModule } from \"@/store/modules/emailtemplateModule\";\nimport { featureModule } from \"@/store/modules/featureModule\";\nimport { InputType } from \"../shared/enums\";\nimport { readUploadedFileAsText } from \"@/util/imageconverter\";\nimport { subscriberModule } from \"@/store/modules/subscriberModule\";\nimport { subscriptionModule } from \"@/store/modules/subscriptionModule\";\nimport { userModule } from \"@/store/modules/userModule\";\nimport Component from \"vue-class-component\";\nimport CustomButton, { Action } from \"@/components/shared/CustomButton.vue\";\nimport CustomFileInput from \"@/components/shared/CustomFileInput.vue\";\nimport CustomSelect from \"@/components/shared/CustomSelect.vue\";\nimport CustomTextField from \"@/components/shared/CustomTextField.vue\";\nimport CustomTreeSelect from \"../shared/CustomTreeSelect.vue\";\nimport AreaTreeSelect from \"@/components/treeSelects/AreaTreeSelect.vue\";\nimport Vue from \"vue\";\nimport { ModeEnum } from \"@/store/modules/enums\";\nimport router from \"@/router\";\nimport { Watch } from \"vue-property-decorator\";\nlet Details = class Details extends Vue {\n type = InputType;\n action = Action;\n userId;\n userDetailsFormValid = true;\n newPassword = null;\n newPasswordConfirm = null;\n async paramsWatcher() {\n this.userId = parseInt(this.$route.params.id);\n await userModule.fetchUser(this.userId);\n if (this.userStemData?.subscriberID) {\n subscriberModule.fetchSubscriberById(this.userStemData.subscriberID);\n userModule.fetchAffiliationConfiguration(this.userId);\n }\n }\n useSubareas() {\n return featureModule.useSubAreas;\n }\n onAreasChange(list) {\n this.affiliationConfiguration.areas = list;\n }\n onBackClick() {\n this.$router.back();\n }\n goTo(subscriberId) {\n this.$router.push(\"/subscribers/\" + subscriberId);\n }\n async setHeaderLogo(file) {\n this.$refs.userDetailsForm.validate();\n if (!file)\n return;\n try {\n const fileContents = (await readUploadedFileAsText(file));\n this.affiliationConfiguration.headerLogo = fileContents;\n }\n catch {\n // console.error(\"Failed to read upload file!\");\n }\n }\n async setFooterLogo(file) {\n this.$refs.userDetailsForm.validate();\n if (!file)\n return;\n try {\n const fileContents = (await readUploadedFileAsText(file));\n this.affiliationConfiguration.footerLogo = fileContents;\n }\n catch {\n // console.error(\"Failed to read upload file!\");\n }\n }\n onSaveClick() {\n const isFormValid = this.$refs.userDetailsForm.validate();\n if (!isFormValid) {\n return;\n }\n const user = new UserUpdateRequest();\n user.name = this.userStemData?.name;\n user.accessLevel = this.userStemData?.accessLevel;\n user.password = this.newPassword ? this.newPassword : null;\n userModule\n .updateUser({\n userId: this.userId,\n user: user,\n })\n .finally(() => {\n this.newPassword = null;\n this.newPasswordConfirm = null;\n });\n if (this.affiliationConfiguration &&\n authenticationModule.isSuperAdmin &&\n this.userStemData?.subscriberID) {\n const affiliation = new ModeConfigurationRequest();\n affiliation.areas = this.affiliationConfiguration?.areas\n ? this.affiliationConfiguration.areas\n : [];\n affiliation.features = this.affiliationConfiguration?.features\n ? this.affiliationConfiguration.features\n : [];\n affiliation.welcomeEmailEmplateID = this.affiliationConfiguration?.welcomeEmailEmplateID;\n affiliation.subscriptonTypeID = this.affiliationConfiguration?.subscriptonTypeID;\n affiliation.headerLogo = this.affiliationConfiguration?.headerLogo;\n affiliation.footerLogo = this.affiliationConfiguration?.footerLogo;\n const payload = {\n userId: this.userId,\n affiliationConfiguration: affiliation,\n };\n userModule.updateAffiliationConfiguration(payload);\n }\n }\n getBtnsContainerSize(size) {\n return this.userStemData && this.userStemData.subscriberID && !this.isExternal\n ? size * 2\n : size;\n }\n get isExternal() {\n return authenticationModule.isExternal;\n }\n get isSuperAdmin() {\n return authenticationModule.isSuperAdmin;\n }\n get accessLevels() {\n return userModule.getAccessLevelsOnUpdate;\n }\n get userStemData() {\n return userModule.getUser;\n }\n get subscriber() {\n return subscriberModule.getSubscriber;\n }\n get affiliationConfiguration() {\n return userModule.getAffiliationConfiguration;\n }\n get areas() {\n return areaModule.getAreas;\n }\n get emailTemplates() {\n return emailTemplateModule.getEmailTemplates;\n }\n get subscriptionTypes() {\n return subscriptionModule.getSubscriptionTypes;\n }\n get getFeatures() {\n return featureModule.getLoggedInCustomerFeatures.filter(feature => router\n .getRoutes()\n .find(route => route.meta &&\n route.meta.modes &&\n route.meta.modes.includes(this.userStemData?.modeID) &&\n route.meta.feature &&\n route.meta.feature == feature.featureID));\n }\n get getMultipleSelectionText() {\n return this.affiliationConfiguration?.features &&\n this.affiliationConfiguration.features.length > 0\n ? this.affiliationConfiguration.features[0].feature\n : \"\";\n }\n get showFeatures() {\n return (this.userStemData?.modeID &&\n (this.userStemData.modeID == parseInt(ModeEnum.Delegate.toString()) ||\n this.userStemData.modeID == parseInt(ModeEnum.ParkAdmin.toString())));\n }\n};\n__decorate([\n Watch(\"$route.params\", { immediate: true })\n], Details.prototype, \"paramsWatcher\", null);\nDetails = __decorate([\n Component({\n components: {\n CustomButton,\n CustomFileInput,\n CustomSelect,\n CustomTextField,\n CustomTreeSelect,\n AreaTreeSelect,\n },\n methods: {\n maxFileSize,\n password,\n passwordMatch,\n required,\n },\n })\n], Details);\nexport default Details;\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!./Details.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!./Details.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Details.vue?vue&type=template&id=5f1a479f&scoped=true&\"\nimport script from \"./Details.vue?vue&type=script&lang=ts&\"\nexport * from \"./Details.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 \"5f1a479f\",\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 { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCardTitle } from 'vuetify/lib/components/VCard';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VForm } from 'vuetify/lib/components/VForm';\nimport { VProgressCircular } from 'vuetify/lib/components/VProgressCircular';\nimport { VRow } from 'vuetify/lib/components/VGrid';\ninstallComponents(component, {VCard,VCardText,VCardTitle,VCol,VContainer,VForm,VProgressCircular,VRow})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-file-input',{staticClass:\"soft-rounded\",attrs:{\"label\":_vm.getLabel,\"multiple\":_vm.multiple,\"rules\":_vm.rules,\"disabled\":_vm.disabled,\"validate-on-blur\":false,\"show-size\":true,\"counter\":true,\"accept\":\"image/*\",\"filled\":\"\",\"prepend-icon\":\"\"},on:{\"change\":_vm.onChange,\"click:clear\":_vm.onClickClear},scopedSlots:_vm._u([{key:\"append\",fn:function(){return [_c('v-icon',[_vm._v(\"mdi-paperclip\")])]},proxy:true}]),model:{value:(_vm.syncFile),callback:function ($$v) {_vm.syncFile=$$v},expression:\"syncFile\"}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { __decorate } from \"tslib\";\nimport { Prop, PropSync } from \"vue-property-decorator\";\nimport Component from \"vue-class-component\";\nimport Vue from \"vue\";\nlet CustomFileInput = class CustomFileInput extends Vue {\n syncFile;\n label;\n multiple;\n rules;\n disabled;\n onChange(e) {\n this.$emit(\"on-file-input-change\", e);\n }\n onClickClear(e) {\n this.$emit(\"on-file-input-clear\", e);\n }\n get getLabel() {\n return this.rules?.some(rule => rule.name && rule.name.includes(\"required\"))\n ? this.label + \" *\"\n : this.label;\n }\n};\n__decorate([\n PropSync(\"file\", { required: false })\n], CustomFileInput.prototype, \"syncFile\", void 0);\n__decorate([\n Prop({ required: true, type: String })\n], CustomFileInput.prototype, \"label\", void 0);\n__decorate([\n Prop({ required: false, type: Boolean })\n], CustomFileInput.prototype, \"multiple\", void 0);\n__decorate([\n Prop({ required: false, type: Array() })\n], CustomFileInput.prototype, \"rules\", void 0);\n__decorate([\n Prop({ required: false, type: Boolean })\n], CustomFileInput.prototype, \"disabled\", void 0);\nCustomFileInput = __decorate([\n Component\n], CustomFileInput);\nexport default CustomFileInput;\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!./CustomFileInput.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!./CustomFileInput.vue?vue&type=script&lang=ts&\"","// Styles\nimport './VFileInput.sass'\n\n// Extensions\nimport VTextField from '../VTextField'\n\n// Components\nimport { VChip } from '../VChip'\n\n// Types\nimport { PropValidator } from 'vue/types/options'\n\n// Utilities\nimport { deepEqual, humanReadableFileSize, wrapInArray } from '../../util/helpers'\nimport { consoleError } from '../../util/console'\nimport { mergeStyles } from '../../util/mergeData'\n\nexport default VTextField.extend({\n name: 'v-file-input',\n\n model: {\n prop: 'value',\n event: 'change',\n },\n\n props: {\n chips: Boolean,\n clearable: {\n type: Boolean,\n default: true,\n },\n counterSizeString: {\n type: String,\n default: '$vuetify.fileInput.counterSize',\n },\n counterString: {\n type: String,\n default: '$vuetify.fileInput.counter',\n },\n hideInput: Boolean,\n multiple: Boolean,\n placeholder: String,\n prependIcon: {\n type: String,\n default: '$file',\n },\n readonly: {\n type: Boolean,\n default: false,\n },\n showSize: {\n type: [Boolean, Number],\n default: false,\n validator: (v: boolean | number) => {\n return (\n typeof v === 'boolean' ||\n [1000, 1024].includes(v)\n )\n },\n } as PropValidator,\n smallChips: Boolean,\n truncateLength: {\n type: [Number, String],\n default: 22,\n },\n type: {\n type: String,\n default: 'file',\n },\n value: {\n default: undefined,\n validator: val => {\n return wrapInArray(val).every(v => v != null && typeof v === 'object')\n },\n } as PropValidator,\n },\n\n computed: {\n classes (): object {\n return {\n ...VTextField.options.computed.classes.call(this),\n 'v-file-input': true,\n }\n },\n computedCounterValue (): string {\n const fileCount = (this.multiple && this.lazyValue)\n ? this.lazyValue.length\n : (this.lazyValue instanceof File) ? 1 : 0\n\n if (!this.showSize) return this.$vuetify.lang.t(this.counterString, fileCount)\n\n const bytes = this.internalArrayValue.reduce((bytes: number, { size = 0 }: File) => {\n return bytes + size\n }, 0)\n\n return this.$vuetify.lang.t(\n this.counterSizeString,\n fileCount,\n humanReadableFileSize(bytes, this.base === 1024)\n )\n },\n internalArrayValue (): File[] {\n return wrapInArray(this.internalValue)\n },\n internalValue: {\n get (): File[] {\n return this.lazyValue\n },\n set (val: File | File[]) {\n this.lazyValue = val\n this.$emit('change', this.lazyValue)\n },\n },\n isDirty (): boolean {\n return this.internalArrayValue.length > 0\n },\n isLabelActive (): boolean {\n return this.isDirty\n },\n text (): string[] {\n if (!this.isDirty && (this.persistentPlaceholder || this.isFocused || !this.hasLabel)) return [this.placeholder]\n\n return this.internalArrayValue.map((file: File) => {\n const {\n name = '',\n size = 0,\n } = file\n\n const truncatedText = this.truncateText(name)\n\n return !this.showSize\n ? truncatedText\n : `${truncatedText} (${humanReadableFileSize(size, this.base === 1024)})`\n })\n },\n base (): 1000 | 1024 | undefined {\n return typeof this.showSize !== 'boolean' ? this.showSize : undefined\n },\n hasChips (): boolean {\n return this.chips || this.smallChips\n },\n },\n\n watch: {\n readonly: {\n handler (v) {\n if (v === true) consoleError('readonly is not supported on ', this)\n },\n immediate: true,\n },\n value (v) {\n const value = this.multiple ? v : v ? [v] : []\n if (!deepEqual(value, this.$refs.input.files)) {\n // When the input value is changed programatically, clear the\n // internal input's value so that the `onInput` handler\n // can be triggered again if the user re-selects the exact\n // same file(s). Ideally, `input.files` should be\n // manipulated directly but that property is readonly.\n this.$refs.input.value = ''\n }\n },\n },\n\n methods: {\n clearableCallback () {\n this.internalValue = this.multiple ? [] : null\n this.$refs.input.value = ''\n },\n genChips () {\n if (!this.isDirty) return []\n\n return this.text.map((text, index) => this.$createElement(VChip, {\n props: { small: this.smallChips },\n on: {\n 'click:close': () => {\n const internalValue = this.internalValue\n internalValue.splice(index, 1)\n this.internalValue = internalValue // Trigger the watcher\n },\n },\n }, [text]))\n },\n genControl () {\n const render = VTextField.options.methods.genControl.call(this)\n\n if (this.hideInput) {\n render.data!.style = mergeStyles(\n render.data!.style,\n { display: 'none' }\n )\n }\n\n return render\n },\n genInput () {\n const input = VTextField.options.methods.genInput.call(this)\n\n input.data!.attrs!.multiple = this.multiple\n\n // We should not be setting value\n // programmatically on the input\n // when it is using type=\"file\"\n delete input.data!.domProps!.value\n\n // This solves an issue in Safari where\n // nothing happens when adding a file\n // do to the input event not firing\n // https://github.com/vuetifyjs/vuetify/issues/7941\n delete input.data!.on!.input\n input.data!.on!.change = this.onInput\n\n return [this.genSelections(), input]\n },\n genPrependSlot () {\n if (!this.prependIcon) return null\n\n const icon = this.genIcon('prepend', () => {\n this.$refs.input.click()\n })\n\n return this.genSlot('prepend', 'outer', [icon])\n },\n genSelectionText (): string[] {\n const length = this.text.length\n\n if (length < 2) return this.text\n if (this.showSize && !this.counter) return [this.computedCounterValue]\n return [this.$vuetify.lang.t(this.counterString, length)]\n },\n genSelections () {\n const children = []\n\n if (this.isDirty && this.$scopedSlots.selection) {\n this.internalArrayValue.forEach((file: File, index: number) => {\n if (!this.$scopedSlots.selection) return\n\n children.push(\n this.$scopedSlots.selection({\n text: this.text[index],\n file,\n index,\n })\n )\n })\n } else {\n children.push(this.hasChips && this.isDirty ? this.genChips() : this.genSelectionText())\n }\n\n return this.$createElement('div', {\n staticClass: 'v-file-input__text',\n class: {\n 'v-file-input__text--placeholder': this.placeholder && !this.isDirty,\n 'v-file-input__text--chips': this.hasChips && !this.$scopedSlots.selection,\n },\n }, children)\n },\n genTextFieldSlot () {\n const node = VTextField.options.methods.genTextFieldSlot.call(this)\n\n node.data!.on = {\n ...(node.data!.on || {}),\n click: () => this.$refs.input.click(),\n }\n\n return node\n },\n onInput (e: Event) {\n const files = [...(e.target as HTMLInputElement).files || []]\n\n this.internalValue = this.multiple ? files : files[0]\n\n // Set initialValue here otherwise isFocused\n // watcher in VTextField will emit a change\n // event whenever the component is blurred\n this.initialValue = this.internalValue\n },\n onKeyDown (e: KeyboardEvent) {\n this.$emit('keydown', e)\n },\n truncateText (str: string) {\n if (str.length < Number(this.truncateLength)) return str\n const charsKeepOneSide = Math.floor((Number(this.truncateLength) - 1) / 2)\n return `${str.slice(0, charsKeepOneSide)}…${str.slice(str.length - charsKeepOneSide)}`\n },\n },\n})\n","import { render, staticRenderFns } from \"./CustomFileInput.vue?vue&type=template&id=b4261b18&scoped=true&\"\nimport script from \"./CustomFileInput.vue?vue&type=script&lang=ts&\"\nexport * from \"./CustomFileInput.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 \"b4261b18\",\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 { VFileInput } from 'vuetify/lib/components/VFileInput';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\ninstallComponents(component, {VFileInput,VIcon})\n"],"sourceRoot":""}