{"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?cc4f","webpack:///./src/views/TuitionFees/BankTransfer.vue?9d0f","webpack:///./src/components/tuition-fees/MirroringUserBanner.vue?3f8c","webpack:///./src/components/tuition-fees/MirroringUserBanner.vue?0283","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,8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C,4ECOgB,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.518d6a40.js","sourcesContent":["import SessionStorageService from \"@/services/sessionstorage-service\";\r\nimport { SessionStorageKeys } from \"@/constants/constants\";\r\nimport router from \"@/router\";\r\nimport { IUser } from \"@/interfaces/IUser\";\r\n\r\nclass UnauthorizedHelper {\r\n /**\r\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.\r\n * @param {IUser | undefined} currentUser - Represents the current user who is interacting with the system.\r\n * If the user is not logged in, the `currentUser` parameter wil be `undefined` otherwise it will contain the user's information.\r\n * @returns Returns a boolean value representing whether the current user is an admin mirroring a user.\r\n * If the current user is not logged in, the function will open a popup log in window to authorize the user.\r\n * If the current user is logged in but is not an admin mirroring a user or a student,\r\n * the function will redirect the user to the \"Unauthorized\" page.\r\n */\r\n checkIfUserIsStudentOrAdminMirroringUser(\r\n currentUser: IUser | undefined\r\n ): boolean {\r\n const isMirroringUser = SessionStorageService.getItem(\r\n SessionStorageKeys.IsMirroringUser\r\n );\r\n\r\n const isEmployee = currentUser\r\n ? currentUser.entitlements?.includes(\"Employee\")\r\n : false;\r\n\r\n if (!isMirroringUser || isMirroringUser === \"false\") {\r\n if (!currentUser) {\r\n this.openLogin();\r\n } else if (isEmployee) {\r\n console.warn(\r\n \"🚀 ~ UnauthorizedHelper ~ routing to unauthorized:\",\r\n currentUser\r\n );\r\n\r\n this.routeToUnauthorized();\r\n }\r\n }\r\n\r\n return isMirroringUser === \"true\";\r\n }\r\n\r\n /**\r\n * Opens a a popup log in window to authorize the user.\r\n * It is called when the user is not logged in and tries to access a page that requires authentication.\r\n */\r\n private openLogin() {\r\n const url = `${process.env.VUE_APP_BASE_API_URL}authorize`;\r\n const popupParams =\r\n \"scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no\";\r\n window.open(url, \"Login\", popupParams);\r\n }\r\n\r\n /**\r\n * Redirects the user to the \"Unauthorized\" page.\r\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.\r\n */\r\n private routeToUnauthorized() {\r\n router.push({\r\n name: \"Unauthorized\",\r\n });\r\n }\r\n}\r\n\r\nexport default new UnauthorizedHelper();\r\n","import store from \"@/store\";\r\nimport DownloadService from \"@/services/download-service\";\r\n\r\nclass DownloadHelper {\r\n /**\r\n * Downloads the specified invoice as a PDF file\r\n */\r\n async downloadInvoice(invoiceNo: string) {\r\n store.commit(\"showSpinner\", true);\r\n\r\n const result = await DownloadService.downloadInvoice(invoiceNo)\r\n .then(() => {\r\n store.commit(\"showSpinner\", false);\r\n })\r\n .catch((e: Error) => {\r\n console.error(e);\r\n });\r\n return result;\r\n }\r\n}\r\n\r\nexport default new DownloadHelper();\r\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.

Payment to Lund University from another country

BIC/SWIFT-code: DABASESX
IBAN: SE6412000000012810119317
Bank address:
Danske Bank
Norrmalmstorg 1
Box 7523
103 92 Stockholm
SWEDEN

Payment to Lund University from Sweden

Danske Bank, account number: 12810119317
\", 7)\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MirroringUserBanner = _resolveComponent(\"MirroringUserBanner\")!\n const _component_BackToInvoicesButton = _resolveComponent(\"BackToInvoicesButton\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (this.isMirroringUser)\n ? (_openBlock(), _createBlock(_component_MirroringUserBanner, {\n key: 0,\n personalId: _ctx.personalId,\n personName: _ctx.personName,\n lucatId: _ctx.lucatId\n }, null, 8, [\"personalId\", \"personName\", \"lucatId\"]))\n : _createCommentVNode(\"\", true),\n _hoisted_1,\n _hoisted_2,\n _hoisted_3,\n _createElementVNode(\"div\", _hoisted_4, [\n _createElementVNode(\"button\", {\n class: \"btn btn-primary mr-2\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.downloadInvoice()))\n }, \" Download the invoice (PDF) \")\n ]),\n _hoisted_5,\n _createVNode(_component_BackToInvoicesButton)\n ], 64))\n}","\r\nimport { Options, Vue } from \"vue-class-component\";\r\nimport BackToInvoicesButton from \"@/components/tuition-fees/BackToInvoicesButton.vue\";\r\nimport MirroringUserBanner from \"@/components/tuition-fees/MirroringUserBanner.vue\";\r\nimport DownloadHelper from \"@/helpers/tuitionfees/download-helper\";\r\nimport UnauthorizedHelper from \"@/helpers/tuitionfees/unauthorized-helper\";\r\nimport { SessionStorageKeys } from \"@/constants/constants\";\r\nimport { TfPerson } from \"@/interfaces/api\";\r\nimport SessionStorageService from \"@/services/sessionstorage-service\";\r\n\r\n@Options({\r\n components: { BackToInvoicesButton, MirroringUserBanner },\r\n data: () => ({\r\n /**\r\n * The current user object\r\n */\r\n currentUser: {},\r\n /**\r\n * The personal id of the user being mirrored by admin\r\n */\r\n personalId: \"\",\r\n /**\r\n * The name of the user being mirrored by admin\r\n */\r\n personName: \"\",\r\n /**\r\n * The lucat id of the user being mirrored by admin\r\n */\r\n lucatId: \"\",\r\n /**\r\n * A boolean to indicate if tfp-admin is mirroring user or not\r\n */\r\n isMirroringUser: false,\r\n }),\r\n computed: {},\r\n methods: {\r\n /**\r\n * Gets the personal id from the session storage\r\n */\r\n getUserId(): void {\r\n const mirroredUser: TfPerson | undefined = SessionStorageService.getItem(\r\n SessionStorageKeys.MirroredUser\r\n );\r\n\r\n if (mirroredUser) {\r\n this.personName = mirroredUser.displayName;\r\n this.personalId = mirroredUser.personalId;\r\n this.lucatId = mirroredUser.luEduPersonPrimaryId;\r\n }\r\n },\r\n /**\r\n * Downloads the specified invoice as a PDF file\r\n */\r\n async downloadInvoice() {\r\n const invoiceNo = this.$route.params.invoiceNo;\r\n await DownloadHelper.downloadInvoice(invoiceNo);\r\n },\r\n\r\n /**\r\n * If not logged in or not a student, redirect to unauthorized page\r\n * Otherwise, check if admin is mirroring a user, if so show banner\r\n * if not redirect to unauthorized page\r\n */\r\n checkIfUserIsStudentOrAdminMirroringUser(): void {\r\n this.currentUser = this.$store.getters.getCurrentUser;\r\n this.isMirroringUser =\r\n UnauthorizedHelper.checkIfUserIsStudentOrAdminMirroringUser(\r\n this.currentUser\r\n );\r\n },\r\n /**\r\n * Scrolls to the top of the page to solve a problem where the page is scrolled down\r\n * on load from when the user is positioned low on tuition fees page\r\n */\r\n scrollToTop() {\r\n window.scrollTo(0, 0);\r\n },\r\n },\r\n mounted() {\r\n this.getUserId();\r\n this.scrollToTop();\r\n this.checkIfUserIsStudentOrAdminMirroringUser();\r\n },\r\n})\r\nexport default class BankTransfer extends Vue {}\r\n","import { render } from \"./BankTransfer.vue?vue&type=template&id=631057ac&scoped=true&ts=true\"\nimport script from \"./BankTransfer.vue?vue&type=script&lang=ts\"\nexport * from \"./BankTransfer.vue?vue&type=script&lang=ts\"\n\nimport \"./BankTransfer.vue?vue&type=style&index=0&id=631057ac&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-631057ac\"]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-ce0bfae8\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"mirroring\" }\nconst _hoisted_2 = [\"aria-label\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_font_awesome_icon = _resolveComponent(\"font-awesome-icon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"span\", null, [\n _createVNode(_component_font_awesome_icon, {\n icon: 'info-circle',\n class: \"info\"\n }),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"tuition-fees.mirroring\")) + \": \" + _toDisplayString(_ctx.nullLucatId) + \" - \" + _toDisplayString(_ctx.shortPersonalId) + \" - \" + _toDisplayString(_ctx.personName), 1)\n ]),\n _createElementVNode(\"button\", {\n id: \"stopMirroringBtn\",\n class: \"btn btn-outline-primary mr-2 stop-btn\",\n \"aria-label\": _ctx.$t('tuition-fees.back'),\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.onStopMirroringClicked()))\n }, _toDisplayString(_ctx.$t(\"tuition-fees.stop-mirroring\")), 9, _hoisted_2)\n ]))\n}","\r\nimport SessionStorageService from \"@/services/sessionstorage-service\";\r\nimport { SessionStorageKeys } from \"@/constants/constants\";\r\nimport { PropType } from \"@vue/runtime-core\";\r\nimport { Options, Vue } from \"vue-class-component\";\r\n\r\n@Options({\r\n props: {\r\n /**\r\n * The personal id of the user being mirrored by admin\r\n */\r\n personalId: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The name of the user being mirrored by admin\r\n */\r\n personName: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The lucat id of the user being mirrored by admin\r\n */\r\n lucatId: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n },\r\n computed: {\r\n /**\r\n * The shortened personal id of only the last 10 digits\r\n */\r\n shortPersonalId(): string {\r\n const personalId = this.$props.personalId;\r\n return personalId ? personalId.substr(personalId.length - 10) : \"\";\r\n },\r\n /**\r\n * If the student cannot be found in Ladok, the lucat id will be null\r\n */\r\n nullLucatId(): string {\r\n const lucatId = this.$props.lucatId;\r\n return lucatId ? lucatId : \"\";\r\n },\r\n },\r\n methods: {\r\n /**\r\n * Routes to search user page\r\n */\r\n onStopMirroringClicked(): void {\r\n SessionStorageService.setItem(SessionStorageKeys.IsMirroringUser, false);\r\n this.$router.push({\r\n name: \"MirrorUser\",\r\n });\r\n },\r\n },\r\n})\r\nexport default class MirroringUserBanner extends Vue {}\r\n","import { render } from \"./MirroringUserBanner.vue?vue&type=template&id=ce0bfae8&scoped=true&ts=true\"\nimport script from \"./MirroringUserBanner.vue?vue&type=script&lang=ts\"\nexport * from \"./MirroringUserBanner.vue?vue&type=script&lang=ts\"\n\nimport \"./MirroringUserBanner.vue?vue&type=style&index=0&id=ce0bfae8&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-ce0bfae8\"]])\n\nexport default __exports__","import { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"button\", {\n id: \"backBtn\",\n type: \"button\",\n class: \"btn btn-outline-primary mb-3\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (_ctx.goToTuitionFeeHome()))\n }, \" Return to list of invoices \"))\n}","\r\nimport { Options, Vue } from \"vue-class-component\";\r\n\r\n@Options({\r\n methods: {\r\n /**\r\n * Redirects to the tuition fee home page\r\n */\r\n goToTuitionFeeHome(): void {\r\n this.$router.push({\r\n name: \"TuitionFeeHome\",\r\n });\r\n },\r\n },\r\n})\r\nexport default class BackToInvoicesButton extends Vue {}\r\n","import { render } from \"./BackToInvoicesButton.vue?vue&type=template&id=5fca811e&ts=true\"\nimport script from \"./BackToInvoicesButton.vue?vue&type=script&lang=ts\"\nexport * from \"./BackToInvoicesButton.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { FeeDataExportType } from \"@/interfaces/api\";\r\nimport BaseService from \"@/services/base-service\";\r\n\r\nclass DownloadService extends BaseService {\r\n /**\r\n * Downloads an excel file containing fee data\r\n *\r\n * @param {string} locale - The language of the excel file to download\r\n * @param {string} fromDateIsoString - Include note-taker fee data from this date forward\r\n * @param {FeeDataExportType} feeDataExportType - The type of fee data export\r\n *\r\n * @returns {Promise} A Promise with a boolean representing the success of the operation\r\n */\r\n\r\n async downloadFeeData(\r\n locale: string,\r\n fromDateIsoString: string,\r\n feeDataExportType: FeeDataExportType\r\n ): Promise {\r\n const endpointController = \"Download\";\r\n const enpointRoute = \"feedata\";\r\n const paramName_1 = \"locale\";\r\n const paramValue_1 = locale;\r\n const paramName_2 = \"fromDate\";\r\n const paramValue_2 = fromDateIsoString;\r\n const paramName_3 = \"feeDataExportType\";\r\n const paramValue_3 = feeDataExportType;\r\n const queryString = `${paramName_1}=${paramValue_1}&${paramName_2}=${paramValue_2}&${paramName_3}=${paramValue_3}`;\r\n const url = `${this.baseApiUrl}api/${endpointController}/${enpointRoute}?${queryString}`;\r\n\r\n return await this.fetch(url);\r\n }\r\n\r\n /**\r\n * Downloads a pdf file containing invoice data\r\n *\r\n * @param {string} invoiceNo - The invoice number of the pdf file to download\r\n *\r\n * @returns {Promise} A Promise with a boolean representing the success of the operation\r\n */\r\n async downloadInvoice(invoiceNo: string): Promise {\r\n const endpointController = \"Download\";\r\n const enpointRoute = \"invoice\";\r\n const paramName = \"invoiceNo\";\r\n const paramValue = invoiceNo;\r\n const queryString = `${paramName}=${paramValue}`;\r\n const url = `${this.baseApiUrl}api/${endpointController}/${enpointRoute}?${queryString}`;\r\n\r\n return await this.fetch(url);\r\n }\r\n}\r\n\r\nexport default new DownloadService();\r\n"],"sourceRoot":""}