{"version":3,"sources":["webpack:///./src/locales/iamsmart.linked.json?7cf5","webpack:///./src/public/modules/login/views/LoginIAMSmartPendingView.vue?a69d","webpack:///src/public/modules/login/views/LoginIAMSmartPendingView.vue","webpack:///./src/public/modules/login/views/LoginIAMSmartPendingView.vue?bdb3","webpack:///./src/public/modules/login/views/LoginIAMSmartPendingView.vue","webpack:///./src/assets/tap.png","webpack:///./src/public/modules/login/views/LoginIAMSmartPendingView.vue?a3dc","webpack:///./src/locales/iamsmart.linked.json","webpack:///./src/public/modules/login/components/login/AfterLinkedIAmSmart.vue?8846","webpack:///src/public/modules/login/components/login/AfterLinkedIAmSmart.vue","webpack:///./src/public/modules/login/components/login/AfterLinkedIAmSmart.vue?2baa","webpack:///./src/public/modules/login/components/login/AfterLinkedIAmSmart.vue","webpack:///./src/public/modules/login/components/login/AfterLinkedIAmSmart.vue?d776","webpack:///./src/services/user.service.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","businessId","errorMsg","on","success","error","show","linkIAmSmart","_e","staticClass","_v","_s","$t","staticStyle","$event","requestProfile","isMobile","iamsmartprofile","path","assignESS","staticRenderFns","components","IAMSmartProfileResultProvider","IAMSmartButton","AfterLinkedIAmSmart","props","required","openIAmSmartAppUrl","data","getIAmSmartUrl","computed","beforeMount","lang","$route","query","$root","$i18n","locale","methods","$dangerToast","console","log","window","location","assign","i18n","messages","LoginIAMSmartPendingView","component","module","exports","Component","options","__i18n","push","_Ctor","msg","useESS","loginESH","username","password","UserApi","login","Username","Password","response","includes","MemberAccountInfoSettingApi","editLanguage","store","identity","dispatch","getters","loginToLanding","router","user","groupNames","groups","map","group","name","route","Error","getPublicPath","ERegistrationProfessionalActivate","Login","redirectToPublicPath","view","href","warn","pos","getLandingPathHref","prof","public","getLandingPath","landingHref","redirectToLanding","redirectToLandingByUser","getUserPosition","posMap","getPositions","get","find","has","Map","set"],"mappings":"01FAAA,yBAA2U,eAAG,G,2CCA9U,IAAIA,EAAS,WAAa,IAAIC,EAAIC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AaC,EAAOC,KAAI,SAACC,GAAD,OAAWA,EAAMC,QAE/C,OACEmB,EAAOE,IAAIzB,EAAW0B,MAAK,SAACtB,GAAD,OAAUmB,EAAOI,IAAIvB,QAAW,mBAIlDoB,EAAe,WAC1B,IAAMtB,EAAM,IAAI0B,IAQhB,OANA1B,EAAI2B,IAAI,KAAM,0BACd3B,EAAI2B,IAAI,MAAO,wCACf3B,EAAI2B,IAAI,MAAO,0CACf3B,EAAI2B,IAAI,KAAM,8BACd3B,EAAI2B,IAAI,KAAM,0BAEP3B,G","file":"js/chunk-c2b2a23c.dd132ecb.js","sourcesContent":["import mod from \"-!../../node_modules/@kazupon/vue-i18n-loader/lib/index.js!./iamsmart.linked.json?vue&type=custom&index=0&blockType=i18n&issuerPath=E%3A%5Capp%5CJenkins%5Cworkspace%5CBD%20ESH%20300%20Nextore%20V3%20BD%20Client%5Csrc%5Csrc%5Cpublic%5Cmodules%5Clogin%5Ccomponents%5Clogin%5CAfterLinkedIAmSmart.vue\"; export default mod; export * from \"-!../../node_modules/@kazupon/vue-i18n-loader/lib/index.js!./iamsmart.linked.json?vue&type=custom&index=0&blockType=i18n&issuerPath=E%3A%5Capp%5CJenkins%5Cworkspace%5CBD%20ESH%20300%20Nextore%20V3%20BD%20Client%5Csrc%5Csrc%5Cpublic%5Cmodules%5Clogin%5Ccomponents%5Clogin%5CAfterLinkedIAmSmart.vue\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-container',[_c('IAMSmartProfileResultProvider',{attrs:{\"business-id\":_vm.businessId,\"errorMsg\":_vm.errorMsg},on:{\"success\":_vm.success,\"error\":_vm.error}},[_c('br'),_c('br'),(!_vm.show && !_vm.linkIAmSmart)?_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('b-card-header',{staticClass:\"header info-header\"},[_vm._v(_vm._s(_vm.$t(\"getProfileTitle\")))]),_c('h5',{staticClass:\"mt-4\",staticStyle:{\"text-align\":\"center\"}},[_vm._v(\" \"+_vm._s(_vm.$t(\"getProfileHeader\"))+\" \")]),_c('br'),_c('p',[_vm._v(_vm._s(_vm.$t(\"getProfileInstr1\")))]),_c('ul',[_c('li',[_vm._v(_vm._s(_vm.$t(\"getProfileList1\")))]),_c('li',[_vm._v(_vm._s(_vm.$t(\"getProfileList5\")))])]),_c('div',{staticClass:\"info-btn\"},[_c('div',{staticStyle:{\"display\":\"inline-block\"}},[_c('IAMSmartButton',{on:{\"click\":function($event){return _vm.requestProfile(_vm.businessId)}}},[_vm._v(_vm._s(_vm.$t(\"iAmSmartInfoButton\")))])],1)])],1):_vm._e(),(_vm.show)?_c('b-card',{attrs:{\"no-body\":\"\"}},[_c('b-card-header',{staticClass:\"header\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"title\"))+\" \")]),_c('h5',{staticClass:\"mt-4\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"instrHeader\"))+\" \")]),_c('br'),_c('ol',[_c('li',{staticClass:\"green-text\"},[_vm._v(_vm._s(_vm.$t(\"instrStep1\")))]),_c('a',{attrs:{\"href\":\"#\"}},[(!_vm.isMobile)?_c('img',{attrs:{\"width\":\"10%\",\"src\":require(\"@/assets/tap.png\")}}):_vm._e()]),_c('li',[_vm._v(_vm._s(_vm.$t(\"instrStep2\")))]),_c('li',[_vm._v(_vm._s(_vm.$t(\"instrStep3\")))])]),_c('div',{staticClass:\"info-btn\"},[_c('div',{staticStyle:{\"display\":\"inline-block\"}},[(_vm.show && _vm.isMobile)?_c('IAMSmartButton',{on:{\"click\":_vm.iamsmartprofile}},[_vm._v(_vm._s(_vm.$t(\"iAmSmartMobileButton\")))]):_vm._e()],1)])],1):_vm._e(),_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('router-link',{staticStyle:{\"text-decoration\":\"underline\"},attrs:{\"to\":{ path: '/login' }}},[_vm._v(\" \"+_vm._s(_vm.$t(\"cancelLoginButton\"))+\" \")])],1),(_vm.linkIAmSmart)?_c('AfterLinkedIAmSmart',{attrs:{\"exist\":true},on:{\"useESS\":_vm.assignESS}}):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n \r\n\r\n \r\n \r\n\r\n \r\n {{ $t(\"getProfileTitle\") }}\r\n {{ $t(\"getProfileHeader\")}} \r\n \r\n {{ $t(\"getProfileInstr1\")}}\r\n \r\n {{ $t(\"getProfileList1\")}}\r\n {{ $t(\"getProfileList5\")}}\r\n \r\n \r\n \r\n {{ $t(\"iAmSmartInfoButton\")}}\r\n \r\n \r\n\r\n \r\n\r\n \r\n \r\n {{ $t(\"title\") }}\r\n \r\n \r\n {{ $t(\"instrHeader\") }}\r\n \r\n \r\n \r\n {{ $t(\"instrStep1\") }}\r\n \r\n \r\n \r\n {{ $t(\"instrStep2\") }}\r\n {{ $t(\"instrStep3\") }}\r\n \r\n \r\n \r\n {{$t(\"iAmSmartMobileButton\")}}\r\n \r\n \r\n \r\n \r\n \r\n {{ $t(\"cancelLoginButton\")}}\r\n \r\n \r\n \r\n \r\n\r\n \r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginIAMSmartPendingView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginIAMSmartPendingView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LoginIAMSmartPendingView.vue?vue&type=template&id=3568bf96&\"\nimport script from \"./LoginIAMSmartPendingView.vue?vue&type=script&lang=js&\"\nexport * from \"./LoginIAMSmartPendingView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LoginIAMSmartPendingView.vue?vue&type=style&index=0&lang=css&\"\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","module.exports = __webpack_public_path__ + \"img/tap.c662c4c4.png\";","import mod from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginIAMSmartPendingView.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./LoginIAMSmartPendingView.vue?vue&type=style&index=0&lang=css&\"","module.exports = function (Component) {\n Component.options.__i18n = Component.options.__i18n || []\n Component.options.__i18n.push('{\"en\":{\"iAMSmartContinue\":\"Continue to use Electronic Submission Hub\"},\"zh_hk\":{\"iAMSmartContinue\":\"繼續使用[電子資料呈交及處理系統]\"},\"zh_cn\":{\"iAMSmartContinue\":\"继续使用[电子资料呈交及处理系统]\"}}')\n delete Component.options._Ctor\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"content\"},[_c('h4',{staticClass:\"content_msg\"},[_vm._v(_vm._s(this.msg))]),_c('b-button',{attrs:{\"variant\":\"primary\"},on:{\"click\":_vm.useESS}},[_vm._v(_vm._s(_vm.$t(\"iAMSmartContinue\")))])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n \r\n {{this.msg}}\r\n\r\n {{$t(\"iAMSmartContinue\")}}\r\n \r\n\r\n\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AfterLinkedIAmSmart.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./AfterLinkedIAmSmart.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AfterLinkedIAmSmart.vue?vue&type=template&id=441f808a&scoped=true&\"\nimport script from \"./AfterLinkedIAmSmart.vue?vue&type=script&lang=js&\"\nexport * from \"./AfterLinkedIAmSmart.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AfterLinkedIAmSmart.vue?vue&type=style&index=0&id=441f808a&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 \"441f808a\",\n null\n \n)\n\n/* custom blocks */\nimport block0 from \"@/locales/iamsmart.linked.json?vue&type=custom&index=0&blockType=i18n&issuerPath=E%3A%5Capp%5CJenkins%5Cworkspace%5CBD%20ESH%20300%20Nextore%20V3%20BD%20Client%5Csrc%5Csrc%5Cpublic%5Cmodules%5Clogin%5Ccomponents%5Clogin%5CAfterLinkedIAmSmart.vue\"\nif (typeof block0 === 'function') block0(component)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/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!./AfterLinkedIAmSmart.vue?vue&type=style&index=0&id=441f808a&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/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!./AfterLinkedIAmSmart.vue?vue&type=style&index=0&id=441f808a&lang=scss&scoped=true&\"","import { UserApi } from \"nx-libs\";\r\nimport { ClientAuthApi, MemberAccountInfoSettingApi } from \"@/api\";\r\n\r\nexport const loginESH = async (username, password, lang = null) => {\r\n try {\r\n await UserApi.login(\r\n 5,\r\n {\r\n Username: username,\r\n Password: password\r\n },\r\n false\r\n );\r\n } catch (ex) {\r\n if (ex.response.data.includes(\"ERR_AUTH_0008\")) { // require E-cert 2FA\r\n return ex;\r\n }else{\r\n throw ex;\r\n }\r\n }\r\n\r\n // 4894 redirect to the correct language of the login page after logining\r\n if (lang) {\r\n await MemberAccountInfoSettingApi.editLanguage(lang);\r\n }\r\n};\r\n\r\nexport const login = async (store, identity) => {\r\n await store.dispatch(\"userStore/login\", identity);\r\n\r\n return store.getters[\"userStore/getUserInfo\"];\r\n};\r\n\r\nexport const loginToLanding = async (store, router, identity) => {\r\n const { username, password } = identity;\r\n\r\n const user = await login(store, {\r\n identity: {\r\n Username: username,\r\n Password: password\r\n }\r\n });\r\n\r\n const groupNames = user.groups.map((group) => group.name);\r\n let route;\r\n\r\n if (groupNames.includes(\"Professional\")) {\r\n route = { name: \"LandingProf\" };\r\n } else if (groupNames.includes(\"Public\")) {\r\n route = { name: \"LandingPublic\" };\r\n } else {\r\n throw new Error(\"cannot identity user type\");\r\n }\r\n\r\n router.push(route);\r\n};\r\n\r\nexport const getPublicPath = () => ({\r\n ERegistrationProfessionalActivate: \"/public/bd/#/registration/prof/activate\",\r\n Login: \"/public/bd/#/login\"\r\n});\r\n\r\nexport const redirectToPublicPath = (view) => {\r\n const href = getPublicPath();\r\n\r\n if (!href[view]) {\r\n console.warn(`undefined path for position ${pos}`);\r\n pos = \"Login\";\r\n }\r\n\r\n window.location.href = href[view];\r\n};\r\n\r\nexport const getLandingPathHref = () => ({\r\n prof: \"/bd/ess/#/landing/prof\",\r\n public: \"/bd/ess/#/landing/public\"\r\n});\r\n\r\nexport const getLandingPath = (user) => {\r\n const { groups } = user;\r\n const landingHref = getLandingPathHref();\r\n\r\n const groupNames = groups.map((group) => group.name);\r\n\r\n if (groupNames.includes(\"Professional\")) {\r\n return landingHref.prof;\r\n }\r\n\r\n return landingHref.public;\r\n};\r\n\r\nexport const redirectToLanding = (pos) => {\r\n const href = getLandingPathHref();\r\n\r\n if (!href[pos]) {\r\n console.warn(`undefined path for position ${pos}`);\r\n pos = \"public\";\r\n }\r\n\r\n window.location.href = href[pos];\r\n};\r\n\r\nexport const redirectToLandingByUser = (user) => {\r\n const href = getLandingPath(user);\r\n\r\n window.location.href = href;\r\n};\r\n\r\nexport const getUserPosition = (user) => {\r\n const { groups } = user;\r\n\r\n if (!groups) {\r\n return \"Registered User\";\r\n }\r\n\r\n const posMap = getPositions();\r\n const groupNames = groups.map((group) => group.name);\r\n\r\n return (\r\n posMap.get(groupNames.find((name) => posMap.has(name))) || \"Registered User\"\r\n );\r\n};\r\n\r\nexport const getPositions = () => {\r\n const map = new Map();\r\n\r\n map.set(\"AP\", \"Authorized Person (AP)\");\r\n map.set(\"RSE\", \"Registered Structural Engineer (RSE)\");\r\n map.set(\"RGE\", \"Registered Geotechnical Engineer (RGE)\");\r\n map.set(\"RI\", \"Registered Inspectors (RI)\");\r\n map.set(\"QP\", \"Qualified Persons (QP)\");\r\n\r\n return map;\r\n};\r\n"],"sourceRoot":""}
{{ $t(\"getProfileInstr1\")}}