@duplicati/ngclient 0.0.201 → 0.0.203

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 (47) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-NEC5ZCCT.js → chunk-2BXGPMD6.js} +1 -1
  3. package/chunk-2Y2B4SFQ.js +1 -0
  4. package/{chunk-YDE34GTN.js → chunk-3QV6WLWV.js} +1 -1
  5. package/{chunk-V7OCP4NF.js → chunk-5REQ64AK.js} +1 -1
  6. package/{chunk-HETNGT36.js → chunk-7DCQVM6E.js} +1 -1
  7. package/{chunk-4GYWPC2V.js → chunk-7OT4OWQG.js} +1 -1
  8. package/chunk-7SNTP57H.js +1 -0
  9. package/chunk-BFTGDQ4K.js +1 -0
  10. package/{chunk-UK6PJVXG.js → chunk-C25WT56X.js} +1 -1
  11. package/chunk-C64L6XY3.js +1 -0
  12. package/{chunk-WNG24347.js → chunk-C7N24TZM.js} +1 -1
  13. package/{chunk-56MQ46JU.js → chunk-DJEDUAEJ.js} +1 -1
  14. package/{chunk-C5RNVTX6.js → chunk-DUYRB53D.js} +1 -1
  15. package/{chunk-F5SNXI4Q.js → chunk-EE27B3OV.js} +1 -1
  16. package/{chunk-ZMSYEF6G.js → chunk-GRVTXORM.js} +1 -1
  17. package/chunk-HRHF3TYJ.js +1 -0
  18. package/{chunk-XHIPGS6J.js → chunk-IGYSPFE7.js} +1 -1
  19. package/{chunk-MI7UAY44.js → chunk-JRLBD7M4.js} +1 -1
  20. package/chunk-K6G7ALTG.js +1 -0
  21. package/{chunk-JZRRR52Q.js → chunk-NDRKUUWC.js} +1 -1
  22. package/{chunk-POPZ47SS.js → chunk-OL7C46LY.js} +1 -1
  23. package/chunk-P3D2ZP6W.js +11 -0
  24. package/{chunk-44X4A7WY.js → chunk-PMRQJTYP.js} +1 -1
  25. package/{chunk-AMTYI2HA.js → chunk-Q2UQ5J3C.js} +1 -1
  26. package/{chunk-NQAH5AL7.js → chunk-QBBHHRS4.js} +1 -1
  27. package/{chunk-VIXVL2MX.js → chunk-S53N5WRU.js} +1 -1
  28. package/chunk-SXUG3CGT.js +1 -0
  29. package/{chunk-FRPWQ4C3.js → chunk-T4BXBCQI.js} +1 -1
  30. package/{chunk-ZESQ7CXK.js → chunk-TKB2SB6D.js} +1 -1
  31. package/{chunk-O64YAUSG.js → chunk-TX7JDBPD.js} +1 -1
  32. package/chunk-W3YBKYPJ.js +1 -0
  33. package/{chunk-BAGYEJI6.js → chunk-W67KMV7H.js} +1 -1
  34. package/{chunk-LODLMHG5.js → chunk-XLMLR5EV.js} +1 -1
  35. package/{chunk-XZH2SXWG.js → chunk-XS4CJ2AE.js} +1 -1
  36. package/index.html +1 -1
  37. package/{main-CMOWV2QF.js → main-MW67CCYR.js} +1 -1
  38. package/package.json +1 -1
  39. package/chunk-3TJKPVBA.js +0 -1
  40. package/chunk-4AQZL2UM.js +0 -1
  41. package/chunk-LPAIFT5I.js +0 -11
  42. package/chunk-MUFBZIQA.js +0 -1
  43. package/chunk-P7OUKLCO.js +0 -1
  44. package/chunk-PE34XFKC.js +0 -1
  45. package/chunk-SQNRZYPW.js +0 -1
  46. package/chunk-VLC2XPEM.js +0 -1
  47. package/chunk-VVQRXJRI.js +0 -1
