1(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{147:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i,o,r=n(30);!function(e){e.OVERVIEW="overview",e.CALENDAR="calendar",e.MESSAGES="messages",e.DOCUMENTS="documents",e.GALLERY="gallery",e.PRESENCE="presence",e.ADMINISTRATION="administration",e.CONTACTS="contacts",e.PERSONAL_REFERENCE_DATA="personal_reference_data",e.OTP_ADMINISTRATION="otp_administration"}(i||(i={})),function(e){e.OVERVIEW="MENU_OVERVIEW",e.CALENDAR="MENU_CALENDAR",e.MESSAGES="MENU_MESSAGES",e.DOCUMENTS="MENU_DOCUMENTS",e.GALLERY="MENU_GALLERY",e.PRESENCE="MENU_PRESENCE",e.ADMINISTRATION="MENU_ADMINISTRATION",e.CONTACTS="MENU_CONTACTS",e.PERSONAL_REFERENCE_DATA="MENU_PERSONAL_REFERENCE_DATA",e.OTP_ADMINISTRATION="MENU_OTP_ADMINISTRATION"}(o||(o={}));var s=n(51),a=n(15);const c=new class{getMenuItemsList(e,t){const n=[];for(const i of t){const t=e[i]||[];n.push(...t)}return n}getIsAdministrativeMenu(e){return this.getIsAdministrationMenu(e)||this.getIsOTPAdministrationMenu(e)}getIsAdministrationMenu(e){return e.type===r.a.ADMINISTRATION}getIsOTPAdministrationMenu(e){return e.type===r.a.OTP_ADMINISTRATION}getSortedMenuItems(e){return[...e].sort(((e,t)=>{const n=e.type===r.a.OVERVIEW,i=t.type===r.a.OVERVIEW,o=this.getIsAdministrativeMenu(e),s=this.getIsAdministrativeMenu(t);return n?-1:i?1:o?-1:s?1:0}))}getIsIconImage(e){return null!=e.match(/\.(jpg|svg|jpeg|gif|png)/i)}getMenuType(e){switch(e){case i.OVERVIEW:return o.OVERVIEW;case i.CALENDAR:return o.CALENDAR;case i.MESSAGES:return o.MESSAGES;case i.DOCUMENTS:return o.DOCUMENTS;case i.GALLERY:return o.GALLERY;case i.PRESENCE:return o.PRESENCE;case i.ADMINISTRATION:return o.ADMINISTRATION;case i.CONTACTS:return o.CONTACTS;case i.PERSONAL_REFERENCE_DATA:return o.PERSONAL_REFERENCE_DATA;case i.OTP_ADMINISTRATION:return o.OTP_ADMINISTRATION;default:return""}}getNotificationAreasFromModule(e){let t=[];switch(e){case r.a.OVERVIEW:t=[s.a.POSTS,s.a.FILE_SCANNING];break;case r.a.CALENDAR:t=[s.a.CALENDAR];break;case r.a.MESSAGES:t=[s.a.MESSAGES];break;case r.a.ADMINISTRATION:t=[s.a.ADMINISTRATION];break;case r.a.GALLERY:t=[s.a.GALLERY];break;case r.a.DOCUMENTS:t=[s.a.DOCUMENTS];break;case r.a.PRESENCE:t=[s.a.PRESENCE]}return t}getMenuIconClass(e){switch(e.type){case i.MESSAGES:return a.a.CONVERSATION;case i.PERSONAL_REFERENCE_DATA:return a.a.PERSONAL_DATA}return e.icon}}},158:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(9),o=n(41),r=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const s=new class{constructor(){this.getEsdhDataExportConfiguration=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.get("?method=EsdhDataExportAdmin.getEsdhDataExportConfiguration",{params:{municipalityCode:e}});return t.data}catch(e){return Promise.reject(new o.a(e))}})),this.addEsdhDataExportRecipient=e=>r(this,void 0,void 0,(function*(){try{yield i.b.post("?method=EsdhDataExportAdmin.addEsdhDataExportRecipient",e)}catch(e){return Promise.reject(new o.a(e))}})),this.updateEsdhDataExportRecipient=e=>r(this,void 0,void 0,(function*(){try{yield i.b.post("?method=EsdhDataExportAdmin.updateEsdhDataExportRecipient",e)}catch(e){return Promise.reject(new o.a(e))}})),this.deleteEsdhDataExportRecipient=e=>r(this,void 0,void 0,(function*(){try{yield i.b.post("?method=EsdhDataExportAdmin.deleteEsdhDataExportRecipient",e)}catch(e){return Promise.reject(new o.a(e))}})),this.getRecipientNames=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.get("?method=EsdhDataExportAdmin.getRecipientNames",{params:{institutionCode:e}});return t.data}catch(e){return Promise.reject(new o.a(e))}})),this.getExportData=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.get("?method=EsdhDataExportAdmin.getExportData",{params:e});return t.data}catch(e){return Promise.reject(new o.a(e))}})),this.getExportDataForMunicipality=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.get("?method=EsdhDataExportAdmin.getExportDataForMunicipality",{params:e});return t.data}catch(e){return Promise.reject(new o.a(e))}})),this.journalizeDocuments=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.post("?method=EsdhDataExportAdmin.journalizeDocuments",e);return t.data}catch(e){return Promise.reject(new o.a(e))}})),this.markDocumentsForManualTransfer=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.post("?method=EsdhDataExportAdmin.markDocumentsForManualTransfer",e);return t.data}catch(e){return Promise.reject(new o.a(e))}})),this.resendDocuments=e=>r(this,void 0,void 0,(function*(){try{const{data:t}=yield i.b.post("?method=EsdhDataExportAdmin.resendDocuments",e);return t.data}catch(e){return Promise.reject(new o.a(e))}}))}}},170:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=Object.freeze({TIME:"time",CREATED_AT:"createdAt",UPDATED_AT:"updatedAt",DELETED_AT:"deletedAt",TITLE:"title"})},201:function(e,t,n){"use strict";var i=n(78),o=n.n(i),r={methods:{cancelAxiosRequest:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Request cancelled";null!=e&&e.cancel(t)},getAxiosCancelTokenSource:function(){return o.a.CancelToken.source()}}};t.a=r},300:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));
1var i=n(9),o=n(41),r=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const s=new class{constructor(){this.getMunicipalities=()=>r(this,void 0,void 0,(function*(){try{const{data:e}=yield i.b.get("?method=genericAdmin.getMunicipalities");return e.data}catch(e){return Promise.reject(new o.a(e))}})),this.getInstitutions=()=>r(this,void 0,void 0,(function*(){try{const{data:e}=yield i.b.get("?method=genericAdmin.getInstitutions");return e.data}catch(e){return Promise.reject(new o.a(e))}}))}}},352:function(e,t,n){"use strict";var i=n(17),o=n.n(i),r=n(12),s=n.n(r),a=n(1),c=n.n(a),l=n(7),u=n.n(l),d=n(4),E=n(6),_=n(2),m=n(25),h=n(53),p=n(14),f=n(164),T=n(135),D=n(453),C=n(51),g=n(18),S=n(46),O=n(83),v=n(21),R={components:{AulaImg:O.a},props:{media:{type:Object,default:null}},data:function(){return{mediaTypes:S.a,Vue:d.default}},computed:{createdDate:function(){var e,t;return v.a.longDate(null===(e=this.media)||void 0===e||null===(t=e.file)||void 0===t?void 0:t.created,!0)}}},N=n(3),I=Object(N.a)(R,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"reported-content-media-preview"},[e.media.mediaType==e.mediaTypes.IMAGE?n("AulaImg",{staticClass:"img-fluid",attrs:{"img-url":e.media.file.url}}):e._e(),e._v(" "),e.media.mediaType==e.mediaTypes.VIDEO?n("video",{staticClass:"video",attrs:{slot:"img",src:e.media.file.url,controls:"",controlsList:"nodownload"},slot:"img"}):e._e(),e._v(" "),e.media.mediaType==e.mediaTypes.SOUND?n("audio",{staticClass:"audio",attrs:{slot:"img",src:e.media.file.url,controls:""},slot:"img"}):e._e(),e._v(" "),n("h2",[e._v(e._s(e.media.title))]),e._v("\n "+e._s(e.$getText("GALLERY_CREATOR"))+": "+e._s(e.$getProfileDisplayName(e.media.creator))),n("br"),e._v("\n "+e._s(e.$getText("GALLERY_CREATED"))+": "+e._s(e.createdDate)),n("br"),e._v("\n "+e._s(e.media.description)),e.media.description?n("br"):e._e(),e._v(" "),null!=e.media.tags&&e.media.tags.length>0?[e._v("\n "+e._s(e.$getText("GALLERY_TAGS"))+":\n "+e._s(e.media.tags.map((function(t){return e.$getProfileDisplayName(t)})).join(", "))+"\n ")]:e._e()],2)}),[],!1,null,null,null).exports,A=n(305),M=n(13),b=n(478);function L(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]:{};t%2?L(Object(n),!0).forEach((function(t){c()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var P={components:{Post:A.a,ReportedContentMediaPreview:I,MediaDetail:f.a,Comments:D.a},props:{group:{type:Object,default:null}},setup:function(){return{institutions:Object(b.a)().institutions}},data:function(){return{parentTypes:p.a,Vue:d.default,commentTypes:T.a,perPage:20,selectedPost:null,selectedMedia:null,selectedComment:null,reportedPostItems:[],reportedMediaItems:[],reportedCommentItems:[],paramInstitutions:null,showPostStartDateAfterEndDateWarning:!1,showMediaStartDateAfterEndDateWarning:!1,showCommentStartDateAfterEndDateWarning:!1,fields:{reporter:{label:this.$getText("REPORTED_CONTENT_FIELDS_REPORTER"),class:"reporter"},reportedTime:{label:this.$getText("REPORTED_CONTENT_FIELDS_DATE"),class:"date",formatter:function(e){return v.a.shortDate(e,!0,!0)}},link:{label:this.$getText("REPORTED_CONTENT_FIELDS_LINK"),class:"link",type:"action"},reason:{label:this.$getText("REPORTED_CONTENT_FIELDS_REASON"),class:"reason"},author:{label:this.$getText("REPORTED_CONTENT_FIELDS_AUTHOR"),class:"author"},actions:{label:this.$getText("REPORTED_CONTENT_FIELDS_HANDLE_REPORT"),class:"handleReport",type:"action"}},highlightComment:{},showPostMediaDetail:!1}},computed:k(k({},Object(E.c)({selectedInstitution:_.a.GET_SELECTED_INSTITUTION,isMobile:_.a.GET_IS_MOBILE,relatedPost:_.a.GET_RELATED_POST,relatedMedia:_.a.GET_RELATED_MEDIA,notifications:_.a.GET_NOTIFICATIONS})),{},{userProfileStore:function(){return Object(M.a)()},isProfileLoaded:function(){return!1===this.userProfileStore.isLoading},selectedCommentId:function(){var e;return(null===(e=this.selectedComment)||void 0===e?void 0:e.id)||null},institutionCode:function(){return null!=this.group?this.group.institutionCode:this.selectedInstitution.institutionCode},relatedPostMedia:function(){return null!=this.relatedPost?this.relatedPost.attachments.filter((function(e){return null!=e.media})).map((function(e){return e.media})):[]}}),mounted:function(){this.loadParamInstitutions()},methods:k(k({},Object(E.b)({loadInstitutionsForMunicipality:_.a.LOAD_ADMINISTRATIVE_AUTHORITIES,loadNotifications:_.a.LOAD_NOTIFICATIONS,removeReportedPost:_.a.REMOVE_REPORTED_POST,removeReportedMedia:_.a.REMOVE_REPORTED_MEDIA,removeReportedComment:_.a.REMOVE_REPORTED_COMMENT,rejectReportedPost:_.a.REJECT_REPORTED_POST,rejectReportedMedia:_.a.REJECT_REPORTED_MEDIA,rejectReportedComment:_.a.REJECT_REPORTED_COMMENT,toggleSpinner:_.a.TOGGLE_SPINNER,loadRelatedPost:_.a.LOAD_RELATED_POST_BY_ID,loadRelatedMedia:_.a.LOAD_RELATED_MEDIA_BY_ID,deleteNotifications:_.a.DELETE_NOTIFICATIONS})),{},{deletePostNotifications:function(e){var t=this,n=this.notifications.filter((function(t){return t.notificationArea===C.a.ADMINISTRATION&&t.postId===e})).map((function(e){return{notificationId:e.notificationId,institutionProfileId:e.institutionProfileId}}));n.length>0&&this.deleteNotifications({notifications:n}).then((function(){t.$refs.reportedPostsResult.refresh()}))},deleteCommentNotifications:function(e){var t=this,n=this.notifications.filter((function(t){return t.notificationArea===C.a.ADMINISTRATION&&t.commentId===e})).map((function(e){return{notificationId:e.notificationId,institutionProfileId:e.institutionProfileId}}));n.length>0&&this.deleteNotifications({notifications:n}).then((function(){t.$refs.reportedCommentsResult.refresh()}))},deleteMediaNotifications:function(e){var t=this,n=this.notifications.filter((function(t){return t.notificationArea===C.a.ADMINISTRATION&&t.mediaId===e})).map((function(e){return{notificationId:e.notificationId,institutionProfileId:e.institutionProfileId}}));n.length>0&&this.deleteNotifications({notifications:n}).then((function(){t.$refs.reportedMediaResult.refresh()}))},loadParamInstitutions:function(){var e=this;return s()(u.a.mark((function t(){var n,i,r,s;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null!=(null===(n=e.group)||void 0===n?void 0:n.institutionCode)?e.paramInstitutions=[]:(i=[e.selectedInstitution.institutionCode],e.selectedInstitution.institutionType===m.a.MUNICIPALITY&&(r=e.institutions.filter((function(t){return t.municipalityCode===e.selectedInstitution.municipalityCode&&t.institutionCode!==e.selectedInstitution.institutionCode})),s=r.map((function(e){return e.institutionCode})),i.push.apply(i,o()(s))),e.paramInstitutions=i);case 1:case"end":return t.stop()}}),t)})))()},toggleMediaDetailPopup:function(e){this.showPostMediaDetail?this.$router.push({name:"ReportedContent"}):this.$router.push({name:"viewMediaInReportedContent",params:{mediaId:e}}),this.showPostMediaDetail=!this.showPostMediaDetail},preparePostParams:function(e){var t={};return null!=this.group&&null!=this.group.institutionCode?t={institutionCodes:[this.group.institutionCode],groupId:this.group.id,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}:null!=this.selectedInstitution&&null!=this.selectedInstitution.institutionCode&&(t={institutionCodes:this.paramInstitutions,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}),t},preparePostItems:function(e){var t=this,n=e.data.data.reportedPosts;return this.reportedPostItems=n.map((function(e){var n=Object.assign({},e);return n.hasBadge=null!=t.notifications.find((function(e){return e.postId===n.id&&e.notificationType===h.a.BADGE&&e.notificationEventType===g.a.POST_WAS_REPORTED})),n.reporter=t.$getProfileDisplayName(n.postReport.reportedBy),n.reportedTime=n.postReport.reportedAt,n.author=t.$getProfileDisplayName(n.ownerProfile),n.link=[{textkey:"REPORTED_CONTENT_LINK_LABEL",variant:"link",method:"previewPost"}],n.reason=n.postReport.reason,n.actions=[{variant:"link",method:"acceptReportedPostConfirm",textkey:"REPORTED_CONTENT_FIELDS_ACCEPT"},{variant:"link",method:"rejectReportedPostConfirm",textkey:"REPORTED_CONTENT_FIELDS_REJECT"}],n})),this.reportedPostItems},prepareMediaParams:function(e){var t={};return null!=this.group&&null!=this.group.institutionCode?t={institutionCodes:[this.group.institutionCode],groupId:this.group.id,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}:this.selectedInstitution&&this.selectedInstitution.institutionCode&&(t={institutionCodes:this.paramInstitutions,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}),t},prepareMediaItems:function(e){var t=this,n=e.data.data.reportedMedia;return this.reportedMediaItems=n.map((function(e){var n=Object.assign({},e);return n.hasBadge=null!=t.notifications.find((function(e){return e.mediaId===n.id&&e.notificationType===h.a.BADGE&&e.notificationEventType===g.a.MEDIA_WAS_REPORTED})),n.reporter=t.$getProfileDisplayName(n.mediaReport.reportedBy),n.reportedTime=n.mediaReport.reportedAt,n.author=t.$getProfileDisplayName(n.creator),n.link=[{textkey:"REPORTED_CONTENT_LINK_LABEL",variant:"link",method:"previewMedia"}],n.reason=n.mediaReport.reason,n.actions=[{variant:"link",method:"acceptReportedMediaConfirm",textkey:"REPORTED_CONTENT_FIELDS_ACCEPT"},{variant:"link",method:"rejectReportedMediaConfirm",textkey:"REPORTED_CONTENT_FIELDS_REJECT"}],n})),this.reportedMediaItems}
1,prepareCommentParams:function(e){var t={};return null!=this.group?t={institutionCodes:[this.group.institutionCode],groupId:this.group.id,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}:this.selectedInstitution&&this.selectedInstitution.institutionCode&&(t={institutionCodes:this.paramInstitutions,startIndex:e.currentPage*e.perPage-e.perPage,limit:e.perPage}),t},prepareCommentItems:function(e){var t=this,n=e.data.data.comments;return this.reportedCommentItems=n.map((function(e){var n=Object.assign({},e);return n.hasBadge=null!=t.notifications.find((function(e){return e.commentId===n.id&&e.notificationType===h.a.BADGE&&e.notificationEventType===g.a.COMMENT_WAS_REPORTED})),n.reporter=t.$getProfileDisplayName(n.report.reportedBy),n.reportedTime=n.report.reportedAt,n.author=t.$getProfileDisplayName(n.creator),n.link=[{textkey:"REPORTED_CONTENT_LINK_LABEL",variant:"link",method:"previewComment"}],n.reason=n.report.reason,n.actions=[{variant:"link",method:"acceptReportedCommentConfirm",textkey:"REPORTED_CONTENT_FIELDS_ACCEPT"},{variant:"link",method:"rejectReportedCommentConfirm",textkey:"REPORTED_CONTENT_FIELDS_REJECT"}],n})),this.reportedCommentItems},acceptReportedPostConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=e&&(this.selectedPost=e.item,this.deletePostNotifications(this.selectedPost.id)),this.$refs.deletePostModal.show()},rejectReportedPostConfirm:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=t&&(this.selectedPost=t.item,this.deletePostNotifications(this.selectedPost.id)),this.$refs.postModal.hide(),this.rejectReportedPost({id:this.selectedPost.id,institutionCode:this.institutionCode}).then((function(){e.$refs.reportedPostsResult.refresh()}))},acceptReportedMediaConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=e&&(this.selectedMedia=e.item,this.deleteMediaNotifications(this.selectedMedia.id)),this.$refs.deleteMediaModal.show()},rejectReportedMediaConfirm:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=t&&(this.selectedMedia=t.item,this.deleteMediaNotifications(this.selectedMedia.id)),this.$refs.mediaModal.hide(),this.rejectReportedMedia({id:this.selectedMedia.id,institutionCode:this.institutionCode}).then((function(){e.$refs.reportedMediaResult.refresh()}))},acceptReportedCommentConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=e&&(this.selectedComment=e.item,this.deleteCommentNotifications(this.selectedComment.id)),this.$refs.deleteCommentModal.show()},rejectReportedCommentConfirm:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null!=t&&(this.selectedComment=t.item,this.deleteCommentNotifications(this.selectedComment.id)),this.$refs.commentModal.hide(),this.rejectReportedComment({id:this.selectedComment.id,institutionCode:this.institutionCode}).then((function(){e.$refs.reportedCommentsResult.refresh()}))},previewPost:function(e){this.selectedPost=e.item,this.deletePostNotifications(this.selectedPost.id),this.$refs.postModal.show(),this.showPostMediaDetail=!1},previewMedia:function(e){this.selectedMedia=e.item,this.deleteMediaNotifications(this.selectedMedia.id),this.$refs.mediaModal.show()},previewComment:function(e){var t=this;this.showPostMediaDetail=!1,this.selectedComment=e.item,this.deleteCommentNotifications(this.selectedComment.id),this.highlightComment.id=this.selectedComment.id,this.selectedComment.parentCommentId&&(this.highlightComment.parentId=this.selectedComment.parentCommentId),null!=this.selectedComment.postId?this.loadRelatedPost({postId:this.selectedComment.postId}).then((function(){t.$refs.commentModal.show()})):null!=this.selectedComment.mediaId&&this.loadRelatedMedia({mediaId:this.selectedComment.mediaId}).then((function(){t.$refs.commentModal.show()}))},acceptReportedPost:function(){var e=this;this.toggleSpinner({promises:[this.removeReportedPost({id:this.selectedPost.id,institutionCode:this.institutionCode})]}).then((function(){e.loadNotifications({activeInstitutionCodes:[e.selectedInstitution.institutionCode]}),e.$refs.reportedPostsResult.refresh()})),this.$refs.deletePostModal.hide(),this.$refs.postModal.hide()},acceptReportedMedia:function(){var e=this;this.toggleSpinner({promises:[this.removeReportedMedia({id:this.selectedMedia.id,institutionCode:this.institutionCode})]}).then((function(){e.$refs.reportedMediaResult.refresh()})),this.$refs.deleteMediaModal.hide(),this.$refs.mediaModal.hide()},acceptReportedComment:function(){var e=this;this.toggleSpinner({promises:[this.removeReportedComment({id:this.selectedComment.id,institutionCode:this.institutionCode})]}).then((function(){e.$refs.reportedCommentsResult.refresh()}
1)),this.$refs.deleteCommentModal.hide(),this.$refs.commentModal.hide()}})},y=P,x=Object(N.a)(y,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"administration-main-content reported-content-container page-layout-padding",class:{group:e.group}},[n("h1",{class:{h1:!e.group}},[e._v("\n "+e._s(e.group?e.$getText("REPORTED_CONTENT_TITLE_GROUP"):e.$getText("REPORTED_CONTENT_TITLE"))+"\n ")]),e._v(" "),e.group?e._e():n("p",{staticClass:"headline-margin-bottom"},[e._v("\n "+e._s(e.$getText("REPORTED_CONTENT_DESCRIPTION"))+"\n ")]),e._v(" "),n("h2",[e._v(e._s(e.$getText("REPORTED_CONTENT_TITLE_POSTS")))]),e._v(" "),e.isProfileLoaded&&null!=e.paramInstitutions?n("aula-table",{ref:"reportedPostsResult",attrs:{"per-page":e.perPage,"current-page":1,fields:e.fields,"table-ref":"reportedPostsResult","initial-sort-by":"reportedTime","initial-sort-desc":!0,"empty-table-filtered-text":"MESSAGE_REPORTED_CONTENT_EMPTY_TABLE","empty-table-text":"MESSAGE_REPORTED_CONTENT_EMPTY_TABLE","show-pagination":!0,"prepare-params":e.preparePostParams,"prepare-items":e.preparePostItems,"server-side":!0,"server-side-url":"?method=posts.getReportedPosts","is-http-post":!0},on:{acceptReportedPostConfirm:e.acceptReportedPostConfirm,rejectReportedPostConfirm:e.rejectReportedPostConfirm,previewPost:e.previewPost}}):e._e(),e._v(" "),n("div",{staticClass:"clearfix"}),e._v(" "),n("h2",{staticClass:"mt-5"},[e._v("\n "+e._s(e.$getText("REPORTED_CONTENT_TITLE_MEDIA"))+"\n ")]),e._v(" "),e.isProfileLoaded&&null!=e.paramInstitutions?n("aula-table",{ref:"reportedMediaResult",attrs:{"per-page":e.perPage,"current-page":1,responsive:e.isMobile,fields:e.fields,"table-ref":"reportedMediaResult","initial-sort-by":"reportedTime","initial-sort-desc":!0,"empty-table-filtered-text":"MESSAGE_REPORTED_CONTENT_EMPTY_TABLE","empty-table-text":"MESSAGE_REPORTED_CONTENT_EMPTY_TABLE","show-pagination":!0,"prepare-params":e.prepareMediaParams,"prepare-items":e.prepareMediaItems,"server-side":!0,"server-side-url":"?method=gallery.getReportedMedia","is-http-post":!0},on:{acceptReportedMediaConfirm:e.acceptReportedMediaConfirm,rejectReportedMediaConfirm:e.rejectReportedMediaConfirm,previewMedia:e.previewMedia}}):e._e(),e._v(" "),n("div",{staticClass:"clearfix"}),e._v(" "),n("h2",{staticClass:"mt-5"},[e._v("\n "+e._s(e.$getText("REPORTED_CONTENT_TITLE_COMMENTS"))+"\n ")]),e._v(" "),e.isProfileLoaded&&null!=e.paramInstitutions?n("aula-table",{ref:"reportedCommentsResult",attrs:{"per-page":e.perPage,"current-page":1,responsive:e.isMobile,fields:e.fields,"table-ref":"reportedCommentsResult","initial-sort-by":"reportedTime","initial-sort-desc":!0,"empty-table-filtered-text":"MESSAGE_REPORTED_CONTENT_EMPTY_TABLE","empty-table-text":"MESSAGE_REPORTED_CONTENT_EMPTY_TABLE","show-pagination":!0,"prepare-params":e.prepareCommentParams,"prepare-items":e.prepareCommentItems,"server-side":!0,"server-side-url":"?method=comments.getReportedComments","is-http-post":!0},on:{acceptReportedCommentConfirm:e.acceptReportedCommentConfirm,rejectReportedCommentConfirm:e.rejectReportedCommentConfirm,previewComment:e.previewComment}}):e._e(),e._v(" "),n("aula-modal",{ref:"commentModal",attrs:{"header-text":"REPORTED_CONTENT_POST_BOX_TITLE","cancel-text":"REPORTED_CONTENT_FIELDS_REJECT","ok-text":"REPORTED_CONTENT_FIELDS_ACCEPT","css-class":"aula-modal-lg"},on:{cancelClicked:function(t){return e.rejectReportedCommentConfirm()},okClicked:function(t){return e.acceptReportedCommentConfirm()}}},[null!=e.selectedComment?n("div",{staticClass:"preview-container"},[null!=e.selectedComment.postId?n("Post",{attrs:{post:e.relatedPost,"preview-mode":"","includes-reported-comments":"","highlighted-comment-id":e.selectedCommentId}}):e._e(),e._v(" "),e.showPostMediaDetail&&e.relatedPostMedia.length>0?n("media-detail",{attrs:{album:e.relatedPostMedia,parent:e.parentTypes.ADMINISTRATION},on:{closeMediaDetail:e.toggleMediaDetailPopup}}):e.selectedComment.mediaId?n("div",{staticClass:"preview-container"},[n("reported-content-media-preview",{attrs:{media:e.relatedMedia}}),e._v(" "),n("comments",{attrs:{"parent-id":e.selectedComment.mediaId,"show-reported-comments":!0,"highlight-comment":e.highlightComment,"parent-type":e.commentTypes.MEDIA,"comment-count":e.relatedMedia.commentCount}}
1)],1):e._e()],1):e._e()]),e._v(" "),n("aula-modal",{ref:"postModal",attrs:{"header-text":"REPORTED_CONTENT_POST_BOX_TITLE","cancel-text":"REPORTED_CONTENT_FIELDS_REJECT","ok-text":"REPORTED_CONTENT_FIELDS_ACCEPT","css-class":"aula-modal-lg"},on:{cancelClicked:function(t){e.isMobile?e.$refs.postModal.hide():e.rejectReportedPostConfirm()},okClicked:function(t){return e.acceptReportedPostConfirm()}}},[e.selectedPost?n("div",{staticClass:"preview-container"},[n("Post",{key:e.selectedPost.id,attrs:{post:e.selectedPost,"highlighted-comment-id":e.selectedCommentId,"preview-mode":"","includes-reported-comments":""}}),e._v(" "),e.showPostMediaDetail&&e.relatedPostMedia.length>0?n("media-detail",{attrs:{album:e.relatedPostMedia,parent:e.parentTypes.ADMINISTRATION},on:{closeMediaDetail:e.toggleMediaDetailPopup}}):e._e()],1):e._e()]),e._v(" "),n("aula-modal",{ref:"mediaModal",attrs:{"header-text":"REPORTED_CONTENT_POST_BOX_TITLE","cancel-text":"REPORTED_CONTENT_FIELDS_REJECT","ok-text":"REPORTED_CONTENT_FIELDS_ACCEPT"},on:{cancelClicked:function(t){e.isMobile?e.$refs.mediaModal.hide():e.rejectReportedMediaConfirm()},okClicked:function(t){return e.acceptReportedMediaConfirm()}}},[e.selectedMedia?n("div",{staticClass:"preview-container"},[n("reported-content-media-preview",{attrs:{media:e.selectedMedia}})],1):e._e()]),e._v(" "),n("aula-modal",{ref:"deletePostModal",attrs:{"ok-text":"BUTTON_YES"},on:{cancelClicked:function(t){e.$refs.deletePostModal.hide(),e.$refs.postModal.hide(),e.selectedPost=null},okClicked:e.acceptReportedPost}},[e._v("\n "+e._s(e.$getText("REPORTED_CONTENT_DELETE_CONFIRMATION"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"deleteMediaModal",attrs:{"ok-text":"BUTTON_YES"},on:{cancelClicked:function(t){e.$refs.deleteMediaModal.hide(),e.$refs.postModal.hide(),e.$refs.mediaModal.hide(),e.selectedMedia=null},okClicked:e.acceptReportedMedia}},[e._v("\n "+e._s(e.$getText("REPORTED_CONTENT_DELETE_CONFIRMATION"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"deleteCommentModal",attrs:{"ok-text":"BUTTON_YES"},on:{cancelClicked:function(t){e.$refs.deleteCommentModal.hide(),e.$refs.commentModal.hide(),e.selectedComment=null},okClicked:e.acceptReportedComment}},[e._v("\n "+e._s(e.$getText("REPORTED_CONTENT_DELETE_CONFIRMATION"))+"\n ")])],1)}),[],!1,null,"67bf1676",null);t.a=x.exports},430:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(4);function o(){const e=Object(i.getCurrentInstance)();if(!e)throw new Error("useToast must be called within setup()");const t=e.proxy.$bvToast,n=(e,n={})=>{var i,o,r;t.toast(e,Object.assign({title:null!==(i=n.title)&&void 0!==i?i:"",variant:null!==(o=n.variant)&&void 0!==o?o:"primary",autoHideDelay:null!==(r=n.autoHideDelay)&&void 0!==r?r:3e3,solid:!0},n))};return{show:n,showSuccess:(e,t="")=>{n(e,{title:t,variant:"primary"})},showError:(e,t="")=>{n(e,{title:t,variant:"error"})}}}},436:function(e,t,n){"use strict";n.r(t),n.d(t,"DOCUMENTS_TYPES_PAGE_TITLE",(function(){return i})),n.d(t,"DOCUMENTS_TYPES_SECURE_FILES_TITLE",(function(){return o})),n.d(t,"DOCUMENTS_TYPES_SECURE_FILES_TEXT_GUARDIAN",(function(){return r})),n.d(t,"DOCUMENTS_TYPES_SECURE_FILES_TEXT_EMPLOYEE",(function(){return s})),n.d(t,"DOCUMENTS_TYPES_SECURE_FILES_LINK",(function(){return a})),n.d(t,"DOCUMENTS_TYPES_COMMON_FILES_TITLE",(function(){return c})),n.d(t,"DOCUMENTS_TYPES_COMMON_FILES_TEXT",(function(){return l})),n.d(t,"DOCUMENTS_TYPES_COMMON_FILES_LINK",(function(){return u})),n.d(t,"DOCUMENTS_TYPES_GOOGLE_FILES_TEXT",(function(){return d})),n.d(t,"DOCUMENTS_TYPES_ONEDRIVE_FILES_TEXT",(function(){return E})),n.d(t,"DOCUMENTS_TYPES_GOOGLE_FILES_LINK",(function(){return _})),n.d(t,"DOCUMENTS_TYPES_ONEDRIVE_FILES_LINK",(function(){return m})),n.d(t,"DOCUMENTS_TYPES_CHOOSE_INSTITUTION",(function(){return h})),n.d(t,"DOCUMENTS_CREATED_SUCCESSFULLY",(function(){return p})),n.d(t,"DOCUMENTS_UPDATED_SUCCESSFULLY",(function(){return f})),n.d(t,"DOCUMENTS_COMMON_FILE_EMPTY_TABLE",(function(){return T})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_SORT",(function(){return D})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_FOLDER",(function(){return C})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_DOCUMENT",(function(){return g})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_DESCRIPTION_TEXT",(function(){return S})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_UPDATEDAT",(function(){return O})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_GROUP",(function(){return v})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_DESCRIPTION",(function(){return R})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_TITLE",(function(){return N})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_CATEGORY",(function(){return I})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_ASSOCIATION",(function(){return A})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_EDITED",(function(){return M})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_DELETED",(function(){return b})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_CREATED_DATE",(function(){return L})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_CREATED",(function(){return k})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_INSTITUTION",(function(){return P})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_TABLE_IMPORTED_FILE",(function(){return y}
1)),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_EDIT",(function(){return x})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_MOVE",(function(){return U})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_SHARE",(function(){return w})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_EXPORT",(function(){return $})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_LOCKED_WARNING",(function(){return F})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_REVISION",(function(){return W})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_COPY",(function(){return H})),n.d(t,"DOCUMENTS_SHARED_DELETE_MENU",(function(){return G})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_EXPORT_PDF",(function(){return j})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_GUARDIAN_WARNING",(function(){return V})),n.d(t,"DOCUMENTS_SHARED_LOCK_DOCUMENT",(function(){return B})),n.d(t,"DOCUMENTS_SHARED_UNLOCK_DOCUMENT",(function(){return J})),n.d(t,"DOCUMENTS_SHARED_DOCUMENT_IS_LOCKED",(function(){return Y})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_DOWNLOAD",(function(){return K})),n.d(t,"DOCUMENTS_SHARED_OVERVIEW_MENU_DOWNLOAD_INTERNAL",(function(){return z})),n.d(t,"DOCUMENTS_SHARED_CREATE_DOCUMENT",(function(){return X})),n.d(t,"DOCUMENTS_SHARED_CREATE_DOCUMENT_NOTE",(function(){return q})),n.d(t,"DOCUMENTS_SHARED_CREATE_FOLDER_LINK",(function(){return Z})),n.d(t,"DOCUMENTS_SHARED_IMPORT_FILE_LINK",(function(){return Q})),n.d(t,"DOCUMENTS_SHARED_WITH_GUARDIAN_MARK",(function(){return ee})),n.d(t,"DOCUMENTS_EDIT_FOLDER_TITLE",(function(){return te})),n.d(t,"DOCUMENTS_LOAD_MORE",(function(){return ne})),n.d(t,"DOCUMENTS_LOAD_ALL",(function(){return ie})),n.d(t,"DOCUMENTS_NEW_TITLE",(function(){return oe})),n.d(t,"DOCUMENTS_NEW_NOTE_TITLE",(function(){return re})),n.d(t,"DOCUMENTS_EDIT_TITLE",(function(){return se})),n.d(t,"DOCUMENTS_REVISION_TITLE",(function(){return ae})),n.d(t,"DOCUMENTS_NEW_LABEL_TITLE",(function(){return ce})),n.d(t,"DOCUMENTS_NEW_LABEL_CATEGORIES_AND_TEMPLATES",(function(){return le})),n.d(t,"DOCUMENTS_NEW_LABEL_CATEGORY",(function(){return ue})),n.d(t,"DOCUMENTS_NEW_LABEL_GRUPPE",(function(){return de})),n.d(t,"DOCUMENTS_NEW_LABEL_ASSOCIATION",(function(){return Ee})),n.d(t,"DOCUMENTS_ASSOCIATION_CHILDREN_PLACEHOLDER",(function(){return _e})),n.d(t,"DOCUMENTS_NEW_LABEL_TEXT",(function(){return me})),n.d(t,"DOCUMENTS_NEW_BUTTON_SAVE",(function(){return he})),n.d(t,"DOCUMENTS_NEW_BUTTON_CANCEL",(function(){return pe})),n.d(t,"DOCUMENTS_EMPLOYEES",(function(){return fe})),n.d(t,"DOCUMENTS_ALL_USERS",(function(){return Te})),n.d(t,"DOCUMENTS_HISTORY_TITLE",(function(){return De})),n.d(t,"DOCUMENTS_HISTORY_EDITION",(function(){return Ce})),n.d(t,"DOCUMENTS_HISTORY_USER",(function(){return ge})),n.d(t,"DOCUMENTS_HISTORY_CHANGE_TYPE",(function(){return Se})),n.d(t,"DOCUMENTS_HISTORY_VERSION",(function(){return Oe})),n.d(t,"DOCUMENTS_HISTORY_DATE",(function(){return ve})),n.d(t,"DOCUMENTS_MOVE_FOLDER_MODAL_MOVE",(function(){return Re})),n.d(t,"DOCUMENTS_CREATE_FOLDER_MODAL_CREATE",(function(){return Ne})),n.d(t,"DOCUMENTS_CREATE_FOLDER_MODAL_EDIT",(function(){return Ie})),n.d(t,"DOCUMENTS_SECURE_OVERRIDE_TEXT_1",(function(){return Ae})),n.d(t,"DOCUMENTS_SECURE_OVERRIDE_TEXT_2",(function(){return Me})),n.d(t,"DOCUMENTS_SECURE_NO_DOCUMENTS",(function(){return be})),n.d(t,"DOCUMENTS_SECURE_NO_DOCUMENTS_GUARDIAN",(function(){return Le})),n.d(t,"DOCUMENTS_IMPORT_FILE_TITLE",(function(){return ke})),n.d(t,"DOCUMENTS_IMPORT_FILE_TITLE_EDIT",(function(){return Pe})),n.d(t,"DOCUMENTS_IMPORT_FILE_IN_READ_ONLY_MODE_TITLE",(function(){return ye})),n.d(t,"DOCUMENTS_FILE_IN_READ_ONLY_MODE_TITLE",(function(){return xe})),n.d(t,"DOCUMENTS_IMPORT_FILE_LABEL_TITLE",(function(){return Ue})),n.d(t,"DOCUMENTS_IMPORT_FILE_LABEL_DOCUMENT_CATEGORY",(function(){return we})),n.d(t,"DOCUMENTS_IMPORT_FILE_LABEL_DOCUMENT_ASSOCIATION",(function(){return $e})),n.d(t,"DOCUMENTS_IMPORT_FILE_LABEL_DOCUMENT_SHARED_WITH",(function(){return Fe})),n.d(t,"DOCUMENTS_IMPORT_FILE_LABEL_DOCUMENT_FILE",(function(){return We})),n.d(t,"DOCUMENTS_IMPORT_FILE_BUTTON_OK",(function(){return He})),n.d(t,"DOCUMENTS_IMPORT_FILE_LABEL_UPLOAD",(function(){return Ge})),n.d(t,"DOCUMENTS_SHARE_FOLDER_MODAL_CAN_EDIT",(function(){return je})),n.d(t,"DOCUMENTS_SHARE_FOLDER_MODAL_SAVE",(function(){return Ve})),n.d(t,"DOCUMENTS_SHARE_FOLDER_MODAL_USERPICKER",(function(){return Be})),n.d(t,"DOCUMENTS_SHARE_FOLDER_MODAL_GROUP_USERPICKER",(function(){return Je})),n.d(t,"DOCUMENTS_SHARE_AUTO_SHARING",(function(){return Ye})),n.d(t,"DOCUMENTS_SHARE_SHARING",(function(){return Ke})),n.d(t,"DOCUMENTS_IMPORT_FILE_DISCARD_MODAL_BODY",(function(){return ze})),n.d(t,"DOCUMENTS_IMPORT_FILE_DISCARD_MODAL_BODY_1",(function(){return Xe})),n.d(t,"DOCUMENTS_IMPORT_FILE_DISCARD_MODAL_BODY_2",(function(){return qe})),n.d(t,"DOCUMENTS_IMPORT_FILE_DISCARD_MODAL_BUTTON_OK",(function(){return Ze})),n.d(t,"DOCUMENTS_BLOCK_COMMUNICATION_BODY_1",(function(){return Qe})),n.d(t,"DOCUMENTS_BLOCK_COMMUNICATION_BODY_2",(function(){return et})),n.d(t,"DOCUMENTS_ALERT_ASSOCIATION_REQUIRED",(function(){return tt})),n.d(t,"DOCUMENTS_ALERT_CHILDREN_FROM_DIFFERENT_INSTITUTIONS",(function(){return nt})),n.d(t,"DOCUMENTS_ALERT_GROUP_NOT_IN_INSTITUTION",(function(){return it})),n.d(t,"DOCUMENTS_ALERT_FILE_REQUIRED",(function(){return ot})),n.d(t,"DOCUMENTS_ALERT_TITLE_REQUIRED",(function(){return rt})),n.d(t,"DOCUMENTS_ALERT_TEMPLATE_REQUIRED",(function(){return st})),n.d(t,"DOCUMENTS_ALERT_DOCUMENT_CATEGORY_REQUIRED",(function(){return at})),n.d(t,"DOCUMENTS_ALERT_LOCK_DOCUMENT_1",(function(){return ct})),n.d(t,"DOCUMENTS_ALERT_LOCK_DOCUMENT_2",(function(){return lt})),n.d(t,"DOCUMENTS_ALERT_DOWNLOAD_SENSITIVE_FILE_1",(function(){return ut})),n.d(t,"DOCUMENTS_ALERT_DOWNLOAD_SENSITIVE_FILE_2",(function(){return dt})),n.d(t,"DOCUMENTS_ALERT_REMOVE_OWN_SHARING",(function(){return Et})),n.d(t,"DOCUMENTS_ALERT_SHARE_WITH_DIFFERENT_INSTITUTION",(function(){return _t})),n.d(t,"DOCUMENTS_ALERT_EXPORT_PDF_1",(function(){return mt})),n.d(t,"DOCUMENTS_ALERT_EXPORT_PDF_2",(function(){return ht})),n.d(t,"DOCUMENTS_ALERT_LOCKED_DOCUMENT_SELECTED",(function(){return pt})),n.d(t,"DOCUMENTS_ALERT_NO_EXPORT_RIGHT_DOCUMENT_SELECTED",(function(){return ft})),n.d(t,"DOCUMENTS_ALERT_EXCEED_MAX_CHILDREN",(function(){return Tt})),n.d(t,"DOCUMENTS_ALERT_UNSHAREABLE_GUARDIANS",(function(){return Dt})),n.d(t,"DOCUMENTS_ALERT_UNSHAREABLE_GUARDIANS_2",(function(){return Ct})),n.d(t,"DOCUMENTS_ALERT_CHANGING_TEMPLATE",(function(){return gt})),n.d(t,"DOCUMENTS_ALERT_CHANGING_TEMPLATE_QUESTION",(function(){return St})),n.d(t,"NO_PERMISSION_TO_VIEW_SECURE_DOCUMENT",(function(){return Ot})),n.d(t,"NO_PERMISSION_TO_VIEW_SECURE_SINGLE_DOCUMENT",(function(){return vt})),n.d(t,"DOCUMENTS_TOASTR_COPY_LINK",(function(){return Rt}
1)),n.d(t,"DOCUMENTS_LOCK_SUCCESS",(function(){return Nt})),n.d(t,"DOCUMENTS_UNLOCK_SUCCESS",(function(){return It})),n.d(t,"SECURE_DOCUMENT_ADDED_WAIT",(function(){return At})),n.d(t,"COMMON_FILE_DATAPOLICY",(function(){return Mt})),n.d(t,"API_SUCCESS_DELETE_DOCUMENT",(function(){return bt})),n.d(t,"API_ERROR_DELETE_DOCUMENT",(function(){return Lt})),n.d(t,"API_SUCCESS_RESTORE_DELETED_DOCUMENT",(function(){return kt})),n.d(t,"API_ERROR_RESTORE_DELETED_DOCUMENT",(function(){return Pt})),n.d(t,"DELETE_DOCUMENT_CONFIRM",(function(){return yt})),n.d(t,"DELETE_DOCUMENT_CONFIRM_2",(function(){return xt})),n.d(t,"DELETE_DOCUMENT_CONFIRM_3",(function(){return Ut})),n.d(t,"DOCUMENT_REMOVE_IMPLICIT_SHARING_WARNING_1",(function(){return wt})),n.d(t,"DOCUMENT_REMOVE_IMPLICIT_SHARING_WARNING_2",(function(){return $t})),n.d(t,"DELETED_SECURE_DOCUMENTS_HEADER",(function(){return Ft})),n.d(t,"DELETED_SECURE_DOCUMENT_RESTORE_WARNING_1",(function(){return Wt})),n.d(t,"DELETED_SECURE_DOCUMENT_RESTORE_WARNING_2",(function(){return Ht})),n.d(t,"DELETED_SECURE_DOCUMENTS_TABLE_DELETED_AT",(function(){return Gt}));var i="Filer & dokumenter",o="Sikre filer",r="Se de sikre filer, som er delt med dig",s="Del og gem dine sikre filer, som kræver log in på højere sikkerhedsniveau",a="Gå til Sikre filer",c="Fælles filer",l="Se institutionens fælles filer",u="Gå til Fælles filer",d="Del og gem dine filer i Google Drev",E="Del og gem dine filer i OneDrive",_="Gå til Google Drev",m="Gå til OneDrive",h="Vælg institution",p="Filen blev oprettet",f="Filen blev opdateret",T="Der er endnu ikke oprette nogle fælles filer",D="Sorter",C="MAPPE",g="DOK",S="Filer, du ikke kan vedhæfte er grået ud. Du kan kun vedhæfte filer du har redigeringsrettighed til og som kan deles med de valgte modtagere.",O="Redigeret",v="Gruppe",R="Beskrivelse",N="Titel",I="Kategori",A="Barn",M="Redigeret",b="Slettet",L="Oprettelsesdato",k="Oprettet af",P="Institution",y="Importeret fil",x="Rediger",U="Flyt til mappe",w="Delt med",$="Eksport",F="FEJL",W="Se revisionshistorik",H="Kopier link",G="Slet fil",j="Eksporter PDF",V="Her kan du se sikre filer delt med dig som omhandler dine børn",B="Lås fil",J="Lås op for filen",Y="Filen er låst",K="Download",z="Vis fil",X="Opret dokument",q="Opret note",Z="Opret mappe",Q="Importer fil",ee="Denne fil er delt med forældre",te="Rediger mappe",ne="Hent flere",ie="Vis alle",oe="OPRET SIKKER FIL",re="Opret note",se="REDIGER SIKKER FIL",ae="VERSION HISTORIK",ce="Titel",le="Kategori og skabelon",ue="Kategori",de="Omhandler",Ee="Barn",_e="Vælg børn",me="Tekst",he="Gem",pe="Annuller",fe="Medarbejdere",Te="Alle brugere",De="Første klasse",Ce="Dato",ge="Bruger",Se="Handling",Oe="Version",ve="Dato",Re="FLYT",Ne="OPRET",Ie="RET",Ae="Filen indeholder ændringer, der er gemt efter du startede med at redigere. Hvis du fortsætter bliver disse ændringer overskrevet.",Me="Er du sikker på, at du vil fortsætte?",be="Der er ingen filer, der matcher din
1søgning",Le="Du har ikke adgang til nogen sikre filer",ke="IMPORTER FIL",Pe="REDIGER FIL",ye="VIS IMPORTER FIL",xe="VIS SIKKER FIL",Ue="Angiv titel",we="Vælg kategori",$e="Vælg association/elev",Fe="Del med",We="Vedhæft fil",He="Opret",Ge="Vedhæft fil",je="Kan redigere",Ve="GEM",Be="Tilføj bruger eller gruppe",Je="Tilføj gruppe",Ye="Automatiske delinger",Ke="Delinger",ze='Du lukker nu filen. Dine seneste ændringer gemmes muligvis ikke. Klik på "Annuller" for at gemme alle ændringer.',Xe="Dine ændringer vil ikke blive gemt.",qe="Er du sikker på, du vil forlade siden?",Ze="LUK",Qe="Du kan ikke uploade mediefil. Du er blevet blokeret fra at kommunikere i Aula.",et="Kontakt institutionens administrator for mere information",tt="Du skal vælge et barn",nt="Det er ikke muligt at vælge børn fra forskellige institutioner og tilknytte dem til den samme sikre fil.",it="Den valgte gruppe er ikke tilknyttet din institution. Du kan derfor ikke vælge et barn.",ot="Der skal være tilføjet en fil",rt="Du skal angive en titel",st="Du mangler at angive kategori og skabelon",at="Du mangler at angive kategori.",ct="Du er ved at låse filen {documentName}. Det betyder, at det ikke kan redigeres yderligere.",lt="Er du sikker på, at du ønsker at fortsætte?",ut="Du er ved at downloade en fil, der kan indeholde følsomme personoplysninger.",dt="Er du sikker på, at du vil fortsætte?",Et="Du er ved at fjerne delingen med dig selv. Hvis du fortsætter vil du ikke længere kunne se eller redigere filen. Er du sikker på, at du vil fortsætte?",_t="Brugeren er fra en anden forvaltningsmyndighed",mt="Vær opmærksom på, at du er ved at eksportere en eller flere sikre filer, der kan indeholde følsomme personoplysninger.",ht="Husk at slette de downloadede filer eller sikre dig, at de ligger et sikkert sted, efter de er hentet.",pt="Følgende filer kan ikke deles, da de er låst:",ft="Følgende filer kan ikke eksporteres:",Tt="Du kan ikke oprette filer, der omhandler flere end 50 børn. For at oprette filen skal du fjerne et eller flere omhandlende børn.",Dt="Filen kunne ikke gemmes, fordi der er valgt ugyldige delinger. Filen kan ikke deles med:",Ct="For at gemme filen skal du fjerne delingerne og prøve igen.",gt="Dine ændringer bliver ikke gemt, hvis du vælger en ny dokumentskabelon.",St="Er du sikker på, at du vil vælge en ny dokumentskabelon?",Ot="Du har ikke rettigheder til at tilgå Sikre filer",vt="Filen er ikke længere tilgængelig",Rt="Linket er kopieret",Nt="Filen blev låst",It="Filen blev låst op",At="Filen er vedhæftet beskedtråden. Der kan gå op til et minut, før filen er færdigbehandlet og kan åbnes",Mt="(Persondatapolitik)",bt="Filen blev slettet",Lt="Noget gik galt: Kunne ikke slette filen",kt="Filen blev gendannet.",Pt="Noget gik galt: Kunne ikke gendanne filen",yt="Du er ved at slette den sikre fil",xt="Den sikre fil slettes for alle brugere, der har adgang til den.",Ut="Er du sikker på, at du vil slette den sikre fil?",wt="Du har fjernet en eller flere automatiske delinger. Hvis du fortsætter, kan de fjernede personer ikke længere tilgå dokumentet, med mindre de tilføjes under Delinger.",$t="Er du sikker på at du vil forsætte?",Ft="Slettede sikre filer",Wt="Du er ved at gendanne fil",Ht="Er du sikker, du vil fortsætte?",Gt="Slettet"},439:function(e,t,n){"use strict";n.r(t),n.d(t,"CONSENT_ANSWER_TRUE",(function(){return i})),n.d(t,"CONSENT_ANSWER_ACCEPTED",(function(){return o})),n.d(t,"CONSENT_ANSWER_DECLINED",(function(){return r})),n.d(t,"CONSENT_ANSWER_YES_FOR",(function(){return s})),n.d(t,"CONSENT_ANSWER_INSTITUTION",(function(){return a})),n.d(t,"CONSENT_ANSWER_CLASS_OR_STUE",(function(){return c})),n.d(t,"CONSENT_ANSWER_YEAR_AND_SFO",(function(){return l})),n.d(t,"CONSENT_ANSWER_NOT_ANSWERED",(function(){return u})),n.d(t,"CONSENT_ANSWER_NOT_AT_ALL",(function(){return d})),n.d(t,"CONSENT_ANSWER_FALSE",(function(){return E})),n.d(t,"ADDITIONAL_ANSWER_YES",(function(){return _})),n.d(t,"ADDITIONAL_ANSWER_NO",(function(){return m})),n.d(t,"ADDITIONAL_ANSWER_TRUE",(function(){return h})),n.d(t,"ADDITIONAL_ANSWER_FALSE",(function(){return p})),n.d(t,"NO_CONSENT_TO_SHOW",(function(){return f})),n.d(t,"NO_ADDITIONAL_CONSENT_TO_SHOW",(function(){return T})),n.d(t,"CONSENT_LABEL",(function(){return D})),n.d(t,"ARIA_LABEL_CHOOSE_ALL_YES",(function(){return C})),n.d(t,"ARIA_LABEL_CHOOSE_ALL_NO",(function(){return g})),n.d(t,"ARIA_LABEL_CHECK_YES",(function(){return S})),n.d(t,"ARIA_LABEL_CHECK_NO",(function(){return O})),n.d(t,"ADDITIONAL_DATA_MASTER_DATA_LABEL",(function(){return v})),n.d(t,"ADDITIONAL_LABEL",(function(){return R})),n.d(t,"ADDITIONAL_INFO_LABEL",(function(){return N})),n.d(t,"ADDITIONAL_DATA_VIEW_REVISION_HITORY",(function(){return I})),n.d(t,"ADDITIONAL_DATA_EDITED_BY",(function(){return A})),n.d(t,"ADDITIONAL_DATA_EDITED_AT",(function(){return M})),n.d(t,"CONTACT_INFO",(function(){return b})),n.d(t,"CONTACT_INFORMATION",(function(){return L})),n.d(t,"CONTACT_SHARED_INFORMATION",(function(){return k})),n.d(t,"CONTACTS_LABEL",(function(){return P})),n.d(t,"CONTACTS_TITLE",(function(){return y}
1)),n.d(t,"APP_SETTINGS_LABEL",(function(){return x})),n.d(t,"APP_SETTINGS_SUBLABEL",(function(){return U})),n.d(t,"GENERAL_CONDITIONS_LABEL",(function(){return w})),n.d(t,"SHARING_CONSENT_CLASS_OR_DAYCARE_ROOM",(function(){return $})),n.d(t,"SHARING_CONSENT_YEAR_AND_SFO",(function(){return F})),n.d(t,"SHARING_CONSENT_INSTITUTION",(function(){return W})),n.d(t,"COMPLEX_CONSENT_CLASS_OR_STUE",(function(){return H})),n.d(t,"COMPLEX_CONSENT_YEAR_AND_SFO",(function(){return G})),n.d(t,"COMPLEX_CONSENT_INSTITUTION",(function(){return j})),n.d(t,"CONSENT_TIME_SPAN",(function(){return V})),n.d(t,"CONSENT_FROM",(function(){return B})),n.d(t,"CONSENT_TO",(function(){return J})),n.d(t,"CONSENT_CANCEL_MODAL_TEXT1",(function(){return Y})),n.d(t,"CONSENT_CANCEL_MODAL_TEXT2",(function(){return K})),n.d(t,"CONSENT_INVALID_MODAL_TEXT1",(function(){return z})),n.d(t,"CONSENT_INVALID_MODAL_TEXT2",(function(){return X})),n.d(t,"ADDITIONAL_DATA_SAVED_SUCCESS",(function(){return q})),n.d(t,"CONSENT_WARNING_DECLINED_2",(function(){return Z})),n.d(t,"HELP_TEXT_TITLE",(function(){return Q})),n.d(t,"CONSENT_HELPTEXT_2",(function(){return ee})),n.d(t,"CONSENT_HELPTEXT_3",(function(){return te})),n.d(t,"CONSENT_HELPTEXT_11",(function(){return ne})),n.d(t,"CONSENT_HELPTEXT_32",(function(){return ie}));var i="Ja",o="Ja",r="Nej",s="Ja for",a="Institution",c="Klasse eller stue",l="Ã
rgang",u="Ikke besvaret",d="Nej",E="Nej",_="Ja",m="Nej",h="Ja",p="Nej",f="Samtykker er ikke besvaret",T="Der er ingen stamkortoplysninger at vise",D="Deling af kontaktoplysninger",C="Vælg ja for alle for {profileName} pÃ¥ {institutionName}",g="Vælg nej for alle for {profileName} pÃ¥ {institutionName}",S="SpørgsmÃ¥l: {question}. Vælg ja for {profileName} pÃ¥ {institutionName}",O="SpørgsmÃ¥l: {question}. Vælg nej for {profileName} pÃ¥ {institutionName}",v="Supplerende stamdata",R="Stamkort",N="Stamkortoplysninger",I="SE REVISIONHISTORIK",A="Redigeret af",M="d.",b="Kontaktoplysninger",L="Oplysninger",k="Deling af oplysninger",P="Kontakter",y="Kontaktoplysninger",x="App historik",U="Her kan du se en oversigt over hvornÃ¥r og fra hvilken enhed, du er logget pÃ¥ appen",w="Generelle betingelser",$="Klasse eller stue",F="Ã
rgang",W="Institution",H="Klasse eller stue",G="Ã
rgang",j="Institution",V="Perioden",B="fra",J="til",Y="Ãndringer vil ikke blive gemt.",K="Er du sikker pÃ¥, du vil forlade siden?",z="Stamdata kan ikke gemmes fordi der mangler at blive udfyldt nogle oplysninger",X="Udfyld felterne markeret med rødt og tryk pÃ¥ gem igen",q="Dine ændringer er gemt",Z="Er du sikker pÃ¥, du vil fortsætte?",Q="Info",ee="<p><strong>Hvis du er forælder:</strong></p>\n<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>\n<p><strong>Hvis du svarer på vegne af dine børn:</strong></p>\n<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>\n<p><strong>Hvis du er barn og gammel nok til at give dit eget samtykke:</strong></p>\n<p><strong>Bemærk! </strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>",te="<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>",ne="<p><strong>Hvis du svarer på vegne af dine børn:</strong></p>\n<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>\n<p><strong>Hvis du er barn og gammel nok til at give dit eget samtykke:</strong></p>\n<p><strong>Bemærk! </strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>",ie="<p><strong>Hvis du er forælder:</strong></p>\n<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>\n<p><strong>Hvis du svarer på vegne af dine børn:</strong></p>\n<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>\n<p><strong>Hvis du er barn og gammel nok til at give dit eget samtykke:</strong></p>\n<p><strong>Bemærk!</strong></p>\n<p>Du kan altid ændre eller trække dit samtykke tilbage under menupunktet Min profil.</p>"},440:function(e,t,n){"use strict";n.r(t),n.d(t,"COMMENTS_CHOOSE_INSTITUTION",(function(){return i})),n.d(t,"COMMENTS_COMMENT_IS_DELETED",(function(){return o}
1)),n.d(t,"COMMENTS_COMMENT_IS_UPDATED",(function(){return r})),n.d(t,"COMMENTS_COMMENT_IS_REPORTED",(function(){return s})),n.d(t,"COMMENTS_COMMENT_DELETE",(function(){return a})),n.d(t,"COMMENTS_COMMENT_REPORT",(function(){return c})),n.d(t,"COMMENTS_COMMENT_EDIT",(function(){return l})),n.d(t,"COMMENTS_CONFIRM_DELETE",(function(){return u})),n.d(t,"COMMENTS_CONFIRM_DELETE_2",(function(){return d})),n.d(t,"COMMENTS_CONFIRM_CANCEL_COMMENT",(function(){return E})),n.d(t,"COMMENTS_CONFIRM_CANCEL_COMMENT_2",(function(){return _})),n.d(t,"COMMENTS_COMMENT",(function(){return m})),n.d(t,"COMMENTS_COMMENTS",(function(){return h})),n.d(t,"COMMENTS_WRITE_COMMENT",(function(){return p})),n.d(t,"COMMENTS_REPLYING_TO_COMMENT",(function(){return f})),n.d(t,"COMMENTS_EDITING_COMMENT",(function(){return T})),n.d(t,"COMMENTS_WRITE_REPLY",(function(){return D})),n.d(t,"COMMENTS_SHOW_EARLIER_COMMENTS",(function(){return C})),n.d(t,"COMMENTS_SHOW_EARLIER_REPLYS",(function(){return g})),n.d(t,"COMMENTS_COMMENT_IS_EDITED",(function(){return S})),n.d(t,"ALL_USER_DATA_START_DATE_IS_AFTER_END_DATE",(function(){return O})),n.d(t,"ALL_USER_MISSING_START_DATE",(function(){return v})),n.d(t,"ALL_USER_MISSING_END_DATE",(function(){return R}));var i="Vælg institution du vil skrive kommentar fra",o="Kommentaren er slettet",r="Kommentaren er opdateret",s="Kommentaren er anmeldt",a="Slet",c="Anmeld",l="Rediger",u="Du er ved at slette kommentaren.",d="Er du sikker på, at du vil slette den?",E="Din kommentar vil ikke blive gemt.",_="Er du sikker på, at du vil fortsætte?",m="kommentar",h="kommentarer",p="Skriv kommentar",f="Du svarer på {name} kommentar",T="Rediger kommentar",D="Skriv svar",C="Vis tidligere kommentarer",g="Vis tidligere svar",S="Redigeret",O="Startdato skal være før slutdato",v="Du mangler at angive startdato",R="Du mangler at angive slutdato"},445:function(e,t,n){"use strict";var i=n(12),o=n.n(i),r=n(47),s=n.n(r),a=n(17),c=n.n(a),l=n(1),u=n.n(l),d=n(7),E=n.n(d),_=n(4),m=n(0),h=n(6);function p(e,t,n={}){const{baseTop:i=58}=n,o=Object(_.ref)(0),r=Object(_.ref)(0),s=Object(_.computed)((()=>i+o.value)),a=Object(_.computed)((()=>s.value+r.value-1));let c=null,l=null;return Object(_.watch)(e,(e=>{!function(e){if(c&&(c.disconnect(),c=null),!e)return void(o.value=0);const t=()=>{o.value=e.getBoundingClientRect().height};t(),c=new ResizeObserver(t),c.observe(e)}(e)}),{immediate:!0}),Object(_.watch)((()=>{var e;return null!==(e=null==t?void 0:t.value)&&void 0!==e?e:null}),(e=>{!function(e){if(l&&(l.disconnect(),l=null),!e)return void(r.value=0);const t=()=>{r.value=e.getBoundingClientRect().height};t(),l=new ResizeObserver(t),l.observe(e)}(null!=e?e:null)}),{immediate:!0}),Object(_.onBeforeUnmount)((()=>{null==c||c.disconnect(),null==l||l.disconnect()})),{filterContainerTop:s,tableHeaderTop:a,headerHeight:o,filterContainerHeight:r}}var f=n(455),T=n(57),D=n(88),C=n(10),g=n(24),S=n(14),O=n(30),v=n(161),R=n(54),N=n(8),I=n(149),A=n(215),M=n(174),b=n(170),L=n(56),k=n(201),P=n(255),y=n.n(P),x=n(423),U=n(132),w=n(133),$=n(32),F=n(20),W=n(15),H=n(156),G=n.n(H),j=n(93),V=n(94),B=n(74),J=n(95),Y=n(96),K=n(89),z=n(23),X=n(34),q=n(61),Z=n(43),Q=n(225),ee=n.n(Q);const te=Object(_.reactive)({}),ne=Object(_.reactive)({}),ie=e=>{Object(_.set)(te,e.id,{documentId:e.id,children:Object.fromEntries(e.associatedInstitutionProfiles.map((e=>[e.id,{childId:e.id,selected:!0,caseReference:null}])))})},oe=e=>{Object(_.del)(te,e)},re=(e,t,n)=>{var i;(null===(i=te[e])||void 0===i?void 0:i.children[t])&&(te[e].children[t].caseReference=n)},se=()=>{for(const e in te)Object(_.del)(te,e);for(const e in ne)Object(_.del)(ne,e)},ae=(e,t,n)=>{te[e]&&(te[e].children[t].selected=n)},ce=()=>{var e;ue();let t=!0;for(const n in te){const i=te[n];for(const o in i.children){const i=null===(e=te[n])||void 0===e?void 0:e.children[o];if(!i||!i.selected)continue;le(Number(n),Number(o))||(t=!1)}}return t},le=(e,t)=>{var n,i;ne[e]||Object(_.set)(ne,e,{});return""===(null!==(i=null===(n=te[e].children[t].caseReference)||void 0===n?void 0:n.trim())&&void 0!==i?i:null)?(Object(_.set)(ne[e],Number(t),"REQUIRED"),!1):(Object(_.set)(ne[e],Number(t),null),!0)},ue=()=>{for(const e in ne)for(const t in ne[e])Object(_.set)(ne[e],Number(t),null)},de=()=>{const e=Object.values(te).map((e=>({secureDocumentId:e.documentId,regardingChildren:Object.values(e.children).filter((e=>e.selected)).map((e=>({childId:e.childId,caseReference:e.caseReference})))})));return ee()(e,10).map((e=>({secureDocumentsWithRegardingChildren:e})))},Ee=e=>{const t=te[e];return t?Object.values(t.children).filter((e=>e.selected)).map((e=>
1e.childId)):[]},_e=()=>({selectedDocuments:te,caseNumberErrors:ne,addDocument:ie,updateCaseReference:re,removeDocument:oe,clearAll:se,toggleChild:ae,validateCaseReferences:ce,validateCaseReference:le,clearErrors:ue,prepareCreateEsdhExportJobRequests:de,getSelectedChildIds:Ee});var me=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},he=Object(_.defineComponent)({name:"DocumentEsdhExportChild",components:{Icon:F.a},props:{child:{type:Object,required:!0},document:{type:Object,required:!0}},setup(e,{emit:t}){const{proxy:n}=Object(_.getCurrentInstance)(),{selectedDocuments:i,caseNumberErrors:o,toggleChild:r,updateCaseReference:s,validateCaseReference:a}=_e(),c=Object(_.ref)(null),l=Object(_.ref)(!1),u=Object(_.computed)({get(){var t,n,o;return null!==(o=null===(n=null===(t=i[e.document.id])||void 0===t?void 0:t.children[e.child.id])||void 0===n?void 0:n.selected)&&void 0!==o&&o},set(t){r(e.document.id,e.child.id,t)}}),d=Object(_.computed)({get(){var t,n,o;return null!==(o=null===(n=null===(t=i[e.document.id])||void 0===t?void 0:t.children[e.child.id])||void 0===n?void 0:n.caseReference)&&void 0!==o?o:""},set(t){s(e.document.id,e.child.id,t)}}),E=Object(_.computed)((()=>{const t=i[e.document.id];if(!t)return!1;const n=Object.values(t.children).filter((e=>e.selected));return 1===n.length&&n[0].childId===e.child.id})),m=Object(_.computed)((()=>E.value?n.$t("document.one_child_selected_warning"):`${e.child.name} (${e.child.metadata})`));return Object(_.watch)(o,(n=>{var i;(null===(i=n[e.document.id])||void 0===i?void 0:i[e.child.id])&&t("error")})),{iconClassEnum:W.a,isSelected:u,caseReference:d,selectedDocuments:i,isExpanded:l,caseNumberErrors:o,isDisabled:E,tooltip:m,caseReferenceInputRef:c,expandCaseNumber:()=>me(this,void 0,void 0,(function*(){l.value=!0,d.value="",yield Object(_.nextTick)(),c.value.focus()})),collapseCaseNumber:()=>{l.value=!1,d.value=null,a(e.document.id,e.child.id)},validateCaseReference:a}}}),pe=n(3),fe=Object(pe.a)(he,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"esdh-export-child",attrs:{title:e.tooltip,"aria-selected":e.isSelected}},[n("b-checkbox",{staticClass:"child-checkbox",attrs:{disabled:e.isDisabled},model:{value:e.isSelected,callback:function(t){e.isSelected=t},expression:"isSelected"}},[n("div",{staticClass:"child-name"},[e._v(e._s(e.child.name)+" ("+e._s(e.child.metadata)+")")])]),e._v(" "),n("b-collapse",{attrs:{visible:e.isSelected}},[e.isExpanded?e._e():n("b-button",{staticClass:"add-button",attrs:{variant:"link"},on:{click:e.expandCaseNumber}},[n("Icon",{attrs:{name:e.iconClassEnum.PLUS}}),e._v("\n "+e._s(e.$t("document.add_case_number"))+"\n ")],1),e._v(" "),e.isExpanded?n("div",{staticClass:"case-input-group"},[n("b-input",{ref:"caseReferenceInputRef",class:{"red-border":e.caseNumberErrors[e.document.id]&&e.caseNumberErrors[e.document.id][e.child.id]},attrs:{placeholder:e.$t("document.input_case_number"),maxlength:"50"},on:{input:function(t){return e.validateCaseReference(e.document.id,e.child.id)}},model:{value:e.caseReference,callback:function(t){e.caseReference=t},expression:"caseReference"}}),e._v(" "),n("b-button",{staticClass:"p-2 m-0 d-flex align-items-center",attrs:{variant:"link","aria-label":e.$t("document.close_case_number")},on:{click:e.collapseCaseNumber}},[n("Icon",{attrs:{name:e.iconClassEnum.CLOSE}})],1)],1):e._e(),e._v(" "),e.caseNumberErrors[e.document.id]?n("b-alert",{staticClass:"mb-0 pt-2 pb-0 pr-2",attrs:{variant:"danger",show:"REQUIRED"===e.caseNumberErrors[e.document.id][e.child.id]}},[e._v("\n "+e._s(e.$t("document.missing_case_number"))+"\n ")]):e._e()],1)],1)}),[],!1,null,"c8692036",null).exports,Te=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};var De={components:{DocumentEsdhExportChild:fe,AttachmentList:I.a,IconContainer:q.a,Icon:F.a,AulaButton:$.a,TableRow:B.a,TableCell:K.a},directives:{Button:Z.a},props:{document:{type:Object,required:!0},isChildSelectable:{type:Boolean,default:!1},isExpanded:{type:Boolean,default:!1}},emits:["remove"],setup(e){const{proxy:t}=Object(_.getCurrentInstance)(),{removeDocument:n,toggleChild:i,getSelectedChildIds:o}=_e(),r=Object(_.computed)((()=>e.isChildSelectable?o(e.document.id):e.document.associatedInstitutionProfiles.map((e=>e.id)))),s=Object(_.computed)((()=>e.document.associatedInstitutionProfiles.find((e=>r.value.includes(e.id))))),a=Object(_.computed)((()=>t.$tc("label.children_summary",r.value.length-1,{name:s.value.name,metadata:s.value.metadata,count:r.value.length-1})));return{selectedChildIds:r,collapsedChildList:a,removeDocument:n,toggleChild:i}},data(){return{expanded:this.isExpanded,attachments:[],isLoading:!1}},computed:{iconClassEnum:()=>W.a,isShownCheckBox(){return this.isChildSelectable&&this.regardingChildren.length>0},showSummaryChildren(){return this.document.associatedInstitutionProfiles.length>1&&!this.expanded},regardingChildren(){return this.document.associatedInstitutionProfiles},regardingChildrenNameList(){return this.document.associatedInstitutionProfiles.map((e=>this.getChildNameWithMetadata(e))).join(", ")},editedAt(){return this.document.updatedAt?Object(z.e)(this.document.updatedAt,X.a.LONG_DATE_TIME):""},description(){var e,t;switch(this.document.documentType){case R.a.NOTE:return G()(null!==(e=this.document.description)&&void 0!==e?e:"",{length:300});case R.a.RICHDOCUMENT:return null!==(t=this.document.templateTitle)&&void 0!==t?t:"";default:return""}},hasExtraMetadata(){return this.document.associatedInstitutionProfiles.length>1||this.hasMedia},hasMedia(){return this.document.hasMedia}},watch:{isExpanded(e){this.expanded=e,this.fetchExtraMetadata()}},methods:Object.assign(Object.assign({},Object(h.b)({loadInternalDocument:m.a.ACTION_LOAD_INTERNAL_DOCUMENT,loadExternalDocument:m.a.ACTION_LOAD_EXTERNAL_DOCUMENT})),{onRemove(){this.$emit("remove",this.document.id)},handleChildError(){this.expanded=!0},toggleExtraMetadata(){return Te(this,void 0,void 0,(function*(){this.expanded=!this.expanded,yield this.fetchExtraMetadata()}))},fetchExtraMetadata(){return Te(this,void 0,void 0,(function*(){const e=this.attachments.length>0;this.expanded&&this.document.hasMedia&&!e&&(yield this.loadAttachments())}))},getChildNameWithMetadata:e=>`${e.name} (${e.metadata})`,loadAttachments(){return Te(this,void 0,void 0,(function*(){this.isLoading=!0;const e={id:this.document.id};let t=null;t=this.document.documentType===R.a.EXTERNAL?yield this.loadExternalDocument(e):yield this.loadInternalDocument(e),this.attachments=t.attachments,this.isLoading=!1}))}})},Ce=Object(pe.a)(De,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("TableRow",[n("TableCell",{staticClass:"action-table-cell"},[e.hasExtraMetadata?n("AulaButton",{staticClass:"show-extra-data-button",attrs:{variant:"link","aria-label":e.$t("label.fold_out"),"data-is-expanded":e.expanded},on:{click:e.toggleExtraMetadata}},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.FORWARD_ARROW}}
1)],1)],1):e._e()],1),e._v(" "),n("TableCell",[n("div",{staticClass:"document-title-attachment-container"},[n("div",{staticClass:"document-title-container"},[e.document.hasMedia?n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.ATTACH_DOC}})],1):e._e(),e._v(" "),n("div",{staticClass:"document-title",attrs:{"data-left-aligned":!e.hasMedia}},[n("span",{staticClass:"bolded-text"},[e._v(" "+e._s(e.document.title)+" ")]),e._v("\n ("+e._s(e.document.category)+")\n ")])],1),e._v(" "),e.expanded?n("div",{staticClass:"attachment-list-container"},[e.isLoading?n("b-spinner",{staticClass:"align-middle",attrs:{small:""}}):e._e(),e._v(" "),n("AttachmentList",{attrs:{attachments:e.attachments,"show-media":!0}})],1):e._e()])]),e._v(" "),n("TableCell",{staticClass:"mobile-hidden"},[n("div",{staticClass:"document-description"},[e._v("\n "+e._s(e.description)+"\n ")])]),e._v(" "),n("TableCell",[n("div",{staticClass:"regarding-children-container"},[e.showSummaryChildren?n("div",{domProps:{innerHTML:e._s(e.collapsedChildList)}}):e._e(),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.showSummaryChildren,expression:"!showSummaryChildren"}],staticClass:"children-group"},[e.isShownCheckBox?e._l(e.regardingChildren,(function(t){return n("DocumentEsdhExportChild",{key:t.id,attrs:{child:t,document:e.document},on:{error:e.handleChildError}})})):n("div",{staticClass:"p-2"},[e._v("\n "+e._s(e.regardingChildrenNameList)+"\n ")])],2)])]),e._v(" "),n("TableCell",{staticClass:"mobile-hidden"},[e._v(e._s(e.editedAt))]),e._v(" "),n("TableCell",{staticClass:"action-table-cell"},[n("AulaButton",{staticClass:"remove-document",attrs:{variant:"link"},on:{click:function(t){e.onRemove(),e.removeDocument(e.document.id)}}},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.CLOSE}})],1)],1)],1)],1)}),[],!1,null,"ed7dd098",null).exports,ge={components:{AulaButton:$.a,IconContainer:q.a,Icon:F.a,DocumentPreviewTableRow:Ce,TableHead:Y.a,TableBody:J.a,TableRow:B.a,TableHeading:V.a,TableContainer:j.a},props:{selectedDocuments:{type:Array,default:()=>[]},isChildSelectable:{type:Boolean,default:!1}},emits:["remove"],data:()=>({isExpanded:!1}),computed:{iconClassEnum:()=>W.a},methods:{onRemove(e){this.$emit("remove",e)},handleAttachmentExpandedState(){this.isExpanded=!this.isExpanded}}},Se=Object(pe.a)(ge,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-preview-table document-preview-table-variables"},[n("TableContainer",[n("TableHead",[n("TableRow",[n("TableHeading",{staticClass:"action-button-heading"},[n("AulaButton",{staticClass:"unfold-button",attrs:{variant:"link","aria-label":e.$t("label.unfold"),title:e.$t("label.unfold"),"data-is-expanded":e.isExpanded},on:{click:e.handleAttachmentExpandedState}},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.DOWN_DOUBLE_ARROW}})],1)],1)],1),e._v(" "),n("TableHeading",[e._v(e._s(e.$t("label.title")))]),e._v(" "),n("TableHeading",{staticClass:"mobile-hidden"},[e._v(e._s(e.$t("label.description")))]),e._v(" "),n("TableHeading",[e._v(e._s(e.$t("label.child")))]),e._v(" "),n("TableHeading",{staticClass:"mobile-hidden"},[e._v(e._s(e.$t("label.edited")))]),e._v(" "),n("TableHeading")],1)],1),e._v(" "),n("TableBody",{staticClass:"document-preview-body"},e._l(e.selectedDocuments,(function(t){return n("DocumentPreviewTableRow",{key:t.id,attrs:{document:t,"is-child-selectable":e.isChildSelectable,"is-expanded":e.isExpanded},on:{remove:e.onRemove}})})),1)],1)],1)}),[],!1,null,"00a8ed5a",null).exports,Oe=n(41),ve=n(9),Re=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const Ne=new class{constructor(){this.exportDocumentsToEsdh=e=>Re(this,void 0,void 0,(function*(){try{yield ve.b.post("?method=documents.exportDocumentsToEsdh",e)}catch(e){return Promise.reject(new Oe.a(e))}})),this.removeOwnSharings=e=>Re(this,void 0,void 0,(function*(){try{yield ve.b.post("?method=documents.removeOwnSharings",{documentIds:e})}catch(e){return Promise.reject(new Oe.a(e))}})),this.getMaxDocumentsPerExport=()=>Re(this,void 0,void 0,(function*(){try{const{data:e}=yield ve.b.get("?method=documents.getMaxDocumentsPerExport");return e.data}catch(e){return Promise.reject(new Oe.a(e))}})),this.getDocumentCategoriesAndTemplates=e=>Re(this,void 0,void 0,(function*(){try{const{data:t}=yield ve.b.get("?method=documents.getDocumentCategoriesAndTemplates",{params:{institutionCode:e}});return t.data}catch(e){return Promise.reject(new Oe.a(e))}}))}};var Ie,Ae,Me=n(422),be=n(430),Le=function(e,t,n,i){return new(n||(n=Prom
1ise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))},ke={components:{Icon:F.a,DocumentPreviewTable:Se},props:{selectedDocuments:{type:Array,default:()=>[]},recipientSystemName:{type:String,default:""}},emits:["remove","sent"],setup(e,{emit:t}){const{proxy:n}=Object(_.getCurrentInstance)(),{addDocument:i,clearAll:o,validateCaseReferences:r,prepareCreateEsdhExportJobRequests:s,selectedDocuments:a}=_e(),{isVisible:c,handleVisibilityChange:l,show:u,hide:d}=(()=>{const e=Object(_.ref)(!1);return{isVisible:e,show:()=>{e.value=!0},hide:()=>{e.value=!1},toggle:()=>{e.value=!e.value},handleVisibilityChange:t=>{t||(e.value=!1)}}})(),{isLoading:E,start:m,stop:h}=Object(Me.a)(),{showSuccess:p,showError:f}=Object(be.a)(),T=Object(_.ref)(null),D=Object(_.ref)(null),C=()=>{d(),o(),D.value=null};return{iconClassEnum:W.a,isVisible:c,isLoading:E,warningModalRef:T,handleDrawerChange:e=>Le(this,void 0,void 0,(function*(){const t=JSON.stringify(a);if(e||t===D.value)l(e);else{(yield n.$confirmAction(n.$t("warning.discard_changes_warning").toString()))&&C()}})),show:u,hide:d,populateFromDocuments:()=>{o(),e.selectedDocuments.forEach((e=>{i(e)})),D.value=JSON.stringify(a)},handleSendClicked:()=>{r()&&T.value.show()},exportDocumentsToEsdh:()=>Le(this,void 0,void 0,(function*(){var i,o;m(),T.value.hide();try{const i=s();yield Promise.all(i.map((e=>Ne.exportDocumentsToEsdh(e)))),p(n.$t("warning.success_esdh_export",{systemName:e.recipientSystemName}).toString()),t("sent")}catch(e){const t=(null===(o=null===(i=null==e?void 0:e.data)||void 0===i?void 0:i.status)||void 0===o?void 0:o.subCode)===L.a.canNotExportDocumentsFromMultipleDifferentMunicipalities?n.$t("error.api_error_esdh_export"):n.$t("error.api_error_generic");f(t.toString())}finally{d(),h()}}))}},computed:{headerTitle(){return this.$t("document.journalise_to_system",{system:this.recipientSystemName})}},methods:{onRemove(e){this.$emit("remove",e)}}},Pe=Object(pe.a)(ke,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("drawer",{attrs:{show:e.isVisible,"focus-target":"div.header-right button"},on:{"change-show":e.handleDrawerChange,"on-show":e.populateFromDocuments},scopedSlots:e._u([{key:"drawer-title",fn:function(){return[n("div",{staticClass:"header-container"},[n("Icon",{attrs:{name:e.iconClassEnum.DOCUMENT_BOX}}),e._v(" "),n("span",[e._v(" "+e._s(e.headerTitle))])],1)]},proxy:!0},{key:"drawer-content",fn:function(){return[n("section",{staticClass:"sending-documents-metadata"},[n("p",[e._v(e._s(e.$t("document.sending_documents_to_esdh_system_information",{systemName:e.recipientSystemName})))]),e._v(" "),n("p",[e._v("\n "+e._s(e.$t("document.total_selected_files",{systemName:e.recipientSystemName,total:e.selectedDocuments.length}))+"\n ")]),e._v(" "),n("p",[n("strong",[e._v(e._s(e.$t("label.note"))+":")]),e._v("\n "+e._s(e.$t("document.esdh_export_information"))+"\n ")])]),e._v(" "),e.isVisible?n("DocumentPreviewTable",{attrs:{"selected-documents":e.selectedDocuments,"is-child-selectable":""},on:{remove:e.onRemove}}):e._e(),e._v(" "),n("div",{staticClass:"sending-documents-footer"},[n("AulaFormFooter",{attrs:{"is-loading":e.isLoading,"submit-text":"BUTTON_SEND"},on:{cancelClicked:function(t){return e.handleDrawerChange(!1)},submitClicked:e.handleSendClicked}})],1),e._v(" "),n("b-modal",{ref:"warningModalRef",attrs:{"cancel-variant":"link",title:e.$t("label.warning"),"ok-title":e.$t("button.yes"),"cancel-title":e.$t("button.cancel")},on:{ok:e.exportDocumentsToEsdh}},[n("p",{domProps:{innerHTML:e._s(e.$tc("document.sending_document_warning",e.selectedDocuments.length,{number:e.selectedDocuments.length,systemName:e.recipientSystemName}))}}),e._v(" "),n("i18n",{attrs:{path:"document.document_locked_warning",tag:"p"},scopedSlots:e._u([{key:"lockedText",fn:function(){return[n("strong",[e._v(e._s(e.$t("label.locked")))])]},proxy:!0}])}),e._v("\n "+e._s(e.$t("warning.are_you_sure_you_want_to_continue"))+"\n ")],1)]},proxy:!0}])})}),[],!1,null,"589a2de4",null).exports;(Ae=Ie||(Ie={})).UNDEFINED="undefined",Ae.NOT_PROCESSED="not_processed",Ae.IN_PROGRESS="in_progress",Ae.FAILED="failed",Ae.COMPLETED="completed";var ye=n(158),xe=n(2),Ue=function(e,t,n,i){return new(n||(n=Prom
1ise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};var we,$e={components:{DocumentPreviewTable:Se},props:{selectedDocuments:{type:Array,default:()=>[]}},emits:["remove","sent"],data:()=>({isShown:!1,isLoading:!1}),methods:Object.assign(Object.assign({},Object(h.d)({setSucessText:xe.a.MUTATE_SUCCESS_TEXT,setErrorText:xe.a.MUTATE_ERROR_TEXT})),{confirmRemoving(){return Ue(this,void 0,void 0,(function*(){yield this.removeDocumentAssociation(),this.hide()}))},onChangeShown(e){e||(this.isShown=!1)},show(){this.isShown=!0},hide(){this.isShown=!1},onRemove(e){this.$emit("remove",e)},removeDocumentAssociation(){return Ue(this,void 0,void 0,(function*(){this.isLoading=!0;const e=this.selectedDocuments.map((e=>e.id)),t=ee()(e,10);try{const n=t.map((e=>Ne.removeOwnSharings(e)));yield Promise.all(n),this.setSucessText("SUCCESS_TOAST_DOCUMENT_ASSOCIATION_REMOVED"),this.$emit("sent",e)}catch(e){this.setErrorText("API_ERROR_GENERAL")}this.isLoading=!1}))}})},Fe=Object(pe.a)($e,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("drawer",{attrs:{show:e.isShown},on:{"change-show":e.onChangeShown},scopedSlots:e._u([{key:"drawer-title",fn:function(){return[e._v(e._s(e.$t("document.remove_association")))]},proxy:!0},{key:"drawer-content",fn:function(){return[n("section",{staticClass:"remove-association-documents-metadata"},[n("p",[e._v("\n "+e._s(e.$t("document.remove_association_warning_1"))+"\n "),n("br"),e._v("\n "+e._s(e.$t("document.remove_association_warning_2"))+"\n "),n("br"),e._v(" "),n("br"),e._v("\n "+e._s(e.$t("document.number_of_selected",{number:e.selectedDocuments.length}))+"\n ")])]),e._v(" "),e.isShown?n("DocumentPreviewTable",{attrs:{"selected-documents":e.selectedDocuments},on:{remove:e.onRemove}}):e._e(),e._v(" "),n("section",{staticClass:"remove-association-documents-confirm"},[n("p",[e._v(e._s(e.$t("warning.are_you_sure_you_want_to_continue")))])]),e._v(" "),n("div",{staticClass:"remove-association-documents-footer"},[n("AulaFormFooter",{attrs:{"is-loading":e.isLoading,"submit-text":"BUTTON_YES"},on:{cancelClicked:e.hide,submitClicked:e.confirmRemoving}})],1)]},proxy:!0}])})}),[],!1,null,"55c46bda",null).exports;!function(e){e.UNREAD="unread",e.LOCKED="locked",e.JOURNALIZED="journalized",e.BEING_JOURNALIZED="being_journalized",e.JOURNALIZED_FAILED="journalized_failed"}(we||(we={}));var We=n(35);var He=n(21),Ge=n(13),je=n(18);var Ve=n(322),Be=Object(_.defineComponent)({name:"DocumentGroupFilter",components:{AulaMultiselect:Ve.a},model:{prop:"value",event:"change"},props:{value:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:t}){const{groupOptions:n}=(()=>{const{proxy:e}=Object(_.getCurrentInstance)(),t=Object(_.computed)((()=>e.$store.getters[m.a.GET_USER_GROUPS]||[])),n=Object(_.computed)((()=>e.$store.getters[m.a.GET_DISTRIBUTION_LIST_GROUPS]||[])),i=Object(_.computed)((()=>e.$store.getters[m.a.HAS_PERMISSION](C.a.USE_GROUPS_AS_DISTRIBUTION_LISTS))),o=Object(_.computed)((()=>{const t=e.$store.getters[m.a.GET_SELECTED_INSTITUTION];return e.$store.getters[m.a.GET_ACTIVE_INSTITUTIONS]||[null==t?void 0:t.institutionCode]||[]}));return{groupOptions:Object(_.computed)((()=>{let r;if(i.value){const e=[...t.value,...n.value],i=new Map;e.forEach((e=>{const t=`${e.id}-${e.institutionCode}`;i.has(t)||i.set(t,e)})),r=Array.from(i.values())}else r=t.value;const s=r.filter((e=>o.value.includes(e.institutionCode))).sort(((e,t)=>e.name.localeCompare(t.name,"da",{sensitivity:"base"}))).map((e=>({label:e.name.toString(),id:parseInt(e.id),trackBy:e.name.toString()})));return[{label:e.$t("label.groups").toString(),options:s}]}))}})();return{groupOptions:n,emitChange:e=>{t("change",e)},iconClassEnum:W.a}}}),Je=Object(pe.a)(Be,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"document-group-filter"},[n("AulaMultiselect",{attrs:{value:e.value,placeholder:e.$t("label.search_for_groups"),options:e.groupOptions},on:{change:e.emitChange}})],1)}),[],!1,null,"5862b162",null).exports,Ye=n(469),Ke=n(470),ze=n(218),Xe=n(471);function qe(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 Ze(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 Ze(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,r=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw r}}}}function Ze(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 Qe(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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(n),!0).forEach((function(t){u()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt={directives:{button:Z.a},components:{Overlay:ze.a,DocumentChildFilter:Ke.a,DocumentTemplateFilter:Ye.a,DocumentGroupFilter:Je,DocumentAssociationRemovalDrawer:Fe,IconContainer:q.a,DocumentEsdhExportDrawer:Pe,Icon:F.a,AulaButton:$.a,ObservedTarget:w.a,ObservingContainer:U.a,AttachmentList:I.a,AttachmentThumbnails:A.a,DocumentSecureToolbar:f.a,AulaSearchRecipients:T.a,BadgeNotification:D.a,DocumentExportModal:Xe.a},mixins:[k.a],props:{parent:{type:String,default:S.a.DOCUMENTS},includesDeleted:{type:Boolean,default:!1},includesCreated:{type:Boolean,default:!0}},setup:function(){var e=Object(_.ref)(null),t=Object(_.ref)(null),n=p(e,t,{baseTop:58});return{headerActionsRef:e,secureFilesFilterContainerRef:t,stickyFilterTop:n.filterContainerTop,stickyTableHeaderTop:n.tableHeaderTop}},data:function(){return{cleanDropDowns:!1,isLoading:!0,isUpdateSharing:!1,permissionEnum:C.a,portalRoles:N.a,categoriesList:v.a,docTypes:g.a,parentTypes:S.a,moduleTypes:O.a,documentTypes:R.a,sortTypes:b.a,paginationStart:0,pageSize:50,sort:this.parent===S.a.ADMINISTRATION?b.a.DELETED_AT:b.a.UPDATED_AT,sortDirection:"desc",sortTexMap:new Map([[b.a.TITLE,this.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_TITLE")],[b.a.UPDATED_AT,this.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_UPDATEDAT")],[b.a.CREATED_AT,this.$t("label.created")]]),currentShared:[],editDrawer:!1,appendSharedUsersAndGroupsSet:[],filterGroup:[],selectedFilterGroup:[],filterPerson:[],filterCategory:[],workingDocument:{content:{html:""}},selectedFilterPerson:null,selectedFilterCategory:[],status:[],allSelected:!1,errorMissingDoc:!1,errorSetAssociation:!1,errorGroupNotInInstitution:!1,associatedChildren:[],currentChoosenGroupName:null,errorSetTitle:!1,mediaToRemove:{},singleStatus:null,currentChoosenGroup:null,downloadFile:null,resetSharedWithInput:!1,sharedWithGroup:{},lockDocumentWarning:null,changedDocument:null,isLocked:null,originalProfilePortalRole:null,fileProgress:0,archiveDocumentTrackingTimer:null,isDisabledExport:!0,selectedLockedDocuments:[],selectedDocWithoutExportRight:[],isExportFailed:!1,intersectedChildrenIds:[],selectedDocument:{},documentsCancelTokenSource:null,selectedEsdhDocumentsToExport:[],institutionCodesCanExportToEsdh:[],esdhSystemNameByMunicipalityCode:new Map,recipientSystemName:"",selectedDocumentsToRemoveAssociation:[],maxDocumentsPerExport:100,handlingFilter:null,exportingDocumentIds:[]}},computed:et(et({selectedAlAriaLabel:function(){return"".concat(this.$t("document.select_all")," ").concat(this.$t("label.number_of_selected",{number:this.status.length,total:this.totalDocumentCount}))},esdhJournalingStatus:function(){return Ie},iconClassEnum:function(){return W.a}},Object(h.c)({selectedInstitution:m.a.GET_SELECTED_INSTITUTION,activeInstitutions:m.a.GET_ACTIVE_INSTITUTIONS,activeChildren:m.a.GET_ACTIVE_CHILDREN,documentItems:m.a.GET_DOCUMENTS,liveDocument:m.a.GET_DOCUMENTS_LIVE,hasPermission:m.a.HAS_PERMISSION,hasPermissionOnInstitution:m.a.HAS_PERMISSION_ON_INSTITUTION,notifications:m.a.GET_NOTIFICATIONS,institutions:m.a.GET_INSTITUTIONS,isMobile:m.a.GET_IS_MOBILE,isSteppedUp:m.a.GET_GLOBAL_STEPPED_UP,userGroups:m.a.GET_USER_GROUPS,groupMemberships:m.a.GET_GROUP_MEMBERSHIPS_LIGHT,archiveDocumentTrack:m.a.GET_ARCHIVE_DOCUMENT_TRACK,archiveDocumentProgress:m.a.GET_ARCHIVE_DOCUMENT_PROGRESS})),{},{userProfileStore:function(){return Object(Ge.a)()},profile:function(){return this.userProfileStore.institutionProfile},isProfileLoaded:function(){return!1===this.userProfileStore.isLoading},documentCategoriesWithTemplateTitles:function(){var e;return(null===(e=this.documentItems.filters)||void 0===e?void 0:e.documentCategoriesWithTemplateTitles)||[]},regardingInstitutionProfiles:function(){var e;return(null===(e=this.documentItems.filters)||void 0===e?void 0:e.regardingInstitutionProfiles)||[]},filterOptions:function(){return class{static getOptions(e,t){const n=[...this.getBaseOptions()];return e&&n.push(...this.getEmployeeOption(t)),n}static getBaseOptions(){return[{value:null,label:We.a.t("label.all")},{value:we.UNREAD,label:We.a.t("label.unread")}]}static getEmployeeOption(e){const t=[{value:we.LOCKED,label:We.a.t("label.filter_locked")}];return e&&t.push(...this.getJournalingStatusOptions()),t}static getJournalingStatusOptions(){return[{value:we.JOURNALIZED,label:We.a.t("document.journalized")},{value:we.BEING_JOURNALIZED,label:We.a.t("document.journalization_in_progress")},{value:we.JOURNALIZED_FAILED,label:We.a.t("document.journalization_failed")}]}}.getOptions(this.isEmployee,this.canFilterByJournalingStatus)},isEmployee:function(){return this.profile.role===this.portalRoles.EMPLOYEE},isEnableStickyHeader:function(){return!this.includesDeleted&&this.isEmployee},canFilterByJournalingStatus:function(){return this.journalingInstitutionCodes.length>0},journalingInstitutionCodes:function(){var e=this;return this.currentActiveInstitutions.map((function(e){return e.institutionCode})).filter((function(t){return e.hasPermissionOnInstitution(C.a.JOURNALING_TO_ESDH,t)}))},isShowDeletedDocuments:function(){return this.includesDeleted},exceedDocumentsToExport:function(){return this.status.length-this.maxDocumentsPerExport},totalDocumentCount:function(){var e;return null!==(e=this.documentItems.totalCount)&&void 0!==e?e:0},exceedRegardingChildrenDocuments:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentExceedRegardingChildren(t)}))},noRegardingChildrenDocuments:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentHasNoRegardingChildren(t)}))},beingJournalizedDocuments:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentBeingJournalized(t)}))},successfullyJournalizedDocuments:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentSuccessfullyJournalized(t)}))},failedJournalizedDocuments:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentFailedJournalized(t)}))},invalidDocumentsToExport:function(){return[].concat(c()(this.beingJournalizedDocuments),c()(this.successfullyJournalizedDocuments),c()(this.failedJournalizedDocuments))},documentsWithoutJournalizationRight:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentWithoutJournalizationRight(t)}))},documentsWithoutRecipientConfigured:function(){var e=this;return this.selectedEsdhDocumentsToExport.filter((function(t){return e.isDocumentWithoutRecipientConfigured(t)}))},documentsWithoutEditRights:function(){return this.selectedDocumentsToRemoveAssociation.filter((function(e){return!e.canEdit}))},hasDocumentsWithExceededChildren:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentExceedRegardingChildren(t)}))},hasDocumentsWithNoChildren:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentHasNoRegardingChildren(t)}))},hasBeingJournalizedDocumentsToExport:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentBeingJournalized(t)}))},hasSuccessfullyJournalizedDocumentsToExport:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentFailedJournalized(t)}))},hasFailedJournalizedDocumentsToExport:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentSuccessfullyJournalized(t)}))},hasInValidJournalizedStatusDocumentsToExport:function(){return this.hasBeingJournalizedDocumentsToExport||this.hasSuccessfullyJournalizedDocumentsToExport||this.hasFailedJournalizedDocumentsToExport},hasDocumentsWithoutJournalizationRight:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentWithoutJournalizationRight(t)}))},hasDocumentsWithoutRecipientConfigured:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return!e.isDocumentWithoutJournalizationRight(t)&&e.isDocumentWithoutRecipientConfigured(t)}))},isValidToEsdhExport:function(){return!(this.hasDocumentsWithExceededChildren||this.hasDocumentsWithNoChildren||this.hasInValidJournalizedStatusDocumentsToExport||this.hasDocumentsWithoutJournalizationRight||this.hasDocumentsWithoutRecipientConfigured)},hasInvalidDocumentsToRemoveAssociation:function(){return this.selectedDocumentsToRemoveAssociation.some((function(e){return!e.canEdit}))},actionTitle:function(){return this.includesDeleted?this.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_DELETED"):this.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_EDITED")},observerOptions:function(){return{rootMargin:"50%"}},documentsTableTimestampHeader:function(){return this.includesDeleted?this.$t("label.deleted"):this.$t("label.edited")},documents:function(){var e;return(null===(e=this.documentItems)||void 0===e?void 0:e.documents)||[]},documentPayload:function(){var e,t,n=this.paginationStart*this.pageSize,i=this.pageSize,o=[{order:this.sortDirection,field:this.sort}
1],r=[],s=[],a=[],l=[];(null===(e=this.activeChildren)||void 0===e?void 0:e.length)>0&&(a=a.concat(this.activeChildren)),this.selectedFilterGroup&&(s=this.selectedFilterGroup),this.selectedFilterPerson&&(a=[]).push(this.selectedFilterPerson),this.selectedFilterCategory&&this.selectedFilterCategory.length>0&&l.push.apply(l,c()(Object(x.a)(this.selectedFilterCategory)));var u=null!==(t=this.activeInstitutions)&&void 0!==t?t:[this.selectedInstitution.institutionCode];u.length>0&&(r=this.institutions.reduce((function(e,t){return-1!=u.indexOf(t.institutionCode)&&e.push(t.institutionProfileId),e}),[]));var d={index:n,limit:i,sortings:o,filterRegardingGroupIds:s,filterDocumentCategoriesAndTemplateTitles:l,filterRegardingStudentIds:a,filterInstitutionProfileIds:r};return{params:this.includesDeleted?this.getDeletedSecureDocumentParams(d):this.getSecureDocumentParams(d),cancelToken:this.documentsCancelTokenSource.token}},isDocumentFormShown:function(){return["documentsSecureImport","documentsSecureEdit","documentsSecureNew","createDocumentNote","viewDocument"].includes(this.$route.name)},canShowMultipleFileActionButtons:function(){return this.status.length>=1&&!this.includesDeleted},canShowMultiSelectAction:function(){return this.hasPermission(C.a.HANDLE_SECURE_FILES)&&!this.includesDeleted},isProfileSwitched:function(){return this.originalProfilePortalRole!=this.profile.role},currentActiveInstitutions:function(){var e,t=null!==(e=this.activeInstitutions)&&void 0!==e?e:[this.selectedInstitution.institutionCode];return this.institutions.filter((function(e){return-1!==t.indexOf(e.institutionCode)}))},multipleExportsEsdhSystemName:function(){var e=this.$t("document.esdh_system"),t=1===this.currentActiveMunicipalityCodes.length,n=this.esdhSystemNameByMunicipalityCode.size>0;if(t&&n){var i=this.esdhSystemNameByMunicipalityCode.values();e=s()(i,1)[0]}return e},multipleExportLabel:function(){var e=this.multipleExportsEsdhSystemName;return this.$t("document.journalise_to_system",{system:e})},currentActiveMunicipalityCodes:function(){return this.currentActiveInstitutions.map((function(e){return e.municipalityCode}))},selectedDocuments:function(){var e=this;return this.documentItems.documents.filter((function(t){return-1!==e.status.indexOf(t.id)}))},hasValidEsdhDocuments:function(){var e=this;return this.selectedEsdhDocumentsToExport.some((function(t){return e.isDocumentValidForEsdhExport(t)}))}}),watch:{activeInstitutions:function(){this.hasPermission(this.permissionEnum.ACCESS_SECURE_FILESHARING)&&!this.isProfileSwitched?(this.refresh(),this.resetFilters(),this.getAccessibleInstitutionCodesForEsdhExport()):this.$router.push({name:"documents"})},activeChildren:function(){this.refresh()},documentItems:function(){this.allSelected&&this.markAllDocumentsAsSelected()}},mounted:function(){this.initDocuments()},created:function(){this.originalProfilePortalRole=this.profile.role},methods:et(et(et({},Object(h.b)({restoreDeletedSecureDocument:m.a.ACTION_RESTORE_DELETED_DOCUMENT_ADMIN,loadDeletedDocuments:m.a.ACTION_GET_DELETED_DOCUMENTS_ADMIN,appendDeletedDocuments:m.a.ACTION_GET_MORE_DELETED_DOCUMENTS_ADMIN,loadDocuments:m.a.ACTION_GET_DOCUMENTS,appendDocuments:m.a.ACTION_GET_MORE_DOCUMENTS,editSharings:m.a.ACTION_EDIT_SHARINGS,editSetupDocument:m.a.ACTION_LOAD_INTERNAL_DOCUMENT,editSetupExternal:m.a.ACTION_LOAD_EXTERNAL_DOCUMENT,deleteNotifications:m.a.DELETE_NOTIFICATIONS,lockDocument:m.a.LOCK_DOCUMENT,loadGroupMemberships:m.a.LOAD_GROUP_MEMBERSHIPS_LIGHT,createArchiveSecureDocuments:m.a.ACTION_CREATE_ARCHIVE_SECURE_DOCUMENTS,trackArchiveSecureDocuments:m.a.ACTION_TRACK_ARCHIVE_SECURE_DOCUMENTS,deleteSecureDocument:m.a.ACTION_DELETE_DOCUMENT})),Object(h.d)({setErrorText:m.a.MUTATE_ERROR_TEXT,updateDocumentSharedWith:m.a.MUTATE_UPDATE_DOCUMENT_SHARED_WITH,setStepUpNotification:m.a.MUTATE_SET_NOTIFICATION_STEP_UP,setArchiveDocumentTrack:m.a.MUTATE_ARCHIVE_DOCUMENT_TRACK,setArchiveDocumentProgress:m.a.MUTATE_ARCHIVE_DOCUMENT_PROGRESS,resetDocuments:m.a.MUTATE_RESET_DOCUMENT_ITEMS})),{},{hasNewNotification:function(e){return this.notifications.some((function(t){return t.documentId===e&&t.notificationEventType===je.a.NEW_OR_UPDATED_SECURE_DOCUMENT}))},getSingleExportEsdhSystemName:function(e){return this.getIsDisabledExportOption(e)?this.$t("document.esdh_system"):this.getRecipientSystemNameByInstitutionCode(e.institutionCode)},getSingleExportEsdhLabel:function(e){var t=this.getSingleExportEsdhSystemName(e);return this.$t("document.journalise_to_system",{system:t})},handleFilterChanged:function(e){this.handlingFilter=e,this.refresh()},getCanShowActiveFilterIcon:function(e){return this.handlingFilter===e},getFilterLabel:function(e){switch(e){case we.UNREAD:return this.$t("label.unread");
1case we.LOCKED:return this.$t("label.filter_locked");case we.JOURNALIZED:return this.$t("document.journalized");case we.BEING_JOURNALIZED:return this.$t("document.journalization_in_progress");case we.JOURNALIZED_FAILED:return this.$t("document.journalization_failed");default:return this.$t("button.filter")}},handleSelectTemplate:function(e){this.$router.push({query:{skabelon:e}})},handleToggleDownload:function(e){this.showModalExportPDF(e)},initDocuments:function(){this.isProfileLoaded&&(this.hasPermission(this.permissionEnum.ACCESS_SECURE_FILESHARING)?this.isSteppedUp?(this.resetDocuments(),this.getDocuments(),this.getAccessibleInstitutionCodesForEsdhExport(),this.getMaxDocumentsPerExport()):this.setStepUpNotification({showStepUpNotification:!0,redirectedUrl:window.location.href,cancelUrl:"/dokumenter"}):(this.isLoading=!1,this.setErrorText("NO_PERMISSION_TO_VIEW_SECURE_DOCUMENT"),this.$router.push({name:"documents"})))},getCanShowDeleteOption:function(e){return this.hasPermissionOnInstitution(C.a.SECURE_DOCUMENTS_ACCESS_ALL,e.institutionCode)},getCanDeleteDocument:function(e){return e.journalingStatus===Ie.IN_PROGRESS},getCanExportToESDH:function(e){return e.canExportToEsdh},getCanRemoveOwnAssociation:function(e){return e.canEdit},getCanUnlock:function(e){return this.hasPermissionOnInstitution(C.a.SECURE_DOCUMENTS_ACCESS_ALL,e.institutionCode)&&e.isLocked},getCanEditLockStatus:function(e){return!e.canEditLockedStatus},getDisabledUnlockOptionTooltip:function(e){return e.journalingStatus===Ie.IN_PROGRESS?this.$t("document.can_not_unlock_file_being_exported"):""},getIsDisabledExportOption:function(e){return!this.getHasEsdhConfiguration(e)||e.journalingStatus===Ie.IN_PROGRESS||e.journalingStatus===Ie.FAILED||e.journalingStatus===Ie.COMPLETED},getEsdhExportOptionTooltipLabel:function(e){if(!this.getHasEsdhConfiguration(e))return this.$t("document.no_esdh_system_specified");switch(e.journalingStatus){case Ie.IN_PROGRESS:return this.$t("document.can_not_journalize_in_progress_document");case Ie.FAILED:return this.$t("document.can_not_journalize_failed_document");case Ie.COMPLETED:return this.$t("document.can_not_journalize_completed_document");default:return""}},getHasEsdhConfiguration:function(e){return-1!==this.institutionCodesCanExportToEsdh.indexOf(e.institutionCode)},getJournalingStatusIcon:function(e){if(!this.hasPermissionOnInstitution(C.a.JOURNALING_TO_ESDH,e.institutionCode))return"";switch(e.journalingStatus){case Ie.IN_PROGRESS:return this.getHasEsdhConfiguration(e)?W.a.SWITCH:"";case Ie.COMPLETED:return W.a.DOCUMENT_BOX;case Ie.FAILED:return W.a.WARNING;default:return""}},getJournalingStatus:function(e){switch(e.journalingStatus){case Ie.IN_PROGRESS:return this.$t("document.journalization_in_progress");case Ie.COMPLETED:return this.getCompletedJournalingStatusTooltipLabel(e);case Ie.FAILED:return this.$t("document.journalization_failed");default:return""}},getCompletedJournalingStatusTooltipLabel:function(e){return this.$t("document.journalization_completed",{systemName:e.esdhRecipientNames.join(", ")})},handleEsdhExportClicked:function(e){this.selectedEsdhDocumentsToExport=[e],this.recipientSystemName=this.getSingleExportEsdhSystemName(e),this.isValidToEsdhExport?this.$refs.esdhExportDrawer.show():this.handleEsdhWarningModals()},handleMultipleEsdhExportClicked:function(){var e=this;this.selectedEsdhDocumentsToExport=this.documentItems.documents.filter((function(t){return-1!==e.status.indexOf(t.id)})),this.recipientSystemName=this.multipleExportsEsdhSystemName,this.isValidToEsdhExport?this.$refs.esdhExportDrawer.show():this.handleEsdhWarningModals()},handleMultipleRemoveAssociationClicked:function(){var e=this;this.selectedDocumentsToRemoveAssociation=this.documentItems.documents.filter((function(t){return-1!==e.status.indexOf(t.id)})),this.hasInvalidDocumentsToRemoveAssociation?this.$refs.removeAssociationWithoutEditRightWarningModal.show():this.$refs.associationRemovalDrawer.show()},handleRemoveAssociationClicked:function(e){this.selectedDocumentsToRemoveAssociation=[e],this.hasInvalidDocumentsToRemoveAssociation?this.$refs.removeAssociationWithoutEditRightWarningModal.show():this.$refs.associationRemovalDrawer.show()},handleEsdhWarningModals:function(){this.hasDocumentsWithExceededChildren||this.hasDocumentsWithNoChildren||this.hasInValidJournalizedStatusDocumentsToExport?this.$refs.esdhExportInvalidDocumentsWarningModal.show():(this.hasDocumentsWithoutJournalizationRight||this.hasDocumentsWithoutRecipientConfigured)&&this.$refs.noExportRightWarningModal.show()},onRemoveSelectedEsdhExportSecurefile:function(e){var t=this.selectedEsdhDocumentsToExport.findIndex((function(t){return t.id===e}));this.selectedEsdhDocumentsToExport.splice(t,1),0===this.selectedEsdhDocumentsToExport.length&&this.$refs.esdhExportDrawer.hide()},onRemoveAssociationRemovalDocument:function(e){var t=this.selectedDocumentsToRemoveAssociation.findIndex((function(t){return t.id===e}));this.selectedDocumentsToRemoveAssociation.splice(t,1),0===this.selectedDocumentsToRemoveAssociation.length&&this.$refs.associationRemovalDrawer.hide()},onSendingRemoveAssociation:function(e){this.handleDeleteNotifications(e),this.refresh()},handleDeleteNotifications:function(e){var t=this.notifications.filter((function(t){return e.includes(t.documentId)&&t.notificationEventType===je.a.NEW_OR_UPDATED_SECURE_DOCUMENT}));if(0!==t.length){var n=t.map((function(e){return{notificationId:e.notificationId,institutionProfileId:e.institutionProfileId}}));this.deleteNotifications({notifications:n})}},getDocumentDescription:function(e){var t,n;switch(e.documentType){case R.a.NOTE:return G()(null!==(t=e.description)&&void 0!==t?t:"",{length:300});case R.a.RICHDOCUMENT:return null!==(n=e.templateTitle)&&void 0!==n?n:"";default:return""}}
1,getDeletedSecureDocumentParams:function(e){return{index:e.index,limit:e.limit,sortings:e.sortings,filterRegardingGroupIds:e.filterRegardingGroupIds,filterDocumentCategoriesAndTemplateTitles:e.filterDocumentCategoriesAndTemplateTitles,filterRegardingStudentIds:e.filterRegardingStudentIds,selectedInstitutionCode:this.selectedInstitution.institutionCode}},getSecureDocumentParams:function(e){return{index:e.index,limit:e.limit,sortings:e.sortings,filterRegardingGroupIds:e.filterRegardingGroupIds,filterDocumentCategoriesAndTemplateTitles:e.filterDocumentCategoriesAndTemplateTitles,filterRegardingStudentIds:e.filterRegardingStudentIds,filterInstitutionProfileIds:e.filterInstitutionProfileIds,filterUnread:this.handlingFilter===we.UNREAD,filterLocked:this.handlingFilter===we.LOCKED,filterJournalingStatus:this.getFilterJournalingStatusPayloadValue()}},getFilterJournalingStatusPayloadValue:function(){switch(this.handlingFilter){case we.JOURNALIZED:return Ie.COMPLETED;case we.BEING_JOURNALIZED:return Ie.IN_PROGRESS;case we.JOURNALIZED_FAILED:return Ie.FAILED;default:return null}},formatDocumentDate:function(e){return He.a.formatDate(e,"DD. MMM. YYYY")},formatDocumentTime:function(e){return He.a.formatDate(e,"[kl.] LT")},getDocumentsTableDate:function(e){return this.includesDeleted?"".concat(He.a.shortDate(e.deletedAt,!0)):"".concat(He.a.shortDate(e.updatedAt,!0))},getDocumentsTableTime:function(e){return this.includesDeleted?"kl. ".concat(He.a.formatDate(e.deletedAt,"LT")):"kl. ".concat(He.a.formatDate(e.updatedAt,"LT"))},loadSecureDocuments:function(e){return this.includesDeleted?this.loadDeletedDocuments(e):this.loadDocuments(e)},loadMoreSecureDocuments:function(e){return this.includesDeleted?this.appendDeletedDocuments(e):this.appendDocuments(e)},onRestoreClicked:function(e){this.selectedDocument=e,this.$refs.restoreWarningModal.show()},confirmRestoringDeletedSecureDocument:function(){var e=this;this.restoreDeletedSecureDocument({documentId:this.selectedDocument.id}).then((function(){e.refresh(),e.$refs.restoreWarningModal.hide()}))},cancelRestoring:function(){this.$refs.restoreWarningModal.hide()},confirmRemoveInvalidDocuments:function(){this.hasValidEsdhDocuments||1!==this.selectedEsdhDocumentsToExport.length?this.hasDocumentsWithExceededChildren?this.confirmRemoveExceedRegardingChildrenDocuments():this.hasDocumentsWithNoChildren?this.confirmRemoveNoRegardingChildrenDocuments():this.hasInValidJournalizedStatusDocumentsToExport&&this.confirmRemoveInvalidJournalizedStatusDocuments():this.cancelRemoveInvalidDocuments()},confirmRemoveExceedRegardingChildrenDocuments:function(){var e=this;this.selectedEsdhDocumentsToExport=this.selectedEsdhDocumentsToExport.filter((function(t){return!e.isDocumentExceedRegardingChildren(t)})),this.handleConfirmInvalidDocumentsWarningModal()},confirmRemoveNoRegardingChildrenDocuments:function(){var e=this;this.selectedEsdhDocumentsToExport=this.selectedEsdhDocumentsToExport.filter((function(t){return!e.isDocumentHasNoRegardingChildren(t)})),this.handleConfirmInvalidDocumentsWarningModal()},confirmRemoveInvalidJournalizedStatusDocuments:function(){var e=new Set(this.invalidDocumentsToExport.map((function(e){return e.id})));this.selectedEsdhDocumentsToExport=this.selectedEsdhDocumentsToExport.filter((function(t){return!e.has(t.id)})),this.handleConfirmInvalidDocumentsWarningModal()},handleConfirmInvalidDocumentsWarningModal:function(){0!==this.selectedEsdhDocumentsToExport.length?(this.$refs.esdhExportInvalidDocumentsWarningModal.hide(),this.isValidToEsdhExport?this.$refs.esdhExportDrawer.show():this.handleEsdhWarningModals()):this.$refs.esdhExportInvalidDocumentsWarningModal.hide()},cancelRemoveInvalidDocuments:function(){this.$refs.esdhExportInvalidDocumentsWarningModal.hide()},confirmRemoveDocumentsWithoutExportRight:function(){this.hasValidEsdhDocuments||1!==this.selectedEsdhDocumentsToExport.length?this.hasDocumentsWithoutJournalizationRight?this.confirmRemoveDocumentsWithoutJournalizationRight():this.hasDocumentsWithoutRecipientConfigured&&this.confirmRemoveDocumentsWithoutRecipientConfigured():this.cancelRemoveDocumentsWithoutExportRight()},cancelRemoveDocumentsWithoutExportRight:function(){this.$refs.noExportRightWarningModal.hide()},confirmRemoveDocumentsWithoutJournalizationRight:function(){var e=this;this.selectedEsdhDocumentsToExport=this.selectedEsdhDocumentsToExport.filter((function(t){return!e.isDocumentWithoutJournalizationRight(t)})),this.handleConfirmNoExportRightWarningModal()},confirmRemoveDocumentsWithoutRecipientConfigured:function(){var e=this;this.selectedEsdhDocumentsToExport=this.selectedEsdhDocumentsToExport.filter((function(t){return!e.isDocumentWithoutJournalizationRight(t)&&!e.isDocumentWithoutRecipientConfigured(t)})),this.handleConfirmNoExportRightWarningModal()},handleConfirmNoExportRightWarningModal:function(){0!==this.selectedEsdhDocumentsToExport.length?(this.$refs.noExportRightWarningModal.hide(),this.isValidToEsdhExport?this.$refs.esdhExportDrawer.show():this.handleEsdhWarningModals()):this.$refs.noExportRightWarningModal.hide()},confirmRemoveDocumentAssociationWithoutEditRight:function(){this.selectedDocumentsToRemoveAssociation=this.selectedDocumentsToRemoveAssociation.filter((function(e){return e.canEdit})),this.$refs.removeAssociationWithoutEditRightWarningModal.hide(),this.selectedDocumentsToRemoveAssociation.length>0&&this.$refs.associationRemovalDrawer.show()},navigateToSecureList:function(){this.$router.push({name:"documentsSecureList"})},navigateToEditForm:function(e){var t=e.documentType,n=e.id;this.$router.push({name:"documentsSecureEdit",params:{documentType:t,documentId:n}})},onBottomReached:function(){!this.isLoading&&this.documentItems.moreDocumentsExists&&this.getMoreDocuments()},getSearchScope:function(){return this.profile.role===this.portalRoles.EMPLOYEE?[this.portalRoles.EMPLOYEE,this.portalRoles.GUARDIAN]:[this.portalRoles.EMPLOYEE]},toggleLockDocument:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(this.changedDocument=e,this.isLocked=t,t)return this.lockDocumentWarning=this.$getText("DOCUMENTS_ALERT_LOCK_DOCUMENT_1",{documentName:e.title}),void this.$refs.warningLockDocument.show();e.journalingStatus!==Ie.IN_PROGRESS?this.doLockDocument():this.$refs.warningUnlockBeingExportedDocument.show()},resetLockDocument:function(){this.changedDocument=null,this.isLocked=null,this.lockDocumentWarning=null,this.$refs.warningLockDocument.hide()},doLockDocument:function(){var e=this;this.lockDocument({documentId:this.changedDocument.id,isLocked:this.isLocked}).then((function(){e.changedDocument.documentType===R.a.RICHDOCUMENT||e.changedDocument.documentType===R.a.NOTE?e.editSetupDocument({id:e.changedDocument.id,isUpdateInList:!0}):e.changedDocument.documentType===R.a.EXTERNAL&&e.editSetupExternal({id:e.changedDocument.id,isUpdateInList:!0}),e.resetLockDocument()}))},copyLink:function(e,t){var n="https://"+location.host+"/#/dokumenter/sikre/"+t+"/"+e;
1this.copyStringToClipboard(n)},copyStringToClipboard:function(e){var t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style={position:"absolute",left:"-9999px"},document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),this.$refs.copyLinkToastr.show()},showModalExportPDF:function(e){var t=this;this.status.length>this.maxDocumentsPerExport?this.$refs.exceededDocumentsExportToPdfWarningModal.show():(this.selectedDocWithoutExportRight=this.documentItems.documents.filter((function(e){return-1!==t.status.indexOf(e.id)&&!t.hasPermissionOnInstitution(C.a.EXPORT_SECURE_FILES,e.institutionCode)})),this.selectedDocWithoutExportRight.length>0?this.$refs.modalSelectedWithoutExportWarning.show():(this.exportingDocumentIds=e?[e.id]:this.status,this.$refs.modalExportPDF.show()))},openFileUrl:function(){this.archiveDocumentProgress&&this.archiveDocumentProgress.status===M.a.COMPLETED&&window.open(this.archiveDocumentProgress.fileUrl)},onToggleClicked:function(e){this.allSelected=e.length===this.documentItems.documents.length},onToggleAllClicked:function(e){e?this.markAllDocumentsAsSelected():this.status=[]},markAllDocumentsAsSelected:function(){this.status=this.documentItems.documents.map((function(e){return e.id}))},resetSelectAll:function(){this.allSelected=!1},handleClearSelectedFilterPersonFilter:function(){this.selectedFilterPerson=null,this.reset()},reset:function(){var e=this;this.resetSelectAll(),this.paginationStart=0,this.$nextTick((function(){e.getDocuments()}))},setSortOrder:function(e){this.resetSelectAll(),this.paginationStart=0,this.sort==e?this.sortDirection="asc"==this.sortDirection?"desc":"asc":(this.sort=e,e===b.a.UPDATED_AT?this.sortDirection="desc":this.sortDirection="asc"),this.getDocuments()},refresh:function(){this.resetSelectAll(),this.paginationStart=0,this.getDocuments()},resetFilters:function(){this.handlingFilter=null},getDocuments:function(){var e=this;null!==this.documentsCancelTokenSource&&(this.cancelAxiosRequest(this.documentsCancelTokenSource),this.resetDocumentsCancelToken()),0==this.paginationStart&&(this.status=[]),this.createDocumentsCancelToken(),this.isLoading=!0,(0===this.paginationStart?this.loadSecureDocuments(this.documentPayload):this.loadMoreSecureDocuments(this.documentPayload)).then((function(){e.populateFilters(),e.isLoading=!1}))},populateFilters:function(){var e,t,n,i=this,o=function(e,t){return{value:e,text:t}},r=o(null,this.$t("label.search_by_child")),s=o(null,this.$t("label.search_by_category")),a=null!==(e=this.documentItems.filters)&&void 0!==e?e:[],l=null!==(t=a.regardingInstitutionProfiles)&&void 0!==t?t:[],u=null!==(n=a.documentCategories)&&void 0!==n?n:[],d=y()(l,["name"]);this.filterPerson=[r].concat(c()(d.map((function(e){return o(e.id,i.$getProfileDisplayName(e))})))),this.filterCategory=[s].concat(c()(u.map((function(e){return o(e,e)}))))},getMoreDocuments:function(){this.paginationStart++,this.getDocuments()},editElement:function(e,t){this.handleDeleteNotifications([e]),this.$router.push({name:"documentsSecureEdit",params:{documentId:e,documentType:t}})},downloadSensitiveFile:function(){var e=this;this.$refs.warningDownloadSensitiveFile.hide(),this.editSetupExternal({id:this.downloadFile.documentId}).then((function(t){if(t.code)e.setErrorText("NO_PERMISSION_TO_VIEW_SECURE_SINGLE_DOCUMENT");else{var n=null;null!=e.liveDocument.attachment.file?n=e.liveDocument.attachment.file.url:null!=e.liveDocument.attachment.media?n=e.liveDocument.attachment.media.file.url:null!=e.liveDocument.attachment.link&&(n=e.liveDocument.attachment.link.url),null!=n&&window.open(n,"_blank")}})),this.downloadFile=null},rowClickAction:function(e){this.handleDeleteNotifications([e.id]),this.$router.push({name:"viewDocument",params:{documentType:e.documentType,documentId:e.id,includesDeleted:this.includesDeleted}})},downloadDocument:function(e){e.documentType==R.a.EXTERNAL?(this.downloadFile={documentType:e.documentType,documentId:e.id},this.$refs.warningDownloadSensitiveFile.show()):(this.handleDeleteNotifications([e.id]),this.$router.push({name:"viewDocument",params:{documentType:e.documentType,documentId:e.id}}))},seeHistory:function(e){this.$router.push({path:"/dokumenter/"+e.documentType+"/"+e.id+"/historie"})},sharedUsersAndGroupsStore:function(e){var t=this,n=[],i=!0;this.intersectedChildrenIds=[],e?(n=this.status,i=!1):n=[this.singleStatus];var o=[],r=[];this.currentShared.forEach((function(e){e.profileId?o.push({institutionProfileId:e.profileId,canEdit:e.canEdit||!1}):r.push({groupId:e.groupId,institutionCode:e.institutionCode,canEdit:e.canEdit||!1})})),this.isUpdateSharing=!0;var s=ee()(n,10).map((function(e){return t.editSharings({documentIds:e,sharedInstitutionProfiles:o,sharedGroups:r,resetSharings:i})}));Promise.all(s).then((function(){t.$refs.modalSharedWith.hide(),t.$refs.modalSharedWithGroups.hide(),t.isUpdateSharing=!1,t.status=[],t.currentShared=[],t.singleStatus=null,t.refresh()})).catch((function(e){var n,i,o;(null==e||null===(n=e.response)||void 0===n||null===(i=n.data)||void 0===i||null===(o=i.status)||void 0===o?void 0:o.subCode)==L.a.errorShareWithOtherMunicipalities&&(t.isUpdateSharing=!1,t.$refs.shareWithOtherMunicipalitiesError.show())}))},showModalSharedWith:function(e,t){var n=this,i=e;this.singleStatus=i;var o={id:i};t==R.a.EXTERNAL?this.editSetupExternal(o).then((function(){n.currentShared=[],n.workingDocument=n.liveDocument,n.appendSharedUsersAndGroupsSet=[],n.workingDocument.regardingInstitutionProfileIds=n.workingDocument.associatedInstitutionProfiles.map((function(e){return e.id}));
1var e,t=qe(n.workingDocument.sharedWithGroups);try{for(t.s();!(e=t.n()).done;){var i=e.value;n.currentShared.push({groupId:i.id,displayName:i.name,canEdit:i.canEdit,role:i.role})}}catch(e){t.e(e)}finally{t.f()}var o,r=qe(n.workingDocument.sharedWithInstitutionProfiles);try{for(r.s();!(o=r.n()).done;){var s=o.value;n.currentShared.push({profileId:s.id,displayName:n.$getProfileDisplayName(s),canEdit:s.canEdit,role:s.role})}}catch(e){r.e(e)}finally{r.f()}n.$refs.modalSharedWith.show()})):this.editSetupDocument(o).then((function(){n.currentShared=[],n.workingDocument=n.liveDocument,n.appendSharedUsersAndGroupsSet=[],n.workingDocument.regardingInstitutionProfileIds=n.workingDocument.associatedInstitutionProfiles.map((function(e){return e.id}));var e,t=qe(n.workingDocument.sharedWithGroups);try{for(t.s();!(e=t.n()).done;){var i=e.value;n.currentShared.push({groupId:i.id,displayName:i.name,canEdit:i.canEdit,role:i.role})}}catch(e){t.e(e)}finally{t.f()}var o,r=qe(n.workingDocument.sharedWithInstitutionProfiles);try{for(r.s();!(o=r.n()).done;){var s=o.value;n.currentShared.push({profileId:s.id,displayName:n.$getProfileDisplayName(s),canEdit:s.canEdit,role:s.role})}}catch(e){r.e(e)}finally{r.f()}n.$refs.modalSharedWith.show()}))},appendSharedUsersAndGroups:function(e){var t=this;if(e.length>0){var n,i=qe(e);try{var o=function(){var e=n.value;e.type==g.a.PROFILE.toLowerCase()&&(0==t.currentShared.filter((function(t){return t.profileId==e.id})).length&&t.currentShared.push({profileId:e.id,canEdit:t.getCanEditMultipleDocuments(e),displayName:e.label,shortName:null,role:e.portalRole}),e.fromGroup||t.institutions.find((function(t){return t.institutionCode==e.institutionCode}))||t.institutions.find((function(t){return t.municipalityCode==e.municipalityCode}))||t.$refs.warningShareWithDifferentInstitution.show())};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}this.appendSharedUsersAndGroupsSet=[],this.resetSharedWithInput=!this.resetSharedWithInput},getCanEditMultipleDocuments:function(e){return this.getIsCreatorOfSelectedDocuments(e)||this.getHasEditRightToSelectedDocuments(e)},getIsCreatorOfSelectedDocuments:function(e){return this.selectedDocuments.length>0&&this.selectedDocuments.every((function(t){return t.creator.id===e.id&&t.canEdit}))},getHasEditRightToSelectedDocuments:function(e){return this.selectedDocuments.length>0&&this.selectedDocuments.every((function(t){return t.sharedWithInstitutionProfiles.find((function(t){return t.id===e.id&&t.canEdit}))}))},addSharingGroups:function(){var e=this;this.selectedLockedDocuments=this.documentItems.documents.filter((function(t){return-1!==e.status.indexOf(t.id)&&!1===t.canEdit})),this.$nextTick((function(){e.status.length&&!e.selectedLockedDocuments.length?(e.currentShared=[],e.findIntersectedChildrenIds(),e.$refs.modalSharedWithGroups.show()):e.$refs.modalSelectedWarning.show()}))},findIntersectedChildrenIds:function(){var e=this,t=[];if(this.documentItems&&this.documentItems.documents){var n=this.documentItems.documents.filter((function(t){return e.status.includes(t.id)}));if(n&&n.length>0)t=n.map((function(e){return e.associatedInstitutionProfiles.map((function(e){return e.id}))})).reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))}this.intersectedChildrenIds=t},createDocumentsCancelToken:function(){this.documentsCancelTokenSource=this.getAxiosCancelTokenSource()},resetDocumentsCancelToken:function(){this.documentsCancelTokenSource=null},deleteDocument:function(){var e=this;this.deleteSecureDocument({id:this.selectedDocument.id}).then((function(){e.refresh(),e.$refs.deleteSecureDocumentConfirmModal.hide()}))},openDeleteDocumentConfirmModal:function(e){this.$refs.deleteSecureDocumentConfirmModal.show(),this.selectedDocument=e},getMaxDocumentsPerExport:function(){var e=this;return o()(E.a.mark((function t(){return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Ne.getMaxDocumentsPerExport();case 3:e.maxDocumentsPerExport=t.sent,t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),e.setErrorText("API_ERROR_GENERAL");case 9:case"end":return t.stop()}}),t,null,[[0,6]])})))()},getAccessibleInstitutionCodesForEsdhExport:function(){var e=this;return o()(E.a.mark((function t(){var n,i,o,r,s;return E.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.institutionCodesCanExportToEsdh=[],e.esdhSystemNameByMunicipalityCode.clear(),t.prev=2,n=qe(e.currentActiveInstitutions),t.prev=4,n.s();case 6:if((i=n.n()).done){t.next=17;break}if(o=i.value,r=o.institutionCode,e.hasPermissionOnInstitution(C.a.JOURNALING_TO_ESDH,r)){t.next=11;break}return t.abrupt("continue",15);case 11:return t.next=13,ye.a.getRecipientNames(r);case 13:(s=t.sent).length>0&&(e.institutionCodesCanExportToEsdh.push(r),e.populateEsdhRecipientSystemName(o,s[0]));case 15:t.next=6;break;case 17:t.next=22;break;case 19:t.prev=19,t.t0=t.catch(4),n.e(t.t0);case 22:return t.prev=22,n.f(),t.finish(22);case 25:t.next=30;break;case 27:t.prev=27,t.t1=t.catch(2),e.setErrorText("API_ERROR_GENERAL");case 30:case"end":return t.stop()}}),t,null,[[2,27],[4,19,22,25]])})))()},populateEsdhRecipientSystemName:function(e,t){this.esdhSystemNameByMunicipalityCode.get(e.municipalityCode)||this.esdhSystemNameByMunicipalityCode.set(e.municipalityCode,t)},getRecipientSystemNameByInstitutionCode:function(e){var t=this.currentActiveInstitutions.find((function(t){return t.institutionCode===e}));return this.esdhSystemNameByMunicipalityCode.get(t.municipalityCode)},isDocumentExceedRegardingChildren:function(e){return e.associatedInstitutionProfiles.length>28},isDocumentHasNoRegardingChildren:function(e){return 0===e.associatedInstitutionProfiles.length},isDocumentBeingJournalized:function(e){return e.journalingStatus===Ie.IN_PROGRESS},isDocumentSuccessfullyJournalized:function(e){return e.journalingStatus===Ie.COMPLETED},isDocumentFailedJournalized:function(e){return e.journalingStatus===Ie.FAILED},isDocumentWithoutJournalizationRight:function(e){return!this.hasPermissionOnInstitution(C.a.JOURNALING_TO_ESDH,e.institutionCode)},isDocumentWithoutRecipientConfigured:function(e){return-1===this.institutionCodesCanExportToEsdh.indexOf(e.institutionCode)},isDocumentValidForEsdhExport:function(e){return!(this.isDocumentExceedRegardingChildren(e)||this.isDocumentHasNoRegardingChildren(e)||this.isDocumentBeingJournalized(e)||this.isDocumentSuccessfullyJournalized(e)||this.isDocumentFailedJournalized(e)||this.isDocumentWithoutJournalizationRight(e)||this.isDocumentWithoutRecipientConfigured(e))}})},nt=tt,it=Object(pe.a)(nt,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"documents-secure-list-container"},[n("router-view",{attrs:{name:"sidebar"},on:{save:e.refresh,hidden:e.navigateToSecureList,toggleEdit:e.navigateToEditForm,selectTemplate:e.handleSelectTemplate,toggleDownload:e.handleToggleDownload}}),e._v(" "),e.parent==e.parentTypes.EDITOR||e.includesDeleted?e._e():n("document-secure-toolbar"),e._v(" "),n("div",{staticClass:"aula-documentsSecureList-container page-layout-padding",style:e.isEnableStickyHeader?{"--sticky-filter-top":e.stickyFilterTop+"px","--sticky-table-header-top":e.stickyTableHeaderTop+"px"}:{}},[e.includesDeleted?n("div",{staticClass:"deleted-secure-documents-text-container"},[n("h1",{staticClass:"header-text"},[e._v(e._s(e.$getText("DELETED_SECURE_DOCUMENTS_HEADER")))]),e._v(" "),n("p",{staticClass:"description-text"},[e._v(e._s(e.$t("document.deleted_files_description")))])]):n("h1",{staticClass:"document-title"},[n("b-btn",{staticClass:"file-document",attrs:{variant:"link"},on:{click:function(t){return e.$router.push({name:"documents"})},keypress:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$router.push({name:"documents"})}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_TYPES_PAGE_TITLE"))+"\n ")]),e._v(" "),n("span",{staticClass:"breadcumb-spacer"},[e._v("/")]),e._v(" "),n("strong",[e._v(e._s(e.$getText("DOCUMENTS_TYPES_SECURE_FILES_TITLE")))])],1
1),e._v(" "),n("div",{ref:"headerActionsRef",staticClass:"header-actions-container",attrs:{"data-sticky":e.isEnableStickyHeader}},[e.profile.role===e.portalRoles.EMPLOYEE?n("b-row",{staticClass:"mb-0 mb-lg-3"},[n("b-col",{staticClass:"mb-1",attrs:{sm:"12",lg:"4"}},[n("DocumentGroupFilter",{on:{change:e.reset},model:{value:e.selectedFilterGroup,callback:function(t){e.selectedFilterGroup=t},expression:"selectedFilterGroup"}})],1),e._v(" "),n("b-col",{staticClass:"mb-1",attrs:{sm:"12",lg:"4"}},[n("DocumentChildFilter",{attrs:{children:e.regardingInstitutionProfiles},on:{change:e.reset},model:{value:e.selectedFilterPerson,callback:function(t){e.selectedFilterPerson=t},expression:"selectedFilterPerson"}})],1),e._v(" "),e.profile.role!==e.portalRoles.GUARDIAN?n("b-col",{staticClass:"mb-1",attrs:{sm:"12",lg:"4"}},[n("DocumentTemplateFilter",{attrs:{options:e.documentCategoriesWithTemplateTitles},on:{change:e.reset},model:{value:e.selectedFilterCategory,callback:function(t){e.selectedFilterCategory=t},expression:"selectedFilterCategory"}})],1):e._e()],1):e._e(),e._v(" "),e.canShowMultipleFileActionButtons?n("div",{staticClass:"filter multiple-file-actions"},[n("b-btn",{attrs:{variant:"primary"},on:{click:function(t){return e.addSharingGroups()}}},[e._v("\n "+e._s(e.$t("label.share"))+"\n ")]),e._v(" "),e.hasPermission(e.permissionEnum.EXPORT_SECURE_FILES)?n("b-btn",{attrs:{variant:"primary"},on:{click:function(t){return e.showModalExportPDF()}}},[e._v("\n "+e._s(e.$t("label.export"))+"\n ")]):e._e(),e._v(" "),e.hasPermission(e.permissionEnum.JOURNALING_TO_ESDH)?n("b-btn",{attrs:{variant:"primary"},on:{click:function(t){return e.handleMultipleEsdhExportClicked()}}},[e._v("\n "+e._s(e.multipleExportLabel)+"\n ")]):e._e(),e._v(" "),e.profile.role===e.portalRoles.EMPLOYEE?n("b-btn",{attrs:{variant:"primary"},on:{click:function(t){return e.handleMultipleRemoveAssociationClicked()}}},[e._v("\n "+e._s(e.$t("document.remove_association"))+"\n ")]):e._e()],1):e._e()],1),e._v(" "),e.profile.role===e.portalRoles.GUARDIAN?n("div",[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_GUARDIAN_WARNING"))+"\n ")]):e._e(),e._v(" "),e.includesDeleted?e._e():n("div",{ref:"secureFilesFilterContainerRef",staticClass:"secure-files-filter-container",attrs:{"data-padding-top":e.canShowMultipleFileActionButtons,"data-sticky":e.isEnableStickyHeader}},[e.profile.role===e.portalRoles.EMPLOYEE?n("div",{staticClass:"selected-document-count"},[n("i18n",{attrs:{path:"label.number_of_selected"},scopedSlots:e._u([{key:"number",fn:function(){return[n("strong",[e._v(e._s(e.status.length))])]},proxy:!0},{key:"total",fn:function(){return[n("strong",[e._v(e._s(e.totalDocumentCount))])]},proxy:!0}],null,!1,880272800)})],1):e._e(),e._v(" "),n("div",{staticClass:"dropdown-filter-container"},[n("b-dropdown",{staticClass:"dropdown-select filter-dropdown",attrs:{right:""},scopedSlots:e._u([{key:"button-content",fn:function(){return[e._v("\n "+e._s(e.getFilterLabel(e.handlingFilter))+"\n "),n("Icon",{staticClass:"filter-arrow",attrs:{name:e.iconClassEnum.DOWN_ARROW}})]},proxy:!0},{key:"default",fn:function(){return e._l(e.filterOptions,(function(t,i){return n("b-dropdown-item",{key:i,on:{click:function(n){return e.handleFilterChanged(t.value)}}},[e.getCanShowActiveFilterIcon(t.value)?n("Icon",{staticClass:"active-filter-icon",attrs:{name:e.iconClassEnum.PRESENCE_CHECK}}):e._e(),e._v("\n "+e._s(t.label)+"\n ")],1)}))},proxy:!0}],null,!1,2469506753)}),e._v(" "),n("b-dropdown",{ref:"sorter",staticClass:"dropdown-select sorter",attrs:{right:""}},[n("template",{slot:"button-content"},[n("span",{staticClass:"sort",class:e.sortDirection}),e._v("\n "+e._s(e.sortTexMap.get(e.sort))+"\n "),n("i",{staticClass:"icon icon-Aula_down-arrow"})]),e._v(" "),n("b-dropdown-item",{class:e.sort===e.sortTypes.TITLE?e.sortDirection:"",on:{click:function(t){return e.setSortOrder(e.sortTypes.TITLE)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_TITLE"))+"\n ")]),e._v(" "),n("b-dropdown-item",{class:e.s
1ort===e.sortTypes.CREATED_AT?e.sortDirection:"",on:{click:function(t){return e.setSortOrder(e.sortTypes.CREATED_AT)}}},[e._v("\n "+e._s(e.$t("label.created"))+"\n ")]),e._v(" "),n("b-dropdown-item",{class:e.sort===e.sortTypes.UPDATED_AT?e.sortDirection:"",on:{click:function(t){return e.setSortOrder(e.sortTypes.UPDATED_AT)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_EDITED"))+"\n ")])],2)],1)]),e._v(" "),n("ObservingContainer",{attrs:{options:e.observerOptions}},[n("Overlay",{attrs:{show:e.isLoading},scopedSlots:e._u([{key:"overlay",fn:function(){return[n("div",{staticClass:"document-spinner"},[n("b-spinner",{staticClass:"m-auto"})],1)]},proxy:!0}])},[n("div",{staticClass:"table"},[n("div",{staticClass:"table-row header",attrs:{"data-parent-type":e.parent,"data-padding-top":e.canShowMultipleFileActionButtons,"data-sticky":e.isEnableStickyHeader}},[e.canShowMultiSelectAction?n("div",{staticClass:"table-cell multi-select-header check"},[n("b-form-checkbox",{attrs:{"aria-label":e.selectedAlAriaLabel},on:{change:e.onToggleAllClicked},model:{value:e.allSelected,callback:function(t){e.allSelected=t},expression:"allSelected"}})],1):e._e(),e._v(" "),n("div",{staticClass:"table-cell title-header"},[e._v("\n "+e._s(e.$t("label.title"))+"\n ")]),e._v(" "),e.isShowDeletedDocuments?e._e():n("div",{staticClass:"table-cell category-header"},[e._v("\n "+e._s(e.$t("label.category"))+"\n ")]),e._v(" "),n("div",{staticClass:"table-cell description-header"},[e._v("\n "+e._s(e.$t("label.description"))+"\n ")]),e._v(" "),n("div",{staticClass:"table-cell regarding-children-header"},[e._v("\n "+e._s(e.$t("label.child"))+"\n ")]),e._v(" "),e.includesCreated?n("div",{staticClass:"table-cell"},[e._v(e._s(e.$t("label.created")))]):e._e(),e._v(" "),n("div",{staticClass:"table-cell"},[e._v(e._s(e.documentsTableTimestampHeader))]),e._v(" "),e.profile.role===e.portalRoles.EMPLOYEE?n("div",{staticClass:"table-cell"}):e._e()]),e._v(" "),e.canShowMultiSelectAction?n("div",{staticClass:"table-row mobile-header",attrs:{"data-padding-top":e.canShowMultipleFileActionButtons}},[n("div",{staticClass:"table-cell"}),e._v(" "),n("div",{staticClass:"table-cell"},[n("b-form-checkbox",{attrs:{"aria-label":e.selectedAlAriaLabel},on:{change:e.onToggleAllClicked},model:{value:e.allSelected,callback:function(t){e.allSelected=t},expression:"allSelected"}})],1)]):e._e(),e._v(" "),e._l(e.documents,(function(t,i){return n("div",{key:"d"+i,staticClass:"table-row body",attrs:{tabindex:"0"},on:{click:function(n){return e.rowClickAction(t)}}},[e.canShowMultiSelectAction?n("div",{staticClass:"table-cell not-collapsed check"},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_OPEN_EDIT_DOCUMENT")))]),e._v(" "),n("b-form-checkbox",{attrs:{value:t.id},on:{change:e.onToggleClicked},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_DOCUMENT")))])])],1):e._e(),e._v(" "),n("div",{staticClass:"table-cell title not-collapsed"},[t.documentType==e.documentTypes.EXTERNAL?n("div",{staticClass:"filetype"},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_IMPORTED_FILE"))+"\n ")]):e._e(),e._v(" "),e.hasNewNotification(t.id)&&!e.includesDeleted?n("badge-notification",{staticClass:"documents badge-notification",attrs:{"show-exclamation-icon-instead-of-amount":!0}}):e._e(),e._v(" "),n("strong",[e._v(e._s(t.title))]),e._v(" "),t.isSharedWithGuardian&&e.profile.role!=e.portalRoles.GUARDIAN?n("div",{staticClass:"marking-text"},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_WITH_GUARDIAN_MARK"))+"\n ")]):e._e()],1),e._v(" "),e.isShowDeletedDocuments?e._e():n("div",{staticClass:"table-cell not-collapsed"},[e._v("\n "+e._s(t.category)+"\n ")]),e._v(" "),n("div",{staticClass:"table-cell not-collapsed"},[e._v("\n "+e._s(e.getDocumentDescription(t))+"\n ")]),e._v(" "),e.parent!=e.parentTypes.EDITOR?n("div",{staticClass:"table-cell not-collapsed"},e._l(t.associatedInstitutionProfiles,(function(t,i){return n("span",{key:"sp"+i},[i>
10?n("span",[e._v(", ")]):e._e(),e._v(e._s(e.$getProfileDisplayName(t))+"\n ")])})),0):e._e(),e._v(" "),e.includesCreated?n("div",{staticClass:"table-cell not-collapsed"},[n("nobr",[e._v(" "+e._s(e.formatDocumentDate(t.createdAt))+" ")]),e._v(" "),n("nobr",[e._v(" "+e._s(e.formatDocumentTime(t.createdAt))+" ")])],1):e._e(),e._v(" "),n("div",{staticClass:"table-cell not-collapsed"},[n("nobr",[e._v(" "+e._s(e.getDocumentsTableDate(t))+" ")]),e._v(" "),n("nobr",[e._v(" "+e._s(e.getDocumentsTableTime(t)))])],1),e._v(" "),e.isDocumentFormShown?e._e():n("div",{staticClass:"table-cell collapsed-only"},[n("div",{staticClass:"pull-left"},[n("div",{staticClass:"item"},[e.hasNewNotification(t.id)?n("badge-notification",{staticClass:"documents badge-notification",attrs:{"show-exclamation-icon-instead-of-amount":!0}}):e._e(),e._v(" "),n("strong",[e._v(e._s(t.title))]),e._v("\n ("+e._s(t.category)+")\n "),t.isSharedWithGuardian&&e.profile.role!=e.portalRoles.GUARDIAN?n("div",{staticClass:"marking-text"},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_WITH_GUARDIAN_MARK"))+"\n ")]):e._e(),e._v(" "),t.documentType==e.documentTypes.EXTERNAL?n("div",{staticClass:"filetype"},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_IMPORTED_FILE"))+"\n ")]):e._e()],1),e._v(" "),e.getDocumentDescription(t)?n("div",{staticClass:"item"},[n("strong",[e._v(e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_DESCRIPTION"))+":")]),e._v("\n "+e._s(e.getDocumentDescription(t))+"\n ")]):e._e(),e._v(" "),e.includesCreated?n("div",{staticClass:"item"},[n("strong",[e._v(e._s(e.$t("label.created"))+":")]),e._v(" "),n("nobr",[e._v(" "+e._s(e.formatDocumentDate(t.createdAt))+" ")]),e._v(" "),n("nobr",[e._v(" "+e._s(e.formatDocumentTime(t.createdAt))+" ")])],1):e._e(),e._v(" "),n("div",{staticClass:"item"},[n("strong",[e._v(e._s(e.actionTitle)+":")]),e._v(" "),n("nobr",[e._v(" "+e._s(e.getDocumentsTableDate(t))+" ")]),e._v(" "),n("nobr",[e._v(" "+e._s(e.getDocumentsTableTime(t)))])],1),e._v(" "),n("div",{staticClass:"item"},[n("strong",[e._v(e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_ASSOCIATION"))+":")]),e._v(" "),e._l(t.associatedInstitutionProfiles,(function(t,i){return n("span",{key:i},[i>0?[e._v(", ")]:e._e(),e._v(e._s(e.$getProfileDisplayName(t))+"\n ")],2)}))],2)])]),e._v(" "),e.parent!=e.parentTypes.EDITOR&&e.profile.role===e.portalRoles.EMPLOYEE?n("div",{staticClass:"table-cell actions"},[e.includesDeleted?[n("AulaButton",{staticClass:"restore-btn",attrs:{title:e.$getText("RESTORE"),"aria-label":e.$getText("RESTORE"),variant:"link"},on:{click:function(n){return n.stopPropagation(),e.onRestoreClicked(t)}}},[n("Icon",{staticClass:"restore-icon",attrs:{name:e.iconClassEnum.RESTORE}}),e._v(" "),n("p",{staticClass:"restore-text"},[e._v(e._s(e.$getText("RESTORE")))])],1)]:[e.hasPermission(e.permissionEnum.HANDLE_SECURE_FILES)?n("b-form-checkbox",{staticClass:"collapsed-only choose-document",attrs:{value:t.id},on:{change:e.onToggleClicked},nativeOn:{click:function(e){e.stopPropagation()}},model:{value:e.status,callback:function(t){e.status=t},expression:"status"}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_DOCUMENT")))])]):e._e(),e._v(" "),n("b-dropdown",{staticClass:"dropdown-select",attrs:{id:"documents-functionalities"+t.id,right:""},on:{click:function(e){e.preventDefault()}}},[n("template",{slot:"button-content"},[n("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.$t("document.functionalities")))]),e._v(" "),n("Icon",{attrs:{name:e.iconClassEnum.ELIPSES}})],1),e._v(" "),n("div",{attrs:{id:"locked-"+t.id},on:{click:function(e){e.stopPropagation()}}},[t.isLocked?n("b-dropdown-item",{staticClass:"is-disabled",on:{click:function(e){e.stopPropagation()}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_DOCUMENT_IS_
1LOCKED"))+"\n ")]):e._e()],1),e._v(" "),e.getCanEditLockStatus(t)&&t.journalingStatus===e.esdhJournalingStatus.IN_PROGRESS?n("b-tooltip",{attrs:{target:"unlock-"+t.id,triggers:"hover",placement:"top"}},[e._v("\n "+e._s(e.getDisabledUnlockOptionTooltip(t))+"\n ")]):e._e(),e._v(" "),t.canEditLockedStatus&&!t.isLocked?n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.toggleLockDocument(t)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_LOCK_DOCUMENT"))+"\n ")]):e._e(),e._v(" "),n("div",{class:e.getCanEditLockStatus(t)?"disabled-drop-down":"",attrs:{id:"unlock-"+t.id},on:{click:function(e){e.stopPropagation()}}},[e.getCanUnlock(t)?n("b-dropdown-item",{attrs:{disabled:e.getCanEditLockStatus(t)},on:{click:function(n){return n.stopPropagation(),e.toggleLockDocument(t,!1)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_UNLOCK_DOCUMENT"))+"\n ")]):e._e()],1),e._v(" "),e.getCanEditLockStatus(t)&&t.journalingStatus===e.esdhJournalingStatus.IN_PROGRESS?n("b-tooltip",{attrs:{target:"unlock-"+t.id,triggers:"hover",placement:"top"}},[e._v("\n "+e._s(e.getDisabledUnlockOptionTooltip(t))+"\n ")]):e._e(),e._v(" "),t.canEdit?[n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.showModalSharedWith(t.id,t.documentType)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_IMPORT_FILE_LABEL_DOCUMENT_SHARED_WITH"))+"\n ")])]:e._e(),e._v(" "),n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.seeHistory(t)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_MENU_REVISION"))+"\n ")]),e._v(" "),n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.downloadDocument(t)}}},[e._v("\n "+e._s(t.documentType==e.documentTypes.RICHDOCUMENT||t.documentType==e.documentTypes.INTERNAL||t.documentType==e.documentTypes.NOTE?e.$getText("DOCUMENTS_SHARED_OVERVIEW_MENU_DOWNLOAD_INTERNAL"):e.$getText("DOCUMENTS_SHARED_OVERVIEW_MENU_DOWNLOAD"))+"\n ")]),e._v(" "),t.documentType!==e.documentTypes.EXTERNAL&&e.hasPermissionOnInstitution(e.permissionEnum.EXPORT_SECURE_FILES,t.institutionCode)?n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.showModalExportPDF(t)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_MENU_EXPORT_PDF"))+"\n ")]):e._e(),e._v(" "),n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.copyLink(t.id,t.documentType)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_MENU_COPY"))+"\n ")]),e._v(" "),n("div",{class:e.getIsDisabledExportOption(t)?"disabled-drop-down":"",attrs:{id:"esdh-export-option-"+t.id},on:{click:function(e){e.stopPropagation()}}},[e.getCanExportToESDH(t)?n("b-dropdown-item",{attrs:{disabled:e.getIsDisabledExportOption(t)},on:{click:function(n){return n.stopPropagation(),e.handleEsdhExportClicked(t)}}},[e._v("\n "+e._s(e.getSingleExportEsdhLabel(t))+"\n ")]):e._e()],1),e._v(" "),e.getCanExportToESDH(t)&&e.getIsDisabledExportOption(t)?n("b-tooltip",{attrs:{target:"esdh-export-option-"+t.id,triggers:"hover",placement:"top"}},[e._v("\n "+e._s(e.getEsdhExportOptionTooltipLabel(t))+"\n ")]):e._e(),e._v(" "),n("div",{class:e.getCanRemoveOwnAssociation(t)?"disabled-drop-down":"",on:{click:function(e){e.stopPropagation()}}},[e.getCanRemoveOwnAssociation(t)?n("b-dropdown-item",{on:{click:function(n){return n.stopPropagation(),e.handleRemoveAssociationClicked(t)}}},[e._v("\n "+e._s(e.$t("document.remove_association"))+"\n ")]):e._e()],1),e._v(" "),n("div",{class:e.getCanDeleteDocument(t)?"disabled-drop-down":"",attrs:{id:"delete-option-"+t.id},on:{click:function(e){e.stopPropagation()}}},[e.getCanShowDeleteOption(t)?n("b-dropdown-item",{attrs:{disabled:e.getCanDeleteDocument(t)},on:{click:function(n){return n.stopPropagation(),e.openDeleteDocumentConfirmModal(t)}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_DELET
1E_MENU"))+"\n ")]):e._e()],1),e._v(" "),e.getCanShowDeleteOption(t)&&e.getCanDeleteDocument(t)?n("b-tooltip",{attrs:{target:"delete-option-"+t.id,triggers:"hover",placement:"top"}},[e._v("\n "+e._s(e.$t("document.file_is_being_journalized"))+"\n ")]):e._e()],2),e._v(" "),e.getJournalingStatusIcon(t)?n("IconContainer",{staticClass:"document-icon-container",attrs:{id:"esdh-export-status-"+t.id,"data-warning":t.journalingStatus===e.esdhJournalingStatus.FAILED},on:{click:function(e){e.stopPropagation()}}},[n("Icon",{attrs:{name:e.getJournalingStatusIcon(t)}})],1):e._e(),e._v(" "),e.getJournalingStatusIcon(t)?n("b-tooltip",{attrs:{target:"esdh-export-status-"+t.id,triggers:"hover",placement:"top"}},[e._v("\n "+e._s(e.getJournalingStatus(t))+"\n ")]):e._e(),e._v(" "),t.isLocked?n("IconContainer",{staticClass:"document-icon-container"},[n("Icon",{attrs:{name:e.iconClassEnum.LOCK}})],1):t.canEdit?n("AulaButton",{staticClass:"document-icon-container",attrs:{variant:"link","aria-label":e.$getText("ARIA_LABEL_EDIT")},on:{click:function(n){return n.stopPropagation(),e.editElement(t.id,t.documentType)},keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.stopPropagation(),e.editElement(t.id,t.documentType))}}},[n("IconContainer",{staticClass:"document-icon-container"},[n("Icon",{attrs:{name:e.iconClassEnum.EDIT_PEN}})],1)],1):e._e(),e._v(" "),t.hasMedia?n("IconContainer",{staticClass:"document-icon-container"},[n("Icon",{attrs:{name:e.iconClassEnum.ATTACH_DOC}})],1):e._e()]],2):e._e()])}))],2)]),e._v(" "),e.documents.length>0?n("ObservedTarget",{on:{onIntersecting:e.onBottomReached}}):e._e()],1),e._v(" "),e.documentItems.documents&&0==e.documentItems.documents.length?n("div",{staticClass:"no-documents"},[e._v("\n "+e._s(e.$getText(e.profile.role===e.portalRoles.GUARDIAN?"DOCUMENTS_SECURE_NO_DOCUMENTS_GUARDIAN":"DOCUMENTS_SECURE_NO_DOCUMENTS"))+"\n ")]):e._e()],1),e._v(" "),n("aula-modal",{ref:"documentModal",attrs:{"hide-footer":!0,"is-scroll-top":!1,"header-text-from-textkey":!1,"header-text":e.liveDocument.title},on:{hidden:function(t){return e.$router.push({name:"documentsSecureList"})}}},[null!=e.liveDocument.creator?[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_CREATED"))+": "+e._s(e.liveDocument.creator.name)),n("br")]:e._e(
1),e._v(" "),null!=e.liveDocument.associatedGroups&&e.liveDocument.associatedGroups.length>0?[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_GROUP"))+":\n "+e._s(e.liveDocument.associatedGroups.map((function(e){return e.name})).join(", "))),n("br")]:e._e(),e._v(" "),null!=e.liveDocument.associatedInstitutionProfiles&&e.liveDocument.associatedInstitutionProfiles.length>0?[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_ASSOCIATION"))+":\n "+e._s(e.liveDocument.associatedInstitutionProfiles.map((function(e){return e.name})).join(", "))),n("br")]:e._e(),e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_OVERVIEW_TABLE_CATEGORY"))+": "+e._s(e.liveDocument.category)),n("br"),n("br"),e._v(" "),null!=e.liveDocument.content?n("div",{staticClass:"mb-3",domProps:{innerHTML:e._s(e.liveDocument.content.html)}}):e._e(),e._v(" "),n("attachment-thumbnails",{attrs:{attachments:e.liveDocument.attachments,parent:e.parentTypes.DOCUMENTS}}),e._v(" "),n("attachment-list",{attrs:{attachments:e.liveDocument.attachments,"show-media":!0}})],2),e._v(" "),n("aula-modal",{ref:"warningDownloadSensitiveFile",attrs:{"ok-text":"YES"},on:{cancelClicked:function(t){return e.$refs.warningDownloadSensitiveFile.hide()},okClicked:function(t){return e.downloadSensitiveFile()}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_ALERT_DOWNLOAD_SENSITIVE_FILE_1"))),n("br"),e._v("\n "+e._s(e.$getText("DOCUMENTS_ALERT_DOWNLOAD_SENSITIVE_FILE_2"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"warningLockDocument",attrs:{"ok-text":"YES"},on:{okClicked:function(t){return e.doLockDocument()},cancelClicked:function(t){return e.resetLockDocument()}}},[e._v("\n "+e._s(e.lockDocumentWarning)+" "),n("br"),e._v("\n "+e._s(e.$getText("DOCUMENTS_ALERT_LOCK_DOCUMENT_2"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"warningUnlockBeingExportedDocument",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.warningUnlockBeingExportedDocument.hide()}}},[e._v("\n "+e._s(e.$t("document.unlock_being_exported_document_warning"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"warningShareWithDifferentInstitution",attrs:{"show-cancel":!1,"is-scroll-top":!1,"ok-text":"YES"},on:{okClicked:function(t){return e.$refs.warningShareWithDifferentInstitution.hide()}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_ALERT_SHARE_WITH_DIFFERENT_INSTITUTION"))+"\n ")]),e._v(" "),n("toastr",{ref:"copyLinkToastr",attrs:{"is-scroll-top":!1,variant:"success","show-icon":!0,icon:"icon-Aula_check"}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_TOASTR_COPY_LINK"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"modalSharedWith",attrs:{"is-scroll-top":!1,"css-class":"shared-with-modal","header-text":"DOCUMENTS_SHARED_OVERVIEW_MENU_SHARE","ok-text":"DOCUMENTS_SHARE_FOLDER_MODAL_SAVE"},on:{cancelClicked:function(t){return e.$refs.modalSharedWith.hide()},okClicked:function(t){return e.sharedUsersAndGroupsStore(!1)}}},[n("div",{staticClass:"container-scroll"},[n("b-form-group",{attrs:{label:e.$getText("DOCUMENTS_SHARE_FOLDER_MODAL_USERPICKER"),"label-for":"input1"}},[n("aula-search-recipients",{ref:"modalSharedWithrecipients",attrs:{"select-all":!1,url:"findProfilesAndGroupsToShareDocument","show-search-icon":!0,"show-checkbox":!1,"enable-relatives-for-students":!1,"scope-employees-to-institution":!1,"from-module":e.moduleTypes.SECURE_DOCUMENT,"reset-input":e.resetSharedWithInput,"invite-members-when-selecting-group-portal-role":!0,"disable-portal-roles-members-when-expanding-group":[e.portalRoles.CHILD,e.portalRoles.GUARDIAN],"hide-portal-roles-when-expanding-group":[e.portalRoles.CHILD,e.portalRoles.GUARDIAN],"portal-roles":e.getSearchScope(),"include-self":!0,"existing-participants":e.appendSharedUsersAndGroupsSet,"extra-a-p-i-params":{regardingChildren:e.workingDocument.regardingInstitutionProfileIds}},on:{emitSelected:e.appendSharedUsersAndGroups}})],1),e._v(" "),n("b-container",[e.currentShared.length>0?n("b-row",{staticClass:"pb-1"},[n("b-col",{attrs:{cols:"7"}}),e._v(" "),n("b-col",{staticClass:"text-center text-nowrap",attrs:{cols:"5"}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARE_FOLDER_MODAL_CAN_EDIT"))+"\n ")])],1):e._e(
1),e._v(" "),e._l(e.currentShared,(function(t,i){return n("b-row",{key:i},[n("b-col",{staticClass:"text"},[e._v("\n "+e._s(t.displayName||t.groupName)+"\n ")]),e._v(" "),n("b-col",{staticClass:"text-center align-self-center",attrs:{cols:"3"}},[n("b-form-checkbox",{attrs:{disabled:t.role===e.portalRoles.GUARDIAN,checked:t.canEdit},model:{value:e.currentShared[i].canEdit,callback:function(t){e.$set(e.currentShared[i],"canEdit",t)},expression:"currentShared[index].canEdit"}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_DOCUMENT")))])])],1),e._v(" "),n("b-col",{staticClass:"align-self-center",attrs:{cols:"1"}},[n("i",{staticClass:"icon-Aula_bin",attrs:{tabindex:"0",role:"button","aria-label":e.$getText("ARIA_LABEL_DELETE")},on:{click:function(t){return e.currentShared.splice(i,1)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.currentShared.splice(i,1)}}})])],1)}))],2)],1)]),e._v(" "),n("aula-modal",{ref:"modalSharedWithGroups",attrs:{"is-scroll-top":!1,"is-loading":e.isUpdateSharing,"css-class":"document-sharing-modal shared-with-modal","header-text":"DOCUMENTS_SHARED_OVERVIEW_MENU_SHARE","ok-text":"DOCUMENTS_SHARE_FOLDER_MODAL_SAVE"},on:{cancelClicked:function(t){return e.$refs.modalSharedWithGroups.hide()},okClicked:function(t){return e.sharedUsersAndGroupsStore(!0)}}},[n("div",{staticClass:"container-scroll"},[n("b-form-group",{attrs:{label:e.$getText("DOCUMENTS_SHARE_FOLDER_MODAL_USERPICKER"),"label-for":"input1"}},[n("aula-search-recipients",{attrs:{"select-all":!1,url:"findProfilesAndGroupsToShareDocument","enable-relatives-for-students":!1,"scope-employees-to-institution":!1,"show-search-icon":!0,"reset-input":e.resetSharedWithInput,"from-module":e.moduleTypes.SECURE_DOCUMENT,"invite-members-when-selecting-group-portal-role":!0,"disable-portal-roles-members-when-expanding-group":[e.portalRoles.CHILD,e.portalRoles.GUARDIAN],"hide-portal-roles-when-expanding-group":[e.portalRoles.CHILD,e.portalRoles.GUARDIAN],"portal-roles":e.getSearchScope(),"include-self":!0,"existing-participants":e.appendSharedUsersAndGroupsSet,"extra-a-p-i-params":{regardingChildren:e.intersectedChildrenIds}},on:{emitSelected:e.appendSharedUsersAndGroups}})],1),e._v(" "),n("b-container",[e.currentShared.length>0?n("b-row",{staticClass:"pb-1"},[n("b-col",{attrs:{cols:"7"}}),e._v(" "),n("b-col",{staticClass:"text-center text-nowrap",attrs:{cols:"5"}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARE_FOLDER_MODAL_CAN_EDIT"))+"\n ")])],1):e._e(),e._v(" "),e._l(e.currentShared,(function(t,i){return n("b-row",{key:i,staticClass:"pb-1"},[n("b-col",{staticClass:"text"},[e._v("\n "+e._s(t.displayName||t.groupName)+"\n ")]),e._v(" "),n("b-col",{staticClass:"text-center align-self-center",attrs:{cols:"3"}},[n("b-form-checkbox",{attrs:{disabled:t.role===e.portalRoles.GUARDIAN,checked:t.canEdit},model:{value:e.currentShared[i].canEdit,callback:function(t){e.$set(e.currentShared[i],"canEdit",t)},expression:"currentShared[index].canEdit"}},[n("span",{staticClass:"sr-only"},[e._v(e._s(e.$getText("ARIA_LABEL_CHOOSE_DOCUMENT")))])])],1),e._v(" "),n("b-col",{staticClass:"delete",attrs:{cols:"1"}},[n("i",{staticClass:"icon-Aula_bin",attrs:{tabindex:"0",role:"button","aria-label":e.$getText("ARIA_LABEL_DELETE")},on:{click:function(t){return e.currentShared.splice(i,1)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.currentShared.splice(i,1)}}})])],1)}))],2)],1)]),e._v(" "),n("DocumentExportModal",{ref:"modalExportPDF",attrs:{"document-ids":e.exportingDocumentIds}}),e._v(" "),n("aula-modal",{ref:"modalSelectedWarning",attrs:{"header-text":"DOCUMENTS_SHARED_OVERVIEW_MENU_LOCKED_WARNING","show-cancel":!1,"is-scroll-top":!1},on:{okClicked:function(t){return e.$refs.modalSelectedWarning.hide()}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_ALERT_LOCKED_DOCUMENT_SELECTED"))+"\n "),n("br"),n("br"),e._v(" "),n("ul",e._l(e.selectedLockedDocuments,(function(t,i){return n("li",{key:i},[e._v("\n "+e._s(t.title)+"\n ")])})),0)]),e._v(" "),n("aula-modal",{ref:"modalSelectedWithoutExportWarning",attrs:{"header-text":"DOCUMENTS_SHARED_OVERVIEW_MENU_LOCKED_WARNING","show-cancel":!1,"is-scroll-top":!1},on:{okClicked:function(t){return e.$refs.modalSelectedWithoutExportWarning.hide()}}},[e._v("\n "+e._s(e.$getText("DOCUMENTS_ALERT_NO_EXPORT_RIGHT_DOCUMENT_SELECTED"))+"\n "),n("br"),n("br"),e._v(" "),n("ul",e._l(e.selectedDocWithoutExportRight,(function(t,i){return n("li",{key:i},[e._v("\n "+e._s(t.title)+"\n ")])})),0)]),e._v(" "),n("aula-modal",{ref:"exceededDocumentsExportToPdfWarningModal",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.exceededDocumentsExportToPdfWarningModal.hide()}}},[n("i18n",{attrs:{path:"document.exceeded_pdf_export_warning",tag:"p"},scopedSlots:e._u([{key:"total",fn:function(){return[n("strong",[e._v(e._s(e.maxDocumentsPerExport))])]},proxy:!0},{key:"remove",fn:function(){return[n("strong",[e._v(e._s(e.exceedDocumentsToExport))])]},proxy:!0}])})],1),e._v(" "),n("aula-modal",{ref:"shareWithOtherMunicipalitiesError",attrs:{"show-cancel":!1},on:{okClicked:function(t){return e.$refs.shareWithOtherMunicipalitiesError.hide()}}},[e._v("\n "+e._s(e.$getText("API_ERROR_SHARE_WITH_OTHER_MUNICIPALITIES"))+"\n ")]),e._v(" "),n("aula-modal",{ref:"deleteSecureDocumentConfirmModal",attrs:{"ok-text":"BUTTON_YES"},on:{okClicked:e.deleteDocument,cancelClicked:function(t){return e.$refs.deleteSecureDocumentConfirmModal.hide()}}},[e._v("\n "+e._s(e.$getText("DELETE_DOCUMENT_CONFIRM"))+" '"+e._s(e.selectedDocument.title)+"'. "),n("br"),e._v("\n "+e._s(e.$getText("DELETE_DOCUMENT_CONFIRM_2"))+" "),n("br"),e._v("\n "+e._s(e.$getText("DELETE_DOCUMENT_CONFIRM_3"))+"\n ")]),e._v(" "),n("AulaModal",{ref:"restoreWarningModal",attrs:{"ok-text":"BUTTON_YES"},on:{okClicked:e.confirmRestoringDeletedSecureDocument,cancelClicked:e.cancelRestoring}},[e.selectedDocument?n("p",[e._v("\n "+e._s(e.$getText("DELETED_SECURE_DOCUMENT_RESTORE_WARNING_1"))+" "),n("b",[e._v(e._s(e.selectedDocument.title))]),e._v("."),n("br"),e._v("\n "+e._s(e.$getText("DELETED_SECURE_DOCUMENT_RESTORE_WARNING_2"))+"\n ")]):e._e(
1)]),e._v(" "),n("AulaModal",{ref:"esdhExportInvalidDocumentsWarningModal",attrs:{"ok-text":e.hasValidEsdhDocuments?"BUTTON_YES":"OK","show-cancel":e.hasValidEsdhDocuments,"css-class":"document-warning-modal"},on:{okClicked:e.confirmRemoveInvalidDocuments,cancelClicked:e.cancelRemoveInvalidDocuments}},[e.hasDocumentsWithExceededChildren?[n("i18n",{attrs:{path:"document.exceeded_regarding_children_warning_1"},scopedSlots:e._u([{key:"systemName",fn:function(){return[e._v("\n "+e._s(e.recipientSystemName)+"\n ")]},proxy:!0}],null,!1,3335319147)}),e._v(" "),n("ul",e._l(e.exceedRegardingChildrenDocuments,(function(t,i){return n("li",{key:t.id+"-"+i},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.PAPER}})],1),e._v(" "),n("div",{staticClass:"document-title"},[e._v("\n "+e._s(t.title)+"\n ")])],1)})),0),e._v(" "),e.hasValidEsdhDocuments?n("i18n",{attrs:{path:"document.exceeded_regarding_children_warning_2"},scopedSlots:e._u([{key:"systemName",fn:function(){return[e._v("\n "+e._s(e.recipientSystemName)+"\n ")]},proxy:!0}],null,!1,3335319147)}):e._e()]:e.hasDocumentsWithNoChildren?[n("i18n",{attrs:{path:"document.no_regarding_children_warning_1"},scopedSlots:e._u([{key:"systemName",fn:function(){return[e._v("\n "+e._s(e.recipientSystemName)+"\n ")]},proxy:!0}])}),e._v(" "),n("ul",e._l(e.noRegardingChildrenDocuments,(function(t,i){return n("li",{key:t.id+"-"+i},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.PAPER}})],1),e._v(" "),n("div",{staticClass:"document-title"},[e._v("\n "+e._s(t.title)+"\n ")])],1)})),0),e._v(" "),e.hasValidEsdhDocuments?n("i18n",{attrs:{path:"document.no_regarding_children_warning_2"},scopedSlots:e._u([{key:"systemName",fn:function(){return[e._v("\n "+e._s(e.recipientSystemName)+"\n ")]},proxy:!0}],null,!1,3335319147)}):e._e()]:e.hasInValidJournalizedStatusDocumentsToExport?[n("i18n",{attrs:{path:"document.export_invalid_journalized_status_warning"}}),e._v(" "),n("ul",e._l(e.invalidDocumentsToExport,(function(t,i){return n("li",{key:t.id+"-"+i},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.PAPER}})],1),e._v(" "),n("div",{staticClass:"document-title"},[e._v("\n "+e._s(t.title)+"\n ")])],1)})),0),e._v(" "),e.hasValidEsdhDocuments?[e._v(" "+e._s(e.$t("document.remove_listed_documents_warning")))]:e._e()]:e._e(),e._v(" "),e.hasValidEsdhDocuments?n("span",[n("br"),e._v(" "),n("br"),e._v("\n "+e._s(e.$t("warning.continue"))+"\n ")]):e._e()],2),e._v(" "),n("AulaModal",{ref:"noExportRightWarningModal",attrs:{"ok-text":e.hasValidEsdhDocuments?"BUTTON_YES":"OK","show-cancel":e.hasValidEsdhDocuments,"css-class":"document-warning-modal"},on:{okClicked:e.confirmRemoveDocumentsWithoutExportRight,cancelClicked:e.cancelRemoveDocumentsWithoutExportRight}},[e.hasDocumentsWithoutJournalizationRight?[n("i18n",{attrs:{path:"document.no_export_permission_warning_1"},scopedSlots:e._u([e.hasValidEsdhDocuments?{key:"extendedMessage",fn:function(){return[e._v("\n , "+e._s(e.$t("document.no_export_permission_warning_2"))+"\n ")]},proxy:!0}:{key:"extendedMessage",fn:function(){return[e._v(".")]},proxy:!0}],null,!0)}),e._v(" "),n("ul",e._l(e.documentsWithoutJournalizationRight,(function(t,i){return n("li",{key:t.id+"-"+i},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.PAPER}})],1),e._v(" "),n("div",{staticClass:"document-title"},[e._v("\n "+e._s(t.title)+"\n ")])],1)})),0)]:e.hasDocumentsWithoutRecipientConfigured?[e._v("\n "+e._s(e.$t("document.no_recipients_configured_warning"))+"\n "),n("ul",e._l(e.documentsWithoutRecipientConfigured,(function(t,i){return n("li",{key:t.id+"-"+i},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.PAPER}})],1),e._v(" "),n("div",{staticClass:"document-title"},[e._v("\n "+e._s(t.title)+"\n ")])],1)})),0)]:e._e(),e._v(" "),e.hasValidEsdhDocuments?n("span",[e._v("\n "+e._s(e.$t("document.continue_without_listed_files_confirmation"))+"\n ")]):e._e()],2),e._v(" "),n("AulaModal",{ref:"removeAssociationWithoutEditRightWarningModal",attrs:{"ok-text":"BUTTON_YES","css-class":"document-remove-association-warning-modal"},on:{okClicked:e.confirmRemoveDocumentAssociationWithoutEditRight,cancelClicked:function(t){return e.$refs.removeAssociationWithoutEditRightWarningModal.hide()}}},[n("i18n",{attrs:{path:"document.remove_association_without_edit_right_warning",tag:"p"},scopedSlots:e._u([{key:"notText",fn:function(){return[n("strong",[e._v(e._s(e.$t("label.not")))])]},proxy:!0}])}),e._v(" "),n("ul",e._l(e.documentsWithoutEditRights,(function(t,i){return n("li",{key:t.id+"-"+i},[n("IconContainer",[n("Icon",{attrs:{name:e.iconClassEnum.PAPER}})],1),e._v(" "),n("div",{staticClass:"document-title"},[e._v("\n "+e._s(t.title)+"\n ")])],1)})),0),e._v(" "),n("p",[e._v(e._s(e.$t("document.continue_without_listed_files_confirmation")))])],1
1),e._v(" "),n("DocumentEsdhExportDrawer",{ref:"esdhExportDrawer",attrs:{"selected-documents":e.selectedEsdhDocumentsToExport,"recipient-system-name":e.recipientSystemName},on:{remove:e.onRemoveSelectedEsdhExportSecurefile,sent:e.refresh}}),e._v(" "),n("DocumentAssociationRemovalDrawer",{ref:"associationRemovalDrawer",attrs:{"selected-documents":e.selectedDocumentsToRemoveAssociation},on:{remove:e.onRemoveAssociationRemovalDocument,sent:e.onSendingRemoveAssociation}})],1)}),[],!1,null,"3af5c685",null);t.a=it.exports},455:function(e,t,n){"use strict";var i=n(1),o=n.n(i),r=n(6),s=n(0),a=n(8),c=n(163),l=n(13);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 d(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){o()(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 E={data:function(){return{portalRoles:a.a}},computed:d(d({},Object(r.c)({isMobile:s.a.GET_IS_MOBILE,hasPermission:s.a.HAS_PERMISSION})),{},{userProfileStore:function(){return Object(l.a)()},profile:function(){return this.userProfileStore.institutionProfile},multiButtonItems:function(){var e=[];return e.push({icon:"icon-Aula_plus",text:"DOCUMENTS_SHARED_CREATE_DOCUMENT_NOTE",action:"newNote"}),e.push({icon:"icon-Aula_plus",text:"DOCUMENTS_SHARED_CREATE_DOCUMENT",action:"newInternalFile"}),e.push({icon:"icon-Aula_attach_doc",text:"DOCUMENTS_SHARED_IMPORT_FILE_LINK",action:"newExternalFile"}),e}}),mounted:function(){this.isMobile||setTimeout((function(){document.querySelector(".documents-secure-list-container .documents-toolbar").focus()}),500)},components:{MultiButtonMobile:c.a}},_=n(3),m=Object(_.a)(E,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"documents-toolbar-container"},[e.isMobile||e.profile.role===e.portalRoles.GUARDIAN?e._e():n("nav",{staticClass:"documents-toolbar navbar navbar-expand-lg",attrs:{tabindex:"0"}},[n("ul",{staticClass:"navbar-nav mr-auto"},[n("li",{staticClass:"nav-item"},[n("b-btn",{staticClass:"tool-link",attrs:{variant:"link"},on:{click:function(t){return e.$router.push({name:"createDocumentNote"})}}},[n("i",{staticClass:"icon icon-Aula_plus in-circle"}),e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_CREATE_DOCUMENT_NOTE"))+"\n ")])],1),e._v(" "),n("li",{staticClass:"nav-item"},[n("b-btn",{staticClass:"tool-link",attrs:{variant:"link"},on:{click:function(t){return e.$router.push({name:"documentsSecureNew"})}}},[n("i",{staticClass:"icon icon-Aula_plus in-circle"}),e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_CREATE_DOCUMENT"))+"\n ")])],1),e._v(" "),n("li",{staticClass:"nav-item"},[n("b-btn",{staticClass:"tool-link",attrs:{variant:"link"},on:{click:function(t){return e.$router.push({name:"documentsSecureImport"})}}},[n("i",{staticClass:"icon icon-Aula_attach_doc"}),e._v("\n "+e._s(e.$getText("DOCUMENTS_SHARED_IMPORT_FILE_LINK"))+"\n ")])],1)])]),e._v(" "),e.isMobile&&e.profile.role!==e.portalRoles.GUARDIAN?n("multi-button-mobile",{attrs:{items:e.multiButtonItems},on:{newInternalFile:function(t){return e.$router.push({name:"documentsSecureNew"})},newNote:function(t){return e.$router.push({name:"createDocumentNote"})},newExternalFile:function(t){return e.$router.push({name:"documentsSecureImport"})}}}):e._e()],1)}),[],!1,null,"0133dd4e",null);t.a=m.exports},463:function(e,t,n){"use strict";var i=n(88),o=n(26),r=n(147),s=n(13),a={components:{"badge-notification":i.a},props:{item:Object,badges:{type:Number,default:0}},data:function(){return{institutionRole:o.a}},computed:{userProfileStore:function(){return Object(s.a)()},profile:function(){return this.userProfileStore.institutionProfile},isSelected:function(){var e=this.item.url;return this.item.widgetId&&(e="/widgets/W"+this.item.widgetId+"V"+this.item.widgetVersion),Boolean(this.$route.path.match("^".concat(e)))},menuTitle:function(){var e=r.a.getMenuType(this.item.type);return e?this.$getText(e):this.item.name},isWidget:function(){return null!=this.item.widgetId},isImage:function(){return r.a.getIsIconImage(this.menuIconImageSource)},menuIconImageSource:function(){var e;return this.isChild&&!this.isWidget?"static/icons/"+this.item.icon+"_child.svg":this.isWidget&&!this.item.icon?"icon-Aula_widget":this.isSelected&&(null===(e=this.item.iconHover)||void 0===e?void 0:e.length)>0?this.item.iconHover:r.a.getMenuIconClass(this.item)},isChild:function(){return this.userProfileStore.institutionRoles.includes(this.institutionRole.EARLY_STUDENT)}}},c=n(3),l=Object(c.a)(a,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-item",attrs:{title:e.menuTitle,"data-selected":e.isSelected},on:{click:function(t){return t.stopPropagation(),e.$emit("menuClick",e.item)},keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.$emit("menuClick",e.item)}}},[void 0!==e.item.new&&e.item.new>0?n("div",{staticClass:"new-content-icon"}
1,[e._v("\n "+e._s(e.item.new)+"\n ")]):e._e(),e._v(" "),n("div",{staticClass:"position-relative"},[e.badges>0?n("badge-notification",{attrs:{amount:e.badges,border:!0}}):e._e(),e._v(" "),e.isImage?n("img",{staticClass:"menu-icon",attrs:{src:e.menuIconImageSource,alt:e.item.name}}):n("i",{staticClass:"menu-icon",class:e.menuIconImageSource})],1),e._v(" "),n("div",{staticClass:"menu-text text-truncate",class:{"widget-text":e.isWidget}},[e._v("\n "+e._s(e.menuTitle)+"\n ")])])}),[],!1,null,"39176bea",null);t.a=l.exports},478:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(4),o=n(116),r=n(300),s=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const a=Object(o.c)("adminStore",(()=>{const e=Object(i.ref)([]);return{institutions:e,fetch:()=>s(void 0,void 0,void 0,(function*(){e.value=(yield r.a.getInstitutions()).map((e=>Object.assign(Object.assign({},e),{institutionType:e.type})))}))}}));var c=function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function s(e){try{c(i.next(e))}catch(e){r(e)}}function a(e){try{c(i.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))};const l=()=>{const e=a(),{institutions:t}=Object(o.e)(e);return{institutions:t,selectedInstitutionCode:Object(i.ref)(null),fetchInstitutions:()=>c(void 0,void 0,void 0,(function*(){yield e.fetch()}))}}},90:function(e,t,n){"use strict";var i;n.d(t,"a",(function(){return i})),function(e){e.OPEN="open",e.CLOSED="closed",e.APPLICATION="application"}(i||(i={}))}}]); 2//# sourceMappingURL=9.ee4a58b46cb5b0e897c0.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.