@duplicati/ngclient 0.0.81 → 0.0.83

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 (86) hide show
  1. package/assets/spk.woff2 +0 -0
  2. package/{chunk-LPGLGZ3U.js → chunk-2AXD35RA.js} +1 -1
  3. package/{chunk-MWJ2FIZF.js → chunk-2CCKM7DM.js} +1 -1
  4. package/{chunk-ZGTFPEDW.js → chunk-2ICYPGI3.js} +1 -1
  5. package/{chunk-7KWOTSVE.js → chunk-3IMBZVOU.js} +1 -1
  6. package/chunk-53YXMY4O.js +1 -0
  7. package/{chunk-BM4SNLLS.js → chunk-5G5KVDTS.js} +1 -1
  8. package/{chunk-SRMNNICE.js → chunk-6A6LDFVN.js} +1 -1
  9. package/{chunk-TQE7OBBP.js → chunk-6FEY72H5.js} +1 -1
  10. package/{chunk-PTG2C2YJ.js → chunk-6PGJBRJV.js} +1 -1
  11. package/{chunk-Z5FVTSXP.js → chunk-7AU6BKAH.js} +1 -1
  12. package/{chunk-KPP5HW6S.js → chunk-7GWCXQET.js} +2 -2
  13. package/{chunk-FOHDLUCC.js → chunk-7KVBF3B3.js} +1 -1
  14. package/{chunk-C46BOI6T.js → chunk-APZSWRAC.js} +1 -1
  15. package/{chunk-HX66OULG.js → chunk-BDT56US4.js} +1 -1
  16. package/{chunk-RABUX7PS.js → chunk-BNJ6YIRT.js} +1 -1
  17. package/chunk-CNKMCZR3.js +1 -0
  18. package/{chunk-NVTD7IP4.js → chunk-CSMWKX44.js} +1 -1
  19. package/{chunk-CZ3SCRNE.js → chunk-DFGJKS5P.js} +1 -1
  20. package/chunk-DHMWOZZD.js +1 -0
  21. package/{chunk-2U3FDBUK.js → chunk-DNB4ABNJ.js} +1 -1
  22. package/{chunk-YB5LG22R.js → chunk-EJVKADW2.js} +1 -1
  23. package/chunk-EPS56WMH.js +1 -0
  24. package/{chunk-K5WD7D64.js → chunk-EWNWUTPO.js} +1 -1
  25. package/{chunk-XFRVNXF6.js → chunk-FUZ2WCNJ.js} +1 -1
  26. package/chunk-GGDGKIVD.js +1 -0
  27. package/{chunk-GTXOAJP6.js → chunk-H2JFCXJJ.js} +1 -1
  28. package/chunk-I52AX5MH.js +1 -0
  29. package/{chunk-QDAWQNBQ.js → chunk-I7CCITLM.js} +1 -1
  30. package/{chunk-NHJBFOCX.js → chunk-IAKOIFIN.js} +1 -1
  31. package/{chunk-TQIMA3N7.js → chunk-IBBJHMWR.js} +1 -1
  32. package/{chunk-NRGTIGVX.js → chunk-INATF4ZS.js} +1 -1
  33. package/{chunk-YUZINGR7.js → chunk-JZVJHJKF.js} +1 -1
  34. package/{chunk-JMQCQ5DN.js → chunk-KEKOXSB2.js} +1 -1
  35. package/chunk-KSYEGP4X.js +1 -0
  36. package/{chunk-6SIZVSDW.js → chunk-MKHNYYLL.js} +1 -1
  37. package/{chunk-UBEY6W6N.js → chunk-MR65TJSP.js} +1 -1
  38. package/{chunk-LFQXDL42.js → chunk-MWZZ2BGA.js} +1 -1
  39. package/chunk-NC3TCAYJ.js +1 -0
  40. package/{chunk-EGT5S7A4.js → chunk-NE337TA6.js} +1 -1
  41. package/chunk-NGJEATCE.js +1 -0
  42. package/{chunk-ZSCSUQR3.js → chunk-O4IO27RV.js} +1 -1
  43. package/{chunk-CS4VRCLU.js → chunk-OVUQHKG5.js} +1 -1
  44. package/{chunk-KAGR24YW.js → chunk-PFD5SPQI.js} +1 -1
  45. package/chunk-PHK42XHX.js +1 -0
  46. package/chunk-PLMZCRFV.js +1 -0
  47. package/{chunk-4OE5GJEY.js → chunk-QD57YWCQ.js} +1 -1
  48. package/{chunk-ZVCXBMGJ.js → chunk-TIBSEND5.js} +1 -1
  49. package/{chunk-ZRPJ3QZT.js → chunk-TODNKYG6.js} +1 -1
  50. package/{chunk-QFULFMSU.js → chunk-U27FSIPV.js} +1 -1
  51. package/{chunk-XS2FYREZ.js → chunk-U5XRPZBE.js} +1 -1
  52. package/{chunk-2K3CR66C.js → chunk-UFBCQOH4.js} +1 -1
  53. package/{chunk-ZOMDTRAX.js → chunk-UKAYBL4H.js} +1 -1
  54. package/chunk-URCWYHPG.js +1 -0
  55. package/chunk-UUHR4SZC.js +1 -0
  56. package/chunk-UVF6BCW2.js +1 -0
  57. package/{chunk-MHZPUJQF.js → chunk-UVM5AF3P.js} +1 -1
  58. package/{chunk-IN72UOWN.js → chunk-VIQMN6MJ.js} +1 -1
  59. package/{chunk-JOBMLOGZ.js → chunk-VWJ5QJXJ.js} +1 -1
  60. package/{chunk-N4ZZA3JQ.js → chunk-WJOMCF4H.js} +21 -21
  61. package/{chunk-7WKWA7QK.js → chunk-WXWYY4O2.js} +1 -1
  62. package/{chunk-76NKH7M2.js → chunk-XDOTOR6Y.js} +1 -1
  63. package/{chunk-TFFQHLQK.js → chunk-YF6FW4JS.js} +1 -1
  64. package/{chunk-US4WRUST.js → chunk-YTBB644O.js} +1 -1
  65. package/index.html +2 -2
  66. package/locale/angular/en-GB.mjs +17 -0
  67. package/locale/angular/extra/en-GB.mjs +11 -0
  68. package/locale/dayjs/en-gb.js +1 -0
  69. package/{main-WVQESNLR.js → main-4O3FFDTG.js} +1 -1
  70. package/package.json +1 -1
  71. package/styles-LPOGBXRK.css +1 -0
  72. package/chunk-233ZLAAE.js +0 -1
  73. package/chunk-4YLHRMHU.js +0 -1
  74. package/chunk-7ZJVPVCQ.js +0 -1
  75. package/chunk-CD2B55TH.js +0 -1
  76. package/chunk-FZNTP67Z.js +0 -1
  77. package/chunk-HSEKUB7W.js +0 -1
  78. package/chunk-IZCX3KB3.js +0 -1
  79. package/chunk-JZFEEATO.js +0 -1
  80. package/chunk-S7IEXZZK.js +0 -1
  81. package/chunk-TL325ZMY.js +0 -1
  82. package/chunk-WFFJ2OJB.js +0 -1
  83. package/chunk-XCKJXWMS.js +0 -1
  84. package/chunk-XLU5TCBE.js +0 -1
  85. package/chunk-XMGHFJW7.js +0 -1
  86. package/styles-KC6U2UBP.css +0 -1