package/chunk-VLC2XPEM.js DELETED
@@ -1 +0,0 @@
1
- import{j as Ie,k as De,l as he,m as Oe,q as fe}from"./chunk-LPAIFT5I.js";import"./chunk-MUFBZIQA.js";import{b as Ee,c as me}from"./chunk-IMHM7ISI.js";import"./chunk-6LAXPU22.js";import"./chunk-6Q6SSTBK.js";import"./chunk-TL4WOQKT.js";import"./chunk-7LTHH6OG.js";import{a as D}from"./chunk-HSHF5HR7.js";import"./chunk-D6IP567E.js";import"./chunk-VDSX2M4H.js";import"./chunk-ZU6T3TW3.js";import"./chunk-HUZXJWCG.js";import"./chunk-7TWUW4XJ.js";import{B as Fe,H as Ne,K as pe,c as ae,e as re,f as se,g as le,i as _e,j as ce,r as Te,s as ge,u as ue,w as de,y as Ce,z as Se}from"./chunk-UNMDSCAN.js";import"./chunk-CFNARBNK.js";import{b as ie,d as oe}from"./chunk-I27PVH6D.js";import"./chunk-5VE6P5U5.js";import"./chunk-PO3L6MKW.js";import"./chunk-7AVOHYTE.js";import"./chunk-KDSMLI73.js";import{$ as T,Ab as s,Bb as u,Fb as W,Gb as j,Ib as p,Mc as x,Pa as c,Pb as d,Qb as C,Rb as E,Sb as $,Sc as ne,Tb as R,Vb as S,W as m,Xb as l,aa as g,cb as H,cc as Q,da as X,dc as Y,gc as q,jc as y,la as O,oc as f,pc as A,qc as P,rc as Z,sb as F,sc as ee,tb as N,tc as L,xc as te,yb as I,zb as r}from"./chunk-26Z7TPJB.js";import"./chunk-7CGTOI24.js";var Ae=["formRef"],Pe=()=>({maxWidth:"700px",width:"100%"});function Me(o,t){o&1&&E(0,5,1)}function $e(o,t){o&1&&E(0,5,2)}function Re(o,t){if(o&1){let e=p();r(0,"button",34),S("click",function(){T(e);let n=l();return g(n.testDestination(0,!0))}),d(1,5),F(2,Me,1,0)(3,$e,1,0),C(),s()}if(o&2){let e=l();I("disabled",e.testSignal()=="testing"),c(2),N(e.testSignal()=="testing"?2:3)}}function ye(o,t){if(o&1){let e=p();r(0,"button",35),S("click",function(){T(e);let n=l();return g(n.openTargetUrlDialog())}),d(1,6),u(2,"sh-icon"),C(),s()}}function Le(o,t){if(o&1){let e=p();r(0,"button",35),S("click",function(){T(e);let n=l(2);return g(n.copyTargetUrl())}),d(1,8),u(2,"sh-icon"),C(),s()}}function xe(o,t){if(o&1){let e=p();r(0,"sh-menu")(1,"button",24)(2,"sh-icon"),y(3,"dots-three-vertical"),s()(),W(4,36),r(5,"button",35),S("click",function(){T(e);let n=l();return g(n.openTargetUrlDialog())}),d(6,7),u(7,"sh-icon"),C(),s(),F(8,Le,3,0,"button",24),j(),s()}if(o&2){l();let e=L(0);c(8),N(e?8:-1)}}function Ue(o,t){o&1&&(r(0,"sh-alert"),d(1,9),u(2,"sh-icon",37),C(),s())}function Ge(o,t){o&1&&(r(0,"sh-alert",25),d(1,10),u(2,"sh-icon",37),C(),s())}function we(o,t){if(o&1&&(r(0,"sh-alert",26),d(1,11),u(2,"sh-icon",37),C(),s()),o&2){let e=l();c(2),$(e.testErrorMessage()),R(1)}}function be(o,t){if(o&1&&(r(0,"sh-alert",27),d(1,12),u(2,"sh-icon",37),C(),s()),o&2){let e=l();c(2),$(e.testErrorMessage()),R(1)}}function Be(o,t){if(o&1){let e=p();r(0,"app-destination-list",38),S("setDestination",function(n){T(e);let a=l();return g(a.setDestination(n))}),s()}}function ke(o,t){if(o&1){let e=p();r(0,"app-single-destination",39),P("targetUrlChange",function(n){T(e);let a=l();return A(a.targetUrlModel,n)||(a.targetUrlModel=n),g(n)}),s()}if(o&2){let e=l();f("targetUrl",e.targetUrlModel),I("useBackupState",!0)}}function ve(o,t){o&1&&(r(0,"h2"),E(1,15),s())}function Ke(o,t){o&1&&(r(0,"h2"),E(1,16),s())}function Ve(o,t){if(o&1){let e=p();r(0,"sh-dialog",40),P("isOpenChange",function(n){T(e);let a=l();return A(a.targetUrlDialogOpen,n)||(a.targetUrlDialogOpen=n),g(n)}),r(1,"header",41)(2,"div",42),F(3,ve,2,0,"h2")(4,Ke,2,0,"h2"),r(5,"sh-alert",26),E(6,13),s()()(),r(7,"div",43)(8,"sh-form-field")(9,"textarea",44),P("ngModelChange",function(n){T(e);let a=l();return A(a.targetUrlCtrl,n)||(a.targetUrlCtrl=n),g(n)}),s()()(),r(10,"footer",45)(11,"button",29),S("click",function(){T(e);let n=l();return g(n.closeTargetUrlDialog(!1))}),y(12,"Cancel"),s(),r(13,"button",46),S("click",function(){T(e);let n=l();return g(n.closeTargetUrlDialog(!0))}),d(14,14),u(15,"sh-icon"),C(),s()()()}if(o&2){let e=l(),i=L(0);f("isOpen",e.targetUrlDialogOpen),I("options",te(4,Pe)),c(3),N(i?4:3),c(6),f("ngModel",e.targetUrlCtrl)}}var M=new Te,lt=(o={destinations:[]})=>M.group({destinations:M.array(o.destinations)}),_t=({key:o,customGroup:t,dynamicGroup:e,advancedGroup:i})=>M.group({destinationType:M.control(o),custom:t,dynamic:e,advanced:i}),U=class o{#i=m(oe);#o=m(ie);#e=m(fe);#t=m(Se);#a=m(Oe);injector=m(X);formRef=ne.required("formRef");targetUrlModel=this.#e.targetUrlModel;targetUrlCtrl=O(null);targetUrlInitial=O(null);targetUrlDialogOpen=O(!1);toggleNewDestination=O(!0);testSignal=this.#e.testSignal;testErrorMessage=this.#e.testErrorMessage;selectedDestinationType=x(()=>{let t=this.targetUrlModel();return t?Ee(t)??null:null});selectedDestinationTypeOption=x(()=>{let t=this.selectedDestinationType();return t?{key:t.customKey??t.key,customKey:t.customKey??null,displayName:t.displayName,description:t.description,icon:t.icon}:null});copyTargetUrl(){navigator.clipboard.writeText(this.targetUrlModel()??"")}openTargetUrlDialog(){let t=this.targetUrlModel();this.targetUrlCtrl.set(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(t=!1){this.targetUrlDialogOpen.set(!1);let e=this.targetUrlCtrl(),i=this.targetUrlInitial();!t||e===i||!e||this.#e.setTargetUrl(e)}testDestination(t,e,i){let n=this.targetUrlModel();n&&(this.#e.setTestState("testing"),this.#a.testDestination(n,this.#e.backupId(),t,!0,"Backend",!0).subscribe({next:a=>{if(a.action==="success"){this.#e.setTestState("success"),this.#e.isNew()&&(a.containsBackup===!0?(this.#e.setTestState("warning",$localize`The remote destination already contains a backup. Please use a different folder for each backup.`),e||this.#t.open(D,{data:{title:$localize`Folder contains backup`,message:$localize`The remote destination already contains a backup. You must use a different folder for each backup.`,confirmText:$localize`OK`,cancelText:void 0}})):a.anyFilesFound===!0&&(this.#e.setTestState("warning",$localize`The remote destination contains unknown files.`),e||this.#t.open(D,{data:{title:$localize`Folder is not empty`,message:$localize`The remote destination is not empty. It is recommended to use an empty folder for the backup.`,confirmText:$localize`OK`,cancelText:void 0}}))),i?.();return}if(this.#e.setTestState("error",a.errorMessage??$localize`An error occurred while testing the destination.`),a.action==="generic-error"){i?.();return}let h=n.includes("?");a.action==="trust-cert"&&this.#e.setTargetUrl(n+`${h?"&":"?"}accept-specified-ssl-hash=${a.certData}`),a.action==="approve-host-key"&&this.#e.setTargetUrl(n+`${h?"&":"?"}ssh-fingerprint=${a.reportedHostKey}`),a.testAgain?this.testDestination(a.destinationIndex,e):i?.()}}))}setDestination(t){let e=me(t??"");if(e){if(e.mapper.default){let i=e.mapper.default(this.#e.backupName()??"");this.#e.setTargetUrl(i,!0);return}this.#e.setTargetUrl(`${t}://`,!0)}}removeDestination(){this.#e.setTargetUrl(null,!0)}goBack(){this.#i.navigate(["general"],{relativeTo:this.#o.parent})}next(){let t=this.#e.isNew(),e=this.testSignal();if(!t){this.#n();return}if(e===""){this.#t.open(D,{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:i=>{i?this.testDestination(0,!1,()=>{this.testSignal()==="success"?this.#n():this.#t.open(D,{data:{title:$localize`Test did not succeed`,message:this.testErrorMessage()??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}})}):this.#n()}});return}if(e!=="success"){this.#t.open(D,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Yes, continue`,cancelText:$localize`Cancel`},closed:i=>{i&&this.#n()}});return}this.#n()}#n(){this.#e.isNew()||this.#e.submit(!0),this.#i.navigate(["source-data"],{relativeTo:this.#o.parent})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=H({type:o,selectors:[["app-destination"]],viewQuery:function(e,i){e&1&&Q(i.formRef,Ae,5),e&2&&Y()},decls:31,vars:11,consts:()=>{let t;t=$localize`Backup destination`;let e;e=$localize`Change`;let i;i=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let n;n=$localize`${"\uFFFD#29\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#29\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let a;a=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF: Testing... ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`;let h;h=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Set target URL `;let G;G=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: Edit target URL `;let w;w=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:copy${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard `;let b;b=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Testing connection... `;let B;B=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Connection tested successfully. `;let k;k=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let v;v=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let K;K=$localize`Be careful, this will overwrite everything you have in your destination.`;let V;V=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`;let z;z=$localize`Set target URL`;let J;return J=$localize`Edit target URL`,[["formRef",""],t,e,i,n,a,h,G,w,b,B,k,v,K,V,z,J,["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,"title-30"],[1,"actions"],["shButton","","type","button",1,"small",3,"disabled"],["shButton","","type","button",1,"small"],[1,"success"],[1,"warn"],[1,"error"],[1,"current-destination",3,"targetUrl"],["shButton","","type","button",3,"click"],[3,"targetUrl","useBackupState"],[1,"form-actions"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click","disabled"],["shButton","","type","button",1,"small",3,"click"],["menu",""],["icon",""],[3,"setDestination"],[3,"targetUrlChange","targetUrl","useBackupState"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(e,i){if(e&1){let n=p();Z(0),r(1,"form",17,0),S("submit",function(){return T(n),g(i.next())}),r(3,"div",18),u(4,"input",19)(5,"input",20),s(),r(6,"header")(7,"h3",21)(8,"span"),E(9,1),s(),r(10,"div",22),F(11,Re,4,2,"button",23),F(12,ye,3,0,"button",24)(13,xe,9,1,"sh-menu"),s()(),F(14,Ue,3,0,"sh-alert")(15,Ge,3,0,"sh-alert",25)(16,we,3,1,"sh-alert",26)(17,be,3,1,"sh-alert",27),r(18,"app-destination-list-item",28)(19,"button",29),S("click",function(){return T(n),g(i.removeDestination())}),E(20,2),s()()(),F(21,Be,1,0,"app-destination-list"),F(22,ke,1,2,"app-single-destination",30),r(23,"div",31)(24,"button",29),S("click",function(){return T(n),g(i.goBack())}),d(25,3),u(26,"sh-icon"),C(),s(),r(27,"button",32),d(28,4),u(29,"sh-icon"),C(),s()()(),F(30,Ve,16,5,"sh-dialog",33)}if(e&2){let n=ee(!!i.targetUrlModel());c(11),N(n?11:-1),c(),N(n?13:12),c(2),N(i.testSignal()=="testing"?14:i.testSignal()=="success"?15:i.testSignal()=="warning"?16:i.testSignal()=="error"?17:-1),c(4),I("targetUrl",i.targetUrlModel()),c(3),N(n?-1:21),c(),N(n?22:-1),c(5),q("loading",i.testSignal()=="testing"),I("disabled",i.testSignal()=="testing"||!n),c(3),N(i.targetUrlDialogOpen()?30:-1)}},dependencies:[he,De,Ie,ge,ce,ae,re,se,_e,le,Fe,Ne,pe,ue,Ce,de],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:.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}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}.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}"],changeDetection:0})};export{lt as createDestinationForm,_t as createDestinationFormGroup,U as default};
package/chunk-VVQRXJRI.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-7CGTOI24.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-44X4A7WY.js")},{path:"destination",loadComponent:()=>import("./chunk-VLC2XPEM.js")},{path:"source-data",loadComponent:()=>import("./chunk-NQAH5AL7.js")},{path:"schedule",loadComponent:()=>import("./chunk-C5RNVTX6.js")},{path:"options",loadComponent:()=>import("./chunk-NEC5ZCCT.js")}];export{o as default};