{"version":3,"sources":["webpack:///./@core/components/AppSectionNavi.vue?8425","webpack:///./@core/components/AppSectionNavi.vue","webpack:///./@core/components/AppSectionNavi.vue?e286","webpack:///./@core/components/AppSectionNavi.vue?bc9c","webpack:///./src/views/new-business-register/NewBusinessRegister.vue?444f","webpack:///./src/views/new-business-register/BscMixin.ts","webpack:///./src/views/new-business-register/SubPolicyMixin.ts","webpack:///./src/views/new-business-register/NewBusinessRegister.vue","webpack:///./src/views/new-business-register/NewBusinessRegister.vue?10fb","webpack:///./src/views/new-business-register/NewBusinessRegister.vue?b15d","webpack:///./@core/components/LoadingSpinner.vue?035a","webpack:///./@core/components/LoadingSpinner.vue","webpack:///./@core/components/LoadingSpinner.vue?2382","webpack:///./@core/components/LoadingSpinner.vue?9003","webpack:///./@core/components/LoadingSpinner.vue?81b0","webpack:///./src/views/new-business-register/NewBusinessRegister.vue?3163","webpack:///./node_modules/core-js/modules/es.string.ends-with.js","webpack:///./@core/components/AppSectionNavi.vue?1156"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","header","_l","subheader","index","key","_t","section","path","attrs","toUrl","scopedSlots","_u","fn","ref","href","navigate","isActive","class","shouldDisabled","name","on","children","subsection","isSubActive","_e","staticRenderFns","parentPath","useRouterPath","constructedParentPath","rootPath","param","params","$router","currentRoute","matched","clientParam","clientOid","userParam","userOid","policyOid","returnedPath","replace","input","$route","endsWith","default","component","policy","oid","type","sections","slot","isDisabled","savePolicy","productTypeBeautify","mainOwnerName","mainOwnerTag","hasHighRiskClient","isOpstaff","numberOfInscopePolicies","bscStore","bscInscopeResult","reduce","previous","result","inscope","State","Action","clientPolicyStore","subPolicies","map","productOid","complianceStore","isBscUnreviewed","screenings","$store","getters","currentUser","systemrole","ownersName","ownersNric","includes","complianceResult","hrtIndividuals","length","mainSections","find","route","sectionsToDisplay","mainSection","meta","policies","filter","subSection","clientInfoUrl","resolve","window","open","$api","bscRecords","listClientsReviewed","headers","JSON","stringify","query","queryArgs","policyNumber","response","data","LineOfBusinessOptions","op","value","label","policyIndividuals","individual","isMainOwner","mainOwner","clientDataSnapshot","clientId","fetchPolicyV2","location","fetchAdviserDetails","fetchPolicyIndividuals","retrieveSubPolicies","productOids","retrieveSubPoliciesProductOids","push","getBscReviewStatus","validateProductIsBscInscope","components","LoadingSpinner","AppSectionNavi","msg","$","uncurryThis","getOwnPropertyDescriptor","f","toLength","toString","notARegExp","requireObjectCoercible","correctIsRegExpLogic","IS_PURE","un$EndsWith","slice","min","Math","CORRECT_IS_REGEXP_LOGIC","MDN_POLYFILL_BUG","descriptor","String","prototype","writable","target","proto","forced","searchString","that","endPosition","arguments","undefined","len","end","search"],"mappings":"kHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,KAAK,CAACJ,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,QAAQ,OAAOT,EAAIU,GAAIV,EAAc,YAAE,SAASW,EAAUC,GAAO,OAAOR,EAAG,IAAI,CAACS,IAAID,GAAO,CAACZ,EAAIO,GAAG,IAAIP,EAAIQ,GAAGG,GAAW,WAAU,GAAGX,EAAIc,GAAG,kBAAkB,GAAGV,EAAG,MAAM,CAACE,YAAY,cAAcN,EAAIU,GAAIV,EAAY,UAAE,SAASe,GAAS,OAAOX,EAAG,cAAc,CAACS,IAAIE,EAAQC,KAAKC,MAAM,CAAC,GAAKjB,EAAIkB,MAAMH,GAAS,OAAS,IAAII,YAAYnB,EAAIoB,GAAG,CAAC,CAACP,IAAI,UAAUQ,GAAG,SAASC,GAC9mB,IAAIC,EAAOD,EAAIC,KACXC,EAAWF,EAAIE,SACfC,EAAWH,EAAIG,SACnB,MAAO,CAACrB,EAAG,MAAM,C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B,EAAQ,QAAmDC,EACtFC,EAAW,EAAQ,QACnBC,EAAW,EAAQ,QACnBC,EAAa,EAAQ,QACrBC,EAAyB,EAAQ,QACjCC,EAAuB,EAAQ,QAC/BC,EAAU,EAAQ,QAGlBC,EAAcT,EAAY,GAAG1F,UAC7BoG,EAAQV,EAAY,GAAGU,OACvBC,EAAMC,KAAKD,IAEXE,EAA0BN,EAAqB,YAE/CO,GAAoBN,IAAYK,KAA6B,WAC/D,IAAIE,EAAad,EAAyBe,OAAOC,UAAW,YAC5D,OAAOF,IAAeA,EAAWG,SAF8B,GAOjEnB,EAAE,CAAEoB,OAAQ,SAAUC,OAAO,EAAMC,QAASP,IAAqBD,GAA2B,CAC1FvG,SAAU,SAAkBgH,GAC1B,IAAIC,EAAOnB,EAASE,EAAuBpJ,OAC3CmJ,EAAWiB,GACX,IAAIE,EAAcC,UAAU3E,OAAS,EAAI2E,UAAU,QAAKC,EACpDC,EAAMJ,EAAKzE,OACX8E,OAAsBF,IAAhBF,EAA4BG,EAAMhB,EAAIR,EAASqB,GAAcG,GACnEE,EAASzB,EAASkB,GACtB,OAAOb,EACHA,EAAYc,EAAMM,EAAQD,GAC1BlB,EAAMa,EAAMK,EAAMC,EAAO/E,OAAQ8E,KAASC,M,yDCnClD","file":"js/chunk-a151d716.186a5e6e.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"section-navigation\"},[_c('div',{staticClass:\"information\"},[_c('div',{staticClass:\"header-wrapper\"},[_c('h1',[_vm._v(\" \"+_vm._s(_vm.header)+\" \")]),_vm._l((_vm.subheaders),function(subheader,index){return _c('p',{key:index},[_vm._v(\" \"+_vm._s(subheader)+\" \")])})],2),_vm._t(\"custom-header\")],2),_c('div',{staticClass:\"navigation\"},_vm._l((_vm.sections),function(section){return _c('router-link',{key:section.path,attrs:{\"to\":_vm.toUrl(section),\"custom\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar href = ref.href;\nvar navigate = ref.navigate;\nvar isActive = ref.isActive;\nreturn [_c('div',[_c('a',{class:{'disabled': section.shouldDisabled},attrs:{\"active\":isActive,\"href\":href,\"aria-label\":section.name},on:{\"click\":navigate}},[_vm._v(\" \"+_vm._s(section.name)+\" \")]),_c('transition',{attrs:{\"name\":\"height\"}},[(isActive && section.children)?_c('div',{staticClass:\"hight-animation-container\"},_vm._l((section.children),function(subsection){return _c('router-link',{key:subsection.path,attrs:{\"to\":_vm.toUrl(subsection, section.path),\"custom\":\"\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar href = ref.href;\nvar navigate = ref.navigate;\nreturn [_c('a',{staticClass:\"subsection\",attrs:{\"active\":_vm.isSubActive(subsection.path),\"href\":href,\"aria-label\":subsection.name},on:{\"click\":navigate}},[_vm._v(\" - \"+_vm._s(subsection.name)+\" \")])]}}],null,true)})}),1):_vm._e()])],1)]}}],null,true)})}),1),_c('div',{staticClass:\"action\"},[_vm._t(\"action\")],2)])}\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\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { isEmpty } from 'lodash/fp'\nimport { Component, Prop, Vue } from 'vue-property-decorator'\n\n@Component\nexport default class AppSectionNavi extends Vue {\n @Prop({ default: '' }) readonly param: string\n @Prop() readonly header!: string\n @Prop() readonly subheaders!: string[]\n @Prop() readonly sections!: {\n name: string;\n url: string;\n allowed: boolean;\n }[]\n\n @Prop({ default: true }) useRouterPath?: boolean\n\n toUrl (section, parentPath: string) {\n if (this.useRouterPath) {\n const constructedParentPath = isEmpty(parentPath) ? '' : `${parentPath}/`\n return `${this.rootPath}/${constructedParentPath}${section.path}` // default to this path\n }\n // if there is no need to append the current router path, use this instead\n // more info on https://gitlab.picoded-dev.com/wenconsulting/ifam/frontend-core/-/merge_requests/359\n return this.param ? { name: section.name, params: this.param } : section.path\n }\n\n get rootPath () {\n const path = this.$router.currentRoute.matched[0].path\n const clientParam = this.$router.currentRoute.params.clientOid\n const userParam = this.$router.currentRoute.params.userOid\n const policyOid = this.$router.currentRoute.params.policyOid\n let returnedPath = path.replace(':userOid', userParam)\n returnedPath = returnedPath.replace(':clientOid', clientParam)\n returnedPath = returnedPath.replace(':policyOid', policyOid)\n return returnedPath\n }\n\n isSubActive (input) {\n return this.$route.path.endsWith(input)\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!./AppSectionNavi.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!./AppSectionNavi.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./AppSectionNavi.vue?vue&type=template&id=5d1f1824&scoped=true&\"\nimport script from \"./AppSectionNavi.vue?vue&type=script&lang=ts&\"\nexport * from \"./AppSectionNavi.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./AppSectionNavi.vue?vue&type=style&index=0&id=5d1f1824&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 \"5d1f1824\",\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 (_vm.policy.oid && _vm.policy.type)?_c('div',{staticClass:\"page\"},[_c('AppSectionNavi',{attrs:{\"sections\":_vm.sections}},[_c('template',{slot:\"action\"},[(_vm.isNotRiderPage)?_c('button',{staticClass:\"btn-default\",attrs:{\"disabled\":_vm.isDisabled},on:{\"click\":_vm.savePolicy}},[_vm._v(\"Save\")]):_vm._e()])],2),_c('div',{staticClass:\"body\"},[_c('div',{staticClass:\"title\"},[_c('div',{staticClass:\"title-container\"},[_vm._v(\" New Business Register Management \"),_c('div',{staticClass:\"pin-tag pin-tag-color-two\"},[_c('i',{staticClass:\"fas fa-life-ring\"}),_vm._v(\" \"+_vm._s(_vm.productTypeBeautify)+\" \")]),_c('div',{staticClass:\"pin-tag\"},[_c('i',{staticClass:\"fas fa-user\"}),_vm._v(\" \"+_vm._s(_vm.mainOwnerName)+\" \")]),(_vm.mainOwnerTag)?_c('div',{staticClass:\"pin-tag user-tag\"},[_c('i',{staticClass:\"fas fa-user-tag\"}),_vm._v(\" \"+_vm._s(_vm.mainOwnerTag)+\" \")]):_vm._e(),(_vm.hasHighRiskClient && _vm.isOpstaff)?_c('div',{staticClass:\"pin-tag danger-tag\"},[_c('i',{staticClass:\"fas fa-hashtag\"}),_vm._v(\" High Risk Client \")]):_vm._e(),(_vm.numberOfInscopePolicies > 0)?_c('div',{staticClass:\"pin-tag normal-tag\"},[_c('i',{staticClass:\"fas fa-hashtag\"}),_vm._v(\" \"+_vm._s(_vm.numberOfInscopePolicies)+\" BSC Inscoped Product\"+_vm._s(_vm.numberOfInscopePolicies > 1 ? 's' : '')+\" \")]):_vm._e()])]),_c('router-view')],1),(_vm.loading)?_c('LoadingSpinner'):_vm._e()],1):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Component, Vue } from 'vue-property-decorator'\nimport { BscInscopeProductDTO } from '@core/pages/bsc/api'\nimport { namespace } from 'vuex-class'\n\nconst bscStore = namespace('BscStore')\n\n@Component\nexport default class BscMixin extends Vue {\n @bscStore.State\n bscInscopeResult: BscInscopeProductDTO[]\n\n @bscStore.Action\n validateProductIsBscInscope\n\n get numberOfInscopePolicies () {\n return this.bscInscopeResult.reduce((previous: number, result: BscInscopeProductDTO) => {\n return previous + (result.inscope ? 1 : 0)\n }, 0)\n }\n}\n","import { Component, Vue } from 'vue-property-decorator'\nimport { namespace } from 'vuex-class'\nimport { ClientPolicyDto } from '@core/pages/new-business-register/api'\n\nconst clientPolicyStore = namespace('ClientPolicyStore')\n\n@Component\nexport default class SubPolicyMixin extends Vue {\n @clientPolicyStore.State\n subPolicies: ClientPolicyDto[]\n\n @clientPolicyStore.Action\n retrieveSubPolicies\n\n protected retrieveSubPoliciesProductOids (): string[] {\n return this.subPolicies.map(policy => {\n return policy.productOid\n })\n }\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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, Mixins } from 'vue-property-decorator'\nimport { RouteConfig } from 'vue-router'\nimport { inject } from 'inversify-props'\nimport API from '@core/services/API'\nimport { namespace } from 'vuex-class'\nimport LoadingSpinner from '@core/components/LoadingSpinner.vue'\nimport AppSectionNavi from '@core/components/AppSectionNavi.vue'\nimport { ClientPolicyDto, PolicyIndividualDTO } from '@core/pages/new-business-register/api'\nimport { newBusinessRegisterRouter } from '@/router/new-business-register/NewBusinessRegisterRoutes'\nimport { isUndefined } from 'lodash/fp'\nimport ClientScreening from '@core/pages/new-business-register/components/ClientScreening.vue'\nimport BscMixin from './BscMixin'\nimport SubPolicyMixin from './SubPolicyMixin'\nimport { LineOfBusinessOptions } from '@master/model/options/LineOfBusinessOptions'\nimport { ComplianceResponseDto } from '@core/pages/compliance/api'\n\nconst clientPolicyStore = namespace('ClientPolicyStore')\nconst clientInfoStore = namespace('ClientInfoStore')\nconst complianceStore = namespace('ComplianceStore')\n\n@Component({\n components: {\n LoadingSpinner,\n AppSectionNavi\n }\n})\nexport default class NewBusinessRegister extends Mixins(BscMixin, SubPolicyMixin) {\n // Tag related scopes\n // To be separated into other classes, but for now, leave it here for the sake of time\n private isBscUnreviewed = true\n protected screenings: ClientScreening[] = []\n\n @inject()\n private $api: API\n\n @clientPolicyStore.State\n policy: ClientPolicyDto\n\n @clientPolicyStore.State\n private policyIndividuals: PolicyIndividualDTO[]\n\n @clientPolicyStore.State\n loading: boolean\n\n @clientPolicyStore.Action\n savePolicy\n\n @complianceStore.State\n private complianceResult: ComplianceResponseDto\n\n @clientPolicyStore.Action\n private fetchPolicyV2\n\n @clientPolicyStore.Action\n private fetchPolicyIndividuals\n\n @clientPolicyStore.Action\n private fetchAdviserDetails\n\n get isDisabled () {\n return this.$store.getters.currentUser.systemrole !== 'ops-staff'\n }\n\n get ownersName () {\n return this.policy ? this.policy.ownersName : ''\n }\n\n get ownersNric () {\n return this.policy ? this.policy.ownersNric : ''\n }\n\n get policyOid () {\n return this.$route.params.policyOid\n }\n\n get isNotRiderPage () {\n return !['Product Overview', 'Rider Details', 'ILP Details', 'Info Sheet', 'Product Entities / Individuals'].includes(this.$route.name)\n }\n\n get isOpstaff () {\n return this.$store.getters.currentUser.systemrole === 'ops-staff'\n }\n\n // REL_CLIENTS has hrcRoles and REL_POLICY_INDIVIDUAL data snapshot hrcRoles\n get hasHighRiskClient () {\n return this.complianceResult?.hrtIndividuals.length > 0\n }\n\n /**\n * @TODO: To make it into an interface such that we can utilize the src's route paths\n */\n get sections (): Array {\n const mainSections = newBusinessRegisterRouter.find(route => route.name === 'Policy').children\n\n // Utilizing the route configuration's meta to filter through what to display on the section\n // If the meta attribute in the route is undefined, it means available for all\n // @TODO: Although the section is not display in the navigation bar, the route is still available\n // to go to via manual entry, need to resolve this in the future\n const sectionsToDisplay = mainSections.map(mainSection => {\n if (isUndefined(mainSection.meta) || mainSection.meta?.policies.includes(this.policy.type)) {\n if (mainSection.children?.length > 0) {\n mainSection.children = mainSection.children.filter(subSection => isUndefined(subSection.meta) || subSection.meta?.policies.includes(this.policy.type))\n }\n\n return mainSection\n }\n\n return null\n }).filter(section => !!section)\n return sectionsToDisplay\n }\n\n openClientInfo () {\n const clientInfoUrl = this.$router.resolve({ path: `/client-info/${this.policy.clientOid}/profile` })\n window.open(clientInfoUrl.href, '_blank')\n }\n\n async getBscReviewStatus () {\n const response = await this.$api.bscRecords.listClientsReviewed({\n headers: JSON.stringify(['policy_number']),\n query: 'policy_number = ?',\n queryArgs: JSON.stringify([this.policy.policyNumber])\n })\n\n if (!response.data || response.data?.length === 0) {\n return\n }\n\n // a bsc record has been found\n this.isBscUnreviewed = false\n }\n\n // End of tag related scopes\n\n get productTypeBeautify () {\n const type = this.policy.type || ''\n return LineOfBusinessOptions.find(op => op.value === type)?.label || ''\n }\n\n get mainOwner () {\n return this.policyIndividuals?.find(individual => individual.isMainOwner)\n }\n\n get mainOwnerTag () {\n return this.mainOwner?.clientDataSnapshot?.clientId || ''\n }\n\n get mainOwnerName () {\n if (this.policyIndividuals.length === 0) {\n return ''\n }\n\n return `${this.mainOwner?.clientDataSnapshot.name}` || ''\n }\n\n async created () {\n await this.fetchPolicyV2(this.policyOid)\n if (!this.policy.oid) {\n window.location.href = '/live/policy-list'\n }\n await this.fetchAdviserDetails()\n await this.fetchPolicyIndividuals(this.policy.oid)\n\n await this.retrieveSubPolicies(this.policy.oid)\n const productOids = this.retrieveSubPoliciesProductOids()\n productOids.push(this.policy.productOid)\n\n if (this.isOpstaff) {\n this.getBscReviewStatus()\n await this.validateProductIsBscInscope(productOids)\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!./NewBusinessRegister.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!./NewBusinessRegister.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NewBusinessRegister.vue?vue&type=template&id=a6c64f66&scoped=true&\"\nimport script from \"./NewBusinessRegister.vue?vue&type=script&lang=ts&\"\nexport * from \"./NewBusinessRegister.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./NewBusinessRegister.vue?vue&type=style&index=0&id=a6c64f66&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 \"a6c64f66\",\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:\"loading-spinner\"},[_c('div',{staticClass:\"el-loading-mask\"},[_c('div',{staticClass:\"el-loading-spinner\"},[_c('svg',{staticClass:\"circular\",attrs:{\"viewBox\":\"25 25 50 50\"}},[_c('circle',{staticClass:\"path\",attrs:{\"cx\":\"50\",\"cy\":\"50\",\"r\":\"20\",\"fill\":\"none\"}})]),_c('div',[_vm._v(_vm._s(_vm.msg))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Prop, Vue } from 'vue-property-decorator'\n\n@Component\nexport default class LoadingSpinner extends Vue {\n @Prop() msg: string\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!./LoadingSpinner.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!./LoadingSpinner.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./LoadingSpinner.vue?vue&type=template&id=2ca34d92&scoped=true&\"\nimport script from \"./LoadingSpinner.vue?vue&type=script&lang=ts&\"\nexport * from \"./LoadingSpinner.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./LoadingSpinner.vue?vue&type=style&index=0&id=2ca34d92&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 \"2ca34d92\",\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!./LoadingSpinner.vue?vue&type=style&index=0&id=2ca34d92&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!./NewBusinessRegister.vue?vue&type=style&index=0&id=a6c64f66&lang=scss&scoped=true&\"","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\nvar IS_PURE = require('../internals/is-pure');\n\n// eslint-disable-next-line es/no-string-prototype-endswith -- safe\nvar un$EndsWith = uncurryThis(''.endsWith);\nvar slice = uncurryThis(''.slice);\nvar min = Math.min;\n\nvar CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('endsWith');\n// https://github.com/zloirock/core-js/pull/702\nvar MDN_POLYFILL_BUG = !IS_PURE && !CORRECT_IS_REGEXP_LOGIC && !!function () {\n var descriptor = getOwnPropertyDescriptor(String.prototype, 'endsWith');\n return descriptor && !descriptor.writable;\n}();\n\n// `String.prototype.endsWith` method\n// https://tc39.es/ecma262/#sec-string.prototype.endswith\n$({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {\n endsWith: function endsWith(searchString /* , endPosition = @length */) {\n var that = toString(requireObjectCoercible(this));\n notARegExp(searchString);\n var endPosition = arguments.length > 1 ? arguments[1] : undefined;\n var len = that.length;\n var end = endPosition === undefined ? len : min(toLength(endPosition), len);\n var search = toString(searchString);\n return un$EndsWith\n ? un$EndsWith(that, search, end)\n : slice(that, end - search.length, end) === search;\n }\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!./AppSectionNavi.vue?vue&type=style&index=0&id=5d1f1824&lang=scss&scoped=true&\""],"sourceRoot":""}