{"version":3,"sources":["webpack:///./src/components/inputs/InputCheckbox/InputCheckbox.scss?d66c","webpack:///./src/components/inputs/InputCheckbox/InputCheckbox.vue?a7c2","webpack:///./src/components/inputs/InputCheckbox/InputCheckbox.ts","webpack:///./src/components/inputs/InputCheckbox/InputCheckbox.ts?0da4","webpack:///./src/components/inputs/InputCheckbox/InputCheckbox.vue","webpack:///./src/components/inputs/InputText/InputText.vue?3b1c","webpack:///./src/components/inputs/InputText/InputText.ts","webpack:///./src/components/inputs/InputText/InputText.ts?f5a8","webpack:///./src/components/inputs/InputText/InputText.vue","webpack:///./src/services/documentService.ts","webpack:///./src/components/inputs/InputNumber/InputNumber.scss?faaa","webpack:///./src/components/Question/Question.vue?563a","webpack:///./src/components/Question/Question.ts","webpack:///./src/components/Question/Question.ts?b793","webpack:///./src/components/Question/Question.vue","webpack:///./src/components/inputs/InputRadioButton/InputRadioButton.vue?0b24","webpack:///./src/components/inputs/InputRadioButton/InputRadioButton.ts","webpack:///./src/components/inputs/InputRadioButton/InputRadioButton.ts?dde5","webpack:///./src/components/inputs/InputRadioButton/InputRadioButton.vue","webpack:///./src/components/inputs/InputNumber/InputNumber.vue?54b1","webpack:///./src/components/inputs/InputNumber/InputNumber.ts","webpack:///./src/components/inputs/InputNumber/InputNumber.ts?a189","webpack:///./src/components/inputs/InputNumber/InputNumber.vue","webpack:///./src/components/Question/Question.scss?bb7f"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","inputType","name","randomId","required","disabled","readonly","placeholder","domProps","checked","on","onChange","_v","_s","$t","label","secondLabel","length","_e","staticRenderFns","InputCheckbox","_InputBase","_this","_classCallCheck","_inherits","_createClass","key","value","event","currentTarget","$emit","oldValue","undefined","InputBase","__decorate","Prop","Component","component","class","maxlength","$event","target","InputText","_possibleConstructorReturn","_getPrototypeOf","apply","arguments","default","DocumentService","_getDocumentFromBackend","_asyncToGenerator","regeneratorRuntime","mark","_callee","partId","language","type","handlerSuccessEnabled","url","_args","wrap","_context","prev","next","concat","endpoint","ApiService","getFileFromBackend","then","response","abrupt","sent","stop","getDocumentFromBackend","_x","_x2","_x3","_preparePDF","_callee2","locale","isRefusalOrExclusion","route","isParticipant","isPharmacist","isDoctor","pharmacistOrderFitActivated","followUpType","_context2","isInRoleLocal","McsisRole","Participant","isInRole","Pharmacist","Doctor","isPharmacistFitOrderActivated","store","state","isColonoscopyMode","inclusionType","InclusionTypes","fit","getTemplateAndPreparePDF","TemplateTypes","ConfirmationFIT","colo","ConfirmationColo","ConfirmationNonParticipation","FollowUpColo","FollowUpFIT","preparePDF","_x4","_x5","_x6","_x7","_getTemplateAndPreparePDF","_callee3","templateType","res","_context3","BlobConverter","saveBlobToLocalStorage","t0","log","_x8","_x9","_x10","get","process","question","booleanType","staticStyle","secondaryLabel","answer","changeAnswer","model","callback","$$v","$set","expression","_l","choice","minDate","maxDate","preventDefault","minMonth","maxMonth","minValue","maxValue","onIsInputNumberValid","subQuestions","subQuestion","indexOf","_k","keyCode","exclusionLabel","Question","_Vue","oldvalue","validator","validatorConfigItem","years","Number","moment","subtract","format","Vue","Watch","immediate","deep","components","InputRadioButton","InputDate","InputNumber","option","checkRangeValue","preventNonNumericalInput","preventNonNumericalPaste","errorMsg","error","resetInputValidity","e","window","charCode","_typeof","which","charStr","String","fromCharCode","match","nb","paste","clipboardData","getData","isNaN","replace","currValue","slice","selectionStart","selectionEnd","inputNumber","minInput","maxInput","setInputValidity"],"mappings":"kHAAA,yBAAid,EAAG,G,kCCApd,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,6BAA6B,CAACF,EAAG,QAAQ,CAACG,MAAM,CAAC,KAAOP,EAAIQ,UAAU,KAAOR,EAAIS,KAAK,GAAKT,EAAIU,SAAS,SAAWV,EAAIW,SAAS,SAAWX,EAAIY,UAAYZ,EAAIa,SAAS,YAAcb,EAAIc,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AK,CAAEY,QAAS,GAAI3C,UAAU,K,+BAHZwK,EAAW1I,eAAA,CAD/BE,QACoBwI,WCLmR,I,wBCQpSvI,EAAY,eACd,EACA7C,EACA2B,GACA,EACA,KACA,KACA,MAIa,OAAAkB,E,oECnBf,yBAA6b,EAAG,G","file":"js/chunk-188713cf.js","sourcesContent":["import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.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!./InputCheckbox.scss?vue&type=style&index=0&id=54a5bede&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/index.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!./InputCheckbox.scss?vue&type=style&index=0&id=54a5bede&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-base input-checkbox\"},[_c('input',{attrs:{\"type\":_vm.inputType,\"name\":_vm.name,\"id\":_vm.randomId,\"required\":_vm.required,\"disabled\":_vm.disabled || _vm.readonly,\"placeholder\":_vm.placeholder},domProps:{\"checked\":_vm.checked},on:{\"input\":_vm.onChange}}),_c('label',{staticClass:\"cb-label-1\",attrs:{\"for\":_vm.randomId}},[_vm._v(_vm._s(_vm.$t(_vm.label)))]),(_vm.secondLabel && _vm.secondLabel.length > 0)?_c('label',{staticClass:\"cb-label-2\",attrs:{\"for\":_vm.randomId}},[_c('p',[_c('i',[_vm._v(_vm._s(_vm.$t(_vm.secondLabel)))])])]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop, Vue } from 'vue-property-decorator';\r\nimport InputBase from '@/components/inputs/base/InputBase';\r\n\r\n@Component\r\nexport default class InputCheckbox extends InputBase {\r\n @Prop() public secondLabel?: string;\r\n private checked?: boolean = false;\r\n\r\n protected mounted() {\r\n this.inputType = 'checkbox';\r\n this.checked = (this.value === true);\r\n }\r\n\r\n protected onChange(event: any) {\r\n this.checked = event.currentTarget.checked;\r\n this.$emit('input', event.currentTarget.checked);\r\n }\r\n\r\n /**\r\n * Override onValueChanged from InputBase\r\n */\r\n protected onValueChanged(value: boolean, oldValue: boolean) {\r\n if (oldValue !== value && value !== undefined) {\r\n this.checked = (this.value === true);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputCheckbox.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputCheckbox.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InputCheckbox.vue?vue&type=template&id=54a5bede&scoped=true&\"\nimport script from \"./InputCheckbox.ts?vue&type=script&lang=ts&\"\nexport * from \"./InputCheckbox.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./InputCheckbox.scss?vue&type=style&index=0&id=54a5bede&lang=scss&scoped=true&\"\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 \"54a5bede\",\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',{staticClass:\"input-base input-text\",class:[ _vm.required === false ? '' : 'input-required']},[(_vm.label && _vm.label.length > 0)?_c('label',{attrs:{\"for\":_vm.randomId}},[_vm._v(_vm._s(_vm.$t(_vm.label)))]):_vm._e(),_c('div',[(_vm.readonly)?_c('span',{attrs:{\"name\":_vm.name}},[_vm._v(_vm._s(_vm.value))]):_vm._e(),(!_vm.readonly)?_c('input',{attrs:{\"type\":_vm.inputType,\"name\":_vm.name,\"id\":_vm.randomId,\"required\":_vm.required,\"disabled\":_vm.disabled,\"placeholder\":_vm.placeholder,\"maxlength\":_vm.maxlength},domProps:{\"value\":_vm.value},on:{\"input\":function($event){return _vm.$emit('input', $event.target.value)}}}):_vm._e(),_c('span',{staticClass:\"validity\"})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport InputBase from '@/components/inputs/base/InputBase';\r\n\r\n@Component\r\nexport default class InputText extends InputBase {\r\n // default maxlength of an input: https://www.w3schools.com/tags/att_input_maxlength.asp\r\n @Prop({default: 524288, required: false}) public maxlength?: number;\r\n protected mounted() {\r\n this.inputType = 'text';\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputText.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputText.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InputText.vue?vue&type=template&id=6fad2d20&\"\nimport script from \"./InputText.ts?vue&type=script&lang=ts&\"\nexport * from \"./InputText.ts?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 ApiService from './api.service';\r\nimport { FileDataInterface } from '@/store/interfaces/filedata.interface';\r\nimport { store } from '@/store/store';\r\nimport { McsisRole } from '@/models/constants/McsisRole';\r\nimport { isInRole as isInRoleLocal } from '@/plugins/auth';\r\nimport { InclusionTypes, TemplateTypes } from '@/models/VariousEnum';\r\nimport BlobConverter from '@/utils/blobconverter';\r\nimport { isPharmacistFitOrderActivated } from '@/config/app.config';\r\n\r\nexport default class DocumentService {\r\n public static get endpoint(): string {\r\n return process.env.VUE_APP_PUBLIC_ROOT_API;\r\n }\r\n\r\n /**\r\n * Get file object\r\n *\r\n * @returns {IFileData} a file object\r\n * @throws ApiError\r\n */\r\n public static async getDocumentFromBackend(partId: number,\r\n language: string, type: string,\r\n handlerSuccessEnabled: boolean = false): Promise {\r\n\r\n const url = `${this.endpoint}/Participants/${partId}/documents/document`;\r\n\r\n return await ApiService.getFileFromBackend(url, { language, type }, `document_${type}`, handlerSuccessEnabled)\r\n .then((response: FileDataInterface) => {\r\n return response;\r\n });\r\n }\r\n\r\n /**\r\n * Prepare the PDF file for the user (participant or pro user)\r\n * @param partId The participant ID\r\n * @param locale The current i18n locale\r\n * @param isRefusalOrExclusion True in case it's a refusal or an exlcusion\r\n */\r\n public static async preparePDF(\r\n partId: number,\r\n locale: string,\r\n isRefusalOrExclusion: boolean,\r\n route: string): Promise {\r\n const isParticipant = await isInRoleLocal(McsisRole.Participant).then((isInRole: boolean) => isInRole );\r\n const isPharmacist = await isInRoleLocal(McsisRole.Pharmacist).then((isInRole: boolean) => isInRole );\r\n const isDoctor = await isInRoleLocal(McsisRole.Doctor).then((isInRole: boolean) => isInRole );\r\n const pharmacistOrderFitActivated = isPharmacistFitOrderActivated(route);\r\n\r\n if (isParticipant) {\r\n if (store.state.isColonoscopyMode) {\r\n // Colonoscopy mode: in this case we must download prepare a confirmation PDF (if any configured)\r\n if (!isRefusalOrExclusion) {\r\n if (store.state.inclusionType === InclusionTypes.fit) {\r\n // prepare confirmation document for FIT\r\n await this.getTemplateAndPreparePDF(partId, locale, TemplateTypes.ConfirmationFIT);\r\n }\r\n if (store.state.inclusionType === InclusionTypes.colo) {\r\n // prepare confirmation document for colo\r\n await this.getTemplateAndPreparePDF(partId, locale, TemplateTypes.ConfirmationColo);\r\n }\r\n } else {\r\n // prepare confirmation document for non-participation\r\n await this.getTemplateAndPreparePDF(partId, locale, TemplateTypes.ConfirmationNonParticipation);\r\n }\r\n\r\n } else {\r\n // Classic mode: just send to the queue and redirect to confirmation page\r\n // => no template to prepare for this case.\r\n }\r\n } else if (pharmacistOrderFitActivated && isPharmacist) {\r\n await this.getTemplateAndPreparePDF(partId, locale, TemplateTypes.ConfirmationFIT);\r\n } else {\r\n const followUpType = isDoctor ? TemplateTypes.FollowUpColo : TemplateTypes.FollowUpFIT;\r\n\r\n // Doctor: Only print follow up colo, they are ordering a FIT and they don't need a follow up FIT\r\n // Pharmacist: Only print follow up FIT because they give the FIT directly\r\n await this.getTemplateAndPreparePDF(partId, locale, followUpType);\r\n }\r\n }\r\n\r\n /**\r\n * Get the template by its type, and if it exists save it into the localStorage\r\n * @param partId The participant ID\r\n * @param locale The current i18n locale\r\n * @param templateType The template type\r\n */\r\n private static async getTemplateAndPreparePDF(partId: number, locale: string, templateType: string): Promise {\r\n try {\r\n const res = await this.getDocumentFromBackend(partId, locale, templateType);\r\n BlobConverter.saveBlobToLocalStorage(res);\r\n } catch {\r\n // @ts-ignore\r\n log(`No template: ${templateType}`);\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.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!./InputNumber.scss?vue&type=style&index=0&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/index.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!./InputNumber.scss?vue&type=style&index=0&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"question\",class:_vm.question.type},[(_vm.question.type === 'boolean' && _vm.booleanType !== 'checkbox' || _vm.question.type === 'Choices')?_c('div',[_c('p',[_c('strong',[_vm._v(_vm._s(_vm.$t('question.' + _vm.question.label))),(_vm.question.required)?_c('span',{staticStyle:{\"color\":\"red\"}},[_vm._v(\" *\")]):_vm._e()])]),(_vm.question.secondaryLabel !== null)?_c('p',{staticClass:\"secondary-label\"},[_vm._v(_vm._s(_vm.$t('question.' + _vm.question.secondaryLabel)))]):_vm._e()]):_vm._e(),(_vm.readonly)?_c('div',[(_vm.question.type === 'boolean' && _vm.question.answer === '1')?_c('div',[_vm._v(_vm._s(_vm.$t('question.yes')))]):(_vm.question.type === 'boolean' && _vm.question.answer === '0')?_c('div',[_vm._v(_vm._s(_vm.$t('question.no')))]):_c('div',[_vm._v(_vm._s(_vm.$t('question.' + _vm.question.answer)))])]):_c('div',[(_vm.question.type === 'boolean' && _vm.booleanType === 'checkbox')?_c('div',[_c('InputCheckbox',{attrs:{\"name\":_vm.question.label,\"readonly\":_vm.readonly,\"label\":_vm.$t('question.' + _vm.question.label)},on:{\"input\":_vm.changeAnswer},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}})],1):_vm._e(),(_vm.question.type === 'boolean' && _vm.booleanType === 'radioButton')?_c('div',{staticClass:\"radio-button-group\"},[_c('InputRadioButton',{attrs:{\"label\":_vm.$t('question.yes'),\"name\":_vm.question.label,\"required\":_vm.question.required,\"readonly\":_vm.readonly,\"option\":\"1\"},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}}),_c('InputRadioButton',{attrs:{\"label\":_vm.$t('question.no'),\"name\":_vm.question.label,\"required\":_vm.question.required,\"readonly\":_vm.readonly,\"option\":\"0\"},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}})],1):_vm._e(),(_vm.question.type === 'Choices')?_c('div',_vm._l((_vm.question.choicesLabel),function(choice){return _c('div',{key:choice.label},[_c('InputRadioButton',{attrs:{\"label\":_vm.$t('question.' + choice),\"name\":_vm.question.label,\"required\":_vm.question.required,\"readonly\":_vm.readonly,\"option\":choice},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}})],1)}),0):_vm._e(),(_vm.question.type === 'Date')?_c('div',[_c('InputDate',{attrs:{\"label\":_vm.$t('question.' + _vm.question.label),\"name\":_vm.question.label,\"placeholder\":_vm.$t('input.example') + '01.01.1960',\"readonly\":_vm.readonly,\"required\":_vm.question.required,\"min\":_vm.minDate,\"max\":_vm.maxDate},on:{\"submit\":function($event){$event.preventDefault();}},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}})],1):_vm._e(),(_vm.question.type === 'Text')?_c('div',[_c('InputText',{attrs:{\"label\":_vm.$t('question.' + _vm.question.label),\"name\":_vm.question.label,\"readonly\":_vm.readonly,\"required\":_vm.question.required},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}})],1):_vm._e(),(_vm.question.type === 'Number' && _vm.question.label === 'ParticipationAfterXMonth')?_c('div',[_c('InputNumber',{attrs:{\"label\":_vm.$t('question.' + _vm.question.label),\"name\":_vm.question.label,\"readonly\":_vm.readonly,\"required\":_vm.question.required,\"placeholder\":'1-24',\"min-input\":_vm.minMonth,\"max-input\":_vm.maxMonth,\"error-msg\":_vm.$t('errorMgs.postponeParticipation', { minValue: _vm.minMonth, maxValue: _vm.maxMonth })},on:{\"is-input-number-valid\":_vm.onIsInputNumberValid},model:{value:(_vm.question.answer),callback:function ($$v) {_vm.$set(_vm.question, \"answer\", $$v)},expression:\"question.answer\"}})],1):_vm._e()]),(_vm.question.subQuestions && _vm.question.subQuestions.length > 0 && _vm.question.answer === '1')?_c('div',{staticClass:\"sub-questions\"},_vm._l((_vm.question.subQuestions),function(subQuestion){return _c('Question',{key:subQuestion.label,attrs:{\"question\":subQuestion,\"readonly\":_vm.readonly,\"boolean-type\":_vm.booleanType},on:{\"is-input-number-valid\":_vm.onIsInputNumberValid,\"keypress\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return false($event)}}})}),1):_vm._e(),(_vm.booleanType !== 'checkbox')?_c('transition',{attrs:{\"name\":\"pop\"}},[(_vm.question.answer === '1' && _vm.question.exclusionLabel !== null)?_c('div',{staticClass:\"exclusion-label\"},[_vm._v(_vm._s(_vm.$t('question.' + _vm.question.exclusionLabel)))]):_vm._e()]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport { QuestionDTO } from '@/models/QuestionDTO';\r\nimport InputRadioButton from '@/components/inputs/InputRadioButton/InputRadioButton';\r\nimport InputText from '@/components/inputs/InputText/InputText';\r\nimport InputDate from '@/components/inputs/InputDate/InputDate';\r\nimport InputCheckbox from '@/components/inputs/InputCheckbox/InputCheckbox';\r\nimport moment from 'moment';\r\nimport { WatchOptions } from 'vue';\r\nimport InputNumber from '@/components/inputs/InputNumber/InputNumber';\r\n\r\n@Component({\r\n name: 'Question',\r\n components: {\r\n InputRadioButton,\r\n InputText,\r\n InputCheckbox,\r\n InputDate,\r\n InputNumber,\r\n },\r\n})\r\nexport default class Question extends Vue {\r\n @Prop() public booleanType?: string; // can be either \"radioButton\" or \"checkbox\"\r\n @Prop() private question: QuestionDTO | undefined;\r\n @Prop({ default: false }) private readonly?: boolean;\r\n\r\n private minDate?: string;\r\n private maxDate?: string;\r\n private minMonth?: number;\r\n private maxMonth?: number;\r\n\r\n // called by InputCheckbox component\r\n public changeAnswer(checked: boolean) {\r\n if (this.question !== undefined) {\r\n this.question.answer = checked === true ? '1' : '0';\r\n }\r\n }\r\n\r\n public onIsInputNumberValid(value: boolean): void {\r\n this.$emit('is-input-number-valid', value);\r\n }\r\n\r\n @Watch('question', { immediate: true, deep: true } as WatchOptions)\r\n protected onQuestionChange(value: QuestionDTO, oldvalue: QuestionDTO) {\r\n if (oldvalue !== value && value !== undefined) {\r\n if (value.validator === 'coloscopiedaterange'\r\n && value.validatorConfigItem && value.validatorConfigItem.value !== undefined) {\r\n const years = Number(value.validatorConfigItem.value as string);\r\n this.minDate = moment().subtract(years, 'years').format('YYYY-MM-DD');\r\n this.maxDate = moment().format('YYYY-MM-DD');\r\n } else {\r\n this.maxDate = undefined;\r\n this.minDate = undefined;\r\n }\r\n\r\n if (value.validator === 'reinvitMonthsRange'\r\n && value.validatorConfigItem && value.validatorConfigItem.value !== undefined) {\r\n this.minMonth = 1;\r\n this.maxMonth = Number(value.validatorConfigItem.value);\r\n } else {\r\n this.maxMonth = undefined;\r\n this.minMonth = undefined;\r\n }\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!./Question.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!./Question.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Question.vue?vue&type=template&id=501ae1c3&scoped=true&\"\nimport script from \"./Question.ts?vue&type=script&lang=ts&\"\nexport * from \"./Question.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./Question.scss?vue&type=style&index=0&id=501ae1c3&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"501ae1c3\",\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',{staticClass:\"input-base input-radio\",class:[ _vm.required === false ? '' : 'input-required' ]},[_c('input',{attrs:{\"type\":_vm.inputType,\"name\":_vm.name,\"id\":_vm.randomId,\"required\":_vm.required,\"disabled\":_vm.disabled || _vm.readonly,\"placeholder\":_vm.placeholder},domProps:{\"value\":_vm.option,\"checked\":_vm.checked},on:{\"input\":function($event){return _vm.$emit('input', $event.target.value)}}}),(_vm.label && _vm.label.length > 0)?_c('label',{attrs:{\"for\":_vm.randomId}},[_vm._v(_vm._s(_vm.$t(_vm.label)))]):_vm._e(),(_vm.secondLabel && _vm.secondLabel.length > 0)?_c('div',{staticClass:\"second-label\",attrs:{\"for\":_vm.randomId}},[_vm._v(_vm._s(_vm.$t(_vm.secondLabel)))]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop, Vue, Watch } from 'vue-property-decorator';\r\nimport InputBase from '@/components/inputs/base/InputBase';\r\nimport { WatchOptions } from 'vue';\r\n\r\n@Component\r\nexport default class InputRadioButton extends InputBase {\r\n @Prop() public option?: string;\r\n @Prop() public secondLabel?: string;\r\n private checked?: boolean = false;\r\n\r\n protected mounted() {\r\n this.inputType = 'radio';\r\n if (this.value !== undefined && this.value === this.option) {\r\n this.checked = true;\r\n }\r\n }\r\n\r\n /**\r\n * Override onValueChanged from InputBase\r\n */\r\n protected onValueChanged(value: string, oldValue: string) {\r\n if (oldValue !== value && value !== undefined && value === this.option) {\r\n this.checked = true;\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputRadioButton.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputRadioButton.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InputRadioButton.vue?vue&type=template&id=6fc98df5&\"\nimport script from \"./InputRadioButton.ts?vue&type=script&lang=ts&\"\nexport * from \"./InputRadioButton.ts?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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"input-base\",class:[ _vm.required === false ? '' : 'input-required']},[(_vm.label && _vm.label.length > 0)?_c('label',{attrs:{\"for\":_vm.randomId}},[_vm._v(_vm._s(_vm.$t(_vm.label)))]):_vm._e(),_c('div',[(_vm.readonly)?_c('span',{attrs:{\"name\":_vm.name}},[_vm._v(_vm._s(_vm.value))]):_vm._e(),(!_vm.readonly)?_c('input',{attrs:{\"type\":_vm.inputType,\"pattern\":\"[0-9]*\",\"inputmode\":\"numeric\",\"name\":_vm.name,\"id\":_vm.randomId,\"required\":_vm.required,\"disabled\":_vm.disabled,\"placeholder\":_vm.placeholder},domProps:{\"value\":_vm.value},on:{\"input\":function($event){_vm.$emit('input', $event.target.value); _vm.checkRangeValue($event.target.value)},\"keypress\":_vm.preventNonNumericalInput,\"paste\":_vm.preventNonNumericalPaste}}):_vm._e(),(_vm.error)?_c('span',{staticClass:\"validity error\"},[_vm._v(_vm._s(_vm.errorMsg))]):_vm._e()])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Prop } from 'vue-property-decorator';\r\nimport InputBase from '@/components/inputs/base/InputBase';\r\nimport { store } from '@/store/store';\r\n\r\n@Component\r\nexport default class InputNumber extends InputBase {\r\n @Prop({ default: '', required: false }) public minInput?: number;\r\n @Prop({ default: '', required: false }) public maxInput?: number;\r\n @Prop({ default: '', required: false }) public errorMsg?: string;\r\n\r\n /**\r\n * Erro flag that shows or hide error message (from prop 'errorMsg')\r\n */\r\n public error: boolean = false;\r\n\r\n protected mounted() {\r\n this.inputType = 'text';\r\n }\r\n\r\n protected beforeDestroy() {\r\n this.resetInputValidity();\r\n }\r\n\r\n protected preventNonNumericalInput(e: any) {\r\n e = e || window.event;\r\n const charCode = (typeof e.which === undefined) ? e.keyCode : e.which;\r\n const charStr = String.fromCharCode(charCode);\r\n if (!charStr.match(/^[0-9]+$/)) {\r\n e.preventDefault();\r\n }\r\n }\r\n\r\n protected preventNonNumericalPaste(e: any) {\r\n e = e || window.event;\r\n const paste = (e.clipboardData).getData('text') as string;\r\n let nb;\r\n if (this.value && isNaN(Number(this.value)) || !this.value) {\r\n nb = paste.replace(/\\D/g, '');\r\n } else {\r\n const currValue = String(this.value);\r\n nb = currValue.slice(0, e.target.selectionStart);\r\n nb += paste.replace(/\\D/g, '');\r\n nb += currValue.slice(e.target.selectionEnd);\r\n }\r\n this.$emit('input', nb);\r\n\r\n e.preventDefault();\r\n }\r\n\r\n protected checkRangeValue(inputNumber: any): void {\r\n if (inputNumber < Number(this.minInput) || inputNumber > Number(this.maxInput)) {\r\n this.setInputValidity(false);\r\n } else {\r\n this.setInputValidity(true);\r\n }\r\n }\r\n\r\n protected setInputValidity(value: boolean): void {\r\n this.error = !value;\r\n this.$emit('is-input-number-valid', value);\r\n }\r\n\r\n protected resetInputValidity(): void {\r\n // Make sure to reset the put also, otherwise the validity will be inconsistent\r\n this.$emit('input', '');\r\n this.$emit('is-input-number-valid', true);\r\n }\r\n}\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputNumber.ts?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--13-3!./InputNumber.ts?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./InputNumber.vue?vue&type=template&id=0f4193ed&\"\nimport script from \"./InputNumber.ts?vue&type=script&lang=ts&\"\nexport * from \"./InputNumber.ts?vue&type=script&lang=ts&\"\nimport style0 from \"./InputNumber.scss?vue&type=style&index=0&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 null,\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/index.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!./Question.scss?vue&type=style&index=0&id=501ae1c3&scoped=true&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/index.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!./Question.scss?vue&type=style&index=0&id=501ae1c3&scoped=true&lang=scss&\""],"sourceRoot":""}