{"version":3,"sources":["webpack:///./@master/model/options/NationalityAndCountryOptions.ts","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheEducation.vue?1676","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheEducation.vue","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheEducation.vue?f089","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheEducation.vue?893a","webpack:///./node_modules/randomstring/lib/randomstring.js","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheSpouse.vue?060f","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheSpouse.vue","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheSpouse.vue?c05e","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheSpouse.vue?c02d","webpack:///./node_modules/randomstring/lib/charset.js","webpack:///./node_modules/randomstring/index.js","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalDetails.vue?8bc8","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalDetails.vue","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalDetails.vue?268c","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalDetails.vue?ba85","webpack:///./@core/assets/myinfo-icon.svg","webpack:///./@core/pages/userProfile/sections/UserAdviserDetails.vue?d66b","webpack:///./@core/pages/userProfile/sections/UserAdviserDetails.vue","webpack:///./@core/pages/userProfile/sections/UserAdviserDetails.vue?467e","webpack:///./@core/pages/userProfile/sections/UserAdviserDetails.vue?8746","webpack:///./node_modules/randomstring/node_modules/randombytes/browser.js","webpack:///./@core/components/AppForm.vue?baa9","webpack:///./@core/components/AppCurrencyNA.vue?af5e","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalItems.vue?d3e7","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalItems.vue","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalItems.vue?4152","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/ThePersonalItems.vue?3289","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheRecruitmentChecklist.vue?1d14","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheRecruitmentChecklist.vue","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheRecruitmentChecklist.vue?bb6e","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheRecruitmentChecklist.vue?9bfc","webpack:///./@core/pages/userProfile/sections/UserAdviserDetails.vue?6ddf","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheRecruitmentChecklist.vue?73fa","webpack:///./@core/pages/userProfile/sections/user-adviser-details-components/TheEducation.vue?f9af","webpack:///./node_modules/randomstring/node_modules/array-uniq/index.js","webpack:///./@core/components/AppForm.vue?4190","webpack:///./@core/components/AppCurrencyNA.vue?2c19","webpack:///./@core/components/AppCurrencyNA.vue","webpack:///./@core/components/AppCurrencyNA.vue?4219","webpack:///./@core/components/AppCurrencyNA.vue?6502","webpack:///./@core/components/AppForm.vue","webpack:///./@core/components/AppForm.vue?cec5","webpack:///./@core/components/AppForm.vue?3db6"],"names":["CountryOptions","Object","keys","map","key","label","value","sort","a","b","localeCompare","NationalityOptions","NationalityLabelToCode","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","_v","directives","name","rawName","expression","on","$event","isModalEducation","_e","_m","educationList","length","_l","education","index","class","clickable","isOpsStaff","editEducation","_s","nameOfInstitution","location","formatDate","dateFrom","dateTo","awarded","stopPropagation","deleteEducation","oid","isModalQualification","qualificationList","qualification","editQualification","nameOfQualification","attainmentBasis","institution","dateYearConferred","deleteQualification","isModalEmployment","employmentList","employment","editEmployment","nameOfEmployer","address","designation","jobDescription","deleteEmployment","slot","EducationStructure","newEducation","saveEducation","QualificationStructure","newQualification","saveQualification","EmploymentStructure","newEmployment","saveEmployment","staticRenderFns","staticStyle","userStore","EducationMeta","QualificationMeta","EmploymentMeta","userAdviserDetails","$route","params","userOid","$store","getters","currentUser","accountID","systemrole","type","classes","disabled","date","undefined","dateService","format","param","adviser_oid","data","JSON","stringify","convertToRawData","education_oid","$api","adviserDetails","res","push","id","filter","qualification_oid","employment_oid","State","Action","components","AppForm","AppDialog","component","randomBytes","Charset","unsafeRandomBytes","stack","i","Math","floor","random","readUInt8","safeRandomBytes","e","processString","buf","initialString","chars","reqLen","maxByte","string","randomByte","charAt","getAsyncString","cb","err","generatedString","exports","generate","options","charset","setType","capitalization","setcapitalization","readable","removeUnreadable","removeDuplicates","charsLen","ceil","spouseDetailsStructure","spouseDetails","nextOfKinDetailsStructure","nextOfKinDetails","nationalityOptions","nationality","arrayUniq","prototype","numbers","charsLower","charsUpper","toUpperCase","hexChars","binaryChars","octalChars","unreadableChars","replace","toLowerCase","charMap","split","join","module","userAdviserDetailsStructure","contractDetailsStructure","contractDetails","userAdviserDetailsPersonalStructure","personalDetailsStructure","personalDetails","adviserService","adviserContractTypeOptions","model","get","user","mobile","set","val","email","callback","$$v","activeName","isSuperUser","dataToSave","user_oid","saveDetails","$parent","$on","onSubmit","fetchAdviserDetails","TheEducation","ThePersonalDetails","TheRecruitmentChecklist","TheSpouse","ThePersonalItems","oldBrowser","Error","crypto","global","msCrypto","size","rawBytes","Uint8Array","getRandomValues","bytes","Buffer","buffer","process","nextTick","personalItemsStructure","personalItemsIssued","ref","criteria","requirements","checkKey","remarksKey","domProps","Array","isArray","_i","$$a","$$el","target","$$c","checked","$$i","$set","concat","slice","recruitmentChecklist","composing","recruitmentChecklistRows","uniqNoSet","arr","ret","indexOf","uniqSet","seen","Set","el","has","add","uniqSetWithForEach","forEach","doesForEachActuallyWork","style","structure","shouldShow","show","shouldDisabled","getCustomClass","hasErrors","focusId","getId","focusInner","getTestId","labelModelValue","labelModel","labelKey","tooltip","eidx","msg","full","fullErr","multiple","optionCols","multiLimit","buttonName","cycleMode","displayDirection","setValue","blurHandler","getValue","checkboxColumnNo","compact","option","isMyInfo","getLabelId","setSelectValue","decimal","maxChar","currencyFormat","precision","futureDate","disabledFutureDate","rows","isVertical","maxSize","columns","getValueForTable","remove","maxLength","counterMsg","isModernTheme","maxlength","numberAndNAOnly","onBlur","onFocus","onSelect","inputModal","textIsSelected","number","convertCurrencyToNumber","remainingChar","toString","evt","window","event","charCode","which","keyCode","currentValue","isAlphabetN","isNonNumber","preventDefault","charCodeAt","isAlphabetA","formatValue","$emit","isNaN","Number","source","useCurrency","currencyPrefix","toLocaleString","currency","replaceAll","projectInfo","inputValue","default","minimal","structures","errors","charLeft","getCharLeft","getCounterMsg","gridTemplateColumns","projectSettings","theme","condition","readOnly","Function","input","oriValue","String","labelValue","selectedOption","selectedIndex","_value","onChange","ex","uniqueID","snakeCaseKey","curAppForm","$el","hasOverflow","scrollWidth","clientWidth","eleId","ele","document","getElementById","focus","mc","swe","first","find","s","scrollIntoView","behavior","block","arrangeCols","addEventListener","Date","now","deep","AppSmartSelect","AppCheckboxGroup","AppRadioSelection","AppDateInput","AppFormTable","AppCurrencyNA","AppDecimalNumber","AppTooltip"],"mappings":"2SAMaA,EAA4BC,OAAOC,KAAK,GAAeC,KAAI,SAAAC,GACtE,MAAO,CACLC,MAAO,EAAcD,GACrBE,MAAOF,MAERG,MAAK,SAACC,EAAGC,GACV,MAAgB,OAAZD,EAAEF,OACI,EACa,OAAZG,EAAEH,MACJ,EACc,OAAZE,EAAEF,OACH,EACa,OAAZG,EAAEH,MACJ,EAEAE,EAAEH,MAAMK,cAAcD,EAAEJ,UAItBM,EAAgCV,OAAOC,KAAK,GAAmBC,KAAI,SAAAC,GAC9E,MAAO,CACLC,MAAO,EAAkBD,GACzBE,MAAOF,MAERG,MAAK,SAACC,EAAGC,GACV,MAAgB,OAAZD,EAAEF,OACI,EACa,OAAZG,EAAEH,MACJ,EACc,OAAZE,EAAEF,OACH,EACa,OAAZG,EAAEH,MACJ,EAEAE,EAAEH,MAAMK,cAAcD,EAAEJ,UAKtBO,EAAyB,G,yrHC7CtC,IAAIC,EAAS,WAAa,IAAIC,EAAIC,K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AP,kB,6BAED,gBADC,eAAK,CAAEA,QAAS,WAAQ,OAAO4C,KAAKC,U,+BAGX,gBAAzB,eAAK,CAAE7C,SAAS,K,+BAGjB,gBADC,uB,kCAID,gBADC,uB,sCAmMD,gBADC,eAAM,oBAAqB,CAAE8C,MAAM,K,yBASnC,MAxNkB,EAAO,gBAb3B,eAAU,CACTjR,WAAY,CACVkR,iBAAA,KACAC,mBAAA,KACAC,oBAAA,KACAC,eAAA,KACAC,eAAA,KACAC,cAAA,EACAC,mBAAA,KACAC,aAAA,SAIiB,WCnR6W,ICQ9X,G,UAAY,eACd,EACAlY,EACAkE,GACA,EACA,KACA,WACA,OAIa,S","file":"js/chunk-cc8cdaf6.7a65e301.js","sourcesContent":["import CodeToNationality from '@master/config/nationality-code-to-label.json'\nimport CodeToCountry from '@master/config/country-code-to-label.json'\nimport LabelToCodeCountry from '@master/config/country-label-to-code.json'\nimport LabelToCodeNationality from '@master/config/nationality-label-to-code.json'\nimport { options } from './Options'\n\nexport const CountryOptions: options[] = Object.keys(CodeToCountry).map(key => {\n return {\n label: CodeToCountry[key],\n value: key\n }\n}).sort((a, b) => {\n if (a.value === 'SG') {\n return -1\n } else if (b.value === 'SG') {\n return 1\n } else if (a.value === 'MY') {\n return -1\n } else if (b.value === 'MY') {\n return 1\n } else {\n return a.label.localeCompare(b.label)\n }\n}) // sort by Singapore, Malaysia, and the rest of countries\n\nexport const NationalityOptions: options[] = Object.keys(CodeToNationality).map(key => {\n return {\n label: CodeToNationality[key],\n value: key\n }\n}).sort((a, b) => {\n if (a.value === 'SG') {\n return -1\n } else if (b.value === 'SG') {\n return 1\n } else if (a.value === 'MY') {\n return -1\n } else if (b.value === 'MY') {\n return 1\n } else {\n return a.label.localeCompare(b.label)\n }\n}) // sort by Singapore, Malaysia, and the rest of nationalities\n\nexport const CountryLabelToCode = LabelToCodeCountry\nexport const NationalityLabelToCode = LabelToCodeNationality\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"page5\",\"role\":\"tabpanel\"}},[_c('div',{staticClass:\"form-body\"},[_c('p',{staticClass:\"subtitle\"},[_vm._v(\" Education History \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOpsStaff),expression:\"isOpsStaff\"}],staticClass:\"btn-default\",on:{\"click\":function($event){_vm.isModalEducation = true}}},[_vm._v(\" Add New Education \")])]),_c('table',{staticClass:\"bordered\"},[_c('thead',[_c('tr',[_c('th',{attrs:{\"colspan\":\"2\"}},[_vm._v(\"School / College / University\")]),_c('th',{attrs:{\"colspan\":\"2\"}},[_vm._v(\"Period\")]),_c('th',{attrs:{\"rowspan\":\"2\"}},[_vm._v(\"Certificate / Diploma / Degree Awarded\")]),(_vm.isOpsStaff)?_c('th',{attrs:{\"rowspan\":\"2\"}},[_vm._v(\"Delete\")]):_vm._e()]),_vm._m(0)]),_c('tbody',[(_vm.educationList.length > 0)?_vm._l((_vm.educationList),function(education,index){return _c('tr',{key:index,class:{ clickable: _vm.isOpsStaff },on:{\"click\":function($event){return _vm.editEducation(education)}}},[_c('td',[_vm._v(_vm._s(education.nameOfInstitution))]),_c('td',[_vm._v(_vm._s(education.location))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(education.dateFrom)))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(education.dateTo)))]),_c('td',[_vm._v(_vm._s(education.awarded))]),(_vm.isOpsStaff)?_c('td',[_c('button',{staticClass:\"btn-danger\",attrs:{\"disabled\":!_vm.isOpsStaff},on:{\"click\":function($event){$event.stopPropagation();return _vm.deleteEducation(education.oid)}}},[_vm._v(\" Delete \")])]):_vm._e()])}):[_vm._m(1)]],2)]),_c('p',{staticClass:\"subtitle\"},[_vm._v(\" Professional Qualification \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOpsStaff),expression:\"isOpsStaff\"}],staticClass:\"btn-default\",on:{\"click\":function($event){_vm.isModalQualification = true}}},[_vm._v(\" Add New Qualification \")])]),_c('table',{staticClass:\"bordered\"},[_c('thead',[_c('tr',[_c('th',[_vm._v(\"Name of Qualification\")]),_c('th',[_vm._v(\"Attainment Basis\")]),_c('th',[_vm._v(\"Institution\")]),_c('th',[_vm._v(\"Year Conferred\")]),(_vm.isOpsStaff)?_c('th',[_vm._v(\"Delete\")]):_vm._e()])]),_c('tbody',[(_vm.qualificationList.length > 0)?_vm._l((_vm.qualificationList),function(qualification,index){return _c('tr',{key:index,class:{ clickable: _vm.isOpsStaff },on:{\"click\":function($event){return _vm.editQualification(qualification)}}},[_c('td',[_vm._v(_vm._s(qualification.nameOfQualification))]),_c('td',[_vm._v(_vm._s(qualification.attainmentBasis))]),_c('td',[_vm._v(_vm._s(qualification.institution))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(qualification.dateYearConferred)))]),(_vm.isOpsStaff)?_c('td',[_c('button',{staticClass:\"btn-danger\",on:{\"click\":function($event){$event.stopPropagation();return _vm.deleteQualification(qualification.oid)}}},[_vm._v(\" Delete \")])]):_vm._e()])}):[_vm._m(2)]],2)]),_c('p',{staticClass:\"subtitle\"},[_vm._v(\" Employment History \"),_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOpsStaff),expression:\"isOpsStaff\"}],staticClass:\"btn-default\",on:{\"click\":function($event){_vm.isModalEmployment = true}}},[_vm._v(\" Add New Employment \")])]),_c('table',{staticClass:\"bordered\"},[_c('thead',[_c('tr',[_c('th',{attrs:{\"colspan\":\"2\"}},[_vm._v(\"Employer\")]),_c('th',{attrs:{\"colspan\":\"2\"}},[_vm._v(\"Period\")]),_c('th',{attrs:{\"rowspan\":\"2\"}},[_vm._v(\"Designation & Department\")]),_c('th',{attrs:{\"rowspan\":\"2\"}},[_vm._v(\"Brief Job Description\")]),(_vm.isOpsStaff)?_c('th',{attrs:{\"rowspan\":\"2\"}},[_vm._v(\"Delete\")]):_vm._e()]),_vm._m(3)]),_c('tbody',[(_vm.employmentList.length > 0)?_vm._l((_vm.employmentList),function(employment,index){return _c('tr',{key:index,class:{ clickable: _vm.isOpsStaff },on:{\"click\":function($event){return _vm.editEmployment(employment)}}},[_c('td',[_vm._v(_vm._s(employment.nameOfEmployer))]),_c('td',[_vm._v(_vm._s(employment.address))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(employment.dateFrom)))]),_c('td',[_vm._v(_vm._s(_vm.formatDate(employment.dateTo)))]),_c('td',[_vm._v(_vm._s(employment.designation))]),_c('td',[_vm._v(_vm._s(employment.jobDescription))]),(_vm.isOpsStaff)?_c('td',[_c('button',{staticClass:\"btn-danger\",on:{\"click\":function($event){$event.stopPropagation();return _vm.deleteEmployment(employment.oid)}}},[_vm._v(\" Delete \")])]):_vm._e()])}):[_vm._m(4)]],2)])]),(_vm.isModalEducation)?_c('AppDialog',{on:{\"close\":function($event){_vm.isModalEducation = false}}},[_c('template',{slot:\"header\"},[_vm._v(\"Add Education\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('AppForm',{attrs:{\"structures\":_vm.EducationStructure,\"model\":_vm.newEducation}})],1),(_vm.isOpsStaff)?_c('template',{slot:\"footer\"},[_c('button',{staticClass:\"btn-default\",on:{\"click\":function($event){return _vm.saveEducation()}}},[_vm._v(\"Save\")])]):_vm._e()],2):_vm._e(),(_vm.isModalQualification)?_c('AppDialog',{on:{\"close\":function($event){_vm.isModalQualification = false}}},[_c('template',{slot:\"header\"},[_vm._v(\"Add Qualification\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('AppForm',{attrs:{\"structures\":_vm.QualificationStructure,\"model\":_vm.newQualification}})],1),(_vm.isOpsStaff)?_c('template',{slot:\"footer\"},[_c('button',{staticClass:\"btn-default\",on:{\"click\":function($event){return _vm.saveQualification()}}},[_vm._v(\"Save\")])]):_vm._e()],2):_vm._e(),(_vm.isModalEmployment)?_c('AppDialog',{on:{\"close\":function($event){_vm.isModalEmployment = false}}},[_c('template',{slot:\"header\"},[_vm._v(\"Add Employment\")]),_c('div',{attrs:{\"slot\":\"body\"},slot:\"body\"},[_c('AppForm',{attrs:{\"structures\":_vm.EmploymentStructure,\"model\":_vm.newEmployment}})],1),(_vm.isOpsStaff)?_c('template',{slot:\"footer\"},[_c('button',{staticClass:\"btn-default\",on:{\"click\":function($event){return _vm.saveEmployment()}}},[_vm._v(\"Save\")])]):_vm._e()],2):_vm._e()],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',[_vm._v(\"Name\")]),_c('th',[_vm._v(\"Location\")]),_c('th',[_vm._v(\"From\")]),_c('th',[_vm._v(\"To\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"text-align\":\"center\"},attrs:{\"colspan\":\"8\"}},[_vm._v(\"No Data\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"text-align\":\"center\"},attrs:{\"colspan\":\"5\"}},[_vm._v(\"No Data\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('th',[_vm._v(\"Name\")]),_c('th',[_vm._v(\"Address\")]),_c('th',[_vm._v(\"From\")]),_c('th',[_vm._v(\"To\")])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tr',[_c('td',{staticStyle:{\"text-align\":\"center\"},attrs:{\"colspan\":\"8\"}},[_vm._v(\"No Data\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* eslint-disable @typescript-eslint/camelcase */\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport { inject } from 'inversify-props'\nimport { IDateService } from '@master/services/IDateService'\nimport API from '@core/services/API'\nimport { isEmpty } from 'lodash'\nimport { UIService } from '@core/services/UIService'\nimport { SharedVariable } from '@core/model/SharedVariable'\nimport { UserAdviserDetailsMeta } from './model/UserAdviserDetailsMeta'\nimport EducationMeta from './model/EducationMeta'\nimport EmploymentMeta from './model/EmploymentMeta'\nimport QualificationMeta from './model/QualificationMeta'\nimport AppDialog from '@core/components/AppDialog.vue'\n\nconst userStore = namespace('UserStore')\n\n@Component({\n components: {\n AppForm,\n AppDialog\n }\n})\nexport default class TheEducation extends Vue {\n @inject()\n private $api: API\n\n uiService: UIService\n\n @inject()\n private sharedVariable: SharedVariable\n\n @inject()\n private dateService: IDateService\n\n // @userAdviserDetailsStore.State\n // private userAdviserDetails!: UserAdviserDetails;\n\n @userStore.State\n private userAdviserDetails: UserAdviserDetailsMeta\n\n @userStore.Action\n private fetchAdviserDetails: (adviserOid: string) => Promise\n\n private isModalEducation = false\n private isModalQualification = false\n private isModalEmployment = false\n\n private newEducation: EducationMeta = new EducationMeta()\n private newQualification: QualificationMeta = new QualificationMeta()\n private newEmployment: EmploymentMeta = new EmploymentMeta()\n\n get educationList (): EducationMeta[] {\n return this.userAdviserDetails.educationList\n }\n\n get employmentList (): EmploymentMeta[] {\n return this.userAdviserDetails.employmentList\n }\n\n get qualificationList (): QualificationMeta[] {\n return this.userAdviserDetails.qualificationList\n }\n\n get userOid (): string {\n return this.$route.params.userOid as string || this.$store.getters.currentUser.accountID\n }\n\n get isOpsStaff () {\n return this.$store.getters.currentUser.systemrole === 'ops-staff'\n }\n\n get EducationStructure (): FormStructure {\n return [\n {\n label: 'Name of Institution',\n key: 'nameOfInstitution'\n },\n {\n label: 'Location',\n key: 'location'\n },\n {\n label: 'From',\n key: 'dateFrom',\n type: 'date'\n },\n {\n label: 'To',\n key: 'dateTo',\n type: 'date'\n },\n {\n label: 'Certificate / Diploma / Degree Awarded',\n key: 'awarded',\n classes: ['colspan']\n }\n ]\n }\n\n get QualificationStructure (): FormStructure {\n return [\n {\n label: 'Name of Qualification',\n key: 'nameOfQualification',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Attainment Basis',\n key: 'attainmentBasis',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Institution',\n key: 'institution',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Year Conferred',\n key: 'dateYearConferred',\n type: 'date',\n disabled: !this.isOpsStaff\n }\n ]\n }\n\n get EmploymentStructure (): FormStructure {\n return [\n {\n label: 'Name of Employer',\n key: 'nameOfEmployer'\n },\n {\n label: 'Address',\n key: 'address'\n },\n {\n label: 'From',\n key: 'dateFrom',\n type: 'date'\n },\n {\n label: 'To',\n key: 'dateTo',\n type: 'date'\n },\n {\n label: 'Designation & Department',\n key: 'designation'\n },\n {\n label: 'Brief Job Description',\n key: 'jobDescription',\n type: 'textarea',\n classes: ['colspan']\n }\n ]\n }\n\n formatDate (date): string {\n return date === undefined ? '' : this.dateService.format(date, 'YYYY-MM-DD')\n }\n\n async saveEducation () {\n this.isModalEducation = false\n const param: any = {\n adviser_oid: this.userOid,\n data: JSON.stringify(this.newEducation.convertToRawData())\n }\n if (!isEmpty(this.newEducation.oid)) {\n param.education_oid = this.newEducation.oid\n }\n const res = await this.$api.adviserDetails.saveEducation(param)\n this.newEducation.oid = res.education_oid\n this.userAdviserDetails.educationList.push(this.newEducation)\n this.newEducation = new EducationMeta()\n }\n\n editEducation (education: EducationMeta) {\n if (!this.isOpsStaff) return\n this.newEducation = education\n this.isModalEducation = true\n }\n\n async deleteEducation (id) {\n this.isModalEducation = false\n await this.$api.adviserDetails.deleteEducation({\n education_oid: id\n })\n this.userAdviserDetails.educationList = this.educationList.filter(({ oid }) => oid !== id)\n }\n\n async saveQualification () {\n this.isModalQualification = false\n const param: any = {\n adviser_oid: this.userOid,\n data: JSON.stringify(this.newQualification.convertToRawData())\n }\n if (!isEmpty(this.newQualification.oid)) {\n param.qualification_oid = this.newQualification.oid\n }\n const res = await this.$api.adviserDetails.saveQualification(param)\n this.newQualification.oid = res.qualification_oid\n this.userAdviserDetails.qualificationList.push(this.newQualification)\n this.newQualification = new QualificationMeta()\n }\n\n editQualification (qualification: QualificationMeta) {\n if (!this.isOpsStaff) return\n this.newQualification = qualification\n this.isModalQualification = true\n }\n\n async deleteQualification (id) {\n this.isModalQualification = false\n await this.$api.adviserDetails.deleteQualification({\n qualification_oid: id\n })\n this.userAdviserDetails.qualificationList = this.qualificationList.filter(({ oid }) => oid !== id)\n }\n\n async saveEmployment () {\n this.isModalEmployment = false\n const param: any = {\n adviser_oid: this.userOid,\n data: JSON.stringify(this.newEmployment.convertToRawData())\n }\n if (!isEmpty(this.newEmployment.oid)) {\n param.employment_oid = this.newEmployment.oid\n }\n const res = await this.$api.adviserDetails.saveEmployment(param)\n this.newEmployment.oid = res.employment_oid\n this.userAdviserDetails.employmentList.push(this.newEmployment)\n this.newEmployment = new EmploymentMeta()\n }\n\n editEmployment (employment: EmploymentMeta) {\n if (!this.isOpsStaff) return\n this.newEmployment = employment\n this.isModalEmployment = true\n }\n\n async deleteEmployment (id) {\n this.isModalEmployment = false\n await this.$api.adviserDetails.deleteEmployment({\n employment_oid: id\n })\n this.userAdviserDetails.employmentList = this.employmentList.filter(({ oid }) => oid !== id)\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/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!./TheEducation.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!./TheEducation.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TheEducation.vue?vue&type=template&id=7e91f8de&scoped=true&\"\nimport script from \"./TheEducation.vue?vue&type=script&lang=ts&\"\nexport * from \"./TheEducation.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TheEducation.vue?vue&type=style&index=0&id=7e91f8de&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 \"7e91f8de\",\n null\n \n)\n\nexport default component.exports","\"use strict\";\n\nvar randomBytes = require('randombytes');\nvar Charset = require('./charset.js');\n\n\nfunction unsafeRandomBytes(length) {\n var stack = [];\n for (var i = 0; i < length; i++) {\n stack.push(Math.floor(Math.random() * 255));\n }\n\n return {\n length,\n readUInt8: function (index) {\n return stack[index];\n }\n };\n}\n\nfunction safeRandomBytes(length) {\n try {\n return randomBytes(length);\n } catch (e) {\n /* React/React Native Fix + Eternal loop removed */\n return unsafeRandomBytes(length);\n }\n}\n\nfunction processString(buf, initialString, chars, reqLen, maxByte) {\n var string = initialString;\n for (var i = 0; i < buf.length && string.length < reqLen; i++) {\n var randomByte = buf.readUInt8(i);\n if (randomByte < maxByte) {\n string += chars.charAt(randomByte % chars.length);\n }\n }\n return string;\n}\n\nfunction getAsyncString(string, chars, length, maxByte, cb) {\n randomBytes(length, function(err, buf) {\n if (err) {\n // Since it is waiting for entropy, errors are legit and we shouldn't just keep retrying\n cb(err);\n }\n var generatedString = processString(buf, string, chars, length, maxByte);\n if (generatedString.length < length) {\n getAsyncString(generatedString, chars, length, maxByte, cb);\n } else {\n cb(null, generatedString);\n }\n })\n}\n\nexports.generate = function(options, cb) {\n var charset = new Charset();\n\n var length, chars, capitalization, string = '';\n\n // Handle options\n if (typeof options === 'object') {\n length = typeof options.length === 'number' ? options.length : 32;\n\n if (options.charset) {\n charset.setType(options.charset);\n }\n else {\n charset.setType('alphanumeric');\n }\n\n if (options.capitalization) {\n charset.setcapitalization(options.capitalization);\n }\n\n if (options.readable) {\n charset.removeUnreadable();\n }\n\n charset.removeDuplicates();\n }\n else if (typeof options === 'number') {\n length = options;\n charset.setType('alphanumeric');\n }\n else {\n length = 32;\n charset.setType('alphanumeric');\n }\n\n // Generate the string\n var charsLen = charset.chars.length;\n var maxByte = 256 - (256 % charsLen);\n\n if (!cb) {\n while (string.length < length) {\n var buf = safeRandomBytes(Math.ceil(length * 256 / maxByte));\n string = processString(buf, string, charset.chars, length, maxByte);\n }\n\n return string;\n }\n\n getAsyncString(string, charset.chars, length, maxByte, cb);\n\n};\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"page3\",\"role\":\"tabpanel\"}},[_c('div',{staticClass:\"form-body\"},[_c('p',{staticClass:\"bold-text\"},[_vm._v(\"Spouse Personal Details\")]),_c('AppForm',{attrs:{\"structures\":_vm.spouseDetailsStructure,\"model\":_vm.spouseDetails}}),_c('p',{staticClass:\"bold-text\"},[_vm._v(\"Next of Kin Details\")]),_c('AppForm',{attrs:{\"structures\":_vm.nextOfKinDetailsStructure,\"model\":_vm.nextOfKinDetails}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport SpouseDetailsMeta from './model/SpouseDetailsMeta'\nimport { NextOfKinDetailsMeta } from './model/NextOfKinDetailsMeta'\nimport { UserAdviserDetailsMeta } from './model/UserAdviserDetailsMeta'\nimport { NationalityOptions } from '@master/model/options/NationalityAndCountryOptions'\n\nconst userStore = namespace('UserStore')\n\n@Component({\n components: {\n AppForm\n }\n})\nexport default class TheSpouse extends Vue {\n @userStore.State\n private userAdviserDetails!: UserAdviserDetailsMeta\n\n get currentUser () {\n return this.$store.getters.currentUser\n }\n\n get isOpsStaff () {\n return this.currentUser.systemrole === 'ops-staff'\n }\n\n get spouseDetails () {\n return this.userAdviserDetails.spouseDetails\n }\n\n get nextOfKinDetails () {\n return this.userAdviserDetails.nextOfKinDetails\n }\n\n get spouseDetailsStructure (): FormStructure {\n return [\n {\n label: 'Spouse Name',\n key: 'name',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Occupation',\n key: 'occupation',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Date of Birth',\n key: 'dateOfBirth',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Race',\n key: 'race',\n options: [\n { label: 'Chinese', value: 'chinese' },\n { label: 'Malay', value: 'malay' },\n { label: 'Indian', value: 'indian' },\n { label: 'Eurasian', value: 'eurasian' },\n { label: 'Others', value: 'others' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'Citizenship',\n key: 'nationality',\n options: [\n { label: '', value: '' },\n { label: 'Singaporean', value: 'singaporean' },\n { label: 'Singapore PR', value: 'pr' },\n { label: 'Singapore Pass Holder', value: 'passholders' },\n { label: 'Other Citizenship', value: 'others' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'Please specify Nationality',\n key: 'nationalitySpecified',\n options: this.nationalityOptions,\n disabled: !this.isOpsStaff ||\n this.userAdviserDetails.spouseDetails.nationality ===\n 'singaporean' ||\n this.userAdviserDetails.spouseDetails.nationality ===\n 'singaporeanpr'\n },\n {\n label: 'ID Doc. Type',\n key: 'idDocType',\n options: [\n { label: 'Identity Card - Pink', value: 'ic-pink' },\n { label: 'Identity Card - Blue', value: 'ic-blue' },\n { label: 'Others', value: 'others' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'ID No.',\n key: 'idNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Contact No.',\n key: 'contactNumber',\n disabled: !this.isOpsStaff\n }\n ]\n }\n\n get nextOfKinDetailsStructure (): FormStructure {\n return [\n {\n label: 'Name',\n key: 'name',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Relationship',\n key: 'relationship',\n options: [\n { label: 'Aunt', value: 'aunt' },\n { label: 'Brother', value: 'brother' },\n { label: 'Cousin', value: 'cousin' },\n { label: 'Daughter', value: 'daughter' },\n { label: 'Father', value: 'father' },\n { label: 'Grandchild', value: 'grandchild' },\n { label: 'Grandparent', value: 'grandparent' },\n { label: 'Legal guardian', value: 'legal Guardian' },\n { label: 'Husband', value: 'husband' },\n { label: 'Mother', value: 'mother' },\n { label: 'Nephew', value: 'nephew' },\n { label: 'Niece', value: 'niece' },\n { label: 'Others', value: 'others' },\n { label: 'Spouse', value: 'spouse' },\n { label: 'Son', value: 'son' },\n { label: 'Sister', value: 'sister' },\n { label: 'Uncle', value: 'uncle' },\n { label: 'Ward', value: 'ward' },\n { label: 'Wife', value: 'wife' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'Contact No.',\n key: 'contactNumber',\n disabled: !this.isOpsStaff\n }\n ]\n }\n\n get nationalityOptions () {\n return NationalityOptions\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/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!./TheSpouse.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!./TheSpouse.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TheSpouse.vue?vue&type=template&id=42682ad7&scoped=true&\"\nimport script from \"./TheSpouse.vue?vue&type=script&lang=ts&\"\nexport * from \"./TheSpouse.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 \"42682ad7\",\n null\n \n)\n\nexport default component.exports","var arrayUniq = require('array-uniq');\n\nfunction Charset() {\n this.chars = '';\n}\n\nCharset.prototype.setType = function(type) {\n var chars;\n\n var numbers = '0123456789';\n var charsLower = 'abcdefghijklmnopqrstuvwxyz';\n var charsUpper = charsLower.toUpperCase();\n var hexChars = 'abcdef';\n var binaryChars = '01';\n var octalChars = '01234567';\n\n if (type === 'alphanumeric') {\n chars = numbers + charsLower + charsUpper;\n }\n else if (type === 'numeric') {\n chars = numbers;\n }\n else if (type === 'alphabetic') {\n chars = charsLower + charsUpper;\n }\n else if (type === 'hex') {\n chars = numbers + hexChars;\n }\n else if (type === 'binary') {\n chars = binaryChars;\n }\n else if (type === 'octal') {\n chars = octalChars;\n }\n else {\n chars = type;\n }\n\n this.chars = chars;\n}\n\nCharset.prototype.removeUnreadable = function() {\n var unreadableChars = /[0OIl]/g;\n this.chars = this.chars.replace(unreadableChars, '');\n}\n\nCharset.prototype.setcapitalization = function(capitalization) {\n if (capitalization === 'uppercase') {\n this.chars = this.chars.toUpperCase();\n }\n else if (capitalization === 'lowercase') {\n this.chars = this.chars.toLowerCase();\n }\n}\n\nCharset.prototype.removeDuplicates = function() {\n var charMap = this.chars.split('');\n charMap = arrayUniq(charMap);\n this.chars = charMap.join('');\n}\n\nmodule.exports = exports = Charset;\n","module.exports = require(\"./lib/randomstring\");","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"page2\",\"role\":\"tabpanel\"}},[_c('div',{staticClass:\"form-body\"},[_c('p',{staticClass:\"bold-text\"},[_vm._v(\"Contract Details\")]),_c('AppForm',{attrs:{\"structures\":_vm.userAdviserDetailsStructure,\"model\":_vm.userAdviserDetails}}),_c('AppForm',{attrs:{\"structures\":_vm.contractDetailsStructure,\"model\":_vm.contractDetails}}),_c('p',{staticClass:\"bold-text\"},[_vm._v(\"Personal Details\")]),_c('AppForm',{attrs:{\"structures\":_vm.userAdviserDetailsPersonalStructure,\"model\":_vm.userAdviserDetails}}),_c('AppForm',{attrs:{\"structures\":_vm.personalDetailsStructure,\"model\":_vm.personalDetails}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport { UserAdviserDetailsMeta } from './model/UserAdviserDetailsMeta'\nimport PersonalDetailsMeta from './model/PersonalDetailsMeta'\nimport { ContractDetailsMeta } from './model/ContractDetailsMeta'\nimport { UserMeta } from '@core/model/common/UserMeta'\nimport { NationalityOptions } from '@master/model/options/NationalityAndCountryOptions'\nimport { inject } from 'inversify-props'\nimport { IAdviserService } from '@master/services/IAdviserService'\n\nconst userStore = namespace('UserStore')\n\n@Component({\n components: {\n AppForm\n }\n})\nexport default class ThePersonalDetails extends Vue {\n @userStore.State\n private user: UserMeta\n\n @userStore.State\n private userAdviserDetails!: UserAdviserDetailsMeta;\n\n get currentUser () {\n return this.$store.getters.currentUser\n }\n\n get isOpsStaff () {\n return this.currentUser.systemrole === 'ops-staff'\n }\n\n get contractDetails () {\n return this.userAdviserDetails.contractDetails\n }\n\n get personalDetails () {\n return this.userAdviserDetails.personalDetails\n }\n\n @inject()\n private adviserService: IAdviserService\n\n // isLockedField (key: string): boolean {\n // const listOfLockedFields = this.userAdviserDetails.myinfoLockedFieldsClient.map(e => camelCase(e))\n // return listOfLockedFields.includes(key)\n // }\n\n get userAdviserDetailsStructure (): FormStructure {\n return [\n {\n label: 'Date Contracted',\n key: 'dateContracted',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Date Terminated',\n key: 'dateTerminated',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Date Issued',\n key: 'dateIssued',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Contract Status',\n key: 'contractStatus',\n options: [\n { label: 'In-force', value: 'in-force' },\n { label: 'Pending', value: 'pending' },\n { label: 'Suspended', value: 'suspended' },\n { label: 'Terminated', value: 'terminated' },\n { label: 'Withdrawn', value: 'withdrawn' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'Contract Type',\n key: 'contractType',\n options: this.adviserService.adviserContractTypeOptions(),\n disabled: !this.isOpsStaff\n },\n {\n label: 'Date of Last Promotion',\n key: 'dateOfLastPromotion',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'MAS Application Date',\n key: 'dateMasApplication',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'MAS Yearly Renewal',\n key: 'dateMasYearlyRenewal',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'MAS Tri-Yearly Renewal',\n key: 'dateMasTriYearlyRenewal',\n type: 'date',\n disabled: !this.isOpsStaff\n }\n ]\n }\n\n get contractDetailsStructure (): FormStructure {\n return [\n {\n label: 'IFPAS No.',\n key: 'ifpasNo',\n disabled: !this.isOpsStaff\n }\n ]\n }\n\n get userAdviserDetailsPersonalStructure (): FormStructure {\n return [\n {\n label: 'Date of Birth',\n key: 'dateOfBirth',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'EP Issued Date',\n key: 'dateEpIssued',\n type: 'date',\n disabled: !this.isOpsStaff\n },\n {\n label: 'EP Expiry Date',\n key: 'dateEpExpiry',\n type: 'date',\n disabled: !this.isOpsStaff\n }\n ]\n }\n\n get personalDetailsStructure (): FormStructure {\n return [\n {\n label: 'Place of Birth',\n key: 'placeOfBirth',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Marital Status',\n key: 'maritalStatus',\n options: [\n { label: 'Single', value: 'single' },\n { label: 'Married', value: 'married' },\n { label: 'Divorced', value: 'divorced' },\n { label: 'Widowed', value: 'widowed' }\n ],\n disabled: !this.isOpsStaff // || this.isLockedField('maritalStatus')\n },\n {\n label: 'Gender',\n key: 'gender',\n options: [\n { label: 'Male', value: 'male' },\n { label: 'Female', value: 'female' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'Citizenship',\n key: 'nationality',\n options: [\n { label: '', value: '' },\n { label: 'Singaporean', value: 'singaporean' },\n { label: 'Singapore PR', value: 'pr' },\n { label: 'Singapore Pass Holder', value: 'passholders' },\n { label: 'Other Citizenship', value: 'others' }\n ],\n disabled: !this.isOpsStaff // || this.isLockedField('nationality')\n },\n {\n label: 'Please specify Nationality',\n key: 'nationalitySpecified',\n options: this.nationalityOptions,\n disabled: (!this.isOpsStaff ||\n this.personalDetails?.nationality ===\n 'singaporean' ||\n this.personalDetails?.nationality ===\n 'singaporeanpr') // || this.isLockedField('nationalitySpecified')\n },\n {\n label: 'Race',\n key: 'race',\n options: [\n { label: 'Chinese', value: 'chinese' },\n { label: 'Malay', value: 'malay' },\n { label: 'Indian', value: 'indian' },\n { label: 'Eurasian', value: 'eurasian' },\n { label: 'Others', value: 'others' }\n ],\n disabled: !this.isOpsStaff\n },\n {\n label: 'Immigration No.',\n key: 'immigrationNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Employment Pass No.',\n key: 'employmentPassNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Handphone No.',\n model: {\n get: () => this.user.mobile,\n set: (val) => { this.user.mobile = val }\n },\n disabled: !this.isOpsStaff // || this.isLockedField('mobile')\n },\n {\n label: 'Residential Tel No.',\n key: 'residentialNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Email',\n model: {\n get: () => this.user.email,\n set: (val) => { this.user.email = val }\n },\n disabled: !this.isOpsStaff // || this.isLockedField('email')\n },\n {\n label: 'Postal Code',\n key: 'postalCode',\n disabled: !this.isOpsStaff // || this.isLockedField('postalCode')\n },\n {\n label: 'Residential Address',\n key: 'residentialAddress',\n classes: ['colspan'],\n disabled: !this.isOpsStaff // || this.isLockedField('residentialAddress')\n }\n ]\n }\n\n get nationalityOptions () {\n return NationalityOptions\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/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!./ThePersonalDetails.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!./ThePersonalDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ThePersonalDetails.vue?vue&type=template&id=31df039d&scoped=true&\"\nimport script from \"./ThePersonalDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./ThePersonalDetails.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 \"31df039d\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/myinfo-icon.28e75045.svg\";","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"user-adviser-details\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Details\")]),_c('el-tabs',{model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{attrs:{\"label\":\"Recruitment Checklist\",\"name\":\"first\"}},[_c('TheRecruitmentChecklist')],1),_c('el-tab-pane',{attrs:{\"label\":\"Personal Details\",\"name\":\"second\"}},[_c('ThePersonalDetails')],1),_c('el-tab-pane',{attrs:{\"label\":\"Spouse & Next Kin of Details\",\"name\":\"third\"}},[_c('TheSpouse')],1),_c('el-tab-pane',{attrs:{\"label\":\"Personal Items Issued\",\"name\":\"fourth\"}},[_c('ThePersonalItems')],1),_c('el-tab-pane',{attrs:{\"label\":\"Education\",\"name\":\"fifth\"}},[_c('TheEducation')],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* eslint-disable @typescript-eslint/camelcase */\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport TheEducation from './user-adviser-details-components/TheEducation.vue'\nimport ThePersonalDetails from './user-adviser-details-components/ThePersonalDetails.vue'\nimport TheRecruitmentChecklist from './user-adviser-details-components/TheRecruitmentChecklist.vue'\nimport TheSpouse from './user-adviser-details-components/TheSpouse.vue'\nimport ThePersonalItems from './user-adviser-details-components/ThePersonalItems.vue'\nimport { inject } from 'inversify-props'\nimport API from '@core/services/API'\nimport { UIService } from '@core/services/UIService'\nimport { UserAdviserDetailsMeta } from './user-adviser-details-components/model/UserAdviserDetailsMeta'\n\nconst userStore = namespace('UserStore')\n\n@Component({\n components: {\n TheEducation,\n ThePersonalDetails,\n TheRecruitmentChecklist,\n TheSpouse,\n ThePersonalItems\n }\n})\nexport default class UserAdviserDetails extends Vue {\n @inject()\n private $api: API\n\n uiService: UIService\n\n private activeName = 'first'\n\n @userStore.State\n private userAdviserDetails!: UserAdviserDetailsMeta\n\n @userStore.Action\n private fetchAdviserDetails: (adviserOid: string) => Promise\n\n get userOid (): string {\n return this.$route.params.userOid as string || this.$store.getters.currentUser.accountID\n }\n\n get isSuperUser () {\n return this.$store.getters.currentUser.isSuperUser\n }\n\n get isOpsStaff () {\n return this.$store.getters.currentUser.systemrole === 'ops-staff'\n }\n\n async onSubmit () {\n const dataToSave: any = {\n ...this.userAdviserDetails.convertToRawData(null, true),\n user_oid: this.userOid\n }\n\n await this.$api.adviserDetails.saveDetails({\n adviser_oid: this.userOid,\n data: JSON.stringify(dataToSave)\n })\n }\n\n async created () {\n this.$parent.$on('save', this.onSubmit)\n }\n\n async mounted () {\n await this.fetchAdviserDetails(this.userOid)\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/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!./UserAdviserDetails.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!./UserAdviserDetails.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./UserAdviserDetails.vue?vue&type=template&id=4624b24e&scoped=true&\"\nimport script from \"./UserAdviserDetails.vue?vue&type=script&lang=ts&\"\nexport * from \"./UserAdviserDetails.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./UserAdviserDetails.vue?vue&type=style&index=0&id=4624b24e&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 \"4624b24e\",\n null\n \n)\n\nexport default component.exports","'use strict'\n\nfunction oldBrowser () {\n throw new Error('secure random number generation not supported by this browser\\nuse chrome, FireFox or Internet Explorer 11')\n}\n\nvar crypto = global.crypto || global.msCrypto\n\nif (crypto && crypto.getRandomValues) {\n module.exports = randomBytes\n} else {\n module.exports = oldBrowser\n}\n\nfunction randomBytes (size, cb) {\n // phantomjs needs to throw\n if (size > 65536) throw new Error('requested too many random bytes')\n // in case browserify isn't using the Uint8Array version\n var rawBytes = new global.Uint8Array(size)\n\n // This will not work in older browsers.\n // See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n if (size > 0) { // getRandomValues fails on IE if size == 0\n crypto.getRandomValues(rawBytes)\n }\n // phantomjs doesn't like a buffer being passed here\n var bytes = new Buffer(rawBytes.buffer)\n\n if (typeof cb === 'function') {\n return process.nextTick(function () {\n cb(null, bytes)\n })\n }\n\n return bytes\n}\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppForm.vue?vue&type=style&index=0&id=11928856&lang=scss&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AppCurrencyNA.vue?vue&type=style&index=0&id=423a3b72&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tab-pane fade\",attrs:{\"id\":\"page4\",\"role\":\"tabpanel\"}},[_c('div',{staticClass:\"form-body\"},[_c('AppForm',{attrs:{\"structures\":_vm.personalItemsStructure,\"model\":_vm.personalItemsIssued}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport { UserAdviserDetailsMeta } from './model/UserAdviserDetailsMeta'\nimport PersonalItemsIssuedMeta from './model/PersonalItemsIssuedMeta'\n\nconst userStore = namespace('UserStore')\n\n@Component({\n components: {\n AppForm\n }\n})\nexport default class ThePersonalItems extends Vue {\n @userStore.State\n private userAdviserDetails!: UserAdviserDetailsMeta\n\n get currentUser () {\n return this.$store.getters.currentUser\n }\n\n get isOpsStaff () {\n return this.currentUser.systemrole === 'ops-staff'\n }\n\n get personalItemsIssued () {\n return this.userAdviserDetails.personalItemsIssued\n }\n\n get personalItemsStructure (): FormStructure {\n return [\n {\n label: 'Access Card No.',\n key: 'accessCardNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Locker No.',\n key: 'lockerNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Pigeon Box No.',\n key: 'pigeonBoxNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Security Level',\n key: 'securityLevel',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Pedestal No.',\n key: 'pedestalNumber',\n disabled: !this.isOpsStaff\n },\n {\n label: 'Remarks',\n key: 'remarks',\n type: 'textarea',\n classes: ['colspan'],\n disabled: !this.isOpsStaff\n }\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/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!./ThePersonalItems.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!./ThePersonalItems.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ThePersonalItems.vue?vue&type=template&id=44fb775c&scoped=true&\"\nimport script from \"./ThePersonalItems.vue?vue&type=script&lang=ts&\"\nexport * from \"./ThePersonalItems.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 \"44fb775c\",\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:\"tab-pane fade show active\",attrs:{\"id\":\"page1\",\"role\":\"tabpanel\"}},[_c('table',{staticClass:\"bordered\"},[_vm._m(0),_c('tbody',_vm._l((_vm.recruitmentChecklistRows),function(ref,index){\nvar criteria = ref.criteria;\nvar requirements = ref.requirements;\nvar checkKey = ref.checkKey;\nvar remarksKey = ref.remarksKey;\nreturn _c('tr',{key:index},[_c('td',[_vm._v(_vm._s(criteria))]),_c('td',[_vm._v(_vm._s(requirements))]),_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.userAdviserDetails[checkKey]),expression:\"userAdviserDetails[checkKey]\"}],attrs:{\"type\":\"checkbox\",\"data-test\":(\"recruit:\" + checkKey),\"disabled\":!_vm.isOpsStaff},domProps:{\"checked\":Array.isArray(_vm.userAdviserDetails[checkKey])?_vm._i(_vm.userAdviserDetails[checkKey],null)>-1:(_vm.userAdviserDetails[checkKey])},on:{\"change\":function($event){var $$a=_vm.userAdviserDetails[checkKey],$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.userAdviserDetails, checkKey, $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.userAdviserDetails, checkKey, $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.userAdviserDetails, checkKey, $$c)}}}})]),_c('td',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.recruitmentChecklist[remarksKey]),expression:\"recruitmentChecklist[remarksKey]\"}],attrs:{\"type\":\"text\",\"data-test\":(\"recruit_remark:\" + remarksKey),\"disabled\":!_vm.isOpsStaff},domProps:{\"value\":(_vm.recruitmentChecklist[remarksKey])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.recruitmentChecklist, remarksKey, $event.target.value)}}})])])}),0)])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('thead',[_c('tr',[_c('th',[_vm._v(\"Criteria\")]),_c('th',[_vm._v(\"Requirements/ Checks\")]),_c('th',{staticStyle:{\"width\":\"100px\"}}),_c('th',[_vm._v(\"Remarks\")])])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport { RecruitmentChecklistMeta } from './model/RecruitmentChecklistMeta'\nimport { UserAdviserDetailsMeta } from './model/UserAdviserDetailsMeta'\n\nconst userStore = namespace('UserStore')\n\n@Component\nexport default class TheRecruitmentChecklist extends Vue {\n @userStore.State\n private userAdviserDetails!: UserAdviserDetailsMeta;\n\n get currentUser () {\n return this.$store.getters.currentUser\n }\n\n get isOpsStaff () {\n return this.currentUser.systemrole === 'ops-staff'\n }\n\n get recruitmentChecklist () {\n return this.userAdviserDetails.recruitmentChecklist\n }\n\n protected recruitmentChecklistRows: Array<{\n checkKey: keyof UserAdviserDetailsMeta;\n criteria: string;\n requirements: string;\n remarksKey: keyof RecruitmentChecklistMeta;\n }> = [\n {\n checkKey: 'atLeast21Checked',\n criteria: 'Minimum Age',\n requirements: 'At least 21 years old',\n remarksKey: 'atLeast21Remarks'\n },\n // Temporary commenting it out so that SingCap can view what they required\n // {\n // checkKey: 'atLeast4GceChecked',\n // criteria: 'Education Qualification',\n // requirements: \"At least 4 GCE 'O' Level credits\",\n // remarksKey: 'atLeast4GceRemarks'\n // },\n {\n checkKey: 'aLvlChecked',\n criteria: 'Education Qualification',\n requirements: 'At least 5 \\'A\\' level credits or Equivalent Qualification',\n remarksKey: 'aLvlCheckedRemarks'\n },\n {\n checkKey: 'examRequirementsChecked',\n criteria: 'Examination Requirements',\n requirements: 'Life Insurance passed M5 & M9',\n remarksKey: 'examRequirementsRemarks'\n },\n {\n checkKey: 'examRequirements2Checked',\n criteria: 'Examination Requirements',\n requirements: 'Life Insurance passed M8 & M8A',\n remarksKey: 'examRequirements2Remarks'\n },\n {\n checkKey: 'examRequirements3Checked',\n criteria: 'Examination Requirements',\n requirements: 'Life Insurance passed M6 & M6A',\n remarksKey: 'examRequirements3Remarks'\n },\n {\n checkKey: 'examRequirements4Checked',\n criteria: 'Examination Requirements',\n requirements: 'Life Insurance passed M1 & M1B',\n remarksKey: 'examRequirements4Remarks'\n },\n {\n checkKey: 'examRequirements5Checked',\n criteria: 'Examination Requirements',\n requirements: 'GI Insurance passed BCP, CGI, & PGI',\n remarksKey: 'examRequirements5Remarks'\n },\n {\n checkKey: 'solvencySearchChecked',\n criteria: 'Fit & Proper',\n requirements: 'Solvency Search',\n remarksKey: 'solvencySearchRemarks'\n },\n {\n checkKey: 'contractStatusChecked',\n criteria: 'Fit & Proper',\n requirements: 'Exempt FA and FA check - Contract Status',\n remarksKey: 'contractStatusRemarks'\n },\n {\n checkKey: 'marketConductChecked',\n criteria: 'Fit & Proper',\n requirements: 'Exempt FA and FA check - Market Conduct',\n remarksKey: 'marketConductRemarks'\n },\n {\n checkKey: 'employerChecked',\n criteria: 'Fit & Proper',\n requirements: 'Employer Check',\n remarksKey: 'employerRemarks'\n },\n {\n checkKey: 'masProhibitionCheckChecked',\n criteria: 'Fit & Proper',\n requirements: 'MAS Prohibition Order Check',\n remarksKey: 'masProhibitionCheckRemarks'\n }\n ];\n\n // @Watch('loading')\n // watchLoading (newValue: boolean) {\n // if (!newValue) {\n // this.updateRecruitmentChecklistRows()\n // }\n // }\n\n // updateRecruitmentChecklistRows () {\n // this.recruitmentChecklistRows.forEach((recruitmentChecklist: RecruitmentChecklistInterface) => {\n // recruitmentChecklist.checked = !!this.userAdviserDetails[\n // recruitmentChecklist.key + '_checked'\n // ]\n // recruitmentChecklist.remarks = this.userAdviserDetails.recruitment_checklist[\n // recruitmentChecklist.key + '_remarks'\n // ]\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/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!./TheRecruitmentChecklist.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!./TheRecruitmentChecklist.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TheRecruitmentChecklist.vue?vue&type=template&id=55301120&scoped=true&\"\nimport script from \"./TheRecruitmentChecklist.vue?vue&type=script&lang=ts&\"\nexport * from \"./TheRecruitmentChecklist.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TheRecruitmentChecklist.vue?vue&type=style&index=0&id=55301120&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 \"55301120\",\n null\n \n)\n\nexport default component.exports","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserAdviserDetails.vue?vue&type=style&index=0&id=4624b24e&lang=scss&scoped=true&\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TheRecruitmentChecklist.vue?vue&type=style&index=0&id=55301120&lang=scss&scoped=true&\"","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./TheEducation.vue?vue&type=style&index=0&id=7e91f8de&lang=scss&scoped=true&\"","'use strict';\n\n// there's 3 implementations written in increasing order of efficiency\n\n// 1 - no Set type is defined\nfunction uniqNoSet(arr) {\n\tvar ret = [];\n\n\tfor (var i = 0; i < arr.length; i++) {\n\t\tif (ret.indexOf(arr[i]) === -1) {\n\t\t\tret.push(arr[i]);\n\t\t}\n\t}\n\n\treturn ret;\n}\n\n// 2 - a simple Set type is defined\nfunction uniqSet(arr) {\n\tvar seen = new Set();\n\treturn arr.filter(function (el) {\n\t\tif (!seen.has(el)) {\n\t\t\tseen.add(el);\n\t\t\treturn true;\n\t\t}\n\t});\n}\n\n// 3 - a standard Set type is defined and it has a forEach method\nfunction uniqSetWithForEach(arr) {\n\tvar ret = [];\n\n\t(new Set(arr)).forEach(function (el) {\n\t\tret.push(el);\n\t});\n\n\treturn ret;\n}\n\n// V8 currently has a broken implementation\n// https://github.com/joyent/node/issues/8449\nfunction doesForEachActuallyWork() {\n\tvar ret = false;\n\n\t(new Set([true])).forEach(function (el) {\n\t\tret = el;\n\t});\n\n\treturn ret === true;\n}\n\nif ('Set' in global) {\n\tif (typeof Set.prototype.forEach === 'function' && doesForEachActuallyWork()) {\n\t\tmodule.exports = uniqSetWithForEach;\n\t} else {\n\t\tmodule.exports = uniqSet;\n\t}\n} else {\n\tmodule.exports = uniqNoSet;\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"column-group\",style:(_vm.gridStyle),attrs:{\"id\":\"app-form\"}},[_vm._l((_vm.structuresDetails),function(structure){return [(_vm.shouldShow(structure.show))?_c('div',{key:structure.key,staticClass:\"input-group-with-theme\",class:[{ 'input-disabled': _vm.shouldDisabled(structure.disabled)}, _vm.getCustomClass(structure)],attrs:{\"has-msg\":structure.hasErrors,\"focusing\":_vm.focusId == _vm.getId(structure.key),\"id\":(\"box-\" + (_vm.getId(structure.key)))},on:{\"click\":function($event){return _vm.focusInner(structure)}}},[[(structure.labelModel)?_c('input',{staticClass:\"label\",attrs:{\"type\":\"text\",\"placeholder\":structure.label,\"data-test\":(\"label-input:\" + (_vm.getTestId(structure.key)))},domProps:{\"value\":_vm.labelModelValue(structure.labelModel.get())},on:{\"input\":function($event){return structure.labelModel.set($event.target.value)}}}):(structure.labelKey)?_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.model[structure.labelKey]),expression:\"model[structure.labelKey]\"}],staticClass:\"label\",attrs:{\"type\":\"text\",\"data-test\":(\"label-input:\" + (_vm.getTestId(structure.key)))},domProps:{\"value\":(_vm.model[structure.labelKey])},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.model, structure.labelKey, $event.target.value)}}}):_vm._e(),(structure.labelModel || structure.labelKey)?_c('i',{staticClass:\"fa fa-pencil-alt right-sided\"}):(structure.type === 'single-checkbox')?_c('span'):_c('label',{attrs:{\"for\":_vm.getId(structure.key),\"id\":_vm.getId(structure.key) + '_label'},domProps:{\"innerHTML\":_vm._s(structure.label)}}),(structure.tooltip)?_c('AppTooltip',{attrs:{\"tooltipConfig\":structure.tooltip}}):_vm._e(),(_vm.isModernTheme)?_vm._l((structure.errors),function(ref,eidx){\nvar msg = ref.msg;\nreturn _c('div',{key:((structure.key) + \"-error-\" + eidx),staticClass:\"form-msg\",class:{\n full:\n eidx === 0 || _vm.fullErr === ((structure.key) + \"-error-\" + eidx),\n },on:{\"click\":function($event){_vm.fullErr = (structure.key) + \"-error-\" + eidx}}},[_c('el-tooltip',[_c('span',{staticClass:\"el-icon-warning\"}),_c('span',{attrs:{\"slot\":\"content\"},slot:\"content\"},[_vm._v(_vm._s(msg))])])],1)}):_vm._e()],(structure.options && structure.type === 'smart')?_c('AppSmartSelect',{attrs:{\"options\":structure.options,\"value\":_vm.model[structure.key],\"multiple\":structure.multiple,\"cols\":structure.optionCols,\"multiLimit\":structure.multiLimit,\"buttonName\":structure.buttonName,\"cycleMode\":structure.cycleMode,\"displayDirection\":structure.displayDirection,\"disabled\":_vm.shouldDisabled(structure.disabled)},on:{\"input\":function($event){return _vm.setValue(structure, $event)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.type === 'single-checkbox')?_c('el-checkbox',{attrs:{\"value\":_vm.getValue(structure),\"disabled\":_vm.shouldDisabled(structure.disabled)},on:{\"change\":function($event){return _vm.setValue(structure, $event)}}},[_vm._v(\" \"+_vm._s(structure.label)+\" \")]):(structure.options && structure.type === 'checkbox')?_c('AppCheckboxGroup',{attrs:{\"structure\":structure,\"model\":_vm.model,\"column\":structure.checkboxColumnNo,\"compact\":structure.compact},on:{\"change\":function($event){return _vm.setValue(structure, $event)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.options && structure.type === 'radio')?_c('AppRadioSelection',{attrs:{\"options\":structure.options,\"value\":_vm.model[structure.key],\"buttonName\":structure.buttonName,\"displayDirection\":structure.displayDirection,\"disabled\":_vm.shouldDisabled(structure.disabled)},on:{\"input\":function($event){return _vm.setValue(structure, $event)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.type === 'multi')?_c('el-select',{staticClass:\"form-multi-select\",attrs:{\"value\":_vm.getValue(structure),\"disabled\":_vm.shouldDisabled(structure.disabled),\"multiple\":\"\",\"collapse-tags\":\"\",\"size\":'small',\"popper-class\":'wen-popper-class'},on:{\"change\":function($event){return _vm.setValue(structure, $event)}}},_vm._l((structure.options),function(option,index){return _c('el-option',{key:index,attrs:{\"value\":option.value,\"label\":option.label}})}),1):(structure.options)?_c('select',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"id\":_vm.getId(structure.key),\"data-test\":_vm.getTestId(structure.key),\"aria-labelledby\":_vm.getLabelId(structure.key),\"disabled\":_vm.shouldDisabled(structure.disabled)},domProps:{\"value\":_vm.getValue(structure)},on:{\"input\":function($event){return _vm.setSelectValue($event.target, structure)}}},_vm._l((structure.options),function(option,index){return _c('option',{key:index,domProps:{\"value\":option.value}},[_vm._v(\" \"+_vm._s(option.label)+\" \")])}),0):(structure.type === 'decimal-number')?[_c('AppDecimalNumber',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"decimal\":structure.decimal,\"inputValue\":_vm.getValue(structure),\"disabled\":_vm.shouldDisabled(structure.disabled)},on:{\"input\":function($event){return _vm.setValue(structure, $event)}}})]:(structure.type === 'number' || structure.type === 'time' || structure.type === 'password')?_c('input',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"id\":_vm.getId(structure.key),\"data-test\":_vm.getTestId(structure.key),\"aria-labelledby\":_vm.getLabelId(structure.key),\"type\":structure.type,\"disabled\":_vm.shouldDisabled(structure.disabled),\"maxlength\":structure.maxChar},domProps:{\"value\":_vm.getValue(structure)},on:{\"input\":function($event){return _vm.setValue(structure, $event.target.value)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.type === 'currency')?_c('currency-input',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"id\":_vm.getId(structure.key),\"data-test\":_vm.getTestId(structure.key),\"currency\":structure.currencyFormat,\"aria-labelledby\":_vm.getLabelId(structure.key),\"value\":_vm.getValue(structure),\"disabled\":_vm.shouldDisabled(structure.disabled),\"precision\":structure.precision},on:{\"input\":function($event){return _vm.setValue(structure, $event)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.type === 'date' || structure.type === 'month')?_c('AppDateInput',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"value\":_vm.getValue(structure),\"id\":_vm.getId(structure.key),\"input-type\":structure.type,\"data-test\":_vm.getTestId(structure.key),\"aria-label\":structure.label,\"disabled\":_vm.shouldDisabled(structure.disabled),\"futureDate\":structure.futureDate,\"disabledFutureDate\":structure.disabledFutureDate},on:{\"input\":function($event){return _vm.setValue(structure, $event)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.type === 'textarea')?_c('textarea',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"id\":_vm.getId(structure.key),\"data-test\":_vm.getTestId(structure.key),\"aria-labelledby\":_vm.getLabelId(structure.key),\"disabled\":_vm.shouldDisabled(structure.disabled),\"maxlength\":structure.maxChar,\"rows\":structure.rows || 10},domProps:{\"value\":_vm.getValue(structure)},on:{\"input\":function($event){return _vm.setValue(structure, $event.target.value)},\"blur\":function($event){return _vm.blurHandler()}}}):(structure.type === 'table')?_c('AppFormTable',{staticClass:\"inner-table\",attrs:{\"innerTable\":true,\"vertical\":structure.isVertical,\"maxSize\":structure.maxSize,\"fields\":structure.columns,\"data\":_vm.getValueForTable(structure)},on:{\"add\":structure.add,\"remove\":structure.remove}}):(structure.type==='na-currency')?[_c('AppCurrencyNA',{attrs:{\"inputValue\":_vm.getValue(structure),\"disabled\":_vm.shouldDisabled(structure.disabled),\"maxlength\":structure.maxLength},on:{\"input\":function($event){return _vm.setValue(structure, $event)}}})]:_c('input',{class:{ 'myinfo-disabled': structure.isMyInfo },attrs:{\"id\":_vm.getId(structure.key),\"data-test\":_vm.getTestId(structure.key),\"aria-labelledby\":_vm.getLabelId(structure.key),\"type\":\"text\",\"disabled\":_vm.shouldDisabled(structure.disabled),\"maxlength\":structure.maxChar},domProps:{\"value\":_vm.getValue(structure)},on:{\"input\":function($event){return _vm.setValue(structure, $event.target.value)},\"blur\":function($event){return _vm.blurHandler(structure, $event.target.value)}}}),(structure.isMyInfo)?_c('img',{staticClass:\"input-hint logo\",attrs:{\"src\":require(\"@core/assets/myinfo-icon.svg\")}}):_vm._e(),(structure.counterMsg && _vm.isModernTheme)?_c('div',{staticClass:\"char-counter\"},[_vm._v(\" \"+_vm._s(structure.counterMsg)+\" \")]):_vm._e()],2):_vm._e()]})],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.inputModal),expression:\"inputModal\"}],attrs:{\"maxlength\":_vm.maxlength,\"disabled\":_vm.disabled},domProps:{\"value\":(_vm.inputModal)},on:{\"keypress\":function($event){return _vm.numberAndNAOnly($event)},\"blur\":function($event){return _vm.onBlur()},\"focus\":function($event){return _vm.onFocus()},\"select\":function($event){return _vm.onSelect($event)},\"input\":function($event){if($event.target.composing){ return; }_vm.inputModal=$event.target.value}}}),(!_vm.disabled)?_c('div',{staticClass:\"char-counter\"},[_vm._v(\" \"+_vm._s(_vm.counterMsg)+\" \")]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator'\nimport { IProjectInfo } from '@master/config/IProjectInfo'\nimport { inject } from 'inversify-props'\n\n@Component\nexport default class AppCurrencyNA extends Vue {\n @Prop() inputValue\n @Prop({ default: true }) useCurrency!: boolean\n @Prop({ default: 10 }) maxlength?: number\n @Prop({ default: false }) disabled: boolean\n\n @inject()\n private projectInfo: IProjectInfo\n\n inputModal = ''\n textIsSelected = false\n\n get counterMsg () {\n if (typeof this.maxlength === 'undefined') return\n const number = this.convertCurrencyToNumber(this.inputModal)\n const remainingChar = this.maxlength - (number.toString().length || 0)\n return remainingChar > 0 ? `${remainingChar} letter(s) remaining` : 'Max character limit reached'\n }\n\n numberAndNAOnly (evt) {\n evt = (evt) || window.event\n const charCode = (evt.which) ? evt.which : evt.keyCode\n\n const currentValue = evt.target.value\n if (this.textIsSelected) {\n if (!this.isAlphabetN(charCode) && this.isNonNumber(charCode)) {\n evt.preventDefault()\n } else {\n this.textIsSelected = false\n }\n return true\n }\n\n // if current value is 'NA', cannot key in other character\n if (currentValue.toUpperCase() === 'NA') {\n evt.preventDefault()\n }\n\n // if current value is N, the followed char must be A\n if (this.isAlphabetN(currentValue.charCodeAt(0))) {\n if (this.isAlphabetA(charCode)) {\n return true\n }\n evt.preventDefault() // only can accept A\n }\n\n // if there is empty value, it can either key in char N or number only\n if (!currentValue) {\n if (this.isAlphabetN(charCode)) {\n return true\n }\n }\n\n // cannot key in non number value\n if (this.isNonNumber(charCode)) {\n evt.preventDefault()\n } else {\n return true\n }\n }\n\n isAlphabetN (charCode) {\n return charCode === 78 || charCode === 110\n }\n\n isAlphabetA (charCode) {\n return charCode === 65 || charCode === 97\n }\n\n isNonNumber (charCode) {\n return charCode > 31 && (charCode < 48 || charCode > 57)\n }\n\n onBlur () {\n if (!this.inputModal && this.inputModal !== '0') {\n this.inputModal = this.formatValue('')\n this.$emit('input', '')\n return\n }\n\n // format na to NA to display\n if (this.inputModal.toUpperCase() === 'NA') {\n this.inputModal = 'NA'\n this.$emit('input', 'NA')\n return\n }\n\n // in case only key in 'n' and on blur, format it to NA\n if (isNaN(Number(this.inputModal))) {\n this.inputModal = 'NA'\n this.$emit('input', 'NA')\n return\n }\n\n const number = this.convertCurrencyToNumber(this.inputModal)\n this.inputModal = this.formatValue(number)\n this.$emit('input', Number(number))\n }\n\n onFocus () {\n this.inputModal = this.convertCurrencyToNumber(this.inputModal)\n }\n\n onSelect () {\n this.textIsSelected = true\n }\n\n formatValue (source) {\n if (typeof source === 'string') {\n if (source.toUpperCase() === 'NA' || source === '') {\n return source\n }\n source = Number(source.replace('$', '').replace(',', ''))\n } else if (source === undefined || source == null) {\n source = ''\n }\n return this.useCurrency ? this.currencyPrefix + source?.toLocaleString('en-US') : source?.toLocaleString('en-US')\n }\n\n convertCurrencyToNumber (currency) {\n return currency.replaceAll(this.currencyPrefix, '').replaceAll(',', '')\n }\n\n get currencyPrefix () {\n return this.projectInfo.currency ?? 'SGD$'\n }\n\n @Watch('inputValue')\n inputValueOnChange () {\n if (this.inputValue || this.inputValue === '0' || Number(this.inputValue) === 0) {\n this.inputModal = this.formatValue(this.inputValue)\n } else {\n this.inputModal = this.formatValue('')\n }\n }\n\n mounted () {\n this.inputModal = this.formatValue(this.inputValue)\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/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!./AppCurrencyNA.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!./AppCurrencyNA.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AppCurrencyNA.vue?vue&type=template&id=423a3b72&scoped=true&\"\nimport script from \"./AppCurrencyNA.vue?vue&type=script&lang=ts&\"\nexport * from \"./AppCurrencyNA.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AppCurrencyNA.vue?vue&type=style&index=0&id=423a3b72&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 \"423a3b72\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Base } from '@master/model/Base'\nimport { FormStructure, Input, TableSetup } from '@master/model/structure/FormStructure'\nimport { Component, Prop, Vue, Watch } from 'vue-property-decorator'\nimport AppCheckboxGroup from '@core/components/AppCheckboxGroup.vue'\nimport AppFormTable from '@core/components/AppFormTable.vue'\nimport AppRadioSelection from '@core/components/AppRadioSelection.vue'\nimport AppSmartSelect from '@core/components/AppSmartSelect.vue'\nimport { inject } from 'inversify-props'\nimport { IDateService } from '@master/services/IDateService'\nimport AppDateInput from './AppDateInput.vue'\nimport { getMaxChar } from '@master/annotation/MaxChar'\nimport { IProjectSettings } from '@master/config/IProjectSettings'\nimport { isUndefined } from 'lodash/fp'\nimport randomstring from 'randomstring'\nimport AppCurrencyNA from './AppCurrencyNA.vue'\nimport AppDecimalNumber from './AppDecimalNumber.vue'\nimport AppTooltip from './AppTooltip.vue'\n\n@Component({\n components: {\n AppSmartSelect,\n AppCheckboxGroup,\n AppRadioSelection,\n AppDateInput,\n AppFormTable,\n AppCurrencyNA,\n AppDecimalNumber,\n AppTooltip\n }\n})\n\nexport default class AppForm extends Vue {\n @Prop() readonly structures!: FormStructure[];\n @Prop() readonly model!: T;\n @Prop({ default: 1 }) readonly columns: number;\n @Prop() readonly errors?: { key: string; msg: string }[];\n @Prop({ default: () => { return Date.now() } })\n readonly uniqueID: string;\n\n @Prop({ default: false }) readonly readOnly: boolean;\n\n @inject()\n private dateService: IDateService;\n\n @inject()\n private projectSettings: IProjectSettings;\n\n private minimal = true;\n // private renderCnt = 0;\n private focusId = null;\n private fullErr = null;\n\n get structuresDetails () {\n return this.structures.map((structure) => {\n const key = (structure as any).key\n const errors = this.errors?.filter((err) => err.key === key) || []\n const maxChar = getMaxChar(this.model, key)\n const charLeft = this.getCharLeft(key)\n const counterMsg = this.getCounterMsg(maxChar, charLeft)\n return {\n errors,\n hasErrors: errors?.length > 0,\n maxChar,\n counterMsg,\n ...structure\n }\n })\n }\n\n get gridStyle () {\n return {\n gridTemplateColumns: `repeat(${this.columns}, minmax(0, 1fr))`\n }\n }\n\n get isModernTheme () {\n return this.projectSettings.theme === 'Modern'\n }\n\n getCounterMsg (maxChar, charLeft) {\n if (!this.isModernTheme) return '' // counterMsg only used in Modern Theme\n return maxChar ? charLeft > 0 ? `${charLeft} letters remaining` : 'Max character limit reached' : ''\n }\n\n shouldDisabled (condition: boolean | Function = false) {\n if (this.readOnly) return true\n if (condition === undefined) {\n return false\n } else if (condition instanceof Function) {\n return condition(this.model)\n } else {\n return condition\n }\n }\n\n shouldShow (condition: boolean | Function = true) {\n if (condition === undefined) {\n return false\n } else if (condition instanceof Function) {\n return condition(this.model)\n } else {\n return condition\n }\n }\n\n getValue (input: Input) {\n if (input.type === 'currency') {\n const oriValue = this.model[input.key]\n if (typeof oriValue === 'string' || oriValue instanceof String) {\n return Number(this.model[input.key])\n }\n }\n if (input.key) {\n return this.model[input.key]\n } else if (input.model) {\n return input.model.get()\n } else {\n throw new Error(\n `Invalid config for label ${input.label}: key or model is required`\n )\n }\n }\n\n /**\n * Return null as the label if it is empty so\n * that the placeholder will appear\n */\n labelModelValue (labelValue: string) {\n return !labelValue ? null : labelValue\n }\n\n getValueForTable (input: TableSetup) {\n if (input.key) {\n return this.model[input.key]\n } else if (input.data) {\n return input.data\n } else {\n throw new Error(\n `Invalid config for label ${input.label}: key or model is required`\n )\n }\n }\n\n // this is to resolve the issue of event.target.value is always passed as string, but our use cases might need number\n setSelectValue (event, structure) {\n const selectedOption = structure.options[event.selectedIndex]\n this.setValue(structure, selectedOption.value)\n }\n\n setValue (input: Input, _value: T[keyof T]) {\n const value: any = input.type === 'number' ? +_value || 0 : _value\n\n if (input.key) {\n if (input.onChange) {\n input.onChange(this.model[input.key], value)\n }\n // when only has getter (for currency input), sidestep the error\n try {\n this.model[input.key] = value\n } catch (ex) {}\n } else if (input.model) {\n if (input.onChange) {\n input.onChange(this.model[input.key], value)\n }\n return input.model.set(value)\n } else {\n throw new Error(`Invalid config for label ${input.label}: key or model is required`)\n }\n }\n\n getId (key: string) {\n if (this.model && 'snakeCaseKey' in this.model) {\n return `${this.uniqueID}_${this.model.snakeCaseKey(key)}`\n }\n\n if (isUndefined(key)) {\n key = randomstring.generate(6)\n }\n\n if (this.uniqueID) {\n return `${this.uniqueID}_${key}`\n }\n\n return `${key}`\n }\n\n getTestId (key: string) {\n if (this.model && 'snakeCaseKey' in this.model) {\n return `${this.model.snakeCaseKey(key)}`\n }\n return undefined\n }\n\n getLabelId (key: string) {\n return this.getId(key) + '_label'\n }\n\n arrangeCols () {\n const curAppForm = this.$el\n const hasOverflow = curAppForm.scrollWidth > curAppForm.clientWidth\n if (hasOverflow) this.minimal = true\n }\n\n blurHandler (input: Input, _value: T[keyof T]) {\n if (this.isModernTheme) {\n this.focusId = null\n }\n\n if (input && input?.onBlur) {\n input.onBlur(_value)\n }\n }\n\n // use to handle Modern theme\n focusInner (structure: any) {\n // this means label is also editable, thus do not auto focus input\n if (structure.labelModel || structure.labelKey || structure.model) return\n const eleId = this.getId(structure.key)\n this.focusId = eleId\n const ele = document.getElementById(eleId)\n if (ele) ele.focus()\n }\n\n getCharLeft (key: string) {\n const mc = getMaxChar(this.model, key)\n return mc ? mc - (this.model[key]?.length || 0) : mc\n }\n\n getCustomClass (structure) {\n return structure.classes ? [...structure.classes] : []\n }\n\n // @Watch('structures')\n // structuresUpdated () {\n // // this is to allow view to be updated when structures change\n // this.renderCnt++\n // }\n\n @Watch('structuresDetails', { deep: true })\n focusError (swe) {\n if (!this.isModernTheme) return // this is used for Modern Theme\n\n const first = swe.find((s) => 'msg' in s)\n if (!first) return\n const ele = document.getElementById(`box-${this.getId(first.key)}`)\n if (!ele) return\n ele.scrollIntoView({ behavior: 'smooth', block: 'end' })\n }\n\n updated () {\n this.arrangeCols()\n }\n\n mounted () {\n this.arrangeCols()\n window.addEventListener('resize', () => this.arrangeCols())\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/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!./AppForm.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!./AppForm.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AppForm.vue?vue&type=template&id=11928856&scoped=true&\"\nimport script from \"./AppForm.vue?vue&type=script&lang=ts&\"\nexport * from \"./AppForm.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AppForm.vue?vue&type=style&index=0&id=11928856&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 \"11928856\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}