@duplicati/ngclient 0.0.232 → 0.0.234

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 (129) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-DJJ8GbYi.js → chunk-0lYdrxte.js} +1 -1
  3. package/{chunk-C80zvTbO.js → chunk-1-oPQ4n-.js} +1 -1
  4. package/{chunk-ihUnHtR7.js → chunk-5EFCeqK3.js} +1 -1
  5. package/{chunk-Cg09iQR5.js → chunk-5kQsbzck.js} +1 -1
  6. package/{chunk-vnqcxg-9.js → chunk-AHhgJqe4.js} +1 -1
  7. package/{chunk-CAwTsBqQ.js → chunk-B-T54LAJ.js} +1 -1
  8. package/{chunk-CgyaUJSI.js → chunk-B-c3Zv6R.js} +1 -1
  9. package/{chunk-DvyGZpE4.js → chunk-B0ETfgeR.js} +2 -2
  10. package/chunk-B1dNb-QT.js +1 -0
  11. package/{chunk-CwKy8pxa.js → chunk-B8PnvglY.js} +1 -1
  12. package/{chunk-CTm37hI-.js → chunk-BAmgFjXY.js} +1 -1
  13. package/chunk-BDhLEYas.js +1 -0
  14. package/{chunk-BYWmNy-_.js → chunk-BFVhQEGw.js} +1 -1
  15. package/{chunk-aOMoAKYY.js → chunk-BFquKzMb.js} +1 -1
  16. package/{chunk-CX26gEKv.js → chunk-BGcVKmjp.js} +1 -1
  17. package/{chunk-vPGrgL1U.js → chunk-BHrABvoK.js} +1 -1
  18. package/chunk-BNG7N21y.js +1 -0
  19. package/{chunk-DoQHDPZg.js → chunk-BQapkAzp.js} +1 -1
  20. package/chunk-BRqx-u9-.js +2 -0
  21. package/{chunk-Dn8nZWLd.js → chunk-BaNH2nfC.js} +1 -1
  22. package/{chunk-Brvxo-yI.js → chunk-BaR3Dslz.js} +1 -1
  23. package/{chunk-DqIU7ViF.js → chunk-BaknLOqq.js} +1 -1
  24. package/{chunk-DKZlKdfB.js → chunk-Bg98dUtr.js} +1 -1
  25. package/{chunk-CkrxdjhU.js → chunk-BiSIt2zb.js} +2 -2
  26. package/chunk-BkLND74M.js +1 -0
  27. package/{chunk-B8uF0dom.js → chunk-BnFO-7ok.js} +1 -1
  28. package/{chunk-CVQPUpDQ.js → chunk-BqbJuWHd.js} +2 -2
  29. package/chunk-C4zj812G.js +1 -0
  30. package/chunk-C5G4RPpS.js +1 -0
  31. package/{chunk-D5tms-6w.js → chunk-CA-0mTsq.js} +1 -1
  32. package/chunk-CAEYxmzQ.js +1 -0
  33. package/chunk-CGnsbLNG.js +1 -0
  34. package/chunk-CPjYiawK.js +1 -0
  35. package/chunk-CQHKuUqk.js +2 -0
  36. package/{chunk-Saq2s7Ep.js → chunk-CSYDDxaa.js} +1 -1
  37. package/{chunk-Bja52qI7.js → chunk-CTH9uShX.js} +1 -1
  38. package/{chunk-Dum38U6w.js → chunk-CUNe6D-d.js} +2 -2
  39. package/chunk-CUaDFQyH.js +1 -0
  40. package/chunk-CnyuuWJ3.js +1 -0
  41. package/{chunk-BVEyeg9y.js → chunk-CsgB8OpN.js} +1 -1
  42. package/chunk-CspKioFm.js +4 -0
  43. package/{chunk-BTgf5lfZ.js → chunk-Cv4o9u3S.js} +1 -1
  44. package/chunk-CxOam2tf.js +1 -0
  45. package/{chunk-Cu2bh6aQ.js → chunk-CxUx2RFx.js} +1 -1
  46. package/{chunk-CIcBoEH1.js → chunk-D0qGkLVr.js} +1 -1
  47. package/{chunk-Bt_Ie-F3.js → chunk-D4S_1RMU.js} +1 -1
  48. package/{chunk-B53Wj4F9.js → chunk-D5zSyubd.js} +1 -1
  49. package/chunk-D6WUhpxO.js +14 -0
  50. package/{chunk-BEhUV7oX.js → chunk-D7C8xyJI.js} +1 -1
  51. package/{chunk-BlTnmRGU.js → chunk-D9dEfxn4.js} +1 -1
  52. package/{chunk-ivwxSoND.js → chunk-DB1KeglF.js} +1 -1
  53. package/{chunk-Box6Lckh.js → chunk-DCsYP4vf.js} +1 -1
  54. package/chunk-DGO0_pkA.js +2 -0
  55. package/chunk-DKOaWS_j.js +2 -0
  56. package/{chunk-DzmZd524.js → chunk-DP2sLJDC.js} +1 -1
  57. package/chunk-DXh9g32e.js +1 -0
  58. package/{chunk-CartdZy-.js → chunk-DYfv4gJW.js} +1 -1
  59. package/chunk-DZMTCfoN.js +1 -0
  60. package/chunk-DcU0yXkQ.js +1 -0
  61. package/chunk-Dg-uYwbp.js +2 -0
  62. package/{chunk-Cz0KuBHB.js → chunk-DmwtL4h3.js} +2 -2
  63. package/chunk-DnTA-m4k.js +2 -0
  64. package/{chunk-B9maI7Xa.js → chunk-DqoYKCmi.js} +3 -3
  65. package/{chunk-CUaRQ2FJ.js → chunk-Du0Hd0t6.js} +1 -1
  66. package/{chunk-BpRWdcC8.js → chunk-Dyq6iPbF.js} +1 -1
  67. package/chunk-DzYR8wiz.js +2 -0
  68. package/{chunk-DUYvFN8m.js → chunk-FZcbbWYC.js} +1 -1
  69. package/{chunk-Bb6BmVO4.js → chunk-GKdOPH_4.js} +2 -2
  70. package/{chunk-DmDqcC4A.js → chunk-KNmRQWOM.js} +1 -1
  71. package/{chunk-BBsBaTWO.js → chunk-OIDsf_Aq.js} +1 -1
  72. package/{chunk-Bo1yB-fQ.js → chunk-S-sgDIKw.js} +1 -1
  73. package/{chunk-DI7suso2.js → chunk-UCY_7-Of.js} +1 -1
  74. package/{chunk-CKnRcyHZ.js → chunk-UUMQmD5I.js} +2 -2
  75. package/{chunk-BkIXk6uR.js → chunk-X3dwwJIr.js} +2 -2
  76. package/chunk-_J1lTnCH.js +1 -0
  77. package/{chunk-C4GeR7BF.js → chunk-i6kMmbhY.js} +1 -1
  78. package/chunk-oobMnyEm.js +3 -0
  79. package/{chunk-CHzwXmsn.js → chunk-pxcB56N0.js} +1 -1
  80. package/{chunk-umW-K0Ca.js → chunk-sgM_r5NM.js} +1 -1
  81. package/{chunk-Rp7-yjlz.js → chunk-umUQn7LQ.js} +1 -1
  82. package/{chunk-B52v_pjw.js → chunk-xwdrpTfz.js} +2 -2
  83. package/index.html +1 -1
  84. package/locale/messages.de.json +69 -9
  85. package/locale/messages.de_CH.json +68 -8
  86. package/locale/messages.de_DE.json +68 -8
  87. package/locale/messages.en.json +32 -8
  88. package/locale/messages.fr.json +77 -13
  89. package/locale/messages.fr_CA.json +72 -8
  90. package/locale/messages.fr_FR.json +72 -8
  91. package/locale/messages.it.json +76 -12
  92. package/locale/messages.it_IT.json +72 -8
  93. package/locale/messages.json +32 -8
  94. package/locale/messages.ko.json +8 -15
  95. package/locale/messages.nl_BE.json +72 -8
  96. package/locale/messages.nl_NL.json +72 -8
  97. package/locale/messages.tr.json +7 -9
  98. package/locale/messages.zh-Hans.json +159 -16
  99. package/locale/messages.zh-Hant.json +159 -16
  100. package/locale/messages.zh.json +159 -16
  101. package/locale/messages.zh_CN.json +159 -16
  102. package/locale/messages.zh_HK.json +7 -8
  103. package/locale/messages.zh_TW.json +159 -16
  104. package/{main-VVQP2YE7.js → main-XKLDSNLY.js} +13 -13
  105. package/package.json +1 -1
  106. package/chunk-B73LRsqH.js +0 -1
  107. package/chunk-BBU0vswn.js +0 -1
  108. package/chunk-BI14DMeb.js +0 -1
  109. package/chunk-BO2GlieG.js +0 -1
  110. package/chunk-BS8PXjJJ.js +0 -1
  111. package/chunk-BaxM-kGV.js +0 -2
  112. package/chunk-BkUa7yBI.js +0 -1
  113. package/chunk-BqN36tfl.js +0 -1
  114. package/chunk-BvGGBIy7.js +0 -1
  115. package/chunk-CGArETYn.js +0 -1
  116. package/chunk-CTRzgLM9.js +0 -2
  117. package/chunk-CTwO6j97.js +0 -1
  118. package/chunk-CUuyy9Er.js +0 -1
  119. package/chunk-CZoVeRAG.js +0 -2
  120. package/chunk-Cjb79u3p.js +0 -2
  121. package/chunk-CtEMAj2d.js +0 -2
  122. package/chunk-Cu4siB3B.js +0 -4
  123. package/chunk-DTu0ZYnR.js +0 -1
  124. package/chunk-DY3nK3tu.js +0 -2
  125. package/chunk-DYnVzNxt.js +0 -1
  126. package/chunk-DZm4l28A.js +0 -3
  127. package/chunk-Da_-7L7P.js +0 -2
  128. package/chunk-kU0H989B.js +0 -14
  129. package/chunk-mby7fvmj.js +0 -1
