@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/chunk-CwB_t7g-.js DELETED
@@ -1,2 +0,0 @@
1
- import {d}from'./chunk-JA7rUsYF.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 {C,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'./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$1,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$1}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 Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(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 fe(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 he(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,fe,3,0,"button",15),Wl(),Hl();}if(o&2){nC();let e=$C(0);DE(8),iT(e?8:-1);}}function Pe(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 l=nC();return xd(l.setDestination(t))}),Hl();}}function Ae(o,i){if(o&1){let e=gT();Qi(0,"app-single-destination",27),sm("targetUrlChange",function(t){Sd(e);let l=nC();return HC(l.targetUrlModel,t)||(l.targetUrlModel=t),xd(t)}),Hl();}if(o&2){let e=nC();im("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Og(0,4,1),mg(1,"sh-icon",22),Pg());}function Re(o,i){o&1&&(Og(0,4,2),mg(1,"sh-icon"),Pg());}function Ue(o,i){if(o&1){let e=gT();Qi(0,"sh-dialog",28),sm("isOpenChange",function(t){Sd(e);let l=nC();return HC(l.targetUrlDialogOpen,t)||(l.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 l=nC();return HC(l.targetUrlCtrl,t)||(l.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,Ee)),DE(9),im("ngModel",e.targetUrlCtrl),TD();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(Te);#e=T(d);formRef=y1.required("formRef");testUrlComponent=y1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ue$1(null);targetUrlInitial=Ue$1(null);targetUrlDialogOpen=Ue$1(false);toggleNewDestination=Ue$1(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(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&$g(n.formRef,Fe,5)(n.testUrlComponent,De,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 l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=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,Oe,3,0,"button",15)(9,he,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,Pe,3,1,"app-destination-list-item",17),Hl(),oT(14,ye,1,0,"app-destination-list"),oT(15,Ae,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,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),Pg(),Hl()()(),oT(24,Ue,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 l=BC(n.selectedDestinationTypeOption());DE(),iT(l?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$1,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{w as default};
package/chunk-D0u1cyeL.js DELETED
@@ -1 +0,0 @@
1
- var t=[{path:"",redirectTo:"destination",pathMatch:"full"},{path:"destination",loadComponent:()=>import('./chunk-CwB_t7g-.js')},{path:"encryption",loadComponent:()=>import('./chunk-JA7rUsYF.js').then(function(n){return n.c})},{path:"select-config",loadComponent:()=>import('./chunk-SKxVK_pD.js')}],o=t;export{o as default};
package/chunk-D2XTQURr.js DELETED
@@ -1,2 +0,0 @@
1
- import {w}from'./chunk-DMJycFPC.js';import {U}from'./chunk-CMmgPgiU.js';import {T,e as ee,M,A,U as Ue,B as y1,G as Ga,C as Bu,d as dw,f as N,v,u as ue,Q as Qi,F as Fg,o as oT,j as mg,H as Hl,O as Og,P as Pg,p as DD,q as PC,z as gg,D as DE,i as iT,y as TD,E as nm,I as Qg,$ as $g,K as lC,X as XT}from'./main-PXGZLKMN.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {j as jn,m as me,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-Drc5kcUX.js';var Y=["passwordInput"];function Z(l,n){l&1&&(Qi(0,"sh-alert",6),XT(1,4),Hl());}var h=new jn,C=class l{#e=T(ee);#n=T(M);rememberMe=A("rememberMe",false,true);failedLogin=Ue(false);successLogin=Ue(false);isLoading=Ue(false);loginForm=h.group({pass:h.control("",me.required),rememberMe:h.control(this.rememberMe())});showPassword=Ue(false);passwordInput=y1("passwordInput");passwordEffect=Ga(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??false)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus());}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??false),n&&(this.isLoading.set(true),this.#n.login(n,this.rememberMe()).pipe(Bu(()=>{this.isLoading.set(false),this.failedLogin.set(true);})).subscribe({next:()=>{this.successLogin.set(true),this.#e.navigate(["/"]);}}));}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=dw({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&$g(e.passwordInput,Y,5),o&2&&lC();},decls:23,vars:6,consts:()=>{let n;n=$localize`Enter your password`;let o;o=$localize` Password ${"\uFFFD#9\uFFFD"}:START_LINK:${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#9\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize` Keep me logged in ${"\uFFFD#20\uFFFD\uFFFD/#20\uFFFD"}:TAG_INPUT:`;let N;return N=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],o,e,m,N,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/configuration-and-management/duplicati-access-password#access-from-the-trayicon","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",n,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(o,e){o&1&&(Qi(0,"form",5),Fg("submit",function(){return e.submit()}),oT(1,Z,2,0,"sh-alert",6),Qi(2,"div",7),mg(3,"app-logo"),Hl(),Qi(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),Og(8,1),Qi(9,"a",11),mg(10,"sh-icon"),Hl(),Pg(),Hl(),mg(11,"input",12,0),DD(),Qi(13,"sh-icon",13),Fg("click",function(){return e.showPassword.set(!e.showPassword())}),PC(14),Hl()(),Qi(15,"button",14),Og(16,2),mg(17,"sh-icon"),Pg(),Hl()(),Qi(18,"sh-checkbox",15),Og(19,3),mg(20,"input",16),DD(),Pg(),Hl(),Qi(21,"div",17),mg(22,"label",18),Hl()()()),o&2&&(gg("formGroup",e.loginForm),DE(),iT(e.failedLogin()&&!e.successLogin()?1:-1),DE(10),gg("type",e.showPassword()?"text":"password"),TD(),DE(3),nm(e.showPassword()?"eye":"eye-slash"),DE(),Qg("loading",e.isLoading()),DE(5),TD());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,w,Fe,N,v,ue,U],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"]})};
2
- export{C as default};
package/chunk-DC8QqmzV.js DELETED
@@ -1,2 +0,0 @@
1
- import {ShipTable as ot}from'./chunk-CA-ER0DL.js';import'./chunk-BAZ5npJw.js';import'./chunk-DQW8lSiz.js';import {T,ab as C,U as Ue,G as Ga,C as Bu,ai as m,aj as l,d as dw,f as N,v,aJ as ci,Q as Qi,X as XT,H as Hl,j as mg,a1 as cT,F as Fg,O as Og,o as oT,P as Pg,ag as zg,z as gg,D as DE,a2 as lT,i as iT,k as gT,S as Sd,n as nC,x as xd,q as PC,aM as tb,E as nm,aN as ob,I as Qg,ap as sT}from'./main-PXGZLKMN.js';function X(o,e){if(o&1&&(Qi(0,"li"),PC(1),Hl()),o&2){let t=e.$implicit;DE(),nm(t);}}function j(o,e){if(o&1&&(Qi(0,"tr")(1,"td",12)(2,"code")(3,"ol",13),cT(4,X,2,1,"li",null,sT),Hl()()()()),o&2){let t=nC().$implicit,n=nC();DE(),zg("grid-column","1 / -1")("height","auto"),DE(3),lT(n.breakIntoLines(t.Exception));}}function K(o,e){if(o&1){let t=gT();Qi(0,"tr",9),Fg("click",function(){let _=Sd(t).$index,m=nC();return xd(m.toggleRow(_))}),Qi(1,"td"),PC(2),tb(3,"date"),Hl(),Qi(4,"td",10),PC(5),Hl(),Qi(6,"td"),PC(7),Hl(),Qi(8,"td")(9,"button",11)(10,"sh-icon"),PC(11,"caret-down"),Hl()()()(),oT(12,j,6,4,"tr");}if(o&2){let t=e.$implicit,n=e.$index,_=nC();DE(2),nm(t.Timestamp?ob(3,6,t.Timestamp*1e3,"medium"):"-"),DE(3),nm(t.BackupID>=0?t.BackupID:"-"),DE(2),nm(t.Message),DE(2),Qg("rotated-icon",n===_.openRowIndex()),DE(3),iT(n===_.openRowIndex()?12:-1);}}function V(o,e){o&1&&XT(0,4,1);}function q(o,e){o&1&&XT(0,4,2);}var H=["BackupID","Timestamp","Message","actions"],M=class o{#e=T(C);displayedColumns=Ue(H);openRowIndex=Ue(null);noMoreItems=Ue(false);logsIsLoading=Ue(false);logs=Ue([]);pagination=Ue({offsetTime:void 0,pagesize:10});paginationEffect=Ga(()=>{this.pagination();this.getLogs();});ngOnInit(){this.getLogs();}getLogs(){this.logsIsLoading.set(true);let e=this.pagination();this.#e.getApiV1LogdataLog({pagesize:e.pagesize,offset:e.offsetTime}).pipe(Bu(()=>this.logsIsLoading.set(false))).subscribe({next:t=>{t.length===0&&this.noMoreItems.set(true),this.logs.update(n=>[...n,...t]);}});}toggleRow(e){this.openRowIndex.set(e===this.openRowIndex()?null:e);}breakIntoLines(e){return e?e.split(`
2
- `):[]}loadMore(){let e=this.logs().at(-1)?.Timestamp;this.pagination.update(t=>m(l({},t),{offsetTime:e}));}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=dw({type:o,selectors:[["app-logs-stored"]],decls:18,vars:6,consts:()=>{let e;e=$localize`Timestamp`;let t;t=$localize`Backup ID`;let n;n=$localize`Message`;let _;_=$localize`No data available`;let m;return m=$localize`${"\uFFFD*16:1\uFFFD"}:START_BLOCK_IF: No more items ${"\uFFFD/*16:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*17:2\uFFFD"}:START_BLOCK_ELSE: Load more ${"\uFFFD/*17:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,[e,t,n,_,m,[1,"type-b",3,"data","loading"],["thead",""],["table-no-rows",""],["shButton","",1,"primary","raised",3,"click","disabled"],[3,"click"],[1,"id"],["shButton","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]]},template:function(t,n){if(t&1&&(Qi(0,"sh-table",5)(1,"tr",6)(2,"th"),XT(3,0),Hl(),Qi(4,"th"),XT(5,1),Hl(),Qi(6,"th"),XT(7,2),Hl(),mg(8,"th"),Hl(),cT(9,K,13,9,null,null,sT),Qi(11,"div",7),XT(12,3),Hl()(),Qi(13,"footer")(14,"button",8),Fg("click",function(){return n.loadMore()}),Og(15,4),oT(16,V,1,0)(17,q,1,0),Pg(),Hl()()),t&2){let _=n.logs();zg("grid-template-columns","1fr 1fr 1fr auto"),gg("data",_)("loading",n.logsIsLoading()),DE(9),lT(_),DE(5),gg("disabled",n.logsIsLoading()||n.noMoreItems()),DE(2),iT(n.noMoreItems()?16:17);}},dependencies:[ot,N,v,ci],styles:["[_nghost-%COMP%]{display:block}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:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 0 0}"]})};export{M as default};
package/chunk-DDo7wKQT.js DELETED
@@ -1,3 +0,0 @@
1
- import {i as ie,h}from'./chunk-DVgkAgur.js';import {c}from'./chunk-D48AStVy.js';import {m}from'./chunk-B9zNFJSv.js';import {c as c$1}from'./chunk-COgNe44h.js';import {T,a5 as g,g as g$1,a6 as be,a7 as l,M,m as m$1,e as ee,N as Nt$1,G as Ga,d as dw,Z as lr,_ as _t$1,a8 as To,f as N,v,Q as Qi,s as sm,j as mg,F as Fg,o as oT,H as Hl,O as Og,P as Pg,q as PC,h as bC,w as im,z as gg,D as DE,i as iT,a3 as QC,a9 as UC,aa as Gl,t as tC,l as HC,ab as C$1,ac as h1,U as Ue,C as Bu,u as ue,X as XT,p as DD,y as TD,I as Qg,ad as br,ae as Jr,b as g1,af as m1,B as y1,L as oC,R as Bl,Y as iC,W as $l,ag as zg,$ as $g,K as lC,ah as fe,ai as m$2,aj as l$1,ak as cm,al as BC,k as gT,S as Sd,n as nC,x as xd,r as rt$1,am as ii,V as yg,an as jg,ao as $C,a1 as cT,ap as sT,a2 as lT,E as nm}from'./main-PXGZLKMN.js';import {C}from'./chunk-MvQwR7nW.js';import {O}from'./chunk-SycscfJp.js';import'./chunk-DQW8lSiz.js';import {w}from'./chunk-DMJycFPC.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {B as Bn,Z as Ze,R as Rn,J as Jt,j as jn,m as me,G as Gn}from'./chunk-Drc5kcUX.js';import {a as at$1}from'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';var nt=["dragImageElement"],it=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],ot=["[sidenav]","[sidenav-closed-topbar]","*"];function at(o,i){o&1&&yg(0,"div",1,0);}function st(o,i){if(o&1){let e=gT();Bl(0,"div",7),jg("drop",function(n){Sd(e);let r=nC();return xd(r.drop(n))})("dragenter",function(){Sd(e);let n=nC();return xd(n.dragEnter())})("dragleave",function(){Sd(e);let n=nC();return xd(n.dragLeave())}),$l();}}function rt(o,i){if(o&1){let e=gT();Bl(0,"div",8),jg("dragstart",function(n){Sd(e);let r=nC();return xd(r.dragStart(n))})("dragend",function(n){Sd(e);let r=nC();return xd(r.dragEnd(n))})("drag",function(n){Sd(e);let r=nC();return xd(r.drag(n))})("touchstart",function(n){Sd(e);let r=nC();return xd(r.touchStart(n))})("touchmove",function(n){Sd(e);let r=nC();return xd(r.touchMove(n))})("touchend",function(n){Sd(e);let r=nC();return xd(r.touchEnd(n))})("touchcancel",function(n){Sd(e);let r=nC();return xd(r.touchCancel(n))}),$l();}}function lt(o){let i=T(Jr),e=T(rt$1),t=Ue(false),n=typeof MutationObserver<"u"?new MutationObserver(r=>{r.forEach(N=>{N.type==="attributes"&&N.attributeName==="class"&&t.set(i.nativeElement.classList.contains(o));});}):void 0;return ii(i.nativeElement,()=>{n&&n.observe(i.nativeElement,{attributes:!0}),t.set(i.nativeElement.classList.contains(o));}),e.onDestroy(()=>{n&&n.disconnect();}),t}var Ke=(()=>{class o{constructor(){this.#e=T(br),this.#i=T(Jr),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=g1(false),this.isOpen=m1(false),this.isOverlay=lt("overlay"),this.#n=this.#i.nativeElement.parentElement,this.#t=this.#n.getBoundingClientRect&&this.#n.getBoundingClientRect(),this.dragImageElement=y1.required("dragImageElement"),this.dragIsEnding=Ue(false),this.dragIsOnScreen=Ue(true),this.isDragging=Ue(false),this.dragPositionX=Ue(0),this.dragActualPositionX=Nt$1(()=>{let e=this.dragPositionX(),t=280,n=100,N=t/2,A=N-n/2,O=N+n/2;if(e>O){let D=e-O,f=(t-O)*(1-Math.exp(-8e-3*D));return O+f}else if(e<A){let D=A-e,f=A*(1-Math.exp(-8e-3*D));return A-f}return e}),this.draggingStyle=Nt$1(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Ga(()=>{this.disableDrag()||(this.isDragging()?this.#e.body.classList.add("dragging"):this.#e.body.classList.remove("dragging"));}),this.scrollLockEffect=Ga(e=>{let t=this.isOverlay(),n=this.isOpen();t&&n&&(this.#e.body.classList.add("sh-sidenav-open"),this.#e.documentElement.classList.add("sh-sidenav-open")),e(()=>{this.#e.body.classList.remove("sh-sidenav-open"),this.#e.documentElement.classList.remove("sh-sidenav-open");});});}#e;#i;#n;#t;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#t.left);}#o(e){this.isDragging.set(false),e>=this.openWidthTreshold?this.isOpen.set(true):this.isOpen.set(false);}dragEnd(e){e.clientX-this.#t.left<0&&this.#o(0),e.clientX-this.#t.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold);}dragEnter(){this.dragIsOnScreen.set(true);}dragLeave(){this.dragIsOnScreen.set(false);}dragStart(e){e.stopPropagation(),this.#t=this.#n.getBoundingClientRect(),this.isDragging.set(true);}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#t.left);}touchStart(e){e.stopPropagation(),this.isDragging.set(true),this.#t=this.#n.getBoundingClientRect(),this.dragPositionX.set(0);}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#t.left);}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#t.left);}touchCancel(e){e.stopPropagation(),this.isDragging.set(false);}static{this.\u0275fac=function(t){return new(t||o)};}static{this.\u0275cmp=dw({type:o,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&$g(n.dragImageElement,nt,5),t&2&&lC();},hostVars:6,hostBindings:function(t,n){t&2&&Qg("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging());},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:ot,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],["role","navigation",1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,n){t&1&&(oC(it),oT(0,at,2,0,"div",1),oT(1,st,1,0,"div",2),Bl(2,"div",3),iC(3),$l(),Bl(4,"div",4),oT(5,rt,1,0,"div",5),Bl(6,"div",6),iC(7,1),$l(),Bl(8,"main"),iC(9,2),$l()()),t&2&&(iT(n.isOverlay()&&!n.disableDrag()?0:-1),DE(),iT(n.isOverlay()&&n.isDragging()?1:-1),DE(3),zg("transform",!n.disableDrag()&&n.draggingStyle()),DE(),iT(n.isOverlay()&&!n.disableDrag()?5:-1));},styles:[`html.sh-sidenav-open,body.sh-sidenav-open{overflow:hidden}sh-sidenav{--sidenav-width: 17.5rem;--sidenav-wrap-w: 100vw;--sidenav-wrap-h: 100vh;display:flex;width:var(--sidenav-wrap-w);height:var(--sidenav-wrap-h)}sh-sidenav .sidenav{width:var(--sidenav-width);transition:width .2s linear;height:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;overscroll-behavior:contain}sh-sidenav .main-wrap{position:relative;z-index:1;flex:1 0;display:block;height:100%;overflow:auto;padding:1rem 1rem 1rem 0;background-color:var(--base-1)}sh-sidenav main{overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:auto;border:var(--border-10);border-radius:var(--shape-3);height:calc(100vh - 2rem);box-shadow:var(--box-shadow-35)}sh-sidenav .closed-topbar{display:none;min-height:3.75rem;background-color:var(--base-1);align-items:center;justify-content:space-between;padding:0 1rem;border-bottom:var(--border-10);z-index:10000;position:relative;touch-action:none;overscroll-behavior:none}sh-sidenav .dragable{display:none}sh-sidenav .drag-image{display:none}sh-sidenav.simple{border-radius:0}sh-sidenav.simple .main-wrap{padding:0}sh-sidenav.simple .main-wrap main{height:100vh;border-radius:0;border-width:0 0 0 1px}sh-sidenav.simple.closed{--sidenav-width: 6.25rem}sh-sidenav.overlay{overflow:hidden}sh-sidenav.overlay .drag-image{display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem;box-shadow:none;position:fixed;top:0;left:-9999px}sh-sidenav.overlay .sidenav{position:fixed;z-index:0}sh-sidenav.overlay .dragable{position:absolute;top:0;left:0;bottom:0;z-index:9999;width:50px;padding-right:30px;display:flex;align-items:center;justify-content:center;cursor:grab}sh-sidenav.overlay .dragable:active{cursor:grabbing}sh-sidenav.overlay .dragable:after{content:"";display:block;width:.25rem;height:40%;background-color:var(--base-2);border-radius:.125rem}sh-sidenav.overlay .dragable:hover:after{background-color:var(--base-4)}sh-sidenav.overlay .dropping-surface{position:fixed;inset:0;z-index:100000}sh-sidenav.overlay .main-wrap{z-index:1;padding:0;display:flex;height:100vh;position:relative;flex-direction:column;transform:translate(0);transition:transform .2s linear;overflow:hidden;overscroll-behavior:none}sh-sidenav.overlay.is-dragging{-webkit-user-select:none;user-select:none;cursor:grabbing}sh-sidenav.overlay.is-dragging .main-wrap{transition:none}sh-sidenav.overlay.is-dragging>*{cursor:grabbing}sh-sidenav.overlay.is-dragging .dragable{cursor:grabbing}sh-sidenav.overlay.open .main-wrap{transform:translate(var(--sidenav-width));box-shadow:var(--box-shadow-10);border-left:var(--border-10)}sh-sidenav.overlay.open main{overflow-y:hidden}sh-sidenav.overlay .closed-topbar{display:flex}sh-sidenav.overlay .closed-topbar:empty{display:none}sh-sidenav.overlay main{border:0;box-shadow:none;flex:1;height:auto;min-height:0;border-radius:0}
2
- `],encapsulation:2});}}return o})();var _t=["scroller"];function ct(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell-ringing"),Hl());}function dt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"bell"),Hl());}function ut(o,i){if(o&1&&mg(0,"app-notification",8),o&2){nC(2);let e=$C(6);gg("index",0)("notification",e.content);}}function gt(o,i){if(o&1&&(Qi(0,"div",11),PC(1),Hl()),o&2){nC(3);let e=$C(6);DE(),Gl(" ",e.content.content," ");}}function pt(o,i){if(o&1&&(Qi(0,"sh-alert")(1,"div",10),PC(2),Hl(),oT(3,gt,2,1,"div",11),Hl()),o&2){nC(2);let e=$C(6);bC(e.content.type||"error"),DE(2),nm(e.content.title),DE(),iT(e.content.content?3:-1);}}function ht(o,i){if(o&1&&(Qi(0,"div",6),oT(1,ut,1,2,"app-notification",8)(2,pt,4,4,"sh-alert",9),Hl()),o&2){nC();let e=$C(6);DE(),iT(e.type==="notification"?1:2);}}function mt(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,2),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleNotifications())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),mg(9,"app-notifications"),Hl()()()();}}function St(o,i){if(o&1&&(Qi(0,"div",20),PC(1),Hl()),o&2){let e=nC().$implicit;DE(),Gl(" ",e.content," ");}}function Ct(o,i){if(o&1){let e=gT();Qi(0,"sh-alert",18,1),Fg("click",function(){let n=Sd(e).$implicit,r=nC(2);return xd(r.deleteAlertByIndex(n.id))}),Qi(2,"div",19),PC(3),Hl(),oT(4,St,2,1,"div",20),Hl();}if(o&2){let e=i.$implicit;bC(e.type),gg("id",e.id),DE(3),nm(e.title),DE(),iT(e.content?4:-1);}}function Tt(o,i){o&1&&(Qi(0,"p",17),XT(1,4),Hl());}function Et(o,i){if(o&1){let e=gT();Qi(0,"div",7)(1,"div",12)(2,"h6",13),Og(3,3),Qi(4,"button",5),Fg("click",function(){Sd(e);let n=nC();return xd(n.toggleAlerts())}),mg(5,"sh-icon"),Hl(),Pg(),Hl(),Qi(6,"div",14,0)(8,"div",15),cT(9,Ct,5,5,"sh-alert",16,sT,false,Tt,2,0,"p",17),Hl()()()();}if(o&2){let e=nC();DE(9),lT(e.alertHistory());}}var et=new jn,J=class o{#e=T(fe);#i=T(l);isSubmitting=Ue(false);messageSent=Ue(false);form=et.group({message:et.control("",[me.required])});notifications=this.#i.notifications;shownMessage=Ue(null);shownMessageInterval=null;alertHistory=this.#e.alertHistory;alertHistoryIsOpen=this.#e.alertHistoryIsOpen;alertHistoryIsHidden=this.#e.alertHistoryIsHidden;numberOfOpenAlerts=Nt$1(()=>this.alertHistory().filter(i=>i.isOpen).length);scroller=y1("scroller");isAlertsOpen=m1(false);isNotificationsOpen=m1(false);previousHistoryCount=Ue(null);previousNotificationsCount=Ue(null);constructor(){Ga(()=>{let i=this.alertHistory(),e=this.notifications();if(e.length===0){this.shownMessage.set(null);return}e.length&&this.previousHistoryCount()!==i.length&&!this.isNotificationsOpen()?(this.shownMessage.set({content:e[0],countDown:3,type:"notification"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3)):i.length&&this.previousHistoryCount()!==i.length&&!this.isAlertsOpen()&&(this.shownMessage.set({content:i[0],countDown:3,type:"alert"}),this.previousHistoryCount.set(i.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(n=>m$2(l$1({},n),{countDown:n.countDown-1}));},1e3));}),Ga(()=>{this.alertHistoryIsOpen(),this.scrollToBottom();});}resetPreviewMessage(){this.shownMessage.set(null),this.shownMessageInterval=null;}toggleAlerts(){this.isAlertsOpen()?this.isAlertsOpen.set(false):(this.isAlertsOpen.set(true),this.isNotificationsOpen.set(false),this.resetPreviewMessage());}toggleNotifications(){this.isNotificationsOpen.set(!this.isNotificationsOpen()),this.isAlertsOpen()&&this.isAlertsOpen.set(false);}deleteAlertByIndex(i){this.#e.removeAlert(i);}scrollToBottom(){this.scroller()&&this.scroller()?.nativeElement&&this.scroller().nativeElement.scrollTo(0,this.scroller().nativeElement.scrollHeight);}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-service-hub"]],viewQuery:function(e,t){e&1&&$g(t.scroller,_t,5),e&2&&lC();},inputs:{isAlertsOpen:[1,"isAlertsOpen"],isNotificationsOpen:[1,"isNotificationsOpen"]},outputs:{isAlertsOpen:"isAlertsOpenChange",isNotificationsOpen:"isNotificationsOpenChange"},decls:10,vars:9,consts:()=>{let i;i=$localize` Notifications ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let e;e=$localize` Alerts ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let t;return t=$localize`No alerts yet`,[["scroller",""],["alerts",""],i,e,t,["shButton","",3,"click"],[1,"preview-alert-wrap"],[1,"alert-stream-modal"],[3,"index","notification"],[3,"class"],["ship-alert-title",""],["ship-alert-content",""],[1,"alert-stream-modal-content"],[1,"paragraph-20"],[1,"alert-stream-modal-list-scroller"],[1,"alert-stream-modal-list"],[3,"class","id"],[1,"no-alerts"],[3,"click","id"],["title",""],["content",""]]},template:function(e,t){if(e&1&&(Qi(0,"button",5),Fg("click",function(){return t.toggleAlerts()}),Qi(1,"sh-icon"),PC(2,"info"),Hl()(),Qi(3,"button",5),Fg("click",function(){return t.toggleNotifications()}),oT(4,ct,2,0,"sh-icon")(5,dt,2,0,"sh-icon"),Hl(),cm(6),oT(7,ht,3,1,"div",6),oT(8,mt,10,0,"div",7),oT(9,Et,12,1,"div",7)),e&2){bC(t.alertHistory().length?"error":""),DE(3),bC(t.notifications().length?"error":""),DE(),iT(t.notifications().length?4:5),DE(2);let n=BC(t.shownMessage());DE(),iT(n?7:-1),DE(),iT(t.isNotificationsOpen()?8:-1),DE(),iT(t.isAlertsOpen()?9:-1);}},dependencies:[Gn,ue,N,v,ie,h],styles:["[_nghost-%COMP%]{display:flex;position:fixed;gap:.5rem;bottom:1.5rem;right:1.5rem;z-index:5000}@media only screen and (max-width:768px){[_nghost-%COMP%]{bottom:1rem;right:1rem}}[_nghost-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.preview-alert-wrap[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column;min-width:15.625rem}.helpdesk-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.helpdesk-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.helpdesk-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:1rem;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.helpdesk-modal-content[_ngcontent-%COMP%] .message-sent[_ngcontent-%COMP%]{padding:0 1rem 1rem;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;align-items:flex-end;gap:1rem}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.alert-stream-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width:768px){.alert-stream-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.alert-stream-modal-list-scroller[_ngcontent-%COMP%]{overflow-y:auto;max-height:18.75rem}.alert-stream-modal-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem;border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.no-alerts[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};function ft(o,i){o&1&&(Qi(0,"sh-icon",14),PC(1,"check"),Hl());}function Ft(o,i){o&1&&(Qi(0,"sh-icon",15),PC(1,"prohibit"),Hl());}function At(o,i){if(o&1){let e=gT();Qi(0,"button",20),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,5),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating());}}function Ot(o,i){if(o&1){let e=gT();Qi(0,"button",21),Fg("click",function(){Sd(e);let n=nC();return xd(n.updatePassphrase())}),XT(1,6),Hl();}if(o&2){let e=nC();Qg("loading",e.isUpdating()),gg("disabled",true);}}var K=class o{#e=T(C$1);closed=h1();isUpdating=Ue(false);passphrase=Ue("");repeatPassphrase=Ue("");updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()}));}cancel(){this.isUpdating.set(true),this.#e.patchApiV1Serversettings({requestBody:{"has-asked-for-password-change":"True"}}).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>this.closed.emit()});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-change-passphrase-alert-dialog"]],outputs:{closed:"closed"},decls:23,vars:7,consts:()=>{let i;i=$localize`Enter new password`;let e;e=$localize`Repeat password`;let t;t=$localize`Password have to be filled and have to match`;let n;n=$localize`Change passphrase`;let r;r=$localize` Duplicati needs to be secured with a passphrase and a random passphrase has been generated for you. ${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK:${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK: If you open Duplicati from the tray icon, you do not need a passphrase, but if you plan to open it from another location you need to set a passphrase you know. Do you want to set a passphrase now? `,r=tC(r);let N;N=$localize`Passphrase`;let A;A=$localize`Repeat passphrase`;let O;O=$localize`Not now thanks`;let D;D=$localize` Yes, update passphrase now `;let E;return E=$localize` Yes, update passphrase now `,[n,r,N,A,O,D,E,["header",""],["content",""],["type","warning"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",i,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",e,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",t,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",t,1,"raised","primary",3,"click","disabled"]]},template:function(e,t){e&1&&(Qi(0,"header",7)(1,"h3"),XT(2,0),Hl()(),Qi(3,"div",8)(4,"sh-alert",9),Og(5,1),mg(6,"br")(7,"br"),Pg(),Hl(),Qi(8,"sh-form-field")(9,"label",10),XT(10,2),Hl(),Qi(11,"input",11),sm("ngModelChange",function(r){return HC(t.passphrase,r)||(t.passphrase=r),r}),Hl(),DD(),Hl(),Qi(12,"sh-form-field")(13,"label",12),XT(14,3),Hl(),Qi(15,"input",13),sm("ngModelChange",function(r){return HC(t.repeatPassphrase,r)||(t.repeatPassphrase=r),r}),Hl(),DD(),oT(16,ft,2,0,"sh-icon",14)(17,Ft,2,0,"sh-icon",15),Hl()(),Qi(18,"footer",16)(19,"button",17),Fg("click",function(){return t.cancel()}),XT(20,4),Hl(),oT(21,At,2,2,"button",18)(22,Ot,2,3,"button",19),Hl()),e&2&&(DE(11),im("ngModel",t.passphrase),TD(),DE(4),gg("disabled",t.passphrase().length===0),im("ngModel",t.repeatPassphrase),TD(),DE(),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?16:17),DE(3),Qg("loading",t.isUpdating()),DE(2),iT(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?21:22));},dependencies:[Bn,Ze,Rn,Jt,ue,Fe,N,at$1,v],styles:["[_nghost-%COMP%]{display:block;--dialog-p: 1.5rem}[content][_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};var vt=()=>({exact:true});function Nt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"sun"),Hl());}function Pt(o,i){o&1&&(Qi(0,"sh-icon"),PC(1,"moon"),Hl());}function Dt(o,i){if(o&1){let e=gT();Qi(0,"button",26),Fg("click",function(){Sd(e);let n=nC();return xd(n.logout())}),Og(1,8),mg(2,"sh-icon"),Pg(),Hl();}}var _e=class o{#e=T(m);#i=T(g);#n=T(g$1);#t=T(be);#o=T(l);#r=T(M);#a=T(O);#s=T(m$1);#l=T(ee);#_=T(C);relayIsEnabled=this.#n.relayIsEnabled;isDarkMode=this.#e.isDarkMode;isNavOpen=this.#e.isNavOpen;sidenavType=this.#e.sidenavType;hasShownPasswordDialog=false;machineName=Nt$1(()=>{let i=this.#a.serverSettings();if(i&&i["--machine-name"])return i["--machine-name"];if(i&&i["machine-name"])return i["machine-name"];let e=this.#s.allOptions().find(t=>t.name==="machine-name");return e&&e.defaultValue?e.defaultValue:this.#s.systemInfo()?.MachineName??"Unknown"});ngOnInit(){this.#o.init(),this.#i.getBackups(true);}serverSettingsEffect=Ga(()=>{if(!this.hasShownPasswordDialog&&(this.#a.askForInitialPasswordConfig()&&(this.hasShownPasswordDialog=true,this.#t.open(K,{maxWidth:"500px"})),this.#a.showWelcomePage())){let i=this.#_.state();i=="inactive"?this.#l.navigate(["/welcome"]):i!="unknown"&&this.#a.setShownWelcomePage();}});toggleBodyClass(){this.#e.toggleBodyClass();}changeDefaultClientTo(i){this.#c(i),window.location.replace(`/${i}`);}logout(){this.#r.logout();}#c(i){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+i+"; expires="+e.toUTCString()+"; path=/";}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-layout"]],decls:44,vars:11,consts:()=>{let i;i=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:house${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Home `;let e;e=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:database${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Add backup `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: Restore `;let n;n=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:link-simple${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Destinations `;let r;r=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:gear${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Settings `;let N;N=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_SH_ICON: About Duplicati `;let A;A=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SH_ICON:files${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON: Documentation ${"\uFFFD#36\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#35\uFFFD|\uFFFD/#36\uFFFD]"}:CLOSE_TAG_SH_ICON:`,A=tC(A);let O;O=$localize`${"\uFFFD#39\uFFFD"}:START_TAG_SH_ICON:chats-circle${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON: Visit forum ${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON_1:arrow-square-out${"[\uFFFD/#39\uFFFD|\uFFFD/#40\uFFFD]"}:CLOSE_TAG_SH_ICON:`,O=tC(O);let D;return D=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:sign-out${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Log out `,[i,e,t,n,r,N,A,O,D,[3,"isOpenChange","isOpen","disableDrag"],["sidenav",""],["shButton","",1,"icon","small",3,"click"],[1,"base-1","primary"],["action","","routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["action","","routerLink","/add-backup","routerLinkActive","active"],["action","","routerLink","/restore","routerLinkActive","active"],["action","","routerLink","/destinations","routerLinkActive","active"],["action","","routerLink","/settings","routerLinkActive","active"],[1,"spacer"],[1,"base-1l","primary"],["action","",1,"machine-name",3,"title"],["action","","routerLink","/about","routerLinkActive","active"],["href","https://docs.duplicati.com","target","_blank","action",""],["suffix",""],["href","https://forum.duplicati.com","target","_blank","action",""],["action",""],["action","",3,"click"]]},template:function(e,t){e&1&&(Qi(0,"sh-sidenav",9),sm("isOpenChange",function(r){return HC(t.isNavOpen,r)||(t.isNavOpen=r),r}),Qi(1,"div",10)(2,"header"),mg(3,"app-logo"),Qi(4,"button",11),Fg("click",function(){return t.toggleBodyClass()}),oT(5,Nt,2,0,"sh-icon")(6,Pt,2,0,"sh-icon"),Hl()(),Qi(7,"sh-list",12)(8,"button",13),Og(9,0),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",14),Og(12,1),mg(13,"sh-icon"),Pg(),Hl(),Qi(14,"button",15),Og(15,2),mg(16,"sh-icon"),Pg(),Hl(),Qi(17,"button",16),Og(18,3),mg(19,"sh-icon"),Pg(),Hl(),Qi(20,"button",17),Og(21,4),mg(22,"sh-icon"),Pg(),Hl()(),mg(23,"div",18),Qi(24,"sh-list",19)(25,"div",20)(26,"sh-icon"),PC(27,"desktop"),Hl(),PC(28),Hl(),mg(29,"sh-divider"),Qi(30,"button",21),Og(31,5),mg(32,"sh-icon"),Pg(),Hl(),Qi(33,"a",22),Og(34,6),mg(35,"sh-icon")(36,"sh-icon",23),Pg(),Hl(),Qi(37,"a",24),Og(38,7),mg(39,"sh-icon")(40,"sh-icon",23),Pg(),Hl(),oT(41,Dt,3,0,"button",25),Hl()(),mg(42,"router-outlet")(43,"app-service-hub"),Hl()),e&2&&(bC(t.sidenavType()),im("isOpen",t.isNavOpen),gg("disableDrag",true),DE(5),iT(t.isDarkMode()?5:6),DE(3),gg("routerLinkActiveOptions",QC(10,vt)),DE(17),gg("title",UC(t.machineName())),DE(3),Gl(" ",t.machineName()," "),DE(13),iT(t.relayIsEnabled()?-1:41));},dependencies:[lr,_t$1,To,Ke,N,c,v,c$1,J,w],styles:["[_nghost-%COMP%]{height:100vh;width:100%;overflow:hidden}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1.25rem;gap:.75rem}h3[title][_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[sidenav][_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}.machine-name[_ngcontent-%COMP%]{margin:0;cursor:default}"]})};
3
- export{_e as default};
package/chunk-DQwpGI_E.js DELETED
@@ -1,2 +0,0 @@
1
- import {L as L$1}from'./chunk-D28lTX0k.js';import {T,ab as C,aG as pt,ai as m,aj as l,U as Ue,G as Ga,d as dw,f as N,v,a0 as de,k as gT,Q as Qi,X as XT,H as Hl,a1 as cT,s as sm,q as PC,F as Fg,S as Sd,x as xd,D as DE,a2 as lT,w as im,z as gg,a3 as QC,E as nm,aa as Gl,l as HC,o as oT,j as mg,n as nC,O as Og,P as Pg,aB as rm,i as iT,ar as Wp,a9 as UC,ap as sT}from'./main-PXGZLKMN.js';var q=()=>({maxWidth:"700px",width:"100%"});function H(s,i){if(s&1&&(Qi(0,"a",9)(1,"sh-icon"),PC(2,"link"),Hl()()),s&2){let e=nC().$implicit;gg("href",UC(e.Url),Wp);}}function K(s,i){if(s&1){let e=gT();Qi(0,"div",2)(1,"h4"),PC(2),oT(3,H,3,2,"a",9),Hl(),Qi(4,"p"),PC(5),mg(6,"br"),Qi(7,"i"),PC(8),Hl()(),Qi(9,"div",10)(10,"button",11),Fg("click",function(){let o=Sd(e).$implicit,p=nC();return xd(p.openLicense(o))}),Og(11,1),mg(12,"sh-icon"),Pg(),Hl()()();}if(s&2){let e=i.$implicit;DE(2),rm(" ",e.Title," - ",e.data?.license," "),DE(),iT(e.Url?3:-1),DE(2),Gl(" ",e.data?.description," "),DE(3),nm(e.data?.notes);}}var L=class s{#e=T(C);licenses=L$1(this.#e.getApiV1Licenses().pipe(pt(i=>i.map(e=>m(l({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=Ue(false);dialogLicense=Ue(null);#i=Ga(()=>{this.dialogLicense()&&this.dialogIsOpen.set(true);});openLicense(i){this.dialogLicense.set(i);}closeLicense(){this.dialogIsOpen.set(false),this.dialogLicense.set(null);}breakIntoLines(i){let e=i.split(`
2
- `),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=dw({type:s,selectors:[["app-libraries"]],decls:14,vars:5,consts:()=>{let i;i=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`,[i,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["shButton","","type","button",3,"click"],[3,"href"],[1,"actions"],["shButton","",3,"click"]]},template:function(e,n){if(e&1){let o=gT();Qi(0,"h3"),XT(1,0),Hl(),cT(2,K,13,5,"div",2,sT),Qi(4,"sh-dialog",3),sm("isOpenChange",function(_){return Sd(o),HC(n.dialogIsOpen,_)||(n.dialogIsOpen=_),xd(_)}),Qi(5,"header",4)(6,"h3"),PC(7),Hl()(),Qi(8,"div",5)(9,"div",6),PC(10),Hl()(),Qi(11,"footer",7)(12,"button",8),Fg("click",function(){return Sd(o),n.dialogLicense.set(null),xd(n.dialogIsOpen.set(false))}),PC(13,"Close"),Hl()()();}if(e&2){DE(2),lT(n.licenses()),DE(2),im("isOpen",n.dialogIsOpen),gg("options",QC(4,q)),DE(3),nm(n.dialogLicense()?.Title);let o=n.dialogLicense()?.License??"";DE(3),Gl(" ",o," ");}},dependencies:[N,v,de],styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-4)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-1);color:var(--base-12);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-4)}"]})};export{L as default};
package/chunk-DVgkAgur.js DELETED
@@ -1,2 +0,0 @@
1
- import {T,a7 as l,b as g1,N as Nt,d as dw,a1 as cT,a2 as lT,e as ee,aw as W,a6 as be,ah as fe$1,ab as C,M,U as Ue,at as h$1,az as t,v,u as ue,ak as cm,Q as Qi,q as PC,H as Hl,o as oT,F as Fg,X as XT,al as BC,D as DE,h as bC,E as nm,i as iT,j as mg,z as gg,n as nC,ao as $C,aa as Gl,O as Og,P as Pg,ar as Wp,k as gT,S as Sd,x as xd,aP as Ul,aQ as Wl}from'./main-PXGZLKMN.js';import {d}from'./chunk-DQW8lSiz.js';function ae(i,t){if(i&1&&(Qi(0,"div",11),PC(1),Hl()),i&2){nC();let e=$C(0);DE(),Gl(" ",e.Message," ");}}function re(i,t){if(i&1&&(Qi(0,"div"),Og(1,1),mg(2,"a",15),Pg(),Hl()),i&2){let e=nC();DE(2),gg("href",e.downloadLink(),Wp);}}function ce(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC(),l=$C(0);return xd(o.doRepair(l.BackupID))}),XT(1,2),Hl();}}function le(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC(),l=$C(0);return xd(o.doDownloadBugreport(l))}),XT(1,3),Hl();}}function _e(i,t){if(i&1&&mg(0,"sh-progress-bar",17),i&2){let e=nC(2);gg("value",e.serverState()?.UpdateDownloadProgress);}}function se(i,t){if(i&1){let e=gT();Qi(0,"div",11),Ul(1),XT(2,4),Wl(),Qi(3,"a",16),PC(4),Hl(),oT(5,_e,1,1,"sh-progress-bar",17),Qi(6,"button",14),Fg("click",function(){Sd(e);let o=nC();return xd(o.doShowUpdate())}),XT(7,5),Hl()();}if(i&2){let e=nC(),n=$C(0);DE(3),gg("href",e.serverState()?.UpdateDownloadLink,Wp),DE(),nm(n.Message),DE(),iT(e.serverState()?.UpdaterState==="Downloading"?5:-1);}}function de(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC(),l=$C(0);return xd(o.doShowLog(l.BackupID))}),XT(1,6),Hl();}}function Ne(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC();return xd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),XT(1,7),Hl();}}function Te(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let o=nC();return xd(o.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),XT(1,8),Hl();}}var Ce={Error:"error",Warning:"warn",Information:"primary"},h=class i{#e=T(ee);#a=T(W);#r=T(be);#t=T(fe$1);#i=T(l);#n=T(C);#c=T(M);#o=Ue(null);serverState=this.#i.serverState;index=g1.required();notification=g1.required();downloadLink=Nt(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index());}deleteAllNotifications(){this.#i.deleteAllNotifications();}getAlertType(t){return t&&Ce[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"]);},error:e=>{if(e.status===404){let n={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(n={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(h$1,{maxWidth:"550px",width:"100%",data:n});}else this.#t.error($localize`Failed to find backup: `+e.message);}});}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a});},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message);}});}doShowUpdate(){this.#e.navigate(["/about/changelog"]);}doShowLink(t){window.open(t,"_blank");}doDownloadBugreport(t$1){let e=t$1.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:n=>{if(!n.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let o=t.BASE||"",l=this.#c.xsrfQueryParam(),m=`${location.origin}${o}/api/v1/bugreport/${e}?token=${n.Token}${l?`&${l}`:""}`;t$1.DownloadLink=m,this.#o.set(m),this.triggerDownload(m);},error:n=>{this.#t.error(`Failed to get bug report URL: ${n.message}`);}});}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click();}catch{}document.body.removeChild(e);}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let n;n=$localize`Repair`;let o;o=$localize`Download`;let l;l=$localize`New update found:`;let m;m=$localize`Show Update`;let b;b=$localize`Show Log`;let L;L=$localize` Show Help `;let $;return $=$localize` Show Help `,[t,e,n,o,l,m,b,L,$,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"sub-actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,n){if(e&1&&(cm(0),Qi(1,"sh-alert")(2,"div",9),PC(3),Hl(),Qi(4,"div",10),oT(5,ae,2,1,"div",11),oT(6,re,3,1,"div"),Qi(7,"div",12),oT(8,ce,2,0,"button",13),oT(9,le,2,0,"button",13),oT(10,se,8,3,"div",11),oT(11,de,2,0,"button",13),oT(12,Ne,2,0,"button",13),oT(13,Te,2,0,"button",13),Qi(14,"button",14),Fg("click",function(){return n.deleteNotificationByIndex()}),XT(15,0),Hl()()()()),e&2){let o=BC(n.notification());DE(),bC(n.getAlertType(o.Type)),DE(2),nm(o.Title),DE(2),iT(o.Action!=="update:new"&&o.Action!=="update:manual"?5:-1),DE(),iT(n.downloadLink()?6:-1),DE(2),iT(o.Message?.includes("please run repair")?8:-1),DE(),iT(o.Action?.startsWith("bug-report:created:")&&!n.downloadLink()?9:-1),DE(),iT(o.Action==="update:new"?10:-1),DE(),iT(o.Action==="backup:show-log"?11:-1),DE(),iT(o.Action==="config:issue:unencrypted-database"?12:-1),DE(),iT(o.Action==="config:issue:windows-folder-used"?13:-1);}},dependencies:[d,v,ue],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}"]})};var pe=(i,t)=>t.ID;function Ie(i,t){if(i&1&&mg(0,"app-notification",1),i&2){let e=t.$implicit,n=t.$index;gg("index",n)("notification",e);}}function fe(i,t){i&1&&(Qi(0,"div",2)(1,"p"),XT(2,0),Hl()());}var ie=class i{#e=T(l);notificationFilterPredicate=g1();notifications=Nt(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,n){e&1&&cT(0,Ie,1,2,"app-notification",1,pe,false,fe,3,0,"div",2),e&2&&lT(n.notifications());},dependencies:[h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"]})};
2
- export{h,ie as i};
package/chunk-DVlpMN2Q.js DELETED
@@ -1 +0,0 @@
1
- import {m,C as C$1,F}from'./chunk-DaIpTiYw.js';import {J}from'./chunk-B2fqvpov.js';import {x}from'./chunk-0sb5_LpD.js';import {T,a6 as be$1,ab as C,aw as W,e as ee,ax as De,a5 as g,U as Ue$1,N as Nt,G as Ga,at as h,ay as $u,az as t,aA as y,aj as l,C as Bu,d as dw,_ as _t,f as N,v,u as ue,Q as Qi,q as PC,O as Og,j as mg,P as Pg,H as Hl,F as Fg,s as sm,p as DD,o as oT,D as DE,z as gg,a3 as QC,I as Qg,aB as rm,w as im,y as TD,i as iT,t as tC,l as HC,k as gT,S as Sd,n as nC,x as xd,E as nm,X as XT,au as Lg,av as eC}from'./main-PXGZLKMN.js';import {L}from'./chunk-D28lTX0k.js';import {d}from'./chunk-DQW8lSiz.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {j as jn,m as me,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-Drc5kcUX.js';import {a as at}from'./chunk-B-fklW6A.js';var Xe=()=>["/"];function be(t,o){t&1&&(Qi(0,"sh-toggle",25),Og(1,5),mg(2,"input",28),DD(),Pg(),Hl()),t&2&&(DE(2),TD());}function Ge(t,o){t&1&&(Qi(0,"span",31),XT(1,9),Hl());}function Be(t,o){if(t&1&&(Qi(0,"span",31),XT(1,10),Hl()),t&2){let e=nC(2);DE(),Lg(e.exportForm.controls.password.errors?.minlength.requiredLength),eC(1);}}function ve(t,o){if(t&1&&mg(0,"sh-progress-bar",38),t&2){let e=nC(2);Qg("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),gg("value",e.calculatePasswordStrength()*(100/5));}}function ke(t,o){t&1&&(Qi(0,"span",31),XT(1,11),Hl());}function Ue(t,o){t&1&&(Qi(0,"span",31),XT(1,12),Hl());}function Ke(t,o){if(t&1&&(Qi(0,"span",31),XT(1,13),Hl()),t&2){let e=nC(2);DE(),Lg(e.exportForm.controls.repeatPassword.errors?.minlength.requiredLength),eC(1);}}function Je(t,o){t&1&&(Og(0,7,1),mg(1,"sh-icon"),Pg());}function He(t,o){t&1&&(Og(0,7,2),mg(1,"sh-icon"),Pg());}function ze(t,o){t&1&&(Og(0,14,1),mg(1,"sh-icon",40),Pg());}function Ve(t,o){t&1&&(Og(0,14,2),mg(1,"sh-icon"),Pg());}function qe(t,o){if(t&1){let e=gT();Qi(0,"button",39),Fg("click",function(){Sd(e);let a=nC(2);return xd(a.copyPassword())}),Og(1,14),oT(2,ze,2,0)(3,Ve,2,0),Pg(),Hl();}if(t&2){let e=nC(2);DE(2),iT(e.copiedPassword()?2:3);}}function je(t,o){t&1&&(Qi(0,"sh-alert",37),XT(1,15),Hl());}function We(t,o){if(t&1){let e=gT();Qi(0,"div",26)(1,"sh-form-field")(2,"label",29),Og(3,6),mg(4,"sup"),Pg(),Hl(),mg(5,"input",30),DD(),oT(6,Ge,2,0,"span",31)(7,Be,2,1,"span",31),Hl(),oT(8,ve,1,9,"sh-progress-bar",32),Qi(9,"sh-form-field"),mg(10,"input",33),DD(),oT(11,ke,2,0,"span",31)(12,Ue,2,0,"span",31)(13,Ke,2,1,"span",31),Hl(),Qi(14,"div",34)(15,"button",35),Fg("click",function(){Sd(e);let a=nC();return xd(a.showPassword.set(!a.showPassword()))}),Og(16,7),oT(17,Je,2,0)(18,He,2,0),Pg(),Hl(),Qi(19,"button",35),Fg("click",function(){Sd(e);let a=nC();return xd(a.generatePassword())}),Og(20,8),mg(21,"sh-icon"),Pg(),Hl(),oT(22,qe,4,1,"button",36),Hl(),oT(23,je,2,0,"sh-alert",37),Hl();}if(t&2){let e=nC();DE(5),gg("type",e.showPassword()?"text":"password"),TD(),DE(),iT(e.exportForm.controls.password.errors?.required?6:e.exportForm.controls.password.errors?.minlength?7:-1),DE(2),iT(e.exportForm.value.password?8:-1),DE(2),gg("type",e.showPassword()?"text":"password"),TD(),DE(),iT(e.exportForm.value.repeatPassword&&e.exportForm.value.repeatPassword!==e.exportForm.value.password?11:e.exportForm.controls.repeatPassword.errors?.required?12:e.exportForm.controls.repeatPassword.errors?.minlength?13:-1),DE(6),iT(e.showPassword()?17:18),DE(5),iT(e.showCopyPassword()?22:-1),DE(),iT(e.exportForm.value.password&&e.exportForm.value.password===e.exportForm.value.repeatPassword?23:-1);}}function Qe(t,o){if(t&1&&(Qi(0,"div",27)(1,"code"),PC(2),Hl()()),t&2){let e=nC();DE(2),nm(e.exportedCmd());}}var I=new jn,K=class t$1{#o=T(m);#n=T(be$1);#t=T(C);#e=T(W);#i=T(ee);#r=T(De);#s=T(g);isExporting=Ue$1(false);exportType=Ue$1("file");exportedCmd=Ue$1(null);exportForm=I.group({exportPasswords:I.control(true),encryption:I.control(false,[me.required,F()]),password:I.control("",[C$1("encryption",true,[me.required,me.minLength(3)])]),repeatPassword:I.control("",[C$1("encryption",true,[me.required,me.minLength(3)])])});exportFormSignal=L(this.exportForm.valueChanges);encryptionFieldSignal=Nt(()=>(this.exportFormSignal()?.encryption??false)&&this.exportType()==="file");activeBackup=Nt(()=>this.#s.backups().find(o=>o.Backup?.ID===this.#e.snapshot.params.id));showPassword=Ue$1(false);copiedPassword=Ue$1(false);showCopyPassword=Ue$1(false);calculatePasswordStrength=Nt(()=>{let e=this.exportFormSignal()?.password??"";return this.#o.calculatePasswordStrength(e)});showPasswordEffect=Ga(()=>{this.showPassword()&&this.exportForm.updateValueAndValidity();});disablePasswordForCommandLine=Ga(()=>{this.exportType()==="cmd"&&this.exportForm.controls.encryption.setValue(false);});submit(){if(this.exportType()==="file"&&this.exportFormSignal()?.exportPasswords===true&&!this.exportFormSignal()?.encryption){this.#n.open(h,{data:{title:$localize`Export without encryption?`,message:$localize`Are you sure you want to export your backup without encryption?`,confirmText:$localize`Yes, write plain-text passwords`,cancelText:$localize`Cancel`},closed:o=>{o&&this.submitApproved();}});return}this.submitApproved();}submitApproved(){this.isExporting.set(true),this.exportType()==="file"?this.#t.postApiV1AuthIssuetokenByOperation({operation:"export"}).pipe($u(o=>{let e=T=>{let O=Object.entries(T);return O?"?"+O.filter(([h,E])=>E!=null).map(([h,E])=>`${encodeURIComponent(h)}=${encodeURIComponent(E)}`).join("&"):""},n=this.exportFormSignal()?.password?.length?this.exportFormSignal()?.password:void 0,a=t.BASE||"";return this.#r.get(`${a}/api/v1/backup/${this.#e.snapshot.params.id}/export${e({"export-passwords":this.exportFormSignal()?.exportPasswords??void 0,passphrase:n,token:o.Token})}`,{responseType:"blob",headers:new y(l({},t.HEADERS??{}))})}),Bu(()=>this.isExporting.set(false))).subscribe({next:o=>{let n=this.activeBackup()?.Backup?.Name??"Backup",a=this.exportFormSignal()?.encryption?"aes":"json";this.downloadFile(o,`${n}-duplicati-config.${a}`),this.#i.navigate(["/"]);},error:o=>{}}):this.#t.getApiV1BackupByIdExportCmdline({id:this.#e.snapshot.params.id,exportPasswords:this.exportFormSignal()?.exportPasswords??void 0,passphrase:this.exportFormSignal()?.password??void 0}).pipe(Bu(()=>this.isExporting.set(false))).subscribe({next:o=>{this.exportedCmd.set(o.Command??null);},error:o=>{}});}downloadFile(o,e){let n=window.URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=e,a.click(),window.URL.revokeObjectURL(n);}async copyPassword(){let o=this.exportForm.controls.password.value;await this.#a(o??""),this.copiedPassword.set(true);}async#a(o){try{await navigator.clipboard.writeText(o);}catch{try{let n=document.createElement("textarea");n.value=o,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n);}catch(n){console.error("Failed to copy text: ",n);}}}generatePassword(){this.copiedPassword.set(false);let o=this.#o.generate(16);this.exportForm.controls.password.setValue(o),this.exportForm.controls.repeatPassword.setValue(o),this.showCopyPassword.set(true);}static \u0275fac=function(e){return new(e||t$1)};static \u0275cmp=dw({type:t$1,selectors:[["app-export"]],decls:26,vars:13,consts:()=>{let o;o=$localize`${"\uFFFD#6\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#6\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:export${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON: Export `;let n;n=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SH_ICON:terminal-window${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SH_ICON: As command line `;let a;a=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:file${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: To file `;let T;T=$localize` Export passwords ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let O;O=$localize` Encrypt file ${"\uFFFD#2\uFFFD\uFFFD/#2\uFFFD"}:TAG_INPUT:`;let h;h=$localize`Password`;let E;E=$localize`Repeat password`;let J;J=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let w;w=$localize`${"\uFFFD*17:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Hide ${"\uFFFD/*17:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*18:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Show ${"\uFFFD/*18:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,w=tC(w);let H;H=$localize`${"\uFFFD#21\uFFFD"}:START_TAG_SH_ICON:password${"\uFFFD/#21\uFFFD"}:CLOSE_TAG_SH_ICON: Generate password `;let z;z=$localize`Passwords are required`;let V;V=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let q;q=$localize`Passwords do not match`;let j;j=$localize`Passwords are required`;let W;W=$localize` Passwords must be at least ${"\uFFFD0\uFFFD"}:INTERPOLATION: characters long `;let D;D=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,D=tC(D);let Q;return Q=$localize` Tip: Be sure to save your password. If you lose it, you will not be able to import the configuration. `,[o,e,n,a,T,O,J,w,H,z,V,q,j,W,D,Q,[1,"actions"],["shButton","",1,"outlined",3,"routerLink"],["shButton","",1,"raised","primary",3,"click","shTooltip","disabled"],["autocomplete","off",3,"formGroup"],[1,"type-b",3,"valueChange","value"],["value","cmd"],["value","file"],[1,"raised","primary"],["type","checkbox","formControlName","exportPasswords"],[1,"primary","raised"],[1,"passwords"],[1,"cmd-output"],["type","checkbox","formControlName","encryption"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",h,"formControlName","password",3,"type"],["error",""],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",E,"formControlName","repeatPassword",3,"type"],[1,"password-actions"],["shButton","","type","button",1,"small",3,"click"],["shButton","","type","button",1,"small","copy"],[1,"primary"],[1,"raised",3,"value"],["shButton","","type","button",1,"small","copy",3,"click"],[1,"sh-success"]]},template:function(e,n){e&1&&(Qi(0,"header")(1,"h3"),PC(2," Export backup configuration "),Qi(3,"div",16)(4,"button",17),Og(5,0),mg(6,"sh-icon"),Pg(),Hl(),Qi(7,"button",18),Fg("click",function(){return n.submit()}),Og(8,1),mg(9,"sh-icon"),Pg(),Hl()()(),Qi(10,"p"),PC(11),Hl()(),Qi(12,"form",19)(13,"sh-button-group",20),sm("valueChange",function(T){return HC(n.exportType,T)||(n.exportType=T),T}),Qi(14,"button",21),Og(15,2),mg(16,"sh-icon"),Pg(),Hl(),Qi(17,"button",22),Og(18,3),mg(19,"sh-icon"),Pg(),Hl()(),Qi(20,"sh-toggle",23),Og(21,4),mg(22,"input",24),DD(),Pg(),Hl(),oT(23,be,3,0,"sh-toggle",25),oT(24,We,24,8,"div",26),oT(25,Qe,3,1,"div",27),Hl()),e&2&&(DE(4),gg("routerLink",QC(12,Xe)),DE(3),Qg("loading",n.isExporting()),gg("shTooltip",n.encryptionFieldSignal()?"Remember to copy the password":"")("disabled",n.exportForm.invalid||n.showCopyPassword()&&!n.copiedPassword()||n.encryptionFieldSignal()&&n.exportForm.value.repeatPassword!==n.exportForm.value.password),DE(4),rm("#",n.activeBackup()?.Backup?.ID,": ",n.activeBackup()?.Backup?.Name),DE(),gg("formGroup",n.exportForm),DE(),im("value",n.exportType),DE(9),TD(),DE(),iT(n.exportType()==="file"?23:-1),DE(),iT(n.encryptionFieldSignal()?24:-1),DE(),iT(n.exportedCmd()?25:-1));},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,_t,x,J,N,Fe,v,ue,d,at],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.copy[_ngcontent-%COMP%] sh-icon.sh-success[_ngcontent-%COMP%]{color:var(--success-8)}.hide[_ngcontent-%COMP%]{display:none}"]})};export{K as default};
package/chunk-D_A6A07f.js DELETED
@@ -1 +0,0 @@
1
- import {G}from'./chunk-CI78bAye.js';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-Bf1diO1u.js';import'./chunk-B6vxBiK4.js';import'./chunk-DV2SIgNN.js';import'./chunk-B2fqvpov.js';import'./chunk-D48AStVy.js';import {e as ee$1}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,e as ee,U as Ue,G as Ga,b6 as k$1,d as dw,Z as lr,_ as _t,a8 as To,j as mg,o as oT,Q as Qi,H as Hl,D as DE,i as iT,aD as zC,I as Qg,n as nC,X as XT,z as gg,a3 as QC,a_ as ZC}from'./main-PXGZLKMN.js';import'./chunk-DJbAxHpK.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 w=()=>["/restore-from-files/destination"],k=()=>["/restore-from-files/encryption"],x=()=>["/restore-from-files/select-files"],J=()=>["/restore-from-files/options"],X=t=>["/restore",t,"select-files"],D=t=>["/restore",t,"options"];function z(t,n){t&1&&(Qi(0,"div",7),XT(1,0),Hl(),Qi(2,"div",7),XT(3,1),Hl(),Qi(4,"div",8),XT(5,2),Hl(),Qi(6,"div",8),XT(7,3),Hl()),t&2&&(gg("routerLink",QC(4,w)),DE(2),gg("routerLink",QC(5,k)),DE(2),gg("routerLink",QC(6,x)),DE(2),gg("routerLink",QC(7,J)));}function B(t,n){if(t&1&&(Qi(0,"div",7),XT(1,4),Hl(),Qi(2,"div",7),XT(3,5),Hl()),t&2){let e=nC(2);gg("routerLink",ZC(2,X,e.backupId())),DE(2),gg("routerLink",ZC(4,D,e.backupId()));}}function U(t,n){if(t&1&&(Qi(0,"sh-stepper",6),oT(1,z,8,8)(2,B,4,6),Hl()),t&2){let e=nC();DE(),iT(e.isFileRestore()?1:2);}}var f=class t{#e=T(W);#n=T(ee);#t=T(G);#i=L(this.#e.params);#o=L(this.#e.url);#r=L(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isFullWidthPage=Ue(false);paramsChanged=Ga(()=>{let n=this.#r(),e=this.#i()?.id,r=!!this.#o()?.find(s=>s.path==="restore-from-files"),d=!!n?.find(s=>s.path==="select-files"),R=!!n?.find(s=>s.path==="progress");this.isFullWidthPage.set(R||d),this.#t.init(e,r);});ngOnInit(){this.#n.events.subscribe(n=>{if(n instanceof k$1){let e=n.urlAfterRedirects;this.isFullWidthPage.set(e.includes("progress")||e.includes("select-files"));}});}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(e,r){e&2&&Qg("full-width",r.isFullWidthPage());},features:[zC([G,we])],decls:4,vars:1,consts:()=>{let n;n=$localize` Destination `;let e;e=$localize` Encryption `;let r;r=$localize` Select files `;let d;d=$localize` Options `;let R;R=$localize` Select files `;let s;return s=$localize`Options`,[n,e,r,d,R,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,r){e&1&&(mg(0,"app-status-bar"),oT(1,U,3,1,"sh-stepper",6),Qi(2,"section"),mg(3,"router-outlet"),Hl()),e&2&&(DE(),iT(r.isFullWidthPage()?-1:1));},dependencies:[w$1,ee$1,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{f as default};
package/chunk-D_JCqKo8.js DELETED
@@ -1 +0,0 @@
1
- import {k}from'./chunk-w_Hs_Uxi.js';import {m,N as Nt$1}from'./chunk-CBdr-6_u.js';import {v as ve$1}from'./chunk-BZqhgAZ-.js';import {m as m$4}from'./chunk-B9zNFJSv.js';import {b as g1,T,aX as y,a5 as g,N as Nt,U as Ue$1,G as Ga,d as dw,f as N,v,b1 as m$1,aJ as ci,o as oT,i as iT,aD as zC,aH as m$2,I as Qg,Q as Qi,H as Hl,n as nC,D as DE,q as PC,j as mg,aa as Gl,z as gg,O as Og,aM as tb,P as Pg,au as Lg,aR as rb,aN as ob,av as eC,X as XT,ag as zg,bf as ig,c2 as uC,k as gT,F as Fg,S as Sd,x as xd,E as nm,c4 as sb,ab as C,a6 as be$1,bg as Q$1,g as g$1,m as m$3,aP as Ul,aQ as Wl,t as tC,ac as h1,C as Bu,s as sm,l as HC,p as DD,w as im,y as TD,_ as _t,a3 as QC}from'./main-PXGZLKMN.js';import {d}from'./chunk-DQW8lSiz.js';import {a as at}from'./chunk-B-fklW6A.js';import {C as C$1}from'./chunk-MvQwR7nW.js';import {O}from'./chunk-SycscfJp.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {B as Bn,Z as Ze$1,e as en,R as Rn,J as Jt}from'./chunk-Drc5kcUX.js';function Y(t,n){if(t&1&&PC(0),t&2){let e=nC(3);Gl(" ",e.statusData().actionText," - ");}}function Z$1(t,n){t&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function ee$1(t,n){t&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function te(t,n){if(t&1){let e=gT();Qi(0,"div",9)(1,"button",10),Fg("click",function(u){Sd(e);let F=nC(4);return xd(F.copyToClipboard(u,F.tooltipText()))}),oT(2,Z$1,2,0,"sh-icon")(3,ee$1,2,0,"sh-icon"),PC(4," Copy "),Hl(),Qi(5,"p",11),PC(6),Hl()();}if(t&2){let e=nC(4);DE(),gg("color",e.copied()?"success":null),DE(),iT(e.copied()===true?2:3),DE(4),nm(e.tooltipText());}}function ne(t,n){if(t&1&&(Qi(0,"div",8),PC(1),Hl(),ig(2,te,7,3,"ng-template",null,0,sb)),t&2){let e=uC(3),s=nC(3);gg("shTooltip",e),DE(),Gl(" ",s.statusData().fileStatusText," ");}}function ie(t,n){if(t&1&&(Qi(0,"div"),oT(1,Y,1,1),PC(2),Hl(),oT(3,ne,4,2),mg(4,"sh-progress-bar",7)),t&2){let e=nC(2);DE(),iT(e.backupId()===null?1:-1),DE(),Gl(" ",e.statusData().statusText," "),DE(),iT(e.statusData()?.BackendFileSize?3:-1),DE(),gg("value",e.statusData().progress*100);}}function oe(t,n){if(t&1&&(Qi(0,"div",5),Og(1,1),mg(2,"sh-icon"),tb(3,"relativeTime"),tb(4,"date"),Pg(),Hl()),t&2){let e=nC(2);DE(4),Lg(e.nextBackup().backup?.Backup?.Name)(rb(3,3,e.nextBackup().time))(ob(4,5,e.nextBackup().time,"shortTime")),eC(1);}}function ae(t,n){t&1&&(Qi(0,"div",5),XT(1,2),Hl());}function se(t,n){t&1&&(Qi(0,"div",6),Og(1,3),mg(2,"sh-spinner"),Pg(),Hl()),t&2&&(DE(2),zg("--spinner-size","12px")("--spinner-thickness","2px"));}function re(t,n){if(t&1&&(Qi(0,"div",4),oT(1,ie,5,4)(2,oe,5,8,"div",5)(3,ae,2,0,"div",5)(4,se,3,4,"div",6),Hl()),t&2){let e=nC();DE(),iT(e.isActive()?1:!e.backupId()&&(e.nextBackup().backup||e.nextBackup().time)?2:!e.backupId()&&!e.serverState()?.ActiveTask?3:e.backupId()?-1:4);}}var W$1=class t{backupId=g1(null);#e=T(y);#t=T(g);statusData=this.#e.statusData;serverState=this.#e.serverState;isActive=Nt(()=>this.#e.runningBackupId()!==null);isTargetRunningTask=Nt(()=>{let n=this.backupId();return n?String(this.#e.runningBackupId())===String(n):true});isVisible=Nt(()=>this.backupId()?this.isActive()?this.isTargetRunningTask():false:true);nextBackup=Nt(()=>{this.#t.backups();return {backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}});tooltipText=Nt(()=>{let n=this.statusData();return n?.CurrentFilename?`${n.CurrentFilename}`:""});copied=Ue$1(false);copiedTimeout;copyToClipboard(n,e){n.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(true),this.copiedTimeout=setTimeout(()=>{this.copied.set(false);},2e3);}tooltipTrigger=Ue$1(true);tooltipTriggerEffect=Ga(()=>{this.tooltipText(),this.tooltipTrigger.update(n=>!n),this.copiedTimeout&&(clearTimeout(this.copiedTimeout),this.copiedTimeout=void 0,this.copied.set(false));});static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-backup-progress"]],hostVars:2,hostBindings:function(e,s){e&2&&Qg("is-visible",s.isVisible());},inputs:{backupId:[1,"backupId"]},features:[zC([m$2])],decls:1,vars:1,consts:()=>{let n;n=$localize` ${"\uFFFD0\uFFFD"}:INTERPOLATION: - ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:clock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: at ${"\uFFFD2\uFFFD"}:INTERPOLATION_2: `;let e;e=$localize`No scheduled tasks`;let s;return s=$localize` Loading ${"\uFFFD#2\uFFFD"}:START_TAG_SH_SPINNER:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_SPINNER:`,[["fileStatusTooltip",""],n,e,s,[1,"progress-section"],[1,"label"],[1,"label","label-loading"],[1,"raised","primary",3,"value"],[1,"file-status-text",3,"shTooltip"],[1,"tooltip-status-content"],["shButton","","size","small",3,"click","color"],[1,"tooltip-file-status-text"]]},template:function(e,s){e&1&&oT(0,re,5,1,"div",4),e&2&&iT(s.isVisible()?0:-1);},dependencies:[N,v,m,d,at,m$1,ci],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}[_nghost-%COMP%]:not(.is-visible){display:none}.file-status-text[_ngcontent-%COMP%]{color:var(--base-8)}.file-status-text[_ngcontent-%COMP%]:empty{display:none}.tooltip-file-status-text[_ngcontent-%COMP%]{overflow-wrap:break-word;word-break:break-word;display:inline-block;margin-bottom:.25rem}.tooltip-status-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.progress-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:0;min-width:18.75rem;flex:1 0}.progress-section[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{margin-top:.25rem}app-status-bar[_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%], app-status-bar [_nghost-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;max-width:initial;margin-top:0}.label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.label-loading[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:.25rem}"]})};function he(o,t){o&1&&(Qi(0,"sh-icon",2),PC(1,"x-bold"),Hl());}function ye(o,t){o&1&&(Qi(0,"sh-icon",3),PC(1,"list-bold"),Hl());}function be(o,t){if(o&1){let n=gT();Qi(0,"button",1),Fg("click",function(){Sd(n);let i=nC();return xd(i.toggleNav())}),oT(1,he,2,0,"sh-icon",2)(2,ye,2,0,"sh-icon",3),Hl();}if(o&2){let n=nC();DE(),iT(n.isNavOpen()?1:2);}}var w=class o{#e=T(m$4);isNavOpen=this.#e.isNavOpen;isMobile=this.#e.isMobile;toggleNav(){this.#e.toggleNav();}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=dw({type:o,selectors:[["app-mobile-menu-toggle"]],decls:1,vars:1,consts:[["shButton","",1,"small","toggle-sidebar","ghost"],["shButton","",1,"small","toggle-sidebar","ghost",3,"click"],[1,"cross"],[1,"burger"]],template:function(n,e){n&1&&oT(0,be,3,1,"button",0),n&2&&iT(e.isMobile()?0:-1);},dependencies:[v,N],styles:["[_nghost-%COMP%]{display:contents}.toggle-sidebar[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center}.toggle-sidebar[_ngcontent-%COMP%] .cross[_ngcontent-%COMP%], .toggle-sidebar[_ngcontent-%COMP%] .burger[_ngcontent-%COMP%]{opacity:1;transition:opacity 124ms linear;margin:0}.toggle-sidebar[_ngcontent-%COMP%] .cross.hidden[_ngcontent-%COMP%], .toggle-sidebar[_ngcontent-%COMP%] .burger.hidden[_ngcontent-%COMP%]{opacity:0}"]})};var Ie=()=>["/connect/logon"];function ve(o,t){o&1&&(Og(0,0,1),mg(1,"div",9),Pg());}function Be(o,t){o&1&&(Og(0,0,2),mg(1,"div",10),Pg());}function ke(o,t){if(o&1){let n=gT();Qi(0,"div",8),Fg("click",function(){Sd(n);let i=nC();return xd(i.resetAndRetry())}),Og(1,0),oT(2,ve,2,0)(3,Be,2,0),Pg(),Hl();}if(o&2){let n=nC();DE(2),iT(n.resetting()?2:3);}}function Le(o,t){o&1&&(Qi(0,"div",6),Og(1,1),mg(2,"div",11),Pg(),Hl()),o&2&&gg("routerLink",QC(1,Ie));}function Ge(o,t){o&1&&(Qi(0,"div",6),Og(1,2),mg(2,"div",10),Pg(),Hl()),o&2&&gg("routerLink",QC(1,Ie));}function xe(o,t){if(o&1){let n=gT();Qi(0,"div",7),Og(1,3),Qi(2,"sh-icon",12),Fg("click",function(){Sd(n);let i=nC();return xd(i.cancel())}),Hl(),Qi(3,"div",13),Fg("click",function(){Sd(n);let i=nC();return xd(i.claim())}),Hl(),mg(4,"div",14),Pg(),Hl();}}function $e(o,t){if(o&1){let n=gT();Qi(0,"div",8),Fg("click",function(){Sd(n);let i=nC();return xd(i.openConsole())}),Og(1,4),mg(2,"div",15),Pg(),Hl();}}var G=class o{#e=T(C$1);state=this.#e.state;resetting=Ue$1(false);stateEffect=Ga(()=>{let t=this.#e.state(),n=this.resetting();t==="registered"&&n&&(this.resetting.set(false),this.#e.beginRemoteRegistration());});ngOnInit(){this.#e.refreshRemoteControlStatus();}claim(){let t=this.#e.claimUrl();t&&window.open(t,"_blank");}cancel(){this.#e.cancelRemoteRegistration();}resetAndRetry(){this.resetting.set(true),this.#e.cancelRemoteRegistration();}openConsole(){this.#e.openConsole();}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=dw({type:o,selectors:[["app-remote-connectivity-status"]],decls:5,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Resetting ${"\uFFFD#1:1\uFFFD"}:START_TAG_DIV:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE: Click to connect ${"\uFFFD#1:2\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=tC(t);let n;n=$localize` Connecting ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let e;e=$localize` Click to register ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`;let i;i=$localize`Cancel registration`;let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:x-circle${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD#3\uFFFD"}:START_TAG_DIV:Click to claim${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_DIV_1:${"[\uFFFD/#3\uFFFD|\uFFFD/#4\uFFFD]"}:CLOSE_TAG_DIV:`,a=tC(a);let u;return u=$localize` Connected ${"\uFFFD#2\uFFFD"}:START_TAG_DIV:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_DIV:`,[t,n,e,a,u,[1,"connectivity-status"],[1,"connectivity-status",3,"routerLink"],[1,"connectivity-status","claim"],[1,"connectivity-status",3,"click"],[1,"status","blinking"],[1,"status"],[1,"status","warning","blinking"],["shTooltip",i,3,"click"],[1,"claim",3,"click"],[1,"status","success","blinking"],[1,"status","success"]]},template:function(n,e){if(n&1&&oT(0,ke,4,1,"div",5)(1,Le,3,2,"div",6)(2,Ge,3,2,"div",6)(3,xe,5,0,"div",7)(4,$e,3,0,"div",5),n&2){let i=e.state()==="unknown"||e.state()==="inactive"||e.state()==="registeringfaulted",a=e.state()==="registeringfaulted",u=e.state()==="registering",r=e.state()==="registered",M=e.state()==="connected"||e.state()==="disabled"||e.state()==="connecting";iT(a?0:u?1:i?2:r?3:M?4:-1);}},dependencies:[_t,N,at],styles:["[_nghost-%COMP%]{display:flex;align-items:center;padding:0 .75rem}@media only screen and (max-width:768px){[_nghost-%COMP%]{padding:0}}.hide-text[_nghost-%COMP%]{font-size:0}.in-menu[_nghost-%COMP%]{padding:.75rem;border-bottom:1px solid var(--base-4)}.connectivity-status[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;cursor:pointer}.connectivity-status[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%]{display:flex;gap:.5rem;cursor:pointer}.connectivity-status.claim[_ngcontent-%COMP%]:hover{color:inherit}.connectivity-status.claim[_ngcontent-%COMP%] .claim[_ngcontent-%COMP%]:hover{color:var(--primary-8)}.connectivity-status.claim[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]:hover{color:var(--error-8)}.status[_ngcontent-%COMP%]{width:.625rem;height:.625rem;border-radius:50%;background-color:var(--base-4)}.status.success[_ngcontent-%COMP%]{background-color:var(--success-8)}.status.warning[_ngcontent-%COMP%]{background-color:var(--warn-8)}.status.blinking[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_blinking 1s infinite}@keyframes _ngcontent-%COMP%_blinking{0%{opacity:.2}50%{opacity:1}to{opacity:.2}}"]})};var Re={Byte:"B",KByte:"KB",MByte:"MB",GByte:"GB",TByte:"TB",PByte:"PB"},Ue=["mbps","gbps"],Pe=8,Z=1024,V=Z*1024,q=V*1024,Q=q*1024,Ae=Q*1024,we={B:1,KB:Z,MB:V,GB:q,TB:Q,PB:Ae},Ve=1e3,j=Ve*1e3,W=j*1e3,He=[{threshold:Ae,unitPrefix:"PByte"},{threshold:Q,unitPrefix:"TByte"},{threshold:q,unitPrefix:"GByte"},{threshold:V,unitPrefix:"MByte"},{threshold:Z,unitPrefix:"KByte"},{threshold:1,unitPrefix:"Byte"}],x=class o{#e=T(C);closed=h1();isSubmitting=Ue$1(false);sizeOptions=Ue$1([...Ue]);maxUpload=Ue$1(0);maxDownload=Ue$1(0);maxUploadUnit=Ue$1("mbps");maxDownloadUnit=Ue$1("mbps");ngOnInit(){this.init();}convertToBitsPerSecondUnits(t,n){let i=t*(we[n.toUpperCase()]||V)*Pe;return i===0?{value:0,unit:"mbps"}:i>=W?{value:parseFloat((i/W).toFixed(2)),unit:"gbps"}:{value:parseFloat((i/j).toFixed(2)),unit:"mbps"}}convertFromBitsPerSecondUnits(t,n){let e=0;switch(n){case "gbps":e=t*W;break;case "mbps":e=t*j;break}let i=e/Pe;if(i===0)return {valueForApi:0,unitPrefixForApi:"Byte"};for(let{threshold:a,unitPrefix:u}of He)if(i>=a)return {valueForApi:Math.round(i/a),unitPrefixForApi:u};return {valueForApi:Math.round(i),unitPrefixForApi:"Byte"}}init(){this.#e.getApiV1Serversettings().subscribe({next:t=>{let n=t?.["max-upload-speed"],e=t?.["max-download-speed"];if(n&&n!==""){let i=n.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let a=parseFloat(i[1]),u=i[2],r=this.convertToBitsPerSecondUnits(a,u);this.maxUpload.set(r.value),this.maxUploadUnit.set(r.unit);}else console.warn("Unexpected max-upload-speed format from API:",n),this.resetUpload();}else this.resetUpload();if(e&&e!==""){let i=e.match(/^(\d+(?:\.\d+)?)([A-Za-z]+)$/);if(i){let a=parseFloat(i[1]),u=i[2],r=this.convertToBitsPerSecondUnits(a,u);this.maxDownload.set(r.value),this.maxDownloadUnit.set(r.unit);}else console.warn("Unexpected max-download-speed format from API:",e),this.resetDownload();}else this.resetDownload();},error:t=>{console.error("Failed to get server settings:",t),this.resetDownload(),this.resetUpload();}});}resetDownload(){this.maxDownload.set(0),this.maxDownloadUnit.set("mbps");}resetUpload(){this.maxUpload.set(0),this.maxUploadUnit.set("mbps");}blockDecimalKeys(t){if([".",","].includes(t.key))return t.preventDefault()}cleanupInputAfterPasting(t){t.preventDefault();let n=t.clipboardData?.getData("text/plain");if(!n)return;let e=n.replaceAll(/[\.,]/g,"");t.target.value=e;}submit(){this.isSubmitting.set(true);let t="",n="",e=this.maxUpload()??0,i=this.maxUploadUnit(),a=this.maxDownload()??0,u=this.maxDownloadUnit();if(e>0){let{valueForApi:r,unitPrefixForApi:M}=this.convertFromBitsPerSecondUnits(e,i),h=Re[M];h?t=`${r}${h}`:console.error(`Invalid unit prefix for API submission (upload): ${M}. Defaulting to empty string.`);}if(a){let{valueForApi:r,unitPrefixForApi:M}=this.convertFromBitsPerSecondUnits(a,u),h=Re[M];h?n=`${r}${h}`:console.error(`Invalid unit prefix for API submission (download): ${M}. Defaulting to empty string.`);}this.#e.patchApiV1Serversettings({requestBody:{"max-upload-speed":t,"max-download-speed":n}}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:()=>{this.closed.emit(true);},error:r=>{console.error("Failed to submit throttle settings:",r);}});}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=dw({type:o,selectors:[["app-throttle-settings-dialog"]],outputs:{closed:"closed"},decls:26,vars:10,consts:()=>{let t;t=$localize`Throttle network speed`;let n;n=$localize`We will round bits to the nearest byte value.`;let e;e=$localize`Max upload speed`;let i;i=$localize`Max download speed`;let a;a=$localize`Cancel`;let u;return u=$localize` Update settings `,[t,n,e,i,a,u,["content",""],[1,"column"],[1,"field-row"],["type","number",3,"paste","keydown","ngModelChange","ngModel"],[3,"isClearable","options"],["type","text",3,"ngModelChange","ngModel"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(n,e){n&1&&(Qi(0,"header")(1,"h3"),XT(2,0),Hl(),Qi(3,"p"),XT(4,1),Hl()(),Qi(5,"div",6)(6,"div",7)(7,"div",8)(8,"label"),XT(9,2),Hl(),Qi(10,"sh-form-field")(11,"input",9),Fg("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),sm("ngModelChange",function(a){return HC(e.maxUpload,a)||(e.maxUpload=a),a}),Hl(),DD(),Hl(),Qi(12,"sh-select",10)(13,"input",11),sm("ngModelChange",function(a){return HC(e.maxUploadUnit,a)||(e.maxUploadUnit=a),a}),Hl(),DD(),Hl()(),Qi(14,"div",8)(15,"label"),XT(16,3),Hl(),Qi(17,"sh-form-field")(18,"input",9),Fg("paste",function(a){return e.cleanupInputAfterPasting(a)})("keydown",function(a){return e.blockDecimalKeys(a)}),sm("ngModelChange",function(a){return HC(e.maxDownload,a)||(e.maxDownload=a),a}),Hl(),DD(),Hl(),Qi(19,"sh-select",10)(20,"input",11),sm("ngModelChange",function(a){return HC(e.maxDownloadUnit,a)||(e.maxDownloadUnit=a),a}),Hl(),DD(),Hl()()()(),Qi(21,"footer",12)(22,"button",13),Fg("click",function(){return e.closed.emit(false)}),XT(23,4),Hl(),Qi(24,"button",14),Fg("click",function(){return e.submit()}),XT(25,5),Hl()()),n&2&&(DE(11),im("ngModel",e.maxUpload),TD(),DE(),gg("isClearable",false)("options",e.sizeOptions()),DE(),im("ngModel",e.maxUploadUnit),TD(),DE(5),im("ngModel",e.maxDownload),TD(),DE(),gg("isClearable",false)("options",e.sizeOptions()),DE(),im("ngModel",e.maxDownloadUnit),TD(),DE(4),Qg("loading",e.isSubmitting()));},dependencies:[Bn,Ze$1,en,Rn,Jt,Fe,Nt$1,v],styles:['[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:1rem;gap:.5rem;margin-bottom:1rem}.column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.field-row[_ngcontent-%COMP%]{display:grid;grid-template-areas:"label label" "input select";grid-template-columns:1fr auto;align-items:center;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}.field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:select}']})};function Ye(o,t){o&1&&mg(0,"app-remote-connectivity-status");}function ze(o,t){if(o&1){let n=gT();Qi(0,"button",7),Fg("click",function(){Sd(n);let i=nC(2);return xd(i.abort())}),Og(1,1),mg(2,"sh-icon"),Pg(),Hl();}}function Je(o,t){if(o&1){let n=gT();Qi(0,"button",7),Fg("click",function(){Sd(n);let i=nC(2);return xd(i.stop())}),Og(1,2),mg(2,"sh-icon"),Pg(),Hl();}}function Xe(o,t){if(o&1&&oT(0,ze,3,0,"button",14)(1,Je,3,0,"button",14),o&2){let n=nC();iT(n.isStopping()?0:1);}}function Ke(o,t){o&1&&(Og(0,0,1),mg(1,"sh-icon"),Pg());}function We(o,t){o&1&&(Og(0,0,2),mg(1,"sh-icon"),Pg());}function je(o,t){o&1&&mg(0,"app-remote-connectivity-status",10);}function Ze(o,t){o&1&&mg(0,"app-remote-connectivity-status",12);}function qe(o,t){if(o&1){let n=gT();Qi(0,"button",13),Fg("click",function(){Sd(n);let i=nC();return xd(i.isStopping()?i.abort():i.stop())}),Qi(1,"sh-icon"),PC(2),Hl(),PC(3),Hl();}if(o&2){let n=nC();DE(2),nm(n.isStopping()?"skull":"stop"),DE(),Gl(" ",n.isStopping()?"Abort":"Stop"," ");}}var ee=class o{#e=T(C);#t=T(y);#n=T(be$1);#a=T(Q$1);#i=T(g$1);#s=T(m$3);#l=T(O);clientIsRunning=this.#t.clientIsRunning;isResuming=this.#t.isResuming;runningTask=Nt(()=>this.#a.serverState()?.ActiveTask?.Item1);isStopping=Nt(()=>this.runningTask()==this.#o());#o=Ue$1(-1);isUsingRelay=this.#i.relayIsEnabled;hideConsoleConnectionStatus=this.#l.isConsoleConnectionStatusHidden;openThrottleSettingsDialog(){this.#n.open(x,{maxWidth:"550px",width:"100%"});}openPauseDialog(){this.#n.open(k,{maxWidth:"550px",width:"100%"});}pauseResume(){if(this.clientIsRunning()){this.openPauseDialog();return}this.#t.pauseResume().subscribe();}stop(){let t=this.runningTask();t&&(this.#o.set(t),this.#e.postApiV1TaskByTaskidStop({taskid:t}).subscribe());}abort(){let t=this.runningTask();t&&this.#e.postApiV1TaskByTaskidAbort({taskid:t}).subscribe();}ngAfterViewInit(){let t=this.#i.relayIsEnabled()||!this.#s.hasWebSocket()?"longpoll":"websocket";this.#t.setConnectionMethod(t);}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=dw({type:o,selectors:[["app-status-bar"]],decls:31,vars:10,consts:()=>{let t;t=$localize`${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:pause${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Pause ${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*10:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:play${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Resume ${"\uFFFD/*10:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=tC(t);let n;n=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:skull${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Abort `;let e;return e=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:stop${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Stop `,[t,n,e,[1,"current-backup"],[1,"global-progress"],[1,"current-backup-actions"],[1,"desktop-actions"],["shButton","",3,"click"],[1,"mobile-actions"],["shButton","",1,"small","menu-mobile-toggle"],[1,"hide-text"],["menu",""],[1,"in-menu"],[3,"click"],["shButton",""]]},template:function(n,e){n&1&&(Qi(0,"div",3),mg(1,"app-mobile-menu-toggle")(2,"app-backup-progress",4),Qi(3,"div",5)(4,"div",6),oT(5,Ye,1,0,"app-remote-connectivity-status"),oT(6,Xe,2,1),Qi(7,"button",7),Fg("click",function(){return e.pauseResume()}),Og(8,0),oT(9,Ke,2,0)(10,We,2,0),Pg(),Hl(),Qi(11,"button",7),Fg("click",function(){return e.openThrottleSettingsDialog()}),Qi(12,"sh-icon"),PC(13,"speedometer"),Hl()()(),Qi(14,"div",8)(15,"sh-menu")(16,"button",9),oT(17,je,1,0,"app-remote-connectivity-status",10),Qi(18,"sh-icon"),PC(19,"dots-three-vertical-bold"),Hl()(),Ul(20,11),oT(21,Ze,1,0,"app-remote-connectivity-status",12),oT(22,qe,4,2,"button"),Qi(23,"button",13),Fg("click",function(){return e.pauseResume()}),Qi(24,"sh-icon"),PC(25),Hl(),PC(26),Hl(),Qi(27,"button",13),Fg("click",function(){return e.openThrottleSettingsDialog()}),Qi(28,"sh-icon"),PC(29,"speedometer"),Hl(),PC(30," Throttle Settings "),Hl(),Wl(),Hl()()()()),n&2&&(DE(5),iT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?5:-1),DE(),iT(e.runningTask()?6:-1),DE(),Qg("loading",e.isResuming()),DE(2),iT(e.clientIsRunning()?9:10),DE(8),iT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?17:-1),DE(4),iT(!e.isUsingRelay()&&!e.hideConsoleConnectionStatus()?21:-1),DE(),iT(e.runningTask()?22:-1),DE(3),nm(e.clientIsRunning()?"pause":"play"),DE(),Gl(" ",e.clientIsRunning()?"Pause":"Resume"," "));},dependencies:[G,N,v,ve$1,w,W$1],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1rem;min-height:3.875rem;border-bottom:1px solid var(--base-4);position:sticky;top:0;z-index:2000;background:var(--base-1)}[_nghost-%COMP%]:has(sh-progress-bar){padding:1rem 1rem 1.5rem}.current-backup[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;gap:.5rem}.global-progress[_ngcontent-%COMP%]{flex:1 0;min-width:18.75rem}.current-backup-actions[_ngcontent-%COMP%], .current-backup-actions[_ngcontent-%COMP%] .desktop-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}@media only screen and (max-width:768px){.current-backup-actions[_ngcontent-%COMP%] .desktop-actions[_ngcontent-%COMP%]{display:none}}.current-backup-actions[_ngcontent-%COMP%] .mobile-actions[_ngcontent-%COMP%]{display:none}@media only screen and (max-width:768px){.current-backup-actions[_ngcontent-%COMP%] .mobile-actions[_ngcontent-%COMP%]{display:flex}}.current-backup-actions[_ngcontent-%COMP%] .menu-mobile-toggle[_ngcontent-%COMP%]{position:relative}.current-backup-actions[_ngcontent-%COMP%] .menu-mobile-toggle[_ngcontent-%COMP%] app-remote-connectivity-status[_ngcontent-%COMP%]{position:absolute;top:-.25rem;right:-.25rem}.menu-status-item[_ngcontent-%COMP%]{padding:.5rem 1rem;display:flex;flex-direction:column;gap:.25rem;border-bottom:1px solid var(--base-4);margin-bottom:.25rem}.menu-status-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem;font-size:.875rem}"]})};export{W$1 as W,ee as e};
package/chunk-Drc5kcUX.js DELETED
@@ -1 +0,0 @@
1
- import {ai as m$1,aj as l,bx as Kr,br as x$1,by as pw,bz as ad,b5 as mw,bA as oo,bB as yD,ae as Jr,b9 as rg,aD as zC,F as Fg,bC as Uv,I as Qg,bD as Ze$1,bE as Te,bF as Cv,bG as Iw,bH as D1,c as me$1,N as Nt$1,U as Ue$1,T,bI as fe,bJ as vy,aG as pt$1,bK as s,r as rt$1,bL as Z,G as Ga,bM as T1,bN as Ko,bO as D$1,bP as Pl,bQ as Ae$1,aC as hg}from'./main-PXGZLKMN.js';var ze=(()=>{class n{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,i){this._renderer=e,this._elementRef=i;}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i);}registerOnTouched(e){this.onTouched=e;}registerOnChange(e){this.onChange=e;}setDisabledState(e){this.setProperty("disabled",e);}static \u0275fac=function(i){return new(i||n)(oo(yD),oo(Jr))};static \u0275dir=mw({type:n})}return n})(),W=(()=>{class n extends ze{static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,features:[rg]})}return n})(),D=new x$1(""),_t={provide:D,useExisting:Ko(()=>yt),multi:true},yt=(()=>{class n extends W{writeValue(e){this.setProperty("checked",e);}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["input","type","checkbox","formControlName","",3,"ngNoCva",""],["input","type","checkbox","formControl","",3,"ngNoCva",""],["input","type","checkbox","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()});},standalone:false,features:[zC([_t]),rg]})}return n})(),Ct={provide:D,useExisting:Ko(()=>Ze),multi:true};function Vt(){let n=s()?s().getUserAgent():"";return /android (\d+)/.test(n.toLowerCase())}var Dt=new x$1(""),Ze=(()=>{class n extends ze{_compositionMode;_composing=false;constructor(e,i,r){super(e,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!Vt());}writeValue(e){let i=e??"";this.setProperty("value",i);}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e);}_compositionStart(){this._composing=true;}_compositionEnd(e){this._composing=false,this._compositionMode&&this.onChange(e);}static \u0275fac=function(i){return new(i||n)(oo(yD),oo(Jr),oo(Dt,8))};static \u0275dir=mw({type:n,selectors:[["input","formControlName","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControlName","",3,"ngNoCva",""],["input","formControl","",3,"type","checkbox",3,"ngNoCva",""],["textarea","formControl","",3,"ngNoCva",""],["input","ngModel","",3,"type","checkbox",3,"ngNoCva",""],["textarea","ngModel","",3,"ngNoCva",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&Fg("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)});},standalone:false,features:[zC([Ct]),rg]})}return n})();function Ve(n){return n==null||De(n)===0}function De(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var b=new x$1(""),w=new x$1(""),bt=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,me=class{static min(t){return At(t)}static max(t){return Mt(t)}static required(t){return Xe(t)}static requiredTrue(t){return Et(t)}static email(t){return Ft(t)}static minLength(t){return wt(t)}static maxLength(t){return Nt(t)}static pattern(t){return St(t)}static nullValidator(t){return J()}static compose(t){return tt(t)}static composeAsync(t){return nt(t)}};function At(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e<n?{min:{min:n,actual:t.value}}:null}}function Mt(n){return t=>{if(t.value==null||n==null)return null;let e=parseFloat(t.value);return !isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}function Xe(n){return Ve(n.value)?{required:true}:null}function Et(n){return n.value===true?null:{required:true}}function Ft(n){return Ve(n.value)||bt.test(n.value)?null:{email:true}}function wt(n){return t=>{let e=t.value?.length??De(t.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function Nt(n){return t=>{let e=t.value?.length??De(t.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function St(n){if(!n)return J;let t,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(Ve(i.value))return null;let r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function J(n){return null}function Ye(n){return n!=null}function Ke(n){return Pl(n)?Ae$1(n):n}function Je(n){let t={};return n.forEach(e=>{t=e!=null?l(l({},t),e):t;}),Object.keys(t).length===0?null:t}function Qe(n,t){return t.map(e=>e(n))}function It(n){return !n.validate}function et(n){return n.map(t=>It(t)?t:e=>t.validate(e))}function tt(n){if(!n)return null;let t=n.filter(Ye);return t.length==0?null:function(e){return Je(Qe(e,t))}}function be(n){return n!=null?tt(et(n)):null}function nt(n){if(!n)return null;let t=n.filter(Ye);return t.length==0?null:function(e){let i=Qe(e,t).map(Ke);return vy(i).pipe(pt$1(Je))}}function Ae(n){return n!=null?nt(et(n)):null}function Ge(n,t){return n===null?[t]:Array.isArray(n)?[...n,t]:[n,t]}function it(n){return n._rawValidators}function rt(n){return n._rawAsyncValidators}function ve(n){return n?Array.isArray(n)?n:[n]:[]}function Q(n,t){return Array.isArray(n)?n.includes(t):n===t}function Ue(n,t){let e=ve(t);return ve(n).forEach(r=>{Q(e,r)||e.push(r);}),e}function He(n,t){return ve(t).filter(e=>!Q(n,e))}var ee=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=be(this._rawValidators);}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Ae(this._rawAsyncValidators);}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t);}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[];}reset(t=void 0){this.control?.reset(t);}hasError(t,e){return this.control?this.control.hasError(t,e):false}getError(t,e){return this.control?this.control.getError(t,e):null}},d=class extends ee{name;get formDirective(){return null}get path(){return null}};var j="VALID",K="INVALID",I="PENDING",B="DISABLED",V=class{},te=class extends V{value;source;constructor(t,e){super(),this.value=t,this.source=e;}},U=class extends V{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e;}},H=class extends V{touched;source;constructor(t,e){super(),this.touched=t,this.source=e;}},O=class extends V{status;source;constructor(t,e){super(),this.status=t,this.source=e;}},ne=class extends V{source;constructor(t){super(),this.source=t;}},F=class extends V{source;constructor(t){super(),this.source=t;}};function Me(n){return (le(n)?n.validators:n)||null}function Ot(n){return Array.isArray(n)?be(n):n||null}function Ee(n,t){return (le(t)?t.asyncValidators:n)||null}function xt(n){return Array.isArray(n)?Ae(n):n||null}function le(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function st(n,t,e){let i=n.controls;if(!(t?Object.keys(i):i).length)throw new D$1(1e3,"");if(!at(i,e))throw new D$1(1001,"")}function ot(n,t,e){n._forEachChild((i,r)=>{if(e[r]===void 0)throw new D$1(-1002,"")});}var x=class{_pendingDirty=false;_hasOwnPendingAsyncValidator=null;_pendingTouched=false;_onCollectionChange=()=>{};_updateOn;_hasRequired=Ue$1(false);_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e);}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t,this._updateHasRequiredValidator();}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t;}get parent(){return this._parent}get status(){return me$1(this.statusReactive)}set status(t){me$1(()=>this.statusReactive.set(t));}_status=Nt$1(()=>this.statusReactive());statusReactive=Ue$1(void 0);get valid(){return this.status===j}get invalid(){return this.status===K}get pending(){return this.status===I}get disabled(){return this.status===B}get enabled(){return this.status!==B}errors;get pristine(){return me$1(this.pristineReactive)}set pristine(t){me$1(()=>this.pristineReactive.set(t));}_pristine=Nt$1(()=>this.pristineReactive());pristineReactive=Ue$1(true);get dirty(){return !this.pristine}get touched(){return me$1(this.touchedReactive)}set touched(t){me$1(()=>this.touchedReactive.set(t));}_touched=Nt$1(()=>this.touchedReactive());touchedReactive=Ue$1(false);get untouched(){return !this.touched}_events=new fe;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t);}setAsyncValidators(t){this._assignAsyncValidators(t);}addValidators(t){this.setValidators(Ue(t,this._rawValidators));}addAsyncValidators(t){this.setAsyncValidators(Ue(t,this._rawAsyncValidators));}removeValidators(t){this.setValidators(He(t,this._rawValidators));}removeAsyncValidators(t){this.setAsyncValidators(He(t,this._rawAsyncValidators));}hasValidator(t){return Q(this._rawValidators,t)}hasAsyncValidator(t){return Q(this._rawAsyncValidators,t)}clearValidators(){this.validator=null;}clearAsyncValidators(){this.asyncValidator=null;}markAsTouched(t={}){let e=this.touched===false;this.touched=true;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsTouched(m$1(l({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new H(true,i));}markAllAsDirty(t={}){this.markAsDirty({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t));}markAllAsTouched(t={}){this.markAsTouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t));}markAsUntouched(t={}){let e=this.touched===true;this.touched=false,this._pendingTouched=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:true,emitEvent:t.emitEvent,sourceControl:i});}),t.onlySelf||this._parent?._updateTouched(t,i),e&&t.emitEvent!==false&&this._events.next(new H(false,i));}markAsDirty(t={}){let e=this.pristine===true;this.pristine=false;let i=t.sourceControl??this;t.onlySelf||this._parent?.markAsDirty(m$1(l({},t),{sourceControl:i})),e&&t.emitEvent!==false&&this._events.next(new U(false,i));}markAsPristine(t={}){let e=this.pristine===false;this.pristine=true,this._pendingDirty=false;let i=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:true,emitEvent:t.emitEvent});}),t.onlySelf||this._parent?._updatePristine(t,i),e&&t.emitEvent!==false&&this._events.next(new U(true,i));}markAsPending(t={}){this.status=I;let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new O(this.status,e)),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.markAsPending(m$1(l({},t),{sourceControl:e}));}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=B,this.errors=null,this._forEachChild(r=>{r.disable(m$1(l({},t),{onlySelf:true}));}),this._updateValue();let i=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new te(this.value,i)),this._events.next(new O(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(m$1(l({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(true));}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=j,this._forEachChild(i=>{i.enable(m$1(l({},t),{onlySelf:true}));}),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent}),this._updateAncestors(m$1(l({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(false));}_updateAncestors(t,e){t.onlySelf||(this._parent?.updateValueAndValidity(t),t.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e));}setParent(t){this._parent=t;}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===j||this.status===I)&&this._runAsyncValidator(i,t.emitEvent);}let e=t.sourceControl??this;t.emitEvent!==false&&(this._events.next(new te(this.value,e)),this._events.next(new O(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),t.onlySelf||this._parent?.updateValueAndValidity(m$1(l({},t),{sourceControl:e}));}_updateTreeValidity(t={emitEvent:true}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:true,emitEvent:t.emitEvent});}_setInitialStatus(){this.status=this._allControlsDisabled()?B:j;}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=I,this._hasOwnPendingAsyncValidator={emitEvent:e!==false,shouldHaveEmitted:t!==false};let i=Ke(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t});});}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??false;return this._hasOwnPendingAsyncValidator=null,t}return false}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==false,this,e.shouldHaveEmitted);}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){let i=e?this.get(e):this;return i?.errors?i.errors[t]:null}hasError(t,e){return !!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,i){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||i)&&this._events.next(new O(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,i);}_initObservables(){this.valueChanges=new Ze$1,this.statusChanges=new Ze$1;}_calculateStatus(){return this._allControlsDisabled()?B:this.errors?K:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(I)?I:this._anyControlsHaveStatus(K)?K:j}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,t.onlySelf||this._parent?._updatePristine(t,e),r&&this._events.next(new U(this.pristine,e));}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new H(this.touched,e)),t.onlySelf||this._parent?._updateTouched(t,e);}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t;}_setUpdateStrategy(t){le(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn);}_parentMarkedDirty(t){return !t&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=Ot(this._rawValidators),this._updateHasRequiredValidator();}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=xt(this._rawAsyncValidators);}_updateHasRequiredValidator(){me$1(()=>this._hasRequired.set(this.hasValidator(me.required)));}};function at(n,t){return Object.hasOwn(n,t)}function Rt(n){return n.tagName==="INPUT"||n.tagName==="SELECT"||n.tagName==="TEXTAREA"}function Pt(n,t,e,i){switch(e){case "name":n.setAttribute(t,e,i);break;case "disabled":case "readonly":case "required":i?n.setAttribute(t,e,""):n.removeAttribute(t,e);break;case "max":case "min":case "minLength":case "maxLength":i!==void 0?n.setAttribute(t,e,i.toString()):n.removeAttribute(t,e);break}}var _e=class{kind;context;control;message;constructor({kind:t,context:e,control:i}){this.kind=t,this.context=e,this.control=i;}};var kt=(()=>{class n{_validator=J;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let i=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):J,this._onChange?.();}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e;}enabled(e){return e!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=mw({type:n,features:[Cv]})}return n})();var Tt={provide:b,useExisting:Ko(()=>lt),multi:true};var lt=(()=>{class n extends kt{required;inputName="required";normalizeInput=T1;createValidator=e=>Xe;enabled(e){return e}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&hg("required",r._enabled?"":null);},inputs:{required:"required"},standalone:false,features:[zC([Tt]),rg]})}return n})();var jt=new x$1(""),N=new x$1("",{factory:()=>q}),q="always";function ue(n,t){return [...t.path,n]}function ie(n,t,e=q){Fe(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(n.disabled),Gt(n,t),Ht(n,t),Ut(n,t),Bt(n,t);}function re(n,t,e=true){let i=()=>{};t?.valueAccessor?.registerOnChange(i),t?.valueAccessor?.registerOnTouched(i),oe(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}));}function se(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t);});}function Bt(n,t){if(t.valueAccessor.setDisabledState){let e=i=>{t.valueAccessor.setDisabledState(i);};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e);});}}function Fe(n,t){let e=it(n);t.validator!==null?n.setValidators(Ge(e,t.validator)):typeof e=="function"&&n.setValidators([e]);let i=rt(n);t.asyncValidator!==null?n.setAsyncValidators(Ge(i,t.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();se(t._rawValidators,r),se(t._rawAsyncValidators,r);}function oe(n,t){let e=false;if(n!==null){if(t.validator!==null){let r=it(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=true,n.setValidators(s));}}if(t.asyncValidator!==null){let r=rt(n);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=true,n.setAsyncValidators(s));}}}let i=()=>{};return se(t._rawValidators,i),se(t._rawAsyncValidators,i),e}function Gt(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=true,n._pendingDirty=true,n.updateOn==="change"&&ut(n,t);});}function Ut(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=true,n.updateOn==="blur"&&n._pendingChange&&ut(n,t),n.updateOn!=="submit"&&n.markAsTouched();});}function ut(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:false}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=false;}function Ht(n,t){let e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i);};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e);});}function dt(n,t){Fe(n,t);}function Lt(n,t){return oe(n,t)}function we(n,t){if(!n.hasOwnProperty("model"))return false;let e=n.model;return e.isFirstChange()?true:!Object.is(t,e.currentValue)}function Wt(n){return Object.getPrototypeOf(n.constructor)===W}function ct(n,t){n._syncPendingControls(),t.forEach(e=>{let i=e.control;i.updateOn==="submit"&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=false);});}function qt(n,t){if(!t)return null;let e,i,r;return t.forEach(s=>{s.constructor===Ze?e=s:Wt(s)?i=s:r=s;}),r||i||e||null}function $t(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}var Ne={provide:jt,useFactory:()=>{let n=T(m,{self:true});return {setParseErrors:t=>{n.setParseErrorSource(t);},set onReset(t){n.onReset=t;}}}},m=class extends ee{_parent=null;name=null;valueAccessor=null;isCustomControlBased=false;userOnReset;resetSubscription;set onReset(t){this.userOnReset=t,this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.control&&(this.resetSubscription=this.control.events.subscribe(e=>{e instanceof F&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription?.add(this.resetSubscription));}isNativeFormElement=false;rawValueAccessors;_selectedValueAccessor=null;get selectedValueAccessor(){return this._selectedValueAccessor??=qt(this,this.rawValueAccessors)}parseErrorsValidator=null;renderer;injector;requiredValidatorViaDi;subscription;customControlBindings=null;constructor(t,e,i){super(),this.injector=t,this.renderer=e,this.rawValueAccessors=i,this.injector?.get(rt$1)?.onDestroy(()=>{this.removeParseErrorsValidator(this.control),this.subscription?.unsubscribe();});}setupCustomControl(){this.subscription?.unsubscribe();let t=this.injector?.get(D1);if(!this.control||!t)return;let e=t.markForCheck.bind(t);this.subscription=new Z,this.subscription.add(this.control.valueChanges.subscribe(e)),this.subscription.add(this.control.statusChanges.subscribe(e)),this.resetSubscription?.unsubscribe(),this.resetSubscription=void 0,this.userOnReset&&(this.resetSubscription=this.control.events.subscribe(i=>{i instanceof F&&this.control&&this.userOnReset?.(this.control.value);}),this.subscription.add(this.resetSubscription)),this.parseErrorsValidator&&this.control.addValidators(this.parseErrorsValidator);}ngControlCreate(t){!t.nativeElement.hasAttribute?.("ngNoCva")&&(this.rawValueAccessors&&this.rawValueAccessors.length>0||this.valueAccessor!==null)||!t.customControl||(this.isCustomControlBased=true,t.listenToCustomControlModel(r=>{this.control?.setValue(r,{emitModelToViewChange:false}),this.control?.markAsDirty(),this.viewToModelUpdate(r);}),t.listenToCustomControlOutput("touch",()=>{this.control?.markAsTouched();}),this.customControlBindings={},this.isNativeFormElement=Rt(t.nativeElement),this.requiredValidatorViaDi=this._rawValidators.find(r=>r instanceof lt));}ngControlUpdate(t,e){if(!this.isCustomControlBased)return;let i=this.control,r=this.customControlBindings;Object.is(r.value,i.value)||(r.value=i.value,t.setCustomControlModelInput(i.value)),this.bindControlProperty(t,r,"touched",i.touched),this.bindControlProperty(t,r,"dirty",i.dirty),this.bindControlProperty(t,r,"valid",i.valid),this.bindControlProperty(t,r,"invalid",i.invalid),this.bindControlProperty(t,r,"pending",i.pending),this.bindControlProperty(t,r,"disabled",i.disabled),this.shouldBindRequired&&this.bindControlProperty(t,r,"required",this.isRequired);let s=i.errors;if(r.errors!==s){r.errors=s;let a=this._convertErrors(s);t.setInputOnDirectives("errors",a);}}get isRequired(){return (this.requiredValidatorViaDi?._enabled||this.control?._hasRequired())??false}get shouldBindRequired(){return true}bindControlProperty(t,e,i,r){if(e[i]===r)return;e[i]=r;let s=t.setInputOnDirectives(i,r);this.isNativeFormElement&&!s&&(i==="disabled"||i==="required")&&this.renderer&&Pt(this.renderer,t.nativeElement,i,r);}_convertErrors(t){if(t===null)return [];let e=this.control;return Object.entries(t).map(([i,r])=>new _e({context:r,kind:i,control:e}))}setParseErrorSource(t){if(t===void 0)return;let e=null,i=Nt$1(()=>{let r=t();return r.length===0?null:r.reduce((s,a)=>(s[a.kind]=a,s),{})});this.parseErrorsValidator=(()=>e).bind(this),Ga(()=>{e=i(),this.control?.updateValueAndValidity({emitEvent:false});},{injector:this.injector});}removeParseErrorsValidator(t){this.parseErrorsValidator&&(t?.removeValidators(this.parseErrorsValidator),t?.updateValueAndValidity({emitEvent:false}));}},ae=class{_cd;constructor(t){this._cd=t;}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return !!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return !!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return !!this._cd?.control?.invalid}get isPending(){return !!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var Rn=(()=>{class n extends ae{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(oo(m,2))};static \u0275dir=mw({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&Qg("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending);},standalone:false,features:[rg]})}return n})(),Pn=(()=>{class n extends ae{constructor(e){super(e);}static \u0275fac=function(i){return new(i||n)(oo(d,10))};static \u0275dir=mw({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&Qg("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted);},standalone:false,features:[rg]})}return n})(),R=class extends x{constructor(t,e,i){super(Me(e),Ee(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;registerControl(t,e){let i=this._find(t);return i||(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}removeControl(t,e={}){let i=this._find(t);i&&i._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}setControl(t,e,i={}){let r=this._find(t);r&&r._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}contains(t){return this._find(t)?.enabled===true}setValue(t,e={}){me$1(()=>{ot(this,true,t),Object.keys(t).forEach(i=>{st(this,true,i),this.controls[i].setValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(i=>{let r=this._find(i);r&&r.patchValue(t[i],{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t?t[r]:null,m$1(l({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new F(this));}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(false,(e,i)=>i._syncPendingControls()?true:e);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let i=this.controls[e];i&&t(i,e);});}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);});}_updateValue(){this.value=this._reduceValue();}_anyControls(t){for(let[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return true;return false}_reduceValue(){let t={};return this._reduceChildren(t,(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,s)=>{i=e(i,r,s);}),i}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return false;return Object.keys(this.controls).length>0||this.disabled}_find(t){return at(this.controls,t)?this.controls[t]:null}};var ye=class extends R{};var zt={provide:d,useExisting:Ko(()=>Zt)},G=Promise.resolve(),Zt=(()=>{class n extends d{callSetDisabledState;get submitted(){return me$1(this.submittedReactive)}_submitted=Nt$1(()=>this.submittedReactive());submittedReactive=Ue$1(false);_directives=new Set;form;ngSubmit=new Ze$1;options;constructor(e,i,r){super(),this.callSetDisabledState=r,this.form=new R({},be(e),Ae(i));}ngAfterViewInit(){this._setUpdateStrategy();}get formDirective(){return this}get control(){return this.form}get path(){return []}get controls(){return this.form.controls}addControl(e){G.then(()=>{let i=this._findContainer(e.path);e.control=i.registerControl(e.name,e.control),e._setupWithForm(this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:false}),this._directives.add(e);});}getControl(e){return this.form.get(e.path)}removeControl(e){G.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e);});}addFormGroup(e){G.then(()=>{let i=this._findContainer(e.path),r=new R({});dt(r,e),i.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:false});});}removeFormGroup(e){G.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name);});}getFormGroup(e){return this.form.get(e.path)}updateModel(e,i){G.then(()=>{this.form.get(e.path).setValue(i);});}setValue(e){this.control.setValue(e);}onSubmit(e){return this.submittedReactive.set(true),ct(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new ne(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm();}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(false);}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn);}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(i){return new(i||n)(oo(b,10),oo(w,10),oo(N,8))};static \u0275dir=mw({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&Fg("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[zC([zt]),rg]})}return n})();function Le(n,t){let e=n.indexOf(t);e>-1&&n.splice(e,1);}function We(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var L=class extends x{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=false;constructor(t=null,e,i){super(Me(e),Ee(i,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator}),le(e)&&(e.nonNullable||e.initialValueIsDefault)&&(We(t)?this.defaultValue=t.value:this.defaultValue=t);}setValue(t,e={}){me$1(()=>{this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==false&&this._onChange.forEach(i=>i(this.value,e.emitViewToModelChange!==false)),this.updateValueAndValidity(e);});}patchValue(t,e={}){this.setValue(t,e);}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=false,e?.emitEvent!==false&&this._events.next(new F(this));}_updateValue(){}_anyControls(t){return false}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t);}_unregisterOnChange(t){Le(this._onChange,t);}registerOnDisabledChange(t){this._onDisabledChange.push(t);}_unregisterOnDisabledChange(t){Le(this._onDisabledChange,t);}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:true,emitModelToViewChange:false}),true):false}_applyFormState(t){We(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:true,emitEvent:false}):this.enable({onlySelf:true,emitEvent:false})):this.value=this._pendingValue=t;}};var Xt=n=>n instanceof L,Yt=(()=>{class n extends d{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this);}ngOnDestroy(){this.formDirective?.removeFormGroup(this);}get control(){return this.formDirective.getFormGroup(this)}get path(){return ue(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,standalone:false,features:[rg]})}return n})();var Kt={provide:m,useExisting:Ko(()=>Jt)},qe=Promise.resolve(),Jt=(()=>{class n extends m{_changeDetectorRef;callSetDisabledState;control=new L;static ngAcceptInputType_isDisabled;_registered=false;viewModel;name="";isDisabled;model;options;update=new Ze$1;constructor(e,i,r,s,a,P,k,vt){super(k,vt,s),this._changeDetectorRef=a,this.callSetDisabledState=P,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)});}this._setUpControl();}"isDisabled"in e&&this._updateDisabled(e),we(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.formDirective?.removeControl(this);}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,false);}get shouldBindRequired(){return false}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=true;}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn);}_isStandalone(){return !this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(this.control,this,this.callSetDisabledState)),this.control.updateValueAndValidity({emitEvent:false});}_setupWithForm(e){this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(this.control,this,e));}_checkForErrors(){this._checkName();}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name;}_updateValue(e){qe.then(()=>{this.control.setValue(e,{emitViewToModelChange:false}),this._changeDetectorRef?.markForCheck();});}_updateDisabled(e){let i=e.isDisabled.currentValue,r=i!==0&&T1(i);qe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck();});}_getPath(e){return this._parent?ue(e,this._parent):[e]}static \u0275fac=function(i){return new(i||n)(oo(d,9),oo(b,10),oo(w,10),oo(D,10),oo(D1,8),oo(N,8),oo(Te,8),oo(yD,8))};static \u0275dir=mw({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:false,features:[zC([Kt,Ne]),rg,Cv,Iw(null)]})}return n})();var Tn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=mw({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:false})}return n})(),Qt={provide:D,useExisting:Ko(()=>en),multi:true},en=(()=>{class n extends W{writeValue(e){let i=e??"";this.setProperty("value",i);}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["input","type","number","formControlName","",3,"ngNoCva",""],["input","type","number","formControl","",3,"ngNoCva",""],["input","type","number","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[zC([Qt]),rg]})}return n})(),tn={provide:D,useExisting:Ko(()=>rn),multi:true};var nn=(()=>{class n{_accessors=[];add(e,i){this._accessors.push([e,i]);}remove(e){for(let i=this._accessors.length-1;i>=0;--i)if(this._accessors[i][1]===e){this._accessors.splice(i,1);return}}select(e){this._accessors.forEach(i=>{this._isSameGroup(i,e)&&i[1]!==e&&i[1].fireUncheck(e.value);});}_isSameGroup(e,i){return e[0].control?e[0]._parent===i._control._parent&&e[1].name===i.name:false}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Kr({token:n,factory:n.\u0275fac})}return n})(),rn=(()=>{class n extends W{_registry;_injector;_state;_control;_fn;setDisabledStateFired=false;onChange=()=>{};name;formControlName;value;callSetDisabledState=T(N,{optional:true})??q;constructor(e,i,r,s){super(e,i),this._registry=r,this._injector=s;}ngOnInit(){this._control=this._injector.get(m),this._checkName(),this._registry.add(this._control,this);}ngOnDestroy(){this._registry.remove(this);}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state);}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this);};}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=true;}fireUncheck(e){this.writeValue(e);}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName);}static \u0275fac=function(i){return new(i||n)(oo(yD),oo(Jr),oo(nn),oo(Te))};static \u0275dir=mw({type:n,selectors:[["input","type","radio","formControlName","",3,"ngNoCva",""],["input","type","radio","formControl","",3,"ngNoCva",""],["input","type","radio","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("change",function(){return r.onChange()})("blur",function(){return r.onTouched()});},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:false,features:[zC([tn]),rg]})}return n})(),sn={provide:D,useExisting:Ko(()=>on),multi:true},on=(()=>{class n extends W{writeValue(e){this.setProperty("value",parseFloat(e));}registerOnChange(e){this.onChange=i=>{e(i==""?null:parseFloat(i));};}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["input","type","range","formControlName","",3,"ngNoCva",""],["input","type","range","formControl","",3,"ngNoCva",""],["input","type","range","ngModel","",3,"ngNoCva",""]],hostBindings:function(i,r){i&1&&Fg("change",function(a){return r.onChange(a.target.value)})("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()});},standalone:false,features:[zC([sn]),rg]})}return n})(),Ce=class extends x{constructor(t,e,i){super(Me(e),Ee(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:true,emitEvent:!!this.asyncValidator});}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(i=>{this.controls.push(i),this._registerControl(i);}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange();}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent});}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent});}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange();}get length(){return this.controls.length}setValue(t,e={}){me$1(()=>{ot(this,false,t),t.forEach((i,r)=>{st(this,false,r),this.at(r).setValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e);});}patchValue(t,e={}){t!=null&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:true,emitEvent:e.emitEvent});}),this.updateValueAndValidity(e));}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],m$1(l({},e),{onlySelf:true}));}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==false&&this._events.next(new F(this));}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}));}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>i._syncPendingControls()?true:e,false);return t&&this.updateValueAndValidity({onlySelf:true}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i);});}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value);}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t));}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return false;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange);}_find(t){return this.at(t)??null}};var ht=(()=>{class n extends d{callSetDisabledState;get submitted(){return me$1(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e);}_submitted=Nt$1(()=>this._submittedReactive());_submittedReactive=Ue$1(false);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,i,r){super(),this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){this.onChanges(e);}ngOnDestroy(){this.onDestroy();}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form);}onDestroy(){this.form&&(oe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}));}get formDirective(){return this}get path(){return []}addControl(e){let i=this.form.get(e.path);return e._setupWithForm(i,this.callSetDisabledState),i.updateValueAndValidity({emitEvent:false}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){re(e.control||null,e,false),$t(this.directives,e);}addFormGroup(e){this._setUpFormContainer(e);}removeFormGroup(e){this._cleanUpFormContainer(e);}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e);}removeFormArray(e){this._cleanUpFormContainer(e);}updateModel(e,i){this.form.get(e.path).setValue(i);}onReset(){this.resetForm();}resetForm(e=void 0,i={}){this.form.reset(e,i),this._submittedReactive.set(false);}onSubmit(e){return this.submitted=true,ct(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new ne(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let i=e.control,r=this.form.get(e.path);i!==r&&(re(i||null,e),Xt(r)&&e._setupWithForm(r,this.callSetDisabledState));}),this.form._updateTreeValidity({emitEvent:false});}_setUpFormContainer(e){let i=this.form.get(e.path);dt(i,e),i.updateValueAndValidity({emitEvent:false});}_cleanUpFormContainer(e){let i=this.form?.get(e.path);i&&Lt(i,e)&&i.updateValueAndValidity({emitEvent:false});}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{});}_updateValidators(){Fe(this.form,this),this._oldForm&&oe(this._oldForm,this);}_checkFormPresent(){this.form;}static \u0275fac=function(i){return new(i||n)(oo(b,10),oo(w,10),oo(N,8))};static \u0275dir=mw({type:n,features:[rg,Cv]})}return n})();var Se=new x$1(""),an={provide:m,useExisting:Ko(()=>ln)},ln=(()=>{class n extends m{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Ze$1;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,P,k){super(k,P,r),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(i);}ngOnChanges(e){if(this._isControlChanged(e)){let i=e.form.previousValue;i&&(re(i,this,false),this.removeParseErrorsValidator(i)),this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(this.form,this,this.callSetDisabledState)),this.form.updateValueAndValidity({emitEvent:false});}we(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model);}ngOnDestroy(){this.form&&re(this.form,this,false);}get path(){return []}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}_isControlChanged(e){return e.hasOwnProperty("form")}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){super.ngControlUpdate(e,true);}static \u0275fac=function(i){return new(i||n)(oo(b,10),oo(w,10),oo(D,10),oo(Se,8),oo(N,8),oo(yD,8),oo(Te,8))};static \u0275dir=mw({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:false,features:[zC([an,Ne]),rg,Cv,Iw(null)]})}return n})(),un={provide:d,useExisting:Ko(()=>ft)},ft=(()=>{class n extends Yt{name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_checkParentType(){pt(this._parent);}static \u0275fac=function(i){return new(i||n)(oo(d,13),oo(b,10),oo(w,10))};static \u0275dir=mw({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:false,features:[zC([un]),rg]})}return n})(),dn={provide:d,useExisting:Ko(()=>gt)},gt=(()=>{class n extends d{_parent;name=null;constructor(e,i,r){super(),this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}ngOnInit(){pt(this._parent),this.formDirective.addFormArray(this);}ngOnDestroy(){this.formDirective?.removeFormArray(this);}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ue(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(i){return new(i||n)(oo(d,13),oo(b,10),oo(w,10))};static \u0275dir=mw({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:false,features:[zC([dn]),rg]})}return n})();function pt(n){return !(n instanceof ft)&&!(n instanceof ht)&&!(n instanceof gt)}var cn={provide:m,useExisting:Ko(()=>hn)},hn=(()=>{class n extends m{_ngModelWarningConfig;_added=false;viewModel;control;name=null;set isDisabled(e){}model;update=new Ze$1;static _ngModelWarningSentOnce=false;_ngModelWarningSent=false;constructor(e,i,r,s,a,P,k){super(k,P,s),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(i),this._setAsyncValidators(r);}_setupWithForm(e,i){this.control=e,this.isCustomControlBased?this.setupCustomControl():(this.valueAccessor??=this.selectedValueAccessor,ie(e,this,i));}ngOnChanges(e){this._added||this._setUpControl(),we(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model));}ngOnDestroy(){this.formDirective?.removeControl(this);}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e);}get path(){return ue(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=true;}\u0275ngControlCreate(e){super.ngControlCreate(e);}\u0275ngControlUpdate(e){this.isCustomControlBased&&(this._added||this._setUpControl(),super.ngControlUpdate(e,true));}static \u0275fac=function(i){return new(i||n)(oo(d,13),oo(b,10),oo(w,10),oo(D,10),oo(Se,8),oo(yD,8),oo(Te,8))};static \u0275dir=mw({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:false,features:[zC([cn,Ne]),rg,Cv,Iw(null)]})}return n})();var fn={provide:d,useExisting:Ko(()=>gn)},gn=(()=>{class n extends ht{form=null;ngSubmit=new Ze$1;get control(){return this.form}static \u0275fac=(()=>{let e;return function(r){return (e||(e=Uv(n)))(r||n)}})();static \u0275dir=mw({type:n,selectors:[["","formGroup",""]],hostBindings:function(i,r){i&1&&Fg("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()});},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:false,features:[zC([fn]),rg]})}return n})();var mt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pw({type:n});static \u0275inj=ad({})}return n})();function $e(n){return !!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var jn=(()=>{class n{useNonNullable=false;get nonNullable(){let e=new n;return e.useNonNullable=true,e}group(e,i=null){let r=this._reduceControls(e),s={};return $e(i)?s=i:i!==null&&(s.validators=i.validator,s.asyncValidators=i.asyncValidator),new R(r,s)}record(e,i=null){let r=this._reduceControls(e);return new ye(r,i)}control(e,i,r){let s={};return this.useNonNullable?($e(i)?s=i:(s.validators=i,s.asyncValidators=r),new L(e,m$1(l({},s),{nonNullable:true}))):new L(e,i,r)}array(e,i,r){let s=e.map(a=>this._createControl(a));return new Ce(s,i,r)}_reduceControls(e){let i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r]);}),i}_createControl(e){if(e instanceof L)return e;if(e instanceof x)return e;if(Array.isArray(e)){let i=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(i,r,s)}else return this.control(e)}static \u0275fac=function(i){return new(i||n)};static \u0275prov=Kr({token:n,factory:n.\u0275fac})}return n})();var Bn=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:N,useValue:e.callSetDisabledState??q}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pw({type:n});static \u0275inj=ad({imports:[mt]})}return n})(),Gn=(()=>{class n{static withConfig(e){return {ngModule:n,providers:[{provide:Se,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:N,useValue:e.callSetDisabledState??q}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=pw({type:n});static \u0275inj=ad({imports:[mt]})}return n})();export{Bn as B,D,Gn as G,Jt as J,L,Pn as P,Rn as R,Tn as T,Ze as Z,Zt as a,m as b,en as e,ft as f,gn as g,hn as h,jn as j,ln as l,me as m,on as o,rn as r,yt as y};
package/chunk-M21GJPzH.js DELETED
@@ -1,4 +0,0 @@
1
- import {J}from'./chunk-B2fqvpov.js';import {e as ee}from'./chunk-D_JCqKo8.js';import'./chunk-w_Hs_Uxi.js';import {O as O$1}from'./chunk-D1wHRltX.js';import {N as Nt$1}from'./chunk-CBdr-6_u.js';import'./chunk-BZqhgAZ-.js';import {m}from'./chunk-B9zNFJSv.js';import {c}from'./chunk-COgNe44h.js';import {D}from'./chunk-BAZ5npJw.js';import {bi as bs,bj as H,bk as ft,bl as po,T,a6 as be,m as m$1,g,bm as h,U as Ue,N as Nt,G as Ga,C as Bu,bn as It,at as h$1,d as dw,v,f as N,u as ue,j as mg,Q as Qi,X as XT,H as Hl,o as oT,F as Fg,p as DD,O as Og,P as Pg,s as sm,bf as ig,D as DE,i as iT,I as Qg,z as gg,a3 as QC,y as TD,au as Lg,av as eC,w as im,t as tC,l as HC,ab as C$1,B as y1,b2 as sg,b3 as tT,b4 as nT,$ as $g,K as lC,ae as Jr,b as g1,af as m1,b8 as ce,L as oC,R as Bl,Y as iC,W as $l,q as PC,an as jg,V as yg,aB as rm,ag as zg,h as bC,n as nC,E as nm,k as gT,S as Sd,x as xd,ar as Wp,a9 as UC,aa as Gl}from'./main-PXGZLKMN.js';import {C}from'./chunk-MvQwR7nW.js';import {O}from'./chunk-SycscfJp.js';import {d}from'./chunk-DQW8lSiz.js';import'./chunk-CMmgPgiU.js';import {F as Fe}from'./chunk-C9EdrQe6.js';import {B as Bn$1,Z as Ze,o as on$1,R as Rn$1,J as Jt,G as Gn$1}from'./chunk-Drc5kcUX.js';import {a as at}from'./chunk-B-fklW6A.js';import'./chunk-D28lTX0k.js';var sn=[[["label"]],[["input","type","range"]]],an=["label","input[type=range]"],tn=(()=>{class i{constructor(){this.hasInput=Ue(false),this.#n=T(Jr),this.#i=null,this.#e=null,this.#t=0,this.unit=g1(""),this.value=m1(this.#t),this.inputState=Ue({min:0,max:100,step:1}),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.sharp=g1(void 0),this.alwaysShow=g1(void 0),this.hostClasses=ce("rangeSlider",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,alwaysShow:this.alwaysShow}),this.valuePercentage=Nt(()=>{let{min:e,max:n}=this.inputState(),s=this.value()??e;if(isNaN(s))return 0;let l=n-e;if(l===0)return 0;let E=(s-e)/l*100;return Math.max(0,Math.min(100,E))}),this.trackFilledPercentage=Nt(()=>this.valuePercentage()),this.thumbPositionPercentage=Nt(()=>this.valuePercentage()),this.syncModelToInputEffect=Ga(()=>{let e=this.value();if(this.#e){let n=parseFloat(this.#e.value);(isNaN(n)||String(n)!==String(e))&&(this.#e.value=String(e));}});}#n;#i;#e;#t;ngAfterViewInit(){this.#e=this.#n.nativeElement.querySelector('input[type="range"]'),this.#e?(this.hasInput.set(true),this.#a(this.#e),this.#e.oninput=()=>{this.setNewInputValue(this.#e.value);},this.#e.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value);}),queueMicrotask(()=>this.#o(true)),this.#r()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.');}setNewInputValue(e){let n=parseFloat(e??"0");if(!isNaN(n)){let{min:s,max:l}=this.inputState();this.value.set(Math.max(s,Math.min(l,n)));}}trackEvent(e){if(!this.#e||this.#e.readOnly||this.#e.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#e||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let s=e.currentTarget.getBoundingClientRect(),l=e.clientX-s.left,E=s.width,{min:S,max:m,step:f}=this.inputState(),W=m-S;if(E>0&&W!==0&&f>0){let J=(l/E*W+S-S)/f,z=S+Math.round(J)*f,Q=this.#s(f);z=parseFloat(z.toFixed(Q));let Y=Math.max(S,Math.min(m,z));this.value.set(Y);}}#o(e=false){if(!this.#e)return;let n=parseFloat(this.#e.min??"0")??0,s=parseFloat(this.#e.max??"100")??100,l=this.#e.step,E=1;if(l&&l.toLowerCase()!=="any"){let m=parseFloat(l);!isNaN(m)&&m>0&&(E=m);}this.inputState.set({min:n,max:s,step:E});let S=parseFloat(this.#e.value??String(n))??n;if(e&&this.value()!==this.#t){let m=this.value(),f=Math.max(n,Math.min(s,m));S!==f&&(this.#e.value=String(f)),m!==f&&this.value.set(f);}else {let m=Math.max(n,Math.min(s,S));this.value()!==m&&this.value.set(m);}}#r(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(n=>{let s=false;for(let l of n)if(l.type==="attributes"&&e.includes(l.attributeName??"")){s=true;break}s&&this.#o(false);}),this.#i.observe(this.#e,{attributes:true,attributeFilter:e});}#s(e){if(isNaN(e)||Math.floor(e)===e)return 0;let s=e.toString().split(".")[1];return s?s.length:0}#a(e){Object.defineProperty(e,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(n){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,n);let l=new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:n}});return this.dispatchEvent(l),n}});}ngOnDestroy(){this.#i&&this.#i.disconnect(),this.#e&&(this.#e.oninput=null);}static{this.\u0275fac=function(n){return new(n||i)};}static{this.\u0275cmp=dw({type:i,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(n,s){n&2&&(bC(s.hostClasses()),Qg("sh-range-slider",true)("has-input",s.hasInput()));},inputs:{unit:[1,"unit"],value:[1,"value"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],alwaysShow:[1,"alwaysShow"]},outputs:{value:"valueChange"},ngContentSelectors:an,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(n,s){n&1&&(oC(sn),Bl(0,"div",0),iC(1),$l(),Bl(2,"div",1)(3,"div",2),PC(4),$l(),Bl(5,"div",3),jg("click",function(E){return s.trackEvent(E)}),iC(6,1),Bl(7,"div",4),yg(8,"div",5),$l(),Bl(9,"div",6)(10,"div",7)(11,"div",8),PC(12),$l()()()(),Bl(13,"div",9),PC(14),$l()()),n&2&&(DE(4),rm("",s.inputState().min,"",s.unit()),DE(4),zg("width",s.trackFilledPercentage(),"%"),DE(),zg("left",s.thumbPositionPercentage(),"%"),DE(3),rm("",s.value(),"",s.unit()),DE(2),rm("",s.inputState().max,"",s.unit()));},styles:[`sh-range-slider{--rs-h: 2.5rem;--rs-f: var(--paragraph-30);--rs-unit-g: .75rem;--rs-unit-c: var(--base-8);--rst: var(--base-3);--rst-bc: var(--base-1);--rst-bg: var(--base-4);--rst-h: .5rem;--rst-s: calc(var(--shape-2) / 2);--rs-thumb-c: var(--base-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--base-4);--rs-thumb-arrow: var(--rs-thumb-value-bg);--rs-thumb-value-c: var(--base-8);--rs-thumb-si: 1rem;--rs-thumb-w: var(--rs-thumb-si);--rs-thumb-s: calc(var(--rs-thumb-w) / 2);display:flex;flex-direction:column;width:100%;font:var(--rs-f)}sh-range-slider.sharp{--rst-s: .125rem;--rs-thumb-s: .125rem;--rs-thumb-bc: transparent !important}sh-range-slider .label{display:flex;align-items:center;gap:.5rem;padding-bottom:.25rem}sh-range-slider .label>label{display:flex;align-items:center;gap:.25rem}sh-range-slider .label sh-icon{color:var(--grey-500);font-size:1rem}sh-range-slider .label:empty{display:none}sh-range-slider[readonly]:not([readonly=false]),sh-range-slider:has(input[type=range][readonly]:not([readonly=false])),sh-range-slider[disabled]:not([disabled=false]),sh-range-slider:has(input[type=range][disabled]:not([disabled=false])){opacity:.4;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}sh-range-slider:has(input[type=range][readonly]) .thumb .value-indicator,sh-range-slider.always-show .thumb .value-indicator{opacity:1}sh-range-slider input[type=range]{appearance:none;width:100%;height:100%;position:absolute;inset:0;opacity:0;margin:0;z-index:1000}sh-range-slider .input-wrap{display:flex;align-items:center;justify-content:center;width:100%;min-height:var(--rs-h);position:relative;gap:var(--rs-unit-g)}sh-range-slider .thumb-wrap{position:absolute;top:0}sh-range-slider .thumb{position:relative;margin-top:calc(-1 * var(--rs-thumb-si) / 4);width:var(--rs-thumb-w);height:var(--rs-thumb-si);border-radius:var(--rs-thumb-s);background-color:var(--rs-thumb-c);border:1px solid var(--rs-thumb-bc);box-shadow:var(--box-shadow-20);transform:translate(-50%)}sh-range-slider .track-wrap{position:relative;width:100%;height:var(--rst-h)}sh-range-slider .track{position:relative;width:100%;height:var(--rst-h);border-radius:var(--rst-s);background-color:var(--rst);border:1px solid var(--rst-bc);overflow:hidden}sh-range-slider .track-filled{position:absolute;top:0;left:0;bottom:0;background:var(--rst-bg);width:0}sh-range-slider .min-indicator,sh-range-slider .max-indicator{white-space:nowrap;color:var(--rs-unit-c)}sh-range-slider input[type=range]:hover~.thumb-wrap .value-indicator,sh-range-slider input[type=range]:focus~.thumb-wrap .value-indicator{opacity:1}sh-range-slider .value-indicator{position:absolute;top:-1.875rem;height:1.5rem;min-width:1.5rem;border-radius:var(--shape-2);left:50%;margin:auto;transform:translate(-50%);padding:.25rem .5rem;background:var(--rs-thumb-value-bg);color:var(--rs-thumb-value-c);white-space:nowrap;opacity:0;transition:opacity 125ms linear;-webkit-user-select:none;user-select:none;pointer-events:none}sh-range-slider .value-indicator:after{content:"";border-top:.3125rem solid var(--rs-thumb-arrow);border-left:.3125rem solid transparent;border-right:.3125rem solid transparent;position:absolute;top:calc(100% - 1px);left:50%;margin-left:-.3125rem}sh-range-slider.primary{--rst-bg: var(--primary-8);--rs-thumb-arrow: var(--primary-8);--rs-thumb-value-bg: var(--primary-8);--rs-thumb-value-c: #fff}sh-range-slider.accent{--rst-bg: var(--accent-8);--rs-thumb-arrow: var(--accent-8);--rs-thumb-value-bg: var(--accent-8);--rs-thumb-value-c: #fff}sh-range-slider.warn{--rst-bg: var(--warn-8);--rs-thumb-arrow: var(--warn-8);--rs-thumb-value-bg: var(--warn-8);--rs-thumb-value-c: #fff}sh-range-slider.error{--rst-bg: var(--error-8);--rs-thumb-arrow: var(--error-8);--rs-thumb-value-bg: var(--error-8);--rs-thumb-value-c: #fff}sh-range-slider.success{--rst-bg: var(--success-8);--rs-thumb-arrow: var(--success-8);--rs-thumb-value-bg: var(--success-8);--rs-thumb-value-c: #fff}sh-range-slider.simple{--rst-h: 1rem;--rst-s: var(--shape-2)}sh-range-slider.simple .thumb{width:1px;height:var(--rst-h);margin-top:0;border-radius:0;border:none;box-shadow:none}sh-range-slider.simple.primary{--rst-bg: var(--primary-8);--rst: var(--primary-2);--rs-thumb-c: var(--primary-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--primary-8);--rs-thumb-value-c: var(--primary-2)}sh-range-slider.simple.accent{--rst-bg: var(--accent-8);--rst: var(--accent-2);--rs-thumb-c: var(--accent-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--accent-8);--rs-thumb-value-c: var(--accent-2)}sh-range-slider.simple.warn{--rst-bg: var(--warn-8);--rst: var(--warn-2);--rs-thumb-c: var(--warn-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--warn-8);--rs-thumb-value-c: var(--warn-2)}sh-range-slider.simple.error{--rst-bg: var(--error-8);--rst: var(--error-2);--rs-thumb-c: var(--error-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--error-8);--rs-thumb-value-c: var(--error-2)}sh-range-slider.simple.success{--rst-bg: var(--success-8);--rst: var(--success-2);--rs-thumb-c: var(--success-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--success-8);--rs-thumb-value-c: var(--success-2)}sh-range-slider.outlined{--rst: var(--base-1);--rst-bc: var(--base-4);--rs-thumb-c: var(--base-6);--rs-thumb-bc: var(--base-1);--rs-thumb-arrow: var(--base-4)}sh-range-slider.outlined.primary,sh-range-slider.outlined.accent,sh-range-slider.outlined.warn,sh-range-slider.outlined.error,sh-range-slider.outlined.success{--rst: var(--base-2)}sh-range-slider.outlined.primary{--rst-bg: var(--primary-4);--rst-bc: var(--primary-8);--rs-thumb-c: var(--primary-8);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--primary-4);--rs-thumb-value-c: var(--primary-8);--rs-thumb-arrow: var(--primary-4)}sh-range-slider.outlined.accent{--rs-thumb-c: var(--accent-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--accent-4);--rs-thumb-value-c: var(--accent-8);--rs-thumb-arrow: var(--accent-4)}sh-range-slider.outlined.warn{--rs-thumb-c: var(--warn-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--warn-4);--rs-thumb-value-c: var(--warn-8);--rs-thumb-arrow: var(--warn-4)}sh-range-slider.outlined.error{--rs-thumb-c: var(--error-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--error-4);--rs-thumb-value-c: var(--error-8);--rs-thumb-arrow: var(--error-4)}sh-range-slider.outlined.success{--rs-thumb-c: var(--success-4);--rs-thumb-bc: var(--base-1);--rs-thumb-value-bg: var(--success-4);--rs-thumb-value-c: var(--success-8);--rs-thumb-arrow: var(--success-4)}sh-range-slider.flat{--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4)}sh-range-slider.flat.primary,sh-range-slider.flat.accent,sh-range-slider.flat.warn,sh-range-slider.flat.error,sh-range-slider.flat.success{--rst: var(--base-3);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4);--rs-thumb-value-bg: var(--base-8);--rs-thumb-value-c: #fff}sh-range-slider.flat.primary{--rst-bg: var(--primary-8);--rs-thumb-value-bg: var(--primary-8)}sh-range-slider.flat.accent{--rst-bg: var(--accent-8);--rs-thumb-value-bg: var(--accent-8)}sh-range-slider.flat.warn{--rst-bg: var(--warn-8);--rs-thumb-value-bg: var(--warn-8)}sh-range-slider.flat.error{--rst-bg: var(--error-8);--rs-thumb-value-bg: var(--error-8)}sh-range-slider.flat.success{--rst-bg: var(--success-8);--rs-thumb-value-bg: var(--success-8)}sh-range-slider.raised{--rst-bg: var(--base-g2);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4)}sh-range-slider.raised.primary,sh-range-slider.raised.accent,sh-range-slider.raised.warn,sh-range-slider.raised.error,sh-range-slider.raised.success{--rst: var(--base-3);--rs-thumb-c: #fff;--rs-thumb-bc: var(--base-4);--rs-thumb-value-bg: var(--base-g6);--rs-thumb-value-c: #fff}sh-range-slider.raised.primary{--rst-bg: var(--primary-g2);--rs-thumb-arrow: var(--primary-8);--rs-thumb-value-bg: var(--primary-g3)}sh-range-slider.raised.accent{--rst-bg: var(--accent-g2);--rs-thumb-arrow: var(--accent-8);--rs-thumb-value-bg: var(--accent-8)}sh-range-slider.raised.warn{--rst-bg: var(--warn-g2);--rs-thumb-arrow: var(--warn-8);--rs-thumb-value-bg: var(--warn-8)}sh-range-slider.raised.error{--rst-bg: var(--error-g2);--rs-thumb-arrow: var(--error-8);--rs-thumb-value-bg: var(--error-8)}sh-range-slider.raised.success{--rst-bg: var(--success-g2);--rs-thumb-arrow: var(--success-8);--rs-thumb-value-bg: var(--success-8)}
2
- `],encapsulation:2});}}return i})();var rn=["formRef"],ln=()=>[import('./chunk-Bf1diO1u.js').then(i=>i.OptionsListComponent)];function _n(i,t){i&1&&(Qi(0,"sh-alert",3),XT(1,1),Hl());}function cn(i,t){if(i&1){let e=gT();Qi(0,"app-options-list",5),sm("optionsChange",function(s){Sd(e);let l=nC();return HC(l.settings,s)||(l.settings=s),xd(s)}),Hl();}if(i&2){let e=nC();im("options",e.settings),gg("hasFreeTextSettings",true);}}var K=class i{#n=T(O);#i=T(C$1);formRef=y1.required("formRef");settings=Ue([]);isSubmitting=Ue(false);isLoadingOptions=Ue(true);saved=Ue(false);lastRecievedServerSettings=Ue({});serverSettingsEffect=Ga(()=>{let t=this.#n.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(true);let e=Object.entries(t);e.forEach(([n,s],l)=>{if(n.startsWith("--")){let E=n.substring(2);this.settings.update(S=>(S.some(m=>m.Name===E||m.Name===n)||S.push({Name:n,Value:s}),S));}l===e.length-1&&this.isLoadingOptions.set(false);});});submit(){this.isSubmitting.set(true);let t=this.settings(),e=this.lastRecievedServerSettings(),n=t.map(S=>S.Name?.startsWith("--")?S.Name:`--${S.Name}`),l=Object.keys(e).filter(S=>S.startsWith("--")).filter(S=>!n.includes(S)),E=t.reduce((S,m)=>{let f=m.Name?.startsWith("--")?m.Name:`--${m.Name}`;return S[f]=m.Value,S},{});l.forEach(S=>{E[S]=null;}),this.#i.patchApiV1Serversettings({requestBody:E}).pipe(Bu(()=>this.isSubmitting.set(false))).subscribe({next:()=>{this.#n.refreshServerSettings(),this.saved.set(true),setTimeout(()=>{this.saved.set(false);},3e3);}});}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,n){e&1&&$g(n.formRef,rn,5),e&2&&lC();},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,n){e&1&&(Qi(0,"div",2),oT(1,_n,2,0,"sh-alert",3),Qi(2,"button",4),Fg("click",function(){return n.submit()}),Og(3,0),mg(4,"sh-icon"),Pg(),Hl()(),sg(5,cn,1,2),tT(6,5,ln)),e&2&&(DE(),iT(n.saved()?1:-1),DE(),Qg("loading",n.isSubmitting()),DE(4),nT(!n.isLoadingOptions()));},dependencies:[Gn$1,v,N,ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"]})};function Tn(i,t){if(i&1){let e=gT();Qi(0,"sh-form-field",12)(1,"input",13),sm("ngModelChange",function(s){Sd(e);let l=nC(2);return HC(l.registerUrl,s)||(l.registerUrl=s),xd(s)}),Hl(),DD(),Hl(),Qi(2,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.register())}),XT(3,0),Hl();}if(i&2){let e=nC(2);DE(),im("ngModel",e.registerUrl),TD();}}function Sn(i,t){if(i&1&&(Qi(0,"div",9)(1,"label"),XT(2,1),Hl(),Qi(3,"a",15),PC(4),Hl()()),i&2){let e=nC(2);DE(3),gg("href",UC(e.claimUrl()),Wp),DE(),nm(e.claimUrl());}}function un(i,t){i&1&&(Qi(0,"div",9)(1,"label"),XT(2,2),Hl()());}function gn(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.cancel())}),XT(1,3),Hl();}}function pn(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.disable())}),XT(1,4),Hl();}}function Cn(i,t){if(i&1){let e=gT();Qi(0,"button",14),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.enable())}),XT(1,5),Hl(),Qi(2,"button",16),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.delete())}),XT(3,6),Hl();}}function mn(i,t){i&1&&(Og(0,7,1),mg(1,"sh-icon"),Pg());}function En(i,t){i&1&&(Og(0,7,2),mg(1,"sh-icon"),Pg());}function Nn(i,t){if(i&1){let e=gT();Qi(0,"sh-chip",17),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.copyReportingUrl())}),Og(1,7),oT(2,mn,2,0,"sh-icon")(3,En,2,0,"sh-icon"),Pg(),Hl();}if(i&2){let e=nC(2);DE(2),iT(e.copiedReportingUrl()===true?2:3);}}function hn(i,t){if(i&1&&(Qi(0,"div",8),oT(1,Tn,4,1),oT(2,Sn,5,3,"div",9),oT(3,un,3,0,"div",9),oT(4,gn,2,0,"button",10),oT(5,pn,2,0,"button",10),oT(6,Cn,4,0),oT(7,Nn,4,1,"sh-chip",11),Hl()),i&2){let e=nC();DE(),iT(e.state()==="inactive"?1:-1),DE(),iT(e.state()==="registered"?2:-1),DE(),iT(e.state()==="registering"?3:-1),DE(),iT(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),DE(),iT(e.state()==="connected"||e.state()==="connecting"?5:-1),DE(),iT(e.state()==="disabled"?6:-1),DE(),iT(e.additionalReportingUrl()!==""&&e.state()!=="registered"?7:-1);}}var Te=class i{#n=T(C);#i=T(O);state=this.#n.state;claimUrl=this.#n.claimUrl;registerUrl=this.#n.registerUrl;additionalReportingUrl=Nt(()=>{let t=this.#i.serverSettings();return t&&t["additional-report-url"]||""});copiedReportingUrl=Ue(false);ngOnInit(){this.#n.refreshRemoteControlStatus();}cancel(){this.#n.cancelRemoteRegistration();}register(){this.#n.beginRemoteRegistration();}disable(){this.#n.disableRemoteControl();}enable(){this.#n.enableRemoteControl();}delete(){this.#n.deleteRemoteControl();}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(true),setTimeout(()=>this.copiedReportingUrl.set(false),2e3),navigator.clipboard.writeText(t));}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let s;s=$localize`Cancel registration`;let l;l=$localize`Disable console connection`;let E;E=$localize`Enable console connection`;let S;S=$localize` Delete console connection setup `;let m;return m=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,m=tC(m),[t,e,n,s,l,E,S,m,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,n){e&1&&oT(0,hn,8,7,"div",8),e&2&&iT(n.state()!=="unknown"?0:-1);},dependencies:[Bn$1,Ze,Rn$1,Jt,Fe,v,D,N],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"]})};var Se=()=>({standalone:true});function fn(i,t){i&1&&(Qi(0,"sh-chip",90),XT(1,33),Hl());}function In(i,t){if(i&1&&(Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,32),Hl(),Qi(4,"p"),PC(5),Hl()(),Qi(6,"div",68),oT(7,fn,2,0,"sh-chip",90),Hl()()),i&2){let e=nC();DE(5),nm(e.remoteControlStatus()),DE(2),iT(e.additionalReportingUrl()!==""&&e.remoteControlState()!=="registered"?7:-1);}}function Mn(i,t){if(i&1&&(Qi(0,"label"),Og(1,37),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.remoteControlTooltip());}}function Pn(i,t){if(i&1&&(Qi(0,"label"),Og(1,38),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.remoteControlTooltip());}}function On(i,t){if(i&1&&(Qi(0,"label"),Og(1,39),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.connectionStatusIndicatorTooltip());}}function bn(i,t){if(i&1&&(Qi(0,"label"),Og(1,40),mg(2,"sh-icon",92),Pg(),Hl()),i&2){let e=nC(3);DE(2),gg("shTooltip",e.connectionStatusIndicatorTooltip());}}function vn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,35),Hl(),Qi(4,"p"),XT(5,36),Hl()(),Qi(6,"div",91)(7,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC(2);return xd(l.toggleConsoleControl(s))}),oT(8,Mn,3,1,"label")(9,Pn,3,1,"label"),Hl(),Qi(10,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC(2);return xd(l.saveHideConsoleConnectionStatus(s))}),oT(11,On,3,1,"label")(12,bn,3,1,"label"),Hl()()();}if(i&2){let e=nC(2);DE(7),gg("checked",!e.consoleControlDisabled()),DE(),iT(e.consoleControlDisabled()?8:9),DE(2),gg("checked",!e.hideConsoleConnectionStatus()),DE(),iT(e.hideConsoleConnectionStatus()?11:12);}}function Rn(i,t){i&1&&(Qi(0,"label"),XT(1,43),Hl());}function Gn(i,t){i&1&&(Qi(0,"label"),XT(1,44),Hl());}function yn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,41),Hl(),Qi(4,"p"),XT(5,42),Hl()(),Qi(6,"div",68)(7,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC(2);return xd(l.saveHideConsoleConnectionStatus(s))}),oT(8,Rn,2,0,"label")(9,Gn,2,0,"label"),Hl()()();}if(i&2){let e=nC(2);DE(7),gg("checked",!e.hideConsoleConnectionStatus()),DE(),iT(e.hideConsoleConnectionStatus()?8:9);}}function Fn(i,t){if(i&1&&(Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,34),Hl(),Qi(4,"p"),PC(5),Hl()(),Qi(6,"div",68),mg(7,"app-remote-control"),Hl()(),oT(8,vn,13,4,"section")(9,yn,10,2,"section")),i&2){let e=nC();DE(5),nm(e.remoteControlStatus()),DE(3),iT(e.remoteControlState()!="inactive"?8:9);}}function $n(i,t){i&1&&(Qi(0,"sh-icon",97),PC(1,"check"),Hl());}function An(i,t){i&1&&(Qi(0,"sh-icon",98),PC(1,"prohibit"),Hl());}function Ln(i,t){if(i&1){let e=gT();Qi(0,"button",102),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.updatePassphrase())}),XT(1,48),Hl();}if(i&2){let e=nC(2);Qg("loading",e.isUpdating());}}function wn(i,t){if(i&1){let e=gT();Qi(0,"button",103),Fg("click",function(){Sd(e);let s=nC(2);return xd(s.updatePassphrase())}),XT(1,49),Hl();}if(i&2){let e=nC(2);Qg("loading",e.isUpdating()),gg("disabled",true);}}function Dn(i,t){if(i&1){let e=gT();Qi(0,"sh-form-field")(1,"label",93),XT(2,45),Hl(),Qi(3,"input",94),sm("ngModelChange",function(s){Sd(e);let l=nC();return HC(l.passphrase,s)||(l.passphrase=s),xd(s)}),Hl(),DD(),Hl(),Qi(4,"sh-form-field")(5,"label",95),XT(6,46),Hl(),Qi(7,"input",96),sm("ngModelChange",function(s){Sd(e);let l=nC();return HC(l.repeatPassphrase,s)||(l.repeatPassphrase=s),xd(s)}),Hl(),DD(),oT(8,$n,2,0,"sh-icon",97)(9,An,2,0,"sh-icon",98),Hl(),Qi(10,"div",73)(11,"button",99),Fg("click",function(){Sd(e);let s=nC();return xd(s.cancelPasswordChange())}),XT(12,47),Hl(),oT(13,Ln,2,2,"button",100)(14,wn,2,3,"button",101),Hl();}if(i&2){let e=nC();DE(3),im("ngModel",e.passphrase),TD(),DE(4),gg("disabled",e.passphrase().length===0),im("ngModel",e.repeatPassphrase),TD(),DE(),iT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),DE(3),Qg("loading",e.isUpdating()),DE(2),iT(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14);}}function xn(i,t){i&1&&(Qi(0,"sh-icon",104),PC(1,"check"),Hl());}function kn(i,t){if(i&1){let e=gT();Qi(0,"div",73)(1,"button",99),Fg("click",function(){Sd(e);let s=nC();return xd(s.openPassphraseForm())}),XT(2,50),Hl(),oT(3,xn,2,0,"sh-icon",104),Hl();}if(i&2){let e=nC();DE(3),iT(e.passwordUpdated()?3:-1);}}function Xn(i,t){i&1&&(Og(0,11,1),mg(1,"span"),Pg());}function Jn(i,t){i&1&&(Og(0,11,2),mg(1,"span"),Pg());}function zn(i,t){if(i&1){let e=gT();Qi(0,"sh-form-field")(1,"label",105),XT(2,51),Hl(),Qi(3,"textarea",106),sm("ngModelChange",function(s){Sd(e);let l=nC();return HC(l.allowedHostnames,s)||(l.allowedHostnames=s),xd(s)}),Hl(),DD(),Hl(),Qi(4,"sh-alert",107),XT(5,52),Hl(),Qi(6,"button",102),Fg("click",function(){Sd(e);let s=nC();return xd(s.updateAllowedHostnames())}),XT(7,53),Hl();}if(i&2){let e=nC();DE(3),im("ngModel",e.allowedHostnames),TD(),DE(3),Qg("loading",e.updatingAllowedHosts());}}function Vn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,54),Hl(),Qi(4,"p"),XT(5,55),Hl()(),Qi(6,"div",68)(7,"sh-select",108)(8,"input",75),Fg("ngModelChange",function(s){Sd(e);let l=nC();return xd(l.updatePowerMode(s))}),Hl(),DD(),Hl()()();}if(i&2){let e=nC();DE(7),gg("options",e.powerModeOptions())("isClearable",false),DE(),gg("ngModel",e.powerModeCtrl())("ngModelOptions",QC(4,Se)),TD();}}function Un(i,t){if(i&1&&(Qi(0,"p"),XT(1,56),Hl()),i&2){let e=nC();DE(),Lg(e.sysinfo()?.ServerVersionName),eC(1);}}function Bn(i,t){i&1&&mg(0,"sh-progress-bar",80);}function Hn(i,t){if(i&1&&PC(0),i&2){let e=t.$implicit;Gl(" ",e.label," ");}}function Wn(i,t){if(i&1&&PC(0),i&2){let e=t.$implicit;Gl(" ",e.label," ");}}function jn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,57),Hl(),Qi(4,"p")(5,"span"),XT(6,58),Hl(),Qi(7,"a",109),XT(8,59),Hl(),mg(9,"br")(10,"br"),Qi(11,"span"),XT(12,60),Hl()()(),Qi(13,"div",68)(14,"sh-select",110)(15,"input",75),Fg("ngModelChange",function(s){Sd(e);let l=nC();return xd(l.updateUsageStatistics(s))}),Hl(),DD(),ig(16,Wn,1,1,"ng-template"),Hl()()();}if(i&2){let e=nC();DE(14),gg("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),DE(),gg("ngModel",e.usageStatistics())("ngModelOptions",QC(4,Se)),TD();}}function qn(i,t){i&1&&(Qi(0,"label"),XT(1,63),Hl());}function Kn(i,t){i&1&&(Qi(0,"label"),XT(1,64),Hl());}function Qn(i,t){if(i&1){let e=gT();Qi(0,"section")(1,"div",67)(2,"h3"),XT(3,61),Hl(),Qi(4,"p"),XT(5,62),Hl()(),Qi(6,"div",91)(7,"p"),PC(8,"Backup process isolation"),Hl(),Qi(9,"sh-toggle",79),Fg("checkedChange",function(s){Sd(e);let l=nC();return xd(l.saveControllerIpcState(s))}),oT(10,qn,2,0,"label")(11,Kn,2,0,"label"),Hl()()();}if(i&2){let e=nC();DE(9),gg("checked",e.isControllerIpcEnabled()),DE(),iT(e.isControllerIpcEnabled()?10:11);}}function Yn(i,t,e){let[n]=bs(i,e?.equal),s=n,l=n[H],E;return s.set=S=>{clearTimeout(E),E=setTimeout(()=>{ft(l,S);},t);},s.update=S=>{clearTimeout(E),E=setTimeout(()=>{po(l,S);},t);},s}var Zn=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],on=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],fe=class i{#n=T(be);#i=T(m);#e=T(m$1);#t=T(O);#o=T(C);#r=T(g);#s=T(h);#a=this.#s.getItem("locale")??"en-US";sysinfo=this.#e.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=Ue("list");previousLang=this.#a;langCtrl=Ue(this.#a);powerModeCtrl=Ue("");usageStatistics=Ue("");updatingUsageStatistics=Ue(false);remoteControlStatus=this.#o.statusMessage;remoteControlState=this.#o.state;updatingChannel=Ue(false);updateChannel=Ue("");isUsingRelay=this.#r.relayIsEnabled;defaultClient=Ue(this.#d());hasIpcController=this.#e.hasIpcController;usageStatisticsDisabled=Nt(()=>(this.#e.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");additionalReportingUrl=Nt(()=>{let t=this.#t.serverSettings();return t&&t["additional-report-url"]||""});#T=Ga(()=>{let t=this.#e.systemInfo()?.DefaultUsageReportLevel??"",e=on;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e);});remoteControlTooltip=Ue($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
3
- registration intact and allow pushing settings from the console.`);connectionStatusIndicatorTooltip=Ue($localize`Hides the connection status indicator in the status bar. Useful if you are not using the remote console.`);setNewChannel(t){this.updateChannel();this.updateChannel.set(t),this.#t.setUpdateChannel(t).pipe(Bu(()=>this.updatingChannel.set(false))).subscribe();}allowRemoteAccess=Ue(false);allowedHostnames=Ue("");loadedAllowedHostnames=Ue("");updatingRemoteAccess=Ue(false);updatingAllowedHosts=Ue(false);updatingConsoleControl=Ue(false);consoleControlDisabled=Ue(false);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;isControllerIpcEnabled=this.#t.isControllerIpcEnabled;updateRemoteAccess(t){this.allowRemoteAccess.set(t),this.#t.setRemoteAccessInterface(t?"any":"loopback").pipe(Bu(()=>this.updatingRemoteAccess.set(false))).subscribe();}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(true),this.#t.setRemoteAccessAllowedHostnames(t).pipe(Bu(()=>this.updatingAllowedHosts.set(false))).subscribe();}toggleConsoleControl(t){this.consoleControlDisabled.set(!t),this.#t.setDisableConsoleControl(!t).pipe(Bu(()=>this.updatingConsoleControl.set(false))).subscribe();}updatingDisableTrayIconLogin=Ue(false);disableTrayIconLogin=Ue(false);saveDisableTrayIconLogin(t){let e=t;this.updatingDisableTrayIconLogin.set(true),this.#t.setDisableTrayIconLogin(e).pipe(Bu(()=>this.updatingDisableTrayIconLogin.set(false))).subscribe();}updatingHideConsoleConnectionStatus=Ue(false);saveHideConsoleConnectionStatus(t){this.updatingHideConsoleConnectionStatus.set(true),this.#t.setHideConsoleConnectionStatus(!t).pipe(Bu(()=>this.updatingHideConsoleConnectionStatus.set(false))).subscribe();}updatingControllerIpcState=Ue(false);saveControllerIpcState(t){this.updatingControllerIpcState.set(true),this.#t.setControllerIpcState(!!t).pipe(Bu(()=>this.updatingControllerIpcState.set(false))).subscribe();}showPassphraseForm=Ue(false);isUpdating=Ue(false);passphrase=Ue("");repeatPassphrase=Ue("");passwordUpdated=Ue(false);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(true),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(Bu(()=>this.isUpdating.set(false))).subscribe({next:()=>{this.showPassphraseForm.set(false),this.passwordUpdated.set(true),setTimeout(()=>{this.passwordUpdated.set(false);},3e3);}}));}openPassphraseForm(){this.showPassphraseForm.set(true);}cancelPasswordChange(){this.showPassphraseForm.set(false);}languageOptions=Ue(It);powerModeOptions=Nt(()=>{let t=this.#e.systemInfo();return !t?.PowerModeProviders||t.PowerModeProviders.filter(e=>e!==""&&e!=="None").length==0?[]:t.PowerModeProviders.map(e=>({value:e==""?"default":e,label:e===""?$localize`Default`:e}))});usageStatisticsOptions=Ue(on);timeTypeOptions=Ue(Zn);timeType=Ue("none");timeValue=Yn(0,300);timeRange=Nt(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#s.setItem("locale",t),window.location.reload());}updateTimeValue(t){this.timeValue.set(t),this.#_();}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#_();}#l;#_(){this.#l&&clearTimeout(this.#l),this.#l=setTimeout(()=>{let t=this.timeValue(),e=this.timeType(),n=e==="none"||t===0?"":`${t}${e}`;n!==this.#t.serverSettings()?.["startup-delay"]&&this.#t.setStartupDelay(n).subscribe();},1e3);}updateUsageStatistics(t){let e=this.usageStatistics();!t||t===""||t===e||(this.usageStatistics.set(t),this.updatingUsageStatistics.set(true),this.#t.setUsageReporterLevel(t).subscribe());}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe());}serverSettingsEffect=Ga(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],n=e.slice(-1),s=e.slice(0,-1),l=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.consoleControlDisabled.set(t["disable-console-control"]==="True"),this.usageStatistics.set(t["usage-reporter-level"]===""?"none":t["usage-reporter-level"]),this.timeType.set(e==""?"none":l.includes(n)?n:"none"),this.timeValue.set(e==""?0:parseInt(s));let E=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(E);});setDarkMode(){this.#i.setDarkMode();}setLightMode(){this.#i.setLightMode();}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#n.open(h$1,{data:{title:$localize`Use legacy UI by default`,message:$localize`Are you sure you want to use the legacy user interface by default? This is not recommended unless you have a specific reason.`,confirmText:$localize`Use legacy UI by default`,cancelText:$localize`Cancel`},closed:e=>{e&&(window.location.href="/ngax",this.#c(t));}}):this.#c(t));}openLegacyUI(){this.#n.open(h$1,{data:{title:$localize`Open legacy UI`,message:$localize`Are you sure you want to open the legacy user interface? This is not recommended unless you have a specific reason.`,confirmText:$localize`Open legacy UI`,cancelText:$localize`Cancel`},closed:t=>{t&&window.open("/ngax","_blank");}});}#c(t){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+t+"; expires="+e.toUTCString()+"; path=/",this.defaultClient.set(t);}#d(){let t=document.cookie.split(";");for(let e=0;e<t.length;e++){let n=t[e].trim();if(n.startsWith("default-client="))return n.substring(15)}return "ngclient"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=dw({type:i,selectors:[["app-settings"]],decls:130,vars:38,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let n;n=$localize`Color theme`;let s;s=$localize`Customize your application theme`;let l;l=$localize`Passwords`;let E;E=$localize`Change server passphrase`;let S;S=$localize`Language`;let m;m=$localize`Select a language for the platform`;let f;f=$localize`Use legacy interface`;let W;W=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let ue;ue=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let J;J=$localize`${"\uFFFD#50\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#50\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*51:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set current UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*51:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*52:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set legacy UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*52:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,J=tC(J);let z;z=$localize`Allow remote access (requires restart)`;let Q;Q=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Y;Y=$localize`Allow remote access`;let Ie;Ie=$localize`Prevent tray icon automatic log-in`;let Me;Me=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Pe;Pe=$localize`Prevent tray icon automatic log-in`;let Oe;Oe=$localize`Update channel`;let be;be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let ve;ve=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Re;Re=$localize`Stable`;let Ge;Ge=$localize`Official stable release.`;let ye;ye=$localize`Beta`;let Fe;Fe=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let $e;$e=$localize`Experimental`;let Ae;Ae=$localize`Early previews of new features. Not for use with important data.`;let Le;Le=$localize`Canary`;let we;we=$localize`Builds for developers and testers only. Not for use with important data.`;let De;De=$localize`Pause after startup or hibernation`;let xe;xe=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let ke;ke=$localize`Advanced options`;let Xe;Xe=$localize`Console connection status`;let Je;Je=$localize`Reporting configured by server`;let ze;ze=$localize`Connect to console`;let Ve;Ve=$localize`Configure console control`;let Ue;Ue=$localize` You can control various settings for the remote console connection. If you are not using the console, you can also hide the connection status indicator. `;let Be;Be=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let He;He=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let We;We=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let je;je=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let qe;qe=$localize`Toggle console connection status`;let Ke;Ke=$localize`Toggle the visibility of the console connection status indicator.`;let Qe;Qe=$localize`Console connection status is hidden`;let Ye;Ye=$localize`Console connection status is visible`;let Ze;Ze=$localize`Enter new password`;let et;et=$localize`Repeat password`;let ge;ge=$localize`Password have to be filled and have to match`;let tt;tt=$localize`Passphrase`;let nt;nt=$localize`Repeat passphrase`;let it;it=$localize`Cancel`;let ot;ot=$localize` Update passphrase `;let st;st=$localize` Update passphrase `;let at;at=$localize`Change password`;let rt;rt=$localize`Allowed hostnames`;let lt;lt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let _t;_t=$localize` Update allowed hostnames `;let ct;ct=$localize`Power mode provider`;let dt;dt=$localize` The power mode provider monitors the system for when it enters a low power state and pauses Duplicati. When the system resumes, Duplicati will resume as well. Choosing the None option disables detection of low power states and Duplicati will run all the time. `;let Tt;Tt=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let St;St=$localize`Usage statistics`;let ut;ut=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate `;let gt;gt=$localize`public usage statistics.`;let pt;pt=$localize` All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `;let Ct;Ct=$localize`Experimental options`;let mt;mt=$localize`Toggle experimental options.`;let Et;Et=$localize`Operations run in an isolated process`;let Nt;return Nt=$localize`Operations run inside the server process`,[t,e,n,s,l,E,S,m,f,W,ue,J,z,Q,Y,Ie,Me,Pe,Oe,be,ve,Re,Ge,ye,Fe,$e,Ae,Le,we,De,xe,ke,Xe,Je,ze,Ve,Ue,Be,He,We,je,qe,Ke,Qe,Ye,tt,nt,it,ot,st,at,rt,lt,_t,ct,dt,Tt,St,ut,gt,pt,Ct,mt,Et,Nt,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"options","isClearable","inlineSearch"],["type","text",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[1,"primary","raised",3,"checkedChange","checked"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised",3,"checked"],[1,"field-row"],[1,"raised","primary",3,"unit"],["type","range",3,"ngModelChange","min","max","disabled","ngModel","ngModelOptions"],["label","label","value","value",3,"options","isClearable"],["type","text",3,"ngModelChange","ngModel"],[1,"advanced-settings"],[1,"reporting-url","primary","simple"],[1,"right","multiple"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","new-password","placeholder",Ze,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","new-password","placeholder",et,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",ge,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",ge,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],["value","value","label","label",3,"options","isClearable"],["href","https://usage-reporter.duplicati.com/","target","_blank"],["label","label","value","value",3,"options","isLoading"]]},template:function(e,n){e&1&&(mg(0,"app-status-bar"),Qi(1,"div",65)(2,"header")(3,"div",66)(4,"h2"),XT(5,0),Hl(),Qi(6,"p"),XT(7,1),Hl()()(),oT(8,In,8,2,"section")(9,Fn,10,2),Qi(10,"section")(11,"div",67)(12,"h3"),XT(13,2),Hl(),Qi(14,"p"),XT(15,3),Hl()(),Qi(16,"div",68)(17,"div",69)(18,"img",70),Fg("click",function(){return n.setLightMode()}),Hl(),Qi(19,"img",71),Fg("click",function(){return n.setDarkMode()}),Hl()()()(),Qi(20,"section")(21,"div",67)(22,"h3"),XT(23,4),Hl(),Qi(24,"p"),XT(25,5),Hl()(),Qi(26,"div",72),oT(27,Dn,15,7)(28,kn,4,1,"div",73),Hl()(),Qi(29,"section")(30,"div",67)(31,"h3"),XT(32,6),Hl(),Qi(33,"p"),XT(34,7),Hl()(),Qi(35,"div",68)(36,"sh-select",74)(37,"input",75),Fg("ngModelChange",function(l){return n.updateLocale(l)}),Hl(),DD(),Hl()()(),Qi(38,"section")(39,"div",67)(40,"h3"),XT(41,8),Hl(),Qi(42,"p"),XT(43,9),Hl()(),Qi(44,"div",76)(45,"button",77),Fg("click",function(){return n.openLegacyUI()}),Og(46,10),mg(47,"sh-icon"),Pg(),Hl(),Qi(48,"button",77),Fg("click",function(){return n.changeDefaultClientTo(n.defaultClient()==="ngclient"?"ngax":"ngclient")}),Og(49,11),mg(50,"sh-icon"),oT(51,Xn,2,0,"span")(52,Jn,2,0,"span"),Pg(),Hl()()(),Qi(53,"section")(54,"div",67)(55,"h3"),XT(56,12),Hl(),Qi(57,"p"),XT(58,13),Hl()(),Qi(59,"div",78)(60,"sh-toggle",79),Fg("checkedChange",function(l){return n.updateRemoteAccess(l)}),Qi(61,"label"),XT(62,14),Hl()(),oT(63,zn,8,3),Hl()(),Qi(64,"section")(65,"div",67)(66,"h3"),XT(67,15),Hl(),Qi(68,"p"),XT(69,16),Hl()(),Qi(70,"div",68)(71,"sh-toggle",79),Fg("checkedChange",function(l){return n.saveDisableTrayIconLogin(l)}),Qi(72,"label"),XT(73,17),Hl()()()(),oT(74,Vn,9,5,"section"),Qi(75,"section")(76,"div",67)(77,"h3"),XT(78,18),Hl(),oT(79,Un,2,1,"p"),oT(80,Bn,1,0,"sh-progress-bar",80),Hl(),Qi(81,"div",81)(82,"div",82),Fg("click",function(){return n.setNewChannel("")}),Qi(83,"sh-radio",83),XT(84,19),Hl(),Qi(85,"p"),XT(86,20),Hl()(),Qi(87,"div",82),Fg("click",function(){return n.setNewChannel("stable")}),Qi(88,"sh-radio",83),XT(89,21),Hl(),Qi(90,"p"),XT(91,22),Hl()(),Qi(92,"div",82),Fg("click",function(){return n.setNewChannel("beta")}),Qi(93,"sh-radio",83),XT(94,23),Hl(),Qi(95,"p"),XT(96,24),Hl()(),Qi(97,"div",82),Fg("click",function(){return n.setNewChannel("experimental")}),Qi(98,"sh-radio",83),XT(99,25),Hl(),Qi(100,"p"),XT(101,26),Hl()(),Qi(102,"div",82),Fg("click",function(){return n.setNewChannel("canary")}),Qi(103,"sh-radio",83),XT(104,27),Hl(),Qi(105,"p"),XT(106,28),Hl()()()(),Qi(107,"section")(108,"div",67)(109,"h3"),XT(110,29),Hl(),Qi(111,"p"),XT(112,30),Hl()(),Qi(113,"div",68)(114,"div",84)(115,"sh-range-slider",85)(116,"input",86),sm("ngModelChange",function(l){return HC(n.timeValue,l)||(n.timeValue=l),l}),Fg("ngModelChange",function(l){return n.updateTimeValue(l)}),Hl(),DD(),Hl(),Qi(117,"sh-select",87)(118,"input",88),Fg("ngModelChange",function(l){return n.updateTimeType(l)}),Hl(),DD(),ig(119,Hn,1,1,"ng-template"),Hl()()()(),oT(120,jn,17,5,"section"),oT(121,Qn,12,2,"section"),Hl(),mg(122,"sh-divider"),Qi(123,"div",65)(124,"section")(125,"div",89)(126,"h3"),XT(127,31),Hl(),mg(128,"app-advanced-options-settings"),Hl()()(),mg(129,"sh-divider")),e&2&&(DE(8),iT(n.isUsingRelay()?8:9),DE(10),Qg("active",!n.isDarkMode()),DE(),Qg("active",n.isDarkMode()),DE(8),iT(n.showPassphraseForm()?27:28),DE(9),gg("options",n.languageOptions())("isClearable",false)("inlineSearch",true),DE(),gg("ngModel",n.langCtrl())("ngModelOptions",QC(36,Se)),TD(),DE(14),iT(n.defaultClient()==="ngax"?51:52),DE(9),gg("checked",n.allowRemoteAccess()),DE(3),iT(n.allowRemoteAccess()?63:-1),DE(8),gg("checked",n.disableTrayIconLogin()),DE(3),iT(n.powerModeOptions().length>0?74:-1),DE(5),iT(n.sysinfo()?.ServerVersion?79:-1),DE(),iT(n.updatingChannel()?80:-1),DE(3),gg("checked",n.updateChannel()===""),DE(),Lg(n.sysinfo()?.DefaultUpdateChannel),eC(84),DE(2),Lg(n.sysinfo()?.ServerVersionType),eC(86),DE(2),gg("checked",n.updateChannel()==="stable"),DE(5),gg("checked",n.updateChannel()==="beta"),DE(5),gg("checked",n.updateChannel()==="experimental"),DE(5),gg("checked",n.updateChannel()==="canary"),DE(12),gg("unit",n.timeType()==="none"?"s":n.timeType()),DE(),gg("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),im("ngModel",n.timeValue),gg("ngModelOptions",QC(37,Se)),TD(),DE(),gg("options",n.timeTypeOptions())("isClearable",false),DE(),gg("ngModel",n.timeType()),TD(),DE(2),iT(n.usageStatisticsDisabled()?-1:120),DE(),iT(n.hasIpcController()?121:-1));},dependencies:[Bn$1,Ze,on$1,Rn$1,Jt,Gn$1,ee,Te,K,v,O$1,tn,d,J,at,Fe,N,c,ue,Nt$1,D],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;background:var(--base-1);border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-4)}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{grid-template-columns:1fr}}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] sh-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:15rem;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-8)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] sh-radio[_ngcontent-%COMP%]{color:var(--base-8);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-9)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}.right.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.right.multiple[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"]})};
4
- export{Yn as debounceSignal,fe as default};