@duplicati/ngclient 0.0.233 → 0.0.234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/{chunk-h6n5A491.js → chunk-0lYdrxte.js} +1 -1
  2. package/{chunk-bt6lhYfG.js → chunk-1-oPQ4n-.js} +1 -1
  3. package/{chunk-Dz5guW4b.js → chunk-5EFCeqK3.js} +1 -1
  4. package/{chunk-CS2J-6VZ.js → chunk-5kQsbzck.js} +1 -1
  5. package/{chunk-D2G7_0hG.js → chunk-AHhgJqe4.js} +1 -1
  6. package/{chunk-mA4J4_nC.js → chunk-B-T54LAJ.js} +1 -1
  7. package/{chunk-C9OqpwwE.js → chunk-B-c3Zv6R.js} +1 -1
  8. package/{chunk-C9ecLR93.js → chunk-B0ETfgeR.js} +1 -1
  9. package/{chunk-B_cIFQAl.js → chunk-B1dNb-QT.js} +1 -1
  10. package/{chunk-mflQLMHH.js → chunk-B8PnvglY.js} +1 -1
  11. package/{chunk-CgJAbgNN.js → chunk-BAmgFjXY.js} +1 -1
  12. package/{chunk-B6c2NXNy.js → chunk-BDhLEYas.js} +1 -1
  13. package/{chunk-L8hQtTzU.js → chunk-BFVhQEGw.js} +1 -1
  14. package/{chunk-BmmYJhOf.js → chunk-BFquKzMb.js} +1 -1
  15. package/{chunk-Dk-Wgx3e.js → chunk-BGcVKmjp.js} +1 -1
  16. package/{chunk-jy8x4GhV.js → chunk-BHrABvoK.js} +1 -1
  17. package/chunk-BNG7N21y.js +1 -0
  18. package/{chunk-CsIAXoYP.js → chunk-BQapkAzp.js} +1 -1
  19. package/chunk-BRqx-u9-.js +2 -0
  20. package/{chunk-lymL5FDY.js → chunk-BaNH2nfC.js} +1 -1
  21. package/{chunk-AuCOjHXM.js → chunk-BaR3Dslz.js} +1 -1
  22. package/{chunk-D1pDZLJ9.js → chunk-BaknLOqq.js} +1 -1
  23. package/{chunk-D3PhthfU.js → chunk-Bg98dUtr.js} +1 -1
  24. package/{chunk-BsNCg00z.js → chunk-BiSIt2zb.js} +1 -1
  25. package/chunk-BkLND74M.js +1 -0
  26. package/{chunk-DDWDcSq2.js → chunk-BnFO-7ok.js} +1 -1
  27. package/{chunk-DcdpG1YG.js → chunk-BqbJuWHd.js} +1 -1
  28. package/chunk-C4zj812G.js +1 -0
  29. package/{chunk-CIw_h8oP.js → chunk-C5G4RPpS.js} +1 -1
  30. package/{chunk-DM11Gu0H.js → chunk-CA-0mTsq.js} +1 -1
  31. package/chunk-CAEYxmzQ.js +1 -0
  32. package/chunk-CGnsbLNG.js +1 -0
  33. package/chunk-CPjYiawK.js +1 -0
  34. package/chunk-CQHKuUqk.js +2 -0
  35. package/{chunk-Bgw6E0Xu.js → chunk-CSYDDxaa.js} +1 -1
  36. package/{chunk-B1c7h-_w.js → chunk-CTH9uShX.js} +1 -1
  37. package/{chunk-DWiO0A6h.js → chunk-CUNe6D-d.js} +1 -1
  38. package/{chunk-CGsQCBkP.js → chunk-CUaDFQyH.js} +1 -1
  39. package/chunk-CnyuuWJ3.js +1 -0
  40. package/{chunk-CuJ_uEdr.js → chunk-CsgB8OpN.js} +1 -1
  41. package/chunk-CspKioFm.js +4 -0
  42. package/{chunk-DidJB9ig.js → chunk-Cv4o9u3S.js} +1 -1
  43. package/chunk-CxOam2tf.js +1 -0
  44. package/{chunk-DD_wKpGc.js → chunk-CxUx2RFx.js} +1 -1
  45. package/{chunk-Bj7EyCHb.js → chunk-D0qGkLVr.js} +1 -1
  46. package/{chunk-Z81HNfgo.js → chunk-D4S_1RMU.js} +1 -1
  47. package/{chunk-C3gUxHQM.js → chunk-D5zSyubd.js} +1 -1
  48. package/{chunk-nuwlP4Wz.js → chunk-D6WUhpxO.js} +5 -5
  49. package/{chunk-CvSsZZty.js → chunk-D7C8xyJI.js} +1 -1
  50. package/{chunk-Ca1aaA1h.js → chunk-D9dEfxn4.js} +1 -1
  51. package/{chunk-ByL8ndec.js → chunk-DB1KeglF.js} +1 -1
  52. package/{chunk-DGvC49aU.js → chunk-DCsYP4vf.js} +1 -1
  53. package/chunk-DGO0_pkA.js +2 -0
  54. package/chunk-DKOaWS_j.js +2 -0
  55. package/{chunk-FTZ5atHM.js → chunk-DP2sLJDC.js} +1 -1
  56. package/chunk-DXh9g32e.js +1 -0
  57. package/{chunk-CfxBiw7I.js → chunk-DYfv4gJW.js} +1 -1
  58. package/chunk-DZMTCfoN.js +1 -0
  59. package/chunk-DcU0yXkQ.js +1 -0
  60. package/chunk-Dg-uYwbp.js +2 -0
  61. package/{chunk-C7AeY2HY.js → chunk-DmwtL4h3.js} +1 -1
  62. package/chunk-DnTA-m4k.js +2 -0
  63. package/{chunk-DhiIZLrA.js → chunk-DqoYKCmi.js} +1 -1
  64. package/{chunk-CIe9Bupz.js → chunk-Du0Hd0t6.js} +1 -1
  65. package/{chunk-DXEgz1tV.js → chunk-Dyq6iPbF.js} +1 -1
  66. package/chunk-DzYR8wiz.js +2 -0
  67. package/{chunk-aCJqF9DH.js → chunk-FZcbbWYC.js} +1 -1
  68. package/{chunk-CyqqlRjO.js → chunk-GKdOPH_4.js} +1 -1
  69. package/{chunk-CX3Axjpk.js → chunk-KNmRQWOM.js} +1 -1
  70. package/{chunk-BxpXVeOr.js → chunk-OIDsf_Aq.js} +1 -1
  71. package/{chunk-aYCYzU5Q.js → chunk-S-sgDIKw.js} +1 -1
  72. package/{chunk-B5Y6lgE8.js → chunk-UCY_7-Of.js} +1 -1
  73. package/{chunk-MDqH8T3Z.js → chunk-UUMQmD5I.js} +1 -1
  74. package/{chunk-DGxk44Me.js → chunk-X3dwwJIr.js} +1 -1
  75. package/chunk-_J1lTnCH.js +1 -0
  76. package/{chunk-K2iai6rC.js → chunk-i6kMmbhY.js} +1 -1
  77. package/chunk-oobMnyEm.js +3 -0
  78. package/{chunk-BstaUtD_.js → chunk-pxcB56N0.js} +1 -1
  79. package/{chunk-CWgXi-7W.js → chunk-sgM_r5NM.js} +1 -1
  80. package/{chunk-eiyaQxBt.js → chunk-umUQn7LQ.js} +1 -1
  81. package/{chunk-8Y8ReLEn.js → chunk-xwdrpTfz.js} +1 -1
  82. package/index.html +1 -1
  83. package/{main-3NL5M6JB.js → main-XKLDSNLY.js} +1 -1
  84. package/package.json +1 -1
  85. package/chunk-B1wZ4poV.js +0 -1
  86. package/chunk-BZgAzrl9.js +0 -2
  87. package/chunk-BaSm1lsB.js +0 -2
  88. package/chunk-BrtdRb9j.js +0 -1
  89. package/chunk-BzJX1fKw.js +0 -1
  90. package/chunk-C7gG_Yh_.js +0 -2
  91. package/chunk-CP6xnjgo.js +0 -3
  92. package/chunk-ChUm8bnG.js +0 -1
  93. package/chunk-CkRbgemk.js +0 -2
  94. package/chunk-ClRItSzt.js +0 -1
  95. package/chunk-D55uWC7G.js +0 -1
  96. package/chunk-DV8bRznt.js +0 -2
  97. package/chunk-DbbyVAGl.js +0 -1
  98. package/chunk-DuYKanVS.js +0 -1
  99. package/chunk-DwmssGG9.js +0 -2
  100. package/chunk-DxFBzFom.js +0 -1
  101. package/chunk-I5dxaHZ4.js +0 -2
  102. package/chunk-Y-xXBGKy.js +0 -1
  103. package/chunk-ksSA-rDF.js +0 -1
  104. package/chunk-uGh0bVbu.js +0 -4
