@duplicati/ngclient 0.0.229 → 0.0.231

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 (144) hide show
  1. package/assets/dest-icons/googleworkspace.png +0 -0
  2. package/assets/sh.woff2 +0 -0
  3. package/chunk--kVw-BwM.js +1 -0
  4. package/chunk-5Ay2I6OJ.js +2 -0
  5. package/chunk-6bHATzM2.js +1 -0
  6. package/{chunk-BZYVgHEz.js → chunk-7qu0Yols.js} +1 -1
  7. package/{chunk-CfoJuTJX.js → chunk-B1FMMTzB.js} +1 -1
  8. package/{chunk-D4UZC_u0.js → chunk-B6VmpM-T.js} +1 -1
  9. package/chunk-B7vxwDBG.js +1 -0
  10. package/chunk-BAVJD-p4.js +1 -0
  11. package/chunk-BC2-YuwH.js +14 -0
  12. package/{chunk-DaIpTiYw.js → chunk-BFfFD-XE.js} +1 -1
  13. package/chunk-BHERv_y8.js +1 -0
  14. package/chunk-BIAFFPb6.js +1 -0
  15. package/{chunk-BcpsSgKo.js → chunk-BRJ93eei.js} +1 -1
  16. package/{chunk-SycscfJp.js → chunk-BYJ0fSUP.js} +1 -1
  17. package/chunk-B_iekvt6.js +1 -0
  18. package/chunk-Baizh2Dx.js +1 -0
  19. package/{chunk-MvQwR7nW.js → chunk-Bcxzhjj8.js} +1 -1
  20. package/{chunk-JA7rUsYF.js → chunk-Bfak-Gjv.js} +1 -1
  21. package/{chunk-DV2SIgNN.js → chunk-Bgx4dtaL.js} +1 -1
  22. package/chunk-BhGD1_v8.js +2 -0
  23. package/{chunk-2OH1SKyQ.js → chunk-BhPCHFyT.js} +1 -1
  24. package/{chunk-BjkwnDTL.js → chunk-Bj1ToKwz.js} +2 -2
  25. package/{chunk-DDVdXEVe.js → chunk-BjSSXg5V.js} +1 -1
  26. package/chunk-BlfsmSZO.js +4 -0
  27. package/chunk-Bnu5Zyue.js +1 -0
  28. package/{chunk-C2bnZ62D.js → chunk-C1BwGQgo.js} +2 -2
  29. package/{chunk-Bc4gFy5W.js → chunk-C2H72Zk8.js} +2 -2
  30. package/{chunk-DJbAxHpK.js → chunk-C3KPTLNN.js} +1 -1
  31. package/{chunk-BAZ5npJw.js → chunk-C5p3bQwH.js} +1 -1
  32. package/{chunk-Cs0rlpWi.js → chunk-C6beMvkJ.js} +2 -2
  33. package/chunk-CAgfvBGI.js +2 -0
  34. package/{chunk-dScOwyAU.js → chunk-CDEvMQA2.js} +1 -1
  35. package/{chunk-COgNe44h.js → chunk-CI8lsvKT.js} +1 -1
  36. package/chunk-CP3edE1P.js +1 -0
  37. package/{chunk-D48AStVy.js → chunk-CQv4eyEK.js} +1 -1
  38. package/chunk-CTwvkMrj.js +2 -0
  39. package/chunk-CmexLvf7.js +2 -0
  40. package/chunk-Cng2PWKw.js +2 -0
  41. package/chunk-CqwyTVd3.js +1 -0
  42. package/{chunk-B-fklW6A.js → chunk-Crs56mDy.js} +2 -2
  43. package/{chunk-DiZeSQXj.js → chunk-CwKxis_6.js} +1 -1
  44. package/{chunk-DMJycFPC.js → chunk-CxjTj8X0.js} +1 -1
  45. package/chunk-CzJ3-6Pu.js +1 -0
  46. package/chunk-D2MSuPzM.js +2 -0
  47. package/{chunk-CMmgPgiU.js → chunk-D2aWqPl_.js} +1 -1
  48. package/{chunk-C9EdrQe6.js → chunk-D3SUPUQT.js} +3 -3
  49. package/{chunk-D28lTX0k.js → chunk-D3d-eReU.js} +1 -1
  50. package/chunk-D5031IDL.js +3 -0
  51. package/{chunk-B2fqvpov.js → chunk-D7AP6g7S.js} +1 -1
  52. package/chunk-D9O-afXN.js +1 -0
  53. package/chunk-DA5X-TzJ.js +1 -0
  54. package/chunk-DAM-4k69.js +2 -0
  55. package/chunk-DH6L3nQP.js +2 -0
  56. package/chunk-DH6iiZWc.js +3 -0
  57. package/{chunk-BZqhgAZ-.js → chunk-DKacf9Tj.js} +1 -1
  58. package/{chunk-GVxWY6X-.js → chunk-DKwqdnLJ.js} +1 -1
  59. package/{chunk-C_JveZJH.js → chunk-DNUCXG8E.js} +1 -1
  60. package/chunk-DPpQ_8VM.js +1 -0
  61. package/chunk-Da2vs6ff.js +1 -0
  62. package/chunk-DfcHtA-G.js +1 -0
  63. package/chunk-DlTsXgG2.js +2 -0
  64. package/{chunk-Byb051F6.js → chunk-DlqfMbsZ.js} +1 -1
  65. package/chunk-DoYGADYB.js +1 -0
  66. package/{chunk-CRU3lYvk.js → chunk-DuHXCtrV.js} +1 -1
  67. package/{chunk-CBdr-6_u.js → chunk-DuTbfCdT.js} +2 -2
  68. package/{chunk-DP9SoPGV.js → chunk-EwTTC1EW.js} +1 -1
  69. package/{chunk-CdKfNiwm.js → chunk-JMkz2RrF.js} +1 -1
  70. package/chunk-PGDvGDW-.js +1 -0
  71. package/{chunk-DQW8lSiz.js → chunk-PONAC1Ya.js} +1 -1
  72. package/chunk-RqvNv7T_.js +2 -0
  73. package/{chunk-CA-ER0DL.js → chunk-SycSMD-r.js} +2 -2
  74. package/chunk-U0VOUPLl.js +1 -0
  75. package/chunk-Z5fN6CGR.js +1 -0
  76. package/chunk-d4cdVCUg.js +2 -0
  77. package/{chunk-D1wHRltX.js → chunk-dCFVYHva.js} +1 -1
  78. package/{chunk-0sb5_LpD.js → chunk-gaP3Sx_C.js} +1 -1
  79. package/chunk-mnaJWx8D.js +1 -0
  80. package/chunk-oTpkLrqH.js +1 -0
  81. package/chunk-tpJJunhQ.js +1 -0
  82. package/index.html +1 -1
  83. package/locale/dayjs/ko.js +45 -0
  84. package/locale/dayjs/tr.js +39 -0
  85. package/locale/messages.de.json +168 -12
  86. package/locale/messages.de_CH.json +162 -6
  87. package/locale/messages.de_DE.json +162 -6
  88. package/locale/messages.en.json +66 -1
  89. package/locale/messages.fr.json +175 -8
  90. package/locale/messages.fr_CA.json +175 -8
  91. package/locale/messages.fr_FR.json +175 -8
  92. package/locale/messages.it.json +174 -7
  93. package/locale/messages.it_IT.json +173 -6
  94. package/locale/messages.ja.json +198 -15
  95. package/locale/messages.ja_JP.json +198 -15
  96. package/locale/messages.json +66 -1
  97. package/locale/messages.ko.json +776 -0
  98. package/locale/messages.nl_BE.json +174 -7
  99. package/locale/messages.nl_NL.json +174 -7
  100. package/locale/messages.tr.json +943 -0
  101. package/locale/messages.zh_HK.json +152 -8
  102. package/main-QLXVXD6E.js +16 -0
  103. package/package.json +1 -1
  104. package/chunk-A5DpxPOI.js +0 -1
  105. package/chunk-B12Syddi.js +0 -2
  106. package/chunk-B3yuN2OH.js +0 -1
  107. package/chunk-B6vxBiK4.js +0 -2
  108. package/chunk-B9zNFJSv.js +0 -1
  109. package/chunk-BDXLL1lt.js +0 -1
  110. package/chunk-BFH9sFEg.js +0 -1
  111. package/chunk-BIeNnIyg.js +0 -1
  112. package/chunk-BJ6LKfIL.js +0 -2
  113. package/chunk-BYHopERA.js +0 -2
  114. package/chunk-Bf1diO1u.js +0 -2
  115. package/chunk-BoCnrrB4.js +0 -1
  116. package/chunk-BtzP4vdU.js +0 -2
  117. package/chunk-C11i_gv7.js +0 -1
  118. package/chunk-C1t4wbdG.js +0 -1
  119. package/chunk-CByrJpDb.js +0 -1
  120. package/chunk-CI78bAye.js +0 -2
  121. package/chunk-CQ8rm_d9.js +0 -3
  122. package/chunk-CUxq_s_t.js +0 -14
  123. package/chunk-CXEImxhE.js +0 -1
  124. package/chunk-CgYrHQGO.js +0 -1
  125. package/chunk-CwB_t7g-.js +0 -2
  126. package/chunk-D0u1cyeL.js +0 -1
  127. package/chunk-D2XTQURr.js +0 -2
  128. package/chunk-DC8QqmzV.js +0 -2
  129. package/chunk-DDo7wKQT.js +0 -3
  130. package/chunk-DQwpGI_E.js +0 -2
  131. package/chunk-DVgkAgur.js +0 -2
  132. package/chunk-DVlpMN2Q.js +0 -1
  133. package/chunk-D_A6A07f.js +0 -1
  134. package/chunk-D_JCqKo8.js +0 -1
  135. package/chunk-Drc5kcUX.js +0 -1
  136. package/chunk-M21GJPzH.js +0 -4
  137. package/chunk-ObToq7vh.js +0 -1
  138. package/chunk-RKTSBnYB.js +0 -1
  139. package/chunk-SKxVK_pD.js +0 -1
  140. package/chunk-bgWe6t7y.js +0 -1
  141. package/chunk-cLFxUFjv.js +0 -1
  142. package/chunk-w_Hs_Uxi.js +0 -1
  143. package/chunk-wyer8fjS.js +0 -1
  144. package/main-PXGZLKMN.js +0 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duplicati/ngclient",
3
- "version": "0.0.229",
3
+ "version": "0.0.231",
4
4
  "license": "MIT",
