{"version":3,"sources":["webpack:///./@core/pages/new-business-register/components/policy/page/NBRDetailPage.vue?7ec1","webpack:///./@core/pages/new-business-register/components/policy/CancellationSection.vue?203c","webpack:///./@core/pages/new-business-register/components/policy/CancellationSection.vue","webpack:///./@core/pages/new-business-register/components/policy/CancellationSection.vue?06e1","webpack:///./@core/pages/new-business-register/components/policy/CancellationSection.vue?14ff","webpack:///./@core/pages/new-business-register/components/policy/PolicyDetailSection.vue?da5f","webpack:///./@core/pages/new-business-register/components/policy/PolicyDetailSection.vue","webpack:///./@core/pages/new-business-register/components/policy/PolicyDetailSection.vue?6058","webpack:///./@core/pages/new-business-register/components/policy/PolicyDetailSection.vue?8a03","webpack:///./@core/pages/new-business-register/components/policy/AdviserDetailSection.vue?2fda","webpack:///./@core/pages/new-business-register/components/policy/AdviserDetailSection.vue","webpack:///./@core/pages/new-business-register/components/policy/AdviserDetailSection.vue?239d","webpack:///./@core/pages/new-business-register/components/policy/AdviserDetailSection.vue?9698","webpack:///./@core/pages/new-business-register/components/policy/SubPolicyApprovalSection.vue?5fd4","webpack:///./@core/pages/new-business-register/components/policy/SubPolicyApprovalSection.vue","webpack:///./@core/pages/new-business-register/components/policy/SubPolicyApprovalSection.vue?2733","webpack:///./@core/pages/new-business-register/components/policy/SubPolicyApprovalSection.vue?9cec","webpack:///./@core/pages/new-business-register/components/policy/page/NBRDetailPage.vue","webpack:///./@core/pages/new-business-register/components/policy/page/NBRDetailPage.vue?a35f","webpack:///./@core/pages/new-business-register/components/policy/page/NBRDetailPage.vue?30c1","webpack:///./node_modules/randomstring/lib/randomstring.js","webpack:///./node_modules/randomstring/lib/charset.js","webpack:///./@core/pages/new-business-register/components/policy/AdviserDetailSection.vue?c127","webpack:///./node_modules/randomstring/index.js","webpack:///./@core/assets/myinfo-icon.svg","webpack:///./node_modules/randomstring/node_modules/randombytes/browser.js","webpack:///./@core/pages/new-business-register/components/policy/model/ClientPolicyDTOV2.ts","webpack:///./@core/components/AppForm.vue?baa9","webpack:///./@core/components/AppCurrencyNA.vue?af5e","webpack:///./@core/pages/new-business-register/components/policy/SubPolicyApprovalSection.vue?7412","webpack:///./node_modules/randomstring/node_modules/array-uniq/index.js","webpack:///./@core/pages/new-business-register/components/policy/CancellationSection.vue?2e5e","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":["render","_vm","this","_h","$createElement","_c","_self","attrs","venueOptions","lineOfBusinessOptions","productOptions","issuerOptionsV2","nbrStatusOptions","isCIS","isEB","pendingSubPolicies","on","saveAllProductStatus","_e","isAllActionDisabled","staticRenderFns","staticClass","_v","productStructures","productMetadata","cancellationLetterUploaded","uploadNewCancellationLetter","staticStyle","isDisabled","$event","cancellationLetterSelected","target","files","uploadCancellationLetter","_s","cancellationLetterFileName","deleteCancellationLetter","downloadCancellationLetter","model","value","policy","callback","$$v","$set","expression","clientPolicyStore","showUploadCancellationLetterButton","cancellationLetter","FormData","file","data","append","oid","name","get","uiService","alert","show","type","message","$api","clientPolicy","cancellationLetterName","link","window","open","confirm","undefined","$store","getters","currentUser","systemrole","label","key","disabled","savePolicy","sharedVariable","default","State","Action","components","AppForm","component","commonDetailStructure","policyDetailsExtraStructure","options","issuerOptions","creationType","isCustom","onChange","oldVal","newVal","isStatusApprovedOrRejected","opsApprovalDate","Date","now","projectInfo","personalFinancialReview","electronicFormName","kycSubmissionTimestamp","set","val","lineOfBusinessLifeInsurance","taggedKyc","faceToFaceSpecified","faceToFace","classes","adviserStructures","adviserDetails","$route","params","policyOid","fetchAdviserDetails","isOpsStaff","policies","length","$emit","tableStructure","internalSubPolicies","subPolicies","forEach","newPolicy","Object","assign","push","idx","status","AppFormTable","kycFormStore","productDetails","ProductFullMeta","productList","originalList","filter","product","category","includes","uniqueObjArray","Map","productFilteredList","map","item","issuer_oid","issuer","values","unshift","uniqueObjArrayV2","cdMetaList","list","companyShortName","principal","productCode","sort","a","b","localeCompare","Promise","all","updatePolicy","policiesUpdated","retrieveSubPolicies","fetchAllActiveInactiveProducts","fetchCompanyDetails","Getter","AdviserDetailSection","CancellationSection","PolicyDetailSection","SubPolicyApprovalSection","randomBytes","Charset","unsafeRandomBytes","stack","i","Math","floor","random","readUInt8","index","safeRandomBytes","e","processString","buf","initialString","chars","reqLen","maxByte","string","randomByte","charAt","getAsyncString","cb","err","generatedString","exports","generate","charset","setType","capitalization","setcapitalization","readable","removeUnreadable","removeDuplicates","charsLen","ceil","arrayUniq","prototype","numbers","charsLower","charsUpper","toUpperCase","hexChars","binaryChars","octalChars","unreadableChars","replace","toLowerCase","charMap","split","join","module","oldBrowser","Error","crypto","global","msCrypto","size","rawBytes","Uint8Array","getRandomValues","bytes","Buffer","buffer","process","nextTick","ClientPolicyV2","uniqNoSet","arr","ret","indexOf","uniqSet","seen","Set","el","has","add","uniqSetWithForEach","doesForEachActuallyWork","style","_l","structure","shouldShow","class","shouldDisabled","getCustomClass","hasErrors","focusId","getId","focusInner","getTestId","domProps","labelModelValue","labelModel","directives","rawName","labelKey","composing","tooltip","ref","eidx","msg","full","fullErr","slot","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","event","charCode","which","keyCode","currentValue","isAlphabetN","isNonNumber","preventDefault","charCodeAt","isAlphabetA","formatValue","isNaN","Number","source","useCurrency","currencyPrefix","toLocaleString","currency","replaceAll","inputValue","minimal","structures","errors","charLeft","getCharLeft","getCounterMsg","gridTemplateColumns","projectSettings","theme","condition","readOnly","Function","input","oriValue","String","labelValue","selectedOption","selectedIndex","_value","ex","uniqueID","snakeCaseKey","curAppForm","$el","hasOverflow","scrollWidth","clientWidth","eleId","ele","document","getElementById","focus","mc","swe","first","find","s","scrollIntoView","behavior","block","arrangeCols","addEventListener","deep","AppSmartSelect","AppCheckboxGroup","AppRadioSelection","AppDateInput","AppCurrencyNA","AppDecimalNumber","AppTooltip"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAG,wBAAwBA,EAAG,sBAAsB,CAACE,MAAM,CAAC,aAAeN,EAAIO,aAAa,sBAAwBP,EAAIQ,sBAAsB,eAAiBR,EAAIS,eAAe,cAAgBT,EAAIU,gBAAgB,iBAAmBV,EAAIW,oBAAqBX,EAAIY,OAASZ,EAAIa,KAAMT,EAAG,2BAA2B,CAACE,MAAM,CAAC,YAAcN,EAAIc,mBAAmB,iBAAmBd,EAAIW,kBAAkBI,GAAG,CAAC,sBAAsBf,EAAIgB,wBAAwBhB,EAAIiB,KAAKb,EAAG,sBAAsB,CAACE,MAAM,CAAC,oBAAsBN,EAAIkB,wBAAwB,IACroBC,EAAkB,G,sOCDlB,EAAS,WAAa,IAAInB,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACgB,YAAY,mBAAmB,CAAChB,EAAG,MAAM,CAACgB,YAAY,SAAS,CAACpB,EAAIqB,GAAG,kBAAkBjB,EAAG,MAAM,CAACgB,YAAY,aAAa,CAAChB,EAAG,UAAU,CAACE,MAAM,CAAC,WAAaN,EAAIsB,kBAAkB,MAAQtB,EAAIuB,gBAAgB,QAAU,KAAKnB,EAAG,MAAM,CAACA,EAAG,IAAI,CAACJ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,gBAArB,eAAK,CAAE1S,QAAS,K,8BACT,gBAAP,kB,6BAED,gBADC,eAAK,CAAEA,QAAS,WAAQ,OAAOiB,KAAKC,U,+BAGX,gBAAzB,eAAK,CAAElB,SAAS,K,+BAGjB,gBADC,uB,kCAID,gBADC,uB,sCAmMD,gBADC,eAAM,oBAAqB,CAAE4S,MAAM,K,yBASnC,MAxNkB,EAAO,gBAb3B,eAAU,CACTzS,WAAY,CACV0S,iBAAA,KACAC,mBAAA,KACAC,oBAAA,KACAC,eAAA,KACA9P,eAAA,KACA+P,cAAA,EACAC,mBAAA,KACAC,aAAA,SAIiB,WCnR6W,ICQ9X,G,UAAY,eACd,EACAhY,EACAoB,GACA,EACA,KACA,WACA,OAIa,S","file":"js/chunk-537d08d1.be31d1a3.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('AdviserDetailSection'),_c('PolicyDetailSection',{attrs:{\"venueOptions\":_vm.venueOptions,\"lineOfBusinessOptions\":_vm.lineOfBusinessOptions,\"productOptions\":_vm.productOptions,\"issuerOptions\":_vm.issuerOptionsV2,\"nbrStatusOptions\":_vm.nbrStatusOptions}}),(_vm.isCIS || _vm.isEB)?_c('SubPolicyApprovalSection',{attrs:{\"subPolicies\":_vm.pendingSubPolicies,\"nbrStatusOptions\":_vm.nbrStatusOptions},on:{\"sub-nbr-status-save\":_vm.saveAllProductStatus}}):_vm._e(),_c('CancellationSection',{attrs:{\"isAllActionDisabled\":_vm.isAllActionDisabled}})],1)}\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',{staticClass:\"account-details\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Cancellation\")]),_c('div',{staticClass:\"form-body\"},[_c('AppForm',{attrs:{\"structures\":_vm.productStructures,\"model\":_vm.productMetadata,\"columns\":2}}),_c('div',[_c('p',[_vm._v(\"Cancellation Letter Upload\")]),(!_vm.cancellationLetterUploaded || _vm.uploadNewCancellationLetter)?_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"space-between\",\"align-items\":\"center\"}},[_c('input',{attrs:{\"type\":\"file\",\"disabled\":_vm.isDisabled},on:{\"change\":function($event){return _vm.cancellationLetterSelected($event.target.files)}}}),_c('div',{staticStyle:{\"display\":\"flex\"}},[(_vm.showUploadCancellationLetterButton)?_c('button',{staticClass:\"btn-default\",attrs:{\"disabled\":_vm.isAllActionDisabled},on:{\"click\":_vm.uploadCancellationLetter}},[_vm._v(\"Upload\")]):_vm._e(),(_vm.cancellationLetterUploaded && _vm.uploadNewCancellationLetter)?_c('button',{staticClass:\"btn-default\",staticStyle:{\"margin-left\":\"1rem\"},attrs:{\"disabled\":_vm.isAllActionDisabled},on:{\"click\":function($event){_vm.uploadNewCancellationLetter = false}}},[_vm._v(\"Cancel\")]):_vm._e()])]):_c('div',{staticStyle:{\"display\":\"flex\",\"justify-content\":\"space-between\",\"align-items\":\"center\"}},[_c('span',[_vm._v(_vm._s(_vm.cancellationLetterFileName))]),_c('div',{staticStyle:{\"display\":\"flex\"}},[_c('button',{staticClass:\"btn-danger\",staticStyle:{\"margin-left\":\"1rem\"},attrs:{\"disabled\":_vm.isAllActionDisabled},on:{\"click\":_vm.deleteCancellationLetter}},[_vm._v(\"Delete\")]),_c('button',{staticClass:\"btn-default\",staticStyle:{\"margin-left\":\"1rem\"},attrs:{\"disabled\":_vm.isAllActionDisabled},on:{\"click\":_vm.downloadCancellationLetter}},[_vm._v(\"Download\")]),_c('button',{staticClass:\"btn-default\",staticStyle:{\"margin-left\":\"1rem\"},attrs:{\"disabled\":_vm.isAllActionDisabled},on:{\"click\":function($event){_vm.uploadNewCancellationLetter = true}}},[_vm._v(\"Upload New\")])])])])],1),_c('div',{staticClass:\"title\"},[_vm._v(\"Remarks\")]),_c('div',{staticClass:\"form-body\"},[_c('el-input',{attrs:{\"type\":\"textarea\",\"rows\":5,\"disabled\":_vm.isDisabled},model:{value:(_vm.policy.policyProfileRemarks),callback:function ($$v) {_vm.$set(_vm.policy, \"policyProfileRemarks\", $$v)},expression:\"policy.policyProfileRemarks\"}})],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\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator'\nimport API from '@core/services/API'\nimport { inject } from 'inversify-props'\nimport { namespace } from 'vuex-class'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport { SharedVariable } from '@core/model/SharedVariable'\nimport { UIService } from '@core/services/UIService'\nimport { ClientPolicyDto } from '../../api'\n\nconst clientPolicyStore = namespace('ClientPolicyStore')\n\n@Component({\n components: {\n AppForm\n }\n})\nexport default class CancellationSection extends Vue {\n @Prop({ default: false }) private isAllActionDisabled\n\n @inject()\n protected $api: API\n\n uiService: UIService\n\n @inject()\n private sharedVariable: SharedVariable\n\n @clientPolicyStore.State\n private policy: ClientPolicyDto\n\n @clientPolicyStore.State\n private productMetadata\n\n @clientPolicyStore.Action\n private savePolicy\n\n private showUploadCancellationLetterButton = false\n private uploadNewCancellationLetter = false\n private cancellationLetter = new FormData()\n\n cancellationLetterSelected (files) {\n const file = files[0]\n const data = new FormData()\n data.append('policyProfileOid', this.policy.oid)\n data.append('cancellationLetter', file)\n data.append('fileName', file.name)\n this.cancellationLetter = data\n this.showUploadCancellationLetterButton = true\n }\n\n async uploadCancellationLetter () {\n const cancellationLetter = this.cancellationLetter.get('cancellationLetter')\n const cancellationLetterFileName = this.cancellationLetter.get('fileName')\n\n if (!cancellationLetter || !cancellationLetterFileName) {\n this.uiService.alert.show({ type: 'error', message: 'No file has been selected!' })\n return\n }\n\n await this.$api.clientPolicy.uploadCancellationLetter(this.cancellationLetter)\n this.uiService.alert.show({ type: 'success', message: 'Your cancellation letter has successfully uploaded' })\n // eslint-disable-next-line @typescript-eslint/camelcase\n this.productMetadata.cancellationLetterUploaded = true\n // eslint-disable-next-line @typescript-eslint/camelcase\n this.productMetadata.cancellationLetterName = cancellationLetterFileName\n this.uploadNewCancellationLetter = false\n this.showUploadCancellationLetterButton = false\n }\n\n downloadCancellationLetter () {\n const link = `/live/getPolicyDocument?fileType=cancellationletter&policyProfileOid=${this.policy.oid}`\n window.open(link, '_blank')\n }\n\n async deleteCancellationLetter () {\n if (confirm('Are you to delete the Cancellation Letter?')) {\n await this.$api.clientPolicy.deleteCancellationLetter({ oid: this.policy.oid })\n // eslint-disable-next-line @typescript-eslint/camelcase\n this.productMetadata.cancellationLetterUploaded = false\n // eslint-disable-next-line @typescript-eslint/camelcase\n this.productMetadata.cancellationLetterName = undefined\n }\n }\n\n get cancellationLetterUploaded () {\n return this.productMetadata.cancellationLetterUploaded\n }\n\n get cancellationLetterFileName () {\n return this.productMetadata.cancellationLetterName\n }\n\n get isDisabled () {\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n get productStructures (): FormStructure {\n return [\n {\n type: 'date',\n label: 'Date of Cancellation',\n key: 'cancellationDate',\n disabled: this.isDisabled\n },\n {\n label: 'Reason for Cancellation',\n key: 'cancellationReason',\n disabled: this.isDisabled\n }\n ]\n }\n\n async save () {\n await this.savePolicy()\n }\n\n async mounted () {\n this.uiService = this.sharedVariable.uiService\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!./CancellationSection.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!./CancellationSection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CancellationSection.vue?vue&type=template&id=81fd8e7e&scoped=true&\"\nimport script from \"./CancellationSection.vue?vue&type=script&lang=ts&\"\nexport * from \"./CancellationSection.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CancellationSection.vue?vue&type=style&index=0&id=81fd8e7e&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 \"81fd8e7e\",\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',[_c('div',{staticClass:\"title\"},[_vm._v(\"NBR Information\")]),_c('div',{staticClass:\"form-body\"},[_c('AppForm',{attrs:{\"structures\":_vm.commonDetailStructure,\"model\":_vm.policy,\"columns\":2}}),_c('AppForm',{attrs:{\"structures\":_vm.policyDetailsExtraStructure,\"model\":_vm.productMetadata,\"columns\":2}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n/* eslint-disable @typescript-eslint/camelcase */\nimport { Component, Prop, Vue } from 'vue-property-decorator'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport { namespace } from 'vuex-class'\nimport { ClientPolicyDto } from '../../api'\nimport { inject } from 'inversify-props'\nimport { IProjectInfo } from '@master/config/IProjectInfo'\nimport { isEmpty } from 'lodash/fp'\n\nconst clientPolicyStore = namespace('ClientPolicyStore')\n\n@Component({\n components: {\n AppForm\n }\n})\nexport default class PolicyDetailSection extends Vue {\n @Prop({ default: () => [] }) private venueOptions\n @Prop({ default: () => [] }) private lineOfBusinessOptions\n @Prop({ default: () => [] }) private issuerOptions\n @Prop({ default: () => [] }) private productOptions\n @Prop({ default: () => [] }) private nbrStatusOptions\n\n @clientPolicyStore.State\n private policy: ClientPolicyDto\n\n @clientPolicyStore.State\n private productMetadata: any\n\n @inject()\n private projectInfo: IProjectInfo\n\n get isDisabled () {\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n get isCIS () {\n return this.policy.type === 'collectiveinvestmentscheme'\n }\n\n get lineOfBusinessLifeInsurance () {\n return this.policy.type === 'lifeinsurance'\n }\n\n get commonDetailStructure (): FormStructure {\n return [\n {\n label: 'New Business ID',\n key: 'businessId',\n disabled: true\n },\n {\n label: 'NBR Creation Date',\n key: 'ctm',\n type: 'date',\n disabled: true\n },\n {\n label: 'Principal',\n key: 'principal',\n options: this.issuerOptions || [],\n show: this.policy.creationType === 'manual',\n disabled: this.isDisabled\n },\n {\n label: 'Principal',\n key: 'principal',\n options: this.issuerOptions,\n show: this.policy.creationType === 'auto',\n disabled: true\n },\n {\n label: this.policy.type === 'collectiveinvestmentscheme' ? 'Investment Account' : 'Product Name',\n key: 'productOid',\n options: this.productOptions, // add change check, then assign the product name\n show: this.policy.creationType === 'manual' || (this.policy.creationType === 'auto' && this.productMetadata.isCustom),\n disabled: this.isDisabled\n },\n {\n label: this.policy.type === 'collectiveinvestmentscheme' ? 'Investment Account' : 'Product Name',\n key: 'name',\n show: (this.policy.creationType === 'auto' || this.policy.creationType === 'existing') && this.productMetadata.isCustom === false,\n disabled: true\n },\n {\n label: 'NBR Application Status',\n key: 'status',\n options: this.nbrStatusOptions,\n disabled: this.isDisabled,\n onChange: (oldVal, newVal) => {\n const isStatusApprovedOrRejected = newVal === 'approved_by_ops' || newVal === 'rejected'\n this.policy.opsApprovalDate = (!this.policy.opsApprovalDate && isStatusApprovedOrRejected) ? Date.now() : this.policy.opsApprovalDate\n }\n },\n {\n label: 'NBR Status Date',\n key: 'opsApprovalDate',\n type: 'date',\n disabled: this.isDisabled\n },\n {\n label: `${this.projectInfo.personalFinancialReview || 'KYC'}/${this.projectInfo.electronicFormName || 'E-KYC'} Date`,\n type: 'date',\n model: {\n get: () => this.productMetadata.kycSubmissionTimestamp,\n set: (val) => {\n this.productMetadata.kycSubmissionTimestamp = val\n }\n },\n show: this.isCIS || this.lineOfBusinessLifeInsurance,\n disabled: this.isDisabled || !isEmpty(this.policy.taggedKyc)\n },\n {\n label: 'Line of Business',\n key: 'type',\n options: this.lineOfBusinessOptions,\n disabled: true\n },\n {\n label: 'Face to Face Application',\n key: 'faceToFace',\n options: this.venueOptions,\n disabled: this.isDisabled\n },\n {\n label: 'Face to Face Venue Specified',\n model: {\n get: () => this.policy.faceToFaceSpecified,\n set: (val) => (this.policy.faceToFaceSpecified = val)\n },\n disabled: this.isDisabled,\n show: this.policy.faceToFace === 9999,\n classes: ['colspan']\n }\n ]\n }\n\n get policyDetailsExtraStructure (): FormStructure {\n return [\n { label: 'Initial Payment Method', key: 'initPaymentMethod', disabled: this.isDisabled },\n { label: 'Overseas Bank Account', key: 'overseasBankAccount', disabled: this.isDisabled }\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!./PolicyDetailSection.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!./PolicyDetailSection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./PolicyDetailSection.vue?vue&type=template&id=e0ef6136&scoped=true&\"\nimport script from \"./PolicyDetailSection.vue?vue&type=script&lang=ts&\"\nexport * from \"./PolicyDetailSection.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 \"e0ef6136\",\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:\"account-details\"},[_c('div',{staticClass:\"title\"},[_vm._v(\"Adviser Information\")]),_c('div',{staticClass:\"form-body\"},[_c('AppForm',{attrs:{\"structures\":_vm.adviserStructures,\"model\":_vm.adviserDetails,\"columns\":2}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport API from '@core/services/API'\nimport { inject } from 'inversify-props'\nimport { namespace } from 'vuex-class'\nimport AppForm from '@core/components/AppForm.vue'\nimport { FormStructure } from '@master/model/structure/FormStructure'\nimport { SharedVariable } from '@core/model/SharedVariable'\nimport { UIService } from '@core/services/UIService'\n\nconst clientPolicyStore = namespace('ClientPolicyStore')\n\n@Component({\n components: {\n AppForm\n }\n})\nexport default class AdviserDetailSection extends Vue {\n @inject()\n protected $api: API\n\n uiService: UIService\n\n @inject()\n private sharedVariable: SharedVariable\n\n @clientPolicyStore.State\n private adviserDetails\n\n @clientPolicyStore.Action\n private fetchAdviserDetails\n\n get isDisabled () {\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n get adviserStructures (): FormStructure {\n return [\n {\n label: 'Adviser',\n key: 'fullname',\n disabled: true,\n classes: ['colspan']\n }\n ]\n }\n\n get policyOid () {\n return this.$route.params.policyOid\n }\n\n async mounted () {\n this.uiService = this.sharedVariable.uiService\n await this.fetchAdviserDetails()\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!./AdviserDetailSection.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!./AdviserDetailSection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AdviserDetailSection.vue?vue&type=template&id=53956db5&scoped=true&\"\nimport script from \"./AdviserDetailSection.vue?vue&type=script&lang=ts&\"\nexport * from \"./AdviserDetailSection.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AdviserDetailSection.vue?vue&type=style&index=0&id=53956db5&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 \"53956db5\",\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',[_c('div',{staticClass:\"title\"},[_vm._v(\" Pending Approval List \"),_c('div',{staticClass:\"multi-bin-container\"},[_c('div',{staticClass:\"btn-container\"},[_c('button',{staticClass:\"btn-default\",attrs:{\"disabled\":_vm.isOpsStaff || _vm.policies.length === 0},on:{\"click\":function($event){return _vm.$emit('sub-nbr-status-save', _vm.policies)}}},[_vm._v(\"Save All\")])])])]),_c('div',{staticClass:\"form-body\"},[_c('div',{staticClass:\"rider-details-tab\"},[_c('AppFormTable',{staticStyle:{\"width\":\"100%\"},attrs:{\"vertical\":false,\"maxSize\":0,\"fields\":_vm.tableStructure,\"data\":_vm.policies}})],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/* eslint-disable @typescript-eslint/camelcase */\nimport { Component, Prop, Vue } from 'vue-property-decorator'\nimport AppFormTable from '@core/components/AppFormTable.vue'\nimport { ClientPolicyDto, ClientPolicyDtoV2 } from '../../api'\nimport { TableFormStructure } from '@master/model/structure/FormStructure'\nimport { UIService } from '@core/services/UIService'\nimport { inject } from 'inversify-props'\nimport { SharedVariable } from '@core/model/SharedVariable'\nimport { ClientPolicyV2 } from './model/ClientPolicyDTOV2'\n\n@Component({\n components: {\n AppFormTable\n }\n})\nexport default class SubPolicyApprovalSection extends Vue {\n @Prop({ default: () => [] }) private subPolicies: ClientPolicyDtoV2[]\n @Prop({ default: () => [] }) private nbrStatusOptions\n\n uiService: UIService\n\n @inject()\n private sharedVariable: SharedVariable\n\n private internalSubPolicies: ClientPolicyDtoV2[] = []\n\n get isOpsStaff () {\n // @TODO: To remove anything related to store\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n get policies () {\n this.internalSubPolicies = []\n this.subPolicies.forEach(policy => {\n const newPolicy = new ClientPolicyV2()\n Object.assign(newPolicy, policy)\n this.internalSubPolicies.push(newPolicy)\n })\n\n return this.internalSubPolicies\n }\n\n get tableStructure (): TableFormStructure {\n return [\n {\n label: 'Name',\n key: 'name',\n type: 'text',\n disabled: true\n },\n {\n label: 'NBR Creation Date',\n key: 'ctm',\n type: 'date',\n disabled: true\n },\n {\n label: 'NBR Application Status',\n key: 'status',\n type: 'dropdown',\n options: this.nbrStatusOptions,\n disabled: this.isOpsStaff,\n model: {\n get: (idx) => this.subPolicies[idx].status,\n set: (idx, newVal) => {\n this.subPolicies[idx].status = newVal\n const isStatusApprovedOrRejected = newVal === 'approved_by_ops' || newVal === 'rejected'\n this.subPolicies[idx].opsApprovalDate = (!this.subPolicies[idx].opsApprovalDate && isStatusApprovedOrRejected) ? Date.now() : this.subPolicies[idx].opsApprovalDate\n }\n }\n },\n {\n label: 'NBR Status Date',\n key: 'opsApprovalDate',\n type: 'date',\n disabled: this.isOpsStaff\n }\n ]\n }\n\n mounted () {\n this.uiService = this.sharedVariable.uiService\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!./SubPolicyApprovalSection.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!./SubPolicyApprovalSection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SubPolicyApprovalSection.vue?vue&type=template&id=381e3b1a&scoped=true&\"\nimport script from \"./SubPolicyApprovalSection.vue?vue&type=script&lang=ts&\"\nexport * from \"./SubPolicyApprovalSection.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SubPolicyApprovalSection.vue?vue&type=style&index=0&id=381e3b1a&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 \"381e3b1a\",\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\nimport { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport CancellationSection from '../CancellationSection.vue'\nimport PolicyDetailSection from '../PolicyDetailSection.vue'\nimport AdviserDetailSection from '../AdviserDetailSection.vue'\nimport SubPolicyApprovalSection from '../SubPolicyApprovalSection.vue'\nimport { ClientPolicyDto, ClientPolicyService } from '@core/pages/new-business-register/api'\nimport { inject } from 'inversify-props'\nimport { SharedVariable } from '@core/model/SharedVariable'\nimport { ProductFullMeta } from '@master/model/common/ProductFullMeta'\nimport LobToCategoryMap from '@core/pages/new-business-register/lob-to-category.json'\nimport API from '@core/services/API'\nimport { UIService } from '@core/services/UIService'\nimport { ProductList } from '@core/pages/adminProductList/model/ProductList'\nimport { header } from '@core/pages/companyDetails/model/CompanyDetailsMeta'\nimport { CompanyDetailsMetaList } from '@core/pages/companyDetails/model/CompanyDetailsMetaList'\n\nconst clientPolicyStore = namespace('ClientPolicyStore')\nconst kycFormStore = namespace('KYCFormStore')\n\n@Component({\n components: {\n AdviserDetailSection,\n CancellationSection,\n PolicyDetailSection,\n SubPolicyApprovalSection\n }\n})\nexport default class NBRDetailPage extends Vue {\n @clientPolicyStore.State\n private policy: ClientPolicyDto\n\n @clientPolicyStore.State\n private subPolicies: ClientPolicyDto[]\n\n @clientPolicyStore.Action\n private retrieveSubPolicies\n\n @clientPolicyStore.State\n private productMetadata: any\n\n @clientPolicyStore.Getter\n private venueOptions\n\n @clientPolicyStore.State\n private nbrStatusOptions\n\n @clientPolicyStore.State\n private lineOfBusinessOptions\n\n @kycFormStore.State\n private productList: ProductList\n\n @kycFormStore.State\n private cdMetaList: CompanyDetailsMetaList\n\n @kycFormStore.Action\n private fetchCompanyDetails!: () => void\n\n // please refer to https://wenconsulting.atlassian.net/jira/software/c/projects/IFAM/issues/IFAM-1336\n // to get the function code\n @kycFormStore.Action\n private fetchAllActiveInactiveProducts!: () => void\n\n @inject()\n private sharedVariable: SharedVariable\n\n @inject()\n private $api: API\n\n uiService: UIService\n\n private productDetails = new ProductFullMeta()\n private uniqueObjArrayV2\n\n get isAllActionDisabled () {\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n get productFilteredList () {\n if (this.policy.type === 'collectiveinvestmentscheme') {\n return this.productList.originalList.filter(product => product.category === 'Investment Account')\n }\n\n return this.productList.originalList\n .filter(product => LobToCategoryMap[this.policy.type] === undefined ? true : LobToCategoryMap[this.policy.type].includes(product.category))\n }\n\n get issuerOptions () {\n const uniqueObjArray = [...new Map(this.productFilteredList.map((item) => [item.issuer_oid, { label: item.issuer, value: item.issuer_oid }])).values()]\n uniqueObjArray.unshift({\n label: '',\n value: ''\n })\n return uniqueObjArray\n }\n\n // returns the list of unique issuers from the product principal list page\n get issuerOptionsV2 () {\n const uniqueObjArrayV2 = [...new Map(this.cdMetaList.list.map((item) => [item.oid, { label: item.companyShortName, value: item.oid }])).values()]\n uniqueObjArrayV2.unshift({\n label: '',\n value: ''\n })\n return uniqueObjArrayV2\n }\n\n get isCIS () {\n return this.policy.type === 'collectiveinvestmentscheme'\n }\n\n get isEB () {\n return ['group-eb', 'group-eb-tailored', 'employeebenefits'].includes(this.policy.type)\n }\n\n get pendingSubPolicies () {\n return this.subPolicies.filter(policy => ['new', 'pending'].includes(policy.status))\n }\n\n get productOptions () {\n return this.productFilteredList\n .filter(product => this.policy.principal ? product.issuer_oid === this.policy.principal : true)\n .map((product) => {\n return {\n label: `${product.name} (${product.productCode || 'No Product Code'})`,\n value: product.oid\n }\n })\n .sort((a, b) => a.label.localeCompare(b.label)) // sort alphabetically by name\n }\n\n async saveAllProductStatus (policies: ClientPolicyDto[]) {\n const policiesUpdated: Partial[] = await Promise.all(policies.map(async (policy) => {\n return await ClientPolicyService.updatePolicy(policy)\n }))\n\n if (policiesUpdated.length > 0) {\n await this.uiService.alert.show({\n type: 'success',\n message: 'Funds are updated.'\n })\n await this.retrieveSubPolicies(this.policy.oid)\n }\n }\n\n async mounted () {\n this.uiService = this.sharedVariable.uiService\n await this.retrieveSubPolicies(this.policy.oid)\n await this.fetchAllActiveInactiveProducts()\n await this.fetchCompanyDetails()\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!./NBRDetailPage.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!./NBRDetailPage.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NBRDetailPage.vue?vue&type=template&id=ecda0b74&\"\nimport script from \"./NBRDetailPage.vue?vue&type=script&lang=ts&\"\nexport * from \"./NBRDetailPage.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\"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 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","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!./AdviserDetailSection.vue?vue&type=style&index=0&id=53956db5&lang=scss&scoped=true&\"","module.exports = require(\"./lib/randomstring\");","module.exports = __webpack_public_path__ + \"img/myinfo-icon.28e75045.svg\";","'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","import { ClientPolicyDtoV2 } from '@core/pages/new-business-register/api'\n\nexport class ClientPolicyV2 implements ClientPolicyDtoV2 {\n supervisorOid: any;\n pky?: string;\n oid: string;\n ctm: any;\n clientOid: string;\n adviserOid: string;\n introducerOid: any;\n introducerPct: any;\n introducerIfam: any;\n servicingOid: any;\n servicingPct: any;\n servicingIfam: any;\n vestingOid: any;\n vestingPct: any;\n vestingIfam: any;\n ownersOid: any;\n ownersName: any;\n ownersNric: any;\n insuredTitle: any;\n insuredName: any;\n insuredNric: any;\n insuredTitleTwo: any;\n insuredNameTwo: any;\n insuredNricTwo: any;\n productOid: any;\n name: any;\n productTypeDetailed: any;\n productCategory: any;\n taggedKyc: any;\n type: any;\n policyNumber: any;\n businessId: any;\n principal: any;\n status: any;\n applicationDate: any;\n opsApprovalDate: any;\n approvedDate: any;\n startDate: any;\n endDate: any;\n bscClawbackStatus: any;\n bscClawbackAmount: any;\n clientRebateStatus: any;\n clientRebateAmount: any;\n clientAiStatus: any;\n productMetadata: any;\n creationType: any;\n faceToFace: any;\n faceToFaceSpecified: any;\n policyProfileRemarks: any;\n level1ComOid: any;\n level2ComOid: any;\n level3ComOid: any;\n level4ComOid: any;\n level1ComPct: any;\n level2ComPct: any;\n level3ComPct: any;\n level4ComPct: any;\n groupId: string;\n unitName: any;\n branchName: any;\n clusterName: any;\n mainInvestmentNbr: any;\n mainNbrOid: any;\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&\"","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!./SubPolicyApprovalSection.vue?vue&type=style&index=0&id=381e3b1a&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","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!./CancellationSection.vue?vue&type=style&index=0&id=81fd8e7e&lang=scss&scoped=true&\"","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":""}