@sync-in/server 1.10.0 → 1.10.1

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 (75) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +2 -2
  3. package/package.json +2 -3
  4. package/server/app.bootstrap.js +3 -22
  5. package/server/app.bootstrap.js.map +1 -1
  6. package/server/applications/comments/services/comments-queries.service.js +5 -9
  7. package/server/applications/comments/services/comments-queries.service.js.map +1 -1
  8. package/server/applications/users/users.e2e-spec.js +0 -1
  9. package/server/applications/users/users.e2e-spec.js.map +1 -1
  10. package/server/applications/webdav/constants/webdav.js +7 -0
  11. package/server/applications/webdav/constants/webdav.js.map +1 -1
  12. package/server/applications/webdav/utils/bootstrap.js +45 -0
  13. package/server/applications/webdav/utils/bootstrap.js.map +1 -0
  14. package/server/applications/webdav/webdav.controller.js +1 -1
  15. package/server/applications/webdav/webdav.controller.js.map +1 -1
  16. package/server/applications/webdav/webdav.e2e-spec.js +131 -2
  17. package/server/applications/webdav/webdav.e2e-spec.js.map +1 -1
  18. package/server/authentication/auth.e2e-spec.js +12 -6
  19. package/server/authentication/auth.e2e-spec.js.map +1 -1
  20. package/server/authentication/guards/auth-basic.guard.spec.js +23 -0
  21. package/server/authentication/guards/auth-basic.guard.spec.js.map +1 -1
  22. package/server/authentication/guards/auth-basic.strategy.js +3 -3
  23. package/server/authentication/guards/auth-basic.strategy.js.map +1 -1
  24. package/server/authentication/guards/auth-digest.strategy.js +32 -11
  25. package/server/authentication/guards/auth-digest.strategy.js.map +1 -1
  26. package/server/authentication/guards/implementations/http-basic.strategy.js +76 -0
  27. package/server/authentication/guards/implementations/http-basic.strategy.js.map +1 -0
  28. package/server/authentication/guards/implementations/http-digest.strategy.js +155 -0
  29. package/server/authentication/guards/implementations/http-digest.strategy.js.map +1 -0
  30. package/server/authentication/services/auth-manager.service.js +1 -2
  31. package/server/authentication/services/auth-manager.service.js.map +1 -1
  32. package/static/{chunk-XBKCQCBI.js → chunk-2GXOVGTD.js} +1 -1
  33. package/static/{chunk-QHJT5H4M.js → chunk-3MVPXC3U.js} +1 -1
  34. package/static/{chunk-I5SPA4G2.js → chunk-3VRUIWQG.js} +1 -1
  35. package/static/{chunk-L3BIP4AA.js → chunk-3ZBAQTHJ.js} +1 -1
  36. package/static/{chunk-D55YR5X7.js → chunk-76M3BMK6.js} +11 -11
  37. package/static/{chunk-GXWGB7WO.js → chunk-76REYAEA.js} +1 -1
  38. package/static/{chunk-CCZWPM7Q.js → chunk-7HJFIMNF.js} +1 -1
  39. package/static/{chunk-NIR4YE2E.js → chunk-7KAYOR3A.js} +1 -1
  40. package/static/{chunk-O3YLAEVE.js → chunk-AALPWGPB.js} +2 -2
  41. package/static/{chunk-KWFELZTM.js → chunk-CN5YVRFT.js} +1 -1
  42. package/static/{chunk-B6HQYQYG.js → chunk-CVXLHSO5.js} +1 -1
  43. package/static/{chunk-R7PLNX75.js → chunk-D2MLAO5N.js} +1 -1
  44. package/static/{chunk-HGODIZTV.js → chunk-EKWB5W72.js} +1 -1
  45. package/static/{chunk-PQZLR4P3.js → chunk-FTFEQDWH.js} +1 -1
  46. package/static/{chunk-3WZ6F3LC.js → chunk-FWQJ4ZCD.js} +1 -1
  47. package/static/{chunk-FIUF2JM4.js → chunk-IHS5LSJJ.js} +1 -1
  48. package/static/{chunk-G3PL6YX3.js → chunk-J7474P3L.js} +1 -1
  49. package/static/{chunk-LGIVVJDD.js → chunk-JAJ7VXMB.js} +1 -1
  50. package/static/{chunk-T42BV6TR.js → chunk-KEZNIIFH.js} +1 -1
  51. package/static/{chunk-OUHCDDT6.js → chunk-LWSCODLD.js} +1 -1
  52. package/static/{chunk-6WMXMIE4.js → chunk-NIKNG2FX.js} +1 -1
  53. package/static/{chunk-KPOQLDWF.js → chunk-QGHNJVJ6.js} +1 -1
  54. package/static/{chunk-GWRAGN3M.js → chunk-QJ22N76V.js} +1 -1
  55. package/static/{chunk-NJJURHX4.js → chunk-QTPIEEZW.js} +1 -1
  56. package/static/{chunk-ZHOE5VEY.js → chunk-R4VYKZVJ.js} +1 -1
  57. package/static/{chunk-7VRYTDX4.js → chunk-RBTLSPYJ.js} +1 -1
  58. package/static/{chunk-GQHXYX6Z.js → chunk-S44QIK3G.js} +1 -1
  59. package/static/{chunk-45AZ6ZML.js → chunk-S6H2ELRY.js} +1 -1
  60. package/static/{chunk-E32J777S.js → chunk-SPQH3ATC.js} +1 -1
  61. package/static/{chunk-DGCVA6BM.js → chunk-TTWMFWEC.js} +1 -1
  62. package/static/{chunk-ULSPQ3HP.js → chunk-U5E5H2DD.js} +1 -1
  63. package/static/{chunk-LNLBIJZD.js → chunk-VBTZDHZ3.js} +1 -1
  64. package/static/{chunk-I3FR3A45.js → chunk-VZFZUI6D.js} +1 -1
  65. package/static/{chunk-S3TTWPQA.js → chunk-WFMEUST4.js} +1 -1
  66. package/static/{chunk-27Z3SYRL.js → chunk-WRK2FTKU.js} +1 -1
  67. package/static/{chunk-4TPFERL6.js → chunk-WZPF4LS2.js} +1 -1
  68. package/static/{chunk-POUWUMC4.js → chunk-X7NHX5C7.js} +1 -1
  69. package/static/{chunk-XTVNHFKX.js → chunk-XSURUW7C.js} +1 -1
  70. package/static/{chunk-5O66CLTD.js → chunk-XX3JPJUM.js} +1 -1
  71. package/static/{chunk-3RPUQ22U.js → chunk-XZHWESIY.js} +1 -1
  72. package/static/{chunk-3JYMJQYT.js → chunk-ZHUBWKA2.js} +1 -1
  73. package/static/{chunk-XEWLBWFF.js → chunk-ZU5MQTFN.js} +1 -1
  74. package/static/index.html +1 -1
  75. package/static/{main-YKDNJ7LK.js → main-5O3KLGIR.js} +3 -3
