PageSourceSearch

https://www.aula.dk/static/js/5.3cb4d909204fa1b4a91b.js

js aula.dk collected 2026-09-24 09:31:38 UTC 322,195 bytes, 2 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{111:function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.CENTRAL="Central",e.MUNICIPALITY="Municipality",e.INSTITUTION="Institution",e.GROUP="Group"}(i||(i={}))},136:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({LOCKED:"locked",UNLOCKED:"unlocked",LOCKING:"locking",UNLOCKING:"unlocking",DEACTIVATED:"deactivated",ACTIVE:"active"})},145:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({NUMBER_1:1,NUMBER_2:2,NUMBER_3:3,NUMBER_11:11,NUMBER_26:26,NUMBER_27:27,NUMBER_32:32,NUMBER_36:36})},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i={IS_HOVERABLE:Symbol(),VERTICAL_ALIGN:Symbol(),COLLAPSE_DIRECTIONS:Symbol()}},209:function(e,t,n){"use strict";var i=n(47),s=n.n(i),r=n(1),o=n.n(r),a=n(5),l=n.n(a),u=n(6),d=n(0),c=n(79),f=n(145),_=n(49),p=n(8),T=n(67),h=n(13);function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m={props:{isSubmitted:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},question:{type:Object,default:null},profiles:{type:Array,default:function(){return[]}},profile:{type:Object,default:null},isRevisionHistoryViewMode:{type:Boolean,default:!1},isEditOnBehalfMode:{type:Boolean,default:!1},isMultipleProfiles:{type:Boolean,default:!0}},data:function(){return{additionalDataGrossListEnum:c.a}},computed:I(I({},Object(u.c)({isMobile:d.a.GET_IS_MOBILE})),{},{userProfileStore:function(){return Object(h.a)()},loggedInProfile:function(){return this.userProfileStore.institutionProfile}}),methods:{isAbleToEdit:function(e){return!this.isDisabled&&e},showQuestionYesNoMultipleProfiles:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=null;null!=n&&null!=n.target?(i=n.target.value,t.additionals[e].yesNoResponse=i):i=t.additionals[e].yesNoResponse;var s=0==this.profiles.filter((function(n){return n.institutionProfile.id!=t.institutionProfile.id&&null!=n.additionals[e]&&null!=n.additionals[e].yesNoResponse&&n.additionals[e].yesNoResponse!=i})).length;null!=this.question.response&&(this.question.responding=this.question.response),"yes"==i?(t.additionals[e].showOptionQuestionNo=!1,null!=t.additionals[e].optionalQuestionForYes?(this.question.showOptionQuestionYes=!0,t.additionals[e].showOptionQuestionYes=!0):this.question.showOptionQuestionYes=!1,s&&(this.question.showOptionQuestionNo=!1,t.additionals[e].showOptionQuestionNo=!1)):(t.additionals[e].showOptionQuestionYes=!1,null!=t.additionals[e].optionalQuestionForNo?(this.question.showOptionQuestionNo=!0,t.additionals[e].showOptionQuestionNo=!0):this.question.showOptionQuestionNo=!1,s&&(this.question.showOptionQuestionYes=!1,t.additionals[e].showOptionQuestionYes=!1)),t.additionals[e].responding=t.additionals[e].response},checkRequiredResponseForChild:function(e,t){return t.additionals[e.additionalDataId]&&!t.additionals[e.additionalDataId].canCurrentProfileRespondForChild||this.loggedInProfile.role!==p.a.EMPLOYEE||"stepOnboarding"===this.$route.name},"showYesNoQuestionWarning̣":function(e,t){var n=this.checkRequiredResponseForChild(e,t);return this.isSubmitted&&e.answerType==c.a.YESNO&&void 0!==t.additionals[e.additionalDataId]&&t.additionals[e.additionalDataId]&&t.additionals[e.additionalDataId].canCurrentProfileRespond&&n&&!t.additionals[e.additionalDataId].yesNoResponse},"showTextQuestionWarning̣":function(e,t){var n=this.checkRequiredResponseForChild(e,t);return this.isSubmitted&&void 0!==t.additionals[e.additionalDataId]&&t.additionals[e.additionalDataId]&&t.additionals[e.additionalDataId].canCurrentProfileRespond&&n&&!t.additionals[e.additionalDataId].response},showPhoneQuestionWarning:function(e,t){var n=this.checkRequiredResponseForChild(e,t);return this.isSubmitted&&void 0!==t.additionals[e.additionalDataId]&&t.additionals[e.additionalDataId]&&t.additionals[e.additionalDataId].canCurrentProfileRespond&&(!t.additionals[e.additionalDataId].response&&n||!T.a.isPhoneNumber(t.additionals[e.additionalDataId].response))}}},A=m,S=n(3),R=Object(S.a)(A,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"additional-questions"},[n("div",{class:{questions:e.isMultipleProfiles,"question-yesno":!e.isMultipleProfiles}},[n("div",{staticClass:"question"},[e._v("\n      "+e._s(e.question.additionalDataQuestion)+"\n    ")]),e._v(" "),e._l(e.profiles,(function(t,i){return n("div",{key:i,staticClass:"answer",class:{mobile:e.isMobile,textarea:e.question.answerType===e.additionalDataGrossListEnum.TEXT,"p-2":e.question.answerType!==e.additionalDataGrossListEnum.YESNO&&!e.isRevisionHistoryViewMode,"red-border":e.showYesNoQuestionWarning̣(e.question,t)}},[null!=t.additionals[e.question.additionalDataId]?[e.isRevisionHistoryViewMode?[t.additionals[e.question.additionalDataId].updaterName&&t.additionals[e.question.additionalDataId].updatedAt?[e._v("\n            "+e._s(e.$getText("ADDITIONAL_DATA_EDITED_BY"))+"\n            "),n("b",[e._v(e._s(t.additionals[e.question.additionalDataId].updaterName)+"\n              "),null!=t.additionals[e.question.additionalDataId].updaterInstitutionRole?[e._v("\n                ("+e._s(e.$getText("INSTITUTION_ROLE_"+t.additionals[e.question.additionalDataId].updaterInstitutionRole.replace("-","").toUpperCase()))+")")]:e._e(
1)],2),e._v("\n            "+e._s(e.$getText("ADDITIONAL_DATA_EDITED_AT"))+"\n            "),n("b",[e._v(e._s(t.additionals[e.question.additionalDataId].updatedAt))])]:e._e()]:[e.question.answerType==e.additionalDataGrossListEnum.YESNO?[e.isDisabled?n("div",{staticClass:"answer-text"},[e._v("\n              "+e._s(e.$getText(("ADDITIONAL_ANSWER_"+t.additionals[e.question.additionalDataId].yesNoResponse).toUpperCase()))+"\n            ")]):n("b-form-radio-group",{staticClass:"d-flex justify-content-between",attrs:{disabled:!e.isAbleToEdit(t.additionals[e.question.additionalDataId].canCurrentProfileRespond),required:""},on:{change:function(n){return e.showQuestionYesNoMultipleProfiles(e.question.additionalDataId,t,n)},input:function(n){return e.showQuestionYesNoMultipleProfiles(e.question.additionalDataId,t,n)}},model:{value:t.additionals[e.question.additionalDataId].yesNoResponse,callback:function(n){e.$set(t.additionals[e.question.additionalDataId],"yesNoResponse",n)},expression:"profile.additionals[question.additionalDataId].yesNoResponse"}},[n("b-form-radio",{staticClass:"checked-is-disabled",attrs:{value:"yes"}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:e.question.additionalDataQuestion,profileName:t.institutionProfile.name,institutionName:t.institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{staticClass:"checked-is-disabled",attrs:{value:"no"}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:e.question.additionalDataQuestion,profileName:t.institutionProfile.name,institutionName:t.institutionProfile.institutionName})))])])],1)]:e.question.answerType==e.additionalDataGrossListEnum.PHONENUMBER?[n("b-form-input",{staticClass:"answer-input",class:{"red-border":e.showPhoneQuestionWarning(e.question,t)},attrs:{disabled:!e.isAbleToEdit(t.additionals[e.question.additionalDataId].canCurrentProfileRespond),placeholder:e.$getText("PLACEHOLDER_PHONE"),type:"tel"},model:{value:t.additionals[e.question.additionalDataId].response,callback:function(n){e.$set(t.additionals[e.question.additionalDataId],"response",n)},expression:"profile.additionals[question.additionalDataId].response"}})]:[n("b-form-textarea",{staticClass:"answer-textarea-input",class:{"red-border":e.showTextQuestionWarning̣(e.question,t)},attrs:{"aria-label":e.question.additionalDataQuestion,disabled:!e.isAbleToEdit(t.additionals[e.question.additionalDataId].canCurrentProfileRespond),placeholder:e.$getText("PLACEHOLDER_TEXT"),rows:"3"},model:{value:t.additionals[e.question.additionalDataId].response,callback:function(n){e.$set(t.additionals[e.question.additionalDataId],"response",n)},expression:"profile.additionals[question.additionalDataId].response"}})]]]:e._e()],2)}))],2),e._v(" "),!e.isRevisionHistoryViewMode&&e.question.showOptionQuestionYes?n("div",{staticClass:"questions optional-question"},[n("div",{staticClass:"question optional-question"},[e._v("\n      "+e._s(e.question.optionalQuestionForYes)+"\n    ")]),e._v(" "),e._l(e.profiles,(function(t,i){return n("div",{key:i,staticClass:"answer p-2",class:{disabled:null!=t.additionals&&null!=t.additionals[e.question.additionalDataId]&&"yes"!=t.additionals[e.question.additionalDataId].yesNoResponse}},[null!=t.additionals[e.question.additionalDataId]&&"yes"==t.additionals[e.question.additionalDataId].yesNoResponse?n("b-form-textarea",{staticClass:"answer-textarea-input",attrs:{"aria-label":e.question.additionalDataQuestion,disabled:!e.isAbleToEdit(t.additionals[e.question.additionalDataId].canCurrentProfileRespond),placeholder:e.$getText("PLACEHOLDER_TEXT")},model:{value:t.additionals[e.question.additionalDataId].responding,callback:function(n){e.$set(t.additionals[e.question.additionalDataId],"responding",n)},expression:"profile.additionals[question.additionalDataId].responding"}}):e._e()],1)}))],2):e._e(),e._v(" "),!e.isRevisionHistoryViewMode&&e.question.showOption
1QuestionNo?n("div",{staticClass:"questions optional-question"},[n("div",{staticClass:"question optional-question"},[e._v("\n      "+e._s(e.question.optionalQuestionForNo)+"\n    ")]),e._v(" "),e._l(e.profiles,(function(t,i){return n("div",{key:i,staticClass:"answer p-2",class:{disabled:null!=t.additionals&&null!=t.additionals[e.question.additionalDataId]&&"no"!=t.additionals[e.question.additionalDataId].yesNoResponse}},[null!=t.additionals[e.question.additionalDataId]&&"no"==t.additionals[e.question.additionalDataId].yesNoResponse?n("b-form-textarea",{staticClass:"answer-textarea-input",attrs:{"aria-label":e.question.additionalDataQuestion,disabled:!e.isAbleToEdit(t.additionals[e.question.additionalDataId].canCurrentProfileRespond),placeholder:e.$getText("PLACEHOLDER_TEXT")},model:{value:t.additionals[e.question.additionalDataId].responding,callback:function(n){e.$set(t.additionals[e.question.additionalDataId],"responding",n)},expression:"profile.additionals[question.additionalDataId].responding"}}):e._e()],1)}))],2):e._e()])}),[],!1,null,"081bb6e4",null).exports,g=n(39),v=n.n(g),O={components:{AdditionalQuestionForProfiles:R},props:{multipleColumns:{type:Boolean,default:!0},isMobile:{type:Boolean,default:!1},profileIndex:{type:Number,default:0},isSubmitted:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},questions:{type:Array,default:function(){return[]}},profiles:{type:Array,default:function(){return[]}},profile:{type:Object,default:null},isRevisionHistoryViewMode:{type:Boolean,default:!1},isEditOnBehalfMode:{type:Boolean,default:!1}},data:function(){return{additionalDataGrossListEnum:c.a,additionalQuestions:[]}},watch:{questions:function(){this.additionalQuestions=v()(this.questions)}},mounted:function(){this.additionalQuestions=v()(this.questions)}},b=Object(S.a)(O,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"consent-content"},[e.multipleColumns?e._l(e.additionalQuestions,(function(t,i){return n("additional-question-for-profiles",{key:i,attrs:{question:t,profiles:e.profiles,"is-submitted":e.isSubmitted,"is-disabled":e.isDisabled,"is-revision-history-view-mode":e.isRevisionHistoryViewMode,"is-edit-on-behalf-mode":e.isEditOnBehalfMode}})})):e._l(e.profile.additionals,(function(t,i){return n("additional-question-for-profiles",{key:i,attrs:{question:t,profiles:[e.profile],"is-submitted":e.isSubmitted,"is-disabled":e.isDisabled,"is-multiple-profiles":!1,"is-revision-history-view-mode":e.isRevisionHistoryViewMode,"is-edit-on-behalf-mode":e.isEditOnBehalfMode}})}))],2)}),[],!1,null,"d1105bd8",null).exports,D=n(4),N=n(75),C=n.n(N),y={components:{AulaInfoTrigger:n(128).a},props:{multipleColumns:{type:Boolean,default:!0},isMobile:{type:Boolean,default:!1},profileIndex:{type:Number,default:0},isDisabled:{type:Boolean,default:!1},isSubmitted:{type:Boolean,default:!1}},data:function(){return{Vue:D.default,additionalDataGrossListEnum:c.a,consentNumber:f.a,consentAnswerType:_.a}},methods:{getConsentHelpBoxUniqueId:function(){return"consent-".concat(C()())},getReplaceText:function(e,t,n){return{question:e+" "+this.$getText(t),profileName:n.name||null,institutionName:n.institutionName||null}},getAulaInfoArea:function(e){switch(e){case 29:return"SHARED_CONTACT_INFORMATION_PERSONAL";case 15:return"SHARED_CONTACT_INFORMATION_CHILD";default:return null}}}},P=Object(S.a)(y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"consent-content"},[e.multipleColumns?[e._l(e.$parent.consents,(function(t,i){return[t.editable?[t.allowedAnswers&&t.allowedAnswers.includes(e.consentAnswerType.NOT_AT_ALL)?[n("div",{key:"mainQuestion"+i,staticClass:"questions complex-question"},[n("div",{staticClass:"question"},[t.consentId!=e.consentNumber.NUMBER_36?[e._v("\n                "+e._s(t.consentDescription)+"\n              ")]:[e._v("\n                "+e._s(t.consentDescription)+"\n                "),n("br"),e._v("\n                "+e._s(e.$getText("CONSENT_TIME_SPAN"))+":\n                "),null!==t.fromDate?[e._v("\n                  "+e._s(e.$getText("CONSENT_FROM"))+"\n                  "+e._s(e.moment(t.fromDate).format("DD-MM-YYYY"))+"\n                ")]:e._e(
1),e._v(" "),null!==t.toDate?[e._v("\n                  "+e._s(e.$getText("CONSENT_TO"))+"\n                  "+e._s(e.moment(t.toDate).format("DD-MM-YYYY"))+"\n                ")]:e._e()],e._v(" "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}):e._e()],2),e._v(" "),e._l(e.$parent.profiles,(function(e,t){return n("div",{key:t,staticClass:"answer"})}))],2),e._v(" "),e.$parent.profiles.filter((function(n){return null!=n.consents[t.viewOrder]&&n.consents[t.viewOrder].allowedAnswers.includes(e.consentAnswerType.CLASS_OR_STUE)})).length>0?n("div",{key:"subQuestion1-"+i,staticClass:"questions complex-question"},[n("div",{staticClass:"question sub"},[e._v("\n              "+e._s(e.$getText("SHARING_CONSENT_CLASS_OR_DAYCARE_ROOM"))+"\n            ")]),e._v(" "),e._l(e.$parent.profiles,(function(i,s){return[null!=i.consents[t.viewOrder]&&i.consents[t.viewOrder].editable&&i.consents[t.viewOrder].allowedAnswers.includes(e.consentAnswerType.CLASS_OR_STUE)?[e.isDisabled?n("div",{key:"mainAnswer"+s,staticClass:"answer anwser-consent-complex"},[n("div",{staticClass:"answer-text complex-answer"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+e.$parent.profiles[s].consents[t.viewOrder].answerSharing1).toUpperCase()))+"\n                  ")])]):n("div",{key:"subAnswer"+s,staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&null==i.consents[t.viewOrder].answerSharing1}},[n("b-form-radio-group",{staticClass:"complex-answer",nativeOn:{change:function(n){return e.$parent.responseComplexConsent(n,t.viewOrder,s,1)}},model:{value:e.$parent.profiles[s].consents[t.viewOrder].answerSharing1,callback:function(n){e.$set(e.$parent.profiles[s].consents[t.viewOrder],"answerSharing1",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].answerSharing1"}},[n("b-form-radio",{attrs:{value:!0}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",e.getReplaceText(t.consentDescription,"SHARING_CONSENT_CLASS_OR_DAYCARE_ROOM",i.institutionProfile))))])]),e._v(" "),n("b-form-radio",{attrs:{value:!1}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",e.getReplaceText(t.consentDescription,"SHARING_CONSENT_CLASS_OR_DAYCARE_ROOM",i.institutionProfile))))])])],1)],1)]:[n("div",{key:s,staticClass:"answer"})]]}))],2):e._e(),e._v(" "),e.$parent.profiles.filter((function(n){return null!=n.consents[t.viewOrder]&&n.consents[t.viewOrder].allowedAnswers.includes(e.consentAnswerType.YEAR_AND_SFO)})).length>0?n("div",{key:"subQuestion2-"+i,staticClass:"questions complex-question"},[n("div",{staticClass:"question sub"},[e._v("\n              "+e._s(e.$getText("SHARING_CONSENT_YEAR_AND_SFO"))+"\n            ")]),e._v(" "),e._l(e.$parent.profiles,(function(i,s){return[null!=i.consents[t.viewOrder]&&i.consents[t.viewOrder].editable&&i.consents[t.viewOrder].allowedAnswers.includes(e.consentAnswerType.YEAR_AND_SFO)?[e.isDisabled?n("div",{key:"mainAnswer"+s,staticClass:"answer anwser-consent-complex"},[n("div",{staticClass:"answer-text complex-answer"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+e.$parent.profiles[s].consents[t.viewOrder].answerSharing2).toUpperCase()))+"\n                  ")])]):n("div",{key:"subAnswer"+s,staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&null==i.consents[t.viewOrder].answerSharing2}},[n("b-form-radio-group",{staticClass:"complex-answer",nativeOn:{change:function(n){return e.$parent.responseComplexConsent(n,t.viewOrder,s,2)}},model:{value:e.$parent.profiles[s].consents[t.viewOrder].answerSharing2,callback:function(n){e.$set(e.$parent.profiles[s].consents[t.viewOrder],"answerSharing2",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].answerSharing2"}},[n("b-form-radio",{attrs:{value:!0}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",e.getReplaceText(t.consentDescription,"SHARING_CONSENT_YEAR_AND_SFO",i.institutionProfile))))])]),e._v(" "),n("b-form-radio",{attrs:{value:!1}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",e.getReplaceText(t.consentDescription,"SHARING_CONSENT_YEAR_AND_SFO",i.institutionProfile))))])])],1
1)],1)]:[n("div",{key:s,staticClass:"answer anwser-consent-complex"})]]}))],2):e._e(),e._v(" "),e.$parent.profiles.filter((function(n){return null!=n.consents[t.viewOrder]&&n.consents[t.viewOrder].allowedAnswers.includes(e.consentAnswerType.INSTITUTION)})).length>0?n("div",{key:"subQuestion3-"+i,staticClass:"questions"},[n("div",{staticClass:"question sub"},[e._v("\n              "+e._s(e.$getText("SHARING_CONSENT_INSTITUTION"))+"\n            ")]),e._v(" "),e._l(e.$parent.profiles,(function(i,s){return[null!=i.consents[t.viewOrder]&&i.consents[t.viewOrder].editable&&i.consents[t.viewOrder].allowedAnswers.includes(e.consentAnswerType.INSTITUTION)?[e.isDisabled?n("div",{key:"mainAnswer3"+s,staticClass:"answer anwser-consent-complex"},[n("div",{staticClass:"answer-text complex-answer"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+e.$parent.profiles[s].consents[t.viewOrder].answerSharing3).toUpperCase()))+"\n                  ")])]):n("div",{key:"subAnswer3"+s,staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&null==i.consents[t.viewOrder].answerSharing3}},[n("b-form-radio-group",{staticClass:"complex-answer",nativeOn:{change:function(n){return e.$parent.responseComplexConsent(n,t.viewOrder,s,3)}},model:{value:e.$parent.profiles[s].consents[t.viewOrder].answerSharing3,callback:function(n){e.$set(e.$parent.profiles[s].consents[t.viewOrder],"answerSharing3",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].answerSharing3"}},[n("b-form-radio",{attrs:{value:!0}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",e.getReplaceText(t.consentDescription,"SHARING_CONSENT_INSTITUTION",i.institutionProfile))))])]),e._v(" "),n("b-form-radio",{attrs:{value:!1}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",e.getReplaceText(t.consentDescription,"SHARING_CONSENT_INSTITUTION",i.institutionProfile))))])])],1)],1)]:[n("div",{key:s,staticClass:"answer anwser-consent-complex"})]]}))],2):e._e()]:n("div",{key:"subQuestion4-"+i,staticClass:"questions"},[n("div",{staticClass:"question"},[t.consentId!=e.consentNumber.NUMBER_36?[e._v("\n              "+e._s(t.consentDescription)+"\n            ")]:[e._v("\n              "+e._s(t.consentDescription)+"\n              "),n("i",[n("strong",[e._v(e._s(e.$getText("COMPLEX_CONSENT_"+t.allowedAnswers[0].toUpperCase()))+" ")]),e._v(":")]),e._v(" "),n("br"),e._v("\n              "+e._s(e.$getText("CONSENT_TIME_SPAN"))+":\n              "),null!==t.fromDate?[e._v("\n                "+e._s(e.$getText("CONSENT_FROM"))+"\n                "+e._s(e.moment(t.fromDate).format("DD-MM-YYYY"))+"\n              ")]:e._e(),e._v(" "),null!==t.toDate?[e._v("\n                "+e._s(e.$getText("CONSENT_TO"))+"\n                "+e._s(e.moment(t.toDate).format("DD-MM-YYYY"))+"\n              ")]:e._e()],e._v(" "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}):e._e()],2),e._v(" "),e._l(e.$parent.profiles,(function(i,s){return[n("div",{key:s,staticClass:"answer",class:{"anwser-consent-complex":null!=i.consents[t.viewOrder]&&i.consents[t.viewOrder].allowedAnswers.length>2,"red-border":e.isSubmitted&&null!=i.consents[t.viewOrder]&&!i.consents[t.viewOrder].isValid}},[null!=i.consents[t.viewOrder]&&i.consents[t.viewOrder].editable?[e.isDisabled?[n("div",{staticClass:"answer-text"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+(e.$parent.profiles[s].consents[t.viewOrder].consentResponseAnswer==e.$parent.profiles[s].consents[t.viewOrder].allowedAnswers[0])).toUpperCase()))+"\n                  ")])]:[n("b-form-radio-group",{attrs:{disabled:e.isDisabled,required:""},nativeOn:{change:function(n){e.$parent.profiles[s].consents[t.viewOrder].consentId==e.consentNumber.NUMBER_2&&e.$parent.changeConsentNo2(n,s)}},model:{value:e.$parent.profiles[s].consents[t.viewOrder].consentResponseAnswer,callback:function(n){e.$set(e.$parent.profiles[s].consents[t.viewOrder],"consentResponseAnswer",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].consentResponseAnswer"}},[n("b-form-radio",{attrs:{value:e.$parent.profiles[s].consents[t.viewOrder].allowedAnswers[0]}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:t.consentDescription,profileName:i.institutionProfile.name,institutionName:i.institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:e.$parent.profiles[s].consents[t.viewOrder].allowedAnswers[1]}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:i.institutionProfile.name,institutionName:i.institutionProfile.institutionName}
1)))])])],1)]]:e._e()],2)]}))],2)]:e._e()]}))]:[e._l(e.$parent.profiles[e.profileIndex].consents,(function(t,i){return[t.editable?[t.allowedAnswers&&t.allowedAnswers.includes(e.consentAnswerType.NOT_AT_ALL)?[n("div",{key:"mainQuestion"+i,staticClass:"question-yesno complex-question"},[n("div",{staticClass:"question"},[e._v("\n              "+e._s(t.consentDescription)+"\n              "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}):e._e()],1),e._v(" "),n("div",{staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile}})]),e._v(" "),t.allowedAnswers.includes(e.consentAnswerType.CLASS_OR_STUE)?n("div",{key:"subQuestion1"+i,staticClass:"question-yesno complex-question"},[n("div",{staticClass:"question sub"},[e._v("\n              "+e._s(e.$getText("SHARING_CONSENT_CLASS_OR_DAYCARE_ROOM"))+"\n            ")]),e._v(" "),n("div",{staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&null!=e.$parent.profiles[e.profileIndex].consents[t.viewOrder]&&!e.$parent.profiles[e.profileIndex].consents[t.viewOrder].isValid}},[n("div",{staticClass:"complex-answers",class:{mobile:e.isMobile}},[e.isDisabled?[n("div",{staticClass:"answer-text complex-answer"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+e.$parent.profiles[e.profileIndex].consents[t.viewOrder].answerSharing1).toUpperCase()))+"\n                  ")])]:[n("div",{staticClass:"complex-answer",class:{mobile:e.isMobile}},[n("b-form-radio-group",{attrs:{disabled:e.isDisabled,required:""},nativeOn:{change:function(n){return e.$parent.responseComplexConsent(n,t.viewOrder,e.profileIndex,1)}},model:{value:e.$parent.profiles[e.profileIndex].consents[t.viewOrder].answerSharing1,callback:function(n){e.$set(e.$parent.profiles[e.profileIndex].consents[t.viewOrder],"answerSharing1",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].answerSharing1"}},[n("b-form-radio",{attrs:{value:!0}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:!1,"aria-label":e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])])],1)],1)]],2)])]):e._e(),e._v(" "),t.allowedAnswers.includes(e.consentAnswerType.YEAR_AND_SFO)?n("div",{key:"subQuestion2"+i,staticClass:"question-yesno complex-question"},[n("div",{staticClass:"question sub"},[e._v("\n              "+e._s(e.$getText("SHARING_CONSENT_YEAR_AND_SFO"))+"\n            ")]),e._v(" "),n("div",{staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&null!=e.$parent.profiles[e.profileIndex].consents[t.viewOrder]&&!e.$parent.profiles[e.profileIndex].consents[t.viewOrder].isValid}},[n("div",{staticClass:"complex-answers",class:{mobile:e.isMobile}},[e.isDisabled?[n("div",{staticClass:"answer-text complex-answer"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+e.$parent.profiles[e.profileIndex].consents[t.viewOrder].answerSharing2).toUpperCase()))+"\n                  ")])]:[n("div",{staticClass:"complex-answer",class:{mobile:e.isMobile}},[n("b-form-radio-group",{attrs:{disabled:e.isDisabled,required:""},nativeOn:{change:function(n){return e.$parent.responseComplexConsent(n,t.viewOrder,e.profileIndex,2)}},model:{value:e.$parent.profiles[e.profileIndex].consents[t.viewOrder].answerSharing2,callback:function(n){e.$set(e.$parent.profiles[e.profileIndex].consents[t.viewOrder],"answerSharing2",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].answerSharing2"}},[n("b-form-radio",{attrs:{value:!0}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:!1}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName}
1)))])])],1)],1)]],2)])]):e._e(),e._v(" "),t.allowedAnswers.includes(e.consentAnswerType.INSTITUTION)?n("div",{key:"subQuestion3"+i,staticClass:"question-yesno"},[n("div",{staticClass:"question sub"},[e._v("\n              "+e._s(e.$getText("SHARING_CONSENT_INSTITUTION"))+"\n            ")]),e._v(" "),n("div",{staticClass:"answer anwser-consent-complex",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&null!=e.$parent.profiles[e.profileIndex].consents[t.viewOrder]&&!e.$parent.profiles[e.profileIndex].consents[t.viewOrder].isValid}},[n("div",{staticClass:"complex-answers",class:{mobile:e.isMobile}},[e.isDisabled?[n("div",{staticClass:"answer-text complex-answer"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+e.$parent.profiles[e.profileIndex].consents[t.viewOrder].answerSharing3).toUpperCase()))+"\n                  ")])]:[n("div",{staticClass:"complex-answer",class:{mobile:e.isMobile}},[n("b-form-radio-group",{attrs:{disabled:e.isDisabled,required:""},nativeOn:{change:function(n){return e.$parent.responseComplexConsent(n,t.viewOrder,e.profileIndex,3)}},model:{value:e.$parent.profiles[e.profileIndex].consents[t.viewOrder].answerSharing3,callback:function(n){e.$set(e.$parent.profiles[e.profileIndex].consents[t.viewOrder],"answerSharing3",n)},expression:"$parent.profiles[profileIndex].consents[consent.viewOrder].answerSharing3"}},[n("b-form-radio",{attrs:{value:!0}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:!1}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])])],1)],1)]],2)])]):e._e(),e._v(" "),e.isMobile?n("hr",{key:"line"+i}):e._e()]:t.allowedAnswers&&!t.allowedAnswers.includes(e.consentAnswerType.NOT_AT_ALL)?[e.$parent.consentForLeavingInstitution.includes(t.consentId)?[n("div",{key:i,staticClass:"question-yesno"},[t.consentId==e.consentNumber.NUMBER_36?n("div",{staticClass:"question"},[e._v("\n                "+e._s(t.consentDescription)+"\n                "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}):e._e(),e._v(" "),n("i",[n("strong",[e._v(e._s(e.$getText("COMPLEX_CONSENT_"+t.allowedAnswers[0].toUpperCase())))]),e._v(":")]),e._v(" "),n("br"),e._v("\n                "+e._s(e.$getText("CONSENT_TIME_SPAN"))+":\n                "),null!==t.fromDate?[e._v("\n                  "+e._s(e.$getText("CONSENT_FROM"))+"\n                  "+e._s(e.moment(t.fromDate).format("DD-MM-YYYY"))+"\n                ")]:e._e(),e._v(" "),null!==t.toDate?[e._v("\n                  "+e._s(e.$getText("CONSENT_TO"))+"\n                  "+e._s(e.moment(t.toDate).format("DD-MM-YYYY"))+"\n                ")]:e._e(),e._v(" "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}):e._e()],2):n("div",{staticClass:"question"},[e._v("\n                "+e._s(t.consentDescription)+"\n                "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}
1):e._e()],1),e._v(" "),n("div",{staticClass:"answer",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&!t.consentResponseAnswer}},[e.isDisabled?[n("div",{staticClass:"answer-text"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+(t.consentResponseAnswer==t.allowedAnswers[0])).toUpperCase()))+"\n                  ")])]:[n("b-form-radio-group",{attrs:{disabled:e.isDisabled,required:""},nativeOn:{change:function(n){t.consentId==e.consentNumber.NUMBER_2&&e.$parent.changeConsentNo2(n,e.profileIndex)}},model:{value:t.consentResponseAnswer,callback:function(n){e.$set(t,"consentResponseAnswer",n)},expression:"consent.consentResponseAnswer"}},[n("b-form-radio",{attrs:{value:t.allowedAnswers[0]}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:t.allowedAnswers[1]}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])])],1)]],2)]),e._v(" "),e.isMobile?n("hr",{key:"line"+i}):e._e()]:[n("div",{key:i,staticClass:"question-yesno"},[n("div",{staticClass:"question"},[e._v("\n                "+e._s(t.consentDescription)+"\n                "),null!=e.getAulaInfoArea(t.consentId)?n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:e.getAulaInfoArea(t.consentId)}}):null!=e.$getText("CONSENT_HELPTEXT_"+t.consentId)?n("help-box",{attrs:{id:e.getConsentHelpBoxUniqueId(),"is-html-content":"",title:"",body:e.$getText("CONSENT_HELPTEXT_"+t.consentId)}}):e._e()],1),e._v(" "),n("div",{staticClass:"answer",class:{mobile:e.isMobile,"red-border":e.isSubmitted&&!t.consentResponseAnswer}},[e.isDisabled?[n("div",{staticClass:"answer-text"},[e._v("\n                    "+e._s(e.$getText(("CONSENT_ANSWER_"+(t.consentResponseAnswer==t.allowedAnswers[0])).toUpperCase()))+"\n                  ")])]:[n("b-form-radio-group",{attrs:{disabled:e.isDisabled},model:{value:t.consentResponseAnswer,callback:function(n){e.$set(t,"consentResponseAnswer",n)},expression:"consent.consentResponseAnswer"}},[n("b-form-radio",{attrs:{value:t.allowedAnswers[0]}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_YES",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:e.$parent.profiles[e.profileIndex].consents[t.viewOrder].allowedAnswers[1]}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),e._v(" "),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHECK_NO",{question:t.consentDescription,profileName:e.$parent.profiles[e.profileIndex].institutionProfile.name,institutionName:e.$parent.profiles[e.profileIndex].institutionProfile.institutionName})))])])],1)]],2)]),e._v(" "),e.isMobile?n("hr",{key:"line"+i}):e._e()]]:e._e()]:e._e()]}))]],2)}),[],!1,null,"162e47e8",null).exports,L=Object.freeze({PENDING:"pending",ACTIVE:"active",DEACTIVE:"deactive"}),w=n(48),U=n.n(w),M=n(52),k=n(32);function x(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return H(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function H(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?$(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F={props:{isLoading:{type:Boolean,default:!1},data:{type:Array,default:null},type:{type:String,default:"consent"},isDisabled:{type:Boolean,default:!1},isRevisionHistoryViewMode:{type:Boolean,default:!1},isEditOnBehalfMode:{type:Boolean,default:!1},showTitle:{type:Boolean,default:!0},showSubmit:{type:Boolean,default:!1}},data:function(){return{windowWidth:window.innerWidth,profiles:[],originalDataProfiles:[],additionalDataResponses:this.additionalData,showWarning:!0,profilesHaveBeenCloned:!1,additionalDataGrossListEnum:c.a,additionalData:[],consentNumber:f.a,consentAnswerType:_.a,portalRoles:p.a,questions:[],consents:[],consentData:[],consentForLeavingInstitution:[f.a.NUMBER_2,f.a.NUMBER_27,f.a.NUMBER_36],isSubmitted:!1,respondedQuestions:[],isUpdating:!1}},computed:B(B({},Object(u.c)({isMobile:d.a.GET_IS_MOBILE})),{},{userProfileStore:function(){return Object(h.a)()},loggedInProfile:function(){return this.userProfileStore.institutionProfile},maxProfileOnTable:function(){return this.windowWidth>992?3:this.windowWidth>768?2:1},showMultiProfileTable:function(){return this.profiles&&this.profiles.length<=this.maxProfileOnTable},getProfiles:function(){return this.profiles},getQuestions:function(){return this.questions}}),watch:{profiles:{handler:function(){"consent"==this.type?(this.showWarning=this.validateConsentAnswered(),this.populateSelectAll()):(this.showWarning=this.validateAdditionalAnswered(),this.populateSelectAll()),this.profilesHaveBeenCloned||(this.originalDataProfiles=v()(this.profiles),this.profilesHaveBeenCloned=!0)},deep:!0},data:{handler:function(e,t){U()(e,t)||("consent"==this.type?this.initConsent():this.initAdditionalData())},deep:!0},showWarning:function(e){this.$emit("showWarning",e)},isRevisionHistoryViewMode:function(){this.initAdditionalData()}},mounted:function(){var e=this,t=this,n=setInterval((function(){null!=t.data&&("consent"==t.type?t.initConsent():t.initAdditionalData(),clearInterval(n))}),100);window.addEventListener("resize",(function(){e.windowWidth=window.innerWidth}))},methods:B(B({},Object(u.b)({updateAdditionalData:d.a.UPDATE_ADDITIONAL_DATA_ON_BEHALF})),{},{emitCancel:function(){this.$emit("cancel")},handleSaveClicked:function(){var e=this;if(this.validateAdditionalAnswered(!0)){var t=this.submitAdditionalTableOnBehalf();this.isUpdating=!0,this.updateAdditionalData(t).then((function(){e.isUpdating=!1,e.$emit("saved")}))}},resetTable:function(){"consent"==this.type?(this.consentData=this.data,this.profiles=v()(this.originalDataProfiles)):this.initAdditionalData()},isTableEdited:function(){return!U()(this.originalDataProfiles,this.profiles)},declinedSpecialQuestionEdited:function(){var e=this,t=[];return"consent"==this.type&&function(){var n,i=0,s=x(e.profiles);try{var r=function(){var s=n.value,r=function(n){!e.consentForLeavingInstitution.includes(s.consents[n].consentId)||s.consents[n].consentResponseAnswer!=s.consents[n].allowedAnswers[1]||e.originalDataProfiles[i].consents[n].consentResponseAnswer==_.a.NOT_AT_ALL||e.originalDataProfiles[i].consents[n].consentResponseAnswer!=s.consents[n].allowedAnswers[0]&&null!=e.originalDataProfiles[i].consents[n].consentResponseAnswer||0!=t.filter((function(t){return t.consentId==s.consents[n].consentId&&t.previousAnswer==e.originalDataProfiles[i].consents[n].consentResponseAnswer})).length||s.consents[n].consentId==f.a.NUMBER_2&&e.$route.path.includes("onboarding")||t.push({consentId:s.consents[n].consentId,previousAnswer:e.originalDataProfiles[i].consents[n].consentResponseAnswer})};for(var o in s.consents)r(o);i++};for(s.s();!(n=s.n()).done;)r()}catch(e){s.e(e)}finally{s.f()}}(),t},filterProfiles:function(){var e=this,t=[];this.respondedQuestions=[];var n,i=x(this.additionalData);try{var s=function(){var i,s=n.value,r={},o=!1,a=[],u=x(s.additionalDataResponses);try{for(u.s();!(i=u.n()).done;){var d=i.value,f=null,_=null;d.answerType==c.a.YESNO&&(o=!0,null!=d.yesNoResponse&&(a.push(d.additionalDataId),f=1==d.yesNoResponse?"yes":"no",_=d.response)),r[d.additionalDataId]={additionalDataId:d.additionalDataId,additionalDataResponseId:d.additionalDataResponseId,additionalDataQuestion:d.additionalDataQuestion,optionalQuestionForNo:d.optionalQuestionForNo,optionalQuestionForYes:d.optionalQuestionForYes,response:d.response,responding:_,answerType:d.answerType,yesNoResponse:f,updatedAt:null!=d.updatedAt?l()(d.updatedAt).format("DD MMM. YYYY"):null,updaterName:d.updaterName,updaterInstitutionRole:d.updaterInstitutionRole,canCurrentProfileRespond:d.canCurrentProfileRespond,canCurrentProfileRespondForChild:d.canCurrentProfileRespondForChild,isValid:!0}}}catch(e){u.e(e)}finally{u.f()}a.length>0&&e.respondedQuestions.push({institutionProfileId:s.institutionProfile.id,questionIds:a});var p=t.findIndex((function(e){return e.institutionProfile.id==s.institutionProfile.id}));p>-1?(t[p].additionals.concat(r),o&&(t[p].isCheckAllShown=o)):e.isRevisionHistoryViewMode?s.institutionProfile.role==e.portalRoles.CHILD&&t.push({institutionProfile:s.institutionProfile,additionals:r,selectAll:null,isCheckAllShown:o}):t.push({institutionProfile:s.institutionProfile,additionals:r,selectAll:null,isCheckAllShown:o})};for(i.s();!(n=i.n()).done;)s()}catch(e){i.e(e)}finally{i.f()}return t},checkAvailableConsents:function(e){return e.length>0&&e.filter((function(e){return e.editable})).length>0},calculateViewOrderConsent:function(e,t){if(0==t.length)return 1;var n=t.filter((function(t){return t.viewOrder.includes(e)})).sort((function(e,t){return Number(e.viewOrder)<Number(t.viewOrder)}
1));if(0==n.length)return 1;var i=n[0].viewOrder.split("."),s=i[1]?i[1]:0;return Number(s)+1},filterProfileConsent:function(){var e,t=[],n=x(this.consentData);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(this.checkAvailableConsents(i.consentResponses)){null==i.institutionProfile.institutionName&&(i.institutionProfile.institutionName=i.institutionProfile.institution.institutionName),null==i.institutionProfile.name&&(i.institutionProfile.name=i.institutionProfile.firstName+" "+i.institutionProfile.lastName);var s,r={institutionProfile:i.institutionProfile,consents:{},selectAll:null,isCheckAllShown:!0},o=x(i.consentResponses);try{for(o.s();!(s=o.n()).done;){var a=s.value,l={consentId:a.consentId,answerSharing1:null,answerSharing2:null,answerSharing3:null,allowedAnswers:a.allowedAnswers,consentResponseAnswer:a.consentResponseAnswer,fromDate:a.fromDate,viewOrder:a.viewOrder,toDate:a.toDate,consentDescription:a.consentDescription,isValid:!0,editable:a.editable};if(a.allowedAnswers.includes(_.a.NOT_AT_ALL))switch(a.consentResponseAnswer){case _.a.CLASS_OR_STUE:l.answerSharing1=!0,l.answerSharing2=!1,l.answerSharing3=!1;break;case _.a.YEAR_AND_SFO:l.answerSharing1=!0,l.answerSharing2=!0,l.answerSharing3=!1;break;case _.a.INSTITUTION:l.answerSharing1=!0,l.answerSharing2=!0,l.answerSharing3=!0;break;case _.a.NOT_AT_ALL:l.answerSharing1=!1,l.answerSharing2=!1,l.answerSharing3=!1;break;default:l.answerSharing1=null,l.answerSharing2=null,l.answerSharing3=null}r.consents[a.viewOrder]=l}}catch(e){o.e(e)}finally{o.f()}t.push(r)}}}catch(e){n.e(e)}finally{n.f()}return t},checkedAll:function(e,t){var n="on"!==t.target.value?t.target.value:this.profiles[e].selectAll;if("consent"==this.type)for(var i=0,s=Object.keys(this.profiles[e].consents);i<s.length;i++){var r=s[i];if(this.profiles[e].consents[r].allowedAnswers)if(this.profiles[e].consents[r].allowedAnswers.includes(_.a.NOT_AT_ALL)){var o="yes"==n;this.profiles[e].consents[r].answerSharing1=o,this.profiles[e].consents[r].answerSharing2=o,this.profiles[e].consents[r].answerSharing3=o;var a=this.profiles[e].consents[r];a.consentResponseAnswer="yes"==n?this.applyValidApproveAnswer(a.allowedAnswers):_.a.NOT_AT_ALL}else this.profiles[e].consents[r].consentResponseAnswer="yes"==n?this.profiles[e].consents[r].allowedAnswers[0]:this.profiles[e].consents[r].allowedAnswers[1],this.profiles[e].consents[r].consentId==f.a.NUMBER_2&&this.reComputeProfileConsentList(e,this.profiles[e].consents[r].consentResponseAnswer)}else for(var l=0,u=Object.keys(this.profiles[e].additionals);l<u.length;l++){var d=u[l];this.profiles[e].additionals[d].answerType==c.a.YESNO&&(this.profiles[e].additionals[d].yesNoResponse=n,null==this.profiles[e].additionals[d].optionalQuestionForNo&&null==this.profiles[e].additionals[d].optionalQuestionForYes||this.showOptionQuestionYesNo(d,e,this.profiles[e].id))}},applyValidApproveAnswer:function(e){for(var t=[_.a.INSTITUTION,_.a.YEAR_AND_SFO,_.a.CLASS_OR_STUE,_.a.ACCEPTED,_.a.YES],n=0;n<t.length;n++){var i=t[n];if(e.includes(i))return i}return null},populateSelectAll:function(){if("consent"==this.type){var e,t=x(this.profiles);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=0,s=0,r=0;for(var o in n.consents)if(n.consents[o].editable){if(r++,!n.consents[o].allowedAnswers.includes(n.consents[o].consentResponseAnswer))break;if(2==n.consents[o].allowedAnswers.length)n.consents[o].consentResponseAnswer==n.consents[o].allowedAnswers[0]?i++:s++;else if(n.consents[o].consentResponseAnswer==_.a.INSTITUTION)i++;else{if(n.consents[o].consentResponseAnswer!=_.a.NOT_AT_ALL)break;s++}}n.selectAll=i==r?_.a.YES:s==r?_.a.NO:null}}catch(e){t.e(e)}finally{t.f()}}else{var a,l=x(this.profiles);try{for(l.s();!(a=l.n()).done;){var u=a.value,d=0,f=0,p=0;for(var T in u.additionals)if(u.additionals[T].answerType==c.a.YESNO)if(p++,u.additionals[T].yesNoResponse==_.a.YES)d++;else{if(u.additionals[T].yesNoResponse!=_.a.NO)break;f++}u.selectAll=d==p?_.a.YES:f==p?_.a.NO:null}}catch(e){l.e(e)}finally{l.f()}}},changeConsentNo2:function(e,t){var n=null;n="on"==e.target.value?e.target.checked?_.a.ACCEPTED:_.a.DECLINED:e.target.value,this.reComputeProfileConsentList(t,n)},reComputeProfileConsentList:function(e,t){var n=[3,11,26,32];for(var i in this.profiles[e].consents)n.includes(this.profiles[e].consents[i].consentId)&&(t==_.a.DECLINED?(this.profiles[e].consents[i].editable=!1,2==this.profiles[e].consents[i].allowedAnswers.length?this.profiles[e].consents[i].consentResponseAnswer=_.a.DECLINED:(this.profiles[e].consents[i].consentResponseAnswer=_.a.NOT_AT_ALL,this.profiles[e].consents[i].answerSharing1=!1,this.profiles[e].consents[i].answerSharing2=!1,this.profiles[e].consents[i].answerSharing3=!1)):this.profiles[e].consents[i].editable=!0);this.reComputeConsentList()},reComputeConsentList:function(){var e,t=x(this.consents);try{for(t.s();!(e=t.n()).done;){var n,i=e.value,s=0,r=x(this.profiles);try{for(r.s();!(n=r.n()).done;){var o=n.value;for(var a in o.consents)a==i.viewOrder&&(s+=o.consents[a].editable?1:0)}}catch(e){r.e(e)}finally{r.f()}i.editable=s>0}}catch(e){t.e(e)}finally{t.f()}},filterQuestion:function(){var e=this;if(this.questions=[],"consent"==this.type){var t=[];if(this.consentData.length>0){var n,i=x(this.consentData);try{for(i.s();!(n=i.n()).done;){var s=n.value;s.consentResponses.sort((function(e,t){return Number(e.viewOrder)<Number(t.viewOrder)||l()(e.fromDate)<l()(t.fromDate)||l()(e.toDate)<l()(t.toDate)}));var r,o=x(s.consentResponses);try{var a=function(){var n=r.value;n.consentId==f.a.NUMBER_36?n.viewOrder="10."+e.calculateViewOrderConsent("10",t):n.consentId==f.a.NUMBER_27&&(n.viewOrder="9."+e.calculateViewOrderConsent("9",t)),n.viewOrder=n.viewOrder.toString(),n.consentResponseStatus==L.PENDING&&(n.consentResponseAnswer=null);var i=t.findIndex((function(e){return e.viewOrder==n.viewOrder}));-1==i?t.push(n):t[i].editable=t[i].editable||n.editable};for(o.s();!(r=o.n()).done;)a()}catch(e){o.e(e)}finally{o.f()}}}catch(e){i.e(e)}finally{i.f()}t.sort((function(e,t){return parseFloat(e.viewOrder)-parseFloat(t.viewOrder)}
1))}this.consents=t}else{var u,d=x(this.additionalData);try{for(d.s();!(u=d.n()).done;){var c,_=x(u.value.additionalDataResponses);try{var p=function(){var t=c.value;null==e.questions.find((function(e){return e.additionalDataId==t.additionalDataId}))&&(t.showOptionQuestionYes=!1,t.showOptionQuestionNo=!1,t.instProfileIndex=null,t.responding=null,e.questions.push(t))};for(_.s();!(c=_.n()).done;)p()}catch(e){_.e(e)}finally{_.f()}}}catch(e){d.e(e)}finally{d.f()}this.questions.sort((function(e,t){return e.createdAt>t.createdAt}))}},submitAdditionalTableOnBehalf:function(){var e=this.submitAdditionalTable();return{institutionProfileId:null!=e[0]?e[0].institutionProfileId:null,additionalDataResponses:null!=e[0]?e[0].additionalDataResponses:null}},submitAdditionalTable:function(){this.isSubmitted=!0;var e,t=[],n=x(this.profiles);try{for(n.s();!(e=n.n()).done;){var i=e.value,s={};s.institutionProfileId=i.institutionProfile.id,s.additionalDataResponses=[];for(var r=null,o=0,a=Object.keys(i.additionals);o<a.length;o++){var l=a[o],u=null,d=!0;i.additionals[l].canCurrentProfileRespond||(d=!1),d&&(i.additionals[l].answerType==c.a.YESNO?"yes"==i.additionals[l].yesNoResponse?(u=!0,r=null==i.additionals[l].optionalQuestionForYes?null:i.additionals[l].responding):(u=!1,r=null==i.additionals[l].optionalQuestionForNo?null:i.additionals[l].responding):r=i.additionals[l].response,s.additionalDataResponses.push({additionalDataId:i.additionals[l].additionalDataId,additionalDataResponseId:i.additionals[l].additionalDataResponseId,response:r,yesNoResponse:u}))}t.push(s)}}catch(e){n.e(e)}finally{n.f()}return t},showOptionQuestionYesNo:function(e,t,n){var i=this.profiles[t].additionals[e].yesNoResponse,s=this.questions.findIndex((function(t){return t.additionalDataId==e})),r=0==this.profiles.filter((function(t){return t.institutionProfile.id!=n&&null!=t.additionals[e]&&null!=t.additionals[e].yesNoResponse&&t.additionals[e].yesNoResponse!=i})).length;null!=this.questions[s].response&&(this.questions[s].responding=this.questions[s].response),"yes"==i?(this.profiles[t].additionals[e].showOptionQuestionNo=!1,null!=this.profiles[t].additionals[e].optionalQuestionForYes&&(this.questions[s].showOptionQuestionYes=!0,this.profiles[t].additionals[e].showOptionQuestionYes=!0),1==r&&(this.questions[s].showOptionQuestionNo=!1)):(this.profiles[t].additionals[e].showOptionQuestionYes=!1,null!=this.profiles[t].additionals[e].optionalQuestionForNo&&(this.questions[s].showOptionQuestionNo=!0,this.profiles[t].additionals[e].showOptionQuestionNo=!0),1==r&&(this.questions[s].showOptionQuestionYes=!1)),this.profiles[t].additionals[e].responding=this.profiles[t].additionals[e].response},validateConsentAnswered:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(this.isSubmitted=e);var t,n=!0,i=x(this.profiles);try{var s=function(){for(var e=t.value,i=function(){var t=r[s];e.consents[t].allowedAnswers&&(null==e.consents[t].allowedAnswers.find((function(n){return n==e.consents[t].consentResponseAnswer}))?(e.consents[t].isValid=!1,n=!1):e.consents[t].isValid=!0)},s=0,r=Object.keys(e.consents);s<r.length;s++)i()};for(i.s();!(t=i.n()).done;)s()}catch(e){i.e(e)}finally{i.f()}return n},validateAdditionalAnswered:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!e)return!1;this.isSubmitted=e;var t,n=x(this.profiles);try{for(n.s();!(t=n.n()).done;)for(var i=t.value,s=0,r=Object.keys(i.additionals);s<r.length;s++){var o=r[s],a=!0;if(i.additionals[o].canCurrentProfileRespond||(a=!1),a){var l=i.additionals[o].answerType===c.a.YESNO&&!i.additionals[o].yesNoResponse,u=i.additionals[o].answerType===c.a.TEXT&&!i.additionals[o].response,d=i.additionals[o].answerType===c.a.PHONENUMBER&&!i.additionals[o].response,f=!i.additionals[o].canCurrentProfileRespondForChild||this.loggedInProfile.role!==p.a.EMPLOYEE||"stepOnboarding"===this.$route.name;if((l||u||d)&&f)return!1;if(i.additionals[o].answerType===c.a.PHONENUMBER&&!T.a.isPhoneNumber(i.additionals[o].response))return!1}}}catch(e){n.e(e)}finally{n.f()}return!0},submitConsentResponse:function(){var e,t=[],n=x(this.profiles);try{for(n.s();!(e=n.n()).done;){var i=e.value;
1null!=i.institutionProfile.id&&t.push(this.createConsentAnswerForProfile(i))}}catch(e){n.e(e)}finally{n.f()}return{institutionProfilesConsentAnswers:t}},createConsentAnswerForProfile:function(e){var t={};t.institutionProfileId=e.institutionProfile.id,t.institutionProfileConsentUpdates=[];for(var n=0,i=Object.keys(e.consents);n<i.length;n++){var s=i[n];this.consentHasBeenAnswered(e.consents[s])&&t.institutionProfileConsentUpdates.push(this.createConsentUpdate(e.consents[s]))}return t},consentHasBeenAnswered:function(e){return null!==e.consentResponseAnswer},createConsentUpdate:function(e){return{consentId:e.consentId,answer:e.consentResponseAnswer,fromDate:this.consentForLeavingInstitution.includes(e.consentId)&&e.fromDate||null,toDate:this.consentForLeavingInstitution.includes(e.consentId)&&e.toDate||null}},responseComplexConsent:function(e,t,n,i){var s=null;s="on"==e.target.value?e.target.checked:e.target.value,s=JSON.parse(s),i==f.a.NUMBER_3?s?(this.profiles[n].consents[t].answerSharing2=!0,this.profiles[n].consents[t].answerSharing1=!0,this.profiles[n].consents[t].consentResponseAnswer=_.a.INSTITUTION):this.profiles[n].consents[t].answerSharing2&&this.profiles[n].consents[t].allowedAnswers.includes(_.a.YEAR_AND_SFO)?this.profiles[n].consents[t].consentResponseAnswer=_.a.YEAR_AND_SFO:this.profiles[n].consents[t].answerSharing1&&this.profiles[n].consents[t].allowedAnswers.includes(_.a.CLASS_OR_STUE)?this.profiles[n].consents[t].consentResponseAnswer=_.a.CLASS_OR_STUE:this.profiles[n].consents[t].answerSharing1&&this.profiles[n].consents[t].allowedAnswers.includes(_.a.NOT_AT_ALL)&&(this.profiles[n].consents[t].consentResponseAnswer=_.a.NOT_AT_ALL):i==f.a.NUMBER_2?s?s&&(this.profiles[n].consents[t].answerSharing1=!0,this.profiles[n].consents[t].consentResponseAnswer=_.a.YEAR_AND_SFO):(this.profiles[n].consents[t].answerSharing3=!1,this.profiles[n].consents[t].answerSharing1&&this.profiles[n].consents[t].allowedAnswers.includes(_.a.CLASS_OR_STUE)?this.profiles[n].consents[t].consentResponseAnswer=_.a.CLASS_OR_STUE:this.profiles[n].consents[t].consentResponseAnswer=_.a.NOT_AT_ALL):s?this.profiles[n].consents[t].consentResponseAnswer=_.a.CLASS_OR_STUE:(this.profiles[n].consents[t].answerSharing3=!1,this.profiles[n].consents[t].answerSharing2=!1,this.profiles[n].consents[t].consentResponseAnswer=_.a.NOT_AT_ALL)},checkEditableConsent:function(){var e,t=x(this.profiles.entries());try{for(t.s();!(e=t.n()).done;){var n=s()(e.value,2),i=n[0],r=n[1];r.consents[1]&&r.consents[1].consentResponseAnswer==_.a.DECLINED&&this.reComputeProfileConsentList(i,_.a.DECLINED)}}catch(e){t.e(e)}finally{t.f()}},initConsent:function(){this.consentData=v()(this.data),this.filterQuestion(),this.profiles=this.filterProfileConsent(),this.checkEditableConsent(),this.populateSelectAll(),this.originalDataProfiles=v()(this.profiles)},initAdditionalData:function(){var e=this;if(this.additionalData=v()(this.data),this.filterQuestion(),this.profiles=this.filterProfiles(),this.originalDataProfiles=v()(this.profiles),!this.isRevisionHistoryViewMode&&this.respondedQuestions.length>0){var t,n=x(this.respondedQuestions);try{var i=function(){for(var n=t.value,i=n.institutionProfileId,s=0;s<n.questionIds.length;s++){var r=e.profiles.findIndex((function(e){return e.institutionProfile.id==i}));
1e.showOptionQuestionYesNo(n.questionIds[s],r,i)}};for(n.s();!(t=n.n()).done;)i()}catch(e){n.e(e)}finally{n.f()}}this.originalDataProfiles=v()(this.profiles)}}),components:{AulaButton:k.a,AulaButtons:M.a,"additional-answer":b,"consent-answer":P}},G=F,j=Object(S.a)(G,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return!e.isMobile&&e.showMultiProfileTable?n("div",{staticClass:"consent-table"},[e.showSubmit?n("AulaButtons",{staticClass:"consent-actions"},[n("AulaButton",{attrs:{variant:"link"},on:{click:e.emitCancel}},[e._v("\n      "+e._s(e.$getText("CANCEL"))+"\n    ")]),e._v(" "),n("AulaButton",{staticClass:"text-uppercase",attrs:{disabled:e.isUpdating},on:{click:e.handleSaveClicked}},[e._v("\n      "+e._s(e.$getText("BUTTON_SAVE"))+"\n    ")])],1):e._e(),e._v(" "),e.isEditOnBehalfMode?e._e():n("div",{staticClass:"header"},[n("h1",{staticClass:"title"},[e.showTitle?["consent"===e.type?[e._v("\n          "+e._s(e.$getText("CONSENT_LABEL"))+"\n        ")]:[e._v("\n          "+e._s(e.$getText("ADDITIONAL_LABEL"))+"\n        ")]]:e._e()],2),e._v(" "),e._l(e.profiles,(function(t,i){return n("div",{key:i,staticClass:"profile"},[n("user-icon",{key:t.institutionProfile.id,attrs:{id:t.institutionProfile.id,name:t.institutionProfile.name,"picture-object":t.institutionProfile.profilePicture,"short-name":t.institutionProfile.shortName,"show-inline":!0}}),e._v(" "),n("div",{staticClass:"profile-name"},[e._v("\n        "+e._s(t.institutionProfile.name.split(" ")[0])+"\n        "),null!=t.institutionProfile.mainGroup?[e._v("\n          ("+e._s(t.institutionProfile.mainGroup)+")\n        ")]:e._e(),e._v(" "),n("div",{staticClass:"instition-name"},[e._v("\n          "+e._s(t.institutionProfile.institutionName)+"\n        ")])],2)],1)}))],2),e._v(" "),e.isDisabled||e.isEditOnBehalfMode?e._e():n("div",{staticClass:"functions"},[n("h1",{staticClass:"title"}),e._v(" "),e._l(e.profiles,(function(t,i){return n("div",{key:i,staticClass:"profile"},[t.isCheckAllShown?n("b-form-radio-group",{attrs:{disabled:e.isDisabled},nativeOn:{change:function(t){return e.checkedAll(i,t)}},model:{value:t.selectAll,callback:function(n){e.$set(t,"selectAll",n)},expression:"profile.selectAll"}},[n("b-form-radio",{attrs:{value:"yes"}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES_ALL")))]),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_ALL_YES",{profileName:t.institutionProfile.name,institutionName:t.institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:"no"}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO_ALL")))]),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_ALL_NO",{profileName:t.institutionProfile.name,institutionName:t.institutionProfile.institutionName})))])])],1):e._e()],1)}))],2),e._v(" "),"consent"==e.type?n("consent-answer",{attrs:{"is-disabled":e.isDisabled,"multiple-columns":!e.isMobile&&e.showMultiProfileTable,"is-mobile":e.isMobile,"is-submitted":e.isSubmitted}}):n("additional-answer",{attrs:{"multiple-columns":!e.isMobile&&e.showMultiProfileTable,"is-submitted":e.isSubmitted,"is-disabled":e.isDisabled,"is-revision-history-view-mode":e.isRevisionHistoryViewMode,profiles:e.getProfiles,questions:e.getQuestions,"is-edit-on-behalf-mode":e.isEditOnBehalfMode,"is-mobile":e.isMobile}})],1):!e.isMobile&&!e.showMultiProfileTable||e.isMobile?n("div",e._l(e.profiles,(function(t,i){return n("div",{key:i,staticClass:"consent-mobile"},[n("div",{staticClass:"header"},[e.isMobile?n("div",{staticClass:"instition-name"},[e._v("\n        "+e._s(t.institutionProfile.institutionName)+"\n      ")]):e._e(),e._v(" "),n("div",{staticClass:"profile mb-3"},[n("user-icon",{key:t.institutionProfile.id,attrs:{id:t.institutionProfile.id,name:t.institutionProfile.name,"short-name":t.institutionProfile.shortName,"picture-object":t.institutionProfile.profilePicture,"show-inline":!0}}),e._v(" "),n("div",{staticClass:"profile-name"},[e._v("\n          "+e._s(t.institutionProfile.name.split(" ")[0])+"\n          "),null!=t.institutionProfile.mainGroup?[e._v("\n            ("+e._s(t.institutionProfile.mainGroup)+")\n          ")]:e._e(
1),e._v(" "),e.isMobile?e._e():n("div",{staticClass:"instition-name"},[e._v("\n            "+e._s(t.institutionProfile.institutionName)+"\n          ")])],2)],1),e._v(" "),e.isMobile?n("hr"):e._e(),e._v(" "),!e.isDisabled&&t.isCheckAllShown?n("div",{staticClass:"function",class:{mobile:e.isMobile}},[e.isMobile?n("div",{staticClass:"filter-all"},[e._v("\n          "+e._s(e.$getText("FILTER_ALL"))+"\n        ")]):e._e(),e._v(" "),e.isEditOnBehalfMode?e._e():n("b-form-radio-group",{nativeOn:{change:function(t){return e.checkedAll(i,t)}},model:{value:t.selectAll,callback:function(n){e.$set(t,"selectAll",n)},expression:"profile.selectAll"}},[n("b-form-radio",{attrs:{value:"yes"}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("YES")))]),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_ALL_YES",{profileName:t.institutionProfile.name,institutionName:t.institutionProfile.institutionName})))])]),e._v(" "),n("b-form-radio",{attrs:{value:"no"}},[n("span",{attrs:{"aria-hidden":"true"}},[e._v(e._s(e.$getText("NO")))]),n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_ALL_NO",{profileName:t.institutionProfile.name,institutionName:t.institutionProfile.institutionName})))])])],1)],1):e._e()]),e._v(" "),"consent"==e.type?n("consent-answer",{attrs:{"profile-index":i,"is-disabled":e.isDisabled,"multiple-columns":!1,"is-mobile":e.isMobile,"is-submitted":e.isSubmitted}}):n("additional-answer",{attrs:{profile:t,"profile-index":i,"multiple-columns":!1,"is-submitted":e.isSubmitted,"is-mobile":e.isMobile,"is-revision-history-view-mode":e.isRevisionHistoryViewMode,"is-edit-on-behalf-mode":e.isEditOnBehalfMode,"is-disabled":e.isDisabled}})],1)})),0):e._e()}),[],!1,null,"136fe44a",null);t.a=j.exports},211:function(e,t,n){"use strict";var i=n(87),s=n.n(i),r=n(17),o=n.n(r),a=n(1),l=n.n(a),u=n(4),d=n(9),c=n(2),f=n(5),_=n.n(f),p=n(6),T=n(88),h=n(14),E=n(344),I=n(142),m=n.n(I);function A(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){l()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v={components:{BadgeNotification:T.a},props:{parent:{type:String,default:h.a.ADMINISTRATION},tableRef:String,perPage:{type:Number,default:200},totalRows:{type:Number,default:200},currentPage:{type:Number,default:1},items:Array,search:{type:Boolean,default:!1},fields:Object,rowClickable:{type:Boolean,default:!1},rowSelectable:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},serverSide:{type:Boolean,default:!1},serverSideUrl:{type:String,default:""},emptyTableFilteredText:{type:String,default:"TABLE_EMPTY_FILTERED_TEXT"},emptyTableText:{type:String,default:"TABLE_EMPTY_TEXT"},responsive:{type:Boolean,default:!1},stickyHeader:{type:Boolean,default:!1},initialSortBy:{type:String,default:""},initialSortDesc:{type:Boolean,default:!1},showPagination:{type:Boolean,default:!1},showPageSizeOptions:{type:Boolean,default:!1},searchFields:{type:Array,default:function(){return[]}},prepareParams:Function,prepareItems:Function,isHttpPost:{type:Boolean,default:!1},filterCountFields:{type:Array,default:function(){return[]}}},data:function(){var e=this;
1return{parentTypes:h.a,sortDesc:this.initialSortDesc,sortBy:this.initialSortBy,isBusy:!1,filter:null,filteredItems:[],selected:[],vue:u.default,localCurrentPage:1,localFields:{},selectedFilter:{},startDate:"",endDate:"",isStartDateClicked:!1,isEndDateClicked:!1,isFieldsDataInitialized:!1,availableStartDate:{disabledDate:function(t){var n;return n=e.endDate?_()(e.endDate).startOf("day").unix():_()(t).endOf("month").unix(),t.getTime()/1e3>n}},availableEndDate:{disabledDate:function(t){var n;return e.startDate?(n=_()(e.startDate).startOf("day").unix(),t.getTime()/1e3<n):(e.endDate=null,!0)}},serverSideTotalRows:0,pageSizeOptions:E.a.PAGE_SIZE_OPTIONS,selectedPageSize:E.a.DEFAULT_PAGE_SIZE}},computed:g(g({},Object(p.c)({isMobile:c.a.GET_IS_MOBILE})),{},{listFields:function(){var e=this;return Object.keys(this.fields).map((function(t){return g(g({},e.fields[t]),{},{key:t})}))},pageSize:function(){return this.showPageSizeOptions?this.selectedPageSize:this.perPage}}),watch:{currentPage:function(){this.localCurrentPage=this.currentPage},items:function(){null!=this.items&&this.items.length>=0&&!this.serverSide&&this.updateAllFiltersAndRows("")},fields:{handler:function(){this.populateLocalFields()},deep:!0},filteredItems:function(e){this.serverSide||this.$emit("updateFilteredItems",e)},localCurrentPage:function(){this.$emit("paginationChanged",this.localCurrentPage)}},mounted:function(){this.populateLocalFields(),this.setFilteredItemsToAll(),this.prepareFields(),this.sortBy=this.initialSortBy,this.sortDesc=this.initialSortDesc},methods:{getFilterLabel:function(e,t){return this.serverSide?this.filterCountFields.includes(t)?"".concat(e.name," (").concat(e.count,")"):e.name:e},checkChildRow:function(e){return this.items.some((function(t){return"childRow"==t.rowType&&t.parentId==e.item.parentId}))},getChildRowIconClass:function(e){var t;return null!==(t=this.filteredItems.find((function(t){return"childRow"==t.rowType&&t.parentId==e.item.parentId})))&&void 0!==t&&t.showChild?"icon-Aula_down-arrow":"icon-Aula_up-arrow"},populateLocalFields:function(){var e=this;this.localFields=Object.keys(this.fields).reduce((function(t,n){return t[n]=g(g({},e.fields[n]),{},{slotHead:"head(".concat(n,")"),slotCell:"cell(".concat(n,")")}),t}),{}),this.restoreSelectedFilter()},clearSelectedFilters:function(){for(var e in this.localFields)this.localFields[e].selectedFilters=[]},checkFilterItemEmpty:function(e){return""!==e},checkSelected:function(e,t){u.default.nextTick((function(){null!=e.selectedArrays[t.value.checkboxType].allSelected&&(e.selectedArrays[t.value.checkboxType].selected.length==t.item.items.length?e.selectedArrays[t.value.checkboxType].allSelected=!0:e.selectedArrays[t.value.checkboxType].allSelected=!1)}))},checkAllSelected:function(e,t){u.default.nextTick((function(){null!=e.selectedArrays[t.value.checkboxType].allSelected&&(e.selectedArrays[t.value.checkboxType].allSelected?e.selectedArrays[t.value.checkboxType].selected=t.item.items:e.selectedArrays[t.value.checkboxType].selected=[])}))},setFilteredItemsToAll:function(){if(this.filteredItems=this.items,null!=this.filteredItems){var e,t=A(this.filteredItems);try{for(t.s();!(e=t.n()).done;){var n=e.value;if("parentRow"==n.rowType){var i=!0;for(var s in this.localFields)null!=this.fields[s].selectedArrays&&!this.fields[s].selectedArrays[n.type].allSelected&&this.fields[s].selectedArrays[n.type].selected.length>0&&(i=!1);i&&this.toggleDetailRows(n.parentId)}}}catch(e){t.e(e)}finally{t.f()}}},toggleDetailRows:function(e){this.filteredItems=[];var t,n=A(this.items);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("childRow"===i.rowType&&i.parentId===e&&i.showChild)i.showChild=!1;else if("childRow"!==i.rowType||i.parentId!==e||i.showChild){if("childRow"===i.rowType&&!i.showChild)continue;this.filteredItems.push(i)}else i.showChild=!0,this.filteredItems.push(i)}}catch(e){n.e(e)}finally{n.f()}},filterTable:function(e,t,n){this.localCurrentPage=1,this.serverSide?(this.storeSelectedFilter(e,t,n),this.$refs[this.tableRef].refresh()):(this.localFields[t].filterIsActive=0!==this.localFields[t].selectedFilters.length,this.updateAllFiltersAnd
1Rows(t))},resetFilter:function(e,t){e.selectedFilters=[],this.filterTable(t,t)},filterDateTable:function(e){this.localFields[e].filterIsActive=!0,this.updateAllDateFiltersAndRows(e)},updateAllFiltersAndRows:function(e){var t=this;if(0!==this.items.length){if(!this.serverSide){var n=Object.keys(this.items[0]);this.filteredItems=[];var i,s=!0,r=A(this.items);try{var a=function(){for(var e=i.value,r=!0,o=function(){var n=l[a];t.localFields.hasOwnProperty(n)&&t.localFields[n].filtering&&t.localFields[n].filterIsActive&&(s=!1,0==t.localFields[n].selectedFilters.filter((function(t){return e[n].includes(t)})).length&&(r=!1))},a=0,l=n;a<l.length;a++)o();r&&t.filteredItems.push(e)};for(r.s();!(i=r.n()).done;)a()}catch(e){r.e(e)}finally{r.f()}s&&this.setFilteredItemsToAll();for(var l=function(){var n=d[u];if(t.localFields.hasOwnProperty(n))if(t.localFields[n].filtering&&n!=e&&!t.localFields[n].filterIsActive)if(t.localFields[n].advancedFiltering)t.prepareFields();else{t.localFields[n].uniqueItems=[];var i,s=A(o()(new Set(t.items.map((function(e){return e[n]})))));try{var r=function(){var e=i.value;t.filteredItems.map((function(i){return i[n]!=e||t.localFields[n].uniqueItems.includes(e)?"":t.localFields[n].uniqueItems.push(e)}))};for(s.s();!(i=s.n()).done;)r()}catch(e){s.e(e)}finally{s.f()}}else t.localFields.hasOwnProperty(n)&&t.localFields[n].dateFiltering&&!t.startDate&&!t.endDate&&(t.localFields[n].filterIsActive=!1)},u=0,d=n;u<d.length;u++)l()}}else this.filteredItems=[]},updateAllDateFiltersAndRows:function(){if(0!==this.items.length){var e=Object.keys(this.items[0]);this.filteredItems=[];var t,n=!0,i=A(this.items);try{for(i.s();!(t=i.n()).done;){var s,r=t.value,o=!0,a=A(e);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(this.localFields.hasOwnProperty(l)&&this.localFields[l].dateFiltering&&this.localFields[l].filterIsActive){n=!1;var u=r[l].split("-"),d=u[2]+"-"+u[1]+"-"+u[0];(""!=this.startDate&&_()(d).isBefore(_()(this.startDate))||""!=this.endDate&&_()(d).isAfter(_()(this.endDate)))&&(o=!1)}}}catch(e){a.e(e)}finally{a.f()}o&&this.filteredItems.push(r)}}catch(e){i.e(e)}finally{i.f()}n&&this.setFilteredItemsToAll()}else this.filteredItems=[]},prepareFields:function(){var e=this;if(void 0!==this.items&&this.items.length>0&&!this.serverSide)for(var t=Object.keys(this.items[0]),n=function(){var t=s[i];if(e.localFields.hasOwnProperty(t)&&e.localFields[t].filtering)if(e.localFields[t].advancedFiltering){var n,r=A(e.items);try{for(r.s();!(n=r.n()).done;){var a,l=A(n.value[t].split(","));try{for(l.s();!(a=l.n()).done;){var u=a.value;e.localFields[t].uniqueItems.includes(u.trim())||""===u||e.localFields[t].uniqueItems.push(u.trim())}}catch(e){l.e(e)}finally{l.f()}}}catch(e){r.e(e)}finally{r.f()}}else e.localFields[t].uniqueItems=o()(new Set(e.items.map((function(e){return e[t]})))),e.localFields[t].uniqueItems=e.localFields[t].uniqueItems.filter((function(e){return""!=e}))},i=0,s=t;i<s.length;i++)n()},rowClicked:function(e){this.rowClickable&&this.$emit("rowClicked",e)},sortingChanged:function(e){var t=this;null==e.sortBy&&(e.sortBy=this.initialSortBy,this.sortBy=this.initialSortBy),null==e.sortDesc&&(e.sortDesc=this.initialSortDesc,this.sortDesc=this.initialSortDesc),this.serverSide||(e.sortDesc?this.filteredItems=this.filteredItems.sort((function(n,i){return t.sortItemsDesc(n,i,e)})):this.filteredItems=this.filteredItems.sort((function(n,i){return t.sortItemsAsc(n,i,e)})))},sortItemsDesc:function(e,t,n){return e[n.sortBy]||(e[n.sortBy]=""),t[n.sortBy]||(t[n.sortBy]=""),Number.isInteger(e[n.sortBy])?e[n.sortBy]-t[n.sortBy]:"string"==typeof e[n.sortBy]?e[n.sortBy].localeCompare(t[n.sortBy],"da",{sensitivity:"base"}):"object"==s()(e[n.sortBy])&&"string"==typeof e[n.sortBy].name?e[n.sortBy].name.localeCompare(t[n.sortBy].name,"da",{sensitivity:"base"}):0},sortItemsAsc:function(e,t,n){return e[n.sortBy]||(e[n.sortBy]=""),t[n.sortBy]||(t[n.sortBy]=""),Number.isInteger(e[n.sortBy])?t[n.sortBy]-e[n.sortBy]:"string"==typeof e[n.sortBy]?t[n.sortBy].localeCompare(e[n.sortBy],"da",{sensitivity:"base"}):"object"==s()(e[n.sortBy])&&"string"==typeof e[n.sortBy].name?t[n.sortBy].name.localeCompare(e[n.sortBy].name,"da",{sensitivity:"base"}):0},hideFilterDropdown:function(){for(var e in this.localFields)this.localFields[e].show
1FilterDropdown=!1},myProvider:function(e){var t=this,n=this.prepareParams(e,this.localFields);return(this.isHttpPost?d.b.post(this.serverSideUrl,n):d.b.get(this.serverSideUrl,{params:n})).then((function(e){var n=t.prepareItems(e);return e.data.data.totalAmount?t.serverSideTotalRows=e.data.data.totalAmount:e.data.data.totalSize?t.serverSideTotalRows=e.data.data.totalSize:e.data.data.totalResultCount?t.serverSideTotalRows=e.data.data.totalResultCount:e.data.data.total?t.serverSideTotalRows=e.data.data.total:t.serverSideTotalRows=n.length,t.filteredItems=n,t.isFieldsDataInitialized||(t.populateLocalFields(),t.isFieldsDataInitialized=!0),n})).catch((function(){return[]}))},refresh:function(){this.localCurrentPage=1,this.isFieldsDataInitialized=!1,this.clearSelectedFilters(),this.$refs[this.tableRef].refresh()},refreshCurrentPage:function(){this.$refs[this.tableRef].refresh()},storeSelectedFilter:function(e,t,n){this.selectedFilter[e]=e===t?[]:n},restoreSelectedFilter:function(){if(this.serverSide&&!m()(this.selectedFilter))for(var e in this.selectedFilter)this.localFields[e].selectedFilters=this.selectedFilter[e]}}},O=n(3),b=Object(O.a)(v,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aula-table",class:e.stickyHeader?"sticky-header":""},[e.search?n("b-row",{staticClass:"search-container"},[n("b-col",{attrs:{cols:"3"}},[n("b-input-group",[n("b-form-input",{attrs:{placeholder:e.$getText("TABLE_SEARCH_PLACEHOLDER")},model:{value:e.filter,callback:function(t){e.filter=t},expression:"filter"}}),e._v(" "),n("b-input-group-addon",[n("i",{staticClass:"icon-Aula_search",staticStyle:{"font-size":"1.5em"},attrs:{tabindex:"0",role:"button","aria-label":e.$getText("ARIA_LABEL_SEARCH")},on:{click:e.search,keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.search.apply(null,arguments)}}})])],1)],1)],1):e._e(),e._v(" "),n("b-table",{directives:[{name:"show",rawName:"v-show",value:!e.isMobile||e.isMobile&&e.parent===e.parentTypes.ADMINISTRATION,expression:"!isMobile || (isMobile && parent === parentTypes.ADMINISTRATION)"}],ref:e.tableRef,attrs:{hover:e.hover,striped:e.striped,small:"","show-empty":"",selectable:e.rowClickable&&e.rowSelectable,"tbody-tr-class":e.rowClickable?"cursor-pointer":"",responsive:e.responsive,items:e.serverSide?e.myProvider:e.filteredItems,fields:e.listFields,"current-page":e.localCurrentPage,"per-page":e.pageSize,"no-local-sorting":!0,"sort-by":e.sortBy,"sort-desc":e.sortDesc,busy:e.isBusy,"empty-filtered-text":e.$getText(e.emptyTableFilteredText),"empty-text":e.$getText(e.emptyTableText)},on:{"update:sortBy":function(t){e.sortBy=t},"update:sort-by":function(t){e.sortBy=t},"update:sortDesc":function(t){e.sortDesc=t},"update:sort-desc":function(t){e.sortDesc=t},"update:busy":function(t){e.isBusy=t},"row-clicked":e.rowClicked,"sort-changed":e.sortingChanged},scopedSlots:e._u([e._l(e.localFields,(function(t,i){return{key:t.slotHead,fn:function(s){return[e._t(t.slotHead,(function(){return[t.filtering&&t.sortable&&!t.dateFiltering||t.filtering&&!t.sortable&&!t.dateFiltering?[n("div",{key:"head-"+i},[n("div",{staticClass:"nowrap filter-spacing"},[e._v("\n              "+e._s(s.label)+"\n            ")]),e._v(" "),t.uniqueItems.length>0?n("i",{staticClass:"icon-Aula_down-arrow custom-table-icon",attrs:{"aria-label":e.$getText("ARIA_LABEL_OPEN_FILTERING_DROPDOWN"),tabindex:"0",role:"button"},on:{click:function(n){n.stopPropagation(),e.hideFilterDropdown(),t.showFilterDropdown=!t.showFilterDropdown},keydown:[function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"]))return null;n.stopPropagation(),t.showFilterDropdown=!1},function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter"))return null;n.stopPropagation(),e.hideFilterDropdown(),t.showFilterDropdown=!t.showFilterDropdown}]}}):e._e(),e._v(" "),t.showFilterDropdown?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.hideFilterDropdown,expression:"hideFilterDropdown"}],ref:i,refInFor:!0,staticClass:"table-filtering",class:"header-"+i,on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:(t.stopPropagation(),e.hideFilterDropdown.apply(null,arguments))},click:function(e){e.stopPropagation()}}},[t.selectedFilters.length>0?n("b-form-checkbox",{attrs:{disabled:e.isBusy},on:{input:function(n){return e.resetFilter(t,i)}},nativeOn:{click:function(e){e.stopPropagation()}}},[e._v("\n                "+e._s(e.$getText("TABLE_DESELECT_ALL_FILTERS"))+"\n              ")]):e._e(
1),e._v(" "),n("b-form-checkbox-group",{attrs:{stacked:""},model:{value:t.selectedFilters,callback:function(n){e.$set(t,"selectedFilters",n)},expression:"field.selectedFilters"}},e._l(t.uniqueItems.filter((function(t){return e.checkFilterItemEmpty(t)})),(function(s,r){return n("b-form-checkbox",{key:r,attrs:{disabled:e.isBusy,value:e.serverSide?s.key:s},on:{change:function(t){return e.filterTable(i,e.serverSide?s.key:i,t)}},nativeOn:{click:function(e){e.stopPropagation()}}},[e._v("\n                  "+e._s(e.getFilterLabel(s,t.label))+"\n                ")])})),1)],1):e._e()])]:e._e(),e._v(" "),t.dateFiltering&&t.sortable&&!t.filtering||t.dateFiltering&&!t.sortable&&!t.filtering?[n("div",{key:"head-"+i},[n("i",{staticClass:"icon-Aula_down-arrow custom-table-icon",attrs:{"aria-label":e.$getText("ARIA_LABEL_OPEN_FILTERING_DROPDOWN"),tabindex:"0",role:"button"},on:{click:function(n){n.stopPropagation(),e.hideFilterDropdown(),t.showFilterDropdown=!t.showFilterDropdown},keydown:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter"))return null;n.stopPropagation(),e.hideFilterDropdown(),t.showFilterDropdown=!t.showFilterDropdown}}}),e._v(" "),t.showFilterDropdown?n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.hideFilterDropdown,expression:"hideFilterDropdown"}],ref:i,refInFor:!0,staticClass:"table-filtering datepicker",class:"header-"+i},[n("b-row",[n("b-col",[e._v(e._s(e.$getText("TABLE_DATE_FILTER_TITLE")))]),e._v(" "),n("b-col",[e._v("\n                  "+e._s(e.$getText("TABLE_DATE_FILTER_START"))+"\n                  "),n("el-date-picker",{class:{elPickerActive:e.isStartDateClicked},attrs:{id:"startDate","picker-options":e.availableStartDate,format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",type:"date",placeholder:e.$getText("MESSAGE_PLACEHOLDER_SELECT_DATE")},on:{focus:function(t){e.datePickerModifier(),e.isStartDateClicked=!0},blur:function(t){e.isStartDateClicked=!1},change:function(t){return e.filterDateTable(i)}},model:{value:e.startDate,callback:function(t){e.startDate=t},expression:"startDate"}})],1),e._v(" "),n("b-col",[e._v("\n                  "+e._s(e.$getText("TABLE_DATE_FILTER_END"))+"\n                  "),n("el-date-picker",{class:{elPickerActive:e.isEndDateClicked},attrs:{id:"endDate","picker-options":e.availableEndDate,format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",type:"date",placeholder:e.$getText("MESSAGE_PLACEHOLDER_SELECT_DATE")},on:{focus:function(t){e.datePickerModifier(),e.isEndDateClicked=!0},blur:function(t){e.isEndDateClicked=!1},change:function(t){return e.filterDateTable(i)}},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}})],1)],1)],1):e._e(),e._v(" "),n("div",{staticClass:"nowrap"},[e._v("\n              "+e._s(s.label)+"\n            ")])])]:e._e(),e._v(" "),t.sortable&&!t.filtering&&!t.dateFiltering||!t.sortable&&!t.filtering&&!t.dateFiltering?[n("span",{key:"head-"+i},[e._v(e._s(s.label))])]:e._e(),e._v(" "),t.showSelectAllInHeader?[n("b-form-checkbox",{staticClass:"ml-2",attrs:{inline:""},on:{change:function(t){return e.$emit("toggleAllCheckboxes",t)}},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.allSelected,callback:function(n){e.$set(t,"allSelected",n)},expression:"field.allSelected"}})]:e._e()]}),null,s)]}}})),e._l(e.localFields,(function(t,i,s){return{key:t.slotCell,fn:function(r){return[e._t(t.slotCell,(function(){return[r.item.hasBadge&&0===s?n("badge-notification",{key:"cell-"+i,staticClass:"cell-badge",attrs:{"show-exclamation-icon-instead-of-amount":!0}}):e._e(),e._v(" "),"action"==t.type||"html"==t.type&&r.item.object&&"action"==r.item.object.descriptionType?e._l(r.value,(function(t,i){return n("span",{key:i,class:t.class},["checkbox"===t.actionType?n("b-form-checkbox",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],staticClass:"d-inline mr-2",attrs:{title:t.title,"aria-label":t.title},model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"action.value"}}):n("b-btn",{staticClass:"margin-right",class:{"has-icon":t.icon},attrs:{size:"sm",variant:t.variant,disabled:!!t.disabled&&t.disabled,"aria-label":t.title},on:{click:function(n){return n.stopPropagation(),e.$emit(t.method,{item:r.item,parameters:t.parameters,refs:e.$refs})}}},[t.textkey?[e._v("\n                "+e._s(e.$getText(t.textkey))+"\n              ")]:e._e(
1),e._v(" "),t.icon?[t.title?n("i",{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{hover:!0}}],class:t.icon,attrs:{title:t.title}}):n("i",{class:t.icon})]:e._e(),e._v(" "),t.text?[e._v("\n                "+e._s(t.text)+"\n              ")]:e._e()],2)],1)})):"checkbox"==t.type?["parentRow"==r.item.rowType?n("b-form-checkbox",{attrs:{disabled:t.selectedArrays[r.value.checkboxType].disabled||r.value.disabled,"aria-label":e.$getText("ARIA_LABEL_CHECK_ALL")},on:{change:function(n){e.checkAllSelected(t,r),e.$emit(r.value.method,e.localFields,r)}},model:{value:t.selectedArrays[r.value.checkboxType].allSelected,callback:function(n){e.$set(t.selectedArrays[r.value.checkboxType],"allSelected",n)},expression:"field.selectedArrays[data.value.checkboxType].allSelected"}}):n("b-form-checkbox",{attrs:{disabled:t.selectedArrays[r.value.checkboxType].disabled||r.value.disabled,"aria-label":t.itemAriaLabel,value:r.item.itemId},on:{change:function(n){e.checkSelected(t,r),e.$emit(r.value.method,e.localFields,r)}},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:t.selectedArrays[r.value.checkboxType].selected,callback:function(n){e.$set(t.selectedArrays[r.value.checkboxType],"selected",n)},expression:"field.selectedArrays[data.value.checkboxType].selected"}})]:"detailRow"==t.type&&"parentRow"==r.item.rowType?[n("div",{key:"cell-"+i,staticClass:"d-flex justify-content-between align-items-center",attrs:{"aria-label":e.$getText("ARIA_LABEL_SEE_DETAILS"),tabindex:"0",role:"button"},on:{click:function(t){return e.toggleDetailRows(r.item.parentId)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.toggleDetailRows(r.item.parentId)}}},[e._v("\n            "+e._s(r.value)+"\n            "),e.checkChildRow(r)?n("i",{staticClass:"custom-icon custom-icon-variables",class:e.getChildRowIconClass(r)}):e._e()])]:"html"==t.type?[n("span",{key:"cell-"+i,domProps:{innerHTML:e._s(r.value)}})]:"icon"==t.type?[n("div",{key:"cell-"+i,staticClass:"icon"},[n("i",{class:r.value})])]:[t.textkey?[e._v("\n            "+e._s(e.$getText(r.value))+"\n          ")]:t.image?[n("user-icon",{staticClass:"table-img",attrs:{id:r.item.id,name:r.item.username,"short-name":r.item.itemId.shortName,"picture-object":{url:r.value}}})]:[e._v("\n            "+e._s(r.value)+"\n          ")]]]}),null,r)]}}}))],null,!0)}),e._v(" "),n("div",{staticClass:"d-flex align-items-center pb-4",class:e.showPageSizeOptions?"justify-content-between":"justify-content-end"},[e.showPageSizeOptions?n("div",{staticClass:"d-flex align-items-center"},[e._v("\n      "+e._s(e.$getText("TABLE_SELECT_SHOW_PAGE_OPTIONS"))+"\n      "),n("aula-select",{staticClass:"page-option-select px-2",attrs:{"fit-input-width":!0},on:{change:function(t){return e.$emit("onPageSizeChanged")}},model:{value:e.selectedPageSize,callback:function(t){e.selectedPageSize=t},expression:"selectedPageSize"}},e._l(e.pageSizeOptions,(function(e){return n("aula-option",{key:e,attrs:{label:e,value:e}})})),1),e._v("\n      "+e._s(e.$getText("TABLE_SELECT_PAGE_OPTIONS"))+"\n    ")],1):e._e(),e._v(" "),(e.serverSide&&e.serverSideTotalRows/e.pageSize>1||!e.serverSide&&e.totalRows/e.pageSize>1)&&e.showPagination&&!e.isMobile?n("b-pagination",{staticClass:"m-0",attrs:{"total-rows":e.serverSide?e.serverSideTotalRows:e.totalRows,"per-page":e.pageSize},model:{value:e.localCurrentPage,callback:function(t){e.localCurrentPage=t},expression:"localCurrentPage"}}):e._e()],1),e._v(" "),e.isMobile&&e.parent===e.parentTypes.PORTAL?n("div",{staticClass:"table"},[null==e.filteredItems||null!=e.filteredItems&&0==e.filteredItems.length?n("div",{staticClass:"table-row body"},[n("div",{staticClass:"table-cell collapsed-only"},[e._v("\n        "+e._s(e.$getText(e.emptyTableText))+"\n      ")])]):e._e(),e._v(" "),e._l(e.filteredItems,(function(t,i){return n("div",{key:i,staticClass:"table-row body"},[n("div",{staticClass:"table-cell collapsed-only"},e._l(e.fields,(function(s,r){return n("div",{key:r,staticClass:"item"},["action"==s.type?[n("span",[e._v(e._s(s.label))]),e._v(" "),n("span",e._l(t[r],(function(s,r){return n("b-btn",{key:i+"-"+r,attrs:{variant:"link"},on:{click:function(n){return e.$emit(s.method,{item:t,parameters:s.parameters,refs:e.$refs})}}},[e._v(e._s(e.$getText(s.textkey)))])})),1)]:[n("span",[e._v(e._s(s.label)+": ")]),e._v(e._s(t[r])+"\n          ")]],2)})),0)])}))],2):e._e()],1)}),[],!1,null,"3c402a5e",null);t.a=b.exports},222:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o}
1));var i=n(42),s=(n(518),[{roleDefinitionEnum:i.a.HANDLE_RIGHT_TO_INSIGHT,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_RIGHT_TO_INSIGHT",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_RIGHT_TO_INSIGHT"},{roleDefinitionEnum:i.a.HANDLE_REPORTS,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_REPORTS",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_REPORTS"},{roleDefinitionEnum:i.a.HANDLE_ALLOWED_RECIPIENTS,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_ALLOWED_RECIPIENTS",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_ALLOWED_RECIPIENTS"},{roleDefinitionEnum:i.a.HANDLE_USER_ROLES,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_USER_ROLES",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_USER_ROLES"},{roleDefinitionEnum:i.a.HANDLE_RESOURCES_MUNICIPALITY,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_RESOURCES_MUNICIPALITY",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_RESOURCES_MUNICIPALITY"},{roleDefinitionEnum:i.a.HANDLE_COMMUNICATION_CHANNELS,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_COMMUNICATION_CHANNELS",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_COMMUNICATION_CHANNELS"},{roleDefinitionEnum:i.a.HANDLE_SHARED_INBOX,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_SHARED_INBOX",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_SHARED_INBOX"},{roleDefinitionEnum:i.a.HANDLE_ADMINISTRATIVE_AUTHORITY,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_ADMINISTRATIVE_AUTHORITY",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_ADMINISTRATIVE_AUTHORITY"},{roleDefinitionEnum:i.a.HANDLE_GROUPS_MUNICIPALITY,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_GROUPS_MUNICIPALITY",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_GROUPS_MUNICIPALITY"},{roleDefinitionEnum:i.a.HANDLE_TRANSITION_YEAR,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_TRANSITION_YEAR",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_TRANSITION_YEAR"},{roleDefinitionEnum:i.a.HANDLE_DASHBOARDS,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_DASHBOARDS",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_DASHBOARDS"},{roleDefinitionEnum:i.a.HANDLE_MUNICIPAL_FILE_SENT_TO_ESDH,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_MUNICIPAL_FILES_TO_ESDH",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_MUNICIPAL_FILES_TO_ESDH"},{roleDefinitionEnum:i.a.DELETE_ACCESSIBLE_ALBUM,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_DELETE_ACCESSIBLE_ALBUM",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_DELETE_ACCESSIBLE_ALBUM"}]),r=[{roleDefinitionEnum:i.a.HANDLE_REPORTS,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_REPORTS",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_REPORTS"},{roleDefinitionEnum:i.a.HANDLE_ADDITIONAL_MASTER_DATA,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_ADDITIONAL_MASTER_DATA",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_ADDITIONAL_MASTER_DATA"},{roleDefinitionEnum:i.a.HANDLE_USER_ROLES,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_USER_ROLES",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_USER_ROLES"},{roleDefinitionEnum:i.a.HANDLE_RESOURCES_INSTITUTION,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_RESOURCES_INSTITUTION",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_RESOURCES_INSTITUTION"},{roleDefinitionEnum:i.a.PRESENCE_PLANNING,userRightTextKey:"INSTITUTION_ADMINISTRATOR_PRESENCE_PLANNING",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_PRESENCE_PLANNING"},{roleDefinitionEnum:i.a.HANDLE_SHARED_INBOX,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_SHARED_INBOX",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_SHARED_INBOX"},{roleDefinitionEnum:i.a.HANDLE_COMMON_FILES,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_COMMON_FILES",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_COMMON_FILES"},{roleDefinitionEnum:i.a.HANDLE_GROUPS_INSTITUTION,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_GROUPS_INSTITUTION",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_GROUPS_INSTITUTION"},{roleDefinitionEnum:i.a.HANDLE_DASHBOARDS,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_DASHBOARDS",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_DASHBOARDS"},{roleDefinitionEnum:i.a.HANDLE_PRESENCE,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_PRESENCE",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_PRESENCE"},{roleDefinitionEnum:i.a.HANDLE_DELETED_SECURE_FILES,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_DELETED_SECURE_FILES",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_DELETED_SECURE_FILES"},{roleDefinitionEnum:i.a.REVISION_HISTORY,userRightTextKey:"INSTITUTION_ADMINISTRATOR_REVISION_HISTORY",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_REVISION_HISTORY"},{roleDefinitionEnum:i.a.DELETE_ACCESSIBLE_ALBUM,userRightTextKey:"INSTITUTION_ADMINISTRATOR_DELETE_ACCESSIBLE_ALBUM",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_DELET
1E_ACCESSIBLE_ALBUM"},{roleDefinitionEnum:i.a.HANDLE_FILE_SENT_TO_ESDH,userRightTextKey:"INSTITUTION_ADMINISTRATOR_HANDLE_FILES_TO_ESDH",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_FILES_TO_ESDH"}],o=[{roleDefinitionEnum:i.a.BOARD_MEMBER,userRightTextKey:"OTHER_ADMINISTRATOR_BOARD_MEMBER",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_BOARD_MEMBER"},{roleDefinitionEnum:i.a.USE_GROUPS_AS_DISTRIBUTION_LISTS,userRightTextKey:"OTHER_ADMINISTRATOR_USE_GROUPS_AS_DISTRIBUTION_LISTS",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_USE_GROUPS_AS_DISTRIBUTION_LISTS"},{roleDefinitionEnum:i.a.EXPORT_SECURE_FILES,userRightTextKey:"OTHER_ADMINISTRATOR_EXPORT_SECURE_FILES",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_EXPORT_SECURE_FILES"},{roleDefinitionEnum:i.a.HANDLE_OTHERS_EVENTS,userRightTextKey:"OTHER_ADMINISTRATOR_HANDLE_OTHERS_EVENTS",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_HANDLE_OTHERS_EVENTS"},{roleDefinitionEnum:i.a.CONTACT_PARENT,userRightTextKey:"OTHER_ADMINISTRATOR_SEE_CONTACT_PARENTS_CONTACT_INFO",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_SEE_CONTACT_PARENTS_CONTACT_INFO"},{roleDefinitionEnum:i.a.INSTITUTION_CALENDAR_ADMIN,userRightTextKey:"OTHER_ADMINISTRATOR_INSTITUTION_CALENDAR_ADMIN",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_INSTITUTION_CALENDAR_ADMIN"},{roleDefinitionEnum:i.a.CREATE_PARENTAL_PERFORMANCE_MEETINGS,userRightTextKey:"OTHER_ADMINISTRATOR_CREATE_PARENTAL_PERFORMANCE_MEETINGS",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_CREATE_PARENTAL_PERFORMANCE_MEETINGS"},{roleDefinitionEnum:i.a.ASSOCIATE_SECURE_DOCUMENTS_TO_ALL_GROUPS,userRightTextKey:"OTHER_ADMINISTRATOR_ASSOCIATE_SECURE_DOCUMENTS_TO_ALL_GROUPS",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_ASSOCIATE_SECURE_DOCUMENTS_TO_ALL_GROUPS"},{roleDefinitionEnum:i.a.VIEW_NAME_PROTECTION,userRightTextKey:"OTHER_ADMINISTRATOR_VIEW_NAME_PROTECTION",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_VIEW_NAME_PROTECTION"},{roleDefinitionEnum:i.a.VIEW_PERSONAL_REFERENCE_DATA_FOR_ALL_CHILDREN_AND_GUARDIAN,userRightTextKey:"OTHER_ADMINISTRATOR_VIEW_PERSONAL_REFERENCE_DATA_FOR_ALL_CHILDREN_AND_GUARDIAN",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_VIEW_PERSONAL_REFERENCE_DATA_FOR_ALL_CHILDREN_AND_GUARDIAN"},{roleDefinitionEnum:i.a.SECURE_DOCUMENTS_ACCESS_ALL,userRightTextKey:"OTHER_ADMINISTRATOR_SECURE_DOCUMENTS_ACCESS_ALL",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_SECURE_DOCUMENTS_ACCESS_ALL"},{roleDefinitionEnum:i.a.VIEW_CONTACT_INFORMATION_ALL,userRightTextKey:"OTHER_ADMINISTRATOR_VIEW_CONTACT_INFORMATION_ALL",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_VIEW_CONTACT_INFORMATION_ALL"},{roleDefinitionEnum:i.a.ACCESS_GOOGLE_DRIVE,userRightTextKey:"OTHER_ADMINISTRATOR_ACCESS_GOOGLE_DRIVE",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_ACCESS_GOOGLE_DRIVE"},{roleDefinitionEnum:i.a.ACCESS_ONEDRIVE,userRightTextKey:"OTHER_ADMINISTRATOR_ACCESS_ONEDRIVE",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_ACCESS_ONEDRIVE"},{roleDefinitionEnum:i.a.EDIT_SHARED_ALBUMS,userRightTextKey:"INSTITUTION_ADMINISTRATOR_EDIT_SHARED_ALBUMS",rightDescriptionTextKey:"INSTITUTION_ADMINISTRATOR_EDIT_SHARED_ALBUMS_DESCRIPTION"},{roleDefinitionEnum:i.a.JOURNALING_TO_ESDH,userRightTextKey:"OTHER_ADMINISTRATOR_JOURNALIZING_TO_ESDH_SYSTEM",rightDescriptionTextKey:"OTHER_ADMINISTRATOR_DESCRIPTION_JOURNALIZING_TO_ESDH_SYSTEM"},{roleDefinitionEnum:i.a.HANDLE_MUNICIPAL_GROUP_HOME_ADMINISTRATION,userRightTextKey:"MUNICIPAL_ADMINISTRATOR_HANDLE_GROUP_HOME_ADMINISTRATION",rightDescriptionTextKey:"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_GROUP_HOME_ADMINISTRATION"}]},306:function(e,t,n){"use strict";var i=n(6),s=n(0),r=n(134),o=n(32),a=n(241),l=n(292),u=n(293),d={components:{AulaButton:o.a},props:{multiple:{type:Boolean,default:!0},formats:{type:Array,default:()=>[...a.a,...l.a,...u.a]}},emits:["change"],computed:{acceptedFormats(){return this.formats.map((e=>`.${e}`)).join(", ")}},methods:{handleFileSelection(e){this.$emit("change",e.target.files),this.$refs.fileInput.value=null},openFilePicker(){this.$refs.fileInput.click()}}},c=n(3),f=Object(c.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"file-select"},[n("AulaButton",{staticClass:"px-4 text-uppercase text-nowrap",attrs:{variant:"primary"},on:{click:e.openFilePicker}},[e._v("\n    "+e._s(e.$getText("SELECT_IMAGE"))+"\n  ")]),e._v(" "),n("input",{ref:"fileInput",staticClass:"d-none",attrs:{type:"file",multiple:e.multiple,accept:e.acceptedFormats},on:{change:e.handleFileSelection}})],1)}),[],!1,null,null,null).exports,_=n(83),p=n(61),T=n(20),h=n(15);const E="50% 50%";var I={components:{Icon:T.a,IconContainer:p.a,AulaButton:o.a,AulaImg:_.a},props:{file:{type:File,default:null}},emits:["rotate","delete"],data:()=>({rotationDegree:0}),computed:{iconClassEnum:()=>h.a,imageThumbnaiUrl(){return URL.createObjectURL(this.file)}},methods:{rotate(e){const t=this.$refs.imageThumbnail.$el.naturalWi
1dth/this.$refs.imageThumbnail.$el.naturalHeight<1;let n="";this.rotationDegree=this.rotationDegree+e,this.$refs.imageThumbnail.$el.style.transform="rotate("+this.rotationDegree+"deg)";let i=this.rotationDegree%360;switch(i<0&&(i+=360),i){case 0:n=t?"50% 4%":E;break;case 90:n=t?E:"4% 50%";break;case 180:n=t?"50% 96%":E;break;case 270:n=t?E:"96% 50%"}return this.$refs.imageThumbnail.$el.style.objectPosition=n,this.$emit("rotate",i)},deleteClicked(){return this.$emit("delete")}}},m=Object(c.a)(I,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avatar-upload-preview avatar-upload-preview-variables"},[e.file?n("div",{staticClass:"preview-container"},[n("AulaButton",{staticClass:"avatar-action rotate-counter-clockwise",attrs:{variant:"link",title:e.$getText("ROTATE_COUNTER_CLOCKWISE")},on:{click:function(t){return e.rotate(-90)}}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ROTATE_COUNTER_CLOCKWISE")))]),e._v(" "),n("IconContainer",{staticClass:"action-icon-container"},[n("Icon",{staticClass:"action-icon",attrs:{name:e.iconClassEnum.ROTATE_LEFT}})],1)],1),e._v(" "),n("AulaButton",{staticClass:"avatar-action rotate-clockwise",attrs:{variant:"link",title:e.$getText("ROTATE_CLOCKWISE")},on:{click:function(t){return e.rotate(90)}}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ROTATE_CLOCKWISE")))]),e._v(" "),n("IconContainer",{staticClass:"action-icon-container"},[n("Icon",{staticClass:"action-icon",attrs:{name:e.iconClassEnum.ROTATE_RIGHT}})],1)],1),e._v(" "),n("AulaButton",{staticClass:"avatar-action delete",attrs:{variant:"link",title:e.$getText("REMOVE_IMAGE")},on:{click:e.deleteClicked}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("REMOVE_IMAGE")))]),e._v(" "),n("IconContainer",{staticClass:"action-icon-container"},[n("Icon",{staticClass:"action-icon",attrs:{name:e.iconClassEnum.BIN}})],1)],1),e._v(" "),n("AulaImg",{ref:"imageThumbnail",staticClass:"uploaded-image",attrs:{"img-url":e.imageThumbnaiUrl}}),e._v(" "),n("div",{staticClass:"crop-overlay"})],1):e._e()])}),[],!1,null,"b7a622bc",null).exports;class A{constructor(e,t=1e4){this.extensions=e,this.maximumFileSize=t}validateSize(e){return e.size<=1024*this.maximumFileSize*1024}validateExtension(e){const t=this.getFileExtension(e);return this.extensions.includes(t)}getFileExtension(e){const t=e.name.split(".")||"";return t[t.length-1].toLowerCase()}}var S=n(46),R=n(131),g=n(421),v=n(98),O=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},b={components:{AulaAlert:R.a,AvatarUploadPreview:m,FileSelect:f},props:{profile:{type:Object,required:!0}},emits:["change"],data:()=>({selectedImageFile:null,rotationAngle:0,maxFileSize:null,isImageDimensionsValid:!0}),computed:{formats:()=>a.a,formatList(){return this.formats.join(", ")},validator(){return new A(this.formats,this.maxFileSize)},selectedMedia(){return this.selectedImageFile?{name:this.selectedImageFile.name,creator:{id:this.profile.id},media:{file:this.selectedImageFile,mediaType:S.a.IMAGE,rotationDegree:this.rotationAngle},size:this.selectedImageFile.size,isLoading:!1}:null}},mounted(){this.getMaxFileSize()},methods:{getMaxFileSize(){return O(this,void 0,void 0,(function*(){this.maxFileSize=yield g.a.getMaxFileSize()}))},handleFileSelected(e){return O(this,void 0,void 0,(function*(){const t=e[0];if(t&&this.validateFiles(t)){this.selectedImageFile=t,this.$emit("change",this.selectedMedia);try{this.isImageDimensionsValid=yield v.a.validateImageResolution(t,{maxWidth:1600,maxHeight:1600})}catch(e){this.isImageDimensionsValid=!1}}}))},updateRotateAngle(e){this.rotationAngle=e,this.$emit("change",this.selectedMedia)},deleteImage(){this.selectedImageFile=null,this.$emit("change",this.selectedMedia)},validateFiles(e){return!1===this.validator.validateSize(e)?(this.$refs.fileSizeWarningModal.show(),!1):!1!==this.validator.validateExtension(e)||(this.$refs.fileFormatWarningModal.show(),!1)}}},D=Object(c.a)(b,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avatar-upload"},[e.selectedImageFile?e._e():n("FileSelect",{attrs:{multiple:!1,formats:e.formats},on:{change:e.handleFileSelected}}),e._v(" "),e.selectedImageFile&&!e.isImageDimensionsValid?n("AulaAlert",{staticClass:"mb-3"},[e._v("\n    "+e._s(e.$getText("UPLOAD_MODAL_ERROR_MAX_WIDTH_HEIGHT_BODY"))+"\n  ")]):e._e(
1),e._v(" "),e.selectedImageFile?n("AvatarUploadPreview",{attrs:{file:e.selectedImageFile},on:{rotate:e.updateRotateAngle,delete:e.deleteImage}}):e._e(),e._v(" "),n("AulaModal",{ref:"fileSizeWarningModal",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.fileSizeWarningModal.hide()}}},[e._v("\n    "+e._s(e.$getText("UPLOAD_MODAL_ERROR_MAX_SIZE_BODY"))+"\n  ")]),e._v(" "),n("AulaModal",{ref:"fileFormatWarningModal",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.fileFormatWarningModal.hide()}}},[e._v("\n    "+e._s(e.$getText("UPLOAD_MODAL_ERROR_NOT_MEDIA"))+" "+e._s(e.formatList)+".\n  ")])],1)}),[],!1,null,"f8fb27c8",null).exports,N=n(97),C=n(13),y=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},P={components:{AvatarUpload:D},props:{profile:{type:Object,required:!0}},emits:["cancel","saved"],data:()=>({isUploadingForAllProfiles:!1,selectedMedia:null,isLoading:!1}),computed:Object.assign(Object.assign({},Object(i.c)({institutions:s.a.GET_INSTITUTIONS})),{userProfileStore:()=>Object(C.a)(),loggedInProfile(){return this.userProfileStore.institutionProfile},institutionName(){return this.profile.institutionName||this.userProfileStore.institutionProfile.institution.institutionName},canApplyForAllProfiles(){return this.loggedInProfile.profileId===this.profile.profileId&&this.institutions.length>1},canViewInstitutionDescription(){return this.canApplyForAllProfiles&&!this.isUploadingForAllProfiles}}),mounted(){this.isUploadingForAllProfiles=this.loggedInProfile.profileId===this.profile.profileId},methods:Object.assign(Object.assign(Object.assign({},Object(i.d)({setSuccessText:s.a.MUTATE_SUCCESS_TEXT,setErrorText:s.a.MUTATE_ERROR_TEXT})),Object(i.b)({createAttachments:s.a.CREATE_ATTACHMENTS})),{setSelectedMedia(e){this.selectedMedia=e},handleSubmitClicked(){return y(this,void 0,void 0,(function*(){this.isLoading=!0;const e=N.a.prepareAttachments([this.selectedMedia]),t=this.institutions.find((e=>e.institutionCode===this.profile.institutionCode));e.media[0].tags=[this.profile.id],e.ownerInstitutionProfileId=(null==t?void 0:t.institutionProfileId)||null,e.institutionCode=(null==t?void 0:t.institutionCode)||null;try{const t=(yield this.createAttachments(e)).media[0];yield this.updateProfilePicture(t),this.setSuccessText("UPDATE_PROFILE_PICTURE_TOASTR"),this.emitSaved()}catch(e){this.setErrorText("API_ERROR_GENERAL")}finally{this.isLoading=!1}}))},updateProfilePicture(e){const t={institutionProfileId:this.profile.id,mediaId:e.id,applyToAllInstitutionProfiles:this.isUploadingForAllProfiles};return r.a.updateProfilePicture(t)},emitCancel(){this.$emit("cancel")},emitSaved(){this.$emit("saved")}})},L=Object(c.a)(P,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"upload-avatar-form"},[n("div",{staticClass:"d-flex align-items-center"},[n("AvatarUpload",{attrs:{profile:e.profile},on:{change:e.setSelectedMedia}}),e._v(" "),!e.selectedMedia&&e.canViewInstitutionDescription?n("p",{staticClass:"ml-2 mb-0"},[e._v("\n      "+e._s(e.$getText("UPLOAD_AVATAR_UNDER_INSTITUTION"))+" "+e._s(e.institutionName)+"\n    ")]):e._e()],1),e._v(" "),e.canApplyForAllProfiles?n("b-form-checkbox",{staticClass:"mt-4",model:{value:e.isUploadingForAllProfiles,callback:function(t){e.isUploadingForAllProfiles=t},expression:"isUploadingForAllProfiles"}},[e._v("\n    "+e._s(e.$getText("FILEPICKER_APPLY_PICTURE_ON_ALL_PROFILES"))+"\n  ")]):e._e(),e._v(" "),e.selectedMedia&&e.canViewInstitutionDescription?n("p",{staticClass:"ml-4 mb-0"},[e._v("\n    "+e._s(e.$getText("UPLOAD_AVATAR_UNDER_INSTITUTION"))+" "+e._s(e.institutionName)+"\n  ")]):e._e(),e._v(" "),n("AulaFormFooter",{attrs:{"submit-text":"BUTTON_SAVE","is-loading":e.isLoading,"submit-disabled":!e.selectedMedia,"show-line":!1},on:{cancelClicked:e.emitCancel,submitClicked:e.handleSubmitClicked}})],1)}),[],!1,null,"6d174a5c",null);t.a=L.exports},309:function(e,t,n){"use strict";var i,s=n(17),r=n.n(s),o=n(12),a=n.n(o),l=n(1),u=n.n(l),d=n(7),c=n.n(d),f=n(2),_=n(6),p=n(24),T=n(30),h=n(8),E=n(16),I=n.n(E),m=n(75),A=n.n(m),S=n(39),R=n.n(S),g=n(22),v=n(138);!function(e){e.GROUPS="groups",e.EMPLOYEES="employees",e.GUARDIANS="guardians",e.CHILDREN="children",e.COMMON_INBOXES="commonInboxes"}(i||(i={}));var O=n(435),b=n(110),D=n(32),N=n(20),C=n(15),y=n(61),P=n(13);function L(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var k={directives:{preventDoubleClick:O.a},props:{includeOtpFromGuardianInSubGroup:{type:Boolean,default:!1},searchResultLoader:{type:Function,required:!1},results:{type:Array,required:!0,default:function(){return[]}},multiple:{type:Boolean,default:!0},multipleLimit:{type:Number,default:0},clearable:{type:Boolean,default:!1},highlight:{type:Boolean,default:!0},showSearchIcon:{type:Boolean,default:!1},placeholderTextkey:{type:String,default:"SEARCH_LABEL_CHILD"},splitGroupsParticipants:{type:Boolean,default:!0},disableSubGroupSelect:{type:Boolean,default:!1},enableRelativesForStudents:{type:Boolean,default:!1},resetSearchInput:{type:Boolean,default:!1},resetSelected:{type:Boolean,default:!1},instanceToReset:{type:[String,Number],default:null},disabled:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},inviteGroupWhenAddingMembers:{type:Boolean,default:!1},filterPortalRolesWhenAddingMembers:{type:Array,default:function(){return[]}},instance:{type:Number,default:null},existingParticipants:{type:Array,default:function(){return[]}},addExistingParticipants:{type:Boolean,default:!0},cssClass:{type:String,default:""},setFocus:{type:Boolean,default:!1},includeSelf:{type:Boolean,default:!1},remoteSearch:{type:Boolean,default:!0},closeDropdownAfterSelect:{type:Boolean,default:!0},closeSearchResult:{type:Boolean,default:!1},inviteMembersWhenSelectingGroup:{type:Boolean,default:!1},inviteMembersWhenSelectingGroupPortalRole:{type:Boolean,default:!1},disablePortalRolesMembersWhenExpandingGroup:{type:Array,default:function(){return[]}},onlyUniqueProfiles:{type:Boolean,default:!1},showMembersFromGroup:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},fromModule:{type:String,default:null},popperClass:{type:String,default:"aula-search-popper"},selectedProfileIdsForCheckbox:{type:Array,default:function(){return[]}},hoverText:{type:String,default:""},activeInstitutionCodeForGroupMemberships:{type:String,default:""},appendToBody:{type:Boolean,default:!0}},data:function(){return{selectedUsersAndGroups:[],allSelectedMembers:[],storedResults:[],showingChildRelations:!1,loading:!1,queryString:"",selectedBeforeChange:[],uniqueId:A()("aula-search-dropdown-"),updatingSelection:!1}},computed:M(M({iconClassEnum:function(){return C.a}},Object(_.c)({institutions:f.a.GET_INSTITUTIONS,groupMemberships:f.a.GET_GROUP_MEMBERSHIPS_LIGHT,calendarActiveInstProfileId:f.a.GET_CALENDAR_ACTIVE_INST_PROFILE_ID,isSearchComponentLoading:f.a.IS_SEARCH_COMPONENT_LOADING})),{},{userProfileStore:function(){return Object(P.a)()},profile:function(){return this.userProfileStore.institutionProfile},groupOptions:function(){var e;return(null===(e=this.storedResults.find((function(e){return e.value===i.GROUPS})))||void 0===e?void 0:e.options)||[]},canShowClearButton:function(){return this.clearable&&this.selectedUsersAndGroups.length>0&&!this.disabled}}),methods:M(M({},Object(_.b)({loadGroupMemberships:f.a.LOAD_GROUP_MEMBERSHIPS_LIGHT})),{},{handleClearClick:function(){this.$refs.clearSelectedUsersAndGroupsWarningModal.show()},clearSelectedUsersAndGroups:function(){this.emitSelected([]),this.$refs.clearSelectedUsersAndGroupsWarningModal.hide()},getIsOptionContentVisible:function(e){var t;return!(!this.remoteSearch||!e.icon||""===e.icon)&&("profile"===e.type||Boolean(e.isAllowMembersToBeShown||(null===(t=e.class)||void 0===t?void 0:t.includes("parent"))))},getSelectedStatusForProfile:function(e){if(this.multiple){var t=e.type===v.a.PROFILE&&this.selectedUsersAndGroups.some((function(t){return t.type===v.a.GROUP&&t.id===e.groupId&&t.portalRole===e.portalRole})),n=e.type===v.a.PROFILE&&this.selectedUsersAndGroups.some((function(t){return t.type===v.a.GROUP_HOME&&t.otpInboxId===e.otpInboxId}));return e.isSelected||t||n||this.selectedProfileIdsForCheckbox.some((function(t){return t==e.id}))}return e.isSelected||this.selectedProfileIdsForCheckbox.some((function(t){return t==e.id}))},handleIconClick:function(e){var t=this;return a()(c.a.mark((function n(){var i,s,r,o;return c.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.isSearchComponentLoading){n.next=2;break}return n.abrupt("return");case 2:if("group"!=e.type){n.next=40;break}if(null==e.portalRole){n.next=16;break}if(i=t.findWithAttr(t.storedResults.find((function(e){return"groups"==e.value})).options,"id",e.id,"portalRole",e.portalRole),e.isExpanded=!e.isExpanded,e.isExpanded){n.next=10;break}t.hideProfileDropdownItems(e),n.next=13;break;case 10:return n.next=12,t.loadGroupMemberships({groupId:e.id,portalRoles:t.getPortalRolesFromSubGroup(e),isSearchComponentLoading:!0,activeInstitutionCode:t.activeInstitutionCodeForGroupMemberships});case 12:t.expandGroupMembers(i,e.portalRole,e.id);case 13:e.isExpanded?e.icon="el-select__caret el-input__icon el-icon-arrow-up":e.icon="el-select__caret el-input__icon el-icon-arrow-down",n.next=38;break;case 16:if(null!=e.portalRole){n.next=38;break}s=L(t.storedResults.find((function(e){return"groups"===e.value})).options),n.prev=18,s.s();case 20:if((r=s.n()).done){n.next=30;break}if((o=r.value).id==e.id){n.next=24;break}return n.abrupt("continue",28);case 24:if("members"!==o.portalRole){n.next=27;break}return o.isHidden=!o.isHidden,n.abrupt("continue",28);case 27:null!=o.portalRole&&"group"==o.type?(o.isHidden=!o.isHidden,o.isHidden&&(o.icon="el-select__caret el-input__icon el-icon-arrow-down",t.hideProfileDropdownItems(o))):null==o.portalRole&&"group"==o.type&&(o.isExpanded=!o.isExpanded,o.isExpanded?o.icon="el-select__caret el-input__icon el-icon-arrow-up":o.icon="el-select__caret el-input__icon el-icon-arrow-down");case 28:n.next=20;break;case 30:n.next=35;break;case 32:n.prev=32,n.t0=n.catch(18),s.e(n.t0);case 35:return n.prev=35,s.f(),n.finish(35);case 38:n.next=41;break;case 40:"profile"==e.type&&e.portalRole==h.a.CHILD&&(t.showingChildRelations?(t.showingChildRelations=!1,t.loadResults(t.queryString)):(t.showingChildRelations=!0,t.loadChildRelations(e.id)));case 41:setTimeout((function(){t.applyLabel()}),200);case 42:case"end":return n.stop()}}),n,null,[[18,32,35,38]])})))()},getPortalRolesFromSubGroup:function(e){var t=[e.portalRole];return this.includeOtpFromGuardianInSubGroup&&e.portalRole===h.a.GUARDIAN&&t.pu
1sh(h.a.OTP),t},hideProfileDropdownItems:function(e){var t=this.storedResults.find((function(e){return"groups"===e.value}));t.options=t.options.filter((function(t){return!(t.fromSubGroup&&t.groupId==e.id&&t.portalRole===e.portalRole)}))},selectAllGroupOptions:function(e,t){var n,i=this,s=L(t.options);try{var r=function(){var t=n.value;if(e)0==i.selectedUsersAndGroups.filter((function(e){return e.value==t.value})).length&&i.selectedUsersAndGroups.push(t);else{var s=i.selectedUsersAndGroups.findIndex((function(e){return e.value===t.value}));s>-1&&i.selectedUsersAndGroups.splice(s,1)}};for(s.s();!(n=s.n()).done;)r()}catch(e){s.e(e)}finally{s.f()}this.emitSelected(this.selectedUsersAndGroups)},checkSelectAllGroupOptions:function(e){var t=this,n=!0;return e.options.map((function(e){t.selectedUsersAndGroups.includes(e)||(n=!1)})),n},expandGroupPortalRolesOnKeyDown:function(){var e=I()('.el-select-dropdown:visible .el-select-dropdown__item.hover[data-type="group"]');if(null==e.attr("data-parent")&&(e=e.prev()),"true"===e.attr("data-parent")&&this.storedResults.find((function(e){return"groups"===e.value}))){var t,n=e.attr("data-id"),i=L(this.storedResults.find((function(e){return"groups"===e.value})).options);try{for(i.s();!(t=i.n()).done;){var s=t.value;s.id==n&&null!=s.portalRole&&"group"===s.type&&(s.isHidden=!1)}}catch(e){i.e(e)}finally{i.f()}}},closeSearch:function(){this.storedResults=[],this.queryString=""},removeItem:function(e){this.selectedUsersAndGroups=this.selectedUsersAndGroups.filter((function(t){return t.value!=e.value})),this.applyLabel()},removeItems:function(e){this.selectedUsersAndGroups=this.selectedUsersAndGroups.filter((function(t){return!e.includes(t.value)})),this.applyLabel()},triggerResetValueOfSearchBox:function(){this.$refs.aulaSearchCustom.$refs.select.query="",this.$refs.aulaSearchCustom.$refs.select.previousQuery=""},uniquePush:function(e,t){return t.type==p.a.PROFILE.toLowerCase()?t.mailBoxOwnerType===g.a.OTP_INBOX?e.every((function(e){return e.otpInboxId!==t.otpInboxId}))&&e.push(t):this.isUniqueProfile(e,t)&&e.push(t):0==e.filter((function(e){return e.value==t.value})).length&&e.push(t),e},isUniqueProfile:function(e,t){return t.fromGroup||t.fromSubGroup?(this.onlyUniqueProfiles,0==e.filter((function(e){return e.value==t.value})).length&&(!this.includeSelf&&0==this.institutions.filter((function(e){return e.institutionProfileId==t.id})).length||this.includeSelf)):this.onlyUniqueProfiles?0==e.filter((function(e){return null!=e.profileId&&null!=t.profileId&&e.profileId==t.profileId})).length:0==e.filter((function(e){return e.value==t.value})).length},dontSelectSubGroup:function(e){if(this.selectedUsersAndGroups=this.selectedUsersAndGroups.filter((function(t){return t.id!=e.id||"group"!=t.type||t.portalRole!=e.portalRole})),null!=this.storedResults.find((function(e){return"groups"==e.value}))){var t,n=L(this.storedResults.find((function(e){return"groups"==e.value})).options);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.id==e.id&&i.portalRole==e.portalRole&&"group"==i.type&&(i.isSelected=!1)}}catch(e){n.e(e)}finally{n.f()}}},unselectAllSubGroups:function(){if(null!=this.storedResults.find((function(e){return"groups"==e.value}))){var e,t=L(this.storedResults.find((function(e){return"groups"==e.value})).options);try{for(t.s();!(e=t.n()).done;){var n=e.value;null!=n.portalRole&&"group"==n.type&&(n.isSelected=!1)}}catch(e){t.e(e)}finally{t.f()}}},dontSelectGroupButShowSubGroups:function(e){if(this.selectedUsersAndGroups=this.selectedUsersAndGroups.filter((function(t){return t.id!=e.id||t.portalRole!=e.portalRole||"group"!=t.type})),null!=this.storedResults.find((function(e){return"groups"==e.value}))){var t,n=L(this.storedResults.find((function(e){return"groups"==e.value})).options);try{for(n.s();!(t=n.n()).done;){var i=t.value;i.id==e.id&&null!=i.portalRole&&"group"==i.type||i.groupId==e.id&&i.fromSubGroup&&"profile"==i.type?i.isHidden=!i.isHidden:i.id==e.id&&null==i.portalRole&&"group"==i.type&&(i.isExpanded=!i.isExpanded,i.isExpanded?i.icon="el-select__caret el-input__icon el-icon-arrow-up":i.icon="el-select__caret el-input__icon el-icon-arrow-down")}}catch(e){n.e(e)}finally{n.f()}}},checkForDuplicateGroupsAndSubGroups:function(e,t){var n=e.filter((function(e){return"group"==e.type}));if(n.length>0){var i,s=null,r=L(n);try{var o=function(){var n=i.value;null!=s&&s==n.id||(s=n.id,e.filter((function(e){return e.id==n.id&&"parent"==e.class})).length>0&&(0==t.filter((function(e){return e.id==n.id&&"parent"==e.class})).length?e=e.filter((function(e){return e.id!=n.id||"child"!=e.class&&e.id==n.id})):e.filter((function(e){return e.id==n.id&&"child"==e.class})).length>0&&(e=e.filter((function(e){return e.value!==n.value})))))};for(r.s();!(i=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}return e},handleSubGroupMembers:function(e){var t,n=this.groupOptions.filter((function(t){return t.type===v.a.PROFILE&&t.groupId===e.groupId&&t.portalRole===e.portalRole}));(null===(t=this.selectedUsersAndGroups)||void 0===t?void 0:t.some((function(t){return t.type===v.a.GROUP&&t.id===e.groupId&&t.portalRole===e.portalRole})))?this.removeSubGroupSelection(n,e):this.addSubGroupSelection(n,e.groupId,e.portalRole)},removeSubGroupSelection:function(e,t){var n,i=this.selectedUsersAndGroups.length-1,s=e.filter((function(e){return e.id!==t.id})),o=this.selectedUsersAndGroups.findIndex((function(e){return e.type===v.a.GROUP&&e.
1id===t.groupId&&e.portalRole===t.portalRole}));this.selectedUsersAndGroups.splice(i,1),this.selectedUsersAndGroups.splice(o,1),(n=this.selectedUsersAndGroups).push.apply(n,r()(s))},addSubGroupSelection:function(e,t,n){var i=this.selectedUsersAndGroups.filter((function(e){return e.type===v.a.PROFILE&&e.groupId===t&&e.portalRole===n}));if(i.length===e.length){for(var s=this.selectedUsersAndGroups.length-1;s>=0;s--){var r=this.selectedUsersAndGroups[s];r.type===v.a.PROFILE&&r.groupId===t&&r.portalRole===n&&this.selectedUsersAndGroups.splice(s,1)}var o=this.groupOptions.find((function(e){return e.type===v.a.GROUP&&e.id===t&&e.portalRole===n}));this.selectedUsersAndGroups.push(o)}},handleSelection:function(e){e&&(e.type===v.a.PROFILE&&null!=e.groupId?this.handleSubGroupMembers(e):e.type===v.a.GROUP&&this.handleGroupSelection(e))},handleGroupSelection:function(e){for(var t=this.selectedUsersAndGroups.length-1;t>=0;t--){var n=this.selectedUsersAndGroups[t];n.type===v.a.PROFILE&&n.portalRole===e.portalRole&&n.groupId===e.id&&this.selectedUsersAndGroups.splice(t,1)}},emitSelected:function(e){var t=this;if(!this.isSearchComponentLoading&&!this.updatingSelection){var n=e[e.length-1];this.handleSelection(n);var i=this.selectedUsersAndGroups[this.selectedUsersAndGroups.length-1];if(null!=i&&"group"==i.type&&null==i.portalRole&&this.splitGroupsParticipants){if(!this.selectedBeforeChange.includes(i.value))return void this.dontSelectGroupButShowSubGroups(i)}else null!=i&&"group"==i.type&&null!=i.portalRole&&this.disableSubGroupSelect?(this.selectedBeforeChange=this.multiple?this.selectedUsersAndGroups.map((function(e){return e.value})):[this.selectedUsersAndGroups.value],this.dontSelectSubGroup(i)):0==e.length&&this.disableSubGroupSelect&&this.unselectAllSubGroups();var s=this.selectedBeforeChange.length;this.selectedBeforeChange=this.multiple?this.selectedUsersAndGroups.map((function(e){return e.value})):[this.selectedUsersAndGroups.value],this.remoteSearch?(this.closeDropdownAfterSelect&&(this.queryString=""),Array.isArray(e)&&e.length>0?function(){var n,o=t.selectedUsersAndGroups,a=[],l=0,u=(e=t.checkForDuplicateGroupsAndSubGroups(e,o)).length>s,d=L(e);try{var c=function(){var s=n.value;if(u&&"group"==s.type&&s.value&&s==i&&(s.value.includes("-members")&&t.fromModule==T.a.GROUPS||t.inviteMembersWhenSelectingGroup&&null==s.portalRole||t.inviteMembersWhenSelectingGroupPortalRole&&null!=s.portalRole)){t.inviteGroupWhenAddingMembers&&(a=t.uniquePush(a,s));var o=s.portalRole||"members",d={groupId:s.id,activeInstitutionCode:t.activeInstitutionCodeForGroupMemberships};"members"!=o&&(d.portalRoles=t.getPortalRolesFromSubGroup(s)),d.isSearchComponentLoading=!0,t.loadGroupMemberships(d).then((function(){if(a=t.addMembersFromGroup(a,o,s.id),++l==e.length){var n,i=0,u=L(t.selectedUsersAndGroups);try{var d=function(){var e=n.value;a.find((function(t){return t.value===e.value}))||i++,a=t.uniquePush(a,e)};for(u.s();!(n=u.n()).done;)d()}catch(e){u.e(e)}finally{u.f()}t.sendSelectedItems(a),i>0&&t.$nextTick((function(){return t.emitSelected(r()(t.selectedUsersAndGroups))}))}}))}else a=t.uniquePush(a,s),++l==e.length&&t.sendSelectedItems(a)};for(d.s();!(n=d.n()).done;)c()}catch(e){d.e(e)}finally{d.f()}}():(this.selectedUsersAndGroups=[],this.sendSelectedItems(e))):this.$emit("emitSelected",e)}},emitFocus:function(){this.$emit("emitFocus",!0)},emitRemoveTag:function(e){this.$emit("emitRemoveTag",e)},addMembersFromGroup:function(e,t,n){var i,s=this,r=L(this.groupMemberships);try{for(r.s();!(i=r.n()).done;){var o,a=i.value,l=L(a.institutionProfiles);try{var u=function(){var i=o.value;if(null==s.selectedUsersAndGroups.find((function(e){return e.type==p.a.PROFILE.toLowerCase()&&e.id==i.institutionProfileId})))i.id=i.institutionProfileId,i.fromGroup=!0,i.groups=[{id:n}],i.type=p.a.PROFILE.toLowerCase(),i.label=i.fullName+" ("+i.metadata+")",null!=i.otpInboxId?i.value=g.a.OTP_INBOX+i.otpInboxId+i.institutionCode:i.value=p.a.PROFILE.toLowerCase()+i.id+i.institutionCode,i.portalRole=a.portalRole,s.filterPortalRolesWhenAddingMembers.length>0?s.filterPortalRolesWhenAddingMembers.includes(i.portalRole)&&(e=s.uniquePush(e,i)):("members"==t||"members"!==t&&i.portalRole==t)&&(e=s.uniquePush(e,i));else{var r,l=L(s.selectedUsersAndGroups);try{for(l.s();!(r=l.n()).done;){var u=r.value;u.type==p.a.PROFILE.toLowerCase()&&u.id==i.institutionProfileId&&null!=u.groups&&null==u.groups.find((function(e){return e.id==n}))&&u.groups.push({id:n})}}catch(e){l.e(e)}finally{l.f()}}};for(l.s();!(o=l.n()).done;)u()}catch(e){l.e(e)}finally{l.f()}}}catch(e){r.e(e)}finally{r.f()}return e},sendSelectedItems:function(e){this.loading=!1,this.updatingSelection=!0,Array.isArray(e)&&!this.showMembersFromGroup&&(this.inviteMembersWhenSelectingGroup||this.inviteMembersWhenSelectingGroupPortalRole)?(e=this.onlyKeepMembersIfGroupIsSelected(e),this.allSelectedMembers=e.filter((function(e){return e.fromGroup})),this.selectedUsersAndGroups=e.filter((function(e){return null==e.fromGroup}))):this.selectedUsersAndGroups=e,this.updatingSelection=!1,this.multiple?null!==this.instance?this.$emit("emitSelected",{selectedItems:e,instance:this.instance}):this.$emit("emitSelected",e):null!==this.instance?this.$emit("emitSelected",{selectedItems:[e],instance:this.instance}):this.$emit("emitSelected",[e]),this.showingChildRelations=!1,this.triggerResetValueOfSearchBox(),(this.closeDropdownAfterSelect||!this.closeDropdownAfterSelect&&1==[].concat.apply([],this.storedResults.map((function(e){return e.options}))).length)&&(this.storedResults=[]),this.applyLabel()},onlyKeepMembersIfGroupIsSelected:function(e){var t,n=L(this.allSelectedMembers);try{var i=function(){var n,i=t.value,s=L(i.groups);try{var r=function(){var t=n.value;
1if(null!=e.find((function(e){return e.type===p.a.GROUP.toLowerCase()&&e.id===t.id&&e.portalRole===i.portalRole}))){var s=e.find((function(e){var t=e.id===i.id;return null!=e.otpInboxId&&(t=i.otpInboxId===e.otpInboxId),e.type===p.a.PROFILE.toLowerCase()&&t&&e.fromGroup}));null!=s?s.groups?s.groups.some((function(e){return e.id===t.id}))||s.groups.push(t):s.groups=[t]:e.push(i)}};for(s.s();!(n=s.n()).done;)r()}catch(e){s.e(e)}finally{s.f()}};for(n.s();!(t=n.n()).done;)i()}catch(e){n.e(e)}finally{n.f()}return e},applyLabel:function(){var e=this;setTimeout((function(){var t,n,i;if(Array.isArray(null===(t=e.$refs.aulaSearchCustom)||void 0===t||null===(n=t.$refs)||void 0===n||null===(i=n.select)||void 0===i?void 0:i.selected)){var s,r=L(e.$refs.aulaSearchCustom.$refs.select.selected);try{for(r.s();!(s=r.n()).done;){var o=s.value;o&&!o.currentLabel&&(o.currentLabel=o.value.label)}}catch(e){r.e(e)}finally{r.f()}e.$refs.aulaSearchCustom.$refs.select.resetInputHeight()}}),200)},loadChildRelations:function(e){var t=this;this.loading=!0;var n,i=null,s=L(this.storedResults);try{for(s.s();!(n=s.n()).done;){var r=n.value;null!=r.options.find((function(t){return t.id==e}))&&(i=r.options.find((function(t){return t.id==e})))}}catch(e){s.e(e)}finally{s.f()}var o=[],a=[],l=[],u=[],d=[];if(null!=i){var c=null!=i.name?i.name:""+i.institutionName!=null?" ("+i.institutionName+")":"";if(u.push({label:i.label?i.label:c,value:"profile"+i.id+i.institutionCode,name:i.name,id:i.id,type:"profile",institutionCode:i.institutionCode,email:i.email,icon:"icon-Aula_elipses get-child-relatives",profileId:i.profileId,portalRole:i.portalRole}),i.groupHomes&&i.groupHomes.forEach((function(e){l.push({label:t.groupHomeRelationLabel(e,i),value:"groupHome-"+e.id+"-"+e.otpInboxId,name:e.name,id:e.id,type:"groupHome",otpInboxId:e.otpInboxId,mailBoxOwnerType:g.a.OTP_INBOX,regardingChild:i.id,institutionCode:i.institutionCode,portalRole:h.a.OTP})})),null!=i.relatedProfiles){var f,_=L(i.relatedProfiles);try{for(_.s();!(f=_.n()).done;){var p=f.value,T=p.firstName+" "+p.lastName,E={label:"".concat(T," (").concat(p.metadata,")"),value:"profile"+p.id+i.institutionCode,name:T,id:p.id,type:"profile",institutionCode:i.institutionCode,email:p.email,profileId:p.profileId};switch(p.relationType){case"teacher":E.portalRole=h.a.EMPLOYEE,d.push(E);break;case"guardian":E.portalRole=h.a.GUARDIAN,a.push(E)}}}catch(e){_.e(e)}finally{_.f()}}if(null!=i.relatedGroups){var I,m=L(i.relatedGroups);try{for(m.s();!(I=m.n()).done;){var A=I.value;o.push({label:"".concat(A.name," (").concat(i.institutionName,")"),value:"group"+A.id+i.institutionCode,name:A.name,id:A.id,type:"group",institutionCode:i.institutionCode})}}catch(e){m.e(e)}finally{m.f()}}var S={label:"Barn",options:u,value:"children"},R={label:"Medarbejdere til "+i.name,options:d,value:"employees"},v={label:"Forældre til "+i.name,options:a,value:"guardians"},O={label:"Andre for "+i.name,options:l,value:"groupHomes"},b={label:"Grupper",options:o,value:"groups"};this.storedResults=[S,v,O,R,b]}this.loading=!1},loadResults:function(e){this.queryString=e,this.triggerResetValueOfSearchBox(),this.storedResults=[],e.length>0?(this.$refs.aulaSearchCustom.$refs.select.query=e,null!==this.instance?this.searchResultLoader(e,this.instance):this.searchResultLoader(e),this.loading=!0):this.storedResults=[]},expandGroupMembers:function(e,t,n){var i,s=this,r=L(this.groupMemberships);try{for(r.s();!(i=r.n()).done;){var o,a=i.value,l=0,u=L(a.institutionProfiles);try{var d=function(){var i=o.value;if(s.fromModule==T.a.EVENT&&s.calendarActiveInstProfileId==i.institutionProfileId||!s.includeSelf&&s.institutions.find((function(e){return e.institutionProfileId==i.institutionProfileId})))return"continue";(t==h.a.MEMBERS||t!=h.a.MEMBERS&&a.portalRole==t)&&(i.id=i.institutionProfileId,i.type=p.a.PROFILE.toLowerCase(),i.fromSubGroup=!0,i.label=i.fullName+" ("+i.metadata+")",null!=i.otpInboxId?i.value=g.a.OTP_INBOX+i.otpInboxId+i.institutionCode:i.value=p.a.PROFILE.toLowerCase()+i.id+i.institutionCode,i.portalRole=a.portalRole,i.groupId=n,i.groups=[{id:n}],i.class="child-member",s.disablePortalRolesMembersWhenExpandingGroup.includes(t)&&(i.disabled=!0),l++,s.storedResults.find((function(e){return"groups"==e.value})).options.splice(e+l,0,i))};for(u.s();!(o=u.n()).done;)d()}catch(e){u.e(e)}finally{u.f()}}}catch(e){r.e(e)}finally{r.f()}},findWithAttr:function(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,r=0;r<e.length;r+=1)if(null!=i&&null!=s){if(e[r][t]==n&&e[r][i]===s)return r}else if(e[r][t]==n)return r;return-1},mapExistingParticipants:function(){var e=this,t=R()(this.existingParticipants);this.existingParticipants.length>0&&(t=t.filter((function(e){return!0!==e.isHiddenFromSearchArea}))),this.multiple?t.length>0?(this.selectedUsersAndGroups=t.map((function(t){if("string"==typeof t)return t;var n=t.value||t.id,i=null!=t.label?t.label:null!=t.name?t.name:null!=t.fullName?t.fullName:t.title;return t.metadata&&(i=e.$getProfileDisplayName(t)),t.label=i,t.value=isNaN(Number(n))?n.toString():Number(n),t})),this.selectedBeforeChange=this.selectedUsersAndGroups.map((function(e){return e.value})),this.applyLabel()):0==t.length&&(this.selectedUsersAndGroups=[]):0==this.selectedUsersAndGroups.length&&t.length>0&&(this.selectedUsersAndGroups=t[0],this.selectedBeforeChange=[this.selectedUsersAndGroups.value],this.applyLabel())},groupHomeRelationLabel:function(e,t){if(null!=e&&null!=e.name&&null!=t&&null!=t.name&&null!=/\s/.exec(t.name)){var n=t.name.split(" ")[0];return"".concat(e.name," (").concat(n," ").concat(t.metadata,")")}return e.name}}),watch:{setFocus:function(e){e&&this.$el.getElementsByClassName("el-input__inner")[0].focus()},results:function(e){this.loading=!1,this.showingChildRelations||(this.storedResults=e)},queryString:function(e){if(this.showingChildRelations=!1,e.length>0){var t=this.$el.querySelector("#aulaSearchCustom-".concat(this.uniqueId," .el-select__input"));t&&(t.style.minWith="100px")}},resetSearchInput:function(){null!=this.instanceToReset?this.instance==this.instanceToReset&&(this.selectedUsersAndGroups=[],this.storedResults=[]):(this.multiple?this.selectedUsersAndGroups=[]:this.selectedUsersAndGroups=null,this.storedResults=[])},resetSelected:function(){this.multiple?this.selectedUsersAndGroups=[]:this.selectedUsersAndGroups=null},closeSearchResult:function(){this.closeSearch()},existingParticipants:function(){this.addExistingParticipants&&this.mapExistingParticipants()}},mounted:function(){var e=this;this.$eventHub.$on("removeAulaSearchItem",this.removeItem),this.$eventHub.$on("removeAulaSearchItems",this.removeItems),this.remoteSearch||(this.storedResults=this.results),null!=this.existingParticipants&&this.addExistingParticipants&&this.mapExistingParticipants(),I()(".el-select__input").focusout((function(){I()(this).css("min-width","unset"),e.applyLabel()}))},components:{IconContainer:y.a,Icon:N.a,AulaButton:D.a,KeywordHighlight:b.a}},x=k,H=n(3),$=Object(H.a)(x,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aula-search-outer"},[n("div",{staticClass:"aula-search"},[e.showSearchIcon?n("i",{staticClass:"icon-Aula_search"}):e._e(),e._v(" "),n("aula-select",{ref:"aulaSearchCustom",class:e.cssClass,attrs:{id:"aulaSearchCustom-"+e.uniqueId,multiple:e.multiple,"multiple-limit":e.multipleLimit,filterable:e.remoteSearch,remote:e.remoteSearch,disabled:e.disabled,"popper-class":e.popperClass,"reserve-keyword":"",placeholder:e.$getText(e.placeholderTextkey),"aria-label":e.$getText(e.placeholderTextkey),"remote-method":e.loadResults,loading:e.loading,"allow-create":e.allowCreate,"popper-append-to-body":e.appendToBody,"value-key":"value",title:e.$getText(e.hoverText)},on:{change:e.emitSelected,focus:e.emitFocus,"remove-tag":function(t){return e.emitRemoveTag(t)}},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.expandGroupPortalRolesOnKeyDown()}},model:{value:e.selectedUsersAndGroups,callback:function(t){e.selectedUsersAndGroups=t},expression:"selectedUsersAndGroups"}},[e._l(e.storedResults,(function(t,i){return[t.options.length>0?[n("el-option-group",{key:i,attrs:{"data-type":t.value,"data-values":t.options.map((function(e){return e.value}))}},[n("li",{staticClass:"el-select-group__title"},[t.canSelect?n("b-form-checkbox",{staticClass:"mb-0",attrs:{checked:e.checkSelectAllGroupOptions(t)},on:{change:function(n){return e.selectAllGroupOptions(n,t)}}},[e._v("\n                "+e._s(t.label.toUpperCase())+"\n              ")]):[e._v("\n                "+e._s(t.label)+"\n              ")]],2)]),e._v(" "),e._l(t.options,
1(function(t,s){return[n("aula-option",{directives:[{name:"show",rawName:"v-show",value:!t.isHidden,expression:"!item.isHidden"}],key:i+"-"+t.id+"-"+s,class:[{"with-checkbox":e.showCheckbox,"is-hidden":t.isHidden,selected:e.getSelectedStatusForProfile(t),"is-updating-selection":e.isSearchComponentLoading},t.class,t.type],attrs:{disabled:e.multipleLimit>0&&e.selectedUsersAndGroups.length==e.multipleLimit||t.disabled,"data-type":t.type,"data-portalrole":t.portalRole,"data-parent":null!=t.class&&t.class.includes("parent"),"data-id":t.id,"data-selected":t.isSelected,"data-groupid":t.groupId,value:t,label:t.labelWhenGroupIsChosen?t.labelWhenGroupIsChosen:t.label}},[e._t("optionContent",(function(){return[e.getIsOptionContentVisible(t)?n("i",{directives:[{name:"prevent-double-click",rawName:"v-prevent-double-click"}],class:t.icon,on:{click:function(n){return n.stopPropagation(),e.handleIconClick(t)}}}):e._e(),e._v(" "),e.remoteSearch&&null!=t.label?n("KeywordHighlight",{attrs:{queries:e.queryString}},[e._v("\n                  "+e._s(t.label)+"\n                ")]):e._e()]}),null,t)],2)]}))]:e._e()]}))],2),e._v(" "),e.canShowClearButton?n("AulaButton",{staticClass:"button-close",attrs:{"aria-label":e.$t("button.clear_all"),title:e.$t("button.clear_all"),variant:"link"},on:{click:e.handleClearClick}},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.CLOSE}})],1)],1):e._e()],1),e._v(" "),n("AulaModal",{ref:"warningNoMembersModal",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.warningNoMembersModal.hide()}}},[e._v("\n    "+e._s(e.$getText("SEARCH_NO_MEMBERS_IN_GROUP"))+"\n  ")]),e._v(" "),n("AulaModal",{ref:"clearSelectedUsersAndGroupsWarningModal",attrs:{"ok-text":"BUTTON_YES"},on:{okClicked:e.clearSelectedUsersAndGroups,cancelClicked:function(t){return e.$refs.clearSelectedUsersAndGroupsWarningModal.hide()}}},[e._t("reset-warning",(function(){return[e._v("\n      "+e._s(e.$t("warning.clear_everything_in_the_field"))+"\n      "),n("br"),e._v("\n      "+e._s(e.$t("warning.want_to_continue"))+"\n    ")]}))],2)],1)}),[],!1,null,"1ee928e8",null);t.a=$.exports},310:function(e,t,n){"use strict";var i=n(16),s=n.n(i),r={props:{showLine:{type:Boolean,default:!0},hide:{type:Boolean,default:!1},cancelText:{type:String,default:"CANCEL"},submitText:{type:String,default:"OK"},deleteText:{type:String,default:"DELETE"},isLoading:{type:Boolean,default:!0},showDelete:{type:Boolean,default:!1},showDeleteIcon:{type:Boolean,default:!1},showDeleteMobile:{type:Boolean,default:!1},showSubmit:{type:Boolean,default:!0},showCancel:{type:Boolean,default:!0},showCancelMobile:{type:Boolean,default:!1},submitDisabled:{type:Boolean,default:!1},buttonShapeMobile:{type:String,default:"circle",validator:function(e){return["circle","square"].includes(e.toLowerCase())}}},mounted:function(){s()(".send-btn").click((function(){setTimeout((function(){document.getElementsByClassName("alert-danger").length&&document.getElementsByClassName("alert-danger")[0].scrollIntoView(!0)}),500)}))},methods:{mobileSubmitClicked:function(){this.isLoading||this.submitDisabled||this.$emit("submitClicked")},mobileCancelClicked:function(){this.$emit("cancelClicked")}}},o=n(3),a=Object(o.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hide?e._e():n("footer",[e.showLine?n("hr"):e._e(),e._v(" "),n("div",{staticClass:"hide-tablet-down"},[e.showDelete?n("b-button",{staticClass:"mr-4",attrs:{variant:"light"},on:{click:function(t){return e.$emit("deleteClicked")}}},[e.showDeleteIcon?n("i",{staticClass:"icon-Aula_bin"}):e._e(),e._v("\n      "+e._s(e.$getText(e.deleteText))+"\n    ")]):e._e(),e._v(" "),e.showCancel?n("b-button",{staticClass:"mr-4",attrs:{variant:"link"},on:{click:function(t){return e.$emit("cancelClicked")}}},[e._v("\n      "+e._s(e.$getText(e.cancelText))+"\n    ")]):e._e(),e._v(" "),e.showSubmit?n("div",{staticClass:"submit-container"},[n("b-button",{staticClass:"send-btn mr-0",attrs:{"data-test":"aulaFormFooterSubmit","data-testid":"form-submit-button",variant:"primary",disabled:e.isLoading||e.submitDisabled},on:{click:function(t){return e.$emit("submitClicked")}}},[e._t("submit",(function(){return[e._v("\n          "+e._s(e.$getText(e.submitText))+"\n        ")]}))],2),e._v(" "),e.isLoading?n("aula-spinner",{staticClass:"aula-spinner"}
1):e._e()],1):e._e()],1),e._v(" "),n("div",{staticClass:"hide-tablet-up"},["square"===e.buttonShapeMobile?[e.showDeleteMobile?n("b-button",{staticClass:"mr-4",attrs:{variant:"light"},on:{click:function(t){return t.stopPropagation(),e.$emit("deleteClicked")}}},[e.showDeleteIcon?n("i",{staticClass:"icon-Aula_bin"}):e._e(),e._v("\n        "+e._s(e.$getText(e.deleteText))+"\n      ")]):e._e(),e._v(" "),e.showCancelMobile?n("b-button",{staticClass:"mr-4",attrs:{variant:"link"},on:{click:function(t){return t.stopPropagation(),e.mobileCancelClicked.apply(null,arguments)}}},[e._v("\n        "+e._s(e.$getText(e.cancelText))+"\n      ")]):e._e(),e._v(" "),e.showSubmit?n("div",{staticClass:"submit-container"},[n("b-button",{staticClass:"send-btn mr-0",attrs:{"data-test":"aulaFormFooterSubmit",variant:"primary",disabled:e.isLoading||e.submitDisabled},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.mobileSubmitClicked.apply(null,arguments)},click:e.mobileSubmitClicked}},[e._t("submit",(function(){return[e._v("\n            "+e._s(e.$getText(e.submitText))+"\n          ")]}))],2),e._v(" "),e.isLoading?n("aula-spinner",{staticClass:"aula-spinner"}):e._e()],1):e._e()]:[e.showCancelMobile&&e.showCancel?n("div",{staticClass:"doubleBtn first"},[n("div",{staticClass:"tool-link large"},[n("div",{staticClass:"aula-circle-large",on:{click:function(t){return t.stopPropagation(),e.mobileCancelClicked.apply(null,arguments)}}},[n("div",{staticClass:"aula-circle-small"},[n("a",{staticClass:"aula-circle",attrs:{href:"#"}},[e._v(e._s(e.$getText(e.cancelText)))])])])])]):e._e(),e._v(" "),e.showDeleteMobile&&e.showDelete?n("div",{staticClass:"doubleBtn first"},[n("div",{staticClass:"tool-link large"},[n("div",{staticClass:"aula-circle-large",on:{click:function(t){return t.stopPropagation(),e.$emit("deleteClicked")}}},[n("div",{staticClass:"aula-circle-small"},[n("a",{staticClass:"aula-circle",attrs:{href:"#"}},[e.showDeleteIcon?n("i",{staticClass:"icon-Aula_bin"}):e._e(),e._v("\n                "+e._s(e.$getText(e.deleteText)))])])])])]):e._e(),e._v(" "),e.showSubmit?n("div",{class:{doubleBtn:e.showCancelMobile&&e.showCancel}},[n("div",{staticClass:"d-flex justify-content-center mb-2"},[n("div",{staticClass:"submit-container"},[e.isLoading?n("aula-spinner",{staticClass:"aula-spinner mobile"}):e._e(),e._v(" "),n("div",{staticClass:"aula-circle-large send-btn",class:{disabled:e.isLoading||e.submitDisabled},attrs:{tabindex:"0"},on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.mobileSubmitClicked.apply(null,arguments)},click:e.mobileSubmitClicked}},[n("div",{staticClass:"aula-circle-small"},[n("div",{staticClass:"aula-circle"},[e._t("submit",(function(){return[e._v("\n                    "+e._s(e.$getText(e.submitText))+"\n                  ")]}))],2)])])],1)])]):e._e()]],2)])}),[],!1,null,"0fbf202a",null);t.a=a.exports},311:function(e,t,n){"use strict";var i=n(1),s=n.n(i),r=n(6),o=n(0);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={name:"DebugApiErrorModal",computed:l({},Object(r.c)({debugApiError:o.a.GET_DEBUG_API_ERROR})),watch:{debugApiError:function(){null!=this.debugApiError&&void 0!==this.$refs.debugApiError&&this.$refs.debugApiError.show()}},methods:l(l({},Object(r.d)({setDebugApiError:o.a.MUTATE_DEBUG_API_ERROR})),{},{hideDebugApiError:function(){this.setDebugApiError(null),this.$refs.debugApiError.hide()}})},d=n(3),c=Object(d.a)(u,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aula-modal",{ref:"debugApiError",attrs:{"header-text":"API_DEBUG_ERROR_MODAL","show-cancel":!1},on:{okClicked:e.hideDebugApiError,cancelClicked:e.hideDebugApiError,closeClicked:e.hideDebugApiError}},[e.debugApiError?[n("div",{staticClass:"api-information"},[n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("URL: ")])]),e._v(" "),n("b-col",{staticClass:"api-url"}
1,[n("code",[e._v(e._s(e.debugApiError.api))])])],1),e._v(" "),n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("Message: ")])]),e._v(" "),n("b-col",[n("strong",[e._v(e._s(e.debugApiError.message))])])],1),e._v(" "),n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("Type: ")])]),e._v(" "),n("b-col",[e._v(e._s(e.debugApiError.type))])],1),e._v(" "),n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("File: ")])]),e._v(" "),n("b-col",[e._v(e._s(e.debugApiError.file)+":"+e._s(e.debugApiError.line))])],1)],1),e._v(" "),n("h5",{staticClass:"mt-3"},[e._v("Trace")]),e._v(" "),n("div",{staticClass:"error-trace"},e._l(e.debugApiError.trace,(function(t,i){return n("div",{key:i},[n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("File: ")])]),e._v(" "),n("b-col",[e._v(e._s(t.file)+":"+e._s(t.line))])],1),e._v(" "),n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("Class: ")])]),e._v(" "),n("b-col",[e._v(e._s(t.class))])],1),e._v(" "),n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("Function: ")])]),e._v(" "),n("b-col",[e._v(e._s(t.function))])],1),e._v(" "),n("b-row",[n("b-col",{attrs:{cols:"2"}},[n("strong",[e._v("Args: ")])]),e._v(" "),n("b-col",[e._v(e._s(t.args))])],1),e._v(" "),n("hr")],1)})),0)]:e._e()],2)}),[],!1,null,"f3ca17a6",null);t.a=c.exports},312:function(e,t,n){"use strict";var i={name:"AulaListItem"},s=n(3),r=Object(s.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",e._g({staticClass:"list-item"},e.$listeners),[n("div",{staticClass:"before"},[e._t("before")],2),e._v(" "),n("div",{staticClass:"primary-content"},[e._t("default")],2),e._v(" "),n("div",{staticClass:"end"},[e._t("end")],2)])}),[],!1,null,"18e49194",null);t.a=r.exports},319:function(e,t,n){"use strict";var i=n(1),s=n.n(i),r=n(6),o=n(0),a=Object.freeze({logoutTime:36e5,warningTime:33e5,countDownTime:3e5}),l=n(5),u=n.n(l);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={data:function(){return{countDownTime:u()().format("mm:ss"),lastActivity:null,refreshInterval:null}},computed:c({},Object(r.c)({getKeepAlive:o.a.GET_KEEP_ALIVE})),methods:c(c({},Object(r.b)({keepAlive:o.a.ACTION_KEEPALIVE,disableImpersonationMode:o.a.DISABLE_IMPERSONATION_MODE})),{},{startSessionTimeout:function(){var e=this;this.lastActivity=u()();var t=0;this.refreshInterval=setInterval((function(){u()().diff(e.lastActivity,"miliseconds")>=a.logoutTime?(e.disableImpersonationMode(),window.location.href="/auth/logout.php"):u()().diff(e.lastActivity,"miliseconds")>=a.warningTime&&(t++,e.countDownTime=u()(a.countDownTime).subtract(t,"seconds").format("mm:ss"),null!=e.$refs.sessionTimeOutWarning&&e.$refs.sessionTimeOutWarning.show())}),1e3)}}),watch:{getKeepAlive:function(){clearInterval(this.refreshInterval),this.startSessionTimeout()}},mounted:function(){this.startSessionTimeout()}},_=n(3),p=Object(_.a)(f,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aula-modal",{ref:"sessionTimeOutWarning",attrs:{"show-cancel":!1,"disable-close":!0,"ok-text":"BUTTON_YES"},on:{okClicked:function(t){e.keepAlive(),e.$refs.sessionTimeOutWarning.hide()}}},[e._v("\n  "+e._s(e.$getText("MESSAGE_SESSION_TIMEOUT_WARNING_2"))+" "+e._s(e.countDownTime)+"\n  "+e._s(e.$getText("MESSAGE_SESSION_TIMEOUT_WARNING_3"))),n("br"),e._v("\n  "+e._s(e.$getText("MESSAGE_SESSION_TIMEOUT_WARNING_1"))+"\n  "+e._s(e.$getText("MESSAGE_SESSION_TIMEOUT_WARNING_1_CONTINUE"))+"\n")])}),[],!1,null,null,null);t.a=p.exports},320:function(e,t,n){"use strict";var i={name:"AulaList"},s=n(3),r=Object(s.a)(i,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("ul",[e._t("default")],2)}),[],!1,null,"d7ad750a",null);t.a=r.exports},342:function(e,t,n){"use strict";var i=n(12),s=n.n(i),r=n(1),o=n.n(r),a=n(7),l=n.n(a),u=n(0),d=n(2),c=n(6),f=n(8),_=n(14),p=n(10),T=n(25),h=n(16),E=n.n(h),I=n(249),m=n(52),A=n(32),S=Object.freeze({GROUPS:"GROUPS",ROLES_AND_RIGHTS:"ROLES_AND_RIGHTS",LOCK_USER:"LOCK_USER",USER_DATA:"USER_DATA",RESPONSE_HISTORY:"RESPONSE_HISTORY"}
1),R=n(45),g=n(17),v=n.n(g),O=n(42),b=n(222),D=n(75),N=n.n(D),C={name:"UserDetailsAdministrationUserRightHelpBox",props:{role:{type:Object,default:function(){}}},computed:{userRightButtonUniqueId:function(){return"user-right-".concat(N()())},isInstitutionalAdministrator:function(){return this.role.id===O.a.INSTITUTIONAL_ADMINISTRATOR.toString()},isMunicipalAdministrator:function(){return this.role.id===O.a.MUNICIPAL_ADMINISTRATOR.toString()},administratorDescriptions:function(){return this.isInstitutionalAdministrator?b.a:this.isMunicipalAdministrator?b.b:[]},roleDescription:function(){var e=this;return this.roleAndRightDescriptions.find((function(t){return t.roleDefinitionEnum.toString()===e.role.id}))},title:function(){var e;return this.isInstitutionalAdministrator||this.isMunicipalAdministrator?this.role.name:this.$getText(null===(e=this.roleDescription)||void 0===e?void 0:e.userRightTextKey)||""},description:function(){var e;return this.$getText(null===(e=this.roleDescription)||void 0===e?void 0:e.rightDescriptionTextKey)||""},roleAndRightDescriptions:function(){return[].concat(v()(b.b),v()(b.a),v()(b.c))}}},y=n(3),P=Object(y.a)(C,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("help-box",{attrs:{id:e.userRightButtonUniqueId,title:e.title,body:e.description},scopedSlots:e._u([e.administratorDescriptions?{key:"body",fn:function(){return e._l(e.administratorDescriptions,(function(t,i){return n("div",{key:i,staticClass:"my-2"},[n("b",[e._v(e._s(e.$getText(t.userRightTextKey))+":")]),e._v("\n      "+e._s(e.$getText(t.rightDescriptionTextKey))+"\n    ")])}))},proxy:!0}:null],null,!0)})}),[],!1,null,null,null).exports,L={name:"UserDetailsAdministrationIndividualUserRights",components:{UserDetailsAdministrationUserRightHelpBox:P},inject:{getSelectedUserAssignedRoles:R.a.selectedUserAssignedRoles,assignRolesToUser:R.a.assignRolesToUser},data:function(){return{selectedRoleId:null}},computed:{selectedUserAssignedRoles:function(){return this.getSelectedUserAssignedRoles()}},methods:{onRemoveRoleClicked:function(e){this.selectedRoleId=e,this.$refs.modalDeleteRolesAndRights.show()},onDeleteRoleClicked:function(){this.deleteRole(this.selectedRoleId),this.$refs.modalDeleteRolesAndRights.hide()},deleteRole:function(e){var t={roleIdsToAssign:this.selectedUserAssignedRoles.filter((function(t){return t.id!==e})).map((function(e){return e.id})),roleIdsToUnAssign:[e]};this.assignRolesToUser(t)}}},w=Object(y.a)(L,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("b-table-simple",[n("caption",[e._v("\n      "+e._s(e.$getText("INDIVIDUAL_USER_RIGHTS"))+"\n    ")]),e._v(" "),n("b-thead",[n("b-tr",[n("b-th",{staticClass:"text-capitalize",attrs:{colspan:"2"}},[e._v(e._s(e.$getText("USER_RIGHT")))])],1)],1),e._v(" "),n("b-tbody",[0===e.selectedUserAssignedRoles.length?n("b-tr",[n("b-td",{staticClass:"text-center cursor-default",attrs:{colspan:"2"}},[e._v(e._s(e.$getText("NO_ASSIGNED_ROLES")))])],1):e._e(),e._v(" "),e._l(e.selectedUserAssignedRoles,(function(t){return n("b-tr",{key:t.id},[n("b-td",{staticClass:"cursor-default"},[e._v("\n          "+e._s(t.name)+"\n          "),n("UserDetailsAdministrationUserRightHelpBox",{attrs:{role:t}})],1),e._v(" "),n("b-td",{staticClass:"action-container cursor-default"},[n("b-btn",{staticClass:"py-0 px-1",attrs:{"aria-label":e.$getText("ARIA_LABEL_DELETE"),size:"sm",variant:"text"},on:{click:function(n){return e.onRemoveRoleClicked(t.id)}}},[n("i",{staticClass:"icon-Aula_bin m-0"})])],1)],1)}))],2)],1),e._v(" "),n("aula-modal",{ref:"modalDeleteRolesAndRights",attrs:{"ok-text":"YES"},on:{cancelClicked:function(t){return e.$refs.modalDeleteRolesAndRights.hide()},okClicked:e.onDeleteRoleClicked}},[e._v("\n    "+e._s(e.$getText("DELETE_ROLE_WARNING"))),n("br"),e._v("\n    "+e._s(e.$getText("DELETE_ROLE_CONFIRMATION"))+"\n  ")])],1)}),[],!1,null,"7572bc7c",null).exports,U=Object.freeze({onInstitutionGroupClick:Symbol(),lockReasonValue:Symbol(),onUpdateLockReason:Symbol(),setShowLockReasonForm:Symbol(),refreshDataTableCallbackService:Symbol(),showLockReasonMaxCharacterWarning:Symbol(),setInstitutionProfile:Symbol()}),M={name:"UserDetailsAdministrationGroupMembershipRights",components:{UserDetailsAdministrationUserRightHelpBox:P},inject:{getGroupsWithAssignedRoles:R.a.groupsWithAssignedRoles,getCanCurrentUserAccessGroups:R.a.canCurrentUserAccessGroups,onInstitutionGroupClick:U.onInstitutionGroupClick},computed:{groupsWithAssignedRoles:function(){return this.getGroupsWithAssignedRoles()},canCurrentUserAccessGroups:function(){return this.getCanCurrentUserAccessGroups()}},methods:{onGroupClicked:function(e){this.canCurrentUserAccessGroups&&this.onInstitutionGroupClick({id:e.groupId,institutionCode:e.institutionCode})}}},k=Object(y.a)(M,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-table-simple",[n("caption",[e._v("\n    "+e._s(e.$getText("GROUP_MEMBERSHIP_RIGHTS"))+"\n  ")]),e._v(" "),n("b-thead",[n("b-tr",[
1n("b-th",{staticClass:"text-capitalize"},[e._v(e._s(e.$getText("GROUP")))]),e._v(" "),n("b-th",{staticClass:"text-capitalize"},[e._v(e._s(e.$getText("USER_RIGHT")))])],1)],1),e._v(" "),n("b-tbody",[0===e.groupsWithAssignedRoles.length?n("b-tr",[n("b-td",{staticClass:"text-center cursor-default",attrs:{colspan:"2"}},[e._v(e._s(e.$getText("NO_ASSIGNED_ROLES")))])],1):e._e(),e._v(" "),e._l(e.groupsWithAssignedRoles,(function(t){return n("b-tr",{key:t.groupId},[n("b-td",{staticClass:"align-top",class:{"cursor-default":!e.canCurrentUserAccessGroups},on:{click:function(n){return e.onGroupClicked(t)}}},[e._v(e._s(t.groupName))]),e._v(" "),n("b-td",{staticClass:"cursor-default"},e._l(t.assignments,(function(t){return n("div",{key:t.roleDefinition.id,staticClass:"m-1"},[e._v("\n          "+e._s(t.roleDefinition.name)+"\n          "),n("UserDetailsAdministrationUserRightHelpBox",{attrs:{role:t.roleDefinition}})],1)})),0)],1)}))],2)],1)}),[],!1,null,"0b45a114",null).exports,x=n(456),H=n(111),$=n(431);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G={name:"UserDetailsAdministrationTabsRolesAndRights",components:{RoleAndRightAssignments:x.a,UserDetailsAdministrationGroupMembershipRights:k,UserDetailsAdministrationIndividualUserRights:w},inject:{getInstitutionProfile:R.a.institutionProfile,onDescriptionLinkClicked:R.a.onDescriptionLinkClicked},provide:function(){var e,t=this;return e={},o()(e,R.a.selectedInstitution,(function(){return t.selectedInstitution})),o()(e,R.a.roleDefinitions,(function(){return t.roleDefinitions})),o()(e,R.a.selectedUserAssignedRoles,(function(){return t.selectedUserAssignedRoles})),o()(e,R.a.groupsWithAssignedRoles,(function(){return t.groupsWithAssignedRoles})),o()(e,R.a.canCurrentUserAccessGroups,(function(){return t.canCurrentUserAccessGroups})),o()(e,R.a.assignRolesToUser,(function(e){var n=e.roleIdsToAssign,i=e.roleIdsToUnAssign;return t.assignRolesToUser({roleIdsToAssign:$.a.getRoleIdsToAssign({existingRoles:t.selectedUserAssignedRoles,roleIdsToAssign:n,roleIdsToUnAssign:i}),institutionCode:t.institutionProfile.institutionCode,institutionProfileId:t.institutionProfile.id})})),e},data:function(){return{isLoading:!1}},computed:F(F({},Object(c.c)({roleDefinitions:d.a.GET_ROLE_DEFINITIONS,selectedInstitution:d.a.GET_SELECTED_INSTITUTION,selectedUserAssignedRoles:d.a.GET_SELECTED_USER_EXPLICIT_ROLES,groupsWithAssignedRoles:d.a.GET_SELECTED_USER_IMPLICIT_ROLES,canCurrentUserAccessGroups:d.a.GET_CAN_SELECTED_USER_ACCESS_GROUPS})),{},{institutionProfile:function(){return this.getInstitutionProfile()},scopeType:function(){return this.institutionProfile.institutionType===T.a.MUNICIPALITY?H.a.MUNICIPALITY:this.institutionProfile.institutionType===T.a.CENTRAL?H.a.CENTRAL:this.institutionProfile.institutionType===T.a.SCHOOL||this.institutionProfile.institutionType===T.a.DAYCARE?H.a.INSTITUTION:null}}),mounted:function(){this.initializeData()},methods:F(F({},Object(c.b)({getSelectedUserAssignedRoles:d.a.ACTION_GET_SELECTED_USER_ASSIGNED_ROLES,getSelectedUserRoleDefinitions:d.a.ACTION_GET_SELECTED_USER_ROLE_DEFINITIONS,assignRolesToUser:d.a.ASSIGN_ROLES_TO_SELECTED_USER})),{},{initializeData:function(){var e=this,t=[];this.isLoading=!0,t.push(this.getSelectedUserAssignedRoles({institutionProfileId:this.institutionProfile.id})),t.push(this.getSelectedUserRoleDefinitions({portalRole:this.institutionProfile.role,scopeType:this.scopeType})),Promise.all(t).then((function(){e.isLoading=!1}))},onDescriptionsClicked:function(){this.onDescriptionLinkClicked()}})},j=Object(y.a)(G,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isLoading?n("aula-spinner"):[n("p",[e._v(e._s(e.$getText("DESCRIPTION_ROLES_AND_RIGHTS")))]),e._v(" "),n("div",{staticClass:"d-flex justify-content-between align-items-center"},[n("a",{staticClass:"description-modal-link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.onDescriptionsClicked.apply(null,arguments)}}},[n("u",[e._v(e._s(e.$getText("USER_RIGHT_OVERVIEW_OPEN")))])]),e._v(" "),n("RoleAndRightAssignments")],1),e._v(" "),n("UserDetailsAdministrationIndividualUserRights",{staticClass:"mt-2 mb-4"}),e._v(" "),n("UserDetailsAdministrationGroupMembershipRights",{staticClass:"mt-2 mb-4"})]],2)}),[],!1,null,null,null),Y=j.exports,q={name:"UserDetailsAdministrationGroupsWithRoles",inject:{getGroupsWithRoleDefinitions:R.a.groupsWithRoleDefinitions,getNumberOfGroups:R.a.numberOfGroups,getInstitutionProfile:R.a.institutionProfile,onInstitutionGroupClick:U.onInstitutionGroupClick},props:{isLoading:{type:Boolean,default:!1}},data:function(){return{pageSize:20}},computed:{institutionProfile:function(){return this.getInstitutionProfile()},groupsWithRoleDefinitions:function(){return this.getGroupsWithRoleDefinitions()},roleFields:function(){return[{id:O.a.WRITE_POST_GROUP.toString(),label:this.$getText("WRITE_GROUP_POSTS")},{id:O.a.INVITE_GROUP_TO_EVENT.toString(),label:this.$getText("CREATE_EVENTS")},{id:O.a.SHARE_MEDIA_WITH_GROUP.toString(),label:this.$getText("SHARE_MEDIA")},{id:O.a.WRITE_MESSAGE_GROUP.toString(),label:this.$getText("CREATE_MESSAGES")}]},numberOfGroups:function(){return this.getNumberOfGroups()}},methods:{getHasRoleOnGroup:function(e,t){return e.map((function(e){return e.id})).includes(t.id)},onPageChanged:function(e){this.$emit("onPageChanged",e)},onGroupClicked:function(e){e.isAccessibleByCurrentUser&&this.onInstitutionGroupClick({id:e.groupId,institutionCode:this.institutionProfile.institutionCode})}}};function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?V(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W={name:"UserDetailsAdministrationTabsGroups",components:{UserDetailsAdministrationGroupsWithRoles:Object(y.a)(q,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.isLoading?n("aula-spinner"):n("b-table-simple",[n("caption",[e._v("\n      "+e._s(e.$getText("RIGHTS_IN_GROUPS"))+"\n    ")]),e._v(" "),n("b-thead",[n("b-tr",[n("b-th",{staticClass:"text-capitalize"},[e._v(e._s(e.$getText("GROUP")))]),e._v(" "),e._l(e.roleFields,(function(t,i){return n("b-th",{key:i,staticClass:"role-table-header text-capitalize"},[e._v("\n          "+e._s(t.label)+"\n        ")])}))],2)],1),e._v(" "),n("b-tbody",e._l(e.groupsWithRoleDefinitions,(function(t){return n("b-tr",{key:t.groupId,on:{click:function(n){return e.onGroupClicked(t)}}},[n("b-td",{class:{"cursor-default":!t.isAccessibleByCurrentUser}},[e._v(e._s(t.groupName))]),e._v(" "),e._l(e.roleFields,(function(i,s){return n("b-td",{key:s,staticClass:"text-center",class:{"cursor-default":!t.isAccessibleByCurrentUser}},[e.getHasRoleOnGroup(t.roleDefinitions,i)?n("i",{staticClass:"icon-Aula_check"}):e._e()])}))],2)})),1)],1),e._v(" "),n("b-pagination",{staticClass:"justify-content-end",attrs:{value:1,"total-rows":e.numberOfGroups,"per-page":e.pageSize,"aria-controls":"my-table"},on:{change:e.onPageChanged}})],1)}),[],!1,null,"01d94c26",null).exports},provide:function(){var e,t=this;return e={},o()(e,R.a.groupsWithRoleDefinitions,(function(){return t.groupsWithRoleDefinitions})),o()(e,R.a.numberOfGroups,(function(){return t.numberOfGroups})),e},inject:{getInstitutionProfile:R.a.institutionProfile},data:function(){return{isLoading:!1}},computed:K(K({},Object(c.c)({groupsWithRoleDefinitions:d.a.GET_SELECTED_USER_GROUPS_WITH_ROLE_DEFINITIONS,numberOfGroups:d.a.GET_SELECTED_USER_NUMBER_OF_GROUPS})),{},{institutionProfile:function(){return this.getInstitutionProfile()}}),mounted:function(){this.loadGroupsWithRolesByPage(1)},methods:K(K({},Object(c.b)({getAssignedGroupRoles:d.a.ACTION_GET_ASSIGNED_GROUP_ROLES})),{},{onGroupPageChanged:function(e){this.loadGroupsWithRolesByPage(e)},loadGroupsWithRolesByPage:function(e){var t=this;this.isLoading=!0,this.getAssignedGroupRoles({institutionProfileId:this.institutionProfile.id,pageNumber:e}).then((function(){t.isLoading=!1}))}})},Q=Object(y.a)(W,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("UserDetailsAdministrationGroupsWithRoles",{attrs:{"is-loading":e.isLoading},on:{onPageChanged:e.onGroupPageChanged}})}),[],!1,null,null,null).exports,X=n(136),z=n(194),Z=n(21),J={name:"UserDetailsPortalAdministrationTabsLockUserTable",inject:{callbackService:U.refreshDataTableCallbackService,getInstitutionProfile:R.a.institutionProfile},data:function(){return{lockStatusEnum:X.a,causeBodyCell:"cell(cause)",incidentBodyCell:"cell(incident)",items:[],perPage:20,currentPage:1,serverSideUrl:"?method=profilesAdmin.getLockHistory",fields:{date:{label:this.$getText("USERS_LOCK_USER_TABLE_HEADER_DATE")},user:{label:this.$getText("USERS_LOCK_USER_TABLE_HEADER_USER")},incident:{label:this.$getText("USERS_LOCK_USER_TABLE_HEADER_INCIDENT")},cause:{label:this.$getText("USERS_LOCK_USER_TABLE_HEADER_CAUSE")}}}},computed:{institutionProfile:function(){return this.getInstitutionProfile()}},mounted:function(){this.callbackService.addCallback(this.refreshTable)},beforeDestroy:function(){this.callbackService.removeCallback(this.refreshTable)},methods:{getItems:function(e){return e.data.data.lockHistory.map((function(e){return{date:Z.a.date(z.a.dayMonthYearTime,e.createdAt),user:e.createdBy.name,incident:e.lockStatus,cause:e.reason}}))},getParams:function(e){return{institutionProfileId:this.institutionProfile.id,offset:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},refreshTable:function(){this.$refs.table.refreshCurrentPage()}}},ee={name:"UserDetailsPortalAdministrationTabsLockUser",components:{UserDetailsPortalAdministrationTabsLockUserTable:Object(y.a)(J,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("aula-table",{ref:"table",attrs:{"per-page":e.perPage,search:!1,fields:e.fields,"current-page":e.currentPage,responsive:!0,"table-ref":"usersLockReasons","server-side":!0,"server-side-url":e.serverSideUrl,"is-http-post":!1,"prepare-params":e.getParams,"prepare-items":e.getItems,"show-pagination":!0},scopedSlots:e._u([{key:e.causeBodyCell,fn:function(t){return[n("p",{staticClass:"m-0 cause-content"},[e._v("\n      "+e._s(t.item.cause)+"\n    ")])]}},{key:e.incidentBodyCell,fn:function(t){return[t.item.incident===e.lockStatusEnum.LOCKED||t.item.incident===e.lockStatusEnum.LOCKING?n("span",[e._v("\n      "+e._s(e.$getText("USERS_LOCK_USER_INCIDENT_LOCKED"))+"\n    ")]):n("span",[e._v("\n      "+e._s(e.$getText("USERS_LOCK_USER_INCIDENT_UNLOCKED"))+"\n    ")])]}}],null,!0)})}),[],!1,null,"2e15db93",null).exports,AulaButton:A.a},inject:{setShowLockReason:U.setShowLockReasonForm,getInstitutionProfile:R.a.institutionProfile,setInstitutionProfileOfLockUser:U.setInstitutionProfile},computed:{institutionProfile:function(){return this.getInstitutionProfile()},isLockButtonDisabled:function(){return this.institutionProfile.profileStatus===X.a.DEACTIVATED},lockUserTextKey:function(){var e=this.institutionProfile.profileStatus;return e===X.a.LOCKED||e===X.a.LOCKING?"USERS_UNLOCK_USER":"USERS_LOCK_USER"},showLockingWarning:function(){return this.institutionProfile.profileStatus===X.a.LOCKING},showUnlockingWarning:function(){return this.institutionProfile.profileStatus===X.a.UNLOCKING}},methods:{onLockUserClick:function(e){this.setShowLockReason(e),this.setInstitutionProfileOfLockUser(this.institutionProfile)}}},te=Object(y.a)(ee,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("p",{staticClass:"my-4"},[e._v(e._s(e.$getText("USERS_LOCK_USER_INTRO")))]),e._v(" "),n("AulaButton",{staticClass:"text-uppercase",attrs:{disabled:e.isLockButtonDisabled,variant:"primary"},on:{click:e.onLockUserClick}},[n("span",[e._v(e._s(e.$getText(e.lockUserTextKey)))])]),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.showLockingWarning}},[e._v("\n    "+e._s(e.$getText("USERS_LOCK_USER_LOCKING_WARNING"))+"\n  ")]),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.showUnlockingWarning}},[e._v("\n    "+e._s(e.$getText("USERS_LOCK_USER_UNLOCKING_WARNING"))+"\n  ")]),e._v(" "),n("hr",{staticClass:"mb-5 mt-4"}),e._v(" "),n("UserDetailsPortalAdministrationTabsLockUserTable")],1)}),[],!1,null,null,null).exports,ne=n(37),ie=n(5),se=n.n(ie),re=Object.freeze({ADDITIONAL_DATA:"Supplerende stamdata og tilladelser",CONSENTS:"Deling af kontaktoplysninger",CONTACT_INFO:"Kontaktinformation",DESCRIPTION:"Beskrivelse",MASTER_DATA:"Stamdata",GROUP:"Gruppe",POST:"Opslag",SUBSCRIPTION:"Beskedtråd",EVENT:"Begivenhed",INVITATION:"Invitation",DOCUMENT:"Dokument",MEDIA:"Medie",PICKUP:"Henteansvarlige",HOLIDAY:"Ferie",COMMENTS:"Kommentarer"}),oe=Object.freeze({EVENTS:"Events",THREADS:"Threads",DOCUMENTS:"Documents",MEDIA:"Media",POSTS:"Posts",GROUPS:"Groups",COMMENTS:"Comments",CONTACT_INFORMATION:"AdditionalDataConsentContactInfo",PICKUP_RESPONSIBLES:"PickupResponsibles"}),ae=n(164),le=n(78),ue=n(23),de=n(107);function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ce(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _e={props:{selectedUser:Object,type:{type:String,default:null},isDisabledDelete:{type:Boolean,default:!1},showDateSearch:{type:Boolean,default:!0},headerText:{type:String,default:""},parent:{type:String,default:""},tableRef:{type:String,default:""},url:{type:String,default:""},perPage:{type:Number,default:20},showCategory:{type:Boolean,default:!1},showSensitivity:{type:Boolean,default:!1},showCreator:{type:Boolean,default:!0},prepareParams:Function,prepareItems:Function},data:function(){return{parentTypes:_.a,moment:se.a,allUserDataSelected:!1,showDateWarning:!1,showTable:!1,tableItems:[],response:[],startDate:se()().subtract(1,"years").format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),endDate:se()().format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),fields:fe(fe({creationDate:{label:this.$getText("USERS_FIELDS_CREATION_DATE")}},this.parent==_.a.CALENDAR&&{eventDate:{label:this.$getText("USERS_FIELDS_START_END")}}),{},{category:{label:this.$getText("USERS_FIELDS_CATEGORY")},title:{label:this.$getText("USERS_FIELDS_TITLE")},description:{label:this.$getText("USERS_FIELDS_DESCRIPTION"),type:"html"},contactPerson:{label:this.$getText("USERS_FIELDS_CONTACT_PERSON")},sensitivity:{label:this.$getText("USERS_FIELDS_SENSITIVITY")},actions:{label:this.$getText("USERS_FIELDS_ACTIONS"),type:"action"}}),isLoading:!1}},computed:{isoWeekdayEnum:function(){return de.a},isStartDateAfterEndDate:function(){return Object(ue.m)(this.startDate,this.endDate)},isValidDates:function(){return Object(ue.t)(this.startDate)&&Object(ue.t)(this.endDate)},dateWarningText:function(){return this.isStartDateAfterEndDate?this.$getText("ALL_USER_DATA_START_DATE_IS_AFTER_END_DATE"):this.isValidDates?"":this.$getText("ALL_USER_DATA_DATE_IS_INVALID")},formattedStartDate:function(){var e=Z.a.getStartOf(this.startDate,"day");return Z.a.formatDate(e,"DD-MM-YYYY")},formattedEndDate:function(){var e=Z.a.getEndOf(this.endDate,"day");return Z.a.formatDate(e,"DD-MM-YYYY")}},methods:fe(fe({unfoldTable:function(){this.isLoading||(this.showTable=!this.showTable)},exportTable:function(){var e=this;this.isLoading=!0;var t=Z.a.getCurrentDateTime(),n=Z.a.getStartOf(this.startDate,"day"),i=Z.a.getEndOf(this.endDate,"day");Z.a.isSameOrAfter(i,t)&&(i=t),this.handleEntitiesRTBF({instProfileId:this.selectedUser.id,type:this.t
1ype,operationType:"Export",start:n,end:i}).then((function(){e.showTable=!0,e.isLoading=!1,e.$refs[e.tableRef].refresh()}))},handleDeleteAllClick:function(){var e=this;return s()(l.a.mark((function t(){var n,i,s,r;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.response.totalSize||e.response.totalResultCount||0,i=e.$createElement("p",{domProps:{innerHTML:e.$t("user.delete_user_data_warning_1",{totalSize:n,startDate:e.formattedStartDate,endDate:e.formattedEndDate,userName:e.selectedUser.fullName,moduleName:e.$getText(e.headerText)})}}),s=e.$createElement("p",{domProps:{innerHTML:e.$t("user.delete_user_data_warning_2")}}),r=e.$createElement("p",{domProps:{innerHTML:e.$t("warning.are_you_sure_you_want_to_continue")}}),t.next=6,e.$confirmAction([i,s,r]);case 6:t.sent&&e.deleteAll();case 8:case"end":return t.stop()}}),t)})))()},deleteAll:function(){var e=this;this.isLoading=!0;var t=Z.a.getCurrentDateTime(),n=Z.a.getStartOf(this.startDate,"day"),i=Z.a.getEndOf(this.endDate,"day");Z.a.isSameOrAfter(i,t)&&(i=t),this.handleEntitiesRTBF({instProfileId:this.selectedUser.id,type:this.t
1ype,operationType:"Delete",start:n,end:i}).then((function(){e.showTable=!0,e.isLoading=!1,e.$refs[e.tableRef].refresh()}))},validateDates:function(){this.showDateWarning=this.isStartDateAfterEndDate||!this.isValidDates,this.showDateWarning||this.$refs[this.tableRef].refresh()},prepareParamsForTable:function(e,t){var n=se()(this.startDate).hours(0).minutes(0).format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),i=se()(this.endDate).hours(23).minutes(59).format("YYYY-MM-DDTHH:mm:ss.SSSSZ");return this.prepareParams(e,t,n,i)},prepareItemsForTable:function(e){return this.response=e.data.data,this.tableItems=this.prepareItems(e),this.tableItems},handleDeleteRowClick:function(e){var t=this;return s()(l.a.mark((function n(){var i,s,r;return l.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=t.$createElement("p",{domProps:{innerHTML:t.$t("user.delete_single_user_data_warning_1",{title:e.item.title,userName:t.selectedUser.fullName,moduleName:t.$getText(t.headerText)})}}),s=t.$createElement("p",{domProps:{innerHTML:t.$t("user.delete_user_data_warning_2")}}),r=t.$createElement("p",{domProps:{innerHTML:t.$t("warning.are_you_sure_you_want_to_continue")}}),n.next=5,t.$confirmAction([i,s,r]);case 5:n.sent&&t.deleteRow(e);case 7:case"end":return n.stop()}}),n)})))()},deleteRow:function(e){var t=this;this.deleteUserData({allItems:this.tableItems,selectedIds:[e.item.itemId],selectedUser:this.selectedUser}).then((function(e){e.promises.length&&le.all(e.promises).then((function(){t.showSuccessToastr("USERS_TOASTR_DELETE_DATA"),t.$refs[t.tableRef].refresh()})),e.errorMsg.length&&t.$refs.cannotRemoveUserData.show()}))},onMediaDetailClicked:function(e){this.$emit("openMediaDetail",e.item.object.id)}},Object(c.b)({deleteUserData:d.a.DELETE_USER_DATA,handleEntitiesRTBF:d.a.HANDLE_ENTITIES_RTBF})),Object(c.d)({showSuccessToastr:d.a.MUTATE_SUCCESS_TEXT})),mounted:function(){this.showCategory||delete this.fields.category,this.showSensitivity||delete this.fields.sensitivity,this.showCreator||delete this.fields.contactPerson}},pe=Object(y.a)(_e,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-data-table mt-3"},[n("b-card",{staticClass:"mb-1",attrs:{"no-body":""}},[n("b-card-header",{attrs:{"header-tag":"div",role:"tab"},on:{click:e.unfoldTable}},[e._v("\n      "+e._s(e.$getText(e.headerText))+"\n      "),n("div",{staticClass:"pull-right"},[e.showTable&&null!=e.type?n("b-btn",{staticClass:"margin-right",attrs:{size:"sm",variant:"link"},on:{click:function(t){return e.exportTable()}}},[n("i",{staticClass:"icon-Aula_export"}
1),e._v(" Eksporter\n        ")]):e._e(),e._v(" "),e.showTable&&null!=e.type&&!e.isDisabledDelete?n("b-btn",{staticClass:"margin-right",attrs:{size:"sm",variant:"link"},on:{click:function(t){return t.stopPropagation(),e.handleDeleteAllClick()}}},[n("i",{staticClass:"icon-Aula_bin"}),e._v(" Slet alt\n        ")]):e._e(),e._v(" "),n("i",{class:e.showTable?"icon-Aula_up-arrow":"icon-Aula_down-arrow"})],1)]),e._v(" "),n("b-collapse",{attrs:{id:e.tableRef,accordion:e.tableRef,role:"tabpanel"},model:{value:e.showTable,callback:function(t){e.showTable=t},expression:"showTable"}},[e.showTable?n("b-card-body",[n("b-row",{staticClass:"mb-2"},[e.showDateSearch?n("b-col",{attrs:{cols:"4"}},[e._v("\n            "+e._s(e.$getText("TABLE_DATE_FILTER_START"))+"\n            "),n("el-date-picker",{attrs:{id:"startDate",format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",type:"date",editable:!1,placeholder:e.$getText("MESSAGE_PLACEHOLDER_SELECT_DATE"),"picker-options":{firstDayOfWeek:e.isoWeekdayEnum.MONDAY}},on:{focus:function(t){return e.datePickerModifier()},change:function(t){return e.validateDates()}},model:{value:e.startDate,callback:function(t){e.startDate=t},expression:"startDate"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.showDateWarning}},[e._v("\n              "+e._s(e.dateWarningText)+"\n            ")])],1):e._e(),e._v(" "),e.showDateSearch?n("b-col",{attrs:{cols:"4"}},[e._v("\n            "+e._s(e.$getText("TABLE_DATE_FILTER_END"))+"\n            "),n("el-date-picker",{attrs:{id:"endDate",format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",type:"date",editable:!1,placeholder:e.$getText("MESSAGE_PLACEHOLDER_SELECT_DATE"),"picker-options":{firstDayOfWeek:e.isoWeekdayEnum.MONDAY}},on:{focus:function(t){return e.datePickerModifier()},change:function(t){return e.validateDates()}},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}})],1):e._e()],1),e._v(" "),n("aula-table",{ref:e.tableRef,attrs:{"per-page":e.perPage,items:e.tableItems,fields:e.fields,responsive:!0,"table-ref":e.tableRef,"server-side":!0,"server-side-url":e.url,"is-http-post":!1,"prepare-params":e.prepareParamsForTable,"prepare-items":e.prepareItemsForTable,"empty-table-text":"USERS_WARNING_ZERO_RESULTS_FROM_SEARCH","empty-table-filtered-text":"USERS_WARNING_ZERO_RESULTS_FROM_SEARCH","show-pagination":!0},on:{onMediaDetailClicked:e.onMediaDetailClicked,deleteUserData:e.handleDeleteRowClick}})],1):e._e()],1)],1),e._v(" "),n("aula-modal",{ref:"cannotRemoveUserData",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.cannotRemoveUserData.hide()}}},[n("p",[e._v(e._s(e.$getText("USERS_WARNING_CANNOT_DELETE_SOME_USER_DATA")))])])],1)}),[],!1,null,"0847a38c",null).exports,Te=Object.freeze({EDIT:"EDIT",DELETE:"DELETE"});function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie={props:{selectedUser:{type:Object,default:null}},data:function(){return{parentTypes:_.a,moment:se.a,validationMissingStartDate:!1,validationMissingEndDate:!1,validationStartDateAfterEndDate:!1,showTable:!1,startKey:null,startDate:se()().subtract(1,"years").format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),endDate:se()().format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),isLoaded:!1}},computed:Ee(Ee({},Object(c.c)({messageRevisionList:d.a.MESSAGES_GET_MESSAGE_REVISION_LIST_ADMIN})),{},{hasValidationErrors:function(){return this.validationMissingStartDate||this.validationMissingEndDate||this.validationStartDateAfterEndDate}}),mounted:function(){this.resetMessageRevisions()},methods:Ee(Ee({unfoldTable:function(){this.showTable=!this.showTable,this.showTable&&!this.isLoaded&&this.loadMore()}
1,loadMore:function(){this.isLoaded=!0,this.loadMessageRevisions({instProfileId:this.selectedUser.id,start:se()(this.startDate).startOf("day").format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),end:se()(this.endDate).endOf("day").format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),limit:20,startKey:this.messageRevisionList.lastEvaluatedKey})},validateDates:function(){this.validationMissingStartDate=null===this.startDate,this.validationMissingEndDate=null===this.endDate,this.validationStartDateAfterEndDate=se()(this.startDate).isAfter(),this.hasValidationErrors||(this.resetMessageRevisions(),this.loadMore())},isDeleted:function(e){return e.revisionType===Te.DELETE}},Object(c.d)({resetMessageRevisions:d.a.MUTATE_RESET_MESSAGE_REVISION_LIST_ADMIN})),Object(c.b)({loadMessageRevisions:d.a.MESSAGES_LOAD_MESSAGE_REVISIONS_ADMIN}))},me=Object(y.a)(Ie,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-data-table mt-3"},[n("b-card",{staticClass:"mb-1",attrs:{"no-body":""}},[n("b-card-header",{attrs:{"header-tag":"div",role:"tab"},on:{click:e.unfoldTable}},[e._v("\n      "+e._s(e.$getText("ALL_USER_DATA_HEADER_TEXT_MESSAGES"))+"\n      "),n("div",{staticClass:"pull-right"},[n("i",{class:e.showTable?"icon-Aula_up-arrow":"icon-Aula_down-arrow"})])]),e._v(" "),n("b-collapse",{attrs:{id:e.tableRef,accordion:e.tableRef,role:"tabpanel"},model:{value:e.showTable,callback:function(t){e.showTable=t},expression:"showTable"}},[e.showTable?n("b-card-body",[n("b-row",{staticClass:"mb-2"},[n("b-col",{attrs:{cols:"4"}},[e._v("\n            "+e._s(e.$getText("TABLE_DATE_FILTER_START"))+"\n            "),n("el-date-picker",{class:{"red-border":e.validationMissingStartDate||e.validationStartDateAfterEndDate},attrs:{id:"startDate",format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",type:"date",editable:!1,placeholder:e.$getText("MESSAGE_PLACEHOLDER_SELECT_DATE")},on:{focus:function(t){return e.datePickerModifier()},change:function(t){return e.validateDates()}},model:{value:e.startDate,callback:function(t){e.startDate=t},expression:"startDate"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.validationMissingStartDate}},[e._v("\n              "+e._s(e.$getText("ALL_USER_MISSING_START_DATE"))+"\n            ")]),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.validationStartDateAfterEndDate}},[e._v("\n              "+e._s(e.$getText("ALL_USER_DATA_START_DATE_IS_AFTER_END_DATE"))+"\n            ")])],1),e._v(" "),n("b-col",{attrs:{cols:"4"}},[e._v("\n            "+e._s(e.$getText("TABLE_DATE_FILTER_END"))+"\n            "),n("el-date-picker",{class:{"red-border":e.validationMissingEndDate||e.validationStartDateAfterEndDate},attrs:{id:"endDate",format:"dd-MM-yyyy","value-format":"yyyy-MM-dd",type:"date",editable:!1,placeholder:e.$getText("MESSAGE_PLACEHOLDER_SELECT_DATE")},on:{focus:function(t){return e.datePickerModifier()},change:function(t){return e.validateDates()}},model:{value:e.endDate,callback:function(t){e.endDate=t},expression:"endDate"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.validationMissingEndDate}},[e._v("\n              "+e._s(e.$getText("ALL_USER_MISSING_END_DATE"))+"\n            ")])],1)],1),e._v(" "),n("b-table-simple",{attrs:{fixed:""}},[n("b-thead",[n("b-tr",[n("b-th",{staticClass:"text-uppercase"},[e._v("\n                "+e._s(e.$getText("USERS_FIELDS_MESSAGE_REVISIONS_CREATION_DATE"))+"\n              ")]),e._v(" "),n("b-th",{staticClass:"text-uppercase"},[e._v("\n                "+e._s(e.$getText("USERS_FIELDS_MESSAGE_REVISIONS_THREAD_SUBJECT"))+"\n              ")]),e._v(" "),n("b-th",{staticClass:"text-uppercase"},[e._v("\n                "+e._s(e.$getText("USERS_FIELDS_MESSAGE_REVISIONS_THREAD_PARTICIPANTS"))+"\n              ")]),e._v(" "),n("b-th",{staticClass:"text-uppercase"},[e._v("\n                "+e._s(e.$getText("USERS_FIELDS_MESSAGE_REVISIONS_MESSAGE_CONTENT_BEFORE"))+"\n              ")]),e._v(" "),n("b-th",{staticClass:"text-uppercase"},[e._v("\n                "+e._s(e.$getText("USERS_FIELDS_MESSAGE_REVISIONS_MESSAGE_CONTENT_AFTER"))+"\n              ")])],1)],1),e._v(" "),n("b-tbody",[0===e.messageRevisionList.messageRevisions.length?n("b-tr",[
1n("b-td",{staticClass:"text-center cursor-default",attrs:{colspan:"5"}},[e._v("\n                "+e._s(e.$getText("USERS_MESSAGE_REVISIONS_NO_RESULTS"))+"\n              ")])],1):e._l(e.messageRevisionList.messageRevisions,(function(t){return n("b-tr",{key:t.id},[n("b-td",{staticClass:"cursor-default"},[e._v(e._s(e.moment(t.revisionDate).format("DD-MM-YYYY HH:mm")))]),e._v(" "),n("b-td",{staticClass:"cursor-default"},[e._v(e._s(t.threadSubject))]),e._v(" "),n("b-td",{staticClass:"cursor-default"},e._l(t.threadParticipants,(function(t){return n("span",{key:t.id},[e._v("\n                  "+e._s(e.$getProfileDisplayName(t))+" "),n("br")])})),0),e._v(" "),n("b-td",{staticClass:"cursor-default",domProps:{innerHTML:e._s(t.message.text.html)}}),e._v(" "),e.isDeleted(t)?n("b-td",{staticClass:"cursor-default"},[n("em",[e._v(e._s(e.$getText("USERS_MESSAGE_REVISIONS_MESSAGE_DELETED")))])]):n("b-td",{staticClass:"cursor-default",domProps:{innerHTML:e._s(t.updatedContent.html)}})],1)}))],2)],1),e._v(" "),0===e.messageRevisionList.messageRevisions.length||e.hasValidationErrors?e._e():n("div",{staticClass:"text-center"},[null!==e.messageRevisionList.lastEvaluatedKey?[n("b-button",{on:{click:e.loadMore}},[e._v("\n              "+e._s(e.$getText("USERS_LOAD_MORE_MESSAGE_REVISIONS"))+"\n            ")])]:[n("b-button",{attrs:{variant:"link",disabled:!0}},[e._v("\n              "+e._s(e.$getText("USERS_LOAD_MORE_MESSAGE_REVISIONS_NO_MORE_RESULTS"))+"\n            ")])]],2)],1):e._e()],1)],1)],1)}),[],!1,null,"c36dcf84",null).exports,Ae=n(40);function Se(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Oe={components:{AllUserDataTable:pe,MessageRevisionsTable:me,MediaDetail:ae.a},inject:{getInstitutionProfile:R.a.institutionProfile},data:function(){return{moment:se.a,parentTypes:_.a,entityTypesRightToBeForgotten:oe,isMediaDetailVisible:!1,selectedMediaId:null,fields:{createdAt:{label:this.$getText("RTBF_REQUESTS_PERIOD_DATE")},periodFrom:{label:this.$getText("RTBF_REQUESTS_PERIOD_FROM")},periodTo:{label:this.$getText("RTBF_REQUESTS_PERIOD_TO")},creatorName:{label:this.$getText("RTBF_REQUESTS_CREATOR_NAME")},entityType:{label:this.$getText("RTBF_REQUESTS_ENTITY_TYPE")},operationType:{label:this.$getText("RTBF_REQUESTS_OPERATION_TYPE")},status:{label:this.$getText("RTBF_REQUESTS_STATUS")},actions:{label:this.$getText("RTBF_REQUESTS_ACTIONS"),type:"action"}}}},computed:ve(ve({},Object(c.c)({selectedInstitution:d.a.GET_SELECTED_INSTITUTION,medias:d.a.GET_MEDIAS_OF_INSTITUTION_PROFILE_ID,requestsForRTBF:d.a.GET_RTBF_REQUESTS})),{},{selectedUser:function(){return this.getInstitutionProfile()},exportAndDeleteTitleTab:function(){return this.$getText("EXPORTS")+"/"+this.$getText("DELETION")},filteredRequests:function(){var e,t=this.requestsForRTBF,n=Se(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;i.processed?i.failed?i.status=this.$getText("RTBF_STATUS_FAILED"):i.status=this.$getText("RTBF_STATUS_DONE"):i.status=this.$getText("RTBF_STATUS_BEING_PROCESSED"),i.createdAt=Z.a.formatDate(i.createdAt,"DD-MM-YYYY HH:mm"),i.periodFrom=Z.a.formatDate(i.periodFrom,"DD-MM-YYYY HH:mm"),i.periodTo=Z.a.formatDate(i.periodTo,"DD-MM-YYYY HH:mm"),i.processed&&!i.failed&&"Export"==i.operationType&&(i.actions=[{method:"downloadRequest",icon:"icon-Aula_download",variant:"link"}]),"Delete"==i.operationType?i.operationType=this.$getText("RTBF_OPERATION_DELET
1E"):"Export"==i.operationType&&(i.operationType=this.$getText("RTBF_OPERATION_EXPORT")),i.entityType=this.$getText("RTBF_ENTITY_"+i.entityType.toUpperCase())}}catch(e){n.e(e)}finally{n.f()}return t}}),methods:ve(ve(ve({},Object(c.d)({mutateMedia:d.a.MUTATE_MEDIAS_OF_INSTITUTION_PROFILE_ID})),Object(c.b)({loadRTBFRequests:d.a.LOAD_RTBF_REQUESTS})),{},{getDisplayTitleForDeletedItem:function(e){return(null==e?"":e)+" ("+this.$getText("USER_DATA_IS_DELETED")+")"},downloadRequest:function(e){window.location=e.item.fileLink.url},prepareGroupParams:function(e,t,n,i){return{instProfileId:this.selectedUser.id,start:n,end:i,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},prepareGroupItems:function(e){var t=[];if(null!=e.data.data&&null!=e.data.data.memberships){var n,i=Se(e.data.data.memberships);try{for(i.s();!(n=i.n()).done;){var s=n.value,r=s.createdByName;s.groupType==Ae.a.UNI&&(r="UNI-login oplysning"),this.addItemToList(t,se()(s.createdAt).format("DD-MM-YYYY"),re.GROUP,s.groupName,s.groupDescription,r,"2","group-"+s.id,"group","",s)}}catch(e){i.e(e)}finally{i.f()}}return t},preparePostParams:function(e,t,n,i){return{instProfileId:this.selectedUser.id,start:n,end:i,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},preparePostItems:function(e){var t=this,n=[];if(null!=e.data.data){var i,s=Se(e.data.data.posts);try{for(s.s();!(i=s.n()).done;){var r=i.value,o=r.sharedWithGroups.map((function(e){var n=[];if(null!=e.portalRoles){var i,s=Se(e.portalRoles);try{for(s.s();!(i=s.n()).done;){var r=i.value;n.push(t.$getText("GROUP_LABEL_TYPE_"+r.toUpperCase()))}}catch(e){s.e(e)}finally{s.f()}}return n.length>0?e.name+" ("+n.join(", ")+")":e.name})).join(", "),a=r.isDeleted?this.getDisplayTitleForDeletedItem(r.title+" ("+o+")"):r.title+" ("+o+")";this.addItemToList(n,se()(r.timestamp).format("DD-MM-YYYY"),re.POST,a,r.content.html,r.ownerProfile.firstName+" "+r.ownerProfile.lastName,"2","post-"+r.id,"post","",r)}}catch(e){s.e(e)}finally{s.f()}}return n},prepareEventParams:function(e,t,n,i){return{instProfileId:this.selectedUser.id,start:n,end:i,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},prepareEventItems:function(e){var t=[];if(null!=e.data.data){var n,i=Se(e.data.data.events);try{for(i.s();!(n=i.n()).done;){var s=n.value,r="";null!=s.description&&(r=null!=s.description.html&&""!=s.description.html?s.description.html:null==s.description.html&&""!=s.description?s.description:""),s.allDay&&(s.startDateTime&&(s.startDateTime=s.startDateTime.split("T")[0]),s.endDateTime&&(s.endDateTime=s.endDateTime.split("T")[0]));var o=null!=s.endDateTime?se()(s.startDateTime).format("DD-MM-YYYY")+" - "+se()(s.endDateTime).format("DD-MM-YYYY"):se()(s.startDateTime).format("DD-MM-YYYY")+" - Ingen slutdato";if(s.creatorInstProfileId==this.selectedUser.id){var a=re.EVENT,l=s.title,u=s.creatorName;if(s.type==ne.a.HOLIDAY||s.type==ne.a.PRESENCE_HOLIDAY)o=null!=s.endDateTime?se()(s.startDateTime).utc().format("DD-MM-YYYY")+" - "+se()(s.endDateTime).utc().format("DD-MM-YYYY"):se()(s.startDateTime).utc().format("DD-MM-YYYY")+" - Ingen slutdato",a=re.HOLIDAY,l="Ferie for "+(se()(s.endDateTime).diff(se()(s.startDateTime),"days")+1)+" dage.",u="";var d=s.isDeleted?this.getDisplayTitleForDeletedItem(l):l;this.addItemToList(t,se()(s.createdDateTime).format("DD-MM-YYYY"),a,d,r,u,"2","event-"+s.id,"event","",s,o)}else{var c=s.isDeleted?this.getDisplayTitleForDeletedItem(s.title):s.title;this.addItemToList(t,se()(s.createdDateTime).format("DD-MM-YYYY"),re.INVITATION,c,r,s.creatorName,"2","invitation-"+s.id,"invitation","",s,o)}}}catch(e){i.e(e)}finally{i.f()}}return t},prepareThreadParams:function(e,t,n,i){return{instProfileId:this.selectedUser.id,start:n,end:i,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},prepareThreadItems:function(e){var t=[];if(null!=e.data.data){var n,i=Se(e.data.data.threads);try{for(i.s();!(n=i.n()).done;){var s=n.value,r=s.recipients.map((function(e){return e.fullName})).join(", "),o=s.isThreadOrSubscriptionDeleted?this.getDisplayTitleForDeletedItem(s.subject):s.subject;this.addItemToList(t,se()(s.startedTime).format("DD-MM-YYYY"),re.SUBSCRIPTION,o,r,s.creator.fullName,s.sensitive?3:2,"subscription-"+s.id,"subscription","",s)}}catch(e){i.e(e)}finally{i.f()}}return t},prepareMediaParams:function(e,t,n,i){return{institutionProfileId:this.selectedUser.id,start:n,end:i,index:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},prepareMediaItems:function(e){var t=[];if(null!=e.data.data){this.mutateMedia(e.data.data);var n,i=Se(e.data.data.results);try{for(i.s();!(n=i.n()).done;){var s=n.value,r=[{variant:"primary",method:"onMediaDetailClicked",textkey:"TABLE_LINK_TO_MEDIA",url:s.file.url}];s.descriptionType="action";var o=s.isDeleted?this.getDisplayTitleForDeletedItem(s.title):s.title;this.addItemToList(t,se()(s.file.created).format("DD-MM-YYYY"),re.MEDIA,o,r,s.creator.name,2,"media-"+s.id,"media","",s)}}catch(e){i.e(e)}finally{i.f()}}return t}
1,prepareDocumentParams:function(e,t,n,i){return{instProfileId:this.selectedUser.id,start:n,end:i,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},prepareDocumentItems:function(e){var t=[];if(null!=e.data.data){var n,i=Se(e.data.data.documents);try{for(i.s();!(n=i.n()).done;){var s=n.value,r=[s.category];if(s.associatedInstitutionProfiles){var o,a=Se(s.associatedInstitutionProfiles);try{for(a.s();!(o=a.n()).done;){var l=o.value;r.push(l.name)}}catch(e){a.e(e)}finally{a.f()}}var u=s.isDeleted?this.getDisplayTitleForDeletedItem(s.title):s.title;this.addItemToList(t,se()(s.createdAt).format("DD-MM-YYYY"),re.DOCUMENT,u,r.join(", "),s.creator.name,"3",s.id,"document","",s)}}catch(e){i.e(e)}finally{i.f()}}return t},prepareCommentsParams:function(e,t,n,i){return{instProfileId:this.selectedUser.id,start:n,end:i,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}},prepareCommentsItems:function(e){var t=[];if(null!=e.data.data){var n,i=Se(e.data.data.comments);try{for(i.s();!(n=i.n()).done;){var s=n.value,r=s.isDeleted?this.getDisplayTitleForDeletedItem(s.content):s.content;this.addItemToList(t,se()(s.createdAt).format("DD-MM-YYYY"),re.COMMENTS,s.title,r,s.creator.name,"3",s.id,"comment","",s)}}catch(e){i.e(e)}finally{i.f()}}return t},prepareSuggestedNameParams:function(){return{uniStudentId:this.selectedUser.id}},prepareSuggestedNameItems:function(e){var t=[];if(null!=e.data.data){var n=e.data.data;if(n.length>0){var i=n.map((function(e){return e.pickupName})).join(", ");this.addItemToList(t,se()().format("DD-MM-YYYY"),re.PICKUP,this.$getText("PRESENCE_SUGGESTED_PICKUP"),i,"",2,"pickup-"+this.selectedUser.id,"pickup","",{uniStudentId:this.selectedUser.id})}}return t},prepareContactInfoParams:function(){return{institutionProfileIds:[this.selectedUser.id]}},prepareContactInfoItems:function(e){var t=[];if(null!=e.data.data){var n=e.data.data;if(this.addItemToList(t,"",re.ADDITIONAL_DATA,"Nulstil svar","","","2","additional-data","additional-data","",this.selectedUser),this.addItemToList(t,"",re.CONSENTS,"Nulstil svar","","","2","consents","consents","",this.selectedUser),n.length>0){null!=n[0].contactInformation&&(null!=n[0].contactInformation.homePhoneNumber&&this.addItemToList(t,se()(n[0].contactInformation.lastUpdateHomePhoneNumber).isValid()?se()(n[0].contactInformation.lastUpdateHomePhoneNumber).format("DD-MM-YYYY"):"",re.CONTACT_INFO,"Hjemme tlf. nummer",n[0].contactInformation.homePhoneNumber,"","2","aula-home-phone","aula-profile","home-phone",this.selectedUser),null!=n[0].contactInformation.workPhoneNumber&&this.addItemToList(t,se()(n[0].contactInformation.lastUpdateWorkPhoneNumber).isValid()?se()(n[0].contactInformation.lastUpdateWorkPhoneNumber).format("DD-MM-YYYY"):"",re.CONTACT_INFO,"Arbejds tlf. nummer",n[0].contactInformation.workPhoneNumber,"","2","aula-work-phone","aula-profile","work-phone",this.selectedUser),null!=n[0].contactInformation.mobilePhoneNumber&&this.addItemToList(t,se()(n[0].contactInformation.lastUpdateMobilePhoneNumber).isValid()?se()(n[0].contactInformation.lastUpdateMobilePhoneNumber).format("DD-MM-YYYY"):"",re.CONTACT_INFO,"Mobil tlf. nummer",n[0].contactInformation.mobilePhoneNumber,"","2","aula-mobile-phone","aula-profile","mobile-phone",this.selectedUser),null!=n[0].contactInformation.emailAddress&&this.addItemToList(t,se()(n[0].contactInformation.lastUpdateEmailAddress).isValid()?se()(n[0].contactInformation.lastUpdateEmailAddress).format("DD-MM-YYYY"):"",re.CONTACT_INFO,"E-mail",n[0].contactInformation.emailAddress,"","2","aula-email","aula-profile","email",this.selectedUser)),null!=n[0].description&&this.addItemToList(t,se()().format("DD-MM-YYYY"),re.CONTACT_INFO,"Beskrivelse",n[0].description,"","2","aula-description","aula-profile","description",this.selectedUser),null!=n[0].internalProfilePicture&&this.addItemToList(t,se()(n[0].internalProfilePicture.updatedAt).format("DD-MM-YYYY"),re.CONTACT_INFO,"Profilbillede",n[0].internalProfilePicture.key,n[0].internalProfilePicture.creatorName,"2","aula-photo","aula-profile","photo",this.selectedUser),null!=n[0].externalProfilePicture&&this.addItemToList(t,se()(n[0].externalProfilePicture.updatedAt).format("DD-MM-YYYY"),re.CONTACT_INFO,"Profilbillede",n[0].externalProfilePicture.key,"Eksternt profilbillede","2","uni-photo","aula-profile","uni-photo",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Navn",n[0].uniPerson.firstName+" "+n[0].uniPerson.familyName,"UNI-login oplysning","2","uni-name","uni-profile","name",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Fødselsdag",se()(n[0].uniPerson.birthDay).format("DD-MM-YYYY"),"UNI-login oplysning","2","uni-birthday","uni-profile","birthday",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Køn",n[0].uniPerson.gender,"UNI-login oplysning","2","uni-gender","uni-profile","gender",this.selectedUser);var i=n[0].uniPerson.address&&n[0].uniPerson.address.postalCode?n[0].uniPerson.address.postalCode:this.$getText("UNKNOW"),s=n[0].uniPerson.address&&n[0].uniPerson.address.street?n[0].uniPerson.address.street:this.$getText("UNKNOW");this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Adresse","Postnr.: "+i+"<br>Gade: "+s,"UNI-login oplysning","2","uni-address","uni-profile","address",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"E-mail",n[0].uniPerson.emailAddress,"UNI-login oplysning","2","uni-email","uni-profile","email",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Hjemme tlf. nummer",n[0].uniPerson.homePhoneNumber,"UNI-login oplysning","2","uni-home-phone","uni-profile","home-phone",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Arbejds tlf. nummer",n[0].uniPerson.workPhoneNumber,"UNI-login oplysning","2","uni-work-phone","uni-profile","work-phone",this.selectedUser),this.addItemToList(t,se()().format("DD-MM-YYYY"),re.MASTER_DATA,"Mobil tlf. nummer",n[0].uniPerson.mobilePhoneNumber,"UNI-login oplysning","2","uni-mobile-phone","uni-profile","mobile-phone",this.selectedUser)}}return t},addItemToList:function(e,t,n,i,s,r,o,a,l,u,d){var c=arguments.length>11&&void 0!==arguments[11]?arguments[11]:null;e.push({creationDate:t,category:n,title:i,description:s,eventDate:c,contactPerson:r,sensitivity:o,actions:[{method:"deleteUserData",icon:"icon-Aula_bin",variant:"link"}],itemId:a,type:l,property:u,object:d})},initRtbfRequests:function(){this.loadRTBFRequests({instProfileId:this.selectedUser.id,start:se()().subtract(1,"years").format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),end:se()().format("YYYY-MM-DDTHH:mm:ss.SSSSZ"),processed:!0})},openMediaDetail:function(e){this.isMediaDetailVisible=!0,this.selectedMediaId=e},closeMediaDetail:function(){this.isMediaDetailVisible=!1,this.selectedMediaId=null}}),mounted:function(){this.initRtbfRequests()}},be=Oe,De=Object(y.a)(be,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"user-data"},[e._v("\n  "+e._s(e.$getText("ALL_USER_DATA_SUB_HEADER"))),n("br"),e._v("\n  "+e._s(e.$getText("ALL_USER_DATA_SUB_HEADER_2"))+"\n  "),n("b-card",{attrs:{"no-body":""}},[n("b-tabs",{attrs:{card:""}},[n("b-tab",{attrs:{title:"Alt data",active:""}},[n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_CONTACT_INFO","selected-user":e.selectedUser,"show-date-search":!1,type:e.entityTypesRightToBeForgotten.CONTACT_INFORMATION,"prepare-params":e.prepareContactInfoParams,"prepare-items":e.prepareContactInfoItems,"is-disabled-delete":"",url:"?method=profilesAdmin.getUserData","table-ref":"contactInfoTable","show-category":!0}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_GROUPS","selected-user":e.selectedUser,"show-date-search":!1,type:e.entityTypesRightToBeForgotten.GROUPS,"prepare-params":e.prepareGroupParams,"prepare-items":e.prepareGroupItems,"per-page":9999,url:"?method=groupsAdmin.getMemberships","table-ref":"groupsTable"}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_POSTS","selected-user":e.selectedUser,type:e.entityTypesRightToBeForgotten.POSTS,"prepare-params":e.preparePostParams,"prepare-items":e.preparePostItems,url:"?method=postsAdmin.getAllPostsForCreator","table-ref":"postsTable"}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_EVENTS","selected-user":e.selectedUser,type:e.entityTypesRightToBeForgotten.EVENTS,"prepare-params":e.prepareEventParam
1s,"prepare-items":e.prepareEventItems,parent:e.parentTypes.CALENDAR,url:"?method=calendarAdmin.getEventsByProfileId","table-ref":"eventsTable","show-category":!0}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_THREADS","selected-user":e.selectedUser,type:e.entityTypesRightToBeForgotten.THREADS,"prepare-params":e.prepareThreadParams,"prepare-items":e.prepareThreadItems,url:"?method=messagingAdmin.getThreads","table-ref":"threadsTable","show-sensitivity":!0,"enabled-fields":["sensitivity"]}}),e._v(" "),n("message-revisions-table",{attrs:{"selected-user":e.selectedUser}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_MEDIA","selected-user":e.selectedUser,type:e.entityTypesRightToBeForgotten.MEDIA,"prepare-params":e.prepareMediaParams,"prepare-items":e.prepareMediaItems,url:"?method=galleryAdmin.getMediaByInstitutionProfileId","table-ref":"mediaTable"},on:{openMediaDetail:e.openMediaDetail}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_DOCUMENTS","selected-user":e.selectedUser,type:e.entityTypesRightToBeForgotten.DOCUMENTS,"prepare-params":e.prepareDocumentParams,"prepare-items":e.prepareDocumentItems,url:"?method=documentsAdmin.getSecureDocumentsRegardingInstitutionProfile","table-ref":"documentsTable"}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_COMMENTS","selected-user":e.selectedUser,type:e.entityTypesRightToBeForgotten.COMMENTS,"prepare-params":e.prepareCommentsParams,"prepare-items":e.prepareCommentsItems,url:"?method=commentsAdmin.getAllCommentsForUser","table-ref":"commentsTable"}}),e._v(" "),n("all-user-data-table",{attrs:{"header-text":"ALL_USER_DATA_HEADER_TEXT_SUGGESTED_NAMES","selected-user":e.selectedUser,"show-date-search":!1,type:e.entityTypesRightToBeForgotten.PICKUP_RESPONSIBLES,"prepare-params":e.prepareSuggestedNameParams,"prepare-items":e.prepareSuggestedNameItems,"is-disabled-delete":"",url:"?method=presence.getSuggestedNamesForPickupChild","table-ref":"suggestedNamesTable","show-creator":!1}})],1),e._v(" "),n("b-tab",{attrs:{title:e.exportAndDeleteTitleTab},on:{click:function(t){return e.initRtbfRequests()}}},[n("aula-table",{ref:"requestsForRTBF",attrs:{"per-page":100,items:e.filteredRequests,"total-rows":e.filteredRequests.length,fields:e.fields,responsive:!0,"table-ref":"requestsForRTBF","empty-table-text":"USERS_WARNING_ZERO_RESULTS_FROM_SEARCH","empty-table-filtered-text":"USERS_WARNING_ZERO_RESULTS_FROM_SEARCH","show-pagination":!0},on:{downloadRequest:e.downloadRequest}})],1)],1)],1),e._v(" "),e.isMediaDetailVisible?n("media-detail",{attrs:{parent:e.parentTypes.USERDATA,album:e.medias,"media-id":e.selectedMediaId},on:{onClosed:e.closeMediaDetail}}):e._e()],1)}),[],!1,null,"0412d747",null).exports,Ne=n(20),Ce=n(15),ye=n(93),Pe=n(96),Le=n(74),we=n(94),Ue=n(95),Me=n(89),ke=n(49),xe=n(34),He={components:{TableCell:Me.a,TableBody:Ue.a,TableHeading:we.a,TableRow:Le.a,TableHead:Pe.a,TableContainer:ye.a},props:{revisions:{type:Array,required:!0}},methods:{getClassRoomAnswer(e){return[ke.a.CLASS_OR_STUE,ke.a.YEAR_AND_SFO,ke.a.INSTITUTION].includes(e.answer)?this.$t("label.yes"):this.$t("label.no")},getYearAndSfoAnswer(e){return[ke.a.YEAR_AND_SFO,ke.a.INSTITUTION].includes(e.answer)?this.$t("label.yes"):this.$t("label.no")},getInstitutionAnswer(e){return[ke.a.INSTITUTION].includes(e.answer)?this.$t("label.yes"):this.$t("label.no")},formatDateTime:e=>ue.e(e,xe.a.COMPACT_DATE_TIME)}},$e=Object(y.a)(He,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TableContainer",{staticClass:"contact-information-revision-table",attrs:{fixed:""}},[n("TableHead",[n("TableRow",[n("TableHeading",[e._v(e._s(e.$t("label.changed_by")))]),e._v(" "),n("TableHeading",{staticClass:"time"},[e._v(e._s(e.$t("label.changed_at")))]),e._v(" "),n("TableHeading",{staticClass:"answer"},[e._v(e._s(e.$t("label.class_room")))]),e._v(" "),n("TableHeading",{staticClass:"answer"},[e._v(e._s(e.$t("label.year")))]),e._v(" "),n("TableHeading",{staticClass:"answer"}
1,[e._v(e._s(e.$t("label.institution")))])],1)],1),e._v(" "),n("TableBody",{staticClass:"body"},e._l(e.revisions,(function(t,i){return n("TableRow",{key:i},[n("TableCell",[e._v(e._s(t.createdBy))]),e._v(" "),n("TableCell",[e._v(e._s(e.formatDateTime(t.createdAt)))]),e._v(" "),n("TableCell",{staticClass:"answer"},[e._v(e._s(e.getClassRoomAnswer(t)))]),e._v(" "),n("TableCell",{staticClass:"answer"},[e._v(e._s(e.getYearAndSfoAnswer(t)))]),e._v(" "),n("TableCell",{staticClass:"answer"},[e._v(e._s(e.getInstitutionAnswer(t)))])],1)})),1)],1)}),[],!1,null,"4a286605",null).exports,Be=n(41),Fe=n(9),Ge=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))};const je=new class{constructor(){this.getConsentResponseRevisionHistory=e=>Ge(this,void 0,void 0,(function*(){try{const{data:t}=yield Fe.b.get("?method=consentsAdmin.getConsentResponseRevisionHistory",{params:{institutionProfileId:e}});return t.data}catch(e){return Promise.reject(new Be.a(e))}}))}};var Ye=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},qe={components:{UserDetailsContactInformationRevisionTable:$e,Icon:Ne.a,AulaButton:A.a},inject:{getInstitutionProfile:R.a.institutionProfile},data:()=>({questions:[]}),computed:{iconClassEnum:()=>Ce.a,institutionProfile(){return this.getInstitutionProfile()}},mounted(){this.getAdditionalDataResponseRevisionHistory()},methods:{getAdditionalDataResponseRevisionHistory(){return Ye(this,void 0,void 0,(function*(){const{questions:e}=yield je.getConsentResponseRevisionHistory(this.institutionProfile.id);this.questions=e}))}}},Ve=Object(y.a)(qe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"contact-information-revision"},[n("label",{staticClass:"mt-2 mb-4"},[e._v(e._s(e.$t("user.contact_information")))]),e._v(" "),n("div",{staticClass:"revision-accordion",attrs:{role:"tablist"}},e._l(e.questions,(function(t,i){return n("div",{key:i,staticClass:"question-group"},[n("AulaButton",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"contact-revision-"+i,expression:"`contact-revision-${index}`"}],staticClass:"fold-button",attrs:{variant:"link"}},[e._v("\n        "+e._s(t.question)+"\n        "),n("Icon",{staticClass:"fold-icon",attrs:{name:e.iconClassEnum.DOWN_ARROW}})],1),e._v(" "),n("b-collapse",{staticClass:"revision-table",attrs:{id:"contact-revision-"+i,accordion:"contact-information-revision"}},[n("UserDetailsContactInformationRevisionTable",{attrs:{revisions:t.responseRevisions}})],1)],1)})),0)])}),[],!1,null,"6a4919cd",null).exports,Ke=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))};const We=new class{constructor(){this.getAdditionalDataResponseRevisionHistory=e=>Ke(this,void 0,void 0,(function*(){try{const{data:t}=yield Fe.b.get("?method=profilesAdmin.getAdditionalDataResponseRevisionHistory",{params:{institutionProfileId:e}});return t.data}catch(e){return Promise.reject(new Be.a(e))}}))}};var Qe={components:{TableCell:Me.a,TableBody:Ue.a,TableHeading:we.a,TableRow:Le.a,TableHead:Pe.a,TableContainer:ye.a},props:{revisions:{type:Array,required:!0}},methods:{formatDateTime:e=>ue.e(e,xe.a.COMPACT_DATE_TIME),getRevisionYesNoResponse(e){return!0===e.yesNoResponse?this.$t("label.yes"):!1===e.yesNoResponse?this.$t("label.no"):""}}},Xe=Object(y.a)(Qe,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TableContainer",{staticClass:"additional-data-revision-table"},[n("TableHead",[n("TableRow",[n("TableHeading",[e._v(e._s(e.$t("label.changed_by")))]),e._v(" "),n("TableHeading",[e._v(e._s(e.$t("label.changed_at")))]),e._v(" "),n("TableHeading",[e._v(e._s(e.$t("user.yes_no_response")))]),e._v(" "),n("TableHeading",[e._v(e._s(e.$t("user.response")))])],1
1)],1),e._v(" "),n("TableBody",{staticClass:"body"},e._l(e.revisions,(function(t,i){return n("TableRow",{key:i},[n("TableCell",[e._v(e._s(t.createdBy))]),e._v(" "),n("TableCell",[e._v(e._s(e.formatDateTime(t.createdAt)))]),e._v(" "),n("TableCell",[e._v(e._s(e.getRevisionYesNoResponse(t)))]),e._v(" "),n("TableCell",[e._v(e._s(t.textResponse))])],1)})),1)],1)}),[],!1,null,"32b5a104",null).exports,ze=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},Ze={components:{UserDetailsAdditionalDataResponseRevisionTable:Xe,Icon:Ne.a,AulaButton:A.a},inject:{getInstitutionProfile:R.a.institutionProfile},data:()=>({questions:[]}),computed:{iconClassEnum:()=>Ce.a,institutionProfile(){return this.getInstitutionProfile()}},mounted(){this.getAdditionalDataResponseRevisionHistory()},methods:{getAdditionalDataResponseRevisionHistory(){return ze(this,void 0,void 0,(function*(){const{questions:e}=yield We.getAdditionalDataResponseRevisionHistory(this.institutionProfile.id);this.questions=e}))}}},Je={components:{UserDetailsAdditionalDataResponseRevision:Object(y.a)(Ze,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"master-data-revision"},[n("label",{staticClass:"mt-2 mb-4"},[e._v(e._s(e.$t("user.master_data_questions")))]),e._v(" "),n("div",{staticClass:"revision-accordion",attrs:{role:"tablist"}},e._l(e.questions,(function(t,i){return n("div",{key:i,staticClass:"question-group"},[n("AulaButton",{directives:[{name:"b-toggle",rawName:"v-b-toggle",value:"revision-"+i,expression:"`revision-${index}`"}],staticClass:"fold-button",attrs:{variant:"link"}},[e._v("\n        "+e._s(t.question)+"\n        "),n("Icon",{staticClass:"fold-icon",attrs:{name:e.iconClassEnum.DOWN_ARROW}})],1),e._v(" "),n("b-collapse",{staticClass:"revision-table",attrs:{id:"revision-"+i,accordion:"master-data-revision"}},[n("UserDetailsAdditionalDataResponseRevisionTable",{attrs:{revisions:t.responseRevisions}})],1)],1)})),0)])}),[],!1,null,"cb427f00",null).exports,UserDetailsContactInformationRevision:Ve}},et=Object(y.a)(Je,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"response-history"},[n("UserDetailsContactInformationRevision"),e._v(" "),n("UserDetailsAdditionalDataResponseRevision",{staticClass:"mt-4"})],1)}),[],!1,null,null,null).exports,tt=n(13);function nt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function it(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var st={name:"UserDetailsPortalAdministrationTabs",components:{UserDetailsResponseHistory:et,UserDetailsAdministrationTabsGroups:Q,UserDetailsAdministrationTabsRolesAndRights:Y,UserDetailsAdministrationTabsUserData:De,UserDetailsPortalAdministrationTabsLockUser:te,AulaButton:A.a,AulaButtons:m.a,AulaNavigationToolbar:I.a},inject:{getHasPermissionToLockInstitutionProfile:R.a.hasLockPermission},provide:function(){var e=this;return o()({},R.a.institutionProfile,(function(){return e.institutionProfile}))},props:{institutionProfile:{required:!0,type:Object}},data:function(){return{tabValue:null,tabsEnum:S}},computed:it(it({},Object(c.c)({selectedInstitution:u.a.GET_SELECTED_INSTITUTION,activeProfile:u.a.GET_ACTIVE_PROFILE,hasPermissionInstitution:u.a.HAS_PERMISSION_ON_INSTITUTION})),{},{userProfileStore:function(){return Object(tt.a)()},profile:function(){return this.userProfileStore.institutionProfile},isInstitutionProfileDeactivated:function(){return this.institutionProfile.deactivated},hasPermissionToLockInstitutionProfile:function(){return this.getHasPermissionToLockInstitutionProfile()},tabs:function(){var e=[];return this.isInstitutionProfileDeactivated||(this.hasPermissionInstitution(p.a.HANDLE_USER_ROLES,this.activeProfile.institutionCode)&&e.push({name:this.$getText("USER_TABLE_USER_ROLES"),value:S.ROLES_AND_RIGHTS}),e.push({name:this.$getText("GROUP_HEADER_LABEL"),value:S.GROUPS})),this.hasPermissionToLockInstitutionProfile&&e.push({name:this.$getText("USERS_LOCK_USER"),value:S.LOCK_USER}),this.hasPermissionInstitution(p.a.HANDLE_USER_DATA,this.activeProfile.institutionCode)&&e.push({name:"".concat(this.$getText("ALL_USER_DATA_HEADER")," ").concat(this.institutionProfile.fullName),value:S.USER_DATA}),(this.hasPermissionInstitution(p.a.HANDLE_CONSENT_REVISION,this.activeProfile.institutionCode)||this.hasPermissionInstitution(p.a.HANDLE_ADDITIONAL_MASTER_DATA_REVISION,this.activeProfile.institutionCode))&&e.push({name:this.$t("user.response_history"),value:S.RESPONSE_HISTORY}),e}}),mounted:function(){this.tabValue=this.getInitialTabValue()},methods:{getInitialTabValue:function(){return this.tabs[0].value},selectTab:function(e){this.tabValue=e.value}}},rt=Object(y.a)(st,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("AulaNavigationToolbar",{staticClass:"tabs-nav"},[n("AulaButtons",e._l(e.tabs,(function(t,i){return n("AulaButton",{key:i,staticClass:"tab-item text-uppercase",class:{"active-tab":e.tabValue===t.value}
1,attrs:{fill:"clear","aria-selected":e.tabValue===t.value},on:{click:function(n){return e.selectTab(t)}}},[e._v("\n        "+e._s(t.name)+"\n      ")])})),1)],1),e._v(" "),n("div",{staticClass:"my-4"},[e.tabsEnum.ROLES_AND_RIGHTS===e.tabValue?n("UserDetailsAdministrationTabsRolesAndRights"):e._e(),e._v(" "),e.tabsEnum.GROUPS===e.tabValue?n("UserDetailsAdministrationTabsGroups"):e._e(),e._v(" "),e.tabsEnum.LOCK_USER===e.tabValue?n("UserDetailsPortalAdministrationTabsLockUser"):e._e(),e._v(" "),e.tabsEnum.USER_DATA===e.tabValue?n("UserDetailsAdministrationTabsUserData"):e._e(),e._v(" "),e.tabsEnum.RESPONSE_HISTORY===e.tabValue?n("UserDetailsResponseHistory"):e._e()],1)],1)}),[],!1,null,null,null).exports,ot=Object.freeze({LOCK_DESCRIPTION_CHARACTER_LIMIT:500}),at={name:"UserDetailsAdministrationLockUserFormGroupCause",inject:{getShowLockReasonWarning:U.showLockReasonMaxCharacterWarning,getLockReason:U.lockReasonValue,updateLockReason:U.onUpdateLockReason},data:function(){return{maxCharacters:ot.LOCK_DESCRIPTION_CHARACTER_LIMIT}},computed:{lockReason:function(){return this.getLockReason()},showLockReasonWarning:function(){return this.getShowLockReasonWarning()}},methods:{onUpdateLockReason:function(e){this.updateLockReason(e)}}},lt={name:"UserDetailsPortalAdministrationLockUserForm",components:{UserDetailsAdministrationLockUserFormGroupCause:Object(y.a)(at,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-form-group",{staticClass:"mb-3"},[n("label",{staticClass:"font-weight-bold",attrs:{for:"lock_user_reason"}},[e._v(e._s(e.$getText("USERS_LOCK_ADD_REASON")))]),e._v(" "),n("b-textarea",{attrs:{id:"lock_user_reason",placeholder:e.$getText("USERS_LOCK_USER_PLACEHOLDER"),value:e.lockReason,maxlength:e.maxCharacters,rows:5},on:{input:e.onUpdateLockReason}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:e.showLockReasonWarning}},[e._v("\n    "+e._s(e.$getText("USERS_LOCK_MAX_CHARACTERS"))+"\n  ")])],1)}),[],!1,null,"251318d2",null).exports},provide:function(){var e,t=this;return e={},o()(e,U.lockReasonValue,(function(){return t.value})),o()(e,U.onUpdateLockReason,(function(e){return t.$emit("input",e)})),o()(e,U.showLockReasonMaxCharacterWarning,(function(){return t.showMaxCharactersExceededOnLockReason})),e},props:{value:{required:!0,type:String},showMaxCharactersExceededOnLockReason:{required:!1,default:!1,type:Boolean}}},ut=Object(y.a)(lt,(function(){var e=this.$createElement,t=this._self._c||e;return t("form",{attrs:{novalidate:""}},[t("UserDetailsAdministrationLockUserFormGroupCause")],1)}),[],!1,null,null,null).exports,dt=n(99),ct=n.n(dt),ft=n(100),_t=n.n(ft),pt=n(108),Tt=n.n(pt);function ht(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}var Et=new WeakMap,It=function(){function e(){ct()(this,e),ht(this,Et,{writable:!0,value:new Set})}return _t()(e,[{key:"addCallback",value:function(e){Tt()(this,Et).add(e)}},{key:"removeCallback",value:function(e){Tt()(this,Et).delete(e)}},{key:"runCallbacks",value:function(){Tt()(this,Et).forEach((function(e){return e()}))}}]),e}();const mt={information:"information",sharedInformation:"sharedInformation"};var At=n(320),St=n(312),Rt=n(43),gt=n(209),vt=n(101),Ot=n(145);function bt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bt(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt={props:{parent:{type:String,default:"profile"}},data:function(){return{portalRoles:f.a,consentNumber:Ot.a,isViewMode:!0,isLoading:!1,declinedSpecialConsentIds:[]}},computed:Dt(Dt({},Object(c.c)({profileConsent:u.a.GET_MYPROFILE_CONSENTS,isSteppedUp:u.a.GET_GLOBAL_STEPPED_UP,isMobile:u.a.GET_IS_MOBILE,activeGroupHome:u.a.GET_ACTIVE_GROUP_HOME,groupHomes:u.a.GET_GROUP_HOMES})),{},{userProfileStore:function(){return Object(tt.a)()},profile:function(){return this.userProfileStore.institutionProfile}}),emits:["closeConsent"],methods:Dt(Dt(Dt({},Object(c.d)({resetConsent:u.a.MUTATE_RESET_MYPROFILE_CONSENT,setStepUpNotification:u.a.MUTATE_SET_NOTIFICATION_STEP_UP})),Object(c.b)({getConsentResponse:u.a.ACTION_GET_CONSENTS_RESPONSE,updateConsentResponses:u.a.ACTION_UPDATE_CONSENT_RESPONSES,setIsMobile:u.a.MUTATE_IS_MOBILE,setIsTablet:u.a.MUTATE_IS_TABLET})),{},{getFilteredConsents:function(){return this.profile.role===this.portalRoles.OTP?this.getFilteredConsentsForActiveGroupHome():this.profileConsent},getFilteredConsentsForActiveGroupHome:function(){var e;if(null==this.activeGroupHome)return[];var t=(null===(e=this.activeGroupHome)||void 0===e?void 0:e.children.map((function(e){return e.id})))||[];return this.profileConsent.filter((function(e){return t.includes(e.institutionProfile.id)}))},getDeclinedWarningMessage:function(e){var t;if(e.consentId==this.consentNumber.NUMBER_36){var n=this.$getText("COMPLEX_CONSENT_"+e.previousAnswer.toUpperCase());t=this.$getText("CONSENT_WARNING_DECLINED_CONSENT_NUMBER_"+e.consentId,{previousScope:n})}else t=this.$getText("CONSENT_WARNING_DECLINED_CONSENT_NUMBER_"+e.consentId);return t},submitConsent:function(){var e=this;this.isViewMode=!0;var t=this.$refs.consentMyProfile.submitConsentResponse();this.updateConsentResponses(t).then((function(){e.init()}))},showWarningModal:function(){this.declinedSpecialConsentIds=this.$refs.consentMyProfile.declinedSpecialQuestionEdited(),this.declinedSpecialConsentIds.length>0?this.$refs.warningModal.show():this.submitConsent()},warningModalUndoClicked:function(){this.$refs.warningModal.hide()},warningModalOkClicked:function(){this.$refs.warningModal.hide(),this.submitConsent()},showCancelModal:function(){this.$refs.consentMyProfile.isTableEdited()?this.$refs.cancelModal.show():this.isViewMode=!0},cancelModalOkClicked:function(){this.isViewMode=!0,this.$refs.cancelModal.hide(),this.$refs.consentMyProfile.resetTable()},stepUpLogin:function(){this.isSteppedUp?this.isViewMode=!1:this.setStepUpNotification({showStepUpNotification:!0,redirectedUrl:window.location.href,cancelUrl:null})},close:function(){this.$emit("close")},init:function(){var e=this;this.isLoading=!0,this.resetConsent(),this.getConsentResponse().then((function(){return e.isLoading=!1}))},detectIsMobile:function(){this.setIsMobile(),this.setIsTablet()}}
1),mounted:function(){this.isSteppedUp||this.init(),window.addEventListener("orientationchange",this.detectIsMobile)},beforeDestroy:function(){window.removeEventListener("orientationchange",this.detectIsMobile,!1)},components:{MobileTopbar:vt.a,ConsentAdditional:gt.a}},Ct=Object(y.a)(Nt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"consent-page"},[e.isMobile?e._e():n("div",{staticClass:"consent-header"},[n("span",[e._v("\n      "+e._s(e.$getText("STEP_DESCRIPTION_CONSENT_1"))+" "),n("br"),e._v("\n      "+e._s(e.$getText("STEP_DESCRIPTION_CONSENT_2"))+"\n    ")]),e._v(" "),n("div",{staticClass:"d-flex align-items-center"},[e.isViewMode?[n("b-btn",{staticClass:"ml-3 pull-right",attrs:{variant:"primary"},on:{click:function(t){return e.stepUpLogin()}}},[e._v("\n          "+e._s(e.$getText("BUTTON_EDIT"))+"\n        ")])]:[n("b-btn",{staticClass:"ml-3",attrs:{variant:"link"},on:{click:function(t){return e.showCancelModal()}}},[e._v("\n          "+e._s(e.$getText("CANCEL"))+"\n        ")]),e._v(" "),n("b-btn",{staticClass:"ml-3",attrs:{variant:"primary"},on:{click:function(t){return e.showWarningModal()}}},[e._v("\n          "+e._s(e.$getText("BUTTON_SAVE"))+"\n        ")])]],2)]),e._v(" "),n("div",{staticClass:"consent-header-container"},[e.isMobile?n("div",{staticClass:"consent-header-mobile"},[n("mobile-topbar",{attrs:{"left-icon":e.isViewMode?"icon-Aula_app_arrow_slideback":null,"left-text":e.isViewMode?null:"CANCEL","text-key":"CONSENT_LABEL","right-text-icon":e.isViewMode?"icon-Aula_edit_pen":null,"right-text":e.isViewMode?"BUTTON_EDIT_SMALL":"BUTTON_SAVE_SMALL","background-color":null,color:null,"css-class":e.isViewMode?"consent-view-mode-header":"consent-edit-mode-header"},on:{leftIconClicked:function(t){return e.close()},leftTextClicked:function(t){return e.showCancelModal()},rightTextClicked:function(t){e.isViewMode?e.stepUpLogin():e.showWarningModal()}}})],1):e._e()]),e._v(" "),e.isLoading?n("aula-spinner"):e._e(),e._v(" "),e.isMobile?n("div",{staticClass:"p-3"},[n("span",[e._v("\n      "+e._s(e.$getText("STEP_DESCRIPTION_CONSENT_1"))+" "),n("br"),e._v("\n      "+e._s(e.$getText("STEP_DESCRIPTION_CONSENT_2"))+"\n    ")])]):e._e(),e._v(" "),!e.isLoading&&(e.profile.role==e.portalRoles.GUARDIAN||e.profile.role==e.portalRoles.CHILD||e.profile.role==e.portalRoles.OTP)&&e.getFilteredConsents().length>0?n("consent-additional",{ref:"consentMyProfile",class:{"consent-table-mobile":e.isMobile,"view-mode":e.isViewMode},attrs:{data:e.getFilteredConsents(),"show-title":!1,"is-disabled":e.isViewMode}}):e._e(),e._v(" "),n("aula-modal",{ref:"cancelModal",attrs:{"ok-text":"BUTTON_YES"},on:{cancelClicked:function(t){return e.$refs.cancelModal.hide()},okClicked:function(t){return e.cancelModalOkClicked()}}},[e._v("\n    "+e._s(e.$getText("CONSENT_CANCEL_MODAL_TEXT1"))),n("br"),e._v("\n    "+e._s(e.$getText("CONSENT_CANCEL_MODAL_TEXT2"))+"\n  ")]),e._v(" "),n("aula-modal",{ref:"warningModal",on:{cancelClicked:function(t){return e.warningModalUndoClicked()},okClicked:function(t){return e.warningModalOkClicked()}}},[e._l(e.declinedSpecialConsentIds,(function(t,i){return[e._v("\n      "+e._s(e.getDeclinedWarningMessage(t))),n("br",{key:i})]})),e._v("\n    "+e._s(e.$getText("CONSENT_WARNING_DECLINED_2"))+"\n  ")],2)
1],1)}),[],!1,null,"38db460a",null).exports,yt=n(80),Pt=n(346),Lt=n(61),wt={components:{IconContainer:Lt.a,Icon:Ne.a},props:{profile:{type:Object,required:!0},isEditing:{type:Boolean,default:!1}},emits:["input"],data(){return{contactForm:new Pt.a(this.profile)}},computed:{iconClassEnum:()=>Ce.a,canEdit(){return this.isEditing&&this.profile.currentUserCanEditContactInformation},canShowWorkPhoneNumber(){return this.profile.role!==f.a.CHILD},canEditNonWorkPhoneNumber(){return this.isEditing&&this.profile.role!==f.a.EMPLOYEE},canView(){return!this.isEditing&&this.profile.currentUserCanViewContactInformation},canEditDescription(){return this.isEditing&&this.profile.currentUserCanEditProfileDescription}},watch:{isEditing(e){e&&this.initializeForm()}},methods:{emitInput(){this.$emit("input",this.contactForm)},initializeForm(){this.contactForm=new Pt.a(this.profile),this.canEditDescription||(this.contactForm.description=null)}}},Ut=Object(y.a)(wt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"contact-form"},[e.canEdit?n("b-form-group",{staticClass:"contact-form-input-group"},[e.canEditNonWorkPhoneNumber?n("b-form-group",[n("label",[e._v(e._s(e.$getText("PROFILE_HOME_PHONE_LABEL")))]),e._v(" "),n("b-input",{attrs:{"aria-label":e.$getText("PROFILE_HOME_PHONE_LABEL")},on:{input:e.emitInput},model:{value:e.contactForm.homePhoneNumber,callback:function(t){e.$set(e.contactForm,"homePhoneNumber",t)},expression:"contactForm.homePhoneNumber"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:!e.contactForm.isValidHomePhoneNumber}},[e._v("\n        "+e._s(e.$getText("PROFILE_PHONE_FORMAT_WARNING"))+"\n      ")])],1):e._e(),e._v(" "),e.canEditNonWorkPhoneNumber?n("b-form-group",[n("label",[e._v(e._s(e.$getText("PROFILE_MOBILE_PHONE_LABEL")))]),e._v(" "),n("b-input",{attrs:{"aria-label":e.$getText("PROFILE_MOBILE_PHONE_LABEL")},on:{input:e.emitInput},model:{value:e.contactForm.mobilePhoneNumber,callback:function(t){e.$set(e.contactForm,"mobilePhoneNumber",t)},expression:"contactForm.mobilePhoneNumber"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:!e.contactForm.isValidMobilePhoneNumber}},[e._v("\n        "+e._s(e.$getText("PROFILE_PHONE_FORMAT_WARNING"))+"\n      ")])],1):e._e(),e._v(" "),e.canShowWorkPhoneNumber?n("b-form-group",[n("label",[e._v(e._s(e.$t("contact.work_number")))]),e._v(" "),n("b-input",{attrs:{"aria-label":e.$t("contact.work_number")},on:{input:e.emitInput},model:{value:e.contactForm.workPhoneNumber,callback:function(t){e.$set(e.contactForm,"workPhoneNumber",t)},expression:"contactForm.workPhoneNumber"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:!e.contactForm.isValidWorkPhoneNumber}},[e._v("\n        "+e._s(e.$getText("PROFILE_PHONE_FORMAT_WARNING"))+"\n      ")])],1):e._e(),e._v(" "),n("b-form-group",[n("label",[e._v(e._s(e.$getText("PROFILE_EMAIL_LABEL")))]),e._v(" "),n("b-input",{attrs:{"aria-label":e.$getText("PROFILE_EMAIL_LABEL")},on:{input:e.emitInput},model:{value:e.contactForm.email,callback:function(t){e.$set(e.contactForm,"email",t)},expression:"contactForm.email"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:!e.contactForm.isValidEmail}},[e._v("\n        "+e._s(e.$getText("PROFILE_EMAIL_FORMAT_WARNING"))+"\n      ")])],1)],1):e._e(),e._v(" "),e.canEditDescription?n("b-form-group",{staticClass:"contact-form-input-group"},[n("label",[e._v(e._s(e.$getText("PROFILE_DESCRIPTION_LABEL")))]),e._v(" "),n("b-form-textarea",{attrs:{rows:"4","aria-label":e.$getText("PROFILE_DESCRIPTION_LABEL")},on:{input:e.emitInput},model:{value:e.contactForm.description,callback:function(t){e.$set(e.contactForm,"description",t)},expression:"contactForm.description"}}),e._v(" "),n("b-alert",{attrs:{variant:"danger",show:!e.contactForm.isValidDescription}},[e._v("\n      "+e._s(e.$getText("PROFILE_DESCRIPTION_ERROR_MAX_CONTENT"))+"\n    ")])],1):e._e(),e._v(" "),e.canView?[e.profile.homePhoneNumber?n("div",{staticClass:"contact-form-item"},[n("IconContainer",{staticClass:"contact-icon"},[n("Icon",{attrs:{name:e.iconClassEnum.PHONE}})],1),e._v(" "),n("div",{staticClass:"contact-label"},[e._v(e._s(e.$getText("PROFILE_HOME_PHONE_LABEL"))+":")]),e._v("\n      "+e._s(e.profile.homePhoneNumber)+"\n    ")],1):e._e(
1),e._v(" "),e.profile.mobilePhoneNumber?n("div",{staticClass:"contact-form-item"},[n("IconContainer",{staticClass:"contact-icon"},[n("Icon",{attrs:{name:e.iconClassEnum.PHONE}})],1),e._v(" "),n("div",{staticClass:"contact-label"},[e._v(e._s(e.$getText("PROFILE_MOBILE_PHONE_LABEL"))+":")]),e._v("\n      "+e._s(e.profile.mobilePhoneNumber)+"\n    ")],1):e._e(),e._v(" "),e.canShowWorkPhoneNumber?n("div",{staticClass:"contact-form-item"},[n("IconContainer",{staticClass:"contact-icon"},[n("Icon",{attrs:{name:e.iconClassEnum.PHONE}})],1),e._v(" "),n("div",{staticClass:"contact-label"},[e._v(e._s(e.$t("contact.work_number"))+":")]),e._v("\n      "+e._s(e.profile.workPhoneNumber)+"\n    ")],1):e._e(),e._v(" "),e.profile.email?n("div",{staticClass:"contact-form-item"},[n("IconContainer",{staticClass:"contact-icon"},[n("Icon",{staticClass:"email-icon",attrs:{name:e.iconClassEnum.EMAIL}})],1),e._v(" "),n("div",{staticClass:"contact-label"},[e._v(e._s(e.$t("user.email"))+":")]),e._v(" "),n("a",{staticClass:"email-link",attrs:{href:"mailto: "+e.profile.email}},[e._v(e._s(e.profile.email))])],1):e._e()]:e._e()],2)}),[],!1,null,"2bcea461",null).exports,Mt=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},kt={components:{Icon:Ne.a,AulaButton:A.a},props:{profile:{type:Object,required:!0}},data:()=>({isExpanded:!1,isLoading:!1}),computed:Object.assign(Object.assign({},Object(c.c)({isSteppedUp:u.a.GET_GLOBAL_STEPPED_UP,profileConsents:u.a.GET_PROFILE_CONSENTS})),{icon(){return this.isExpanded?Ce.a.MINUS:Ce.a.PLUS},hasConsentResponses(){return this.profileConsents.some((e=>e.consentResponses.length>0))}}),methods:Object.assign(Object.assign(Object.assign({},Object(c.d)({setStepUpNotification:u.a.MUTATE_SET_NOTIFICATION_STEP_UP,resetConsents:u.a.MUTATE_RESET_PROFILE_CONSENT})),Object(c.b)({getConsentResponse:u.a.ACTION_GET_CONSENTS_RESPONSE_BY_INSTITUTION_PROFILEID})),{toggle(){this.isExpanded=!this.isExpanded,this.isExpanded&&this.expand()},expand(){this.isSteppedUp?(this.resetConsents(),this.loadConsents()):this.redirectToStepUp()},redirectToStepUp(){this.setStepUpNotification({showStepUpNotification:!0,redirectedUrl:window.location.href})},loadConsents(){return Mt(this,void 0,void 0,(function*(){this.isLoading=!0,yield this.getConsentResponse({id:this.profile.id}),this.isLoading=!1}))},getConsentAnswerText(e){switch(e){case ke.a.YEAR_AND_SFO:return this.$getText("CONSENT_ANSWER_YEAR_AND_SFO");case ke.a.INSTITUTION:return this.$getText("CONSENT_ANSWER_INSTITUTION");case ke.a.CLASS_OR_STUE:return this.$getText("CONSENT_ANSWER_CLASS_OR_STUE");case ke.a.ACCEPTED:return this.$getText("CONSENT_ANSWER_ACCEPTED");case ke.a.DECLINED:return this.$getText("CONSENT_ANSWER_DECLINED");case ke.a.NOT_AT_ALL:return this.$getText("CONSENT_ANSWER_NOT_AT_ALL");default:return this.$getText("CONSENT_ANSWER_NOT_ANSWERED")}}})},xt=Object(y.a)(kt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"contact-consents"},[n("AulaButton",{staticClass:"consent-button",attrs:{variant:"link","aria-expanded":e.isExpanded},on:{click:e.toggle}},[n("Icon",{staticClass:"pr-1",attrs:{name:e.icon}}),e._v(" "+e._s(e.$getText("CONSENT_LABEL"))+"\n  ")],1),e._v(" "),n("b-collapse",{model:{value:e.isExpanded,callback:function(t){e.isExpanded=t},expression:"isExpanded"}},[e.isLoading?n("AulaSpinner",{staticClass:"consent-spinner"}):e.hasConsentResponses?e._e():n("p",{staticClass:"pl-4"},[e._v(e._s(e.$getText("NO_CONSENT_TO_SHOW")))]),e._v(" "),e._l(e.profileConsents,(function(t,i){return n("ul",{key:i,staticClass:"consent-list"},e._l(t.consentResponses,(function(t,i){return n("li",{key:i},[e._v("\n        "+e._s(t.consentDescription)+" "),n("strong",[e._v(e._s(e.getConsentAnswerText(t.consentResponseAnswer)))])])})),0)}))],2)],1)}),[],!1,null,"5e418661",null).exports,Ht=n(79),$t=function(e,t,n,i){return new(n||(n=Prom
1ise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},Bt={components:{ConsentAdditional:gt.a,AulaButtons:m.a,Icon:Ne.a,AulaButton:A.a},props:{profile:{type:Object,required:!0}},data:()=>({isExpanded:!1,isEditing:!1,isLoading:!1}),computed:Object.assign(Object.assign({},Object(c.c)({isSteppedUp:u.a.GET_GLOBAL_STEPPED_UP,additionalConsents:u.a.GET_PROFILE_ADDITIONAL_DATA})),{userProfileStore:()=>Object(tt.a)(),loggedInProfile(){return this.userProfileStore.institutionProfile},icon(){return this.isExpanded?Ce.a.MINUS:Ce.a.PLUS},canEdit(){if(this.loggedInProfile.role!==f.a.EMPLOYEE)return!1;for(const e of this.additionalConsents)if(e.additionalDataResponses.some((e=>e.canCurrentProfileRespond)))return!0;return!1}}),methods:Object.assign(Object.assign(Object.assign({setEditState(e){this.isEditing=e}},Object(c.d)({setStepUpNotification:u.a.MUTATE_SET_NOTIFICATION_STEP_UP,resetConsents:u.a.MUTATE_RESET_PROFILE_CONSENT})),Object(c.b)({loadAdditionalData:u.a.LOAD_PROFILE_ADDITIONAL_DATA})),{toggle(){this.isExpanded=!this.isExpanded,this.isExpanded&&this.expand()},expand(){this.isSteppedUp?this.loadConsents():this.redirectToStepUp()},redirectToStepUp(){this.setStepUpNotification({showStepUpNotification:!0,redirectedUrl:window.location.href})},handleConsentsSaved(){this.isEditing=!1,this.loadConsents()},loadConsents(){return $t(this,void 0,void 0,(function*(){this.isLoading=!0,yield this.loadAdditionalData({instProfileIds:[this.profile.id]}),this.isLoading=!1}))},getConsentAnswerText(e){return e.answerType!==Ht.a.YESNO?e.response||this.$getText("CONSENT_ANSWER_NOT_ANSWERED"):!0===e.yesNoResponse?this.$getText("ADDITIONAL_ANSWER_YES"):!1===e.yesNoResponse?this.$getText("ADDITIONAL_ANSWER_NO"):this.$getText("CONSENT_ANSWER_NOT_ANSWERED")},getConsentOptionalQuestionAnswerText(e){return e.response||this.$getText("CONSENT_ANSWER_NOT_ANSWERED")},getOptionalQuestion:e=>!0===e.yesNoResponse?e.optionalQuestionForYes:!1===e.yesNoResponse?e.optionalQuestionForNo:""})},Ft=Object(y.a)(Bt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"contact-additional-consents"},[n("AulaButton",{staticClass:"consent-button",attrs:{variant:"link","aria-expanded":e.isExpanded},on:{click:e.toggle}},[n("Icon",{staticClass:"pr-1",attrs:{name:e.icon}}),e._v(" "+e._s(e.$getText("ADDITIONAL_LABEL"))+"\n  ")],1),e._v(" "),n("b-collapse",{model:{value:e.isExpanded,callback:function(t){e.isExpanded=t},expression:"isExpanded"}},[e.canEdit?n("AulaButtons",{staticClass:"consent-actions"},[e.isEditing?e._e():n("AulaButton",{staticClass:"text-uppercase",on:{click:function(t){return e.setEditState(!0)}}},[e._v("\n        "+e._s(e.$getText("EDIT"))+"\n      ")])],1):e._e(),e._v(" "),e.isLoading?n("AulaSpinner",{staticClass:"consent-spinner"}):e._e(),e._v(" "),e.isEditing?n("ConsentAdditional",{staticClass:"mt-5",attrs:{"show-submit":"",data:e.additionalConsents,"is-edit-on-behalf-mode":!0,type:"additional"},on:{cancel:function(t){return e.setEditState(!1)},saved:e.handleConsentsSaved}}):e._e(),e._v(" "),e.isLoading||e.isEditing?e._e():n("div",{staticClass:"additional-consent-responses"},e._l(e.additionalConsents,(function(t,i){return n("ul",{key:i,staticClass:"consent-list"},e._l(t.additionalDataResponses,(function(t){return n("li",{key:t.additionalDataId},[e._v("\n          "+e._s(t.additionalDataQuestion)+": "),n("strong",[e._v(e._s(e.getConsentAnswerText(t)))]),e._v(" "),e.getOptionalQuestion(t)?n("div",{staticClass:"pl-3"},[e._v("\n            "+e._s(e.getOptionalQuestion(t))+": "),n("strong",[e._v(e._s(e.getConsentOptionalQuestionAnswerText(t)))])]):e._e()])})),0)})),0)],1)],1)}),[],!1,null,"077ccf1c",null).exports,Gt=n(317),jt=n(35);const Yt=e=>e.alias?`${e.fullName} (${jt.a.t("user.alias")})`:e.fullName;var qt={components:{ContactInformationProfileActions:Gt.a,ContactInformationAdditionalConsents:Ft,ContactInformationConsents:xt,Icon:Ne.a,AulaButton:A.a,AulaButtons:m.a,ContactInformationContactForm:Ut,Avatar:yt.a},props:{profile:{type:Object,required:!0},isEditing:{type:Boolean,default:!1},showConsents:{type:Boolean,default:!1},showAdditionalConsents:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1},showBlockedStatus:{type:Boolean,default:!1}},emits:["input","deleteAvatar","editAvatar","toggleBlockedCommunication"],computed:Object.assign(Object.assign({},Object(c.c)({isMobile:u.a.GET_IS_MOBILE})),{iconClassEnum:()=>Ce.a,addressStreet(){return null==this.profile.address.postalDistrict?this.$getText("PROFILE_ADDRESS_UNKOWN"):this.profile.address.street},birthday(){return this.profile.birthday?ue.e(this.profile.birthday,"D[.] MMM[.] YYYY"):""},lastActivity(){return this.profile.lastActivity?ue.e(this.profile.lastActivity,"D[.] MMM[.] YYYY"):""},canDeleteAvatar(){return this.profile.currentUserCanDeleteProfilePicture},canEditAvatar(){return this.profile.currentUserCanEditProfilePicture},canViewDescription(){return this.profile.currentUserCanSeeProfileDescription},hasMainDetails(){return this.profile.address||this.profile.birthday||this.lastActivity||this.canViewDescription},isLocked(){return this.profile.profileStatus===X.a.LOCKED},contactName(){return Yt(this.profile)}}),methods:{emitInput(e){this.$emit("input",e)},emitDeleteAvatar(){this.$emit("deleteAvatar",this.profile)},emitEditAvatar(){this.$emit("editAvatar",this.profile)},emitToggleBlockedCommunication(e){this.$emit("toggleBlockedCommunication",e)}}},Vt=Object(y.a)(qt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main-contact"},[n("div",{staticClass:"contact-card"},[n("div",{staticClass:"contact-avatar-container"},[n("Avatar",{staticClass:"contact-avatar",attrs:{profile:e.profile,"show-overlay":"","short-text":e.isMobile}}),e._v(" "),n("strong",{staticClass:"hide-mobile-up"},[e._v(e._s(e.contactName)+" ("+e._s(e.profile.metadata)+")")]),e._v(" "),n("AulaButtons",{staticClass:"profile-picture-actions"},[e.canDeleteAvatar?n("AulaButton",{staticClass:"btn-circle",attrs:{variant:"link","aria-label":e.$getText("FILEPICKER_DELET
1E_PROFILE_PICTURE")},on:{click:e.emitDeleteAvatar}},[n("Icon",{attrs:{name:e.iconClassEnum.BIN}})],1):e._e(),e._v(" "),e.canEditAvatar?n("AulaButton",{staticClass:"btn-circle",attrs:{"aria-label":e.$getText("FILEPICKER_CHANGE_PROFILE_PICTURE"),variant:"link"},on:{click:e.emitEditAvatar}},[n("Icon",{attrs:{name:e.iconClassEnum.EDIT_PEN}})],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"information-container"},[n("h4",{staticClass:"hide-mobile-down"},[e._v("\n        "+e._s(e.contactName)+" ("+e._s(e.profile.metadata)+") "),e.isLocked?n("Icon",{attrs:{name:e.iconClassEnum.LOCK}}):e._e()],1),e._v(" "),e.showShortcuts?n("ContactInformationProfileActions",{staticClass:"mt-2 mt-lg-0",attrs:{"institution-profile":e.profile}}):e._e(),e._v(" "),n("div",{staticClass:"contact-details",attrs:{"data-main-details":e.hasMainDetails}},[n("div",{staticClass:"main-details"},[e.profile.address?n("address",{staticClass:"address"},[n("span",{staticClass:"text-nowrap"},[e._v(e._s(e.addressStreet))]),e._v(" "),n("br"),e._v(" "),n("span",{staticClass:"text-nowrap"},[e._v(e._s(e.profile.address.postalCode)+" "+e._s(e.profile.address.postalDistrict))])]):e._e(),e._v(" "),e.birthday?n("p",[n("span",{staticClass:"text-nowrap"},[e._v(e._s(e.$getText("BIRTHDAY"))+": "+e._s(e.birthday))])]):e._e(),e._v(" "),e.lastActivity?n("p",[n("span",{staticClass:"text-nowrap"},[e._v(e._s(e.$getText("LAST_ACTIVITY"))+": "+e._s(e.lastActivity))])]):e._e(),e._v(" "),e.canViewDescription?n("p",[n("span",{staticClass:"text-nowrap"},[e._v(e._s(e.$getText("PROFILE_DESCRIPTION_LABEL_SHORT"))+":")]),e._v(" "),n("span",[e._v(e._s(e.profile.institutionProfileDescriptions))])]):e._e()]),e._v(" "),n("ContactInformationContactForm",{staticClass:"main-contact-form",attrs:{"is-editing":e.isEditing,profile:e.profile},on:{input:e.emitInput}})],1),e._v(" "),e.showBlockedStatus?[n("hr"),e._v(" "),n("strong",[e._v(e._s(e.$t("user.communication_restrictions")))]),e._v(" "),n("br"),e._v(" "),n("b-form-checkbox",{staticClass:"mt-2",attrs:{id:"blockCommunicationCheckbox",checked:e.profile.communicationBlocked},on:{change:e.emitToggleBlockedCommunication}},[n("span",{staticClass:"font-weight-normal"},[e._v(e._s(e.$t("user.blocked_communication")))])])]:e._e(),e._v(" "),n("div",{staticClass:"consent-container"},[e.showConsents?n("ContactInformationConsents",{staticClass:"py-2",attrs:{profile:e.profile}}):e._e(),e._v(" "),e.showAdditionalConsents?n("ContactInformationAdditionalConsents",{staticClass:"py-2",attrs:{profile:e.profile}}):e._e()],1)],2)])])}),[],!1,null,"e1038f00",null).exports,Kt={components:{ContactInformationProfileActions:Gt.a,ContactInformationContactForm:Ut,Icon:Ne.a,IconContainer:Lt.a,AulaButton:A.a,AulaButtons:m.a,Avatar:yt.a},props:{profile:{type:Object,required:!0},isEditing:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:["input","deleteAvatar","editAvatar"],computed:{iconClassEnum:()=>Ce.a,addressStreet(){return this.profile.address&&null!=this.profile.address.postalDistrict?this.profile.address.street:this.$getText("PROFILE_ADDRESS_UNKOWN")},relation(){return this.profile.role!=f.a.CHILD},birthday(){return this.profile.birthday?ue.e(this.profile.birthday,"D[.] MMM[.] YYYY"):""},lastActivity(){return this.profile.lastActivity?ue.e(this.profile.lastActivity,"D[.] MMM[.] YYYY"):""},hasCustodyText(){return this.profile.hasCustody?this.$getText("YES"):this.$getText("NO")},canSeeCustody(){return"boolean"==typeof this.profile.hasCustody},canDeleteAvatar(){return this.profile.currentUserCanDeleteProfilePicture},canEditAvatar(){return this.profile.currentUserCanEditProfilePicture},canViewDescription(){return this.profile.currentUserCanSeeProfileDescription},contactName(){return Yt(this.profile)}},methods:{emitInput(e){this.$emit("input",e)},emitDeleteAvatar(){this.$emit("deleteAvatar",this.profile)},emitEditAvatar(){this.$emit("editAvatar",this.profile)}}},Wt={components:{ContactInformationRelatedContact:Object(y.a)(Kt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"related-contact"},[n("div",{staticClass:"contact-card"},[n("div",{staticClass:"contact-header"},[n("div",{staticClass:"contact-avatar-container"},[n("Avatar",{staticClass:"contact-avatar",attrs:{profile:e.profile,"show-overlay":"","short-text":""}}),e._v(" "),n("strong",{staticClass:"hide-mobile-up"},[e._v(e._s(e.contactName)+" ("+e._s(e.profile.metadata)+")")]),e._v(" "),n("AulaButtons",{staticClass:"profile-picture-actions"},[e.canDeleteAvatar?n("AulaButton",{attrs:{variant:"link","aria-label":e.$getText("FILEPICKER_DELET
1E_PROFILE_PICTURE")},on:{click:e.emitDeleteAvatar}},[n("IconContainer",{staticClass:"action-icon"},[n("Icon",{attrs:{name:e.iconClassEnum.BIN}})],1)],1):e._e(),e._v(" "),e.canEditAvatar?n("AulaButton",{attrs:{variant:"link","aria-label":e.$getText("FILEPICKER_CHANGE_PROFILE_PICTURE")},on:{click:e.emitEditAvatar}},[n("IconContainer",{staticClass:"action-icon"},[n("Icon",{attrs:{name:e.iconClassEnum.EDIT_PEN}})],1)],1):e._e()],1)],1),e._v(" "),n("div",{staticClass:"header-group"},[n("h4",{staticClass:"hide-mobile-down"},[e._v(e._s(e.contactName)+" ("+e._s(e.profile.metadata)+")")]),e._v(" "),e.showShortcuts?n("ContactInformationProfileActions",{staticClass:"mt-2 mt-lg-0",attrs:{"institution-profile":e.profile}}):e._e()],1)]),e._v(" "),n("div",{staticClass:"information-container"},[n("div",{staticClass:"contact-details"},[n("div",[e.relation?n("p",[n("span",[e._v(e._s(e.$getText("PROFILE_RELATION_LABEL_SHORT"))+": "+e._s(e.profile.relation))])]):e._e(),e._v(" "),e.canSeeCustody?n("p",[e._v(e._s(e.$getText("HAS_CUSTODY"))+": "+e._s(e.hasCustodyText))]):e._e(),e._v(" "),e.birthday?n("p",[e._v(e._s(e.$getText("BIRTHDAY"))+": "+e._s(e.birthday))]):e._e(),e._v(" "),e.lastActivity?n("p",[e._v(e._s(e.$getText("LAST_ACTIVITY"))+": "+e._s(e.lastActivity))]):e._e(),e._v(" "),e.profile.address?n("address",{staticClass:"address"},[e._v("\n            "+e._s(e.addressStreet)),n("br"),e._v("\n            "+e._s(e.profile.address.postalCode)+" "+e._s(e.profile.address.postalDistrict)+"\n          ")]):e._e(),e._v(" "),e.canViewDescription?n("p",[n("span",{staticClass:"text-nowrap"},[e._v(e._s(e.$getText("PROFILE_DESCRIPTION_LABEL_SHORT"))+":")]),e._v(" "),n("span",[e._v(e._s(e.profile.institutionProfileDescriptions))])]):e._e()]),e._v(" "),n("ContactInformationContactForm",{staticClass:"related-contact-form",attrs:{"is-editing":e.isEditing,profile:e.profile},on:{input:e.emitInput}})],1)])])])}),[],!1,null,"163f1f82",null).exports,ContactInformationMainContact:Vt},props:{institutionProfile:{type:Object,required:!0},isEditing:{type:Boolean,default:!1},overConsentAge:{type:Boolean,default:!1},showRelations:{type:Boolean,default:!1},showShortcuts:{type:Boolean,default:!1}},emits:["input","deleteAvatar","editAvatar"],computed:Object.assign(Object.assign({},Object(c.c)({hasPermissionOnInstitution:u.a.HAS_PERMISSION_ON_INSTITUTION,hasPermission:u.a.HAS_PERMISSION})),{relatedInstitutionProfiles(){return this.institutionProfile.relations},canViewConsents(){if(!this.institutionProfile.currentUserCanViewContactInformation||this.institutionProfile.role!==f.a.CHILD)return!1;return this.hasPermissionOnInstitution(p.a.VIEW_USERS_CONSENTS,this.institutionProfile.institutionCode)&&this.overConsentAge},canViewAdditionalConsents(){return this.institutionProfile.role===f.a.CHILD&&this.hasPermissionOnInstitution(p.a.VIEW_USERS_ADDITIONAL_DATA,this.institutionProfile.institutionCode)},isCommunicationBlocked(){return!this.hasPermission(p.a.WRITE_MESSAGE)||this.institutionProfile.communicationBlocked}}),methods:{emitInput(e){this.$emit("input",e)},emitDeleteAvatar(e){this.$emit("deleteAvatar",e)},emitEditAvatar(e){this.$emit("editAvatar",e)}
1,hasBlockedCommunicationChannels:e=>e.hasBlockedCommunicationChannels,canShowShortcuts(e){return this.showShortcuts&&!this.isCommunicationBlocked&&!this.hasBlockedCommunicationChannels(e)}}},Qt=Object(y.a)(Wt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"institution-contact"},[n("h4",[e._v(e._s(e.institutionProfile.institutionName))]),e._v(" "),n("ContactInformationMainContact",{staticClass:"py-4",attrs:{"is-editing":e.isEditing,profile:e.institutionProfile,"show-consents":e.canViewConsents,"show-additional-consents":e.canViewAdditionalConsents,"show-shortcuts":e.canShowShortcuts(e.institutionProfile)},on:{input:e.emitInput,editAvatar:e.emitEditAvatar,deleteAvatar:e.emitDeleteAvatar}}),e._v(" "),e.showRelations?n("div",{staticClass:"related-contacts"},e._l(e.relatedInstitutionProfiles,(function(t){return n("ContactInformationRelatedContact",{key:t.id,staticClass:"mb-lg-0 mb-3",attrs:{"is-editing":e.isEditing,profile:t,"show-shortcuts":e.canShowShortcuts(t)},on:{input:e.emitInput,editAvatar:e.emitEditAvatar,deleteAvatar:e.emitDeleteAvatar}})})),1):e._e()],1)}),[],!1,null,"613038e4",null).exports,Xt=n(134),zt=n(306),Zt=n(458),Jt=function(e,t,n,i){return new(n||(n=Promise))((function(s,r){function o(e){try{l(i.next(e))}catch(e){r(e)}}function a(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}l((i=i.apply(e,t||[])).next())}))},en={components:{ContactInformationPrimaryInstitution:Zt.a,ContactInformationUploadAvatarForm:zt.a,AulaButtons:m.a,AulaButton:A.a,ContactInformationInstitutionProfile:Qt},props:{profile:{type:Object,required:!0},isLoading:{type:Boolean,default:!1},canEdit:{type:Boolean,default:!1},showRelations:{type:Boolean,default:!1}},emits:["saved"],data:()=>({isEditing:!1,contactFormMap:new Map,isUpdating:!1,selectedProfile:null,primaryInstitutionProfileId:null,hasDataChanged:!1}),computed:Object.assign(Object.assign({},Object(c.c)({institutions:u.a.GET_INSTITUTIONS})),{userProfileStore:()=>Object(tt.a)(),loggedInProfile(){return this.userProfileStore.institutionProfile},canShowShortcuts(){return this.loggedInProfile.role!==f.a.OTP&&this.profile.profileId!==this.loggedInProfile.profileId},canChangePrimaryInstitution(){const e=[f.a.EMPLOYEE,f.a.GUARDIAN].includes(this.loggedInProfile.role);return this.canEdit&&e&&this.institutions.length>1}}),mounted(){this.setPrimaryInstitutionProfileId()},methods:Object.assign(Object.assign({},Object(c.d)({setSuccessText:u.a.MUTATE_SUCCESS_TEXT,setErrorText:u.a.MUTATE_ERROR_TEXT})),{setPrimaryInstitutionProfileId(){var e;this.primaryInstitutionProfileId=(null===(e=this.institutions.find((e=>e.isPrimary)))||void 0===e?void 0:e.institutionProfileId)||null},setEditState(e){this.isEditing=e},handlePrimaryInstitutionChange(){this.hasDataChanged=!0},handleContactInput(e){this.hasDataChanged=!0,this.contactFormMap.set(e.institutionProfileId,e)},handleCancelClicked(){this.hasDataChanged?this.$refs.unsavedDataWarningModal.show():this.cancelEditing()},handleCancelConfirmed(){this.$refs.unsavedDataWarningModal.hide(),this.cancelEditing()},cancelEditing(){this.setEditState(!1),this.reset()},reset(){this.setPrimaryInstitutionProfileId(),this.hasDataChanged=!1},updateContacts(){return Jt(this,void 0,void 0,(function*(){const e=Array.from(this.contactFormMap.values());if(!e.every((e=>e.isValid)))return;const t={institutionProfilesMasterData:e,primaryInstitutionProfileId:this.canChangePrimaryInstitution?this.primaryInstitutionProfileId:null};this.isUpdating=!0;try{yield Xt.a.updateProfileMasterData(t),this.setSuccessText("PROFILE_UPDATE_SUCCESS_TOASTR"),this.$emit("saved")}catch(e){this.setErrorText("API_ERROR_UPDATE_PROFILE_MASTER_DATA")}this.isEditing=!1,this.isUpdating=!1}))},handleEditAvatar(e){this.selectedProfile=e,this.$refs.uploadAvatarModal.show()},handleAvatarChanged(){this.$refs.uploadAvatarModal.hide(),this.$emit("saved")},handleDeleteAvatarClicked(e){this.selectedProfile=e,this.$refs.avatarDeletedWarningModal.show()},deleteSelectedAvatar(){return Jt(this,void 0,void 0,(function*(){const e={institutionProfileId:this.selectedProfile.id};try{yield Xt.a.updateProfilePicture(e),this.setSuccessText("PROFILE_PICTURE_DELETED"),this.$refs.avatarDeletedWarningModal.hide(),this.$emit("saved")}catch(e){this.setErrorText("API_ERROR_GENERAL")}}))}})},tn=Object(y.a)(en,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"contact-information"},[e.canEdit?n("AulaButtons",{staticClass:"contact-information-actions"},[e.isEditing?e._e():n("AulaButton",{staticClass:"text-uppercase",on:{click:function(t){return e.setEditState(!0)}}},[e._v("\n      "+e._s(e.$getText("EDIT"))+"\n    ")]),e._v(" "),e.isEditing?n("AulaButton",{attrs:{variant:"link",disabled:e.isUpdating},on:{click:e.handleCancelClicked}}
1,[e._v("\n      "+e._s(e.$getText("CANCEL"))+"\n    ")]):e._e(),e._v(" "),e.isEditing?n("AulaButton",{staticClass:"text-uppercase",attrs:{disabled:e.isUpdating},on:{click:e.updateContacts}},[e._v("\n      "+e._s(e.$getText("BUTTON_SAVE"))+"\n    ")]):e._e()],1):e._e(),e._v(" "),e.isLoading||e.isUpdating?n("AulaSpinner"):[e.canChangePrimaryInstitution?[n("ContactInformationPrimaryInstitution",{staticClass:"primary-institution",attrs:{disabled:!e.isEditing,institutions:e.institutions},on:{change:e.handlePrimaryInstitutionChange},model:{value:e.primaryInstitutionProfileId,callback:function(t){e.primaryInstitutionProfileId=t},expression:"primaryInstitutionProfileId"}})]:e._e(),e._v(" "),e._l(e.profile.institutionProfiles,(function(t){return n("ContactInformationInstitutionProfile",{key:t.id,staticClass:"contact-information-item",attrs:{"is-editing":e.isEditing,"institution-profile":t,"over-consent-age":e.profile.overConsentAge,"show-relations":e.showRelations,"show-shortcuts":e.canShowShortcuts},on:{input:e.handleContactInput,editAvatar:e.handleEditAvatar,deleteAvatar:e.handleDeleteAvatarClicked}})}))],e._v(" "),n("AulaModal",{ref:"avatarDeletedWarningModal",attrs:{"ok-text":"BUTTON_YES"},on:{cancelClicked:function(t){return e.$refs.avatarDeletedWarningModal.hide()},okClicked:e.deleteSelectedAvatar}},[n("p",[e._v(e._s(e.$getText("DELETE_PROFILE_PICTURE_WARNING_1"))),n("br")]),e._v(" "),n("p",[e._v(e._s(e.$getText("DELETE_PROFILE_PICTURE_WARNING_2")))])]),e._v(" "),n("AulaModal",{ref:"uploadAvatarModal",attrs:{"header-text-from-textkey":!1,"header-text":e.$getText("FILEPICKER_PROFILE_PICTURE"),"show-ok":!1,"hide-footer":""},on:{cancelClicked:function(t){return e.$refs.uploadAvatarModal.hide()}}},[n("ContactInformationUploadAvatarForm",{attrs:{profile:e.selectedProfile},on:{cancel:function(t){return e.$refs.uploadAvatarModal.hide()},saved:e.handleAvatarChanged}})],1),e._v(" "),n("AulaModal",{ref:"unsavedDataWarningModal",on:{cancelClicked:function(t){return e.$refs.unsavedDataWarningModal.hide()},okClicked:e.handleCancelConfirmed}},[e._v("\n    "+e._s(e.$getText("UNSAVED_DATA_WARNING_1"))),n("br"),e._v("\n    "+e._s(e.$getText("UNSAVED_DATA_WARNING_2"))+"\n  ")])],2)}),[],!1,null,"3c092d41",null).exports,nn=n(56);function sn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rn(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function rn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){o()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln={provide:function(){var e,t=this;return e={},o()(e,U.onInstitutionGroupClick,(function(e){t.loadGroupWithAll({groupId:e.id,institutionCode:e.institutionCode,fromAdministration:!0}).then((function(){t.$router.push({name:"editGroup",params:{id:e.id}})}))})),o()(e,U.setShowLockReasonForm,(function(e){t.$refs.lockFormModal.show(),t.lockUserShowLockEvent=e})),o()(e,U.refreshDataTableCallbackService,this.refreshDataTableCallbackService),o()(e,U.setInstitutionProfile,(function(e){return t.lockUserInstitutionProfile=e})),o()(e,R.a.hasLockPermission,(function(){return t.hasPermissionOnInstitution(p.a.HANDLE_USER_LOCK,t.activeProfile.institutionCode)})),e},data:function(){return{iconClassEnum:Ce.a,contactsTabValueTypes:mt,contactTabs:[{name:this.$getText("CONTACT_INFORMATION"),value:mt.information},{name:this.$getText("CONTACT_SHARED_INFORMATION"),value:mt.sharedInformation}],selectedPrimaryInstitution:null,lockStatusEnum:X.a,portalRoles:f.a,editMode:!1,parent:_.a.PROFILE,parentTypes:_.a,permissionEnum:p.a,institutionTypes:T.a,isSubmittingLockReason:!1,lockReason:"",showMaxCharactersExceededOnLockReason:!1,refreshDataTableCallbackService:new It,lockUserInstitutionProfile:null,lockUserShowLockEvent:null,isLoading:!0,isDeactivated:!1}},computed:an(an({},Object(c.c)({activeProfile:u.a.GET_ACTIVE_PROFILE,selectedProfile:u.a.GET_SELECTED_PROFILE,selectedInstitution:u.a.GET_SELECTED_INSTITUTION,institutions:u.a.GET_INSTITUTIONS,isMobile:u.a.GET_IS_MOBILE,hasPermission:u.a.HAS_PERMISSION,hasPermissionOnInstitution:u.a.HAS_PERMISSION_ON_INSTITUTION})),{},{userProfileStore:function(){return Object(tt.a)()},profile:function(){return this.userProfileStore.institutionProfile},isProfileLoaded:function(){return!1===this.userProfileStore.isLoading},canShowRelations:function(){if(this.parent===_.a.SEARCH)return!0;switch(this.profile.role){case f.a.OTP:return!1;case f.a.CHILD:return this.profile.profileId!=this.profile.profileId;default:return!0}},isFromAdmin:function(){return this.parent===_.a.ADMINISTRATION},selectedInstitutionProfile:function(){var e;return Array.isArray(null===(e=this.selectedProfile)||void 0===e?void 0:e.institutionProfiles)?this.selectedProfile.institutionProfiles[0]:null},canViewSharedInformation:function(){var e,t=[f.a.CHILD,f.a.GUARDIAN,f.a.OTP],n=this.parent===_.a.PROFILE;return t.includes(this.profile.role.toLowerCase())&&n&&(null===(e=this.selectedProfile)||void 0===e?void 0:e.overConsentAge)},activeContactTab:function(){var e,t=this.$route.query.tab;return null!==(e=this.contactTabs.find((function(e){return e.value===t})))&&void 0!==e?e:this.contactTabs[0]},isLockUserInstitutionProfileLocked:function(){var e=this.lockUserInstitutionProfile;return null!=e&&(e.profileStatus===X.a.LOCKED||e.profileStatus===X.a.LOCKING)},lockUserSubmitText:function(){var e="USERS_LOCK_USER_CAUSE_SUBMIT";return this.isLockUserInstitutionProfileLocked&&(e="USERS_UNLOCK_USER_CAUSE_SUBMIT"),e},lockUserModalTitle:function(){var e="USERS_LOCK_USER_CAUSE_TITLE";return this.isLockUserInstitutionProfileLocked&&(e="USERS_UNLOCK_USER_CAUSE_TITLE"),e},canEditContactInformation:function(){var e=this;if(this.parent!==_.a.PROFILE)return!1;var t=this.selectedProfile.institutionProfiles,n=null==t?void 0:t.find((function(t){return t.institutionCode===e.selectedInstitution.institutionCode}));return null==n?void 0:n.currentUserCanEditContactInformation},canHandleBlockedCommunication:function(){return this.hasPermissionOnInstitution(p.a.HANDLE_USER_ROLES,this.activeProfile.institutionCode)}}),methods:an(an(an({},Object(c.d)({resetConsent:u.a.MUTATE_RESET_PROFILE_CONSENT,setStepUpNotification:u.a.MUTATE_SET_NOTIFICATION_STEP_UP,sendToastErrorMessage:u.a.MUTATE_ERROR_TEXT})),Object(c.b)({selectProfile:u.a.SELECT_PROFILE,loadAdditionalData:u.a.LOAD_PROFILE_ADDITIONAL_DATA,getConsentResponse:u.a.ACTION_GET_CONSENTS_RESPONSE_BY_INSTITUTION_PROFILEID,editBlockOfCommunication:u.a.EDIT_BLOCK_OF_COMMUNICATION_FOR_SELECTED_USER,loadGroupWithAll:u.a.SET_ACTIVE_GROUP,updateAdditionalData:u.a.UPDATE_ADDITIONAL_DATA_ON_BEHALF,createLockReason:d.a.CREATE_PROFILE_LOCK_REASON,getProfileContext:u.a.ACTION_GET_PROFILE_CONTEXT})),{},{updateBlockCommunicationState:function(e){this.editBlockOfCommunication({id:this.selectedInstitutionProfile.profileId,state:e,municipalityCode:this.selectedInstitutionProfile.municipalityCode})},onSavedContactInformation:function(){var e=this;this.init(),this.getProfileContext().then((function(t){e.userProfileStore.setProfile(t),e.userProfileStore.setLoading(!1)}))},goToInformationTab:function(){var e=this.contactTabs.find((function(e){return e.value===mt.information}));this.setContactTab(e)},openConsentModal:function(){var e=this.contactTabs.find((function(e){return e.value===mt.sharedInformation}));this.setContactTab(e)},setContactTab:function(e){this.$router.push({path:this.$route.path,query:an(an({},this.$route.query),{},{tab:e.value})})},onSubmitLockReason:function(){var e=this;return s()(l.a.mark((function t(){var n,i,s;return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e.lockUserInstitutionProfile){t.next=2;break}throw Error("InstitutionProfile is not set for the targeted user");case 2:if(n=e.lockUserInstitutionProfile,e.validateLockUser()){t.next=6;break}return t.abrupt("return");case 6:return t.prev=6,i=e.isLockUserInstitutionProfileLocked,s=X.a.LOCKED,i&&(s=X.a.UNLOCKED),e.isSubmittingLockReason=!0,t.next=13,e.createLockReason({reason:e.lockReason,institutionProfileId:n.id,lockStatus:s});case 13:e.lockReason="",e.refreshDataTableCallbackService.runCallbacks(),e.$refs.lockFormModal.hide(),e.selectProfile({instProfileIds:[n.id],fromAdministration:e.parent===_.a.ADMINISTRATION}).then((function(){e.editMode=!1})),t.next=22;break;case 19:t.prev=19,t.t0=t.catch(6),e.sendToastErrorMessage("API_ERROR_GENERAL");case 22:return t.prev=22,e.isSubmittingLockReason=!1,t.finish(22);case 25:case"end":return t.stop()}}),t,null,[[6,19,22,25]])})))()},onCancelLockReason:function(){this.$refs.lockFormModal.hide(),this.lockReason="",this.lockUserShowLockEvent.target.focu
1s()},onUpdateLockReason:function(e){this.showMaxCharactersExceededOnLockReason=!1,this.lockReason=e},validateLockUser:function(){var e=!0;return this.getHasExceededMaxCharacterLimit()&&(e=!1),e},getHasExceededMaxCharacterLimit:function(){var e=!1;return this.lockReason.length>ot.LOCK_DESCRIPTION_CHARACTER_LIMIT&&(this.showMaxCharactersExceededOnLockReason=!0,e=!0),e},redirectToStepUp:function(){this.setStepUpNotification({showStepUpNotification:!0,redirectedUrl:window.location.href})},init:function(){var e=this,t=this.$route.params.id;if(null!=t){var n=[this.$route.params.id];if(this.$route.query.parent?this.parent=this.$route.query.parent:this.$route.path.includes("/brugere")?this.parent=_.a.ADMINISTRATION:this.institutions.filter((function(e){return e.institutionProfileId==t})).length>0?this.parent=_.a.PROFILE:this.parent=_.a.SEARCH,this.parent==_.a.PROFILE){n=[];var i,s=sn(this.institutions);try{for(s.s();!(i=s.n()).done;){var r=i.value;n.push(r.institutionProfileId)}}catch(e){s.e(e)}finally{s.f()}}this.isLoading=!0,this.selectProfile(null),this.selectProfile({instProfileIds:n,fromAdministration:this.parent==_.a.ADMINISTRATION}).then((function(){e.editMode=!1,e.updateSelectedPrimaryInstitution()})).catch((function(t){var n;(null===(n=t.response)||void 0===n?void 0:n.data.status.subCode)===nn.a.deactivatedInstitutionProfile&&(e.isDeactivated=!0)})).finally((function(){e.isLoading=!1}))}},updateSelectedPrimaryInstitution:function(){this.selectedPrimaryInstitution=this.institutions.find((function(e){return e.isPrimary}))}}),watch:{$route:function(){this.init()},isProfileLoaded:function(){this.init()}},mounted:function(){this.init(),setTimeout((function(){E()(".contact-info-title").focus()}),500)},directives:{Button:Rt.a},components:{ContactInformationMainContact:Vt,ContactInformation:tn,Consent:Ct,Icon:Ne.a,AulaListItem:St.a,AulaList:At.a,AulaButtons:m.a,AulaNavigationToolbar:I.a,AulaButton:A.a,UserDetailsPortalAdministrationLockUserForm:ut,UserDetailsPortalAdministrationTabs:rt}},un=Object(y.a)(ln,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aula-profile-container page-layout-padding",attrs:{"data-view":"mobile"}},[e.isMobile?e._e():n("div",{staticClass:"d-flex"},[n("h1",{staticClass:"contact-info-title mr-auto"},[e._v("\n      "+e._s(e.$getText("CONTACT_INFO"))+"\n    ")])]),e._v(" "),e.isDeactivated?n("p",[e._v(e._s(e.$getText("PROFILE_DEACTIVATED_DESCRIPTION")))]):e._e(),e._v(" "),e.canViewSharedInformation&&!e.isMobile?n("AulaNavigationToolbar",{staticClass:"tabs-nav"},[n("AulaButtons",e._l(e.contactTabs,(function(t,i){return n("AulaButton",{key:i,staticClass:"tab-item text-uppercase",class:{"active-tab":t===e.activeContactTab},attrs:{fill:"clear"},on:{click:function(n){return e.setContactTab(t)}}},[e._v("\n        "+e._s(t.name)+"\n      ")])})),1)],1):e._e(),e._v(" "),e.contactsTabValueTypes.information===e.activeContactTab.value?n("div",[e.parent===e.parentTypes.PROFILE&&e.profile.role===e.portalRoles.EMPLOYEE?n("p",{staticClass:"help-text"},[e._v("\n      "+e._s(e.$t("contact.employee_contact_information_page_description"))+"\n    ")]):e._e(),e._v(" "),e.canViewSharedInformation&&e.isMobile?n("AulaList",{staticClass:"mb-5"},[n("AulaListItem",{directives:[{name:"button",rawName:"v-button"}],staticClass:"font-weight-bold",on:{click:e.openConsentModal},scopedSlots:e._u([{key:"end",fn:function(){return[n("Icon",{attrs:{name:e.iconClassEnum.FORWARD_ARROW}})]},proxy:!0}],null,!1,2843470626)},[e._v("\n        "+e._s(e.$getText("CONTACT_SHARED_INFORMATION"))+"\n        ")])],1):e._e(),e._v(" "),e.isFromAdmin?e._e():n("ContactInformation",{attrs:{profile:e.selectedProfile,"is-loading":e.isLoading,"can-edit":e.canEditContactInformation,"show-relations":e.canShowRelations},on:{saved:e.onSavedContactInformation}}),e._v(" "),e.isFromAdmin&&e.selectedInstitutionProfile?[n("ContactInformationMainContact",{staticClass:"mt-4 mb-3",attrs:{profile:e.selectedInstitutionProfile,"show-blocked-status":e.canHandleBlockedCommunication},on:{toggleBlockedCommunication:e.updateBlockCommunicationState}}),e._v(" "),n("UserDetailsPortalAdministrationTabs",{staticClass:"mt-3",attrs:{"institution-profile":e.selectedInstitutionProfile}})]:e._e()],2):e.contactsTabValueTypes.sharedInformation===e.activeContactTab.value?n("Consent",{on:{close:e.goToInformationTab}}
1):e._e(),e._v(" "),n("aula-modal",{ref:"lockFormModal",attrs:{"header-text":e.lockUserModalTitle,"ok-text":e.lockUserSubmitText,"is-loading":e.isSubmittingLockReason,"css-class":"aula-modal-lg"},on:{cancelClicked:e.onCancelLockReason,closeClicked:e.onCancelLockReason,okClicked:e.onSubmitLockReason}},[n("UserDetailsPortalAdministrationLockUserForm",{attrs:{value:e.lockReason,"show-max-characters-exceeded-on-lock-reason":e.showMaxCharactersExceededOnLockReason},on:{input:e.onUpdateLockReason}})],1)],1)}),[],!1,null,"7b88b1b7",null);t.a=un.exports},346:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(67);class s{constructor(e){this.profileId=e.profileId,this.institutionProfileId=e.id,this.email=e.email,this.homePhoneNumber=e.homePhoneNumber,this.mobilePhoneNumber=e.mobilePhoneNumber,this.workPhoneNumber=e.workPhoneNumber,this.description=e.institutionProfileDescriptions}get isValidHomePhoneNumber(){return i.a.isPhoneNumber(this.homePhoneNumber)}get isValidMobilePhoneNumber(){return i.a.isPhoneNumber(this.mobilePhoneNumber)}get isValidWorkPhoneNumber(){return i.a.isPhoneNumber(this.workPhoneNumber)}get isValidEmail(){return i.a.isEmail(this.email)}get isValidDescription(){return!this.description||this.description.length<s.DESCRIPTION_MAX_CHARACTER_NUMBER}get isValid(){return this.isValidHomePhoneNumber&&this.isValidMobilePhoneNumber&&this.isValidWorkPhoneNumber&&this.isValidEmail&&this.isValidDescription}}s.DESCRIPTION_MAX_CHARACTER_NUMBER=600},427:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var i=n(17),s=n.n(i),r=n(12),o=n.n(r),a=n(99),l=n.n(a),u=n(100),d=n.n(u),c=n(7),f=n.n(c),_=n(200),p=n.n(_),T=function(){function e(){l()(this,e)}return d()(e,[{key:"debounce",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25;return p()(e,t)}},{key:"asyncDebounce",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25,n=p()(function(){var t=o()(f.a.mark((function t(n,i,r,o){var a;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.bind(r).apply(void 0,s()(o));case 3:a=t.sent,n(a),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),i(t.t0);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(e,n,i,s){return t.apply(this,arguments)}}(),t);return function(){for(var e=this,t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];return new Promise((function(t,s){n(t,s,e,i)}))}}}]),e}(),h=new T},429:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(81);const s={required:!1,type:Array,default:()=>null,validator(e){let t=!0;const n=Array.from(Object.values(i.a));for(const i of e)if(!n.includes(i)){t=!1;break}return t}}},431:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(99),s=n.n(i),r=n(100),o=n.n(r);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var u=new(function(){function e(){s()(this,e)}return o()(e,[{key:"getRoleIdsToAssign",value:function(e){var t,n=e.existingRoles,i=e.roleIdsToAssign,s=e.roleIdsToUnAssign,r={},o=a(n);try{for(o.s();!(t=o.n()).done;){r[t.value.id]=!0}}catch(e){o.e(e)}finally{o.f()}var l,u=a(i);try{for(u.s();!(l=u.n()).done;){r[l.value]=!0}}catch(e){u.e(e)}finally{u.f()}var d,c=a(s);try{for(c.s();!(d=c.n()).done;){delete r[d.value]}}catch(e){c.e(e)}finally{c.f()}return Object.keys(r)}}]),e}())},435:function(e,t,n){"use strict";var i=n(427);t.a={bind:function(e){var t=0,n=i.a.debounce((function(){t=0}),250);e.addEventListener("click",(function(e){if(t>0)return e.stopPropagation(),void e.preventDefault();n(),t++}),{capture:!0})}}},45:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({institutionProfile:Symbol(),institution:Symbol(),selectedInstitution:Symbol(),group:Symbol(),hasLockPermission:Symbol(),selectedUserAssignedRoles:Symbol(),groupsWithAssignedRoles:Symbol(),canCurrentUserAccessGroups:Symbol(),assignRolesToUser:Symbol(),groupsWithRoleDefinitions:Symbol(),numberOfGroups:Symbol(),setNoticeBoardCalendarScope:Symbol(),noticeBoardCalendarScope:Symbol(),onDescriptionLinkClicked:Symbol(),isMunicipalAdministrator:Symbol(),isCentralAdministrator:Symbol(),getSelectedUsers:Symbol()})},456:function(e,t,n){"use strict";var i=n(12),s=n.n(i),r=n(7),o=n.n(r),a=n(45),l=n(32),u=n(42),d={name:"RoleAndRightAssignments",components:{AulaButton:l.a},inject:{getInstitutionProfile:{from:a.a.institutionProfile,default:function(){return function(){return null}}},getSelectedInstitution:a.a.selectedInstitution,getRoleDefinitions:a.a.roleDefinitions,getSelectedUserAssignedRoles:a.a.selectedUserAssignedRoles,assignRolesToUser:a.a.assignRolesToUser,getSelectedUsers:a.a.getSelectedUsers},data:function(){return{isLoading:!1,searchQuery:"",selectedRoleIdsToAssign:[],selectedRoleIdsToRemove:[]}},computed:{institutionProfile:function(){return this.getInstitutionProfile()}
1,selectedInstitution:function(){return this.getSelectedInstitution()},selectedUsers:function(){return this.institutionProfile?[this.institutionProfile]:this.getSelectedUsers()},canAssignEsdhRole:function(){var e=["00000","00003","00006","00012","111111","A00943","A00969","R00257","R00154","183000","183001","183003","183005","730000","731002","731011","G20091","G20452"];return this.selectedUsers.length>0&&this.selectedUsers.every((function(t){return e.includes(t.institutionCode)}))},roleDefinitions:function(){return this.getRoleDefinitions()},assignedRoles:function(){return this.getSelectedUserAssignedRoles()},unassignedRoles:function(){var e=this,t=this.assignedRoles.map((function(e){return e.id}));return this.roleDefinitions.filter((function(n){return!t.includes(n.id)&&(e.canAssignEsdhRole||!1===[u.a.JOURNALING_TO_ESDH].includes(parseInt(n.id)))}))}},methods:{getCanShowRole:function(e){return!this.searchQuery||e.name.toLowerCase().includes(this.searchQuery.toLowerCase())},getUnassignedSubRoles:function(e){var t=this;if(!e)return[];var n=this.assignedRoles.map((function(e){return e.id}));return e.filter((function(e){return!n.includes(e.id)&&(t.canAssignEsdhRole||!1===[u.a.HANDLE_FILE_SENT_TO_ESDH,u.a.HANDLE_MUNICIPAL_FILE_SENT_TO_ESDH].includes(parseInt(e.id)))}))},onUserRoleChanged:function(e){var t=this;if(e.subRoles)if(this.selectedRoleIdsToAssign.includes(e.id))e.subRoles.forEach((function(e){t.selectedRoleIdsToAssign.includes(e.id)||t.selectedRoleIdsToAssign.push(e.id)}));else{var n=e.subRoles.map((function(e){return e.id}));this.selectedRoleIdsToAssign=this.selectedRoleIdsToAssign.filter((function(e){return!1===n.includes(e)}))}},onSubRoleChanged:function(e){var t=this;this.getUnassignedSubRoles(e.subRoles).every((function(e){return t.selectedRoleIdsToAssign.includes(e.id)}
1))?this.selectedRoleIdsToAssign.push(e.id):this.selectedRoleIdsToAssign=this.selectedRoleIdsToAssign.filter((function(t){return e.id!==t}))},onAssignRoles:function(){var e=this;return s()(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setRoleAssignments();case 2:e.$refs.dropdownAssignRoles.visible=!1;case 3:case"end":return t.stop()}}),t)})))()},onRemoveRoles:function(){var e=this;return s()(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.setRoleAssignments();case 2:e.$refs.dropdownRemoveRoles.visible=!1;case 3:case"end":return t.stop()}}),t)})))()},setRoleAssignments:function(){var e=this;return s()(o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.next=3,e.assignRolesToUser({roleIdsToAssign:e.selectedRoleIdsToAssign,roleIdsToUnAssign:e.selectedRoleIdsToRemove});case 3:e.isLoading=!1,e.resetSelectedValues();case 5:case"end":return t.stop()}}),t)})))()},resetSelectedValues:function(){this.selectedRoleIdsToAssign=[],this.selectedRoleIdsToRemove=[]}}},c=n(3),f=Object(c.a)(d,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"role-and-right-assignment-container"},[e.unassignedRoles.length>0?n("b-dropdown",{ref:"dropdownAssignRoles",staticClass:"role-assignment-dropdown",attrs:{"toggle-class":"role-assignment-button","menu-class":"role-assignment-menu",variant:"primary","no-flip":"",right:"","popper-opts":{positionFixed:!0,modifiers:{preventOverflow:{enabled:!1}}},text:e.$getText("USERS_BUTTON_ADD_USER_ROLES")}},[n("b-form-input",{attrs:{type:"text",size:"sm",placeholder:e.$getText("SEARCH_LABEL")},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}),e._v(" "),n("b-form-checkbox-group",{staticClass:"roles-list my-2",attrs:{stacked:""},model:{value:e.selectedRoleIdsToAssign,callback:function(t){e.selectedRoleIdsToAssign=t},expression:"selectedRoleIdsToAssign"}},[e._l(e.unassignedRoles,(function(t,i){return[n("b-form-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.getCanShowRole(t),expression:"getCanShowRole(userRole)"}],key:i,attrs:{value:t.id},on:{change:function(n){return e.onUserRoleChanged(t)}}},[e._v("\n          "+e._s(t.name)+"\n        ")]),e._v(" "),e._l(e.getUnassignedSubRoles(t.subRoles),(function(s,r){return[n("b-form-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.getCanShowRole(s),expression:"getCanShowRole(subRole)"}],key:i+"-"+r,staticClass:"subRole",attrs:{value:s.id},on:{change:function(n){return e.onSubRoleChanged(t)}}},[e._v("\n            "+e._s(s.name)+"\n          ")])]}))]}))],2),e._v(" "),n("div",{staticClass:"d-flex justify-content-center"},[n("AulaButton",{staticClass:"action-btn",attrs:{variant:"primary",disabled:e.isLoading},on:{click:e.onAssignRoles}},[e.isLoading?n("AulaSpinner",{staticClass:"spinner"}):e._e(),e._v("\n        "+e._s(e.$getText("BUTTON_SAVE"))+"\n      ")],1)],1)],1):e._e(),e._v(" "),e.assignedRoles.length>0?n("b-dropdown",{ref:"dropdownRemoveRoles",attrs:{"toggle-class":"role-assignment-button","menu-class":"role-assignment-menu",variant:"primary","no-flip":"",right:"","popper-opts":{positionFixed:!0,modifiers:{preventOverflow:{enabled:!1}}},text:e.$getText("USERS_BUTTON_REMOVE_USER_ROLES")}},[n("b-form-input",{attrs:{type:"text",placeholder:e.$getText("SEARCH_LABEL")},model:{value:e.searchQuery,callback:function(t){e.searchQuery=t},expression:"searchQuery"}}),e._v(" "),n("b-form-checkbox-group",{staticClass:"roles-list my-2",attrs:{stacked:""},model:{value:e.selectedRoleIdsToRemove,callback:function(t){e.selectedRoleIdsToRemove=t},expression:"selectedRoleIdsToRemove"}},[e._l(e.assignedRoles,(function(t,i){return[n("b-form-checkbox",{directives:[{name:"show",rawName:"v-show",value:e.getCanShowRole(t),expression:"getCanShowRole(groupRole)"}],key:i,attrs:{value:t.id}},[e._v("\n          "+e._s(t.name)+"\n        ")])]}))],2),e._v(" "),n("div",{staticClass:"d-flex justify-content-center"},[n("AulaButton",{staticClass:"action-btn",attrs:{variant:"primary",disabled:e.isLoading},on:{click:e.onRemoveRoles}},[e.isLoading?n("AulaSpinner",{staticClass:"spinner"}):e._e(),e._v("\n        "+e._s(e.$getText("BUTTON_SAVE"))+"\n      ")],1)],1)],1):e._e(
1)],1)}),[],!1,null,"1db4457a",null);t.a=f.exports},458:function(e,t,n){"use strict";var i={components:{AulaInfoTrigger:n(128).a},model:{prop:"value",event:"change"},props:{institutions:{type:Array,required:!0},value:{type:Number,default:null},disabled:{type:Boolean,default:!1}},emits:["change"],methods:{emitChange(e){this.$emit("change",e)}}},s=n(3),r=Object(s.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("b-form-group",[n("div",{staticClass:"contact-primary-container"},[e._t("label",(function(){return[n("label",{staticClass:"mb-0"},[e._v(e._s(e.$getText("PRIMARY_INSTITUTION")))])]})),e._v(" "),n("AulaInfoTrigger",{staticClass:"ml-2",attrs:{area:"PRIMARY_INSTITUTION"}})],2),e._v(" "),n("AulaSelect",{staticClass:"institution-select",attrs:{value:e.value,"aria-disabled":e.disabled,disabled:e.disabled},on:{change:e.emitChange}},e._l(e.institutions,(function(e){return n("AulaOption",{key:e.institutionCode,attrs:{value:e.institutionProfileId,label:e.name}})})),1)],1)}),[],!1,null,"7a4b5898",null);t.a=r.exports},49:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({CLASS_OR_STUE:"class_or_stue",YEAR_AND_SFO:"year_and_sfo",INSTITUTION:"institution",NOT_AT_ALL:"not_at_all",DECLINED:"declined",ACCEPTED:"accepted",YES:"yes",NO:"no"})},518:function(e,t,n){"use strict";n.r(t),n.d(t,"USERS_LABEL_SEARCH",(function(){return i})),n.d(t,"USERS_LABEL_SEARCH_USERS",(function(){return s})),n.d(t,"USERS_LABEL_SEARCH_RESULTS",(function(){return r})),n.d(t,"USER_TABLE_PICTURE",(function(){return o})),n.d(t,"USER_TABLE_TOOLKIT_LINK",(function(){return a})),n.d(t,"USER_TABLE_NAME",(function(){return l})),n.d(t,"USER_TABLE_UNILOGIN",(function(){return u})),n.d(t,"USER_TABLE_PROFILE_ROLE",(function(){return d})),n.d(t,"USER_TABLE_PROFILE_TYPE",(function(){return c})),n.d(t,"USER_TABLE_INSTITUTION",(function(){return f})),n.d(t,"USER_TABLE_MUNICIPALITY",(function(){return _})),n.d(t,"USER_TABLE_NUMBER",(function(){return p})),n.d(t,"USER_TABLE_EMAIL",(function(){return T})),n.d(t,"USER_TABLE_PERMISSIONS",(function(){return h})),n.d(t,"USER_TABLE_EDIT",(function(){return E})),n.d(t,"USER_TABLE_USER_ROLES",(function(){return I})),n.d(t,"USER_HEADER_LABEL",(function(){return m})),n.d(t,"USERS_ASSIGN_ROLE_WARNING_TEXT",(function(){return A})),n.d(t,"USERS_BUTTON_ADD_USER_ROLES",(function(){return S})),n.d(t,"USERS_BUTTON_REMOVE_USER_ROLES",(function(){return R})),n.d(t,"USERS_BUTTON_SAVE_USER_ROLES",(function(){return g})),n.d(t,"USERS_WARNING_CANNOT_DELETE_SOME_USER_DATA",(function(){return v})),n.d(t,"USERS_WARNING_TOO_MANY_RESULTS_FROM_SEARCH",(function(){return O})),n.d(t,"USERS_WARNING_ZERO_RESULTS_FROM_SEARCH",(function(){return b})),n.d(t,"USERS_INTRO_TEXT_FOR_CENTRAL_ADMIN",(function(){return D})),n.d(t,"USERS_INTRO_TEXT_FOR_MUNICIPAL_ADMIN",(function(){return N})),n.d(t,"USERS_INTRO_TEXT_FOR_INSTITUTIONAL_ADMIN",(function(){return C})),n.d(t,"IMPERSONATION_MISSING_REASON",(function(){return y})),n.d(t,"IMPERSONATION_MISSING_CASE_ID",(function(){return P})),n.d(t,"USER_DRAWER_TITLE",(function(){return L})),n.d(t,"USERS_SELECTED",(function(){return w})),n.d(t,"USERS_TITLE_EDIT_PROFILE_IMAGE",(function(){return U})),n.d(t,"USERS_LABEL_AGREE",(function(){return M})),n.d(t,"USERS_LABEL_ADDITIONAL_MASTER_DATA",(function(){return k}
1)),n.d(t,"USERS_LABEL_LAST_LOGIN",(function(){return x})),n.d(t,"USERS_LABEL_PROFILE",(function(){return H})),n.d(t,"USERS_LABEL_EMAIL",(function(){return $})),n.d(t,"USERS_LABEL_EMAIL_AULA",(function(){return B})),n.d(t,"USERS_LABEL_TELEPHONE",(function(){return F})),n.d(t,"USERS_LABEL_ADDRESS",(function(){return G})),n.d(t,"USERS_LABEL_CHILDREN",(function(){return j})),n.d(t,"USERS_LABEL_SIGNATURE",(function(){return Y})),n.d(t,"USERS_LABEL_ROLES",(function(){return q})),n.d(t,"USERS_LABEL_VIEW_ALL_DATA",(function(){return V})),n.d(t,"USERS_TOASTR_DELETE_DATA",(function(){return K})),n.d(t,"USERS_TITLE_EDIT_ROLE",(function(){return W})),n.d(t,"USERS_LABEL_UPLOAD_BLOCK",(function(){return Q})),n.d(t,"USERS_LOCK_USER",(function(){return X})),n.d(t,"USERS_UNLOCK_USER",(function(){return z})),n.d(t,"USERS_LOCK_USER_INCIDENT_UNLOCKED",(function(){return Z})),n.d(t,"USERS_LOCK_USER_INCIDENT_LOCKED",(function(){return J})),n.d(t,"USERS_LOCK_USER_INTRO",(function(){return ee})),n.d(t,"USERS_LOCK_USER_UNLOCKING_WARNING",(function(){return te})),n.d(t,"USERS_LOCK_USER_LOCKING_WARNING",(function(){return ne})),n.d(t,"USERS_LOCK_ADD_REASON",(function(){return ie})),n.d(t,"USERS_LOCK_MAX_CHARACTERS",(function(){return se})),n.d(t,"USERS_LOCK_USER_PLACEHOLDER",(function(){return re})),n.d(t,"USERS_LOCK_USER_TABLE_HEADER_DATE",(function(){return oe})),n.d(t,"USERS_LOCK_USER_TABLE_HEADER_USER",(function(){return ae})),n.d(t,"USERS_LOCK_USER_TABLE_HEADER_INCIDENT",(function(){return le})),n.d(t,"USERS_LOCK_USER_TABLE_HEADER_CAUSE",(function(){return ue})),n.d(t,"USERS_LOCK_USER_CAUSE_SUBMIT",(function(){return de})),n.d(t,"USERS_UNLOCK_USER_CAUSE_SUBMIT",(function(){return ce})),n.d(t,"USERS_LOCK_USER_CAUSE_TITLE",(function(){return fe})),n.d(t,"USERS_UNLOCK_USER_CAUSE_TITLE",(function(){return _e})),n.d(t,"USERS_FIELDS_CREATION_DATE",(function(){return pe})),n.d(t,"USERS_FIELDS_START_END",(function(){return Te})),n.d(t,"USERS_FIELDS_ASSOCIATED_DATA",(function(){return he})),n.d(t,"USERS_FIELDS_CATEGORY",(function(){return Ee})),n.d(t,"USERS_FIELDS_TITLE",(function(){return Ie})),n.d(t,"USERS_FIELDS_DESCRIPTION",(function(){return me})),n.d(t,"USERS_FIELDS_CONTACT_PERSON",(function(){return Ae})),n.d(t,"USERS_FIELDS_SENSITIVITY",(function(){return Se})),n.d(t,"USERS_FIELDS_ACTIONS",(function(){return Re})),n.d(t,"USERS_FIELDS_MESSAGE_REVISIONS_CREATION_DATE",(function(){return ge})),n.d(t,"USERS_FIELDS_MESSAGE_REVISIONS_THREAD_SUBJECT",(function(){return ve})),n.d(t,"USERS_FIELDS_MESSAGE_REVISIONS_THREAD_PARTICIPANTS",(function(){return Oe})),n.d(t,"USERS_FIELDS_MESSAGE_REVISIONS_MESSAGE_CONTENT_BEFORE",(function(){return be})),n.d(t,"USERS_FIELDS_MESSAGE_REVISIONS_MESSAGE_CONTENT_AFTER",(function(){return De})),n.d(t,"USERS_FIELDS_MESSAGE_REVISIONS_VERSIONS",(function(){return Ne})),n.d(t,"USERS_LOAD_MORE_MESSAGE_REVISIONS",(function(){return Ce})),n.d(t,"USERS_LOAD_MORE_MESSAGE_REVISIONS_NO_MORE_RESULTS",(function(){return ye})),n.d(t,"USERS_MESSAGE_REVISIONS_NO_RESULTS",(function(){return Pe})),n.d(t,"USERS_MESSAGE_REVISIONS_MESSAGE_DELETED",(function(){return Le})),n.d(t,"USER_DATA_IS_DELETED",(function(){return we})),n.d(t,"USER_RIGHT_AND_ROLE_DESCRIPTION_MUNICIPAL",(function(){return Ue})),n.d(t,"USER_RIGHT_AND_ROLE_DESCRIPTION_INSTITUTION",(function(){return Me})),n.d(t,"USER_RIGHT_AND_ROLE_DESCRIPTION_OTHER",(function(){return ke})),n.d(t,"USER_RIGHT_AND_ROLE_DESCRIPTION_HEADER_TEXT",(function(){return xe})),n.d(t,"USER_RIGHT",(function(){return He})),n.d(t,"USER_RIGHT_DESCRIPTION",(function(){return $e})),n.d(t,"USER_RIGHT_OVERVIEW_OPEN",(function(){return Be})),n.d(t,"USER_BACK_TO_DETAIL",(function(){return Fe})),n.d(t,"ALL_USER_DATA_HEADER",(function(){return Ge})),n.d(t,"ALL_USER_DATA_SUB_HEADER",(function(){return je})),n.d(t,"ALL_USER_DATA_SUB_HEADER_2",(function(){return Ye})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_EVENTS",(function(){return qe})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_THREADS",(function(){return Ve})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_MESSAGES",(function(){return Ke})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_CONTACT_INFO",(function(){return We})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_GROUPS",(function(){return Qe})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_POSTS",(function(){return Xe})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_MEDIA",(function(){return ze})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_DOCUMENTS",(function(){return Ze})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_SUGGESTED_NAMES",(function(){return Je})),n.d(t,"ALL_USER_DATA_HEADER_TEXT_COMMENTS",(function(){return et})),n.d(t,"ALL_USER_DATA_WRONG_DATE_FORMAT",(function(){return tt})),n.d(t,"ALL_USER_DATA_START_DATE_IS_AFTER_END_DATE",(function(){return nt})),n.d(t,"ALL_USER_DATA_DATE_IS_INVALID",(function(){return it})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_daycare",(function(){return st})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_early_student",(function(){return rt})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_middle_late_student",(function(){return ot})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_guardian",(function(){return at})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_leader",(function(){return lt})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_preschool_teacher",(function(){return ut})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_teacher",(function(){return dt})),n.d(t,"SEARCH_RESULT_PROFILE_TYPE_other",(function(){return ct})),n.d(t,"RTBF_REQUESTS_PERIOD_DATE",(function(){return ft})),n.d(t,"RTBF_REQUESTS_PERIOD_FROM",(function(){return _t})),n.d(t,"RTBF_REQUESTS_PERIOD_TO",(function(){return pt})),n.d(t,"RTBF_REQUESTS_CREATOR_NAME",(function(){return Tt})),n.d(t,"RTBF_REQUESTS_ENTITY_TYPE",(function(){return ht})),n.d(t,"RTBF_REQUESTS_OPERATION_TYPE",(function(){return Et})),n.d(t,"RTBF_REQUESTS_STATUS",(function(){return It})),n.d(t,"RTBF_REQUESTS_STATUS_TEXT",(function(){return mt})),n.d(t,"RTBF_REQUESTS_ACTIONS",(function(){return At})),n.d(t,"RTBF_ENTITY_GROUPS",(function(){return St})),n.d(t,"RTBF_ENTITY_COMMENTS",(function(){return Rt})),n.d(t,"RTBF_ENTITY_MEDIA",(function(){return gt})),n.d(t,"RTBF_ENTITY_DOCUMENTS",(function(){return vt})),n.d(t,"RTBF_ENTITY_POSTS",(function(){return Ot})),n.d(t,"RTBF_ENTITY_THREADS",(function(){return bt})),n.d(t,"RTBF_ENTITY_EVENTS",(function(){return Dt})),n.d(t,"RTBF_ENTITY_ADDITIONALDATACONSENTCONTACTINFO",(function(){return Nt})),n.d(t,"RTBF_ENTITY_PICKUPRESPONSIBLES",(function(){return Ct})),n.d(t,"RTBF_HANDLE_ENTITIES_SUCCESS",(function(){return yt})),n.d(t,"RTBF_STATUS_FAILED",(function(){return Pt})),n.d(t,"RTBF_STATUS_DONE",(function(){return Lt})),n.d(t,"RTBF_STATUS_BEING_PROCESSED",(function(){return wt}
1)),n.d(t,"RTBF_OPERATION_DELETE",(function(){return Ut})),n.d(t,"RTBF_OPERATION_EXPORT",(function(){return Mt})),n.d(t,"ARIA_LABEL_USER_EDIT",(function(){return kt})),n.d(t,"ARIA_LABEL_USERS_LABEL_SEARCH_USERS",(function(){return xt})),n.d(t,"ARIA_LABEL_USERS_SEARCH",(function(){return Ht})),n.d(t,"EXPORTS",(function(){return $t})),n.d(t,"DELETION",(function(){return Bt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_RIGHT_TO_INSIGHT",(function(){return Ft})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_REPORTS",(function(){return Gt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_ALLOWED_RECIPIENTS",(function(){return jt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_USER_ROLES",(function(){return Yt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_RESOURCES_MUNICIPALITY",(function(){return qt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_COMMUNICATION_CHANNELS",(function(){return Vt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_SHARED_INBOX",(function(){return Kt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_ADMINISTRATIVE_AUTHORITY",(function(){return Wt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_GROUPS_MUNICIPALITY",(function(){return Qt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_TRANSITION_YEAR",(function(){return Xt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_DASHBOARDS",(function(){return zt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_MUNICIPAL_FILES_TO_ESDH",(function(){return Zt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DELETE_ACCESSIBLE_ALBUM",(function(){return Jt})),n.d(t,"MUNICIPAL_ADMINISTRATOR_HANDLE_GROUP_HOME_ADMINISTRATION",(function(){return en})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_REPORTS",(function(){return tn})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_ADDITIONAL_MASTER_DATA",(function(){return nn})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_USER_ROLES",(function(){return sn})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_RESOURCES_INSTITUTION",(function(){return rn})),n.d(t,"INSTITUTION_ADMINISTRATOR_PRESENCE_PLANNING",(function(){return on})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_SHARED_INBOX",(function(){return an})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_COMMON_FILES",(function(){return ln})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_GROUPS_INSTITUTION",(function(){return un})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_DASHBOARDS",(function(){return dn})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_PRESENCE",(function(){return cn})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_DELETED_SECURE_FILES",(function(){return fn})),n.d(t,"INSTITUTION_ADMINISTRATOR_REVISION_HISTORY",(function(){return _n})),n.d(t,"INSTITUTION_ADMINISTRATOR_EDIT_SHARED_ALBUMS",(function(){return pn})),n.d(t,"INSTITUTION_ADMINISTRATOR_EDIT_SHARED_ALBUMS_DESCRIPTION",(function(){return Tn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DELETE_ACCESSIBLE_ALBUM",(function(){return hn})),n.d(t,"INSTITUTION_ADMINISTRATOR_HANDLE_FILES_TO_ESDH",(function(){return En})),n.d(t,"OTHER_ADMINISTRATOR_BOARD_MEMBER",(function(){return In})),n.d(t,"OTHER_ADMINISTRATOR_USE_GROUPS_AS_DISTRIBUTION_LISTS",(function(){return mn})),n.d(t,"OTHER_ADMINISTRATOR_EXPORT_SECURE_FILES",(function(){return An})),n.d(t,"OTHER_ADMINISTRATOR_SEE_CONTACT_PARENTS_CONTACT_INFO",(function(){return Sn})),n.d(t,"OTHER_ADMINISTRATOR_INSTITUTION_CALENDAR_ADMIN",(function(){return Rn})),n.d(t,"OTHER_ADMINISTRATOR_CREATE_PARENTAL_PERFORMANCE_MEETINGS",(function(){return gn})),n.d(t,"OTHER_ADMINISTRATOR_ASSOCIATE_SECURE_DOCUMENTS_TO_ALL_GROUPS",(function(){return vn})),n.d(t,"OTHER_ADMINISTRATOR_VIEW_NAME_PROTECTION",(function(){return On})),n.d(t,"OTHER_ADMINISTRATOR_VIEW_PERSONAL_REFERENCE_DATA_FOR_ALL_CHILDREN_AND_GUARDIAN",(function(){return bn})),n.d(t,"OTHER_ADMINISTRATOR_SECURE_DOCUMENTS_ACCESS_ALL",(function(){return Dn})),n.d(t,"OTHER_ADMINISTRATOR_VIEW_CONTACT_INFORMATION_ALL",(function(){return Nn})),n.d(t,"OTHER_ADMINISTRATOR_ACCESS_GOOGLE_DRIVE",(function(){return Cn})),n.d(t,"OTHER_ADMINISTRATOR_ACCESS_ONEDRIVE",(function(){return yn})),n.d(t,"OTHER_ADMINISTRATOR_HANDLE_OTHERS_EVENTS",(function(){return Pn})),n.d(t,"OTHER_ADMINISTRATOR_JOURNALIZING_TO_ESDH_SYSTEM",(function(){return Ln})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_RIGHT_TO_INSIGHT",(function(){return wn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_REPORTS",(function(){return Un})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_ALLOWED_RECIPIENTS",(function(){return Mn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_USER_ROLES",(function(){return kn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_RESOURCES_MUNICIPALITY",(function(){return xn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_COMMUNICATION_CHANNELS",(function(){return Hn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_SHARED_INBOX",(function(){return $n})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_ADMINISTRATIVE_AUTHORITY",(function(){return Bn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_GROUPS_MUNICIPALITY",(function(){return Fn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_TRANSITION_YEAR",(function(){return Gn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_DASHBOARDS",(function(){return jn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_MUNICIPAL_FILES_TO_ESDH",(function(){return Yn}
1)),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_DELETE_ACCESSIBLE_ALBUM",(function(){return qn})),n.d(t,"MUNICIPAL_ADMINISTRATOR_DESCRIPTION_HANDLE_GROUP_HOME_ADMINISTRATION",(function(){return Vn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_REPORTS",(function(){return Kn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_ADDITIONAL_MASTER_DATA",(function(){return Wn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_USER_ROLES",(function(){return Qn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_RESOURCES_INSTITUTION",(function(){return Xn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_PRESENCE_PLANNING",(function(){return zn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_REVISION_HISTORY",(function(){return Zn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_SHARED_INBOX",(function(){return Jn})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_COMMON_FILES",(function(){return ei})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_GROUPS_INSTITUTION",(function(){return ti})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_DASHBOARDS",(function(){return ni})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_PRESENCE",(function(){return ii})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_DELETED_SECURE_FILES",(function(){return si})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_DELETE_ACCESSIBLE_ALBUM",(function(){return ri})),n.d(t,"INSTITUTION_ADMINISTRATOR_DESCRIPTION_HANDLE_FILES_TO_ESDH",(function(){return oi})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_BOARD_MEMBER",(function(){return ai})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_USE_GROUPS_AS_DISTRIBUTION_LISTS",(function(){return li})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_EXPORT_SECURE_FILES",(function(){return ui})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_SEE_CONTACT_PARENTS_CONTACT_INFO",(function(){return di})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_INSTITUTION_CALENDAR_ADMIN",(function(){return ci})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_CREATE_PARENTAL_PERFORMANCE_MEETINGS",(function(){return fi})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_ASSOCIATE_SECURE_DOCUMENTS_TO_ALL_GROUPS",(function(){return _i})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_VIEW_NAME_PROTECTION",(function(){return pi})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_VIEW_PERSONAL_REFERENCE_DATA_FOR_ALL_CHILDREN_AND_GUARDIAN",(function(){return Ti})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_SECURE_DOCUMENTS_ACCESS_ALL",(function(){return hi})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_VIEW_CONTACT_INFORMATION_ALL",(function(){return Ei})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_ACCESS_GOOGLE_DRIVE",(function(){return Ii})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_ACCESS_ONEDRIVE",(function(){return mi})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_HANDLE_OTHERS_EVENTS",(function(){return Ai})),n.d(t,"OTHER_ADMINISTRATOR_DESCRIPTION_JOURNALIZING_TO_ESDH_SYSTEM",(function(){return Si})),n.d(t,"DESCRIPTION_ROLES_AND_RIGHTS",(function(){return Ri})),n.d(t,"INDIVIDUAL_USER_RIGHTS",(function(){return gi})),n.d(t,"GROUP_MEMBERSHIP_RIGHTS",(function(){return vi})),n.d(t,"RIGHTS_IN_GROUPS",(function(){return Oi})),n.d(t,"GROUP",(function(){return bi})),n.d(t,"WRITE_GROUP_POSTS",(function(){return Di})),n.d(t,"CREATE_EVENTS",(function(){return Ni})),n.d(t,"SHARE_MEDIA",(function(){return Ci})),n.d(t,"CREATE_MESSAGES",(function(){return yi})),n.d(t,"NO_ASSIGNED_ROLES",(function(){return Pi})),n.d(t,"DELETE_ROLE_WARNING",(function(){return Li})),n.d(t,"DELETE_ROLE_CONFIRMATION",(function(){return wi})),n.d(t,"EXPORT_USERS_LIST",(function(){return Ui})),n.d(t,"EXPORT_USERS_LIST_DESCRIPTION",(function(){return Mi}));var i="Søg:",s="Søg blandt brugere:",r="Resultat",o="Billede",a="Link til Uni-Login opslag",l="Navn",u="Unilogin",d="Profilrolle",c="Profiltype",f="Institution",_="Kommune",p="Telefonnummer",T="Email",h="Rettigheder",E="Rediger",I="Roller og rettigheder",m="Brugere",A="Du kan ikke tildele de valgte roller til nogle af de valgte brugere",S="Tilføj Roller og Rettigheder",R="Fjern Roller og Rettigheder",g="Gem",v="Oplysningerne stammer fra UNI-login, og kan derfor ikke slettes.",O="Der er for mange søgeresultater. Prøv at indsnævre din søgning yderligere",b="Søgningen gav ikke nogle resultater. Prøv at søge bredere",D="Du kan søge brugere frem ved at søge på deres navn, institution, kommune og roller.",N="Du kan søge brugere frem ved at søge på deres navn, institution, roller og rettigheder.",C="Du kan søge brugere frem ved at søge på deres navn, roller og rettigheder.",y="Du mangler at angive en årsag",P="Du mangler at angive et sags id",L="Brugeroplysninger",w="valgt",U="Rediger profilbillede",M="Samtykker",k="Supplerende stamdata",x="Senseste Login",H="Profil",$="E-mail (kontakt)",B="Aula-e-mail",F="Telefon",G="Adresse",j="Børn",Y="Signatur",q="Rolle(r)",V="Se alt data i Aula om",K="Data bliver slettet. Der kan gå op til 1 minut før alt data er slettet og du ikke længere kan se det i tabellen",W="Rediger rolle",Q="Blokeret upload af medier",X="Lås bruger",z="Lås bruger op",Z="Låst op",J="Låst",ee="Her kan du låse for en brugers institutionsprofil, og dermed for dennes adgang til Aula. Du kan også låse en låst bruger op igen. Når du låser en bruger, kan brugeren ikke længere logge ind i Aula for institutionen. Hvis brugeren allerede er logget ind, bliver brugeren logget ud. Låsningen gælder kun for den konkrete institutionsprofil. Hvis brugeren har andre ikke-låste institutionsprofiler, kan brugeren fortsat logge ind med disse.",te="Brugerens institutionsprofil er låst op og kan atter tilgå Aula. Bemærk at der kan gå op til 15 minutter før brugeren låses igen.",ne="Brugerens institutionsprofil er låst og kan ikke tilgå Aula. Bemærk at der kan gå op til 15 minutter før brugeren kan låses op.",ie="Angiv evt. årsag",se="Maks 500 karakterer",re="Skriv her...",oe="Dato",ae="Bruger",le="Hændelse",ue="Årsag",de="Lås bruger",ce="Lås bruger op",fe="Bekræft Låsning af bruger",_e="Bekræft lås op af bruger",pe="Oprettet",Te="Start og slutdato",he="Data er tilknyttet",Ee="Kategori",Ie="Titel",me="Beskrivelse",Ae="Oprettet af",Se="Følsomhed",Re="",ge="Dato",ve="Emne",Oe="Deltagere",be="Indhold før",De="Indhold efter",Ne="Versioner",Ce="Hent flere",ye="Der er ikke flere beskeder",Pe="Der er ingen beskeder at vise",Le="[Beskeden er slettet]",we="slettet",Ue="Kommunal administrator",Me="Institutions administrator",ke="Andre rettigheder",xe="Oversigt over rettigheder",He="Rettighed",$e="Beskrivelse",Be="Åbn oversigt over rettigheder",Fe="Tilbage til brugeroplysninger",Ge="Data om",je="Her kan du se en oversigt over det forskellige data, som der er tilknyttet brugeren. Data er opdelt ift. de forskellige områder og moduler, der er i Aula.",Ye="Det er muligt at eksportere eller slette data om brugeren.",qe="Begivenheder/Invitationer/Ferie",Ve="Beskedtråde",Ke="Slettede og redigerede beskeder",We="Supplerende stamdata/Deling af kontaktoplysninger/Kontaktinfo",Qe="Grupper",Xe="Opslag",ze="Medier",Ze="Dokumenter",Je="Henteansvarlige",et="Kommentarer",tt="Indtast korrekt dato format",nt="Startdato skal være før slutdato",it="Dato er ugyldig",st="Dagtilbudsbarn",rt="Indskolingselev",ot="Mellemtrins-/Udskolingselev",at="Forælder",lt="Leder",ut="Pædagog",dt="Lærer",ct="Anden",ft="Dato",_t="Fra",pt="Til",Tt="Oprettet af",ht="Entitet",Et="Operation",It="Status",mt="Kommentar",At="Handling",St="Grupper",Rt="Kommentarer",gt="Medier",vt="Dokumenter",Ot="Opslag",bt="Beskeder",Dt="Begivenheder",Nt="Supplerende stamdata/Deling af kontaktoplysninger/Kontaktinfo",Ct="Henteansvarlige",yt="Eksport/Sletning blev oprettet",Pt="Fejlet",Lt="Færdig",wt="Under behandling",Ut="Slet",Mt="Eksport",kt="Rediger brugertilladelser",xt="Indtast blandt brugere",Ht="Indtast nøglesøgning",$t="Eksporteringer",Bt="Sletninger",Ft="Håndter ret til indsigt og ret til at blive glemt",Gt="Håndter Anmeldelser og slet Indhold",jt="Håndter Godkendte Modtagere",Yt="Håndter Brugerroller",qt="Håndter Ressourcer på kommune",Vt="Håndter Kommunikationskanaler",Kt="Håndter Fællespostkasser",Wt="Håndter Forvaltningsmyndigheder",Qt="Håndter Grupper",Xt="Håndter Overgangsår",zt="Håndter Dashboard",Zt="Håndter filer sendt til journalisering i ESDH-system",Jt="Slet albummer",en="Kommunal bostedsadministrator",tn="Håndter Anmeldelser og slet Indhold",nn="Håndter Supplerende Stamdata og Tilladelser",sn="Håndter Brugerroller",rn="Håndter Ressourcer på institutionen",on="Komme/Gå planlægning",an="Håndter Fællespostkasse",ln="Håndter Fælles Filer",un="Håndter Grupper",dn="Håndter Dashboards",cn="Håndter Komme/Gå",fn="Håndter Slettede Sikre Filer",_n="Svarhistorik",pn="Rediger albummer",Tn="Giver en medarbejder mulighed for at redigere alle albums denne har adgang til. Medarbejdere med denne rettighed kan skifte titel, redigere delinger, redigere beskrivelse, multi-tagge medier, redigere eller slette alle medier fra et album.",hn="Slet albummer",En="Håndter filer sendt til journalisering i ESDH-system",In="Bestyrelsesmedlem",mn="Brug grupper som distributionsliste",An="Eksportering sikre filer",Sn="Kontaktforælder",Rn="Opret begivenheder kun i institutionens kalender",gn="Opret kalendersamtaler",vn="Relater sikre filer til alle grupper",On="Se navnebeskyttelse",bn="Se stamkortoplysninger for alle på institutionen",Dn="Sikker fildeling, fuld institutionel adgang",Nn="Se kontaktoplysninger for alle på institutionen",Cn="Tilgå Google Drive",yn="Tilgå OneDrive",Pn="Håndter begivenheder",Ln="Journ
1alisering i ESDH-system",wn="Giver mulighed for at slette al data om en bruger samt at fremsøge både aktive og inaktive brugere i Aula. OBS! Denne administratorrettighed skal tildeles separat og følger således ikke med, når en medarbejder tildeles rollen ”Kommunal administrator”. Rettigheden kan kun tildeles en bruger på kommuneinstitutionen.",Un="Rettigheden ”Håndter anmeldelser og slet indhold” giver mulighed for at håndtere anmeldelser på den kommunale institution. Herunder slette anmeldte opslag, medier og kommentarer.",Mn="Giver mulighed for at håndtere, hvilke eksterne modtagere, Aula kan sende personfølsomt indhold til. Denne rettighed er endnu ikke færdigudviklet, hvorfor den på nuværende tidspunkt ikke har nogen funktion.",kn="Giver mulighed for at søge efter samt tildele roller og rettigheder til alle brugere i kommunen. Der kan søges på – og tildeles roller/rettigheder til - både kommunale medarbejdere og brugere på en institution",xn="Giver rettighed til at oprette ressourcer (lokaler, læringsmaterialerb mm.) på institutionelt- eller kommunalt niveau. Derudover kan der gives specifikke rettigheder for bookning af en eller flere specifikke ressourcer i kalenderen til brugere og/eller grupper.",Hn="Kan defineres på kommunalt eller institutionelt niveau, og kan blokere visse profiltyper fra at kommunikere med andre profiltyper (f.eks. Elever til forældre eller forældre til medarbejdere).",$n="En fællespostkasse er en mappe inde i beskedmodulet, hvorfra tilføjede medarbejdere kan sende, modtage og besvare beskeder. Håndtering af fællespostkasser giver mulighed for at oprette fællespostkasser, samt redigere og slette eksisterende fællespostkasser.",Bn="Giver mulighed for at gruppere institutioner i forvaltningsmyndigheder, eller oprette en enkelt institution som en forvaltningsmyndighed.",Fn="Giver mulighed for at håndtere (herunder oprette og redigere) grupper på kommunalt niveau. Det indebærer også håndtering af tværgående grupper.",Gn="Overgangsår angiver, hvornår en elev går fra at være indskolingselev til at være elev på mellemtrin og derefter udskoling. Dette kan defineres for hele kommunen samt på den enkelte institution.",jn="Dashboard er en betegnelse for de moduler og widgets, som brugerne har til rådighed i deres Aula – eksempelvis Besked- eller Kalendermodulet. Der er mulighed for at konfigurere dashboards for: Indskolingselever, Mellemtrins-/udskolingselever, Forældre/Værger, Pædagogisk personale (Skole), Pædagogisk personale (Dagtilbud), Ledere, samt Øvrige brugere.",Yn="Giver medarbejdere mulighed for at se de sikre filer, der blev sendt til journalisering i ESDH-systemet, hvor journalisering fejlede. Rettigheden skal tildeles af en administrator.",qn="Giver medarbejderen mulighed for at slette albummer, som de har adgang til i Aula. Rettigheden skal tildeles af en administrator.",Vn="Giver mulighed for at kunne administrere alle bosteder, der er oprettet i kommunen. Brugeren kan tilgå en administrationsside pr. bosted og her tilknytte medarbejdere til børn, samt fjerne disse tilknytninger. Rettigheden kan kun tildeles af og til kommunale administratorer.",Kn="Forskelligt indhold såsom opslag kan anmeldes af brugere i Aula. Håndtering af anmeldelser giver mulighed for at se anmeldelser, håndtere anmeldelser, slette opslag, medier og kommentarer samt modtage notifikationer ved nye anmeldelser.",Wn="Giver mulighed for at oprette Supplerende stamdata omkring institutionens børn, samt tilladelser som forældrene kan besvare.",Qn="Giver mulighed for at søge efter alle brugere og grupper på institutionen i administrationsmodulet samt tildele brugere og grupper roller og rettigheder.",Xn="Giver rettighed til at oprette ressourcer (lokaler, læringsmaterialer mm.) på institutionelt niveau, og der kan gives specifikke rettigheder for bookning i kalendere til brugere og/eller grupper på institutionsniveau.",zn="Giver mulighed for at anmode om ferieregistrering fra forældre, der har Komme/Gå modulet tilgængeligt. Derudover er det muligt at se statistik på fravær af børn, der har Komme/Gå modulet tilknyttet.",Zn="Giver mulighed for at se svarhistorikken for deling af kontaktoplysninger, stamkortoplysninger og tilladelser.",Jn="En fællespostkasse er en mappe inde i beskedmodulet, hvor tilføjede medarbejdere kan sende, modtage og besvare beskeder fra. Håndtering af fællespostkasser giver mulighed for at oprette fællespostkasser, samt redigere og slette eksisterende fællespostkasser.",ei="Giver mulighed for at se, redigere og oprette Fælles filer. En Fælles fil er eksempelvis et dokument, som kan oprettes og distribueres til særlige målgrupper/profiltyper i Aula. Eksempelvis ”Mobbepolitik” til medarbejdere og forældre, ”Brandinstruks” til medarbejdere mm.",ti="Giver mulighed for at søge, oprette og redigere i alle grupper på institutionen.",ni="’Dashboard’ er en betegnelse for de moduler og widgets, som brugerne har til rådighed i deres Aula, eksempelvis Besked- eller Kalendermodulet. Der er mulighed for at konfigurere dashboards for: Indskolingselever, Mellemtrins-/udskolingselever, Forældre/Værger, Pædagogisk personale (Skole), Pædagogisk personale (Dagtilbud), Ledere, samt Øvrige brugere.",ii="Giver adgang til at konfigurere Komme/Gå modulet, at opsætte institutionens Komme/Gå på en fysisk enhed på institutionen (Check-In tavle) samt at oprette Fysiske Placeringer.",si="Giver mulighed for at tilgå og gendanne slettede sikre filer fra din institution.",ri="Giver medarbejderen mulighed for at slette albummer, som de har adgang til i Aula. Rettigheden skal tildeles af en administrator.",oi="Giver medarbejdere mulighed for at se de sikre filer, der blev sendt til journalisering i ESDH-systemet, hvor journalisering fejlede. Rettigheden skal tildeles af en administrator.",ai="En elev eller en forælder kan tildeles denne rettighed, som giver de samme muligheder som en kontaktforælder. Derudover kan bestyrelsesmedlemmer tilgå en liste over kontaktforældrenes kontaktinformationer.",li="Giver brugere af profiltypen medarbejder, forælder eller elev mulighed for at oprette opslag til, sende kalenderinvitationer til, sende beskeder til, og dele albums med grupper på institutionen, selvom de ikke selv er medlem af gruppen.",ui="Giver medarbejdere mulighed for at eksportere sikre filer ud af Aula, så de kan sendes til eksterne systemer/personer. Er der tale om en enkelt fil, eksporteres den direkte som PDF, og er der flere filer eller vedhæftninger, eksporteres de som zip-mapper med undermapper pr. sikker fil.",di="Giver en bruger af profiltypen ”Forælder” mulighed for at tilføje en beskrivelse på sin profil. Brugeren vil også blive tilføjet til en liste af kontaktforældre, som Bestyrelsesmedlemmer har rettighed til at se.",ci="Giver mulighed for at oprette begivenheder, der udelukkende bliver vist i skolens kalender og ikke i brugerens egen kalender. Rett
1igheden tildeles af en administrator, og kan tildeles profiltyperne medarbejder, pædagog og leder på en skole eller et dagtilbud, dvs. ikke på den kommunale institution.",fi="En medarbejder, hvis profiltype er ’Anden’, og dermed ikke pr. default kan oprette samtaler, kan tildeles denne rettighed. Rettigheden giver mulighed for at kunne oprette samtaler via kalenderen.",_i="Giver en medarbejder mulighed for at fremsøge alle institutionens grupper i ”omhandler gruppe”- feltet. Det er dermed muligt at oprette sikre filer på alle grupper indenfor institutionen. Rettigheden kan kun tildeles medarbejdere.",pi="Giver brugere med profiltypen ’medarbejdere’ mulighed for at se, om en bruger er navnebeskyttet eller ej. Dette sker gennem rettigheden ’Se navnebeskyttelse’. Alle medarbejdere med rollerne ’Leder’, ’Ledelse’, ’Lærer’, ’Pædagog’, ’Konsulent’ bliver automatisk tildelt denne rettighed.",Ti="Giver medarbejdere mulighed for at se en liste over alle stamkortoplysninger for alle børn og forældre indenfor institutionen. Stamkortoplysninger omfatter tilladelser, supplerede stamdata og samtykker.",hi="Giver medarbejdere mulighed for at se, redigere og slette alle sikre filer på institutionen, uanset om de er delt med brugeren eller ej. Rettigheden skal tildeles af en administrator og kan kun tildeles til medarbejdere på en skole eller et dagtilbud, dvs. ikke på den kommunale institution.",Ei="Med denne rettighed får medarbejdere mulighed for at se en liste over kontaktoplysninger på brugere i grupper, de ikke selv er en del af.",Ii="Giver mulighed for at tilgå henholdsvis Google Drive – to fildelingsløsninger, som i Aula tilgås via Dokumentmodulet, hvis rettighederne er tildelt. Det er muligt at tildele rettigheden til både medarbejdere, forældre og elever. ",mi="Giver mulighed for at tilgå henholdsvis OneDrive – to fildelingsløsninger, som i Aula tilgås via Dokumentmodulet, hvis rettighederne er tildelt. Det er muligt at tildele rettigheden til både medarbejdere, forældre og elever.",Ai="Giver en medarbejder mulighed for at kunne slette og redigere andre medarbejderes begivenheder og samtaler på institutionen. Redigering er begrænset til sted, ressourcer og ekstra lokaler. Andre medarbejderes begivenheder og samtaler ses ved at åbne deres kalender.",Si="Giver medarbejdere mulighed for at journalisere sikre filer i kommunens ESDH-system. Rettigheden skal tildeles af en administrator.",Ri="Nedenstående rettigheder gives på hele institutionen. Rettigheder kan gives enten individuelt eller igennem en gruppe",gi="Individuelle brugerrettigheder",vi="Brugerrettigheder fra gruppemedlemskab",Oi="Rettigheder i grupper",bi="Gruppe",Di="Skrive gruppeopslag",Ni="Oprette begivenheder",Ci="Dele medier",yi="Oprette beskeder",Pi="Ingen tildelte",Li="Du er ved at fjerne en rolle eller rettighed fra personen.",wi="Er du sikker på, at du vil fortsætte?",Ui="Eksportering af brugerliste",Mi="Giver medarbejdere mulighed for at eksportere en liste over hvilke rettigheder brugere, indenfor kommunen eller institutionen, har fået tildelt i Aula."},74:function(e,t,n){"use strict";var i=n(1),s=n.n(i),r=n(81),o=n(185);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var u={name:"TableRow",provide:function(){var e=this;return s()({},o.a.COLLAPSE_DIRECTIONS,(function(){return e.collapseDirections}))},inject:{getIsHoverable:o.a.IS_HOVERABLE},props:{collapseDirections:{required:!1,default:function(){return[]},type:Array,validator:function(e){var t,n=!0,i=Array.from(Object.values(r.a)),s=a(e);try{for(s.s();!(t=s.n()).done;){var o=t.value;
1if(!i.includes(o)){n=!1;break}}}catch(e){s.e(e)}finally{s.f()}return n}}},computed:{isHoverable:function(){return this.getIsHoverable()},classes:function(){var e=["table-row"];return this.isHoverable||e.push("not-hoverable"),e}}},d=n(3),c=Object(d.a)(u,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-tr",{class:e.classes},[e._t("default")],2)}),[],!1,null,"1b24d10e",null);t.a=c.exports},79:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({YESNO:"yesno",TEXT:"text",PHONENUMBER:"phonenumber"})},81:function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.TOP="top",e.BOTTOM="bottom",e.LEFT="left",e.RIGHT="right"}(i||(i={}))},88:function(e,t,n){"use strict";var i={name:"BadgeNotification",components:{AulaBadge:n(165).a},props:{amount:{type:Number,default:0},showExclamationIconInsteadOfAmount:{type:Boolean,default:!1},border:{type:Boolean,default:!0},css:{type:String,default:""}}},s=n(3),r=Object(s.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.amount>0||e.showExclamationIconInsteadOfAmount?n("div",{staticClass:"badge-notification badge-notification-variables",class:e.css},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_NEW_CONTENT")))]),e._v(" "),n("AulaBadge",[e.amount>0?[e.amount<100?n("span",[e._v(e._s(e.amount))]):e.amount>=100?n("span",[e._v("99+")]):e._e()]:e.showExclamationIconInsteadOfAmount?n("i",{staticClass:"icon-Aula_exclamation_sign"}):e._e()],2)],1):e._e()}),[],!1,null,"70c4f6d7",null);t.a=r.exports},89:function(e,t,n){"use strict";var i=n(17),s=n.n(i),r=n(185),o=n(81),a=n(429);function l(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw r}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var d={name:"TableCell",inject:{getIsHoverable:r.a.IS_HOVERABLE,getCollapseDirections:r.a.COLLAPSE_DIRECTIONS,getVerticalAlign:r.a.VERTICAL_ALIGN},props:{collapseDirections:a.a},computed:{hoverable:function(){return this.getIsHoverable()},verticalAlign:function(){return this.getVerticalAlign()},collapseDirectionClasses:function(){var e=[],t=this.getCollapseDirections();null!=this.collapseDirections&&(t=this.collapseDirections);var n,i=l(t);try{for(i.s();!(n=i.n()).done;){switch(n.value){case o.a.TOP:e.push("collapse-top");break;case o.a.BOTTOM:e.push("collapse-bottom");break;case o.a.LEFT:e.push("collapse-left");break;case o.a.RIGHT:e.push("collapse-right")}}}catch(e){i.e(e)}finally{i.f()}return e},classes:function(){var e=["table-cell"].concat(s()(this.collapseDirectionClasses));return this.hoverable||e.push("not-hoverable"),this.verticalAlign||e.push("not-vertical-aligned"),e}}},c=n(3),f=Object(c.a)(d,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-td",e._b({class:e.classes},"b-td",Object.assign({},e.$attrs),!1),[e._t("default")],2)}),[],!1,null,"357eb505",null);t.a=f.exports},93:function(e,t,n){"use strict";var i=n(1),s=n.n(i),r=n(185),o={name:"TableContainer",provide:function(){var e,t=this;return e={},s()(e,r.a.IS_HOVERABLE,(function(){return t.hoverable})),s()(e,r.a.VERTICAL_ALIGN,(function(){return t.verticalAlign})),e},props:{hoverable:{required:!1,default:function(){return!1},type:Boolean},verticalAlign:{required:!1,default:function(){return!1},type:Boolean}}},a=n(3),l=Object(a.a)(o,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-table-simple",{staticClass:"table"},[e._t("default")],2)}),[],!1,null,"149d1187",null);t.a=l.exports},94:function(e,t,n){"use strict";var i=n(429),s=n(185),r=n(81);function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
1if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var l={name:"TableHeading",inject:{getCollapseDirections:s.a.COLLAPSE_DIRECTIONS},props:{collapseDirections:i.a},computed:{collapseDirectionClasses:function(){var e=["table-head-cell"],t=this.getCollapseDirections();null!=this.collapseDirections&&(t=this.collapseDirections);var n,i=o(t);try{for(i.s();!(n=i.n()).done;){switch(n.value){case r.a.TOP:e.push("collapse-top");break;case r.a.BOTTOM:e.push("collapse-bottom");break;case r.a.LEFT:e.push("collapse-left");break;case r.a.RIGHT:e.push("collapse-right")}}}catch(e){i.e(e)}finally{i.f()}return e}}},u=n(3),d=Object(u.a)(l,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-th",{class:e.collapseDirectionClasses},[e._t("default")],2)}),[],!1,null,"3e55484d",null);t.a=d.exports},95:function(e,t,n){"use strict";var i={name:"TableBody"},s=n(3),r=Object(s.a)(i,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-tbody",[e._t("default")],2)}),[],!1,null,null,null);t.a=r.exports},96:function(e,t,n){"use strict";var i={name:"TableHead"},s=n(3),r=Object(s.a)(i,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("b-thead",[e._t("default")],2)}),[],!1,null,null,null);t.a=r.exports}}]);
2//# sourceMappingURL=5.3cb4d909204fa1b4a91b.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.