@duplicati/ngclient 0.0.78 → 0.0.80
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-bold.woff2 +0 -0
- package/assets/spk.css +52 -1
- package/assets/spk.woff2 +0 -0
- package/{chunk-DVV65XF4.js → chunk-233ZLAAE.js} +1 -1
- package/{chunk-IWSFC3I6.js → chunk-2U3FDBUK.js} +1 -1
- package/chunk-4YLHRMHU.js +1 -0
- package/{chunk-VKHZOVLO.js → chunk-76NKH7M2.js} +1 -1
- package/{chunk-BLF5NVEW.js → chunk-7ZJVPVCQ.js} +1 -1
- package/{chunk-JZOCG4KQ.js → chunk-BM4SNLLS.js} +1 -1
- package/{chunk-UNJ66CNQ.js → chunk-CD2B55TH.js} +1 -1
- package/{chunk-G7YGQ54D.js → chunk-CZ3SCRNE.js} +1 -1
- package/{chunk-BRTUMDFG.js → chunk-EGT5S7A4.js} +1 -1
- package/{chunk-XKSLV5L6.js → chunk-FZNTP67Z.js} +1 -1
- package/{chunk-7QPDYG2R.js → chunk-GTXOAJP6.js} +1 -1
- package/{chunk-IKTCS2AI.js → chunk-HSEKUB7W.js} +1 -1
- package/{chunk-EW42J6OZ.js → chunk-HX66OULG.js} +1 -1
- package/chunk-IZCX3KB3.js +1 -0
- package/{chunk-KRXCULQR.js → chunk-JMQCQ5DN.js} +1 -1
- package/{chunk-5K2CQFVP.js → chunk-JZFEEATO.js} +1 -1
- package/{chunk-HZOYOR46.js → chunk-K5WD7D64.js} +1 -1
- package/{chunk-7P2RW65H.js → chunk-KAGR24YW.js} +1 -1
- package/{chunk-F4G2WAF6.js → chunk-LPGLGZ3U.js} +1 -1
- package/{chunk-RBT353UU.js → chunk-MWJ2FIZF.js} +1 -1
- package/{chunk-VFTEC7DW.js → chunk-NHJBFOCX.js} +1 -1
- package/{chunk-KHIKPOXK.js → chunk-NRGTIGVX.js} +1 -1
- package/{chunk-ONPMD5AY.js → chunk-QFULFMSU.js} +1 -1
- package/chunk-RABUX7PS.js +6 -0
- package/{chunk-ZYUKP5CS.js → chunk-S7IEXZZK.js} +1 -1
- package/{chunk-TRNWEHWA.js → chunk-TFFQHLQK.js} +1 -1
- package/{chunk-OEWX26UE.js → chunk-TQIMA3N7.js} +1 -1
- package/{chunk-O3XPW5NY.js → chunk-UBEY6W6N.js} +1 -1
- package/{chunk-ILPTEKIT.js → chunk-WFFJ2OJB.js} +1 -1
- package/{chunk-OYXHFCSL.js → chunk-XAAJBERP.js} +1 -1
- package/{chunk-Q4JQCY64.js → chunk-XCKJXWMS.js} +1 -1
- package/chunk-XMGHFJW7.js +1 -0
- package/{chunk-HDBZ3ISU.js → chunk-XS2FYREZ.js} +1 -1
- package/{chunk-NDQ5RFC6.js → chunk-YB5LG22R.js} +1 -1
- package/{chunk-3LITUWIH.js → chunk-YUZINGR7.js} +1 -1
- package/{chunk-HXGHAEWC.js → chunk-ZGTFPEDW.js} +1 -1
- package/{chunk-QI7DMSHZ.js → chunk-ZSCSUQR3.js} +1 -1
- package/{chunk-F7KC3CMY.js → chunk-ZVCXBMGJ.js} +1 -1
- package/index.html +2 -2
- package/{main-WZFPMKCC.js → main-2MESDK56.js} +1 -1
- package/package.json +1 -1
- package/styles-KC6U2UBP.css +1 -0
- package/chunk-3CRA7LUM.js +0 -1
- package/chunk-AGD6LHBQ.js +0 -1
- package/chunk-WF5PRSGZ.js +0 -6
- package/chunk-WX6WWOS5.js +0 -1
- package/styles-S3CXMNLR.css +0 -1
package/chunk-3CRA7LUM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/chunk-AGD6LHBQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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};
|
package/chunk-WF5PRSGZ.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as We}from"./chunk-KHIKPOXK.js";import{a as Ue}from"./chunk-BRTUMDFG.js";import{a as Nt,b as Wt}from"./chunk-DNHLTHLR.js";import{b as H}from"./chunk-MHZPUJQF.js";import{a as pt}from"./chunk-PTG2C2YJ.js";import{a as nt}from"./chunk-XFRVNXF6.js";import{a as Re,b as se,c as Ee,d as le,e as ye,f as ct,g as Kt,h as Pe,i as Ge,k as mt,l as Ne,m as be,n as zt,o as Ae,p as ne,q as ut,r as Oe}from"./chunk-LFQXDL42.js";import{b as He}from"./chunk-TQE7OBBP.js";import{a as De,c as ae}from"./chunk-ZRPJ3QZT.js";import{a as pe,b as _t,d as Xt,e as Ht,g as Ve,i as dt,l as ce,n as Ft,o as jt,r as me,s as ue,x as Le,y as je}from"./chunk-3CRA7LUM.js";import{c as Bt}from"./chunk-6SIZVSDW.js";import{ia as lt}from"./chunk-JOBMLOGZ.js";import{$b as X,A as Et,Ab as I,Ac as at,Bb as v,Cb as a,Db as r,E as Ze,Eb as _,Fb as W,Gb as q,Hb as Ke,Ib as k,Mc as K,Ob as g,Oc as st,Pb as C,Qb as M,Ra as s,Rb as Je,S as we,Sb as et,Tb as xe,Ub as D,Vb as p,Y as $,Ya as fe,Yb as j,_b as Q,da as f,ea as S,eb as re,ec as Se,fc as Te,gc as he,hc as m,ia as wt,ic as Y,jc as V,kb as d,kc as Pt,l as Dt,mc as Gt,nc as bt,oc as Vt,p as Ye,pa as yt,qa as Rt,tb as c,tc as Lt,ua as O,uc as ze,vb as $e,vc as Ut,wc as tt,yb as F,zb as x}from"./chunk-QDAWQNBQ.js";import{a as N,c as Mt}from"./chunk-C6Q5SG76.js";var gt=class e{fromString(n){if(!n)return null;let t=n.match(/(\d+)([smhDWMY])/);return t&&{value:parseInt(t[1]),unit:t[2]}}toString(n,t){return`${n}${t}`}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var ke=class e{#e=$(He);s3Providers=H(this.getS3Config("Providers"));s3Regions=H(this.getS3Config("Regions"));s3RegionHosts=H(this.getS3Config("RegionHosts"));s3StorageClasses=H(this.getS3Config("StorageClasses"));storjSatellites=H(this.getStorjConfig("Satellites"));storjAuthenticationMethods=H(this.getStorjConfig("AuthenticationMethods"));openstackProviders=H(this.getOpenstackConfig("Providers"));openstackVersions=H(this.getOpenstackConfig("Versions"));gcsLocations=H(this.getGcsConfig("Locations"));gcsStorageClasses=H(this.getGcsConfig("StorageClasses"));getS3Config(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":n}}).pipe(Ye(t=>this.#t(t)))}createS3IamUser(n,t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":n,"s3-password":t}})}createS3PolicyIAM(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:n}})}getStorjConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":n}}).pipe(Ye(t=>this.#t(t)))}getOpenstackConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":n}}).pipe(Ye(t=>this.#t(t)))}getGcsConfig(n){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":n}}).pipe(Ye(t=>this.#t(t)))}#t(n){return(n.Result&&typeof n.Result=="object"&&Object.entries(n.Result).map(([t,o])=>({key:t,value:o})))??[]}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};function Be(e){return e==null?"":":"+e.toString()}function oe(e){return e==null?"":e.startsWith("/")?e:"/"+e}function R(e,n){let t={},o={};return n.searchParams.forEach((i,l)=>{ve.find(u=>u.key===e)?.dynamicFields?.includes(l)?o[l]=decodeURIComponent(i):t[l]=decodeURIComponent(i)}),{advanced:t,dynamic:o}}function G(e,n=!1){let t=e.map(([i,l])=>`${i}=${l?encodeURIComponent(l.toString()):""}`).join("&");return t?(n?"":"?")+t:""}function Ct(e){let n=e.destinationType,t=ve.find(o=>o.customKey===n||o.key===n);if(!t)throw new Error("Invalid destination type");return t?.mapper.to(e)??""}function At(e){let n=URL.canParse(e),t=e.split("://")[0],o=e.split("://")[1],i="http://"+o;if(o.startsWith("%")&&t==="file")return ve.find(u=>u.customKey===t||u.key===t)?.mapper.from(t,new URL("http://localhost"),e);let l=new URL(i);if(!n)throw new Error("Invalid target path");return ve.find(u=>u.customKey===t||u.key===t)?.mapper.from(t,l,e)}var T=new ne,ve=[{key:"file",displayName:"File system",description:"Store backups on your local file system.",customFields:{path:{type:"FolderTree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:e=>T.control(e??"")}},mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path}${n}`},from:(e,n,t)=>{let i=t.startsWith("file:///")?t.split("file:///")[1]:t.split("file://")[1],u=i.startsWith("%")?i:"/"+i;return N({destinationType:e,custom:{path:u}},R(e,n))}}},{key:"ssh",displayName:"SSH",description:"Store backups in SSH.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:e=>T.control(e??"",[Ee.required,Ee.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>T.control(e??"")}},dynamicFields:["auth-username"],advancedFields:[{type:"FileTree",name:"ssh-keyfile",accepts:".key,",shortDescription:"This is a path to a private key file locally on the machine",longDescription:"This is a path to a private key file locally on the machine"}],mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+oe(i)+n}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"s3",displayName:"S3 compatible bucket",description:"Store backups in any S3 compatible bucket.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>T.control(e??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:e=>e.get(ke).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(ke).s3StorageClasses}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.pathname,bucket:n.hostname}},R(e,n))}},{key:"gcs",displayName:"Google Cloud Storage",description:"Store backups in Google Cloud Storage.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:e=>e.get(ke).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:e=>e.get(ke).gcsStorageClasses},"authid"],mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${e.custom.path}${n}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"googledrive",displayName:"Google Drive",description:"Store backups in Google Drive.",oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"pcloud",displayName:"pCloud",description:"Store backups in pCloud.",oauthField:"authid",customFields:{server:{type:"Enumeration",name:"server",loadOptions:()=>O([{key:"pCloud Global",value:"api.pcloud.com"},{key:"pCloud Europe",value:"eapi.pcloud.com"}]),shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>{let o=n.pathname.replace(/^\//,"");return console.log("pathWithoutPrefixSlash",o),N({destinationType:e,custom:{server:n.hostname,path:o}},R(e,n))}}},{key:"azure",displayName:"Azure Blob Storage",description:"Store backups in Azure Blob Storage.",customFields:{path:{type:"String",name:"path",shortDescription:"Container name",longDescription:"Container name",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"onedrivev2",displayName:"OneDrive",description:"Store backups in OneDrive.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"od4b",displayName:"OneDrive Business",description:"Store backups in OneDrive Business.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+oe(i)+n}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"mssp",displayName:"Microsoft SharePoint",description:"Store backups in Microsoft SharePoint.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Account name"},{name:"auth-password",shortDescription:"Access key"}],mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+oe(i)+n}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"sharepoint",displayName:"Microsoft SharePoint v2",description:"Store backups in Microsoft SharePoint.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"dropbox",displayName:"Dropbox",description:"Store backups in Dropbox.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"box",displayName:"Box.com",description:"Store backups in Box.com.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"jottacloud",displayName:"Jottacloud",description:"Store backups in Jottacloud.",oauthField:"authid",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"b2",displayName:"B2 Cloud Storage",description:"Store backups in B2 Cloud Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Application ID"},{name:"auth-password",shortDescription:"Application Key"}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>N({destinationType:e,custom:{bucket:n.hostname,path:n.pathname}},R(e,n))}},{key:"e2",displayName:"IDrive e2",description:"Store backups in IDrive e2.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path in the bucket",longDescription:"Path in the bucket",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Access ID"},{name:"auth-password",shortDescription:"Access Secret"}],mapper:{to:e=>{let{bucket:n,path:t}=e.custom,o=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>N({destinationType:e,custom:{bucket:n.hostname,path:n.pathname}},R(e,n))}},{key:"mega",displayName:"Mega.nz",description:"Store backups in Mega.nz.",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"msgroup",displayName:"Microsoft Office 365 Group",description:"Store backups in Microsoft Office 365 Group.",oauthField:"authid",customFields:{groupEmail:{type:"Email",name:"groupEmail",shortDescription:"Group email",longDescription:"Group email",formElement:e=>T.control(e??"",[Ee.email])},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["authid"],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]);return`${e.destinationType}://${n}${t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.hostname+n.pathname}},R(e,n))}},{key:"cloudfiles",displayName:"Rackspace CloudFiles",description:"Store backups in Rackspace CloudFiles.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{port:t,server:o,path:i}=e.custom;return`${e.destinationType}://${o+Be(t)+oe(i)+n}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"rclone",displayName:"Rclone",description:"Store backups in Rclone.",dynamicFields:[{name:"rclone-local-repository",shortDescription:"Local repository",defaultValue:""},{name:"rclone-remote-repository",shortDescription:"Remote repository",defaultValue:""},{name:"rclone-remote-path",shortDescription:"Path on remote repository",defaultValue:""}],mapper:{to:e=>{let n=e.dynamic["rclone-remote-repository"],t=e.dynamic["rclone-remote-path"],o=Object.entries(e.dynamic).filter(([l])=>!["rclone-remote-repository","rclone-remote-path"].includes(l)),i=G([...Object.entries(e.advanced),...o]);return`${e.destinationType}://${n}/${t+i}`},from:(e,n,t)=>{let{advanced:o,dynamic:i}=R(e,n);return N({destinationType:e,dynamic:N({"rclone-remote-repository":n.hostname,"rclone-remote-path":n.pathname},i)},o)}}},{key:"openstack",displayName:"OpenStack Object Storage",description:"Store backups in OpenStack Object Storage.",customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket",longDescription:"Bucket",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"openstack-authuri",shortDescription:"Auth URI",type:"Enumeration",loadOptions:e=>e.get(ke).openstackProviders},{name:"openstack-version",shortDescription:"Version",type:"Enumeration",loadOptions:e=>e.get(ke).openstackVersions},{name:"openstack-domain-name",shortDescription:"Domain name"},{name:"openstack-tenant-name",shortDescription:"Tenant name"},{name:"openstack-region",shortDescription:"Region"}],mapper:{to:e=>{let n=G([...Object.entries(e.advanced),...Object.entries(e.dynamic)]),{bucket:t}=e.custom;return`${e.destinationType}://${t+n}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.pathname,bucket:n.hostname}},R(e,n))}},{key:"webdav",displayName:"WebDAV",description:"Store backups in WebDAV.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"},{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let{port:n,server:t,path:o}=e.custom,i=e.dynamic["use-ssl"],l=G([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([u])=>u!=="use-ssl")]);return`${e.destinationType}${i?"s":""}://${t+Be(n)+oe(o)+l}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"aftp",displayName:"FTP",description:"Store backups in FTP.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"auth-username",shortDescription:"Username"},{name:"auth-password",shortDescription:"Password"}],mapper:{to:e=>{let{port:n,server:t,path:o}=e.custom,i=G([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([l])=>l!=="use-ssl")]);return`${e.destinationType}://${t+Be(n)+oe(o)+i}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"sia",displayName:"Sia Decentrilized Cloud",description:"Store backups in Sia Decentrilized Cloud.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")}},dynamicFields:["sia-targetpath","sia-password","sia-redundancy"],mapper:{to:e=>{let n=e.custom.server,t=e.dynamic["sia-targetpath"],o=G([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([i])=>i!=="sia-targetpath")]);return`${e.destinationType}://${n+oe(t)+o}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.pathname}},R(e,n))}},{key:"cos",displayName:"Tencent COS",description:"Store backups in Tencent COS.",customFields:{path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"cos-bucket",shortDescription:"Bucket",order:1},{name:"cos-region",shortDescription:"Region",order:2},{name:"cos-app-id",shortDescription:"COS App Id",order:3},{name:"cos-secret-id",shortDescription:"COS Secret Id",order:4},{name:"cos-secret-key",shortDescription:"COS Secret Key",order:5}],mapper:{to:e=>{let n=e.custom.path,t=G([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([o])=>o!=="cos-targetpath")]);return`${e.destinationType}://${n+t}`},from:(e,n,t)=>N({destinationType:e,custom:{path:n.pathname}},R(e,n))}},{key:"tahoe",displayName:"Tahoe LAFS",description:"Store backups in Tahoe LAFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"Port",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")},username:{type:"String",name:"username",shortDescription:"Username",longDescription:"Username",formElement:e=>T.control(e??"")},password:{type:"Password",name:"password",shortDescription:"Password",longDescription:"Password",formElement:e=>T.control(e??"")}},dynamicFields:[{name:"use-ssl",shortDescription:"Use SSL"}],mapper:{to:e=>{let{port:n,server:t,path:o,username:i,password:l}=e.custom,u={"auth-username":i,"auth-password":l},h=e.dynamic["use-ssl"],P=G([...Object.entries(e.advanced),...Object.entries(e.dynamic).filter(([A])=>A!=="use-ssl"),...Object.entries(u)]);return`${e.destinationType}${h?"s":""}://${t+Be(n)+oe(o)+P}`},from:(e,n,t)=>N({destinationType:e,custom:{server:n.hostname,port:n.port,path:n.pathname}},R(e,n))}},{key:"cifs",displayName:"CIFS",description:"Store backups in CIFS.",customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"Server",formElement:e=>T.control(e??"")},share:{type:"String",name:"share",shortDescription:"Share Name",longDescription:"Share Name",formElement:e=>T.control(e??"")},path:{type:"String",name:"path",shortDescription:"Path on server",longDescription:"Path on server",formElement:e=>T.control(e??"")}},dynamicFields:["transport","auth-username","auth-password","auth-domain"],mapper:{to:e=>{let{share:n,server:t,path:o,username:i,password:l}=e.custom,u={"auth-username":i,"auth-password":l},h=G([...Object.entries(e.advanced),...Object.entries(u)]);return`${e.destinationType}://${t+oe(n)+oe(o)+h}`},from:(e,n,t)=>{let o=n.pathname.split("/")[1],i=n.pathname.split("/").slice(2).join("/");return N({destinationType:e,custom:{server:n.hostname,share:o,path:i}},R(e,n))}}},{key:"storj",customKey:"storjAccessGrant",displayName:"Storj Access Grant",description:"Store backups in Storj Access Grant.",dynamicFields:[{name:"storj-shared-access",shortDescription:"Access Grant"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server"}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=Access%20grant&storj-satellite=us1.storj.io%3A7777&storj-api-key&storj-secret&${G([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,n,t)=>N({destinationType:e},R(e,n))}},{key:"storj",customKey:"storjApiKey",displayName:"Storj API Key",description:"Store backups in Storj API Key.",dynamicFields:[{name:"storj-satellite",shortDescription:"Satellite",type:"Enumeration",loadOptions:e=>e.get(ke).storjSatellites},{name:"storj-api-key",shortDescription:"API Key"},{name:"storj-secret",shortDescription:"Secret"},{name:"storj-bucket",shortDescription:"Bucket"},{name:"storj-folder",shortDescription:"Path on server"}],mapper:{to:e=>`storj://storj.io/config?storj-auth-method=API%20key&${G([...Object.entries(e.advanced),...Object.entries(e.dynamic)],!0)}`,from:(e,n,t)=>N({destinationType:e},R(e,n))}}];var qt=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,ft=class e{generate(n,t=qt){let o;do o=this.generatePassword(n,t);while(this.calculatePasswordStrength(o)<5);return o}generatePassword(n,t=qt){let o=this;return Array.apply(null,{length:n}).map(()=>{let i;for(;;)if(i=String.fromCharCode(o.#e()),t.test(i))return i},this).join("")}calculatePasswordStrength(n){let t=1;return n.length>=8&&t++,n.match(/[a-z]/)&&n.match(/[A-Z]/)&&t++,n.match(/\d+/)&&t++,n.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&t++,Math.min(t,5)}#e(){if(window.crypto&&window.crypto.getRandomValues){let n=new Uint8Array(1);return window.crypto.getRandomValues(n),n[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let n=new Uint8Array(1);return window.msCrypto.getRandomValues(n),n[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var an=["formRef"];function sn(e,n){if(e&1&&(a(0,"spk-option",27),m(1),r()),e&2){let t=n.$implicit;c("value",t.Key),s(),Y(t.DisplayName)}}function ln(e,n){if(e&1&&_(0,"spk-progress-bar",38),e&2){let t=p(3);$e("warn",t.calculatePasswordStrength()===1)("tertiary",t.calculatePasswordStrength()===2)("primary",t.calculatePasswordStrength()===4)("success",t.calculatePasswordStrength()===5),c("value",t.calculatePasswordStrength()*(100/5))}}function pn(e,n){e&1&&(a(0,"span",33),M(1,9),r())}function cn(e,n){e&1&&(g(0,7,1),_(1,"spk-icon"),C())}function mn(e,n){e&1&&(g(0,7,2),_(1,"spk-icon"),C())}function un(e,n){e&1&&(g(0,10,1),_(1,"spk-icon",40),C())}function _n(e,n){e&1&&(g(0,10,2),_(1,"spk-icon"),C())}function dn(e,n){if(e&1){let t=k();a(0,"button",39),D("click",function(){f(t);let i=p(3);return S(i.copyPassword())}),g(1,10),d(2,un,2,0)(3,_n,2,0),C(),r()}if(e&2){let t=p(3);s(2),F(t.copiedPassword()?2:3)}}function Fn(e,n){e&1&&(a(0,"spk-alert",37),M(1,11),r())}function gn(e,n){if(e&1){let t=k();a(0,"div",28)(1,"spk-form-field")(2,"label",29),g(3,6),_(4,"sup"),C(),r(),_(5,"input",30),r(),d(6,ln,1,9,"spk-progress-bar",31),a(7,"spk-form-field"),_(8,"input",32),d(9,pn,2,0,"span",33),r(),a(10,"div",34)(11,"button",35),D("click",function(){f(t);let i=p(2);return S(i.showPassword.set(!i.showPassword()))}),g(12,7),d(13,cn,2,0)(14,mn,2,0),C(),r(),a(15,"button",35),D("click",function(){f(t);let i=p(2);return S(i.generatePassword())}),g(16,8),_(17,"spk-icon"),C(),r(),d(18,dn,4,1,"button",36),r(),d(19,Fn,2,0,"spk-alert",37),r()}if(e&2){let t=p(2);s(5),c("type",t.showPassword()?"text":"password"),s(),F(t.generalForm.value.password?6:-1),s(2),c("type",t.showPassword()?"text":"password"),s(),F(t.generalForm.value.repeatPassword&&t.generalForm.value.repeatPassword!==t.generalForm.value.password?9:-1),s(4),F(t.showPassword()?13:14),s(5),F(t.showCopyPassword()?18:-1),s(),F(t.generalForm.value.password&&t.generalForm.value.password===t.generalForm.value.repeatPassword?19:-1)}}function Cn(e,n){if(e&1&&(a(0,"spk-select",24)(1,"label",25),M(2,5),r(),_(3,"input",26),I(4,sn,2,2,"spk-option",27,x),r(),d(6,gn,20,7,"div",28)),e&2){let t=p();c("displayFn",t.displayFn()),s(4),v(t.encryptionOptions()),s(2),F(t.encryptionFieldSignal()!==""?6:-1)}}function fn(e,n){if(e&1&&(a(0,"button",22),g(1,12),_(2,"spk-icon"),C(),r()),e&2){let t=p();c("disabled",t.generalForm.invalid)}}function Sn(e,n){if(e&1&&(a(0,"spk-tooltip",23)(1,"button",22),g(2,13),_(3,"spk-icon"),C(),r()()),e&2){let t=p();c("disabled",!(t.showCopyPassword()&&!t.copiedPassword())),s(),c("disabled",t.generalForm.invalid||t.showCopyPassword()&&!t.copiedPassword())}}var qe=new ne,Qt=(e={name:"",description:"",encryption:"",password:"",repeatPassword:""})=>qe.group({name:qe.control(e.name,[Ee.required]),description:qe.control(e.description),encryption:qe.control(e.encryption,[Wt()]),password:qe.control(e.password,[Nt(n=>n?.value.encryption!=="",[Ee.required])]),repeatPassword:qe.control(e.repeatPassword,[Nt(n=>n?.value.encryption!=="",[Ee.required])])}),kt={Key:"",DisplayName:"None"},Ot=class e{#e=$(ae);#t=$(De);#o=$(ft);#i=$(_e);#n=$(pt);formRef=fe.required("formRef");generalForm=this.#i.generalForm;generalFormSignal=this.#i.generalFormSignal;encryptionFieldSignal=this.#i.encryptionFieldSignal;encryptionOptions=this.#i.encryptionOptions;isNew=this.#i.isNew;showPassword=O(!1);copiedPassword=O(!1);showCopyPassword=O(!1);encryptionEffect=st(()=>{this.encryptionFieldSignal()===""&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))});calculatePasswordStrength=K(()=>{let t=this.generalFormSignal()?.password??"";return this.#o.calculatePasswordStrength(t)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#i.exit()}async copyPassword(){let n=this.generalForm.controls.password.value;await this.#r(n??""),this.copiedPassword.set(!0)}async#r(n){try{await navigator.clipboard.writeText(n)}catch{try{let o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select(),document.execCommand("copy"),document.body.removeChild(o)}catch(o){console.error("Failed to copy text: ",o)}}}displayFn(){let n=this.#n.systemInfo()?.EncryptionModules??[];return t=>{let o=[kt,...n].find(i=>i.Key===t);return o?`${o.DisplayName}`:""}}generatePassword(){this.copiedPassword.set(!1);let n=this.#o.generate(16);this.generalForm.controls.password.setValue(n),this.generalForm.controls.repeatPassword.setValue(n),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#t.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-general"]],viewQuery:function(t,o){t&1&&Se(o.formRef,an,5),t&2&&Te()},decls:20,vars:3,consts:()=>{let n;n=$localize`Your backup name`;let t;t=$localize`Your backup description`;let o;o=$localize`General backup settings`;let i;i=$localize` Backup name ${"\uFFFD#7\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#7\uFFFD"}:CLOSE_SUPERSCRIPT:`;let l;l=$localize`Backup description`;let u;u=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Exit `;let h;h=$localize`Encryption`;let P;P=$localize`Encryption`;let A;A=$localize`Password`;let b;b=$localize`Repeat password`;let B;B=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let Z;Z=$localize`${"\uFFFD*13:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: hide ${"\uFFFD/*13:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*14:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPK_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: show ${"\uFFFD/*14:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Z=xe(Z);let U;U=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:password${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Generate password `;let J;J=$localize`Passwords do not match`;let te;te=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SPK_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPK_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,te=xe(te);let E;E=$localize` Tip: Be sure to save your password. If you loose it you will lose access to your backups. `;let y;y=$localize` Continue ${"\uFFFD#2\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPK_ICON:`;let z;return z=$localize` Continue ${"\uFFFD#3\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],o,i,l,u,P,B,Z,U,J,te,E,y,z,["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder",n,"formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder",t,"formControlName","description"],[1,"form-actions"],["type","button","spk-button","",3,"click"],["spk-button","","type","submit",1,"raised","primary",3,"disabled"],["message","Remember to copy the password",1,"primary",3,"disabled"],[3,"displayFn"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder",h,"formControlName","encryption"],[3,"value"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",A,"formControlName","password",3,"type"],[1,"raised",3,"warn","tertiary","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",b,"formControlName","repeatPassword",3,"type"],["error",""],[1,"password-actions"],["spk-button","","type","button",1,"small",3,"click"],["spk-button","","type","button",1,"small","copy"],["type","primary"],[1,"raised",3,"value"],["spk-button","","type","button",1,"small","copy",3,"click"],[1,"spk-success"]]},template:function(t,o){if(t&1){let i=k();a(0,"form",14,0),D("submit",function(){return f(i),S(o.next())}),a(2,"h3",15),M(3,1),r(),a(4,"spk-form-field")(5,"label",16),g(6,2),_(7,"sup"),C(),r(),_(8,"input",17),r(),a(9,"spk-form-field")(10,"label",18),M(11,3),r(),_(12,"textarea",19),r(),d(13,Cn,7,2),a(14,"div",20)(15,"button",21),D("click",function(){return f(i),S(o.exit())}),g(16,4),_(17,"spk-icon"),C(),r(),d(18,fn,3,1,"button",22)(19,Sn,4,2,"spk-tooltip",23),r()()}t&2&&(c("formGroup",o.generalForm),s(13),F(o.isNew()?13:-1),s(5),F(o.encryptionFieldSignal()===""?18:19))},dependencies:[Oe,Pe,se,le,ye,Ne,Ae,ce,ue,Ve,pe,me,jt,_t,je],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}sup[_ngcontent-%COMP%]{padding:0 .125rem;color:var(--warn-500)}.passwords[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.password-actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:center}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.copy[_ngcontent-%COMP%] spk-icon.spk-success[_ngcontent-%COMP%]{color:var(--success-500)}"],changeDetection:0})};var Tn=["formRef"],hn=(e,n)=>({index:e,formView:n,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),Dn=e=>({$implicit:e});function En(e,n){e&1&&(g(0,4,1),_(1,"spk-icon",16),C())}function yn(e,n){if(e&1&&(a(0,"spk-option",19),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function Pn(e,n){e&1&&(a(0,"p",16),M(1,10),r())}function Nn(e,n){if(e&1&&(a(0,"spk-option",19),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),Y(t.name)}}function An(e,n){if(e&1){let t=k();g(0,7,1),a(1,"button",32,2),D("click",function(){let i=f(t).$implicit,l=p();return S(l.addNewOption(i))}),r(),C()}if(e&2){let t=n.$implicit;s(),Je(t.name),et(0)}}function On(e,n){e&1&&Ke(0)}function kn(e,n){if(e&1&&d(0,On,1,0,"ng-container",33),e&2){let t=n.$implicit,o=n.$index;p();let i=he(38);c("ngTemplateOutlet",i)("ngTemplateOutletContext",ze(5,Dn,Ut(2,hn,o,t)))}}function $n(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function xn(e,n){if(e&1&&(a(0,"app-file-tree",36)(1,"label",42),m(2),d(3,$n,3,1,"spk-tooltip",43),r(),_(4,"input",44),r()),e&2){let t,o=p().$implicit,i=p();c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name))("accepts",o.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name)}}function In(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function vn(e,n){if(e&1&&(a(0,"app-file-tree",37)(1,"label",42),m(2),d(3,In,3,1,"spk-tooltip",43),r(),_(4,"input",44),r()),e&2){let t,o=p().$implicit,i=p();c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name)),s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name)}}function Mn(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function wn(e,n){e&1&&(a(0,"spk-icon",45),m(1,"link"),r())}function Rn(e,n){e&1&&(a(0,"spk-icon",45),m(1,"textbox"),r())}function Gn(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",42),m(2),d(3,Mn,3,1,"spk-tooltip",43),r(),_(4,"input",44),d(5,wn,2,0,"spk-icon",45)(6,Rn,2,0,"spk-icon",45),r()),e&2){let t,o=p().$implicit;s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name),s(),F(o.formView.type==="Path"?5:6)}}function bn(e,n){if(e&1){let t=k();a(0,"span",49),D("click",function(){f(t);let i=p(2).$implicit,l=p();return S(l.oauthStartTokenCreation(i.formViewType))}),m(1,"AuthID"),r()}}function Vn(e,n){e&1&&(a(0,"spk-icon",45),m(1,"password"),r())}function Ln(e,n){if(e&1){let t=k();a(0,"spk-icon",50),D("click",function(){f(t);let i=p(2).$implicit;return S(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye "),r()}}function Un(e,n){if(e&1){let t=k();a(0,"spk-icon",50),D("click",function(){f(t);let i=p(2).$implicit;return S(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye-slash "),r()}}function Bn(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",42),m(2),r(),_(3,"input",46),d(4,bn,2,0,"span",47)(5,Vn,2,0,"spk-icon",45)(6,Ln,2,0,"spk-icon",48)(7,Un,2,0,"spk-icon",48),r()),e&2){let t,o=p().$implicit;s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name),c("type",o.formView.showPassword?"text":"password"),s(),F(o.oauthField===o.formView.name?4:5),s(2),F(o.formView.showPassword?6:7)}}function Kn(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function zn(e,n){if(e&1&&(a(0,"spk-option",19),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function Xn(e,n){if(e&1&&(a(0,"spk-select")(1,"label",42),m(2),d(3,Kn,3,1,"spk-tooltip",43),r(),_(4,"input",51),I(5,zn,2,2,"spk-option",19,x),r()),e&2){let t,o=p().$implicit;s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name),s(),v(o.formView.options)}}function Hn(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function jn(e,n){if(e&1&&(a(0,"spk-option",19),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function Wn(e,n){if(e&1&&(a(0,"div",38)(1,"label",42),m(2),d(3,Hn,3,1,"spk-tooltip",43),r(),a(4,"div",52)(5,"spk-form-field"),_(6,"input",53),a(7,"spk-icon",45),m(8,"resize"),r()(),a(9,"spk-select"),_(10,"label")(11,"input",54),I(12,jn,2,2,"spk-option",19,x),r()()()),e&2){let t,o=p().$implicit,i=p();c("formGroupName",o.formView.name),s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(3),Q("id","destination-",o.formGroupName,"-",o.index,""),s(6),v(i.sizeOptions())}}function qn(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Qn(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",42),m(2),d(3,qn,3,1,"spk-tooltip",43),r(),_(4,"input",55),a(5,"spk-icon",45),m(6,"numpad"),r()()),e&2){let t,o=p().$implicit;s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name)}}function Yn(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Zn(e,n){if(e&1&&(a(0,"spk-toggle",39)(1,"label",42),m(2),d(3,Yn,3,1,"spk-tooltip",43),r(),_(4,"input",56),r()),e&2){let t,o=p().$implicit;s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name)}}function Jn(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function eo(e,n){e&1&&(a(0,"spk-option",58),m(1,"None"),r()),e&2&&c("value","None")}function to(e,n){if(e&1&&(a(0,"spk-option",19),m(1),_(2,"spk-checkbox",59),r()),e&2){let t=p().$implicit;c("value",t),s(),V(" ",t," ")}}function no(e,n){if(e&1&&d(0,eo,2,1,"spk-option",58)(1,to,3,2,"spk-option",19),e&2){let t=n.$implicit;F(t==="None"?0:1)}}function oo(e,n){if(e&1&&(a(0,"spk-select",40)(1,"label",42),m(2),d(3,Jn,3,1,"spk-tooltip",43),r(),_(4,"input",57),I(5,no,2,1,null,null,x),r()),e&2){let t,o=p().$implicit;c("selectMultiple",!0),s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),j("formControlName",o.formView.name),s(),v(o.formView.options)}}function io(e,n){if(e&1&&(a(0,"spk-tooltip",43)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ro(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",42),m(2),d(3,io,3,1,"spk-tooltip",43),r(),_(4,"input",44),r()),e&2){let t,o=p().$implicit;s(),Q("for","destination-",o.formGroupName,"-",o.index,""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),Q("id","destination-",o.formGroupName,"-",o.index,""),j("formControlName",o.formView.name)}}function ao(e,n){if(e&1){let t=k();a(0,"div",34),W(1,35),d(2,xn,5,14,"app-file-tree",36)(3,vn,5,10,"app-file-tree",37)(4,Gn,7,10,"spk-form-field")(5,Bn,8,11,"spk-form-field")(6,Xn,7,9,"spk-select")(7,Wn,14,9,"div",38)(8,Qn,7,9,"spk-form-field")(9,Zn,5,9,"spk-toggle",39)(10,oo,7,7,"spk-select",40)(11,ro,5,9,"spk-form-field"),q(),a(12,"button",41),D("click",function(){let i=f(t).$implicit,l=p();return S(l.removeFormView(i.formView,0))}),a(13,"spk-icon"),m(14,"x-circle"),r()()()}if(e&2){let t=n.$implicit;s(),c("formGroupName",t.formGroupName),s(),F(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)}}var Qe=new ne,Yt=["Bytes","KB","MB","GB","TB","PB"],so=[{value:"",name:$localize`Keep all backups`},{value:"time",name:$localize`Delete backups that are older than`},{value:"versions",name:$localize`Keep a specific number of backups`},{value:"smart",name:$localize`Smart backup retention`},{value:"custom",name:$localize`Custom backup retention`}],lo=1024*1024*1024*2,po=1024*1024*5,Zt=(e={remoteVolumeSize:50,size:"MB",backupRetention:"",advancedOptions:[]})=>Qe.group({remoteVolumeSize:Qe.group({size:Qe.control(e.remoteVolumeSize),unit:Qe.control(e.size)}),backupRetention:Qe.control(e.backupRetention),advancedOptions:Qe.group({})}),$t=class e{#e=$(_e);#t=$(ae);#o=$(De);formRef=fe.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;sizeOptions=O(Yt);retentionOptions=O(so);volumeSizeSignal=H(this.optionsForm.controls.remoteVolumeSize.get("size")?.valueChanges.pipe(Et(300))??Dt(null));volumeUnitSignal=H(this.optionsForm.controls.remoteVolumeSize.get("unit")?.valueChanges.pipe(Et(300))??Dt(null));exceededVolumeSize=K(()=>{let n=this.volumeSizeSignal()??this.optionsForm.controls.remoteVolumeSize.get("size")?.value,t=this.volumeUnitSignal()??this.optionsForm.controls.remoteVolumeSize.get("unit")?.value;if(n==null||t===null||t===void 0)return!1;let o=n*Math.pow(1024,Yt.indexOf(t));return o>lo||o<po});oauthStartTokenCreation(n){}getFormFieldValue(n,t,o){return this.optionsForm.controls.advancedOptions.controls[o].value}removeFormView(n,t){this.#e.removeOptionFromFormGroup(n)}addNewOption(n){this.#e.addOptionToFormGroup(n)}retentionOptionDisplayFn(){let n=this.retentionOptions();return t=>{let o=n.find(i=>i.value===t);return o?o.name:""}}displayFn(){let n=this.#e.advancedOptions();return t=>{let o=n.find(i=>i.name===t);return o?`${o.name}`:""}}goBack(){this.#t.navigate(["schedule"],{relativeTo:this.#o.parent})}submit(){this.#e.submit()}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-advanced-options-settings"]],viewQuery:function(t,o){t&1&&Se(o.formRef,Tn,5),t&2&&Te()},decls:46,vars:7,consts:()=>{let n;n=$localize`Select an option...`;let t;t=$localize`Options`;let o;o=$localize` Remote volume size ${"\uFFFD*9:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SPK_ICON:warning${"\uFFFD/#1:1\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/*9:1\uFFFD"}:CLOSE_BLOCK_IF:`;let i;i=$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#18\uFFFD"}:START_LINK: Read more ${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-square-out${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON:${"\uFFFD/#18\uFFFD"}:CLOSE_LINK:`;let l;l=$localize`Backup retention`;let u;u=$localize` Advanced options ${"\uFFFD#29\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#30\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#31\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#31\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#30\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#32\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*34:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1:${"\uFFFD0:1\uFFFD"}:INTERPOLATION:${"[\uFFFD/#30\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*34:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#32\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#29\uFFFD"}:CLOSE_TAG_SPK_MENU:`,u=xe(u);let h;h=$localize`${"\uFFFD#42\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#42\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let P;P=$localize`${"\uFFFD#45\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#45\uFFFD"}:CLOSE_TAG_SPK_ICON: Submit `;let A;return A=$localize` The chosen size is outside the recommended range. This may cause performance issues, excessively large temporary files or other problems. `,[["formRef",""],["fieldTemplate",""],["option",""],t,o,i,l,u,h,P,A,[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],[1,"warning"],["type","number","id","size","formControlName","size"],["type","text","placeholder",n,"formControlName","unit"],[3,"value"],["href","https://forum.duplicati.com/t/choosing-sizes-in-duplicati/17683","target","_blank",1,"spk-primary"],["suffix",""],[3,"displayFn"],["type","text","formControlName","backupRetention"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small"],["menu",""],["type","button"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","button",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],["type","search",3,"id","formControlName"],[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,o){if(t&1){let i=k();a(0,"form",11,0),D("submit",function(){return f(i),S(o.submit())}),a(2,"h3",12),M(3,3),r(),a(4,"div",13)(5,"div",14)(6,"spk-form-field")(7,"label",15),g(8,4),d(9,En,2,0,"spk-icon",16),C(),r(),_(10,"input",17),r(),a(11,"spk-select"),_(12,"input",18),I(13,yn,2,2,"spk-option",19,x),r()(),d(15,Pn,2,0,"p",16),a(16,"p"),g(17,5),a(18,"a",20),_(19,"spk-icon",21),r(),C(),r()(),a(20,"spk-select",22)(21,"label",15),M(22,6),r(),_(23,"input",23),I(24,Nn,2,2,"spk-option",19,x),r(),a(26,"app-toggle-card",24),W(27,25),g(28,7),a(29,"spk-menu")(30,"button",26),_(31,"spk-icon"),r(),W(32,27),I(33,An,3,1,"button",28,x),q(),r(),C(),q(),I(35,kn,1,7,"ng-container",null,x),r(),d(37,ao,15,2,"ng-template",null,1,at),a(39,"div",29)(40,"button",30),D("click",function(){return f(i),S(o.goBack())}),g(41,8),_(42,"spk-icon"),C(),r(),a(43,"button",31),g(44,9),_(45,"spk-icon"),C(),r()()()}t&2&&(c("formGroup",o.optionsForm),s(9),F(o.exceededVolumeSize()?9:-1),s(4),v(o.sizeOptions()),s(2),F(o.exceededVolumeSize()?15:-1),s(5),c("displayFn",o.retentionOptionDisplayFn()),s(4),v(o.retentionOptions()),s(2),c("disallowToggle",!0),s(7),v(o.nonSelectedOptions()),s(2),v(o.selectedOptions()),s(8),$e("loader",o.isSubmitting()))},dependencies:[Oe,Pe,se,Ge,Re,le,ye,Ne,Ae,be,lt,Ft,ue,Ve,pe,ce,Le,dt,me,je,We,Ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 40px;align-items:flex-end}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var co=["formRef"];function mo(e,n){if(e&1&&(a(0,"spk-option",38),m(1),r()),e&2){let t=n.$implicit;c("value",t.key),s(),Y(t.label)}}function uo(e,n){if(e&1){let t=k();a(0,"div",26)(1,"spk-form-field")(2,"label",27),M(3,8),r(),a(4,"input",28,1),D("focus",function(){f(t);let i=he(5);return S(i.showPicker())}),r(),a(6,"spk-icon",29),m(7,"clock"),r()(),a(8,"spk-form-field"),_(9,"label",30),a(10,"input",31,2),D("focus",function(){f(t);let i=he(11);return S(i.showPicker())}),r(),a(12,"spk-icon",29),m(13,"calendar"),r()()(),W(14,32),a(15,"div",33)(16,"spk-form-field")(17,"label",34),M(18,9),r(),_(19,"input",35),r(),a(20,"spk-select",36),_(21,"input",37),I(22,mo,2,2,"spk-option",38,x),r()(),a(24,"app-toggle-card",39),W(25,40),M(26,10),q(),a(27,"div",41)(28,"spk-toggle",21),g(29,11),_(30,"input",42),C(),r(),a(31,"spk-toggle",21),g(32,12),_(33,"input",43),C(),r(),a(34,"spk-toggle",21),g(35,13),_(36,"input",44),C(),r(),a(37,"spk-toggle",21),g(38,14),_(39,"input",45),C(),r(),a(40,"spk-toggle",21),g(41,15),_(42,"input",46),C(),r(),a(43,"spk-toggle",21),g(44,16),_(45,"input",47),C(),r(),a(46,"spk-toggle",21),g(47,17),_(48,"input",48),C(),r()()(),q()}if(e&2){let t=p();s(20),c("displayFn",t.displayFn),s(2),v(t.unitOptions),s(2),c("disallowToggle",!0)}}var ee=new ne,Jt=[{key:"s",label:$localize`Seconds`},{key:"m",label:$localize`Minutes`},{key:"h",label:$localize`Hours`},{key:"D",label:$localize`Days`},{key:"W",label:$localize`Weeks`},{key:"M",label:$localize`Months`},{key:"Y",label:$localize`Years`}],en=(e={autoRun:!0,nextTime:{time:"13:00",date:new Date().toISOString().split("T")[0]},runAgain:{repeatValue:1,repeatUnit:"D",allowedDays:{mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,sun:!1}}})=>ee.group({autoRun:ee.control(e.autoRun),nextTime:ee.group({time:ee.control(e.nextTime.time),date:ee.control(e.nextTime.date)}),runAgain:ee.group({repeatValue:ee.control(e.runAgain.repeatValue),repeatUnit:ee.control(e.runAgain.repeatUnit),allowedDays:ee.group({mon:ee.control(e.runAgain.allowedDays.mon),tue:ee.control(e.runAgain.allowedDays.tue),wed:ee.control(e.runAgain.allowedDays.wed),thu:ee.control(e.runAgain.allowedDays.thu),fri:ee.control(e.runAgain.allowedDays.fri),sat:ee.control(e.runAgain.allowedDays.sat),sun:ee.control(e.runAgain.allowedDays.sun)})})}),xt=class e{#e=$(_e);#t=$(ae);#o=$(De);formRef=fe.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=Jt;displayFn(n){let t=Jt.find(o=>o.key===n);return t?`${t.label}`:""}goBack(){this.#t.navigate(["source-data"],{relativeTo:this.#o.parent})}next(){this.#t.navigate(["options"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-schedule"]],viewQuery:function(t,o){t&1&&Se(o.formRef,co,5),t&2&&Te()},decls:18,vars:2,consts:()=>{let n;n=$localize`Schedule`;let t;t=$localize` Automatically run backups ${"\uFFFD#7\uFFFD\uFFFD/#7\uFFFD"}:TAG_INPUT:`;let o;o=$localize`If a date was missed, the job will run as soon as possible.`;let i;i=$localize`${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let l;l=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let u;u=$localize`Next time`;let h;h=$localize`Run again every`;let P;P=$localize`Allowed days`;let A;A=$localize` Monday ${"\uFFFD#30\uFFFD\uFFFD/#30\uFFFD"}:TAG_INPUT:`;let b;b=$localize` Tuesday ${"\uFFFD#33\uFFFD\uFFFD/#33\uFFFD"}:TAG_INPUT:`;let B;B=$localize` Wednesday ${"\uFFFD#36\uFFFD\uFFFD/#36\uFFFD"}:TAG_INPUT:`;let Z;Z=$localize` Thursday ${"\uFFFD#39\uFFFD\uFFFD/#39\uFFFD"}:TAG_INPUT:`;let U;U=$localize` Friday ${"\uFFFD#42\uFFFD\uFFFD/#42\uFFFD"}:TAG_INPUT:`;let J;J=$localize` Saturday ${"\uFFFD#45\uFFFD\uFFFD/#45\uFFFD"}:TAG_INPUT:`;let te;return te=$localize` Sunday ${"\uFFFD#48\uFFFD\uFFFD/#48\uFFFD"}:TAG_INPUT:`,[["formRef",""],["timeRef",""],["dateRef",""],n,t,o,i,l,u,h,P,A,b,B,Z,U,J,te,[3,"submit","formGroup"],[1,"title-30"],[1,"toggle-wrap"],[1,"raised","primary"],["type","checkbox","formControlName","autoRun"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["formGroupName","nextTime",1,"row-inputs"],["for","time"],["type","time","id","time","formControlName","time",3,"focus"],["suffix",""],["for","date"],["type","date","id","date","formControlName","date",3,"focus"],["formGroupName","runAgain"],[1,"row-inputs"],["for","repeatValue"],["type","number","id","repeatValue","formControlName","repeatValue"],[3,"displayFn"],["type","text","id","repeatUnit","formControlName","repeatUnit"],[3,"value"],["formGroupName","allowedDays",3,"disallowToggle"],["title",""],[1,"days-wrap"],["type","checkbox","formControlName","mon"],["type","checkbox","formControlName","tue"],["type","checkbox","formControlName","wed"],["type","checkbox","formControlName","thu"],["type","checkbox","formControlName","fri"],["type","checkbox","formControlName","sat"],["type","checkbox","formControlName","sun"]]},template:function(t,o){if(t&1){let i=k();a(0,"form",18,0),D("submit",function(){return f(i),S(o.next())}),a(2,"h3",19),M(3,3),r(),a(4,"div",20)(5,"spk-toggle",21),g(6,4),_(7,"input",22),C(),r(),a(8,"p"),M(9,5),r()(),d(10,uo,49,2),a(11,"div",23)(12,"button",24),D("click",function(){return f(i),S(o.goBack())}),g(13,6),_(14,"spk-icon"),C(),r(),a(15,"button",25),g(16,7),_(17,"spk-icon"),C(),r()()()}if(t&2){let i;c("formGroup",o.scheduleForm),s(10),F((i=o.scheduleFormSignal())!=null&&i.autoRun?10:-1)}},dependencies:[Oe,Pe,se,Ge,Re,le,ye,Ne,Ae,be,ce,ue,me,Le,pe,Ve,Ue],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.toggle-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.days-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};function _o(e,n){if(e&1&&(a(0,"spk-option",2),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),Y(t.key)}}function Fo(e,n){if(e&1&&(a(0,"spk-option",2),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),Y(t.key)}}function go(e,n){if(e&1){let t=k();a(0,"spk-select",0)(1,"input",5),D("ngModelChange",function(i){f(t);let l=p(2);return S(l.updateStateExpression(i))}),r(),I(2,Fo,2,2,"spk-option",2,x),r()}if(e&2){let t,o=p(2);c("hideClearButton",!0)("displayFn",o.displayFn),s(),c("ngModel",(t=o.pathState())==null?null:t.expression),s(),v(o.fileGroupOptions())}}function Co(e,n){if(e&1){let t=k();a(0,"spk-form-field")(1,"input",5),D("ngModelChange",function(i){f(t);let l=p(2);return S(l.updateStateExpression(i))}),r()()}if(e&2){let t,o=p(2);s(),c("ngModel",(t=o.pathState())==null?null:t.expression)}}function fo(e,n){if(e&1){let t=k();a(0,"spk-select",0)(1,"input",1),D("ngModelChange",function(i){f(t);let l=p();return S(l.updateStateType(i))}),r(),I(2,_o,2,2,"spk-option",2,x),r(),d(4,go,4,3,"spk-select",0)(5,Co,2,1,"spk-form-field"),a(6,"div",3),D("click",function(){f(t);let i=p();return S(i.removeFilter())}),a(7,"spk-icon",4),m(8,"x-circle"),r()()}if(e&2){let t,o,i=p();c("hideClearButton",!0)("displayFn",i.displayFn),s(),c("ngModel",(t=i.pathState())==null?null:t.type),s(),v(i.expressionOptions()),s(2),F(((o=i.pathState())==null?null:o.type)==="-FileGroup"||((o=i.pathState())==null?null:o.type)==="+FileGroup"?4:5)}}var tn=[{key:"Excludes folders where name contains",value:"-FolderNameIncludes"},{key:"Excludes folder",value:"-Folder"},{key:"Excludes files where name contains",value:"-FileNameIncludes"},{key:"Excludes file extension",value:"-Extension"},{key:"Excludes files where name matches regex",value:"-Regex"},{key:"Includes files where name matches regex",value:"+Regex"},{key:"Excludes file group",value:"-FileGroup"},{key:"Includes expression",value:"+Expression"},{key:"Excludes expression",value:"-Expression"}],So=[{key:"Applications",value:"Applications"},{key:"CacheFiles",value:"Cache Files"},{key:"TemporaryFiles",value:"Temporary Files"},{key:"OperatingSystem",value:"Operating System"},{key:"SystemFiles",value:"System Files"},{key:"DefaultExcludes",value:"Standard Excludes"}],St=class e{path=Rt.required();pathChange=yt();remove=yt();expressionOptions=O(tn);fileGroupOptions=O(So);pathState=O(null);typeState=K(()=>{let n=this.pathState();return n?n.type:null});pathEffect=st(()=>{let n=this.path(),t=n.slice(1),o=n.startsWith("-")?"-":"+";return t.startsWith("/")&&t.endsWith("/")?this.pathState.set({type:`${o}Folder`,path:t,expression:t}):t.startsWith("*")&&t.endsWith("*/")?this.pathState.set({type:`${o}FolderNameIncludes`,path:t,expression:t.slice(1,-2)}):t.startsWith("[.*")&&t.endsWith("[^\\/]*]")?this.pathState.set({type:`${o}FileNameIncludes`,path:t,expression:t.slice(3,-7)}):t.startsWith("{")&&t.endsWith("}")?this.pathState.set({type:`${o}FileGroup`,path:t,expression:t.slice(1,-1)}):t.startsWith("[")&&t.endsWith("]")?this.pathState.set({type:`${o}Regex`,path:t,expression:t.slice(1,-1)}):t.startsWith("*.")?this.pathState.set({type:`${o}Extension`,path:t,expression:t.slice(2)}):this.pathState.set({type:`${o}Expression`,path:t,expression:t})});updateStateType(n){this.pathState.update(t=>(t.type=n,t.path=this.#t(t),t)),this.#e()}updateStateExpression(n){this.pathState.update(t=>(t.expression=n,t.path=this.#t(t),t)),this.#e()}#e(){setTimeout(()=>this.pathChange.emit(this.pathState().path))}#t(n){let t=n.type.slice(0,1),o=n.type.slice(1);if(o==="Folder"){let i=n.expression.endsWith("/"),l=n.expression.startsWith("/");return i&&l?`${t}${n.expression}`:i?`${t}${n.expression}/`:l?`${t}/${n.expression}`:`${t}/${n.expression}/`}return o==="FolderNameIncludes"?`${t}*${n.expression}*/`:o==="FileNameIncludes"?`${t}[.*${n.expression}[^\\/]*]`:o==="FileGroup"?`${t}{${n.expression}}`:o==="Regex"?`${t}[${n.expression}]`:o==="Extension"?`${t}*.${n.expression}`:`${t}${n.expression}`}removeFilter(){this.remove.emit()}displayFn(n){let t=tn.find(o=>o.value===n);return t?t.key:""}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-filter"]],inputs:{path:[1,"path"]},outputs:{pathChange:"pathChange",remove:"remove"},decls:1,vars:1,consts:()=>{let n;return n=$localize`Select an option...`,[[3,"hideClearButton","displayFn"],["type","text","placeholder",n,3,"ngModelChange","ngModel"],[3,"value"],[1,"filter-removal",3,"click"],[1,"spk-primary"],["type","text",3,"ngModelChange","ngModel"]]},template:function(t,o){t&1&&d(0,fo,9,4),t&2&&F(o.pathState()?0:-1)},dependencies:[ut,se,le,Kt,ue,me,pe,ce],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:13.125rem 1fr 1.875rem;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] spk-select[_ngcontent-%COMP%]{--miw: initial}[_nghost-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var To=["formRef"];function ho(e,n){if(e&1){let t=k();a(0,"app-filter",42),D("pathChange",function(i){let l=f(t).$index,u=p(2);return S(u.patchPathAt(i,l))})("remove",function(){let i=f(t).$index,l=p(2);return S(l.removePathAt(i))}),r()}if(e&2){let t=n.$implicit;c("path",t)}}function Do(e,n){if(e&1&&I(0,ho,1,1,"app-filter",41,x),e&2){let t=p();v(t.pathArray())}}function Eo(e,n){if(e&1&&(a(0,"spk-option",45),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function yo(e,n){if(e&1&&(a(0,"div",40)(1,"spk-form-field"),_(2,"input",43),r(),a(3,"spk-select"),_(4,"input",44),I(5,Eo,2,2,"spk-option",45,x),r()()),e&2){let t=p();s(5),v(t.sizeOptions())}}var Me=new ne,Po=["Bytes","KB","MB","GB","TB","PB"],nn=(e={path:"",filters:[],excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>Me.group({path:Me.control(e.path),excludes:Me.group({hidden:Me.control(e.excludes.hidden),system:Me.control(e.excludes.system),temporary:Me.control(e.excludes.temporary),filesLargerThan:Me.group({size:Me.control(null),unit:Me.control(null)})})}),It=class e{#e=$(_e);#t=$(ae);#o=$(De);formRef=fe.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;newPathCtrl=new ct("");filesLargerThan=K(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=O(Po);pathSignal=H(this.sourceDataForm.controls.path.valueChanges);pathArray=K(()=>this.pathSignal()?.split("\0").filter(n=>n.startsWith("-")||n.startsWith("+"))??[]);addFilter(n="-*"){let t=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${t}\0${n}`)}patchPathAt(n,t){let i=this.sourceDataForm.controls.path.value.split("\0").filter(u=>!u.startsWith("-")&&!u.startsWith("+")).join("\0"),l=this.pathArray().map((u,h)=>h===t?`${n}`:`${u}`).join("\0");this.sourceDataForm.controls.path.setValue(`${i}\0${l}`)}removePathAt(n){let o=this.sourceDataForm.controls.path.value.split("\0").filter(l=>!l.startsWith("-")&&!l.startsWith("+")).join("\0"),i=this.pathArray().filter((l,u)=>u!==n).join("\0");this.sourceDataForm.controls.path.setValue(`${o}\0${i}`)}getPath(){return this.sourceDataForm.value.path??null}toggleFilesLargerThan(){this.sourceDataForm.controls.excludes.value.filesLargerThan?.size===null?this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:50,unit:"MB"}):this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:null,unit:null})}addNewPath(){let n=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(`${n}\0${this.newPathCtrl.value}`),this.newPathCtrl.setValue("")}goBack(){this.#t.navigate(["destination"],{relativeTo:this.#o.parent})}next(){this.#t.navigate(["schedule"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-source-data"]],viewQuery:function(t,o){t&1&&Se(o.formRef,To,5),t&2&&Te()},decls:55,vars:12,consts:()=>{let n;n=$localize`Path`;let t;t=$localize`Add a direct path`;let o;o=$localize`Hidden files`;let i;i=$localize`System files`;let l;l=$localize`Temporary files`;let u;u=$localize`Source Data`;let h;h=$localize`Folder path`;let P;P=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let A;A=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let b;b=$localize`Source Data`;let B;B=$localize`Add Path`;let Z;Z=$localize`Add a path directly from your machine.`;let U;U=$localize`Filters`;let J;J=$localize`Customize your filters.`;let te;te=$localize`Add filter`;let E;E=$localize`Exclude`;let y;y=$localize`Choose if there’s any files you want to exclude.`;let z;z=$localize` Hidden files ${"\uFFFD#45\uFFFD\uFFFD/#45\uFFFD"}:TAG_INPUT:`;let w;w=$localize` System files ${"\uFFFD#48\uFFFD\uFFFD/#48\uFFFD"}:TAG_INPUT:`;let ie;ie=$localize` Temporary files ${"\uFFFD#51\uFFFD\uFFFD/#51\uFFFD"}:TAG_INPUT:`;let ge;ge=$localize` Files larger than `;let de;return de=$localize`Select an option...`,[["formRef",""],u,h,P,A,b,B,Z,U,J,te,E,y,z,w,ie,ge,[3,"submit","formGroup"],[1,"left"],[1,"title-30"],[1,"fill",3,"multiSelect","startingPath","showFiles"],["for","path"],["type","text","id","path","tabindex","4","placeholder",n,"formControlName","path"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[1,"right"],[3,"disallowToggle"],["title",""],["description",""],[1,"row-inputs"],["type","text","placeholder",t,3,"formControl"],["spk-button","","type","button",1,"raised","primary",3,"click"],["type","button","spk-button","","action","",3,"click"],["formGroupName","excludes",3,"disallowToggle"],[1,"raised","primary"],["type","checkbox","placeholder",o,"formControlName","hidden"],["type","checkbox","placeholder",i,"formControlName","system"],["type","checkbox","placeholder",l,"formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[3,"path"],[3,"pathChange","remove","path"],["type","number","formControlName","size"],["type","text","formControlName","unit","placeholder",de],[3,"value"]]},template:function(t,o){if(t&1){let i=k();a(0,"form",17,0),D("submit",function(){return f(i),S(o.next())}),a(2,"div",18)(3,"h3",19),M(4,1),r(),a(5,"app-file-tree",20)(6,"label",21),M(7,2),r(),_(8,"input",22),r(),a(9,"div",23)(10,"button",24),D("click",function(){return f(i),S(o.goBack())}),g(11,3),_(12,"spk-icon"),C(),r(),a(13,"button",25),g(14,4),_(15,"spk-icon"),C(),r()()(),a(16,"div",26)(17,"h3",19),M(18,5),r(),a(19,"app-toggle-card",27),W(20,28),M(21,6),q(),a(22,"p",29),M(23,7),r(),a(24,"div",30)(25,"spk-form-field"),_(26,"input",31),r(),a(27,"button",32),D("click",function(){return f(i),S(o.addNewPath())}),a(28,"spk-icon"),m(29,"plus"),r()()()(),a(30,"app-toggle-card",27),W(31,28),M(32,8),q(),a(33,"p",29),M(34,9),r(),a(35,"button",33),D("click",function(){return f(i),S(o.addFilter())}),M(36,10),r(),d(37,Do,2,0),r(),a(38,"app-toggle-card",34),W(39,28),M(40,11),q(),a(41,"p",29),M(42,12),r(),a(43,"spk-toggle",35),g(44,13),_(45,"input",36),C(),r(),a(46,"spk-toggle",35),g(47,14),_(48,"input",37),C(),r(),a(49,"spk-toggle",35),g(50,15),_(51,"input",38),C(),r(),a(52,"spk-toggle",39),D("click",function(){return f(i),S(o.toggleFilesLargerThan())}),M(53,16),r(),d(54,yo,7,0,"div",40),r()()()}if(t&2){let i;c("formGroup",o.sourceDataForm),s(5),c("multiSelect",!0)("startingPath",o.getPath())("showFiles",!0),s(14),c("disallowToggle",!0),s(7),c("formControl",o.newPathCtrl),s(4),c("disallowToggle",!0),s(7),F((i=o.pathSignal())!=null&&i.length?37:-1),s(),c("disallowToggle",!0),s(14),$e("active",o.filesLargerThan()),s(2),F(o.filesLargerThan()?54:-1)}},dependencies:[ut,Pe,se,Ge,Re,le,ye,Oe,mt,Ne,Ae,be,ce,me,pe,Ve,ue,Le,We,Ue,St],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1 0;overflow:hidden}form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex:1 0;overflow:hidden}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:1.5rem}.left[_ngcontent-%COMP%]{padding:2.5rem;overflow:hidden;border-right:1px solid var(--base-level-40)}.right[_ngcontent-%COMP%]{padding:2.5rem 1.5rem;overflow:auto}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}"],changeDetection:0})};var Fe=new ne,_e=class e{#e=$(ae);#t=$(pt);#o=$(He);#i=$(gt);generalForm=Qt();sourceDataForm=nn();scheduleForm=en();destinationForm=on();optionsForm=Zt();isDraft=O(!1);backupId=O(null);isSubmitting=O(!1);finishedLoading=O(!1);backupDefaults=O(null);isNew=K(()=>this.backupId()==="new");selectedOptions=O([]);selectedAdvancedFormPair=O([]);destinationFormPair=O({oauthField:null,custom:[],dynamic:[],advanced:[]});notSelectedAdvancedFormPair=K(()=>{let n=this.destinationFormPair()?.advanced??[],t=this.selectedAdvancedFormPair()??[];return n.filter(o=>t.findIndex(i=>i.name===o.name)===-1)});selectedHttpOptions=O([]);notSelectedHttpOptions=K(()=>{let n=this.httpOptions(),t=this.selectedHttpOptions()??[];return n.filter(o=>t.findIndex(i=>i.name===o.name)===-1)});sourceDataFormSignal=H(this.sourceDataForm.valueChanges);destinationFormSignal=H(this.destinationForm.valueChanges);generalFormSignal=H(this.generalForm.valueChanges);encryptionFieldSignal=H(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=H(this.scheduleForm.valueChanges);destinationOptions=K(()=>this.#t.backendModules()??[]);httpOptions=K(()=>this.#t.systemInfo()?.GenericModules?.find(n=>n.Key==="http-options")?.Options?.map(this.#n)??[]);advancedOptions=K(()=>this.#t.systemInfo()?.Options?.map(this.#n)??[]);#n(n){return{name:n.Name,type:n.Type,shortDescription:n.ShortDescription??void 0,longDescription:n.LongDescription??void 0,options:n.ValidValues}}encryptionOptions=K(()=>{let n=this.#t.systemInfo()?.EncryptionModules??[];return[kt,...n]});nonSelectedOptions=K(()=>this.advancedOptions().sort((n,t)=>n?.name&&t?.name?n?.name.localeCompare(t?.name):0).filter(n=>this.selectedOptions()?.findIndex(t=>t.name===n.name)===-1));addAdvancedFormPairByName(n,t,o){let i=this.notSelectedAdvancedFormPair().find(l=>l.name===n);i&&this.addAdvancedFormPair(i,t,o)}addHttpOptionByName(n,t,o){let i=this.notSelectedHttpOptions().find(l=>l.name===n);i&&this.addHttpOption(i,t,o)}addAdvancedFormPair(n,t,o){let i=this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced,l=o??n.defaultValue;this.createFormField(i,n,l),this.selectedAdvancedFormPair.set([...this.selectedAdvancedFormPair(),n])}addHttpOption(n,t,o){let i=this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced,l=o??n.defaultValue;this.createFormField(i,n,l),this.selectedHttpOptions.set([...this.selectedHttpOptions(),n])}removeAdvancedFormPair(n,t){this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced.removeControl(n.name),this.selectedAdvancedFormPair().findIndex(i=>i.name===n.name)!==-1?this.selectedAdvancedFormPair.update(i=>(i=i.filter(l=>l.name!==n.name),i)):this.selectedHttpOptions.update(i=>(i=i.filter(l=>l.name!==n.name),i))}removeHttpOption(n,t){this.destinationForm.controls.destinations.controls.at(t)?.controls.advanced.removeControl(n.name),this.selectedHttpOptions.update(o=>(o=o.filter(i=>i.name!==n.name),o))}submit(){this.isSubmitting.set(!0);let n=this.#l(),t=this.backupId();t==="new"||!t||this.isDraft()?this.#o.postApiV1Backups({requestBody:n}).pipe(Ze(()=>this.isSubmitting.set(!1))).subscribe({next:o=>{console.log("submitted res",o),this.exit()},error:o=>{console.error("submitted error",o)}}):this.#o.putApiV1BackupById({id:t,requestBody:n}).pipe(Ze(()=>this.isSubmitting.set(!1))).subscribe({next:o=>{console.log("submitted res",o),this.exit()},error:o=>{console.error("submitted error",o)}})}exit(){this.#c(),this.#e.navigate(["/"])}updateFieldsFromTargetUrl(n){this.#r(),setTimeout(()=>{this.#s(n)})}#r(){this.destinationFormPair.set({oauthField:null,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]),this.selectedHttpOptions.set([]),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset()}mapSourceDataToForm(n){let t=n.Sources??"",o=n.Filters?.map(A=>`${A.Include?"":"-"}${A.Expression}`)??[],i=n.Settings?.find(A=>A.Name==="--exclude-files-attributes")?.Value??"",l=n.Settings?.find(A=>A.Name==="--skip-files-larger-than")??null,u=l?.Value.replace(/[0-9]/g,"")??null,h=l?.Value.replace(/[^0-9]/g,"")??null,P={path:[...t,...o].join("\0"),excludes:{hiddenFiles:i.includes("hidden"),systemFiles:i.includes("system"),tempFiles:i.includes("temporary"),filesLargerThan:u&&h?{size:parseInt(h),unit:u.toUpperCase()}:null}};this.sourceDataForm.patchValue(P)}mapDestinationToForm(n){let t=n.TargetURL?At(n.TargetURL):null;t&&this.addDestinationFormGroup(t.destinationType,{custom:t.custom,dynamic:t.dynamic,advanced:t.advanced},!0)}#s(n){let t=At(n);t&&this.addDestinationFormGroup(t.destinationType,{custom:t.custom,dynamic:t.dynamic,advanced:t.advanced},!0)}mapGeneralToForm(n){let t=n.Settings?.find(l=>l.Name==="encryption-module"),o=t?.Value&&t.Value.length?t.Value:"",i={name:n.Name??"",description:n.Description??""};o&&o!==""&&(i.encryption=o),this.generalForm.patchValue(i)}mapScheduleToForm(n){if(!n){this.scheduleForm.patchValue({autoRun:!0});return}let t=this.#i.fromString(n.Repeat)??null,i={nextTime:this.#p(n.Time),runAgain:{repeatValue:t?.value??1,repeatUnit:t?.unit??"D",allowedDays:{mon:n.AllowedDays?.includes("mon")??!1,tue:n.AllowedDays?.includes("tue")??!1,wed:n.AllowedDays?.includes("wed")??!1,thu:n.AllowedDays?.includes("thu")??!1,fri:n.AllowedDays?.includes("fri")??!1,sat:n.AllowedDays?.includes("sat")??!1,sun:n.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(i)}mapOptionsToForms(n){let t=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"],o=this.advancedOptions();n.Settings?.forEach(i=>{if(i.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(i.Value??"");if(!(i.Name&&t.includes(i.Name))){if(i.Name==="dblock-size"){let l=i.Value?.replace(/[^0-9]/g,""),u=i.Value?.replace(/[0-9]/g,"");return this.optionsForm.controls.remoteVolumeSize.setValue({size:l?parseInt(l):null,unit:u?u.toUpperCase():null})}if(i.Name&&i.Value){let l=o.find(u=>u.name===i.Name);if(!l)return;this.addOptionToFormGroup(l,i.Value)}}})}getCurrentTargetUrl(){return this.#a(this.destinationForm.controls.destinations)}#l(){let n=this.generalForm.value,t=this.optionsForm.value,o=this.scheduleForm.value,i=this.sourceDataForm.value,u=this.destinationForm.value.destinations?.length?this.#a(this.destinationForm.controls.destinations):[],h=null;o.runAgain?.repeatUnit&&o.runAgain?.repeatValue&&(h=this.#i.toString(o.runAgain.repeatValue,o.runAgain.repeatUnit));let P=o.runAgain?.allowedDays?Object.entries(o.runAgain?.allowedDays).filter(([U,J])=>J).map(([U,J])=>U):[],A=i.path?.split("\0")??[],b=this.mapFormsToSettings(),B=Object.entries(i.excludes??{}).filter(([U,J])=>J&&U!=="filesLargerThan").map(([U])=>U),Z=i.excludes?.filesLargerThan;return B.length&&b.push({Name:"--exclude-files-attributes",Value:B.join(",")}),Z&&Z.size!==null&&Z.unit!==null&&b.push({Name:"--skip-files-larger-than",Value:`${Z.size}${Z.unit}`}),{Backup:{Name:n.name,Description:n.description,TargetURL:u[0]??null,Sources:A.filter(U=>!U.startsWith("-")),Settings:b,Filters:A.filter(U=>U.startsWith("-")).map((U,J)=>({Order:J,Include:!1,Expression:U.slice(1)}))},Schedule:o.autoRun?{Repeat:h,Time:o.nextTime?.date?new Date(`${o.nextTime.date}T${o.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:P}:null}}mapFormsToSettings(){let n=this.advancedOptions(),t=this.optionsForm.value,o=this.generalForm.value,i=[{Name:"--no-encryption",Value:"True"}];o.encryption!==""&&(i=[{Name:"encryption-module",Value:o.encryption??null},{Name:"passphrase",Value:o.password??null}]);let l=t.remoteVolumeSize?.size?{Name:"dblock-size",Value:`${t.remoteVolumeSize.size}${t.remoteVolumeSize.unit.toLowerCase()}`}:{Name:"dblock-size",Value:"50mb"},u=Object.entries(t.advancedOptions??{}).filter(([h,P])=>h&&P).map(([h,P])=>{let A=n.find(b=>b.name===h);return A?.type==="Size"?{Name:h,Value:`${P.size}${P.unit.toLowerCase()}`}:A?.type==="Integer"?{Name:h,Value:P.toString()}:A?.type==="Boolean"?{Name:h,Value:P.toString()}:{Name:h,Value:P}});return[...i,l,...u]}#a(n){return n.controls.map(t=>Ct(t.value))}#p(n){if(!n||n?.indexOf("T")===-1)return{time:n??"13:00"};let t=new Date(n),o={time:`${(""+t.getHours()).padStart(2,"0")}:${(""+t.getMinutes()).padStart(2,"0")}`};return n.indexOf("T")!==-1&&(o.date=t.toISOString().split("T")[0]),o}removeOptionFromFormGroup(n){let t=n.name;t&&(this.optionsForm.controls.advancedOptions.removeControl(t),this.selectedOptions.update(o=>(o=o.filter(i=>i.name!==t),o)))}addOptionToFormGroup(n,t){let o=this.optionsForm.controls.advancedOptions;this.createFormField(o,n,t??n.defaultValue),this.selectedOptions.update(i=>(i.push(n),i))}addFreeTextOption(n,t,o){let i=this.optionsForm.controls.advancedOptions,l=N({name:n,type:"String",defaultValue:t},o);this.createFormField(i,l,t),this.selectedOptions.update(u=>(u.push(l),u))}createFormField(n,t,o){if(t.type==="String"||t.type==="FileTree"||t.type==="FolderTree"||t.type==="Password"||t.type==="Enumeration"||t.type==="NonValidatedSelectableString"||t.type==="Path"){n.addControl(t.name,Fe.control(o));return}if(t.type==="Size"){let i=o.replace(/[0-9]/g,""),l=o.replace(/[^0-9]/g,"");n.addControl(t.name,Fe.group({size:Fe.control(l?parseInt(l):50),unit:Fe.control(i?i.toUpperCase():"MB")}));return}if(t.type==="Integer"){n.addControl(t.name,Fe.control(o?parseInt(o):0));return}if(t.type==="Boolean"){n.addControl(t.name,Fe.control(o==="true"||o==="True"));return}if(t.type==="Flags"){n.addControl(t.name,Fe.control(o??""));return}if(t.type==="Timespan"){n.addControl(t.name,Fe.control(o,[Ee.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]));return}}addDestinationFormGroup(n,t,o=!1){let i=ve.find(E=>E.customKey===n||E.key===n),l=i?.key,u=this.destinationOptions().find(E=>E.Key===l),h=this.httpOptions();if(!u||!u.Options)return;let P=i&&i.oauthField?i.oauthField:null,A=i&&i.customFields?i.customFields:{},b=i&&i.dynamicFields?i.dynamicFields:[],B=i&&i.advancedFields?i.advancedFields:[],Z=i&&i.ignoredAdvancedFields?i.ignoredAdvancedFields:[];this.destinationFormPair.set({oauthField:P,custom:[],dynamic:[],advanced:[]});let U=Fe.group({}),J=Fe.group({}),te=Fe.group({});A&&Object.entries(A).forEach(([E,y],z)=>{let ge=y,{formElement:w}=ge,ie=Mt(ge,["formElement"]);U.addControl(E,w(t?.custom[E])),this.destinationFormPair.update(de=>(de.custom.push(N({order:900+z},ie)),de))});for(let E=0;E<u.Options.length;E++){let y=u.Options[E];if(y.Deprecated)continue;let z=b.find(w=>w===y.Name||w.name===y.Name);if(z){let w=z&&typeof z!="string",ie=w?z?.defaultValue??y.DefaultValue:y.DefaultValue,ge={name:y.Name,type:y.Type,shortDescription:y.ShortDescription??void 0,longDescription:y.LongDescription??void 0,options:y.ValidValues,order:900+E},de=w?N(N({},ge),z):ge,rt=t?.dynamic[y.Name]??ie??y.DefaultValue;this.createFormField(J,de,rt),this.destinationFormPair.update(Xe=>(Xe.dynamic.push(de),Xe))}else{if(Z.find(Ce=>Ce===y.Name))continue;let ie=B.find(Ce=>Ce===y.Name||Ce.name===y.Name),ge=ie&&typeof ie!="string",de=t?.advanced[y.Name],L=de??y.DefaultValue,rt={name:y.Name,type:y.Type,shortDescription:y.ShortDescription??void 0,longDescription:y.LongDescription??void 0,options:y.ValidValues,defaultValue:L,order:900+E},Xe=ge?N(N({},rt),ie):rt;o&&de&&(this.createFormField(te,Xe,L),this.selectedAdvancedFormPair.update(Ce=>(Ce.push(Xe),Ce))),this.destinationFormPair.update(Ce=>(Ce.advanced.push(Xe),Ce))}}for(let E=0;E<h.length;E++){let y=h[E],z=t?.advanced[y.name],w=z??y.defaultValue;o&&z&&(this.createFormField(te,y,w),this.selectedHttpOptions.update(ie=>(ie.push(y),ie)))}this.destinationFormPair.update(E=>({oauthField:E.oauthField,custom:E.custom.sort((y,z)=>y.order-z.order),dynamic:E.dynamic.sort((y,z)=>y.order-z.order),advanced:E.advanced.sort((y,z)=>y.order-z.order)})),this.destinationForm.controls.destinations.push(rn({key:i?.customKey??n,customGroup:U,dynamicGroup:J,advancedGroup:te}))}#c(){this.generalForm.reset(),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.optionsForm.reset()}static \u0275fac=function(t){return new(t||e)};static \u0275prov=we({token:e,factory:e.\u0275fac,providedIn:"root"})};var No=["formRef"],Ao=(e,n,t,o)=>({index:e,formView:n,formGroupName:"custom",destinationType:t,oauthField:o}),ht=e=>({$implicit:e}),Oo=(e,n,t,o)=>({index:e,formView:n,formGroupName:"dynamic",destinationType:t,oauthField:o}),ko=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",destinationType:t,oauthField:o}),$o=(e,n,t,o)=>({index:e,formView:n,formGroupName:"advanced",asHttpOptions:!0,destinationType:t,oauthField:o}),xo=()=>({maxWidth:"700px",width:"100%"});function Io(e,n){e&1&&(g(0,2,2),_(1,"spk-icon"),C())}function vo(e,n){e&1&&M(0,2,3)}function Mo(e,n){if(e&1){let t=k();g(0,2,1),a(1,"button",18),D("click",function(){f(t);let i=p();return S(i.testDestination())}),d(2,Io,2,0)(3,vo,1,0),r(),C()}if(e&2){let t=p();s(),$e("success",t.successfulTest()),s(),F(t.successfulTest()?2:3)}}function wo(e,n){if(e&1){let t=k();a(0,"p",24),D("click",function(){f(t);let i=p();return S(i.removeDestinationFormGroup(i.destinationCount()-1))}),g(1,5),_(2,"span",25),C(),r()}}function Ro(e,n){if(e&1){let t=k();a(0,"div",30),D("click",function(){let i=f(t).$implicit,l=p(2);return S(l.addDestinationFormGroup(i.key))}),a(1,"h3"),m(2),r(),a(3,"p"),m(4),r()()}if(e&2){let t=n.$implicit;s(2),Y(t.displayName),s(2),Y(t.description)}}function Go(e,n){if(e&1){let t=k();a(0,"button",31),D("click",function(){let i=f(t).$implicit,l=p(2);return S(l.addDestinationFormGroup(i.key))}),m(1),r()}if(e&2){let t=n.$implicit;s(),V(" ",t.displayName," ")}}function bo(e,n){if(e&1&&(a(0,"div",26),I(1,Ro,5,2,"div",27,x),r(),a(3,"spk-menu")(4,"button",28),M(5,6),r(),W(6,17),I(7,Go,2,1,"button",29,x),q(),r()),e&2){let t=p();s(),v(t.destinationTypeOptionsFocused()),s(6),v(t.destinationTypeOptionsNotFocused())}}function Vo(e,n){e&1&&Ke(0)}function Lo(e,n){if(e&1&&d(0,Vo,1,0,"ng-container",36),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",ze(7,ht,tt(2,Ao,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Uo(e,n){e&1&&Ke(0)}function Bo(e,n){if(e&1&&d(0,Uo,1,0,"ng-container",36),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",ze(7,ht,tt(2,Oo,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Ko(e,n){if(e&1){let t=k();g(0,7,1),a(1,"button",31),D("click",function(){let i=f(t).$implicit,l=p(2);return S(l.addAdvancedFormPair(i,0))}),r(),C()}if(e&2){let t=n.$implicit;s(),Je(t.name),et(0)}}function zo(e,n){e&1&&Ke(0)}function Xo(e,n){if(e&1&&d(0,zo,1,0,"ng-container",36),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",ze(7,ht,tt(2,ko,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function Ho(e,n){if(e&1){let t=k();g(0,8,1),a(1,"button",31),D("click",function(){let i=f(t).$implicit,l=p(2);return S(l.addHttpOption(i,0))}),r(),C()}if(e&2){let t=n.$implicit;s(),Je(t.name),et(0)}}function jo(e,n){e&1&&Ke(0)}function Wo(e,n){if(e&1&&d(0,jo,1,0,"ng-container",36),e&2){let t,o=n.$implicit,i=n.$index;p();let l=he(29),u=p();c("ngTemplateOutlet",l)("ngTemplateOutletContext",ze(7,ht,tt(2,$o,i,o,(t=u.destinationFormSignal())==null||t.destinations==null||t.destinations[0]==null?null:t.destinations[0].destinationType,u.destinationFormPair().oauthField)))}}function qo(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Qo(e,n){if(e&1&&(a(0,"app-file-tree",39)(1,"label",46),m(2),d(3,qo,3,1,"spk-tooltip",47),r(),_(4,"input",48),r()),e&2){let t,o=p().$implicit,i=p(2);c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name))("accepts",o.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name)}}function Yo(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Zo(e,n){if(e&1&&(a(0,"app-file-tree",40)(1,"label",46),m(2),d(3,Yo,3,1,"spk-tooltip",47),r(),_(4,"input",48),r()),e&2){let t,o=p().$implicit,i=p(2);c("startingPath",i.getFormFieldValue(0,o.formGroupName,o.formView.name)),s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name)}}function Jo(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ei(e,n){e&1&&(a(0,"spk-icon",50),m(1,"link"),r())}function ti(e,n){e&1&&(a(0,"spk-icon",50),m(1,"envelope"),r())}function ni(e,n){e&1&&(a(0,"spk-icon",50),m(1,"textbox"),r())}function oi(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",46),m(2),d(3,Jo,3,1,"spk-tooltip",47),r(),_(4,"input",49),d(5,ei,2,0,"spk-icon",50)(6,ti,2,0,"spk-icon",50)(7,ni,2,0,"spk-icon",50),r()),e&2){let t,o=p().$implicit;s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name),c("type",o.formView.type==="Email"?"email":"text"),s(),F(o.formView.type==="Path"?5:o.formView.type==="Email"?6:7)}}function ii(e,n){if(e&1){let t=k();a(0,"span",54),D("click",function(){f(t);let i=p(2).$implicit,l=p(2);return S(l.oauthStartTokenCreation(i.destinationType))}),m(1,"AuthID"),r()}}function ri(e,n){e&1&&(a(0,"spk-icon",50),m(1,"password"),r())}function ai(e,n){if(e&1){let t=k();a(0,"spk-icon",55),D("click",function(){f(t);let i=p(2).$implicit;return S(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye "),r()}}function si(e,n){if(e&1){let t=k();a(0,"spk-icon",55),D("click",function(){f(t);let i=p(2).$implicit;return S(i.formView.showPassword=!i.formView.showPassword)}),m(1," eye-slash "),r()}}function li(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",46),m(2),r(),_(3,"input",51),d(4,ii,2,0,"span",52)(5,ri,2,0,"spk-icon",50)(6,ai,2,0,"spk-icon",53)(7,si,2,0,"spk-icon",53),r()),e&2){let t,o=p().$implicit;s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name),c("type",o.formView.showPassword?"text":"password"),s(),F(o.oauthField===o.formView.name?4:5),s(2),F(o.formView.showPassword?6:7)}}function pi(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ci(e,n){if(e&1&&(a(0,"spk-option",56),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),Pt(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function mi(e,n){if(e&1&&I(0,ci,2,3,"spk-option",56,x),e&2){let t=p(2).$implicit,o=p(2);v(t.formView.loadOptions(o.injector)())}}function ui(e,n){if(e&1&&(a(0,"spk-option",56),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function _i(e,n){if(e&1&&I(0,ui,2,2,"spk-option",56,x),e&2){let t=p(2).$implicit;v(t.formView.options)}}function di(e,n){if(e&1&&(a(0,"spk-select",41)(1,"label",46),m(2),d(3,pi,3,1,"spk-tooltip",47),r(),_(4,"input",48),d(5,mi,2,0)(6,_i,2,0),r()),e&2){let t,o=p().$implicit;c("hideClearButton",!0),s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name),s(),F(o.formView.loadOptions?5:-1),s(),F(o.formView.options?6:-1)}}function Fi(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function gi(e,n){if(e&1&&(a(0,"spk-option",56),m(1),r()),e&2){let t=n.$implicit;c("value",t.value),s(),Pt(" ",t.key," ",t.value?"("+t.value+")":""," ")}}function Ci(e,n){if(e&1&&I(0,gi,2,3,"spk-option",56,x),e&2){let t=p(2).$implicit,o=p(2);v(t.formView.loadOptions(o.injector)())}}function fi(e,n){if(e&1&&(a(0,"spk-option",56),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function Si(e,n){if(e&1&&I(0,fi,2,2,"spk-option",56,x),e&2){let t=p(2).$implicit;v(t.formView.options)}}function Ti(e,n){if(e&1&&(a(0,"spk-select",42)(1,"label",46),m(2),d(3,Fi,3,1,"spk-tooltip",47),r(),_(4,"input",57),d(5,Ci,2,0)(6,Si,2,0),r()),e&2){let t,o=p().$implicit;c("isFreeText",!0),s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name),s(),F(o.formView.loadOptions?5:-1),s(),F(o.formView.options?6:-1)}}function hi(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Di(e,n){if(e&1&&(a(0,"spk-option",56),m(1),r()),e&2){let t=n.$implicit;c("value",t),s(),Y(t)}}function Ei(e,n){if(e&1&&(a(0,"div",43)(1,"label",46),m(2),d(3,hi,3,1,"spk-tooltip",47),r(),a(4,"div",58)(5,"spk-form-field"),_(6,"input",59),a(7,"spk-icon",50),m(8,"resize"),r()(),a(9,"spk-select"),_(10,"label")(11,"input",60),I(12,Di,2,2,"spk-option",56,x),r()()()),e&2){let t,o=p().$implicit,i=p(2);c("formGroupName",o.formView.name),s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(3),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(6),v(i.sizeOptions())}}function yi(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Pi(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",46),m(2),d(3,yi,3,1,"spk-tooltip",47),r(),_(4,"input",61),a(5,"spk-icon",50),m(6,"numpad"),r()()),e&2){let t,o=p().$implicit;s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name)}}function Ni(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Ai(e,n){if(e&1&&(a(0,"spk-toggle",44)(1,"label",46),m(2),d(3,Ni,3,1,"spk-tooltip",47),r(),_(4,"input",62),r()),e&2){let t,o=p().$implicit;s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name)}}function Oi(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function ki(e,n){e&1&&(a(0,"spk-option",64),m(1,"None"),r()),e&2&&c("value","None")}function $i(e,n){if(e&1&&(a(0,"spk-option",56),m(1),_(2,"spk-checkbox",65),r()),e&2){let t=p().$implicit;c("value",t),s(),V(" ",t," ")}}function xi(e,n){if(e&1&&d(0,ki,2,1,"spk-option",64)(1,$i,3,2,"spk-option",56),e&2){let t=n.$implicit;F(t==="None"?0:1)}}function Ii(e,n){if(e&1&&(a(0,"spk-select",45)(1,"label",46),m(2),d(3,Oi,3,1,"spk-tooltip",47),r(),_(4,"input",63),I(5,xi,2,1,null,null,x),r()),e&2){let t,o=p().$implicit;c("selectMultiple",!0),s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),j("formControlName",o.formView.name),s(),v(o.formView.options)}}function vi(e,n){if(e&1&&(a(0,"spk-tooltip",47)(1,"spk-icon"),m(2,"question"),r()()),e&2){let t=p(2).$implicit;c("message",t.formView.longDescription)}}function Mi(e,n){if(e&1&&(a(0,"spk-form-field")(1,"label",46),m(2),d(3,vi,3,1,"spk-tooltip",47),r(),_(4,"input",48),r()),e&2){let t,o=p().$implicit;s(),X("for","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),s(),V(" ",(t=o.formView.shortDescription)!==null&&t!==void 0?t:o.formView.name," "),s(),F(o.formView.longDescription?3:-1),s(),X("id","destination-",o.formGroupName,"-",o.index,"-",o.asHttpOptions?"http":"other",""),j("formControlName",o.formView.name)}}function wi(e,n){if(e&1){let t=k();a(0,"button",66),D("click",function(){f(t);let i=p().$implicit,l=p(2);return S(l.removeFormView(i.formView,0))}),a(1,"spk-icon"),m(2,"x-circle"),r()()}}function Ri(e,n){if(e&1&&(a(0,"div",37),W(1,38),d(2,Qo,5,16,"app-file-tree",39)(3,Zo,5,12,"app-file-tree",40)(4,oi,8,13,"spk-form-field")(5,li,8,13,"spk-form-field")(6,di,7,14,"spk-select",41)(7,Ti,7,14,"spk-select",42)(8,Ei,14,11,"div",43)(9,Pi,7,11,"spk-form-field")(10,Ai,5,11,"spk-toggle",44)(11,Ii,7,8,"spk-select",45)(12,Mi,5,11,"spk-form-field"),q(),d(13,wi,3,0,"button",28),r()),e&2){let t=n.$implicit;$e("single-field",t.formGroupName!=="advanced"),s(),c("formGroupName",t.formGroupName),s(),F(t.formView.type==="FileTree"?2:t.formView.type==="FolderTree"?3:t.formView.type==="String"||t.formView.type==="Path"||t.formView.type==="Email"?4:t.formView.type==="Password"?5:t.formView.type==="Enumeration"?6:t.formView.type==="NonValidatedSelectableString"?7:t.formView.type==="Size"?8:t.formView.type==="Integer"?9:t.formView.type==="Boolean"?10:t.formView.type==="Flags"?11:t.formView.type==="Timespan"?12:-1),s(11),F(t.formGroupName==="advanced"?13:-1)}}function Gi(e,n){if(e&1&&(W(0,19)(1,32),I(2,Lo,1,9,"ng-container",null,x),I(4,Bo,1,9,"ng-container",null,x),a(6,"app-toggle-card",33),W(7,34),g(8,7),a(9,"spk-menu")(10,"button",35),_(11,"spk-icon"),r(),W(12,17),I(13,Ko,2,1,"button",29,x),q(),r(),C(),q(),I(15,Xo,1,9,"ng-container",null,x),r(),a(17,"app-toggle-card",33),W(18,34),g(19,8),a(20,"spk-menu")(21,"button",35),_(22,"spk-icon"),r(),W(23,17),I(24,Ho,2,1,"button",29,x),q(),r(),C(),q(),I(26,Wo,1,9,"ng-container",null,x),r(),d(28,Ri,14,5,"ng-template",null,1,at),q()()),e&2){let t=p();s(2),v(t.destinationFormPair().custom),s(2),v(t.destinationFormPair().dynamic),s(2),c("disallowToggle",!0),s(4),c("disabled",t.notSelectedAdvancedFormPair().length===0),s(3),v(t.notSelectedAdvancedFormPair()),s(2),v(t.selectedAdvancedFormPair()),s(2),c("disallowToggle",!0),s(4),c("disabled",t.notSelectedHttpOptions().length===0),s(3),v(t.notSelectedHttpOptions()),s(2),v(t.selectedHttpOptions())}}function bi(e,n){if(e&1){let t=k();a(0,"spk-dialog",67),Vt("isOpenChange",function(i){f(t);let l=p();return bt(l.targetUrlDialogOpen,i)||(l.targetUrlDialogOpen=i),S(i)}),a(1,"header",68)(2,"h2"),M(3,9),r(),a(4,"spk-alert",69),M(5,10),r()(),a(6,"div",70)(7,"spk-form-field"),_(8,"textarea",71),r()(),a(9,"footer",72)(10,"button",21),D("click",function(){f(t);let i=p();return S(i.closeTargetUrlDialog(!1))}),m(11,"Cancel"),r(),a(12,"button",73),D("click",function(){f(t);let i=p();return S(i.closeTargetUrlDialog(!0))}),g(13,11),_(14,"spk-icon"),C(),r()()()}if(e&2){let t=p();Gt("isOpen",t.targetUrlDialogOpen),c("options",Lt(3,xo)),s(8),c("formControl",t.targetUrlCtrl)}}var Vi=["Bytes","KB","MB","GB","TB","PB"],Tt=new ne,on=(e={destinations:[]})=>Tt.group({destinations:Tt.array(e.destinations)}),rn=({key:e,customGroup:n,dynamicGroup:t,advancedGroup:o})=>Tt.group({destinationType:Tt.control(e),custom:n,dynamic:t,advanced:o}),vt=class e{#e=$(ae);#t=$(De);#o=$(Bt);#i=$(He);#n=$(_e);#r=$(Ht);injector=$(wt);formRef=fe.required("formRef");destinationForm=this.#n.destinationForm;destinationFormPair=this.#n.destinationFormPair;selectedAdvancedFormPair=this.#n.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#n.notSelectedAdvancedFormPair;selectedHttpOptions=this.#n.selectedHttpOptions;notSelectedHttpOptions=this.#n.notSelectedHttpOptions;destinationOptions=this.#n.destinationOptions;destinationFormSignal=this.#n.destinationFormSignal;destinationCount=K(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=O(Vi);successfulTest=O(!1);destinationTypeOptionsInFocus=O(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=O(ve.map(n=>({key:n.customKey??n.key,customKey:n.customKey??null,displayName:n.displayName,description:n.description})));destinationTypeOptionsFocused=K(()=>{let n=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return n.map(o=>t.find(i=>i.key===o))});destinationTypeOptionsNotFocused=K(()=>{let n=this.destinationTypeOptionsInFocus();return this.destinationTypeOptions().filter(o=>!n.includes(o.key))});getFormFieldValue(n,t,o){return((this.destinationForm.controls.destinations.controls?.[n]).controls?.[t]).controls[o].value}addDestinationFormGroup(n){this.#n.addDestinationFormGroup(n)}addAdvancedFormPair(n,t){this.#n.addAdvancedFormPair(n,t)}removeFormView(n,t){this.#n.removeAdvancedFormPair(n,t)}addHttpOption(n,t){this.#n.addHttpOption(n,t)}targetUrl=K(()=>this.#n.getCurrentTargetUrl()[0]);targetUrlCtrl=new ct;targetUrlInitial=O(null);targetUrlDialogOpen=O(!1);openTargetUrlDialog(){let t=this.#n.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(t),this.targetUrlInitial.set(t),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(n=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl.value,o=this.targetUrlInitial();!n||t===o||this.#n.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(n=0){let o=this.#n.getCurrentTargetUrl()[n];o&&this.#i.postApiV1RemoteoperationTest({requestBody:{path:o}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:i=>{let l=i.error.error.Error;if(l==="missing-folder"&&this.#r.open(nt,{data:{title:$localize`Create folder`,message:$localize`The remote destination folder does not exist, do you want to create it?`},closed:u=>{u&&this.#i.postApiV1RemoteoperationCreate({requestBody:{path:o}}).subscribe()}}),l.startsWith("incorrect-cert:")){let u=l.split("incorrect-cert:")[1];this.#r.open(nt,{maxWidth:"500px",data:{title:$localize`Trust the certificate`,message:$localize`The server is using a certificate that is not trusted.
|
|
2
|
-
If this is a self-signed certificate, you can choose to trust this certificate.
|
|
3
|
-
The server reported the certificate hash: ${u}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:h=>{h&&this.#n.addHttpOptionByName("accept-specified-ssl-hash",u)}})}if(l.startsWith("incorrect-host-key:")){let u=l.split('incorrect-host-key:"')[1].split('",')[0],h=l.split('accepted-host-key:"')[1].split('",')[0];h?this.#r.open(nt,{maxWidth:"500px",data:{title:$localize`The host key has changed`,message:$localize`The host key has changed, please check with the server administrator if this is correct,
|
|
4
|
-
otherwise you could be the victim of a MAN-IN-THE-MIDDLE attack.
|
|
5
|
-
Do you want to REPLACE your CURRENT host key ${h}
|
|
6
|
-
with the REPORTED host key: ${u}?`,confirmText:$localize`Approve`,cancelText:$localize`Cancel`},closed:P=>{P&&this.#n.addAdvancedFormPairByName("ssh-fingerprint",n,u)}}):this.#r.open(nt,{maxWidth:"500px",data:{title:$localize`Approve host key?`,message:$localize`No certificate was specified, please verify that the reported host key is correct: ${u}`,confirmText:"Approve",cancelText:"Cancel"},closed:P=>{P&&this.#n.addAdvancedFormPairByName("ssh-fingerprint",n,u)}})}}})}mapToTargetUrl(n){return Ct(n.value)}removeDestinationFormGroup(n){this.destinationForm.controls.destinations.removeAt(n)}displayFn(n){let t=this.destinationOptions().find(o=>o.Key===n);return t?`${t.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#t.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#t.parent})}#s=O("https://duplicati-oauth-handler.appspot.com/").asReadonly();#l=O(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#a=O(!1);#p=O(null);keyCreation(){}oauthStartTokenCreation(n){this.#a.set(!0);let t=450,o=600,i=this.#s()+"?type="+n+"&token="+this.#l(),l=screen.width/2-t/2,u=screen.height/2-o/2,h=window.open(i,"_blank","height="+o+",width="+t+",menubar=0,status=0,titlebar=0,toolbar=0,left="+l+",top="+u);h?.addEventListener("blur",P=>{console.log("event blur",P)}),h?.addEventListener("beforeunload",P=>{console.log("event beforeunload",P),this.#o.get(this.#s()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#l()}}).pipe(Ze(()=>this.#a.set(!1))).subscribe({next:A=>{console.log("res",A),A?.authid&&this.#p.set(A.authid)}})})}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=re({type:e,selectors:[["app-destination"]],viewQuery:function(t,o){t&1&&Se(o.formRef,No,5),t&2&&Te()},decls:24,vars:6,consts:()=>{let n;n=$localize` Backup destination ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"\uFFFD*6:1\uFFFD"}:START_BLOCK_IF_1:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON:${"\uFFFD*2:2\uFFFD"}:START_BLOCK_IF: Connected ${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:check${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD*3:3\uFFFD"}:START_BLOCK_ELSE: Test destination ${"\uFFFD/*3:3\uFFFD"}:CLOSE_BLOCK_ELSE:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*2:2\uFFFD|\uFFFD/*6:1\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:dots-three-vertical${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#1:2\uFFFD|\uFFFD#9\uFFFD|\uFFFD#12\uFFFD]"}:START_TAG_SPK_ICON:link${"[\uFFFD/#1:2\uFFFD|\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD]"}:CLOSE_TAG_SPK_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SPK_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,n=xe(n);let t;t=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SPK_ICON:arrow-left${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SPK_ICON: Go back `;let o;o=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:arrow-right${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON: Continue `;let i;i=$localize` Want to select another destination? ${"\uFFFD#2\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SPAN:`;let l;l=$localize`Other destinations`;let u;u=$localize` Advanced options ${"\uFFFD#9\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#10\uFFFD"}:START_TAG_BUTTON: Add advanced option ${"\uFFFD#11\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#11\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#12\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*14:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#10\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*14:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SPK_MENU:`,u=xe(u);let h;h=$localize` Http options ${"\uFFFD#20\uFFFD"}:START_TAG_SPK_MENU:${"\uFFFD#21\uFFFD"}:START_TAG_BUTTON: Add http option ${"\uFFFD#22\uFFFD"}:START_TAG_SPK_ICON:plus${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SPK_ICON:${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#23\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD*25:1\uFFFD"}:START_BLOCK_FOR:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON_1: ${"\uFFFD0:1\uFFFD"}:INTERPOLATION: ${"[\uFFFD/#21\uFFFD|\uFFFD/#1:1\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD/*25:1\uFFFD"}:CLOSE_BLOCK_FOR:${"\uFFFD/#23\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#20\uFFFD"}:CLOSE_TAG_SPK_MENU:`,h=xe(h);let P;P=$localize`Edit target URL`;let A;A=$localize` Be careful, this will overwrite everything you have in your destination. `;let b;return b=$localize` Override target URL ${"\uFFFD#14\uFFFD"}:START_TAG_SPK_ICON:swap${"\uFFFD/#14\uFFFD"}:CLOSE_TAG_SPK_ICON:`,[["formRef",""],["fieldTemplate",""],n,t,o,i,l,u,h,P,A,b,[3,"submit","formGroup"],[1,"title-30"],[1,"actions"],["spk-button","","type","button",1,"small",3,"success"],["spk-button","","type","button",1,"small"],["menu",""],["spk-button","","type","button",1,"small",3,"click"],["formArrayName","destinations"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"isOpen","options"],[3,"click"],[1,"spk-primary"],[1,"most-common-destinations"],[1,"tile"],["spk-button","","type","button",1,"outlined"],["item","","type","button"],[1,"tile",3,"click"],["item","","type","button",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"hideClearButton"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],[3,"for"],[1,"primary",3,"message"],["type","text",3,"id","formControlName"],[3,"type","id","formControlName"],["prefix",""],["autocomplete","off",3,"type","id","formControlName"],["prefix","",1,"link"],["suffix","",1,"clickable"],["prefix","",1,"link",3,"click"],["suffix","",1,"clickable",3,"click"],[3,"value"],["type","search",3,"id","formControlName"],[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"],["spk-button","","type","button",1,"outlined",3,"click"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"warning"],["content",""],["id","targetUrl","autocomplete","off",3,"formControl"],["footer",""],["spk-button","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,o){if(t&1){let i=k();a(0,"form",12,0),D("submit",function(){return f(i),S(o.next())}),a(2,"header")(3,"h3",13),g(4,2),a(5,"div",14),d(6,Mo,4,3,"button",15),a(7,"spk-menu")(8,"button",16),_(9,"spk-icon"),r(),W(10,17),a(11,"button",18),D("click",function(){return f(i),S(o.openTargetUrlDialog())}),_(12,"spk-icon"),r(),q(),r()(),C(),r(),d(13,wo,3,0,"p"),r(),d(14,bo,9,0)(15,Gi,30,4,"ng-container",19),a(16,"div",20)(17,"button",21),D("click",function(){return f(i),S(o.goBack())}),g(18,3),_(19,"spk-icon"),C(),r(),a(20,"button",22),g(21,4),_(22,"spk-icon"),C(),r()()(),d(23,bi,15,4,"spk-dialog",23)}if(t&2){let i;c("formGroup",o.destinationForm),s(6),F(o.destinationCount()>0?6:-1),s(7),F(o.destinationCount()>0?13:-1),s(),F(o.destinationCount()===0?14:-1),s(),F(!((i=o.destinationFormSignal())==null||i.destinations==null)&&i.destinations.length?15:-1),s(8),F(o.targetUrlDialogOpen()?23:-1)}},dependencies:[Oe,Pe,se,Ge,Re,le,ye,mt,Ne,Ae,be,zt,lt,ce,ue,Ft,dt,me,pe,Le,je,Xt,_t,Ue,We],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] spk-alert[_ngcontent-%COMP%]{width:100%}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:.5rem}header[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline}header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}pre[_ngcontent-%COMP%]{white-space:pre-wrap}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.field-row.single-field[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 1fr;gap:.5rem;align-items:flex-end}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-500)}.most-common-destinations[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:1rem;border:1px solid var(--base-level-40);border-radius:var(--shape-3);box-shadow:var(--shadow-1);background-color:var(--base-level-20);cursor:pointer}.most-common-destinations[_ngcontent-%COMP%] .tile[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--paragraph-10);margin:0}[prefix].link[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;color:var(--primary-500)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}"],changeDetection:0})};export{Ct as a,ve as b,on as c,rn as d,vt as e,Qt as f,kt as g,Ot as h,Zt as i,$t as j,en as k,xt as l,nn as m,It as n,_e as o};
|
package/chunk-WX6WWOS5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-C6Q5SG76.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-ILPTEKIT.js")},{path:"destination",loadComponent:()=>import("./chunk-Q4JQCY64.js")},{path:"source-data",loadComponent:()=>import("./chunk-5K2CQFVP.js")},{path:"schedule",loadComponent:()=>import("./chunk-BLF5NVEW.js")},{path:"options",loadComponent:()=>import("./chunk-XKSLV5L6.js")}];export{o as default};
|