{"version":3,"sources":["webpack:///./src/helpers/tuitionfees/unauthorized-helper.ts","webpack:///./src/helpers/tuitionfees/download-helper.ts","webpack:///./src/views/TuitionFees/BankTransfer.vue?f07d","webpack:///./src/components/tuition-fees/MirroringUserBanner.vue?6eb6","webpack:///./src/views/TuitionFees/BankTransfer.vue?5c35","webpack:///./src/views/TuitionFees/BankTransfer.vue","webpack:///./src/views/TuitionFees/BankTransfer.vue?9d0f","webpack:///./src/components/tuition-fees/MirroringUserBanner.vue?3f8c","webpack:///./src/components/tuition-fees/MirroringUserBanner.vue","webpack:///./src/components/tuition-fees/MirroringUserBanner.vue?1d4b","webpack:///./src/components/tuition-fees/BackToInvoicesButton.vue?4f75","webpack:///./src/components/tuition-fees/BackToInvoicesButton.vue","webpack:///./src/components/tuition-fees/BackToInvoicesButton.vue?4834","webpack:///./src/services/download-service.ts"],"names":["UnauthorizedHelper","currentUser","isMirroringUser","getItem","IsMirroringUser","isEmployee","entitlements","includes","console","warn","this","routeToUnauthorized","openLogin","url","popupParams","window","open","push","name","DownloadHelper","invoiceNo","commit","downloadInvoice","then","catch","e","error","result","n","_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","render","_ctx","_cache","$props","$setup","$data","$options","_component_MirroringUserBanner","_component_BackToInvoicesButton","key","personalId","personName","lucatId","onClick","$event","components","BackToInvoicesButton","MirroringUserBanner","data","computed","methods","getUserId","mirroredUser","MirroredUser","displayName","luEduPersonPrimaryId","$route","params","checkIfUserIsStudentOrAdminMirroringUser","$store","getters","getCurrentUser","scrollToTop","scrollTo","mounted","__exports__","_component_font_awesome_icon","icon","$t","nullLucatId","shortPersonalId","id","onStopMirroringClicked","props","type","String","required","substr","length","setItem","$router","goToTuitionFeeHome","DownloadService","locale","fromDateIsoString","feeDataExportType","endpointController","enpointRoute","paramName_1","paramValue_1","paramName_2","paramValue_2","paramName_3","paramValue_3","queryString","baseApiUrl","fetch","paramName","paramValue"],"mappings":"wMAKMA,E,8HAUJ,SAC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,EAArB,qJAAkD,QAA7B,EAAoB,gBAZxC,eAAQ,CACP/B,QAAS,CAIP+B,mBAJO,WAKL5E,KAAK2E,QAAQpE,KAAK,CAChBC,KAAM,wBAKO,W,qBCVrB,MAAMoD,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASnC,KAErD,U,oICJToD,E,0OAWJ,WACEC,EACAC,EACAC,GAHF,gHAKQC,EAAqB,WACrBC,EAAe,UACfC,EAAc,SACdC,EAAeN,EACfO,EAAc,WACdC,EAAeP,EACfQ,EAAc,oBACdC,EAAeR,EACfS,EAbR,UAayBN,EAbzB,YAawCC,EAbxC,YAawDC,EAbxD,YAauEC,EAbvE,YAauFC,EAbvF,YAasGC,GAC9FrF,EAdR,UAciBH,KAAK0F,WAdtB,eAcuCT,EAdvC,YAc6DC,EAd7D,YAc6EO,GAd7E,UAgBezF,KAAK2F,MAAexF,GAhBnC,0F,oJA0BA,WAAsBO,GAAtB,wGACQuE,EAAqB,WACrBC,EAAe,UACfU,EAAY,YACZC,EAAanF,EACb+E,EALR,UAKyBG,EALzB,YAKsCC,GAC9B1F,EANR,UAMiBH,KAAK0F,WANtB,eAMuCT,EANvC,YAM6DC,EAN7D,YAM6EO,GAN7E,SAQezF,KAAK2F,MAAexF,GARnC,wF,+DArC4B,QAiDf,WAAI0E","file":"assets/js/chunk-71605c10.88179278.js","sourcesContent":["import SessionStorageService from \"@/services/sessionstorage-service\";\nimport { SessionStorageKeys } from \"@/constants/constants\";\nimport router from \"@/router\";\nimport { IUser } from \"@/interfaces/IUser\";\n\nclass UnauthorizedHelper {\n /**\n * The function checks if the current user is a student or an admin mirroring a user and returns a boolean value based on the conditions.\n * @param {IUser | undefined} currentUser - Represents the current user who is interacting with the system.\n * If the user is not logged in, the `currentUser` parameter wil be `undefined` otherwise it will contain the user's information.\n * @returns Returns a boolean value representing whether the current user is an admin mirroring a user.\n * If the current user is not logged in, the function will open a popup log in window to authorize the user.\n * If the current user is logged in but is not an admin mirroring a user or a student,\n * the function will redirect the user to the \"Unauthorized\" page.\n */\n checkIfUserIsStudentOrAdminMirroringUser(\n currentUser: IUser | undefined\n ): boolean {\n const isMirroringUser = SessionStorageService.getItem(\n SessionStorageKeys.IsMirroringUser\n );\n\n const isEmployee = currentUser\n ? currentUser.entitlements?.includes(\"Employee\")\n : false;\n\n if (!isMirroringUser || isMirroringUser === \"false\") {\n if (!currentUser) {\n this.openLogin();\n } else if (isEmployee) {\n console.warn(\n \"🚀 ~ UnauthorizedHelper ~ routing to unauthorized:\",\n currentUser\n );\n\n this.routeToUnauthorized();\n }\n }\n\n return isMirroringUser === \"true\";\n }\n\n /**\n * Opens a a popup log in window to authorize the user.\n * It is called when the user is not logged in and tries to access a page that requires authentication.\n */\n private openLogin() {\n const url = `${process.env.VUE_APP_BASE_API_URL}authorize`;\n const popupParams =\n \"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no\";\n window.open(url, \"Login\", popupParams);\n }\n\n /**\n * Redirects the user to the \"Unauthorized\" page.\n * It is called when the user is logged in but is not a student and tries to access a page that requires student privileges.\n */\n private routeToUnauthorized() {\n router.push({\n name: \"Unauthorized\",\n });\n }\n}\n\nexport default new UnauthorizedHelper();\n","import store from \"@/store\";\nimport DownloadService from \"@/services/download-service\";\n\nclass DownloadHelper {\n /**\n * Downloads the specified invoice as a PDF file\n */\n async downloadInvoice(invoiceNo: string) {\n store.commit(\"showSpinner\", true);\n\n const result = await DownloadService.downloadInvoice(invoiceNo)\n .then(() => {\n store.commit(\"showSpinner\", false);\n })\n .catch((e: Error) => {\n console.error(e);\n });\n return result;\n }\n}\n\nexport default new DownloadHelper();\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./BankTransfer.vue?vue&type=style&index=0&id=631057ac&scoped=true&lang=css\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./MirroringUserBanner.vue?vue&type=style&index=0&id=ce0bfae8&scoped=true&lang=css\"","import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createElementVNode as _createElementVNode, createVNode as _createVNode, createStaticVNode as _createStaticVNode, Fragment as _Fragment, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-631057ac\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h1\", { class: \"page-heading\" }, \"Tuition Fees\", -1))\nconst _hoisted_2 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"h2\", { class: \"page-heading\" }, \"Bank transfer\", -1))\nconst _hoisted_3 = /*#__PURE__*/ _withScopeId(() => /*#__PURE__*/_createElementVNode(\"p\", null, \"You have selected to pay the invoice via bank transfer.\", -1))\nconst _hoisted_4 = { class: \"related-links\" }\nconst _hoisted_5 = /*#__PURE__*/_createStaticVNode(\"
Always state the invoice number with the payment! When paying from abroad, the customer is responsible for any additional bank charges.