@sync-in/server 1.5.0 → 1.5.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +2 -2
  3. package/static/{chunk-IPSMJHMQ.js → chunk-2R6HHGUR.js} +1 -1
  4. package/static/{chunk-FR4AOLYL.js → chunk-4U5A2DEP.js} +1 -1
  5. package/static/{chunk-45UQJGGY.js → chunk-54EAZ2UD.js} +1 -1
  6. package/static/{chunk-KGPCIUD2.js → chunk-6OJZWYRZ.js} +1 -1
  7. package/static/{chunk-CK4BY2NX.js → chunk-7VRUZRJG.js} +1 -1
  8. package/static/{chunk-RASR4CK6.js → chunk-7ZRXJONB.js} +1 -1
  9. package/static/{chunk-IML5UYQG.js → chunk-CRQNEHTX.js} +1 -1
  10. package/static/{chunk-OEFBC4GG.js → chunk-F2J2IIJE.js} +1 -1
  11. package/static/{chunk-HYMDGBZL.js → chunk-FNFGUIQH.js} +1 -1
  12. package/static/{chunk-2UWN7IQF.js → chunk-GGLK52CG.js} +1 -1
  13. package/static/{chunk-SBOQGGZX.js → chunk-HX6BBYVD.js} +1 -1
  14. package/static/{chunk-RFMOUC22.js → chunk-IZL7JPTS.js} +1 -1
  15. package/static/{chunk-ENWABUR4.js → chunk-JF7S3UYQ.js} +1 -1
  16. package/static/{chunk-XTYGMF2V.js → chunk-JYXLQRHG.js} +1 -1
  17. package/static/{chunk-P734A3XZ.js → chunk-KSHPKI4G.js} +1 -1
  18. package/static/{chunk-CSBDAY77.js → chunk-L6MU6S2V.js} +1 -1
  19. package/static/{chunk-SJAFPXQV.js → chunk-LLWSLOSX.js} +1 -1
  20. package/static/{chunk-YGD22MWQ.js → chunk-MCLQFZ3S.js} +1 -1
  21. package/static/{chunk-YCWMV2YR.js → chunk-MGGT6MIJ.js} +1 -1
  22. package/static/{chunk-JVCWYSNP.js → chunk-MRSWNAVB.js} +1 -1
  23. package/static/{chunk-EILQG525.js → chunk-MVO4WZLK.js} +1 -1
  24. package/static/{chunk-NPEMJJIU.js → chunk-NE4NDO45.js} +1 -1
  25. package/static/{chunk-2VSPDSJS.js → chunk-SPTF6FSM.js} +1 -1
  26. package/static/{chunk-5TEXH3LJ.js → chunk-VJRTMDEJ.js} +1 -1
  27. package/static/{chunk-66FMKVJX.js → chunk-VPJ2V27B.js} +1 -1
  28. package/static/{chunk-34UZ7SYI.js → chunk-VUI3KV7V.js} +1 -1
  29. package/static/{chunk-KQZJSEM3.js → chunk-WI7FOANP.js} +1 -1
  30. package/static/{chunk-ZVY37DKS.js → chunk-YJMN3B4N.js} +1 -1
  31. package/static/{chunk-CXXPLBDZ.js → chunk-ZXS4V7J2.js} +1 -1
  32. package/static/index.html +1 -1
  33. package/static/main-FFIWFD2F.js +7 -0
  34. package/static/main-N5CZRHAO.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
1
 
2
+ ## [1.5.2](https://github.com/Sync-in/server/compare/v1.5.1...v1.5.2) (2025-09-09)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * crash on non-AVX CPUs with musl: @napi-rs/canvas >=0.1.7.8 triggers "Illegal Instruction" when AVX is not supported ([de2f983](https://github.com/Sync-in/server/commit/de2f98348395fa7e711c52c30d1e1d59579282d3))
8
+
9
+ ## [1.5.1](https://github.com/Sync-in/server/compare/v1.5.0...v1.5.1) (2025-09-07)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * **docker:** fix /app ownership for .init file ([e43f478](https://github.com/Sync-in/server/commit/e43f47873768fa24ba2e66bc1bbd90214bde5ca1))
15
+
2
16
  ## [1.5.0](https://github.com/Sync-in/server/compare/v1.4.0...v1.5.0) (2025-09-07)
3
17
 
