@duplicati/ngclient 0.0.230 → 0.0.232

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 (137) hide show
  1. package/assets/dest-icons/googleworkspace.png +0 -0
  2. package/assets/sh.woff2 +0 -0
  3. package/{chunk-DFEb6rgg.js → chunk-B52v_pjw.js} +2 -2
  4. package/{chunk-OLi7f6y7.js → chunk-B53Wj4F9.js} +1 -1
  5. package/chunk-B73LRsqH.js +1 -0
  6. package/{chunk-CRAg6SRo.js → chunk-B8uF0dom.js} +1 -1
  7. package/{chunk-DuIUmwWN.js → chunk-B9maI7Xa.js} +3 -3
  8. package/chunk-BBU0vswn.js +1 -0
  9. package/chunk-BBsBaTWO.js +1 -0
  10. package/chunk-BEhUV7oX.js +1 -0
  11. package/{chunk-DmKJmG9z.js → chunk-BI14DMeb.js} +1 -1
  12. package/chunk-BO2GlieG.js +1 -0
  13. package/{chunk-D2g5mSLr.js → chunk-BS8PXjJJ.js} +1 -1
  14. package/{chunk-B2TXzbpy.js → chunk-BTgf5lfZ.js} +1 -1
  15. package/{chunk-C-NgIZiF.js → chunk-BVEyeg9y.js} +1 -1
  16. package/{chunk-DaGzYsVs.js → chunk-BYWmNy-_.js} +1 -1
  17. package/chunk-BaxM-kGV.js +2 -0
  18. package/{chunk-CT9ziigM.js → chunk-Bb6BmVO4.js} +2 -2
  19. package/{chunk-DPNAj9Vc.js → chunk-Bja52qI7.js} +1 -1
  20. package/chunk-BkIXk6uR.js +2 -0
  21. package/{chunk-BjAIXsAS.js → chunk-BkUa7yBI.js} +1 -1
  22. package/chunk-BlTnmRGU.js +1 -0
  23. package/chunk-Bo1yB-fQ.js +1 -0
  24. package/{chunk-C7pjkqKB.js → chunk-Box6Lckh.js} +1 -1
  25. package/{chunk-wyNyzSXi.js → chunk-BpRWdcC8.js} +1 -1
  26. package/chunk-BqN36tfl.js +1 -0
  27. package/chunk-Brvxo-yI.js +1 -0
  28. package/{chunk-BIOMsSHI.js → chunk-Bt_Ie-F3.js} +1 -1
  29. package/chunk-BvGGBIy7.js +1 -0
  30. package/chunk-C4GeR7BF.js +1 -0
  31. package/{chunk-C4kBXz3C.js → chunk-C80zvTbO.js} +1 -1
  32. package/{chunk-D6aNT_wo.js → chunk-CAwTsBqQ.js} +1 -1
  33. package/chunk-CGArETYn.js +1 -0
  34. package/{chunk-BYJA6sbi.js → chunk-CHzwXmsn.js} +1 -1
  35. package/{chunk-C6QX7znk.js → chunk-CIcBoEH1.js} +1 -1
  36. package/{chunk-Fw6nFDZK.js → chunk-CKnRcyHZ.js} +2 -2
  37. package/chunk-CTRzgLM9.js +2 -0
  38. package/{chunk-CJ0GoaW1.js → chunk-CTm37hI-.js} +1 -1
  39. package/chunk-CTwO6j97.js +1 -0
  40. package/chunk-CUaRQ2FJ.js +1 -0
  41. package/chunk-CUuyy9Er.js +1 -0
  42. package/chunk-CVQPUpDQ.js +3 -0
  43. package/{chunk-I0R6Ty-p.js → chunk-CX26gEKv.js} +1 -1
  44. package/chunk-CZoVeRAG.js +2 -0
  45. package/{chunk-DtA6Mvdt.js → chunk-CartdZy-.js} +1 -1
  46. package/{chunk-DWkdK0Ib.js → chunk-Cg09iQR5.js} +1 -1
  47. package/{chunk-BD9-OWSe.js → chunk-CgyaUJSI.js} +1 -1
  48. package/chunk-Cjb79u3p.js +2 -0
  49. package/chunk-CkrxdjhU.js +2 -0
  50. package/chunk-CtEMAj2d.js +2 -0
  51. package/chunk-Cu2bh6aQ.js +1 -0
  52. package/chunk-Cu4siB3B.js +4 -0
  53. package/{chunk-Ca1C9pJ0.js → chunk-CwKy8pxa.js} +1 -1
  54. package/chunk-Cz0KuBHB.js +2 -0
  55. package/chunk-D5tms-6w.js +1 -0
  56. package/chunk-DI7suso2.js +1 -0
  57. package/{chunk-DD_QfWih.js → chunk-DJJ8GbYi.js} +1 -1
  58. package/{chunk-C1kucB1O.js → chunk-DKZlKdfB.js} +2 -2
  59. package/chunk-DTu0ZYnR.js +1 -0
  60. package/{chunk-khm9J_G0.js → chunk-DUYvFN8m.js} +1 -1
  61. package/{chunk-Cgbi9MZq.js → chunk-DY3nK3tu.js} +1 -1
  62. package/chunk-DYnVzNxt.js +1 -0
  63. package/{chunk-D2g44FyO.js → chunk-DZm4l28A.js} +2 -2
  64. package/chunk-Da_-7L7P.js +2 -0
  65. package/{chunk-D5lj-fQk.js → chunk-DmDqcC4A.js} +1 -1
  66. package/chunk-Dn8nZWLd.js +1 -0
  67. package/{chunk-dmyIQdVx.js → chunk-DoQHDPZg.js} +1 -1
  68. package/{chunk-PVmXLw9b.js → chunk-DqIU7ViF.js} +1 -1
  69. package/{chunk-B728v9oc.js → chunk-Dum38U6w.js} +2 -2
  70. package/{chunk-OFYkgZA1.js → chunk-DvyGZpE4.js} +2 -2
  71. package/{chunk-RQ_MoiOh.js → chunk-DzmZd524.js} +1 -1
  72. package/chunk-Rp7-yjlz.js +1 -0
  73. package/chunk-Saq2s7Ep.js +2 -0
  74. package/{chunk-DN6f5jXR.js → chunk-aOMoAKYY.js} +1 -1
  75. package/chunk-ihUnHtR7.js +3 -0
  76. package/{chunk-Dj3xknEh.js → chunk-ivwxSoND.js} +1 -1
  77. package/chunk-kU0H989B.js +14 -0
  78. package/chunk-mby7fvmj.js +1 -0
  79. package/{chunk-BzIY4AaX.js → chunk-umW-K0Ca.js} +1 -1
  80. package/chunk-vPGrgL1U.js +1 -0
  81. package/chunk-vnqcxg-9.js +2 -0
  82. package/index.html +1 -1
  83. package/locale/messages.de.json +1 -1
  84. package/locale/messages.de_CH.json +1 -1
  85. package/locale/messages.de_DE.json +1 -1
  86. package/locale/messages.en.json +65 -1
  87. package/locale/messages.fr.json +1 -1
  88. package/locale/messages.fr_CA.json +1 -1
  89. package/locale/messages.fr_FR.json +1 -1
  90. package/locale/messages.it.json +95 -2
  91. package/locale/messages.it_IT.json +94 -1
  92. package/locale/messages.json +65 -1
  93. package/locale/messages.nl_BE.json +1 -1
  94. package/locale/messages.nl_NL.json +1 -1
  95. package/locale/messages.zh_HK.json +152 -8
  96. package/main-VVQP2YE7.js +16 -0
  97. package/package.json +1 -1
  98. package/chunk-3RXp81pP.js +0 -1
  99. package/chunk-B0RBkC1E.js +0 -1
  100. package/chunk-BB1pOOUx.js +0 -1
  101. package/chunk-BIL3nR4_.js +0 -2
  102. package/chunk-BOOAIFTC.js +0 -1
  103. package/chunk-BaGYaLxZ.js +0 -2
  104. package/chunk-Bceym75m.js +0 -1
  105. package/chunk-BfZh4DNq.js +0 -2
  106. package/chunk-BlSN71kd.js +0 -1
  107. package/chunk-Bq7wRTmy.js +0 -2
  108. package/chunk-ByhuT4BS.js +0 -14
  109. package/chunk-CBgNjPex.js +0 -1
  110. package/chunk-CEyp0Xmg.js +0 -1
  111. package/chunk-CFne6FXR.js +0 -1
  112. package/chunk-CGn_EA_5.js +0 -2
  113. package/chunk-CJ1mxauG.js +0 -2
  114. package/chunk-CMJCX33P.js +0 -1
  115. package/chunk-CWAvlP_u.js +0 -1
  116. package/chunk-CYQJGwsB.js +0 -1
  117. package/chunk-Ca-HIRNP.js +0 -1
  118. package/chunk-CegwkGVu.js +0 -3
  119. package/chunk-CgcnOoRq.js +0 -2
  120. package/chunk-Ck9c9Juw.js +0 -1
  121. package/chunk-CnRCpl-v.js +0 -2
  122. package/chunk-CrgyDps4.js +0 -1
  123. package/chunk-DDBflo2l.js +0 -4
  124. package/chunk-Df7q8ewK.js +0 -1
  125. package/chunk-Dgns65Zu.js +0 -2
  126. package/chunk-Dh6x3lXP.js +0 -2
  127. package/chunk-DipTNkHN.js +0 -1
  128. package/chunk-DkdGEw1e.js +0 -1
  129. package/chunk-DtdFhFa9.js +0 -1
  130. package/chunk-DwKPz2Gn.js +0 -3
  131. package/chunk-DwMhABnQ.js +0 -2
  132. package/chunk-HWQc1Hoa.js +0 -1
  133. package/chunk-LL0IHZns.js +0 -1
  134. package/chunk-Zo-grJt3.js +0 -1
  135. package/chunk-glhLCQrb.js +0 -1
  136. package/chunk-yF6CJHRg.js +0 -1
  137. package/main-KFKZO6SJ.js +0 -16