@@ -0,0 +1 @@
1
+ import{c as a,d as b,e as c}from"./chunk-BNJ6YIRT.js";import"./chunk-INATF4ZS.js";import"./chunk-NE337TA6.js";import"./chunk-DNHLTHLR.js";import"./chunk-UVM5AF3P.js";import"./chunk-6PGJBRJV.js";import"./chunk-FUZ2WCNJ.js";import"./chunk-MWZZ2BGA.js";import"./chunk-6FEY72H5.js";import"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.js";import"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
@@ -1 +1 @@
1
- import{Ca as j,Ga as le,X as ae,a as k,b as se,c as ie,e as p,za as ce}from"./chunk-JOBMLOGZ.js";import{Ca as X,Da as w,Ea as E,Fa as S,Ga as K,Ha as q,Ia as J,Ja as Q,Jc as oe,Ka as ee,La as te,Ma as ne,Na as g,P as y,S as f,Sa as M,Ua as re,V as L,X as c,_ as G,ma as C,na as H,va as Y,wa as N,xa as W,ya as b,za as P}from"./chunk-QDAWQNBQ.js";import{a as I,b as z}from"./chunk-C6Q5SG76.js";var x=class extends ie{supportsDOMEvents=!0},B=class r extends x{static makeCurrent(){se(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Se();return e==null?null:we(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ae(document.cookie,n)}},T=null;function Se(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function we(r){return new URL(r,document.baseURI).pathname}var Me=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),F=new L(""),me=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c(F),c(C))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),_=class{_doc;constructor(n){this._doc=n}manager},A="ng-app-id";function de(r){for(let n of r)n.remove()}function ue(r,n){let e=n.createElement("style");return e.textContent=r,e}function Te(r,n,e,t){let o=r.head?.querySelectorAll(`style[${A}="${n}"],link[${A}="${n}"]`);if(o)for(let s of o)s.removeAttribute(A),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function $(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ge=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=j(s),Te(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ue);t?.forEach(o=>this.addUsage(o,this.external,$))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(de(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])de(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ue(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,$(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(A,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(p),c(N),c(P,8),c(b))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var ve="%COMP%",De=`_nghost-${ve}`,Re=`_ngcontent-${ve}`,Ce=!0,be=new L("",{providedIn:"root",factory:()=>Ce});function Ae(r){return Re.replace(Z,r)}function _e(r){return De.replace(Z,r)}function ye(r,n){return n.map(e=>e.replace(Z,r))}var fe=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,s,i,a,d,u=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=d,this.nonce=u,this.tracingService=l,this.platformIsServer=j(a),this.defaultRenderer=new D(e,i,d,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===w.ShadowDom&&(t=z(I({},t),{encapsulation:w.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof O?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,a=this.ngZone,d=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,h=this.tracingService;switch(t.encapsulation){case w.Emulated:s=new O(d,u,t,this.appId,l,i,a,m,h);break;case w.ShadowDom:return new V(d,u,e,t,i,a,this.nonce,m,h);default:s=new R(d,u,t,l,i,a,m,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(c(me),c(ge),c(N),c(be),c(p),c(b),c(C),c(P),c(X,8))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),D=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(U[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(pe(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(pe(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=U[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=U[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=k().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let s=this.decoratePreventDefault(t);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function pe(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var V=class extends D{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,d,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=ye(o.id,l);for(let h of l){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=h,this.shadowRoot.appendChild(v)}let m=o.getExternalStyles?.();if(m)for(let h of m){let v=$(h,s);a&&v.setAttribute("nonce",a),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,a,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=t.styles;this.styles=u?ye(u,l):l,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},O=class extends R{contentAttr;hostAttr;constructor(n,e,t,o,s,i,a,d,u){let l=o+"-"+t.id;super(n,e,t,s,i,a,d,u,l),this.contentAttr=Ae(l),this.hostAttr=_e(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Oe=(()=>{class r extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),he=["alt","control","meta","shift"],Ie={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},He=(()=>{class r extends _{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),a=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),he.forEach(u=>{let l=t.indexOf(u);l>-1&&(t.splice(l,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let o=Ie[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),he.forEach(i=>{if(i!==o){let a=Le[i];a(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();function St(r,n){return oe(I({rootComponent:r},Ne(n)))}function Ne(r){return{appProviders:[...xe,...r?.providers??[]],platformProviders:Ue}}function Pe(){B.makeCurrent()}function ke(){return new H}function je(){return Y(document),document}var Ue=[{provide:b,useValue:ce},{provide:W,useValue:Pe,multi:!0},{provide:p,useFactory:je,deps:[]}];var xe=[{provide:G,useValue:"root"},{provide:H,useFactory:ke,deps:[]},{provide:F,useClass:Oe,multi:!0,deps:[p]},{provide:F,useClass:He,multi:!0,deps:[p]},fe,ge,me,{provide:re,useExisting:fe},{provide:le,useClass:Me,deps:[]},[]];var wt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Be=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=c(Fe),o},providedIn:"root"})}return r})(),Fe=(()=>{class r extends Be{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return S(t,"HTML")?E(t):ne(this._doc,String(t)).toString();case g.STYLE:return S(t,"Style")?E(t):t;case g.SCRIPT:if(S(t,"Script"))return E(t);throw new y(5200,!1);case g.URL:return S(t,"URL")?E(t):te(String(t));case g.RESOURCE_URL:if(S(t,"ResourceURL"))return E(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return K(e)}bypassSecurityTrustStyle(e){return q(e)}bypassSecurityTrustScript(e){return J(e)}bypassSecurityTrustUrl(e){return Q(e)}bypassSecurityTrustResourceUrl(e){return ee(e)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{St as a,wt as b,Be as c};
1
+ import{Ca as j,Ga as le,X as ae,a as k,b as se,c as ie,e as p,za as ce}from"./chunk-VWJ5QJXJ.js";import{Ca as X,Da as w,Ea as E,Fa as S,Ga as K,Ha as q,Ia as J,Ja as Q,Jc as oe,Ka as ee,La as te,Ma as ne,Na as g,P as y,S as f,Sa as M,Ua as re,V as L,X as c,_ as G,ma as C,na as H,va as Y,wa as N,xa as W,ya as b,za as P}from"./chunk-I7CCITLM.js";import{a as I,b as z}from"./chunk-C6Q5SG76.js";var x=class extends ie{supportsDOMEvents=!0},B=class r extends x{static makeCurrent(){se(new r)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=Se();return e==null?null:we(e)}resetBaseElement(){T=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return ae(document.cookie,n)}},T=null;function Se(){return T=T||document.querySelector("base"),T?T.getAttribute("href"):null}function we(r){return new URL(r,document.baseURI).pathname}var Me=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),F=new L(""),me=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,s){return this._findPluginFor(t).addEventListener(e,t,o,s)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(s=>s.supports(e)),!t)throw new y(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||r)(c(F),c(C))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),_=class{_doc;constructor(n){this._doc=n}manager},A="ng-app-id";function de(r){for(let n of r)n.remove()}function ue(r,n){let e=n.createElement("style");return e.textContent=r,e}function Te(r,n,e,t){let o=r.head?.querySelectorAll(`style[${A}="${n}"],link[${A}="${n}"]`);if(o)for(let s of o)s.removeAttribute(A),s instanceof HTMLLinkElement?t.set(s.href.slice(s.href.lastIndexOf("/")+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]})}function $(r,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",r),e}var ge=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,s={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=j(s),Te(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,ue);t?.forEach(o=>this.addUsage(o,this.external,$))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let s=t.get(e);s?s.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(i=>this.addElement(i,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(de(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])de(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,ue(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,$(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(A,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||r)(c(p),c(N),c(P,8),c(b))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Z=/%COMP%/g;var ve="%COMP%",De=`_nghost-${ve}`,Re=`_ngcontent-${ve}`,Ce=!0,be=new L("",{providedIn:"root",factory:()=>Ce});function Ae(r){return Re.replace(Z,r)}function _e(r){return De.replace(Z,r)}function ye(r,n){return n.map(e=>e.replace(Z,r))}var fe=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,s,i,a,d,u=null,l=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=s,this.doc=i,this.platformId=a,this.ngZone=d,this.nonce=u,this.tracingService=l,this.platformIsServer=j(a),this.defaultRenderer=new D(e,i,d,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===w.ShadowDom&&(t=z(I({},t),{encapsulation:w.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof O?o.applyToHost(e):o instanceof R&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,s=o.get(t.id);if(!s){let i=this.doc,a=this.ngZone,d=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,m=this.platformIsServer,h=this.tracingService;switch(t.encapsulation){case w.Emulated:s=new O(d,u,t,this.appId,l,i,a,m,h);break;case w.ShadowDom:return new V(d,u,e,t,i,a,this.nonce,m,h);default:s=new R(d,u,t,l,i,a,m,h);break}o.set(t.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||r)(c(me),c(ge),c(N),c(be),c(p),c(b),c(C),c(P),c(X,8))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),D=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,s){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=s}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(U[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(pe(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(pe(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new y(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let s=U[o];s?n.setAttributeNS(s,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=U[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(M.DashCase|M.Important)?n.style.setProperty(e,t,o&M.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&M.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=k().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);let s=this.decoratePreventDefault(t);return this.tracingService!==null&&this.tracingService.wrapEventListener&&(s=this.tracingService.wrapEventListener(n,e,s)),this.eventManager.addEventListener(n,e,s,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function pe(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var V=class extends D{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,d,u),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=ye(o.id,l);for(let h of l){let v=document.createElement("style");a&&v.setAttribute("nonce",a),v.textContent=h,this.shadowRoot.appendChild(v)}let m=o.getExternalStyles?.();if(m)for(let h of m){let v=$(h,s);a&&v.setAttribute("nonce",a),this.shadowRoot.appendChild(v)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},R=class extends D{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,s,i,a,d,u){super(n,s,i,a,d),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=t.styles;this.styles=u?ye(u,l):l,this.styleUrls=t.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},O=class extends R{contentAttr;hostAttr;constructor(n,e,t,o,s,i,a,d,u){let l=o+"-"+t.id;super(n,e,t,s,i,a,d,u,l),this.contentAttr=Ae(l),this.hostAttr=_e(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}},Oe=(()=>{class r extends _{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,s){return e.addEventListener(t,o,s),()=>this.removeEventListener(e,t,o,s)}removeEventListener(e,t,o,s){return e.removeEventListener(t,o,s)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})(),he=["alt","control","meta","shift"],Ie={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Le={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},He=(()=>{class r extends _{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,t,o,s){let i=r.parseEventName(t),a=r.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>k().onAndCancel(e,i.domEventName,a,s))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let s=r._normalizeKey(t.pop()),i="",a=t.indexOf("code");if(a>-1&&(t.splice(a,1),i="code."),he.forEach(u=>{let l=t.indexOf(u);l>-1&&(t.splice(l,1),i+=u+".")}),i+=s,t.length!=0||s.length===0)return null;let d={};return d.domEventName=o,d.fullKey=i,d}static matchEventFullKeyCode(e,t){let o=Ie[e.key]||e.key,s="";return t.indexOf("code.")>-1&&(o=e.code,s="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),he.forEach(i=>{if(i!==o){let a=Le[i];a(e)&&(s+=i+".")}}),s+=o,s===t)}static eventCallback(e,t,o){return s=>{r.matchEventFullKeyCode(s,e)&&o.runGuarded(()=>t(s))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac})}return r})();function St(r,n){return oe(I({rootComponent:r},Ne(n)))}function Ne(r){return{appProviders:[...xe,...r?.providers??[]],platformProviders:Ue}}function Pe(){B.makeCurrent()}function ke(){return new H}function je(){return Y(document),document}var Ue=[{provide:b,useValue:ce},{provide:W,useValue:Pe,multi:!0},{provide:p,useFactory:je,deps:[]}];var xe=[{provide:G,useValue:"root"},{provide:H,useFactory:ke,deps:[]},{provide:F,useClass:Oe,multi:!0,deps:[p]},{provide:F,useClass:He,multi:!0,deps:[p]},fe,ge,me,{provide:re,useExisting:fe},{provide:le,useClass:Me,deps:[]},[]];var wt=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Be=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=f({token:r,factory:function(t){let o=null;return t?o=new(t||r):o=c(Fe),o},providedIn:"root"})}return r})(),Fe=(()=>{class r extends Be{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case g.NONE:return t;case g.HTML:return S(t,"HTML")?E(t):ne(this._doc,String(t)).toString();case g.STYLE:return S(t,"Style")?E(t):t;case g.SCRIPT:if(S(t,"Script"))return E(t);throw new y(5200,!1);case g.URL:return S(t,"URL")?E(t):te(String(t));case g.RESOURCE_URL:if(S(t,"ResourceURL"))return E(t);throw new y(5201,!1);default:throw new y(5202,!1)}}bypassSecurityTrustHtml(e){return K(e)}bypassSecurityTrustStyle(e){return q(e)}bypassSecurityTrustScript(e){return J(e)}bypassSecurityTrustUrl(e){return Q(e)}bypassSecurityTrustResourceUrl(e){return ee(e)}static \u0275fac=function(t){return new(t||r)(c(p))};static \u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();export{St as a,wt as b,Be as c};
@@ -1,2 +1,2 @@
1
- import{b as K}from"./chunk-MHZPUJQF.js";import{b as X}from"./chunk-TQE7OBBP.js";import{a as z,d as J,g as q}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import{Ab as P,Bb as R,Cb as i,Db as a,Eb as g,Ib as u,Ob as A,Oc as W,Pa as E,Pb as D,Qb as y,Ra as l,Ub as S,Vb as f,Y as v,Yb as w,da as d,ea as _,eb as h,hc as c,ic as C,jc as I,kb as k,kc as N,mc as $,nc as B,oc as V,p as T,pc as U,tb as F,tc as G,ua as m,yb as x,zb as M}from"./chunk-QDAWQNBQ.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
1
+ import{b as K}from"./chunk-UVM5AF3P.js";import{b as X}from"./chunk-6FEY72H5.js";import{a as z,d as J,g as q}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import{Ab as P,Bb as R,Cb as i,Db as a,Eb as g,Ib as u,Ob as A,Oc as W,Pa as E,Pb as D,Qb as y,Ra as l,Ub as S,Vb as f,Y as v,Yb as w,da as d,ea as _,eb as h,hc as c,ic as C,jc as I,kb as k,kc as N,mc as $,nc as B,oc as V,p as T,pc as U,tb as F,tc as G,ua as m,yb as x,zb as M}from"./chunk-I7CCITLM.js";import{a as b,b as O}from"./chunk-C6Q5SG76.js";var j=()=>({maxWidth:"700px",width:"100%"});function H(s,t){if(s&1&&(i(0,"a",9)(1,"spk-icon"),c(2,"link"),a()()),s&2){let e=f().$implicit;w("href",e.Url,E)}}function Q(s,t){if(s&1){let e=u();i(0,"div",2)(1,"h4"),c(2),k(3,H,3,1,"a",9),a(),i(4,"p"),c(5),g(6,"br"),i(7,"i"),c(8),a()(),i(9,"div",10)(10,"button",11),S("click",function(){let o=d(e).$implicit,r=f();return _(r.openLicense(o))}),A(11,1),g(12,"spk-icon"),D(),a()()()}if(s&2){let e=t.$implicit;l(2),N(" ",e.Title," - ",e.data==null?null:e.data.license," "),l(),x(e.Url?3:-1),l(2),I(" ",e.data==null?null:e.data.description," "),l(3),C(e.data==null?null:e.data.notes)}}var L=class s{#e=v(X);licenses=K(this.#e.getApiV1Licenses().pipe(T(t=>t.map(e=>O(b({},e),{data:e.Jsondata?JSON.parse(e.Jsondata):null})))));dialogIsOpen=m(!1);dialogLicense=m(null);#t=W(()=>{this.dialogLicense()&&this.dialogIsOpen.set(!0)});openLicense(t){this.dialogLicense.set(t)}closeLicense(){this.dialogIsOpen.set(!1),this.dialogLicense.set(null)}breakIntoLines(t){let e=t.split(`
2
2
  `),n="";for(let o=0;o<e.length;o++)n+=`<li>${e[o]}</li>`;return n}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=h({type:s,selectors:[["app-libraries"]],decls:15,vars:5,consts:()=>{let t;t=$localize`Libraries`;let e;return e=$localize` Details ${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-square-in${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[t,e,[1,"license"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"license-dialog"],["footer",""],["spk-button","","type","button",3,"click"],[3,"href"],[1,"actions"],["spk-button","",3,"click"]]},template:function(e,n){if(e&1){let o=u();i(0,"h3"),y(1,0),a(),P(2,Q,13,5,"div",2,M),i(4,"spk-dialog",3),V("isOpenChange",function(p){return d(o),B(n.dialogIsOpen,p)||(n.dialogIsOpen=p),_(p)}),i(5,"header",4)(6,"h3"),c(7),a()(),i(8,"div",5),U(9),i(10,"div",6),c(11),a()(),i(12,"footer",7)(13,"button",8),S("click",function(){return d(o),_(n.dialogLicense.set(null))}),c(14,"Close"),a()()()}if(e&2){let o,r;l(2),R(n.licenses()),l(2),$("isOpen",n.dialogIsOpen),F("options",G(4,j)),l(3),C((o=n.dialogLicense())==null?null:o.Title);let p=(r=(r=n.dialogLicense())==null?null:r.License)!==null&&r!==void 0?r:"";l(4),I(" ",p," ")}},dependencies:[z,q,J],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}h4[_ngcontent-%COMP%]{font:var(--paragraph-10)}a[_ngcontent-%COMP%]{text-decoration:none}.license[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid var(--base-level-40);display:flex;flex-direction:column;align-items:flex-start;gap:.5rem}.license[_ngcontent-%COMP%]:first-of-type{border-top:1px solid var(--base-level-40)}.license[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;align-items:center}.license-dialog[_ngcontent-%COMP%]{background-color:var(--base-level-10);color:var(--base-level-70);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;max-height:31.25rem;white-space:pre;border:1px solid var(--base-level-40)}"],changeDetection:0})};export{L as default};
@@ -0,0 +1 @@
1
+ import{o as Ae}from"./chunk-BNJ6YIRT.js";import{a as Kt}from"./chunk-INATF4ZS.js";import{a as Qt}from"./chunk-NE337TA6.js";import"./chunk-DNHLTHLR.js";import{a as we,b as te}from"./chunk-UVM5AF3P.js";import{a as Ge}from"./chunk-7GWCXQET.js";import{a as ce}from"./chunk-6PGJBRJV.js";import{a as Ht}from"./chunk-OVUQHKG5.js";import"./chunk-FUZ2WCNJ.js";import{a as bt}from"./chunk-6A6LDFVN.js";import{a as Wt}from"./chunk-IBBJHMWR.js";import"./chunk-7AU6BKAH.js";import"./chunk-7KVBF3B3.js";import"./chunk-3IMBZVOU.js";import"./chunk-UKAYBL4H.js";import{a as Vt,b as j,d as H,e as de,g as me,h as ue,i as Dt,l as Se,m as ge,o as Te,p as fe,q as Ce,r as Ee}from"./chunk-MWZZ2BGA.js";import"./chunk-UFBCQOH4.js";import{b as k}from"./chunk-6FEY72H5.js";import"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.js";import{a as Ne,b as Lt,g as he,i as Xt,k as zt,l as W,n as Bt,o as Ut,p as qt,q as jt,r as Oe,s as Me,x as Pe,y as Ie}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import"./chunk-YTBB644O.js";import{Ab as G,Ac as $t,Bb as x,Cb as s,D as Fe,Db as o,E as w,Eb as E,Fb as le,Gb as _e,Hb as yt,Ib as h,L as b,Mc as U,Nc as kt,Ob as D,Oc as q,Pa as Ot,Pb as L,Qb as p,Ra as r,Rb as Y,S as ae,Sb as ee,Tb as pe,Ub as g,Vb as l,Y as N,Ya as Mt,Yb as F,_b as O,aa as Ct,b as St,ba as Et,c as re,da as m,ea as u,eb as V,ec as Rt,fc as vt,gc as Ft,hc as c,ia as Nt,ic as $,jc as I,k as gt,kb as C,l as Z,mc as X,n as Tt,nc as z,oc as B,p as ft,q as ve,qb as Pt,rb as It,sc as wt,ta as ht,tb as S,tc as At,ua as f,uc as Gt,vb as P,vc as xt,y as J,yb as T,zb as A}from"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";function Zt(i,n,e){!n&&Et(i);let t=n??N(Nt);return e?Ct(t,e):t}function xe(...i){let{normalizedSources:n,hasInitValue:e,operator:t,options:a}=nn(i),_=Zt(xe,a?.injector);return e?te(ve(n).pipe(t),{initialValue:a.initialValue,injector:_}):te(ve(n).pipe(t),{injector:_,requireSync:!0})}function nn(i){if(!i||!i.length||typeof i[0]!="object")throw new TypeError("derivedFrom needs sources");let n=typeof i[1]=="function";if(i.length==3&&!n)throw new TypeError("derivedFrom needs pipeable operator as a second argument");n||i.splice(1,0,St);let[e,t,a]=i,_=!!a&&"initialValue"in a;return{normalizedSources:Object.entries(e).reduce((R,[M,v])=>{if(ht(v))R[M]=we(v,{injector:a?.injector}).pipe(b(kt(v)));else if(Tt(v))R[M]=v.pipe(Fe());else if(typeof v=="function"){let oe=U(v);R[M]=we(oe,{injector:a?.injector}).pipe(b(v()))}else R[M]=gt(v).pipe(Fe());return R},Array.isArray(e)?[]:{}),operator:t,hasInitValue:_,options:a}}var K=class i{#e=N(k);#i=te(this.#e.getApiV1Serversettings());#t=f(void 0);serverSettings=U(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return re(w(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};var on=["formRef"],sn=()=>[import("./chunk-QD57YWCQ.js").then(i=>i.NgTemplateOutlet)],rn=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),an=i=>({$implicit:i});function ln(i,n){if(i&1){let e=h();D(0,3,1),s(1,"button",13,2),g("click",function(){let a=m(e).$implicit,_=l();return u(_.addNewOption(a))}),o(),L()}if(i&2){let e=n.$implicit;r(),Y(e.name),ee(0)}}function _n(i,n){i&1&&yt(0)}function pn(i,n){if(i&1&&C(0,_n,1,0,"ng-container",14),i&2){let e=n.$implicit,t=n.$index;l(2);let a=Ft(15);S("ngTemplateOutlet",a)("ngTemplateOutletContext",Gt(5,an,xt(2,rn,t,e)))}}function cn(i,n){if(i&1&&G(0,pn,1,7,"ng-container",null,A),i&2){let e=l();x(e.selectedOptions())}}function dn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function mn(i,n){if(i&1&&(s(0,"app-file-tree",17)(1,"label",23),c(2),C(3,dn,3,1,"spk-tooltip",24),o(),E(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();S("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function un(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function Sn(i,n){if(i&1&&(s(0,"app-file-tree",18)(1,"label",23),c(2),C(3,un,3,1,"spk-tooltip",24),o(),E(4,"input",25),o()),i&2){let e,t=l().$implicit,a=l();S("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function gn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function Tn(i,n){i&1&&(s(0,"spk-icon",26),c(1,"link"),o())}function fn(i,n){i&1&&(s(0,"spk-icon",26),c(1,"textbox"),o())}function Cn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),C(3,gn,3,1,"spk-tooltip",24),o(),E(4,"input",25),C(5,Tn,2,0,"spk-icon",26)(6,fn,2,0,"spk-icon",26),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),r(),T(t.formView.type==="Path"?5:6)}}function En(i,n){if(i&1){let e=h();s(0,"span",30),g("click",function(){m(e);let a=l(2).$implicit,_=l();return u(_.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function Nn(i,n){i&1&&(s(0,"spk-icon",26),c(1,"password"),o())}function hn(i,n){if(i&1){let e=h();s(0,"spk-icon",31),g("click",function(){m(e);let a=l(2).$implicit;return u(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function On(i,n){if(i&1){let e=h();s(0,"spk-icon",31),g("click",function(){m(e);let a=l(2).$implicit;return u(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function Mn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),o(),E(3,"input",27),C(4,En,2,0,"span",28)(5,Nn,2,0,"spk-icon",26)(6,hn,2,0,"spk-icon",29)(7,On,2,0,"spk-icon",29),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),S("type",t.formView.showPassword?"text":"password"),r(),T(t.oauthField===t.formView.name?4:5),r(2),T(t.formView.showPassword?6:7)}}function Pn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function In(i,n){if(i&1&&(s(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;S("value",e),r(),$(e)}}function yn(i,n){if(i&1&&(s(0,"spk-select")(1,"label",23),c(2),C(3,Pn,3,1,"spk-tooltip",24),o(),E(4,"input",32),G(5,In,2,2,"spk-option",33,A),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name),r(),x(t.formView.options)}}function Rn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function vn(i,n){if(i&1&&(s(0,"spk-option",33),c(1),o()),i&2){let e=n.$implicit;S("value",e),r(),$(e)}}function Fn(i,n){if(i&1&&(s(0,"div",19)(1,"label",23),c(2),C(3,Rn,3,1,"spk-tooltip",24),o(),s(4,"div",34)(5,"spk-form-field"),E(6,"input",35),s(7,"spk-icon",26),c(8,"resize"),o()(),s(9,"spk-select"),E(10,"label")(11,"input",36),G(12,vn,2,2,"spk-option",33,A),o()()()),i&2){let e,t=l().$implicit,a=l();S("formGroupName",t.formView.name),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(3),O("id","destination-",t.formGroupName,"-",t.index,""),r(6),x(a.sizeOptions())}}function wn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function An(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),C(3,wn,3,1,"spk-tooltip",24),o(),E(4,"input",37),s(5,"spk-icon",26),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function Gn(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function xn(i,n){if(i&1&&(s(0,"spk-toggle",20)(1,"label",23),c(2),C(3,Gn,3,1,"spk-tooltip",24),o(),E(4,"input",38),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function $n(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function kn(i,n){i&1&&(s(0,"spk-option",40),c(1,"None"),o()),i&2&&S("value","None")}function bn(i,n){if(i&1&&(s(0,"spk-option",33),c(1),E(2,"spk-checkbox",41),o()),i&2){let e=l().$implicit;S("value",e),r(),I(" ",e," ")}}function Vn(i,n){if(i&1&&C(0,kn,2,1,"spk-option",40)(1,bn,3,2,"spk-option",33),i&2){let e=n.$implicit;T(e==="None"?0:1)}}function Dn(i,n){if(i&1&&(s(0,"spk-select",21)(1,"label",23),c(2),C(3,$n,3,1,"spk-tooltip",24),o(),E(4,"input",39),G(5,Vn,2,1,null,null,A),o()),i&2){let e,t=l().$implicit;S("selectMultiple",!0),r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),F("formControlName",t.formView.name),r(),x(t.formView.options)}}function Ln(i,n){if(i&1&&(s(0,"spk-tooltip",24)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;S("message",e.formView.longDescription)}}function Xn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",23),c(2),C(3,Ln,3,1,"spk-tooltip",24),o(),E(4,"input",25),o()),i&2){let e,t=l().$implicit;r(),O("for","destination-",t.formGroupName,"-",t.index,""),r(),I(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),O("id","destination-",t.formGroupName,"-",t.index,""),F("formControlName",t.formView.name)}}function zn(i,n){if(i&1){let e=h();s(0,"div",15),le(1,16),C(2,mn,5,14,"app-file-tree",17)(3,Sn,5,10,"app-file-tree",18)(4,Cn,7,10,"spk-form-field")(5,Mn,8,11,"spk-form-field")(6,yn,7,9,"spk-select")(7,Fn,14,9,"div",19)(8,An,7,9,"spk-form-field")(9,xn,5,9,"spk-toggle",20)(10,Dn,7,7,"spk-select",21)(11,Xn,5,9,"spk-form-field"),_e(),s(12,"button",22),g("click",function(){let a=m(e).$implicit,_=l();return u(_.removeFormView(a.formView))}),s(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;r(),S("formGroupName",e.formGroupName),r(),T(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var bi=new fe,Bn=["Bytes","KB","MB","GB","TB","PB"],Vi=[{value:"",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],Di=1024*1024*1024*2,Li=1024*1024*5;var ne=class i{#e=N(Ae);#i=N(K);#t=N(k);formRef=Mt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=f(!1);isLoadingOptions=f(!0);sizeOptions=f(Bn);serverSettingsEffect=q(()=>{let n=this.#i.serverSettings();if(n===void 0)return;this.isLoadingOptions.set(!0);let e=this.#e.nonSelectedOptions(),t=Object.entries(n);t.forEach(([a,_],y)=>{if(a.startsWith("--")){let R=a.replace("--",""),M=e.find(v=>v.name===R);M!==void 0?this.addNewOption(M,_):this.addFreeTextOption(R,_)}y===t.length-1&&this.isLoadingOptions.set(!1)})});oauthStartTokenCreation(n){}getFormFieldValue(n,e,t){return this.optionsForm.controls.advancedOptions.controls[t].value}removeFormView(n){let e="--"+n.name;this.#t.patchApiV1Serversettings({requestBody:{[e]:null}}).subscribe({next:t=>{window.location.reload()}})}addNewOption(n,e){this.#e.addOptionToFormGroup(n,e)}addFreeTextOption(n,e){this.#e.addFreeTextOption(n,e,{})}submit(){this.isSubmitting.set(!0);let n=this.optionsForm.value.advancedOptions;if(!n)return;let e=this.#n(n);this.#t.patchApiV1Serversettings({requestBody:e}).pipe(w(()=>this.isSubmitting.set(!1))).subscribe()}#n(n){let e={};for(let t in n)e[`--${t}`]=n[t];return e}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Rt(t.formRef,on,5),e&2&&vt()},features:[wt([Ae])],decls:20,vars:5,consts:()=>{let n;n=$localize` Advanced options ${"\uFFFD#5\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#6\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#7\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#8\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*10:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#6\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*10:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_MENU:`,n=pe(n);let e;return e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `,[["formRef",""],["fieldTemplate",""],["option",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"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"],["type","search",3,"id","formControlName"],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(e,t){if(e&1){let a=h();s(0,"form",5,0),g("submit",function(){return m(a),u(t.submit())}),s(2,"app-toggle-card",6),le(3,7),D(4,3),s(5,"spk-menu")(6,"button",8),E(7,"spk-icon"),o(),le(8,9),G(9,ln,3,1,"button",10,A),_e(),o(),L(),_e(),C(11,cn,2,0),Pt(12,11,sn),o(),C(14,zn,15,2,"ng-template",null,1,$t),s(16,"div",11)(17,"button",12),D(18,4),E(19,"spk-icon"),L(),o()()()}e&2&&(S("formGroup",t.optionsForm),r(2),S("disallowToggle",!0),r(7),x(t.nonSelectedOptions()),r(3),It(!t.isLoadingOptions()),r(5),P("loader",t.isSubmitting()))},dependencies:[Ee,ue,j,Dt,Vt,H,de,Se,Te,ge,Bt,Me,he,Ne,W,Pe,Xt,Oe,Ie,Kt,Qt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.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}.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}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var Q=class i{#e=N(k);#i=N(ce);repeatRegisterTimer=null;state=f("unknown");claimUrl=f(null);registerUrl=f("");status=U(()=>{let n=this.state();return n==="enabled"?"Remote control is enabled but not connected":n==="connected"?"Remote control is connected":n==="registering"?"Registering machine...":n==="registeringfaulted"?"Registration failed":n==="registered"?"Registered, waiting for accept":n==="disabled"?"Remote control is configured but not enabled":n==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=q(()=>{let n=this.#i.systemInfo();n&&this.registerUrl.set(n.RemoteControlRegistrationUrl??"")});#t(n){n.RegistrationUrl&&this.claimUrl.set(n.RegistrationUrl),n.IsConnected?this.state.set("connected"):n.IsEnabled?this.state.set("enabled"):n.CanEnable?this.state.set("disabled"):n.IsRegisteringFaulted?this.state.set("registeringfaulted"):n.IsRegistering?n.RegistrationUrl!=null&&n.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let e=this.state();console.log("currentState: ",e),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),e==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),(e==="enabled"||e==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#t(t),error:t=>this.#n(t)})},5e3)),n.IsRegistering&&n.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:t=>this.#t(t)})}#n(n){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#t(e)})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}beginRemoteRegistration(){this.state.set("registering"),this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:n=>this.#t(n),error:n=>this.#n(n)})}deleteRemoteControl(){let n=this;confirm("Are you sure you want to delete the remote control registration?")&&n.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:e=>n.#t(e),error:e=>n.#n(e)})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ae({token:i,factory:i.\u0275fac,providedIn:"root"})};function Un(i,n){if(i&1){let e=h();s(0,"spk-form-field",10)(1,"input",11),B("ngModelChange",function(a){m(e);let _=l(2);return z(_.registerUrl,a)||(_.registerUrl=a),u(a)}),o()(),s(2,"button",12),g("click",function(){m(e);let a=l(2);return u(a.register())}),p(3,0),o()}if(i&2){let e=l(2);r(),X("ngModel",e.registerUrl)}}function qn(i,n){if(i&1&&(s(0,"div",8)(1,"label"),p(2,1),o(),s(3,"a",13),c(4),o()()),i&2){let e=l(2);r(3),F("href",e.claimUrl(),Ot),r(),$(e.claimUrl())}}function jn(i,n){i&1&&(s(0,"div",8)(1,"label"),p(2,2),o()())}function Hn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){m(e);let a=l(2);return u(a.cancel())}),p(1,3),o()}}function Wn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){m(e);let a=l(2);return u(a.disable())}),p(1,4),o()}}function Kn(i,n){if(i&1){let e=h();s(0,"button",12),g("click",function(){m(e);let a=l(2);return u(a.enable())}),p(1,5),o(),s(2,"button",14),g("click",function(){m(e);let a=l(2);return u(a.delete())}),p(3,6),o()}}function Qn(i,n){if(i&1&&(s(0,"div",7),C(1,Un,4,1)(2,qn,5,2,"div",8)(3,jn,3,0,"div",8)(4,Hn,2,0,"button",9)(5,Wn,2,0,"button",9)(6,Kn,4,0),o()),i&2){let e=l();r(),T(e.state()==="inactive"?1:-1),r(),T(e.state()==="registered"?2:-1),r(),T(e.state()==="registering"?3:-1),r(),T(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),r(),T(e.state()==="connected"||e.state()==="enabled"?5:-1),r(),T(e.state()==="disabled"?6:-1)}}var Re=class i{#e=N(Q);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let n;n=$localize`Register for remote control`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let t;t=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let _;_=$localize`Disable remote control`;let y;y=$localize`Enable remote control`;let R;return R=$localize`Delete remote control setup`,[n,e,t,a,_,y,R,[1,"field-row"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","error",3,"click"]]},template:function(e,t){e&1&&C(0,Qn,7,6,"div",7),e&2&&T(t.state()!=="unknown"?0:-1)},dependencies:[Ce,j,H,me,W],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};var Zn=()=>({standalone:!0});function Jn(i,n){i&1&&(s(0,"spk-icon",74),c(1,"check"),o())}function Yn(i,n){i&1&&(s(0,"spk-icon",75),c(1,"prohibit"),o())}function ei(i,n){if(i&1){let e=h();s(0,"button",79),g("click",function(){m(e);let a=l(2);return u(a.updatePassphrase())}),p(1,36),o()}if(i&2){let e=l(2);P("loader",e.isUpdating())}}function ti(i,n){if(i&1){let e=h();s(0,"spk-tooltip",78)(1,"button",80),g("click",function(){m(e);let a=l(2);return u(a.updatePassphrase())}),p(2,37),o()()}if(i&2){let e=l(2);r(),P("loader",e.isUpdating()),S("disabled",!0)}}function ni(i,n){if(i&1){let e=h();s(0,"spk-form-field")(1,"label",70),p(2,33),o(),s(3,"input",71),B("ngModelChange",function(a){m(e);let _=l();return z(_.passphrase,a)||(_.passphrase=a),u(a)}),o()(),s(4,"spk-form-field")(5,"label",72),p(6,34),o(),s(7,"input",73),B("ngModelChange",function(a){m(e);let _=l();return z(_.repeatPassphrase,a)||(_.repeatPassphrase=a),u(a)}),o(),C(8,Jn,2,0,"spk-icon",74)(9,Yn,2,0,"spk-icon",75),o(),s(10,"div",51)(11,"button",76),g("click",function(){m(e);let a=l();return u(a.cancelPasswordChange())}),p(12,35),o(),C(13,ei,2,2,"button",77)(14,ti,3,3,"spk-tooltip",78),o()}if(i&2){let e=l();r(3),X("ngModel",e.passphrase),r(4),S("disabled",e.passphrase().length===0),X("ngModel",e.repeatPassphrase),r(),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),r(3),P("loader",e.isUpdating()),r(2),T(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function ii(i,n){i&1&&(s(0,"spk-icon",81),c(1,"check"),o())}function oi(i,n){if(i&1){let e=h();s(0,"div",51)(1,"button",76),g("click",function(){m(e);let a=l();return u(a.openPassphraseForm())}),p(2,38),o(),C(3,ii,2,0,"spk-icon",81),o()}if(i&2){let e=l();r(3),T(e.passwordUpdated()?3:-1)}}function si(i,n){if(i&1){let e=h();s(0,"spk-form-field")(1,"label",82),p(2,39),o(),s(3,"textarea",83),B("ngModelChange",function(a){m(e);let _=l();return z(_.allowedHostnames,a)||(_.allowedHostnames=a),u(a)}),o()(),s(4,"spk-alert",84),p(5,40),o(),s(6,"button",79),g("click",function(){m(e);let a=l();return u(a.updateAllowedHostnames())}),p(7,41),o()}if(i&2){let e=l();r(3),X("ngModel",e.allowedHostnames),r(3),P("loader",e.updatingAllowedHosts())}}function ri(i,n){if(i&1&&c(0),i&2){let e,t=l();I(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function ai(i,n){i&1&&E(0,"spk-progress-bar",56)}function li(i,n){if(i&1&&(s(0,"spk-option",64),c(1),o()),i&2){let e=n.$implicit;S("value",e),r(),$(e)}}function _i(i,n){if(i&1){let e=h();s(0,"spk-option",85),g("click",function(){let a=m(e).$implicit,_=l();return u(_.pauseSettings.controls.timeType.setValue(a.value))}),c(1),o()}if(i&2){let e=n.$implicit;S("value",e.value),r(),I(" ",e.label," ")}}function pi(i,n){if(i&1&&(s(0,"spk-option",64),c(1),o()),i&2){let e=n.$implicit;S("value",e.value),r(),I(" ",e.label," ")}}var ie=new fe,en=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],tn=[{value:"",label:$localize`System default (information)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"none",label:$localize`None / disabled`}],$e=class i{#e=N(Ht);#i=N(ce);#t=N(k);#n=N(K);#r=N(Q);#o=N(bt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=f("list");previousLang=this.#s;langCtrl=f(this.#s);remoteControlStatus=this.#r.status;settingsForm=ie.group({pauseSettings:ie.group({time:ie.control(0),timeType:ie.control("s")}),usageStatistics:ie.control("")});updatingChannel=f(!1);updateChannel=f("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),w(()=>this.updatingChannel.set(!1)),J(()=>(this.updateChannel.set(e),Z(null)))).subscribe()}allowRemoteAccess=f(!1);allowedHostnames=f("");loadedAllowedHostnames=f("");updatingRemoteAccess=f(!1);updatingAllowedHosts=f(!1);updateRemoteAccess(){let n=this.allowRemoteAccess(),e=!n;this.allowRemoteAccess.set(e),e||this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":e?"any":"loopback"}}).pipe(this.#n.withRefresh(),w(()=>this.updatingRemoteAccess.set(!1)),J(()=>(this.allowRemoteAccess.set(n),Z(null)))).subscribe()}updateAllowedHostnames(){let n=this.loadedAllowedHostnames(),e=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":e}}).pipe(this.#n.withRefresh(),w(()=>this.updatingAllowedHosts.set(!1)),J(()=>(this.allowedHostnames.set(n),Z(null)))).subscribe()}updatingDisableTrayIconLogin=f(!1);disableTrayIconLogin=f(!1);saveDisableTrayIconLogin(){let n=this.disableTrayIconLogin(),e=!n;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(e),this.#t.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":e?"True":"False"}}).pipe(this.#n.withRefresh(),w(()=>this.updatingDisableTrayIconLogin.set(!1)),J(()=>(this.disableTrayIconLogin.set(n),Z(null)))).subscribe()}showPassphraseForm=f(!1);isUpdating=f(!1);passphrase=f("");repeatPassphrase=f("");passwordUpdated=f(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),w(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}get pauseSettings(){return this.settingsForm.controls.pauseSettings}languageOptions=f(Ge);usageStatisticsOptions=f(tn);timeTypeOptions=f(en);timeOptions=xe([this.pauseSettings.controls.timeType.valueChanges.pipe(b("s")),this.pauseSettings.controls.time.valueChanges.pipe(b(null))],re(ft(([n,e])=>{let t=this.#a(n);return e!==null?t.filter(a=>a.toString().includes(e.toString())):t}),b([])));#a(n){let e=n==="h"?25:61;return new Array(e).fill(0).map((t,a)=>a)}updateLocale(n){let t=n[0]?.value??"";!t||t===""||t===this.previousLang||(this.#o.setItem("locale",t),window.location.reload())}submit(){let n=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":n==="0s"?"":n}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=q(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),_=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:_.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]}),this.disableTrayIconLogin.set(n["disable-tray-icon-login"]!=="False"),this.updateChannel.set(n["update-channel"]),this.allowRemoteAccess.set(n["server-listen-interface"]==="any"),this.allowedHostnames.set(n["allowed-hostnames"]),this.loadedAllowedHostnames.set(n["allowed-hostnames"])});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Ge.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:en.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:tn.find(t=>t.value===e)?.label??null}}setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=V({type:i,selectors:[["app-settings"]],decls:139,vars:37,consts:()=>{let n;n=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let t;t=$localize` Save changes `;let a;a=$localize`Remote access control`;let _;_=$localize`Color theme`;let y;y=$localize`Customize your application theme`;let R;R=$localize`Passwords`;let M;M=$localize`Change server passphrase`;let v;v=$localize`Language`;let oe;oe=$localize`Select a language for the platform`;let ke;ke=$localize`Allow remote access (requires restart)`;let be;be=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let Ve;Ve=$localize`Allow remote access`;let De;De=$localize`Prevent tray icon automatic log-in`;let Le;Le=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let Xe;Xe=$localize`Prevent tray icon automatic log-in`;let ze;ze=$localize`Update channel`;let Be;Be=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ue;Ue=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let qe;qe=$localize`Stable`;let je;je=$localize`Official releases`;let He;He=$localize`Beta`;let We;We=$localize` Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. `;let Ke;Ke=$localize` Experimental `;let Qe;Qe=$localize`Specific builds for developers only. Not for use with important data.`;let Ze;Ze=$localize`Canary`;let Je;Je=$localize`Individual builds for developers only. Not for use with important data.`;let Ye;Ye=$localize`Pause after startup or hibernation`;let et;et=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let tt;tt=$localize`Usage statistics`;let se;se=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#125\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#125\uFFFD"}:CLOSE_LINK:${"[\uFFFD#126\uFFFD\uFFFD/#126\uFFFD|\uFFFD#127\uFFFD\uFFFD/#127\uFFFD]"}:LINE_BREAK:${"[\uFFFD#126\uFFFD\uFFFD/#126\uFFFD|\uFFFD#127\uFFFD\uFFFD/#127\uFFFD]"}:LINE_BREAK: All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,se=pe(se);let nt;nt=$localize`Advanced options`;let it;it=$localize`Enter new password`;let ot;ot=$localize`Repeat password`;let st;st=$localize`Password have to be filled and have to match`;let rt;rt=$localize`Passphrase`;let at;at=$localize`Repeat passphrase`;let lt;lt=$localize`Cancel`;let _t;_t=$localize` Update passphrase `;let pt;pt=$localize` Update passphrase `;let ct;ct=$localize`Change password`;let dt;dt=$localize`Allowed hostnames`;let mt;mt=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let ut;return ut=$localize` Update allowed hostnames `,[["input",""],n,e,t,a,_,y,R,M,v,oe,ke,be,Ve,De,Le,Xe,ze,Be,Ue,qe,je,He,We,Ke,Qe,Ze,Je,Ye,et,tt,se,nt,rt,at,lt,_t,pt,ct,dt,mt,ut,[1,"content"],[1,"title"],["type","submit","spk-button","",1,"raised","primary",3,"click","disabled"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"selectedOptionsChange","options","isClearable","inlineSearch"],["type","text",3,"ngModel","ngModelOptions"],[1,"right","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[1,"content",3,"submit","formGroup"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",it,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",ot,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",st,1,"primary"],["spk-button","",1,"raised","primary",3,"click"],["spk-button","",1,"raised","primary",3,"click","disabled"],[1,"spk-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],[3,"click","value"]]},template:function(e,t){if(e&1){let a=h();E(0,"app-status-bar"),s(1,"div",42)(2,"header")(3,"div",43)(4,"h2"),p(5,1),o(),s(6,"p"),p(7,2),o()(),s(8,"button",44),g("click",function(){return m(a),u(t.submit())}),p(9,3),o()(),s(10,"section")(11,"div",45)(12,"h3"),p(13,4),o(),s(14,"p"),c(15),o()(),s(16,"div",46),E(17,"app-remote-control"),o()(),s(18,"section")(19,"div",45)(20,"h3"),p(21,5),o(),s(22,"p"),p(23,6),o()(),s(24,"div",46)(25,"div",47)(26,"img",48),g("click",function(){return m(a),u(t.setLightMode())}),o(),s(27,"img",49),g("click",function(){return m(a),u(t.setDarkMode())}),o()()()(),s(28,"section")(29,"div",45)(30,"h3"),p(31,7),o(),s(32,"p"),p(33,8),o()(),s(34,"div",50),C(35,ni,15,7)(36,oi,4,1,"div",51),o()(),s(37,"section")(38,"div",45)(39,"h3"),p(40,9),o(),s(41,"p"),p(42,10),o()(),s(43,"div",46)(44,"spk-select-new",52),g("selectedOptionsChange",function(y){return m(a),u(t.updateLocale(y))}),E(45,"input",53,0),o()()(),s(47,"section")(48,"div",45)(49,"h3"),p(50,11),o(),s(51,"p"),p(52,12),o()(),s(53,"div",54)(54,"spk-toggle",55),g("click",function(){return m(a),u(t.updateRemoteAccess())}),s(55,"label"),p(56,13),o()(),C(57,si,8,3),o()(),s(58,"section")(59,"div",45)(60,"h3"),p(61,14),o(),s(62,"p"),p(63,15),o()(),s(64,"div",46)(65,"spk-toggle",55),g("click",function(){return m(a),u(t.saveDisableTrayIconLogin())}),s(66,"label"),p(67,16),o()()()(),s(68,"section")(69,"div",45)(70,"h3"),p(71,17),o(),s(72,"p"),C(73,ri,1,1),o(),C(74,ai,1,0,"spk-progress-bar",56),o(),s(75,"div",57)(76,"div",58),g("click",function(){return m(a),u(t.setNewChannel(""))}),s(77,"spk-radio",59),p(78,18),o(),s(79,"p"),p(80,19),o()(),s(81,"div",58),g("click",function(){return m(a),u(t.setNewChannel("stable"))}),s(82,"spk-radio",59),p(83,20),o(),s(84,"p"),p(85,21),o()(),s(86,"div",58),g("click",function(){return m(a),u(t.setNewChannel("beta"))}),s(87,"spk-radio",59),p(88,22),o(),s(89,"p"),p(90,23),o()(),s(91,"div",58),g("click",function(){return m(a),u(t.setNewChannel("experimental"))}),s(92,"spk-radio",59),p(93,24),o(),s(94,"p"),p(95,25),o()(),s(96,"div",58),g("click",function(){return m(a),u(t.setNewChannel("canary"))}),s(97,"spk-radio",59),p(98,26),o(),s(99,"p"),p(100,27),o()()()()(),E(101,"spk-divider"),s(102,"form",60),g("submit",function(){return m(a),u(t.submit())}),s(103,"section")(104,"div",45)(105,"h3"),p(106,28),o(),s(107,"p"),p(108,29),o()(),s(109,"div",46)(110,"div",61)(111,"spk-select",62),E(112,"input",63),G(113,li,2,2,"spk-option",64,A),o(),s(115,"spk-select",65),E(116,"input",66),G(117,_i,2,2,"spk-option",64,A),o()()()(),s(119,"section")(120,"div",45)(121,"h3"),p(122,30),o(),s(123,"p"),D(124,31),E(125,"a",67)(126,"br")(127,"br"),L(),o()(),s(128,"div",46)(129,"spk-select",68),E(130,"input",69),G(131,pi,2,2,"spk-option",64,A),o()()(),s(133,"section")(134,"div",45)(135,"h3"),p(136,32),o()(),s(137,"div",46),E(138,"app-advanced-options-settings"),o()()()}if(e&2){let a,_,y;r(8),S("disabled",t.settingsForm.untouched),r(7),$(t.remoteControlStatus()),r(11),P("active",!t.isDarkMode()),r(),P("active",t.isDarkMode()),r(8),T(t.showPassphraseForm()?35:36),r(9),S("options",t.languageOptions())("isClearable",!1)("inlineSearch",!0),r(),S("ngModel",t.langCtrl())("ngModelOptions",At(36,Zn)),r(9),P("active",t.allowRemoteAccess()),r(3),T(t.allowRemoteAccess()?57:-1),r(8),P("active",t.disableTrayIconLogin()),r(8),T(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?73:-1),r(),T(t.updatingChannel()?74:-1),r(3),P("active",t.updateChannel()===""),r(),Y((_=t.sysinfo())==null?null:_.DefaultUpdateChannel),ee(78),r(2),Y((y=t.sysinfo())==null?null:y.ServerVersionType),ee(80),r(2),P("active",t.updateChannel()==="stable"),r(5),P("active",t.updateChannel()==="beta"),r(5),P("active",t.updateChannel()==="experimental"),r(5),P("active",t.updateChannel()==="canary"),r(5),S("formGroup",t.settingsForm),r(9),S("hideClearButton",!0),r(2),x(t.timeOptions()),r(2),S("displayFn",t.typeDisplay())("hideClearButton",!0),r(2),x(t.timeTypeOptions()),r(12),S("displayFn",t.usageDisplay()),r(2),x(t.usageStatisticsOptions())}},dependencies:[Ce,ue,j,H,de,me,Ee,Se,Te,ge,Wt,Re,ne,Oe,he,qt,Me,Ut,Pe,Ie,W,Ne,zt,Lt,jt],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;position:sticky;top:0;background:var(--base-level-10);z-index:1000;border-bottom:1px solid var(--base-level-40)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}"],changeDetection:0})};export{$e as default};
@@ -1 +1 @@
1
- import{b as $}from"./chunk-MHZPUJQF.js";import{a as R}from"./chunk-TQIMA3N7.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as k}from"./chunk-TQE7OBBP.js";import{a as A,d as N}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as B,g as O}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Mc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Y as m,eb as C,hc as E,jc as L,kb as p,ua as l,yb as s,zb as f}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
1
+ import{b as $}from"./chunk-UVM5AF3P.js";import{a as R}from"./chunk-IBBJHMWR.js";import"./chunk-7AU6BKAH.js";import"./chunk-7KVBF3B3.js";import"./chunk-3IMBZVOU.js";import"./chunk-UKAYBL4H.js";import"./chunk-MWZZ2BGA.js";import"./chunk-UFBCQOH4.js";import{b as k}from"./chunk-6FEY72H5.js";import{a as A,d as N}from"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.js";import{a as B,g as O}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import"./chunk-YTBB644O.js";import{Ab as S,Bb as g,Cb as F,Db as a,Eb as r,Mc as M,Ob as _,Pb as c,Qb as u,Ra as i,Tb as T,Ub as I,Y as m,eb as C,hc as E,jc as L,kb as p,ua as l,yb as s,zb as f}from"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";function b(e,t){e&1&&u(0,2,1)}function P(e,t){e&1&&u(0,2,2)}function h(e,t){e&1&&u(0,2,3)}function v(e,t){e&1&&u(0,2,4)}function U(e,t){if(e&1&&(E(0),r(1,"br")),e&2){let n=t.$implicit;L(" ",n," ")}}var D=class e{#t=m(k);#e=m(A);#n=$(this.#e.params);runId=M(()=>this.#n()?.runId);offset=l(0);status=l("starting");messageLog=l([]);interval=setInterval(()=>{this.#t.getApiV1CommandlineByRunid({runid:this.runId(),offset:this.offset(),pagesize:100}).subscribe(t=>{this.offset.set(t.Count),this.evalStatus(t),this.messageLog.update(n=>[...n,...t.Items])})},1e3);evalStatus(t){t.Started===!0&&t.Finished===!0&&(this.status.set("finished"),clearInterval(this.interval)),t.Started===!0&&t.Finished===!1&&this.status.set("started")}abort(){this.#t.postApiV1CommandlineByRunidAbort({runid:this.runId()}).subscribe({next:t=>{this.status.set("aborted"),clearInterval(this.interval)}})}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=C({type:e,selectors:[["app-commandline-result"]],decls:18,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let n;n=$localize` Running commandline task... ${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON:Abort${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_BUTTON:`;let o;return o=$localize`${"\uFFFD*11:1\uFFFD"}:START_BLOCK_IF: Starting... ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*12:2\uFFFD"}:START_BLOCK_IF_1: Started! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*13:3\uFFFD"}:START_BLOCK_IF_2: Finished! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*14:4\uFFFD"}:START_BLOCK_IF_3: Aborted! ${"[\uFFFD/*11:1\uFFFD|\uFFFD/*12:2\uFFFD|\uFFFD/*13:3\uFFFD|\uFFFD/*14:4\uFFFD]"}:CLOSE_BLOCK_IF:`,o=T(o),[t,n,o,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],["type","button","spk-button","",1,"small",3,"click"],[1,"status"]]},template:function(n,o){n&1&&(r(0,"app-status-bar"),F(1,"section")(2,"div",3)(3,"button",4),_(4,0),r(5,"spk-icon"),c(),a()(),F(6,"h3"),_(7,1),F(8,"button",5),I("click",function(){return o.abort()}),a(),c(),a(),F(9,"div",6),_(10,2),p(11,b,1,0)(12,P,1,0)(13,h,1,0)(14,v,1,0),c(),a(),F(15,"code"),S(16,U,2,1,null,null,f),a()()),n&2&&(i(11),s(o.status()==="starting"?11:-1),i(),s(o.status()==="started"?12:-1),i(),s(o.status()==="finished"?13:-1),i(),s(o.status()==="aborted"?14:-1),i(2),g(o.messageLog()))},dependencies:[R,B,O,N],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;padding:2.5rem;gap:1.25rem}code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{D as default};
@@ -1,2 +1,2 @@
1
- import{b as B}from"./chunk-TQE7OBBP.js";import{a as D,v as U}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import{pa as R}from"./chunk-JOBMLOGZ.js";import{Ab as x,Bb as I,Cb as o,Db as a,E as S,Eb as u,Ib as v,Oa as T,Qb as p,Ra as l,Ub as A,Vb as c,Y as O,da as M,ea as L,eb as f,hc as _,ic as g,kb as E,mc as $,nc as k,oc as y,tb as m,ua as d,ub as P,vb as h,xc as G,yb as b,zb as N,zc as w}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
1
+ import{b as B}from"./chunk-6FEY72H5.js";import{a as D,v as U}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import{pa as R}from"./chunk-VWJ5QJXJ.js";import{Ab as x,Bb as I,Cb as o,Db as a,E as S,Eb as u,Ib as v,Oa as T,Qb as p,Ra as l,Ub as A,Vb as c,Y as O,da as M,ea as L,eb as f,hc as _,ic as g,kb as E,mc as $,nc as k,oc as y,tb as m,ua as d,ub as P,vb as h,xc as G,yb as b,zb as N,zc as w}from"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";function X(s,n){if(s&1&&(o(0,"tr")(1,"td",10)(2,"code"),u(3,"ol",11),a()()()),s&2){let e=c().$implicit,t=c();l(),P("grid-column","1 / -1")("height","auto"),l(2),m("innerHTML",t.breakIntoLines(e.Exception),T)}}function z(s,n){if(s&1){let e=v();o(0,"tr",7),A("click",function(){let i=M(e).$index,r=c();return L(r.toggleRow(i))}),o(1,"td"),_(2),G(3,"date"),a(),o(4,"td",8),_(5),a(),o(6,"td"),_(7),a(),o(8,"td")(9,"button",9)(10,"spk-icon"),_(11,"caret-down"),a()()()(),E(12,X,4,5,"tr")}if(s&2){let e=n.$implicit,t=n.$index,i=c();l(2),g(w(3,6,e.Timestamp,"MMM dd. hh:mm")),l(3),g(e.BackupID>=0?e.BackupID:"-"),l(2),g(e.Message),l(2),h("rotated-icon",t===i.openRowIndex()),l(3),b(t===i.openRowIndex()?12:-1)}}var F=["BackupID","Timestamp","Message","actions"],C=class s{#e=O(B);displayedColumns=d(F);logsLoading=d(!0);openRowIndex=d(null);logs=d([]);ngOnInit(){this.init()}init(){this.#e.getApiV1LogdataLog().pipe(S(()=>this.logsLoading.set(!1))).subscribe({next:n=>{console.log(n),this.logs.set(n)}})}toggleRow(n){this.openRowIndex.set(n===this.openRowIndex()?null:n)}breakIntoLines(n){let e=n.split(`
2
2
  `),t="";for(let i=0;i<e.length;i++)t+=`<li>${e[i]}</li>`;return t}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=f({type:s,selectors:[["app-logs"]],decls:15,vars:2,consts:()=>{let n;n=$localize`Timestamp`;let e;e=$localize`Backup ID`;let t;t=$localize`Message`;let i;return i=$localize`No data available`,[n,e,t,i,[3,"dataChange","data","loading"],["table-header",""],["table-no-rows",""],[3,"click"],[1,"id"],["spk-button","","type","button",1,"outlined","small"],[2,"white-space","pre-wrap"],[1,"line-numbers-ol",3,"innerHTML"]]},template:function(e,t){e&1&&(o(0,"h3"),_(1,"Logs"),a(),o(2,"spk-table",4),y("dataChange",function(r){return k(t.logs,r)||(t.logs=r),r}),o(3,"tr",5)(4,"th"),p(5,0),a(),o(6,"th"),p(7,1),a(),o(8,"th"),p(9,2),a(),u(10,"th"),a(),x(11,z,13,9,null,null,N),o(13,"div",6),p(14,3),a()()),e&2&&(l(2),$("data",t.logs),m("loading",t.logsLoading()),l(9),I(t.logs()))},dependencies:[U,R,D],styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-table[_ngcontent-%COMP%]{--table-columns: auto auto 1fr auto}spk-table[_ngcontent-%COMP%] td.id[_ngcontent-%COMP%]{justify-content:center}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code){padding:1rem .75rem;overflow:hidden}spk-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:has(code) code[_ngcontent-%COMP%]{background-color:var(--grey-800);color:var(--grey-100);padding:2.5rem 2.5rem 2.5rem 1.5rem;border-radius:var(--shape-3);overflow:auto;white-space:pre}"],changeDetection:0})};export{C as default};
@@ -0,0 +1 @@
1
+ import{a,b}from"./chunk-H2JFCXJJ.js";import"./chunk-INATF4ZS.js";import"./chunk-NE337TA6.js";import"./chunk-UVM5AF3P.js";import"./chunk-6PGJBRJV.js";import"./chunk-MWZZ2BGA.js";import"./chunk-6FEY72H5.js";import"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.js";import"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";export{a as createRestoreOptionsForm,b as default};
@@ -1 +1 @@
1
- import{a as b}from"./chunk-PTG2C2YJ.js";import"./chunk-TQE7OBBP.js";import{a as w,m as D}from"./chunk-IZCX3KB3.js";import"./chunk-6SIZVSDW.js";import{ia as A}from"./chunk-JOBMLOGZ.js";import{Ab as I,Ac as F,Bb as M,Cb as c,Db as r,Hb as u,Ib as v,Mc as $,Qb as P,Ra as l,Ub as k,Vb as s,Y as y,da as O,ea as x,eb as T,gc as C,hc as p,ic as E,kb as a,tb as d,ua as m,ub as h,uc as _,vb as f,vc as N,yb as g}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var L=(e,t)=>t.id,V=e=>({children:e,level:0}),R=e=>({$implicit:e}),j=(e,t)=>({children:e,level:t});function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,j,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,L),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,V,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
1
+ import{a as b}from"./chunk-6PGJBRJV.js";import"./chunk-6FEY72H5.js";import{a as w,m as D}from"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import{ia as A}from"./chunk-VWJ5QJXJ.js";import{Ab as I,Ac as F,Bb as M,Cb as c,Db as r,Hb as u,Ib as v,Mc as $,Qb as P,Ra as l,Ub as k,Vb as s,Y as y,da as O,ea as x,eb as T,gc as C,hc as p,ic as E,kb as a,tb as d,ua as m,ub as h,uc as _,vb as f,vc as N,yb as g}from"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";var L=e=>({children:e,level:0}),R=e=>({$implicit:e}),V=(e,t)=>({children:e,level:t}),j=(e,t)=>t.id;function z(e,t){if(e&1&&(c(0,"spk-icon"),p(1,"caret-down"),r()),e&2){let n=s().$implicit;f("open",n.isOpen())}}function B(e,t){e&1&&(c(0,"spk-icon"),p(1,"dot"),r())}function G(e,t){e&1&&u(0)}function U(e,t){if(e&1&&a(0,G,1,0,"ng-container",3),e&2){let n=s().$implicit,o=s().$implicit;s();let i=C(3);d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(5,R,N(2,V,n.children,o.level+1)))}}function X(e,t){if(e&1){let n=v();c(0,"div",4,1),k("click",function(){let i=O(n).$implicit,Y=s(2);return x(i.children.length>0&&Y.toggleNode(i))}),a(2,z,2,2,"spk-icon",5)(3,B,2,0,"spk-icon"),c(4,"div",6),p(5),r()(),a(6,U,1,7,"ng-container")}if(e&2){let n=t.$implicit;f("cannot-toggle",n.children.length===0)("open",n.isOpen()),l(2),g(n.children.length>0?2:3),l(3),E(n.text),l(),g(n.isOpen()?6:-1)}}function q(e,t){if(e&1&&(c(0,"spk-list"),I(1,X,7,7,null,null,j),r()),e&2){let n=t.$implicit;h("padding-left",n.level*.25,"rem"),l(),M(n.children)}}function H(e,t){e&1&&u(0)}var S=class e{#e=y(b);treeStructure=$(()=>{let t=this.#e.systemInfo();return this.processObject(t,0)});toggleNode(t){t.isOpen.update(n=>!n)}processObject(t,n){let o=[];for(let i in t)typeof t[i]=="object"?o.push({id:i,text:i,children:this.processObject(t[i],n+1),level:n,isOpen:m(!1)}):o.push({id:i,text:`${i}: ${t[i]}`,children:[],level:n,isOpen:m(!1)});return o}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=T({type:e,selectors:[["app-system-info"]],decls:5,vars:6,consts:()=>{let t;return t=$localize`System info`,[["recursiveTree",""],["treeNode",""],t,[4,"ngTemplateOutlet","ngTemplateOutletContext"],["action","",3,"click"],[3,"open"],[1,"text"]]},template:function(n,o){if(n&1&&(c(0,"h3"),P(1,2),r(),a(2,q,3,2,"ng-template",null,0,F)(4,H,1,0,"ng-container",3)),n&2){let i=C(3);l(4),d("ngTemplateOutlet",i)("ngTemplateOutletContext",_(4,R,_(2,L,o.treeStructure())))}},dependencies:[D,w,A],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}spk-icon[_ngcontent-%COMP%]{font-size:1rem}spk-list[_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0}spk-list[_ngcontent-%COMP%] [action].cannot-toggle[_ngcontent-%COMP%]{cursor:initial}"],changeDetection:0})};export{S as default};
@@ -1 +1 @@
1
- import{Cb as i,Db as o,Ib as u,Mc as b,Ra as n,Ub as x,Vb as l,da as f,ea as _,eb as T,hc as r,ic as m,kb as C,pa as g,qa as D,yb as s}from"./chunk-QDAWQNBQ.js";import{a as p}from"./chunk-C6Q5SG76.js";function v(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function y(e,a){if(e&1){let t=u();i(0,"button",5),x("click",function(){f(t);let d=l();return _(d.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function h(e,a){if(e&1){let t=u();i(0,"button",6),x("click",function(){f(t);let d=l();return _(d.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},k=class e{data=D();_data=b(()=>p(p({},w),this.data()));closed=g();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,""],["spk-button","",1,"raised","primary"],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),C(4,v,2,1,"p"),o(),i(5,"footer",2),C(6,y,2,1,"button",3)(7,h,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),s(c._data().message?4:-1),n(2),s(c._data().cancelText?6:-1),n(),s(c._data().confirmText?-1:7))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{k as a};
1
+ import{Cb as i,Db as o,Ib as u,Mc as b,Ra as n,Ub as x,Vb as l,da as f,ea as _,eb as T,hc as r,ic as m,kb as C,pa as g,qa as D,yb as s}from"./chunk-I7CCITLM.js";import{a as p}from"./chunk-C6Q5SG76.js";function v(e,a){if(e&1&&(i(0,"p"),r(1),o()),e&2){let t=l();n(),m(t._data().message)}}function y(e,a){if(e&1){let t=u();i(0,"button",5),x("click",function(){f(t);let d=l();return _(d.close("cancel"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().cancelText)}}function h(e,a){if(e&1){let t=u();i(0,"button",6),x("click",function(){f(t);let d=l();return _(d.close("confirm"))}),r(1),o()}if(e&2){let t=l();n(),m(t._data().confirmText)}}var w={title:$localize`Are you sure?`,confirmText:$localize`Confirm`,cancelText:$localize`Cancel`},k=class e{data=D();_data=b(()=>p(p({},w),this.data()));closed=g();close(a="confirm"){this.closed.emit(a==="confirm")}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=T({type:e,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},decls:8,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,""],["spk-button","",1,"raised","primary"],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(t,c){t&1&&(i(0,"header",0)(1,"h3"),r(2),o()(),i(3,"div",1),C(4,v,2,1,"p"),o(),i(5,"footer",2),C(6,y,2,1,"button",3)(7,h,2,1,"button",4),o()),t&2&&(n(2),m(c._data().title),n(2),s(c._data().message?4:-1),n(2),s(c._data().cancelText?6:-1),n(),s(c._data().confirmText?-1:7))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{k as a};
@@ -0,0 +1 @@
1
+ import"./chunk-C6Q5SG76.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-XDOTOR6Y.js")},{path:"encryption",loadComponent:()=>import("./chunk-UVF6BCW2.js")},{path:"select-files",loadComponent:()=>import("./chunk-53YXMY4O.js")},{path:"options",loadComponent:()=>import("./chunk-EPS56WMH.js")}],o=t;export{o as default};
@@ -1 +1 @@
1
- import{a as j}from"./chunk-NRGTIGVX.js";import{a as he}from"./chunk-EGT5S7A4.js";import{b as U}from"./chunk-MHZPUJQF.js";import{a as Oe,b as h,d as M,e as k,h as L,j as de,l as $,o as y,p as D,r as A}from"./chunk-LFQXDL42.js";import{b as I}from"./chunk-TQE7OBBP.js";import{a as P,c as d}from"./chunk-ZRPJ3QZT.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,s as Pe,x as Ie}from"./chunk-IZCX3KB3.js";import{pa as K}from"./chunk-JOBMLOGZ.js";import{Ab as ce,Bb as ue,C as se,Cb as r,Db as a,E as O,Eb as l,Fb as X,Gb as z,I as ae,Ib as x,Ob as c,Oc as H,Pb as u,Qb as m,Ra as S,Rb as Se,S as le,Sb as Fe,Ub as T,Vb as B,Y as _,da as C,ea as R,eb as N,hc as Y,kb as V,kc as me,sc as Ee,tb as F,ua as p,v as re,vb as _e,xc as Te,yb as G,zb as pe,zc as ge}from"./chunk-QDAWQNBQ.js";var Me=new D,$e=()=>Me.group({passphrase:Me.control("")}),J=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let s=i.ID;this.#e.getBackup(s),this.#o.navigate([`/restore-draft/${s}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(r(0,"form",3),T("submit",function(){return o.next()}),r(1,"spk-form-field")(2,"label",4),m(3,0),a(),l(4,"input",5),a(),r(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),r(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&F("formGroup",o.encryptionForm)},dependencies:[A,L,h,M,k,$,y,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,t){n&1&&l(0,"spk-progress-bar",8)}function be(n,t){if(n&1&&(r(0,"spk-option",14),Y(1),Te(2,"date"),a()),n&2){let e=t.$implicit;F("value",e.Version),S(),me("",e.Version,": ",ge(2,3,e.Time,"medium"),"")}}function ve(n,t){if(n&1){let e=x();l(0,"spk-progress-bar",8),r(1,"button",10),T("click",function(){C(e);let i=B(2);return R(i.abortLoading())}),m(2,4),a()}}function we(n,t){if(n&1&&(r(0,"app-file-tree",15)(1,"label",16),m(2,5),a(),l(3,"input",17),a()),n&2){let e=B(3);F("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,t){if(n&1&&V(0,we,4,4,"app-file-tree",15),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,t){if(n&1&&(r(0,"spk-select",12),l(1,"input",13),ce(2,be,3,6,"spk-option",14,pe),a(),V(4,ve,3,0)(5,Ge,1,1)),n&2){let e=B();F("displayFn",e.displayFn())("hideClearButton",!0),S(2),ue(e.versionOptions()),S(2),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?4:-1),S(),G(e.showFileTree()?5:-1)}}var q=new D,ye=()=>q.group({filesToRestore:q.control(""),selectedOption:q.control(null),passphrase:q.control(null)}),Z=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);#n=_(K);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);backupSettingsEffect=H(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(s=>s.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let s={id:t+"",time:i};this.backupSettings.set(s),this.getRootPath(s)}))});rootPath=p(void 0);loadingRootPath=p(!1);getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}isRepairing=p(!1);repairEffect=H(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(O(()=>this.isRepairing.set(!1))).subscribe()}});abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[Ee([K])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let s;s=$localize`Cancel`;let w;return w=$localize`Path`,[["formRef",""],t,e,o,s,w,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",6,0),T("submit",function(){return C(i),R(o.next())}),r(2,"h3",7),m(3,1),a(),V(4,Ae,1,0,"spk-progress-bar",8)(5,xe,6,4),r(6,"div",9)(7,"button",10),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),r(10,"button",11),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(F("formGroup",o.selectFilesForm),S(4),G(o.versionOptionsLoading()?4:5),S(5),Se(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[A,L,h,M,k,$,y,K,j,v,Ne,b,Pe,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var f=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=ye();optionsForm=De();encryptionForm=$e();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(s=>s.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(s=>`${s}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:s=>{console.error("restore error",s)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),re([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(ae(3))]).pipe(se(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new D,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),ee=class n{#t=_(f);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let s;s=$localize`How do you want to handle existing files?`;let w;w=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let g;g=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,s,w,g,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),r(2,"h3",13),m(3,1),a(),r(4,"app-toggle-card",14),X(5,15),m(6,2),z(),r(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),r(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),r(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),a(),l(16,"input",21),a()(),r(17,"app-toggle-card",14),X(18,15),m(19,5),z(),r(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),r(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),r(26,"app-toggle-card"),X(27,15),m(28,8),z(),r(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),r(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),r(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;F("formGroup",o.optionsForm),S(4),F("disallowToggle",!0),S(9),F("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),F("disallowToggle",!0),S(19),_e("loader",o.isSubmitting())}},dependencies:[A,L,h,Oe,de,M,k,$,y,he,j,Ie,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,ee as b,$e as c,J as d,ye as e,Z as f,f as g};
1
+ import{a as j}from"./chunk-INATF4ZS.js";import{a as he}from"./chunk-NE337TA6.js";import{b as U}from"./chunk-UVM5AF3P.js";import{a as Oe,b as h,d as M,e as k,h as L,j as de,l as $,o as y,p as D,r as A}from"./chunk-MWZZ2BGA.js";import{b as I}from"./chunk-6FEY72H5.js";import{a as P,c as d}from"./chunk-TODNKYG6.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,s as Pe,x as Ie}from"./chunk-PLMZCRFV.js";import{pa as K}from"./chunk-VWJ5QJXJ.js";import{Ab as ce,Bb as ue,C as se,Cb as r,Db as a,E as O,Eb as l,Fb as X,Gb as z,I as ae,Ib as x,Ob as c,Oc as H,Pb as u,Qb as m,Ra as S,Rb as Se,S as le,Sb as Fe,Ub as T,Vb as B,Y as _,da as C,ea as R,eb as N,hc as Y,kb as V,kc as me,sc as Ee,tb as F,ua as p,v as re,vb as _e,xc as Te,yb as G,zb as pe,zc as ge}from"./chunk-I7CCITLM.js";var Me=new D,$e=()=>Me.group({passphrase:Me.control("")}),J=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let s=i.ID;this.#e.getBackup(s),this.#o.navigate([`/restore-draft/${s}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(r(0,"form",3),T("submit",function(){return o.next()}),r(1,"spk-form-field")(2,"label",4),m(3,0),a(),l(4,"input",5),a(),r(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),r(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&F("formGroup",o.encryptionForm)},dependencies:[A,L,h,M,k,$,y,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,t){n&1&&l(0,"spk-progress-bar",8)}function be(n,t){if(n&1&&(r(0,"spk-option",14),Y(1),Te(2,"date"),a()),n&2){let e=t.$implicit;F("value",e.Version),S(),me("",e.Version,": ",ge(2,3,e.Time,"medium"),"")}}function ve(n,t){if(n&1){let e=x();l(0,"spk-progress-bar",8),r(1,"button",10),T("click",function(){C(e);let i=B(2);return R(i.abortLoading())}),m(2,4),a()}}function we(n,t){if(n&1&&(r(0,"app-file-tree",15)(1,"label",16),m(2,5),a(),l(3,"input",17),a()),n&2){let e=B(3);F("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,t){if(n&1&&V(0,we,4,4,"app-file-tree",15),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,t){if(n&1&&(r(0,"spk-select",12),l(1,"input",13),ce(2,be,3,6,"spk-option",14,pe),a(),V(4,ve,3,0)(5,Ge,1,1)),n&2){let e=B();F("displayFn",e.displayFn())("hideClearButton",!0),S(2),ue(e.versionOptions()),S(2),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?4:-1),S(),G(e.showFileTree()?5:-1)}}var q=new D,ye=()=>q.group({filesToRestore:q.control(""),selectedOption:q.control(null),passphrase:q.control(null)}),Z=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);#n=_(K);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);backupSettingsEffect=H(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(s=>s.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let s={id:t+"",time:i};this.backupSettings.set(s),this.getRootPath(s)}))});rootPath=p(void 0);loadingRootPath=p(!1);getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}isRepairing=p(!1);repairEffect=H(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(O(()=>this.isRepairing.set(!1))).subscribe()}});abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[Ee([K])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let s;s=$localize`Cancel`;let w;return w=$localize`Path`,[["formRef",""],t,e,o,s,w,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",6,0),T("submit",function(){return C(i),R(o.next())}),r(2,"h3",7),m(3,1),a(),V(4,Ae,1,0,"spk-progress-bar",8)(5,xe,6,4),r(6,"div",9)(7,"button",10),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),r(10,"button",11),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(F("formGroup",o.selectFilesForm),S(4),G(o.versionOptionsLoading()?4:5),S(5),Se(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[A,L,h,M,k,$,y,K,j,v,Ne,b,Pe,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var f=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=ye();optionsForm=De();encryptionForm=$e();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(s=>s.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(s=>`${s}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:s=>{console.error("restore error",s)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),re([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(ae(3))]).pipe(se(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new D,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),ee=class n{#t=_(f);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let s;s=$localize`How do you want to handle existing files?`;let w;w=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let g;g=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,s,w,g,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),r(2,"h3",13),m(3,1),a(),r(4,"app-toggle-card",14),X(5,15),m(6,2),z(),r(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),r(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),r(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),a(),l(16,"input",21),a()(),r(17,"app-toggle-card",14),X(18,15),m(19,5),z(),r(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),r(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),r(26,"app-toggle-card"),X(27,15),m(28,8),z(),r(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),r(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),r(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;F("formGroup",o.optionsForm),S(4),F("disallowToggle",!0),S(9),F("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),F("disallowToggle",!0),S(19),_e("loader",o.isSubmitting())}},dependencies:[A,L,h,Oe,de,M,k,$,y,he,j,Ie,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,ee as b,$e as c,J as d,ye as e,Z as f,f as g};
@@ -0,0 +1 @@
1
+ import{f as a,g as b,h as c}from"./chunk-BNJ6YIRT.js";import"./chunk-INATF4ZS.js";import"./chunk-NE337TA6.js";import"./chunk-DNHLTHLR.js";import"./chunk-UVM5AF3P.js";import"./chunk-6PGJBRJV.js";import"./chunk-FUZ2WCNJ.js";import"./chunk-MWZZ2BGA.js";import"./chunk-6FEY72H5.js";import"./chunk-TODNKYG6.js";import"./chunk-CSMWKX44.js";import"./chunk-PLMZCRFV.js";import"./chunk-MKHNYYLL.js";import"./chunk-VWJ5QJXJ.js";import"./chunk-I7CCITLM.js";import"./chunk-C6Q5SG76.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};