@duplicati/ngclient 0.0.35 → 0.0.36

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 (38) hide show
  1. package/{chunk-DE2AAZUP.js → chunk-3WCWZJYH.js} +1 -1
  2. package/{chunk-X25RPH22.js → chunk-4VPUEZIU.js} +1 -1
  3. package/{chunk-L6DT3BQG.js → chunk-4XJFGB4E.js} +1 -1
  4. package/{chunk-XM4XOJPS.js → chunk-6SKCAZOP.js} +1 -1
  5. package/{chunk-QGSX2XOM.js → chunk-73OFEMRU.js} +1 -1
  6. package/{chunk-LVYTERRJ.js → chunk-7KKPI5E4.js} +1 -1
  7. package/{chunk-UPHEPMGX.js → chunk-A27JK2VW.js} +1 -1
  8. package/chunk-AUUCT7OA.js +1 -0
  9. package/{chunk-UAKB5CAQ.js → chunk-BIE2BC6X.js} +1 -1
  10. package/{chunk-2X2NVYPD.js → chunk-DAXEWTI7.js} +1 -1
  11. package/chunk-DFKPVTYK.js +1 -0
  12. package/{chunk-VOINBIWD.js → chunk-DFT2UYO6.js} +1 -1
  13. package/{chunk-NWRHNRPB.js → chunk-EV37MCYP.js} +1 -1
  14. package/{chunk-BT2JRS3A.js → chunk-GL2OCAVZ.js} +1 -1
  15. package/{chunk-GTXQM7B6.js → chunk-HGQLQ733.js} +1 -1
  16. package/{chunk-RU7EY7FN.js → chunk-IO5IBATB.js} +1 -1
  17. package/chunk-JAY2DGID.js +1 -0
  18. package/chunk-KMNTAMUY.js +1 -0
  19. package/{chunk-EWJCAT5A.js → chunk-LSBOVSYF.js} +1 -1
  20. package/{chunk-ZRCOVLAQ.js → chunk-M4CEGBQO.js} +1 -1
  21. package/{chunk-HLOYWLHV.js → chunk-M76F7EZP.js} +1 -1
  22. package/{chunk-LQUKRKUH.js → chunk-OZQD3PLH.js} +1 -1
  23. package/{chunk-B3MIBKC5.js → chunk-RDUEFPJ3.js} +1 -1
  24. package/{chunk-YCOOYSZG.js → chunk-SAKG3775.js} +1 -1
  25. package/{chunk-SZ4NLIO2.js → chunk-TW4633HQ.js} +1 -1
  26. package/chunk-WKYWPXQ6.js +1 -0
  27. package/{chunk-BJAZPKHX.js → chunk-XYNM2UME.js} +1 -1
  28. package/{chunk-IOH6RL5H.js → chunk-YXIGPDXN.js} +1 -1
  29. package/{chunk-QLPXITCK.js → chunk-Z4XFPOPE.js} +1 -1
  30. package/index.html +2 -2
  31. package/main-QY7RIEAP.js +1 -0
  32. package/package.json +1 -1
  33. package/{styles-CLP6NP2M.css → styles-DO5TEHSB.css} +1 -1
  34. package/chunk-E4CUHBCT.js +0 -1
  35. package/chunk-EHV3OZDB.js +0 -1
  36. package/chunk-NKPGP6QP.js +0 -1
  37. package/chunk-W76PK3CU.js +0 -1
  38. package/main-WGR4ZD6A.js +0 -1