5
5
  "contributors": [
6
6
  "sp90",
package/chunk-A5DpxPOI.js DELETED
@@ -1 +0,0 @@
1
- var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-BtzP4vdU.js')},{path:"encryption",loadComponent:()=>import('./chunk-CI78bAye.js').then(function(n){return n.c})},{path:"select-files",loadComponent:()=>import('./chunk-CI78bAye.js').then(function(n){return n.a})},{path:"options",loadComponent:()=>import('./chunk-CI78bAye.js').then(function(n){return n.b})},{path:":taskid/progress",loadComponent:()=>import('./chunk-D4UZC_u0.js')}],t=o;export{t as default};
package/chunk-B12Syddi.js DELETED
@@ -1,2 +0,0 @@
1
- import {w as we,o as ot,Q as Qt$1,j as jt$1,a as at,e as en}from'./chunk-CUxq_s_t.js';import'./chunk-DaIpTiYw.js';import'./chunk-B6vxBiK4.js';import {I}from'./chunk-DV2SIgNN.js';import {J}from'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import {C,g,G}from'./chunk-CQ8rm_d9.js';import'./chunk-CBdr-6_u.js';import {v as ve}from'./chunk-BZqhgAZ-.js';import'./chunk-0sb5_LpD.js';import {c}from'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,e as ee$1,aw as W,bE as Te,c5 as v1,U as Ue,N as Nt,G as Ga,d as dw,v,f as N,a0 as de$1,u as ue,ak as cm,Q as Qi,F as Fg,j as mg,H as Hl,o as oT,O as Og,P as Pg,al as BC,D as DE,i as iT,I as Qg,z as gg,$ as $g,K as lC,a1 as cT,n as nC,ao as $C,a2 as lT,k as gT,S as Sd,x as xd,q as PC,s as sm,l as HC,X as XT,p as DD,w as im,a3 as QC,y as TD,ap as sT,aP as Ul,aQ as Wl,E as nm}from'./main-PXGZLKMN.js';import {f}from'./chunk-DJbAxHpK.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {d}from'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt$1,a as Zt$1}from'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"});function Vt(o,n){if(o&1){let t=gT();Qi(0,"sh-card",30)(1,"div",32)(2,"h3"),XT(3,4),Hl(),Qi(4,"button",33),Fg("click",function(){Sd(t);let i=nC(3);return xd(i.closeCustomList())}),PC(5," Cancel "),Qi(6,"sh-icon"),PC(7,"x-bold"),Hl()()(),Qi(8,"app-destination-list",34),Fg("setDestination",function(i){Sd(t);let _=nC(3);return xd(_.setDestination(i))}),Hl()();}}function Kt(o,n){if(o&1){let t=gT();Qi(0,"div",40)(1,"sh-toggle",43),sm("checkedChange",function(i){Sd(t);let _=nC(2).$implicit;return HC(_.save,i)||(_.save=i),xd(i)}),Qi(2,"span",44),XT(3,8),Hl()()();}if(o&2){let t=nC(2).$implicit;DE(),gg("color","primary")("variant","raised"),im("checked",t.save);}}function Jt(o,n){if(o&1){let t=gT();Qi(0,"sh-toggle-card",31),Ul(1,35),Qi(2,"app-destination-list-item",36)(3,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.changeDestination(i))}),PC(4,"Change"),Hl(),Qi(5,"sh-menu",37),Fg("click",function(i){return i.stopPropagation()}),Qi(6,"button",38)(7,"sh-icon"),PC(8,"dots-three-vertical"),Hl()(),Ul(9,39),Qi(10,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.openTargetUrlDialog(i))}),Og(11,5),mg(12,"sh-icon"),Pg(),Hl(),Qi(13,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.copyTargetUrl(i))}),Og(14,6),mg(15,"sh-icon"),Pg(),Hl(),Qi(16,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.removeDestination(i))}),Og(17,7),mg(18,"sh-icon"),Pg(),Hl(),Wl(),Hl()(),Wl(),oT(19,Kt,4,3,"div",40),Qi(20,"app-test-url",41,1),Fg("targetUrlChange",function(i){Sd(t);let _=nC().$index,T=nC(2);return xd(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Sd(t);let _=nC().$index,T=nC(2);return xd(T.updateTestState(_,i))}),Hl(),Qi(22,"app-single-destination",42),Fg("targetUrlChange",function(i){Sd(t);let _=nC().$index,T=nC(2);return xd(T.updateTargetUrl(_,i))}),Hl()();}if(o&2){let t=nC(),e=t.$implicit,i=t.$index,_=nC(2);gg("disableToggle",true)("isActive",true),DE(2),gg("targetUrl",e.url)("connectionStringId",e.connectionStringId),DE(17),iT(e.connectionStringId?-1:19),DE(),gg("targetUrl",e.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",e.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),DE(2),gg("targetUrl",e.url)("useBackupState",true);}}function Xt(o,n){if(o&1&&oT(0,Vt,9,0,"sh-card",30)(1,Jt,23,17,"sh-toggle-card",31),o&2){let t=n.$index,e=nC(2);iT(e.showCustomList()&&e.currentEditingIndex()===t?0:1);}}function zt(o,n){if(o&1&&cT(0,Xt,2,1,null,null,sT),o&2){nC();let t=$C(0);lT(t);}}function Ht(o,n){o&1&&(Qi(0,"div",45),mg(1,"sh-progress-bar",46),Qi(2,"div",47)(3,"h3"),XT(4,9),Hl()()());}function Wt(o,n){o&1&&(Qi(0,"sh-divider"),XT(1,12),Hl());}function jt(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit;DE(),nm(t.Description);}}function Qt(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit,e=nC(4);DE(),nm(e.getSimplePath(t.BaseUrl));}}function qt(o,n){if(o&1){let t=gT();Qi(0,"app-destination-list-item",50),Fg("click",function(){let i=Sd(t).$implicit,_=nC(4);return xd(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"h3",51),PC(2),Hl(),oT(3,jt,2,1,"p",52)(4,Qt,2,1,"p",52),Hl();}if(o&2){let t=n.$implicit;gg("targetUrl",t.BaseUrl),DE(2),nm(t.Name||t.BaseUrl),DE(),iT(t.Description?3:4);}}function Yt(o,n){if(o&1){let t=gT();Qi(0,"sh-card",48),Fg("click",function(){Sd(t);let i=nC(3);return xd(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),PC(2,"plus-circle"),Hl(),Qi(3,"div",47)(4,"h3"),XT(5,10),Hl(),Qi(6,"p"),XT(7,11),Hl()()(),oT(8,Wt,2,0,"sh-divider"),cT(9,qt,5,3,"app-destination-list-item",49,sT);}if(o&2){let t=nC(3);DE(8),iT(t.destinations().length>0?8:-1),DE(),lT(t.destinations());}}function Zt(o,n){if(o&1&&oT(0,Ht,5,0,"div",45)(1,Yt,11,1),o&2){let t=nC(2);iT(t.isLoadingDestinations()?0:1);}}function te(o,n){o&1&&(Qi(0,"sh-divider"),XT(1,15),Hl());}function ee(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit;DE(),nm(t.Description);}}function ne(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit,e=nC(3);DE(),nm(e.getSimplePath(t.BaseUrl));}}function ie(o,n){if(o&1){let t=gT();Qi(0,"app-destination-list-item",57),Fg("click",function(){let i=Sd(t).$implicit,_=nC(3);return xd(_.selectSavedDestination(i))}),Qi(1,"h3",51),PC(2),Hl(),oT(3,ee,2,1,"p",52)(4,ne,2,1,"p",52),Hl();}if(o&2){let t=n.$implicit;gg("targetUrl",t.BaseUrl),DE(2),nm(t.Name||t.BaseUrl),DE(),iT(t.Description?3:4);}}function oe(o,n){if(o&1){let t=gT();Qi(0,"div",53)(1,"button",54),Fg("click",function(){Sd(t);let i=nC(2);return xd(i.closeCustomList())}),Qi(2,"sh-icon"),PC(3,"arrow-left"),Hl(),PC(4," Back "),Hl()(),Qi(5,"sh-card",55),Fg("click",function(){Sd(t);let i=nC(2);return xd(i.toggleCustomList())}),Qi(6,"sh-icon"),PC(7,"plus-circle"),Hl(),Qi(8,"div",47)(9,"h3"),XT(10,13),Hl(),Qi(11,"p"),XT(12,14),Hl()()(),oT(13,te,2,0,"sh-divider"),cT(14,ie,5,3,"app-destination-list-item",56,sT);}if(o&2){let t=nC(2);DE(13),iT(t.destinations().length>0?13:-1),DE(),lT(t.destinations());}}function ae(o,n){if(o&1){let t=gT();Qi(0,"div",53)(1,"button",54),Fg("click",function(){Sd(t);let i=nC(3);return xd(i.closeCustomList())}),Qi(2,"sh-icon"),PC(3,"arrow-left"),Hl()(),Qi(4,"h3"),XT(5,16),Hl()();}}function re(o,n){if(o&1){let t=gT();oT(0,ae,6,0,"div",53),Qi(1,"app-destination-list",34),Fg("setDestination",function(i){Sd(t);let _=nC(2);return xd(_.setDestination(i))}),Hl();}if(o&2){let t=nC(2),e=$C(0);iT(t.destinations().length>0||e.length>0?0:-1);}}function se(o,n){if(o&1&&oT(0,Zt,2,1)(1,oe,16,1)(2,re,2,1),o&2){let t=nC(),e=$C(1);iT(!t.showCustomList()&&!e&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function _e(o,n){if(o&1){let t=gT();Qi(0,"div",25)(1,"button",58),Fg("click",function(){Sd(t);let i=nC();return xd(i.startAddingNew())}),Qi(2,"sh-icon"),PC(3,"plus"),Hl(),PC(4," Add another destination "),Hl()();}}function le(o,n){o&1&&(Qi(0,"h2"),XT(1,19),Hl());}function ce(o,n){o&1&&(Qi(0,"h2"),XT(1,20),Hl());}function de(o,n){if(o&1){let t=gT();Qi(0,"sh-dialog",59),sm("isOpenChange",function(i){Sd(t);let _=nC();return HC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),xd(i)}),Qi(1,"header",60)(2,"div",61),oT(3,le,2,0,"h2")(4,ce,2,0,"h2"),Qi(5,"sh-alert",62),XT(6,17),Hl()()(),Qi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),sm("ngModelChange",function(i){Sd(t);let _=nC();return HC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),xd(i)}),Hl(),DD(),Hl()(),Qi(10,"footer",65)(11,"button",27),Fg("click",function(){Sd(t);let i=nC();return xd(i.closeTargetUrlDialog(false))}),PC(12,"Cancel"),Hl(),Qi(13,"button",66),Fg("click",function(){Sd(t);let i=nC();return xd(i.closeTargetUrlDialog(true))}),Og(14,18),mg(15,"sh-icon"),Pg(),Hl()()();}if(o&2){let t=nC(),e=$C(1);im("isOpen",t.targetUrlDialogOpen),gg("options",QC(4,Bt)),DE(3),iT(e?4:3),DE(6),im("ngModel",t.targetUrlCtrl),TD();}}var b=new jn,ke=(o={destinations:[]})=>b.group({destinations:b.array(o.destinations)}),Be=({key:o,customGroup:n,dynamicGroup:t,advancedGroup:e})=>b.group({destinationType:b.control(o),custom:n,dynamic:t,advanced:e}),B=class o{#n=T(ee$1);#i=T(W);#t=T(we);#e=T(ot);injector=T(Te);testUrlComponents=v1();testStates=Ue([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ue(null);targetUrlInitial=Ue(null);currentEditingIndex=Ue(null);targetUrlDialogOpen=Ue(false);showCustomList=Ue(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let n=this.targetUrlModel();return n?C(n)??null:null});isLoadingDestinationEffect=Ga(()=>{let n=this.isLoadingDestinations(),t=this.destinations(),e=this.targetUrls();!n&&t.length==0&&e.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let n=this.selectedDestinationType();return n?{key:n.customKey??n.key,customKey:n.customKey??null,displayName:n.displayName,description:n.description,icon:n.icon}:null});getConnectionString(n){let t=this.#e.destinations().find(e=>e.ID===n);return console.log("connection",t),t}getSimplePath(n){return n?g(n):""}copyTargetUrl(n=0){let t=this.targetUrls()[n]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(n=0){let t=this.targetUrls()[n]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(n),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(n=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),e=this.targetUrlInitial();if(!n||t===e||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(n){let t=G(n??"");if(!t)return;let e=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${n}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),e,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(e,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(e,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=Ga(()=>{let n=this.targetUrls();this.testStates.update(t=>{if(t.length===n.length)return t;let e=[...t];if(e.length<n.length)for(let i=e.length;i<n.length;i++)e.push(null);else e.length=n.length;return e});});selectSavedDestination(n){n.BaseUrl&&n.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(n.BaseUrl,true,n.ID,null):(this.#t.addTargetUrl(n.BaseUrl,n.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ue(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(n){this.currentEditingIndex.set(n),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(n){this.#t.removeTargetUrl(n);}updateTargetUrl(n,t){if(!t)return;let e=this.targetUrls()[n]?.connectionStringId??null,i=this.targetUrls()[n]?.urlKey??null;this.#t.updateTargetUrl(n,t,e,i),this.updateTestState(n,null);}updateTestState(n,t){this.testStates.update(e=>{let i=[...e];return i[n]=t,i});}toggleSave(n){this.#t.toggleSaveConnectionString(n);}goBack(){this.#n.navigate(["general"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=dw({type:o,selectors:[["app-destination"]],viewQuery:function(t,e){t&1&&$g(e.testUrlComponents,kt,5),t&2&&lC();},decls:19,vars:9,consts:()=>{let n;n=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let e;e=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let L;L=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],n,t,e,i,_,T,L,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[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","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[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(t,e){if(t&1&&(cm(0)(1),Qi(2,"form",21,0),Fg("submit",function(){return e.next()}),Qi(4,"div",22),mg(5,"input",23)(6,"input",24),Hl(),Qi(7,"header"),oT(8,zt,2,0),Hl(),oT(9,se,3,1),oT(10,_e,5,0,"div",25),Qi(11,"div",26)(12,"button",27),Fg("click",function(){return e.goBack()}),Og(13,2),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",28),Og(16,3),mg(17,"sh-icon"),Pg(),Hl()()(),oT(18,de,16,5,"sh-dialog",29)),t&2){let i=BC(e.targetUrls());DE();let _=BC(i.length>0);DE(7),iT(e.currentEditingIndex()!==null||!e.showCustomList()&&!e.isAddingNew()?8:-1),DE(),iT((!_||e.showCustomList()||e.isAddingNew())&&e.currentEditingIndex()===null?9:-1),DE(),iT(_&&!e.showCustomList()&&!e.isAddingNew()?10:-1),DE(5),Qg("loading",e.isNew()&&e.testStates().length>0&&e.testStates()[0]==="testing"),gg("disabled",!_),DE(3),iT(e.targetUrlDialogOpen()?18:-1);}},dependencies:[Qt$1,jt$1,at,en,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve,N,de$1,ue,f,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}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}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.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}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.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}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
2
- export{ke as createDestinationForm,Be as createDestinationFormGroup,B as default};
package/chunk-B3yuN2OH.js DELETED
@@ -1 +0,0 @@
1
- import {c}from'./chunk-D48AStVy.js';import {T,m,N as Nt,U as Ue,d as dw,f as N,bZ as ei,Q as Qi,X as XT,H as Hl,bf as ig,c2 as uC,D as DE,z as gg,a_ as ZC,b_ as Ig,a1 as cT,ag as zg,a2 as lT,k as gT,F as Fg,S as Sd,n as nC,x as xd,o as oT,q as PC,I as Qg,i as iT,E as nm,aF as YC,c4 as sb}from'./main-PXGZLKMN.js';var Y=e=>({children:e,level:0}),L=e=>({$implicit:e}),j=(e,n)=>({children:e,level:n}),V=(e,n)=>n.id;function z(e,n){if(e&1&&(Qi(0,"sh-icon"),PC(1,"caret-down"),Hl()),e&2){let t=nC().$implicit;Qg("open",t.isOpen());}}function B(e,n){e&1&&(Qi(0,"sh-icon"),PC(1,"dot"),Hl());}function J(e,n){e&1&&Ig(0);}function U(e,n){if(e&1&&ig(0,J,1,0,"ng-container",3),e&2){let t=nC().$implicit,o=nC().$implicit;nC();let i=uC(3);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,L,YC(2,j,t.children,o.level+1)));}}function X(e,n){if(e&1){let t=gT();Qi(0,"div",4,1),Fg("click",function(){let i=Sd(t).$implicit,G=nC(2);return xd(i.children.length>0&&G.toggleNode(i))}),oT(2,z,2,2,"sh-icon",5)(3,B,2,0,"sh-icon"),Qi(4,"div",6),PC(5),Hl()(),oT(6,U,1,7,"ng-container");}if(e&2){let t=n.$implicit;Qg("cannot-toggle",t.children.length===0)("open",t.isOpen()),DE(2),iT(t.children.length>0?2:3),DE(3),nm(t.text),DE(),iT(t.isOpen()?6:-1);}}function q(e,n){if(e&1&&(Qi(0,"sh-list"),cT(1,X,7,7,null,null,V),Hl()),e&2){let t=n.$implicit;zg("padding-left",t.level*.25,"rem"),DE(),lT(t.children);}}function H(e,n){e&1&&Ig(0);}var S=class e{#e=T(m);treeStructure=Nt(()=>{let n=this.#e.systemInfo();return this.processObject(n,0)});toggleNode(n){n.isOpen.update(t=>!t);}processObject(n,t){let o=[];for(let i in n)typeof n[i]=="object"?o.push({id:i,text:i,children:this.processObject(n[i],t+1),level:t,isOpen:Ue(false)}):o.push({id:i,text:`${i}: ${n[i]}`,children:[],level:t,isOpen:Ue(false)});return o}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=dw({type:e,selectors:[["app-server-settings"]],decls:5,vars:6,consts:()=>{let n;return n=$localize`System info`,[["recursiveTree",""],["treeNode",""],n,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(t,o){if(t&1&&(Qi(0,"h3"),XT(1,2),Hl(),ig(2,q,3,2,"ng-template",null,0,sb)(4,H,1,0,"ng-container",3)),t&2){let i=uC(3);DE(4),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(4,L,ZC(2,Y,o.treeStructure())));}},dependencies:[c,N,ei],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}sh-list[_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}sh-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"]})};export{S as default};
package/chunk-B6vxBiK4.js DELETED
@@ -1,2 +0,0 @@
1
- import {J}from'./chunk-B2fqvpov.js';import {c}from'./chunk-D48AStVy.js';import {F as Fe,P as Pe}from'./chunk-CQ8rm_d9.js';import {N as Nt$2}from'./chunk-CBdr-6_u.js';import {v as ve}from'./chunk-BZqhgAZ-.js';import {x}from'./chunk-0sb5_LpD.js';import {T,ab as C,m,a6 as be,b as g1,ac as h1,U as Ue,B as y1,N as Nt$1,ai as m$1,aj as l,G as Ga,at as h,aG as pt,a$ as Vs,b0 as ty,bJ as vy,C as Bu,d as dw,v,f as N,a0 as de,bZ as ei,u as ue,aH as m$2,L as oC,o as oT,Q as Qi,Y as iC,bf as ig,H as Hl,c2 as uC,i as iT,D as DE,I as Qg,z as gg,a_ as ZC,$ as $g,K as lC,s as sm,l as HC,p as DD,aC as hg,w as im,y as TD,ag as zg,aD as zC,X as XT,aP as Ul,a1 as cT,aQ as Wl,au as Lg,av as eC,a2 as lT,c3 as Bs,ay as $u,k as gT,S as Sd,n as nC,x as xd,j as mg,b_ as Ig,F as Fg,q as PC,E as nm,O as Og,P as Pg,a3 as QC,aB as rm,ap as sT,aM as tb,aa as Gl,aS as ib,aF as YC,ar as Wp,c4 as sb}from'./main-PXGZLKMN.js';import {$}from'./chunk-D28lTX0k.js';import {d}from'./chunk-DQW8lSiz.js';import {F as Fe$1}from'./chunk-C9EdrQe6.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-Drc5kcUX.js';var Pt=["treeContainer"],Mt=["formRef"],Et=[[["label"]],[["label"]],[["input"]]],Tt=["label","label","input"],ct=["ngProjectAs","label",5,["label"]],yt=["ngProjectAs","input",5,["input"]],bt=r=>({children:r,level:0}),ht=r=>({$implicit:r}),St=(r,t)=>({children:r,level:t}),Nt=()=>({maxWidth:"700px",width:"100%"}),vt=(r,t)=>t.id;function Ot(r,t){if(r&1){let e=gT();Qi(0,"sh-button-group",22),sm("valueChange",function(i){Sd(e);let o=nC();return HC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),xd(i)}),Qi(1,"button",23),XT(2,4),Hl(),Qi(3,"button",24),XT(4,5),Hl()();}if(r&2){let e=nC();im("value",e.pathDiscoveryMethod);}}function Ft(r,t){r&1&&mg(0,"sh-progress-bar",14);}function Rt(r,t){r&1&&(Qi(0,"sh-icon",30),PC(1,"caret-down"),Hl());}function xt(r,t){r&1&&mg(0,"sh-icon",30);}function Dt(r,t){r&1&&(Qi(0,"sh-icon",30),PC(1,"spinner"),Hl());}function wt(r,t){r&1&&(Qi(0,"sh-icon",30),PC(1,"caret-right"),Hl());}function It(r,t){if(r&1&&mg(0,"img",31),r&2){let e=nC(3).$implicit;gg("src",e.customIcon,Wp);}}function Lt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"folder-open"),Hl());}function At(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"folder-user"),Hl());}function kt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"file"),Hl());}function Bt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"folder"),Hl());}function $t(r,t){if(r&1&&(oT(0,Rt,2,0,"sh-icon",30)(1,xt,1,0,"sh-icon",30)(2,Dt,2,0,"sh-icon",30)(3,wt,2,0,"sh-icon",30),oT(4,It,1,1,"img",31)(5,Lt,2,0,"sh-icon",27)(6,At,2,0,"sh-icon",27)(7,kt,2,0,"sh-icon",27)(8,Bt,2,0,"sh-icon",27)),r&2){let e=nC(2).$implicit,n=nC(2);iT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),DE(4),iT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Wt(r,t){r&1&&(Qi(0,"sh-icon",27),PC(1,"desktop-tower"),Hl());}function Vt(r,t){if(r&1&&(Qi(0,"span",29),PC(1),tb(2,"bytes"),Hl()),r&2){let e=nC(2).$implicit;DE(),Gl("\xA0(",ib(2,1,e.fileSize,true,true),")");}}function Gt(r,t){r&1&&Ig(0);}function zt(r,t){if(r&1&&ig(0,Gt,1,0,"ng-container",15),r&2){let e=nC(2).$implicit,n=nC().$implicit;nC();let i=uC(7);gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(5,ht,YC(2,St,e.children,n.level+1)));}}function jt(r,t){if(r&1){let e=gT();Qi(0,"div",25,3),Fg("click",function(i){Sd(e);let o=nC().$implicit,s=nC(2);return xd(s.toggleSelectedNode(i,o))}),Qi(2,"div",26),Fg("click",function(i){Sd(e);let o=nC().$implicit,s=nC(2);return xd(s.toggleNode(i,o.id,o))}),oT(3,$t,9,2)(4,Wt,2,0,"sh-icon",27),Hl(),Qi(5,"div",28)(6,"span"),PC(7),Hl(),oT(8,Vt,3,5,"span",29),Hl()(),oT(9,zt,1,7,"ng-container");}if(r&2){let e=nC().$implicit,n=nC().$implicit,i=nC();Qg("accepted",e.accepted===true)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id)("generated",e.isGenerated)("search-match",e.isSearchMatch),DE(2),Qg("file",e.cls==="file"),DE(),iT(e.id!=="/"?3:4),DE(4),nm(e.text),DE(),iT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),DE(),iT(e.children.length>0?9:-1);}}function Ht(r,t){if(r&1&&oT(0,jt,10,24),r&2){let e=t.$implicit,n=nC(2);iT(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1);}}function Ut(r,t){if(r&1&&(Qi(0,"sh-list"),cT(1,Ht,1,1,null,null,vt),Hl()),r&2){let e=t.$implicit;zg("padding-left",e.level*.25,"rem"),DE(),lT(e.children);}}function Jt(r,t){r&1&&Ig(0);}function Xt(r,t){if(r&1){let e=gT();Qi(0,"sh-toggle",32),sm("checkedChange",function(i){Sd(e);let o=nC();return HC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),xd(i)}),XT(1,6),Hl();}if(r&2){let e=nC();im("checked",e._showHiddenNodes),DE(),Lg(e.showFiles()?"files":"folders"),eC(1);}}function qt(r,t){if(r&1){let e=gT();Qi(0,"button",33),Fg("click",function(){Sd(e);let i=nC();return xd(i.openCreateFolderDialog())}),XT(1,7),Hl();}if(r&2){let e=nC();gg("disabled",!e.isCurrentPathFolder());}}function Kt(r,t){if(r&1&&(Qi(0,"sh-alert",20),PC(1),Hl()),r&2){let e=nC();gg("color","error"),DE(),nm(e.errorMessage());}}function Qt(r,t){if(r&1){let e=gT();Qi(0,"sh-dialog",34),sm("isOpenChange",function(i){Sd(e);let o=nC();return HC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),xd(i)}),Qi(1,"header",35)(2,"h2"),XT(3,8),Hl()(),Qi(4,"div",36)(5,"div",37)(6,"p"),XT(7,9),Hl(),Qi(8,"div",38)(9,"pre"),PC(10),Hl()()(),Qi(11,"sh-form-field")(12,"textarea",39),sm("ngModelChange",function(i){Sd(e);let o=nC();return HC(o.createFolderPath,i)||(o.createFolderPath=i),xd(i)}),Hl(),DD(),Hl()(),Qi(13,"footer",40)(14,"button",41),Fg("click",function(){Sd(e);let i=nC();return xd(i.closeCreateFolderDialog(false))}),PC(15,"Cancel"),Hl(),Qi(16,"button",42),Fg("click",function(){Sd(e);let i=nC();return xd(i.closeCreateFolderDialog(true))}),Og(17,10),mg(18,"sh-icon"),Pg(),Hl()()();}if(r&2){let e=nC();im("isOpen",e.createFolderDialogOpen),gg("options",QC(6,Nt)),DE(10),rm("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),DE(2),im("ngModel",e.createFolderPath),TD(),DE(4),gg("disabled",!e.createFolderPath()?.length);}}var gt=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(gt||{}),b="/",ne=true,Se=class r{#e=T(C);#t=T(m);#b=T(be);multiSelect=g1(false);disabled=g1(false);showFiles=g1(false);selectFiles=g1(false);onlySelectFolder=g1(false);accepts=g1(null);startingPath=g1(null);rootPaths=g1([]);initialNodes=g1([]);backupSettings=g1(null);pathRefreshTrigger=g1(false);showHiddenNodes=g1(false);enableCreateFolder=g1(false);hideShortcuts=g1(false);resolvePaths=g1(false);customRemoteMode=g1(null);showUnrootedSources=g1(false);backupId=g1("");connectionStringId=g1(null);sourcePrefix=g1("");destinationUrl=g1("");loadExtendedData=g1(true);hasExtendedData=h1();searchMode=g1(false);searchResults=g1([]);_showHiddenNodes=Ue(false);createFolderDialogOpen=Ue(false);createFolderPath=Ue(null);errorMessage=Ue(null);anyRemoteSourcesLoaded=Ue(false);treeContainerRef=y1("treeContainer");formRef=y1("formRef");pathDiscoveryMethod=Ue("browse");isLoading=Ue(null);currentPath=Ue("");#p=Ue(null);treeSearchQuery=Ue("");treeNodes=Ue([]);pathDelimiter=Nt$1(()=>this.#t.systemInfo()?.DirectorySeparator??"");#r=Nt$1(()=>this.currentPathArray().filter(e=>this.#i(e)).find(e=>e.includes("*")||e.includes("[")||e.includes("{")||e.includes("?"))&&this.#t.hasV2FilterOperations());filterGroups=this.#t.filterGroups();isByBackupSettings=Nt$1(()=>{let t=this.backupSettings();return !(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=Nt$1(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});currentPathArray=Nt$1(()=>this.currentPath().split("\0").filter(t=>t!==""&&t!==b));currentPathResolved=Nt$1(()=>this.currentPathArray().map(e=>{let n=this.treeNodes().find(i=>i.id===e)?.resolvedpath??e;return this.#t.resolveShorthandPath(n)}).join("\0"));#l(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],s=e[2]??"";return o==="diskimage"&&!s&&(s=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:s}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[b]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#l(n);return i?{id:n,path:i.mount,displayName:Pe(i.url),icon:Fe(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#c(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#l(e);return n?this.#s(n.mount):e})}TreeEvalEnum=gt;#S=Nt$1(()=>{if(!this.#r())return null;let t=this.#c(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#S()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?ty(null):Bs(300).pipe($u(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt(e=>{if(!e.Success||!e.Data)return console.log("Error evaluating filters",e),null;let n=new Map;for(let i of e.Data)if(i.Path){let o=0;i.Included?o=1:i.MatchedFilter&&(o=-1),n.set(i.Path,o);}return n}),Vs(()=>ty(null)))))});searchResultTreeStructure=Nt$1(()=>{let t=this.searchResults();if(t.length===0)return [];let e=this.currentPathArray(),n=this.showHiddenNodes(),i=new Map;for(let a of t){let l=a.Path??"",C=this.#a(l),T=l.split(C).filter(M=>M!==""),P="";for(let M=0;M<T.length;M++){let w=T[M],I=M===T.length-1,U=!I||this.#n(l),ft=P||b,Ne=P?P.endsWith(C)?P.slice(0,-C.length):P:"";if(P=Ne?`${Ne}${C}${w}`:`${C}${w}`,U&&!P.endsWith(C)&&(P+=C),!i.has(P))i.set(P,{part:w,parentPath:ft,isFolder:U,match:I?a:null});else if(I){let Ct=i.get(P);Ct.match=a;}}}let o=new Map;for(let[a,l]of i)o.has(l.parentPath)||o.set(l.parentPath,[]),o.get(l.parentPath).push(a);let s=new Set,u=new Map;for(let[a,l]of i){if(!l.isFolder){s.add(a);continue}let C=o.get(l.parentPath)||[];if(C.length===1&&C[0]===a&&l.parentPath!==b)continue;s.add(a);let P=l.part,M=a;for(;;){let w=o.get(M)||[];if(w.length!==1)break;let I=w[0],U=i.get(I);if(!U||!U.isFolder)break;P+="/"+U.part,M=I;}M!==a&&u.set(a,P);}s.add(b);let g=[],c=new Map,d=Array.from(s).filter(a=>a!==b).sort((a,l)=>a.split("/").length-l.split("/").length||a.localeCompare(l));for(let a of d){let l=i.get(a);if(!l)continue;let C=l.parentPath;for(;C!==b&&!s.has(C);)C=i.get(C)?.parentPath||b;if(c.has(a))continue;let T=this.#g(u.get(a),l.match?.Metadata)??l.part,P=l.match===null,M=l.match!==null&&!l.isFolder&&n?0:this.#r()?this.#h(a,null,e,l.isFolder?"folder":"file"):this.#d(e,a,l.isFolder?"folder":"file",null),w={id:a,resolvedpath:a,text:T,parentPath:C,children:[],evalState:M,isIndeterminate:this.isIndeterminate(e,a),cls:l.isFolder?"folder":"file",isSearchMatch:l.match!==null,isGenerated:P,hasChildrenInSearch:(o.get(a)?.length||0)>0,iconCls:null,check:false,leaf:!l.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:l.match?.Size??0};if(c.set(a,w),C===b)g.push(w);else {let I=c.get(C);I&&I.children.push(w);}}let E=a=>{a.sort((l,C)=>l.cls==="folder"&&C.cls!=="folder"?-1:l.cls!=="folder"&&C.cls==="folder"?1:(l.text??"").localeCompare(C.text??"")),a.forEach(l=>E(l.children));};return E(g),g});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#N(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),s=this.accepts(),u=[];o.length>0?u=o.map(c=>{let d=this.#r()?this.#h(c,null,n,"folder"):this.#d(n,c,"folder",null);return {id:c,resolvedpath:c,text:c,parentPath:"",children:[],evalState:d,isIndeterminate:false,cls:this.#n(c)?"folder":"file"}}):u=[{id:b,resolvedpath:b,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let g=this.#m().map(c=>({id:c.path,resolvedpath:c.path,remoteSource:this.#l(c.id),text:c.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:c.icon}));return u=[...u,...g],u.map(c=>{let d=new Map;if(!c.id)return;let E=c.id;s&&(c.accepted=true),d.set(E,c);let a=o.length>0?i.filter(l=>l.parentPath.startsWith(E)):i;for(let l$1 of a){if(!l$1.id)continue;let C=l$1.id;if(!l$1.cls||d.has(C))continue;let T=d.get(l$1.parentPath),P=l$1.hidden===true&&!e?0:this.#r()?this.#h(C,T,n,l$1.cls):this.#d(n,C,l$1.cls,T),M=m$1(l({},l$1),{isIndeterminate:this.isIndeterminate(n,C),evalState:P,children:[]});s&&(M.accepted=this.matchAccepts(s,M)),d.set(C,M),M.id?.startsWith("%")&&M.id?.endsWith("%")&&d.set(this.#s(C),M),T&&T.children.push(M);}return c}),u});#N(t){let e=structuredClone(t);for(let n=0;n<e.length;n++){let o=e[n].slice(1);if(o.startsWith("{")&&o.endsWith("}")){let s=o.slice(1,-1),u=this.filterGroups?.FilterGroups?.[s];if(u&&u.length){let g=u.map(c=>`-${c}`);e.splice(n,1,...g);}}}return e}#s(t){if(!t)return b;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===b?t:t+e}#f(t){return t?.id?!this.resolvePaths()||!t.resolvedpath?t.id:t.id.startsWith("%")&&t.id.endsWith("%")?this.#s(t.resolvedpath):t.resolvedpath:null}#h(t,e,n,i){if(e&&e.evalState===-1)return -2;let o=this.#_.value();return o&&o.has(t)?o.get(t):this.#d(n,t,i,e)}#d(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,s=this.#c(t.filter(d=>!this.#i(d))),u=t.filter(d=>this.#i(d)),g=this.multiSelect(),c=this.#f(this.treeNodes().find(d=>d.id===e))??e;if(s.length===0)return o;for(let d=0;d<s.length;d++){let E=s[d];if(e===E||c==E){o=1;break}if(!g||!this.#n(E))continue;if(e?.startsWith(E)||c?.startsWith(E)){o=1;break}}if(u.length===0)return o;for(let d=0;d<u.length;d++){let E=u[d],a=E.slice(1),l=E.startsWith("-")?-1:1;if(this.#n(a)){if(n!=="folder")continue;if(e===a||c==a){o=l;break}}if(a.startsWith("*")&&(a.endsWith("*\\")||a.endsWith("*/"))){if(n!=="folder")continue;let T=a.slice(1,-2);if(T==="")break;if(e?.includes(T+"\\")||e?.includes(T+"/")){o=l;break}}if(a.startsWith("[.*")&&(a.endsWith("[^\\/]*]")||a.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let T=a.slice(3,-7);if(new RegExp(T).test(e)){o=l;break}}if(a.startsWith("[")&&a.endsWith("]")){let T=a.slice(1,-1),P=this.translateCSharpRegex(T);if(new RegExp(`${P}`).test(e)){o=l;break}}if(a.startsWith("*.")){if(n!=="file"||a.replace("*.","").length===0)continue;if(this.#C(e,a,true)){o=l;break}}if(a==="")continue;if(a===e){o=l;break}if(this.#C(e,a,true)){o=l;break}}return o}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(i,o,s)=>`(${s})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#n(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):false}#C(t,e,n=false){let i=e.replace(/[\\.+^${}()|[\]*?]/g,s=>s==="*"?".*":s==="?"?".":"\\"+s);return new RegExp(`${i}${n?"$":""}`).test(t)}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=Ga(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=Ga(()=>{let t=this.pathDiscoveryMethod(),e=this.#p();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n);}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===b)return true;let n=t.split(",");if(n.length===0)return true;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):false}currentPathEffect=Ga(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=Ga(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#v(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value);},{signal:this.inputValueChangeAbortController.signal}),this.#p.set(t),t.autocomplete="off");});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#R(t);else {let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#g(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#u(null,e[0])):this.#u(null,b);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?b:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.id===b||this.#m().map(d=>this.#l(d.id)?.mount).filter(d=>d).includes(e.id??"")||(t.stopPropagation(),this.searchMode()&&!e.isSearchMatch)||e.evalState===-2)return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(t,e.id,e);return}if(this.onlySelectFolder()&&e.cls!=="folder"||this.accepts()&&!e.accepted)return;let i=this.currentPathArray(),o=this.#c(i),s=this.isChildOfSelected(e),u=this.#f(e),g=s?`-${u}`:u,c=this.#n(u);if(this.multiSelect())if(o.includes(u))this.currentPath.set(i.filter(d=>d!==u&&!(c&&d.startsWith(g))).join("\0"));else if(o.some(d=>d==g))this.currentPath.set(i.filter(d=>d!==g).join("\0"));else {let d=c?i.filter(E=>!E.startsWith(u)):i;this.currentPath.set([...d,g].join("\0"));}else i.includes(u)?this.currentPath.set(i.filter(d=>d!==u).join("\0")):this.currentPath.set(u);}isChildOfSelected(t){return this.#c(this.currentPathArray()).filter(n=>this.#n(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e,n=null){t.stopPropagation(),n?.cls==="folder"&&(n?.children.length?this.treeNodes.update(i=>i.filter(o=>!o.id?.startsWith(n.id)||o.id===n.id)):this.#u(n,e));}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(true),false}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolved(),o=this.#s(e),s=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+s}}).subscribe({next:()=>{this.currentPath.set(s),this.#u(null,n),setTimeout(()=>{this.#P();},500),this.createFolderDialogOpen.set(false);},error:u=>{let g=u?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),c=g?g[1]:u?.message||$localize`An error occurred while trying to create the folder.`;this.#b.open(h,{data:{title:$localize`Cannot create folder`,message:c,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#P(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#v(t){return Object.defineProperty(t,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:e}})),e}}),t}#O(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n){return this.#e.postApiV2DestinationList({requestBody:{BackupId:this.backupId()??null,DestinationUrl:e?.url??this.destinationUrl()??null,ConnectionStringId:this.connectionStringId()??null,DestinationType:n,SourcePrefix:e?.prefix??this.sourcePrefix()??null,Path:t,Offset:null,Limit:null}}).pipe(pt(i=>(i.Data?.Items??[]).map(o=>m$1(l({},o),{Path:(e?.prefix??"")+o.Path})).filter(o=>o.Metadata==null||!o.Metadata.ExtType)))}#M(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#E(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#T(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#F(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(pt(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:false,folderContents:true,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(pt(i=>i.Files??[]))}}#y(t,e){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(e.path,e,"SourceProvider"):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(t,null,"SourceProvider"):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(e.path,e,"SourceProvider"):this.#E(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(t,null,"SourceProvider"):this.#E(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(e.path,e,"SourceProvider"):this.#T(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ne?this.#o(t,null,"SourceProvider"):this.#T(t):this.isByBackupSettings()?this.#F(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend"):this.#O(t)}#R(t){let n=t.split("\0").filter(s=>!this.#i(s)&&!s.startsWith("@")).filter(Boolean).map(s=>{let u=this.#a(s),g=s.split(u);return g.at(-1)===""&&g.pop(),this.#n(s)||g.pop(),{split:g,sep:u}}),i=[b];n.forEach(({split:s,sep:u})=>{s.forEach((g,c)=>{let d=s.slice(0,c+1).join(u)+u;d===""||d===u||i.includes(d)||i.push(d);});});let o=i.map(s=>(this.isLoading.set(s),this.#y(s,null).pipe(pt(u=>({status:"success",value:u,url:s})),Vs(u=>ty({status:"error",value:u,url:s})))));vy(o).pipe(Bu(()=>this.isLoading.set(null))).subscribe({next:s=>{let u=s.filter(c=>c.status==="success");s.filter(c=>c.status==="error");this.treeNodes.update(c=>{let d=u.flatMap(a=>Array.isArray(a.value)?a.value.map(l$1=>m$1(l({},l$1),{parentPath:a.url})):[]);d.length>0&&this.anyRemoteSourcesLoaded.set(true);let E=[...new Map([...c,...d].map(a=>[a.id,a])).values()];return this.#P(),this.hideShortcuts()?E.filter(a=>!a.id.startsWith("%")):E});}});}#g(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#x(t){t&&t.ExtType&&t.ExtType.length>0&&this.hasExtendedData.emit(t.ExtType);}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#u(t=null,e=b){let n=t?.remoteSource;this.isLoading.set(e),this.#y(e,n).pipe(Bu(()=>this.isLoading.set(null))).subscribe({next:i=>{let o=this.isByBackupSettings()||this.customRemoteMode()!==null||n?i.map(s=>{this.#x(s.Metadata);let u=this.#a(s.Path),g=this.#g(s.Path.split(u).filter(E=>E!=="").pop(),s.Metadata);if(s.Metadata&&s.Metadata["diskimage:Type"]==="filesystem")return null;let c=s.Path,d=null;return n&&(c=s.Path.substring(1),d=m$1(l({},n),{path:s.Path.substring(n.prefix.length)})),{text:g,id:c,cls:this.#n(s.Path)?"folder":"file",leaf:t!==null,resolvedpath:s.Path,hidden:false,remoteSource:d,fileSize:s.Size}}):i;o.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(s=>{let u=o.filter(c=>c!==null).map(c=>{let d=this.#n(c.id)?"folder":"file";return m$1(l({},c),{cls:d,parentPath:e})}),g=[...new Map([...s,...u].map(c=>[c.id,c])).values()];return this.hideShortcuts()?g.filter(c=>!c.id.startsWith("%")):g});},error:i=>{this.errorMessage.set(i.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=dw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&$g(n.treeContainerRef,Pt,5)(n.formRef,Mt,5),e&2&&lC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Qg("disabled",n.disabled());},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],onlySelectFolder:[1,"onlySelectFolder"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],resolvePaths:[1,"resolvePaths"],customRemoteMode:[1,"customRemoteMode"],showUnrootedSources:[1,"showUnrootedSources"],backupId:[1,"backupId"],connectionStringId:[1,"connectionStringId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"],searchMode:[1,"searchMode"],searchResults:[1,"searchResults"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:Tt,decls:19,vars:18,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let s;s=$localize`Will be created as:`;let u;return u=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,s,u,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"color"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",3,"click"],[1,"icon",3,"click"],[1,"primary"],[1,"text"],[1,"size"],[1,"small"],["alt","Provider icon",1,"provider-icon",3,"src"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(oC(Et),oT(0,Ot,5,1,"sh-button-group",11),Qi(1,"div",12),iC(2,0,ct),Qi(3,"div",13,0),oT(5,Ft,1,0,"sh-progress-bar",14),ig(6,Ut,3,2,"ng-template",null,1,sb)(8,Jt,1,0,"ng-container",15),Hl(),Qi(9,"div",16),oT(10,Xt,2,2,"sh-toggle",17),oT(11,qt,2,1,"button",18),Hl()(),Qi(12,"div",19,2)(14,"sh-form-field"),iC(15,1,ct),iC(16,2,yt),Hl()(),oT(17,Kt,2,2,"sh-alert",20),oT(18,Qt,19,7,"sh-dialog",21)),e&2){let i=uC(7);iT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),DE(),Qg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),DE(2),Qg("visualize-accepted",n.accepts()),DE(2),iT(n.isLoading()!=null?5:-1),DE(3),gg("ngTemplateOutlet",i)("ngTemplateOutletContext",ZC(16,ht,ZC(14,bt,n.treeStructure()))),DE(2),iT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),DE(),iT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),DE(),Qg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),DE(5),iT(n.errorMessage()?17:-1),DE(),iT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe$1,c,d,de,ei,Bn,Ze,Rn,Jt$1,ue,m$2],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;min-height:6.25rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--base-7)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(img:nth-child(2)){width:2.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .provider-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}']})};var Yt=[[["label"]],[["","prefix",""]],[["","suffix",""]]],Zt=["label","[prefix]","[suffix]"],en=["ngProjectAs","label",5,["label"]];function tn(r,t){if(r&1&&PC(0),r&2){let e=t.$implicit,n=nC();rm("",e.label,"",n.hasPerSecond()?"/s":"");}}var nn=["throttle-upload","throttle-download"],on=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],rn=r=>{if(!r||typeof r!="string"||r.length===0)return {size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},mt=class r{customId=g1();inputType=g1();timespan=Ue(0);unit=Ue("MB");sizeOptions=Ue(on);readonly=Ue(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&nn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=Ga(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=rn(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit);}):(this.timespan.set(0),this.unit.set("MB"));}else this.timespan.set(0),this.unit.set("MB");}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=dw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[zC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:Zt,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(oC(Yt),Qi(0,"div",0),iC(1,0,en),Hl(),Qi(2,"sh-form-field")(3,"input",1),sm("ngModelChange",function(o){return HC(n.timespan,o)||(n.timespan=o),o}),Hl(),DD(),iC(4,1),iC(5,2),Hl(),Qi(6,"sh-select",2)(7,"input",3),sm("ngModelChange",function(o){return HC(n.unit,o)||(n.unit=o),o}),Hl(),DD(),ig(8,tn,1,2,"ng-template"),Hl()),e&2&&(DE(2),hg("readonly",n.readonly()||void 0),DE(),gg("id",n.customId()),im("ngModel",n.timespan),gg("disabled",n.readonly()),TD(),DE(3),zg("--miw",0),gg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),DE(),im("ngModel",n.unit),TD());},dependencies:[Nt$2,Fe$1,Bn,Ze,en$1,Rn,Jt$1],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}']})};var sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1){let e=gT();Qi(0,"button",7),Fg("click",function(){let i=Sd(e).$implicit,o=nC();return xd(o.updateUnit(i.value))}),XT(1,1),Hl();}if(r&2){let e=t.$implicit;DE(),Lg(e.label),eC(1);}}var dn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],un=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],pn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],_t=class r{customId=g1();inputType=g1();timespan=Ue(0);#e="D";unit=Ue(this.#e);unitLabel=Nt$1(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=Nt$1(()=>{let t=this.inputType();return t&&pn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?dn:un);readonly=Ue(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=Ga(()=>{this.onChange(this.getValue());});inputTypeEffect=Ga(()=>{this.timeOptions();let e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e);});updateUnit(t){this.unit.set(t);}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e));}else this.timespan.set(0),this.unit.set(this.#e);}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=dw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[zC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(oC(sn),iC(0,0,ln),Qi(1,"sh-form-field")(2,"input",2),sm("ngModelChange",function(o){return HC(n.timespan,o)||(n.timespan=o),o}),Hl(),DD(),iC(3,1),iC(4,2),Hl(),Qi(5,"sh-menu",3)(6,"button",4),XT(7,0),Hl(),Ul(8,5),cT(9,cn,2,1,"button",6,sT),Wl(),Hl()),e&2&&(DE(),hg("readonly",n.readonly()||void 0),DE(),gg("id",n.customId()),im("ngModel",n.timespan),gg("disabled",n.readonly()),TD(),DE(3),gg("openIndicator",true),DE(2),Lg(n.unitLabel()),eC(7),DE(2),lT(n.timeOptions()));},dependencies:[ve,Fe$1,Bn,Ze,en$1,Rn,Jt$1,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}']})};
2
- export{Se as S,_t as _,mt as m,rn as r};
package/chunk-B9zNFJSv.js DELETED
@@ -1 +0,0 @@
1
- import {S}from'./chunk-MvQwR7nW.js';import {T,ad as br,bo as av,A,U as Ue,N as Nt,G as Ga,bp as Rr,aZ as ee}from'./main-PXGZLKMN.js';var m=class i{#i=T(S);#t=T(br);#o=T(av);#e=A("darkTheme",null,true);#s=Ue(this.#i.innerWidth);isMobile=Nt(()=>this.#s()<1024);sidenavType=Ue(this.isMobile()?"overlay":"");isNavOpen=Ue(false);isDarkMode=this.#e.asReadonly();darkModeEffect=Ga(()=>{this.#e()?(this.#t.documentElement.classList.add("dark"),this.#t.documentElement.classList.remove("light")):(this.#t.documentElement.classList.remove("dark"),this.#t.documentElement.classList.add("light"));});isMobileEffect=Ga(()=>{this.isNavOpen.set(!this.isMobile()),this.sidenavType.set(this.isMobile()?"overlay":"");});constructor(){Rr(this.#o)&&this.#i?.addEventListener("resize",()=>{this.#s.set(this.#i.innerWidth);});}toggleNav(){this.isNavOpen.set(!this.isNavOpen());}toggleBodyClass(){this.#e.set(!this.isDarkMode());}setDarkMode(){this.#e.set(true);}setLightMode(){this.#e.set(false);}static \u0275fac=function(h){return new(h||i)};static \u0275prov=ee({token:i,factory:i.\u0275fac,providedIn:"root"})};export{m};
package/chunk-BDXLL1lt.js DELETED
@@ -1 +0,0 @@
1
- import {w as w$1}from'./chunk-dScOwyAU.js';import {w as we}from'./chunk-CUxq_s_t.js';import'./chunk-DaIpTiYw.js';import'./chunk-B6vxBiK4.js';import'./chunk-DV2SIgNN.js';import'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import'./chunk-D1wHRltX.js';import'./chunk-CQ8rm_d9.js';import'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-0sb5_LpD.js';import'./chunk-B9zNFJSv.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,aw as W,a5 as g,ab as C,G as Ga,aE as Fo,d as dw,Z as lr,_ as _t,a8 as To,j as mg,Q as Qi,o as oT,X as XT,H as Hl,D as DE,i as iT,z as gg,aF as YC,aD as zC,q as PC,n as nC,aa as Gl}from'./main-PXGZLKMN.js';import'./chunk-DJbAxHpK.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {L}from'./chunk-D28lTX0k.js';import {d}from'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import'./chunk-C9EdrQe6.js';import'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';var G=(i,e)=>[i,e,"general"],$=(i,e)=>[i,e,"destination"],U=(i,e)=>[i,e,"source-data"],K=(i,e)=>[i,e,"schedule"],F=(i,e)=>[i,e,"options"];function w(i,e){if(i&1&&(Qi(0,"p"),PC(1),Hl()),i&2){let t=nC();DE(),Gl("Editing: ",t.backupName());}}function J(i,e){i&1&&mg(0,"sh-progress-bar",7);}function X(i,e){i&1&&(Qi(0,"section"),mg(1,"router-outlet"),Hl());}var P=class i{#t=T(W);#e=T(we);#i=T(g);#n=T(C);isDraft=this.#e.isDraft;isNew=this.#e.isNew;backupId=this.#e.backupId;backupName=this.#e.backupName;finishedLoading=this.#e.finishedLoading;#a=L(this.#t.params);#o=L(this.#t.url);paramsChanged=Ga(()=>{let e=this.#a()?.id,t=!!this.#o()?.find(n=>n.path==="backup-draft");e!=this.#e.backupId()&&(this.#e.backupId.set(e),e!=="new"?this.getBackup(e,t):this.getDefaults());});getDefaults(){this.#n.getApiV1Backupdefaults().pipe(Fo(1)).subscribe({next:e=>{let t=e.Backup;t.Settings=[...t.Settings],this.#e.mapGeneralToForm(t),this.#e.mapDestinationToForm(t),this.#e.mapSourceDataToForm(t),this.#e.mapScheduleToForm(e.Schedule),this.#e.mapOptionsToForms(t),this.#e.applicationOptions.set(e.ApplicationOptions),this.#e.backupDefaults.set(e),this.#e.finishedLoading.set(true);}});}getBackup(e,t=false){let n=a=>{this.#e.mapScheduleToForm(a.Schedule??null),a.Backup&&(this.#e.mapGeneralToForm(a.Backup),this.#e.mapDestinationToForm(a.Backup),this.#e.mapSourceDataToForm(a.Backup),this.#e.mapOptionsToForms(a.Backup),this.#e.storeMetadata(a.Backup,t)),this.#e.finishedLoading.set(true);};if(t){this.isDraft.set(t);let a=this.#i.draftBackups().find(d=>d.id===e);if(!a){alert("Backup not found");return}n(a.data);}else this.#n.getApiV1BackupById({id:e}).subscribe({next:n});}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=dw({type:i,selectors:[["app-backup"]],features:[zC([we])],decls:16,vars:22,consts:()=>{let e;e=$localize` General `;let t;t=$localize` Destination `;let n;n=$localize` Source Data `;let a;a=$localize` Schedule `;let d;return d=$localize` Options `,[e,t,n,a,d,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],[1,"indeterminate","primary"]]},template:function(t,n){t&1&&(mg(0,"app-status-bar"),Qi(1,"header"),oT(2,w,2,1,"p"),Qi(3,"sh-stepper",5)(4,"div",6),XT(5,0),Hl(),Qi(6,"div",6),XT(7,1),Hl(),Qi(8,"div",6),XT(9,2),Hl(),Qi(10,"div",6),XT(11,3),Hl(),Qi(12,"div",6),XT(13,4),Hl()()(),oT(14,J,1,0,"sh-progress-bar",7)(15,X,2,0,"section")),t&2&&(DE(2),iT(n.isNew()?-1:2),DE(2),gg("routerLink",YC(7,G,n.isDraft()?"/backup-draft":"/backup",n.backupId())),DE(2),gg("routerLink",YC(10,$,n.isDraft()?"/backup-draft":"/backup",n.backupId())),DE(2),gg("routerLink",YC(13,U,n.isDraft()?"/backup-draft":"/backup",n.backupId())),DE(2),gg("routerLink",YC(16,K,n.isDraft()?"/backup-draft":"/backup",n.backupId())),DE(2),gg("routerLink",YC(19,F,n.isDraft()?"/backup-draft":"/backup",n.backupId())),DE(2),iT(n.finishedLoading()?15:14));},dependencies:[lr,_t,To,ee,w$1,d],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}header[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:.5rem}header[_ngcontent-%COMP%] sh-stepper[_ngcontent-%COMP%]{width:100%}section[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;flex:1 0;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto}"]})};export{P as default};
package/chunk-BFH9sFEg.js DELETED
@@ -1 +0,0 @@
1
- import {ShipTable as ot}from'./chunk-CA-ER0DL.js';import'./chunk-BAZ5npJw.js';import {T,ab as C,a6 as be,a5 as g,e as ee,b as g1,N as Nt,U as Ue,G as Ga,ai as m,aj as l,at as h,C as Bu,d as dw,v as v$1,_ as _t,aH as m$1,b1 as m$2,Q as Qi,X as XT,H as Hl,o as oT,F as Fg,s as sm,D as DE,au as Lg,av as eC,i as iT,z as gg,a3 as QC,I as Qg,w as im,t as tC,l as HC,j as mg,k as gT,S as Sd,n as nC,x as xd,a1 as cT,a2 as lT,q as PC,aM as tb,E as nm,aN as ob,aR as rb}from'./main-PXGZLKMN.js';import {$}from'./chunk-D28lTX0k.js';import {d}from'./chunk-DQW8lSiz.js';import {U}from'./chunk-CMmgPgiU.js';var de=()=>["/"],Se=(l,n)=>n.Version;function ce(l,n){l&1&&(Qi(0,"div",11),mg(1,"sh-progress-bar",19),Qi(2,"p"),XT(3,4),Hl()());}function Ce(l,n){l&1&&(Qi(0,"div",12)(1,"p"),XT(2,5),Hl()());}function me(l,n){if(l&1){let e=gT();Qi(0,"tr",26),Fg("click",function(i){let r=Sd(e).$implicit,S=nC(2);return xd(S.toggleSelected(r.Version,i))}),Qi(1,"td")(2,"sh-checkbox",22),Fg("click",function(i){let r=Sd(e).$implicit,S=nC(2);return xd(S.toggleSelected(r.Version,i))}),Hl()(),Qi(3,"td"),PC(4),Hl(),Qi(5,"td"),PC(6),tb(7,"relativeTime"),Hl(),Qi(8,"td"),PC(9),tb(10,"relativeTime"),Hl(),Qi(11,"td"),PC(12),tb(13,"bytes"),Hl(),Qi(14,"td"),PC(15),Hl()();}if(l&2){let e=n.$implicit;DE(2),gg("checked",e.Selected),DE(2),nm(e.Version),DE(2),nm(ob(7,6,e.Time,true)),DE(3),nm(ob(10,9,e.Time,false)),DE(3),nm(rb(13,12,e.FileSizes)),DE(3),nm(e.FileCount);}}function pe(l,n){if(l&1){let e=gT();Qi(0,"sh-table",20),sm("sortByColumnChange",function(i){Sd(e);let r=nC();return HC(r.sortByColumn,i)||(r.sortByColumn=i),xd(i)}),Qi(1,"tr",21)(2,"th")(3,"sh-checkbox",22),Fg("click",function(){Sd(e);let i=nC();return xd(i.toggleSelect())}),Hl()(),Qi(4,"th",23),XT(5,6),Hl(),Qi(6,"th",23),XT(7,7),Hl(),Qi(8,"th",23),XT(9,8),Hl(),Qi(10,"th",24),XT(11,9),Hl(),Qi(12,"th",25),XT(13,10),Hl()(),cT(14,me,16,14,"tr",null,Se),Hl();}if(l&2){let e=nC();gg("data",e.versions())("loading",e.isLoading()),im("sortByColumn",e.sortByColumn),DE(3),Qg("indeterminate",e.indeterminate()),gg("checked",e.allSelected()),DE(11),lT(e.versions());}}var v=class l$1{#e=T(C);#n=T(be);#t=T(g);#i=T(ee);id=g1.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=Ue(false);performCompact=Ue(true);versions=Ue([]);constructor(){Ga(()=>{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=Ue("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(Bu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#i.navigate(["/"]);}}));}});}static \u0275fac=function(e){return new(e||l$1)};static \u0275cmp=dw({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=tC(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"),XT(1,0),Hl(),oT(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),XT(7,1),Hl(),Qi(8,"button",16),Fg("click",function(){return t.deleteVersions()}),XT(9,2),Hl()(),Qi(10,"div",17)(11,"sh-checkbox",18),sm("checkedChange",function(r){return HC(t.performCompact,r)||(t.performCompact=r),r}),XT(12,3),Hl()()),e&2&&(DE(),Lg(t.backup()?.Backup?.Name),eC(1),DE(),iT(t.isLoading()?2:t.versions().length===0?3:4),DE(4),gg("routerLink",QC(10,de))("disabled",t.isDeleting()),DE(2),Qg("loading",t.isDeleting()),gg("disabled",t.isDeleting()||t.selectedItems().length===0||t.isLoading()),DE(),Lg(t.selectedItems().length)(t.selectedItems().length),eC(9),DE(2),im("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-BIeNnIyg.js DELETED
@@ -1 +0,0 @@
1
- import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import'./chunk-D1wHRltX.js';import'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-B9zNFJSv.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,ab as C,aw as W,N as Nt,U as Ue,d as dw,f as N,v as v$1,_ as _t,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,F as Fg,o as oT,a1 as cT,D as DE,z as gg,a_ as ZC,i as iT,a2 as lT,t as tC,X as XT,q as PC,aa as Gl,ap as sT}from'./main-PXGZLKMN.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {L}from'./chunk-D28lTX0k.js';import'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import'./chunk-C9EdrQe6.js';import'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';var k=e=>({state:e});function y(e,t){e&1&&XT(0,2,1);}function v(e,t){e&1&&XT(0,2,2);}function U(e,t){e&1&&XT(0,2,3);}function G(e,t){e&1&&XT(0,2,4);}function K(e,t){if(e&1&&(PC(0),mg(1,"br")),e&2){let o=t.$implicit;Gl(" ",o," ");}}var S=class e{#t=T(C);#e=T(W);#n=L(this.#e.params);#o=L(this.#e.queryParams);runId=Nt(()=>this.#n()?.runId);stateId=Nt(()=>this.#o()?.state);offset=Ue(0);status=Ue("starting");messageLog=Ue([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(o=>[...o,...t.Items]);});},1e3);evalStatus(t){t.Started===true&&t.Finished===true&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===true&&t.Finished===false&&this.status.set("started");}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval);}});}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=dw({type:e,selectors:[["app-commandline-result"]],decls:18,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let n;return n=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,n=tC(n),[t,o,n,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"]]},template:function(o,n){o&1&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"div",3)(3,"button",4),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),Qi(6,"h3"),Og(7,1),Qi(8,"button",5),Fg("click",function(){return n.abort()}),Hl(),Pg(),Hl(),Qi(9,"div",6),Og(10,2),oT(11,y,1,0),oT(12,v,1,0),oT(13,U,1,0),oT(14,G,1,0),Pg(),Hl(),Qi(15,"code"),cT(16,K,2,1,null,null,sT),Hl()()),o&2&&(DE(3),gg("queryParams",ZC(5,k,n.stateId())),DE(8),iT(n.status()==="starting"?11:-1),DE(),iT(n.status()==="started"?12:-1),DE(),iT(n.status()==="finished"?13:-1),DE(),iT(n.status()==="aborted"?14:-1),DE(2),lT(n.messageLog()));},dependencies:[ee,N,v$1,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{S as default};
package/chunk-BJ6LKfIL.js DELETED
@@ -1,2 +0,0 @@
1
- import {o as ot,e as en,a as at,j as jt,Q as Qt}from'./chunk-CUxq_s_t.js';import'./chunk-DaIpTiYw.js';import'./chunk-B6vxBiK4.js';import'./chunk-DV2SIgNN.js';import'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import'./chunk-D1wHRltX.js';import {g as g$1,G,C}from'./chunk-CQ8rm_d9.js';import'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-0sb5_LpD.js';import'./chunk-B9zNFJSv.js';import {c}from'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,a5 as g,a6 as be$1,B as y1,U as Ue$1,N as Nt,G as Ga,at as h,d as dw,v,f as N,j as mg,Q as Qi,o as oT,H as Hl,D as DE,i as iT,t as tC,$ as $g,K as lC,X as XT,n as nC,k as gT,F as Fg,S as Sd,x as xd,q as PC,O as Og,P as Pg,au as Lg,av as eC,I as Qg,z as gg,a1 as cT,ap as sT,a2 as lT,s as sm,l as HC,p as DD,w as im,y as TD,E as nm}from'./main-PXGZLKMN.js';import {f}from'./chunk-DJbAxHpK.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {d}from'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import {F as Fe$1}from'./chunk-C9EdrQe6.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';function Ee(n,t){n&1&&(Qi(0,"div",13),mg(1,"sh-progress-bar",14),Qi(2,"div",15)(3,"h3"),XT(4,2),Hl()()());}function Fe(n,t){n&1&&(Qi(0,"sh-divider"),XT(1,5),Hl());}function Ie(n,t){if(n&1&&(Qi(0,"p",20),PC(1),Hl()),n&2){let e=nC().$implicit;DE(),nm(e.Description);}}function Ne(n,t){if(n&1&&(Qi(0,"p",20),PC(1),Hl()),n&2){let e=nC().$implicit,o=nC(3);DE(),nm(o.getSimplePath(e.BaseUrl));}}function ye(n,t){if(n&1){let e=gT();Qi(0,"button",25),Fg("click",function(i){Sd(e);let r=nC().$implicit,f=nC(3);return xd(f.updateBackupsSync(r,i))}),PC(1," Update backups "),Hl();}if(n&2){let e=nC(4);gg("disabled",e.isSaving());}}function he(n,t){if(n&1){let e=gT();Qi(0,"app-destination-list-item",18),Fg("click",function(){let i=Sd(e).$implicit,r=nC(3);return xd(r.selectDestination(i))}),Qi(1,"h3",19),PC(2),Hl(),oT(3,Ie,2,1,"p",20)(4,Ne,2,1,"p",20),Qi(5,"div",21),oT(6,ye,2,1,"button",22),Qi(7,"button",23),Fg("click",function(i){let r=Sd(e).$implicit,f=nC(3);return xd(f.deleteDestination(r.ID,i))}),Qi(8,"sh-icon"),PC(9,"trash"),Hl()(),Qi(10,"button",24),Og(11,6),mg(12,"sh-icon"),Pg(),Hl()()();}if(n&2){let e=t.$implicit,o=nC(3);gg("targetUrl",e.BaseUrl),DE(2),nm(e.Name||e.BaseUrl),DE(),iT(e.Description?3:4),DE(3),iT(o.isOutOfSync(e)?6:-1);}}function Oe(n,t){if(n&1){let e=gT();Qi(0,"sh-card",16),Fg("click",function(){Sd(e);let i=nC(2);return xd(i.selectDestination("new"))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),PC(2,"plus-circle"),Hl(),Qi(3,"div",15)(4,"h3"),XT(5,3),Hl(),Qi(6,"p"),XT(7,4),Hl()()(),oT(8,Fe,2,0,"sh-divider"),cT(9,he,13,4,"app-destination-list-item",17,sT);}if(n&2){let e=nC(2);DE(8),iT(e.destinations().length>0?8:-1),DE(),lT(e.destinations());}}function xe(n,t){if(n&1&&(Qi(0,"h2"),XT(1,1),Hl(),oT(2,Ee,5,0,"div",13)(3,Oe,11,1)),n&2){let e=nC();DE(2),iT(e.isLoading()?2:3);}}function Be(n,t){n&1&&XT(0,10,1);}function Pe(n,t){n&1&&XT(0,10,2);}function Ae(n,t){n&1&&XT(0,10,3);}function Me(n,t){if(n&1){let e=gT();Qi(0,"button",37),Fg("click",function(){Sd(e);let i=nC(2);return xd(i.testDestination())}),Og(1,10),oT(2,Be,1,0)(3,Pe,1,0)(4,Ae,1,0),Pg(),Hl();}if(n&2){let e=nC(2);gg("disabled",e.testSignal()=="testing"),DE(2),iT(e.testSignal()=="testing"?2:e.testResponse()?.action==="success"?3:4);}}function be(n,t){if(n&1){let e=gT();Qi(0,"div",32)(1,"sh-form-field")(2,"label"),XT(3,11),Hl(),Qi(4,"input",38),sm("ngModelChange",function(i){Sd(e);let r=nC(2);return HC(r.editName,i)||(r.editName=i),xd(i)}),Hl(),DD(),Hl()();}if(n&2){let e=nC(2);DE(4),im("ngModel",e.editName),TD();}}function $e(n,t){if(n&1){let e=gT();Qi(0,"app-test-url",39,0),sm("targetUrlChange",function(i){Sd(e);let r=nC(2);return HC(r.editBaseUrl,i)||(r.editBaseUrl=i),xd(i)})("testSignalChange",function(i){Sd(e);let r=nC(2);return HC(r.testSignal,i)||(r.testSignal=i),xd(i)}),Hl();}if(n&2){let e=nC(2);im("targetUrl",e.editBaseUrl)("testSignal",e.testSignal),gg("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=gT();Qi(0,"app-destination-list-item",40)(1,"button",41),Fg("click",function(){Sd(e);let i=nC(2);return xd(i.removeDestination())}),XT(2,12),Hl()(),Qi(3,"app-single-destination",42),sm("targetUrlChange",function(i){Sd(e);let r=nC(2);return HC(r.editBaseUrl,i)||(r.editBaseUrl=i),xd(i)}),Hl();}if(n&2){let e=nC(2);gg("targetUrl",e.editBaseUrl()),DE(3),im("targetUrl",e.editBaseUrl);}}function Re(n,t){if(n&1){let e=gT();Qi(0,"app-destination-list",43),Fg("setDestination",function(i){Sd(e);let r=nC(2);return xd(r.setDestination(i))}),Hl();}}function Le(n,t){n&1&&XT(0,9,1);}function we(n,t){n&1&&XT(0,9,2);}function Ue(n,t){n&1&&XT(0,9,3);}function ve(n,t){n&1&&XT(0,9,4);}function Ge(n,t){if(n&1){let e=gT();Qi(0,"header",26)(1,"button",23),Fg("click",function(){Sd(e);let i=nC();return xd(i.cancelEdit())}),Qi(2,"sh-icon"),PC(3,"arrow-left"),Hl()()(),Qi(4,"div",27)(5,"sh-card",28)(6,"header",29)(7,"h3"),XT(8,7),Hl(),Qi(9,"div",30),oT(10,Me,5,2,"button",31),Hl()(),oT(11,be,5,1,"div",32),oT(12,$e,2,10,"app-test-url",33),oT(13,ke,4,2)(14,Re,1,0,"app-destination-list"),Hl(),Qi(15,"div",34)(16,"button",35),Fg("click",function(){Sd(e);let i=nC();return xd(i.cancelEdit())}),XT(17,8),Hl(),Qi(18,"button",36),Fg("click",function(){Sd(e);let i=nC();return xd(i.testResponse()?.action==="success"||i.testResponse()?.action==="missing-folder"||!i.isUrlChanged()?i.save():i.testDestination())}),Og(19,9),oT(20,Le,1,0)(21,we,1,0)(22,Ue,1,0)(23,ve,1,0),Pg(),Hl()()();}if(n&2){let e=nC();DE(8),Lg(e.selectedDestination()==="new"?"New Destination":"Edit Destination"),eC(8),DE(2),iT(e.editBaseUrl()?10:-1),DE(),iT(e.selectedDestination()!=="new"?11:-1),DE(),iT(e.editBaseUrl()?12:-1),DE(),iT(e.editBaseUrl()?13:14),DE(5),Qg("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"),gg("disabled",!e.editBaseUrl()||e.isSaving()||e.testSignal()==="testing"),DE(2),iT(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(ot);#t=T(g);#n=T(be$1);getSimplePath=g$1;backups=this.#t.backups;constructor(){this.#t.getBackups();}isSaving=this.#e.isSaving;destinations=this.#e.destinations;isLoading=this.#e.resourceDestinations.isLoading;testUrl=y1(en);selectedDestination=Ue$1(null);selectedDestinationId=Nt(()=>this.selectedDestination()!=="new"?this.selectedDestination().ID:null);editName=Ue$1(null);editDescription=Ue$1(null);editBaseUrl=Ue$1(null);initialBaseUrl=Ue$1(null);isUrlChanged=Nt(()=>{let t=this.editBaseUrl(),e=this.initialBaseUrl();return this.selectedDestination()==="new"?true:t!==e});testSignal=Ue$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=Ga(()=>{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,{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=C(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,{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,{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=dw({type:n,selectors:[["app-destinations"]],viewQuery:function(e,o){e&1&&$g(o.testUrl,en,5),e&2&&lC();},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=tC(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&&(mg(0,"app-status-bar"),Qi(1,"section"),oT(2,xe,4,1)(3,Ge,24,13),Hl()),e&2&&(DE(2),iT(o.selectedDestination()===null?2:3));},dependencies:[at,jt,Qt,ee,d,v,N,f,Fe$1,c,en,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-BYHopERA.js DELETED
@@ -1,2 +0,0 @@
1
- import {v as v$1}from'./chunk-BcpsSgKo.js';import {c}from'./chunk-D48AStVy.js';import {ShipTable as ot}from'./chunk-CA-ER0DL.js';import {T,b as g1,G as Ga,U as Ue,d as dw,f as N,v as v$2,aJ as ci,o as oT,i as iT,I as Qg,Q as Qi,X as XT,H as Hl,j as mg,a1 as cT,n as nC,ag as zg,z as gg,D as DE,a2 as lT,k as gT,F as Fg,S as Sd,x as xd,q as PC,aM as tb,E as nm,aN as ob,aa as Gl,ap as sT}from'./main-PXGZLKMN.js';import'./chunk-BAZ5npJw.js';import'./chunk-DQW8lSiz.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Qi(0,"div",4),XT(1,0),Hl());}function U(t,n){if(t&1&&(Qi(0,"li"),PC(1),Hl()),t&2){let e=n.$implicit;DE(),nm(e);}}function X(t,n){if(t&1&&(Qi(0,"strong"),PC(1,"# Exception"),Hl(),Qi(2,"ol",15),cT(3,U,2,1,"li",null,sT),Hl()),t&2){let e=nC(3).$implicit,a=nC(2);DE(3),lT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Qi(0,"li"),PC(1),Hl()),t&2){let e=n.$implicit;DE(),nm(e);}}function z(t,n){if(t&1&&(Qi(0,"strong"),PC(1,"# Message"),Hl(),Qi(2,"ol",15),cT(3,j,2,1,"li",null,sT),Hl()),t&2){let e=nC(3).$implicit,a=nC(2);DE(3),lT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Qi(0,"code"),oT(1,X,5,0),oT(2,z,5,0),Hl()),t&2){let e=nC(2).$implicit;DE(),iT(e.Exception?1:-1),DE(),iT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Qi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),PC(4),Hl(),Qi(5,"div",14),PC(6),Hl(),Qi(7,"div",14),PC(8),Hl(),Qi(9,"div",14),PC(10),Hl(),Qi(11,"div",14),PC(12),Hl()(),oT(13,W,3,2,"code"),Hl()()),t&2){let e=nC().$implicit;DE(4),Gl("ID: ",e.ID),DE(2),Gl("Type: ",e.Type),DE(2),Gl("Tag: ",e.Tag),DE(2),Gl("TaskID: ",e.TaskID),DE(2),Gl("MessageID: ",e.MessageID),DE(),iT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=gT();Qi(0,"tr",10),Fg("click",function(){let u=Sd(e).$implicit,g=nC(2);return xd(g.toggleRow(u.ID))}),Qi(1,"td"),PC(2),tb(3,"date"),Hl(),Qi(4,"td"),PC(5),Hl(),Qi(6,"td",8)(7,"button",11)(8,"sh-icon"),PC(9,"caret-down"),Hl()()()(),oT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=nC(2);DE(2),nm(ob(3,5,e.When,"medium")),DE(3),nm(a.subStringMessage(e.Message)),DE(2),Qg("rotated-icon",e.ID===a.openRowId()),DE(3),iT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Qi(0,"sh-table",6)(1,"tr",7)(2,"th"),XT(3,1),Hl(),Qi(4,"th"),XT(5,2),Hl(),mg(6,"th",8),Hl(),cT(7,q,11,8,null,null,B),Qi(9,"div",9),XT(10,3),Hl()()),t&2){let e=nC();zg("grid-template-columns","auto 1fr auto"),Qg("type-b",true),gg("data",e.logs())("loading",e.logsLoading()),DE(7),lT(e.logs());}}var v=class t{#e=T(v$1);whenFilter=g1();backupIdFilter=g1();polling=g1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=Ga(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ue(null);whenEffect=Ga(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=Ga(()=>{let n=this.backupIdFilter()??null;this.#e.setBackupIdFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});toggleRow(n){n!=null&&this.openRowId.set(n===this.openRowId()?null:n);}breakIntoLines(n){return n?n.split(`
2
- `):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Qg("is-disabled",a.logLevel()==="Disabled");},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let u;return u=$localize`No data available`,[n,e,a,u,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&oT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&iT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c,v$2,ci],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{v as default};
package/chunk-Bf1diO1u.js DELETED
@@ -1,2 +0,0 @@
1
- import {S as Se$1,m as mt$1,_ as _t$1}from'./chunk-B6vxBiK4.js';import {I as I$1}from'./chunk-DV2SIgNN.js';import {J}from'./chunk-B2fqvpov.js';import {a as Ge$1}from'./chunk-CQ8rm_d9.js';import {N as Nt$1}from'./chunk-CBdr-6_u.js';import {v as ve$1}from'./chunk-BZqhgAZ-.js';import {T,m,af as m1,b as g1,U as Ue$1,N as Nt,aj as l,ai as m$1,d as dw,bZ as ei,v,f as N,Q as Qi,aP as Ul,X as XT,aQ as Wl,o as oT,H as Hl,bf as ig,z as gg,D as DE,i as iT,k as gT,F as Fg,S as Sd,n as nC,x as xd,O as Og,j as mg,P as Pg,a1 as cT,ap as sT,a2 as lT,p as DD,a3 as QC,y as TD,q as PC,E as nm,ak as cm,al as BC,I as Qg,aa as Gl,ao as $C,c2 as uC,a_ as ZC,b_ as Ig,c4 as sb}from'./main-PXGZLKMN.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {B as Bn,Z as Ze$1,e as en,y as yt$1,R as Rn,J as Jt}from'./chunk-Drc5kcUX.js';import {a as at$1}from'./chunk-B-fklW6A.js';import'./chunk-D48AStVy.js';import'./chunk-0sb5_LpD.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import'./chunk-D28lTX0k.js';var Se=[{name:"send-mail-to",type:"Email"},{name:"send-mail-from",type:"Email"},{name:"log-file",type:"FileTree"},{name:"compression-extension-file",type:"FileTree"},{name:"dbpath",type:"FileTree"},{name:"restore-path",type:"FileTree"},{name:"gpg-program-path",type:"FileTree"}];var he=()=>({updateOn:"blur"}),I=t=>({formView:t}),V=t=>({$implicit:t});function we(t,i){if(t&1){let e=gT();Qi(0,"button",15),Fg("click",function(){Sd(e);let n=nC();return xd(n.showTextArea.set(false))}),Og(1,6),mg(2,"sh-icon"),Pg(),Hl();}}function Le(t,i){if(t&1){let e=gT();Qi(0,"button",19,1),Fg("click",function(){let n=Sd(e).$implicit,a=nC(3);return xd(a.addSetting(n))}),Qi(2,"div",20),PC(3),Qi(4,"p"),PC(5),Hl()()();}if(t&2){let e=i.$implicit;Qg("deprecated",e.deprecatedDescription),DE(3),Gl(" ",e.shortDescription," "),DE(2),nm(e.name);}}function Ie(t,i){if(t&1&&(Qi(0,"h3",11),PC(1),Hl(),cT(2,Le,6,4,"button",18,sT)),t&2){let e=i.$implicit;DE(),nm(e.displayName),DE(),lT(e.options);}}function Ve(t,i){if(t&1){let e=gT();Qi(0,"sh-menu")(1,"button",21)(2,"sh-icon"),PC(3,"dots-three-vertical"),Hl()(),Ul(4,17),Qi(5,"button",15),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.addFreeTextSetting())}),Og(6,8),mg(7,"sh-icon"),Pg(),Hl(),Qi(8,"button",22),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.showTextArea.set(true))}),Qi(9,"sh-icon"),PC(10,"link"),Hl(),PC(11," Edit contents as text "),Hl(),Qi(12,"button",15),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.showOptionNames.set(!n.showOptionNames()))}),Og(13,9),mg(14,"sh-icon"),Pg(),Hl(),Wl(),Hl();}}function Ne(t,i){if(t&1&&(Qi(0,"sh-menu",16)(1,"button",13),Og(2,7),mg(3,"sh-icon"),Pg(),Hl(),Ul(4,17),cT(5,Ie,4,1,null,null,sT),Wl(),Hl(),oT(7,Ve,15,0,"sh-menu")),t&2){let e=nC();gg("searchable",true),DE(5),lT(e.nonSelectedOptionsGrouped()),DE(2),iT(e.hasFreeTextSettings()?7:-1);}}function be(t,i){if(t&1){let e=gT();Qi(0,"textarea",23),Fg("ngModelChange",function(n){Sd(e);let a=nC();return xd(a.updateSettingsFromText(n))}),Hl(),DD();}if(t&2){let e=nC();gg("ngModel",e.settingsAsText())("ngModelOptions",QC(2,he)),TD();}}function Ee(t,i){t&1&&(Qi(0,"div",24),PC(1,"Add a setting above to get started."),Hl());}function Me(t,i){t&1&&(Qi(0,"sh-icon",32),PC(1," warning-octagon "),Hl());}function Pe(t,i){if(t&1&&(Qi(0,"span",33),PC(1),Hl()),t&2){let e=nC(2).$implicit;DE(),Gl("--",e.FormView.name);}}function ve(t,i){if(t&1&&PC(0),t&2){let e=nC(2).$implicit;Gl(" ",e.FormView.shortDescription," ");}}function $e(t,i){if(t&1&&(Qi(0,"sh-icon",34),PC(1,"archive"),Hl()),t&2){let e=nC(2).$implicit;gg("shTooltip",e.FormView.deprecatedDescription);}}function Ae(t,i){if(t&1&&(Qi(0,"sh-icon",35),PC(1,"question"),Hl()),t&2){let e=nC(2).$implicit;gg("shTooltip",e.FormView.longDescription);}}function De(t,i){if(t&1&&(oT(0,Me,2,0,"sh-icon",32),Qi(1,"span"),oT(2,Pe,2,1,"span",33)(3,ve,1,1),Hl(),oT(4,$e,2,1,"sh-icon",34)(5,Ae,2,1,"sh-icon",35)),t&2){let e=nC().$implicit,o=$C(1),n=nC(2);iT(o?0:-1),DE(),Qg("deprecated",e.FormView.deprecatedDescription),DE(),iT(n.showOptionNames()?2:3),DE(2),iT(e.FormView.deprecatedDescription?4:e.FormView.longDescription?5:-1);}}function Re(t,i){t&1&&Ig(0);}function Ge(t,i){if(t&1){let e=gT();Qi(0,"div",26)(1,"label"),ig(2,Re,1,0,"ng-container",36),Hl(),Qi(3,"div")(4,"sh-form-field")(5,"input",37),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateFreeTextSettingName(a,n))}),Hl(),DD(),Qi(6,"sh-icon",38),PC(7,"rectangle-dashed"),Hl()()(),Qi(8,"div")(9,"sh-form-field")(10,"input",37),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Qi(11,"sh-icon",38),PC(12,"textbox"),Hl()()()();}if(t&2){let e=nC().$implicit,o=uC(3);DE(2),gg("ngTemplateOutlet",o),DE(3),gg("ngModel",e.Name),TD(),DE(5),gg("ngModel",e.Value()),TD();}}function ke(t,i){t&1&&Ig(0);}function Be(t,i){if(t&1){let e=gT();Qi(0,"app-file-tree",27)(1,"label",39),ig(2,ke,1,0,"ng-container",36),Hl(),Qi(3,"input",40),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);gg("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",true)("showHiddenNodes",true)("selectFiles",true)("hideShortcuts",false)("resolvePaths",true),DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("id",n)("ngModel",e.Value()),TD();}}function ze(t,i){if(t&1){let e=gT();Qi(0,"app-file-tree",28),mg(1,"label",39),Qi(2,"input",40),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl();}if(t&2){let e=nC().$implicit,o=$C(0);gg("startingPath",e.Value())("hideShortcuts",false)("resolvePaths",true),DE(),gg("for",o),DE(),gg("id",o)("ngModel",e.Value()),TD();}}function Ue(t,i){t&1&&Ig(0);}function Ke(t,i){t&1&&Ig(0);}function He(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"link"),Hl());}function Je(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"hard-drives"),Hl());}function Xe(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"jar"),Hl());}function je(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"envelope"),Hl());}function qe(t,i){t&1&&(Qi(0,"sh-icon",38),PC(1,"textbox"),Hl());}function Qe(t,i){if(t&1){let e=gT();Qi(0,"sh-form-field")(1,"label",39),ig(2,Ue,1,0,"ng-container",36)(3,Ke,1,0,"ng-container",41),Hl(),Qi(4,"input",42),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),oT(5,He,2,0,"sh-icon",38)(6,Je,2,0,"sh-icon",38)(7,Xe,2,0,"sh-icon",38)(8,je,2,0,"sh-icon",38)(9,qe,2,0,"sh-icon",38),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(10,V,ZC(8,I,e.FormView))),DE(),gg("type",e.FormView.type==="Email"?"email":"text")("id",n)("ngModel",e.Value()),TD(),DE(),iT(e.FormView.type==="Path"?5:e.FormView.type==="Hostname"?6:e.FormView.type==="Bucketname"?7:e.FormView.type==="Email"?8:9);}}function We(t,i){t&1&&Ig(0);}function Ye(t,i){t&1&&Ig(0);}function Ze(t,i){if(t&1){let e=gT();Qi(0,"sh-icon",45),Fg("click",function(){Sd(e);let n=nC(2).$implicit;return xd(n.showPassword=!n.showPassword)}),PC(1," eye "),Hl();}}function et(t,i){if(t&1){let e=gT();Qi(0,"sh-icon",45),Fg("click",function(){Sd(e);let n=nC(2).$implicit;return xd(n.showPassword=!n.showPassword)}),PC(1," eye-slash "),Hl();}}function tt(t,i){if(t&1){let e=gT();Qi(0,"sh-form-field")(1,"label",39),ig(2,We,1,0,"ng-container",36)(3,Ye,1,0,"ng-container",41),Hl(),Qi(4,"input",43),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Qi(5,"sh-icon",38),PC(6,"password"),Hl(),oT(7,Ze,2,0,"sh-icon",44)(8,et,2,0,"sh-icon",44),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(10,V,ZC(8,I,e.FormView))),DE(),gg("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),TD(),DE(3),iT(e.showPassword?7:8);}}function nt(t,i){t&1&&Ig(0);}function it(t,i){t&1&&Ig(0);}function ot(t,i){if(t&1&&PC(0),t&2){let e=i.$implicit;Gl(" ",e," ");}}function at(t,i){if(t&1){let e=gT();Qi(0,"sh-select",46)(1,"label",39),ig(2,nt,1,0,"ng-container",36)(3,it,1,0,"ng-container",41),Hl(),Qi(4,"input",40),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl(),ig(5,ot,1,1,"ng-template",null,3,sb);}if(t&2){let e=uC(6),o=nC().$implicit,n=uC(3),a=$C(0);nC(2);let c=uC(10);gg("options",o.FormView.options)("isClearable",false)("optionTemplate",e),DE(),gg("for",a),DE(),gg("ngTemplateOutlet",n),DE(),gg("ngTemplateOutlet",c)("ngTemplateOutletContext",ZC(11,V,ZC(9,I,o.FormView))),DE(),gg("id",a)("ngModel",o.Value()),TD();}}function rt(t,i){t&1&&Ig(0);}function lt(t,i){t&1&&Ig(0);}function _t(t,i){if(t&1){let e=gT();Qi(0,"app-size",47),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Qi(1,"label",39),ig(2,rt,1,0,"ng-container",36)(3,lt,1,0,"ng-container",41),Hl()(),DD();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);gg("inputType",e.Name)("ngModel",e.Value())("customId",n),TD(),DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(9,V,ZC(7,I,e.FormView)));}}function st(t,i){t&1&&Ig(0);}function pt(t,i){t&1&&Ig(0);}function ct(t,i){if(t&1){let e=gT();Qi(0,"sh-form-field")(1,"label",39),ig(2,st,1,0,"ng-container",36)(3,pt,1,0,"ng-container",41),Hl(),Qi(4,"input",48),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Qi(5,"sh-icon",38),PC(6,"numpad"),Hl()();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(8,V,ZC(6,I,e.FormView))),DE(),gg("id",n)("ngModel",e.Value()),TD();}}function mt(t,i){t&1&&Ig(0);}function dt(t,i){t&1&&Ig(0);}function ut(t,i){if(t&1){let e=gT();Qi(0,"sh-toggle",30)(1,"label",39),ig(2,mt,1,0,"ng-container",36)(3,dt,1,0,"ng-container",41),Hl(),Qi(4,"input",49),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(8,V,ZC(6,I,e.FormView))),DE(),gg("id",n)("ngModel",e.Value()),TD();}}function Ct(t,i){t&1&&Ig(0);}function gt(t,i){t&1&&Ig(0);}function ft(t,i){if(t&1&&PC(0),t&2){let e=i.$implicit;Gl(" ",e," ");}}function yt(t,i){if(t&1){let e=gT();Qi(0,"sh-select",50)(1,"label",39),ig(2,Ct,1,0,"ng-container",36)(3,gt,1,0,"ng-container",41),Hl(),Qi(4,"input",51),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Hl(),DD(),Hl(),ig(5,ft,1,1,"ng-template",null,4,sb);}if(t&2){let e=uC(6),o=nC().$implicit,n=uC(3),a=$C(0);nC(2);let c=uC(10);gg("options",o.FormView.options)("selectMultiple",true)("optionTemplate",e),DE(),gg("for",a),DE(),gg("ngTemplateOutlet",n),DE(),gg("ngTemplateOutlet",c)("ngTemplateOutletContext",ZC(10,V,ZC(8,I,o.FormView))),DE(),gg("ngModel",o.Value()),TD();}}function Tt(t,i){t&1&&Ig(0);}function xt(t,i){t&1&&Ig(0);}function St(t,i){if(t&1){let e=gT();Qi(0,"app-timespan",47),Fg("ngModelChange",function(n){Sd(e);let a=nC().$implicit,c=nC(2);return xd(c.updateSettingValue(a,n))}),Qi(1,"label",39),ig(2,Tt,1,0,"ng-container",36)(3,xt,1,0,"ng-container",41),Hl()(),DD();}if(t&2){let e=nC().$implicit,o=uC(3),n=$C(0);nC(2);let a=uC(10);gg("inputType",e.Name)("ngModel",e.Value())("customId",n),TD(),DE(),gg("for",n),DE(),gg("ngTemplateOutlet",o),DE(),gg("ngTemplateOutlet",a)("ngTemplateOutletContext",ZC(9,V,ZC(7,I,e.FormView)));}}function Ot(t,i){if(t&1){let e=gT();cm(0)(1),ig(2,De,6,5,"ng-template",null,2,sb),Qi(4,"div",25),oT(5,Ge,13,3,"div",26)(6,Be,4,11,"app-file-tree",27)(7,ze,3,6,"app-file-tree",28)(8,Qe,10,12,"sh-form-field")(9,tt,9,12,"sh-form-field")(10,at,7,13)(11,_t,4,11,"app-size",29)(12,ct,7,10,"sh-form-field")(13,ut,5,10,"sh-toggle",30)(14,yt,7,12)(15,St,4,11,"app-timespan",29),Qi(16,"button",31),Fg("click",function(){let n=Sd(e).$implicit,a=nC(2);return xd(a.removeSetting(n))}),Qi(17,"sh-icon"),PC(18,"x-bold"),Hl()()();}if(t&2){let e=i.$implicit,o=i.$index,n=nC(2);BC("destination-"+e.Name+o),DE(),BC(n.inAppOptions(e.Name)),DE(3),Qg("align-remove-start",e.FormView.type==="FolderTree"||e.FormView.type==="FileTree"||e.FormView.type==="Boolean"),DE(),iT(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"||e.FormView.type==="Email"||e.FormView.type==="Hostname"||e.FormView.type==="Bucketname"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1);}}function Ft(t,i){if(t&1&&(oT(0,Ee,2,0,"div",24),cT(1,Ot,19,5,null,null,sT)),t&2){let e=nC();iT(e.selectedSettings().length===0?0:-1),DE(),lT(e.selectedSettings());}}function ht(t,i){if(t&1&&(Qi(0,"sh-icon",52),PC(1,"x-circle"),Hl()),t&2){nC();let e=$C(0);gg("shTooltip",e?.message??"Invalid value");}}function wt(t,i){if(t&1&&(Qi(0,"sh-icon",34),PC(1,"warning"),Hl()),t&2){nC();let e=$C(0);gg("shTooltip",e?.message??"Invalid value");}}function Lt(t,i){if(t&1&&(cm(0),oT(1,ht,2,1,"sh-icon",52)(2,wt,2,1,"sh-icon",34)),t&2){nC();let e=$C(0),o=nC().$implicit,n=BC(o.formView.validate(e));DE(),iT(n?.type==="error"?1:n?.type==="warning"?2:-1);}}function It(t,i){if(t&1&&(cm(0),oT(1,Lt,3,2)),t&2){let e=nC().$implicit,n=(BC(e.Value())??"").toString().trim()==="";DE(),iT(!n&&e.formView.validate?1:-1);}}function Vt(t,i){if(t&1&&oT(0,It,2,2),t&2){let e=i.$implicit;iT(e.Value?0:-1);}}var Oe=class t{#e=T(m);options=m1.required();hiddenOptions=g1([]);hasFreeTextSettings=g1(false);applicationOptions=g1();showTextArea=Ue$1(false);showOptionNames=Ue$1(false);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=Nt(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let a=this.allOptions().find(L=>L.name===n.Name?.replace("--","")),c=n.Value??"";if(a&&i.includes(a.name))return null;if(a){if(a.type==="Boolean"&&(c=this.isTrue(c)),a.type==="Integer"&&(c=parseInt(c)||0),a.type==="Enumeration"&&a.options){let M=c?.trim().toLowerCase(),q=a.options.find(Fe=>(Fe??"").trim().toLocaleLowerCase()===M);q&&(c=q);}let L=Se.find(M=>M.name===a?.name);return L&&(a=l(l({},a),L)),m$1(l({},n),{Value:Ue$1(c),FormView:a})}else if(this.hasFreeTextSettings())return m$1(l({},n),{Value:Ue$1(c),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=Nt(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>m$1(l({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=Nt(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
2
- `));updateSettingsFromText(i){if(typeof i!="string")return;let e=Ge$1(i);this.options.update(()=>e);}isTrue(i){if(typeof i=="boolean")return i;if(typeof i=="string"){let e=i.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return false}inAppOptions(i){let e=this.applicationOptions()?.findIndex(o=>o.Name?.replace("--","")===i);return e===void 0?false:e>-1}addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(i=>[...i,{Filter:null,Name:"",Value:""}]);}addSetting(i){this.options.update(e=>{let o=i.defaultValue??"";return i.type==="Boolean"&&(o=this.isTrue(o)),i.type==="Integer"&&(o=parseInt(o)||0),[...e,{Name:i.name,Value:o}]});}updateSettingValue(i,e){this.options.update(o=>{let n=[...o],a=n.findIndex(c=>c.Name===i.Name);if(i.FormView.type==="Boolean")return n[a].Value=this.isTrue(e)?"True":"False",n;if(i.FormView.type==="Integer")return n[a].Value=e.toString(),n;if(i.FormView.type==="Enumeration"&&i.FormView.options){let c=e?.trim().toLowerCase()??"",L=i.FormView.options.find(M=>(M??"").trim().toLocaleLowerCase()===c);if(L)return n[a].Value=L,n}return n[a].Value=e,n});}updateFreeTextSettingName(i,e){this.options.update(o=>{let n=[...o],a=n.findIndex(c=>c.Name===i.Name);return n[a].Name=e,n});}removeSetting(i){this.options.update(e=>e.filter(o=>o.Name!==i.Name));}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"],applicationOptions:[1,"applicationOptions"]},outputs:{options:"optionsChange"},decls:11,vars:4,consts:()=>{let i;i=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:pen${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: New custom option `;let a;a=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Toggle option names `;let c;return c=$localize`By adding this option it will override the matching global option`,[["validateTemplate",""],["option",""],["defaultLabel",""],["enumOptionTemplate",""],["optionTemplate",""],i,e,o,n,a,[3,"disableToggle","isActive"],["title",""],[1,"actions"],["shButton","","type","button",1,"outlined","small"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["menu",""],["type","button",3,"deprecated"],["type","button",3,"click"],[1,"option-col"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"placeholder"],[1,"field-row"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles","hideShortcuts","resolvePaths"],[3,"startingPath","hideShortcuts","resolvePaths"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["shButton","","type","button",1,"outlined","small","remove-btn",3,"click"],["shTooltip",c,1,"error"],[1,"optionname"],[1,"warn",3,"shTooltip"],[1,"primary",3,"shTooltip"],[4,"ngTemplateOutlet"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],["type","text",3,"ngModelChange","id","ngModel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngModelChange","type","id","ngModel"],["autocomplete","new-password",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"],[1,"error",3,"shTooltip"]]},template:function(e,o){e&1&&(Qi(0,"sh-toggle-card",10),Ul(1,11)(2),XT(3,5),Wl(),Qi(4,"div",12),oT(5,we,3,0,"button",13)(6,Ne,8,2),Hl(),Wl(),oT(7,be,1,3,"textarea",14)(8,Ft,3,1),Hl(),ig(9,Vt,1,1,"ng-template",null,0,sb)),e&2&&(gg("disableToggle",true)("isActive",true),DE(5),iT(o.showTextArea()?5:6),DE(2),iT(o.showTextArea()?7:8));},dependencies:[Bn,Ze$1,en,yt$1,Rn,Jt,Se$1,mt$1,_t$1,ei,I$1,Fe,v,ve$1,at$1,N,Nt$1,J],styles:["[_nghost-%COMP%]{display:block}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}sh-toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-9);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;position:relative;z-index:1;max-width:32.5rem;width:100%}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.field-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{max-width:28rem;width:100%}.field-row.align-remove-start[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-start}.option-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.option-col[_ngcontent-%COMP%] .fill[_ngcontent-%COMP%]{color:var(--base-12)}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}.deprecated[_ngcontent-%COMP%]{text-decoration:line-through}.optionname[_ngcontent-%COMP%]{font-family:monospace}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"]})};export{Oe as OptionsListComponent};
package/chunk-BoCnrrB4.js DELETED
@@ -1 +0,0 @@
1
- import {d as dw,Z as lr,j as mg}from'./main-PXGZLKMN.js';var t=class o{static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-welcome"]],decls:1,vars:0,template:function(e,m){e&1&&mg(0,"router-outlet");},dependencies:[lr],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:100vh}"]})};export{t as default};
package/chunk-BtzP4vdU.js DELETED
@@ -1,2 +0,0 @@
1
- import {G}from'./chunk-CI78bAye.js';import {Q as Qt,j as jt,a as at,e as en,w as we}from'./chunk-CUxq_s_t.js';import'./chunk-DaIpTiYw.js';import'./chunk-Bf1diO1u.js';import'./chunk-B6vxBiK4.js';import'./chunk-DV2SIgNN.js';import'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import'./chunk-D1wHRltX.js';import {C,G as G$1}from'./chunk-CQ8rm_d9.js';import'./chunk-CBdr-6_u.js';import {v as ve}from'./chunk-BZqhgAZ-.js';import'./chunk-0sb5_LpD.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,e as ee,aw as W,a6 as be,bE as Te,B as y1,U as Ue,N as Nt,at as h,d as dw,v,f as N,a0 as de,u as ue,k as gT,ak as cm,Q as Qi,F as Fg,X as XT,H as Hl,o as oT,s as sm,S as Sd,l as HC,x as xd,O as Og,j as mg,P as Pg,al as BC,D as DE,i as iT,w as im,z as gg,t as tC,aD as zC,$ as $g,K as lC,n as nC,q as PC,aP as Ul,aQ as Wl,ao as $C,p as DD,a3 as QC,y as TD}from'./main-PXGZLKMN.js';import'./chunk-DJbAxHpK.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import {F as Fe}from'./chunk-C9EdrQe6.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-Drc5kcUX.js';import'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';var Oe=["formRef"],Re=["testUrl"],Ne=()=>({maxWidth:"700px",width:"100%"});function De(o,i){if(o&1){let e=gT();Qi(0,"button",24),Fg("click",function(){Sd(e);let t=nC();return xd(t.openTargetUrlDialog())}),Og(1,5),mg(2,"sh-icon"),Pg(),Hl();}}function Ie(o,i){if(o&1){let e=gT();Qi(0,"button",24),Fg("click",function(){Sd(e);let t=nC(2);return xd(t.copyTargetUrl())}),Og(1,7),mg(2,"sh-icon"),Pg(),Hl();}}function fe(o,i){if(o&1){let e=gT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),PC(3,"dots-three-vertical"),Hl()(),Ul(4,25),Qi(5,"button",24),Fg("click",function(){Sd(e);let t=nC();return xd(t.openTargetUrlDialog())}),Og(6,6),mg(7,"sh-icon"),Pg(),Hl(),oT(8,Ie,3,0,"button",15),Wl(),Hl();}if(o&2){nC();let e=$C(0);DE(8),iT(e?8:-1);}}function he(o,i){if(o&1){let e=gT();Qi(0,"app-destination-list-item",17)(1,"button",20),Fg("click",function(){Sd(e);let t=nC();return xd(t.removeDestination())}),XT(2,8),Hl()();}if(o&2){nC();let e=$C(12);gg("destination",e);}}function ye(o,i){if(o&1){let e=gT();Qi(0,"app-destination-list",26),Fg("setDestination",function(t){Sd(e);let s=nC();return xd(s.setDestination(t))}),Hl();}}function Me(o,i){if(o&1){let e=gT();Qi(0,"app-single-destination",27),sm("targetUrlChange",function(t){Sd(e);let s=nC();return HC(s.targetUrlModel,t)||(s.targetUrlModel=t),xd(t)}),Hl();}if(o&2){let e=nC();im("targetUrl",e.targetUrlModel);}}function Pe(o,i){o&1&&(Og(0,4,1),mg(1,"sh-icon",22),Pg());}function Ae(o,i){o&1&&(Og(0,4,2),mg(1,"sh-icon"),Pg());}function Le(o,i){if(o&1){let e=gT();Qi(0,"sh-dialog",28),sm("isOpenChange",function(t){Sd(e);let s=nC();return HC(s.targetUrlDialogOpen,t)||(s.targetUrlDialogOpen=t),xd(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),XT(4,9),Hl(),Qi(5,"sh-alert",31),XT(6,10),Hl()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),sm("ngModelChange",function(t){Sd(e);let s=nC();return HC(s.targetUrlCtrl,t)||(s.targetUrlCtrl=t),xd(t)}),Hl(),DD(),Hl()(),Qi(10,"footer",34)(11,"button",20),Fg("click",function(){Sd(e);let t=nC();return xd(t.closeTargetUrlDialog(false))}),PC(12,"Cancel"),Hl(),Qi(13,"button",35),Fg("click",function(){Sd(e);let t=nC();return xd(t.closeTargetUrlDialog(true))}),Og(14,11),mg(15,"sh-icon"),Pg(),Hl()()();}if(o&2){let e=nC();im("isOpen",e.targetUrlDialogOpen),gg("options",QC(3,Ne)),DE(9),im("ngModel",e.targetUrlCtrl),TD();}}var x=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(Te);#e=T(G);formRef=y1.required("formRef");testUrlComponent=y1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ue(null);targetUrlInitial=Ue(null);targetUrlDialogOpen=Ue(false);toggleNewDestination=Ue(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?C(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,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=dw({type:o,selectors:[["app-restore-destination"]],viewQuery:function(e,n){e&1&&$g(n.formRef,Oe,5)(n.testUrlComponent,Re,5),e&2&&lC(2);},features:[zC([we])],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=tC(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=gT();cm(0),Qi(1,"form",12,0),Fg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),XT(6,2),Hl(),Qi(7,"div",14),oT(8,De,3,0,"button",15)(9,fe,9,1,"sh-menu"),Hl()(),Qi(10,"app-test-url",16,1),sm("targetUrlChange",function(g){return Sd(t),HC(n.targetUrlModel,g)||(n.targetUrlModel=g),xd(g)})("testSignalChange",function(g){return Sd(t),HC(n.testSignal,g)||(n.testSignal=g),xd(g)}),Hl(),cm(12),oT(13,he,3,1,"app-destination-list-item",17),Hl(),oT(14,ye,1,0,"app-destination-list"),oT(15,Me,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Fg("click",function(){return n.goBack()}),Og(18,3),mg(19,"sh-icon"),Pg(),Hl(),Qi(20,"button",21),Og(21,4),oT(22,Pe,2,0,"sh-icon",22)(23,Ae,2,0,"sh-icon"),Pg(),Hl()()(),oT(24,Le,16,4,"sh-dialog",23);}if(e&2){let t=BC(!!n.targetUrlModel());DE(8),iT(t?9:8),DE(2),im("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),gg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),DE(2);let s=BC(n.selectedDestinationTypeOption());DE(),iT(s?13:-1),DE(),iT(t?-1:14),DE(),iT(t?15:-1),DE(5),gg("disabled",n.testSignal()=="testing"||!t),DE(2),iT(n.testSignal()=="testing"?22:23),DE(2),iT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[Qt,jt,at,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe,ve,N,de,ue,en],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-C11i_gv7.js DELETED
@@ -1 +0,0 @@
1
- import {T,M,d as dw,v as v$1,_ as _t,Q as Qi,o as oT,H as Hl,D as DE,i as iT,L as oC,R as Bl,V as yg,q as PC,W as $l,Y as iC,X as XT}from'./main-PXGZLKMN.js';var S=["*",[["","footer",""]]],L=["*","[footer]"],s=class t{static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-custom-card"]],ngContentSelectors:L,decls:11,vars:0,consts:[[1,"card"],["src","/assets/noise/auth-noise.svg",1,"noise"],[1,"header-title"],["src","/assets/duplicati/duplicati.svg","alt",""],[1,"bg"]],template:function(e,o){e&1&&(oC(S),Bl(0,"div",0),yg(1,"img",1),Bl(2,"header")(3,"div",2),yg(4,"img",3),PC(5," Duplicati "),$l()(),Bl(6,"main"),iC(7),Bl(8,"footer"),iC(9,1),$l()()(),yg(10,"div",4));},styles:['[_nghost-%COMP%]{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center;background-color:var(--base-2)}body.dark [_nghost-%COMP%] .card[_ngcontent-%COMP%]:before{background:radial-gradient(rgba(var(--primary-rgb-900),1),#0000 60%)}.card[_ngcontent-%COMP%]{max-width:30rem;width:100%;position:relative;z-index:100;background-color:var(--base-1);border-radius:var(--shape-5);box-shadow:var(--box-shadow-40);border:1px solid var(--base-3);overflow:hidden}.card[_ngcontent-%COMP%]:before{content:"";position:absolute;height:30rem;transform:translateY(-17.8125rem);left:0;right:0;z-index:-2;background:radial-gradient(rgb(from var(--primary-1) r g b/1),#0000 60%)}.card[_ngcontent-%COMP%] img.noise[_ngcontent-%COMP%]{position:absolute;height:30rem;width:100%;transform:translateY(-17.8125rem);left:0;right:0;z-index:-1;-webkit-mask-image:radial-gradient(#000,#0000 60%);mask-image:radial-gradient(#000,#0000 60%)}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 2rem 0;gap:.75rem;position:relative;z-index:10}.header-title[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;gap:.625rem}.header-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:1.75rem;filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}main[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:2rem;gap:2.5rem;position:relative;z-index:10}main[_ngcontent-%COMP%] footer[_ngcontent-%COMP%]{font:var(--paragraph-40);color:var(--base-9);text-align:center;text-wrap:balance}.bg[_ngcontent-%COMP%]{position:fixed;inset:0;width:100vw;height:100vh;background-image:url(/assets/backgrounds/base-bg.svg);background-size:cover;background-position:center;background-repeat:no-repeat}body.dark[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%]{opacity:1}footer[_ngcontent-%COMP%]:empty{display:none}']})};function v(t,n){t&1&&(Qi(0,"h3"),XT(1,0),Hl());}function N(t,n){t&1&&(Qi(0,"h3"),XT(1,1),Hl(),Qi(2,"button",3),XT(3,2),Hl());}var p=class t{#e=T(M);isLoggingOut=this.#e.isLoggingOut;ngOnInit(){this.#e.logout();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-logout"]],decls:3,vars:1,consts:()=>{let n;n=$localize`Logging out...`;let e;e=$localize`You have successfully logged out your being redirected to login page.`;let o;return o=$localize`Go to login page`,[n,e,o,["shButton","","routerLink","/",1,"raised","primary"]]},template:function(e,o){e&1&&(Qi(0,"app-custom-card"),oT(1,v,2,0,"h3")(2,N,4,0),Hl()),e&2&&(DE(),iT(o.isLoggingOut()?1:2));},dependencies:[s,v$1,_t],styles:["[_nghost-%COMP%]{display:block}"]})};export{p as default};
package/chunk-C1t4wbdG.js DELETED
@@ -1 +0,0 @@
1
- import {d}from'./chunk-JA7rUsYF.js';import {w}from'./chunk-dScOwyAU.js';import {w as we}from'./chunk-CUxq_s_t.js';import'./chunk-DaIpTiYw.js';import'./chunk-Bf1diO1u.js';import'./chunk-B6vxBiK4.js';import'./chunk-DV2SIgNN.js';import'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import'./chunk-D1wHRltX.js';import'./chunk-CQ8rm_d9.js';import'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-0sb5_LpD.js';import'./chunk-B9zNFJSv.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {d as dw,Z as lr,_ as _t,a8 as To,j as mg,Q as Qi,X as XT,H as Hl,D as DE,z as gg,a3 as QC,aD as zC}from'./main-PXGZLKMN.js';import'./chunk-DJbAxHpK.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import'./chunk-C9EdrQe6.js';import'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';var S=()=>["/backup/import-destination/destination"],M=()=>["/backup/import-destination/encryption"],g=()=>["/backup/import-destination/select-config"],p=class T{static \u0275fac=function(e){return new(e||T)};static \u0275cmp=dw({type:T,selectors:[["app-import-destination"]],features:[zC([d,we])],decls:10,vars:6,consts:()=>{let i;i=$localize` Destination `;let e;e=$localize` Encryption `;let s;return s=$localize` Select configurations `,[i,e,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,s){e&1&&(mg(0,"app-status-bar"),Qi(1,"sh-stepper",3)(2,"div",4),XT(3,0),Hl(),Qi(4,"div",4),XT(5,1),Hl(),Qi(6,"div",5),XT(7,2),Hl()(),Qi(8,"section"),mg(9,"router-outlet"),Hl()),e&2&&(DE(2),gg("routerLink",QC(3,S)),DE(2),gg("routerLink",QC(4,M)),DE(2),gg("routerLink",QC(5,g)));},dependencies:[w,ee,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{p as default};
package/chunk-CByrJpDb.js DELETED
@@ -1 +0,0 @@
1
- import {v}from'./chunk-BcpsSgKo.js';import {v as ve}from'./chunk-BZqhgAZ-.js';import {x}from'./chunk-0sb5_LpD.js';import'./chunk-C9EdrQe6.js';import {T,e as ee,U as Ue,b6 as k,d as dw,v as v$1,f as N,Z as lr,a8 as To,_ as _t,Q as Qi,O as Og,j as mg,P as Pg,H as Hl,o as oT,D as DE,i as iT,k as gT,X as XT,aP as Ul,F as Fg,S as Sd,n as nC,x as xd,aQ as Wl,z as gg,au as Lg,av as eC}from'./main-PXGZLKMN.js';function W(u,S){if(u&1){let n=gT();Qi(0,"sh-menu",16)(1,"button",17),XT(2,2),Hl(),Ul(3,18),Qi(4,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Disabled"))}),Og(5,3),mg(6,"sh-icon"),Pg(),Hl(),Qi(7,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Verbose"))}),Og(8,4),mg(9,"sh-icon"),Pg(),Hl(),Qi(10,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("ExplicitOnly"))}),Og(11,5),mg(12,"sh-icon"),Pg(),Hl(),Qi(13,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Profiling"))}),Og(14,6),mg(15,"sh-icon"),Pg(),Hl(),Qi(16,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Retry"))}),Og(17,7),mg(18,"sh-icon"),Pg(),Hl(),Qi(19,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Information"))}),Og(20,8),mg(21,"sh-icon"),Pg(),Hl(),Qi(22,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("DryRun"))}),Og(23,9),mg(24,"sh-icon"),Pg(),Hl(),Qi(25,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Warning"))}),Og(26,10),mg(27,"sh-icon"),Pg(),Hl(),Qi(28,"button",19),Fg("click",function(){Sd(n);let e=nC();return xd(e.updateLogLevel("Error"))}),Og(29,11),mg(30,"sh-icon"),Pg(),Hl(),Wl(),Hl();}if(u&2){let n=nC();gg("openIndicator",true),DE(2),Lg(n.logLevelByLabel()),eC(2);}}var O=class u{#n=T(ee);#e=T(v);logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;currentUrl=Ue(this.#n.url);constructor(){this.#n.events.subscribe(S=>{S instanceof k&&this.currentUrl.set(S.urlAfterRedirects);});}updateLogLevel(S){this.#e.isPolling.set(true),this.#e.updateLogLevel(S);}static \u0275fac=function(n){return new(n||u)};static \u0275cmp=dw({type:u,selectors:[["app-logs"]],decls:10,vars:1,consts:()=>{let S;S=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:archive${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Stored `;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:play${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Live `;let o;o=$localize`Log level: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:bell-simple-slash${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Disabled `;let E;E=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:megaphone-simple${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Verbose `;let L;L=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Explicit only `;let N;N=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:speedometer${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Profiling `;let I;I=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-arc-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Retry `;let d;d=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Information `;let h;h=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:person-simple-run${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Dry run `;let G;G=$localize`${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON: Warning `;let m;return m=$localize`${"\uFFFD#30\uFFFD"}:START_TAG_SH_ICON:warning-octagon${"\uFFFD/#30\uFFFD"}:CLOSE_TAG_SH_ICON: Error `,[S,n,o,e,E,L,N,I,d,h,G,m,[1,"filters"],[1,"type-b"],["type","button","routerLink","/about/logs/stored","routerLinkActive","active"],["type","button","routerLink","/about/logs/live","routerLinkActive","active"],[3,"openIndicator"],["shButton","","type","button"],["menu",""],["shButton","","type","button",1,"small",3,"click"]]},template:function(n,o){n&1&&(Qi(0,"div",12)(1,"sh-button-group",13)(2,"button",14),Og(3,0),mg(4,"sh-icon"),Pg(),Hl(),Qi(5,"button",15),Og(6,1),mg(7,"sh-icon"),Pg(),Hl()(),oT(8,W,31,2,"sh-menu",16),Hl(),mg(9,"router-outlet")),n&2&&(DE(8),iT(o.currentUrl().startsWith("/about/logs/live")?8:-1));},dependencies:[v$1,x,N,ve,lr,To,_t],styles:["[_nghost-%COMP%]{display:block}.filters[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;padding:0 2rem;margin-bottom:1.25rem}"]})};export{O as default};
package/chunk-CI78bAye.js DELETED
@@ -1,2 +0,0 @@
1
- import {g as gt$1,b as Qe}from'./chunk-CUxq_s_t.js';import'./chunk-DaIpTiYw.js';import {OptionsListComponent as Oe$1}from'./chunk-Bf1diO1u.js';import {S as Se}from'./chunk-B6vxBiK4.js';import {I}from'./chunk-DV2SIgNN.js';import {J}from'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import {O}from'./chunk-D1wHRltX.js';import'./chunk-CQ8rm_d9.js';import {N as Nt$2}from'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import'./chunk-0sb5_LpD.js';import'./chunk-COgNe44h.js';import'./chunk-BAZ5npJw.js';import {T,ab as C,e as ee,aw as W,U as Ue,N as Nt$1,C as Bu,d as dw,f as N,v,Q as Qi,F as Fg,o as oT,aP as Ul,X as XT,aQ as Wl,s as sm,H as Hl,O as Og,j as mg,P as Pg,z as gg,D as DE,i as iT,w as im,bg as Q,m,aJ as ci,G as Ga,cj as Uu,aE as Fo,bI as fe$1,aH as m$1,au as Lg,av as eC,aD as zC,a6 as be,at as h,I as Qg,a$ as Vs,ck as iy,c3 as Bs,ay as $u,bJ as vy,cl as _y,aZ as ee$1,l as HC,p as DD,y as TD,k as gT,S as Sd,n as nC,x as xd,bf as ig,a3 as QC,q as PC,aM as tb,aB as rm,aN as ob,aa as Gl,aR as rb}from'./main-PXGZLKMN.js';import'./chunk-DJbAxHpK.js';import'./chunk-MvQwR7nW.js';import'./chunk-SycscfJp.js';import {d}from'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import {F as Fe$1}from'./chunk-C9EdrQe6.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn,B as Bn,J as Jt,y as yt$1,r as rn}from'./chunk-Drc5kcUX.js';import'./chunk-B-fklW6A.js';import {L}from'./chunk-D28lTX0k.js';function ut(i,t){i&1&&(Qi(0,"p"),XT(1,3),Hl());}function dt(i,t){i&1&&(Qi(0,"sh-form-field")(1,"label",11),XT(2,4),Hl(),mg(3,"input",12),DD(),Hl()),i&2&&(DE(3),TD());}var it=new jn,at=()=>it.group({passphrase:it.control("")}),Fe=class i{#e=T(C);#t=T(G);#i=T(ee);#n=T(W);encryptionForm=this.#t.encryptionForm;creatingTemporaryBackup=Ue(false);settings=Ue([]);hasEncryptedBackup=Nt$1(()=>{let t=this.#t.destinationTestSignal();return t==="testing"||typeof t=="string"?true:t?.containsEncryptedBackupFiles??true});showEncryptionField=Ue(false);next(){let t=this.#t.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(true);let e=this.encryptionForm.value?.passphrase??null,o=[];e?o.push({Name:"--passphrase",Value:e}):o.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(n=>{let r=n.Name?.trim();r&&r!=="--"&&(r.startsWith("--")||(r=`--${r}`),o.push({Name:r,Value:n.Value??""}));}),this.#e.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:true}).pipe(Bu(()=>this.creatingTemporaryBackup.set(false))).subscribe({next:n=>{let r=n.ID;this.#i.navigate([`/restore-draft/${r}`]);},error:n=>{console.error(n);}});}back(){this.#t.isFileRestore()?this.#i.navigate(["destination"],{relativeTo:this.#n.parent}):this.#t.exit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-restore-encryption"]],decls:14,vars:5,consts:()=>{let t;t=$localize`Advanced options`;let e;e=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`The backup does not contain encrypted files.`;let r;r=$localize`Enter backup passphrase if defined.`;let _;return _=$localize`Password`,[t,e,o,n,_,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",r,"formControlName","passphrase"]]},template:function(e,o){e&1&&(Qi(0,"form",5),Fg("submit",function(){return o.next()}),oT(1,ut,2,0,"p"),oT(2,dt,4,0,"sh-form-field"),Qi(3,"sh-toggle-card"),Ul(4,6),XT(5,0),Wl(),Qi(6,"app-options-list",7),sm("optionsChange",function(r){return HC(o.settings,r)||(o.settings=r),r}),Hl()(),Qi(7,"div",8)(8,"button",9),Fg("click",function(){return o.back()}),Og(9,1),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",10),Og(12,2),mg(13,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.encryptionForm),DE(),iT(o.hasEncryptedBackup()?-1:1),DE(),iT(o.hasEncryptedBackup()||o.showEncryptionField()?2:-1),DE(4),im("options",o.settings),gg("hasFreeTextSettings",true));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,Fe$1,N,v,I,Oe$1],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};var lt=()=>({standalone:true});function pt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function mt(i,t){if(i&1&&(PC(0),tb(1,"bytes")),i&2){let e=nC().$implicit;Gl(" (",rb(1,1,e.FileSizes),") ");}}function St(i,t){i&1&&(Qi(0,"span",20),XT(1,4),Hl());}function Et(i,t){if(i&1&&(Qi(0,"div",19),PC(1),tb(2,"date"),oT(3,mt,2,3),oT(4,St,2,0,"span",20),Hl()),i&2){let e=t.$implicit;DE(),rm(" ",e.Version,": ",ob(2,4,e.Time,"medium")," "),DE(2),iT(e.FileSizes?3:-1),DE(),iT(e.IsFullBackup===false?4:-1);}}function Tt(i,t){i&1&&mg(0,"sh-progress-bar",13);}function gt(i,t){i&1&&(Qi(0,"sh-icon",28),PC(1,"spinner"),Hl());}function Ft(i,t){i&1&&(Qi(0,"sh-icon"),PC(1,"magnifying-glass"),Hl());}function Ct(i,t){if(i&1){let e=gT();Qi(0,"button",31),Fg("click",function(){Sd(e);let n=nC(4);return xd(n.clearSearch())}),Qi(1,"sh-icon"),PC(2,"x-circle"),Hl(),Qi(3,"span"),XT(4,8),Hl()();}}function Ot(i,t){i&1&&(Qi(0,"span"),XT(1,9),Hl());}function Nt(i,t){if(i&1&&(Qi(0,"span"),XT(1,10),Hl()),i&2){let e=nC(5);DE(),Lg(e.searchResults().length),eC(1);}}function ft(i,t){if(i&1&&(Qi(0,"div",30),oT(1,Ot,2,0,"span")(2,Nt,2,1,"span"),Hl()),i&2){let e=nC(4);DE(),iT(e.searchResults().length===0?1:2);}}function ht(i,t){if(i&1){let e=gT();Qi(0,"div",24)(1,"sh-form-field")(2,"label",25),XT(3,6),Hl(),Qi(4,"input",26),sm("ngModelChange",function(n){Sd(e);let r=nC(3);return HC(r.searchQuery,n)||(r.searchQuery=n),xd(n)}),Fg("keydown.enter",function(n){Sd(e);let r=nC(3);return n.preventDefault(),xd(r.performSearch())}),Hl(),DD(),Hl(),Qi(5,"button",27),Fg("click",function(){Sd(e);let n=nC(3);return xd(n.performSearch())}),oT(6,gt,2,0,"sh-icon",28)(7,Ft,2,0,"sh-icon"),Qi(8,"span"),XT(9,7),Hl()(),oT(10,Ct,5,0,"button",29),Hl(),oT(11,ft,3,1,"div",30);}if(i&2){let e=nC(3);DE(4),im("ngModel",e.searchQuery),gg("ngModelOptions",QC(6,lt)),TD(),DE(),gg("disabled",e.isSearching()||!e.searchQuery().trim()),DE(),iT(e.isSearching()?6:7),DE(4),iT(e.isSearchMode()?10:-1),DE(),iT(e.isSearchMode()&&!e.isSearching()?11:-1);}}function Rt(i,t){if(i&1){let e=gT();oT(0,ht,12,7),Qi(1,"app-file-tree",21),Fg("hasExtendedData",function(n){Sd(e);let r=nC(2);return xd(r.extendedDataType.set(n))}),Qi(2,"label",22),XT(3,5),Hl(),mg(4,"input",23),DD(),Hl();}if(i&2){let e=nC(2);iT(e.canSearch()?0:-1),DE(),gg("rootPaths",e.rootPaths())("initialNodes",e.initialNodes())("backupSettings",e.backupSettings())("multiSelect",true)("showFiles",true)("loadExtendedData",true)("searchMode",e.isSearchMode())("searchResults",e.searchResults()),DE(3),TD();}}function Pt(i,t){if(i&1){let e=gT();Qi(0,"sh-select",17),Fg("cleared",function(){Sd(e);let n=nC();return xd(n.abortLoading())}),Qi(1,"input",18),sm("ngModelChange",function(n){Sd(e);let r=nC();return HC(r.selectOption,n)||(r.selectOption=n),xd(n)}),Hl(),DD(),ig(2,Et,5,7,"ng-template"),Hl(),oT(3,Tt,1,0,"sh-progress-bar",13),oT(4,Rt,5,9);}if(i&2){let e=nC();gg("options",e.versionOptions())("isClearable",false),DE(),im("ngModel",e.selectOption),gg("ngModelOptions",QC(6,lt)),TD(),DE(2),iT(e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?3:-1),DE(),iT(e.showFileTree()?4:-1);}}var Oe=new jn,_t=()=>Oe.group({filesToRestore:Oe.control(""),passphrase:Oe.control(null)}),Ne=class i{#e=T(C);#t=T(G);#i=T(Q);#n=T(m);#o=T(ee);#r=T(W);#a=T(ci);#l=null;#_=null;#s=Ue([]);selectFilesForm=this.#t.selectFilesForm;selectFilesFormSignal=this.#t.selectFilesFormSignal;selectOption=this.#t.selectOption;backupId=this.#t.backupId;versionOptionsLoading=this.#t.versionOptionsLoading;versionOptions=this.#t.versionOptions;isFileRestore=this.#t.isFileRestore;extendedDataType=this.#t.extendedDataType;needsDatabaseRepair=Nt$1(()=>this.#t.backup()?.Backup?.IsTemporary??true);showFileTree=Ue(false);backupSettings=Ue(null);rootPaths=Ue([]);initialNodes=Ue([]);loadingRootPath=Ue(false);isRepairing=Nt$1(()=>this.#s().length>0);loadedVersions=Ue({});canSearch=Nt$1(()=>this.#n.hasV2ListOperations());searchQuery=Ue("");isSearching=Ue(false);searchResults=Ue([]);hasSearched=Ue(false);isSearchMode=Nt$1(()=>this.searchQuery().length>0&&this.hasSearched());loadingEffect=Ga(()=>{if(this.versionOptionsLoading())return;let e=this.versionOptions();if(e&&e?.length>0){let o=e[0].Version;this.selectOption.set(o.toString());}});backupSettingsEffect=Ga(()=>{let t=this.backupId(),e=this.selectOption(),o=this.isRepairing(),n=this.loadedVersions();if(!e||!t)return;let _=this.versionOptions()?.find(k=>k.Version===parseInt(e))?.Time??null;if(!_)return;let u=`${t}+${_}`,I=n[u];if(this.needsDatabaseRepair()&&(!I||o))return;let D={id:t+"",time:_};this.backupSettings.set(D),this.getRootPath(D);});repairEffect=Ga(()=>{if(!this.needsDatabaseRepair())return;let t=this.selectOption(),e=this.versionOptions();if(t){let o=e.find(_=>_.Version===parseInt(t));if(o===void 0)return;let n=this.backupId(),r=`${n}+${o.Time}`;if(this.#_===r||(this.#_=r,this.#s().includes(r)))return;this.#s.update(_=>[..._,r]),this.#e.postApiV1BackupByIdRepairupdate({id:n,requestBody:{only_paths:true,time:o.Time}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.#_=null;})).subscribe(_=>{let u=_.ID;this.#i.waitForTaskToComplete(u).pipe(Fo(1)).subscribe(()=>{this.#s.update(I=>I.filter(D=>D!==r)),this.loadedVersions.update(I=>(I[r]=true,I));});});}});getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:true,folderContents:false},o=t.id+"";this.isRepairing()||this.#l===o||(this.#l=o,this.loadingRootPath.set(true),this.showFileTree.set(false),this.#n.hasV2ListOperations()?this.#e.postApiV2BackupListFolder({requestBody:{BackupId:t.id,Time:t.time,Paths:null,PageSize:0,Page:0,ReturnExtended:true}}).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false),this.#l=null;})).subscribe({next:n=>{let r=(n.Data??[]).find(u=>u.Metadata&&u.Metadata.ExtType&&u.Metadata.ExtType.length>0);r&&this.extendedDataType.set(r.Metadata.ExtType);let _=(n.Data??[]).map(u=>u.Path??"");_.length>0?(this.initialNodes.set([]),this.rootPaths.set(_)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}):this.#e.getApiV1BackupByIdFiles(e).pipe(Uu(this.abortLoading$),Bu(()=>{this.showFileTree.set(true),this.loadingRootPath.set(false);})).subscribe({next:n=>{let r=n.Files.map(_=>_.Path??"");r.length>0?(this.initialNodes.set([]),this.rootPaths.set(r)):(this.initialNodes.set([]),this.rootPaths.set(["/"]));}}));}abortLoading$=new fe$1;abortLoading(){this.showFileTree.set(false),this.loadingRootPath.set(false),this.abortLoading$.next(true);}displayFn(){let t=this.versionOptions();return e=>{if(!e)return "";let o=t?.find(n=>typeof n.Version=="number"&&n.Version.toString()===e);return o?`${o.Version}: ${this.#a.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#r.parent});}back(){this.#t.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#r.parent}):this.#t.exit();}performSearch(){let t=this.searchQuery().trim(),e=this.backupSettings(),o=(this.#t.extendedDataType()??"").length>0;if(!t||!e)return;let r=this.versionOptions()?.find(_=>_.Version===parseInt(this.selectOption()??""))?.Version;r!=null&&(this.isSearching.set(true),this.searchResults.set([]),this.hasSearched.set(true),this.#e.postApiV2BackupSearch({requestBody:{BackupId:e.id,Time:null,Version:[r],Filters:[t],Paths:null,PageSize:1e3,Page:0,ReturnExtended:o,SearchMetadata:o}}).pipe(Uu(this.abortLoading$),Bu(()=>this.isSearching.set(false))).subscribe({next:_=>{this.searchResults.set(_.Data??[]);},error:()=>{this.searchResults.set([]);}}));}clearSearch(){this.searchQuery.set(""),this.searchResults.set([]),this.hasSearched.set(false);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-select-files"]],features:[zC([ci])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Select an option...`;let r;r=$localize`(partial)`;let _;_=$localize`Path`;let u;u=$localize`Enter search term...`;let I;I=$localize`Search files`;let D;D=$localize`Search`;let k;k=$localize`Clear`;let oe;oe=$localize`0 results found`;let ne;return ne=$localize`Found ${"\uFFFD0\uFFFD"}:INTERPOLATION: result(s)`,[["formRef",""],t,e,o,r,_,I,D,k,oe,ne,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],["value","Version",3,"cleared","options","isClearable"],["type","text","placeholder",n,3,"ngModelChange","ngModel","ngModelOptions"],[1,"custom-option"],[1,"partial"],[3,"hasExtendedData","rootPaths","initialNodes","backupSettings","multiSelect","showFiles","loadExtendedData","searchMode","searchResults"],["for","path"],["type","text","id","path","formControlName","filesToRestore"],[1,"search-container"],["for","search"],["type","text","id","search","placeholder",u,3,"ngModelChange","keydown.enter","ngModel","ngModelOptions"],["shButton","","type","button",1,"small",3,"click","disabled"],[1,"spinner"],["shButton","","type","button",1,"small","secondary"],[1,"search-results-info"],["shButton","","type","button",1,"small","secondary",3,"click"]]},template:function(e,o){e&1&&(Qi(0,"form",11,0),Fg("submit",function(){return o.next()}),Qi(2,"h3",12),XT(3,1),Hl(),oT(4,pt,1,0,"sh-progress-bar",13)(5,Pt,5,7),Qi(6,"div",14)(7,"button",15),Fg("click",function(){return o.back()}),Og(8,2),mg(9,"sh-icon"),Pg(),Hl(),Qi(10,"button",16),Og(11,3),mg(12,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.selectFilesForm),DE(4),iT(o.versionOptionsLoading()?4:5),DE(5),Lg(o.isFileRestore()?"Back":"Exit"),eC(8));},dependencies:[Bn,Tn,Ze,Rn,Pn,Jt,Gn,gn,hn,Se,v,Fe$1,N,Nt$2,d,ci,m$1],styles:["[_nghost-%COMP%]{display:block;margin-top:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.partial[_ngcontent-%COMP%]{color:var(--base-9);font-style:italic}.search-container[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.search-container[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{flex:1}.search-results-info[_ngcontent-%COMP%]{color:var(--base-8);font-size:var(--small)}"]})};var G=class i{#e=T(ee);#t=T(W);#i=T(m);#n=T(be);#o=T(C);backupId=Ue(null);backup=Ue(null);destinationTargetUrl=Ue(null);destinationTestSignal=Ue(null);selectFilesForm=_t();optionsForm=ct();encryptionForm=at();optionsFormSignal=L(this.optionsForm.valueChanges);selectFilesFormSignal=L(this.selectFilesForm.valueChanges);selectOption=Ue(null);versionOptionsLoading=Ue(false);versionOptions=Ue([]);isSubmitting=Ue(false);isFileRestore=Ue(false);isFullWidthPage=Ue(false);extendedDataType=Ue(null);alternateRestorePath=Ue(null);alternateRestorePathSourcePrefix=Ue(null);init(t,e=false){this.backupId.set(t),this.isFileRestore.set(e),this.alternateRestorePath.set(null),this.extendedDataType.set(null),e&&this.#e.navigate(["/restore-from-files/destination"]),e||this.getBackup();}updateTargetUrl(t){this.destinationTargetUrl.set(t);}setAlternateRestorePath(t,e){this.alternateRestorePath.set(t),this.alternateRestorePathSourcePrefix.set(e);}submit(){this.isSubmitting.set(true);let t=this.backupId();this.backup()?.Backup?.IsTemporary??false?this.#o.postApiV1BackupByIdCopytotemp({id:this.backupId()??""}).subscribe({next:o=>{this.#r(o.ID??"");},error:o=>this.showErrorDialog($localize`An error occurred while copying the backup to a temporary location: ${o.message}`)}):this.#r(t??"");}showErrorDialog(t){this.#n.open(h,{data:{title:$localize`Error occured`,message:t,confirmText:$localize`OK`,cancelText:void 0},closed:e=>{}});}#r(t){let e=this.optionsForm.value,o=this.selectFilesForm.value,n=this.selectOption(),r=this.versionOptions()?.find(_=>_.Version===(n&&parseInt(n)));this.#o.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(_=>_.endsWith("/")||_.endsWith("\\")?`${_}*`:_)??[],passphrase:o.passphrase??null,time:r?.Time,restore_path:this.alternateRestorePath()??e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!e.includeMetadata,source_prefix:this.alternateRestorePathSourcePrefix(),connection_string_id:null}}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:_=>{this.#e.navigate([`./${_.ID}`,"progress"],{relativeTo:this.#t});},error:_=>{console.error("restore error",_);}});}exit(){this.#n.open(h,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:t=>{t&&(this.#a(),this.#e.navigate(["/"]));}});}getVersionOptions(){this.versionOptions();}loadFilesetsWithRetryv2(t,e=2){return this.#o.postApiV2BackupListFilesets({requestBody:{BackupId:t}}).pipe(Vs(o=>{let n=o?.error?.body?.StatusCode??o?.error?.requestBody?.StatusCode;return n==="EncryptedStorageNoPassphrase"||n==="FolderMissing"||n==="EmptyRemoteFolder"||e===0?iy(()=>o):Bs(1e3).pipe($u(()=>this.loadFilesetsWithRetryv2(t,e-1)))}))}getBackup(){let t=this.backupId();this.versionOptionsLoading.set(true),this.#i.hasV2ListOperations()?vy([this.#o.getApiV1BackupById({id:t}),this.loadFilesetsWithRetryv2(t)]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{if(o.Error)throw new Error(o.Error);if(!(e.Backup?.IsTemporary??true)&&e?.Backup?.DBPathExists===false){this.#n.open(h,{data:{title:$localize`Missing Local Database`,message:$localize`The local database for this backup is missing. Please repair or recreate the local database before restoring.`,confirmText:$localize`OK`,cancelText:void 0},closed:r=>{this.#e.navigate(["/backup",t,"database"]);}});return}this.versionOptions.set((o.Data??[]).map(r=>({Version:r.Version??-1,IsFullBackup:r.IsFullBackup??void 0,Time:r.Time??"<missing>",FileCount:r.FileCount??void 0,FileSizes:r.FileSizes??void 0}))),this.backup.set(e);},error:e=>{let o=e?.error?.body?.StatusCode??e?.error?.requestBody?.StatusCode,n=o==="EncryptedStorageNoPassphrase",r=o==="FolderMissing",_=o==="EmptyRemoteFolder",u=$localize`An error occurred while loading the backup filesets: ${e.message}`;n&&(u=$localize`The remote storage is encrypted. Please enter the passphrase to access the backup.`),r&&(u=$localize`The backup storage folder was not found.`),_&&(u=$localize`The backup storage folder does not contain any filesets.`),this.#n.open(h,{data:{title:$localize`Failed to load backup filesets`,message:u,confirmText:$localize`OK`,cancelText:void 0},closed:I=>{this.#e.navigate([n?"/restore-from-files/encryption":"/restore-from-files/destination"]);}});}}):vy([this.#o.getApiV1BackupById({id:t}),this.#o.getApiV1BackupByIdFilesets({id:t}).pipe(_y(3))]).pipe(Fo(1),Bu(()=>this.versionOptionsLoading.set(false))).subscribe({next:([e,o])=>{this.versionOptions.set(o.map(n=>({Version:n.Version??-1,IsFullBackup:(n.IsFullBackup??1)==1,Time:n.Time??"<missing>",FileCount:n.FileCount??void 0,FileSizes:n.FileSizes??void 0}))),this.backup.set(e);}});}#a(){this.selectFilesForm.reset(),this.optionsForm.reset();}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ee$1({token:i,factory:i.\u0275fac,providedIn:"root"})};function It(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,6),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,7),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Mt(i,t){if(i&1){let e=gT();Qi(0,"sh-radio",27),Og(1,8),mg(2,"input",31),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,9),Qi(5,"input",32),Fg("click",function(){Sd(e);let n=nC(2);return xd(n.chooseCustomRemoteDestination())}),Hl(),DD(),Pg(),Hl();}i&2&&(DE(2),TD(),DE(3),TD());}function Lt(i,t){if(i&1&&(Qi(0,"app-file-tree",29)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function yt(i,t){if(i&1&&(Qi(0,"app-file-tree",30)(1,"label",33),PC(2,"Path"),Hl(),mg(3,"input",34),DD(),Hl()),i&2){let e=nC(2);gg("customRemoteMode",e.extendedDataType())("backupId",e.backupId())("sourcePrefix",e.remoteCustomSourcePrefix())("destinationUrl",e.customDestinationUrl()),DE(3),TD();}}function Dt(i,t){if(i&1&&(oT(0,It,6,0)(1,Mt,6,0),Qi(2,"sh-radio",27),Og(3,5),mg(4,"input",28),DD(),Pg(),Hl(),oT(5,Lt,4,3,"app-file-tree",29),oT(6,yt,4,4,"app-file-tree",30)),i&2){let e=nC();iT(e.extendedDataType()==="o365"?0:e.extendedDataType()==="gsuite"?1:-1),DE(4),TD(),DE(),iT(e.optionsFormSignal()?.restoreFrom==="pickLocation"?5:-1),DE(),iT(e.showCustomRemoteRestoreTree()?6:-1);}}function bt(i,t){if(i&1&&(Qi(0,"sh-radio",27),Og(1,10),mg(2,"input",35),DD(),Pg(),Hl(),Qi(3,"sh-radio",27),Og(4,11),mg(5,"input",28),DD(),Pg(),Hl(),Qi(6,"app-file-tree",29)(7,"label",33),PC(8,"Path"),Hl(),mg(9,"input",34),DD(),Hl()),i&2){let e=nC();DE(2),TD(),DE(3),TD(),DE(),gg("disabled",e.optionsFormSignal()?.restoreFrom!=="pickLocation")("enableCreateFolder",true)("resolvePaths",true),DE(3),TD();}}function $t(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,12),Wl(),Qi(3,"sh-toggle",27),Og(4,13),mg(5,"input",36),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD());}function vt(i,t){i&1&&(Qi(0,"app-toggle-card",22),Ul(1,23),XT(2,14),Wl(),Qi(3,"sh-radio",27),Og(4,15),mg(5,"input",37),DD(),Pg(),Hl(),Qi(6,"sh-radio",27),Og(7,16),mg(8,"input",38),DD(),Pg(),Hl()(),Qi(9,"app-toggle-card"),Ul(10,23),XT(11,17),Wl(),Qi(12,"sh-toggle",39),Og(13,18),mg(14,"input",40),DD(),Pg(),Hl(),Qi(15,"sh-toggle",39),Og(16,19),mg(17,"input",41),DD(),Pg(),Hl()()),i&2&&(gg("disableToggle",true),DE(5),TD(),DE(3),TD(),DE(6),TD(),DE(3),TD());}var B=new jn,ct=()=>B.group({restoreFrom:B.control("original"),restoreFromPath:B.control(""),handleExisting:B.control("saveTimestamp"),permissions:B.control(false),includeMetadata:B.control(true),customRemoteIgnoreExisting:B.control(false)}),fe=class i{#e=T(G);#t=T(ee);#i=T(W);#n=T(m);#o=T(be);optionsForm=this.#e.optionsForm;optionsFormSignal=this.#e.optionsFormSignal;isSubmitting=this.#e.isSubmitting;extendedData=this.#e.extendedDataType;remoteCustomTargetUrl=Ue(null);backupId=Nt$1(()=>this.#e.backup()?.Backup?.ID??null);extendedDataType=Nt$1(()=>{let t=this.#e.extendedDataType();return t==="o365"?"o365":t==="gsuite"?"gsuite":null});remoteCustomSourceEntry=Nt$1(()=>this.#e.backup()?.Backup?.Sources?.filter(t=>t.startsWith("@")&&(t.includes("|office365://")||t.includes("|googleworkspace://")))[0]??null);remoteCustomSourceUrl=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[1]??null);remoteCustomSourcePrefix=Nt$1(()=>this.remoteCustomSourceEntry()?.split("|")[0]??null);customDestinationUrl=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom,e=this.extendedDataType()!==null;return t==="same-custom"&&e?this.remoteCustomSourceUrl():t==="other-custom"&&e?this.remoteCustomTargetUrl():null});showCustomRemoteRestoreTree=Nt$1(()=>!!(this.optionsFormSignal()?.restoreFrom==="same-custom"&&this.customDestinationUrl()&&this.backupId()||this.optionsFormSignal()?.restoreFrom==="other-custom"&&this.customDestinationUrl()));isCustomRemoteRestore=Nt$1(()=>{let t=this.optionsFormSignal()?.restoreFrom;return t==="same-custom"||t==="other-custom"});chooseCustomRemoteDestination(){let t=this.extendedDataType()==="o365"?"office365://":"googleworkspace://";return this.#o.open(gt$1,{maxWidth:"700px",maxHeight:"80vh",width:"100%",closeOnOutsideClick:false,data:{targetUrlModel:this.remoteCustomTargetUrl()||this.remoteCustomSourceUrl()||t,moduleType:"RestoreDestinationProvider",askToCreate:true,expectedResult:"any",suppressErrorDialogs:true,backupId:this.backupId(),sourcePrefix:this.remoteCustomSourcePrefix()}}).closed.subscribe(o=>{o&&(this.remoteCustomTargetUrl.set(o),this.optionsForm.controls.restoreFrom.setValue("other-custom"));}),false}#r=Ga(()=>{let t=this.optionsFormSignal()?.restoreFrom;this.extendedDataType()!=null&&(t==="original"||t===void 0)&&(this.optionsForm.controls.restoreFrom.setValue("pickLocation"),this.optionsForm.controls.handleExisting.setValue("overwrite")),this.extendedDataType()==null&&(t==="same-custom"||t==="other-custom")&&(this.optionsForm.controls.restoreFrom.setValue("original"),this.optionsForm.controls.handleExisting.setValue("saveTimestamp"));});goBack(){this.#t.navigate(["select-files"],{relativeTo:this.#i.parent});}submit(){let t=this.#e.selectFilesFormSignal()?.filesToRestore??[];if(t.length>0&&this.optionsFormSignal()?.restoreFrom=="original"&&(t[0].includes("/")?"/":"\\")!==this.#n.systemInfo()?.DirectorySeparator){this.#o.open(h,{data:{title:$localize`Confirm target folder`,message:$localize`This backup was created on another operating system. Restoring files without specifying a destination folder can cause files to be restored in unexpected places. Are you sure you want to continue without choosing a destination folder?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:n=>{n&&this.#e.submit();}});return}if(this.optionsFormSignal()?.restoreFrom==="same-custom"||this.optionsFormSignal()?.restoreFrom==="other-custom"){let o=this.optionsFormSignal()?.restoreFromPath;if(o&&o.startsWith("/")&&(o=o.substring(1)),!o||o.trim()===""){this.#o.open(h,{data:{title:$localize`No path specified`,message:this.extendedDataType()==="gsuite"?$localize`Please choose a path to restore to in the Google Workspace account.`:$localize`Please choose a path to restore to in the Microsoft 365 tenant.`,confirmText:$localize`OK`,cancelText:void 0}});return}let n=this.optionsFormSignal()?.customRemoteIgnoreExisting,r=this.customDestinationUrl()?.substring(this.customDestinationUrl().indexOf("?")),_=this.extendedDataType()==="gsuite"?`@googleworkspace://${encodeURIComponent(o)}${r}&google-ignore-existing=${n?"true":"false"}`:`@office365://${encodeURIComponent(o)}${r}&office365-ignore-existing=${n?"true":"false"}`;this.#e.setAlternateRestorePath(_,this.remoteCustomSourcePrefix()),this.optionsForm.controls.includeMetadata.setValue(true),this.optionsForm.controls.permissions.setValue(true);}else this.#e.setAlternateRestorePath(null,null);this.#e.submit();}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-advanced-options-settings"]],decls:18,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files to?`;let o;o=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let r;r=$localize` Local file system ${"\uFFFD#4\uFFFD\uFFFD/#4\uFFFD"}:TAG_INPUT:`;let _;_=$localize` Same Microsoft 365 Tenant ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let u;u=$localize` Different Microsoft 365 Tenant ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let I;I=$localize` Same Google Workspace Account ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let D;D=$localize` Different Google Workspace Account ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let k;k=$localize` Original location ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let oe;oe=$localize` Pick location ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let ne;ne=$localize`Restore settings`;let P;P=$localize` Ignore existing resources in the destination ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let he;he=$localize`How do you want to handle existing files?`;let Re;Re=$localize` Overwrite ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let Pe;Pe=$localize` Save different versions with timestamp in file name ${"\uFFFD#8\uFFFD\uFFFD/#8\uFFFD"}:TAG_INPUT:`;let Ie;Ie=$localize`Metadata settings`;let Me;Me=$localize` Restore file metadata ${"\uFFFD#14\uFFFD\uFFFD/#14\uFFFD"}:TAG_INPUT:`;let Le;return Le=$localize` Restore read/write permissions ${"\uFFFD#17\uFFFD\uFFFD/#17\uFFFD"}:TAG_INPUT:`,[["formRef",""],t,e,o,n,r,_,u,I,D,k,oe,ne,P,he,Re,Pe,Ie,Me,Le,[3,"submit","formGroup"],[1,"title-30"],[3,"disableToggle"],["title",""],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],[1,"raised","primary"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled","enableCreateFolder","resolvePaths"],[3,"customRemoteMode","backupId","sourcePrefix","destinationUrl"],["type","radio","name","restoreFrom","value","same-custom","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","other-custom","formControlName","restoreFrom",3,"click"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","restoreFrom","value","original","formControlName","restoreFrom"],["type","checkbox","formControlName","customRemoteIgnoreExisting"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","includeMetadata"],["type","checkbox","formControlName","permissions"]]},template:function(e,o){e&1&&(Qi(0,"form",20,0),Fg("submit",function(){return o.submit()}),Qi(2,"h3",21),XT(3,1),Hl(),Qi(4,"app-toggle-card",22),Ul(5,23),XT(6,2),Wl(),oT(7,Dt,7,3)(8,bt,10,3),Hl(),oT(9,$t,6,1,"app-toggle-card",22)(10,vt,18,1),Qi(11,"div",24)(12,"button",25),Fg("click",function(){return o.goBack()}),Og(13,3),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",26),Og(16,4),mg(17,"sh-icon"),Pg(),Hl()()()),e&2&&(gg("formGroup",o.optionsForm),DE(4),gg("disableToggle",true),DE(3),iT(o.extendedDataType()!==null?7:8),DE(2),iT(o.isCustomRemoteRestore()?9:10),DE(6),Qg("loading",o.isSubmitting()));},dependencies:[Gn,Tn,Ze,yt$1,rn,Rn,Pn,gn,hn,Qe,Se,J,O,v,N],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};
2
- var chunkV4TWRE66=/*#__PURE__*/Object.freeze({__proto__:null,createEncryptionForm:at,default:Fe});var chunkXSEY6SAS=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreSelectFilesForm:_t,default:Ne});var chunkV45AL3LW=/*#__PURE__*/Object.freeze({__proto__:null,createRestoreOptionsForm:ct,default:fe});export{G,chunkXSEY6SAS as a,chunkV45AL3LW as b,chunkV4TWRE66 as c};