{"version":3,"sources":["webpack:///./src/views/pages/app/memberData/memberDataCoopMultiLegalProtection.vue?a563","webpack:///./src/services/generated/types/model/resource/CancelLegalProtectionRequestModel.ts","webpack:///./src/services/viewModel/resource/CancelLegalProtectionRequestViewModel.ts","webpack:///./src/services/generated/types/model/resource/LegalProtectionActivationRequestModel.ts","webpack:///./src/services/viewModel/resource/LegalProtectionActivationRequestViewModel.ts","webpack:///./src/views/pages/app/memberData/memberDataCoopMultiLegalProtection.vue?521c","webpack:///./src/views/pages/app/memberData/memberDataCoopMultiLegalProtection.vue?1bf7","webpack:///./src/views/pages/app/memberData/memberDataCoopMultiLegalProtection.vue","webpack:///./node_modules/@glittr/frontend-core/src/plugins/validation/queryBuilder.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","legalProtectionActivation","memberIsInsured","_e","staticClass","_v","_s","$t","model","value","callback","$$v","$set","expression","legalProtectionHasBeenCreated","errorResponse","isSaving","on","$event","navigateBackToOverview","addCoopLegalProtection","cancelLegalProtection","legalProtectionHasBeenCancelled","cancelCoopLegalProtection","staticRenderFns","getObjectModel","dto","RequestSummaryResourceViewModel","setObjectModel","cancellationDate","comment","reasonForTermination","transformFromQuery","queries","schema","queryBuilder","properties","required","transformToDTO","summary","getDTO","transformFromDTO","fromDTO","sections","title","items","utils","insertIf","label","displayValue","$format","localDate","wishedActivationDate","gotOtherSupplier","undefined","extend","auth","data","isLoading","computed","tenant","$route","params","workspace","mounted","$service","api","memberships","getMyMembership","membershipData","membership","hasMultiLegalProtection","methods","$router","push","validate","cancelMyLegalProtection","createMyLegalProtection","component","deepSetProperty","property","setRequired","propertyPath","split","currentNode","nodes","forEach","prop","i","type","lastNode","length","lastProp","constValues","propValues","propsRequired","Object","keys","key","const","if","ifNot","not","thenRequired","propNames","then","thenValue","elseRequired","else","elseValue","computedRequired","computedProps","filteredValue","sameAs","isObject","pattern","$validation","REF_PREFIX","nestedProps"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAI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c,EACjBA,EAAcC,QAAU,OAAEC,SAASH,EAAcb,MAClDa,EAAcb,GAAqBiB,QAAU,UAAG,OAAIC,YAAYC,YAAU,OAAGL,EAAcC,aAT9F,CACE,IAAMK,EAAc,EAAWpB,GAAK9D,WACpC2E,EAAcb,GAAO,EAAK9D,WAAWkF,OAUlC,CACL7B,KAAM,SACNpD,SAAUyE,EACV1E,WAAY2E,KAKH","file":"js/chunk-5cf69de3.7ac98e2f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p-container',[(_vm.isLoading)?_c('p-progress-linear',{attrs:{\"indeterminate\":\"\"}}):[_c('p-form',{attrs:{\"model\":_vm.legalProtectionActivation}},[_c('p-row',[(!_vm.memberIsInsured)?_c('p-col',{attrs:{\"xs12\":\"\",\"md9\":\"\",\"lg6\":\"\",\"xl5\":\"\"}},[_c('h3',{staticClass:\"mb-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.title.applyCoopLegalProtection'))+\" \")]),_c('a',{attrs:{\"href\":_vm.$t('link.linkToCoopBrochurePDF'),\"target\":\"_blank\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.label.brochureCoopLegalProtection'))+\" \")]),_c('p-date-field',{staticClass:\"mt-3\",attrs:{\"label\":_vm.$t('page.memberData.label.accessionDate'),\"required\":\"\"},model:{value:(_vm.legalProtectionActivation.wishedActivationDate),callback:function ($$v) {_vm.$set(_vm.legalProtectionActivation, \"wishedActivationDate\", $$v)},expression:\"legalProtectionActivation.wishedActivationDate\"}}),_c('p-checkbox',{attrs:{\"label\":_vm.$t('page.memberData.label.otherSupplier')},model:{value:(_vm.legalProtectionActivation.gotOtherSupplier),callback:function ($$v) {_vm.$set(_vm.legalProtectionActivation, \"gotOtherSupplier\", $$v)},expression:\"legalProtectionActivation.gotOtherSupplier\"}}),_c('p-textarea',{staticClass:\"mb-3\",attrs:{\"label\":_vm.$t('page.memberData.label.comment')},model:{value:(_vm.legalProtectionActivation.comment),callback:function ($$v) {_vm.$set(_vm.legalProtectionActivation, \"comment\", $$v)},expression:\"legalProtectionActivation.comment\"}}),_c('p-divider',{staticClass:\"mb-2\"}),_c('p-alert',{attrs:{\"value\":_vm.legalProtectionHasBeenCreated,\"type\":\"success\",\"dismissable\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.alert.legalProtectionWasCreated'))+\" \")]),_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.addCoopLegalProtection()}}},[_vm._v(\" \"+_vm._s(_vm.$t('app.save'))+\" \")])],1)],1):_vm._e()],1)],1),_c('p-form',{attrs:{\"model\":_vm.cancelLegalProtection}},[_c('p-row',[(_vm.memberIsInsured)?_c('p-col',{attrs:{\"xs12\":\"\",\"md9\":\"\",\"lg6\":\"\",\"xl5\":\"\"}},[_c('h3',{staticClass:\"mb-4\"},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.title.cancelCoopLegalProtection'))+\" \")]),_c('p-textarea',{attrs:{\"label\":_vm.$t('page.memberData.label.reasonForTermination'),\"required\":\"\"},model:{value:(_vm.cancelLegalProtection.reasonForTermination),callback:function ($$v) {_vm.$set(_vm.cancelLegalProtection, \"reasonForTermination\", $$v)},expression:\"cancelLegalProtection.reasonForTermination\"}}),_c('p-date-field',{attrs:{\"label\":_vm.$t('page.memberData.label.cancellationDate'),\"required\":\"\"},model:{value:(_vm.cancelLegalProtection.cancellationDate),callback:function ($$v) {_vm.$set(_vm.cancelLegalProtection, \"cancellationDate\", $$v)},expression:\"cancelLegalProtection.cancellationDate\"}}),_c('p-textarea',{staticClass:\"mb-3\",attrs:{\"label\":_vm.$t('page.memberData.label.comment')},model:{value:(_vm.cancelLegalProtection.comment),callback:function ($$v) {_vm.$set(_vm.cancelLegalProtection, \"comment\", $$v)},expression:\"cancelLegalProtection.comment\"}}),_c('p-divider',{staticClass:\"mb-2\"}),_c('p-alert',{attrs:{\"value\":_vm.legalProtectionHasBeenCancelled,\"type\":\"success\",\"dismissable\":\"\"}},[_vm._v(\" \"+_vm._s(_vm.$t('page.memberData.alert.legalProtectionWasCancelled'))+\" \")]),_c('p-request-alert',{model:{value:(_vm.errorResponse),callback:function ($$v) {_vm.errorResponse=$$v},expression:\"errorResponse\"}}),_c('p-row',[_c('p-button',{staticClass:\"mb-3 mr-3\",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',{staticClass:\"mb-3\",attrs:{\"primary\":\"\",\"loading\":_vm.isSaving,\"disabled\":_vm.isSaving},on:{\"click\":function($event){return _vm.cancelCoopLegalProtection()}}},[_vm._v(\" \"+_vm._s(_vm.$t('app.save'))+\" \")])],1)],1):_vm._e()],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 CancelLegalProtectionRequestDTO from '../../dto/resource/CancelLegalProtectionRequestDTO';\r\n\r\nexport default abstract class CancelLegalProtectionRequestModel 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 {date-time}\r\n */\r\n get cancellationDate() { return this.dto.cancellationDate; }\r\n set cancellationDate(value) { this.dto.cancellationDate = 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 */\r\n get reasonForTermination() { return this.dto.reasonForTermination; }\r\n set reasonForTermination(value) { this.dto.reasonForTermination = value; }\r\n\r\n protected transformFromQuery(queries: Record): void {\r\n let value: any;\r\n this.dto.cancellationDate = queries.cancellationDate;\r\n this.dto.comment = queries.comment;\r\n this.dto.reasonForTermination = queries.reasonForTermination;\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 CancelLegalProtectionRequestModel from '../../generated/types/model/resource/CancelLegalProtectionRequestModel';\r\nimport utils from '../utils';\r\nimport RequestSummaryResourceViewModel from './RequestSummaryResourceViewModel';\r\n\r\nexport default class CancelLegalProtectionRequestViewModel extends CancelLegalProtectionRequestModel {\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 reasonForTermination: { required: true },\r\n cancellationDate: { required: true },\r\n }),\r\n };\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.cancelCoopLegalProtection'),\r\n items: [\r\n {\r\n ...utils.insertIf(!!this.reasonForTermination, {\r\n label: Vue.$t('page.memberData.label.reasonForTermination'),\r\n displayValue: this.reasonForTermination,\r\n }),\r\n },\r\n {\r\n ...utils.insertIf(!!this.cancellationDate, {\r\n label: Vue.$t('page.memberData.label.cancellationDate'),\r\n displayValue: Vue.$format.localDate(this.cancellationDate!),\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}\r\n","// ╭────────────────────────────────────────────────────────────────────────────────────╮\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 LegalProtectionActivationRequestDTO from '../../dto/resource/LegalProtectionActivationRequestDTO';\r\n\r\nexport default abstract class LegalProtectionActivationRequestModel 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 {date-time}\r\n */\r\n get wishedActivationDate() { return this.dto.wishedActivationDate; }\r\n set wishedActivationDate(value) { this.dto.wishedActivationDate = value; }\r\n /**\r\n */\r\n get gotOtherSupplier() { return this.dto.gotOtherSupplier; }\r\n set gotOtherSupplier(value) { this.dto.gotOtherSupplier = 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.wishedActivationDate = queries.wishedActivationDate;\r\n value = queries.gotOtherSupplier === 'true' ? true : queries.gotOtherSupplier;\r\n value = queries.gotOtherSupplier === 'false' ? false : undefined;\r\n this.dto.gotOtherSupplier = value;\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 LegalProtectionActivationRequestModel from '../../generated/types/model/resource/LegalProtectionActivationRequestModel';\r\nimport utils from '../utils';\r\nimport RequestSummaryResourceViewModel from './RequestSummaryResourceViewModel';\r\n\r\nexport default class LegalProtectionActivationRequestViewModel extends LegalProtectionActivationRequestModel {\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 wishedActivationDate: { required: true },\r\n }),\r\n };\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.applyCoopLegalProtection'),\r\n items: [\r\n {\r\n ...utils.insertIf(!!this.wishedActivationDate, {\r\n label: Vue.$t('page.memberData.label.accessionDate'),\r\n displayValue: Vue.$format.localDate(this.wishedActivationDate!),\r\n }),\r\n },\r\n {\r\n ...utils.insertIf(!!this.gotOtherSupplier, {\r\n label: Vue.$t('page.memberData.label.otherSupplier'),\r\n displayValue: this.gotOtherSupplier ? Vue.$t('app.yes') : Vue.$t('app.no'),\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}\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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 CancelLegalProtectionRequestViewModel from '@/src/services/viewModel/resource/CancelLegalProtectionRequestViewModel';\nimport LegalProtectionActivationRequestViewModel from '@/src/services/viewModel/resource/LegalProtectionActivationRequestViewModel';\n\nexport default Vue.extend({\n auth: true,\n data: () => ({\n isSaving: false,\n memberIsInsured: true,\n legalProtectionHasBeenCancelled: false,\n legalProtectionHasBeenCreated: false,\n errorResponse: undefined as string | undefined,\n legalProtectionActivation: new LegalProtectionActivationRequestViewModel(),\n cancelLegalProtection: new CancelLegalProtectionRequestViewModel(),\n isLoading: false,\n }),\n computed: {\n tenant() {\n return this.$route.params.tenant;\n },\n workspace() {\n return this.$route.params.workspace;\n },\n },\n async mounted() {\n this.isLoading = true;\n const membershipData = await this.$service.api.memberships.getMyMembership();\n this.memberIsInsured = membershipData?.membership?.hasMultiLegalProtection as boolean;\n this.isLoading = false;\n },\n methods: {\n navigateBackToOverview() {\n this.$router.push('/syna/memberPortal/member-data/member-data-change');\n },\n async cancelCoopLegalProtection() {\n if (!this.cancelLegalProtection.validate()) {\n return;\n }\n this.isSaving = true;\n this.legalProtectionHasBeenCancelled = false;\n this.errorResponse = '';\n try {\n await this.$service.api.memberships.cancelMyLegalProtection(this.cancelLegalProtection);\n this.legalProtectionHasBeenCancelled = true;\n } catch (error: any) {\n this.errorResponse = error;\n }\n this.isSaving = false;\n },\n async addCoopLegalProtection() {\n if (!this.legalProtectionActivation.validate()) {\n return;\n }\n this.isSaving = true;\n this.legalProtectionHasBeenCreated = false;\n this.errorResponse = '';\n try {\n await this.$service.api.memberships.createMyLegalProtection(this.legalProtectionActivation);\n this.legalProtectionHasBeenCreated = true;\n } catch (error: any) {\n this.errorResponse = error;\n }\n this.isSaving = false;\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!./memberDataCoopMultiLegalProtection.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!./memberDataCoopMultiLegalProtection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./memberDataCoopMultiLegalProtection.vue?vue&type=template&id=28687046&\"\nimport script from \"./memberDataCoopMultiLegalProtection.vue?vue&type=script&lang=ts&\"\nexport * from \"./memberDataCoopMultiLegalProtection.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","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"],"sourceRoot":""}