package/chunk-Dgns65Zu.js DELETED
@@ -1,2 +0,0 @@
1
- import {S as Se$1,m as mt$1,_ as _t$1}from'./chunk-Dh6x3lXP.js';import {I as I$1}from'./chunk-DD_QfWih.js';import {J}from'./chunk-khm9J_G0.js';import {a as Ge$1}from'./chunk-CegwkGVu.js';import {N as Nt$1}from'./chunk-CT9ziigM.js';import {v as ve$1}from'./chunk-D5lj-fQk.js';import {F as Fe}from'./chunk-DuIUmwWN.js';import {B as Bn,Z as Ze$1,e as en,y as yt$1,R as Rn,J as Jt}from'./chunk-DipTNkHN.js';import {a as at$1}from'./chunk-Fw6nFDZK.js';import {T,m,af as m1,b as g1,U as Ue$1,N as Nt,aj as l,ai as m$1,d as dw,bZ as ei,v,f as N,Q as Qi,aP as Ul,X as XT,aQ as Wl,o as oT,H as Hl,bf as ig,z as gg,D as DE,i as iT,k as gT,F as Fg,S as Sd,n as nC,x as xd,O as Og,j as mg,P as Pg,a1 as cT,ap as sT,a2 as lT,p as DD,a3 as QC,y as TD,q as PC,E as nm,ak as cm,al as BC,I as Qg,aa as Gl,ao as $C,c2 as uC,a_ as ZC,b_ as Ig,c4 as sb}from'./main-KFKZO6SJ.js';import'./chunk-wyNyzSXi.js';import'./chunk-D6aNT_wo.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import'./chunk-CRAg6SRo.js';import'./chunk-PVmXLw9b.js';import'./chunk-C7pjkqKB.js';var Se=[{name:"send-mail-to",type:"Email"},{name:"send-mail-from",type:"Email"},{name:"log-file",type:"FileTree"},{name:"compression-extension-file",type:"FileTree"},{name:"dbpath",type:"FileTree"},{name:"restore-path",type:"FileTree"},{name:"gpg-program-path",type:"FileTree"}];var he=()=>({updateOn:"blur"}),I=t=>({formView:t}),V=t=>({$implicit:t});function we(t,i){if(t&1){let e=gT();Qi(0,"button",15),Fg("click",function(){Sd(e);let n=nC();return xd(n.showTextArea.set(false))}),Og(1,6),mg(2,"sh-icon"),Pg(),Hl();}}function Le(t,i){if(t&1){let e=gT();Qi(0,"button",19,1),Fg("click",function(){let n=Sd(e).$implicit,a=nC(3);return xd(a.addSetting(n))}),Qi(2,"div",20),PC(3),Qi(4,"p"),PC(5),Hl()()();}if(t&2){let e=i.$implicit;Qg("deprecated",e.deprecatedDescription),DE(3),Gl(" ",e.shortDescription," "),DE(2),nm(e.name);}}function Ie(t,i){if(t&1&&(Qi(0,"h3",11),PC(1),Hl(),cT(2,Le,6,4,"button",18,sT)),t&2){let e=i.$implicit;DE(),nm(e.displayName),DE(),lT(e.options);}}function Ve(t,i){if(t&1){let e=gT();Qi(0,"sh-menu")(1,"button",21)(2,"sh-icon"),PC(3,"dots-three-vertical"),Hl()(),Ul(4,17),Qi(5,"button",15),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.addFreeTextSetting())}),Og(6,8),mg(7,"sh-icon"),Pg(),Hl(),Qi(8,"button",22),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.showTextArea.set(true))}),Qi(9,"sh-icon"),PC(10,"link"),Hl(),PC(11," Edit contents as text "),Hl(),Qi(12,"button",15),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.showOptionNames.set(!n.showOptionNames()))}),Og(13,9),mg(14,"sh-icon"),Pg(),Hl(),Wl(),Hl();}}function Ne(t,i){if(t&1&&(Qi(0,"sh-menu",16)(1,"button",13),Og(2,7),mg(3,"sh-icon"),Pg(),Hl(),Ul(4,17),cT(5,Ie,4,1,null,null,sT),Wl(),Hl(),oT(7,Ve,15,0,"sh-menu")),t&2){let e=nC();gg("searchable",true),DE(5),lT(e.nonSelectedOptionsGrouped()),DE(2),iT(e.hasFreeTextSettings()?7:-1);}}function be(t,i){if(t&1){let e=gT();Qi(0,"textarea",23),Fg("ngModelChange",function(n){Sd(e);let a=nC();return xd(a.updateSettingsFromText(n))}),Hl(),DD();}if(t&2){let e=nC();gg("ngModel",e.settingsAsText())("ngModelOptions",QC(2,he)),TD();}}function Ee(t,i){t&1&&(Qi(0,"div",24),PC(1,"Add a setting above to get started."),Hl());}function Me(t,i){t&1&&(Qi(0,"sh-icon",32),PC(1," warning-octagon "),Hl());}function Pe(t,i){if(t&1&&(Qi(0,"span",33),PC(1),Hl()),t&2){let e=nC(2).$implicit;DE(),Gl("--",e.FormView.name);}}function ve(t,i){if(t&1&&PC(0),t&2){let e=nC(2).$implicit;Gl(" ",e.FormView.shortDescription," ");}}function $e(t,i){if(t&1&&(Qi(0,"sh-icon",34),PC(1,"archive"),Hl()),t&2){let e=nC(2).$implicit;gg("shTooltip",e.FormView.deprecatedDescription);}}function Ae(t,i){if(t&1&&(Qi(0,"sh-icon",35),PC(1,"question"),Hl()),t&2){let e=nC(2).$implicit;gg("shTooltip",e.FormView.longDescription);}}function De(t,i){if(t&1&&(oT(0,Me,2,0,"sh-icon",32),Qi(1,"span"),oT(2,Pe,2,1,"span",33)(3,ve,1,1),Hl(),oT(4,$e,2,1,"sh-icon",34)(5,Ae,2,1,"sh-icon",35)),t&2){let e=nC().$implicit,o=$C(1),n=nC(2);iT(o?0:-1),DE(),Qg("deprecated",e.FormView.deprecatedDescription),DE(),iT(n.showOptionNames()?2:3),DE(2),iT(e.FormView.deprecatedDescription?4:e.FormView.longDescription?5:-1);}}function Re(t,i){t&1&&Ig(0);}function Ge(t,i){if(t&1){let e=gT();Qi(0,"div",26)(1,"label"),ig(2,Re,1,0,"ng-container",36),Hl(),Qi(3,"div")(4,"sh-form-field")(5,"input",37),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateFreeTextSettingName(a,n))}),Hl(),DD(),Qi(6,"sh-icon",38),PC(7,"rectangle-dashed"),Hl()()(),Qi(8,"div")(9,"sh-form-field")(10,"input",37),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Qi(11,"sh-icon",38),PC(12,"textbox"),Hl()()()();}if(t&2){let e=nC().$implicit,o=uC(3);DE(2),gg("ngTemplateOutlet",o),DE(3),gg("ngModel",e.Name),TD(),DE(5),gg("ngModel",e.Value()),TD();}}function ke(t,i){t&1&&Ig(0);}function Be(t,i){if(t&1){let e=gT();Qi(0,"app-file-tree",27)(1,"label",39),ig(2,ke,1,0,"ng-container",36),Hl(),Qi(3,"input",40),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);gg("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",true)("showHiddenNodes",true)("selectFiles",true)("hideShortcuts",false)("resolvePaths",true),DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("id",n)("ngModel",e.Value()),TD();}}function ze(t,i){if(t&1){let e=gT();Qi(0,"app-file-tree",28),mg(1,"label",39),Qi(2,"input",40),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl();}if(t&2){let e=nC().$implicit,o=$C(0);gg("startingPath",e.Value())("hideShortcuts",false)("resolvePaths",true),DE(),gg("for",o),DE(),gg("id",o)("ngModel",e.Value()),TD();}}function Ue(t,i){t&1&&Ig(0);}function Ke(t,i){t&1&&Ig(0);}function He(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"link"),Hl());}function Je(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"hard-drives"),Hl());}function Xe(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"jar"),Hl());}function je(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"envelope"),Hl());}function qe(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"textbox"),Hl());}function Qe(t,i){if(t&1){let e=gT();Qi(0,"sh-form-field")(1,"label",39),ig(2,Ue,1,0,"ng-container",36)(3,Ke,1,0,"ng-container",41),Hl(),Qi(4,"input",42),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),oT(5,He,2,0,"sh-icon",38)(6,Je,2,0,"sh-icon",38)(7,Xe,2,0,"sh-icon",38)(8,je,2,0,"sh-icon",38)(9,qe,2,0,"sh-icon",38),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(10,V,ZC(8,I,e.FormView))),DE(),gg("type",e.FormView.type==="Email"?"email":"text")("id",n)("ngModel",e.Value()),TD(),DE(),iT(e.FormView.type==="Path"?5:e.FormView.type==="Hostname"?6:e.FormView.type==="Bucketname"?7:e.FormView.type==="Email"?8:9);}}function We(t,i){t&1&&Ig(0);}function Ye(t,i){t&1&&Ig(0);}function Ze(t,i){if(t&1){let e=gT();Qi(0,"sh-icon",45),Fg("click",function(){Sd(e);let n=nC(2).$implicit;return xd(n.showPassword=!n.showPassword)}),PC(1," eye "),Hl();}}function et(t,i){if(t&1){let e=gT();Qi(0,"sh-icon",45),Fg("click",function(){Sd(e);let n=nC(2).$implicit;return xd(n.showPassword=!n.showPassword)}),PC(1," eye-slash "),Hl();}}function tt(t,i){if(t&1){let e=gT();Qi(0,"sh-form-field")(1,"label",39),ig(2,We,1,0,"ng-container",36)(3,Ye,1,0,"ng-container",41),Hl(),Qi(4,"input",43),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Qi(5,"sh-icon",38),PC(6,"password"),Hl(),oT(7,Ze,2,0,"sh-icon",44)(8,et,2,0,"sh-icon",44),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(10,V,ZC(8,I,e.FormView))),DE(),gg("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),TD(),DE(3),iT(e.showPassword?7:8);}}function nt(t,i){t&1&&Ig(0);}function it(t,i){t&1&&Ig(0);}function ot(t,i){if(t&1&&PC(0),t&2){let e=i.$implicit;Gl(" ",e," ");}}function at(t,i){if(t&1){let e=gT();Qi(0,"sh-select",46)(1,"label",39),ig(2,nt,1,0,"ng-container",36)(3,it,1,0,"ng-container",41),Hl(),Qi(4,"input",40),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl(),ig(5,ot,1,1,"ng-template",null,3,sb);}if(t&2){let e=uC(6),o=nC().$implicit,n=uC(3),a=$C(0);nC(2);let c=uC(10);gg("options",o.FormView.options)("isClearable",false)("optionTemplate",e),DE(),gg("for",a),DE(),gg("ngTemplateOutlet",n),DE(),gg("ngTemplateOutlet",c)("ngTemplateOutletContext",ZC(11,V,ZC(9,I,o.FormView))),DE(),gg("id",a)("ngModel",o.Value()),TD();}}function rt(t,i){t&1&&Ig(0);}function lt(t,i){t&1&&Ig(0);}function _t(t,i){if(t&1){let e=gT();Qi(0,"app-size",47),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Qi(1,"label",39),ig(2,rt,1,0,"ng-container",36)(3,lt,1,0,"ng-container",41),Hl()(),DD();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);gg("inputType",e.Name)("ngModel",e.Value())("customId",n),TD(),DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(9,V,ZC(7,I,e.FormView)));}}function st(t,i){t&1&&Ig(0);}function pt(t,i){t&1&&Ig(0);}function ct(t,i){if(t&1){let e=gT();Qi(0,"sh-form-field")(1,"label",39),ig(2,st,1,0,"ng-container",36)(3,pt,1,0,"ng-container",41),Hl(),Qi(4,"input",48),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Qi(5,"sh-icon",38),PC(6,"numpad"),Hl()();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(8,V,ZC(6,I,e.FormView))),DE(),gg("id",n)("ngModel",e.Value()),TD();}}function mt(t,i){t&1&&Ig(0);}function dt(t,i){t&1&&Ig(0);}function ut(t,i){if(t&1){let e=gT();Qi(0,"sh-toggle",30)(1,"label",39),ig(2,mt,1,0,"ng-container",36)(3,dt,1,0,"ng-container",41),Hl(),Qi(4,"input",49),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(8,V,ZC(6,I,e.FormView))),DE(),gg("id",n)("ngModel",e.Value()),TD();}}function Ct(t,i){t&1&&Ig(0);}function gt(t,i){t&1&&Ig(0);}function ft(t,i){if(t&1&&PC(0),t&2){let e=i.$implicit;Gl(" ",e," ");}}function yt(t,i){if(t&1){let e=gT();Qi(0,"sh-select",50)(1,"label",39),ig(2,Ct,1,0,"ng-container",36)(3,gt,1,0,"ng-container",41),Hl(),Qi(4,"input",51),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl(),ig(5,ft,1,1,"ng-template",null,4,sb);}if(t&2){let e=uC(6),o=nC().$implicit,n=uC(3),a=$C(0);nC(2);let c=uC(10);gg("options",o.FormView.options)("selectMultiple",true)("optionTemplate",e),DE(),gg("for",a),DE(),gg("ngTemplateOutlet",n),DE(),gg("ngTemplateOutlet",c)("ngTemplateOutletContext",ZC(10,V,ZC(8,I,o.FormView))),DE(),gg("ngModel",o.Value()),TD();}}function Tt(t,i){t&1&&Ig(0);}function xt(t,i){t&1&&Ig(0);}function St(t,i){if(t&1){let e=gT();Qi(0,"app-timespan",47),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Qi(1,"label",39),ig(2,Tt,1,0,"ng-container",36)(3,xt,1,0,"ng-container",41),Hl()(),DD();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);gg("inputType",e.Name)("ngModel",e.Value())("customId",n),TD(),DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(9,V,ZC(7,I,e.FormView)));}}function Ot(t,i){if(t&1){let e=gT();cm(0)(1),ig(2,De,6,5,"ng-template",null,2,sb),Qi(4,"div",25),oT(5,Ge,13,3,"div",26)(6,Be,4,11,"app-file-tree",27)(7,ze,3,6,"app-file-tree",28)(8,Qe,10,12,"sh-form-field")(9,tt,9,12,"sh-form-field")(10,at,7,13)(11,_t,4,11,"app-size",29)(12,ct,7,10,"sh-form-field")(13,ut,5,10,"sh-toggle",30)(14,yt,7,12)(15,St,4,11,"app-timespan",29),Qi(16,"button",31),Fg("click",function(){let n=Sd(e).$implicit,a=nC(2);return xd(a.removeSetting(n))}),Qi(17,"sh-icon"),PC(18,"x-bold"),Hl()()();}if(t&2){let e=i.$implicit,o=i.$index,n=nC(2);BC("destination-"+e.Name+o),DE(),BC(n.inAppOptions(e.Name)),DE(3),Qg("align-remove-start",e.FormView.type==="FolderTree"||e.FormView.type==="FileTree"||e.FormView.type==="Boolean"),DE(),iT(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"||e.FormView.type==="Email"||e.FormView.type==="Hostname"||e.FormView.type==="Bucketname"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1);}}function Ft(t,i){if(t&1&&(oT(0,Ee,2,0,"div",24),cT(1,Ot,19,5,null,null,sT)),t&2){let e=nC();iT(e.selectedSettings().length===0?0:-1),DE(),lT(e.selectedSettings());}}function ht(t,i){if(t&1&&(Qi(0,"sh-icon",52),PC(1,"x-circle"),Hl()),t&2){nC();let e=$C(0);gg("shTooltip",e?.message??"Invalid value");}}function wt(t,i){if(t&1&&(Qi(0,"sh-icon",34),PC(1,"warning"),Hl()),t&2){nC();let e=$C(0);gg("shTooltip",e?.message??"Invalid value");}}function Lt(t,i){if(t&1&&(cm(0),oT(1,ht,2,1,"sh-icon",52)(2,wt,2,1,"sh-icon",34)),t&2){nC();let e=$C(0),o=nC().$implicit,n=BC(o.formView.validate(e));DE(),iT(n?.type==="error"?1:n?.type==="warning"?2:-1);}}function It(t,i){if(t&1&&(cm(0),oT(1,Lt,3,2)),t&2){let e=nC().$implicit,n=(BC(e.Value())??"").toString().trim()==="";DE(),iT(!n&&e.formView.validate?1:-1);}}function Vt(t,i){if(t&1&&oT(0,It,2,2),t&2){let e=i.$implicit;iT(e.Value?0:-1);}}var Oe=class t{#e=T(m);options=m1.required();hiddenOptions=g1([]);hasFreeTextSettings=g1(false);applicationOptions=g1();showTextArea=Ue$1(false);showOptionNames=Ue$1(false);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=Nt(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let a=this.allOptions().find(L=>L.name===n.Name?.replace("--","")),c=n.Value??"";if(a&&i.includes(a.name))return null;if(a){if(a.type==="Boolean"&&(c=this.isTrue(c)),a.type==="Integer"&&(c=parseInt(c)||0),a.type==="Enumeration"&&a.options){let M=c?.trim().toLowerCase(),q=a.options.find(Fe=>(Fe??"").trim().toLocaleLowerCase()===M);q&&(c=q);}let L=Se.find(M=>M.name===a?.name);return L&&(a=l(l({},a),L)),m$1(l({},n),{Value:Ue$1(c),FormView:a})}else if(this.hasFreeTextSettings())return m$1(l({},n),{Value:Ue$1(c),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=Nt(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>m$1(l({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=Nt(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
2
- `));updateSettingsFromText(i){if(typeof i!="string")return;let e=Ge$1(i);this.options.update(()=>e);}isTrue(i){if(typeof i=="boolean")return i;if(typeof i=="string"){let e=i.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return false}inAppOptions(i){let e=this.applicationOptions()?.findIndex(o=>o.Name?.replace("--","")===i);return e===void 0?false:e>-1}addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(i=>[...i,{Filter:null,Name:"",Value:""}]);}addSetting(i){this.options.update(e=>{let o=i.defaultValue??"";return i.type==="Boolean"&&(o=this.isTrue(o)),i.type==="Integer"&&(o=parseInt(o)||0),[...e,{Name:i.name,Value:o}]});}updateSettingValue(i,e){this.options.update(o=>{let n=[...o],a=n.findIndex(c=>c.Name===i.Name);if(i.FormView.type==="Boolean")return n[a].Value=this.isTrue(e)?"True":"False",n;if(i.FormView.type==="Integer")return n[a].Value=e.toString(),n;if(i.FormView.type==="Enumeration"&&i.FormView.options){let c=e?.trim().toLowerCase()??"",L=i.FormView.options.find(M=>(M??"").trim().toLocaleLowerCase()===c);if(L)return n[a].Value=L,n}return n[a].Value=e,n});}updateFreeTextSettingName(i,e){this.options.update(o=>{let n=[...o],a=n.findIndex(c=>c.Name===i.Name);return n[a].Name=e,n});}removeSetting(i){this.options.update(e=>e.filter(o=>o.Name!==i.Name));}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"],applicationOptions:[1,"applicationOptions"]},outputs:{options:"optionsChange"},decls:11,vars:4,consts:()=>{let i;i=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:pen${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: New custom option `;let a;a=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Toggle option names `;let c;return c=$localize`By adding this option it will override the matching global option`,[["validateTemplate",""],["option",""],["defaultLabel",""],["enumOptionTemplate",""],["optionTemplate",""],i,e,o,n,a,[3,"disableToggle","isActive"],["title",""],[1,"actions"],["shButton","","type","button",1,"outlined","small"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["menu",""],["type","button",3,"deprecated"],["type","button",3,"click"],[1,"option-col"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"placeholder"],[1,"field-row"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles","hideShortcuts","resolvePaths"],[3,"startingPath","hideShortcuts","resolvePaths"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["shButton","","type","button",1,"outlined","small","remove-btn",3,"click"],["shTooltip",c,1,"error"],[1,"optionname"],[1,"warn",3,"shTooltip"],[1,"primary",3,"shTooltip"],[4,"ngTemplateOutlet"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],["type","text",3,"ngModelChange","id","ngModel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngModelChange","type","id","ngModel"],["autocomplete","new-password",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"],[1,"error",3,"shTooltip"]]},template:function(e,o){e&1&&(Qi(0,"sh-toggle-card",10),Ul(1,11)(2),XT(3,5),Wl(),Qi(4,"div",12),oT(5,we,3,0,"button",13)(6,Ne,8,2),Hl(),Wl(),oT(7,be,1,3,"textarea",14)(8,Ft,3,1),Hl(),ig(9,Vt,1,1,"ng-template",null,0,sb)),e&2&&(gg("disableToggle",true)("isActive",true),DE(5),iT(o.showTextArea()?5:6),DE(2),iT(o.showTextArea()?7:8));},dependencies:[Bn,Ze$1,en,yt$1,Rn,Jt,Se$1,mt$1,_t$1,ei,I$1,Fe,v,ve$1,at$1,N,Nt$1,J],styles:["[_nghost-%COMP%]{display:block}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}sh-toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-9);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;position:relative;z-index:1;max-width:32.5rem;width:100%}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{max-width:28rem;width:100%}.field-row.align-remove-start[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-start}.option-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.option-col[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{color:var(--base-12)}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}.deprecated[_ngcontent-%COMP%]{text-decoration:line-through}.optionname[_ngcontent-%COMP%]{font-family:monospace}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"]})};export{Oe as OptionsListComponent};
package/chunk-Dh6x3lXP.js DELETED
@@ -1,2 +0,0 @@
1
- import {J}from'./chunk-khm9J_G0.js';import {c}from'./chunk-wyNyzSXi.js';import {F as Fe,P as Pe}from'./chunk-CegwkGVu.js';import {N as Nt$2}from'./chunk-CT9ziigM.js';import {v as ve}from'./chunk-D5lj-fQk.js';import {x}from'./chunk-D6aNT_wo.js';import {T,ab as C,m,a6 as be,b as g1,ac as h1,U as Ue,B as y1,N as Nt$1,ai as m$1,aj as l,G as Ga,at as h,aG as pt,a$ as Vs,b0 as ty,bJ as vy,C as Bu,d as dw,v,f as N,a0 as de,bZ as ei,u as ue,aH as m$2,L as oC,o as oT,Q as Qi,Y as iC,bf as ig,H as Hl,c2 as uC,i as iT,D as DE,I as Qg,z as gg,a_ as ZC,$ as $g,K as lC,s as sm,l as HC,p as DD,aC as hg,w as im,y as TD,ag as zg,aD as zC,X as XT,aP as Ul,a1 as cT,aQ as Wl,au as Lg,av as eC,a2 as lT,c3 as Bs,ay as $u,k as gT,S as Sd,n as nC,x as xd,j as mg,b_ as Ig,F as Fg,q as PC,E as nm,O as Og,P as Pg,a3 as QC,aB as rm,ap as sT,aM as tb,aa as Gl,aS as ib,aF as YC,ar as Wp,c4 as sb}from'./main-KFKZO6SJ.js';import {d}from'./chunk-CRAg6SRo.js';import {F as Fe$1}from'./chunk-DuIUmwWN.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-DipTNkHN.js';import {$}from'./chunk-C7pjkqKB.js';var Pt=["treeContainer"],Mt=["formRef"],Et=[[["label"]],[["label"]],[["input"]]],Tt=["label","label","input"],ct=["ngProjectAs","label",5,["label"]],yt=["ngProjectAs","input",5,["input"]],bt=r=>({children:r,level:0}),ht=r=>({$implicit:r}),St=(r,t)=>({children:r,level:t}),Nt=()=>({maxWidth:"700px",width:"100%"}),vt=(r,t)=>t.id;function Ot(r,t){if(r&1){let e=gT();Qi(0,"sh-button-group",22),sm("valueChange",function(i){Sd(e);let o=nC();return HC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),xd(i)}),Qi(1,"button",23),XT(2,4),Hl(),Qi(3,"button",24),XT(4,5),Hl()();}if(r&2){let e=nC();im("value",e.pathDiscoveryMethod);}}function Ft(r,t){r&1&&mg(0,"sh-progress-bar",14);}function Rt(r,t){r&1&&(Qi(0,"sh-icon",30),PC(1,"caret-down"),Hl());}function xt(r,t){r&1&&mg(0,"sh-icon",30);}function Dt(r,t){r&1&&(Qi(0,"sh-icon",30),PC(1,"spinner"),Hl());}function wt(r,t){r&1&&(Qi(0,"sh-icon",30),PC(1,"caret-right"),Hl());}function It(r,t){if(r&1&&mg(0,"img",31),r&2){let e=nC(3).$implicit;gg("src",e.customIcon,Wp);}}function Lt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"folder-open"),Hl());}function At(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"folder-user"),Hl());}function kt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"file"),Hl());}function Bt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"folder"),Hl());}function $t(r,t){if(r&1&&(oT(0,Rt,2,0,"sh-icon",30)(1,xt,1,0,"sh-icon",30)(2,Dt,2,0,"sh-icon",30)(3,wt,2,0,"sh-icon",30),oT(4,It,1,1,"img",31)(5,Lt,2,0,"sh-icon",27)(6,At,2,0,"sh-icon",27)(7,kt,2,0,"sh-icon",27)(8,Bt,2,0,"sh-icon",27)),r&2){let e=nC(2).$implicit,n=nC(2);iT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),DE(4),iT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Wt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"desktop-tower"),Hl());}function Vt(r,t){if(r&1&&(Qi(0,"span",29),PC(1),tb(2,"bytes"),Hl()),r&2){let e=nC(2).$implicit;DE(),Gl("\xA0(",ib(2,1,e.fileSize,true,true),")");}}function Gt(r,t){r&1&&Ig(0);}function zt(r,t){if(r&1&&ig(0,Gt,1,0,"ng-container",15),r&2){let e=nC(2).$implicit,n=nC().$implicit;nC();let i=uC(7);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,ht,YC(2,St,e.children,n.level+1)));}}function jt(r,t){if(r&1){let e=gT();Qi(0,"div",25,3),Fg("click",function(i){Sd(e);let o=nC().$implicit,s=nC(2);return xd(s.toggleSelectedNode(i,o))}),Qi(2,"div",26),Fg("click",function(i){Sd(e);let o=nC().$implicit,s=nC(2);return xd(s.toggleNode(i,o.id,o))}),oT(3,$t,9,2)(4,Wt,2,0,"sh-icon",27),Hl(),Qi(5,"div",28)(6,"span"),PC(7),Hl(),oT(8,Vt,3,5,"span",29),Hl()(),oT(9,zt,1,7,"ng-container");}if(r&2){let e=nC().$implicit,n=nC().$implicit,i=nC();Qg("accepted",e.accepted===true)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id)("generated",e.isGenerated)("search-match",e.isSearchMatch),DE(2),Qg("file",e.cls==="file"),DE(),iT(e.id!=="/"?3:4),DE(4),nm(e.text),DE(),iT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),DE(),iT(e.children.length>0?9:-1);}}function Ht(r,t){if(r&1&&oT(0,jt,10,24),r&2){let e=t.$implicit,n=nC(2);iT(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1);}}function Ut(r,t){if(r&1&&(Qi(0,"sh-list"),cT(1,Ht,1,1,null,null,vt),Hl()),r&2){let e=t.$implicit;zg("padding-left",e.level*.25,"rem"),DE(),lT(e.children);}}function Jt(r,t){r&1&&Ig(0);}function Xt(r,t){if(r&1){let e=gT();Qi(0,"sh-toggle",32),sm("checkedChange",function(i){Sd(e);let o=nC();return HC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),xd(i)}),XT(1,6),Hl();}if(r&2){let e=nC();im("checked",e._showHiddenNodes),DE(),Lg(e.showFiles()?"files":"folders"),eC(1);}}function qt(r,t){if(r&1){let e=gT();Qi(0,"button",33),Fg("click",function(){Sd(e);let i=nC();return xd(i.openCreateFolderDialog())}),XT(1,7),Hl();}if(r&2){let e=nC();gg("disabled",!e.isCurrentPathFolder());}}function Kt(r,t){if(r&1&&(Qi(0,"sh-alert",20),PC(1),Hl()),r&2){let e=nC();gg("color","error"),DE(),nm(e.errorMessage());}}function Qt(r,t){if(r&1){let e=gT();Qi(0,"sh-dialog",34),sm("isOpenChange",function(i){Sd(e);let o=nC();return HC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),xd(i)}),Qi(1,"header",35)(2,"h2"),XT(3,8),Hl()(),Qi(4,"div",36)(5,"div",37)(6,"p"),XT(7,9),Hl(),Qi(8,"div",38)(9,"pre"),PC(10),Hl()()(),Qi(11,"sh-form-field")(12,"textarea",39),sm("ngModelChange",function(i){Sd(e);let o=nC();return HC(o.createFolderPath,i)||(o.createFolderPath=i),xd(i)}),Hl(),DD(),Hl()(),Qi(13,"footer",40)(14,"button",41),Fg("click",function(){Sd(e);let i=nC();return xd(i.closeCreateFolderDialog(false))}),PC(15,"Cancel"),Hl(),Qi(16,"button",42),Fg("click",function(){Sd(e);let i=nC();return xd(i.closeCreateFolderDialog(true))}),Og(17,10),mg(18,"sh-icon"),Pg(),Hl()()();}if(r&2){let e=nC();im("isOpen",e.createFolderDialogOpen),gg("options",QC(6,Nt)),DE(10),rm("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),DE(2),im("ngModel",e.createFolderPath),TD(),DE(4),gg("disabled",!e.createFolderPath()?.length);}}var gt=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(gt||{}),b="/",ne=true,Se=class r{#e=T(C);#t=T(m);#b=T(be);multiSelect=g1(false);disabled=g1(false);showFiles=g1(false);selectFiles=g1(false);onlySelectFolder=g1(false);accepts=g1(null);startingPath=g1(null);rootPaths=g1([]);initialNodes=g1([]);backupSettings=g1(null);pathRefreshTrigger=g1(false);showHiddenNodes=g1(false);enableCreateFolder=g1(false);hideShortcuts=g1(false);resolvePaths=g1(false);customRemoteMode=g1(null);showUnrootedSources=g1(false);backupId=g1("");connectionStringId=g1(null);sourcePrefix=g1("");destinationUrl=g1("");loadExtendedData=g1(true);hasExtendedData=h1();searchMode=g1(false);searchResults=g1([]);_showHiddenNodes=Ue(false);createFolderDialogOpen=Ue(false);createFolderPath=Ue(null);errorMessage=Ue(null);anyRemoteSourcesLoaded=Ue(false);treeContainerRef=y1("treeContainer");formRef=y1("formRef");pathDiscoveryMethod=Ue("browse");isLoading=Ue(null);currentPath=Ue("");#p=Ue(null);treeSearchQuery=Ue("");treeNodes=Ue([]);pathDelimiter=Nt$1(()=>this.#t.systemInfo()?.DirectorySeparator??"");#r=Nt$1(()=>this.currentPathArray().filter(e=>this.#i(e)).find(e=>e.includes("*")||e.includes("[")||e.includes("{")||e.includes("?"))&&this.#t.hasV2FilterOperations());filterGroups=this.#t.filterGroups();isByBackupSettings=Nt$1(()=>{let t=this.backupSettings();return !(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=Nt$1(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});currentPathArray=Nt$1(()=>this.currentPath().split("\0").filter(t=>t!==""&&t!==b));currentPathResolved=Nt$1(()=>this.currentPathArray().map(e=>{let n=this.treeNodes().find(i=>i.id===e)?.resolvedpath??e;return this.#t.resolveShorthandPath(n)}).join("\0"));#l(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],s=e[2]??"";return o==="diskimage"&&!s&&(s=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:s}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[b]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#l(n);return i?{id:n,path:i.mount,displayName:Pe(i.url),icon:Fe(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#c(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#l(e);return n?this.#s(n.mount):e})}TreeEvalEnum=gt;#S=Nt$1(()=>{if(!this.#r())return null;let t=this.#c(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#S()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?ty(null):Bs(300).pipe($u(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt(e=>{if(!e.Success||!e.Data)return console.log("Error evaluating filters",e),null;let n=new Map;for(let i of e.Data)if(i.Path){let o=0;i.Included?o=1:i.MatchedFilter&&(o=-1),n.set(i.Path,o);}return n}),Vs(()=>ty(null)))))});searchResultTreeStructure=Nt$1(()=>{let t=this.searchResults();if(t.length===0)return [];let e=this.currentPathArray(),n=this.showHiddenNodes(),i=new Map;for(let a of t){let l=a.Path??"",C=this.#a(l),T=l.split(C).filter(M=>M!==""),P="";for(let M=0;M<T.length;M++){let w=T[M],I=M===T.length-1,U=!I||this.#n(l),ft=P||b,Ne=P?P.endsWith(C)?P.slice(0,-C.length):P:"";if(P=Ne?`${Ne}${C}${w}`:`${C}${w}`,U&&!P.endsWith(C)&&(P+=C),!i.has(P))i.set(P,{part:w,parentPath:ft,isFolder:U,match:I?a:null});else if(I){let Ct=i.get(P);Ct.match=a;}}}let o=new Map;for(let[a,l]of i)o.has(l.parentPath)||o.set(l.parentPath,[]),o.get(l.parentPath).push(a);let s=new Set,u=new Map;for(let[a,l]of i){if(!l.isFolder){s.add(a);continue}let C=o.get(l.parentPath)||[];if(C.length===1&&C[0]===a&&l.parentPath!==b)continue;s.add(a);let P=l.part,M=a;for(;;){let w=o.get(M)||[];if(w.length!==1)break;let I=w[0],U=i.get(I);if(!U||!U.isFolder)break;P+="/"+U.part,M=I;}M!==a&&u.set(a,P);}s.add(b);let g=[],c=new Map,d=Array.from(s).filter(a=>a!==b).sort((a,l)=>a.split("/").length-l.split("/").length||a.localeCompare(l));for(let a of d){let l=i.get(a);if(!l)continue;let C=l.parentPath;for(;C!==b&&!s.has(C);)C=i.get(C)?.parentPath||b;if(c.has(a))continue;let T=this.#g(u.get(a),l.match?.Metadata)??l.part,P=l.match===null,M=l.match!==null&&!l.isFolder&&n?0:this.#r()?this.#h(a,null,e,l.isFolder?"folder":"file"):this.#d(e,a,l.isFolder?"folder":"file",null),w={id:a,resolvedpath:a,text:T,parentPath:C,children:[],evalState:M,isIndeterminate:this.isIndeterminate(e,a),cls:l.isFolder?"folder":"file",isSearchMatch:l.match!==null,isGenerated:P,hasChildrenInSearch:(o.get(a)?.length||0)>0,iconCls:null,check:false,leaf:!l.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:l.match?.Size??0};if(c.set(a,w),C===b)g.push(w);else {let I=c.get(C);I&&I.children.push(w);}}let E=a=>{a.sort((l,C)=>l.cls==="folder"&&C.cls!=="folder"?-1:l.cls!=="folder"&&C.cls==="folder"?1:(l.text??"").localeCompare(C.text??"")),a.forEach(l=>E(l.children));};return E(g),g});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#N(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),s=this.accepts(),u=[];o.length>0?u=o.map(c=>{let d=this.#r()?this.#h(c,null,n,"folder"):this.#d(n,c,"folder",null);return {id:c,resolvedpath:c,text:c,parentPath:"",children:[],evalState:d,isIndeterminate:false,cls:this.#n(c)?"folder":"file"}}):u=[{id:b,resolvedpath:b,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let g=this.#m().map(c=>({id:c.path,resolvedpath:c.path,remoteSource:this.#l(c.id),text:c.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:c.icon}));return u=[...u,...g],u.map(c=>{let d=new Map;if(!c.id)return;let E=c.id;s&&(c.accepted=true),d.set(E,c);let a=o.length>0?i.filter(l=>l.parentPath.startsWith(E)):i;for(let l$1 of a){if(!l$1.id)continue;let C=l$1.id;if(!l$1.cls||d.has(C))continue;let T=d.get(l$1.parentPath),P=l$1.hidden===true&&!e?0:this.#r()?this.#h(C,T,n,l$1.cls):this.#d(n,C,l$1.cls,T),M=m$1(l({},l$1),{isIndeterminate:this.isIndeterminate(n,C),evalState:P,children:[]});s&&(M.accepted=this.matchAccepts(s,M)),d.set(C,M),M.id?.startsWith("%")&&M.id?.endsWith("%")&&d.set(this.#s(C),M),T&&T.children.push(M);}return c}),u});#N(t){let e=structuredClone(t);for(let n=0;n<e.length;n++){let o=e[n].slice(1);if(o.startsWith("{")&&o.endsWith("}")){let s=o.slice(1,-1),u=this.filterGroups?.FilterGroups?.[s];if(u&&u.length){let g=u.map(c=>`-${c}`);e.splice(n,1,...g);}}}return e}#s(t){if(!t)return b;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===b?t:t+e}#f(t){return t?.id?!this.resolvePaths()||!t.resolvedpath?t.id:t.id.startsWith("%")&&t.id.endsWith("%")?this.#s(t.resolvedpath):t.resolvedpath:null}#h(t,e,n,i){if(e&&e.evalState===-1)return -2;let o=this.#_.value();return o&&o.has(t)?o.get(t):this.#d(n,t,i,e)}#d(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,s=this.#c(t.filter(d=>!this.#i(d))),u=t.filter(d=>this.#i(d)),g=this.multiSelect(),c=this.#f(this.treeNodes().find(d=>d.id===e))??e;if(s.length===0)return o;for(let d=0;d<s.length;d++){let E=s[d];if(e===E||c==E){o=1;break}if(!g||!this.#n(E))continue;if(e?.startsWith(E)||c?.startsWith(E)){o=1;break}}if(u.length===0)return o;for(let d=0;d<u.length;d++){let E=u[d],a=E.slice(1),l=E.startsWith("-")?-1:1;if(this.#n(a)){if(n!=="folder")continue;if(e===a||c==a){o=l;break}}if(a.startsWith("*")&&(a.endsWith("*\\")||a.endsWith("*/"))){if(n!=="folder")continue;let T=a.slice(1,-2);if(T==="")break;if(e?.includes(T+"\\")||e?.includes(T+"/")){o=l;break}}if(a.startsWith("[.*")&&(a.endsWith("[^\\/]*]")||a.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let T=a.slice(3,-7);if(new RegExp(T).test(e)){o=l;break}}if(a.startsWith("[")&&a.endsWith("]")){let T=a.slice(1,-1),P=this.translateCSharpRegex(T);if(new RegExp(`${P}`).test(e)){o=l;break}}if(a.startsWith("*.")){if(n!=="file"||a.replace("*.","").length===0)continue;if(this.#C(e,a,true)){o=l;break}}if(a==="")continue;if(a===e){o=l;break}if(this.#C(e,a,true)){o=l;break}}return o}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(i,o,s)=>`(${s})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#n(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):false}#C(t,e,n=false){let i=e.replace(/[\\.+^${}()|[\]*?]/g,s=>s==="*"?".*":s==="?"?".":"\\"+s);return new RegExp(`${i}${n?"$":""}`).test(t)}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=Ga(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=Ga(()=>{let t=this.pathDiscoveryMethod(),e=this.#p();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n);}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===b)return true;let n=t.split(",");if(n.length===0)return true;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):false}currentPathEffect=Ga(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=Ga(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#v(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value);},{signal:this.inputValueChangeAbortController.signal}),this.#p.set(t),t.autocomplete="off");});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#R(t);else {let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#g(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#u(null,e[0])):this.#u(null,b);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?b:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.id===b||this.#m().map(d=>this.#l(d.id)?.mount).filter(d=>d).includes(e.id??"")||(t.stopPropagation(),this.searchMode()&&!e.isSearchMatch)||e.evalState===-2)return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(t,e.id,e);return}if(this.onlySelectFolder()&&e.cls!=="folder"||this.accepts()&&!e.accepted)return;let i=this.currentPathArray(),o=this.#c(i),s=this.isChildOfSelected(e),u=this.#f(e),g=s?`-${u}`:u,c=this.#n(u);if(this.multiSelect())if(o.includes(u))this.currentPath.set(i.filter(d=>d!==u&&!(c&&d.startsWith(g))).join("\0"));else if(o.some(d=>d==g))this.currentPath.set(i.filter(d=>d!==g).join("\0"));else {let d=c?i.filter(E=>!E.startsWith(u)):i;this.currentPath.set([...d,g].join("\0"));}else i.includes(u)?this.currentPath.set(i.filter(d=>d!==u).join("\0")):this.currentPath.set(u);}isChildOfSelected(t){return this.#c(this.currentPathArray()).filter(n=>this.#n(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e,n=null){t.stopPropagation(),n?.cls==="folder"&&(n?.children.length?this.treeNodes.update(i=>i.filter(o=>!o.id?.startsWith(n.id)||o.id===n.id)):this.#u(n,e));}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(true),false}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolved(),o=this.#s(e),s=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+s}}).subscribe({next:()=>{this.currentPath.set(s),this.#u(null,n),setTimeout(()=>{this.#P();},500),this.createFolderDialogOpen.set(false);},error:u=>{let g=u?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),c=g?g[1]:u?.message||$localize`An error occurred while trying to create the folder.`;this.#b.open(h,{data:{title:$localize`Cannot create folder`,message:c,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#P(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#v(t){return Object.defineProperty(t,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:e}})),e}}),t}#O(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n){return this.#e.postApiV2DestinationList({requestBody:{BackupId:this.backupId()??null,DestinationUrl:e?.url??this.destinationUrl()??null,ConnectionStringId:this.connectionStringId()??null,DestinationType:n,SourcePrefix:e?.prefix??this.sourcePrefix()??null,Path:t,Offset:null,Limit:null}}).pipe(pt(i=>(i.Data?.Items??[]).map(o=>m$1(l({},o),{Path:(e?.prefix??"")+o.Path})).filter(o=>o.Metadata==null||!o.Metadata.ExtType)))}#M(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#E(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#T(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#F(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(pt(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:false,folderContents:true,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(pt(i=>i.Files??[]))}}#y(t,e){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(e.path,e,"SourceProvider"):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(t,null,"SourceProvider"):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(e.path,e,"SourceProvider"):this.#E(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(t,null,"SourceProvider"):this.#E(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(e.path,e,"SourceProvider"):this.#T(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(t,null,"SourceProvider"):this.#T(t):this.isByBackupSettings()?this.#F(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend"):this.#O(t)}#R(t){let n=t.split("\0").filter(s=>!this.#i(s)&&!s.startsWith("@")).filter(Boolean).map(s=>{let u=this.#a(s),g=s.split(u);return g.at(-1)===""&&g.pop(),this.#n(s)||g.pop(),{split:g,sep:u}}),i=[b];n.forEach(({split:s,sep:u})=>{s.forEach((g,c)=>{let d=s.slice(0,c+1).join(u)+u;d===""||d===u||i.includes(d)||i.push(d);});});let o=i.map(s=>(this.isLoading.set(s),this.#y(s,null).pipe(pt(u=>({status:"success",value:u,url:s})),Vs(u=>ty({status:"error",value:u,url:s})))));vy(o).pipe(Bu(()=>this.isLoading.set(null))).subscribe({next:s=>{let u=s.filter(c=>c.status==="success");s.filter(c=>c.status==="error");this.treeNodes.update(c=>{let d=u.flatMap(a=>Array.isArray(a.value)?a.value.map(l$1=>m$1(l({},l$1),{parentPath:a.url})):[]);d.length>0&&this.anyRemoteSourcesLoaded.set(true);let E=[...new Map([...c,...d].map(a=>[a.id,a])).values()];return this.#P(),this.hideShortcuts()?E.filter(a=>!a.id.startsWith("%")):E});}});}#g(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#x(t){t&&t.ExtType&&t.ExtType.length>0&&this.hasExtendedData.emit(t.ExtType);}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#u(t=null,e=b){let n=t?.remoteSource;this.isLoading.set(e),this.#y(e,n).pipe(Bu(()=>this.isLoading.set(null))).subscribe({next:i=>{let o=this.isByBackupSettings()||this.customRemoteMode()!==null||n?i.map(s=>{this.#x(s.Metadata);let u=this.#a(s.Path),g=this.#g(s.Path.split(u).filter(E=>E!=="").pop(),s.Metadata);if(s.Metadata&&s.Metadata["diskimage:Type"]==="filesystem")return null;let c=s.Path,d=null;return n&&(c=s.Path.substring(1),d=m$1(l({},n),{path:s.Path.substring(n.prefix.length)})),{text:g,id:c,cls:this.#n(s.Path)?"folder":"file",leaf:t!==null,resolvedpath:s.Path,hidden:false,remoteSource:d,fileSize:s.Size}}):i;o.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(s=>{let u=o.filter(c=>c!==null).map(c=>{let d=this.#n(c.id)?"folder":"file";return m$1(l({},c),{cls:d,parentPath:e})}),g=[...new Map([...s,...u].map(c=>[c.id,c])).values()];return this.hideShortcuts()?g.filter(c=>!c.id.startsWith("%")):g});},error:i=>{this.errorMessage.set(i.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=dw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&$g(n.treeContainerRef,Pt,5)(n.formRef,Mt,5),e&2&&lC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Qg("disabled",n.disabled());},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],onlySelectFolder:[1,"onlySelectFolder"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],resolvePaths:[1,"resolvePaths"],customRemoteMode:[1,"customRemoteMode"],showUnrootedSources:[1,"showUnrootedSources"],backupId:[1,"backupId"],connectionStringId:[1,"connectionStringId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"],searchMode:[1,"searchMode"],searchResults:[1,"searchResults"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:Tt,decls:19,vars:18,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let s;s=$localize`Will be created as:`;let u;return u=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,s,u,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"color"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",3,"click"],[1,"icon",3,"click"],[1,"primary"],[1,"text"],[1,"size"],[1,"small"],["alt","Provider icon",1,"provider-icon",3,"src"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(oC(Et),oT(0,Ot,5,1,"sh-button-group",11),Qi(1,"div",12),iC(2,0,ct),Qi(3,"div",13,0),oT(5,Ft,1,0,"sh-progress-bar",14),ig(6,Ut,3,2,"ng-template",null,1,sb)(8,Jt,1,0,"ng-container",15),Hl(),Qi(9,"div",16),oT(10,Xt,2,2,"sh-toggle",17),oT(11,qt,2,1,"button",18),Hl()(),Qi(12,"div",19,2)(14,"sh-form-field"),iC(15,1,ct),iC(16,2,yt),Hl()(),oT(17,Kt,2,2,"sh-alert",20),oT(18,Qt,19,7,"sh-dialog",21)),e&2){let i=uC(7);iT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),DE(),Qg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),DE(2),Qg("visualize-accepted",n.accepts()),DE(2),iT(n.isLoading()!=null?5:-1),DE(3),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(16,ht,ZC(14,bt,n.treeStructure()))),DE(2),iT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),DE(),iT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),DE(),Qg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),DE(5),iT(n.errorMessage()?17:-1),DE(),iT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe$1,c,d,de,ei,Bn,Ze,Rn,Jt$1,ue,m$2],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;min-height:6.25rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--base-7)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(img:nth-child(2)){width:2.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .provider-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}']})};var Yt=[[["label"]],[["","prefix",""]],[["","suffix",""]]],Zt=["label","[prefix]","[suffix]"],en=["ngProjectAs","label",5,["label"]];function tn(r,t){if(r&1&&PC(0),r&2){let e=t.$implicit,n=nC();rm("",e.label,"",n.hasPerSecond()?"/s":"");}}var nn=["throttle-upload","throttle-download"],on=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],rn=r=>{if(!r||typeof r!="string"||r.length===0)return {size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},mt=class r{customId=g1();inputType=g1();timespan=Ue(0);unit=Ue("MB");sizeOptions=Ue(on);readonly=Ue(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&nn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=Ga(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=rn(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit);}):(this.timespan.set(0),this.unit.set("MB"));}else this.timespan.set(0),this.unit.set("MB");}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=dw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[zC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:Zt,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(oC(Yt),Qi(0,"div",0),iC(1,0,en),Hl(),Qi(2,"sh-form-field")(3,"input",1),sm("ngModelChange",function(o){return HC(n.timespan,o)||(n.timespan=o),o}),Hl(),DD(),iC(4,1),iC(5,2),Hl(),Qi(6,"sh-select",2)(7,"input",3),sm("ngModelChange",function(o){return HC(n.unit,o)||(n.unit=o),o}),Hl(),DD(),ig(8,tn,1,2,"ng-template"),Hl()),e&2&&(DE(2),hg("readonly",n.readonly()||void 0),DE(),gg("id",n.customId()),im("ngModel",n.timespan),gg("disabled",n.readonly()),TD(),DE(3),zg("--miw",0),gg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),DE(),im("ngModel",n.unit),TD());},dependencies:[Nt$2,Fe$1,Bn,Ze,en$1,Rn,Jt$1],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}']})};var sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1){let e=gT();Qi(0,"button",7),Fg("click",function(){let i=Sd(e).$implicit,o=nC();return xd(o.updateUnit(i.value))}),XT(1,1),Hl();}if(r&2){let e=t.$implicit;DE(),Lg(e.label),eC(1);}}var dn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],un=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],pn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],_t=class r{customId=g1();inputType=g1();timespan=Ue(0);#e="D";unit=Ue(this.#e);unitLabel=Nt$1(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=Nt$1(()=>{let t=this.inputType();return t&&pn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?dn:un);readonly=Ue(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=Ga(()=>{this.onChange(this.getValue());});inputTypeEffect=Ga(()=>{this.timeOptions();let e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e);});updateUnit(t){this.unit.set(t);}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e));}else this.timespan.set(0),this.unit.set(this.#e);}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=dw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[zC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(oC(sn),iC(0,0,ln),Qi(1,"sh-form-field")(2,"input",2),sm("ngModelChange",function(o){return HC(n.timespan,o)||(n.timespan=o),o}),Hl(),DD(),iC(3,1),iC(4,2),Hl(),Qi(5,"sh-menu",3)(6,"button",4),XT(7,0),Hl(),Ul(8,5),cT(9,cn,2,1,"button",6,sT),Wl(),Hl()),e&2&&(DE(),hg("readonly",n.readonly()||void 0),DE(),gg("id",n.customId()),im("ngModel",n.timespan),gg("disabled",n.readonly()),TD(),DE(3),gg("openIndicator",true),DE(2),Lg(n.unitLabel()),eC(7),DE(2),lT(n.timeOptions()));},dependencies:[ve,Fe$1,Bn,Ze,en$1,Rn,Jt$1,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}']})};
2
- export{Se as S,_t as _,mt as m,rn as r};
package/chunk-DipTNkHN.js DELETED
@@ -1 +0,0 @@
1
- import {ai as m$1,aj as l,bx as Kr,br as x$1,by as pw,bz as ad,b5 as mw,bA as oo,bB as yD,ae as Jr,b9 as rg,aD as zC,F as Fg,bC as Uv,I as Qg,bD as Ze$1,bE as Te,bF as Cv,bG as Iw,bH as D1,c as me$1,N as Nt$1,U as Ue$1,T,bI as fe,bJ as vy,aG as pt$1,bK as s,r as rt$1,bL as Z,G as Ga,bM as T1,bN as Ko,bO as D$1,bP as Pl,bQ as Ae$1,aC as hg}from'./main-KFKZO6SJ.js';var ze=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(oo(yD),oo(Jr))};static \u0275dir=mw({type:n})}return n})(),W=(()=>{class n extends ze{static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,features:[rg]})}return n})(),D=new x$1(""),_t={provide:D,useExisting:Ko(()=>yt),multi:true},yt=(()=>{class n extends W{writeValue(e){this.setProperty("checked",e);}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()});},standalone:false,features:[zC([_t]),rg]})}return n})(),Ct={provide:D,useExisting:Ko(()=>Ze),multi:true};function Vt(){let n=s()?s().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var Dt=new x$1(""),Ze=(()=>{class n extends ze{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Vt());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(oo(yD),oo(Jr),oo(Dt,8))};static \u0275dir=mw({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&Fg("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)});},standalone:false,features:[zC([Ct]),rg]})}return n})();function Ve(n){return n==null||De(n)===0}function De(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var b=new x$1(""),w=new x$1(""),bt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,me=class{static min(t){return At(t)}static max(t){return Mt(t)}static required(t){return Xe(t)}static requiredTrue(t){return Et(t)}static email(t){return Ft(t)}static minLength(t){return wt(t)}static maxLength(t){return Nt(t)}static pattern(t){return St(t)}static nullValidator(t){return J()}static compose(t){return tt(t)}static composeAsync(t){return nt(t)}};function At(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Mt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Xe(n){return Ve(n.value)?{required:true}:null}function Et(n){return n.value===true?null:{required:true}}function Ft(n){return Ve(n.value)||bt.test(n.value)?null:{email:true}}function wt(n){return t=>{let e=t.value?.length??De(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Nt(n){return t=>{let e=t.value?.length??De(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function St(n){if(!n)return J;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ve(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function J(n){return null}function Ye(n){return n!=null}function Ke(n){return Pl(n)?Ae$1(n):n}function Je(n){let t={};return n.forEach(e=>{t=e!=null?l(l({},t),e):t;}),Object.keys(t).length===0?null:t}function Qe(n,t){return t.map(e=>e(n))}function It(n){return !n.validate}function et(n){return n.map(t=>It(t)?t:e=>t.validate(e))}function tt(n){if(!n)return null;let t=n.filter(Ye);return t.length==0?null:function(e){return Je(Qe(e,t))}}function be(n){return n!=null?tt(et(n)):null}function nt(n){if(!n)return null;let t=n.filter(Ye);return t.length==0?null:function(e){let i=Qe(e,t).map(Ke);return vy(i).pipe(pt$1(Je))}}function Ae(n){return n!=null?nt(et(n)):null}function Ge(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function it(n){return n._rawValidators}function rt(n){return n._rawAsyncValidators}function ve(n){return n?Array.isArray(n)?n:[n]:[]}function Q(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ue(n,t){let e=ve(t);return ve(n).forEach(r=>{Q(e,r)||e.push(r);}),e}function He(n,t){return ve(t).filter(e=>!Q(n,e))}var ee=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=be(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ae(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[];}reset(t=void 0){this.control?.reset(t);}hasError(t,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},d=class extends ee{name;get formDirective(){return null}get path(){return null}};var j="VALID",K="INVALID",I="PENDING",B="DISABLED",V=class{},te=class extends V{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},U=class extends V{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},H=class extends V{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},O=class extends V{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},ne=class extends V{source;constructor(t){super(),this.source=t;}},F=class extends V{source;constructor(t){super(),this.source=t;}};function Me(n){return (le(n)?n.validators:n)||null}function Ot(n){return Array.isArray(n)?be(n):n||null}function Ee(n,t){return (le(t)?t.asyncValidators:n)||null}function xt(n){return Array.isArray(n)?Ae(n):n||null}function le(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function st(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new D$1(1e3,"");if(!at(i,e))throw new D$1(1001,"")}function ot(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new D$1(-1002,"")});}var x=class{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=Ue$1(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return me$1(this.statusReactive)}set status(t){me$1(()=>this.statusReactive.set(t));}_status=Nt$1(()=>this.statusReactive());statusReactive=Ue$1(void 0);get valid(){return this.status===j}get invalid(){return this.status===K}get pending(){return this.status===I}get disabled(){return this.status===B}get enabled(){return this.status!==B}errors;get pristine(){return me$1(this.pristineReactive)}set pristine(t){me$1(()=>this.pristineReactive.set(t));}_pristine=Nt$1(()=>this.pristineReactive());pristineReactive=Ue$1(true);get dirty(){return !this.pristine}get touched(){return me$1(this.touchedReactive)}set touched(t){me$1(()=>this.touchedReactive.set(t));}_touched=Nt$1(()=>this.touchedReactive());touchedReactive=Ue$1(false);get untouched(){return !this.touched}_events=new fe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t);}setAsyncValidators(t){this._assignAsyncValidators(t);}addValidators(t){this.setValidators(Ue(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(Ue(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators(He(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators(He(t,this._rawAsyncValidators));}hasValidator(t){return Q(this._rawValidators,t)}hasAsyncValidator(t){return Q(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(m$1(l({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new H(true,i));}markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new H(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(m$1(l({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new U(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new U(true,i));}markAsPending(t={}){this.status=I;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new O(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(m$1(l({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=B,this.errors=null,this._forEachChild(r=>{r.disable(m$1(l({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new te(this.value,i)),this._events.next(new O(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m$1(l({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=j,this._forEachChild(i=>{i.enable(m$1(l({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(m$1(l({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===I)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new te(this.value,e)),this._events.next(new O(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(m$1(l({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?B:j;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=I,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=Ke(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new O(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new Ze$1,this.statusChanges=new Ze$1;}_calculateStatus(){return this._allControlsDisabled()?B:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(I)?I:this._anyControlsHaveStatus(K)?K:j}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new U(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new H(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){le(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn);}_parentMarkedDirty(t){return !t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ot(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=xt(this._rawAsyncValidators);}_updateHasRequiredValidator(){me$1(()=>this._hasRequired.set(this.hasValidator(me.required)));}};function at(n,t){return Object.hasOwn(n,t)}function Rt(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Pt(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var _e=class{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};var kt=(()=>{class n{_validator=J;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):J,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=mw({type:n,features:[Cv]})}return n})();var Tt={provide:b,useExisting:Ko(()=>lt),multi:true};var lt=(()=>{class n extends kt{required;inputName="required";normalizeInput=T1;createValidator=e=>Xe;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&hg("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[zC([Tt]),rg]})}return n})();var jt=new x$1(""),N=new x$1("",{factory:()=>q}),q="always";function ue(n,t){return [...t.path,n]}function ie(n,t,e=q){Fe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Gt(n,t),Ht(n,t),Ut(n,t),Bt(n,t);}function re(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),oe(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}function se(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function Bt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function Fe(n,t){let e=it(n);t.validator!==null?n.setValidators(Ge(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=rt(n);t.asyncValidator!==null?n.setAsyncValidators(Ge(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();se(t._rawValidators,r),se(t._rawAsyncValidators,r);}function oe(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=it(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=rt(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return se(t._rawValidators,i),se(t._rawAsyncValidators,i),e}function Gt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&ut(n,t);});}function Ut(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&ut(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function ut(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function Ht(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function dt(n,t){Fe(n,t);}function Lt(n,t){return oe(n,t)}function we(n,t){if(!n.hasOwnProperty("model"))return false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function Wt(n){return Object.getPrototypeOf(n.constructor)===W}function ct(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function qt(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===Ze?e=s:Wt(s)?i=s:r=s;}),r||i||e||null}function $t(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var Ne={provide:jt,useFactory:()=>{let n=T(m,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},m=class extends ee{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof F&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=qt(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(rt$1)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(D1);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new Z,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof F&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=Rt(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof lt));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let a=this._convertErrors(s);t.setInputOnDirectives("errors",a);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Pt(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new _e({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=Nt$1(()=>{let r=t();return r.length===0?null:r.reduce((s,a)=>(s[a.kind]=a,s),{})});this.parseErrorsValidator=(()=>e).bind(this),Ga(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},ae=class{_cd;constructor(t){this._cd=t;}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return !!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return !!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return !!this._cd?.control?.invalid}get isPending(){return !!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Rn=(()=>{class n extends ae{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(oo(m,2))};static \u0275dir=mw({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Qg("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[rg]})}return n})(),Pn=(()=>{class n extends ae{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(oo(d,10))};static \u0275dir=mw({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Qg("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[rg]})}return n})(),R=class extends x{constructor(t,e,i){super(Me(e),Ee(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){me$1(()=>{ot(this,true,t),Object.keys(t).forEach(i=>{st(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,m$1(l({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new F(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return true;return false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return at(this.controls,t)?this.controls[t]:null}};var ye=class extends R{};var zt={provide:d,useExisting:Ko(()=>Zt)},G=Promise.resolve(),Zt=(()=>{class n extends d{callSetDisabledState;get submitted(){return me$1(this.submittedReactive)}_submitted=Nt$1(()=>this.submittedReactive());submittedReactive=Ue$1(false);_directives=new Set;form;ngSubmit=new Ze$1;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new R({},be(e),Ae(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){G.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}removeControl(e){G.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){G.then(()=>{let i=this._findContainer(e.path),r=new R({});dt(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){G.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){G.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),ct(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new ne(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(oo(b,10),oo(w,10),oo(N,8))};static \u0275dir=mw({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&Fg("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[zC([zt]),rg]})}return n})();function Le(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function We(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var L=class extends x{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(Me(e),Ee(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),le(e)&&(e.nonNullable||e.initialValueIsDefault)&&(We(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){me$1(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new F(this));}_updateValue(){}_anyControls(t){return false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){Le(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){Le(this._onDisabledChange,t);}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:true,emitModelToViewChange:false}),true):false}_applyFormState(t){We(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=t;}};var Xt=n=>n instanceof L,Yt=(()=>{class n extends d{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this);}ngOnDestroy(){this.formDirective?.removeFormGroup(this);}get control(){return this.formDirective.getFormGroup(this)}get path(){return ue(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,standalone:false,features:[rg]})}return n})();var Kt={provide:m,useExisting:Ko(()=>Jt)},qe=Promise.resolve(),Jt=(()=>{class n extends m{_changeDetectorRef;callSetDisabledState;control=new L;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new Ze$1;constructor(e,i,r,s,a,P,k,vt){super(k,vt,s),this._changeDetectorRef=a,this.callSetDisabledState=P,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),we(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return false}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){qe.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&T1(i);qe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?ue(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(oo(d,9),oo(b,10),oo(w,10),oo(D,10),oo(D1,8),oo(N,8),oo(Te,8),oo(yD,8))};static \u0275dir=mw({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:false,features:[zC([Kt,Ne]),rg,Cv,Iw(null)]})}return n})();var Tn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=mw({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),Qt={provide:D,useExisting:Ko(()=>en),multi:true},en=(()=>{class n extends W{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[zC([Qt]),rg]})}return n})(),tn={provide:D,useExisting:Ko(()=>rn),multi:true};var nn=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i]);}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value);});}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Kr({token:n,factory:n.\u0275fac})}return n})(),rn=(()=>{class n extends W{_registry;_injector;_state;_control;_fn;setDisabledStateFired=false;onChange=()=>{};name;formControlName;value;callSetDisabledState=T(N,{optional:true})??q;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s;}ngOnInit(){this._control=this._injector.get(m),this._checkName(),this._registry.add(this._control,this);}ngOnDestroy(){this._registry.remove(this);}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state);}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this);};}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=true;}fireUncheck(e){this.writeValue(e);}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName);}static \u0275fac=function(i){return new(i||n)(oo(yD),oo(Jr),oo(nn),oo(Te))};static \u0275dir=mw({type:n,selectors:[["input","type","radio","formControlName","",3,"ngNoCva",""],["input","type","radio","formControl","",3,"ngNoCva",""],["input","type","radio","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("change",function(){return r.onChange()})("blur",function(){return r.onTouched()});},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:false,features:[zC([tn]),rg]})}return n})(),sn={provide:D,useExisting:Ko(()=>on),multi:true},on=(()=>{class n extends W{writeValue(e){this.setProperty("value",parseFloat(e));}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["input","type","range","formControlName","",3,"ngNoCva",""],["input","type","range","formControl","",3,"ngNoCva",""],["input","type","range","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("change",function(a){return r.onChange(a.target.value)})("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[zC([sn]),rg]})}return n})(),Ce=class extends x{constructor(t,e,i){super(Me(e),Ee(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){me$1(()=>{ot(this,false,t),t.forEach((i,r)=>{st(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],m$1(l({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new F(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var ht=(()=>{class n extends d{callSetDisabledState;get submitted(){return me$1(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=Nt$1(()=>this._submittedReactive());_submittedReactive=Ue$1(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){re(e.control||null,e,false),$t(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,ct(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ne(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(re(i||null,e),Xt(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);dt(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&Lt(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){Fe(this.form,this),this._oldForm&&oe(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(oo(b,10),oo(w,10),oo(N,8))};static \u0275dir=mw({type:n,features:[rg,Cv]})}return n})();var Se=new x$1(""),an={provide:m,useExisting:Ko(()=>ln)},ln=(()=>{class n extends m{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Ze$1;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,P,k){super(k,P,r),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&(re(i,this,false),this.removeParseErrorsValidator(i)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:false});}we(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&re(this.form,this,false);}get path(){return []}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,true);}static \u0275fac=function(i){return new(i||n)(oo(b,10),oo(w,10),oo(D,10),oo(Se,8),oo(N,8),oo(yD,8),oo(Te,8))};static \u0275dir=mw({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:false,features:[zC([an,Ne]),rg,Cv,Iw(null)]})}return n})(),un={provide:d,useExisting:Ko(()=>ft)},ft=(()=>{class n extends Yt{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_checkParentType(){pt(this._parent);}static \u0275fac=function(i){return new(i||n)(oo(d,13),oo(b,10),oo(w,10))};static \u0275dir=mw({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:false,features:[zC([un]),rg]})}return n})(),dn={provide:d,useExisting:Ko(()=>gt)},gt=(()=>{class n extends d{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnInit(){pt(this._parent),this.formDirective.addFormArray(this);}ngOnDestroy(){this.formDirective?.removeFormArray(this);}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ue(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(oo(d,13),oo(b,10),oo(w,10))};static \u0275dir=mw({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:false,features:[zC([dn]),rg]})}return n})();function pt(n){return !(n instanceof ft)&&!(n instanceof ht)&&!(n instanceof gt)}var cn={provide:m,useExisting:Ko(()=>hn)},hn=(()=>{class n extends m{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new Ze$1;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,P,k){super(k,P,s),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),we(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return ue(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(oo(d,13),oo(b,10),oo(w,10),oo(D,10),oo(Se,8),oo(yD,8),oo(Te,8))};static \u0275dir=mw({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[zC([cn,Ne]),rg,Cv,Iw(null)]})}return n})();var fn={provide:d,useExisting:Ko(()=>gn)},gn=(()=>{class n extends ht{form=null;ngSubmit=new Ze$1;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&Fg("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[zC([fn]),rg]})}return n})();var mt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pw({type:n});static \u0275inj=ad({})}return n})();function $e(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var jn=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return $e(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new R(r,s)}record(e,i=null){let r=this._reduceControls(e);return new ye(r,i)}control(e,i,r){let s={};return this.useNonNullable?($e(i)?s=i:(s.validators=i,s.asyncValidators=r),new L(e,m$1(l({},s),{nonNullable:true}))):new L(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new Ce(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof L)return e;if(e instanceof x)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Kr({token:n,factory:n.\u0275fac})}return n})();var Bn=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:N,useValue:e.callSetDisabledState??q}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pw({type:n});static \u0275inj=ad({imports:[mt]})}return n})(),Gn=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Se,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:N,useValue:e.callSetDisabledState??q}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pw({type:n});static \u0275inj=ad({imports:[mt]})}return n})();export{Bn as B,D,Gn as G,Jt as J,L,Pn as P,Rn as R,Tn as T,Ze as Z,Zt as a,m as b,en as e,ft as f,gn as g,hn as h,jn as j,ln as l,me as m,on as o,rn as r,yt as y};
package/chunk-DkdGEw1e.js DELETED
@@ -1 +0,0 @@
1
- import {d}from'./chunk-D2g5mSLr.js';import'./chunk-Dgns65Zu.js';import'./chunk-Dh6x3lXP.js';import'./chunk-DD_QfWih.js';import {J}from'./chunk-khm9J_G0.js';import'./chunk-wyNyzSXi.js';import {O as Oe$1,F as Fe$1}from'./chunk-CegwkGVu.js';import'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-D6aNT_wo.js';import'./chunk-OLi7f6y7.js';import {D}from'./chunk-B2TXzbpy.js';import {T,ab as C,e as ee,ah as fe,a5 as g,U as Ue,N as Nt,ai as m,aj as l,C as Bu,d as dw,v,f as N,aH as m$1,b1 as m$2,Q as Qi,X as XT,H as Hl,o as oT,F as Fg,j as mg,O as Og,P as Pg,D as DE,i as iT,z as gg,k as gT,a1 as cT,s as sm,S as Sd,n as nC,l as HC,x as xd,a2 as lT,w as im,p as DD,q as PC,y as TD,I as Qg,aa as Gl,ar as Wp,aM as tb,au as Lg,aR as rb,av as eC,aN as ob}from'./main-KFKZO6SJ.js';import {f}from'./chunk-DPNAj9Vc.js';import {d as d$1}from'./chunk-CRAg6SRo.js';import {F as Fe$2}from'./chunk-DuIUmwWN.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-DipTNkHN.js';import {a as at}from'./chunk-Fw6nFDZK.js';import {U}from'./chunk-PVmXLw9b.js';import'./chunk-C7pjkqKB.js';var Oe=(n,t)=>t.BackupId;function Fe(n,t){n&1&&(Qi(0,"div",14),mg(1,"sh-progress-bar",20),Qi(2,"p"),XT(3,3),Hl()());}function Pe(n,t){n&1&&(Qi(0,"div",15)(1,"p"),XT(2,4),Hl()());}function Me(n,t){if(n&1){let e=gT();Qi(0,"sh-icon",33),Fg("click",function(){Sd(e);let o=nC(3);return xd(o.searchTerm.set(""))}),PC(1,"x-circle"),Hl();}}function he(n,t){if(n&1){let e=gT();Qi(0,"div",27)(1,"sh-form-field")(2,"input",28),sm("ngModelChange",function(o){Sd(e);let c=nC(2);return HC(c.searchTerm,o)||(c.searchTerm=o),xd(o)}),Hl(),DD(),Qi(3,"sh-icon",29),PC(4,"magnifying-glass"),Hl(),oT(5,Me,2,0,"sh-icon",30),Hl()(),Qi(6,"div",31)(7,"button",32),Fg("click",function(){Sd(e);let o=nC(2);return xd(o.selectAll())}),XT(8,6),Hl(),Qi(9,"button",32),Fg("click",function(){Sd(e);let o=nC(2);return xd(o.selectNone())}),XT(10,7),Hl()();}if(n&2){let e=nC(2);DE(2),im("ngModel",e.searchTerm),TD(),DE(3),iT(e.searchTerm()?5:-1),DE(2),gg("disabled",e.allSelected()),DE(2),gg("disabled",e.noneSelected());}}function Le(n,t){if(n&1&&(Qi(0,"div"),XT(1,8),tb(2,"bytes"),Hl()),n&2){let e=nC().$implicit;DE(2),Lg(rb(2,1,e.Metadata?.SourceFilesSize)),eC(1);}}function ye(n,t){if(n&1&&(Qi(0,"div"),XT(1,9),tb(2,"bytes"),Hl()),n&2){let e=nC().$implicit;DE(2),Lg(rb(2,1,e.Metadata?.TargetFilesSize)),eC(1);}}function Ae(n,t){if(n&1&&(Qi(0,"div"),XT(1,10),tb(2,"relativeTime"),Hl()),n&2){let e=nC().$implicit;DE(2),Lg(ob(2,1,e.Metadata?.LastBackupFinished,false)),eC(1);}}function Re(n,t){if(n&1){let e=gT();Qi(0,"sh-card",34),Fg("click",function(){let o=Sd(e).$implicit,c=nC(2);return xd(c.toggleSelected(o.BackupId))}),Qi(1,"sh-checkbox",35),sm("checkedChange",function(o){let c=Sd(e).$implicit;return HC(c.Selected,o)||(c.Selected=o),xd(o)}),Qi(2,"h3"),PC(3),Qi(4,"sh-chip",36),mg(5,"img",37),PC(6),Hl()()(),Qi(7,"div",38),oT(8,Le,3,3,"div"),oT(9,ye,3,3,"div"),oT(10,Ae,3,4,"div"),Hl()();}if(n&2){let e=t.$implicit,i=nC(2);Qg("unmatched",e.Match===false),DE(),im("checked",e.Selected),DE(2),Gl(" ",e.Name," "),DE(2),gg("src",i.getBackendIcon(e.TargetURLDisplay),Wp),DE(),Gl(" ",i.getBackendType(e.TargetURLDisplay)," "),DE(2),iT(e.Metadata?.SourceFilesSize?8:-1),DE(),iT(e.Metadata?.TargetFilesSize?9:-1),DE(),iT(e.Metadata?.LastBackupFinished?10:-1);}}function Ge(n,t){if(n&1){let e=gT();Qi(0,"sh-toggle",26),sm("checkedChange",function(o){Sd(e);let c=nC(2);return HC(c.saveNow,o)||(c.saveNow=o),xd(o)}),Og(1,11),mg(2,"sh-icon",39),Pg(),Hl();}if(n&2){let e=nC(2);gg("color","primary"),im("checked",e.saveNow),DE(2),gg("shTooltip","Save backups without editing the configuration");}}function De(n,t){n&1&&(Qi(0,"sh-toggle",25),Og(1,12),mg(2,"sh-icon",39),Pg(),Hl()),n&2&&(gg("color","primary")("checked",true)("disabled",true),DE(2),gg("shTooltip","Save now can only be disabled when importing a single backup"));}function ke(n,t){if(n&1){let e=gT();oT(0,he,11,4),Qi(1,"div",21),cT(2,Re,11,9,"sh-card",22,Oe),Hl(),Qi(4,"div",23),oT(5,Ge,3,3,"sh-toggle",24)(6,De,3,4,"sh-toggle",25),Qi(7,"sh-toggle",26),sm("checkedChange",function(o){Sd(e);let c=nC();return HC(c.importMetadata,o)||(c.importMetadata=o),xd(o)}),XT(8,5),Hl()();}if(n&2){let e=nC();iT(e.configs().length>1?0:-1),DE(2),lT(e.configsSorted()),DE(3),iT(e.selectedItems().length<=1?5:6),DE(2),gg("color","primary"),im("checked",e.importMetadata);}}function $e(n,t){n&1&&XT(0,2,1);}function be(n,t){n&1&&XT(0,2,2);}var w=class n{#t=T(d);#n=T(C);#e=T(ee);#i=T(fe);#o=T(g);getBackendType=Oe$1;getBackendIcon=Fe$1;isLoading=Ue(true);isImporting=Ue(false);configs=Ue([]);saveNow=Ue(false);importMetadata=Ue(false);searchTerm=Ue("");allSelected=Nt(()=>this.selectedItems().length===this.configs().length);noneSelected=Nt(()=>this.selectedItems().length===0);configsSorted=Nt(()=>{let t=this.searchTerm().toLowerCase();return this.configs().map(e=>m(l({},e),{Match:t?e.Name?.toLowerCase().includes(t):null})).sort((e,i)=>(e.Name??"").localeCompare(i.Name??"")).sort((e,i)=>e.Match===i.Match?0:e.Match?-1:1)});ngOnInit(){let t=this.#t.temporaryBackupId();if(!t){this.#e.navigate(["/backup/import-destination/destination"]);return}this.#n.postApiV1BackupByIdRestoreTaskConfig({id:t}).pipe(Bu(()=>this.isLoading.set(false))).subscribe({next:e=>{let i=e.sort((o,c)=>(o.Name??"").localeCompare(c.Name??"")).map(o=>m(l({},o),{Selected:e.length===1}));this.configs.set(i);},error:e=>{this.#t.showErrorDialog(e.message||"Failed to fetch configurations");}});}toggleSelected(t){this.configs.update(e=>e.map(i=>i.BackupId===t?m(l({},i),{Selected:!i.Selected}):i));}selectAll(){this.configs.update(t=>t.map(e=>m(l({},e),{Selected:true})));}selectNone(){this.configs.update(t=>t.map(e=>m(l({},e),{Selected:false})));}selectedItems=Nt(()=>this.configs().filter(t=>t.Selected));import(){let t=this.selectedItems();if(t.length===0)return;let e=this.importMetadata(),i=this.saveNow()||t.length!==1;this.isImporting.set(true);let o=c=>{if(c>=t.length){this.isImporting.set(false),this.#i.success($localize`Successfully imported ${t.length} backup(s)`),this.#e.navigate(["/"]);return}let N=t[c];this.#n.postApiV1BackupByIdImportfromtemp({requestBody:{BackupId:N.BackupId,ImportMetadata:e,Direct:i}}).subscribe({next:u=>{if(i)this.configs.update(I=>I.filter(G=>G.BackupId!==N.BackupId)),o(c+1);else {this.isImporting.set(false);let I=this.#o.addDraftBackup(u.data);this.#e.navigate(["/backup-draft",I]);}},error:u=>{this.isImporting.set(false),this.#t.showErrorDialog(`Failed to import ${N.Name}: ${u.message}`);}});};o(0);}back(){this.#e.navigate(["/backup/import-destination/encryption"]);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-import-destination-select-config"]],decls:14,vars:4,consts:()=>{let t;t=$localize`Select configurations to import`;let e;e=$localize`Back`;let i;i=$localize`${"\uFFFD*12:1\uFFFD"}:START_BLOCK_IF: Importing... ${"\uFFFD/*12:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*13:2\uFFFD"}:START_BLOCK_ELSE: Import selected ${"\uFFFD/*13:2\uFFFD"}:CLOSE_BLOCK_ELSE:`;let o;o=$localize`Fetching backup configurations from destination...`;let c;c=$localize`No backup configurations found at this destination.`;let N;N=$localize`Import metadata`;let u;u=$localize`Search for destination...`;let I;I=$localize`Select all`;let G;G=$localize`Select none`;let K;K=$localize` Source size: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let U;U=$localize` Target size: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let J;J=$localize` Last backup: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let X;X=$localize` Save now ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let z;return z=$localize` Save now ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON: info ${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`,[t,e,i,o,c,N,I,G,K,U,J,X,z,[1,"content-wrapper"],[1,"loading-state"],[1,"empty-state"],[1,"actions"],["shButton","",3,"click","disabled"],[1,"spacer"],["shButton","",1,"primary","raised",3,"click","disabled"],[1,"primary","indeterminate"],[1,"config-list"],[1,"type-a","actionable","full-width",3,"unmatched"],[1,"options"],[3,"color","checked"],[3,"color","checked","disabled"],[3,"checkedChange","color","checked"],[1,"search-area"],["type","text","placeholder",u,3,"ngModelChange","ngModel"],["prefix",""],["suffix","",1,"clear-search"],[1,"list-actions"],["shButton","",1,"small",3,"click","disabled"],["suffix","",1,"clear-search",3,"click"],[1,"type-a","actionable","full-width",3,"click"],[1,"primary","raised",3,"checkedChange","checked"],[1,"small","provider"],["alt","",1,"provider-icon",3,"src"],[1,"metadata"],[1,"small",3,"shTooltip"]]},template:function(e,i){e&1&&(Qi(0,"div",13)(1,"h2"),XT(2,0),Hl(),oT(3,Fe,4,0,"div",14)(4,Pe,3,0,"div",15)(5,ke,9,4),Qi(6,"div",16)(7,"button",17),Fg("click",function(){return i.back()}),XT(8,1),Hl(),mg(9,"div",18),Qi(10,"button",19),Fg("click",function(){return i.import()}),Og(11,2),oT(12,$e,1,0)(13,be,1,0),Pg(),Hl()()()),e&2&&(DE(3),iT(i.isLoading()?3:i.configs().length===0?4:5),DE(4),gg("disabled",i.isImporting()),DE(3),gg("disabled",i.isImporting()||i.selectedItems().length===0||i.isLoading()),DE(2),iT(i.isImporting()?12:13));},dependencies:[v,f,J,U,Bn,Ze,Rn,Jt,d$1,at,N,D,Fe$2,m$1,m$2],styles:["[_nghost-%COMP%]{display:block;padding:2rem;max-width:50rem;margin:0 auto}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{text-align:center;padding:4rem 2rem}.loading-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:1rem;color:var(--color-on-surface-variant)}h2[_ngcontent-%COMP%]{margin-bottom:2rem}.search-area[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem;margin-bottom:2rem}.list-actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;margin-bottom:.5rem;justify-content:flex-end}.clear-search[_ngcontent-%COMP%]{opacity:.6;cursor:pointer}.config-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem}.config-list[_ngcontent-%COMP%] sh-card[_ngcontent-%COMP%]{padding:1rem;cursor:pointer;display:flex;flex-direction:column;gap:.5rem}.config-list[_ngcontent-%COMP%] sh-card.unmatched[_ngcontent-%COMP%]{opacity:.4}.config-list[_ngcontent-%COMP%] sh-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;gap:.5rem;flex-grow:1}.config-list[_ngcontent-%COMP%] sh-card[_ngcontent-%COMP%] .provider[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.config-list[_ngcontent-%COMP%] sh-card[_ngcontent-%COMP%] .metadata[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;margin-left:1.75rem}.provider-icon[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem}.options[_ngcontent-%COMP%]{margin-bottom:2rem;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;align-items:center;margin-top:2rem}.actions[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{flex:1}"]})};export{w as default};
package/chunk-DtdFhFa9.js DELETED
@@ -1 +0,0 @@
1
- var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-BfZh4DNq.js')},{path:"encryption",loadComponent:()=>import('./chunk-DwMhABnQ.js').then(function(n){return n.c})},{path:"select-files",loadComponent:()=>import('./chunk-DwMhABnQ.js').then(function(n){return n.a})},{path:"options",loadComponent:()=>import('./chunk-DwMhABnQ.js').then(function(n){return n.b})},{path:":taskid/progress",loadComponent:()=>import('./chunk-BjAIXsAS.js')}],t=o;export{t as default};
package/chunk-DwKPz2Gn.js DELETED
@@ -1,3 +0,0 @@
1
- import {i as ie,h}from'./chunk-CGn_EA_5.js';import {m}from'./chunk-3RXp81pP.js';import {c}from'./chunk-wyNyzSXi.js';import {c as c$1}from'./chunk-OLi7f6y7.js';import {T,a5 as g,g as g$1,a6 as be,a7 as l,M,m as m$1,e as ee,N as Nt$1,G as Ga,d as dw,Z as lr,_ as _t$1,a8 as To,f as N,v,Q as Qi,s as sm,j as mg,F as Fg,o as oT,H as Hl,O as Og,P as Pg,q as PC,h as bC,w as im,z as gg,D as DE,i as iT,a3 as QC,a9 as UC,aa as Gl,t as tC,l as HC,ab as C$1,ac as h1,U as Ue,C as Bu,u as ue,X as XT,p as DD,y as TD,I as Qg,ad as br,ae as Jr,b as g1,af as m1,B as y1,L as oC,R as Bl,Y as iC,W as $l,ag as zg,$ as $g,K as lC,ah as fe,ai as m$2,aj as l$1,ak as cm,al as BC,k as gT,S as Sd,n as nC,x as xd,r as rt$1,am as ii,V as yg,an as jg,ao as $C,a1 as cT,ap as sT,a2 as lT,E as nm}from'./main-KFKZO6SJ.js';import'./chunk-CRAg6SRo.js';import {w}from'./chunk-DWkdK0Ib.js';import {F as Fe}from'./chunk-DuIUmwWN.js';import {B as Bn,Z as Ze,R as Rn,J as Jt,j as jn,m as me,G as Gn}from'./chunk-DipTNkHN.js';import {a as at$1}from'./chunk-Fw6nFDZK.js';import {C}from'./chunk-Ca1C9pJ0.js';import {O}from'./chunk-C-NgIZiF.js';import'./chunk-C7pjkqKB.js';var nt=["dragImageElement"],it=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ot=["[sidenav]","[sidenav-closed-topbar]","*"];function at(o,i){o&1&&yg(0,"div",1,0);}function st(o,i){if(o&1){let e=gT();Bl(0,"div",7),jg("drop",function(n){Sd(e);let r=nC();return xd(r.drop(n))})("dragenter",function(){Sd(e);let n=nC();return xd(n.dragEnter())})("dragleave",function(){Sd(e);let n=nC();return xd(n.dragLeave())}),$l();}}function rt(o,i){if(o&1){let e=gT();Bl(0,"div",8),jg("dragstart",function(n){Sd(e);let r=nC();return xd(r.dragStart(n))})("dragend",function(n){Sd(e);let r=nC();return xd(r.dragEnd(n))})("drag",function(n){Sd(e);let r=nC();return xd(r.drag(n))})("touchstart",function(n){Sd(e);let r=nC();return xd(r.touchStart(n))})("touchmove",function(n){Sd(e);let r=nC();return xd(r.touchMove(n))})("touchend",function(n){Sd(e);let r=nC();return xd(r.touchEnd(n))})("touchcancel",function(n){Sd(e);let r=nC();return xd(r.touchCancel(n))}),$l();}}function lt(o){let i=T(Jr),e=T(rt$1),t=Ue(false),n=typeof MutationObserver<"u"?new MutationObserver(r=>{r.forEach(N=>{N.type==="attributes"&&N.attributeName==="class"&&t.set(i.nativeElement.classList.contains(o));});}):void 0;return ii(i.nativeElement,()=>{n&&n.observe(i.nativeElement,{attributes:!0}),t.set(i.nativeElement.classList.contains(o));}),e.onDestroy(()=>{n&&n.disconnect();}),t}var Ke=(()=>{class o{constructor(){this.#e=T(br),this.#i=T(Jr),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=g1(false),this.isOpen=m1(false),this.isOverlay=lt("overlay"),this.#n=this.#i.nativeElement.parentElement,this.#t=this.#n.getBoundingClientRect&&this.#n.getBoundingClientRect(),this.dragImageElement=y1.required("dragImageElement"),this.dragIsEnding=Ue(false),this.dragIsOnScreen=Ue(true),this.isDragging=Ue(false),this.dragPositionX=Ue(0),this.dragActualPositionX=Nt$1(()=>{let e=this.dragPositionX(),t=280,n=100,N=t/2,A=N-n/2,O=N+n/2;if(e>O){let D=e-O,f=(t-O)*(1-Math.exp(-8e-3*D));return O+f}else if(e<A){let D=A-e,f=A*(1-Math.exp(-8e-3*D));return A-f}return e}),this.draggingStyle=Nt$1(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Ga(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"));}),this.scrollLockEffect=Ga(e=>{let t=this.isOverlay(),n=this.isOpen();t&&n&&(this.#e.body.classList.add("sh-sidenav-open"),this.#e.documentElement.classList.add("sh-sidenav-open")),e(()=>{this.#e.body.classList.remove("sh-sidenav-open"),this.#e.documentElement.classList.remove("sh-sidenav-open");});});}#e;#i;#n;#t;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#t.left);}#o(e){this.isDragging.set(false),e>=this.openWidthTreshold?this.isOpen.set(true):this.isOpen.set(false);}dragEnd(e){e.clientX-this.#t.left<0&&this.#o(0),e.clientX-this.#t.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold);}dragEnter(){this.dragIsOnScreen.set(true);}dragLeave(){this.dragIsOnScreen.set(false);}dragStart(e){e.stopPropagation(),this.#t=this.#n.getBoundingClientRect(),this.isDragging.set(true);}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#t.left);}touchStart(e){e.stopPropagation(),this.isDragging.set(true),this.#t=this.#n.getBoundingClientRect(),this.dragPositionX.set(0);}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#t.left);}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#t.left);}touchCancel(e){e.stopPropagation(),this.isDragging.set(false);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=dw({type:o,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&$g(n.dragImageElement,nt,5),t&2&&lC();},hostVars:6,hostBindings:function(t,n){t&2&&Qg("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging());},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ot,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],["role","navigation",1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(oC(it),oT(0,at,2,0,"div",1),oT(1,st,1,0,"div",2),Bl(2,"div",3),iC(3),$l(),Bl(4,"div",4),oT(5,rt,1,0,"div",5),Bl(6,"div",6),iC(7,1),$l(),Bl(8,"main"),iC(9,2),$l()()),t&2&&(iT(n.isOverlay()&&!n.disableDrag()?0:-1),DE(),iT(n.isOverlay()&&n.isDragging()?1:-1),DE(3),zg("transform",!n.disableDrag()&&n.draggingStyle()),DE(),iT(n.isOverlay()&&!n.disableDrag()?5:-1));},styles:[`html.sh-sidenav-open,body.sh-sidenav-open{overflow:hidden}sh-sidenav{--sidenav-width: 17.5rem;--sidenav-wrap-w: 100vw;--sidenav-wrap-h: 100vh;display:flex;width:var(--sidenav-wrap-w);height:var(--sidenav-wrap-h)}sh-sidenav .sidenav{width:var(--sidenav-width);transition:width .2s linear;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;overscroll-behavior:contain}sh-sidenav .main-wrap{position:relative;z-index:1;flex:1 0;display:block;height:100%;overflow:auto;padding:1rem 1rem 1rem 0;background-color:var(--base-1)}sh-sidenav main{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;border:var(--border-10);border-radius:var(--shape-3);height:calc(100vh - 2rem);box-shadow:var(--box-shadow-35)}sh-sidenav .closed-topbar{display:none;min-height:3.75rem;background-color:var(--base-1);align-items:center;justify-content:space-between;padding:0 1rem;border-bottom:var(--border-10);z-index:10000;position:relative;touch-action:none;overscroll-behavior:none}sh-sidenav .dragable{display:none}sh-sidenav .drag-image{display:none}sh-sidenav.simple{border-radius:0}sh-sidenav.simple .main-wrap{padding:0}sh-sidenav.simple .main-wrap main{height:100vh;border-radius:0;border-width:0 0 0 1px}sh-sidenav.simple.closed{--sidenav-width: 6.25rem}sh-sidenav.overlay{overflow:hidden}sh-sidenav.overlay .drag-image{display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem;box-shadow:none;position:fixed;top:0;left:-9999px}sh-sidenav.overlay .sidenav{position:fixed;z-index:0}sh-sidenav.overlay .dragable{position:absolute;top:0;left:0;bottom:0;z-index:9999;width:50px;padding-right:30px;display:flex;align-items:center;justify-content:center;cursor:grab}sh-sidenav.overlay .dragable:active{cursor:grabbing}sh-sidenav.overlay .dragable:after{content:"";display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem}sh-sidenav.overlay .dragable:hover:after{background-color:var(--base-4)}sh-sidenav.overlay .dropping-surface{position:fixed;inset:0;z-index:100000}sh-sidenav.overlay .main-wrap{z-index:1;padding:0;display:flex;height:100vh;position:relative;flex-direction:column;transform:translate(0);transition:transform .2s linear;overflow:hidden;overscroll-behavior:none}sh-sidenav.overlay.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}sh-sidenav.overlay.is-dragging .main-wrap{transition:none}sh-sidenav.overlay.is-dragging>*{cursor:grabbing}sh-sidenav.overlay.is-dragging .dragable{cursor:grabbing}sh-sidenav.overlay.open .main-wrap{transform:translate(var(--sidenav-width));box-shadow:var(--box-shadow-10);border-left:var(--border-10)}sh-sidenav.overlay.open main{overflow-y:hidden}sh-sidenav.overlay .closed-topbar{display:flex}sh-sidenav.overlay .closed-topbar:empty{display:none}sh-sidenav.overlay main{border:0;box-shadow:none;flex:1;height:auto;min-height:0;border-radius:0}
2
- `],encapsulation:2});}}return o})();var _t=["scroller"];function ct(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell-ringing"),Hl());}function dt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell"),Hl());}function ut(o,i){if(o&1&&mg(0,"app-notification",8),o&2){nC(2);let e=$C(6);gg("index",0)("notification",e.content);}}function gt(o,i){if(o&1&&(Qi(0,"div",11),PC(1),Hl()),o&2){nC(3);let e=$C(6);DE(),Gl(" ",e.content.content," ");}}function pt(o,i){if(o&1&&(Qi(0,"sh-alert")(1,"div",10),PC(2),Hl(),oT(3,gt,2,1,"div",11),Hl()),o&2){nC(2);let e=$C(6);bC(e.content.type||"error"),DE(2),nm(e.content.title),DE(),iT(e.content.content?3:-1);}}function ht(o,i){if(o&1&&(Qi(0,"div",6),oT(1,ut,1,2,"app-notification",8)(2,pt,4,4,"sh-alert",9),Hl()),o&2){nC();let e=$C(6);DE(),iT(e.type==="notification"?1:2);}}function mt(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,2),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleNotifications())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),mg(9,"app-notifications"),Hl()()()();}}function St(o,i){if(o&1&&(Qi(0,"div",20),PC(1),Hl()),o&2){let e=nC().$implicit;DE(),Gl(" ",e.content," ");}}function Ct(o,i){if(o&1){let e=gT();Qi(0,"sh-alert",18,1),Fg("click",function(){let n=Sd(e).$implicit,r=nC(2);return xd(r.deleteAlertByIndex(n.id))}),Qi(2,"div",19),PC(3),Hl(),oT(4,St,2,1,"div",20),Hl();}if(o&2){let e=i.$implicit;bC(e.type),gg("id",e.id),DE(3),nm(e.title),DE(),iT(e.content?4:-1);}}function Tt(o,i){o&1&&(Qi(0,"p",17),XT(1,4),Hl());}function Et(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,3),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleAlerts())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),cT(9,Ct,5,5,"sh-alert",16,sT,false,Tt,2,0,"p",17),Hl()()()();}if(o&2){let e=nC();DE(9),lT(e.alertHistory());}}var et=new jn,J=class o{#e=T(fe);#i=T(l);isSubmitting=Ue(false);messageSent=Ue(false);form=et.group({message:et.control("",[me.required])});notifications=this.#i.notifications;shownMessage=Ue(null);shownMessageInterval=null;alertHistory=this.#e.alertHistory;alertHistoryIsOpen=this.#e.alertHistoryIsOpen;alertHistoryIsHidden=this.#e.alertHistoryIsHidden;numberOfOpenAlerts=Nt$1(()=>this.alertHistory().filter(i=>i.isOpen).length);scroller=y1("scroller");isAlertsOpen=m1(false);isNotificationsOpen=m1(false);previousHistoryCount=Ue(null);previousNotificationsCount=Ue(null);constructor(){Ga(()=>{let i=this.alertHistory(),e=this.notifications();if(e.length===0){this.shownMessage.set(null);return}e.length&&this.previousHistoryCount()!==i.length&&!this.isNotificationsOpen()?(this.shownMessage.set({content:e[0],countDown:3,type:"notification"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3)):i.length&&this.previousHistoryCount()!==i.length&&!this.isAlertsOpen()&&(this.shownMessage.set({content:i[0],countDown:3,type:"alert"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3));}),Ga(()=>{this.alertHistoryIsOpen(),this.scrollToBottom();});}resetPreviewMessage(){this.shownMessage.set(null),this.shownMessageInterval=null;}toggleAlerts(){this.isAlertsOpen()?this.isAlertsOpen.set(false):(this.isAlertsOpen.set(true),this.isNotificationsOpen.set(false),this.resetPreviewMessage());}toggleNotifications(){this.isNotificationsOpen.set(!this.isNotificationsOpen()),this.isAlertsOpen()&&this.isAlertsOpen.set(false);}deleteAlertByIndex(i){this.#e.removeAlert(i);}scrollToBottom(){this.scroller()&&this.scroller()?.nativeElement&&this.scroller().nativeElement.scrollTo(0,this.scroller().nativeElement.scrollHeight);}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-service-hub"]],viewQuery:function(e,t){e&1&&$g(t.scroller,_t,5),e&2&&lC();},inputs:{isAlertsOpen:[1,"isAlertsOpen"],isNotificationsOpen:[1,"isNotificationsOpen"]},outputs:{isAlertsOpen:"isAlertsOpenChange",isNotificationsOpen:"isNotificationsOpenChange"},decls:10,vars:9,consts:()=>{let i;i=$localize` Notifications ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let e;e=$localize` Alerts ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let t;return t=$localize`No alerts yet`,[["scroller",""],["alerts",""],i,e,t,["shButton","",3,"click"],[1,"preview-alert-wrap"],[1,"alert-stream-modal"],[3,"index","notification"],[3,"class"],["ship-alert-title",""],["ship-alert-content",""],[1,"alert-stream-modal-content"],[1,"paragraph-20"],[1,"alert-stream-modal-list-scroller"],[1,"alert-stream-modal-list"],[3,"class","id"],[1,"no-alerts"],[3,"click","id"],["title",""],["content",""]]},template:function(e,t){if(e&1&&(Qi(0,"button",5),Fg("click",function(){return t.toggleAlerts()}),Qi(1,"sh-icon"),PC(2,"info"),Hl()(),Qi(3,"button",5),Fg("click",function(){return t.toggleNotifications()}),oT(4,ct,2,0,"sh-icon")(5,dt,2,0,"sh-icon"),Hl(),cm(6),oT(7,ht,3,1,"div",6),oT(8,mt,10,0,"div",7),oT(9,Et,12,1,"div",7)),e&2){bC(t.alertHistory().length?"error":""),DE(3),bC(t.notifications().length?"error":""),DE(),iT(t.notifications().length?4:5),DE(2);let n=BC(t.shownMessage());DE(),iT(n?7:-1),DE(),iT(t.isNotificationsOpen()?8:-1),DE(),iT(t.isAlertsOpen()?9:-1);}},dependencies:[Gn,ue,N,v,ie,h],styles:["[_nghost-%COMP%]{display:flex;position:fixed;gap:.5rem;bottom:1.5rem;right:1.5rem;z-index:5000}@media only screen and (max-width:768px){[_nghost-%COMP%]{bottom:1rem;right:1rem}}[_nghost-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.preview-alert-wrap[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column;min-width:15.625rem}.helpdesk-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.helpdesk-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.helpdesk-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:1rem;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.helpdesk-modal-content[_ngcontent-%COMP%] .message-sent[_ngcontent-%COMP%]{padding:0 1rem 1rem;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;align-items:flex-end;gap:1rem}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.alert-stream-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.alert-stream-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.alert-stream-modal-list-scroller[_ngcontent-%COMP%]{overflow-y:auto;max-height:18.75rem}.alert-stream-modal-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem;border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.no-alerts[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};function ft(o,i){o&1&&(Qi(0,"sh-icon",14),PC(1,"check"),Hl());}function Ft(o,i){o&1&&(Qi(0,"sh-icon",15),PC(1,"prohibit"),Hl());}function At(o,i){if(o&1){let e=gT();Qi(0,"button",20),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,5),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating());}}function Ot(o,i){if(o&1){let e=gT();Qi(0,"button",21),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,6),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating()),gg("disabled",true);}}var K=class o{#e=T(C$1);closed=h1();isUpdating=Ue(false);passphrase=Ue("");repeatPassphrase=Ue("");updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()}));}cancel(){this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"has-asked-for-password-change":"True"}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-change-passphrase-alert-dialog"]],outputs:{closed:"closed"},decls:23,vars:7,consts:()=>{let i;i=$localize`Enter new password`;let e;e=$localize`Repeat password`;let t;t=$localize`Password have to be filled and have to match`;let n;n=$localize`Change passphrase`;let r;r=$localize` Duplicati needs to be secured with a passphrase and a random passphrase has been generated for you. ${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK:${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK: If you open Duplicati from the tray icon, you do not need a passphrase, but if you plan to open it from another location you need to set a passphrase you know. Do you want to set a passphrase now? `,r=tC(r);let N;N=$localize`Passphrase`;let A;A=$localize`Repeat passphrase`;let O;O=$localize`Not now thanks`;let D;D=$localize` Yes, update passphrase now `;let E;return E=$localize` Yes, update passphrase now `,[n,r,N,A,O,D,E,["header",""],["content",""],["type","warning"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",i,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",e,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",t,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",t,1,"raised","primary",3,"click","disabled"]]},template:function(e,t){e&1&&(Qi(0,"header",7)(1,"h3"),XT(2,0),Hl()(),Qi(3,"div",8)(4,"sh-alert",9),Og(5,1),mg(6,"br")(7,"br"),Pg(),Hl(),Qi(8,"sh-form-field")(9,"label",10),XT(10,2),Hl(),Qi(11,"input",11),sm("ngModelChange",function(r){return HC(t.passphrase,r)||(t.passphrase=r),r}),Hl(),DD(),Hl(),Qi(12,"sh-form-field")(13,"label",12),XT(14,3),Hl(),Qi(15,"input",13),sm("ngModelChange",function(r){return HC(t.repeatPassphrase,r)||(t.repeatPassphrase=r),r}),Hl(),DD(),oT(16,ft,2,0,"sh-icon",14)(17,Ft,2,0,"sh-icon",15),Hl()(),Qi(18,"footer",16)(19,"button",17),Fg("click",function(){return t.cancel()}),XT(20,4),Hl(),oT(21,At,2,2,"button",18)(22,Ot,2,3,"button",19),Hl()),e&2&&(DE(11),im("ngModel",t.passphrase),TD(),DE(4),gg("disabled",t.passphrase().length===0),im("ngModel",t.repeatPassphrase),TD(),DE(),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?16:17),DE(3),Qg("loading",t.isUpdating()),DE(2),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?21:22));},dependencies:[Bn,Ze,Rn,Jt,ue,Fe,N,at$1,v],styles:["[_nghost-%COMP%]{display:block;--dialog-p: 1.5rem}[content][_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};var vt=()=>({exact:true});function Nt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"sun"),Hl());}function Pt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"moon"),Hl());}function Dt(o,i){if(o&1){let e=gT();Qi(0,"button",26),Fg("click",function(){Sd(e);let n=nC();return xd(n.logout())}),Og(1,8),mg(2,"sh-icon"),Pg(),Hl();}}var _e=class o{#e=T(m);#i=T(g);#n=T(g$1);#t=T(be);#o=T(l);#r=T(M);#a=T(O);#s=T(m$1);#l=T(ee);#_=T(C);relayIsEnabled=this.#n.relayIsEnabled;isDarkMode=this.#e.isDarkMode;isNavOpen=this.#e.isNavOpen;sidenavType=this.#e.sidenavType;hasShownPasswordDialog=false;machineName=Nt$1(()=>{let i=this.#a.serverSettings();if(i&&i["--machine-name"])return i["--machine-name"];if(i&&i["machine-name"])return i["machine-name"];let e=this.#s.allOptions().find(t=>t.name==="machine-name");return e&&e.defaultValue?e.defaultValue:this.#s.systemInfo()?.MachineName??"Unknown"});ngOnInit(){this.#o.init(),this.#i.getBackups(true);}serverSettingsEffect=Ga(()=>{if(!this.hasShownPasswordDialog&&(this.#a.askForInitialPasswordConfig()&&(this.hasShownPasswordDialog=true,this.#t.open(K,{maxWidth:"500px"})),this.#a.showWelcomePage())){let i=this.#_.state();i=="inactive"?this.#l.navigate(["/welcome"]):i!="unknown"&&this.#a.setShownWelcomePage();}});toggleBodyClass(){this.#e.toggleBodyClass();}changeDefaultClientTo(i){this.#c(i),window.location.replace(`/${i}`);}logout(){this.#r.logout();}#c(i){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+i+"; expires="+e.toUTCString()+"; path=/";}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-layout"]],decls:44,vars:11,consts:()=>{let i;i=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:house${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Home `;let e;e=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Add backup `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let n;n=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:link-simple${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Destinations `;let r;r=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:gear${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Settings `;let N;N=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SH_ICON: About Duplicati `;let A;A=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:files${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON: Documentation ${"\uFFFD#36\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON:`,A=tC(A);let O;O=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SH_ICON:chats-circle${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON: Visit forum ${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON:`,O=tC(O);let D;return D=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:sign-out${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Log out `,[i,e,t,n,r,N,A,O,D,[3,"isOpenChange","isOpen","disableDrag"],["sidenav",""],["shButton","",1,"icon","small",3,"click"],[1,"base-1","primary"],["action","","routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["action","","routerLink","/add-backup","routerLinkActive","active"],["action","","routerLink","/restore","routerLinkActive","active"],["action","","routerLink","/destinations","routerLinkActive","active"],["action","","routerLink","/settings","routerLinkActive","active"],[1,"spacer"],[1,"base-1l","primary"],["action","",1,"machine-name",3,"title"],["action","","routerLink","/about","routerLinkActive","active"],["href","https://docs.duplicati.com","target","_blank","action",""],["suffix",""],["href","https://forum.duplicati.com","target","_blank","action",""],["action",""],["action","",3,"click"]]},template:function(e,t){e&1&&(Qi(0,"sh-sidenav",9),sm("isOpenChange",function(r){return HC(t.isNavOpen,r)||(t.isNavOpen=r),r}),Qi(1,"div",10)(2,"header"),mg(3,"app-logo"),Qi(4,"button",11),Fg("click",function(){return t.toggleBodyClass()}),oT(5,Nt,2,0,"sh-icon")(6,Pt,2,0,"sh-icon"),Hl()(),Qi(7,"sh-list",12)(8,"button",13),Og(9,0),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",14),Og(12,1),mg(13,"sh-icon"),Pg(),Hl(),Qi(14,"button",15),Og(15,2),mg(16,"sh-icon"),Pg(),Hl(),Qi(17,"button",16),Og(18,3),mg(19,"sh-icon"),Pg(),Hl(),Qi(20,"button",17),Og(21,4),mg(22,"sh-icon"),Pg(),Hl()(),mg(23,"div",18),Qi(24,"sh-list",19)(25,"div",20)(26,"sh-icon"),PC(27,"desktop"),Hl(),PC(28),Hl(),mg(29,"sh-divider"),Qi(30,"button",21),Og(31,5),mg(32,"sh-icon"),Pg(),Hl(),Qi(33,"a",22),Og(34,6),mg(35,"sh-icon")(36,"sh-icon",23),Pg(),Hl(),Qi(37,"a",24),Og(38,7),mg(39,"sh-icon")(40,"sh-icon",23),Pg(),Hl(),oT(41,Dt,3,0,"button",25),Hl()(),mg(42,"router-outlet")(43,"app-service-hub"),Hl()),e&2&&(bC(t.sidenavType()),im("isOpen",t.isNavOpen),gg("disableDrag",true),DE(5),iT(t.isDarkMode()?5:6),DE(3),gg("routerLinkActiveOptions",QC(10,vt)),DE(17),gg("title",UC(t.machineName())),DE(3),Gl(" ",t.machineName()," "),DE(13),iT(t.relayIsEnabled()?-1:41));},dependencies:[lr,_t$1,To,Ke,N,c,v,c$1,J,w],styles:["[_nghost-%COMP%]{height:100vh;width:100%;overflow:hidden}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1.25rem;gap:.75rem}h3[title][_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[sidenav][_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}.machine-name[_ngcontent-%COMP%]{margin:0;cursor:default}"]})};
3
- export{_e as default};
package/chunk-DwMhABnQ.js DELETED
@@ -1,2 +0,0 @@
1
- import {OptionsListComponent as Oe$1}from'./chunk-Dgns65Zu.js';import {O}from'./chunk-DN6f5jXR.js';import {C as Ct$1,Z as Ze$1}from'./chunk-ByhuT4BS.js';import'./chunk-C4kBXz3C.js';import {S as Se}from'./chunk-Dh6x3lXP.js';import {I}from'./chunk-DD_QfWih.js';import {J}from'./chunk-khm9J_G0.js';import'./chunk-wyNyzSXi.js';import'./chunk-CegwkGVu.js';import {N as Nt$2}from'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-D6aNT_wo.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import {T,ab as C,e as ee,aw as W,U as Ue,N as Nt$1,C as Bu,d as dw,f as N,v,Q as Qi,F as Fg,o as oT,aP as Ul,X as XT,aQ as Wl,s as sm,H as Hl,O as Og,j as mg,P as Pg,z as gg,D as DE,i as iT,w as im,bg as Q,m,aJ as ci,G as Ga,cj as Uu,aE as Fo,bI as fe$1,aH as m$1,au as Lg,av as eC,aD as zC,a6 as be,at as h,I as Qg,a$ as Vs,ck as iy,c3 as Bs,ay as $u,bJ as vy,cl as _y,aZ as ee$1,l as HC,p as DD,y as TD,k as gT,S as Sd,n as nC,x as xd,bf as ig,a3 as QC,q as PC,aM as tb,aB as rm,aN as ob,aa as Gl,aR as rb}from'./main-KFKZO6SJ.js';import'./chunk-DPNAj9Vc.js';import {d}from'./chunk-CRAg6SRo.js';import {F as Fe$1}from'./chunk-DuIUmwWN.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn,B as Bn,J as Jt,y as yt$1,r as rn}from'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import'./chunk-PVmXLw9b.js';import {L}from'./chunk-C7pjkqKB.js';function ut(i,t){i&1&&(Qi(0,"p"),XT(1,3),Hl());}function dt(i,t){i&1&&(Qi(0,"sh-form-field")(1,"label",11),XT(2,4),Hl(),mg(3,"input",12),DD(),Hl()),i&2&&(DE(3),TD());}var it=new jn,at=()=>it.group({passphrase:it.control("")}),Fe=class i{#e=T(C);#t=T(G);#i=T(ee);#n=T(W);encryptionForm=this.#t.encryptionForm;creatingTemporaryBackup=Ue(false);settings=Ue([]);hasEncryptedBackup=Nt$1(()=>{let t=this.#t.destinationTestSignal();return t==="testing"||typeof t=="string"?true:t?.containsEncryptedBackupFiles??true});showEncryptionField=Ue(false);next(){let t=this.#t.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(true);let e=this.encryptionForm.value?.passphrase??null,o=[];e?o.push({Name:"--passphrase",Value:e}):o.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(n=>{let r=n.Name?.trim();r&&r!=="--"&&(r.startsWith("--")||(r=`--${r}`),o.push({Name:r,Value:n.Value??""}));}),this.#e.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:true}).pipe(Bu(()=>this.creatingTemporaryBackup.set(false))).subscribe({next:n=>{let r=n.ID;this.#i.navigate([`/restore-draft/${r}`]);},error:n=>{console.error(n);}});}back(){this.#t.isFileRestore()?this.#i.navigate(["destination"],{relativeTo:this.#n.parent}):this.#t.exit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-restore-encryption"]],decls:14,vars:5,consts:()=>{let t;t=$localize`Advanced options`;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`The backup does not contain encrypted files.`;let r;r=$localize`Enter backup passphrase if defined.`;let _;return _=$localize`Password`,[t,e,o,n,_,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",r,"formControlName","passphrase"]]},template:function(e,o){e&1&&(Qi(0,"form",5),Fg("submit",function(){return o.next()}),oT(1,ut,2,0,"p"),oT(2,dt,4,0,"sh-form-field"),Qi(3,"sh-toggle-card"),Ul(4,6),XT(5,0),Wl(),Qi(6,"app-options-list",7),sm("optionsChange",function(r){return HC(o.settings,r)||(o.settings=r),r}),Hl()(),Qi(7,"div",8)(8,"button",9),Fg("click",function(){return o.back()}),Og(9,1),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",10),Og(12,2),mg(13,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.encryptionForm),DE(),iT(o.hasEncryptedBackup()?-1:1),DE(),iT(o.hasEncryptedBackup()||o.showEncryptionField()?2:-1),DE(4),im("options",o.settings),gg("hasFreeTextSettings",true));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,Fe$1,N,v,I,Oe$1],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};var lt=()=>({standalone:true});function pt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function mt(i,t){if(i&1&&(PC(0),tb(1,"bytes")),i&2){let e=nC().$implicit;Gl(" (",rb(1,1,e.FileSizes),") ");}}function St(i,t){i&1&&(Qi(0,"span",20),XT(1,4),Hl());}function Et(i,t){if(i&1&&(Qi(0,"div",19),PC(1),tb(2,"date"),oT(3,mt,2,3),oT(4,St,2,0,"span",20),Hl()),i&2){let e=t.$implicit;DE(),rm(" ",e.Version,": ",ob(2,4,e.Time,"medium")," "),DE(2),iT(e.FileSizes?3:-1),DE(),iT(e.IsFullBackup===false?4:-1);}}function Tt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function gt(i,t){i&1&&(Qi(0,"sh-icon",28),PC(1,"spinner"),Hl());}function Ft(i,t){i&1&&(Qi(0,"sh-icon"),PC(1,"magnifying-glass"),Hl());}function Ct(i,t){if(i&1){let e=gT();Qi(0,"button",31),Fg("click",function(){Sd(e);let n=nC(4);return xd(n.clearSearch())}),Qi(1,"sh-icon"),PC(2,"x-circle"),Hl(),Qi(3,"span"),XT(4,8),Hl()();}}function Ot(i,t){i&1&&(Qi(0,"span"),XT(1,9),Hl());}function Nt(i,t){if(i&1&&(Qi(0,"span"),XT(1,10),Hl()),i&2){let e=nC(5);DE(),Lg(e.searchResults().length),eC(1);}}function ft(i,t){if(i&1&&(Qi(0,"div",30),oT(1,Ot,2,0,"span")(2,Nt,2,1,"span"),Hl()),i&2){let e=nC(4);DE(),iT(e.searchResults().length===0?1:2);}}function ht(i,t){if(i&1){let e=gT();Qi(0,"div",24)(1,"sh-form-field")(2,"label",25),XT(3,6),Hl(),Qi(4,"input",26),sm("ngModelChange",function(n){Sd(e);let r=nC(3);return HC(r.searchQuery,n)||(r.searchQuery=n),xd(n)}),Fg("keydown.enter",function(n){Sd(e);let r=nC(3);return n.preventDefault(),xd(r.performSearch())}),Hl(),DD(),Hl(),Qi(5,"button",27),Fg("click",function(){Sd(e);let n=nC(3);return xd(n.performSearch())}),oT(6,gt,2,0,"sh-icon",28)(7,Ft,2,0,"sh-icon"),Qi(8,"span"),XT(9,7),Hl()(),oT(10,Ct,5,0,"button",29),Hl(),oT(11,ft,3,1,"div",30);}if(i&2){let e=nC(3);DE(4),im("ngModel",e.searchQuery),gg("ngModelOptions",QC(6,lt)),TD(),DE(),gg("disabled",e.isSearching()||!e.searchQuery().trim()),DE(),iT(e.isSearching()?6:7),DE(4),iT(e.isSearchMode()?10:-1),DE(),iT(e.isSearchMode()&&!e.isSearching()?11:-1);}}function Rt(i,t){if(i&1){let e=gT();oT(0,ht,12,7),Qi(1,"app-file-tree",21),Fg("hasExtendedData",function(n){Sd(e);let r=nC(2);return xd(r.extendedDataType.set(n))}),Qi(2,"label",22),XT(3,5),Hl(),mg(4,"input",23),DD(),Hl();}if(i&2){let e=nC(2);iT(e.canSearch()?0:-1),DE(),gg("rootPaths",e.rootPaths())("initialNodes",e.initialNodes())("backupSettings",e.backupSettings())("multiSelect",true)("showFiles",true)("loadExtendedData",true)("searchMode",e.isSearchMode())("searchResults",e.searchResults()),DE(3),TD();}}function Pt(i,t){if(i&1){let e=gT();Qi(0,"sh-select",17),Fg("cleared",function(){Sd(e);let n=nC();return xd(n.abortLoading())}),Qi(1,"input",18),sm("ngModelChange",function(n){Sd(e);let r=nC();return HC(r.selectOption,n)||(r.selectOption=n),xd(n)}),Hl(),DD(),ig(2,Et,5,7,"ng-template"),Hl(),oT(3,Tt,1,0,"sh-progress-bar",13),oT(4,Rt,5,9);}if(i&2){let e=nC();gg("options",e.versionOptions())("isClearable",false),DE(),im("ngModel",e.selectOption),gg("ngModelOptions",QC(6,lt)),TD(),DE(2),iT(e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),DE(),iT(e.showFileTree()?4:-1);}}var Oe=new jn,_t=()=>Oe.group({filesToRestore:Oe.control(""),passphrase:Oe.control(null)}),Ne=class i{#e=T(C);#t=T(G);#i=T(Q);#n=T(m);#o=T(ee);#r=T(W);#a=T(ci);#l=null;#_=null;#s=Ue([]);selectFilesForm=this.#t.selectFilesForm;selectFilesFormSignal=this.#t.selectFilesFormSignal;selectOption=this.#t.selectOption;backupId=this.#t.backupId;versionOptionsLoading=this.#t.versionOptionsLoading;versionOptions=this.#t.versionOptions;isFileRestore=this.#t.isFileRestore;extendedDataType=this.#t.extendedDataType;needsDatabaseRepair=Nt$1(()=>this.#t.backup()?.Backup?.IsTemporary??true);showFileTree=Ue(false);backupSettings=Ue(null);rootPaths=Ue([]);initialNodes=Ue([]);loadingRootPath=Ue(false);isRepairing=Nt$1(()=>this.#s().length>0);loadedVersions=Ue({});canSearch=Nt$1(()=>this.#n.hasV2ListOperations());searchQuery=Ue("");isSearching=Ue(false);searchResults=Ue([]);hasSearched=Ue(false);isSearchMode=Nt$1(()=>this.searchQuery().length>0&&this.hasSearched());loadingEffect=Ga(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let o=e[0].Version;this.selectOption.set(o.toString());}});backupSettingsEffect=Ga(()=>{let t=this.backupId(),e=this.selectOption(),o=this.isRepairing(),n=this.loadedVersions();if(!e||!t)return;let _=this.versionOptions()?.find(k=>k.Version===parseInt(e))?.Time??null;if(!_)return;let u=`${t}+${_}`,I=n[u];if(this.needsDatabaseRepair()&&(!I||o))return;let D={id:t+"",time:_};this.backupSettings.set(D),this.getRootPath(D);});repairEffect=Ga(()=>{if(!this.needsDatabaseRepair())return;let t=this.selectOption(),e=this.versionOptions();if(t){let o=e.find(_=>_.Version===parseInt(t));if(o===void 0)return;let n=this.backupId(),r=`${n}+${o.Time}`;if(this.#_===r||(this.#_=r,this.#s().includes(r)))return;this.#s.update(_=>[..._,r]),this.#e.postApiV1BackupByIdRepairupdate({id:n,requestBody:{only_paths:true,time:o.Time}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.#_=null;})).subscribe(_=>{let u=_.ID;this.#i.waitForTaskToComplete(u).pipe(Fo(1)).subscribe(()=>{this.#s.update(I=>I.filter(D=>D!==r)),this.loadedVersions.update(I=>(I[r]=true,I));});});}});getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:true,folderContents:false},o=t.id+"";this.isRepairing()||this.#l===o||(this.#l=o,this.loadingRootPath.set(true),this.showFileTree.set(false),this.#n.hasV2ListOperations()?this.#e.postApiV2BackupListFolder({requestBody:{BackupId:t.id,Time:t.time,Paths:null,PageSize:0,Page:0,ReturnExtended:true}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false),this.#l=null;})).subscribe({next:n=>{let r=(n.Data??[]).find(u=>u.Metadata&&u.Metadata.ExtType&&u.Metadata.ExtType.length>0);r&&this.extendedDataType.set(r.Metadata.ExtType);let _=(n.Data??[]).map(u=>u.Path??"");_.length>0?(this.initialNodes.set([]),this.rootPaths.set(_)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}):this.#e.getApiV1BackupByIdFiles(e).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false);})).subscribe({next:n=>{let r=n.Files.map(_=>_.Path??"");r.length>0?(this.initialNodes.set([]),this.rootPaths.set(r)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}));}abortLoading$=new fe$1;abortLoading(){this.showFileTree.set(false),this.loadingRootPath.set(false),this.abortLoading$.next(true);}displayFn(){let t=this.versionOptions();return e=>{if(!e)return "";let o=t?.find(n=>typeof n.Version=="number"&&n.Version.toString()===e);return o?`${o.Version}: ${this.#a.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#r.parent});}back(){this.#t.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#r.parent}):this.#t.exit();}performSearch(){let t=this.searchQuery().trim(),e=this.backupSettings(),o=(this.#t.extendedDataType()??"").length>0;if(!t||!e)return;let r=this.versionOptions()?.find(_=>_.Version===parseInt(this.selectOption()??""))?.Version;r!=null&&(this.isSearching.set(true),this.searchResults.set([]),this.hasSearched.set(true),this.#e.postApiV2BackupSearch({requestBody:{BackupId:e.id,Time:null,Version:[r],Filters:[t],Paths:null,PageSize:1e3,Page:0,ReturnExtended:o,SearchMetadata:o}}).pipe(Uu(this.abortLoading$),Bu(()=>this.isSearching.set(false))).subscribe({next:_=>{this.searchResults.set(_.Data??[]);},error:()=>{this.searchResults.set([]);}}));}clearSearch(){this.searchQuery.set(""),this.searchResults.set([]),this.hasSearched.set(false);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-select-files"]],features:[zC([ci])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Select an option...`;let r;r=$localize`(partial)`;let _;_=$localize`Path`;let u;u=$localize`Enter search term...`;let I;I=$localize`Search files`;let D;D=$localize`Search`;let k;k=$localize`Clear`;let oe;oe=$localize`0 results found`;let ne;return ne=$localize`Found ${"\uFFFD0\uFFFD"}:INTERPOLATION: result(s)`,[["formRef",""],t,e,o,r,_,I,D,k,oe,ne,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",n,3,"ngModelChange","ngModel","ngModelOptions"],[1,"custom-option"],[1,"partial"],[3,"hasExtendedData","rootPaths","initialNodes","backupSettings","multiSelect","showFiles","loadExtendedData","searchMode","searchResults"],["for","path"],["type","text","id","path","formControlName","filesToRestore"],[1,"search-container"],["for","search"],["type","text","id","search","placeholder",u,3,"ngModelChange","keydown.enter","ngModel","ngModelOptions"],["shButton","","type","button",1,"small",3,"click","disabled"],[1,"spinner"],["shButton","","type","button",1,"small","secondary"],[1,"search-results-info"],["shButton","","type","button",1,"small","secondary",3,"click"]]},template:function(e,o){e&1&&(Qi(0,"form",11,0),Fg("submit",function(){return o.next()}),Qi(2,"h3",12),XT(3,1),Hl(),oT(4,pt,1,0,"sh-progress-bar",13)(5,Pt,5,7),Qi(6,"div",14)(7,"button",15),Fg("click",function(){return o.back()}),Og(8,2),mg(9,"sh-icon"),Pg(),Hl(),Qi(10,"button",16),Og(11,3),mg(12,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.selectFilesForm),DE(4),iT(o.versionOptionsLoading()?4:5),DE(5),Lg(o.isFileRestore()?"Back":"Exit"),eC(8));},dependencies:[Bn,Tn,Ze,Rn,Pn,Jt,Gn,gn,hn,Se,v,Fe$1,N,Nt$2,d,ci,m$1],styles:["[_nghost-%COMP%]{display:block;margin-top:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.partial[_ngcontent-%COMP%]{color:var(--base-9);font-style:italic}.search-container[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.search-container[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{flex:1}.search-results-info[_ngcontent-%COMP%]{color:var(--base-8);font-size:var(--small)}"]})};var G=class i{#e=T(ee);#t=T(W);#i=T(m);#n=T(be);#o=T(C);backupId=Ue(null);backup=Ue(null);destinationTargetUrl=Ue(null);destinationTestSignal=Ue(null);selectFilesForm=_t();optionsForm=ct();encryptionForm=at();optionsFormSignal=L(this.optionsForm.valueChanges);selectFilesFormSignal=L(this.selectFilesForm.valueChanges);selectOption=Ue(null);versionOptionsLoading=Ue(false);versionOptions=Ue([]);isSubmitting=Ue(false);isFileRestore=Ue(false);isFullWidthPage=Ue(false);extendedDataType=Ue(null);alternateRestorePath=Ue(null);alternateRestorePathSourcePrefix=Ue(null);init(t,e=false){this.backupId.set(t),this.isFileRestore.set(e),this.alternateRestorePath.set(null),this.extendedDataType.set(null),e&&this.#e.navigate(["/restore-from-files/destination"]),e||this.getBackup();}updateTargetUrl(t){this.destinationTargetUrl.set(t);}setAlternateRestorePath(t,e){this.alternateRestorePath.set(t),this.alternateRestorePathSourcePrefix.set(e);}submit(){this.isSubmitting.set(true);let t=this.backupId();this.backup()?.Backup?.IsTemporary??false?this.#o.postApiV1BackupByIdCopytotemp({id:this.backupId()??""}).subscribe({next:o=>{this.#r(o.ID??"");},error:o=>this.showErrorDialog($localize`An error occurred while copying the backup to a temporary location: ${o.message}`)}):this.#r(t??"");}showErrorDialog(t){this.#n.open(h,{data:{title:$localize`Error occured`,message:t,confirmText:$localize`OK`,cancelText:void 0},closed:e=>{}});}#r(t){let e=this.optionsForm.value,o=this.selectFilesForm.value,n=this.selectOption(),r=this.versionOptions()?.find(_=>_.Version===(n&&parseInt(n)));this.#o.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(_=>_.endsWith("/")||_.endsWith("\\")?`${_}*`:_)??[],passphrase:o.passphrase??null,time:r?.Time,restore_path:this.alternateRestorePath()??e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!e.includeMetadata,source_prefix:this.alternateRestorePathSourcePrefix(),connection_string_id:null}}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:_=>{this.#e.navigate([`./${_.ID}`,"progress"],{relativeTo:this.#t});},error:_=>{console.error("restore error",_);}});}exit(){this.#n.open(h,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:t=>{t&&(this.#a(),this.#e.navigate(["/"]));}});}getVersionOptions(){this.versionOptions();}loadFilesetsWithRetryv2(t,e=2){return this.#o.postApiV2BackupListFilesets({requestBody:{BackupId:t}}).pipe(Vs(o=>{let n=o?.error?.body?.StatusCode??o?.error?.requestBody?.StatusCode;return n==="EncryptedStorageNoPassphrase"||n==="FolderMissing"||n==="EmptyRemoteFolder"||e===0?iy(()=>o):Bs(1e3).pipe($u(()=>this.loadFilesetsWithRetryv2(t,e-1)))}))}getBackup(){let t=this.backupId();this.versionOptionsLoading.set(true),this.#i.hasV2ListOperations()?vy([this.#o.getApiV1BackupById({id:t}),this.loadFilesetsWithRetryv2(t)]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{if(o.Error)throw new Error(o.Error);if(!(e.Backup?.IsTemporary??true)&&e?.Backup?.DBPathExists===false){this.#n.open(h,{data:{title:$localize`Missing Local Database`,message:$localize`The local database for this backup is missing. Please repair or recreate the local database before restoring.`,confirmText:$localize`OK`,cancelText:void 0},closed:r=>{this.#e.navigate(["/backup",t,"database"]);}});return}this.versionOptions.set((o.Data??[]).map(r=>({Version:r.Version??-1,IsFullBackup:r.IsFullBackup??void 0,Time:r.Time??"<missing>",FileCount:r.FileCount??void 0,FileSizes:r.FileSizes??void 0}))),this.backup.set(e);},error:e=>{let o=e?.error?.body?.StatusCode??e?.error?.requestBody?.StatusCode,n=o==="EncryptedStorageNoPassphrase",r=o==="FolderMissing",_=o==="EmptyRemoteFolder",u=$localize`An error occurred while loading the backup filesets: ${e.message}`;n&&(u=$localize`The remote storage is encrypted. Please enter the passphrase to access the backup.`),r&&(u=$localize`The backup storage folder was not found.`),_&&(u=$localize`The backup storage folder does not contain any filesets.`),this.#n.open(h,{data:{title:$localize`Failed to load backup filesets`,message:u,confirmText:$localize`OK`,cancelText:void 0},closed:I=>{this.#e.navigate([n?"/restore-from-files/encryption":"/restore-from-files/destination"]);}});}}):vy([this.#o.getApiV1BackupById({id:t}),this.#o.getApiV1BackupByIdFilesets({id:t}).pipe(_y(3))]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{this.versionOptions.set(o.map(n=>({Version:n.Version??-1,IsFullBackup:(n.IsFullBackup??1)==1,Time:n.Time??"<missing>",FileCount:n.FileCount??void 0,FileSizes:n.FileSizes??void 0}))),this.backup.set(e);}});}#a(){this.selectFilesForm.reset(),this.optionsForm.reset();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ee$1({token:i,factory:i.\u0275fac,providedIn:"root"})};function It(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,6),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,7),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Mt(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,8),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,9),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Lt(i,t){if(i&1&&(Qi(0,"app-file-tree",29)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function yt(i,t){if(i&1&&(Qi(0,"app-file-tree",30)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("customRemoteMode",e.extendedDataType())("backupId",e.backupId())("sourcePrefix",e.remoteCustomSourcePrefix())("destinationUrl",e.customDestinationUrl()),DE(3),TD();}}function Dt(i,t){if(i&1&&(oT(0,It,6,0)(1,Mt,6,0),Qi(2,"sh-radio",27),Og(3,5),mg(4,"input",28),DD(),Pg(),Hl(),oT(5,Lt,4,3,"app-file-tree",29),oT(6,yt,4,4,"app-file-tree",30)),i&2){let e=nC();iT(e.extendedDataType()==="o365"?0:e.extendedDataType()==="gsuite"?1:-1),DE(4),TD(),DE(),iT(e.optionsFormSignal()?.restoreFrom==="pickLocation"?5:-1),DE(),iT(e.showCustomRemoteRestoreTree()?6:-1);}}function bt(i,t){if(i&1&&(Qi(0,"sh-radio",27),Og(1,10),mg(2,"input",35),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,11),mg(5,"input",28),DD(),Pg(),Hl(),Qi(6,"app-file-tree",29)(7,"label",33),PC(8,"Path"),Hl(),mg(9,"input",34),DD(),Hl()),i&2){let e=nC();DE(2),TD(),DE(3),TD(),DE(),gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function $t(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,12),Wl(),Qi(3,"sh-toggle",27),Og(4,13),mg(5,"input",36),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD());}function vt(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,14),Wl(),Qi(3,"sh-radio",27),Og(4,15),mg(5,"input",37),DD(),Pg(),Hl(),Qi(6,"sh-radio",27),Og(7,16),mg(8,"input",38),DD(),Pg(),Hl()(),Qi(9,"app-toggle-card"),Ul(10,23),XT(11,17),Wl(),Qi(12,"sh-toggle",39),Og(13,18),mg(14,"input",40),DD(),Pg(),Hl(),Qi(15,"sh-toggle",39),Og(16,19),mg(17,"input",41),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD(),DE(3),TD(),DE(6),TD(),DE(3),TD());}var B=new jn,ct=()=>B.group({restoreFrom:B.control("original"),restoreFromPath:B.control(""),handleExisting:B.control("saveTimestamp"),permissions:B.control(false),includeMetadata:B.control(true),customRemoteIgnoreExisting:B.control(false)}),fe=class i{#e=T(G);#t=T(ee);#i=T(W);#n=T(m);#o=T(be);optionsForm=this.#e.optionsForm;optionsFormSignal=this.#e.optionsFormSignal;isSubmitting=this.#e.isSubmitting;extendedData=this.#e.extendedDataType;remoteCustomTargetUrl=Ue(null);backupId=Nt$1(()=>this.#e.backup()?.Backup?.ID??null);extendedDataType=Nt$1(()=>{let t=this.#e.extendedDataType();return t==="o365"?"o365":t==="gsuite"?"gsuite":null});remoteCustomSourceEntry=Nt$1(()=>this.#e.backup()?.Backup?.Sources?.filter(t=>t.startsWith("@")&&(t.includes("|office365://")||t.includes("|googleworkspace://")))[0]??null);remoteCustomSourceUrl=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[1]??null);remoteCustomSourcePrefix=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[0]??null);customDestinationUrl=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom,e=this.extendedDataType()!==null;return t==="same-custom"&&e?this.remoteCustomSourceUrl():t==="other-custom"&&e?this.remoteCustomTargetUrl():null});showCustomRemoteRestoreTree=Nt$1(()=>!!(this.optionsFormSignal()?.restoreFrom==="same-custom"&&this.customDestinationUrl()&&this.backupId()||this.optionsFormSignal()?.restoreFrom==="other-custom"&&this.customDestinationUrl()));isCustomRemoteRestore=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom;return t==="same-custom"||t==="other-custom"});chooseCustomRemoteDestination(){let t=this.extendedDataType()==="o365"?"office365://":"googleworkspace://";return this.#o.open(Ct$1,{maxWidth:"700px",maxHeight:"80vh",width:"100%",closeOnOutsideClick:false,data:{targetUrlModel:this.remoteCustomTargetUrl()||this.remoteCustomSourceUrl()||t,moduleType:"RestoreDestinationProvider",askToCreate:true,expectedResult:"any",suppressErrorDialogs:true,backupId:this.backupId(),sourcePrefix:this.remoteCustomSourcePrefix()}}).closed.subscribe(o=>{o&&(this.remoteCustomTargetUrl.set(o),this.optionsForm.controls.restoreFrom.setValue("other-custom"));}),false}#r=Ga(()=>{let t=this.optionsFormSignal()?.restoreFrom;this.extendedDataType()!=null&&(t==="original"||t===void 0)&&(this.optionsForm.controls.restoreFrom.setValue("pickLocation"),this.optionsForm.controls.handleExisting.setValue("overwrite")),this.extendedDataType()==null&&(t==="same-custom"||t==="other-custom")&&(this.optionsForm.controls.restoreFrom.setValue("original"),this.optionsForm.controls.handleExisting.setValue("saveTimestamp"));});goBack(){this.#t.navigate(["select-files"],{relativeTo:this.#i.parent});}submit(){let t=this.#e.selectFilesFormSignal()?.filesToRestore??[];if(t.length>0&&this.optionsFormSignal()?.restoreFrom=="original"&&(t[0].includes("/")?"/":"\\")!==this.#n.systemInfo()?.DirectorySeparator){this.#o.open(h,{data:{title:$localize`Confirm target folder`,message:$localize`This backup was created on another operating system. Restoring files without specifying a destination folder can cause files to be restored in unexpected places. Are you sure you want to continue without choosing a destination folder?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:n=>{n&&this.#e.submit();}});return}if(this.optionsFormSignal()?.restoreFrom==="same-custom"||this.optionsFormSignal()?.restoreFrom==="other-custom"){let o=this.optionsFormSignal()?.restoreFromPath;if(o&&o.startsWith("/")&&(o=o.substring(1)),!o||o.trim()===""){this.#o.open(h,{data:{title:$localize`No path specified`,message:this.extendedDataType()==="gsuite"?$localize`Please choose a path to restore to in the Google Workspace account.`:$localize`Please choose a path to restore to in the Microsoft 365 tenant.`,confirmText:$localize`OK`,cancelText:void 0}});return}let n=this.optionsFormSignal()?.customRemoteIgnoreExisting,r=this.customDestinationUrl()?.substring(this.customDestinationUrl().indexOf("?")),_=this.extendedDataType()==="gsuite"?`@googleworkspace://${encodeURIComponent(o)}${r}&google-ignore-existing=${n?"true":"false"}`:`@office365://${encodeURIComponent(o)}${r}&office365-ignore-existing=${n?"true":"false"}`;this.#e.setAlternateRestorePath(_,this.remoteCustomSourcePrefix()),this.optionsForm.controls.includeMetadata.setValue(true),this.optionsForm.controls.permissions.setValue(true);}else this.#e.setAlternateRestorePath(null,null);this.#e.submit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-advanced-options-settings"]],decls:18,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files to?`;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let r;r=$localize` Local file system ${"\uFFFD#4\uFFFD\uFFFD/#4\uFFFD"}:TAG_INPUT:`;let _;_=$localize` Same Microsoft 365 Tenant ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let u;u=$localize` Different Microsoft 365 Tenant ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let I;I=$localize` Same Google Workspace Account ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let D;D=$localize` Different Google Workspace Account ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Original location ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let oe;oe=$localize` Pick location ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let ne;ne=$localize`Restore settings`;let P;P=$localize` Ignore existing resources in the destination ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let he;he=$localize`How do you want to handle existing files?`;let Re;Re=$localize` Overwrite ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let Pe;Pe=$localize` Save different versions with timestamp in file name ${"\uFFFD#8\uFFFD\uFFFD/#8\uFFFD"}:TAG_INPUT:`;let Ie;Ie=$localize`Metadata settings`;let Me;Me=$localize` Restore file metadata ${"\uFFFD#14\uFFFD\uFFFD/#14\uFFFD"}:TAG_INPUT:`;let Le;return Le=$localize` Restore read/write permissions ${"\uFFFD#17\uFFFD\uFFFD/#17\uFFFD"}:TAG_INPUT:`,[["formRef",""],t,e,o,n,r,_,u,I,D,k,oe,ne,P,he,Re,Pe,Ie,Me,Le,[3,"submit","formGroup"],[1,"title-30"],[3,"disableToggle"],["title",""],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled","enableCreateFolder","resolvePaths"],[3,"customRemoteMode","backupId","sourcePrefix","destinationUrl"],["type","radio","name","restoreFrom","value","same-custom","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","other-custom","formControlName","restoreFrom",3,"click"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","restoreFrom","value","original","formControlName","restoreFrom"],["type","checkbox","formControlName","customRemoteIgnoreExisting"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","includeMetadata"],["type","checkbox","formControlName","permissions"]]},template:function(e,o){e&1&&(Qi(0,"form",20,0),Fg("submit",function(){return o.submit()}),Qi(2,"h3",21),XT(3,1),Hl(),Qi(4,"app-toggle-card",22),Ul(5,23),XT(6,2),Wl(),oT(7,Dt,7,3)(8,bt,10,3),Hl(),oT(9,$t,6,1,"app-toggle-card",22)(10,vt,18,1),Qi(11,"div",24)(12,"button",25),Fg("click",function(){return o.goBack()}),Og(13,3),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",26),Og(16,4),mg(17,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.optionsForm),DE(4),gg("disableToggle",true),DE(3),iT(o.extendedDataType()!==null?7:8),DE(2),iT(o.isCustomRemoteRestore()?9:10),DE(6),Qg("loading",o.isSubmitting()));},dependencies:[Gn,Tn,Ze,yt$1,rn,Rn,Pn,gn,hn,Ze$1,Se,J,O,v,N],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};
2
- var chunkWGOXACAK=/*#__PURE__*/Object.freeze({__proto__:null,createEncryptionForm:at,default:Fe});var chunk3VX6DNZL=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreSelectFilesForm:_t,default:Ne});var chunkVCUP6QAX=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreOptionsForm:ct,default:fe});export{G,chunk3VX6DNZL as a,chunkVCUP6QAX as b,chunkWGOXACAK as c};
package/chunk-HWQc1Hoa.js DELETED
@@ -1 +0,0 @@
1
- import {c}from'./chunk-wyNyzSXi.js';import {T,m,N as Nt,U as Ue,d as dw,f as N,bZ as ei,Q as Qi,X as XT,H as Hl,bf as ig,c2 as uC,D as DE,z as gg,a_ as ZC,b_ as Ig,a1 as cT,ag as zg,a2 as lT,k as gT,F as Fg,S as Sd,n as nC,x as xd,o as oT,q as PC,I as Qg,i as iT,E as nm,aF as YC,c4 as sb}from'./main-KFKZO6SJ.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),PC(1,"caret-down"),Hl()),e&2){let t=nC().$implicit;Qg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),PC(1,"dot"),Hl());}function J(e,n){e&1&&Ig(0);}function U(e,n){if(e&1&&ig(0,J,1,0,"ng-container",3),e&2){let t=nC().$implicit,o=nC().$implicit;nC();let i=uC(3);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,L,YC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=gT();Qi(0,"div",4,1),Fg("click",function(){let i=Sd(t).$implicit,G=nC(2);return xd(i.children.length>0&&G.toggleNode(i))}),oT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),PC(5),Hl()(),oT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Qg("cannot-toggle",t.children.length===0)("open",t.isOpen()),DE(2),iT(t.children.length>0?2:3),DE(3),nm(t.text),DE(),iT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),cT(1,X,7,7,null,null,V),Hl()),e&2){let t=n.$implicit;zg("padding-left",t.level*.25,"rem"),DE(),lT(t.children);}}function H(e,n){e&1&&Ig(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ue(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ue(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=dw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),XT(1,2),Hl(),ig(2,q,3,2,"ng-template",null,0,sb)(4,H,1,0,"ng-container",3)),t&2){let i=uC(3);DE(4),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(4,L,ZC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};
package/chunk-LL0IHZns.js DELETED
@@ -1 +0,0 @@
1
- import {e as ee}from'./chunk-B0RBkC1E.js';import'./chunk-BB1pOOUx.js';import'./chunk-DN6f5jXR.js';import'./chunk-3RXp81pP.js';import'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import {T,ab as C,aw as W,N as Nt,U as Ue,d as dw,f as N,v as v$1,_ as _t,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,F as Fg,o as oT,a1 as cT,D as DE,z as gg,a_ as ZC,i as iT,a2 as lT,t as tC,X as XT,q as PC,aa as Gl,ap as sT}from'./main-KFKZO6SJ.js';import'./chunk-CRAg6SRo.js';import'./chunk-DuIUmwWN.js';import'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import {L}from'./chunk-C7pjkqKB.js';import'./chunk-PVmXLw9b.js';var k=e=>({state:e});function y(e,t){e&1&&XT(0,2,1);}function v(e,t){e&1&&XT(0,2,2);}function U(e,t){e&1&&XT(0,2,3);}function G(e,t){e&1&&XT(0,2,4);}function K(e,t){if(e&1&&(PC(0),mg(1,"br")),e&2){let o=t.$implicit;Gl(" ",o," ");}}var S=class e{#t=T(C);#e=T(W);#n=L(this.#e.params);#o=L(this.#e.queryParams);runId=Nt(()=>this.#n()?.runId);stateId=Nt(()=>this.#o()?.state);offset=Ue(0);status=Ue("starting");messageLog=Ue([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(o=>[...o,...t.Items]);});},1e3);evalStatus(t){t.Started===true&&t.Finished===true&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===true&&t.Finished===false&&this.status.set("started");}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval);}});}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=dw({type:e,selectors:[["app-commandline-result"]],decls:18,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let n;return n=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,n=tC(n),[t,o,n,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"]]},template:function(o,n){o&1&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"div",3)(3,"button",4),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),Qi(6,"h3"),Og(7,1),Qi(8,"button",5),Fg("click",function(){return n.abort()}),Hl(),Pg(),Hl(),Qi(9,"div",6),Og(10,2),oT(11,y,1,0),oT(12,v,1,0),oT(13,U,1,0),oT(14,G,1,0),Pg(),Hl(),Qi(15,"code"),cT(16,K,2,1,null,null,sT),Hl()()),o&2&&(DE(3),gg("queryParams",ZC(5,k,n.stateId())),DE(8),iT(n.status()==="starting"?11:-1),DE(),iT(n.status()==="started"?12:-1),DE(),iT(n.status()==="finished"?13:-1),DE(),iT(n.status()==="aborted"?14:-1),DE(2),lT(n.messageLog()));},dependencies:[ee,N,v$1,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{S as default};
package/chunk-Zo-grJt3.js DELETED
@@ -1 +0,0 @@
1
- var t=[{path:"",redirectTo:"destination",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-BIL3nR4_.js')},{path:"encryption",loadComponent:()=>import('./chunk-D2g5mSLr.js').then(function(n){return n.c})},{path:"select-config",loadComponent:()=>import('./chunk-DkdGEw1e.js')}],o=t;export{o as default};
package/chunk-glhLCQrb.js DELETED
@@ -1 +0,0 @@
1
- import {d}from'./chunk-CRAg6SRo.js';import {L}from'./chunk-C7pjkqKB.js';import {T,ab as C,bg as Q,m,U as Ue,N as Nt,aG as pt,C as Bu,d as dw,v,f as N,o as oT,Q as Qi,X as XT,H as Hl,q as PC,i as iT,D as DE,au as Lg,av as eC,E as nm,j as mg,k as gT,F as Fg,S as Sd,n as nC,x as xd,I as Qg,O as Og,P as Pg,z as gg,ar as Wp}from'./main-KFKZO6SJ.js';function w(n,t){n&1&&mg(0,"sh-progress-bar",3);}function V(n,t){if(n&1&&(Qi(0,"a",7),Og(1,2),mg(2,"sh-icon"),Pg(),Hl()),n&2){let e=nC(2);gg("href",e.serverState()?.UpdateDownloadLink,Wp),DE(2),Lg(e.serverState()?.UpdatedVersion),eC(1);}}function B(n,t){if(n&1){let e=gT();Qi(0,"button",6),Fg("click",function(){Sd(e);let s=nC();return xd(s.checkForUpdates())}),PC(1,"Check for updates"),Hl(),oT(2,V,3,2,"a",7);}if(n&2){let e=nC();Qg("loading",e.checkingForUpdates()),DE(2),iT(e.serverState()?.UpdateDownloadLink?2:-1);}}function J(n,t){if(n&1){let e=gT();Qi(0,"button",6),Fg("click",function(){Sd(e);let s=nC();return xd(s.checkForUpdates())}),PC(1,"Checking for updates \u2026"),Hl();}}function X(n,t){n&1&&mg(0,"sh-progress-bar",3);}var h=class n{#e=T(C);#n=T(Q);#t=T(m);isLoading=Ue(true);checkingForUpdates=Ue(false);serverState=this.#n.serverState;duplicatiVersion=Nt(()=>this.#t.systemInfo()?.ServerVersionName??"Unknown");generalInfo=L(this.#e.getApiV1Acknowledgements().pipe(pt(t=>t.Acknowledgements),Bu(()=>this.isLoading.set(false))));checkForUpdates(){this.checkingForUpdates.set(true),this.#e.postApiV1UpdatesCheck().pipe(Bu(()=>this.checkingForUpdates.set(false))).subscribe();}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-general"]],decls:12,vars:5,consts:()=>{let t;t=$localize`General`;let e;e=$localize`You're running Duplicati with - ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let i;return i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:download${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Download update - ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[t,e,i,[1,"indeterminate","primary"],[1,"actions"],["shButton",""],["shButton","",3,"click"],["shButton","","target","_blank",1,"primary","raised",3,"href"]]},template:function(e,i){e&1&&(oT(0,w,1,0,"sh-progress-bar",3),Qi(1,"section")(2,"h3"),XT(3,0),Hl(),Qi(4,"p"),XT(5,1),Hl(),Qi(6,"div",4),oT(7,B,3,3)(8,J,2,0,"button",5),oT(9,X,1,0,"sh-progress-bar",3),Hl(),Qi(10,"div"),PC(11),Hl()()),e&2&&(iT(i.isLoading()?0:-1),DE(5),Lg(i.duplicatiVersion()),eC(5),DE(2),iT(i.serverState()?.UpdaterState==="Waiting"?7:i.serverState()?.UpdaterState==="Checking"?8:-1),DE(2),iT(i.serverState()?.UpdaterState==="Downloading"?9:-1),DE(2),nm(i.generalInfo()));},dependencies:[d,v,N],styles:["[_nghost-%COMP%]{display:block;position:relative;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{h as default};
package/chunk-yF6CJHRg.js DELETED
@@ -1 +0,0 @@
1
- import {G}from'./chunk-DwMhABnQ.js';import {w as w$1}from'./chunk-BD9-OWSe.js';import'./chunk-Dgns65Zu.js';import {e as ee$1}from'./chunk-B0RBkC1E.js';import'./chunk-BB1pOOUx.js';import'./chunk-DN6f5jXR.js';import'./chunk-3RXp81pP.js';import {k as ke}from'./chunk-ByhuT4BS.js';import'./chunk-C4kBXz3C.js';import'./chunk-Dh6x3lXP.js';import'./chunk-DD_QfWih.js';import'./chunk-khm9J_G0.js';import'./chunk-wyNyzSXi.js';import'./chunk-CegwkGVu.js';import'./chunk-CT9ziigM.js';import'./chunk-D5lj-fQk.js';import'./chunk-D6aNT_wo.js';import'./chunk-OLi7f6y7.js';import'./chunk-B2TXzbpy.js';import {T,aw as W,e as ee,U as Ue,G as Ga,b6 as k$1,d as dw,Z as lr,_ as _t,a8 as To,j as mg,o as oT,Q as Qi,H as Hl,D as DE,i as iT,aD as zC,I as Qg,n as nC,X as XT,z as gg,a3 as QC,a_ as ZC}from'./main-KFKZO6SJ.js';import'./chunk-DPNAj9Vc.js';import'./chunk-CRAg6SRo.js';import'./chunk-DuIUmwWN.js';import'./chunk-DipTNkHN.js';import'./chunk-Fw6nFDZK.js';import'./chunk-Ca1C9pJ0.js';import'./chunk-C-NgIZiF.js';import {L}from'./chunk-C7pjkqKB.js';import'./chunk-PVmXLw9b.js';var w=()=>["/restore-from-files/destination"],k=()=>["/restore-from-files/encryption"],x=()=>["/restore-from-files/select-files"],J=()=>["/restore-from-files/options"],X=t=>["/restore",t,"select-files"],D=t=>["/restore",t,"options"];function z(t,n){t&1&&(Qi(0,"div",7),XT(1,0),Hl(),Qi(2,"div",7),XT(3,1),Hl(),Qi(4,"div",8),XT(5,2),Hl(),Qi(6,"div",8),XT(7,3),Hl()),t&2&&(gg("routerLink",QC(4,w)),DE(2),gg("routerLink",QC(5,k)),DE(2),gg("routerLink",QC(6,x)),DE(2),gg("routerLink",QC(7,J)));}function B(t,n){if(t&1&&(Qi(0,"div",7),XT(1,4),Hl(),Qi(2,"div",7),XT(3,5),Hl()),t&2){let e=nC(2);gg("routerLink",ZC(2,X,e.backupId())),DE(2),gg("routerLink",ZC(4,D,e.backupId()));}}function U(t,n){if(t&1&&(Qi(0,"sh-stepper",6),oT(1,z,8,8)(2,B,4,6),Hl()),t&2){let e=nC();DE(),iT(e.isFileRestore()?1:2);}}var f=class t{#e=T(W);#n=T(ee);#t=T(G);#i=L(this.#e.params);#o=L(this.#e.url);#r=L(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isFullWidthPage=Ue(false);paramsChanged=Ga(()=>{let n=this.#r(),e=this.#i()?.id,r=!!this.#o()?.find(s=>s.path==="restore-from-files"),d=!!n?.find(s=>s.path==="select-files"),R=!!n?.find(s=>s.path==="progress");this.isFullWidthPage.set(R||d),this.#t.init(e,r);});ngOnInit(){this.#n.events.subscribe(n=>{if(n instanceof k$1){let e=n.urlAfterRedirects;this.isFullWidthPage.set(e.includes("progress")||e.includes("select-files"));}});}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(e,r){e&2&&Qg("full-width",r.isFullWidthPage());},features:[zC([G,ke])],decls:4,vars:1,consts:()=>{let n;n=$localize` Destination `;let e;e=$localize` Encryption `;let r;r=$localize` Select files `;let d;d=$localize` Options `;let R;R=$localize` Select files `;let s;return s=$localize`Options`,[n,e,r,d,R,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,r){e&1&&(mg(0,"app-status-bar"),oT(1,U,3,1,"sh-stepper",6),Qi(2,"section"),mg(3,"router-outlet"),Hl()),e&2&&(DE(),iT(r.isFullWidthPage()?-1:1));},dependencies:[w$1,ee$1,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{f as default};