@duplicati/ngclient 0.0.232 → 0.0.233

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 (116) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-B52v_pjw.js → chunk-8Y8ReLEn.js} +2 -2
  3. package/{chunk-Brvxo-yI.js → chunk-AuCOjHXM.js} +1 -1
  4. package/{chunk-Bja52qI7.js → chunk-B1c7h-_w.js} +1 -1
  5. package/{chunk-BqN36tfl.js → chunk-B1wZ4poV.js} +1 -1
  6. package/{chunk-DI7suso2.js → chunk-B5Y6lgE8.js} +1 -1
  7. package/chunk-B6c2NXNy.js +1 -0
  8. package/{chunk-Cjb79u3p.js → chunk-BZgAzrl9.js} +1 -1
  9. package/chunk-B_cIFQAl.js +1 -0
  10. package/{chunk-Da_-7L7P.js → chunk-BaSm1lsB.js} +1 -1
  11. package/{chunk-Saq2s7Ep.js → chunk-Bgw6E0Xu.js} +1 -1
  12. package/{chunk-CIcBoEH1.js → chunk-Bj7EyCHb.js} +1 -1
  13. package/{chunk-aOMoAKYY.js → chunk-BmmYJhOf.js} +1 -1
  14. package/chunk-BrtdRb9j.js +1 -0
  15. package/{chunk-CkrxdjhU.js → chunk-BsNCg00z.js} +2 -2
  16. package/{chunk-CHzwXmsn.js → chunk-BstaUtD_.js} +1 -1
  17. package/{chunk-BBsBaTWO.js → chunk-BxpXVeOr.js} +1 -1
  18. package/{chunk-ivwxSoND.js → chunk-ByL8ndec.js} +1 -1
  19. package/chunk-BzJX1fKw.js +1 -0
  20. package/{chunk-B53Wj4F9.js → chunk-C3gUxHQM.js} +1 -1
  21. package/{chunk-Cz0KuBHB.js → chunk-C7AeY2HY.js} +2 -2
  22. package/chunk-C7gG_Yh_.js +2 -0
  23. package/{chunk-CgyaUJSI.js → chunk-C9OqpwwE.js} +1 -1
  24. package/{chunk-DvyGZpE4.js → chunk-C9ecLR93.js} +2 -2
  25. package/chunk-CGsQCBkP.js +1 -0
  26. package/{chunk-CUaRQ2FJ.js → chunk-CIe9Bupz.js} +1 -1
  27. package/chunk-CIw_h8oP.js +1 -0
  28. package/{chunk-DZm4l28A.js → chunk-CP6xnjgo.js} +2 -2
  29. package/{chunk-Cg09iQR5.js → chunk-CS2J-6VZ.js} +1 -1
  30. package/{chunk-umW-K0Ca.js → chunk-CWgXi-7W.js} +1 -1
  31. package/{chunk-DmDqcC4A.js → chunk-CX3Axjpk.js} +1 -1
  32. package/{chunk-BlTnmRGU.js → chunk-Ca1aaA1h.js} +1 -1
  33. package/{chunk-CartdZy-.js → chunk-CfxBiw7I.js} +1 -1
  34. package/{chunk-CTm37hI-.js → chunk-CgJAbgNN.js} +1 -1
  35. package/{chunk-CUuyy9Er.js → chunk-ChUm8bnG.js} +1 -1
  36. package/{chunk-CtEMAj2d.js → chunk-CkRbgemk.js} +1 -1
  37. package/chunk-ClRItSzt.js +1 -0
  38. package/{chunk-DoQHDPZg.js → chunk-CsIAXoYP.js} +1 -1
  39. package/{chunk-BVEyeg9y.js → chunk-CuJ_uEdr.js} +1 -1
  40. package/{chunk-BEhUV7oX.js → chunk-CvSsZZty.js} +1 -1
  41. package/{chunk-Bb6BmVO4.js → chunk-CyqqlRjO.js} +2 -2
  42. package/{chunk-DqIU7ViF.js → chunk-D1pDZLJ9.js} +1 -1
  43. package/{chunk-vnqcxg-9.js → chunk-D2G7_0hG.js} +1 -1
  44. package/{chunk-DKZlKdfB.js → chunk-D3PhthfU.js} +1 -1
  45. package/chunk-D55uWC7G.js +1 -0
  46. package/{chunk-B8uF0dom.js → chunk-DDWDcSq2.js} +1 -1
  47. package/{chunk-Cu2bh6aQ.js → chunk-DD_wKpGc.js} +1 -1
  48. package/{chunk-Box6Lckh.js → chunk-DGvC49aU.js} +1 -1
  49. package/{chunk-BkIXk6uR.js → chunk-DGxk44Me.js} +2 -2
  50. package/{chunk-D5tms-6w.js → chunk-DM11Gu0H.js} +1 -1
  51. package/chunk-DV8bRznt.js +2 -0
  52. package/{chunk-Dum38U6w.js → chunk-DWiO0A6h.js} +2 -2
  53. package/{chunk-BpRWdcC8.js → chunk-DXEgz1tV.js} +1 -1
  54. package/{chunk-BI14DMeb.js → chunk-DbbyVAGl.js} +1 -1
  55. package/{chunk-CVQPUpDQ.js → chunk-DcdpG1YG.js} +2 -2
  56. package/{chunk-B9maI7Xa.js → chunk-DhiIZLrA.js} +3 -3
  57. package/{chunk-BTgf5lfZ.js → chunk-DidJB9ig.js} +1 -1
  58. package/{chunk-CX26gEKv.js → chunk-Dk-Wgx3e.js} +1 -1
  59. package/{chunk-BBU0vswn.js → chunk-DuYKanVS.js} +1 -1
  60. package/{chunk-DY3nK3tu.js → chunk-DwmssGG9.js} +1 -1
  61. package/chunk-DxFBzFom.js +1 -0
  62. package/{chunk-ihUnHtR7.js → chunk-Dz5guW4b.js} +1 -1
  63. package/{chunk-DzmZd524.js → chunk-FTZ5atHM.js} +1 -1
  64. package/{chunk-CZoVeRAG.js → chunk-I5dxaHZ4.js} +2 -2
  65. package/{chunk-C4GeR7BF.js → chunk-K2iai6rC.js} +1 -1
  66. package/{chunk-BYWmNy-_.js → chunk-L8hQtTzU.js} +1 -1
  67. package/{chunk-CKnRcyHZ.js → chunk-MDqH8T3Z.js} +2 -2
  68. package/{chunk-BkUa7yBI.js → chunk-Y-xXBGKy.js} +1 -1
  69. package/{chunk-Bt_Ie-F3.js → chunk-Z81HNfgo.js} +1 -1
  70. package/{chunk-DUYvFN8m.js → chunk-aCJqF9DH.js} +1 -1
  71. package/{chunk-Bo1yB-fQ.js → chunk-aYCYzU5Q.js} +1 -1
  72. package/{chunk-C80zvTbO.js → chunk-bt6lhYfG.js} +1 -1
  73. package/{chunk-Rp7-yjlz.js → chunk-eiyaQxBt.js} +1 -1
  74. package/{chunk-DJJ8GbYi.js → chunk-h6n5A491.js} +1 -1
  75. package/{chunk-vPGrgL1U.js → chunk-jy8x4GhV.js} +1 -1
  76. package/{chunk-BS8PXjJJ.js → chunk-ksSA-rDF.js} +1 -1
  77. package/{chunk-Dn8nZWLd.js → chunk-lymL5FDY.js} +1 -1
  78. package/{chunk-CAwTsBqQ.js → chunk-mA4J4_nC.js} +1 -1
  79. package/{chunk-CwKy8pxa.js → chunk-mflQLMHH.js} +1 -1
  80. package/chunk-nuwlP4Wz.js +14 -0
  81. package/chunk-uGh0bVbu.js +4 -0
  82. package/index.html +1 -1
  83. package/locale/messages.de.json +69 -9
  84. package/locale/messages.de_CH.json +68 -8
  85. package/locale/messages.de_DE.json +68 -8
  86. package/locale/messages.en.json +32 -8
  87. package/locale/messages.fr.json +77 -13
  88. package/locale/messages.fr_CA.json +72 -8
  89. package/locale/messages.fr_FR.json +72 -8
  90. package/locale/messages.it.json +76 -12
  91. package/locale/messages.it_IT.json +72 -8
  92. package/locale/messages.json +32 -8
  93. package/locale/messages.ko.json +8 -15
  94. package/locale/messages.nl_BE.json +72 -8
  95. package/locale/messages.nl_NL.json +72 -8
  96. package/locale/messages.tr.json +7 -9
  97. package/locale/messages.zh-Hans.json +159 -16
  98. package/locale/messages.zh-Hant.json +159 -16
  99. package/locale/messages.zh.json +159 -16
  100. package/locale/messages.zh_CN.json +159 -16
  101. package/locale/messages.zh_HK.json +7 -8
  102. package/locale/messages.zh_TW.json +159 -16
  103. package/{main-VVQP2YE7.js → main-3NL5M6JB.js} +13 -13
  104. package/package.json +1 -1
  105. package/chunk-B73LRsqH.js +0 -1
  106. package/chunk-BO2GlieG.js +0 -1
  107. package/chunk-BaxM-kGV.js +0 -2
  108. package/chunk-BvGGBIy7.js +0 -1
  109. package/chunk-CGArETYn.js +0 -1
  110. package/chunk-CTRzgLM9.js +0 -2
  111. package/chunk-CTwO6j97.js +0 -1
  112. package/chunk-Cu4siB3B.js +0 -4
  113. package/chunk-DTu0ZYnR.js +0 -1
  114. package/chunk-DYnVzNxt.js +0 -1
  115. package/chunk-kU0H989B.js +0 -14
  116. package/chunk-mby7fvmj.js +0 -1