@@ -13,4 +13,4 @@ var O$2="PROXY_AUTHED_FAKE_TOKEN",u$1="refreshNonce",f="v1:persist:duplicati:ref
13
13
  var y$3="backupListOrderBy",v$3="backupListShowActualTimes",D$1=[{value:"id",label:$localize`Backup ID`},{value:"name",label:$localize`Backup name`},{value:"lastrun",label:$localize`Last run time`},{value:"nextrun",label:$localize`Next run time`},{value:"schedule",label:$localize`Is scheduled`},{value:"backend",label:$localize`Destination type`},{value:"sourcesize",label:$localize`Source size`},{value:"destinationsize",label:$localize`Destination size`},{value:"duration",label:$localize`Duration`},{value:"-id",label:$localize`Backup ID (descending)`},{value:"-name",label:$localize`Backup name (descending)`},{value:"-lastrun",label:$localize`Last run time (descending)`},{value:"-nextrun",label:$localize`Next run time (descending)`},{value:"-schedule",label:$localize`Is scheduled (descending)`},{value:"-backend",label:$localize`Destination type (descending)`},{value:"-sourcesize",label:$localize`Source size (descending)`},{value:"-destinationsize",label:$localize`Destination size (descending)`},{value:"-duration",label:$localize`Duration (descending)`}],g$1=class l{#s=T$7(C);#o=T$7(m$3);#e=T$7(Q$2);#u=null;#t=Ge$5([]);#a=Ge$5([]);#l=Ge$5(false);#n=Ge$5(null);#p=Ge$5(null);#c=A$1(v$3,"relative");#i=A$1(y$3,"id");orderByOptions=Ge$5(D$1);orderBy=this.#i.asReadonly();backups=this.#a.asReadonly();timeType=this.#c.asReadonly();backupsLoading=this.#l.asReadonly();startingBackup=this.#n.asReadonly();deletingBackup=this.#p.asReadonly();draftBackups=this.#t.asReadonly();#r=Nt$3(()=>this.#o.hasBackupListSubscribeOption()&&this.#e.getConnectionMethod()==="websocket");#d=za(()=>{let e=this.#e.backupListState();e&&this.#a.set(e);});addDraftBackup(e){let t=x$4();return this.#t.set([...this.#t(),{id:t,data:e}]),t}setOrderBy(e){this.#i.set(e),this.#e.isConnectionMethodSet()&&(this.#r()?this.#e.subscribe("backuplist",e):this.getBackups(true));}setTimeType(e){this.#c.set(e);}removeDraftBackupById(e){this.#t.set(this.#t().filter(t=>t.id!==e));}getBackupById(e){return this.#a().find(t=>t.Backup?.ID===e)??null}getBackups(e=false){if(!this.#e.isConnectionMethodSet())return;if(this.#r()){this.#e.subscribe("backuplist",this.#i());return}let t=this.#u,n=Date.now(),h=t&&n-t<900*1e3;t&&n-t<100||!e&&h&&this.#a().length||(this.#u=n,this.#l.set(true),this.#s.getApiV1Backups({orderBy:this.#i()}).pipe(jo$1(1),rd(f=>this.#a.set(f)),zu(()=>this.#l.set(false))).subscribe());}startBackup(e){this.#n.set(e),this.#s.postApiV1BackupByIdStart({id:e}).pipe(jo$1(1),rd(()=>this.getBackups(true)),zu(()=>this.#n.set(null))).subscribe();}deleteBackup(e){return this.#s.deleteApiV1BackupById(e).pipe(jo$1(1))}static \u0275fac=function(t){return new(t||l)};static \u0275prov=ee$5({token:l,factory:l.\u0275fac,providedIn:"root"})};var m$1=class o{decimalPipe=T$7(pi$1);transform(t,e=false,i=false){if(i&&t===0)return e?"0 Bytes":"0B";if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return "";let a=this.#t(),n=a?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r=Math.floor(Math.log(t)/Math.log(a?1e3:1024));r=Math.min(r,n.length-1);let c=t/Math.pow(a?1e3:1024,r),s=this.decimalPipe.transform(c,"1.0-2");return s?`${s} ${e?n[r]:n[r].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return true;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(i=>e.includes(i)):false}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=Ew({name:"bytes",type:o,pure:true})};var u=["*"],v$2=(()=>{class e{constructor(){this.color=E1(null),this.variant=E1(null),this.size=E1(null),this.readonly=E1(false),this.noBg=E1(false,{transform:N1}),this.hostClasses=ce$2("button",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly});}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=hw({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],hostVars:4,hostBindings:function(n,o){n&2&&(NC(o.hostClasses()),Kg("no-bg",o.noBg()));},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"],noBg:[1,"noBg"]},ngContentSelectors:u,decls:1,vars:0,template:function(n,o){n&1&&(aC(),cC(0));},styles:[`[shButton]{--btn-h: 2.5rem;--btn-mw: 2.5rem;--btn-f: var(--paragraph-20);--btn-a-opacity: .05;--btn-bs: var(--ship-button-shadow, none);display:inline-flex;align-items:center;justify-content:center;gap:.6875rem;position:relative;padding:0 .75rem;transition:color 80ms linear;min-width:var(--btn-mw);cursor:pointer;outline:none;line-height:inherit;-webkit-user-select:none;user-select:none;appearance:none;overflow:visible;vertical-align:middle;text-decoration:none;height:var(--btn-h);box-shadow:var(--btn-bs);font:var(--btn-f);transition:transform .25s ease-in;transform:scale(1)}[shButton]:before{content:"";position:absolute;inset:0;background:radial-gradient(#000 30%,#0000);opacity:0;transition:opacity 175ms linear}[shButton]:active{transform:scale(.98)}[shButton]:active:before{opacity:var(--btn-a-opacity)}[shButton].raised,[shButton].flat{--btn-a-opacity: .1}[shButton] sh-icon{rotate:var(--btn-ir);transition:rotate 125ms ease-in-out}[shButton] sh-icon:first-child{margin-left:-.1875rem}[shButton] sh-icon:last-child{margin-right:-.1875rem}[shButton].rotated-icon sh-icon{--btn-ir: 180deg}[shButton].small{--btn-h: 2rem;--btn-mw: 2rem;--btn-f: var(--paragraph-30);padding:0 .5rem;gap:.3125rem}[shButton].small sh-icon{font-size:1rem}[shButton].small sh-icon:first-child{margin-left:-.0625rem}[shButton].small sh-icon:last-child{margin-right:-.0625rem}[shButton].xsmall{--btn-h: 1.5rem;--btn-mw: 1.5rem;--btn-f: var(--paragraph-40);padding:0 .5rem;gap:.25rem}[shButton].xsmall sh-icon{font-size:.75rem}[shButton].xsmall sh-icon:first-child{margin-left:-.1875rem}[shButton].xsmall sh-icon:last-child{margin-right:-.1875rem}[shButton].no-bg{--sheet-bg: transparent;background:transparent}[shButton].no-bg.simple{--sheet-bc: transparent}[shButton][disabled]{opacity:.5;pointer-events:none;-webkit-user-select:none;user-select:none}[shButton][readonly],[shButton].readonly{pointer-events:none;-webkit-user-select:none;user-select:none}[shButton][disabled]:active,[shButton][readonly]:active{transform:scale(1)}
14
14
  `],encapsulation:2});}}return e})();function v$1(e,a){if(e&1&&(Qi$1(0,"p"),jC(1),$l()),e&2){let t=iC();CE(),im(t._data().message);}}function S$1(e,a){if(e&1){let t=vT();Qi$1(0,"button",5),Hg("click",function(){Od(t);let p=iC();return Pd(p.close("cancel"))}),jC(1),$l();}if(e&2){let t=iC();CE(),im(t._data().cancelText);}}function k$2(e,a){if(e&1){let t=vT();Qi$1(0,"button",6),Hg("click",function(){Od(t);let p=iC();return Pd(p.close("confirm"))}),jC(1),$l();}if(e&2){let t=iC();CE(),im(t._data().confirmText);}}var w$1={title:$localize`Are you sure?`,confirmText:void 0,cancelText:$localize`Cancel`},h$1=class e{data=E1();_data=Nt$3(()=>l$3(l$3({},w$1),this.data()));closed=I1();close(a="confirm"){this.closed.emit(a==="confirm");}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=hw({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["shButton","",1,""],["shButton","",1,"raised","primary"],["shButton","",1,"",3,"click"],["shButton","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(Qi$1(0,"header",0)(1,"h3"),jC(2),$l()(),Qi$1(3,"div",1),aT(4,v$1,2,1,"p"),$l(),Qi$1(5,"footer",2),aT(6,S$1,2,1,"button",3),aT(7,k$2,2,1,"button",4),$l()),t&2&&(CE(2),im(c._data().title),CE(2),cT(c._data().message?4:-1),CE(2),cT(c._data().cancelText?6:-1),CE(),cT(c._data().confirmText?7:-1));},dependencies:[v$2],styles:["[_nghost-%COMP%]{display:block}"]})};var h={Starting_Operation:$localize`Starting operation …`,Backup_Begin:$localize`Starting backup …`,Backup_PreBackupVerify:$localize`Verifying backend data …`,Backup_PostBackupTest:$localize`Verifying remote data …`,Backup_PreviousBackupFinalize:$localize`Completing previous backup …`,Backup_ProcessingFiles:$localize`Processing files to backup …`,Backup_Finalize:$localize`Completing backup …`,Backup_WaitForUpload:$localize`Waiting for upload to finish …`,Backup_Delete:$localize`Deleting unwanted files …`,Backup_Compact:$localize`Compacting remote data …`,Backup_VerificationUpload:$localize`Uploading verification file …`,Backup_PostBackupVerify:$localize`Verifying backend data …`,Backup_Lock:$localize`Locking remote data …`,Backup_Complete:$localize`Backup complete!`,Backup_RemoteSynchronization:$localize`Synchronizing secondary destination(s) …`,Restore_Begin:$localize`Starting restore …`,Restore_RecreateDatabase:$localize`Rebuilding local database …`,Restore_PreRestoreVerify:$localize`Verifying remote data …`,Restore_CreateFileList:$localize`Building list of files to restore …`,Restore_CreateTargetFolders:$localize`Creating target folders …`,Restore_ScanForExistingFiles:$localize`Scanning existing files …`,Restore_ScanForLocalBlocks:$localize`Scanning for local blocks …`,Restore_PatchWithLocalBlocks:$localize`Patching files with local blocks …`,Restore_Download:$localize`Downloading files …`,Restore_PatchWithRemoteFiles:$localize`Patching files with remote data …`,Restore_VerifyRestoredFiles:$localize`Verifying restored files …`,Restore_Finaluze:$localize`Finalizing restore …`,Restore_Complete:$localize`Restore complete!`,Recreate_Begin:$localize`Starting database recreate …`,Recreate_Delete:$localize`Deleting old database …`,Recreate_Create:$localize`Creating new database …`,Recreate_Download:$localize`Downloading files …`,Recreate_Process:$localize`Processing files …`,Recreate_Complete:$localize`Database recreate complete!`,Verify_Begin:$localize`Starting verification …`,Verify_Download:$localize`Downloading files …`,Verify_Process:$localize`Processing files …`,Verify_Complete:$localize`Verification complete!`,BugReport_Begin:$localize`Starting bug report …`,BugReport_Gathering:$localize`Gathering information …`,BugReport_Complete:$localize`Bug report complete!`,List_Begin:$localize`Starting list …`,List_Download:$localize`Downloading files …`,List_Process:$localize`Processing files …`,List_Complete:$localize`List complete!`,Delete_Begin:$localize`Starting delete …`,Delete_Download:$localize`Downloading files …`,Delete_Process:$localize`Processing files …`,Delete_Complete:$localize`Delete complete!`,Compact_Begin:$localize`Starting compact …`,Compact_Download:$localize`Downloading files …`,Compact_Process:$localize`Processing files …`,Compact_Complete:$localize`Compact complete!`,Restore_DownloadingRemoteFiles:$localize`Downloading files …`,Restore_PostRestoreVerify:$localize`Verifying restored files …`,Recreate_Running:$localize`Recreating database …`,Vacuum_Running:$localize`Vacuuming database …`,Repair_Running:$localize`Repairing database …`,Verify_Running:$localize`Verifying files …`,BugReport_Running:$localize`Creating bug report …`,Delete_Listing:$localize`Listing remote files …`,Delete_Deleting:$localize`Deleting remote files …`,PurgeFiles_Begin:$localize`Listing remote files for purge …`,PurgeFiles_Process:$localize`Purging files …`,PurgeFiles_Compact:$localize`Compacting remote data …`,PurgeFiles_Complete:$localize`Purging files complete!`,ReadLockInfo_Running:$localize`Reading lock info …`,Sync_Begin:$localize`Starting sync …`,Sync_CountingFiles:$localize`Counting files to sync …`,Sync_ProcessingFiles:$localize`Processing files to sync …`,Sync_WaitForUpload:$localize`Waiting for upload to finish …`,Sync_Complete:$localize`Sync complete!`,Error:$localize`Error!`};var y$2=class p{#i=T$7(m$1);#o=T$7(C);#t=T$7(g$1);#e=T$7(Q$2);#c=T$7(be$3);#g=T$7(m$3);#l=Ge$5(false);#a=Ge$5(null);statusData=this.#a.asReadonly();lastState=null;serverState=Nt$3(()=>{let e=this.#e.serverState();return e?(e.ProposedSchedule=e.ProposedSchedule?.map(i=>m$6(l$3({},i),{backup:i.Item1?this.#t.getBackupById(i.Item1):null}))??null,this.lastState=e,e):this.lastState});hasProgressOnWebsocket=Nt$3(()=>this.#g.hasProgressSubscribeOption()&&this.#e.getConnectionMethod()==="websocket");clientIsRunning=Nt$3(()=>this.serverState()?.ProgramState==="Running");runningBackupId=Nt$3(()=>{let e=this.statusData();return !!(this.serverState()?.ActiveTask&&e?.task?.Status&&e?.task?.Status!=="Completed")?e?.BackupID??null:null});isResuming=Ge$5(false);isFetching=this.#l.asReadonly();connectionStatus=this.#e.connectionStatus;pollingInterval;#h=za(()=>{let e=this.#e.serverState();e?.ActiveTask||this.#t.getBackups(true),this.hasProgressOnWebsocket()&&(this.#e.subscribe("progress"),this.#e.subscribe("taskqueue")),e?.ActiveTask&&this.pollingInterval===void 0?this.startPollingProgress():e?.ActiveTask||this.stopPollingProgress();});#m=za(()=>{let e=this.#e.progressState(),i=this.#e.taskQueueState();if(e){let o=i?.find(t=>t.ID===e.TaskID)??null;this.#r(m$6(l$3({},e),{task:o}));}});setConnectionMethod(e){this.#e.setConnectionMethod(e);}startPollingProgress(){this.hasProgressOnWebsocket()?this.#e.subscribe("progress"):this.pollingInterval=setInterval(()=>{this.#s();},1e3);}stopPollingProgress(){clearInterval(this.pollingInterval);}fetchProgressState(){this.#s();}pauseResume(){return this.isResuming.set(true),this.#o.postApiV1ServerstateResume().pipe(zu(()=>this.isResuming.set(false)))}resumeDialogCheck(e){if(!this.clientIsRunning()){this.#c.open(h$1,{data:{title:$localize`Server paused`,message:$localize`Server is currently paused. Do you want to resume now?`,confirmText:$localize`Resume`,cancelText:$localize`No, I'll resume later`},closed:i=>{i&&this.pauseResume().subscribe({next:()=>{e();}});}});return}e();}#s(){this.#l.set(true),this.#o.getApiV1Progressstate().pipe(Qu(e=>{let i=e.TaskID??null;return i===null?iy(e):this.#o.getApiV1TaskByTaskid({taskid:i}).pipe(pt$2(o=>m$6(l$3({},e),{task:o??null})))}),zu(()=>this.#l.set(false))).subscribe({next:e=>{this.#r(e),this.serverState()?.ActiveTask==null&&this.stopPollingProgress();},error:e=>{e.status===404&&this.stopPollingProgress();}});}#r(e){let i=e.TaskID??null,o=e.BackupID??null;i!==null&&o!==null&&(e.backup=this.#t.getBackupById(o)),this.#a.set(m$6(l$3({},e),{progress:this.#p(e),statusText:this.#d(e),fileStatusText:this.#f(e),fileCountProgressText:this.#u(e),actionText:e.backup?.Backup?.Name??$localize`Running task`}));}#p(e){let i=-1;if(e.task&&e)if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"||e.Phase==="Sync_ProcessingFiles")if(e.StillCounting)i=0;else {let o=e.CurrentFilecomplete?0:e.CurrentFileoffset;e.TotalFileCount-e.ProcessedFileCount;e.TotalFileSize-e.ProcessedFileSize-o;i=(e.ProcessedFileSize+o)/e.TotalFileSize,e.ProcessedFileCount===0?i=0:i>=.9&&(i=.9);}else e.Phase==="Sync_CountingFiles"?i=0:e.Phase==="Backup_Finalize"||e.Phase==="Backup_WaitForUpload"||e.Phase==="Sync_WaitForUpload"?i=.9:e.Phase==="Backup_Delete"||e.Phase==="Backup_Compact"?i=.95:e.Phase==="Backup_VerificationUpload"||e.Phase==="Backup_PostBackupVerify"?i=.98:e.Phase==="Backup_Complete"||e.Phase==="Sync_Complete"?i=1:e.Phase==="Backup_RemoteSynchronization"?i=e.OverallProgress>0?e.OverallProgress:0:e.OverallProgress>0&&(i=e.OverallProgress);return i}#n(e){let i=(e.ActiveTransfers??[]).map(t=>t.BackendSpeed).reduce((t,l)=>(t??0)+(l??0),0)??-1,o=i<=0?e.BackendSpeed:i;return (o??-1)<0?"":` at ${this.#i.transform(o)}/s`}#f(e){let i=(["Backup_WaitForUpload","Backup_ProcessingFiles","Sync_WaitForUpload","Sync_ProcessingFiles"].includes(e.Phase)?e?.BackendFileProgress:e.CurrentFileoffset)??0,o=(["Backup_WaitForUpload","Backup_ProcessingFiles","Sync_WaitForUpload","Sync_ProcessingFiles"].includes(e.Phase)?e?.BackendFileSize:e.CurrentFilesize)??0;if(!e.CurrentFilename)return "";let t=e.CurrentFilename.length>42?"..."+e.CurrentFilename.slice(-42):e.CurrentFilename,l=(i/o*100).toFixed(1);return $localize`${t} | File processed: ${this.#i.transform(i)}/${this.#i.transform(o)} - ${l}%`}#u(e){return $localize`Files processed ${e.ProcessedFileCount}/${e.TotalFileCount}`}#d(e){let i="Running \u2026";if(e.task&&e){if(i=e.Phase?h[e.Phase]??e.Phase:"Running \u2026",e.TotalFileCount===0)return i;if(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Restore_DownloadingRemoteFiles"||e.Phase==="Sync_ProcessingFiles"||e.Phase==="Sync_CountingFiles")if(e.StillCounting||e.Phase==="Sync_CountingFiles")i=`Counting (${e.TotalFileCount} files found, ${this.#i.transform(e.TotalFileSize)})`;else {let o=e.CurrentFilecomplete?0:e.CurrentFileoffset,t=e.TotalFileCount-e.ProcessedFileCount,l=e.TotalFileSize-e.ProcessedFileSize-o,f=e.Phase==="Restore_DownloadingRemoteFiles"?"Restoring: ":"",a=this.#n(e);(e.Phase==="Backup_ProcessingFiles"||e.Phase==="Sync_ProcessingFiles")&&t===0?i=`Completing upload ${a}`:e.BackendIsBlocking??false?i=`Waiting for transfers ${a}`:i=`${f}${t} files (${this.#i.transform(l)}) to go ${a}`;}else if(e.Phase==="Backup_WaitForUpload"||e.Phase==="Sync_WaitForUpload"){let o=this.#n(e);o!==""&&(i=`Waiting for upload to finish ${o}`);}else if(e.Phase==="Backup_RemoteSynchronization"){let o=e.RemoteSyncDestinationCount??0,t=e.RemoteSyncDestinationIndex??0,l=o>1?` (${t}/${o})`:"";if(e.TotalFileCount>0){let f=e.TotalFileCount-e.ProcessedFileCount,a=e.TotalFileSize-e.ProcessedFileSize,b=this.#n(e);i=`Synchronizing secondary destination${l}: ${f} files (${this.#i.transform(a)}) to go ${b}`;}else l&&(i=`${h[e.Phase]}`.replace("\u2026",`${l} \u2026`));}}return i}static \u0275fac=function(i){return new(i||p)};static \u0275prov=ee$5({token:p,factory:p.\u0275fac,providedIn:"root"})};var l$1=class r{#e=T$7(C);#o=T$7(y$2);#s=T$7(Q$2);#a=T$7(m$3);#n=T$7(T$1);serverState=this.#o.serverState;serverStateEffect=za(()=>{let t=this.#o.serverState();t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID);});#r=-1;#t=Ge$5([]);#i=Ge$5([]);notifications=this.#t.asReadonly();pendingRefresh=false;constructor(){this.#n.subscribe("notifications");}init(){this.notifications().length===0&&this.getNotifications();}notificationsEffect=za(()=>{let t=this.#n.notificationState();t&&this.#t.set(t);});pendingRefreshEffect=za(()=>{this.#s.isConnectionMethodSet()&&this.pendingRefresh&&(this.pendingRefresh=false,this.getNotifications());});#c=Nt$3(()=>{let t=this.#s.getConnectionMethod()==="websocket",i=this.#a.hasWsRemoteControl();return t&&i});updateLastNotificationEventId(t){this.#r!==t&&(this.#r=t,this.getNotifications());}getNotifications(){if(!this.#c()){if(!this.#s.isConnectionMethodSet()){this.pendingRefresh=true;return}this.#e.getApiV1Notifications().pipe(jo$1(1),rd(t=>this.#t.set(t))).subscribe();}}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(jo$1(1)).subscribe();}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(jo$1(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([]);}});}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(Hs(()=>iy(e))));wy(i).pipe(jo$1(1)).subscribe({next:e=>{let D=e.filter(a=>a!=null&&"ID"in a);this.#t.set(D),this.#i.set([]);},error:()=>{this.#t.set(this.#i()),this.#i.set([]);}});}static \u0275fac=function(i){return new(i||r)};static \u0275prov=ee$5({token:r,factory:r.\u0275fac,providedIn:"root"})};var He$1=60,ge=He$1*60,$e$1=ge*24,Nt=$e$1*7,H=1e3,I=He$1*H,F$1=ge*H,J=$e$1*H,te=Nt*H,V$1="millisecond",b="second",A="minute",O$1="hour",D="day",W="week",v="month",re="quarter",S="year",x$1="date",Te="YYYY-MM-DDTHH:mm:ssZ",ue$1="Invalid Date",we=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ae=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var ne={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return "["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};var Me=function(e,t,r){var a=String(e);return !a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},zt=function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),s=r%60;return (t<=0?"+":"-")+Me(a,2,"0")+":"+Me(s,2,"0")},Et=function n(e,t){if(e.date()<t.date())return -n(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(r,v),s=t-a<0,i=e.clone().add(r+(s?-1:1),v);return +(-(r+(t-a)/(s?a-i:i-a))||0)},It=function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},xt=function(e){var t={M:v,y:S,w:W,d:D,D:x$1,h:O$1,m:A,s:b,ms:V$1,Q:re};return t[e]||String(e||"").toLowerCase().replace(/s$/,"")},Ft=function(e){return e===void 0},je$1={s:Me,z:zt,m:Et,a:It,p:xt,u:Ft};var Z="en",U={};U[Z]=ne;var Ce="$isDayjsObject",he=function(e){return e instanceof ie||!!(e&&e[Ce])},se=function n(e,t,r){var a;if(!e)return Z;if(typeof e=="string"){var s=e.toLowerCase();U[s]&&(a=s),t&&(U[s]=t,a=s);var i=e.split("-");if(!a&&i.length>1)return n(i[0])}else {var o=e.name;U[o]=e,a=o;}return !r&&a&&(Z=a),a||!r&&Z},c$1=function(e,t){if(he(e))return e.clone();var r=typeof t=="object"?t:{};return r.date=e,r.args=arguments,new ie(r)},Jt=function(e,t){return c$1(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})},l=je$1;l.l=se;l.i=he;l.w=Jt;var Ut=function(e){var t=e.date,r=e.utc;if(t===null)return new Date(NaN);if(l.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var a=t.match(we);if(a){var s=a[2]-1||0,i=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],s,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)},ie=(function(){function n(t){this.$L=se(t.locale,null,true),this.parse(t),this.$x=this.$x||t.x||{},this[Ce]=true;}var e=n.prototype;return e.parse=function(r){this.$d=Ut(r),this.init();},e.init=function(){var r=this.$d;this.$y=r.getFullYear(),this.$M=r.getMonth(),this.$D=r.getDate(),this.$W=r.getDay(),this.$H=r.getHours(),this.$m=r.getMinutes(),this.$s=r.getSeconds(),this.$ms=r.getMilliseconds();},e.$utils=function(){return l},e.isValid=function(){return this.$d.toString()!==ue$1},e.isSame=function(r,a){var s=c$1(r);return this.startOf(a)<=s&&s<=this.endOf(a)},e.isAfter=function(r,a){return c$1(r)<this.startOf(a)},e.isBefore=function(r,a){return this.endOf(a)<c$1(r)},e.$g=function(r,a,s){return l.u(r)?this[a]:this.set(s,r)},e.unix=function(){return Math.floor(this.valueOf()/1e3)},e.valueOf=function(){return this.$d.getTime()},e.startOf=function(r,a){var s=this,i=l.u(a)?true:a,o=l.p(r),d=function(C,f){var h=l.w(s.$u?Date.UTC(s.$y,f,C):new Date(s.$y,f,C),s);return i?h:h.endOf(D)},m=function(C,f){var h=[0,0,0,0],L=[23,59,59,999];return l.w(s.toDate()[C].apply(s.toDate("s"),(i?h:L).slice(f)),s)},u=this.$W,Y=this.$M,M=this.$D,p="set"+(this.$u?"UTC":"");switch(o){case S:return i?d(1,0):d(31,11);case v:return i?d(1,Y):d(0,Y+1);case W:{var y=this.$locale().weekStart||0,z=(u<y?u+7:u)-y;return d(i?M-z:M+(6-z),Y)}case D:case x$1:return m(p+"Hours",0);case O$1:return m(p+"Minutes",1);case A:return m(p+"Seconds",2);case b:return m(p+"Milliseconds",3);default:return this.clone()}},e.endOf=function(r){return this.startOf(r,false)},e.$set=function(r,a){var s,i=l.p(r),o="set"+(this.$u?"UTC":""),d=(s={},s[D]=o+"Date",s[x$1]=o+"Date",s[v]=o+"Month",s[S]=o+"FullYear",s[O$1]=o+"Hours",s[A]=o+"Minutes",s[b]=o+"Seconds",s[V$1]=o+"Milliseconds",s)[i],m=i===D?this.$D+(a-this.$W):a;if(i===v||i===S){var u=this.clone().set(x$1,1);u.$d[d](m),u.init(),this.$d=u.set(x$1,Math.min(this.$D,u.daysInMonth())).$d;}else d&&this.$d[d](m);return this.init(),this},e.set=function(r,a){return this.clone().$set(r,a)},e.get=function(r){return this[l.p(r)]()},e.add=function(r,a){var s=this,i;r=Number(r);var o=l.p(a),d=function(M){var p=c$1(s);return l.w(p.date(p.date()+Math.round(M*r)),s)};if(o===v)return this.set(v,this.$M+r);if(o===S)return this.set(S,this.$y+r);if(o===D)return d(1);if(o===W)return d(7);var m=(i={},i[A]=I,i[O$1]=F$1,i[b]=H,i)[o]||1,u=this.$d.getTime()+r*m;return l.w(u,this)},e.subtract=function(r,a){return this.add(r*-1,a)},e.format=function(r){var a=this,s=this.$locale();if(!this.isValid())return s.invalidDate||ue$1;var i=r||Te,o=l.z(this),d=this.$H,m=this.$m,u=this.$M,Y=s.weekdays,M=s.months,p=s.meridiem,y=function(h,L,E,B){return h&&(h[L]||h(a,i))||E[L].slice(0,B)},z=function(h){return l.s(d%12||12,h,"0")},j=p||function(f,h,L){var E=f<12?"AM":"PM";return L?E.toLowerCase():E},C=function(h){switch(h){case "YY":return String(a.$y).slice(-2);case "YYYY":return l.s(a.$y,4,"0");case "M":return u+1;case "MM":return l.s(u+1,2,"0");case "MMM":return y(s.monthsShort,u,M,3);case "MMMM":return y(M,u);case "D":return a.$D;case "DD":return l.s(a.$D,2,"0");case "d":return String(a.$W);case "dd":return y(s.weekdaysMin,a.$W,Y,2);case "ddd":return y(s.weekdaysShort,a.$W,Y,3);case "dddd":return Y[a.$W];case "H":return String(d);case "HH":return l.s(d,2,"0");case "h":return z(1);case "hh":return z(2);case "a":return j(d,m,true);case "A":return j(d,m,false);case "m":return String(m);case "mm":return l.s(m,2,"0");case "s":return String(a.$s);case "ss":return l.s(a.$s,2,"0");case "SSS":return l.s(a.$ms,3,"0");case "Z":return o;}return null};return i.replace(ae,function(f,h){return h||C(f)||o.replace(":","")})},e.utcOffset=function(){return -Math.round(this.$d.getTimezoneOffset()/15)*15},e.diff=function(r,a,s){var i=this,o=l.p(a),d=c$1(r),m=(d.utcOffset()-this.utcOffset())*I,u=this-d,Y=function(){return l.m(i,d)},M;switch(o){case S:M=Y()/12;break;case v:M=Y();break;case re:M=Y()/3;break;case W:M=(u-m)/te;break;case D:M=(u-m)/J;break;case O$1:M=u/F$1;break;case A:M=u/I;break;case b:M=u/H;break;default:M=u;break}return s?M:l.a(M)},e.daysInMonth=function(){return this.endOf(v).$D},e.$locale=function(){return U[this.$L]},e.locale=function(r,a){if(!r)return this.$L;var s=this.clone(),i=se(r,a,true);return i&&(s.$L=i),s},e.clone=function(){return l.w(this.$d,this)},e.toDate=function(){return new Date(this.valueOf())},e.toJSON=function(){return this.isValid()?this.toISOString():null},e.toISOString=function(){return this.$d.toISOString()},e.toString=function(){return this.$d.toUTCString()},n})(),be=ie.prototype;c$1.prototype=be;[["$ms",V$1],["$s",b],["$m",A],["$H",O$1],["$W",D],["$M",v],["$y",S],["$D",x$1]].forEach(function(n){be[n[1]]=function(e){return this.$g(e,n[0],n[1])};});c$1.extend=function(n,e){return n.$i||(n(e,ie,c$1),n.$i=true),c$1};c$1.locale=se;c$1.isDayjs=he;c$1.unix=function(n){return c$1(n*1e3)};c$1.en=U[Z];c$1.Ls=U;c$1.p={};var _=c$1;var oe=J*365,ce=oe/12,Pt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,K={years:oe,months:ce,days:J,hours:F$1,minutes:I,seconds:H,milliseconds:1,weeks:te},_e=function(e){return e instanceof ze},Oe$1,N$2,Q$1=function(e,t,r){return new ze(e,r,t.$l)},X=function(e){return N$2.p(e)+"s"},Ne$1=function(e){return e<0},P$1=function(e){return Ne$1(e)?Math.ceil(e):Math.floor(e)},Wt=function(e){return Math.abs(e)},R=function(e,t){return e?Ne$1(e)?{negative:true,format:""+Wt(e)+t}:{negative:false,format:""+e+t}:{negative:false,format:""}},ze=(function(){function n(t,r,a){var s=this;if(this.$d={},this.$l=a,t===void 0&&(this.$ms=0,this.parseFromMilliseconds()),r)return Q$1(t*K[X(r)],this);if(typeof t=="number")return this.$ms=t,this.parseFromMilliseconds(),this;if(typeof t=="object")return Object.keys(t).forEach(function(m){s.$d[X(m)]=t[m];}),this.calMilliseconds(),this;if(typeof t=="string"){var i=t.match(Pt);if(i){var o=i.slice(2),d=o.map(function(m){return m!=null?Number(m):0});return this.$d.years=d[0],this.$d.months=d[1],this.$d.weeks=d[2],this.$d.days=d[3],this.$d.hours=d[4],this.$d.minutes=d[5],this.$d.seconds=d[6],this.calMilliseconds(),this}}return this}var e=n.prototype;return e.calMilliseconds=function(){var r=this;this.$ms=Object.keys(this.$d).reduce(function(a,s){return a+(r.$d[s]||0)*K[s]},0);},e.parseFromMilliseconds=function(){var r=this.$ms;this.$d.years=P$1(r/oe),r%=oe,this.$d.months=P$1(r/ce),r%=ce,this.$d.days=P$1(r/J),r%=J,this.$d.hours=P$1(r/F$1),r%=F$1,this.$d.minutes=P$1(r/I),r%=I,this.$d.seconds=P$1(r/H),r%=H,this.$d.milliseconds=r;},e.toISOString=function(){var r=R(this.$d.years,"Y"),a=R(this.$d.months,"M"),s=+this.$d.days||0;this.$d.weeks&&(s+=this.$d.weeks*7);var i=R(s,"D"),o=R(this.$d.hours,"H"),d=R(this.$d.minutes,"M"),m=this.$d.seconds||0;this.$d.milliseconds&&(m+=this.$d.milliseconds/1e3,m=Math.round(m*1e3)/1e3);var u=R(m,"S"),Y=r.negative||a.negative||i.negative||o.negative||d.negative||u.negative,M=o.format||d.format||u.format?"T":"",p=Y?"-":"",y=p+"P"+r.format+a.format+i.format+M+o.format+d.format+u.format;return y==="P"||y==="-P"?"P0D":y},e.toJSON=function(){return this.toISOString()},e.format=function(r){var a=r||"YYYY-MM-DDTHH:mm:ss",s={Y:this.$d.years,YY:N$2.s(this.$d.years,2,"0"),YYYY:N$2.s(this.$d.years,4,"0"),M:this.$d.months,MM:N$2.s(this.$d.months,2,"0"),D:this.$d.days,DD:N$2.s(this.$d.days,2,"0"),H:this.$d.hours,HH:N$2.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:N$2.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:N$2.s(this.$d.seconds,2,"0"),SSS:N$2.s(this.$d.milliseconds,3,"0")};return a.replace(ae,function(i,o){return o||String(s[i])})},e.as=function(r){return this.$ms/K[X(r)]},e.get=function(r){var a=this.$ms,s=X(r);return s==="milliseconds"?a%=1e3:s==="weeks"?a=P$1(a/K[s]):a=this.$d[s],a||0},e.add=function(r,a,s){var i;return a?i=r*K[X(a)]:_e(r)?i=r.$ms:i=Q$1(r,this).$ms,Q$1(this.$ms+i*(s?-1:1),this)},e.subtract=function(r,a){return this.add(r,a,true)},e.locale=function(r){var a=this.clone();return a.$l=r,a},e.clone=function(){return Q$1(this.$ms,this)},e.humanize=function(r){return Oe$1().add(this.$ms,"ms").locale(this.$l).fromNow(!r)},e.valueOf=function(){return this.asMilliseconds()},e.milliseconds=function(){return this.get("milliseconds")},e.asMilliseconds=function(){return this.as("milliseconds")},e.seconds=function(){return this.get("seconds")},e.asSeconds=function(){return this.as("seconds")},e.minutes=function(){return this.get("minutes")},e.asMinutes=function(){return this.as("minutes")},e.hours=function(){return this.get("hours")},e.asHours=function(){return this.as("hours")},e.days=function(){return this.get("days")},e.asDays=function(){return this.as("days")},e.weeks=function(){return this.get("weeks")},e.asWeeks=function(){return this.as("weeks")},e.months=function(){return this.get("months")},e.asMonths=function(){return this.as("months")},e.years=function(){return this.get("years")},e.asYears=function(){return this.as("years")},n})(),Ae=function(e,t,r){return e.add(t.years()*r,"y").add(t.months()*r,"M").add(t.days()*r,"d").add(t.hours()*r,"h").add(t.minutes()*r,"m").add(t.seconds()*r,"s").add(t.milliseconds()*r,"ms")},Ee=(function(n,e,t){Oe$1=t,N$2=t().$utils(),t.duration=function(s,i){var o=t.locale();return Q$1(s,{$l:o},i)},t.isDuration=_e;var r=e.prototype.add,a=e.prototype.subtract;e.prototype.add=function(s,i){return _e(s)?Ae(this,s,1):r.bind(this)(s,i)},e.prototype.subtract=function(s,i){return _e(s)?Ae(this,s,-1):a.bind(this)(s,i)};});var Ie=(function(n,e,t){n=n||{};var r=e.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};t.en.relativeTime=a,r.fromToBase=function(o,d,m,u,Y){for(var M=m.$locale().relativeTime||a,p=n.thresholds||[{l:"s",r:44,d:b},{l:"m",r:89},{l:"mm",r:44,d:A},{l:"h",r:89},{l:"hh",r:21,d:O$1},{l:"d",r:35},{l:"dd",r:25,d:D},{l:"M",r:45},{l:"MM",r:10,d:v},{l:"y",r:17},{l:"yy",d:S}],y=p.length,z,j,C,f=0;f<y;f+=1){var h=p[f];h.d&&(z=u?t(o).diff(m,h.d,true):m.diff(o,h.d,true));var L=(n.rounding||Math.round)(Math.abs(z));if(C=z>0,L<=h.r||!h.r){L<=1&&f>0&&(h=p[f-1]);var E=M[h.l];Y&&(L=Y(""+L)),typeof E=="string"?j=E.replace("%d",L):j=E(L,d,h.l,C);break}}if(d)return j;var B=C?M.future:M.past;return typeof B=="function"?B(j):B.replace("%s",j)};function s(o,d,m,u){return r.fromToBase(o,d,m,u)}r.to=function(o,d){return s(o,d,this,true)},r.from=function(o,d){return s(o,d,this)};var i=function(d){return d.$u?t.utc():t()};r.toNow=function(o){return this.to(i(this),o)},r.fromNow=function(o){return this.from(i(this),o)};});function ee(n){return n>1&&n<5&&~~(n/10)!==1}function g(n,e,t,r){var a=n+" ";switch(t){case "s":return e||r?"p\xE1r sekund":"p\xE1r sekundami";case "m":return e?"minuta":r?"minutu":"minutou";case "mm":return e||r?a+(ee(n)?"minuty":"minut"):a+"minutami";case "h":return e?"hodina":r?"hodinu":"hodinou";case "hh":return e||r?a+(ee(n)?"hodiny":"hodin"):a+"hodinami";case "d":return e||r?"den":"dnem";case "dd":return e||r?a+(ee(n)?"dny":"dn\xED"):a+"dny";case "M":return e||r?"m\u011Bs\xEDc":"m\u011Bs\xEDcem";case "MM":return e||r?a+(ee(n)?"m\u011Bs\xEDce":"m\u011Bs\xEDc\u016F"):a+"m\u011Bs\xEDci";case "y":return e||r?"rok":"rokem";case "yy":return e||r?a+(ee(n)?"roky":"let"):a+"lety"}}var xe$1={name:"cs",weekdays:"ned\u011Ble_pond\u011Bl\xED_\xFAter\xFD_st\u0159eda_\u010Dtvrtek_p\xE1tek_sobota".split("_"),weekdaysShort:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),weekdaysMin:"ne_po_\xFAt_st_\u010Dt_p\xE1_so".split("_"),months:"leden_\xFAnor_b\u0159ezen_duben_kv\u011Bten_\u010Derven_\u010Dervenec_srpen_z\xE1\u0159\xED_\u0159\xEDjen_listopad_prosinec".split("_"),monthsShort:"led_\xFAno_b\u0159e_dub_kv\u011B_\u010Dvn_\u010Dvc_srp_z\xE1\u0159_\u0159\xEDj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:g,m:g,mm:g,h:g,hh:g,d:g,dd:g,M:g,MM:g,y:g,yy:g}};_.locale(xe$1,null,true);var Fe$1=xe$1;var Je$1={name:"da",weekdays:"s\xF8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xF8rdag".split("_"),weekdaysShort:"s\xF8n._man._tirs._ons._tors._fre._l\xF8r.".split("_"),weekdaysMin:"s\xF8._ma._ti._on._to._fr._l\xF8.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xE5 sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xE5ned",MM:"%d m\xE5neder",y:"et \xE5r",yy:"%d \xE5r"}};_.locale(Je$1,null,true);var Ue$1=Je$1;var Rt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function $$1(n,e,t){var r=Rt[t];return Array.isArray(r)&&(r=r[e?0:1]),r.replace("%d",n)}var Pe$1={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:$$1,m:$$1,mm:$$1,h:$$1,hh:$$1,d:$$1,dd:$$1,M:$$1,MM:$$1,y:$$1,yy:$$1}};_.locale(Pe$1,null,true);var Ye=Pe$1;var Gt={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function T(n,e,t){var r=Gt[t];return Array.isArray(r)&&(r=r[e?0:1]),r.replace("%d",n)}var We$1={name:"de-ch",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),ordinal:function(e){return e+"."},weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:T,m:T,mm:T,h:T,hh:T,d:T,dd:T,M:T,MM:T,y:T,yy:T}};_.locale(We$1,null,true);var Re=We$1;var Ge$1={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return "["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}};_.locale(Ge$1,null,true);var qe=Ge$1;var Be$1={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xE1".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xEDa",dd:"%d d\xEDas",M:"un mes",MM:"%d meses",y:"un a\xF1o",yy:"%d a\xF1os"},ordinal:function(e){return e+"\xBA"}};_.locale(Be$1,null,true);var fe$1=Be$1;function w(n,e,t,r){var a={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"p\xE4iv\xE4",dd:"%d p\xE4iv\xE4\xE4",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_nelj\xE4_viisi_kuusi_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},s={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"p\xE4iv\xE4n",dd:"%d p\xE4iv\xE4n",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_nelj\xE4n_viiden_kuuden_seitsem\xE4n_kahdeksan_yhdeks\xE4n".split("_")},i=r&&!e?s:a,o=i[t];return n<10?o.replace("%d",i.numbers[n]):o.replace("%d",n)}var Ve$1={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xE4kuu_hein\xE4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xE4_hein\xE4_elo_syys_loka_marras_joulu".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s p\xE4\xE4st\xE4",past:"%s sitten",s:w,m:w,mm:w,h:w,hh:w,d:w,dd:w,M:w,MM:w,y:w,yy:w},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};_.locale(Ve$1,null,true);var Ze=Ve$1;var Ke={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){var t=e===1?"er":"";return ""+e+t}};_.locale(Ke,null,true);var pe=Ke;var Xe={name:"fr-ca",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),months:"janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),monthsShort:"janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"}};_.locale(Xe,null,true);var Qe=Xe;var et={name:"hu",weekdays:"vas\xE1rnap_h\xE9tf\u0151_kedd_szerda_cs\xFCt\xF6rt\xF6k_p\xE9ntek_szombat".split("_"),weekdaysShort:"vas_h\xE9t_kedd_sze_cs\xFCt_p\xE9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"janu\xE1r_febru\xE1r_m\xE1rcius_\xE1prilis_m\xE1jus_j\xFAnius_j\xFAlius_augusztus_szeptember_okt\xF3ber_november_december".split("_"),monthsShort:"jan_feb_m\xE1rc_\xE1pr_m\xE1j_j\xFAn_j\xFAl_aug_szept_okt_nov_dec".split("_"),ordinal:function(e){return e+"."},weekStart:1,relativeTime:{future:"%s m\xFAlva",past:"%s",s:function(e,t,r,a){return "n\xE9h\xE1ny m\xE1sodperc"+(a||t?"":"e")},m:function(e,t,r,a){return "egy perc"+(a||t?"":"e")},mm:function(e,t,r,a){return e+" perc"+(a||t?"":"e")},h:function(e,t,r,a){return "egy "+(a||t?"\xF3ra":"\xF3r\xE1ja")},hh:function(e,t,r,a){return e+" "+(a||t?"\xF3ra":"\xF3r\xE1ja")},d:function(e,t,r,a){return "egy "+(a||t?"nap":"napja")},dd:function(e,t,r,a){return e+" "+(a||t?"nap":"napja")},M:function(e,t,r,a){return "egy "+(a||t?"h\xF3nap":"h\xF3napja")},MM:function(e,t,r,a){return e+" "+(a||t?"h\xF3nap":"h\xF3napja")},y:function(e,t,r,a){return "egy "+(a||t?"\xE9v":"\xE9ve")},yy:function(e,t,r,a){return e+" "+(a||t?"\xE9v":"\xE9ve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};_.locale(et,null,true);var tt=et;var rt={name:"it",weekdays:"domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),weekStart:1,monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"tra %s",past:"%s fa",s:"qualche secondo",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},ordinal:function(e){return e+"\xBA"}};_.locale(rt,null,true);var ve=rt;var at={name:"ja",weekdays:"\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),weekdaysShort:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),weekdaysMin:"\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e){return e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"},meridiem:function(e){return e<12?"\u5348\u524D":"\u5348\u5F8C"},relativeTime:{future:"%s\u5F8C",past:"%s\u524D",s:"\u6570\u79D2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65E5",dd:"%d\u65E5",M:"1\u30F6\u6708",MM:"%d\u30F6\u6708",y:"1\u5E74",yy:"%d\u5E74"}};_.locale(at,null,true);var nt=at;var st={name:"ko",weekdays:"\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),weekdaysShort:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),weekdaysMin:"\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),months:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),monthsShort:"1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),ordinal:function(e){return e+"\uC77C"},formats:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\uB144 MMMM D\uC77C",LLL:"YYYY\uB144 MMMM D\uC77C A h:mm",LLLL:"YYYY\uB144 MMMM D\uC77C dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\uB144 MMMM D\uC77C",lll:"YYYY\uB144 MMMM D\uC77C A h:mm",llll:"YYYY\uB144 MMMM D\uC77C dddd A h:mm"},meridiem:function(e){return e<12?"\uC624\uC804":"\uC624\uD6C4"},relativeTime:{future:"%s \uD6C4",past:"%s \uC804",s:"\uBA87 \uCD08",m:"1\uBD84",mm:"%d\uBD84",h:"\uD55C \uC2DC\uAC04",hh:"%d\uC2DC\uAC04",d:"\uD558\uB8E8",dd:"%d\uC77C",M:"\uD55C \uB2EC",MM:"%d\uB2EC",y:"\uC77C \uB144",yy:"%d\uB144"}};_.locale(st,null,true);var it=st;var _t={name:"nl",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),ordinal:function(e){return "["+e+(e===1||e===8||e>=20?"ste":"de")+"]"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"een minuut",mm:"%d minuten",h:"een uur",hh:"%d uur",d:"een dag",dd:"%d dagen",M:"een maand",MM:"%d maanden",y:"een jaar",yy:"%d jaar"}};_.locale(_t,null,true);var ot=_t;var dt={name:"nl-be",weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),weekStart:1,weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),ordinal:function(e){return e},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"\xE9\xE9n minuut",mm:"%d minuten",h:"\xE9\xE9n uur",hh:"%d uur",d:"\xE9\xE9n dag",dd:"%d dagen",M:"\xE9\xE9n maand",MM:"%d maanden",y:"\xE9\xE9n jaar",yy:"%d jaar"}};_.locale(dt,null,true);var mt=dt;function de(n){return n%10<5&&n%10>1&&~~(n/10)%10!==1}function G(n,e,t){var r=n+" ";switch(t){case "m":return e?"minuta":"minut\u0119";case "mm":return r+(de(n)?"minuty":"minut");case "h":return e?"godzina":"godzin\u0119";case "hh":return r+(de(n)?"godziny":"godzin");case "MM":return r+(de(n)?"miesi\u0105ce":"miesi\u0119cy");case "yy":return r+(de(n)?"lata":"lat")}}var ut="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015Bnia_pa\u017Adziernika_listopada_grudnia".split("_"),lt="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017Adziernik_listopad_grudzie\u0144".split("_"),qt=/D MMMM/,ye=function(e,t){return qt.test(t)?ut[e.month()]:lt[e.month()]};ye.s=lt;ye.f=ut;var Mt={name:"pl",weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015Broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015Br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015Ar_Cz_Pt_So".split("_"),months:ye,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017A_lis_gru".split("_"),ordinal:function(e){return e+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:G,mm:G,h:G,hh:G,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:G,y:"rok",yy:G},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};_.locale(Mt,null,true);var ht=Mt;var ct={name:"pt",weekdays:"domingo_segunda-feira_ter\xE7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xE1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sab".split("_"),weekdaysMin:"Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_Sa".split("_"),months:"janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(e){return e+"\xBA"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xE0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xE0s] HH:mm"},relativeTime:{future:"em %s",past:"h\xE1 %s",s:"alguns segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xEAs",MM:"%d meses",y:"um ano",yy:"%d anos"}};_.locale(ct,null,true);var Yt=ct;var ft="\u044F\u043D\u0432\u0430\u0440\u044F_\u0444\u0435\u0432\u0440\u0430\u043B\u044F_\u043C\u0430\u0440\u0442\u0430_\u0430\u043F\u0440\u0435\u043B\u044F_\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044F_\u043E\u043A\u0442\u044F\u0431\u0440\u044F_\u043D\u043E\u044F\u0431\u0440\u044F_\u0434\u0435\u043A\u0430\u0431\u0440\u044F".split("_"),pt="\u044F\u043D\u0432\u0430\u0440\u044C_\u0444\u0435\u0432\u0440\u0430\u043B\u044C_\u043C\u0430\u0440\u0442_\u0430\u043F\u0440\u0435\u043B\u044C_\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043D\u0442\u044F\u0431\u0440\u044C_\u043E\u043A\u0442\u044F\u0431\u0440\u044C_\u043D\u043E\u044F\u0431\u0440\u044C_\u0434\u0435\u043A\u0430\u0431\u0440\u044C".split("_"),vt="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440._\u0430\u043F\u0440._\u043C\u0430\u044F_\u0438\u044E\u043D\u044F_\u0438\u044E\u043B\u044F_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),yt="\u044F\u043D\u0432._\u0444\u0435\u0432\u0440._\u043C\u0430\u0440\u0442_\u0430\u043F\u0440._\u043C\u0430\u0439_\u0438\u044E\u043D\u044C_\u0438\u044E\u043B\u044C_\u0430\u0432\u0433._\u0441\u0435\u043D\u0442._\u043E\u043A\u0442._\u043D\u043E\u044F\u0431._\u0434\u0435\u043A.".split("_"),Lt=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function Bt(n,e){var t=n.split("_");return e%10===1&&e%100!==11?t[0]:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?t[1]:t[2]}function q$1(n,e,t){var r={mm:e?"\u043C\u0438\u043D\u0443\u0442\u0430_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442":"\u043C\u0438\u043D\u0443\u0442\u0443_\u043C\u0438\u043D\u0443\u0442\u044B_\u043C\u0438\u043D\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043E\u0432",dd:"\u0434\u0435\u043D\u044C_\u0434\u043D\u044F_\u0434\u043D\u0435\u0439",MM:"\u043C\u0435\u0441\u044F\u0446_\u043C\u0435\u0441\u044F\u0446\u0430_\u043C\u0435\u0441\u044F\u0446\u0435\u0432",yy:"\u0433\u043E\u0434_\u0433\u043E\u0434\u0430_\u043B\u0435\u0442"};return t==="m"?e?"\u043C\u0438\u043D\u0443\u0442\u0430":"\u043C\u0438\u043D\u0443\u0442\u0443":n+" "+Bt(r[t],+n)}var Le$1=function(e,t){return Lt.test(t)?ft[e.month()]:pt[e.month()]};Le$1.s=pt;Le$1.f=ft;var De$1=function(e,t){return Lt.test(t)?vt[e.month()]:yt[e.month()]};De$1.s=yt;De$1.f=vt;var Dt={name:"ru",weekdays:"\u0432\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435_\u043F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A_\u0432\u0442\u043E\u0440\u043D\u0438\u043A_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043F\u044F\u0442\u043D\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043E\u0442\u0430".split("_"),weekdaysShort:"\u0432\u0441\u043A_\u043F\u043D\u0434_\u0432\u0442\u0440_\u0441\u0440\u0434_\u0447\u0442\u0432_\u043F\u0442\u043D_\u0441\u0431\u0442".split("_"),weekdaysMin:"\u0432\u0441_\u043F\u043D_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043F\u0442_\u0441\u0431".split("_"),months:Le$1,monthsShort:De$1,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043D\u0430\u0437\u0430\u0434",s:"\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E \u0441\u0435\u043A\u0443\u043D\u0434",m:q$1,mm:q$1,h:"\u0447\u0430\u0441",hh:q$1,d:"\u0434\u0435\u043D\u044C",dd:q$1,M:"\u043C\u0435\u0441\u044F\u0446",MM:q$1,y:"\u0433\u043E\u0434",yy:q$1},ordinal:function(e){return e},meridiem:function(e){return e<4?"\u043D\u043E\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043D\u044F":"\u0432\u0435\u0447\u0435\u0440\u0430"}};_.locale(Dt,null,true);var St=Dt;var k$1={words:{m:["jedan minut","jednog minuta"],mm:["%d minut","%d minuta","%d minuta"],h:["jedan sat","jednog sata"],hh:["%d sat","%d sata","%d sati"],d:["jedan dan","jednog dana"],dd:["%d dan","%d dana","%d dana"],M:["jedan mesec","jednog meseca"],MM:["%d mesec","%d meseca","%d meseci"],y:["jednu godinu","jedne godine"],yy:["%d godinu","%d godine","%d godina"]},correctGrammarCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},relativeTimeFormatter:function(e,t,r,a){var s=k$1.words[r];if(r.length===1)return r==="y"&&t?"jedna godina":a||t?s[0]:s[1];var i=k$1.correctGrammarCase(e,s);return r==="yy"&&t&&i==="%d godinu"?e+" godina":i.replace("%d",e)}},kt={name:"sr",weekdays:"Nedelja_Ponedeljak_Utorak_Sreda_\u010Cetvrtak_Petak_Subota".split("_"),weekdaysShort:"Ned._Pon._Uto._Sre._\u010Cet._Pet._Sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010De_pe_su".split("_"),months:"Januar_Februar_Mart_April_Maj_Jun_Jul_Avgust_Septembar_Oktobar_Novembar_Decembar".split("_"),monthsShort:"Jan._Feb._Mar._Apr._Maj_Jun_Jul_Avg._Sep._Okt._Nov._Dec.".split("_"),weekStart:1,relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",m:k$1.relativeTimeFormatter,mm:k$1.relativeTimeFormatter,h:k$1.relativeTimeFormatter,hh:k$1.relativeTimeFormatter,d:k$1.relativeTimeFormatter,dd:k$1.relativeTimeFormatter,M:k$1.relativeTimeFormatter,MM:k$1.relativeTimeFormatter,y:k$1.relativeTimeFormatter,yy:k$1.relativeTimeFormatter},ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"}};_.locale(kt,null,true);var Ht=kt;var gt={name:"sv",weekdays:"s\xF6ndag_m\xE5ndag_tisdag_onsdag_torsdag_fredag_l\xF6rdag".split("_"),weekdaysShort:"s\xF6n_m\xE5n_tis_ons_tor_fre_l\xF6r".split("_"),weekdaysMin:"s\xF6_m\xE5_ti_on_to_fr_l\xF6".split("_"),months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekStart:1,yearStart:4,ordinal:function(e){var t=e%10,r=t===1||t===2?"a":"e";return "["+e+r+"]"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},relativeTime:{future:"om %s",past:"f\xF6r %s sedan",s:"n\xE5gra sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xE5nad",MM:"%d m\xE5nader",y:"ett \xE5r",yy:"%d \xE5r"}};_.locale(gt,null,true);var $t=gt;var Tt={name:"tr",weekdays:"Pazar_Pazartesi_Sal\u0131_\xC7ar\u015Famba_Per\u015Fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xC7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xC7a_Pe_Cu_Ct".split("_"),months:"Ocak_\u015Eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011Fustos_Eyl\xFCl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015Eub_Mar_Nis_May_Haz_Tem_A\u011Fu_Eyl_Eki_Kas_Ara".split("_"),weekStart:1,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"%s sonra",past:"%s \xF6nce",s:"birka\xE7 saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xFCn",dd:"%d g\xFCn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e){return e+"."}};_.locale(Tt,null,true);var wt=Tt;var jt={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return t==="W"?e+"\u5468":e+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};_.locale(jt,null,true);var Ct=jt;var bt={name:"zh-hk",months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),ordinal:function(e,t){return t==="W"?e+"\u9031":e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"\u4E00\u5206\u9418",mm:"%d \u5206\u9418",h:"\u4E00\u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"\u4E00\u5929",dd:"%d \u5929",M:"\u4E00\u500B\u6708",MM:"%d \u500B\u6708",y:"\u4E00\u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};_.locale(bt,null,true);var At=bt;var Ot={name:"zh-tw",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(e,t){return t==="W"?e+"\u9031":e+"\u65E5"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5 HH:mm",LLLL:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5167",past:"%s\u524D",s:"\u5E7E\u79D2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5C0F\u6642",hh:"%d \u5C0F\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500B\u6708",MM:"%d \u500B\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(e,t){var r=e*100+t;return r<600?"\u51CC\u6668":r<900?"\u65E9\u4E0A":r<1100?"\u4E0A\u5348":r<1300?"\u4E2D\u5348":r<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};_.locale(Ot,null,true);var Se=Ot;var me={"en-us":ne,"en-gb":qe,cs:Fe$1,da:Ue$1,de:Ye,es:fe$1,fi:Ze,fr:pe,hu:tt,it:ve,ja:nt,ko:it,nl:ot,pl:ht,pt:Yt,ru:St,sr:Ht,sv:$t,tr:wt,zh:Ct,"zh-tw":Se,"de-ch":Re,"de-de":Ye,"es-ar":fe$1,"fr-ca":Qe,"fr-fr":pe,"it-it":ve,"nl-be":mt,"zh-hant":Se,"zh-hk":At};var Vt=new x$6("Dayjs"),ja={provide:Vt,useFactory:()=>{let n=(localStorage.getItem("v1:duplicati:locale")??"en-us").toLowerCase().trim(),e=me[n]??me[n.split("-")[0]]??me["en-us"];return _.extend(Ie),_.extend(Ee),_.locale(e),_}};var c=class s{#n=T$7(Vt);transform(r,t=false,...d){if(!r)return "";let n=/^\s*(?:(\d+)\.)?(\d{1,2}):(\d{2}):(\d{2})(?:\.\d+)?\s*$/.exec(r);if(!n)return "";let e=parseInt(n[1]??"0",10),i=parseInt(n[2],10),o=parseInt(n[3],10),a=parseInt(n[4],10);return t?`${e?`${e}d `:""}${i}h ${o}m ${a}s`:this.#n.duration({days:e,hours:i,minutes:o,seconds:a}).humanize()}static \u0275fac=function(t){return new(t||s)};static \u0275pipe=Ew({name:"durationFormat",type:s,pure:true})};var m=class n{#t=T$7(Vt);#r=T$7(ci$1);convertTimestamp(t){let r=/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2})Z$/.exec(t);if(r){let[a,p,f,c,d,u,h]=r;return `${p}-${f}-${c}T${d}:${u}:${h}Z`}return t}transform(t,r=false,...a){return t?r?this.#r.transform(t,"short"):(this.#t.locale(),typeof t=="string"&&(t=this.convertTimestamp(t)),this.#t(t).fromNow()):"N/A"}static \u0275fac=function(r){return new(r||n)};static \u0275pipe=Ew({name:"relativeTime",type:n,pure:true})};var y$1=["*"],z=["bold","thin","light","fill","duotone"],N$1=(()=>{class s{constructor(){this.#e=T$7(eo$1),this.#i=T$7(ED),this.#n=T$7(G$3,{optional:true}),this.#o=T$7(Mr),this.#s=T$7(uv),this.color=E1(null),this.size=E1(null),this.isUnfocused=Ge$5(Rr(this.#s)?!this.#o.hasFocus():false),this.hostClasses=ce$2("icon",{color:this.color,size:this.size}),this.customHostClasses=Nt$3(()=>{let i=this.hostClasses(),e=this.#n?.icon,n=[i];return !e?.disableUnfocus&&this.isUnfocused()&&n.push("unfocused"),n.filter(Boolean).join(" ")});}#e;#i;#n;#o;#s;onWindowBlur(){this.isUnfocused.set(true);}onWindowFocus(){this.isUnfocused.set(false);}ngAfterContentInit(){let i=this.#e.nativeElement.textContent?.trim();if(!i)return;let e=i.split("-").at(-1);e&&z.includes(e)&&this.#i.addClass(this.#e.nativeElement,e);}static{this.\u0275fac=function(e){return new(e||s)};}static{this.\u0275cmp=hw({type:s,selectors:[["sh-icon"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(e,n){e&1&&Hg("blur",function(){return n.onWindowBlur()},VI)("focus",function(){return n.onWindowFocus()},VI),e&2&&NC(n.customHostClasses());},inputs:{color:[1,"color"],size:[1,"size"]},ngContentSelectors:y$1,decls:1,vars:0,template:function(e,n){e&1&&(aC(),cC(0));},styles:[`sh-icon{--icon-c: inherit;font-size:1.25rem;line-height:1em;width:1em;height:1em;min-width:1em;min-height:1em;max-width:1em;max-height:1em;text-align:left;overflow:hidden;display:inline-block;color:var(--icon-c);transition:color .15s ease-out}sh-icon.primary{--icon-c: var(--primary-8)}sh-icon.accent{--icon-c: var(--accent-8)}sh-icon.warn{--icon-c: var(--warn-8)}sh-icon.error{--icon-c: var(--error-8)}sh-icon.success{--icon-c: var(--success-8)}sh-icon.unfocused{--icon-c: var(--base-8)}sh-icon.large{font-size:2rem}sh-icon.small{font-size:1rem}sh-icon.inherit{font-size:inherit}
15
15
  `],encapsulation:2});}}return s})();var k=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["button"]],[["","actions",""]],[["","content",""]],[["p"]]],q=["[icon]","sh-icon","[title]","*","button","[actions]","[content]","p"];function B(e,l){e&1&&(Qi$1(0,"sh-icon",3),jC(1,"info"),$l());}function F(e,l){e&1&&(Qi$1(0,"sh-icon",3),jC(1,"info"),$l());}function P(e,l){e&1&&(Qi$1(0,"sh-icon",3),jC(1,"warning"),$l());}function Y(e,l){e&1&&(Qi$1(0,"sh-icon",3),jC(1,"warning-octagon"),$l());}function $(e,l){e&1&&(Qi$1(0,"sh-icon",3),jC(1,"check-circle"),$l());}function V(e,l){e&1&&(Qi$1(0,"sh-icon",3),jC(1,"question"),$l());}function Q(e,l){if(e&1){let t=vT();Qi$1(0,"sh-icon",8),Hg("click",function(){Od(t);let i=iC();return Pd(i.removeAlert())}),jC(1,"plus"),$l();}}var ue=(()=>{class e{constructor(){this.color=E1(null),this.variant=E1(null),this.hostClasses=ce$2("alert",{color:this.color,variant:this.variant}),this._el=T$7(eo$1),this.alertService=E1(null),this.id=E1(null);}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id());}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275cmp=hw({type:e,selectors:[["sh-alert"]],hostAttrs:[1,"sh-sheet"],hostVars:3,hostBindings:function(n,i){n&2&&(yg("role",i.color()==="warn"||i.color()==="error"?"alert":"status"),NC(i.hostClasses()));},inputs:{color:[1,"color"],variant:[1,"variant"],alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:q,decls:22,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"actions"],[1,"content"],[1,"close-icon",3,"click"]],template:function(n,i){if(n&1&&(aC(k),Qi$1(0,"div",1)(1,"div",2,0),cC(3),cC(4,1),$l(),Qi$1(5,"div",2),aT(6,B,2,0,"sh-icon",3)(7,F,2,0,"sh-icon",3)(8,P,2,0,"sh-icon",3)(9,Y,2,0,"sh-icon",3)(10,$,2,0,"sh-icon",3)(11,V,2,0,"sh-icon",3),$l(),Qi$1(12,"div",4),cC(13,2),cC(14,3),$l(),aT(15,Q,2,0,"sh-icon",5),Qi$1(16,"div",6),cC(17,4),cC(18,5),$l(),Qi$1(19,"div",7),cC(20,6),cC(21,7),$l()()),n&2){let c=pC(2);CE(),Yg("display",c.children.length?"block":"none");let d=i.hostClasses();CE(5),cT(d.includes("primary")?6:d.includes("accent")?7:d.includes("warn")?8:d.includes("error")?9:d.includes("success")?10:11),CE(9),cT(i.id()?15:-1);}},dependencies:[N$1],styles:[`sh-alert{--alert-ad: .4s;--alert-bs: var(--box-shadow-10);--alert-p: .5rem;max-height:18.75rem;padding-top:0;padding-bottom:0;margin-bottom:0;opacity:1;overflow:hidden;display:block;transition:max-height var(--alert-ad) ease-in-out,transform var(--alert-ad) ease-in-out,opacity var(--alert-ad) ease-in-out,margin-bottom var(--alert-ad) ease-in-out,padding-top var(--alert-ad) ease-in-out,padding-bottom var(--alert-ad) ease-in-out;transform:translateY(0);box-shadow:var(--alert-bs)}sh-alert.simple .content>*{color:var(--sheet-c);opacity:.7}sh-alert.flat,sh-alert.raised{--sheet-c: #fff}sh-alert.flat .content>*,sh-alert.raised .content>*{color:var(--sheet-c);opacity:.8}sh-alert .alert{display:grid;grid-template-columns:auto 1fr 1fr;grid-template-rows:auto auto;grid-template-areas:"stateIcon title closeIcon" ". content .";padding:var(--alert-p);align-items:flex-start;gap:.25rem .5rem}sh-alert .alert .close-icon{display:none}sh-alert .alert:has(.actions:empty){grid-template-columns:auto 1fr;grid-template-areas:"stateIcon title" ". content"}sh-alert .alert:has(.actions:empty) .actions{display:none}sh-alert .alert:has(.actions:empty) .close-icon{display:block}sh-alert .alert:has(.content:empty){grid-template-rows:auto;grid-template-areas:"stateIcon title closeIcon"}sh-alert .alert:has(.actions:empty):has(.content:empty){grid-template-columns:auto 1fr;grid-template-areas:"stateIcon title"}sh-alert .actions{grid-area:closeIcon;display:flex;align-items:center;justify-content:flex-end;gap:.25rem}sh-alert .icon{grid-area:stateIcon;height:1.25rem;width:1.25rem;display:flex;align-items:center;justify-content:center}sh-alert .icon:first-of-type:not(:empty)+.icon{display:none}sh-alert [icon],sh-alert .state-icon{color:var(--alert-state-ic)}sh-alert .close-icon{grid-area:closeIcon;color:var(--alert-close-ic);transform:rotate(45deg);transform-origin:center}sh-alert .title{grid-area:title;padding-top:.125rem;font-weight:500}sh-alert .content{grid-area:content}sh-alert .content:empty{display:none}sh-alert.is-hidden{max-height:0;padding-top:0;padding-bottom:0;opacity:0;margin-bottom:0;overflow:hidden;transform:translateY(-40px)}sh-alert.is-hidden:before{opacity:0}sh-alert.animate-in{transition:none;max-height:0;margin-bottom:0;padding-top:0;padding-bottom:0;opacity:0;overflow:hidden;transform:translateY(0)}sh-alert.animate-in:before{opacity:0}sh-alert.animate-out{max-height:0;padding:0;opacity:0;overflow:hidden;transform:translateY(-40px)}sh-alert.animate-out:before{opacity:0}sh-alert:has([content]) .alert{--alert-p: .75rem}
16
- `],encapsulation:2});}}return e})();var fe=(()=>{class e{constructor(){this.alertHistory=Ge$5([]),this.alertHistoryIsOpen=Ge$5(false),this.alertHistoryIsHidden=Ge$5(true);}error(t){this.addAlert({type:"error",title:t??"An error occured"});}success(t){this.addAlert({type:"success",title:t});}question(t){this.addAlert({type:"question",title:t});}warning(t){this.addAlert({type:"warn",title:t});}info(t){this.addAlert({type:"primary",title:t});}addAlert(t){let n=le$1();this.alertHistory.update(i=>[m$6(l$3({},t),{isOpen:true,animateIn:true,animateOut:false,id:n}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(c=>m$6(l$3({},c),{animateIn:c.id===n?false:c.animateIn})));},40),setTimeout(()=>{this.hideAlert(n);},2500);}removeAlert(t){this.alertHistory.update(n=>n.map(i=>m$6(l$3({},i),{animateOut:i.id===t?false:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(n=>n.filter(i=>i.id!==t));},300);}hideAlert(t){this.alertHistory.update(n=>n.map(i=>m$6(l$3({},i),{isOpen:i.id===t?false:i.isOpen})));}setHidden(t){this.alertHistoryIsHidden.set(t);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=ee$5({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var N=class t{#e=T$7(f$1);#d=T$7(I$1);ngOnInit(){T$3(),this.#d.fetchConfig(),this.#e.clearAllNotCurrentVersion();}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=hw({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&Ig(0,"router-outlet");},dependencies:[lr],encapsulation:2})};var Ne={production:true,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:6e4};var y=new x$6("ENVIRONMENT");var O=class t{#e=T$7(q$4);isLoaded=Ge$5(false);webmodules=Ge$5(null);preload(e=false){let o=this.#e.getApiV1Webmodules().pipe(rd(n=>this.webmodules.set(n)),zu(()=>this.isLoaded.set(true)));if(e)return o;o.subscribe();}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var je=()=>{let t=T$7(v$4);return t.token()?true:t.checkProxyAuthed().pipe(Qu(e=>e?iy(true):t.refreshToken().pipe(pt$2(()=>true))))},Fe=()=>{let t=T$7(I$1);T$7(y$2);let o=T$7(ve$5),n=t.relayIsEnabled()?"longpoll":"websocket",s=[o.get(m$3).preload(true),o.get(m$3).preloadFilterGroups(true),o.get(O).preload(true)];return t.configLoaded===null?by(s).pipe(pt$2(()=>n)):t.configLoaded?.pipe(Qu(()=>by(s)))},We=()=>true,Oe={path:"connect/:typeParam",loadComponent:()=>import('./chunk-Z81HNfgo.js')},Be=()=>{let t=T$7(f$1);return !t.getItem("locale")&&navigator.language&&t.setItem("locale",navigator.language),true},xe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import('./chunk-Bgw6E0Xu.js')},{path:"logout",loadComponent:()=>import('./chunk-Ca1aaA1h.js')},{path:"",canActivate:[je],children:[{path:"",canActivate:[Fe,We,Be],children:[{path:"welcome",loadComponent:()=>import('./chunk-lymL5FDY.js'),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import('./chunk-AuCOjHXM.js')},Oe]},{path:"",loadComponent:()=>import('./chunk-DcdpG1YG.js'),children:[{path:"",loadComponent:()=>import('./chunk-B_cIFQAl.js')},Oe,{path:"destinations",loadComponent:()=>import('./chunk-DwmssGG9.js')},{path:"add-backup",loadComponent:()=>import('./chunk-CWgXi-7W.js')},{path:"backup/:id/export",loadComponent:()=>import('./chunk-jy8x4GhV.js')},{path:"backup/import",loadComponent:()=>import('./chunk-DWiO0A6h.js')},{path:"backup/import-destination",loadComponent:()=>import('./chunk-BrtdRb9j.js'),loadChildren:()=>import('./chunk-DxFBzFom.js')},{path:"backup-draft/:id",loadComponent:()=>import('./chunk-DuYKanVS.js'),loadChildren:()=>import('./chunk-ClRItSzt.js')},{path:"backup/:id",loadComponent:()=>import('./chunk-DuYKanVS.js'),loadChildren:()=>import('./chunk-ClRItSzt.js')},{path:"backup/:id/log",loadComponent:()=>import('./chunk-Dk-Wgx3e.js')},{path:"backup/:id/database",loadComponent:()=>import('./chunk-ByL8ndec.js')},{path:"backup/:id/commandline",loadComponent:()=>import('./chunk-CP6xnjgo.js')},{path:"backup/:id/commandline/:runId",loadComponent:()=>import('./chunk-eiyaQxBt.js')},{path:"backup/:id/delete",loadComponent:()=>import('./chunk-B5Y6lgE8.js')},{path:"backup/:id/delete-versions",loadComponent:()=>import('./chunk-CIw_h8oP.js')},{path:"backup/:id/version-labels",loadComponent:()=>import('./chunk-CGsQCBkP.js')},{path:"backup/:id/broken-files",loadComponent:()=>import('./chunk-CsIAXoYP.js')},{path:"restore",children:[{path:"",loadComponent:()=>import('./chunk-aYCYzU5Q.js')},{path:"from-config",loadComponent:()=>import('./chunk-L8hQtTzU.js')}]},{path:"restore-from-files",loadComponent:()=>import('./chunk-B1wZ4poV.js'),loadChildren:()=>import('./chunk-D55uWC7G.js')},{path:"restore-draft/:id",loadComponent:()=>import('./chunk-B1wZ4poV.js'),loadChildren:()=>import('./chunk-D55uWC7G.js')},{path:"restore/:id",loadComponent:()=>import('./chunk-B1wZ4poV.js'),loadChildren:()=>import('./chunk-D55uWC7G.js')},{path:"status",loadComponent:()=>import('./chunk-CgJAbgNN.js')},{path:"settings",loadComponent:()=>import('./chunk-uGh0bVbu.js')},{path:"about",loadComponent:()=>import('./chunk-FTZ5atHM.js'),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-BxpXVeOr.js')},{path:"changelog",loadComponent:()=>import('./chunk-C9ecLR93.js')},{path:"libraries",loadComponent:()=>import('./chunk-DGxk44Me.js')},{path:"system-info",loadComponent:()=>import('./chunk-DD_wKpGc.js')},{path:"server-settings",loadComponent:()=>import('./chunk-CfxBiw7I.js')},{path:"logs",loadChildren:()=>import('./chunk-BzJX1fKw.js')},{path:"crashlogs",loadComponent:()=>import('./chunk-D3PhthfU.js')}]}]}]}]}]}];var Le=(t$1,e)=>{let o=T$7(v$4),n=T$7(ee$1),s=T$7(f$1),l=T$7(y),m=s.getItem("locale"),a=T$7(fe),b=Zt$1(m),i=t.BASE||"",p=t$1.url===`${i}/api/v1/auth/login`,f=t$1.url===`${i}/api/v1/auth/logout`,d=t$1.url===`${i}/api/v1/auth/refresh`,u=t$1.url===`${i}/api/v1/progressstate`,v=t$1.url===`${i}/api/v1/remoteoperation/test`,S=t$1.url===`${i}/api/v1/filesystem/validate`,I=t$1.url.startsWith(`${i}/api/v2/`),P=o.token(),j=t$1,F=t$1.headers.has("custom-proxy-check")||P===O$2;if(P&&t$1.url.startsWith(i+l.baseUrl)&&!F){let c=t$1.headers.set("Authorization",`Bearer ${P}`);m&&m!=="en-US"&&(c=c.set("X-Ui-Language",b)),j=t$1.clone({headers:c});}return e(j).pipe(pt$2(c=>{if(c.type===4&&c.status===200&&I){let C=c.body;if(C?.Success===false)throw {status:200,message:C?.Error??"Unknown error",error:{Error:C?.Error??"Unknown error"},requestBody:C}}return c}),Hs(c=>{let C=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;if(!F){let T=true;if((u&&c.status===404||v||S)&&(T=false),d&&c.status===401&&(T=false,o.logout(),n.navigate(["/logout"])),!p&&!d&&!f&&c.status===401)return T=false,o.refreshToken().pipe(Qu(()=>e(t$1.clone({headers:t$1.headers.set("Authorization",`Bearer ${o.token()}`)}))));T&&a.error(C);}return ly(()=>({error:c,message:C}))}))};var x=class t{#e=T$7(Mr);showError(e){let o=this.#e.querySelector("body > .loading");if(!o)return;o.classList.add("has-error"),o.innerHTML="";let n=this.#e.createElement("div");n.classList.add("loading-title"),n.textContent="Unable to connect";let s=this.#e.createElement("div");s.classList.add("loading-error"),s.textContent=e||"Unknown error";let l=this.#e.createElement("button");l.type="button",l.classList.add("retry-button"),l.textContent="Retry",l.addEventListener("click",()=>{this.#e.defaultView?.location.reload();}),o.append(n,s,l);}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var $e="1.0.0",Pe=`portal-proxy-client-${x$4()}`,Ge=1,L=class t{#e=1e3;#d=T$7(y);#u=T$7(x);#o=Ge$5("disconnected");#h=Ge$5(this.#e);#a=Ge$5(false);#n=Ge$5(false);#p=Ge$5(null);#l=Ge$5(null);#s=false;isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#o.asReadonly();#c=[];#r={};#t=null;#f=new TextDecoder("utf-8");#m=null;#y=za(()=>{let e=this.#a(),o=this.#h(),n=this.#p(),s=this.#l();if(!n||!s||!e||!o||o<this.#e){this.#m&&window.clearInterval(this.#m);return}this.#m=window.setInterval(()=>{this.connectToMachineServer(n,s);},o);});#i(e){this.#s||(this.#s=true,this.#u.showError(e||"Unable to connect to the server."));}#g(){this.#s||(this.#s=true);}utf8Atob(e){let o=Uint8Array.from(atob(e),s=>s.charCodeAt(0)),n=this.#f.decode(o);return n?JSON.parse(n):null}connectToMachineServer(e,o,n){let s=n?.reconnect??false,l=this.wsState();(l==="disconnected"||l==="error"||s)&&(this.#t?.close(),this.#t=null),!this.#t&&(this.#s=false,this.#t=new WebSocket(o),this.#o.set("connecting"),this.#t.onopen=()=>{this.#o.set("connect"),this.#n.set(true),this.#a.set(false),this.#p.set(null),this.#l.set(null);},this.#t.onclose=()=>{this.#o.set("disconnected"),this.#n.set(false),this.#p.set(e),this.#l.set(o),this.#a.set(true);},this.#t.onerror=()=>{this.#o.set("error");},this.#t.onmessage=m=>{let a=JSON.parse(m.data);if(this.wsState()==="connect"){if(a.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${a.type}'`);return}let i={token:e,publicKey:"",clientVersion:$e,protocolVersion:Ge},p=this.createResponse(a,"authportal",i);this.#o.set("welcome"),this.#t?.send(p);}else if(this.wsState()==="welcome"){if(a.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${a.type}'`);return}var b=JSON.parse(a.payload??"");if(b.accepted===false){this.#i("Authentication failed"),this.disconnectFromMachineServer("Authentication failed");return}for(this.#o.set("authenticated"),this.#n.set(true);this.#c.length>0;){let i=this.#c.pop();i&&this.#r[i.messageId]&&this.activateCommand(i);}}else if(this.wsState()==="authenticated"){if(a.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${a.type}'`);return}let i=this.#r[a.messageId];if(i){if(a.errorMessage)this.#i(a.errorMessage),i.reject(a.errorMessage);else {let p=JSON.parse(a.payload??"");p.statusCode>=400?this.#i(p.body||`Initial request failed with status code ${p.statusCode}`):this.#g(),p.body=p?.body==null?null:i.binaryBody?p.body:this.utf8Atob(p.body),i.resolve(p);}delete this.#r[a.messageId],window.clearTimeout(i.timer);}}});}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#o.set("disconnected"),this.#n.set(false);}createResponse(e,o,n){let s={from:Pe,to:e.from,type:o,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(s)}sendCommand(e,o,n,s,l,m,a,b=5e3,i=false){return (this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e,n),new Promise((p,f)=>{let d=x$4(),v={from:Pe,to:o,type:"command",messageId:d,payload:JSON.stringify({method:s,path:l,body:m,headers:a})},S={resolve:p,reject:f,binaryBody:i,timer:window.setTimeout(()=>{let I=this.#r[d];I&&(delete this.#r[d],this.#i("The request timed out before receiving a response."),I.reject("Timeout"));},b)};this.#r[d]=S,this.#n()?this.activateCommand(v):this.#c.push(v);})}activateCommand(e){this.#t?.send(JSON.stringify(e));}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};function Je(t){if(typeof t!="string")return null;let o=new TextEncoder().encode(t);return window.btoa(String.fromCharCode(...o))}function He(t){let e=atob(t),o=new Uint8Array(e.length);for(let n=0;n<e.length;n++)o[n]=e.charCodeAt(n);return o}function Ue(t,e,o){let n=t.relayconfigState.config();if(n===null)return o(e);let s=Je(e.body),l={};e.headers.keys().forEach(p=>{l[p]=e.headers.get(p)??"";});let m=e.headers.get("timeout"),a=m!==null?parseInt(m):t.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(a=1e3*99);let b=e.responseType==="blob"||e.responseType==="arraybuffer",i=t.relayWebsocket.sendCommand(n.accessToken,n.clientId,n.machineServerUrl,e.method,e.url,s,l,a,b);return new S$6(p=>{i.then(f=>{let d=new y$4;l!=null&&Object.keys(l).forEach(S=>{d.set(S,l[S]);});let u=f.body;u!=null&&e.responseType==="blob"?u=new Blob([He(u)]):u!=null&&e.responseType==="arraybuffer"&&(u=He(u).buffer);let v=new S$5({body:u,status:f.statusCode,statusText:"OK",headers:d});p.next(v),p.complete();}).catch(f=>{p.error(new w$4({error:f??"Unknown error",status:0,statusText:f??"Unknown error"}));});})}var Ve=(t,e)=>{let o={relayconfigState:T$7(I$1),defaultTimeout:T$7(y).defaultTimeout,relayWebsocket:T$7(L)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let s=new fe$5;return o.relayconfigState.configLoaded.subscribe(l=>{l&&Ue(o,t,e).subscribe(s);}),s}return Ue(o,t,e)};var De={providers:[ub(),_o(xe,jo(),xo(Mo)),Ke$1(Qe$2(),qe$2([Ve,Le])),f$1,{provide:y,useValue:Ne},{provide:Jl,useValue:_t$2()},{provide:G$3,useValue:{alertVariant:"simple"}},l$1,y$2,ja,pi$1,m$1,ci$1,m,c]};Le$3(N,De);export{$l as $,v$4 as A,A$1 as B,CE as C,w1 as D,E1 as E,Fg as F,Ge$5 as G,Hg as H,I$1 as I,zu as J,im as K,Kg as L,qg as M,Nt$3 as N,Od as O,Pd as P,Qi$1 as Q,fC as R,aC as S,T$7 as T,UC as U,Ul as V,Eg as W,Wl as X,cC as Y,lr as Z,_t$1 as _,T$1 as a,JC as a$,de$2 as a0,dT as a1,fT as a2,KC as a3,uT as a4,g$1 as a5,be$3 as a6,l$1 as a7,To as a8,GC as a9,y$4 as aA,sm as aB,yg as aC,YC as aD,jo$1 as aE,XC as aF,pt$2 as aG,m$1 as aH,c as aI,ci$1 as aJ,mb as aK,hi$1 as aL,ob as aM,ab as aN,am as aO,ql as aP,Gl as aQ,sb as aR,cb as aS,dy as aT,sy as aU,ay as aV,G$4 as aW,y$2 as aX,x$4 as aY,ee$5 as aZ,x1 as a_,Ql as aa,C as ab,I1 as ac,Mr as ad,eo$1 as ae,D1 as af,Yg as ag,fe as ah,m$6 as ai,l$3 as aj,dm as ak,WC as al,si$2 as am,Bg as an,qC as ao,lT as ap,Tg as aq,Zp as ar,qd as as,h$1 as at,Vg as au,rC as av,W$1 as aw,De$4 as ax,Qu as ay,t as az,me$5 as b,n as b$,Hs as b0,iy as b1,m as b2,Ae$4 as b3,qu as b4,lg as b5,oT as b6,iT as b7,Iw as b8,k$4 as b9,fd as bA,so$1 as bB,ED as bC,Gv as bD,et$1 as bE,ve$5 as bF,Mv as bG,ww as bH,_1 as bI,fe$5 as bJ,wy as bK,s$1 as bL,Z$3 as bM,N1 as bN,Jo as bO,D$6 as bP,Fl as bQ,Qd as bR,ys as bS,ir$1 as bT,B$1 as bU,re$1 as bV,ds as bW,pe$5 as bX,Wr as bY,ei$1 as bZ,wg as b_,ue$3 as ba,ce$2 as bb,sg as bc,h as bd,Fi$1 as be,Jt$2 as bf,Kn as bg,pi$1 as bh,cg as bi,Q$2 as bj,Gd as bk,_s as bl,j$6 as bm,ft$2 as bn,go$1 as bo,f$1 as bp,wt$2 as bq,uv as br,Rr as bs,rE as bt,N$4 as bu,le$1 as bv,_C as bw,Xr$1 as bx,x$6 as by,mw as bz,N$1 as c,Nt$2 as c$,oe$3 as c0,ae$3 as c1,e as c2,pC as c3,$s as c4,lb as c5,je$3 as c6,zp as c7,T1 as c8,C1 as c9,Ce$4 as cA,ye$4 as cB,qt$2 as cC,Ee$4 as cD,Qt$1 as cE,Ze$2 as cF,ne$4 as cG,m$4 as cH,de$4 as cI,g$4 as cJ,nn$1 as cK,j$5 as cL,d$2 as cM,Rt$2 as cN,Zt$2 as cO,Gt$2 as cP,Kt$1 as cQ,Yt$2 as cR,zt$2 as cS,q$6 as cT,Q$5 as cU,Bt$2 as cV,Pt$1 as cW,kt$1 as cX,Ut$1 as cY,jt$1 as cZ,Ot$1 as c_,Wg as ca,VI as cb,HI as cc,Vt as cd,E$2 as ce,Ty as cf,rd as cg,mo$1 as ch,Ss as ci,xs as cj,S$6 as ck,Sr as cl,eb as cm,Zu as cn,ly as co,Sy as cp,ce$4 as cq,y$7 as cr,tn$1 as cs,en$1 as ct,A$2 as cu,I$3 as cv,fv as cw,Je$4 as cx,Ne$5 as cy,U$4 as cz,aT as d,Fe$5 as d0,M$3 as d1,xt$1 as d2,J$5 as d3,Vt$2 as d4,Or as d5,Tr as d6,f$4 as d7,wi$1 as d8,Ai$1 as d9,L$4 as da,k$6 as db,_$3 as dc,ee$1 as e,NC as f,cT as g,hw as h,Ig as i,jg as j,iC as k,vT as l,m$3 as m,nC as n,oC as o,lm as p,qe$4 as q,CD as r,jC as s,tb as t,ue as u,v$2 as v,cm as w,_D as x,vg as y,za as z};
16
+ `],encapsulation:2});}}return e})();var fe=(()=>{class e{constructor(){this.alertHistory=Ge$5([]),this.alertHistoryIsOpen=Ge$5(false),this.alertHistoryIsHidden=Ge$5(true);}error(t){this.addAlert({type:"error",title:t??"An error occured"});}success(t){this.addAlert({type:"success",title:t});}question(t){this.addAlert({type:"question",title:t});}warning(t){this.addAlert({type:"warn",title:t});}info(t){this.addAlert({type:"primary",title:t});}addAlert(t){let n=le$1();this.alertHistory.update(i=>[m$6(l$3({},t),{isOpen:true,animateIn:true,animateOut:false,id:n}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(c=>m$6(l$3({},c),{animateIn:c.id===n?false:c.animateIn})));},40),setTimeout(()=>{this.hideAlert(n);},2500);}removeAlert(t){this.alertHistory.update(n=>n.map(i=>m$6(l$3({},i),{animateOut:i.id===t?false:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(n=>n.filter(i=>i.id!==t));},300);}hideAlert(t){this.alertHistory.update(n=>n.map(i=>m$6(l$3({},i),{isOpen:i.id===t?false:i.isOpen})));}setHidden(t){this.alertHistoryIsHidden.set(t);}static{this.\u0275fac=function(n){return new(n||e)};}static{this.\u0275prov=ee$5({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var N=class t{#e=T$7(f$1);#d=T$7(I$1);ngOnInit(){T$3(),this.#d.fetchConfig(),this.#e.clearAllNotCurrentVersion();}static \u0275fac=function(o){return new(o||t)};static \u0275cmp=hw({type:t,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&Ig(0,"router-outlet");},dependencies:[lr],encapsulation:2})};var Ne={production:true,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:6e4};var y=new x$6("ENVIRONMENT");var O=class t{#e=T$7(q$4);isLoaded=Ge$5(false);webmodules=Ge$5(null);preload(e=false){let o=this.#e.getApiV1Webmodules().pipe(rd(n=>this.webmodules.set(n)),zu(()=>this.isLoaded.set(true)));if(e)return o;o.subscribe();}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var je=()=>{let t=T$7(v$4);return t.token()?true:t.checkProxyAuthed().pipe(Qu(e=>e?iy(true):t.refreshToken().pipe(pt$2(()=>true))))},Fe=()=>{let t=T$7(I$1);T$7(y$2);let o=T$7(ve$5),n=t.relayIsEnabled()?"longpoll":"websocket",s=[o.get(m$3).preload(true),o.get(m$3).preloadFilterGroups(true),o.get(O).preload(true)];return t.configLoaded===null?by(s).pipe(pt$2(()=>n)):t.configLoaded?.pipe(Qu(()=>by(s)))},We=()=>true,Oe={path:"connect/:typeParam",loadComponent:()=>import('./chunk-D4S_1RMU.js')},Be=()=>{let t=T$7(f$1);return !t.getItem("locale")&&navigator.language&&t.setItem("locale",navigator.language),true},xe=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import('./chunk-CSYDDxaa.js')},{path:"logout",loadComponent:()=>import('./chunk-D9dEfxn4.js')},{path:"",canActivate:[je],children:[{path:"",canActivate:[Fe,We,Be],children:[{path:"welcome",loadComponent:()=>import('./chunk-BaNH2nfC.js'),children:[{path:"",redirectTo:"select",pathMatch:"full"},{path:"select",loadComponent:()=>import('./chunk-BaR3Dslz.js')},Oe]},{path:"",loadComponent:()=>import('./chunk-BqbJuWHd.js'),children:[{path:"",loadComponent:()=>import('./chunk-B1dNb-QT.js')},Oe,{path:"destinations",loadComponent:()=>import('./chunk-BRqx-u9-.js')},{path:"add-backup",loadComponent:()=>import('./chunk-sgM_r5NM.js')},{path:"backup/:id/export",loadComponent:()=>import('./chunk-BHrABvoK.js')},{path:"backup/import",loadComponent:()=>import('./chunk-CUNe6D-d.js')},{path:"backup/import-destination",loadComponent:()=>import('./chunk-DcU0yXkQ.js'),loadChildren:()=>import('./chunk-CxOam2tf.js')},{path:"backup-draft/:id",loadComponent:()=>import('./chunk-CAEYxmzQ.js'),loadChildren:()=>import('./chunk-C4zj812G.js')},{path:"backup/:id",loadComponent:()=>import('./chunk-CAEYxmzQ.js'),loadChildren:()=>import('./chunk-C4zj812G.js')},{path:"backup/:id/log",loadComponent:()=>import('./chunk-BGcVKmjp.js')},{path:"backup/:id/database",loadComponent:()=>import('./chunk-DB1KeglF.js')},{path:"backup/:id/commandline",loadComponent:()=>import('./chunk-oobMnyEm.js')},{path:"backup/:id/commandline/:runId",loadComponent:()=>import('./chunk-umUQn7LQ.js')},{path:"backup/:id/delete",loadComponent:()=>import('./chunk-UCY_7-Of.js')},{path:"backup/:id/delete-versions",loadComponent:()=>import('./chunk-C5G4RPpS.js')},{path:"backup/:id/version-labels",loadComponent:()=>import('./chunk-CUaDFQyH.js')},{path:"backup/:id/broken-files",loadComponent:()=>import('./chunk-BQapkAzp.js')},{path:"restore",children:[{path:"",loadComponent:()=>import('./chunk-S-sgDIKw.js')},{path:"from-config",loadComponent:()=>import('./chunk-BFVhQEGw.js')}]},{path:"restore-from-files",loadComponent:()=>import('./chunk-BkLND74M.js'),loadChildren:()=>import('./chunk-_J1lTnCH.js')},{path:"restore-draft/:id",loadComponent:()=>import('./chunk-BkLND74M.js'),loadChildren:()=>import('./chunk-_J1lTnCH.js')},{path:"restore/:id",loadComponent:()=>import('./chunk-BkLND74M.js'),loadChildren:()=>import('./chunk-_J1lTnCH.js')},{path:"status",loadComponent:()=>import('./chunk-BAmgFjXY.js')},{path:"settings",loadComponent:()=>import('./chunk-CspKioFm.js')},{path:"about",loadComponent:()=>import('./chunk-DP2sLJDC.js'),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import('./chunk-OIDsf_Aq.js')},{path:"changelog",loadComponent:()=>import('./chunk-B0ETfgeR.js')},{path:"libraries",loadComponent:()=>import('./chunk-X3dwwJIr.js')},{path:"system-info",loadComponent:()=>import('./chunk-CxUx2RFx.js')},{path:"server-settings",loadComponent:()=>import('./chunk-DYfv4gJW.js')},{path:"logs",loadChildren:()=>import('./chunk-CPjYiawK.js')},{path:"crashlogs",loadComponent:()=>import('./chunk-Bg98dUtr.js')}]}]}]}]}]}];var Le=(t$1,e)=>{let o=T$7(v$4),n=T$7(ee$1),s=T$7(f$1),l=T$7(y),m=s.getItem("locale"),a=T$7(fe),b=Zt$1(m),i=t.BASE||"",p=t$1.url===`${i}/api/v1/auth/login`,f=t$1.url===`${i}/api/v1/auth/logout`,d=t$1.url===`${i}/api/v1/auth/refresh`,u=t$1.url===`${i}/api/v1/progressstate`,v=t$1.url===`${i}/api/v1/remoteoperation/test`,S=t$1.url===`${i}/api/v1/filesystem/validate`,I=t$1.url.startsWith(`${i}/api/v2/`),P=o.token(),j=t$1,F=t$1.headers.has("custom-proxy-check")||P===O$2;if(P&&t$1.url.startsWith(i+l.baseUrl)&&!F){let c=t$1.headers.set("Authorization",`Bearer ${P}`);m&&m!=="en-US"&&(c=c.set("X-Ui-Language",b)),j=t$1.clone({headers:c});}return e(j).pipe(pt$2(c=>{if(c.type===4&&c.status===200&&I){let C=c.body;if(C?.Success===false)throw {status:200,message:C?.Error??"Unknown error",error:{Error:C?.Error??"Unknown error"},requestBody:C}}return c}),Hs(c=>{let C=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;if(!F){let T=true;if((u&&c.status===404||v||S)&&(T=false),d&&c.status===401&&(T=false,o.logout(),n.navigate(["/logout"])),!p&&!d&&!f&&c.status===401)return T=false,o.refreshToken().pipe(Qu(()=>e(t$1.clone({headers:t$1.headers.set("Authorization",`Bearer ${o.token()}`)}))));T&&a.error(C);}return ly(()=>({error:c,message:C}))}))};var x=class t{#e=T$7(Mr);showError(e){let o=this.#e.querySelector("body > .loading");if(!o)return;o.classList.add("has-error"),o.innerHTML="";let n=this.#e.createElement("div");n.classList.add("loading-title"),n.textContent="Unable to connect";let s=this.#e.createElement("div");s.classList.add("loading-error"),s.textContent=e||"Unknown error";let l=this.#e.createElement("button");l.type="button",l.classList.add("retry-button"),l.textContent="Retry",l.addEventListener("click",()=>{this.#e.defaultView?.location.reload();}),o.append(n,s,l);}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};var $e="1.0.0",Pe=`portal-proxy-client-${x$4()}`,Ge=1,L=class t{#e=1e3;#d=T$7(y);#u=T$7(x);#o=Ge$5("disconnected");#h=Ge$5(this.#e);#a=Ge$5(false);#n=Ge$5(false);#p=Ge$5(null);#l=Ge$5(null);#s=false;isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#o.asReadonly();#c=[];#r={};#t=null;#f=new TextDecoder("utf-8");#m=null;#y=za(()=>{let e=this.#a(),o=this.#h(),n=this.#p(),s=this.#l();if(!n||!s||!e||!o||o<this.#e){this.#m&&window.clearInterval(this.#m);return}this.#m=window.setInterval(()=>{this.connectToMachineServer(n,s);},o);});#i(e){this.#s||(this.#s=true,this.#u.showError(e||"Unable to connect to the server."));}#g(){this.#s||(this.#s=true);}utf8Atob(e){let o=Uint8Array.from(atob(e),s=>s.charCodeAt(0)),n=this.#f.decode(o);return n?JSON.parse(n):null}connectToMachineServer(e,o,n){let s=n?.reconnect??false,l=this.wsState();(l==="disconnected"||l==="error"||s)&&(this.#t?.close(),this.#t=null),!this.#t&&(this.#s=false,this.#t=new WebSocket(o),this.#o.set("connecting"),this.#t.onopen=()=>{this.#o.set("connect"),this.#n.set(true),this.#a.set(false),this.#p.set(null),this.#l.set(null);},this.#t.onclose=()=>{this.#o.set("disconnected"),this.#n.set(false),this.#p.set(e),this.#l.set(o),this.#a.set(true);},this.#t.onerror=()=>{this.#o.set("error");},this.#t.onmessage=m=>{let a=JSON.parse(m.data);if(this.wsState()==="connect"){if(a.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${a.type}'`);return}let i={token:e,publicKey:"",clientVersion:$e,protocolVersion:Ge},p=this.createResponse(a,"authportal",i);this.#o.set("welcome"),this.#t?.send(p);}else if(this.wsState()==="welcome"){if(a.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${a.type}'`);return}var b=JSON.parse(a.payload??"");if(b.accepted===false){this.#i("Authentication failed"),this.disconnectFromMachineServer("Authentication failed");return}for(this.#o.set("authenticated"),this.#n.set(true);this.#c.length>0;){let i=this.#c.pop();i&&this.#r[i.messageId]&&this.activateCommand(i);}}else if(this.wsState()==="authenticated"){if(a.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${a.type}'`);return}let i=this.#r[a.messageId];if(i){if(a.errorMessage)this.#i(a.errorMessage),i.reject(a.errorMessage);else {let p=JSON.parse(a.payload??"");p.statusCode>=400?this.#i(p.body||`Initial request failed with status code ${p.statusCode}`):this.#g(),p.body=p?.body==null?null:i.binaryBody?p.body:this.utf8Atob(p.body),i.resolve(p);}delete this.#r[a.messageId],window.clearTimeout(i.timer);}}});}disconnectFromMachineServer(e=null){e&&console.error(e),this.#t?.close(),this.#t=null,this.#o.set("disconnected"),this.#n.set(false);}createResponse(e,o,n){let s={from:Pe,to:e.from,type:o,messageId:e.messageId,payload:JSON.stringify(n)};return JSON.stringify(s)}sendCommand(e,o,n,s,l,m,a,b=5e3,i=false){return (this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(e,n),new Promise((p,f)=>{let d=x$4(),v={from:Pe,to:o,type:"command",messageId:d,payload:JSON.stringify({method:s,path:l,body:m,headers:a})},S={resolve:p,reject:f,binaryBody:i,timer:window.setTimeout(()=>{let I=this.#r[d];I&&(delete this.#r[d],this.#i("The request timed out before receiving a response."),I.reject("Timeout"));},b)};this.#r[d]=S,this.#n()?this.activateCommand(v):this.#c.push(v);})}activateCommand(e){this.#t?.send(JSON.stringify(e));}static \u0275fac=function(o){return new(o||t)};static \u0275prov=ee$5({token:t,factory:t.\u0275fac,providedIn:"root"})};function Je(t){if(typeof t!="string")return null;let o=new TextEncoder().encode(t);return window.btoa(String.fromCharCode(...o))}function He(t){let e=atob(t),o=new Uint8Array(e.length);for(let n=0;n<e.length;n++)o[n]=e.charCodeAt(n);return o}function Ue(t,e,o){let n=t.relayconfigState.config();if(n===null)return o(e);let s=Je(e.body),l={};e.headers.keys().forEach(p=>{l[p]=e.headers.get(p)??"";});let m=e.headers.get("timeout"),a=m!==null?parseInt(m):t.defaultTimeout;e.url.startsWith("/api/v1/serverstate")&&e.url.includes("longpoll=true")&&(a=1e3*99);let b=e.responseType==="blob"||e.responseType==="arraybuffer",i=t.relayWebsocket.sendCommand(n.accessToken,n.clientId,n.machineServerUrl,e.method,e.url,s,l,a,b);return new S$6(p=>{i.then(f=>{let d=new y$4;l!=null&&Object.keys(l).forEach(S=>{d.set(S,l[S]);});let u=f.body;u!=null&&e.responseType==="blob"?u=new Blob([He(u)]):u!=null&&e.responseType==="arraybuffer"&&(u=He(u).buffer);let v=new S$5({body:u,status:f.statusCode,statusText:"OK",headers:d});p.next(v),p.complete();}).catch(f=>{p.error(new w$4({error:f??"Unknown error",status:0,statusText:f??"Unknown error"}));});})}var Ve=(t,e)=>{let o={relayconfigState:T$7(I$1),defaultTimeout:T$7(y).defaultTimeout,relayWebsocket:T$7(L)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let s=new fe$5;return o.relayconfigState.configLoaded.subscribe(l=>{l&&Ue(o,t,e).subscribe(s);}),s}return Ue(o,t,e)};var De={providers:[ub(),_o(xe,jo(),xo(Mo)),Ke$1(Qe$2(),qe$2([Ve,Le])),f$1,{provide:y,useValue:Ne},{provide:Jl,useValue:_t$2()},{provide:G$3,useValue:{alertVariant:"simple"}},l$1,y$2,ja,pi$1,m$1,ci$1,m,c]};Le$3(N,De);export{$l as $,v$4 as A,A$1 as B,CE as C,w1 as D,E1 as E,Fg as F,Ge$5 as G,Hg as H,I$1 as I,zu as J,im as K,Kg as L,qg as M,Nt$3 as N,Od as O,Pd as P,Qi$1 as Q,fC as R,aC as S,T$7 as T,UC as U,Ul as V,Eg as W,Wl as X,cC as Y,lr as Z,_t$1 as _,T$1 as a,JC as a$,de$2 as a0,dT as a1,fT as a2,KC as a3,uT as a4,g$1 as a5,be$3 as a6,l$1 as a7,To as a8,GC as a9,y$4 as aA,sm as aB,yg as aC,YC as aD,jo$1 as aE,XC as aF,pt$2 as aG,m$1 as aH,c as aI,ci$1 as aJ,mb as aK,hi$1 as aL,ob as aM,ab as aN,am as aO,ql as aP,Gl as aQ,sb as aR,cb as aS,dy as aT,sy as aU,ay as aV,G$4 as aW,y$2 as aX,x$4 as aY,ee$5 as aZ,x1 as a_,Ql as aa,C as ab,I1 as ac,Mr as ad,eo$1 as ae,D1 as af,Yg as ag,fe as ah,m$6 as ai,l$3 as aj,dm as ak,WC as al,si$2 as am,Bg as an,qC as ao,lT as ap,Tg as aq,Zp as ar,qd as as,h$1 as at,Vg as au,rC as av,W$1 as aw,De$4 as ax,Qu as ay,t as az,me$5 as b,n as b$,Hs as b0,iy as b1,m as b2,Ae$4 as b3,qu as b4,lg as b5,oT as b6,iT as b7,Iw as b8,k$4 as b9,fd as bA,so$1 as bB,ED as bC,Gv as bD,et$1 as bE,ve$5 as bF,Mv as bG,ww as bH,_1 as bI,fe$5 as bJ,wy as bK,s$1 as bL,Z$3 as bM,N1 as bN,Jo as bO,D$6 as bP,Fl as bQ,Qd as bR,ys as bS,ir$1 as bT,B$1 as bU,re$1 as bV,ds as bW,pe$5 as bX,Wr as bY,ei$1 as bZ,wg as b_,ue$3 as ba,ce$2 as bb,sg as bc,h as bd,Fi$1 as be,Jt$2 as bf,Kn as bg,pi$1 as bh,cg as bi,Q$2 as bj,Gd as bk,_s as bl,j$6 as bm,ft$2 as bn,go$1 as bo,f$1 as bp,wt$2 as bq,uv as br,Rr as bs,rE as bt,N$4 as bu,le$1 as bv,_C as bw,Xr$1 as bx,x$6 as by,mw as bz,N$1 as c,Nt$2 as c$,oe$3 as c0,ae$3 as c1,e as c2,pC as c3,$s as c4,lb as c5,je$3 as c6,zp as c7,T1 as c8,C1 as c9,Ce$4 as cA,ye$4 as cB,qt$2 as cC,Ee$4 as cD,Qt$1 as cE,Ze$2 as cF,ne$4 as cG,m$4 as cH,de$4 as cI,g$4 as cJ,nn$1 as cK,j$5 as cL,d$2 as cM,Rt$2 as cN,Zt$2 as cO,Gt$2 as cP,Kt$1 as cQ,Yt$2 as cR,zt$2 as cS,q$6 as cT,Q$5 as cU,Bt$2 as cV,Pt$1 as cW,kt$1 as cX,Ut$1 as cY,jt$1 as cZ,Ot$1 as c_,Wg as ca,VI as cb,HI as cc,Vt as cd,E$2 as ce,Ty as cf,rd as cg,mo$1 as ch,Ss as ci,xs as cj,S$6 as ck,Sr as cl,eb as cm,Zu as cn,ly as co,Sy as cp,ce$4 as cq,y$7 as cr,tn$1 as cs,en$1 as ct,A$2 as cu,I$3 as cv,fv as cw,Je$4 as cx,Ne$5 as cy,U$4 as cz,aT as d,Fe$5 as d0,M$3 as d1,xt$1 as d2,J$5 as d3,Vt$2 as d4,Or as d5,Tr as d6,f$4 as d7,wi$1 as d8,Ai$1 as d9,L$4 as da,k$6 as db,_$3 as dc,ee$1 as e,NC as f,cT as g,hw as h,Ig as i,jg as j,iC as k,vT as l,m$3 as m,nC as n,oC as o,lm as p,qe$4 as q,CD as r,jC as s,tb as t,ue as u,v$2 as v,cm as w,_D as x,vg as y,za as z};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duplicati/ngclient",
3
- "version": "0.0.233",
3
+ "version": "0.0.234",
4
4
  "license": "MIT",
