@duplicati/ngclient 0.0.225 → 0.0.227
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.
- package/assets/images/backup-from-config.png +0 -0
- package/assets/images/backup-from-remote.png +0 -0
- package/assets/sh-bold.woff2 +0 -0
- package/assets/sh.woff2 +0 -0
- package/assets/ship.css +2 -0
- package/chunk--rqB0ojD.js +2 -0
- package/chunk-5zEiKCqR.js +1 -0
- package/chunk-B-ryE8KW.js +2 -0
- package/chunk-B6nCQM-G.js +1 -0
- package/chunk-B6ugJDDx.js +1 -0
- package/chunk-B7PRtY7v.js +1 -0
- package/chunk-B88MJ6Up.js +1 -0
- package/chunk-BAbAUjHY.js +2 -0
- package/chunk-BCT9ajP9.js +1 -0
- package/chunk-BKLJMYh2.js +1 -0
- package/chunk-BMGXb3gX.js +1 -0
- package/chunk-BNf0YAwH.js +2 -0
- package/chunk-BOII3Fdm.js +1 -0
- package/chunk-BPpheyQK.js +2 -0
- package/chunk-BS8yAz3P.js +2 -0
- package/chunk-BUF3tczf.js +14 -0
- package/chunk-BYoKu9PJ.js +1 -0
- package/chunk-BaWD8G-f.js +1 -0
- package/chunk-BeAI10wv.js +1 -0
- package/chunk-BffC_BAn.js +2 -0
- package/chunk-BjNuU0J_.js +2 -0
- package/chunk-BlIcwFlf.js +1 -0
- package/chunk-BqjWEFHw.js +1 -0
- package/chunk-BthLY9tf.js +1 -0
- package/chunk-BuyCr2eD.js +1 -0
- package/chunk-BxxX98wy.js +2 -0
- package/chunk-Bzp0ULy_.js +61 -0
- package/chunk-C-G3pKB4.js +2 -0
- package/chunk-C08PrcBX.js +1 -0
- package/chunk-C4pJCbq-.js +1 -0
- package/chunk-CDRHCSvU.js +2 -0
- package/chunk-CJRbWZfg.js +2 -0
- package/chunk-CM11IMzh.js +1 -0
- package/chunk-CMs999gl.js +2 -0
- package/chunk-CU-RYihf.js +2 -0
- package/chunk-CUxvfCTH.js +2 -0
- package/chunk-Cc1_FUvV.js +1 -0
- package/chunk-CdZVal1F.js +2 -0
- package/chunk-CeFh90sX.js +1 -0
- package/chunk-ChwFViRh.js +1 -0
- package/chunk-ClHWI9-i.js +2 -0
- package/chunk-ClfSJEUJ.js +1 -0
- package/chunk-CnAb3OKU.js +1 -0
- package/chunk-CtLFpDTP.js +3 -0
- package/chunk-CuU6b3lp.js +2 -0
- package/chunk-Cw8vFX0e.js +1 -0
- package/chunk-CxPG-KgI.js +3 -0
- package/chunk-Cz4OqhOZ.js +1 -0
- package/chunk-D-epCTmE.js +1 -0
- package/chunk-D0t-kgLy.js +2 -0
- package/chunk-DNJQ-AbV.js +3 -0
- package/chunk-DNSvQk_3.js +2 -0
- package/chunk-DWwNINBJ.js +2 -0
- package/chunk-DddAUzMY.js +1 -0
- package/chunk-DnD9XTM4.js +2 -0
- package/chunk-Do6_xsGi.js +4 -0
- package/chunk-DofVJ9gn.js +1 -0
- package/chunk-Dt8gZPT-.js +2 -0
- package/chunk-DtQIjLqL.js +1 -0
- package/chunk-DuO9_dH0.js +1 -0
- package/chunk-G-I5c1Dk.js +2 -0
- package/chunk-IEVZ0UN6.js +1 -0
- package/chunk-M5tldLvJ.js +1 -0
- package/chunk-N7vpDAsp.js +2 -0
- package/chunk-PA5BGFyW.js +1 -0
- package/chunk-QlYDF-EM.js +1 -0
- package/chunk-SWsliUUy.js +4 -0
- package/chunk-SgcWXTYZ.js +2 -0
- package/chunk-XMwSOila.js +1 -0
- package/chunk-ZVDEaGd0.js +1 -0
- package/chunk-birClroL.js +2 -0
- package/chunk-bx0aDvCZ.js +2 -0
- package/chunk-g_QJ3SVt.js +2 -0
- package/chunk-r4LfAQnM.js +3 -0
- package/chunk-wycXedbJ.js +2 -0
- package/chunk-ySdaWJYB.js +2 -0
- package/chunk-ya_5JcKA.js +1 -0
- package/index.html +2 -2
- package/locale/messages.da.json +11 -20
- package/locale/messages.de.json +110 -85
- package/locale/messages.de_CH.json +86 -61
- package/locale/messages.de_DE.json +160 -92
- package/locale/messages.en.json +173 -63
- package/locale/messages.en_US.json +922 -0
- package/locale/messages.fr.json +86 -61
- package/locale/messages.fr_CA.json +160 -92
- package/locale/messages.fr_FR.json +160 -92
- package/locale/messages.it.json +91 -66
- package/locale/messages.it_IT.json +160 -92
- package/locale/messages.json +173 -63
- package/locale/messages.nl_BE.json +160 -92
- package/locale/messages.nl_NL.json +177 -111
- package/locale/messages.pl.json +22 -45
- package/locale/messages.zh-Hans.json +222 -85
- package/locale/messages.zh-Hant.json +222 -85
- package/locale/messages.zh.json +222 -85
- package/locale/messages.zh_CN.json +225 -88
- package/locale/messages.zh_HK.json +222 -85
- package/locale/messages.zh_TW.json +643 -19
- package/main-TZVLLK67.js +16 -0
- package/package.json +1 -1
- package/ship-ui-assets/mcp/components.json +4369 -2788
- package/styles-WQUFQGYX.css +1 -0
- package/chunk-2EX5HS5X.js +0 -1
- package/chunk-2KD757N6.js +0 -1
- package/chunk-2YUSBRXY.js +0 -1
- package/chunk-35FMFK4I.js +0 -1
- package/chunk-3DHD6GQL.js +0 -1
- package/chunk-3HYQMG65.js +0 -2
- package/chunk-3PARK7B7.js +0 -1
- package/chunk-3V25RAVK.js +0 -1
- package/chunk-4ISFDBI3.js +0 -2
- package/chunk-5FQ7HESA.js +0 -1
- package/chunk-5QGFYH2A.js +0 -3
- package/chunk-5UJN5SN4.js +0 -2
- package/chunk-6DX35WDO.js +0 -1
- package/chunk-6Q6SSTBK.js +0 -1
- package/chunk-6WX2UOAN.js +0 -1
- package/chunk-7CGTOI24.js +0 -1
- package/chunk-7VQ67PEZ.js +0 -1
- package/chunk-A23UTI46.js +0 -1
- package/chunk-AR5SEBWX.js +0 -1
- package/chunk-B4QFOJXL.js +0 -1
- package/chunk-BPHX6VXP.js +0 -1
- package/chunk-CJKZ27FM.js +0 -1
- package/chunk-COEGVUM3.js +0 -1
- package/chunk-CQJRBQ6I.js +0 -1
- package/chunk-E4CYVUYG.js +0 -1
- package/chunk-EBKOJDCT.js +0 -1
- package/chunk-EVEI25GQ.js +0 -2
- package/chunk-EXAZ4QZR.js +0 -1
- package/chunk-G7TNRWOU.js +0 -1
- package/chunk-GA3CAVSK.js +0 -2
- package/chunk-GKAMSAN5.js +0 -1
- package/chunk-GNKCBZMS.js +0 -1
- package/chunk-HDDAGHHE.js +0 -2
- package/chunk-HLHUPBCV.js +0 -1
- package/chunk-HPXIWKIK.js +0 -1
- package/chunk-HS3UDQIJ.js +0 -1
- package/chunk-HWOUAWOE.js +0 -1
- package/chunk-IDJ52K34.js +0 -1
- package/chunk-ITN4L52Q.js +0 -1
- package/chunk-J7GH3G72.js +0 -1
- package/chunk-JBX7YYME.js +0 -1
- package/chunk-JCXT6U5P.js +0 -1
- package/chunk-JNZJE3GC.js +0 -1
- package/chunk-K5XGRFWJ.js +0 -4
- package/chunk-KGK4RY3J.js +0 -1
- package/chunk-KNSQLQC6.js +0 -1
- package/chunk-KUNX5APQ.js +0 -1
- package/chunk-KX3UP3HV.js +0 -1
- package/chunk-KZYRTI62.js +0 -1
- package/chunk-LXTSZI4K.js +0 -1
- package/chunk-MKI54WTC.js +0 -1
- package/chunk-MSIH2OJ5.js +0 -1
- package/chunk-N5XYG3QW.js +0 -1
- package/chunk-NE255HQN.js +0 -1
- package/chunk-NQAD2FBX.js +0 -1
- package/chunk-NUV5LHQV.js +0 -1
- package/chunk-O2HQIEE4.js +0 -1
- package/chunk-O2L2FRYE.js +0 -11
- package/chunk-OP7MDR2B.js +0 -1
- package/chunk-OSGHJCUU.js +0 -1
- package/chunk-OYU6OBKA.js +0 -1
- package/chunk-P2EIEVFT.js +0 -1
- package/chunk-PDZNQW6F.js +0 -1
- package/chunk-PEOYNJJM.js +0 -1
- package/chunk-PMF4FTBF.js +0 -1
- package/chunk-PNQ5BDQN.js +0 -1
- package/chunk-PNRFCYAE.js +0 -2
- package/chunk-POVWDK74.js +0 -1
- package/chunk-QW23XWNE.js +0 -1
- package/chunk-SKLSR5GH.js +0 -1
- package/chunk-T7RMSUHE.js +0 -1
- package/chunk-TSVSMVY4.js +0 -1
- package/chunk-TV7OB7Y4.js +0 -1
- package/chunk-TWWAK5M6.js +0 -1
- package/chunk-TXCVGOPN.js +0 -2
- package/chunk-UIVZWXBK.js +0 -1
- package/chunk-UNQKMTFM.js +0 -1
- package/chunk-V2M5YF4E.js +0 -1
- package/chunk-V2UO7ES2.js +0 -1
- package/chunk-VOXTAZLZ.js +0 -1
- package/chunk-VQLI7RDY.js +0 -60
- package/chunk-VTOEFKZG.js +0 -1
- package/chunk-VZNLMGYP.js +0 -2
- package/chunk-XUCXLLB4.js +0 -1
- package/chunk-XWML36YQ.js +0 -1
- package/chunk-Y47NRSCA.js +0 -1
- package/chunk-YF6JHIN5.js +0 -1
- package/chunk-YS4B2B5N.js +0 -1
- package/chunk-ZGQ2WCM2.js +0 -1
- package/chunk-ZSAEIKEB.js +0 -1
- package/chunk-ZXBKGNJU.js +0 -1
- package/main-S64CL44W.js +0 -1
- package/styles-S2CJL4OY.css +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {w as we,o as ot,Q as Qt$1,j as jt$1,a as at,e as en}from'./chunk-BUF3tczf.js';import'./chunk-IEVZ0UN6.js';import'./chunk-BAbAUjHY.js';import {I}from'./chunk-BPpheyQK.js';import {J}from'./chunk-birClroL.js';import'./chunk-bx0aDvCZ.js';import {C,g,G}from'./chunk-CtLFpDTP.js';import'./chunk-CxPG-KgI.js';import {v as ve}from'./chunk-B-ryE8KW.js';import'./chunk-CDRHCSvU.js';import {c}from'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import {T,e as ee$1,aw as W,bH as Te,c4 as v1,U as Ue,N as Nt,G as Ga,d as dw,v,f as N,a0 as de$1,u as ue,ak as cm,Q as Qi,F as Fg,j as mg,H as Hl,o as oT,O as Og,P as Pg,al as BC,D as DE,i as iT,I as Qg,z as gg,$ as $g,K as lC,a1 as cT,n as nC,ao as $C,a2 as lT,k as gT,S as Sd,x as xd,q as PC,s as sm,l as HC,X as XT,p as DD,w as im,a3 as QC,y as TD,ap as sT,aP as Ul,aQ as Wl,E as nm}from'./main-TZVLLK67.js';import {f}from'./chunk-DWwNINBJ.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import {d}from'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import {F as Fe}from'./chunk-Do6_xsGi.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-BOII3Fdm.js';import'./chunk-BffC_BAn.js';import'./chunk-M5tldLvJ.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"});function Vt(o,n){if(o&1){let t=gT();Qi(0,"sh-card",30)(1,"div",32)(2,"h3"),XT(3,4),Hl(),Qi(4,"button",33),Fg("click",function(){Sd(t);let i=nC(3);return xd(i.closeCustomList())}),PC(5," Cancel "),Qi(6,"sh-icon"),PC(7,"x-bold"),Hl()()(),Qi(8,"app-destination-list",34),Fg("setDestination",function(i){Sd(t);let _=nC(3);return xd(_.setDestination(i))}),Hl()();}}function Kt(o,n){if(o&1){let t=gT();Qi(0,"div",40)(1,"sh-toggle",43),sm("checkedChange",function(i){Sd(t);let _=nC(2).$implicit;return HC(_.save,i)||(_.save=i),xd(i)}),Qi(2,"span",44),XT(3,8),Hl()()();}if(o&2){let t=nC(2).$implicit;DE(),gg("color","primary")("variant","raised"),im("checked",t.save);}}function Jt(o,n){if(o&1){let t=gT();Qi(0,"sh-toggle-card",31),Ul(1,35),Qi(2,"app-destination-list-item",36)(3,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.changeDestination(i))}),PC(4,"Change"),Hl(),Qi(5,"sh-menu",37),Fg("click",function(i){return i.stopPropagation()}),Qi(6,"button",38)(7,"sh-icon"),PC(8,"dots-three-vertical"),Hl()(),Ul(9,39),Qi(10,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.openTargetUrlDialog(i))}),Og(11,5),mg(12,"sh-icon"),Pg(),Hl(),Qi(13,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.copyTargetUrl(i))}),Og(14,6),mg(15,"sh-icon"),Pg(),Hl(),Qi(16,"button",33),Fg("click",function(){Sd(t);let i=nC().$index,_=nC(2);return xd(_.removeDestination(i))}),Og(17,7),mg(18,"sh-icon"),Pg(),Hl(),Wl(),Hl()(),Wl(),oT(19,Kt,4,3,"div",40),Qi(20,"app-test-url",41,1),Fg("targetUrlChange",function(i){Sd(t);let _=nC().$index,T=nC(2);return xd(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Sd(t);let _=nC().$index,T=nC(2);return xd(T.updateTestState(_,i))}),Hl(),Qi(22,"app-single-destination",42),Fg("targetUrlChange",function(i){Sd(t);let _=nC().$index,T=nC(2);return xd(T.updateTargetUrl(_,i))}),Hl()();}if(o&2){let t=nC(),e=t.$implicit,i=t.$index,_=nC(2);gg("disableToggle",true)("isActive",true),DE(2),gg("targetUrl",e.url)("connectionStringId",e.connectionStringId),DE(17),iT(e.connectionStringId?-1:19),DE(),gg("targetUrl",e.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",e.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),DE(2),gg("targetUrl",e.url)("useBackupState",true);}}function Xt(o,n){if(o&1&&oT(0,Vt,9,0,"sh-card",30)(1,Jt,23,17,"sh-toggle-card",31),o&2){let t=n.$index,e=nC(2);iT(e.showCustomList()&&e.currentEditingIndex()===t?0:1);}}function zt(o,n){if(o&1&&cT(0,Xt,2,1,null,null,sT),o&2){nC();let t=$C(0);lT(t);}}function Ht(o,n){o&1&&(Qi(0,"div",45),mg(1,"sh-progress-bar",46),Qi(2,"div",47)(3,"h3"),XT(4,9),Hl()()());}function Wt(o,n){o&1&&(Qi(0,"sh-divider"),XT(1,12),Hl());}function jt(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit;DE(),nm(t.Description);}}function Qt(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit,e=nC(4);DE(),nm(e.getSimplePath(t.BaseUrl));}}function qt(o,n){if(o&1){let t=gT();Qi(0,"app-destination-list-item",50),Fg("click",function(){let i=Sd(t).$implicit,_=nC(4);return xd(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"h3",51),PC(2),Hl(),oT(3,jt,2,1,"p",52)(4,Qt,2,1,"p",52),Hl();}if(o&2){let t=n.$implicit;gg("targetUrl",t.BaseUrl),DE(2),nm(t.Name||t.BaseUrl),DE(),iT(t.Description?3:4);}}function Yt(o,n){if(o&1){let t=gT();Qi(0,"sh-card",48),Fg("click",function(){Sd(t);let i=nC(3);return xd(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),PC(2,"plus-circle"),Hl(),Qi(3,"div",47)(4,"h3"),XT(5,10),Hl(),Qi(6,"p"),XT(7,11),Hl()()(),oT(8,Wt,2,0,"sh-divider"),cT(9,qt,5,3,"app-destination-list-item",49,sT);}if(o&2){let t=nC(3);DE(8),iT(t.destinations().length>0?8:-1),DE(),lT(t.destinations());}}function Zt(o,n){if(o&1&&oT(0,Ht,5,0,"div",45)(1,Yt,11,1),o&2){let t=nC(2);iT(t.isLoadingDestinations()?0:1);}}function te(o,n){o&1&&(Qi(0,"sh-divider"),XT(1,15),Hl());}function ee(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit;DE(),nm(t.Description);}}function ne(o,n){if(o&1&&(Qi(0,"p",52),PC(1),Hl()),o&2){let t=nC().$implicit,e=nC(3);DE(),nm(e.getSimplePath(t.BaseUrl));}}function ie(o,n){if(o&1){let t=gT();Qi(0,"app-destination-list-item",57),Fg("click",function(){let i=Sd(t).$implicit,_=nC(3);return xd(_.selectSavedDestination(i))}),Qi(1,"h3",51),PC(2),Hl(),oT(3,ee,2,1,"p",52)(4,ne,2,1,"p",52),Hl();}if(o&2){let t=n.$implicit;gg("targetUrl",t.BaseUrl),DE(2),nm(t.Name||t.BaseUrl),DE(),iT(t.Description?3:4);}}function oe(o,n){if(o&1){let t=gT();Qi(0,"div",53)(1,"button",54),Fg("click",function(){Sd(t);let i=nC(2);return xd(i.closeCustomList())}),Qi(2,"sh-icon"),PC(3,"arrow-left"),Hl(),PC(4," Back "),Hl()(),Qi(5,"sh-card",55),Fg("click",function(){Sd(t);let i=nC(2);return xd(i.toggleCustomList())}),Qi(6,"sh-icon"),PC(7,"plus-circle"),Hl(),Qi(8,"div",47)(9,"h3"),XT(10,13),Hl(),Qi(11,"p"),XT(12,14),Hl()()(),oT(13,te,2,0,"sh-divider"),cT(14,ie,5,3,"app-destination-list-item",56,sT);}if(o&2){let t=nC(2);DE(13),iT(t.destinations().length>0?13:-1),DE(),lT(t.destinations());}}function ae(o,n){if(o&1){let t=gT();Qi(0,"div",53)(1,"button",54),Fg("click",function(){Sd(t);let i=nC(3);return xd(i.closeCustomList())}),Qi(2,"sh-icon"),PC(3,"arrow-left"),Hl()(),Qi(4,"h3"),XT(5,16),Hl()();}}function re(o,n){if(o&1){let t=gT();oT(0,ae,6,0,"div",53),Qi(1,"app-destination-list",34),Fg("setDestination",function(i){Sd(t);let _=nC(2);return xd(_.setDestination(i))}),Hl();}if(o&2){let t=nC(2),e=$C(0);iT(t.destinations().length>0||e.length>0?0:-1);}}function se(o,n){if(o&1&&oT(0,Zt,2,1)(1,oe,16,1)(2,re,2,1),o&2){let t=nC(),e=$C(1);iT(!t.showCustomList()&&!e&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function _e(o,n){if(o&1){let t=gT();Qi(0,"div",25)(1,"button",58),Fg("click",function(){Sd(t);let i=nC();return xd(i.startAddingNew())}),Qi(2,"sh-icon"),PC(3,"plus"),Hl(),PC(4," Add another destination "),Hl()();}}function le(o,n){o&1&&(Qi(0,"h2"),XT(1,19),Hl());}function ce(o,n){o&1&&(Qi(0,"h2"),XT(1,20),Hl());}function de(o,n){if(o&1){let t=gT();Qi(0,"sh-dialog",59),sm("isOpenChange",function(i){Sd(t);let _=nC();return HC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),xd(i)}),Qi(1,"header",60)(2,"div",61),oT(3,le,2,0,"h2")(4,ce,2,0,"h2"),Qi(5,"sh-alert",62),XT(6,17),Hl()()(),Qi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),sm("ngModelChange",function(i){Sd(t);let _=nC();return HC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),xd(i)}),Hl(),DD(),Hl()(),Qi(10,"footer",65)(11,"button",27),Fg("click",function(){Sd(t);let i=nC();return xd(i.closeTargetUrlDialog(false))}),PC(12,"Cancel"),Hl(),Qi(13,"button",66),Fg("click",function(){Sd(t);let i=nC();return xd(i.closeTargetUrlDialog(true))}),Og(14,18),mg(15,"sh-icon"),Pg(),Hl()()();}if(o&2){let t=nC(),e=$C(1);im("isOpen",t.targetUrlDialogOpen),gg("options",QC(4,Bt)),DE(3),iT(e?4:3),DE(6),im("ngModel",t.targetUrlCtrl),TD();}}var b=new jn,ke=(o={destinations:[]})=>b.group({destinations:b.array(o.destinations)}),Be=({key:o,customGroup:n,dynamicGroup:t,advancedGroup:e})=>b.group({destinationType:b.control(o),custom:n,dynamic:t,advanced:e}),B=class o{#n=T(ee$1);#i=T(W);#t=T(we);#e=T(ot);injector=T(Te);testUrlComponents=v1();testStates=Ue([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ue(null);targetUrlInitial=Ue(null);currentEditingIndex=Ue(null);targetUrlDialogOpen=Ue(false);showCustomList=Ue(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let n=this.targetUrlModel();return n?C(n)??null:null});isLoadingDestinationEffect=Ga(()=>{let n=this.isLoadingDestinations(),t=this.destinations(),e=this.targetUrls();!n&&t.length==0&&e.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let n=this.selectedDestinationType();return n?{key:n.customKey??n.key,customKey:n.customKey??null,displayName:n.displayName,description:n.description,icon:n.icon}:null});getConnectionString(n){let t=this.#e.destinations().find(e=>e.ID===n);return console.log("connection",t),t}getSimplePath(n){return n?g(n):""}copyTargetUrl(n=0){let t=this.targetUrls()[n]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(n=0){let t=this.targetUrls()[n]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(n),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(n=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),e=this.targetUrlInitial();if(!n||t===e||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(n){let t=G(n??"");if(!t)return;let e=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${n}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),e,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(e,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(e,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=Ga(()=>{let n=this.targetUrls();this.testStates.update(t=>{if(t.length===n.length)return t;let e=[...t];if(e.length<n.length)for(let i=e.length;i<n.length;i++)e.push(null);else e.length=n.length;return e});});selectSavedDestination(n){n.BaseUrl&&n.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(n.BaseUrl,true,n.ID,null):(this.#t.addTargetUrl(n.BaseUrl,n.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ue(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(n){this.currentEditingIndex.set(n),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(n){this.#t.removeTargetUrl(n);}updateTargetUrl(n,t){if(!t)return;let e=this.targetUrls()[n]?.connectionStringId??null,i=this.targetUrls()[n]?.urlKey??null;this.#t.updateTargetUrl(n,t,e,i),this.updateTestState(n,null);}updateTestState(n,t){this.testStates.update(e=>{let i=[...e];return i[n]=t,i});}toggleSave(n){this.#t.toggleSaveConnectionString(n);}goBack(){this.#n.navigate(["general"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=dw({type:o,selectors:[["app-destination"]],viewQuery:function(t,e){t&1&&$g(e.testUrlComponents,kt,5),t&2&&lC();},decls:19,vars:9,consts:()=>{let n;n=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let e;e=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let L;L=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],n,t,e,i,_,T,L,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,e){if(t&1&&(cm(0)(1),Qi(2,"form",21,0),Fg("submit",function(){return e.next()}),Qi(4,"div",22),mg(5,"input",23)(6,"input",24),Hl(),Qi(7,"header"),oT(8,zt,2,0),Hl(),oT(9,se,3,1),oT(10,_e,5,0,"div",25),Qi(11,"div",26)(12,"button",27),Fg("click",function(){return e.goBack()}),Og(13,2),mg(14,"sh-icon"),Pg(),Hl(),Qi(15,"button",28),Og(16,3),mg(17,"sh-icon"),Pg(),Hl()()(),oT(18,de,16,5,"sh-dialog",29)),t&2){let i=BC(e.targetUrls());DE();let _=BC(i.length>0);DE(7),iT(e.currentEditingIndex()!==null||!e.showCustomList()&&!e.isAddingNew()?8:-1),DE(),iT((!_||e.showCustomList()||e.isAddingNew())&&e.currentEditingIndex()===null?9:-1),DE(),iT(_&&!e.showCustomList()&&!e.isAddingNew()?10:-1),DE(5),Qg("loading",e.isNew()&&e.testStates().length>0&&e.testStates()[0]==="testing"),gg("disabled",!_),DE(3),iT(e.targetUrlDialogOpen()?18:-1);}},dependencies:[Qt$1,jt$1,at,en,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve,N,de$1,ue,f,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
|
|
2
|
+
export{ke as createDestinationForm,Be as createDestinationFormGroup,B as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import {w as we,H as Ht}from'./chunk-BUF3tczf.js';import'./chunk-IEVZ0UN6.js';import {OptionsListComponent as Oe}from'./chunk-BNf0YAwH.js';import'./chunk-BAbAUjHY.js';import'./chunk-BPpheyQK.js';import'./chunk-birClroL.js';import'./chunk-bx0aDvCZ.js';import {e as ee$1}from'./chunk-BMGXb3gX.js';import'./chunk-BqjWEFHw.js';import'./chunk-BS8yAz3P.js';import'./chunk-CtLFpDTP.js';import {N as Nt$2}from'./chunk-CxPG-KgI.js';import'./chunk-B-ryE8KW.js';import'./chunk-CDRHCSvU.js';import'./chunk-5zEiKCqR.js';import {c as c$1}from'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import {T,ab as C,e as ee,aw as W,aW as G,aX as y,m,N as Nt$1,U as Ue,G as Ga,d as dw,_ as _t,v,f as N,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,o as oT,D as DE,i as iT,aD as zC,aY as x,aZ as ee$2,k as gT,p as DD,X as XT,s as sm,S as Sd,n as nC,l as HC,x as xd,F as Fg,z as gg,a3 as QC,y as TD,w as im,I as Qg,au as Lg,av as eC}from'./main-TZVLLK67.js';import'./chunk-DWwNINBJ.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import {L}from'./chunk-M5tldLvJ.js';import {d}from'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import {F as Fe}from'./chunk-Do6_xsGi.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-BOII3Fdm.js';import {a as at}from'./chunk-BffC_BAn.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&&mg(0,"sh-progress-bar",10);}function Nt(m,e){if(m&1){let t=gT();Qi(0,"form",11)(1,"sh-select",12)(2,"label",13),Og(3,1),mg(4,"sh-icon",14),Pg(),Hl(),mg(5,"input",15),DD(),Hl(),Qi(6,"sh-form-field")(7,"label",16),Og(8,2),mg(9,"sh-icon",17),Pg(),Hl(),mg(10,"textarea",18),DD(),Hl(),Qi(11,"sh-form-field")(12,"label",19),Og(13,3),mg(14,"sh-icon",20),Pg(),Hl(),mg(15,"textarea",21),DD(),Hl()(),Qi(16,"sh-divider"),XT(17,4),Hl(),Qi(18,"form",11)(19,"sh-form-field")(20,"label",22),Og(21,5),mg(22,"sh-icon",23),Pg(),Hl(),mg(23,"input",24),DD(),Hl(),Qi(24,"sh-form-field")(25,"label",25),Og(26,6),mg(27,"sh-icon",26),Pg(),Hl(),mg(28,"input",27),DD(),Hl(),Qi(29,"app-filters",28),sm("filtersChange",function(i){Sd(t);let s=nC();return HC(s.filters,i)||(s.filters=i),xd(i)}),Fg("filtersChange",function(i){Sd(t);let s=nC();return xd(s.updateFilters(i))}),Hl()(),Qi(30,"app-options-list",29),sm("optionsChange",function(i){Sd(t);let s=nC();return HC(s.settings,i)||(s.settings=i),xd(i)}),Hl(),Qi(31,"div",30)(32,"button",31),Fg("click",function(){Sd(t);let i=nC();return xd(i.submit())}),Og(33,7),mg(34,"sh-icon"),Pg(),Hl()();}if(m&2){let t=nC();gg("formGroup",t.baseCmdForm),DE(),gg("options",t.commandOptions()??QC(11,Tt))("inlineSearch",true),DE(4),TD(),DE(5),TD(),DE(5),TD(),DE(3),gg("formGroup",t.standardFields),DE(5),TD(),DE(5),TD(),DE(),im("filters",t.filters),gg("osType",t.osType()??""),DE(),im("options",t.settings),gg("hasFreeTextSettings",true),DE(2),Qg("loading",t.isSubmitting()),DE(2),Lg(t.baseCmdForm.value.command),eC(33);}}var c=new jn,$=class m$1{#t=T(we);#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=Ue(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=Ue([]);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=Ga(()=>{let e=this.#l()?.id;this.#t.backupId.set(e),this.getBackup(e);});getBackup(e){this.#n.getApiV1BackupById({id:e}).subscribe({next:t=>{this.#t.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.#t.mapGeneralToForm(t.Backup),this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#t.mapOptionsToForms(t.Backup,true)),this.applyStateFromUrl(),this.#t.finishedLoading.set(true);}});}mapStandardFieldsToForm(e){if(this.standardFields.patchValue({dbpath:e.DBPath,"backup-id":e.ID,"backup-name":e.Name}),this.standardFields.controls.filters.clear(),e.Filters&&e.Filters.length){let t=e.Filters.map(n=>`${n.Include?"":"-"}${n.Expression}`);t.forEach(n=>{this.standardFields.controls.filters.push(c.control(n));}),this.filters.set(t);}else this.filters.set([]);}submit(){this.#s.resumeDialogCheck(()=>this.#c());}#c(){this.isSubmitting.set(true);let e=this.updateUrl(),t=this.baseCmdForm.value,n=t.targetUrl??"",i=(t.arguments??"").split(`
|
|
2
|
+
`)??[],s=[n,...i].filter(o=>o.length>0),g=this.standardFields.value,N=g.filters??[],E=[t.command,...s,`--backup-name=${g["backup-name"]}`,`--dbpath=${g.dbpath}`,`--backup-id=${g["backup-id"]}`,...N.filter(o=>o).map(o=>o.startsWith("-")?`--exclude=${o?.slice(1)}`:`--include=${o}`),...this.#t.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(o=>`${o.Name.startsWith("--")?"":"--"}${o.Name}=${o.Value}`),"--disable-module=console-password-input"];this.#n.postApiV1Commandline({requestBody:E}).subscribe({next:o=>{o.Status==="OK"&&this.#o.navigate(["backup",this.backupId(),"commandline",o.ID],{queryParams:{state:e}});},error:()=>{this.isSubmitting.set(false);}});}mapBaseCmdToForm(e){let t=e.TargetURL??null;t&&this.baseCmdForm.patchValue({targetUrl:t??"",arguments:e.Sources?.join(`
|
|
3
|
+
`)??""});}updateUrl(){let e=this.baseCmdForm.value,t=this.standardFields.value,n=t.filters??[],i=this.settings(),s=this.#i.saveState({command:e.command,targetUrl:e.targetUrl,arguments:e.arguments,backupId:t["backup-id"],backupName:t["backup-name"],dbpath:t.dbpath,filters:n,options:i});return this.#o.navigate([],{relativeTo:this.#e,queryParams:{state:s},replaceUrl:true}),s}applyStateFromUrl(){let t=this.#e.snapshot.queryParams.state;if(!t)return;let n=this.#i.getState(t);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(i=>{this.standardFields.controls.filters.push(c.control(i));}),this.filters.set(n.filters)),n.options&&n.options.length>0&&this.settings.set(n.options));}static \u0275fac=function(t){return new(t||m$1)};static \u0275cmp=dw({type:m$1,selectors:[["app-commandline"]],features:[zC([we])],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&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"div",8)(3,"button",9),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),oT(6,ft,1,0,"sh-progress-bar",10)(7,Nt,35,12),Hl()),t&2&&(DE(6),iT(n.finishedLoading()?7:6));},dependencies:[Bn,Tn,Ze,Rn,Pn,ee$1,Oe,Ht,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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {d}from'./chunk-DofVJ9gn.js';import {Q as Qt,j as jt,a as at,e as en,w as we}from'./chunk-BUF3tczf.js';import'./chunk-IEVZ0UN6.js';import'./chunk-BNf0YAwH.js';import'./chunk-BAbAUjHY.js';import'./chunk-BPpheyQK.js';import'./chunk-birClroL.js';import'./chunk-bx0aDvCZ.js';import {C,G}from'./chunk-CtLFpDTP.js';import'./chunk-CxPG-KgI.js';import {v as ve}from'./chunk-B-ryE8KW.js';import'./chunk-CDRHCSvU.js';import'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import {T,e as ee,aw as W,a6 as be,bH as Te,B as y1,U as Ue$1,N as Nt,at as h,d as dw,v,f as N,a0 as de,u as ue,k as gT,ak as cm,Q as Qi,F as Fg,X as XT,H as Hl,o as oT,s as sm,S as Sd,l as HC,x as xd,O as Og,j as mg,P as Pg,al as BC,D as DE,i as iT,w as im,z as gg,t as tC,aD as zC,$ as $g,K as lC,n as nC,q as PC,aP as Ul,aQ as Wl,ao as $C,p as DD,a3 as QC,y as TD}from'./main-TZVLLK67.js';import'./chunk-DWwNINBJ.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import {F as Fe$1}from'./chunk-Do6_xsGi.js';import {B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt,a as Zt}from'./chunk-BOII3Fdm.js';import'./chunk-BffC_BAn.js';import'./chunk-M5tldLvJ.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=gT();Qi(0,"button",24),Fg("click",function(){Sd(e);let t=nC();return xd(t.openTargetUrlDialog())}),Og(1,5),mg(2,"sh-icon"),Pg(),Hl();}}function fe(o,i){if(o&1){let e=gT();Qi(0,"button",24),Fg("click",function(){Sd(e);let t=nC(2);return xd(t.copyTargetUrl())}),Og(1,7),mg(2,"sh-icon"),Pg(),Hl();}}function he(o,i){if(o&1){let e=gT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),PC(3,"dots-three-vertical"),Hl()(),Ul(4,25),Qi(5,"button",24),Fg("click",function(){Sd(e);let t=nC();return xd(t.openTargetUrlDialog())}),Og(6,6),mg(7,"sh-icon"),Pg(),Hl(),oT(8,fe,3,0,"button",15),Wl(),Hl();}if(o&2){nC();let e=$C(0);DE(8),iT(e?8:-1);}}function Pe(o,i){if(o&1){let e=gT();Qi(0,"app-destination-list-item",17)(1,"button",20),Fg("click",function(){Sd(e);let t=nC();return xd(t.removeDestination())}),XT(2,8),Hl()();}if(o&2){nC();let e=$C(12);gg("destination",e);}}function ye(o,i){if(o&1){let e=gT();Qi(0,"app-destination-list",26),Fg("setDestination",function(t){Sd(e);let l=nC();return xd(l.setDestination(t))}),Hl();}}function Ae(o,i){if(o&1){let e=gT();Qi(0,"app-single-destination",27),sm("targetUrlChange",function(t){Sd(e);let l=nC();return HC(l.targetUrlModel,t)||(l.targetUrlModel=t),xd(t)}),Hl();}if(o&2){let e=nC();im("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Og(0,4,1),mg(1,"sh-icon",22),Pg());}function Re(o,i){o&1&&(Og(0,4,2),mg(1,"sh-icon"),Pg());}function Ue(o,i){if(o&1){let e=gT();Qi(0,"sh-dialog",28),sm("isOpenChange",function(t){Sd(e);let l=nC();return HC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),xd(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),XT(4,9),Hl(),Qi(5,"sh-alert",31),XT(6,10),Hl()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),sm("ngModelChange",function(t){Sd(e);let l=nC();return HC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),xd(t)}),Hl(),DD(),Hl()(),Qi(10,"footer",34)(11,"button",20),Fg("click",function(){Sd(e);let t=nC();return xd(t.closeTargetUrlDialog(false))}),PC(12,"Cancel"),Hl(),Qi(13,"button",35),Fg("click",function(){Sd(e);let t=nC();return xd(t.closeTargetUrlDialog(true))}),Og(14,11),mg(15,"sh-icon"),Pg(),Hl()()();}if(o&2){let e=nC();im("isOpen",e.targetUrlDialogOpen),gg("options",QC(3,Ee)),DE(9),im("ngModel",e.targetUrlCtrl),TD();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(Te);#e=T(d);formRef=y1.required("formRef");testUrlComponent=y1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ue$1(null);targetUrlInitial=Ue$1(null);targetUrlDialogOpen=Ue$1(false);toggleNewDestination=Ue$1(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?C(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&$g(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&lC(2);},features:[zC([we])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=tC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=gT();cm(0),Qi(1,"form",12,0),Fg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),XT(6,2),Hl(),Qi(7,"div",14),oT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),Hl()(),Qi(10,"app-test-url",16,1),sm("targetUrlChange",function(g){return Sd(t),HC(n.targetUrlModel,g)||(n.targetUrlModel=g),xd(g)})("testSignalChange",function(g){return Sd(t),HC(n.testSignal,g)||(n.testSignal=g),xd(g)}),Hl(),cm(12),oT(13,Pe,3,1,"app-destination-list-item",17),Hl(),oT(14,ye,1,0,"app-destination-list"),oT(15,Ae,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Fg("click",function(){return n.goBack()}),Og(18,3),mg(19,"sh-icon"),Pg(),Hl(),Qi(20,"button",21),Og(21,4),oT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),Pg(),Hl()()(),oT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=BC(!!n.targetUrlModel());DE(8),iT(t?9:8),DE(2),im("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),gg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),DE(2);let l=BC(n.selectedDestinationTypeOption());DE(),iT(l?13:-1),DE(),iT(t?-1:14),DE(),iT(t?15:-1),DE(5),gg("disabled",n.testSignal()=="testing"||!t),DE(2),iT(n.testSignal()=="testing"?22:23),DE(2),iT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[Qt,jt,at,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve,N,de,ue,en],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
|
|
2
|
+
export{w as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {b as g1,b7 as le,d as dw,L as oC,Y as iC,h as bC}from'./main-TZVLLK67.js';var p=["*"],f=(()=>{class a{constructor(){this.color=g1(null),this.variant=g1(null),this.hostClasses=le("card",{color:this.color,variant:this.variant});}static{this.\u0275fac=function(r){return new(r||a)};}static{this.\u0275cmp=dw({type:a,selectors:[["sh-card"]],hostVars:2,hostBindings:function(r,s){r&2&&bC(s.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"]},ngContentSelectors:p,decls:1,vars:0,template:function(r,s){r&1&&(oC(),iC(0));},styles:[`sh-card{--card-bg: var(--base-1);--card-ibg: var(--base-2);--card-bc: var(--base-4);--card-sh: var(--box-shadow-10);--card-p: 1.5rem;--card-shp: .5rem;display:block;padding:var(--card-p);position:relative;z-index:0;border:var(--border-10);border-color:var(--card-bc);box-shadow:var(--card-sh);border-radius:var(--shape-3);overflow:hidden}sh-card:before,sh-card:after{content:"";position:absolute}sh-card:before{background-color:var(--card-bg);inset:0;z-index:-2;border-radius:inherit}sh-card:after{background-color:var(--card-ibg);border-radius:var(--shape-2);inset:var(--card-shp);z-index:-1}sh-card.type-b{--card-bg: var(--base-2);--card-ibg: var(--base-1);--card-sh: none;--card-shp: .25rem}sh-card.type-c{--card-bg: transparent;--card-ibg: var(--card-bg);--card-p: 0}
|
|
2
|
+
`],encapsulation:2});}}return a})();export{f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {e as ee}from'./chunk-BMGXb3gX.js';import'./chunk-BqjWEFHw.js';import'./chunk-BS8yAz3P.js';import'./chunk-CxPG-KgI.js';import'./chunk-B-ryE8KW.js';import'./chunk-5zEiKCqR.js';import'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import {T,ab as C,aw as W,N as Nt,U as Ue,d as dw,f as N,v as v$1,_ as _t,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,F as Fg,o as oT,a1 as cT,D as DE,z as gg,a_ as ZC,i as iT,a2 as lT,t as tC,X as XT,q as PC,aa as Gl,ap as sT}from'./main-TZVLLK67.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import {L}from'./chunk-M5tldLvJ.js';import'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import'./chunk-Do6_xsGi.js';import'./chunk-BOII3Fdm.js';import'./chunk-BffC_BAn.js';var k=e=>({state:e});function y(e,t){e&1&&XT(0,2,1);}function v(e,t){e&1&&XT(0,2,2);}function U(e,t){e&1&&XT(0,2,3);}function G(e,t){e&1&&XT(0,2,4);}function K(e,t){if(e&1&&(PC(0),mg(1,"br")),e&2){let o=t.$implicit;Gl(" ",o," ");}}var S=class e{#t=T(C);#e=T(W);#n=L(this.#e.params);#o=L(this.#e.queryParams);runId=Nt(()=>this.#n()?.runId);stateId=Nt(()=>this.#o()?.state);offset=Ue(0);status=Ue("starting");messageLog=Ue([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(o=>[...o,...t.Items]);});},1e3);evalStatus(t){t.Started===true&&t.Finished===true&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===true&&t.Finished===false&&this.status.set("started");}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval);}});}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=dw({type:e,selectors:[["app-commandline-result"]],decls:18,vars:7,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let o;o=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let n;return n=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,n=tC(n),[t,o,n,[1,"back"],["type","button","shButton","","routerLink","../",1,"small",3,"queryParams"],["type","button","shButton","",1,"small",3,"click"],[1,"status"]]},template:function(o,n){o&1&&(mg(0,"app-status-bar"),Qi(1,"section")(2,"div",3)(3,"button",4),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),Qi(6,"h3"),Og(7,1),Qi(8,"button",5),Fg("click",function(){return n.abort()}),Hl(),Pg(),Hl(),Qi(9,"div",6),Og(10,2),oT(11,y,1,0),oT(12,v,1,0),oT(13,U,1,0),oT(14,G,1,0),Pg(),Hl(),Qi(15,"code"),cT(16,K,2,1,null,null,sT),Hl()()),o&2&&(DE(3),gg("queryParams",ZC(5,k,n.stateId())),DE(8),iT(n.status()==="starting"?11:-1),DE(),iT(n.status()==="started"?12:-1),DE(),iT(n.status()==="finished"?13:-1),DE(),iT(n.status()==="aborted"?14:-1),DE(2),lT(n.messageLog()));},dependencies:[ee,N,v$1,_t],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"]})};export{S as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {ShipTable as ot}from'./chunk-SgcWXTYZ.js';import'./chunk-CdZVal1F.js';import'./chunk-BjNuU0J_.js';import {T,ab as C,U as Ue,G as Ga,C as Bu,ai as m,aj as l,d as dw,f as N,v,aJ as ci,Q as Qi,X as XT,H as Hl,j as mg,a1 as cT,F as Fg,O as Og,o as oT,P as Pg,ag as zg,z as gg,D as DE,a2 as lT,i as iT,k as gT,S as Sd,n as nC,x as xd,q as PC,aM as tb,E as nm,aN as ob,I as Qg,ap as sT}from'./main-TZVLLK67.js';function X(o,e){if(o&1&&(Qi(0,"li"),PC(1),Hl()),o&2){let t=e.$implicit;DE(),nm(t);}}function j(o,e){if(o&1&&(Qi(0,"tr")(1,"td",12)(2,"code")(3,"ol",13),cT(4,X,2,1,"li",null,sT),Hl()()()()),o&2){let t=nC().$implicit,n=nC();DE(),zg("grid-column","1 / -1")("height","auto"),DE(3),lT(n.breakIntoLines(t.Exception));}}function K(o,e){if(o&1){let t=gT();Qi(0,"tr",9),Fg("click",function(){let _=Sd(t).$index,m=nC();return xd(m.toggleRow(_))}),Qi(1,"td"),PC(2),tb(3,"date"),Hl(),Qi(4,"td",10),PC(5),Hl(),Qi(6,"td"),PC(7),Hl(),Qi(8,"td")(9,"button",11)(10,"sh-icon"),PC(11,"caret-down"),Hl()()()(),oT(12,j,6,4,"tr");}if(o&2){let t=e.$implicit,n=e.$index,_=nC();DE(2),nm(t.Timestamp?ob(3,6,t.Timestamp*1e3,"medium"):"-"),DE(3),nm(t.BackupID>=0?t.BackupID:"-"),DE(2),nm(t.Message),DE(2),Qg("rotated-icon",n===_.openRowIndex()),DE(3),iT(n===_.openRowIndex()?12:-1);}}function V(o,e){o&1&&XT(0,4,1);}function q(o,e){o&1&&XT(0,4,2);}var H=["BackupID","Timestamp","Message","actions"],M=class o{#e=T(C);displayedColumns=Ue(H);openRowIndex=Ue(null);noMoreItems=Ue(false);logsIsLoading=Ue(false);logs=Ue([]);pagination=Ue({offsetTime:void 0,pagesize:10});paginationEffect=Ga(()=>{this.pagination();this.getLogs();});ngOnInit(){this.getLogs();}getLogs(){this.logsIsLoading.set(true);let e=this.pagination();this.#e.getApiV1LogdataLog({pagesize:e.pagesize,offset:e.offsetTime}).pipe(Bu(()=>this.logsIsLoading.set(false))).subscribe({next:t=>{t.length===0&&this.noMoreItems.set(true),this.logs.update(n=>[...n,...t]);}});}toggleRow(e){this.openRowIndex.set(e===this.openRowIndex()?null:e);}breakIntoLines(e){return e?e.split(`
|
|
2
|
+
`):[]}loadMore(){let e=this.logs().at(-1)?.Timestamp;this.pagination.update(t=>m(l({},t),{offsetTime:e}));}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=dw({type:o,selectors:[["app-logs-stored"]],decls:18,vars:6,consts:()=>{let e;e=$localize`Timestamp`;let t;t=$localize`Backup ID`;let n;n=$localize`Message`;let _;_=$localize`No data available`;let m;return m=$localize`${"\uFFFD*16:1\uFFFD"}:START_BLOCK_IF: No more items ${"\uFFFD/*16:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*17:2\uFFFD"}:START_BLOCK_ELSE: Load more ${"\uFFFD/*17:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,[e,t,n,_,m,[1,"type-b",3,"data","loading"],["thead",""],["table-no-rows",""],["shButton","",1,"primary","raised",3,"click","disabled"],[3,"click"],[1,"id"],["shButton","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol"]]},template:function(t,n){if(t&1&&(Qi(0,"sh-table",5)(1,"tr",6)(2,"th"),XT(3,0),Hl(),Qi(4,"th"),XT(5,1),Hl(),Qi(6,"th"),XT(7,2),Hl(),mg(8,"th"),Hl(),cT(9,K,13,9,null,null,sT),Qi(11,"div",7),XT(12,3),Hl()(),Qi(13,"footer")(14,"button",8),Fg("click",function(){return n.loadMore()}),Og(15,4),oT(16,V,1,0)(17,q,1,0),Pg(),Hl()()),t&2){let _=n.logs();zg("grid-template-columns","1fr 1fr 1fr auto"),gg("data",_)("loading",n.logsIsLoading()),DE(9),lT(_),DE(5),gg("disabled",n.logsIsLoading()||n.noMoreItems()),DE(2),iT(n.noMoreItems()?16:17);}},dependencies:[ot,N,v,ci],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:2rem 0 0}"]})};export{M as default};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {T,ae as Jr,b as g1,b7 as le$1,bw as eE,d as dw,L as oC,Y as iC,R as Bl,W as $l,F as Fg,h as bC,ad as br,bx as N,af as m1,ac as h1,N as Nt,aj as l,B as y1,U as Ue,by as ae$1,G as Ga,an as jg,V as yg,o as oT,aC as hg,D as DE,ag as zg,i as iT,I as Qg,$ as $g,K as lC,Q as Qi,s as sm,l as HC,H as Hl,j as mg,w as im,z as gg,a3 as QC,k as gT,S as Sd,n as nC,x as xd,bz as TC}from'./main-TZVLLK67.js';var pe=["triggerRef"],se=["popoverRef"],ne=["popoverContentRef"],fe=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],ae=["[trigger]","button","[shButton]","*"];function le(s,xe){if(s&1){let i=gT();Bl(0,"div",6,1)(2,"div",7),jg("click",function(r){Sd(i);let n=nC();return xd(n.eventClose(r))}),$l(),Bl(3,"div",8,2),iC(5,3),$l()();}if(s&2){let i=nC();hg("id",i.id()+"hello"),DE(3),TC(i.menuStyle()),zg("position-anchor",i.id());}}var h=4,he=["scroll","auto"],de={width:void 0,height:void 0,closeOnButton:true,closeOnEsc:true},oe=(()=>{class s{constructor(){this.#e=T(br),this.#r=T(N),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=g1(false),this.asSheetOnMobile=g1(false),this.disableOpenByClick=g1(false),this.isOpen=m1(false),this.options=g1(),this.closed=h1(),this.defaultOptionMerge=Nt(()=>l(l({},de),this.options())),this.triggerRef=y1.required("triggerRef"),this.popoverRef=y1("popoverRef"),this.popoverContentRef=y1("popoverContentRef"),this.id=Ue("--"+ae$1()),this.menuStyle=Ue(null),this.openAbort=null,this.#i=null,this.openEffect=Ga(()=>{let i=this.isOpen(),e=this.popoverRef()?.nativeElement;queueMicrotask(()=>{if(!e){this.openAbort?.abort(),this.openAbort=null;return}if(i){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#e.addEventListener("keydown",o=>{this.#r.matches(o,"popover.close")&&(this.defaultOptionMerge().closeOnEsc?this.isOpen.set(false):o.preventDefault());},{signal:this.openAbort?.signal}),!e.isConnected)return;e.showPopover();let r=this.#r.getShortcut("popover.close");r&&e.setAttribute("aria-keyshortcuts",this.#r.getDisplayShortcut("popover.close")||r);let n=this.asSheetOnMobile()&&window.innerWidth<=768;n&&(this.#i=this.#e.body.style.overflow,this.#e.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!n&&setTimeout(()=>{this.#u(e).addEventListener("scroll",()=>this.#o(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#o(),{signal:this.openAbort?.signal}),this.#o();});}else this.closed.emit(),e.hidePopover(),this.openAbort?.abort(),this.openAbort=null,this.asSheetOnMobile()&&this.#i!==null&&(this.#e.body.style.overflow=this.#i,this.#i=null);});});}#e;#r;#i;toggleIsOpen(i){this.disableOpenByClick()||(i.preventDefault(),i.stopPropagation(),this.isOpen.set(!this.isOpen()));}eventClose(i){this.isOpen()&&this.isOpen.set(false);}#u(i){let e=i.parentElement;for(;e;){if(he.indexOf(window?.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement;}return this.#e.documentElement}#t(i,e){return {left:i.left,top:i.bottom+h}}#p(i,e){return {left:i.left,top:i.top-e.height-h}}#s(i,e){return {left:i.right-e.width,top:i.bottom+h}}#n(i,e){return {left:i.right-e.width,top:i.top-e.height-h}}#f(i,e){return {left:i.right+h,top:i.top}}#a(i,e){return {left:i.left-e.width-h,top:i.top}}#l(i,e){return {left:i.right+h,top:i.top+i.height/2-e.height/2}}#h(i,e){return {left:i.left-e.width-h,top:i.top+i.height/2-e.height/2}}#d(i,e){return {left:i.right+h,top:i.bottom-e.height}}#m(i,e){return {left:i.left-e.width-h,top:i.bottom-e.height}}#c(i,e){return i.left>=0&&i.top>=0&&i.left+e.width<=window.innerWidth&&i.top+e.height<=window.innerHeight}#v(i,e){return {left:Math.max(0,Math.min(i.left,window.innerWidth-e.width)),top:Math.max(0,Math.min(i.top,window.innerHeight-e.height))}}#o(){let i=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!i||!e)return;let r=[this.#t,this.#p,this.#s,this.#n,this.#f,this.#a,this.#l,this.#h,this.#d,this.#m],n=[this.#f,this.#d,this.#a,this.#m,this.#l,this.#h,this.#t,this.#p,this.#s,this.#n],o=this.asMultiLayer()?n:r;for(let p of o){let y=p.call(this,i,e);if(this.#c(y,e)){this.menuStyle.set({left:y.left+"px",top:y.top+"px"});return}}let d=this.#v(o[0].call(this,i,e),e);this.menuStyle.set({left:d.left+"px",top:d.top+"px"});}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null;}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=dw({type:s,selectors:[["sh-popover"]],viewQuery:function(e,r){e&1&&$g(r.triggerRef,pe,5)(r.popoverRef,se,5)(r.popoverContentRef,ne,5),e&2&&lC(3);},hostVars:4,hostBindings:function(e,r){e&2&&Qg("multi-layer",r.asMultiLayer())("as-sheet",r.asSheetOnMobile());},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(e,r){e&1&&(oC(fe),Bl(0,"div",3,0),jg("click",function(o){return r.toggleIsOpen(o)}),Bl(2,"div",4),iC(3),iC(4,1),iC(5,2),$l(),yg(6,"div",5),$l(),oT(7,le,6,5,"div",6)),e&2&&(hg("popovertarget",r.id()+"hello"),DE(6),zg("anchor-name",r.id()),DE(),iT(r.isOpen()?7:-1));},styles:[`sh-popover{--po-d: block;display:var(--po-d)}sh-popover.multi-layer .popover-content{position-area:right span-y-end}sh-popover.multi-layer .trigger .trigger-anchor{right:-.25rem;left:-.25rem;top:0;bottom:0}sh-popover .trigger{cursor:pointer;display:var(--po-d);position:relative}sh-popover .trigger .trigger-wrapper{display:var(--po-d)}sh-popover .trigger .trigger-wrapper:empty+*{display:inherit}sh-popover .trigger .trigger-anchor{position:absolute;inset:0;z-index:-1}sh-popover .popover{position:fixed;inset:0;width:100%;height:100%;border:0;opacity:1;background-color:transparent;z-index:-1}sh-popover .popover .overlay{width:100%;height:100%;position:absolute;top:0;left:0;background-color:transparent}sh-popover [popover]::backdrop{display:none}sh-popover .popover-content{position:fixed;margin:0;min-width:11.25rem;max-width:calc(100vw - .5rem);max-height:calc(100vh - .5rem);overflow:auto;z-index:0;background-color:var(--base-1);border:var(--border-10);border-radius:var(--shape-2);font:var(--paragraph-30);color:var(--base-8);padding:0}@supports (anchor-name: --anchor){sh-popover .popover-content{inset:auto;top:.25rem;position:fixed;position-area:bottom span-right;max-width:unset;max-height:unset;overflow:visible;position-try-fallbacks:--top-span-right,--bottom-span-left,--top-span-left,--right-span-bottom,--left-span-bottom,--right-center,--left-center,--right-span-top,--left-span-top}}@media only screen and (max-width:768px){sh-popover.as-sheet .popover{z-index:9999}sh-popover.as-sheet .popover .overlay{background-color:var(--overlay, rgba(0, 0, 0, .5))}@supports (anchor-name: --anchor){sh-popover.as-sheet .popover-content{position-area:none;position-try-fallbacks:none;inset:auto}}sh-popover.as-sheet .popover-content{position:fixed;top:auto;bottom:0;left:.5rem;right:.5rem;width:calc(100% - 1rem);max-width:unset;height:auto;max-height:calc(100vh - 5rem);border-bottom-left-radius:0;border-bottom-right-radius:0;margin:0;transform:translateY(0);display:flex;align-items:center;padding:1rem;justify-content:center}}.full-popover sh-popover .popover-content,sh-popover.full .popover-content{width:auto}@supports (anchor-name: --anchor){.full-popover sh-popover .popover-content,sh-popover.full .popover-content{left:anchor(left);right:anchor(right)}}@position-try --bottom-span-right{position-area:bottom span-right;inset:auto;top:.25rem}@position-try --bottom-span-left{position-area:bottom span-left;inset:auto;top:.25rem}@position-try --top-span-right{position-area:top span-right;inset:auto;bottom:.25rem}@position-try --top-span-left{position-area:top span-left;inset:auto;bottom:.25rem}@position-try --right-span-top{position-area:right span-top;inset:auto;left:.25rem}@position-try --left-span-top{position-area:left span-top;inset:auto;right:.25rem}@position-try --right-center{position-area:right center;inset:auto;left:.25rem}@position-try --left-center{position-area:left center;inset:auto;right:.25rem}@position-try --right-span-bottom{position-area:right span-bottom;inset:auto;left:.25rem}@position-try --left-span-bottom{position-area:left span-bottom;inset:auto;right:.25rem}
|
|
2
|
+
`],encapsulation:2});}}return s})();var me=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],ue=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],ce=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],ve=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],ge=()=>({closeOnButton:false,closeOnEsc:true}),be=`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
|
|
3
|
+
`,Fe=(()=>{class s{#e;onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus();}constructor(){this.#e=T(Jr),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.readonly=g1(false),this.hostClasses=le$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),eE(()=>{let i=this.#e.nativeElement,e=i.querySelector("input")||i.querySelector("textarea"),r=i.querySelector("label"),n=i.querySelector("[error]"),o=i.querySelector("[hint]");if(e){e.id||(e.id=`sh-input-${Math.random().toString(36).substring(2,9)}`),r&&!r.getAttribute("for")&&r.setAttribute("for",e.id);let m=[];n&&(n.id||(n.id=`sh-error-${Math.random().toString(36).substring(2,9)}`),m.push(n.id)),o&&(o.id||(o.id=`sh-hint-${Math.random().toString(36).substring(2,9)}`),m.push(o.id)),m.length>0&&!e.hasAttribute("aria-describedby")&&e.setAttribute("aria-describedby",m.join(" "));}let d=typeof CSS<"u"&&CSS.supports("field-sizing","content"),p=this.#e.nativeElement.querySelector("textarea");if(!d&&p!==null){let m=function(){p.style.height="auto",p.style.height=p.scrollHeight+"px";},g=function(){setTimeout(m,0);};p.addEventListener("change",m),p.addEventListener("cut",g),p.addEventListener("paste",g),p.addEventListener("drop",g),p.addEventListener("keydown",g),p.focus(),p.select(),m();}});}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=dw({type:s,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(e,r){e&1&&Fg("click",function(){return r.onClick()}),e&2&&bC(r.hostClasses());},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:ue,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(oC(me),iC(0),Bl(1,"div",0)(2,"div",1),iC(3,1),iC(4,2),iC(5,3),$l(),iC(6,4),iC(7,5),Bl(8,"div",2),iC(9,6),iC(10,7),iC(11,8),$l()(),Bl(12,"div",3)(13,"div",4),iC(14,9),$l(),Bl(15,"div",5),iC(16,10),$l()());},styles:[`sh-daterange-input.small sh-form-field-popover,sh-daterange-input.small sh-form-field,sh-datepicker-input.small sh-form-field-popover,sh-datepicker-input.small sh-form-field,sh-form-field-popover.small,sh-form-field.small{--ff-space: .4375rem .625rem;--ff-input-space: .375rem .625rem;--ff-f: var(--paragraph-40B);line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix,sh-daterange-input.small sh-form-field .prefix,sh-datepicker-input.small sh-form-field-popover .prefix,sh-datepicker-input.small sh-form-field .prefix,sh-form-field-popover.small .prefix,sh-form-field.small .prefix,sh-daterange-input.small sh-form-field-popover .suffix,sh-daterange-input.small sh-form-field .suffix,sh-datepicker-input.small sh-form-field-popover .suffix,sh-datepicker-input.small sh-form-field .suffix,sh-form-field-popover.small .suffix,sh-form-field.small .suffix{line-height:1rem}sh-daterange-input.small sh-form-field-popover .prefix>sh-icon,sh-daterange-input.small sh-form-field .prefix>sh-icon,sh-datepicker-input.small sh-form-field-popover .prefix>sh-icon,sh-datepicker-input.small sh-form-field .prefix>sh-icon,sh-form-field-popover.small .prefix>sh-icon,sh-form-field.small .prefix>sh-icon,sh-daterange-input.small sh-form-field-popover .suffix>sh-icon,sh-daterange-input.small sh-form-field .suffix>sh-icon,sh-datepicker-input.small sh-form-field-popover .suffix>sh-icon,sh-datepicker-input.small sh-form-field .suffix>sh-icon,sh-form-field-popover.small .suffix>sh-icon,sh-form-field.small .suffix>sh-icon{font-size:1rem}sh-form-field-popover,sh-form-field{--ff-s: var(--shape-2);--ff-bc: var(--base-4);--ff-boxfix-bg: var(--base-2);--ff-suffix-bg: transparent;--ff-ic: var(--base-11);--ff-bg: var(--base-1);--ff-f: var(--paragraph-30B);--ff-spinner-size: 1.25rem;--ff-spinner-thickness: .125rem;--ff-space: .5625rem .75rem;--ff-input-space: .625rem .75rem;--ff-mw: auto;--ff-bs: var(--ship-form-field-shadow, none);display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;transition:transform 125ms linear;transform:scale(1)}sh-form-field-popover:has(input[type=time]),sh-form-field:has(input[type=time]){--ff-input-space: .5625rem .75rem}sh-form-field-popover:active .input-wrap,sh-form-field:active .input-wrap{--ff-bs: 0 0 6px 0 var(--base-4)}sh-form-field-popover[readonly],sh-form-field-popover.readonly,sh-form-field-popover[disabled],sh-form-field-popover.disabled,sh-form-field-popover:has(input[disabled]),sh-form-field-popover:has(textarea[disabled]),sh-form-field[readonly],sh-form-field.readonly,sh-form-field[disabled],sh-form-field.disabled,sh-form-field:has(input[disabled]),sh-form-field:has(textarea[disabled]){pointer-events:none;-webkit-user-select:none;user-select:none;opacity:.5}sh-form-field-popover[readonly]:active,sh-form-field-popover.readonly:active,sh-form-field-popover[disabled]:active,sh-form-field-popover.disabled:active,sh-form-field-popover:has(input[disabled]):active,sh-form-field-popover:has(textarea[disabled]):active,sh-form-field[readonly]:active,sh-form-field.readonly:active,sh-form-field[disabled]:active,sh-form-field.disabled:active,sh-form-field:has(input[disabled]):active,sh-form-field:has(textarea[disabled]):active{transform:scale(1)}sh-form-field-popover.auto-width,sh-form-field.auto-width{width:initial}sh-form-field-popover.auto-width .input-wrap,sh-form-field-popover.auto-width input,sh-form-field.auto-width .input-wrap,sh-form-field.auto-width input{width:initial}sh-form-field-popover.center .input-wrap input[type=number],sh-form-field-popover.center .input-wrap input,sh-form-field.center .input-wrap input[type=number],sh-form-field.center .input-wrap input{text-align:center}sh-form-field-popover label,sh-form-field label{display:flex;align-items:center;padding-bottom:.25rem;gap:.25rem}sh-form-field-popover label sh-icon,sh-form-field label sh-icon{font-size:1rem}sh-form-field-popover .suffix,sh-form-field-popover .prefix,sh-form-field .suffix,sh-form-field .prefix{display:none;align-items:center;gap:.25rem;padding:var(--ff-space);padding-right:0;transition:background-color 125ms linear;background-color:inherit;line-height:1.25rem}sh-form-field-popover .suffix:has([boxPrefix]),sh-form-field-popover .prefix:has([boxPrefix]),sh-form-field .suffix:has([boxPrefix]),sh-form-field .prefix:has([boxPrefix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix:has([boxSuffix]),sh-form-field-popover .prefix:has([boxSuffix]),sh-form-field .suffix:has([boxSuffix]),sh-form-field .prefix:has([boxSuffix]){padding:var(--ff-space);background-color:var(--ff-boxfix-bg)}sh-form-field-popover .suffix [boxPrefix],sh-form-field-popover .suffix [boxSuffix],sh-form-field-popover .prefix [boxPrefix],sh-form-field-popover .prefix [boxSuffix],sh-form-field .suffix [boxPrefix],sh-form-field .suffix [boxSuffix],sh-form-field .prefix [boxPrefix],sh-form-field .prefix [boxSuffix]{--ff-ic: var(--base-8);display:flex;align-items:center;gap:.25rem}sh-form-field-popover .suffix:not(:empty),sh-form-field-popover .prefix:not(:empty),sh-form-field .suffix:not(:empty),sh-form-field .prefix:not(:empty){display:flex}sh-form-field-popover .suffix,sh-form-field .suffix{padding:var(--ff-space);background-color:var(--ff-suffix-bg)}sh-form-field-popover .suffix:has([textsuffix]),sh-form-field .suffix:has([textsuffix]){padding-left:0}sh-form-field-popover:has(input.ng-touched.ng-invalid),sh-form-field:has(input.ng-touched.ng-invalid){--ff-ic: var(--error-8);--ff-bc: var(--error-8);--ff-boxfix-bg: var(--error-2)}sh-form-field-popover.autosize,sh-form-field.autosize{width:min-content}sh-form-field-popover.autosize .input-wrap,sh-form-field.autosize .input-wrap{height:auto}sh-form-field-popover.autosize .input-wrap textarea,sh-form-field-popover.autosize .input-wrap input,sh-form-field.autosize .input-wrap textarea,sh-form-field.autosize .input-wrap input{field-sizing:content}sh-form-field-popover .input-wrap,sh-form-field .input-wrap{display:flex;align-items:center;border:var(--border-10);border-color:var(--ff-bc);border-radius:var(--ff-s);background:var(--ff-bg);box-shadow:var(--ff-bs);overflow:hidden;transition:border-color 125ms linear,box-shadow 95ms linear;min-width:var(--ff-mw);width:100%}sh-form-field-popover .input-wrap.is-open,sh-form-field-popover .input-wrap:has(textarea:focus-visible),sh-form-field-popover .input-wrap:has(input:focus-visible),sh-form-field .input-wrap.is-open,sh-form-field .input-wrap:has(textarea:focus-visible),sh-form-field .input-wrap:has(input:focus-visible){outline:2px solid var(--primary-8);outline-offset:2px}sh-form-field-popover .input-wrap sh-popover,sh-form-field-popover .input-wrap .input,sh-form-field .input-wrap sh-popover,sh-form-field .input-wrap .input{flex:1 0;margin:var(--ff-space)}sh-form-field-popover .input-wrap textarea,sh-form-field .input-wrap textarea{resize:none;margin:.5rem 0;color:var(--base-8);field-sizing:content}sh-form-field-popover .input-wrap:has(textarea),sh-form-field .input-wrap:has(textarea){height:auto;min-width:100%;max-width:100%}sh-form-field-popover .input-wrap sh-icon,sh-form-field .input-wrap sh-icon{color:var(--ff-ic);transition:color 125ms linear}sh-form-field-popover .input-wrap sh-icon.primary,sh-form-field .input-wrap sh-icon.primary{--ff-ic: var(--primary-8)}sh-form-field-popover .input-wrap sh-icon.accent,sh-form-field .input-wrap sh-icon.accent{--ff-ic: var(--accent-8)}sh-form-field-popover .input-wrap sh-icon.warn,sh-form-field .input-wrap sh-icon.warn{--ff-ic: var(--warn-8)}sh-form-field-popover .input-wrap sh-icon.error,sh-form-field .input-wrap sh-icon.error{--ff-ic: var(--error-8)}sh-form-field-popover .input-wrap sh-icon.success,sh-form-field .input-wrap sh-icon.success{--ff-ic: var(--success-8)}sh-form-field-popover .input-wrap sh-chip sh-icon,sh-form-field .input-wrap sh-chip sh-icon{color:var(--chip-ic)}sh-form-field-popover .input-wrap sh-spinner,sh-form-field .input-wrap sh-spinner{--spinner-size: var(--ff-spinner-size);--spinner-thickness: var(--ff-spinner-thickness)}sh-form-field-popover .input-wrap textarea,sh-form-field-popover .input-wrap input,sh-form-field .input-wrap textarea,sh-form-field .input-wrap input{appearance:none;border:0;padding:0;background:transparent;font:var(--paragraph-30B);flex:1 0;color:var(--base-8);margin:var(--ff-input-space);width:100%}sh-form-field-popover .input-wrap textarea::placeholder,sh-form-field-popover .input-wrap input::placeholder,sh-form-field .input-wrap textarea::placeholder,sh-form-field .input-wrap input::placeholder{color:var(--base-6)}sh-form-field-popover .input-wrap textarea:focus,sh-form-field-popover .input-wrap input:focus,sh-form-field .input-wrap textarea:focus,sh-form-field .input-wrap input:focus{outline:none}sh-form-field-popover .input-wrap textarea[type=number],sh-form-field-popover .input-wrap input[type=number],sh-form-field .input-wrap textarea[type=number],sh-form-field .input-wrap input[type=number]{appearance:textfield;text-align:right}sh-form-field-popover .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field-popover .input-wrap input[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap textarea[type=number]::-webkit-inner-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-outer-spin-button,sh-form-field .input-wrap input[type=number]::-webkit-inner-spin-button{display:none}sh-form-field-popover .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field-popover .input-wrap input[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap textarea[type=number]:has(+.suffix:not(:empty)),sh-form-field .input-wrap input[type=number]:has(+.suffix:not(:empty)){margin-right:0}sh-form-field-popover .input-wrap textarea[type=time],sh-form-field-popover .input-wrap input[type=time],sh-form-field .input-wrap textarea[type=time],sh-form-field .input-wrap input[type=time]{appearance:textfield;text-align:center;line-height:1rem}sh-form-field-popover .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field-popover .input-wrap input[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap textarea[type=time]::-webkit-calendar-picker-indicator,sh-form-field .input-wrap input[type=time]::-webkit-calendar-picker-indicator{appearance:none;display:none}sh-form-field-popover .helpers,sh-form-field .helpers{height:1.25rem;display:flex;align-items:center;gap:.25rem;padding-top:.25rem;width:100%}sh-form-field-popover .helpers [hint],sh-form-field .helpers [hint]{color:var(--base-9)}sh-form-field-popover .helpers [hint][suffix],sh-form-field .helpers [hint][suffix]{text-align:right;width:100%}sh-form-field-popover .helpers:has(.error-wrap:not(:empty)) .hint,sh-form-field .helpers:has(.error-wrap:not(:empty)) .hint{display:none}sh-form-field-popover:has(.error-wrap:empty+.hint:empty) .helpers,sh-form-field:has(.error-wrap:empty+.hint:empty) .helpers{height:0;padding-top:0}sh-form-field-popover:has(input.ng-touched.ng-invalid) .helpers .hint,sh-form-field:has(input.ng-touched.ng-invalid) .helpers .hint{opacity:0;visibility:hidden}sh-form-field-popover .error-wrap,sh-form-field .error-wrap{color:var(--error-8);opacity:1;transition:opacity 125ms linear;position:absolute;bottom:0;left:0;right:0;width:100%}sh-form-field-popover .hint,sh-form-field .hint{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--base-8);opacity:1;transition:visibility 125ms linear,opacity 125ms linear;visibility:visible}sh-form-field-popover .hint:empty,sh-form-field .hint:empty{opacity:0}sh-form-field-popover.error,sh-form-field.error{--ff-ic: var(--error-8)}sh-form-field-popover.warning,sh-form-field.warning{--ff-ic: var(--warn-8)}sh-form-field-popover.success,sh-form-field.success{--ff-ic: var(--success-8)}sh-form-field-popover.horizontal,sh-form-field.horizontal{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:0 1rem}sh-form-field-popover.horizontal label,sh-form-field.horizontal label{padding-bottom:0;margin-bottom:0;grid-column:1}sh-form-field-popover.horizontal .input-wrap,sh-form-field.horizontal .input-wrap{grid-column:2}sh-form-field-popover.horizontal .helpers,sh-form-field.horizontal .helpers{grid-column:2}
|
|
4
|
+
`],encapsulation:2});}}return s})(),Ae=(()=>{class s{constructor(){this.#e=T(Jr),this.isOpen=m1(false),this.closed=h1(),this.color=g1(null),this.variant=g1(null),this.size=g1(null),this.readonly=g1(false),this.hostClasses=le$1("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}#e;onClick(i){i.target.closest(".input-wrap")&&(this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus());}close(){this.closed.emit();}ngOnInit(){let i=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!i&&e!==null){let d=function(){o.style.height="auto",o.style.height=o.scrollHeight+"px";},p=function(){setTimeout(d,0);};let o=this.#e.nativeElement.querySelector("textarea");o&&(o.addEventListener("change",d),o.addEventListener("cut",p),o.addEventListener("paste",p),o.addEventListener("drop",p),o.addEventListener("keydown",p),o.focus(),o.select(),d());}}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=dw({type:s,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(e,r){e&1&&Fg("click",function(o){return r.onClick(o)}),e&2&&bC(r.hostClasses());},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ve,decls:18,vars:6,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(e,r){e&1&&(oC(ce),iC(0),Qi(1,"sh-popover",0),sm("isOpenChange",function(o){return HC(r.isOpen,o)||(r.isOpen=o),o}),Fg("closed",function(){return r.close()}),Qi(2,"div",1)(3,"div",2),iC(4,1),iC(5,2),Hl(),mg(6,"div",3),iC(7,3),iC(8,4),iC(9,5),mg(10,"div",4),iC(11,6),Hl(),iC(12,7),Hl(),Qi(13,"div",5)(14,"div",6),iC(15,8),Hl(),Qi(16,"div",7),iC(17,9),Hl()()),e&2&&(DE(),im("isOpen",r.isOpen),gg("asSheetOnMobile",true)("options",QC(5,ge)),DE(),Qg("is-open",r.isOpen()));},dependencies:[oe],styles:[be],encapsulation:2});}}return s})();export{Ae as A,Fe as F,oe as o};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {OptionsListComponent as Oe}from'./chunk-BNf0YAwH.js';import {I}from'./chunk-BPpheyQK.js';import {L}from'./chunk-M5tldLvJ.js';import {T,ab as C,e as ee$1,aw as W,U as Ue,N as Nt,C as Bu,d as dw,f as N,v,Q as Qi,F as Fg,o as oT,aP as Ul,X as XT,aQ as Wl,s as sm,H as Hl,O as Og,j as mg,P as Pg,z as gg,D as DE,i as iT,w as im,a6 as be,at as h,aZ as ee$2,l as HC,p as DD,y as TD}from'./main-TZVLLK67.js';import {F as Fe}from'./chunk-Do6_xsGi.js';import {j as jn,G as Gn,T as Tn,Z as Ze,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-BOII3Fdm.js';import'./chunk-BAbAUjHY.js';import'./chunk-birClroL.js';import'./chunk-bx0aDvCZ.js';import'./chunk-CtLFpDTP.js';import'./chunk-CxPG-KgI.js';import'./chunk-B-ryE8KW.js';import'./chunk-CDRHCSvU.js';import'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import'./chunk-BffC_BAn.js';var d=class r{#t=T(be);destinationTargetUrl=Ue(null);destinationTestSignal=Ue(null);encryptionForm=Z();temporaryBackupId=Ue(null);updateTargetUrl(e){this.destinationTargetUrl.set(e);}showErrorDialog(e){this.#t.open(h,{data:{title:$localize`Error occured`,message:e,confirmText:$localize`OK`,cancelText:void 0},closed:n=>{}});}static \u0275fac=function(n){return new(n||r)};static \u0275prov=ee$2({token:r,factory:r.\u0275fac,providedIn:"root"})};function ne(r,e){r&1&&(Qi(0,"p"),XT(1,3),Hl());}function oe(r,e){r&1&&(Qi(0,"sh-form-field")(1,"label",11),XT(2,4),Hl(),mg(3,"input",12),DD(),Hl()),r&2&&(DE(3),TD());}var ee=new jn,Z=()=>ee.group({passphrase:ee.control("")}),f=class r{#t=T(C);#e=T(d);#n=T(ee$1);#o=T(W);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=Ue(false);settings=Ue([]);hasEncryptedBackup=Nt(()=>{let e=this.#e.destinationTestSignal();return e==="testing"||typeof e=="string"?true:e?.containsEncryptedBackupFiles??true});passphraseSignal=L(this.encryptionForm.controls.passphrase.valueChanges);showEncryptionField=Ue(false);isValidConfig=Nt(()=>{if(!this.#e.destinationTargetUrl())return false;let n=this.#e.destinationTestSignal();return !(typeof n!="string"&&(n?.containsEncryptedBackupFiles??false)&&!this.passphraseSignal())});next(){let e=this.#e.destinationTargetUrl();if(!e)throw new Error("No target URL");this.creatingTemporaryBackup.set(true);let n=this.encryptionForm.value?.passphrase??null,t=[];n?t.push({Name:"--passphrase",Value:n}):t.push({Name:"--no-encryption",Value:"true"}),this.settings().forEach(i=>{let o=i.Name?.trim();o&&o!=="--"&&(o.startsWith("--")||(o=`--${o}`),t.push({Name:o,Value:i.Value??""}));}),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:e,Settings:t}},temporary:true}).pipe(Bu(()=>this.creatingTemporaryBackup.set(false))).subscribe({next:i=>{let o=i.ID;this.#e.temporaryBackupId.set(o),this.#n.navigate(["../select-config"],{relativeTo:this.#o});},error:i=>{console.error(i);}});}back(){this.#n.navigate(["../destination"],{relativeTo:this.#o});}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dw({type:r,selectors:[["app-import-destination-encryption"]],decls:14,vars:6,consts:()=>{let e;e=$localize`Advanced options`;let n;n=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let i;i=$localize`The backup does not contain encrypted files.`;let o;o=$localize`Enter backup passphrase if defined.`;let P;return P=$localize`Password`,[e,n,t,i,P,[3,"submit","formGroup"],["title",""],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],["for","password"],["type","password","id","password","autocomplete","disabled","placeholder",o,"formControlName","passphrase"]]},template:function(n,t){n&1&&(Qi(0,"form",5),Fg("submit",function(){return t.next()}),oT(1,ne,2,0,"p"),oT(2,oe,4,0,"sh-form-field"),Qi(3,"sh-toggle-card"),Ul(4,6),XT(5,0),Wl(),Qi(6,"app-options-list",7),sm("optionsChange",function(o){return HC(t.settings,o)||(t.settings=o),o}),Hl()(),Qi(7,"div",8)(8,"button",9),Fg("click",function(){return t.back()}),Og(9,1),mg(10,"sh-icon"),Pg(),Hl(),Qi(11,"button",10),Og(12,2),mg(13,"sh-icon"),Pg(),Hl()()()),n&2&&(gg("formGroup",t.encryptionForm),DE(),iT(t.hasEncryptedBackup()?-1:1),DE(),iT(t.hasEncryptedBackup()||t.showEncryptionField()?2:-1),DE(4),im("options",t.settings),gg("hasFreeTextSettings",true),DE(5),gg("disabled",!t.isValidConfig()));},dependencies:[Gn,Tn,Ze,Rn,Pn,gn,hn,Fe,N,v,I,Oe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"]})};var chunkAFBFS2VY=/*#__PURE__*/Object.freeze({__proto__:null,createEncryptionForm:Z,default:f});export{chunkAFBFS2VY as c,d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {L as L$1}from'./chunk-M5tldLvJ.js';import {T,ab as C,aG as pt,ai as m,aj as l,U as Ue,G as Ga,d as dw,f as N,v,a0 as de,k as gT,Q as Qi,X as XT,H as Hl,a1 as cT,s as sm,q as PC,F as Fg,S as Sd,x as xd,D as DE,a2 as lT,w as im,z as gg,a3 as QC,E as nm,aa as Gl,l as HC,o as oT,j as mg,n as nC,O as Og,P as Pg,aB as rm,i as iT,ar as Wp,a9 as UC,ap as sT}from'./main-TZVLLK67.js';var q=()=>({maxWidth:"700px",width:"100%"});function H(s,i){if(s&1&&(Qi(0,"a",9)(1,"sh-icon"),PC(2,"link"),Hl()()),s&2){let e=nC().$implicit;gg("href",UC(e.Url),Wp);}}function K(s,i){if(s&1){let e=gT();Qi(0,"div",2)(1,"h4"),PC(2),oT(3,H,3,2,"a",9),Hl(),Qi(4,"p"),PC(5),mg(6,"br"),Qi(7,"i"),PC(8),Hl()(),Qi(9,"div",10)(10,"button",11),Fg("click",function(){let o=Sd(e).$implicit,p=nC();return xd(p.openLicense(o))}),Og(11,1),mg(12,"sh-icon"),Pg(),Hl()()();}if(s&2){let e=i.$implicit;DE(2),rm(" ",e.Title," - ",e.data?.license," "),DE(),iT(e.Url?3:-1),DE(2),Gl(" ",e.data?.description," "),DE(3),nm(e.data?.notes);}}var L=class s{#e=T(C);licenses=L$1(this.#e.getApiV1Licenses().pipe(pt(i=>i.map(e=>m(l({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=Ue(false);dialogLicense=Ue(null);#i=Ga(()=>{this.dialogLicense()&&this.dialogIsOpen.set(true);});openLicense(i){this.dialogLicense.set(i);}closeLicense(){this.dialogIsOpen.set(false),this.dialogLicense.set(null);}breakIntoLines(i){let e=i.split(`
|
|
2
|
+
`),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=dw({type:s,selectors:[["app-libraries"]],decls:14,vars:5,consts:()=>{let i;i=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON:`,[i,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["shButton","","type","button",3,"click"],[3,"href"],[1,"actions"],["shButton","",3,"click"]]},template:function(e,n){if(e&1){let o=gT();Qi(0,"h3"),XT(1,0),Hl(),cT(2,K,13,5,"div",2,sT),Qi(4,"sh-dialog",3),sm("isOpenChange",function(_){return Sd(o),HC(n.dialogIsOpen,_)||(n.dialogIsOpen=_),xd(_)}),Qi(5,"header",4)(6,"h3"),PC(7),Hl()(),Qi(8,"div",5)(9,"div",6),PC(10),Hl()(),Qi(11,"footer",7)(12,"button",8),Fg("click",function(){return Sd(o),n.dialogLicense.set(null),xd(n.dialogIsOpen.set(false))}),PC(13,"Close"),Hl()()();}if(e&2){DE(2),lT(n.licenses()),DE(2),im("isOpen",n.dialogIsOpen),gg("options",QC(4,q)),DE(3),nm(n.dialogLicense()?.Title);let o=n.dialogLicense()?.License??"";DE(3),Gl(" ",o," ");}},dependencies:[N,v,de],styles:["[_nghost-%COMP%]{display:block;padding:0 2.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-4)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-1);color:var(--base-12);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-4)}"]})};export{L as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {w}from'./chunk-CJRbWZfg.js';import {I}from'./chunk-BPpheyQK.js';import {e as ee}from'./chunk-BMGXb3gX.js';import'./chunk-BqjWEFHw.js';import'./chunk-BS8yAz3P.js';import'./chunk-CxPG-KgI.js';import'./chunk-B-ryE8KW.js';import'./chunk-5zEiKCqR.js';import {c as c$1}from'./chunk-CMs999gl.js';import {D}from'./chunk-CdZVal1F.js';import {T,aw as W,a5 as g,U as Ue,aG as pt$1,N as Nt$1,d as dw,_ as _t$1,f as N,v,aH as m,aI as c,aJ as ci,k as gT,j as mg,Q as Qi,O as Og,P as Pg,H as Hl,ak as cm,o as oT,s as sm,X as XT,D as DE,al as BC,i as iT,w as im,S as Sd,l as HC,x as xd,ab as C,b as g1,aK as pb,ay as $u,C as Bu,aL as hi,a1 as cT,a2 as lT,t as tC,q as PC,aM as tb,n as nC,ao as $C,aa as Gl,aN as ob,z as gg,aj as l,ap as sT,F as Fg,E as nm,aB as rm,I as Qg,aO as om,aP as Ul,aQ as Wl,aR as rb,au as Lg,av as eC,aS as ib,aT as ay}from'./main-TZVLLK67.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import {L,$}from'./chunk-M5tldLvJ.js';import {d}from'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import'./chunk-Do6_xsGi.js';import'./chunk-BOII3Fdm.js';import'./chunk-BffC_BAn.js';function Dn(n,t){n&1&&mg(0,"sh-progress-bar",58);}function Pn(n,t){n&1&&mg(0,"div",61);}function Rn(n,t){n&1&&mg(0,"div",61);}function In(n,t){n&1&&mg(0,"div",62);}function $n(n,t){n&1&&mg(0,"div",63);}function Mn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,15),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,16),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,17),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,18),tb(15,"durationFormat"),Hl(),Qi(16,"p"),XT(17,19),Hl(),mg(18,"sh-divider"),Qi(19,"p"),XT(20,20),Hl(),Qi(21,"p"),XT(22,21),Hl()()(),Qi(23,"details",72)(24,"summary"),Og(25,22),mg(26,"sh-icon"),Qi(27,"div",74),mg(28,"sh-icon",66),Hl(),Pg(),Hl(),Qi(29,"div",75)(30,"p"),XT(31,23),tb(32,"date"),Hl(),Qi(33,"p"),XT(34,24),tb(35,"date"),Hl(),Qi(36,"p"),XT(37,25),tb(38,"durationFormat"),Hl(),mg(39,"sh-divider"),Qi(40,"p"),XT(41,26),tb(42,"bytes"),Hl(),Qi(43,"p"),XT(44,27),tb(45,"bytes"),Hl(),Qi(46,"p"),XT(47,28),tb(48,"bytes"),Hl(),mg(49,"sh-divider"),Qi(50,"p"),XT(51,29),Hl(),Qi(52,"p"),XT(53,30),Hl()()()),n&2){let e=nC(2).$implicit;DE(9),Lg(ob(9,17,e.data?.TestResults?.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,20,e.data?.TestResults?.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,23,e.data?.TestResults?.Duration)),eC(14),DE(2),Lg(e.data?.TestResults?.VerificationsActualLength),eC(17),DE(3),Lg(e.data?.TestResults?.WarningsActualLength),eC(20),DE(2),Lg(e.data?.TestResults?.ErrorsActualLength),eC(22),DE(10),Lg(ob(32,25,e.data?.CompactResults?.BeginTime,"medium")),eC(31),DE(3),Lg(ob(35,28,e.data?.CompactResults?.EndTime,"medium")),eC(34),DE(3),Lg(rb(38,31,e.data?.CompactResults?.Duration)),eC(37),DE(4),Lg(e.data?.CompactResults?.DeletedFileCount)(ib(42,33,e.data?.CompactResults?.DeletedFileSize,true,true)),eC(41),DE(3),Lg(e.data?.CompactResults?.DownloadedFileCount)(ib(45,37,e.data?.CompactResults?.DownloadedFileSize,true,true)),eC(44),DE(3),Lg(e.data?.CompactResults?.UploadedFileCount)(ib(48,41,e.data?.CompactResults?.UploadedFileSize,true,true)),eC(47),DE(3),Lg(e.data?.CompactResults?.WarningsActualLength),eC(51),DE(2),Lg(e.data?.CompactResults?.ErrorsActualLength),eC(53);}}function fn(n,t){n&1&&(Qi(0,"p"),PC(1,"No messages"),Hl());}function hn(n,t){n&1&&(Og(0,43,1),mg(1,"sh-icon"),Pg());}function yn(n,t){n&1&&(Og(0,43,2),mg(1,"sh-icon"),Pg());}function vn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,43),oT(5,hn,2,0,"sh-icon")(6,yn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Bn(n,t){n&1&&(Qi(0,"p"),PC(1,"No warnings"),Hl());}function xn(n,t){n&1&&(Og(0,44,1),mg(1,"sh-icon"),Pg());}function bn(n,t){n&1&&(Og(0,44,2),mg(1,"sh-icon"),Pg());}function kn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,44),oT(5,xn,2,0,"sh-icon")(6,bn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Kn(n,t){n&1&&(Qi(0,"p"),PC(1,"No errors"),Hl());}function Un(n,t){n&1&&(Og(0,45,1),mg(1,"sh-icon"),Pg());}function wn(n,t){n&1&&(Og(0,45,2),mg(1,"sh-icon"),Pg());}function Jn(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(5);return xd(L.copyToClipboard(F,c,c))}),Og(4,45),oT(5,Un,2,0,"sh-icon")(6,wn,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(5);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function Xn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,31),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,32),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,33),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,34),tb(15,"durationFormat"),Hl(),mg(16,"sh-divider"),Qi(17,"p"),XT(18,35),tb(19,"bytes"),Hl(),Qi(20,"p"),XT(21,36),Hl(),Qi(22,"p"),XT(23,37),Hl(),Qi(24,"p"),XT(25,38),Hl(),Qi(26,"p"),XT(27,39),Hl(),mg(28,"sh-divider"),Qi(29,"details",78)(30,"summary"),Og(31,40),mg(32,"sh-icon"),Qi(33,"div",74),mg(34,"sh-icon",66),Hl(),Pg(),Hl(),Qi(35,"div",75),oT(36,fn,2,0,"p"),cT(37,vn,7,2,"div",76,sT),Hl()(),Qi(39,"details",79)(40,"summary"),Og(41,41),mg(42,"sh-icon"),Qi(43,"div",74),mg(44,"sh-icon",66),Hl(),Pg(),Hl(),Qi(45,"div",75),oT(46,Bn,2,0,"p"),cT(47,kn,7,2,"div",76,sT),Hl()(),Qi(49,"details",80)(50,"summary"),Og(51,42),mg(52,"sh-icon"),Qi(53,"div",74),mg(54,"sh-icon",66),Hl(),Pg(),Hl(),Qi(55,"div",75),oT(56,Kn,2,0,"p"),cT(57,Jn,7,2,"div",76,sT),Hl()(),mg(59,"sh-divider"),Hl()()),n&2){let e=t.$implicit;DE(5),Lg(e.Destination),eC(2),DE(4),Lg(ob(9,16,e.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,19,e.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,22,e.Duration)),eC(14),DE(4),Lg(e.CopiedFileCount)(ib(19,24,e.CopiedFileSize,true,true)),eC(18),DE(2),Lg(e.DeletedFileCount),eC(21),DE(2),Lg(e.RenamedFileCount),eC(23),DE(2),Lg(e.VerifiedFileCount),eC(25),DE(2),Lg(e.FailedVerificationCount),eC(27),DE(7),Lg(e.MessagesActualLength),eC(31),DE(2),iT(e.Messages?.length===0?36:-1),DE(),lT(e.Messages),DE(7),Lg(e.WarningsActualLength),eC(41),DE(2),iT(e.Warnings?.length===0?46:-1),DE(),lT(e.Warnings),DE(7),Lg(e.ErrorsActualLength),eC(51),DE(2),iT(e.Errors?.length===0?56:-1),DE(),lT(e.Errors);}}function zn(n,t){if(n&1&&cT(0,Xn,60,28,"details",72,sT),n&2){let e=nC(2).$implicit;lT(e.data?.RemoteSynchronizationResults);}}function Vn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,46),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75)(7,"p"),XT(8,47),tb(9,"date"),Hl(),Qi(10,"p"),XT(11,48),tb(12,"date"),Hl(),Qi(13,"p"),XT(14,49),tb(15,"durationFormat"),Hl(),mg(16,"sh-divider"),Qi(17,"p"),XT(18,50),Hl(),Qi(19,"p"),XT(20,51),Hl(),Qi(21,"p"),XT(22,52),Hl()()()),n&2){let e=nC(2).$implicit;DE(9),Lg(ob(9,6,e.data?.LockResults?.BeginTime,"medium")),eC(8),DE(3),Lg(ob(12,9,e.data?.LockResults?.EndTime,"medium")),eC(11),DE(3),Lg(rb(15,12,e.data?.LockResults?.Duration)),eC(14),DE(3),Lg(e.data?.LockResults?.VolumesRead),eC(18),DE(2),Lg(e.data?.LockResults?.VolumesUpdated),eC(20),DE(2),Lg(e.data?.LockResults?.ParsedResult),eC(22);}}function Hn(n,t){if(n&1&&(Qi(0,"code"),PC(1),tb(2,"json"),Hl()),n&2){let e=t.$implicit;DE(),nm(rb(2,1,e));}}function Wn(n,t){if(n&1&&(Qi(0,"details",72)(1,"summary"),Og(2,53),mg(3,"sh-icon"),Qi(4,"div",74),mg(5,"sh-icon",66),Hl(),Pg(),Hl(),Qi(6,"div",75),cT(7,Hn,3,3,"code",null,sT),Hl()()),n&2){let e=nC(2).$implicit;DE(5),Lg(e.data.VerificationsActualLength),eC(2),DE(2),lT(e.data.Verifications);}}function jn(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function qn(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function Qn(n,t){n&1&&(Ul(0),Og(1,54),mg(2,"sh-icon"),Pg(),Wl());}function Yn(n,t){n&1&&(Ul(0),Og(1,55),mg(2,"sh-icon"),Pg(),Wl());}function Zn(n,t){n&1&&(Ul(0),Og(1,56),mg(2,"sh-icon"),Pg(),Wl());}function et(n,t){if(n&1){let e=gT();Qi(0,"button",82),Fg("click",function(){Sd(e),nC();let F=$C(0),c=nC(3);return xd(c.toggleWarningSuppression(F.MessageId))}),oT(1,Qn,3,0,"ng-container")(2,Yn,3,0,"ng-container")(3,Zn,3,0,"ng-container"),Hl();}if(n&2){nC();let e=$C(0),o=nC(3),F=o.isWarningSuppressed(e.MessageId);gg("disabled",o.isSuppressingWarning()),DE(),iT(o.isSuppressingWarning()?1:F?2:3);}}function nt(n,t){if(n&1){let e=gT();cm(0),Qi(1,"div",76)(2,"code"),PC(3),Hl(),Qi(4,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(3);return xd(L.copyToClipboard(F,c,c))}),PC(5," Copy "),oT(6,jn,2,0,"sh-icon")(7,qn,2,0,"sh-icon"),Hl(),oT(8,et,4,2,"button",81),Hl();}if(n&2){let e=t.$implicit,o=nC(3),F=BC(o.parseWarning(e));DE(3),nm(e),DE(3),iT(o.copied()==e?6:7),DE(2),iT(F?.MessageId?8:-1);}}function tt(n,t){n&1&&(Qi(0,"p"),PC(1,"No errors"),Hl());}function it(n,t){n&1&&(Og(0,57,1),mg(1,"sh-icon"),Pg());}function ot(n,t){n&1&&(Og(0,57,2),mg(1,"sh-icon"),Pg());}function _t(n,t){if(n&1){let e=gT();Qi(0,"div",76)(1,"code"),PC(2),Hl(),Qi(3,"button",77),Fg("click",function(F){let c=Sd(e).$implicit,L=nC(3);return xd(L.copyToClipboard(F,c,c))}),Og(4,57),oT(5,it,2,0,"sh-icon")(6,ot,2,0,"sh-icon"),Pg(),Hl()();}if(n&2){let e=t.$implicit,o=nC(3);DE(2),nm(e),DE(3),iT(o.copied()==e?5:6);}}function at(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"check"),Hl());}function Ft(n,t){n&1&&(Qi(0,"sh-icon"),PC(1,"copy"),Hl());}function rt(n,t){if(n&1){let e=gT();Qi(0,"section",67)(1,"sh-toggle-card",68),Ul(2,69),Qi(3,"h3"),XT(4,0),Hl(),Wl(),Ul(5,70),Qi(6,"p"),XT(7,1),tb(8,"date"),Hl(),Qi(9,"p"),XT(10,2),tb(11,"date"),Hl(),Qi(12,"p"),XT(13,3),tb(14,"durationFormat"),Hl(),Wl(),Hl(),Qi(15,"sh-toggle-card",68),Ul(16,69),Qi(17,"h3"),XT(18,4),Hl(),Wl(),Ul(19,70),Qi(20,"p"),XT(21,5),tb(22,"bytes"),Hl(),Qi(23,"p"),XT(24,6),tb(25,"bytes"),Hl(),Qi(26,"p"),XT(27,7),tb(28,"bytes"),Hl(),Qi(29,"p"),XT(30,8),tb(31,"bytes"),Hl(),Qi(32,"p"),XT(33,9),Hl(),Qi(34,"p"),XT(35,10),Hl(),Qi(36,"p"),XT(37,11),Hl(),Wl(),Hl(),Qi(38,"div",71),mg(39,"sh-divider"),oT(40,Mn,54,45),oT(41,zn,2,0),oT(42,Vn,23,14,"details",72),oT(43,Wn,9,1,"details",72),Qi(44,"details",73)(45,"summary"),Og(46,12),mg(47,"sh-icon"),Qi(48,"div",74),mg(49,"sh-icon",66),Hl(),Pg(),Hl(),Qi(50,"div",75),cT(51,nt,9,4,"div",76,sT),Hl()(),Qi(53,"details",73)(54,"summary"),Og(55,13),mg(56,"sh-icon"),Qi(57,"div",74),mg(58,"sh-icon",66),Hl(),Pg(),Hl(),Qi(59,"div",75),oT(60,tt,2,0,"p"),cT(61,_t,7,2,"div",76,sT),Hl()(),mg(63,"sh-divider"),Qi(64,"details")(65,"summary"),Og(66,14),mg(67,"sh-icon"),Qi(68,"div",74),mg(69,"sh-icon",66),Hl(),Pg(),Hl(),Qi(70,"code")(71,"button",77),Fg("click",function(F){Sd(e);let c=nC().$implicit,L=nC();return xd(L.copyToClipboard(F,L.stringify(c.data),"all"))}),PC(72," Copy "),oT(73,at,2,0,"sh-icon")(74,Ft,2,0,"sh-icon"),Hl(),PC(75),tb(76,"json"),Hl()()()();}if(n&2){let e=nC().$implicit,o=nC();DE(),gg("disableToggle",true),DE(7),Lg(ob(8,27,e.data?.BeginTime,"medium")),eC(7),DE(3),Lg(ob(11,30,e.data?.EndTime,"medium")),eC(10),DE(3),Lg(rb(14,33,e.data?.Duration)),eC(13),DE(),gg("disableToggle",true),DE(7),Lg(e.data?.ExaminedFiles)(ib(22,35,e.data?.SizeOfExaminedFiles,true,true)),eC(21),DE(3),Lg(e.data?.OpenedFiles)(ib(25,39,e.data?.SizeOfOpenedFiles,true,true)),eC(24),DE(3),Lg(e.data?.AddedFiles)(ib(28,43,e.data?.SizeOfAddedFiles,true,true)),eC(27),DE(3),Lg(e.data?.ModifiedFiles)(ib(31,47,e.data?.SizeOfModifiedFiles,true,true)),eC(30),DE(2),Lg(e.data?.DeletedFiles),eC(33),DE(2),Lg(e.data?.TooLargeFiles),eC(35),DE(2),Lg(e.data?.FilesWithError),eC(37),DE(3),iT(e.data?.TestResults?40:-1),DE(),iT(e.data?.RemoteSynchronizationResults?41:-1),DE(),iT(e.data?.LockResults?42:-1),DE(),iT(e.data?.MainOperation==="Test"?43:-1),DE(),gg("open",e.id===o.openEntry()&&o.openSection()==="warnings"),DE(5),Lg(e.data?.WarningsActualLength),eC(46),DE(2),lT(e.data?.Warnings),DE(2),gg("open",e.id===o.openEntry()&&o.openSection()==="errors"),DE(5),Lg(e.data?.ErrorsActualLength),eC(55),DE(2),iT(e.data?.Errors?.length===0?60:-1),DE(),lT(e.data?.Errors),DE(12),iT(o.copied()=="all"?73:74),DE(2),Gl(" ",rb(76,51,e.data)," ");}}function lt(n,t){if(n&1){let e=gT();Qi(0,"article",59)(1,"header",60),Fg("click",function(){let F=Sd(e).$implicit,c=nC();return xd(c.toggleOpenEntry(F))}),oT(2,Pn,1,0,"div",61)(3,Rn,1,0,"div",61)(4,In,1,0,"div",62)(5,$n,1,0,"div",63),Qi(6,"h3"),PC(7),tb(8,"date"),Hl(),Qi(9,"p"),PC(10),Hl(),mg(11,"div",64),Qi(12,"div",65)(13,"sh-icon",66),PC(14,"caret-down"),Hl()()(),oT(15,rt,77,53,"section",67),Hl();}if(n&2){let e=t.$implicit,o=nC(),F=e.data?.ParsedResult||"Unknown";DE(2),iT(F=="Fatal"?2:F=="Error"?3:F=="Warning"?4:5),DE(5),nm(ob(8,7,e.timestamp,"medium")),DE(3),rm(" ",e.data?.MainOperation," ",o.getLocalizedSummary(e)," "),DE(3),Qg("open",e.id===o.openEntry()),DE(2),iT(e.id===o.openEntry()?15:-1);}}var De=class n{#e=T(C);#n=T(g);#t=new m;#i=new c;backupId=g1.required();isSuppressingWarning=Ue(false);copied=Ue(null);backupResource=pb({params:()=>({id:this.backupId()}),loader:({params:t})=>ay(this.#e.getApiV1BackupById({id:t.id}))});suppressedWarningIds=Nt$1(()=>{let t=this.backupResource.value();if(!t?.Backup?.Settings)return new Set;let e=t.Backup.Settings.find(o=>o.Name==="--suppress-warnings");return e?.Value?new Set(e.Value.split(",").map(o=>o.trim()).filter(Boolean)):new Set});openEntry=Ue(null);openSection=Ue(null);pagination=Ue({offset:0,pagesize:100});resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdLog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map(o=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,type:o.Type,data:JSON.parse(o.Message),exception:JSON.stringify(o.Exception)==="{}"?null:o.Exception}))))});getLocalizedSummary(t){let e=t.data?.ErrorsActualLength??0,o=t.data?.WarningsActualLength??0,F=[];if(t.data?.MainOperation=="Backup"){if(t.data?.Duration){let c=this.#i.transform(t.data?.Duration,true);c.startsWith("0h ")&&(c=c.slice(3)),c.startsWith("0m ")&&(c=c.slice(3)),F.push($localize`took ${c}`);}t.data?.BackendStatistics?.BytesUploaded&&F.push($localize`uploaded ${this.#t.transform(t.data?.BackendStatistics?.BytesUploaded)}`),t.data?.BackendStatistics?.KnownFileSize&&F.push($localize`backup size ${this.#t.transform(t.data?.BackendStatistics?.KnownFileSize)}`);}return e!==0&&F.push($localize`:@@errorCount:${e} error${e===1?"":"s"}`),o!==0&&F.push($localize`:@@warningCount:${o} warning${o===1?"":"s"}`),F.length===0?"":`(${F.join(", ")})`}toggleOpenEntry(t){let e=t.id;if(this.openEntry()===e){this.openEntry.set(null),this.openSection.set(null);return}let o=t.data?.ErrorsActualLength??0,F=t.data?.WarningsActualLength??0;o>0?this.openSection.set("errors"):F>0?this.openSection.set("warnings"):this.openSection.set(null),this.openEntry.set(e);}parseWarning(t){let e=t.match(/^(.*?) - \[(.*?)-(.*?)-(.*?)\]: (.*)$/);if(!e)return null;let[,o,F,c,L,G]=e;return {Timestamp:o,LogLevel:F,Source:c,MessageId:L,Message:G}}isWarningSuppressed(t){return this.suppressedWarningIds().has(t)}toggleWarningSuppression(t){let e=this.backupId();!e||!t||(this.isSuppressingWarning.set(true),this.#e.getApiV1BackupById({id:e}).pipe($u(o=>{let F=o.Backup?.Settings??[],c=F.findIndex(N=>N.Name==="--suppress-warnings"),L=this.isWarningSuppressed(t),G="";if(c>=0){let v=(F[c].Value??"").split(",").map(U=>U.trim()).filter(Boolean);L?v=v.filter(U=>U!==t):v.includes(t)||v.push(t),G=v.join(",");}else L||(G=t);let k=F.map(N=>({Name:N.Name,Value:N.Value,Filter:N.Filter}));return c>=0?G===""?k.splice(c,1):k[c]={Name:"--suppress-warnings",Value:G,Filter:null}:G!==""&&k.push({Name:"--suppress-warnings",Value:G,Filter:null}),this.#e.putApiV1BackupById({id:e,requestBody:{Backup:{Name:o.Backup?.Name,Description:o.Backup?.Description,DBPath:o.Backup?.DBPath,Tags:o.Backup?.Tags??[],TargetURL:o.Backup?.TargetURL,ConnectionStringID:o.Backup?.ConnectionStringID,Sources:o.Backup?.Sources??[],Settings:k,Filters:o.Backup?.Filters?.map(N=>({Expression:N.Expression,Include:N.Include,Order:N.Order})),Metadata:o.Backup?.Metadata??{},AdditionalTargetURLs:o.Backup?.AdditionalTargetURLs?.map(N=>({TargetUrl:N.TargetUrl,UrlKey:N.UrlKey,Mode:N.Mode,Interval:N.Interval,ConnectionStringID:N.ConnectionStringID,Options:N.Options}))},Schedule:o.Schedule?{Repeat:o.Schedule.Repeat,Time:o.Schedule.Time,AllowedDays:o.Schedule.AllowedDays}:void 0}})}),Bu(()=>this.isSuppressingWarning.set(false))).subscribe({next:()=>{this.#n.getBackups(true),this.backupResource.reload();},error:o=>{console.error("Failed to toggle warning suppression:",o);}}));}copyToClipboard(t,e,o){t.stopPropagation(),navigator.clipboard.writeText(e),this.copied.set(o),setTimeout(()=>{this.copied.set(null);},2e3);}stringify(t){return JSON.stringify(t,null,2)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;t=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let o;o=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let F;F=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let c;c=$localize`Source files`;let L;L=$localize` Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let G;G=$localize` Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let k;k=$localize` Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let N;N=$localize` Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let v;v=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let U;U=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let A;A=$localize`${"\uFFFD#47\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#48\uFFFD"}:START_TAG_DIV:${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#47\uFFFD|\uFFFD/#49\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_DIV:`,A=tC(A);let ne;ne=$localize`${"\uFFFD#56\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#57\uFFFD"}:START_TAG_DIV:${"\uFFFD#58\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#56\uFFFD|\uFFFD/#58\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#57\uFFFD"}:CLOSE_TAG_DIV:`,ne=tC(ne);let te;te=$localize`${"\uFFFD#67\uFFFD"}:START_TAG_SH_ICON:notepad${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON: Complete log ${"\uFFFD#68\uFFFD"}:START_TAG_DIV:${"\uFFFD#69\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#67\uFFFD|\uFFFD/#69\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#68\uFFFD"}:CLOSE_TAG_DIV:`,te=tC(te);let ie;ie=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ie=tC(ie);let Ie;Ie=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let $e;$e=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let fe;fe=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let he;he=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ye;ye=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let oe;oe=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:file-archive${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON: Compact phase ${"\uFFFD#27\uFFFD"}:START_TAG_DIV:${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#26\uFFFD|\uFFFD/#28\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_DIV:`,oe=tC(oe);let ve;ve=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Be;Be=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let xe;xe=$localize` Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let be;be=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let ke;ke=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ke;Ke=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ue;Ue=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let we;we=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let _e;_e=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:arrows-clockwise${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Secondary destination: ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,_e=tC(_e);let Je;Je=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ze;ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ve;Ve=$localize` Files copied: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let He;He=$localize`Files deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let We;We=$localize`Files renamed: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let je;je=$localize`Files verified: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Failed verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ae;ae=$localize`${"\uFFFD#32\uFFFD"}:START_TAG_SH_ICON:info${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON: Messages ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#33\uFFFD"}:START_TAG_DIV:${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#32\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#33\uFFFD"}:CLOSE_TAG_DIV:`,ae=tC(ae);let Fe;Fe=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#43\uFFFD"}:START_TAG_DIV:${"\uFFFD#44\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#42\uFFFD|\uFFFD/#44\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_DIV:`,Fe=tC(Fe);let re;re=$localize`${"\uFFFD#52\uFFFD"}:START_TAG_SH_ICON:warning${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#53\uFFFD"}:START_TAG_DIV:${"\uFFFD#54\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#52\uFFFD|\uFFFD/#54\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#53\uFFFD"}:CLOSE_TAG_DIV:`,re=tC(re);let le;le=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,le=tC(le);let se;se=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,se=tC(se);let ce;ce=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,ce=tC(ce);let ue;ue=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:lock${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Lock results ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ue=tC(ue);let Qe;Qe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ye;Ye=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ze;Ze=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let en;en=$localize`Volumes read: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let nn;nn=$localize`Volumes updated: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tn;tn=$localize`Parsed result: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let de;de=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,de=tC(de);let on;on=$localize` Updating ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _n;_n=$localize` Un-suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let an;an=$localize` Suppress ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:bell-slash${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Ee;return Ee=$localize` Copy ${"\uFFFD*5:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*5:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*6:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*6:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Ee=tC(Ee),[t,e,o,F,c,L,G,k,N,v,U,Q,A,ne,te,ie,Ie,$e,Me,fe,he,ye,oe,ve,Be,xe,be,ke,Ke,Ue,we,_e,Je,Xe,ze,Ve,He,We,je,qe,ae,Fe,re,le,se,ce,ue,Qe,Ye,Ze,en,nn,tn,de,on,_n,an,Ee,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disableToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],["name","details",3,"open"],[1,"actions"],[1,"content"],[1,"warning-item"],["shButton","",1,"small",3,"click"],["name","details-messages"],["name","details-warnings"],["name","details-errors"],["shButton","",1,"small",3,"disabled"],["shButton","",1,"small",3,"click","disabled"]]},template:function(e,o){e&1&&(oT(0,Dn,1,0,"sh-progress-bar",58),cT(1,lt,16,10,"article",59,sT)),e&2&&(iT(o.resource.isLoading()?0:-1),DE(),lT(o.resource.value()));},dependencies:[I,c$1,d,v,N,m,ci,c,hi],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(0)}details[open][_ngcontent-%COMP%] > summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] sh-icon.toggle-indicator[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-8);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-8)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-8)}.warning-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}.warning-item[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin:0;white-space:pre-wrap;word-break:break-word}.warning-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-start;white-space:nowrap}"]})};function st(n,t){n&1&&mg(0,"sh-progress-bar",1);}function ct(n,t){n&1&&(Og(0,0,1),mg(1,"sh-icon"),Pg());}function ut(n,t){n&1&&(Og(0,0,2),mg(1,"sh-icon"),Pg());}function dt(n,t){if(n&1){let e=gT();Qi(0,"section",6)(1,"button",7),Fg("click",function(){Sd(e);let F=nC(),c=F.$implicit,L=F.$index,G=nC();return xd(G.copyToClipboard(c.data,L))}),Og(2,0),oT(3,ct,2,0)(4,ut,2,0),Pg(),Hl(),Qi(5,"code"),PC(6),tb(7,"json"),Hl()();}if(n&2){let e=nC(),o=e.$implicit,F=e.$index,c=nC();DE(),Qg("success",c.copiedFromIndex()===F),DE(2),iT(c.copiedFromIndex()===F?3:4),DE(3),nm(rb(7,4,o.data));}}function Et(n,t){if(n&1){let e=gT();Qi(0,"article",2)(1,"header",3),Fg("click",function(){let F=Sd(e).$implicit,c=nC();return xd(c.toggleOpenEntry(F.id))}),Qi(2,"h3"),PC(3),tb(4,"date"),Hl(),Qi(5,"div",4)(6,"sh-icon",5),PC(7,"caret-down"),Hl()()(),oT(8,dt,8,6,"section",6),Hl();}if(n&2){let e=t.$implicit,o=nC();DE(3),om("",ob(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),DE(3),Qg("open",e.id===o.openEntry()),DE(2),iT(e.id===o.openEntry()?8:-1);}}var Pe=class n{#e=T(C);backupId=g1.required();openEntry=Ue(null);pagination=Ue({offset:0,pagesize:100});copiedFromIndex=Ue(null);resource=$({params:()=>l({id:this.backupId()},this.pagination()),stream:({params:t})=>this.#e.getApiV1BackupByIdRemotelog({id:t.id,pagesize:100}).pipe(pt$1(e=>e.map((o,F)=>({id:o.ID,operationId:o.OperationID,timestamp:o.Timestamp*1e3,operation:o.Operation,path:o.Path,data:typeof o.Data=="string"?JSON.parse(o.Data):null}))))});toggleOpenEntry(t){if(this.openEntry()===t){this.openEntry.set(null);return}this.openEntry.set(t);}copyToClipboard(t,e){let o=JSON.stringify(t,null,2);navigator.clipboard.writeText(o),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null);},3e3);}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,t=tC(t),[t,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["shButton","",1,"small",3,"click"]]},template:function(e,o){e&1&&(oT(0,st,1,0,"sh-progress-bar",1),cT(1,Et,9,9,"article",2,sT)),e&2&&(iT(o.resource.isLoading()?0:-1),DE(),lT(o.resource.value()));},dependencies:[d,N,hi,ci],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"]})};function Ct(n,t){if(n&1&&(PC(0," - "),Ul(1),XT(2,6),Wl(),PC(3),tb(4,"durationFormat")),n&2){nC(2);let e=$C(6);DE(3),Gl(" ",rb(4,1,e.Backup.Metadata?.LastBackupDuration)," ");}}function pt(n,t){n&1&&(Ul(0),XT(1,7),Wl());}function Tt(n,t){if(n&1&&(PC(0),tb(1,"bytes")),n&2){nC(2);let e=$C(6);Gl(" ",rb(1,1,e.Backup.Metadata?.SourceFilesSize)," ");}}function gt(n,t){n&1&&(Ul(0),XT(1,8),Wl());}function St(n,t){if(n&1&&(PC(0),tb(1,"bytes")),n&2){nC(2);let e=$C(6);Gl(" ",rb(1,1,e.Backup.Metadata?.TargetFilesSize)," ");}}function Ot(n,t){n&1&&(Ul(0),XT(1,9),Wl());}function Lt(n,t){if(n&1&&(Qi(0,"sh-chip",20),XT(1,10),Hl()),n&2){nC(2);let e=$C(6);DE(),Lg(e.Backup.Metadata?.BackupListCount),eC(1);}}function Nt(n,t){n&1&&(Qi(0,"sh-chip",21),XT(1,11),Hl());}function mt(n,t){if(n&1&&(Qi(0,"div",14)(1,"div",19)(2,"h3"),PC(3),Qi(4,"sh-icon"),PC(5,"database"),Hl()(),Qi(6,"p")(7,"span"),XT(8,3),Hl(),PC(9),tb(10,"date"),oT(11,Ct,5,3)(12,pt,2,0,"ng-container"),Hl(),Qi(13,"p")(14,"span"),XT(15,4),Hl(),oT(16,Tt,2,3)(17,gt,2,0,"ng-container"),Hl(),Qi(18,"p")(19,"span"),XT(20,5),Hl(),oT(21,St,2,3)(22,Ot,2,0,"ng-container"),Hl()(),oT(23,Lt,2,1,"sh-chip",20)(24,Nt,2,0,"sh-chip",21),Hl()),n&2){let e=nC(),o=$C(6);DE(3),Gl(" ",o.Backup.Name??e.MISSING_BACKUP_NAME," "),DE(6),Gl(" ",ob(10,6,o.Backup.Metadata?.LastBackupFinished,"short")," "),DE(2),iT(o.Backup.Metadata?.LastBackupDuration?11:12),DE(5),iT(o.Backup.Metadata?.SourceFilesSize?16:17),DE(5),iT(o.Backup.Metadata?.TargetFilesSize?21:22),DE(2),iT(o.Backup.Metadata?.BackupListCount?23:24);}}function Gt(n,t){if(n&1&&mg(0,"app-general-log",18),n&2){let e=nC();gg("backupId",e.backupId());}}function At(n,t){if(n&1&&mg(0,"app-remote-log",18),n&2){let e=nC();gg("backupId",e.backupId());}}var Re=class n{#e=T(W);#n=T(g);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=Ue("general");backupId=L(this.#e.params.pipe(pt$1(t=>t.id)));backup=Nt$1(()=>{let t=this.backupId();return t?this.#n.getBackupById(t):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-log"]],decls:15,vars:5,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let e;e=$localize`General`;let o;o=$localize`Destination`;let F;F=$localize`Last successful backup:`;let c;c=$localize`Source:`;let L;L=$localize`Destination:`;let G;G=$localize`took`;let k;k=$localize`N/A`;let N;N=$localize`N/A`;let v;v=$localize`N/A`;let U;U=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[t,e,o,F,c,L,G,k,N,v,U,Q,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"backup"],[1,"primary",3,"valueChange","value"],["value","general"],["value","destination"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,o){if(e&1){let F=gT();mg(0,"app-status-bar"),Qi(1,"section")(2,"div",12)(3,"button",13),Og(4,0),mg(5,"sh-icon"),Pg(),Hl()(),cm(6),oT(7,mt,25,9,"div",14),Qi(8,"sh-tabs",15),sm("valueChange",function(L){return Sd(F),HC(o.activeTab,L)||(o.activeTab=L),xd(L)}),Qi(9,"button",16),XT(10,1),Hl(),Qi(11,"button",17),XT(12,2),Hl()(),oT(13,Gt,1,1,"app-general-log",18),oT(14,At,1,1,"app-remote-log",18),Hl();}if(e&2){DE(6);let F=BC(o.backup());DE(),iT(F?7:-1),DE(),im("value",o.activeTab),DE(5),iT(o.activeTab()==="general"?13:-1),DE(),iT(o.activeTab()==="destination"?14:-1);}},dependencies:[w,De,Pe,_t$1,ee,N,v,D,m,c,ci],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}sh-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"]})};export{Re as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {d}from'./chunk-DofVJ9gn.js';import {w}from'./chunk-ySdaWJYB.js';import {w as we}from'./chunk-BUF3tczf.js';import'./chunk-IEVZ0UN6.js';import'./chunk-BNf0YAwH.js';import'./chunk-BAbAUjHY.js';import'./chunk-BPpheyQK.js';import'./chunk-birClroL.js';import'./chunk-bx0aDvCZ.js';import {e as ee}from'./chunk-BMGXb3gX.js';import'./chunk-BqjWEFHw.js';import'./chunk-BS8yAz3P.js';import'./chunk-CtLFpDTP.js';import'./chunk-CxPG-KgI.js';import'./chunk-B-ryE8KW.js';import'./chunk-CDRHCSvU.js';import'./chunk-5zEiKCqR.js';import'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import {d as dw,Z as lr,_ as _t,a8 as To,j as mg,Q as Qi,X as XT,H as Hl,D as DE,z as gg,a3 as QC,aD as zC}from'./main-TZVLLK67.js';import'./chunk-DWwNINBJ.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import'./chunk-Do6_xsGi.js';import'./chunk-BOII3Fdm.js';import'./chunk-BffC_BAn.js';import'./chunk-M5tldLvJ.js';var S=()=>["/backup/import-destination/destination"],M=()=>["/backup/import-destination/encryption"],g=()=>["/backup/import-destination/select-config"],p=class T{static \u0275fac=function(e){return new(e||T)};static \u0275cmp=dw({type:T,selectors:[["app-import-destination"]],features:[zC([d,we])],decls:10,vars:6,consts:()=>{let i;i=$localize` Destination `;let e;e=$localize` Encryption `;let s;return s=$localize` Select configurations `,[i,e,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,s){e&1&&(mg(0,"app-status-bar"),Qi(1,"sh-stepper",3)(2,"div",4),XT(3,0),Hl(),Qi(4,"div",4),XT(5,1),Hl(),Qi(6,"div",5),XT(7,2),Hl()(),Qi(8,"section"),mg(9,"router-outlet"),Hl()),e&2&&(DE(2),gg("routerLink",QC(3,S)),DE(2),gg("routerLink",QC(4,M)),DE(2),gg("routerLink",QC(5,g)));},dependencies:[w,ee,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{p as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {v as v$1}from'./chunk-CeFh90sX.js';import {c}from'./chunk-bx0aDvCZ.js';import {ShipTable as ot}from'./chunk-SgcWXTYZ.js';import {T,b as g1,G as Ga,U as Ue,d as dw,f as N,v as v$2,aJ as ci,o as oT,i as iT,I as Qg,Q as Qi,X as XT,H as Hl,j as mg,a1 as cT,n as nC,ag as zg,z as gg,D as DE,a2 as lT,k as gT,F as Fg,S as Sd,x as xd,q as PC,aM as tb,E as nm,aN as ob,aa as Gl,ap as sT}from'./main-TZVLLK67.js';import'./chunk-CdZVal1F.js';import'./chunk-BjNuU0J_.js';var B=(t,n)=>n.ID;function J(t,n){t&1&&(Qi(0,"div",4),XT(1,0),Hl());}function U(t,n){if(t&1&&(Qi(0,"li"),PC(1),Hl()),t&2){let e=n.$implicit;DE(),nm(e);}}function X(t,n){if(t&1&&(Qi(0,"strong"),PC(1,"# Exception"),Hl(),Qi(2,"ol",15),cT(3,U,2,1,"li",null,sT),Hl()),t&2){let e=nC(3).$implicit,a=nC(2);DE(3),lT(a.breakIntoLines(e.Exception));}}function j(t,n){if(t&1&&(Qi(0,"li"),PC(1),Hl()),t&2){let e=n.$implicit;DE(),nm(e);}}function z(t,n){if(t&1&&(Qi(0,"strong"),PC(1,"# Message"),Hl(),Qi(2,"ol",15),cT(3,j,2,1,"li",null,sT),Hl()),t&2){let e=nC(3).$implicit,a=nC(2);DE(3),lT(a.breakIntoLines(e.Message));}}function W(t,n){if(t&1&&(Qi(0,"code"),oT(1,X,5,0),oT(2,z,5,0),Hl()),t&2){let e=nC(2).$implicit;DE(),iT(e.Exception?1:-1),DE(),iT(e.Message?2:-1);}}function H(t,n){if(t&1&&(Qi(0,"tr")(1,"td",12)(2,"sh-list",13)(3,"div",14),PC(4),Hl(),Qi(5,"div",14),PC(6),Hl(),Qi(7,"div",14),PC(8),Hl(),Qi(9,"div",14),PC(10),Hl(),Qi(11,"div",14),PC(12),Hl()(),oT(13,W,3,2,"code"),Hl()()),t&2){let e=nC().$implicit;DE(4),Gl("ID: ",e.ID),DE(2),Gl("Type: ",e.Type),DE(2),Gl("Tag: ",e.Tag),DE(2),Gl("TaskID: ",e.TaskID),DE(2),Gl("MessageID: ",e.MessageID),DE(),iT(e.Exception||e.Message?13:-1);}}function q(t,n){if(t&1){let e=gT();Qi(0,"tr",10),Fg("click",function(){let u=Sd(e).$implicit,g=nC(2);return xd(g.toggleRow(u.ID))}),Qi(1,"td"),PC(2),tb(3,"date"),Hl(),Qi(4,"td"),PC(5),Hl(),Qi(6,"td",8)(7,"button",11)(8,"sh-icon"),PC(9,"caret-down"),Hl()()()(),oT(10,H,14,6,"tr");}if(t&2){let e=n.$implicit,a=nC(2);DE(2),nm(ob(3,5,e.When,"medium")),DE(3),nm(a.subStringMessage(e.Message)),DE(2),Qg("rotated-icon",e.ID===a.openRowId()),DE(3),iT(e.ID===a.openRowId()?10:-1);}}function K(t,n){if(t&1&&(Qi(0,"sh-table",6)(1,"tr",7)(2,"th"),XT(3,1),Hl(),Qi(4,"th"),XT(5,2),Hl(),mg(6,"th",8),Hl(),cT(7,q,11,8,null,null,B),Qi(9,"div",9),XT(10,3),Hl()()),t&2){let e=nC();zg("grid-template-columns","auto 1fr auto"),Qg("type-b",true),gg("data",e.logs())("loading",e.logsLoading()),DE(7),lT(e.logs());}}var v=class t{#e=T(v$1);whenFilter=g1();backupIdFilter=g1();polling=g1();logLevel=this.#e.logLevel;logLevelByLabel=this.#e.logLevelByLabel;logs=this.#e.logs;logsLoading=this.#e.logsLoading;pollingEffect=Ga(()=>{let n=this.polling()??false;this.#e.isPolling.set(n);});openRowId=Ue(null);whenEffect=Ga(()=>{let n=this.whenFilter()??null;this.#e.setWhenFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});backupIdEffect=Ga(()=>{let n=this.backupIdFilter()??null;this.#e.setBackupIdFilter(n),this.#e.logLevel.set(n?"Verbose":"Disabled");});toggleRow(n){n!=null&&this.openRowId.set(n===this.openRowId()?null:n);}breakIntoLines(n){return n?n.split(`
|
|
2
|
+
`):[]}subStringMessage(n){return n?n.substring(0,80)+"...":""}ngOnDestroy(){this.#e.destroy();}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=dw({type:t,selectors:[["app-logs-live"]],hostVars:2,hostBindings:function(e,a){e&2&&Qg("is-disabled",a.logLevel()==="Disabled");},inputs:{whenFilter:[1,"whenFilter"],backupIdFilter:[1,"backupIdFilter"],polling:[1,"polling"]},decls:2,vars:1,consts:()=>{let n;n=$localize`Live logs are disabled`;let e;e=$localize`When`;let a;a=$localize`Message`;let u;return u=$localize`No data available`,[n,e,a,u,[1,"live-view-disabled"],[3,"type-b","data","loading","grid-template-columns"],[3,"data","loading"],["thead",""],[1,"sticky-end"],["table-no-rows",""],[3,"click"],["shButton","","type","button",1,"outlined","small"],[1,"expanded-cell"],[1,"primary"],["item",""],[1,"line-numbers-ol"]]},template:function(e,a){e&1&&oT(0,J,2,0,"div",4)(1,K,11,6,"sh-table",5),e&2&&iT(a.logLevel()==="Disabled"?0:1);},dependencies:[ot,N,c,v$2,ci],styles:["[_nghost-%COMP%]{display:block}.is-disabled[_nghost-%COMP%]{padding:0 2rem}.live-view-disabled[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:18.75rem;width:100%;background-color:var(--base-2);border:1px solid var(--base-3);border-radius:var(--shape-2);font:var(--paragraph-20)}.expanded-cell[_ngcontent-%COMP%]{height:auto;grid-column:1/-1;white-space:pre-wrap;display:flex;flex-direction:column;background:var(--base-2)}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}sh-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}sh-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--base-8),#000 70%);color:#fff;padding:1.5rem;border-radius:var(--shape-2);overflow:auto;white-space:pre;max-width:100%;width:100%}sh-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0}code[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:inline-block;margin-bottom:.25rem}code[_ngcontent-%COMP%] ol.line-numbers-ol[_ngcontent-%COMP%] + strong[_ngcontent-%COMP%]{margin-top:1.25rem}"]})};export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {c2 as e,aZ as ee,aj as l}from'./main-TZVLLK67.js';var d=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,m=class n{generate(r,t=d){let a;do a=this.generatePassword(r,t);while(this.calculatePasswordStrength(a)<5);return a}generatePassword(r,t=d){return Array.apply(null,{length:r}).map(()=>{let a;for(;;)if(a=String.fromCharCode(e()),t.test(a))return a},this).join("")}calculatePasswordStrength(r){let t=1;return r.length>=8&&t++,r.match(/[a-z]/)&&r.match(/[A-Z]/)&&t++,r.match(/\d+/)&&t++,r.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ee({token:n,factory:n.\u0275fac,providedIn:"root"})};function y(n,r,t="conditional"){return a=>{if(!a.parent)return null;let e=null;if(n(a.parent)&&(e=(Array.isArray(r)?r:[r]).find(l=>l(a)!==null)??null),t&&e){let o={};o[t]=e,e=o;}return e}}function F(){return n=>(n.parent&&Object.values(n.parent.controls).forEach(r=>{r!==n&&r.updateValueAndValidity();}),null)}function C(n,r,t,a="conditional"){return e=>{if(!e.parent)return null;let o={},l$1=e.parent.get(n);if(!l$1)return console.warn("Conditional field not found"),null;if(Array.isArray(r)?l$1.value?.includes(r):l$1.value===r){let f=Array.isArray(t)?t:[t];for(let A of f){let u=A(e),p=o||{};if(u!==null){o=l(l({},p),u);break}}}return o}}export{C,F,m,y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {r as rt,T,U as Ue,bR as D,N as Nt,aK as pb,ai as m,bU as Ud,bV as ms,aj as l,bH as Te,bW as rr,G as Ga,c as me}from'./main-TZVLLK67.js';function F(s,e){let n=T(Te),o=new rr(1),i=Ga(()=>{let t;try{t=s();}catch(u){me(()=>o.error(u));return}me(()=>o.next(t));},{injector:n,manualCleanup:true});return n.get(rt).onDestroy(()=>{i.destroy(),o.complete();}),o.asObservable()}function L(s,e){let o=!e?.manualCleanup?e?.injector?.get(rt)??T(rt):null,i=O(e?.equal),t;e?.requireSync?t=Ue({kind:0},{equal:i}):t=Ue({kind:1,value:e?.initialValue},{equal:i});let u,c=s.subscribe({next:r=>t.set({kind:1,value:r}),error:r=>{t.set({kind:2,error:r}),u?.();},complete:()=>{u?.();}});if(e?.requireSync&&t().kind===0)throw new D(601,false);return u=o?.onDestroy(c.unsubscribe.bind(c)),Nt(()=>{let r=t();switch(r.kind){case 1:return r.value;case 2:throw r.error;case 0:throw new D(601,false)}},{equal:e?.equal})}function O(s=Object.is){return (e,n)=>e.kind===1&&n.kind===1&&s(e.value,n.value)}function $(s){return pb(m(l({},s),{loader:void 0,stream:e=>{let n,o=false,i=Ue({value:void 0}),{resolve:t,promise:u}=Ud(),c=false;function r(){c||(c=true,t(i));}let l=()=>{o=true,n?.unsubscribe(),e.abortSignal.removeEventListener("abort",l),r();};e.abortSignal.addEventListener("abort",l);function f(a){i.set(a),r();}let m=s.stream;if(m===void 0)throw new D(990,false);return n=m(e).subscribe({next:a=>f({value:a}),error:a=>{f({error:ms(a)}),e.abortSignal.removeEventListener("abort",l);},complete:()=>{c||f({error:new D(991,false)}),e.abortSignal.removeEventListener("abort",l);}}),o&&n.unsubscribe(),c?i:u}}))}export{$,F,L};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import {J}from'./chunk-birClroL.js';import {T,ah as fe$1,a6 as be,ab as C,a5 as g,e as ee,U as Ue,C as Bu,at as h,d as dw,_ as _t,f as N,v,Q as Qi,O as Og,j as mg,H as Hl,F as Fg,P as Pg,o as oT,X as XT,p as DD,D as DE,z as gg,a3 as QC,I as Qg,i as iT,y as TD,t as tC,ae as Jr,B as y1,b as g1,af as m1,N as Nt,G as Ga,L as oC,Y as iC,q as PC,h as bC,aC as hg,$ as $g,K as lC,n as nC,E as nm,aa as Gl}from'./main-TZVLLK67.js';import {F as Fe$1}from'./chunk-Do6_xsGi.js';import {j as jn,G as Gn,T as Tn,Z as Ze,y as yt,R as Rn,P as Pn,g as gn,h as hn}from'./chunk-BOII3Fdm.js';var de=["input"],me=[[["label"]]],fe=["label"],Fe=["ngProjectAs","label",5,["label"]];function _e(n,o){if(n&1&&(Qi(0,"div",3),PC(1),Hl()),n&2){let e=nC();DE(),nm(e.files()[0].name);}}function ge(n,o){if(n&1&&(Qi(0,"div",3),PC(1),Hl()),n&2){let e=nC();DE(),Gl("",e.files().length," files selected");}}function he(n,o){if(n&1&&(Qi(0,"div",4),PC(1),Hl()),n&2){let e=nC();DE(),nm(e.filesOver()?e.overlayText():e.placeholder());}}var ce=(()=>{class n{constructor(){this._el=T(Jr),this.inputRef=y1.required("input"),this.filesOver=Ue(false),this.multiple=g1(),this.accept=g1(null),this.placeholder=m1("Click or drag files here"),this.overlayText=g1("Drop files here"),this.files=m1([]),this.fileUploadClasses=Nt(()=>this._el.nativeElement.classList.toString()),this.inputEffect=Ga(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(true);}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(false);}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(false);let i=t.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),e.files=i);}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files));}));});}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e);}static{this.\u0275fac=function(t){return new(t||n)};}static{this.\u0275cmp=dw({type:n,selectors:[["sh-file-upload"]],viewQuery:function(t,i){t&1&&$g(i.inputRef,de,5),t&2&&lC();},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:fe,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(t,i){t&1&&(oC(me),Qi(0,"sh-form-field"),iC(1,0,Fe),Qi(2,"div",2,0),oT(4,_e,2,1,"div",3)(5,ge,2,1,"div",3)(6,he,2,1,"div",4),mg(7,"input",5,1)(9,"div",6),Hl(),Qi(10,"sh-icon",7),PC(11,"upload-simple"),Hl()()),t&2&&(bC(i.fileUploadClasses()),DE(4),iT(i.files().length===1?4:i.files().length>1?5:6),DE(3),hg("multiple",i.multiple())("accept",i.accept()),DE(2),Qg("files-over",i.filesOver()));},dependencies:[Fe$1,N],styles:[`sh-file-upload{--fu-bg-active: rgba(0, 0, 0, .1);display:flex;flex-direction:column;gap:.75rem;position:relative;width:100%}sh-file-upload sh-list{border-radius:var(--shape-3);background-color:var(--base-2)}sh-file-upload .files-text,sh-file-upload .placeholder{color:var(--base-8);font:var(--paragraph-30B)}sh-file-upload input{position:absolute;opacity:0;inset:0;cursor:pointer;z-index:100}sh-file-upload .bg-overlay{opacity:0;position:absolute;inset:.0625rem;background-color:var(--fu-bg-active);transition:opacity 125ms linear;z-index:0;border-radius:var(--ff-s)}sh-file-upload .bg-overlay.files-over{opacity:1}
|
|
2
|
+
`],encapsulation:2});}}return n})();var Te=()=>["/"];function Ce(n,o){n&1&&(Qi(0,"sh-form-field")(1,"label",14),XT(2,3),Hl(),mg(3,"input",15),DD(),Hl()),n&2&&(DE(3),TD());}var d=new jn,M=class n{#t=T(fe$1);#i=T(be);#o=T(C);#n=T(g);#e=T(ee);isImporting=Ue(false);isSecureFile=Ue(false);isValid=Ue(false);importForm=d.group({config:d.control(""),cmdline:d.control(false),import_metadata:d.control(false),direct:d.control(false),passphrase:d.control("")});selectedFile=Ue([]);onFileDropped(o){let e=o[0];if(e){let t=new FileReader;this.isSecureFile.set(e.type!=="application/json"),t.onload=this.#a.bind(this),t.readAsArrayBuffer(e);}}#a(o){let e=o.target?.result;this.isSecureFile.set(this.#r(e)!=="json"),this.importForm.patchValue({config:this.#l(e)}),this.isValid.set(this.importForm.value.config!=="");}#r(o){let e=new Uint8Array(o);if(e.length>=5&&e[0]===65&&e[1]===69&&e[2]===83&&e[4]===0)return "aes";try{let t=new TextDecoder().decode(o),i=JSON.parse(t);if(typeof i=="object"&&i!==null)return "json"}catch{}return "unknown"}#l(o){let e=new Uint8Array(o),t=e.byteLength,i="";for(let s=0;s<t;s++)i+=String.fromCharCode(e[s]);return btoa(i)}submit(){this.isImporting.set(true);let o=this.importForm.value.direct??false;this.#o.postApiV1BackupsImport({requestBody:this.importForm.value}).pipe(Bu(()=>this.isImporting.set(false))).subscribe({next:e=>{if(o){this.#t.success("Backup imported successfully."),this.#e.navigate(["/"]);return}let t=this.#n.addDraftBackup(e.data);this.#e.navigate(["/backup-draft",t]);},error:e=>{let t=e.message||$localize`Unknown error`;this.#i.open(h,{data:{title:$localize`Failed to import backup`,message:t,confirmText:$localize`OK`,cancelText:void 0}});}});}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=dw({type:n,selectors:[["app-import"]],decls:19,vars:8,consts:()=>{let o;o=$localize` Import backup configuration ${"\uFFFD#3\uFFFD"}:START_TAG_DIV:${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:arrow-left${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Back ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#5\uFFFD|\uFFFD#7\uFFFD]"}:START_TAG_SH_ICON:download-simple${"[\uFFFD/#5\uFFFD|\uFFFD/#7\uFFFD]"}:CLOSE_TAG_SH_ICON: Import ${"[\uFFFD/#4\uFFFD|\uFFFD/#6\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_DIV:`,o=tC(o);let e;e=$localize`Import Metadata`;let t;t=$localize`Save now`;let i;return i=$localize`Passphrase`,[o,e,t,i,[1,"actions"],["shButton","","type","button",1,"outlined",3,"routerLink"],["shButton","","type","submit",1,"raised","primary",3,"click","disabled"],["autocomplete","off",3,"formGroup"],["accept",".json,.aes",3,"filesChange","files"],[1,"primary","raised"],["for","importMetadata"],["type","checkbox","formControlName","import_metadata"],["for","direct"],["type","checkbox","formControlName","direct"],["for","passphrase"],["type","password","autocomplete","disabled","formControlName","passphrase"]]},template:function(e,t){e&1&&(Qi(0,"header")(1,"h3"),Og(2,0),Qi(3,"div",4)(4,"button",5),mg(5,"sh-icon"),Hl(),Qi(6,"button",6),Fg("click",function(){return t.submit()}),mg(7,"sh-icon"),Hl()(),Pg(),Hl()(),Qi(8,"form",7)(9,"sh-file-upload",8),Fg("filesChange",function(s){return t.onFileDropped(s)}),Hl(),oT(10,Ce,4,0,"sh-form-field"),Qi(11,"sh-toggle",9)(12,"label",10),XT(13,1),Hl(),mg(14,"input",11),DD(),Hl(),Qi(15,"sh-toggle",9)(16,"label",12),XT(17,2),Hl(),mg(18,"input",13),DD(),Hl()()),e&2&&(DE(4),gg("routerLink",QC(7,Te)),DE(2),Qg("loading",t.isImporting()),gg("disabled",t.isImporting()||!t.isValid()),DE(2),gg("formGroup",t.importForm),DE(),gg("files",t.selectedFile()),DE(),iT(t.isSecureFile()?10:-1),DE(4),TD(),DE(4),TD());},dependencies:[Gn,Tn,Ze,yt,Rn,Pn,gn,hn,_t,Fe$1,N,v,J,ce],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:3rem}h3[_ngcontent-%COMP%]{font:var(--title-30);display:flex;align-items:center;justify-content:space-between}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;max-width:31.25rem}sh-file-upload[_ngcontent-%COMP%]{width:100%}"]})};export{M as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {w as we}from'./chunk-BUF3tczf.js';import'./chunk-IEVZ0UN6.js';import {OptionsListComponent as Oe}from'./chunk-BNf0YAwH.js';import {_ as _t}from'./chunk-BAbAUjHY.js';import'./chunk-BPpheyQK.js';import'./chunk-birClroL.js';import'./chunk-bx0aDvCZ.js';import'./chunk-CtLFpDTP.js';import {N as Nt}from'./chunk-CxPG-KgI.js';import'./chunk-B-ryE8KW.js';import'./chunk-CDRHCSvU.js';import'./chunk-CMs999gl.js';import'./chunk-CdZVal1F.js';import {T,e as ee,aw as W,B as y1,U as Ue,d as dw,v,f as N,Q as Qi,X as XT,H as Hl,o as oT,s as sm,F as Fg,O as Og,j as mg,P as Pg,D as DE,i as iT,w as im,z as gg,a3 as QC,I as Qg,$ as $g,K as lC,l as HC,k as gT,S as Sd,n as nC,x as xd,p as DD,y as TD}from'./main-TZVLLK67.js';import'./chunk-DWwNINBJ.js';import'./chunk-CUxvfCTH.js';import'./chunk-C4pJCbq-.js';import'./chunk-BjNuU0J_.js';import'./chunk-CU-RYihf.js';import {F as Fe}from'./chunk-Do6_xsGi.js';import {B as Bn,Z as Ze,e as en,R as Rn,J as Jt}from'./chunk-BOII3Fdm.js';import'./chunk-BffC_BAn.js';import'./chunk-M5tldLvJ.js';var oe=["formRef"],ae=()=>["--skip-files-larger-than","encryption-module","no-encryption","--no-encryption","--dbpath","keep-time","keep-versions","retention-policy"];function se(o,_){o&1&&(Qi(0,"p"),XT(1,4),Hl());}function _e(o,_){if(o&1){let e=gT();Qi(0,"p"),XT(1,5),Hl(),Qi(2,"app-timespan",21),sm("ngModelChange",function(n){Sd(e);let a=nC(2);return HC(a.optionsFields.backupRetentionTime,n)||(a.optionsFields.backupRetentionTime=n),xd(n)}),Qi(3,"label",22),XT(4,6),Hl()(),DD();}if(o&2){let e=nC(2);DE(2),gg("customId","backupRetentionTime"),im("ngModel",e.optionsFields.backupRetentionTime),TD();}}function le(o,_){if(o&1){let e=gT();Qi(0,"p"),XT(1,7),Hl(),Qi(2,"sh-form-field")(3,"label",23),XT(4,8),Hl(),Qi(5,"input",24),sm("ngModelChange",function(n){Sd(e);let a=nC(2);return HC(a.optionsFields.backupRetentionVersions,n)||(a.optionsFields.backupRetentionVersions=n),xd(n)}),Hl(),DD(),Hl();}if(o&2){let e=nC(2);DE(5),im("ngModel",e.optionsFields.backupRetentionVersions),TD();}}function re(o,_){o&1&&(Qi(0,"p"),XT(1,9),Hl());}function ce(o,_){if(o&1){let e=gT();Qi(0,"p"),XT(1,10),Hl(),Qi(2,"sh-form-field")(3,"p"),XT(4,11),Hl(),Qi(5,"label",25),XT(6,12),Hl(),Qi(7,"input",26),sm("ngModelChange",function(n){Sd(e);let a=nC(2);return HC(a.optionsFields.backupRetentionCustom,n)||(a.optionsFields.backupRetentionCustom=n),xd(n)}),Hl(),DD(),Hl();}if(o&2){let e=nC(2);DE(7),im("ngModel",e.optionsFields.backupRetentionCustom),TD();}}function pe(o,_){if(o&1){let e=gT();Qi(0,"sh-select",18)(1,"label",19),XT(2,3),Hl(),Qi(3,"input",20),sm("ngModelChange",function(n){Sd(e);let a=nC();return HC(a.optionsFields.backupRetention,n)||(a.optionsFields.backupRetention=n),xd(n)}),Hl(),DD(),Hl(),oT(4,se,2,0,"p")(5,_e,5,2)(6,le,6,1)(7,re,2,0,"p")(8,ce,8,1);}if(o&2){let e=nC();gg("options",e.retentionOptions())("inlineSearch",true)("isClearable",false),DE(3),im("ngModel",e.optionsFields.backupRetention),TD(),DE(),iT(e.optionsFields.backupRetention()==="all"?4:e.optionsFields.backupRetention()==="time"?5:e.optionsFields.backupRetention()==="versions"?6:e.optionsFields.backupRetention()==="smart"?7:e.optionsFields.backupRetention()==="custom"?8:-1);}}var de=[{value:"all",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],y=class o{#e=T(we);#n=T(ee);#t=T(W);formRef=y1.required("formRef");isSubmitting=this.#e.isSubmitting;settings=this.#e.settings;optionsFields=this.#e.optionsFields;applicationOptions=this.#e.applicationOptions;isSyncMode=this.#e.isSyncMode;retentionOptions=Ue(de);goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#t.parent});}submit(){switch(this.#e.validateBeforeSubmit()){case "general":this.#n.navigate(["general"],{relativeTo:this.#t.parent});return;case "destination":this.#n.navigate(["destination"],{relativeTo:this.#t.parent});return;case "source":this.#n.navigate(["source-data"],{relativeTo:this.#t.parent});return}this.#e.submit();}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=dw({type:o,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,s){e&1&&$g(s.formRef,oe,5),e&2&&lC();},decls:12,vars:8,consts:()=>{let _;_=$localize`Options`;let e;e=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let s;s=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SH_ICON: Submit `;let n;n=$localize`Backup retention`;let a;a=$localize`Nothing will be deleted. The backup size will grow with each change.`;let b;b=$localize`If at least one newer backup is found, all backups older than this date are deleted.`;let A;A=$localize`Time to keep versions`;let k;k=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let F;F=$localize`Number of versions`;let w;w=$localize` Over time backups will be deleted automatically. There will remain one backup for each of the last 7 days, each of the last 4 weeks, each of the last 12 months. There will always be at least one remaining backup. `;let $;$=$localize` Enter a retention strategy manually. Placeholders are D/W/Y for days/weeks/years and U for unlimited. The syntax is: 7D:1D,4W:1W,36M:1M. This example keeps one backup for each of the next 7 days, one for each of the next 4 weeks, and one for each of the next 36 months. This can also be written as 1W:1D,1M:1W,3Y:1M. `;let L;L=$localize`Once there are more backups than the specified number, the oldest backups are deleted.`;let G;return G=$localize`Retention expression`,[_,e,s,n,a,b,A,k,F,w,$,L,G,[1,"title-30"],[3,"optionsChange","options","applicationOptions","hasFreeTextSettings","hiddenOptions"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click"],["value","value","label","name",3,"options","inlineSearch","isClearable"],["for","size"],["type","text",3,"ngModelChange","ngModel"],[3,"ngModelChange","customId","ngModel"],["for","backupRetentionTime"],["for","backupRetentionVersions"],["type","number","id","backupRetentionVersions",3,"ngModelChange","ngModel"],["for","backupRetentionCustom"],["type","text","id","backupRetentionCustom",3,"ngModelChange","ngModel"]]},template:function(e,s){e&1&&(Qi(0,"section")(1,"h3",13),XT(2,0),Hl(),oT(3,pe,9,5),Qi(4,"app-options-list",14),sm("optionsChange",function(a){return HC(s.settings,a)||(s.settings=a),a}),Hl(),Qi(5,"div",15)(6,"button",16),Fg("click",function(){return s.goBack()}),Og(7,1),mg(8,"sh-icon"),Pg(),Hl(),Qi(9,"button",17),Fg("click",function(){return s.submit()}),Og(10,2),mg(11,"sh-icon"),Pg(),Hl()()()),e&2&&(DE(3),iT(s.isSyncMode()?-1:3),DE(),im("options",s.settings),gg("applicationOptions",s.applicationOptions())("hasFreeTextSettings",true)("hiddenOptions",QC(7,ae)),DE(5),Qg("loading",s.isSubmitting()));},dependencies:[Bn,Ze,en,Rn,Jt,Oe,_t,v,N,Nt,Fe],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:37.5rem;padding:2.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}"]})};export{y as default};
|