@duplicati/ngclient 0.0.23 → 0.0.24
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/backgrounds/base-bg.svg +9 -0
- package/assets/duplicati/duplicati-dark.svg +40 -0
- package/assets/duplicati/duplicati.svg +40 -0
- package/assets/duplicati/pattern.svg +45 -0
- package/assets/noise/auth-noise.svg +57 -0
- package/chunk-2653SOTQ.js +1 -0
- package/chunk-2EGLLTER.js +1 -0
- package/chunk-2MDIWOW5.js +1 -0
- package/chunk-3UHRO33D.js +1 -0
- package/{chunk-4EODC7AQ.js → chunk-3XQGPHYU.js} +1 -1
- package/chunk-4C6SJEAP.js +1 -0
- package/chunk-4HGECFGT.js +1 -0
- package/chunk-4JYRDCTW.js +1 -0
- package/chunk-4NLCRQLQ.js +1 -0
- package/chunk-637GTPYL.js +1 -0
- package/chunk-67JGZ4NF.js +7 -0
- package/chunk-AEQ7QJXE.js +1 -0
- package/chunk-BTF6XTSM.js +1 -0
- package/chunk-C3SI6ECZ.js +1 -0
- package/chunk-CESPRUJX.js +1 -0
- package/{chunk-N6REZCKW.js → chunk-CUYURNCB.js} +1 -1
- package/{chunk-EEZT434V.js → chunk-EOYIT7GV.js} +1 -1
- package/chunk-GO7CLBZY.js +1 -0
- package/chunk-GTGXQQJJ.js +1 -0
- package/chunk-HJUBM7Q5.js +1 -0
- package/chunk-JE2I63Y6.js +2 -0
- package/chunk-JRKR54DW.js +1 -0
- package/chunk-KJQLPHGM.js +1 -0
- package/chunk-KV674FA2.js +1 -0
- package/{chunk-6GOAPINI.js → chunk-MJCUB3L3.js} +1 -1
- package/chunk-NAPR7ILQ.js +1 -0
- package/chunk-NAZLO3UY.js +1 -0
- package/chunk-NILUA3YB.js +1 -0
- package/chunk-NVZUM7FG.js +1 -0
- package/chunk-NYFN2CT6.js +6 -0
- package/chunk-OSB5J6SK.js +1 -0
- package/chunk-P6347OTT.js +1 -0
- package/chunk-RHGRQONA.js +1 -0
- package/chunk-RNJMBZB7.js +1 -0
- package/chunk-SGZGAY7X.js +1 -0
- package/chunk-SRW3NRX3.js +1 -0
- package/{chunk-SFRGISK2.js → chunk-SRX3KYGO.js} +1 -1
- package/chunk-T2ZGAXWS.js +1 -0
- package/chunk-TNE7LVPH.js +1 -0
- package/chunk-VA5L4XPW.js +1 -0
- package/chunk-VJDUCP4Z.js +1 -0
- package/chunk-VXKI3RQB.js +1 -0
- package/chunk-X2IPCPJN.js +1 -0
- package/chunk-YBWO6L26.js +1 -0
- package/{chunk-PFVXGEM7.js → chunk-Z3RCJ5NZ.js} +1 -1
- package/chunk-ZLOKN5SO.js +1 -0
- package/index.html +1 -1
- package/main-WZ7WTPZS.js +1 -0
- package/package.json +1 -1
- package/chunk-22ZYSOTR.js +0 -1
- package/chunk-37USSSCL.js +0 -1
- package/chunk-3ZEBM2Q6.js +0 -1
- package/chunk-5AC7O5ME.js +0 -1
- package/chunk-6RIA76HG.js +0 -1
- package/chunk-73UOOUBD.js +0 -1
- package/chunk-AIWAOXTQ.js +0 -1
- package/chunk-BHQV6I5A.js +0 -1
- package/chunk-C6XNKGG2.js +0 -1
- package/chunk-CLHK3WG3.js +0 -1
- package/chunk-CLPPNSLN.js +0 -1
- package/chunk-EZH4RUS3.js +0 -1
- package/chunk-FRD2BVV6.js +0 -6
- package/chunk-GQQ7YXKJ.js +0 -1
- package/chunk-ICNC6KVB.js +0 -1
- package/chunk-IEVRQDB6.js +0 -1
- package/chunk-IXLTPP72.js +0 -1
- package/chunk-JNQHJPEL.js +0 -1
- package/chunk-LFGIPWCL.js +0 -1
- package/chunk-LZSE733H.js +0 -1
- package/chunk-ORCLDJSO.js +0 -1
- package/chunk-OVWWCW76.js +0 -1
- package/chunk-Q76L4VLC.js +0 -1
- package/chunk-QHJTF3V4.js +0 -8
- package/chunk-RWFWLGB7.js +0 -1
- package/chunk-TKY4PPEK.js +0 -1
- package/chunk-UVFVZQCU.js +0 -1
- package/chunk-VC4GI7EV.js +0 -1
- package/chunk-VOS5UL4W.js +0 -1
- package/chunk-VUEDXCG5.js +0 -1
- package/chunk-WSTPDNCJ.js +0 -1
- package/chunk-X53IGCHF.js +0 -1
- package/chunk-XDYHN4IQ.js +0 -2
- package/chunk-XGBLG5PU.js +0 -1
- package/chunk-Z7GRCDAT.js +0 -1
- package/chunk-ZPJ6YV7Y.js +0 -1
- package/chunk-ZSOWH34L.js +0 -1
- package/main-KQJXLVHZ.js +0 -1
package/chunk-73UOOUBD.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Nb as h,O as H,P as d,Pa as o,Q as re,R as L,Ra as E,T as D,Ua as N,W as De,Ya as u,Yb as Ae,Z as $,_ as l,eb as se,ec as O,fa as W,fc as m,g as ve,ja as b,jc as oe,k as ye,la as be,oa as A,p as Ce,sb as g,ua as M,v as Ve}from"./chunk-QHJTF3V4.js";import{a as c,b as p}from"./chunk-7CGTOI24.js";var xe=(()=>{class i{constructor(e,n){this._renderer=e,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M))}}static{this.\u0275dir=l({type:i})}}return i})(),S=(()=>{class i extends xe{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})(),C=new D(""),at={provide:C,useExisting:d(()=>lt),multi:!0},lt=(()=>{class i extends S{writeValue(e){this.setProperty("checked",e)}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.checked)})("blur",function(){return r.onTouched()})},features:[h([at]),u]})}}return i})(),ut={provide:C,useExisting:d(()=>Pe),multi:!0};function ct(){let i=oe()?oe().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var dt=new D(""),Pe=(()=>{class i extends xe{constructor(e,n,r){super(e,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!ct())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(dt,8))}}static{this.\u0275dir=l({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r._handleInput(a.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(a){return r._compositionEnd(a.target.value)})},features:[h([ut]),u]})}}return i})();function _(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}function ke(i){return i!=null&&typeof i.length=="number"}var R=new D(""),T=new D(""),ht=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Me=class{static min(t){return ft(t)}static max(t){return pt(t)}static required(t){return gt(t)}static requiredTrue(t){return mt(t)}static email(t){return _t(t)}static minLength(t){return vt(t)}static maxLength(t){return yt(t)}static pattern(t){return Ct(t)}static nullValidator(t){return Ge(t)}static compose(t){return He(t)}static composeAsync(t){return $e(t)}};function ft(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function pt(i){return t=>{if(_(t.value)||_(i))return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function gt(i){return _(i.value)?{required:!0}:null}function mt(i){return i.value===!0?null:{required:!0}}function _t(i){return _(i.value)||ht.test(i.value)?null:{email:!0}}function vt(i){return t=>_(t.value)||!ke(t.value)?null:t.value.length<i?{minlength:{requiredLength:i,actualLength:t.value.length}}:null}function yt(i){return t=>ke(t.value)&&t.value.length>i?{maxlength:{requiredLength:i,actualLength:t.value.length}}:null}function Ct(i){if(!i)return Ge;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(_(n.value))return null;let r=n.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}function Ge(i){return null}function Re(i){return i!=null}function Te(i){return Ae(i)?ye(i):i}function je(i){let t={};return i.forEach(e=>{t=e!=null?c(c({},t),e):t}),Object.keys(t).length===0?null:t}function Be(i,t){return t.map(e=>e(i))}function Vt(i){return!i.validate}function Ue(i){return i.map(t=>Vt(t)?t:e=>t.validate(e))}function He(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){return je(Be(e,t))}}function Le(i){return i!=null?He(Ue(i)):null}function $e(i){if(!i)return null;let t=i.filter(Re);return t.length==0?null:function(e){let n=Be(e,t).map(Te);return Ve(n).pipe(Ce(je))}}function We(i){return i!=null?$e(Ue(i)):null}function Ee(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function qe(i){return i._rawValidators}function ze(i){return i._rawAsyncValidators}function ae(i){return i?Array.isArray(i)?i:[i]:[]}function Z(i,t){return Array.isArray(i)?i.includes(t):i===t}function Fe(i,t){let e=ae(t);return ae(i).forEach(r=>{Z(e,r)||e.push(r)}),e}function we(i,t){return ae(t).filter(e=>!Z(i,e))}var X=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Le(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},f=class extends X{get formDirective(){return null}get path(){return null}},v=class extends X{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},Y=class{constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Dt={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},vi=p(c({},Dt),{"[class.ng-submitted]":"isSubmitted"}),yi=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(v,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[u]})}}return i})(),Ci=(()=>{class i extends Y{constructor(e){super(e)}static{this.\u0275fac=function(n){return new(n||i)(o(f,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){n&2&&se("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[u]})}}return i})();var x="VALID",q="INVALID",F="PENDING",P="DISABLED",y=class{},K=class extends y{constructor(t,e){super(),this.value=t,this.source=e}},k=class extends y{constructor(t,e){super(),this.pristine=t,this.source=e}},G=class extends y{constructor(t,e){super(),this.touched=t,this.source=e}},w=class extends y{constructor(t,e){super(),this.status=t,this.source=e}},le=class extends y{constructor(t){super(),this.source=t}},ue=class extends y{constructor(t){super(),this.source=t}};function fe(i){return(ie(i)?i.validators:i)||null}function bt(i){return Array.isArray(i)?Le(i):i||null}function pe(i,t){return(ie(t)?t.asyncValidators:i)||null}function At(i){return Array.isArray(i)?We(i):i||null}function ie(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ze(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new H(1e3,"");if(!n[e])throw new H(1001,"")}function Xe(i,t,e){i._forEachChild((n,r)=>{if(e[r]===void 0)throw new H(1002,"")})}var I=class{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=O(()=>this.statusReactive()),this.statusReactive=N(void 0),this._pristine=O(()=>this.pristineReactive()),this.pristineReactive=N(!0),this._touched=O(()=>this.touchedReactive()),this.touchedReactive=N(!1),this._events=new ve,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return m(this.statusReactive)}set status(t){m(()=>this.statusReactive.set(t))}get valid(){return this.status===x}get invalid(){return this.status===q}get pending(){return this.status==F}get disabled(){return this.status===P}get enabled(){return this.status!==P}get pristine(){return m(this.pristineReactive)}set pristine(t){m(()=>this.pristineReactive.set(t))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(t){m(()=>this.touchedReactive.set(t))}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Fe(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Fe(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(we(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(we(t,this._rawAsyncValidators))}hasValidator(t){return Z(this._rawValidators,t)}hasAsyncValidator(t){return Z(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new G(!0,n))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new G(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(p(c({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new k(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new k(!0,n))}markAsPending(t={}){this.status=F;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new w(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(p(c({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=P,this.errors=null,this._forEachChild(r=>{r.disable(p(c({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,n)),this._events.next(new w(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=x,this._forEachChild(n=>{n.enable(p(c({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(p(c({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===x||this.status===F)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new K(this.value,e)),this._events.next(new w(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(p(c({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?P:x}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=F,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let n=Te(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,r)=>n&&n._find(r),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new w(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new A,this.statusChanges=new A}_calculateStatus(){return this._allControlsDisabled()?P:this.errors?q:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(q)?q:x}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),r&&this._events.next(new k(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new G(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ie(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=bt(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=At(this._rawAsyncValidators)}},J=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){Xe(this,!0,t),Object.keys(t).forEach(n=>{Ze(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let r=this.controls[n];r&&r.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t?t[r]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((r,s)=>{n=e(n,r,s)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var ce=class extends J{};var j=new D("CallSetDisabledState",{providedIn:"root",factory:()=>B}),B="always";function ge(i,t){return[...t.path,i]}function de(i,t,e=B){me(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),Et(i,t),wt(i,t),Ft(i,t),Mt(i,t)}function Q(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),te(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function ee(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function Mt(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function me(i,t){let e=qe(i);t.validator!==null?i.setValidators(Ee(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=ze(i);t.asyncValidator!==null?i.setAsyncValidators(Ee(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ee(t._rawValidators,r),ee(t._rawAsyncValidators,r)}function te(i,t){let e=!1;if(i!==null){if(t.validator!==null){let r=qe(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.validator);s.length!==r.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let r=ze(i);if(Array.isArray(r)&&r.length>0){let s=r.filter(a=>a!==t.asyncValidator);s.length!==r.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return ee(t._rawValidators,n),ee(t._rawAsyncValidators,n),e}function Et(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Ye(i,t)})}function Ft(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Ye(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function Ye(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function wt(i,t){let e=(n,r)=>{t.valueAccessor.writeValue(n),r&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function It(i,t){i==null,me(i,t)}function St(i,t){return te(i,t)}function Ke(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function Nt(i){return Object.getPrototypeOf(i.constructor)===S}function Ot(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function Je(i,t){if(!t)return null;Array.isArray(t);let e,n,r;return t.forEach(s=>{s.constructor===Pe?e=s:Nt(s)?n=s:r=s}),r||n||e||null}function xt(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Ie(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Se(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var z=class extends I{constructor(t=null,e,n){super(fe(e),pe(n,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ie(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Se(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Ie(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Ie(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Se(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Pt=i=>i instanceof z,kt=(()=>{class i extends f{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[u]})}}return i})();var Di=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return i})(),Gt={provide:C,useExisting:d(()=>Rt),multi:!0},Rt=(()=>{class i extends S{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){n&1&&g("input",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},features:[h([Gt]),u]})}}return i})(),Tt={provide:C,useExisting:d(()=>Bt),multi:!0};var jt=(()=>{class i{constructor(){this._accessors=[]}add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Bt=(()=>{class i extends S{constructor(e,n,r,s){super(e,n),this._registry=r,this._injector=s,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=De(j,{optional:!0})??B}ngOnInit(){this._control=this._injector.get(v),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(n){return new(n||i)(o(E),o(M),o(jt),o(be))}}static{this.\u0275dir=l({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[h([Tt]),u]})}}return i})();var _e=new D(""),Ut={provide:v,useExisting:d(()=>Ht)},Ht=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=a,this.update=new A,this._ngModelWarningSent=!1,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=Je(this,r)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&Q(n,this,!1),de(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Ke(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Q(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(C,10),o(_e,8),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[h([Ut]),u,W]})}}return i})(),Lt={provide:f,useExisting:d(()=>Qe)},Qe=(()=>{class i extends f{get submitted(){return m(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}constructor(e,n,r){super(),this.callSetDisabledState=r,this._submitted=O(()=>this._submittedReactive()),this._submittedReactive=N(!1),this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new A,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(te(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return de(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){Q(e.control||null,e,!1),xt(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),Ot(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new le(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new ue(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,r=this.form.get(e.path);n!==r&&(Q(n||null,e),Pt(r)&&(de(r,e,this.callSetDisabledState),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);It(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&St(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){me(this.form,this),this._oldForm&&te(this._oldForm,this)}_checkFormPresent(){this.form}static{this.\u0275fac=function(n){return new(n||i)(o(R,10),o(T,10),o(j,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,r){n&1&&g("submit",function(a){return r.onSubmit(a)})("reset",function(){return r.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h([Lt]),u,W]})}}return i})(),$t={provide:f,useExisting:d(()=>et)},et=(()=>{class i extends kt{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},features:[h([$t]),u]})}}return i})(),Wt={provide:f,useExisting:d(()=>tt)},tt=(()=>{class i extends f{constructor(e,n,r){super(),this.name=null,this._parent=e,this._setValidators(n),this._setAsyncValidators(r)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}_checkParentType(){it(this._parent)}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10))}}static{this.\u0275dir=l({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},features:[h([Wt]),u]})}}return i})();function it(i){return!(i instanceof et)&&!(i instanceof Qe)&&!(i instanceof tt)}var qt={provide:v,useExisting:d(()=>zt)},zt=(()=>{class i extends v{set isDisabled(e){}static{this._ngModelWarningSentOnce=!1}constructor(e,n,r,s,a){super(),this._ngModelWarningConfig=a,this._added=!1,this.name=null,this.update=new A,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=Je(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Ke(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ge(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(n){return new(n||i)(o(f,13),o(R,10),o(T,10),o(C,10),o(_e,8))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[h([qt]),u,W]})}}return i})(),Zt={provide:C,useExisting:d(()=>rt),multi:!0};function nt(i,t){return i==null?`${t}`:(t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Xt(i){return i.split(":")[0]}var rt=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n=this._getOptionId(e),r=nt(n,e);this.setProperty("value",r)}registerOnChange(e){this.onChange=n=>{this.value=this._getOptionValue(n),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),e))return n;return null}_getOptionValue(e){let n=Xt(e);return this._optionMap.has(n)?this._optionMap.get(n):e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Zt]),u]})}}return i})(),bi=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(nt(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(rt,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),Yt={provide:C,useExisting:d(()=>st),multi:!0};function Ne(i,t){return i==null?`${t}`:(typeof t=="string"&&(t=`'${t}'`),t&&typeof t=="object"&&(t="Object"),`${i}: ${t}`.slice(0,50))}function Kt(i){return i.split(":")[0]}var st=(()=>{class i extends S{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(e){this._compareWith=e}writeValue(e){this.value=e;let n;if(Array.isArray(e)){let r=e.map(s=>this._getOptionId(s));n=(s,a)=>{s._setSelected(r.indexOf(a.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(e){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let a=s;for(let V=0;V<a.length;V++){let U=a[V],ne=this._getOptionValue(U.value);r.push(ne)}}else{let a=n.options;for(let V=0;V<a.length;V++){let U=a[V];if(U.selected){let ne=this._getOptionValue(U.value);r.push(ne)}}}this.value=r,e(r)}}_registerOption(e){let n=(this._idCounter++).toString();return this._optionMap.set(n,e),n}_getOptionId(e){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n)._value,e))return n;return null}_getOptionValue(e){let n=Kt(e);return this._optionMap.has(n)?this._optionMap.get(n)._value:e}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=b(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&g("change",function(a){return r.onChange(a.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[h([Yt]),u]})}}return i})(),Ai=(()=>{class i{constructor(e,n,r){this._element=e,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(Ne(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(o(M),o(E),o(st,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var ot=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({})}}return i})(),he=class extends I{constructor(t,e,n){super(fe(e),pe(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){Xe(this,!1,t),t.forEach((n,r)=>{Ze(this,!1,r),this.at(r).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,r)=>{this.at(r)&&this.at(r).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Oe(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Mi=(()=>{class i{constructor(){this.useNonNullable=!1}get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let r=this._reduceControls(e),s={};return Oe(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new J(r,s)}record(e,n=null){let r=this._reduceControls(e);return new ce(r,n)}control(e,n,r){let s={};return this.useNonNullable?(Oe(n)?s=n:(s.validators=n,s.asyncValidators=r),new z(e,p(c({},s),{nonNullable:!0}))):new z(e,n,r)}array(e,n,r){let s=e.map(a=>this._createControl(a));return new he(s,n,r)}_reduceControls(e){let n={};return Object.keys(e).forEach(r=>{n[r]=this._createControl(e[r])}),n}_createControl(e){if(e instanceof z)return e;if(e instanceof I)return e;if(Array.isArray(e)){let n=e[0],r=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,r,s)}else return this.control(e)}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275prov=re({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ei=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})(),Fi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:_e,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j,useValue:e.callSetDisabledState??B}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=$({type:i})}static{this.\u0275inj=L({imports:[ot]})}}return i})();export{lt as a,Pe as b,Me as c,yi as d,Ci as e,z as f,Di as g,Rt as h,Bt as i,Ht as j,Qe as k,et as l,tt as m,zt as n,bi as o,Ai as p,Mi as q,Ei as r,Fi as s};
|
package/chunk-AIWAOXTQ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as be}from"./chunk-4EODC7AQ.js";import{a as L,b as Ce}from"./chunk-ZSOWH34L.js";import{b as q}from"./chunk-N6REZCKW.js";import{a as me,b as V,d as E,e as T,g as P,h as ce,i as ue,k as R,n as N,o as de,p as fe,q as I,s as B}from"./chunk-73UOOUBD.js";import{a as D,g as M,n as ge,o as he,q as Fe,t as Se}from"./chunk-IEVRQDB6.js";import{a as w,c as C}from"./chunk-22ZYSOTR.js";import{a as O}from"./chunk-LZSE733H.js";import{B as Y,E as j,Gb as r,Jb as re,K as Z,L as ee,Nb as se,Oa as u,Ob as x,Q as te,Tb as le,Ua as d,Vb as ae,W as p,Y as k,ab as $,c as K,cb as c,ec as pe,ga as f,ha as g,hb as J,ib as ie,jb as oe,kb as ne,l as Q,lb as i,mb as n,nb as m,ob as h,p as U,pb as F,rb as y,rc as _,sb as S,tb as W,v as X}from"./chunk-QHJTF3V4.js";function we(l,t){l&1&&m(0,"spk-progress-bar",3)}function Oe(l,t){if(l&1&&(i(0,"option",10),r(1),le(2,"date"),n()),l&2){let e=t.$implicit;c("value",e.Version),u(),re("",e.Version,": ",ae(2,3,e.Time,"d MMM y, h:mm"),"")}}function Ve(l,t){if(l&1&&(i(0,"app-file-tree",11)(1,"label",12),r(2,"Path"),n(),m(3,"input",13),n()),l&2){let e=W(2);c("rootPath",e.rootPath())("backupSettings",e.backupSettings())("multiSelect",!0)("showFiles",!0)}}function Ee(l,t){if(l&1&&(i(0,"spk-select",7),m(1,"input",8),h(2,9),oe(3,Oe,3,6,"option",10,ie),F(),n(),$(5,Ve,4,4,"app-file-tree",11)),l&2){let e=W();c("displayFn",e.displayFn()),u(3),ne(e.versionOptions()),u(2),J(e.rootPathLoaded()?5:-1)}}var A=new I,ke=()=>A.group({filesToRestore:A.control(""),selectedOption:A.control(null),passphrase:A.control(null)}),z=class l{#t=p(O);#e=p(b);#i=p(C);#o=p(w);#n=p(_);selectFilesForm=this.#e.selectFilesForm;selectFilesFormSignal=this.#e.selectFilesFormSignal;backupId=this.#e.backupId;versionOptionsLoading=this.#e.versionOptionsLoading;versionOptions=this.#e.versionOptions;backupSettings=pe(()=>{let t=this.backupId(),e=this.selectFilesFormSignal()?.selectedOption;if(typeof e!="number"||!t)return null;let s=this.versionOptions()?.find(a=>a.Version===e)?.Time??null;return s?{id:t,time:s}:null});rootPathLoaded=d(!1);rootPath=be([this.selectFilesFormSignal,this.backupId],K(Z([null,null]),ee(([t,e])=>{let o=t?.selectedOption,s=e;if(typeof o!="number"||!s)return Q("/");let a=this.versionOptions()?.find(G=>G.Version===o);return this.#t.getApiV1BackupByIdFiles({id:s,time:a?.Time??"",prefixOnly:!1,folderContents:!0}).pipe(U(G=>(this.rootPathLoaded.set(!0),G.Files[0].Path)))})));displayFn(){let t=this.versionOptions();return e=>{if(!e)return"";let o=t?.find(s=>s.Version?.toString()===e);return o?`${o.Version}: ${this.#n.transform(o.Time,"d MMM y, h:mm")}`:""}}next(){this.#i.navigate(["options"],{relativeTo:this.#o.parent})}exit(){this.#e.exit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-select-files"]],standalone:!0,features:[se([_]),x],decls:15,vars:2,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[1,"indeterminate","primary"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],[3,"displayFn"],["type","number","placeholder","Select an option...","formControlName","selectedOption"],["options",""],[3,"value"],[3,"rootPath","backupSettings","multiSelect","showFiles"],["for","path"],["type","text","id","path","formControlName","filesToRestore"]],template:function(e,o){if(e&1){let s=y();i(0,"form",1,0),S("submit",function(){return f(s),g(o.next())}),i(2,"h3",2),r(3,"Select files"),n(),$(4,we,1,0,"spk-progress-bar",3)(5,Ee,6,2),i(6,"div",4)(7,"button",5),S("click",function(){return f(s),g(o.exit())}),i(8,"spk-icon"),r(9,"arrow-left"),n(),r(10," Exit "),n(),i(11,"button",6)(12,"spk-icon"),r(13,"arrow-right"),n(),r(14," Continue "),n()()()}e&2&&(c("formGroup",o.selectFilesForm),u(4),J(o.versionOptionsLoading()?4:5))},dependencies:[B,P,de,fe,V,ce,E,T,R,N,_,L,M,D,Fe,ge],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};var b=class l{#t=p(C);#e=p(O);backupId=d(null);backup=d(null);selectFilesForm=ke();optionsForm=ye();optionsFormSignal=q(this.optionsForm.valueChanges);selectFilesFormSignal=q(this.selectFilesForm.valueChanges);versionOptionsLoading=d(!1);versionOptions=d([]);isSubmitting=d(!1);init(t){this.backupId.set(t),this.#i(t,!0)}submit(){this.isSubmitting.set(!0);let t=this.backupId(),e=this.optionsForm.value,o=this.selectFilesForm.value,s=this.versionOptions()?.find(a=>a.Version===o.selectedOption);this.#e.postApiV1BackupByIdRestore({id:t??"",requestBody:{paths:o.filesToRestore?.split("\0").map(a=>`${a}*`)??[],passphrase:o.passphrase??null,time:s?.Time,restore_path:e.restoreFromPath,overwrite:e.handleExisting==="overwrite",permissions:e.permissions,skip_metadata:!0}}).pipe(j(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.exit()},error:a=>{console.error("restore error",a)}})}exit(){this.#o(),this.#t.navigate(["/"])}getVersionOptions(){this.versionOptions()}#i(t,e=!1){this.versionOptionsLoading.set(!0),X([this.#e.getApiV1BackupById({id:t}),this.#e.getApiV1BackupByIdFilesets({id:t})]).pipe(Y(1),j(()=>this.versionOptionsLoading.set(!1))).subscribe({next:([o,s])=>{this.versionOptions.set(s),this.backup.set(o),e&&this.selectFilesForm.controls.selectedOption.setValue(s[0].Version)}})}#o(){this.selectFilesForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||l)};static \u0275prov=te({token:l,factory:l.\u0275fac,providedIn:"root"})};var v=new I,ye=()=>v.group({restoreFrom:v.control("orignal"),restoreFromPath:v.control(""),handleExisting:v.control("overwrite"),permissions:v.control(!1)}),H=class l{#t=p(b);#e=p(C);#i=p(w);optionsForm=this.#t.optionsForm;optionsFormSignal=this.#t.optionsFormSignal;goBack(){this.#e.navigate(["select-files"],{relativeTo:this.#i.parent})}submit(){this.#t.submit()}static \u0275fac=function(e){return new(e||l)};static \u0275cmp=k({type:l,selectors:[["app-options"]],standalone:!0,features:[x],decls:41,vars:4,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"disallowToggle"],["title",""],[1,"raised","primary"],["type","radio","name","restoreFrom","value","orignal","formControlName","restoreFrom"],["type","radio","name","restoreFrom","value","pickLocation","formControlName","restoreFrom"],[3,"disabled"],["for","path"],["type","text","id","path","formControlName","restoreFromPath"],["type","radio","name","handleExisting","value","overwrite","formControlName","handleExisting"],["type","radio","name","handleExisting","value","saveTimestamp","formControlName","handleExisting"],[1,"primary","raised"],["type","checkbox","formControlName","permissions"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"]],template:function(e,o){if(e&1){let s=y();i(0,"form",1,0),S("submit",function(){return f(s),g(o.submit())}),i(2,"h3",2),r(3,"Restore options"),n(),i(4,"app-toggle-card",3),h(5,4),r(6,"Where do you want to restore files from?"),F(),i(7,"spk-radio",5),r(8," Original location "),m(9,"input",6),n(),i(10,"spk-radio",5),r(11," Pick location "),m(12,"input",7),n(),i(13,"app-file-tree",8)(14,"label",9),r(15,"Path"),n(),m(16,"input",10),n()(),i(17,"app-toggle-card",3),h(18,4),r(19,"How do you want to handle existing files?"),F(),i(20,"spk-radio",5),r(21," Overwrite "),m(22,"input",11),n(),i(23,"spk-radio",5),r(24," Save different versions with timestamp in file name "),m(25,"input",12),n()(),i(26,"app-toggle-card"),h(27,4),r(28,"Permissions"),F(),i(29,"spk-toggle",13),r(30," Restore read/write permissions "),m(31,"input",14),n()(),i(32,"div",15)(33,"button",16),S("click",function(){return f(s),g(o.goBack())}),i(34,"spk-icon"),r(35,"arrow-left"),n(),r(36," Go back "),n(),i(37,"button",17)(38,"spk-icon"),r(39,"arrow-right"),n(),r(40," Submit "),n()()()}if(e&2){let s;c("formGroup",o.optionsForm),u(4),c("disallowToggle",!0),u(9),c("disabled",((s=o.optionsFormSignal())==null?null:s.restoreFrom)!=="pickLocation"),u(4),c("disallowToggle",!0)}},dependencies:[B,P,V,me,ue,E,T,R,N,Ce,L,Se,he,M,D],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}"],changeDetection:0})};export{ye as a,H as b,ke as c,z as d,b as e};
|
package/chunk-BHQV6I5A.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y}from"./chunk-Q76L4VLC.js";import"./chunk-VC4GI7EV.js";import{b as v,c as S,d as w,e as F,g as L,k as _,n as N,q as k,s as x}from"./chunk-73UOOUBD.js";import{a as D,g as M,k as P}from"./chunk-IEVRQDB6.js";import{c as b}from"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import{E as m,Gb as s,Oa as u,Ob as h,Ua as c,W as i,Y as p,cb as g,eb as d,lb as e,mb as r,nb as f,sb as C}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";var G=new k,a=class l{#e=i(b);#t=i(y);isLoading=c(!1);loginForm=G.group({pass:G.control("",S.required)});submit(){let t=this.loginForm.value.pass;t&&(this.isLoading.set(!0),this.#t.login(t).pipe(m(()=>this.isLoading.set(!1))).subscribe({next:()=>this.#e.navigate(["/"])}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=p({type:l,selectors:[["app-login"]],standalone:!0,features:[h],decls:8,vars:3,consts:[[3,"submit","formGroup"],[1,"login-row"],["type","password","autocomplete","current-password","placeholder","Enter your password","tabindex","1","formControlName","pass"],["spk-button","","type","submit",1,"raised","primary"]],template:function(o,n){o&1&&(e(0,"form",0),C("submit",function(){return n.submit()}),e(1,"div",1)(2,"spk-form-field"),f(3,"input",2),r(),e(4,"button",3),s(5," Login "),e(6,"spk-icon"),s(7,"arrow-right"),r()()()()),o&2&&(g("formGroup",n.loginForm),u(4),d("loader",n.isLoading()))},dependencies:[x,L,v,w,F,_,N,P,D,M],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}"],changeDetection:0})};export{a as default};
|
package/chunk-C6XNKGG2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"./chunk-AIWAOXTQ.js";import"./chunk-4EODC7AQ.js";import"./chunk-ZSOWH34L.js";import"./chunk-N6REZCKW.js";import"./chunk-73UOOUBD.js";import"./chunk-IEVRQDB6.js";import"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";export{a as createRestoreOptionsForm,b as default};
|
package/chunk-CLHK3WG3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me}from"./chunk-4EODC7AQ.js";import{a as $}from"./chunk-SFRGISK2.js";import{a as le}from"./chunk-PFVXGEM7.js";import"./chunk-VC4GI7EV.js";import{a as ae}from"./chunk-5AC7O5ME.js";import"./chunk-6GOAPINI.js";import{b as se}from"./chunk-N6REZCKW.js";import{b as W,d as q,e as z,g as j,i as H,k as J,l as K,n as Q,o as X,p as Y,q as Z,r as ee,s as te}from"./chunk-73UOOUBD.js";import"./chunk-3ZEBM2Q6.js";import{g as ne,k as ie,o as oe,q as re}from"./chunk-IEVRQDB6.js";import{a as L}from"./chunk-LZSE733H.js";import{Gb as r,Hb as E,Ib as b,K as v,La as D,Oa as s,Ob as A,Ua as h,W as y,Y as I,ab as O,c as F,cb as S,eb as M,ec as G,ga as u,gc as B,ha as d,hb as C,ib as x,jb as T,kb as k,lb as n,mb as o,nb as p,ob as R,p as U,pb as w,rb as _,sb as m,tb as c,wb as N}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";function ue(a,e){if(a&1){let t=_();n(0,"spk-form-field",28),p(1,"input",29),o(),n(2,"button",30),m("click",function(){u(t);let l=c(2);return d(l.beginRemoteRegistration())}),r(3," Register for remote control "),o()}}function de(a,e){if(a&1&&(n(0,"div",26)(1,"label"),r(2,"Machine is now registered, open this link to add it to your account:"),o(),n(3,"a",31),r(4),o()()),a&2){let t=c(2);s(3),N("href",t.remoteControlClaimUrl(),D),s(),E(t.remoteControlClaimUrl())}}function ge(a,e){a&1&&(n(0,"div",26)(1,"label"),r(2,"Registering, please wait..."),o()())}function Ce(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.cancelRemoteRegistration())}),r(1," Cancel registration "),o()}}function _e(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.disableRemoteControl())}),r(1," Disable remote control "),o()}}function fe(a,e){if(a&1){let t=_();n(0,"button",30),m("click",function(){u(t);let l=c(2);return d(l.enableRemoteControl())}),r(1," Enable remote control "),o(),n(2,"button",32),m("click",function(){u(t);let l=c(2);return d(l.deleteRemoteControl())}),r(3," Delete remote control setup "),o()}}function Se(a,e){if(a&1&&(n(0,"div",5),O(1,ue,4,0)(2,de,5,2,"div",26)(3,ge,3,0,"div",26)(4,Ce,2,0,"button",27)(5,_e,2,0,"button",27)(6,fe,4,0),o()),a&2){let t=c();s(),C(t.remoteControlState()==="inactive"?1:-1),s(),C(t.remoteControlState()==="registered"?2:-1),s(),C(t.remoteControlState()==="registering"?3:-1),s(),C(t.remoteControlState()==="registering"||t.remoteControlState()==="registeringfaulted"||t.remoteControlState()==="registered"?4:-1),s(),C(t.remoteControlState()==="connected"||t.remoteControlState()==="enabled"?5:-1),s(),C(t.remoteControlState()==="disabled"?6:-1)}}function he(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.timeType.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}function be(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.pauseSettings.controls.time.setValue(l))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t),s(),E(t)}}function ve(a,e){if(a&1){let t=_();n(0,"option",33),m("click",function(){let l=u(t).$implicit,g=c();return d(g.settingsForm.controls.usageStatistics.setValue(l.value))}),r(1),o()}if(a&2){let t=e.$implicit;S("value",t.value),s(),b(" ",t.label," ")}}var f=new Z,pe=[{value:"s",label:"Seconds"},{value:"m",label:"Minutes"},{value:"h",label:"Hours"}],V=[{value:"en",label:"English"},{value:"fr",label:"French"},{value:"de",label:"German"},{value:"es",label:"Spanish"},{value:"it",label:"Italian"}],ce=[{value:"",label:"System default (information)"},{value:"information",label:"Usage statistics, warnings, errors, and crashes"},{value:"warning",label:"Warnings, errors and crashes"},{value:"error",label:"Errors and crashes"},{value:"crash",label:"Crashes only"},{value:"none",label:"None / disabled"}],P=class a{#i=y(le);#o=y($);#e=y(L);sysinfo=this.#o.systemInfo;isDarkMode=this.#i.isDarkMode;editAs=h("list");settingsForm=f.group({pauseSettings:f.group({time:f.control(0),timeType:f.control("s")}),language:f.control("en"),usageStatistics:f.control(""),updateChannel:f.control(""),remoteControlRegisterUrl:f.control("")});remoteControlState=h("unknown");remoteControlClaimUrl=h(null);sysInfoEffect=B(()=>{this.settingsForm.controls.remoteControlRegisterUrl.patchValue(this.sysinfo()?.RemoteControlRegistrationUrl??"")},{allowSignalWrites:!0});get pauseSettings(){return this.settingsForm.controls.pauseSettings}langSignal=se(this.settingsForm.controls.language.valueChanges);timeTypeOptions=h(pe);timeOptions=me([this.pauseSettings.controls.timeType.valueChanges.pipe(v("s")),this.pauseSettings.controls.time.valueChanges.pipe(v(null))],F(U(([e,t])=>{let i=this.#r(e);return t!==null?i.filter(l=>l.toString().includes(t.toString())):i}),v([])));languageOptions=G(()=>this.langSignal()?V.filter(e=>e.value===this.langSignal()):V);usageStatisticsOptions=h(ce);ngOnInit(){this.refreshRemoteControlStatus(),this.getServerSettings()}submit(){let e=`${this.pauseSettings.controls.time.value}${this.pauseSettings.controls.timeType.value}`;this.#e.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.settingsForm.controls.usageStatistics.value,"startup-delay":e==="0s"?"":e,"update-channel":this.settingsForm.controls.updateChannel.value}}).subscribe({next:t=>{console.log("res",t)},error:t=>{console.error("err",t)}})}getServerSettings(){return this.#e.getApiV1Serversettings().subscribe({next:e=>{let t=e["startup-delay"];this.settingsForm.patchValue({pauseSettings:{time:parseInt(t.substring(0,t.length-1)==""?"0":t.substring(0,t.length-1)),timeType:t.substring(-1)===""?"s":t.substring(-1)},usageStatistics:e["usage-reporter-level"],updateChannel:e["update-channel"]})}})}languageDisplay(e){return e?V.find(t=>t.value===e)?.label??null:null}typeDisplay(e){return e==null?null:pe.find(t=>t.value===e)?.label??null}usageDisplay(e){return typeof e!="string"?null:ce.find(t=>t.value===e)?.label??null}setDarkMode(){this.#i.setDarkMode()}setLightMode(){this.#i.setLightMode()}#r(e){let t=e==="h"?25:61;return new Array(t).fill(0).map((i,l)=>l)}repeatRegisterTimer=null;#t(e){e.RegistrationUrl&&this.remoteControlClaimUrl.set(e.RegistrationUrl),console.log(e),e.IsConnected?this.remoteControlState.set("connected"):e.IsEnabled?this.remoteControlState.set("enabled"):e.CanEnable?this.remoteControlState.set("disabled"):e.IsRegisteringFaulted?this.remoteControlState.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.remoteControlState.set("registered"):this.remoteControlState.set("registering"):this.remoteControlState.set("inactive");let t=this.remoteControlState();console.log(t),this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#e.getApiV1RemotecontrolStatus().subscribe({next:i=>{this.#t(i)},error:i=>{this.#n(i)}})},5e3)),e.IsRegistering&&e.CanEnable&&this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:i=>{this.#t(i)}})}#n(e){this.#e.getApiV1RemotecontrolStatus().subscribe({next:t=>{this.#t(t)}})}refreshRemoteControlStatus(){this.#e.getApiV1RemotecontrolStatus().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}beginRemoteRegistration(){this.remoteControlState.set("registering");let e=this.settingsForm.controls.remoteControlRegisterUrl.value;this.#e.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:e}}).subscribe({next:t=>{this.#t(t)},error:t=>{this.#n(t)}})}cancelRemoteRegistration(){this.#e.deleteApiV1RemotecontrolRegister().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}enableRemoteControl(){this.#e.postApiV1RemotecontrolEnable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}disableRemoteControl(){this.#e.postApiV1RemotecontrolDisable().subscribe({next:e=>{this.#t(e)},error:e=>{this.#n(e)}})}deleteRemoteControl(){let e=this;confirm("Are you sure you want to delete the remote control registration?")&&e.#e.deleteApiV1RemotecontrolRegistration().subscribe({next:t=>{e.#t(t)},error:t=>{e.#n(t)}})}getRemoteControlStatusText(){let e=this.remoteControlState();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=I({type:a,selectors:[["app-settings"]],standalone:!0,features:[A],decls:100,vars:11,consts:[[1,"content",3,"submit","formGroup"],[1,"title"],["type","submit","spk-button","",1,"raised","primary"],[1,"left"],[1,"right","remote-control"],[1,"field-row"],[1,"right"],["formGroupName","pauseSettings",1,"field-row"],[3,"displayValue"],["type","text","formControlName","timeType"],["options",""],[3,"value"],["type","search","formControlName","time"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"outlined","primary"],["type","radio","name","updateChannel","value","","formControlName","updateChannel"],["type","radio","name","updateChannel","value","stable","formControlName","updateChannel"],["type","radio","name","updateChannel","value","beta","formControlName","updateChannel"],["type","radio","name","updateChannel","value","experimental","formControlName","updateChannel"],["type","radio","name","updateChannel","value","canary","formControlName","updateChannel"],["href","#"],["type","text","formControlName","usageStatistics"],[1,"field-col"],["type","button","spk-button","",1,"raised"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","spk-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl","formControlName","remoteControlRegisterUrl"],["type","button","spk-button","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","spk-button","",1,"raised","warn",3,"click"],[3,"click","value"]],template:function(t,i){if(t&1&&(p(0,"app-status-bar"),n(1,"form",0),m("submit",function(){return i.submit()}),n(2,"header")(3,"div",1)(4,"h2"),r(5,"Settings"),o(),n(6,"p"),r(7,"Configure your backup settings."),o()(),n(8,"button",2),r(9,"Save changes"),o()(),n(10,"section")(11,"div",3)(12,"h3"),r(13,"Remote access control"),o(),n(14,"p"),r(15),o()(),n(16,"div",4),O(17,Se,7,6,"div",5),o()(),n(18,"section")(19,"div",3)(20,"h3"),r(21,"Pause after startup or hibernation"),o(),n(22,"p"),r(23," Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. "),o()(),n(24,"div",6)(25,"div",7)(26,"spk-select",8),p(27,"input",9),R(28,10),T(29,he,2,2,"option",11,x),w(),o(),n(31,"spk-select"),p(32,"input",12),R(33,10),T(34,be,2,2,"option",11,x),w(),o()()()(),n(36,"section")(37,"div",3)(38,"h3"),r(39,"Color theme"),o(),n(40,"p"),r(41,"Customize your application theme"),o()(),n(42,"div",6)(43,"div",13)(44,"img",14),m("click",function(){return i.setLightMode()}),o(),n(45,"img",15),m("click",function(){return i.setDarkMode()}),o()()()(),n(46,"section")(47,"div",3)(48,"h3"),r(49,"Update channel"),o(),n(50,"p"),r(51,"Update channel selection is not implemented yet."),o()(),n(52,"div",16)(53,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("")}),n(54,"spk-radio",18),r(55),p(56,"input",19),o(),n(57,"p"),r(58),o()(),n(59,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("stable")}),n(60,"spk-radio",18),r(61," Stable "),p(62,"input",20),o(),n(63,"p"),r(64,"Official releases"),o()(),n(65,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("beta")}),n(66,"spk-radio",18),r(67," Beta "),p(68,"input",21),o(),n(69,"p"),r(70," Try out the new features that we are working on. Currently the most stable version available. Test Restore data before using this in production environments. "),o()(),n(71,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("experimental")}),n(72,"spk-radio",18),r(73," Experimental "),p(74,"input",22),o(),n(75,"p"),r(76,"Specific builds for developers only. Not for use with important data."),o()(),n(77,"div",17),m("click",function(){return i.settingsForm.controls.updateChannel.setValue("canary")}),n(78,"spk-radio",18),r(79," Canary "),p(80,"input",23),o(),n(81,"p"),r(82,"Individual builds for developers only. Not for use with important data."),o()()()(),n(83,"section")(84,"div",3)(85,"h3"),r(86,"Usage statistics"),o(),n(87,"p"),r(88," Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate "),n(89,"a",24),r(90,"public usage statistics."),o(),p(91,"br")(92,"br"),r(93," All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. "),o()(),n(94,"div",6)(95,"spk-select",8),p(96,"input",25),R(97,10),T(98,ve,2,2,"option",11,x),w(),o()()()()),t&2){let l,g;s(),S("formGroup",i.settingsForm),s(14),E(i.getRemoteControlStatusText()),s(2),C(i.remoteControlState()!=="unknown"?17:-1),s(9),S("displayValue",i.typeDisplay(i.settingsForm.value.pauseSettings==null?null:i.settingsForm.value.pauseSettings.timeType)),s(3),k(i.timeTypeOptions()),s(5),k(i.timeOptions()),s(10),M("active",!i.isDarkMode()),s(),M("active",i.isDarkMode()),s(10),b(" Default (",(l=i.sysinfo())==null?null:l.DefaultUpdateChannel,") "),s(3),b("Same as the base install version: ",(g=i.sysinfo())==null?null:g.ServerVersionType,""),s(37),S("displayValue",i.usageDisplay(i.settingsForm.controls.usageStatistics.value)),s(3),k(i.usageStatisticsOptions())}},dependencies:[ee,j,X,Y,W,H,q,z,te,J,Q,K,ae,ne,oe,ie,re],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-level-40)}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] spk-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:240px;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-500)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] spk-radio[_ngcontent-%COMP%]{color:var(--base-level-60);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-level-60R)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] spk-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] spk-select[_ngcontent-%COMP%]{flex:1 0}.remote-control[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}"],changeDetection:0})};export{P as default};
|
package/chunk-CLPPNSLN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as c}from"./chunk-IEVRQDB6.js";import{b as l,d as m,e as p}from"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import{Gb as n,Ob as s,Y as a,lb as e,mb as t,nb as u}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";var i=class r{static \u0275fac=function(o){return new(o||r)};static \u0275cmp=a({type:r,selectors:[["app-about"]],standalone:!0,features:[s],decls:13,vars:0,consts:[[1,"nav"],["spk-button","","routerLink","/about/general","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/changelog","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/libraries","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/system-info","routerLinkActive","primary",1,"raised"],["spk-button","","routerLink","/about/logs","routerLinkActive","primary",1,"raised"]],template:function(o,b){o&1&&(e(0,"div",0)(1,"button",1),n(2,"General"),t(),e(3,"button",2),n(4,"Changelog"),t(),e(5,"button",3),n(6,"Libraries"),t(),e(7,"button",4),n(8,"System info"),t(),e(9,"button",5),n(10,"Logs"),t()(),e(11,"section"),u(12,"router-outlet"),t())},dependencies:[c,l,m,p],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:0;padding:2.5rem}.nav[_ngcontent-%COMP%]{display:flex;gap:.5rem}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:2rem 0}"],changeDetection:0})};export{i as default};
|
package/chunk-EZH4RUS3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-FRD2BVV6.js";import"./chunk-ZSOWH34L.js";import"./chunk-SFRGISK2.js";import"./chunk-DNHLTHLR.js";import"./chunk-N6REZCKW.js";import"./chunk-73UOOUBD.js";import"./chunk-IEVRQDB6.js";import"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";export{a as createDestinationForm,b as createDestinationFormGroup,c as default};
|
package/chunk-FRD2BVV6.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as Ae,b as Fe}from"./chunk-ZSOWH34L.js";import{a as Je}from"./chunk-SFRGISK2.js";import{a as dt,b as Rt}from"./chunk-DNHLTHLR.js";import{b as M}from"./chunk-N6REZCKW.js";import{a as xe,b as ne,c as _e,d as ie,e as oe,f as Nt,g as re,h as we,j as Pt,k as ae,l as Se,m as It,n as le,o as se,p as pe,q as H,s as me}from"./chunk-73UOOUBD.js";import{a as ce,b as Xe,d as Gt,e as Mt,g as ke,i as et,k as de,m as tt,n as At,p as nt,q as ue,t as ve,u as Me}from"./chunk-IEVRQDB6.js";import{a as te,c as W}from"./chunk-22ZYSOTR.js";import{a as Ge}from"./chunk-LZSE733H.js";import{Db as J,E as Le,Eb as X,Fb as ee,Gb as l,Hb as I,Ib as k,Jb as vt,Kb as Ft,Lb as bt,Mb as Tt,Oa as s,Ob as q,Pb as Vt,Q as ye,Qb as De,Rb as Dt,Sb as ze,Ua as S,Va as Z,W as x,Wb as Ye,Y as j,ab as d,cb as c,eb as fe,ec as G,ga as h,gc as Ot,ha as y,hb as _,ib as V,jb as D,kb as O,la as wt,lb as r,mb as o,nb as u,ob as F,p as He,pb as b,qb as Ve,qc as Ze,rb as v,sa as St,sb as C,ta as kt,tb as p,wb as N,xb as P,yb as E,zc as Et}from"./chunk-QHJTF3V4.js";import{a as U,c as xt}from"./chunk-7CGTOI24.js";function Wt(t,i){if(t&1&&(r(0,"p"),l(1),o()),t&2){let e=p();s(),I(e._data().message)}}var Kt={title:"Are you sure?",confirmText:"Confirm",cancelText:"Cancel"},Oe=class t{data=kt();_data=G(()=>U(U({},Kt),this.data()));closed=St();close(i="confirm"){this.closed.emit(i==="confirm")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-confirm-dialog"]],inputs:{data:[1,"data"]},outputs:{closed:"closed"},standalone:!0,features:[q],decls:10,vars:4,consts:[["header",""],["content",""],["footer",""],["spk-button","",1,"",3,"click"],["spk-button","",1,"raised","primary",3,"click"]],template:function(e,n){e&1&&(r(0,"header",0)(1,"h3"),l(2),o()(),r(3,"div",1),d(4,Wt,2,1,"p"),o(),r(5,"footer",2)(6,"button",3),C("click",function(){return n.close("cancel")}),l(7),o(),r(8,"button",4),C("click",function(){return n.close("confirm")}),l(9),o()()),e&2&&(s(2),I(n._data().title),s(2),_(n._data().message?4:-1),s(3),I(n._data().cancelText),s(2),I(n._data().confirmText))},styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};var it=class t{fromString(i){if(!i)return null;let e=i.match(/(\d+)([smhDWMY])/);return e&&{value:parseInt(e[1]),unit:e[2]}}toString(i,e){return`${i}${e}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ee=class t{#e=x(Ge);s3Providers=M(this.getS3Config("Providers"));s3Regions=M(this.getS3Config("Regions"));s3RegionHosts=M(this.getS3Config("RegionHosts"));s3StorageClasses=M(this.getS3Config("StorageClasses"));storjSatellites=M(this.getStorjConfig("Satellites"));storjAuthenticationMethods=M(this.getStorjConfig("AuthenticationMethods"));openstackProviders=M(this.getOpenstackConfig("Providers"));openstackVersions=M(this.getOpenstackConfig("Versions"));gcsLocations=M(this.getGcsConfig("Locations"));gcsStorageClasses=M(this.getGcsConfig("StorageClasses"));getS3Config(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-getconfig",requestBody:{"s3-config":i}}).pipe(He(e=>this.#n(e)))}createS3IamUser(i,e){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"CanCreateUser","s3-username":i,"s3-password":e}})}createS3PolicyIAM(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"s3-iamconfig",requestBody:{"s3-operation":"GetPolicyDoc",path:i}})}getStorjConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"storj-getconfig",requestBody:{"storj-config":i}}).pipe(He(e=>this.#n(e)))}getOpenstackConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"openstack-getconfig",requestBody:{"openstack-config":i}}).pipe(He(e=>this.#n(e)))}getGcsConfig(i){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"gcs-getconfig",requestBody:{"gcs-config":i}}).pipe(He(e=>this.#n(e)))}#n(i){return(i.Result&&typeof i.Result=="object"&&Object.entries(i.Result).map(([e,n])=>({key:e,value:n})))??[]}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var be=new H,qe={file:{customFields:{path:{type:"FolderTree",name:"path",shortDescription:"File path",longDescription:"The path to store the backup",formElement:t=>be.control(t??"")}}},ssh:{customFields:{server:{type:"String",name:"server",shortDescription:"Server",longDescription:"The server to connect to",formElement:t=>be.control(t??"")},port:{type:"Integer",name:"port",shortDescription:"Port",longDescription:"The port to connect to",formElement:t=>be.control(t??"",[_e.required,_e.max(65535)])},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>be.control(t??"")}},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"}]},s3:{customFields:{bucket:{type:"String",name:"bucket",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>be.control(t??"")},path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>be.control(t??"")}},dynamicFields:[{name:"s3-server-name",shortDescription:"Server",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).s3Providers},"use-ssl","auth-username","auth-password"],advancedFields:[{name:"s3-client",type:"Enumeration",options:["aws","minio"]},{name:"s3-storage-class",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).s3StorageClasses}]},gcs:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Bucket name",longDescription:"Bucket name",formElement:t=>be.control(t??"")}},dynamicFields:[{name:"gcs-location",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).gcsLocations},{name:"gcs-storage-class",type:"NonValidatedSelectableString",loadOptions:t=>t.get(Ee).gcsStorageClasses},"authid"]},googledrive:{oauthField:"authid",customFields:{path:{type:"Path",name:"path",shortDescription:"Folder path",longDescription:"Folder path",formElement:t=>be.control(t??"")}},dynamicFields:["authid"]}};function Re(t,i){let e={},n={};return i.searchParams.forEach((a,m)=>{qe[t].dynamicFields?.includes(m)?n[m]=decodeURIComponent(a):e[m]=decodeURIComponent(a)}),{advanced:e,dynamic:n}}function We(t){let i=t.map(([e,n])=>`${e}=${n?encodeURIComponent(n.toString()):""}`).join("&");return i?"?"+i:""}var $e={file:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${i}`},from:(t,i,e)=>{let n=e.indexOf("file:///")===0,a=e.split(n?"///":"//")[1].substring(0,1)+i.hostname.substring(1);return U({destinationType:t,custom:{path:`${n?"/":""}${a}${i.pathname}`}},Re(t,i))}},ssh:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.server}${t.custom.port?":"+t.custom.port:""}${t.custom.path.startsWith("/")?t.custom.path:"/"+t.custom.path}${i}`},from:(t,i,e)=>U({destinationType:t,custom:{server:i.hostname,port:i.port,path:i.pathname}},Re(t,i))},s3:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.bucket}${t.custom.path.startsWith("/")?t.custom.path:"/"+t.custom.path}${i}`},from:(t,i,e)=>U({destinationType:t,custom:{path:i.pathname,bucket:i.hostname}},Re(t,i))},gcs:{to:t=>{let i=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${t.custom.path}${i}`},from:(t,i,e)=>{let{advanced:n,dynamic:a}=Re(t,i);return{destinationType:t,custom:{path:i.hostname+i.pathname},dynamic:a,advanced:n}}},googledrive:{to:t=>{let i=t.custom.path,e=We([...Object.entries(t.advanced),...Object.entries(t.dynamic)]);return`${t.destinationType}://${i}${e}`},from:(t,i,e)=>{let{advanced:n,dynamic:a}=Re(t,i);return{destinationType:t,custom:{path:i.hostname+i.pathname},dynamic:a,advanced:n}}},fallbackMapper:{to:t=>"",from:(t,i,e)=>U({destinationType:t},Re(t,i))}};function ot(t){let i=t.destinationType;return!i||!$e.hasOwnProperty(i)?$e.fallbackMapper.to(t)??"":$e[i].to(t)??""}function ut(t){let i=URL.canParse(t),e=t.split("://")[0],n="http://"+t.split("://")[1],a=new URL(n);if(!$e.hasOwnProperty(e))return $e.fallbackMapper.from(e,a);if(!i)throw new Error("Invalid target path");return $e[e].from(e,a,t)}var $t=/[a-zA-Z0-9_\-\+\.!@#$%^&*?_~()-]/,rt=class t{generate(i,e=$t){let n;do n=this.generatePassword(i,e);while(this.calculatePasswordStrength(n)<5);return n}generatePassword(i,e=$t){let n=this;return Array.apply(null,{length:i}).map(()=>{let a;for(;;)if(a=String.fromCharCode(n.#e()),e.test(a))return a},this).join("")}calculatePasswordStrength(i){let e=1;return i.length>=8&&e++,i.match(/[a-z]/)&&i.match(/[A-Z]/)&&e++,i.match(/\d+/)&&e++,i.match(/.[!,@,#,$,%,^,&,*,?,_,~,(,),-]/)&&e++,Math.min(e,5)}#e(){if(window.crypto&&window.crypto.getRandomValues){let i=new Uint8Array(1);return window.crypto.getRandomValues(i),i[0]}else if(window.msCrypto&&window.msCrypto.getRandomValues){let i=new Uint8Array(1);return window.msCrypto.getRandomValues(i),i[0]}else return Math.floor(Math.random()*256)}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var Qt=["formRef"];function Yt(t,i){if(t&1&&(r(0,"option",14),l(1),o()),t&2){let e=i.$implicit;c("value",e.Key),s(),I(e.DisplayName)}}function Zt(t,i){if(t&1&&u(0,"spk-progress-bar",25),t&2){let e=p(3);fe("warn",e.calculatePasswordStrength()===1)("tertiary",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),c("value",e.calculatePasswordStrength()*(100/5))}}function Jt(t,i){t&1&&(r(0,"span",20),l(1,"Passwords do not match"),o())}function Xt(t,i){t&1&&(r(0,"spk-icon"),l(1,"eye-slash"),o(),l(2," hide "))}function en(t,i){t&1&&(r(0,"spk-icon"),l(1,"eye"),o(),l(2," show "))}function tn(t,i){t&1&&(r(0,"spk-icon",27),l(1,"check"),o())}function nn(t,i){t&1&&(r(0,"spk-icon"),l(1,"copy"),o())}function on(t,i){if(t&1){let e=v();r(0,"button",26),C("click",function(){h(e);let a=p(3);return y(a.copyPassword())}),d(1,tn,2,0,"spk-icon",27)(2,nn,2,0,"spk-icon"),l(3),o()}if(t&2){let e=p(3);s(),_(e.copiedPassword()?1:2),s(2),k(" ",e.copiedPassword()?"Copied":"Copy"," password ")}}function rn(t,i){t&1&&(r(0,"spk-alert",24),l(1," Tip: Be sure to save your password. If you loose it you will lose access to your backups. "),o())}function an(t,i){if(t&1){let e=v();r(0,"div",15)(1,"spk-form-field")(2,"label",16),l(3," Create a password "),r(4,"sup"),l(5,"*"),o()(),u(6,"input",17),o(),d(7,Zt,1,9,"spk-progress-bar",18),r(8,"spk-form-field"),u(9,"input",19),d(10,Jt,2,0,"span",20),o(),r(11,"div",21)(12,"button",22),C("click",function(){h(e);let a=p(2);return y(a.showPassword.set(!a.showPassword()))}),d(13,Xt,3,0)(14,en,3,0),o(),r(15,"button",22),C("click",function(){h(e);let a=p(2);return y(a.generatePassword())}),r(16,"spk-icon"),l(17,"password"),o(),l(18," Generate password "),o(),d(19,on,4,2,"button",23),o(),d(20,rn,2,0,"spk-alert",24),o()}if(t&2){let e=p(2);s(6),c("type",e.showPassword()?"text":"password"),s(),_(e.generalForm.value.password?7:-1),s(2),c("type",e.showPassword()?"text":"password"),s(),_(e.generalForm.value.repeatPassword&&e.generalForm.value.repeatPassword!==e.generalForm.value.password?10:-1),s(3),_(e.showPassword()?13:14),s(6),_(e.showCopyPassword()?19:-1),s(),_(e.generalForm.value.password&&e.generalForm.value.password===e.generalForm.value.repeatPassword?20:-1)}}function ln(t,i){if(t&1&&(r(0,"spk-select",11)(1,"label",12),l(2,"Encryption"),o(),u(3,"input",13),D(4,Yt,2,2,"option",14,V),o(),d(6,an,21,7,"div",15)),t&2){let e=p();c("displayFn",e.displayFn()),s(4),O(e.encryptionOptions()),s(2),_(e.encryptionFieldSignal()!==""?6:-1)}}function sn(t,i){if(t&1&&(r(0,"button",9),l(1," Continue "),r(2,"spk-icon"),l(3,"arrow-right"),o()()),t&2){let e=p();c("disabled",e.generalForm.invalid)}}function pn(t,i){if(t&1&&(r(0,"spk-tooltip",10)(1,"button",9),l(2," Continue "),r(3,"spk-icon"),l(4,"arrow-right"),o()()()),t&2){let e=p();c("disabled",!(e.showCopyPassword()&&!e.copiedPassword())),s(),c("disabled",e.generalForm.invalid||e.showCopyPassword()&&!e.copiedPassword())}}var Be=new H,Bt=(t={name:"",description:"",encryption:"",password:"",repeatPassword:""})=>Be.group({name:Be.control(t.name,[_e.required]),description:Be.control(t.description),encryption:Be.control(t.encryption,[Rt()]),password:Be.control(t.password,[dt(i=>i?.value.encryption!=="",[_e.required])]),repeatPassword:Be.control(t.repeatPassword,[dt(i=>i?.value.encryption!=="",[_e.required])])}),_t={Key:"",DisplayName:"None"},ft=class t{#e=x(W);#n=x(te);#i=x(rt);#o=x(K);#t=x(Je);formRef=Z.required("formRef");generalForm=this.#o.generalForm;generalFormSignal=this.#o.generalFormSignal;encryptionFieldSignal=this.#o.encryptionFieldSignal;encryptionOptions=this.#o.encryptionOptions;isNew=this.#o.isNew;showPassword=S(!1);copiedPassword=S(!1);showCopyPassword=S(!1);encryptionEffect=Ot(()=>{let i=this.encryptionFieldSignal();console.log(i===""),i===""&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))},{allowSignalWrites:!0});calculatePasswordStrength=G(()=>{let e=this.generalFormSignal()?.password??"";return this.#i.calculatePasswordStrength(e)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#o.exit()}async copyPassword(){let i=this.generalForm.controls.password.value;await this.#r(i??""),this.copiedPassword.set(!0)}async#r(i){try{await navigator.clipboard.writeText(i)}catch{try{let n=document.createElement("textarea");n.value=i,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(n){console.error("Failed to copy text: ",n)}}}displayFn(){let i=this.#t.systemInfo()?.EncryptionModules??[];return e=>{let n=[_t,...i].find(a=>a.Key===e);return n?`${n.DisplayName}`:""}}generatePassword(){this.copiedPassword.set(!1);let i=this.#i.generate(16);this.generalForm.controls.password.setValue(i),this.generalForm.controls.repeatPassword.setValue(i),this.showCopyPassword.set(!0)}next(){this.#e.navigate(["destination"],{relativeTo:this.#n.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-general"]],viewQuery:function(e,n){e&1&&J(n.formRef,Qt,5),e&2&&X()},standalone:!0,features:[q],decls:22,vars:3,consts:[["formRef",""],["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],["for","backupName"],["type","text","tabindex","1","placeholder","Your backup name","formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder","Your backup description","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","Encryption","formControlName","encryption"],[3,"value"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder","Password","formControlName","password",3,"type"],[1,"raised",3,"warn","tertiary","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder","Repeat password","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(e,n){if(e&1){let a=v();r(0,"form",1,0),C("submit",function(){return h(a),y(n.next())}),r(2,"h3",2),l(3,"General backup settings"),o(),r(4,"spk-form-field")(5,"label",3),l(6," Backup name "),r(7,"sup"),l(8,"*"),o()(),u(9,"input",4),o(),r(10,"spk-form-field")(11,"label",5),l(12,"Backup description"),o(),u(13,"textarea",6),o(),d(14,ln,7,2),r(15,"div",7)(16,"button",8),C("click",function(){return h(a),y(n.exit())}),r(17,"spk-icon"),l(18,"arrow-left"),o(),l(19," Exit "),o(),d(20,sn,4,1,"button",9)(21,pn,5,2,"spk-tooltip",10),o()()}e&2&&(c("formGroup",n.generalForm),s(14),_(n.isNew()?14:-1),s(6),_(n.encryptionFieldSignal()===""?20:21))},dependencies:[me,re,se,pe,ne,ie,oe,ae,le,de,ue,ke,ce,At,Xe,Me],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap: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 mn=["formRef"],cn=(t,i)=>({index:t,formView:i,formGroupName:"advancedOptions",destinationType:null,oauthField:null}),dn=t=>({$implicit:t});function un(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function fn(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e.value),s(),I(e.name)}}function _n(t,i){if(t&1){let e=v();r(0,"button",23,2),C("click",function(){let a=h(e).$implicit,m=p();return y(m.addNewOption(a))}),l(2),o()}if(t&2){let e=i.$implicit;s(2),I(e.name)}}function gn(t,i){t&1&&Ve(0)}function Cn(t,i){if(t&1&&d(0,gn,1,0,"ng-container",24),t&2){let e=i.$implicit,n=i.$index;p();let a=ee(39);c("ngTemplateOutlet",a)("ngTemplateOutletContext",De(5,dn,Dt(2,cn,n,e)))}}function hn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function yn(t,i){if(t&1&&(r(0,"app-file-tree",27)(1,"label",33),l(2),d(3,hn,3,1,"spk-tooltip",34),o(),u(4,"input",35),o()),t&2){let e,n=p().$implicit,a=p();c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name))("accepts",n.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function xn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function wn(t,i){if(t&1&&(r(0,"app-file-tree",28)(1,"label",33),l(2),d(3,xn,3,1,"spk-tooltip",34),o(),u(4,"input",35),o()),t&2){let e,n=p().$implicit,a=p();c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name)),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function Sn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function kn(t,i){t&1&&(r(0,"spk-icon",36),l(1,"link"),o())}function vn(t,i){t&1&&(r(0,"spk-icon",36),l(1,"textbox"),o())}function Fn(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),d(3,Sn,3,1,"spk-tooltip",34),o(),u(4,"input",35),d(5,kn,2,0,"spk-icon",36)(6,vn,2,0,"spk-icon",36),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name),s(),_(n.formView.type==="Path"?5:6)}}function bn(t,i){if(t&1){let e=v();r(0,"span",40),C("click",function(){h(e);let a=p(2).$implicit,m=p();return y(m.oauthStartTokenCreation(a.formViewType))}),l(1,"AuthID"),o()}}function Tn(t,i){t&1&&(r(0,"spk-icon",36),l(1,"password"),o())}function Vn(t,i){if(t&1){let e=v();r(0,"spk-icon",41),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye "),o()}}function Dn(t,i){if(t&1){let e=v();r(0,"spk-icon",41),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye-slash "),o()}}function On(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),o(),u(3,"input",37),d(4,bn,2,0,"span",38)(5,Tn,2,0,"spk-icon",36)(6,Vn,2,0,"spk-icon",39)(7,Dn,2,0,"spk-icon",39),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name),c("type",n.formView.showPassword?"text":"password"),s(),_(n.oauthField===n.formView.name?4:5),s(2),_(n.formView.showPassword?6:7)}}function En(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Nn(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Pn(t,i){if(t&1&&(r(0,"spk-select")(1,"label",33),l(2),d(3,En,3,1,"spk-tooltip",34),o(),u(4,"input",42),F(5,10),D(6,Nn,2,2,"option",11,V),b(),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function In(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Gn(t,i){if(t&1&&(r(0,"option",11),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Mn(t,i){if(t&1&&(r(0,"div",29)(1,"label",33),l(2),d(3,In,3,1,"spk-tooltip",34),o(),r(4,"div",43)(5,"spk-form-field"),u(6,"input",44),r(7,"spk-icon",36),l(8,"resize"),o()(),r(9,"spk-select"),u(10,"label")(11,"input",45),F(12,10),D(13,Gn,2,2,"option",11,V),b(),o()()()),t&2){let e,n=p().$implicit,a=p();c("formGroupName",n.formView.name),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(3),P("id","destination-",n.formGroupName,"-",n.index,""),s(7),O(a.sizeOptions())}}function An(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Rn(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),d(3,An,3,1,"spk-tooltip",34),o(),u(4,"input",46),r(5,"spk-icon",36),l(6,"numpad"),o()()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function $n(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Bn(t,i){if(t&1&&(r(0,"spk-toggle",30)(1,"label",33),l(2),d(3,$n,3,1,"spk-tooltip",34),o(),u(4,"input",47),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function Un(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Hn(t,i){t&1&&(r(0,"spk-option",49),l(1,"None"),o()),t&2&&c("value","None")}function Ln(t,i){if(t&1&&(r(0,"spk-option",11),l(1),u(2,"spk-checkbox",50),o()),t&2){let e=p().$implicit;c("value",e),s(),k(" ",e," ")}}function zn(t,i){if(t&1&&d(0,Hn,2,1,"spk-option",49)(1,Ln,3,2,"spk-option",11),t&2){let e=i.$implicit;_(e==="None"?0:1)}}function jn(t,i){if(t&1&&(r(0,"spk-select",31)(1,"label",33),l(2),d(3,Un,3,1,"spk-tooltip",34),o(),u(4,"input",48),F(5,10),D(6,zn,2,1,null,null,V),b(),o()),t&2){let e,n=p().$implicit;c("selectMultiple",!0),s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function qn(t,i){if(t&1&&(r(0,"spk-tooltip",34)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Wn(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",33),l(2),d(3,qn,3,1,"spk-tooltip",34),o(),u(4,"input",35),o()),t&2){let e,n=p().$implicit;s(),P("for","destination-",n.formGroupName,"-",n.index,""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),P("id","destination-",n.formGroupName,"-",n.index,""),N("formControlName",n.formView.name)}}function Kn(t,i){if(t&1){let e=v();r(0,"div",25),F(1,26),d(2,yn,5,14,"app-file-tree",27)(3,wn,5,10,"app-file-tree",28)(4,Fn,7,10,"spk-form-field")(5,On,8,11,"spk-form-field")(6,Pn,8,9,"spk-select")(7,Mn,15,9,"div",29)(8,Rn,7,9,"spk-form-field")(9,Bn,5,9,"spk-toggle",30)(10,jn,8,7,"spk-select",31)(11,Wn,5,9,"spk-form-field"),b(),r(12,"button",32),C("click",function(){let a=h(e).$implicit,m=p();return y(m.removeFormView(a.formView,0))}),r(13,"spk-icon"),l(14,"x-circle"),o()()()}if(t&2){let e=i.$implicit;s(),c("formGroupName",e.formGroupName),s(),_(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="Size"?7:e.formView.type==="Integer"?8:e.formView.type==="Boolean"?9:e.formView.type==="Flags"?10:e.formView.type==="Timespan"?11:-1)}}var Ce=new H,Qn=["Bytes","KB","MB","GB","TB","PB"],Yn=[{value:"",name:"Keep all backups"},{value:"time",name:"Delete backups that are older than"},{value:"versions",name:"Keep a specific number of backups"},{value:"smart",name:"Smart backup retention"},{value:"custom",name:"Custom backup retention"}],Ut=(t={remoteVolumeSize:50,size:"MB",backupRetention:"",advancedOptions:[]})=>Ce.group({remoteVolumeSize:Ce.group({size:Ce.control(t.remoteVolumeSize),unit:Ce.control(t.size)}),backupRetention:Ce.control(t.backupRetention),advancedOptions:Ce.group({})}),nr=(t,i)=>Ce.group({name:Ce.control(t),value:Ce.control(i)}),gt=class t{#e=x(K);#n=x(W);#i=x(te);formRef=Z.required("formRef");optionsForm=this.#e.optionsForm;selectedOptions=this.#e.selectedOptions;nonSelectedOptions=this.#e.nonSelectedOptions;isSubmitting=this.#e.isSubmitting;sizeOptions=S(Qn);rentationOptions=S(Yn);oauthStartTokenCreation(i){}getFormFieldValue(i,e,n){return this.optionsForm.controls.advancedOptions.controls[n].value}removeFormView(i,e){this.#e.removeOptionFromFormGroup(i)}addNewOption(i){this.#e.addOptionToFormGroup(i)}retentionOptionDisplayFn(){let i=this.rentationOptions();return e=>{let n=i.find(a=>a.value===e);return n?n.name:""}}displayFn(){let i=this.#e.advancedOptions();return e=>{let n=i.find(a=>a.name===e);return n?`${n.name}`:""}}goBack(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}submit(){this.#e.submit()}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-options"]],viewQuery:function(e,n){e&1&&J(n.formRef,mn,5),e&2&&X()},standalone:!0,features:[q],decls:49,vars:5,consts:[["formRef",""],["fieldTemplate",""],["option",""],[3,"submit","formGroup"],[1,"title-30"],[1,"remote-volume-wrap"],["formGroupName","remoteVolumeSize",1,"row-inputs"],["for","size"],["type","number","id","size","formControlName","size"],["type","text","placeholder","Select an option...","formControlName","unit"],["options",""],[3,"value"],["href","#",1,"spk-primary"],[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(e,n){if(e&1){let a=v();r(0,"form",3,0),C("submit",function(){return h(a),y(n.submit())}),r(2,"h3",4),l(3,"Options"),o(),r(4,"div",5)(5,"div",6)(6,"spk-form-field")(7,"label",7),l(8,"Remote volume size"),o(),u(9,"input",8),o(),r(10,"spk-select"),u(11,"input",9),F(12,10),D(13,un,2,2,"option",11,V),b(),o()(),r(15,"p"),l(16," The backups will be split up into multiple files called volumes. Here you can set the maximum size of the individual volume files. "),r(17,"a",12),l(18,"Read more"),o()()(),r(19,"spk-select",13)(20,"label",7),l(21,"Backup retention"),o(),u(22,"input",14),D(23,fn,2,2,"option",11,V),o(),r(25,"app-toggle-card",15),F(26,16),l(27," Advanced options "),r(28,"spk-menu")(29,"button",17),l(30," Add advanced option "),r(31,"spk-icon"),l(32,"plus"),o()(),F(33,18),D(34,_n,3,1,"button",19,V),b(),o(),b(),D(36,Cn,1,7,"ng-container",null,V),o(),d(38,Kn,15,2,"ng-template",null,1,Ye),r(40,"div",20)(41,"button",21),C("click",function(){return h(a),y(n.goBack())}),r(42,"spk-icon"),l(43,"arrow-left"),o(),l(44," Go back "),o(),r(45,"button",22)(46,"spk-icon"),l(47,"arrow-right"),o(),l(48," Submit "),o()()()}e&2&&(c("formGroup",n.optionsForm),s(13),O(n.sizeOptions()),s(6),c("displayFn",n.retentionOptionDisplayFn()),s(4),O(n.rentationOptions()),s(2),c("disallowToggle",!0),s(9),O(n.nonSelectedOptions()),s(2),O(n.selectedOptions()),s(9),fe("loader",n.isSubmitting()))},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,ae,le,Se,Ze,tt,ue,ke,ce,de,ve,et,nt,Me,Ae,Fe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-column[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}.form-column[_ngcontent-%COMP%] spk-icon[_ngcontent-%COMP%]{font-size:1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:flex-end;grid-template-columns:1fr 2.5rem;gap:.5rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.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 Zn=["formRef"];function Jn(t,i){if(t&1&&(r(0,"option",24),l(1),o()),t&2){let e=i.$implicit;c("value",e.key),s(),I(e.label)}}function Xn(t,i){if(t&1){let e=v();r(0,"div",11)(1,"spk-form-field")(2,"label",12),l(3,"Next time"),o(),r(4,"input",13,1),C("focus",function(){h(e);let a=ee(5);return y(a.showPicker())}),o(),r(6,"spk-icon",14),l(7,"clock"),o()(),r(8,"spk-form-field"),u(9,"label",15),r(10,"input",16,2),C("focus",function(){h(e);let a=ee(11);return y(a.showPicker())}),o(),r(12,"spk-icon",14),l(13,"calendar"),o()()(),F(14,17),r(15,"div",18)(16,"spk-form-field")(17,"label",19),l(18,"Run again every"),o(),u(19,"input",20),o(),r(20,"spk-select",21),u(21,"input",22),F(22,23),D(23,Jn,2,2,"option",24,V),b(),o()(),r(25,"app-toggle-card",25),F(26,26),l(27,"Allowed days"),b(),r(28,"div",27)(29,"spk-toggle",6),l(30," Monday "),u(31,"input",28),o(),r(32,"spk-toggle",6),l(33," Tuesday "),u(34,"input",29),o(),r(35,"spk-toggle",6),l(36," Wednesday "),u(37,"input",30),o(),r(38,"spk-toggle",6),l(39," Thursday "),u(40,"input",31),o(),r(41,"spk-toggle",6),l(42," Friday "),u(43,"input",32),o(),r(44,"spk-toggle",6),l(45," Saturday "),u(46,"input",33),o(),r(47,"spk-toggle",6),l(48," Sunday "),u(49,"input",34),o()()(),b()}if(t&2){let e=p();s(20),c("displayFn",e.displayFn),s(3),O(e.unitOptions),s(2),c("disallowToggle",!0)}}var A=new H,Ht=[{key:"s",label:"Seconds"},{key:"m",label:"Minutes"},{key:"h",label:"Hours"},{key:"D",label:"Days"},{key:"W",label:"Weeks"},{key:"M",label:"Months"},{key:"Y",label:"Years"}],Lt=(t={autoRun:!1,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}}})=>A.group({autoRun:A.control(t.autoRun),nextTime:A.group({time:A.control(t.nextTime.time),date:A.control(t.nextTime.date)}),runAgain:A.group({repeatValue:A.control(t.runAgain.repeatValue),repeatUnit:A.control(t.runAgain.repeatUnit),allowedDays:A.group({mon:A.control(t.runAgain.allowedDays.mon),tue:A.control(t.runAgain.allowedDays.tue),wed:A.control(t.runAgain.allowedDays.wed),thu:A.control(t.runAgain.allowedDays.thu),fri:A.control(t.runAgain.allowedDays.fri),sat:A.control(t.runAgain.allowedDays.sat),sun:A.control(t.runAgain.allowedDays.sun)})})}),Ct=class t{#e=x(K);#n=x(W);#i=x(te);formRef=Z.required("formRef");scheduleForm=this.#e.scheduleForm;scheduleFormSignal=this.#e.scheduleFormSignal;unitOptions=Ht;displayFn(i){let e=Ht.find(n=>n.key===i);return e?`${e.label}`:""}goBack(){this.#n.navigate(["source-data"],{relativeTo:this.#i.parent})}next(){this.#n.navigate(["options"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-schedule"]],viewQuery:function(e,n){e&1&&J(n.formRef,Zn,5),e&2&&X()},standalone:!0,features:[q],decls:20,vars:2,consts:[["formRef",""],["timeRef",""],["dateRef",""],[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"],["options",""],[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(e,n){if(e&1){let a=v();r(0,"form",3,0),C("submit",function(){return h(a),y(n.next())}),r(2,"h3",4),l(3,"Schedule"),o(),r(4,"div",5)(5,"spk-toggle",6),l(6," Automatically run backups "),u(7,"input",7),o(),r(8,"p"),l(9,"If a date was missed, the job will run as soon as possible."),o()(),d(10,Xn,50,2),r(11,"div",8)(12,"button",9),C("click",function(){return h(a),y(n.goBack())}),r(13,"spk-icon"),l(14,"arrow-left"),o(),l(15," Go back "),o(),r(16,"button",10)(17,"spk-icon"),l(18,"arrow-right"),o(),l(19," Continue "),o()()()}if(e&2){let a;c("formGroup",n.scheduleForm),s(10),_((a=n.scheduleFormSignal())!=null&&a.autoRun?10:-1)}},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,ae,le,Se,de,ue,ve,ce,ke,Fe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap: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})};var ei=["formRef"];function ti(t,i){if(t&1&&(r(0,"option",20),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function ni(t,i){if(t&1&&(r(0,"div",13)(1,"spk-form-field"),u(2,"input",17),o(),r(3,"spk-select"),u(4,"input",18),F(5,19),D(6,ti,2,2,"option",20,V),b(),o()()),t&2){let e=p();s(6),O(e.sizeOptions())}}var he=new H,ii=["Bytes","KB","MB","GB","TB","PB"],oi=["Contains","Does not contain","Is greater than","Is less than"];var zt=(t={path:"",excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>he.group({path:he.control(t.path),excludes:he.group({hidden:he.control(t.excludes.hidden),system:he.control(t.excludes.system),temporary:he.control(t.excludes.temporary),filesLargerThan:he.group({size:he.control(null),unit:he.control(null)})})}),ht=class t{#e=x(K);#n=x(W);#i=x(te);formRef=Z.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;filesLargerThan=G(()=>this.sourceDataFormSignal()?.excludes?.filesLargerThan?.size!==null);sizeOptions=S(ii);expressionOptions=S(oi);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})}goBack(){this.#n.navigate(["destination"],{relativeTo:this.#i.parent})}next(){this.#n.navigate(["schedule"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-source-data"]],viewQuery:function(e,n){e&1&&J(n.formRef,ei,5),e&2&&X()},standalone:!0,features:[q],decls:32,vars:7,consts:[["formRef",""],[3,"submit","formGroup"],[1,"title-30"],[3,"multiSelect","startingPath"],["for","path"],["type","text","id","path","tabindex","4","placeholder","Path","formControlName","path"],["formGroupName","excludes",3,"isActive"],["title",""],[1,"raised","primary"],["type","checkbox","placeholder","Hidden files","formControlName","hidden"],["type","checkbox","placeholder","System files","formControlName","system"],["type","checkbox","placeholder","Temporary files","formControlName","temporary"],[1,"raised","primary",3,"click"],["formGroupName","filesLargerThan",1,"row-inputs"],[1,"form-actions"],["spk-button","","type","button",3,"click"],["spk-button","","type","submit",1,"raised","primary"],["type","number","formControlName","size"],["type","text","formControlName","unit","placeholder","Select an option..."],["options",""],[3,"value"]],template:function(e,n){if(e&1){let a=v();r(0,"form",1,0),C("submit",function(){return h(a),y(n.next())}),r(2,"h3",2),l(3,"Source Data"),o(),r(4,"app-file-tree",3)(5,"label",4),l(6,"Folder path"),o(),u(7,"input",5),o(),r(8,"app-toggle-card",6),F(9,7),l(10,"Exclude"),b(),r(11,"spk-toggle",8),l(12," Hidden files "),u(13,"input",9),o(),r(14,"spk-toggle",8),l(15," System files "),u(16,"input",10),o(),r(17,"spk-toggle",8),l(18," Temporary files "),u(19,"input",11),o(),r(20,"spk-toggle",12),C("click",function(){return h(a),y(n.toggleFilesLargerThan())}),l(21," Files larger than "),o(),d(22,ni,8,0,"div",13),o(),r(23,"div",14)(24,"button",15),C("click",function(){return h(a),y(n.goBack())}),r(25,"spk-icon"),l(26,"arrow-left"),o(),l(27," Go back "),o(),r(28,"button",16)(29,"spk-icon"),l(30,"arrow-right"),o(),l(31," Continue "),o()()()}e&2&&(c("formGroup",n.sourceDataForm),s(4),c("multiSelect",!0)("startingPath",n.getPath()),s(4),c("isActive",!0),s(12),fe("active",n.filesLargerThan()),s(2),_(n.filesLargerThan()?22:-1))},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,ae,le,Se,de,ce,ke,ue,ve,Ae,Fe],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.5rem}.filter-inputs[_ngcontent-%COMP%]{display:flex;gap:.5rem;align-items:flex-end}.filter-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.filter-inputs[_ngcontent-%COMP%] .filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var Q=new H,K=class t{#e=x(W);#n=x(Je);#i=x(Ge);#o=x(it);generalForm=Bt();sourceDataForm=zt();scheduleForm=Lt();destinationForm=jt();optionsForm=Ut();isDraft=S(!1);backupId=S(null);isSubmitting=S(!1);finishedLoading=S(!1);backupDefaults=S(null);isNew=G(()=>this.backupId()==="new");selectedOptions=S([]);selectedAdvancedFormPair=S([]);destinationFormPair=S({oauthField:null,custom:[],dynamic:[],advanced:[]});notSelectedAdvancedFormPair=G(()=>{let i=this.destinationFormPair()?.advanced??[],e=this.selectedAdvancedFormPair()??[];return i.filter(n=>e.findIndex(a=>a.name===n.name)===-1)});selectedHttpOptions=S([]);notSelectedHttpOptions=G(()=>{let i=this.httpOptions(),e=this.selectedHttpOptions()??[];return i.filter(n=>e.findIndex(a=>a.name===n.name)===-1)});sourceDataFormSignal=M(this.sourceDataForm.valueChanges);destinationFormSignal=M(this.destinationForm.valueChanges);generalFormSignal=M(this.generalForm.valueChanges);encryptionFieldSignal=M(this.generalForm.controls.encryption.valueChanges);scheduleFormSignal=M(this.scheduleForm.valueChanges);destinationOptions=G(()=>this.#n.backendModules()??[]);httpOptions=G(()=>this.#n.systemInfo()?.GenericModules?.find(i=>i.Key==="http-options")?.Options?.map(this.#t)??[]);advancedOptions=G(()=>this.#n.systemInfo()?.Options?.map(this.#t)??[]);#t(i){return{name:i.Name,type:i.Type,shortDescription:i.ShortDescription??void 0,longDescription:i.LongDescription??void 0,options:i.ValidValues}}encryptionOptions=G(()=>{let i=this.#n.systemInfo()?.EncryptionModules??[];return[_t,...i]});nonSelectedOptions=G(()=>this.advancedOptions().sort((i,e)=>i?.name&&e?.name?i?.name.localeCompare(e?.name):0).filter(i=>this.selectedOptions()?.findIndex(e=>e.name===i.name)===-1));addAdvancedFormPairByName(i,e,n){let a=this.notSelectedAdvancedFormPair().find(m=>m.name===i);a&&this.addAdvancedFormPair(a,e,n)}addHttpOptionByName(i,e,n){let a=this.notSelectedHttpOptions().find(m=>m.name===i);a&&this.addHttpOption(a,e,n)}addAdvancedFormPair(i,e,n){let a=this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced,m=n??i.defaultValue;this.createFormField(a,i,m),this.selectedAdvancedFormPair.set([...this.selectedAdvancedFormPair(),i])}addHttpOption(i,e,n){let a=this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced,m=n??i.defaultValue;this.createFormField(a,i,m),this.selectedHttpOptions.set([...this.selectedHttpOptions(),i])}removeAdvancedFormPair(i,e){this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced.removeControl(i.name),this.selectedAdvancedFormPair().findIndex(a=>a.name===i.name)!==-1?this.selectedAdvancedFormPair.update(a=>(a=a.filter(m=>m.name!==i.name),a)):this.selectedHttpOptions.update(a=>(a=a.filter(m=>m.name!==i.name),a))}removeHttpOption(i,e){this.destinationForm.controls.destinations.controls.at(e)?.controls.advanced.removeControl(i.name),this.selectedHttpOptions.update(n=>(n=n.filter(a=>a.name!==i.name),n))}submit(){this.isSubmitting.set(!0);let i=this.#s(),e=this.backupId();e==="new"||!e||this.isDraft()?this.#i.postApiV1Backups({requestBody:i}).pipe(Le(()=>this.isSubmitting.set(!1))).subscribe({next:n=>{console.log("submitted res",n),this.exit()},error:n=>{console.error("submitted error",n)}}):this.#i.putApiV1BackupById({id:e,requestBody:i}).pipe(Le(()=>this.isSubmitting.set(!1))).subscribe({next:n=>{console.log("submitted res",n),this.exit()},error:n=>{console.error("submitted error",n)}})}exit(){this.#m(),this.#e.navigate(["/"])}updateFieldsFromTargetUrl(i){this.#r(),setTimeout(()=>{this.#l(i)})}#r(){this.destinationFormPair.set({oauthField:null,custom:[],dynamic:[],advanced:[]}),this.selectedAdvancedFormPair.set([]),this.selectedHttpOptions.set([]),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset()}mapSourceDataToForm(i){let e=i.Sources??"",n=i.Filters?.map($=>`${$.Include?"":"-"}${$.Expression}`)??[],a=i.Settings?.find($=>$.Name==="--exclude-files-attributes")?.Value??"",m=i.Settings?.find($=>$.Name==="--skip-files-larger-than")??null,g=m?.Value.replace(/[0-9]/g,"")??null,R=m?.Value.replace(/[^0-9]/g,"")??null,B={path:[...e,...n].join("\0"),excludes:{hiddenFiles:a.includes("hidden"),systemFiles:a.includes("system"),tempFiles:a.includes("temporary"),filesLargerThan:g&&R?{size:parseInt(R),unit:g.toUpperCase()}:null}};this.sourceDataForm.patchValue(B)}mapDestinationToForm(i){let e=i.TargetURL?ut(i.TargetURL):null;e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced},!0)}#l(i){let e=ut(i);e&&this.addDestinationFormGroup(e.destinationType,{custom:e.custom,dynamic:e.dynamic,advanced:e.advanced},!0)}mapGeneralToForm(i){let e=i.Settings?.find(m=>m.Name==="encryption-module"),n=e?.Value&&e.Value.length?e.Value:"",a={name:i.Name??"",description:i.Description??""};n&&n!==""&&(a.encryption=n),this.generalForm.patchValue(a)}mapScheduleToForm(i){if(!i){this.scheduleForm.patchValue({autoRun:!0});return}let e=this.#o.fromString(i.Repeat)??null,a={nextTime:this.#p(i.Time),runAgain:{repeatValue:e?.value??1,repeatUnit:e?.unit??"D",allowedDays:{mon:i.AllowedDays?.includes("mon")??!1,tue:i.AllowedDays?.includes("tue")??!1,wed:i.AllowedDays?.includes("wed")??!1,thu:i.AllowedDays?.includes("thu")??!1,fri:i.AllowedDays?.includes("fri")??!1,sat:i.AllowedDays?.includes("sat")??!1,sun:i.AllowedDays?.includes("sun")??!1}}};this.scheduleForm.patchValue(a)}mapOptionsToForms(i){let e=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than"],n=this.advancedOptions();i.Settings?.forEach(a=>{if(a.Name==="encryption-module")return this.generalForm.controls.encryption.setValue(a.Value??"");if(!(a.Name&&e.includes(a.Name))){if(a.Name==="dblock-size"){let m=a.Value?.replace(/[^0-9]/g,""),g=a.Value?.replace(/[0-9]/g,"");return this.optionsForm.controls.remoteVolumeSize.setValue({size:m?parseInt(m):null,unit:g?g.toUpperCase():null})}if(a.Name&&a.Value){let m=n.find(g=>g.name===a.Name);if(!m)return;this.addOptionToFormGroup(m,a.Value)}}})}getCurrentTargetUrl(){return this.#a(this.destinationForm.controls.destinations)}#s(){let i=this.generalForm.value,e=this.optionsForm.value,n=this.scheduleForm.value,a=this.sourceDataForm.value,g=this.destinationForm.value.destinations?.length?this.#a(this.destinationForm.controls.destinations):[],R=null;n.runAgain?.repeatUnit&&n.runAgain?.repeatValue&&(R=this.#o.toString(n.runAgain.repeatValue,n.runAgain.repeatUnit));let B=n.runAgain?.allowedDays?Object.entries(n.runAgain?.allowedDays).filter(([f,w])=>w).map(([f,w])=>f):[],$=a.path?.split("\0")??[],pt=i.encryption===""?{Name:"--no-encryption",Value:"True"}:{Name:"encryption-module",Value:i.encryption??null},mt=this.advancedOptions(),Ke=Object.entries(e.advancedOptions??{}).filter(([f,w])=>f&&w).map(([f,w])=>{let L=mt.find(z=>z.name===f);return L?.type==="Size"?{Name:f,Value:`${w.size}${w.unit.toLowerCase()}`}:L?.type==="Integer"?{Name:f,Value:w.toString()}:L?.type==="Boolean"?{Name:f,Value:w.toString()}:{Name:f,Value:w}}),Ne=[pt,...Ke],Pe=Object.entries(a.excludes??{}).filter(([f,w])=>w&&f!=="filesLargerThan").map(([f])=>f),T=a.excludes?.filesLargerThan;return Pe.length&&Ne.push({Name:"--exclude-files-attributes",Value:Pe.join(",")}),T&&T.size!==null&&T.unit!==null&&Ne.push({Name:"--skip-files-larger-than",Value:`${T.size}${T.unit}`}),{Backup:{Name:i.name,Description:i.description,TargetURL:g[0]??null,Sources:$.filter(f=>!f.startsWith("-")),Settings:Ne,Filters:$.filter(f=>f.startsWith("-")).map((f,w)=>({Order:w,Include:!1,Expression:f.slice(1)}))},Schedule:n.autoRun?{Repeat:R,Time:n.nextTime?.date?new Date(`${n.nextTime.date}T${n.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:B}:null}}#a(i){return i.controls.map(e=>ot(e.value))}#p(i){if(!i||i?.indexOf("T")===-1)return{time:i??"13:00"};let e=new Date(i),n={time:`${(""+e.getHours()).padStart(2,"0")}:${(""+e.getMinutes()).padStart(2,"0")}`};return i.indexOf("T")!==-1&&(n.date=e.toISOString().split("T")[0]),n}removeOptionFromFormGroup(i){let e=i.name;e&&(this.optionsForm.controls.advancedOptions.removeControl(e),this.selectedOptions.update(n=>(n=n.filter(a=>a.name!==e),n)))}addOptionToFormGroup(i,e){let n=this.optionsForm.controls.advancedOptions;this.createFormField(n,i,e??i.defaultValue),this.selectedOptions.update(a=>(a.push(i),a))}createFormField(i,e,n){if(e.type==="String"||e.type==="FileTree"||e.type==="FolderTree"||e.type==="Password"||e.type==="Enumeration"||e.type==="NonValidatedSelectableString"||e.type==="Path"){i.addControl(e.name,Q.control(n));return}if(e.type==="Size"){let a=n.replace(/[0-9]/g,""),m=n.replace(/[^0-9]/g,"");i.addControl(e.name,Q.group({size:Q.control(m?parseInt(m):50),unit:Q.control(a?a.toUpperCase():"MB")}));return}if(e.type==="Integer"){i.addControl(e.name,Q.control(n?parseInt(n):0));return}if(e.type==="Boolean"){i.addControl(e.name,Q.control(n==="true"));return}if(e.type==="Flags"){i.addControl(e.name,Q.control(n??""));return}if(e.type==="Timespan"){i.addControl(e.name,Q.control(n,[_e.pattern(/([-+]?\d{1,3}[smhDWMY])+/)]));return}}addDestinationFormGroup(i,e,n=!1){let a=this.destinationOptions().find(T=>T.Key===i),m=this.httpOptions();if(!a||!a.Options)return;let g=qe.hasOwnProperty(i)&&qe[i],R=g&&g.oauthField?g.oauthField:null,B=g&&g.customFields?g.customFields:{},$=g&&g.dynamicFields?g.dynamicFields:[],pt=g&&g.advancedFields?g.advancedFields:[],mt=g&&g.ignoredAdvancedFields?g.ignoredAdvancedFields:[];this.destinationFormPair.set({oauthField:R,custom:[],dynamic:[],advanced:[]});let Ke=Q.group({}),Ne=Q.group({}),Pe=Q.group({});B&&Object.entries(B).forEach(([T,f],w)=>{let Te=f,{formElement:L}=Te,z=xt(Te,["formElement"]);Ke.addControl(T,L(e?.custom[T])),this.destinationFormPair.update(Ie=>(Ie.custom.push(U({order:900+w},z)),Ie))});for(let T=0;T<a.Options.length;T++){let f=a.Options[T];if(f.Deprecated)continue;let w=$.find(L=>L===f.Name||L.name===f.Name);if(w){let L=w&&typeof w!="string",z={name:f.Name,type:f.Type,shortDescription:f.ShortDescription??void 0,longDescription:f.LongDescription??void 0,options:f.ValidValues,order:900+T},Te=L?U(U({},z),w):z,Qe=e?.dynamic[f.Name]??f.DefaultValue;this.createFormField(Ne,Te,Qe),this.destinationFormPair.update(Ue=>(Ue.dynamic.push(Te),Ue))}else{if(mt.find(Y=>Y===f.Name))continue;let z=pt.find(Y=>Y===f.Name||Y.name===f.Name),Te=z&&typeof z!="string",Ie=e?.advanced[f.Name],Qe=Ie??f.DefaultValue,Ue={name:f.Name,type:f.Type,shortDescription:f.ShortDescription??void 0,longDescription:f.LongDescription??void 0,options:f.ValidValues,defaultValue:Qe,order:900+T},ct=Te?U(U({},Ue),z):Ue;n&&Ie&&(this.createFormField(Pe,ct,Qe),this.selectedAdvancedFormPair.update(Y=>(Y.push(ct),Y))),this.destinationFormPair.update(Y=>(Y.advanced.push(ct),Y))}}for(let T=0;T<m.length;T++){let f=m[T],w=e?.advanced[f.name],L=w??f.defaultValue;n&&w&&(this.createFormField(Pe,f,L),this.selectedHttpOptions.update(z=>(z.push(f),z)))}this.destinationFormPair.update(T=>({oauthField:T.oauthField,custom:T.custom.sort((f,w)=>f.order-w.order),dynamic:T.dynamic.sort((f,w)=>f.order-w.order),advanced:T.advanced.sort((f,w)=>f.order-w.order)})),this.destinationForm.controls.destinations.push(qt({key:a.Key,customGroup:Ke,dynamicGroup:Ne,advancedGroup:Pe}))}#m(){this.generalForm.reset(),this.destinationForm.controls.destinations.clear(),this.destinationForm.reset(),this.sourceDataForm.reset(),this.scheduleForm.reset(),this.optionsForm.reset()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})};var ri=["formRef"],ai=(t,i,e,n)=>({index:t,formView:i,formGroupName:"custom",destinationType:e,oauthField:n}),st=t=>({$implicit:t}),li=(t,i,e,n)=>({index:t,formView:i,formGroupName:"dynamic",destinationType:e,oauthField:n}),si=(t,i,e,n)=>({index:t,formView:i,formGroupName:"advanced",destinationType:e,oauthField:n}),pi=(t,i,e,n)=>({index:t,formView:i,formGroupName:"advanced",asHttpOptions:!0,destinationType:e,oauthField:n}),mi=()=>({maxWidth:"700px",width:"100%"});function ci(t,i){t&1&&(l(0," Connected "),r(1,"spk-icon"),l(2,"check"),o())}function di(t,i){t&1&&l(0," Test destination ")}function ui(t,i){if(t&1){let e=v();r(0,"button",8),C("click",function(){h(e);let a=p();return y(a.testDestination())}),d(1,ci,3,0,"spk-icon")(2,di,1,0),o()}if(t&2){let e=p();fe("success",e.successfulTest()),s(),_(e.successfulTest()?1:2)}}function fi(t,i){if(t&1){let e=v();r(0,"p",14),C("click",function(){h(e);let a=p();return y(a.removeDestinationFormGroup(a.destinationCount()-1))}),l(1," Want to select another destination? "),r(2,"span",15),l(3,"Click here"),o()()}}function _i(t,i){if(t&1){let e=v();r(0,"div",16)(1,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("file"))}),r(2,"h3"),l(3,"File system"),o(),r(4,"p"),l(5,"Store backups on your local file system."),o()(),r(6,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("gcs"))}),r(7,"h3"),l(8,"Google Cloud Storage"),o(),r(9,"p"),l(10,"Store backups in Google Cloud Storage."),o()(),r(11,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("s3"))}),r(12,"h3"),l(13,"S3 compatible bucket"),o(),r(14,"p"),l(15,"Store backups in any S3 compatible bucket."),o()(),r(16,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("ssh"))}),r(17,"h3"),l(18,"SSH"),o(),r(19,"p"),l(20,"Store backups in SSH."),o()(),r(21,"div",17),C("click",function(){h(e);let a=p();return y(a.addDestinationFormGroup("googledrive"))}),r(22,"h3"),l(23,"Google Drive"),o(),r(24,"p"),l(25,"Store backups in Google Drive."),o()()(),r(26,"p"),l(27,"More destinations are coming soon."),o()}}function gi(t,i){t&1&&Ve(0)}function Ci(t,i){if(t&1&&d(0,gi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,ai,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function hi(t,i){t&1&&Ve(0)}function yi(t,i){if(t&1&&d(0,hi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,li,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function xi(t,i){if(t&1){let e=v();r(0,"button",24),C("click",function(){let a=h(e).$implicit,m=p(2);return y(m.addAdvancedFormPair(a,0))}),l(1),o()}if(t&2){let e=i.$implicit;s(),k(" ",e.name," ")}}function wi(t,i){t&1&&Ve(0)}function Si(t,i){if(t&1&&d(0,wi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,si,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function ki(t,i){if(t&1){let e=v();r(0,"button",24),C("click",function(){let a=h(e).$implicit,m=p(2);return y(m.addHttpOption(a,0))}),l(1),o()}if(t&2){let e=i.$implicit;s(),k(" ",e.name," ")}}function vi(t,i){t&1&&Ve(0)}function Fi(t,i){if(t&1&&d(0,vi,1,0,"ng-container",23),t&2){let e,n=i.$implicit,a=i.$index;p();let m=ee(33),g=p();c("ngTemplateOutlet",m)("ngTemplateOutletContext",De(7,st,ze(2,pi,a,n,(e=g.destinationFormSignal())==null||e.destinations==null||e.destinations[0]==null?null:e.destinations[0].destinationType,g.destinationFormPair().oauthField)))}}function bi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ti(t,i){if(t&1&&(r(0,"app-file-tree",27)(1,"label",34),l(2),d(3,bi,3,1,"spk-tooltip",35),o(),u(4,"input",36),o()),t&2){let e,n=p().$implicit,a=p(2);c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name))("accepts",n.formView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Vi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Di(t,i){if(t&1&&(r(0,"app-file-tree",28)(1,"label",34),l(2),d(3,Vi,3,1,"spk-tooltip",35),o(),u(4,"input",36),o()),t&2){let e,n=p().$implicit,a=p(2);c("startingPath",a.getFormFieldValue(0,n.formGroupName,n.formView.name)),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Oi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Ei(t,i){t&1&&(r(0,"spk-icon",37),l(1,"link"),o())}function Ni(t,i){t&1&&(r(0,"spk-icon",37),l(1,"textbox"),o())}function Pi(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),d(3,Oi,3,1,"spk-tooltip",35),o(),u(4,"input",36),d(5,Ei,2,0,"spk-icon",37)(6,Ni,2,0,"spk-icon",37),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),s(),_(n.formView.type==="Path"?5:6)}}function Ii(t,i){if(t&1){let e=v();r(0,"span",41),C("click",function(){h(e);let a=p(2).$implicit,m=p(2);return y(m.oauthStartTokenCreation(a.destinationType))}),l(1,"AuthID"),o()}}function Gi(t,i){t&1&&(r(0,"spk-icon",37),l(1,"password"),o())}function Mi(t,i){if(t&1){let e=v();r(0,"spk-icon",42),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye "),o()}}function Ai(t,i){if(t&1){let e=v();r(0,"spk-icon",42),C("click",function(){h(e);let a=p(2).$implicit;return y(a.formView.showPassword=!a.formView.showPassword)}),l(1," eye-slash "),o()}}function Ri(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),o(),u(3,"input",38),d(4,Ii,2,0,"span",39)(5,Gi,2,0,"spk-icon",37)(6,Mi,2,0,"spk-icon",40)(7,Ai,2,0,"spk-icon",40),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),c("type",n.formView.showPassword?"text":"password"),s(),_(n.oauthField===n.formView.name?4:5),s(2),_(n.formView.showPassword?6:7)}}function $i(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Bi(t,i){if(t&1&&(r(0,"option",45),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Ui(t,i){if(t&1&&(r(0,"spk-select")(1,"label",34),l(2),d(3,$i,3,1,"spk-tooltip",35),o(),u(4,"input",43),F(5,44),D(6,Bi,2,2,"option",45,V),b(),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function Hi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Li(t,i){if(t&1&&(r(0,"option",45),l(1),o()),t&2){let e=i.$implicit;c("value",e.value),s(),vt(" ",e.key," ",e.value?"("+e.value+")":""," ")}}function zi(t,i){if(t&1&&(r(0,"spk-select",29)(1,"label",34),l(2),d(3,Hi,3,1,"spk-tooltip",35),o(),u(4,"input",43),F(5,44),D(6,Li,2,3,"option",45,V),b(),o()),t&2){let e,n=p().$implicit,a=p(2);c("isFreeText",!0),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name),s(2),O(n.formView.loadOptions(a.injector)())}}function ji(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function qi(t,i){if(t&1&&(r(0,"option",45),l(1),o()),t&2){let e=i.$implicit;c("value",e),s(),I(e)}}function Wi(t,i){if(t&1&&(r(0,"div",30)(1,"label",34),l(2),d(3,ji,3,1,"spk-tooltip",35),o(),r(4,"div",46)(5,"spk-form-field"),u(6,"input",47),r(7,"spk-icon",37),l(8,"resize"),o()(),r(9,"spk-select"),u(10,"label")(11,"input",48),F(12,44),D(13,qi,2,2,"option",45,V),b(),o()()()),t&2){let e,n=p().$implicit,a=p(2);c("formGroupName",n.formView.name),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(3),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(7),O(a.sizeOptions())}}function Ki(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Qi(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),d(3,Ki,3,1,"spk-tooltip",35),o(),u(4,"input",49),r(5,"spk-icon",37),l(6,"numpad"),o()()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Yi(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Zi(t,i){if(t&1&&(r(0,"spk-toggle",31)(1,"label",34),l(2),d(3,Yi,3,1,"spk-tooltip",35),o(),u(4,"input",50),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function Ji(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function Xi(t,i){t&1&&(r(0,"spk-option",52),l(1,"None"),o()),t&2&&c("value","None")}function eo(t,i){if(t&1&&(r(0,"spk-option",45),l(1),u(2,"spk-checkbox",53),o()),t&2){let e=p().$implicit;c("value",e),s(),k(" ",e," ")}}function to(t,i){if(t&1&&d(0,Xi,2,1,"spk-option",52)(1,eo,3,2,"spk-option",45),t&2){let e=i.$implicit;_(e==="None"?0:1)}}function no(t,i){if(t&1&&(r(0,"spk-select",32)(1,"label",34),l(2),d(3,Ji,3,1,"spk-tooltip",35),o(),u(4,"input",51),F(5,44),D(6,to,2,1,null,null,V),b(),o()),t&2){let e,n=p().$implicit;c("selectMultiple",!0),s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),N("formControlName",n.formView.name),s(2),O(n.formView.options)}}function io(t,i){if(t&1&&(r(0,"spk-tooltip",35)(1,"spk-icon"),l(2,"question"),o()()),t&2){let e=p(2).$implicit;c("message",e.formView.longDescription)}}function oo(t,i){if(t&1&&(r(0,"spk-form-field")(1,"label",34),l(2),d(3,io,3,1,"spk-tooltip",35),o(),u(4,"input",36),o()),t&2){let e,n=p().$implicit;s(),E("for","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),s(),k(" ",(e=n.formView.shortDescription)!==null&&e!==void 0?e:n.formView.name," "),s(),_(n.formView.longDescription?3:-1),s(),E("id","destination-",n.formGroupName,"-",n.index,"-",n.asHttpOptions?"http":"other",""),N("formControlName",n.formView.name)}}function ro(t,i){if(t&1){let e=v();r(0,"button",54),C("click",function(){h(e);let a=p().$implicit,m=p(2);return y(m.removeFormView(a.formView,0))}),r(1,"spk-icon"),l(2,"x-circle"),o()()}}function ao(t,i){if(t&1&&(r(0,"div",25),F(1,26),d(2,Ti,5,16,"app-file-tree",27)(3,Di,5,12,"app-file-tree",28)(4,Pi,7,12,"spk-form-field")(5,Ri,8,13,"spk-form-field")(6,Ui,8,11,"spk-select")(7,zi,8,12,"spk-select",29)(8,Wi,15,11,"div",30)(9,Qi,7,11,"spk-form-field")(10,Zi,5,11,"spk-toggle",31)(11,no,8,8,"spk-select",32)(12,oo,5,11,"spk-form-field"),b(),d(13,ro,3,0,"button",33),o()),t&2){let e=i.$implicit;fe("single-field",e.formGroupName!=="advanced"),s(),c("formGroupName",e.formGroupName),s(),_(e.formView.type==="FileTree"?2:e.formView.type==="FolderTree"?3:e.formView.type==="String"||e.formView.type==="Path"?4:e.formView.type==="Password"?5:e.formView.type==="Enumeration"?6:e.formView.type==="NonValidatedSelectableString"?7:e.formView.type==="Size"?8:e.formView.type==="Integer"?9:e.formView.type==="Boolean"?10:e.formView.type==="Flags"?11:e.formView.type==="Timespan"?12:-1),s(11),_(e.formGroupName==="advanced"?13:-1)}}function lo(t,i){if(t&1&&(F(0,9)(1,18),D(2,Ci,1,9,"ng-container",null,V),D(4,yi,1,9,"ng-container",null,V),r(6,"app-toggle-card",19),F(7,20),l(8," Advanced options "),r(9,"spk-menu")(10,"button",21),l(11," Add advanced option "),r(12,"spk-icon"),l(13,"plus"),o()(),F(14,7),D(15,xi,2,1,"button",22,V),b(),o(),b(),D(17,Si,1,9,"ng-container",null,V),o(),r(19,"app-toggle-card",19),F(20,20),l(21," Http options "),r(22,"spk-menu")(23,"button",21),l(24," Add http option "),r(25,"spk-icon"),l(26,"plus"),o()(),F(27,7),D(28,ki,2,1,"button",22,V),b(),o(),b(),D(30,Fi,1,9,"ng-container",null,V),o(),d(32,ao,14,5,"ng-template",null,1,Ye),b()()),t&2){let e=p();s(2),O(e.destinationFormPair().custom),s(2),O(e.destinationFormPair().dynamic),s(2),c("disallowToggle",!0),s(4),c("disabled",e.notSelectedAdvancedFormPair().length===0),s(5),O(e.notSelectedAdvancedFormPair()),s(2),O(e.selectedAdvancedFormPair()),s(2),c("disallowToggle",!0),s(4),c("disabled",e.notSelectedHttpOptions().length===0),s(5),O(e.notSelectedHttpOptions()),s(2),O(e.selectedHttpOptions())}}function so(t,i){if(t&1){let e=v();r(0,"spk-dialog",55),Tt("isOpenChange",function(a){h(e);let m=p();return bt(m.targetUrlDialogOpen,a)||(m.targetUrlDialogOpen=a),y(a)}),r(1,"header",56)(2,"h2"),l(3,"Edit target URL"),o(),r(4,"spk-alert",57),l(5,"Be careful, this will overwrite everything you have in your destination."),o()(),r(6,"div",58)(7,"spk-form-field"),u(8,"textarea",59),o()(),r(9,"footer",60)(10,"button",11),C("click",function(){h(e);let a=p();return y(a.closeTargetUrlDialog(!1))}),l(11,"Cancel"),o(),r(12,"button",61),C("click",function(){h(e);let a=p();return y(a.closeTargetUrlDialog(!0))}),l(13," Override target URLc "),r(14,"spk-icon"),l(15,"swap"),o()()()()}if(t&2){let e=p();Ft("isOpen",e.targetUrlDialogOpen),c("options",Vt(3,mi)),s(8),c("formControl",e.targetUrlCtrl)}}var po=["Bytes","KB","MB","GB","TB","PB"],lt=new H,jt=(t={destinations:[]})=>lt.group({destinations:lt.array(t.destinations)}),qt=({key:t,customGroup:i,dynamicGroup:e,advancedGroup:n})=>lt.group({destinationType:lt.control(t),custom:i,dynamic:e,advanced:n}),yt=class t{#e=x(W);#n=x(te);#i=x(Et);#o=x(Ge);#t=x(K);#r=x(Mt);injector=x(wt);formRef=Z.required("formRef");destinationForm=this.#t.destinationForm;destinationFormPair=this.#t.destinationFormPair;selectedAdvancedFormPair=this.#t.selectedAdvancedFormPair;notSelectedAdvancedFormPair=this.#t.notSelectedAdvancedFormPair;selectedHttpOptions=this.#t.selectedHttpOptions;notSelectedHttpOptions=this.#t.notSelectedHttpOptions;destinationOptions=this.#t.destinationOptions;destinationFormSignal=this.#t.destinationFormSignal;destinationCount=G(()=>this.destinationFormSignal()?.destinations?.length??0);sizeOptions=S(po);successfulTest=S(!1);getFormFieldValue(i,e,n){return((this.destinationForm.controls.destinations.controls?.[i]).controls?.[e]).controls[n].value}addDestinationFormGroup(i){this.#t.addDestinationFormGroup(i)}addAdvancedFormPair(i,e){this.#t.addAdvancedFormPair(i,e)}removeFormView(i,e){this.#t.removeAdvancedFormPair(i,e)}addHttpOption(i,e){this.#t.addHttpOption(i,e)}targetUrl=G(()=>this.#t.getCurrentTargetUrl()[0]);targetUrlCtrl=new Nt;targetUrlInitial=S(null);targetUrlDialogOpen=S(!1);openTargetUrlDialog(){let e=this.#t.getCurrentTargetUrl()[0];this.targetUrlCtrl.setValue(e),this.targetUrlInitial.set(e),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(i=!1){this.targetUrlDialogOpen.set(!1);let e=this.targetUrlCtrl.value,n=this.targetUrlInitial();!i||e===n||this.#t.updateFieldsFromTargetUrl(this.targetUrlCtrl.value)}testDestination(i=0){let n=this.#t.getCurrentTargetUrl()[i];n&&this.#o.postApiV1RemoteoperationTest({requestBody:{path:n}}).subscribe({next:()=>{this.successfulTest.set(!0),setTimeout(()=>{this.successfulTest.set(!1)},3e3)},error:a=>{let m=a.error.error.Error;if(m==="missing-folder"&&this.#r.open(Oe,{data:{title:"Create folder",message:"The remote destination folder does not exist, do you want to create it?"},closed:g=>{g&&this.#o.postApiV1RemoteoperationCreate({requestBody:{path:n}}).subscribe()}}),m.startsWith("incorrect-cert:")){let g=m.split("incorrect-cert:")[1];this.#r.open(Oe,{maxWidth:"500px",data:{title:"Trust the certificate",message:`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: ${g}`,confirmText:"Trust the certificate",cancelText:"Cancel"},closed:R=>{R&&this.#t.addHttpOptionByName("accept-specified-ssl-hash",g)}})}if(m.startsWith("incorrect-host-key:")){let g=m.split('incorrect-host-key:"')[1].split('",')[0],R=m.split('accepted-host-key:"')[1].split('",')[0];R?this.#r.open(Oe,{maxWidth:"500px",data:{title:"The host key has changed",message:`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 ${R}
|
|
6
|
-
with the REPORTED host key: ${g}?`,confirmText:"Approve",cancelText:"Cancel"},closed:B=>{B&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,g)}}):this.#r.open(Oe,{maxWidth:"500px",data:{title:"Approve host key?",message:`No certificate was specified, please verify that the reported host key is correct: ${g}`,confirmText:"Approve",cancelText:"Cancel"},closed:B=>{B&&this.#t.addAdvancedFormPairByName("ssh-fingerprint",i,g)}})}}})}mapToTargetUrl(i){return ot(i.value)}removeDestinationFormGroup(i){this.destinationForm.controls.destinations.removeAt(i)}displayFn(i){let e=this.destinationOptions().find(n=>n.Key===i);return e?`${e.DisplayName}`:""}goBack(){this.#e.navigate(["general"],{relativeTo:this.#n.parent})}next(){this.#e.navigate(["source-data"],{relativeTo:this.#n.parent})}#l=S("https://duplicati-oauth-handler.appspot.com/").asReadonly();#s=S(Math.random().toString(36).substring(2)+Math.random().toString(36).substring(2)).asReadonly();#a=S(!1);#p=S(null);keyCreation(){}oauthStartTokenCreation(i){this.#a.set(!0);let e=450,n=600,a=this.#l()+"?type="+i+"&token="+this.#s(),m=screen.width/2-e/2,g=screen.height/2-n/2,R=window.open(a,"_blank","height="+n+",width="+e+",menubar=0,status=0,titlebar=0,toolbar=0,left="+m+",top="+g);R?.addEventListener("blur",B=>{console.log("event blur",B)}),R?.addEventListener("beforeunload",B=>{console.log("event beforeunload",B),this.#i.get(this.#l()+"fetch?callback=JSON_CALLBACK",{params:{token:this.#s()}}).pipe(Le(()=>this.#a.set(!1))).subscribe({next:$=>{console.log("res",$),$?.authid&&this.#p.set($.authid)}})})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=j({type:t,selectors:[["app-destination"]],viewQuery:function(e,n){e&1&&J(n.formRef,ri,5),e&2&&X()},standalone:!0,features:[q],decls:29,vars:6,consts:[["formRef",""],["fieldTemplate",""],[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",3,"click"],["formGroupName","0"],[3,"disallowToggle"],["title",""],["spk-button","","type","button",1,"outlined","small",3,"disabled"],["item","","type","button"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["item","","type","button",3,"click"],[1,"field-row"],[3,"formGroupName"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"isFreeText"],[1,"form-column",3,"formGroupName"],[1,"primary","raised"],[1,"primary",3,"selectMultiple"],["spk-button","","type","button",1,"outlined"],[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"],["options",""],[3,"value"],[1,"form-row"],["type","number","formControlName","size",3,"id"],["type","search","formControlName","unit"],["type","number",3,"id","formControlName"],["type","checkbox",3,"id","formControlName"],["type","text","id","text",3,"formControlName"],["deselect","",3,"value"],[1,"raised","primary"],["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(e,n){if(e&1){let a=v();r(0,"form",2,0),C("submit",function(){return h(a),y(n.next())}),r(2,"header")(3,"h3",3),l(4," Backup destination "),r(5,"div",4),d(6,ui,3,3,"button",5),r(7,"spk-menu")(8,"button",6)(9,"spk-icon"),l(10,"dots-three-vertical"),o()(),F(11,7),r(12,"button",8),C("click",function(){return h(a),y(n.openTargetUrlDialog())}),r(13,"spk-icon"),l(14,"link"),o(),l(15," Edit target URL "),o(),b(),o()()(),d(16,fi,4,0,"p"),o(),d(17,_i,28,0)(18,lo,34,4,"ng-container",9),r(19,"div",10)(20,"button",11),C("click",function(){return h(a),y(n.goBack())}),r(21,"spk-icon"),l(22,"arrow-left"),o(),l(23," Go back "),o(),r(24,"button",12)(25,"spk-icon"),l(26,"arrow-right"),o(),l(27," Continue "),o()()(),d(28,so,16,4,"spk-dialog",13)}if(e&2){let a;c("formGroup",n.destinationForm),s(6),_(n.destinationCount()>0?6:-1),s(10),_(n.destinationCount()>0?16:-1),s(),_(n.destinationCount()===0?17:-1),s(),_(!((a=n.destinationFormSignal())==null||a.destinations==null)&&a.destinations.length?18:-1),s(10),_(n.targetUrlDialogOpen()?28:-1)}},dependencies:[me,re,se,pe,ne,we,xe,ie,oe,Pt,ae,le,Se,It,Ze,de,ue,tt,et,nt,ce,ve,Me,Gt,Xe,Fe,Ae],styles:["[_nghost-%COMP%]{display:block}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}.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{jt as a,qt as b,yt as c,Bt as d,_t as e,ft as f,Ut as g,nr as h,gt as i,Lt as j,Ct as k,zt as l,ht as m,K as n};
|
package/chunk-GQQ7YXKJ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{j as a,k as b}from"./chunk-FRD2BVV6.js";import"./chunk-ZSOWH34L.js";import"./chunk-SFRGISK2.js";import"./chunk-DNHLTHLR.js";import"./chunk-N6REZCKW.js";import"./chunk-73UOOUBD.js";import"./chunk-IEVRQDB6.js";import"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";export{a as createScheduleForm,b as default};
|
package/chunk-ICNC6KVB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as h}from"./chunk-N6REZCKW.js";import{a as s}from"./chunk-LZSE733H.js";import{Gb as o,Hb as c,Oa as p,Ob as m,W as g,Y as r,lb as t,mb as n}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";var a=class i{#e=g(s);changelog=h(this.#e.getApiV1Changelog());static \u0275fac=function(e){return new(e||i)};static \u0275cmp=r({type:i,selectors:[["app-changelog"]],standalone:!0,features:[m],decls:4,vars:1,template:function(e,u){if(e&1&&(t(0,"h3"),o(1,"Changelog"),n(),t(2,"pre"),o(3),n()),e&2){let l;p(3),c((l=u.changelog())==null?null:l.Changelog)}},styles:["[_nghost-%COMP%]{display:block}h3[_ngcontent-%COMP%]{font:var(--title-30)}"],changeDetection:0})};export{a as default};
|
package/chunk-IEVRQDB6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Cb as pe,Db as F,Eb as B,Fb as de,Gb as _,Hb as ue,Ib as z,Kb as G,Lb as K,Mb as J,Oa as D,Ob as g,Pb as Z,Q,Ra as se,Ta as $,Ua as h,Va as x,W as R,Wa as re,Xa as P,Y as f,_ as oe,_b as he,ab as V,cb as Y,db as A,eb as W,ec as b,fb as X,ga as d,gb as U,gc as E,ha as u,hb as M,hc as ee,ib as ae,jb as le,kb as ce,lb as r,mb as a,nb as H,ra as N,rb as O,sa as j,sb as v,ta as p,tb as m,ua as L,ub as S,vb as l}from"./chunk-QHJTF3V4.js";import{a as I,b as q,c as ne}from"./chunk-7CGTOI24.js";var w=["*"],Ce=[[["","icon",""]],[["","title",""]],"*",[["","content",""]]],_e=["[icon]","[title]","*","[content]"];function ye(n,C){n&1&&(r(0,"spk-icon",3),_(1,"info"),a())}function ke(n,C){n&1&&(r(0,"spk-icon",3),_(1,"info"),a())}function De(n,C){n&1&&(r(0,"spk-icon",3),_(1,"check-circle"),a())}function be(n,C){n&1&&(r(0,"spk-icon",3),_(1,"warning-octagon"),a())}function we(n,C){n&1&&(r(0,"spk-icon",3),_(1,"warning"),a())}function Oe(n,C){n&1&&(r(0,"spk-icon",3),_(1,"question"),a())}function Ee(n,C){if(n&1){let e=O();r(0,"spk-icon",7),v("click",function(){d(e);let i=m();return u(i.removeAlert())}),_(1,"plus"),a()}}var Te=["dialogRef"];function xe(n,C){if(n&1){let e=O();r(0,"div",4),v("click",function(){d(e);let i=m();return u(i.isOpen.set(!1))}),a()}}var Me=["spk-button",""];var Fe=["inputWrap"];var Ie=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],Ve=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[error]","[hint]"],fe=["triggerRef"],Ae=["popoverRef"],Re=[[["","trigger",""]],"*"],Pe=["[trigger]","*"],He=["option"],Be=["*",[["","menu",""]]],je=["*","[menu]"],Le=()=>({closeOnButton:!1,closeOnEsc:!0});var We=["optionsRef"],qe=["formFieldWrapper"],Ue=[[["label"]],[["input"]],"*",[["","deselect-indicator",""]],[["","search-indicator",""]],[["","open-indicator",""]]],Qe=["label","input","*","[deselect-indicator]","[search-indicator]","[open-indicator]"],Ne=()=>({closeOnButton:!1,closeOnEsc:!1});function $e(n,C){if(n&1){let e=O();r(0,"spk-chip",12),v("click",function(i){let o=d(e).$implicit,s=m(3);return u(s.toggleOption(o,i))}),_(1),r(2,"spk-icon"),_(3,"x-circle"),a()()}if(n&2){let e,t=C.$implicit,i=m(3);U(i.chipClass()),D(),z(" ",(e=(e=i.displayFn())==null?null:e(t))!==null&&e!==void 0?e:t," ")}}function Ye(n,C){if(n&1&&le(0,$e,4,3,"spk-chip",11,ae),n&2){let e=m(2);ce(e.inputValue().split(","))}}function Xe(n,C){if(n&1&&(r(0,"div",6),V(1,Ye,2,0),a()),n&2){let e=m();D(),M(e.inputValue().length>0?1:-1)}}function ze(n,C){if(n&1&&(r(0,"div",6),_(1),a()),n&2){let e=m();D(),ue(e._displayValue())}}function Ge(n,C){if(n&1){let e=O();r(0,"div",13),v("click",function(i){d(e);let o=m();return u(o.deselect(i))}),l(1,3),r(2,"spk-icon",14),_(3,"x-circle"),a()()}}function Ke(n,C){n&1&&(r(0,"div",8),l(1,4),r(2,"spk-icon",14),_(3,"magnifying-glass"),a()())}function Je(n,C){if(n&1&&(r(0,"div",15),l(1,5),r(2,"spk-icon",14),_(3,"caret-down"),a()()),n&2){let e=m();W("open",e.isOpen())}}var Ze=["dragImageElement"],et=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],tt=["[sidenav]","[sidenav-closed-topbar]","*"];function it(n,C){n&1&&H(0,"div",1,0)}function nt(n,C){if(n&1){let e=O();r(0,"div",7),v("drop",function(i){d(e);let o=m();return u(o.drop(i))})("dragover",function(i){d(e);let o=m();return u(o.dragOver(i))})("dragenter",function(){d(e);let i=m();return u(i.dragEnter())})("dragleave",function(){d(e);let i=m();return u(i.dragLeave())}),a()}}function ot(n,C){if(n&1){let e=O();r(0,"div",8),v("dragstart",function(i){d(e);let o=m();return u(o.dragStart(i))})("dragend",function(i){d(e);let o=m();return u(o.dragEnd(i))})("drag",function(i){d(e);let o=m();return u(o.drag(i))})("touchstart",function(i){d(e);let o=m();return u(o.touchStart(i))})("touchmove",function(i){d(e);let o=m();return u(o.touchMove(i))})("touchend",function(i){d(e);let o=m();return u(o.touchEnd(i))})("touchcancel",function(i){d(e);let o=m();return u(o.touchCancel(i))}),a()}}var st=["tooltipRef"],te=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-icon"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})(),Tt=(()=>{class n{constructor(){this._el=R(L),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=f({type:n,selectors:[["spk-alert"]],hostVars:2,hostBindings:function(t,i){t&2&&U(i.type())},inputs:{alertService:[1,"alertService"],type:[1,"type"],id:[1,"id"]},standalone:!0,features:[g],ngContentSelectors:_e,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&&(S(Ce),r(0,"div",1)(1,"div",2,0),l(3),a(),r(4,"div",2),V(5,ye,2,0,"spk-icon",3)(6,ke,2,0,"spk-icon",3)(7,De,2,0,"spk-icon",3)(8,be,2,0,"spk-icon",3)(9,we,2,0,"spk-icon",3)(10,Oe,2,0,"spk-icon",3),a(),r(11,"div",4),l(12,1),l(13,2),a(),V(14,Ee,2,0,"spk-icon",5),r(15,"div",6),l(16,3),a()()),t&2){let o,s=de(2);D(),A("display",s.children.length?"block":"none"),D(4),M((o=i.type())==="primary"?5:o==="accent"?6:o==="success"?7:o==="error"?8:o==="warning"?9:10),D(9),M(i.id()?14:-1)}},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})();var xt=(()=>{class n{constructor(){this.alertHistory=h([]),this.alertHistoryIsOpen=h(!1),this.alertHistoryIsHidden=h(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warning",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=crypto.randomUUID();this.alertHistory.update(i=>[q(I({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(o=>q(I({},o),{animateIn:o.id===t?!1:o.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>q(I({},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=>q(I({},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=Q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),rt={width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},at=(()=>{class n{constructor(){this.dialogRef=x("dialogRef"),this.isOpen=P(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>I(I({},rt),this.options())),this.abortController=null,this.isOpenEffect=E(()=>{let e=this.dialogRef()?.nativeElement;this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e?.showModal(),e?.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),document.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(this.closed.emit(),e?.close())},{allowSignalWrites:!0})}ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-dialog"]],viewQuery:function(t,i){t&1&&F(i.dialogRef,Te,5),t&2&&B()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},standalone:!0,features:[g],ngContentSelectors:w,decls:5,vars:9,consts:[["dialogRef",""],["spkDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(t,i){if(t&1&&(S(),r(0,"dialog",1,0)(2,"div",2),l(3),a(),V(4,xe,1,0,"div",3),a()),t&2){let o,s,c,y;A("width",(o=i.defaultOptionMerge().width)!==null&&o!==void 0?o:"")("max-width",(s=i.defaultOptionMerge().maxWidth)!==null&&s!==void 0?s:"")("max-height",(c=i.defaultOptionMerge().maxHeight)!==null&&c!==void 0?c:"")("height",(y=i.defaultOptionMerge().height)!==null&&y!==void 0?y:""),D(4),M(i.defaultOptionMerge().closeOnOutsideClick?4:-1)}},encapsulation:2,changeDetection:0})}}return n})(),Mt=(()=>{class n{constructor(){this.#e=document.querySelector("body"),this.#n=R(he),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}#e;#n;open(e,t){let i=this.#n.injector,o=this.#c(),ie=t||{},{data:s,closed:c}=ie,y=ne(ie,["data","closed"]);this.compRef&&this.#r(),this.insertedCompRef=ee(e,{environmentInjector:i}),this.compRef=ee(at,{hostElement:o,environmentInjector:i,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let T=this.insertedCompRef.instance?.data,k=this.insertedCompRef.instance?.closed;if(s){if($(T))this.insertedCompRef.setInput("data",s);else if(!$(T))throw new Error("data is not an input signal on the passed component")}k instanceof N&&(this.closedFieldSub=k.subscribe((...Se)=>{c?.(...Se),this.#r()})),this.#n.attachView(this.insertedCompRef.hostView),this.#n.attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",y),this.compRef.instance.closed.subscribe(()=>ve());let ge=this;function ve(){k&&k instanceof N?k.emit(!1):c?.(void 0),ge.#r()}return this.insertedCompRef.instance}#c(){let e=document.createElement("spk-dialog-ref");return e.id="spk-dialog-ref",document.getElementById("spk-dialog-ref")||this.#e.append(e),document.getElementById("spk-dialog-ref")}#r(){this.insertedCompRef&&(this.#n.detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(this.#n.detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())}ngOnDestroy(){this.#r()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=Q({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Ft=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-button-group"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})(),lt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["","spk-button",""]],standalone:!0,features:[g],attrs:Me,ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})(),It=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-card"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})(),Vt=(()=>{class n{#e=R(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-checkbox"]],hostBindings:function(t,i){t&1&&v("click",function(){return i.onClick()})},standalone:!0,features:[g],ngContentSelectors:w,decls:6,vars:0,consts:[[1,"box"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(t,i){t&1&&(S(),r(0,"div",0)(1,"spk-icon",1),_(2,"check"),a(),r(3,"spk-icon",2),_(4,"minus"),a()(),l(5))},dependencies:[te],encapsulation:2,changeDetection:0})}}return n})(),ct=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-chip"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})();var pt=(()=>{class n{#e=R(L);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=CSS.supports("field-sizing","content"),t=this.#e.nativeElement.querySelector("textarea");if(!e&&t!==null){let c=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},y=function(){window.setTimeout(c,0)};var i=c,o=y;let s=this.#e.nativeElement.querySelector("textarea");s.addEventListener("change",c),s.addEventListener("cut",y),s.addEventListener("paste",y),s.addEventListener("drop",y),s.addEventListener("keydown",y),s.focus(),s.select(),c()}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-form-field"]],hostBindings:function(t,i){t&1&&v("click",function(){return i.onClick()})},standalone:!0,features:[g],ngContentSelectors:Ve,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&&(S(Ie),l(0),r(1,"div",0)(2,"div",1),l(3,1),l(4,2),a(),H(5,"div",2),l(6,3),l(7,4),l(8,5),H(9,"div",3),l(10,6),a(),r(11,"div",4)(12,"div",5),l(13,7),a(),r(14,"div",6),l(15,8),a()())},encapsulation:2,changeDetection:0})}}return n})(),At=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-list"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})(),dt={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},me=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.disableOpenByClick=p(!1),this.isOpen=P(!1),this.options=p(),this.closed=j(),this.defaultOptionMerge=b(()=>I(I({},dt),this.options())),this.triggerRef=x.required("triggerRef"),this.popoverRef=x.required("popoverRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.openAbort=null,this.isCalculatingPosition=b(()=>{let e=this.popoverRef()?.nativeElement;return this.isOpen()?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,e?.showPopover(),document.addEventListener("keydown",i=>{i.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&i.preventDefault(),i.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{capture:!0,signal:this.abortController?.signal}),!0):(e.hidePopover(),this.abortController?.abort(),this.openAbort?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#n(this.popoverRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})},{allowSignalWrites:!0}),this.scrollableStyles=["scroll","auto"]}#e;toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}#n(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,y=s+t.width>window.innerWidth,T=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(T),this._right.set(y);else{if(this.above()){let k=e.top-t.height-this.#e;k>=0&&(c=k)}else T&&(c=e.top-t.height-this.#e);if(this.right()){let k=e.right-t.width;k>=0&&(s=k)}else y&&(c=T?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-popover"]],viewQuery:function(t,i){t&1&&(F(i.triggerRef,fe,5),F(i.popoverRef,Ae,5)),t&2&&B(2)},hostVars:4,hostBindings:function(t,i){t&2&&W("above",i._above())("right",i._right())},inputs:{above:[1,"above"],right:[1,"right"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},standalone:!0,features:[g],ngContentSelectors:Pe,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=O();S(Re),r(0,"div",2,0),v("click",function(c){return d(o),u(i.toggleIsOpen(c))}),r(2,"div",3),l(3),a(),r(4,"button",4),_(5,"Open popover"),a()(),r(6,"div",5,1)(8,"div",6),v("click",function(c){return d(o),u(i.isOpen()&&i.eventClose(c))}),a(),l(9,1),a()}t&2&&(A("anchor-name",i.id()),D(6),X(i.menuStyle()),A("position-anchor",i.id()))},dependencies:[lt],encapsulation:2,changeDetection:0})}}return n})(),Rt=(()=>{class n{constructor(){this.above=p(!1),this.right=p(!1),this.keepClickedOptionActive=p(!1),this.isOpen=P(!1),this.closed=j(),this.activeOptionIndex=h(-1),this.options=re("option"),this.optionsEl=b(()=>Array.from(this.options()).map(e=>e.nativeElement).filter(e=>e.disabled!==!0)),this.optionsEffect=E(()=>{if(!this.isOpen())return;let e=this.activeOptionIndex(),t=this.optionsEl();if(e>-1)for(let i=0;i<t.length;i++){if(i===e){t[i].scrollIntoView({block:"center"}),t[i].classList.add("active");continue}t[i].classList.remove("active")}})}onKeyDown(e){if(!this.isOpen())return;e.preventDefault();let t=this.optionsEl(),i=this.activeOptionIndex();e.key==="ArrowDown"?i===-1||i===t.length-1?this.activeOptionIndex.set(0):this.activeOptionIndex.set(i+1):e.key==="ArrowUp"?i===-1||i===0?this.activeOptionIndex.set(t.length-1):this.activeOptionIndex.set(i-1):e.key==="Enter"?i>-1&&(t[i].click(),setTimeout(()=>this.close("active"))):e.key==="Tab"?this.close("closed"):this.activeOptionIndex.set(-1)}close(e="closed",t){(!this.keepClickedOptionActive()||e==="closed")&&this.#e(),this.isOpen.set(!1),this.closed.emit(e==="active")}#e(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-menu"]],contentQueries:function(t,i,o){t&1&&pe(o,i.options,He,4),t&2&&B()},hostBindings:function(t,i){t&1&&v("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"},standalone:!0,features:[g],ngContentSelectors:je,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=O();S(Be),r(0,"spk-popover",1,0),J("isOpenChange",function(c){return d(o),K(i.isOpen,c)||(i.isOpen=c),u(c)}),v("closed",function(){return d(o),u(i.close("fromPopover"))}),r(2,"div",2),v("click",function(){return d(o),u(i.isOpen.set(!0))}),l(3),a(),r(4,"div",3),v("click",function(){return d(o),u(i.close("active"))}),l(5,1),a()()}t&2&&(G("isOpen",i.isOpen),Y("disableOpenByClick",!0)("above",i.above())("right",i.right())("options",Z(5,Le)))},dependencies:[me],encapsulation:2,changeDetection:0})}}return n})(),Pt=(()=>{class n{constructor(){this.value=p(void 0)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-progress-bar"]],inputs:{value:[1,"value"]},standalone:!0,features:[g],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})(),Ht=(()=>{class n{#e=R(L);onClick(){this.#e.nativeElement.querySelector("input")&&this.#e.nativeElement.querySelector("input").focus()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-radio"]],hostBindings:function(t,i){t&1&&v("click",function(){return i.onClick()})},standalone:!0,features:[g],ngContentSelectors:w,decls:2,vars:0,consts:[[1,"radio"]],template:function(t,i){t&1&&(S(),H(0,"div",0),l(1))},encapsulation:2,changeDetection:0})}}return n})();var Bt=(()=>{class n{constructor(){this.value=p(null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-option"]],inputs:{value:[1,"value"]},standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})(),ut=["primary","accent","tertiary","warn","success"],jt=(()=>{class n{constructor(){this.#e=R(se),this.#n=R(L),this.#c=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&t.target instanceof HTMLElement){let i=[...Array.from(t.addedNodes),...Array.from(t.removedNodes)];for(let o=0;o<i.length;o++){let s=i[o];(s.nodeName==="OPTION"||s.nodeName==="SPK-OPTION")&&this.#s.set(!this.#s())}}}),this.optionsRef=x("optionsRef"),this.formFieldWrapperRef=x.required("formFieldWrapper"),this.inputWrapRef=x.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.#r=h(!1),this.#s=h(!1),this.#t=h(null),this.#a=h(null),this.#l=h(!1),this.#i=h(-1),this.isOpen=h(!1),this._isOpen=h(!1),this.#h=E(()=>{this._isOpen.set(this.isOpen()&&this.#o().length>0)},{allowSignalWrites:!0}),this.isSearchInput=b(()=>this.#t()?.type==="search"),this.optionsEl=b(()=>this.optionsRef()?.nativeElement),this.#o=b(()=>{this.#s();let e=this.optionsRef()?.nativeElement.querySelectorAll("option"),t=this.optionsRef()?.nativeElement.querySelectorAll("spk-option");return e?.length?Array.from(e):t?.length?Array.from(t):[]}),this.chipClass=b(()=>Array.from(this.#n.nativeElement.classList).filter(e=>ut.includes(e)).join(" ")),this._displayValue=b(()=>this.displayFn()?this.displayFn()(this.inputValue()):this.displayValue()??this.inputValue()),this.selectedOption=b(()=>this.#a()?this.#o().find(e=>(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))===this.#a()):null),this.optionsOpenController=null,this.inputController=null,this.clickController=null,this.inputAbortController=null,this.#f=E(()=>{this.#r();let e=this.#n.nativeElement.querySelector("input");e&&(this.#y(e),e.addEventListener("inputValueChanged",t=>{this.inputValue.set(t.detail.value),this.selectMultiple()&&this.#d()}),this.#t.set(e),e.autocomplete="off",typeof e.value=="string"&&this.inputValue.set(e.value))},{allowSignalWrites:!0}),this.#m=E(()=>{this.inputController&&this.inputController.abort(),this.inputController=new AbortController;let e=this.#t();e&&e.addEventListener("keydown",t=>{(this.selectMultiple()||!this.isSearchInput()&&!this.isFreeText())&&t.preventDefault(),t.key==="Escape"?this.close():t.key==="ArrowDown"?this.#i()===null||this.#i()<0||this.#i()===this.#o().length-1?this.#i.set(this.#u()):this.#i.set(this.#i()+1):t.key==="ArrowUp"?this.#i()===null||this.#i()<0||this.#i()===0?this.#i.set(this.#o().length-1):this.#i.set(this.#i()-1):t.key==="Enter"?(this.isFreeText()&&this.close(!0),this.#i()>-1&&this.selected(this.getOptionElement(this.#i()))):t.key==="Tab"?this.close(!0):(this.#i.set(-1),this.isFreeText()&&this.calculateSelectedOptions())},{signal:this.inputController?.signal})}),this.#g=E(()=>{this.isOpen()&&this.#_()}),this.#v=E(()=>{let e=this.inputValue();this.#t()&&(this.#t().value=e??"",this.#t().dispatchEvent(new Event("input")))},{allowSignalWrites:!0}),this.#p=new MutationObserver(e=>{for(var t of e)t.type=="childList"&&t.target.classList.contains("input")&&this.#r.set(!this.#r())})}#e;#n;#c;#r;#s;#t;#a;#l;#i;#h;#o;#f;#m;#g;#v;ngOnInit(){this.#p.observe(this.inputWrapRef().nativeElement,{attributes:!0,childList:!0,subtree:!0})}getOptionElement(e){return this.#o()[e]}deselect(e,t=!1){e?.stopPropagation(),this.#t()&&(this.#t().value="",this.#t().dispatchEvent(new Event("input"))),this.#i.set(this.#u()),this.#l.set(!1),(t||!this.selectMultiple())&&(this.isOpen.set(!1),this.#t()?.blur())}selected(e){if(!e)return;let t=(e.getAttribute("value")||e.getAttribute("ng-reflect-value"))??"",i=this.#o().indexOf(e);if(e.hasAttribute("deselect"))return this.deselect(null,!0);if(this.#i.set(i),e&&!this.selectMultiple()){this.inputValue.set(t);for(let o=0;o<this.#o().length;o++){let s=this.#o()[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===t?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}}else e&&this.selectMultiple()&&(this.inputValue().includes(t)?(this.#e.removeAttribute(e,"selected"),this.toggleOption(t)):(this.#e.setAttribute(e,"selected","selected"),this.inputValue.set(this.inputValue().length?`${this.inputValue()},${t}`:t)));this.#l.set(!1),this.#a.set(null),this.selectMultiple()?this.#t()?.focus():(this.isOpen.set(!1),this.#t()?.blur())}calculateSelectedOptions(){setTimeout(()=>{let e=this.#o(),i=this.#t()?.value;for(let o=0;o<e.length;o++){let s=e[o];(s.getAttribute("value")||s.getAttribute("ng-reflect-value"))===i?this.#e.setAttribute(s,"selected","selected"):this.#e.removeAttribute(s,"selected")}})}toggleOption(e,t){t&&(t.preventDefault(),t.stopPropagation()),this.inputValue.set(this.inputValue().startsWith(e+",")?this.inputValue().replace(e+",",""):this.inputValue().includes(","+e)?this.inputValue().replace(","+e,""):this.inputValue().replace(e,""))}close(e=!1){this.#s.set(!this.#s());let t=this.#a();this.isSearchInput()&&!this.isFreeText()&&t&&setTimeout(()=>this.inputValue.set(t)),this.isOpen.set(!1),this.#l.set(!1),e||this.#t()?.blur(),this.#c.disconnect(),this.#C()}open(e){e.preventDefault(),!this.isOpen()&&(this.#c.observe(this.optionsEl(),{childList:!0,subtree:!0}),this.isSearchInput()&&!this.#l()&&!this.isFreeText()?(this.#a.set(this.inputValue()),this.inputValue.set(""),this.#t().focus(),this.#t().value="",this.#t().dispatchEvent(new Event("input")),this.#i.set(-1)):(this.isSearchInput()||this.selectMultiple())&&this.#t().focus(),this.#s.set(!this.#s()),this.isOpen.set(!0),this.#l.set(!0),this.#S(),this.#d())}#S(){this.clickController&&this.clickController.abort(),this.clickController=new AbortController,this.optionsEl()?.addEventListener("click",e=>{if(!e.target)return;this.#s.set(!this.#s());let t=e.target.closest("option"),i=e.target.closest("spk-option"),o=t||i;this.#o().indexOf(o)>-1&&this.selected(o)},{signal:this.clickController?.signal})}#C(){this.clickController&&this.clickController.abort()}#_(){for(let e=0;e<this.#o().length;e++){let t=this.#o()[e];this.#e.removeClass(t,"focused"),this.#i()===e&&(this.#e.addClass(t,"focused"),t.scrollIntoView({block:"center"}))}}#d(){let e=this.#t();if(!e)return;this.inputValue.set(e.value);let t=e.value.split(",");setTimeout(()=>{let i=this.#o();for(let o=0;o<i.length;o++){let s=i[o].getAttribute("ng-reflect-value");s&&t.includes(s)?this.#e.setAttribute(i[o],"selected","selected"):this.#e.removeAttribute(i[o],"selected")}})}#u(){let e=this.#o();for(let t=0;t<e.length;t++)if(!e[t].hasAttribute("deselect"))return t;return-1}#p;#y(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let o=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(o),t}}),e}ngOnDestroy(){this.clickController&&this.clickController.abort(),this.inputController&&this.inputController.abort(),this.optionsOpenController&&this.optionsOpenController.abort(),this.#p.disconnect()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-select"]],viewQuery:function(t,i){t&1&&(F(i.optionsRef,We,5),F(i.formFieldWrapperRef,qe,5),F(i.inputWrapRef,Fe,5)),t&2&&B(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"},standalone:!0,features:[g],ngContentSelectors:Qe,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=O();S(Ue),r(0,"spk-popover",3,0),J("isOpenChange",function(c){return d(o),K(i.isOpen,c)||(i.isOpen=c),u(c)}),v("closed",function(){return d(o),u(i.close())}),r(2,"spk-form-field",4),v("click",function(c){return d(o),u(i.open(c))}),l(3,0,["ngProjectAs","label",5,["label"]]),r(4,"div",5,1),V(6,Xe,2,1,"div",6)(7,ze,2,1,"div",6),l(8,1),a(),V(9,Ge,4,0,"div",7)(10,Ke,4,0,"div",8)(11,Je,4,2,"div",9),a(),r(12,"div",10,2),l(14,2),a()()}t&2&&(G("isOpen",i.isOpen),Y("disableOpenByClick",!0)("options",Z(7,Ne)),D(2),U(i.readonly()?"readonly":""),D(4),M(i.selectMultiple()?6:i._displayValue()&&i.isSearchInput()&&!i.isOpen()||i._displayValue()&&!i.isSearchInput()?7:-1),D(3),M((i.inputValue()&&!i.isOpen()&&i.inputValue().length>0||i.selectedOption())&&!i.hideClearButton()?9:i.isSearchInput()&&!i.selectedOption()?10:11))},dependencies:[pt,te,ct,me],encapsulation:2,changeDetection:0})}}return n})(),Lt=(()=>{class n{constructor(){this.openWidth=280,this.openWidthTreshold=this.openWidth*.9,this.disableDrag=p(!1),this.isOpen=P(!1),this.type=p(""),this.dragImageElement=x.required("dragImageElement"),this.dragIsEnding=h(!1),this.dragIsOnScreen=h(!0),this.isDragging=h(!1),this.dragPositionX=h(0),this.dragActualPositionX=b(()=>{let e=this.dragPositionX(),t=.32;return e>this.openWidthTreshold?this.openWidthTreshold+(e-this.openWidthTreshold)*t:e}),this.draggingStyle=b(()=>this.type()!=="overlay"?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=E(()=>{this.isDragging()&&document.body.classList.add("dragging")})}drop(e){e.stopPropagation(),this.#e(e.clientX)}#e(e){this.isDragging.set(!1),e<=0?this.isOpen.set(!1):e>this.openWidthTreshold?this.isOpen.set(!0):e<this.openWidthTreshold&&(!this.isOpen()&&e<this.openWidthTreshold*.6?this.isOpen.set(!0):this.isOpen.set(!1))}dragEnd(e){(e.clientX<0||!this.dragIsOnScreen())&&this.#e(0)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragOver(e){e.preventDefault(),this.#n(e)}dragStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#n(e)}#n(e){e.dataTransfer?.setDragImage(this.dragImageElement().nativeElement,0,0)}drag(e){e.stopPropagation(),setTimeout(()=>{this.isDragging()&&this.dragIsOnScreen()&&this.dragPositionX.set(e.clientX)}),this.#n(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=f({type:n,selectors:[["spk-sidenav"]],viewQuery:function(t,i){t&1&&F(i.dragImageElement,Ze,5),t&2&&B()},hostVars:10,hostBindings:function(t,i){t&2&&W("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"},standalone:!0,features:[g],ngContentSelectors:tt,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&&(S(et),V(0,it,2,0,"div",1)(1,nt,1,0,"div",2),r(2,"div",3),l(3),a(),r(4,"div",4),V(5,ot,1,0,"div",5),r(6,"div",6),l(7,1),a(),r(8,"main"),l(9,2),a()()),t&2&&(M(i.type()==="overlay"?0:-1),D(),M(i.type()==="overlay"&&i.isDragging()?1:-1),D(3),A("transform",i.draggingStyle()),D(),M(i.type()==="overlay"&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})();var Wt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-stepper"]],standalone:!0,features:[g],ngContentSelectors:w,decls:1,vars:0,template:function(t,i){t&1&&(S(),l(0))},encapsulation:2,changeDetection:0})}}return n})();var qt=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-toggle"]],standalone:!0,features:[g],ngContentSelectors:w,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(t,i){t&1&&(S(),r(0,"div",0),H(1,"div",1),a(),l(2))},encapsulation:2,changeDetection:0})}}return n})(),Ut=(()=>{class n{constructor(){this.#e=4,this.SUPPORTS_ANCHOR=CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.disabled=p(!1),this.above=p(!1),this.right=p(!1),this._above=h(this.above()),this._right=h(this.right()),this.message=p.required(),this.isOpen=P(!1),this.closed=j(),this.triggerRef=x.required("triggerRef"),this.tooltipRef=x.required("tooltipRef"),this.id=h("--"+crypto.randomUUID()),this.menuStyle=h(null),this.isCalculatingPosition=b(()=>{let e=this.tooltipRef()?.nativeElement;return this.isOpen()?(e?.showPopover(),!0):(e.hidePopover(),this.abortController?.abort(),this.closed.emit(),!1)}),this.abortController=null,this.calcPositionEffect=E(()=>{if(!this.isCalculatingPosition())return;this.abortController&&this.abortController.abort(),this.abortController=new AbortController;let t=this.abortController.signal;this.calculateMenuPosition(),this.#n(this.tooltipRef()?.nativeElement).addEventListener("scroll",()=>this.calculateMenuPosition(),{signal:t}),document.addEventListener("resize",()=>this.calculateMenuPosition(),{signal:t})},{allowSignalWrites:!0}),this.scrollableStyles=["scroll","auto"]}#e;#n(e){let t=e.parentElement;for(;t;){if(this.scrollableStyles.indexOf(window.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return document.documentElement}eventClose(e){e.stopPropagation(),e.preventDefault(),this.isOpen.set(!1)}ngOnDestroy(){this.abortController&&this.abortController.abort()}calculateMenuPosition(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.tooltipRef()?.nativeElement.getBoundingClientRect(),i=e.left,o=e.bottom,s=i,c=o+this.#e,y=s+t.width>window.innerWidth,T=c+t.height>window.innerHeight;if(this.SUPPORTS_ANCHOR)this._above.set(T),this._right.set(y);else{if(this.above()){let k=e.top-t.height-this.#e;k>=0&&(c=k)}else T&&(c=e.top-t.height-this.#e);if(this.right()){let k=e.right-t.width;k>=0&&(s=k)}else y&&(c=T?e.top+e.height-t.height:e.top,s=e.left-t.width-this.#e);this.menuStyle.set({left:s+"px",top:c+"px"})}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=f({type:n,selectors:[["spk-tooltip"]],viewQuery:function(t,i){t&1&&(F(i.triggerRef,fe,5),F(i.tooltipRef,st,5)),t&2&&B(2)},hostVars:6,hostBindings:function(t,i){t&2&&W("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"},standalone:!0,features:[g],ngContentSelectors:w,decls:6,vars:7,consts:[["triggerRef",""],["tooltipRef",""],[1,"trigger",3,"mouseover","mouseout"],["popover","",1,"tooltip"]],template:function(t,i){if(t&1){let o=O();S(),r(0,"div",2,0),v("mouseover",function(){return d(o),u(i.isOpen.set(!0))})("mouseout",function(){return d(o),u(i.isOpen.set(!1))}),l(2),a(),r(3,"div",3,1),_(5),a()}t&2&&(A("anchor-name",i.id()),D(3),X(i.menuStyle()),A("position-anchor",i.id()),D(2),z(" ",i.message()," "))},encapsulation:2,changeDetection:0})}}return n})(),Qt=(()=>{class n{constructor(){this.filesOver=h(!1),this.filesDropped=j()}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=oe({type:n,selectors:[["","spkDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&v("dragover",function(s){return i.onDragOver(s)})("dragleave",function(s){return i.onDragLeave(s)})("drop",function(s){return i.ondrop(s)}),t&2&&W("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"},standalone:!0})}}return n})();export{te as a,Tt as b,xt as c,at as d,Mt as e,Ft as f,lt as g,It as h,Vt as i,ct as j,pt as k,At as l,Rt as m,Pt as n,Ht as o,Bt as p,jt as q,Lt as r,Wt as s,qt as t,Ut as u,Qt as v};
|
package/chunk-IXLTPP72.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as S}from"./chunk-AIWAOXTQ.js";import"./chunk-4EODC7AQ.js";import"./chunk-ZSOWH34L.js";import"./chunk-N6REZCKW.js";import"./chunk-73UOOUBD.js";import{o as C,s as v}from"./chunk-IEVRQDB6.js";import{a as f,b as k,d as w,e as g}from"./chunk-22ZYSOTR.js";import"./chunk-JNQHJPEL.js";import"./chunk-LZSE733H.js";import{Gb as p,Oa as s,Ob as d,Qb as l,W as r,Y as u,cb as a,lb as o,mb as n,nb as i}from"./chunk-QHJTF3V4.js";import"./chunk-7CGTOI24.js";var F=e=>["/restore-flow",e,"select-files"],R=e=>["/restore-flow",e,"options"],c=class e{#t=r(f);#e=r(S);backupId=this.#e.backupId;ngOnInit(){this.#e.init(this.#t.snapshot.params.id)}static \u0275fac=function(t){return new(t||e)};static \u0275cmp=u({type:e,selectors:[["app-restore-flow"]],standalone:!0,features:[d],decls:9,vars:6,consts:[["step","","routerLinkActive","active",3,"routerLink"]],template:function(t,m){t&1&&(o(0,"spk-stepper")(1,"div",0),i(2,"spk-radio"),p(3," Select files "),n(),o(4,"div",0),i(5,"spk-radio"),p(6," Options "),n()(),o(7,"section"),i(8,"router-outlet"),n()),t&2&&(s(),a("routerLink",l(2,F,m.backupId())),s(3),a("routerLink",l(4,R,m.backupId())))},dependencies:[v,C,k,w,g],styles:["[_nghost-%COMP%]{display:block}spk-stepper[_ngcontent-%COMP%]{max-width:31.25rem;margin:2.5rem auto}section[_ngcontent-%COMP%]{max-width:31.25rem;margin:0 auto 2.5rem}"],changeDetection:0})};export{c as default};
|