{"version":3,"sources":["webpack:///./node_modules/@glittr/frontend-core/src/plugins/validation/queryBuilder.ts","webpack:///./src/views/pages/app/memberData/memberDataInvoice.vue?7a17","webpack:///./src/services/generated/types/model/resource/MembershipInvoiceSettingsRequestModel.ts","webpack:///./src/services/viewModel/resource/MembershipInvoiceSettingsRequestViewModel.ts","webpack:///./src/views/pages/app/memberData/memberDataInvoice.vue?e77c","webpack:///./src/views/pages/app/memberData/memberDataInvoice.vue?8068","webpack:///./src/views/pages/app/memberData/memberDataInvoice.vue"],"names":["queryBuilder","deepSetProperty","schema","property","value","setRequired","propertyPath","split","currentNode","nodes","forEach","prop","i","properties","type","push","lastNode","length","lastProp","required","constValues","propValues","propsRequired","Object","keys","key","const","if","this","ifNot","not","thenRequired","propNames","then","thenValue","elseRequired","else","elseValue","computedRequired","computedProps","filteredValue","sameAs","isObject","pattern","$validation","REF_PREFIX","nestedProps","render","_vm","_h","$createElement","_c","_self","staticClass","_v","_s","$t","attrs","invoice","membershipPaymentType","model","callback","$$v","$set","expression","intervalType","invoiceSettingsWasChanged","errorResponse","isSaving","on","$event","navigateBackToOverview","saveInvoiceSettings","staticRenderFns","getObjectModel","dto","RequestSummaryResourceViewModel","setObjectModel","paymentType","paymentInterval","comment","transformFromQuery","queries","transformToDTO","summary","getDTO","transformFromDTO","$tEnum","fromDTO","sections","title","items","utils","insertIf","label","displayValue","paymentTypeDisplay","intervalTypeDisplay","extend","auth","data","isLoading","undefined","id","caption","computed","tenant","$route","params","workspace","methods","validate","$service","api","memberships","putMyInvoiceSettings","$router","component"],"mappings":"0MAUMA,EAAe,CACnBC,gBAAA,SAAgBC,EAAqBC,EAAkBC,EAA4BC,G,WAAA,IAAAA,OAAA,GACjF,IAAMC,EAAeH,EAASI,MAAM,KAChCC,EAAoB,OAANN,QAAM,IAANA,IAAU,GACtBO,EAAQ,GACdH,EAAaI,SAAQ,SAACC,EAAMC,G,UAC1BJ,EAAYK,WAAmC,QAAtB,EAAAL,EAAYK,kBAAU,Q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YAAYC,qBAAqBvF,KAAK8B,U,cAA9D,SACA9B,KAAKsC,2BAA4B,E,+BAEjCtC,KAAKuC,cAAgB,E,oBAEvBvC,KAAKwC,UAAW,E,YAElBG,uBAAsB,WACpB3C,KAAKwF,QAAQrG,KAAK,yDC9Gkd,I,YCOtesG,EAAY,eACd,EACAtE,EACA0B,GACA,EACA,KACA,KACA,MAIa,aAAA4C,E","file":"js/chunk-bf20af0a.177dc35d.js","sourcesContent":["import Vue from 'vue';\r\nimport _ from '../../utils';\r\nimport { IJSONSchema } from './IJSONSchema';\r\n\r\ntype PropertiesOptions = Omit & {\r\n required?: boolean,\r\n sameAs?: string\r\n properties?: Record,\r\n};\r\n\r\nconst queryBuilder = {\r\n deepSetProperty(schema: IJSONSchema, property: string, value: Record, setRequired: boolean = false) {\r\n const propertyPath = property.split('.');\r\n let currentNode = schema ?? {};\r\n const nodes = [] as IJSONSchema[];\r\n propertyPath.forEach((prop, i) => {\r\n currentNode.properties = currentNode.properties ?? {};\r\n currentNode.type = currentNode.type ?? 'object';\r\n currentNode.properties[prop] = currentNode.properties[prop] ?? {};\r\n nodes.push(currentNode);\r\n currentNode = currentNode.properties[prop] as IJSONSchema;\r\n });\r\n const lastNode = nodes[nodes.length - 1];\r\n const lastProp = propertyPath[propertyPath.length - 1];\r\n if (setRequired) {\r\n lastNode.required = [...(lastNode.required ?? []), lastProp];\r\n }\r\n if (value) {\r\n lastNode.properties![lastProp] = { ...lastNode.properties![lastProp] as {}, ...value };\r\n }\r\n },\r\n constValues(propValues: Record, propsRequired: boolean = false) {\r\n const schema: IJSONSchema = {};\r\n Object.keys(propValues).forEach((key) => {\r\n this.deepSetProperty(schema, key, { const: propValues[key] }, propsRequired);\r\n });\r\n return schema;\r\n },\r\n if(propValues: Record, propsRequired: boolean = true) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { if: properties };\r\n },\r\n ifNot(propValues: Record, propsRequired: boolean = true) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { if: { not: properties } };\r\n },\r\n thenRequired(propNames: string[]) {\r\n return { then: { required: propNames } };\r\n },\r\n thenValue(propValues: Record, propsRequired: boolean = false) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { then: properties };\r\n },\r\n elseRequired(propNames: string[]) {\r\n return { else: { required: propNames } };\r\n },\r\n elseValue(propValues: Record, propsRequired: boolean = false) {\r\n const properties = this.constValues(propValues, propsRequired);\r\n return { else: properties };\r\n },\r\n\r\n properties(properties: Record) {\r\n const computedRequired = [] as string[];\r\n Object.keys(properties).forEach((key) => {\r\n if (properties[key].required) {\r\n computedRequired.push(key);\r\n }\r\n });\r\n const computedProps = {} as NonNullable;\r\n Object.keys(properties).forEach((key) => {\r\n if (properties[key].type === 'object') {\r\n const nestedProps = properties[key].properties;\r\n computedProps[key] = this.properties(nestedProps as Record);\r\n return;\r\n }\r\n const { required, ...filteredValue } = properties[key];\r\n // In nested cases this has already been converted above, so casting to any here\r\n computedProps[key] = filteredValue as any;\r\n if (filteredValue.sameAs && _.isObject(computedProps[key])) {\r\n (computedProps[key] as IJSONSchema).pattern = `${Vue.$validation.REF_PREFIX}${filteredValue.sameAs}`;\r\n }\r\n });\r\n return {\r\n type: 'object' as IJSONSchema['type'],\r\n required: computedRequired as IJSONSchema['required'],\r\n properties: computedProps as IJSONSchema['properties'],\r\n };\r\n },\r\n};\r\n\r\nexport default queryBuilder;\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-container',[_c('h3',{staticClass:\"mb-3\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.title.changeBillCollection'))+\" \")]),(_vm.isLoading)?_c('p-progress-linear',{attrs:{\"indeterminate\":\"\"}}):[_c('p-form',{attrs:{\"model\":_vm.invoice}},[_c('p-row',[_c('p-col',{attrs:{\"xs12\":\"\",\"md9\":\"\",\"lg6\":\"\",\"xl5\":\"\"}},[_c('p-select',{attrs:{\"label\":_vm.$t('page.memberData.label.paymentType'),\"items\":_vm.membershipPaymentType,\"required\":\"\"},model:{value:(_vm.invoice.paymentType),callback:function ($$v) {_vm.$set(_vm.invoice, \"paymentType\", $$v)},expression:\"invoice.paymentType\"}}),_c('p-select',{attrs:{\"label\":_vm.$t('page.memberData.label.interval'),\"items\":_vm.intervalType,\"required\":\"\"},model:{value:(_vm.invoice.paymentInterval),callback:function ($$v) {_vm.$set(_vm.invoice, \"paymentInterval\", $$v)},expression:\"invoice.paymentInterval\"}}),_c('p-textarea',{staticClass:\"mb-4\",attrs:{\"label\":_vm.$t('page.memberData.label.comment')},model:{value:(_vm.invoice.comment),callback:function ($$v) {_vm.$set(_vm.invoice, \"comment\", $$v)},expression:\"invoice.comment\"}}),_c('p-divider',{staticClass:\"mb-2\"}),_c('p-alert',{attrs:{\"value\":_vm.invoiceSettingsWasChanged,\"type\":\"success\",\"dismissable\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.alert.sendChangesSucessfully'))+\" \")]),_c('p-request-alert',{model:{value:(_vm.errorResponse),callback:function ($$v) {_vm.errorResponse=$$v},expression:\"errorResponse\"}}),_c('p-row',[_c('p-button',{attrs:{\"secondary\":\"\",\"loading\":_vm.isSaving,\"disabled\":_vm.isSaving},on:{\"click\":function($event){return _vm.navigateBackToOverview()}}},[_vm._v(\" \"+_vm._s(_vm.$t('app.toTheOverview'))+\" \")]),_c('p-button',{attrs:{\"primary\":\"\",\"loading\":_vm.isSaving,\"disabled\":_vm.isSaving},on:{\"click\":function($event){return _vm.saveInvoiceSettings()}}},[_vm._v(\" \"+_vm._s(_vm.$t('app.save'))+\" \")])],1)],1)],1)],1)]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// ╭────────────────────────────────────────────────────────────────────────────────────╮\r\n// ┊ This file was automatically generated\r\n// ┊ Please do not modify manually\r\n// ┊ ©gl it 2022 - http://www.gl-it.ch\r\n// ╰────────────────────────────────────────────────────────────────────────────────────╯\r\n\r\nimport BaseModel from '@glittr/frontend-core/src/plugins/servicelayer/serviceTypes/baseModel';\r\nimport RequestSummaryResourceViewModel from '../../../../viewModel/resource/RequestSummaryResourceViewModel';\r\nimport MembershipPaymentTypeViewModel from '../../../../viewModel/resource/MembershipPaymentTypeViewModel';\r\nimport IntervalTypeViewModel from '../../../../viewModel/resource/IntervalTypeViewModel';\r\nimport MembershipInvoiceSettingsRequestDTO from '../../dto/resource/MembershipInvoiceSettingsRequestDTO';\r\n\r\nexport default abstract class MembershipInvoiceSettingsRequestModel extends BaseModel {\r\n /**\r\n */\r\n get summary() { return this.getObjectModel(() => this.dto.summary, RequestSummaryResourceViewModel)!; }\r\n set summary(value) { this.setObjectModel(() => this.dto.summary, value); }\r\n /**\r\n * @type {int32}\r\n */\r\n get paymentType() { return this.dto.paymentType; }\r\n set paymentType(value) { this.dto.paymentType = value; }\r\n /**\r\n * @type {int32}\r\n */\r\n get paymentInterval() { return this.dto.paymentInterval; }\r\n set paymentInterval(value) { this.dto.paymentInterval = value; }\r\n /**\r\n */\r\n get comment() { return this.dto.comment; }\r\n set comment(value) { this.dto.comment = value; }\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n this.dto.comment = queries.comment;\r\n }\r\n}\r\n","import { IJSONSchema } from '@glittr/frontend-core/src/plugins/validation/IJSONSchema';\r\nimport queryBuilder from '@glittr/frontend-core/src/plugins/validation/queryBuilder';\r\nimport Vue from 'vue';\r\nimport MembershipInvoiceSettingsRequestModel from '../../generated/types/model/resource/MembershipInvoiceSettingsRequestModel';\r\nimport utils from '../utils';\r\nimport RequestSummaryResourceViewModel from './RequestSummaryResourceViewModel';\r\n\r\nexport default class MembershipInvoiceSettingsRequestViewModel extends MembershipInvoiceSettingsRequestModel {\r\n protected transformToDTO() {\r\n this.dto.summary = this.summary.getDTO();\r\n }\r\n protected transformFromDTO() {}\r\n\r\n schema: IJSONSchema = {\r\n ...queryBuilder.properties({\r\n paymentType: { required: true },\r\n paymentInterval: { required: true },\r\n }),\r\n };\r\n\r\n get paymentTypeDisplay() { return Vue.$tEnum('page.memberData.table.paymentTypeEnum', this.paymentType!); }\r\n get intervalTypeDisplay() { return Vue.$tEnum('page.memberData.table.intervalTypeEnum', this.paymentInterval!); }\r\n\r\n get summary(): RequestSummaryResourceViewModel {\r\n return new RequestSummaryResourceViewModel().fromDTO({\r\n sections: [\r\n {\r\n title: Vue.$t('page.memberData.title.changeBillCollection'),\r\n items: [\r\n {\r\n ...utils.insertIf(!!this.paymentType || this.paymentType === 0, {\r\n label: Vue.$t('page.memberData.label.paymentType'),\r\n displayValue: this.paymentTypeDisplay,\r\n }),\r\n },\r\n {\r\n ...utils.insertIf(!!this.paymentInterval || this.paymentInterval === 0, {\r\n label: Vue.$t('page.memberData.label.interval'),\r\n displayValue: this.intervalTypeDisplay,\r\n }),\r\n },\r\n {\r\n ...utils.insertIf(!!this.comment, {\r\n label: Vue.$t('page.memberData.label.comment'),\r\n displayValue: this.comment,\r\n }),\r\n },\r\n ],\r\n },\r\n ],\r\n });\r\n }\r\n}\r\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 Vue from 'vue';\nimport MembershipInvoiceSettingsRequestViewModel from '@/src/services/viewModel/resource/MembershipInvoiceSettingsRequestViewModel';\n\nexport default Vue.extend({\n auth: true,\n data: () => ({\n isSaving: false,\n isLoading: false,\n invoiceSettingsWasChanged: false,\n invoice: new MembershipInvoiceSettingsRequestViewModel(),\n errorResponse: undefined as string | undefined,\n membershipPaymentType: [\n { id: 0, caption: Vue.$tEnum('page.memberData.table.paymentTypeEnum', 0) },\n { id: 1, caption: Vue.$tEnum('page.memberData.table.paymentTypeEnum', 1) },\n { id: 2, caption: Vue.$tEnum('page.memberData.table.paymentTypeEnum', 2) },\n ],\n intervalType: [\n { id: 0, caption: Vue.$tEnum('page.memberData.table.intervalTypeEnum', 0) },\n { id: 1, caption: Vue.$tEnum('page.memberData.table.intervalTypeEnum', 1) },\n { id: 2, caption: Vue.$tEnum('page.memberData.table.intervalTypeEnum', 2) },\n { id: 3, caption: Vue.$tEnum('page.memberData.table.intervalTypeEnum', 3) },\n { id: 4, caption: Vue.$tEnum('page.memberData.table.intervalTypeEnum', 4) },\n ],\n }),\n computed: {\n tenant() {\n return this.$route.params.tenant;\n },\n workspace() {\n return this.$route.params.workspace;\n },\n },\n methods: {\n async saveInvoiceSettings() {\n if (!this.invoice.validate()) {\n return;\n }\n this.isSaving = true;\n this.errorResponse = '';\n this.invoiceSettingsWasChanged = false;\n try {\n await this.$service.api.memberships.putMyInvoiceSettings(this.invoice);\n this.invoiceSettingsWasChanged = true;\n } catch (error: any) {\n this.errorResponse = error;\n }\n this.isSaving = false;\n },\n navigateBackToOverview() {\n this.$router.push('/syna/memberPortal/member-data/member-data-change');\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/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./memberDataInvoice.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/@vue/cli-plugin-typescript/node_modules/ts-loader/index.js??ref--14-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./memberDataInvoice.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./memberDataInvoice.vue?vue&type=template&id=ab9f079c&\"\nimport script from \"./memberDataInvoice.vue?vue&type=script&lang=ts&\"\nexport * from \"./memberDataInvoice.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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}