package/chunk-CZoVeRAG.js DELETED
@@ -1,2 +0,0 @@
1
- import {N as Ne$1,C as Ct$1,M as Mt}from'./chunk-Cjb79u3p.js';import {I as I$1}from'./chunk-DJJ8GbYi.js';import {J}from'./chunk-DUYvFN8m.js';import {j as je$1}from'./chunk-ihUnHtR7.js';import {N as Nt$1}from'./chunk-Bb6BmVO4.js';import {v as ve$1}from'./chunk-DmDqcC4A.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {B as Bn,Z as Ze$1,e as en,y as yt$1,R as Rn,J as Jt}from'./chunk-BO2GlieG.js';import {a as at$1}from'./chunk-CKnRcyHZ.js';import {T,m,af as E1,b as I1,G as Ge$1,N as Nt,aj as l,ai as m$1,h as hw,b_ as ei,v,d as N,Q as Qi,aP as ql,n as nC,aQ as Gl,f as aT,$ as $l,bg as ag,A as yg,C as CE,i as cT,l as vT,V as Vg,r as kd,k as iC,O as Od,L as Lg,j as vg,F as Fg,a1 as dT,ap as lT,a2 as fT,s as CD,a3 as KC,y as _D,w as jC,J as om,ak as um,al as WC,Y as Yg,aa as Ql,ao as qC,c4 as pC,a$ as JC,b$ as Dg,c6 as lb}from'./main-VVQP2YE7.js';import'./chunk-BpRWdcC8.js';import'./chunk-CAwTsBqQ.js';import'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import'./chunk-B8uF0dom.js';import'./chunk-DqIU7ViF.js';import'./chunk-Box6Lckh.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=vT();Qi(0,"button",15),Vg("click",function(){kd(e);let n=iC();return Od(n.showTextArea.set(false))}),Lg(1,6),vg(2,"sh-icon"),Fg(),$l();}}function Le(t,i){if(t&1){let e=vT();Qi(0,"button",19,1),Vg("click",function(){let n=kd(e).$implicit,a=iC(3);return Od(a.addSetting(n))}),Qi(2,"div",20),jC(3),Qi(4,"p"),jC(5),$l()()();}if(t&2){let e=i.$implicit;Yg("deprecated",e.deprecatedDescription),CE(3),Ql(" ",e.shortDescription," "),CE(2),om(e.name);}}function Ie(t,i){if(t&1&&(Qi(0,"h3",11),jC(1),$l(),dT(2,Le,6,4,"button",18,lT)),t&2){let e=i.$implicit;CE(),om(e.displayName),CE(),fT(e.options);}}function Ve(t,i){if(t&1){let e=vT();Qi(0,"sh-menu")(1,"button",21)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,17),Qi(5,"button",15),Vg("click",function(){kd(e);let n=iC(2);return Od(n.addFreeTextSetting())}),Lg(6,8),vg(7,"sh-icon"),Fg(),$l(),Qi(8,"button",22),Vg("click",function(){kd(e);let n=iC(2);return Od(n.showTextArea.set(true))}),Qi(9,"sh-icon"),jC(10,"link"),$l(),jC(11," Edit contents as text "),$l(),Qi(12,"button",15),Vg("click",function(){kd(e);let n=iC(2);return Od(n.showOptionNames.set(!n.showOptionNames()))}),Lg(13,9),vg(14,"sh-icon"),Fg(),$l(),Gl(),$l();}}function Ne(t,i){if(t&1&&(Qi(0,"sh-menu",16)(1,"button",13),Lg(2,7),vg(3,"sh-icon"),Fg(),$l(),ql(4,17),dT(5,Ie,4,1,null,null,lT),Gl(),$l(),aT(7,Ve,15,0,"sh-menu")),t&2){let e=iC();yg("searchable",true),CE(5),fT(e.nonSelectedOptionsGrouped()),CE(2),cT(e.hasFreeTextSettings()?7:-1);}}function be(t,i){if(t&1){let e=vT();Qi(0,"textarea",23),Vg("ngModelChange",function(n){kd(e);let a=iC();return Od(a.updateSettingsFromText(n))}),$l(),CD();}if(t&2){let e=iC();yg("ngModel",e.settingsAsText())("ngModelOptions",KC(2,he)),_D();}}function Ee(t,i){t&1&&(Qi(0,"div",24),jC(1,"Add a setting above to get started."),$l());}function Me(t,i){t&1&&(Qi(0,"sh-icon",32),jC(1," warning-octagon "),$l());}function Pe(t,i){if(t&1&&(Qi(0,"span",33),jC(1),$l()),t&2){let e=iC(2).$implicit;CE(),Ql("--",e.FormView.name);}}function ve(t,i){if(t&1&&jC(0),t&2){let e=iC(2).$implicit;Ql(" ",e.FormView.shortDescription," ");}}function $e(t,i){if(t&1&&(Qi(0,"sh-icon",34),jC(1,"archive"),$l()),t&2){let e=iC(2).$implicit;yg("shTooltip",e.FormView.deprecatedDescription);}}function Ae(t,i){if(t&1&&(Qi(0,"sh-icon",35),jC(1,"question"),$l()),t&2){let e=iC(2).$implicit;yg("shTooltip",e.FormView.longDescription);}}function De(t,i){if(t&1&&(aT(0,Me,2,0,"sh-icon",32),Qi(1,"span"),aT(2,Pe,2,1,"span",33)(3,ve,1,1),$l(),aT(4,$e,2,1,"sh-icon",34)(5,Ae,2,1,"sh-icon",35)),t&2){let e=iC().$implicit,o=qC(1),n=iC(2);cT(o?0:-1),CE(),Yg("deprecated",e.FormView.deprecatedDescription),CE(),cT(n.showOptionNames()?2:3),CE(2),cT(e.FormView.deprecatedDescription?4:e.FormView.longDescription?5:-1);}}function Re(t,i){t&1&&Dg(0);}function Ge(t,i){if(t&1){let e=vT();Qi(0,"div",26)(1,"label"),ag(2,Re,1,0,"ng-container",36),$l(),Qi(3,"div")(4,"sh-form-field")(5,"input",37),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateFreeTextSettingName(a,n))}),$l(),CD(),Qi(6,"sh-icon",38),jC(7,"rectangle-dashed"),$l()()(),Qi(8,"div")(9,"sh-form-field")(10,"input",37),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),Qi(11,"sh-icon",38),jC(12,"textbox"),$l()()()();}if(t&2){let e=iC().$implicit,o=pC(3);CE(2),yg("ngTemplateOutlet",o),CE(3),yg("ngModel",e.Name),_D(),CE(5),yg("ngModel",e.Value()),_D();}}function ke(t,i){t&1&&Dg(0);}function Be(t,i){if(t&1){let e=vT();Qi(0,"app-file-tree",27)(1,"label",39),ag(2,ke,1,0,"ng-container",36),$l(),Qi(3,"input",40),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);yg("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",true)("showHiddenNodes",true)("selectFiles",true)("hideShortcuts",false)("resolvePaths",true),CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("id",n)("ngModel",e.Value()),_D();}}function ze(t,i){if(t&1){let e=vT();Qi(0,"app-file-tree",28),vg(1,"label",39),Qi(2,"input",40),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),$l();}if(t&2){let e=iC().$implicit,o=qC(0);yg("startingPath",e.Value())("hideShortcuts",false)("resolvePaths",true),CE(),yg("for",o),CE(),yg("id",o)("ngModel",e.Value()),_D();}}function Ue(t,i){t&1&&Dg(0);}function Ke(t,i){t&1&&Dg(0);}function He(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"link"),$l());}function Je(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"hard-drives"),$l());}function Xe(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"jar"),$l());}function je(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"envelope"),$l());}function qe(t,i){t&1&&(Qi(0,"sh-icon",38),jC(1,"textbox"),$l());}function Qe(t,i){if(t&1){let e=vT();Qi(0,"sh-form-field")(1,"label",39),ag(2,Ue,1,0,"ng-container",36)(3,Ke,1,0,"ng-container",41),$l(),Qi(4,"input",42),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),aT(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),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(10,V,JC(8,I,e.FormView))),CE(),yg("type",e.FormView.type==="Email"?"email":"text")("id",n)("ngModel",e.Value()),_D(),CE(),cT(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&&Dg(0);}function Ye(t,i){t&1&&Dg(0);}function Ze(t,i){if(t&1){let e=vT();Qi(0,"sh-icon",45),Vg("click",function(){kd(e);let n=iC(2).$implicit;return Od(n.showPassword=!n.showPassword)}),jC(1," eye "),$l();}}function et(t,i){if(t&1){let e=vT();Qi(0,"sh-icon",45),Vg("click",function(){kd(e);let n=iC(2).$implicit;return Od(n.showPassword=!n.showPassword)}),jC(1," eye-slash "),$l();}}function tt(t,i){if(t&1){let e=vT();Qi(0,"sh-form-field")(1,"label",39),ag(2,We,1,0,"ng-container",36)(3,Ye,1,0,"ng-container",41),$l(),Qi(4,"input",43),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),Qi(5,"sh-icon",38),jC(6,"password"),$l(),aT(7,Ze,2,0,"sh-icon",44)(8,et,2,0,"sh-icon",44),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(10,V,JC(8,I,e.FormView))),CE(),yg("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),_D(),CE(3),cT(e.showPassword?7:8);}}function nt(t,i){t&1&&Dg(0);}function it(t,i){t&1&&Dg(0);}function ot(t,i){if(t&1&&jC(0),t&2){let e=i.$implicit;Ql(" ",e," ");}}function at(t,i){if(t&1){let e=vT();Qi(0,"sh-select",46)(1,"label",39),ag(2,nt,1,0,"ng-container",36)(3,it,1,0,"ng-container",41),$l(),Qi(4,"input",40),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),$l(),ag(5,ot,1,1,"ng-template",null,3,lb);}if(t&2){let e=pC(6),o=iC().$implicit,n=pC(3),a=qC(0);iC(2);let c=pC(10);yg("options",o.FormView.options)("isClearable",false)("optionTemplate",e),CE(),yg("for",a),CE(),yg("ngTemplateOutlet",n),CE(),yg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(11,V,JC(9,I,o.FormView))),CE(),yg("id",a)("ngModel",o.Value()),_D();}}function rt(t,i){t&1&&Dg(0);}function lt(t,i){t&1&&Dg(0);}function _t(t,i){if(t&1){let e=vT();Qi(0,"app-size",47),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),Qi(1,"label",39),ag(2,rt,1,0,"ng-container",36)(3,lt,1,0,"ng-container",41),$l()(),CD();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);yg("inputType",e.Name)("ngModel",e.Value())("customId",n),_D(),CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(9,V,JC(7,I,e.FormView)));}}function st(t,i){t&1&&Dg(0);}function pt(t,i){t&1&&Dg(0);}function ct(t,i){if(t&1){let e=vT();Qi(0,"sh-form-field")(1,"label",39),ag(2,st,1,0,"ng-container",36)(3,pt,1,0,"ng-container",41),$l(),Qi(4,"input",48),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),Qi(5,"sh-icon",38),jC(6,"numpad"),$l()();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(8,V,JC(6,I,e.FormView))),CE(),yg("id",n)("ngModel",e.Value()),_D();}}function mt(t,i){t&1&&Dg(0);}function dt(t,i){t&1&&Dg(0);}function ut(t,i){if(t&1){let e=vT();Qi(0,"sh-toggle",30)(1,"label",39),ag(2,mt,1,0,"ng-container",36)(3,dt,1,0,"ng-container",41),$l(),Qi(4,"input",49),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),$l();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(8,V,JC(6,I,e.FormView))),CE(),yg("id",n)("ngModel",e.Value()),_D();}}function Ct(t,i){t&1&&Dg(0);}function gt(t,i){t&1&&Dg(0);}function ft(t,i){if(t&1&&jC(0),t&2){let e=i.$implicit;Ql(" ",e," ");}}function yt(t,i){if(t&1){let e=vT();Qi(0,"sh-select",50)(1,"label",39),ag(2,Ct,1,0,"ng-container",36)(3,gt,1,0,"ng-container",41),$l(),Qi(4,"input",51),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),$l(),CD(),$l(),ag(5,ft,1,1,"ng-template",null,4,lb);}if(t&2){let e=pC(6),o=iC().$implicit,n=pC(3),a=qC(0);iC(2);let c=pC(10);yg("options",o.FormView.options)("selectMultiple",true)("optionTemplate",e),CE(),yg("for",a),CE(),yg("ngTemplateOutlet",n),CE(),yg("ngTemplateOutlet",c)("ngTemplateOutletContext",JC(10,V,JC(8,I,o.FormView))),CE(),yg("ngModel",o.Value()),_D();}}function Tt(t,i){t&1&&Dg(0);}function xt(t,i){t&1&&Dg(0);}function St(t,i){if(t&1){let e=vT();Qi(0,"app-timespan",47),Vg("ngModelChange",function(n){kd(e);let a=iC().$implicit,c=iC(2);return Od(c.updateSettingValue(a,n))}),Qi(1,"label",39),ag(2,Tt,1,0,"ng-container",36)(3,xt,1,0,"ng-container",41),$l()(),CD();}if(t&2){let e=iC().$implicit,o=pC(3),n=qC(0);iC(2);let a=pC(10);yg("inputType",e.Name)("ngModel",e.Value())("customId",n),_D(),CE(),yg("for",n),CE(),yg("ngTemplateOutlet",o),CE(),yg("ngTemplateOutlet",a)("ngTemplateOutletContext",JC(9,V,JC(7,I,e.FormView)));}}function Ot(t,i){if(t&1){let e=vT();um(0)(1),ag(2,De,6,5,"ng-template",null,2,lb),Qi(4,"div",25),aT(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),Vg("click",function(){let n=kd(e).$implicit,a=iC(2);return Od(a.removeSetting(n))}),Qi(17,"sh-icon"),jC(18,"x-bold"),$l()()();}if(t&2){let e=i.$implicit,o=i.$index,n=iC(2);WC("destination-"+e.Name+o),CE(),WC(n.inAppOptions(e.Name)),CE(3),Yg("align-remove-start",e.FormView.type==="FolderTree"||e.FormView.type==="FileTree"||e.FormView.type==="Boolean"),CE(),cT(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&&(aT(0,Ee,2,0,"div",24),dT(1,Ot,19,5,null,null,lT)),t&2){let e=iC();cT(e.selectedSettings().length===0?0:-1),CE(),fT(e.selectedSettings());}}function ht(t,i){if(t&1&&(Qi(0,"sh-icon",52),jC(1,"x-circle"),$l()),t&2){iC();let e=qC(0);yg("shTooltip",e?.message??"Invalid value");}}function wt(t,i){if(t&1&&(Qi(0,"sh-icon",34),jC(1,"warning"),$l()),t&2){iC();let e=qC(0);yg("shTooltip",e?.message??"Invalid value");}}function Lt(t,i){if(t&1&&(um(0),aT(1,ht,2,1,"sh-icon",52)(2,wt,2,1,"sh-icon",34)),t&2){iC();let e=qC(0),o=iC().$implicit,n=WC(o.formView.validate(e));CE(),cT(n?.type==="error"?1:n?.type==="warning"?2:-1);}}function It(t,i){if(t&1&&(um(0),aT(1,Lt,3,2)),t&2){let e=iC().$implicit,n=(WC(e.Value())??"").toString().trim()==="";CE(),cT(!n&&e.formView.validate?1:-1);}}function Vt(t,i){if(t&1&&aT(0,It,2,2),t&2){let e=i.$implicit;cT(e.Value?0:-1);}}var Oe=class t{#e=T(m);options=E1.required();hiddenOptions=I1([]);hasFreeTextSettings=I1(false);applicationOptions=I1();showTextArea=Ge$1(false);showOptionNames=Ge$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:Ge$1(c),FormView:a})}else if(this.hasFreeTextSettings())return m$1(l({},n),{Value:Ge$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=je$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=hw({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),ql(1,11)(2),nC(3,5),Gl(),Qi(4,"div",12),aT(5,we,3,0,"button",13)(6,Ne,8,2),$l(),Gl(),aT(7,be,1,3,"textarea",14)(8,Ft,3,1),$l(),ag(9,Vt,1,1,"ng-template",null,0,lb)),e&2&&(yg("disableToggle",true)("isActive",true),CE(5),cT(o.showTextArea()?5:6),CE(2),cT(o.showTextArea()?7:8));},dependencies:[Bn,Ze$1,en,yt$1,Rn,Jt,Ne$1,Ct$1,Mt,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-Cjb79u3p.js DELETED
@@ -1,2 +0,0 @@
1
- import {J}from'./chunk-DUYvFN8m.js';import {c}from'./chunk-BpRWdcC8.js';import {E as Ee,L as Le}from'./chunk-ihUnHtR7.js';import {N as Nt$2}from'./chunk-Bb6BmVO4.js';import {v as ve}from'./chunk-DmDqcC4A.js';import {x}from'./chunk-CAwTsBqQ.js';import {T,ab as C,m,a6 as be,b as I1,ac as v1,G as Ge,E as D1,N as Nt$1,ai as m$1,aj as l,z as za,at as h,aG as pt$1,b0 as Hs,b1 as oy,bK as Dy,H as qu,h as hw,v,d as N,a0 as de,b_ as ei,u as ue,aH as m$2,M as aC,f as aT,Q as Qi,X as cC,bg as ag,$ as $l,c4 as pC,i as cT,C as CE,Y as Yg,A as yg,a$ as JC,W as Wg,K as fC,p as cm,U as UC,s as CD,aC as mg,x as am,y as _D,ag as Zg,aD as YC,n as nC,aP as ql,a1 as dT,aQ as Gl,au as jg,av as rC,a2 as fT,c5 as $s,ay as Gu,l as vT,r as kd,k as iC,O as Od,j as vg,b$ as Dg,V as Vg,w as jC,J as om,L as Lg,F as Fg,a3 as KC,aB as im,ap as lT,aM as ob,aa as Ql,aS as cb,aF as XC,ar as Qp,c6 as lb}from'./main-VVQP2YE7.js';import {d}from'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-BO2GlieG.js';import {$}from'./chunk-Box6Lckh.js';function Tt(r){let t=r.replace(/^@/,""),e=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return t=t.replace(e,(n,i,o)=>`(${o})`),t.replace(/\\/g,"\\\\")}function dt(r,t){let e=Tt(t),n=e.startsWith("^")&&e.endsWith("$")?e:`^(${e})$`;return new RegExp(n).test(r)}function Se(r,t){let e=t.replace(/[\\.+^${}()|[\]*?]/g,n=>n==="*"?".*":n==="?"?".":"\\"+n);return new RegExp(`^${e}$`).test(r)}var Et=["treeContainer"],bt=["formRef"],St=[[["label"]],[["label"]],[["input"]]],Nt=["label","label","input"],ut=["ngProjectAs","label",5,["label"]],vt=["ngProjectAs","input",5,["input"]],Ot=r=>({children:r,level:0}),_t=r=>({$implicit:r}),Ft=(r,t)=>({children:r,level:t}),xt=()=>({maxWidth:"700px",width:"100%"}),Rt=(r,t)=>t.id;function Dt(r,t){if(r&1){let e=vT();Qi(0,"sh-button-group",22),cm("valueChange",function(i){kd(e);let o=iC();return UC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),Od(i)}),Qi(1,"button",23),nC(2,4),$l(),Qi(3,"button",24),nC(4,5),$l()();}if(r&2){let e=iC();am("value",e.pathDiscoveryMethod);}}function wt(r,t){r&1&&vg(0,"sh-progress-bar",14);}function It(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"spinner"),$l());}function Lt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"arrow-down"),$l());}function At(r,t){if(r&1){let e=vT();Qi(0,"div",26),Vg("click",function(i){kd(e);let o=iC().$implicit,l=iC(2);return Od(l.loadMore(i,o))}),Qi(1,"div",27),vg(2,"sh-icon",28),aT(3,It,2,0,"sh-icon",29)(4,Lt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l()()();}if(r&2){let e=iC().$implicit,n=iC(2);Yg("loading",n.isLoading()===e.id),CE(3),cT(n.isLoading()===e.id?3:4),CE(4),om(e.text);}}function kt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-down"),$l());}function Bt(r,t){r&1&&vg(0,"sh-icon",28);}function $t(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"spinner"),$l());}function Wt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-right"),$l());}function Vt(r,t){if(r&1&&vg(0,"img",34),r&2){let e=iC(3).$implicit;yg("src",e.customIcon,Qp);}}function Gt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-open"),$l());}function zt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-user"),$l());}function jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"file"),$l());}function Ht(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder"),$l());}function Ut(r,t){if(r&1&&(aT(0,kt,2,0,"sh-icon",28)(1,Bt,1,0,"sh-icon",28)(2,$t,2,0,"sh-icon",28)(3,Wt,2,0,"sh-icon",28),aT(4,Vt,1,1,"img",34)(5,Gt,2,0,"sh-icon",29)(6,zt,2,0,"sh-icon",29)(7,jt,2,0,"sh-icon",29)(8,Ht,2,0,"sh-icon",29)),r&2){let e=iC(2).$implicit,n=iC(2);cT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),CE(4),cT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"desktop-tower"),$l());}function Xt(r,t){if(r&1&&(Qi(0,"span",33),jC(1),ob(2,"bytes"),$l()),r&2){let e=iC(2).$implicit;CE(),Ql("\xA0(",cb(2,1,e.fileSize,true,true),")");}}function qt(r,t){r&1&&Dg(0);}function Kt(r,t){if(r&1&&ag(0,qt,1,0,"ng-container",15),r&2){let e=iC(2).$implicit,n=iC().$implicit;iC();let i=pC(7);yg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(5,_t,XC(2,Ft,e.children,n.level+1)));}}function Qt(r,t){if(r&1){let e=vT();Qi(0,"div",31,3),Vg("click",function(i){kd(e);let o=iC().$implicit,l=iC(2);return Od(l.toggleSelectedNode(i,o))}),Qi(2,"div",32),Vg("click",function(i){kd(e);let o=iC().$implicit,l=iC(2);return Od(l.toggleNode(i,o.id,o))}),aT(3,Ut,9,2)(4,Jt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l(),aT(8,Xt,3,5,"span",33),$l()(),aT(9,Kt,1,7,"ng-container");}if(r&2){let e=iC().$implicit,n=iC().$implicit,i=iC();Yg("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),CE(2),Yg("file",e.cls==="file"),CE(),cT(e.id!=="/"?3:4),CE(4),om(e.text),CE(),cT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),CE(),cT(e.children.length>0?9:-1);}}function Yt(r,t){if(r&1&&aT(0,At,8,4,"div",25)(1,Qt,10,24),r&2){let e=t.$implicit,n=iC(2);cT(e.isLoadMore?0:e.hidden&&n._showHiddenNodes()||!e.hidden?1:-1);}}function Zt(r,t){if(r&1&&(Qi(0,"sh-list"),dT(1,Yt,2,1,null,null,Rt),$l()),r&2){let e=t.$implicit;Zg("padding-left",e.level*.25,"rem"),CE(),fT(e.children);}}function en(r,t){r&1&&Dg(0);}function tn(r,t){if(r&1){let e=vT();Qi(0,"sh-toggle",35),cm("checkedChange",function(i){kd(e);let o=iC();return UC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),Od(i)}),nC(1,6),$l();}if(r&2){let e=iC();am("checked",e._showHiddenNodes),CE(),jg(e.showFiles()?"files":"folders"),rC(1);}}function nn(r,t){if(r&1){let e=vT();Qi(0,"button",36),Vg("click",function(){kd(e);let i=iC();return Od(i.openCreateFolderDialog())}),nC(1,7),$l();}if(r&2){let e=iC();yg("disabled",!e.isCurrentPathFolder());}}function on(r,t){if(r&1&&(Qi(0,"sh-alert",20),jC(1),$l()),r&2){let e=iC();yg("color","error"),CE(),om(e.errorMessage());}}function rn(r,t){if(r&1){let e=vT();Qi(0,"sh-dialog",37),cm("isOpenChange",function(i){kd(e);let o=iC();return UC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),Od(i)}),Qi(1,"header",38)(2,"h2"),nC(3,8),$l()(),Qi(4,"div",39)(5,"div",40)(6,"p"),nC(7,9),$l(),Qi(8,"div",41)(9,"pre"),jC(10),$l()()(),Qi(11,"sh-form-field")(12,"textarea",42),cm("ngModelChange",function(i){kd(e);let o=iC();return UC(o.createFolderPath,i)||(o.createFolderPath=i),Od(i)}),$l(),CD(),$l()(),Qi(13,"footer",43)(14,"button",44),Vg("click",function(){kd(e);let i=iC();return Od(i.closeCreateFolderDialog(false))}),jC(15,"Cancel"),$l(),Qi(16,"button",45),Vg("click",function(){kd(e);let i=iC();return Od(i.closeCreateFolderDialog(true))}),Lg(17,10),vg(18,"sh-icon"),Fg(),$l()()();}if(r&2){let e=iC();am("isOpen",e.createFolderDialogOpen),yg("options",KC(6,xt)),CE(10),im("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),CE(2),am("ngModel",e.createFolderPath),_D(),CE(4),yg("disabled",!e.createFolderPath()?.length);}}var ft=(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))(ft||{}),E="/",pt="\0load-more",ie=true,Ne=class r{#e=T(C);#t=T(m);#E=T(be);multiSelect=I1(false);disabled=I1(false);showFiles=I1(false);selectFiles=I1(false);onlySelectFolder=I1(false);accepts=I1(null);startingPath=I1(null);rootPaths=I1([]);initialNodes=I1([]);backupSettings=I1(null);pathRefreshTrigger=I1(false);showHiddenNodes=I1(false);enableCreateFolder=I1(false);hideShortcuts=I1(false);resolvePaths=I1(false);customRemoteMode=I1(null);showUnrootedSources=I1(false);backupId=I1("");connectionStringId=I1(null);sourcePrefix=I1("");destinationUrl=I1("");loadExtendedData=I1(true);hasExtendedData=v1();searchMode=I1(false);searchResults=I1([]);_showHiddenNodes=Ge(false);createFolderDialogOpen=Ge(false);createFolderPath=Ge(null);errorMessage=Ge(null);anyRemoteSourcesLoaded=Ge(false);treeContainerRef=D1("treeContainer");formRef=D1("formRef");pathDiscoveryMethod=Ge("browse");isLoading=Ge(null);currentPath=Ge("");#p=Ge(null);treeSearchQuery=Ge("");treeNodes=Ge([]);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!==E));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"));#c(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],l=e[2]??"";return o==="diskimage"&&!l&&(l=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:l}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[E]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#c(n);return i?{id:n,path:i.mount,displayName:Le(i.url),icon:Ee(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#d(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#c(e);return n?this.#s(n.mount):e})}TreeEvalEnum=ft;#b=Nt$1(()=>{if(!this.#r())return null;let t=this.#d(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().filter(o=>!o.isLoadMore).map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#b()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?oy(null):$s(300).pipe(Gu(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt$1(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}),Hs(()=>oy(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 s of t){let a=s.Path??"",m=this.#a(a),P=a.split(m).filter(O=>O!==""),y="";for(let O=0;O<P.length;O++){let b=P[O],I=O===P.length-1,U=!I||this.#n(a),Pt=y||E,ve=y?y.endsWith(m)?y.slice(0,-m.length):y:"";if(y=ve?`${ve}${m}${b}`:`${m}${b}`,U&&!y.endsWith(m)&&(y+=m),!i.has(y))i.set(y,{part:b,parentPath:Pt,isFolder:U,match:I?s:null});else if(I){let yt=i.get(y);yt.match=s;}}}let o=new Map;for(let[s,a]of i)o.has(a.parentPath)||o.set(a.parentPath,[]),o.get(a.parentPath).push(s);let l=new Set,d=new Map;for(let[s,a]of i){if(!a.isFolder){l.add(s);continue}let m=o.get(a.parentPath)||[];if(m.length===1&&m[0]===s&&a.parentPath!==E)continue;l.add(s);let y=a.part,O=s;for(;;){let b=o.get(O)||[];if(b.length!==1)break;let I=b[0],U=i.get(I);if(!U||!U.isFolder)break;y+="/"+U.part,O=I;}O!==s&&d.set(s,y);}l.add(E);let c=[],p=new Map,u=Array.from(l).filter(s=>s!==E).sort((s,a)=>s.split("/").length-a.split("/").length||s.localeCompare(a));for(let s of u){let a=i.get(s);if(!a)continue;let m=a.parentPath;for(;m!==E&&!l.has(m);)m=i.get(m)?.parentPath||E;if(p.has(s))continue;let P=this.#g(d.get(s),a.match?.Metadata)??a.part,y=a.match===null,O=a.match!==null&&!a.isFolder&&n?0:this.#r()?this.#h(s,null,e,a.isFolder?"folder":"file"):this.#u(e,s,a.isFolder?"folder":"file",null),b={id:s,resolvedpath:s,text:P,parentPath:m,children:[],evalState:O,isIndeterminate:this.isIndeterminate(e,s),cls:a.isFolder?"folder":"file",isSearchMatch:a.match!==null,isGenerated:y,hasChildrenInSearch:(o.get(s)?.length||0)>0,iconCls:null,check:false,leaf:!a.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:a.match?.Size??0};if(p.set(s,b),m===E)c.push(b);else {let I=p.get(m);I&&I.children.push(b);}}let M=s=>{s.sort((a,m)=>a.cls==="folder"&&m.cls!=="folder"?-1:a.cls!=="folder"&&m.cls==="folder"?1:(a.text??"").localeCompare(m.text??"")),s.forEach(a=>M(a.children));};return M(c),c});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#S(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),l$1=this.accepts(),d=[];o.length>0?d=o.map(p=>{let u=this.#r()?this.#h(p,null,n,"folder"):this.#u(n,p,"folder",null);return {id:p,resolvedpath:p,text:p,parentPath:"",children:[],evalState:u,isIndeterminate:false,cls:this.#n(p)?"folder":"file"}}):d=[{id:E,resolvedpath:E,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let c=this.#m().map(p=>({id:p.path,resolvedpath:p.path,remoteSource:this.#c(p.id),text:p.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:p.icon}));return d=[...d,...c],d.map(p=>{let u=new Map;if(!p.id)return;let M=p.id;l$1&&(p.accepted=true),u.set(M,p);let s=o.length>0?i.filter(a=>a.parentPath.startsWith(M)):i;for(let a of s){if(!a.id)continue;let m=a.id;if(!a.cls||u.has(m))continue;let P=u.get(a.parentPath),y=a.isLoadMore===true,O=y||a.hidden===true&&!e?0:this.#r()?this.#h(m,P,n,a.cls):this.#u(n,m,a.cls,P),b=m$1(l({},a),{isIndeterminate:y?false:this.isIndeterminate(n,m),evalState:O,children:[]});y?b.accepted=true:l$1&&(b.accepted=this.matchAccepts(l$1,b)),u.set(m,b),b.id?.startsWith("%")&&b.id?.endsWith("%")&&u.set(this.#s(m),b),P&&P.children.push(b);}return p}),d});#S(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 l=o.slice(1,-1),d=this.filterGroups?.FilterGroups?.[l];if(d&&d.length){let c=d.map(p=>`-${p}`);e.splice(n,1,...c);}}}return e}#s(t){if(!t)return E;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===E?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.#u(n,t,i,e)}#u(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,l=this.#d(t.filter(u=>!this.#i(u))),d=t.filter(u=>this.#i(u)),c=this.multiSelect(),p=this.#f(this.treeNodes().find(u=>u.id===e))??e;if(l.length===0)return o;for(let u=0;u<l.length;u++){let M=l[u];if(e===M||p==M){o=1;break}if(!c||!this.#n(M))continue;if(e?.startsWith(M)||p?.startsWith(M)){o=1;break}}if(d.length===0)return o;for(let u=0;u<d.length;u++){let M=d[u],s=M.slice(1),a=M.startsWith("-")?-1:1;if(this.#n(s)){if(n!=="folder")continue;if(e===s||p==s){o=a;break}}if(s.startsWith("*")&&(s.endsWith("*\\")||s.endsWith("*/"))){if(n!=="folder")continue;let P=s.slice(1,-2);if(P==="")break;if(e?.includes(P+"\\")||e?.includes(P+"/")){o=a;break}}if(s.startsWith("[.*")&&(s.endsWith("[^\\/]*]")||s.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let P=s.slice(3,-7);if(new RegExp(P).test(e)){o=a;break}}if(s.startsWith("[")&&s.endsWith("]")){let P=s.slice(1,-1);if(dt(e,P)){o=a;break}}if(s.startsWith("*.")){if(n!=="file"||s.replace("*.","").length===0)continue;if(Se(e,s)){o=a;break}}if(s==="")continue;if(s===e){o=a;break}if(Se(e,s)){o=a;break}}return o}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}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=za(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=za(()=>{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===E)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=za(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=za(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#N(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.#F(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.#l(null,e[0])):this.#l(null,E);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?E:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.isLoadMore||e.id===E||this.#m().map(u=>this.#c(u.id)?.mount).filter(u=>u).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.#d(i),l=this.isChildOfSelected(e),d=this.#f(e),c=l?`-${d}`:d,p=this.#n(d);if(this.multiSelect())if(o.includes(d))this.currentPath.set(i.filter(u=>u!==d&&!(p&&u.startsWith(c))).join("\0"));else if(o.some(u=>u==c))this.currentPath.set(i.filter(u=>u!==c).join("\0"));else {let u=p?i.filter(M=>!M.startsWith(d)):i;this.currentPath.set([...u,c].join("\0"));}else i.includes(d)?this.currentPath.set(i.filter(u=>u!==d).join("\0")):this.currentPath.set(d);}isChildOfSelected(t){return this.#d(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.#l(n,e));}loadMore(t,e){t.stopPropagation(),e.isLoadMore&&this.isLoading()===null&&this.#l(e,e.parentPath||E,e.loadMoreOffset??null);}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),l=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+l}}).subscribe({next:()=>{this.currentPath.set(l),this.#l(null,n),setTimeout(()=>{this.#C();},500),this.createFolderDialogOpen.set(false);},error:d=>{let c=d?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),p=c?c[1]:d?.message||$localize`An error occurred while trying to create the folder.`;this.#E.open(h,{data:{title:$localize`Cannot create folder`,message:p,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#C(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#N(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}#v(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n,i=null){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:i,Limit:100}}).pipe(pt$1(o=>{let l$1=o.Data?.Items??[];return {items:l$1.map(c=>m$1(l({},c),{Path:(e?.prefix??"")+c.Path})).filter(c=>c.Metadata==null||!c.Metadata.ExtType),hasMore:o.Data?.HasMore??false,nextOffset:(o.Data?.Offset??i??0)+l$1.length}}))}#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$1(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])}))}))}#P(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$1(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])}))}))}#y(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt$1(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#O(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$1(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$1(i=>i.Files??[]))}}#T(t,e,n=null){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#P(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#P(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#y(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#y(t):this.isByBackupSettings()?this.#O(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend",n):this.#v(t)}#F(t){let n=t.split("\0").filter(l=>!this.#i(l)&&!l.startsWith("@")).filter(Boolean).map(l=>{let d=this.#a(l),c=l.split(d);return c.at(-1)===""&&c.pop(),this.#n(l)||c.pop(),{split:c,sep:d}}),i=[E];n.forEach(({split:l,sep:d})=>{l.forEach((c,p)=>{let u=l.slice(0,p+1).join(d)+d;u===""||u===d||i.includes(u)||i.push(u);});});let o=i.map(l=>(this.isLoading.set(l),this.#T(l,null).pipe(pt$1(d=>({status:"success",value:d,url:l})),Hs(d=>oy({status:"error",value:d,url:l})))));Dy(o).pipe(qu(()=>this.isLoading.set(null))).subscribe({next:l$1=>{let d=l$1.filter(p=>p.status==="success");l$1.filter(p=>p.status==="error");this.treeNodes.update(p=>{let u=d.flatMap(s=>(Array.isArray(s.value)?s.value:s.value?.items??[]).map(m=>m$1(l({},m),{parentPath:s.url})));u.length>0&&this.anyRemoteSourcesLoaded.set(true);let M=[...new Map([...p,...u].map(s=>[s.id,s])).values()];return this.#C(),this.hideShortcuts()?M.filter(s=>!s.id.startsWith("%")):M});}});}#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):t&&t["diskimage:Type"]&&t["diskimage:Type"].length>0&&this.hasExtendedData.emit("diskimage");}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#R(t,e,n){return {id:`${t}${pt}`,text:$localize`Load more`,cls:"load-more",leaf:true,hidden:false,parentPath:t,remoteSource:e??void 0,isLoadMore:true,loadMoreOffset:n}}#l(t=null,e=E,n=null){let i=t?.remoteSource;this.isLoading.set(t?.isLoadMore?t.id??e:e),this.#T(e,i,n).pipe(qu(()=>this.isLoading.set(null))).subscribe({next:o=>{let l$1=Array.isArray(o)?{items:o,hasMore:false,nextOffset:0}:{items:o?.items??[],hasMore:o?.hasMore??false,nextOffset:o?.nextOffset??0},d=this.isByBackupSettings()||this.customRemoteMode()!==null||i?l$1.items.map(c=>{this.#x(c.Metadata);let p=this.#a(c.Path),u=this.#g(c.Path.split(p).filter(P=>P!=="").pop(),c.Metadata),M=c.Path,s=null,a=this.#n(c.Path)?"folder":"file",m=c.Metadata;return i&&(M=c.Path.substring(1),s=m$1(l({},i),{path:c.Path.substring(i.prefix.length)})),m&&(m["diskimage:Type"]==="geometry"||m["diskimage:Type"]==="partitioninfo"||m["diskimage:Type"]==="filesystem")?null:{text:u,id:M,cls:a,leaf:t!==null,resolvedpath:c.Path,hidden:false,remoteSource:s,fileSize:c.Size}}):l$1.items;d.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(c=>{let p=d.filter(a=>a!==null).map(a=>{let m=a.cls??(this.#n(a.id)?"folder":"file");return m$1(l({},a),{cls:m,parentPath:e})}),u=`${e}${pt}`,M=[...c,...p].filter(a=>a.id!==u);l$1.hasMore&&M.push(this.#R(e,i,l$1.nextOffset));let s=[...new Map(M.map(a=>[a.id,a])).values()];return this.hideShortcuts()?s.filter(a=>!a.id.startsWith("%")):s});},error:o=>{this.errorMessage.set(o.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&Wg(n.treeContainerRef,Et,5)(n.formRef,bt,5),e&2&&fC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Yg("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:Nt,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 l;l=$localize`Will be created as:`;let d;return d=$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,l,d,[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","",1,"load-more",3,"loading"],["action","",1,"load-more",3,"click"],[1,"icon","file"],[1,"small"],[1,"primary"],[1,"text"],["action","",3,"click"],[1,"icon",3,"click"],[1,"size"],["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&&(aC(St),aT(0,Dt,5,1,"sh-button-group",11),Qi(1,"div",12),cC(2,0,ut),Qi(3,"div",13,0),aT(5,wt,1,0,"sh-progress-bar",14),ag(6,Zt,3,2,"ng-template",null,1,lb)(8,en,1,0,"ng-container",15),$l(),Qi(9,"div",16),aT(10,tn,2,2,"sh-toggle",17),aT(11,nn,2,1,"button",18),$l()(),Qi(12,"div",19,2)(14,"sh-form-field"),cC(15,1,ut),cC(16,2,vt),$l()(),aT(17,on,2,2,"sh-alert",20),aT(18,rn,19,7,"sh-dialog",21)),e&2){let i=pC(7);cT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),CE(),Yg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),CE(2),Yg("visualize-accepted",n.accepts()),CE(2),cT(n.isLoading()!=null?5:-1),CE(3),yg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(16,_t,JC(14,Ot,n.treeStructure()))),CE(2),cT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),CE(),cT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),CE(),Yg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),CE(5),cT(n.errorMessage()?17:-1),CE(),cT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe,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].load-more[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-style:italic;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 sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1&&jC(0),r&2){let e=t.$implicit,n=iC();im("",e.label,"",n.hasPerSecond()?"/s":"");}}var dn=["throttle-upload","throttle-download"],un=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],pn=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"}},Ct=class r{customId=I1();inputType=I1();timespan=Ge(0);unit=Ge("MB");sizeOptions=Ge(un);readonly=Ge(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&dn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=pn(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=hw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,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&&(aC(sn),Qi(0,"div",0),cC(1,0,ln),$l(),Qi(2,"sh-form-field")(3,"input",1),cm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(4,1),cC(5,2),$l(),Qi(6,"sh-select",2)(7,"input",3),cm("ngModelChange",function(o){return UC(n.unit,o)||(n.unit=o),o}),$l(),CD(),ag(8,cn,1,2,"ng-template"),$l()),e&2&&(CE(2),mg("readonly",n.readonly()||void 0),CE(),yg("id",n.customId()),am("ngModel",n.timespan),yg("disabled",n.readonly()),_D(),CE(3),Zg("--miw",0),yg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),CE(),am("ngModel",n.unit),_D());},dependencies:[Nt$2,Fe,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 hn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],gn=["label","[prefix]","[suffix]"],mn=["ngProjectAs","label",5,["label"]];function _n(r,t){if(r&1){let e=vT();Qi(0,"button",7),Vg("click",function(){let i=kd(e).$implicit,o=iC();return Od(o.updateUnit(i.value))}),nC(1,1),$l();}if(r&2){let e=t.$implicit;CE(),jg(e.label),rC(1);}}var fn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Cn=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],Mn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout","long-database-query-threshold"],Mt=class r{customId=I1();inputType=I1();timespan=Ge(0);#e="D";unit=Ge(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&&Mn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?fn:Cn);readonly=Ge(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});inputTypeEffect=za(()=>{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=hw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:gn,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&&(aC(hn),cC(0,0,mn),Qi(1,"sh-form-field")(2,"input",2),cm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(3,1),cC(4,2),$l(),Qi(5,"sh-menu",3)(6,"button",4),nC(7,0),$l(),ql(8,5),dT(9,_n,2,1,"button",6,lT),Gl(),$l()),e&2&&(CE(),mg("readonly",n.readonly()||void 0),CE(),yg("id",n.customId()),am("ngModel",n.timespan),yg("disabled",n.readonly()),_D(),CE(3),yg("openIndicator",true),CE(2),jg(n.unitLabel()),rC(7),CE(2),fT(n.timeOptions()));},dependencies:[ve,Fe,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{Ct as C,Mt as M,Ne as N,pn as p};
package/chunk-CtEMAj2d.js DELETED
@@ -1,2 +0,0 @@
1
- import {G}from'./chunk-CTRzgLM9.js';import'./chunk-CZoVeRAG.js';import'./chunk-aOMoAKYY.js';import {t as tn,Q as Qt,l as lt,o as on,k as ke}from'./chunk-kU0H989B.js';import'./chunk-C80zvTbO.js';import'./chunk-Cjb79u3p.js';import'./chunk-DJJ8GbYi.js';import'./chunk-DUYvFN8m.js';import'./chunk-BpRWdcC8.js';import {V,G as G$1}from'./chunk-ihUnHtR7.js';import'./chunk-Bb6BmVO4.js';import {v as ve$1}from'./chunk-DmDqcC4A.js';import'./chunk-CAwTsBqQ.js';import'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,e as ee,aw as W,a6 as be,bF as ve,E as D1,G as Ge,N as Nt,at as h,h as hw,v,d as N,a0 as de,u as ue,l as vT,ak as um,Q as Qi,V as Vg,n as nC,$ as $l,f as aT,p as cm,r as kd,U as UC,O as Od,L as Lg,j as vg,F as Fg,al as WC,C as CE,i as cT,x as am,A as yg,o as oC,aD as YC,W as Wg,K as fC,k as iC,w as jC,aP as ql,aQ as Gl,ao as qC,s as CD,a3 as KC,y as _D}from'./main-VVQP2YE7.js';import'./chunk-Bja52qI7.js';import'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-BO2GlieG.js';import'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import'./chunk-DqIU7ViF.js';import'./chunk-Box6Lckh.js';var Oe=["formRef"],Re=["testUrl"],Ne=()=>({maxWidth:"700px",width:"100%"});function De(o,i){if(o&1){let e=vT();Qi(0,"button",24),Vg("click",function(){kd(e);let t=iC();return Od(t.openTargetUrlDialog())}),Lg(1,5),vg(2,"sh-icon"),Fg(),$l();}}function Ie(o,i){if(o&1){let e=vT();Qi(0,"button",24),Vg("click",function(){kd(e);let t=iC(2);return Od(t.copyTargetUrl())}),Lg(1,7),vg(2,"sh-icon"),Fg(),$l();}}function fe(o,i){if(o&1){let e=vT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,25),Qi(5,"button",24),Vg("click",function(){kd(e);let t=iC();return Od(t.openTargetUrlDialog())}),Lg(6,6),vg(7,"sh-icon"),Fg(),$l(),aT(8,Ie,3,0,"button",15),Gl(),$l();}if(o&2){iC();let e=qC(0);CE(8),cT(e?8:-1);}}function he(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list-item",17)(1,"button",20),Vg("click",function(){kd(e);let t=iC();return Od(t.removeDestination())}),nC(2,8),$l()();}if(o&2){iC();let e=qC(12);yg("destination",e);}}function ye(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list",26),Vg("setDestination",function(t){kd(e);let s=iC();return Od(s.setDestination(t))}),$l();}}function Me(o,i){if(o&1){let e=vT();Qi(0,"app-single-destination",27),cm("targetUrlChange",function(t){kd(e);let s=iC();return UC(s.targetUrlModel,t)||(s.targetUrlModel=t),Od(t)}),$l();}if(o&2){let e=iC();am("targetUrl",e.targetUrlModel);}}function Pe(o,i){o&1&&(Lg(0,4,1),vg(1,"sh-icon",22),Fg());}function Ae(o,i){o&1&&(Lg(0,4,2),vg(1,"sh-icon"),Fg());}function Le(o,i){if(o&1){let e=vT();Qi(0,"sh-dialog",28),cm("isOpenChange",function(t){kd(e);let s=iC();return UC(s.targetUrlDialogOpen,t)||(s.targetUrlDialogOpen=t),Od(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),nC(4,9),$l(),Qi(5,"sh-alert",31),nC(6,10),$l()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),cm("ngModelChange",function(t){kd(e);let s=iC();return UC(s.targetUrlCtrl,t)||(s.targetUrlCtrl=t),Od(t)}),$l(),CD(),$l()(),Qi(10,"footer",34)(11,"button",20),Vg("click",function(){kd(e);let t=iC();return Od(t.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",35),Vg("click",function(){kd(e);let t=iC();return Od(t.closeTargetUrlDialog(true))}),Lg(14,11),vg(15,"sh-icon"),Fg(),$l()()();}if(o&2){let e=iC();am("isOpen",e.targetUrlDialogOpen),yg("options",KC(3,Ne)),CE(9),am("ngModel",e.targetUrlCtrl),_D();}}var x=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(G);formRef=D1.required("formRef");testUrlComponent=D1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?V(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G$1(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["general"],{relativeTo:this.#o.parent});}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=hw({type:o,selectors:[["app-restore-destination"]],viewQuery:function(e,n){e&1&&Wg(n.formRef,Oe,5)(n.testUrlComponent,Re,5),e&2&&fC(2);},features:[YC([ke])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=oC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let s;s=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let U;U=$localize`Change`;let b;b=$localize`Edit target URL`;let G;G=$localize`Be careful, this will overwrite everything you have in your destination.`;let k;return k=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,s,g,U,b,G,k,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=vT();um(0),Qi(1,"form",12,0),Vg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),nC(6,2),$l(),Qi(7,"div",14),aT(8,De,3,0,"button",15)(9,fe,9,1,"sh-menu"),$l()(),Qi(10,"app-test-url",16,1),cm("targetUrlChange",function(g){return kd(t),UC(n.targetUrlModel,g)||(n.targetUrlModel=g),Od(g)})("testSignalChange",function(g){return kd(t),UC(n.testSignal,g)||(n.testSignal=g),Od(g)}),$l(),um(12),aT(13,he,3,1,"app-destination-list-item",17),$l(),aT(14,ye,1,0,"app-destination-list"),aT(15,Me,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Vg("click",function(){return n.goBack()}),Lg(18,3),vg(19,"sh-icon"),Fg(),$l(),Qi(20,"button",21),Lg(21,4),aT(22,Pe,2,0,"sh-icon",22)(23,Ae,2,0,"sh-icon"),Fg(),$l()()(),aT(24,Le,16,4,"sh-dialog",23);}if(e&2){let t=WC(!!n.targetUrlModel());CE(8),cT(t?9:8),CE(2),am("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),yg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),CE(2);let s=WC(n.selectedDestinationTypeOption());CE(),cT(s?13:-1),CE(),cT(t?-1:14),CE(),cT(t?15:-1),CE(5),yg("disabled",n.testSignal()=="testing"||!t),CE(2),cT(n.testSignal()=="testing"?22:23),CE(2),cT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[tn,Qt,lt,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe,ve$1,N,de,ue,on],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
2
- export{x as default};
package/chunk-Cu4siB3B.js DELETED
@@ -1,4 +0,0 @@
1
- import {e as ee}from'./chunk-C4GeR7BF.js';import'./chunk-CUaRQ2FJ.js';import {O as O$1}from'./chunk-aOMoAKYY.js';import {m}from'./chunk-BEhUV7oX.js';import {J}from'./chunk-DUYvFN8m.js';import {N as Nt$1}from'./chunk-Bb6BmVO4.js';import'./chunk-DmDqcC4A.js';import {c}from'./chunk-B53Wj4F9.js';import {D}from'./chunk-BTgf5lfZ.js';import {bj as _s,bk as j,bl as ft,bm as go,T,a6 as be,m as m$1,I,bn as f,G as Ge,N as Nt,z as za,H as qu,bo as wt,at as h,h as hw,v,d as N,u as ue,j as vg,Q as Qi,n as nC,$ as $l,f as aT,V as Vg,s as CD,L as Lg,F as Fg,p as cm,bg as ag,C as CE,i as cT,Y as Yg,A as yg,a3 as KC,y as _D,au as jg,av as rC,x as am,o as oC,U as UC,ab as C$1,E as D1,b3 as cg,b4 as oT,b5 as iT,W as Wg,K as fC,ae as eo,b as I1,af as E1,b9 as ce,M as aC,P as Ul,X as cC,S as Wl,w as jC,an as Hg,R as Ig,aB as im,ag as Zg,g as NC,k as iC,J as om,l as vT,r as kd,O as Od,ar as Qp,a9 as GC,aa as Ql}from'./main-VVQP2YE7.js';import {d}from'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {B as Bn$1,Z as Ze,o as on$1,R as Rn$1,J as Jt,G as Gn$1}from'./chunk-BO2GlieG.js';import {a as at}from'./chunk-CKnRcyHZ.js';import {C}from'./chunk-CwKy8pxa.js';import {O}from'./chunk-BVEyeg9y.js';import'./chunk-DqIU7ViF.js';import'./chunk-Box6Lckh.js';var sn=[[["label"]],[["input","type","range"]]],an=["label","input[type=range]"],tn=(()=>{class i{constructor(){this.hasInput=Ge(false),this.#n=T(eo),this.#i=null,this.#e=null,this.#t=0,this.unit=I1(""),this.value=E1(this.#t),this.inputState=Ge({min:0,max:100,step:1}),this.color=I1(null),this.variant=I1(null),this.size=I1(null),this.sharp=I1(void 0),this.alwaysShow=I1(void 0),this.hostClasses=ce("rangeSlider",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,alwaysShow:this.alwaysShow}),this.valuePercentage=Nt(()=>{let{min:e,max:n}=this.inputState(),s=this.value()??e;if(isNaN(s))return 0;let l=n-e;if(l===0)return 0;let E=(s-e)/l*100;return Math.max(0,Math.min(100,E))}),this.trackFilledPercentage=Nt(()=>this.valuePercentage()),this.thumbPositionPercentage=Nt(()=>this.valuePercentage()),this.syncModelToInputEffect=za(()=>{let e=this.value();if(this.#e){let n=parseFloat(this.#e.value);(isNaN(n)||String(n)!==String(e))&&(this.#e.value=String(e));}});}#n;#i;#e;#t;ngAfterViewInit(){this.#e=this.#n.nativeElement.querySelector('input[type="range"]'),this.#e?(this.hasInput.set(true),this.#a(this.#e),this.#e.oninput=()=>{this.setNewInputValue(this.#e.value);},this.#e.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value);}),queueMicrotask(()=>this.#o(true)),this.#r()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.');}setNewInputValue(e){let n=parseFloat(e??"0");if(!isNaN(n)){let{min:s,max:l}=this.inputState();this.value.set(Math.max(s,Math.min(l,n)));}}trackEvent(e){if(!this.#e||this.#e.readOnly||this.#e.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#e||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let s=e.currentTarget.getBoundingClientRect(),l=e.clientX-s.left,E=s.width,{min:S,max:m,step:f}=this.inputState(),W=m-S;if(E>0&&W!==0&&f>0){let J=(l/E*W+S-S)/f,z=S+Math.round(J)*f,Q=this.#s(f);z=parseFloat(z.toFixed(Q));let Y=Math.max(S,Math.min(m,z));this.value.set(Y);}}#o(e=false){if(!this.#e)return;let n=parseFloat(this.#e.min??"0")??0,s=parseFloat(this.#e.max??"100")??100,l=this.#e.step,E=1;if(l&&l.toLowerCase()!=="any"){let m=parseFloat(l);!isNaN(m)&&m>0&&(E=m);}this.inputState.set({min:n,max:s,step:E});let S=parseFloat(this.#e.value??String(n))??n;if(e&&this.value()!==this.#t){let m=this.value(),f=Math.max(n,Math.min(s,m));S!==f&&(this.#e.value=String(f)),m!==f&&this.value.set(f);}else {let m=Math.max(n,Math.min(s,S));this.value()!==m&&this.value.set(m);}}#r(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(n=>{let s=false;for(let l of n)if(l.type==="attributes"&&e.includes(l.attributeName??"")){s=true;break}s&&this.#o(false);}),this.#i.observe(this.#e,{attributes:true,attributeFilter:e});}#s(e){if(isNaN(e)||Math.floor(e)===e)return 0;let s=e.toString().split(".")[1];return s?s.length:0}#a(e){Object.defineProperty(e,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(n){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,n);let l=new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:n}});return this.dispatchEvent(l),n}});}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#e&&(this.#e.oninput=null);}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=hw({type:i,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(n,s){n&2&&(NC(s.hostClasses()),Yg("sh-range-slider",true)("has-input",s.hasInput()));},inputs:{unit:[1,"unit"],value:[1,"value"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],alwaysShow:[1,"alwaysShow"]},outputs:{value:"valueChange"},ngContentSelectors:an,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(n,s){n&1&&(aC(sn),Ul(0,"div",0),cC(1),Wl(),Ul(2,"div",1)(3,"div",2),jC(4),Wl(),Ul(5,"div",3),Hg("click",function(E){return s.trackEvent(E)}),cC(6,1),Ul(7,"div",4),Ig(8,"div",5),Wl(),Ul(9,"div",6)(10,"div",7)(11,"div",8),jC(12),Wl()()()(),Ul(13,"div",9),jC(14),Wl()()),n&2&&(CE(4),im("",s.inputState().min,"",s.unit()),CE(4),Zg("width",s.trackFilledPercentage(),"%"),CE(),Zg("left",s.thumbPositionPercentage(),"%"),CE(3),im("",s.value(),"",s.unit()),CE(2),im("",s.inputState().max,"",s.unit()));},styles:[`sh-range-slider{--rs-h: 2.5rem;--rs-f: var(--paragraph-30);--rs-unit-g: .75rem;--rs-unit-c: var(--base-8);--rst: var(--base-3);--rst-bc: var(--base-1);--rst-bg: var(--base-4);--rst-h: .5rem;--rst-s: calc(var(--shape-2) / 2);--rs-thumb-c: var(--base-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--base-4);--rs-thumb-arrow: var(--rs-thumb-value-bg);--rs-thumb-value-c: var(--base-8);--rs-thumb-si: 1rem;--rs-thumb-w: var(--rs-thumb-si);--rs-thumb-s: calc(var(--rs-thumb-w) / 2);display:flex;flex-direction:column;width:100%;font:var(--rs-f)}sh-range-slider.sharp{--rst-s: .125rem;--rs-thumb-s: .125rem;--rs-thumb-bc: transparent !important}sh-range-slider .label{display:flex;align-items:center;gap:.5rem;padding-bottom:.25rem}sh-range-slider .label>label{display:flex;align-items:center;gap:.25rem}sh-range-slider .label sh-icon{color:var(--grey-500);font-size:1rem}sh-range-slider .label:empty{display:none}sh-range-slider[readonly]:not([readonly=false]),sh-range-slider:has(input[type=range][readonly]:not([readonly=false])),sh-range-slider[disabled]:not([disabled=false]),sh-range-slider:has(input[type=range][disabled]:not([disabled=false])){opacity:.4;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}sh-range-slider:has(input[type=range][readonly]) .thumb .value-indicator,sh-range-slider.always-show .thumb .value-indicator{opacity:1}sh-range-slider input[type=range]{appearance:none;width:100%;height:100%;position:absolute;inset:0;opacity:0;margin:0;z-index:1000}sh-range-slider .input-wrap{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--rs-h);position:relative;gap:var(--rs-unit-g)}sh-range-slider .thumb-wrap{position:absolute;top:0}sh-range-slider .thumb{position:relative;margin-top:calc(-1 * var(--rs-thumb-si) / 4);width:var(--rs-thumb-w);height:var(--rs-thumb-si);border-radius:var(--rs-thumb-s);background-color:var(--rs-thumb-c);border:1px solid var(--rs-thumb-bc);box-shadow:var(--box-shadow-20);transform:translate(-50%)}sh-range-slider .track-wrap{position:relative;width:100%;height:var(--rst-h)}sh-range-slider .track{position:relative;width:100%;height:var(--rst-h);border-radius:var(--rst-s);background-color:var(--rst);border:1px solid var(--rst-bc);overflow:hidden}sh-range-slider .track-filled{position:absolute;top:0;left:0;bottom:0;background:var(--rst-bg);width:0}sh-range-slider .min-indicator,sh-range-slider .max-indicator{white-space:nowrap;color:var(--rs-unit-c)}sh-range-slider input[type=range]:hover~.thumb-wrap .value-indicator,sh-range-slider input[type=range]:focus~.thumb-wrap .value-indicator{opacity:1}sh-range-slider .value-indicator{position:absolute;top:-1.875rem;height:1.5rem;min-width:1.5rem;border-radius:var(--shape-2);left:50%;margin:auto;transform:translate(-50%);padding:.25rem .5rem;background:var(--rs-thumb-value-bg);color:var(--rs-thumb-value-c);white-space:nowrap;opacity:0;transition:opacity 125ms linear;-webkit-user-select:none;user-select:none;pointer-events:none}sh-range-slider .value-indicator:after{content:"";border-top:.3125rem solid var(--rs-thumb-arrow);border-left:.3125rem solid transparent;border-right:.3125rem solid transparent;position:absolute;top:calc(100% - 1px);left:50%;margin-left:-.3125rem}sh-range-slider.primary{--rst-bg: var(--primary-8);--rs-thumb-arrow: var(--primary-8);--rs-thumb-value-bg: var(--primary-8);--rs-thumb-value-c: #fff}sh-range-slider.accent{--rst-bg: var(--accent-8);--rs-thumb-arrow: var(--accent-8);--rs-thumb-value-bg: var(--accent-8);--rs-thumb-value-c: #fff}sh-range-slider.warn{--rst-bg: var(--warn-8);--rs-thumb-arrow: var(--warn-8);--rs-thumb-value-bg: var(--warn-8);--rs-thumb-value-c: #fff}sh-range-slider.error{--rst-bg: var(--error-8);--rs-thumb-arrow: var(--error-8);--rs-thumb-value-bg: var(--error-8);--rs-thumb-value-c: #fff}sh-range-slider.success{--rst-bg: var(--success-8);--rs-thumb-arrow: var(--success-8);--rs-thumb-value-bg: var(--success-8);--rs-thumb-value-c: #fff}sh-range-slider.simple{--rst-h: 1rem;--rst-s: var(--shape-2)}sh-range-slider.simple .thumb{width:1px;height:var(--rst-h);margin-top:0;border-radius:0;border:none;box-shadow:none}sh-range-slider.simple.primary{--rst-bg: var(--primary-8);--rst: var(--primary-2);--rs-thumb-c: var(--primary-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--primary-8);--rs-thumb-value-c: var(--primary-2)}sh-range-slider.simple.accent{--rst-bg: var(--accent-8);--rst: var(--accent-2);--rs-thumb-c: var(--accent-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--accent-8);--rs-thumb-value-c: var(--accent-2)}sh-range-slider.simple.warn{--rst-bg: var(--warn-8);--rst: var(--warn-2);--rs-thumb-c: var(--warn-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--warn-8);--rs-thumb-value-c: var(--warn-2)}sh-range-slider.simple.error{--rst-bg: var(--error-8);--rst: var(--error-2);--rs-thumb-c: var(--error-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--error-8);--rs-thumb-value-c: var(--error-2)}sh-range-slider.simple.success{--rst-bg: var(--success-8);--rst: var(--success-2);--rs-thumb-c: var(--success-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--success-8);--rs-thumb-value-c: var(--success-2)}sh-range-slider.outlined{--rst: var(--base-1);--rst-bc: var(--base-4);--rs-thumb-c: var(--base-6);--rs-thumb-bc: var(--base-1);--rs-thumb-arrow: var(--base-4)}sh-range-slider.outlined.primary,sh-range-slider.outlined.accent,sh-range-slider.outlined.warn,sh-range-slider.outlined.error,sh-range-slider.outlined.success{--rst: var(--base-2)}sh-range-slider.outlined.primary{--rst-bg: var(--primary-4);--rst-bc: var(--primary-8);--rs-thumb-c: var(--primary-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--primary-4);--rs-thumb-value-c: var(--primary-8);--rs-thumb-arrow: var(--primary-4)}sh-range-slider.outlined.accent{--rs-thumb-c: var(--accent-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--accent-4);--rs-thumb-value-c: var(--accent-8);--rs-thumb-arrow: var(--accent-4)}sh-range-slider.outlined.warn{--rs-thumb-c: var(--warn-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--warn-4);--rs-thumb-value-c: var(--warn-8);--rs-thumb-arrow: var(--warn-4)}sh-range-slider.outlined.error{--rs-thumb-c: var(--error-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--error-4);--rs-thumb-value-c: var(--error-8);--rs-thumb-arrow: var(--error-4)}sh-range-slider.outlined.success{--rs-thumb-c: var(--success-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--success-4);--rs-thumb-value-c: var(--success-8);--rs-thumb-arrow: var(--success-4)}sh-range-slider.flat{--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4)}sh-range-slider.flat.primary,sh-range-slider.flat.accent,sh-range-slider.flat.warn,sh-range-slider.flat.error,sh-range-slider.flat.success{--rst: var(--base-3);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4);--rs-thumb-value-bg: var(--base-8);--rs-thumb-value-c: #fff}sh-range-slider.flat.primary{--rst-bg: var(--primary-8);--rs-thumb-value-bg: var(--primary-8)}sh-range-slider.flat.accent{--rst-bg: var(--accent-8);--rs-thumb-value-bg: var(--accent-8)}sh-range-slider.flat.warn{--rst-bg: var(--warn-8);--rs-thumb-value-bg: var(--warn-8)}sh-range-slider.flat.error{--rst-bg: var(--error-8);--rs-thumb-value-bg: var(--error-8)}sh-range-slider.flat.success{--rst-bg: var(--success-8);--rs-thumb-value-bg: var(--success-8)}sh-range-slider.raised{--rst-bg: var(--base-g2);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4)}sh-range-slider.raised.primary,sh-range-slider.raised.accent,sh-range-slider.raised.warn,sh-range-slider.raised.error,sh-range-slider.raised.success{--rst: var(--base-3);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4);--rs-thumb-value-bg: var(--base-g6);--rs-thumb-value-c: #fff}sh-range-slider.raised.primary{--rst-bg: var(--primary-g2);--rs-thumb-arrow: var(--primary-8);--rs-thumb-value-bg: var(--primary-g3)}sh-range-slider.raised.accent{--rst-bg: var(--accent-g2);--rs-thumb-arrow: var(--accent-8);--rs-thumb-value-bg: var(--accent-8)}sh-range-slider.raised.warn{--rst-bg: var(--warn-g2);--rs-thumb-arrow: var(--warn-8);--rs-thumb-value-bg: var(--warn-8)}sh-range-slider.raised.error{--rst-bg: var(--error-g2);--rs-thumb-arrow: var(--error-8);--rs-thumb-value-bg: var(--error-8)}sh-range-slider.raised.success{--rst-bg: var(--success-g2);--rs-thumb-arrow: var(--success-8);--rs-thumb-value-bg: var(--success-8)}
2
- `],encapsulation:2});}}return i})();var rn=["formRef"],ln=()=>[import('./chunk-CZoVeRAG.js').then(i=>i.OptionsListComponent)];function _n(i,t){i&1&&(Qi(0,"sh-alert",3),nC(1,1),$l());}function cn(i,t){if(i&1){let e=vT();Qi(0,"app-options-list",5),cm("optionsChange",function(s){kd(e);let l=iC();return UC(l.settings,s)||(l.settings=s),Od(s)}),$l();}if(i&2){let e=iC();am("options",e.settings),yg("hasFreeTextSettings",true);}}var K=class i{#n=T(O);#i=T(C$1);formRef=D1.required("formRef");settings=Ge([]);isSubmitting=Ge(false);isLoadingOptions=Ge(true);saved=Ge(false);lastRecievedServerSettings=Ge({});serverSettingsEffect=za(()=>{let t=this.#n.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(true);let e=Object.entries(t);e.forEach(([n,s],l)=>{if(n.startsWith("--")){let E=n.substring(2);this.settings.update(S=>(S.some(m=>m.Name===E||m.Name===n)||S.push({Name:n,Value:s}),S));}l===e.length-1&&this.isLoadingOptions.set(false);});});submit(){this.isSubmitting.set(true);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(S=>S.Name?.startsWith("--")?S.Name:`--${S.Name}`),l=Object.keys(e).filter(S=>S.startsWith("--")).filter(S=>!n.includes(S)),E=t.reduce((S,m)=>{let f=m.Name?.startsWith("--")?m.Name:`--${m.Name}`;return S[f]=m.Value,S},{});l.forEach(S=>{E[S]=null;}),this.#i.patchApiV1Serversettings({requestBody:E}).pipe(qu(()=>this.isSubmitting.set(false))).subscribe({next:()=>{this.#n.refreshServerSettings(),this.saved.set(true),setTimeout(()=>{this.saved.set(false);},3e3);}});}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&Wg(n.formRef,rn,5),e&2&&fC();},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,n){e&1&&(Qi(0,"div",2),aT(1,_n,2,0,"sh-alert",3),Qi(2,"button",4),Vg("click",function(){return n.submit()}),Lg(3,0),vg(4,"sh-icon"),Fg(),$l()(),cg(5,cn,1,2),oT(6,5,ln)),e&2&&(CE(),cT(n.saved()?1:-1),CE(),Yg("loading",n.isSubmitting()),CE(4),iT(!n.isLoadingOptions()));},dependencies:[Gn$1,v,N,ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"]})};function Tn(i,t){if(i&1){let e=vT();Qi(0,"sh-form-field",12)(1,"input",13),cm("ngModelChange",function(s){kd(e);let l=iC(2);return UC(l.registerUrl,s)||(l.registerUrl=s),Od(s)}),$l(),CD(),$l(),Qi(2,"button",14),Vg("click",function(){kd(e);let s=iC(2);return Od(s.register())}),nC(3,0),$l();}if(i&2){let e=iC(2);CE(),am("ngModel",e.registerUrl),_D();}}function Sn(i,t){if(i&1&&(Qi(0,"div",9)(1,"label"),nC(2,1),$l(),Qi(3,"a",15),jC(4),$l()()),i&2){let e=iC(2);CE(3),yg("href",GC(e.claimUrl()),Qp),CE(),om(e.claimUrl());}}function un(i,t){i&1&&(Qi(0,"div",9)(1,"label"),nC(2,2),$l()());}function gn(i,t){if(i&1){let e=vT();Qi(0,"button",14),Vg("click",function(){kd(e);let s=iC(2);return Od(s.cancel())}),nC(1,3),$l();}}function pn(i,t){if(i&1){let e=vT();Qi(0,"button",14),Vg("click",function(){kd(e);let s=iC(2);return Od(s.disable())}),nC(1,4),$l();}}function Cn(i,t){if(i&1){let e=vT();Qi(0,"button",14),Vg("click",function(){kd(e);let s=iC(2);return Od(s.enable())}),nC(1,5),$l(),Qi(2,"button",16),Vg("click",function(){kd(e);let s=iC(2);return Od(s.delete())}),nC(3,6),$l();}}function mn(i,t){i&1&&(Lg(0,7,1),vg(1,"sh-icon"),Fg());}function En(i,t){i&1&&(Lg(0,7,2),vg(1,"sh-icon"),Fg());}function Nn(i,t){if(i&1){let e=vT();Qi(0,"sh-chip",17),Vg("click",function(){kd(e);let s=iC(2);return Od(s.copyReportingUrl())}),Lg(1,7),aT(2,mn,2,0,"sh-icon")(3,En,2,0,"sh-icon"),Fg(),$l();}if(i&2){let e=iC(2);CE(2),cT(e.copiedReportingUrl()===true?2:3);}}function hn(i,t){if(i&1&&(Qi(0,"div",8),aT(1,Tn,4,1),aT(2,Sn,5,3,"div",9),aT(3,un,3,0,"div",9),aT(4,gn,2,0,"button",10),aT(5,pn,2,0,"button",10),aT(6,Cn,4,0),aT(7,Nn,4,1,"sh-chip",11),$l()),i&2){let e=iC();CE(),cT(e.state()==="inactive"?1:-1),CE(),cT(e.state()==="registered"?2:-1),CE(),cT(e.state()==="registering"?3:-1),CE(),cT(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),CE(),cT(e.state()==="connected"||e.state()==="connecting"?5:-1),CE(),cT(e.state()==="disabled"?6:-1),CE(),cT(e.additionalReportingUrl()!==""&&e.state()!=="registered"?7:-1);}}var Te=class i{#n=T(C);#i=T(O);state=this.#n.state;claimUrl=this.#n.claimUrl;registerUrl=this.#n.registerUrl;additionalReportingUrl=Nt(()=>{let t=this.#i.serverSettings();return t&&t["additional-report-url"]||""});copiedReportingUrl=Ge(false);ngOnInit(){this.#n.refreshRemoteControlStatus();}cancel(){this.#n.cancelRemoteRegistration();}register(){this.#n.beginRemoteRegistration();}disable(){this.#n.disableRemoteControl();}enable(){this.#n.enableRemoteControl();}delete(){this.#n.deleteRemoteControl();}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(true),setTimeout(()=>this.copiedReportingUrl.set(false),2e3),navigator.clipboard.writeText(t));}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let s;s=$localize`Cancel registration`;let l;l=$localize`Disable console connection`;let E;E=$localize`Enable console connection`;let S;S=$localize` Delete console connection setup `;let m;return m=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,m=oC(m),[t,e,n,s,l,E,S,m,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,n){e&1&&aT(0,hn,8,7,"div",8),e&2&&cT(n.state()!=="unknown"?0:-1);},dependencies:[Bn$1,Ze,Rn$1,Jt,Fe,v,D,N],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"]})};var Se=()=>({standalone:true});function fn(i,t){i&1&&(Qi(0,"sh-chip",90),nC(1,33),$l());}function In(i,t){if(i&1&&(Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,32),$l(),Qi(4,"p"),jC(5),$l()(),Qi(6,"div",68),aT(7,fn,2,0,"sh-chip",90),$l()()),i&2){let e=iC();CE(5),om(e.remoteControlStatus()),CE(2),cT(e.additionalReportingUrl()!==""&&e.remoteControlState()!=="registered"?7:-1);}}function Mn(i,t){if(i&1&&(Qi(0,"label"),Lg(1,37),vg(2,"sh-icon",92),Fg(),$l()),i&2){let e=iC(3);CE(2),yg("shTooltip",e.remoteControlTooltip());}}function Pn(i,t){if(i&1&&(Qi(0,"label"),Lg(1,38),vg(2,"sh-icon",92),Fg(),$l()),i&2){let e=iC(3);CE(2),yg("shTooltip",e.remoteControlTooltip());}}function On(i,t){if(i&1&&(Qi(0,"label"),Lg(1,39),vg(2,"sh-icon",92),Fg(),$l()),i&2){let e=iC(3);CE(2),yg("shTooltip",e.connectionStatusIndicatorTooltip());}}function bn(i,t){if(i&1&&(Qi(0,"label"),Lg(1,40),vg(2,"sh-icon",92),Fg(),$l()),i&2){let e=iC(3);CE(2),yg("shTooltip",e.connectionStatusIndicatorTooltip());}}function vn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,35),$l(),Qi(4,"p"),nC(5,36),$l()(),Qi(6,"div",91)(7,"sh-toggle",79),Vg("checkedChange",function(s){kd(e);let l=iC(2);return Od(l.toggleConsoleControl(s))}),aT(8,Mn,3,1,"label")(9,Pn,3,1,"label"),$l(),Qi(10,"sh-toggle",79),Vg("checkedChange",function(s){kd(e);let l=iC(2);return Od(l.saveHideConsoleConnectionStatus(s))}),aT(11,On,3,1,"label")(12,bn,3,1,"label"),$l()()();}if(i&2){let e=iC(2);CE(7),yg("checked",!e.consoleControlDisabled()),CE(),cT(e.consoleControlDisabled()?8:9),CE(2),yg("checked",!e.hideConsoleConnectionStatus()),CE(),cT(e.hideConsoleConnectionStatus()?11:12);}}function Rn(i,t){i&1&&(Qi(0,"label"),nC(1,43),$l());}function Gn(i,t){i&1&&(Qi(0,"label"),nC(1,44),$l());}function yn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,41),$l(),Qi(4,"p"),nC(5,42),$l()(),Qi(6,"div",68)(7,"sh-toggle",79),Vg("checkedChange",function(s){kd(e);let l=iC(2);return Od(l.saveHideConsoleConnectionStatus(s))}),aT(8,Rn,2,0,"label")(9,Gn,2,0,"label"),$l()()();}if(i&2){let e=iC(2);CE(7),yg("checked",!e.hideConsoleConnectionStatus()),CE(),cT(e.hideConsoleConnectionStatus()?8:9);}}function Fn(i,t){if(i&1&&(Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,34),$l(),Qi(4,"p"),jC(5),$l()(),Qi(6,"div",68),vg(7,"app-remote-control"),$l()(),aT(8,vn,13,4,"section")(9,yn,10,2,"section")),i&2){let e=iC();CE(5),om(e.remoteControlStatus()),CE(3),cT(e.remoteControlState()!="inactive"?8:9);}}function $n(i,t){i&1&&(Qi(0,"sh-icon",97),jC(1,"check"),$l());}function An(i,t){i&1&&(Qi(0,"sh-icon",98),jC(1,"prohibit"),$l());}function Ln(i,t){if(i&1){let e=vT();Qi(0,"button",102),Vg("click",function(){kd(e);let s=iC(2);return Od(s.updatePassphrase())}),nC(1,48),$l();}if(i&2){let e=iC(2);Yg("loading",e.isUpdating());}}function wn(i,t){if(i&1){let e=vT();Qi(0,"button",103),Vg("click",function(){kd(e);let s=iC(2);return Od(s.updatePassphrase())}),nC(1,49),$l();}if(i&2){let e=iC(2);Yg("loading",e.isUpdating()),yg("disabled",true);}}function Dn(i,t){if(i&1){let e=vT();Qi(0,"sh-form-field")(1,"label",93),nC(2,45),$l(),Qi(3,"input",94),cm("ngModelChange",function(s){kd(e);let l=iC();return UC(l.passphrase,s)||(l.passphrase=s),Od(s)}),$l(),CD(),$l(),Qi(4,"sh-form-field")(5,"label",95),nC(6,46),$l(),Qi(7,"input",96),cm("ngModelChange",function(s){kd(e);let l=iC();return UC(l.repeatPassphrase,s)||(l.repeatPassphrase=s),Od(s)}),$l(),CD(),aT(8,$n,2,0,"sh-icon",97)(9,An,2,0,"sh-icon",98),$l(),Qi(10,"div",73)(11,"button",99),Vg("click",function(){kd(e);let s=iC();return Od(s.cancelPasswordChange())}),nC(12,47),$l(),aT(13,Ln,2,2,"button",100)(14,wn,2,3,"button",101),$l();}if(i&2){let e=iC();CE(3),am("ngModel",e.passphrase),_D(),CE(4),yg("disabled",e.passphrase().length===0),am("ngModel",e.repeatPassphrase),_D(),CE(),cT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),CE(3),Yg("loading",e.isUpdating()),CE(2),cT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14);}}function xn(i,t){i&1&&(Qi(0,"sh-icon",104),jC(1,"check"),$l());}function kn(i,t){if(i&1){let e=vT();Qi(0,"div",73)(1,"button",99),Vg("click",function(){kd(e);let s=iC();return Od(s.openPassphraseForm())}),nC(2,50),$l(),aT(3,xn,2,0,"sh-icon",104),$l();}if(i&2){let e=iC();CE(3),cT(e.passwordUpdated()?3:-1);}}function Xn(i,t){i&1&&(Lg(0,11,1),vg(1,"span"),Fg());}function Jn(i,t){i&1&&(Lg(0,11,2),vg(1,"span"),Fg());}function zn(i,t){if(i&1){let e=vT();Qi(0,"sh-form-field")(1,"label",105),nC(2,51),$l(),Qi(3,"textarea",106),cm("ngModelChange",function(s){kd(e);let l=iC();return UC(l.allowedHostnames,s)||(l.allowedHostnames=s),Od(s)}),$l(),CD(),$l(),Qi(4,"sh-alert",107),nC(5,52),$l(),Qi(6,"button",102),Vg("click",function(){kd(e);let s=iC();return Od(s.updateAllowedHostnames())}),nC(7,53),$l();}if(i&2){let e=iC();CE(3),am("ngModel",e.allowedHostnames),_D(),CE(3),Yg("loading",e.updatingAllowedHosts());}}function Vn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,54),$l(),Qi(4,"p"),nC(5,55),$l()(),Qi(6,"div",68)(7,"sh-select",108)(8,"input",75),Vg("ngModelChange",function(s){kd(e);let l=iC();return Od(l.updatePowerMode(s))}),$l(),CD(),$l()()();}if(i&2){let e=iC();CE(7),yg("options",e.powerModeOptions())("isClearable",false),CE(),yg("ngModel",e.powerModeCtrl())("ngModelOptions",KC(4,Se)),_D();}}function Un(i,t){if(i&1&&(Qi(0,"p"),nC(1,56),$l()),i&2){let e=iC();CE(),jg(e.sysinfo()?.ServerVersionName),rC(1);}}function Bn(i,t){i&1&&vg(0,"sh-progress-bar",80);}function Hn(i,t){if(i&1&&jC(0),i&2){let e=t.$implicit;Ql(" ",e.label," ");}}function Wn(i,t){if(i&1&&jC(0),i&2){let e=t.$implicit;Ql(" ",e.label," ");}}function jn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,57),$l(),Qi(4,"p")(5,"span"),nC(6,58),$l(),Qi(7,"a",109),nC(8,59),$l(),vg(9,"br")(10,"br"),Qi(11,"span"),nC(12,60),$l()()(),Qi(13,"div",68)(14,"sh-select",110)(15,"input",75),Vg("ngModelChange",function(s){kd(e);let l=iC();return Od(l.updateUsageStatistics(s))}),$l(),CD(),ag(16,Wn,1,1,"ng-template"),$l()()();}if(i&2){let e=iC();CE(14),yg("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),CE(),yg("ngModel",e.usageStatistics())("ngModelOptions",KC(4,Se)),_D();}}function qn(i,t){i&1&&(Qi(0,"label"),nC(1,63),$l());}function Kn(i,t){i&1&&(Qi(0,"label"),nC(1,64),$l());}function Qn(i,t){if(i&1){let e=vT();Qi(0,"section")(1,"div",67)(2,"h3"),nC(3,61),$l(),Qi(4,"p"),nC(5,62),$l()(),Qi(6,"div",91)(7,"p"),jC(8,"Backup process isolation"),$l(),Qi(9,"sh-toggle",79),Vg("checkedChange",function(s){kd(e);let l=iC();return Od(l.saveControllerIpcState(s))}),aT(10,qn,2,0,"label")(11,Kn,2,0,"label"),$l()()();}if(i&2){let e=iC();CE(9),yg("checked",e.isControllerIpcEnabled()),CE(),cT(e.isControllerIpcEnabled()?10:11);}}function Yn(i,t,e){let[n]=_s(i,e?.equal),s=n,l=n[j],E;return s.set=S=>{clearTimeout(E),E=setTimeout(()=>{ft(l,S);},t);},s.update=S=>{clearTimeout(E),E=setTimeout(()=>{go(l,S);},t);},s}var Zn=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],on=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],fe=class i{#n=T(be);#i=T(m);#e=T(m$1);#t=T(O);#o=T(C);#r=T(I);#s=T(f);#a=this.#s.getItem("locale")??"en-US";sysinfo=this.#e.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=Ge("list");previousLang=this.#a;langCtrl=Ge(this.#a);powerModeCtrl=Ge("");usageStatistics=Ge("");updatingUsageStatistics=Ge(false);remoteControlStatus=this.#o.statusMessage;remoteControlState=this.#o.state;updatingChannel=Ge(false);updateChannel=Ge("");isUsingRelay=this.#r.relayIsEnabled;defaultClient=Ge(this.#d());hasIpcController=this.#e.hasIpcController;usageStatisticsDisabled=Nt(()=>(this.#e.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");additionalReportingUrl=Nt(()=>{let t=this.#t.serverSettings();return t&&t["additional-report-url"]||""});#T=za(()=>{let t=this.#e.systemInfo()?.DefaultUsageReportLevel??"",e=on;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e);});remoteControlTooltip=Ge($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
3
- registration intact and allow pushing settings from the console.`);connectionStatusIndicatorTooltip=Ge($localize`Hides the connection status indicator in the status bar. Useful if you are not using the remote console.`);setNewChannel(t){this.updateChannel();this.updateChannel.set(t),this.#t.setUpdateChannel(t).pipe(qu(()=>this.updatingChannel.set(false))).subscribe();}allowRemoteAccess=Ge(false);allowedHostnames=Ge("");loadedAllowedHostnames=Ge("");updatingRemoteAccess=Ge(false);updatingAllowedHosts=Ge(false);updatingConsoleControl=Ge(false);consoleControlDisabled=Ge(false);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;isControllerIpcEnabled=this.#t.isControllerIpcEnabled;updateRemoteAccess(t){this.allowRemoteAccess.set(t),this.#t.setRemoteAccessInterface(t?"any":"loopback").pipe(qu(()=>this.updatingRemoteAccess.set(false))).subscribe();}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(true),this.#t.setRemoteAccessAllowedHostnames(t).pipe(qu(()=>this.updatingAllowedHosts.set(false))).subscribe();}toggleConsoleControl(t){this.consoleControlDisabled.set(!t),this.#t.setDisableConsoleControl(!t).pipe(qu(()=>this.updatingConsoleControl.set(false))).subscribe();}updatingDisableTrayIconLogin=Ge(false);disableTrayIconLogin=Ge(false);saveDisableTrayIconLogin(t){let e=t;this.updatingDisableTrayIconLogin.set(true),this.#t.setDisableTrayIconLogin(e).pipe(qu(()=>this.updatingDisableTrayIconLogin.set(false))).subscribe();}updatingHideConsoleConnectionStatus=Ge(false);saveHideConsoleConnectionStatus(t){this.updatingHideConsoleConnectionStatus.set(true),this.#t.setHideConsoleConnectionStatus(!t).pipe(qu(()=>this.updatingHideConsoleConnectionStatus.set(false))).subscribe();}updatingControllerIpcState=Ge(false);saveControllerIpcState(t){this.updatingControllerIpcState.set(true),this.#t.setControllerIpcState(!!t).pipe(qu(()=>this.updatingControllerIpcState.set(false))).subscribe();}showPassphraseForm=Ge(false);isUpdating=Ge(false);passphrase=Ge("");repeatPassphrase=Ge("");passwordUpdated=Ge(false);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(qu(()=>this.isUpdating.set(false))).subscribe({next:()=>{this.showPassphraseForm.set(false),this.passwordUpdated.set(true),setTimeout(()=>{this.passwordUpdated.set(false);},3e3);}}));}openPassphraseForm(){this.showPassphraseForm.set(true);}cancelPasswordChange(){this.showPassphraseForm.set(false);}languageOptions=Ge([...wt].sort((t,e)=>t.label.localeCompare(e.label)));powerModeOptions=Nt(()=>{let t=this.#e.systemInfo();return !t?.PowerModeProviders||t.PowerModeProviders.filter(e=>e!==""&&e!=="None").length==0?[]:t.PowerModeProviders.map(e=>({value:e==""?"default":e,label:e===""?$localize`Default`:e}))});usageStatisticsOptions=Ge(on);timeTypeOptions=Ge(Zn);timeType=Ge("none");timeValue=Yn(0,300);timeRange=Nt(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#s.setItem("locale",t),window.location.reload());}updateTimeValue(t){this.timeValue.set(t),this.#_();}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#_();}#l;#_(){this.#l&&clearTimeout(this.#l),this.#l=setTimeout(()=>{let t=this.timeValue(),e=this.timeType(),n=e==="none"||t===0?"":`${t}${e}`;n!==this.#t.serverSettings()?.["startup-delay"]&&this.#t.setStartupDelay(n).subscribe();},1e3);}updateUsageStatistics(t){let e=this.usageStatistics();!t||t===""||t===e||(this.usageStatistics.set(t),this.updatingUsageStatistics.set(true),this.#t.setUsageReporterLevel(t).subscribe());}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe());}serverSettingsEffect=za(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),s=e.slice(0,-1),l=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.consoleControlDisabled.set(t["disable-console-control"]==="True"),this.usageStatistics.set(t["usage-reporter-level"]===""?"none":t["usage-reporter-level"]),this.timeType.set(e==""?"none":l.includes(n)?n:"none"),this.timeValue.set(e==""?0:parseInt(s));let E=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(E);});setDarkMode(){this.#i.setDarkMode();}setLightMode(){this.#i.setLightMode();}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#n.open(h,{data:{title:$localize`Use legacy UI by default`,message:$localize`Are you sure you want to use the legacy user interface by default? This is not recommended unless you have a specific reason.`,confirmText:$localize`Use legacy UI by default`,cancelText:$localize`Cancel`},closed:e=>{e&&(window.location.href="/ngax",this.#c(t));}}):this.#c(t));}openLegacyUI(){this.#n.open(h,{data:{title:$localize`Open legacy UI`,message:$localize`Are you sure you want to open the legacy user interface? This is not recommended unless you have a specific reason.`,confirmText:$localize`Open legacy UI`,cancelText:$localize`Cancel`},closed:t=>{t&&window.open("/ngax","_blank");}});}#c(t){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+t+"; expires="+e.toUTCString()+"; path=/",this.defaultClient.set(t);}#d(){let t=document.cookie.split(";");for(let e=0;e<t.length;e++){let n=t[e].trim();if(n.startsWith("default-client="))return n.substring(15)}return "ngclient"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=hw({type:i,selectors:[["app-settings"]],decls:130,vars:38,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Color theme`;let s;s=$localize`Customize your application theme`;let l;l=$localize`Passwords`;let E;E=$localize`Change server passphrase`;let S;S=$localize`Language`;let m;m=$localize`Select a language for the platform`;let f;f=$localize`Use legacy interface`;let W;W=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let ue;ue=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let J;J=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*51:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set current UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*51:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*52:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set legacy UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*52:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,J=oC(J);let z;z=$localize`Allow remote access (requires restart)`;let Q;Q=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Y;Y=$localize`Allow remote access`;let Ie;Ie=$localize`Prevent tray icon automatic log-in`;let Me;Me=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Pe;Pe=$localize`Prevent tray icon automatic log-in`;let Oe;Oe=$localize`Update channel`;let be;be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let ve;ve=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Re;Re=$localize`Stable`;let Ge;Ge=$localize`Official stable release.`;let ye;ye=$localize`Beta`;let Fe;Fe=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let $e;$e=$localize`Experimental`;let Ae;Ae=$localize`Early previews of new features. Not for use with important data.`;let Le;Le=$localize`Canary`;let we;we=$localize`Builds for developers and testers only. Not for use with important data.`;let De;De=$localize`Pause after startup or hibernation`;let xe;xe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let ke;ke=$localize`Advanced options`;let Xe;Xe=$localize`Console connection status`;let Je;Je=$localize`Reporting configured by server`;let ze;ze=$localize`Connect to console`;let Ve;Ve=$localize`Configure console control`;let Ue;Ue=$localize` You can control various settings for the remote console connection. If you are not using the console, you can also hide the connection status indicator. `;let Be;Be=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let He;He=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let We;We=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let je;je=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let qe;qe=$localize`Toggle console connection status`;let Ke;Ke=$localize`Toggle the visibility of the console connection status indicator.`;let Qe;Qe=$localize`Console connection status is hidden`;let Ye;Ye=$localize`Console connection status is visible`;let Ze;Ze=$localize`Enter new password`;let et;et=$localize`Repeat password`;let ge;ge=$localize`Password have to be filled and have to match`;let tt;tt=$localize`Passphrase`;let nt;nt=$localize`Repeat passphrase`;let it;it=$localize`Cancel`;let ot;ot=$localize` Update passphrase `;let st;st=$localize` Update passphrase `;let at;at=$localize`Change password`;let rt;rt=$localize`Allowed hostnames`;let lt;lt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let _t;_t=$localize` Update allowed hostnames `;let ct;ct=$localize`Power mode provider`;let dt;dt=$localize` The power mode provider monitors the system for when it enters a low power state and pauses Duplicati. When the system resumes, Duplicati will resume as well. Choosing the None option disables detection of low power states and Duplicati will run all the time. `;let Tt;Tt=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let St;St=$localize`Usage statistics`;let ut;ut=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate `;let gt;gt=$localize`public usage statistics.`;let pt;pt=$localize` All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `;let Ct;Ct=$localize`Experimental options`;let mt;mt=$localize`Toggle experimental options.`;let Et;Et=$localize`Operations run in an isolated process`;let Nt;return Nt=$localize`Operations run inside the server process`,[t,e,n,s,l,E,S,m,f,W,ue,J,z,Q,Y,Ie,Me,Pe,Oe,be,ve,Re,Ge,ye,Fe,$e,Ae,Le,we,De,xe,ke,Xe,Je,ze,Ve,Ue,Be,He,We,je,qe,Ke,Qe,Ye,tt,nt,it,ot,st,at,rt,lt,_t,ct,dt,Tt,St,ut,gt,pt,Ct,mt,Et,Nt,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"options","isClearable","inlineSearch"],["type","text",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[1,"primary","raised",3,"checkedChange","checked"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised",3,"checked"],[1,"field-row"],[1,"raised","primary",3,"unit"],["type","range",3,"ngModelChange","min","max","disabled","ngModel","ngModelOptions"],["label","label","value","value",3,"options","isClearable"],["type","text",3,"ngModelChange","ngModel"],[1,"advanced-settings"],[1,"reporting-url","primary","simple"],[1,"right","multiple"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","new-password","placeholder",Ze,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","new-password","placeholder",et,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",ge,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",ge,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],["value","value","label","label",3,"options","isClearable"],["href","https://usage-reporter.duplicati.com/","target","_blank"],["label","label","value","value",3,"options","isLoading"]]},template:function(e,n){e&1&&(vg(0,"app-status-bar"),Qi(1,"div",65)(2,"header")(3,"div",66)(4,"h2"),nC(5,0),$l(),Qi(6,"p"),nC(7,1),$l()()(),aT(8,In,8,2,"section")(9,Fn,10,2),Qi(10,"section")(11,"div",67)(12,"h3"),nC(13,2),$l(),Qi(14,"p"),nC(15,3),$l()(),Qi(16,"div",68)(17,"div",69)(18,"img",70),Vg("click",function(){return n.setLightMode()}),$l(),Qi(19,"img",71),Vg("click",function(){return n.setDarkMode()}),$l()()()(),Qi(20,"section")(21,"div",67)(22,"h3"),nC(23,4),$l(),Qi(24,"p"),nC(25,5),$l()(),Qi(26,"div",72),aT(27,Dn,15,7)(28,kn,4,1,"div",73),$l()(),Qi(29,"section")(30,"div",67)(31,"h3"),nC(32,6),$l(),Qi(33,"p"),nC(34,7),$l()(),Qi(35,"div",68)(36,"sh-select",74)(37,"input",75),Vg("ngModelChange",function(l){return n.updateLocale(l)}),$l(),CD(),$l()()(),Qi(38,"section")(39,"div",67)(40,"h3"),nC(41,8),$l(),Qi(42,"p"),nC(43,9),$l()(),Qi(44,"div",76)(45,"button",77),Vg("click",function(){return n.openLegacyUI()}),Lg(46,10),vg(47,"sh-icon"),Fg(),$l(),Qi(48,"button",77),Vg("click",function(){return n.changeDefaultClientTo(n.defaultClient()==="ngclient"?"ngax":"ngclient")}),Lg(49,11),vg(50,"sh-icon"),aT(51,Xn,2,0,"span")(52,Jn,2,0,"span"),Fg(),$l()()(),Qi(53,"section")(54,"div",67)(55,"h3"),nC(56,12),$l(),Qi(57,"p"),nC(58,13),$l()(),Qi(59,"div",78)(60,"sh-toggle",79),Vg("checkedChange",function(l){return n.updateRemoteAccess(l)}),Qi(61,"label"),nC(62,14),$l()(),aT(63,zn,8,3),$l()(),Qi(64,"section")(65,"div",67)(66,"h3"),nC(67,15),$l(),Qi(68,"p"),nC(69,16),$l()(),Qi(70,"div",68)(71,"sh-toggle",79),Vg("checkedChange",function(l){return n.saveDisableTrayIconLogin(l)}),Qi(72,"label"),nC(73,17),$l()()()(),aT(74,Vn,9,5,"section"),Qi(75,"section")(76,"div",67)(77,"h3"),nC(78,18),$l(),aT(79,Un,2,1,"p"),aT(80,Bn,1,0,"sh-progress-bar",80),$l(),Qi(81,"div",81)(82,"div",82),Vg("click",function(){return n.setNewChannel("")}),Qi(83,"sh-radio",83),nC(84,19),$l(),Qi(85,"p"),nC(86,20),$l()(),Qi(87,"div",82),Vg("click",function(){return n.setNewChannel("stable")}),Qi(88,"sh-radio",83),nC(89,21),$l(),Qi(90,"p"),nC(91,22),$l()(),Qi(92,"div",82),Vg("click",function(){return n.setNewChannel("beta")}),Qi(93,"sh-radio",83),nC(94,23),$l(),Qi(95,"p"),nC(96,24),$l()(),Qi(97,"div",82),Vg("click",function(){return n.setNewChannel("experimental")}),Qi(98,"sh-radio",83),nC(99,25),$l(),Qi(100,"p"),nC(101,26),$l()(),Qi(102,"div",82),Vg("click",function(){return n.setNewChannel("canary")}),Qi(103,"sh-radio",83),nC(104,27),$l(),Qi(105,"p"),nC(106,28),$l()()()(),Qi(107,"section")(108,"div",67)(109,"h3"),nC(110,29),$l(),Qi(111,"p"),nC(112,30),$l()(),Qi(113,"div",68)(114,"div",84)(115,"sh-range-slider",85)(116,"input",86),cm("ngModelChange",function(l){return UC(n.timeValue,l)||(n.timeValue=l),l}),Vg("ngModelChange",function(l){return n.updateTimeValue(l)}),$l(),CD(),$l(),Qi(117,"sh-select",87)(118,"input",88),Vg("ngModelChange",function(l){return n.updateTimeType(l)}),$l(),CD(),ag(119,Hn,1,1,"ng-template"),$l()()()(),aT(120,jn,17,5,"section"),aT(121,Qn,12,2,"section"),$l(),vg(122,"sh-divider"),Qi(123,"div",65)(124,"section")(125,"div",89)(126,"h3"),nC(127,31),$l(),vg(128,"app-advanced-options-settings"),$l()()(),vg(129,"sh-divider")),e&2&&(CE(8),cT(n.isUsingRelay()?8:9),CE(10),Yg("active",!n.isDarkMode()),CE(),Yg("active",n.isDarkMode()),CE(8),cT(n.showPassphraseForm()?27:28),CE(9),yg("options",n.languageOptions())("isClearable",false)("inlineSearch",true),CE(),yg("ngModel",n.langCtrl())("ngModelOptions",KC(36,Se)),_D(),CE(14),cT(n.defaultClient()==="ngax"?51:52),CE(9),yg("checked",n.allowRemoteAccess()),CE(3),cT(n.allowRemoteAccess()?63:-1),CE(8),yg("checked",n.disableTrayIconLogin()),CE(3),cT(n.powerModeOptions().length>0?74:-1),CE(5),cT(n.sysinfo()?.ServerVersion?79:-1),CE(),cT(n.updatingChannel()?80:-1),CE(3),yg("checked",n.updateChannel()===""),CE(),jg(n.sysinfo()?.DefaultUpdateChannel),rC(84),CE(2),jg(n.sysinfo()?.ServerVersionType),rC(86),CE(2),yg("checked",n.updateChannel()==="stable"),CE(5),yg("checked",n.updateChannel()==="beta"),CE(5),yg("checked",n.updateChannel()==="experimental"),CE(5),yg("checked",n.updateChannel()==="canary"),CE(12),yg("unit",n.timeType()==="none"?"s":n.timeType()),CE(),yg("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),am("ngModel",n.timeValue),yg("ngModelOptions",KC(37,Se)),_D(),CE(),yg("options",n.timeTypeOptions())("isClearable",false),CE(),yg("ngModel",n.timeType()),_D(),CE(2),cT(n.usageStatisticsDisabled()?-1:120),CE(),cT(n.hasIpcController()?121:-1));},dependencies:[Bn$1,Ze,on$1,Rn$1,Jt,Gn$1,ee,Te,K,v,O$1,tn,d,J,at,Fe,N,c,ue,Nt$1,D],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;background:var(--base-1);border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-4)}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{grid-template-columns:1fr}}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] sh-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:15rem;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-8)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] sh-radio[_ngcontent-%COMP%]{color:var(--base-8);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-9)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}.right.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.right.multiple[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};
4
- export{Yn as debounceSignal,fe as default};
package/chunk-DTu0ZYnR.js DELETED
@@ -1 +0,0 @@
1
- var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-CtEMAj2d.js')},{path:"encryption",loadComponent:()=>import('./chunk-CTRzgLM9.js').then(function(n){return n.c})},{path:"select-files",loadComponent:()=>import('./chunk-CTRzgLM9.js').then(function(n){return n.a})},{path:"options",loadComponent:()=>import('./chunk-CTRzgLM9.js').then(function(n){return n.b})},{path:":taskid/progress",loadComponent:()=>import('./chunk-BkUa7yBI.js')}],t=o;export{t as default};
package/chunk-DY3nK3tu.js DELETED
@@ -1,2 +0,0 @@
1
- import {e as ee}from'./chunk-C4GeR7BF.js';import'./chunk-CUaRQ2FJ.js';import'./chunk-aOMoAKYY.js';import'./chunk-BEhUV7oX.js';import {s as st,o as on,l as lt,Q as Qt,t as tn}from'./chunk-kU0H989B.js';import'./chunk-C80zvTbO.js';import'./chunk-Cjb79u3p.js';import'./chunk-DJJ8GbYi.js';import'./chunk-DUYvFN8m.js';import'./chunk-BpRWdcC8.js';import {h,G,V}from'./chunk-ihUnHtR7.js';import'./chunk-Bb6BmVO4.js';import'./chunk-DmDqcC4A.js';import'./chunk-CAwTsBqQ.js';import {c}from'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,a5 as g,a6 as be$1,E as D1,G as Ge$1,N as Nt,z as za,at as h$1,h as hw,v,d as N,j as vg,Q as Qi,f as aT,$ as $l,C as CE,i as cT,o as oC,W as Wg,K as fC,n as nC,k as iC,l as vT,V as Vg,r as kd,O as Od,w as jC,L as Lg,F as Fg,au as jg,av as rC,Y as Yg,A as yg,a1 as dT,ap as lT,a2 as fT,p as cm,U as UC,s as CD,x as am,y as _D,J as om}from'./main-VVQP2YE7.js';import {f}from'./chunk-Bja52qI7.js';import {d}from'./chunk-B8uF0dom.js';import {F as Fe$1}from'./chunk-B9maI7Xa.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-BO2GlieG.js';import'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import'./chunk-DqIU7ViF.js';import'./chunk-Box6Lckh.js';function Ee(n,t){n&1&&(Qi(0,"div",13),vg(1,"sh-progress-bar",14),Qi(2,"div",15)(3,"h3"),nC(4,2),$l()()());}function Fe(n,t){n&1&&(Qi(0,"sh-divider"),nC(1,5),$l());}function Ie(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit;CE(),om(e.Description);}}function Ne(n,t){if(n&1&&(Qi(0,"p",20),jC(1),$l()),n&2){let e=iC().$implicit,o=iC(3);CE(),om(o.getSimplePath(e.BaseUrl));}}function ye(n,t){if(n&1){let e=vT();Qi(0,"button",25),Vg("click",function(i){kd(e);let r=iC().$implicit,f=iC(3);return Od(f.updateBackupsSync(r,i))}),jC(1," Update backups "),$l();}if(n&2){let e=iC(4);yg("disabled",e.isSaving());}}function he(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",18),Vg("click",function(){let i=kd(e).$implicit,r=iC(3);return Od(r.selectDestination(i))}),Qi(1,"h3",19),jC(2),$l(),aT(3,Ie,2,1,"p",20)(4,Ne,2,1,"p",20),Qi(5,"div",21),aT(6,ye,2,1,"button",22),Qi(7,"button",23),Vg("click",function(i){let r=kd(e).$implicit,f=iC(3);return Od(f.deleteDestination(r.ID,i))}),Qi(8,"sh-icon"),jC(9,"trash"),$l()(),Qi(10,"button",24),Lg(11,6),vg(12,"sh-icon"),Fg(),$l()()();}if(n&2){let e=t.$implicit,o=iC(3);yg("targetUrl",e.BaseUrl),CE(2),om(e.Name||e.BaseUrl),CE(),cT(e.Description?3:4),CE(3),cT(o.isOutOfSync(e)?6:-1);}}function Oe(n,t){if(n&1){let e=vT();Qi(0,"sh-card",16),Vg("click",function(){kd(e);let i=iC(2);return Od(i.selectDestination("new"))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),jC(2,"plus-circle"),$l(),Qi(3,"div",15)(4,"h3"),nC(5,3),$l(),Qi(6,"p"),nC(7,4),$l()()(),aT(8,Fe,2,0,"sh-divider"),dT(9,he,13,4,"app-destination-list-item",17,lT);}if(n&2){let e=iC(2);CE(8),cT(e.destinations().length>0?8:-1),CE(),fT(e.destinations());}}function xe(n,t){if(n&1&&(Qi(0,"h2"),nC(1,1),$l(),aT(2,Ee,5,0,"div",13)(3,Oe,11,1)),n&2){let e=iC();CE(2),cT(e.isLoading()?2:3);}}function Be(n,t){n&1&&nC(0,10,1);}function Pe(n,t){n&1&&nC(0,10,2);}function Ae(n,t){n&1&&nC(0,10,3);}function Me(n,t){if(n&1){let e=vT();Qi(0,"button",37),Vg("click",function(){kd(e);let i=iC(2);return Od(i.testDestination())}),Lg(1,10),aT(2,Be,1,0)(3,Pe,1,0)(4,Ae,1,0),Fg(),$l();}if(n&2){let e=iC(2);yg("disabled",e.testSignal()=="testing"),CE(2),cT(e.testSignal()=="testing"?2:e.testResponse()?.action==="success"?3:4);}}function be(n,t){if(n&1){let e=vT();Qi(0,"div",32)(1,"sh-form-field")(2,"label"),nC(3,11),$l(),Qi(4,"input",38),cm("ngModelChange",function(i){kd(e);let r=iC(2);return UC(r.editName,i)||(r.editName=i),Od(i)}),$l(),CD(),$l()();}if(n&2){let e=iC(2);CE(4),am("ngModel",e.editName),_D();}}function $e(n,t){if(n&1){let e=vT();Qi(0,"app-test-url",39,0),cm("targetUrlChange",function(i){kd(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Od(i)})("testSignalChange",function(i){kd(e);let r=iC(2);return UC(r.testSignal,i)||(r.testSignal=i),Od(i)}),$l();}if(n&2){let e=iC(2);am("targetUrl",e.editBaseUrl)("testSignal",e.testSignal),yg("connectionStringId",e.selectedDestinationId())("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",true)("askToCreate",true)("testExpectation","any")("readOnlyTest",false)("moduleType","Backend");}}function ke(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list-item",40)(1,"button",41),Vg("click",function(){kd(e);let i=iC(2);return Od(i.removeDestination())}),nC(2,12),$l()(),Qi(3,"app-single-destination",42),cm("targetUrlChange",function(i){kd(e);let r=iC(2);return UC(r.editBaseUrl,i)||(r.editBaseUrl=i),Od(i)}),$l();}if(n&2){let e=iC(2);yg("targetUrl",e.editBaseUrl()),CE(3),am("targetUrl",e.editBaseUrl);}}function Re(n,t){if(n&1){let e=vT();Qi(0,"app-destination-list",43),Vg("setDestination",function(i){kd(e);let r=iC(2);return Od(r.setDestination(i))}),$l();}}function Le(n,t){n&1&&nC(0,9,1);}function we(n,t){n&1&&nC(0,9,2);}function Ue(n,t){n&1&&nC(0,9,3);}function ve(n,t){n&1&&nC(0,9,4);}function Ge(n,t){if(n&1){let e=vT();Qi(0,"header",26)(1,"button",23),Vg("click",function(){kd(e);let i=iC();return Od(i.cancelEdit())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()()(),Qi(4,"div",27)(5,"sh-card",28)(6,"header",29)(7,"h3"),nC(8,7),$l(),Qi(9,"div",30),aT(10,Me,5,2,"button",31),$l()(),aT(11,be,5,1,"div",32),aT(12,$e,2,10,"app-test-url",33),aT(13,ke,4,2)(14,Re,1,0,"app-destination-list"),$l(),Qi(15,"div",34)(16,"button",35),Vg("click",function(){kd(e);let i=iC();return Od(i.cancelEdit())}),nC(17,8),$l(),Qi(18,"button",36),Vg("click",function(){kd(e);let i=iC();return Od(i.testResponse()?.action==="success"||i.testResponse()?.action==="missing-folder"||!i.isUrlChanged()?i.save():i.testDestination())}),Lg(19,9),aT(20,Le,1,0)(21,we,1,0)(22,Ue,1,0)(23,ve,1,0),Fg(),$l()()();}if(n&2){let e=iC();CE(8),jg(e.selectedDestination()==="new"?"New Destination":"Edit Destination"),rC(8),CE(2),cT(e.editBaseUrl()?10:-1),CE(),cT(e.selectedDestination()!=="new"?11:-1),CE(),cT(e.editBaseUrl()?12:-1),CE(),cT(e.editBaseUrl()?13:14),CE(5),Yg("primary",e.testResponse()?.action==="success"||!e.isUrlChanged())("warn",e.isUrlChanged()&&e.testSignal()===null||e.testSignal()==="testing"||e.testResponse()?.action==="missing-folder")("error",e.testResponse()&&e.testResponse()?.action!=="success"&&e.testResponse()?.action!=="missing-folder"),yg("disabled",!e.editBaseUrl()||e.isSaving()||e.testSignal()==="testing"),CE(2),cT(e.isSaving()?20:e.testSignal()==="testing"?21:e.testResponse()?.action==="success"||e.testResponse()?.action==="missing-folder"||!e.isUrlChanged()?22:23);}}var R=class n{#e=T(st);#t=T(g);#n=T(be$1);getSimplePath=h;backups=this.#t.backups;constructor(){this.#t.getBackups();}isSaving=this.#e.isSaving;destinations=this.#e.destinations;isLoading=this.#e.resourceDestinations.isLoading;testUrl=D1(on);selectedDestination=Ge$1(null);selectedDestinationId=Nt(()=>this.selectedDestination()!=="new"?this.selectedDestination().ID:null);editName=Ge$1(null);editDescription=Ge$1(null);editBaseUrl=Ge$1(null);initialBaseUrl=Ge$1(null);isUrlChanged=Nt(()=>{let t=this.editBaseUrl(),e=this.initialBaseUrl();return this.selectedDestination()==="new"?true:t!==e});testSignal=Ge$1(null);testResponse=Nt(()=>{let t=this.testSignal();return t&&typeof t!="string"?t:null});getOutOfSyncBackupIds(t){if(!t.Backups)return [];let e=new Map(this.backups().map(o=>[o.Backup?.ID,o.Backup]));return t.Backups.filter(o=>{let i=e.get(o.ID);return i&&i.TargetURL!==t.BaseUrl}).map(o=>o.ID).filter(o=>!!o)}isOutOfSync(t){return this.getOutOfSyncBackupIds(t).length>0}#i=za(()=>{this.editBaseUrl(),this.testSignal.set(null);});selectDestination(t){this.selectedDestination.set(t),this.testSignal.set(null),t==="new"?(this.editName.set(null),this.editDescription.set(null),this.editBaseUrl.set(null),this.initialBaseUrl.set(null)):(this.editName.set(t.Name),this.editDescription.set(t.Description),this.editBaseUrl.set(t.BaseUrl),this.initialBaseUrl.set(t.BaseUrl),this.#e.getById(t.ID).subscribe(e=>{e.Data&&(this.editName.set(e.Data.Name),this.editDescription.set(e.Data.Description),this.editBaseUrl.set(e.Data.BaseUrl??null),this.initialBaseUrl.set(e.Data.BaseUrl??null));}));}cancelEdit(){this.selectedDestination.set(null);}setDestination(t){let e=G(t??"");if(e){if(e.mapper.default){let o=e.mapper.default("");this.editBaseUrl.set(o);return}this.editBaseUrl.set(`${t}://`);}}removeDestination(){this.editBaseUrl.set(null);}async testDestination(){(await this.testUrl()?.testDestination(false))?.action==="missing-folder"&&this.promptCreateFolder();}promptCreateFolder(){this.#n.open(h$1,{data:{title:$localize`Folder missing`,message:$localize`The specified folder does not exist. Would you like to create it now?`,confirmText:$localize`Create Folder`,cancelText:$localize`Dismiss`},closed:t=>{t&&this.testUrl()?.createFolder();}});}save(){let t=this.selectedDestination();t&&this.performSave(t);}performSave(t){let e=this.editName(),o=this.editDescription(),i=this.editBaseUrl();if(t==="new"){let I=V(i??"")?.displayName??"Destination",y=this.destinations().filter(F=>F.Name?.startsWith(I)).length;e=`${I} #${y+1}`,o=null;}let r={Name:e,Description:o,BaseUrl:i};this.#e.save(t,r).subscribe(()=>{this.selectedDestination.set(null),this.#e.reload(),this.#t.getBackups(true);});}updateBackupsSync(t,e){e.stopPropagation();let o=this.getOutOfSyncBackupIds(t);this.#n.open(h$1,{data:{title:$localize`Update backups`,message:$localize`Are you sure you want to update ${o.length} backup(s) to use the current connection string?`,confirmText:$localize`Update`,cancelText:$localize`Cancel`},closed:i=>{i&&this.#e.updateBackups(t.ID,o).subscribe(()=>{this.#e.reload(),this.#t.getBackups(true);});}});}deleteDestination(t,e){e.stopPropagation(),this.#n.open(h$1,{data:{title:$localize`Delete destination`,message:$localize`Are you sure you want to delete this destination?`,confirmText:$localize`Delete`,confirmVariant:"error",cancelText:$localize`Cancel`},closed:o=>{o&&this.#e.delete(t).subscribe(()=>{this.#e.reload();});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=hw({type:n,selectors:[["app-destinations"]],viewQuery:function(e,o){e&1&&Wg(o.testUrl,on,5),e&2&&fC();},decls:4,vars:1,consts:()=>{let t;t=$localize`Destinations`;let e;e=$localize`Loading destinations...`;let o;o=$localize`Add new destination`;let i;i=$localize`Configure a new storage location.`;let r;r=$localize`Or manage your saved destinations`;let f;f=$localize` Manage ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`;let I;I=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let y;y=$localize`Cancel`;let F;F=$localize`${"\uFFFD*20:1\uFFFD"}:START_BLOCK_IF: Saving... ${"\uFFFD/*20:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*21:2\uFFFD"}:START_BLOCK_ELSE_IF: Testing... ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*22:3\uFFFD"}:START_BLOCK_ELSE_IF_1: Save Destination ${"[\uFFFD/*21:2\uFFFD|\uFFFD/*22:3\uFFFD]"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*23:4\uFFFD"}:START_BLOCK_ELSE: Test & Save ${"\uFFFD/*23:4\uFFFD"}:CLOSE_BLOCK_ELSE:`,F=oC(F);let L;L=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Testing... ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE_IF: Retry test ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE_IF:${"\uFFFD*4:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*4:3\uFFFD"}:CLOSE_BLOCK_ELSE:`;let w;w=$localize`Name`;let U;U=$localize`Name`;let v;return v=$localize`Change`,[["testUrl",""],t,e,o,i,r,f,I,y,F,L,U,v,[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["displayName",""],["description",""],[1,"manage-actions"],["shButton","","type","button",1,"small","raised","primary",3,"disabled"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],["shButton","","type","button",1,"manage-btn"],["shButton","","type","button",1,"small","raised","primary",3,"click","disabled"],[1,"edit-header"],[1,"edit-form"],[1,"config-section","type-c"],[1,"dest-config-header"],[1,"actions"],["shButton","","type","button",1,"small","ghost",3,"disabled"],[1,"form-row"],[3,"targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"form-footer"],["shButton","","type","button",3,"click"],["shButton","","type","button",1,"raised",3,"click","disabled"],["shButton","","type","button",1,"small","ghost",3,"click","disabled"],["placeholder",w,3,"ngModelChange","ngModel"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","connectionStringId","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"selected-backend",3,"targetUrl"],["shButton","","type","button",1,"ghost",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"setDestination"]]},template:function(e,o){e&1&&(vg(0,"app-status-bar"),Qi(1,"section"),aT(2,xe,4,1)(3,Ge,24,13),$l()),e&2&&(CE(2),cT(o.selectedDestination()===null?2:3));},dependencies:[lt,Qt,tn,ee,d,v,N,f,Fe$1,c,on,Bn,Ze,Rn,Jt],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}h3[_ngcontent-%COMP%]{font:var(--paragraph-10)}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-info[_ngcontent-%COMP%]{flex:1}.custom-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--body-10);color:var(--base-7);margin:.25rem 0 0}.manage-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}@media(max-width:600px){.manage-actions[_ngcontent-%COMP%] .manage-btn[_ngcontent-%COMP%]{display:none}}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:var(--base-1);color:var(--primary-8)}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.edit-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.edit-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.5rem}@media(max-width:600px){.edit-form[_ngcontent-%COMP%] .form-row[_ngcontent-%COMP%]{grid-template-columns:1fr}}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem}.edit-form[_ngcontent-%COMP%] .config-section[_ngcontent-%COMP%] .dest-config-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.edit-form[_ngcontent-%COMP%] .form-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1.5rem;border-top:1px solid var(--base-3)}.selected-backend[_ngcontent-%COMP%]{margin-bottom:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}"]})};
2
- export{R as default};
package/chunk-DYnVzNxt.js DELETED
@@ -1 +0,0 @@
1
- import {ShipTable as ot}from'./chunk-B52v_pjw.js';import'./chunk-BTgf5lfZ.js';import {T,ab as C,a6 as be,a5 as g,e as ee,b as I1,N as Nt,G as Ge,z as za,ai as m,aj as l,at as h,H as qu,h as hw,v as v$1,_ as _t,aH as m$1,b2 as m$2,Q as Qi,n as nC,$ as $l,f as aT,V as Vg,p as cm,C as CE,au as jg,av as rC,i as cT,A as yg,a3 as KC,Y as Yg,x as am,o as oC,U as UC,j as vg,l as vT,r as kd,k as iC,O as Od,a1 as dT,a2 as fT,w as jC,aM as ob,J as om,aN as ab,aR as sb}from'./main-VVQP2YE7.js';import {d}from'./chunk-B8uF0dom.js';import {$}from'./chunk-Box6Lckh.js';import {U}from'./chunk-DqIU7ViF.js';var de=()=>["/"],Se=(l,n)=>n.Version;function ce(l,n){l&1&&(Qi(0,"div",11),vg(1,"sh-progress-bar",19),Qi(2,"p"),nC(3,4),$l()());}function Ce(l,n){l&1&&(Qi(0,"div",12)(1,"p"),nC(2,5),$l()());}function me(l,n){if(l&1){let e=vT();Qi(0,"tr",26),Vg("click",function(i){let r=kd(e).$implicit,S=iC(2);return Od(S.toggleSelected(r.Version,i))}),Qi(1,"td")(2,"sh-checkbox",22),Vg("click",function(i){let r=kd(e).$implicit,S=iC(2);return Od(S.toggleSelected(r.Version,i))}),$l()(),Qi(3,"td"),jC(4),$l(),Qi(5,"td"),jC(6),ob(7,"relativeTime"),$l(),Qi(8,"td"),jC(9),ob(10,"relativeTime"),$l(),Qi(11,"td"),jC(12),ob(13,"bytes"),$l(),Qi(14,"td"),jC(15),$l()();}if(l&2){let e=n.$implicit;CE(2),yg("checked",e.Selected),CE(2),om(e.Version),CE(2),om(ab(7,6,e.Time,true)),CE(3),om(ab(10,9,e.Time,false)),CE(3),om(sb(13,12,e.FileSizes)),CE(3),om(e.FileCount);}}function pe(l,n){if(l&1){let e=vT();Qi(0,"sh-table",20),cm("sortByColumnChange",function(i){kd(e);let r=iC();return UC(r.sortByColumn,i)||(r.sortByColumn=i),Od(i)}),Qi(1,"tr",21)(2,"th")(3,"sh-checkbox",22),Vg("click",function(){kd(e);let i=iC();return Od(i.toggleSelect())}),$l()(),Qi(4,"th",23),nC(5,6),$l(),Qi(6,"th",23),nC(7,7),$l(),Qi(8,"th",23),nC(9,8),$l(),Qi(10,"th",24),nC(11,9),$l(),Qi(12,"th",25),nC(13,10),$l()(),dT(14,me,16,14,"tr",null,Se),$l();}if(l&2){let e=iC();yg("data",e.versions())("loading",e.isLoading()),am("sortByColumn",e.sortByColumn),CE(3),Yg("indeterminate",e.indeterminate()),yg("checked",e.allSelected()),CE(11),fT(e.versions());}}var v=class l$1{#e=T(C);#n=T(be);#t=T(g);#i=T(ee);id=I1.required();backup=Nt(()=>{this.#t.backups();return this.#t.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:n})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:n.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isDeleting=Ge(false);performCompact=Ge(true);versions=Ge([]);constructor(){za(()=>{let n=this.versionsResource.value();if(n){let e=(n.Data??[]).slice().sort((t,i)=>t.Time<i.Time?1:t.Time>i.Time?-1:0);this.versions.set(e.map(t=>m(l({},t),{Selected:false})));}});}selectedItems=Nt(()=>this.versions().filter(n=>n.Selected));allSelected=Nt(()=>this.selectedItems().length===this.versions().length&&this.versions().length>0);noneSelected=Nt(()=>this.selectedItems().length===0);indeterminate=Nt(()=>this.selectedItems().length>0&&!this.allSelected());sortByColumn=Ge("version");toggleSelected(n,e){e?.stopPropagation(),this.versions.update(t=>t.map(i=>i.Version===n?m(l({},i),{Selected:!i.Selected}):i));}toggleSelect(){this.allSelected()?this.selectNone():this.selectAll();}selectAll(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:true})));}selectNone(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:false})));}deleteVersions(){let n=this.selectedItems();if(n.length===0)return;let e=n.length,t=n.map(i=>i.Version);this.#n.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete ${e} version(s)?`,confirmText:$localize`Delete versions`,cancelText:$localize`Cancel`},closed:i=>{i&&(this.isDeleting.set(true),this.#e.postApiV2BackupDeleteVersions({requestBody:{BackupId:this.id(),Versions:t,SuppressCompact:!this.performCompact()}}).pipe(qu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#i.navigate(["/"]);}}));}});}static \u0275fac=function(e){return new(e||l$1)};static \u0275cmp=hw({type:l$1,selectors:[["app-delete-versions"]],inputs:{id:[1,"id"]},decls:13,vars:11,consts:()=>{let n;n=$localize`Delete versions from ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let t;t=$localize`{VAR_PLURAL, plural, =1 {1 version} other {{INTERPOLATION} versions}}`,t=oC(t,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let i;i=$localize` Delete ${t}:ICU@@85461926550041466: `;let r;r=$localize`Compact after deletion`;let S;S=$localize`Fetching versions from destination...`;let $;$=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let B;B=$localize`Timestamp`;let k;k=$localize`When`;let G;G=$localize`Size`;let x;return x=$localize`Files`,[n,e,i,r,S,$,b,B,k,G,x,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","error",3,"click","disabled"],[1,"sub-actions"],[1,"primary","raised",3,"checkedChange","checked"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],[1,"primary","raised",3,"click","checked"],["shSort","version"],["shSort","size"],["shSort","files"],[3,"click"]]},template:function(e,t){e&1&&(Qi(0,"h3"),nC(1,0),$l(),aT(2,ce,4,0,"div",11)(3,Ce,3,0,"div",12)(4,pe,16,6,"sh-table",13),Qi(5,"div",14)(6,"button",15),nC(7,1),$l(),Qi(8,"button",16),Vg("click",function(){return t.deleteVersions()}),nC(9,2),$l()(),Qi(10,"div",17)(11,"sh-checkbox",18),cm("checkedChange",function(r){return UC(t.performCompact,r)||(t.performCompact=r),r}),nC(12,3),$l()()),e&2&&(CE(),jg(t.backup()?.Backup?.Name),rC(1),CE(),cT(t.isLoading()?2:t.versions().length===0?3:4),CE(4),yg("routerLink",KC(10,de))("disabled",t.isDeleting()),CE(2),Yg("loading",t.isDeleting()),yg("disabled",t.isDeleting()||t.selectedItems().length===0||t.isLoading()),CE(),jg(t.selectedItems().length)(t.selectedItems().length),rC(9),CE(2),am("checked",t.performCompact));},dependencies:[v$1,U,d,ot,_t,m$1,m$2],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem;max-width:43.75rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.5rem;padding-bottom:2rem}"]})};export{v as default};
package/chunk-DZm4l28A.js DELETED
@@ -1,3 +0,0 @@
1
- import {OptionsListComponent as Oe}from'./chunk-CZoVeRAG.js';import {e as ee$1}from'./chunk-C4GeR7BF.js';import'./chunk-CUaRQ2FJ.js';import'./chunk-aOMoAKYY.js';import'./chunk-BEhUV7oX.js';import {k as ke,j as jt}from'./chunk-kU0H989B.js';import'./chunk-C80zvTbO.js';import'./chunk-Cjb79u3p.js';import'./chunk-DJJ8GbYi.js';import'./chunk-DUYvFN8m.js';import'./chunk-BpRWdcC8.js';import'./chunk-ihUnHtR7.js';import {N as Nt$2}from'./chunk-Bb6BmVO4.js';import'./chunk-DmDqcC4A.js';import'./chunk-CAwTsBqQ.js';import {c as c$1}from'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,ab as C,e as ee,aw as W,aW as G,aX as y,m,N as Nt$1,G as Ge,z as za,h as hw,_ as _t,v,d as N,j as vg,Q as Qi,L as Lg,F as Fg,$ as $l,f as aT,C as CE,i as cT,aD as YC,aY as x,aZ as ee$2,l as vT,s as CD,n as nC,p as cm,r as kd,k as iC,U as UC,O as Od,V as Vg,A as yg,a3 as KC,y as _D,x as am,Y as Yg,au as jg,av as rC}from'./main-VVQP2YE7.js';import'./chunk-Bja52qI7.js';import {d}from'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,G as Gn,g as gn,h as hn}from'./chunk-BO2GlieG.js';import {a as at}from'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import {L}from'./chunk-Box6Lckh.js';import'./chunk-DqIU7ViF.js';var I=class m{#t=new Map;saveState(e){let t=x();return this.#t.set(t,e),t}getState(e){return this.#t.get(e)}static \u0275fac=function(t){return new(t||m)};static \u0275prov=ee$2({token:m,factory:m.\u0275fac,providedIn:"root"})};var Tt=()=>["backup"];function ft(m,e){m&1&&vg(0,"sh-progress-bar",10);}function Nt(m,e){if(m&1){let t=vT();Qi(0,"form",11)(1,"sh-select",12)(2,"label",13),Lg(3,1),vg(4,"sh-icon",14),Fg(),$l(),vg(5,"input",15),CD(),$l(),Qi(6,"sh-form-field")(7,"label",16),Lg(8,2),vg(9,"sh-icon",17),Fg(),$l(),vg(10,"textarea",18),CD(),$l(),Qi(11,"sh-form-field")(12,"label",19),Lg(13,3),vg(14,"sh-icon",20),Fg(),$l(),vg(15,"textarea",21),CD(),$l()(),Qi(16,"sh-divider"),nC(17,4),$l(),Qi(18,"form",11)(19,"sh-form-field")(20,"label",22),Lg(21,5),vg(22,"sh-icon",23),Fg(),$l(),vg(23,"input",24),CD(),$l(),Qi(24,"sh-form-field")(25,"label",25),Lg(26,6),vg(27,"sh-icon",26),Fg(),$l(),vg(28,"input",27),CD(),$l(),Qi(29,"app-filters",28),cm("filtersChange",function(i){kd(t);let s=iC();return UC(s.filters,i)||(s.filters=i),Od(i)}),Vg("filtersChange",function(i){kd(t);let s=iC();return Od(s.updateFilters(i))}),$l()(),Qi(30,"app-options-list",29),cm("optionsChange",function(i){kd(t);let s=iC();return UC(s.settings,i)||(s.settings=i),Od(i)}),$l(),Qi(31,"div",30)(32,"button",31),Vg("click",function(){kd(t);let i=iC();return Od(i.submit())}),Lg(33,7),vg(34,"sh-icon"),Fg(),$l()();}if(m&2){let t=iC();yg("formGroup",t.baseCmdForm),CE(),yg("options",t.commandOptions()??KC(11,Tt))("inlineSearch",true),CE(4),_D(),CE(5),_D(),CE(5),_D(),CE(3),yg("formGroup",t.standardFields),CE(5),_D(),CE(5),_D(),CE(),am("filters",t.filters),yg("osType",t.osType()??""),CE(),am("options",t.settings),yg("hasFreeTextSettings",true),CE(2),Yg("loading",t.isSubmitting()),CE(2),jg(t.baseCmdForm.value.command),rC(33);}}var c=new jn,$=class m$1{#t=T(ke);#n=T(C);#o=T(ee);#e=T(W);#a=T(G);#s=T(y);#i=T(I);#r=T(m);osType=Nt$1(()=>this.#r.systemInfo()?.OSType);#l=L(this.#e.params);commandOptions=L(this.#a.getApiV1Commandline());isSubmitting=Ge(false);optionsFields=this.#t.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#t.finishedLoading;backupId=this.#t.backupId;filters=Ge([]);settings=this.#t.settings;updateFilters(e){this.standardFields.controls.filters.clear(),e.forEach(t=>this.standardFields.controls.filters.push(c.control(t))),this.filters.set(e);}#m=za(()=>{let e=this.#l()?.id;this.#t.backupId.set(e),this.getBackup(e);});getBackup(e){this.#n.getApiV1BackupById({id:e}).subscribe({next:t=>{this.#t.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.#t.mapGeneralToForm(t.Backup),this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#t.mapOptionsToForms(t.Backup,true)),this.applyStateFromUrl(),this.#t.finishedLoading.set(true);}});}mapStandardFieldsToForm(e){if(this.standardFields.patchValue({dbpath:e.DBPath,"backup-id":e.ID,"backup-name":e.Name}),this.standardFields.controls.filters.clear(),e.Filters&&e.Filters.length){let t=e.Filters.map(n=>`${n.Include?"":"-"}${n.Expression}`);t.forEach(n=>{this.standardFields.controls.filters.push(c.control(n));}),this.filters.set(t);}else this.filters.set([]);}submit(){this.#s.resumeDialogCheck(()=>this.#c());}#c(){this.isSubmitting.set(true);let e=this.updateUrl(),t=this.baseCmdForm.value,n=t.targetUrl??"",i=(t.arguments??"").split(`
2
- `)??[],s=[n,...i].filter(o=>o.length>0),g=this.standardFields.value,N=g.filters??[],E=[t.command,...s,`--backup-name=${g["backup-name"]}`,`--dbpath=${g.dbpath}`,`--backup-id=${g["backup-id"]}`,...N.filter(o=>o).map(o=>o.startsWith("-")?`--exclude=${o?.slice(1)}`:`--include=${o}`),...this.#t.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(o=>`${o.Name.startsWith("--")?"":"--"}${o.Name}=${o.Value}`),"--disable-module=console-password-input"];this.#n.postApiV1Commandline({requestBody:E}).subscribe({next:o=>{o.Status==="OK"&&this.#o.navigate(["backup",this.backupId(),"commandline",o.ID],{queryParams:{state:e}});},error:()=>{this.isSubmitting.set(false);}});}mapBaseCmdToForm(e){let t=e.TargetURL??null;t&&this.baseCmdForm.patchValue({targetUrl:t??"",arguments:e.Sources?.join(`
3
- `)??""});}updateUrl(){let e=this.baseCmdForm.value,t=this.standardFields.value,n=t.filters??[],i=this.settings(),s=this.#i.saveState({command:e.command,targetUrl:e.targetUrl,arguments:e.arguments,backupId:t["backup-id"],backupName:t["backup-name"],dbpath:t.dbpath,filters:n,options:i});return this.#o.navigate([],{relativeTo:this.#e,queryParams:{state:s},replaceUrl:true}),s}applyStateFromUrl(){let t=this.#e.snapshot.queryParams.state;if(!t)return;let n=this.#i.getState(t);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(i=>{this.standardFields.controls.filters.push(c.control(i));}),this.filters.set(n.filters)),n.options&&n.options.length>0&&this.settings.set(n.options));}static \u0275fac=function(t){return new(t||m$1)};static \u0275cmp=hw({type:m$1,selectors:[["app-commandline"]],features:[YC([ke])],decls:8,vars:1,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize` Command ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize` TargetUrl ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let i;i=$localize` Commandline Arguments ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize`Advanced options`;let g;g=$localize` Backup ID ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let N;N=$localize` Backup Name ${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON:`;let E;return E=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[e,t,n,i,s,g,N,E,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["shTooltip","Choose the command to execute"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["shTooltip","Enter the URL of the backup target"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["shTooltip","Enter one argument per line without quotes (e.g., *.txt)"],["id","arguments","autocomplete","off","rows","5","formControlName","arguments","placeholder","Enter one argument per line without quotes (e.g., *.txt)",1,"arguments"],["for","backup-id"],["shTooltip","The ID of the backup configuration this run belongs to (can be empty)"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["shTooltip","The optional name of the backup"],["id","backup-name","formControlName","backup-name"],[3,"filtersChange","filters","osType"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"]]},template:function(t,n){t&1&&(vg(0,"app-status-bar"),Qi(1,"section")(2,"div",8)(3,"button",9),Lg(4,0),vg(5,"sh-icon"),Fg(),$l()(),aT(6,ft,1,0,"sh-progress-bar",10)(7,Nt,35,12),$l()),t&2&&(CE(6),cT(n.finishedLoading()?7:6));},dependencies:[Bn,Tn,Ze,Rn,Pn,ee$1,Oe,jt,Gn,gn,hn,_t,Fe,v,c$1,Nt$2,d,N,at],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.arguments[_ngcontent-%COMP%]{min-height:6rem;white-space:pre}"]})};export{$ as default};
package/chunk-Da_-7L7P.js DELETED
@@ -1,2 +0,0 @@
1
- import {d}from'./chunk-BS8PXjJJ.js';import'./chunk-CZoVeRAG.js';import {t as tn,Q as Qt,l as lt,o as on,k as ke}from'./chunk-kU0H989B.js';import'./chunk-C80zvTbO.js';import'./chunk-Cjb79u3p.js';import'./chunk-DJJ8GbYi.js';import'./chunk-DUYvFN8m.js';import'./chunk-BpRWdcC8.js';import {V,G}from'./chunk-ihUnHtR7.js';import'./chunk-Bb6BmVO4.js';import {v as ve$1}from'./chunk-DmDqcC4A.js';import'./chunk-CAwTsBqQ.js';import'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,e as ee,aw as W,a6 as be,bF as ve,E as D1,G as Ge,N as Nt,at as h,h as hw,v,d as N,a0 as de,u as ue,l as vT,ak as um,Q as Qi,V as Vg,n as nC,$ as $l,f as aT,p as cm,r as kd,U as UC,O as Od,L as Lg,j as vg,F as Fg,al as WC,C as CE,i as cT,x as am,A as yg,o as oC,aD as YC,W as Wg,K as fC,k as iC,w as jC,aP as ql,aQ as Gl,ao as qC,s as CD,a3 as KC,y as _D}from'./main-VVQP2YE7.js';import'./chunk-Bja52qI7.js';import'./chunk-B8uF0dom.js';import {F as Fe$1}from'./chunk-B9maI7Xa.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-BO2GlieG.js';import'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import'./chunk-DqIU7ViF.js';import'./chunk-Box6Lckh.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Vg("click",function(){kd(e);let t=iC();return Od(t.openTargetUrlDialog())}),Lg(1,5),vg(2,"sh-icon"),Fg(),$l();}}function fe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Vg("click",function(){kd(e);let t=iC(2);return Od(t.copyTargetUrl())}),Lg(1,7),vg(2,"sh-icon"),Fg(),$l();}}function he(o,i){if(o&1){let e=vT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,25),Qi(5,"button",24),Vg("click",function(){kd(e);let t=iC();return Od(t.openTargetUrlDialog())}),Lg(6,6),vg(7,"sh-icon"),Fg(),$l(),aT(8,fe,3,0,"button",15),Gl(),$l();}if(o&2){iC();let e=qC(0);CE(8),cT(e?8:-1);}}function Pe(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list-item",17)(1,"button",20),Vg("click",function(){kd(e);let t=iC();return Od(t.removeDestination())}),nC(2,8),$l()();}if(o&2){iC();let e=qC(12);yg("destination",e);}}function ye(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list",26),Vg("setDestination",function(t){kd(e);let l=iC();return Od(l.setDestination(t))}),$l();}}function Ae(o,i){if(o&1){let e=vT();Qi(0,"app-single-destination",27),cm("targetUrlChange",function(t){kd(e);let l=iC();return UC(l.targetUrlModel,t)||(l.targetUrlModel=t),Od(t)}),$l();}if(o&2){let e=iC();am("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Lg(0,4,1),vg(1,"sh-icon",22),Fg());}function Re(o,i){o&1&&(Lg(0,4,2),vg(1,"sh-icon"),Fg());}function Ue(o,i){if(o&1){let e=vT();Qi(0,"sh-dialog",28),cm("isOpenChange",function(t){kd(e);let l=iC();return UC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),Od(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),nC(4,9),$l(),Qi(5,"sh-alert",31),nC(6,10),$l()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),cm("ngModelChange",function(t){kd(e);let l=iC();return UC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),Od(t)}),$l(),CD(),$l()(),Qi(10,"footer",34)(11,"button",20),Vg("click",function(){kd(e);let t=iC();return Od(t.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",35),Vg("click",function(){kd(e);let t=iC();return Od(t.closeTargetUrlDialog(true))}),Lg(14,11),vg(15,"sh-icon"),Fg(),$l()()();}if(o&2){let e=iC();am("isOpen",e.targetUrlDialogOpen),yg("options",KC(3,Ee)),CE(9),am("ngModel",e.targetUrlCtrl),_D();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(d);formRef=D1.required("formRef");testUrlComponent=D1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?V(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=hw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&Wg(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&fC(2);},features:[YC([ke])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=oC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=vT();um(0),Qi(1,"form",12,0),Vg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),nC(6,2),$l(),Qi(7,"div",14),aT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),$l()(),Qi(10,"app-test-url",16,1),cm("targetUrlChange",function(g){return kd(t),UC(n.targetUrlModel,g)||(n.targetUrlModel=g),Od(g)})("testSignalChange",function(g){return kd(t),UC(n.testSignal,g)||(n.testSignal=g),Od(g)}),$l(),um(12),aT(13,Pe,3,1,"app-destination-list-item",17),$l(),aT(14,ye,1,0,"app-destination-list"),aT(15,Ae,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Vg("click",function(){return n.goBack()}),Lg(18,3),vg(19,"sh-icon"),Fg(),$l(),Qi(20,"button",21),Lg(21,4),aT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),Fg(),$l()()(),aT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=WC(!!n.targetUrlModel());CE(8),cT(t?9:8),CE(2),am("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),yg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),CE(2);let l=WC(n.selectedDestinationTypeOption());CE(),cT(l?13:-1),CE(),cT(t?-1:14),CE(),cT(t?15:-1),CE(5),yg("disabled",n.testSignal()=="testing"||!t),CE(2),cT(n.testSignal()=="testing"?22:23),CE(2),cT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[tn,Qt,lt,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve$1,N,de,ue,on],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
2
- export{w as default};