{"version":3,"sources":["webpack:///./src/components/Form/CheckboxInput.vue?2387","webpack:///./src/components/Form/CheckboxInput.vue","webpack:///./src/components/Form/CheckboxInput.vue?0481","webpack:///./src/components/Form/MandatoryFieldFlag.vue?d35e","webpack:///./src/components/DetailsRow.vue?13ad","webpack:///./src/components/Form/MandatoryFieldFlag.vue?e8f2","webpack:///./src/components/Form/MandatoryFieldFlag.vue?c7c1","webpack:///./src/components/Form/MandatoryFieldFlag.vue?c1c8","webpack:///./src/views/OfferResponse.vue?202f","webpack:///./src/services/offer-service.ts","webpack:///./src/views/OfferResponse.vue","webpack:///./src/views/OfferResponse.vue?aeae","webpack:///./src/components/DetailsRow.vue?5ff4","webpack:///./src/components/DetailsRow.vue?0d0e","webpack:///./src/components/DetailsRow.vue?864c"],"names":["_hoisted_1","class","_hoisted_2","_hoisted_3","_hoisted_4","key","render","_ctx","_cache","$props","$setup","$data","$options","type","ariaLabel","id","fieldId","checked","disabled","required","onChange","$event","onUpdate","target","style","cursor","ref","onInvalid","validityMessage","setValidityMessage","label","for","helpText","props","String","Boolean","default","emits","methods","isChecked","this","$emit","message","$refs","input","setCustomValidity","__exports__","title","$t","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_component_Modal","_component_LuSpinner","_component_DetailsRow","_component_CheckboxInput","offer","onClose","$router","push","name","header","noteTaker","firstName","_","isLoading","caption","courseOccurrence","courseCode","$root","$i18n","locale","titleSv","titleEn","courseStartDate","href","termsAndConditionsUrl","rel","onClick","haveClickedLink","termsAccepted","acceptOffer","declineOffer","offerId","endpointController","parameterName","parameterArgument","getOfferById","baseApiUrl","fetch","method","headers","body","JSON","stringify","components","Modal","DetailsRow","CheckboxInput","LuSpinner","Number","data","computed","apiFilesUrl","NoteSupportFilesRelativeUrl","NoteSupportTermsAndConditionsPdfSv","NoteSupportTermsAndConditionsPdfEn","getOffer","$route","params","parseInt","then","confirmed","canceled","$store","state","currentUser","entitlements","includes","checkIfCorrectUser","catch","statusCode","alert","luEduPersonPrimaryId","result","open","mounted","watch","_component_MandatoryFieldFlag","_component_Badge","_component_Tooltip","detailsAreHtml","showDetailsAsBadge","detailsAreList","details","innerHTML","showTooltip","text","tooltipText","bgColor","tooltipColor","color","tooltipTextColor","rounded","backgroundColor","badgeBackgroundColor","showDetailsInBadge","item","length","$slots","undefined","Badge","Tooltip","MandatoryFieldFlag","Array"],"mappings":"kIAEMA,EAAa,CAAEC,MAAO,yBACtBC,EAAa,CAAC,aAAc,KAAM,UAAW,WAAY,YACzDC,EAAa,CAAC,OACdC,EAAa,CACjBC,IAAK,EACLJ,MAAO,wBAGH,SAAUK,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,OAAQ,iBAAc,eAAoB,MAAOZ,EAAY,CAC3D,eAAoB,QAAS,CAC3Ba,KAAM,WACNZ,MAAO,mBACP,aAAcM,EAAKO,UACnBC,GAAIR,EAAKS,QACTC,QAASV,EAAKU,QACdC,SAAUX,EAAKW,SACfC,SAAUZ,EAAKY,SACfC,SAAUZ,EAAO,KAAOA,EAAO,GAAK,SAACa,GAAD,OAAkBd,EAAKe,SAASD,EAAOE,OAAON,WAClFO,MAAO,eAAgB,CAAEC,OAAQlB,EAAKW,SAAW,cAAgB,YACjEQ,IAAK,QACLC,UAAWnB,EAAO,KAAOA,EAAO,GAAK,SAACa,GAAD,OAAkBd,EAAKqB,gBAAkBrB,EAAKsB,mBAAmBtB,EAAKqB,iBAAmB,QAC7H,KAAM,GAAI1B,GACZK,EAAKuB,OACD,iBAAc,eAAoB,QAAS,CAC1CzB,IAAK,EACLJ,MAAO,mBACP8B,IAAKxB,EAAKS,SACT,eAAiBT,EAAKuB,OAAQ,EAAG3B,IACpC,eAAoB,IAAI,GAC3BI,EAAKyB,UACD,iBAAc,eAAoB,QAAS5B,EAAY,eAAiBG,EAAKyB,UAAW,IACzF,eAAoB,IAA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A,KACAC,UAAA,KACAC,qBAAA,MAEFjI,MAAO,CAIL0C,QAAS,CACP9D,KAAMqB,OACNf,UAAU,GAKZ4H,QAAS,CACPlI,KAAM,CAACqB,OAAQiI,OACfhJ,UAAU,GAKZ0H,mBAAoB,CAClBhI,KAAMsB,QACNhB,UAAU,EACViB,SAAS,GAOXuH,mBAAoB,CAClB9I,KAAMsB,QACNhB,UAAU,EACViB,SAAS,GAKXsH,qBAAsB,CACpB7I,KAAMqB,OACNf,UAAU,GAKZ2H,eAAgB,CACdjI,KAAMsB,QACNhB,UAAU,EACViB,SAAS,GAKXwG,eAAgB,CACd/H,KAAMsB,QACNhB,UAAU,EACViB,SAAS,GAEX6G,YAAa,CACXpI,KAAMsB,QACNhB,UAAU,EACViB,SAAS,GAEX+G,YAAa,CACXtI,KAAMqB,OACNf,UAAU,GAEZkI,aAAc,CACZxI,KAAMqB,OACNf,UAAU,GAEZoI,iBAAkB,CAChB1I,KAAMqB,OACNf,UAAU,GAEZA,SAAU,CACRN,KAAMsB,QACNhB,UAAU,EACViB,SAAS,OAIM,W,iCCtFrB,MAAMU,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAASxC,GAAQ,CAAC,YAAY,qBAE1E","file":"assets/js/chunk-1fa2084f.5137758f.js","sourcesContent":["import { normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"form-group form-check\" }\nconst _hoisted_2 = [\"aria-label\", \"id\", \"checked\", \"disabled\", \"required\"]\nconst _hoisted_3 = [\"for\"]\nconst _hoisted_4 = {\n key: 1,\n class: \"form-text text-muted\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"input\", {\n type: \"checkbox\",\n class: \"form-check-input\",\n \"aria-label\": _ctx.ariaLabel,\n id: _ctx.fieldId,\n checked: _ctx.checked,\n disabled: _ctx.disabled,\n required: _ctx.required,\n onChange: _cache[0] || (_cache[0] = ($event: any) => (_ctx.onUpdate($event.target.checked))),\n style: _normalizeStyle({ cursor: _ctx.disabled ? 'not-allowed' : 'pointer' }),\n ref: \"input\",\n onInvalid: _cache[1] || (_cache[1] = ($event: any) => (_ctx.validityMessage ? _ctx.setValidityMessage(_ctx.validityMessage) : null))\n }, null, 44, _hoisted_2),\n (_ctx.label)\n ? (_openBlock(), _createElementBlock(\"label\", {\n key: 0,\n class: \"form-check-label\",\n for: _ctx.fieldId\n }, _toDisplayString(_ctx.label), 9, _hoisted_3))\n : _createCommentVNode(\"\", true),\n (_ctx.helpText)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_4, _toDisplayString(_ctx.helpText), 1))\n : _createCommentVNode(\"\", true)\n ]))\n}","\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 Id of the checkbox\r\n */\r\n fieldId: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The label value for the checkbox\r\n */\r\n label: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The aria label value for the checkbox\r\n */\r\n ariaLabel: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * If the checkbox is checked\r\n */\r\n checked: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If the checkbox is disabled\r\n */\r\n disabled: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * The help text for the checkbox\r\n */\r\n helpText: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * If the input is required\r\n */\r\n required: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * Custom validity message\r\n */\r\n validityMessage: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n },\r\n emits: [\"update:checked\", \"update\"],\r\n methods: {\r\n /**\r\n * Gets called when the value changes\r\n */\r\n onUpdate(isChecked: boolean): void {\r\n this.setValidityMessage(\"\");\r\n this.$emit(\"update:checked\", isChecked);\r\n this.$emit(\"update\", isChecked);\r\n },\r\n /**\r\n * Sets a custom validity message\r\n *\r\n * @param {string} message The message\r\n */\r\n setValidityMessage(message: string): void {\r\n this.$refs.input.setCustomValidity(message);\r\n },\r\n },\r\n})\r\nexport default class CheckboxInput extends Vue {}\r\n","import { render } from \"./CheckboxInput.vue?vue&type=template&id=77a7f6a0&ts=true\"\nimport script from \"./CheckboxInput.vue?vue&type=script&lang=ts\"\nexport * from \"./CheckboxInput.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__","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!./MandatoryFieldFlag.vue?vue&type=style&index=0&id=11cc3317&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!./DetailsRow.vue?vue&type=style&index=0&id=0948d347&scoped=true&lang=css\"","import { openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-11cc3317\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = [\"title\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"span\", {\n class: \"mandatory-field-flag\",\n title: _ctx.$t('mandatoryField.title')\n }, \" * \", 8, _hoisted_1))\n}","\r\nimport { Vue } from \"vue-class-component\";\r\n\r\nexport default class MandatoryFieldFlag extends Vue {}\r\n","import { render } from \"./MandatoryFieldFlag.vue?vue&type=template&id=11cc3317&scoped=true&ts=true\"\nimport script from \"./MandatoryFieldFlag.vue?vue&type=script&lang=ts\"\nexport * from \"./MandatoryFieldFlag.vue?vue&type=script&lang=ts\"\n\nimport \"./MandatoryFieldFlag.vue?vue&type=style&index=0&id=11cc3317&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-11cc3317\"]])\n\nexport default __exports__","import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, createTextVNode as _createTextVNode } from \"vue\"\n\nconst _hoisted_1 = { class: \"m-0\" }\nconst _hoisted_2 = { class: \"p-3\" }\nconst _hoisted_3 = { class: \"m-0\" }\nconst _hoisted_4 = { class: \"p-3\" }\nconst _hoisted_5 = { class: \"m-0\" }\nconst _hoisted_6 = { class: \"p-3\" }\nconst _hoisted_7 = {\n key: 2,\n class: \"card col-12 col-lg-8\"\n}\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { class: \"mt-3\" }\nconst _hoisted_10 = { style: {\"display\":\"block\",\"margin-bottom\":\"1vh\"} }\nconst _hoisted_11 = { style: {\"display\":\"block\"} }\nconst _hoisted_12 = [\"href\"]\nconst _hoisted_13 = { class: \"detailsRow d-flex\" }\nconst _hoisted_14 = { class: \"detailsCol\" }\nconst _hoisted_15 = [\"disabled\"]\nconst _hoisted_16 = [\"disabled\"]\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Modal = _resolveComponent(\"Modal\")!\n const _component_LuSpinner = _resolveComponent(\"LuSpinner\")!\n const _component_DetailsRow = _resolveComponent(\"DetailsRow\")!\n const _component_CheckboxInput = _resolveComponent(\"CheckboxInput\")!\n\n return (_openBlock(), _createElementBlock(_Fragment, null, [\n (_ctx.offer !== null)\n ? (_openBlock(), _createElementBlock(_Fragment, { key: 0 }, [\n _createVNode(_component_Modal, {\n ref: \"accepted-modal\",\n onClose: _cache[0] || (_cache[0] = ($event: any) => (this.$router.push({ name: 'StudentHome' })))\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"h2\", _hoisted_1, _toDisplayString(_ctx.$t(\"offerresponse.popup-accepted.title\", {\r\n name: _ctx.offer.noteTaker.firstName,\r\n })), 1)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_2, _toDisplayString(_ctx.$t(\"offerresponse.popup-accepted.message\")), 1)\n ]),\n _: 1\n }, 512),\n _createVNode(_component_Modal, {\n ref: \"declined-modal\",\n onClose: _cache[1] || (_cache[1] = ($event: any) => (this.$router.push({ name: 'StudentHome' })))\n }, {\n header: _withCtx(() => [\n _createElementVNode(\"h2\", _hoisted_3, _toDisplayString(_ctx.$t(\"offerresponse.popup-declined.title\")), 1)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_4, _toDisplayString(_ctx.$t(\"offerresponse.popup-declined.message\")), 1)\n ]),\n _: 1\n }, 512),\n _createVNode(_component_Modal, { ref: \"error-modal\" }, {\n header: _withCtx(() => [\n _createElementVNode(\"h2\", _hoisted_5, _toDisplayString(_ctx.$t(\"shared.popup-error.title\", {\r\n name: _ctx.offer.noteTaker.firstName,\r\n })), 1)\n ]),\n default: _withCtx(() => [\n _createElementVNode(\"p\", _hoisted_6, _toDisplayString(_ctx.$t(\"shared.popup-error.message\")), 1)\n ]),\n _: 1\n }, 512)\n ], 64))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading)\n ? (_openBlock(), _createBlock(_component_LuSpinner, { key: 1 }))\n : _createCommentVNode(\"\", true),\n (_ctx.offer)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_7, [\n _createElementVNode(\"h2\", null, _toDisplayString(_ctx.$t(\"course-occurrence.offer.offer-response-title\")), 1),\n _createElementVNode(\"p\", null, _toDisplayString(_ctx.$t(\"course-occurrence.offer.offer-response-description\")), 1),\n (_ctx.offer)\n ? (_openBlock(), _createElementBlock(\"fieldset\", _hoisted_8, [\n _createElementVNode(\"legend\", null, _toDisplayString(_ctx.$t(\"course-occurrence.offer.offer-information-title\")), 1),\n _createVNode(_component_DetailsRow, { caption: \"shared.courseCode\" }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.offer.courseOccurrence.courseCode), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_DetailsRow, { caption: \"course-occurrence.title\" }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.$root.$i18n.locale === \"sv\"\r\n ? _ctx.offer.courseOccurrence.titleSv\r\n : _ctx.offer.courseOccurrence.titleEn), 1)\n ]),\n _: 1\n }),\n _createVNode(_component_DetailsRow, { caption: \"course-occurrence.courseStartDate\" }, {\n default: _withCtx(() => [\n _createTextVNode(_toDisplayString(_ctx.offer.courseOccurrence.courseStartDate), 1)\n ]),\n _: 1\n })\n ]))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"section\", _hoisted_9, [\n _createElementVNode(\"p\", null, [\n _createElementVNode(\"span\", _hoisted_10, _toDisplayString(_ctx.$t(\"course-occurrence.offer.policy-required-description\")), 1),\n _createElementVNode(\"span\", _hoisted_11, [\n _createTextVNode(_toDisplayString(_ctx.$t(\"course-occurrence.offer.policy-required-description-second-row-before-bold\")) + \" \", 1),\n _createElementVNode(\"b\", null, _toDisplayString(_ctx.$t(\"course-occurrence.offer.policy-required-description-second-row-bold\")), 1),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"course-occurrence.offer.policy-required-description-second-row-after-bold\")) + \" \", 1),\n _createElementVNode(\"a\", {\n id: \"termsLink\",\n href: _ctx.termsAndConditionsUrl,\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n onClick: _cache[2] || (_cache[2] = ($event: any) => (_ctx.haveClickedLink = true))\n }, _toDisplayString(_ctx.$t(\"course-occurrence.offer.terms-and-conditions\")), 9, _hoisted_12)\n ]),\n _createTextVNode(\" \" + _toDisplayString(_ctx.$t(\"course-occurrence.offer.policy-required-description-after-link\")), 1)\n ]),\n _createVNode(_component_CheckboxInput, {\n fieldId: \"accept\",\n label: _ctx.$t('shared.accept-policy-full'),\n checked: _ctx.termsAccepted,\n disabled: !_ctx.haveClickedLink,\n onUpdate: _cache[3] || (_cache[3] = (checked) => (_ctx.termsAccepted = checked))\n }, null, 8, [\"label\", \"checked\", \"disabled\"])\n ]),\n _createElementVNode(\"div\", _hoisted_13, [\n _createElementVNode(\"div\", _hoisted_14, [\n _createElementVNode(\"button\", {\n \"background-color\": \"btn btn-primary\",\n id: \"acceptBtn\",\n type: \"button\",\n class: \"btn btn-primary mr-2\",\n onClick: _cache[4] || (_cache[4] = ($event: any) => (_ctx.acceptOffer())),\n disabled: !_ctx.termsAccepted || _ctx.isLoading\n }, _toDisplayString(_ctx.$t(\"shared.accept\")), 9, _hoisted_15)\n ]),\n _createElementVNode(\"button\", {\n id: \"declineBtn\",\n type: \"button\",\n class: \"btn btn-outline-primary\",\n onClick: _cache[5] || (_cache[5] = ($event: any) => (_ctx.declineOffer())),\n disabled: _ctx.isLoading\n }, _toDisplayString(_ctx.$t(\"shared.decline\")), 9, _hoisted_16)\n ])\n ]))\n : _createCommentVNode(\"\", true)\n ], 64))\n}","import { NoteTakerOffer } from \"@/interfaces/api\";\r\nimport BaseService from \"@/services/base-service\";\r\n\r\nclass OfferService extends BaseService {\r\n /**\r\n * Fetches the offer with the specified id\r\n *\r\n * @param {number} offerId - The id of the note-taker offer\r\n * @returns {Promise} A Promise with the NoteTakerOffer\r\n */\r\n getOfferById(offerId: number): Promise {\r\n const endpointController = \"Offer\";\r\n const parameterName = \"offerId\";\r\n const parameterArgument = offerId;\r\n const getOfferById = `${this.baseApiUrl}api/${endpointController}?${parameterName}=${parameterArgument}`;\r\n return this.fetch(getOfferById);\r\n }\r\n\r\n acceptOffer(offer: NoteTakerOffer): Promise {\r\n const endpointController = \"Offer\";\r\n const acceptOffer = `${this.baseApiUrl}api/${endpointController}`;\r\n return this.fetch(acceptOffer, {\r\n method: \"POST\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n body: JSON.stringify(offer),\r\n });\r\n }\r\n\r\n declineOffer(offerId: number): Promise {\r\n const endpointController = \"Offer\";\r\n const parameterName = \"offerId\";\r\n const parameterArgument = offerId;\r\n const acceptOffer = `${this.baseApiUrl}api/${endpointController}?${parameterName}=${parameterArgument}`;\r\n return this.fetch(acceptOffer, {\r\n method: \"DELETE\",\r\n });\r\n }\r\n}\r\n\r\nexport default new OfferService();\r\n","\r\nimport { Options, Vue } from \"vue-class-component\";\r\nimport Modal from \"@/components/Modal.vue\";\r\nimport DetailsRow from \"@/components/DetailsRow.vue\";\r\nimport CheckboxInput from \"@/components/Form/CheckboxInput.vue\";\r\nimport OfferService from \"@/services/offer-service\";\r\nimport { Constants } from \"@/constants/constants\";\r\nimport LuSpinner from \"@/components/Lu/LuSpinner.vue\";\r\nimport { PropType } from \"vue\";\r\n\r\n@Options({\r\n components: {\r\n Modal,\r\n DetailsRow,\r\n CheckboxInput,\r\n LuSpinner,\r\n },\r\n props: {\r\n /**\r\n * The id of the offer\r\n */\r\n offerId: {\r\n type: Number as PropType,\r\n required: true,\r\n },\r\n },\r\n data: () => ({\r\n /**\r\n * The note-taker offer to be accepted\r\n */\r\n offer: null,\r\n /**\r\n * Used to disable submit button\r\n */\r\n termsAccepted: false,\r\n /**\r\n * Used to disable terms accepted checkbox\r\n */\r\n haveClickedLink: false,\r\n /**\r\n * Used to show or hide spinner\r\n */\r\n isLoading: false,\r\n }),\r\n computed: {\r\n /**\r\n * Generates a URL to a PDF containing the terms and conditions\r\n */\r\n termsAndConditionsUrl(): string {\r\n const baseApiUrl = process.env.VUE_APP_BASE_API_URL;\r\n const apiFilesUrl = `${baseApiUrl}${Constants.NoteSupportFilesRelativeUrl}`;\r\n return this.$i18n.locale === \"sv\"\r\n ? `${apiFilesUrl}${Constants.NoteSupportTermsAndConditionsPdfSv}`\r\n : `${apiFilesUrl}${Constants.NoteSupportTermsAndConditionsPdfEn}`;\r\n },\r\n },\r\n methods: {\r\n getOffer(): void {\r\n if (this.$route.name === \"OfferResponse\" && this.$route.params.id) {\r\n const offerId = parseInt(this.$route.params.id);\r\n OfferService.getOfferById(offerId)\r\n .then((offer) => {\r\n if (offer?.confirmed || offer?.canceled) {\r\n return this.$router.push({\r\n name: \"NotFound\",\r\n });\r\n } else {\r\n this.offer = offer;\r\n if (\r\n !this.$store.state.currentUser.entitlements.includes(\r\n \"SuperAdmin\"\r\n )\r\n ) {\r\n this.checkIfCorrectUser();\r\n }\r\n }\r\n })\r\n .catch((statusCode) => {\r\n if (statusCode === 404) {\r\n return this.$router.push({\r\n name: \"NotFound\",\r\n });\r\n } else {\r\n alert(\"Something went wrong\");\r\n }\r\n });\r\n }\r\n },\r\n checkIfCorrectUser(): void {\r\n if (\r\n this.offer.noteTaker.luEduPersonPrimaryId !==\r\n this.$store.state.currentUser.luEduPersonPrimaryId\r\n ) {\r\n this.$router.push({\r\n name: \"Unauthorized\",\r\n });\r\n }\r\n },\r\n acceptOffer(): void {\r\n this.isLoading = true;\r\n OfferService.acceptOffer(this.offer).then((result: boolean) => {\r\n this.isLoading = false;\r\n if (result) {\r\n this.$refs[\"accepted-modal\"].open();\r\n } else {\r\n this.$refs[\"error-modal\"].open();\r\n }\r\n });\r\n },\r\n declineOffer(): void {\r\n this.isLoading = true;\r\n OfferService.declineOffer(this.offerId).then((result: boolean) => {\r\n this.isLoading = false;\r\n if (result) {\r\n this.$refs[\"declined-modal\"].open();\r\n } else {\r\n this.$refs[\"error-modal\"].open();\r\n }\r\n });\r\n },\r\n },\r\n async mounted() {\r\n this.getOffer();\r\n },\r\n watch: {\r\n $route() {\r\n this.getOffer();\r\n },\r\n },\r\n})\r\nexport default class NoteTakingRequest extends Vue {}\r\n","import { render } from \"./OfferResponse.vue?vue&type=template&id=400dbb68&ts=true\"\nimport script from \"./OfferResponse.vue?vue&type=script&lang=ts\"\nexport * from \"./OfferResponse.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 { toDisplayString as _toDisplayString, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, withCtx as _withCtx, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, renderSlot as _renderSlot, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-0948d347\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"detailsRow\" }\nconst _hoisted_2 = { class: \"detailsCaption\" }\nconst _hoisted_3 = {\n key: 0,\n class: \"detailsCol\"\n}\nconst _hoisted_4 = [\"innerHTML\"]\nconst _hoisted_5 = {\n key: 2,\n class: \"detailsCol\"\n}\nconst _hoisted_6 = { key: 0 }\nconst _hoisted_7 = { key: 1 }\nconst _hoisted_8 = { key: 0 }\nconst _hoisted_9 = { key: 1 }\nconst _hoisted_10 = {\n key: 3,\n class: \"detailsCol\"\n}\nconst _hoisted_11 = { key: 0 }\nconst _hoisted_12 = [\"innerHTML\"]\nconst _hoisted_13 = { key: 1 }\nconst _hoisted_14 = {\n key: 4,\n class: \"detailsCol\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_MandatoryFieldFlag = _resolveComponent(\"MandatoryFieldFlag\")!\n const _component_Badge = _resolveComponent(\"Badge\")!\n const _component_Tooltip = _resolveComponent(\"Tooltip\")!\n\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"div\", _hoisted_2, [\n _createTextVNode(_toDisplayString(_ctx.caption ? _ctx.$t(_ctx.caption) : \"\") + \" \", 1),\n (_ctx.required)\n ? (_openBlock(), _createBlock(_component_MandatoryFieldFlag, { key: 0 }))\n : _createCommentVNode(\"\", true)\n ]),\n (\r\n !_ctx.detailsAreHtml && !_ctx.showDetailsAsBadge && !_ctx.detailsAreList && _ctx.details\r\n )\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_3, _toDisplayString(_ctx.details), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.detailsAreHtml && !_ctx.showDetailsAsBadge && !_ctx.detailsAreList)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 1,\n class: \"detailsCol\",\n innerHTML: _ctx.details\n }, null, 8, _hoisted_4))\n : _createCommentVNode(\"\", true),\n (_ctx.showDetailsAsBadge)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, [\n (_ctx.showTooltip)\n ? (_openBlock(), _createBlock(_component_Tooltip, {\n key: 0,\n text: _ctx.tooltipText,\n bgColor: _ctx.tooltipColor,\n color: _ctx.tooltipTextColor\n }, {\n default: _withCtx(() => [\n _createVNode(_component_Badge, {\n rounded: true,\n backgroundColor: _ctx.badgeBackgroundColor\n }, {\n default: _withCtx(() => [\n (_ctx.showDetailsInBadge)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_6, _toDisplayString(_ctx.details), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_7, \" \"))\n ]),\n _: 1\n }, 8, [\"backgroundColor\"])\n ]),\n _: 1\n }, 8, [\"text\", \"bgColor\", \"color\"]))\n : (_openBlock(), _createBlock(_component_Badge, {\n key: 1,\n rounded: true,\n backgroundColor: _ctx.badgeBackgroundColor\n }, {\n default: _withCtx(() => [\n (_ctx.showDetailsInBadge)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_8, _toDisplayString(_ctx.details), 1))\n : (_openBlock(), _createElementBlock(\"span\", _hoisted_9, \" \"))\n ]),\n _: 1\n }, 8, [\"backgroundColor\"]))\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.detailsAreList)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_10, [\n (_ctx.detailsAreHtml)\n ? (_openBlock(), _createElementBlock(\"ul\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.details, (item) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n key: item,\n innerHTML: item\n }, null, 8, _hoisted_12))\n }), 128))\n ]))\n : (_openBlock(), _createElementBlock(\"ul\", _hoisted_13, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.details, (item) => {\n return (_openBlock(), _createElementBlock(\"li\", { key: item }, _toDisplayString(item), 1))\n }), 128))\n ]))\n ]))\n : _createCommentVNode(\"\", true),\n (!_ctx.details || !_ctx.details.length)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_14, [\n _renderSlot(_ctx.$slots, \"default\", {}, undefined, true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}","\r\nimport { PropType } from \"@vue/runtime-core\";\r\nimport { Options, Vue } from \"vue-class-component\";\r\nimport Badge from \"@/components/Badge.vue\";\r\nimport Tooltip from \"@/components/Tooltip.vue\";\r\nimport MandatoryFieldFlag from \"@/components/Form/MandatoryFieldFlag.vue\";\r\n\r\n@Options({\r\n components: {\r\n Badge,\r\n Tooltip,\r\n MandatoryFieldFlag,\r\n },\r\n props: {\r\n /**\r\n * The caption for the row\r\n */\r\n caption: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The info/details for the row\r\n */\r\n details: {\r\n type: [String, Array] as PropType>,\r\n required: false,\r\n },\r\n /**\r\n * If set to true the details are shown as a badge\r\n */\r\n showDetailsAsBadge: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If set to true the details are shown in the badge,\r\n * otherwise the badge can be used for example purely as a status color\r\n * showDetailsAsBadge must also be set to true\r\n */\r\n showDetailsInBadge: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * Background color of the badge\r\n */\r\n badgeBackgroundColor: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * If set to true the details are shown as a list\r\n */\r\n detailsAreList: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If set to true the details are rendered as a HTML\r\n */\r\n detailsAreHtml: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n showTooltip: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n tooltipText: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n tooltipColor: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n tooltipTextColor: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n required: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n },\r\n})\r\nexport default class DetailsRow extends Vue {}\r\n","import { render } from \"./DetailsRow.vue?vue&type=template&id=0948d347&scoped=true&ts=true\"\nimport script from \"./DetailsRow.vue?vue&type=script&lang=ts\"\nexport * from \"./DetailsRow.vue?vue&type=script&lang=ts\"\n\nimport \"./DetailsRow.vue?vue&type=style&index=0&id=0948d347&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-0948d347\"]])\n\nexport default __exports__"],"sourceRoot":""}