4
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sync-in/server",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "The secure, open-source platform for file storage, sharing, collaboration, and sync",
5
5
  "author": {
6
6
  "name": "Johan Legrand",
@@ -105,7 +105,7 @@
105
105
  "js-yaml": "4.1.0",
106
106
  "ldapts": "8.0.9",
107
107
  "mime-types": "3.0.1",
108
- "mysql2": "3.14.4",
108
+ "mysql2": "3.14.5",
109
109
  "nestjs-pino": "4.4.0",
110
110
  "nodemailer": "7.0.6",
111
111
  "passport-http": "0.3.0",
@@ -1 +1 @@
1
- import{B as q,C as $e}from"./chunk-CK4BY2NX.js";import"./chunk-YCWMV2YR.js";import{a as L}from"./chunk-KQZJSEM3.js";import"./chunk-JXZCNFW7.js";import"./chunk-YGD22MWQ.js";import{a as ke}from"./chunk-ZC5NIT55.js";import{d as Fe}from"./chunk-NPEMJJIU.js";import"./chunk-HYMDGBZL.js";import{a as z,b as Q,c as Me,d as Ee}from"./chunk-45UQJGGY.js";import{b as Ae,c as Pe}from"./chunk-OEFBC4GG.js";import{b as Re}from"./chunk-EILQG525.js";import"./chunk-RASR4CK6.js";import"./chunk-ENWABUR4.js";import"./chunk-66FMKVJX.js";import{B as re,Gb as ve,Hb as Te,Ib as Ve,Ja as U,Qa as Se,Xa as we,kb as ye,pa as fe,qa as xe,ra as ge,v as ne,w as oe,wb as be}from"./chunk-FR4AOLYL.js";import{m as De}from"./chunk-22EANI6R.js";import{b as Y}from"./chunk-BIUNUYZ5.js";import{Cb as u,Eb as a,Ed as te,Fd as ie,Ga as H,Gc as X,Gd as ae,Gf as _e,Ib as E,If as me,Jb as F,Kb as k,L as I,Ld as le,Ma as r,Mb as V,Nb as P,Ob as O,Pb as C,Qb as v,Rb as N,Sb as j,Ue as ce,Uf as ue,Vf as he,Wd as se,Xa as K,Yb as G,Zc as Z,Zf as Ce,_b as J,ab as T,dc as S,fc as w,ha as M,ib as W,jb as y,kb as b,ma as d,na as _,nb as D,ob as R,of as pe,pb as m,pf as de,qb as s,rb as p,sb as h,yd as ee,zb as g}from"./chunk-HW2H3ISM.js";import{a as B}from"./chunk-RTRJ3KFH.js";var $=class{constructor(l){this.syncs=[],this.newly=0,Object.assign(this,l),Re(this),this.hTimeAgo=(0,re.default)(this.createdAt).fromNow(!0),this.newly=Se(this.createdAt)}fallBackMimeUrl(){this.mimeUrl=De}};var Oe=["MainContextMenu"],Ne=["TargetContextMenu"],Ue=()=>["shares"],Be=(t,l)=>l.id,Ie=(t,l)=>l.key;function ze(t,l){if(t&1&&(s(0,"span",31),C(1),p()),t&2){let e=a().$implicit,n=a(2);V("font-size",n.galleryMode.textSize,"px"),r(),v(e.hTimeAgo)}}function Qe(t,l){if(t&1){let e=g();s(0,"div",32),u("click",function(){d(e);let o=a().$implicit,i=a(2);return _(i.openChildShareDialog(o))}),h(1,"fa-icon",33),s(2,"span"),C(3),p()()}if(t&2){let e=a().$implicit,n=a(2);V("font-size",n.galleryMode.textSize,"px"),r(),m("icon",n.icons.SHARED),r(2),v(e.counts.shares)}}function Le(t,l){if(t&1){let e=g();s(0,"div",21),u("click",function(){let o=d(e).$implicit,i=a(2);return _(i.onSelect(o))})("contextmenu",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("pressup",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("tap",function(){d(e);let o=a(2);return _(o.openShareDialog())}),s(1,"div",22)(2,"img",23),u("error",function(){let o=d(e).$implicit;return _(o.fallBackMimeUrl())}),p(),s(3,"span",24),y(4,ze,2,3,"span",25),p(),y(5,Qe,4,4,"div",26),s(6,"span",27),h(7,"app-share-repository",28),p()(),s(8,"div",29)(9,"span",30),C(10),p()()()}if(t&2){let e=l.$implicit,n=l.$index,o=a(2);V("height",o.galleryMode.dimensions,"px")("width",o.galleryMode.dimensions,"px"),P("disabled",!e.enabled)("selected",e.id===(o.selected==null?null:o.selected.id)),r(),W("rowIndex",n),r(),m("src",e.mimeUrl,H)("height",o.galleryMode.image)("width",o.galleryMode.image),r(2),b(e.newly?4:-1),r(),b(e.counts.shares?5:-1),r(2),m("share",e)("galleryMode",o.galleryMode),r(2),V("font-size",o.galleryMode.textSize,"px"),r(),v(e.name)}}function qe(t,l){if(t&1){let e=g();s(0,"div",12)(1,"app-virtual-scroll",18),S(2,"searchFilter"),u("contextmenu",function(o){d(e);let i=a();return _(i.onContextMenu(o))}),s(3,"div",19),D(4,Le,11,19,"div",20,Be),p()()()}if(t&2){let e=a();r(),m("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",w(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),r(3),R(e.scrollView==null?null:e.scrollView.viewPortItems)}}function Ke(t,l){if(t&1&&h(0,"fa-icon",6),t&2){let e=a(4);m("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)}}function We(t,l){if(t&1){let e=g();s(0,"th",39),u("click",function(){d(e);let o=a().$implicit,i=a(2);return _(i.sortBy(o.key))}),C(1),y(2,Ke,1,1,"fa-icon",6),p()}if(t&2){let e=a().$implicit,n=a(2);O(e.value.class),V("width",e.value.width,"%"),P("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),r(),N(" ",e.value.label," "),r(),b(n.sortTable.sortParam.column===e.key?2:-1)}}function je(t,l){if(t&1&&y(0,We,3,10,"th",38),t&2){let e=l.$implicit;b(e.value.show?0:-1)}}function Ge(t,l){if(t&1){let e=g();s(0,"div",42)(1,"img",44),u("error",function(){d(e);let o=a(3).$implicit;return _(o.fallBackMimeUrl())}),p(),s(2,"div",45)(3,"span",30),C(4),p(),s(5,"span",46),C(6),p()()()}if(t&2){let e=a(3).$implicit;r(),m("src",e.mimeUrl,H),r(3),v(e.name),r(2),v(e.description)}}function Je(t,l){if(t&1&&h(0,"app-share-repository",43),t&2){let e=a(3).$implicit;m("share",e)}}function Xe(t,l){if(t&1&&(s(0,"span"),C(1),S(2,"joinCounts"),p()),t&2){let e=a(3).$implicit;r(),v(w(2,1,e.counts,J(4,Ue)))}}function Ye(t,l){if(t&1){let e=g();s(0,"span",49),u("click",function(){d(e);let o=a(4).$implicit,i=a(2);return _(i.openChildShareDialog(o))}),h(1,"fa-icon",33),s(2,"span"),C(3),p()()}if(t&2){let e=a(4).$implicit,n=a(2);r(),m("icon",n.icons.SHARED),r(2),v(e.counts.shares)}}function Ze(t,l){if(t&1){let e=g();s(0,"span",50),u("click",function(){d(e);let o=a(4).$implicit,i=a(2);return _(i.goToComments(o))}),h(1,"fa-icon",6),p()}if(t&2){let e=a(6);r(),m("icon",e.icons.faCommentDots)}}function et(t,l){if(t&1&&(y(0,Ye,4,2,"span",47),y(1,Ze,2,1,"span",48)),t&2){let e=a(3).$implicit;b(e.counts.shares?0:-1),r(),b(e.hasComments?1:-1)}}function tt(t,l){if(t&1&&C(0),t&2){let e=a(3).$implicit;N(" ",e.hTimeAgo," ")}}function it(t,l){if(t&1&&(s(0,"td"),y(1,Ge,7,3,"div",42)(2,Je,1,1,"app-share-repository",43)(3,Xe,3,5,"span")(4,et,2,2)(5,tt,1,1),p()),t&2){let e,n=a().$implicit,o=a().$implicit;O(G("",n.value.class," ",n.value.newly?"prop-newly-"+o[n.value.newly]:"")),V("width",n.value.width,"%"),P("text-align-center",n.value.textCenter),r(),b((e=n.key)==="name"?1:e==="from"?2:e==="members"?3:e==="infos"?4:e==="created"?5:-1)}}function nt(t,l){if(t&1&&y(0,it,6,9,"td",41),t&2){let e=l.$implicit;b(e.value.show?0:-1)}}function ot(t,l){if(t&1){let e=g();s(0,"tr",40),u("click",function(){let o=d(e).$implicit,i=a(2);return _(i.onSelect(o))})("contextmenu",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("pressup",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("tap",function(){d(e);let o=a(2);return _(o.openShareDialog())}),D(1,nt,1,1,null,null,Ie),S(3,"keyvalue"),p()}if(t&2){let e=l.$implicit,n=a(2);P("disabled",!e.enabled)("selected",e.id===(n.selected==null?null:n.selected.id)),r(),R(w(3,4,n.tableHeaders,n.originalOrderKeyValue))}}function rt(t,l){if(t&1){let e=g();s(0,"table",34)(1,"thead")(2,"tr"),D(3,je,1,1,null,null,Ie),S(5,"keyvalue"),p()()(),s(6,"app-virtual-scroll",35),S(7,"searchFilter"),u("contextmenu",function(o){d(e);let i=a();return _(i.onContextMenu(o))}),s(8,"table",34)(9,"tbody",36),D(10,ot,4,7,"tr",37,Be),p()()()}if(t&2){let e=a();r(3),R(w(5,2,e.tableHeaders,e.originalOrderKeyValue)),r(3),m("bufferAmount",5)("items",w(7,5,e.shares,e.inputFilter.search())),r(4),R(e.scrollView==null?null:e.scrollView.viewPortItems)}}function at(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"New share"),p()),t&2){let e=a();r(),m("icon",e.icons.faPlus)}}function lt(t,l){}function st(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Refresh"),p()),t&2){let e=a();r(),m("icon",e.icons.faArrowRotateRight)}}function ct(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Go to"),p()),t&2){let e=a();r(),m("icon",e.icons.faMapMarkerAlt)}}function pt(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Edit"),p()),t&2){let e=a();r(),m("icon",e.icons.faPen)}}function dt(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Edit children shares"),p()),t&2){let e=a(2);r(),m("icon",e.icons.SHARED)}}function _t(t,l){if(t&1){let e=g();T(0,dt,3,1,"ng-template",15),u("execute",function(){d(e);let o=a();return _(o.openChildShareDialog())})}}function mt(t,l){}function ut(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Informations"),p()),t&2){let e=a();r(),m("icon",e.icons.faCircleInfo)}}var Xt=(()=>{let l=class l{constructor(){this.locale=M(ee),this.layout=M(be),this.icons={SHARED:Te.SHARED_WITH_OTHERS,faArrowRotateRight:me,faArrowDown:ue,faArrowUp:ce,faRotate:ae,faPlus:_e,faMinus:le,faPen:pe,faEllipsisH:se,faMapMarkerAlt:he,faCircleInfo:Ce,faCommentDots:de},this.originalOrderKeyValue=we,this.TAB_MENU=U,this.loading=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:40,textCenter:!1,class:"",show:!0,sortable:!0},from:{label:"Shared from",width:20,textCenter:!1,class:"d-none d-md-table-cell",show:!0},members:{label:"Members",width:16,class:"d-none d-md-table-cell",textCenter:!1,show:!0},infos:{label:"Infos",width:14,textCenter:!0,class:"d-none d-md-table-cell",show:!0},created:{label:"Created",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.btnSortFields={name:"Name",created:"Created"},this.activatedRoute=M(Y),this.store=M(ye),this.sharesService=M(Pe),this.sortSettings={default:[{prop:"name",type:"string"}],name:[{prop:"name",type:"string"}],created:[{prop:"createdAt",type:"date"}]},this.sortTable=new Ee(this.constructor.name,this.sortSettings),this.loadShares(),this.activatedRoute.queryParams.subscribe(n=>this.focusOnSelect=n.select),this.layout.setBreadcrumbIcon(this.icons.SHARED),this.layout.setBreadcrumbNav({url:`/${Ve.SHARED}/${ve.SHARED_WITH_OTHER}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShares(){this.loading=!0,this.onSelect(),this.sharesService.listShares().subscribe({next:n=>{this.sortBy(this.sortTable.sortParam.column,!1,n.map(o=>new $(o))),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:n=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Shares",n.error.message)}})}sortBy(n,o=!0,i){this.shares=this.sortTable.sortBy(n,o,i||this.shares)}onSelect(n=null){this.selected=n,this.store.shareSelection.set(this.selected)}openShareDialog(n=!1){n?this.layout.openDialog(q,"lg").content.shareChange.pipe(I(1)).subscribe(i=>{let[c,f]=i;c==="add"&&(this.focusOnSelect=f.name,this.loadShares())}):this.sharesService.getShare(this.selected.id).subscribe({next:o=>{this.layout.openDialog(q,"lg",{initialState:{share:o}}).content.shareChange.pipe(I(1)).subscribe(c=>{let[f,x]=c;if(f==="update"){this.selected.name=x.name,this.selected.alias=x.alias,this.selected.description=x.description,this.selected.modifiedAt=x.modifiedAt,this.selected.enabled=x.enabled;let A={users:0,groups:0,links:x.links.length};for(let He of x.members)He.isUser?A.users++:A.groups++;this.selected.counts=B(B({},this.selected.counts),A)}else f==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(A=>A.id!==x.id)))})},error:o=>this.layout.sendNotification("error","Edit share",this.selected.name,o)})}openChildShareDialog(n){n&&this.onSelect(n),this.layout.openDialog($e,null,{initialState:{share:this.selected}}).content.sharesCountEvent.subscribe(i=>this.selected.counts.shares=i)}onContextMenu(n){n.preventDefault(),n.stopPropagation(),this.layout.openContextMenu(n,this.mainContextMenu)}onTargetContextMenu(n,o){n.preventDefault(),n.type==="contextmenu"&&n.stopPropagation(),this.onSelect(o),this.layout.openContextMenu(n,this.targetContextMenu)}goTo(n){n=n||this.selected,this.sharesService.goTo(n).catch(console.error)}goToComments(n){this.sharesService.goTo(n).then(()=>this.layout.showRSideBarTab(U.COMMENTS,!0))}focusOn(n){let o=this.shares.find(i=>i.name===n);o&&(setTimeout(()=>this.scrollView.scrollInto(o),100),this.onSelect(o))}};l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=K({type:l,selectors:[["app-shared"]],viewQuery:function(o,i){if(o&1&&(E(Q,5),E(z,7),E(L,7),E(Oe,7),E(Ne,7)),o&2){let c;F(c=k())&&(i.scrollView=c.first),F(c=k())&&(i.inputFilter=c.first),F(c=k())&&(i.btnNavigationView=c.first),F(c=k())&&(i.mainContextMenu=c.first),F(c=k())&&(i.targetContextMenu=c.first)}},decls:38,vars:40,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","tooltip"],[3,"icon"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",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"],["contextMenuItem",""],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"disabled","selected","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],["l10nTranslate","",1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-right","badge","rounded-pill","bg-purple","cursor-pointer","me-1",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"],["l10nTranslate","",1,"badge","rounded-pill","bg-warning"],[1,"label-bottom-right","badge","rounded-pill","bg-purple","cursor-pointer","me-1",3,"click"],[1,"me-1",3,"icon"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"disabled","selected"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],[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"],[1,"badge","rounded-pill","bg-purple","cursor-pointer","me-1"],[1,"badge","rounded-pill","bg-success","cursor-pointer"],[1,"badge","rounded-pill","bg-purple","cursor-pointer","me-1",3,"click"],[1,"badge","rounded-pill","bg-success","cursor-pointer",3,"click"],["l10nTranslate",""]],template:function(o,i){if(o&1){let c=g();s(0,"div",2)(1,"button",3),S(2,"translate"),u("click",function(){return d(c),_(i.loadShares())}),h(3,"fa-icon",4),p(),s(4,"button",5),S(5,"translate"),u("click",function(){return d(c),_(i.openShareDialog(!0))}),h(6,"fa-icon",6),p(),s(7,"button",7),S(8,"translate"),u("click",function(){return d(c),_(i.openShareDialog())}),h(9,"fa-icon",6),p(),s(10,"button",7),S(11,"translate"),u("click",function(){return d(c),_(i.openChildShareDialog())}),h(12,"fa-icon",6),p(),s(13,"button",7),S(14,"translate"),u("click",function(){return d(c),_(i.goTo())}),h(15,"fa-icon",6),p(),s(16,"div",8)(17,"div",9),h(18,"app-input-filter",10),p(),s(19,"app-navigation-view",11),u("sortBy",function(x){return d(c),_(i.sortBy(x))})("switchView",function(x){return d(c),_(i.galleryMode=x)}),p()()(),y(20,qe,6,8,"div",12)(21,rt,12,8),s(22,"div",13)(23,"span",14),C(24),S(25,"translate"),p()(),s(26,"context-menu",null,0),T(28,at,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.openShareDialog(!0))}),T(29,lt,0,0,"ng-template",16)(30,st,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.loadShares())}),p(),s(31,"context-menu",null,1),T(33,ct,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.goTo())}),T(34,pt,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.openShareDialog())}),y(35,_t,1,0,null,17),T(36,mt,0,0,"ng-template",16)(37,ut,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.layout.showRSideBarTab(i.TAB_MENU.SELECTION))}),p()}o&2&&(r(),m("tooltip",w(2,22,"Refresh",i.locale.language)),r(2),m("icon",i.icons.faArrowRotateRight)("animation",i.loading?"spin":null),r(),m("tooltip",w(5,25,"New share",i.locale.language)),r(2),m("icon",i.icons.faPlus),r(),m("disabled",!i.selected)("tooltip",w(8,28,"Edit share",i.locale.language)),r(2),m("icon",i.icons.faPen),r(),m("disabled",!(i.selected!=null&&i.selected.counts.shares))("tooltip",w(11,31,"Edit children shares",i.locale.language)),r(2),m("icon",i.icons.SHARED),r(),m("disabled",!i.selected)("tooltip",w(14,34,"Go to",i.locale.language)),r(2),m("icon",i.icons.faMapMarkerAlt),r(4),m("sortParams",i.sortTable.sortParam)("sortFields",i.btnSortFields),r(),b(i.galleryMode!=null&&i.galleryMode.enabled?20:21),r(4),j("",i.shares.length," ",w(25,37,"shares",i.locale.language)),r(5),m("divider",!0),r(6),b(i.selected!=null&&i.selected.counts.shares?35:-1),r(),m("divider",!0))},dependencies:[Z,ie,L,z,oe,ne,Q,Fe,ge,xe,fe,Ae,X,te,Me,ke],encapsulation:2});let t=l;return t})();export{Xt as SharedComponent};
1
+ import{B as q,C as $e}from"./chunk-7VRUZRJG.js";import"./chunk-MGGT6MIJ.js";import{a as L}from"./chunk-WI7FOANP.js";import"./chunk-JXZCNFW7.js";import"./chunk-MCLQFZ3S.js";import{a as ke}from"./chunk-ZC5NIT55.js";import{d as Fe}from"./chunk-NE4NDO45.js";import"./chunk-FNFGUIQH.js";import{a as z,b as Q,c as Me,d as Ee}from"./chunk-54EAZ2UD.js";import{b as Ae,c as Pe}from"./chunk-F2J2IIJE.js";import{b as Re}from"./chunk-MVO4WZLK.js";import"./chunk-7ZRXJONB.js";import"./chunk-JF7S3UYQ.js";import"./chunk-VPJ2V27B.js";import{B as re,Gb as ve,Hb as Te,Ib as Ve,Ja as U,Qa as Se,Xa as we,kb as ye,pa as fe,qa as xe,ra as ge,v as ne,w as oe,wb as be}from"./chunk-4U5A2DEP.js";import{m as De}from"./chunk-22EANI6R.js";import{b as Y}from"./chunk-BIUNUYZ5.js";import{Cb as u,Eb as a,Ed as te,Fd as ie,Ga as H,Gc as X,Gd as ae,Gf as _e,Ib as E,If as me,Jb as F,Kb as k,L as I,Ld as le,Ma as r,Mb as V,Nb as P,Ob as O,Pb as C,Qb as v,Rb as N,Sb as j,Ue as ce,Uf as ue,Vf as he,Wd as se,Xa as K,Yb as G,Zc as Z,Zf as Ce,_b as J,ab as T,dc as S,fc as w,ha as M,ib as W,jb as y,kb as b,ma as d,na as _,nb as D,ob as R,of as pe,pb as m,pf as de,qb as s,rb as p,sb as h,yd as ee,zb as g}from"./chunk-HW2H3ISM.js";import{a as B}from"./chunk-RTRJ3KFH.js";var $=class{constructor(l){this.syncs=[],this.newly=0,Object.assign(this,l),Re(this),this.hTimeAgo=(0,re.default)(this.createdAt).fromNow(!0),this.newly=Se(this.createdAt)}fallBackMimeUrl(){this.mimeUrl=De}};var Oe=["MainContextMenu"],Ne=["TargetContextMenu"],Ue=()=>["shares"],Be=(t,l)=>l.id,Ie=(t,l)=>l.key;function ze(t,l){if(t&1&&(s(0,"span",31),C(1),p()),t&2){let e=a().$implicit,n=a(2);V("font-size",n.galleryMode.textSize,"px"),r(),v(e.hTimeAgo)}}function Qe(t,l){if(t&1){let e=g();s(0,"div",32),u("click",function(){d(e);let o=a().$implicit,i=a(2);return _(i.openChildShareDialog(o))}),h(1,"fa-icon",33),s(2,"span"),C(3),p()()}if(t&2){let e=a().$implicit,n=a(2);V("font-size",n.galleryMode.textSize,"px"),r(),m("icon",n.icons.SHARED),r(2),v(e.counts.shares)}}function Le(t,l){if(t&1){let e=g();s(0,"div",21),u("click",function(){let o=d(e).$implicit,i=a(2);return _(i.onSelect(o))})("contextmenu",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("pressup",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("tap",function(){d(e);let o=a(2);return _(o.openShareDialog())}),s(1,"div",22)(2,"img",23),u("error",function(){let o=d(e).$implicit;return _(o.fallBackMimeUrl())}),p(),s(3,"span",24),y(4,ze,2,3,"span",25),p(),y(5,Qe,4,4,"div",26),s(6,"span",27),h(7,"app-share-repository",28),p()(),s(8,"div",29)(9,"span",30),C(10),p()()()}if(t&2){let e=l.$implicit,n=l.$index,o=a(2);V("height",o.galleryMode.dimensions,"px")("width",o.galleryMode.dimensions,"px"),P("disabled",!e.enabled)("selected",e.id===(o.selected==null?null:o.selected.id)),r(),W("rowIndex",n),r(),m("src",e.mimeUrl,H)("height",o.galleryMode.image)("width",o.galleryMode.image),r(2),b(e.newly?4:-1),r(),b(e.counts.shares?5:-1),r(2),m("share",e)("galleryMode",o.galleryMode),r(2),V("font-size",o.galleryMode.textSize,"px"),r(),v(e.name)}}function qe(t,l){if(t&1){let e=g();s(0,"div",12)(1,"app-virtual-scroll",18),S(2,"searchFilter"),u("contextmenu",function(o){d(e);let i=a();return _(i.onContextMenu(o))}),s(3,"div",19),D(4,Le,11,19,"div",20,Be),p()()()}if(t&2){let e=a();r(),m("childHeight",e.galleryMode.dimensions)("childWidth",e.galleryMode.dimensions)("items",w(2,5,e.shares,e.inputFilter.search()))("galleryMode",!0)("resizeOffset",110),r(3),R(e.scrollView==null?null:e.scrollView.viewPortItems)}}function Ke(t,l){if(t&1&&h(0,"fa-icon",6),t&2){let e=a(4);m("icon",e.sortTable.sortParam.asc?e.icons.faArrowDown:e.icons.faArrowUp)}}function We(t,l){if(t&1){let e=g();s(0,"th",39),u("click",function(){d(e);let o=a().$implicit,i=a(2);return _(i.sortBy(o.key))}),C(1),y(2,Ke,1,1,"fa-icon",6),p()}if(t&2){let e=a().$implicit,n=a(2);O(e.value.class),V("width",e.value.width,"%"),P("text-align-center",e.value.textCenter)("cursor-pointer",e.value.sortable),r(),N(" ",e.value.label," "),r(),b(n.sortTable.sortParam.column===e.key?2:-1)}}function je(t,l){if(t&1&&y(0,We,3,10,"th",38),t&2){let e=l.$implicit;b(e.value.show?0:-1)}}function Ge(t,l){if(t&1){let e=g();s(0,"div",42)(1,"img",44),u("error",function(){d(e);let o=a(3).$implicit;return _(o.fallBackMimeUrl())}),p(),s(2,"div",45)(3,"span",30),C(4),p(),s(5,"span",46),C(6),p()()()}if(t&2){let e=a(3).$implicit;r(),m("src",e.mimeUrl,H),r(3),v(e.name),r(2),v(e.description)}}function Je(t,l){if(t&1&&h(0,"app-share-repository",43),t&2){let e=a(3).$implicit;m("share",e)}}function Xe(t,l){if(t&1&&(s(0,"span"),C(1),S(2,"joinCounts"),p()),t&2){let e=a(3).$implicit;r(),v(w(2,1,e.counts,J(4,Ue)))}}function Ye(t,l){if(t&1){let e=g();s(0,"span",49),u("click",function(){d(e);let o=a(4).$implicit,i=a(2);return _(i.openChildShareDialog(o))}),h(1,"fa-icon",33),s(2,"span"),C(3),p()()}if(t&2){let e=a(4).$implicit,n=a(2);r(),m("icon",n.icons.SHARED),r(2),v(e.counts.shares)}}function Ze(t,l){if(t&1){let e=g();s(0,"span",50),u("click",function(){d(e);let o=a(4).$implicit,i=a(2);return _(i.goToComments(o))}),h(1,"fa-icon",6),p()}if(t&2){let e=a(6);r(),m("icon",e.icons.faCommentDots)}}function et(t,l){if(t&1&&(y(0,Ye,4,2,"span",47),y(1,Ze,2,1,"span",48)),t&2){let e=a(3).$implicit;b(e.counts.shares?0:-1),r(),b(e.hasComments?1:-1)}}function tt(t,l){if(t&1&&C(0),t&2){let e=a(3).$implicit;N(" ",e.hTimeAgo," ")}}function it(t,l){if(t&1&&(s(0,"td"),y(1,Ge,7,3,"div",42)(2,Je,1,1,"app-share-repository",43)(3,Xe,3,5,"span")(4,et,2,2)(5,tt,1,1),p()),t&2){let e,n=a().$implicit,o=a().$implicit;O(G("",n.value.class," ",n.value.newly?"prop-newly-"+o[n.value.newly]:"")),V("width",n.value.width,"%"),P("text-align-center",n.value.textCenter),r(),b((e=n.key)==="name"?1:e==="from"?2:e==="members"?3:e==="infos"?4:e==="created"?5:-1)}}function nt(t,l){if(t&1&&y(0,it,6,9,"td",41),t&2){let e=l.$implicit;b(e.value.show?0:-1)}}function ot(t,l){if(t&1){let e=g();s(0,"tr",40),u("click",function(){let o=d(e).$implicit,i=a(2);return _(i.onSelect(o))})("contextmenu",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("pressup",function(o){let i=d(e).$implicit,c=a(2);return _(c.onTargetContextMenu(o,i))})("tap",function(){d(e);let o=a(2);return _(o.openShareDialog())}),D(1,nt,1,1,null,null,Ie),S(3,"keyvalue"),p()}if(t&2){let e=l.$implicit,n=a(2);P("disabled",!e.enabled)("selected",e.id===(n.selected==null?null:n.selected.id)),r(),R(w(3,4,n.tableHeaders,n.originalOrderKeyValue))}}function rt(t,l){if(t&1){let e=g();s(0,"table",34)(1,"thead")(2,"tr"),D(3,je,1,1,null,null,Ie),S(5,"keyvalue"),p()()(),s(6,"app-virtual-scroll",35),S(7,"searchFilter"),u("contextmenu",function(o){d(e);let i=a();return _(i.onContextMenu(o))}),s(8,"table",34)(9,"tbody",36),D(10,ot,4,7,"tr",37,Be),p()()()}if(t&2){let e=a();r(3),R(w(5,2,e.tableHeaders,e.originalOrderKeyValue)),r(3),m("bufferAmount",5)("items",w(7,5,e.shares,e.inputFilter.search())),r(4),R(e.scrollView==null?null:e.scrollView.viewPortItems)}}function at(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"New share"),p()),t&2){let e=a();r(),m("icon",e.icons.faPlus)}}function lt(t,l){}function st(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Refresh"),p()),t&2){let e=a();r(),m("icon",e.icons.faArrowRotateRight)}}function ct(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Go to"),p()),t&2){let e=a();r(),m("icon",e.icons.faMapMarkerAlt)}}function pt(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Edit"),p()),t&2){let e=a();r(),m("icon",e.icons.faPen)}}function dt(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Edit children shares"),p()),t&2){let e=a(2);r(),m("icon",e.icons.SHARED)}}function _t(t,l){if(t&1){let e=g();T(0,dt,3,1,"ng-template",15),u("execute",function(){d(e);let o=a();return _(o.openChildShareDialog())})}}function mt(t,l){}function ut(t,l){if(t&1&&(s(0,"span",51),h(1,"fa-icon",6),C(2,"Informations"),p()),t&2){let e=a();r(),m("icon",e.icons.faCircleInfo)}}var Xt=(()=>{let l=class l{constructor(){this.locale=M(ee),this.layout=M(be),this.icons={SHARED:Te.SHARED_WITH_OTHERS,faArrowRotateRight:me,faArrowDown:ue,faArrowUp:ce,faRotate:ae,faPlus:_e,faMinus:le,faPen:pe,faEllipsisH:se,faMapMarkerAlt:he,faCircleInfo:Ce,faCommentDots:de},this.originalOrderKeyValue=we,this.TAB_MENU=U,this.loading=!1,this.shares=[],this.selected=null,this.tableHeaders={name:{label:"Name",width:40,textCenter:!1,class:"",show:!0,sortable:!0},from:{label:"Shared from",width:20,textCenter:!1,class:"d-none d-md-table-cell",show:!0},members:{label:"Members",width:16,class:"d-none d-md-table-cell",textCenter:!1,show:!0},infos:{label:"Infos",width:14,textCenter:!0,class:"d-none d-md-table-cell",show:!0},created:{label:"Created",width:10,textCenter:!0,class:"d-none d-lg-table-cell",newly:"newly",show:!0,sortable:!0}},this.btnSortFields={name:"Name",created:"Created"},this.activatedRoute=M(Y),this.store=M(ye),this.sharesService=M(Pe),this.sortSettings={default:[{prop:"name",type:"string"}],name:[{prop:"name",type:"string"}],created:[{prop:"createdAt",type:"date"}]},this.sortTable=new Ee(this.constructor.name,this.sortSettings),this.loadShares(),this.activatedRoute.queryParams.subscribe(n=>this.focusOnSelect=n.select),this.layout.setBreadcrumbIcon(this.icons.SHARED),this.layout.setBreadcrumbNav({url:`/${Ve.SHARED}/${ve.SHARED_WITH_OTHER}`,translating:!0,sameLink:!0})}ngOnInit(){this.galleryMode=this.btnNavigationView.currentView()}loadShares(){this.loading=!0,this.onSelect(),this.sharesService.listShares().subscribe({next:n=>{this.sortBy(this.sortTable.sortParam.column,!1,n.map(o=>new $(o))),this.loading=!1,this.focusOnSelect?this.focusOn(this.focusOnSelect):this.scrollView.scrollInto(-1)},error:n=>{this.shares=[],this.loading=!1,this.layout.sendNotification("error","Shares",n.error.message)}})}sortBy(n,o=!0,i){this.shares=this.sortTable.sortBy(n,o,i||this.shares)}onSelect(n=null){this.selected=n,this.store.shareSelection.set(this.selected)}openShareDialog(n=!1){n?this.layout.openDialog(q,"lg").content.shareChange.pipe(I(1)).subscribe(i=>{let[c,f]=i;c==="add"&&(this.focusOnSelect=f.name,this.loadShares())}):this.sharesService.getShare(this.selected.id).subscribe({next:o=>{this.layout.openDialog(q,"lg",{initialState:{share:o}}).content.shareChange.pipe(I(1)).subscribe(c=>{let[f,x]=c;if(f==="update"){this.selected.name=x.name,this.selected.alias=x.alias,this.selected.description=x.description,this.selected.modifiedAt=x.modifiedAt,this.selected.enabled=x.enabled;let A={users:0,groups:0,links:x.links.length};for(let He of x.members)He.isUser?A.users++:A.groups++;this.selected.counts=B(B({},this.selected.counts),A)}else f==="delete"&&(this.onSelect(),this.sortBy(this.sortTable.sortParam.column,!1,this.shares.filter(A=>A.id!==x.id)))})},error:o=>this.layout.sendNotification("error","Edit share",this.selected.name,o)})}openChildShareDialog(n){n&&this.onSelect(n),this.layout.openDialog($e,null,{initialState:{share:this.selected}}).content.sharesCountEvent.subscribe(i=>this.selected.counts.shares=i)}onContextMenu(n){n.preventDefault(),n.stopPropagation(),this.layout.openContextMenu(n,this.mainContextMenu)}onTargetContextMenu(n,o){n.preventDefault(),n.type==="contextmenu"&&n.stopPropagation(),this.onSelect(o),this.layout.openContextMenu(n,this.targetContextMenu)}goTo(n){n=n||this.selected,this.sharesService.goTo(n).catch(console.error)}goToComments(n){this.sharesService.goTo(n).then(()=>this.layout.showRSideBarTab(U.COMMENTS,!0))}focusOn(n){let o=this.shares.find(i=>i.name===n);o&&(setTimeout(()=>this.scrollView.scrollInto(o),100),this.onSelect(o))}};l.\u0275fac=function(o){return new(o||l)},l.\u0275cmp=K({type:l,selectors:[["app-shared"]],viewQuery:function(o,i){if(o&1&&(E(Q,5),E(z,7),E(L,7),E(Oe,7),E(Ne,7)),o&2){let c;F(c=k())&&(i.scrollView=c.first),F(c=k())&&(i.inputFilter=c.first),F(c=k())&&(i.btnNavigationView=c.first),F(c=k())&&(i.mainContextMenu=c.first),F(c=k())&&(i.targetContextMenu=c.first)}},decls:38,vars:40,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","tooltip"],[3,"icon"],["container","body","type","button",1,"btn","btn-sm","btn-secondary","me-1",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"],["contextMenuItem",""],[3,"contextmenu","childHeight","childWidth","items","galleryMode","resizeOffset"],["tabindex","-1",1,"row","g-0"],[1,"card",3,"disabled","selected","height","width"],[1,"card",3,"click","contextmenu","pressup","tap"],[1,"card-body"],["alt","","draggable","true",3,"error","src","height","width"],[1,"label-top-right"],["l10nTranslate","",1,"badge","rounded-pill","bg-warning",3,"font-size"],[1,"label-bottom-right","badge","rounded-pill","bg-purple","cursor-pointer","me-1",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"],["l10nTranslate","",1,"badge","rounded-pill","bg-warning"],[1,"label-bottom-right","badge","rounded-pill","bg-purple","cursor-pointer","me-1",3,"click"],[1,"me-1",3,"icon"],[1,"app-table"],[3,"contextmenu","bufferAmount","items"],["tabindex","-1"],[3,"disabled","selected"],["l10nTranslate","",3,"width","text-align-center","cursor-pointer","class"],["l10nTranslate","",3,"click"],[3,"click","contextmenu","pressup","tap"],[3,"width","text-align-center","class"],[1,"d-flex","align-items-center"],[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"],[1,"badge","rounded-pill","bg-purple","cursor-pointer","me-1"],[1,"badge","rounded-pill","bg-success","cursor-pointer"],[1,"badge","rounded-pill","bg-purple","cursor-pointer","me-1",3,"click"],[1,"badge","rounded-pill","bg-success","cursor-pointer",3,"click"],["l10nTranslate",""]],template:function(o,i){if(o&1){let c=g();s(0,"div",2)(1,"button",3),S(2,"translate"),u("click",function(){return d(c),_(i.loadShares())}),h(3,"fa-icon",4),p(),s(4,"button",5),S(5,"translate"),u("click",function(){return d(c),_(i.openShareDialog(!0))}),h(6,"fa-icon",6),p(),s(7,"button",7),S(8,"translate"),u("click",function(){return d(c),_(i.openShareDialog())}),h(9,"fa-icon",6),p(),s(10,"button",7),S(11,"translate"),u("click",function(){return d(c),_(i.openChildShareDialog())}),h(12,"fa-icon",6),p(),s(13,"button",7),S(14,"translate"),u("click",function(){return d(c),_(i.goTo())}),h(15,"fa-icon",6),p(),s(16,"div",8)(17,"div",9),h(18,"app-input-filter",10),p(),s(19,"app-navigation-view",11),u("sortBy",function(x){return d(c),_(i.sortBy(x))})("switchView",function(x){return d(c),_(i.galleryMode=x)}),p()()(),y(20,qe,6,8,"div",12)(21,rt,12,8),s(22,"div",13)(23,"span",14),C(24),S(25,"translate"),p()(),s(26,"context-menu",null,0),T(28,at,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.openShareDialog(!0))}),T(29,lt,0,0,"ng-template",16)(30,st,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.loadShares())}),p(),s(31,"context-menu",null,1),T(33,ct,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.goTo())}),T(34,pt,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.openShareDialog())}),y(35,_t,1,0,null,17),T(36,mt,0,0,"ng-template",16)(37,ut,3,1,"ng-template",15),u("execute",function(){return d(c),_(i.layout.showRSideBarTab(i.TAB_MENU.SELECTION))}),p()}o&2&&(r(),m("tooltip",w(2,22,"Refresh",i.locale.language)),r(2),m("icon",i.icons.faArrowRotateRight)("animation",i.loading?"spin":null),r(),m("tooltip",w(5,25,"New share",i.locale.language)),r(2),m("icon",i.icons.faPlus),r(),m("disabled",!i.selected)("tooltip",w(8,28,"Edit share",i.locale.language)),r(2),m("icon",i.icons.faPen),r(),m("disabled",!(i.selected!=null&&i.selected.counts.shares))("tooltip",w(11,31,"Edit children shares",i.locale.language)),r(2),m("icon",i.icons.SHARED),r(),m("disabled",!i.selected)("tooltip",w(14,34,"Go to",i.locale.language)),r(2),m("icon",i.icons.faMapMarkerAlt),r(4),m("sortParams",i.sortTable.sortParam)("sortFields",i.btnSortFields),r(),b(i.galleryMode!=null&&i.galleryMode.enabled?20:21),r(4),j("",i.shares.length," ",w(25,37,"shares",i.locale.language)),r(5),m("divider",!0),r(6),b(i.selected!=null&&i.selected.counts.shares?35:-1),r(),m("divider",!0))},dependencies:[Z,ie,L,z,oe,ne,Q,Fe,ge,xe,fe,Ae,X,te,Me,ke],encapsulation:2});let t=l;return t})();export{Xt as SharedComponent};