@duplicati/ngclient 0.0.131 → 0.0.133

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 (115) hide show
  1. package/assets/spk.css +0 -3
  2. package/chunk-2VN6VG4I.js +1 -0
  3. package/{chunk-FPLBURO5.js → chunk-2YHX57UE.js} +1 -1
  4. package/{chunk-YFRT24NZ.js → chunk-32H7KC5E.js} +1 -1
  5. package/chunk-3EVYTAP3.js +1 -0
  6. package/{chunk-JWFYA3TO.js → chunk-3Q5JEF3K.js} +1 -1
  7. package/{chunk-EKZRKTLM.js → chunk-4MAZCWVO.js} +1 -1
  8. package/{chunk-ZE5QAS4M.js → chunk-5CUMYXCI.js} +1 -1
  9. package/{chunk-KA4H3PM5.js → chunk-5MMV45NA.js} +1 -1
  10. package/{chunk-K5AQUIEE.js → chunk-5RPDEEQ3.js} +1 -1
  11. package/{chunk-WY2KPAVB.js → chunk-67XQIEG5.js} +1 -1
  12. package/{chunk-K6EZTPNQ.js → chunk-67YRCRMI.js} +6 -6
  13. package/chunk-7RNTRIB4.js +3 -0
  14. package/chunk-7V6ZELYA.js +1 -0
  15. package/{chunk-4D2NUH5S.js → chunk-A7BFGBWF.js} +1 -1
  16. package/{chunk-R43ZLOB3.js → chunk-ACVXVBJ2.js} +1 -1
  17. package/chunk-AUWIW323.js +1 -0
  18. package/{chunk-RFBJR3ZC.js → chunk-B3N2KM6G.js} +1 -1
  19. package/{chunk-TUOSYDUU.js → chunk-BD5AB4OK.js} +1 -1
  20. package/{chunk-VNYGRDVP.js → chunk-BKHSNMGE.js} +1 -1
  21. package/{chunk-P4ZYFRD3.js → chunk-BSRYIN2F.js} +1 -1
  22. package/chunk-BWJZ3AMO.js +1 -0
  23. package/{chunk-DDV32SDB.js → chunk-CHCHAUQD.js} +1 -1
  24. package/{chunk-Q5QHAGHB.js → chunk-D3OE4S5N.js} +1 -1
  25. package/{chunk-LQ2PCH6Q.js → chunk-DLVU5GHR.js} +1 -1
  26. package/chunk-DNBOZ26J.js +1 -0
  27. package/{chunk-7LEXBIXG.js → chunk-DQM3ATT4.js} +1 -1
  28. package/chunk-EBYGIC45.js +1 -0
  29. package/chunk-EGCW3WY7.js +1 -0
  30. package/{chunk-Z2VKXGKY.js → chunk-EK2B2CO4.js} +1 -1
  31. package/{chunk-UHRBTTCA.js → chunk-EW3XN62R.js} +1 -1
  32. package/{chunk-XD26KCAE.js → chunk-F66HJES7.js} +1 -1
  33. package/{chunk-3PYBMCOB.js → chunk-FC45TEB6.js} +1 -1
  34. package/chunk-FX2XKS5C.js +1 -0
  35. package/chunk-G6LCHQJE.js +1 -0
  36. package/chunk-GORQL5YP.js +1 -0
  37. package/{chunk-VKD4Y3YQ.js → chunk-GP2W7XZF.js} +1 -1
  38. package/{chunk-MXNLMTFY.js → chunk-GQTJISMN.js} +1 -1
  39. package/chunk-HJQBTK5I.js +1 -0
  40. package/{chunk-KV7SEZ24.js → chunk-HPZ6HLJE.js} +1 -1
  41. package/{chunk-HWCTRSCV.js → chunk-IVP5ZHDB.js} +1 -1
  42. package/{chunk-Z24H5QI5.js → chunk-J64ETWKB.js} +1 -1
  43. package/chunk-KAKRPBPP.js +1 -0
  44. package/{chunk-K5P3KNHL.js → chunk-L6BZ6TEU.js} +1 -1
  45. package/{chunk-Q3ILJYED.js → chunk-LSNBRSNG.js} +1 -1
  46. package/chunk-LXZXQU7D.js +1 -0
  47. package/{chunk-BISTLAYK.js → chunk-MDO4PWV6.js} +1 -1
  48. package/{chunk-W2XSKJJ5.js → chunk-MOOM536C.js} +1 -1
  49. package/chunk-MVJXYZIV.js +1 -0
  50. package/chunk-NUL6XFC4.js +1 -0
  51. package/{chunk-WWHML7QK.js → chunk-O4HSW7GI.js} +1 -1
  52. package/{chunk-UVLJAD66.js → chunk-OQHMS5HM.js} +1 -1
  53. package/{chunk-LZGUK3CQ.js → chunk-PEPDXQBY.js} +1 -1
  54. package/{chunk-P45GAY6A.js → chunk-PETCW5PK.js} +1 -1
  55. package/{chunk-ABF3SFY5.js → chunk-PL2MNRTA.js} +1 -1
  56. package/chunk-PTFQBTH3.js +1 -0
  57. package/{chunk-KU6D4KVX.js → chunk-Q2YREFUE.js} +1 -1
  58. package/{chunk-D6CQCWWK.js → chunk-QNWYJ7OR.js} +1 -1
  59. package/chunk-SUMEJCXQ.js +1 -0
  60. package/chunk-T27DQWUZ.js +1 -0
  61. package/{chunk-CPQOWCF6.js → chunk-TIPHYMRQ.js} +1 -1
  62. package/{chunk-FWZV4DTQ.js → chunk-TKOD3RB3.js} +1 -1
  63. package/chunk-TVOVJS5N.js +1 -0
  64. package/{chunk-76QLZQIX.js → chunk-U44OBOIE.js} +1 -1
  65. package/{chunk-GU7U3EFF.js → chunk-UD32EXWK.js} +1 -1
  66. package/chunk-UUOPMSDB.js +1 -0
  67. package/chunk-VFFFKPK4.js +6 -0
  68. package/chunk-VNTD2QIZ.js +1 -0
  69. package/{chunk-CYLI6ZJ3.js → chunk-VWH7EODO.js} +1 -1
  70. package/{chunk-U4OAPG74.js → chunk-WBYTRHI7.js} +1 -1
  71. package/{chunk-E4Z6XEMU.js → chunk-WCMRN2KQ.js} +1 -1
  72. package/{chunk-F74MXVWD.js → chunk-WZIEF5KL.js} +1 -1
  73. package/chunk-X4NRDSTJ.js +1 -0
  74. package/chunk-X7GQQCVS.js +1 -0
  75. package/{chunk-KQAO2YHR.js → chunk-XBP565VF.js} +1 -1
  76. package/{chunk-FWVOVJCG.js → chunk-XD6MBGQY.js} +1 -1
  77. package/chunk-XHUQCM6F.js +1 -0
  78. package/chunk-XKDJSEMU.js +1 -0
  79. package/{chunk-B5FKLIHW.js → chunk-Y4VREVFM.js} +1 -1
  80. package/{chunk-XOZRQBBW.js → chunk-YPAIKA7K.js} +1 -1
  81. package/chunk-ZCT7SRIM.js +1 -0
  82. package/{chunk-WIJ3HW7I.js → chunk-ZIJ7ZEHR.js} +1 -1
  83. package/index.html +2 -2
  84. package/{main-JMFOP3Z7.js → main-BQ3NFYOR.js} +1 -1
  85. package/package.json +1 -1
  86. package/styles-4QA7NM7N.css +1 -0
  87. package/chunk-3IRKJXHE.js +0 -6
  88. package/chunk-3KIPRGE2.js +0 -1
  89. package/chunk-5PEBIF7G.js +0 -1
  90. package/chunk-5ZODA7EN.js +0 -1
  91. package/chunk-AGU2PEL5.js +0 -1
  92. package/chunk-CTRHZCKS.js +0 -1
  93. package/chunk-DM2VSIZA.js +0 -1
  94. package/chunk-FLMFEFKM.js +0 -1
  95. package/chunk-FO4W6SOP.js +0 -1
  96. package/chunk-GGT3NXAX.js +0 -1
  97. package/chunk-GW37Y5Z7.js +0 -1
  98. package/chunk-IAE5MH6W.js +0 -1
  99. package/chunk-LPSXYSH2.js +0 -1
  100. package/chunk-LXOONGVP.js +0 -1
  101. package/chunk-MHALSLG3.js +0 -1
  102. package/chunk-N334RUEQ.js +0 -1
  103. package/chunk-OMZ3W4RW.js +0 -1
  104. package/chunk-R3TWV35H.js +0 -4
  105. package/chunk-RVLLX2SW.js +0 -1
  106. package/chunk-RZWJA6W3.js +0 -3
  107. package/chunk-TOP2X7ZJ.js +0 -1
  108. package/chunk-UFZFKKK7.js +0 -1
  109. package/chunk-UIC4BWTY.js +0 -1
  110. package/chunk-UUG7G5LZ.js +0 -1
  111. package/chunk-UYWLCW5G.js +0 -1
  112. package/chunk-XHQO75TB.js +0 -1
  113. package/chunk-YBFTPRR5.js +0 -1
  114. package/chunk-YXIITZFM.js +0 -1
  115. package/styles-ORRIWQJ5.css +0 -1