@@ -0,0 +1 @@
1
+ import{$a as oe,Ab as w,Bb as le,Cb as ae,Db as ce,Eb as r,Fb as l,Gb as j,Kb as T,Kc as b,Mc as E,Nc as Z,R as U,Ra as y,Wa as ne,Wb as _,X as F,Xb as C,Ya as N,Yb as v,Za as h,Zb as a,_a as M,ab as P,ea as d,ec as pe,fa as u,fb as g,fc as V,gc as H,hb as se,hc as de,ic as k,jc as ue,kc as X,lb as x,mc as z,nc as G,oc as K,pa as Q,qa as R,ra as p,rb as re,rc as J,sa as B,vb as $,wb as I,xb as L,yb as Y,zb as q}from"./chunk-MR4RE3IB.js";import{a as A,b as W,c as ie}from"./chunk-C6Q5SG76.js";var O=["*"],Ce=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Se=["[icon]","[title]","*","[content]"];function _e(n,S){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ye(n,S){n&1&&(r(0,"spk-icon",3),k(1,"info"),l())}function ke(n,S){n&1&&(r(0,"spk-icon",3),k(1,"check-circle"),l())}function De(n,S){n&1&&(r(0,"spk-icon",3),k(1,"warning-octagon"),l())}function be(n,S){n&1&&(r(0,"spk-icon",3),k(1,"warning"),l())}function Oe(n,S){n&1&&(r(0,"spk-icon",3),k(1,"question"),l())}function we(n,S){if(n&1){let e=T();r(0,"spk-icon",7),_("click",function(){d(e);let i=C();return u(i.removeAlert())}),k(1,"plus"),l()}}var Ee=["dialogRef"];function xe(n,S){if(n&1){let e=T();r(0,"div",4),_("click",function(){d(e);let i=C();return u(i.isOpen.set(!1))}),l()}}var Te=["spk-button",""],Me=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ie=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],he=["triggerRef"],Ve=["popoverRef"],Ae=[[["","trigger",""]],"*"],Fe=["[trigger]","*"];var Re=["inputWrap"];var Pe=()=>({closeOnButton:!1,closeOnEsc:!0});var je=["option"],He=["*",[["","menu",""]]],Be=["*","[menu]"];var Le=["optionsRef"],We=["formFieldWrapper"],qe=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Ue=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"],Qe=()=>({closeOnButton:!1,closeOnEsc:!1});function Ne(n,S){if(n&1){let e=T();r(0,"spk-chip",12),_("click",function(i){let o=d(e).$implicit,s=C(3);return u(s.toggleOption(o,i))}),k(1),r(2,"spk-icon"),k(3,"x-circle"),l()()}if(n&2){let e,t=S.$implicit,i=C(3);q(i.chipClass()),y(),X(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function $e(n,S){if(n&1&&ae(0,Ne,4,3,"spk-chip",11,le),n&2){let e=C(2);ce(e.inputValue().split(","))}}function Ye(n,S){if(n&1&&(r(0,"div",6),x(1,$e,2,0),l()),n&2){let e=C();y(),w(e.inputValue().length>0?1:-1)}}function Xe(n,S){if(n&1&&(r(0,"div",6),k(1),l()),n&2){let e=C();y(),ue(e._displayValue())}}function ze(n,S){if(n&1){let e=T();r(0,"div",13),_("click",function(i){d(e);let o=C();return u(o.deselect(i))}),a(1,3),r(2,"spk-icon",14),k(3,"x-circle"),l()()}}function Ge(n,S){n&1&&(r(0,"div",8),a(1,4),r(2,"spk-icon",14),k(3,"magnifying-glass"),l()())}function Ke(n,S){if(n&1&&(r(0,"div",15),a(1,5),r(2,"spk-icon",14),k(3,"caret-down"),l()()),n&2){let e=C();L("open",e.isOpen())}}var Je=["dragImageElement"],Ze=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],et=["[sidenav]","[sidenav-closed-topbar]","*"];function tt(n,S){n&1&&j(0,"div",1,0)}function it(n,S){if(n&1){let e=T();r(0,"div",7),_("drop",function(i){d(e);let o=C();return u(o.drop(i))})("dragover",function(i){d(e);let o=C();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=C();return u(i.dragEnter())})("dragleave",function(){d(e);let i=C();return u(i.dragLeave())}),l()}}function nt(n,S){if(n&1){let e=T();r(0,"div",8),_("dragstart",function(i){d(e);let o=C();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=C();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=C();return u(o.drag(i))})("touchstart",function(i){d(e);let o=C();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=C();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=C();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=C();return u(o.touchCancel(i))}),l()}}var ot=[[["","table-header",""]],"*",[["","table-no-rows",""]]],st=["[table-header]","*","[table-no-rows]"];function rt(n,S){n&1&&j(0,"spk-progress-bar",0)}function lt(n,S){n&1&&(r(0,"div",1),a(1,2),l())}var at=["tooltipRef"],ee=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-icon"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ft=(()=>{class n{constructor(){this._el=F(B),this.alertService=p(null),this.type=p("error"),this.id=p(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&q(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},ngContentSelectors:Se,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(v(Ce),r(0,"div",1)(1,"div",2,0),a(3),l(),r(4,"div",2),x(5,_e,2,0,"spk-icon",3)(6,ye,2,0,"spk-icon",3)(7,ke,2,0,"spk-icon",3)(8,De,2,0,"spk-icon",3)(9,be,2,0,"spk-icon",3)(10,Oe,2,0,"spk-icon",3),l(),r(11,"div",4),a(12,1),a(13,2),l(),x(14,we,2,0,"spk-icon",5),r(15,"div",6),a(16,3),l()()),t&2){let o,s=de(2);y(),I("display",s.children.length?"block":"none"),y(4),w((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),y(9),w(i.id()?14:-1)}},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})();var Rt=(()=>{class n{constructor(){this.alertHistory=h([]),this.alertHistoryIsOpen=h(!1),this.alertHistoryIsHidden=h(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[W(A({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>W(A({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>W(A({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ct={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},pt=(()=>{class n{constructor(){this.dialogRef=M("dialogRef"),this.isOpen=P(!1),this.options=p(),this.closed=R(),this.defaultOptionMerge=b(()=>A(A({},ct),this.options())),this.abortController=null,this.isOpenEffect=E(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&V(i.dialogRef,Ee,5),t&2&&H()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:O,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(v(),r(0,"dialog",1,0)(2,"div",2),a(3),l(),x(4,xe,1,0,"div",3),l()),t&2){let o,s,c,f;I("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(c=i.defaultOptionMerge().maxHeight)!==null&&c!==void 0?c:"")("height",(f=i.defaultOptionMerge().height)!==null&&f!==void 0?f:""),y(4),w(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Pt=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=F(re),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#l(),te=t||{},{data:s,closed:c}=te,f=ie(te,["data","closed"]);this.compRef&&this.#r(),this.insertedCompRef=Z(e,{environmentInjector:i}),this.compRef=Z(pt,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let D=this.insertedCompRef.instance?.data,m=this.insertedCompRef.instance?.closed;if(s){if(N(D))this.insertedCompRef.setInput("data",s);else if(!N(D))throw new Error("data is not an input signal on the passed component")}m instanceof Q&&(this.closedFieldSub=m.subscribe((...ve)=>{c?.(...ve),this.#r()})),this.#t.attachView(this.insertedCompRef.hostView),this.#t.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",f),this.compRef.instance.closed.subscribe(()=>ge());let me=this;function ge(){m&&m instanceof Q?m.emit(!1):c?.(void 0),me.#r()}return this.insertedCompRef.instance}#l(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#r(){this.insertedCompRef&&(this.#t.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#t.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#r()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=U({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),jt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-button-group"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),dt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["","spk-button",""]],attrs:Te,ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Ht=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-card"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Bt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&_("click",function(){return i.onClick()})},ngContentSelectors:O,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(v(),r(0,"div",0)(1,"spk-icon",1),k(2,"check"),l(),r(3,"spk-icon",2),k(4,"minus"),l()(),a(5))},dependencies:[ee],encapsulation:2,changeDetection:0})}}return n})(),ut=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-chip"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),ht=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let c=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},f=function(){window.setTimeout(c,0)};var i=c,o=f;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",c),s.addEventListener("cut",f),s.addEventListener("paste",f),s.addEventListener("drop",f),s.addEventListener("keydown",f),s.focus(),s.select(),c()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&_("click",function(){return i.onClick()})},ngContentSelectors:Ie,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(v(Me),a(0),r(1,"div",0)(2,"div",1),a(3,1),a(4,2),l(),j(5,"div",2),a(6,3),a(7,4),a(8,5),j(9,"div",3),a(10,6),l(),r(11,"div",4)(12,"div",5),a(13,7),l(),r(14,"div",6),a(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})(),ft={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},fe=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.disableOpenByClick=p(!1),this.isOpen=P(!1),this.options=p(),this.closed=R(),this.defaultOptionMerge=b(()=>A(A({},ft),this.options())),this.triggerRef=M.required("triggerRef"),this.popoverRef=M.required("popoverRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.openAbort=null,this.isCalculatingPosition=b(()=>{let e=this.popoverRef()?.nativeElement;return this.isOpen()?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,e?.showPopover(),document.addEventListener("keydown",i=>{i.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&i.preventDefault(),i.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{capture:!0,signal:this.abortController?.signal}),!0):(e.hidePopover(),this.abortController?.abort(),this.openAbort?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.popoverRef,Ve,5)),t&2&&H(2)},hostVars:4,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Fe,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();v(Ae),r(0,"div",2,0),_("click",function(c){return d(o),u(i.toggleIsOpen(c))}),r(2,"div",3),a(3),l(),r(4,"button",4),k(5,"Open popover"),l()(),r(6,"div",5,1)(8,"div",6),_("click",function(c){return d(o),u(i.isOpen()&&i.eventClose(c))}),l(),a(9,1),l()}t&2&&(I("anchor-name",i.id()),y(6),Y(i.menuStyle()),I("position-anchor",i.id()))},dependencies:[dt],encapsulation:2,changeDetection:0})}}return n})();var Lt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-list"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),Wt=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=P(!1),this.closed=R(),this.activeOptionIndex=h(-1),this.options=oe("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=E(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&pe(o,i.options,je,4),t&2&&H()},hostBindings:function(t,i){t&1&&_("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Be,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();v(He),r(0,"spk-popover",1,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),_("closed",function(){return d(o),u(i.close("fromPopover"))}),r(2,"div",2),_("click",function(){return d(o),u(i.isOpen.set(!0))}),a(3),l(),r(4,"div",3),_("click",function(){return d(o),u(i.close("active"))}),a(5,1),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",J(5,Pe)))},dependencies:[fe],encapsulation:2,changeDetection:0})}}return n})(),mt=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&j(0,"div",0),t&2&&I("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),qt=(()=>{class n{#e=F(B);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&_("click",function(){return i.onClick()})},ngContentSelectors:O,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(v(),j(0,"div",0),a(1))},encapsulation:2,changeDetection:0})}}return n})();var Ut=(()=>{class n{constructor(){this.value=p(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})(),gt=["primary","accent","tertiary","warn","success"],Qt=(()=>{class n{constructor(){this.#e=F(ne),this.#t=F(B),this.#l=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&t.target instanceof HTMLElement){let i=[...Array.from(t.addedNodes),...Array.from(t.removedNodes)];for(let o=0;o<i.length;o++){let s=i[o];(s.nodeName==="OPTION"||s.nodeName==="SPK-OPTION")&&this.#s.set(!this.#s())}}}),this.optionsRef=M("optionsRef"),this.formFieldWrapperRef=M.required("formFieldWrapper"),this.inputWrapRef=M.required("inputWrap"),this.inputValue=P(""),this.readonly=p(!1),this.isFreeText=p(!1),this.selectMultiple=p(!1),this.hideClearButton=p(!1),this.displayValue=p(""),this.displayFn=p(e=>`${e}`),this.above=p(!1),this.right=p(!1),this.change=R(),this.#r=h(!1),this.#s=h(!1),this.#i=h(null),this.#a=h(null),this.#c=h(!1),this.#n=h(-1),this.isOpen=h(!1),this._isOpen=h(!1),this.#h=E(()=>{this._isOpen.set(this.isOpen()&&this.#o().length>0)}),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.optionsEl=b(()=>this.optionsRef()?.nativeElement),this.#o=b(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>gt.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#a()?this.#o().find(e=>(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))===this.#a()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#f=E(()=>{this.#r();let e=this.#t.nativeElement.querySelector("input");e&&(this.#y(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#d()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#m=E(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.#o().length-1?this.#n.set(this.#u()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.#o().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal})}),this.#g=E(()=>{this.isOpen()&&this.#_()}),this.#v=E(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#p=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#r.set(!this.#r())})}#e;#t;#l;#r;#s;#i;#a;#c;#n;#h;#o;#f;#m;#g;#v;ngOnInit(){typeof MutationObserver<"u"&&this.#p.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#u()),this.#c.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#c.set(!1),this.#a.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.#o(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.#s.set(!this.#s());let t=this.#a();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#c.set(!1),e||this.#i()?.blur(),typeof MutationObserver<"u"&&this.#l.disconnect(),this.#S()}open(e){e.preventDefault(),!this.isOpen()&&(typeof MutationObserver<"u"&&this.#l.observe(this.optionsEl(),{childList:!0,subtree:!0}),this.isSearchInput()&&!this.#c()&&!this.isFreeText()?(this.#a.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.#s.set(!this.#s()),this.isOpen.set(!0),this.#c.set(!0),this.#C(),this.#d())}#C(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsEl()?.addEventListener("click",e=>{if(!e.target)return;this.#s.set(!this.#s());let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#S(){this.clickController&&this.clickController.abort()}#_(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#e.removeClass(t,"focused"),this.#n()===e&&(this.#e.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#d(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#u(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#p;#y(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&(this.#p.disconnect(),this.#l.disconnect())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(V(i.optionsRef,Le,5),V(i.formFieldWrapperRef,We,5),V(i.inputWrapRef,Re,5)),t&2&&H(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:Ue,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();v(qe),r(0,"spk-popover",3,0),K("isOpenChange",function(c){return d(o),G(i.isOpen,c)||(i.isOpen=c),u(c)}),_("closed",function(){return d(o),u(i.close())}),r(2,"spk-form-field",4),_("click",function(c){return d(o),u(i.open(c))}),a(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),x(6,Ye,2,1,"div",6)(7,Xe,2,1,"div",6),a(8,1),l(),x(9,ze,4,0,"div",7)(10,Ge,4,0,"div",8)(11,Ke,4,2,"div",9),l(),r(12,"div",10,2),a(14,2),l()()}t&2&&(z("isOpen",i.isOpen),$("disableOpenByClick",!0)("options",J(7,Qe)),y(2),q(i.readonly()?"readonly":""),y(4),w(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),y(3),w((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[ht,ee,ut,fe],encapsulation:2,changeDetection:0})}}return n})(),Nt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=P(!1),this.type=p(""),this.dragImageElement=M.required("dragImageElement"),this.dragIsEnding=h(!1),this.dragIsOnScreen=h(!0),this.isDragging=h(!1),this.dragPositionX=h(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=E(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&V(i.dragImageElement,Je,5),t&2&&H()},hostVars:10,hostBindings:function(t,i){t&2&&L("open",i.isOpen())("closed",!i.isOpen())("overlay",i.type()==="overlay")("simple",i.type()==="simple")("is-dragging",i.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"],type:[1,"type"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:et,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(v(Ze),x(0,tt,2,0,"div",1)(1,it,1,0,"div",2),r(2,"div",3),a(3),l(),r(4,"div",4),x(5,nt,1,0,"div",5),r(6,"div",6),a(7,1),l(),r(8,"main"),a(9,2),l()()),t&2&&(w(i.type()==="overlay"?0:-1),y(),w(i.type()==="overlay"&&i.isDragging()?1:-1),y(3),I("transform",i.draggingStyle()),y(),w(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var $t=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-stepper"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var Yt=(()=>{class n{constructor(){this.tableColumns=p([]),this.loading=p(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=p([]),this.dataChange=R(),this.#e=null,this.#t=h(!1),this.sortByColumn=P(null),this.e=E(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,c)=>{let f=s[t],D=c[t],m=0;return typeof f=="number"&&typeof D=="number"&&(m=f-D),f instanceof Date&&D instanceof Date&&(m=f.getTime()-D.getTime()),typeof f=="string"&&typeof D=="string"&&(m=f.localeCompare(D,void 0,{sensitivity:"base"})),i?-m:m});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&I("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:st,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(v(ot),r(0,"thead"),a(1),x(2,rt,1,0,"spk-progress-bar",0),l(),r(3,"tbody"),a(4,1),l(),x(5,lt,2,0,"div",1)),t&2&&(y(2),w(i.loading()?2:-1),y(3),w(i.loading()?-1:5))},dependencies:[mt],encapsulation:2,changeDetection:0})}}return n})(),Xt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tabs"]],ngContentSelectors:O,decls:1,vars:0,template:function(t,i){t&1&&(v(),a(0))},encapsulation:2,changeDetection:0})}}return n})();var zt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-toggle"]],ngContentSelectors:O,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(v(),r(0,"div",0),j(1,"div",1),l(),a(2))},encapsulation:2,changeDetection:0})}}return n})(),Gt=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.message=p.required(),this.isOpen=P(!1),this.closed=R(),this.triggerRef=M.required("triggerRef"),this.tooltipRef=M.required("tooltipRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,f=s+t.width>window.innerWidth,D=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(D),this._right.set(f);else{if(this.above()){let m=e.top-t.height-this.#e;m>=0&&(c=m)}else D&&(c=e.top-t.height-this.#e);if(this.right()){let m=e.right-t.width;m>=0&&(s=m)}else f&&(c=D?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=g({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(V(i.triggerRef,he,5),V(i.tooltipRef,at,5)),t&2&&H(2)},hostVars:6,hostBindings:function(t,i){t&2&&L("above",i._above())("right",i._right())("disabled",i.disabled())},inputs:{disabled:[1,"disabled"],above:[1,"above"],right:[1,"right"],message:[1,"message"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:O,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();v(),r(0,"div",2,0),_("mouseover",function(){return d(o),u(i.isOpen.set(!0))})("mouseout",function(){return d(o),u(i.isOpen.set(!1))}),a(2),l(),r(3,"div",3,1),k(5),l()}t&2&&(I("anchor-name",i.id()),y(3),Y(i.menuStyle()),I("position-anchor",i.id()),y(2),X(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})(),Kt=(()=>{class n{constructor(){this.filesOver=h(!1),this.filesDropped=R()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&_("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&L("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ee as a,Ft as b,Rt as c,pt as d,Pt as e,jt as f,dt as g,Ht as h,Bt as i,ut as j,ht as k,Lt as l,Wt as m,mt as n,qt as o,Ut as p,Qt as q,Nt as r,$t as s,Yt as t,Xt as u,zt as v,Gt as w,Kt as x};
@@ -1 +1 @@
1
- import{a as Ke}from"./chunk-K7H3KYW7.js";import{a as A}from"./chunk-N35HGIXN.js";import{a as Pe}from"./chunk-V7APGUBT.js";import"./chunk-KFGIVU27.js";import{a as Be}from"./chunk-DGBBEZNN.js";import{b as he,d as Re,e as Ge,g as ye,h as Oe,j as $e,l as Ae,m as be,o as ve,p as De,q as ke,r as Le,s as xe,t as we}from"./chunk-7SJHYZC5.js";import{a as Me}from"./chunk-6M3MNJ52.js";import{a as We}from"./chunk-SZ4NLIO2.js";import"./chunk-QZCTOSPE.js";import{a as Ie}from"./chunk-PIDBEXSZ.js";import{g as Xe,k as Ue,o as ze,q as Ve}from"./chunk-EHV3OZDB.js";import"./chunk-5XX7BU4I.js";import"./chunk-5ZK3D2RS.js";import"./chunk-OVIL3KMN.js";import{Ab as g,Bb as P,Cb as h,Db as R,Eb as i,Fb as o,Gb as p,Hb as de,Ib as ce,K as y,Kb as M,Kc as fe,Mc as Fe,Oa as Se,Qb as E,Ra as s,Rb as N,Sb as _,Tb as D,Ub as k,Vb as ge,Wb as u,X as I,Xb as c,Za as C,_b as me,c as _e,ea as m,fa as T,fb as pe,ic as f,jc as O,kc as $,lb as b,mc as Te,nc as Ce,oc as Ee,p as ue,rc as Ne,vb as d,xb as v}from"./chunk-MR4RE3IB.js";import"./chunk-C6Q5SG76.js";var He=()=>({standalone:!0});function Je(l,e){if(l&1){let t=M();i(0,"spk-form-field",63),p(1,"input",64),o(),i(2,"button",65),u("click",function(){m(t);let r=c(2);return T(r.beginRemoteRegistration())}),_(3,24),o()}}function Qe(l,e){if(l&1&&(i(0,"div",61)(1,"label"),_(2,25),o(),i(3,"a",66),f(4),o()()),l&2){let t=c(2);s(3),me("href",t.remoteControlClaimUrl(),Se),s(),O(t.remoteControlClaimUrl())}}function Ye(l,e){l&1&&(i(0,"div",61)(1,"label"),_(2,26),o()())}function Ze(l,e){if(l&1){let t=M();i(0,"button",65),u("click",function(){m(t);let r=c(2);return T(r.cancelRemoteRegistration())}),_(1,27),o()}}function et(l,e){if(l&1){let t=M();i(0,"button",65),u("click",function(){m(t);let r=c(2);return T(r.disableRemoteControl())}),_(1,28),o()}}function tt(l,e){if(l&1){let t=M();i(0,"button",65),u("click",function(){m(t);let r=c(2);return T(r.enableRemoteControl())}),_(1,29),o(),i(2,"button",67),u("click",function(){m(t);let r=c(2);return T(r.deleteRemoteControl())}),_(3,30),o()}}function nt(l,e){if(l&1&&(i(0,"div",36),b(1,Je,4,0)(2,Qe,5,2,"div",61)(3,Ye,3,0,"div",61)(4,Ze,2,0,"button",62)(5,et,2,0,"button",62)(6,tt,4,0),o()),l&2){let t=c();s(),g(t.remoteControlState()==="inactive"?1:-1),s(),g(t.remoteControlState()==="registered"?2:-1),s(),g(t.remoteControlState()==="registering"?3:-1),s(),g(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),g(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),g(t.remoteControlState()==="disabled"?6:-1)}}function it(l,e){if(l&1&&(i(0,"option",41),f(1),o()),l&2){let t=e.$implicit;d("value",t),s(),O(t)}}function ot(l,e){if(l&1){let t=M();i(0,"option",68),u("click",function(){let r=m(t).$implicit,S=c();return T(S.pauseSettings.controls.timeType.setValue(r.value))}),f(1),o()}if(l&2){let t=e.$implicit;d("value",t.value),s(),$(" ",t.label," ")}}function rt(l,e){if(l&1&&(i(0,"option",41),f(1),o()),l&2){let t=e.$implicit;d("value",t.value),s(),$(" ",t.label," ")}}function lt(l,e){if(l&1&&(i(0,"option",41),f(1),o()),l&2){let t=e.$implicit;d("value",t.value),s(),$(" ",t.label," ")}}var F=new Le,qe=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],je=[{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`}],L=class l{#i=I(Be);#r=I(Pe);#e=I(Ie);#o=I(Me);#l=this.#o.getItem("locale")??"en-US";sysinfo=this.#r.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=C("list");langCtrl=C(this.#l);settingsForm=F.group({pauseSettings:F.group({time:F.control(0),timeType:F.control("s")}),usageStatistics:F.control(""),updateChannel:F.control(""),remoteControlRegisterUrl:F.control("")});remoteControlState=C("unknown");remoteControlClaimUrl=C(null);sysInfoEffect=Fe(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}timeTypeOptions=C(qe);timeOptions=Ke([this.pauseSettings.controls.timeType.valueChanges.pipe(y("s")),this.pauseSettings.controls.time.valueChanges.pipe(y(null))],_e(ue(([e,t])=>{let n=this.#a(e);return t!==null?n.filter(r=>r.toString().includes(t.toString())):n}),y([])));languageOptions=fe(()=>{let e=this.langCtrl();return e?A.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):A});usageStatisticsOptions=C(je);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),r=t.slice(0,-1),S=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:S.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?A.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:qe.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:je.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#a(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,r)=>r)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log("currentRemoteControlState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>{this.#t(n)},error:n=>{this.#n(n)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>{this.#t(n)},error:n=>{this.#n(n)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>{this.#t(n)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=pe({type:l,selectors:[["app-settings"]],decls:107,vars:18,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize`Save changes`;let r;r=$localize`Remote access control`;let S;S=$localize`Pause after startup or hibernation`;let x;x=$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 w;w=$localize`Color theme`;let X;X=$localize`Customize your application theme`;let U;U=$localize`Language`;let z;z=$localize`Select a language for the platform`;let V;V=$localize`Update channel`;let B;B=$localize`Update channel selection is not implemented yet.`;let W;W=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) ${"\uFFFD#66\uFFFD\uFFFD/#66\uFFFD"}:TAG_INPUT:`;let K;K=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let q;q=$localize` Stable ${"\uFFFD#72\uFFFD\uFFFD/#72\uFFFD"}:TAG_INPUT:`;let j;j=$localize`Official releases`;let H;H=$localize` Beta ${"\uFFFD#78\uFFFD\uFFFD/#78\uFFFD"}:TAG_INPUT:`;let J;J=$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 Q;Q=$localize` Experimental ${"\uFFFD#84\uFFFD\uFFFD/#84\uFFFD"}:TAG_INPUT:`;let Y;Y=$localize`Specific builds for developers only. Not for use with important data.`;let Z;Z=$localize` Canary ${"\uFFFD#90\uFFFD\uFFFD/#90\uFFFD"}:TAG_INPUT:`;let ee;ee=$localize`Individual builds for developers only. Not for use with important data.`;let te;te=$localize`Usage statistics`;let G;G=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#99\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#99\uFFFD"}:CLOSE_LINK:${"[\uFFFD#100\uFFFD\uFFFD/#100\uFFFD|\uFFFD#101\uFFFD\uFFFD/#101\uFFFD]"}:LINE_BREAK:${"[\uFFFD#100\uFFFD\uFFFD/#100\uFFFD|\uFFFD#101\uFFFD\uFFFD/#101\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. `,G=ge(G);let ne;ne=$localize` Register for remote control `;let ie;ie=$localize`Machine is now registered, open this link to add it to your account:`;let oe;oe=$localize`Registering, please wait...`;let re;re=$localize` Cancel registration `;let le;le=$localize` Disable remote control `;let ae;ae=$localize` Enable remote control `;let se;return se=$localize` Delete remote control setup `,[e,t,n,r,S,x,w,X,U,z,V,B,W,K,q,j,H,J,Q,Y,Z,ee,te,G,ne,ie,oe,re,le,ae,se,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["options",""],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]]},template:function(t,n){if(t&1&&(p(0,"app-status-bar"),i(1,"form",31),u("submit",function(){return n.submit()}),i(2,"header")(3,"div",32)(4,"h2"),_(5,0),o(),i(6,"p"),_(7,1),o()(),i(8,"button",33),_(9,2),o()(),i(10,"section")(11,"div",34)(12,"h3"),_(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",35),b(17,nt,7,6,"div",36),o()(),i(18,"section")(19,"div",34)(20,"h3"),_(21,4),o(),i(22,"p"),_(23,5),o()(),i(24,"div",37)(25,"div",38)(26,"spk-select",39),p(27,"input",40),h(28,it,2,2,"option",41,P),o(),i(30,"spk-select",42),p(31,"input",43),de(32,44),h(33,ot,2,2,"option",41,P),ce(),o()()()(),i(35,"section")(36,"div",34)(37,"h3"),_(38,6),o(),i(39,"p"),_(40,7),o()(),i(41,"div",37)(42,"div",45)(43,"img",46),u("click",function(){return n.setLightMode()}),o(),i(44,"img",47),u("click",function(){return n.setDarkMode()}),o()()()(),i(45,"section")(46,"div",34)(47,"h3"),_(48,8),o(),i(49,"p"),_(50,9),o()(),i(51,"div",37)(52,"spk-select",48),u("change",function(S){return n.saveLocale(S)}),i(53,"input",49),Ee("ngModelChange",function(S){return Ce(n.langCtrl,S)||(n.langCtrl=S),S}),o(),h(54,rt,2,2,"option",41,P),o()()(),i(56,"section")(57,"div",34)(58,"h3"),_(59,10),o(),i(60,"p"),_(61,11),o()(),i(62,"div",50)(63,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("")}),i(64,"spk-radio",52),E(65,12),p(66,"input",53),N(),o(),i(67,"p"),_(68,13),o()(),i(69,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("stable")}),i(70,"spk-radio",52),E(71,14),p(72,"input",54),N(),o(),i(73,"p"),_(74,15),o()(),i(75,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("beta")}),i(76,"spk-radio",52),E(77,16),p(78,"input",55),N(),o(),i(79,"p"),_(80,17),o()(),i(81,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("experimental")}),i(82,"spk-radio",52),E(83,18),p(84,"input",56),N(),o(),i(85,"p"),_(86,19),o()(),i(87,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("canary")}),i(88,"spk-radio",52),E(89,20),p(90,"input",57),N(),o(),i(91,"p"),_(92,21),o()()()(),i(93,"section")(94,"div",34)(95,"h3"),_(96,22),o(),i(97,"p"),E(98,23),p(99,"a",58)(100,"br")(101,"br"),N(),o()(),i(102,"div",37)(103,"spk-select",59),p(104,"input",60),h(105,lt,2,2,"option",41,P),o()()()()),t&2){let r,S;s(),d("formGroup",n.settingsForm),s(14),O(n.getRemoteControlStatusText()),s(2),g(n.remoteControlState()!=="unknown"?17:-1),s(9),d("hideClearButton",!0),s(2),R(n.timeOptions()),s(2),d("displayFn",n.typeDisplay())("hideClearButton",!0),s(3),R(n.timeTypeOptions()),s(10),v("active",!n.isDarkMode()),s(),v("active",n.isDarkMode()),s(8),d("displayFn",n.languageDisplay())("hideClearButton",!0),s(),Te("ngModel",n.langCtrl),d("ngModelOptions",Ne(17,He)),s(),R(n.languageOptions()),s(12),D((r=n.sysinfo())==null?null:r.DefaultUpdateChannel),k(65),s(2),D((S=n.sysinfo())==null?null:S.ServerVersionType),k(68),s(35),d("displayFn",n.usageDisplay()),s(2),R(n.usageStatisticsOptions())}},dependencies:[xe,Oe,De,ke,he,$e,Re,Ge,ye,we,Ae,ve,be,We,Xe,ze,Ue,Ve],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}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%] .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%}.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}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{L as default};
1
+ import{a as Ke}from"./chunk-K7H3KYW7.js";import{a as We}from"./chunk-TW4633HQ.js";import{a as A}from"./chunk-N35HGIXN.js";import{a as Pe}from"./chunk-V7APGUBT.js";import"./chunk-KFGIVU27.js";import{a as Be}from"./chunk-DGBBEZNN.js";import"./chunk-QZCTOSPE.js";import{b as he,d as Re,e as Ge,g as ye,h as Oe,j as $e,l as Ae,m as be,o as ve,p as De,q as ke,r as Le,s as xe,t as we}from"./chunk-7SJHYZC5.js";import{a as Me}from"./chunk-6M3MNJ52.js";import{g as Xe,k as Ue,o as ze,q as Ve}from"./chunk-AUUCT7OA.js";import{a as Ie}from"./chunk-PIDBEXSZ.js";import"./chunk-5XX7BU4I.js";import"./chunk-OVIL3KMN.js";import"./chunk-5ZK3D2RS.js";import{Ab as g,Bb as P,Cb as h,Db as R,Eb as i,Fb as o,Gb as p,Hb as de,Ib as ce,K as y,Kb as M,Kc as fe,Mc as Fe,Oa as Se,Qb as E,Ra as s,Rb as N,Sb as _,Tb as D,Ub as k,Vb as ge,Wb as u,X as I,Xb as c,Za as C,_b as me,c as _e,ea as m,fa as T,fb as pe,ic as f,jc as O,kc as $,lb as b,mc as Te,nc as Ce,oc as Ee,p as ue,rc as Ne,vb as d,xb as v}from"./chunk-MR4RE3IB.js";import"./chunk-C6Q5SG76.js";var He=()=>({standalone:!0});function Je(l,e){if(l&1){let t=M();i(0,"spk-form-field",63),p(1,"input",64),o(),i(2,"button",65),u("click",function(){m(t);let r=c(2);return T(r.beginRemoteRegistration())}),_(3,24),o()}}function Qe(l,e){if(l&1&&(i(0,"div",61)(1,"label"),_(2,25),o(),i(3,"a",66),f(4),o()()),l&2){let t=c(2);s(3),me("href",t.remoteControlClaimUrl(),Se),s(),O(t.remoteControlClaimUrl())}}function Ye(l,e){l&1&&(i(0,"div",61)(1,"label"),_(2,26),o()())}function Ze(l,e){if(l&1){let t=M();i(0,"button",65),u("click",function(){m(t);let r=c(2);return T(r.cancelRemoteRegistration())}),_(1,27),o()}}function et(l,e){if(l&1){let t=M();i(0,"button",65),u("click",function(){m(t);let r=c(2);return T(r.disableRemoteControl())}),_(1,28),o()}}function tt(l,e){if(l&1){let t=M();i(0,"button",65),u("click",function(){m(t);let r=c(2);return T(r.enableRemoteControl())}),_(1,29),o(),i(2,"button",67),u("click",function(){m(t);let r=c(2);return T(r.deleteRemoteControl())}),_(3,30),o()}}function nt(l,e){if(l&1&&(i(0,"div",36),b(1,Je,4,0)(2,Qe,5,2,"div",61)(3,Ye,3,0,"div",61)(4,Ze,2,0,"button",62)(5,et,2,0,"button",62)(6,tt,4,0),o()),l&2){let t=c();s(),g(t.remoteControlState()==="inactive"?1:-1),s(),g(t.remoteControlState()==="registered"?2:-1),s(),g(t.remoteControlState()==="registering"?3:-1),s(),g(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),g(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),g(t.remoteControlState()==="disabled"?6:-1)}}function it(l,e){if(l&1&&(i(0,"option",41),f(1),o()),l&2){let t=e.$implicit;d("value",t),s(),O(t)}}function ot(l,e){if(l&1){let t=M();i(0,"option",68),u("click",function(){let r=m(t).$implicit,S=c();return T(S.pauseSettings.controls.timeType.setValue(r.value))}),f(1),o()}if(l&2){let t=e.$implicit;d("value",t.value),s(),$(" ",t.label," ")}}function rt(l,e){if(l&1&&(i(0,"option",41),f(1),o()),l&2){let t=e.$implicit;d("value",t.value),s(),$(" ",t.label," ")}}function lt(l,e){if(l&1&&(i(0,"option",41),f(1),o()),l&2){let t=e.$implicit;d("value",t.value),s(),$(" ",t.label," ")}}var F=new Le,qe=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],je=[{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`}],L=class l{#i=I(Be);#r=I(Pe);#e=I(Ie);#o=I(Me);#l=this.#o.getItem("locale")??"en-US";sysinfo=this.#r.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=C("list");langCtrl=C(this.#l);settingsForm=F.group({pauseSettings:F.group({time:F.control(0),timeType:F.control("s")}),usageStatistics:F.control(""),updateChannel:F.control(""),remoteControlRegisterUrl:F.control("")});remoteControlState=C("unknown");remoteControlClaimUrl=C(null);sysInfoEffect=Fe(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")});get pauseSettings(){return this.settingsForm.controls.pauseSettings}timeTypeOptions=C(qe);timeOptions=Ke([this.pauseSettings.controls.timeType.valueChanges.pipe(y("s")),this.pauseSettings.controls.time.valueChanges.pipe(y(null))],_e(ue(([e,t])=>{let n=this.#a(e);return t!==null?n.filter(r=>r.toString().includes(t.toString())):n}),y([])));languageOptions=fe(()=>{let e=this.langCtrl();return e?A.filter(t=>t.label.toLowerCase().includes(e.toLowerCase())):A});usageStatisticsOptions=C(je);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}saveLocale(e){this.#o.setItem("locale",e),window.location.reload()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"],n=t.slice(-1),r=t.slice(0,-1),S=["s","m","h"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(r==""?"0":r),timeType:S.includes(n)?n:"s"},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(){let e=this;return()=>{let t=e.langCtrl();return t?A.find(n=>n.value===t)?.label??null:null}}typeDisplay(){let e=this;return()=>{let t=e.settingsForm.value.pauseSettings?.timeType;return t==null?null:qe.find(n=>n.value===t)?.label??null}}usageDisplay(){let e=this;return()=>{let t=e.settingsForm.value.usageStatistics;return t==null?null:je.find(n=>n.value===t)?.label??null}}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#a(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((n,r)=>r)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log("currentRemoteControlState: ",t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>{this.#t(n)},error:n=>{this.#n(n)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:n=>{this.#t(n)},error:n=>{this.#n(n)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:n=>{this.#t(n)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||l)};static \u0275cmp=pe({type:l,selectors:[["app-settings"]],decls:107,vars:18,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize`Save changes`;let r;r=$localize`Remote access control`;let S;S=$localize`Pause after startup or hibernation`;let x;x=$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 w;w=$localize`Color theme`;let X;X=$localize`Customize your application theme`;let U;U=$localize`Language`;let z;z=$localize`Select a language for the platform`;let V;V=$localize`Update channel`;let B;B=$localize`Update channel selection is not implemented yet.`;let W;W=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) ${"\uFFFD#66\uFFFD\uFFFD/#66\uFFFD"}:TAG_INPUT:`;let K;K=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let q;q=$localize` Stable ${"\uFFFD#72\uFFFD\uFFFD/#72\uFFFD"}:TAG_INPUT:`;let j;j=$localize`Official releases`;let H;H=$localize` Beta ${"\uFFFD#78\uFFFD\uFFFD/#78\uFFFD"}:TAG_INPUT:`;let J;J=$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 Q;Q=$localize` Experimental ${"\uFFFD#84\uFFFD\uFFFD/#84\uFFFD"}:TAG_INPUT:`;let Y;Y=$localize`Specific builds for developers only. Not for use with important data.`;let Z;Z=$localize` Canary ${"\uFFFD#90\uFFFD\uFFFD/#90\uFFFD"}:TAG_INPUT:`;let ee;ee=$localize`Individual builds for developers only. Not for use with important data.`;let te;te=$localize`Usage statistics`;let G;G=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#99\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#99\uFFFD"}:CLOSE_LINK:${"[\uFFFD#100\uFFFD\uFFFD/#100\uFFFD|\uFFFD#101\uFFFD\uFFFD/#101\uFFFD]"}:LINE_BREAK:${"[\uFFFD#100\uFFFD\uFFFD/#100\uFFFD|\uFFFD#101\uFFFD\uFFFD/#101\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. `,G=ge(G);let ne;ne=$localize` Register for remote control `;let ie;ie=$localize`Machine is now registered, open this link to add it to your account:`;let oe;oe=$localize`Registering, please wait...`;let re;re=$localize` Cancel registration `;let le;le=$localize` Disable remote control `;let ae;ae=$localize` Enable remote control `;let se;return se=$localize` Delete remote control setup `,[e,t,n,r,S,x,w,X,U,z,V,B,W,K,q,j,H,J,Q,Y,Z,ee,te,G,ne,ie,oe,re,le,ae,se,[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"hideClearButton"],["type","search","formControlName","time"],[3,"value"],[3,"displayFn","hideClearButton"],["type","text","formControlName","timeType"],["options",""],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[3,"change","displayFn","hideClearButton"],["type","search",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],[3,"displayFn"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]]},template:function(t,n){if(t&1&&(p(0,"app-status-bar"),i(1,"form",31),u("submit",function(){return n.submit()}),i(2,"header")(3,"div",32)(4,"h2"),_(5,0),o(),i(6,"p"),_(7,1),o()(),i(8,"button",33),_(9,2),o()(),i(10,"section")(11,"div",34)(12,"h3"),_(13,3),o(),i(14,"p"),f(15),o()(),i(16,"div",35),b(17,nt,7,6,"div",36),o()(),i(18,"section")(19,"div",34)(20,"h3"),_(21,4),o(),i(22,"p"),_(23,5),o()(),i(24,"div",37)(25,"div",38)(26,"spk-select",39),p(27,"input",40),h(28,it,2,2,"option",41,P),o(),i(30,"spk-select",42),p(31,"input",43),de(32,44),h(33,ot,2,2,"option",41,P),ce(),o()()()(),i(35,"section")(36,"div",34)(37,"h3"),_(38,6),o(),i(39,"p"),_(40,7),o()(),i(41,"div",37)(42,"div",45)(43,"img",46),u("click",function(){return n.setLightMode()}),o(),i(44,"img",47),u("click",function(){return n.setDarkMode()}),o()()()(),i(45,"section")(46,"div",34)(47,"h3"),_(48,8),o(),i(49,"p"),_(50,9),o()(),i(51,"div",37)(52,"spk-select",48),u("change",function(S){return n.saveLocale(S)}),i(53,"input",49),Ee("ngModelChange",function(S){return Ce(n.langCtrl,S)||(n.langCtrl=S),S}),o(),h(54,rt,2,2,"option",41,P),o()()(),i(56,"section")(57,"div",34)(58,"h3"),_(59,10),o(),i(60,"p"),_(61,11),o()(),i(62,"div",50)(63,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("")}),i(64,"spk-radio",52),E(65,12),p(66,"input",53),N(),o(),i(67,"p"),_(68,13),o()(),i(69,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("stable")}),i(70,"spk-radio",52),E(71,14),p(72,"input",54),N(),o(),i(73,"p"),_(74,15),o()(),i(75,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("beta")}),i(76,"spk-radio",52),E(77,16),p(78,"input",55),N(),o(),i(79,"p"),_(80,17),o()(),i(81,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("experimental")}),i(82,"spk-radio",52),E(83,18),p(84,"input",56),N(),o(),i(85,"p"),_(86,19),o()(),i(87,"div",51),u("click",function(){return n.settingsForm.controls.updateChannel.setValue("canary")}),i(88,"spk-radio",52),E(89,20),p(90,"input",57),N(),o(),i(91,"p"),_(92,21),o()()()(),i(93,"section")(94,"div",34)(95,"h3"),_(96,22),o(),i(97,"p"),E(98,23),p(99,"a",58)(100,"br")(101,"br"),N(),o()(),i(102,"div",37)(103,"spk-select",59),p(104,"input",60),h(105,lt,2,2,"option",41,P),o()()()()),t&2){let r,S;s(),d("formGroup",n.settingsForm),s(14),O(n.getRemoteControlStatusText()),s(2),g(n.remoteControlState()!=="unknown"?17:-1),s(9),d("hideClearButton",!0),s(2),R(n.timeOptions()),s(2),d("displayFn",n.typeDisplay())("hideClearButton",!0),s(3),R(n.timeTypeOptions()),s(10),v("active",!n.isDarkMode()),s(),v("active",n.isDarkMode()),s(8),d("displayFn",n.languageDisplay())("hideClearButton",!0),s(),Te("ngModel",n.langCtrl),d("ngModelOptions",Ne(17,He)),s(),R(n.languageOptions()),s(12),D((r=n.sysinfo())==null?null:r.DefaultUpdateChannel),k(65),s(2),D((S=n.sysinfo())==null?null:S.ServerVersionType),k(68),s(35),d("displayFn",n.usageDisplay()),s(2),R(n.usageStatisticsOptions())}},dependencies:[xe,Oe,De,ke,he,$e,Re,Ge,ye,we,Ae,ve,be,We,Xe,ze,Ue,Ve],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}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%] .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%}.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}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{L as default};