@@ -1 +1 @@
1
- import{b as nt}from"./chunk-XBKCQCBI.js";import{a as it}from"./chunk-NMF2ZFBE.js";import{a as Z,f as tt,h as et}from"./chunk-XTVNHFKX.js";import{a as K,b as Q}from"./chunk-ZHOE5VEY.js";import{Cb as q,vb as z}from"./chunk-O3YLAEVE.js";import{Bb as f,Cd as B,Eb as m,Ed as G,Gb as p,Jd as U,Kd as $,Ld as j,Oa as e,Qa as v,Sb as I,Tb as l,Ub as A,Vb as w,Xb as E,Yb as C,Zb as b,ab as L,cc as x,fd as k,ja as S,jd as H,kc as F,lb as g,mb as P,mc as R,nb as Y,oa as u,od as M,pa as y,pb as D,qb as N,qg as J,rb as r,sb as i,tb as n,ub as T,ud as O,vd as V,wd as W,xf as X}from"./chunk-D55YR5X7.js";function ot(a,h){if(a&1&&(i(0,"option",13),l(1,"Select a file"),n(),i(2,"option",13),l(3,"Select a folder"),n()),a&2){let c=p();r("value",c.SYNC_PATH_FILTER_TYPE.FILE),e(2),r("value",c.SYNC_PATH_FILTER_TYPE.FOLDER)}}function st(a,h){if(a&1){let c=f();i(0,"button",24),m("click",function(){u(c);let s=p();return y(s.onSelect())}),l(1,"Browse"),n()}}function rt(a,h){if(a&1){let c=f();i(0,"button",24),m("click",function(){u(c);let s=p();return y(s.onSelect(s.ELECTRON_DIALOG.DIRECTORY))}),l(1,"Browse"),n()}}function at(a,h){if(a&1){let c=f();i(0,"div",18)(1,"input",25),b("ngModelChange",function(s){let t=u(c).$index,d=p();return C(d.syncPath.settings.filters[t],s)||(d.syncPath.settings.filters[t]=s),y(s)}),n(),i(2,"button",26),m("click",function(){let s=u(c).$index,t=p();return y(t.onRemoveFilter(s))}),T(3,"fa-icon",2),n()()}if(a&2){let c=h.$index,o=p();e(),E("ngModel",o.syncPath.settings.filters[c]),e(2),r("icon",o.icons.faTimes)}}function lt(a,h){if(a&1){let c=f();i(0,"button",27),m("click",function(){u(c);let s=p();return y(s.onFlush())}),l(1,"Reset"),n()}}var vt=(()=>{let h=class h{constructor(){this.mustRefresh=new v,this.locale=S(G),this.layout=S(q),this.store=S(z),this.ELECTRON_DIALOG=it,this.SYNC_PATH_FILTER_TYPE=Z,this.currentFilterType=this.store.isElectronApp()?this.SYNC_PATH_FILTER_TYPE.FILE:this.SYNC_PATH_FILTER_TYPE.START,this.filterTypePlaceholder={[this.SYNC_PATH_FILTER_TYPE.FILE]:"click on the browse button",[this.SYNC_PATH_FILTER_TYPE.FOLDER]:"click on the browse button",[this.SYNC_PATH_FILTER_TYPE.START]:"with a name or pattern",[this.SYNC_PATH_FILTER_TYPE.IN]:"with a name or pattern",[this.SYNC_PATH_FILTER_TYPE.END]:"with the extension ('.mp3', '.avi', '.mov' ...)",[this.SYNC_PATH_FILTER_TYPE.EXPERT]:"[-+]?[0-9]*\\.?[0-9]*"},this.icons={faTimes:X,faRotate:j},this.confirmDeletion=!1,this.syncService=S(et)}ngOnInit(){this.syncPath=new tt(JSON.parse(JSON.stringify(this.syncPathSelected)))}onSubmit(){if(this.confirmDeletion){this.onRemove();return}this.store.isElectronApp()?this.syncService.updatePath(this.syncPath.export(!0)).then(()=>{this.syncService.refreshPaths().catch(console.error),this.layout.closeDialog()}):this.syncService.updateSyncPath(this.syncClientSelected.id,this.syncPath.id,this.syncPath.export()).subscribe({next:()=>{this.mustRefresh.emit(),this.layout.closeDialog()},error:o=>this.layout.sendNotification("error","Unable to update",this.syncPath.settings.name,o)})}onRemove(){this.store.isElectronApp()?this.syncService.removePath(this.syncPath.id).then(()=>{this.syncService.refreshPaths().catch(console.error),this.layout.closeDialog(),this.layout.sendNotification("success","Sync deleted",this.syncPath.settings.name)}).catch(o=>this.layout.sendNotification("error","Unable to delete",this.syncPath.settings.name,o)):this.syncService.deleteSyncPath(this.syncClientSelected.id,this.syncPath.id).subscribe({next:()=>{this.mustRefresh.emit(),this.layout.closeDialog(),this.layout.sendNotification("success","Sync deleted",this.syncPath.settings.name)},error:o=>this.layout.sendNotification("error","Unable to delete",this.syncPath.settings.name,o)})}onFlush(){this.syncService.flushPath(this.syncPath.id).then(()=>{this.layout.sendNotification("success","Sync was reset",this.syncPath.settings.name),this.layout.closeDialog()}).catch(o=>this.layout.sendNotification("error","Unable to reset",this.syncPath.settings.name,o))}onRemoveFilter(o){this.syncPath.settings.filters.splice(o,1)}onSelect(o=this.ELECTRON_DIALOG.FILE){this.syncService.showOpenDialog({properties:[o],defaultPath:this.syncPath.settings.localPath}).then(s=>{s.canceled||s.filePaths[0].startsWith(this.syncPath.settings.localPath)&&(this.currentFilter=s.filePaths[0].replace(this.syncPath.settings.localPath,"").substring(1))})}addFilter(){this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.FILE||this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.FOLDER||this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.EXPERT?this.syncPath.settings.filters.unshift(this.currentFilter):this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.START?this.syncPath.settings.filters.unshift(`^${this.currentFilter}.*`):this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.IN?this.syncPath.settings.filters.unshift(`.*${this.currentFilter}.*`):this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.END&&this.syncPath.settings.filters.unshift(`.*${this.currentFilter}$`),this.currentFilter=null}onCancel(){this.confirmDeletion?this.confirmDeletion=!1:this.layout.closeDialog()}};h.\u0275fac=function(s){return new(s||h)},h.\u0275cmp=L({type:h,selectors:[["app-sync-path-settings-dialog"]],inputs:{syncPathSelected:"syncPathSelected",syncClientSelected:"syncClientSelected"},outputs:{mustRefresh:"mustRefresh"},decls:43,vars:35,consts:[[1,"modal-header"],[1,"modal-title"],[3,"icon"],[1,"ms-2"],["aria-label","Close","type","button",1,"btn-close","btn-close-white",3,"click"],[1,"modal-body"],["type","pills",3,"justified"],[2,"margin-top","8px","margin-bottom","6px"],["customClass","tab-dialog",3,"heading"],["direction","start","size","large",3,"showPaths","syncPath"],[1,"d-flex","align-items-center","mb-2"],[1,"d-flex","flex-row","col-12","px-0"],[1,"form-select","form-select-sm","me-1",3,"ngModelChange","ngModel"],["l10nTranslate","",3,"value"],["type","text",1,"form-control","form-select-sm","me-1",3,"ngModelChange","ngModel","disabled","placeholder"],["l10nTranslate","","type","button",1,"btn","btn-xs","btn-secondary","me-1",3,"click","disabled"],["l10nTranslate","","type","button",1,"btn","btn-xs","btn-secondary"],[1,"my-1"],[1,"d-flex","mb-1"],[1,"modal-footer"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-danger","me-2",3,"click","disabled"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-warning"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","submit","l10nTranslate","",3,"click","disabled"],["l10nTranslate","","type","button",1,"btn","btn-xs","btn-secondary",3,"click"],["type","text",1,"form-control","form-control-sm","me-1",3,"ngModelChange","ngModel"],["data-dismiss","modal","type","button",1,"btn","btn-xs","btn-danger",3,"click"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-warning",3,"click"]],template:function(s,t){s&1&&(i(0,"div",0)(1,"h4",1),T(2,"fa-icon",2),i(3,"span",3),l(4),n()(),i(5,"button",4),m("click",function(){return t.layout.closeDialog()}),n()(),i(6,"div",5)(7,"tabset",6),T(8,"hr",7),i(9,"tab",8),F(10,"translate"),T(11,"app-sync-path-settings",9),n(),i(12,"tab",8),F(13,"translate"),i(14,"div",10)(15,"div",11)(16,"select",12),b("ngModelChange",function(_){return C(t.currentFilterType,_)||(t.currentFilterType=_),_}),g(17,ot,4,2),i(18,"option",13),l(19,"The files starting"),n(),i(20,"option",13),l(21,"The files containing"),n(),i(22,"option",13),l(23,"The files ending"),n(),i(24,"option",13),l(25,"Expert (Regexp)"),n()(),i(26,"input",14),F(27,"translate"),b("ngModelChange",function(_){return C(t.currentFilter,_)||(t.currentFilter=_),_}),n(),i(28,"button",15),m("click",function(){return t.addFilter()}),l(29,"Add"),n(),g(30,st,2,0,"button",16),g(31,rt,2,0,"button",16),n()(),T(32,"hr",17),D(33,at,4,2,"div",18,Y),n()()(),i(35,"div",19)(36,"button",20),m("click",function(){return t.confirmDeletion=!0}),l(37," Remove "),n(),g(38,lt,2,0,"button",21),i(39,"button",22),m("click",function(){return t.onCancel()}),l(40,"Cancel"),n(),i(41,"button",23),m("click",function(){return t.onSubmit()}),l(42),n()()),s&2&&(e(2),r("icon",t.icons.faRotate),e(2),A(t.syncPath.settings.name),e(3),r("justified",!0),e(2),r("heading",R(10,26,"Settings",t.locale.language)),e(2),r("showPaths",!0)("syncPath",t.syncPath),e(),r("heading",R(13,29,"Filters",t.locale.language)),e(4),E("ngModel",t.currentFilterType),e(),P(t.store.isElectronApp()?17:-1),e(),r("value",t.SYNC_PATH_FILTER_TYPE.START),e(2),r("value",t.SYNC_PATH_FILTER_TYPE.IN),e(2),r("value",t.SYNC_PATH_FILTER_TYPE.END),e(2),r("value",t.SYNC_PATH_FILTER_TYPE.EXPERT),e(2),E("ngModel",t.currentFilter),r("disabled",t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FILE||t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FOLDER)("placeholder",R(27,32,t.filterTypePlaceholder[t.currentFilterType],t.locale.language)),e(2),r("disabled",!t.currentFilter),e(2),P(t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FILE?30:-1),e(),P(t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FOLDER?31:-1),e(2),N(t.syncPath.settings.filters),e(3),r("disabled",t.confirmDeletion),e(2),P(t.store.isElectronApp()?38:-1),e(3),I(x("btn btn-sm ",t.confirmDeletion?"btn-danger":"btn-primary")),r("disabled",!t.syncPath.settings.name),e(),w(" ",t.confirmDeletion?"Confirm deletion":"Confirm"," "))},dependencies:[K,Q,nt,B,V,W,k,O,H,M,J,$,U],encapsulation:2});let a=h;return a})();export{vt as a};
1
+ import{b as nt}from"./chunk-2GXOVGTD.js";import{a as it}from"./chunk-NMF2ZFBE.js";import{a as Z,f as tt,h as et}from"./chunk-XSURUW7C.js";import{a as K,b as Q}from"./chunk-R4VYKZVJ.js";import{Cb as q,vb as z}from"./chunk-AALPWGPB.js";import{Bb as f,Cd as B,Eb as m,Ed as G,Gb as p,Jd as U,Kd as $,Ld as j,Oa as e,Qa as v,Sb as I,Tb as l,Ub as A,Vb as w,Xb as E,Yb as C,Zb as b,ab as L,cc as x,fd as k,ja as S,jd as H,kc as F,lb as g,mb as P,mc as R,nb as Y,oa as u,od as M,pa as y,pb as D,qb as N,qg as J,rb as r,sb as i,tb as n,ub as T,ud as O,vd as V,wd as W,xf as X}from"./chunk-76M3BMK6.js";function ot(a,h){if(a&1&&(i(0,"option",13),l(1,"Select a file"),n(),i(2,"option",13),l(3,"Select a folder"),n()),a&2){let c=p();r("value",c.SYNC_PATH_FILTER_TYPE.FILE),e(2),r("value",c.SYNC_PATH_FILTER_TYPE.FOLDER)}}function st(a,h){if(a&1){let c=f();i(0,"button",24),m("click",function(){u(c);let s=p();return y(s.onSelect())}),l(1,"Browse"),n()}}function rt(a,h){if(a&1){let c=f();i(0,"button",24),m("click",function(){u(c);let s=p();return y(s.onSelect(s.ELECTRON_DIALOG.DIRECTORY))}),l(1,"Browse"),n()}}function at(a,h){if(a&1){let c=f();i(0,"div",18)(1,"input",25),b("ngModelChange",function(s){let t=u(c).$index,d=p();return C(d.syncPath.settings.filters[t],s)||(d.syncPath.settings.filters[t]=s),y(s)}),n(),i(2,"button",26),m("click",function(){let s=u(c).$index,t=p();return y(t.onRemoveFilter(s))}),T(3,"fa-icon",2),n()()}if(a&2){let c=h.$index,o=p();e(),E("ngModel",o.syncPath.settings.filters[c]),e(2),r("icon",o.icons.faTimes)}}function lt(a,h){if(a&1){let c=f();i(0,"button",27),m("click",function(){u(c);let s=p();return y(s.onFlush())}),l(1,"Reset"),n()}}var vt=(()=>{let h=class h{constructor(){this.mustRefresh=new v,this.locale=S(G),this.layout=S(q),this.store=S(z),this.ELECTRON_DIALOG=it,this.SYNC_PATH_FILTER_TYPE=Z,this.currentFilterType=this.store.isElectronApp()?this.SYNC_PATH_FILTER_TYPE.FILE:this.SYNC_PATH_FILTER_TYPE.START,this.filterTypePlaceholder={[this.SYNC_PATH_FILTER_TYPE.FILE]:"click on the browse button",[this.SYNC_PATH_FILTER_TYPE.FOLDER]:"click on the browse button",[this.SYNC_PATH_FILTER_TYPE.START]:"with a name or pattern",[this.SYNC_PATH_FILTER_TYPE.IN]:"with a name or pattern",[this.SYNC_PATH_FILTER_TYPE.END]:"with the extension ('.mp3', '.avi', '.mov' ...)",[this.SYNC_PATH_FILTER_TYPE.EXPERT]:"[-+]?[0-9]*\\.?[0-9]*"},this.icons={faTimes:X,faRotate:j},this.confirmDeletion=!1,this.syncService=S(et)}ngOnInit(){this.syncPath=new tt(JSON.parse(JSON.stringify(this.syncPathSelected)))}onSubmit(){if(this.confirmDeletion){this.onRemove();return}this.store.isElectronApp()?this.syncService.updatePath(this.syncPath.export(!0)).then(()=>{this.syncService.refreshPaths().catch(console.error),this.layout.closeDialog()}):this.syncService.updateSyncPath(this.syncClientSelected.id,this.syncPath.id,this.syncPath.export()).subscribe({next:()=>{this.mustRefresh.emit(),this.layout.closeDialog()},error:o=>this.layout.sendNotification("error","Unable to update",this.syncPath.settings.name,o)})}onRemove(){this.store.isElectronApp()?this.syncService.removePath(this.syncPath.id).then(()=>{this.syncService.refreshPaths().catch(console.error),this.layout.closeDialog(),this.layout.sendNotification("success","Sync deleted",this.syncPath.settings.name)}).catch(o=>this.layout.sendNotification("error","Unable to delete",this.syncPath.settings.name,o)):this.syncService.deleteSyncPath(this.syncClientSelected.id,this.syncPath.id).subscribe({next:()=>{this.mustRefresh.emit(),this.layout.closeDialog(),this.layout.sendNotification("success","Sync deleted",this.syncPath.settings.name)},error:o=>this.layout.sendNotification("error","Unable to delete",this.syncPath.settings.name,o)})}onFlush(){this.syncService.flushPath(this.syncPath.id).then(()=>{this.layout.sendNotification("success","Sync was reset",this.syncPath.settings.name),this.layout.closeDialog()}).catch(o=>this.layout.sendNotification("error","Unable to reset",this.syncPath.settings.name,o))}onRemoveFilter(o){this.syncPath.settings.filters.splice(o,1)}onSelect(o=this.ELECTRON_DIALOG.FILE){this.syncService.showOpenDialog({properties:[o],defaultPath:this.syncPath.settings.localPath}).then(s=>{s.canceled||s.filePaths[0].startsWith(this.syncPath.settings.localPath)&&(this.currentFilter=s.filePaths[0].replace(this.syncPath.settings.localPath,"").substring(1))})}addFilter(){this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.FILE||this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.FOLDER||this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.EXPERT?this.syncPath.settings.filters.unshift(this.currentFilter):this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.START?this.syncPath.settings.filters.unshift(`^${this.currentFilter}.*`):this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.IN?this.syncPath.settings.filters.unshift(`.*${this.currentFilter}.*`):this.currentFilterType===this.SYNC_PATH_FILTER_TYPE.END&&this.syncPath.settings.filters.unshift(`.*${this.currentFilter}$`),this.currentFilter=null}onCancel(){this.confirmDeletion?this.confirmDeletion=!1:this.layout.closeDialog()}};h.\u0275fac=function(s){return new(s||h)},h.\u0275cmp=L({type:h,selectors:[["app-sync-path-settings-dialog"]],inputs:{syncPathSelected:"syncPathSelected",syncClientSelected:"syncClientSelected"},outputs:{mustRefresh:"mustRefresh"},decls:43,vars:35,consts:[[1,"modal-header"],[1,"modal-title"],[3,"icon"],[1,"ms-2"],["aria-label","Close","type","button",1,"btn-close","btn-close-white",3,"click"],[1,"modal-body"],["type","pills",3,"justified"],[2,"margin-top","8px","margin-bottom","6px"],["customClass","tab-dialog",3,"heading"],["direction","start","size","large",3,"showPaths","syncPath"],[1,"d-flex","align-items-center","mb-2"],[1,"d-flex","flex-row","col-12","px-0"],[1,"form-select","form-select-sm","me-1",3,"ngModelChange","ngModel"],["l10nTranslate","",3,"value"],["type","text",1,"form-control","form-select-sm","me-1",3,"ngModelChange","ngModel","disabled","placeholder"],["l10nTranslate","","type","button",1,"btn","btn-xs","btn-secondary","me-1",3,"click","disabled"],["l10nTranslate","","type","button",1,"btn","btn-xs","btn-secondary"],[1,"my-1"],[1,"d-flex","mb-1"],[1,"modal-footer"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-danger","me-2",3,"click","disabled"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-warning"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-secondary","ms-auto",3,"click"],["type","submit","l10nTranslate","",3,"click","disabled"],["l10nTranslate","","type","button",1,"btn","btn-xs","btn-secondary",3,"click"],["type","text",1,"form-control","form-control-sm","me-1",3,"ngModelChange","ngModel"],["data-dismiss","modal","type","button",1,"btn","btn-xs","btn-danger",3,"click"],["data-dismiss","modal","type","button","l10nTranslate","",1,"btn","btn-sm","btn-warning",3,"click"]],template:function(s,t){s&1&&(i(0,"div",0)(1,"h4",1),T(2,"fa-icon",2),i(3,"span",3),l(4),n()(),i(5,"button",4),m("click",function(){return t.layout.closeDialog()}),n()(),i(6,"div",5)(7,"tabset",6),T(8,"hr",7),i(9,"tab",8),F(10,"translate"),T(11,"app-sync-path-settings",9),n(),i(12,"tab",8),F(13,"translate"),i(14,"div",10)(15,"div",11)(16,"select",12),b("ngModelChange",function(_){return C(t.currentFilterType,_)||(t.currentFilterType=_),_}),g(17,ot,4,2),i(18,"option",13),l(19,"The files starting"),n(),i(20,"option",13),l(21,"The files containing"),n(),i(22,"option",13),l(23,"The files ending"),n(),i(24,"option",13),l(25,"Expert (Regexp)"),n()(),i(26,"input",14),F(27,"translate"),b("ngModelChange",function(_){return C(t.currentFilter,_)||(t.currentFilter=_),_}),n(),i(28,"button",15),m("click",function(){return t.addFilter()}),l(29,"Add"),n(),g(30,st,2,0,"button",16),g(31,rt,2,0,"button",16),n()(),T(32,"hr",17),D(33,at,4,2,"div",18,Y),n()()(),i(35,"div",19)(36,"button",20),m("click",function(){return t.confirmDeletion=!0}),l(37," Remove "),n(),g(38,lt,2,0,"button",21),i(39,"button",22),m("click",function(){return t.onCancel()}),l(40,"Cancel"),n(),i(41,"button",23),m("click",function(){return t.onSubmit()}),l(42),n()()),s&2&&(e(2),r("icon",t.icons.faRotate),e(2),A(t.syncPath.settings.name),e(3),r("justified",!0),e(2),r("heading",R(10,26,"Settings",t.locale.language)),e(2),r("showPaths",!0)("syncPath",t.syncPath),e(),r("heading",R(13,29,"Filters",t.locale.language)),e(4),E("ngModel",t.currentFilterType),e(),P(t.store.isElectronApp()?17:-1),e(),r("value",t.SYNC_PATH_FILTER_TYPE.START),e(2),r("value",t.SYNC_PATH_FILTER_TYPE.IN),e(2),r("value",t.SYNC_PATH_FILTER_TYPE.END),e(2),r("value",t.SYNC_PATH_FILTER_TYPE.EXPERT),e(2),E("ngModel",t.currentFilter),r("disabled",t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FILE||t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FOLDER)("placeholder",R(27,32,t.filterTypePlaceholder[t.currentFilterType],t.locale.language)),e(2),r("disabled",!t.currentFilter),e(2),P(t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FILE?30:-1),e(),P(t.currentFilterType===t.SYNC_PATH_FILTER_TYPE.FOLDER?31:-1),e(2),N(t.syncPath.settings.filters),e(3),r("disabled",t.confirmDeletion),e(2),P(t.store.isElectronApp()?38:-1),e(3),I(x("btn btn-sm ",t.confirmDeletion?"btn-danger":"btn-primary")),r("disabled",!t.syncPath.settings.name),e(),w(" ",t.confirmDeletion?"Confirm deletion":"Confirm"," "))},dependencies:[K,Q,nt,B,V,W,k,O,H,M,J,$,U],encapsulation:2});let a=h;return a})();export{vt as a};
@@ -1 +1 @@
1
- import{A as fe}from"./chunk-E32J777S.js";import{c as W}from"./chunk-3WZ6F3LC.js";import{e as _e,g as P,h as ye}from"./chunk-XTVNHFKX.js";import"./chunk-RTNEBRKJ.js";import"./chunk-JXZCNFW7.js";import{w as Se}from"./chunk-B6HQYQYG.js";import"./chunk-GWRAGN3M.js";import{Cb as ue,D as w,Mb as x,Nb as E,Ob as S,pb as me,qb as he,rb as h,s as ae,vb as pe}from"./chunk-O3YLAEVE.js";import{d as Y}from"./chunk-QHJT5H4M.js";import{Bb as B,Cd as te,Dd as ie,Eb as _,Ed as ne,Gb as m,Hf as le,Ia as R,Jd as re,Kb as O,Kd as oe,Lb as $,Mb as H,Me as se,Oa as a,Oe as ce,Rb as V,Sb as I,Tb as u,Ub as v,Xb as Z,Yb as U,Zb as j,ab as M,cc as N,fc as Q,fd as G,ja as f,jd as q,kc as g,kd as J,lb as y,mb as C,mc as b,md as K,oa as z,od as X,pa as T,pb as L,pd as ee,qb as F,qg as de,rb as l,sb as s,tb as c,ub as p,va as k}from"./chunk-D55YR5X7.js";import"./chunk-SDJNZULP.js";import"./chunk-2YQ4SX3A.js";import"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import{i as D}from"./chunk-KAVP6UXH.js";var Ce=()=>({standalone:!0}),ve=(i,o)=>o.id;function Pe(i,o){if(i&1&&p(0,"fa-icon",25),i&2){let n=m(2);I(N("circle-",n.selectedPath.iconClass,"-icon")),l("icon",n.selectedPath.icon)}}function ge(i,o){if(i&1&&p(0,"img",23),i&2){let n=m(2);l("src",n.selectedPath.mimeUrl,R)}}function be(i,o){if(i&1&&(y(0,Pe,1,4,"fa-icon",22)(1,ge,1,1,"img",23),s(2,"span",24),u(3),c()),i&2){let n=m();C(n.selectedPath.icon?0:1),a(3),v(n.selectedPath.name)}}function we(i,o){i&1&&(s(0,"span",3),u(1,"Please select the server directory to sync, if it doesn't exist you can create it."),c())}function xe(i,o){if(i&1&&(s(0,"span",3),u(1),c()),i&2){let n=m();a(),v(n.infoMsg)}}function Ee(i,o){if(i&1&&(s(0,"th",13),u(1),c()),i&2){let n=m();a(),v(n.currentShowedPath)}}function Ae(i,o){i&1&&(s(0,"th",3),u(1,"Double click to browse directories"),c())}function ze(i,o){if(i&1&&p(0,"fa-icon",25),i&2){let n=m().$implicit;I(N("circle-",n.iconClass,"-icon")),l("icon",n.icon)}}function Te(i,o){if(i&1&&p(0,"img",23),i&2){let n=m().$implicit;l("src",n.mimeUrl,R)}}function Re(i,o){if(i&1){let n=B();s(0,"tr",26),_("click",function(){let r=z(n).$implicit,e=m();return T(e.onSelect(r))})("dblclick",function(){let r=z(n).$implicit,e=m();return T(e.browse(r.path))}),s(1,"td")(2,"div",27),y(3,ze,1,4,"fa-icon",22)(4,Te,1,1,"img",23),s(5,"span",28),u(6),c()()()()}if(i&2){let n=o.$implicit;V("selected",n.selected),a(3),C(n.icon?3:4),a(3),v(n.name)}}var Xe=(()=>{let o=class o{constructor(){this.locale=f(ne),this.icons={faArrowCircleLeft:se,faArrowCircleRight:ce,faFolderPlus:le},this.infoMsg=null,this.canCreateDir=!1,this.router=f(Y),this.store=f(pe),this.userService=f(Se),this.filesService=f(fe),this.syncService=f(ye),this.layout=f(ue),this.rootPaths=[this.userService.userHavePermission(w.PERSONAL_SPACE)?new P({id:0,name:this.layout.translateString(x.PERSONAL_FILES),path:`${S.FILES}/${S.PERSONAL}`,icon:E.PERSONAL,hasChildren:!0,enabled:!0,iconClass:"primary"}):null,this.userService.userHavePermission(w.SPACES)?new P({id:-1,name:this.layout.translateString(x.SPACES),path:S.SPACES,icon:E.SPACES,hasChildren:!0,enabled:!0,iconClass:"primary"}):null,this.userService.userHavePermission(w.SHARES)?new P({id:-2,name:this.layout.translateString(x.SHARES),path:S.SHARES,icon:E.SHARES,hasChildren:!0,enabled:!0,iconClass:"purple"}):null].filter(Boolean),this.currentPaths=k([...this.rootPaths]),this.syncService.wizard.remotePath&&this.browse(this.syncService.wizard.remotePath.path.split("/").slice(0,-1).join("/"),this.syncService.wizard.remotePath.name).catch(t=>{console.error(t),this.currentPath="",this.onBack()}),this.layout.setBreadcrumbIcon(he.WIZARD),this.layout.setBreadcrumbNav({url:`/${h.BASE}/${h.WIZARD}/${h.WIZARD_SERVER}/${me.WIZARD_SERVER}`,splicing:3,translating:!0,sameLink:!0})}browse(t,r=null){return D(this,null,function*(){if(this.currentPath=t||"",this.setCurrentPaths((yield this.filesService.getTreeNode(t)).map(e=>new P(e))),this.setCurrentShowedPath(),this.canCreateDir=this.currentPath.length?_e(`${this.currentPath}/canCreate`,!0):!1,r){let e=this.currentPaths().findIndex(d=>d.name===r);e>-1&&(this.onSelect(this.currentPaths()[e]),this.autoResize.scrollIntoView(Math.max(e,1)*30-30))}else this.onSelect(),this.autoResize.scrollTop()})}onBack(){let t=this.currentPath.split("/");if(t.length===2&&t[0]===S.FILES&&t[1]===S.PERSONAL||t.length<=1)this.currentPath="",this.onSelect(),this.initRootPaths(),this.setCurrentShowedPath(),this.canCreateDir=!1;else{let r=t.length===2&&t[0]===S.FILES?[S.SPACES]:t.slice(0,-1);this.browse(r.join("/")).catch(console.error)}}addDirectory(){this.filesService.make("directory",this.newDirectoryName,this.currentPath,!0).subscribe({next:()=>{this.browse(this.currentPath,this.newDirectoryName).then(()=>this.newDirectoryName="").catch(console.error)},error:t=>this.setInfoMsg(t.error.message)})}onSelect(t){if(this.setInfoMsg(null),this.currentPaths().forEach(r=>r.selected=!1),!t){this.selectPath();return}t.selected=!0,t.isSynchronizable&&(t.enabled?t.isAlreadySynced?(this.setInfoMsg("This directory is already synced"),this.selectPath()):(t.isWriteable||this.setInfoMsg("This directory is read-only, you will not be able to modify it"),this.selectPath(t)):(this.setInfoMsg("This directory is not accessible"),this.selectPath()))}onNext(){this.router.navigate([h.BASE,h.WIZARD,h.WIZARD_SETTINGS]).catch(console.error)}onPrevious(){this.router.navigate([h.BASE,h.WIZARD,h.WIZARD_CLIENT]).catch(console.error)}setServerPath(t){this.syncService.wizard.remotePath=t}setCurrentPaths(t){for(let r of this.store.clientSyncPaths()){let e=new RegExp(`^${r.settings.remotePath}((\\/.*)+|\\/?)$`);for(let d of t)e.test(d.serverPath)&&d.setAlreadySynced()}this.currentPaths.set(t)}initRootPaths(){this.currentPaths.set([...this.rootPaths])}setCurrentShowedPath(){this.currentShowedPath=this.syncService.translateServerPath(this.currentPath)}selectPath(t=null){this.selectedPath=t,this.setServerPath(t)}setInfoMsg(t,r=!1){this.infoMsg=t,r&&setTimeout(()=>this.infoMsg=null,6e3)}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=M({type:o,selectors:[["app-sync-wizard-server"]],viewQuery:function(r,e){if(r&1&&O(W,7),r&2){let d;$(d=H())&&(e.autoResize=d.first)}},decls:36,vars:29,consts:[[1,"wizard"],[1,"my-2"],[1,"d-flex","align-items-center","justify-content-center","fs-sm",2,"min-height","40px"],["l10nTranslate",""],[1,"app-top-menu","px-0","bg-transparent"],["type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[3,"icon"],[1,"text-warning","mx-auto","fs-sm"],[1,"row","align-items-center"],[1,"input-group"],["type","button",1,"btn","btn-sm","btn-secondary","input-group-text",3,"click","hidden","disabled","tooltip"],["type","text",1,"form-control","form-control-sm","me-1",3,"keyup.enter","ngModelChange","ngModel","hidden","ngModelOptions","placeholder"],[1,"app-table","wizard-nav-header"],[1,"text-truncate"],["appAutoResize","",1,"wizard-nav-content",3,"resizeOffset","useMaxHeight"],[1,"app-table"],["tabindex","-1"],[3,"selected"],[1,"mt-auto"],[1,"d-flex","align-items-start"],["type","button","l10nTranslate","",1,"btn","btn-secondary","me-auto",3,"click"],["type","button","l10nTranslate","",1,"btn","btn-secondary","ms-auto",3,"click","disabled"],[2,"width","32px","height","32px","font-size","16px",3,"icon","class"],["alt","","height","30",3,"src"],[1,"text-truncate","fw-500","ms-2"],[2,"width","32px","height","32px","font-size","16px",3,"icon"],[3,"click","dblclick"],[1,"d-flex","align-items-center"],[1,"ms-1"]],template:function(r,e){r&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),y(3,be,4,2)(4,we,2,0,"span",3),c(),s(5,"div",4)(6,"button",5),g(7,"translate"),_("click",function(){return e.onBack()}),p(8,"fa-icon",6),c(),s(9,"div",7),y(10,xe,2,1,"span",3),c(),s(11,"form",8)(12,"div",9)(13,"button",10),g(14,"translate"),_("click",function(){return e.addDirectory()}),p(15,"fa-icon",6),c(),s(16,"input",11),g(17,"translate"),_("keyup.enter",function(){return e.addDirectory()}),j("ngModelChange",function(A){return U(e.newDirectoryName,A)||(e.newDirectoryName=A),A}),c()()()(),s(18,"table",12)(19,"thead")(20,"tr"),y(21,Ee,2,1,"th",13)(22,Ae,2,0,"th",3),c()()(),s(23,"div",14)(24,"table",15)(25,"tbody",16),L(26,Re,7,4,"tr",17,ve),c()()()(),s(28,"div",18)(29,"div",19)(30,"button",20),_("click",function(){return e.onPrevious()}),p(31,"fa-icon",6),u(32," Previous "),c(),s(33,"button",21),_("click",function(){return e.onNext()}),p(34,"fa-icon",6),u(35," Next "),c()()()()),r&2&&(a(3),C(e.selectedPath?3:4),a(3),l("disabled",!e.currentPath)("tooltip",b(7,19,"Back",e.locale.language)),a(2),l("icon",e.icons.faArrowCircleLeft),a(2),C(e.infoMsg?10:-1),a(3),l("hidden",!e.canCreateDir)("disabled",!e.newDirectoryName)("tooltip",b(14,22,"Add",e.locale.language)),a(2),l("icon",e.icons.faFolderPlus),a(),Z("ngModel",e.newDirectoryName),l("hidden",!e.canCreateDir)("ngModelOptions",Q(28,Ce))("placeholder",b(17,25,"New folder",e.locale.language)),a(5),C(e.currentPath?21:22),a(2),l("resizeOffset",230)("useMaxHeight",!1),a(3),F(e.currentPaths()),a(5),l("icon",e.icons.faArrowCircleLeft),a(2),l("disabled",!e.selectedPath),a(),l("icon",e.icons.faArrowCircleRight))},dependencies:[de,oe,W,te,ee,G,q,J,X,K,ie,ae,re],encapsulation:2});let i=o;return i})();export{Xe as SyncWizardServerComponent};
1
+ import{A as fe}from"./chunk-SPQH3ATC.js";import{c as W}from"./chunk-FWQJ4ZCD.js";import{e as _e,g as P,h as ye}from"./chunk-XSURUW7C.js";import"./chunk-RTNEBRKJ.js";import"./chunk-JXZCNFW7.js";import{w as Se}from"./chunk-CVXLHSO5.js";import"./chunk-QJ22N76V.js";import{Cb as ue,D as w,Mb as x,Nb as E,Ob as S,pb as me,qb as he,rb as h,s as ae,vb as pe}from"./chunk-AALPWGPB.js";import{d as Y}from"./chunk-3MVPXC3U.js";import{Bb as B,Cd as te,Dd as ie,Eb as _,Ed as ne,Gb as m,Hf as le,Ia as R,Jd as re,Kb as O,Kd as oe,Lb as $,Mb as H,Me as se,Oa as a,Oe as ce,Rb as V,Sb as I,Tb as u,Ub as v,Xb as Z,Yb as U,Zb as j,ab as M,cc as N,fc as Q,fd as G,ja as f,jd as q,kc as g,kd as J,lb as y,mb as C,mc as b,md as K,oa as z,od as X,pa as T,pb as L,pd as ee,qb as F,qg as de,rb as l,sb as s,tb as c,ub as p,va as k}from"./chunk-76M3BMK6.js";import"./chunk-SDJNZULP.js";import"./chunk-2YQ4SX3A.js";import"./chunk-DM4NXKEP.js";import"./chunk-ZIJQRARU.js";import{i as D}from"./chunk-KAVP6UXH.js";var Ce=()=>({standalone:!0}),ve=(i,o)=>o.id;function Pe(i,o){if(i&1&&p(0,"fa-icon",25),i&2){let n=m(2);I(N("circle-",n.selectedPath.iconClass,"-icon")),l("icon",n.selectedPath.icon)}}function ge(i,o){if(i&1&&p(0,"img",23),i&2){let n=m(2);l("src",n.selectedPath.mimeUrl,R)}}function be(i,o){if(i&1&&(y(0,Pe,1,4,"fa-icon",22)(1,ge,1,1,"img",23),s(2,"span",24),u(3),c()),i&2){let n=m();C(n.selectedPath.icon?0:1),a(3),v(n.selectedPath.name)}}function we(i,o){i&1&&(s(0,"span",3),u(1,"Please select the server directory to sync, if it doesn't exist you can create it."),c())}function xe(i,o){if(i&1&&(s(0,"span",3),u(1),c()),i&2){let n=m();a(),v(n.infoMsg)}}function Ee(i,o){if(i&1&&(s(0,"th",13),u(1),c()),i&2){let n=m();a(),v(n.currentShowedPath)}}function Ae(i,o){i&1&&(s(0,"th",3),u(1,"Double click to browse directories"),c())}function ze(i,o){if(i&1&&p(0,"fa-icon",25),i&2){let n=m().$implicit;I(N("circle-",n.iconClass,"-icon")),l("icon",n.icon)}}function Te(i,o){if(i&1&&p(0,"img",23),i&2){let n=m().$implicit;l("src",n.mimeUrl,R)}}function Re(i,o){if(i&1){let n=B();s(0,"tr",26),_("click",function(){let r=z(n).$implicit,e=m();return T(e.onSelect(r))})("dblclick",function(){let r=z(n).$implicit,e=m();return T(e.browse(r.path))}),s(1,"td")(2,"div",27),y(3,ze,1,4,"fa-icon",22)(4,Te,1,1,"img",23),s(5,"span",28),u(6),c()()()()}if(i&2){let n=o.$implicit;V("selected",n.selected),a(3),C(n.icon?3:4),a(3),v(n.name)}}var Xe=(()=>{let o=class o{constructor(){this.locale=f(ne),this.icons={faArrowCircleLeft:se,faArrowCircleRight:ce,faFolderPlus:le},this.infoMsg=null,this.canCreateDir=!1,this.router=f(Y),this.store=f(pe),this.userService=f(Se),this.filesService=f(fe),this.syncService=f(ye),this.layout=f(ue),this.rootPaths=[this.userService.userHavePermission(w.PERSONAL_SPACE)?new P({id:0,name:this.layout.translateString(x.PERSONAL_FILES),path:`${S.FILES}/${S.PERSONAL}`,icon:E.PERSONAL,hasChildren:!0,enabled:!0,iconClass:"primary"}):null,this.userService.userHavePermission(w.SPACES)?new P({id:-1,name:this.layout.translateString(x.SPACES),path:S.SPACES,icon:E.SPACES,hasChildren:!0,enabled:!0,iconClass:"primary"}):null,this.userService.userHavePermission(w.SHARES)?new P({id:-2,name:this.layout.translateString(x.SHARES),path:S.SHARES,icon:E.SHARES,hasChildren:!0,enabled:!0,iconClass:"purple"}):null].filter(Boolean),this.currentPaths=k([...this.rootPaths]),this.syncService.wizard.remotePath&&this.browse(this.syncService.wizard.remotePath.path.split("/").slice(0,-1).join("/"),this.syncService.wizard.remotePath.name).catch(t=>{console.error(t),this.currentPath="",this.onBack()}),this.layout.setBreadcrumbIcon(he.WIZARD),this.layout.setBreadcrumbNav({url:`/${h.BASE}/${h.WIZARD}/${h.WIZARD_SERVER}/${me.WIZARD_SERVER}`,splicing:3,translating:!0,sameLink:!0})}browse(t,r=null){return D(this,null,function*(){if(this.currentPath=t||"",this.setCurrentPaths((yield this.filesService.getTreeNode(t)).map(e=>new P(e))),this.setCurrentShowedPath(),this.canCreateDir=this.currentPath.length?_e(`${this.currentPath}/canCreate`,!0):!1,r){let e=this.currentPaths().findIndex(d=>d.name===r);e>-1&&(this.onSelect(this.currentPaths()[e]),this.autoResize.scrollIntoView(Math.max(e,1)*30-30))}else this.onSelect(),this.autoResize.scrollTop()})}onBack(){let t=this.currentPath.split("/");if(t.length===2&&t[0]===S.FILES&&t[1]===S.PERSONAL||t.length<=1)this.currentPath="",this.onSelect(),this.initRootPaths(),this.setCurrentShowedPath(),this.canCreateDir=!1;else{let r=t.length===2&&t[0]===S.FILES?[S.SPACES]:t.slice(0,-1);this.browse(r.join("/")).catch(console.error)}}addDirectory(){this.filesService.make("directory",this.newDirectoryName,this.currentPath,!0).subscribe({next:()=>{this.browse(this.currentPath,this.newDirectoryName).then(()=>this.newDirectoryName="").catch(console.error)},error:t=>this.setInfoMsg(t.error.message)})}onSelect(t){if(this.setInfoMsg(null),this.currentPaths().forEach(r=>r.selected=!1),!t){this.selectPath();return}t.selected=!0,t.isSynchronizable&&(t.enabled?t.isAlreadySynced?(this.setInfoMsg("This directory is already synced"),this.selectPath()):(t.isWriteable||this.setInfoMsg("This directory is read-only, you will not be able to modify it"),this.selectPath(t)):(this.setInfoMsg("This directory is not accessible"),this.selectPath()))}onNext(){this.router.navigate([h.BASE,h.WIZARD,h.WIZARD_SETTINGS]).catch(console.error)}onPrevious(){this.router.navigate([h.BASE,h.WIZARD,h.WIZARD_CLIENT]).catch(console.error)}setServerPath(t){this.syncService.wizard.remotePath=t}setCurrentPaths(t){for(let r of this.store.clientSyncPaths()){let e=new RegExp(`^${r.settings.remotePath}((\\/.*)+|\\/?)$`);for(let d of t)e.test(d.serverPath)&&d.setAlreadySynced()}this.currentPaths.set(t)}initRootPaths(){this.currentPaths.set([...this.rootPaths])}setCurrentShowedPath(){this.currentShowedPath=this.syncService.translateServerPath(this.currentPath)}selectPath(t=null){this.selectedPath=t,this.setServerPath(t)}setInfoMsg(t,r=!1){this.infoMsg=t,r&&setTimeout(()=>this.infoMsg=null,6e3)}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=M({type:o,selectors:[["app-sync-wizard-server"]],viewQuery:function(r,e){if(r&1&&O(W,7),r&2){let d;$(d=H())&&(e.autoResize=d.first)}},decls:36,vars:29,consts:[[1,"wizard"],[1,"my-2"],[1,"d-flex","align-items-center","justify-content-center","fs-sm",2,"min-height","40px"],["l10nTranslate",""],[1,"app-top-menu","px-0","bg-transparent"],["type","button",1,"btn","btn-sm","btn-secondary",3,"click","disabled","tooltip"],[3,"icon"],[1,"text-warning","mx-auto","fs-sm"],[1,"row","align-items-center"],[1,"input-group"],["type","button",1,"btn","btn-sm","btn-secondary","input-group-text",3,"click","hidden","disabled","tooltip"],["type","text",1,"form-control","form-control-sm","me-1",3,"keyup.enter","ngModelChange","ngModel","hidden","ngModelOptions","placeholder"],[1,"app-table","wizard-nav-header"],[1,"text-truncate"],["appAutoResize","",1,"wizard-nav-content",3,"resizeOffset","useMaxHeight"],[1,"app-table"],["tabindex","-1"],[3,"selected"],[1,"mt-auto"],[1,"d-flex","align-items-start"],["type","button","l10nTranslate","",1,"btn","btn-secondary","me-auto",3,"click"],["type","button","l10nTranslate","",1,"btn","btn-secondary","ms-auto",3,"click","disabled"],[2,"width","32px","height","32px","font-size","16px",3,"icon","class"],["alt","","height","30",3,"src"],[1,"text-truncate","fw-500","ms-2"],[2,"width","32px","height","32px","font-size","16px",3,"icon"],[3,"click","dblclick"],[1,"d-flex","align-items-center"],[1,"ms-1"]],template:function(r,e){r&1&&(s(0,"div",0)(1,"div",1)(2,"div",2),y(3,be,4,2)(4,we,2,0,"span",3),c(),s(5,"div",4)(6,"button",5),g(7,"translate"),_("click",function(){return e.onBack()}),p(8,"fa-icon",6),c(),s(9,"div",7),y(10,xe,2,1,"span",3),c(),s(11,"form",8)(12,"div",9)(13,"button",10),g(14,"translate"),_("click",function(){return e.addDirectory()}),p(15,"fa-icon",6),c(),s(16,"input",11),g(17,"translate"),_("keyup.enter",function(){return e.addDirectory()}),j("ngModelChange",function(A){return U(e.newDirectoryName,A)||(e.newDirectoryName=A),A}),c()()()(),s(18,"table",12)(19,"thead")(20,"tr"),y(21,Ee,2,1,"th",13)(22,Ae,2,0,"th",3),c()()(),s(23,"div",14)(24,"table",15)(25,"tbody",16),L(26,Re,7,4,"tr",17,ve),c()()()(),s(28,"div",18)(29,"div",19)(30,"button",20),_("click",function(){return e.onPrevious()}),p(31,"fa-icon",6),u(32," Previous "),c(),s(33,"button",21),_("click",function(){return e.onNext()}),p(34,"fa-icon",6),u(35," Next "),c()()()()),r&2&&(a(3),C(e.selectedPath?3:4),a(3),l("disabled",!e.currentPath)("tooltip",b(7,19,"Back",e.locale.language)),a(2),l("icon",e.icons.faArrowCircleLeft),a(2),C(e.infoMsg?10:-1),a(3),l("hidden",!e.canCreateDir)("disabled",!e.newDirectoryName)("tooltip",b(14,22,"Add",e.locale.language)),a(2),l("icon",e.icons.faFolderPlus),a(),Z("ngModel",e.newDirectoryName),l("hidden",!e.canCreateDir)("ngModelOptions",Q(28,Ce))("placeholder",b(17,25,"New folder",e.locale.language)),a(5),C(e.currentPath?21:22),a(2),l("resizeOffset",230)("useMaxHeight",!1),a(3),F(e.currentPaths()),a(5),l("icon",e.icons.faArrowCircleLeft),a(2),l("disabled",!e.selectedPath),a(),l("icon",e.icons.faArrowCircleRight))},dependencies:[de,oe,W,te,ee,G,q,J,X,K,ie,ae,re],encapsulation:2});let i=o;return i})();export{Xe as SyncWizardServerComponent};
@@ -1 +1 @@
1
- import{a as W}from"./chunk-JXZCNFW7.js";import{Za as ce,_a as C,s as le,t as pe}from"./chunk-O3YLAEVE.js";import{Aa as x,Ab as U,Ac as Y,Cd as ae,Eb as $,Ed as oe,Gb as m,Hb as q,Ib as I,Ic as Z,Jc as ee,Jd as se,Kd as re,Oa as p,Pb as S,Qb as h,Rb as v,Sa as R,Sb as A,Tb as u,Ub as L,Vb as V,Wa as j,Wb as H,Xa as b,ab as c,cc as z,db as F,ea as P,fb as M,fd as te,ja as f,jd as ie,kb as D,kc as g,lb as k,lc as G,mb as O,mc as J,nc as B,oc as N,od as ne,rb as s,sa as Q,sb as r,sc as K,tb as l,va as _,wc as y,xa as w,yc as X}from"./chunk-D55YR5X7.js";var me=["*"];function fe(n,t){n&1&&U(0)}function he(n,t){if(n&1&&(r(0,"bar",3),I(1),l()),n&2){let o=m();s("type",o.type)("value",o._value)("max",o.max)("animate",o.animate)("striped",o.striped)}}function ge(n,t){if(n&1&&(r(0,"bar",3),u(1),l()),n&2){let o=t.$implicit,e=m(2);s("type",o.type)("value",o.value)("max",o.max||e.max)("animate",e.animate)("striped",e.striped),p(),L(o.label)}}function ve(n,t){if(n&1&&M(0,ge,2,6,"bar",4),n&2){let o=m();s("ngForOf",o._values)}}var ye=(()=>{let t=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}}};t.\u0275fac=function(i){return new(i||t)(b(x),b(j))},t.\u0275cmp=c({type:t,selectors:[["bar"]],hostAttrs:["role","progressbar","aria-valuemin","0"],hostVars:13,hostBindings:function(i,a){i&2&&(D("aria-valuenow",a.value)("aria-valuetext",a.percent?a.percent.toFixed(0)+"%":"")("aria-valuemax",a.max),h("height","100","%")("width",a.percent,"%"),v("progress-bar",!0)("progress-bar-animated",a.animate)("progress-bar-striped",a.striped))},inputs:{max:"max",value:"value",animate:"animate",striped:"striped",type:"type"},features:[w],ngContentSelectors:me,decls:1,vars:0,template:function(i,a){i&1&&(q(),I(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),xe=(()=>{let t=class t{constructor(){this.animate=!1,this.max=100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ue=(()=>{let t=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)}};t.\u0275fac=function(i){return new(i||t)(b(xe))},t.\u0275cmp=c({type:t,selectors:[["progressbar"]],hostVars:3,hostBindings:function(i,a){i&2&&(D("max",a.max),v("progress",!0))},inputs:{max:"max",animate:"animate",striped:"striped",type:"type",value:"value"},ngContentSelectors:me,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,a){if(i&1&&(q(),M(0,fe,1,0,"ng-container",2)(1,he,2,5,"ng-template",null,0,N)(3,ve,1,1,"ng-template",null,1,N)),i&2){let d=S(2),T=S(4);s("ngIf",!a.isStacked)("ngIfThen",d)("ngIfElse",T)}},dependencies:[ee,ye,Z],styles:["[_nghost-%COMP%]{width:100%;display:flex}"],changeDetection:0});let n=t;return n})();var de=(()=>{let t=class t{transform(e,i=0,a=!1){return C(e,i,a)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=F({name:"toBytes",type:t,pure:!0});let n=t;return n})();function be(n,t){if(n&1&&(r(0,"progressbar",0)(1,"span",1),u(2),g(3,"toBytes"),g(4,"toBytes"),l()()),n&2){let o=m();s("max",o.item().storageQuota)("value",o.item().storageUsage)("type",o.item().storageUsage>=o.item().storageQuota?"danger":null),p(),h("width",o.labelWidth??null,"px"),p(),H(" ",B(3,7,o.item().storageUsage,2,!0)," / ",G(4,11,o.item().storageQuota)," ")}}function Ce(n,t){if(n&1&&(r(0,"progressbar",0)(1,"span",1),u(2),g(3,"toBytes"),l()()),n&2){let o=m();s("max",1)("value",1)("type",null),p(2),V(" ",B(3,4,o.item().storageUsage,2,!0)," ")}}var Ee=(()=>{let t=class t{constructor(){this.item=y({storageUsage:0,storageQuota:null}),this.labelWidth=null,this.elRef=f(x),this.cdr=f(Y),this.destroyRef=f(Q),R(()=>{let e=this.elRef.nativeElement,i=()=>{let d=e.offsetWidth;d!==this.labelWidth&&(this.labelWidth=d,this.cdr.detectChanges())};i();let a=new ResizeObserver(()=>i());a.observe(e),this.destroyRef.onDestroy(()=>a.disconnect())})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=c({type:t,selectors:[["app-storage-usage"]],inputs:{item:[1,"item"]},decls:2,vars:1,consts:[[1,"bg-black",3,"max","value","type"],[1,"ms-1","me-1"]],template:function(i,a){i&1&&k(0,be,5,13,"progressbar",0)(1,Ce,4,8,"progressbar",0),i&2&&O(a.item().storageQuota&&a.item().storageQuota>0?0:1)},dependencies:[ue,de],encapsulation:2});let n=t;return n})();var Ae=(()=>{let t=class t{constructor(){this.quota=X(null),this.maxWidthPercent=y(75),this.fullWidth=y(!1),this.displayMaxWidth=K(()=>this.fullWidth()?100:this.maxWidthPercent()),this.locale=f(oe),this.quotaText=_(""),this.invalid=_(!1)}ngOnInit(){let e=this.quota();e!=null&&this.quotaText.set(e===0?"0":C(e))}onQuotaInput(e){this.quotaText.set(e),this.validateQuota()}onQuotaBlur(){let e=this.quotaText();if(e){if(e==="0"){this.quota.set(0);return}let i=W.exec(e);if(i){let a=`${i[1]} ${i[2].toUpperCase()}`;this.quotaText.set(a),this.quota.set(ce(parseInt(i[1],10),i[2]));return}}this.quota.set(null)}validateQuota(){let e=this.quotaText();this.invalid.set(!!e&&e!=="0"&&!W.test(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=c({type:t,selectors:[["app-storage-quota"]],inputs:{quota:[1,"quota"],maxWidthPercent:[1,"maxWidthPercent"],fullWidth:[1,"fullWidth"]},outputs:{quota:"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,a){i&1&&(r(0,"label",0),u(1,"Storage Quota"),l(),r(2,"div",1)(3,"input",2),g(4,"translate"),$("ngModelChange",function(T){return a.onQuotaInput(T)})("blur",function(){return a.onQuotaBlur()}),l()()),i&2&&(p(3),A(z("form-control form-control-sm ",a.invalid()?"is-invalid":"")),h("max-width",a.displayMaxWidth(),"%"),v("w-100",a.fullWidth()),s("ngModel",a.quotaText())("placeholder",J(4,9,"Unlimited",a.locale.language)))},dependencies:[pe,le,ae,te,ie,ne,re,se],encapsulation:2});let n=t;return n})();export{ue as a,de as b,Ee as c,Ae as d};
1
+ import{a as W}from"./chunk-JXZCNFW7.js";import{Za as ce,_a as C,s as le,t as pe}from"./chunk-AALPWGPB.js";import{Aa as x,Ab as U,Ac as Y,Cd as ae,Eb as $,Ed as oe,Gb as m,Hb as q,Ib as I,Ic as Z,Jc as ee,Jd as se,Kd as re,Oa as p,Pb as S,Qb as h,Rb as v,Sa as R,Sb as A,Tb as u,Ub as L,Vb as V,Wa as j,Wb as H,Xa as b,ab as c,cc as z,db as F,ea as P,fb as M,fd as te,ja as f,jd as ie,kb as D,kc as g,lb as k,lc as G,mb as O,mc as J,nc as B,oc as N,od as ne,rb as s,sa as Q,sb as r,sc as K,tb as l,va as _,wc as y,xa as w,yc as X}from"./chunk-76M3BMK6.js";var me=["*"];function fe(n,t){n&1&&U(0)}function he(n,t){if(n&1&&(r(0,"bar",3),I(1),l()),n&2){let o=m();s("type",o.type)("value",o._value)("max",o.max)("animate",o.animate)("striped",o.striped)}}function ge(n,t){if(n&1&&(r(0,"bar",3),u(1),l()),n&2){let o=t.$implicit,e=m(2);s("type",o.type)("value",o.value)("max",o.max||e.max)("animate",e.animate)("striped",e.striped),p(),L(o.label)}}function ve(n,t){if(n&1&&M(0,ge,2,6,"bar",4),n&2){let o=m();s("ngForOf",o._values)}}var ye=(()=>{let t=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}}};t.\u0275fac=function(i){return new(i||t)(b(x),b(j))},t.\u0275cmp=c({type:t,selectors:[["bar"]],hostAttrs:["role","progressbar","aria-valuemin","0"],hostVars:13,hostBindings:function(i,a){i&2&&(D("aria-valuenow",a.value)("aria-valuetext",a.percent?a.percent.toFixed(0)+"%":"")("aria-valuemax",a.max),h("height","100","%")("width",a.percent,"%"),v("progress-bar",!0)("progress-bar-animated",a.animate)("progress-bar-striped",a.striped))},inputs:{max:"max",value:"value",animate:"animate",striped:"striped",type:"type"},features:[w],ngContentSelectors:me,decls:1,vars:0,template:function(i,a){i&1&&(q(),I(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),xe=(()=>{let t=class t{constructor(){this.animate=!1,this.max=100}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),ue=(()=>{let t=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)}};t.\u0275fac=function(i){return new(i||t)(b(xe))},t.\u0275cmp=c({type:t,selectors:[["progressbar"]],hostVars:3,hostBindings:function(i,a){i&2&&(D("max",a.max),v("progress",!0))},inputs:{max:"max",animate:"animate",striped:"striped",type:"type",value:"value"},ngContentSelectors:me,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,a){if(i&1&&(q(),M(0,fe,1,0,"ng-container",2)(1,he,2,5,"ng-template",null,0,N)(3,ve,1,1,"ng-template",null,1,N)),i&2){let d=S(2),T=S(4);s("ngIf",!a.isStacked)("ngIfThen",d)("ngIfElse",T)}},dependencies:[ee,ye,Z],styles:["[_nghost-%COMP%]{width:100%;display:flex}"],changeDetection:0});let n=t;return n})();var de=(()=>{let t=class t{transform(e,i=0,a=!1){return C(e,i,a)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275pipe=F({name:"toBytes",type:t,pure:!0});let n=t;return n})();function be(n,t){if(n&1&&(r(0,"progressbar",0)(1,"span",1),u(2),g(3,"toBytes"),g(4,"toBytes"),l()()),n&2){let o=m();s("max",o.item().storageQuota)("value",o.item().storageUsage)("type",o.item().storageUsage>=o.item().storageQuota?"danger":null),p(),h("width",o.labelWidth??null,"px"),p(),H(" ",B(3,7,o.item().storageUsage,2,!0)," / ",G(4,11,o.item().storageQuota)," ")}}function Ce(n,t){if(n&1&&(r(0,"progressbar",0)(1,"span",1),u(2),g(3,"toBytes"),l()()),n&2){let o=m();s("max",1)("value",1)("type",null),p(2),V(" ",B(3,4,o.item().storageUsage,2,!0)," ")}}var Ee=(()=>{let t=class t{constructor(){this.item=y({storageUsage:0,storageQuota:null}),this.labelWidth=null,this.elRef=f(x),this.cdr=f(Y),this.destroyRef=f(Q),R(()=>{let e=this.elRef.nativeElement,i=()=>{let d=e.offsetWidth;d!==this.labelWidth&&(this.labelWidth=d,this.cdr.detectChanges())};i();let a=new ResizeObserver(()=>i());a.observe(e),this.destroyRef.onDestroy(()=>a.disconnect())})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=c({type:t,selectors:[["app-storage-usage"]],inputs:{item:[1,"item"]},decls:2,vars:1,consts:[[1,"bg-black",3,"max","value","type"],[1,"ms-1","me-1"]],template:function(i,a){i&1&&k(0,be,5,13,"progressbar",0)(1,Ce,4,8,"progressbar",0),i&2&&O(a.item().storageQuota&&a.item().storageQuota>0?0:1)},dependencies:[ue,de],encapsulation:2});let n=t;return n})();var Ae=(()=>{let t=class t{constructor(){this.quota=X(null),this.maxWidthPercent=y(75),this.fullWidth=y(!1),this.displayMaxWidth=K(()=>this.fullWidth()?100:this.maxWidthPercent()),this.locale=f(oe),this.quotaText=_(""),this.invalid=_(!1)}ngOnInit(){let e=this.quota();e!=null&&this.quotaText.set(e===0?"0":C(e))}onQuotaInput(e){this.quotaText.set(e),this.validateQuota()}onQuotaBlur(){let e=this.quotaText();if(e){if(e==="0"){this.quota.set(0);return}let i=W.exec(e);if(i){let a=`${i[1]} ${i[2].toUpperCase()}`;this.quotaText.set(a),this.quota.set(ce(parseInt(i[1],10),i[2]));return}}this.quota.set(null)}validateQuota(){let e=this.quotaText();this.invalid.set(!!e&&e!=="0"&&!W.test(e))}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=c({type:t,selectors:[["app-storage-quota"]],inputs:{quota:[1,"quota"],maxWidthPercent:[1,"maxWidthPercent"],fullWidth:[1,"fullWidth"]},outputs:{quota:"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,a){i&1&&(r(0,"label",0),u(1,"Storage Quota"),l(),r(2,"div",1)(3,"input",2),g(4,"translate"),$("ngModelChange",function(T){return a.onQuotaInput(T)})("blur",function(){return a.onQuotaBlur()}),l()()),i&2&&(p(3),A(z("form-control form-control-sm ",a.invalid()?"is-invalid":"")),h("max-width",a.displayMaxWidth(),"%"),v("w-100",a.fullWidth()),s("ngModel",a.quotaText())("placeholder",J(4,9,"Unlimited",a.locale.language)))},dependencies:[pe,le,ae,te,ie,ne,re,se],encapsulation:2});let n=t;return n})();export{ue as a,de as b,Ee as c,Ae as d};