5
5
  "contributors": [
6
6
  "sp90",
package/chunk-B1wZ4poV.js DELETED
@@ -1 +0,0 @@
1
- import {G}from'./chunk-DV8bRznt.js';import {w as w$1}from'./chunk-C9OqpwwE.js';import'./chunk-I5dxaHZ4.js';import {e as ee$1}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,aw as W,e as ee,G as Ge,z as za,b9 as k$1,h as hw,Z as lr,_ as _t,a8 as To,i as Ig,d as aT,Q as Qi,$ as $l,C as CE,g as cT,aD as YC,L as Kg,k as iC,n as nC,y as vg,a3 as KC,a$ as JC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';var w=()=>["/restore-from-files/destination"],k=()=>["/restore-from-files/encryption"],x=()=>["/restore-from-files/select-files"],J=()=>["/restore-from-files/options"],X=t=>["/restore",t,"select-files"],D=t=>["/restore",t,"options"];function z(t,n){t&1&&(Qi(0,"div",7),nC(1,0),$l(),Qi(2,"div",7),nC(3,1),$l(),Qi(4,"div",8),nC(5,2),$l(),Qi(6,"div",8),nC(7,3),$l()),t&2&&(vg("routerLink",KC(4,w)),CE(2),vg("routerLink",KC(5,k)),CE(2),vg("routerLink",KC(6,x)),CE(2),vg("routerLink",KC(7,J)));}function B(t,n){if(t&1&&(Qi(0,"div",7),nC(1,4),$l(),Qi(2,"div",7),nC(3,5),$l()),t&2){let e=iC(2);vg("routerLink",JC(2,X,e.backupId())),CE(2),vg("routerLink",JC(4,D,e.backupId()));}}function U(t,n){if(t&1&&(Qi(0,"sh-stepper",6),aT(1,z,8,8)(2,B,4,6),$l()),t&2){let e=iC();CE(),cT(e.isFileRestore()?1:2);}}var f=class t{#e=T(W);#n=T(ee);#t=T(G);#i=L(this.#e.params);#o=L(this.#e.url);#r=L(this.#e.children[0].url);backupId=this.#t.backupId;isFileRestore=this.#t.isFileRestore;isFullWidthPage=Ge(false);paramsChanged=za(()=>{let n=this.#r(),e=this.#i()?.id,r=!!this.#o()?.find(s=>s.path==="restore-from-files"),d=!!n?.find(s=>s.path==="select-files"),R=!!n?.find(s=>s.path==="progress");this.isFullWidthPage.set(R||d),this.#t.init(e,r);});ngOnInit(){this.#n.events.subscribe(n=>{if(n instanceof k$1){let e=n.urlAfterRedirects;this.isFullWidthPage.set(e.includes("progress")||e.includes("select-files"));}});}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=hw({type:t,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(e,r){e&2&&Kg("full-width",r.isFullWidthPage());},features:[YC([G,Ve])],decls:4,vars:1,consts:()=>{let n;n=$localize` Destination `;let e;e=$localize` Encryption `;let r;r=$localize` Select files `;let d;d=$localize` Options `;let R;R=$localize` Select files `;let s;return s=$localize`Options`,[n,e,r,d,R,s,[1,"primary"],["tabindex","-1","routerLinkActive","active",3,"routerLink"],["tabindex","-1","routerLinkActive","active",1,"inactive",3,"routerLink"]]},template:function(e,r){e&1&&(Ig(0,"app-status-bar"),aT(1,U,3,1,"sh-stepper",6),Qi(2,"section"),Ig(3,"router-outlet"),$l()),e&2&&(CE(),cT(r.isFullWidthPage()?-1:1));},dependencies:[w$1,ee$1,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{f as default};
package/chunk-BZgAzrl9.js DELETED
@@ -1,2 +0,0 @@
1
- import {J}from'./chunk-aCJqF9DH.js';import {c}from'./chunk-DXEgz1tV.js';import {E as Ee,L as Le}from'./chunk-Dz5guW4b.js';import {N as Nt$2}from'./chunk-CyqqlRjO.js';import {v as ve}from'./chunk-CX3Axjpk.js';import {x}from'./chunk-mA4J4_nC.js';import {T,ab as C,m,a6 as be,E as E1,ac as I1,G as Ge,D as w1,N as Nt$1,ai as m$1,aj as l,z as za,at as h,aG as pt$1,b0 as Hs,b1 as iy,bK as wy,J as zu,h as hw,v,c as N,a0 as de,bZ as ei,u as ue,aH as m$2,S as aC,d as aT,Q as Qi,Y as cC,bi as cg,$ as $l,c3 as pC,g as cT,C as CE,L as Kg,y as vg,a$ as JC,M as qg,R as fC,p as lm,U as UC,r as CD,aC as yg,w as cm,x as _D,ag as Yg,aD as YC,n as nC,aP as ql,a1 as dT,aQ as Gl,au as Vg,av as rC,a2 as fT,c4 as $s,ay as Qu,l as vT,O as Od,k as iC,P as Pd,i as Ig,b_ as wg,H as Hg,s as jC,K as im,F as Fg,j as jg,a3 as KC,aB as sm,ap as lT,aM as ob,aa as Ql,aS as cb,aF as XC,ar as Zp,c5 as lb}from'./main-3NL5M6JB.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {B as Bn,Z as Ze,R as Rn,J as Jt$1,e as en$1,D}from'./chunk-B6c2NXNy.js';import {$}from'./chunk-DGvC49aU.js';function Tt(r){let t=r.replace(/^@/,""),e=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return t=t.replace(e,(n,i,o)=>`(${o})`),t.replace(/\\/g,"\\\\")}function dt(r,t){let e=Tt(t),n=e.startsWith("^")&&e.endsWith("$")?e:`^(${e})$`;return new RegExp(n).test(r)}function Se(r,t){let e=t.replace(/[\\.+^${}()|[\]*?]/g,n=>n==="*"?".*":n==="?"?".":"\\"+n);return new RegExp(`^${e}$`).test(r)}var Et=["treeContainer"],bt=["formRef"],St=[[["label"]],[["label"]],[["input"]]],Nt=["label","label","input"],ut=["ngProjectAs","label",5,["label"]],vt=["ngProjectAs","input",5,["input"]],Ot=r=>({children:r,level:0}),_t=r=>({$implicit:r}),Ft=(r,t)=>({children:r,level:t}),xt=()=>({maxWidth:"700px",width:"100%"}),Rt=(r,t)=>t.id;function Dt(r,t){if(r&1){let e=vT();Qi(0,"sh-button-group",22),lm("valueChange",function(i){Od(e);let o=iC();return UC(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),Pd(i)}),Qi(1,"button",23),nC(2,4),$l(),Qi(3,"button",24),nC(4,5),$l()();}if(r&2){let e=iC();cm("value",e.pathDiscoveryMethod);}}function wt(r,t){r&1&&Ig(0,"sh-progress-bar",14);}function It(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"spinner"),$l());}function Lt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"arrow-down"),$l());}function At(r,t){if(r&1){let e=vT();Qi(0,"div",26),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.loadMore(i,o))}),Qi(1,"div",27),Ig(2,"sh-icon",28),aT(3,It,2,0,"sh-icon",29)(4,Lt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l()()();}if(r&2){let e=iC().$implicit,n=iC(2);Kg("loading",n.isLoading()===e.id),CE(3),cT(n.isLoading()===e.id?3:4),CE(4),im(e.text);}}function kt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-down"),$l());}function Bt(r,t){r&1&&Ig(0,"sh-icon",28);}function $t(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"spinner"),$l());}function Wt(r,t){r&1&&(Qi(0,"sh-icon",28),jC(1,"caret-right"),$l());}function Vt(r,t){if(r&1&&Ig(0,"img",34),r&2){let e=iC(3).$implicit;vg("src",e.customIcon,Zp);}}function Gt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-open"),$l());}function zt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder-user"),$l());}function jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"file"),$l());}function Ht(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"folder"),$l());}function Ut(r,t){if(r&1&&(aT(0,kt,2,0,"sh-icon",28)(1,Bt,1,0,"sh-icon",28)(2,$t,2,0,"sh-icon",28)(3,Wt,2,0,"sh-icon",28),aT(4,Vt,1,1,"img",34)(5,Gt,2,0,"sh-icon",29)(6,zt,2,0,"sh-icon",29)(7,jt,2,0,"sh-icon",29)(8,Ht,2,0,"sh-icon",29)),r&2){let e=iC(2).$implicit,n=iC(2);cT(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),CE(4),cT(e.customIcon?4:e.children.length?5:e.id==="%HOME%"?6:e.cls==="file"?7:8);}}function Jt(r,t){r&1&&(Qi(0,"sh-icon",29),jC(1,"desktop-tower"),$l());}function Xt(r,t){if(r&1&&(Qi(0,"span",33),jC(1),ob(2,"bytes"),$l()),r&2){let e=iC(2).$implicit;CE(),Ql("\xA0(",cb(2,1,e.fileSize,true,true),")");}}function qt(r,t){r&1&&wg(0);}function Kt(r,t){if(r&1&&cg(0,qt,1,0,"ng-container",15),r&2){let e=iC(2).$implicit,n=iC().$implicit;iC();let i=pC(7);vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(5,_t,XC(2,Ft,e.children,n.level+1)));}}function Qt(r,t){if(r&1){let e=vT();Qi(0,"div",31,3),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.toggleSelectedNode(i,o))}),Qi(2,"div",32),Hg("click",function(i){Od(e);let o=iC().$implicit,l=iC(2);return Pd(l.toggleNode(i,o.id,o))}),aT(3,Ut,9,2)(4,Jt,2,0,"sh-icon",29),$l(),Qi(5,"div",30)(6,"span"),jC(7),$l(),aT(8,Xt,3,5,"span",33),$l()(),aT(9,Kt,1,7,"ng-container");}if(r&2){let e=iC().$implicit,n=iC().$implicit,i=iC();Kg("accepted",e.accepted===true)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id)("generated",e.isGenerated)("search-match",e.isSearchMatch),CE(2),Kg("file",e.cls==="file"),CE(),cT(e.id!=="/"?3:4),CE(4),im(e.text),CE(),cT(e.cls=="file"&&e.fileSize!=null&&e.fileSize>=0?8:-1),CE(),cT(e.children.length>0?9:-1);}}function Yt(r,t){if(r&1&&aT(0,At,8,4,"div",25)(1,Qt,10,24),r&2){let e=t.$implicit,n=iC(2);cT(e.isLoadMore?0:e.hidden&&n._showHiddenNodes()||!e.hidden?1:-1);}}function Zt(r,t){if(r&1&&(Qi(0,"sh-list"),dT(1,Yt,2,1,null,null,Rt),$l()),r&2){let e=t.$implicit;Yg("padding-left",e.level*.25,"rem"),CE(),fT(e.children);}}function en(r,t){r&1&&wg(0);}function tn(r,t){if(r&1){let e=vT();Qi(0,"sh-toggle",35),lm("checkedChange",function(i){Od(e);let o=iC();return UC(o._showHiddenNodes,i)||(o._showHiddenNodes=i),Pd(i)}),nC(1,6),$l();}if(r&2){let e=iC();cm("checked",e._showHiddenNodes),CE(),Vg(e.showFiles()?"files":"folders"),rC(1);}}function nn(r,t){if(r&1){let e=vT();Qi(0,"button",36),Hg("click",function(){Od(e);let i=iC();return Pd(i.openCreateFolderDialog())}),nC(1,7),$l();}if(r&2){let e=iC();vg("disabled",!e.isCurrentPathFolder());}}function on(r,t){if(r&1&&(Qi(0,"sh-alert",20),jC(1),$l()),r&2){let e=iC();vg("color","error"),CE(),im(e.errorMessage());}}function rn(r,t){if(r&1){let e=vT();Qi(0,"sh-dialog",37),lm("isOpenChange",function(i){Od(e);let o=iC();return UC(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),Pd(i)}),Qi(1,"header",38)(2,"h2"),nC(3,8),$l()(),Qi(4,"div",39)(5,"div",40)(6,"p"),nC(7,9),$l(),Qi(8,"div",41)(9,"pre"),jC(10),$l()()(),Qi(11,"sh-form-field")(12,"textarea",42),lm("ngModelChange",function(i){Od(e);let o=iC();return UC(o.createFolderPath,i)||(o.createFolderPath=i),Pd(i)}),$l(),CD(),$l()(),Qi(13,"footer",43)(14,"button",44),Hg("click",function(){Od(e);let i=iC();return Pd(i.closeCreateFolderDialog(false))}),jC(15,"Cancel"),$l(),Qi(16,"button",45),Hg("click",function(){Od(e);let i=iC();return Pd(i.closeCreateFolderDialog(true))}),Fg(17,10),Ig(18,"sh-icon"),jg(),$l()()();}if(r&2){let e=iC();cm("isOpen",e.createFolderDialogOpen),vg("options",KC(6,xt)),CE(10),sm("",e.currentPathResolved(),"",e.createFolderPath()?"/"+e.createFolderPath():""),CE(2),cm("ngModel",e.createFolderPath),_D(),CE(4),vg("disabled",!e.createFolderPath()?.length);}}var ft=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(ft||{}),E="/",pt="\0load-more",ie=true,Ne=class r{#e=T(C);#t=T(m);#E=T(be);multiSelect=E1(false);disabled=E1(false);showFiles=E1(false);selectFiles=E1(false);onlySelectFolder=E1(false);accepts=E1(null);startingPath=E1(null);rootPaths=E1([]);initialNodes=E1([]);backupSettings=E1(null);pathRefreshTrigger=E1(false);showHiddenNodes=E1(false);enableCreateFolder=E1(false);hideShortcuts=E1(false);resolvePaths=E1(false);customRemoteMode=E1(null);showUnrootedSources=E1(false);backupId=E1("");connectionStringId=E1(null);sourcePrefix=E1("");destinationUrl=E1("");loadExtendedData=E1(true);hasExtendedData=I1();searchMode=E1(false);searchResults=E1([]);_showHiddenNodes=Ge(false);createFolderDialogOpen=Ge(false);createFolderPath=Ge(null);errorMessage=Ge(null);anyRemoteSourcesLoaded=Ge(false);treeContainerRef=w1("treeContainer");formRef=w1("formRef");pathDiscoveryMethod=Ge("browse");isLoading=Ge(null);currentPath=Ge("");#p=Ge(null);treeSearchQuery=Ge("");treeNodes=Ge([]);pathDelimiter=Nt$1(()=>this.#t.systemInfo()?.DirectorySeparator??"");#r=Nt$1(()=>this.currentPathArray().filter(e=>this.#i(e)).find(e=>e.includes("*")||e.includes("[")||e.includes("{")||e.includes("?"))&&this.#t.hasV2FilterOperations());filterGroups=this.#t.filterGroups();isByBackupSettings=Nt$1(()=>{let t=this.backupSettings();return !(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=Nt$1(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});currentPathArray=Nt$1(()=>this.currentPath().split("\0").filter(t=>t!==""&&t!==E));currentPathResolved=Nt$1(()=>this.currentPathArray().map(e=>{let n=this.treeNodes().find(i=>i.id===e)?.resolvedpath??e;return this.#t.resolveShorthandPath(n)}).join("\0"));#c(t){if(!t)return null;if(t.startsWith("@")&&t.includes("|")){let e=t.split("|"),n=e[0],i=e[1],o=i.split("://")[0],l=e[2]??"";return o==="diskimage"&&!l&&(l=this.#s(e[1].split("://")[1])),{mount:n.substring(1),prefix:n,url:i,type:o,path:l}}return null}#m=Nt$1(()=>{if(!this.showUnrootedSources())return [];let t=this.rootPaths();return (t===void 0||t.length===0)&&(t=[E]),this.currentPathArray().filter(n=>!this.#i(n)).filter(n=>!n.startsWith("%")).filter(n=>!t.find(i=>n.startsWith(i))).map(n=>{let i=this.#c(n);return i?{id:n,path:i.mount,displayName:Le(i.url),icon:Ee(i.url)}:{id:n,path:n,displayName:n,icon:null}})});#d(t){return t.map(e=>{if(this.#i(e))return e;let n=this.#c(e);return n?this.#s(n.mount):e})}TreeEvalEnum=ft;#b=Nt$1(()=>{if(!this.#r())return null;let t=this.#d(this.currentPathArray()),e=t.filter(o=>!this.#i(o)),n=t.filter(o=>this.#i(o));return {paths:this.searchableTreeNodes().filter(o=>!o.isLoadMore).map(o=>o.id).filter(Boolean),sources:e,filters:n}});#_=$({params:()=>({data:this.#b()}),stream:({params:t})=>!this.#r()||!t.data||t.data.sources.length===0?iy(null):$s(300).pipe(Qu(()=>this.#e.postApiV2FilesystemTestFilter({requestBody:{Paths:t.data?.paths,Sources:t.data?.sources,Filters:t.data?.filters}}).pipe(pt$1(e=>{if(!e.Success||!e.Data)return console.log("Error evaluating filters",e),null;let n=new Map;for(let i of e.Data)if(i.Path){let o=0;i.Included?o=1:i.MatchedFilter&&(o=-1),n.set(i.Path,o);}return n}),Hs(()=>iy(null)))))});searchResultTreeStructure=Nt$1(()=>{let t=this.searchResults();if(t.length===0)return [];let e=this.currentPathArray(),n=this.showHiddenNodes(),i=new Map;for(let s of t){let a=s.Path??"",m=this.#a(a),P=a.split(m).filter(O=>O!==""),y="";for(let O=0;O<P.length;O++){let b=P[O],I=O===P.length-1,U=!I||this.#n(a),Pt=y||E,ve=y?y.endsWith(m)?y.slice(0,-m.length):y:"";if(y=ve?`${ve}${m}${b}`:`${m}${b}`,U&&!y.endsWith(m)&&(y+=m),!i.has(y))i.set(y,{part:b,parentPath:Pt,isFolder:U,match:I?s:null});else if(I){let yt=i.get(y);yt.match=s;}}}let o=new Map;for(let[s,a]of i)o.has(a.parentPath)||o.set(a.parentPath,[]),o.get(a.parentPath).push(s);let l=new Set,d=new Map;for(let[s,a]of i){if(!a.isFolder){l.add(s);continue}let m=o.get(a.parentPath)||[];if(m.length===1&&m[0]===s&&a.parentPath!==E)continue;l.add(s);let y=a.part,O=s;for(;;){let b=o.get(O)||[];if(b.length!==1)break;let I=b[0],U=i.get(I);if(!U||!U.isFolder)break;y+="/"+U.part,O=I;}O!==s&&d.set(s,y);}l.add(E);let c=[],p=new Map,u=Array.from(l).filter(s=>s!==E).sort((s,a)=>s.split("/").length-a.split("/").length||s.localeCompare(a));for(let s of u){let a=i.get(s);if(!a)continue;let m=a.parentPath;for(;m!==E&&!l.has(m);)m=i.get(m)?.parentPath||E;if(p.has(s))continue;let P=this.#g(d.get(s),a.match?.Metadata)??a.part,y=a.match===null,O=a.match!==null&&!a.isFolder&&n?0:this.#r()?this.#h(s,null,e,a.isFolder?"folder":"file"):this.#u(e,s,a.isFolder?"folder":"file",null),b={id:s,resolvedpath:s,text:P,parentPath:m,children:[],evalState:O,isIndeterminate:this.isIndeterminate(e,s),cls:a.isFolder?"folder":"file",isSearchMatch:a.match!==null,isGenerated:y,hasChildrenInSearch:(o.get(s)?.length||0)>0,iconCls:null,check:false,leaf:!a.isFolder,hidden:false,systemFile:false,temporary:false,symlink:false,fileSize:a.match?.Size??0};if(p.set(s,b),m===E)c.push(b);else {let I=p.get(m);I&&I.children.push(b);}}let M=s=>{s.sort((a,m)=>a.cls==="folder"&&m.cls!=="folder"?-1:a.cls!=="folder"&&m.cls==="folder"?1:(a.text??"").localeCompare(m.text??"")),s.forEach(a=>M(a.children));};return M(c),c});treeStructure=Nt$1(()=>{if(this.searchMode())return this.searchResultTreeStructure();this.#_.value();let e=this.showHiddenNodes(),n=this.#S(this.currentPathArray()),i=this.searchableTreeNodes(),o=this.rootPaths(),l$1=this.accepts(),d=[];o.length>0?d=o.map(p=>{let u=this.#r()?this.#h(p,null,n,"folder"):this.#u(n,p,"folder",null);return {id:p,resolvedpath:p,text:p,parentPath:"",children:[],evalState:u,isIndeterminate:false,cls:this.#n(p)?"folder":"file"}}):d=[{id:E,resolvedpath:E,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:false,cls:"folder"}];let c=this.#m().map(p=>({id:p.path,resolvedpath:p.path,remoteSource:this.#c(p.id),text:p.displayName,parentPath:"",children:[],evalState:1,isIndeterminate:false,cls:"folder",customIcon:p.icon}));return d=[...d,...c],d.map(p=>{let u=new Map;if(!p.id)return;let M=p.id;l$1&&(p.accepted=true),u.set(M,p);let s=o.length>0?i.filter(a=>a.parentPath.startsWith(M)):i;for(let a of s){if(!a.id)continue;let m=a.id;if(!a.cls||u.has(m))continue;let P=u.get(a.parentPath),y=a.isLoadMore===true,O=y||a.hidden===true&&!e?0:this.#r()?this.#h(m,P,n,a.cls):this.#u(n,m,a.cls,P),b=m$1(l({},a),{isIndeterminate:y?false:this.isIndeterminate(n,m),evalState:O,children:[]});y?b.accepted=true:l$1&&(b.accepted=this.matchAccepts(l$1,b)),u.set(m,b),b.id?.startsWith("%")&&b.id?.endsWith("%")&&u.set(this.#s(m),b),P&&P.children.push(b);}return p}),d});#S(t){let e=structuredClone(t);for(let n=0;n<e.length;n++){let o=e[n].slice(1);if(o.startsWith("{")&&o.endsWith("}")){let l=o.slice(1,-1),d=this.filterGroups?.FilterGroups?.[l];if(d&&d.length){let c=d.map(p=>`-${p}`);e.splice(n,1,...c);}}}return e}#s(t){if(!t)return E;let e=this.#a(t);return t.endsWith("/")||t.endsWith("\\")||t===E?t:t+e}#f(t){return t?.id?!this.resolvePaths()||!t.resolvedpath?t.id:t.id.startsWith("%")&&t.id.endsWith("%")?this.#s(t.resolvedpath):t.resolvedpath:null}#h(t,e,n,i){if(e&&e.evalState===-1)return -2;let o=this.#_.value();return o&&o.has(t)?o.get(t):this.#u(n,t,i,e)}#u(t,e,n,i){if(i&&i.evalState===-1)return -2;let o=0,l=this.#d(t.filter(u=>!this.#i(u))),d=t.filter(u=>this.#i(u)),c=this.multiSelect(),p=this.#f(this.treeNodes().find(u=>u.id===e))??e;if(l.length===0)return o;for(let u=0;u<l.length;u++){let M=l[u];if(e===M||p==M){o=1;break}if(!c||!this.#n(M))continue;if(e?.startsWith(M)||p?.startsWith(M)){o=1;break}}if(d.length===0)return o;for(let u=0;u<d.length;u++){let M=d[u],s=M.slice(1),a=M.startsWith("-")?-1:1;if(this.#n(s)){if(n!=="folder")continue;if(e===s||p==s){o=a;break}}if(s.startsWith("*")&&(s.endsWith("*\\")||s.endsWith("*/"))){if(n!=="folder")continue;let P=s.slice(1,-2);if(P==="")break;if(e?.includes(P+"\\")||e?.includes(P+"/")){o=a;break}}if(s.startsWith("[.*")&&(s.endsWith("[^\\/]*]")||s.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let P=s.slice(3,-7);if(new RegExp(P).test(e)){o=a;break}}if(s.startsWith("[")&&s.endsWith("]")){let P=s.slice(1,-1);if(dt(e,P)){o=a;break}}if(s.startsWith("*.")){if(n!=="file"||s.replace("*.","").length===0)continue;if(Se(e,s)){o=a;break}}if(s==="")continue;if(s===e){o=a;break}if(Se(e,s)){o=a;break}}return o}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#n(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):false}#a(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=za(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=za(()=>{let t=this.pathDiscoveryMethod(),e=this.#p();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n);}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===E)return true;let n=t.split(",");if(n.length===0)return true;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):false}currentPathEffect=za(()=>{let t=this.#p();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")));});inputValueChangeAbortController=null;inputRefEffect=za(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#N(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value);},{signal:this.inputValueChangeAbortController.signal}),this.#p.set(t),t.autocomplete="off");});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#F(t);else {let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#g(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#l(null,e[0])):this.#l(null,E);}}getParentPath(t){let e=this.#a(t),n=t.split(e);return n.length<=1?E:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.isLoadMore||e.id===E||this.#m().map(u=>this.#c(u.id)?.mount).filter(u=>u).includes(e.id??"")||(t.stopPropagation(),this.searchMode()&&!e.isSearchMatch)||e.evalState===-2)return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(t,e.id,e);return}if(this.onlySelectFolder()&&e.cls!=="folder"||this.accepts()&&!e.accepted)return;let i=this.currentPathArray(),o=this.#d(i),l=this.isChildOfSelected(e),d=this.#f(e),c=l?`-${d}`:d,p=this.#n(d);if(this.multiSelect())if(o.includes(d))this.currentPath.set(i.filter(u=>u!==d&&!(p&&u.startsWith(c))).join("\0"));else if(o.some(u=>u==c))this.currentPath.set(i.filter(u=>u!==c).join("\0"));else {let u=p?i.filter(M=>!M.startsWith(d)):i;this.currentPath.set([...u,c].join("\0"));}else i.includes(d)?this.currentPath.set(i.filter(u=>u!==d).join("\0")):this.currentPath.set(d);}isChildOfSelected(t){return this.#d(this.currentPathArray()).filter(n=>this.#n(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e,n=null){t.stopPropagation(),n?.cls==="folder"&&(n?.children.length?this.treeNodes.update(i=>i.filter(o=>!o.id?.startsWith(n.id)||o.id===n.id)):this.#l(n,e));}loadMore(t,e){t.stopPropagation(),e.isLoadMore&&this.isLoading()===null&&this.#l(e,e.parentPath||E,e.loadMoreOffset??null);}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(true),false}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolved(),o=this.#s(e),l=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+l}}).subscribe({next:()=>{this.currentPath.set(l),this.#l(null,n),setTimeout(()=>{this.#C();},500),this.createFolderDialogOpen.set(false);},error:d=>{let c=d?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),p=c?c[1]:d?.message||$localize`An error occurred while trying to create the folder.`;this.#E.open(h,{data:{title:$localize`Cannot create folder`,message:p,confirmText:$localize`OK`,cancelText:void 0}});}});}}else this.createFolderDialogOpen.set(false);return false}#C(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"});},100);}#N(t){return Object.defineProperty(t,"value",{configurable:true,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:true,cancelable:true,detail:{value:e}})),e}}),t}#v(t){return this.#e.postApiV1Filesystem({showHidden:true,requestBody:{path:t},onlyFolders:!this.showFiles()})}#o(t,e,n,i=null){return this.#e.postApiV2DestinationList({requestBody:{BackupId:this.backupId()??null,DestinationUrl:e?.url??this.destinationUrl()??null,ConnectionStringId:this.connectionStringId()??null,DestinationType:n,SourcePrefix:e?.prefix??this.sourcePrefix()??null,Path:t,Offset:i,Limit:100}}).pipe(pt$1(o=>{let l$1=o.Data?.Items??[];return {items:l$1.map(c=>m$1(l({},c),{Path:(e?.prefix??"")+c.Path})).filter(c=>c.Metadata==null||!c.Metadata.ExtType),hasMore:o.Data?.HasMore??false,nextOffset:(o.Data?.Offset??i??0)+l$1.length}}))}#M(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#P(t,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":e?.prefix??this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:e?.url??this.destinationUrl()??"",path:t??"/"}}).pipe(pt$1(n=>{let i=n.Result;if(!i)throw new Error("No result returned");if(n.Status!=="OK")throw new Error(i.error??"An error occured");return Object.keys(i).map(o=>({Path:(e?.prefix??"")+o,Metadata:JSON.parse(i[o])}))}))}#y(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(pt$1(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#O(t){let e=this.backupSettings();if(this.#t.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(pt$1(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:false,folderContents:true,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(pt$1(i=>i.Files??[]))}}#T(t,e,n=null){return e?.type==="office365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#M(e.path,e):this.customRemoteMode()==="o365"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#M(t,null):e?.type==="googleworkspace"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#P(e.path,e):this.customRemoteMode()==="gsuite"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#P(t,null):e?.type==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(e.path,e,"SourceProvider",n):this.#y(e.path):this.customRemoteMode()==="diskimage"?this.#t.hasV2ListBackendOperations()&&ie?this.#o(t,null,"SourceProvider",n):this.#y(t):this.isByBackupSettings()?this.#O(t):this.customRemoteMode()==="backend"?this.#o(t,null,"Backend",n):this.#v(t)}#F(t){let n=t.split("\0").filter(l=>!this.#i(l)&&!l.startsWith("@")).filter(Boolean).map(l=>{let d=this.#a(l),c=l.split(d);return c.at(-1)===""&&c.pop(),this.#n(l)||c.pop(),{split:c,sep:d}}),i=[E];n.forEach(({split:l,sep:d})=>{l.forEach((c,p)=>{let u=l.slice(0,p+1).join(d)+d;u===""||u===d||i.includes(u)||i.push(u);});});let o=i.map(l=>(this.isLoading.set(l),this.#T(l,null).pipe(pt$1(d=>({status:"success",value:d,url:l})),Hs(d=>iy({status:"error",value:d,url:l})))));wy(o).pipe(zu(()=>this.isLoading.set(null))).subscribe({next:l$1=>{let d=l$1.filter(p=>p.status==="success");l$1.filter(p=>p.status==="error");this.treeNodes.update(p=>{let u=d.flatMap(s=>(Array.isArray(s.value)?s.value:s.value?.items??[]).map(m=>m$1(l({},m),{parentPath:s.url})));u.length>0&&this.anyRemoteSourcesLoaded.set(true);let M=[...new Map([...p,...u].map(s=>[s.id,s])).values()];return this.#C(),this.hideShortcuts()?M.filter(s=>!s.id.startsWith("%")):M});}});}#g(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#x(t){t&&t.ExtType&&t.ExtType.length>0?this.hasExtendedData.emit(t.ExtType):t&&t["diskimage:Type"]&&t["diskimage:Type"].length>0&&this.hasExtendedData.emit("diskimage");}#n(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#i(t){return t.startsWith("+")||t.startsWith("-")}#R(t,e,n){return {id:`${t}${pt}`,text:$localize`Load more`,cls:"load-more",leaf:true,hidden:false,parentPath:t,remoteSource:e??void 0,isLoadMore:true,loadMoreOffset:n}}#l(t=null,e=E,n=null){let i=t?.remoteSource;this.isLoading.set(t?.isLoadMore?t.id??e:e),this.#T(e,i,n).pipe(zu(()=>this.isLoading.set(null))).subscribe({next:o=>{let l$1=Array.isArray(o)?{items:o,hasMore:false,nextOffset:0}:{items:o?.items??[],hasMore:o?.hasMore??false,nextOffset:o?.nextOffset??0},d=this.isByBackupSettings()||this.customRemoteMode()!==null||i?l$1.items.map(c=>{this.#x(c.Metadata);let p=this.#a(c.Path),u=this.#g(c.Path.split(p).filter(P=>P!=="").pop(),c.Metadata),M=c.Path,s=null,a=this.#n(c.Path)?"folder":"file",m=c.Metadata;return i&&(M=c.Path.substring(1),s=m$1(l({},i),{path:c.Path.substring(i.prefix.length)})),m&&(m["diskimage:Type"]==="geometry"||m["diskimage:Type"]==="partitioninfo"||m["diskimage:Type"]==="filesystem")?null:{text:u,id:M,cls:a,leaf:t!==null,resolvedpath:c.Path,hidden:false,remoteSource:s,fileSize:c.Size}}):l$1.items;d.length>0&&this.anyRemoteSourcesLoaded.set(true),this.treeNodes.update(c=>{let p=d.filter(a=>a!==null).map(a=>{let m=a.cls??(this.#n(a.id)?"folder":"file");return m$1(l({},a),{cls:m,parentPath:e})}),u=`${e}${pt}`,M=[...c,...p].filter(a=>a.id!==u);l$1.hasMore&&M.push(this.#R(e,i,l$1.nextOffset));let s=[...new Map(M.map(a=>[a.id,a])).values()];return this.hideShortcuts()?s.filter(a=>!a.id.startsWith("%")):s});},error:o=>{this.errorMessage.set(o.message),this.anyRemoteSourcesLoaded()&&setTimeout(()=>{this.errorMessage.set(null);},5e3);}});}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&qg(n.treeContainerRef,Et,5)(n.formRef,bt,5),e&2&&fC(2);},hostVars:2,hostBindings:function(e,n){e&2&&Kg("disabled",n.disabled());},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],onlySelectFolder:[1,"onlySelectFolder"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],resolvePaths:[1,"resolvePaths"],customRemoteMode:[1,"customRemoteMode"],showUnrootedSources:[1,"showUnrootedSources"],backupId:[1,"backupId"],connectionStringId:[1,"connectionStringId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"],searchMode:[1,"searchMode"],searchResults:[1,"searchResults"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:Nt,decls:19,vars:18,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let l;l=$localize`Will be created as:`;let d;return d=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,l,d,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"color"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",1,"load-more",3,"loading"],["action","",1,"load-more",3,"click"],[1,"icon","file"],[1,"small"],[1,"primary"],[1,"text"],["action","",3,"click"],[1,"icon",3,"click"],[1,"size"],["alt","Provider icon",1,"provider-icon",3,"src"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(aC(St),aT(0,Dt,5,1,"sh-button-group",11),Qi(1,"div",12),cC(2,0,ut),Qi(3,"div",13,0),aT(5,wt,1,0,"sh-progress-bar",14),cg(6,Zt,3,2,"ng-template",null,1,lb)(8,en,1,0,"ng-container",15),$l(),Qi(9,"div",16),aT(10,tn,2,2,"sh-toggle",17),aT(11,nn,2,1,"button",18),$l()(),Qi(12,"div",19,2)(14,"sh-form-field"),cC(15,1,ut),cC(16,2,vt),$l()(),aT(17,on,2,2,"sh-alert",20),aT(18,rn,19,7,"sh-dialog",21)),e&2){let i=pC(7);cT(!n.multiSelect()&&n.customRemoteMode()===null&&!n.searchMode()?0:-1),CE(),Kg("hidden",!n.searchMode()&&n.pathDiscoveryMethod()!=="browse"),CE(2),Kg("visualize-accepted",n.accepts()),CE(2),cT(n.isLoading()!=null?5:-1),CE(3),vg("ngTemplateOutlet",i)("ngTemplateOutletContext",JC(16,_t,JC(14,Ot,n.treeStructure()))),CE(2),cT(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null&&!n.searchMode()?10:-1),CE(),cT(n.enableCreateFolder()&&n.customRemoteMode()===null&&!n.searchMode()?11:-1),CE(),Kg("hidden",n.searchMode()||n.pathDiscoveryMethod()!=="path"),CE(5),cT(n.errorMessage()?17:-1),CE(),cT(n.createFolderDialogOpen()?18:-1);}},dependencies:[v,x,J,N,Fe,c,d,de,ei,Bn,Ze,Rn,Jt$1,ue,m$2],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;min-height:6.25rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .size[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].generated[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:var(--base-7)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(img:nth-child(2)){width:2.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].load-more[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-style:italic;opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] .provider-icon[_ngcontent-%COMP%]{width:1rem;height:1rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}']})};var sn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],an=["label","[prefix]","[suffix]"],ln=["ngProjectAs","label",5,["label"]];function cn(r,t){if(r&1&&jC(0),r&2){let e=t.$implicit,n=iC();sm("",e.label,"",n.hasPerSecond()?"/s":"");}}var dn=["throttle-upload","throttle-download"],un=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],pn=r=>{if(!r||typeof r!="string"||r.length===0)return {size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},Ct=class r{customId=E1();inputType=E1();timespan=Ge(0);unit=Ge("MB");sizeOptions=Ge(un);readonly=Ge(false);hasPerSecond=Nt$1(()=>{let t=this.inputType();return t&&dn.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});writeValue(t){if(t){let e=pn(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit);}):(this.timespan.set(0),this.unit.set("MB"));}else this.timespan.set(0),this.unit.set("MB");}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:an,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(aC(sn),Qi(0,"div",0),cC(1,0,ln),$l(),Qi(2,"sh-form-field")(3,"input",1),lm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(4,1),cC(5,2),$l(),Qi(6,"sh-select",2)(7,"input",3),lm("ngModelChange",function(o){return UC(n.unit,o)||(n.unit=o),o}),$l(),CD(),cg(8,cn,1,2,"ng-template"),$l()),e&2&&(CE(2),yg("readonly",n.readonly()||void 0),CE(),vg("id",n.customId()),cm("ngModel",n.timespan),vg("disabled",n.readonly()),_D(),CE(3),Yg("--miw",0),vg("options",n.sizeOptions())("readonly",n.readonly())("isClearable",false),CE(),cm("ngModel",n.unit),_D());},dependencies:[Nt$2,Fe,Bn,Ze,en$1,Rn,Jt$1],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}']})};var hn=[[["label"]],[["","prefix",""]],[["","suffix",""]]],gn=["label","[prefix]","[suffix]"],mn=["ngProjectAs","label",5,["label"]];function _n(r,t){if(r&1){let e=vT();Qi(0,"button",7),Hg("click",function(){let i=Od(e).$implicit,o=iC();return Pd(o.updateUnit(i.value))}),nC(1,1),$l();}if(r&2){let e=t.$implicit;CE(),Vg(e.label),rC(1);}}var fn=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Cn=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],Mn=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout","long-database-query-threshold"],Mt=class r{customId=E1();inputType=E1();timespan=Ge(0);#e="D";unit=Ge(this.#e);unitLabel=Nt$1(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=Nt$1(()=>{let t=this.inputType();return t&&Mn.includes(t.replace("--",""))});timeOptions=Nt$1(()=>this.isShortTime()?fn:Cn);readonly=Ge(false);onChange=()=>{};onTouched=()=>{};onChangeEffect=za(()=>{this.onChange(this.getValue());});inputTypeEffect=za(()=>{this.timeOptions();let e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e);});updateUnit(t){this.unit.set(t);}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e));}else this.timespan.set(0),this.unit.set(this.#e);}registerOnChange(t){this.onChange=t;}registerOnTouched(t){this.onTouched=t;}setDisabledState(t){this.readonly.set(t);}getValue(){return `${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=hw({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[YC([{provide:D,useExisting:r,multi:true}])],ngContentSelectors:gn,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(aC(hn),cC(0,0,mn),Qi(1,"sh-form-field")(2,"input",2),lm("ngModelChange",function(o){return UC(n.timespan,o)||(n.timespan=o),o}),$l(),CD(),cC(3,1),cC(4,2),$l(),Qi(5,"sh-menu",3)(6,"button",4),nC(7,0),$l(),ql(8,5),dT(9,_n,2,1,"button",6,lT),Gl(),$l()),e&2&&(CE(),yg("readonly",n.readonly()||void 0),CE(),vg("id",n.customId()),cm("ngModel",n.timespan),vg("disabled",n.readonly()),_D(),CE(3),vg("openIndicator",true),CE(2),Vg(n.unitLabel()),rC(7),CE(2),fT(n.timeOptions()));},dependencies:[ve,Fe,Bn,Ze,en$1,Rn,Jt$1,v],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}']})};
2
- export{Ct as C,Mt as M,Ne as N,pn as p};
package/chunk-BaSm1lsB.js DELETED
@@ -1,2 +0,0 @@
1
- import {d}from'./chunk-ksSA-rDF.js';import'./chunk-I5dxaHZ4.js';import {s as sn,o as on,p as pt,_ as _n,V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {V,G}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,e as ee,aw as W,a6 as be,bF as ve,D as w1,G as Ge,N as Nt,at as h,h as hw,v,c as N,a0 as de,u as ue,l as vT,ak as dm,Q as Qi,H as Hg,n as nC,$ as $l,d as aT,p as lm,O as Od,U as UC,P as Pd,F as Fg,i as Ig,j as jg,al as WC,C as CE,g as cT,w as cm,y as vg,o as oC,aD as YC,M as qg,R as fC,k as iC,s as jC,aP as ql,aQ as Gl,ao as qC,r as CD,a3 as KC,x as _D}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import {F as Fe$1}from'./chunk-DhiIZLrA.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-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var Fe=["formRef"],De=["testUrl"],Ee=()=>({maxWidth:"700px",width:"100%"});function Oe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Hg("click",function(){Od(e);let t=iC();return Pd(t.openTargetUrlDialog())}),Fg(1,5),Ig(2,"sh-icon"),jg(),$l();}}function fe(o,i){if(o&1){let e=vT();Qi(0,"button",24),Hg("click",function(){Od(e);let t=iC(2);return Pd(t.copyTargetUrl())}),Fg(1,7),Ig(2,"sh-icon"),jg(),$l();}}function he(o,i){if(o&1){let e=vT();Qi(0,"sh-menu")(1,"button",15)(2,"sh-icon"),jC(3,"dots-three-vertical"),$l()(),ql(4,25),Qi(5,"button",24),Hg("click",function(){Od(e);let t=iC();return Pd(t.openTargetUrlDialog())}),Fg(6,6),Ig(7,"sh-icon"),jg(),$l(),aT(8,fe,3,0,"button",15),Gl(),$l();}if(o&2){iC();let e=qC(0);CE(8),cT(e?8:-1);}}function Pe(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list-item",17)(1,"button",20),Hg("click",function(){Od(e);let t=iC();return Pd(t.removeDestination())}),nC(2,8),$l()();}if(o&2){iC();let e=qC(12);vg("destination",e);}}function ye(o,i){if(o&1){let e=vT();Qi(0,"app-destination-list",26),Hg("setDestination",function(t){Od(e);let l=iC();return Pd(l.setDestination(t))}),$l();}}function Ae(o,i){if(o&1){let e=vT();Qi(0,"app-single-destination",27),lm("targetUrlChange",function(t){Od(e);let l=iC();return UC(l.targetUrlModel,t)||(l.targetUrlModel=t),Pd(t)}),$l();}if(o&2){let e=iC();cm("targetUrl",e.targetUrlModel);}}function Me(o,i){o&1&&(Fg(0,4,1),Ig(1,"sh-icon",22),jg());}function Re(o,i){o&1&&(Fg(0,4,2),Ig(1,"sh-icon"),jg());}function Ue(o,i){if(o&1){let e=vT();Qi(0,"sh-dialog",28),lm("isOpenChange",function(t){Od(e);let l=iC();return UC(l.targetUrlDialogOpen,t)||(l.targetUrlDialogOpen=t),Pd(t)}),Qi(1,"header",29)(2,"div",30)(3,"h2"),nC(4,9),$l(),Qi(5,"sh-alert",31),nC(6,10),$l()()(),Qi(7,"div",32)(8,"sh-form-field")(9,"textarea",33),lm("ngModelChange",function(t){Od(e);let l=iC();return UC(l.targetUrlCtrl,t)||(l.targetUrlCtrl=t),Pd(t)}),$l(),CD(),$l()(),Qi(10,"footer",34)(11,"button",20),Hg("click",function(){Od(e);let t=iC();return Pd(t.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",35),Hg("click",function(){Od(e);let t=iC();return Pd(t.closeTargetUrlDialog(true))}),Fg(14,11),Ig(15,"sh-icon"),jg(),$l()()();}if(o&2){let e=iC();cm("isOpen",e.targetUrlDialogOpen),vg("options",KC(3,Ee)),CE(9),cm("ngModel",e.targetUrlCtrl),_D();}}var w=class o{#i=T(ee);#o=T(W);#n=T(be);injector=T(ve);#e=T(d);formRef=w1.required("formRef");testUrlComponent=w1.required("testUrl");testSignal=this.#e.destinationTestSignal;targetUrlModel=this.#e.destinationTargetUrl;targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);targetUrlDialogOpen=Ge(false);toggleNewDestination=Ge(true);selectedDestinationType=Nt(()=>{let i=this.#e.destinationTargetUrl();return i?V(i):null});selectedDestinationTypeOption=Nt(()=>{let i=this.selectedDestinationType();return i?{key:i.customKey??i.key,customKey:i.customKey??null,displayName:i.displayName,description:i.description,sourceDescription:i.sourceDescription??null,icon:i.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.#e.destinationTargetUrl()??"");}openTargetUrlDialog(){let i=this.#e.destinationTargetUrl();this.targetUrlCtrl.set(i),this.targetUrlInitial.set(i),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(i=false){this.targetUrlDialogOpen.set(false);let e=this.targetUrlCtrl(),n=this.targetUrlInitial();!i||e===n||!e||this.#e.updateTargetUrl(e);}setDestination(i){let e=G(i??"");if(e){if(e.mapper.default){let n=e.mapper.default("");this.#e.updateTargetUrl(n);return}this.#e.updateTargetUrl(`${i}://`);}}removeDestination(){this.#e.updateTargetUrl(null);}goBack(){this.#i.navigate(["/"]);}next(){let i=this.testSignal();if(i===null){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:n=>{n?this.testUrlComponent()?.testDestination(false)?.then(t=>{t.action==="success"&&t.containsBackup?this.#t():this.#n.open(h,{data:{title:$localize`Test did not succeed`,message:t.errorMessage??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}});}):this.#t();}});return}let e=typeof i=="string"?null:i;if(e?.action!=="success"||!e.containsBackup){this.#n.open(h,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Edit destination`,cancelText:$localize`Yes, continue`},closed:n=>{n||this.#t();}});return}this.#t();}#t(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent});}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=hw({type:o,selectors:[["app-import-destination-destination"]],viewQuery:function(e,n){e&1&&qg(n.formRef,Fe,5)(n.testUrlComponent,De,5),e&2&&fC(2);},features:[YC([Ve])],decls:25,vars:18,consts:()=>{let i;i=$localize`Backup destination`;let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD*22:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*22:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*23:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*23:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,n=oC(n);let t;t=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let l;l=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let g;g=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let L;L=$localize`Change`;let b;b=$localize`Edit target URL`;let B;B=$localize`Be careful, this will overwrite everything you have in your destination.`;let G;return G=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["testUrl",""],i,e,n,t,l,g,L,b,B,G,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","sourcePrefix","suppressErrorDialogs","askToCreate","testExpectation","readOnlyTest","moduleType"],[1,"current-destination",3,"destination"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click"],["menu",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,n){if(e&1){let t=vT();dm(0),Qi(1,"form",12,0),Hg("submit",function(){return n.next()}),Qi(3,"header")(4,"h3",13)(5,"span"),nC(6,2),$l(),Qi(7,"div",14),aT(8,Oe,3,0,"button",15)(9,he,9,1,"sh-menu"),$l()(),Qi(10,"app-test-url",16,1),lm("targetUrlChange",function(g){return Od(t),UC(n.targetUrlModel,g)||(n.targetUrlModel=g),Pd(g)})("testSignalChange",function(g){return Od(t),UC(n.testSignal,g)||(n.testSignal=g),Pd(g)}),$l(),dm(12),aT(13,Pe,3,1,"app-destination-list-item",17),$l(),aT(14,ye,1,0,"app-destination-list"),aT(15,Ae,1,1,"app-single-destination",18),Qi(16,"div",19)(17,"button",20),Hg("click",function(){return n.goBack()}),Fg(18,3),Ig(19,"sh-icon"),jg(),$l(),Qi(20,"button",21),Fg(21,4),aT(22,Me,2,0,"sh-icon",22)(23,Re,2,0,"sh-icon"),jg(),$l()()(),aT(24,Ue,16,4,"sh-dialog",23);}if(e&2){let t=WC(!!n.targetUrlModel());CE(8),cT(t?9:8),CE(2),cm("targetUrl",n.targetUrlModel)("testSignal",n.testSignal),vg("backupId",null)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",false)("testExpectation","containsBackup")("readOnlyTest",true)("moduleType","Backend"),CE(2);let l=WC(n.selectedDestinationTypeOption());CE(),cT(l?13:-1),CE(),cT(t?-1:14),CE(),cT(t?15:-1),CE(5),vg("disabled",n.testSignal()=="testing"||!t),CE(2),cT(n.testSignal()=="testing"?22:23),CE(2),cT(n.targetUrlDialogOpen()?24:-1);}},dependencies:[sn,on,pt,Bn,Tn,Ze,Rn,Pn,Jt,Zt,v,Fe$1,ve$1,N,de,ue,_n],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"]})};
2
- export{w as default};
package/chunk-BrtdRb9j.js DELETED
@@ -1 +0,0 @@
1
- import {w}from'./chunk-C9OqpwwE.js';import {d}from'./chunk-ksSA-rDF.js';import'./chunk-I5dxaHZ4.js';import {e as ee}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {h as hw,Z as lr,_ as _t,a8 as To,i as Ig,Q as Qi,n as nC,$ as $l,C as CE,y as vg,a3 as KC,aD as YC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import'./chunk-DDWDcSq2.js';import'./chunk-DhiIZLrA.js';import'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var 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=hw({type:T,selectors:[["app-import-destination"]],features:[YC([d,Ve])],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&&(Ig(0,"app-status-bar"),Qi(1,"sh-stepper",3)(2,"div",4),nC(3,0),$l(),Qi(4,"div",4),nC(5,1),$l(),Qi(6,"div",5),nC(7,2),$l()(),Qi(8,"section"),Ig(9,"router-outlet"),$l()),e&2&&(CE(2),vg("routerLink",KC(3,S)),CE(2),vg("routerLink",KC(4,M)),CE(2),vg("routerLink",KC(5,g)));},dependencies:[w,ee,lr,_t,To],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}sh-stepper[_ngcontent-%COMP%]{margin:2.5rem 2rem;width:calc(100% - 4rem)}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{padding:0 2rem}}.inactive[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})};export{p as default};
package/chunk-BzJX1fKw.js DELETED
@@ -1 +0,0 @@
1
- var o=[{path:"",loadComponent:()=>import('./chunk-DM11Gu0H.js'),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import('./chunk-BsNCg00z.js')},{path:"live",loadComponent:()=>import('./chunk-C7AeY2HY.js')}]}],t=o;export{t as default};
package/chunk-C7gG_Yh_.js DELETED
@@ -1,2 +0,0 @@
1
- import {V as Ve$1,u as ut,s as sn,o as on,p as pt,_ as _n}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import {I}from'./chunk-h6n5A491.js';import {J}from'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import {V,h,G}from'./chunk-Dz5guW4b.js';import'./chunk-CyqqlRjO.js';import {v as ve$1}from'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,e as ee$1,aw as W,bF as ve,c8 as T1,G as Ge,N as Nt,z as za,h as hw,v,c as N,a0 as de$1,u as ue,ak as dm,Q as Qi,H as Hg,i as Ig,$ as $l,d as aT,F as Fg,j as jg,al as WC,C as CE,g as cT,L as Kg,y as vg,M as qg,R as fC,a1 as dT,k as iC,ao as qC,a2 as fT,l as vT,O as Od,P as Pd,s as jC,p as lm,U as UC,n as nC,r as CD,w as cm,a3 as KC,x as _D,ap as lT,aP as ql,aQ as Gl,K as im}from'./main-3NL5M6JB.js';import {f}from'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,J as Jt$1,a as Zt$1}from'./chunk-B6c2NXNy.js';import'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import'./chunk-D1pDZLJ9.js';import'./chunk-DGvC49aU.js';var kt=["testUrl"],Bt=()=>({maxWidth:"700px",width:"100%"}),Vt=(o,e)=>e.uiKey;function Kt(o,e){if(o&1){let t=vT();Qi(0,"sh-card",30)(1,"div",32)(2,"h3"),nC(3,4),$l(),Qi(4,"button",33),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.closeCustomList())}),jC(5," Cancel "),Qi(6,"sh-icon"),jC(7,"x-bold"),$l()()(),Qi(8,"app-destination-list",34),Hg("setDestination",function(i){Od(t);let _=iC(3);return Pd(_.setDestination(i))}),$l()();}}function Jt(o,e){if(o&1){let t=vT();Qi(0,"div",40)(1,"sh-toggle",43),lm("checkedChange",function(i){Od(t);let _=iC(2).$implicit;return UC(_.save,i)||(_.save=i),Pd(i)}),Qi(2,"span",44),nC(3,8),$l()()();}if(o&2){let t=iC(2).$implicit;CE(),vg("color","primary")("variant","raised"),cm("checked",t.save);}}function Xt(o,e){if(o&1){let t=vT();Qi(0,"sh-toggle-card",31),ql(1,35),Qi(2,"app-destination-list-item",36)(3,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.changeDestination(i))}),jC(4,"Change"),$l(),Qi(5,"sh-menu",37),Hg("click",function(i){return i.stopPropagation()}),Qi(6,"button",38)(7,"sh-icon"),jC(8,"dots-three-vertical"),$l()(),ql(9,39),Qi(10,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.openTargetUrlDialog(i))}),Fg(11,5),Ig(12,"sh-icon"),jg(),$l(),Qi(13,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.copyTargetUrl(i))}),Fg(14,6),Ig(15,"sh-icon"),jg(),$l(),Qi(16,"button",33),Hg("click",function(){Od(t);let i=iC().$index,_=iC(2);return Pd(_.removeDestination(i))}),Fg(17,7),Ig(18,"sh-icon"),jg(),$l(),Gl(),$l()(),Gl(),aT(19,Jt,4,3,"div",40),Qi(20,"app-test-url",41,1),Hg("targetUrlChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTargetUrl(_,i))})("testSignalChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTestState(_,i))}),$l(),Qi(22,"app-single-destination",42),Hg("targetUrlChange",function(i){Od(t);let _=iC().$index,T=iC(2);return Pd(T.updateTargetUrl(_,i))}),$l()();}if(o&2){let t=iC(),n=t.$implicit,i=t.$index,_=iC(2);vg("disableToggle",true)("isActive",true),CE(2),vg("targetUrl",n.url)("connectionStringId",n.connectionStringId),CE(17),cT(n.connectionStringId?-1:19),CE(),vg("targetUrl",n.url)("testSignal",_.testStates()[i]||null)("backupId",_.backupId())("connectionStringId",n.connectionStringId)("sourcePrefix",null)("suppressErrorDialogs",false)("askToCreate",true)("readOnlyTest",false)("testExpectation",_.isNew()?"destinationEmpty":"any")("moduleType","Backend"),CE(2),vg("targetUrl",n.url)("useBackupState",true);}}function zt(o,e){if(o&1&&aT(0,Kt,9,0,"sh-card",30)(1,Xt,23,17,"sh-toggle-card",31),o&2){let t=e.$index,n=iC(2);cT(n.showCustomList()&&n.currentEditingIndex()===t?0:1);}}function Ht(o,e){if(o&1&&dT(0,zt,2,1,null,null,Vt),o&2){iC();let t=qC(0);fT(t);}}function Wt(o,e){o&1&&(Qi(0,"div",45),Ig(1,"sh-progress-bar",46),Qi(2,"div",47)(3,"h3"),nC(4,9),$l()()());}function jt(o,e){o&1&&(Qi(0,"sh-divider"),nC(1,12),$l());}function Qt(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit;CE(),im(t.Description);}}function qt(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit,n=iC(4);CE(),im(n.getSimplePath(t.BaseUrl));}}function Yt(o,e){if(o&1){let t=vT();Qi(0,"app-destination-list-item",50),Hg("click",function(){let i=Od(t).$implicit,_=iC(4);return Pd(_.selectSavedDestination(i))})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"h3",51),jC(2),$l(),aT(3,Qt,2,1,"p",52)(4,qt,2,1,"p",52),$l();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),CE(2),im(t.Name||t.BaseUrl),CE(),cT(t.Description?3:4);}}function Zt(o,e){if(o&1){let t=vT();Qi(0,"sh-card",48),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.toggleCustomList())})("keydown.enter",function(i){return i.target.click()})("keydown.space",function(i){return i.target.click()}),Qi(1,"sh-icon"),jC(2,"plus-circle"),$l(),Qi(3,"div",47)(4,"h3"),nC(5,10),$l(),Qi(6,"p"),nC(7,11),$l()()(),aT(8,jt,2,0,"sh-divider"),dT(9,Yt,5,3,"app-destination-list-item",49,lT);}if(o&2){let t=iC(3);CE(8),cT(t.destinations().length>0?8:-1),CE(),fT(t.destinations());}}function te(o,e){if(o&1&&aT(0,Wt,5,0,"div",45)(1,Zt,11,1),o&2){let t=iC(2);cT(t.isLoadingDestinations()?0:1);}}function ee(o,e){o&1&&(Qi(0,"sh-divider"),nC(1,15),$l());}function ne(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit;CE(),im(t.Description);}}function ie(o,e){if(o&1&&(Qi(0,"p",52),jC(1),$l()),o&2){let t=iC().$implicit,n=iC(3);CE(),im(n.getSimplePath(t.BaseUrl));}}function oe(o,e){if(o&1){let t=vT();Qi(0,"app-destination-list-item",57),Hg("click",function(){let i=Od(t).$implicit,_=iC(3);return Pd(_.selectSavedDestination(i))}),Qi(1,"h3",51),jC(2),$l(),aT(3,ne,2,1,"p",52)(4,ie,2,1,"p",52),$l();}if(o&2){let t=e.$implicit;vg("targetUrl",t.BaseUrl),CE(2),im(t.Name||t.BaseUrl),CE(),cT(t.Description?3:4);}}function ae(o,e){if(o&1){let t=vT();Qi(0,"div",53)(1,"button",54),Hg("click",function(){Od(t);let i=iC(2);return Pd(i.closeCustomList())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l(),jC(4," Back "),$l()(),Qi(5,"sh-card",55),Hg("click",function(){Od(t);let i=iC(2);return Pd(i.toggleCustomList())}),Qi(6,"sh-icon"),jC(7,"plus-circle"),$l(),Qi(8,"div",47)(9,"h3"),nC(10,13),$l(),Qi(11,"p"),nC(12,14),$l()()(),aT(13,ee,2,0,"sh-divider"),dT(14,oe,5,3,"app-destination-list-item",56,lT);}if(o&2){let t=iC(2);CE(13),cT(t.destinations().length>0?13:-1),CE(),fT(t.destinations());}}function re(o,e){if(o&1){let t=vT();Qi(0,"div",53)(1,"button",54),Hg("click",function(){Od(t);let i=iC(3);return Pd(i.closeCustomList())}),Qi(2,"sh-icon"),jC(3,"arrow-left"),$l()(),Qi(4,"h3"),nC(5,16),$l()();}}function se(o,e){if(o&1){let t=vT();aT(0,re,6,0,"div",53),Qi(1,"app-destination-list",34),Hg("setDestination",function(i){Od(t);let _=iC(2);return Pd(_.setDestination(i))}),$l();}if(o&2){let t=iC(2),n=qC(0);cT(t.destinations().length>0||n.length>0?0:-1);}}function _e(o,e){if(o&1&&aT(0,te,2,1)(1,ae,16,1)(2,se,2,1),o&2){let t=iC(),n=qC(1);cT(!t.showCustomList()&&!n&&!t.isAddingNew()?0:t.isAddingNew()&&!t.showCustomList()?1:2);}}function le(o,e){if(o&1){let t=vT();Qi(0,"div",25)(1,"button",58),Hg("click",function(){Od(t);let i=iC();return Pd(i.startAddingNew())}),Qi(2,"sh-icon"),jC(3,"plus"),$l(),jC(4," Add another destination "),$l()();}}function ce(o,e){o&1&&(Qi(0,"h2"),nC(1,19),$l());}function de(o,e){o&1&&(Qi(0,"h2"),nC(1,20),$l());}function Ce(o,e){if(o&1){let t=vT();Qi(0,"sh-dialog",59),lm("isOpenChange",function(i){Od(t);let _=iC();return UC(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),Pd(i)}),Qi(1,"header",60)(2,"div",61),aT(3,ce,2,0,"h2")(4,de,2,0,"h2"),Qi(5,"sh-alert",62),nC(6,17),$l()()(),Qi(7,"div",63)(8,"sh-form-field")(9,"textarea",64),lm("ngModelChange",function(i){Od(t);let _=iC();return UC(_.targetUrlCtrl,i)||(_.targetUrlCtrl=i),Pd(i)}),$l(),CD(),$l()(),Qi(10,"footer",65)(11,"button",27),Hg("click",function(){Od(t);let i=iC();return Pd(i.closeTargetUrlDialog(false))}),jC(12,"Cancel"),$l(),Qi(13,"button",66),Hg("click",function(){Od(t);let i=iC();return Pd(i.closeTargetUrlDialog(true))}),Fg(14,18),Ig(15,"sh-icon"),jg(),$l()()();}if(o&2){let t=iC(),n=qC(1);cm("isOpen",t.targetUrlDialogOpen),vg("options",KC(4,Bt)),CE(3),cT(n?4:3),CE(6),cm("ngModel",t.targetUrlCtrl),_D();}}var $=new jn,Be=(o={destinations:[]})=>$.group({destinations:$.array(o.destinations)}),Ve=({key:o,customGroup:e,dynamicGroup:t,advancedGroup:n})=>$.group({destinationType:$.control(o),custom:e,dynamic:t,advanced:n}),B=class o{#n=T(ee$1);#i=T(W);#t=T(Ve$1);#e=T(ut);injector=T(ve);testUrlComponents=T1();testStates=Ge([]);targetUrls=this.#t.targetUrls;targetUrlModel=Nt(()=>this.targetUrls()[0]?.url??null);targetUrlCtrl=Ge(null);targetUrlInitial=Ge(null);currentEditingIndex=Ge(null);targetUrlDialogOpen=Ge(false);showCustomList=Ge(false);isConnectionStringSaved=this.#t.isConnectionStringSaved;destinations=this.#e.destinations;isLoadingDestinations=this.#e.resourceDestinations.isLoading;isNew=this.#t.isNew;backupId=this.#t.backupId;selectedDestinationType=Nt(()=>{let e=this.targetUrlModel();return e?V(e)??null:null});isLoadingDestinationEffect=za(()=>{let e=this.isLoadingDestinations(),t=this.destinations(),n=this.targetUrls();!e&&t.length==0&&n.length==0&&this.toggleCustomList();});selectedDestinationTypeOption=Nt(()=>{let e=this.selectedDestinationType();return e?{key:e.customKey??e.key,customKey:e.customKey??null,displayName:e.displayName,description:e.description,sourceDescription:e.sourceDescription??null,icon:e.icon}:null});getConnectionString(e){let t=this.#e.destinations().find(n=>n.ID===e);return console.log("connection",t),t}getSimplePath(e){return e?h(e):""}copyTargetUrl(e=0){let t=this.targetUrls()[e]?.url;t&&navigator.clipboard.writeText(t);}openTargetUrlDialog(e=0){let t=this.targetUrls()[e]?.url??null;this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.currentEditingIndex.set(e),this.targetUrlDialogOpen.set(true);}closeTargetUrlDialog(e=false){this.targetUrlDialogOpen.set(false);let t=this.targetUrlCtrl(),n=this.targetUrlInitial();if(!e||t===n||!t)return;let i=this.currentEditingIndex();if(i!==null){let _=this.targetUrls()[i]?.connectionStringId??null,T=this.targetUrls()[i]?.urlKey??null;this.#t.updateTargetUrl(i,t,_,T);}else this.#t.setTargetUrl(t);this.currentEditingIndex.set(null);}setDestination(e){let t=G(e??"");if(!t)return;let n=t.mapper.default?t.mapper.default(this.#t.backupName()??""):`${e}://`;if(this.currentEditingIndex()!==null){this.#t.updateTargetUrl(this.currentEditingIndex(),n,null,null),this.updateTestState(this.currentEditingIndex(),null),this.currentEditingIndex.set(null),this.showCustomList.set(false);return}this.showCustomList()?(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false)):(this.#t.addTargetUrl(n,null,null),this.showCustomList.set(false),this.isAddingNew.set(false));}targetUrlsEffect=za(()=>{let e=this.targetUrls();this.testStates.update(t=>{if(t.length===e.length)return t;let n=[...t];if(n.length<e.length)for(let i=n.length;i<e.length;i++)n.push(null);else n.length=e.length;return n});});selectSavedDestination(e){e.BaseUrl&&e.BaseUrl&&(this.targetUrls().length===0?this.#t.setTargetUrl(e.BaseUrl,true,e.ID,null):(this.#t.addTargetUrl(e.BaseUrl,e.ID,null),this.showCustomList.set(false),this.isAddingNew.set(false)));}toggleCustomList(){this.currentEditingIndex.set(null),this.showCustomList.set(true);}isAddingNew=Ge(false);startAddingNew(){this.isAddingNew.set(true),this.destinations().length===0&&this.showCustomList.set(true);}changeDestination(e){this.currentEditingIndex.set(e),this.showCustomList.set(true);}closeCustomList(){this.showCustomList.set(false),this.currentEditingIndex.set(null),this.isAddingNew.set(false);}removeDestination(e){this.testStates.update(t=>t.filter((n,i)=>i!==e)),this.#t.removeTargetUrl(e);}updateTargetUrl(e,t){if(!t)return;let n=this.targetUrls()[e]?.connectionStringId??null,i=this.targetUrls()[e]?.urlKey??null;this.#t.updateTargetUrl(e,t,n,i),this.updateTestState(e,null);}updateTestState(e,t){this.testStates.update(n=>{let i=[...n];return i[e]=t,i});}toggleSave(e){this.#t.toggleSaveConnectionString(e);}goBack(){this.#n.navigate(["general"],{relativeTo:this.#i.parent});}async next(){if(!this.#t.isNew()){this.#o();return}let t=this.testUrlComponents();this.testStates();for(let i=0;i<t.length;i++){let _=t[i],T=this.testStates()[i];if(T&&typeof T!="string"&&T.action==="success")continue;if((await _.testDestination(false))?.action!=="success")return}this.#o();}#o(){this.#t.shouldAutoSave()&&this.#t.submit(true),this.#n.navigate(["source-data"],{relativeTo:this.#i.parent});}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=hw({type:o,selectors:[["app-destination"]],viewQuery:function(t,n){t&1&&qg(n.testUrlComponents,kt,5),t&2&&fC();},decls:19,vars:9,consts:()=>{let e;e=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let t;t=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let n;n=$localize`Change destination type`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let _;_=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let T;T=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Remove `;let b;b=$localize`Save as connection string`;let V;V=$localize`Loading destinations...`;let K;K=$localize`Configure a new destination`;let J;J=$localize`Configure a one-off or new storage location.`;let X;X=$localize`Or select a saved destination`;let z;z=$localize`Configure a new destination`;let H;H=$localize`Configure a one-off or new storage location.`;let W;W=$localize`Or select a saved destination`;let j;j=$localize`Select storage type`;let Q;Q=$localize`Be careful, this will overwrite everything you have in your destination.`;let q;q=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let Y;Y=$localize`Set target URL`;let Z;return Z=$localize`Edit target URL`,[["formRef",""],["testUrl",""],e,t,n,i,_,T,b,V,K,J,X,z,H,W,j,Q,q,Y,Z,["autocomplete","off",3,"submit"],[2,"position","absolute","left","-9999px","width","1px","height","1px","overflow","hidden"],["type","text","name","fake_email","tabindex","-1"],["type","password","name","fake_password","tabindex","-1"],[1,"add-destination-container"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],[1,"destination-card","type-c","editing"],[1,"destination-card","type-a",3,"disableToggle","isActive"],[1,"editing-header"],["shButton","","type","button",1,"small",3,"click"],[3,"setDestination"],["title",""],[3,"targetUrl","connectionStringId"],[1,"actions",3,"click"],["shButton","","type","button",1,"small","icon-only"],["menu",""],[1,"options-row",2,"margin","0 1rem 1rem 1rem"],[3,"targetUrlChange","testSignalChange","targetUrl","testSignal","backupId","connectionStringId","sourcePrefix","suppressErrorDialogs","askToCreate","readOnlyTest","testExpectation","moduleType"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"checkedChange","color","variant","checked"],["label",""],[1,"loading-list"],[1,"indeterminate","primary"],[1,"text"],["tabindex","0",1,"type-a","actionable","add-new",3,"click","keydown.enter","keydown.space"],["variant","type-a","tabindex","0",1,"actionable",3,"targetUrl"],["variant","type-a","tabindex","0",1,"actionable",3,"click","keydown.enter","keydown.space","targetUrl"],["displayName",""],["description",""],[1,"custom-list-header"],["shButton","","iconOnly","","type","button",1,"ghost",3,"click"],[1,"type-a","actionable","add-new",3,"click"],["variant","type-a",1,"actionable",3,"targetUrl"],["variant","type-a",1,"actionable",3,"click","targetUrl"],["shButton","","type","button",1,"secondary",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],[1,"warn"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,n){if(t&1&&(dm(0)(1),Qi(2,"form",21,0),Hg("submit",function(){return n.next()}),Qi(4,"div",22),Ig(5,"input",23)(6,"input",24),$l(),Qi(7,"header"),aT(8,Ht,2,0),$l(),aT(9,_e,3,1),aT(10,le,5,0,"div",25),Qi(11,"div",26)(12,"button",27),Hg("click",function(){return n.goBack()}),Fg(13,2),Ig(14,"sh-icon"),jg(),$l(),Qi(15,"button",28),Fg(16,3),Ig(17,"sh-icon"),jg(),$l()()(),aT(18,Ce,16,5,"sh-dialog",29)),t&2){let i=WC(n.targetUrls());CE();let _=WC(i.length>0);CE(7),cT(n.currentEditingIndex()!==null||!n.showCustomList()&&!n.isAddingNew()?8:-1),CE(),cT((!_||n.showCustomList()||n.isAddingNew())&&n.currentEditingIndex()===null?9:-1),CE(),cT(_&&!n.showCustomList()&&!n.isAddingNew()?10:-1),CE(5),Kg("loading",n.isNew()&&n.testStates().length>0&&n.testStates()[0]==="testing"),vg("disabled",!_),CE(3),cT(n.targetUrlDialogOpen()?18:-1);}},dependencies:[sn,on,pt,_n,Bn,Tn,Ze,Rn,Pn,Jt$1,Zt$1,v,Fe,ve$1,N,de$1,ue,f,c,d,I,J],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40rem;padding:2.5rem 2.5rem 0}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;height:100%;padding:0 0 2.5rem}.current-destination[_ngcontent-%COMP%]{margin:1rem 0 0}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;padding-bottom:1.5rem}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}.loading-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;align-items:center;padding:4rem}.loading-list[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{text-align:center}.add-new[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1.5rem;background:var(--base-1);color:var(--primary-8);cursor:pointer}.add-new[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:2.5rem;opacity:.8}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}.custom-list-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.save-connection-string[_ngcontent-%COMP%]{margin:1rem 0}sh-card.destination-card[_ngcontent-%COMP%]{padding:1.5rem}.destination-card[_ngcontent-%COMP%]{position:relative;overflow:visible}.destination-card[_ngcontent-%COMP%] app-destination-list-item[_ngcontent-%COMP%]{width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0}.destination-card[_ngcontent-%COMP%] .card-header-content[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{position:static;transform:none}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.destination-card[_ngcontent-%COMP%] .editing-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}.destination-card[_ngcontent-%COMP%] sh-toggle-card[_ngcontent-%COMP%] .header{width:100%}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"]})};
2
- export{Be as createDestinationForm,Ve as createDestinationFormGroup,B as default};
package/chunk-CP6xnjgo.js DELETED
@@ -1,3 +0,0 @@
1
- import {OptionsListComponent as Oe}from'./chunk-I5dxaHZ4.js';import {e as ee$1}from'./chunk-K2iai6rC.js';import'./chunk-CIe9Bupz.js';import'./chunk-BmmYJhOf.js';import'./chunk-CvSsZZty.js';import {V as Ve,e as en}from'./chunk-nuwlP4Wz.js';import'./chunk-bt6lhYfG.js';import'./chunk-BZgAzrl9.js';import'./chunk-h6n5A491.js';import'./chunk-aCJqF9DH.js';import'./chunk-DXEgz1tV.js';import'./chunk-Dz5guW4b.js';import {N as Nt$2}from'./chunk-CyqqlRjO.js';import'./chunk-CX3Axjpk.js';import'./chunk-mA4J4_nC.js';import {c as c$1}from'./chunk-C3gUxHQM.js';import'./chunk-DidJB9ig.js';import {T,ab as C,e as ee,aw as W,aW as G,aX as y,m,N as Nt$1,G as Ge,z as za,h as hw,_ as _t,v,c as N,i as Ig,Q as Qi,F as Fg,j as jg,$ as $l,d as aT,C as CE,g as cT,aD as YC,aY as x,aZ as ee$2,l as vT,r as CD,n as nC,p as lm,O as Od,k as iC,U as UC,P as Pd,H as Hg,y as vg,a3 as KC,x as _D,w as cm,L as Kg,au as Vg,av as rC}from'./main-3NL5M6JB.js';import'./chunk-B1c7h-_w.js';import {d}from'./chunk-DDWDcSq2.js';import {F as Fe}from'./chunk-DhiIZLrA.js';import {j as jn,B as Bn,T as Tn,Z as Ze,R as Rn,P as Pn,G as Gn,g as gn,h as hn}from'./chunk-B6c2NXNy.js';import {a as at}from'./chunk-MDqH8T3Z.js';import'./chunk-mflQLMHH.js';import'./chunk-CuJ_uEdr.js';import {L}from'./chunk-DGvC49aU.js';import'./chunk-D1pDZLJ9.js';var I=class m{#t=new Map;saveState(e){let t=x();return this.#t.set(t,e),t}getState(e){return this.#t.get(e)}static \u0275fac=function(t){return new(t||m)};static \u0275prov=ee$2({token:m,factory:m.\u0275fac,providedIn:"root"})};var Tt=()=>["backup"];function ft(m,e){m&1&&Ig(0,"sh-progress-bar",10);}function Nt(m,e){if(m&1){let t=vT();Qi(0,"form",11)(1,"sh-select",12)(2,"label",13),Fg(3,1),Ig(4,"sh-icon",14),jg(),$l(),Ig(5,"input",15),CD(),$l(),Qi(6,"sh-form-field")(7,"label",16),Fg(8,2),Ig(9,"sh-icon",17),jg(),$l(),Ig(10,"textarea",18),CD(),$l(),Qi(11,"sh-form-field")(12,"label",19),Fg(13,3),Ig(14,"sh-icon",20),jg(),$l(),Ig(15,"textarea",21),CD(),$l()(),Qi(16,"sh-divider"),nC(17,4),$l(),Qi(18,"form",11)(19,"sh-form-field")(20,"label",22),Fg(21,5),Ig(22,"sh-icon",23),jg(),$l(),Ig(23,"input",24),CD(),$l(),Qi(24,"sh-form-field")(25,"label",25),Fg(26,6),Ig(27,"sh-icon",26),jg(),$l(),Ig(28,"input",27),CD(),$l(),Qi(29,"app-filters",28),lm("filtersChange",function(i){Od(t);let s=iC();return UC(s.filters,i)||(s.filters=i),Pd(i)}),Hg("filtersChange",function(i){Od(t);let s=iC();return Pd(s.updateFilters(i))}),$l()(),Qi(30,"app-options-list",29),lm("optionsChange",function(i){Od(t);let s=iC();return UC(s.settings,i)||(s.settings=i),Pd(i)}),$l(),Qi(31,"div",30)(32,"button",31),Hg("click",function(){Od(t);let i=iC();return Pd(i.submit())}),Fg(33,7),Ig(34,"sh-icon"),jg(),$l()();}if(m&2){let t=iC();vg("formGroup",t.baseCmdForm),CE(),vg("options",t.commandOptions()??KC(11,Tt))("inlineSearch",true),CE(4),_D(),CE(5),_D(),CE(5),_D(),CE(3),vg("formGroup",t.standardFields),CE(5),_D(),CE(5),_D(),CE(),cm("filters",t.filters),vg("osType",t.osType()??""),CE(),cm("options",t.settings),vg("hasFreeTextSettings",true),CE(2),Kg("loading",t.isSubmitting()),CE(2),Vg(t.baseCmdForm.value.command),rC(33);}}var c=new jn,$=class m$1{#t=T(Ve);#n=T(C);#o=T(ee);#e=T(W);#a=T(G);#s=T(y);#i=T(I);#r=T(m);osType=Nt$1(()=>this.#r.systemInfo()?.OSType);#l=L(this.#e.params);commandOptions=L(this.#a.getApiV1Commandline());isSubmitting=Ge(false);optionsFields=this.#t.optionsFields;standardFields=c.group({"backup-id":c.control(""),"backup-name":c.control(""),dbpath:c.control(""),filters:c.array([])});baseCmdForm=c.group({command:c.control("backup"),targetUrl:c.control(""),arguments:c.control("")});finishedLoading=this.#t.finishedLoading;backupId=this.#t.backupId;filters=Ge([]);settings=this.#t.settings;updateFilters(e){this.standardFields.controls.filters.clear(),e.forEach(t=>this.standardFields.controls.filters.push(c.control(t))),this.filters.set(e);}#m=za(()=>{let e=this.#l()?.id;this.#t.backupId.set(e),this.getBackup(e);});getBackup(e){this.#n.getApiV1BackupById({id:e}).subscribe({next:t=>{this.#t.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.#t.mapGeneralToForm(t.Backup),this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#t.mapOptionsToForms(t.Backup,true)),this.applyStateFromUrl(),this.#t.finishedLoading.set(true);}});}mapStandardFieldsToForm(e){if(this.standardFields.patchValue({dbpath:e.DBPath,"backup-id":e.ID,"backup-name":e.Name}),this.standardFields.controls.filters.clear(),e.Filters&&e.Filters.length){let t=e.Filters.map(n=>`${n.Include?"":"-"}${n.Expression}`);t.forEach(n=>{this.standardFields.controls.filters.push(c.control(n));}),this.filters.set(t);}else this.filters.set([]);}submit(){this.#s.resumeDialogCheck(()=>this.#c());}#c(){this.isSubmitting.set(true);let e=this.updateUrl(),t=this.baseCmdForm.value,n=t.targetUrl??"",i=(t.arguments??"").split(`
2
- `)??[],s=[n,...i].filter(o=>o.length>0),g=this.standardFields.value,N=g.filters??[],E=[t.command,...s,`--backup-name=${g["backup-name"]}`,`--dbpath=${g.dbpath}`,`--backup-id=${g["backup-id"]}`,...N.filter(o=>o).map(o=>o.startsWith("-")?`--exclude=${o?.slice(1)}`:`--include=${o}`),...this.#t.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(o=>`${o.Name.startsWith("--")?"":"--"}${o.Name}=${o.Value}`),"--disable-module=console-password-input"];this.#n.postApiV1Commandline({requestBody:E}).subscribe({next:o=>{o.Status==="OK"&&this.#o.navigate(["backup",this.backupId(),"commandline",o.ID],{queryParams:{state:e}});},error:()=>{this.isSubmitting.set(false);}});}mapBaseCmdToForm(e){let t=e.TargetURL??null;t&&this.baseCmdForm.patchValue({targetUrl:t??"",arguments:e.Sources?.join(`
3
- `)??""});}updateUrl(){let e=this.baseCmdForm.value,t=this.standardFields.value,n=t.filters??[],i=this.settings(),s=this.#i.saveState({command:e.command,targetUrl:e.targetUrl,arguments:e.arguments,backupId:t["backup-id"],backupName:t["backup-name"],dbpath:t.dbpath,filters:n,options:i});return this.#o.navigate([],{relativeTo:this.#e,queryParams:{state:s},replaceUrl:true}),s}applyStateFromUrl(){let t=this.#e.snapshot.queryParams.state;if(!t)return;let n=this.#i.getState(t);n&&(this.baseCmdForm.patchValue({command:n.command,targetUrl:n.targetUrl,arguments:n.arguments}),this.standardFields.patchValue({"backup-id":n.backupId,"backup-name":n.backupName,dbpath:n.dbpath}),n.filters&&(this.standardFields.controls.filters.clear(),n.filters.forEach(i=>{this.standardFields.controls.filters.push(c.control(i));}),this.filters.set(n.filters)),n.options&&n.options.length>0&&this.settings.set(n.options));}static \u0275fac=function(t){return new(t||m$1)};static \u0275cmp=hw({type:m$1,selectors:[["app-commandline"]],features:[YC([Ve])],decls:8,vars:1,consts:()=>{let e;e=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let t;t=$localize` Command ${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize` TargetUrl ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let i;i=$localize` Commandline Arguments ${"\uFFFD#14\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SH_ICON:`;let s;s=$localize`Advanced options`;let g;g=$localize` Backup ID ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`;let N;N=$localize` Backup Name ${"\uFFFD#27\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#27\uFFFD"}:CLOSE_TAG_SH_ICON:`;let E;return E=$localize`${"\uFFFD#34\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#34\uFFFD"}:CLOSE_TAG_SH_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[e,t,n,i,s,g,N,E,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["shTooltip","Choose the command to execute"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["shTooltip","Enter the URL of the backup target"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["shTooltip","Enter one argument per line without quotes (e.g., *.txt)"],["id","arguments","autocomplete","off","rows","5","formControlName","arguments","placeholder","Enter one argument per line without quotes (e.g., *.txt)",1,"arguments"],["for","backup-id"],["shTooltip","The ID of the backup configuration this run belongs to (can be empty)"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["shTooltip","The optional name of the backup"],["id","backup-name","formControlName","backup-name"],[3,"filtersChange","filters","osType"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["shButton","",1,"raised","primary",3,"click"]]},template:function(t,n){t&1&&(Ig(0,"app-status-bar"),Qi(1,"section")(2,"div",8)(3,"button",9),Fg(4,0),Ig(5,"sh-icon"),jg(),$l()(),aT(6,ft,1,0,"sh-progress-bar",10)(7,Nt,35,12),$l()),t&2&&(CE(6),cT(n.finishedLoading()?7:6));},dependencies:[Bn,Tn,Ze,Rn,Pn,ee$1,Oe,en,Gn,gn,hn,_t,Fe,v,c$1,Nt$2,d,N,at],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.arguments[_ngcontent-%COMP%]{min-height:6rem;white-space:pre}"]})};export{$ as default};