@duplicati/ngclient 0.0.90 → 0.0.91
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.
- package/{chunk-5X3CS5SX.js → chunk-22L4HUH2.js} +1 -1
- package/{chunk-JJPQQ2RC.js → chunk-2M6FJFB6.js} +1 -1
- package/chunk-4KZHTKCL.js +1 -0
- package/{chunk-IUKXVR2S.js → chunk-4P5T2IWL.js} +1 -1
- package/{chunk-N3DQSLVZ.js → chunk-5Q53HYKJ.js} +1 -1
- package/{chunk-DQNODDD2.js → chunk-6F4OBQBG.js} +1 -1
- package/{chunk-GWUV24TX.js → chunk-6OZGFFIP.js} +1 -1
- package/{chunk-7X6U6GDS.js → chunk-6U5GJZOT.js} +1 -1
- package/{chunk-RWCNOLBZ.js → chunk-75HPCEOB.js} +1 -1
- package/{chunk-DM3TLLVN.js → chunk-C4YENYVT.js} +1 -1
- package/{chunk-BWRVEXWB.js → chunk-C7Y6Y3WG.js} +1 -1
- package/{chunk-INQJOENN.js → chunk-CN7UNEKW.js} +1 -1
- package/{chunk-Y4OHFLFK.js → chunk-D72NDSPE.js} +1 -1
- package/{chunk-7S572AMA.js → chunk-FN6RH4GQ.js} +1 -1
- package/{chunk-3G7WSLL4.js → chunk-HMXWO2I6.js} +1 -1
- package/{chunk-CMCJ4PJ3.js → chunk-HRMKDPOR.js} +1 -1
- package/{chunk-VXCR3LAU.js → chunk-IVVTGUD5.js} +1 -1
- package/{chunk-ADRBAA6V.js → chunk-JD2VZ7AT.js} +1 -1
- package/{chunk-2MXHK6QG.js → chunk-JFCXB676.js} +1 -1
- package/chunk-KYG6FTJ2.js +1 -0
- package/{chunk-B62DJG5J.js → chunk-LMY6LL5X.js} +1 -1
- package/{chunk-GCH4UMQW.js → chunk-LPLSYMNB.js} +1 -1
- package/{chunk-3UVMY3MP.js → chunk-LZVNJE27.js} +1 -1
- package/{chunk-J6HR5X2N.js → chunk-MJGXEFQX.js} +1 -1
- package/{chunk-QWCXBUTU.js → chunk-NVYCQ7OZ.js} +1 -1
- package/chunk-NXZI7EZX.js +1 -0
- package/{chunk-JELDZ2O3.js → chunk-NZKQ6LJU.js} +1 -1
- package/{chunk-5LD32NST.js → chunk-OHOVQQRF.js} +1 -1
- package/{chunk-TO3U5ILL.js → chunk-PBOQC224.js} +1 -1
- package/{chunk-42RH3SEU.js → chunk-RBEE6F5X.js} +1 -1
- package/{chunk-IKGI7UMG.js → chunk-SGHSOU7H.js} +1 -1
- package/{chunk-2UGVOOSY.js → chunk-T7ELKIG2.js} +1 -1
- package/{chunk-DHCSMO7K.js → chunk-VLSYAFUD.js} +1 -1
- package/{chunk-O74DHUWC.js → chunk-W5OXRGDR.js} +1 -1
- package/{chunk-XWX7PRSO.js → chunk-XBBAIEMP.js} +1 -1
- package/{chunk-YSXFZE63.js → chunk-YZZJK6RY.js} +1 -1
- package/{chunk-H5CQT7KP.js → chunk-Z3ALFDJZ.js} +1 -1
- package/{chunk-XP5MGA7L.js → chunk-ZKQDPG6E.js} +1 -1
- package/index.html +2 -2
- package/{main-HYNSEITZ.js → main-5NXOH73T.js} +1 -1
- package/package.json +1 -1
- package/{styles-X4DX3Q4A.css → styles-NSI7VPDK.css} +1 -1
- package/chunk-KB4BCU6P.js +0 -1
- package/chunk-S3FJKROY.js +0 -1
- package/chunk-U473WSWP.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ia as Fe}from"./chunk-OXZWBTVI.js";import{Ab as a,Bb as l,Cb as j,Ec as Ve,Fb as ee,Gb as B,Kc as I,Mc as R,Oc as Ce,Qa as m,R as oe,Sa as ce,Sb as b,Tb as f,Ub as x,Vb as h,X as H,Xa as q,Ya as Te,Za as Ee,_a as A,a as Oe,aa as be,bc as he,ca as _,cc as $,da as C,db as D,dc as Q,ec as Re,fb as Me,fc as y,ha as se,hc as G,ia as re,ib as O,ic as ie,kc as fe,lc as me,mc as ge,na as ae,nb as Ie,nc as ve,oa as Y,oc as K,pa as g,pc as W,qa as P,rb as X,rc as _e,sa as le,sb as U,sc as ne,ta as S,tb as V,ub as J,vb as te,wb as M,xb as pe,yb as de,zb as ue}from"./chunk-5ONOZUNN.js";import{a as N,b as Z,c as we}from"./chunk-C6Q5SG76.js";var L=["*"],ze=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],qe=["[icon]","[title]","*","[content]"];function Ue(n,d){n&1&&(a(0,"spk-icon",3),y(1,"info"),l())}function $e(n,d){n&1&&(a(0,"spk-icon",3),y(1,"info"),l())}function Qe(n,d){n&1&&(a(0,"spk-icon",3),y(1,"warning"),l())}function Ne(n,d){n&1&&(a(0,"spk-icon",3),y(1,"warning-octagon"),l())}function Ye(n,d){n&1&&(a(0,"spk-icon",3),y(1,"check-circle"),l())}function Xe(n,d){n&1&&(a(0,"spk-icon",3),y(1,"question"),l())}function Ge(n,d){if(n&1){let t=B();a(0,"spk-icon",7),b("click",function(){_(t);let i=f();return C(i.removeAlert())}),y(1,"plus"),l()}}var Ke=["dialogRef"];function Je(n,d){if(n&1){let t=B();a(0,"div",4),b("click",function(){_(t);let i=f();return C(i.isOpen.set(!1))}),l()}}var Ze=["spk-button",""];var Pe=["triggerRef"],et=["popoverRef"],tt=[[["","trigger",""]],"*"],it=["[trigger]","*"];var nt=()=>({closeOnButton:!1,closeOnEsc:!0});var ot=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],st=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"];var rt=["option"],at=["input"],lt=["*",[["","menu",""]]],ct=["*","[menu]"],pt=[[["label"]],"*"],dt=["label","*"],ut=["optionsWrap"],ht=[[["label"]],[["input"]],[["textarea"]]],ft=["label","input","textarea"],mt=()=>({closeOnButton:!1,closeOnEsc:!1}),ke=n=>({$implicit:n});function gt(n,d){if(n&1&&y(0),n&2){let t=f();G(" ",t.inputValue()," ")}}function vt(n,d){n&1&&ee(0)}function _t(n,d){if(n&1&&O(0,vt,1,0,"ng-container",13),n&2){let t=f(3).$implicit;f(2);let e=W(6);X("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(2,ke,t))}}function Ct(n,d){if(n&1&&y(0),n&2){let t=f(3).$implicit,e=f(2);G(" ",e.getLabel(t)," ")}}function St(n,d){if(n&1){let t=B();a(0,"spk-chip",11),O(1,_t,1,4,"ng-container")(2,Ct,1,1),a(3,"spk-icon",12),b("click",function(i){_(t);let o=f(2).$index,s=f(2);return C(s.removeSelectedOptionByIndex(i,o))}),y(4,"x-bold"),l()()}if(n&2){let t=f(4),e=W(6);te(t.selectClasses()),m(),M(e?1:2)}}function kt(n,d){n&1&&ee(0)}function yt(n,d){if(n&1&&O(0,kt,1,0,"ng-container",13),n&2){let t=f(4).$implicit;f(2);let e=W(6);X("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(2,ke,t))}}function Dt(n,d){if(n&1&&y(0),n&2){let t=f(4).$implicit,e=f(2);G(" ",e.getLabel(t)," ")}}function xt(n,d){if(n&1&&O(0,yt,1,4,"ng-container")(1,Dt,1,1),n&2){f(5);let t=W(6);M(t?0:1)}}function wt(n,d){if(n&1&&O(0,xt,2,1),n&2){f(4);let t=W(9);M(t?-1:0)}}function Ot(n,d){if(n&1&&O(0,St,5,3,"spk-chip",10)(1,wt,1,1),n&2){f(3);let t=W(8);M(t?0:1)}}function bt(n,d){if(n&1&&O(0,Ot,2,1),n&2){let t=d.$implicit;M(t?0:-1)}}function Tt(n,d){if(n&1&&de(0,bt,1,1,null,null,pe),n&2){f();let t=W(4);ue(t)}}function Et(n,d){n&1&&ee(0)}function Mt(n,d){if(n&1&&O(0,Et,1,0,"ng-container",14),n&2){f(2);let t=W(0);X("ngTemplateOutlet",t)}}function It(n,d){if(n&1&&y(0),n&2){let t,e=f(2);G(" ",(t=e.placeholderText())!==null&&t!==void 0?t:""," ")}}function Rt(n,d){if(n&1&&O(0,Mt,1,1,"ng-container")(1,It,1,1),n&2){f();let t=W(0);M(t?0:1)}}function Vt(n,d){n&1&&(a(0,"spk-icon",6),y(1,"caret-down"),l())}function Ft(n,d){n&1&&j(0,"spk-spinner",7)}function Pt(n,d){n&1&&(a(0,"spk-icon",6),y(1,"list-magnifying-glass"),l())}function At(n,d){n&1&&(a(0,"spk-icon",6),y(1,"magnifying-glass"),l())}function Lt(n,d){if(n&1){let t=B();a(0,"spk-icon",15),b("click",function(i){_(t);let o=f();return C(o.clear(i))}),y(1,"x-bold"),l()}}function Ht(n,d){n&1&&(a(0,"spk-icon",6),y(1,"caret-down"),l())}function jt(n,d){n&1&&(a(0,"spk-icon",6),y(1,"caret-up"),l())}function Bt(n,d){if(n&1&&j(0,"spk-checkbox"),n&2){let t=f().$index,e=f();te(e.selectClasses()),V("active",e.isSelected(t))}}function Wt(n,d){n&1&&ee(0)}function zt(n,d){if(n&1&&O(0,Wt,1,0,"ng-container",13),n&2){let t=f().$implicit;f();let e=W(7);X("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(2,ke,t))}}function qt(n,d){if(n&1&&y(0),n&2){let t=f().$implicit,e=f();G(" ",e.getLabel(t)," ")}}function Ut(n,d){if(n&1){let t=B();a(0,"li",16),b("click",function(){let i=_(t).$index,o=f();return C(o.toggleOptionByIndex(i))}),O(1,Bt,1,4,"spk-checkbox",17)(2,zt,1,4,"ng-container")(3,qt,1,1),l()}if(n&2){let t=d.$index,e=f(),i=W(7);V("selected",e.isSelected(t))("focused",t===e.focusedOptionIndex()),m(),M(e.selectMultiple()?1:-1),m(),M(i?2:3)}}var $t=["dragImageElement"],Qt=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Nt=["[sidenav]","[sidenav-closed-topbar]","*"];function Yt(n,d){n&1&&j(0,"div",1,0)}function Xt(n,d){if(n&1){let t=B();a(0,"div",7),b("drop",function(i){_(t);let o=f();return C(o.drop(i))})("dragover",function(i){_(t);let o=f();return C(o.dragOver(i))})("dragenter",function(){_(t);let i=f();return C(i.dragEnter())})("dragleave",function(){_(t);let i=f();return C(i.dragLeave())}),l()}}function Gt(n,d){if(n&1){let t=B();a(0,"div",8),b("dragstart",function(i){_(t);let o=f();return C(o.dragStart(i))})("dragend",function(i){_(t);let o=f();return C(o.dragEnd(i))})("drag",function(i){_(t);let o=f();return C(o.drag(i))})("touchstart",function(i){_(t);let o=f();return C(o.touchStart(i))})("touchmove",function(i){_(t);let o=f();return C(o.touchMove(i))})("touchend",function(i){_(t);let o=f();return C(o.touchEnd(i))})("touchcancel",function(i){_(t);let o=f();return C(o.touchCancel(i))}),l()}}var Kt=["thead"],Jt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Zt=["[table-header]","*","[table-no-rows]"];function ei(n,d){n&1&&j(0,"spk-progress-bar",1)}function ti(n,d){n&1&&(a(0,"div",2),h(1,2),l())}var ii=["tooltipRef"];var Se=["bold","thin","light","fill"],ye=(()=>{class n{#e=H(P);get currentClass(){let t=this.#e.nativeElement.innerText;for(let e=0;e<Se.length;e++)if(t.endsWith(Se[e]))return Se[e];return""}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-icon"]],hostVars:2,hostBindings:function(e,i){e&2&&te(i.currentClass)},ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Pi=(()=>{class n{constructor(){this._el=H(P),this.alertService=g(null),this.id=g(null),this.alertClasses=I(()=>this._el.nativeElement.classList.toString())}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-alert"]],inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:qe,decls:18,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(e,i){if(e&1&&(x(ze),a(0,"div",1)(1,"div",2,0),h(3),l(),a(4,"div",2),ve(5),O(6,Ue,2,0,"spk-icon",3)(7,$e,2,0,"spk-icon",3)(8,Qe,2,0,"spk-icon",3)(9,Ne,2,0,"spk-icon",3)(10,Ye,2,0,"spk-icon",3)(11,Xe,2,0,"spk-icon",3),l(),a(12,"div",4),h(13,1),h(14,2),l(),O(15,Ge,2,0,"spk-icon",5),a(16,"div",6),h(17,3),l()()),e&2){let o=Re(2);m(),U("display",o.children.length?"block":"none");let s=i.alertClasses();m(5),M(s.includes("primary")?6:s.includes("accent")?7:s.includes("warn")?8:s.includes("error")?9:s.includes("success")?10:11),m(9),M(i.id()?15:-1)}},dependencies:[ye],encapsulation:2,changeDetection:0})}}return n})();function De(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ai=(()=>{class n{constructor(){this.alertHistory=S([]),this.alertHistoryIsOpen=S(!1),this.alertHistoryIsHidden=S(!0)}error(t){this.addAlert({type:"error",title:t??"An error occured"})}success(t){this.addAlert({type:"success",title:t})}question(t){this.addAlert({type:"question",title:t})}warning(t){this.addAlert({type:"warn",title:t})}info(t){this.addAlert({type:"primary",title:t})}addAlert(t){let e=De();this.alertHistory.update(i=>[Z(N({},t),{isOpen:!0,animateIn:!0,animateOut:!1,id:e}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>Z(N({},o),{animateIn:o.id===e?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(e)},2500)}removeAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{animateOut:i.id===t?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(e=>e.filter(i=>i.id!==t))},300)}hideAlert(t){this.alertHistory.update(e=>e.map(i=>Z(N({},i),{isOpen:i.id===t?!1:i.isOpen})))}setHidden(t){this.alertHistoryIsHidden.set(t)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ni={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},oi=(()=>{class n{constructor(){this.dialogRef=q("dialogRef"),this.isOpen=A(!1),this.options=g(),this.closed=Y(),this.defaultOptionMerge=I(()=>N(N({},ni),this.options())),this.abortController=null,this.isOpenEffect=R(()=>{let t=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(t?.showModal(),t?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",e=>{e.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&e.preventDefault(),e.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),t?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-dialog"]],viewQuery:function(e,i){e&1&&$(i.dialogRef,Ke,5),e&2&&Q()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:L,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(e,i){if(e&1&&(x(),a(0,"dialog",1,0)(2,"div",2),h(3),l(),O(4,Je,1,0,"div",3),l()),e&2){let o,s,r,u;U("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(r=i.defaultOptionMerge().maxHeight)!==null&&r!==void 0?r:"")("height",(u=i.defaultOptionMerge().height)!==null&&u!==void 0?u:""),m(4),M(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Li=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=H(Ie),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(t,e){let i=this.#t.injector,o=this.#o(),E=e||{},{data:s,closed:r}=E,u=we(E,["data","closed"]);this.compRef&&this.#n(),this.insertedCompRef=Ce(t,{environmentInjector:i}),this.compRef=Ce(oi,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let c=this.insertedCompRef.instance?.data,p=this.insertedCompRef.instance?.closed;if(s){if(le(c))this.insertedCompRef.setInput("data",s);else if(!le(c))throw new Error("data is not an input signal on the passed component")}p instanceof ae&&(this.closedFieldSub=p.subscribe((...F)=>{r?.(...F),this.#n()})),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",u),this.compRef.instance.closed.subscribe(()=>T());let k=this;function T(){p&&p instanceof ae?p.emit(!1):r?.(void 0),k.#n()}return this.insertedCompRef.instance}#o(){let t=document.createElement("spk-dialog-ref");return t.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(t),document.getElementById("spk-dialog-ref")}#n(){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.#n()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275prov=oe({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Hi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-button-group"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),si=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["","spk-button",""]],attrs:Ze,ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-card"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),ri=(()=>{class n{#e=H(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-checkbox"]],hostBindings:function(e,i){e&1&&b("click",function(){return i.onClick()})},ngContentSelectors:L,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(e,i){e&1&&(x(),a(0,"div",0)(1,"spk-icon",1),y(2,"check"),l(),a(3,"spk-icon",2),y(4,"minus"),l()(),h(5))},dependencies:[ye],encapsulation:2,changeDetection:0})}}return n})(),ai=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-chip"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var li=["scroll","auto"],ci={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Ae=(()=>{class n{constructor(){this.#e=H(Ve),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=g(!1),this.right=g(!1),this.markForCheck=g(null),this._above=S(this.above()),this._right=S(this.right()),this.disableOpenByClick=g(!1),this.isOpen=A(!1),this.options=g(),this.closed=Y(),this.defaultOptionMerge=I(()=>N(N({},ci),this.options())),this.triggerRef=q.required("triggerRef"),this.popoverRef=q.required("popoverRef"),this.id=S("--"+De()),this.menuStyle=S(null),this.openAbort=null,this.openEffect=R(()=>{let t=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};t?.showPopover(),document.addEventListener("keydown",o=>{o.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&o.preventDefault(),o.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},i),setTimeout(()=>{this.#o(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#n(),i),window.addEventListener("resize",()=>this.#n(),i),this.#n()})}else t.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=R(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(t){t.preventDefault(),t.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}#o(t){let e=t.parentElement;for(;e;){if(li.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}#n(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,r=o+this.#t,u=s+e.width>window.innerWidth,c=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(c),this._right.set(u);else{if(s=i,r=o+this.#t,c){let k=t.top-e.height-this.#t;k<0||(r=k)}u&&(s=t.right-e.width,s<0&&(s=0));let p={left:s+"px",top:r+"px"};this.menuStyle.set(p)}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-popover"]],viewQuery:function(e,i){e&1&&($(i.triggerRef,Pe,5),$(i.popoverRef,et,5)),e&2&&Q(2)},hostVars:4,hostBindings:function(e,i){e&2&&V("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],markForCheck:[1,"markForCheck"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:it,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(e,i){if(e&1){let o=B();x(tt),a(0,"div",2,0),b("click",function(r){return _(o),C(i.toggleIsOpen(r))}),a(2,"div",3),h(3),l(),a(4,"button",4),y(5,"Open popover"),l()(),a(6,"div",5,1)(8,"div",6),b("click",function(r){return _(o),C(i.isOpen()&&i.eventClose(r))}),l(),h(9,1),l()}e&2&&(U("anchor-name",i.id()),m(6),J(i.menuStyle()),U("position-anchor",i.id()))},dependencies:[si],encapsulation:2,changeDetection:0})}}return n})();var Bi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-divider"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})(),Le=(()=>{class n{#e=H(P);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 t=typeof CSS<"u"&&CSS.supports("field-sizing","content"),e=this.#e.nativeElement.querySelector("textarea");if(!t&&e!==null){let s=function(){e.style.height="auto",e.style.height=e.scrollHeight+"px"},r=function(){window.setTimeout(s,0)};var i=s,o=r;e.addEventListener("change",s),e.addEventListener("cut",r),e.addEventListener("paste",r),e.addEventListener("drop",r),e.addEventListener("keydown",r),e.focus(),e.select(),s()}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-form-field"]],hostBindings:function(e,i){e&1&&b("click",function(){return i.onClick()})},ngContentSelectors:st,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(e,i){e&1&&(x(ot),h(0),a(1,"div",0)(2,"div",1),h(3,1),h(4,2),l(),j(5,"div",2),h(6,3),h(7,4),h(8,5),j(9,"div",3),h(10,6),l(),a(11,"div",4)(12,"div",5),h(13,7),l(),a(14,"div",6),h(15,8),l()())},encapsulation:2,changeDetection:0})}}return n})();var Wi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-list"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();function He(n,d){let t=d?.injector||(be(He),H(se)),{debounce:e=0,initialValue:i=void 0,transform:o=v=>v,compare:s=(v,w)=>v===w,forceType:r=void 0,returnPreviousValue:u=!0}=d||{},c=S(i),p=t.get(re),k=I(()=>{let v=n()?.nativeElement;if(v instanceof HTMLInputElement||v instanceof HTMLTextAreaElement)return je(v)}),T=!1,E,F=null;return R(()=>{let v=k();if(!v)return c.set(u&&E?o(E):void 0);i!==void 0&&v.value===""?c.set(i):v.value!==""&&xe();let w=z=>{F!==null&&clearTimeout(F),F=setTimeout(()=>{F=null,xe()},e)};v.addEventListener("input",w),v.addEventListener("inputValueChanged",w),p.onDestroy(()=>{v.removeEventListener("input",w),v.removeEventListener("inputValueChanged",w),F!==null&&clearTimeout(F)})},{injector:t}),R(()=>{let v=k();if(!v)return;let w=c()??"",z=w==null?"":String(w);v.value!==z&&(E=z,v.value=z,v.dispatchEvent(new Event("input")))},{injector:t}),c;function xe(){if(!T){T=!0;try{let v=k();if(!v)return;let w=v.value,z=r?Be(w,r):o(w);E=w,s(c(),z)||c.set(z)}finally{T=!1}}}function je(v){return Object.defineProperty(v,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").get.call(this)},set(w){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(v),"value").set.call(this,w);let We=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:w}});return this.dispatchEvent(We),w}}),v}function Be(v,w){switch(w){case"string":return v.toString();case"number":let z=Number(v);return isNaN(z)?void 0:z;case"boolean":return v.toLowerCase()==="true"?!0:v.toLowerCase()==="false"?!1:void 0;default:return v}}}var zi=(()=>{class n{constructor(){this.above=g(!1),this.right=g(!1),this.keepClickedOptionActive=g(!1),this.isOpen=A(!1),this.closed=Y(),this.searchable=g(!1),this.activeOptionIndex=S(-1),this.inputRef=q("input"),this.options=Ee("option",{descendants:!0}),this.optionsEl=I(()=>Array.from(this.options()).map(t=>t.nativeElement).filter(t=>!t.disabled)),this.inputValue=He(this.inputRef),this.abortController=null,this.optionsEffect=R(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",e=>{let i=this.optionsEl(),o=this.activeOptionIndex();e.key==="ArrowDown"?(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(o))):e.key==="ArrowUp"?(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(o))):e.key==="Enter"?(e.preventDefault(),o>-1&&(i[o].click(),queueMicrotask(()=>this.close("active")))):e.key==="Tab"&&(e.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this.inputValueEffect=R(()=>{if(!this.searchable())return;let e=(this.inputValue()??"").toLowerCase(),i=this.optionsEl();if(!e||e===""){i.forEach(r=>{r.classList.remove("hide-option"),r.style.order=""});return}let o=i.map(r=>{let u=r.textContent?.toLowerCase()||"",c=this.#e(u,e);return{el:r,score:c,textContent:u}});o.sort((r,u)=>u.score-r.score);let s=!1;o.forEach(({el:r,score:u},c)=>{u===0||r.disabled?(r.classList.add("hide-option"),r.style.order=""):(r.classList.remove("hide-option"),r.style.order=c.toString(),s||(queueMicrotask(()=>this.activeOptionIndex.set(i.indexOf(r))),s=!0))})}),this.activeOptionIndexEffect=R(()=>{let t=this.optionsEl(),e=this.activeOptionIndex();for(let i=0;i<t.length;i++)t[i].classList.remove("active");e>-1&&(t[e].scrollIntoView({block:"center"}),t[e].classList.add("active"))})}#e(t,e){if(!e)return 0;let i=0,o=-1,s=0;t.includes(e)&&(i+=1e3);for(let r=0;r<e.length;r++){let u=e[r],c=t.indexOf(u,o+1);if(c===-1)return 0;i+=100,o+1===c&&o!==-1&&(i+=50),o=c,s++}return i+=s*20,i}nextActiveIndex(t){let e=this.optionsEl();if(t===-1||t===e.length-1)return 0;let i=t+1;if(this.searchable()){if(e[i].disabled)return this.nextActiveIndex(i);if(e[i].classList.contains("hide-option"))return this.nextActiveIndex(i)}return i}prevActiveIndex(t){let e=this.optionsEl();if(t===0||t===-1)return e.length-1;let i=t-1;if(this.searchable()){if(e[i].disabled)return this.prevActiveIndex(i);if(e[i].classList.contains("hide-option"))return this.prevActiveIndex(i)}return i}close(t="closed",e){this.inputValue.set(""),(!this.keepClickedOptionActive()||t==="closed")&&this.#t(),this.isOpen.set(!1),this.closed.emit(t==="active")}#t(){this.activeOptionIndex.set(-1);let t=this.optionsEl();for(let e=0;e<t.length;e++)t[e].classList.remove("active")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}createWildcardRegex(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.escapeRegexChar(o);return i+=".*$",new RegExp(i,"i")}escapeRegexChar(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-menu"]],contentQueries:function(e,i,o){e&1&&he(o,i.options,rt,5),e&2&&Q()},viewQuery:function(e,i){e&1&&$(i.inputRef,at,5),e&2&&Q()},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ct,decls:9,vars:10,consts:[["formFieldWrapper",""],["input",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"small"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(e,i){if(e&1){let o=B();x(lt),a(0,"spk-popover",2,0),ge("isOpenChange",function(r){return _(o),me(i.isOpen,r)||(i.isOpen=r),C(r)}),b("closed",function(){return _(o),C(i.close("fromPopover"))}),a(2,"div",3),b("click",function(){return _(o),C(i.isOpen.set(!0))}),h(3),l(),a(4,"spk-form-field",4),j(5,"input",5,1),l(),a(7,"div",6),b("click",function(){return _(o),C(i.close("active"))}),h(8,1),l()()}e&2&&(fe("isOpen",i.isOpen),X("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",_e(9,nt)),m(4),V("hidden",i.searchable()===!1),m(3),V("searching",i.searchable()&&i.inputValue()!==""))},dependencies:[Ae,Le],encapsulation:2,changeDetection:0})}}return n})(),pi=(()=>{class n{constructor(){this.value=g(void 0)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(e,i){e&1&&j(0,"div",0),e&2&&U("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),qi=(()=>{class n{#e=H(P);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-radio"]],hostBindings:function(e,i){e&1&&b("click",function(){return i.onClick()})},ngContentSelectors:L,decls:2,vars:0,consts:[[1,"radio"]],template:function(e,i){e&1&&(x(),j(0,"div",0),h(1))},encapsulation:2,changeDetection:0})}}return n})(),Ui=(()=>{class n{constructor(){this.#e=H(P),this.#t=null,this.unit=g(""),this.value=A(0),this.inputState=S({min:0,max:100}),this.inputEffect=R(()=>{let t=this.value();this.inputField&&t!==parseInt(this.inputField.value)&&(this.inputField.value=t+"")})}#e;#t;get inputField(){return this.#e.nativeElement.querySelector('input[type="range"]')??null}trackEvent(t){this.inputField?.readOnly&&(t.preventDefault(),t.stopPropagation())}ngOnInit(){if(this.inputField){this.inputState.set({max:parseInt(this.inputField.max??"")??100,min:parseInt(this.inputField.min??"")??0}),this.value.set(parseInt(this.inputField.value??"")??0),this.inputField.oninput=e=>{this.value.set(parseInt(this.inputField.value??"")??0)};let t=["min","max","value"];typeof MutationObserver<"u"&&(this.#t=new MutationObserver((e,i)=>{for(let o of e)o.type==="attributes"&&t.includes(o.attributeName??"")&&(this.inputState.set({max:parseInt(this.inputField.max??"")??100,min:parseInt(this.inputField.min??"")??0}),this.value.set(parseInt(this.inputField.value??"")??0))}),this.#t.observe(this.inputField,{attributes:!0,childList:!1,subtree:!1}))}else console.error("No input field found")}thumbWrapStyle(){return{left:`${this.value()/this.inputState().max*100}%`}}thumbStyle(){return{transform:`translateX(-${this.value()/this.inputState().max*100}%)`}}trackFilledStyle(){return{width:`${this.value()/this.inputState().max*100}%`}}ngOnDestroy(){this.#t&&this.#t.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-range-slider"]],hostVars:2,hostBindings:function(e,i){e&2&&V("has-input",i.inputField)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:dt,decls:15,vars:12,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(e,i){e&1&&(x(pt),a(0,"div",0),h(1),l(),a(2,"div",1)(3,"div",2),y(4),l(),a(5,"div",3),b("click",function(s){return i.trackEvent(s)}),h(6,1),a(7,"div",4),j(8,"div",5),l(),a(9,"div",6)(10,"div",7)(11,"div",8),y(12),l()()()(),a(13,"div",9),y(14),l()()),e&2&&(m(4),ie("",i.inputState().min,"",i.unit(),""),m(4),J(i.trackFilledStyle()),m(),J(i.thumbWrapStyle()),m(),J(i.thumbStyle()),m(2),ie("",i.value(),"",i.unit(),""),m(2),ie("",i.inputState().max,"",i.unit(),""))},encapsulation:2,changeDetection:0})}}return n})(),di=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(e,i){},encapsulation:2,changeDetection:0})}}return n})(),$i=(()=>{class n{constructor(){this.#e=H(P),this.value=g(),this.label=g(),this.asFreeText=g(!1),this.placeholder=g(),this.readonly=A(!1),this.disabled=A(!1),this.lazySearch=g(!1),this.inlineSearch=g(!1),this.asText=g(!1),this.isClearable=g(!0),this.selectMultiple=g(!1),this.optionTemplate=g(null),this.selectedOptionTemplate=g(null),this.placeholderTemplate=g(null),this.isOpen=A(!1),this.isLoading=A(!1),this.options=A([]),this.selectedOptions=A([]),this.cleared=Y(),this.inlineTemplate=Te(ce),this.optionsWrapRef=q.required("optionsWrap"),this.inputRefInput=S(null),this.#t=typeof MutationObserver<"u"&&new MutationObserver(t=>{for(var e of t)e&&(e.target.nodeName==="INPUT"||e.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new P(e.target)),this.#t.disconnect())}),this.inputValue=S(""),this.prevInputValue=S(null),this.focusedOptionIndex=S(-1),this._isClearable=I(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=I(()=>this.#e.nativeElement.classList.toString()),this.placeholderText=I(()=>{let t=this.placeholder(),e=this.inputRefEl();return t||e?.placeholder||null}),this.selectedOptionValues=I(()=>{let t=this.selectedOptions(),e=this.value();return e?t.map(i=>this.#i(i,e)):t}),this.filteredOptions=I(()=>{let t=this.options()||[],e=this.label(),i=this.value(),o=this.inlineSearch(),s=this.inputValue().toLowerCase(),r=this.#a(s);if(t.length<=0)return[];if(!o||s==="")return t;let c=t.filter(p=>{let k=e?(this.#i(p,e)??"").toString().toLowerCase():(p??"").toString().toLowerCase(),T=((i?this.#i(p,i):p)??"").toString().toLowerCase(),E=r.test(k),F=r.test(T);return E||F}).map(p=>{let k=e?(this.#i(p,e)??"").toString().toLowerCase():(p??"").toString().toLowerCase(),T=((i?this.#i(p,i):p)??"").toString().toLowerCase(),E=this.#o(k,s),F=this.#o(T,s);return{item:p,score:Math.max(E,F)}});return c.sort((p,k)=>k.score-p.score),c.map(p=>p.item)}),this.inputRefEl=I(()=>{let t=this.inputRefInput();if(t===null)return;let e=t?t.nativeElement:null;return e?(e.autocomplete="off",this.#r(e),e.addEventListener("focus",()=>{this.readonly()||this.open()}),this.hasSearch()&&e.addEventListener("input",i=>{let o=i.target.value,s=this.inputValue();o!==s&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(o),this.updateInputElValue())}),e.addEventListener("inputValueChanged",i=>{let o=i.detail.value,s=this.inputValue();if(o!==s){if(o===""){this.clear();return}this.setSelectedOptionsFromValue(o),this.setInputValueFromSelectedOptions(),this.#s()}}),e):(console.warn("<spk-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.openAbortController=null,this.isOpenEffect=R(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let e=this.inputRefEl();if(!e)return;e.addEventListener("keydown",i=>{if((i.key==="Escape"||i.key==="Tab")&&(i.preventDefault(),this.close()),(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex())),i.key==="ArrowDown"){i.preventDefault();let o=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(o>this.filteredOptions().length-1?0:o)}if(i.key==="ArrowUp"){i.preventDefault();let o=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(o<0?this.filteredOptions().length-1:o)}},{signal:this.openAbortController?.signal})}else{if(!this.inputRefEl())return;this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=R(()=>{let t=this.inputValue();this._inputValue=t}),this.inputRefElEffect=R(()=>{let t=this.inputRefEl();t&&t.value!==this._inputValue&&(this.disabled.set(t.disabled),this.setSelectedOptionsFromValue(t.value),this.setInputValueFromSelectedOptions())}),this.selectedLabels=I(()=>{let t=this.selectedOptions();return this.label()?t.map(i=>this.getLabel(i)).join(", "):t.join(", ")}),this.inputState=I(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=I(()=>this.inlineSearch()||this.lazySearch()),this.#n=R(()=>{if(this.selectMultiple()&&this.hasSearch())return;let t=this.selectedOptions(),e=this.value(),i=t.map(o=>e?this.#i(o,e):o).join(",");this.inputValue.set(i)})}#e;#t;#o(t,e){if(!e)return 0;let i=0,o=-1,s=0;t.includes(e)&&(i+=1e3);for(let r=0;r<e.length;r++){let u=e[r],c=t.indexOf(u,o+1);if(c===-1)return 0;i+=100,o+1===c&&o!==-1&&(i+=50),o=c,s++}return i+=s*20,i}#n;ngOnInit(){this.setInitInput()}setInitInput(){let t=this.#e.nativeElement.querySelector("input");if(t){this.inputRefInput.set(new P(t));return}let e=this.#e.nativeElement.querySelector("textarea");if(e){this.inputRefInput.set(new P(e));return}typeof MutationObserver<"u"&&this.#t.observe(this.#e.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(t){let e=this.options()||[],i=this.value(),o=this.selectMultiple(),s=t.toString().split(",");if(s.length===0){this.selectedOptions.set([]);return}let r=o?s:[s[0]],u=e.filter(c=>{let p=i?this.#i(c,i)?.toString():c?.toString();return p&&r.includes(p)});this.selectedOptions.set(o?u:[u[0]])}setInputValueFromSelectedOptions(){let t=this.selectedOptions(),e=this.value();if(t.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=t.map(o=>e?this.#i(o,e):o).join(",");this.inputValue.set(i),this.updateInputElValue()}getLabel(t){let e=this.label();return e?this.#i(t,e):t}toggleOptionByIndex(t,e){let i=this.filteredOptions()[t];if(this.asFreeText()&&t===-1||!i){this.close();return}e&&e.stopPropagation();let o=this.selectMultiple(),s=this._isClearable(),r=this.value(),u=this.selectedOptionValues(),c=r?this.#i(i,r):i;this.prevInputValue.set(null),this.selectedOptions.update(p=>{let k=u.indexOf(c);if(k>-1){let T=[...p.slice(0,k),...p.slice(k+1)];return s||T.length>0?T:p}else return this.focusedOptionIndex.set(t),o?[...p,i]:[i]}),o?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromSelectedOptions(),o&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(t,e){t.stopPropagation(),this.selectedOptions.update(i=>[...i.slice(0,e),...i.slice(e+1)]),this.setInputValueFromSelectedOptions()}isSelected(t){let e=this.value(),i=this.filteredOptions()[t],o=e?this.#i(i,e):i;return this.selectedOptionValues().indexOf(o)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()&&(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()),this.selectMultiple()||this.#s())}#s(){let t=this.selectedOptionValues()[0],e=this.value();if(t){let i=this.filteredOptions().findIndex(o=>e?this.#i(o,e)===t:o===t);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let t=this.prevInputValue();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&t&&(this.inputValue.set(t),this.setInputValueFromSelectedOptions()),this.selectMultiple()&&this.setInputValueFromSelectedOptions()}clear(t){t?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let t=this.inputRefEl(),e=this.inputValue();t&&(t.value=e,t.dispatchEvent(new Event("input")))}#i(t,e){return e.split(".").reduce((i,o)=>i?.[o],t)}#r(t){Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value").set.call(this,e);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(o),e}})}#a(t){let e=(t??"").toLowerCase(),i="^";for(let o of e)i+=".*"+this.#l(o);return i+=".*$",new RegExp(i,"i")}#l(t){return t.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#t.disconnect()}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-select"]],contentQueries:function(e,i,o){e&1&&he(o,i.inlineTemplate,ce,5),e&2&&Q()},viewQuery:function(e,i){e&1&&$(i.optionsWrapRef,ut,5),e&2&&Q()},hostVars:2,hostBindings:function(e,i){e&2&&V("multiple",i.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared"},ngContentSelectors:ft,decls:32,vars:20,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],[1,"sparkle-options"],[1,"option",3,"selected","focused"],[1,"small",3,"class"],[1,"small"],[3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click"],[3,"class","active"]],template:function(e,i){if(e&1){let o=B();x(ht),ve(0)(1)(2)(3)(4)(5)(6)(7)(8)(9),a(10,"spk-popover",2,0),ge("isOpenChange",function(r){return _(o),me(i.isOpen,r)||(i.isOpen=r),C(r)}),b("closed",function(){return _(o),C(i.close())}),a(12,"spk-form-field",3),b("click",function(){return _(o),C(i.open())}),h(13,0,["ngProjectAs","label",5,["label"]]),a(14,"div",4)(15,"div",5),O(16,gt,1,1)(17,Tt,2,0)(18,Rt,2,1),h(19,1),h(20,2),l()(),O(21,Vt,2,0,"spk-icon",6)(22,Ft,1,0,"spk-spinner",7)(23,Pt,2,0,"spk-icon",6)(24,At,2,0,"spk-icon",6)(25,Lt,2,0,"spk-icon",6)(26,Ht,2,0,"spk-icon",6)(27,jt,2,0,"spk-icon",6),l(),a(28,"div",8,1),de(30,Ut,4,6,"li",9,pe),l()()}if(e&2){K(i.placeholderTemplate());let o=i.optionTemplate(),s=i.selectedOptionTemplate(),r=i.inlineTemplate();m(4);let u=K(i.selectedOptions()),c=i.inputState();m(2),K(s||o||r),m(),K(o||r),m();let p=K(!i.asText()&&i.selectMultiple());m();let k=K(i.isOpen()&&i.hasSearch()&&(p||i.inputValue().length>0));m(),fe("isOpen",i.isOpen),X("disableOpenByClick",!0)("options",_e(19,mt)),m(2),V("autosize",i.selectMultiple())("readonly",i.readonly()||i.disabled()),m(2),V("show-search-text",k),m(),V("is-selected",c==="selected"),m(),M(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?16:u.length>0?17:k?-1:18),m(5),M(c==="closed"?21:c==="loading"?22:c==="open-searching"?23:c==="searching"?24:c==="selected"&&i._isClearable()?25:c==="selected"&&!i._isClearable()?26:27),m(9),ue(i.filteredOptions())}},dependencies:[Fe,Ae,Le,ye,ri,di,ai],encapsulation:2,changeDetection:0})}}return n})(),Qi=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=g(!1),this.isOpen=A(!1),this.type=g(""),this.dragImageElement=q.required("dragImageElement"),this.dragIsEnding=S(!1),this.dragIsOnScreen=S(!0),this.isDragging=S(!1),this.dragPositionX=S(0),this.dragActualPositionX=I(()=>{let t=this.dragPositionX(),e=.32;return t>this.openWidthTreshold?this.openWidthTreshold+(t-this.openWidthTreshold)*e:t}),this.draggingStyle=I(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=R(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(t){t.stopPropagation(),this.#e(t.clientX)}#e(t){this.isDragging.set(!1),t<=0?this.isOpen.set(!1):t>this.openWidthTreshold?this.isOpen.set(!0):t<this.openWidthTreshold&&(!this.isOpen()&&t<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(t){(t.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(t){t.preventDefault(),this.#t(t)}dragStart(t){t.stopPropagation(),this.isDragging.set(!0),this.#t(t)}#t(t){t.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.clientX)}),this.#t(t)}touchStart(t){t.stopPropagation(),this.isDragging.set(!0)}touchMove(t){t.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(t.touches[0].clientX)})}touchEnd(t){t.stopPropagation(),this.#e(t.changedTouches[0].clientX)}touchCancel(t){t.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-sidenav"]],viewQuery:function(e,i){e&1&&$(i.dragImageElement,$t,5),e&2&&Q()},hostVars:10,hostBindings:function(e,i){e&2&&V("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:Nt,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(e,i){e&1&&(x(Qt),O(0,Yt,2,0,"div",1)(1,Xt,1,0,"div",2),a(2,"div",3),h(3),l(),a(4,"div",4),O(5,Gt,1,0,"div",5),a(6,"div",6),h(7,1),l(),a(8,"main"),h(9,2),l()()),e&2&&(M(i.type()==="overlay"?0:-1),m(),M(i.type()==="overlay"&&i.isDragging()?1:-1),m(3),U("transform",i.draggingStyle()),m(),M(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Ni=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-stepper"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();function ui(n,d){let t=H(se),e=t.get(re),i=S([]),o=d.map(u=>u.toUpperCase()),s=null,r=u=>{s&&s.disconnect();let c=Array.from(u.nativeElement.querySelectorAll("*")).filter(p=>p.nodeType===Node.ELEMENT_NODE&&o.includes(p.nodeName)).map(p=>new P(p));i.set(c),s=new MutationObserver(p=>{let k=i();for(let T of p)T.addedNodes&&T.addedNodes.forEach(E=>{E.nodeType===Node.ELEMENT_NODE&&o.includes(E.nodeName)&&(k=[...k,new P(E)])}),T.removedNodes&&T.removedNodes.forEach(E=>{E.nodeType===Node.ELEMENT_NODE&&o.includes(E.nodeName)&&(k=k.filter(F=>F.nativeElement!==E))});i.set(k)}),s.observe(u.nativeElement,{childList:!0,subtree:!0}),e.onDestroy(()=>{s&&s.disconnect()})};return typeof n=="function"&&n[Oe]?R(()=>{let u=n();u?r(u):(i.set([]),s&&(s.disconnect(),s=null))},{injector:t}):n instanceof P&&r(n),i.asReadonly()}var Yi=(()=>{class n{constructor(){this.loading=g(!1),this.data=g([]),this.dataChange=Y(),this.sortByColumn=A(null),this.thead=q("thead"),this.columns=ui(this.thead,["TH"]),this.resizing=S(!1),this.sizeTrigger=S(!0),this.#e=null,this.#t=S(!1),this.columnSizes=I(()=>(this.sizeTrigger(),this.columns().reduce((t,e,i)=>{let o=e.nativeElement,s=i===this.columns().length-1;return o.dataset.size?`${t} ${o.dataset.size}`:s?`${t} max-content`:`${t} 1fr`},""))),this.e=R(()=>{let t=this.sortByColumn();if(t===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let e=t.startsWith("-")?t.slice(1):t,i=t.startsWith("-"),o=this.data().sort((s,r)=>{let u=s[e],c=r[e],p=0;return typeof u=="number"&&typeof c=="number"&&(p=u-c),u instanceof Date&&c instanceof Date&&(p=u.getTime()-c.getTime()),typeof u=="string"&&typeof c=="string"&&(p=u.localeCompare(c,void 0,{sensitivity:"base"})),i?-p:p});this.dataChange.emit(o)})}#e;#t;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}toggleSort(t){let e=this.sortByColumn(),i=e===t?`-${t}`:e===`-${t}`?null:t;this.sortByColumn.set(i)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-table"]],viewQuery:function(e,i){e&1&&$(i.thead,Kt,5),e&2&&Q()},hostVars:4,hostBindings:function(e,i){e&2&&(U("grid-template-columns",i.columnSizes()),V("resizing",i.resizing()))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Zt,decls:7,vars:2,consts:[["thead",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(e,i){e&1&&(x(Jt),a(0,"thead",null,0),h(2),O(3,ei,1,0,"spk-progress-bar",1),l(),a(4,"tbody"),h(5,1),l(),O(6,ti,2,0,"div",2)),e&2&&(m(3),M(i.loading()?3:-1),m(3),M(i.loading()?-1:6))},dependencies:[pi],encapsulation:2,changeDetection:0})}}return n})(),Xi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-tabs"]],ngContentSelectors:L,decls:1,vars:0,template:function(e,i){e&1&&(x(),h(0))},encapsulation:2,changeDetection:0})}}return n})();var Gi=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-toggle"]],ngContentSelectors:L,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(e,i){e&1&&(x(),a(0,"div",0),j(1,"div",1),l(),h(2))},encapsulation:2,changeDetection:0})}}return n})(),Ki=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=g(!1),this.above=g(!1),this.right=g(!1),this._above=S(this.above()),this._right=S(this.right()),this.message=g.required(),this.isOpen=A(!1),this.closed=Y(),this.triggerRef=q.required("triggerRef"),this.tooltipRef=q.required("tooltipRef"),this.id=S("--"+De()),this.menuStyle=S(null),this.isCalculatingPosition=I(()=>{let t=this.tooltipRef()?.nativeElement;return this.isOpen()?(t?.showPopover(),!0):(t.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=R(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let e=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:e}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:e})}),this.scrollableStyles=["scroll","auto"]}#e;#t(t){let e=t.parentElement;for(;e;){if(this.scrollableStyles.indexOf(window.getComputedStyle(e).overflowY)>-1&&e.scrollHeight>e.clientHeight)return e;e=e.parentElement}return document.documentElement}eventClose(t){t.stopPropagation(),t.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let t=this.triggerRef()?.nativeElement.getBoundingClientRect(),e=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=t.left,o=t.bottom,s=i,r=o+this.#e,u=s+e.width>window.innerWidth,c=r+e.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(c),this._right.set(u);else{if(this.above()){let p=t.top-e.height-this.#e;p>=0&&(r=p)}else c&&(r=t.top-e.height-this.#e);if(this.right()){let p=t.right-e.width;p>=0&&(s=p)}else u&&(r=c?t.top+t.height-e.height:t.top,s=t.left-e.width-this.#e);this.menuStyle.set({left:s+"px",top:r+"px"})}}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=D({type:n,selectors:[["spk-tooltip"]],viewQuery:function(e,i){e&1&&($(i.triggerRef,Pe,5),$(i.tooltipRef,ii,5)),e&2&&Q(2)},hostVars:6,hostBindings:function(e,i){e&2&&V("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:L,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(e,i){if(e&1){let o=B();x(),a(0,"div",2,0),b("mouseover",function(){return _(o),C(i.isOpen.set(!0))})("mouseout",function(){return _(o),C(i.isOpen.set(!1))}),h(2),l(),a(3,"div",3,1),y(5),l()}e&2&&(U("anchor-name",i.id()),m(3),J(i.menuStyle()),U("position-anchor",i.id()),m(2),G(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var Ji=(()=>{class n{constructor(){this.filesOver=S(!1),this.filesDropped=Y()}onDragOver(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!0)}onDragLeave(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1)}ondrop(t){t.preventDefault(),t.stopPropagation(),this.filesOver.set(!1);let e=t.dataTransfer?.files;e&&e.length>0&&this.filesDropped.emit(e)}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275dir=Me({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(e,i){e&1&&b("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),e&2&&V("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{ye as a,Pi as b,Ai as c,oi as d,Li as e,Hi as f,si as g,ji as h,ri as i,ai as j,Bi as k,Le as l,Wi as m,zi as n,pi as o,qi as p,Ui as q,$i as r,Qi as s,Ni as t,Yi as u,Xi as v,Gi as w,Ki as x,Ji as y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as a,j as b}from"./chunk-
|
|
1
|
+
import{i as a,j as b}from"./chunk-C4YENYVT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-DNHLTHLR.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-2MAHQYCM.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createOptionsForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as ye}from"./chunk-DM3TLLVN.js";import{a as xt}from"./chunk-H5CQT7KP.js";import{a as bt}from"./chunk-42RH3SEU.js";import"./chunk-DNHLTHLR.js";import{a as Ne}from"./chunk-I56L7YBT.js";import{a as Fe}from"./chunk-Q2S4M24F.js";import{a as ae}from"./chunk-DXNCMAOT.js";import{a as wt}from"./chunk-D3OXH7DI.js";import"./chunk-2MAHQYCM.js";import{a as Mt}from"./chunk-26LLZBVS.js";import{a as $t}from"./chunk-CMCJ4PJ3.js";import"./chunk-3CWO2EV5.js";import"./chunk-3NUWESLC.js";import"./chunk-IWMMFNSQ.js";import"./chunk-B27FY76R.js";import{a as ht,b as V,d as X,e as re,g as le,h as _e,i as Pt,k as It,m as pe,n as ce,p as me,q as de,r as ue,s as Se}from"./chunk-25A34CYL.js";import"./chunk-EEWVYRVF.js";import{b as A}from"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import{a as ge,b as Rt,g as Te,k as yt,l as z,n as Ft,o as vt,p as At,q as Gt,r as fe,w as Ce,x as Ee}from"./chunk-KB4BCU6P.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-KB62MNQB.js";import{Ab as s,Bb as o,Cb as f,D as v,Db as ee,Eb as te,Fb as gt,Gb as O,Kc as D,Mb as w,Mc as L,Nb as $,Oa as mt,Ob as _,Pb as W,Qa as r,Qb as K,R as Y,Rb as ne,Sb as S,Tb as l,Wb as y,X as N,Xa as dt,Yb as M,Zb as Re,c as ct,ca as C,cc as Tt,da as E,db as G,dc as ft,ec as ie,fc as c,gc as oe,hc as h,ib as u,kc as x,l as q,lc as b,mc as k,ob as ut,pb as St,qc as Ct,rb as d,rc as Et,sc as Nt,ta as g,tb as P,tc as Ot,wb as T,xb as he,y as H,yb as Pe,yc as se,zb as Ie}from"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";var U=class i{#e=N(A);#i=Ne(this.#e.getApiV1Serversettings());#t=g(void 0);serverSettings=D(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return ct(v(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Y({token:i,factory:i.\u0275fac,providedIn:"root"})};var Xt=["formRef"],zt=()=>[import("./chunk-VC6R3EOF.js").then(i=>i.NgTemplateOutlet)],Ut=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Bt=i=>({$implicit:i});function qt(i,n){if(i&1){let e=O();w(0,5,1),s(1,"button",16,2),S("click",function(){let a=C(e).$implicit,m=l();return E(m.addNewOption(a))}),o(),$()}if(i&2){let e=n.$implicit;r(),W(e.name),K(0)}}function Ht(i,n){i&1&>(0)}function Wt(i,n){if(i&1&&u(0,Ht,1,0,"ng-container",17),i&2){let e=n.$implicit,t=n.$index;l(2);let a=ie(15);d("ngTemplateOutlet",a)("ngTemplateOutletContext",Nt(5,Bt,Ot(2,Ut,t,e)))}}function Kt(i,n){if(i&1&&Pe(0,Wt,1,7,"ng-container",null,he),i&2){let e=l();Ie(e.selectedOptions())}}function jt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Qt(i,n){if(i&1&&(s(0,"app-file-tree",20)(1,"label",25),c(2),u(3,jt,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit,a=l();d("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Zt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Jt(i,n){if(i&1&&(s(0,"app-file-tree",21)(1,"label",25),c(2),u(3,Zt,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit,a=l();d("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Yt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function en(i,n){i&1&&(s(0,"spk-icon",28),c(1,"link"),o())}function tn(i,n){i&1&&(s(0,"spk-icon",28),c(1,"textbox"),o())}function nn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,Yt,3,1,"spk-tooltip",26),o(),f(4,"input",27),u(5,en,2,0,"spk-icon",28)(6,tn,2,0,"spk-icon",28),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name),r(),T(t.formView.type==="Path"?5:6)}}function on(i,n){if(i&1){let e=O();s(0,"span",32),S("click",function(){C(e);let a=l(2).$implicit,m=l();return E(m.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function sn(i,n){i&1&&(s(0,"spk-icon",28),c(1,"password"),o())}function an(i,n){if(i&1){let e=O();s(0,"spk-icon",33),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function rn(i,n){if(i&1){let e=O();s(0,"spk-icon",33),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function ln(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),o(),f(3,"input",29),u(4,on,2,0,"span",30)(5,sn,2,0,"spk-icon",28)(6,an,2,0,"spk-icon",31)(7,rn,2,0,"spk-icon",31),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name),d("type",t.formView.showPassword?"text":"password"),r(),T(t.oauthField===t.formView.name?4:5),r(2),T(t.formView.showPassword?6:7)}}function _n(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function pn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e," ")}}function cn(i,n){if(i&1&&(s(0,"spk-select",34)(1,"label",25),c(2),u(3,_n,3,1,"spk-tooltip",26),o(),f(4,"input",27),o(),u(5,pn,1,1,"ng-template",null,3,se)),i&2){let e,t=ie(6),a=l().$implicit;d("options",a.formView.options)("isClearable",!1)("optionTemplate",t),r(),Re("for","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),r(),h(" ",(e=a.formView.shortDescription)!==null&&e!==void 0?e:a.formView.name," "),r(),T(a.formView.longDescription?3:-1),r(),Re("id","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),y("formControlName",a.formView.name)}}function mn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function dn(i,n){if(i&1&&(s(0,"div",22)(1,"label",25),c(2),u(3,mn,3,1,"spk-tooltip",26),o(),s(4,"div",35)(5,"spk-form-field"),f(6,"input",36),s(7,"spk-icon",28),c(8,"resize"),o()(),s(9,"spk-select",37),f(10,"input",38),o()()()),i&2){let e,t=l().$implicit,a=l();d("formGroupName",t.formView.name),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(3),M("id","destination-",t.formGroupName,"-",t.index,""),r(3),d("options",a.sizeOptions())("inlineSearch",!0)}}function un(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Sn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,un,3,1,"spk-tooltip",26),o(),f(4,"input",39),s(5,"spk-icon",28),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function gn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Tn(i,n){if(i&1&&(s(0,"spk-toggle",23)(1,"label",25),c(2),u(3,gn,3,1,"spk-tooltip",26),o(),f(4,"input",40),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function fn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Cn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e," ")}}function En(i,n){if(i&1&&(s(0,"spk-select",41)(1,"label",25),c(2),u(3,fn,3,1,"spk-tooltip",26),o(),f(4,"input",42),o(),u(5,Cn,1,1,"ng-template",null,4,se)),i&2){let e,t=ie(6),a=l().$implicit;d("options",a.formView.options)("selectMultiple",!0)("optionTemplate",t),r(),M("for","destination-",a.formGroupName,"-",a.index,""),r(),h(" ",(e=a.formView.shortDescription)!==null&&e!==void 0?e:a.formView.name," "),r(),T(a.formView.longDescription?3:-1),r(),y("formControlName",a.formView.name)}}function Nn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function On(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,Nn,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Mn(i,n){if(i&1){let e=O();s(0,"div",18),ee(1,19),u(2,Qt,5,14,"app-file-tree",20)(3,Jt,5,10,"app-file-tree",21)(4,nn,7,10,"spk-form-field")(5,ln,8,11,"spk-form-field")(6,cn,7,14)(7,dn,11,11,"div",22)(8,Sn,7,9,"spk-form-field")(9,Tn,5,9,"spk-toggle",23)(10,En,7,9)(11,On,5,9,"spk-form-field"),te(),s(12,"button",24),S("click",function(){let a=C(e).$implicit,m=l();return E(m.removeFormView(a.formView))}),s(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;r(),d("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 pi=new de,hn=["Bytes","KB","MB","GB","TB","PB"],ci=[{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`}],mi=1024*1024*1024*2,di=1024*1024*5;var j=class i{#e=N(ye);#i=N(U);#t=N(A);formRef=dt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=g(!1);isLoadingOptions=g(!0);sizeOptions=g(hn);serverSettingsEffect=L(()=>{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,m],F)=>{if(a.startsWith("--")){let I=a.replace("--",""),R=e.find(Z=>Z.name===I);R!==void 0?this.addNewOption(R,m):this.addFreeTextOption(I,m)}F===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(v(()=>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=G({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Tt(t.formRef,Xt,5),e&2&&ft()},features:[Ct([ye])],decls:20,vars:6,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=ne(n);let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let t;return t=$localize`Select an option...`,[["formRef",""],["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],[3,"searchable"],["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"],["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"],[3,"options","isClearable","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",t,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"]]},template:function(e,t){if(e&1){let a=O();s(0,"form",7,0),S("submit",function(){return C(a),E(t.submit())}),s(2,"app-toggle-card",8),ee(3,9),w(4,5),s(5,"spk-menu",10)(6,"button",11),f(7,"spk-icon"),o(),ee(8,12),Pe(9,qt,3,1,"button",13,he),te(),o(),$(),te(),u(11,Kt,2,0),ut(12,11,zt),o(),u(14,Mn,15,2,"ng-template",null,1,se),s(16,"div",14)(17,"button",15),w(18,6),f(19,"spk-icon"),$(),o()()()}e&2&&(d("formGroup",t.optionsForm),r(2),d("disallowToggle",!0),r(3),d("searchable",!0),r(4),Ie(t.nonSelectedOptions()),r(3),St(!t.isLoadingOptions()),r(5),P("loader",t.isSubmitting()))},dependencies:[Se,_e,V,Pt,ht,X,re,pe,me,ce,Ft,Te,ge,z,Ce,Ee,fe,xt,bt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}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 B=class i{#e=N(A);#i=N(ae);repeatRegisterTimer=null;state=g("unknown");claimUrl=g(null);registerUrl=g("");status=D(()=>{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=L(()=>{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();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=Y({token:i,factory:i.\u0275fac,providedIn:"root"})};function Pn(i,n){if(i&1){let e=O();s(0,"spk-form-field",10)(1,"input",11),k("ngModelChange",function(a){C(e);let m=l(2);return b(m.registerUrl,a)||(m.registerUrl=a),E(a)}),o()(),s(2,"button",12),S("click",function(){C(e);let a=l(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=l(2);r(),x("ngModel",e.registerUrl)}}function In(i,n){if(i&1&&(s(0,"div",8)(1,"label"),_(2,1),o(),s(3,"a",13),c(4),o()()),i&2){let e=l(2);r(3),y("href",e.claimUrl(),mt),r(),oe(e.claimUrl())}}function Rn(i,n){i&1&&(s(0,"div",8)(1,"label"),_(2,2),o()())}function yn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.cancel())}),_(1,3),o()}}function Fn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.disable())}),_(1,4),o()}}function vn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.enable())}),_(1,5),o(),s(2,"button",14),S("click",function(){C(e);let a=l(2);return E(a.delete())}),_(3,6),o()}}function An(i,n){if(i&1&&(s(0,"div",7),u(1,Pn,4,1)(2,In,5,2,"div",8)(3,Rn,3,0,"div",8)(4,yn,2,0,"button",9)(5,Fn,2,0,"button",9)(6,vn,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 Me=class i{#e=N(B);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=G({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 m;m=$localize`Disable remote control`;let F;F=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[n,e,t,a,m,F,I,[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&&u(0,An,7,6,"div",7),e&2&&T(t.state()!=="unknown"?0:-1)},dependencies:[ue,V,X,le,z],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 Gn=()=>({standalone:!0});function wn(i,n){i&1&&(s(0,"spk-icon",73),c(1,"check"),o())}function $n(i,n){i&1&&(s(0,"spk-icon",74),c(1,"prohibit"),o())}function xn(i,n){if(i&1){let e=O();s(0,"button",78),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(1,35),o()}if(i&2){let e=l(2);P("loader",e.isUpdating())}}function bn(i,n){if(i&1){let e=O();s(0,"spk-tooltip",77)(1,"button",79),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(2,36),o()()}if(i&2){let e=l(2);r(),P("loader",e.isUpdating()),d("disabled",!0)}}function kn(i,n){if(i&1){let e=O();s(0,"spk-form-field")(1,"label",69),_(2,32),o(),s(3,"input",70),k("ngModelChange",function(a){C(e);let m=l();return b(m.passphrase,a)||(m.passphrase=a),E(a)}),o()(),s(4,"spk-form-field")(5,"label",71),_(6,33),o(),s(7,"input",72),k("ngModelChange",function(a){C(e);let m=l();return b(m.repeatPassphrase,a)||(m.repeatPassphrase=a),E(a)}),o(),u(8,wn,2,0,"spk-icon",73)(9,$n,2,0,"spk-icon",74),o(),s(10,"div",50)(11,"button",75),S("click",function(){C(e);let a=l();return E(a.cancelPasswordChange())}),_(12,34),o(),u(13,xn,2,2,"button",76)(14,bn,3,3,"spk-tooltip",77),o()}if(i&2){let e=l();r(3),x("ngModel",e.passphrase),r(4),d("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 Dn(i,n){i&1&&(s(0,"spk-icon",80),c(1,"check"),o())}function Ln(i,n){if(i&1){let e=O();s(0,"div",50)(1,"button",75),S("click",function(){C(e);let a=l();return E(a.openPassphraseForm())}),_(2,37),o(),u(3,Dn,2,0,"spk-icon",80),o()}if(i&2){let e=l();r(3),T(e.passwordUpdated()?3:-1)}}function Vn(i,n){if(i&1){let e=O();s(0,"spk-form-field")(1,"label",81),_(2,38),o(),s(3,"textarea",82),k("ngModelChange",function(a){C(e);let m=l();return b(m.allowedHostnames,a)||(m.allowedHostnames=a),E(a)}),o()(),s(4,"spk-alert",83),_(5,39),o(),s(6,"button",78),S("click",function(){C(e);let a=l();return E(a.updateAllowedHostnames())}),_(7,40),o()}if(i&2){let e=l();r(3),x("ngModel",e.allowedHostnames),r(3),P("loader",e.updatingAllowedHosts())}}function Xn(i,n){if(i&1&&c(0),i&2){let e,t=l();h(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function zn(i,n){i&1&&f(0,"spk-progress-bar",55)}function Un(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e.label," ")}}function Bn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e.label," ")}}var Q=new de,Lt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Vt=[{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`}],ve=class i{#e=N(wt);#i=N(ae);#t=N(A);#n=N(U);#a=N(B);#o=N(Mt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=g("list");previousLang=this.#s;langCtrl=g(this.#s);remoteControlStatus=this.#a.status;settingsForm=Q.group({pauseSettings:Q.group({time:Q.control(0),timeType:Q.control("s")}),usageStatistics:Q.control("")});updatingChannel=g(!1);updateChannel=g("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),v(()=>this.updatingChannel.set(!1)),H(()=>(this.updateChannel.set(e),q(null)))).subscribe()}allowRemoteAccess=g(!1);allowedHostnames=g("");loadedAllowedHostnames=g("");updatingRemoteAccess=g(!1);updatingAllowedHosts=g(!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(),v(()=>this.updatingRemoteAccess.set(!1)),H(()=>(this.allowRemoteAccess.set(n),q(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(),v(()=>this.updatingAllowedHosts.set(!1)),H(()=>(this.allowedHostnames.set(n),q(null)))).subscribe()}updatingDisableTrayIconLogin=g(!1);disableTrayIconLogin=g(!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(),v(()=>this.updatingDisableTrayIconLogin.set(!1)),H(()=>(this.disableTrayIconLogin.set(n),q(null)))).subscribe()}showPassphraseForm=g(!1);isUpdating=g(!1);passphrase=g("");repeatPassphrase=g("");passwordUpdated=g(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),v(()=>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=g(Fe);usageStatisticsOptions=g(Vt);timeTypeOptions=g(Lt);timeTypeSignal=Ne(this.pauseSettings.controls.timeType.valueChanges);timeRange=D(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);#r(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.value,e=`${n.time}${n.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),m=["s","m","h"];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"]),console.log(n["usage-reporter-level"]),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:m.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]??""})})});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Fe.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:Lt.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:Vt.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=G({type:i,selectors:[["app-settings"]],decls:133,vars:39,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 m;m=$localize`Color theme`;let F;F=$localize`Customize your application theme`;let I;I=$localize`Passwords`;let R;R=$localize`Change server passphrase`;let Z;Z=$localize`Language`;let Ae;Ae=$localize`Select a language for the platform`;let Ge;Ge=$localize`Allow remote access (requires restart)`;let we;we=$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 $e;$e=$localize`Allow remote access`;let xe;xe=$localize`Prevent tray icon automatic log-in`;let be;be=$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 ke;ke=$localize`Prevent tray icon automatic log-in`;let De;De=$localize`Update channel`;let Le;Le=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ve;Ve=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`Stable`;let ze;ze=$localize`Official releases`;let Ue;Ue=$localize`Beta`;let Be;Be=$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 qe;qe=$localize` Experimental `;let He;He=$localize`Specific builds for developers only. Not for use with important data.`;let We;We=$localize`Canary`;let Ke;Ke=$localize`Individual builds for developers only. Not for use with important data.`;let je;je=$localize`Pause after startup or hibernation`;let Qe;Qe=$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 Ze;Ze=$localize`Usage statistics`;let J;J=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#121\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#121\uFFFD"}:CLOSE_LINK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\uFFFD]"}:LINE_BREAK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\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. `,J=ne(J);let Je;Je=$localize`Advanced options`;let Ye;Ye=$localize`Enter new password`;let et;et=$localize`Repeat password`;let tt;tt=$localize`Password have to be filled and have to match`;let nt;nt=$localize`Passphrase`;let it;it=$localize`Repeat passphrase`;let ot;ot=$localize`Cancel`;let st;st=$localize` Update passphrase `;let at;at=$localize` Update passphrase `;let rt;rt=$localize`Change password`;let lt;lt=$localize`Allowed hostnames`;let _t;_t=$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 pt;return pt=$localize` Update allowed hostnames `,[n,e,t,a,m,F,I,R,Z,Ae,Ge,we,$e,xe,be,ke,De,Le,Ve,Xe,ze,Ue,Be,qe,He,We,Ke,je,Qe,Ze,J,Je,nt,it,ot,st,at,rt,lt,_t,pt,[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"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Ye,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",et,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",tt,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"]]},template:function(e,t){if(e&1&&(f(0,"app-status-bar"),s(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),_(5,0),o(),s(6,"p"),_(7,1),o()(),s(8,"button",43),S("click",function(){return t.submit()}),_(9,2),o()(),s(10,"section")(11,"div",44)(12,"h3"),_(13,3),o(),s(14,"p"),c(15),o()(),s(16,"div",45),f(17,"app-remote-control"),o()(),s(18,"section")(19,"div",44)(20,"h3"),_(21,4),o(),s(22,"p"),_(23,5),o()(),s(24,"div",45)(25,"div",46)(26,"img",47),S("click",function(){return t.setLightMode()}),o(),s(27,"img",48),S("click",function(){return t.setDarkMode()}),o()()()(),s(28,"section")(29,"div",44)(30,"h3"),_(31,6),o(),s(32,"p"),_(33,7),o()(),s(34,"div",49),u(35,kn,15,7)(36,Ln,4,1,"div",50),o()(),s(37,"section")(38,"div",44)(39,"h3"),_(40,8),o(),s(41,"p"),_(42,9),o()(),s(43,"div",45)(44,"spk-select",51),S("selectedOptionsChange",function(m){return t.updateLocale(m)}),f(45,"input",52),o()()(),s(46,"section")(47,"div",44)(48,"h3"),_(49,10),o(),s(50,"p"),_(51,11),o()(),s(52,"div",53)(53,"spk-toggle",54),S("click",function(){return t.updateRemoteAccess()}),s(54,"label"),_(55,12),o()(),u(56,Vn,8,3),o()(),s(57,"section")(58,"div",44)(59,"h3"),_(60,13),o(),s(61,"p"),_(62,14),o()(),s(63,"div",45)(64,"spk-toggle",54),S("click",function(){return t.saveDisableTrayIconLogin()}),s(65,"label"),_(66,15),o()()()(),s(67,"section")(68,"div",44)(69,"h3"),_(70,16),o(),s(71,"p"),u(72,Xn,1,1),o(),u(73,zn,1,0,"spk-progress-bar",55),o(),s(74,"div",56)(75,"div",57),S("click",function(){return t.setNewChannel("")}),s(76,"spk-radio",58),_(77,17),o(),s(78,"p"),_(79,18),o()(),s(80,"div",57),S("click",function(){return t.setNewChannel("stable")}),s(81,"spk-radio",58),_(82,19),o(),s(83,"p"),_(84,20),o()(),s(85,"div",57),S("click",function(){return t.setNewChannel("beta")}),s(86,"spk-radio",58),_(87,21),o(),s(88,"p"),_(89,22),o()(),s(90,"div",57),S("click",function(){return t.setNewChannel("experimental")}),s(91,"spk-radio",58),_(92,23),o(),s(93,"p"),_(94,24),o()(),s(95,"div",57),S("click",function(){return t.setNewChannel("canary")}),s(96,"spk-radio",58),_(97,25),o(),s(98,"p"),_(99,26),o()()()()(),f(100,"spk-divider"),s(101,"form",59),S("submit",function(){return t.submit()}),s(102,"section")(103,"div",44)(104,"h3"),_(105,27),o(),s(106,"p"),_(107,28),o()(),s(108,"div",45)(109,"div",60)(110,"spk-range-slider",61),f(111,"input",62),o(),s(112,"spk-select",63),f(113,"input",64),u(114,Un,1,1,"ng-template"),o()()()(),s(115,"section")(116,"div",44)(117,"h3"),_(118,29),o(),s(119,"p"),w(120,30),f(121,"a",65)(122,"br")(123,"br"),$(),o()(),s(124,"div",45)(125,"spk-select",66),f(126,"input",67),u(127,Bn,1,1,"ng-template"),o()()(),s(128,"section")(129,"div",68)(130,"h3"),_(131,31),o(),f(132,"app-advanced-options-settings"),o()()()),e&2){let a,m,F,I;r(8),d("disabled",t.settingsForm.untouched),r(7),oe(t.remoteControlStatus()),r(11),P("active",!t.isDarkMode()),r(),P("active",t.isDarkMode()),r(8),T(t.showPassphraseForm()?35:36),r(9),d("options",t.languageOptions())("isClearable",!1)("inlineSearch",!0),r(),d("ngModel",t.langCtrl())("ngModelOptions",Et(38,Gn)),r(8),P("active",t.allowRemoteAccess()),r(3),T(t.allowRemoteAccess()?56:-1),r(8),P("active",t.disableTrayIconLogin()),r(8),T(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?72:-1),r(),T(t.updatingChannel()?73:-1),r(3),P("active",t.updateChannel()===""),r(),W((m=t.sysinfo())==null?null:m.DefaultUpdateChannel),K(77),r(2),W((F=t.sysinfo())==null?null:F.ServerVersionType),K(79),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),d("formGroup",t.settingsForm),r(9),d("unit",(I=t.timeTypeSignal())!==null&&I!==void 0?I:""),r(),d("min",t.timeRange()[0])("max",t.timeRange()[1]),r(),d("options",t.timeTypeOptions())("isClearable",!1),r(13),d("options",t.usageStatisticsOptions())}},dependencies:[ue,_e,V,It,X,re,le,Se,pe,me,ce,$t,Me,j,Te,At,Gt,vt,Ce,Ee,z,ge,yt,Rt,fe],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}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}"],changeDetection:0})};export{ve as default};
|
|
1
|
+
import{o as ye}from"./chunk-C4YENYVT.js";import{a as xt}from"./chunk-Z3ALFDJZ.js";import{a as bt}from"./chunk-RBEE6F5X.js";import"./chunk-DNHLTHLR.js";import{a as Ne}from"./chunk-I56L7YBT.js";import{a as Fe}from"./chunk-Q2S4M24F.js";import{a as ae}from"./chunk-DXNCMAOT.js";import{a as wt}from"./chunk-D3OXH7DI.js";import"./chunk-2MAHQYCM.js";import{a as Mt}from"./chunk-26LLZBVS.js";import{a as $t}from"./chunk-HRMKDPOR.js";import"./chunk-3CWO2EV5.js";import"./chunk-3NUWESLC.js";import"./chunk-IWMMFNSQ.js";import"./chunk-B27FY76R.js";import{a as ht,b as V,d as X,e as re,g as le,h as _e,i as Pt,k as It,m as pe,n as ce,p as me,q as de,r as ue,s as Se}from"./chunk-25A34CYL.js";import"./chunk-EEWVYRVF.js";import{b as A}from"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import{a as ge,b as Rt,g as Te,k as yt,l as z,n as Ft,o as vt,p as At,q as Gt,r as fe,w as Ce,x as Ee}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-KB62MNQB.js";import{Ab as s,Bb as o,Cb as f,D as v,Db as ee,Eb as te,Fb as gt,Gb as O,Kc as D,Mb as w,Mc as L,Nb as $,Oa as mt,Ob as _,Pb as W,Qa as r,Qb as K,R as Y,Rb as ne,Sb as S,Tb as l,Wb as y,X as N,Xa as dt,Yb as M,Zb as Re,c as ct,ca as C,cc as Tt,da as E,db as G,dc as ft,ec as ie,fc as c,gc as oe,hc as h,ib as u,kc as x,l as q,lc as b,mc as k,ob as ut,pb as St,qc as Ct,rb as d,rc as Et,sc as Nt,ta as g,tb as P,tc as Ot,wb as T,xb as he,y as H,yb as Pe,yc as se,zb as Ie}from"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";var U=class i{#e=N(A);#i=Ne(this.#e.getApiV1Serversettings());#t=g(void 0);serverSettings=D(()=>this.#t()||this.#i());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:n=>{this.#t.set(n)}})}withRefresh(){return ct(v(()=>this.refreshServerSettings()))}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Y({token:i,factory:i.\u0275fac,providedIn:"root"})};var Xt=["formRef"],zt=()=>[import("./chunk-VC6R3EOF.js").then(i=>i.NgTemplateOutlet)],Ut=(i,n)=>({index:i,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Bt=i=>({$implicit:i});function qt(i,n){if(i&1){let e=O();w(0,5,1),s(1,"button",16,2),S("click",function(){let a=C(e).$implicit,m=l();return E(m.addNewOption(a))}),o(),$()}if(i&2){let e=n.$implicit;r(),W(e.name),K(0)}}function Ht(i,n){i&1&>(0)}function Wt(i,n){if(i&1&&u(0,Ht,1,0,"ng-container",17),i&2){let e=n.$implicit,t=n.$index;l(2);let a=ie(15);d("ngTemplateOutlet",a)("ngTemplateOutletContext",Nt(5,Bt,Ot(2,Ut,t,e)))}}function Kt(i,n){if(i&1&&Pe(0,Wt,1,7,"ng-container",null,he),i&2){let e=l();Ie(e.selectedOptions())}}function jt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Qt(i,n){if(i&1&&(s(0,"app-file-tree",20)(1,"label",25),c(2),u(3,jt,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit,a=l();d("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name))("accepts",t.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Zt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Jt(i,n){if(i&1&&(s(0,"app-file-tree",21)(1,"label",25),c(2),u(3,Zt,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit,a=l();d("startingPath",a.getFormFieldValue(0,t.formGroupName,t.formView.name)),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Yt(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function en(i,n){i&1&&(s(0,"spk-icon",28),c(1,"link"),o())}function tn(i,n){i&1&&(s(0,"spk-icon",28),c(1,"textbox"),o())}function nn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,Yt,3,1,"spk-tooltip",26),o(),f(4,"input",27),u(5,en,2,0,"spk-icon",28)(6,tn,2,0,"spk-icon",28),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name),r(),T(t.formView.type==="Path"?5:6)}}function on(i,n){if(i&1){let e=O();s(0,"span",32),S("click",function(){C(e);let a=l(2).$implicit,m=l();return E(m.oauthStartTokenCreation(a.formViewType))}),c(1,"AuthID"),o()}}function sn(i,n){i&1&&(s(0,"spk-icon",28),c(1,"password"),o())}function an(i,n){if(i&1){let e=O();s(0,"spk-icon",33),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye "),o()}}function rn(i,n){if(i&1){let e=O();s(0,"spk-icon",33),S("click",function(){C(e);let a=l(2).$implicit;return E(a.formView.showPassword=!a.formView.showPassword)}),c(1," eye-slash "),o()}}function ln(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),o(),f(3,"input",29),u(4,on,2,0,"span",30)(5,sn,2,0,"spk-icon",28)(6,an,2,0,"spk-icon",31)(7,rn,2,0,"spk-icon",31),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name),d("type",t.formView.showPassword?"text":"password"),r(),T(t.oauthField===t.formView.name?4:5),r(2),T(t.formView.showPassword?6:7)}}function _n(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function pn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e," ")}}function cn(i,n){if(i&1&&(s(0,"spk-select",34)(1,"label",25),c(2),u(3,_n,3,1,"spk-tooltip",26),o(),f(4,"input",27),o(),u(5,pn,1,1,"ng-template",null,3,se)),i&2){let e,t=ie(6),a=l().$implicit;d("options",a.formView.options)("isClearable",!1)("optionTemplate",t),r(),Re("for","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),r(),h(" ",(e=a.formView.shortDescription)!==null&&e!==void 0?e:a.formView.name," "),r(),T(a.formView.longDescription?3:-1),r(),Re("id","destination-",a.formGroupName,"-",a.index,"-",a.asHttpOptions?"http":"other",""),y("formControlName",a.formView.name)}}function mn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function dn(i,n){if(i&1&&(s(0,"div",22)(1,"label",25),c(2),u(3,mn,3,1,"spk-tooltip",26),o(),s(4,"div",35)(5,"spk-form-field"),f(6,"input",36),s(7,"spk-icon",28),c(8,"resize"),o()(),s(9,"spk-select",37),f(10,"input",38),o()()()),i&2){let e,t=l().$implicit,a=l();d("formGroupName",t.formView.name),r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(3),M("id","destination-",t.formGroupName,"-",t.index,""),r(3),d("options",a.sizeOptions())("inlineSearch",!0)}}function un(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Sn(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,un,3,1,"spk-tooltip",26),o(),f(4,"input",39),s(5,"spk-icon",28),c(6,"numpad"),o()()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function gn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Tn(i,n){if(i&1&&(s(0,"spk-toggle",23)(1,"label",25),c(2),u(3,gn,3,1,"spk-tooltip",26),o(),f(4,"input",40),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function fn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function Cn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e," ")}}function En(i,n){if(i&1&&(s(0,"spk-select",41)(1,"label",25),c(2),u(3,fn,3,1,"spk-tooltip",26),o(),f(4,"input",42),o(),u(5,Cn,1,1,"ng-template",null,4,se)),i&2){let e,t=ie(6),a=l().$implicit;d("options",a.formView.options)("selectMultiple",!0)("optionTemplate",t),r(),M("for","destination-",a.formGroupName,"-",a.index,""),r(),h(" ",(e=a.formView.shortDescription)!==null&&e!==void 0?e:a.formView.name," "),r(),T(a.formView.longDescription?3:-1),r(),y("formControlName",a.formView.name)}}function Nn(i,n){if(i&1&&(s(0,"spk-tooltip",26)(1,"spk-icon"),c(2,"question"),o()()),i&2){let e=l(2).$implicit;d("message",e.formView.longDescription)}}function On(i,n){if(i&1&&(s(0,"spk-form-field")(1,"label",25),c(2),u(3,Nn,3,1,"spk-tooltip",26),o(),f(4,"input",27),o()),i&2){let e,t=l().$implicit;r(),M("for","destination-",t.formGroupName,"-",t.index,""),r(),h(" ",(e=t.formView.shortDescription)!==null&&e!==void 0?e:t.formView.name," "),r(),T(t.formView.longDescription?3:-1),r(),M("id","destination-",t.formGroupName,"-",t.index,""),y("formControlName",t.formView.name)}}function Mn(i,n){if(i&1){let e=O();s(0,"div",18),ee(1,19),u(2,Qt,5,14,"app-file-tree",20)(3,Jt,5,10,"app-file-tree",21)(4,nn,7,10,"spk-form-field")(5,ln,8,11,"spk-form-field")(6,cn,7,14)(7,dn,11,11,"div",22)(8,Sn,7,9,"spk-form-field")(9,Tn,5,9,"spk-toggle",23)(10,En,7,9)(11,On,5,9,"spk-form-field"),te(),s(12,"button",24),S("click",function(){let a=C(e).$implicit,m=l();return E(m.removeFormView(a.formView))}),s(13,"spk-icon"),c(14,"x-circle"),o()()()}if(i&2){let e=n.$implicit;r(),d("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 pi=new de,hn=["Bytes","KB","MB","GB","TB","PB"],ci=[{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`}],mi=1024*1024*1024*2,di=1024*1024*5;var j=class i{#e=N(ye);#i=N(U);#t=N(A);formRef=dt.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=g(!1);isLoadingOptions=g(!0);sizeOptions=g(hn);serverSettingsEffect=L(()=>{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,m],F)=>{if(a.startsWith("--")){let I=a.replace("--",""),R=e.find(Z=>Z.name===I);R!==void 0?this.addNewOption(R,m):this.addFreeTextOption(I,m)}F===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(v(()=>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=G({type:i,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,t){e&1&&Tt(t.formRef,Xt,5),e&2&&ft()},features:[Ct([ye])],decls:20,vars:6,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=ne(n);let e;e=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:floppy-disk${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Save `;let t;return t=$localize`Select an option...`,[["formRef",""],["fieldTemplate",""],["option",""],["enumOptionTemplate",""],["optionTemplate",""],n,e,[3,"submit","formGroup"],[3,"disallowToggle"],["title",""],[3,"searchable"],["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"],["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"],[3,"options","isClearable","optionTemplate"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["placeholder",t,3,"options","inlineSearch"],["type","text","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"formControlName"]]},template:function(e,t){if(e&1){let a=O();s(0,"form",7,0),S("submit",function(){return C(a),E(t.submit())}),s(2,"app-toggle-card",8),ee(3,9),w(4,5),s(5,"spk-menu",10)(6,"button",11),f(7,"spk-icon"),o(),ee(8,12),Pe(9,qt,3,1,"button",13,he),te(),o(),$(),te(),u(11,Kt,2,0),ut(12,11,zt),o(),u(14,Mn,15,2,"ng-template",null,1,se),s(16,"div",14)(17,"button",15),w(18,6),f(19,"spk-icon"),$(),o()()()}e&2&&(d("formGroup",t.optionsForm),r(2),d("disallowToggle",!0),r(3),d("searchable",!0),r(4),Ie(t.nonSelectedOptions()),r(3),St(!t.isLoadingOptions()),r(5),P("loader",t.isSubmitting()))},dependencies:[Se,_e,V,Pt,ht,X,re,pe,me,ce,Ft,Te,ge,z,Ce,Ee,fe,xt,bt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}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 B=class i{#e=N(A);#i=N(ae);repeatRegisterTimer=null;state=g("unknown");claimUrl=g(null);registerUrl=g("");status=D(()=>{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=L(()=>{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();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=Y({token:i,factory:i.\u0275fac,providedIn:"root"})};function Pn(i,n){if(i&1){let e=O();s(0,"spk-form-field",10)(1,"input",11),k("ngModelChange",function(a){C(e);let m=l(2);return b(m.registerUrl,a)||(m.registerUrl=a),E(a)}),o()(),s(2,"button",12),S("click",function(){C(e);let a=l(2);return E(a.register())}),_(3,0),o()}if(i&2){let e=l(2);r(),x("ngModel",e.registerUrl)}}function In(i,n){if(i&1&&(s(0,"div",8)(1,"label"),_(2,1),o(),s(3,"a",13),c(4),o()()),i&2){let e=l(2);r(3),y("href",e.claimUrl(),mt),r(),oe(e.claimUrl())}}function Rn(i,n){i&1&&(s(0,"div",8)(1,"label"),_(2,2),o()())}function yn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.cancel())}),_(1,3),o()}}function Fn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.disable())}),_(1,4),o()}}function vn(i,n){if(i&1){let e=O();s(0,"button",12),S("click",function(){C(e);let a=l(2);return E(a.enable())}),_(1,5),o(),s(2,"button",14),S("click",function(){C(e);let a=l(2);return E(a.delete())}),_(3,6),o()}}function An(i,n){if(i&1&&(s(0,"div",7),u(1,Pn,4,1)(2,In,5,2,"div",8)(3,Rn,3,0,"div",8)(4,yn,2,0,"button",9)(5,Fn,2,0,"button",9)(6,vn,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 Me=class i{#e=N(B);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=G({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 m;m=$localize`Disable remote control`;let F;F=$localize`Enable remote control`;let I;return I=$localize`Delete remote control setup`,[n,e,t,a,m,F,I,[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&&u(0,An,7,6,"div",7),e&2&&T(t.state()!=="unknown"?0:-1)},dependencies:[ue,V,X,le,z],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 Gn=()=>({standalone:!0});function wn(i,n){i&1&&(s(0,"spk-icon",73),c(1,"check"),o())}function $n(i,n){i&1&&(s(0,"spk-icon",74),c(1,"prohibit"),o())}function xn(i,n){if(i&1){let e=O();s(0,"button",78),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(1,35),o()}if(i&2){let e=l(2);P("loader",e.isUpdating())}}function bn(i,n){if(i&1){let e=O();s(0,"spk-tooltip",77)(1,"button",79),S("click",function(){C(e);let a=l(2);return E(a.updatePassphrase())}),_(2,36),o()()}if(i&2){let e=l(2);r(),P("loader",e.isUpdating()),d("disabled",!0)}}function kn(i,n){if(i&1){let e=O();s(0,"spk-form-field")(1,"label",69),_(2,32),o(),s(3,"input",70),k("ngModelChange",function(a){C(e);let m=l();return b(m.passphrase,a)||(m.passphrase=a),E(a)}),o()(),s(4,"spk-form-field")(5,"label",71),_(6,33),o(),s(7,"input",72),k("ngModelChange",function(a){C(e);let m=l();return b(m.repeatPassphrase,a)||(m.repeatPassphrase=a),E(a)}),o(),u(8,wn,2,0,"spk-icon",73)(9,$n,2,0,"spk-icon",74),o(),s(10,"div",50)(11,"button",75),S("click",function(){C(e);let a=l();return E(a.cancelPasswordChange())}),_(12,34),o(),u(13,xn,2,2,"button",76)(14,bn,3,3,"spk-tooltip",77),o()}if(i&2){let e=l();r(3),x("ngModel",e.passphrase),r(4),d("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 Dn(i,n){i&1&&(s(0,"spk-icon",80),c(1,"check"),o())}function Ln(i,n){if(i&1){let e=O();s(0,"div",50)(1,"button",75),S("click",function(){C(e);let a=l();return E(a.openPassphraseForm())}),_(2,37),o(),u(3,Dn,2,0,"spk-icon",80),o()}if(i&2){let e=l();r(3),T(e.passwordUpdated()?3:-1)}}function Vn(i,n){if(i&1){let e=O();s(0,"spk-form-field")(1,"label",81),_(2,38),o(),s(3,"textarea",82),k("ngModelChange",function(a){C(e);let m=l();return b(m.allowedHostnames,a)||(m.allowedHostnames=a),E(a)}),o()(),s(4,"spk-alert",83),_(5,39),o(),s(6,"button",78),S("click",function(){C(e);let a=l();return E(a.updateAllowedHostnames())}),_(7,40),o()}if(i&2){let e=l();r(3),x("ngModel",e.allowedHostnames),r(3),P("loader",e.updatingAllowedHosts())}}function Xn(i,n){if(i&1&&c(0),i&2){let e,t=l();h(" ",(e=t.sysinfo())==null?null:e.ServerVersion," ")}}function zn(i,n){i&1&&f(0,"spk-progress-bar",55)}function Un(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e.label," ")}}function Bn(i,n){if(i&1&&c(0),i&2){let e=n.$implicit;h(" ",e.label," ")}}var Q=new de,Lt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],Vt=[{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`}],ve=class i{#e=N(wt);#i=N(ae);#t=N(A);#n=N(U);#a=N(B);#o=N(Mt);#s=this.#o.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=g("list");previousLang=this.#s;langCtrl=g(this.#s);remoteControlStatus=this.#a.status;settingsForm=Q.group({pauseSettings:Q.group({time:Q.control(0),timeType:Q.control("s")}),usageStatistics:Q.control("")});updatingChannel=g(!1);updateChannel=g("");setNewChannel(n){let e=this.updateChannel();this.updateChannel.set(n),this.#t.patchApiV1Serversettings({requestBody:{"update-channel":n}}).pipe(this.#n.withRefresh(),v(()=>this.updatingChannel.set(!1)),H(()=>(this.updateChannel.set(e),q(null)))).subscribe()}allowRemoteAccess=g(!1);allowedHostnames=g("");loadedAllowedHostnames=g("");updatingRemoteAccess=g(!1);updatingAllowedHosts=g(!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(),v(()=>this.updatingRemoteAccess.set(!1)),H(()=>(this.allowRemoteAccess.set(n),q(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(),v(()=>this.updatingAllowedHosts.set(!1)),H(()=>(this.allowedHostnames.set(n),q(null)))).subscribe()}updatingDisableTrayIconLogin=g(!1);disableTrayIconLogin=g(!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(),v(()=>this.updatingDisableTrayIconLogin.set(!1)),H(()=>(this.disableTrayIconLogin.set(n),q(null)))).subscribe()}showPassphraseForm=g(!1);isUpdating=g(!1);passphrase=g("");repeatPassphrase=g("");passwordUpdated=g(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(this.#n.withRefresh(),v(()=>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=g(Fe);usageStatisticsOptions=g(Vt);timeTypeOptions=g(Lt);timeTypeSignal=Ne(this.pauseSettings.controls.timeType.valueChanges);timeRange=D(()=>this.timeTypeSignal()==="h"?[0,24]:[0,60]);#r(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.value,e=`${n.time}${n.timeType}`;this.#t.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e}}).pipe(this.#n.withRefresh()).subscribe()}serverSettingsEffect=L(()=>{let n=this.#n.serverSettings();if(n===void 0)return;let e=n["startup-delay"],t=e.slice(-1),a=e.slice(0,-1),m=["s","m","h"];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"]),console.log(n["usage-reporter-level"]),queueMicrotask(()=>{this.settingsForm.patchValue({pauseSettings:{time:parseInt(a==""?"0":a),timeType:m.includes(t)?t:"s"},usageStatistics:n["usage-reporter-level"]??""})})});languageDisplay(){let n=this;return()=>{let e=n.langCtrl();return e?Fe.find(t=>t.value===e)?.label??null:null}}typeDisplay(){let n=this;return()=>{let e=n.settingsForm.value.pauseSettings?.timeType;return e==null?null:Lt.find(t=>t.value===e)?.label??null}}usageDisplay(){let n=this;return()=>{let e=n.settingsForm.value.usageStatistics;return e==null?null:Vt.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=G({type:i,selectors:[["app-settings"]],decls:133,vars:39,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 m;m=$localize`Color theme`;let F;F=$localize`Customize your application theme`;let I;I=$localize`Passwords`;let R;R=$localize`Change server passphrase`;let Z;Z=$localize`Language`;let Ae;Ae=$localize`Select a language for the platform`;let Ge;Ge=$localize`Allow remote access (requires restart)`;let we;we=$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 $e;$e=$localize`Allow remote access`;let xe;xe=$localize`Prevent tray icon automatic log-in`;let be;be=$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 ke;ke=$localize`Prevent tray icon automatic log-in`;let De;De=$localize`Update channel`;let Le;Le=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ve;Ve=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Xe;Xe=$localize`Stable`;let ze;ze=$localize`Official releases`;let Ue;Ue=$localize`Beta`;let Be;Be=$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 qe;qe=$localize` Experimental `;let He;He=$localize`Specific builds for developers only. Not for use with important data.`;let We;We=$localize`Canary`;let Ke;Ke=$localize`Individual builds for developers only. Not for use with important data.`;let je;je=$localize`Pause after startup or hibernation`;let Qe;Qe=$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 Ze;Ze=$localize`Usage statistics`;let J;J=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#121\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#121\uFFFD"}:CLOSE_LINK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\uFFFD]"}:LINE_BREAK:${"[\uFFFD#122\uFFFD\uFFFD/#122\uFFFD|\uFFFD#123\uFFFD\uFFFD/#123\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. `,J=ne(J);let Je;Je=$localize`Advanced options`;let Ye;Ye=$localize`Enter new password`;let et;et=$localize`Repeat password`;let tt;tt=$localize`Password have to be filled and have to match`;let nt;nt=$localize`Passphrase`;let it;it=$localize`Repeat passphrase`;let ot;ot=$localize`Cancel`;let st;st=$localize` Update passphrase `;let at;at=$localize` Update passphrase `;let rt;rt=$localize`Change password`;let lt;lt=$localize`Allowed hostnames`;let _t;_t=$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 pt;return pt=$localize` Update allowed hostnames `,[n,e,t,a,m,F,I,R,Z,Ae,Ge,we,$e,xe,be,ke,De,Le,Ve,Xe,ze,Ue,Be,qe,He,We,Ke,je,Qe,Ze,J,Je,nt,it,ot,st,at,rt,lt,_t,pt,[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"],[1,"raised","primary",3,"unit"],["type","range","formControlName","time",3,"min","max"],["label","label","value","value",3,"options","isClearable"],["type","text","formControlName","timeType"],["href","#"],["label","label","value","value",3,"options"],["type","text","formControlName","usageStatistics"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",Ye,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",et,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"spk-success"],["suffix",""],["spk-button","",3,"click"],["spk-button","",1,"raised","primary",3,"loader"],["message",tt,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"]]},template:function(e,t){if(e&1&&(f(0,"app-status-bar"),s(1,"div",41)(2,"header")(3,"div",42)(4,"h2"),_(5,0),o(),s(6,"p"),_(7,1),o()(),s(8,"button",43),S("click",function(){return t.submit()}),_(9,2),o()(),s(10,"section")(11,"div",44)(12,"h3"),_(13,3),o(),s(14,"p"),c(15),o()(),s(16,"div",45),f(17,"app-remote-control"),o()(),s(18,"section")(19,"div",44)(20,"h3"),_(21,4),o(),s(22,"p"),_(23,5),o()(),s(24,"div",45)(25,"div",46)(26,"img",47),S("click",function(){return t.setLightMode()}),o(),s(27,"img",48),S("click",function(){return t.setDarkMode()}),o()()()(),s(28,"section")(29,"div",44)(30,"h3"),_(31,6),o(),s(32,"p"),_(33,7),o()(),s(34,"div",49),u(35,kn,15,7)(36,Ln,4,1,"div",50),o()(),s(37,"section")(38,"div",44)(39,"h3"),_(40,8),o(),s(41,"p"),_(42,9),o()(),s(43,"div",45)(44,"spk-select",51),S("selectedOptionsChange",function(m){return t.updateLocale(m)}),f(45,"input",52),o()()(),s(46,"section")(47,"div",44)(48,"h3"),_(49,10),o(),s(50,"p"),_(51,11),o()(),s(52,"div",53)(53,"spk-toggle",54),S("click",function(){return t.updateRemoteAccess()}),s(54,"label"),_(55,12),o()(),u(56,Vn,8,3),o()(),s(57,"section")(58,"div",44)(59,"h3"),_(60,13),o(),s(61,"p"),_(62,14),o()(),s(63,"div",45)(64,"spk-toggle",54),S("click",function(){return t.saveDisableTrayIconLogin()}),s(65,"label"),_(66,15),o()()()(),s(67,"section")(68,"div",44)(69,"h3"),_(70,16),o(),s(71,"p"),u(72,Xn,1,1),o(),u(73,zn,1,0,"spk-progress-bar",55),o(),s(74,"div",56)(75,"div",57),S("click",function(){return t.setNewChannel("")}),s(76,"spk-radio",58),_(77,17),o(),s(78,"p"),_(79,18),o()(),s(80,"div",57),S("click",function(){return t.setNewChannel("stable")}),s(81,"spk-radio",58),_(82,19),o(),s(83,"p"),_(84,20),o()(),s(85,"div",57),S("click",function(){return t.setNewChannel("beta")}),s(86,"spk-radio",58),_(87,21),o(),s(88,"p"),_(89,22),o()(),s(90,"div",57),S("click",function(){return t.setNewChannel("experimental")}),s(91,"spk-radio",58),_(92,23),o(),s(93,"p"),_(94,24),o()(),s(95,"div",57),S("click",function(){return t.setNewChannel("canary")}),s(96,"spk-radio",58),_(97,25),o(),s(98,"p"),_(99,26),o()()()()(),f(100,"spk-divider"),s(101,"form",59),S("submit",function(){return t.submit()}),s(102,"section")(103,"div",44)(104,"h3"),_(105,27),o(),s(106,"p"),_(107,28),o()(),s(108,"div",45)(109,"div",60)(110,"spk-range-slider",61),f(111,"input",62),o(),s(112,"spk-select",63),f(113,"input",64),u(114,Un,1,1,"ng-template"),o()()()(),s(115,"section")(116,"div",44)(117,"h3"),_(118,29),o(),s(119,"p"),w(120,30),f(121,"a",65)(122,"br")(123,"br"),$(),o()(),s(124,"div",45)(125,"spk-select",66),f(126,"input",67),u(127,Bn,1,1,"ng-template"),o()()(),s(128,"section")(129,"div",68)(130,"h3"),_(131,31),o(),f(132,"app-advanced-options-settings"),o()()()),e&2){let a,m,F,I;r(8),d("disabled",t.settingsForm.untouched),r(7),oe(t.remoteControlStatus()),r(11),P("active",!t.isDarkMode()),r(),P("active",t.isDarkMode()),r(8),T(t.showPassphraseForm()?35:36),r(9),d("options",t.languageOptions())("isClearable",!1)("inlineSearch",!0),r(),d("ngModel",t.langCtrl())("ngModelOptions",Et(38,Gn)),r(8),P("active",t.allowRemoteAccess()),r(3),T(t.allowRemoteAccess()?56:-1),r(8),P("active",t.disableTrayIconLogin()),r(8),T(t.updateChannel()!==""&&((a=t.sysinfo())!=null&&a.ServerVersion)?72:-1),r(),T(t.updatingChannel()?73:-1),r(3),P("active",t.updateChannel()===""),r(),W((m=t.sysinfo())==null?null:m.DefaultUpdateChannel),K(77),r(2),W((F=t.sysinfo())==null?null:F.ServerVersionType),K(79),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),d("formGroup",t.settingsForm),r(9),d("unit",(I=t.timeTypeSignal())!==null&&I!==void 0?I:""),r(),d("min",t.timeRange()[0])("max",t.timeRange()[1]),r(),d("options",t.timeTypeOptions())("isClearable",!1),r(13),d("options",t.usageStatisticsOptions())}},dependencies:[ue,_e,V,It,X,re,le,Se,pe,me,ce,$t,Me,j,Te,At,Gt,vt,Ce,Ee,z,ge,yt,Rt,fe],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}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}"],changeDetection:0})};export{ve as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as a,n as b}from"./chunk-
|
|
1
|
+
import{m as a,n as b}from"./chunk-C4YENYVT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-DNHLTHLR.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-2MAHQYCM.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as a,l as b}from"./chunk-
|
|
1
|
+
import{k as a,l as b}from"./chunk-C4YENYVT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-DNHLTHLR.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-2MAHQYCM.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b,e as c}from"./chunk-
|
|
1
|
+
import{c as a,d as b,e as c}from"./chunk-C4YENYVT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-DNHLTHLR.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-2MAHQYCM.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-C6Q5SG76.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-C7Y6Y3WG.js")},{path:"encryption",loadComponent:()=>import("./chunk-OHOVQQRF.js")},{path:"select-files",loadComponent:()=>import("./chunk-5Q53HYKJ.js")},{path:"options",loadComponent:()=>import("./chunk-6OZGFFIP.js")}],o=t;export{o as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K}from"./chunk-I56L7YBT.js";import{b as X}from"./chunk-F7TB6D2I.js";import{a as z,d as J,g as q}from"./chunk-
|
|
1
|
+
import{a as K}from"./chunk-I56L7YBT.js";import{b as X}from"./chunk-F7TB6D2I.js";import{a as z,d as J,g as q}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import{Ab as i,Bb as a,Cb as g,Gb as u,Mb as A,Mc as W,Nb as D,Oa as E,Ob as y,Qa as l,Sb as S,Tb as f,Wb as w,X as v,ca as d,da as _,db as h,fc as c,gc as C,hc as I,ib as k,ic as N,kc as $,lc as B,mc as V,nc as U,p as T,rb as F,rc as G,ta as m,wb as x,xb as M,yb as P,zb as R}from"./chunk-5ONOZUNN.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,d as b}from"./chunk-
|
|
1
|
+
import{c as a,d as b}from"./chunk-JD2VZ7AT.js";import"./chunk-Z3ALFDJZ.js";import"./chunk-RBEE6F5X.js";import"./chunk-I56L7YBT.js";import"./chunk-DXNCMAOT.js";import"./chunk-25A34CYL.js";import"./chunk-F7TB6D2I.js";import"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";export{a as createEncryptionForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A}from"./chunk-I56L7YBT.js";import{b as S}from"./chunk-F7TB6D2I.js";import{c as M}from"./chunk-CKZXQWC5.js";import{o as P}from"./chunk-
|
|
1
|
+
import{a as A}from"./chunk-I56L7YBT.js";import{b as S}from"./chunk-F7TB6D2I.js";import{c as M}from"./chunk-CKZXQWC5.js";import{o as P}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import{Ab as i,Bb as r,Cb as _,D as p,Ob as C,Qa as c,X as o,db as g,fc as u,gc as E,ib as d,p as l,ta as m,wb as f}from"./chunk-5ONOZUNN.js";import"./chunk-C6Q5SG76.js";function G(t,e){t&1&&_(0,"spk-progress-bar",1)}var a=class t{#n=o(M);#e=o(S);isLoading=m(!0);generalInfo=A(this.#e.getApiV1Acknowledgements().pipe(l(e=>e.Acknowledgements),p(()=>this.isLoading.set(!1))));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=g({type:t,selectors:[["app-general"]],decls:6,vars:2,consts:()=>{let e;return e=$localize`General`,[e,[1,"indeterminate","primary"]]},template:function(n,s){n&1&&(d(0,G,1,0,"spk-progress-bar",1),i(1,"section")(2,"h3"),C(3,0),r(),i(4,"div"),u(5),r()()),n&2&&(f(s.isLoading()?0:-1),c(5),E(s.generalInfo()))},dependencies:[P],styles:["[_nghost-%COMP%]{display:block;position:relative}h3[_ngcontent-%COMP%]{font:var(--title-30);margin:0 0 1.25rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}section[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{white-space:pre-wrap}spk-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}"],changeDetection:0})};export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-KYG6FTJ2.js";import{Ab as o,Bb as n,Qa as g,Sb as h,Ub as _,Vb as a,_a as d,db as p,fc as s,ib as m,pa as r,tb as f,wb as C}from"./chunk-5ONOZUNN.js";var v=[[["","title",""]],[["","description",""]],[["","action",""]],"*"],P=["[title]","[description]","[action]","*"];function M(e,l){e&1&&s(0,"Title")}function T(e,l){e&1&&(o(0,"spk-icon"),s(1,"caret-down"),n())}var c=class e{isActive=d(!1);disallowToggle=r(!1);ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=p({type:e,selectors:[["app-toggle-card"]],hostVars:2,hostBindings:function(t,i){t&2&&f("active",i.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:P,decls:11,vars:1,consts:[[1,"title"],[3,"click"],[1,"actions"],[1,"content"]],template:function(t,i){t&1&&(_(v),o(0,"header")(1,"div",0)(2,"h3",1),h("click",function(){return i.disallowToggle()||i.toggle()}),a(3,0,null,M,1,0),m(5,T,2,0,"spk-icon"),n(),a(6,1),n(),o(7,"div",2),a(8,2),n()(),o(9,"div",3),a(10,3),n()),t&2&&(g(5),C(i.disallowToggle()?-1:5))},dependencies:[u],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-radius:var(--shape-3);background-color:var(--base-level-20)}.active[_nghost-%COMP%] .content[_ngcontent-%COMP%]{max-height:1000px;transition:max-height 1s linear;padding:0 1rem 1rem}.active[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;font:var(--paragraph-10);cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] spk-icon[_ngcontent-%COMP%]{transform:rotate(0);transform-origin:center;transition:transform .2s ease}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;flex:1 0}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]:empty{display:none}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem;padding:0 1rem;overflow:hidden;max-height:0;transition:max-height .25s linear,padding .25s linear}.content[_ngcontent-%COMP%]:empty{display:none}"],changeDetection:0})};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as $}from"./chunk-I56L7YBT.js";import{a as R}from"./chunk-
|
|
1
|
+
import{a as $}from"./chunk-I56L7YBT.js";import{a as R}from"./chunk-HRMKDPOR.js";import"./chunk-3CWO2EV5.js";import"./chunk-3NUWESLC.js";import"./chunk-IWMMFNSQ.js";import"./chunk-B27FY76R.js";import"./chunk-25A34CYL.js";import"./chunk-EEWVYRVF.js";import{b as k}from"./chunk-F7TB6D2I.js";import{a as A,d as N}from"./chunk-EMAOG2GJ.js";import"./chunk-CKZXQWC5.js";import{a as B,g as O}from"./chunk-KYG6FTJ2.js";import"./chunk-BE77QZG7.js";import"./chunk-OXZWBTVI.js";import"./chunk-KB62MNQB.js";import{Ab as F,Bb as a,Cb as r,Kc as M,Mb as _,Nb as c,Ob as u,Qa as i,Rb as T,Sb as I,X as m,db as C,fc as E,hc as L,ib as p,ta as l,wb as s,xb as f,yb as S,zb as g}from"./chunk-5ONOZUNN.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};
|