package/chunk-FLMFEFKM.js DELETED
@@ -1 +0,0 @@
1
- import{a as xe}from"./chunk-FPLBURO5.js";import{s as Me}from"./chunk-3KIPRGE2.js";import{A as ve,a as me,f as Ce,l as Pe,n as Ee,p as Te}from"./chunk-MHALSLG3.js";import{h as be}from"./chunk-FWVOVJCG.js";import{ea as ge}from"./chunk-VKD4Y3YQ.js";import{Ab as U,B as ie,Bb as B,F as q,Gc as W,Hc as A,Jb as $,Kb as ae,Lb as ce,Lc as Y,Mc as T,Nb as R,Nc as Z,Oa as m,Ob as u,Pb as de,Qb as D,Wb as z,X,Xb as pe,Yb as J,Zb as ue,_a as se,_b as v,ba as N,bc as S,ca as k,db as Q,dc as he,la as M,n as te,pb as O,qb as F,r as L,sb as oe,sc as V,tb as re,tc as _e,ub as K,vb as h,wb as f,x as ne,xb as le,zc as fe}from"./chunk-K6EZTPNQ.js";import{a as j,b as G}from"./chunk-EUDKD2JW.js";var we=["treeContainer"],Ne=["formRef"],ke=[[["label"]],[["label"]],[["input"]]],Re=["label","label","input"],Ie=o=>({children:o,level:0}),Oe=o=>({$implicit:o}),We=(o,t)=>({children:o,level:t}),Ae=(o,t)=>t.id;function Le(o,t){if(o&1){let e=B();h(0,"spk-button-group")(1,"button",13),R("click",function(){N(e);let i=u();return k(i.pathDiscoveryMethod.set("browse"))}),$(2,4),f(),h(3,"button",13),R("click",function(){N(e);let i=u();return k(i.pathDiscoveryMethod.set("path"))}),$(4,5),f()()}if(o&2){let e=u();m(),v("active",e.pathDiscoveryMethod()==="browse"),m(2),v("active",e.pathDiscoveryMethod()==="path")}}function Be(o,t){o&1&&le(0,"spk-progress-bar",9)}function $e(o,t){o&1&&(h(0,"spk-icon",18),S(1,"caret-down"),f(),h(2,"spk-icon",16),S(3,"folder-open"),f())}function De(o,t){o&1&&(h(0,"spk-icon"),S(1,"file"),f())}function Ve(o,t){o&1&&(h(0,"spk-icon",18),S(1,"caret-right"),f(),h(2,"spk-icon",16),S(3,"folder"),f())}function He(o,t){if(o&1&&O(0,$e,4,0)(1,De,2,0,"spk-icon")(2,Ve,4,0),o&2){let e=u(2).$implicit;F(e.children.length?0:e.cls==="file"?1:2)}}function je(o,t){o&1&&(h(0,"spk-icon",16),S(1,"desktop-tower"),f())}function Ge(o,t){o&1&&U(0)}function qe(o,t){if(o&1&&Q(0,Ge,1,0,"ng-container",10),o&2){let e=u(2).$implicit,n=u().$implicit;u();let i=J(7);K("ngTemplateOutlet",i)("ngTemplateOutletContext",V(5,Oe,_e(2,We,e.children,n.level+1)))}}function Xe(o,t){if(o&1){let e=B();h(0,"div",14,3),R("click",function(){N(e);let i=u().$implicit,r=u(2);return k(r.toggleNode(i.id,i))}),h(2,"div",15),O(3,He,3,1)(4,je,2,0,"spk-icon",16),f(),h(5,"div",17),R("click",function(i){N(e);let r=u().$implicit,a=u(2);return k(a.toggleSelectedNode(i,r))}),S(6),f()(),O(7,qe,1,7,"ng-container")}if(o&2){let e=u().$implicit,n=u().$implicit,i=u();v("accepted",e.accepted===!0)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0),m(2),v("file",e.cls==="file"),m(),F(e.id!=="/"?3:4),m(3),he(" ",e.text," "),m(),F(e.children.length>0?7:-1)}}function Qe(o,t){if(o&1&&O(0,Xe,8,17),o&2){let e=t.$implicit,n=u(2);F(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Ke(o,t){if(o&1&&(h(0,"spk-list"),oe(1,Qe,1,1,null,null,Ae),f()),o&2){let e=t.$implicit;ue("padding-left",e.level*.25,"rem"),m(),re(e.children)}}function Ue(o,t){o&1&&U(0)}function ze(o,t){if(o&1){let e=B();h(0,"spk-toggle",19),R("click",function(){N(e);let i=u();return k(i._showHiddenNodes.set(!i._showHiddenNodes()))}),$(1,6),f()}if(o&2){let e=u();v("active",e._showHiddenNodes()),m(),ae(e.showFiles()?"files":"folders"),ce(1)}}var Fe=(r=>(r[r.ExcludedByParent=-2]="ExcludedByParent",r[r.Excluded=-1]="Excluded",r[r.None=0]="None",r[r.Included=1]="Included",r[r.IncludedByParent=2]="IncludedByParent",r))(Fe||{}),ee=class o{#e=X(be);#t=X(xe);multiSelect=T(!1);disabled=T(!1);showFiles=T(!1);selectFiles=T(!1);accepts=T(null);startingPath=T(null);rootPaths=T([]);backupSettings=T(null);pathRefreshTrigger=T(!1);showHiddenNodes=T(!1);hideShortcuts=T(!1);includes=Y();excludes=Y();_showHiddenNodes=M(!1);treeContainerRef=Z("treeContainer");formRef=Z("formRef");pathDiscoveryMethod=M("browse");isLoading=M(!1);currentPath=M("/");#n=M(null);treeSearchQuery=M("");treeNodes=M([]);isWindows=W(()=>this.#t.systemInfo()?.OSType==="Windows");filterGroups=this.#t.filterGroups();isByBackupSettings=W(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=W(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Fe;treeStructure=W(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(s=>s!==""&&s!=="/"),n=structuredClone(e);for(let s=0;s<n.length;s++){let c=n[s].slice(1);if(c.startsWith("{")&&c.endsWith("}")){let p=c.slice(1,-1),d=this.filterGroups?.FilterGroups[p];if(d&&d.length){let b=d.map(P=>`-${P}`);n.splice(s,1,...b)}}}let i=this.searchableTreeNodes(),r=this.rootPaths(),a=this.accepts(),C=this.isWindows(),l=[];return r.length>0?l=r.map(s=>({id:s,resolvedpath:s,text:s,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"})):l=[{id:"/",resolvedpath:"/",text:"Computer",parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}],l.map(s=>{let g=new Map,c=s?.id;a&&(s.accepted=!0),g.set(s.id,s);let p=r.length>0?i.filter(d=>d.parentPath===s.id):i;for(let d of p){let b=r.length>0?d.id.replace(c??"",""):d.id,P=C?"\\":"/",_=b.split(P).filter(Boolean),E="",x=s;for(let H of _){if(E+=H+P,!g.has(E)){let I=d.hidden===!0&&t?0:this.#r(n,d.id,d.cls,x,C),y={id:d.id,isIndeterminate:this.isIndeterminate(n,d.id),evalState:I,parentPath:E,resolvedpath:d.id?.startsWith("%")?d.resolvedpath+P:E,hidden:d.hidden,text:d.text,cls:d.cls,children:[]};a&&(y.accepted=this.matchAccepts(a,y)),g.set(E,y),x.children.push(y)}x=g.get(E)}}return s}),l});#r(t,e,n,i,r){if(i.evalState===-1)return-2;let a=0,C=t.filter(s=>!s.startsWith("-")&&!s.startsWith("+")),l=t.filter(s=>s.startsWith("-")||s.startsWith("+"));if(C.length===0)return a;for(let s=0;s<C.length;s++){let g=C[s];if(e?.startsWith(g)){a=1;break}}if(l.length===0)return a;for(let s=0;s<l.length;s++){let g=l[s],c=g.slice(1),p=g.startsWith("-")?"exclude":"include",d=r?"\\":"/";if((r?c.slice(2):c).startsWith(d)&&c.endsWith(d)){if(n!=="folder")continue;if(e===c){a=p==="include"?1:-1;break}}if(c.startsWith("*")&&c.endsWith(`*${d}`)){if(n!=="folder")continue;let _=c.slice(1,-2);if(_==="")break;if(e?.includes(_+d)){a=p==="include"?1:-1;break}}if(c.startsWith("[.*")&&c.endsWith(`[^\\${d}]*]`)){if(n!=="file")continue;let _=c.slice(3,-7);if(new RegExp(_).test(e)){a=p==="include"?1:-1;break}}if(c.startsWith("[")&&c.endsWith("]")){let _=c.slice(1,-1),E=this.translateCSharpRegex(_);if(new RegExp(`${E}`).test(e)){a=p==="include"?1:-1;break}}if(c.startsWith("*.")){if(n!=="file"||c.replace("*.","").length===0)continue;if(this.#s(e,c,!0)){a=p==="include"?1:-1;break}}if(c==="")continue;if(c===e){a=p==="include"?1:-1;break}if(this.#s(e,c,!0)){a=p==="include"?1:-1;break}}return a}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(i,r,a)=>`(${a})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.some(n=>n.startsWith(e))}#s(t,e,n=!1){let i=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${i}${n?"$":""}`).test(t)}showHiddenNodesEffect=A(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=A(()=>{let t=this.pathDiscoveryMethod(),e=this.#n();t==="browse"&&e&&this.currentPath.set(e.value)});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id==="/")return!0;let n=t.split(",");if(n.length===0)return!0;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(r=>i.endsWith(r)):!1}currentPathEffect=A(()=>{let t=this.#n();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=A(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#a(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.#n.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#p(t);else{let e=this.rootPaths();e&&e.length>0?this.#i(null,e[0]):this.#i(null,"/")}}toggleSelectedNode(t,e){if(e.id==="/"||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let i=this.currentPath().split("\0").filter(a=>a!==""&&a!=="/"),r=this.isChildOfSelected(e)?`-${e.id}`:e.id;this.multiSelect()?i.includes(e.id)?this.currentPath.set(i.filter(a=>a!==e.id).join("\0")):i.some(a=>a.startsWith(r))?this.currentPath.set(i.filter(a=>a!==r).join("\0")):this.currentPath.set([...i,r].join("\0")):i.includes(e.id)?this.currentPath.set(i.filter(a=>a!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!=="/").some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(i=>!i.id?.startsWith(e.id)||i.id===e.id)):this.#i(e,t))}#l(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#a(t){return Object.defineProperty(t,"value",{configurable:!0,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:!0,cancelable:!0,detail:{value:e}})),e}}),t}#c(t){return this.#e.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#d(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}}).pipe(L(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(L(i=>i.Files??[]))}}#o(t){return this.isByBackupSettings()?this.#d(t):this.#c(t)}#p(t){let e=this.isWindows(),n=t.split("\0").filter(l=>l.startsWith("-")).map(l=>l.slice(1,-1)),i=t.split("\0").filter(l=>!l.startsWith("-")).filter(Boolean),r=i.map(l=>{let s=l.split(e?"\\":"/");return s.at(-1)!==""&&s.pop(),s}),a=["/"];r.forEach(l=>{l.forEach((s,g)=>{let c=l.slice(0,g+1).join(e?"\\":"/"),p=c;p.indexOf(":")===-1&&!p.startsWith("%")&&(p="/"+c),a.includes(p)||a.push(p)})}),this.isLoading.set(!0);let C=a.map(l=>this.#o(l).pipe(L(s=>({status:"success",value:s,url:l})),ie(s=>te({status:"error",value:s,url:l}))));ne(C).pipe(q(()=>this.isLoading.set(!1))).subscribe({next:l=>{let s=l.filter(c=>c.status==="success"),g=l.filter(c=>c.status==="error");this.treeNodes.update(c=>{let p=s.flatMap(b=>b.value.map(P=>{let _=P.id,E=P.id.startsWith("%")&&P.id.endsWith("%")?P.resolvedpath+"/":P.id,x=_&&_.split("/").filter(Boolean).slice(0,-1).join("/"),I="/"+(_&&_.split("/").filter(Boolean).join("/")),y=i.findIndex(w=>this.multiSelect()?I.startsWith(w):I===w)>-1,Se=i.findIndex(w=>w===_)>-1,ye=n.findIndex(w=>w===I)>-1;return G(j({},P),{cls:E.endsWith("/")||E.endsWith("\\")?"folder":"file",parentPath:x.startsWith("%")?x:"/"+x,isSelected:y&&!ye||Se})})),d=[...new Map([...c,...p].map(b=>[b.id,b])).values()];return this.#l(),d})}})}#i(t=null,e="/"){this.isLoading.set(!0),this.#o(e).pipe(q(()=>this.isLoading.set(!1))).subscribe({next:n=>{let i=this.isByBackupSettings()?n.map(r=>{let C=r.Path.includes("\\")?"\\":"/";return{text:r.Path.split(C).filter(l=>l!=="").pop(),id:r.Path,cls:r.Path.endsWith(C)?"folder":"file",leaf:t!==null,resolvedpath:r.Path,hidden:!1}}):n;this.treeNodes.update(r=>{let a=i.map(l=>{let g=l.id.includes("\\")?"\\":"/",c=l.id.startsWith("%")&&l.id.endsWith("%")||l.id.endsWith(g)?"folder":"file";return G(j({},l),{cls:c,parentPath:e})}),C=[...new Map([...r,...a].map(l=>[l.id,l])).values()];return this.hideShortcuts()?C.filter(l=>!l.id.startsWith("%")):C})}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=se({type:o,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&(z(n.treeContainerRef,we,5),z(n.formRef,Ne,5)),e&2&&pe(2)},hostVars:2,hostBindings:function(e,n){e&2&&v("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],hideShortcuts:[1,"hideShortcuts"]},outputs:{includes:"includes",excludes:"excludes"},ngContentSelectors:Re,decls:15,vars:15,consts:()=>{let t;t=$localize` Browse path `;let e;e=$localize` Manually type path `;let n;return n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"primary","raised","browse-files-toggle",3,"active"],[1,"form-field"],["type","button",3,"click"],["action","",3,"click"],[1,"icon"],[1,"primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"click"]]},template:function(e,n){if(e&1&&(de(ke),O(0,Le,5,4,"spk-button-group"),h(1,"div",7),D(2,0,["ngProjectAs","label",5,["label"]]),h(3,"div",8,0),O(5,Be,1,0,"spk-progress-bar",9),Q(6,Ke,3,2,"ng-template",null,1,fe)(8,Ue,1,0,"ng-container",10),f(),O(9,ze,2,3,"spk-toggle",11),f(),h(10,"div",12,2)(12,"spk-form-field"),D(13,1,["ngProjectAs","label",5,["label"]]),D(14,2,["ngProjectAs","input",5,["input"]]),f()()),e&2){let i=J(7);F(n.multiSelect()?-1:0),m(),v("hidden",n.pathDiscoveryMethod()!=="browse"),m(2),v("visualize-accepted",n.accepts()),m(2),F(n.isLoading()?5:-1),m(3),K("ngTemplateOutlet",i)("ngTemplateOutletContext",V(13,Oe,V(11,Ie,n.treeStructure()))),m(),F(!n.accepts()&&!n.isByBackupSettings()?9:-1),m(),v("hidden",n.pathDiscoveryMethod()!=="path")}},dependencies:[Ce,ve,me,Pe,Ee,Te,ge,Me],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%] spk-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;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%] spk-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%] spk-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(spk-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] spk-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] spk-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%] spk-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%] spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:2rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}'],changeDetection:0})};export{ee as a};
package/chunk-FO4W6SOP.js DELETED
@@ -1 +0,0 @@
1
- import{e as a,f as b}from"./chunk-EKZRKTLM.js";import"./chunk-FLMFEFKM.js";import"./chunk-WIJ3HW7I.js";import"./chunk-WY2KPAVB.js";import"./chunk-3PYBMCOB.js";import"./chunk-FPLBURO5.js";import"./chunk-3KIPRGE2.js";import"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreSelectFilesForm,b as default};
package/chunk-GGT3NXAX.js DELETED
@@ -1 +0,0 @@
1
- import{g as D}from"./chunk-EKZRKTLM.js";import{a as X}from"./chunk-Q3ILJYED.js";import{l as x}from"./chunk-3IRKJXHE.js";import"./chunk-KA4H3PM5.js";import"./chunk-FLMFEFKM.js";import"./chunk-WIJ3HW7I.js";import"./chunk-N334RUEQ.js";import"./chunk-K5AQUIEE.js";import{a as g}from"./chunk-WY2KPAVB.js";import"./chunk-4D2NUH5S.js";import"./chunk-XD26KCAE.js";import"./chunk-KQAO2YHR.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import"./chunk-JWFYA3TO.js";import"./chunk-3KIPRGE2.js";import"./chunk-UVLJAD66.js";import{a as I,b as G,c as W,d as h,e as y,f as v}from"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{q as w,v as K}from"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-KV7SEZ24.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-LQ2PCH6Q.js";import{Hb as _,Hc as N,Ib as F,Oa as l,Ob as E,X as c,_a as $,_b as L,la as A,pb as O,qb as k,qc as M,rc as T,sc as R,ub as r,vb as t,wb as n,xb as a}from"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";var b=()=>["/restore-from-files/destination"],z=()=>["/restore-from-files/encryption"],B=()=>["/restore-from-files/select-files"],U=()=>["/restore-from-files/options"],j=e=>["/restore-draft",e,"select-files"],H=e=>["/restore-draft",e,"options"],V=e=>["/restore",e,"select-files"],q=e=>["/restore",e,"options"],J=e=>["/restore",e,"progress"];function Q(e,i){e&1&&(t(0,"div",9),_(1,0),a(2,"spk-radio"),F(),n(),t(3,"div",9),_(4,1),a(5,"spk-radio"),F(),n(),t(6,"div",9),_(7,2),a(8,"spk-radio"),F(),n(),t(9,"div",9),_(10,3),a(11,"spk-radio"),F(),n()),e&2&&(r("routerLink",T(4,b)),l(3),r("routerLink",T(5,z)),l(3),r("routerLink",T(6,B)),l(3),r("routerLink",T(7,U)))}function Y(e,i){if(e&1&&(t(0,"div",9),_(1,4),a(2,"spk-radio"),F(),n(),t(3,"div",9),_(4,5),a(5,"spk-radio"),F(),n()),e&2){let o=E();r("routerLink",R(2,j,o.backupId())),l(3),r("routerLink",R(4,H,o.backupId()))}}function Z(e,i){if(e&1&&(t(0,"div",9),_(1,6),a(2,"spk-radio"),F(),n(),t(3,"div",9),_(4,7),a(5,"spk-radio"),F(),n()),e&2){let o=E();r("routerLink",R(2,V,o.backupId())),l(3),r("routerLink",R(4,q,o.backupId()))}}function ee(e,i){if(e&1&&(t(0,"div",9),_(1,8),a(2,"spk-radio"),F(),n()),e&2){let o=E();r("routerLink",R(1,J,o.backupId()))}}var f=class e{#o=c(G);#t=c(h);#e=c(D);#n=g(this.#o.params);#i=g(this.#o.url);#a=g(this.#o.children[0].url);backupId=this.#e.backupId;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;isProgressPage=A(!1);paramsChanged=N(()=>{let i=this.#a(),o=this.#n()?.id,s=!!this.#i()?.find(S=>S.path==="restore-draft"),p=!!this.#i()?.find(S=>S.path==="restore-from-files"),u=!!i?.find(S=>S.path==="progress");this.isProgressPage.set(u),this.#e.init(o,p,p||s)});ngOnInit(){this.#t.events.subscribe(i=>{if(i instanceof I){let o=i.urlAfterRedirects;this.isProgressPage.set(o.includes("progress"))}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=$({type:e,selectors:[["app-restore-flow"]],hostVars:2,hostBindings:function(o,s){o&2&&L("full-width",s.isProgressPage())},features:[M([D,x])],decls:8,vars:2,consts:()=>{let i;i=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Destination `;let o;o=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Encryption `;let s;s=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let p;p=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let u;u=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let S;S=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let P;P=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Select files `;let C;C=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_RADIO: Options `;let m;return m=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_RADIO:${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_RADIO: Progress `,[i,o,s,p,u,S,P,C,m,["step","","routerLinkActive","active",3,"routerLink"]]},template:function(o,s){o&1&&(a(0,"app-status-bar"),t(1,"spk-stepper"),O(2,Q,12,8)(3,Y,6,6)(4,Z,6,6),O(5,ee,3,3,"div",9),n(),t(6,"section"),a(7,"router-outlet"),n()),o&2&&(l(2),k(s.isFileRestore()?2:s.isDraft()?3:4),l(3),k(s.isProgressPage()?5:-1))},dependencies:[K,w,X,W,y,v],styles:["[_nghost-%COMP%]{display:block}.full-width[_nghost-%COMP%] section[_ngcontent-%COMP%]{max-width:62.5rem}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{f as default};
package/chunk-GW37Y5Z7.js DELETED
@@ -1 +0,0 @@
1
- import{a as Le,b as Re}from"./chunk-DDV32SDB.js";import{a as $e}from"./chunk-ABF3SFY5.js";import{a as x}from"./chunk-B5FKLIHW.js";import"./chunk-4D2NUH5S.js";import{a as fe}from"./chunk-XD26KCAE.js";import"./chunk-KQAO2YHR.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import"./chunk-JWFYA3TO.js";import{a as Ie}from"./chunk-HWCTRSCV.js";import{c as Pe,d as Oe,e as he,h as De,r as ke,s as Ne,t as Me}from"./chunk-3KIPRGE2.js";import{b as de,d as Ee}from"./chunk-UVLJAD66.js";import{c as ce,e as pe,f as ue}from"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{C as Te,a as M,b as G,c as Se,e as ge,g as w,k as Fe,l as Ae,n as Ce,u as me}from"./chunk-MHALSLG3.js";import{h as H}from"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import{Bb as f,F as V,Gc as re,Hb as p,Hc as j,Ib as u,Jb as O,Lc as le,Mb as R,Nb as g,Nc as _e,Oa as r,Ob as c,Pc as Q,Wb as ne,X as A,Xb as oe,_a as N,_b as v,ac as $,ba as C,bc as F,ca as m,cc as X,dc as K,gc as z,hc as W,ic as q,jc as ie,kc as ae,la as E,lc as y,pb as d,qb as S,rb as Z,rc as se,sb as ee,tb as te,ub as h,vb as a,wb as i,xb as l}from"./chunk-K6EZTPNQ.js";import{a as Y,b as B}from"./chunk-EUDKD2JW.js";var Ge=["scroller"];function we(n,o){n&1&&(a(0,"spk-icon"),F(1,"bell-ringing"),i())}function He(n,o){n&1&&(a(0,"spk-icon"),F(1,"bell"),i())}function xe(n,o){if(n&1&&l(0,"app-notification",8),n&2){c(2);let e=y(6);h("index",0)("notification",e.content)}}function Ue(n,o){if(n&1&&(a(0,"div",11),F(1),i()),n&2){c(3);let e=y(6);r(),K(" ",e.content.content," ")}}function Ye(n,o){if(n&1&&(a(0,"spk-alert")(1,"div",10),F(2),i(),d(3,Ue,2,1,"div",11),i()),n&2){c(2);let e=y(6);$(e.content.type||"error"),r(2),X(e.content.title),r(),S(e.content.content?3:-1)}}function Be(n,o){if(n&1&&(a(0,"div",6),d(1,xe,1,2,"app-notification",8)(2,Ye,4,4,"spk-alert",9),i()),n&2){c();let e=y(6);r(),S(e.type==="notification"?1:2)}}function Ve(n,o){if(n&1){let e=f();a(0,"div",7)(1,"div",12)(2,"h6",13),p(3,2),a(4,"button",5),g("click",function(){C(e);let s=c();return m(s.toggleNotifications())}),l(5,"spk-icon"),i(),u(),i(),a(6,"div",14,0)(8,"div",15),l(9,"app-notifications"),i()()()()}}function Xe(n,o){if(n&1&&(a(0,"div",20),F(1),i()),n&2){let e=c().$implicit;r(),K(" ",e.content," ")}}function Ke(n,o){if(n&1){let e=f();a(0,"spk-alert",18,1),g("click",function(){let s=C(e).$implicit,_=c(2);return m(_.deleteAlertByIndex(s.id))}),a(2,"div",19),F(3),i(),d(4,Xe,2,1,"div",20),i()}if(n&2){let e=o.$implicit;$(e.type),h("id",e.id),r(3),X(e.title),r(),S(e.content?4:-1)}}function ze(n,o){n&1&&(a(0,"p",17),O(1,4),i())}function We(n,o){if(n&1){let e=f();a(0,"div",7)(1,"div",12)(2,"h6",13),p(3,3),a(4,"button",5),g("click",function(){C(e);let s=c();return m(s.toggleAlerts())}),l(5,"spk-icon"),i(),u(),i(),a(6,"div",14,0)(8,"div",15),ee(9,Ke,5,5,"spk-alert",16,Z,!1,ze,2,0,"p",17),i()()()()}if(n&2){let e=c();r(9),te(e.alertHistory())}}var ye=new ke,b=class n{#e=A(Se);#t=A(x);isSubmitting=E(!1);messageSent=E(!1);form=ye.group({message:ye.control("",[Oe.required])});notifications=this.#t.notifications;shownMessage=E(null);shownMessageInterval=null;alertHistory=this.#e.alertHistory;alertHistoryIsOpen=this.#e.alertHistoryIsOpen;alertHistoryIsHidden=this.#e.alertHistoryIsHidden;numberOfOpenAlerts=re(()=>this.alertHistory().filter(o=>o.isOpen).length);scroller=_e("scroller");isAlertsOpen=Q(!1);isNotificationsOpen=Q(!1);previousHistoryCount=E(null);previousNotificationsCount=E(null);constructor(){j(()=>{let o=this.alertHistory(),e=this.notifications();e.length&&this.previousHistoryCount()!==o.length&&!this.isNotificationsOpen()?(this.shownMessage.set({content:e[0],countDown:3,type:"notification"}),this.previousHistoryCount.set(o.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(s=>B(Y({},s),{countDown:s.countDown-1}))},1e3)):o.length&&this.previousHistoryCount()!==o.length&&!this.isAlertsOpen()&&(this.shownMessage.set({content:o[0],countDown:3,type:"alert"}),this.previousHistoryCount.set(o.length),this.shownMessageInterval=setInterval(()=>{let t=this.shownMessage();if(t?.countDown===0){this.shownMessage.set(null),this.shownMessageInterval=null;return}t!==null&&this.shownMessage.update(s=>B(Y({},s),{countDown:s.countDown-1}))},1e3))}),j(()=>{this.alertHistoryIsOpen(),this.scrollToBottom()})}resetPreviewMessage(){this.shownMessage.set(null),this.shownMessageInterval=null}toggleAlerts(){this.isAlertsOpen()?this.isAlertsOpen.set(!1):(this.isAlertsOpen.set(!0),this.isNotificationsOpen.set(!1),this.resetPreviewMessage())}toggleNotifications(){this.isNotificationsOpen.set(!this.isNotificationsOpen()),this.isAlertsOpen()&&this.isAlertsOpen.set(!1)}deleteAlertByIndex(o){this.#e.removeAlert(o)}scrollToBottom(){this.scroller()&&this.scroller()?.nativeElement&&this.scroller().nativeElement.scrollTo(0,this.scroller().nativeElement.scrollHeight)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-service-hub"]],viewQuery:function(e,t){e&1&&ne(t.scroller,Ge,5),e&2&&oe()},inputs:{isAlertsOpen:[1,"isAlertsOpen"],isNotificationsOpen:[1,"isNotificationsOpen"]},outputs:{isAlertsOpen:"isAlertsOpenChange",isNotificationsOpen:"isNotificationsOpenChange"},decls:10,vars:9,consts:()=>{let o;o=$localize` Notifications ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let e;e=$localize` Alerts ${"\uFFFD#4\uFFFD"}:START_TAG_BUTTON:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:x-circle${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_BUTTON:`;let t;return t=$localize`No alerts yet`,[["scroller",""],["alerts",""],o,e,t,["spk-button","",3,"click"],[1,"preview-alert-wrap"],[1,"alert-stream-modal"],[3,"index","notification"],[3,"class"],["sparkle-alert-title",""],["sparkle-alert-content",""],[1,"alert-stream-modal-content"],[1,"paragraph-20"],[1,"alert-stream-modal-list-scroller"],[1,"alert-stream-modal-list"],[3,"class","id"],[1,"no-alerts"],[3,"click","id"],["title",""],["content",""]]},template:function(e,t){if(e&1){let s=f();a(0,"button",5),g("click",function(){return C(s),m(t.toggleAlerts())}),a(1,"spk-icon"),F(2,"info"),i()(),a(3,"button",5),g("click",function(){return C(s),m(t.toggleNotifications())}),d(4,we,2,0,"spk-icon")(5,He,2,0,"spk-icon"),i(),ie(6),d(7,Be,3,1,"div",6),d(8,Ve,10,0,"div",7),d(9,We,12,1,"div",7)}if(e&2){$(t.alertHistory().length?"error":""),r(3),$(t.notifications().length?"error":""),r(),S(t.notifications().length?4:5),r(2);let s=ae(t.shownMessage());r(),S(s?7:-1),r(),S(t.isNotificationsOpen()?8:-1),r(),S(t.isAlertsOpen()?9:-1)}},dependencies:[Me,G,M,w,Re,Le],styles:["[_nghost-%COMP%]{display:flex;position:fixed;gap:.5rem;bottom:1.5rem;right:1.5rem;z-index:5000}@media only screen and (max-width: 768px){[_nghost-%COMP%]{bottom:1rem;right:1rem}}[_nghost-%COMP%] h6[_ngcontent-%COMP%]{margin:0}.preview-alert-wrap[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column;min-width:15.625rem}.helpdesk-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width: 768px){.helpdesk-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.helpdesk-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;gap:1rem;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.helpdesk-modal-content[_ngcontent-%COMP%] .message-sent[_ngcontent-%COMP%]{padding:0 1rem 1rem;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:0 1rem 1rem;display:flex;flex-direction:column;align-items:flex-end;gap:1rem}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;text-wrap:pretty}.helpdesk-modal-content[_ngcontent-%COMP%] form[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.alert-stream-modal[_ngcontent-%COMP%]{position:absolute;bottom:2.6875rem;right:0;display:flex;flex-direction:column}@media only screen and (max-width: 768px){.alert-stream-modal[_ngcontent-%COMP%]{bottom:2.6875rem}}.alert-stream-modal-list-scroller[_ngcontent-%COMP%]{overflow-y:auto;max-height:18.75rem}.alert-stream-modal-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:1rem;border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;min-width:20rem;border:1px solid var(--base-4);background-color:var(--base-1);border-radius:var(--shape-2)}.alert-stream-modal-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-4);display:flex;align-items:center;justify-content:space-between}.no-alerts[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"],changeDetection:0})};function qe(n,o){n&1&&(a(0,"spk-icon",14),F(1,"check"),i())}function je(n,o){n&1&&(a(0,"spk-icon",15),F(1,"prohibit"),i())}function Qe(n,o){if(n&1){let e=f();a(0,"button",20),g("click",function(){C(e);let s=c();return m(s.updatePassphrase())}),O(1,5),i()}if(n&2){let e=c();v("loader",e.isUpdating())}}function Je(n,o){if(n&1){let e=f();a(0,"button",21),g("click",function(){C(e);let s=c();return m(s.updatePassphrase())}),O(1,6),i()}if(n&2){let e=c();v("loader",e.isUpdating()),h("disabled",!0)}}var U=class n{#e=A(H);closed=le();isUpdating=E(!1);passphrase=E("");repeatPassphrase=E("");updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#e.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(V(()=>this.isUpdating.set(!1))).subscribe({next:()=>this.closed.emit()}))}cancel(){this.isUpdating.set(!0),this.#e.patchApiV1Serversettings({requestBody:{"has-asked-for-password-change":"True"}}).pipe(V(()=>this.isUpdating.set(!1))).subscribe({next:()=>this.closed.emit()})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-change-passphrase-alert-dialog"]],outputs:{closed:"closed"},decls:23,vars:7,consts:()=>{let o;o=$localize`Enter new password`;let e;e=$localize`Repeat password`;let t;t=$localize`Password have to be filled and have to match`;let s;s=$localize`Change passphrase`;let _;_=$localize` Duplicati needs to be secured with a passphrase and a random passphrase has been generated for you. ${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK:${"[\uFFFD#6\uFFFD\uFFFD/#6\uFFFD|\uFFFD#7\uFFFD\uFFFD/#7\uFFFD]"}:LINE_BREAK: If you open Duplicati from the tray icon, you do not need a passphrase, but if you plan to open it from another location you need to set a passphrase you know. Do you want to set a passphrase now? `,_=R(_);let D;D=$localize`Passphrase`;let k;k=$localize`Repeat passphrase`;let I;I=$localize`Not now thanks`;let L;L=$localize` Yes, update passphrase now `;let T;return T=$localize` Yes, update passphrase now `,[s,_,D,k,I,L,T,["header",""],["content",""],["type","warning"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",o,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",e,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["footer",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["spk-button","","spkTooltip",t,1,"raised","primary",3,"loader","disabled"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","","spkTooltip",t,1,"raised","primary",3,"click","disabled"]]},template:function(e,t){e&1&&(a(0,"header",7)(1,"h3"),O(2,0),i()(),a(3,"div",8)(4,"spk-alert",9),p(5,1),l(6,"br")(7,"br"),u(),i(),a(8,"spk-form-field")(9,"label",10),O(10,2),i(),a(11,"input",11),q("ngModelChange",function(_){return W(t.passphrase,_)||(t.passphrase=_),_}),i()(),a(12,"spk-form-field")(13,"label",12),O(14,3),i(),a(15,"input",13),q("ngModelChange",function(_){return W(t.repeatPassphrase,_)||(t.repeatPassphrase=_),_}),i(),d(16,qe,2,0,"spk-icon",14)(17,je,2,0,"spk-icon",15),i()(),a(18,"footer",16)(19,"button",17),g("click",function(){return t.cancel()}),O(20,4),i(),d(21,Qe,2,2,"button",18)(22,Je,2,3,"button",19),i()),e&2&&(r(11),z("ngModel",t.passphrase),r(4),h("disabled",t.passphrase().length===0),z("ngModel",t.repeatPassphrase),r(),S(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?16:17),r(3),v("loader",t.isUpdating()),r(2),S(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?21:22))},dependencies:[Ne,Pe,he,De,G,Ae,M,Te],styles:["[_nghost-%COMP%]{display:block;--dialog-p: 1.5rem}[content][_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"],changeDetection:0})};var Ze=()=>({exact:!0});function et(n,o){n&1&&(a(0,"spk-icon"),F(1,"sun"),i())}function tt(n,o){n&1&&(a(0,"spk-icon"),F(1,"moon"),i())}function nt(n,o){if(n&1){let e=f();a(0,"button",22),g("click",function(){C(e);let s=c();return m(s.changeDefaultClientTo("ngax"))}),p(1,7),l(2,"spk-icon"),u(),i(),a(3,"button",22),g("click",function(){C(e);let s=c();return m(s.logout())}),p(4,8),l(5,"spk-icon"),u(),i()}}var J=class n{#e=A($e);#t=A(H);#n=A(fe);#o=A(de);#i=A(ge);#a=A(x);#s=A(Ee);relayIsEnabled=this.#o.relayIsEnabled;isDarkMode=this.#e.isDarkMode;ngOnInit(){return this.#a.init(),this.#n.getBackups(!0),this.#t.getApiV1Serversettings().subscribe({next:o=>{let e=o["autogenerated-passphrase"]==="True",t=o["has-asked-for-password-change"]==="True";e&&!t&&this.#i.open(U,{maxWidth:"500px"})}})}toggleBodyClass(){this.#e.toggleBodyClass()}changeDefaultClientTo(o){this.#r(o),window.location.replace(`/${o}`)}logout(){this.#s.logout()}#r(o){var e=new Date;e.setTime(e.getTime()+90*24*60*60*1e3),document.cookie="default-client="+o+"; expires="+e.toUTCString()+"; path=/"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-layout"]],decls:37,vars:4,consts:()=>{let o;o=$localize`${"\uFFFD#10\uFFFD"}:START_TAG_SPK_ICON:house${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SPK_ICON: Home `;let e;e=$localize`${"\uFFFD#13\uFFFD"}:START_TAG_SPK_ICON:database${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SPK_ICON: Add backup `;let t;t=$localize`${"\uFFFD#16\uFFFD"}:START_TAG_SPK_ICON:clock-counter-clockwise${"\uFFFD/#16\uFFFD"}:CLOSE_TAG_SPK_ICON: Restore `;let s;s=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:gear${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Settings `;let _;_=$localize`${"\uFFFD#26\uFFFD"}:START_TAG_SPK_ICON:info${"\uFFFD/#26\uFFFD"}:CLOSE_TAG_SPK_ICON: About Duplicati `;let D;D=$localize`${"\uFFFD#29\uFFFD"}:START_TAG_SPK_ICON:files${"[\uFFFD/#29\uFFFD|\uFFFD/#30\uFFFD]"}:CLOSE_TAG_SPK_ICON: Documentation ${"\uFFFD#30\uFFFD"}:START_TAG_SPK_ICON_1:arrow-square-out${"[\uFFFD/#29\uFFFD|\uFFFD/#30\uFFFD]"}:CLOSE_TAG_SPK_ICON:`,D=R(D);let k;k=$localize`${"\uFFFD#33\uFFFD"}:START_TAG_SPK_ICON:chats-circle${"[\uFFFD/#33\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SPK_ICON: Visit forum ${"\uFFFD#34\uFFFD"}:START_TAG_SPK_ICON_1:arrow-square-out${"[\uFFFD/#33\uFFFD|\uFFFD/#34\uFFFD]"}:CLOSE_TAG_SPK_ICON:`,k=R(k);let I;I=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:skip-back${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON: Use old UI `;let L;return L=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:sign-out${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Log out `,[o,e,t,s,_,D,k,I,L,["sidenav",""],["spk-button","",1,"icon","small",3,"click"],[1,"base-1","primary"],["action","","routerLink","/","routerLinkActive","active",3,"routerLinkActiveOptions"],["action","","routerLink","/add-backup","routerLinkActive","active"],["action","","routerLink","/restore","routerLinkActive","active"],["action","","routerLink","/settings","routerLinkActive","active"],[1,"spacer"],[1,"base-1l","primary"],["action","","routerLink","/about","routerLinkActive","active"],["href","https://docs.duplicati.com","target","_blank","action",""],["suffix",""],["href","https://forum.duplicati.com","target","_blank","action",""],["action","",3,"click"]]},template:function(e,t){e&1&&(a(0,"spk-sidenav")(1,"div",9)(2,"header"),l(3,"app-logo"),a(4,"button",10),g("click",function(){return t.toggleBodyClass()}),d(5,et,2,0,"spk-icon")(6,tt,2,0,"spk-icon"),i()(),a(7,"spk-list",11)(8,"button",12),p(9,0),l(10,"spk-icon"),u(),i(),a(11,"button",13),p(12,1),l(13,"spk-icon"),u(),i(),a(14,"button",14),p(15,2),l(16,"spk-icon"),u(),i(),a(17,"button",15),p(18,3),l(19,"spk-icon"),u(),i()(),l(20,"div",16),a(21,"spk-list",17),d(22,nt,6,0),l(23,"spk-divider"),a(24,"button",18),p(25,4),l(26,"spk-icon"),u(),i(),a(27,"a",19),p(28,5),l(29,"spk-icon")(30,"spk-icon",20),u(),i(),a(31,"a",21),p(32,6),l(33,"spk-icon")(34,"spk-icon",20),u(),i()()(),l(35,"router-outlet")(36,"app-service-hub"),i()),e&2&&(r(5),S(t.isDarkMode()?5:6),r(3),h("routerLinkActiveOptions",se(3,Ze)),r(14),S(t.relayIsEnabled()?-1:22))},dependencies:[ce,pe,ue,me,M,Ce,w,Fe,b,Ie],styles:["[_nghost-%COMP%]{height:100vh;width:100%;overflow:hidden}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:1.25rem;gap:.75rem}h3[title][_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}div[sidenav][_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh}"],changeDetection:0})};export{J as default};
package/chunk-IAE5MH6W.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-F74MXVWD.js";import"./chunk-LQ2PCH6Q.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{a as DurationFormatPipe};
package/chunk-LPSXYSH2.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-TUOSYDUU.js";import"./chunk-KA4H3PM5.js";import"./chunk-FLMFEFKM.js";import"./chunk-FPLBURO5.js";import"./chunk-3KIPRGE2.js";import"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{a as OptionsListComponent};
package/chunk-LXOONGVP.js DELETED
@@ -1 +0,0 @@
1
- import{a as he}from"./chunk-Q3ILJYED.js";import{a as Ke}from"./chunk-WIJ3HW7I.js";import{a as be,b as se}from"./chunk-WY2KPAVB.js";import"./chunk-4D2NUH5S.js";import{a as Be}from"./chunk-XD26KCAE.js";import"./chunk-KQAO2YHR.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import{a as re}from"./chunk-JWFYA3TO.js";import"./chunk-3KIPRGE2.js";import"./chunk-UVLJAD66.js";import{b as Ie,e as ke}from"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{a as W,g as ae,j as ye,k as xe,p as le,y as ve}from"./chunk-MHALSLG3.js";import{h as _e}from"./chunk-FWVOVJCG.js";import"./chunk-KV7SEZ24.js";import{la as V,oa as oe}from"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import{a as pe}from"./chunk-F74MXVWD.js";import"./chunk-LQ2PCH6Q.js";import{Bb as h,Gc as fe,Hb as L,Ib as A,Jb as _,Kb as p,Lb as d,Mb as $,Mc as ie,Nb as f,Oa as o,Ob as F,X as x,_a as X,_b as I,ba as D,bc as u,ca as R,cc as K,dc as N,fc as De,jc as Re,kc as $e,la as M,lc as z,pb as C,qb as m,r as U,rb as v,sb as B,tb as b,ub as w,vb as i,vc as c,wb as t,wc as E,xb as s,xc as S,yb as P,zb as G}from"./chunk-K6EZTPNQ.js";import{a as te}from"./chunk-EUDKD2JW.js";function we(n,a){n&1&&s(0,"spk-progress-bar",31)}function ze(n,a){n&1&&s(0,"div",34)}function Ve(n,a){n&1&&s(0,"div",35)}function We(n,a){n&1&&s(0,"div",36)}function je(n,a){if(n&1&&u(0),n&2){let e=F().$implicit;N(" (",e.data==null?null:e.data.WarningsActualLength," warnings) ")}}function Je(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),L(2,15),s(3,"spk-icon"),i(4,"div",46),s(5,"spk-icon",39),t(),A(),t(),i(6,"div",47)(7,"p"),_(8,16),c(9,"date"),t(),i(10,"p"),_(11,17),c(12,"date"),t(),i(13,"p"),_(14,18),c(15,"durationFormat"),t(),i(16,"p"),_(17,19),t(),s(18,"spk-divider"),i(19,"p"),_(20,20),t(),i(21,"p"),_(22,21),t()()(),i(23,"details",45)(24,"summary")(25,"spk-icon"),u(26,"file-archive"),t(),u(27," Compression phase "),i(28,"div",46)(29,"spk-icon",39),u(30,"caret-down"),t()()(),i(31,"div",47)(32,"p"),_(33,22),c(34,"date"),t(),i(35,"p"),_(36,23),c(37,"date"),t(),i(38,"p"),_(39,24),c(40,"durationFormat"),t(),s(41,"spk-divider"),i(42,"p"),_(43,25),c(44,"bytes"),t(),i(45,"p"),_(46,26),c(47,"bytes"),t(),i(48,"p"),_(49,27),c(50,"bytes"),t(),s(51,"spk-divider"),i(52,"p"),_(53,28),t(),i(54,"p"),_(55,29),t()()()),n&2){let e=F(2).$implicit;o(9),p(S(9,17,e.data==null||e.data.TestResults==null?null:e.data.TestResults.BeginTime,"medium")),d(8),o(3),p(S(12,20,e.data==null||e.data.TestResults==null?null:e.data.TestResults.EndTime,"medium")),d(11),o(3),p(E(15,23,e.data==null||e.data.TestResults==null?null:e.data.TestResults.Duration)),d(14),o(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.VerificationsActualLength),d(17),o(3),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.WarningsActualLength),d(20),o(2),p(e.data==null||e.data.TestResults==null?null:e.data.TestResults.ErrorsActualLength),d(22),o(12),p(S(34,25,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.BeginTime,"medium")),d(33),o(3),p(S(37,28,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.EndTime,"medium")),d(36),o(3),p(E(40,31,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.Duration)),d(39),o(4),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileCount)(E(44,33,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DeletedFileSize)),d(43),o(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileCount)(E(47,35,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.DownloadedFileSize)),d(46),o(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileCount)(E(50,37,e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.UploadedFileSize)),d(49),o(3),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.WarningsActualLength),d(53),o(2),p(e.data==null||e.data.CompactResults==null?null:e.data.CompactResults.ErrorsActualLength),d(55)}}function qe(n,a){if(n&1&&(i(0,"code"),u(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function He(n,a){if(n&1&&(i(0,"details",45)(1,"summary"),L(2,30),s(3,"spk-icon"),i(4,"div",46),s(5,"spk-icon",39),t(),A(),t(),i(6,"div",47),B(7,qe,3,3,"code",null,v),t()()),n&2){let e=F(2).$implicit;o(5),p(e.data.VerificationsActualLength),d(2),o(2),b(e.data.Verifications)}}function Qe(n,a){if(n&1&&(i(0,"code"),u(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function Ye(n,a){n&1&&(i(0,"p"),u(1,"No errors"),t())}function Ze(n,a){if(n&1&&(i(0,"code"),u(1),c(2,"json"),t()),n&2){let e=a.$implicit;o(),K(E(2,1,e))}}function en(n,a){if(n&1&&(i(0,"section",40)(1,"app-toggle-card",41),P(2,42),i(3,"h3"),_(4,0),t(),G(),P(5,43),i(6,"p"),_(7,1),c(8,"date"),t(),i(9,"p"),_(10,2),c(11,"date"),t(),i(12,"p"),_(13,3),c(14,"durationFormat"),t(),G(),t(),i(15,"app-toggle-card",41),P(16,42),i(17,"h3"),_(18,4),t(),G(),P(19,43),i(20,"p"),_(21,5),c(22,"bytes"),t(),i(23,"p"),_(24,6),c(25,"bytes"),t(),i(26,"p"),_(27,7),c(28,"bytes"),t(),i(29,"p"),_(30,8),c(31,"bytes"),t(),i(32,"p"),_(33,9),t(),i(34,"p"),_(35,10),t(),i(36,"p"),_(37,11),t(),G(),t(),i(38,"div",44),s(39,"spk-divider"),C(40,Je,56,39),C(41,He,9,1,"details",45),i(42,"details",45)(43,"summary"),L(44,12),s(45,"spk-icon"),i(46,"div",46),s(47,"spk-icon",39),t(),A(),t(),i(48,"div",47),B(49,Qe,3,3,"code",null,v),t()(),i(51,"details",45)(52,"summary"),L(53,13),s(54,"spk-icon"),i(55,"div",46),s(56,"spk-icon",39),t(),A(),t(),i(57,"div",47),C(58,Ye,2,0,"p"),B(59,Ze,3,3,"code",null,v),t()(),s(61,"spk-divider"),i(62,"details")(63,"summary"),L(64,14),s(65,"spk-icon"),i(66,"div",46),s(67,"spk-icon",39),t(),A(),t(),i(68,"code")(69,"button",48),u(70,"Copy"),t(),u(71),c(72,"json"),t()()()()),n&2){let e=F().$implicit;o(),w("disallowToggle",!0),o(7),p(S(8,22,e.data==null?null:e.data.BeginTime,"medium")),d(7),o(3),p(S(11,25,e.data==null?null:e.data.EndTime,"medium")),d(10),o(3),p(E(14,28,e.data==null?null:e.data.Duration)),d(13),o(),w("disallowToggle",!0),o(7),p(e.data==null?null:e.data.ExaminedFiles)(E(22,30,e.data==null?null:e.data.SizeOfExaminedFiles)),d(21),o(3),p(e.data==null?null:e.data.OpenedFiles)(E(25,32,e.data==null?null:e.data.SizeOfOpenedFiles)),d(24),o(3),p(e.data==null?null:e.data.AddedFiles)(E(28,34,e.data==null?null:e.data.SizeOfAddedFiles)),d(27),o(3),p(e.data==null?null:e.data.ModifiedFiles)(E(31,36,e.data==null?null:e.data.SizeOfModifiedFiles)),d(30),o(2),p(e.data==null?null:e.data.DeletedFiles),d(33),o(2),p(e.data==null?null:e.data.TooLargeFiles),d(35),o(2),p(e.data==null?null:e.data.FilesWithError),d(37),o(3),m((e.data==null?null:e.data.MainOperation)==="Backup"?40:-1),o(),m((e.data==null?null:e.data.MainOperation)==="Test"?41:-1),o(6),p(e.data==null?null:e.data.WarningsActualLength),d(44),o(2),b(e.data==null?null:e.data.Warnings),o(7),p(e.data==null?null:e.data.ErrorsActualLength),d(53),o(2),m((e.data==null||e.data.Errors==null?null:e.data.Errors.length)===0?58:-1),o(),b(e.data==null?null:e.data.Errors),o(12),N(" ",E(72,38,e.data)," ")}}function nn(n,a){if(n&1){let e=h();i(0,"article",32)(1,"header",33),f("click",function(){let g=D(e).$implicit,O=F();return R(O.toggleOpenEntry(g.id))}),C(2,ze,1,0,"div",34)(3,Ve,1,0,"div",35)(4,We,1,0,"div",36),i(5,"h3"),u(6),c(7,"date"),t(),i(8,"p"),u(9),C(10,je,1,1),t(),s(11,"div",37),i(12,"div",38)(13,"spk-icon",39),u(14,"caret-down"),t()()(),C(15,en,73,40,"section",40),t()}if(n&2){let e=a.$implicit,l=F();o(2),m(e.data!=null&&e.data.ErrorsActualLength&&(e.data==null?null:e.data.ErrorsActualLength)>0?2:e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?3:4),o(4),K(S(7,7,e.timestamp,"medium")),o(3),N(" ",e.data==null?null:e.data.MainOperation," "),o(),m(e.data!=null&&e.data.WarningsActualLength&&(e.data==null?null:e.data.WarningsActualLength)>0?10:-1),o(3),I("open",e.id===l.openEntry()),o(2),m(e.id===l.openEntry()?15:-1)}}var de=class n{#e=x(_e);backupId=ie.required();openEntry=M(null);pagination=M({offset:0,pagesize:100});resource=se({params:()=>te({id:this.backupId()},this.pagination()),stream:({params:a})=>this.#e.getApiV1BackupByIdLog({id:a.id,pagesize:100}).pipe(U(e=>e.map(l=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,type:l.Type,data:JSON.parse(l.Message),exception:JSON.stringify(l.Exception)==="{}"?null:l.Exception}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-general-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;a=$localize`Time`;let e;e=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let l;l=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let g;g=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let O;O=$localize`Source files`;let k;k=$localize`Evaluated: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let y;y=$localize`Opened: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let j;j=$localize`Added: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let J;J=$localize`Modified: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:)`;let q;q=$localize`Deleted: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let H;H=$localize`Too large: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Q;Q=$localize`Files with error: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let T;T=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON: Warnings ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#46\uFFFD"}:START_TAG_DIV:${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#45\uFFFD|\uFFFD/#47\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_DIV:`,T=$(T);let Y;Y=$localize`${"\uFFFD#54\uFFFD"}:START_TAG_SPK_ICON:warning${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON: Errors ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#55\uFFFD"}:START_TAG_DIV:${"\uFFFD#56\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#54\uFFFD|\uFFFD/#56\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#55\uFFFD"}:CLOSE_TAG_DIV:`,Y=$(Y);let Z;Z=$localize`${"\uFFFD#65\uFFFD"}:START_TAG_SPK_ICON:notepad${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON: Complete log ${"\uFFFD#66\uFFFD"}:START_TAG_DIV:${"\uFFFD#67\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#65\uFFFD|\uFFFD/#67\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#66\uFFFD"}:CLOSE_TAG_DIV:`,Z=$(Z);let ee;ee=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:circle-half-tilt${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Test phase ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ee=$(ee);let Fe;Fe=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ge;ge=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ee;Ee=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ce;Ce=$localize`Verifications: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let me;me=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Oe;Oe=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Te;Te=$localize`Start: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Le;Le=$localize`End: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ae;Ae=$localize`Duration: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Se;Se=$localize` Deleted files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Pe;Pe=$localize` Downloaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ge;Ge=$localize` Uploaded files: ${"\uFFFD0\uFFFD"}:INTERPOLATION: (${"\uFFFD1\uFFFD"}:INTERPOLATION_1:) `;let Ne;Ne=$localize`Warnings: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Me;Me=$localize`Errors: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let ne;return ne=$localize`${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:warning-circle${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON: Verifications ${"\uFFFD0\uFFFD"}:INTERPOLATION: ${"\uFFFD#4\uFFFD"}:START_TAG_DIV:${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON_1:caret-down${"[\uFFFD/#3\uFFFD|\uFFFD/#5\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_DIV:`,ne=$(ne),[a,e,l,g,O,k,y,j,J,q,H,Q,T,Y,Z,ee,Fe,ge,Ee,Ce,me,Oe,Te,Le,Ae,Se,Pe,Ge,Ne,Me,ne,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"status","error"],[1,"status","warn"],[1,"status"],[1,"spacer"],[1,"action"],[1,"toggle-indicator"],[1,"log-content"],[3,"disallowToggle"],["title",""],["content",""],[1,"extra-info"],["name","details"],[1,"actions"],[1,"content"],["spk-button","",1,"small"]]},template:function(e,l){e&1&&(C(0,we,1,0,"spk-progress-bar",31),B(1,nn,16,10,"article",32,v)),e&2&&(m(l.resource.isLoading()?0:-1),o(),b(l.resource.value()))},dependencies:[Ke,xe,le,ae,W,re,V,pe,oe],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column;cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%]{display:flex;flex-direction:column}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;gap:.5rem;padding:.75rem;border-radius:var(--shape-2);background-color:var(--base-2)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:focus{outline:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]:hover{background-color:var(--base-3)}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%]::marker{font-size:0}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex:1 0;gap:.5rem;-webkit-user-select:none;user-select:none}details[_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:2rem;transition:transform 125ms linear}details[open][_ngcontent-%COMP%] summary[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:.75rem 1rem 0;display:flex;flex-direction:column;gap:.75rem}details[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{margin-top:.75rem;position:relative}details[_ngcontent-%COMP%] code[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:.75rem;right:.75rem}.extra-info[_ngcontent-%COMP%]{grid-column:1/-1;display:flex;flex-direction:column;gap:1rem}.extra-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.extra-info[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}.log-content[_ngcontent-%COMP%]{padding:1rem;display:grid;grid-template-columns:1fr 1fr;gap:1rem}.status[_ngcontent-%COMP%]{display:block;width:1rem;height:1rem;background-color:var(--success-500);border-radius:50%}.status.error[_ngcontent-%COMP%]{background-color:var(--error-500)}.status.warn[_ngcontent-%COMP%]{background-color:var(--warn-500)}"],changeDetection:0})};function tn(n,a){n&1&&s(0,"spk-progress-bar",1)}function on(n,a){n&1&&(L(0,0,1),s(1,"spk-icon"),A())}function an(n,a){n&1&&(L(0,0,2),s(1,"spk-icon"),A())}function ln(n,a){if(n&1){let e=h();i(0,"section",6)(1,"button",7),f("click",function(){D(e);let g=F(),O=g.$implicit,k=g.$index,y=F();return R(y.copyToClipboard(O.data,k))}),L(2,0),C(3,on,2,0)(4,an,2,0),A(),t(),i(5,"code"),u(6),c(7,"json"),t()()}if(n&2){let e=F(),l=e.$implicit,g=e.$index,O=F();o(),I("success",O.copiedFromIndex()===g),o(2),m(O.copiedFromIndex()===g?3:4),o(3),K(E(7,4,l.data))}}function _n(n,a){if(n&1){let e=h();i(0,"article",2)(1,"header",3),f("click",function(){let g=D(e).$implicit,O=F();return R(O.toggleOpenEntry(g.id))}),i(2,"h3"),u(3),c(4,"date"),t(),i(5,"div",4)(6,"spk-icon",5),u(7,"caret-down"),t()()(),C(8,ln,8,6,"section",6),t()}if(n&2){let e=a.$implicit,l=F();o(3),De("",S(4,6,e.timestamp,"medium"),": ",e.operation," ",e.path),o(3),I("open",e.id===l.openEntry()),o(2),m(e.id===l.openEntry()?8:-1)}}var ce=class n{#e=x(_e);backupId=ie.required();openEntry=M(null);pagination=M({offset:0,pagesize:100});copiedFromIndex=M(null);resource=se({params:()=>te({id:this.backupId()},this.pagination()),stream:({params:a})=>this.#e.getApiV1BackupByIdRemotelog({id:a.id,pagesize:100}).pipe(U(e=>e.map((l,g)=>({id:l.ID,operationId:l.OperationID,timestamp:l.Timestamp*1e3,operation:l.Operation,path:l.Path,data:typeof l.Data=="string"?JSON.parse(l.Data):null}))))});toggleOpenEntry(a){if(this.openEntry()===a){this.openEntry.set(null);return}this.openEntry.set(a)}copyToClipboard(a,e){let l=JSON.stringify(a,null,2);navigator.clipboard.writeText(l),this.copiedFromIndex.set(e),setTimeout(()=>{this.copiedFromIndex.set(null)},3e3)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-remote-log"]],inputs:{backupId:[1,"backupId"]},decls:3,vars:1,consts:()=>{let a;return a=$localize`${"\uFFFD*3:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied ${"\uFFFD/*3:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*4:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy to clipboard ${"\uFFFD/*4:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,a=$(a),[a,[1,"indeterminate","primary"],[1,"log-entry"],[3,"click"],[1,"actions"],[1,"toggle-indicator"],[1,"log-content"],["spk-button","",1,"small",3,"click"]]},template:function(e,l){e&1&&(C(0,tn,1,0,"spk-progress-bar",1),B(1,_n,9,9,"article",2,v)),e&2&&(m(l.resource.isLoading()?0:-1),o(),b(l.resource.value()))},dependencies:[oe,le,W,V],styles:["[_nghost-%COMP%]{display:block}.log-entry[_ngcontent-%COMP%]{display:flex;flex-direction:column}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1rem;border-bottom:1px solid var(--base-4);background-color:var(--base-1);cursor:pointer}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%]:hover{background-color:var(--base-2)}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-30);margin:0;-webkit-user-select:none;user-select:none}.log-entry[_ngcontent-%COMP%] header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.toggle-indicator[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;height:1.25rem;transition:transform 125ms linear}.toggle-indicator.open[_ngcontent-%COMP%]{transform:rotate(180deg)}.log-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem;position:relative}.log-content[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{position:absolute;top:2rem;right:2rem;background:transparent}code[_ngcontent-%COMP%]{white-space:pre-wrap;padding:1rem;display:block;border-radius:var(--shape-2);background-color:var(--base-2)}"],changeDetection:0})};function rn(n,a){if(n&1&&(u(0," - "),P(1),_(2,6),G(),u(3),c(4,"durationFormat")),n&2){F(2);let e=z(6);o(3),N(" ",E(4,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.LastBackupDuration)," ")}}function sn(n,a){n&1&&(P(0),_(1,7),G())}function pn(n,a){if(n&1&&(u(0),c(1,"bytes")),n&2){F(2);let e=z(6);N(" ",E(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.SourceFilesSize)," ")}}function dn(n,a){n&1&&(P(0),_(1,8),G())}function cn(n,a){if(n&1&&(u(0),c(1,"bytes")),n&2){F(2);let e=z(6);N(" ",E(1,1,e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.TargetFilesSize)," ")}}function un(n,a){n&1&&(P(0),_(1,9),G())}function Fn(n,a){if(n&1&&(i(0,"spk-chip",19),_(1,10),t()),n&2){F(2);let e=z(6);o(),p(e.Backup==null||e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount),d(1)}}function gn(n,a){n&1&&(i(0,"spk-chip",20),_(1,11),t())}function En(n,a){if(n&1&&(i(0,"div",14)(1,"div",18)(2,"h3"),u(3),i(4,"spk-icon"),u(5,"database"),t()(),i(6,"p")(7,"span"),_(8,3),t(),u(9),c(10,"date"),C(11,rn,5,3)(12,sn,2,0,"ng-container"),t(),i(13,"p")(14,"span"),_(15,4),t(),C(16,pn,2,3)(17,dn,2,0,"ng-container"),t(),i(18,"p")(19,"span"),_(20,5),t(),C(21,cn,2,3)(22,un,2,0,"ng-container"),t()(),C(23,Fn,2,1,"spk-chip",19)(24,gn,2,0,"spk-chip",20),t()),n&2){let e=F(),l=z(6);o(3),N(" ",(l.Backup==null?null:l.Backup.Name)??e.MISSING_BACKUP_NAME," "),o(6),N(" ",S(10,6,l.Backup==null||l.Backup.Metadata==null?null:l.Backup.Metadata.LastBackupDate,"short")," "),o(2),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.LastBackupDuration?11:12),o(5),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.SourceFilesSize?16:17),o(5),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.TargetFilesSize?21:22),o(2),m(!(l.Backup==null||l.Backup.Metadata==null)&&l.Backup.Metadata.BackupListCount?23:24)}}function Cn(n,a){if(n&1&&s(0,"app-general-log",17),n&2){let e=F();w("backupId",e.backupId())}}function mn(n,a){if(n&1&&s(0,"app-remote-log",17),n&2){let e=F();w("backupId",e.backupId())}}var ue=class n{#e=x(Ie);#n=x(Be);MISSING_BACKUP_NAME=$localize`Backup name missing`;activeTab=M("general");backupId=be(this.#e.params.pipe(U(a=>a.id)));backup=fe(()=>{let a=this.backupId();return a?this.#n.getBackupById(a):null});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=X({type:n,selectors:[["app-log"]],decls:15,vars:8,consts:()=>{let a;a=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`General`;let l;l=$localize` Destination `;let g;g=$localize`Last successful backup:`;let O;O=$localize`Source:`;let k;k=$localize`Destination:`;let y;y=$localize`took`;let j;j=$localize`N/A`;let J;J=$localize`N/A`;let q;q=$localize`N/A`;let H;H=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION: Version`;let Q;return Q=$localize`No version yet`,[a,e,l,g,O,k,y,j,J,q,H,Q,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"backup"],[1,"primary"],["tab","",3,"click"],[3,"backupId"],[1,"text"],[1,"simple","success"],[1,"simple"]]},template:function(e,l){if(e&1){let g=h();s(0,"app-status-bar"),i(1,"section")(2,"div",12)(3,"button",13),L(4,0),s(5,"spk-icon"),A(),t()(),Re(6),C(7,En,25,9,"div",14),i(8,"spk-tabs",15)(9,"button",16),f("click",function(){return D(g),R(l.activeTab.set("general"))}),_(10,1),t(),i(11,"button",16),f("click",function(){return D(g),R(l.activeTab.set("destination"))}),_(12,2),t()(),C(13,Cn,1,1,"app-general-log",17),C(14,mn,1,1,"app-remote-log",17),t()}if(e&2){o(6);let g=$e(l.backup());o(),m(g?7:-1),o(2),I("active",l.activeTab()==="general"),o(2),I("active",l.activeTab()==="destination"),o(2),m(l.activeTab()==="general"?13:-1),o(),m(l.activeTab()==="destination"?14:-1)}},dependencies:[ve,de,ce,ke,re,pe,V,he,W,ae,ye],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:1rem 1.5rem;gap:1rem}spk-tabs[_ngcontent-%COMP%]{margin-bottom:1rem}.backup[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem;gap:1rem;border:1px solid var(--base-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;width:100%;max-width:40%}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--paragraph-30);color:var(--base-8)}.backup[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--base-12)}"],changeDetection:0})};export{ue as default};
package/chunk-MHALSLG3.js DELETED
@@ -1 +0,0 @@
1
- import{ea as dt}from"./chunk-VKD4Y3YQ.js";import{$b as at,Ab as ge,Bb as ee,Ec as Be,Gc as H,Hc as N,Lc as ce,Mc as b,Na as tt,Nb as B,Nc as ie,Oa as O,Ob as w,Oc as ct,Pb as L,Pc as U,Qa as Ce,Qb as D,Rc as pt,S as be,Sa as Ie,Ua as it,V as Je,Vb as ot,Wb as te,X as j,Xb as se,Xc as We,Yb as rt,Zb as G,_ as Ze,_a as P,_b as z,a as Ke,aa as et,ab as _e,ac as oe,ba as A,bc as V,ca as F,cc as Ae,db as me,dc as ae,ec as Se,fa as Ee,gc as Fe,ha as Te,hc as He,ic as Le,jc as lt,ka as Me,kc as le,la as I,lb as nt,lc as K,ob as st,pb as W,qb as q,ra as Q,rb as Ve,rc as je,sb as Re,sc as ye,tb as Pe,ub as re,vb as _,wb as S,xb as Z}from"./chunk-K6EZTPNQ.js";import{a as ne,b as pe,c as Ge,d as u,e as E,f as M,g as x}from"./chunk-EUDKD2JW.js";var Y=["*"],wt=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Ot=["[icon]","[title]","*","[content]"];function bt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"info"),S())}function Et(t,e){t&1&&(_(0,"spk-icon",3),V(1,"info"),S())}function Tt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"warning"),S())}function Mt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"warning-octagon"),S())}function It(t,e){t&1&&(_(0,"spk-icon",3),V(1,"check-circle"),S())}function Vt(t,e){t&1&&(_(0,"spk-icon",3),V(1,"question"),S())}function Rt(t,e){if(t&1){let o=ee();_(0,"spk-icon",7),B("click",function(){A(o);let n=w();return F(n.removeAlert())}),V(1,"plus"),S()}}var Pt=["dialogRef"];function At(t,e){if(t&1){let o=ee();_(0,"div",4),B("click",function(){A(o);let n=w();return F(n.isOpen.set(!1))}),S()}}var Ft=["spk-button",""];var Ht=["triggerRef"],Lt=["popoverRef"],jt=[[["","trigger",""]],"*"],Bt=["[trigger]","*"];var Wt=()=>({closeOnButton:!1,closeOnEsc:!0});var qt=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],zt=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],ut=["input"],Nt=[[["label"]]],Ut=["label"];function $t(t,e){if(t&1&&(_(0,"div",3),V(1),S()),t&2){let o=w();O(),Ae(o.files()[0].name)}}function Qt(t,e){if(t&1&&(_(0,"div",3),V(1),S()),t&2){let o=w();O(),ae("",o.files().length," files selected")}}function Yt(t,e){if(t&1&&(_(0,"div",4),V(1),S()),t&2){let o=w();O(),Ae(o.filesOver()?o.overlayText():o.placeholder())}}var Xt=["optionsRef"],Gt=["*",[["","menu",""]]],Kt=["*","[menu]"];function Jt(t,e){t&1&&(_(0,"spk-icon",5),V(1,"caret-down"),S())}var Zt=[[["label"]],[["input","type","range"]]],ei=["label","input[type=range]"],ti=["optionsWrap"],ii=[[["label"]],[["input"]],[["textarea"]]],ni=["label","input","textarea"],si=()=>({closeOnButton:!1,closeOnEsc:!1}),Qe=t=>({$implicit:t});function oi(t,e){if(t&1&&V(0),t&2){let o=w();ae(" ",o.inputValue()," ")}}function ri(t,e){t&1&&ge(0)}function ai(t,e){if(t&1&&me(0,ri,1,0,"ng-container",13),t&2){let o=w(3).$implicit;w(2);let i=K(2);re("ngTemplateOutlet",i)("ngTemplateOutletContext",ye(2,Qe,o))}}function li(t,e){if(t&1&&V(0),t&2){let o=w(3).$implicit,i=w(2);ae(" ",i.getLabel(o)," ")}}function ci(t,e){if(t&1){let o=ee();_(0,"spk-chip",11),W(1,ai,1,4,"ng-container")(2,li,1,1),_(3,"spk-icon",12),B("click",function(n){A(o);let s=w(2).$index,h=w(2);return F(h.removeSelectedOptionByIndex(n,s))}),V(4,"x-bold"),S()()}if(t&2){let o=w(4),i=K(2);oe(o.selectClasses()),O(),q(i?1:2)}}function pi(t,e){t&1&&ge(0)}function di(t,e){if(t&1&&me(0,pi,1,0,"ng-container",13),t&2){let o=w(4).$implicit;w(2);let i=K(2);re("ngTemplateOutlet",i)("ngTemplateOutletContext",ye(2,Qe,o))}}function ui(t,e){if(t&1&&V(0),t&2){let o=w(4).$implicit,i=w(2);ae(" ",i.getLabel(o)," ")}}function hi(t,e){if(t&1&&W(0,di,1,4,"ng-container")(1,ui,1,1),t&2){w(5);let o=K(2);q(o?0:1)}}function fi(t,e){if(t&1&&W(0,hi,2,1),t&2){w(4);let o=K(5);q(o?-1:0)}}function mi(t,e){if(t&1&&W(0,ci,5,3,"spk-chip",10)(1,fi,1,1),t&2){w(3);let o=K(4);q(o?0:1)}}function gi(t,e){if(t&1&&W(0,mi,2,1),t&2){let o=e.$implicit;q(o?0:-1)}}function vi(t,e){if(t&1&&Re(0,gi,1,1,null,null,Ve),t&2){w();let o=K(1);Pe(o)}}function Ci(t,e){t&1&&ge(0)}function _i(t,e){if(t&1&&me(0,Ci,1,0,"ng-container",14),t&2){w(2);let o=K(0);re("ngTemplateOutlet",o)}}function Si(t,e){if(t&1&&V(0),t&2){let o=w(2);ae(" ",o.placeholderText()??""," ")}}function yi(t,e){if(t&1&&W(0,_i,1,1,"ng-container")(1,Si,1,1),t&2){w();let o=K(0);q(o?0:1)}}function ki(t,e){t&1&&(_(0,"spk-icon",6),V(1,"caret-down"),S())}function xi(t,e){t&1&&Z(0,"spk-spinner",7)}function Di(t,e){t&1&&(_(0,"spk-icon",6),V(1,"list-magnifying-glass"),S())}function wi(t,e){t&1&&(_(0,"spk-icon",6),V(1,"magnifying-glass"),S())}function Oi(t,e){if(t&1){let o=ee();_(0,"spk-icon",15),B("click",function(n){A(o);let s=w();return F(s.clear(n))}),V(1,"x-bold"),S()}}function bi(t,e){t&1&&(_(0,"spk-icon",6),V(1,"caret-down"),S())}function Ei(t,e){t&1&&(_(0,"spk-icon",6),V(1,"caret-up"),S())}function Ti(t,e){if(t&1&&Z(0,"spk-checkbox"),t&2){let o=w().$index,i=w();oe(i.selectClasses()),z("active",i.isSelected(o))}}function Mi(t,e){t&1&&ge(0)}function Ii(t,e){if(t&1&&me(0,Mi,1,0,"ng-container",13),t&2){let o=w().$implicit;w();let i=K(3);re("ngTemplateOutlet",i)("ngTemplateOutletContext",ye(2,Qe,o))}}function Vi(t,e){if(t&1&&V(0),t&2){let o=w().$implicit,i=w();ae(" ",i.getLabel(o)," ")}}function Ri(t,e){if(t&1){let o=ee();_(0,"li",16),B("click",function(){let n=A(o).$index,s=w();return F(s.toggleOptionByIndex(n))}),W(1,Ti,1,4,"spk-checkbox",17),W(2,Ii,1,4,"ng-container")(3,Vi,1,1),S()}if(t&2){let o=e.$index,i=w(),n=K(3);z("selected",i.isSelected(o))("focused",o===i.focusedOptionIndex()),O(),q(i.selectMultiple()?1:-1),O(),q(n?2:3)}}var Pi=["dragImageElement"],Ai=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Fi=["[sidenav]","[sidenav-closed-topbar]","*"];function Hi(t,e){t&1&&Z(0,"div",1,0)}function Li(t,e){if(t&1){let o=ee();_(0,"div",7),B("drop",function(n){A(o);let s=w();return F(s.drop(n))})("dragover",function(n){A(o);let s=w();return F(s.dragOver(n))})("dragenter",function(){A(o);let n=w();return F(n.dragEnter())})("dragleave",function(){A(o);let n=w();return F(n.dragLeave())}),S()}}function ji(t,e){if(t&1){let o=ee();_(0,"div",8),B("dragstart",function(n){A(o);let s=w();return F(s.dragStart(n))})("dragend",function(n){A(o);let s=w();return F(s.dragEnd(n))})("drag",function(n){A(o);let s=w();return F(s.drag(n))})("touchstart",function(n){A(o);let s=w();return F(s.touchStart(n))})("touchmove",function(n){A(o);let s=w();return F(s.touchMove(n))})("touchend",function(n){A(o);let s=w();return F(s.touchEnd(n))})("touchcancel",function(n){A(o);let s=w();return F(s.touchCancel(n))}),S()}}var Bi=["thead"],Wi=[[["","table-header",""]],"*",[["","table-no-rows",""]]],qi=["[table-header]","*","[table-no-rows]"];function zi(t,e){t&1&&Z(0,"spk-progress-bar",1)}function Ni(t,e){t&1&&(_(0,"div",2),D(1,2),S())}var Ui=[[["","title",""]],"*"],$i=["[title]","*"];function Qi(t,e){t&1&&V(0,"Title")}function Yi(t,e){t&1&&(_(0,"spk-icon",1),V(1,"caret-down"),S())}var qe=["bold","thin","light","fill"],ue=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}get currentClass(){let n=u(this,e).nativeElement.innerText;for(let s=0;s<qe.length;s++)if(n.endsWith(qe[s]))return qe[s];return""}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(s,h){s&2&&oe(h.currentClass)},ngContentSelectors:Y,decls:1,vars:0,template:function(s,h){s&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=o;return t})(),bn=(()=>{let e=class e{constructor(){this._el=j(Q),this.alertService=b(null),this.id=b(null),this.alertClasses=H(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ot,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(n,s){if(n&1&&(L(wt),_(0,"div",1)(1,"div",2,0),D(3),S(),_(4,"div",2),W(5,bt,2,0,"spk-icon",3)(6,Et,2,0,"spk-icon",3)(7,Tt,2,0,"spk-icon",3)(8,Mt,2,0,"spk-icon",3)(9,It,2,0,"spk-icon",3)(10,Vt,2,0,"spk-icon",3),S(),_(11,"div",4),D(12,1),D(13,2),S(),W(14,Rt,2,0,"spk-icon",5),_(15,"div",6),D(16,3),S()()),n&2){let h=rt(2);O(),G("display",h.children.length?"block":"none");let m=s.alertClasses();O(4),q(m.includes("primary")?5:m.includes("accent")?6:m.includes("warn")?7:m.includes("error")?8:m.includes("success")?9:10),O(9),q(s.id()?14:-1)}},dependencies:[ue],encapsulation:2,changeDetection:0});let t=e;return t})();function Ye(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var En=(()=>{let e=class e{constructor(){this.alertHistory=I([]),this.alertHistoryIsOpen=I(!1),this.alertHistoryIsHidden=I(!0)}error(i){this.addAlert({type:"error",title:i??"An error occured"})}success(i){this.addAlert({type:"success",title:i})}question(i){this.addAlert({type:"question",title:i})}warning(i){this.addAlert({type:"warn",title:i})}info(i){this.addAlert({type:"primary",title:i})}addAlert(i){let n=Ye();this.alertHistory.update(s=>[pe(ne({},i),{isOpen:!0,animateIn:!0,animateOut:!1,id:n}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(h=>pe(ne({},h),{animateIn:h.id===n?!1:h.animateIn})))},40),setTimeout(()=>{this.hideAlert(n)},2500)}removeAlert(i){this.alertHistory.update(n=>n.map(s=>pe(ne({},s),{animateOut:s.id===i?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(n=>n.filter(s=>s.id!==i))},300)}hideAlert(i){this.alertHistory.update(n=>n.map(s=>pe(ne({},s),{isOpen:s.id===i?!1:s.isOpen})))}setHidden(i){this.alertHistoryIsHidden.set(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=be({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})(),Oe=new Je("Sparkle UI Config"),Xi={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Gi=(()=>{var e;let o=class o{constructor(){E(this,e);M(this,e,j(Oe,{optional:!0})),this.dialogRef=ie("dialogRef"),this.isOpen=U(!1),this.options=b(),this.closed=ce(),this.defaultOptionMerge=H(()=>ne(pe(ne({},Xi),{class:u(this,e)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=N(()=>{let n=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(n?.showModal(),n?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),n?.close())})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-dialog"]],viewQuery:function(s,h){s&1&&te(h.dialogRef,Pt,5),s&2&&se()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Y,decls:5,vars:11,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(s,h){if(s&1&&(L(),_(0,"dialog",1,0)(2,"div",2),D(3),S(),W(4,At,1,0,"div",3),S()),s&2){let m=h.defaultOptionMerge();oe(m.class),G("width",m.width??"")("max-width",m.maxWidth??"")("max-height",m.maxHeight??"")("height",m.height??""),O(4),q(h.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0});let t=o;return t})(),Tn=(()=>{var e,o,i,ht,ve;let h=class h{constructor(){E(this,i);E(this,e);E(this,o);M(this,e,document.querySelector("body")),M(this,o,j(nt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(p,r){let d=u(this,o).injector,g=x(this,i,ht).call(this),k=r||{},{data:v,closed:a}=k,l=Ge(k,["data","closed"]);this.compRef&&x(this,i,ve).call(this),this.insertedCompRef=We(p,{environmentInjector:d}),this.compRef=We(Gi,{hostElement:g,environmentInjector:d,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let c=this.insertedCompRef.instance?.data,f=this.insertedCompRef.instance?.closed;if(v){if(Me(c))this.insertedCompRef.setInput("data",v);else if(!Me(c))throw new Error("data is not an input signal on the passed component")}f instanceof Be&&(this.closedFieldSub=f.subscribe((...T)=>{a?.(...T),x(this,i,ve).call(this)})),u(this,o).attachView(this.insertedCompRef.hostView),u(this,o).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",l),this.compRef.instance.closed.subscribe(()=>C());let y=this;function C(){var T;f&&f instanceof Be?f.emit(!1):a?.(void 0),x(T=y,i,ve).call(T)}return{component:this.insertedCompRef.instance,close:C}}ngOnDestroy(){x(this,i,ve).call(this)}};e=new WeakMap,o=new WeakMap,i=new WeakSet,ht=function(){let p=document.createElement("spk-dialog-ref");return p.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||u(this,e).append(p),document.getElementById("spk-dialog-ref")},ve=function(){this.insertedCompRef&&(u(this,o).detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(u(this,o).detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())},h.\u0275fac=function(r){return new(r||h)},h.\u0275prov=be({token:h,factory:h.\u0275fac,providedIn:"root"});let t=h;return t})(),Mn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-button-group"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),Ki=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["","spk-button",""]],attrs:Ft,ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),In=(()=>{var e;let o=class o{constructor(){E(this,e);M(this,e,j(Oe,{optional:!0})),this.class=I(u(this,e)?.cardType??"default")}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-card"]],hostVars:2,hostBindings:function(s,h){s&2&&oe(h.class())},ngContentSelectors:Y,decls:1,vars:0,template:function(s,h){s&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=o;return t})(),Ji=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}onClick(){u(this,e).nativeElement.querySelector("input")&&u(this,e).nativeElement.querySelector("input").focus()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-checkbox"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:Y,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(s,h){s&1&&(L(),_(0,"div",0)(1,"spk-icon",1),V(2,"check"),S(),_(3,"spk-icon",2),V(4,"minus"),S()(),D(5))},dependencies:[ue],encapsulation:2,changeDetection:0});let t=o;return t})(),Zi=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-chip"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var en=["scroll","auto"],tn={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ft=(()=>{var e,o,i,mt,ke;let h=class h{constructor(){E(this,i);E(this,e);E(this,o);M(this,e,j(pt)),M(this,o,4),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=b(!1),this.right=b(!1),this.markForCheck=b(null),this._above=I(this.above()),this._right=I(this.right()),this.disableOpenByClick=b(!1),this.isOpen=U(!1),this.options=b(),this.closed=ce(),this.defaultOptionMerge=H(()=>ne(ne({},tn),this.options())),this.triggerRef=ie.required("triggerRef"),this.popoverRef=ie.required("popoverRef"),this.id=I("--"+Ye()),this.menuStyle=I(null),this.openAbort=null,this.openEffect=N(()=>{let p=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let d={signal:this.openAbort?.signal};p?.showPopover(),document.addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},d),setTimeout(()=>{x(this,i,mt).call(this,this.popoverRef()?.nativeElement).addEventListener("scroll",()=>x(this,i,ke).call(this),d),window.addEventListener("resize",()=>x(this,i,ke).call(this),d),x(this,i,ke).call(this)})}else p.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=N(()=>{this.markForCheck()&&u(this,e).markForCheck()})}toggleIsOpen(p){p.preventDefault(),p.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(p){p.stopPropagation(),p.preventDefault(),this.isOpen.set(!1)}};e=new WeakMap,o=new WeakMap,i=new WeakSet,mt=function(p){let r=p.parentElement;for(;r;){if(en.indexOf(window.getComputedStyle(r).overflowY)>-1&&r.scrollHeight>r.clientHeight)return r;r=r.parentElement}return document.documentElement},ke=function(){let p=this.triggerRef()?.nativeElement.getBoundingClientRect(),r=this.popoverRef()?.nativeElement.getBoundingClientRect(),d=p.left,g=p.bottom,v=d,a=g+u(this,o),l=v+r.width>window.innerWidth,c=a+r.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(c),this._right.set(l);else{if(v=d,a=g+u(this,o),c){let y=p.top-r.height-u(this,o);y<0||(a=y)}l&&(v=p.right-r.width,v<0&&(v=0));let f={left:v+"px",top:a+"px"};this.menuStyle.set(f)}},h.\u0275fac=function(r){return new(r||h)},h.\u0275cmp=P({type:h,selectors:[["spk-popover"]],viewQuery:function(r,d){r&1&&(te(d.triggerRef,Ht,5),te(d.popoverRef,Lt,5)),r&2&&se(2)},hostVars:4,hostBindings:function(r,d){r&2&&z("above",d._above())("right",d._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Bt,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(r,d){if(r&1){let g=ee();L(jt),_(0,"div",2,0),B("click",function(a){return A(g),F(d.toggleIsOpen(a))}),_(2,"div",3),D(3),S(),_(4,"button",4),V(5,"Open popover"),S()(),_(6,"div",5,1)(8,"div",6),B("click",function(a){return A(g),F(d.isOpen()&&d.eventClose(a))}),S(),D(9,1),S()}r&2&&(G("anchor-name",d.id()),O(6),at(d.menuStyle()),G("position-anchor",d.id()))},dependencies:[Ki],encapsulation:2,changeDetection:0});let t=h;return t})();var Vn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-divider"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),Xe=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}onClick(){u(this,e).nativeElement.querySelector("input")&&u(this,e).nativeElement.querySelector("input").focus(),u(this,e).nativeElement.querySelector("textarea")&&u(this,e).nativeElement.querySelector("textarea").focus()}ngOnInit(){let n=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=u(this,e).nativeElement.querySelector("textarea");if(!n&&s!==null){let p=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){window.setTimeout(p,0)};var h=p,m=r;s.addEventListener("change",p),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),p()}}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-form-field"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:zt,decls:15,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(s,h){s&1&&(L(qt),D(0),_(1,"div",0)(2,"div",1),D(3,1),D(4,2),S(),D(5,3),D(6,4),_(7,"div",2),D(8,5),D(9,6),S()(),_(10,"div",3)(11,"div",4),D(12,7),S(),_(13,"div",5),D(14,8),S()())},encapsulation:2,changeDetection:0});let t=o;return t})(),Rn=(()=>{let e=class e{constructor(){this._el=j(Q),this.inputRef=ie.required("input"),this.filesOver=I(!1),this.multiple=b(),this.accept=b(null),this.placeholder=U("Click or drag files here"),this.overlayText=b("Drop files here"),this.files=U([]),this.fileUploadClasses=H(()=>this._el.nativeElement.classList.toString()),this.inputEffect=N(()=>{let i=this.inputRef().nativeElement;i&&(i.placeholder&&this.placeholder.set(i.placeholder),i.addEventListener("dragover",n=>{n.preventDefault(),this.filesOver.set(!0)}),i.addEventListener("dragleave",n=>{n.preventDefault(),this.filesOver.set(!1)}),i.addEventListener("drop",n=>{n.preventDefault(),this.filesOver.set(!1);let s=n.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),i.files=s)}),i.addEventListener("change",n=>{n.preventDefault(),this.handleFileUpload(Array.from(n.target.files))}))})}handleFileUpload(i){this.multiple()?this.files.update(n=>[...n,...i]):this.files.set(i)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-file-upload"]],viewQuery:function(n,s){n&1&&te(s.inputRef,ut,5),n&2&&se()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Ut,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(n,s){n&1&&(L(Nt),_(0,"spk-form-field"),D(1,0,["ngProjectAs","label",5,["label"]]),_(2,"div",2,0),W(4,$t,2,1,"div",3)(5,Qt,2,1,"div",3)(6,Yt,2,1,"div",4),Z(7,"input",5,1)(9,"div",6),S(),_(10,"spk-icon",7),V(11,"upload-simple"),S()()),n&2&&(oe(s.fileUploadClasses()),O(4),q(s.files().length===1?4:s.files().length>1?5:6),O(3),st("multiple",s.multiple())("accept",s.accept()),O(2),z("files-over",s.filesOver()))},dependencies:[Xe,ue],encapsulation:2,changeDetection:0});let t=e;return t})(),Pn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-list"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})();function gt(t,e){let o=e?.injector||(et(gt),j(Ee)),{debounce:i=0,initialValue:n=void 0,transform:s=C=>C,compare:h=(C,k)=>C===k,forceType:m=void 0,returnPreviousValue:p=!0}=e||{},r=I(n),d=o.get(Te),g=H(()=>{let C=t()?.nativeElement;if(C instanceof HTMLInputElement||C instanceof HTMLTextAreaElement)return f(C)}),v=!1,a,l=null;return N(()=>{let C=g();if(!C)return r.set(p&&a?s(a):void 0);n!==void 0&&C.value===""?r.set(n):C.value!==""&&c();let k=T=>{l!==null&&clearTimeout(l),l=setTimeout(()=>{l=null,c()},i)};C.addEventListener("input",k),C.addEventListener("inputValueChanged",k),d.onDestroy(()=>{C.removeEventListener("input",k),C.removeEventListener("inputValueChanged",k),l!==null&&clearTimeout(l)})},{injector:o}),N(()=>{let C=g();if(!C)return;let k=r()??"",T=k==null?"":String(k);C.value!==T&&(a=T,C.value=T,C.dispatchEvent(new Event("input")))},{injector:o}),r;function c(){if(!v){v=!0;try{let C=g();if(!C)return;let k=C.value,T=m?y(k,m):s(k);a=k,h(r(),T)||r.set(T)}finally{v=!1}}}function f(C){return Object.defineProperty(C,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").get.call(this)},set(k){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(C),"value").set.call(this,k);let R=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:k}});return this.dispatchEvent(R),k}}),C}function y(C,k){switch(k){case"string":return C.toString();case"number":let T=Number(C);return isNaN(T)?void 0:T;case"boolean":return C.toLowerCase()==="true"?!0:C.toLowerCase()==="false"?!1:void 0;default:return C}}}function vt(t,e){let o=j(Ee),i=o.get(Te),n=I([]),s=null,h=null,m=(r,d)=>{h&&h.disconnect();let g=Array.from(r.nativeElement.querySelectorAll(d.join(",")));n.set(g),h=new MutationObserver(v=>{requestAnimationFrame(()=>{let a=Array.from(r.nativeElement.querySelectorAll(d.join(",")));n.set(a)})}),h.observe(r.nativeElement,{childList:!0,subtree:!0}),i.onDestroy(()=>p())};s=N(()=>{let r=typeof t=="function"&&t[Ke]?t():t,d=typeof e=="function"?e():e;r&&d?.length>0?m(r,d):(n.set([]),h&&(h.disconnect(),h=null))},{injector:o});function p(){s&&s.destroy(),h&&h.disconnect()}return{signal:n.asReadonly(),destroy:p}}var An=(()=>{var e,o,Ct,ze;let s=class s{constructor(){E(this,o);E(this,e);M(this,e,j(Ie)),this.above=b(!1),this.right=b(!1),this.openIndicator=b(!1),this.disabled=b(!1),this.customOptionElementSelectors=b(["button"]),this.keepClickedOptionActive=b(!1),this.closeOnClick=b(!0),this.isOpen=U(!1),this.closed=ce(),this.searchable=b(!1),this.activeOptionIndex=I(-1),this.inputRef=ie("input"),this.optionsRef=ie("optionsRef"),this.options=vt(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=H(()=>this.options.signal().filter(m=>!m.disabled)),this.inputValue=gt(this.inputRef),this.abortController=null,this.optionsEffect=N(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let m=this.inputRef()?.nativeElement;m&&(queueMicrotask(()=>m.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",r=>{let d=r.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let v=g.findIndex(a=>a===d);v>-1&&(this.activeOptionIndex.set(v),m.focus())}),m.addEventListener("keydown",p=>{let r=this.activeOptionIndex();p.key==="ArrowDown"?(p.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):p.key==="ArrowUp"?(p.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):p.key==="Enter"?(p.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):p.key==="Tab"&&(p.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=I([]),this.lastInputValue="",this.inputValueEffect=N(()=>{if(!this.searchable())return;let p=(this.inputValue()??"").toLowerCase();if(x(this,o,ze).call(this),!p||p==="")return;let r=this._lastElementList.length&&p.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=p;for(let d=0;d<r.length;d++){let g=r[d],v=g.textContent?.toLowerCase()||"",a=x(this,o,Ct).call(this,v,p);g.value=a}r=r.filter(d=>d.value>0).sort((d,g)=>g.value-d.value);for(let d=0;d<r.length;d++)u(this,e).setStyle(r[d],"order",d);this.activeElements.set(r),this._lastElementList=r}),this.activeOptionIndexEffect=N(()=>{let m=this.activeElements(),p=this.activeOptionIndex();for(let r=0;r<m.length;r++)m[r].classList.remove("active");p>-1&&(m[p].scrollIntoView({block:"center"}),m[p].classList.add("active"))})}nextActiveIndex(m){let p=this.activeElements();if(!p.length){let d=this.optionsEl();this.activeElements.set(d),p=d}if(m===-1||m===p.length-1)return 0;let r=m+1;return p[r].disabled?this.nextActiveIndex(r):r}prevActiveIndex(m){let p=this.activeElements();if(!p.length){let d=this.optionsEl();this.activeElements.set(d),p=d}if(m===0||m===-1)return p.length-1;let r=m-1;return p[r].disabled?this.prevActiveIndex(r):r}close(m="closed",p){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||m==="closed")&&x(this,o,ze).call(this),this.isOpen.set(!1),this.closed.emit(m==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,o=new WeakSet,Ct=function(m,p){if(!p)return 0;let r=0,d=-1,g=0,v=!0;for(let a=0;a<p.length;a++){let l=p[a];if(m.length>d+1&&m[d+1]===l)r+=a===0?100:150,d++,g++;else{let c=m.indexOf(l,d+1);if(a>0&&(v=!1),c===-1)return 0;r+=100,d=c,g++}}return v&&p.length===g&&(r+=1e3),r+=g*20,r},ze=function(){this.activeOptionIndex.set(-1);let m=this.optionsEl();for(let p=0;p<m.length;p++)m[p].classList.remove("active")},s.\u0275fac=function(p){return new(p||s)},s.\u0275cmp=P({type:s,selectors:[["spk-menu"]],viewQuery:function(p,r){p&1&&(te(r.inputRef,ut,5),te(r.optionsRef,Xt,5)),p&2&&se(2)},hostVars:4,hostBindings:function(p,r){p&2&&z("disabled",r.disabled())("has-search",r.searchable())},inputs:{above:[1,"above"],right:[1,"right"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Kt,decls:12,vars:13,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(p,r){if(p&1){let d=ee();L(Gt),_(0,"spk-popover",3,0),Le("isOpenChange",function(v){return A(d),He(r.isOpen,v)||(r.isOpen=v),F(v)}),B("closed",function(){return A(d),F(r.close("fromPopover"))}),_(2,"div",4),B("click",function(){return A(d),F(!r.disabled()&&r.isOpen.set(!0))}),D(3),W(4,Jt,2,0,"spk-icon",5),S(),_(5,"div",6)(6,"spk-form-field",7),Z(7,"input",8,1),S()(),_(9,"div",9,2),B("click",function(){return A(d),F(r.close("active"))}),D(11,1),S()()}p&2&&(Fe("isOpen",r.isOpen),re("disableOpenByClick",!0)("above",r.above())("right",r.right())("options",je(12,Wt)),O(2),z("is-open",r.isOpen()),O(2),q(r.openIndicator()?4:-1),O(2),z("hidden",r.searchable()===!1),O(3),z("searching",r.searchable()&&r.inputValue()!==""))},dependencies:[ft,Xe,ue],encapsulation:2,changeDetection:0});let t=s;return t})(),nn=(()=>{let e=class e{constructor(){this.value=b(void 0)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(n,s){n&1&&Z(0,"div",0),n&2&&G("width",s.value(),"%")},encapsulation:2,changeDetection:0});let t=e;return t})(),Fn=(()=>{var e;let o=class o{constructor(){E(this,e,j(Q))}onClick(){u(this,e).nativeElement.querySelector("input")&&u(this,e).nativeElement.querySelector("input").focus()}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275cmp=P({type:o,selectors:[["spk-radio"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"radio"]],template:function(s,h){s&1&&(L(),Z(0,"div",0),D(1))},encapsulation:2,changeDetection:0});let t=o;return t})(),Hn=(()=>{var e,o,i,n,s,Ne,_t,St,yt;let d=class d{constructor(){E(this,s);E(this,e);E(this,o);E(this,i);E(this,n);M(this,e,j(Q)),M(this,o,null),M(this,i,null),M(this,n,0),this.alwaysShowThumb=b(!1),this.unit=b(""),this.value=U(u(this,n)),this.inputState=I({min:0,max:100,step:1}),this.valuePercentage=H(()=>{let{min:v,max:a}=this.inputState(),l=this.value()??v;if(isNaN(l))return 0;let c=a-v;if(c===0)return 0;let f=(l-v)/c*100;return Math.max(0,Math.min(100,f))}),this.trackFilledPercentage=H(()=>this.valuePercentage()),this.thumbPositionPercentage=H(()=>this.valuePercentage()),this.syncModelToInputEffect=N(()=>{let v=this.value();if(u(this,i)){let a=parseFloat(u(this,i).value);(isNaN(a)||String(a)!==String(v))&&(u(this,i).value=String(v))}})}get hasInputElement(){return!!u(this,i)}ngAfterViewInit(){M(this,i,u(this,e).nativeElement.querySelector('input[type="range"]')),u(this,i)?(x(this,s,yt).call(this,u(this,i)),u(this,i).oninput=()=>{this.setNewInputValue(u(this,i).value)},u(this,i).addEventListener("inputValueChanged",v=>{this.setNewInputValue(v.detail.value)}),queueMicrotask(()=>x(this,s,Ne).call(this,!0)),x(this,s,_t).call(this)):console.error('SparkleRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(v){let a=parseFloat(v??"0");if(!isNaN(a)){let{min:l,max:c}=this.inputState();this.value.set(Math.max(l,Math.min(c,a)))}}trackEvent(v){if(!u(this,i)||u(this,i).readOnly||u(this,i).disabled){v.preventDefault(),v.stopPropagation();return}if(v.target===u(this,i)||v.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let l=v.currentTarget.getBoundingClientRect(),c=v.clientX-l.left,f=l.width,{min:y,max:C,step:k}=this.inputState(),T=C-y;if(f>0&&T!==0&&k>0){let $=(c/f*T+y-y)/k,J=y+Math.round($)*k,he=x(this,s,St).call(this,k);J=parseFloat(J.toFixed(he));let fe=Math.max(y,Math.min(C,J));this.value.set(fe)}}ngOnDestroy(){u(this,o)&&u(this,o).disconnect(),u(this,i)&&(u(this,i).oninput=null)}};e=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakSet,Ne=function(v=!1){if(!u(this,i))return;let a=parseFloat(u(this,i).min??"0")??0,l=parseFloat(u(this,i).max??"100")??100,c=u(this,i).step,f=1;if(c&&c.toLowerCase()!=="any"){let C=parseFloat(c);!isNaN(C)&&C>0&&(f=C)}this.inputState.set({min:a,max:l,step:f});let y=parseFloat(u(this,i).value??String(a))??a;if(v&&this.value()!==u(this,n)){let C=this.value(),k=Math.max(a,Math.min(l,C));y!==k&&(u(this,i).value=String(k)),C!==k&&this.value.set(k)}else{let C=Math.max(a,Math.min(l,y));this.value()!==C&&this.value.set(C)}},_t=function(){if(!u(this,i)||typeof MutationObserver>"u")return;let v=["min","max","step","value","readonly","disabled"];M(this,o,new MutationObserver(a=>{let l=!1;for(let c of a)if(c.type==="attributes"&&v.includes(c.attributeName??"")){l=!0;break}l&&x(this,s,Ne).call(this,!1)})),u(this,o).observe(u(this,i),{attributes:!0})},St=function(v){if(isNaN(v)||Math.floor(v)===v)return 0;let l=v.toString().split(".")[1];return l?l.length:0},yt=function(v){Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(a){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,a);let c=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:a}});return this.dispatchEvent(c),a}})},d.\u0275fac=function(a){return new(a||d)},d.\u0275cmp=P({type:d,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(a,l){a&2&&z("has-input",l.hasInputElement)},inputs:{alwaysShowThumb:[1,"alwaysShowThumb"],unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ei,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(a,l){a&1&&(L(Zt),_(0,"div",0),D(1),S(),_(2,"div",1)(3,"div",2),V(4),S(),_(5,"div",3),B("click",function(f){return l.trackEvent(f)}),D(6,1),_(7,"div",4),Z(8,"div",5),S(),_(9,"div",6)(10,"div",7)(11,"div",8),V(12),S()()()(),_(13,"div",9),V(14),S()()),a&2&&(O(4),Se("",l.inputState().min,"",l.unit()),O(4),G("width",l.trackFilledPercentage(),"%"),O(),G("left",l.thumbPositionPercentage(),"%"),O(),z("always-show",l.alwaysShowThumb()),O(2),Se("",l.value(),"",l.unit()),O(2),Se("",l.inputState().max,"",l.unit()))},encapsulation:2,changeDetection:0});let t=d;return t})(),sn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(n,s){},encapsulation:2,changeDetection:0});let t=e;return t})(),Ln=(()=>{var e,o,i,Ue,s,$e,X,kt,xt,Dt;let g=class g{constructor(){E(this,i);E(this,e);E(this,o);E(this,s);M(this,e,j(Q)),this.value=b(),this.label=b(),this.asFreeText=b(!1),this.placeholder=b(),this.readonly=U(!1),this.disabled=U(!1),this.lazySearch=b(!1),this.inlineSearch=b(!1),this.asText=b(!1),this.isClearable=b(!0),this.selectMultiple=b(!1),this.optionTemplate=b(null),this.selectedOptionTemplate=b(null),this.placeholderTemplate=b(null),this.isOpen=U(!1),this.isLoading=U(!1),this.options=U([]),this.selectedOptions=U([]),this.cleared=ce(),this.inlineTemplate=ct(Ce),this.optionsWrapRef=ie.required("optionsWrap"),this.inputRefInput=I(null),M(this,o,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var l of a)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Q(l.target)),u(this,o).disconnect())})),this.inputValue=I(""),this.prevInputValue=I(null),this.focusedOptionIndex=I(-1),this._isClearable=H(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=H(()=>u(this,e).nativeElement.classList.toString()),this.stretch=H(()=>this.selectClasses().includes("stretch")),this.placeholderText=H(()=>{let a=this.placeholder(),l=this.inputRefEl();return a||l?.placeholder||null}),this.selectedOptionValues=H(()=>{let a=this.selectedOptions(),l=this.value();return l?a.map(c=>x(this,i,X).call(this,c,l)):a}),this.filteredOptions=H(()=>{let a=this.options()||[],l=this.label(),c=this.value(),f=this.inlineSearch(),y=this.inputValue().toLowerCase(),C=x(this,i,xt).call(this,y);if(a.length<=0)return[];if(!f||y==="")return a;let T=a.filter(R=>{let $=l?(x(this,i,X).call(this,R,l)??"").toString().toLowerCase():(R??"").toString().toLowerCase(),J=((c?x(this,i,X).call(this,R,c):R)??"").toString().toLowerCase(),he=C.test($),fe=C.test(J);return he||fe}).map(R=>{let $=l?(x(this,i,X).call(this,R,l)??"").toString().toLowerCase():(R??"").toString().toLowerCase(),J=((c?x(this,i,X).call(this,R,c):R)??"").toString().toLowerCase(),he=x(this,i,Ue).call(this,$,y),fe=x(this,i,Ue).call(this,J,y);return{item:R,score:Math.max(he,fe)}});return T.sort((R,$)=>$.score-R.score),T.map(R=>R.item)}),this.inputRefEl=H(()=>{let a=this.inputRefInput();if(a===null)return;let l=a?a.nativeElement:null;return l?(l.autocomplete="off",x(this,i,kt).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&l.addEventListener("input",c=>{let f=c.target.value,y=this.inputValue();f!==y&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(f),this.updateInputElValue())}),l.addEventListener("inputValueChanged",c=>{let f=c.detail.value,y=this.inputValue();if(f!==y){if(f===""){this.clear();return}this.setSelectedOptionsFromValue(f),this.setInputValueFromSelectedOptions(),x(this,i,$e).call(this)}}),l):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=N(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl();if(!l)return;l.addEventListener("keydown",c=>{if((c.key==="Escape"||c.key==="Tab")&&(c.preventDefault(),this.close()),(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),c.key==="ArrowDown"){c.preventDefault();let f=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(f>this.filteredOptions().length-1?0:f)}if(c.key==="ArrowUp"){c.preventDefault();let f=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(f<0?this.filteredOptions().length-1:f)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=N(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=N(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=H(()=>{let a=this.selectedOptions();return this.label()?a.map(c=>this.getLabel(c)).join(", "):a.join(", ")}),this.inputState=H(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=H(()=>this.inlineSearch()||this.lazySearch()),M(this,s,N(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),l=this.value(),c=a.map(f=>l?x(this,i,X).call(this,f,l):f).join(",");this.inputValue.set(c)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=u(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new Q(a));return}let l=u(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new Q(l));return}typeof MutationObserver<"u"&&u(this,o).observe(u(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let l=this.options()||[],c=this.value(),f=this.selectMultiple(),y=a.toString().split(",");if(y.length===0){this.selectedOptions.set([]);return}let C=f?y:[y[0]],k=l.filter(T=>{let R=c?x(this,i,X).call(this,T,c)?.toString():T?.toString();return R&&C.includes(R)});this.selectedOptions.set(f?k:[k[0]])}setInputValueFromSelectedOptions(){let a=this.selectedOptions(),l=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let c=a.map(f=>l?x(this,i,X).call(this,f,l):f).join(",");this.inputValue.set(c),this.updateInputElValue()}getLabel(a){let l=this.label();return l?x(this,i,X).call(this,a,l):a}toggleOptionByIndex(a,l){let c=this.filteredOptions()[a];if(this.asFreeText()&&a===-1||!c){this.close();return}l&&l.stopPropagation();let f=this.selectMultiple(),y=this._isClearable(),C=this.value(),k=this.selectedOptionValues(),T=C?x(this,i,X).call(this,c,C):c;this.prevInputValue.set(null),this.selectedOptions.update(R=>{let $=k.indexOf(T);if($>-1){let J=[...R.slice(0,$),...R.slice($+1)];return y||J.length>0?J:R}else return this.focusedOptionIndex.set(a),f?[...R,c]:[c]}),f?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),f&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,l){a.stopPropagation(),this.selectedOptions.update(c=>[...c.slice(0,l),...c.slice(l+1)]),this.setInputValueFromSelectedOptions()}isSelected(a){let l=this.value(),c=this.filteredOptions()[a],f=l?x(this,i,X).call(this,c,l):c;return this.selectedOptionValues().indexOf(f)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||x(this,i,$e).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),l=this.inputValue();a&&(a.value=l,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&u(this,o).disconnect()}};e=new WeakMap,o=new WeakMap,i=new WeakSet,Ue=function(a,l){if(!l)return 0;let c=0,f=-1,y=0,C=!0;for(let k=0;k<l.length;k++){let T=l[k];if(a.length>f+1&&a[f+1]===T)c+=k===0?100:150,f++,y++;else{let R=a.indexOf(T,f+1);if(k>0&&(C=!1),R===-1)return 0;c+=100,f=R,y++}}return C&&l.length===y&&(c+=1e3),c+=y*20,c},s=new WeakMap,$e=function(){let a=this.selectedOptionValues()[0],l=this.value();if(a){let c=this.filteredOptions().findIndex(f=>l?x(this,i,X).call(this,f,l)===a:f===a);this.focusedOptionIndex.set(c)}else this.focusedOptionIndex.set(-1)},X=function(a,l){return l.split(".").reduce((c,f)=>c?.[f],a)},kt=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,l);let f=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(f),l}})},xt=function(a){let l=(a??"").toLowerCase(),c="^";for(let f of l)c+=".*"+x(this,i,Dt).call(this,f);return c+=".*$",new RegExp(c,"i")},Dt=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=P({type:g,selectors:[["spk-select"]],contentQueries:function(l,c,f){l&1&&ot(f,c.inlineTemplate,Ce,5),l&2&&se()},viewQuery:function(l,c){l&1&&te(c.optionsWrapRef,ti,5),l&2&&se()},hostVars:2,hostBindings:function(l,c){l&2&&z("multiple",c.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:ni,decls:28,vars:22,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(l,c){if(l&1){let f=ee();L(ii),lt(0)(1)(2)(3)(4)(5),_(6,"spk-popover",2,0),Le("isOpenChange",function(C){return A(f),He(c.isOpen,C)||(c.isOpen=C),F(C)}),B("closed",function(){return A(f),F(c.close())}),_(8,"spk-form-field",3),B("click",function(){return A(f),F(c.open())}),D(9,0,["ngProjectAs","label",5,["label"]]),_(10,"div",4)(11,"div",5),W(12,oi,1,1)(13,vi,2,0)(14,yi,2,1),D(15,1),D(16,2),S()(),W(17,ki,2,0,"spk-icon",6)(18,xi,1,0,"spk-spinner",7)(19,Di,2,0,"spk-icon",6)(20,wi,2,0,"spk-icon",6)(21,Oi,2,0,"spk-icon",6)(22,bi,2,0,"spk-icon",6)(23,Ei,2,0,"spk-icon",6),S(),_(24,"div",8,1),Re(26,Ri,4,6,"li",9,Ve),S()()}if(l&2){le(c.placeholderTemplate());let f=c.optionTemplate(),y=c.selectedOptionTemplate(),C=c.inlineTemplate();O();let k=le(c.selectedOptions()),T=c.inputState();O(),le(y||f||C),O(),le(f||C),O();let R=le(!c.asText()&&c.selectMultiple());O();let $=le(c.isOpen()&&c.hasSearch()&&(R||c.inputValue().length>0));O(),Fe("isOpen",c.isOpen),re("disableOpenByClick",!0)("options",je(21,si)),O(2),z("stretch",c.stretch())("autosize",c.selectMultiple())("readonly",c.readonly()||c.disabled()),O(2),z("show-search-text",$),O(),z("is-selected",T==="selected"),O(),q(c.asFreeText()&&c.inputValue().length>0&&!c.isOpen()?12:k.length>0?13:$?-1:14),O(5),q(T==="closed"?17:T==="loading"?18:T==="open-searching"?19:T==="searching"?20:T==="selected"&&c._isClearable()?21:T==="selected"&&!c._isClearable()?22:23),O(9),Pe(c.filteredOptions())}},dependencies:[dt,ft,Xe,ue,Ji,sn,Zi],encapsulation:2,changeDetection:0});let t=g;return t})(),jn=(()=>{var e,o,i,xe,De;let h=class h{constructor(){E(this,i);E(this,e);E(this,o);M(this,e,j(Oe,{optional:!0})),M(this,o,I(u(this,e)?.sidenavType)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=b(!1),this.isOpen=U(!1),this.type=b(void 0),this._type=H(()=>this.type()?this.type():u(this,e)?.sidenavType),this.dragImageElement=ie.required("dragImageElement"),this.dragIsEnding=I(!1),this.dragIsOnScreen=I(!0),this.isDragging=I(!1),this.dragPositionX=I(0),this.dragActualPositionX=H(()=>{let p=this.dragPositionX(),r=.32;return p>this.openWidthTreshold?this.openWidthTreshold+(p-this.openWidthTreshold)*r:p}),this.draggingStyle=H(()=>this._type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=N(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(p){p.stopPropagation(),x(this,i,xe).call(this,p.clientX)}dragEnd(p){(p.clientX<0||!this.dragIsOnScreen())&&x(this,i,xe).call(this,0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(p){p.preventDefault(),x(this,i,De).call(this,p)}dragStart(p){p.stopPropagation(),this.isDragging.set(!0),x(this,i,De).call(this,p)}drag(p){p.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(p.clientX)}),x(this,i,De).call(this,p)}touchStart(p){p.stopPropagation(),this.isDragging.set(!0)}touchMove(p){p.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(p.touches[0].clientX)})}touchEnd(p){p.stopPropagation(),x(this,i,xe).call(this,p.changedTouches[0].clientX)}touchCancel(p){p.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,o=new WeakMap,i=new WeakSet,xe=function(p){this.isDragging.set(!1),p<=0?this.isOpen.set(!1):p>this.openWidthTreshold?this.isOpen.set(!0):p<this.openWidthTreshold&&(!this.isOpen()&&p<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))},De=function(p){p.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)},h.\u0275fac=function(r){return new(r||h)},h.\u0275cmp=P({type:h,selectors:[["spk-sidenav"]],viewQuery:function(r,d){r&1&&te(d.dragImageElement,Pi,5),r&2&&se()},hostVars:8,hostBindings:function(r,d){r&2&&(oe(d._type()),z("open",d.isOpen())("closed",!d.isOpen())("is-dragging",d.isDragging()))},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:Fi,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(r,d){r&1&&(L(Ai),W(0,Hi,2,0,"div",1),W(1,Li,1,0,"div",2),_(2,"div",3),D(3),S(),_(4,"div",4),W(5,ji,1,0,"div",5),_(6,"div",6),D(7,1),S(),_(8,"main"),D(9,2),S()()),r&2&&(q(d.type()==="overlay"?0:-1),O(),q(d.type()==="overlay"&&d.isDragging()?1:-1),O(3),G("transform",d.draggingStyle()),O(),q(d.type()==="overlay"&&!d.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let t=h;return t})();var Bn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-stepper"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})();var Wn=(()=>{var e;let o=class o{constructor(){E(this,e);M(this,e,j(on)),this.spkSort=b(),this.sortAsc=H(()=>{let n=u(this,e).sortByColumn(),s=this.spkSort();return!n||!s?!1:n===s}),this.sortDesc=H(()=>{let n=u(this,e).sortByColumn(),s=this.spkSort();return!n||!s?!1:n===`-${s}`})}toggleSort(){let n=this.spkSort();n&&u(this,e).toggleSort(n)}};e=new WeakMap,o.\u0275fac=function(s){return new(s||o)},o.\u0275dir=_e({type:o,selectors:[["","spkSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,h){s&1&&B("mousedown",function(){return h.toggleSort()}),s&2&&z("sort-asc",h.sortAsc())("sort-desc",h.sortDesc())},inputs:{spkSort:[1,"spkSort"]}});let t=o;return t})();var de=1.5,on=(()=>{var e,o,i,n,s,we;let m=class m{constructor(){E(this,s);E(this,e);E(this,o);E(this,i);E(this,n);M(this,e,j(Q)),M(this,o,j(Oe,{optional:!0})),this.loading=b(!1),this.data=b([]),this.dataChange=ce(),this.sortByColumn=U(null),this.thead=ie("thead"),this.columns=vt(this.thead,["TH"]),this.class=I(u(this,o)?.tableType??"default"),this.resizing=I(!1),this.sizeTrigger=I(!0),M(this,i,null),M(this,n,I(!1)),this.scrollXState=I(-1),this.scrollYState=I(-1),this.canScrollX=I(!1),this.canScrollY=I(!1),this.columnSizes=H(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,g,v)=>{let a=g,l=v===r.length-1;return a.dataset.size?`${d} ${a.dataset.size}`:a.classList.contains("sticky")||a.classList.contains("sticky-end")?`${d} min-content`:l?`${d} 1fr`:`${d} 1fr`},"")}),this.e=N(()=>{let r=this.sortByColumn();if(r===null)return u(this,n).call(this)||(M(this,i,this.data()),u(this,n).set(!0)),this.dataChange.emit(structuredClone(u(this,i)));let d=r.startsWith("-")?r.slice(1):r,g=r.startsWith("-"),v=this.data().sort((a,l)=>{let c=a[d],f=l[d],y=0;return typeof c=="number"&&typeof f=="number"&&(y=c-f),c instanceof Date&&f instanceof Date&&(y=c.getTime()-f.getTime()),typeof c=="string"&&typeof f=="string"&&(y=c.localeCompare(f,void 0,{sensitivity:"base"})),g?-y:y});this.dataChange.emit(v)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){x(this,s,we).call(this)}onResize(r){x(this,s,we).call(this)}ngAfterViewInit(){queueMicrotask(()=>x(this,s,we).call(this))}toggleSort(r){let d=this.sortByColumn(),g=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(g)}};e=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakSet,we=function(){let r=u(this,e).nativeElement,d=-1,g=-1,v=r.scrollWidth>r.clientWidth+de;if(v){let l=r.scrollLeft<=de;r.scrollWidth-(r.scrollLeft+r.clientWidth)<de?d=1:l||(d=0)}this.scrollXState.set(d),this.canScrollX.set(v);let a=r.scrollHeight>r.clientHeight+de;if(a){let l=r.scrollTop<=de;r.scrollHeight-(r.scrollTop+r.clientHeight)<de?g=1:l||(g=0)}this.scrollYState.set(g),this.canScrollY.set(a)},m.\u0275fac=function(d){return new(d||m)},m.\u0275cmp=P({type:m,selectors:[["spk-table"]],viewQuery:function(d,g){d&1&&te(g.thead,Bi,5),d&2&&se()},hostVars:18,hostBindings:function(d,g){d&1&&B("scroll",function(){return g.onScroll()})("resize",function(a){return g.onResize(a)},tt),d&2&&(oe(g.class()),G("grid-template-columns",g.columnSizes()),z("resizing",g.resizing())("can-scroll-x",g.canScrollX())("can-scroll-y",g.canScrollY())("scrolled-x",g.scrollXState()>=0)("scrolled-x-end",g.scrollXState()===1)("scrolled-y",g.scrollYState()>=0)("scrolled-y-end",g.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:qi,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,g){d&1&&(L(Wi),_(0,"thead",null,0),D(2),W(3,zi,1,0,"spk-progress-bar",1),S(),_(4,"tbody"),D(5,1),S(),W(6,Ni,2,0,"div",2)),d&2&&(O(3),q(g.loading()?3:-1),O(3),q(g.loading()?-1:6))},dependencies:[nn],encapsulation:2,changeDetection:0});let t=m;return t})(),qn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-tabs"]],ngContentSelectors:Y,decls:1,vars:0,template:function(n,s){n&1&&(L(),D(0))},encapsulation:2,changeDetection:0});let t=e;return t})(),zn=(()=>{let e=class e{constructor(){this.isActive=U(!1),this.disallowToggle=b(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-toggle-card"]],hostVars:2,hostBindings:function(n,s){n&2&&z("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:$i,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(n,s){n&1&&(L(Ui),_(0,"h3",0),B("click",function(){return s.disallowToggle()||s.toggle()}),D(1,0,null,Qi,1,0),W(3,Yi,2,0,"spk-icon",1),S(),_(4,"div",2)(5,"div",3),D(6,1),S()()),n&2&&(O(3),q(s.disallowToggle()?-1:3))},dependencies:[ue],encapsulation:2,changeDetection:0});let t=e;return t})(),Nn=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["spk-toggle"]],ngContentSelectors:Y,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(n,s){n&1&&(L(),_(0,"div",0),Z(1,"div",1),S(),D(2))},encapsulation:2,changeDetection:0});let t=e;return t})();var Un=(()=>{let e=class e{constructor(){this.filesOver=I(!1),this.filesDropped=ce()}onDragOver(i){i.preventDefault(),i.stopPropagation(),this.filesOver.set(!0)}onDragLeave(i){i.preventDefault(),i.stopPropagation(),this.filesOver.set(!1)}ondrop(i){i.preventDefault(),i.stopPropagation(),this.filesOver.set(!1);let n=i.dataTransfer?.files;n&&n.length>0&&this.filesDropped.emit(n)}};e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=_e({type:e,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(n,s){n&1&&B("dragover",function(m){return s.onDragOver(m)})("dragleave",function(m){return s.onDragLeave(m)})("drop",function(m){return s.ondrop(m)}),n&2&&z("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let t=e;return t})();var rn=(()=>{let e=class e{constructor(){this.positionAnchorName=b.required()}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=P({type:e,selectors:[["sparkle-tooltip-wrapper"]],hostVars:2,hostBindings:function(n,s){n&2&&G("position-anchor",s.positionAnchorName())},inputs:{positionAnchorName:[1,"positionAnchorName"]},ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(n,s){n&1&&(L(),_(0,"div",0),D(1),S())},encapsulation:2});let t=e;return t})(),$n=(()=>{var e,o,i,n,s,h;let m=class m{constructor(){E(this,e);E(this,o);E(this,i);E(this,n);E(this,s);E(this,h);this.spkTooltip=b.required(),M(this,e,j(Q)),M(this,o,j(it)),M(this,i,j(Ze)),M(this,n,j(Ie)),M(this,s,null),M(this,h,null),this.anchorName=I(`--${Ye()}`),this.manageWrapperEffect=N(()=>{let r=this.spkTooltip();if(this.cleanupTooltip(),r){let d;typeof r=="string"?d=[u(this,n).createText(r)]:r instanceof Ce?(M(this,h,r.createEmbeddedView(null)),u(this,h).detectChanges(),d=u(this,h).rootNodes):d=[],d.length>0&&(M(this,s,u(this,o).createComponent(rn,{environmentInjector:u(this,i),projectableNodes:[d]})),u(this,s).setInput("positionAnchorName",this.anchorName()),u(this,s).changeDetectorRef.detectChanges())}})}onClick(r){let d=u(this,e).nativeElement;(d.hasAttribute("disabled")||d.hasAttribute("readonly"))&&(r.preventDefault(),r.stopPropagation())}cleanupTooltip(){u(this,s)&&(u(this,s).destroy(),M(this,s,null)),u(this,h)&&(u(this,h).destroy(),M(this,h,null))}ngOnDestroy(){this.cleanupTooltip()}};e=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,s=new WeakMap,h=new WeakMap,m.\u0275fac=function(d){return new(d||m)},m.\u0275dir=_e({type:m,selectors:[["","spkTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:2,hostBindings:function(d,g){d&1&&B("click",function(a){return g.onClick(a)}),d&2&&G("anchor-name",g.anchorName())},inputs:{spkTooltip:[1,"spkTooltip"]}});let t=m;return t})();export{ue as a,bn as b,En as c,Gi as d,Tn as e,Mn as f,Ki as g,In as h,Ji as i,Zi as j,Vn as k,Xe as l,Rn as m,Pn as n,An as o,nn as p,Fn as q,Hn as r,sn as s,Ln as t,jn as u,Bn as v,Wn as w,on as x,qn as y,zn as z,Nn as A,Un as B,$n as C};
package/chunk-N334RUEQ.js DELETED
@@ -1 +0,0 @@
1
- import{a as h}from"./chunk-WY2KPAVB.js";import{d as k,r as C}from"./chunk-3KIPRGE2.js";import{h as b}from"./chunk-FWVOVJCG.js";import{S as P,X as v,la as F,r as D}from"./chunk-K6EZTPNQ.js";import{a}from"./chunk-EUDKD2JW.js";var d=class t{#t=v(b);s3Providers=h(this.getS3Config("Providers"));s3Regions=h(this.getS3Config("Regions"));s3RegionHosts=h(this.getS3Config("RegionHosts"));s3StorageClasses=h(this.getS3Config("StorageClasses"));storjSatellites=h(this.getStorjConfig("Satellites"));storjAuthenticationMethods=h(this.getStorjConfig("AuthenticationMethods"));openstackProviders=h(this.getOpenstackConfig("Providers"));openstackVersions=h(this.getOpenstackConfig("Versions"));gcsLocations=h(this.getGcsConfig("Locations"));gcsStorageClasses=h(this.getGcsConfig("StorageClasses"));getS3Config(e){return this.#t.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":e}}).pipe(D(r=>this.#e(r)))}createS3IamUser(e,r){return this.#t.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":e,"s3-password":r}})}createS3PolicyIAM(e){return this.#t.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:e}})}getStorjConfig(e){return this.#t.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":e}}).pipe(D(r=>this.#e(r)))}getOpenstackConfig(e){return this.#t.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":e}}).pipe(D(r=>this.#e(r)))}getGcsConfig(e){return this.#t.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":e}}).pipe(D(r=>this.#e(r)))}#e(e){return(e.Result&&typeof e.Result=="object"&&Object.entries(e.Result).map(([r,n])=>({key:r,value:n})))??[]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=P({token:t,factory:t.\u0275fac,providedIn:"root"})};var o=new C,m={type:"error",message:$localize`Using double leading slashes is most likely wrong, and will result in objects being created with a leading slash in the name.`},f=[{key:"file",displayName:"File system",description:"Store backups on your local file system.",customFields:{path:{type:"FolderTree",name:"path",doubleSlash:m,shortDescription:"File path",longDescription:"The path to store the backup",formElement:t=>o.control(t??"")}},mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${e}`},from:(t,e,r)=>{let s=r.startsWith("file:///")?r.split("file:///")[1]:r.split("file://")[1],p=s.startsWith("%"),g=s.slice(1).startsWith(":\\")||p?s:"/"+s;return a({destinationType:t,custom:{path:g}},i(t,e))}}},{key:"ssh",displayName:"SSH",description:"Store backups in SSH.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:t=>o.control(t??"",[k.required,k.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",doubleSlash:{type:"warning",message:$localize`Using double leading slashes makes the path absolute, pointing to the root of the filesystem.`},formElement:t=>o.control(t??"")}},dynamicFields:[{type:"String",name:"auth-username",shortDescription:"Username for authentication",longDescription:"Username for authentication with the server",formElement:t=>o.control(t??"")},{type:"Password",name:"auth-password",shortDescription:"Password for authentication",longDescription:"Password for authentication with the server. If a private key is used, this value is used as the password to decrypt the private key.",formElement:t=>o.control(t??"")}],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:"Private key path",longDescription:"This is a path to a private key file locally on the machine"},{type:"FreeText",name:"ssh-key",shortDescription:"SSH private key (PEM format)",longDescription:"Enter a PEM formatted SSH private key. OpenSSL, OpenSSH, and ssh.com formats are supported."}],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]),{port:r,server:n,path:s}=t.custom;return`${t.destinationType}://${n+y(r)+l(s)+e}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"s3",displayName:"S3 Compatible",description:"Store backups in any S3 compatible bucket.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>o.control(t??"")},path:{type:"Path",name:"path",doubleSlash:m,shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:t=>t.get(d).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:t=>t.get(d).s3StorageClasses}],mapper:{to:t=>{let{bucket:e,path:r}=t.custom,n=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e+l(r)+n}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.pathname,bucket:e.hostname}},i(t,e))}},{key:"gcs",displayName:"Google Cloud Storage",description:"Store backups in Google Cloud Storage.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:m,shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:t=>t.get(d).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:t=>t.get(d).gcsStorageClasses},"authid"],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${e}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"googledrive",displayName:"Google Drive",description:"Store backups in Google Drive.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",doubleSlash:m,shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"authid",type:"Password"}],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"pcloud",displayName:"pCloud",description:"Store backups in pCloud.",oauthField:"authid",customFields:{server:{type:"Enumeration",name:"server",loadOptions:()=>F([{key:"pCloud Global",value:"api.pcloud.com"},{key:"pCloud Europe",value:"eapi.pcloud.com"}]),shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},path:{type:"Path",name:"path",doubleSlash:m,shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]),{server:r,path:n}=t.custom;return`${t.destinationType}://${r+l(n)+e}`},from:(t,e,r)=>{let n=e.pathname.replace(/^\//,"");return a({destinationType:t,custom:{server:e.hostname,path:n}},i(t,e))}}},{key:"azure",displayName:"Azure Blob Storage",description:"Store backups in Azure Blob Storage.",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Container name",longDescription:"Container name",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"onedrivev2",displayName:"OneDrive",description:"Store backups in OneDrive.",oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"od4b",displayName:"OneDrive Business",description:"Store backups in OneDrive Business.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]),{port:r,server:n,path:s}=t.custom;return`${t.destinationType}://${n+y(r)+l(s)+e}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"mssp",displayName:"Microsoft SharePoint",description:"Store backups in Microsoft SharePoint.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]),{port:r,server:n,path:s}=t.custom;return`${t.destinationType}://${n+y(r)+l(s)+e}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"sharepoint",displayName:"Microsoft SharePoint v2",description:"Store backups in Microsoft SharePoint.",oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"dropbox",displayName:"Dropbox",description:"Store backups in Dropbox.",oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"box",displayName:"Box.com",description:"Store backups in Box.com.",oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"jottacloud",displayName:"Jottacloud",description:"Store backups in Jottacloud.",oauthField:"authid",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"b2",displayName:"B2 Cloud Storage",description:"Store backups in B2 Cloud Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Application ID"},{name:"auth-password",shortDescription:"Application Key"}],mapper:{to:t=>{let{bucket:e,path:r}=t.custom,n=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e+l(r)+n}`},from:(t,e,r)=>a({destinationType:t,custom:{bucket:e.hostname,path:decodeURIComponent(e.pathname)}},i(t,e))}},{key:"e2",displayName:"IDrive e2",description:"Store backups in IDrive e2.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Access ID"},{name:"auth-password",shortDescription:"Access Secret"}],mapper:{to:t=>{let{bucket:e,path:r}=t.custom,n=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e+l(r)+n}`},from:(t,e,r)=>a({destinationType:t,custom:{bucket:e.hostname,path:e.pathname}},i(t,e))}},{key:"mega",displayName:"Mega.nz",description:"Store backups in Mega.nz.",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"msgroup",displayName:"Microsoft Office 365 Group",description:"Store backups in Microsoft Office 365 Group.",oauthField:"authid",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:"Group email",longDescription:"Group email",formElement:t=>o.control(t??"",[k.email])},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["authid"],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${e}${r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.hostname+e.pathname}},i(t,e))}},{key:"cloudfiles",displayName:"Rackspace CloudFiles",description:"Store backups in Rackspace CloudFiles.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]),{port:r,server:n,path:s}=t.custom;return`${t.destinationType}://${n+y(r)+l(s)+e}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"rclone",displayName:"Rclone",description:"Store backups in Rclone.",dynamicFields:[{name:"rclone-local-repository",shortDescription:"Local repository",defaultValue:""},{name:"rclone-remote-repository",shortDescription:"Remote repository",defaultValue:""},{name:"rclone-remote-path",shortDescription:"Path on remote repository",defaultValue:""}],mapper:{to:t=>{let e=t.dynamic["rclone-remote-repository"],r=t.dynamic["rclone-remote-path"],n=Object.entries(t.dynamic).filter(([p])=>!["rclone-remote-repository","rclone-remote-path"].includes(p)),s=c([...Object.entries(t.advanced),...n]);return`${t.destinationType}://${e}/${r+s}`},from:(t,e,r)=>{let{advanced:n,dynamic:s}=i(t,e);return a({destinationType:t,dynamic:a({"rclone-remote-repository":e.hostname,"rclone-remote-path":e.pathname},s)},n)}}},{key:"openstack",displayName:"OpenStack Object Storage",description:"Store backups in OpenStack Object Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket",longDescription:"Bucket",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"openstack-authuri",shortDescription:"Auth URI",type:"Enumeration",loadOptions:t=>t.get(d).openstackProviders},{name:"openstack-version",shortDescription:"Version",type:"Enumeration",loadOptions:t=>t.get(d).openstackVersions},{name:"openstack-domain-name",shortDescription:"Domain name"},{name:"openstack-tenant-name",shortDescription:"Tenant name"},{name:"openstack-region",shortDescription:"Region"}],mapper:{to:t=>{let e=c([...Object.entries(t.advanced),...Object.entries(t.dynamic)]),{bucket:r}=t.custom;return`${t.destinationType}://${r+e}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.pathname,bucket:e.hostname}},i(t,e))}},{key:"webdav",displayName:"WebDAV",description:"Store backups in WebDAV.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"},{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:t=>{let{port:e,server:r,path:n}=t.custom,s=t.dynamic["use-ssl"],p=c([...Object.entries(t.advanced),...Object.entries(t.dynamic).filter(([u])=>u!=="use-ssl")]);return`${t.destinationType}${s?"s":""}://${r+y(e)+l(n)+p}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"aftp",displayName:"FTP",description:"Store backups in FTP.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",doubleSlash:{type:"warning",message:$localize`Using double leading slashes makes the path absolute, pointing to the root of the filesystem.`},formElement:t=>o.control(t??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:t=>{let{port:e,server:r,path:n}=t.custom,s=c([...Object.entries(t.advanced),...Object.entries(t.dynamic).filter(([p])=>p!=="use-ssl")]);return`${t.destinationType}://${r+y(e)+l(n)+s}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"sia",displayName:"Sia Decentrilized Cloud",description:"Store backups in Sia Decentrilized Cloud.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:t=>{let e=t.custom.server,r=t.dynamic["sia-targetpath"],n=c([...Object.entries(t.advanced),...Object.entries(t.dynamic).filter(([s])=>s!=="sia-targetpath")]);return`${t.destinationType}://${e+l(r)+n}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.pathname}},i(t,e))}},{key:"cos",displayName:"Tencent COS",description:"Store backups in Tencent COS.",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"cos-bucket",shortDescription:"Bucket",order:1},{name:"cos-region",shortDescription:"Region",order:2},{name:"cos-app-id",shortDescription:"COS App Id",order:3},{name:"cos-secret-id",shortDescription:"COS Secret Id",order:4},{name:"cos-secret-key",shortDescription:"COS Secret Key",order:5}],mapper:{to:t=>{let e=t.custom.path,r=c([...Object.entries(t.advanced),...Object.entries(t.dynamic).filter(([n])=>n!=="cos-targetpath")]);return`${t.destinationType}://${e+r}`},from:(t,e,r)=>a({destinationType:t,custom:{path:e.pathname}},i(t,e))}},{key:"tahoe",displayName:"Tahoe LAFS",description:"Store backups in Tahoe LAFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"}],mapper:{to:t=>{let{port:e,server:r,path:n,username:s,password:p}=t.custom,u={"auth-username":s,"auth-password":p},g=t.dynamic["use-ssl"],S=c([...Object.entries(t.advanced),...Object.entries(t.dynamic).filter(([O])=>O!=="use-ssl"),...Object.entries(u)]);return`${t.destinationType}${g?"s":""}://${r+y(e)+l(n)+S}`},from:(t,e,r)=>a({destinationType:t,custom:{server:e.hostname,port:e.port,path:e.pathname}},i(t,e))}},{key:"cifs",displayName:"CIFS",description:"Store backups in CIFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:t=>o.control(t??"")},share:{type:"String",name:"share",shortDescription:"Share Name",longDescription:"Share Name",formElement:t=>o.control(t??"")},path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on server",longDescription:"Path on server",formElement:t=>o.control(t??"")}},dynamicFields:["transport","auth-username","auth-password","auth-domain"],mapper:{to:t=>{let{share:e,server:r,path:n,username:s,password:p}=t.custom,u={"auth-username":s,"auth-password":p},g=new Map([...Object.entries(u),...Object.entries(t.advanced),...Object.entries(t.dynamic)]),S=c(Array.from(g));return`${t.destinationType}://${r+l(e)+l(n)+S}`},from:(t,e,r)=>{let n=e.pathname.split("/")[1],s=e.pathname.split("/").slice(2).join("/");return a({destinationType:t,custom:{server:e.hostname,share:n,path:s}},i(t,e))}}},{key:"filen",displayName:"Filen.io",description:"Store backups in Filen.io.",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on Filen",longDescription:"Path on Filen",formElement:t=>o.control(t??"")}},dynamicFields:["auth-username","auth-password"],mapper:{to:t=>{let{path:e,username:r,password:n}=t.custom,s={"auth-username":r,"auth-password":n},p=new Map([...Object.entries(s),...Object.entries(t.advanced),...Object.entries(t.dynamic)]),u=c(Array.from(p));return`${t.destinationType}://${e+u}`},from:(t,e,r)=>{let n=e.hostname??"";return e.pathname&&n!==""&&e.pathname[0]!="/"&&(n+="/"),n+=e.pathname,a({destinationType:t,custom:{path:n}},i(t,e))}}},{key:"filejump",displayName:"Filejump",description:"Store backups in Filejump.",customFields:{path:{type:"String",name:"path",doubleSlash:m,shortDescription:"Path on Filejump",longDescription:"Path on Filejump",formElement:t=>o.control(t??"")}},dynamicFields:[{type:"Password",name:"api-token",shortDescription:"API Token",longDescription:"Filejump API Token",formElement:t=>o.control(t??"")}],mapper:{to:t=>{let{path:e,username:r,password:n,apitoken:s}=t.custom,p=(s||"").trim()===""?{"auth-username":r,"auth-password":n}:{"api-token":s},u=new Map([...Object.entries(p),...Object.entries(t.advanced),...Object.entries(t.dynamic)]),g=c(Array.from(u));return`${t.destinationType}://${e+g}`},from:(t,e,r)=>{let n=e.hostname??"";return e.pathname&&n!==""&&e.pathname[0]!="/"&&(n+="/"),n+=e.pathname,a({destinationType:t,custom:{path:n}},i(t,e))}}},{key:"storj",customKey:"storjAccessGrant",displayName:"Storj Access Grant",description:"Store backups in Storj Access Grant.",dynamicFields:[{name:"storj-shared-access",shortDescription:"Access Grant"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server",doubleSlash:m}],mapper:{to:t=>`storj://storj.io/config?storj-auth-method=Access%20grant&storj-satellite=us1.storj.io%3A7777&storj-api-key&storj-secret&${c([...Object.entries(t.advanced),...Object.entries(t.dynamic)],!0)}`,from:(t,e,r)=>a({destinationType:t},i(t,e))}},{key:"storj",customKey:"storjApiKey",displayName:"Storj API Key",description:"Store backups in Storj API Key.",dynamicFields:[{name:"storj-satellite",shortDescription:"Satellite",type:"Enumeration",loadOptions:t=>t.get(d).storjSatellites},{name:"storj-api-key",shortDescription:"API Key"},{name:"storj-secret",shortDescription:"Secret"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server",doubleSlash:m}],mapper:{to:t=>`storj://storj.io/config?storj-auth-method=API%20key&${c([...Object.entries(t.advanced),...Object.entries(t.dynamic)],!0)}`,from:(t,e,r)=>a({destinationType:t},i(t,e))}}],W={".amazonaws.com":"Amazon S3",".mycloudyplace.com":"MyCloudyPlace S3",".impossibleapi.net":"Impossible Cloud S3",".scw.cloud":"Scaleway S3",".hosteurope.de":"Hosteurope S3",".dunkel.de":"Dunkel S3",".dreamhost.com":"DreamHost S3",".dincloud.com":"dinCloud S3",".polisystems.ch":"Poli Systems S3",".softlayer.net":"IBM COS (S3)",".storadera.com":"Storadera S3",".wasabisys.com":"Wasabi S3",".infomaniak.com":"Infomaniak S3",".infomaniak.cloud":"Infomaniak S3",".sakurastorage.jp":"\u3055\u304F\u3089\u306E\u30AF\u30E9\u30A6\u30C9 S3",".lyvecloud.seagate.com":"Seagate Lyve S3",".digitaloceanspaces.com":"DigitalOcean S3",".backblazeb2.com":"Backblaze B2 S3",".cloudian.com":"Cloudian S3",".min.io":"MinIO S3",".linodeobjects.com":"Linode S3",".bunnycdn.com":"BunnyCDN S3",".azure.com":"Microsoft Azure S3",".googleapis.com":"Google Cloud Storage S3",".ibm.com":"IBM Cloud S3",".oracle.com":"Oracle Cloud S3",".cloudflare.com":"Cloudflare S3",".alibaba.com":"Alibaba Cloud S3",".huawei.com":"Huawei Cloud S3",".tencent.com":"Tencent Cloud S3",".baidu.com":"Baidu Cloud S3",".jd.com":"JD Cloud S3",".ucloud.cn":"UCloud S3",".qiniu.com":"Qiniu Cloud S3",".aliyuncs.com":"Aliyun S3",".tcloud.com":"TCloud S3",".tencentcloudapi.com":"Tencent Cloud S3"};function y(t){return t==null||t===""?"":":"+t.toString()}function l(t){return t==null?"":t.startsWith("/")?t:"/"+t}function i(t,e){let r={},n={},s=f.find(p=>p.key===t);return e.searchParams.forEach((p,u)=>{s?.dynamicFields?.some(S=>S===u||S?.name===u)?n[u]=decodeURIComponent(p):r[u]=decodeURIComponent(p)}),{advanced:r,dynamic:n}}function c(t,e=!1){let r=t.map(([s,p])=>`${s}=${p?encodeURIComponent(p.toString()):""}`).join("&");return r?(e?"":"?")+r:""}function q(t){let e=t.destinationType,r=f.find(n=>n.customKey===e||n.key===e);if(!r)throw new Error("Invalid destination type");return r?.mapper.to(t)??""}function H(t){let e=URL.canParse(t),r=t.split("://")[0],n=t.split("://")[1],s="http://"+n;if(n.startsWith("%")&&r==="file")return f.find(p=>p.customKey===r||p.key===r)?.mapper.from(r,new URL("http://localhost"),t);try{let p=new URL(s);return f.find(u=>u.customKey===r||u.key===r)?.mapper.from(r,p,t)}catch(p){console.error("Error while parsing target path",p)}if(!e)throw new Error("Invalid target path");return null}export{q as a,H as b,f as c,W as d};
package/chunk-OMZ3W4RW.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-EKZRKTLM.js";import"./chunk-FLMFEFKM.js";import"./chunk-WIJ3HW7I.js";import"./chunk-WY2KPAVB.js";import"./chunk-3PYBMCOB.js";import"./chunk-FPLBURO5.js";import"./chunk-3KIPRGE2.js";import"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
package/chunk-R3TWV35H.js DELETED
@@ -1,4 +0,0 @@
1
- import{g as Qt}from"./chunk-EKZRKTLM.js";import{a as jt,l as J}from"./chunk-3IRKJXHE.js";import{a as zt,b as Xt}from"./chunk-KA4H3PM5.js";import{a as Ht}from"./chunk-FLMFEFKM.js";import{a as qt}from"./chunk-WIJ3HW7I.js";import{a as Kt,c as Wt}from"./chunk-N334RUEQ.js";import"./chunk-K5AQUIEE.js";import"./chunk-WY2KPAVB.js";import{a as ht}from"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import{b as yt,c as It,e as wt,f as $t,g as At,i as vt,j as Pt,m as Vt,n as Mt,o as bt,p as Gt,q as Lt,r as Bt,t as Ut}from"./chunk-3KIPRGE2.js";import{b as Tt,d as Ct}from"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{A as Rt,C as Nt,a as ft,b as gt,d as Dt,e as St,l as Et,o as xt,p as Ot,t as kt}from"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import{ea as ut}from"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import{Ab as L,Bb as S,Gc as K,Hb as x,Hc as dt,Ib as O,Jb as V,Kb as nt,Lb as it,Mb as H,Nb as g,Nc as Ft,Oa as a,Ob as s,Wb as ot,X as N,Xb as at,Yb as v,_a as et,_b as z,ba as T,bc as c,ca as C,cc as X,db as h,dc as D,ec as rt,fa as tt,gc as lt,hc as st,ic as pt,jc as q,kc as j,la as R,lc as Q,mc as k,oc as ct,pb as m,pc as u,qb as d,qc as _t,rb as y,rc as mt,sb as I,sc as B,tb as w,ub as p,uc as U,vb as l,wb as r,xb as F,yb as $,zb as A,zc as M}from"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";var Yt=["formRef"],Zt=(e,n,t,o)=>({index:e,formView:n,formGroupName:"custom",destinationType:t,oauthField:o}),Z=e=>({$implicit:e}),te=(e,n,t,o)=>({index:e,formView:n,formGroupName:"dynamic",destinationType:t,oauthField:o}),ee=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",destinationType:t,oauthField:o}),ne=()=>({maxWidth:"700px",width:"100%"});function ie(e,n){e&1&&(x(0,5,2),F(1,"spk-icon"),O())}function oe(e,n){e&1&&V(0,5,3)}function ae(e,n){if(e&1){let t=S();x(0,5,1),l(1,"button",20),g("click",function(){T(t);let i=s();return C(i.testDestination())}),m(2,ie,2,0)(3,oe,1,0),r(),O()}if(e&2){let t=s();a(),z("success",t.successfulTest()),a(),d(t.successfulTest()?2:3)}}function re(e,n){if(e&1){let t=S();l(0,"p",26),g("click",function(){T(t);let i=s();return C(i.removeDestinationFormGroup(i.destinationCount()-1))}),x(1,8),F(2,"span",27),O(),r()}}function le(e,n){if(e&1){let t=S();l(0,"div",33),g("click",function(){let i=T(t).$implicit,_=s(2);return C(_.addDestinationFormGroup(i.key))}),l(1,"h3"),c(2),r(),l(3,"p"),c(4),r()()}if(e&2){let t=n.$implicit;a(2),X(t.displayName),a(2),X(t.description)}}function se(e,n){if(e&1){let t=S();l(0,"button",34,1),g("click",function(){let i=T(t).$implicit,_=s(2);return C(_.addDestinationFormGroup(i.key))}),c(2),r()}if(e&2){let t=n.$implicit;a(2),D(" ",t.displayName," ")}}function pe(e,n){if(e&1&&(l(0,"div",28),I(1,le,5,2,"div",29,y),r(),l(3,"spk-menu",30)(4,"button",31),V(5,9),r(),$(6,19),I(7,se,3,1,"button",32,y),A(),r()),e&2){let t=s();a(),w(t.destinationTypeOptionsFocused()),a(2),p("searchable",!0),a(4),w(t.destinationTypeOptionsNotFocused())}}function ce(e,n){e&1&&L(0)}function _e(e,n){if(e&1&&h(0,ce,1,0,"ng-container",39),e&2){let t,o=n.$implicit,i=n.$index;s();let _=v(18),f=s();p("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,Z,U(2,Zt,i,o,(t=f.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,f.destinationFormPair().oauthField)))}}function me(e,n){e&1&&L(0)}function de(e,n){if(e&1&&h(0,me,1,0,"ng-container",39),e&2){let t,o=n.$implicit,i=n.$index;s();let _=v(18),f=s();p("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,Z,U(2,te,i,o,(t=f.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,f.destinationFormPair().oauthField)))}}function Fe(e,n){if(e&1){let t=S();x(0,10,1),l(1,"button",34,1),g("click",function(){let i=T(t).$implicit,_=s(2);return C(_.addAdvancedFormPair(i,0))}),r(),O()}if(e&2){let t=n.$implicit;a(),nt(t.name),it(0)}}function ue(e,n){e&1&&L(0)}function Te(e,n){if(e&1&&h(0,ue,1,0,"ng-container",39),e&2){let t,o=n.$implicit,i=n.$index;s();let _=v(18),f=s();p("ngTemplateOutlet",_)("ngTemplateOutletContext",B(7,Z,U(2,ee,i,o,(t=f.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,f.destinationFormPair().oauthField)))}}function Ce(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function fe(e,n){if(e&1&&(l(0,"app-file-tree",42)(1,"label",46),c(2),m(3,Ce,2,1,"spk-icon",47),r(),F(4,"input",48),r()),e&2){let t=s().$implicit,o=s(2);p("startingPath",o.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("hideShortcuts",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1),a(),p("id",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other"))("formControlName",k(t.formView.name))}}function ge(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function De(e,n){if(e&1&&(l(0,"app-file-tree",43)(1,"label",46),c(2),m(3,ge,2,1,"spk-icon",47),r(),F(4,"input",48),r()),e&2){let t=s().$implicit,o=s(2);p("hideShortcuts",!0)("startingPath",o.getFormFieldValue(0,t.formGroupName,t.formView.name)),a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1),a(),p("id",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other"))("formControlName",k(t.formView.name))}}function Se(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function Ee(e,n){e&1&&(l(0,"spk-icon",50),c(1,"link"),r())}function xe(e,n){e&1&&(l(0,"spk-icon",50),c(1,"envelope"),r())}function Oe(e,n){e&1&&(l(0,"spk-icon",50),c(1,"textbox"),r())}function ke(e,n){if(e&1&&(l(0,"spk-form-field")(1,"label",46),c(2),m(3,Se,2,1,"spk-icon",47),r(),F(4,"input",49),m(5,Ee,2,0,"spk-icon",50)(6,xe,2,0,"spk-icon",50)(7,Oe,2,0,"spk-icon",50),r()),e&2){let t=s().$implicit;a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1),a(),p("id",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other"))("formControlName",k(t.formView.name))("type",t.formView.type==="Email"?"email":"text"),a(),d(t.formView.type==="Path"?5:t.formView.type==="Email"?6:7)}}function Re(e,n){if(e&1){let t=S();l(0,"span",54),g("click",function(){T(t);let i=s(2).$implicit,_=s(2);return C(_.oauthStartTokenCreation(i.destinationType))}),c(1,"AuthID"),r()}}function Ne(e,n){e&1&&(l(0,"spk-icon",50),c(1,"password"),r())}function he(e,n){if(e&1){let t=S();l(0,"spk-icon",55),g("click",function(){T(t);let i=s(2).$implicit;return C(i.formView.showPassword=!i.formView.showPassword)}),c(1," eye "),r()}}function ye(e,n){if(e&1){let t=S();l(0,"spk-icon",55),g("click",function(){T(t);let i=s(2).$implicit;return C(i.formView.showPassword=!i.formView.showPassword)}),c(1," eye-slash "),r()}}function Ie(e,n){if(e&1&&(l(0,"spk-form-field")(1,"label",46),c(2),r(),F(3,"input",51),m(4,Re,2,0,"span",52)(5,Ne,2,0,"spk-icon",50),m(6,he,2,0,"spk-icon",53)(7,ye,2,0,"spk-icon",53),r()),e&2){let t=s().$implicit;a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),p("id",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other"))("formControlName",k(t.formView.name))("type",t.formView.showPassword?"text":"password"),a(),d(t.oauthField===t.formView.name?4:5),a(2),d(t.formView.showPassword?6:7)}}function we(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(3).$implicit;p("spkTooltip",t.formView.longDescription)}}function $e(e,n){if(e&1&&c(0),e&2){let t=n.$implicit;D(" ",t," ")}}function Ae(e,n){if(e&1&&(l(0,"spk-select",56)(1,"label",46),c(2),m(3,we,2,1,"spk-icon",47),r(),F(4,"input",48),r(),h(5,$e,1,1,"ng-template",null,3,M)),e&2){let t=v(6);s();let o=Q(0),i=s().$implicit;p("options",o)("isClearable",!1)("optionTemplate",t),a(),p("for",u("destination-",i.formGroupName,"-",i.index,"-",i.asHttpOptions?"http":"other")),a(),D(" ",i.formView.shortDescription??i.formView.name," "),a(),d(i.formView.longDescription?3:-1),a(),p("id",u("destination-",i.formGroupName,"-",i.index,"-",i.asHttpOptions?"http":"other"))("formControlName",k(i.formView.name))}}function ve(e,n){if(e&1&&(q(0),m(1,Ae,7,15)),e&2){let t=s().$implicit,o=j(t.formView.loadOptions?t.formView.loadOptions(s(2).injector)():t.formView.options);a(),d(o?1:-1)}}function Pe(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(3).$implicit;p("spkTooltip",t.formView.longDescription)}}function Ve(e,n){if(e&1&&c(0),e&2){let t=n.$implicit;rt(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Me(e,n){if(e&1&&(l(0,"spk-select",58)(1,"label",46),c(2),m(3,Pe,2,1,"spk-icon",47),r(),F(4,"input",48),r(),h(5,Ve,1,2,"ng-template",null,4,M)),e&2){let t=v(6);s();let o=Q(0),i=s().$implicit;p("options",o)("asFreeText",!0)("inlineSearch",!0)("optionTemplate",t),a(),p("for",u("destination-",i.formGroupName,"-",i.index,"-",i.asHttpOptions?"http":"other")),a(),D(" ",i.formView.shortDescription??i.formView.name," "),a(),d(i.formView.longDescription?3:-1),a(),p("id",u("destination-",i.formGroupName,"-",i.index,"-",i.asHttpOptions?"http":"other"))("formControlName",k(i.formView.name))}}function be(e,n){e&1&&F(0,"spk-progress-bar",57)}function Ge(e,n){if(e&1&&(q(0),m(1,Me,7,16)(2,be,1,0,"spk-progress-bar",57)),e&2){let t=s().$implicit,o=j(t.formView.loadOptions?t.formView.loadOptions(s(2).injector)():t.formView.options);a(),d(o?1:2)}}function Le(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function Be(e,n){if(e&1&&(l(0,"app-size",44)(1,"label",46),c(2),m(3,Le,2,1,"spk-icon",47),r()()),e&2){let t=s().$implicit;p("inputType",t.Name)("formControlName",t.formView.name)("customId",`destination-{{ item.formGroupName }}-{{ item.index }}-{{
2
- item.asHttpOptions ? 'http' : 'other'
3
- }}`),a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1)}}function Ue(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function Ke(e,n){if(e&1&&(l(0,"spk-form-field")(1,"label",46),c(2),m(3,Ue,2,1,"spk-icon",47),r(),F(4,"input",59),l(5,"spk-icon",50),c(6,"numpad"),r()()),e&2){let t=s().$implicit;a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1),a(),p("id",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other"))("formControlName",k(t.formView.name))}}function We(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function He(e,n){if(e&1&&(l(0,"spk-toggle",45)(1,"label",46),c(2),m(3,We,2,1,"spk-icon",47),r(),F(4,"input",60),r()),e&2){let t=s().$implicit;a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1),a(),p("id",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other"))("formControlName",k(t.formView.name))}}function ze(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function Xe(e,n){if(e&1&&c(0),e&2){let t=n.$implicit;D(" ",t," ")}}function qe(e,n){if(e&1&&(l(0,"spk-select",61)(1,"label",46),c(2),m(3,ze,2,1,"spk-icon",47),r(),F(4,"input",62),r(),h(5,Xe,1,1,"ng-template",null,4,M)),e&2){let t=v(6),o=s().$implicit;p("options",o.formView.options)("selectMultiple",!0)("optionTemplate",t),a(),p("for",ct("destination-",o.formGroupName,"-",o.index)),a(),D(" ",o.formView.shortDescription??o.formView.name," "),a(),d(o.formView.longDescription?3:-1),a(),p("formControlName",k(o.formView.name))}}function je(e,n){if(e&1&&(l(0,"spk-icon",47),c(1,"question"),r()),e&2){let t=s(2).$implicit;p("spkTooltip",t.formView.longDescription)}}function Qe(e,n){if(e&1&&(l(0,"app-timespan",44)(1,"label",46),c(2),m(3,je,2,1,"spk-icon",47),r()()),e&2){let t=s().$implicit;p("inputType",t.formView.name)("formControlName",t.formView.name)("customId","destination-"+t.formGroupName+"-"+t.index+"-"+(t.asHttpOptions?"http":"other")),a(),p("for",u("destination-",t.formGroupName,"-",t.index,"-",t.asHttpOptions?"http":"other")),a(),D(" ",t.formView.shortDescription??t.formView.name," "),a(),d(t.formView.longDescription?3:-1)}}function Je(e,n){if(e&1){let t=S();l(0,"button",63),g("click",function(){T(t);let i=s().$implicit,_=s(2);return C(_.removeFormView(i.formView,0))}),l(1,"spk-icon"),c(2,"x-circle"),r()()}}function Ye(e,n){if(e&1&&(l(0,"div",40),$(1,41),m(2,fe,5,18,"app-file-tree",42)(3,De,5,14,"app-file-tree",43)(4,ke,8,14,"spk-form-field")(5,Ie,8,14,"spk-form-field")(6,ve,2,2)(7,Ge,3,2)(8,Be,4,9,"app-size",44)(9,Ke,7,12,"spk-form-field")(10,He,5,12,"spk-toggle",45)(11,qe,7,10)(12,Qe,4,9,"app-timespan",44),A(),m(13,Je,3,0,"button",31),r()),e&2){let t=n.$implicit;z("single-field",t.formGroupName!=="advanced"),a(),p("formGroupName",t.formGroupName),a(),d(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"||t.formView.type==="DateTime"?12:-1),a(11),d(t.formGroupName==="advanced"?13:-1)}}function Ze(e,n){if(e&1&&($(0,21)(1,35),I(2,_e,1,9,"ng-container",null,y),I(4,de,1,9,"ng-container",null,y),l(6,"app-toggle-card",36),$(7,37),x(8,10),l(9,"spk-menu",30)(10,"button",38),F(11,"spk-icon"),r(),$(12,19),I(13,Fe,3,1,"button",32,y),A(),r(),O(),A(),I(15,Te,1,9,"ng-container",null,y),r(),h(17,Ye,14,5,"ng-template",null,2,M),A()()),e&2){let t=s();a(2),w(t.destinationFormPair().custom),a(2),w(t.destinationFormPair().dynamic),a(2),p("disallowToggle",!0),a(3),p("searchable",!0),a(),p("disabled",t.notSelectedAdvancedFormPair().length===0),a(3),w(t.notSelectedAdvancedFormPair()),a(2),w(t.selectedAdvancedFormPair())}}function tn(e,n){if(e&1){let t=S();l(0,"spk-dialog",64),pt("isOpenChange",function(i){T(t);let _=s();return st(_.targetUrlDialogOpen,i)||(_.targetUrlDialogOpen=i),C(i)}),l(1,"header",65)(2,"h2"),V(3,11),r(),l(4,"spk-alert",66),V(5,12),r()(),l(6,"div",67)(7,"spk-form-field"),F(8,"textarea",68),r()(),l(9,"footer",69)(10,"button",23),g("click",function(){T(t);let i=s();return C(i.closeTargetUrlDialog(!1))}),c(11,"Cancel"),r(),l(12,"button",70),g("click",function(){T(t);let i=s();return C(i.closeTargetUrlDialog(!0))}),x(13,13),F(14,"spk-icon"),O(),r()()()}if(e&2){let t=s();lt("isOpen",t.targetUrlDialogOpen),p("options",mt(3,ne)),a(8),p("formControl",t.targetUrlCtrl)}}var W=new Bt,kn=(e={destinations:[]})=>W.group({destinations:W.array(e.destinations)}),Rn=({key:e,customGroup:n,dynamicGroup:t,advancedGroup:o})=>W.group({destinationType:W.control(e),custom:n,dynamic:t,advanced:o}),Y=class e{#i=N(Ct);#o=N(Tt);#t=N(J);#a=N(St);#r=N(jt);#e=N(Qt);injector=N(tt);formRef=Ft.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);successfulTest=R(!1);destinationTypeOptionsInFocus=R(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=R(Wt.map(n=>({key:n.customKey??n.key,customKey:n.customKey??null,displayName:n.displayName,description:n.description})));destinationTypeOptionsFocused=K(()=>{let n=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return n.map(o=>t.find(i=>i.key===o))});destinationTypeOptionsNotFocused=K(()=>{let n=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(o=>!n.includes(o.key))});targetUrlEffect=dt(()=>{if(this.destinationFormSignal(),this.destinationForm.valid){let n=this.#t.getCurrentTargetUrl();this.#e.updateTargetUrl(n[0])}else this.#e.updateTargetUrl(null)});ngOnInit(){let n=this.#e.destinationTargetUrl();n&&this.#t.updateFieldsFromTargetUrl(n)}getFormFieldValue(n,t,o){return((this.destinationForm.controls.destinations.controls?.[n]).controls?.[t]).controls[o].value}addDestinationFormGroup(n){this.#t.addDestinationFormGroup(n)}addAdvancedFormPair(n,t){this.#t.addAdvancedFormPair(n,t)}removeFormView(n,t){this.#t.removeAdvancedFormPair(n,t)}targetUrlCtrl=new At;targetUrlInitial=R(null);targetUrlDialogOpen=R(!1);openTargetUrlDialog(){let t=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(n=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,o=this.targetUrlInitial();!n||t===o||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(n=0){let o=this.#t.getCurrentTargetUrl()[n];o&&this.#r.testDestination(o,n,!1).subscribe({next:i=>{if(i.action==="success"){i.anyFilesFound===!1&&this.#a.open(ht,{data:{title:$localize`Empty destination`,message:$localize`The remote destination does not contain any files.
4
- Check that the details are correct and that the destination is not empty.`,confirmText:$localize`OK`,cancelText:void 0}}),this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3);return}if(i.action==="generic-error"){this.successfulTest.set(!1);return}i.action==="trust-cert"&&this.#t.addOrUpdateAdvancedFormPairByName("accept-specified-ssl-hash",i.destinationIndex,i.certData),i.action==="approve-host-key"&&this.#t.addOrUpdateAdvancedFormPairByName("ssh-fingerprint",i.destinationIndex,i.reportedHostKey),i.testAgain&&this.testDestination(i.destinationIndex)}})}mapToTargetUrl(n){return Kt(n.value)}removeDestinationFormGroup(n){this.destinationForm.controls.destinations.removeAt(n)}displayFn(n){let t=this.destinationOptions().find(o=>o.Key===n);return t?`${t.DisplayName}`:""}goBack(){this.#e.exit()}next(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent})}#l=R(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#n=R(!1);#s=R(null);keyCreation(){}oauthStartTokenCreation(n){let t=n=="pcloud"?this.#t.oauthServiceLinkNew:this.#t.oauthServiceLink;this.#n.set(!0);let o=450,i=600,_=t+"?type="+n+"&token="+this.#l(),f=screen.width/2-o/2,b=screen.height/2-i/2,G=window.open(_,"_blank","height="+i+",width="+o+",menubar=0,status=0,titlebar=0,toolbar=0,left="+f+",top="+b);return window.addEventListener("message",P=>{let E=P.data.startsWith("authid:"),Jt=E?P.data.replace("authid:",""):null;E&&(this.#s.set(Jt),this.#n.set(!1),G?.close())}),!1}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=et({type:e,selectors:[["app-restore-destination"]],viewQuery:function(t,o){t&1&&ot(o.formRef,Yt,5),t&2&&at()},features:[_t([J])],decls:24,vars:6,consts:()=>{let n;n=$localize` Backup placement ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,n=H(n);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let o;o=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let _;_=$localize`Other destinations`;let f;f=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,f=H(f);let b;b=$localize`Edit target URL`;let G;G=$localize` Be careful, this will overwrite everything you have in your destination. `;let P;return P=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["option",""],["fieldTemplate",""],["enumOptionTemplate",""],["optionTemplate",""],n,t,o,i,_,f,b,G,P,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["spk-button","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","hideShortcuts","showHiddenNodes","selectFiles"],[3,"hideShortcuts","startingPath"],[3,"inputType","formControlName","customId"],[1,"primary","raised"],[3,"for"],[1,"primary",3,"spkTooltip"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[1,"indeterminate","primary"],["label","key","value","value",3,"options","asFreeText","inlineSearch","optionTemplate"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,o){if(t&1){let i=S();l(0,"form",14,0),g("submit",function(){return T(i),C(o.next())}),l(2,"header")(3,"h3",15),x(4,5),l(5,"div",16),m(6,ae,4,3,"button",17),l(7,"spk-menu")(8,"button",18),F(9,"spk-icon"),r(),$(10,19),l(11,"button",20),g("click",function(){return T(i),C(o.openTargetUrlDialog())}),F(12,"spk-icon"),r(),A(),r()(),O(),r(),m(13,re,3,0,"p"),r(),m(14,pe,9,1),m(15,Ze,19,3,"ng-container",21),l(16,"div",22)(17,"button",23),g("click",function(){return T(i),C(o.goBack())}),x(18,6),F(19,"spk-icon"),O(),r(),l(20,"button",24),x(21,7),F(22,"spk-icon"),O(),r()()(),m(23,tn,15,4,"spk-dialog",25)}if(t&2){let i;p("formGroup",o.destinationForm),a(6),d(o.destinationCount()>0?6:-1),a(7),d(o.destinationCount()>0?13:-1),a(),d(o.destinationCount()===0?14:-1),a(),d(!((i=o.destinationFormSignal())==null||i.destinations==null)&&i.destinations.length?15:-1),a(8),d(o.targetUrlDialogOpen()?23:-1)}},dependencies:[Ut,vt,It,Pt,yt,wt,$t,Vt,Mt,Lt,bt,Gt,ut,Et,xt,ft,Rt,Dt,gt,kt,Ot,Nt,Xt,zt,qt,Ht],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-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}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.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-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{kn as createDestinationForm,Rn as createDestinationFormGroup,Y as default};
package/chunk-RVLLX2SW.js DELETED
@@ -1 +0,0 @@
1
- import{h as a,i as b}from"./chunk-3IRKJXHE.js";import"./chunk-KA4H3PM5.js";import"./chunk-FLMFEFKM.js";import"./chunk-WIJ3HW7I.js";import"./chunk-N334RUEQ.js";import"./chunk-K5AQUIEE.js";import"./chunk-WY2KPAVB.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import"./chunk-3KIPRGE2.js";import"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
package/chunk-RZWJA6W3.js DELETED
@@ -1,3 +0,0 @@
1
- import{a as Ee}from"./chunk-TUOSYDUU.js";import{a as fe}from"./chunk-Q3ILJYED.js";import{l as P}from"./chunk-3IRKJXHE.js";import"./chunk-KA4H3PM5.js";import"./chunk-FLMFEFKM.js";import{a as Se}from"./chunk-WIJ3HW7I.js";import"./chunk-N334RUEQ.js";import"./chunk-K5AQUIEE.js";import{a as T}from"./chunk-WY2KPAVB.js";import{a as le}from"./chunk-4D2NUH5S.js";import"./chunk-XD26KCAE.js";import"./chunk-KQAO2YHR.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import"./chunk-JWFYA3TO.js";import{c as se,e as me,f as de,i as pe,m as _e,n as ce,o as ue,q as Ce,r as ge,s as Me,t as Ne}from"./chunk-3KIPRGE2.js";import"./chunk-UVLJAD66.js";import{b as q,d as Z,e as J}from"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import{a as Q,e as Y,g as ee,k as te,l as ne,p as oe,t as ie}from"./chunk-MHALSLG3.js";import{g as ae,h as re}from"./chunk-FWVOVJCG.js";import"./chunk-KV7SEZ24.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-LQ2PCH6Q.js";import{Bb as v,Hb as M,Hc as H,Ib as N,Jb as c,Kb as G,Lb as x,Nb as U,Oa as m,Ob as f,X as _,_a as $,_b as K,ba as S,ca as E,gc as w,hc as X,ic as z,la as F,nc as V,pb as h,qb as b,qc as W,rb as B,rc as j,sb as R,tb as y,ub as C,vb as a,wb as o,xb as r,yb as A,zb as O}from"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";var Fe=()=>[];function Ae(l,t){l&1&&r(0,"spk-progress-bar",12)}function Oe(l,t){if(l&1&&(a(0,"spk-form-field"),r(1,"input",32),o()),l&2){let e=t.$implicit,s=t.$index;m(),C("id",V("filter-",s))("formControl",e)}}function Te(l,t){if(l&1){let e=v();a(0,"form",13)(1,"spk-select",14)(2,"label",15),c(3,1),o(),r(4,"input",16),o(),a(5,"spk-form-field")(6,"label",17),c(7,2),o(),r(8,"textarea",18),o(),a(9,"spk-form-field")(10,"label",19),c(11,3),o(),r(12,"textarea",20),o()(),a(13,"spk-divider"),c(14,4),o(),a(15,"form",13)(16,"spk-form-field")(17,"label",21),c(18,5),o(),r(19,"input",22),o(),a(20,"spk-form-field")(21,"label",23),c(22,6),o(),r(23,"input",24),o(),a(24,"app-toggle-card",25),A(25,26),c(26,7),O(),A(27,27),R(28,Oe,2,3,"spk-form-field",null,B),O(),o()(),a(30,"p"),M(31,8),r(32,"a",28),N(),o(),a(33,"app-options-list",29),z("optionsChange",function(i){S(e);let u=f();return X(u.settings,i)||(u.settings=i),E(i)}),o(),a(34,"div",30)(35,"button",31),U("click",function(){S(e);let i=f();return E(i.submit())}),M(36,9),r(37,"spk-icon"),N(),o()()}if(l&2){let e=f();C("formGroup",e.baseCmdForm),m(),C("options",e.commandOptions()??j(10,Fe))("inlineSearch",!0),m(14),C("formGroup",e.standardFields),m(9),C("disallowToggle",!0),m(4),y(e.standardFields.controls.filters.controls),m(5),w("options",e.settings),C("hasFreeTextSettings",!0),m(2),K("loader",e.isSubmitting()),m(2),G(e.baseCmdForm.value.command),x(36)}}var d=new ge,Pe=["Bytes","KB","MB","GB","TB","PB"],I=class l{#e=_(P);#t=_(re);#n=_(Z);#o=_(q);#i=_(ae);#a=_(le);#s=_(Y);#r=T(this.#o.params);commandOptions=T(this.#i.getApiV1Commandline());sizeOptions=F(Pe);isSubmitting=F(!1);optionsFields=this.#e.optionsFields;standardFields=d.group({"backup-id":d.control(""),"backup-name":d.control(""),dbpath:d.control(""),filters:d.array([])});baseCmdForm=d.group({command:d.control("backup"),targetUrl:d.control(""),arguments:d.control("")});finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;settings=this.#e.settings;#m=H(()=>{let t=this.#r()?.id;this.#e.backupId.set(t),this.getBackup(t)});getBackup(t){this.#t.getApiV1BackupById({id:t}).subscribe({next:e=>{this.#e.mapScheduleToForm(e.Schedule??null),e.Backup&&(this.mapStandardFieldsToForm(e.Backup),this.mapBaseCmdToForm(e.Backup),this.#e.mapOptionsToForms(e.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(t){this.standardFields.patchValue({dbpath:t.DBPath,"backup-id":t.ID,"backup-name":t.Name}),t.Filters&&t.Filters.length&&t.Filters.map(e=>{this.standardFields.controls.filters.push(d.control(`${e.Include?"":"-"}${e.Expression}`))})}submit(){this.#a.resumeDialogCheck(()=>this.#l())}#l(){this.isSubmitting.set(!0);let t=this.baseCmdForm.value,e=t.targetUrl??"",s=t.arguments?.split(`
2
- `).filter(n=>n.length>0)??[],i=this.standardFields.value,u=i.filters??[],g=[t.command,e,...s,`--backup-name=${i["backup-name"]}`,`--dbpath=${i.dbpath}`,`--backup-id=${i["backup-id"]}`,...u.filter(n=>n).map(n=>n.startsWith("-")?`--exclude=${n?.slice(1)}`:`--include=${n}`),...this.#e.mapFormsToSettings(["backup-id","backup-name","dbpath"]).map(n=>n.Name.startsWith("--")?`${n.Name}=${n.Value}`:`--${n.Name}=${n.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:g}).subscribe(n=>{n.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",n.ID])})}mapBaseCmdToForm(t){let e=t.TargetURL??null;e&&this.baseCmdForm.patchValue({targetUrl:e??"",arguments:t.Sources?.join(`
3
- `)??""})}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=$({type:l,selectors:[["app-commandline"]],features:[W([P])],decls:8,vars:1,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let e;e=$localize`Command`;let s;s=$localize`TargetUrl`;let i;i=$localize`Commandline Arguments`;let u;u=$localize`Advanced options`;let g;g=$localize`Backup ID`;let n;n=$localize`Backup Name`;let k;k=$localize`Filters`;let D;D=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#32\uFFFD"}:START_LINK:Read more${"\uFFFD/#32\uFFFD"}:CLOSE_LINK:`;let L;return L=$localize`${"\uFFFD#37\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#37\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[t,e,s,i,u,g,n,k,D,L,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],["href","#",1,"spk-primary"],[3,"optionsChange","options","hasFreeTextSettings"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"]]},template:function(e,s){e&1&&(r(0,"app-status-bar"),a(1,"section")(2,"div",10)(3,"button",11),M(4,0),r(5,"spk-icon"),N(),o()(),h(6,Ae,1,0,"spk-progress-bar",12)(7,Te,38,11),o()),e&2&&(m(6),b(s.finishedLoading()?7:6))},dependencies:[Me,pe,se,me,de,fe,Ee,Se,Ne,_e,ce,Ce,ue,J,ne,ee,te,ie,oe,Q],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}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{I as default};
package/chunk-TOP2X7ZJ.js DELETED
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-EKZRKTLM.js";import"./chunk-FLMFEFKM.js";import"./chunk-WIJ3HW7I.js";import"./chunk-WY2KPAVB.js";import"./chunk-3PYBMCOB.js";import"./chunk-FPLBURO5.js";import"./chunk-3KIPRGE2.js";import"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreOptionsForm,b as default};
package/chunk-UFZFKKK7.js DELETED
@@ -1 +0,0 @@
1
- import{e as a,f as b,g as c}from"./chunk-3IRKJXHE.js";import"./chunk-KA4H3PM5.js";import"./chunk-FLMFEFKM.js";import"./chunk-WIJ3HW7I.js";import"./chunk-N334RUEQ.js";import"./chunk-K5AQUIEE.js";import"./chunk-WY2KPAVB.js";import"./chunk-3PYBMCOB.js";import"./chunk-RHW5QVAY.js";import"./chunk-FPLBURO5.js";import"./chunk-3KIPRGE2.js";import"./chunk-7LEXBIXG.js";import"./chunk-P4ZYFRD3.js";import"./chunk-MHALSLG3.js";import"./chunk-FWVOVJCG.js";import"./chunk-VKD4Y3YQ.js";import"./chunk-WIDMAJIO.js";import"./chunk-K6EZTPNQ.js";import"./chunk-EUDKD2JW.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};