@@ -1 +1 @@
1
- import {e as ee}from'./chunk-C4GeR7BF.js';import'./chunk-CUaRQ2FJ.js';import'./chunk-aOMoAKYY.js';import'./chunk-BEhUV7oX.js';import'./chunk-Bb6BmVO4.js';import'./chunk-DmDqcC4A.js';import'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,aw as W,a5 as g,ab as C,a6 as be,G as Ge,aG as pt,N as Nt,z as za,aE as jo,H as qu,at as h,h as hw,v,d as N$1,_ as _t,j as vg,Q as Qi,L as Lg,F as Fg,$ as $l,n as nC,V as Vg,p as cm,s as CD,f as aT,C as CE,au as jg,av as rC,Y as Yg,A as yg,g as NC,x as am,y as _D,i as cT,U as UC,aU as iy,aV as sy,w as jC}from'./main-VVQP2YE7.js';import'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-BO2GlieG.js';import {a as at}from'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import {L,F}from'./chunk-Box6Lckh.js';import'./chunk-DqIU7ViF.js';function ue(_,t){_&1&&(Qi(0,"sh-icon",20),jC(1,"spinner"),$l());}function pe(_,t){_&1&&(Qi(0,"sh-icon",21),jC(1,"check"),$l());}function he(_,t){_&1&&(Qi(0,"sh-icon",22),jC(1,"warning"),$l()),_&2&&yg("shTooltip","File not found");}function Te(_,t){let a=F(_).pipe(iy(t),sy());return L(a,{initialValue:_()})}var N=class _{#o=T(W);#s=T(g);#e=T(C);#a=T(be);#t=Ge("");backupId=L(this.#o.params.pipe(pt(t=>t.id)));activeBackup=Nt(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=Ge("");lastValidatedPath=Ge("");isValidatedPath=Nt(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=Nt(()=>this.backupFilePath()!==this.#t());isValidatingPath=Ge(false);#i=Te(this.backupFilePath,500);#n=Ge(false);isWaitingForValidation=Nt(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=za(()=>{let t=this.#i();this.activeBackup();this.#n();t!==""&&(this.isValidatingPath.set(true),this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).pipe(jo(1),qu(()=>this.isValidatingPath.set(false))).subscribe(()=>this.lastValidatedPath.set(t)));});isRestoring=Ge(false);isRepairing=Ge(false);isDeleting=Ge(false);isSavingDbPath=Ge(false);isSavingAndRepairing=Ge(false);isMovingDb=Ge(false);isCreatingBugReport=Ge(false);createdReport=Ge(false);isCompacting=Ge(false);activeBackupEffect=za(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a);});repairDatabase(){this.isRepairing.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(jo(1),qu(()=>this.isRepairing.set(false))).subscribe();}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t);}}):this.doDeleteDatabase(t);}doDeleteDatabase(t=null){this.isDeleting.set(true),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(jo(1),qu(()=>this.isDeleting.set(false))).subscribe(()=>{this.lastValidatedPath.set(""),t?.();});}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase();}):this.doRepairDatabase();}doRepairDatabase(){this.isRestoring.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId(),requestBody:{}}).pipe(jo(1),qu(()=>this.isRestoring.set(false))).subscribe();}resetDatabasePath(){this.backupFilePath.set(this.#t());}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t);}}):this.doSaveDatabasePath(t);}doSaveDatabasePath(t=null){this.isSavingDbPath.set(true);let a=this.backupFilePath();this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:a}}).pipe(qu(()=>this.isSavingDbPath.set(false))).subscribe(()=>{this.#t.set(a),t?.();});}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(jo(1),qu(()=>this.isSavingAndRepairing.set(false))).subscribe()));}moveDatabasePath(){this.isMovingDb.set(true);let t=this.backupFilePath();this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:t}}).pipe(qu(()=>this.isMovingDb.set(false))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t);});}createErrorReport(){this.isCreatingBugReport.set(true),this.#e.postApiV1BackupByIdCreatereport({id:this.backupId()}).pipe(qu(()=>this.isCreatingBugReport.set(false))).subscribe({next:()=>{this.createdReport.set(true),window.setTimeout(()=>this.createdReport.set(false),3e3);}});}compactDatabase(){this.isCompacting.set(true),this.#e.postApiV1BackupByIdCompact({id:this.backupId()}).pipe(qu(()=>this.isCompacting.set(false))).subscribe();}static \u0275fac=function(a){return new(a||_)};static \u0275cmp=hw({type:_,selectors:[["app-database"]],decls:53,vars:24,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let r;r=$localize`Maintenance`;let S;S=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let I;I=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let M;M=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Recreate (delete and repair) `;let R;R=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let B;B=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SH_ICON:file-archive${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SH_ICON: Compact `;let O;O=$localize`Placement`;let $;$=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let v;v=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let k;k=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let y;return y=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,r,S,f,I,M,R,B,O,$,v,k,y,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){a&1&&(vg(0,"app-status-bar"),Qi(1,"section")(2,"div",15)(3,"button",16),Lg(4,0),vg(5,"sh-icon"),Fg(),$l()(),Qi(6,"article")(7,"h1"),nC(8,1),$l(),Qi(9,"p"),nC(10,2),$l()(),Qi(11,"article")(12,"h2"),nC(13,3),$l(),Qi(14,"p"),nC(15,4),$l(),Qi(16,"div",17)(17,"button",18),Vg("click",function(){return e.repairDatabase()}),Lg(18,5),vg(19,"sh-icon"),Fg(),$l(),Qi(20,"button",18),Vg("click",function(){return e.deleteDatabase()}),Lg(21,6),vg(22,"sh-icon"),Fg(),$l(),Qi(23,"button",18),Vg("click",function(){return e.restoreDatabase()}),Lg(24,7),vg(25,"sh-icon"),Fg(),$l(),Qi(26,"button",18),Vg("click",function(){return e.createErrorReport()}),Lg(27,8),vg(28,"sh-icon"),Fg(),$l(),Qi(29,"button",18),Vg("click",function(){return e.compactDatabase()}),Lg(30,9),vg(31,"sh-icon"),Fg(),$l()()(),Qi(32,"article")(33,"h2"),nC(34,10),$l(),Qi(35,"sh-form-field")(36,"input",19),cm("ngModelChange",function(S){return UC(e.backupFilePath,S)||(e.backupFilePath=S),S}),$l(),CD(),aT(37,ue,2,0,"sh-icon",20)(38,pe,2,0,"sh-icon",21)(39,he,2,1,"sh-icon",22),$l(),Qi(40,"div",23)(41,"button",18),Vg("click",function(){return e.resetDatabasePath()}),Lg(42,11),vg(43,"sh-icon"),Fg(),$l(),Qi(44,"button",18),Vg("click",function(){return e.saveDatabasePath()}),Lg(45,12),vg(46,"sh-icon"),Fg(),$l(),Qi(47,"button",18),Vg("click",function(){return e.saveAndRepairDatabasePath()}),Lg(48,13),vg(49,"sh-icon"),Fg(),$l(),Qi(50,"button",18),Vg("click",function(){return e.moveDatabasePath()}),Lg(51,14),vg(52,"sh-icon"),Fg(),$l()()()()),a&2&&(CE(8),jg(e.activeBackup()?.Backup?.Name),rC(8),CE(9),Yg("loading",e.isRepairing()),yg("disabled",!e.isValidatedPath()||e.pathHasChanged()),CE(3),Yg("loading",e.isDeleting()),yg("disabled",!e.isValidatedPath()||e.pathHasChanged()),CE(3),Yg("loading",e.isRestoring()),yg("disabled",e.pathHasChanged()),CE(3),Yg("loading",e.isCreatingBugReport()),yg("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),CE(3),Yg("loading",e.isCompacting()),yg("disabled",e.isCompacting()||!e.isValidatedPath()||e.pathHasChanged()),CE(6),NC(e.isValidatedPath()?"success":"error"),CE(),am("ngModel",e.backupFilePath),_D(),CE(),cT(e.isWaitingForValidation()?37:e.isValidatedPath()?38:39),CE(4),yg("disabled",!e.pathHasChanged()),CE(3),yg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),CE(3),yg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),CE(3),yg("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation()));},dependencies:[Bn,Ze,Rn,Jt,ee,v,Fe,N$1,at,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{N as default};
1
+ import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,aw as W,a5 as g,ab as C,a6 as be,G as Ge,aG as pt,N as Nt,z as za,aE as jo,J as zu,at as h,h as hw,v,c as N$1,_ as _t,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,n as nC,H as Hg,p as lm,r as CD,d as aT,C as CE,au as Vg,av as rC,L as Kg,y as vg,f as NC,w as cm,x as _D,g as cT,U as UC,aU as sy,aV as ay,s as jC}from'./main-3NL5M6JB.js';import'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {a as at}from'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L,F}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';function ue(_,t){_&1&&(Qi(0,"sh-icon",20),jC(1,"spinner"),$l());}function pe(_,t){_&1&&(Qi(0,"sh-icon",21),jC(1,"check"),$l());}function he(_,t){_&1&&(Qi(0,"sh-icon",22),jC(1,"warning"),$l()),_&2&&vg("shTooltip","File not found");}function Te(_,t){let a=F(_).pipe(sy(t),ay());return L(a,{initialValue:_()})}var N=class _{#o=T(W);#s=T(g);#e=T(C);#a=T(be);#t=Ge("");backupId=L(this.#o.params.pipe(pt(t=>t.id)));activeBackup=Nt(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=Ge("");lastValidatedPath=Ge("");isValidatedPath=Nt(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=Nt(()=>this.backupFilePath()!==this.#t());isValidatingPath=Ge(false);#i=Te(this.backupFilePath,500);#n=Ge(false);isWaitingForValidation=Nt(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=za(()=>{let t=this.#i();this.activeBackup();this.#n();t!==""&&(this.isValidatingPath.set(true),this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).pipe(jo(1),zu(()=>this.isValidatingPath.set(false))).subscribe(()=>this.lastValidatedPath.set(t)));});isRestoring=Ge(false);isRepairing=Ge(false);isDeleting=Ge(false);isSavingDbPath=Ge(false);isSavingAndRepairing=Ge(false);isMovingDb=Ge(false);isCreatingBugReport=Ge(false);createdReport=Ge(false);isCompacting=Ge(false);activeBackupEffect=za(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a);});repairDatabase(){this.isRepairing.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(jo(1),zu(()=>this.isRepairing.set(false))).subscribe();}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t);}}):this.doDeleteDatabase(t);}doDeleteDatabase(t=null){this.isDeleting.set(true),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(jo(1),zu(()=>this.isDeleting.set(false))).subscribe(()=>{this.lastValidatedPath.set(""),t?.();});}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase();}):this.doRepairDatabase();}doRepairDatabase(){this.isRestoring.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId(),requestBody:{}}).pipe(jo(1),zu(()=>this.isRestoring.set(false))).subscribe();}resetDatabasePath(){this.backupFilePath.set(this.#t());}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(h,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t);}}):this.doSaveDatabasePath(t);}doSaveDatabasePath(t=null){this.isSavingDbPath.set(true);let a=this.backupFilePath();this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:a}}).pipe(zu(()=>this.isSavingDbPath.set(false))).subscribe(()=>{this.#t.set(a),t?.();});}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(true),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(jo(1),zu(()=>this.isSavingAndRepairing.set(false))).subscribe()));}moveDatabasePath(){this.isMovingDb.set(true);let t=this.backupFilePath();this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:t}}).pipe(zu(()=>this.isMovingDb.set(false))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t);});}createErrorReport(){this.isCreatingBugReport.set(true),this.#e.postApiV1BackupByIdCreatereport({id:this.backupId()}).pipe(zu(()=>this.isCreatingBugReport.set(false))).subscribe({next:()=>{this.createdReport.set(true),window.setTimeout(()=>this.createdReport.set(false),3e3);}});}compactDatabase(){this.isCompacting.set(true),this.#e.postApiV1BackupByIdCompact({id:this.backupId()}).pipe(zu(()=>this.isCompacting.set(false))).subscribe();}static \u0275fac=function(a){return new(a||_)};static \u0275cmp=hw({type:_,selectors:[["app-database"]],decls:53,vars:24,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let r;r=$localize`Maintenance`;let S;S=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let I;I=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let M;M=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Recreate (delete and repair) `;let R;R=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let B;B=$localize`${"\uFFFD#31\uFFFD"}:START_TAG_SH_ICON:file-archive${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SH_ICON: Compact `;let O;O=$localize`Placement`;let $;$=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let v;v=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let k;k=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let y;return y=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#52\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,r,S,f,I,M,R,B,O,$,v,k,y,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){a&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",15)(3,"button",16),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),Qi(6,"article")(7,"h1"),nC(8,1),$l(),Qi(9,"p"),nC(10,2),$l()(),Qi(11,"article")(12,"h2"),nC(13,3),$l(),Qi(14,"p"),nC(15,4),$l(),Qi(16,"div",17)(17,"button",18),Hg("click",function(){return e.repairDatabase()}),Fg(18,5),Ig(19,"sh-icon"),jg(),$l(),Qi(20,"button",18),Hg("click",function(){return e.deleteDatabase()}),Fg(21,6),Ig(22,"sh-icon"),jg(),$l(),Qi(23,"button",18),Hg("click",function(){return e.restoreDatabase()}),Fg(24,7),Ig(25,"sh-icon"),jg(),$l(),Qi(26,"button",18),Hg("click",function(){return e.createErrorReport()}),Fg(27,8),Ig(28,"sh-icon"),jg(),$l(),Qi(29,"button",18),Hg("click",function(){return e.compactDatabase()}),Fg(30,9),Ig(31,"sh-icon"),jg(),$l()()(),Qi(32,"article")(33,"h2"),nC(34,10),$l(),Qi(35,"sh-form-field")(36,"input",19),lm("ngModelChange",function(S){return UC(e.backupFilePath,S)||(e.backupFilePath=S),S}),$l(),CD(),aT(37,ue,2,0,"sh-icon",20)(38,pe,2,0,"sh-icon",21)(39,he,2,1,"sh-icon",22),$l(),Qi(40,"div",23)(41,"button",18),Hg("click",function(){return e.resetDatabasePath()}),Fg(42,11),Ig(43,"sh-icon"),jg(),$l(),Qi(44,"button",18),Hg("click",function(){return e.saveDatabasePath()}),Fg(45,12),Ig(46,"sh-icon"),jg(),$l(),Qi(47,"button",18),Hg("click",function(){return e.saveAndRepairDatabasePath()}),Fg(48,13),Ig(49,"sh-icon"),jg(),$l(),Qi(50,"button",18),Hg("click",function(){return e.moveDatabasePath()}),Fg(51,14),Ig(52,"sh-icon"),jg(),$l()()()()),a&2&&(CE(8),Vg(e.activeBackup()?.Backup?.Name),rC(8),CE(9),Kg("loading",e.isRepairing()),vg("disabled",!e.isValidatedPath()||e.pathHasChanged()),CE(3),Kg("loading",e.isDeleting()),vg("disabled",!e.isValidatedPath()||e.pathHasChanged()),CE(3),Kg("loading",e.isRestoring()),vg("disabled",e.pathHasChanged()),CE(3),Kg("loading",e.isCreatingBugReport()),vg("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),CE(3),Kg("loading",e.isCompacting()),vg("disabled",e.isCompacting()||!e.isValidatedPath()||e.pathHasChanged()),CE(6),NC(e.isValidatedPath()?"success":"error"),CE(),cm("ngModel",e.backupFilePath),_D(),CE(),cT(e.isWaitingForValidation()?37:e.isValidatedPath()?38:39),CE(4),vg("disabled",!e.pathHasChanged()),CE(3),vg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),CE(3),vg("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),CE(3),vg("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation()));},dependencies:[Bn,Ze,Rn,Jt,ee,v,Fe,N$1,at,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};export{N as default};
@@ -0,0 +1 @@
1
+ var o=[{path:"",loadComponent:()=>import('./chunk-DM11Gu0H.js'),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import('./chunk-BsNCg00z.js')},{path:"live",loadComponent:()=>import('./chunk-C7AeY2HY.js')}]}],t=o;export{t as default};
@@ -1,2 +1,2 @@
1
- import {h as hw,M as aC,X as cC}from'./main-VVQP2YE7.js';var d=["*"],c=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=hw({type:e,selectors:[["sh-divider"]],hostAttrs:["role","separator"],ngContentSelectors:d,decls:1,vars:0,template:function(i,a){i&1&&(aC(),cC(0));},styles:[`sh-divider{--divider-c: var(--base-4);--divider-h: .0625rem;display:flex;gap:.5rem;align-items:center;text-align:center}sh-divider:empty{gap:0}sh-divider:before,sh-divider:after{content:"";background:var(--divider-c);height:var(--divider-h);flex:1 0}
1
+ import {h as hw,S as aC,Y as cC}from'./main-3NL5M6JB.js';var d=["*"],c=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=hw({type:e,selectors:[["sh-divider"]],hostAttrs:["role","separator"],ngContentSelectors:d,decls:1,vars:0,template:function(i,a){i&1&&(aC(),cC(0));},styles:[`sh-divider{--divider-c: var(--base-4);--divider-h: .0625rem;display:flex;gap:.5rem;align-items:center;text-align:center}sh-divider:empty{gap:0}sh-divider:before,sh-divider:after{content:"";background:var(--divider-c);height:var(--divider-h);flex:1 0}
2
2
  `],encapsulation:2});}}return e})();export{c};
@@ -1,2 +1,2 @@
1
- import {v as v$1}from'./chunk-CIcBoEH1.js';import {ShipTable as ot}from'./chunk-B52v_pjw.js';import {c}from'./chunk-BpRWdcC8.js';import {T,b as I1,z as za,G as Ge,h as hw,d as N,v as v$2,aJ as ci,f as aT,i as cT,Y as Yg,Q as Qi,n as nC,$ as $l,j as vg,a1 as dT,k as iC,ag as Zg,A as yg,C as CE,a2 as fT,l as vT,V as Vg,r as kd,O as Od,w as jC,aM as ob,J as om,aN as ab,aa as Ql,ap as lT}from'./main-VVQP2YE7.js';import'./chunk-BTgf5lfZ.js';import'./chunk-B8uF0dom.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Qi(0,"div",4),nC(1,0),$l());}function U(t,n){if(t&1&&(Qi(0,"li"),jC(1),$l()),t&2){let e=n.$implicit;CE(),om(e);}}function X(t,n){if(t&1&&(Qi(0,"strong"),jC(1,"# Exception"),$l(),Qi(2,"ol",15),dT(3,U,2,1,"li",null,lT),$l()),t&2){let e=iC(3).$implicit,a=iC(2);CE(3),fT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Qi(0,"li"),jC(1),$l()),t&2){let e=n.$implicit;CE(),om(e);}}function z(t,n){if(t&1&&(Qi(0,"strong"),jC(1,"# Message"),$l(),Qi(2,"ol",15),dT(3,j,2,1,"li",null,lT),$l()),t&2){let e=iC(3).$implicit,a=iC(2);CE(3),fT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Qi(0,"code"),aT(1,X,5,0),aT(2,z,5,0),$l()),t&2){let e=iC(2).$implicit;CE(),cT(e.Exception?1:-1),CE(),cT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Qi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),jC(4),$l(),Qi(5,"div",14),jC(6),$l(),Qi(7,"div",14),jC(8),$l(),Qi(9,"div",14),jC(10),$l(),Qi(11,"div",14),jC(12),$l()(),aT(13,W,3,2,"code"),$l()()),t&2){let e=iC().$implicit;CE(4),Ql("ID: ",e.ID),CE(2),Ql("Type: ",e.Type),CE(2),Ql("Tag: ",e.Tag),CE(2),Ql("TaskID: ",e.TaskID),CE(2),Ql("MessageID: ",e.MessageID),CE(),cT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=vT();Qi(0,"tr",10),Vg("click",function(){let u=kd(e).$implicit,g=iC(2);return Od(g.toggleRow(u.ID))}),Qi(1,"td"),jC(2),ob(3,"date"),$l(),Qi(4,"td"),jC(5),$l(),Qi(6,"td",8)(7,"button",11)(8,"sh-icon"),jC(9,"caret-down"),$l()()()(),aT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=iC(2);CE(2),om(ab(3,5,e.When,"medium")),CE(3),om(a.subStringMessage(e.Message)),CE(2),Yg("rotated-icon",e.ID===a.openRowId()),CE(3),cT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Qi(0,"sh-table",6)(1,"tr",7)(2,"th"),nC(3,1),$l(),Qi(4,"th"),nC(5,2),$l(),vg(6,"th",8),$l(),dT(7,q,11,8,null,null,B),Qi(9,"div",9),nC(10,3),$l()()),t&2){let e=iC();Zg("grid-template-columns","auto 1fr auto"),Yg("type-b",true),yg("data",e.logs())("loading",e.logsLoading()),CE(7),fT(e.logs());}}var v=class t{#e=T(v$1);whenFilter=I1();backupIdFilter=I1();polling=I1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=za(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ge(null);whenEffect=za(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=za(()=>{let n=this.backupIdFilter()??null;this.#e.setBackupIdFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});toggleRow(n){n!=null&&this.openRowId.set(n===this.openRowId()?null:n);}breakIntoLines(n){return n?n.split(`
2
- `):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Yg("is-disabled",a.logLevel()==="Disabled");},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let u;return u=$localize`No data available`,[n,e,a,u,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&aT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&cT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c,v$2,ci],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{v as default};
1
+ import {v as v$1}from'./chunk-Bj7EyCHb.js';import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import {c}from'./chunk-DXEgz1tV.js';import {T,E as E1,z as za,G as Ge,h as hw,c as N,v as v$2,aJ as ci,d as aT,g as cT,L as Kg,Q as Qi,n as nC,$ as $l,i as Ig,a1 as dT,k as iC,ag as Yg,y as vg,C as CE,a2 as fT,l as vT,H as Hg,O as Od,P as Pd,s as jC,aM as ob,K as im,aN as ab,aa as Ql,ap as lT}from'./main-3NL5M6JB.js';import'./chunk-DidJB9ig.js';import'./chunk-DDWDcSq2.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Qi(0,"div",4),nC(1,0),$l());}function U(t,n){if(t&1&&(Qi(0,"li"),jC(1),$l()),t&2){let e=n.$implicit;CE(),im(e);}}function X(t,n){if(t&1&&(Qi(0,"strong"),jC(1,"# Exception"),$l(),Qi(2,"ol",15),dT(3,U,2,1,"li",null,lT),$l()),t&2){let e=iC(3).$implicit,a=iC(2);CE(3),fT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Qi(0,"li"),jC(1),$l()),t&2){let e=n.$implicit;CE(),im(e);}}function z(t,n){if(t&1&&(Qi(0,"strong"),jC(1,"# Message"),$l(),Qi(2,"ol",15),dT(3,j,2,1,"li",null,lT),$l()),t&2){let e=iC(3).$implicit,a=iC(2);CE(3),fT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Qi(0,"code"),aT(1,X,5,0),aT(2,z,5,0),$l()),t&2){let e=iC(2).$implicit;CE(),cT(e.Exception?1:-1),CE(),cT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Qi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),jC(4),$l(),Qi(5,"div",14),jC(6),$l(),Qi(7,"div",14),jC(8),$l(),Qi(9,"div",14),jC(10),$l(),Qi(11,"div",14),jC(12),$l()(),aT(13,W,3,2,"code"),$l()()),t&2){let e=iC().$implicit;CE(4),Ql("ID: ",e.ID),CE(2),Ql("Type: ",e.Type),CE(2),Ql("Tag: ",e.Tag),CE(2),Ql("TaskID: ",e.TaskID),CE(2),Ql("MessageID: ",e.MessageID),CE(),cT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=vT();Qi(0,"tr",10),Hg("click",function(){let u=Od(e).$implicit,g=iC(2);return Pd(g.toggleRow(u.ID))}),Qi(1,"td"),jC(2),ob(3,"date"),$l(),Qi(4,"td"),jC(5),$l(),Qi(6,"td",8)(7,"button",11)(8,"sh-icon"),jC(9,"caret-down"),$l()()()(),aT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=iC(2);CE(2),im(ab(3,5,e.When,"medium")),CE(3),im(a.subStringMessage(e.Message)),CE(2),Kg("rotated-icon",e.ID===a.openRowId()),CE(3),cT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Qi(0,"sh-table",6)(1,"tr",7)(2,"th"),nC(3,1),$l(),Qi(4,"th"),nC(5,2),$l(),Ig(6,"th",8),$l(),dT(7,q,11,8,null,null,B),Qi(9,"div",9),nC(10,3),$l()()),t&2){let e=iC();Yg("grid-template-columns","auto 1fr auto"),Kg("type-b",true),vg("data",e.logs())("loading",e.logsLoading()),CE(7),fT(e.logs());}}var v=class t{#e=T(v$1);whenFilter=E1();backupIdFilter=E1();polling=E1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=za(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ge(null);whenEffect=za(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=za(()=>{let n=this.backupIdFilter()??null;this.#e.setBackupIdFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});toggleRow(n){n!=null&&this.openRowId.set(n===this.openRowId()?null:n);}breakIntoLines(n){return n?n.split(`
2
+ `):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Kg("is-disabled",a.logLevel()==="Disabled");},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let u;return u=$localize`No data available`,[n,e,a,u,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&aT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&cT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c,v$2,ci],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{v as default};
@@ -0,0 +1,2 @@
1
+ import {V as Ve$1,u as ut,s as sn,o as on,p as pt,_ as _n}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import {I}from'./chunk-h6n5A491.js';import {J}from'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {V,h,G}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,e as ee$1,aw as W,bF as ve,c8 as T1,G as Ge,N as Nt,z as za,h as hw,v,c as N,a0 as de$1,u as ue,ak as dm,Q as Qi,H as Hg,i as Ig,$ as $l,d as aT,F as Fg,j as jg,al as WC,C as CE,g as cT,L as Kg,y as vg,M as qg,R as fC,a1 as dT,k as iC,ao as qC,a2 as fT,l as vT,O as Od,P as Pd,s as jC,p as lm,U as UC,n as nC,r as CD,w as cm,a3 as KC,x as _D,ap as lT,aP as ql,aQ as Gl,K as im}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt$1,a as Zt$1}from'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"}),Vt=(o,e)=>e.uiKey;function Kt(o,e){if(o&1){let t=vT();Qi(0,"sh-card",30)(1,"div",32)(2,"h3"),nC(3,4),$l(),Qi(4,"button",33),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.closeCustomList())}),jC(5," Cancel "),Qi(6,"sh-icon"),jC(7,"x-bold"),$l()()(),Qi(8,"app-destination-list",34),Hg("setDestination",function(i){Od(t);let _=iC(3);return Pd(_.setDestination(i))}),$l()();}}function Jt(o,e){if(o&1){let t=vT();Qi(0,"div",40)(1,"sh-toggle",43),lm("checkedChange",function(i){Od(t);let _=iC(2).$implicit;return UC(_.save,i)||(_.save=i),Pd(i)}),Qi(2,"span",44),nC(3,8),$l()()();}if(o&2){let t=iC(2).$implicit;CE(),vg("color","primary")("variant","raised"),cm("checked",t.save);}}function Xt(o,e){if(o&1){let t=vT();Qi(0,"sh-toggle-card",31),ql(1,35),Qi(2,"app-destination-list-item",36)(3,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.changeDestination(i))}),jC(4,"Change"),$l(),Qi(5,"sh-menu",37),Hg("click",function(i){return i.stopPropagation()}),Qi(6,"button",38)(7,"sh-icon"),jC(8,"dots-three-vertical"),$l()(),ql(9,39),Qi(10,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.openTargetUrlDialog(i))}),Fg(11,5),Ig(12,"sh-icon"),jg(),$l(),Qi(13,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.copyTargetUrl(i))}),Fg(14,6),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.removeDestination(i))}),Fg(17,7),Ig(18,"sh-icon"),jg(),$l(),Gl(),$l()(),Gl(),aT(19,Jt,4,3,"div",40),Qi(20,"app-test-url",41,1),Hg("targetUrlChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTestState(_,i))}),$l(),Qi(22,"app-single-destination",42),Hg("targetUrlChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTargetUrl(_,i))}),$l()();}if(o&2){let t=iC(),n=t.$implicit,i=t.$index,_=iC(2);vg("disableToggle",true)("isActive",true),CE(2),vg("targetUrl",n.url)("connectionStringId",n.connectionStringId),CE(17),cT(n.connectionStringId?-1:19),CE(),vg("targetUrl",n.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",n.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),CE(2),vg("targetUrl",n.url)("useBackupState",true);}}function zt(o,e){if(o&1&&aT(0,Kt,9,0,"sh-card",30)(1,Xt,23,17,"sh-toggle-card",31),o&2){let t=e.$index,n=iC(2);cT(n.showCustomList()&&n.currentEditingIndex()===t?0:1);}}function Ht(o,e){if(o&1&&dT(0,zt,2,1,null,null,Vt),o&2){iC();let t=qC(0);fT(t);}}function Wt(o,e){o&1&&(Qi(0,"div",45),Ig(1,"sh-progress-bar",46),Qi(2,"div",47)(3,"h3"),nC(4,9),$l()()());}function jt(o,e){o&1&&(Qi(0,"sh-divider"),nC(1,12),$l());}function Qt(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit;CE(),im(t.Description);}}function qt(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit,n=iC(4);CE(),im(n.getSimplePath(t.BaseUrl));}}function Yt(o,e){if(o&1){let t=vT();Qi(0,"app-destination-list-item",50),Hg("click",function(){let i=Od(t).$implicit,_=iC(4);return Pd(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"h3",51),jC(2),$l(),aT(3,Qt,2,1,"p",52)(4,qt,2,1,"p",52),$l();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),CE(2),im(t.Name||t.BaseUrl),CE(),cT(t.Description?3:4);}}function Zt(o,e){if(o&1){let t=vT();Qi(0,"sh-card",48),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),jC(2,"plus-circle"),$l(),Qi(3,"div",47)(4,"h3"),nC(5,10),$l(),Qi(6,"p"),nC(7,11),$l()()(),aT(8,jt,2,0,"sh-divider"),dT(9,Yt,5,3,"app-destination-list-item",49,lT);}if(o&2){let t=iC(3);CE(8),cT(t.destinations().length>0?8:-1),CE(),fT(t.destinations());}}function te(o,e){if(o&1&&aT(0,Wt,5,0,"div",45)(1,Zt,11,1),o&2){let t=iC(2);cT(t.isLoadingDestinations()?0:1);}}function ee(o,e){o&1&&(Qi(0,"sh-divider"),nC(1,15),$l());}function ne(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit;CE(),im(t.Description);}}function ie(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit,n=iC(3);CE(),im(n.getSimplePath(t.BaseUrl));}}function oe(o,e){if(o&1){let t=vT();Qi(0,"app-destination-list-item",57),Hg("click",function(){let i=Od(t).$implicit,_=iC(3);return Pd(_.selectSavedDestination(i))}),Qi(1,"h3",51),jC(2),$l(),aT(3,ne,2,1,"p",52)(4,ie,2,1,"p",52),$l();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),CE(2),im(t.Name||t.BaseUrl),CE(),cT(t.Description?3:4);}}function ae(o,e){if(o&1){let t=vT();Qi(0,"div",53)(1,"button",54),Hg("click",function(){Od(t);let i=iC(2);return Pd(i.closeCustomList())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l(),jC(4," Back "),$l()(),Qi(5,"sh-card",55),Hg("click",function(){Od(t);let i=iC(2);return Pd(i.toggleCustomList())}),Qi(6,"sh-icon"),jC(7,"plus-circle"),$l(),Qi(8,"div",47)(9,"h3"),nC(10,13),$l(),Qi(11,"p"),nC(12,14),$l()()(),aT(13,ee,2,0,"sh-divider"),dT(14,oe,5,3,"app-destination-list-item",56,lT);}if(o&2){let t=iC(2);CE(13),cT(t.destinations().length>0?13:-1),CE(),fT(t.destinations());}}function re(o,e){if(o&1){let t=vT();Qi(0,"div",53)(1,"button",54),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.closeCustomList())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()(),Qi(4,"h3"),nC(5,16),$l()();}}function se(o,e){if(o&1){let t=vT();aT(0,re,6,0,"div",53),Qi(1,"app-destination-list",34),Hg("setDestination",function(i){Od(t);let _=iC(2);return Pd(_.setDestination(i))}),$l();}if(o&2){let t=iC(2),n=qC(0);cT(t.destinations().length>0||n.length>0?0:-1);}}function _e(o,e){if(o&1&&aT(0,te,2,1)(1,ae,16,1)(2,se,2,1),o&2){let t=iC(),n=qC(1);cT(!t.showCustomList()&&!n&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function le(o,e){if(o&1){let t=vT();Qi(0,"div",25)(1,"button",58),Hg("click",function(){Od(t);let i=iC();return Pd(i.startAddingNew())}),Qi(2,"sh-icon"),jC(3,"plus"),$l(),jC(4," Add another destination "),$l()();}}function ce(o,e){o&1&&(Qi(0,"h2"),nC(1,19),$l());}function de(o,e){o&1&&(Qi(0,"h2"),nC(1,20),$l());}function Ce(o,e){if(o&1){let t=vT();Qi(0,"sh-dialog",59),lm("isOpenChange",function(i){Od(t);let _=iC();return UC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),Pd(i)}),Qi(1,"header",60)(2,"div",61),aT(3,ce,2,0,"h2")(4,de,2,0,"h2"),Qi(5,"sh-alert",62),nC(6,17),$l()()(),Qi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),lm("ngModelChange",function(i){Od(t);let _=iC();return UC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),Pd(i)}),$l(),CD(),$l()(),Qi(10,"footer",65)(11,"button",27),Hg("click",function(){Od(t);let i=iC();return Pd(i.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",66),Hg("click",function(){Od(t);let i=iC();return Pd(i.closeTargetUrlDialog(true))}),Fg(14,18),Ig(15,"sh-icon"),jg(),$l()()();}if(o&2){let t=iC(),n=qC(1);cm("isOpen",t.targetUrlDialogOpen),vg("options",KC(4,Bt)),CE(3),cT(n?4:3),CE(6),cm("ngModel",t.targetUrlCtrl),_D();}}var $=new jn,Be=(o={destinations:[]})=>$.group({destinations:$.array(o.destinations)}),Ve=({key:o,customGroup:e,dynamicGroup:t,advancedGroup:n})=>$.group({destinationType:$.control(o),custom:e,dynamic:t,advanced:n}),B=class o{#n=T(ee$1);#i=T(W);#t=T(Ve$1);#e=T(ut);injector=T(ve);testUrlComponents=T1();testStates=Ge([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);currentEditingIndex=Ge(null);targetUrlDialogOpen=Ge(false);showCustomList=Ge(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let e=this.targetUrlModel();return e?V(e)??null:null});isLoadingDestinationEffect=za(()=>{let e=this.isLoadingDestinations(),t=this.destinations(),n=this.targetUrls();!e&&t.length==0&&n.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let e=this.selectedDestinationType();return e?{key:e.customKey??e.key,customKey:e.customKey??null,displayName:e.displayName,description:e.description,sourceDescription:e.sourceDescription??null,icon:e.icon}:null});getConnectionString(e){let t=this.#e.destinations().find(n=>n.ID===e);return console.log("connection",t),t}getSimplePath(e){return e?h(e):""}copyTargetUrl(e=0){let t=this.targetUrls()[e]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(e=0){let t=this.targetUrls()[e]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(e),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(e=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),n=this.targetUrlInitial();if(!e||t===n||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(e){let t=G(e??"");if(!t)return;let n=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${e}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),n,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=za(()=>{let e=this.targetUrls();this.testStates.update(t=>{if(t.length===e.length)return t;let n=[...t];if(n.length<e.length)for(let i=n.length;i<e.length;i++)n.push(null);else n.length=e.length;return n});});selectSavedDestination(e){e.BaseUrl&&e.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(e.BaseUrl,true,e.ID,null):(this.#t.addTargetUrl(e.BaseUrl,e.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ge(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(e){this.currentEditingIndex.set(e),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(e){this.testStates.update(t=>t.filter((n,i)=>i!==e)),this.#t.removeTargetUrl(e);}updateTargetUrl(e,t){if(!t)return;let n=this.targetUrls()[e]?.connectionStringId??null,i=this.targetUrls()[e]?.urlKey??null;this.#t.updateTargetUrl(e,t,n,i),this.updateTestState(e,null);}updateTestState(e,t){this.testStates.update(n=>{let i=[...n];return i[e]=t,i});}toggleSave(e){this.#t.toggleSaveConnectionString(e);}goBack(){this.#n.navigate(["general"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=hw({type:o,selectors:[["app-destination"]],viewQuery:function(t,n){t&1&&qg(n.testUrlComponents,kt,5),t&2&&fC();},decls:19,vars:9,consts:()=>{let e;e=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let b;b=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],e,t,n,i,_,T,b,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,n){if(t&1&&(dm(0)(1),Qi(2,"form",21,0),Hg("submit",function(){return n.next()}),Qi(4,"div",22),Ig(5,"input",23)(6,"input",24),$l(),Qi(7,"header"),aT(8,Ht,2,0),$l(),aT(9,_e,3,1),aT(10,le,5,0,"div",25),Qi(11,"div",26)(12,"button",27),Hg("click",function(){return n.goBack()}),Fg(13,2),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",28),Fg(16,3),Ig(17,"sh-icon"),jg(),$l()()(),aT(18,Ce,16,5,"sh-dialog",29)),t&2){let i=WC(n.targetUrls());CE();let _=WC(i.length>0);CE(7),cT(n.currentEditingIndex()!==null||!n.showCustomList()&&!n.isAddingNew()?8:-1),CE(),cT((!_||n.showCustomList()||n.isAddingNew())&&n.currentEditingIndex()===null?9:-1),CE(),cT(_&&!n.showCustomList()&&!n.isAddingNew()?10:-1),CE(5),Kg("loading",n.isNew()&&n.testStates().length>0&&n.testStates()[0]==="testing"),vg("disabled",!_),CE(3),cT(n.targetUrlDialogOpen()?18:-1);}},dependencies:[sn,on,pt,_n,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve$1,N,de$1,ue,f,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
2
+ export{Be as createDestinationForm,Ve as createDestinationFormGroup,B as default};
@@ -1,2 +1,2 @@
1
- import {b8 as ue,b as I1,b9 as ce,T,q as qe,z as za,h as hw,ba as ig,M as aC,X as cC,g as NC}from'./main-VVQP2YE7.js';var m=["*"],w=(()=>{class i extends ue{constructor(){super("[value], [step], [routerLinkActive], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.color=I1(null),this.hostClasses=ce("stepper",{color:this.color});let s=T(qe);if(za(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let r=document.createElement("div");r.className="radio sh-sheet",t.append(r),e.prepend(t);}});}),za(()=>{this.items(),this.updateProgress();}),typeof MutationObserver<"u"){let e=new MutationObserver(()=>{this.updateProgress();});e.observe(this.hostElement,{attributes:true,subtree:true,attributeFilter:["class"]}),s.onDestroy(()=>{e.disconnect();});}}updateProgress(){let s=Array.from(this.hostElement.querySelectorAll("[value], [step], [routerLinkActive], button, a")),e=s.findIndex(f=>f.classList.contains(this.activeClass));e===-1&&(e=0);let t=s.length,r=0;t>1&&(r=e/(t-1)*100),this.hostElement.style.setProperty("--stepper-progress",`${r}%`);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=hw({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(e,t){e&2&&NC(t.hostClasses());},inputs:{color:[1,"color"]},features:[ig],ngContentSelectors:m,decls:1,vars:0,template:function(e,t){e&1&&(aC(),cC(0));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}sh-stepper{--step-track-bg: var(--base-3);--step-c: var(--base-6);--step-radio-cbg: var(--base-1);--step-radio-c: var(--base-g2);--step-active-c: var(--base-8);display:flex;flex-wrap:nowrap;width:100%;position:relative}sh-stepper.primary{--step-c: var(--primary-6);--step-radio-cbg: var(--primary-1);--step-radio-c: var(--primary-g2);--step-active-c: var(--primary-8)}sh-stepper.accent{--step-c: var(--accent-6);--step-radio-cbg: var(--accent-1);--step-radio-c: var(--accent-g2);--step-active-c: var(--accent-8)}sh-stepper.warn{--step-c: var(--warn-6);--step-radio-cbg: var(--warn-1);--step-radio-c: var(--warn-g2);--step-active-c: var(--warn-8)}sh-stepper.error{--step-c: var(--error-6);--step-radio-cbg: var(--error-1);--step-radio-c: var(--error-g2);--step-active-c: var(--error-8)}sh-stepper.success{--step-c: var(--success-6);--step-radio-cbg: var(--success-1);--step-radio-c: var(--success-g2);--step-active-c: var(--success-8)}sh-stepper button{background:transparent;border:0;padding:0}sh-stepper button,sh-stepper [routerLinkActive],sh-stepper [step],sh-stepper [value]{flex:2 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;position:relative;color:var(--base-8);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;z-index:1}sh-stepper button:focus-visible .sh-radio,sh-stepper [routerLinkActive]:focus-visible .sh-radio,sh-stepper [step]:focus-visible .sh-radio,sh-stepper [value]:focus-visible .sh-radio{outline:2px solid var(--primary-8);outline-offset:2px;border-radius:50%}sh-stepper button:first-child,sh-stepper [routerLinkActive]:first-child,sh-stepper [step]:first-child,sh-stepper [value]:first-child{align-items:flex-start;flex:1 0}sh-stepper button:last-child,sh-stepper [routerLinkActive]:last-child,sh-stepper [step]:last-child,sh-stepper [value]:last-child{align-items:flex-end;flex:1 0;text-align:end}sh-stepper button:not(.active) .sh-radio,sh-stepper [routerLinkActive]:not(.active) .sh-radio,sh-stepper [step]:not(.active) .sh-radio,sh-stepper [value]:not(.active) .sh-radio{z-index:10}sh-stepper button:has(~button.active) .sh-radio,sh-stepper button:has(~[step].active) .sh-radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio,sh-stepper button:has(~[value].active) .sh-radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio,sh-stepper [step]:has(~button.active) .sh-radio,sh-stepper [step]:has(~[step].active) .sh-radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [step]:has(~[value].active) .sh-radio,sh-stepper [value]:has(~button.active) .sh-radio,sh-stepper [value]:has(~[step].active) .sh-radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [value]:has(~[value].active) .sh-radio{--radiod-o: 1}sh-stepper button:has(~button.active) .sh-radio .radio,sh-stepper button:has(~[step].active) .sh-radio .radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper button:has(~[value].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio .radio,sh-stepper [step]:has(~button.active) .sh-radio .radio,sh-stepper [step]:has(~[step].active) .sh-radio .radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [step]:has(~[value].active) .sh-radio .radio,sh-stepper [value]:has(~button.active) .sh-radio .radio,sh-stepper [value]:has(~[step].active) .sh-radio .radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [value]:has(~[value].active) .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper button .sh-radio .radio,sh-stepper [routerLinkActive] .sh-radio .radio,sh-stepper [step] .sh-radio .radio,sh-stepper [value] .sh-radio .radio{--radiod-c: var(--step-radio-cbg);width:1rem;height:1rem}sh-stepper button.active,sh-stepper [routerLinkActive].active,sh-stepper [step].active,sh-stepper [value].active{color:var(--step-active-c);outline:none}sh-stepper button.active .sh-radio,sh-stepper [routerLinkActive].active .sh-radio,sh-stepper [step].active .sh-radio,sh-stepper [value].active .sh-radio{z-index:0;--radiod-o: 1}sh-stepper button.active .sh-radio .radio,sh-stepper [routerLinkActive].active .sh-radio .radio,sh-stepper [step].active .sh-radio .radio,sh-stepper [value].active .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper:before{content:"";position:absolute;top:.375rem;left:0;z-index:0;right:0;height:.25rem;background-color:var(--step-track-bg)}sh-stepper:after{content:"";position:absolute;top:.375rem;left:0;z-index:0;width:var(--stepper-progress, 0%);height:.25rem;background-color:var(--step-active-c);transition:width .15s ease-out}
1
+ import {ba as ue,E as E1,bb as ce,T,q as qe,z as za,h as hw,bc as sg,S as aC,Y as cC,f as NC}from'./main-3NL5M6JB.js';var m=["*"],w=(()=>{class i extends ue{constructor(){super("[value], [step], [routerLinkActive], button, a","active",{hostRole:"tablist",itemRole:"tab"}),this.color=E1(null),this.hostClasses=ce("stepper",{color:this.color});let s=T(qe);if(za(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let r=document.createElement("div");r.className="radio sh-sheet",t.append(r),e.prepend(t);}});}),za(()=>{this.items(),this.updateProgress();}),typeof MutationObserver<"u"){let e=new MutationObserver(()=>{this.updateProgress();});e.observe(this.hostElement,{attributes:true,subtree:true,attributeFilter:["class"]}),s.onDestroy(()=>{e.disconnect();});}}updateProgress(){let s=Array.from(this.hostElement.querySelectorAll("[value], [step], [routerLinkActive], button, a")),e=s.findIndex(f=>f.classList.contains(this.activeClass));e===-1&&(e=0);let t=s.length,r=0;t>1&&(r=e/(t-1)*100),this.hostElement.style.setProperty("--stepper-progress",`${r}%`);}static{this.\u0275fac=function(e){return new(e||i)};}static{this.\u0275cmp=hw({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(e,t){e&2&&NC(t.hostClasses());},inputs:{color:[1,"color"]},features:[sg],ngContentSelectors:m,decls:1,vars:0,template:function(e,t){e&1&&(aC(),cC(0));},styles:[`.sh-radio,sh-radio{--radiod-c: var(--base-8);--radiod-o: 0;--radio-bc: var(--base-4);display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;position:relative}.sh-radio:focus-visible>.radio,.sh-radio:has(input:focus-visible)>.radio,sh-radio:focus-visible>.radio,sh-radio:has(input:focus-visible)>.radio{outline:2px solid var(--primary-8);outline-offset:2px}.sh-radio>input,sh-radio>input{appearance:none;position:absolute;inset:0;cursor:pointer}.sh-radio>input:focus,.sh-radio>input:focus-visible,sh-radio>input:focus,sh-radio>input:focus-visible{outline:none}.sh-radio:has(>input:not(.internal-input))>input.internal-input,sh-radio:has(>input:not(.internal-input))>input.internal-input{display:none}.sh-radio:has(input[disabled]),.sh-radio[disabled]:not([disabled=false]),sh-radio:has(input[disabled]),sh-radio[disabled]:not([disabled=false]){opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none;cursor:initial}.sh-radio:has(input:checked),.sh-radio.active,sh-radio:has(input:checked),sh-radio.active{--radiod-o: 1}.sh-radio .radio,sh-radio .radio{display:flex;align-items:center;justify-content:center;width:1.25rem;height:1.25rem;cursor:pointer;position:relative;border-radius:50%}.sh-radio .radio:after,sh-radio .radio:after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;width:.375rem;height:.375rem;background-color:var(--radiod-c);opacity:var(--radiod-o);transition:opacity 125ms linear}.sh-radio.primary,sh-radio.primary{--radiod-c: var(--primary-8)}.sh-radio.accent,sh-radio.accent{--radiod-c: var(--accent-8)}.sh-radio.warn,sh-radio.warn{--radiod-c: var(--warn-8)}.sh-radio.error,sh-radio.error{--radiod-c: var(--error-8)}.sh-radio.success,sh-radio.success{--radiod-c: var(--success-8)}.sh-radio.flat,.sh-radio.raised,sh-radio.flat,sh-radio.raised{--radiod-c: #fff}.sh-radio.raised:not(:has(input:checked)):not(.active) .radio,.sh-radio.flat:not(:has(input:checked)):not(.active) .radio,sh-radio.raised:not(:has(input:checked)):not(.active) .radio,sh-radio.flat:not(:has(input:checked)):not(.active) .radio{background:transparent;border:var(--border-10);border-color:var(--radio-bc)}sh-stepper{--step-track-bg: var(--base-3);--step-c: var(--base-6);--step-radio-cbg: var(--base-1);--step-radio-c: var(--base-g2);--step-active-c: var(--base-8);display:flex;flex-wrap:nowrap;width:100%;position:relative}sh-stepper.primary{--step-c: var(--primary-6);--step-radio-cbg: var(--primary-1);--step-radio-c: var(--primary-g2);--step-active-c: var(--primary-8)}sh-stepper.accent{--step-c: var(--accent-6);--step-radio-cbg: var(--accent-1);--step-radio-c: var(--accent-g2);--step-active-c: var(--accent-8)}sh-stepper.warn{--step-c: var(--warn-6);--step-radio-cbg: var(--warn-1);--step-radio-c: var(--warn-g2);--step-active-c: var(--warn-8)}sh-stepper.error{--step-c: var(--error-6);--step-radio-cbg: var(--error-1);--step-radio-c: var(--error-g2);--step-active-c: var(--error-8)}sh-stepper.success{--step-c: var(--success-6);--step-radio-cbg: var(--success-1);--step-radio-c: var(--success-g2);--step-active-c: var(--success-8)}sh-stepper button{background:transparent;border:0;padding:0}sh-stepper button,sh-stepper [routerLinkActive],sh-stepper [step],sh-stepper [value]{flex:2 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.5rem;position:relative;color:var(--base-8);cursor:pointer;-webkit-user-select:none;user-select:none;outline:none;z-index:1}sh-stepper button:focus-visible .sh-radio,sh-stepper [routerLinkActive]:focus-visible .sh-radio,sh-stepper [step]:focus-visible .sh-radio,sh-stepper [value]:focus-visible .sh-radio{outline:2px solid var(--primary-8);outline-offset:2px;border-radius:50%}sh-stepper button:first-child,sh-stepper [routerLinkActive]:first-child,sh-stepper [step]:first-child,sh-stepper [value]:first-child{align-items:flex-start;flex:1 0}sh-stepper button:last-child,sh-stepper [routerLinkActive]:last-child,sh-stepper [step]:last-child,sh-stepper [value]:last-child{align-items:flex-end;flex:1 0;text-align:end}sh-stepper button:not(.active) .sh-radio,sh-stepper [routerLinkActive]:not(.active) .sh-radio,sh-stepper [step]:not(.active) .sh-radio,sh-stepper [value]:not(.active) .sh-radio{z-index:10}sh-stepper button:has(~button.active) .sh-radio,sh-stepper button:has(~[step].active) .sh-radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio,sh-stepper button:has(~[value].active) .sh-radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio,sh-stepper [step]:has(~button.active) .sh-radio,sh-stepper [step]:has(~[step].active) .sh-radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [step]:has(~[value].active) .sh-radio,sh-stepper [value]:has(~button.active) .sh-radio,sh-stepper [value]:has(~[step].active) .sh-radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio,sh-stepper [value]:has(~[value].active) .sh-radio{--radiod-o: 1}sh-stepper button:has(~button.active) .sh-radio .radio,sh-stepper button:has(~[step].active) .sh-radio .radio,sh-stepper button:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper button:has(~[value].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~button.active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[step].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [routerLinkActive]:has(~[value].active) .sh-radio .radio,sh-stepper [step]:has(~button.active) .sh-radio .radio,sh-stepper [step]:has(~[step].active) .sh-radio .radio,sh-stepper [step]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [step]:has(~[value].active) .sh-radio .radio,sh-stepper [value]:has(~button.active) .sh-radio .radio,sh-stepper [value]:has(~[step].active) .sh-radio .radio,sh-stepper [value]:has(~[routerLinkActive].active) .sh-radio .radio,sh-stepper [value]:has(~[value].active) .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper button .sh-radio .radio,sh-stepper [routerLinkActive] .sh-radio .radio,sh-stepper [step] .sh-radio .radio,sh-stepper [value] .sh-radio .radio{--radiod-c: var(--step-radio-cbg);width:1rem;height:1rem}sh-stepper button.active,sh-stepper [routerLinkActive].active,sh-stepper [step].active,sh-stepper [value].active{color:var(--step-active-c);outline:none}sh-stepper button.active .sh-radio,sh-stepper [routerLinkActive].active .sh-radio,sh-stepper [step].active .sh-radio,sh-stepper [value].active .sh-radio{z-index:0;--radiod-o: 1}sh-stepper button.active .sh-radio .radio,sh-stepper [routerLinkActive].active .sh-radio .radio,sh-stepper [step].active .sh-radio .radio,sh-stepper [value].active .sh-radio .radio{border-width:0;background:var(--step-radio-c)}sh-stepper:before{content:"";position:absolute;top:.375rem;left:0;z-index:0;right:0;height:.25rem;background-color:var(--step-track-bg)}sh-stepper:after{content:"";position:absolute;top:.375rem;left:0;z-index:0;width:var(--stepper-progress, 0%);height:.25rem;background-color:var(--step-active-c);transition:width .15s ease-out}
2
2
  `],encapsulation:2});}}return i})();export{w};
@@ -1,4 +1,4 @@
1
- import {L as L$1}from'./chunk-Box6Lckh.js';import {T,ab as C$1,br as je$1,bs as x$1,aG as pt$1,h as hw,P as Ul,n as nC,S as Wl,R as Ig,C as CE,aq as wg,aD as YC,aj as l,ai as m,bt as Gp}from'./main-VVQP2YE7.js';function j(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=j();function Te(n){R=n;}var P={exec:()=>null};function p(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var Ne=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Oe=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,De=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ge=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),He=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,U=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fe=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ue=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),W={blockquote:Xe,code:Ze,def:Qe,fences:De,heading:Ge,hr:E,html:Ue,lheading:Ae,list:Fe,newline:Oe,paragraph:_e,table:P,text:je},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),We=m(l({},W),{lheading:He,table:me,paragraph:p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),Ve=m(l({},W),{html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(F).replace("hr",E).replace("heading",` *#{1,6} *[^
1
+ import {L as L$1}from'./chunk-DGvC49aU.js';import {T,ab as C$1,c6 as je$1,by as x$1,aG as pt$1,h as hw,V as Ul,n as nC,X as Wl,W as Eg,C as CE,aq as Tg,aD as YC,aj as l,ai as m,c7 as zp}from'./main-3NL5M6JB.js';function j(){return {async:false,breaks:false,extensions:null,gfm:true,hooks:null,pedantic:false,renderer:null,silent:false,tokenizer:null,walkTokens:null}}var R=j();function Te(n){R=n;}var P={exec:()=>null};function p(n,e=""){let r=typeof n=="string"?n:n.source,s={replace:(t,l)=>{let i=typeof l=="string"?l:l.source;return i=i.replace(x.caret,"$1"),r=r.replace(t,i),s},getRegex:()=>new RegExp(r,e)};return s}var Ne=(()=>{try{return !!new RegExp("(?<=1)(?<!1)")}catch{return false}})(),x={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i")},Oe=/^(?:[ \t]*(?:\n|$))+/,Ze=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,De=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,E=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ge=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Q=/(?:[*+-]|\d{1,9}[.)])/,ze=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ae=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),He=p(ze).replace(/bull/g,Q).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),F=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,je=/^[^\n]+/,U=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Qe=p(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",U).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fe=p(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Q).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",X=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ue=p("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",X).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_e=p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),Xe=p(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",_e).getRegex(),W={blockquote:Xe,code:Ze,def:Qe,fences:De,heading:Ge,hr:E,html:Ue,lheading:Ae,list:Fe,newline:Oe,paragraph:_e,table:P,text:je},me=p("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),We=m(l({},W),{lheading:He,table:me,paragraph:p(F).replace("hr",E).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",me).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),Ve=m(l({},W),{html:p(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",X).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:P,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:p(F).replace("hr",E).replace("heading",` *#{1,6} *[^
2
2
  ]`).replace("lheading",Ae).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Je=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ke=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ce=/^( {2,}|\\)\n(?!\s*$)/,Ye=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,N=/[\p{P}\p{S}]/u,V=/[\s\p{P}\p{S}]/u,Pe=/[^\s\p{P}\p{S}]/u,et=p(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,V).getRegex(),Ee=/(?!~)[\p{P}\p{S}]/u,tt=/(?!~)[\s\p{P}\p{S}]/u,rt=/(?:[^\s\p{P}\p{S}]|~)/u,nt=p(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Ne?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ve=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,st=p(ve,"u").replace(/punct/g,N).getRegex(),it=p(ve,"u").replace(/punct/g,Ee).getRegex(),Ie="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",lt=p(Ie,"gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),at=p(Ie,"gu").replace(/notPunctSpace/g,rt).replace(/punctSpace/g,tt).replace(/punct/g,Ee).getRegex(),ot=p("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Pe).replace(/punctSpace/g,V).replace(/punct/g,N).getRegex(),ct=p(/\\(punct)/,"gu").replace(/punct/g,N).getRegex(),ht=p(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),pt=p(X).replace("(?:-->|$)","-->").getRegex(),ut=p("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),L=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,gt=p(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",L).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Le=p(/^!?\[(label)\]\[(ref)\]/).replace("label",L).replace("ref",U).getRegex(),Be=p(/^!?\[(ref)\](?:\[\])?/).replace("ref",U).getRegex(),kt=p("reflink|nolink(?!\\()","g").replace("reflink",Le).replace("nolink",Be).getRegex(),we=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,J={_backpedal:P,anyPunctuation:ct,autolink:ht,blockSkip:nt,br:Ce,code:Ke,del:P,emStrongLDelim:st,emStrongRDelimAst:lt,emStrongRDelimUnd:ot,escape:Je,link:gt,nolink:Be,punctuation:et,reflink:Le,reflinkSearch:kt,tag:ut,text:Ye,url:P},dt=m(l({},J),{link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",L).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",L).getRegex()}),D=m(l({},J),{emStrongRDelimAst:at,emStrongLDelim:it,url:p(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",we).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:p(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",we).getRegex()}),ft=m(l({},D),{br:p(Ce).replace("{2,}","*").getRegex(),text:p(D.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),I={normal:W,gfm:We,pedantic:Ve},A={normal:J,gfm:D,breaks:ft,pedantic:dt},xt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ye=n=>xt[n];function S(n,e){if(e){if(x.escapeTest.test(n))return n.replace(x.escapeReplace,ye)}else if(x.escapeTestNoEncode.test(n))return n.replace(x.escapeReplaceNoEncode,ye);return n}function Se(n){try{n=encodeURI(n).replace(x.percentDecode,"%");}catch{return null}return n}function $e(n,e){let r=n.replace(x.findPipe,(l,i,o)=>{let a=false,h=i;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),s=r.split(x.splitPipe),t=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;t<s.length;t++)s[t]=s[t].trim().replace(x.slashPipe,"|");return s}function _(n,e,r){let s=n.length;if(s===0)return "";let t=0;for(;t<s;){let l=n.charAt(s-t-1);if(l===e&&true)t++;else break}return n.slice(0,s-t)}function bt(n,e){if(n.indexOf(e[1])===-1)return -1;let r=0;for(let s=0;s<n.length;s++)if(n[s]==="\\")s++;else if(n[s]===e[0])r++;else if(n[s]===e[1]&&(r--,r<0))return s;return r>0?-2:-1}function Re(n,e,r,s,t){let l=e.href,i=e.title||null,o=n[1].replace(t.other.outputLinkReplace,"$1");s.state.inLink=true;let a={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:l,title:i,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=false,a}function mt(n,e,r){let s=n.match(r.other.indentCodeCompensation);if(s===null)return e;let t=s[1];return e.split(`
3
3
  `).map(l=>{let i=l.match(r.other.beginningSpace);if(i===null)return l;let[o]=i;return o.length>=t.length?l.slice(t.length):l}).join(`
4
4
  `)}var B=class{options;rules;lexer;constructor(n){this.options=n||R;}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return {type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let r=e[0].replace(this.rules.other.codeRemoveIndent,"");return {type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?r:_(r,`
@@ -57,5 +57,5 @@ ${n}</tr>
57
57
  `}tablecell(n){let e=this.parser.parseInline(n.tokens),r=n.header?"th":"td";return (n.align?`<${r} align="${n.align}">`:`<${r}>`)+e+`</${r}>
58
58
  `}strong({tokens:n}){return `<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return `<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return `<code>${S(n,true)}</code>`}br(n){return "<br>"}del({tokens:n}){return `<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:r}){let s=this.parser.parseInline(r),t=Se(n);if(t===null)return s;n=t;let l='<a href="'+n+'"';return e&&(l+=' title="'+S(e)+'"'),l+=">"+s+"</a>",l}image({href:n,title:e,text:r,tokens:s}){s&&(r=this.parser.parseInline(s,this.parser.textRenderer));let t=Se(n);if(t===null)return S(r);n=t;let l=`<img src="${n}" alt="${r}"`;return e&&(l+=` title="${S(e)}"`),l+=">",l}text(n){return "tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:S(n.text)}},K=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return ""+n}image({text:n}){return ""+n}br(){return ""}},y=class H{options;renderer;textRenderer;constructor(e){this.options=e||R,this.options.renderer=this.options.renderer||new M,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new K;}static parse(e,r){return new H(r).parse(e)}static parseInline(e,r){return new H(r).parseInline(e)}parse(e,r=true){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=l,a=this.options.extensions.renderers[o.type].call({parser:this},o);if(a!==false||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(o.type)){s+=a||"";continue}}let i=l;switch(i.type){case "space":{s+=this.renderer.space(i);continue}case "hr":{s+=this.renderer.hr(i);continue}case "heading":{s+=this.renderer.heading(i);continue}case "code":{s+=this.renderer.code(i);continue}case "table":{s+=this.renderer.table(i);continue}case "blockquote":{s+=this.renderer.blockquote(i);continue}case "list":{s+=this.renderer.list(i);continue}case "html":{s+=this.renderer.html(i);continue}case "def":{s+=this.renderer.def(i);continue}case "paragraph":{s+=this.renderer.paragraph(i);continue}case "text":{let o=i,a=this.renderer.text(o);for(;t+1<e.length&&e[t+1].type==="text";)o=e[++t],a+=`
59
59
  `+this.renderer.text(o);r?s+=this.renderer.paragraph({type:"paragraph",raw:a,text:a,tokens:[{type:"text",raw:a,text:a,escaped:true}]}):s+=a;continue}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(e,r=this.renderer){let s="";for(let t=0;t<e.length;t++){let l=e[t];if(this.options.extensions?.renderers?.[l.type]){let o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==false||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){s+=o||"";continue}}let i=l;switch(i.type){case "escape":{s+=r.text(i);break}case "html":{s+=r.html(i);break}case "link":{s+=r.link(i);break}case "image":{s+=r.image(i);break}case "strong":{s+=r.strong(i);break}case "em":{s+=r.em(i);break}case "codespan":{s+=r.codespan(i);break}case "br":{s+=r.br(i);break}case "del":{s+=r.del(i);break}case "text":{s+=r.text(i);break}default:{let o='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},C=class{options;block;constructor(n){this.options=n||R;}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?y.parse:y.parseInline}},wt=class{defaults=j();options=this.setOptions;parse=this.parseMarkdown(true);parseInline=this.parseMarkdown(false);Parser=y;Renderer=M;TextRenderer=K;Lexer=w;Tokenizer=B;Hooks=C;constructor(...n){this.use(...n);}walkTokens(n,e){let r=[];for(let s of n)switch(r=r.concat(e.call(this,s)),s.type){case "table":{let t=s;for(let l of t.header)r=r.concat(this.walkTokens(l.tokens,e));for(let l of t.rows)for(let i of l)r=r.concat(this.walkTokens(i.tokens,e));break}case "list":{let t=s;r=r.concat(this.walkTokens(t.items,e));break}default:{let t=s;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(l=>{let i=t[l].flat(1/0);r=r.concat(this.walkTokens(i,e));}):t.tokens&&(r=r.concat(this.walkTokens(t.tokens,e)));}}return r}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(r=>{let s=l({},r);if(s.async=this.defaults.async||s.async||false,r.extensions&&(r.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let l=e.renderers[t.name];l?e.renderers[t.name]=function(...i){let o=t.renderer.apply(this,i);return o===false&&(o=l.apply(this,i)),o}:e.renderers[t.name]=t.renderer;}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=e[t.level];l?l.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&(t.level==="block"?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:t.level==="inline"&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]));}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens);}),s.extensions=e),r.renderer){let t=this.defaults.renderer||new M(this.defaults);for(let l in r.renderer){if(!(l in t))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let i=l,o=r.renderer[i],a=t[i];t[i]=(...h)=>{let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c||""};}s.renderer=t;}if(r.tokenizer){let t=this.defaults.tokenizer||new B(this.defaults);for(let l in r.tokenizer){if(!(l in t))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let i=l,o=r.tokenizer[i],a=t[i];t[i]=(...h)=>{let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c};}s.tokenizer=t;}if(r.hooks){let t=this.defaults.hooks||new C;for(let l in r.hooks){if(!(l in t))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let i=l,o=r.hooks[i],a=t[i];C.passThroughHooks.has(l)?t[i]=h=>{if(this.defaults.async&&C.passThroughHooksRespectAsync.has(l))return (async()=>{let k=await o.call(t,h);return a.call(t,k)})();let c=o.call(t,h);return a.call(t,c)}:t[i]=(...h)=>{if(this.defaults.async)return (async()=>{let k=await o.apply(t,h);return k===false&&(k=await a.apply(t,h)),k})();let c=o.apply(t,h);return c===false&&(c=a.apply(t,h)),c};}s.hooks=t;}if(r.walkTokens){let t=this.defaults.walkTokens,l=r.walkTokens;s.walkTokens=function(i){let o=[];return o.push(l.call(this,i)),t&&(o=o.concat(t.call(this,i))),o};}this.defaults=l(l({},this.defaults),s);}),this}setOptions(n){return this.defaults=l(l({},this.defaults),n),this}lexer(n,e){return w.lex(n,e??this.defaults)}parser(n,e){return y.parse(n,e??this.defaults)}parseMarkdown(n){return (e,r)=>{let s=l({},r),t=l(l({},this.defaults),s),l$1=this.onError(!!t.silent,!!t.async);if(this.defaults.async===true&&s.async===false)return l$1(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return l$1(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return l$1(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=n),t.async)return (async()=>{let i=t.hooks?await t.hooks.preprocess(e):e,o=await(t.hooks?await t.hooks.provideLexer():n?w.lex:w.lexInline)(i,t),a=t.hooks?await t.hooks.processAllTokens(o):o;t.walkTokens&&await Promise.all(this.walkTokens(a,t.walkTokens));let h=await(t.hooks?await t.hooks.provideParser():n?y.parse:y.parseInline)(a,t);return t.hooks?await t.hooks.postprocess(h):h})().catch(l$1);try{t.hooks&&(e=t.hooks.preprocess(e));let i=(t.hooks?t.hooks.provideLexer():n?w.lex:w.lexInline)(e,t);t.hooks&&(i=t.hooks.processAllTokens(i)),t.walkTokens&&this.walkTokens(i,t.walkTokens);let o=(t.hooks?t.hooks.provideParser():n?y.parse:y.parseInline)(i,t);return t.hooks&&(o=t.hooks.postprocess(o)),o}catch(i){return l$1(i)}}}onError(n,e){return r=>{if(r.message+=`
60
- Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+S(r.message+"",true)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},$=new wt;function g(n,e){return $.parse(n,e)}g.options=g.setOptions=function(n){return $.setOptions(n),g.defaults=$.defaults,Te(g.defaults),g};g.getDefaults=j;g.defaults=R;g.use=function(...n){return $.use(...n),g.defaults=$.defaults,Te(g.defaults),g};g.walkTokens=function(n,e){return $.walkTokens(n,e)};g.parseInline=$.parseInline;g.Parser=y;g.parser=y.parse;g.Renderer=M;g.TextRenderer=K;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=B;g.Hooks=C;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;y.parse;w.lex;var Y=new x$1("Marked"),Me={provide:Y,useFactory:()=>g};var ee=class n{#e=T(C$1);#t=T(je$1);#r=T(Y);changelog=L$1(this.#e.getApiV1Changelog().pipe(pt$1(e=>{let s=this.#t.bypassSecurityTrustHtml(e.Changelog??"").toString();return s.startsWith("SafeValue must use [property]=binding: ")&&(s=s.replace("SafeValue must use [property]=binding: ","")),this.#r.parse(s.replace(/^[\u200B\u200C\u200D\u200E\u200F\uFEFF]/,""))})));static \u0275fac=function(r){return new(r||n)};static \u0275cmp=hw({type:n,selectors:[["app-changelog"]],features:[YC([Me])],decls:3,vars:1,consts:()=>{let e;return e=$localize`Changelog`,[e,[1,"markdown-output",3,"innerHTML"]]},template:function(r,s){r&1&&(Ul(0,"h3"),nC(1,0),Wl(),Ig(2,"div",1)),r&2&&(CE(2),wg("innerHTML",s.changelog(),Gp));},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}"]})};
60
+ Please report this to https://github.com/markedjs/marked.`,n){let s="<p>An error occurred:</p><pre>"+S(r.message+"",true)+"</pre>";return e?Promise.resolve(s):s}if(e)return Promise.reject(r);throw r}}},$=new wt;function g(n,e){return $.parse(n,e)}g.options=g.setOptions=function(n){return $.setOptions(n),g.defaults=$.defaults,Te(g.defaults),g};g.getDefaults=j;g.defaults=R;g.use=function(...n){return $.use(...n),g.defaults=$.defaults,Te(g.defaults),g};g.walkTokens=function(n,e){return $.walkTokens(n,e)};g.parseInline=$.parseInline;g.Parser=y;g.parser=y.parse;g.Renderer=M;g.TextRenderer=K;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=B;g.Hooks=C;g.parse=g;g.options;g.setOptions;g.use;g.walkTokens;g.parseInline;y.parse;w.lex;var Y=new x$1("Marked"),Me={provide:Y,useFactory:()=>g};var ee=class n{#e=T(C$1);#t=T(je$1);#r=T(Y);changelog=L$1(this.#e.getApiV1Changelog().pipe(pt$1(e=>{let s=this.#t.bypassSecurityTrustHtml(e.Changelog??"").toString();return s.startsWith("SafeValue must use [property]=binding: ")&&(s=s.replace("SafeValue must use [property]=binding: ","")),this.#r.parse(s.replace(/^[\u200B\u200C\u200D\u200E\u200F\uFEFF]/,""))})));static \u0275fac=function(r){return new(r||n)};static \u0275cmp=hw({type:n,selectors:[["app-changelog"]],features:[YC([Me])],decls:3,vars:1,consts:()=>{let e;return e=$localize`Changelog`,[e,[1,"markdown-output",3,"innerHTML"]]},template:function(r,s){r&1&&(Ul(0,"h3"),nC(1,0),Wl(),Eg(2,"div",1)),r&2&&(CE(2),Tg("innerHTML",s.changelog(),zp));},styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}"]})};
61
61
  export{ee as default};
@@ -0,0 +1 @@
1
+ import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import'./chunk-DidJB9ig.js';import {T,ab as C,a6 as be,a5 as g,e as ee,E as E1,N as Nt,G as Ge,z as za,ai as m,aj as l,b3 as Ae$1,b4 as qu,J as zu,at as h,h as hw,v,_ as _t,aH as m$1,b2 as m$2,Q as Qi,n as nC,$ as $l,d as aT,H as Hg,C as CE,au as Vg,av as rC,g as cT,y as vg,a3 as KC,L as Kg,o as oC,i as Ig,l as vT,p as lm,O as Od,k as iC,U as UC,P as Pd,a1 as dT,w as cm,a2 as fT,s as jC,aM as ob,r as CD,K as im,aN as ab,aR as sb,x as _D}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt}from'./chunk-B6c2NXNy.js';import {$}from'./chunk-DGvC49aU.js';var ue=()=>["/"],Te=(s,i)=>i.Version;function Pe(s,i){s&1&&(Qi(0,"div",11),Ig(1,"sh-progress-bar",17),Qi(2,"p"),nC(3,3),$l()());}function Oe(s,i){s&1&&(Qi(0,"div",12)(1,"p"),nC(2,4),$l()());}function Re(s,i){if(s&1){let e=vT();Qi(0,"tr")(1,"td"),jC(2),$l(),Qi(3,"td"),jC(4),ob(5,"relativeTime"),$l(),Qi(6,"td"),jC(7),ob(8,"relativeTime"),$l(),Qi(9,"td"),jC(10),ob(11,"bytes"),$l(),Qi(12,"td"),jC(13),$l(),Qi(14,"td")(15,"sh-form-field")(16,"input",24),Hg("ngModelChange",function(_){let E=Od(e).$implicit,m=iC(2);return Pd(m.updateLabel(E.Version,_))}),$l(),CD(),$l()()();}if(s&2){let e=i.$implicit,n=iC(2);CE(2),im(e.Version),CE(2),im(ab(5,7,e.Time,true)),CE(3),im(ab(8,10,e.Time,false)),CE(3),im(sb(11,13,e.FileSizes)),CE(3),im(e.FileCount),CE(3),vg("ngModel",e.EditedLabel)("disabled",n.isSaving()),_D();}}function Ae(s,i){if(s&1){let e=vT();Qi(0,"sh-table",18),lm("sortByColumnChange",function(_){Od(e);let E=iC();return UC(E.sortByColumn,_)||(E.sortByColumn=_),Pd(_)}),Qi(1,"tr",19)(2,"th",20),nC(3,5),$l(),Qi(4,"th",20),nC(5,6),$l(),Qi(6,"th",20),nC(7,7),$l(),Qi(8,"th",21),nC(9,8),$l(),Qi(10,"th",22),nC(11,9),$l(),Qi(12,"th",23),nC(13,10),$l()(),dT(14,Re,17,15,"tr",null,Te),$l();}if(s&2){let e=iC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),CE(14),fT(e.versions());}}var B=class s{#e=T(C);#i=T(be);#n=T(g);#t=T(ee);id=E1.required();backup=Nt(()=>{this.#n.backups();return this.#n.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:i})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:i.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isSaving=Ge(false);versions=Ge([]);constructor(){za(()=>{let i=this.versionsResource.value();if(i){let e=(i.Data??[]).slice().sort((n,_)=>n.Time<_.Time?1:n.Time>_.Time?-1:0);this.versions.set(e.map(n=>m(l({},n),{EditedLabel:n.Label??""})));}});}changedItems=Nt(()=>this.versions().filter(i=>(i.Label??"")!==i.EditedLabel.trim()));sortByColumn=Ge("version");updateLabel(i,e){this.versions.update(n=>n.map(_=>_.Version===i?m(l({},_),{EditedLabel:e}):_));}saveLabels(){let i=this.changedItems();i.length!==0&&(this.isSaving.set(true),Ae$1(i).pipe(qu(e=>this.#e.postApiV2BackupSetVersionLabel({requestBody:{BackupId:this.id(),Version:e.Version,Label:e.EditedLabel.trim()===""?null:e.EditedLabel.trim()}})),zu(()=>this.isSaving.set(false))).subscribe({complete:()=>{this.#t.navigate(["/"]);},error:e=>{this.#i.open(h,{data:{title:$localize`Failed to set version labels`,message:e.message??$localize`Unknown error`,confirmText:$localize`OK`,cancelText:void 0}});}}));}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=hw({type:s,selectors:[["app-version-labels"]],inputs:{id:[1,"id"]},decls:10,vars:10,consts:()=>{let i;i=$localize`Set version labels for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let n;n=$localize`{VAR_PLURAL, plural, =1 {1 label} other {{INTERPOLATION} labels}}`,n=oC(n,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let _;_=$localize` Save ${n}:ICU@@198601359091253570: `;let E;E=$localize`Fetching versions from destination...`;let m;m=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let V;V=$localize`Timestamp`;let h;h=$localize`When`;let y;y=$localize`Size`;let $;$=$localize`Files`;let v;v=$localize`Label`;let G;return G=$localize`Add label...`,[i,e,_,E,m,b,V,h,y,$,v,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","primary",3,"click","disabled"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["size","min-content","shSort","version"],["size","min-content","shSort","size"],["size","min-content","shSort","files"],["size","1fr","shSort","label"],["type","text","placeholder",G,1,"label",3,"ngModelChange","ngModel","disabled"]]},template:function(e,n){e&1&&(Qi(0,"h3"),nC(1,0),$l(),aT(2,Pe,4,0,"div",11)(3,Oe,3,0,"div",12)(4,Ae,16,3,"sh-table",13),Qi(5,"div",14)(6,"button",15),nC(7,1),$l(),Qi(8,"button",16),Hg("click",function(){return n.saveLabels()}),nC(9,2),$l()()),e&2&&(CE(),Vg(n.backup()?.Backup?.Name),rC(1),CE(),cT(n.isLoading()?2:n.versions().length===0?3:4),CE(4),vg("routerLink",KC(9,ue))("disabled",n.isSaving()),CE(2),Kg("loading",n.isSaving()),vg("disabled",n.isSaving()||n.changedItems().length===0||n.isLoading()),CE(),Vg(n.changedItems().length)(n.changedItems().length),rC(9));},dependencies:[Bn,Ze,Rn,Jt,v,d,ot,_t,Fe,m$1,m$2],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.label[_ngcontent-%COMP%]{width:100%}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}"]})};export{B as default};
@@ -1 +1 @@
1
- import {O}from'./chunk-aOMoAKYY.js';import {B as Bn}from'./chunk-BO2GlieG.js';import {T,ab as C,G as Ge,ac as v1,H as qu,h as hw,u as ue,v,Q as Qi,n as nC,$ as $l,a1 as dT,p as cm,U as UC,V as Vg,C as CE,a2 as fT,x as am,Y as Yg,ap as lT,l as vT,r as kd,k as iC,O as Od,w as jC,A as yg,aa as Ql}from'./main-VVQP2YE7.js';import {U}from'./chunk-DqIU7ViF.js';function z(l,t){if(l&1){let e=vT();Qi(0,"sh-radio",10),Vg("checkedChange",function(){let a=kd(e).$implicit,i=iC();return Od(i.pauseOption.set(a.value))}),jC(1),$l();}if(l&2){let e=t.$implicit,n=iC();yg("checked",n.pauseOption()===e.value),CE(),Ql(" ",e.label," ");}}var B=[{label:$localize`5 minutes`,value:"5m"},{label:$localize`10 minutes`,value:"10m"},{label:$localize`15 minutes`,value:"15m"},{label:$localize`30 minutes`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],k=class l{#e=T(C);pauseOptions=Ge(B);closed=v1();isSubmitting=Ge(false);pauseTransfers=Ge(false);pauseOption=Ge(void 0);submit(){this.isSubmitting.set(true);let t=this.pauseTransfers()||null,e=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:e,pauseTransfers:t}).pipe(qu(()=>this.isSubmitting.set(false))).subscribe({next:n=>{this.closed.emit();}});}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=hw({type:l,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:3,consts:()=>{let t;t=$localize`Pause settings`;let e;e=$localize`Also pause transfers`;let n;n=$localize`If you pause transfers they could time out and cause retries or failures.`;let a;a=$localize`Cancel`;let i;return i=$localize` Update settings `,[t,e,n,a,i,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"checked"],[1,"check-wrap"],[1,"primary","raised",3,"checkedChange","checked"],["type","warning"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(e,n){e&1&&(Qi(0,"header",5)(1,"h3"),nC(2,0),$l()(),Qi(3,"div",6)(4,"div",7),dT(5,z,2,2,"sh-radio",8,lT),$l(),Qi(7,"div",9)(8,"sh-checkbox",10),cm("checkedChange",function(i){return UC(n.pauseTransfers,i)||(n.pauseTransfers=i),i}),nC(9,1),$l(),Qi(10,"sh-alert",11),nC(11,2),$l()()(),Qi(12,"footer",12)(13,"button",13),Vg("click",function(){return n.closed.emit()}),nC(14,3),$l(),Qi(15,"button",14),Vg("click",function(){return n.submit()}),nC(16,4),$l()()),e&2&&(CE(5),fT(n.pauseOptions()),CE(3),am("checked",n.pauseTransfers),CE(7),Yg("loading",n.isSubmitting()));},dependencies:[Bn,O,U,ue,v],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"]})};export{k};
1
+ import {O}from'./chunk-BmmYJhOf.js';import {B as Bn}from'./chunk-B6c2NXNy.js';import {T,ab as C,G as Ge,ac as I1,J as zu,h as hw,u as ue,v,Q as Qi,n as nC,$ as $l,a1 as dT,p as lm,U as UC,H as Hg,C as CE,a2 as fT,w as cm,L as Kg,ap as lT,l as vT,O as Od,k as iC,P as Pd,s as jC,y as vg,aa as Ql}from'./main-3NL5M6JB.js';import {U}from'./chunk-D1pDZLJ9.js';function z(l,t){if(l&1){let e=vT();Qi(0,"sh-radio",10),Hg("checkedChange",function(){let a=Od(e).$implicit,i=iC();return Pd(i.pauseOption.set(a.value))}),jC(1),$l();}if(l&2){let e=t.$implicit,n=iC();vg("checked",n.pauseOption()===e.value),CE(),Ql(" ",e.label," ");}}var B=[{label:$localize`5 minutes`,value:"5m"},{label:$localize`10 minutes`,value:"10m"},{label:$localize`15 minutes`,value:"15m"},{label:$localize`30 minutes`,value:"30m"},{label:$localize`1 hour`,value:"1h"},{label:$localize`4 hours`,value:"4h"},{label:$localize`8 hours`,value:"8h"},{label:$localize`24 hours`,value:"24h"},{label:$localize`Until resumed`,value:void 0}],k=class l{#e=T(C);pauseOptions=Ge(B);closed=I1();isSubmitting=Ge(false);pauseTransfers=Ge(false);pauseOption=Ge(void 0);submit(){this.isSubmitting.set(true);let t=this.pauseTransfers()||null,e=this.pauseOption();this.#e.postApiV1ServerstatePause({duration:e,pauseTransfers:t}).pipe(zu(()=>this.isSubmitting.set(false))).subscribe({next:n=>{this.closed.emit();}});}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=hw({type:l,selectors:[["app-pause-dialog"]],outputs:{closed:"closed"},decls:17,vars:3,consts:()=>{let t;t=$localize`Pause settings`;let e;e=$localize`Also pause transfers`;let n;n=$localize`If you pause transfers they could time out and cause retries or failures.`;let a;a=$localize`Cancel`;let i;return i=$localize` Update settings `,[t,e,n,a,i,["header",""],["content",""],[1,"radios"],[1,"primary","raised",3,"checked"],[1,"check-wrap"],[1,"primary","raised",3,"checkedChange","checked"],["type","warning"],["footer",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"click"]]},template:function(e,n){e&1&&(Qi(0,"header",5)(1,"h3"),nC(2,0),$l()(),Qi(3,"div",6)(4,"div",7),dT(5,z,2,2,"sh-radio",8,lT),$l(),Qi(7,"div",9)(8,"sh-checkbox",10),lm("checkedChange",function(i){return UC(n.pauseTransfers,i)||(n.pauseTransfers=i),i}),nC(9,1),$l(),Qi(10,"sh-alert",11),nC(11,2),$l()()(),Qi(12,"footer",12)(13,"button",13),Hg("click",function(){return n.closed.emit()}),nC(14,3),$l(),Qi(15,"button",14),Hg("click",function(){return n.submit()}),nC(16,4),$l()()),e&2&&(CE(5),fT(n.pauseOptions()),CE(3),cm("checked",n.pauseTransfers),CE(7),Kg("loading",n.isSubmitting()));},dependencies:[Bn,O,U,ue,v],styles:["[_nghost-%COMP%]{--dialog-p: 1.5rem;display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.check-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:2rem 0 0}"]})};export{k};
@@ -0,0 +1 @@
1
+ import {ShipTable as ot}from'./chunk-8Y8ReLEn.js';import'./chunk-DidJB9ig.js';import {T,ab as C,a6 as be,a5 as g,e as ee,E as E1,N as Nt,G as Ge,z as za,ai as m,aj as l,at as h,J as zu,h as hw,v as v$1,_ as _t,aH as m$1,b2 as m$2,Q as Qi,n as nC,$ as $l,d as aT,H as Hg,p as lm,C as CE,au as Vg,av as rC,g as cT,y as vg,a3 as KC,L as Kg,w as cm,o as oC,U as UC,i as Ig,l as vT,O as Od,k as iC,P as Pd,a1 as dT,a2 as fT,s as jC,aM as ob,K as im,aN as ab,aR as sb}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {$}from'./chunk-DGvC49aU.js';import {U}from'./chunk-D1pDZLJ9.js';var Se=()=>["/"],ce=(l,n)=>n.Version;function Ce(l,n){l&1&&(Qi(0,"div",12),Ig(1,"sh-progress-bar",20),Qi(2,"p"),nC(3,4),$l()());}function me(l,n){l&1&&(Qi(0,"div",13)(1,"p"),nC(2,5),$l()());}function pe(l,n){if(l&1){let e=vT();Qi(0,"tr",29),Hg("click",function(i){let r=Od(e).$implicit,C=iC(2);return Pd(C.toggleSelected(r.Version,i))}),Qi(1,"td")(2,"sh-checkbox",24),Hg("click",function(i){let r=Od(e).$implicit,C=iC(2);return Pd(C.toggleSelected(r.Version,i))}),$l()(),Qi(3,"td"),jC(4),$l(),Qi(5,"td"),jC(6),ob(7,"relativeTime"),$l(),Qi(8,"td"),jC(9),ob(10,"relativeTime"),$l(),Qi(11,"td"),jC(12),ob(13,"bytes"),$l(),Qi(14,"td"),jC(15),$l(),Qi(16,"td"),jC(17),$l()();}if(l&2){let e=n.$implicit;CE(2),vg("checked",e.Selected),CE(2),im(e.Version),CE(2),im(ab(7,7,e.Time,true)),CE(3),im(ab(10,10,e.Time,false)),CE(3),im(sb(13,13,e.FileSizes)),CE(3),im(e.FileCount),CE(2),im(e.Label);}}function Te(l,n){if(l&1){let e=vT();Qi(0,"sh-table",21),lm("sortByColumnChange",function(i){Od(e);let r=iC();return UC(r.sortByColumn,i)||(r.sortByColumn=i),Pd(i)}),Qi(1,"tr",22)(2,"th",23)(3,"sh-checkbox",24),Hg("click",function(){Od(e);let i=iC();return Pd(i.toggleSelect())}),$l()(),Qi(4,"th",25),nC(5,6),$l(),Qi(6,"th",25),nC(7,7),$l(),Qi(8,"th",25),nC(9,8),$l(),Qi(10,"th",26),nC(11,9),$l(),Qi(12,"th",27),nC(13,10),$l(),Qi(14,"th",28),nC(15,11),$l()(),dT(16,pe,18,15,"tr",null,ce),$l();}if(l&2){let e=iC();vg("data",e.versions())("loading",e.isLoading()),cm("sortByColumn",e.sortByColumn),CE(3),Kg("indeterminate",e.indeterminate()),vg("checked",e.allSelected()),CE(13),fT(e.versions());}}var v=class l$1{#e=T(C);#n=T(be);#t=T(g);#i=T(ee);id=E1.required();backup=Nt(()=>{this.#t.backups();return this.#t.getBackupById(this.id())});versionsResource=$({params:()=>({id:this.id()}),stream:({params:n})=>this.#e.postApiV2BackupListFilesets({requestBody:{BackupId:n.id}})});isLoading=Nt(()=>this.versionsResource.isLoading());isDeleting=Ge(false);performCompact=Ge(true);versions=Ge([]);constructor(){za(()=>{let n=this.versionsResource.value();if(n){let e=(n.Data??[]).slice().sort((t,i)=>t.Time<i.Time?1:t.Time>i.Time?-1:0);this.versions.set(e.map(t=>m(l({},t),{Selected:false})));}});}selectedItems=Nt(()=>this.versions().filter(n=>n.Selected));allSelected=Nt(()=>this.selectedItems().length===this.versions().length&&this.versions().length>0);noneSelected=Nt(()=>this.selectedItems().length===0);indeterminate=Nt(()=>this.selectedItems().length>0&&!this.allSelected());sortByColumn=Ge("version");toggleSelected(n,e){e?.stopPropagation(),this.versions.update(t=>t.map(i=>i.Version===n?m(l({},i),{Selected:!i.Selected}):i));}toggleSelect(){this.allSelected()?this.selectNone():this.selectAll();}selectAll(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:true})));}selectNone(){this.versions.update(n=>n.map(e=>m(l({},e),{Selected:false})));}deleteVersions(){let n=this.selectedItems();if(n.length===0)return;let e=n.length,t=n.map(i=>i.Version);this.#n.open(h,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete ${e} version(s)?`,confirmText:$localize`Delete versions`,cancelText:$localize`Cancel`},closed:i=>{i&&(this.isDeleting.set(true),this.#e.postApiV2BackupDeleteVersions({requestBody:{BackupId:this.id(),Versions:t,SuppressCompact:!this.performCompact()}}).pipe(zu(()=>this.isDeleting.set(false))).subscribe({next:()=>{this.#i.navigate(["/"]);}}));}});}static \u0275fac=function(e){return new(e||l$1)};static \u0275cmp=hw({type:l$1,selectors:[["app-delete-versions"]],inputs:{id:[1,"id"]},decls:13,vars:11,consts:()=>{let n;n=$localize`Delete versions from ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize`Cancel`;let t;t=$localize`{VAR_PLURAL, plural, =1 {1 version} other {{INTERPOLATION} versions}}`,t=oC(t,{INTERPOLATION:"\uFFFD1\uFFFD",VAR_PLURAL:"\uFFFD0\uFFFD"});let i;i=$localize` Delete ${t}:ICU@@85461926550041466: `;let r;r=$localize`Compact after deletion`;let C;C=$localize`Fetching versions from destination...`;let $;$=$localize`No versions found for this backup.`;let b;b=$localize`Version`;let B;B=$localize`Timestamp`;let G;G=$localize`When`;let k;k=$localize`Size`;let x;x=$localize`Files`;let F;return F=$localize`Label`,[n,e,i,r,C,$,b,B,G,k,x,F,[1,"loading-state"],[1,"empty-state"],[1,"type-b",3,"data","loading","sortByColumn"],[1,"actions"],["shButton","",3,"routerLink","disabled"],["shButton","",1,"raised","error",3,"click","disabled"],[1,"sub-actions"],[1,"primary","raised",3,"checkedChange","checked"],[1,"primary","indeterminate"],[1,"type-b",3,"sortByColumnChange","data","loading","sortByColumn"],["thead",""],["size","min-content"],[1,"primary","raised",3,"click","checked"],["size","min-content","shSort","version"],["size","min-content","shSort","size"],["size","min-content","shSort","files"],["size","1fr","shSort","label"],[3,"click"]]},template:function(e,t){e&1&&(Qi(0,"h3"),nC(1,0),$l(),aT(2,Ce,4,0,"div",12)(3,me,3,0,"div",13)(4,Te,18,6,"sh-table",14),Qi(5,"div",15)(6,"button",16),nC(7,1),$l(),Qi(8,"button",17),Hg("click",function(){return t.deleteVersions()}),nC(9,2),$l()(),Qi(10,"div",18)(11,"sh-checkbox",19),lm("checkedChange",function(r){return UC(t.performCompact,r)||(t.performCompact=r),r}),nC(12,3),$l()()),e&2&&(CE(),Vg(t.backup()?.Backup?.Name),rC(1),CE(),cT(t.isLoading()?2:t.versions().length===0?3:4),CE(4),vg("routerLink",KC(10,Se))("disabled",t.isDeleting()),CE(2),Kg("loading",t.isDeleting()),vg("disabled",t.isDeleting()||t.selectedItems().length===0||t.isLoading()),CE(),Vg(t.selectedItems().length)(t.selectedItems().length),rC(9),CE(2),cm("checked",t.performCompact));},dependencies:[v$1,U,d,ot,_t,m$1,m$2],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;padding:2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}sh-table[_ngcontent-%COMP%]{padding:2rem 0}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:2rem 0;display:flex;flex-direction:column;gap:1rem}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:2rem}.sub-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding-top:.5rem;padding-bottom:2rem}"]})};export{v as default};
@@ -1,3 +1,3 @@
1
- import {OptionsListComponent as Oe}from'./chunk-CZoVeRAG.js';import {e as ee$1}from'./chunk-C4GeR7BF.js';import'./chunk-CUaRQ2FJ.js';import'./chunk-aOMoAKYY.js';import'./chunk-BEhUV7oX.js';import {k as ke,j as jt}from'./chunk-kU0H989B.js';import'./chunk-C80zvTbO.js';import'./chunk-Cjb79u3p.js';import'./chunk-DJJ8GbYi.js';import'./chunk-DUYvFN8m.js';import'./chunk-BpRWdcC8.js';import'./chunk-ihUnHtR7.js';import {N as Nt$2}from'./chunk-Bb6BmVO4.js';import'./chunk-DmDqcC4A.js';import'./chunk-CAwTsBqQ.js';import {c as c$1}from'./chunk-B53Wj4F9.js';import'./chunk-BTgf5lfZ.js';import {T,ab as C,e as ee,aw as W,aW as G,aX as y,m,N as Nt$1,G as Ge,z as za,h as hw,_ as _t,v,d as N,j as vg,Q as Qi,L as Lg,F as Fg,$ as $l,f as aT,C as CE,i as cT,aD as YC,aY as x,aZ as ee$2,l as vT,s as CD,n as nC,p as cm,r as kd,k as iC,U as UC,O as Od,V as Vg,A as yg,a3 as KC,y as _D,x as am,Y as Yg,au as jg,av as rC}from'./main-VVQP2YE7.js';import'./chunk-Bja52qI7.js';import {d}from'./chunk-B8uF0dom.js';import {F as Fe}from'./chunk-B9maI7Xa.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,G as Gn,g as gn,h as hn}from'./chunk-BO2GlieG.js';import {a as at}from'./chunk-CKnRcyHZ.js';import'./chunk-CwKy8pxa.js';import'./chunk-BVEyeg9y.js';import {L}from'./chunk-Box6Lckh.js';import'./chunk-DqIU7ViF.js';var I=class m{#t=new Map;saveState(e){let t=x();return this.#t.set(t,e),t}getState(e){return this.#t.get(e)}static \u0275fac=function(t){return new(t||m)};static \u0275prov=ee$2({token:m,factory:m.\u0275fac,providedIn:"root"})};var Tt=()=>["backup"];function ft(m,e){m&1&&vg(0,"sh-progress-bar",10);}function Nt(m,e){if(m&1){let t=vT();Qi(0,"form",11)(1,"sh-select",12)(2,"label",13),Lg(3,1),vg(4,"sh-icon",14),Fg(),$l(),vg(5,"input",15),CD(),$l(),Qi(6,"sh-form-field")(7,"label",16),Lg(8,2),vg(9,"sh-icon",17),Fg(),$l(),vg(10,"textarea",18),CD(),$l(),Qi(11,"sh-form-field")(12,"label",19),Lg(13,3),vg(14,"sh-icon",20),Fg(),$l(),vg(15,"textarea",21),CD(),$l()(),Qi(16,"sh-divider"),nC(17,4),$l(),Qi(18,"form",11)(19,"sh-form-field")(20,"label",22),Lg(21,5),vg(22,"sh-icon",23),Fg(),$l(),vg(23,"input",24),CD(),$l(),Qi(24,"sh-form-field")(25,"label",25),Lg(26,6),vg(27,"sh-icon",26),Fg(),$l(),vg(28,"input",27),CD(),$l(),Qi(29,"app-filters",28),cm("filtersChange",function(i){kd(t);let s=iC();return UC(s.filters,i)||(s.filters=i),Od(i)}),Vg("filtersChange",function(i){kd(t);let s=iC();return Od(s.updateFilters(i))}),$l()(),Qi(30,"app-options-list",29),cm("optionsChange",function(i){kd(t);let s=iC();return UC(s.settings,i)||(s.settings=i),Od(i)}),$l(),Qi(31,"div",30)(32,"button",31),Vg("click",function(){kd(t);let i=iC();return Od(i.submit())}),Lg(33,7),vg(34,"sh-icon"),Fg(),$l()();}if(m&2){let t=iC();yg("formGroup",t.baseCmdForm),CE(),yg("options",t.commandOptions()??KC(11,Tt))("inlineSearch",true),CE(4),_D(),CE(5),_D(),CE(5),_D(),CE(3),yg("formGroup",t.standardFields),CE(5),_D(),CE(5),_D(),CE(),am("filters",t.filters),yg("osType",t.osType()??""),CE(),am("options",t.settings),yg("hasFreeTextSettings",true),CE(2),Yg("loading",t.isSubmitting()),CE(2),jg(t.baseCmdForm.value.command),rC(33);}}var c=new jn,$=class m$1{#t=T(ke);#n=T(C);#o=T(ee);#e=T(W);#a=T(G);#s=T(y);#i=T(I);#r=T(m);osType=Nt$1(()=>this.#r.systemInfo()?.OSType);#l=L(this.#e.params);commandOptions=L(this.#a.getApiV1Commandline());isSubmitting=Ge(false);optionsFields=this.#t.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#t.finishedLoading;backupId=this.#t.backupId;filters=Ge([]);settings=this.#t.settings;updateFilters(e){this.standardFields.controls.filters.clear(),e.forEach(t=>this.standardFields.controls.filters.push(c.control(t))),this.filters.set(e);}#m=za(()=>{let e=this.#l()?.id;this.#t.backupId.set(e),this.getBackup(e);});getBackup(e){this.#n.getApiV1BackupById({id:e}).subscribe({next:t=>{this.#t.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.#t.mapGeneralToForm(t.Backup),this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#t.mapOptionsToForms(t.Backup,true)),this.applyStateFromUrl(),this.#t.finishedLoading.set(true);}});}mapStandardFieldsToForm(e){if(this.standardFields.patchValue({dbpath:e.DBPath,"backup-id":e.ID,"backup-name":e.Name}),this.standardFields.controls.filters.clear(),e.Filters&&e.Filters.length){let t=e.Filters.map(n=>`${n.Include?"":"-"}${n.Expression}`);t.forEach(n=>{this.standardFields.controls.filters.push(c.control(n));}),this.filters.set(t);}else this.filters.set([]);}submit(){this.#s.resumeDialogCheck(()=>this.#c());}#c(){this.isSubmitting.set(true);let e=this.updateUrl(),t=this.baseCmdForm.value,n=t.targetUrl??"",i=(t.arguments??"").split(`
1
+ import {OptionsListComponent as Oe}from'./chunk-I5dxaHZ4.js';import {e as ee$1}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve,e as en}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import {N as Nt$2}from'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c as c$1}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,ab as C,e as ee,aw as W,aW as G,aX as y,m,N as Nt$1,G as Ge,z as za,h as hw,_ as _t,v,c as N,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,d as aT,C as CE,g as cT,aD as YC,aY as x,aZ as ee$2,l as vT,r as CD,n as nC,p as lm,O as Od,k as iC,U as UC,P as Pd,H as Hg,y as vg,a3 as KC,x as _D,w as cm,L as Kg,au as Vg,av as rC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,G as Gn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {a as at}from'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';var I=class m{#t=new Map;saveState(e){let t=x();return this.#t.set(t,e),t}getState(e){return this.#t.get(e)}static \u0275fac=function(t){return new(t||m)};static \u0275prov=ee$2({token:m,factory:m.\u0275fac,providedIn:"root"})};var Tt=()=>["backup"];function ft(m,e){m&1&&Ig(0,"sh-progress-bar",10);}function Nt(m,e){if(m&1){let t=vT();Qi(0,"form",11)(1,"sh-select",12)(2,"label",13),Fg(3,1),Ig(4,"sh-icon",14),jg(),$l(),Ig(5,"input",15),CD(),$l(),Qi(6,"sh-form-field")(7,"label",16),Fg(8,2),Ig(9,"sh-icon",17),jg(),$l(),Ig(10,"textarea",18),CD(),$l(),Qi(11,"sh-form-field")(12,"label",19),Fg(13,3),Ig(14,"sh-icon",20),jg(),$l(),Ig(15,"textarea",21),CD(),$l()(),Qi(16,"sh-divider"),nC(17,4),$l(),Qi(18,"form",11)(19,"sh-form-field")(20,"label",22),Fg(21,5),Ig(22,"sh-icon",23),jg(),$l(),Ig(23,"input",24),CD(),$l(),Qi(24,"sh-form-field")(25,"label",25),Fg(26,6),Ig(27,"sh-icon",26),jg(),$l(),Ig(28,"input",27),CD(),$l(),Qi(29,"app-filters",28),lm("filtersChange",function(i){Od(t);let s=iC();return UC(s.filters,i)||(s.filters=i),Pd(i)}),Hg("filtersChange",function(i){Od(t);let s=iC();return Pd(s.updateFilters(i))}),$l()(),Qi(30,"app-options-list",29),lm("optionsChange",function(i){Od(t);let s=iC();return UC(s.settings,i)||(s.settings=i),Pd(i)}),$l(),Qi(31,"div",30)(32,"button",31),Hg("click",function(){Od(t);let i=iC();return Pd(i.submit())}),Fg(33,7),Ig(34,"sh-icon"),jg(),$l()();}if(m&2){let t=iC();vg("formGroup",t.baseCmdForm),CE(),vg("options",t.commandOptions()??KC(11,Tt))("inlineSearch",true),CE(4),_D(),CE(5),_D(),CE(5),_D(),CE(3),vg("formGroup",t.standardFields),CE(5),_D(),CE(5),_D(),CE(),cm("filters",t.filters),vg("osType",t.osType()??""),CE(),cm("options",t.settings),vg("hasFreeTextSettings",true),CE(2),Kg("loading",t.isSubmitting()),CE(2),Vg(t.baseCmdForm.value.command),rC(33);}}var c=new jn,$=class m$1{#t=T(Ve);#n=T(C);#o=T(ee);#e=T(W);#a=T(G);#s=T(y);#i=T(I);#r=T(m);osType=Nt$1(()=>this.#r.systemInfo()?.OSType);#l=L(this.#e.params);commandOptions=L(this.#a.getApiV1Commandline());isSubmitting=Ge(false);optionsFields=this.#t.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#t.finishedLoading;backupId=this.#t.backupId;filters=Ge([]);settings=this.#t.settings;updateFilters(e){this.standardFields.controls.filters.clear(),e.forEach(t=>this.standardFields.controls.filters.push(c.control(t))),this.filters.set(e);}#m=za(()=>{let e=this.#l()?.id;this.#t.backupId.set(e),this.getBackup(e);});getBackup(e){this.#n.getApiV1BackupById({id:e}).subscribe({next:t=>{this.#t.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.#t.mapGeneralToForm(t.Backup),this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#t.mapOptionsToForms(t.Backup,true)),this.applyStateFromUrl(),this.#t.finishedLoading.set(true);}});}mapStandardFieldsToForm(e){if(this.standardFields.patchValue({dbpath:e.DBPath,"backup-id":e.ID,"backup-name":e.Name}),this.standardFields.controls.filters.clear(),e.Filters&&e.Filters.length){let t=e.Filters.map(n=>`${n.Include?"":"-"}${n.Expression}`);t.forEach(n=>{this.standardFields.controls.filters.push(c.control(n));}),this.filters.set(t);}else this.filters.set([]);}submit(){this.#s.resumeDialogCheck(()=>this.#c());}#c(){this.isSubmitting.set(true);let e=this.updateUrl(),t=this.baseCmdForm.value,n=t.targetUrl??"",i=(t.arguments??"").split(`
2
2
  `)??[],s=[n,...i].filter(o=>o.length>0),g=this.standardFields.value,N=g.filters??[],E=[t.command,...s,`--backup-name=${g["backup-name"]}`,`--dbpath=${g.dbpath}`,`--backup-id=${g["backup-id"]}`,...N.filter(o=>o).map(o=>o.startsWith("-")?`--exclude=${o?.slice(1)}`:`--include=${o}`),...this.#t.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(o=>`${o.Name.startsWith("--")?"":"--"}${o.Name}=${o.Value}`),"--disable-module=console-password-input"];this.#n.postApiV1Commandline({requestBody:E}).subscribe({next:o=>{o.Status==="OK"&&this.#o.navigate(["backup",this.backupId(),"commandline",o.ID],{queryParams:{state:e}});},error:()=>{this.isSubmitting.set(false);}});}mapBaseCmdToForm(e){let t=e.TargetURL??null;t&&this.baseCmdForm.patchValue({targetUrl:t??"",arguments:e.Sources?.join(`
3
- `)??""});}updateUrl(){let e=this.baseCmdForm.value,t=this.standardFields.value,n=t.filters??[],i=this.settings(),s=this.#i.saveState({command:e.command,targetUrl:e.targetUrl,arguments:e.arguments,backupId:t["backup-id"],backupName:t["backup-name"],dbpath:t.dbpath,filters:n,options:i});return this.#o.navigate([],{relativeTo:this.#e,queryParams:{state:s},replaceUrl:true}),s}applyStateFromUrl(){let t=this.#e.snapshot.queryParams.state;if(!t)return;let n=this.#i.getState(t);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(i=>{this.standardFields.controls.filters.push(c.control(i));}),this.filters.set(n.filters)),n.options&&n.options.length>0&&this.settings.set(n.options));}static \u0275fac=function(t){return new(t||m$1)};static \u0275cmp=hw({type:m$1,selectors:[["app-commandline"]],features:[YC([ke])],decls:8,vars:1,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize` Command ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize` TargetUrl ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let i;i=$localize` Commandline Arguments ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize`Advanced options`;let g;g=$localize` Backup ID ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let N;N=$localize` Backup Name ${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON:`;let E;return E=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[e,t,n,i,s,g,N,E,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["shTooltip","Choose the command to execute"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["shTooltip","Enter the URL of the backup target"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["shTooltip","Enter one argument per line without quotes (e.g., *.txt)"],["id","arguments","autocomplete","off","rows","5","formControlName","arguments","placeholder","Enter one argument per line without quotes (e.g., *.txt)",1,"arguments"],["for","backup-id"],["shTooltip","The ID of the backup configuration this run belongs to (can be empty)"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["shTooltip","The optional name of the backup"],["id","backup-name","formControlName","backup-name"],[3,"filtersChange","filters","osType"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"]]},template:function(t,n){t&1&&(vg(0,"app-status-bar"),Qi(1,"section")(2,"div",8)(3,"button",9),Lg(4,0),vg(5,"sh-icon"),Fg(),$l()(),aT(6,ft,1,0,"sh-progress-bar",10)(7,Nt,35,12),$l()),t&2&&(CE(6),cT(n.finishedLoading()?7:6));},dependencies:[Bn,Tn,Ze,Rn,Pn,ee$1,Oe,jt,Gn,gn,hn,_t,Fe,v,c$1,Nt$2,d,N,at],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.arguments[_ngcontent-%COMP%]{min-height:6rem;white-space:pre}"]})};export{$ as default};
3
+ `)??""});}updateUrl(){let e=this.baseCmdForm.value,t=this.standardFields.value,n=t.filters??[],i=this.settings(),s=this.#i.saveState({command:e.command,targetUrl:e.targetUrl,arguments:e.arguments,backupId:t["backup-id"],backupName:t["backup-name"],dbpath:t.dbpath,filters:n,options:i});return this.#o.navigate([],{relativeTo:this.#e,queryParams:{state:s},replaceUrl:true}),s}applyStateFromUrl(){let t=this.#e.snapshot.queryParams.state;if(!t)return;let n=this.#i.getState(t);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(i=>{this.standardFields.controls.filters.push(c.control(i));}),this.filters.set(n.filters)),n.options&&n.options.length>0&&this.settings.set(n.options));}static \u0275fac=function(t){return new(t||m$1)};static \u0275cmp=hw({type:m$1,selectors:[["app-commandline"]],features:[YC([Ve])],decls:8,vars:1,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize` Command ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize` TargetUrl ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let i;i=$localize` Commandline Arguments ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize`Advanced options`;let g;g=$localize` Backup ID ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let N;N=$localize` Backup Name ${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON:`;let E;return E=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[e,t,n,i,s,g,N,E,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["shTooltip","Choose the command to execute"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["shTooltip","Enter the URL of the backup target"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["shTooltip","Enter one argument per line without quotes (e.g., *.txt)"],["id","arguments","autocomplete","off","rows","5","formControlName","arguments","placeholder","Enter one argument per line without quotes (e.g., *.txt)",1,"arguments"],["for","backup-id"],["shTooltip","The ID of the backup configuration this run belongs to (can be empty)"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["shTooltip","The optional name of the backup"],["id","backup-name","formControlName","backup-name"],[3,"filtersChange","filters","osType"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"]]},template:function(t,n){t&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",8)(3,"button",9),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),aT(6,ft,1,0,"sh-progress-bar",10)(7,Nt,35,12),$l()),t&2&&(CE(6),cT(n.finishedLoading()?7:6));},dependencies:[Bn,Tn,Ze,Rn,Pn,ee$1,Oe,en,Gn,gn,hn,_t,Fe,v,c$1,Nt$2,d,N,at],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.arguments[_ngcontent-%COMP%]{min-height:6rem;white-space:pre}"]})};export{$ as default};