@duplicati/ngclient 0.0.74 → 0.0.78
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/assets/spk.woff2 +0 -0
- package/chunk-2K3CR66C.js +1 -0
- package/chunk-3CRA7LUM.js +1 -0
- package/chunk-3LITUWIH.js +3 -0
- package/{chunk-MYVJZFYR.js → chunk-4OE5GJEY.js} +1 -1
- package/chunk-5K2CQFVP.js +1 -0
- package/chunk-6SIZVSDW.js +2 -0
- package/chunk-7KWOTSVE.js +1 -0
- package/{chunk-LJFKKI57.js → chunk-7P2RW65H.js} +1 -1
- package/chunk-7QPDYG2R.js +1 -0
- package/{chunk-77KHDJR7.js → chunk-7WKWA7QK.js} +1 -1
- package/chunk-AGD6LHBQ.js +1 -0
- package/chunk-BLF5NVEW.js +1 -0
- package/{chunk-CAGBL2MP.js → chunk-BRTUMDFG.js} +1 -1
- package/{chunk-FCPUMFVG.js → chunk-CS4VRCLU.js} +1 -1
- package/{chunk-VUVQIS7G.js → chunk-DVV65XF4.js} +1 -1
- package/{chunk-PRKOHXBN.js → chunk-EW42J6OZ.js} +1 -1
- package/chunk-F4G2WAF6.js +1 -0
- package/{chunk-L5ZZZJEY.js → chunk-F7KC3CMY.js} +1 -1
- package/{chunk-GJ6GRAEW.js → chunk-FOHDLUCC.js} +1 -1
- package/{chunk-VJQDP23H.js → chunk-G7YGQ54D.js} +1 -1
- package/{chunk-OT7JK3TS.js → chunk-HDBZ3ISU.js} +1 -1
- package/{chunk-43QTP63M.js → chunk-HXGHAEWC.js} +1 -1
- package/{chunk-BY56DZ7Y.js → chunk-HZOYOR46.js} +1 -1
- package/chunk-IKTCS2AI.js +1 -0
- package/chunk-ILPTEKIT.js +1 -0
- package/{chunk-RBVR4WTJ.js → chunk-IN72UOWN.js} +1 -1
- package/{chunk-ROIHQL5Y.js → chunk-IWSFC3I6.js} +1 -1
- package/chunk-JOBMLOGZ.js +1 -0
- package/{chunk-VKMKZKNR.js → chunk-JZOCG4KQ.js} +1 -1
- package/{chunk-KYQC46J2.js → chunk-KHIKPOXK.js} +1 -1
- package/{chunk-ANP5WEOJ.js → chunk-KPP5HW6S.js} +1 -1
- package/{chunk-C6ELLTE3.js → chunk-KRXCULQR.js} +1 -1
- package/{chunk-UJWW7PS7.js → chunk-LFQXDL42.js} +1 -1
- package/{chunk-6CRYB4HA.js → chunk-MHZPUJQF.js} +1 -1
- package/{chunk-2QQJM43S.js → chunk-N4ZZA3JQ.js} +1 -1
- package/{chunk-BEBLA2OU.js → chunk-NDQ5RFC6.js} +1 -1
- package/chunk-NVTD7IP4.js +1 -0
- package/{chunk-5KGMNBD7.js → chunk-O3XPW5NY.js} +1 -1
- package/chunk-OEWX26UE.js +1 -0
- package/{chunk-Z2E5LWHA.js → chunk-ONPMD5AY.js} +1 -1
- package/chunk-OYXHFCSL.js +1 -0
- package/{chunk-22GS6UCG.js → chunk-PTG2C2YJ.js} +1 -1
- package/chunk-Q4JQCY64.js +1 -0
- package/chunk-QDAWQNBQ.js +7 -0
- package/{chunk-AF7PONVK.js → chunk-QI7DMSHZ.js} +1 -1
- package/{chunk-MLT3FZMW.js → chunk-RBT353UU.js} +1 -1
- package/{chunk-4RXB65JX.js → chunk-SRMNNICE.js} +1 -1
- package/chunk-TL325ZMY.js +1 -0
- package/{chunk-KJ4O6F3R.js → chunk-TQE7OBBP.js} +1 -1
- package/{chunk-EHIW67S3.js → chunk-TRNWEHWA.js} +1 -1
- package/chunk-UNJ66CNQ.js +1 -0
- package/{chunk-GK7T43YY.js → chunk-US4WRUST.js} +1 -1
- package/{chunk-Y7LSDVD6.js → chunk-VFTEC7DW.js} +1 -1
- package/{chunk-X6RAHZJI.js → chunk-VKHZOVLO.js} +1 -1
- package/chunk-WF5PRSGZ.js +6 -0
- package/chunk-WX6WWOS5.js +1 -0
- package/{chunk-Z5NZYMJN.js → chunk-XFRVNXF6.js} +1 -1
- package/chunk-XKSLV5L6.js +1 -0
- package/chunk-XLU5TCBE.js +1 -0
- package/{chunk-GXX5QXLE.js → chunk-Z5FVTSXP.js} +1 -1
- package/{chunk-6TZWRTRA.js → chunk-ZOMDTRAX.js} +1 -1
- package/chunk-ZRPJ3QZT.js +1 -0
- package/chunk-ZYUKP5CS.js +1 -0
- package/index.html +2 -2
- package/main-WZFPMKCC.js +1 -0
- package/package.json +1 -1
- package/{styles-CDWBWJYO.css → styles-S3CXMNLR.css} +1 -1
- package/chunk-2R6YFVI3.js +0 -1
- package/chunk-3WKDD2IN.js +0 -1
- package/chunk-4KMNVH5V.js +0 -1
- package/chunk-56COR7JJ.js +0 -1
- package/chunk-65ULQ2PN.js +0 -1
- package/chunk-6JYRURGN.js +0 -1
- package/chunk-6LUM2XU4.js +0 -2
- package/chunk-73LQ5WSC.js +0 -1
- package/chunk-BZKHWYFG.js +0 -1
- package/chunk-D6FCW3QQ.js +0 -1
- package/chunk-ETEYALHD.js +0 -1
- package/chunk-FJPFD4BF.js +0 -3
- package/chunk-FLOZ6FQA.js +0 -1
- package/chunk-JZCJ723Q.js +0 -1
- package/chunk-MLTG5TKC.js +0 -1
- package/chunk-NQVULKI2.js +0 -1
- package/chunk-PHQYY3GW.js +0 -1
- package/chunk-Q3JJWGXW.js +0 -7
- package/chunk-RIRYVDWF.js +0 -1
- package/chunk-RNE5BRDO.js +0 -1
- package/chunk-SBFFXENC.js +0 -1
- package/chunk-TB27CACB.js +0 -1
- package/chunk-TS4YY2WO.js +0 -1
- package/chunk-WDE7EXR6.js +0 -1
- package/chunk-YOLNXRDT.js +0 -1
- package/chunk-Z43CKK5H.js +0 -6
- package/main-UH5FBFO3.js +0 -1
package/assets/spk.woff2
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b}from"./chunk-TQE7OBBP.js";import{c as I}from"./chunk-ZRPJ3QZT.js";import{a as y,c as k}from"./chunk-6SIZVSDW.js";import{C as o,E as m,O as c,S as a,Y as r,d as p,i as h,l as u,p as g,ua as i,y as d}from"./chunk-QDAWQNBQ.js";var l=class t{#i=i(null);#n=window.self!==window.top;#e=i(this.#n);relayIsEnabled=this.#e.asReadonly();config=this.#i.asReadonly();configLoaded=this.#n?new h:null;isLoading=i(this.#n);parentIframeListner=null;parentOrigin="*";fetchConfig(){this.#t(),this.#n&&(this.#e.set(!0),this.parentIframeListner=new AbortController,this.#s("connected"),window.addEventListener("message",e=>{if(e.data.startsWith("access:")){let s=e.data.replace("access:",""),n=JSON.parse(s);if(!n?.accessToken||!n?.clientId){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.clientId!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}if(typeof n.accessToken!="string"){this.#s("error:invalid-config"),this.#e.set(!1);return}console.info("postMessage config set"),this.#i.set(n),this.configLoaded?.next(!0),this.isLoading.set(!1),this.#s("handshake-complete")}},{signal:this.parentIframeListner.signal}))}#s(e){window.parent.postMessage(e,"*")}#t(){this.parentIframeListner&&(this.parentIframeListner.abort(),this.parentIframeListner=null)}setConfig(e){this.#i.set(e)}clearConfig(){this.#i.set(null)}static \u0275fac=function(s){return new(s||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};var f="PROXY_AUTHED_FAKE_TOKEN",w=class t{#i=r(I);#n=r(k);#e=r(b);#s=r(l);#t=i(null);#r=i(!1);token=this.#t.asReadonly();isLoggingOut=this.#r.asReadonly();login(e){return this.#e.postApiV1AuthLogin({requestBody:{Password:e,RememberMe:!0}}).pipe(o(1),c(s=>this.#t.set(s.AccessToken??null)))}refreshToken(){return this.#s.relayIsEnabled()?(this.#t.set(f),new p(e=>{e.next({AccessToken:f}),e.complete()})):this.#e.postApiV1AuthRefresh().pipe(o(1),c(e=>this.#t.set(e.AccessToken??null)))}checkProxyAuthed(){let e=new y({"custom-proxy-check":"true"});return this.#n.get("/api/v1/systeminfo",{headers:e}).pipe(g(()=>(this.#t.set(f),!0)),d(()=>u(!1)))}logout(){this.#r.set(!0),this.#e.postApiV1AuthRefreshLogout().pipe(o(1),m(()=>{this.#r.set(!1),this.#t.set(null),this.#i.navigate(["/login"])})).subscribe()}static \u0275fac=function(s){return new(s||t)};static \u0275prov=a({token:t,factory:t.\u0275fac,providedIn:"root"})};export{l as a,f as b,w as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ia as be}from"./chunk-JOBMLOGZ.js";import{$a as P,Ab as G,Bb as K,Cb as r,Db as a,Eb as H,Gc as Oe,Hb as U,Ib as T,Mc as b,Oc as D,Qc as de,Ra as h,S as se,Ta as ae,Ub as y,Va as _e,Vb as u,Wb as k,Xb as d,Y as R,Ya as M,Za as Ce,_a as ce,da as f,dc as J,ea as m,eb as S,ec as I,fc as j,gb as Se,gc as ke,hc as v,ic as we,jc as N,kb as w,mc as Z,nc as ee,oa as re,oc as te,pa as L,pb as ye,pc as xe,qa as p,qc as $,ra as W,rc as F,ta as le,tb as q,tc as ie,ua as g,ub as A,uc as ne,vb as V,wb as pe,xb as Q,yb as O,zb as X}from"./chunk-QDAWQNBQ.js";import{a as B,b as z,c as ve}from"./chunk-C6Q5SG76.js";var E=["*"],Re=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],Pe=["[icon]","[title]","*","[content]"];function Ae(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),a())}function He(n,c){n&1&&(r(0,"spk-icon",3),v(1,"info"),a())}function je(n,c){n&1&&(r(0,"spk-icon",3),v(1,"check-circle"),a())}function Be(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning-octagon"),a())}function Le(n,c){n&1&&(r(0,"spk-icon",3),v(1,"warning"),a())}function We(n,c){n&1&&(r(0,"spk-icon",3),v(1,"question"),a())}function qe(n,c){if(n&1){let e=T();r(0,"spk-icon",7),y("click",function(){f(e);let i=u();return m(i.removeAlert())}),v(1,"plus"),a()}}var Ne=["dialogRef"];function Qe(n,c){if(n&1){let e=T();r(0,"div",4),y("click",function(){f(e);let i=u();return m(i.isOpen.set(!1))}),a()}}var $e=["spk-button",""];var Te=["triggerRef"],ze=["popoverRef"],Ue=[[["","trigger",""]],"*"],Ye=["[trigger]","*"];var Xe=()=>({closeOnButton:!1,closeOnEsc:!0});var Ee=["inputWrap"];var Ge=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ke=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],Je=[[["label"]],[["input"]]],Ze=["label","input"],et=["option"],tt=["*",[["","menu",""]]],it=["*","[menu]"];var nt=["optionsWrap"],Me=()=>({closeOnButton:!1,closeOnEsc:!1}),ue=n=>({$implicit:n});function ot(n,c){n&1&&U(0)}function st(n,c){if(n&1&&w(0,ot,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=F(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,ue,e))}}function rt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function lt(n,c){if(n&1){let e=T();r(0,"spk-chip",12),w(1,st,1,4,"ng-container")(2,rt,1,1),r(3,"spk-icon",13),y("click",function(i){f(e);let o=u().$index,s=u(3);return m(s.removeSelectedOptionByIndex(i,o))}),v(4,"x-circle"),a()()}if(n&2){let e=u(4),t=F(7);Q(e.selectClasses()),h(),O(t?1:2)}}function at(n,c){n&1&&U(0)}function ct(n,c){if(n&1&&w(0,at,1,0,"ng-container",14),n&2){let e=u(2).$implicit;u(3);let t=F(7);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,ue,e))}}function pt(n,c){if(n&1&&v(0),n&2){let e=u(2).$implicit;N(" ",e," ")}}function dt(n,c){if(n&1&&w(0,ct,1,4,"ng-container")(1,pt,1,1),n&2){u(4);let e=F(7);O(e?0:1)}}function ut(n,c){if(n&1&&w(0,lt,5,3,"spk-chip",11)(1,dt,2,1),n&2){let e=u(3);O(!e.asText()&&e.selectMultiple()?0:1)}}function ht(n,c){if(n&1&&G(0,ut,2,1,null,null,X),n&2){u(2);let e=F(4);K(e)}}function ft(n,c){if(n&1&&v(0),n&2){let e=u(2);N(" ",e.selectedLabels()," ")}}function mt(n,c){if(n&1&&w(0,ht,2,0)(1,ft,1,1),n&2){u();let e=F(1),t=F(3);O(e||t?0:1)}}function gt(n,c){n&1&&U(0)}function vt(n,c){if(n&1&&w(0,gt,1,0,"ng-container",15),n&2){u(2);let e=F(0);q("ngTemplateOutlet",e)}}function _t(n,c){if(n&1&&v(0),n&2){let e,t=u(2);N(" ",(e=t.placeholder())!==null&&e!==void 0?e:""," ")}}function Ct(n,c){if(n&1&&w(0,vt,1,1,"ng-container")(1,_t,1,1),n&2){u();let e=F(0);O(e?0:1)}}function St(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-down"),a())}function yt(n,c){n&1&&H(0,"spk-spinner",8)}function kt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"list-magnifying-glass"),a())}function wt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"magnifying-glass"),a())}function xt(n,c){if(n&1){let e=T();r(0,"spk-icon",16),y("click",function(i){f(e);let o=u();return m(o.clear(i))}),v(1,"backspace"),a()}}function Ot(n,c){n&1&&(r(0,"spk-icon",7),v(1,"check"),a())}function bt(n,c){n&1&&(r(0,"spk-icon",7),v(1,"caret-up"),a())}function Dt(n,c){if(n&1&&H(0,"spk-checkbox"),n&2){let e=u().$index,t=u();Q(t.selectClasses()),V("active",t.isSelected(e))}}function Tt(n,c){n&1&&U(0)}function Et(n,c){if(n&1&&w(0,Tt,1,0,"ng-container",14),n&2){let e=u().$implicit;u();let t=F(8);q("ngTemplateOutlet",t)("ngTemplateOutletContext",ne(2,ue,e))}}function Mt(n,c){if(n&1&&v(0),n&2){let e=u().$implicit;N(" ",e," ")}}function Vt(n,c){if(n&1){let e=T();r(0,"li",17),y("click",function(){let i=f(e).$index,o=u();return m(o.selectOption(i))}),w(1,Dt,1,4,"spk-checkbox",18)(2,Et,1,4,"ng-container")(3,Mt,1,1),a()}if(n&2){let e=c.$index,t=u(),i=F(8);V("selected",t.isSelected(e))("focused",e===t.focusedOptionIndex()),h(),O(t.selectMultiple()?1:-1),h(),O(i?2:3)}}var It=["optionsRef"],Ft=["formFieldWrapper"],Rt=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Pt=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"];function At(n,c){if(n&1){let e=T();r(0,"spk-chip",12),y("click",function(i){let o=f(e).$implicit,s=u(3);return m(s.toggleOption(o,i))}),v(1),r(2,"spk-icon"),v(3,"x-circle"),a()()}if(n&2){let e,t=c.$implicit,i=u(3);Q(i.chipClass()),h(),N(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Ht(n,c){if(n&1&&G(0,At,4,3,"spk-chip",11,X),n&2){let e=u(2);K(e.inputValue().split(","))}}function jt(n,c){if(n&1&&(r(0,"div",6),w(1,Ht,2,0),a()),n&2){let e=u();h(),O(e.inputValue().length>0?1:-1)}}function Bt(n,c){if(n&1&&(r(0,"div",6),v(1),a()),n&2){let e=u();h(),we(e._displayValue())}}function Lt(n,c){if(n&1){let e=T();r(0,"div",13),y("click",function(i){f(e);let o=u();return m(o.deselect(i))}),d(1,3),r(2,"spk-icon",14),v(3,"x-circle"),a()()}}function Wt(n,c){n&1&&(r(0,"div",8),d(1,4),r(2,"spk-icon",14),v(3,"magnifying-glass"),a()())}function qt(n,c){if(n&1&&(r(0,"div",15),d(1,5),r(2,"spk-icon",14),v(3,"caret-down"),a()()),n&2){let e=u();V("open",e.isOpen())}}var Nt=["dragImageElement"],Qt=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],$t=["[sidenav]","[sidenav-closed-topbar]","*"];function zt(n,c){n&1&&H(0,"div",1,0)}function Ut(n,c){if(n&1){let e=T();r(0,"div",7),y("drop",function(i){f(e);let o=u();return m(o.drop(i))})("dragover",function(i){f(e);let o=u();return m(o.dragOver(i))})("dragenter",function(){f(e);let i=u();return m(i.dragEnter())})("dragleave",function(){f(e);let i=u();return m(i.dragLeave())}),a()}}function Yt(n,c){if(n&1){let e=T();r(0,"div",8),y("dragstart",function(i){f(e);let o=u();return m(o.dragStart(i))})("dragend",function(i){f(e);let o=u();return m(o.dragEnd(i))})("drag",function(i){f(e);let o=u();return m(o.drag(i))})("touchstart",function(i){f(e);let o=u();return m(o.touchStart(i))})("touchmove",function(i){f(e);let o=u();return m(o.touchMove(i))})("touchend",function(i){f(e);let o=u();return m(o.touchEnd(i))})("touchcancel",function(i){f(e);let o=u();return m(o.touchCancel(i))}),a()}}var Xt=[[["","table-header",""]],"*",[["","table-no-rows",""]]],Gt=["[table-header]","*","[table-no-rows]"];function Kt(n,c){n&1&&H(0,"spk-progress-bar",0)}function Jt(n,c){n&1&&(r(0,"div",1),d(1,2),a())}var Zt=["tooltipRef"];var oe=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-icon"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),Di=(()=>{class n{constructor(){this._el=R(W),this.alertService=p(null),this.type=p("error"),this.id=p(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&Q(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},ngContentSelectors:Pe,decls:17,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,i){if(t&1&&(k(Re),r(0,"div",1)(1,"div",2,0),d(3),a(),r(4,"div",2),w(5,Ae,2,0,"spk-icon",3)(6,He,2,0,"spk-icon",3)(7,je,2,0,"spk-icon",3)(8,Be,2,0,"spk-icon",3)(9,Le,2,0,"spk-icon",3)(10,We,2,0,"spk-icon",3),a(),r(11,"div",4),d(12,1),d(13,2),a(),w(14,qe,2,0,"spk-icon",5),r(15,"div",6),d(16,3),a()()),t&2){let o,s=ke(2);h(),A("display",s.children.length?"block":"none"),h(4),O((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),h(9),O(i.id()?14:-1)}},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})();function he(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Ti=(()=>{class n{constructor(){this.alertHistory=g([]),this.alertHistoryIsOpen=g(!1),this.alertHistoryIsHidden=g(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=he();this.alertHistory.update(i=>[z(B({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>z(B({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>z(B({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>z(B({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),ei={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},ti=(()=>{class n{constructor(){this.dialogRef=M("dialogRef"),this.isOpen=P(!1),this.options=p(),this.closed=L(),this.defaultOptionMerge=b(()=>B(B({},ei),this.options())),this.abortController=null,this.isOpenEffect=D(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&I(i.dialogRef,Ne,5),t&2&&j()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:E,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(k(),r(0,"dialog",1,0)(2,"div",2),d(3),a(),w(4,Qe,1,0,"div",3),a()),t&2){let o,s,l,_;A("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(l=i.defaultOptionMerge().maxHeight)!==null&&l!==void 0?l:"")("height",(_=i.defaultOptionMerge().height)!==null&&_!==void 0?_:""),h(4),O(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Ei=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#t=R(ye),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#t;open(e,t){let i=this.#t.injector,o=this.#s(),ge=t||{},{data:s,closed:l}=ge,_=ve(ge,["data","closed"]);this.compRef&&this.#i(),this.insertedCompRef=de(e,{environmentInjector:i}),this.compRef=de(ti,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let x=this.insertedCompRef.instance?.data,C=this.insertedCompRef.instance?.closed;if(s){if(le(x))this.insertedCompRef.setInput("data",s);else if(!le(x))throw new Error("data is not an input signal on the passed component")}C instanceof re&&(this.closedFieldSub=C.subscribe((...Fe)=>{l?.(...Fe),this.#i()})),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",_),this.compRef.instance.closed.subscribe(()=>me());let Y=this;function me(){C&&C instanceof re?C.emit(!1):l?.(void 0),Y.#i()}return this.insertedCompRef.instance}#s(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#i(){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.#i()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=se({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Mi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-button-group"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),ii=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["","spk-button",""]],attrs:$e,ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),Vi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-card"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),ni=(()=>{class n{#e=R(W);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(k(),r(0,"div",0)(1,"spk-icon",1),v(2,"check"),a(),r(3,"spk-icon",2),v(4,"minus"),a()(),d(5))},dependencies:[oe],encapsulation:2,changeDetection:0})}}return n})(),Ve=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-chip"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})();var oi=["scroll","auto"],si={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},fe=(()=>{class n{constructor(){this.#e=R(Oe),this.#t=4,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this.markForCheck=p(null),this._above=g(this.above()),this._right=g(this.right()),this.disableOpenByClick=p(!1),this.isOpen=P(!1),this.options=p(),this.closed=L(),this.defaultOptionMerge=b(()=>B(B({},si),this.options())),this.triggerRef=M.required("triggerRef"),this.popoverRef=M.required("popoverRef"),this.id=g("--"+he()),this.menuStyle=g(null),this.openAbort=null,this.openEffect=D(()=>{let e=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let i={signal:this.openAbort?.signal};e?.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.#s(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.#i(),i),window.addEventListener("resize",()=>this.#i(),i),this.#i()})}else e.hidePopover(),this.openAbort?.abort(),this.closed.emit()}),this.markForCheckEffect=D(()=>{this.markForCheck()&&this.#e.markForCheck()})}#e;#t;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}#s(e){let t=e.parentElement;for(;t;){if(oi.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}#i(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,l=o+this.#t,_=s+t.width>window.innerWidth,x=l+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(x),this._right.set(_);else{if(s=i,l=o+this.#t,x){let Y=e.top-t.height-this.#t;Y<0||(l=Y)}_&&(s=e.right-t.width,s<0&&(s=0));let C={left:s+"px",top:l+"px"};this.menuStyle.set(C)}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(I(i.triggerRef,Te,5),I(i.popoverRef,ze,5)),t&2&&j(2)},hostVars:4,hostBindings:function(t,i){t&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:Ye,decls:10,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],["spk-button","",1,"outlined"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(t,i){if(t&1){let o=T();k(Ue),r(0,"div",2,0),y("click",function(l){return f(o),m(i.toggleIsOpen(l))}),r(2,"div",3),d(3),a(),r(4,"button",4),v(5,"Open popover"),a()(),r(6,"div",5,1)(8,"div",6),y("click",function(l){return f(o),m(i.isOpen()&&i.eventClose(l))}),a(),d(9,1),a()}t&2&&(A("anchor-name",i.id()),h(6),pe(i.menuStyle()),A("position-anchor",i.id()))},dependencies:[ii],encapsulation:2,changeDetection:0})}}return n})();var Ii=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-divider"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),Ie=(()=>{class n{#e=R(W);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus(),this.#e.nativeElement.querySelector("textarea")&&this.#e.nativeElement.querySelector("textarea").focus()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let s=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},l=function(){window.setTimeout(s,0)};var i=s,o=l;t.addEventListener("change",s),t.addEventListener("cut",l),t.addEventListener("paste",l),t.addEventListener("drop",l),t.addEventListener("keydown",l),t.focus(),t.select(),s()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:Ke,decls:16,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error"],[1,"hint"]],template:function(t,i){t&1&&(k(Ge),d(0),r(1,"div",0)(2,"div",1),d(3,1),d(4,2),a(),H(5,"div",2),d(6,3),d(7,4),d(8,5),H(9,"div",3),d(10,6),a(),r(11,"div",4)(12,"div",5),d(13,7),a(),r(14,"div",6),d(15,8),a()())},encapsulation:2,changeDetection:0})}}return n})();var Fi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-list"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),Ri=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=P(!1),this.closed=L(),this.activeOptionIndex=g(-1),this.options=ce("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=D(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,et,4),t&2&&j()},hostBindings:function(t,i){t&1&&y("keydown",function(s){return i.onKeyDown(s)})},inputs:{above:[1,"above"],right:[1,"right"],keepClickedOptionActive:[1,"keepClickedOptionActive"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:it,decls:6,vars:6,consts:[["formFieldWrapper",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","above","right","options"],["trigger","",3,"click"],[1,"options",3,"click"]],template:function(t,i){if(t&1){let o=T();k(tt),r(0,"spk-popover",1,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),y("closed",function(){return f(o),m(i.close("fromPopover"))}),r(2,"div",2),y("click",function(){return f(o),m(i.isOpen.set(!0))}),d(3),a(),r(4,"div",3),y("click",function(){return f(o),m(i.close("active"))}),d(5,1),a()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",ie(5,Xe)))},dependencies:[fe],encapsulation:2,changeDetection:0})}}return n})(),ri=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&H(0,"div",0),t&2&&A("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),Pi=(()=>{class n{#e=R(W);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&y("click",function(){return i.onClick()})},ngContentSelectors:E,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(k(),H(0,"div",0),d(1))},encapsulation:2,changeDetection:0})}}return n})();var li=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-spinner"]],decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),Ai=(()=>{class n{constructor(){this.#e=R(W),this.debugRef=p(null),this.options=p([]),this.label=p(),this.value=p(),this.placeholder=p(),this.inlineSearch=p(!1),this.lazySearch=p(!1),this.readonly=p(!1),this.isLoading=p(!1),this.isClearable=p(!1),this.asText=p(!1),this.selectMultiple=p(!1),this.optionTemplate=p(null),this.selectedOptionTemplate=p(null),this.placeholderTemplate=p(null),this.isValid=P(!1),this.selectedOptions=P([]),this.inlineTemplate=Ce(ae),this.inputWrapRef=M.required("inputWrap"),this.optionsWrapRef=M.required("optionsWrap"),this.#t=g(null),this.isOpen=g(!1),this.selectedOptionIndices=g([]),this.focusedOptionIndex=g(-1),this.inputState=b(()=>this.selectedValues().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.prevInputValue=g(null),this.inputValue=g(""),this.inputValidityEffect=D(()=>{let e=this.inputValue(),t=this.options(),i=this.value();if(this.selectMultiple()){let l=e.split(",").map(_=>_.trim()).filter(_=>_!=="").every(_=>t.some(x=>{let C=i?this.#n(x,i):x;return _===C?.toString()}));this.isValid.set(l)}else{let s=t.some(l=>{let _=i?this.#n(l,i):l;return e===_?.toString()});this.isValid.set(s)}}),this.selectClasses=b(()=>this.#e.nativeElement.classList.toString()),this.#s=D(()=>{let e=this.#t();e&&(e.disabled=this.readonly())}),this.#i=b(()=>{let e=this.options(),t=this.label(),i=this.inlineSearch(),o=this.inputValue().toLowerCase();return e.length<=0?[]:i?t?e.filter(s=>(this.#n(s,t)??"").toString().toLowerCase().includes(o)):e.filter(s=>(s??"").toString().toLowerCase().includes(o)):e}),this.optionsSignal=b(()=>{let e=this.#i(),t=this.label(),i=e;return t&&(i=e.map(o=>this.#n(o,t))),i}),this.selectedLabels=b(()=>{let e=this.selectedOptions(),t=this.label();return t?e.map(i=>this.#n(i,t)).join(", "):e.join(", ")}),this.selectedValues=b(()=>{let e=this.selectedOptions(),t=this.value();return!t||e.length===0?e:e.map(i=>this.#n(i,t))}),this.selectedOptionIndicesEffect=D(()=>{let e=this.selectedValues(),t=this.#i(),i=this.value();if(this.selectMultiple())this.selectedOptionIndices.set(e.map(o=>t.findIndex(s=>(i?this.#n(s,i):s)===o)));else{let o=e[0],s=t.findIndex(l=>(i?this.#n(l,i):l)===o);this.selectedOptionIndices.set(s>-1?[s]:[])}}),this.selectedValueEffect=D(()=>{let e=this.selectedValues();this.#t()&&(this.selectMultiple()?this.#t().value=e.join(","):this.#t().value=e[0]?.toString()??"",this.#t().dispatchEvent(new Event("input")))}),this.#o=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e){let i=this.#e.nativeElement.querySelector("input");if(!i)return;i.autocomplete="off",i.addEventListener("input",()=>{this.inputValue.set(i.value)}),i.addEventListener("focus",()=>{this.readonly()||this.open()}),i.addEventListener("keydown",o=>{if((o.key==="Escape"||o.key==="Tab")&&this.close(),o.key==="Enter"&&this.selectOption(this.focusedOptionIndex()),o.key==="ArrowDown"){o.preventDefault();let s=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(s>this.optionsSignal().length-1?0:s),this.#r()}if(o.key==="ArrowUp"){o.preventDefault();let s=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(s<0?this.optionsSignal().length-1:s),this.#r()}if(!(this.lazySearch()||this.inlineSearch())){o.preventDefault();return}}),typeof i.value=="string"&&(this.selectMultiple()?this.selectOptionsByValue(i.value):this.selectOptionByValue(i.value)),this.#t.set(i),this.#o.disconnect();return}})}#e;#t;#s;#i;#o;ngOnInit(){typeof MutationObserver<"u"&&this.#o.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}#r(){setTimeout(()=>{this.optionsWrapRef().nativeElement.querySelector(".focused")?.scrollIntoView({block:"nearest",behavior:"smooth"})})}open(){if(this.isOpen.set(!0),!this.selectMultiple()){let e=this.selectedOptionIndices()[0];this.focusedOptionIndex.set(e!==void 0?e:0),this.#r()}(this.lazySearch()||this.inlineSearch())&&(this.prevInputValue.set(this.inputValue()),this.focusedOptionIndex.set(0),this.inputValue.set(""),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))))}selectOption(e){let t=this.#i()[e];if(!(this.isLoading()&&this.lazySearch()))if(this.prevInputValue.set(null),this.focusedOptionIndex.set(e),this.selectMultiple()){let i=this.selectedOptionIndices(),o=i.indexOf(e);o>-1?(i.splice(o,1),this.selectedOptionIndices.set([...i]),this.selectedOptions.set(i.map(s=>this.#i()[s]))):(this.selectedOptionIndices.set([...i,e]),this.selectedOptions.set([...this.selectedOptions(),t]))}else this.selectedOptions.set([t]),this.isOpen.set(!1)}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.set(this.selectedOptions().filter((i,o)=>o!==t)),this.selectedOptionIndices.set(this.selectedOptionIndices().filter((i,o)=>o!==t))}isSelected(e){return this.selectedOptionIndices().includes(e)}selectOptionByValue(e){let t=this.value(),i=this.options().findIndex(o=>t?this.#n(o,t)?.toString()===e:o?.toString()===e);i>-1&&this.selectOption(i)}selectOptionsByValue(e){let t=this.value();e.split(",").map(o=>o.trim()).filter(o=>o!=="").forEach(o=>{let s=this.options().findIndex(l=>t?this.#n(l,t)?.toString()===o:l?.toString()===o);s>-1&&this.selectOption(s)})}close(){this.isOpen.set(!1);let e=this.prevInputValue();(this.lazySearch()||this.inlineSearch())&&e!==null&&e!==void 0&&(this.selectMultiple()?this.selectOptionsByValue(e):this.selectOptionByValue(e))}ngOnDestroy(){typeof MutationObserver<"u"&&this.#o.disconnect()}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null)}#n(e,t){return t.split(".").reduce((i,o)=>i?.[o],e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select-new"]],contentQueries:function(t,i,o){t&1&&J(o,i.inlineTemplate,ae,5),t&2&&j()},viewQuery:function(t,i){t&1&&(I(i.inputWrapRef,Ee,5),I(i.optionsWrapRef,nt,5)),t&2&&j(2)},hostVars:2,hostBindings:function(t,i){t&2&&V("multiple",i.selectMultiple())},inputs:{debugRef:[1,"debugRef"],options:[1,"options"],label:[1,"label"],value:[1,"value"],placeholder:[1,"placeholder"],inlineSearch:[1,"inlineSearch"],lazySearch:[1,"lazySearch"],readonly:[1,"readonly"],isLoading:[1,"isLoading"],isClearable:[1,"isClearable"],asText:[1,"asText"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],isValid:[1,"isValid"],selectedOptions:[1,"selectedOptions"]},outputs:{isValid:"isValidChange",selectedOptions:"selectedOptionsChange"},ngContentSelectors:Ze,decls:30,vars:20,consts:[["formFieldWrapper",""],["inputWrap",""],["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(t,i){if(t&1){let o=T();k(Je),xe(0)(1)(2)(3)(4)(5)(6)(7)(8),r(9,"spk-popover",3,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),y("closed",function(){return f(o),m(i.close())}),r(11,"spk-form-field",4),y("click",function(){return f(o),m(i.open())}),d(12,0,["ngProjectAs","label",5,["label"]]),r(13,"div",5,1)(15,"div",6),w(16,mt,2,1)(17,Ct,2,1),a(),d(18,1),a(),w(19,St,2,0,"spk-icon",7)(20,yt,1,0,"spk-spinner",8)(21,kt,2,0,"spk-icon",7)(22,wt,2,0,"spk-icon",7)(23,xt,2,0,"spk-icon",7)(24,Ot,2,0,"spk-icon",7)(25,bt,2,0,"spk-icon",7),a(),r(26,"div",9,2),G(28,Vt,4,6,"li",10,X),a()()}if(t&2){$(i.placeholderTemplate()),h();let o=$(i.optionTemplate()),s=i.selectedOptionTemplate();h(2);let l=$(i.inlineTemplate());h();let _=$(i.selectedOptions()),x=(i.inlineSearch()||i.lazySearch())&&i.isOpen()&&!i.isValid(),C=i.inputState();h(3),$(s||o||l),h(),$(o||l),h(),Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(19,Me)),h(2),Q(i.readonly()?"readonly":""),V("autosize",i.selectMultiple()),h(2),V("show-search-text",x),h(2),V("is-selected",C==="selected"),h(),O(_.length>0?16:17),h(3),O(C==="closed"?19:C==="loading"?20:C==="open-searching"?21:C==="searching"?22:C==="selected"&&i.isClearable()?23:C==="selected"&&!i.isClearable()?24:25),h(9),K(i.optionsSignal())}},dependencies:[be,fe,Ie,oe,ni,li,Ve],encapsulation:2,changeDetection:0})}}return n})(),De=(()=>{class n{constructor(){this.#e=R(W),this.value=p(null),this.#t=D(()=>{this.#e.nativeElement.value=this.value()})}#e;#t;hasAttribute(e){return this.#e.nativeElement.hasAttribute(e)}removeAttribute(e){this.#e.nativeElement.removeAttribute(e)}setAttribute(e,t){this.#e.nativeElement.setAttribute(e,t)}getAttribute(e){return this.#e.nativeElement.getAttribute(e)}addClass(e){this.#e.nativeElement.classList.add(e)}removeClass(e){this.#e.nativeElement.classList.remove(e)}scrollIntoView(e){this.#e.nativeElement.scrollIntoView(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})(),ai=["primary","accent","tertiary","warn","success"],Hi=(()=>{class n{constructor(){this.#e=R(_e),this.#t=R(W),this.optionsRef=M("optionsRef"),this.options=ce(De),this.formFieldWrapperRef=M.required("formFieldWrapper"),this.inputWrapRef=M.required("inputWrap"),this.inputValue=P(""),this.readonly=p(!1),this.isFreeText=p(!1),this.selectMultiple=p(!1),this.hideClearButton=p(!1),this.displayValue=p(""),this.displayFn=p(e=>`${e}`),this.above=p(!1),this.right=p(!1),this.change=L(),this.#s=g(!1),this.#i=g(null),this.#o=g(null),this.#r=g(!1),this.#n=g(-1),this.isOpen=g(!1),this._isOpen=g(!1),this.isSearchInput=b(()=>this.#i()?.type==="search"),this.chipClass=b(()=>Array.from(this.#t.nativeElement.classList).filter(e=>ai.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#o()?this.options().find(e=>e.value()===this.#o()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#p=D(()=>{this.#s();let e=this.#t.nativeElement.querySelector("input");e&&(e.disabled=this.readonly(),this.#v(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#a()}),this.#i.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))}),this.#d=D(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#i();e&&(e.addEventListener("focus",()=>{this.isOpen.set(!0)}),e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#n()===null||this.#n()<0||this.#n()===this.options().length-1?this.#n.set(this.#c()):this.#n.set(this.#n()+1):t.key==="ArrowUp"?this.#n()===null||this.#n()<0||this.#n()===0?this.#n.set(this.options().length-1):this.#n.set(this.#n()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#n()>-1&&this.selected(this.getOptionElement(this.#n()))):t.key==="Tab"?this.close(!0):(this.#n.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal}))}),this.#u=D(()=>{this.isOpen()&&this.#g()}),this.#h=D(()=>{let e=this.inputValue();this.#i()&&(this.#i().value=e??"",this.#i().dispatchEvent(new Event("input")))}),this.#l=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#s.set(!this.#s())})}#e;#t;#s;#i;#o;#r;#n;#p;#d;#u;#h;ngOnInit(){typeof MutationObserver<"u"&&this.#l.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.options()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#i()&&(this.#i().value="",this.#i().dispatchEvent(new Event("input"))),this.#n.set(this.#c()),this.#r.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#i()?.blur())}selected(e){if(!e)return;let t=e.value(),i=this.options().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#n.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.options().length;o++){let s=this.options()[o];s.value()===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#r.set(!1),this.#o.set(null),this.selectMultiple()?this.#i()?.focus():(this.isOpen.set(!1),this.#i()?.blur()),this.change.emit(this.inputValue())}calculateSelectedOptions(){setTimeout(()=>{let e=this.options(),i=this.#i()?.value;for(let o=0;o<e.length;o++){let s=e[o];s.value()===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){let t=this.#o();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#r.set(!1),e||this.#i()?.blur(),this.#m()}open(e){e.preventDefault(),!this.isOpen()&&(this.isSearchInput()&&!this.#r()&&!this.isFreeText()?(this.#o.set(this.inputValue()),this.inputValue.set(""),this.#i().focus(),this.#i().value="",this.#i().dispatchEvent(new Event("input")),this.#n.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#i().focus(),this.isOpen.set(!0),this.#r.set(!0),this.#f(),this.#a())}#f(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsRef()?.nativeElement?.addEventListener("click",e=>{if(!e.target)return;let t=e.target.closest("spk-option"),i=this.options().find(o=>o.value()===t.value);i&&this.selected(i)},{signal:this.clickController?.signal})}#m(){this.clickController&&this.clickController.abort()}#g(){for(let e=0;e<this.options().length;e++){let t=this.options()[e];t.removeClass("focused"),this.#n()===e&&(t.addClass("focused"),t.scrollIntoView({block:"center"}))}}#a(){let e=this.#i();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.options();for(let o=0;o<i.length;o++){let s=i[o].value();s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#c(){let e=this.options();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#l;#v(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),typeof MutationObserver<"u"&&this.#l.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-select"]],contentQueries:function(t,i,o){t&1&&J(o,i.options,De,4),t&2&&j()},viewQuery:function(t,i){t&1&&(I(i.optionsRef,It,5),I(i.formFieldWrapperRef,Ft,5),I(i.inputWrapRef,Ee,5)),t&2&&j(3)},inputs:{inputValue:[1,"inputValue"],readonly:[1,"readonly"],isFreeText:[1,"isFreeText"],selectMultiple:[1,"selectMultiple"],hideClearButton:[1,"hideClearButton"],displayValue:[1,"displayValue"],displayFn:[1,"displayFn"],above:[1,"above"],right:[1,"right"]},outputs:{inputValue:"inputValueChange",change:"change"},ngContentSelectors:Pt,decls:15,vars:8,consts:[["formFieldWrapper",""],["inputWrap",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"display-value"],["suffix","",1,"deselect-indicator"],["suffix","",1,"search-indicator"],["suffix","",1,"select-open-indicator",3,"open"],[1,"sparkle-options"],[1,"small","simple",3,"class"],[1,"small","simple",3,"click"],["suffix","",1,"deselect-indicator",3,"click"],[1,"default-indicator"],["suffix","",1,"select-open-indicator"]],template:function(t,i){if(t&1){let o=T();k(Rt),r(0,"spk-popover",3,0),te("isOpenChange",function(l){return f(o),ee(i.isOpen,l)||(i.isOpen=l),m(l)}),y("closed",function(){return f(o),m(i.close())}),r(2,"spk-form-field",4),y("click",function(l){return f(o),m(i.open(l))}),d(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),w(6,jt,2,1,"div",6)(7,Bt,2,1,"div",6),d(8,1),a(),w(9,Lt,4,0,"div",7)(10,Wt,4,0,"div",8)(11,qt,4,2,"div",9),a(),r(12,"div",10,2),d(14,2),a()()}t&2&&(Z("isOpen",i.isOpen),q("disableOpenByClick",!0)("options",ie(7,Me)),h(2),Q(i.readonly()?"readonly":""),h(4),O(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),h(3),O((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[Ie,oe,Ve,fe],encapsulation:2,changeDetection:0})}}return n})(),ji=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=P(!1),this.type=p(""),this.dragImageElement=M.required("dragImageElement"),this.dragIsEnding=g(!1),this.dragIsOnScreen=g(!0),this.isDragging=g(!1),this.dragPositionX=g(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=D(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#t(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#t(e)}#t(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#t(e)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0)}touchMove(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.touches[0].clientX)})}touchEnd(e){e.stopPropagation(),this.#e(e.changedTouches[0].clientX)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&I(i.dragImageElement,Nt,5),t&2&&j()},hostVars:10,hostBindings:function(t,i){t&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:$t,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragover","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(t,i){t&1&&(k(Qt),w(0,zt,2,0,"div",1)(1,Ut,1,0,"div",2),r(2,"div",3),d(3),a(),r(4,"div",4),w(5,Yt,1,0,"div",5),r(6,"div",6),d(7,1),a(),r(8,"main"),d(9,2),a()()),t&2&&(O(i.type()==="overlay"?0:-1),h(),O(i.type()==="overlay"&&i.isDragging()?1:-1),h(3),A("transform",i.draggingStyle()),h(),O(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Bi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-stepper"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})();var Li=(()=>{class n{constructor(){this.tableColumns=p([]),this.loading=p(!1),this.columnSizes=b(()=>this.tableColumns().reduce((e,t,i)=>i===this.tableColumns().length-1?`${e} max-content`:`${e} 1fr`,"")),this.data=p([]),this.dataChange=L(),this.#e=null,this.#t=g(!1),this.sortByColumn=P(null),this.e=D(()=>{let e=this.sortByColumn();if(e===null)return this.#t()||(this.#e=this.data(),this.#t.set(!0)),this.dataChange.emit(JSON.parse(JSON.stringify(this.#e)));let t=e.startsWith("-")?e.slice(1):e,i=e.startsWith("-"),o=this.data().sort((s,l)=>{let _=s[t],x=l[t],C=0;return typeof _=="number"&&typeof x=="number"&&(C=_-x),_ instanceof Date&&x instanceof Date&&(C=_.getTime()-x.getTime()),typeof _=="string"&&typeof x=="string"&&(C=_.localeCompare(x,void 0,{sensitivity:"base"})),i?-C:C});this.dataChange.emit(o)})}#e;#t;toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-table"]],hostVars:2,hostBindings:function(t,i){t&2&&A("grid-template-columns",i.columnSizes())},inputs:{tableColumns:[1,"tableColumns"],loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Gt,decls:6,vars:2,consts:[[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,i){t&1&&(k(Xt),r(0,"thead"),d(1),w(2,Kt,1,0,"spk-progress-bar",0),a(),r(3,"tbody"),d(4,1),a(),w(5,Jt,2,0,"div",1)),t&2&&(h(2),O(i.loading()?2:-1),h(3),O(i.loading()?-1:5))},dependencies:[ri],encapsulation:2,changeDetection:0})}}return n})(),Wi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tabs"]],ngContentSelectors:E,decls:1,vars:0,template:function(t,i){t&1&&(k(),d(0))},encapsulation:2,changeDetection:0})}}return n})();var qi=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-toggle"]],ngContentSelectors:E,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(k(),r(0,"div",0),H(1,"div",1),a(),d(2))},encapsulation:2,changeDetection:0})}}return n})(),Ni=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=g(this.above()),this._right=g(this.right()),this.message=p.required(),this.isOpen=P(!1),this.closed=L(),this.triggerRef=M.required("triggerRef"),this.tooltipRef=M.required("tooltipRef"),this.id=g("--"+he()),this.menuStyle=g(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=D(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#t(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})}),this.scrollableStyles=["scroll","auto"]}#e;#t(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,l=o+this.#e,_=s+t.width>window.innerWidth,x=l+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(x),this._right.set(_);else{if(this.above()){let C=e.top-t.height-this.#e;C>=0&&(l=C)}else x&&(l=e.top-t.height-this.#e);if(this.right()){let C=e.right-t.width;C>=0&&(s=C)}else _&&(l=x?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:l+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=S({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(I(i.triggerRef,Te,5),I(i.tooltipRef,Zt,5)),t&2&&j(2)},hostVars:6,hostBindings:function(t,i){t&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:E,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=T();k(),r(0,"div",2,0),y("mouseover",function(){return f(o),m(i.isOpen.set(!0))})("mouseout",function(){return f(o),m(i.isOpen.set(!1))}),d(2),a(),r(3,"div",3,1),v(5),a()}t&2&&(A("anchor-name",i.id()),h(3),pe(i.menuStyle()),A("position-anchor",i.id()),h(2),N(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})();var Qi=(()=>{class n{constructor(){this.filesOver=g(!1),this.filesDropped=L()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=Se({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&y("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&V("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();export{oe as a,Di as b,Ti as c,ti as d,Ei as e,Mi as f,ii as g,Vi as h,ni as i,Ve as j,Ii as k,Ie as l,Fi as m,Ri as n,ri as o,Pi as p,Ai as q,De as r,Hi as s,ji as t,Bi as u,Li as v,Wi as w,qi as x,Ni as y,Qi as z};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as U}from"./chunk-WF5PRSGZ.js";import{a as Le}from"./chunk-KHIKPOXK.js";import{a as be}from"./chunk-BRTUMDFG.js";import"./chunk-DNHLTHLR.js";import{b as R}from"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import{a as he}from"./chunk-OEWX26UE.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import"./chunk-ZOMDTRAX.js";import{a as de,b as ce,d as ue,e as Ce,h as fe,i as Fe,k as ge,l as Ne,m as Te,o as Se,p as Ee,r as ke}from"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{a as _e,b as se}from"./chunk-TQE7OBBP.js";import{a as re,c as me,d as pe}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as Me,g as xe,i as De,k as Oe,l as Ae,n as Ie,o as $e,q as Pe,r as we,s as ye,x as ve,y as Ve}from"./chunk-3CRA7LUM.js";import"./chunk-6SIZVSDW.js";import{ia as le}from"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as x,Ac as oe,Bb as D,Cb as l,Db as o,Eb as s,Fb as $,Gb as P,Hb as Z,Ib as O,Ob as w,Oc as ae,Pb as y,Qb as S,Ra as a,Rb as b,Sb as B,Tb as J,Ub as A,Vb as r,Y as I,Yb as N,Zb as Q,_b as d,da as E,ea as k,eb as j,gc as Y,hc as m,ic as G,jc as g,kb as u,sc as ee,tb as p,tc as te,ua as L,uc as ne,vb as W,vc as ie,yb as C,zb as M}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var Be=()=>[],Ge=(n,i)=>({index:n,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Re=n=>({$implicit:n});function Ue(n,i){n&1&&s(0,"spk-progress-bar",16)}function Ke(n,i){if(n&1&&(l(0,"spk-form-field"),s(1,"input",44),o()),n&2){let t=i.$implicit,e=i.$index;a(),Q("id","filter-",e,""),p("formControl",t)}}function ze(n,i){if(n&1){let t=O();w(0,12,1),l(1,"button",45,1),A("click",function(){let _=E(t).$implicit,f=r(2);return k(f.addNewOption(_))}),o(),y()}if(n&2){let t=i.$implicit;a(),b(t.name),B(0)}}function Xe(n,i){n&1&&Z(0)}function qe(n,i){if(n&1&&u(0,Xe,1,0,"ng-container",46),n&2){let t=i.$implicit,e=i.$index;r();let _=Y(54);p("ngTemplateOutlet",_)("ngTemplateOutletContext",ne(5,Re,ie(2,Ge,e,t)))}}function He(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function je(n,i){if(n&1&&(l(0,"app-file-tree",49)(1,"label",55),m(2),u(3,He,3,1,"spk-tooltip",56),o(),s(4,"input",57),o()),n&2){let t,e=r().$implicit,_=r(2);p("startingPath",_.getFormFieldValue(0,e.formGroupName,e.formView.name))("accepts",e.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name)}}function We(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function Ze(n,i){if(n&1&&(l(0,"app-file-tree",50)(1,"label",55),m(2),u(3,We,3,1,"spk-tooltip",56),o(),s(4,"input",57),o()),n&2){let t,e=r().$implicit,_=r(2);p("startingPath",_.getFormFieldValue(0,e.formGroupName,e.formView.name)),a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name)}}function Je(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function Qe(n,i){n&1&&(l(0,"spk-icon",58),m(1,"link"),o())}function Ye(n,i){n&1&&(l(0,"spk-icon",58),m(1,"textbox"),o())}function et(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",55),m(2),u(3,Je,3,1,"spk-tooltip",56),o(),s(4,"input",57),u(5,Qe,2,0,"spk-icon",58)(6,Ye,2,0,"spk-icon",58),o()),n&2){let t,e=r().$implicit;a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name),a(),C(e.formView.type==="Path"?5:6)}}function tt(n,i){if(n&1){let t=O();l(0,"span",62),A("click",function(){E(t);let _=r(2).$implicit,f=r(2);return k(f.oauthStartTokenCreation(_.formViewType))}),m(1,"AuthID"),o()}}function nt(n,i){n&1&&(l(0,"spk-icon",58),m(1,"password"),o())}function it(n,i){if(n&1){let t=O();l(0,"spk-icon",63),A("click",function(){E(t);let _=r(2).$implicit;return k(_.formView.showPassword=!_.formView.showPassword)}),m(1," eye "),o()}}function ot(n,i){if(n&1){let t=O();l(0,"spk-icon",63),A("click",function(){E(t);let _=r(2).$implicit;return k(_.formView.showPassword=!_.formView.showPassword)}),m(1," eye-slash "),o()}}function at(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",55),m(2),o(),s(3,"input",59),u(4,tt,2,0,"span",60)(5,nt,2,0,"spk-icon",58)(6,it,2,0,"spk-icon",61)(7,ot,2,0,"spk-icon",61),o()),n&2){let t,e=r().$implicit;a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name),p("type",e.formView.showPassword?"text":"password"),a(),C(e.oauthField===e.formView.name?4:5),a(2),C(e.formView.showPassword?6:7)}}function lt(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function rt(n,i){if(n&1&&(l(0,"spk-option",65),m(1),o()),n&2){let t=i.$implicit;p("value",t),a(),G(t)}}function mt(n,i){if(n&1&&(l(0,"spk-select")(1,"label",55),m(2),u(3,lt,3,1,"spk-tooltip",56),o(),s(4,"input",64),x(5,rt,2,2,"spk-option",65,M),o()),n&2){let t,e=r().$implicit;a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name),a(),D(e.formView.options)}}function pt(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function _t(n,i){if(n&1&&(l(0,"spk-option",65),m(1),o()),n&2){let t=i.$implicit;p("value",t),a(),G(t)}}function st(n,i){if(n&1&&(l(0,"div",51)(1,"label",55),m(2),u(3,pt,3,1,"spk-tooltip",56),o(),l(4,"div",66)(5,"spk-form-field"),s(6,"input",67),l(7,"spk-icon",58),m(8,"resize"),o()(),l(9,"spk-select"),s(10,"label")(11,"input",68),x(12,_t,2,2,"spk-option",65,M),o()()()),n&2){let t,e=r().$implicit,_=r(2);p("formGroupName",e.formView.name),a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(3),d("id","destination-",e.formGroupName,"-",e.index,""),a(6),D(_.sizeOptions())}}function dt(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function ct(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",55),m(2),u(3,dt,3,1,"spk-tooltip",56),o(),s(4,"input",69),l(5,"spk-icon",58),m(6,"numpad"),o()()),n&2){let t,e=r().$implicit;a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name)}}function ut(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function Ct(n,i){if(n&1&&(l(0,"spk-toggle",52)(1,"label",55),m(2),u(3,ut,3,1,"spk-tooltip",56),o(),s(4,"input",70),o()),n&2){let t,e=r().$implicit;a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name)}}function ft(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function Ft(n,i){n&1&&(l(0,"spk-option",72),m(1,"None"),o()),n&2&&p("value","None")}function gt(n,i){if(n&1&&(l(0,"spk-option",65),m(1),s(2,"spk-checkbox",73),o()),n&2){let t=r().$implicit;p("value",t),a(),g(" ",t," ")}}function Nt(n,i){if(n&1&&u(0,Ft,2,1,"spk-option",72)(1,gt,3,2,"spk-option",65),n&2){let t=i.$implicit;C(t==="None"?0:1)}}function Tt(n,i){if(n&1&&(l(0,"spk-select",53)(1,"label",55),m(2),u(3,ft,3,1,"spk-tooltip",56),o(),s(4,"input",71),x(5,Nt,2,1,null,null,M),o()),n&2){let t,e=r().$implicit;p("selectMultiple",!0),a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),N("formControlName",e.formView.name),a(),D(e.formView.options)}}function St(n,i){if(n&1&&(l(0,"spk-tooltip",56)(1,"spk-icon"),m(2,"question"),o()()),n&2){let t=r(2).$implicit;p("message",t.formView.longDescription)}}function Et(n,i){if(n&1&&(l(0,"spk-form-field")(1,"label",55),m(2),u(3,St,3,1,"spk-tooltip",56),o(),s(4,"input",57),o()),n&2){let t,e=r().$implicit;a(),d("for","destination-",e.formGroupName,"-",e.index,""),a(),g(" ",(t=e.formView.shortDescription)!==null&&t!==void 0?t:e.formView.name," "),a(),C(e.formView.longDescription?3:-1),a(),d("id","destination-",e.formGroupName,"-",e.index,""),N("formControlName",e.formView.name)}}function kt(n,i){if(n&1){let t=O();l(0,"div",47),$(1,48),u(2,je,5,14,"app-file-tree",49)(3,Ze,5,10,"app-file-tree",50)(4,et,7,10,"spk-form-field")(5,at,8,11,"spk-form-field")(6,mt,7,9,"spk-select")(7,st,14,9,"div",51)(8,ct,7,9,"spk-form-field")(9,Ct,5,9,"spk-toggle",52)(10,Tt,7,7,"spk-select",53)(11,Et,5,9,"spk-form-field"),P(),l(12,"button",54),A("click",function(){let _=E(t).$implicit,f=r(2);return k(f.removeFormView(_.formView,0))}),l(13,"spk-icon"),m(14,"x-circle"),o()()()}if(n&2){let t=i.$implicit;a(),p("formGroupName",t.formGroupName),a(),C(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="Size"?7:t.formView.type==="Integer"?8:t.formView.type==="Boolean"?9:t.formView.type==="Flags"?10:t.formView.type==="Timespan"?11:-1)}}function Mt(n,i){if(n&1){let t=O();l(0,"form",17)(1,"spk-select-new",18)(2,"label",19),S(3,3),o(),s(4,"input",20),o(),l(5,"spk-form-field")(6,"label",21),S(7,4),o(),s(8,"textarea",22),o(),l(9,"spk-form-field")(10,"label",23),S(11,5),o(),s(12,"textarea",24),o()(),l(13,"spk-divider"),S(14,6),o(),l(15,"form",17)(16,"spk-form-field")(17,"label",25),S(18,7),o(),s(19,"input",26),o(),l(20,"spk-form-field")(21,"label",27),S(22,8),o(),s(23,"input",28),o(),l(24,"app-toggle-card",29),$(25,30),S(26,9),P(),$(27,31),x(28,Ke,2,3,"spk-form-field",null,M),P(),o()(),l(30,"form",17)(31,"div",32)(32,"div",33)(33,"spk-form-field")(34,"label",34),S(35,10),o(),s(36,"input",35),o(),l(37,"spk-select-new",36),s(38,"input",37),o()(),l(39,"p"),w(40,11),s(41,"a",38),y(),o()(),l(42,"app-toggle-card",29),$(43,30),w(44,12),l(45,"spk-menu")(46,"button",39),s(47,"spk-icon"),o(),$(48,40),x(49,ze,3,1,"button",41,M),P(),o(),y(),P(),x(51,qe,1,7,"ng-container",null,M),o(),u(53,kt,15,2,"ng-template",null,0,oe),l(55,"div",42)(56,"button",43),A("click",function(){E(t);let _=r();return k(_.submit())}),w(57,13),s(58,"spk-icon"),y(),o()()()}if(n&2){let t,e=r();p("formGroup",e.baseCmdForm),a(),p("options",(t=e.commandOptions())!==null&&t!==void 0?t:te(12,Be))("inlineSearch",!0),a(14),p("formGroup",e.standardFields),a(9),p("disallowToggle",!0),a(4),D(e.standardFields.controls.filters.controls),a(2),p("formGroup",e.optionsForm),a(7),p("options",e.sizeOptions())("inlineSearch",!0),a(5),p("disallowToggle",!0),a(7),D(e.nonSelectedOptions()),a(2),D(e.selectedOptions()),a(5),W("loader",e.isSubmitting()),a(2),b(e.baseCmdForm.value.command),B(57)}}var T=new Ee,xt=["Bytes","KB","MB","GB","TB","PB"],K=class n{#e=I(U);#t=I(se);#n=I(me);#i=I(re);#o=I(_e);#a=R(this.#i.params);commandOptions=R(this.#o.getApiV1Commandline());sizeOptions=L(xt);isSubmitting=L(!1);standardFields=T.group({"backup-id":T.control(""),"backup-name":T.control(""),dbpath:T.control(""),filters:T.array([])});baseCmdForm=T.group({command:T.control("backup"),targetUrl:T.control(""),arguments:T.control("")});optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;finishedLoading=this.#e.finishedLoading;backupId=this.#e.backupId;#l=ae(()=>{let i=this.#a()?.id;this.#e.backupId.set(i),this.getBackup(i)});getBackup(i){this.#t.getApiV1BackupById({id:i}).subscribe({next:t=>{this.#e.mapScheduleToForm(t.Schedule??null),t.Backup&&(this.mapStandardFieldsToForm(t.Backup),this.mapBaseCmdToForm(t.Backup),this.#e.mapOptionsToForms(t.Backup)),this.#e.finishedLoading.set(!0)}})}mapStandardFieldsToForm(i){this.standardFields.patchValue({dbpath:i.DBPath,"backup-id":i.ID,"backup-name":i.Name}),i.Filters&&i.Filters.length&&i.Filters.map(t=>{this.standardFields.controls.filters.push(T.control(`${t.Include?"":"-"}${t.Expression}`))})}submit(){this.isSubmitting.set(!0);let i=this.baseCmdForm.value,t=this.optionsForm.value,e=i.targetUrl??"",_=i.arguments?.split(`
|
|
2
|
+
`)??[],f=this.standardFields.value,v=f.filters??[],V=[i.command,e,..._,`--backup-name=${f["backup-name"]}`,`--dbpath=${f.dbpath}`,`--backup-id=${f["backup-id"]}`,...v.filter(c=>c).map(c=>c.startsWith("-")?`--exclude=${c?.slice(1)}`:`--include=${c}`),...this.#e.mapFormsToSettings().map(c=>c.Name.startsWith("--")?`${c.Name}=${c.Value}`:`--${c.Name}=${c.Value}`),"--disable-module=console-password-input"];this.#t.postApiV1Commandline({requestBody:V}).subscribe(c=>{c.Status==="OK"&&this.#n.navigate(["backup",this.backupId(),"commandline",c.ID])})}mapBaseCmdToForm(i){let t=i.TargetURL??null;t&&this.baseCmdForm.patchValue({targetUrl:t??"",arguments:i.Sources?.join(`
|
|
3
|
+
`)??""})}oauthStartTokenCreation(i){}getFormFieldValue(i,t,e){return this.optionsForm.controls.advancedOptions.controls[e].value}removeFormView(i,t){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){console.log("option",i),this.#e.addOptionToFormGroup(i)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=j({type:n,selectors:[["app-commandline"]],features:[ee([U])],decls:8,vars:1,consts:()=>{let i;i=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let t;t=$localize`Select an option...`;let e;e=$localize`Command`;let _;_=$localize`TargetUrl`;let f;f=$localize`Commandline Arguments`;let v;v=$localize`Advanced options`;let V;V=$localize`Backup ID`;let c;c=$localize`Backup Name`;let z;z=$localize`Filters`;let X;X=$localize`Remote volume size`;let q;q=$localize` The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. ${"\uFFFD#41\uFFFD"}:START_LINK:Read more${"\uFFFD/#41\uFFFD"}:CLOSE_LINK:`;let h;h=$localize` Advanced options ${"\uFFFD#45\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#46\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#47\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#47\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#46\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#48\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*50:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#46\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*50:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#48\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_MENU:`,h=J(h);let H;return H=$localize`${"\uFFFD#58\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#58\uFFFD"}:CLOSE_TAG_SPK_ICON: Run "${"\uFFFD0\uFFFD"}:INTERPOLATION:" command now `,[["fieldTemplate",""],["option",""],i,e,_,f,v,V,c,z,X,q,h,H,[1,"back"],["type","button","spk-button","","routerLink","/",1,"small"],[1,"indeterminate","primary"],[3,"formGroup"],["placeholder","Select a command...",3,"options","inlineSearch"],["for","command"],["type","text","id","command","formControlName","command"],["for","targetUrl"],["id","targetUrl","autocomplete","off","formControlName","targetUrl"],["for","arguments"],["id","arguments","autocomplete","off","formControlName","arguments"],["for","backup-id"],["id","backup-id","formControlName","backup-id"],["for","backup-name"],["id","backup-name","formControlName","backup-name"],[3,"disallowToggle"],["title",""],["content","","formGroupName","filters"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["placeholder",t,3,"options","inlineSearch"],["type","text","formControlName","unit"],["href","#",1,"spk-primary"],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","",1,"raised","primary",3,"click"],[3,"id","formControl"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"]]},template:function(t,e){t&1&&(s(0,"app-status-bar"),l(1,"section")(2,"div",14)(3,"button",15),w(4,2),s(5,"spk-icon"),y(),o()(),u(6,Ue,1,0,"spk-progress-bar",16)(7,Mt,59,13),o()),t&2&&(a(6),C(e.finishedLoading()?7:6))},dependencies:[he,Le,be,ke,fe,ce,Fe,de,ue,Ce,ge,Ne,Se,Te,le,pe,Ae,Ie,xe,ye,ve,we,Oe,Ve,Pe,$e,De,Me],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;max-width:40rem;padding:2.5rem;gap:1.25rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}"],changeDetection:0})};export{K as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-
|
|
1
|
+
import{$ as aa,A as B,Aa as Ba,B as C,Ba as Ca,C as D,Ca as Da,D as E,Da as Ea,E as F,Ea as Fa,F as G,Fa as Ga,G as H,Ga as Ha,H as I,Ha as Ia,I as J,Ia as Ja,J as K,Ja as Ka,K as L,Ka as La,L as M,La as Ma,M as N,Ma as Na,N as O,Na as Oa,O as P,Oa as Pa,P as Q,Q as R,R as S,S as T,T as U,U as V,V as W,W as X,X as Y,Y as Z,Z as _,_ as $,a as b,aa as ba,b as c,ba as ca,c as d,ca as da,d as e,da as ea,e as f,ea as fa,f as g,fa as ga,g as h,ga as ha,h as i,ha as ia,i as j,ia as ja,j as k,ja as ka,k as l,ka as la,l as m,la as ma,m as n,ma as na,n as o,na as oa,o as p,oa as pa,p as q,pa as qa,q as r,qa as ra,r as s,ra as sa,s as t,sa as ta,t as u,ta as ua,u as v,ua as va,v as w,va as wa,w as x,wa as xa,x as y,xa as ya,y as z,ya as za,z as A,za as Aa}from"./chunk-JOBMLOGZ.js";import{Ba as a}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{l as APP_BASE_HREF,ka as AsyncPipe,i as BrowserPlatformLocation,za as CommonModule,xa as CurrencyPipe,pa as DATE_PIPE_DEFAULT_OPTIONS,oa as DATE_PIPE_DEFAULT_TIMEZONE,f as DOCUMENT,qa as DatePipe,va as DecimalPipe,r as FormStyle,t as FormatWidth,n as HashLocationStrategy,ra as I18nPluralPipe,sa as I18nSelectPipe,a as IMAGE_CONFIG,Ia as IMAGE_LOADER,ta as JsonPipe,ua as KeyValuePipe,h as LOCATION_INITIALIZED,o as Location,k as LocationStrategy,la as LowerCasePipe,Z as NgClass,_ as NgComponentOutlet,aa as NgFor,aa as NgForOf,$ as NgForOfContext,ba as NgIf,ca as NgIfContext,W as NgLocaleLocalization,V as NgLocalization,Pa as NgOptimizedImage,ga as NgPlural,ha as NgPluralCase,ia as NgStyle,da as NgSwitch,ea as NgSwitchCase,fa as NgSwitchDefault,ja as NgTemplateOutlet,p as NumberFormatStyle,u as NumberSymbol,Oa as PRECONNECT_CHECK_BLOCKLIST,m as PathLocationStrategy,wa as PercentPipe,g as PlatformLocation,q as Plural,ya as SlicePipe,ma as TitleCasePipe,s as TranslationWidth,na as UpperCasePipe,Ea as VERSION,Fa as ViewportScroller,v as WeekDay,Ha as XhrFactory,S as formatCurrency,R as formatDate,U as formatNumber,T as formatPercent,P as getCurrencySymbol,K as getLocaleCurrencyCode,J as getLocaleCurrencyName,I as getLocaleCurrencySymbol,D as getLocaleDateFormat,F as getLocaleDateTimeFormat,y as getLocaleDayNames,x as getLocaleDayPeriods,O as getLocaleDirection,A as getLocaleEraNames,M as getLocaleExtraDayPeriodRules,N as getLocaleExtraDayPeriods,B as getLocaleFirstDayOfWeek,w as getLocaleId,z as getLocaleMonthNames,H as getLocaleNumberFormat,G as getLocaleNumberSymbol,L as getLocalePluralCase,E as getLocaleTimeFormat,C as getLocaleWeekEndRange,Q as getNumberOfCurrencyDigits,Ca as isPlatformBrowser,Da as isPlatformServer,Ja as provideCloudflareLoader,Ka as provideCloudinaryLoader,La as provideImageKitLoader,Ma as provideImgixLoader,Na as provideNetlifyLoader,X as registerLocaleData,d as \u0275DomAdapter,Ga as \u0275NullViewportScroller,Aa as \u0275PLATFORM_BROWSER_ID,Ba as \u0275PLATFORM_SERVER_ID,e as \u0275PlatformNavigation,b as \u0275getDOM,j as \u0275normalizeQueryParams,Y as \u0275parseCookieValue,c as \u0275setRootDomAdapter};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{m as a,n as b}from"./chunk-WF5PRSGZ.js";import"./chunk-KHIKPOXK.js";import"./chunk-BRTUMDFG.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-3CRA7LUM.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createSourceDataForm,b as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ga as ye,X as pe,e as fe}from"./chunk-JOBMLOGZ.js";import{$ as ce,E as oe,M as ie,P as A,S as O,V as E,X as v,Y as m,Z as ae,aa as le,d as J,k as re,ka as de,l as V,ma as he,p as x,w as te,ya as ue,z as se}from"./chunk-QDAWQNBQ.js";import{a as ne}from"./chunk-C6Q5SG76.js";var L=class{},U=class{},g=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(`
|
|
2
|
+
`).forEach(n=>{let t=n.indexOf(":");if(t>0){let s=n.slice(0,t),i=n.slice(t+1).trim();this.addHeaderEntry(s,i)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((n,t)=>{this.addHeaderEntry(t,n)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([n,t])=>{this.setHeaderEntries(n,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){let n=new r;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){let n=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,n);let s=(e.op==="a"?this.headers.get(n):void 0)||[];s.push(...t),this.headers.set(n,s);break;case"d":let i=e.value;if(!i)this.headers.delete(n),this.normalizedNames.delete(n);else{let o=this.headers.get(n);if(!o)return;o=o.filter(d=>i.indexOf(d)===-1),o.length===0?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,o)}break}}addHeaderEntry(e,n){let t=e.toLowerCase();this.maybeSetNormalizedName(e,t),this.headers.has(t)?this.headers.get(t).push(n):this.headers.set(t,[n])}setHeaderEntries(e,n){let t=(Array.isArray(n)?n:[n]).map(i=>i.toString()),s=e.toLowerCase();this.headers.set(s,t),this.maybeSetNormalizedName(e,s)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}};var W=class{encodeKey(e){return me(e)}encodeValue(e){return me(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function De(r,e){let n=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(s=>{let i=s.indexOf("="),[o,d]=i==-1?[e.decodeKey(s),""]:[e.decodeKey(s.slice(0,i)),e.decodeValue(s.slice(i+1))],a=n.get(o)||[];a.push(d),n.set(o,a)}),n}var ke=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function me(r){return encodeURIComponent(r).replace(ke,(e,n)=>xe[n]??e)}function S(r){return`${r}`}var R=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new W,e.fromString){if(e.fromObject)throw new A(2805,!1);this.map=De(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{let t=e.fromObject[n],s=Array.isArray(t)?t.map(S):[S(t)];this.map.set(n,s)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){let n=[];return Object.keys(e).forEach(t=>{let s=e[t];Array.isArray(s)?s.forEach(i=>{n.push({param:t,value:i,op:"a"})}):n.push({param:t,value:s,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let n=this.encoder.encodeKey(e);return this.map.get(e).map(t=>n+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let n=new r({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let n=(e.op==="a"?this.map.get(e.param):void 0)||[];n.push(S(e.value)),this.map.set(e.param,n);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],s=t.indexOf(S(e.value));s!==-1&&t.splice(s,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var q=class{map=new Map;set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function _e(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ge(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function Te(r){return typeof Blob<"u"&&r instanceof Blob}function Ee(r){return typeof FormData<"u"&&r instanceof FormData}function Fe(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var _="Content-Type",z="Accept",Q="X-Request-URL",be="text/plain",Pe="application/json",Ne=`${Pe}, ${be}, */*`,F=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(e,n,t,s){this.url=n,this.method=e.toUpperCase();let i;if(_e(this.method)||s?(this.body=t!==void 0?t:null,i=s):i=t,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),this.transferCache=i.transferCache),this.headers??=new g,this.context??=new q,!this.params)this.params=new R,this.urlWithParams=n;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=n;else{let d=n.indexOf("?"),a=d===-1?"?":d<n.length-1?"&":"";this.urlWithParams=n+a+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||ge(this.body)||Te(this.body)||Ee(this.body)||Fe(this.body)?this.body:this.body instanceof R?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Ee(this.body)?null:Te(this.body)?this.body.type||null:ge(this.body)?null:typeof this.body=="string"?be:this.body instanceof R?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?Pe:null}clone(e={}){let n=e.method||this.method,t=e.url||this.url,s=e.responseType||this.responseType,i=e.transferCache??this.transferCache,o=e.body!==void 0?e.body:this.body,d=e.withCredentials??this.withCredentials,a=e.reportProgress??this.reportProgress,f=e.headers||this.headers,p=e.params||this.params,y=e.context??this.context;return e.setHeaders!==void 0&&(f=Object.keys(e.setHeaders).reduce((P,h)=>P.set(h,e.setHeaders[h]),f)),e.setParams&&(p=Object.keys(e.setParams).reduce((P,h)=>P.set(h,e.setParams[h]),p)),new r(n,t,o,{params:p,headers:f,context:y,reportProgress:a,responseType:s,withCredentials:d,transferCache:i})}},b=function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r}(b||{}),j=class{headers;status;statusText;url;ok;type;constructor(e,n=200,t="OK"){this.headers=e.headers||new g,this.status=e.status!==void 0?e.status:n,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},C=class r extends j{constructor(e={}){super(e)}type=b.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},B=class r extends j{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=b.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},w=class extends j{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},Ae=200,Le=204;function $(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,transferCache:r.transferCache}}var Ue=(()=>{class r{handler;constructor(n){this.handler=n}request(n,t,s={}){let i;if(n instanceof F)i=n;else{let a;s.headers instanceof g?a=s.headers:a=new g(s.headers);let f;s.params&&(s.params instanceof R?f=s.params:f=new R({fromObject:s.params})),i=new F(n,t,s.body!==void 0?s.body:null,{headers:a,context:s.context,params:f,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials,transferCache:s.transferCache})}let o=V(i).pipe(se(a=>this.handler.handle(a)));if(n instanceof F||s.observe==="events")return o;let d=o.pipe(te(a=>a instanceof B));switch(s.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof ArrayBuffer))throw new A(2806,!1);return a.body}));case"blob":return d.pipe(x(a=>{if(a.body!==null&&!(a.body instanceof Blob))throw new A(2807,!1);return a.body}));case"text":return d.pipe(x(a=>{if(a.body!==null&&typeof a.body!="string")throw new A(2808,!1);return a.body}));case"json":default:return d.pipe(x(a=>a.body))}case"response":return d;default:throw new A(2809,!1)}}delete(n,t={}){return this.request("DELETE",n,t)}get(n,t={}){return this.request("GET",n,t)}head(n,t={}){return this.request("HEAD",n,t)}jsonp(n,t){return this.request("JSONP",n,{params:new R().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,t={}){return this.request("OPTIONS",n,t)}patch(n,t,s={}){return this.request("PATCH",n,$(s,t))}post(n,t,s={}){return this.request("POST",n,$(s,t))}put(n,t,s={}){return this.request("PUT",n,$(s,t))}static \u0275fac=function(t){return new(t||r)(v(L))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),je=/^\)\]\}',?\n/;function ve(r){if(r.url)return r.url;let e=Q.toLocaleLowerCase();return r.headers.get(e)}var Me=new E(""),G=(()=>{class r{fetchImpl=m(K,{optional:!0})?.fetch??((...n)=>globalThis.fetch(...n));ngZone=m(he);handle(n){return new J(t=>{let s=new AbortController;return this.doRequest(n,s.signal,t).then(Y,i=>t.error(new w({error:i}))),()=>s.abort()})}async doRequest(n,t,s){let i=this.createRequestInit(n),o;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(n.urlWithParams,ne({signal:t},i)));Be(h),s.next({type:b.Sent}),o=await h}catch(h){s.error(new w({error:h,status:h.status??0,statusText:h.statusText,url:n.urlWithParams,headers:h.headers}));return}let d=new g(o.headers),a=o.statusText,f=ve(o)??n.urlWithParams,p=o.status,y=null;if(n.reportProgress&&s.next(new C({headers:d,status:p,statusText:a,url:f})),o.body){let h=o.headers.get("content-length"),I=[],c=o.body.getReader(),l=0,T,M,u=typeof Zone<"u"&&Zone.current;await this.ngZone.runOutsideAngular(async()=>{for(;;){let{done:N,value:k}=await c.read();if(N)break;if(I.push(k),l+=k.length,n.reportProgress){M=n.responseType==="text"?(M??"")+(T??=new TextDecoder).decode(k,{stream:!0}):void 0;let ee=()=>s.next({type:b.DownloadProgress,total:h?+h:void 0,loaded:l,partialText:M});u?u.run(ee):ee()}}});let D=this.concatChunks(I,l);try{let N=o.headers.get(_)??"";y=this.parseBody(n,D,N)}catch(N){s.error(new w({error:N,headers:new g(o.headers),status:o.status,statusText:o.statusText,url:ve(o)??n.urlWithParams}));return}}p===0&&(p=y?Ae:0),p>=200&&p<300?(s.next(new B({body:y,headers:d,status:p,statusText:a,url:f})),s.complete()):s.error(new w({error:y,headers:d,status:p,statusText:a,url:f}))}parseBody(n,t,s){switch(n.responseType){case"json":let i=new TextDecoder().decode(t).replace(je,"");return i===""?null:JSON.parse(i);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:s});case"arraybuffer":return t.buffer}}createRequestInit(n){let t={},s=n.withCredentials?"include":void 0;if(n.headers.forEach((i,o)=>t[i]=o.join(",")),n.headers.has(z)||(t[z]=Ne),!n.headers.has(_)){let i=n.detectContentTypeHeader();i!==null&&(t[_]=i)}return{body:n.serializeBody(),method:n.method,headers:t,credentials:s}}concatChunks(n,t){let s=new Uint8Array(t),i=0;for(let o of n)s.set(o,i),i+=o.length;return s}static \u0275fac=function(t){return new(t||r)};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),K=class{};function Y(){}function Be(r){r.then(Y,Y)}function Se(r,e){return e(r)}function ze(r,e,n){return(t,s)=>le(n,()=>e(t,i=>r(i,s)))}var Z=new E(""),Ce=new E(""),Xe=new E("",{providedIn:"root",factory:()=>!0});var we=(()=>{class r extends L{backend;injector;chain=null;pendingTasks=m(de);contributeToStability=m(Xe);constructor(n,t){super(),this.backend=n,this.injector=t}handle(n){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(Z),...this.injector.get(Ce,[])]));this.chain=t.reduceRight((s,i)=>ze(s,i,this.injector),Se)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(n,s=>this.backend.handle(s)).pipe(oe(()=>this.pendingTasks.remove(t)))}else return this.chain(n,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||r)(v(U),v(ce))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();var Je=/^\)\]\}',?\n/,Ve=RegExp(`^${Q}:`,"m");function $e(r){return"responseURL"in r&&r.responseURL?r.responseURL:Ve.test(r.getAllResponseHeaders())?r.getResponseHeader(Q):null}var Re=(()=>{class r{xhrFactory;constructor(n){this.xhrFactory=n}handle(n){if(n.method==="JSONP")throw new A(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?re(t.\u0275loadImpl()):V(null)).pipe(ie(()=>new J(i=>{let o=t.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((c,l)=>o.setRequestHeader(c,l.join(","))),n.headers.has(z)||o.setRequestHeader(z,Ne),!n.headers.has(_)){let c=n.detectContentTypeHeader();c!==null&&o.setRequestHeader(_,c)}if(n.responseType){let c=n.responseType.toLowerCase();o.responseType=c!=="json"?c:"text"}let d=n.serializeBody(),a=null,f=()=>{if(a!==null)return a;let c=o.statusText||"OK",l=new g(o.getAllResponseHeaders()),T=$e(o)||n.url;return a=new C({headers:l,status:o.status,statusText:c,url:T}),a},p=()=>{let{headers:c,status:l,statusText:T,url:M}=f(),u=null;l!==Le&&(u=typeof o.response>"u"?o.responseText:o.response),l===0&&(l=u?Ae:0);let D=l>=200&&l<300;if(n.responseType==="json"&&typeof u=="string"){let N=u;u=u.replace(Je,"");try{u=u!==""?JSON.parse(u):null}catch(k){u=N,D&&(D=!1,u={error:k,text:u})}}D?(i.next(new B({body:u,headers:c,status:l,statusText:T,url:M||void 0})),i.complete()):i.error(new w({error:u,headers:c,status:l,statusText:T,url:M||void 0}))},y=c=>{let{url:l}=f(),T=new w({error:c,status:o.status||0,statusText:o.statusText||"Unknown Error",url:l||void 0});i.error(T)},P=!1,h=c=>{P||(i.next(f()),P=!0);let l={type:b.DownloadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),n.responseType==="text"&&o.responseText&&(l.partialText=o.responseText),i.next(l)},I=c=>{let l={type:b.UploadProgress,loaded:c.loaded};c.lengthComputable&&(l.total=c.total),i.next(l)};return o.addEventListener("load",p),o.addEventListener("error",y),o.addEventListener("timeout",y),o.addEventListener("abort",y),n.reportProgress&&(o.addEventListener("progress",h),d!==null&&o.upload&&o.upload.addEventListener("progress",I)),o.send(d),i.next({type:b.Sent}),()=>{o.removeEventListener("error",y),o.removeEventListener("abort",y),o.removeEventListener("load",p),o.removeEventListener("timeout",y),n.reportProgress&&(o.removeEventListener("progress",h),d!==null&&o.upload&&o.upload.removeEventListener("progress",I)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(t){return new(t||r)(v(ye))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})(),Oe=new E(""),Ge="XSRF-TOKEN",We=new E("",{providedIn:"root",factory:()=>Ge}),qe="X-XSRF-TOKEN",Ke=new E("",{providedIn:"root",factory:()=>qe}),X=class{},Ye=(()=>{class r{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(n,t,s){this.doc=n,this.platform=t,this.cookieName=s}getToken(){if(this.platform==="server")return null;let n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=pe(n,this.cookieName),this.lastCookieString=n),this.lastToken}static \u0275fac=function(t){return new(t||r)(v(fe),v(ue),v(We))};static \u0275prov=O({token:r,factory:r.\u0275fac})}return r})();function Qe(r,e){let n=r.url.toLowerCase();if(!m(Oe)||r.method==="GET"||r.method==="HEAD"||n.startsWith("http://")||n.startsWith("https://"))return e(r);let t=m(X).getToken(),s=m(Ke);return t!=null&&!r.headers.has(s)&&(r=r.clone({headers:r.headers.set(s,t)})),e(r)}var H=function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r}(H||{});function Ie(r,e){return{\u0275kind:r,\u0275providers:e}}function wn(...r){let e=[Ue,Re,we,{provide:L,useExisting:we},{provide:U,useFactory:()=>m(Me,{optional:!0})??m(Re)},{provide:Z,useValue:Qe,multi:!0},{provide:Oe,useValue:!0},{provide:X,useClass:Ye}];for(let n of r)e.push(...n.\u0275providers);return ae(e)}function Rn(r){return Ie(H.Interceptors,r.map(e=>({provide:Z,useValue:e,multi:!0})))}function bn(){return Ie(H.Fetch,[G,{provide:Me,useExisting:G},{provide:U,useExisting:G}])}export{g as a,B as b,Ue as c,wn as d,Rn as e,bn as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as w,c as g}from"./chunk-2K3CR66C.js";import{b}from"./chunk-TQE7OBBP.js";import{E as f,Mc as d,N as m,S as i,V as v,Y as s,g as h,l as p,ua as e,y as S}from"./chunk-QDAWQNBQ.js";var k=new v("ENVIRONMENT");var r=class o{#n=s(b);#e=e("disconnected");#t=e(null);#o=e(-1);#i=e(0);#s=e(!1);#c=new h;connectionStatus=this.#e.asReadonly();serverState=this.#t.asReadonly();duration=s(w).relayIsEnabled()?"94s":"299s";start(){this.#s.set(!0),this.#c=new h,this.#r()}stop(){this.#c.next(),this.#c.complete(),this.#s.set(!1)}reconnect(){this.stop(),this.start()}reconnectIfNeeded(){console.log("reconnectIfNeeded"),!this.#s()&&this.reconnect()}#r(){this.#e.set("connecting"),this.#n.getApiV1Serverstate({lastEventId:this.#o(),longpoll:this.#o()>0,duration:this.duration}).pipe(m(this.#c),S(t=>(this.#l(t),p(null))),f(()=>{this.#h()})).subscribe(t=>{t&&this.#a(t)})}#a(t){this.#e.set("connected"),this.#t.set(t),this.#o.set(t.LastEventID||-1),this.#i.set(0)}#l(t){let n=this.#i()+1;this.#i.set(n),n>3&&this.#e.set("disconnected")}#h(){this.#s()&&this.#r()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};var a=class o{#n=s(g);#e=s(k);#t=null;#o=e("disconnected");#i=e(null);shouldConnect=e(!0);connectionStatus=this.#o.asReadonly();serverState=this.#i.asReadonly();start(){this.#s(),this.shouldConnect.set(!0)}#s(){let t=this.#n.token();if(!t){console.error("No access token available");return}let n=window.location.protocol==="https:"?"wss:":"ws:",u=window.location.port?`:${window.location.port}`:"";window.location.port==="4200"&&(u=":8200");let N=window.location.hostname,C=`${n}//${N}${u}/notifications?token=${t}`;this.#o.set("connecting"),this.#t=new WebSocket(C),this.#t.onopen=()=>{console.log("WebSocket connection established"),this.#o.set("connected")},this.#t.onmessage=c=>{try{let l=JSON.parse(c.data);this.#i.set(l)}catch(l){console.error("Error parsing WebSocket message",l)}},this.#t.onclose=c=>{console.log("WebSocket connection closed",c),this.#o.set("disconnected"),this.shouldConnect()&&setTimeout(()=>this.#s(),5e3)},this.#t.onerror=c=>{console.error("WebSocket error",c),this.#o.set("disconnected")}}stop(){this.shouldConnect.set(!1),this.#t?.close()}reconnect(){this.#t?.close(),this.start()}reconnectIfNeeded(){this.#t?.readyState!==WebSocket.OPEN&&this.reconnect()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};var y=class o{#n=s(a);#e=s(r);#t=e("longpoll");connectionStatus=d(()=>this.#t()==="websocket"?this.#n.connectionStatus():this.#e.connectionStatus());serverState=d(()=>this.#t()==="websocket"?this.#n.serverState():this.#e.serverState());setConnectionMethod(t){t==="websocket"?(this.#n.reconnectIfNeeded(),this.#e.stop()):(this.#e.reconnectIfNeeded(),this.#n.stop()),this.#t.set(t)}getConnectionMethod(){return this.#t()}static \u0275fac=function(n){return new(n||o)};static \u0275prov=i({token:o,factory:o.\u0275fac,providedIn:"root"})};export{k as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as z}from"./chunk-
|
|
1
|
+
import{a as z}from"./chunk-OEWX26UE.js";import"./chunk-Z5FVTSXP.js";import"./chunk-FOHDLUCC.js";import"./chunk-7KWOTSVE.js";import{a as G}from"./chunk-ZOMDTRAX.js";import"./chunk-LFQXDL42.js";import"./chunk-2K3CR66C.js";import{b as L}from"./chunk-TQE7OBBP.js";import{d as E}from"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import{a as R,g as f,h as k,k as w,o as X}from"./chunk-3CRA7LUM.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-US4WRUST.js";import{Ab as x,Bb as $,Cb as e,Db as i,Eb as s,Fb as D,Gb as b,Ob as h,Pb as y,Qb as c,Ra as p,Rb as A,Sb as I,Vb as S,Y as d,eb as O,hc as l,kb as m,kc as B,qb as M,rb as P,tb as u,tc as g,uc as v,yb as F,zb as N}from"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";var W=()=>[k,f,R,E],j=()=>["/restore-from-files"],K=()=>["/restore/from-config"],q=t=>["/restore",t];function V(t,r){if(t&1&&(e(0,"spk-card",5),s(1,"img",10),e(2,"div",7)(3,"h3"),c(4,1),i(),e(5,"p"),l(6),i()(),e(7,"button",8),h(8,2),s(9,"spk-icon"),y(),i()()),t&2){let n,a,o=r.$implicit;p(4),A((n=o.Backup==null?null:o.Backup.Name)!==null&&n!==void 0?n:"Backup name missing"),I(4),p(2),B(" ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.SourceSizeString)!==null&&a!==void 0?a:"-"," / ",(a=o.Backup==null||o.Backup.Metadata==null?null:o.Backup.Metadata.BackupListCount)!==null&&a!==void 0?a:"-"," "),p(),u("routerLink",v(4,q,o.Backup==null?null:o.Backup.ID))}}function H(t,r){if(t&1&&x(0,V,10,6,"spk-card",5,N),t&2){let n=S(2);$(n.backups())}}function J(t,r){t&1&&(D(0),c(1,3),b())}function Q(t,r){if(t&1&&m(0,H,2,0)(1,J,2,0,"ng-container"),t&2){let n=S();F(n.backups().length?0:1)}}function U(t,r){t&1&&(e(0,"div",11),s(1,"spk-progress-bar",12),e(2,"div",7)(3,"h3"),c(4,4),i()()())}var C=class t{#e=d(G);#t=d(L);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups()}restoreNow(r){this.#t.postApiV1BackupByIdRestore({id:r.Backup?.ID,requestBody:{}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=O({type:t,selectors:[["app-restore"]],decls:32,vars:5,consts:()=>{let r;r=$localize`Where do you want to restore from?`;let n;n=$localize`Restore ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let a;a=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let o;o=$localize`No backups founds`;let T;return T=$localize`Loading backups...`,[r,n,a,o,T,[1,"type-a"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["spk-button","",3,"routerLink"],["src","assets/images/restore.png","alt","","width","48px"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(n,a){n&1&&(s(0,"app-status-bar"),e(1,"section")(2,"h2"),c(3,0),i(),e(4,"spk-card",5),s(5,"img",6),e(6,"div",7)(7,"h3"),l(8,"Direct restore from backup files"),i(),e(9,"p"),l(10,"Point to your backup files and restore from there."),i()(),e(11,"button",8),l(12," Start "),e(13,"spk-icon"),l(14,"play-circle"),i()()(),e(15,"spk-card",5),s(16,"img",9),e(17,"div",7)(18,"h3"),l(19,"Restore from configuration"),i(),e(20,"p"),l(21,"Load destination from an exported job or a storage provider"),i()(),e(22,"button",8),l(23," Start "),e(24,"spk-icon"),l(25,"play-circle"),i()()(),e(26,"spk-divider"),l(27,"Or existing"),i(),m(28,Q,2,1)(29,U,5,0),M(30,28,W,null,29),i()),n&2&&(p(11),u("routerLink",g(3,j)),p(11),u("routerLink",g(4,K)),p(8),P(!a.backupsLoading()))},dependencies:[z,k,f,w,R,X,E],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 0;display:flex;flex-direction:column;gap:1rem}spk-divider[_ngcontent-%COMP%]{color:var(--base-level-60)}spk-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}spk-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}"],changeDetection:0})};export{C as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as j}from"./chunk-KHIKPOXK.js";import{a as he}from"./chunk-BRTUMDFG.js";import{b as U}from"./chunk-MHZPUJQF.js";import{a as Oe,b as h,d as M,e as k,h as L,j as de,l as $,o as y,p as D,r as A}from"./chunk-LFQXDL42.js";import{b as I}from"./chunk-TQE7OBBP.js";import{a as P,c as d}from"./chunk-ZRPJ3QZT.js";import{a as b,g as v,l as fe,o as Ce,p as Re,r as Ne,s as Pe,x as Ie}from"./chunk-3CRA7LUM.js";import{pa as K}from"./chunk-JOBMLOGZ.js";import{Ab as ce,Bb as ue,C as se,Cb as r,Db as a,E as O,Eb as l,Fb as X,Gb as z,I as ae,Ib as x,Ob as c,Oc as H,Pb as u,Qb as m,Ra as S,Rb as Se,S as le,Sb as Fe,Ub as T,Vb as B,Y as _,da as C,ea as R,eb as N,hc as Y,kb as V,kc as me,sc as Ee,tb as F,ua as p,v as re,vb as _e,xc as Te,yb as G,zb as pe,zc as ge}from"./chunk-QDAWQNBQ.js";var Me=new D,$e=()=>Me.group({passphrase:Me.control("")}),J=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);encryptionForm=this.#e.encryptionForm;creatingTemporaryBackup=p(!1);next(){let t=this.#e.destinationTargetUrl();if(!t)throw new Error("No target URL");this.creatingTemporaryBackup.set(!0);let e=this.encryptionForm.value?.passphrase??null,o=[{Name:"--no-encryption",Value:"true"}];e&&(o=[{Name:"--passphrase",Value:e}]),this.#t.postApiV1Backups({requestBody:{Backup:{TargetURL:t,Settings:o}},temporary:!0}).pipe(O(()=>this.creatingTemporaryBackup.set(!1))).subscribe({next:i=>{let s=i.ID;this.#e.getBackup(s),this.#o.navigate([`/restore-draft/${s}`])},error:i=>{console.error(i)}})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-restore-encryption"]],decls:12,vars:1,consts:()=>{let t;t=$localize`Enter backup passphrase if defined.`;let e;e=$localize`Password`;let o;o=$localize`${"\uFFFD#8\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#8\uFFFD"}:CLOSE_TAG_SPK_ICON: Back `;let i;return i=$localize`${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `,[e,o,i,[3,"submit","formGroup"],["for","password"],["type","password","id","password","placeholder",t,"formControlName","passphrase"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){e&1&&(r(0,"form",3),T("submit",function(){return o.next()}),r(1,"spk-form-field")(2,"label",4),m(3,0),a(),l(4,"input",5),a(),r(5,"div",6)(6,"button",7),T("click",function(){return o.back()}),c(7,1),l(8,"spk-icon"),u(),a(),r(9,"button",8),c(10,2),l(11,"spk-icon"),u(),a()()()),e&2&&F("formGroup",o.encryptionForm)},dependencies:[A,L,h,M,k,$,y,fe,b,v],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function Ae(n,t){n&1&&l(0,"spk-progress-bar",8)}function be(n,t){if(n&1&&(r(0,"spk-option",14),Y(1),Te(2,"date"),a()),n&2){let e=t.$implicit;F("value",e.Version),S(),me("",e.Version,": ",ge(2,3,e.Time,"medium"),"")}}function ve(n,t){if(n&1){let e=x();l(0,"spk-progress-bar",8),r(1,"button",10),T("click",function(){C(e);let i=B(2);return R(i.abortLoading())}),m(2,4),a()}}function we(n,t){if(n&1&&(r(0,"app-file-tree",15)(1,"label",16),m(2,5),a(),l(3,"input",17),a()),n&2){let e=B(3);F("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ge(n,t){if(n&1&&V(0,we,4,4,"app-file-tree",15),n&2){let e=B(2);G((e.isDraft()&&!e.isRepairing()||!e.isDraft())&&e.backupSettings()?0:-1)}}function xe(n,t){if(n&1&&(r(0,"spk-select",12),l(1,"input",13),ce(2,be,3,6,"spk-option",14,pe),a(),V(4,ve,3,0)(5,Ge,1,1)),n&2){let e=B();F("displayFn",e.displayFn())("hideClearButton",!0),S(2),ue(e.versionOptions()),S(2),G(e.isDraft()&&e.isRepairing()||e.versionOptionsLoading()||e.loadingRootPath()?4:-1),S(),G(e.showFileTree()?5:-1)}}var q=new D,ye=()=>q.group({filesToRestore:q.control(""),selectedOption:q.control(null),passphrase:q.control(null)}),Z=class n{#t=_(I);#e=_(f);#o=_(d);#i=_(P);#n=_(K);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;selectOptionSignal=this.#e.selectOptionSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;isDraft=this.#e.isDraft;isFileRestore=this.#e.isFileRestore;showFileTree=p(!1);backupSettings=p(null);backupSettingsEffect=H(()=>{let t=this.backupId(),e=typeof this.selectOptionSignal()=="string"?parseInt(this.selectOptionSignal()):this.selectOptionSignal();if(typeof e!="number"||!t)return;let i=this.versionOptions()?.find(s=>s.Version===e)?.Time??null;i&&(this.showFileTree.set(!1),setTimeout(()=>{let s={id:t+"",time:i};this.backupSettings.set(s),this.getRootPath(s)}))});rootPath=p(void 0);loadingRootPath=p(!1);getRootPath(t){let e={id:t.id+"",time:t.time,prefixOnly:!0,folderContents:!1};this.loadingRootPath.set(!0),this.#t.getApiV1BackupByIdFiles(e).pipe(O(()=>{this.showFileTree.set(!0),this.loadingRootPath.set(!1)})).subscribe({next:o=>{let i=o.Files[0].Path;this.rootPath.set(i)}})}isRepairing=p(!1);repairEffect=H(()=>{let t=this.#e.isDraft(),e=this.selectOptionSignal();if(t&&e){let o=this.backupId();this.isRepairing.set(!0),this.#t.postApiV1BackupByIdRepairupdate({id:o,requestBody:{only_paths:!0,time:new Date().toISOString()}}).pipe(O(()=>this.isRepairing.set(!1))).subscribe()}});abortLoading(){this.selectFilesForm.controls.selectedOption.setValue(null)}displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(i=>typeof i.Version=="number"&&i.Version.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"medium")}`:""}}next(){this.#o.navigate(["options"],{relativeTo:this.#i.parent})}back(){this.#e.isFileRestore()?this.#o.navigate(["encryption"],{relativeTo:this.#i.parent}):this.#e.exit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-select-files"]],features:[Ee([K])],decls:13,vars:3,consts:()=>{let t;t=$localize`Select files`;let e;e=$localize`${"\uFFFD#9\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let o;o=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize`Select an option...`;let s;s=$localize`Cancel`;let w;return w=$localize`Path`,[["formRef",""],t,e,o,s,w,[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn","hideClearButton"],["type","text","placeholder",i,"formControlName","selectedOption"],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",6,0),T("submit",function(){return C(i),R(o.next())}),r(2,"h3",7),m(3,1),a(),V(4,Ae,1,0,"spk-progress-bar",8)(5,xe,6,4),r(6,"div",9)(7,"button",10),T("click",function(){return C(i),R(o.back())}),c(8,2),l(9,"spk-icon"),u(),a(),r(10,"button",11),c(11,3),l(12,"spk-icon"),u(),a()()()}e&2&&(F("formGroup",o.selectFilesForm),S(4),G(o.versionOptionsLoading()?4:5),S(5),Se(o.isFileRestore()?"Back":"Exit"),Fe(8))},dependencies:[A,L,h,M,k,$,y,K,j,v,Ne,b,Pe,Ce],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var f=class n{#t=_(d);#e=_(I);backupId=p(null);backup=p(null);destinationTargetUrl=p(null);selectFilesForm=ye();optionsForm=De();encryptionForm=$e();optionsFormSignal=U(this.optionsForm.valueChanges);selectFilesFormSignal=U(this.selectFilesForm.valueChanges);selectOptionSignal=U(this.selectFilesForm.controls.selectedOption.valueChanges);versionOptionsLoading=p(!1);versionOptions=p([]);isSubmitting=p(!1);isDraft=p(!1);isFileRestore=p(!1);init(t,e=!1,o=!1){this.backupId.set(t),this.isFileRestore.set(e),this.isDraft.set(o),e&&this.#t.navigate(["/restore-from-files/destination"]),e||this.getBackup(t,!0)}updateTargetUrl(t){this.destinationTargetUrl.set(t)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,i=this.versionOptions()?.find(s=>s.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(s=>`${s}*`)??[],passphrase:o.passphrase??null,time:i?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(O(()=>this.isSubmitting.set(!1))).subscribe({next:()=>this.exit(),error:s=>{console.error("restore error",s)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}getBackup(t,e=!1){this.versionOptionsLoading.set(!0),re([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t}).pipe(ae(3))]).pipe(se(1),O(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,i])=>{this.versionOptions.set(i),this.backup.set(o)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||n)};static \u0275prov=le({token:n,factory:n.\u0275fac,providedIn:"root"})};var W=new D,De=()=>W.group({restoreFrom:W.control("orignal"),restoreFromPath:W.control(""),handleExisting:W.control("overwrite"),permissions:W.control(!1)}),ee=class n{#t=_(f);#e=_(d);#o=_(P);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;isSubmitting=this.#t.isSubmitting;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#o.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=N({type:n,selectors:[["app-advanced-options-settings"]],decls:39,vars:6,consts:()=>{let t;t=$localize`Restore options`;let e;e=$localize`Where do you want to restore files from?`;let o;o=$localize` Original location ${"\uFFFD#9\uFFFD\uFFFD/#9\uFFFD"}:TAG_INPUT:`;let i;i=$localize` Pick location ${"\uFFFD#12\uFFFD\uFFFD/#12\uFFFD"}:TAG_INPUT:`;let s;s=$localize`How do you want to handle existing files?`;let w;w=$localize` Overwrite ${"\uFFFD#22\uFFFD\uFFFD/#22\uFFFD"}:TAG_INPUT:`;let g;g=$localize` Save different versions with timestamp in file name ${"\uFFFD#25\uFFFD\uFFFD/#25\uFFFD"}:TAG_INPUT:`;let te;te=$localize`Permissions`;let oe;oe=$localize` Restore read/write permissions ${"\uFFFD#31\uFFFD\uFFFD/#31\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize`${"\uFFFD#35\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#35\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let ne;return ne=$localize`${"\uFFFD#38\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#38\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `,[["formRef",""],t,e,o,i,s,w,g,te,oe,ie,ne,[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]]},template:function(e,o){if(e&1){let i=x();r(0,"form",12,0),T("submit",function(){return C(i),R(o.submit())}),r(2,"h3",13),m(3,1),a(),r(4,"app-toggle-card",14),X(5,15),m(6,2),z(),r(7,"spk-radio",16),c(8,3),l(9,"input",17),u(),a(),r(10,"spk-radio",16),c(11,4),l(12,"input",18),u(),a(),r(13,"app-file-tree",19)(14,"label",20),Y(15,"Path"),a(),l(16,"input",21),a()(),r(17,"app-toggle-card",14),X(18,15),m(19,5),z(),r(20,"spk-radio",16),c(21,6),l(22,"input",22),u(),a(),r(23,"spk-radio",16),c(24,7),l(25,"input",23),u(),a()(),r(26,"app-toggle-card"),X(27,15),m(28,8),z(),r(29,"spk-toggle",24),c(30,9),l(31,"input",25),u(),a()(),r(32,"div",26)(33,"button",27),T("click",function(){return C(i),R(o.goBack())}),c(34,10),l(35,"spk-icon"),u(),a(),r(36,"button",28),c(37,11),l(38,"spk-icon"),u(),a()()()}if(e&2){let i;F("formGroup",o.optionsForm),S(4),F("disallowToggle",!0),S(9),F("disabled",((i=o.optionsFormSignal())==null?null:i.restoreFrom)!=="pickLocation"),S(4),F("disallowToggle",!0),S(19),_e("loader",o.isSubmitting())}},dependencies:[A,L,h,Oe,de,M,k,$,y,he,j,Ie,Re,v,b],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{De as a,ee as b,$e as c,J as d,ye as e,Z as f,f as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as m}from"./chunk-
|
|
1
|
+
import{b as m}from"./chunk-7KWOTSVE.js";import{b as N}from"./chunk-TQE7OBBP.js";import{C as o,E as h,Mc as u,O as d,S as l,Y as r,l as c,ua as s,v as f,y as p}from"./chunk-QDAWQNBQ.js";var v=class n{#e=r(N);#n=r(m);serverState=u(()=>{let t=this.#n.serverState();return t?.LastNotificationUpdateID&&this.updateLastNotificationEventId(t?.LastNotificationUpdateID),t});#o=s(-1);#s=s(!1);#t=s([]);#i=s([]);notifications=this.#t.asReadonly();init(){this.notifications().length===0&&this.getNotifications()}updateLastNotificationEventId(t){this.#o()!==t&&(this.#o.set(t),this.getNotifications())}getNotifications(){this.#s.set(!0),this.#e.getApiV1Notifications().pipe(o(1),d(t=>this.#t.set(t)),h(()=>this.#s.set(!1))).subscribe()}getNofication(t){this.#e.getApiV1NotificationById({id:t}).pipe(o(1)).subscribe()}deleteNotification(t){let i=this.#t(),e=i[t];this.#i.set(i),i.splice(t,1),console.log("notifications",i),this.#t.set(i),this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(o(1)).subscribe({error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}deleteAllNotifications(){let t=this.#t();this.#i.set(t),this.#t.set([]);let i=t.map(e=>this.#e.deleteApiV1NotificationById({id:e.ID}).pipe(p(()=>c(e))));f(i).pipe(o(1)).subscribe({next:e=>{let b=e.filter(a=>a!=null&&"ID"in a);this.#t.set(b),this.#i.set([])},error:()=>{this.#t.set(this.#i()),this.#i.set([])}})}static \u0275fac=function(i){return new(i||n)};static \u0275prov=l({token:n,factory:n.\u0275fac,providedIn:"root"})};export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./chunk-C6Q5SG76.js";var t=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-VKHZOVLO.js")},{path:"encryption",loadComponent:()=>import("./chunk-UNJ66CNQ.js")},{path:"select-files",loadComponent:()=>import("./chunk-IKTCS2AI.js")},{path:"options",loadComponent:()=>import("./chunk-ZYUKP5CS.js")}],o=t;export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as a,l as b}from"./chunk-WF5PRSGZ.js";import"./chunk-KHIKPOXK.js";import"./chunk-BRTUMDFG.js";import"./chunk-DNHLTHLR.js";import"./chunk-MHZPUJQF.js";import"./chunk-PTG2C2YJ.js";import"./chunk-XFRVNXF6.js";import"./chunk-LFQXDL42.js";import"./chunk-TQE7OBBP.js";import"./chunk-ZRPJ3QZT.js";import"./chunk-NVTD7IP4.js";import"./chunk-3CRA7LUM.js";import"./chunk-6SIZVSDW.js";import"./chunk-JOBMLOGZ.js";import"./chunk-QDAWQNBQ.js";import"./chunk-C6Q5SG76.js";export{a as createScheduleForm,b as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
1
|
+
import{a as u}from"./chunk-3CRA7LUM.js";import{$a as d,Cb as o,Db as n,Ra as g,Ub as h,Wb as _,Xb as a,eb as p,hc as s,kb as m,qa as r,vb as f,yb as C}from"./chunk-QDAWQNBQ.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}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-SRMNNICE.js";import{Oc as r,S as s,Y as i,ua as e}from"./chunk-QDAWQNBQ.js";var o=class t{#t=i(a);#a=this.#t.getItemParsed("darkTheme",!0);#e=e(!1);#s=e(window?.innerWidth<=768);#i=e(!1);isDarkMode=this.#e.asReadonly();isMobile=this.#s.asReadonly();isNavOpen=this.#i.asReadonly();constructor(){window.matchMedia("(prefers-color-scheme:dark)").matches&&this.#a&&this.setDarkMode(),r(()=>{this.#e()?document.body.classList.add("dark"):document.body.classList.remove("dark")})}ngOnInit(){window.addEventListener("resize",this.#r)}toggleNav(){this.#i.set(!this.isNavOpen())}toggleBodyClass(){this.#t.setItemParsed("darkTheme",!this.isDarkMode(),!0),this.#e.set(!this.isDarkMode())}setDarkMode(){this.#t.setItemParsed("darkTheme",!0,!0),this.#e.set(!0)}setLightMode(){this.#t.setItemParsed("darkTheme",!1,!0),this.#e.set(!1)}#r(){this.#s.set(window.innerWidth<=768)}ngOnDestroy(){window.removeEventListener("resize",this.#r)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=s({token:t,factory:t.\u0275fac,providedIn:"root"})};export{o as a};
|