@sync-in/server 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -0
- package/package.json +1 -1
- package/static/{chunk-NCIAR3N4.js → chunk-2LIE3SKB.js} +1 -1
- package/static/{chunk-2CQOSX2Q.js → chunk-3BKYCF53.js} +1 -1
- package/static/{chunk-HQC3W7BS.js → chunk-6CFIZHYI.js} +1 -1
- package/static/{chunk-HDDBV3QQ.js → chunk-7FVU676A.js} +1 -1
- package/static/{chunk-2QEYCCHN.js → chunk-7RNZNYVF.js} +1 -1
- package/static/{chunk-TFBTBTPR.js → chunk-7SJOQRBE.js} +1 -1
- package/static/{chunk-CTWOQLAR.js → chunk-BS5LXHXU.js} +1 -1
- package/static/{chunk-Y6IYSEKU.js → chunk-CPHC7U34.js} +1 -1
- package/static/{chunk-7U66TR6P.js → chunk-DYRV5R67.js} +1 -1
- package/static/{chunk-3RLZPQMJ.js → chunk-EWJD5G76.js} +1 -1
- package/static/{chunk-AXITQYVN.js → chunk-EYXC4W63.js} +1 -1
- package/static/{chunk-VIL6L67B.js → chunk-GSVMWC5N.js} +1 -1
- package/static/{chunk-EWY4ALVF.js → chunk-HNWPHW2W.js} +1 -1
- package/static/{chunk-FBG4NUDE.js → chunk-IPGNGPWY.js} +1 -1
- package/static/{chunk-5OIPLRAE.js → chunk-J5O3CY2H.js} +1 -1
- package/static/{chunk-R4USKWW6.js → chunk-JRVJIJB5.js} +1 -1
- package/static/{chunk-AYEOHGUD.js → chunk-MAWDGVNC.js} +1 -1
- package/static/{chunk-2SX3MVH3.js → chunk-N3QPDPBV.js} +1 -1
- package/static/{chunk-WA3LPP4G.js → chunk-NSXFB3SX.js} +1 -1
- package/static/{chunk-2XXS272C.js → chunk-OVO4W2GF.js} +1 -1
- package/static/{chunk-LHKO5Y4A.js → chunk-SOLCSMU7.js} +1 -1
- package/static/{chunk-RGONEEJE.js → chunk-SY5HMUMM.js} +1 -1
- package/static/{chunk-GI2LXVWQ.js → chunk-SZKZH4MJ.js} +1 -1
- package/static/{chunk-ZSMTUPAP.js → chunk-ULTPIQL3.js} +1 -1
- package/static/{chunk-AA6ZTGRW.js → chunk-VFSSL4TI.js} +1 -1
- package/static/{chunk-WQPVP63E.js → chunk-WGSPBZVN.js} +1 -1
- package/static/{chunk-ZZGFGD5E.js → chunk-X6UFHF4Q.js} +1 -1
- package/static/{chunk-ZS5YIDNI.js → chunk-XBHT4AH5.js} +1 -1
- package/static/{chunk-5JDPARJT.js → chunk-ZYB4TLJM.js} +1 -1
- package/static/index.html +1 -1
- package/static/{main-7IVUWYWM.js → main-EDITZWHO.js} +3 -3
- package/sync-in-server.js +17 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as fe,b as he,c as _e,d as ve,f as xe,i as Se}from"./chunk-5JDPARJT.js";import{a as Ce,b as be}from"./chunk-2CQOSX2Q.js";import{f as ge}from"./chunk-ZZGFGD5E.js";import{J as re,K as le,Q as E,Sb as pe,ub as me,xb as ce,yb as ue,zb as de}from"./chunk-HDDBV3QQ.js";import{Ad as Q,Bb as L,Bd as Y,Bf as ae,Dc as R,Dd as Z,Eb as h,Fb as u,Gf as oe,Me as ne,Qb as s,Rb as b,Sa as o,Sb as T,Tb as N,Xa as S,Xc as V,Yc as M,_c as p,_d as ee,_f as se,ab as P,ad as j,bc as v,bd as B,cc as x,cd as q,dc as O,ed as g,fb as d,jd as H,kd as X,lb as l,ld as $,md as z,nb as C,nd as W,pa as A,pb as w,qa as I,rb as f,sb as y,tb as G,td as J,ub as F,ud as K,vb as n,ve as te,wa as k,wb as a,xb as c,xe as ie}from"./chunk-FPEGN42P.js";import{a as U}from"./chunk-GAL4ENT6.js";function Te(i,m){if(i&1&&(c(0,"fa-icon",42),n(1,"span"),s(2),a()),i&2){let e=u();l("icon",e.icons.faPen),o(2),b(e.guest.fullName)}}function Ee(i,m){if(i&1&&(c(0,"fa-icon",42),n(1,"span",43),s(2,"New guest"),a()),i&2){let e=u();l("icon",e.icons.faPlus)}}function De(i,m){if(i&1&&c(0,"fa-icon",2),i&2){let e=u();l("icon",e.icons.faSpinner)}}function we(i,m){i&1&&(n(0,"h4",3)(1,"span",43),s(2,"Edit guest"),a()())}function ye(i,m){if(i&1&&(c(0,"fa-icon",44),n(1,"span",45),s(2,"Account"),a()),i&2){let e=u();l("icon",e.icons.faAddressCard)}}function Ge(i,m){if(i&1&&c(0,"app-password-strength-bar",22),i&2){let e=u();l("passwordToCheck",e.guestForm.value.password)}}function Fe(i,m){if(i&1&&(n(0,"option",26),s(1),a()),i&2){let e=m.$implicit;l("ngValue",e),o(),b(e)}}function Ne(i,m){if(i&1&&(n(0,"option",34),s(1),a()),i&2){let e=m.$implicit,r=u();l("ngValue",r.allNotifications.indexOf(e)),o(),b(e)}}function Ue(i,m){if(i&1&&(n(0,"div"),s(1),v(2,"amDateFormat"),a(),n(3,"div"),s(4),v(5,"amDateFormat"),a()),i&2){let e=u(2);o(),N("",x(2,4,e.guest.currentAccess)," - ",e.guest.currentIp,""),o(3),N("",x(5,6,e.guest.lastAccess)," - ",e.guest.lastIp,"")}}function Ae(i,m){i&1&&(n(0,"span",37),s(1,"never"),a())}function Ie(i,m){if(i&1&&(n(0,"div",11)(1,"div",12)(2,"label",46),s(3,"Creation date"),a(),n(4,"div",47),s(5),v(6,"amDateFormat"),a()(),n(7,"div",48)(8,"label",49),s(9,"Last accesses"),a(),n(10,"div",50),d(11,Ue,6,8)(12,Ae,2,0,"span",37),a()()()),i&2){let e=u();o(5),b(x(6,2,e.guest.createdAt)),o(6),f(e.guest.lastAccess?11:12)}}function ke(i,m){if(i&1&&(c(0,"fa-icon",44),n(1,"span",51),s(2,"Managers"),a(),n(3,"span"),s(4),a()),i&2){let e=u();l("icon",e.icons.faUsersGear),o(4),T("(",e.guestForm.value.managers.length||0,")")}}function Pe(i,m){i&1&&(n(0,"small",37),s(1,"At least one manager is required"),a())}function Le(i,m){if(i&1){let e=L();n(0,"button",52),h("click",function(){A(e);let t=u();return I(t.confirmDeletion=!0)}),s(1," Remove "),a()}if(i&2){let e=u();l("disabled",e.confirmDeletion)}}var st=(()=>{class i{constructor(e,r,t){this.locale=e,this.layout=r,this.userService=t,this.guest=null,this.guestChange=new k,this.user=this.userService.user,this.icons={GROUPS:ce.GROUPS,faPlus:ae,faPen:ne,faUsersGear:se,faSpinner:oe,faAddressCard:te,faUsers:ee,faShieldHalved:ie},this.allNotifications=Object.values(E),this.defaultPassword=this.layout.translateString(ue),this.languages=this.layout.getLanguages(!0),this.submitted=!1,this.loading=!1,this.confirmDeletion=!1}ngOnInit(){this.guestForm=new q({login:new g(this.guest?.login||"",[p.required,p.pattern(re)]),email:new g(this.guest?.email||"",[p.required,p.maxLength(255),p.email]),firstName:new g(this.guest?.firstName||"",[p.required,p.maxLength(255)]),lastName:new g(this.guest?.lastName||"",p.maxLength(255)),password:new g(this.guest?this.defaultPassword:"",p.maxLength(255)),language:new g(this.guest?.language||null),notification:new g(this.guest?.notification||Object.values(E).indexOf(E.APPLICATION_EMAIL)),isActive:new g(this.guest?this.guest.isActive:!0),managers:new g(this.guest?.managers||[me(this.user)])})}updatePassword(e){this.guestForm.controls.password.setValue(e),this.guestForm.controls.password.markAsDirty()}updateManagers(e){this.guestForm.controls.managers.setValue(e),this.guestForm.controls.managers.markAsDirty(),this.guestForm.controls.managers.setErrors(e.length?null:{incorrect:!0})}searchMembers(e){let r={search:e,ignoreUserIds:this.guestForm.value.managers.map(t=>t.id),usersRole:le.USER,onlyUsers:!0};return this.userService.searchMembers(r)}onCancel(){this.confirmDeletion?this.confirmDeletion=!1:this.layout.closeDialog()}onSubmit(){if(this.submitted=!0,this.confirmDeletion)this.userService.deleteGuest(this.guest.id).subscribe({next:()=>{this.guestChange.emit(["delete",this.guest]),this.layout.sendNotification("success","Guest deleted",this.guest.login),this.layout.closeDialog()},error:e=>this.onError(e)});else if(!this.guest)this.userService.createGuest(this.makeDto(!0)).subscribe({next:e=>{this.guestChange.emit(["add",e]),this.layout.sendNotification("success","Guest created",this.guestForm.value.login),this.layout.closeDialog()},error:e=>this.onError(e)});else{let e=this.makeDto();if(!Object.keys(e).length){this.loading=!1,this.submitted=!1;return}this.userService.updateGuest(this.guest.id,e).subscribe({next:r=>{r?this.guestChange.emit(["update",r]):this.guestChange.emit(["delete",this.guest]),this.layout.sendNotification("success","Guest updated",this.guestForm.value.login),this.layout.closeDialog()},error:r=>this.onError(r)})}}makeDto(e=!1){let r={};if(e)r=U({},this.guestForm.value);else for(let t in this.guestForm.controls)this.guestForm.controls[t].dirty&&(r[t]=this.guestForm.controls[t].value);for(let t in r)switch(t){case"language":r[t]=r[t]===de?null:r[t];break;case"managers":r[t]=r[t].map(_=>_.id);break}return r}onError(e){this.layout.sendNotification("error","Guest error",this.guestForm.value.login,e),this.submitted=!1,this.confirmDeletion=!1}static{this.\u0275fac=function(r){return new(r||i)(S(K),S(pe),S(ge))}}static{this.\u0275cmp=P({type:i,selectors:[["app-user-guest-dialog"]],inputs:{guest:"guest"},outputs:{guestChange:"guestChange"},decls:70,vars:40,consts:[[1,"modal-header","align-items-center"],[1,"modal-title"],["animation","spin","size","sm",1,"ms-2",3,"icon"],[1,"modal-title","ms-auto"],["aria-label","Close","type","button",3,"click"],[1,"modal-body",3,"formGroup"],["type","pills",3,"justified"],[1,"my-3"],["customClass","tab-dialog form-validation",3,"selectTab"],["tabHeading",""],[1,"d-flex","flex-column"],[1,"d-flex","col-12","pb-3"],[1,"flex-fill","col-6","pe-4"],["for","login","l10nTranslate",""],["id","login","appAutofocus","","formControlName","login","autocomplete","off","type","text",1,"form-control","form-control-sm",3,"autoSelect"],[1,"flex-fill","col-6","ps-4"],["for","email","l10nTranslate",""],["id","email","formControlName","email","autocomplete","off","type","email",1,"form-control","form-control-sm"],["for","firstName","l10nTranslate",""],["id","firstName","formControlName","firstName","autocomplete","off","type","text",1,"form-control","form-control-sm"],["for","lastName","l10nTranslate",""],["id","lastName","formControlName","lastName","autocomplete","off","type","text",1,"form-control","form-control-sm"],[1,"position-absolute","pe-4",2,"right","50%","padding-top","6px",3,"passwordToCheck"],["id","password","placeholder","Set a password",3,"passwordChange","password","showGenerator","showLabel","isRequired"],["for","language","l10nTranslate",""],["id","language","formControlName","language",1,"form-control","form-select","form-select-sm"],[3,"ngValue"],[1,"d-flex","flex-column","col-6","pe-4"],["for","account","l10nTranslate",""],["id","account",1,"form-check","form-switch","form-check-inline"],["for","isActive",1,"form-check-label"],["formControlName","isActive","id","isActive","type","checkbox",1,"form-check-input"],["for","notification","l10nTranslate",""],["id","notification","formControlName","notification",1,"form-control","form-select","form-select-sm"],["l10nTranslate","",3,"ngValue"],["customClass","tab-dialog",3,"selectTab"],[3,"membersChange","members","withPermissions","customPlaceholder","searchFunction"],["l10nTranslate","",1,"text-danger"],[1,"modal-footer"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-danger",3,"disabled"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","button","l10nTranslate","",3,"click","disabled"],[1,"me-2",3,"icon"],["l10nTranslate",""],[3,"icon"],["l10nTranslate","",1,"ms-2"],["for","created","l10nTranslate",""],["id","created"],[1,"d-flex","flex-column","align-items-end","col-6","ps-4"],["for","access","l10nTranslate",""],["id","access",1,"text-align-end"],["l10nTranslate","",1,"ms-2","me-1"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-danger",3,"click","disabled"]],template:function(r,t){r&1&&(n(0,"div",0)(1,"h4",1),d(2,Te,3,2)(3,Ee,3,1)(4,De,1,1,"fa-icon",2),a(),d(5,we,3,0,"h4",3),n(6,"button",4),h("click",function(){return t.layout.closeDialog()}),a()(),n(7,"div",5)(8,"tabset",6),c(9,"hr",7),n(10,"tab",8),h("selectTab",function(){return t.tabView=null}),d(11,ye,3,1,"ng-template",9),n(12,"div",10)(13,"div",11)(14,"div",12)(15,"label",13),s(16,"Login"),a(),c(17,"input",14),a(),n(18,"div",15)(19,"label",16),s(20,"Email"),a(),c(21,"input",17),a()(),n(22,"div",11)(23,"div",12)(24,"label",18),s(25,"First name"),a(),c(26,"input",19),a(),n(27,"div",15)(28,"label",20),s(29,"Last name"),a(),c(30,"input",21),a()(),n(31,"div",11)(32,"div",12),d(33,Ge,1,1,"app-password-strength-bar",22),n(34,"app-input-password",23),h("passwordChange",function(D){return t.updatePassword(D)}),a()(),n(35,"div",15)(36,"label",24),s(37,"Language"),a(),n(38,"select",25),G(39,Fe,2,2,"option",26,y),a()()(),n(41,"div",11)(42,"div",27)(43,"label",28),s(44,"Account status"),a(),n(45,"div",29)(46,"label",30),c(47,"input",31),n(48,"span"),s(49),v(50,"translate"),v(51,"titlecase"),a()()()(),n(52,"div",15)(53,"label",32),s(54,"Notification"),a(),n(55,"select",33),G(56,Ne,2,2,"option",34,y),a()()(),d(58,Ie,13,4,"div",11),a()(),n(59,"tab",35),h("selectTab",function(){return t.tabView="managers"}),d(60,ke,5,2,"ng-template",9),n(61,"div",7)(62,"app-user-search",36),h("membersChange",function(D){return t.updateManagers(D)}),a(),d(63,Pe,2,0,"small",37),a()()()(),n(64,"div",38),d(65,Le,2,1,"button",39),n(66,"button",40),h("click",function(){return t.onCancel()}),s(67,"Cancel"),a(),n(68,"button",41),h("click",function(){return t.onSubmit()}),s(69),a()()),r&2&&(o(2),f(t.guest?2:3),o(2),f(t.loading?4:-1),o(),f(t.guest?5:-1),o(),w("btn-close btn-close-white ",t.guest?"ms-2":"ms-auto"," ms-2"),o(),l("formGroup",t.guestForm),o(),l("justified",!0),o(9),C("is-invalid",t.guestForm.controls.login.invalid),l("autoSelect",!1),o(4),C("is-invalid",t.guestForm.controls.email.invalid),o(5),C("is-invalid",t.guestForm.controls.firstName.invalid),o(7),f(t.guestForm.value.password!==t.defaultPassword?33:-1),o(),l("password",t.guestForm.value.password)("showGenerator",!0)("showLabel",!0)("isRequired",!0),o(5),F(t.languages),o(9),C("text-danger",!t.guestForm.value.isActive),o(),T(" ",x(51,38,O(50,35,t.guestForm.value.isActive?"active":"suspended",t.locale.language))," "),o(7),F(t.allNotifications),o(2),f(t.guest?58:-1),o(4),l("members",t.guestForm.value.managers)("withPermissions",!1)("customPlaceholder","Type to search for managers to add")("searchFunction",t.searchMembers.bind(t)),o(),f(t.guestForm.value.managers.length?-1:63),o(2),f(t.guest!=null&&t.guest.id?65:-1),o(3),w("btn btn-sm ",t.confirmDeletion?"btn-danger":"btn-primary",""),l("disabled",t.guestForm.invalid||t.submitted),o(),T(" ",t.confirmDeletion?"Confirm deletion":"Confirm"," "))},dependencies:[Z,Y,fe,J,z,W,M,V,$,j,B,H,X,Ce,be,xe,Q,R,Se,he,_e,ve],encapsulation:2})}}return i})();export{st as a};
|
|
1
|
+
import{a as fe,b as he,c as _e,d as ve,f as xe,i as Se}from"./chunk-ZYB4TLJM.js";import{a as Ce,b as be}from"./chunk-3BKYCF53.js";import{f as ge}from"./chunk-X6UFHF4Q.js";import{J as re,K as le,Q as E,Sb as pe,ub as me,xb as ce,yb as ue,zb as de}from"./chunk-7FVU676A.js";import{Ad as Q,Bb as L,Bd as Y,Bf as ae,Dc as R,Dd as Z,Eb as h,Fb as u,Gf as oe,Me as ne,Qb as s,Rb as b,Sa as o,Sb as T,Tb as N,Xa as S,Xc as V,Yc as M,_c as p,_d as ee,_f as se,ab as P,ad as j,bc as v,bd as B,cc as x,cd as q,dc as O,ed as g,fb as d,jd as H,kd as X,lb as l,ld as $,md as z,nb as C,nd as W,pa as A,pb as w,qa as I,rb as f,sb as y,tb as G,td as J,ub as F,ud as K,vb as n,ve as te,wa as k,wb as a,xb as c,xe as ie}from"./chunk-FPEGN42P.js";import{a as U}from"./chunk-GAL4ENT6.js";function Te(i,m){if(i&1&&(c(0,"fa-icon",42),n(1,"span"),s(2),a()),i&2){let e=u();l("icon",e.icons.faPen),o(2),b(e.guest.fullName)}}function Ee(i,m){if(i&1&&(c(0,"fa-icon",42),n(1,"span",43),s(2,"New guest"),a()),i&2){let e=u();l("icon",e.icons.faPlus)}}function De(i,m){if(i&1&&c(0,"fa-icon",2),i&2){let e=u();l("icon",e.icons.faSpinner)}}function we(i,m){i&1&&(n(0,"h4",3)(1,"span",43),s(2,"Edit guest"),a()())}function ye(i,m){if(i&1&&(c(0,"fa-icon",44),n(1,"span",45),s(2,"Account"),a()),i&2){let e=u();l("icon",e.icons.faAddressCard)}}function Ge(i,m){if(i&1&&c(0,"app-password-strength-bar",22),i&2){let e=u();l("passwordToCheck",e.guestForm.value.password)}}function Fe(i,m){if(i&1&&(n(0,"option",26),s(1),a()),i&2){let e=m.$implicit;l("ngValue",e),o(),b(e)}}function Ne(i,m){if(i&1&&(n(0,"option",34),s(1),a()),i&2){let e=m.$implicit,r=u();l("ngValue",r.allNotifications.indexOf(e)),o(),b(e)}}function Ue(i,m){if(i&1&&(n(0,"div"),s(1),v(2,"amDateFormat"),a(),n(3,"div"),s(4),v(5,"amDateFormat"),a()),i&2){let e=u(2);o(),N("",x(2,4,e.guest.currentAccess)," - ",e.guest.currentIp,""),o(3),N("",x(5,6,e.guest.lastAccess)," - ",e.guest.lastIp,"")}}function Ae(i,m){i&1&&(n(0,"span",37),s(1,"never"),a())}function Ie(i,m){if(i&1&&(n(0,"div",11)(1,"div",12)(2,"label",46),s(3,"Creation date"),a(),n(4,"div",47),s(5),v(6,"amDateFormat"),a()(),n(7,"div",48)(8,"label",49),s(9,"Last accesses"),a(),n(10,"div",50),d(11,Ue,6,8)(12,Ae,2,0,"span",37),a()()()),i&2){let e=u();o(5),b(x(6,2,e.guest.createdAt)),o(6),f(e.guest.lastAccess?11:12)}}function ke(i,m){if(i&1&&(c(0,"fa-icon",44),n(1,"span",51),s(2,"Managers"),a(),n(3,"span"),s(4),a()),i&2){let e=u();l("icon",e.icons.faUsersGear),o(4),T("(",e.guestForm.value.managers.length||0,")")}}function Pe(i,m){i&1&&(n(0,"small",37),s(1,"At least one manager is required"),a())}function Le(i,m){if(i&1){let e=L();n(0,"button",52),h("click",function(){A(e);let t=u();return I(t.confirmDeletion=!0)}),s(1," Remove "),a()}if(i&2){let e=u();l("disabled",e.confirmDeletion)}}var st=(()=>{class i{constructor(e,r,t){this.locale=e,this.layout=r,this.userService=t,this.guest=null,this.guestChange=new k,this.user=this.userService.user,this.icons={GROUPS:ce.GROUPS,faPlus:ae,faPen:ne,faUsersGear:se,faSpinner:oe,faAddressCard:te,faUsers:ee,faShieldHalved:ie},this.allNotifications=Object.values(E),this.defaultPassword=this.layout.translateString(ue),this.languages=this.layout.getLanguages(!0),this.submitted=!1,this.loading=!1,this.confirmDeletion=!1}ngOnInit(){this.guestForm=new q({login:new g(this.guest?.login||"",[p.required,p.pattern(re)]),email:new g(this.guest?.email||"",[p.required,p.maxLength(255),p.email]),firstName:new g(this.guest?.firstName||"",[p.required,p.maxLength(255)]),lastName:new g(this.guest?.lastName||"",p.maxLength(255)),password:new g(this.guest?this.defaultPassword:"",p.maxLength(255)),language:new g(this.guest?.language||null),notification:new g(this.guest?.notification||Object.values(E).indexOf(E.APPLICATION_EMAIL)),isActive:new g(this.guest?this.guest.isActive:!0),managers:new g(this.guest?.managers||[me(this.user)])})}updatePassword(e){this.guestForm.controls.password.setValue(e),this.guestForm.controls.password.markAsDirty()}updateManagers(e){this.guestForm.controls.managers.setValue(e),this.guestForm.controls.managers.markAsDirty(),this.guestForm.controls.managers.setErrors(e.length?null:{incorrect:!0})}searchMembers(e){let r={search:e,ignoreUserIds:this.guestForm.value.managers.map(t=>t.id),usersRole:le.USER,onlyUsers:!0};return this.userService.searchMembers(r)}onCancel(){this.confirmDeletion?this.confirmDeletion=!1:this.layout.closeDialog()}onSubmit(){if(this.submitted=!0,this.confirmDeletion)this.userService.deleteGuest(this.guest.id).subscribe({next:()=>{this.guestChange.emit(["delete",this.guest]),this.layout.sendNotification("success","Guest deleted",this.guest.login),this.layout.closeDialog()},error:e=>this.onError(e)});else if(!this.guest)this.userService.createGuest(this.makeDto(!0)).subscribe({next:e=>{this.guestChange.emit(["add",e]),this.layout.sendNotification("success","Guest created",this.guestForm.value.login),this.layout.closeDialog()},error:e=>this.onError(e)});else{let e=this.makeDto();if(!Object.keys(e).length){this.loading=!1,this.submitted=!1;return}this.userService.updateGuest(this.guest.id,e).subscribe({next:r=>{r?this.guestChange.emit(["update",r]):this.guestChange.emit(["delete",this.guest]),this.layout.sendNotification("success","Guest updated",this.guestForm.value.login),this.layout.closeDialog()},error:r=>this.onError(r)})}}makeDto(e=!1){let r={};if(e)r=U({},this.guestForm.value);else for(let t in this.guestForm.controls)this.guestForm.controls[t].dirty&&(r[t]=this.guestForm.controls[t].value);for(let t in r)switch(t){case"language":r[t]=r[t]===de?null:r[t];break;case"managers":r[t]=r[t].map(_=>_.id);break}return r}onError(e){this.layout.sendNotification("error","Guest error",this.guestForm.value.login,e),this.submitted=!1,this.confirmDeletion=!1}static{this.\u0275fac=function(r){return new(r||i)(S(K),S(pe),S(ge))}}static{this.\u0275cmp=P({type:i,selectors:[["app-user-guest-dialog"]],inputs:{guest:"guest"},outputs:{guestChange:"guestChange"},decls:70,vars:40,consts:[[1,"modal-header","align-items-center"],[1,"modal-title"],["animation","spin","size","sm",1,"ms-2",3,"icon"],[1,"modal-title","ms-auto"],["aria-label","Close","type","button",3,"click"],[1,"modal-body",3,"formGroup"],["type","pills",3,"justified"],[1,"my-3"],["customClass","tab-dialog form-validation",3,"selectTab"],["tabHeading",""],[1,"d-flex","flex-column"],[1,"d-flex","col-12","pb-3"],[1,"flex-fill","col-6","pe-4"],["for","login","l10nTranslate",""],["id","login","appAutofocus","","formControlName","login","autocomplete","off","type","text",1,"form-control","form-control-sm",3,"autoSelect"],[1,"flex-fill","col-6","ps-4"],["for","email","l10nTranslate",""],["id","email","formControlName","email","autocomplete","off","type","email",1,"form-control","form-control-sm"],["for","firstName","l10nTranslate",""],["id","firstName","formControlName","firstName","autocomplete","off","type","text",1,"form-control","form-control-sm"],["for","lastName","l10nTranslate",""],["id","lastName","formControlName","lastName","autocomplete","off","type","text",1,"form-control","form-control-sm"],[1,"position-absolute","pe-4",2,"right","50%","padding-top","6px",3,"passwordToCheck"],["id","password","placeholder","Set a password",3,"passwordChange","password","showGenerator","showLabel","isRequired"],["for","language","l10nTranslate",""],["id","language","formControlName","language",1,"form-control","form-select","form-select-sm"],[3,"ngValue"],[1,"d-flex","flex-column","col-6","pe-4"],["for","account","l10nTranslate",""],["id","account",1,"form-check","form-switch","form-check-inline"],["for","isActive",1,"form-check-label"],["formControlName","isActive","id","isActive","type","checkbox",1,"form-check-input"],["for","notification","l10nTranslate",""],["id","notification","formControlName","notification",1,"form-control","form-select","form-select-sm"],["l10nTranslate","",3,"ngValue"],["customClass","tab-dialog",3,"selectTab"],[3,"membersChange","members","withPermissions","customPlaceholder","searchFunction"],["l10nTranslate","",1,"text-danger"],[1,"modal-footer"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-danger",3,"disabled"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","button","l10nTranslate","",3,"click","disabled"],[1,"me-2",3,"icon"],["l10nTranslate",""],[3,"icon"],["l10nTranslate","",1,"ms-2"],["for","created","l10nTranslate",""],["id","created"],[1,"d-flex","flex-column","align-items-end","col-6","ps-4"],["for","access","l10nTranslate",""],["id","access",1,"text-align-end"],["l10nTranslate","",1,"ms-2","me-1"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-danger",3,"click","disabled"]],template:function(r,t){r&1&&(n(0,"div",0)(1,"h4",1),d(2,Te,3,2)(3,Ee,3,1)(4,De,1,1,"fa-icon",2),a(),d(5,we,3,0,"h4",3),n(6,"button",4),h("click",function(){return t.layout.closeDialog()}),a()(),n(7,"div",5)(8,"tabset",6),c(9,"hr",7),n(10,"tab",8),h("selectTab",function(){return t.tabView=null}),d(11,ye,3,1,"ng-template",9),n(12,"div",10)(13,"div",11)(14,"div",12)(15,"label",13),s(16,"Login"),a(),c(17,"input",14),a(),n(18,"div",15)(19,"label",16),s(20,"Email"),a(),c(21,"input",17),a()(),n(22,"div",11)(23,"div",12)(24,"label",18),s(25,"First name"),a(),c(26,"input",19),a(),n(27,"div",15)(28,"label",20),s(29,"Last name"),a(),c(30,"input",21),a()(),n(31,"div",11)(32,"div",12),d(33,Ge,1,1,"app-password-strength-bar",22),n(34,"app-input-password",23),h("passwordChange",function(D){return t.updatePassword(D)}),a()(),n(35,"div",15)(36,"label",24),s(37,"Language"),a(),n(38,"select",25),G(39,Fe,2,2,"option",26,y),a()()(),n(41,"div",11)(42,"div",27)(43,"label",28),s(44,"Account status"),a(),n(45,"div",29)(46,"label",30),c(47,"input",31),n(48,"span"),s(49),v(50,"translate"),v(51,"titlecase"),a()()()(),n(52,"div",15)(53,"label",32),s(54,"Notification"),a(),n(55,"select",33),G(56,Ne,2,2,"option",34,y),a()()(),d(58,Ie,13,4,"div",11),a()(),n(59,"tab",35),h("selectTab",function(){return t.tabView="managers"}),d(60,ke,5,2,"ng-template",9),n(61,"div",7)(62,"app-user-search",36),h("membersChange",function(D){return t.updateManagers(D)}),a(),d(63,Pe,2,0,"small",37),a()()()(),n(64,"div",38),d(65,Le,2,1,"button",39),n(66,"button",40),h("click",function(){return t.onCancel()}),s(67,"Cancel"),a(),n(68,"button",41),h("click",function(){return t.onSubmit()}),s(69),a()()),r&2&&(o(2),f(t.guest?2:3),o(2),f(t.loading?4:-1),o(),f(t.guest?5:-1),o(),w("btn-close btn-close-white ",t.guest?"ms-2":"ms-auto"," ms-2"),o(),l("formGroup",t.guestForm),o(),l("justified",!0),o(9),C("is-invalid",t.guestForm.controls.login.invalid),l("autoSelect",!1),o(4),C("is-invalid",t.guestForm.controls.email.invalid),o(5),C("is-invalid",t.guestForm.controls.firstName.invalid),o(7),f(t.guestForm.value.password!==t.defaultPassword?33:-1),o(),l("password",t.guestForm.value.password)("showGenerator",!0)("showLabel",!0)("isRequired",!0),o(5),F(t.languages),o(9),C("text-danger",!t.guestForm.value.isActive),o(),T(" ",x(51,38,O(50,35,t.guestForm.value.isActive?"active":"suspended",t.locale.language))," "),o(7),F(t.allNotifications),o(2),f(t.guest?58:-1),o(4),l("members",t.guestForm.value.managers)("withPermissions",!1)("customPlaceholder","Type to search for managers to add")("searchFunction",t.searchMembers.bind(t)),o(),f(t.guestForm.value.managers.length?-1:63),o(2),f(t.guest!=null&&t.guest.id?65:-1),o(3),w("btn btn-sm ",t.confirmDeletion?"btn-danger":"btn-primary",""),l("disabled",t.guestForm.invalid||t.submitted),o(),T(" ",t.confirmDeletion?"Confirm deletion":"Confirm"," "))},dependencies:[Z,Y,fe,J,z,W,M,V,$,j,B,H,X,Ce,be,xe,Q,R,Se,he,_e,ve],encapsulation:2})}}return i})();export{st as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as j}from"./chunk-
|
|
1
|
+
import{e as j}from"./chunk-WGSPBZVN.js";import"./chunk-N3QPDPBV.js";import"./chunk-3BKYCF53.js";import"./chunk-CPHC7U34.js";import"./chunk-X6UFHF4Q.js";import{Ea as I}from"./chunk-7FVU676A.js";import{c as T,d as w,h as D,k as A}from"./chunk-ZZ3LHYOY.js";import{b as L,e as b}from"./chunk-UGSGMP2I.js";import{Ad as U,Bd as y,Dd as E,Eb as g,Fb as p,Ma as u,Qb as c,Rb as k,Sa as o,Tb as S,Xa as h,ab as C,bc as x,dc as _,fb as f,lb as m,rb as v,ud as P,vb as n,wb as l,xb as r}from"./chunk-FPEGN42P.js";import"./chunk-GAL4ENT6.js";function R(e,s){if(e&1&&r(0,"img",6),e&2){let i=p();m("src",i.mimeUrl,u)}}function z(e,s){if(e&1&&r(0,"fa-icon",7),e&2){let i=p();m("icon",i.icons.SPACES)("fixedWidth",!1)}}function M(e,s){if(e&1&&(r(0,"img",14),n(1,"span",15),c(2),l()),e&2){let i=p();m("src",i.link.owner.avatar,u),o(2),k(i.link.owner.fullName)}}function N(e,s){e&1&&(n(0,"span",13),c(1,"You have been invited to join this space"),l())}function B(e,s){if(e&1&&(n(0,"span"),c(1),x(2,"translate"),x(3,"translate"),l()),e&2){let i=p();o(),S("",_(2,2,"share with you this",i.locale.language)," ",_(3,5,i.link.share.isDir?"directory":"file",i.locale.language),"")}}function F(e,s){e&1&&(n(0,"span",13),c(1,"You have been invited to join this share"),l())}var Q=(()=>{class e{constructor(i,a,t){this.locale=i,this.activatedRoute=a,this.linksService=t,this.icons={SPACES:I.SPACES},this.logoUrl=A,this.mimeUrl=null,this.activatedRoute.params.subscribe(d=>this.linkUUID=d.uuid),this.activatedRoute.data.subscribe(d=>this.setLink(d.link))}setLink(i){i.space||(this.mimeUrl=D(i.share.isDir?i.share.hasParent?w:T:i.share.mime)),this.link=i}followLink(){this.linksService.linkAccess(this.linkUUID,this.link)}static{this.\u0275fac=function(a){return new(a||e)(h(P),h(L),h(j))}}static{this.\u0275cmp=C({type:e,selectors:[["app-public-link"]],decls:18,vars:5,consts:[[1,"link-page"],[1,"header"],["routerLink",""],["alt","","height","40",3,"src"],[1,"d-flex","flex-column","align-content-center"],[1,"resource","d-flex","flex-column","align-items-center","mt-3","mx-auto","cursor-pointer",3,"click"],["alt","","height","96",1,"no-select-pointer",3,"src"],[1,"circle-primary-icon",2,"min-width","128px","min-height","128px","font-size","64px",3,"icon","fixedWidth"],[1,"error-code"],[1,"error-text","no-select"],[1,"hr"],[1,"d-flex","justify-content-center","align-items-center"],[1,"solve"],["l10nTranslate",""],["alt","","width","42","height","42",1,"avatar-base-img","me-3",3,"src"],[1,"oops","me-2"]],template:function(a,t){a&1&&(n(0,"div",0)(1,"div",1)(2,"a",2),r(3,"img",3),l()(),n(4,"div",4)(5,"div",5),g("click",function(){return t.followLink()}),f(6,R,1,1,"img",6)(7,z,1,2,"fa-icon",7),n(8,"span",8),c(9),l()()(),n(10,"div",9),r(11,"span",10),n(12,"div",11),f(13,M,3,2),n(14,"span",12),f(15,N,2,0,"span",13)(16,B,4,8,"span")(17,F,2,0,"span",13),l()()()()),a&2&&(o(3),m("src",t.logoUrl,u),o(3),v(t.mimeUrl?6:7),o(3),k((t.link.share==null?null:t.link.share.name)||(t.link.space==null?null:t.link.space.name)),o(4),v(t.link.owner?13:-1),o(2),v(t.link.space?15:t.link.owner?16:17))},dependencies:[b,E,U,y],encapsulation:2})}}return e})();export{Q as PublicLinkComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as ne}from"./chunk-
|
|
1
|
+
import{e as ne}from"./chunk-SZKZH4MJ.js";import{f as se}from"./chunk-CPHC7U34.js";import{b as re,c as E}from"./chunk-X6UFHF4Q.js";import{$a as ee,K as g,M as S,N as W,da as A,ea as h,f as z,fa as J,fb as te,ga as l,ha as K,ia as o,ja as Q,ka as X,la as Y,ma as Z,rb as ie,tb as u,vb as v}from"./chunk-7FVU676A.js";import{d as F}from"./chunk-UGSGMP2I.js";import{Ad as V,Bb as G,Bd as q,Eb as y,Fb as I,G as P,Mc as B,Qb as U,Sa as d,Sb as j,Xa as T,ab as C,bc as $,ca as R,cc as k,dc as L,ha as f,lb as O,pa as M,qa as w,sb as N,tb as b,ub as D,ud as H,v as n,vb as _,wa as x,wb as c}from"./chunk-FPEGN42P.js";var a=class{constructor(r){this.isAdmin=!1,this.newly=0,this.applications=[],this.currentAccessHover=!1,this.setGroups(r),this.setManagers(r),Object.assign(this,r),this.isAdmin=r.role===g.ADMINISTRATOR,this.userRoleText=te(g[r.role]),this.avatarUrl=ie(r.login),this.userIsActiveText=this.isActive?"active":"suspended",this.hTimeAgo=(0,z.default)(this.currentAccess).fromNow(!0),this.newly=ee(this.currentAccess),this.permissions&&(this.applications=this.permissions.split(S))}setGroups(r){r?.groups&&(r.groups=r.groups.map(e=>new u(e)))}setManagers(r){r?.managers&&(r.managers=r.managers.map(e=>new u(e)))}};var m=class{constructor(r){Object.assign(this,r),this.permissions&&(this.applications=this.permissions.split(S))}};var we=(()=>{class s{constructor(e,t,i){this.http=e,this.router=t,this.authService=i}listUsers(e=!1){return this.http.get(e?K:J).pipe(n(t=>t.map(i=>new a(i))))}getUser(e,t=!1){return this.http.get(`${t?l:h}/${e}`).pipe(n(i=>t?new E(i):new a(i)))}createUser(e,t=!1){return this.http.post(t?l:h,e).pipe(n(i=>t?new E(i):new a(i)))}updateUser(e,t,i=!1){return this.http.put(`${i?l:h}/${e}`,t).pipe(n(p=>i?new E(p):new a(p)))}deleteUser(e,t,i=!1){return i?this.http.delete(`${l}/${e}`):this.http.request("delete",`${h}/${e}`,{body:t})}browseGroup(e,t=!1){return this.http.get(`${t?X:Q}${e?`/${e}`:""}`).pipe(n(i=>new re(i)))}getGroup(e){return this.http.get(`${o}/${e}`).pipe(n(t=>new m(t)))}createGroup(e){return this.http.post(o,e).pipe(n(t=>new m(t)))}updateGroup(e,t){return this.http.put(`${o}/${e}`,t).pipe(n(i=>new m(i)))}deleteGroup(e){return this.http.delete(`${o}/${e}`)}addUsersToGroup(e,t){return this.http.patch(`${o}/${e}/${A.USERS}`,t)}updateUserFromGroup(e,t,i){return this.http.patch(`${o}/${e}/${A.USERS}/${t}`,i)}removeUserFromGroup(e,t){return this.http.delete(`${o}/${e}/${A.USERS}/${t}`)}searchMembers(e,t=!1){return this.http.request("search",Y,{body:e}).pipe(n(i=>i.map(p=>(t&&delete p.description,new u(p)))),P(()=>[]))}impersonateUser(e,t){return this.http.post(`${Z}/${e}`,t)}initImpersonateUser(e){this.authService.initUserFromResponse(e,!0),this.router.navigate([v.BASE,v.ACCOUNT]).catch(t=>console.error(t))}static{this.\u0275fac=function(t){return new(t||s)(f(B),f(F),f(se))}}static{this.\u0275prov=R({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function ae(s,r){if(s&1){let e=G();_(0,"div",3)(1,"label",4)(2,"input",5),y("change",function(i){let p=M(e).$implicit,oe=I();return w(oe.updatePermissions(p,i))}),c(),U(3),$(4,"translate"),$(5,"capitalize"),c()()}if(s&2){let e=r.$implicit,t=I();d(2),O("checked",t.permissions.indexOf(e)>-1)("value",e),d(),j(" ",k(5,6,L(4,3,e,t.locale.language))," ")}}var je=(()=>{class s{constructor(e){this.locale=e,this.permissions=[],this.permissionsChange=new x,this.allApplications=Object.values(W)}updatePermissions(e,t){t.target.checked?this.permissions.push(e):this.permissions.splice(this.permissions.indexOf(e),1),this.permissionsChange.emit(this.permissions)}static{this.\u0275fac=function(t){return new(t||s)(T(H))}}static{this.\u0275cmp=C({type:s,selectors:[["app-admin-permissions"]],inputs:{permissions:"permissions"},outputs:{permissionsChange:"permissionsChange"},decls:6,vars:0,consts:[[1,"d-flex","flex-column","col-12","pb-3"],["for","permissions","l10nTranslate",""],["id","permissions",1,"form-check","form-switch","form-check-inline"],[1,"d-flex"],[1,"form-check-label"],["type","checkbox",1,"form-check-input",3,"change","checked","value"]],template:function(t,i){t&1&&(_(0,"div",0)(1,"label",1),U(2,"Permissions"),c(),_(3,"div",2),b(4,ae,6,8,"div",3,N),c()()),t&2&&(d(4),D(i.allApplications))},dependencies:[ne,q,V],encapsulation:2})}}return s})();export{a,we as b,je as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as F}from"./chunk-
|
|
1
|
+
import{f as F}from"./chunk-X6UFHF4Q.js";import{Bb as h,Ma as O,Qb as C,Rb as H,Sb as k,T,W as g,eb as d,na as N,vb as u}from"./chunk-7FVU676A.js";import{d as R}from"./chunk-UGSGMP2I.js";import{$ as x,G as p,Mc as A,O as _,Z as m,ca as I,ha as o,p as n,q as S,v as a}from"./chunk-FPEGN42P.js";var c=function(r){return r.ACCESS="access",r.REFRESH="refresh",r.WS="ws",r.CSRF="csrf",r}(c||{});var i=function(r){return r.BASE="/api/auth",r.LOGIN="login",r.LOGOUT="logout",r.REFRESH="refresh",r.TOKEN="token",r.TOKEN_REFRESH="token/refresh",r.WS="socket.io",r}(i||{}),P=`${i.BASE}/${i.LOGIN}`,U=`${i.BASE}/${i.LOGOUT}`,f=`${i.BASE}/${i.REFRESH}`,v=`${i.BASE}/${i.TOKEN}`,w=`${i.BASE}/${i.TOKEN_REFRESH}`,M=`/${i.WS}`;var E="sync-in-csrf";var j=[c.REFRESH,c.ACCESS,c.WS,c.CSRF];var K="Client token is expired";var l={BASE:"auth",LOGIN:"login"};var fe=(()=>{class r{constructor(e,t,s,L,b,G){this.http=e,this.router=t,this.store=s,this.userService=L,this.layout=b,this.electron=G,this._refreshExpiration=parseInt(localStorage.getItem("refresh_expiration")||"0",10)||0,this._accessExpiration=parseInt(localStorage.getItem("access_expiration")||"0",10)||0}get refreshExpiration(){return this._refreshExpiration}set refreshExpiration(e){this._refreshExpiration=e!==0?e+60:e,localStorage.setItem("refresh_expiration",e.toString())}get accessExpiration(){return this._accessExpiration}set accessExpiration(e){this._accessExpiration=e!==0?e+60:e,localStorage.setItem("access_expiration",e.toString())}login(e,t){return this.http.post(P,{login:e,password:t}).pipe(a(s=>(this.accessExpiration=s.token.access_expiration,this.refreshExpiration=s.token.refresh_expiration,this.userService.initUser(s.user),{success:!0,message:null})),p(s=>(console.warn(s),n({success:!1,message:s.error.message||s.message}))))}loginElectron(){return this.electron.authenticate().pipe(m(e=>this.http.post(T,e).pipe(a(t=>(this.accessExpiration=t.token.access_expiration,this.refreshExpiration=t.token.refresh_expiration,this.userService.initUser(t.user),t?.client_token_update&&this.electron.send(h.SERVER.AUTHENTICATION_TOKEN_UPDATE,t.client_token_update),!0)),p(t=>(console.warn(t),t.error.message===K?this.electron.send(h.SERVER.AUTHENTICATION_TOKEN_EXPIRED):this.electron.send(h.SERVER.AUTHENTICATION_FAILED),n(!1))))))}logout(e=!0,t=!1){if((e||t)&&this.store.userImpersonate()){this.logoutImpersonateUser();return}this.userService.disconnectWebSocket(),this.clearCookies().pipe(_(()=>{this.accessExpiration=0,this.refreshExpiration=0,this.layout.clean(),this.store.clean(),e&&this.router.navigate([l.BASE,l.LOGIN]).catch(s=>console.error(s)),t&&this.layout.sendNotification("warning","Session has expired","Please sign in")})).subscribe()}logoutImpersonateUser(){this.http.post(N,null).subscribe({next:e=>{this.userService.disconnectWebSocket(),this.initUserFromResponse(e),this.router.navigate([u.BASE,u.ACCOUNT]).catch(t=>console.error(t))},error:e=>{console.error(e),this.layout.sendNotification("error","Impersonate identity","logout",e)}})}initUserFromResponse(e,t=!1){e!==null&&(this.accessExpiration=e.token.access_expiration,this.refreshExpiration=e.token.refresh_expiration,this.userService.initUser(e.user,t))}isLogged(){return!this.refreshTokenHasExpired()}refreshToken(){return this.http.post(f,null).pipe(a(e=>(this.accessExpiration=e.access_expiration,this.refreshExpiration=e.refresh_expiration,console.debug("refresh token done"),!0)),p(e=>(console.debug("token has expired"),this.electron.enabled?(console.debug("login with app"),this.loginElectron()):(this.logout(!0,!0),S(()=>e)))))}checkUserAuthAndLoad(e){return this.refreshTokenHasExpired()?this.electron.enabled?this.loginElectron():(this.returnUrl=e.length>1?e:null,this.logout(),n(!1)):this.store.user.getValue()?n(!0):this.http.get(g).pipe(x(t=>this.userService.initUser(t.user)),a(()=>!0),p(t=>(t.status===401?this.logout():console.warn(t),n(!1))))}checkCSRF(e){return e.headers.has(E)?e.clone({headers:e.headers.set(E,d(E))}):e}refreshTokenHasExpired(){return this.refreshExpiration===0||O()>=this.refreshExpiration}clearCookies(){return this.http.post(U,null)}static{this.\u0275fac=function(t){return new(t||r)(o(A),o(R),o(C),o(F),o(k),o(H))}}static{this.\u0275prov=I({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{P as a,U as b,f as c,E as d,l as e,fe as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Te}from"./chunk-3RLZPQMJ.js";import{a as D}from"./chunk-AA6ZTGRW.js";import"./chunk-HQC3W7BS.js";import{a as B,b as R,c as ge,d as ke}from"./chunk-WA3LPP4G.js";import{a as ye,b as be,c as we,e as ve}from"./chunk-WQPVP63E.js";import"./chunk-2SX3MVH3.js";import"./chunk-2CQOSX2Q.js";import"./chunk-Y6IYSEKU.js";import"./chunk-ZZGFGD5E.js";import{Cb as ue,Da as pe,Db as Ce,Eb as fe,Fa as _e,Qb as xe,Sb as he,Ua as me,gb as de,v as G,w as Y}from"./chunk-HDDBV3QQ.js";import"./chunk-ZZ3LHYOY.js";import{b as j}from"./chunk-UGSGMP2I.js";import{$e as oe,Ad as q,Bb as y,Bd as K,Dd as J,Eb as C,Ec as z,Fb as r,He as ee,L as N,Ma as P,Mb as L,Me as te,Nb as S,Ob as V,Oe as ie,Qb as u,Rb as v,Sa as o,Sb as I,Tb as $,Ve as ne,Xa as w,Xd as X,ab as O,bc as g,dc as k,fb as f,kb as Q,lb as p,mb as T,mf as re,nb as F,ob as U,of as ae,pa as _,pb as A,pe as Z,pf as le,qa as m,qb as W,qf as se,rb as h,tb as M,ub as E,ud as H,vb as l,wb as c,wf as ce,xb as x}from"./chunk-FPEGN42P.js";import"./chunk-GAL4ENT6.js";var Fe=["MainContextMenu"],Me=["TargetContextMenu"],Le=(t,s)=>s.id,Se=(t,s)=>s.key;function Ee(t,s){if(t&1&&(l(0,"span",30),u(1),c()),t&2){let e=r().$implicit,n=r(2);T("font-size",n.galleryMode.textSize,"px"),o(),I(" ",e.hTimeAccessAgo," ")}}function Ae(t,s){if(t&1){let e=y();l(0,"div",21),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),l(1,"div",22)(2,"img",23),C("error",function(){let i=_(e).$implicit;return m(i.fallBackMimeUrl())}),c(),l(3,"span",24),f(4,Ee,2,3,"span",25),c(),l(5,"span",26),x(6,"app-share-repository",27),c()(),l(7,"div",28)(8,"span",29),u(9),c()()()}if(t&2){let e=s.$implicit,n=s.$index,i=r(2);T("height",i.galleryMode.dimensions,"px")("width",i.galleryMode.dimensions,"px"),F("selected",e.id===(i.selected==null?null:i.selected.id))("disabled",!e.link.isActive),o(),Q("rowIndex",n),o(),p("src",e.mimeUrl,P)("height",i.galleryMode.image)("width",i.galleryMode.image),o(2),h(e.newly?4:-1),o(2),p("share",e)("galleryMode",i.galleryMode),o(2),T("font-size",i.galleryMode.textSize,"px"),o(),v(e.name)}}function Ie(t,s){if(t&1){let e=y();l(0,"div",13)(1,"app-virtual-scroll",18),g(2,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(3,"div",19),M(4,Ae,10,18,"div",20,Le),c()()()}if(t&2){let e=r();o(),p("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",k(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),o(3),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function $e(t,s){if(t&1&&x(0,"fa-icon",37),t&2){let e=r(4);p("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)("fixedWidth",!1)}}function Pe(t,s){if(t&1){let e=y();l(0,"th",36),C("click",function(){_(e);let i=r().$implicit,a=r(2);return m(a.sortBy(i.key))}),u(1),f(2,$e,1,2,"fa-icon",37),c()}if(t&2){let e=r().$implicit,n=r(2);U(e.value.class),T("width",e.value.width,"%"),F("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),o(),I(" ",e.value.label," "),o(),h(n.sortTable.sortParam.column===e.key?2:-1)}}function Be(t,s){if(t&1&&f(0,Pe,3,11,"th",35),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function Re(t,s){if(t&1){let e=y();l(0,"div",40)(1,"img",43),C("error",function(){_(e);let i=r(3).$implicit;return m(i.fallBackMimeUrl())}),c(),l(2,"div",44)(3,"span",29),u(4),c(),l(5,"span",45),u(6),c()()()}if(t&2){let e=r(3).$implicit;o(),p("src",e.mimeUrl,P),o(3),v(e.name),o(2),v(e.description)}}function De(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.email||"")}}function Ne(t,s){if(t&1&&(l(0,"span",41)(1,"span"),u(2),c(),f(3,De,2,1,"span"),c()),t&2){let e=r(3).$implicit;o(2),v(e.link.name),o(),h(e.link.email?3:-1)}}function Oe(t,s){if(t&1&&x(0,"app-share-repository",42),t&2){let e=r(3).$implicit;p("share",e)}}function Qe(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;A("badge rounded-pill ",e.link.nbAccess>=e.link.limitAccess?"bg-danger":"bg-success",""),o(),$(" ",e.link.nbAccess,"/",e.link.limitAccess," ")}}function Ue(t,s){if(t&1&&(l(0,"span",47),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.nbAccess)}}function We(t,s){if(t&1&&(l(0,"span",49),u(1),g(2,"translate"),c()),t&2){let e=r(5).$implicit,n=r(2);o(),$("",e.hTimeExpirationAgo,"\xA0",k(2,2,e.hTimeExpirationAgo===1?"day":"days",n.locale.language),"")}}function ze(t,s){if(t&1&&(l(0,"span"),x(1,"fa-icon",37),f(2,We,3,5,"span",49),c()),t&2){let e=r(4).$implicit,n=r(2);A("badge rounded-pill bg-",e.hTimeExpirationAgo>=1?"warning":"danger"," ms-1"),o(),p("icon",n.icons.faClock)("fixedWidth",!1),o(),h(e.hTimeExpirationAgo>=1?2:-1)}}function je(t,s){if(t&1&&(l(0,"span",48),x(1,"fa-icon",6),c()),t&2){let e=r(6);o(),p("icon",e.icons.faLock)}}function He(t,s){if(t&1&&f(0,Qe,2,5,"span",46)(1,Ue,2,1,"span",47)(2,ze,3,6,"span",46)(3,je,2,1,"span",48),t&2){let e=r(3).$implicit;h(e.link.limitAccess?0:1),o(2),h(e.link.expiresAt?2:-1),o(),h(e.link.requireAuth?3:-1)}}function qe(t,s){if(t&1&&x(0,"app-file-permissions",50),t&2){let e=r(4).$implicit;p("permissions",e.hPerms)}}function Ke(t,s){if(t&1&&f(0,qe,1,1,"app-file-permissions",50),t&2){let e=r(3).$implicit;h(e.link.permissions?0:-1)}}function Ge(t,s){if(t&1&&u(0),t&2){let e=r(4).$implicit;I(" ",e.hTimeAccessAgo," ")}}function Ye(t,s){t&1&&(l(0,"span",51),u(1,"never"),c())}function Je(t,s){if(t&1&&f(0,Ge,1,1)(1,Ye,2,0,"span",51),t&2){let e=r(3).$implicit;h(e.link.currentAccess?0:1)}}function Xe(t,s){if(t&1&&(l(0,"td"),f(1,Re,7,3,"div",40)(2,Ne,4,2,"span",41)(3,Oe,1,1,"app-share-repository",42)(4,He,4,3)(5,Ke,1,1)(6,Je,2,1),c()),t&2){let e,n=r().$implicit,i=r().$implicit;W("",n.value.class," ",n.value.newly!==void 0?"props-newly-"+i[n.value.newly]:"",""),T("width",n.value.width,"%"),F("text-align-center",n.value.textCenter),o(),h((e=n.key)==="name"?1:e==="link"?2:e==="from"?3:e==="infos"?4:e==="permissions"?5:e==="accessed"?6:-1)}}function Ze(t,s){if(t&1&&f(0,Xe,7,9,"td",39),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function et(t,s){if(t&1){let e=y();l(0,"tr",38),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),M(1,Ze,1,1,null,null,Se),g(3,"keyvalue"),c()}if(t&2){let e=s.$implicit,n=r(2);F("selected",e.id===(n.selected==null?null:n.selected.id))("disabled",!e.link.isActive),o(),E(k(3,4,n.tableHeaders,n.originalOrderKeyValue))}}function tt(t,s){if(t&1){let e=y();l(0,"table",31)(1,"thead")(2,"tr"),M(3,Be,1,1,null,null,Se),g(5,"keyvalue"),c()()(),l(6,"app-virtual-scroll",32),g(7,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(8,"table",31)(9,"tbody",33),M(10,et,4,7,"tr",34,Le),c()()()}if(t&2){let e=r();o(3),E(k(5,2,e.tableHeaders,e.originalOrderKeyValue)),o(3),p("bufferAmount",5)("items",k(7,5,e.shares,e.inputFilter.search())),o(4),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function it(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Refresh"),c()),t&2){let e=r();o(),p("icon",e.icons.faArrowRotateRight)}}function nt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Go to"),c()),t&2){let e=r();o(),p("icon",e.icons.faMapMarkerAlt)}}function ot(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Edit link"),c()),t&2){let e=r();o(),p("icon",e.icons.faPen)}}function rt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Copy link"),c()),t&2){let e=r();o(),p("icon",e.icons.faClipboard)}}function at(t,s){}function lt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Informations"),c()),t&2){let e=r();o(),p("icon",e.icons.faCircleInfo)}}var $t=(()=>{class t{constructor(e,n,i,a,d,b){this.locale=e,this.activatedRoute=n,this.store=i,this.layout=a,this.linksService=d,this.sharesService=b,this.icons={faLink:se,faArrowRotateRight:ie,faArrowDown:le,faArrowUp:ce,faMapMarkerAlt:ae,faPen:te,faEllipsisH:re,faClock:oe,faLock:X,faClipboard:Z,faClipboardCheck:ee,faCircleInfo:ne},this.originalOrderKeyValue=de,this.TAB_MENU=me,this.loading=!1,this.linkWasCopied=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:30,textCenter:!1,class:"",show:!0,sortable:!0},link:{label:"Link",width:15,textCenter:!1,class:"d-none d-sm-table-cell",show:!0,sortable:!0},from:{label:"Shared from",width:15,textCenter:!1,class:"d-none d-md-table-cell",show:!0},infos:{label:"Infos",width:15,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},permissions:{label:"Permissions",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},accessed:{label:"Accessed",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.sortSettings={default:[{prop:"name",type:"string"}],link:[{prop:"link.name",type:"string"}],name:[{prop:"name",type:"string"}],infos:[{prop:"link.nbAccess",type:"number"}],permissions:[{prop:"link.permissions",type:"length"}],accessed:[{prop:"link.currentAccess",type:"date"}]},this.sortTable=new ke(this.constructor.name,this.sortSettings),this.btnSortFields={name:"Name",link:"Link",accessed:"Accessed"},this.loadShareLinks(),this.activatedRoute.queryParams.subscribe(Ve=>this.focusOnSelect=Ve.select),this.layout.setBreadcrumbIcon(this.icons.faLink),this.layout.setBreadcrumbNav({url:`/${_e.LINKS}/${pe.SHARED_BY_LINKS}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShareLinks(){this.loading=!0,this.onSelect(),this.linksService.shareLinksList().subscribe({next:e=>{this.sortBy(this.sortTable.sortParam.column,!1,e),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:e=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Links",e.error.message)}})}sortBy(e,n=!0,i){this.shares=this.sortTable.sortBy(e,n,i||this.shares)}onSelect(e=null){this.selected=e,this.store.linkSelection.set(this.selected)}openLinkDialog(){this.linksService.shareLink(this.selected.id).subscribe(e=>{this.layout.openDialog(we,"md",{initialState:{share:e}}).content.shareChange.pipe(N(1)).subscribe(i=>{let[a,d]=i;a==="update"?this.selected=Object.assign(this.selected,d):a==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(b=>b.id!==d.id)))})})}onContextMenu(e){e.preventDefault(),e.stopPropagation(),this.layout.openContextMenu(e,this.mainContextMenu)}onTargetContextMenu(e,n){e.preventDefault(),e.type==="contextmenu"&&e.stopPropagation(),this.onSelect(n),this.layout.openContextMenu(e,this.targetContextMenu)}focusOn(e){let n=this.shares.find(i=>i.name===e);n&&(setTimeout(()=>this.scrollView.scrollInto(n),100),this.onSelect(n))}copyToClipboard(){this.selected&&(this.linksService.copyLinkToClipboard(this.selected.link.uuid),this.linkWasCopied=!0,this.layout.sendNotification("info","Link copied",this.selected.file.name||this.selected.name),setTimeout(()=>this.linkWasCopied=!1,3e3))}goTo(e){e=e||this.selected,this.sharesService.goTo(e)}static{this.\u0275fac=function(n){return new(n||t)(w(H),w(j),w(xe),w(he),w(ve),w(be))}}static{this.\u0275cmp=O({type:t,selectors:[["app-shared-links"]],viewQuery:function(n,i){if(n&1&&(L(R,5),L(B,7),L(D,7),L(Fe,7),L(Me,7)),n&2){let a;S(a=V())&&(i.scrollView=a.first),S(a=V())&&(i.inputFilter=a.first),S(a=V())&&(i.btnNavigationView=a.first),S(a=V())&&(i.mainContextMenu=a.first),S(a=V())&&(i.targetContextMenu=a.first)}},decls:33,vars:36,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"d-none","d-sm-block","btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon","animation"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],[3,"icon"],["container","body","type","button",3,"click","disabled","tooltip"],["container","body","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[1,"ms-auto"],[1,"btn-group","btn-group-sm","me-1"],[1,"d-none","d-sm-block"],[3,"sortBy","switchView","sortParams","sortFields"],[1,"app-thumbs"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"selected","disabled","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],[1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-left"],[3,"share","galleryMode"],[1,"card-footer","text-center","text-truncate","p-1"],["draggable","false",1,"no-pointer-events"],[1,"badge","rounded-pill","bg-warning"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"selected","disabled"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"icon","fixedWidth"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-column"],[3,"share"],["alt","","draggable","false","height","30","width","30",3,"error","src"],[1,"d-flex","flex-column","text-truncate"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"class"],[1,"badge","rounded-pill","bg-success"],[1,"badge","rounded-pill","bg-gray-dark","ms-1"],[1,"ms-2"],["tooltipPlacement","auto",3,"permissions"],["l10nTranslate",""]],template:function(n,i){if(n&1){let a=y();l(0,"div",2)(1,"button",3),g(2,"translate"),C("click",function(){return _(a),m(i.loadShareLinks())}),x(3,"fa-icon",4),c(),l(4,"button",5),g(5,"translate"),C("click",function(){return _(a),m(i.openLinkDialog())}),x(6,"fa-icon",6),c(),l(7,"button",7),g(8,"translate"),C("click",function(){return _(a),m(i.copyToClipboard())}),x(9,"fa-icon",6),c(),l(10,"button",8),g(11,"translate"),C("click",function(){return _(a),m(i.goTo())}),x(12,"fa-icon",6),c(),l(13,"div",9)(14,"div",10),x(15,"app-input-filter",11),c(),l(16,"app-navigation-view",12),C("sortBy",function(b){return _(a),m(i.sortBy(b))})("switchView",function(b){return _(a),m(i.galleryMode=b)}),c()()(),f(17,Ie,6,8,"div",13)(18,tt,12,8),l(19,"div",14)(20,"span",15),u(21),g(22,"translate"),c()(),l(23,"context-menu",null,0),f(25,it,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.loadShareLinks())}),c(),l(26,"context-menu",null,1),f(28,nt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.goTo())}),f(29,ot,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.openLinkDialog())}),f(30,rt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.copyToClipboard())}),f(31,at,0,0,"ng-template",17)(32,lt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.layout.showRSideBarTab(i.TAB_MENU.SELECTION))}),c()}n&2&&(o(),p("tooltip",k(2,21,"Refresh",i.locale.language)),o(2),p("icon",i.icons.faArrowRotateRight)("animation",i.loading?"spin":null),o(),p("disabled",!i.selected)("tooltip",k(5,24,"Edit link",i.locale.language)),o(2),p("icon",i.icons.faPen),o(),A("btn btn-sm me-1 ",i.linkWasCopied?"btn-info":"btn-secondary",""),p("disabled",!i.selected)("tooltip",k(8,27,"Copy link",i.locale.language)),o(2),p("icon",i.linkWasCopied?i.icons.faClipboardCheck:i.icons.faClipboard),o(),p("disabled",!i.selected)("tooltip",k(11,30,"Go to",i.locale.language)),o(2),p("icon",i.icons.faMapMarkerAlt),o(4),p("sortParams",i.sortTable.sortParam)("sortFields",i.btnSortFields),o(),h(i.galleryMode!=null&&i.galleryMode.enabled?17:18),o(4),$("",i.shares.length," ",k(22,33,"shares",i.locale.language),""),o(10),p("divider",!0))},dependencies:[fe,Ce,ue,J,z,K,q,D,Y,G,B,R,ge,ye,Te],encapsulation:2})}}return t})();export{$t as LinksComponent};
|
|
1
|
+
import{a as Te}from"./chunk-EWJD5G76.js";import{a as D}from"./chunk-VFSSL4TI.js";import"./chunk-6CFIZHYI.js";import{a as B,b as R,c as ge,d as ke}from"./chunk-NSXFB3SX.js";import{a as ye,b as be,c as we,e as ve}from"./chunk-WGSPBZVN.js";import"./chunk-N3QPDPBV.js";import"./chunk-3BKYCF53.js";import"./chunk-CPHC7U34.js";import"./chunk-X6UFHF4Q.js";import{Cb as ue,Da as pe,Db as Ce,Eb as fe,Fa as _e,Qb as xe,Sb as he,Ua as me,gb as de,v as G,w as Y}from"./chunk-7FVU676A.js";import"./chunk-ZZ3LHYOY.js";import{b as j}from"./chunk-UGSGMP2I.js";import{$e as oe,Ad as q,Bb as y,Bd as K,Dd as J,Eb as C,Ec as z,Fb as r,He as ee,L as N,Ma as P,Mb as L,Me as te,Nb as S,Ob as V,Oe as ie,Qb as u,Rb as v,Sa as o,Sb as I,Tb as $,Ve as ne,Xa as w,Xd as X,ab as O,bc as g,dc as k,fb as f,kb as Q,lb as p,mb as T,mf as re,nb as F,ob as U,of as ae,pa as _,pb as A,pe as Z,pf as le,qa as m,qb as W,qf as se,rb as h,tb as M,ub as E,ud as H,vb as l,wb as c,wf as ce,xb as x}from"./chunk-FPEGN42P.js";import"./chunk-GAL4ENT6.js";var Fe=["MainContextMenu"],Me=["TargetContextMenu"],Le=(t,s)=>s.id,Se=(t,s)=>s.key;function Ee(t,s){if(t&1&&(l(0,"span",30),u(1),c()),t&2){let e=r().$implicit,n=r(2);T("font-size",n.galleryMode.textSize,"px"),o(),I(" ",e.hTimeAccessAgo," ")}}function Ae(t,s){if(t&1){let e=y();l(0,"div",21),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),l(1,"div",22)(2,"img",23),C("error",function(){let i=_(e).$implicit;return m(i.fallBackMimeUrl())}),c(),l(3,"span",24),f(4,Ee,2,3,"span",25),c(),l(5,"span",26),x(6,"app-share-repository",27),c()(),l(7,"div",28)(8,"span",29),u(9),c()()()}if(t&2){let e=s.$implicit,n=s.$index,i=r(2);T("height",i.galleryMode.dimensions,"px")("width",i.galleryMode.dimensions,"px"),F("selected",e.id===(i.selected==null?null:i.selected.id))("disabled",!e.link.isActive),o(),Q("rowIndex",n),o(),p("src",e.mimeUrl,P)("height",i.galleryMode.image)("width",i.galleryMode.image),o(2),h(e.newly?4:-1),o(2),p("share",e)("galleryMode",i.galleryMode),o(2),T("font-size",i.galleryMode.textSize,"px"),o(),v(e.name)}}function Ie(t,s){if(t&1){let e=y();l(0,"div",13)(1,"app-virtual-scroll",18),g(2,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(3,"div",19),M(4,Ae,10,18,"div",20,Le),c()()()}if(t&2){let e=r();o(),p("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",k(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),o(3),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function $e(t,s){if(t&1&&x(0,"fa-icon",37),t&2){let e=r(4);p("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)("fixedWidth",!1)}}function Pe(t,s){if(t&1){let e=y();l(0,"th",36),C("click",function(){_(e);let i=r().$implicit,a=r(2);return m(a.sortBy(i.key))}),u(1),f(2,$e,1,2,"fa-icon",37),c()}if(t&2){let e=r().$implicit,n=r(2);U(e.value.class),T("width",e.value.width,"%"),F("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),o(),I(" ",e.value.label," "),o(),h(n.sortTable.sortParam.column===e.key?2:-1)}}function Be(t,s){if(t&1&&f(0,Pe,3,11,"th",35),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function Re(t,s){if(t&1){let e=y();l(0,"div",40)(1,"img",43),C("error",function(){_(e);let i=r(3).$implicit;return m(i.fallBackMimeUrl())}),c(),l(2,"div",44)(3,"span",29),u(4),c(),l(5,"span",45),u(6),c()()()}if(t&2){let e=r(3).$implicit;o(),p("src",e.mimeUrl,P),o(3),v(e.name),o(2),v(e.description)}}function De(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.email||"")}}function Ne(t,s){if(t&1&&(l(0,"span",41)(1,"span"),u(2),c(),f(3,De,2,1,"span"),c()),t&2){let e=r(3).$implicit;o(2),v(e.link.name),o(),h(e.link.email?3:-1)}}function Oe(t,s){if(t&1&&x(0,"app-share-repository",42),t&2){let e=r(3).$implicit;p("share",e)}}function Qe(t,s){if(t&1&&(l(0,"span"),u(1),c()),t&2){let e=r(4).$implicit;A("badge rounded-pill ",e.link.nbAccess>=e.link.limitAccess?"bg-danger":"bg-success",""),o(),$(" ",e.link.nbAccess,"/",e.link.limitAccess," ")}}function Ue(t,s){if(t&1&&(l(0,"span",47),u(1),c()),t&2){let e=r(4).$implicit;o(),v(e.link.nbAccess)}}function We(t,s){if(t&1&&(l(0,"span",49),u(1),g(2,"translate"),c()),t&2){let e=r(5).$implicit,n=r(2);o(),$("",e.hTimeExpirationAgo,"\xA0",k(2,2,e.hTimeExpirationAgo===1?"day":"days",n.locale.language),"")}}function ze(t,s){if(t&1&&(l(0,"span"),x(1,"fa-icon",37),f(2,We,3,5,"span",49),c()),t&2){let e=r(4).$implicit,n=r(2);A("badge rounded-pill bg-",e.hTimeExpirationAgo>=1?"warning":"danger"," ms-1"),o(),p("icon",n.icons.faClock)("fixedWidth",!1),o(),h(e.hTimeExpirationAgo>=1?2:-1)}}function je(t,s){if(t&1&&(l(0,"span",48),x(1,"fa-icon",6),c()),t&2){let e=r(6);o(),p("icon",e.icons.faLock)}}function He(t,s){if(t&1&&f(0,Qe,2,5,"span",46)(1,Ue,2,1,"span",47)(2,ze,3,6,"span",46)(3,je,2,1,"span",48),t&2){let e=r(3).$implicit;h(e.link.limitAccess?0:1),o(2),h(e.link.expiresAt?2:-1),o(),h(e.link.requireAuth?3:-1)}}function qe(t,s){if(t&1&&x(0,"app-file-permissions",50),t&2){let e=r(4).$implicit;p("permissions",e.hPerms)}}function Ke(t,s){if(t&1&&f(0,qe,1,1,"app-file-permissions",50),t&2){let e=r(3).$implicit;h(e.link.permissions?0:-1)}}function Ge(t,s){if(t&1&&u(0),t&2){let e=r(4).$implicit;I(" ",e.hTimeAccessAgo," ")}}function Ye(t,s){t&1&&(l(0,"span",51),u(1,"never"),c())}function Je(t,s){if(t&1&&f(0,Ge,1,1)(1,Ye,2,0,"span",51),t&2){let e=r(3).$implicit;h(e.link.currentAccess?0:1)}}function Xe(t,s){if(t&1&&(l(0,"td"),f(1,Re,7,3,"div",40)(2,Ne,4,2,"span",41)(3,Oe,1,1,"app-share-repository",42)(4,He,4,3)(5,Ke,1,1)(6,Je,2,1),c()),t&2){let e,n=r().$implicit,i=r().$implicit;W("",n.value.class," ",n.value.newly!==void 0?"props-newly-"+i[n.value.newly]:"",""),T("width",n.value.width,"%"),F("text-align-center",n.value.textCenter),o(),h((e=n.key)==="name"?1:e==="link"?2:e==="from"?3:e==="infos"?4:e==="permissions"?5:e==="accessed"?6:-1)}}function Ze(t,s){if(t&1&&f(0,Xe,7,9,"td",39),t&2){let e=s.$implicit;h(e.value.show?0:-1)}}function et(t,s){if(t&1){let e=y();l(0,"tr",38),C("click",function(){let i=_(e).$implicit,a=r(2);return m(a.onSelect(i))})("contextmenu",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("pressup",function(i){let a=_(e).$implicit,d=r(2);return m(d.onTargetContextMenu(i,a))})("tap",function(){_(e);let i=r(2);return m(i.openLinkDialog())}),M(1,Ze,1,1,null,null,Se),g(3,"keyvalue"),c()}if(t&2){let e=s.$implicit,n=r(2);F("selected",e.id===(n.selected==null?null:n.selected.id))("disabled",!e.link.isActive),o(),E(k(3,4,n.tableHeaders,n.originalOrderKeyValue))}}function tt(t,s){if(t&1){let e=y();l(0,"table",31)(1,"thead")(2,"tr"),M(3,Be,1,1,null,null,Se),g(5,"keyvalue"),c()()(),l(6,"app-virtual-scroll",32),g(7,"searchFilter"),C("contextmenu",function(i){_(e);let a=r();return m(a.onContextMenu(i))}),l(8,"table",31)(9,"tbody",33),M(10,et,4,7,"tr",34,Le),c()()()}if(t&2){let e=r();o(3),E(k(5,2,e.tableHeaders,e.originalOrderKeyValue)),o(3),p("bufferAmount",5)("items",k(7,5,e.shares,e.inputFilter.search())),o(4),E(e.scrollView==null?null:e.scrollView.viewPortItems)}}function it(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Refresh"),c()),t&2){let e=r();o(),p("icon",e.icons.faArrowRotateRight)}}function nt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Go to"),c()),t&2){let e=r();o(),p("icon",e.icons.faMapMarkerAlt)}}function ot(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Edit link"),c()),t&2){let e=r();o(),p("icon",e.icons.faPen)}}function rt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Copy link"),c()),t&2){let e=r();o(),p("icon",e.icons.faClipboard)}}function at(t,s){}function lt(t,s){if(t&1&&(l(0,"span",51),x(1,"fa-icon",6),u(2,"Informations"),c()),t&2){let e=r();o(),p("icon",e.icons.faCircleInfo)}}var $t=(()=>{class t{constructor(e,n,i,a,d,b){this.locale=e,this.activatedRoute=n,this.store=i,this.layout=a,this.linksService=d,this.sharesService=b,this.icons={faLink:se,faArrowRotateRight:ie,faArrowDown:le,faArrowUp:ce,faMapMarkerAlt:ae,faPen:te,faEllipsisH:re,faClock:oe,faLock:X,faClipboard:Z,faClipboardCheck:ee,faCircleInfo:ne},this.originalOrderKeyValue=de,this.TAB_MENU=me,this.loading=!1,this.linkWasCopied=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:30,textCenter:!1,class:"",show:!0,sortable:!0},link:{label:"Link",width:15,textCenter:!1,class:"d-none d-sm-table-cell",show:!0,sortable:!0},from:{label:"Shared from",width:15,textCenter:!1,class:"d-none d-md-table-cell",show:!0},infos:{label:"Infos",width:15,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},permissions:{label:"Permissions",width:10,textCenter:!0,class:"d-none d-lg-table-cell",show:!0,sortable:!0},accessed:{label:"Accessed",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.sortSettings={default:[{prop:"name",type:"string"}],link:[{prop:"link.name",type:"string"}],name:[{prop:"name",type:"string"}],infos:[{prop:"link.nbAccess",type:"number"}],permissions:[{prop:"link.permissions",type:"length"}],accessed:[{prop:"link.currentAccess",type:"date"}]},this.sortTable=new ke(this.constructor.name,this.sortSettings),this.btnSortFields={name:"Name",link:"Link",accessed:"Accessed"},this.loadShareLinks(),this.activatedRoute.queryParams.subscribe(Ve=>this.focusOnSelect=Ve.select),this.layout.setBreadcrumbIcon(this.icons.faLink),this.layout.setBreadcrumbNav({url:`/${_e.LINKS}/${pe.SHARED_BY_LINKS}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShareLinks(){this.loading=!0,this.onSelect(),this.linksService.shareLinksList().subscribe({next:e=>{this.sortBy(this.sortTable.sortParam.column,!1,e),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:e=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Links",e.error.message)}})}sortBy(e,n=!0,i){this.shares=this.sortTable.sortBy(e,n,i||this.shares)}onSelect(e=null){this.selected=e,this.store.linkSelection.set(this.selected)}openLinkDialog(){this.linksService.shareLink(this.selected.id).subscribe(e=>{this.layout.openDialog(we,"md",{initialState:{share:e}}).content.shareChange.pipe(N(1)).subscribe(i=>{let[a,d]=i;a==="update"?this.selected=Object.assign(this.selected,d):a==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(b=>b.id!==d.id)))})})}onContextMenu(e){e.preventDefault(),e.stopPropagation(),this.layout.openContextMenu(e,this.mainContextMenu)}onTargetContextMenu(e,n){e.preventDefault(),e.type==="contextmenu"&&e.stopPropagation(),this.onSelect(n),this.layout.openContextMenu(e,this.targetContextMenu)}focusOn(e){let n=this.shares.find(i=>i.name===e);n&&(setTimeout(()=>this.scrollView.scrollInto(n),100),this.onSelect(n))}copyToClipboard(){this.selected&&(this.linksService.copyLinkToClipboard(this.selected.link.uuid),this.linkWasCopied=!0,this.layout.sendNotification("info","Link copied",this.selected.file.name||this.selected.name),setTimeout(()=>this.linkWasCopied=!1,3e3))}goTo(e){e=e||this.selected,this.sharesService.goTo(e)}static{this.\u0275fac=function(n){return new(n||t)(w(H),w(j),w(xe),w(he),w(ve),w(be))}}static{this.\u0275cmp=O({type:t,selectors:[["app-shared-links"]],viewQuery:function(n,i){if(n&1&&(L(R,5),L(B,7),L(D,7),L(Fe,7),L(Me,7)),n&2){let a;S(a=V())&&(i.scrollView=a.first),S(a=V())&&(i.inputFilter=a.first),S(a=V())&&(i.btnNavigationView=a.first),S(a=V())&&(i.mainContextMenu=a.first),S(a=V())&&(i.targetContextMenu=a.first)}},decls:33,vars:36,consts:[["MainContextMenu",""],["TargetContextMenu",""],[1,"app-top-menu"],["container","body","type","button",1,"d-none","d-sm-block","btn","btn-sm","btn-secondary","me-1",3,"click","tooltip"],[3,"icon","animation"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",3,"click","disabled","tooltip"],[3,"icon"],["container","body","type","button",3,"click","disabled","tooltip"],["container","body","type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[1,"ms-auto"],[1,"btn-group","btn-group-sm","me-1"],[1,"d-none","d-sm-block"],[3,"sortBy","switchView","sortParams","sortFields"],[1,"app-thumbs"],[1,"app-foot-menu"],[1,"mx-auto"],["contextMenuItem","",3,"execute"],["contextMenuItem","",3,"divider"],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"selected","disabled","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],[1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-left"],[3,"share","galleryMode"],[1,"card-footer","text-center","text-truncate","p-1"],["draggable","false",1,"no-pointer-events"],[1,"badge","rounded-pill","bg-warning"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"selected","disabled"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"icon","fixedWidth"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],[1,"d-flex","flex-column"],[3,"share"],["alt","","draggable","false","height","30","width","30",3,"error","src"],[1,"d-flex","flex-column","text-truncate"],["draggable","false",1,"no-pointer-events","text-muted","fs-xxxs"],[3,"class"],[1,"badge","rounded-pill","bg-success"],[1,"badge","rounded-pill","bg-gray-dark","ms-1"],[1,"ms-2"],["tooltipPlacement","auto",3,"permissions"],["l10nTranslate",""]],template:function(n,i){if(n&1){let a=y();l(0,"div",2)(1,"button",3),g(2,"translate"),C("click",function(){return _(a),m(i.loadShareLinks())}),x(3,"fa-icon",4),c(),l(4,"button",5),g(5,"translate"),C("click",function(){return _(a),m(i.openLinkDialog())}),x(6,"fa-icon",6),c(),l(7,"button",7),g(8,"translate"),C("click",function(){return _(a),m(i.copyToClipboard())}),x(9,"fa-icon",6),c(),l(10,"button",8),g(11,"translate"),C("click",function(){return _(a),m(i.goTo())}),x(12,"fa-icon",6),c(),l(13,"div",9)(14,"div",10),x(15,"app-input-filter",11),c(),l(16,"app-navigation-view",12),C("sortBy",function(b){return _(a),m(i.sortBy(b))})("switchView",function(b){return _(a),m(i.galleryMode=b)}),c()()(),f(17,Ie,6,8,"div",13)(18,tt,12,8),l(19,"div",14)(20,"span",15),u(21),g(22,"translate"),c()(),l(23,"context-menu",null,0),f(25,it,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.loadShareLinks())}),c(),l(26,"context-menu",null,1),f(28,nt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.goTo())}),f(29,ot,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.openLinkDialog())}),f(30,rt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.copyToClipboard())}),f(31,at,0,0,"ng-template",17)(32,lt,3,1,"ng-template",16),C("execute",function(){return _(a),m(i.layout.showRSideBarTab(i.TAB_MENU.SELECTION))}),c()}n&2&&(o(),p("tooltip",k(2,21,"Refresh",i.locale.language)),o(2),p("icon",i.icons.faArrowRotateRight)("animation",i.loading?"spin":null),o(),p("disabled",!i.selected)("tooltip",k(5,24,"Edit link",i.locale.language)),o(2),p("icon",i.icons.faPen),o(),A("btn btn-sm me-1 ",i.linkWasCopied?"btn-info":"btn-secondary",""),p("disabled",!i.selected)("tooltip",k(8,27,"Copy link",i.locale.language)),o(2),p("icon",i.linkWasCopied?i.icons.faClipboardCheck:i.icons.faClipboard),o(),p("disabled",!i.selected)("tooltip",k(11,30,"Go to",i.locale.language)),o(2),p("icon",i.icons.faMapMarkerAlt),o(4),p("sortParams",i.sortTable.sortParam)("sortFields",i.btnSortFields),o(),h(i.galleryMode!=null&&i.galleryMode.enabled?17:18),o(4),$("",i.shares.length," ",k(22,33,"shares",i.locale.language),""),o(10),p("divider",!0))},dependencies:[fe,Ce,ue,J,z,K,q,D,Y,G,B,R,ge,ye,Te],encapsulation:2})}}return t})();export{$t as LinksComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gb as L,v as F,w as O}from"./chunk-
|
|
1
|
+
import{gb as L,v as F,w as O}from"./chunk-7FVU676A.js";import{Ad as v,Bd as T,Dd as E,Ec as g,Fb as o,Qb as y,Xa as l,ab as m,bc as s,dc as r,fb as c,lb as f,oa as a,rb as u,tb as d,ub as P,ud as x,vb as C,wb as h,xb as _}from"./chunk-FPEGN42P.js";var k=(e,n)=>n.key;function D(e,n){e&1&&(C(0,"span",0),y(1,"No permissions"),h())}function I(e,n){if(e&1&&(_(0,"fa-icon",1),s(1,"translate")),e&2){let i=n.$implicit,t=o(2);f("icon",i.value.icon)("tooltip",r(1,3,i.value.text,t.locale.language))("placement",t.tooltipPlacement)}}function K(e,n){if(e&1&&(d(0,I,2,6,"fa-icon",1,k),s(2,"keyvalue")),e&2){let i=o();P(r(2,0,i.permissions,i.originalOrderKeyValue))}}var w=(()=>{class e{constructor(i){this.locale=i,this.permissions={},this.tooltipPlacement="top",this.replaceEmptyPermissions=!1,this.hasPermissions=!1,this.originalOrderKeyValue=L}ngOnChanges(){this.hasPermissions=!!Object.keys(this.permissions).length}static{this.\u0275fac=function(t){return new(t||e)(l(x))}}static{this.\u0275cmp=m({type:e,selectors:[["app-file-permissions"]],inputs:{permissions:"permissions",tooltipPlacement:"tooltipPlacement",replaceEmptyPermissions:"replaceEmptyPermissions"},features:[a],decls:2,vars:1,consts:[["l10nTranslate",""],[1,"cursor-pointer","fs-md",3,"icon","tooltip","placement"]],template:function(t,p){t&1&&c(0,D,2,0,"span",0)(1,K,3,3),t&2&&u(p.replaceEmptyPermissions&&!p.hasPermissions?0:1)},dependencies:[O,F,T,E,g,v],encapsulation:2})}}return e})();export{w as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as p2}from"./chunk-3RLZPQMJ.js";import{c as c2}from"./chunk-JXZCNFW7.js";import{a as i2}from"./chunk-VIL6L67B.js";import{a as t2,b as n2,c as r2,d as o2,e as s2,f as Qt,i as a2}from"./chunk-5JDPARJT.js";import{a as d2,b as Jt,c as u2,e as Zt}from"./chunk-WQPVP63E.js";import{a as l2,d as xt,g as ct}from"./chunk-2SX3MVH3.js";import{f as Xt}from"./chunk-ZZGFGD5E.js";import{Da as Yt,Ea as q,Fa as nt,Fb as e2,Ka as Yn,La as Xn,Ma as Qn,N as Ve,Qb as st,Sb as H,Ua as rt,Wa as ot,Xa as Jn,ib as zi,pa as it,qa as Z,ra as Ne,rb as Zn,ta as Gn,ua as qn,wa as Wn}from"./chunk-HDDBV3QQ.js";import{c as Me,d as f2,h as je,m as at}from"./chunk-ZZ3LHYOY.js";import{d as wn}from"./chunk-UGSGMP2I.js";import{$ as mn,$b as Nn,Ab as ye,Ad as zn,Bb as P,Bc as ke,Bd as oe,Bf as Hn,C as pn,Ce as Fn,Dd as se,Df as $n,Eb as b,Ee as kn,Fb as u,Fc as Ln,Gb as Sn,Gf as Kt,Hb as xn,If as Un,Jb as En,Kc as Di,L as Ye,Lb as Ct,Ma as Ft,Mb as Vt,Mc as Ht,Nb as Se,Ob as xe,Oe as Vn,Pb as wi,Qb as p,Ra as Mi,Rb as F,Sa as c,Sb as J,Ta as Li,Ub as Je,Vb as Ze,Vc as An,Wa as Qe,Wb as et,X as hn,Xa as v,Xb as Oi,Xc as On,Ya as Ai,Yb as Fe,Yc as $t,Zb as _t,_d as Tn,_e as jn,ab as w,ac as jt,ad as Ut,ag as Kn,bb as gn,bc as fe,be as In,ca as _e,cb as Te,cc as Bt,da as vn,db as bn,dc as yt,f as fn,fb as g,fc as St,fd as Gt,ha as X,lb as f,mb as Ie,nb as G,oa as Pt,ob as Cn,pa as S,pb as kt,pd as qt,qa as x,rb as A,sd as Wt,se as Rn,tb as _n,td as Dn,te as Pn,u as un,ub as yn,ud as tt,v as Ei,vb as l,wa as B,wb as d,xa as Ni,xb as C,xc as Mn,yb as Re,yc as Ee,yf as Bn,za as Xe,zb as Pe}from"./chunk-FPEGN42P.js";import{a as Q,b as ze}from"./chunk-GAL4ENT6.js";var No={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"]};var Mo={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]};var Lo={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 64 0 350.5 0 400l0 88c0 13.3 10.7 24 24 24s24-10.7 24-24l0-100 80.3-20.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-279.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L48 52l0-28zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8c54.9 27.4 118.7 29.7 175 6.8l0 241.8-24.4 9.1c-33.7 12.6-71.2 10.7-103.4-5.4c-48.2-24.1-103.3-30.1-155.6-17.1L48 338.5l0-237z"]};var Ao={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]};var wo={prefix:"far",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 48L208 48c-17.7 0-32 14.3-32 32l0 16-48 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-48 16 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32zM48 448c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-192L48 256l0 192zM64 128l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192c0-35.3 28.7-64 64-64z"]};var h2={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 32L48 192l0-96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zM48 240l416 0 0 176c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16l0-176zM285.7 93.7L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3z"]};var D1={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},Oo=D1;var Do={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var zo={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var To={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},ei={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]};var m2=(()=>{class t{transform(e,i=0,r=void 0){return ot(e,i,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=bn({name:"pathSlice",type:t,pure:!0})}}return t})();var Pi=function(t,n){return Pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])},Pi(t,n)};function M2(t,n){Pi(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var W=function(){return W=Object.assign||function(n){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},W.apply(this,arguments)};function L2(t,n){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var i=e.call(t),r,o=[],s;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function Fi(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(L2(arguments[n]));return t}var z1="An invariant failed, however the error is obfuscated because this is an production build.",ni=[];Object.freeze(ni);var $i={};Object.freeze($i);var T1={};function ki(){return typeof window<"u"?window:typeof global<"u"?global:T1}function K(){return++m.mobxGuid}function O(t){throw Nt(!1,t),"X"}function Nt(t,n){if(!t)throw new Error("[mobx] "+(n||z1))}var v2=[];function he(t,n){return!1}function Ui(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}var g2=function(){};function I1(t){var n=[];return t.forEach(function(e){n.indexOf(e)===-1&&n.push(e)}),n}function Gi(t){return t!==null&&typeof t=="object"}function ut(t){if(t===null||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function R1(t){return pt(t)||qe(t)?t:Array.isArray(t)?new Map(t):ut(t)?new Map(Object.entries(t)):O("Cannot convert to map from '"+t+"'")}function P1(t,n){for(var e=0;e<n.length;e++)Ue(t,n[e],t[n[e]])}function Ue(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0,value:e})}function wt(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!1,configurable:!0,value:e})}function Oe(t,n){var e="isMobX"+t;return n.prototype[e]=!0,function(i){return Gi(i)&&i[e]===!0}}function F1(t,n){return typeof t=="number"&&typeof n=="number"&&isNaN(t)&&isNaN(n)}function pt(t){return ki().Map!==void 0&&t instanceof ki().Map}function Ot(t){return t instanceof Set}function dt(t){for(var n=[];;){var e=t.next();if(e.done)break;n.push(e.value)}return n}function A2(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function w2(t){return t===null?null:typeof t=="object"?""+t:t}function qi(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Wi(t,n){wt(t,qi(),n)}function Mt(t){return t[qi()]=k1,t}function Ki(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function k1(){return this}var li=function(){function t(n){n===void 0&&(n="Atom@"+K()),this.name=n,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=L.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return $2(this)},t.prototype.reportChanged=function(){me(),a0(this),ve()},t.prototype.toString=function(){return this.name},t}(),Yi=Oe("Atom",li);function V1(t,n,e){n===void 0&&(n=g2),e===void 0&&(e=g2);var i=new li(t);return C0(i,n),K2(i,e),i}function O2(t,n){return t===n}function j1(t,n){return Zi(t,n)}function B1(t,n){return Zi(t,n,1)}function H1(t,n){return F1(t,n)||O2(t,n)}var ft={identity:O2,structural:j1,default:H1,shallow:B1},$1={},U1={};function G1(t,n){var e=n?$1:U1;return e[t]||(e[t]={configurable:!0,enumerable:n,get:function(){return He(this),this[t]},set:function(i){He(this),this[t]=i}})}function He(t){if(t.__mobxDidRunLazyInitializers!==!0){var n=t.__mobxDecorators;if(n){Ue(t,"__mobxDidRunLazyInitializers",!0);for(var e in n){var i=n[e];i.propertyCreator(t,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}}function D2(t,n){return function(){var i,r=function(s,a,h,D){if(D===!0)return n(s,a,h,s,i),null;if(!Object.prototype.hasOwnProperty.call(s,"__mobxDecorators")){var T=s.__mobxDecorators;Ue(s,"__mobxDecorators",W({},T))}return s.__mobxDecorators[a]={prop:a,propertyCreator:n,descriptor:h,decoratorTarget:s,decoratorArguments:i},G1(a,t)};return q1(arguments)?(i=ni,r.apply(null,arguments)):(i=Array.prototype.slice.call(arguments),r)}}function q1(t){return(t.length===2||t.length===3)&&typeof t[1]=="string"||t.length===4&&t[3]===!0}function Dt(t,n,e){return Q2(t)?t:Array.isArray(t)?E.array(t,{name:e}):ut(t)?E.object(t,void 0,{name:e}):pt(t)?E.map(t,{name:e}):Ot(t)?E.set(t,{name:e}):t}function W1(t,n,e){return t==null||At(t)||pi(t)||qe(t)||mt(t)?t:Array.isArray(t)?E.array(t,{name:e,deep:!1}):ut(t)?E.object(t,void 0,{name:e,deep:!1}):pt(t)?E.map(t,{name:e,deep:!1}):Ot(t)?E.set(t,{name:e,deep:!1}):O(!1)}function Lt(t){return t}function K1(t,n,e){return Zi(t,n)?n:t}function di(t){var n=D2(!0,function(i,r,o,s,a){var h=o?o.initializer?o.initializer.call(i):o.value:void 0;T0(i,r,h,t)}),e=(typeof process<"u"&&process.env,n);return e.enhancer=t,e}var z2={deep:!0,name:void 0,defaultDecorator:void 0},Y1={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(z2);Object.freeze(Y1);function lt(t){return t==null?z2:typeof t=="string"?{name:t,deep:!0}:t}function ti(t){return t.defaultDecorator?t.defaultDecorator.enhancer:t.deep===!1?Lt:Dt}var Xi=di(Dt),X1=di(W1),T2=di(Lt),Q1=di(K1);function J1(t,n,e){if(typeof arguments[1]=="string")return Xi.apply(null,arguments);if(Q2(t))return t;var i=ut(t)?E.object(t,n,e):Array.isArray(t)?E.array(t,n):pt(t)?E.map(t,n):Ot(t)?E.set(t,n):t;if(i!==t)return i;O(!1)}var b2={box:function(t,n){arguments.length>2&&ue("box");var e=lt(n);return new Ae(t,ti(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&ue("shallowBox"),he("observable.shallowBox","observable.box(value, { deep: false })"),E.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&ue("array");var e=lt(n);return new be(t,ti(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&ue("shallowArray"),he("observable.shallowArray","observable.array(values, { deep: false })"),E.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&ue("map");var e=lt(n);return new hi(t,ti(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&ue("shallowMap"),he("observable.shallowMap","observable.map(values, { deep: false })"),E.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&ue("set");var e=lt(n);return new mi(t,ti(e),e.name)},object:function(t,n,e){typeof arguments[1]=="string"&&ue("object");var i=lt(e);return _0({},t,n,i)},shallowObject:function(t,n){return typeof arguments[1]=="string"&&ue("shallowObject"),he("observable.shallowObject","observable.object(values, {}, { deep: false })"),E.object(t,{},{name:n,deep:!1})},ref:T2,shallow:X1,deep:Xi,struct:Q1},E=J1;Object.keys(b2).forEach(function(t){return E[t]=b2[t]});function ue(t){O("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}var ri=D2(!1,function(t,n,e,i,r){var o=e.get,s=e.set,a=r[0]||{};I0(t,n,W({get:o,set:s},a))}),Z1=ri({equals:ft.structural}),I=function(n,e,i){if(typeof e=="string"||n!==null&&typeof n=="object"&&arguments.length===1)return ri.apply(null,arguments);var r=typeof e=="object"?e:{};return r.get=n,r.set=typeof e=="function"?e:r.set,r.name=r.name||n.name||"",new we(r)};I.struct=Z1;var L=function(t){return t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",t}(L||{}),ce=function(t){return t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",t}(ce||{}),oi=function(){function t(n){this.cause=n}return t}();function Et(t){return t instanceof oi}function Vi(t){switch(t.dependenciesState){case L.UP_TO_DATE:return!1;case L.NOT_TRACKING:case L.STALE:return!0;case L.POSSIBLY_STALE:{for(var n=ht(),e=t.observing,i=e.length,r=0;r<i;r++){var o=e[r];if(ui(o)){if(m.disableErrorBoundaries)o.get();else try{o.get()}catch{return Le(n),!0}if(t.dependenciesState===L.STALE)return Le(n),!0}}return k2(t),Le(n),!1}}}function fi(t){var n=t.observers.length>0;m.computationDepth>0&&n&&O(!1),!m.allowStateChanges&&(n||m.enforceActions==="strict")&&O(!1)}function I2(t,n,e){var i=P2(!0);k2(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++m.runId;var r=m.trackingDerivation;m.trackingDerivation=t;var o;if(m.disableErrorBoundaries===!0)o=n.call(e);else try{o=n.call(e)}catch(s){o=new oi(s)}return m.trackingDerivation=r,e0(t),t.observing.length===0&&void 0,F2(i),o}function e0(t){for(var n=t.observing,e=t.observing=t.newObserving,i=L.UP_TO_DATE,r=0,o=t.unboundDepsCount,s=0;s<o;s++){var a=e[s];a.diffValue===0&&(a.diffValue=1,r!==s&&(e[r]=a),r++),a.dependenciesState>i&&(i=a.dependenciesState)}for(e.length=r,t.newObserving=null,o=n.length;o--;){var a=n[o];a.diffValue===0&&B2(a,t),a.diffValue=0}for(;r--;){var a=e[r];a.diffValue===1&&(a.diffValue=0,s0(a,t))}i!==L.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function ji(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)B2(n[e],t);t.dependenciesState=L.NOT_TRACKING}function R2(t){var n=ht(),e=t();return Le(n),e}function ht(){var t=m.trackingDerivation;return m.trackingDerivation=null,t}function Le(t){m.trackingDerivation=t}function P2(t){var n=m.allowStateReads;return m.allowStateReads=t,n}function F2(t){m.allowStateReads=t}function k2(t){if(t.dependenciesState!==L.UP_TO_DATE){t.dependenciesState=L.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=L.UP_TO_DATE}}var si=0,t0=1;function Be(t,n){var e=function(){return i0(t,n,this,arguments)};return e.isMobxAction=!0,e}function i0(t,n,e,i){var r=n0(t,e,i);try{return n.apply(e,i)}catch(o){throw r.error=o,o}finally{r0(r)}}function n0(t,n,e){var i=j()&&!!t,r=0;if(i){r=Date.now();var o=e&&e.length||0,s=new Array(o);if(o>0)for(var a=0;a<o;a++)s[a]=e[a];ee({type:"action",name:t,object:n,arguments:s})}var h=ht();me();var D=V2(!0),T=P2(!0),Y={prevDerivation:h,prevAllowStateChanges:D,prevAllowStateReads:T,notifySpy:i,startTime:r,actionId:t0++,parentActionId:si};return si=Y.actionId,Y}function r0(t){si!==t.actionId&&O("invalid action stack. did you forget to finish an action?"),si=t.parentActionId,t.error!==void 0&&(m.suppressReactionErrors=!0),j2(t.prevAllowStateChanges),F2(t.prevAllowStateReads),ve(),Le(t.prevDerivation),t.notifySpy&&te({time:Date.now()-t.startTime}),m.suppressReactionErrors=!1}function V2(t){var n=m.allowStateChanges;return m.allowStateChanges=t,n}function j2(t){m.allowStateChanges=t}var Ae=function(t){M2(n,t);function n(e,i,r,o,s){r===void 0&&(r="ObservableValue@"+K()),o===void 0&&(o=!0),s===void 0&&(s=ft.default);var a=t.call(this,r)||this;return a.enhancer=i,a.name=r,a.equals=s,a.hasUnreportedChange=!1,a.value=i(e,void 0,r),o&&j()&&$e({type:"create",name:a.name,newValue:""+a.value}),a}return n.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},n.prototype.set=function(e){var i=this.value;if(e=this.prepareNewValue(e),e!==m.UNCHANGED){var r=j();r&&ee({type:"update",name:this.name,newValue:e,oldValue:i}),this.setNewValue(e),r&&te()}},n.prototype.prepareNewValue=function(e){if(fi(this),le(this)){var i=de(this,{object:this,type:"update",newValue:e});if(!i)return m.UNCHANGED;e=i.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?m.UNCHANGED:e},n.prototype.setNewValue=function(e){var i=this.value;this.value=e,this.reportChanged(),ie(this)&&ne(this,{type:"update",object:this,newValue:e,oldValue:i})},n.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},n.prototype.intercept=function(e){return Tt(this,e)},n.prototype.observe=function(e,i){return i&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),It(this,e)},n.prototype.toJSON=function(){return this.get()},n.prototype.toString=function(){return this.name+"["+this.value+"]"},n.prototype.valueOf=function(){return w2(this.get())},n}(li);Ae.prototype[A2()]=Ae.prototype.valueOf;var Fo=Oe("ObservableValue",Ae),we=function(){function t(n){this.dependenciesState=L.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=L.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+K(),this.value=new oi(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ce.NONE,this.derivation=n.get,this.name=n.name||"ComputedValue@"+K(),n.set&&(this.setter=Be(this.name+"-setter",n.set)),this.equals=n.equals||(n.compareStructural||n.struct?ft.structural:ft.default),this.scope=n.context,this.requiresReaction=!!n.requiresReaction,this.keepAlive=!!n.keepAlive}return t.prototype.onBecomeStale=function(){l0(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&O("Cycle detected in computation "+this.name+": "+this.derivation),m.inBatch===0&&this.observers.length===0&&!this.keepAlive?Vi(this)&&(this.warnAboutUntrackedRead(),me(),this.value=this.computeValue(!1),ve()):($2(this),Vi(this)&&this.trackAndCompute()&&c0(this));var n=this.value;if(Et(n))throw n.cause;return n},t.prototype.peek=function(){var n=this.computeValue(!1);if(Et(n))throw n.cause;return n},t.prototype.set=function(n){if(this.setter){Nt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,n)}finally{this.isRunningSetter=!1}}else Nt(!1,!1)},t.prototype.trackAndCompute=function(){j()&&$e({object:this.scope,type:"compute",name:this.name});var n=this.value,e=this.dependenciesState===L.NOT_TRACKING,i=this.computeValue(!0),r=e||Et(n)||Et(i)||!this.equals(n,i);return r&&(this.value=i),r},t.prototype.computeValue=function(n){this.isComputing=!0,m.computationDepth++;var e;if(n)e=I2(this,this.derivation,this.scope);else if(m.disableErrorBoundaries===!0)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(i){e=new oi(i)}return m.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(ji(this),this.value=void 0)},t.prototype.observe=function(n,e){var i=this,r=!0,o=void 0;return zt(function(){var s=i.get();if(!r||e){var a=ht();n({type:"update",object:i,newValue:s,oldValue:o}),Le(a)}r=!1,o=s})},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return w2(this.get())},t}();we.prototype[A2()]=we.prototype.valueOf;var ui=Oe("ComputedValue",we);var Ti=function(){function t(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return t}(),Ii=!0,o0=!1,m=function(){var t=ki();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ii=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Ti().version&&(Ii=!1),Ii?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ti):(setTimeout(function(){o0||O("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ti)}();function s0(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function B2(t,n){if(t.observers.length===1)t.observers.length=0,H2(t);else{var e=t.observers,i=t.observersIndexes,r=e.pop();if(r!==n){var o=i[n.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],e[o]=r}delete i[n.__mapid]}}function H2(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,m.pendingUnobservations.push(t))}function me(){m.inBatch++}function ve(){if(--m.inBatch===0){q2();for(var t=m.pendingUnobservations,n=0;n<t.length;n++){var e=t[n];e.isPendingUnobservation=!1,e.observers.length===0&&(e.isBeingObserved&&(e.isBeingObserved=!1,e.onBecomeUnobserved()),e instanceof we&&e.suspend())}m.pendingUnobservations=[]}}function $2(t){var n=m.trackingDerivation;return n!==null?(n.runId!==t.lastAccessedBy&&(t.lastAccessedBy=n.runId,n.newObserving[n.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(t.observers.length===0&&m.inBatch>0&&H2(t),!1)}function a0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale()),i.dependenciesState=L.STALE}}}function c0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.POSSIBLY_STALE?i.dependenciesState=L.STALE:i.dependenciesState===L.UP_TO_DATE&&(t.lowestObserverState=L.UP_TO_DATE)}}}function l0(t){if(t.lowestObserverState===L.UP_TO_DATE){t.lowestObserverState=L.POSSIBLY_STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.dependenciesState=L.POSSIBLY_STALE,i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale())}}}function U2(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===ce.BREAK){var e=[];G2(y0(t),e,1),new Function(`debugger;
|
|
1
|
+
import{a as p2}from"./chunk-EWJD5G76.js";import{c as c2}from"./chunk-JXZCNFW7.js";import{a as i2}from"./chunk-GSVMWC5N.js";import{a as t2,b as n2,c as r2,d as o2,e as s2,f as Qt,i as a2}from"./chunk-ZYB4TLJM.js";import{a as d2,b as Jt,c as u2,e as Zt}from"./chunk-WGSPBZVN.js";import{a as l2,d as xt,g as ct}from"./chunk-N3QPDPBV.js";import{f as Xt}from"./chunk-X6UFHF4Q.js";import{Da as Yt,Ea as q,Fa as nt,Fb as e2,Ka as Yn,La as Xn,Ma as Qn,N as Ve,Qb as st,Sb as H,Ua as rt,Wa as ot,Xa as Jn,ib as zi,pa as it,qa as Z,ra as Ne,rb as Zn,ta as Gn,ua as qn,wa as Wn}from"./chunk-7FVU676A.js";import{c as Me,d as f2,h as je,m as at}from"./chunk-ZZ3LHYOY.js";import{d as wn}from"./chunk-UGSGMP2I.js";import{$ as mn,$b as Nn,Ab as ye,Ad as zn,Bb as P,Bc as ke,Bd as oe,Bf as Hn,C as pn,Ce as Fn,Dd as se,Df as $n,Eb as b,Ee as kn,Fb as u,Fc as Ln,Gb as Sn,Gf as Kt,Hb as xn,If as Un,Jb as En,Kc as Di,L as Ye,Lb as Ct,Ma as Ft,Mb as Vt,Mc as Ht,Nb as Se,Ob as xe,Oe as Vn,Pb as wi,Qb as p,Ra as Mi,Rb as F,Sa as c,Sb as J,Ta as Li,Ub as Je,Vb as Ze,Vc as An,Wa as Qe,Wb as et,X as hn,Xa as v,Xb as Oi,Xc as On,Ya as Ai,Yb as Fe,Yc as $t,Zb as _t,_d as Tn,_e as jn,ab as w,ac as jt,ad as Ut,ag as Kn,bb as gn,bc as fe,be as In,ca as _e,cb as Te,cc as Bt,da as vn,db as bn,dc as yt,f as fn,fb as g,fc as St,fd as Gt,ha as X,lb as f,mb as Ie,nb as G,oa as Pt,ob as Cn,pa as S,pb as kt,pd as qt,qa as x,rb as A,sd as Wt,se as Rn,tb as _n,td as Dn,te as Pn,u as un,ub as yn,ud as tt,v as Ei,vb as l,wa as B,wb as d,xa as Ni,xb as C,xc as Mn,yb as Re,yc as Ee,yf as Bn,za as Xe,zb as Pe}from"./chunk-FPEGN42P.js";import{a as Q,b as ze}from"./chunk-GAL4ENT6.js";var No={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M170.5 51.6L151.5 80l145 0-19-28.4c-1.5-2.2-4-3.6-6.7-3.6l-93.7 0c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80 368 80l48 0 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 304c0 44.2-35.8 80-80 80l-224 0c-44.2 0-80-35.8-80-80l0-304-8 0c-13.3 0-24-10.7-24-24S10.7 80 24 80l8 0 48 0 13.8 0 36.7-55.1C140.9 9.4 158.4 0 177.1 0l93.7 0c18.7 0 36.2 9.4 46.6 24.9zM80 128l0 304c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-304L80 128zm80 64l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208c0-8.8 7.2-16 16-16s16 7.2 16 16z"]};var Mo={prefix:"far",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l160 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm56 256c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0zm0 96c-13.3 0-24 10.7-24 24s10.7 24 24 24l144 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-144 0z"]};var Lo={prefix:"far",iconName:"flag",icon:[448,512,[127988,61725],"f024","M48 24C48 10.7 37.3 0 24 0S0 10.7 0 24L0 64 0 350.5 0 400l0 88c0 13.3 10.7 24 24 24s24-10.7 24-24l0-100 80.3-20.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-279.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L48 52l0-28zm0 77.5l96.6-24.2c27-6.7 55.5-3.6 80.4 8.8c54.9 27.4 118.7 29.7 175 6.8l0 241.8-24.4 9.1c-33.7 12.6-71.2 10.7-103.4-5.4c-48.2-24.1-103.3-30.1-155.6-17.1L48 338.5l0-237z"]};var Ao={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464l349.5 0c-8.9-63.3-63.3-112-129-112l-91.4 0c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3z"]};var wo={prefix:"far",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 48L208 48c-17.7 0-32 14.3-32 32l0 16-48 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-48 16 0c17.7 0 32-14.3 32-32l0-224c0-17.7-14.3-32-32-32zM48 448c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-192L48 256l0 192zM64 128l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192c0-35.3 28.7-64 64-64z"]};var h2={prefix:"far",iconName:"folder-closed",icon:[512,512,[],"e185","M251.7 127.6s0 0 0 0c10.5 10.5 24.7 16.4 39.6 16.4L448 144c8.8 0 16 7.2 16 16l0 32L48 192l0-96c0-8.8 7.2-16 16-16l133.5 0c4.2 0 8.3 1.7 11.3 4.7l33.9-33.9L208.8 84.7l42.9 42.9zM48 240l416 0 0 176c0 8.8-7.2 16-16 16L64 432c-8.8 0-16-7.2-16-16l0-176zM285.7 93.7L242.7 50.7c-12-12-28.3-18.7-45.3-18.7L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L291.3 96c-2.1 0-4.2-.8-5.7-2.3z"]};var D1={prefix:"far",iconName:"file-zipper",icon:[384,512,["file-archive"],"f1c6","M64 464c-8.8 0-16-7.2-16-16L48 64c0-8.8 7.2-16 16-16l48 0c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l48 0 0 80c0 17.7 14.3 32 32 32l80 0 0 288c0 8.8-7.2 16-16 16L64 464zM64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-293.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0L64 0zm48 112c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm0 64c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm-6.3 71.8L82.1 335.9c-1.4 5.4-2.1 10.9-2.1 16.4c0 35.2 28.8 63.7 64 63.7s64-28.5 64-63.7c0-5.5-.7-11.1-2.1-16.4l-23.5-88.2c-3.7-14-16.4-23.8-30.9-23.8l-14.8 0c-14.5 0-27.2 9.7-30.9 23.8zM128 336l32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},Oo=D1;var Do={prefix:"far",iconName:"comment-dots",icon:[512,512,[128172,62075,"commenting"],"f4ad","M168.2 384.9c-15-5.4-31.7-3.1-44.6 6.4c-8.2 6-22.3 14.8-39.4 22.7c5.6-14.7 9.9-31.3 11.3-49.4c1-12.9-3.3-25.7-11.8-35.5C60.4 302.8 48 272 48 240c0-79.5 83.3-160 208-160s208 80.5 208 160s-83.3 160-208 160c-31.6 0-61.3-5.5-87.8-15.1zM26.3 423.8c-1.6 2.7-3.3 5.4-5.1 8.1l-.3 .5c-1.6 2.3-3.2 4.6-4.8 6.9c-3.5 4.7-7.3 9.3-11.3 13.5c-4.6 4.6-5.9 11.4-3.4 17.4c2.5 6 8.3 9.9 14.8 9.9c5.1 0 10.2-.3 15.3-.8l.7-.1c4.4-.5 8.8-1.1 13.2-1.9c.8-.1 1.6-.3 2.4-.5c17.8-3.5 34.9-9.5 50.1-16.1c22.9-10 42.4-21.9 54.3-30.6c31.8 11.5 67 17.9 104.1 17.9c141.4 0 256-93.1 256-208S397.4 32 256 32S0 125.1 0 240c0 45.1 17.7 86.8 47.7 120.9c-1.9 24.5-11.4 46.3-21.4 62.9zM144 272a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm144-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm80 32a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var zo={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var To={prefix:"far",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 25.4c0 45.4-15.5 89.5-43.8 124.9L5.3 377c-5.8 7.2-6.9 17.1-2.9 25.4S14.8 416 24 416l400 0c9.2 0 17.6-5.3 21.6-13.6s2.9-18.2-2.9-25.4l-14.9-18.6C399.5 322.9 384 278.8 384 233.4l0-25.4c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm0 96c61.9 0 112 50.1 112 112l0 25.4c0 47.9 13.9 94.6 39.7 134.6L72.3 368C98.1 328 112 281.3 112 233.4l0-25.4c0-61.9 50.1-112 112-112zm64 352l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7s18.7-28.3 18.7-45.3z"]},ei={prefix:"far",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M320 464c8.8 0 16-7.2 16-16l0-288-80 0c-17.7 0-32-14.3-32-32l0-80L64 48c-8.8 0-16 7.2-16 16l0 384c0 8.8 7.2 16 16 16l256 0zM0 64C0 28.7 28.7 0 64 0L229.5 0c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64z"]};var m2=(()=>{class t{transform(e,i=0,r=void 0){return ot(e,i,r)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=bn({name:"pathSlice",type:t,pure:!0})}}return t})();var Pi=function(t,n){return Pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])},Pi(t,n)};function M2(t,n){Pi(t,n);function e(){this.constructor=t}t.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)}var W=function(){return W=Object.assign||function(n){for(var e,i=1,r=arguments.length;i<r;i++){e=arguments[i];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n},W.apply(this,arguments)};function L2(t,n){var e=typeof Symbol=="function"&&t[Symbol.iterator];if(!e)return t;var i=e.call(t),r,o=[],s;try{for(;(n===void 0||n-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(a){s={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(s)throw s.error}}return o}function Fi(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(L2(arguments[n]));return t}var z1="An invariant failed, however the error is obfuscated because this is an production build.",ni=[];Object.freeze(ni);var $i={};Object.freeze($i);var T1={};function ki(){return typeof window<"u"?window:typeof global<"u"?global:T1}function K(){return++m.mobxGuid}function O(t){throw Nt(!1,t),"X"}function Nt(t,n){if(!t)throw new Error("[mobx] "+(n||z1))}var v2=[];function he(t,n){return!1}function Ui(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}var g2=function(){};function I1(t){var n=[];return t.forEach(function(e){n.indexOf(e)===-1&&n.push(e)}),n}function Gi(t){return t!==null&&typeof t=="object"}function ut(t){if(t===null||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function R1(t){return pt(t)||qe(t)?t:Array.isArray(t)?new Map(t):ut(t)?new Map(Object.entries(t)):O("Cannot convert to map from '"+t+"'")}function P1(t,n){for(var e=0;e<n.length;e++)Ue(t,n[e],t[n[e]])}function Ue(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!0,configurable:!0,value:e})}function wt(t,n,e){Object.defineProperty(t,n,{enumerable:!1,writable:!1,configurable:!0,value:e})}function Oe(t,n){var e="isMobX"+t;return n.prototype[e]=!0,function(i){return Gi(i)&&i[e]===!0}}function F1(t,n){return typeof t=="number"&&typeof n=="number"&&isNaN(t)&&isNaN(n)}function pt(t){return ki().Map!==void 0&&t instanceof ki().Map}function Ot(t){return t instanceof Set}function dt(t){for(var n=[];;){var e=t.next();if(e.done)break;n.push(e.value)}return n}function A2(){return typeof Symbol=="function"&&Symbol.toPrimitive||"@@toPrimitive"}function w2(t){return t===null?null:typeof t=="object"?""+t:t}function qi(){return typeof Symbol=="function"&&Symbol.iterator||"@@iterator"}function Wi(t,n){wt(t,qi(),n)}function Mt(t){return t[qi()]=k1,t}function Ki(){return typeof Symbol=="function"&&Symbol.toStringTag||"@@toStringTag"}function k1(){return this}var li=function(){function t(n){n===void 0&&(n="Atom@"+K()),this.name=n,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=L.NOT_TRACKING}return t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.reportObserved=function(){return $2(this)},t.prototype.reportChanged=function(){me(),a0(this),ve()},t.prototype.toString=function(){return this.name},t}(),Yi=Oe("Atom",li);function V1(t,n,e){n===void 0&&(n=g2),e===void 0&&(e=g2);var i=new li(t);return C0(i,n),K2(i,e),i}function O2(t,n){return t===n}function j1(t,n){return Zi(t,n)}function B1(t,n){return Zi(t,n,1)}function H1(t,n){return F1(t,n)||O2(t,n)}var ft={identity:O2,structural:j1,default:H1,shallow:B1},$1={},U1={};function G1(t,n){var e=n?$1:U1;return e[t]||(e[t]={configurable:!0,enumerable:n,get:function(){return He(this),this[t]},set:function(i){He(this),this[t]=i}})}function He(t){if(t.__mobxDidRunLazyInitializers!==!0){var n=t.__mobxDecorators;if(n){Ue(t,"__mobxDidRunLazyInitializers",!0);for(var e in n){var i=n[e];i.propertyCreator(t,i.prop,i.descriptor,i.decoratorTarget,i.decoratorArguments)}}}}function D2(t,n){return function(){var i,r=function(s,a,h,D){if(D===!0)return n(s,a,h,s,i),null;if(!Object.prototype.hasOwnProperty.call(s,"__mobxDecorators")){var T=s.__mobxDecorators;Ue(s,"__mobxDecorators",W({},T))}return s.__mobxDecorators[a]={prop:a,propertyCreator:n,descriptor:h,decoratorTarget:s,decoratorArguments:i},G1(a,t)};return q1(arguments)?(i=ni,r.apply(null,arguments)):(i=Array.prototype.slice.call(arguments),r)}}function q1(t){return(t.length===2||t.length===3)&&typeof t[1]=="string"||t.length===4&&t[3]===!0}function Dt(t,n,e){return Q2(t)?t:Array.isArray(t)?E.array(t,{name:e}):ut(t)?E.object(t,void 0,{name:e}):pt(t)?E.map(t,{name:e}):Ot(t)?E.set(t,{name:e}):t}function W1(t,n,e){return t==null||At(t)||pi(t)||qe(t)||mt(t)?t:Array.isArray(t)?E.array(t,{name:e,deep:!1}):ut(t)?E.object(t,void 0,{name:e,deep:!1}):pt(t)?E.map(t,{name:e,deep:!1}):Ot(t)?E.set(t,{name:e,deep:!1}):O(!1)}function Lt(t){return t}function K1(t,n,e){return Zi(t,n)?n:t}function di(t){var n=D2(!0,function(i,r,o,s,a){var h=o?o.initializer?o.initializer.call(i):o.value:void 0;T0(i,r,h,t)}),e=(typeof process<"u"&&process.env,n);return e.enhancer=t,e}var z2={deep:!0,name:void 0,defaultDecorator:void 0},Y1={deep:!1,name:void 0,defaultDecorator:void 0};Object.freeze(z2);Object.freeze(Y1);function lt(t){return t==null?z2:typeof t=="string"?{name:t,deep:!0}:t}function ti(t){return t.defaultDecorator?t.defaultDecorator.enhancer:t.deep===!1?Lt:Dt}var Xi=di(Dt),X1=di(W1),T2=di(Lt),Q1=di(K1);function J1(t,n,e){if(typeof arguments[1]=="string")return Xi.apply(null,arguments);if(Q2(t))return t;var i=ut(t)?E.object(t,n,e):Array.isArray(t)?E.array(t,n):pt(t)?E.map(t,n):Ot(t)?E.set(t,n):t;if(i!==t)return i;O(!1)}var b2={box:function(t,n){arguments.length>2&&ue("box");var e=lt(n);return new Ae(t,ti(e),e.name,!0,e.equals)},shallowBox:function(t,n){return arguments.length>2&&ue("shallowBox"),he("observable.shallowBox","observable.box(value, { deep: false })"),E.box(t,{name:n,deep:!1})},array:function(t,n){arguments.length>2&&ue("array");var e=lt(n);return new be(t,ti(e),e.name)},shallowArray:function(t,n){return arguments.length>2&&ue("shallowArray"),he("observable.shallowArray","observable.array(values, { deep: false })"),E.array(t,{name:n,deep:!1})},map:function(t,n){arguments.length>2&&ue("map");var e=lt(n);return new hi(t,ti(e),e.name)},shallowMap:function(t,n){return arguments.length>2&&ue("shallowMap"),he("observable.shallowMap","observable.map(values, { deep: false })"),E.map(t,{name:n,deep:!1})},set:function(t,n){arguments.length>2&&ue("set");var e=lt(n);return new mi(t,ti(e),e.name)},object:function(t,n,e){typeof arguments[1]=="string"&&ue("object");var i=lt(e);return _0({},t,n,i)},shallowObject:function(t,n){return typeof arguments[1]=="string"&&ue("shallowObject"),he("observable.shallowObject","observable.object(values, {}, { deep: false })"),E.object(t,{},{name:n,deep:!1})},ref:T2,shallow:X1,deep:Xi,struct:Q1},E=J1;Object.keys(b2).forEach(function(t){return E[t]=b2[t]});function ue(t){O("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}var ri=D2(!1,function(t,n,e,i,r){var o=e.get,s=e.set,a=r[0]||{};I0(t,n,W({get:o,set:s},a))}),Z1=ri({equals:ft.structural}),I=function(n,e,i){if(typeof e=="string"||n!==null&&typeof n=="object"&&arguments.length===1)return ri.apply(null,arguments);var r=typeof e=="object"?e:{};return r.get=n,r.set=typeof e=="function"?e:r.set,r.name=r.name||n.name||"",new we(r)};I.struct=Z1;var L=function(t){return t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE",t}(L||{}),ce=function(t){return t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK",t}(ce||{}),oi=function(){function t(n){this.cause=n}return t}();function Et(t){return t instanceof oi}function Vi(t){switch(t.dependenciesState){case L.UP_TO_DATE:return!1;case L.NOT_TRACKING:case L.STALE:return!0;case L.POSSIBLY_STALE:{for(var n=ht(),e=t.observing,i=e.length,r=0;r<i;r++){var o=e[r];if(ui(o)){if(m.disableErrorBoundaries)o.get();else try{o.get()}catch{return Le(n),!0}if(t.dependenciesState===L.STALE)return Le(n),!0}}return k2(t),Le(n),!1}}}function fi(t){var n=t.observers.length>0;m.computationDepth>0&&n&&O(!1),!m.allowStateChanges&&(n||m.enforceActions==="strict")&&O(!1)}function I2(t,n,e){var i=P2(!0);k2(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++m.runId;var r=m.trackingDerivation;m.trackingDerivation=t;var o;if(m.disableErrorBoundaries===!0)o=n.call(e);else try{o=n.call(e)}catch(s){o=new oi(s)}return m.trackingDerivation=r,e0(t),t.observing.length===0&&void 0,F2(i),o}function e0(t){for(var n=t.observing,e=t.observing=t.newObserving,i=L.UP_TO_DATE,r=0,o=t.unboundDepsCount,s=0;s<o;s++){var a=e[s];a.diffValue===0&&(a.diffValue=1,r!==s&&(e[r]=a),r++),a.dependenciesState>i&&(i=a.dependenciesState)}for(e.length=r,t.newObserving=null,o=n.length;o--;){var a=n[o];a.diffValue===0&&B2(a,t),a.diffValue=0}for(;r--;){var a=e[r];a.diffValue===1&&(a.diffValue=0,s0(a,t))}i!==L.UP_TO_DATE&&(t.dependenciesState=i,t.onBecomeStale())}function ji(t){var n=t.observing;t.observing=[];for(var e=n.length;e--;)B2(n[e],t);t.dependenciesState=L.NOT_TRACKING}function R2(t){var n=ht(),e=t();return Le(n),e}function ht(){var t=m.trackingDerivation;return m.trackingDerivation=null,t}function Le(t){m.trackingDerivation=t}function P2(t){var n=m.allowStateReads;return m.allowStateReads=t,n}function F2(t){m.allowStateReads=t}function k2(t){if(t.dependenciesState!==L.UP_TO_DATE){t.dependenciesState=L.UP_TO_DATE;for(var n=t.observing,e=n.length;e--;)n[e].lowestObserverState=L.UP_TO_DATE}}var si=0,t0=1;function Be(t,n){var e=function(){return i0(t,n,this,arguments)};return e.isMobxAction=!0,e}function i0(t,n,e,i){var r=n0(t,e,i);try{return n.apply(e,i)}catch(o){throw r.error=o,o}finally{r0(r)}}function n0(t,n,e){var i=j()&&!!t,r=0;if(i){r=Date.now();var o=e&&e.length||0,s=new Array(o);if(o>0)for(var a=0;a<o;a++)s[a]=e[a];ee({type:"action",name:t,object:n,arguments:s})}var h=ht();me();var D=V2(!0),T=P2(!0),Y={prevDerivation:h,prevAllowStateChanges:D,prevAllowStateReads:T,notifySpy:i,startTime:r,actionId:t0++,parentActionId:si};return si=Y.actionId,Y}function r0(t){si!==t.actionId&&O("invalid action stack. did you forget to finish an action?"),si=t.parentActionId,t.error!==void 0&&(m.suppressReactionErrors=!0),j2(t.prevAllowStateChanges),F2(t.prevAllowStateReads),ve(),Le(t.prevDerivation),t.notifySpy&&te({time:Date.now()-t.startTime}),m.suppressReactionErrors=!1}function V2(t){var n=m.allowStateChanges;return m.allowStateChanges=t,n}function j2(t){m.allowStateChanges=t}var Ae=function(t){M2(n,t);function n(e,i,r,o,s){r===void 0&&(r="ObservableValue@"+K()),o===void 0&&(o=!0),s===void 0&&(s=ft.default);var a=t.call(this,r)||this;return a.enhancer=i,a.name=r,a.equals=s,a.hasUnreportedChange=!1,a.value=i(e,void 0,r),o&&j()&&$e({type:"create",name:a.name,newValue:""+a.value}),a}return n.prototype.dehanceValue=function(e){return this.dehancer!==void 0?this.dehancer(e):e},n.prototype.set=function(e){var i=this.value;if(e=this.prepareNewValue(e),e!==m.UNCHANGED){var r=j();r&&ee({type:"update",name:this.name,newValue:e,oldValue:i}),this.setNewValue(e),r&&te()}},n.prototype.prepareNewValue=function(e){if(fi(this),le(this)){var i=de(this,{object:this,type:"update",newValue:e});if(!i)return m.UNCHANGED;e=i.newValue}return e=this.enhancer(e,this.value,this.name),this.equals(this.value,e)?m.UNCHANGED:e},n.prototype.setNewValue=function(e){var i=this.value;this.value=e,this.reportChanged(),ie(this)&&ne(this,{type:"update",object:this,newValue:e,oldValue:i})},n.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},n.prototype.intercept=function(e){return Tt(this,e)},n.prototype.observe=function(e,i){return i&&e({object:this,type:"update",newValue:this.value,oldValue:void 0}),It(this,e)},n.prototype.toJSON=function(){return this.get()},n.prototype.toString=function(){return this.name+"["+this.value+"]"},n.prototype.valueOf=function(){return w2(this.get())},n}(li);Ae.prototype[A2()]=Ae.prototype.valueOf;var Fo=Oe("ObservableValue",Ae),we=function(){function t(n){this.dependenciesState=L.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=L.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+K(),this.value=new oi(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=ce.NONE,this.derivation=n.get,this.name=n.name||"ComputedValue@"+K(),n.set&&(this.setter=Be(this.name+"-setter",n.set)),this.equals=n.equals||(n.compareStructural||n.struct?ft.structural:ft.default),this.scope=n.context,this.requiresReaction=!!n.requiresReaction,this.keepAlive=!!n.keepAlive}return t.prototype.onBecomeStale=function(){l0(this)},t.prototype.onBecomeUnobserved=function(){},t.prototype.onBecomeObserved=function(){},t.prototype.get=function(){this.isComputing&&O("Cycle detected in computation "+this.name+": "+this.derivation),m.inBatch===0&&this.observers.length===0&&!this.keepAlive?Vi(this)&&(this.warnAboutUntrackedRead(),me(),this.value=this.computeValue(!1),ve()):($2(this),Vi(this)&&this.trackAndCompute()&&c0(this));var n=this.value;if(Et(n))throw n.cause;return n},t.prototype.peek=function(){var n=this.computeValue(!1);if(Et(n))throw n.cause;return n},t.prototype.set=function(n){if(this.setter){Nt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,n)}finally{this.isRunningSetter=!1}}else Nt(!1,!1)},t.prototype.trackAndCompute=function(){j()&&$e({object:this.scope,type:"compute",name:this.name});var n=this.value,e=this.dependenciesState===L.NOT_TRACKING,i=this.computeValue(!0),r=e||Et(n)||Et(i)||!this.equals(n,i);return r&&(this.value=i),r},t.prototype.computeValue=function(n){this.isComputing=!0,m.computationDepth++;var e;if(n)e=I2(this,this.derivation,this.scope);else if(m.disableErrorBoundaries===!0)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(i){e=new oi(i)}return m.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(ji(this),this.value=void 0)},t.prototype.observe=function(n,e){var i=this,r=!0,o=void 0;return zt(function(){var s=i.get();if(!r||e){var a=ht();n({type:"update",object:i,newValue:s,oldValue:o}),Le(a)}r=!1,o=s})},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return w2(this.get())},t}();we.prototype[A2()]=we.prototype.valueOf;var ui=Oe("ComputedValue",we);var Ti=function(){function t(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1}return t}(),Ii=!0,o0=!1,m=function(){var t=ki();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ii=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==new Ti().version&&(Ii=!1),Ii?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new Ti):(setTimeout(function(){o0||O("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new Ti)}();function s0(t,n){var e=t.observers.length;e&&(t.observersIndexes[n.__mapid]=e),t.observers[e]=n,t.lowestObserverState>n.dependenciesState&&(t.lowestObserverState=n.dependenciesState)}function B2(t,n){if(t.observers.length===1)t.observers.length=0,H2(t);else{var e=t.observers,i=t.observersIndexes,r=e.pop();if(r!==n){var o=i[n.__mapid]||0;o?i[r.__mapid]=o:delete i[r.__mapid],e[o]=r}delete i[n.__mapid]}}function H2(t){t.isPendingUnobservation===!1&&(t.isPendingUnobservation=!0,m.pendingUnobservations.push(t))}function me(){m.inBatch++}function ve(){if(--m.inBatch===0){q2();for(var t=m.pendingUnobservations,n=0;n<t.length;n++){var e=t[n];e.isPendingUnobservation=!1,e.observers.length===0&&(e.isBeingObserved&&(e.isBeingObserved=!1,e.onBecomeUnobserved()),e instanceof we&&e.suspend())}m.pendingUnobservations=[]}}function $2(t){var n=m.trackingDerivation;return n!==null?(n.runId!==t.lastAccessedBy&&(t.lastAccessedBy=n.runId,n.newObserving[n.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(t.observers.length===0&&m.inBatch>0&&H2(t),!1)}function a0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale()),i.dependenciesState=L.STALE}}}function c0(t){if(t.lowestObserverState!==L.STALE){t.lowestObserverState=L.STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.POSSIBLY_STALE?i.dependenciesState=L.STALE:i.dependenciesState===L.UP_TO_DATE&&(t.lowestObserverState=L.UP_TO_DATE)}}}function l0(t){if(t.lowestObserverState===L.UP_TO_DATE){t.lowestObserverState=L.POSSIBLY_STALE;for(var n=t.observers,e=n.length;e--;){var i=n[e];i.dependenciesState===L.UP_TO_DATE&&(i.dependenciesState=L.POSSIBLY_STALE,i.isTracing!==ce.NONE&&U2(i,t),i.onBecomeStale())}}}function U2(t,n){if(console.log("[mobx.trace] '"+t.name+"' is invalidated due to a change in: '"+n.name+"'"),t.isTracing===ce.BREAK){var e=[];G2(y0(t),e,1),new Function(`debugger;
|
|
2
2
|
/*
|
|
3
3
|
Tracing '`+t.name+`'
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{v as x,w as C}from"./chunk-
|
|
1
|
+
import{v as x,w as C}from"./chunk-7FVU676A.js";import{Ad as _,Dd as U,Fb as e,Kb as s,Ma as l,Sd as w,Xa as u,_d as v,ab as d,bc as h,dc as f,fb as c,lb as o,mb as m,rb as p,ud as g,xb as r,yf as y}from"./chunk-FPEGN42P.js";function I(i,n){if(i&1&&r(0,"img",0),i&2){let t=e(2);s("tooltip","",t.user.name," (",t.user.description,")"),o("height",t.height)("width",t.width)("src",t.user.avatarUrl,l)("placement",t.tooltipPlacement)("container",t.container)}}function z(i,n){if(i&1&&(r(0,"fa-icon",2),h(1,"translate")),i&2){let t=e(2);m("min-width",t.width,"px")("min-height",t.height,"px")("font-size",t.fontSize,"px"),s("tooltip","",t.user.name," (",f(1,12,t.user.type,t.locale.language),")"),o("icon",t.icons.faUsers)("placement",t.tooltipPlacement)("container",t.container)}}function P(i,n){if(i&1&&c(0,I,1,8,"img",0)(1,z,2,15,"fa-icon",1),i&2){let t=e();p(t.user.isUser?0:1)}}function T(i,n){if(i&1&&r(0,"img",0),i&2){let t=e(2);s("tooltip","",t.user.fullName," (",t.user.email,")"),o("height",t.height)("width",t.width)("src",t.user.avatarUrl,l)("placement",t.tooltipPlacement)("container",t.container)}}function b(i,n){if(i&1&&(r(0,"fa-icon",4),h(1,"translate")),i&2){let t=e(2);m("min-width",t.width,"px")("min-height",t.height,"px")("font-size",t.fontSize,"px"),o("icon",t.unknownUserAsInfo?t.icons.faLightbulb:t.icons.faUserShield)("tooltip",f(1,10,t.unknownUserAsInfo?"Information":"Administrator",t.locale.language))("placement",t.tooltipPlacement)("container",t.container)}}function S(i,n){if(i&1&&c(0,T,1,8,"img",0)(1,b,2,13,"fa-icon",3),i&2){let t=e();p(t.user.login?0:1)}}var F=(()=>{class i{constructor(t){this.locale=t,this.isMember=!1,this.unknownUserAsInfo=!1,this.height=30,this.width=30,this.fontSize=16,this.tooltipPlacement="auto",this.container=null,this.icons={faUsers:v,faUserShield:y,faLightbulb:w}}ngOnInit(){this.height<28&&(this.fontSize=13)}static{this.\u0275fac=function(a){return new(a||i)(u(g))}}static{this.\u0275cmp=d({type:i,selectors:[["app-user-avatar"]],inputs:{user:"user",isMember:"isMember",unknownUserAsInfo:"unknownUserAsInfo",height:"height",width:"width",fontSize:"fontSize",tooltipPlacement:"tooltipPlacement",container:"container"},decls:2,vars:1,consts:[["alt","",1,"avatar-base-img","cursor-pointer","me-1",3,"height","width","src","tooltip","placement","container"],[1,"circle-primary-icon","cursor-pointer","me-1",3,"icon","tooltip","placement","container","min-width","min-height","font-size"],[1,"circle-primary-icon","cursor-pointer","me-1",3,"icon","tooltip","placement","container"],[1,"circle-gray-icon","cursor-pointer","me-1",3,"icon","tooltip","placement","container","min-width","min-height","font-size"],[1,"circle-gray-icon","cursor-pointer","me-1",3,"icon","tooltip","placement","container"]],template:function(a,A){a&1&&c(0,P,2,1)(1,S,2,1),a&2&&p(A.isMember?0:1)},dependencies:[C,x,U,_],encapsulation:2,changeDetection:0})}}return i})();export{F as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_a as O}from"./chunk-
|
|
1
|
+
import{_a as O}from"./chunk-7FVU676A.js";import{Ab as F,Fb as r,Gb as y,Hb as x,Pb as C,Qb as d,Rb as f,Sa as l,Tb as U,Wa as P,Xa as u,ab as m,bb as D,bc as g,ca as T,cc as k,da as I,db as M,ec as _,fb as c,fc as b,kb as h,lb as a,mb as E,nb as v,oa as S,rb as j,vb as o,wb as p,xc as w,yc as N,za as B}from"./chunk-FPEGN42P.js";var $=["*"];function z(t,s){t&1&&F(0)}function G(t,s){if(t&1&&(o(0,"bar",3),x(1),p()),t&2){let e=r();a("type",e.type)("value",e._value)("max",e.max)("animate",e.animate)("striped",e.striped)}}function J(t,s){if(t&1&&(o(0,"bar",3),d(1),p()),t&2){let e=s.$implicit,i=r(2);a("type",e.type)("value",e.value)("max",e.max||i.max)("animate",i.animate)("striped",i.striped),l(),f(e.label)}}function K(t,s){if(t&1&&c(0,J,2,6,"bar",4),t&2){let e=r();a("ngForOf",e._values)}}var L=(()=>{class t{constructor(e,i){this.el=e,this.renderer=i,this.max=100,this.value=0,this.animate=!1,this.striped=!1,this.type="info",this.percent=100}ngOnChanges(e){(e.value||e.max)&&(this.percent=100*(Number(e.value?.currentValue||this.value)/Number(e.max?.currentValue||this.max||100))),e.type&&this.applyTypeClasses()}applyTypeClasses(){if(this._prevType){let e=`progress-bar-${this._prevType}`,i=`bg-${this._prevType}`;this.renderer.removeClass(this.el.nativeElement,e),this.renderer.removeClass(this.el.nativeElement,i),this._prevType=void 0}if(this.type){let e=`progress-bar-${this.type}`,i=`bg-${this.type}`;this.renderer.addClass(this.el.nativeElement,e),this.renderer.addClass(this.el.nativeElement,i),this._prevType=this.type}}static{this.\u0275fac=function(i){return new(i||t)(u(B),u(P))}}static{this.\u0275cmp=m({type:t,selectors:[["bar"]],hostAttrs:["role","progressbar","aria-valuemin","0"],hostVars:13,hostBindings:function(i,n){i&2&&(h("aria-valuenow",n.value)("aria-valuetext",n.percent?n.percent.toFixed(0)+"%":"")("aria-valuemax",n.max),E("height","100","%")("width",n.percent,"%"),v("progress-bar",!0)("progress-bar-animated",n.animate)("progress-bar-striped",n.striped))},inputs:{max:"max",value:"value",animate:"animate",striped:"striped",type:"type"},features:[S],ngContentSelectors:$,decls:1,vars:0,template:function(i,n){i&1&&(y(),x(0))},encapsulation:2,changeDetection:0})}}return t})(),W=(()=>{class t{constructor(){this.animate=!1,this.max=100}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),Q=(()=>{class t{set value(e){this.isStacked=Array.isArray(e),typeof e=="number"?(this._value=e,this._values=void 0):(this._value=void 0,this._values=e)}constructor(e){this.max=100,this.animate=!1,this.striped=!1,this.isStacked=!1,this._value=0,Object.assign(this,e)}static{this.\u0275fac=function(i){return new(i||t)(u(W))}}static{this.\u0275cmp=m({type:t,selectors:[["progressbar"]],hostVars:3,hostBindings:function(i,n){i&2&&(h("max",n.max),v("progress",!0))},inputs:{max:"max",animate:"animate",striped:"striped",type:"type",value:"value"},ngContentSelectors:$,decls:5,vars:3,consts:[["NotStacked",""],["Stacked",""],[4,"ngIf","ngIfThen","ngIfElse"],[3,"type","value","max","animate","striped"],[3,"type","value","max","animate","striped",4,"ngFor","ngForOf"]],template:function(i,n){if(i&1&&(y(),c(0,z,1,0,"ng-container",2)(1,G,2,5,"ng-template",null,0,b)(3,K,1,1,"ng-template",null,1,b)),i&2){let H=C(2),q=C(4);a("ngIf",!n.isStacked)("ngIfThen",H)("ngIfElse",q)}},dependencies:[N,L,w],styles:["[_nghost-%COMP%]{width:100%;display:flex}"],changeDetection:0})}}return t})(),V=(()=>{class t{static forRoot(){return{ngModule:t,providers:[]}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=I({})}}return t})();var A=(()=>{class t{transform(e,i=0,n=!1){return O(e,i,n)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275pipe=M({name:"toBytes",type:t,pure:!0})}}return t})();function Y(t,s){if(t&1&&(o(0,"progressbar",0)(1,"span",1),d(2),g(3,"toBytes"),g(4,"toBytes"),p()()),t&2){let e=r();a("max",e.item.storageQuota)("value",e.item.storageUsage)("type",null),l(2),U("",_(3,5,e.item.storageUsage,2,!0)," / ",k(4,9,e.item.storageQuota),"")}}function Z(t,s){if(t&1&&(o(0,"progressbar",0)(1,"span",1),d(2),g(3,"toBytes"),p()()),t&2){let e=r();a("max",e.item.storageUsage)("value",e.item.storageUsage)("type",null),l(2),f(_(3,4,e.item.storageUsage,2,!0))}}var re=(()=>{class t{constructor(){this.item={storageUsage:0,storageQuota:null}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=m({type:t,selectors:[["app-storage-usage"]],inputs:{item:"item"},decls:2,vars:1,consts:[[1,"bg-black",3,"max","value","type"],[1,"ms-1","me-1"]],template:function(i,n){i&1&&c(0,Y,5,11,"progressbar",0)(1,Z,4,8,"progressbar",0),i&2&&j(n.item.storageQuota>0?0:1)},dependencies:[V,Q,A],encapsulation:2})}}return t})();export{Q as a,V as b,A as c,re as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as xe,z as Ce}from"./chunk-AXITQYVN.js";import{a as _e}from"./chunk-VIL6L67B.js";import{h as be}from"./chunk-5JDPARJT.js";import{g as ge}from"./chunk-2SX3MVH3.js";import{g as he,h as fe}from"./chunk-ZZGFGD5E.js";import{Ea as re,Ga as le,Ja as ce,Oa as pe,Sb as ue,gb as me,mb as v,qb as de,v as ee,w as te}from"./chunk-HDDBV3QQ.js";import{Ad as J,Bb as R,Bd as Z,Bf as ne,Dd as E,Df as oe,Eb as u,Ec as q,Fb as s,Gf as ae,Kf as se,L as A,Ma as B,Mb as N,Me as ie,Nb as $,Ob as L,Qb as d,Rb as b,Sa as o,Ub as W,Vb as K,Wa as U,Wb as H,Xa as h,ab as y,ad as Q,bc as g,cb as V,cc as X,dc as x,f as O,fb as f,fd as z,lb as c,nb as F,pa as C,pb as P,qa as S,rb as _,sd as Y,tb as T,ub as w,ud as G,vb as a,wa as I,wb as r,xb as m,za as j}from"./chunk-FPEGN42P.js";import{a as k,b as D}from"./chunk-GAL4ENT6.js";var ve=(()=>{class i{constructor(e,t){this.elementRef=e,this.renderer=t,this.inputField="name",this.fullWidth=!1,this.textCenter=!1,this.disableOnBlur=!0,this.disableFocus=!1,this.disableKeyboard=!1,this.updateObject=new I(!0),this.renamingInProgress=new I(!0),this.dangerColor="#dd4b39",this.primaryColor="#3c8dbc"}ngOnInit(){this.initStyles(),this.renamingInProgress.emit(!0),this.elementRef.nativeElement.value=this.inputObject[this.inputField],setTimeout(()=>{this.setParentDraggable("false"),this.disableFocus||(this.elementRef.nativeElement.focus(),this.elementRef.nativeElement.select())},5)}onBlur(){this.disableOnBlur&&this.disableEdit()}onEnter(){this.disableKeyboard||(this.elementRef.nativeElement.value?this.elementRef.nativeElement.value===this.inputObject[this.inputField]?(this.setCorrectForm(),this.disableEdit()):(this.setCorrectForm(),this.updateObject.next({object:this.inputObject,name:this.elementRef.nativeElement.value}),this.disableEdit()):this.setIncorrectForm())}onEscape(){this.disableKeyboard||this.disableEdit()}initStyles(){this.renderer.setStyle(this.elementRef.nativeElement,"display","inline"),this.renderer.setStyle(this.elementRef.nativeElement,"height","100%"),this.renderer.setStyle(this.elementRef.nativeElement,"min-height","20px"),this.renderer.addClass(this.elementRef.nativeElement,"form-control"),this.renderer.addClass(this.elementRef.nativeElement,"form-control-sm"),this.textCenter?(this.renderer.addClass(this.elementRef.nativeElement,"text-center"),this.renderer.setStyle(this.elementRef.nativeElement,"padding","0")):this.renderer.setStyle(this.elementRef.nativeElement,"padding","2px"),this.fullWidth?this.renderer.addClass(this.elementRef.nativeElement,"w-100"):this.renderer.addClass(this.elementRef.nativeElement,"w-75")}setIncorrectForm(){this.renderer.addClass(this.elementRef.nativeElement,"is-invalid"),this.renderer.setStyle(this.elementRef.nativeElement,"border-color",this.dangerColor)}setCorrectForm(){this.renderer.removeClass(this.elementRef.nativeElement,"is-invalid"),this.renderer.setStyle(this.elementRef.nativeElement,"border-color",this.primaryColor)}disableEdit(){this.setParentDraggable("true"),this.renamingInProgress.emit(!1),setTimeout(()=>this.inputObject.isRenamed=!1,100)}setParentDraggable(e){this.renderer.setAttribute(this.elementRef.nativeElement.parentElement,"draggable",e)}static{this.\u0275fac=function(t){return new(t||i)(h(j),h(U))}}static{this.\u0275dir=V({type:i,selectors:[["","appInputEdit",""]],hostBindings:function(t,n){t&1&&u("blur",function(){return n.onBlur()})("keyup.enter",function(){return n.onEnter()})("keyup.esc",function(){return n.onEscape()})},inputs:{inputObject:"inputObject",inputField:"inputField",fullWidth:"fullWidth",textCenter:"textCenter",disableOnBlur:"disableOnBlur",disableFocus:"disableFocus",disableKeyboard:"disableKeyboard"},outputs:{updateObject:"updateObject",renamingInProgress:"renamingInProgress"}})}}return i})();var Re=["InputRename"],Ee=(i,p)=>p.alias,Ie=(i,p)=>p.key;function Fe(i,p){if(i&1&&m(0,"app-user-avatar",15)(1,"div",10),i&2){let e=s().$implicit;c("user",e.owner)}}function Pe(i,p){if(i&1){let e=R();a(0,"input",16,0),u("updateObject",function(n){C(e);let l=s(2);return S(l.onRenameRoot(n))}),r()}if(i&2){let e=s().$implicit;c("inputObject",e)("fullWidth",!0)}}function Te(i,p){if(i&1&&(a(0,"span"),d(1),r()),i&2){let e=s(2).$implicit;o(),b(e.externalPath)}}function we(i,p){if(i&1&&(a(0,"span"),d(1),g(2,"pathSlice"),r()),i&2){let e=s(2).$implicit;o(),b(x(2,1,e.file.path,-2))}}function Me(i,p){if(i&1&&(a(0,"div",17)(1,"span"),d(2),r()(),a(3,"div",18),f(4,Te,2,1,"span")(5,we,3,4,"span"),r()),i&2){let e=s().$implicit,t=s();o(2),b(e.name),o(2),_(t.user.isAdmin&&e.externalPath?4:5)}}function ke(i,p){if(i&1){let e=R();a(0,"button",21),g(1,"translate"),H("ngModelChange",function(n){C(e);let l=s().$implicit,M=s().$implicit;return K(M.hPerms[l.key],n)||(M.hPerms[l.key]=n),S(n)}),u("ngModelChange",function(){C(e);let n=s(2).$implicit,l=s();return S(l.onPermissionChange(n))}),m(2,"fa-icon",22),r()}if(i&2){let e=s().$implicit,t=s().$implicit,n=s();P("btn btn-sm btn-custom ",!t.isDir&&(e.key==="a"||e.key==="d")?"disabled":"",""),W("ngModel",t.hPerms[e.key]),c("tooltip",x(1,6,n.SPACES_PERMISSIONS_TEXT[e.key].text,n.locale.language)),o(2),c("icon",n.SPACES_PERMISSIONS_TEXT[e.key].icon)}}function De(i,p){if(i&1&&(a(0,"button",23),g(1,"translate"),m(2,"fa-icon",22),r()),i&2){let e=s().$implicit,t=s().$implicit,n=s();F("active",t.hPerms[e.key]),c("tooltip",x(1,4,n.SPACES_PERMISSIONS_TEXT[e.key].text,n.locale.language)),o(2),c("icon",n.SPACES_PERMISSIONS_TEXT[e.key].icon)}}function Oe(i,p){if(i&1&&f(0,ke,3,9,"button",19)(1,De,3,7,"button",20),i&2){let e=s().$implicit,t=s();_(!(e.owner!=null&&e.owner.id)&&t.user.isAdmin||(e.owner==null?null:e.owner.id)===t.user.id?0:1)}}function Ae(i,p){if(i&1){let e=R();a(0,"div",1)(1,"div",2)(2,"div",3),f(3,Fe,2,1),m(4,"img",4),a(5,"div",5),f(6,Pe,2,2,"input",6)(7,Me,6,2),r()(),a(8,"div",7)(9,"div",8),d(10),r(),a(11,"div",8),d(12),g(13,"amTimeAgo"),r()(),a(14,"div",9),m(15,"div",10),T(16,Oe,2,1,null,null,Ie),g(18,"keyvalue"),m(19,"div",11),a(20,"button",12),g(21,"translate"),u("click",function(){let n=C(e).$implicit,l=s();return S(l.setRenamed(n))}),m(22,"fa-icon",13),r(),a(23,"button",14),g(24,"translate"),u("click",function(){let n=C(e).$implicit,l=s();return S(l.removeRoot(n))}),m(25,"fa-icon",13),r()()()()}if(i&2){let e=p.$implicit,t=s();o(3),_(t.showUsers?3:-1),o(),F("cursor-pointer",!!e.file.path),c("src",e.file.mimeUrl,B)("tooltip",e.file.path),o(2),_(e.isRenamed?6:7),o(4),b(e.alias),o(2),b(X(13,15,e.createdAt)),o(4),w(x(18,17,e.hPerms,t.originalOrderKeyValue)),o(4),P("btn btn-sm ",e.isRenamed?"btn-success":"btn-custom"," me-2"),c("tooltip",x(21,20,"Rename",t.locale.language)),o(2),c("icon",t.icons.faPen),o(),c("tooltip",x(24,23,"Remove",t.locale.language)),o(2),c("icon",t.icons.faTimes)}}var ye=(()=>{class i{constructor(e){this.locale=e,this.showUsers=!0,this.addRootFile=null,this.subscription=null,this.icons={faTimes:oe,faPen:ie},this.SPACES_PERMISSIONS_TEXT=le,this.originalOrderKeyValue=me}ngOnInit(){this.addRootFile&&(this.subscription=this.addRootFile.subscribe(e=>this.addRoot(e)))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}addRoot(e){let t={id:0,alias:v(e.name,"alias",this.space.roots).toLowerCase(),name:v(e.name,"name",this.space.roots),permissions:"",createdAt:new Date};e.externalPath?(t.externalPath=e.externalPath,t.owner={id:null,login:null,email:null,fullName:null},t.file={id:0,path:null,mime:null}):(t.externalPath=null,t.owner={id:this.user.id,login:this.user.login,email:this.user.email,fullName:this.user.fullName},t.file={id:e.id,path:e.path,mime:e.mime}),this.space.addRoot(t,!0)}removeRoot(e){this.space.roots=this.space.roots.filter(t=>e.alias!==t.alias)}onRenameRoot(e){let t=e.object;t.alias=v(pe(e.name,!0),"alias",this.space.roots.filter(n=>n.id!==t.id)).toLowerCase(),t.name=v(e.name.replace(ce,""),"name",this.space.roots.filter(n=>n.id!==t.id))}onPermissionChange(e){e.permissions=de(e.hPerms)}setRenamed(e){e.isRenamed?(this.onRenameRoot({object:e,name:this.inputRename.nativeElement.value}),e.isRenamed=!1):e.isRenamed=!0}static{this.\u0275fac=function(t){return new(t||i)(h(G))}}static{this.\u0275cmp=y({type:i,selectors:[["app-space-manage-roots"]],viewQuery:function(t,n){if(t&1&&N(Re,5),t&2){let l;$(l=L())&&(n.inputRename=l.first)}},inputs:{space:"space",user:"user",showUsers:"showUsers",addRootFile:"addRootFile"},decls:2,vars:0,consts:[["InputRename",""],[1,"bg-theme","mb-1","p-2",2,"border-radius","4px"],[1,"d-flex","align-items-center","text-truncate","no-select","fs-xs",2,"height","32px"],[1,"d-flex","align-items-center","text-truncate","me-auto"],["draggable","false","height","30","width","30","alt","",3,"src","tooltip"],[1,"d-flex","flex-column","text-truncate","ms-2"],["appInputEdit","","type","text","required","",3,"inputObject","fullWidth"],[1,"d-flex","flex-column","fs-xxxs","text-muted","d-none","d-lg-block","ms-3"],[1,"d-flex","justify-content-end"],[1,"d-flex","no-select"],[1,"vr","mx-2"],[1,"vr","ms-1","me-2"],["type","button",3,"click","tooltip"],[3,"icon"],["type","button",1,"btn","btn-sm","btn-danger",3,"click","tooltip"],["tooltipPlacement","bottom",3,"user"],["appInputEdit","","type","text","required","",3,"updateObject","inputObject","fullWidth"],[1,"text-truncate"],[1,"d-none","d-lg-block","fs-xxxs","text-truncate"],["btnCheckbox","","type","button",3,"ngModel","tooltip","class"],["type","button",1,"btn","btn-sm","btn-custom","disabled",3,"tooltip","active"],["btnCheckbox","","type","button",3,"ngModelChange","ngModel","tooltip"],["size","lg",3,"icon"],["type","button",1,"btn","btn-sm","btn-custom","disabled",3,"tooltip"]],template:function(t,n){t&1&&T(0,Ae,26,26,"div",1,Ee),t&2&&w(n.space.roots)},dependencies:[fe,he,E,q,J,be,_e,te,ee,Y,Q,z,ve,xe],encapsulation:2})}}return i})();function je(i,p){if(i&1&&m(0,"fa-icon",3),i&2){let e=s();c("icon",e.icons.faSpinner)}}function Be(i,p){i&1&&(a(0,"span",5),d(1,"You have no files anchored on this space"),r())}var xt=(()=>{class i{constructor(e,t){this.layout=e,this.spacesService=t,this.addRootFileEvent=new O,this.icons={faAnchor:se,faPlus:ne,faSpinner:ae,SPACES:re.SPACES},this.submitted=!1,this.loading=!1}ngOnInit(){this.space?.roots.length&&(this.space.roots=[]),this.spacesService.getUserSpaceRoots(this.space.id).subscribe({next:e=>this.setSpaceRoots(e),error:e=>{this.layout.sendNotification("error","Manage my anchored files",e.error.message)}})}openSelectRootDialog(){this.layout.openDialog(Ce,"xl",{initialState:{currentRoots:this.space.roots.filter(t=>t.owner.id===this.user.id)}}).content.submitEvent.pipe(A(1)).subscribe(t=>this.addRootFileEvent.next(t))}onSubmit(){this.loading=!0,this.submitted=!0,this.spacesService.updateUserSpaceRoots(this.space.id,this.space.roots.map(e=>({id:e.id,alias:e.alias,name:e.name,permissions:e.permissions,file:{id:e.file.id,path:e.file.path,mime:e.file.mime}}))).subscribe({next:e=>{this.setSpaceRoots(e),this.layout.closeDialog()},error:e=>{this.layout.sendNotification("error","Manage my anchored files",e.error.message),this.submitted=!1,this.loading=!1}})}setSpaceRoots(e){this.space.roots=[];for(let t of e)this.space.addRoot(D(k({},t),{owner:this.user}),!0);this.space.counts.roots=this.space.roots.length}static{this.\u0275fac=function(t){return new(t||i)(h(ue),h(ge))}}static{this.\u0275cmp=y({type:i,selectors:[["app-space-user-anchors-dialog"]],inputs:{space:"space",user:"user"},decls:22,vars:11,consts:[[1,"modal-header","align-items-center"],[1,"modal-title"],[1,"me-2",3,"icon"],["animation","spin","size","sm",1,"ms-2",3,"icon"],[1,"modal-title","ms-auto"],["l10nTranslate",""],["aria-label","Close","type","button",1,"btn-close","btn-close-white","ms-2",3,"click"],[1,"modal-body"],[3,"space","user","showUsers","addRootFile"],[1,"modal-footer"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-success",3,"click"],[3,"icon"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-primary",3,"click","disabled"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"h4",1),m(2,"fa-icon",2),a(3,"span"),d(4),r()(),f(5,je,1,1,"fa-icon",3),a(6,"h4",4)(7,"span",5),d(8,"Manage my anchored files"),r()(),a(9,"button",6),u("click",function(){return n.layout.closeDialog()}),r()(),a(10,"div",7),m(11,"app-space-manage-roots",8),f(12,Be,2,0,"span",5),r(),a(13,"div",9)(14,"button",10),u("click",function(){return n.openSelectRootDialog()}),m(15,"fa-icon",11)(16,"fa-icon",11),d(17," File "),r(),a(18,"button",12),u("click",function(){return n.layout.closeDialog()}),d(19,"Cancel"),r(),a(20,"button",13),u("click",function(){return n.onSubmit()}),d(21," Confirm "),r()()),t&2&&(o(2),c("icon",n.icons.SPACES),o(2),b(n.space.name),o(),_(n.loading?5:-1),o(6),c("space",n.space)("user",n.user)("showUsers",!1)("addRootFile",n.addRootFileEvent),o(),_(n.space.roots.length?-1:12),o(3),c("icon",n.icons.faPlus),o(),c("icon",n.icons.faAnchor),o(4),c("disabled",n.submitted))},dependencies:[E,Z,ye],encapsulation:2})}}return i})();export{ve as a,ye as b,xt as c};
|
|
1
|
+
import{x as xe,z as Ce}from"./chunk-EYXC4W63.js";import{a as _e}from"./chunk-GSVMWC5N.js";import{h as be}from"./chunk-ZYB4TLJM.js";import{g as ge}from"./chunk-N3QPDPBV.js";import{g as he,h as fe}from"./chunk-X6UFHF4Q.js";import{Ea as re,Ga as le,Ja as ce,Oa as pe,Sb as ue,gb as me,mb as v,qb as de,v as ee,w as te}from"./chunk-7FVU676A.js";import{Ad as J,Bb as R,Bd as Z,Bf as ne,Dd as E,Df as oe,Eb as u,Ec as q,Fb as s,Gf as ae,Kf as se,L as A,Ma as B,Mb as N,Me as ie,Nb as $,Ob as L,Qb as d,Rb as b,Sa as o,Ub as W,Vb as K,Wa as U,Wb as H,Xa as h,ab as y,ad as Q,bc as g,cb as V,cc as X,dc as x,f as O,fb as f,fd as z,lb as c,nb as F,pa as C,pb as P,qa as S,rb as _,sd as Y,tb as T,ub as w,ud as G,vb as a,wa as I,wb as r,xb as m,za as j}from"./chunk-FPEGN42P.js";import{a as k,b as D}from"./chunk-GAL4ENT6.js";var ve=(()=>{class i{constructor(e,t){this.elementRef=e,this.renderer=t,this.inputField="name",this.fullWidth=!1,this.textCenter=!1,this.disableOnBlur=!0,this.disableFocus=!1,this.disableKeyboard=!1,this.updateObject=new I(!0),this.renamingInProgress=new I(!0),this.dangerColor="#dd4b39",this.primaryColor="#3c8dbc"}ngOnInit(){this.initStyles(),this.renamingInProgress.emit(!0),this.elementRef.nativeElement.value=this.inputObject[this.inputField],setTimeout(()=>{this.setParentDraggable("false"),this.disableFocus||(this.elementRef.nativeElement.focus(),this.elementRef.nativeElement.select())},5)}onBlur(){this.disableOnBlur&&this.disableEdit()}onEnter(){this.disableKeyboard||(this.elementRef.nativeElement.value?this.elementRef.nativeElement.value===this.inputObject[this.inputField]?(this.setCorrectForm(),this.disableEdit()):(this.setCorrectForm(),this.updateObject.next({object:this.inputObject,name:this.elementRef.nativeElement.value}),this.disableEdit()):this.setIncorrectForm())}onEscape(){this.disableKeyboard||this.disableEdit()}initStyles(){this.renderer.setStyle(this.elementRef.nativeElement,"display","inline"),this.renderer.setStyle(this.elementRef.nativeElement,"height","100%"),this.renderer.setStyle(this.elementRef.nativeElement,"min-height","20px"),this.renderer.addClass(this.elementRef.nativeElement,"form-control"),this.renderer.addClass(this.elementRef.nativeElement,"form-control-sm"),this.textCenter?(this.renderer.addClass(this.elementRef.nativeElement,"text-center"),this.renderer.setStyle(this.elementRef.nativeElement,"padding","0")):this.renderer.setStyle(this.elementRef.nativeElement,"padding","2px"),this.fullWidth?this.renderer.addClass(this.elementRef.nativeElement,"w-100"):this.renderer.addClass(this.elementRef.nativeElement,"w-75")}setIncorrectForm(){this.renderer.addClass(this.elementRef.nativeElement,"is-invalid"),this.renderer.setStyle(this.elementRef.nativeElement,"border-color",this.dangerColor)}setCorrectForm(){this.renderer.removeClass(this.elementRef.nativeElement,"is-invalid"),this.renderer.setStyle(this.elementRef.nativeElement,"border-color",this.primaryColor)}disableEdit(){this.setParentDraggable("true"),this.renamingInProgress.emit(!1),setTimeout(()=>this.inputObject.isRenamed=!1,100)}setParentDraggable(e){this.renderer.setAttribute(this.elementRef.nativeElement.parentElement,"draggable",e)}static{this.\u0275fac=function(t){return new(t||i)(h(j),h(U))}}static{this.\u0275dir=V({type:i,selectors:[["","appInputEdit",""]],hostBindings:function(t,n){t&1&&u("blur",function(){return n.onBlur()})("keyup.enter",function(){return n.onEnter()})("keyup.esc",function(){return n.onEscape()})},inputs:{inputObject:"inputObject",inputField:"inputField",fullWidth:"fullWidth",textCenter:"textCenter",disableOnBlur:"disableOnBlur",disableFocus:"disableFocus",disableKeyboard:"disableKeyboard"},outputs:{updateObject:"updateObject",renamingInProgress:"renamingInProgress"}})}}return i})();var Re=["InputRename"],Ee=(i,p)=>p.alias,Ie=(i,p)=>p.key;function Fe(i,p){if(i&1&&m(0,"app-user-avatar",15)(1,"div",10),i&2){let e=s().$implicit;c("user",e.owner)}}function Pe(i,p){if(i&1){let e=R();a(0,"input",16,0),u("updateObject",function(n){C(e);let l=s(2);return S(l.onRenameRoot(n))}),r()}if(i&2){let e=s().$implicit;c("inputObject",e)("fullWidth",!0)}}function Te(i,p){if(i&1&&(a(0,"span"),d(1),r()),i&2){let e=s(2).$implicit;o(),b(e.externalPath)}}function we(i,p){if(i&1&&(a(0,"span"),d(1),g(2,"pathSlice"),r()),i&2){let e=s(2).$implicit;o(),b(x(2,1,e.file.path,-2))}}function Me(i,p){if(i&1&&(a(0,"div",17)(1,"span"),d(2),r()(),a(3,"div",18),f(4,Te,2,1,"span")(5,we,3,4,"span"),r()),i&2){let e=s().$implicit,t=s();o(2),b(e.name),o(2),_(t.user.isAdmin&&e.externalPath?4:5)}}function ke(i,p){if(i&1){let e=R();a(0,"button",21),g(1,"translate"),H("ngModelChange",function(n){C(e);let l=s().$implicit,M=s().$implicit;return K(M.hPerms[l.key],n)||(M.hPerms[l.key]=n),S(n)}),u("ngModelChange",function(){C(e);let n=s(2).$implicit,l=s();return S(l.onPermissionChange(n))}),m(2,"fa-icon",22),r()}if(i&2){let e=s().$implicit,t=s().$implicit,n=s();P("btn btn-sm btn-custom ",!t.isDir&&(e.key==="a"||e.key==="d")?"disabled":"",""),W("ngModel",t.hPerms[e.key]),c("tooltip",x(1,6,n.SPACES_PERMISSIONS_TEXT[e.key].text,n.locale.language)),o(2),c("icon",n.SPACES_PERMISSIONS_TEXT[e.key].icon)}}function De(i,p){if(i&1&&(a(0,"button",23),g(1,"translate"),m(2,"fa-icon",22),r()),i&2){let e=s().$implicit,t=s().$implicit,n=s();F("active",t.hPerms[e.key]),c("tooltip",x(1,4,n.SPACES_PERMISSIONS_TEXT[e.key].text,n.locale.language)),o(2),c("icon",n.SPACES_PERMISSIONS_TEXT[e.key].icon)}}function Oe(i,p){if(i&1&&f(0,ke,3,9,"button",19)(1,De,3,7,"button",20),i&2){let e=s().$implicit,t=s();_(!(e.owner!=null&&e.owner.id)&&t.user.isAdmin||(e.owner==null?null:e.owner.id)===t.user.id?0:1)}}function Ae(i,p){if(i&1){let e=R();a(0,"div",1)(1,"div",2)(2,"div",3),f(3,Fe,2,1),m(4,"img",4),a(5,"div",5),f(6,Pe,2,2,"input",6)(7,Me,6,2),r()(),a(8,"div",7)(9,"div",8),d(10),r(),a(11,"div",8),d(12),g(13,"amTimeAgo"),r()(),a(14,"div",9),m(15,"div",10),T(16,Oe,2,1,null,null,Ie),g(18,"keyvalue"),m(19,"div",11),a(20,"button",12),g(21,"translate"),u("click",function(){let n=C(e).$implicit,l=s();return S(l.setRenamed(n))}),m(22,"fa-icon",13),r(),a(23,"button",14),g(24,"translate"),u("click",function(){let n=C(e).$implicit,l=s();return S(l.removeRoot(n))}),m(25,"fa-icon",13),r()()()()}if(i&2){let e=p.$implicit,t=s();o(3),_(t.showUsers?3:-1),o(),F("cursor-pointer",!!e.file.path),c("src",e.file.mimeUrl,B)("tooltip",e.file.path),o(2),_(e.isRenamed?6:7),o(4),b(e.alias),o(2),b(X(13,15,e.createdAt)),o(4),w(x(18,17,e.hPerms,t.originalOrderKeyValue)),o(4),P("btn btn-sm ",e.isRenamed?"btn-success":"btn-custom"," me-2"),c("tooltip",x(21,20,"Rename",t.locale.language)),o(2),c("icon",t.icons.faPen),o(),c("tooltip",x(24,23,"Remove",t.locale.language)),o(2),c("icon",t.icons.faTimes)}}var ye=(()=>{class i{constructor(e){this.locale=e,this.showUsers=!0,this.addRootFile=null,this.subscription=null,this.icons={faTimes:oe,faPen:ie},this.SPACES_PERMISSIONS_TEXT=le,this.originalOrderKeyValue=me}ngOnInit(){this.addRootFile&&(this.subscription=this.addRootFile.subscribe(e=>this.addRoot(e)))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}addRoot(e){let t={id:0,alias:v(e.name,"alias",this.space.roots).toLowerCase(),name:v(e.name,"name",this.space.roots),permissions:"",createdAt:new Date};e.externalPath?(t.externalPath=e.externalPath,t.owner={id:null,login:null,email:null,fullName:null},t.file={id:0,path:null,mime:null}):(t.externalPath=null,t.owner={id:this.user.id,login:this.user.login,email:this.user.email,fullName:this.user.fullName},t.file={id:e.id,path:e.path,mime:e.mime}),this.space.addRoot(t,!0)}removeRoot(e){this.space.roots=this.space.roots.filter(t=>e.alias!==t.alias)}onRenameRoot(e){let t=e.object;t.alias=v(pe(e.name,!0),"alias",this.space.roots.filter(n=>n.id!==t.id)).toLowerCase(),t.name=v(e.name.replace(ce,""),"name",this.space.roots.filter(n=>n.id!==t.id))}onPermissionChange(e){e.permissions=de(e.hPerms)}setRenamed(e){e.isRenamed?(this.onRenameRoot({object:e,name:this.inputRename.nativeElement.value}),e.isRenamed=!1):e.isRenamed=!0}static{this.\u0275fac=function(t){return new(t||i)(h(G))}}static{this.\u0275cmp=y({type:i,selectors:[["app-space-manage-roots"]],viewQuery:function(t,n){if(t&1&&N(Re,5),t&2){let l;$(l=L())&&(n.inputRename=l.first)}},inputs:{space:"space",user:"user",showUsers:"showUsers",addRootFile:"addRootFile"},decls:2,vars:0,consts:[["InputRename",""],[1,"bg-theme","mb-1","p-2",2,"border-radius","4px"],[1,"d-flex","align-items-center","text-truncate","no-select","fs-xs",2,"height","32px"],[1,"d-flex","align-items-center","text-truncate","me-auto"],["draggable","false","height","30","width","30","alt","",3,"src","tooltip"],[1,"d-flex","flex-column","text-truncate","ms-2"],["appInputEdit","","type","text","required","",3,"inputObject","fullWidth"],[1,"d-flex","flex-column","fs-xxxs","text-muted","d-none","d-lg-block","ms-3"],[1,"d-flex","justify-content-end"],[1,"d-flex","no-select"],[1,"vr","mx-2"],[1,"vr","ms-1","me-2"],["type","button",3,"click","tooltip"],[3,"icon"],["type","button",1,"btn","btn-sm","btn-danger",3,"click","tooltip"],["tooltipPlacement","bottom",3,"user"],["appInputEdit","","type","text","required","",3,"updateObject","inputObject","fullWidth"],[1,"text-truncate"],[1,"d-none","d-lg-block","fs-xxxs","text-truncate"],["btnCheckbox","","type","button",3,"ngModel","tooltip","class"],["type","button",1,"btn","btn-sm","btn-custom","disabled",3,"tooltip","active"],["btnCheckbox","","type","button",3,"ngModelChange","ngModel","tooltip"],["size","lg",3,"icon"],["type","button",1,"btn","btn-sm","btn-custom","disabled",3,"tooltip"]],template:function(t,n){t&1&&T(0,Ae,26,26,"div",1,Ee),t&2&&w(n.space.roots)},dependencies:[fe,he,E,q,J,be,_e,te,ee,Y,Q,z,ve,xe],encapsulation:2})}}return i})();function je(i,p){if(i&1&&m(0,"fa-icon",3),i&2){let e=s();c("icon",e.icons.faSpinner)}}function Be(i,p){i&1&&(a(0,"span",5),d(1,"You have no files anchored on this space"),r())}var xt=(()=>{class i{constructor(e,t){this.layout=e,this.spacesService=t,this.addRootFileEvent=new O,this.icons={faAnchor:se,faPlus:ne,faSpinner:ae,SPACES:re.SPACES},this.submitted=!1,this.loading=!1}ngOnInit(){this.space?.roots.length&&(this.space.roots=[]),this.spacesService.getUserSpaceRoots(this.space.id).subscribe({next:e=>this.setSpaceRoots(e),error:e=>{this.layout.sendNotification("error","Manage my anchored files",e.error.message)}})}openSelectRootDialog(){this.layout.openDialog(Ce,"xl",{initialState:{currentRoots:this.space.roots.filter(t=>t.owner.id===this.user.id)}}).content.submitEvent.pipe(A(1)).subscribe(t=>this.addRootFileEvent.next(t))}onSubmit(){this.loading=!0,this.submitted=!0,this.spacesService.updateUserSpaceRoots(this.space.id,this.space.roots.map(e=>({id:e.id,alias:e.alias,name:e.name,permissions:e.permissions,file:{id:e.file.id,path:e.file.path,mime:e.file.mime}}))).subscribe({next:e=>{this.setSpaceRoots(e),this.layout.closeDialog()},error:e=>{this.layout.sendNotification("error","Manage my anchored files",e.error.message),this.submitted=!1,this.loading=!1}})}setSpaceRoots(e){this.space.roots=[];for(let t of e)this.space.addRoot(D(k({},t),{owner:this.user}),!0);this.space.counts.roots=this.space.roots.length}static{this.\u0275fac=function(t){return new(t||i)(h(ue),h(ge))}}static{this.\u0275cmp=y({type:i,selectors:[["app-space-user-anchors-dialog"]],inputs:{space:"space",user:"user"},decls:22,vars:11,consts:[[1,"modal-header","align-items-center"],[1,"modal-title"],[1,"me-2",3,"icon"],["animation","spin","size","sm",1,"ms-2",3,"icon"],[1,"modal-title","ms-auto"],["l10nTranslate",""],["aria-label","Close","type","button",1,"btn-close","btn-close-white","ms-2",3,"click"],[1,"modal-body"],[3,"space","user","showUsers","addRootFile"],[1,"modal-footer"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-success",3,"click"],[3,"icon"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","button","l10nTranslate","",1,"btn","btn-sm","btn-primary",3,"click","disabled"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"h4",1),m(2,"fa-icon",2),a(3,"span"),d(4),r()(),f(5,je,1,1,"fa-icon",3),a(6,"h4",4)(7,"span",5),d(8,"Manage my anchored files"),r()(),a(9,"button",6),u("click",function(){return n.layout.closeDialog()}),r()(),a(10,"div",7),m(11,"app-space-manage-roots",8),f(12,Be,2,0,"span",5),r(),a(13,"div",9)(14,"button",10),u("click",function(){return n.openSelectRootDialog()}),m(15,"fa-icon",11)(16,"fa-icon",11),d(17," File "),r(),a(18,"button",12),u("click",function(){return n.layout.closeDialog()}),d(19,"Cancel"),r(),a(20,"button",13),u("click",function(){return n.onSubmit()}),d(21," Confirm "),r()()),t&2&&(o(2),c("icon",n.icons.SPACES),o(2),b(n.space.name),o(),_(n.loading?5:-1),o(6),c("space",n.space)("user",n.user)("showUsers",!1)("addRootFile",n.addRootFileEvent),o(),_(n.space.roots.length?-1:12),o(3),c("icon",n.icons.faPlus),o(),c("icon",n.icons.faAnchor),o(4),c("disabled",n.submitted))},dependencies:[E,Z,ye],encapsulation:2})}}return i})();export{ve as a,ye as b,xt as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l}from"./chunk-JXZCNFW7.js";import{Za as b,_a as D,v as I,w as L}from"./chunk-
|
|
1
|
+
import{a as l}from"./chunk-JXZCNFW7.js";import{Za as b,_a as D,v as I,w as L}from"./chunk-7FVU676A.js";import{Ad as P,Bd as w,Eb as q,Qb as T,Sa as p,Ub as C,Vb as v,Wb as x,Xa as m,Yc as W,ab as d,ad as y,bc as _,dc as M,fd as Q,lb as h,mb as g,nb as c,pb as f,sd as S,ud as B,vb as n,wa as s,wb as r}from"./chunk-FPEGN42P.js";var J=(()=>{class o{constructor(t){this.locale=t,this.quotaChange=new s,this.maxWidthPercent=75,this.fullWidth=!1,this.invalid=!1}ngOnInit(){this.fullWidth&&(this.maxWidthPercent=100),this.quota!==null&&(this.quotaText=this.quota===0?"0":D(this.quota))}onQuotaBlur(){if(this.quotaText){if(this.quotaText==="0"){this.quotaChange.emit(0);return}let t=l.exec(this.quotaText);if(t){this.quotaText=`${t[1]} ${t[2].toUpperCase()}`,this.quotaChange.emit(b(parseInt(t[1]),t[2]));return}}this.quotaChange.emit(null)}validateQuota(){this.invalid=this.quotaText&&this.quotaText!=="0"&&!l.test(this.quotaText)}static{this.\u0275fac=function(i){return new(i||o)(m(B))}}static{this.\u0275cmp=d({type:o,selectors:[["app-storage-quota"]],inputs:{quota:"quota",maxWidthPercent:"maxWidthPercent",fullWidth:"fullWidth"},outputs:{quotaChange:"quotaChange"},decls:5,vars:12,consts:[["for","storageQuota","l10nTranslate",""],["id","storageQuota"],["id","quota","placement","top","tooltip",'"512 MB" "12 GB" "2 TB" ...',"triggers","focus","type","text",3,"ngModelChange","blur","ngModel","placeholder"]],template:function(i,e){i&1&&(n(0,"label",0),T(1,"Storage Quota"),r(),n(2,"div",1)(3,"input",2),_(4,"translate"),x("ngModelChange",function(a){return v(e.quotaText,a)||(e.quotaText=a),a}),q("ngModelChange",function(){return e.validateQuota()})("blur",function(){return e.onQuotaBlur()}),r()()),i&2&&(p(3),f("form-control form-control-sm ",e.invalid?"is-invalid":"",""),g("max-width",e.maxWidthPercent,"%"),c("w-100",e.fullWidth),C("ngModel",e.quotaText),h("placeholder",M(4,9,"Unlimited",e.locale.language)))},dependencies:[P,L,I,S,W,y,Q,w],encapsulation:2})}}return o})();export{J as a};
|