@duplicati/ngclient 0.0.166 → 0.0.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-CO4VU5IU.js → chunk-33SCK3HX.js} +1 -1
- package/{chunk-SFSDLKTN.js → chunk-3CHE2VBA.js} +1 -1
- package/{chunk-OVLLX4US.js → chunk-3L2HST7Q.js} +1 -1
- package/chunk-3T4NJWLA.js +1 -0
- package/chunk-47AUYCMN.js +1 -0
- package/{chunk-WNHQELMC.js → chunk-4BGVLUYV.js} +1 -1
- package/chunk-4FD362Y4.js +1 -0
- package/chunk-4L4YRYBK.js +1 -0
- package/{chunk-53V6KV3I.js → chunk-4MEL5WTX.js} +1 -1
- package/{chunk-GGNFAVSC.js → chunk-4PMLRVX5.js} +1 -1
- package/{chunk-53GUCO6P.js → chunk-5BMTCVLS.js} +1 -1
- package/chunk-5H3KA3BL.js +1 -0
- package/{chunk-XUQ74HFK.js → chunk-5K64UNNB.js} +1 -1
- package/{chunk-SHNCRKXQ.js → chunk-5PLFBSYN.js} +1 -1
- package/chunk-646U6U3M.js +1 -0
- package/{chunk-JGXPFEYZ.js → chunk-66KMXCBD.js} +1 -1
- package/{chunk-3ADKRLYD.js → chunk-6DB3NZXR.js} +1 -1
- package/chunk-7KUVROHU.js +1 -0
- package/chunk-7WIBNC6L.js +1 -0
- package/{chunk-AY4BUZJQ.js → chunk-ABJWT6DQ.js} +1 -1
- package/chunk-AFUSUOJX.js +1 -0
- package/chunk-AGFUNVOJ.js +1 -0
- package/{chunk-OQ2HMOSQ.js → chunk-BTVYI2KD.js} +1 -1
- package/{chunk-HEST3B3S.js → chunk-CCM2D4BF.js} +1 -1
- package/{chunk-M2BAPEJT.js → chunk-CSY4BFC4.js} +1 -1
- package/{chunk-ZZBUNZZO.js → chunk-D2DI6ZER.js} +1 -1
- package/{chunk-X7XIFHAV.js → chunk-DU5QSRYH.js} +1 -1
- package/chunk-DY7VFO2O.js +1 -0
- package/chunk-ES5NR2JV.js +3 -0
- package/{chunk-QLUEDPL4.js → chunk-F2QQDU4N.js} +1 -1
- package/{chunk-Y7PHGRGB.js → chunk-FAM42SZT.js} +1 -1
- package/{chunk-X6SJVQXW.js → chunk-FCZXIW2B.js} +1 -1
- package/chunk-FVVMRBPU.js +1 -0
- package/{chunk-R2N5UWYB.js → chunk-GS5QK7LF.js} +1 -1
- package/{chunk-NA6MTRHY.js → chunk-HFDNVEKY.js} +1 -1
- package/chunk-HJ5IWG4Y.js +1 -0
- package/{chunk-7WATCQLK.js → chunk-HJRYTTGO.js} +1 -1
- package/{chunk-GRPEAINE.js → chunk-I2RHQQ3J.js} +1 -1
- package/{chunk-ULR2EPP5.js → chunk-I5AKUAZF.js} +1 -1
- package/chunk-I6BGE5RS.js +1 -0
- package/{chunk-CMFSS355.js → chunk-IZQG3EV6.js} +1 -1
- package/{chunk-P7OKMMNZ.js → chunk-KBGIIJMM.js} +1 -1
- package/{chunk-YWZRYOES.js → chunk-L4GZJLYK.js} +1 -1
- package/chunk-L7A3FH7R.js +1 -0
- package/chunk-LEYS7OLH.js +1 -0
- package/{chunk-G4Z3JAJB.js → chunk-LEZL7BSL.js} +1 -1
- package/chunk-LFRGO2IP.js +1 -0
- package/{chunk-HKYSIIV5.js → chunk-LFVCKT5O.js} +1 -1
- package/{chunk-NY63VRAY.js → chunk-LJQN4G2O.js} +1 -1
- package/{chunk-HW7A5ZWV.js → chunk-M77IE672.js} +1 -1
- package/{chunk-YU5AMM6C.js → chunk-MP7JKTLP.js} +1 -1
- package/{chunk-ZXEF3CNK.js → chunk-MZMEFIHU.js} +1 -1
- package/{chunk-AROXMP46.js → chunk-N6SGM2XM.js} +3 -3
- package/{chunk-NDZU2O2Q.js → chunk-NHRDYV7W.js} +1 -1
- package/{chunk-ILGMXHEE.js → chunk-NOHHRZSK.js} +1 -1
- package/{chunk-KUP2T6AG.js → chunk-OLOFMEQN.js} +1 -1
- package/chunk-PD5WNPQM.js +1 -0
- package/{chunk-WPIVIZS6.js → chunk-PDBKO5D5.js} +1 -1
- package/chunk-PG2PHQWA.js +1 -0
- package/{chunk-VXJJGZ5F.js → chunk-PJAWWLYW.js} +1 -1
- package/{chunk-AUMCM45B.js → chunk-RECKKS2S.js} +1 -1
- package/chunk-RKMVTPJD.js +1 -0
- package/{chunk-5RCKMVGY.js → chunk-RNNVKT2R.js} +1 -1
- package/{chunk-O2M7MRKP.js → chunk-S5O366BO.js} +1 -1
- package/{chunk-E4KSSC6K.js → chunk-T6C2OUI5.js} +1 -1
- package/{chunk-4IAJY6E3.js → chunk-TJ3WIU6Q.js} +1 -1
- package/chunk-TZP7VKPA.js +1 -0
- package/chunk-UCP4VAJ4.js +1 -0
- package/chunk-UNGFQSCM.js +1 -0
- package/{chunk-RRM5OZPV.js → chunk-UPGTBICK.js} +1 -1
- package/{chunk-W7NX3PWJ.js → chunk-UTONS2P4.js} +1 -1
- package/{chunk-J64OAILA.js → chunk-VKR5DJQG.js} +1 -1
- package/chunk-VO42K6TQ.js +1 -0
- package/{chunk-Q4I4JXKZ.js → chunk-VOYMNW22.js} +1 -1
- package/{chunk-QE4NBN5H.js → chunk-W2UO5LKI.js} +1 -1
- package/{chunk-QOQI2ALM.js → chunk-W4QCGFNO.js} +1 -1
- package/{chunk-3VHQLGKM.js → chunk-WEFZF25L.js} +1 -1
- package/{chunk-NXJQU7IR.js → chunk-X5FW56GT.js} +1 -1
- package/chunk-XDECUOQ5.js +1 -0
- package/{chunk-ZQ56M63S.js → chunk-XE5OMGTJ.js} +1 -1
- package/{chunk-Y2LISX47.js → chunk-XTYBRFP6.js} +1 -1
- package/{chunk-SNVT3M5C.js → chunk-XY6KVQXK.js} +1 -1
- package/chunk-Y7PF5UJZ.js +1 -0
- package/chunk-YRYV3RWO.js +1 -0
- package/chunk-ZOO7P75U.js +1 -0
- package/chunk-ZTCP7QD2.js +1 -0
- package/{chunk-EYFKXXER.js → chunk-ZV7VPSMZ.js} +1 -1
- package/index.html +2 -2
- package/locale/messages.cs.json +1 -0
- package/locale/messages.da.json +57 -0
- package/locale/messages.de.json +52 -15
- package/locale/messages.en_GB.json +1 -0
- package/locale/messages.es.json +1 -0
- package/locale/messages.fr.json +1 -0
- package/locale/messages.it.json +63 -15
- package/locale/messages.ja_JP.json +1 -0
- package/locale/messages.nl_NL.json +21 -17
- package/locale/messages.pl.json +3 -1
- package/locale/messages.pt.json +1 -0
- package/locale/messages.pt_BR.json +1 -0
- package/locale/messages.ru.json +1 -0
- package/locale/messages.sr_RS.json +1 -0
- package/locale/messages.sv_SE.json +1 -0
- package/locale/messages.zh-Hans.json +2 -5
- package/locale/messages.zh_CN.json +4 -14
- package/locale/messages.zh_TW.json +1 -0
- package/{main-L5HX5P6R.js → main-NUSQL6LE.js} +1 -1
- package/package.json +1 -1
- package/styles-XWAP6FKR.css +1 -0
- package/chunk-25QJ7OWU.js +0 -1
- package/chunk-2HQTO4LT.js +0 -1
- package/chunk-3O255C2R.js +0 -1
- package/chunk-4N7O6OWH.js +0 -1
- package/chunk-A4HSV37F.js +0 -1
- package/chunk-BRPGUJ77.js +0 -1
- package/chunk-CMMGGY2S.js +0 -1
- package/chunk-DPQEDR6U.js +0 -1
- package/chunk-EEXKY2IJ.js +0 -1
- package/chunk-FUPYLAQ6.js +0 -1
- package/chunk-GHJ4MU3O.js +0 -3
- package/chunk-HJSCQF6V.js +0 -1
- package/chunk-IMF5BUVN.js +0 -1
- package/chunk-IQ52IXSC.js +0 -1
- package/chunk-JXLBFHEH.js +0 -1
- package/chunk-KKLVMIFL.js +0 -1
- package/chunk-L7WPKNLR.js +0 -1
- package/chunk-LHOHOKP5.js +0 -1
- package/chunk-NLXY47SY.js +0 -1
- package/chunk-POAVE42X.js +0 -1
- package/chunk-QAY6UFT6.js +0 -1
- package/chunk-R3F6GIHW.js +0 -1
- package/chunk-SKFITJZT.js +0 -1
- package/chunk-TPYX7QC7.js +0 -1
- package/chunk-V5B247QH.js +0 -1
- package/chunk-V7OQKE2Z.js +0 -1
- package/chunk-WJEUX75A.js +0 -1
- package/chunk-WKA7CSGA.js +0 -1
- package/chunk-ZSEZR472.js +0 -1
- package/chunk-ZZBZEHXF.js +0 -1
- package/styles-5QAJP4BI.css +0 -1
package/chunk-HJSCQF6V.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Aa as Ii,a as Xt,ea as Ai}from"./chunk-3ADKRLYD.js";import{$b as W,$c as qt,Ab as Ht,Ac as $t,Bb as ge,Bc as mt,Cb as E,Cc as Wt,Db as T,Eb as Ae,Fb as U,Gb as z,Hb as Ie,Kb as Pe,Lb as he,Oc as Gt,Pc as be,Qa as Mi,Qc as F,Ra as S,Rc as J,S as ht,Ta as pt,U as ue,V as Be,Va as ye,Vc as xe,W as Xe,Wa as N,Wc as V,Xa as Ei,Xc as fe,Y as Ce,Yb as $,Yc as Ti,Zb as Fe,Zc as ne,_ as A,_b as y,a as mi,ac as b,ba as Di,bb as B,ca as bi,cb as Ze,da as H,db as X,dd as Ni,ea as j,ec as xi,fb as ie,fc as pe,fd as Yt,gb as Ne,gc as De,hc as Oi,i as vi,ia as He,ic as se,ja as je,jb as Me,jc as G,ka as Te,kc as Vi,lb as kt,lc as ve,m as _i,mc as I,na as Ft,nb as wi,nc as Ke,oa as O,oc as we,pc as ft,qb as Rt,r as Ci,ra as Qe,rc as jt,sa as Ue,sc as Ut,tb as Ee,tc as zt,ua as Y,uc as gt,vc as me,wb as k,wc as K,x as yi,xb as R,ya as Si,yb as Lt,zb as Bt,zc as re}from"./chunk-Y7PHGRGB.js";import{a as Z,b as te,c as gi,d as f,e as w,f as x,g as M}from"./chunk-EUDKD2JW.js";var Ui=(()=>{class i{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||i)(N(ye),N(Y))};static \u0275dir=X({type:i})}return i})(),rt=(()=>{class i extends Ui{static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,features:[ie]})}return i})(),Ve=new Ce(""),Vn={provide:Ve,useExisting:ue(()=>Tn),multi:!0},Tn=(()=>{class i extends rt{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Vn]),ie]})}return i})(),Nn={provide:Ve,useExisting:ue(()=>zi),multi:!0};function An(){let i=Xt()?Xt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var In=new Ce(""),zi=(()=>{class i extends Ui{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!An())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||i)(N(ye),N(Y),N(In,8))};static \u0275dir=X({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,o){n&1&&$("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},standalone:!1,features:[re([Nn]),ie]})}return i})();function Jt(i){return i==null||ei(i)===0}function ei(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var ke=new Ce(""),Re=new Ce(""),Pn=/^(?=.{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])?)*$/,Pi=class{static min(e){return Fn(e)}static max(e){return kn(e)}static required(e){return Rn(e)}static requiredTrue(e){return Ln(e)}static email(e){return Bn(e)}static minLength(e){return Hn(e)}static maxLength(e){return jn(e)}static pattern(e){return Un(e)}static nullValidator(e){return $i()}static compose(e){return Qi(e)}static composeAsync(e){return Zi(e)}};function Fn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<i?{min:{min:i,actual:e.value}}:null}}function kn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Rn(i){return Jt(i.value)?{required:!0}:null}function Ln(i){return i.value===!0?null:{required:!0}}function Bn(i){return Jt(i.value)||Pn.test(i.value)?null:{email:!0}}function Hn(i){return e=>{let t=e.value?.length??ei(e.value);return t===null||t===0?null:t<i?{minlength:{requiredLength:i,actualLength:t}}:null}}function jn(i){return e=>{let t=e.value?.length??ei(e.value);return t!==null&&t>i?{maxlength:{requiredLength:i,actualLength:t}}:null}}function Un(i){if(!i)return $i;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Jt(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function $i(i){return null}function Wi(i){return i!=null}function Gi(i){return wi(i)?_i(i):i}function qi(i){let e={};return i.forEach(t=>{e=t!=null?Z(Z({},e),t):e}),Object.keys(e).length===0?null:e}function Yi(i,e){return e.map(t=>t(i))}function zn(i){return!i.validate}function Xi(i){return i.map(e=>zn(e)?e:t=>e.validate(t))}function Qi(i){if(!i)return null;let e=i.filter(Wi);return e.length==0?null:function(t){return qi(Yi(t,e))}}function ti(i){return i!=null?Qi(Xi(i)):null}function Zi(i){if(!i)return null;let e=i.filter(Wi);return e.length==0?null:function(t){let n=Yi(t,e).map(Gi);return yi(n).pipe(Ci(qi))}}function ii(i){return i!=null?Zi(Xi(i)):null}function Fi(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Ki(i){return i._rawValidators}function Ji(i){return i._rawAsyncValidators}function Qt(i){return i?Array.isArray(i)?i:[i]:[]}function _t(i,e){return Array.isArray(i)?i.includes(e):i===e}function ki(i,e){let t=Qt(e);return Qt(i).forEach(o=>{_t(t,o)||t.push(o)}),t}function Ri(i,e){return Qt(e).filter(t=>!_t(i,t))}var Ct=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ti(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ii(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class extends Ct{name;get formDirective(){return null}get path(){return null}},_e=class extends Ct{_parent=null;name=null;valueAccessor=null},yt=class{_cd;constructor(e){this._cd=e}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}},$n={"[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"},jr=te(Z({},$n),{"[class.ng-submitted]":"isSubmitted"}),Ur=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(N(_e,2))};static \u0275dir=X({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&G("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return i})(),zr=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(N(oe,10))};static \u0275dir=X({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&G("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return i})();var Je="VALID",vt="INVALID",ze="PENDING",et="DISABLED",Oe=class{},Dt=class extends Oe{value;source;constructor(e,t){super(),this.value=e,this.source=t}},it=class extends Oe{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},nt=class extends Oe{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},$e=class extends Oe{status;source;constructor(e,t){super(),this.status=e,this.source=t}},bt=class extends Oe{source;constructor(e){super(),this.source=e}},St=class extends Oe{source;constructor(e){super(),this.source=e}};function ni(i){return(xt(i)?i.validators:i)||null}function Wn(i){return Array.isArray(i)?ti(i):i||null}function oi(i,e){return(xt(e)?e.asyncValidators:i)||null}function Gn(i){return Array.isArray(i)?ii(i):i||null}function xt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function en(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new ht(1e3,"");if(!n[t])throw new ht(1001,"")}function tn(i,e,t){i._forEachChild((n,o)=>{if(t[o]===void 0)throw new ht(1002,"")})}var We=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return be(this.statusReactive)}set status(e){be(()=>this.statusReactive.set(e))}_status=F(()=>this.statusReactive());statusReactive=O(void 0);get valid(){return this.status===Je}get invalid(){return this.status===vt}get pending(){return this.status==ze}get disabled(){return this.status===et}get enabled(){return this.status!==et}errors;get pristine(){return be(this.pristineReactive)}set pristine(e){be(()=>this.pristineReactive.set(e))}_pristine=F(()=>this.pristineReactive());pristineReactive=O(!0);get dirty(){return!this.pristine}get touched(){return be(this.touchedReactive)}set touched(e){be(()=>this.touchedReactive.set(e))}_touched=F(()=>this.touchedReactive());touchedReactive=O(!1);get untouched(){return!this.touched}_events=new vi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(ki(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(ki(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ri(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ri(e,this._rawAsyncValidators))}hasValidator(e){return _t(this._rawValidators,e)}hasAsyncValidator(e){return _t(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(te(Z({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new nt(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new nt(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(te(Z({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new it(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new it(!0,n))}markAsPending(e={}){this.status=ze;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new $e(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(te(Z({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=et,this.errors=null,this._forEachChild(o=>{o.disable(te(Z({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,n)),this._events.next(new $e(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(te(Z({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Je,this._forEachChild(n=>{n.enable(te(Z({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(te(Z({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===ze)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,t)),this._events.next(new $e(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(te(Z({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=ze,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Gi(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new $e(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ze)?ze:this._anyControlsHaveStatus(vt)?vt:Je}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),o&&this._events.next(new it(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new nt(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xt(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Wn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Gn(this._rawAsyncValidators)}},Ge=class extends We{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){tn(this,!0,e),Object.keys(e).forEach(n=>{en(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((o,s)=>{n=t(n,o,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Zt=class extends Ge{};var Le=new Ce("",{providedIn:"root",factory:()=>at}),at="always";function Ot(i,e){return[...e.path,i]}function st(i,e,t=at){si(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Yn(i,e),Qn(i,e),Xn(i,e),qn(i,e)}function Mt(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),wt(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Et(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function qn(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function si(i,e){let t=Ki(i);e.validator!==null?i.setValidators(Fi(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Ji(i);e.asyncValidator!==null?i.setAsyncValidators(Fi(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Et(e._rawValidators,o),Et(e._rawAsyncValidators,o)}function wt(i,e){let t=!1;if(i!==null){if(e.validator!==null){let o=Ki(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.validator);s.length!==o.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let o=Ji(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.asyncValidator);s.length!==o.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Et(e._rawValidators,n),Et(e._rawAsyncValidators,n),t}function Yn(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&nn(i,e)})}function Xn(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&nn(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function nn(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Qn(i,e){let t=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function on(i,e){i==null,si(i,e)}function Zn(i,e){return wt(i,e)}function ri(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Kn(i){return Object.getPrototypeOf(i.constructor)===rt}function sn(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ai(i,e){if(!e)return null;Array.isArray(e);let t,n,o;return e.forEach(s=>{s.constructor===zi?t=s:Kn(s)?n=s:o=s}),o||n||t||null}function Jn(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}var eo={provide:oe,useExisting:ue(()=>to)},tt=Promise.resolve(),to=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this.submittedReactive)}_submitted=F(()=>this.submittedReactive());submittedReactive=O(!1);_directives=new Set;form;ngSubmit=new Me;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new Ge({},ti(t),ii(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),st(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path),o=new Ge({});on(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){tt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),sn(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new St(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||i)(N(ke,10),N(Re,10),N(Le,8))};static \u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&$("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([eo]),ie]})}return i})();function Li(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function Bi(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ot=class extends We{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(ni(t),oi(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Bi(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Li(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Li(this._onDisabledChange,e)}_forEachChild(e){}_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(e){Bi(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var io=i=>i instanceof ot,no=(()=>{class i extends oe{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,standalone:!1,features:[ie]})}return i})();var oo={provide:_e,useExisting:ue(()=>so)},Hi=Promise.resolve(),so=(()=>{class i extends _e{_changeDetectorRef;callSetDisabledState;control=new ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Me;constructor(t,n,o,s,c,_){super(),this._changeDetectorRef=c,this.callSetDisabledState=_,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ri(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){st(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Hi.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Ni(n);Hi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ot(t,this._parent):[t]}static \u0275fac=function(n){return new(n||i)(N(oe,9),N(ke,10),N(Re,10),N(Ve,10),N(qt,8),N(Le,8))};static \u0275dir=X({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[re([oo]),ie,Qe]})}return i})();var Wr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=X({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),ro={provide:Ve,useExisting:ue(()=>ao),multi:!0},ao=(()=>{class i extends rt{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&$("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ro]),ie]})}return i})(),lo={provide:Ve,useExisting:ue(()=>uo),multi:!0};var co=(()=>{class i{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Be({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uo=(()=>{class i extends rt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=A(Le,{optional:!0})??at;constructor(t,n,o,s){super(t,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(_e),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(N(ye),N(Y),N(co),N(He))};static \u0275dir=X({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([lo]),ie]})}return i})(),ho={provide:Ve,useExisting:ue(()=>po),multi:!0},po=(()=>{class i extends rt{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Ue(i)))(o||i)}})();static \u0275dir=X({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(c){return o.onChange(c.target.value)})("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ho]),ie]})}return i})(),li=new Ce(""),fo={provide:_e,useExisting:ue(()=>go)},go=(()=>{class i extends _e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ai(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Mt(n,this,!1),st(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ri(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Mt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(N(ke,10),N(Re,10),N(Ve,10),N(li,8),N(Le,8))};static \u0275dir=X({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[re([fo]),ie,Qe]})}return i})(),mo={provide:oe,useExisting:ue(()=>rn)},rn=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=F(()=>this._submittedReactive());_submittedReactive=O(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Me;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return st(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Mt(t.control||null,t,!1),Jn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),sn(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new St(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Mt(n||null,t),io(o)&&(st(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);on(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&Zn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){si(this.form,this),this._oldForm&&wt(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(N(ke,10),N(Re,10),N(Le,8))};static \u0275dir=X({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&$("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([mo]),ie,Qe]})}return i})(),vo={provide:oe,useExisting:ue(()=>an)},an=(()=>{class i extends no{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){cn(this._parent)}static \u0275fac=function(n){return new(n||i)(N(oe,13),N(ke,10),N(Re,10))};static \u0275dir=X({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([vo]),ie]})}return i})(),_o={provide:oe,useExisting:ue(()=>ln)},ln=(()=>{class i extends oe{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){cn(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(N(oe,13),N(ke,10),N(Re,10))};static \u0275dir=X({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([_o]),ie]})}return i})();function cn(i){return!(i instanceof an)&&!(i instanceof rn)&&!(i instanceof ln)}var Co={provide:_e,useExisting:ue(()=>yo)},yo=(()=>{class i extends _e{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=c,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){this._added||this._setUpControl(),ri(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(N(oe,13),N(ke,10),N(Re,10),N(Ve,10),N(li,8))};static \u0275dir=X({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Co]),ie,Qe]})}return i})();var dn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Xe({})}return i})(),Kt=class extends We{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){tn(this,!1,e),e.forEach((n,o)=>{en(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function ji(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Gr=(()=>{class i{useNonNullable=!1;get nonNullable(){let t=new i;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),s={};return ji(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new Ge(o,s)}record(t,n=null){let o=this._reduceControls(t);return new Zt(o,n)}control(t,n,o){let s={};return this.useNonNullable?(ji(n)?s=n:(s.validators=n,s.asyncValidators=o),new ot(t,te(Z({},s),{nonNullable:!0}))):new ot(t,n,o)}array(t,n,o){let s=t.map(c=>this._createControl(c));return new Kt(s,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof ot)return t;if(t instanceof We)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,o,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Be({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var qr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Le,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Xe({imports:[dn]})}return i})(),Yr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:li,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Le,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Xe({imports:[dn]})}return i})();var ce=["*"],Do=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],bo=["[icon]","sh-icon","[title]","*","[content]","p"];function So(i,e){i&1&&(E(0,"sh-icon",3),I(1,"info"),T())}function Mo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"info"),T())}function Eo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"warning"),T())}function wo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"warning-octagon"),T())}function xo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"check-circle"),T())}function Oo(i,e){i&1&&(E(0,"sh-icon",3),I(1,"question"),T())}function Vo(i,e){if(i&1){let t=he();E(0,"sh-icon",7),$("click",function(){H(t);let o=y();return j(o.removeAlert())}),I(1,"plus"),T()}}var To=["dialogRef"];function No(i,e){if(i&1){let t=he();U(0,"div",5),Fe("click",function(){H(t);let o=y(2);return j(o.isOpen.set(!1))}),z()}}function Ao(i,e){if(i&1&&(U(0,"dialog",2,0)(2,"div",3),b(3),z(),k(4,No,1,0,"div",4),z()),i&2){let t=y(),n=K(0);ve(n.class),se("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),R(t.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Io=["shButton",""];var Po=["triggerRef"],Fo=["popoverRef"],ko=["popoverContentRef"],Ro=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],Lo=["[trigger]","button","[shButton]","*"];function Bo(i,e){if(i&1){let t=he();U(0,"div",6,1)(2,"div",7),Fe("click",function(o){H(t);let s=y();return j(s.eventClose(o))}),z(),U(3,"div",8,2),b(5,3),z()()}if(i&2){let t=y();Ee("id",t.id()+"hello"),S(3),Vi(t.menuStyle()),se("position-anchor",t.id())}}var Ho=()=>({closeOnButton:!1,closeOnEsc:!0});var jo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Uo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],zo=["input"],$o=[[["label"]]],Wo=["label"];function Go(i,e){if(i&1&&(E(0,"div",3),I(1),T()),i&2){let t=y();S(),Ke(t.files()[0].name)}}function qo(i,e){if(i&1&&(E(0,"div",3),I(1),T()),i&2){let t=y();S(),we("",t.files().length," files selected")}}function Yo(i,e){if(i&1&&(E(0,"div",4),I(1),T()),i&2){let t=y();S(),Ke(t.filesOver()?t.overlayText():t.placeholder())}}var Xo=["inputRef"],Qo=["optionsRef"],Zo=["*",[["","menu",""]]],Ko=["*","[menu]"];function Jo(i,e){i&1&&(E(0,"sh-icon",5),I(1,"caret-down"),T())}var es=[[["label"]],[["input","type","range"]]],ts=["label","input[type=range]"],is=["optionsWrap"],ns=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],os=["label","[prefix]","[boxPrefix]","input","textarea"],ss=()=>({closeOnButton:!1,closeOnEsc:!1}),un=(i,e)=>({$implicit:i,last:e}),pi=i=>({$implicit:i});function rs(i,e){if(i&1&&I(0),i&2){let t=y();we(" ",t.inputValue()," ")}}function as(i,e){i&1&&Pe(0)}function ls(i,e){if(i&1&&Ne(0,as,1,0,"ng-container",13),i&2){let t=y(3),n=t.$implicit,o=t.$index,s=t.$count;y(2);let c=K(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,un,n,o===s-1))}}function cs(i,e){if(i&1&&I(0),i&2){let t=y(3).$implicit,n=y(2);we(" ",n.getLabel(t)," ")}}function ds(i,e){if(i&1){let t=he();E(0,"sh-chip",12),$("click",function(o){H(t);let s=y(2).$index,c=y(2);return j(c.removeSelectedOptionByIndex(o,s))}),k(1,ls,1,5,"ng-container")(2,cs,1,1),E(3,"sh-icon"),I(4,"x-bold"),T()()}if(i&2){let t=y(4),n=K(3);ve(t.selectClasses()),S(),R(n?1:2)}}function us(i,e){i&1&&Pe(0)}function hs(i,e){if(i&1&&Ne(0,us,1,0,"ng-container",13),i&2){let t=y(4),n=t.$implicit,o=t.$index,s=t.$count;y(2);let c=K(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,un,n,o===s-1))}}function ps(i,e){if(i&1&&I(0),i&2){let t=y(4),n=t.$implicit,o=t.$index,s=t.$count,c=y(2);we(" ",o===s-1?c.getLabel(n):c.getLabel(n)+","," ")}}function fs(i,e){if(i&1&&k(0,hs,1,5,"ng-container")(1,ps,1,1),i&2){y(5);let t=K(3);R(t?0:1)}}function gs(i,e){if(i&1&&k(0,fs,2,1),i&2){y(4);let t=K(6);R(t?-1:0)}}function ms(i,e){if(i&1&&k(0,ds,5,3,"sh-chip",11)(1,gs,1,1),i&2){y(3);let t=K(5);R(t?0:1)}}function vs(i,e){if(i&1&&k(0,ms,2,1),i&2){let t=e.$implicit;R(t?0:-1)}}function _s(i,e){if(i&1&&Bt(0,vs,1,1,null,null,Lt),i&2){y();let t=K(2);Ht(t)}}function Cs(i,e){i&1&&Pe(0)}function ys(i,e){if(i&1&&Ne(0,Cs,1,0,"ng-container",14),i&2){y(2);let t=K(0);ge("ngTemplateOutlet",t)}}function Ds(i,e){if(i&1&&I(0),i&2){let t=y(2);we(" ",t.placeholderText()??""," ")}}function bs(i,e){if(i&1&&k(0,ys,1,1,"ng-container")(1,Ds,1,1),i&2){y();let t=K(0);R(t?0:1)}}function Ss(i,e){i&1&&(E(0,"sh-icon",6),I(1,"caret-down"),T())}function Ms(i,e){i&1&&Ae(0,"sh-spinner",7)}function Es(i,e){i&1&&(E(0,"sh-icon",6),I(1,"list-magnifying-glass"),T())}function ws(i,e){i&1&&(E(0,"sh-icon",6),I(1,"magnifying-glass"),T())}function xs(i,e){if(i&1){let t=he();E(0,"sh-icon",15),$("click",function(o){H(t);let s=y();return j(s.clear(o))}),I(1,"x-bold"),T()}}function Os(i,e){i&1&&(E(0,"sh-icon",6),I(1,"caret-down"),T())}function Vs(i,e){i&1&&(E(0,"sh-icon",6),I(1,"caret-up"),T())}function Ts(i,e){if(i&1&&(E(0,"p",9),I(1),T()),i&2){let t=y(3);S(),Ke(t.freeTextTitle())}}function Ns(i,e){i&1&&Pe(0)}function As(i,e){if(i&1&&Ne(0,Ns,1,0,"ng-container",13),i&2){y(2);let t=K(0);y();let n=K(1);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Is(i,e){i&1&&Pe(0)}function Ps(i,e){if(i&1&&Ne(0,Is,1,0,"ng-container",13),i&2){y(2);let t=K(0);y();let n=K(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Fs(i,e){if(i&1&&I(0),i&2){y(2);let t=K(1);we(" ",t," ")}}function ks(i,e){i&1&&Ae(0,"sh-divider")}function Rs(i,e){if(i&1){let t=he();k(0,Ts,2,1,"p",9),E(1,"li",16),$("click",function(){H(t);let o=y(2);return j(o.toggleOptionByIndex(-1))}),k(2,As,1,4,"ng-container")(3,Ps,1,4,"ng-container")(4,Fs,1,1),T(),k(5,ks,1,0,"sh-divider")}if(i&2){y();let t=K(0),n=y(),o=K(1),s=K(4);R(n.freeTextTitle()?0:-1),S(),G("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),ge("id",n.getLabelAsSlug(t)),Ee("aria-selected",n.isSelected(-1)),S(),R(o?2:s?3:4),S(3),R(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ls(i,e){if(i&1&&(gt(0)(1),k(2,Rs,6,9)),i&2){let t=y(),n=me(t.computedFreeTextOption());S();let o=me(t.getValue(n));S(),R(o.length>0?2:-1)}}function Bs(i,e){if(i&1&&(E(0,"p",9),I(1),T()),i&2){let t=y();S(),Ke(t.optionTitle())}}function Hs(i,e){if(i&1&&Ae(0,"sh-checkbox"),i&2){let t=y().$index,n=y();ve(n.selectClasses()),G("active",n.isSelected(t))}}function js(i,e){i&1&&Pe(0)}function Us(i,e){if(i&1&&Ne(0,js,1,0,"ng-container",13),i&2){let t=y().$implicit;y();let n=K(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function zs(i,e){if(i&1&&I(0),i&2){let t=y().$implicit,n=y();we(" ",n.getLabel(t)," ")}}function $s(i,e){if(i&1){let t=he();E(0,"li",16),$("click",function(){let o=H(t).$index,s=y();return j(s.toggleOptionByIndex(o))}),k(1,Hs,1,4,"sh-checkbox",17),k(2,Us,1,4,"ng-container")(3,zs,1,1),T()}if(i&2){let t=e.$implicit,n=e.$index,o=y(),s=K(4);G("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),ge("id",o.getLabelAsSlug(t)),Ee("aria-selected",o.isSelected(n)),S(),R(o.selectMultiple()?1:-1),S(),R(s?2:3)}}var Ws=["dragImageElement"],Gs=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],qs=["[sidenav]","[sidenav-closed-topbar]","*"];function Ys(i,e){i&1&&Ie(0,"div",1,0)}function Xs(i,e){if(i&1){let t=he();U(0,"div",7),Fe("drop",function(o){H(t);let s=y();return j(s.drop(o))})("dragenter",function(){H(t);let o=y();return j(o.dragEnter())})("dragleave",function(){H(t);let o=y();return j(o.dragLeave())}),z()}}function Qs(i,e){if(i&1){let t=he();U(0,"div",8),Fe("dragstart",function(o){H(t);let s=y();return j(s.dragStart(o))})("dragend",function(o){H(t);let s=y();return j(s.dragEnd(o))})("drag",function(o){H(t);let s=y();return j(s.drag(o))})("touchstart",function(o){H(t);let s=y();return j(s.touchStart(o))})("touchmove",function(o){H(t);let s=y();return j(s.touchMove(o))})("touchend",function(o){H(t);let s=y();return j(s.touchEnd(o))})("touchcancel",function(o){H(t);let s=y();return j(s.touchCancel(o))}),z()}}var Zs=["thead"],Ks=["tbody"],Js=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],er=["th","[thead]","*","[table-no-rows]"];function tr(i,e){i&1&&Ae(0,"sh-progress-bar",2)}function ir(i,e){i&1&&(E(0,"div",3),b(1,3),T())}var nr=[[["","title",""]],"*"],or=["[title]","*"];function sr(i,e){i&1&&I(0,"Title")}function rr(i,e){i&1&&(E(0,"sh-icon",1),I(1,"caret-down"),T())}var ar=["bold","thin","light","fill","duotone"],Ye=(()=>{var e,t;let n=class n{constructor(){w(this,e,A(Y));w(this,t,A(ye))}ngAfterContentInit(){let s=f(this,e).nativeElement.textContent?.trim();if(!s)return;let c=s.split("-").at(-1);c&&ar.includes(c)&&f(this,t).addClass(f(this,e).nativeElement,c)}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=B({type:n,selectors:[["sh-icon"]],ngContentSelectors:ce,decls:1,vars:0,template:function(c,_){c&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function At(i=null){let e=i??A(Y).nativeElement;if(!e)return O("");let t=O(e.className);if(typeof MutationObserver>"u")return t.asReadonly();let n=A(Te),o=new MutationObserver(s=>{for(let c of s)if(c.type==="attributes"&&c.attributeName==="class"){let _=c.target;t.set(_.className)}});return o.observe(e,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),t.asReadonly()}var It=new Ce("Ship UI Config"),lr=["simple","outlined","flat","raised"],Da=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,A(It,{optional:!0})),this.variant=O(f(this,e)?.alertVariant??""),this._el=A(Y),this.alertService=V(null),this.id=V(null),this.currentClasses=At(),this.activeClass=F(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?lr.find(_=>this.currentClasses().includes(_))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=B({type:t,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:bo,decls:19,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(s,c){if(s&1&&(W(Do),E(0,"div",1)(1,"div",2,0),b(3),b(4,1),T(),E(5,"div",2),k(6,So,2,0,"sh-icon",3)(7,Mo,2,0,"sh-icon",3)(8,Eo,2,0,"sh-icon",3)(9,wo,2,0,"sh-icon",3)(10,xo,2,0,"sh-icon",3)(11,Oo,2,0,"sh-icon",3),T(),E(12,"div",4),b(13,2),b(14,3),T(),k(15,Vo,2,0,"sh-icon",5),E(16,"div",6),b(17,4),b(18,5),T()()),s&2){let _=Oi(2);S(),se("display",_.children.length?"block":"none");let m=c.currentClasses();S(5),R(m.includes("primary")?6:m.includes("accent")?7:m.includes("warn")?8:m.includes("error")?9:m.includes("success")?10:11),S(9),R(c.id()?15:-1)}},dependencies:[Ye],encapsulation:2,changeDetection:0});let i=t;return i})();function Pt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ba=(()=>{let e=class e{constructor(){this.alertHistory=O([]),this.alertHistoryIsOpen=O(!1),this.alertHistoryIsHidden=O(!0)}error(n){this.addAlert({type:"error",title:n??"An error occured"})}success(n){this.addAlert({type:"success",title:n})}question(n){this.addAlert({type:"question",title:n})}warning(n){this.addAlert({type:"warn",title:n})}info(n){this.addAlert({type:"primary",title:n})}addAlert(n){let o=Pt();this.alertHistory.update(s=>[te(Z({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(c=>te(Z({},c),{animateIn:c.id===o?!1:c.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>te(Z({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>te(Z({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=Be({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),cr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},dr=(()=>{var e,t;let n=class n{constructor(){w(this,e);w(this,t);x(this,e,A(je)),x(this,t,A(It,{optional:!0})),this.dialogRef=fe("dialogRef"),this.isOpen=ne(!1),this.options=V(),this.closed=xe(),this.defaultOptionMerge=F(()=>Z(te(Z({},cr),{class:f(this,t)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=J(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),f(this,e).addEventListener("keydown",c=>{c.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&c.preventDefault(),c.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=B({type:n,selectors:[["sh-dialog"]],viewQuery:function(c,_){c&1&&pe(_.dialogRef,To,5),c&2&&De()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ce,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(c,_){c&1&&(W(),gt(0),k(1,Ao,5,11,"dialog",1)),c&2&&(me(_.defaultOptionMerge()),S(),R(_.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Sa=(()=>{var e,t,n,o,hn,lt;let _=class _{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);x(this,e,A(je)),x(this,t,f(this,e).querySelector("body")),x(this,n,A(Rt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(r,l){let u=f(this,n).injector,h=M(this,o,hn).call(this),g=!1,q=l||{},{data:C,closed:a}=q,d=gi(q,["data","closed"]);this.compRef&&M(this,o,lt).call(this,!0),this.insertedCompRef=Yt(r,{environmentInjector:u}),this.compRef=Yt(dr,{hostElement:h,environmentInjector:u,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let p=this.insertedCompRef.instance,v=p.data,D=p.closed;if(C){if(Ft(v))this.insertedCompRef.setInput("data",C);else if(!Ft(v))throw new Error("data is not an input signal on the passed component")}D instanceof Gt&&(this.closedFieldSub=D.subscribe(P=>{M(this,o,lt).call(this),!g&&(g=!0,a?.(P),(this.compRef?.instance.closed).emit(P))})),f(this,n).attachView(this.insertedCompRef.hostView),f(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",d),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>ee());let L=this;function ee(P=void 0){var Q;M(Q=L,o,lt).call(Q),!g&&(g=!0,D&&D instanceof Gt&&D.emit(P),a?.(P))}return{component:this.insertedCompRef.instance,close:ee,closed:this.compRef.instance.closed}}ngOnDestroy(){M(this,o,lt).call(this,!0)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,hn=function(){let r=f(this,e).createElement("sh-dialog-ref");return r.id="sh-dialog-ref",f(this,e).getElementById("sh-dialog-ref")||f(this,t)?.append(r),f(this,e).getElementById("sh-dialog-ref")},lt=function(r=!1){let l=this;r||queueMicrotask(()=>u());function u(){l.insertedCompRef&&(f(l,n).detachView(l.insertedCompRef.hostView),l.closedFieldSub?.unsubscribe(),l.insertedCompRef.destroy()),l.compRef&&(f(l,n).detachView(l.compRef.hostView),l.compClosedSub?.unsubscribe(),l.compRef.destroy())}},_.\u0275fac=function(l){return new(l||_)},_.\u0275prov=Be({token:_,factory:_.\u0275fac,providedIn:"root"});let i=_;return i})();var Ma=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--btng-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ea=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Io,ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),wa=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,A(It,{optional:!0})),this.class=O(f(this,e)?.cardType??"type-a")}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=B({type:t,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.class())},ngContentSelectors:ce,decls:1,vars:0,template:function(s,c){s&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),ur=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-checkbox"]],ngContentSelectors:ce,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(o,s){o&1&&(W(),E(0,"div",0)(1,"sh-icon",1),I(2,"check-bold"),T(),E(3,"sh-icon",2),I(4,"minus-bold"),T()(),E(5,"div",3),b(6),T()),o&2&&ve(s.currentClassList())},dependencies:[Ye],encapsulation:2,changeDetection:0});let i=e;return i})(),hr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ce,decls:2,vars:0,template:function(o,s){o&1&&(W(),U(0,"div"),b(1),z())},encapsulation:2,changeDetection:0});let i=e;return i})();var Vt=4,pr=["scroll","auto"],fr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},pn=(()=>{var e,t,fn,gn,mn,vn,_n,Tt;let r=class r{constructor(){w(this,t);w(this,e);x(this,e,A(je)),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=V(!1),this.disableOpenByClick=V(!1),this.isOpen=ne(!1),this.options=V(),this.closed=xe(),this.defaultOptionMerge=F(()=>Z(Z({},fr),this.options())),this.triggerRef=fe.required("triggerRef"),this.popoverRef=fe("popoverRef"),this.popoverContentRef=fe("popoverContentRef"),this.id=O("--"+Pt()),this.menuStyle=O(null),this.openAbort=null,this.openEffect=J(()=>{let u=this.isOpen();queueMicrotask(()=>{let h=this.popoverRef()?.nativeElement;if(!h){this.openAbort?.abort(),this.openAbort=null;return}u?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,f(this,e).addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),h.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{M(this,t,fn).call(this,h).addEventListener("scroll",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),M(this,t,Tt).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(u){this.disableOpenByClick()||(u.preventDefault(),u.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(u){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};e=new WeakMap,t=new WeakSet,fn=function(u){let h=u.parentElement;for(;h;){if(pr.indexOf(window?.getComputedStyle(h).overflowY)>-1&&h.scrollHeight>h.clientHeight)return h;h=h.parentElement}return f(this,e).documentElement},gn=function(u,h){let g=u.left,C=u.bottom+Vt;return{left:g,top:C}},mn=function(u,h){let g=u.right+Vt,C=u.top;return{left:g,top:C}},vn=function(u,h){let g=u.right+Vt,C=u.bottom;return{left:g,top:C}},_n=function(u,h){let g=u.left,C=u.bottom-u.height-h.height-Vt;return{left:g,top:C}},Tt=function(){let u=this.triggerRef()?.nativeElement.getBoundingClientRect(),h=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),g=[M(this,t,mn),M(this,t,vn)],C=[M(this,t,gn),M(this,t,_n)],a=this.asMultiLayer()?g:C;for(let p=0;p<a.length;p++){let v=a[p](u,h),D=v.left+(h?.width||0)>window.innerWidth,L=v.top+(h?.height||0)>window.innerHeight;if(!D&&!L){this.menuStyle.set({left:v.left+"px",top:v.top+"px"});return}}let d=a[0](u,h);this.menuStyle.set({left:d.left+"px",top:d.top+"px"})},r.\u0275fac=function(h){return new(h||r)},r.\u0275cmp=B({type:r,selectors:[["sh-popover"]],viewQuery:function(h,g){h&1&&(pe(g.triggerRef,Po,5),pe(g.popoverRef,Fo,5),pe(g.popoverContentRef,ko,5)),h&2&&De(3)},hostVars:2,hostBindings:function(h,g){h&2&&G("multi-layer",g.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Lo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(h,g){if(h&1){let C=he();W(Ro),U(0,"div",3,0),Fe("click",function(d){return H(C),j(g.toggleIsOpen(d))}),U(2,"div",4),b(3),b(4,1),b(5,2),z(),Ie(6,"div",5),z(),k(7,Bo,6,5,"div",6)}h&2&&(Ee("popovertarget",g.id()+"hello"),S(6),se("anchor-name",g.id()),S(),R(g.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=r;return i})();var gr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-divider"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var fi=(()=>{var e;let t=class t{constructor(){w(this,e,A(Y));kt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=f(this,e).nativeElement.querySelector("textarea");if(!o&&s!==null){let m=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(m,0)};var c=m,_=r;s.addEventListener("change",m),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),m()}})}onClick(){f(this,e).nativeElement.querySelector("input")&&f(this,e).nativeElement.querySelector("input").focus(),f(this,e).nativeElement.querySelector("textarea")&&f(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=B({type:t,selectors:[["sh-form-field"]],hostBindings:function(s,c){s&1&&$("click",function(){return c.onClick()})},ngContentSelectors:Uo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,c){s&1&&(W(jo),b(0),U(1,"div",0)(2,"div",1),b(3,1),b(4,2),b(5,3),z(),b(6,4),b(7,5),U(8,"div",2),b(9,6),b(10,7),b(11,8),z()(),U(12,"div",3)(13,"div",4),b(14,9),z(),U(15,"div",5),b(16,10),z()())},encapsulation:2,changeDetection:0});let i=t;return i})(),xa=(()=>{let e=class e{constructor(){this._el=A(Y),this.inputRef=fe.required("input"),this.filesOver=O(!1),this.multiple=V(),this.accept=V(null),this.placeholder=ne("Click or drag files here"),this.overlayText=V("Drop files here"),this.files=ne([]),this.fileUploadClasses=F(()=>this._el.nativeElement.classList.toString()),this.inputEffect=J(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&pe(s.inputRef,zo,5),o&2&&De()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Wo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(o,s){o&1&&(W($o),E(0,"sh-form-field"),b(1,0,["ngProjectAs","label",5,["label"]]),E(2,"div",2,0),k(4,Go,2,1,"div",3)(5,qo,2,1,"div",3)(6,Yo,2,1,"div",4),Ae(7,"input",5,1)(9,"div",6),T(),E(10,"sh-icon",7),I(11,"upload-simple"),T()()),o&2&&(ve(s.fileUploadClasses()),S(4),R(s.files().length===1?4:s.files().length>1?5:6),S(3),Ee("multiple",s.multiple())("accept",s.accept()),S(2),G("files-over",s.filesOver()))},dependencies:[fi,Ye],encapsulation:2,changeDetection:0});let i=e;return i})(),Oa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-list"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();function mr(i,e){let t=O(null),n=e.map(m=>m.toUpperCase()),o=A(He),s=o.get(Te);if(Ii(o.get(Si))||typeof MutationObserver>"u")return t.asReadonly();if(n.find(m=>i.nativeElement.querySelector(m)))return t.set(new Y(i.nativeElement.querySelector(e[0]))),t.asReadonly();let _=new MutationObserver(m=>{for(let r of m)if(r.addedNodes){for(let l of Array.from(r.addedNodes))if(l.nodeType===Node.ELEMENT_NODE&&n.includes(l.nodeName)){t.set(new Y(l)),_.disconnect();return}}});return _.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>_.disconnect()),t.asReadonly()}function Cn(i,e){let t=A(He),n=t.get(Te),o=O([]),s=null,c=null,_=(r,l)=>{c&&c.disconnect();let u=Array.from(r.nativeElement.querySelectorAll(l.join(",")));o.set(u),typeof MutationObserver<"u"&&(c=new MutationObserver(h=>{queueMicrotask(()=>{let g=Array.from(r.nativeElement.querySelectorAll(l.join(",")));o.set(g)})}),c.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>m())};s=J(()=>{let r=typeof i=="function"&&i[mi]?i():i,l=typeof e=="function"?e():e;r&&l?.length>0?_(r,l):(o.set([]),c&&(c.disconnect(),c=null))},{injector:t});function m(){s&&s.destroy(),c&&c.disconnect()}return{signal:o.asReadonly(),destroy:m}}function vr(i,e=["input","textarea"]){let t=i||mr(A(Y),e),n=O(void 0),o=A(He),s=o.get(Te),c=O(null);J(m=>{let r=t();if(!r)return;let l=r.nativeElement;l&&(_r(l),c.set(l),n.set(l.value??""),m(()=>{c.set(null)}))},{injector:o});let _=null;return J(()=>{let m=c();if(!m)return;_&&(_(),_=null);let r=u=>{n.set(u.detail.value)},l=u=>{n.set(u.target.value)};m.addEventListener("input",l),m.addEventListener("inputValueChanged",r),n.set(m.value),_=()=>{m.removeEventListener("input",l),m.removeEventListener("inputValueChanged",r)},s.onDestroy(()=>{_&&_()})},{injector:o}),J(()=>{let m=c();if(!m)return;let r=n();r&&(m.value=r,m.dispatchEvent(new Event("input")))},{injector:o}),n}function _r(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(e){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,e);let n=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}});return this.dispatchEvent(n),e}}),i}var Va=(()=>{var e,t,n,yn,ci;let c=class c{constructor(){w(this,n);w(this,e);w(this,t);x(this,e,A(je)),x(this,t,A(ye)),this.asMultiLayer=V(!1),this.openIndicator=V(!1),this.disabled=V(!1),this.customOptionElementSelectors=V(["button"]),this.keepClickedOptionActive=V(!1),this.closeOnClick=V(!0),this.isOpen=ne(!1),this.closed=xe(),this.searchable=V(!1),this.activeOptionIndex=O(-1),this.inputRef=fe("inputRef"),this.optionsRef=fe("optionsRef"),this.options=Cn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=F(()=>this.options.signal().filter(m=>!m.disabled)),this.inputValue=vr(this.inputRef),this.abortController=null,this.optionsEffect=J(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||f(this,e).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let r=this.inputRef()?.nativeElement;r&&(queueMicrotask(()=>r.focus()),r.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",u=>{let h=u.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let C=g.findIndex(a=>a===h);C>-1&&(this.activeOptionIndex.set(C),r.focus())}))}),this.keyDownEventListener=m=>{let r=this.activeOptionIndex();m.key==="ArrowDown"?(m.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):m.key==="ArrowUp"?(m.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):m.key==="Enter"?(m.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):m.key==="Tab"&&(m.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=O([]),this.lastInputValue="",this.inputValueEffect=J(()=>{if(!this.searchable())return;let r=(this.inputValue()??"").toLowerCase();if(M(this,n,ci).call(this),!r||r===""){let u=this.optionsEl();this.activeElements.set(u),this._lastElementList=u;for(let h=0;h<u.length;h++)f(this,t).removeStyle(u[h],"order");return}if(!r||r==="")return;let l=this._lastElementList.length&&r.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=r;for(let u=0;u<l.length;u++){let h=l[u],g=h.textContent?.toLowerCase()||"",C=M(this,n,yn).call(this,g,r);h.value=C}l=l.filter(u=>u.value>0).sort((u,h)=>h.value-u.value);for(let u=0;u<l.length;u++)f(this,t).setStyle(l[u],"order",u);this.activeElements.set(l),this._lastElementList=l}),this.activeOptionIndexEffect=J(()=>{let m=this.activeElements(),r=this.activeOptionIndex();for(let l=0;l<m.length;l++)m[l].classList.remove("active");r>-1&&(m[r].scrollIntoView({block:"center"}),m[r].classList.add("active"))})}toggleIsOpen(m){m.preventDefault(),m.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(m){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(m===-1||m===r.length-1)return 0;let l=m+1;return r[l].disabled?this.nextActiveIndex(l):l}prevActiveIndex(m){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(m===0||m===-1)return r.length-1;let l=m-1;return r[l].disabled?this.prevActiveIndex(l):l}close(m="closed",r){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||m==="closed")&&M(this,n,ci).call(this),this.isOpen.set(!1),this.closed.emit(m==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,t=new WeakMap,n=new WeakSet,yn=function(m,r){if(!r)return 0;let l=0,u=-1,h=0,g=!0;for(let C=0;C<r.length;C++){let a=r[C];if(m.length>u+1&&m[u+1]===a)l+=C===0?100:150,u++,h++;else{let d=m.indexOf(a,u+1);if(C>0&&(g=!1),d===-1)return 0;l+=100,u=d,h++}}return g&&r.length===h&&(l+=1e3),l+=h*20,l},ci=function(){this.activeOptionIndex.set(-1);let m=this.optionsEl();for(let r=0;r<m.length;r++)m[r].classList.remove("active")},c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=B({type:c,selectors:[["sh-menu"]],viewQuery:function(r,l){r&1&&(pe(l.inputRef,Xo,5),pe(l.optionsRef,Qo,5)),r&2&&De(2)},hostVars:6,hostBindings:function(r,l){r&2&&G("disabled",l.disabled())("has-search",l.searchable())("multi-layer",l.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ko,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(r,l){if(r&1){let u=he();W(Zo),E(0,"sh-popover",3,0),zt("isOpenChange",function(g){return H(u),Ut(l.isOpen,g)||(l.isOpen=g),j(g)}),$("closed",function(){return H(u),j(l.close("fromPopover"))}),E(2,"div",4),$("click",function(g){return H(u),j(l.toggleIsOpen(g))}),b(3),k(4,Jo,2,0,"sh-icon",5),T(),E(5,"div",6)(6,"sh-form-field",7),Ae(7,"input",8,1),T()(),E(9,"div",9,2),$("click",function(){return H(u),j(l.close("active"))}),b(11,1),T()()}r&2&&(jt("isOpen",l.isOpen),ge("disableOpenByClick",!0)("asMultiLayer",l.asMultiLayer())("options",$t(11,Ho)),S(2),G("is-open",l.isOpen()),S(2),R(l.openIndicator()?4:-1),S(2),G("hidden",l.searchable()===!1),S(3),G("searching",l.searchable()&&l.inputValue()!==""))},dependencies:[pn,fi,Ye],encapsulation:2,changeDetection:0});let i=c;return i})(),Cr=(()=>{let e=class e{constructor(){this.value=V(void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Ie(0,"div",0),o&2&&se("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=e;return i})(),Ta=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-radio"]],ngContentSelectors:ce,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(W(),Ie(0,"div",0),b(1)),o&2&&ve(s.currentClassList())},encapsulation:2,changeDetection:0});let i=e;return i})(),Na=(()=>{var e,t,n,o,s,di,Dn,bn,Sn;let l=class l{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,A(Y)),x(this,t,null),x(this,n,null),x(this,o,0),this.unit=V(""),this.value=ne(f(this,o)),this.inputState=O({min:0,max:100,step:1}),this.valuePercentage=F(()=>{let{min:h,max:g}=this.inputState(),C=this.value()??h;if(isNaN(C))return 0;let a=g-h;if(a===0)return 0;let d=(C-h)/a*100;return Math.max(0,Math.min(100,d))}),this.trackFilledPercentage=F(()=>this.valuePercentage()),this.thumbPositionPercentage=F(()=>this.valuePercentage()),this.syncModelToInputEffect=J(()=>{let h=this.value();if(f(this,n)){let g=parseFloat(f(this,n).value);(isNaN(g)||String(g)!==String(h))&&(f(this,n).value=String(h))}})}get hasInputElement(){return!!f(this,n)}ngAfterViewInit(){x(this,n,f(this,e).nativeElement.querySelector('input[type="range"]')),f(this,n)?(M(this,s,Sn).call(this,f(this,n)),f(this,n).oninput=()=>{this.setNewInputValue(f(this,n).value)},f(this,n).addEventListener("inputValueChanged",h=>{this.setNewInputValue(h.detail.value)}),queueMicrotask(()=>M(this,s,di).call(this,!0)),M(this,s,Dn).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(h){let g=parseFloat(h??"0");if(!isNaN(g)){let{min:C,max:a}=this.inputState();this.value.set(Math.max(C,Math.min(a,g)))}}trackEvent(h){if(!f(this,n)||f(this,n).readOnly||f(this,n).disabled){h.preventDefault(),h.stopPropagation();return}if(h.target===f(this,n)||h.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let C=h.currentTarget.getBoundingClientRect(),a=h.clientX-C.left,d=C.width,{min:p,max:v,step:D}=this.inputState(),L=v-p;if(d>0&&L!==0&&D>0){let q=(a/d*L+p-p)/D,P=p+Math.round(q)*D,Q=M(this,s,bn).call(this,D);P=parseFloat(P.toFixed(Q));let de=Math.max(p,Math.min(v,P));this.value.set(de)}}ngOnDestroy(){f(this,t)&&f(this,t).disconnect(),f(this,n)&&(f(this,n).oninput=null)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,di=function(h=!1){if(!f(this,n))return;let g=parseFloat(f(this,n).min??"0")??0,C=parseFloat(f(this,n).max??"100")??100,a=f(this,n).step,d=1;if(a&&a.toLowerCase()!=="any"){let v=parseFloat(a);!isNaN(v)&&v>0&&(d=v)}this.inputState.set({min:g,max:C,step:d});let p=parseFloat(f(this,n).value??String(g))??g;if(h&&this.value()!==f(this,o)){let v=this.value(),D=Math.max(g,Math.min(C,v));p!==D&&(f(this,n).value=String(D)),v!==D&&this.value.set(D)}else{let v=Math.max(g,Math.min(C,p));this.value()!==v&&this.value.set(v)}},Dn=function(){if(!f(this,n)||typeof MutationObserver>"u")return;let h=["min","max","step","value","readonly","disabled"];x(this,t,new MutationObserver(g=>{let C=!1;for(let a of g)if(a.type==="attributes"&&h.includes(a.attributeName??"")){C=!0;break}C&&M(this,s,di).call(this,!1)})),f(this,t).observe(f(this,n),{attributes:!0,attributeFilter:h})},bn=function(h){if(isNaN(h)||Math.floor(h)===h)return 0;let C=h.toString().split(".")[1];return C?C.length:0},Sn=function(h){Object.defineProperty(h,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").get.call(this)},set(g){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").set.call(this,g);let a=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:g}});return this.dispatchEvent(a),g}})},l.\u0275fac=function(g){return new(g||l)},l.\u0275cmp=B({type:l,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(g,C){g&2&&G("has-input",C.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ts,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(g,C){g&1&&(W(es),U(0,"div",0),b(1),z(),U(2,"div",1)(3,"div",2),I(4),z(),U(5,"div",3),Fe("click",function(d){return C.trackEvent(d)}),b(6,1),U(7,"div",4),Ie(8,"div",5),z(),U(9,"div",6)(10,"div",7)(11,"div",8),I(12),z()()()(),U(13,"div",9),I(14),z()()),g&2&&(S(4),ft("",C.inputState().min,"",C.unit()),S(4),se("width",C.trackFilledPercentage(),"%"),S(),se("left",C.thumbPositionPercentage(),"%"),S(3),ft("",C.value(),"",C.unit()),S(2),ft("",C.inputState().max,"",C.unit()))},encapsulation:2,changeDetection:0});let i=l;return i})(),yr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=e;return i})(),Aa=(()=>{var e,t,n,o,ui,c,_,hi,le,Mn,En,wn;let g=class g{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);w(this,c);w(this,_);x(this,e,A(Y)),this.value=V(),this.label=V(),this.asFreeText=V(!1),this.optionTitle=V(null),this.freeTextTitle=V(null),this.freeTextPlaceholder=V("Type to create a new option"),this.validateFreeText=V(),this.placeholder=V(),this.readonly=ne(!1),this.disabled=ne(!1),this.lazySearch=V(!1),this.inlineSearch=V(!1),this.asText=V(!1),this.isClearable=V(!0),this.selectMultiple=V(!1),this.optionTemplate=V(null),this.selectedOptionTemplate=V(null),this.placeholderTemplate=V(null),this.freeTextOptionTemplate=V(null),this.isOpen=ne(!1),this.isLoading=ne(!1),this.options=ne([]),this.selectedOptions=ne([]),this.cleared=xe(),this.onAddNewFreeTextOption=xe(),this.computedFreeTextOption=F(()=>{let a=this.inputValue(),d=this.value(),p=d?{}:a;return d&&typeof p=="object"&&(p[d]=a),p}),x(this,t,O(null)),this.inlineTemplate=Ti(pt),this.optionsWrapRef=fe.required("optionsWrap"),this.inputRefInput=O(null),x(this,n,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var d of a)d&&(d.target.nodeName==="INPUT"||d.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Y(d.target)),f(this,n).disconnect())})),this.inputValue=O(""),this.prevInputValue=O(null),this.focusedOptionIndex=O(-1),this._isClearable=F(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=F(()=>f(this,e).nativeElement.classList.toString()),this.stretch=F(()=>this.selectClasses().includes("stretch")),this.small=F(()=>this.selectClasses().includes("small")),this.placeholderText=F(()=>{let a=this.placeholder(),d=this.inputRefEl();return a||d?.placeholder||null}),this.selectedOptionValues=F(()=>{let a=this.selectedOptions(),d=this.value();return d?a.map(p=>M(this,o,le).call(this,p,d)):a}),this.filteredOptions=F(()=>{let a=this.options()||[],d=this.label(),p=this.value(),v=this.inlineSearch(),D=this.inputValue().toLowerCase(),L=M(this,o,En).call(this,D);if(a.length<=0)return[];if(!v||D==="")return a;let q=a.filter(P=>{let Q=d?(M(this,o,le).call(this,P,d)??"").toString().toLowerCase():(P??"").toString().toLowerCase(),de=((p?M(this,o,le).call(this,P,p):P)??"").toString().toLowerCase(),Se=L.test(Q),dt=L.test(de);return Se||dt}).map(P=>{let Q=d?(M(this,o,le).call(this,P,d)??"").toString().toLowerCase():(P??"").toString().toLowerCase(),de=((p?M(this,o,le).call(this,P,p):P)??"").toString().toLowerCase(),Se=M(this,o,ui).call(this,Q,D),dt=M(this,o,ui).call(this,de,D);return{item:P,score:Math.max(Se,dt)}});return q.sort((P,Q)=>Q.score-P.score),q.map(P=>P.item)}),x(this,c,Pt()),this.inputRefEl=F(()=>{let a=this.inputRefInput();if(a===null)return;let d=a?a.nativeElement:null;return d?(d.autocomplete="off",d.setAttribute("role","combobox"),d.setAttribute("id",`combobox-${f(this,c)}`),d.setAttribute("aria-haspopup","listbox"),d.setAttribute("aria-owns","optionsWrapId"),M(this,o,Mn).call(this,d),d.addEventListener("focus",()=>{this.readonly()||this.open()}),d.addEventListener("input",p=>{let v=p.target.value,D=this.inputValue();v!==D&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(v),this.updateInputElValue())}),d.addEventListener("inputValueChanged",p=>{let v=p.detail.value,D=this.inputValue();if(v!==D){if(v===""){this.clear();return}this.setSelectedOptionsFromValue(v),this.setInputValueFromOptions(this.selectedOptions()),M(this,o,hi).call(this)}}),d):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=J(()=>{let a=this.inputRefEl();if(!a)return;let d=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);d?a.setAttribute("aria-activedescendant",d):a.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=J(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let d=this.inputRefEl(),v=this.asFreeText()?-1:0;if(!d)return;d.setAttribute("aria-expanded",this.isOpen().toString()),d.addEventListener("keydown",D=>{if((D.key==="Escape"||D.key==="Tab")&&(D.preventDefault(),this.close()),D.key==="Enter"&&(D.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),D.key==="ArrowDown"){D.preventDefault();let L=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(L>this.filteredOptions().length-1?v:L)}if(D.key==="ArrowUp"){D.preventDefault();let L=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(L<v?this.filteredOptions().length-1:L)}},{signal:this.openAbortController?.signal})}else{let d=this.inputRefEl();if(!d)return;d.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=J(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=J(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=F(()=>{let a=this.selectedOptions();return this.label()?a.map(p=>this.getLabel(p)).join(", "):a.join(", ")}),this.inputState=F(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=F(()=>this.inlineSearch()||this.lazySearch()),x(this,_,J(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),d=this.value(),p=a.map(v=>d?M(this,o,le).call(this,v,d):v).join(",");this.inputValue.set(p)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=f(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new Y(a));return}let d=f(this,e).nativeElement.querySelector("textarea");if(d){this.inputRefInput.set(new Y(d));return}typeof MutationObserver<"u"&&f(this,n).observe(f(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let d=this.options()||[],p=this.value(),v=this.selectMultiple(),D=a.toString().split(",");if(D.length===0){this.selectedOptions.set([]);return}let L=v?D:[D[0]],ee=d.filter(q=>{let P=p?M(this,o,le).call(this,q,p)?.toString():q?.toString();return P&&L.includes(P)});this.selectedOptions.set(v?ee:[ee[0]])}setInputValueFromOptions(a){let d=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let p=a.map(v=>d?M(this,o,le).call(this,v,d):v).join(",");p!==this.inputValue()&&(this.inputValue.set(p),this.updateInputElValue())}getValue(a){let d=this.value();return d?M(this,o,le).call(this,a,d):a}getLabel(a){let d=this.label();return d?M(this,o,le).call(this,a,d):a}getLabelAsSlug(a){let d=this.getLabel(a);return!d||typeof d!="string"?"":d.replaceAll(" ","-")}toggleOptionByIndex(a,d,p=!1){let v=this.filteredOptions()[a];if(this.asFreeText()&&a===-1){let Q=this.computedFreeTextOption(),de=this.getValue(Q);if(!(this.validateFreeText()??(ut=>!0))(de))return;this.options.update(ut=>ut.findIndex(xn=>this.getValue(xn)===de)>-1?ut:(this.onAddNewFreeTextOption.emit(de),[Q,...ut])),a=0,v=Q}else if(!v){this.close();return}d&&d.stopPropagation();let D=this.selectMultiple(),L=this._isClearable(),ee=this.value(),q=this.selectedOptionValues(),P=ee?M(this,o,le).call(this,v,ee):v;this.prevInputValue.set(null),f(this,t).set(null),this.selectedOptions.update(Q=>{let de=q.indexOf(P);if(de>-1){let Se=[...Q.slice(0,de),...Q.slice(de+1)];return L||Se.length>0?Se:Q}else return this.focusedOptionIndex.set(a),D?[...Q,v]:[v]}),D?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),D&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,d){a.stopPropagation(),this.selectedOptions.update(p=>[...p.slice(0,d),...p.slice(d+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(a){let d=this.value(),p=this.filteredOptions()[a],v=d?M(this,o,le).call(this,p,d):p;return this.selectedOptionValues().indexOf(v)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):f(this,t).set(this.selectedOptions()),this.selectMultiple()||M(this,o,hi).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue(),d=f(this,t).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&d!==null&&this.setInputValueFromOptions(d),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),d=this.inputValue();a&&(a.value=d,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&f(this,n).disconnect()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,ui=function(a,d){if(!d)return 0;let p=0,v=-1,D=0,L=!0;for(let ee=0;ee<d.length;ee++){let q=d[ee];if(a.length>v+1&&a[v+1]===q)p+=ee===0?100:150,v++,D++;else{let P=a.indexOf(q,v+1);if(ee>0&&(L=!1),P===-1)return 0;p+=100,v=P,D++}}return L&&d.length===D&&(p+=1e3),p+=D*20,p},c=new WeakMap,_=new WeakMap,hi=function(){let a=this.selectedOptionValues()[0],d=this.value();if(a){let p=this.filteredOptions().findIndex(v=>d?M(this,o,le).call(this,v,d)===a:v===a);this.focusedOptionIndex.set(p)}else this.focusedOptionIndex.set(-1)},le=function(a,d){return d.split(".").reduce((p,v)=>p?.[v],a)},Mn=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(d){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,d);let v=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:d}});return this.dispatchEvent(v),d}})},En=function(a){let d=(a??"").toLowerCase(),p="^";for(let v of d)p+=".*"+M(this,o,wn).call(this,v);return p+=".*$",new RegExp(p,"i")},wn=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(d){return new(d||g)},g.\u0275cmp=B({type:g,selectors:[["sh-select"]],contentQueries:function(d,p,v){d&1&&xi(v,p.inlineTemplate,pt,5),d&2&&De()},viewQuery:function(d,p){d&1&&pe(p.optionsWrapRef,is,5),d&2&&De()},hostVars:2,hostBindings:function(d,p){d&2&&G("multiple",p.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:os,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(d,p){if(d&1){let v=he();W(ns),gt(0)(1)(2)(3)(4)(5)(6),E(7,"sh-popover",2,0),zt("isOpenChange",function(L){return H(v),Ut(p.isOpen,L)||(p.isOpen=L),j(L)}),$("closed",function(){return H(v),j(p.close())}),E(9,"sh-form-field",3),$("click",function(){return H(v),j(p.open())}),b(10,0,["ngProjectAs","label",5,["label"]]),b(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),b(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),E(13,"div",4)(14,"div",5),k(15,rs,1,1)(16,_s,2,0)(17,bs,2,1),b(18,3),b(19,4),T()(),k(20,Ss,2,0,"sh-icon",6)(21,Ms,1,0,"sh-spinner",7)(22,Es,2,0,"sh-icon",6)(23,ws,2,0,"sh-icon",6)(24,xs,2,0,"sh-icon",6)(25,Os,2,0,"sh-icon",6)(26,Vs,2,0,"sh-icon",6),T(),E(27,"div",8,1),k(29,Ls,3,3),k(30,Bs,2,1,"p",9),Bt(31,$s,4,8,"li",10,Lt),T()()}if(d&2){me(p.placeholderTemplate());let v=p.optionTemplate();S(),me(p.freeTextOptionTemplate());let D=p.selectedOptionTemplate(),L=p.inlineTemplate();S();let ee=me(p.selectedOptions()),q=p.inputState();S(),me(D||v||L),S(),me(v||L),S();let P=me(!p.asText()&&p.selectMultiple());S();let Q=me(p.isOpen()&&p.hasSearch()&&(P||p.inputValue().length>-1));S(),jt("isOpen",p.isOpen),ge("disableOpenByClick",!0)("options",$t(24,ss)),S(2),G("stretch",p.stretch())("small",p.small())("readonly",p.readonly()||p.disabled()),S(4),G("show-search-text",Q),S(),G("is-selected",q==="selected"),S(),R(p.asFreeText()&&p.inputValue().length>0&&!p.isOpen()?15:ee.length>0?16:Q?-1:17),S(5),R(q==="closed"?20:q==="loading"?21:q==="open-searching"?22:q==="searching"?23:q==="selected"&&p._isClearable()?24:q==="selected"&&!p._isClearable()?25:26),S(9),R(p.asFreeText()?29:-1),S(),R(p.optionTitle()&&p.filteredOptions().length>0?30:-1),S(),Ht(p.filteredOptions())}},dependencies:[Ai,pn,fi,Ye,ur,yr,hr,gr],encapsulation:2,changeDetection:0});let i=g;return i})();function Dr(i){let e=A(Y),t=A(Te),n=O(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(c=>{c.type==="attributes"&&c.attributeName==="class"&&n.set(e.nativeElement.classList.contains(i))})});return bi(e.nativeElement,()=>{o&&o.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(i))}),t.onDestroy(()=>{o&&o.disconnect()}),n}var Ia=(()=>{var e,t,n,o,s,ct;let _=class _{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,A(je)),x(this,t,A(Y)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=V(!1),this.isOpen=ne(!1),this.isOverlay=Dr("overlay"),x(this,n,f(this,t).nativeElement.parentElement),x(this,o,f(this,n).getBoundingClientRect&&f(this,n).getBoundingClientRect()),this.dragImageElement=fe.required("dragImageElement"),this.dragIsEnding=O(!1),this.dragIsOnScreen=O(!0),this.isDragging=O(!1),this.dragPositionX=O(0),this.dragActualPositionX=F(()=>{let r=this.dragPositionX(),l=280,u=100,h=.008,g=l/2,C=g-u/2,a=g+u/2;if(r>a){let d=r-a,v=(l-a)*(1-Math.exp(-h*d));return a+v}else if(r<C){let d=C-r,v=C*(1-Math.exp(-h*d));return C-v}return r}),this.draggingStyle=F(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=J(()=>{this.disableDrag()||(this.isDragging()?f(this,e).body.classList.add("dragging"):f(this,e).body.classList.remove("dragging"))})}drop(r){r.stopPropagation(),M(this,s,ct).call(this,r.clientX-f(this,o).left)}dragEnd(r){r.clientX-f(this,o).left<0&&M(this,s,ct).call(this,0),r.clientX-f(this,o).left>this.openWidthTreshold&&M(this,s,ct).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(r){r.stopPropagation(),x(this,o,f(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(r){r.stopPropagation(),this.isDragging()&&(r.clientX!==0||r.clientY!==0)&&this.dragPositionX.set(r.clientX-f(this,o).left)}touchStart(r){r.stopPropagation(),this.isDragging.set(!0),x(this,o,f(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(r){r.stopPropagation(),this.isDragging()&&this.dragPositionX.set(r.touches[0].clientX-f(this,o).left)}touchEnd(r){r.stopPropagation(),M(this,s,ct).call(this,r.changedTouches[0].clientX-f(this,o).left)}touchCancel(r){r.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,ct=function(r){this.isDragging.set(!1),r>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},_.\u0275fac=function(l){return new(l||_)},_.\u0275cmp=B({type:_,selectors:[["sh-sidenav"]],viewQuery:function(l,u){l&1&&pe(u.dragImageElement,Ws,5),l&2&&De()},hostVars:6,hostBindings:function(l,u){l&2&&G("open",u.isOpen())("closed",!u.isOpen())("is-dragging",u.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:qs,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","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(l,u){l&1&&(W(Gs),k(0,Ys,2,0,"div",1),k(1,Xs,1,0,"div",2),U(2,"div",3),b(3),z(),U(4,"div",4),k(5,Qs,1,0,"div",5),U(6,"div",6),b(7,1),z(),U(8,"main"),b(9,2),z()()),l&2&&(R(u.isOverlay()&&!u.disableDrag()?0:-1),S(),R(u.isOverlay()&&u.isDragging()?1:-1),S(3),se("transform",!u.disableDrag()&&u.draggingStyle()),S(),R(u.isOverlay()&&!u.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=_;return i})();var Pa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-stepper"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var Fa=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,A(br)),this.shSort=V(),this.sortAsc=F(()=>{let o=f(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=F(()=>{let o=f(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&f(this,e).toggleSort(o)}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=X({type:t,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,c){s&1&&$("mousedown",function(){return c.toggleSort()}),s&2&&G("sort-asc",c.sortAsc())("sort-desc",c.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=t;return i})();var qe=1.5,br=(()=>{var e,t,n,o,s,Nt;let _=class _{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,A(Y)),x(this,t,A(It,{optional:!0})),this.loading=V(!1),this.data=V([]),this.dataChange=xe(),this.sortByColumn=ne(null),this.currentClass=At(),this.thead=fe("thead"),this.tbody=fe("tbody"),this.columns=Cn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=F(()=>{let r=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=J(()=>{let r=this.tbody()?.nativeElement,l=this.thead()?.nativeElement;if(!r||!l)return;let u=this.stickyHeaderHeight();queueMicrotask(()=>{let h=l.querySelectorAll("tr.sticky").length>0,g=r.querySelectorAll("tr.sticky");if(g.length>0&&h)for(let a=0;a<g.length;a++)g[a].style.top=`${u}px`})}),this.class=O(f(this,t)?.tableType??"default"),this.resizing=O(!1),this.sizeTrigger=O(!0),x(this,n,null),x(this,o,O(!1)),this.scrollXState=O(-1),this.scrollYState=O(-1),this.canScrollX=O(!1),this.canScrollY=O(!1),this.columnSizes=F(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((l,u,h)=>{let g=u,C=g.getAttribute("size"),a=h===r.length-1;return C?`${l} ${C}`:g.classList.contains("sticky")||g.classList.contains("sticky-end")?`${l} min-content`:a?`${l} 1fr`:`${l} 1fr`},"")}),this.e=J(()=>{let r=this.sortByColumn();if(r===null)return f(this,o).call(this)||(x(this,n,this.data()),f(this,o).set(!0)),this.dataChange.emit(structuredClone(f(this,n)));let l=r.startsWith("-")?r.slice(1):r,u=r.startsWith("-"),h=this.data().sort((g,C)=>{let a=g[l],d=C[l],p=0;return typeof a=="number"&&typeof d=="number"&&(p=a-d),a instanceof Date&&d instanceof Date&&(p=a.getTime()-d.getTime()),typeof a=="string"&&typeof d=="string"&&(p=a.localeCompare(d,void 0,{sensitivity:"base"})),u?-p:p});this.dataChange.emit(h)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){M(this,s,Nt).call(this)}onResize(r){M(this,s,Nt).call(this)}ngAfterViewInit(){queueMicrotask(()=>M(this,s,Nt).call(this))}toggleSort(r){let l=this.sortByColumn(),u=l===r?`-${r}`:l===`-${r}`?null:r;this.sortByColumn.set(u)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Nt=function(){let r=f(this,e).nativeElement,l=-1,u=-1,h=r.scrollWidth>r.clientWidth+qe;if(h){let C=r.scrollLeft<=qe;r.scrollWidth-(r.scrollLeft+r.clientWidth)<qe?l=1:C||(l=0)}this.scrollXState.set(l),this.canScrollX.set(h);let g=r.scrollHeight>r.clientHeight+qe;if(g){let C=r.scrollTop<=qe;r.scrollHeight-(r.scrollTop+r.clientHeight)<qe?u=1:C||(u=0)}this.scrollYState.set(u),this.canScrollY.set(g)},_.\u0275fac=function(l){return new(l||_)},_.\u0275cmp=B({type:_,selectors:[["sh-table"]],viewQuery:function(l,u){l&1&&(pe(u.thead,Zs,5),pe(u.tbody,Ks,5)),l&2&&De(2)},hostVars:18,hostBindings:function(l,u){l&1&&$("scroll",function(){return u.onScroll()})("resize",function(g){return u.onResize(g)},Mi),l&2&&(ve(u.class()),se("grid-template-columns",u.columnSizes()),G("resizing",u.resizing())("can-scroll-x",u.canScrollX())("can-scroll-y",u.canScrollY())("scrolled-x",u.scrollXState()>=0)("scrolled-x-end",u.scrollXState()===1)("scrolled-y",u.scrollYState()>=0)("scrolled-y-end",u.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:er,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(l,u){l&1&&(W(Js),k(0,tr,1,0,"sh-progress-bar",2),E(1,"thead",null,0),b(3),b(4,1),T(),E(5,"tbody",null,1),b(7,2),T(),k(8,ir,2,0,"div",3)),l&2&&(R(u.loading()?0:-1),S(8),R(u.loading()?-1:8))},dependencies:[Cr],encapsulation:2,changeDetection:0});let i=_;return i})(),ka=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--tabs-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(W(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ra=(()=>{let e=class e{constructor(){this.isActive=ne(!1),this.disallowToggle=V(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&G("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:or,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(W(nr),E(0,"h3",0),$("click",function(){return s.disallowToggle()||s.toggle()}),b(1,0,null,sr,1,0),k(3,rr,2,0,"sh-icon",1),T(),E(4,"div",2)(5,"div",3),b(6,1),T()()),o&2&&(S(3),R(s.disallowToggle()?-1:3))},dependencies:[Ye],encapsulation:2,changeDetection:0});let i=e;return i})(),La=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=B({type:e,selectors:[["sh-toggle"]],ngContentSelectors:ce,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(W(),U(0,"div",0),Ie(1,"div",1),z(),b(2))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ba=(()=>{let e=class e{constructor(){this.filesOver=O(!1),this.filesDropped=xe()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=X({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&$("dragover",function(_){return s.onDragOver(_)})("dragleave",function(_){return s.onDragLeave(_)})("drop",function(_){return s.ondrop(_)}),o&2&&G("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=e;return i})();var Sr=(()=>{var e,t,n;let o=class o{constructor(){w(this,e);w(this,t);w(this,n);this.positionAnchorName=V.required(),this.anchorEl=V.required(),this.isOpen=V(!1),x(this,e,A(Y)),x(this,t,A(ye)),x(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=O(!1),this.openEffect=J(()=>{this.isOpen()?setTimeout(()=>{f(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):f(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let c=this.anchorEl().nativeElement.getBoundingClientRect(),_=f(this,e).nativeElement,m=_.getBoundingClientRect();if(m.width===0&&m.height===0)return;let r=c.top-m.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let l=_.getBoundingClientRect(),u=c.top-l.height,h=c.left+c.width/2-l.width/2;r&&(u=c.top+c.height),h+l.width>window?.innerWidth&&(h=c.right-l.width/2),h<0&&(h=-(l.width/2)),f(this,t).setStyle(_,"left",`${h}px`),f(this,t).setStyle(_,"top",`${u}px`),f(this,t).setStyle(_,"position","fixed")}}}ngAfterViewInit(){x(this,n,new AbortController);let c={signal:f(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,c),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:f(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){f(this,n)?.abort()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o.\u0275fac=function(_){return new(_||o)},o.\u0275cmp=B({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(_,m){_&2&&(Ee("popover","manual"),se("position-anchor",m.positionAnchorName()),G("below",m.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ce,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(_,m){_&1&&(W(),U(0,"div",0),b(1),z())},encapsulation:2});let i=o;return i})(),ae=null,Ha=(()=>{var e,t,n,o,s;let c=class c{constructor(){w(this,e);w(this,t);w(this,n);w(this,o);w(this,s);this.shTooltip=V.required(),x(this,e,A(Y)),x(this,t,A(Ei)),x(this,n,A(Di)),x(this,o,A(ye)),x(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${Pt()}`,this.isOpen=O(!1)}onMouseEnter(){ae?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(ae?.wrapperComponentRef||!this.shTooltip())return;let m,r=this.shTooltip();if(typeof r=="string")m=[[f(this,o).createText(r)]];else if(r instanceof pt)x(this,s,r.createEmbeddedView({})),f(this,s).detectChanges(),m=[f(this,s).rootNodes];else return;ae={wrapperComponentRef:f(this,t).createComponent(Sr,{environmentInjector:f(this,n),projectableNodes:m}),component:this},ae.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ae.wrapperComponentRef.setInput("anchorEl",f(this,e)),ae.wrapperComponentRef?.setInput("isOpen",this.isOpen),ae.wrapperComponentRef.changeDetectorRef.detectChanges(),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ae?.wrapperComponentRef&&(ae.component.cancelCleanupTimer(),ae.wrapperComponentRef.destroy(),ae.component.isOpen.set(!1),ae=null),f(this,s)&&(f(this,s).destroy(),x(this,s,null))}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,c.\u0275fac=function(r){return new(r||c)},c.\u0275dir=X({type:c,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(r,l){r&1&&$("mouseenter",function(){return l.onMouseEnter()})("mouseleave",function(){return l.onMouseLeave()}),r&2&&(se("anchor-name",l.anchorName),G("active",l.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=c;return i})();export{Ve as a,Tn as b,zi as c,Pi as d,Ur as e,zr as f,to as g,ot as h,so as i,Wr as j,ao as k,uo as l,po as m,go as n,rn as o,an as p,yo as q,Gr as r,qr as s,Yr as t,Ye as u,It as v,Da as w,ba as x,dr as y,Sa as z,Ma as A,Ea as B,wa as C,ur as D,hr as E,gr as F,fi as G,xa as H,Oa as I,Va as J,Cr as K,Ta as L,Na as M,yr as N,Aa as O,Ia as P,Pa as Q,Fa as R,br as S,ka as T,Ra as U,La as V,Ba as W,Ha as X};
|
package/chunk-IMF5BUVN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b}from"./chunk-OVLLX4US.js";import"./chunk-QE4NBN5H.js";import"./chunk-KUP2T6AG.js";import"./chunk-WNHQELMC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-VXJJGZ5F.js";import"./chunk-AUMCM45B.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-4IAJY6E3.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreOptionsForm,b as default};
|
package/chunk-IQ52IXSC.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ct}from"./chunk-R2N5UWYB.js";import{b as ye,c as dt,d as pt}from"./chunk-J64OAILA.js";import{a as ut,b as Ve,c as ct}from"./chunk-OQ2HMOSQ.js";import{a as _t}from"./chunk-NY63VRAY.js";import{b as re}from"./chunk-GRPEAINE.js";import{a as rt}from"./chunk-QLUEDPL4.js";import{a as Oe}from"./chunk-ZQ56M63S.js";import{b as lt}from"./chunk-P7OKMMNZ.js";import{B as ae,G as Y,K as ot,O as le,U as st,V as Me,X as at,b as Te,c as z,d as he,e as j,f as Ne,h as Qe,i as oe,j as fe,k as Ze,n as et,o as Pe,p as tt,q as Ae,r as De,s as se,t as Re,u as q,w as nt,z as it}from"./chunk-HJSCQF6V.js";import{b as ie,d as H}from"./chunk-G4Z3JAJB.js";import{Ab as xe,Ac as me,Bb as N,Cb as a,Db as l,Eb as S,H as we,Ib as B,Jb as k,Lb as x,Qc as G,Ra as r,Rc as ne,Sb as m,Tb as F,Ub as f,V as Ce,Vc as Be,Wc as ke,Xb as Ue,Xc as Fe,Yb as T,_ as A,_b as u,bb as J,da as p,ea as C,fc as ge,gb as je,gc as Ee,hc as be,jc as Se,mc as U,nc as ve,oa as E,oc as Ye,rc as L,sc as I,tb as qe,tc as w,wb as D,xb as R,yb as Ge,zb as $e}from"./chunk-Y7PHGRGB.js";import{a as b,b as X}from"./chunk-EUDKD2JW.js";var Le=class s{fromString(t){if(!t)return null;let e=t.match(/(\d+)([smhDWMY])/);return e&&{value:parseInt(e[1]),unit:e[2]}}toString(t,e){return`${t}${e}`}static \u0275fac=function(e){return new(e||s)};static \u0275prov=Ce({token:s,factory:s.\u0275fac,providedIn:"root"})};function mt(s,t){if(s&1){let e=x();a(0,"div",24)(1,"sh-form-field")(2,"label",25),f(3,7),l(),a(4,"input",26,0),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.nextTime().time,i)||(o.scheduleFields.nextTime().time=i),C(i)}),T("focus",function(){p(e);let i=be(5);return C(i.showPicker())}),l(),a(6,"sh-icon",27),U(7,"clock"),l()(),a(8,"sh-form-field"),S(9,"label",28),a(10,"input",29,1),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.nextTime().date,i)||(o.scheduleFields.nextTime().date=i),C(i)}),T("focus",function(){p(e);let i=be(11);return C(i.showPicker())}),l(),a(12,"sh-icon",27),U(13,"calendar"),l()()(),a(14,"div",24)(15,"sh-form-field")(16,"label",30),f(17,8),l(),a(18,"input",31),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().repeatValue,i)||(o.scheduleFields.runAgain().repeatValue=i),C(i)}),l()(),a(19,"sh-select",32)(20,"input",33),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().repeatUnit,i)||(o.scheduleFields.runAgain().repeatUnit=i),C(i)}),l()()(),a(21,"sh-toggle-card",34),B(22,35),f(23,9),k(),a(24,"div",36)(25,"sh-toggle",19),m(26,10),a(27,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.mon,i)||(o.scheduleFields.runAgain().allowedDays.mon=i),C(i)}),l(),F(),l(),a(28,"sh-toggle",19),m(29,11),a(30,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.tue,i)||(o.scheduleFields.runAgain().allowedDays.tue=i),C(i)}),l(),F(),l(),a(31,"sh-toggle",19),m(32,12),a(33,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.wed,i)||(o.scheduleFields.runAgain().allowedDays.wed=i),C(i)}),l(),F(),l(),a(34,"sh-toggle",19),m(35,13),a(36,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.thu,i)||(o.scheduleFields.runAgain().allowedDays.thu=i),C(i)}),l(),F(),l(),a(37,"sh-toggle",19),m(38,14),a(39,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.fri,i)||(o.scheduleFields.runAgain().allowedDays.fri=i),C(i)}),l(),F(),l(),a(40,"sh-toggle",19),m(41,15),a(42,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.sat,i)||(o.scheduleFields.runAgain().allowedDays.sat=i),C(i)}),l(),F(),l(),a(43,"sh-toggle",19),m(44,16),a(45,"input",20),w("ngModelChange",function(i){p(e);let o=u();return I(o.scheduleFields.runAgain().allowedDays.sun,i)||(o.scheduleFields.runAgain().allowedDays.sun=i),C(i)}),l(),F(),l()()()}if(s&2){let e=u();r(4),L("ngModel",e.scheduleFields.nextTime().time),r(6),L("ngModel",e.scheduleFields.nextTime().date),r(8),L("ngModel",e.scheduleFields.runAgain().repeatValue),r(),N("options",e.unitOptions)("isClearable",!1),r(),L("ngModel",e.scheduleFields.runAgain().repeatUnit),r(),N("disallowToggle",!0),r(6),L("ngModel",e.scheduleFields.runAgain().allowedDays.mon),r(3),L("ngModel",e.scheduleFields.runAgain().allowedDays.tue),r(3),L("ngModel",e.scheduleFields.runAgain().allowedDays.wed),r(3),L("ngModel",e.scheduleFields.runAgain().allowedDays.thu),r(3),L("ngModel",e.scheduleFields.runAgain().allowedDays.fri),r(3),L("ngModel",e.scheduleFields.runAgain().allowedDays.sat),r(3),L("ngModel",e.scheduleFields.runAgain().allowedDays.sun)}}var Ft=[{key:"s",label:$localize`Seconds`},{key:"m",label:$localize`Minutes`},{key:"h",label:$localize`Hours`},{key:"D",label:$localize`Days`},{key:"W",label:$localize`Weeks`},{key:"M",label:$localize`Months`},{key:"Y",label:$localize`Years`}],ee={autoRun:!0,nextTime:{time:"13:00",date:new Date().toISOString().split("T")[0]},runAgain:{repeatValue:1,repeatUnit:"D",allowedDays:{mon:!1,tue:!1,wed:!1,thu:!1,fri:!1,sat:!1,sun:!1}}},Ke=class s{#e=A(Q);#t=A(H);#i=A(ie);unitOptions=Ft;scheduleFields=this.#e.scheduleFields;goBack(){this.#t.navigate(["source-data"],{relativeTo:this.#i.parent})}next(){this.#e.isNew()||this.#e.submit(!0),this.#t.navigate(["options"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=J({type:s,selectors:[["app-schedule"]],decls:16,vars:2,consts:()=>{let t;t=$localize`Schedule`;let e;e=$localize` Automatically run backups ${"\uFFFD#5\uFFFD\uFFFD/#5\uFFFD"}:TAG_INPUT:`;let n;n=$localize`If a date was missed, the job will run as soon as possible.`;let i;i=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let o;o=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let d;d=$localize`Next time`;let c;c=$localize`Run again every`;let _;_=$localize`Allowed days`;let g;g=$localize` Monday ${"\uFFFD#27\uFFFD\uFFFD/#27\uFFFD"}:TAG_INPUT:`;let y;y=$localize` Tuesday ${"\uFFFD#30\uFFFD\uFFFD/#30\uFFFD"}:TAG_INPUT:`;let h;h=$localize` Wednesday ${"\uFFFD#33\uFFFD\uFFFD/#33\uFFFD"}:TAG_INPUT:`;let $;$=$localize` Thursday ${"\uFFFD#36\uFFFD\uFFFD/#36\uFFFD"}:TAG_INPUT:`;let K;K=$localize` Friday ${"\uFFFD#39\uFFFD\uFFFD/#39\uFFFD"}:TAG_INPUT:`;let v;v=$localize` Saturday ${"\uFFFD#42\uFFFD\uFFFD/#42\uFFFD"}:TAG_INPUT:`;let W;return W=$localize` Sunday ${"\uFFFD#45\uFFFD\uFFFD/#45\uFFFD"}:TAG_INPUT:`,[["timeRef",""],["dateRef",""],t,e,n,i,o,d,c,_,g,y,h,$,K,v,W,[1,"title-30"],[1,"toggle-wrap"],[1,"raised","primary"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click"],[1,"row-inputs"],["for","time"],["type","time","id","time",3,"ngModelChange","focus","ngModel"],["suffix",""],["for","date"],["type","date","id","date",3,"ngModelChange","focus","ngModel"],["for","repeatValue"],["type","number","id","repeatValue",3,"ngModelChange","ngModel"],["value","key","label","label",3,"options","isClearable"],["type","text","id","repeatUnit",3,"ngModelChange","ngModel"],[3,"disallowToggle"],["title",""],[1,"days-wrap"]]},template:function(e,n){e&1&&(a(0,"h3",17),f(1,2),l(),a(2,"div",18)(3,"sh-toggle",19),m(4,3),a(5,"input",20),w("ngModelChange",function(o){return I(n.scheduleFields.autoRun,o)||(n.scheduleFields.autoRun=o),o}),l(),F(),l(),a(6,"p"),f(7,4),l()(),D(8,mt,46,14),a(9,"div",21)(10,"button",22),T("click",function(){return n.goBack()}),m(11,5),S(12,"sh-icon"),F(),l(),a(13,"button",23),T("click",function(){return n.next()}),m(14,6),S(15,"sh-icon"),F(),l()()),e&2&&(r(5),L("ngModel",n.scheduleFields.autoRun),r(3),R(n.scheduleFields.autoRun()?8:-1))},dependencies:[se,z,Ze,Te,j,oe,Y,Me,q,ae,le,st],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem 2.5rem 1.5rem;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})};function Tt(s,t){if(s&1){let e=x();a(0,"sh-select",2)(1,"input",6),w("ngModelChange",function(i){p(e);let o=u();return I(o.internalPath,i)||(o.internalPath=i),C(i)}),T("ngModelChange",function(){p(e);let i=u();return C(i.updateFilter())}),l()()}if(s&2){let e=u();N("options",e.fileGroupOptions())("isClearable",!1)("selectMultiple",!0),r(),L("ngModel",e.internalPath)}}function ht(s,t){if(s&1&&(B(0,7),U(1),k()),s&2){let e,n=u(2);r(),ve((e=n.currentExpressionOption())==null?null:e.startsWith)}}function Nt(s,t){if(s&1&&(B(0,8),U(1),k()),s&2){let e,n=u(2);r(),ve((e=n.currentExpressionOption())==null?null:e.endsWith)}}function ft(s,t){if(s&1){let e=x();a(0,"sh-form-field",3)(1,"input",6),w("ngModelChange",function(i){p(e);let o=u();return I(o.internalPath,i)||(o.internalPath=i),C(i)}),T("ngModelChange",function(){p(e);let i=u();return C(i.updateFilter())}),l(),D(2,ht,2,1,"ng-container",7),D(3,Nt,2,1,"ng-container",8),l()}if(s&2){let e,n,i=u();r(),L("ngModel",i.internalPath),r(),R(!((e=i.currentExpressionOption())==null||e.startsWith==null)&&e.startsWith.length?2:-1),r(),R(!((n=i.currentExpressionOption())==null||n.endsWith==null)&&n.endsWith.length?3:-1)}}var Pt=[{key:"Applications",value:"Applications"},{key:"CacheFiles",value:"Cache Files"},{key:"TemporaryFiles",value:"Temporary Files"},{key:"OperatingSystem",value:"Operating System"},{key:"SystemFiles",value:"System Files"},{key:"DefaultExcludes",value:"Standard Excludes"}],At=[{key:"Excludes folders where name contains",value:"-FolderName"},{key:"Excludes folder",value:"-Folder"},{key:"Excludes files where name contains",value:"-FileName"},{key:"Excludes file extension",value:"-Extension"},{key:"Excludes files where name matches regex",value:"-Regex"},{key:"Includes files where name matches regex",value:"+Regex"},{key:"Exclude file groups",value:"-FileGroup"},{key:"Includes expression",value:"+Expression"},{key:"Excludes expression",value:"-Expression"},{key:"None",value:"-Unknown"}],Ie=class s{path=ke.required();osType=ke();pathChange=Be();remove=Be();internalPath=E("");pathType=E("-Expression");currentExpressionOption=G(()=>{let t=this.pathType();return this.expressionOptions().find(e=>e.value===t)});fileGroupOptions=E(Pt);expressionOptions=G(()=>{let e=this.osType()==="Windows"?"\\":"/";return At.map(n=>n.value==="-Folder"||n.value==="+Folder"?X(b({},n),{startsWith:"",endsWith:""}):n.value==="-FolderName"||n.value==="+FolderName"?X(b({},n),{startsWith:"*",endsWith:`*${e}`}):n.value==="-FileName"||n.value==="+FileName"?X(b({},n),{startsWith:"[.*",endsWith:`[^\\${e}]*]`}):n.value==="-FileGroup"||n.value==="+FileGroup"?X(b({},n),{startsWith:"{",endsWith:"}"}):n.value==="-Regex"||n.value==="+Regex"?X(b({},n),{startsWith:"[",endsWith:"]"}):n.value==="-Extension"||n.value==="+Extension"?X(b({},n),{startsWith:"*.",endsWith:""}):X(b({},n),{startsWith:"",endsWith:""}))});pathEffect=ne(()=>{let t=this.path(),e=t.slice(1),n=t.startsWith("-")?"-":"+",i=this.osType()==="Windows",o=i?"\\":"/";e.startsWith("%")&&e.endsWith(o)||i&&e.slice(2).startsWith(o)&&e.endsWith(o)||e.startsWith(o)&&e.endsWith(o)?(this.pathType.set(`${n}Folder`),this.internalPath.set(e)):e.startsWith("*")&&e.endsWith(`*${o}`)?(this.pathType.set(`${n}FolderName`),this.internalPath.set(e.slice(1,-2))):e.startsWith("[.*")&&e.endsWith(`[^\\${o}]*]`)?(this.pathType.set(`${n}FileName`),this.internalPath.set(e.slice(3,-7))):e.startsWith("{")&&e.endsWith("}")?(this.pathType.set(`${n}FileGroup`),this.internalPath.set(e.slice(1,-1))):e.startsWith("[")&&e.endsWith("]")?(this.pathType.set(`${n}Regex`),this.internalPath.set(e.slice(1,-1))):e.startsWith("*.")?(this.pathType.set(`${n}Extension`),this.internalPath.set(e.slice(2))):(this.pathType.set(`${n}Expression`),this.internalPath.set(e))});updateFilter(){let t=this.internalPath(),e=this.currentExpressionOption();t!==""&&this.pathChange.emit(`${e?.value.slice(0,1)}${e?.startsWith??""}${t}${e?.endsWith??""}`)}removeFilter(){this.remove.emit()}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=J({type:s,selectors:[["app-new-filter"]],inputs:{path:[1,"path"],osType:[1,"osType"]},outputs:{pathChange:"pathChange",remove:"remove"},decls:7,vars:4,consts:()=>{let t;return t=$localize`Select an option...`,[["value","value","label","key",3,"options","isClearable"],["type","text","placeholder",t,3,"ngModelChange","ngModel"],["value","key","label","value",1,"expression-input",3,"options","isClearable","selectMultiple"],[1,"expression-input"],[1,"filter-removal",3,"click"],[1,"sh-primary"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],["suffix",""]]},template:function(e,n){if(e&1&&(a(0,"sh-select",0)(1,"input",1),w("ngModelChange",function(o){return I(n.pathType,o)||(n.pathType=o),o}),T("ngModelChange",function(){return n.updateFilter()}),l()(),D(2,Tt,2,4,"sh-select",2)(3,ft,4,3,"sh-form-field",3),a(4,"div",4),T("click",function(){return n.removeFilter()}),a(5,"sh-icon",5),U(6,"x-circle"),l()()),e&2){let i;N("options",n.expressionOptions())("isClearable",!1),r(),L("ngModel",n.pathType),r(),R(((i=n.currentExpressionOption())==null?null:i.value)=="-FileGroup"||((i=n.currentExpressionOption())==null?null:i.value)=="+FileGroup"?2:3)}},dependencies:[se,z,j,oe,le,Y,q],styles:["[_nghost-%COMP%]{display:grid;grid-template-columns:13.125rem 1fr 1.875rem;gap:.5rem;align-items:flex-end}.expression-input[_ngcontent-%COMP%]{--ff-suffix-bg: var(--base-2)}.filter-removal[_ngcontent-%COMP%]{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;flex:0 0}"],changeDetection:0})};var Dt=["formRef"],He=()=>({standalone:!0});function Rt(s,t){if(s&1){let e=x();a(0,"sh-form-field",41)(1,"input",42),w("ngModelChange",function(i){p(e);let o=u(2);return I(o.editingPath,i)||(o.editingPath=i),C(i)}),l()(),a(2,"button",43),T("click",function(){p(e);let i=u(2);return C(i.updatePath())}),a(3,"sh-icon"),U(4,"floppy-disk"),l()(),a(5,"button",43),T("click",function(){p(e);let i=u(2);return C(i.cancelEditPath())}),a(6,"sh-icon"),U(7,"x-bold"),l()()}if(s&2){let e=u(2);r(),L("ngModel",e.editingPath),N("ngModelOptions",me(2,He))}}function Mt(s,t){if(s&1){let e=x();a(0,"sh-form-field",41),S(1,"input",44),l(),a(2,"button",43),T("click",function(){p(e);let i=u().$implicit,o=u();return C(o.editPath(i))}),a(3,"sh-icon"),U(4,"pen"),l()(),a(5,"button",43),T("click",function(){p(e);let i=u().$implicit,o=u();return C(o.removePath(i))}),a(6,"sh-icon"),U(7,"trash-simple"),l()()}if(s&2){let e=u().$implicit;qe("readonly",!0),r(),N("ngModel",e)("ngModelOptions",me(3,He))}}function Ot(s,t){if(s&1&&(a(0,"div",30),D(1,Rt,8,3)(2,Mt,8,4),l()),s&2){let e=t.$implicit,n=u();r(),R(n.oldPath()===e?1:2)}}function yt(s,t){if(s&1){let e=x();a(0,"app-new-filter",46),T("pathChange",function(i){let o=p(e).$index,d=u(2);return C(d.patchPathAt(i,o))})("remove",function(){let i=p(e).$index,o=u(2);return C(o.removePathAt(i))}),l()}if(s&2){let e=t.$implicit,n=u(2);N("path",e)("osType",n.osType()??"")}}function Lt(s,t){if(s&1&&$e(0,yt,1,2,"app-new-filter",45,Ge),s&2){let e=u();xe(e.pathArray())}}function It(s,t){if(s&1){let e=x();a(0,"div",31)(1,"app-size",47),T("ngModelChange",function(i){p(e);let o=u();return C(o.updateFilesLargerThan(i))}),l()()}if(s&2){let e=u();r(),N("ngModel",e.filesLargerThan())("ngModelOptions",me(2,He))}}var V=new De,gt=(s={path:"",filters:[],excludes:{hidden:!1,system:!1,temporary:!1,filesLargerThan:null}})=>V.group({path:V.control(s.path),excludes:V.group({hidden:V.control(s.excludes.hidden),system:V.control(s.excludes.system),temporary:V.control(s.excludes.temporary),filesLargerThan:V.group({size:V.control(null),unit:V.control(null)})})}),Je=class s{#e=A(Q);#t=A(H);#i=A(ie);formRef=Fe.required("formRef");sourceDataForm=this.#e.sourceDataForm;sourceDataFormSignal=this.#e.sourceDataFormSignal;newPathCtrl=new Qe("");filesLargerThan=G(()=>{let t=this.sourceDataFormSignal()?.excludes?.filesLargerThan??{};return t.size!==null&&t.unit!==null?`${t.size}${t.unit}`:null});osType=this.#e.osType;pathSignal=re(this.sourceDataForm.controls.path.valueChanges);pathArray=G(()=>this.pathSignal()?.split("\0").filter(t=>t.startsWith("-")||t.startsWith("+")||t==="___none___")??[]);nonFilterPaths=G(()=>this.pathSignal()?.split("\0").filter(t=>!t.startsWith("-")&&!t.startsWith("+")&&t!==""));oldPath=E(null);editingPath=E(null);addingNewPath=E(!1);editPath(t){this.oldPath.set(t),this.editingPath.set(t)}updateFilesLargerThan(t){let{size:e,unit:n}=ye(t);this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:e,unit:n})}updatePath(){let t=this.oldPath(),e=this.editingPath();if(!t||!e||e===t){this.oldPath.set(null),this.editingPath.set(null);return}let n=this.sourceDataForm.controls.path.value;this.sourceDataForm.controls.path.setValue(n?.replace(t,e)??""),this.oldPath.set(null),this.editingPath.set(null)}cancelEditPath(){this.oldPath.set(null),this.editingPath.set(null)}removePath(t){let n=(this.sourceDataForm.controls.path.value??"").split("\0"),i=n.indexOf(t);if(i===-1)return;n.splice(i,1);let o=n.filter(d=>d&&d!=="").join("\0");this.sourceDataForm.controls.path.setValue(o)}addFilter(t="-*"){let n=[this.sourceDataForm.controls.path.value,t].filter(i=>i&&i!=="").join("\0");this.sourceDataForm.controls.path.setValue(n)}patchPathAt(t,e){let i=this.sourceDataForm.controls.path.value.split("\0").filter(c=>!c.startsWith("-")&&!c.startsWith("+")).join("\0"),o=this.pathArray().map((c,_)=>_===e?`${t}`:`${c}`).join("\0"),d=[i,o].filter(c=>c&&c!=="").join("\0");this.sourceDataForm.controls.path.setValue(d)}removePathAt(t){let n=this.sourceDataForm.controls.path.value.split("\0").filter(d=>!d.startsWith("-")&&!d.startsWith("+")).join("\0"),i=this.pathArray().filter((d,c)=>c!==t).join("\0"),o=[n,i].filter(d=>d&&d!=="").join("\0");this.sourceDataForm.controls.path.setValue(o)}getPath(){return this.sourceDataForm.value.path??null}toggleFilesLargerThan(){this.sourceDataForm.controls.excludes.value.filesLargerThan?.size===null?this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:50,unit:"MB"}):this.sourceDataForm.controls.excludes.controls.filesLargerThan.setValue({size:null,unit:null})}addNewPath(){let t=this.sourceDataForm.controls.path.value,e=this.newPathCtrl.value,n=t?.split("\0")||[];e&&!n.includes(e)&&n.push(e);let i=n.filter(o=>o&&o!=="").join("\0");this.sourceDataForm.controls.path.setValue(i),this.newPathCtrl.setValue("")}goBack(){this.#t.navigate(["destination"],{relativeTo:this.#i.parent})}next(){this.#e.isNew()||this.#e.submit(!0),this.#t.navigate(["schedule"],{relativeTo:this.#i.parent})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=J({type:s,selectors:[["app-source-data"]],viewQuery:function(e,n){e&1&&ge(n.formRef,Dt,5),e&2&&Ee()},decls:56,vars:12,consts:()=>{let t;t=$localize`Path`;let e;e=$localize`Add a direct path`;let n;n=$localize`Hidden files`;let i;i=$localize`System files`;let o;o=$localize`Temporary files`;let d;d=$localize`Source Data`;let c;c=$localize`Folder path`;let _;_=$localize`${"\uFFFD#12\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#12\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let g;g=$localize`${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON: Continue `;let y;y=$localize`Paths`;let h;h=$localize`Add a path directly from your machine.`;let $;$=$localize`Filters`;let K;K=$localize`Customize your filters.`;let v;v=$localize`Add filter`;let W;W=$localize`Exclude`;let M;M=$localize`Choose if there’s any files you want to exclude.`;let Z;Z=$localize` Files with the Hidden attribute ${"\uFFFD#46\uFFFD\uFFFD/#46\uFFFD"}:TAG_INPUT:`;let _e;_e=$localize` Files with the System attribute ${"\uFFFD#49\uFFFD\uFFFD/#49\uFFFD"}:TAG_INPUT:`;let ue;ue=$localize` Files with the Temporary attribute ${"\uFFFD#52\uFFFD\uFFFD/#52\uFFFD"}:TAG_INPUT:`;let ce;ce=$localize` Files larger than `;let P;return P=$localize`Edit path`,[["formRef",""],d,c,_,g,y,h,$,K,v,W,M,Z,_e,ue,ce,[3,"submit","formGroup"],[1,"left"],[1,"title-30"],[1,"fill",3,"multiSelect","startingPath","showFiles"],["for","path"],["type","text","id","path","tabindex","4","placeholder",t,"formControlName","path"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary"],[1,"right"],[3,"disallowToggle"],["title",""],["description",""],[1,"paths"],[1,"path"],[1,"row-inputs"],["type","text","placeholder",e,3,"formControl"],["shButton","","type","button",1,"raised","primary",3,"click"],["type","button","shButton","","action","",3,"click"],["formGroupName","excludes",3,"disallowToggle"],[1,"raised","primary"],["type","checkbox","placeholder",n,"formControlName","hidden"],["type","checkbox","placeholder",i,"formControlName","system"],["type","checkbox","placeholder",o,"formControlName","temporary"],[1,"raised","primary",3,"click"],[1,"small"],["type","text","placeholder",P,3,"ngModelChange","ngModel","ngModelOptions"],["shButton","","type","button",1,"small",3,"click"],["type","text",3,"ngModel","ngModelOptions"],[3,"path","osType"],[3,"pathChange","remove","path","osType"],[3,"ngModelChange","ngModel","ngModelOptions"]]},template:function(e,n){if(e&1){let i=x();a(0,"form",16,0),T("submit",function(){return p(i),C(n.next())}),a(2,"div",17)(3,"h3",18),f(4,1),l(),a(5,"app-file-tree",19)(6,"label",20),f(7,2),l(),S(8,"input",21),l(),a(9,"div",22)(10,"button",23),T("click",function(){return p(i),C(n.goBack())}),m(11,3),S(12,"sh-icon"),F(),l(),a(13,"button",24),m(14,4),S(15,"sh-icon"),F(),l()()(),a(16,"div",25)(17,"app-toggle-card",26),B(18,27),f(19,5),k(),a(20,"p",28),f(21,6),l(),a(22,"div",29),$e(23,Ot,3,1,"div",30,Ge),a(25,"div",31)(26,"sh-form-field"),S(27,"input",32),l(),a(28,"button",33),T("click",function(){return p(i),C(n.addNewPath())}),a(29,"sh-icon"),U(30,"plus"),l()()()()(),a(31,"app-toggle-card",26),B(32,27),f(33,7),k(),a(34,"p",28),f(35,8),l(),a(36,"button",34),T("click",function(){return p(i),C(n.addFilter())}),f(37,9),l(),D(38,Lt,2,0),l(),a(39,"app-toggle-card",35),B(40,27),f(41,10),k(),a(42,"p",28),f(43,11),l(),a(44,"sh-toggle",36),m(45,12),S(46,"input",37),F(),l(),a(47,"sh-toggle",36),m(48,13),S(49,"input",38),F(),l(),a(50,"sh-toggle",36),m(51,14),S(52,"input",39),F(),l(),a(53,"sh-toggle",40),T("click",function(){return p(i),C(n.toggleFilesLargerThan())}),f(54,15),l(),D(55,It,2,3,"div",31),l()()()}if(e&2){let i;N("formGroup",n.sourceDataForm),r(5),N("multiSelect",!0)("startingPath",n.getPath())("showFiles",!0),r(12),N("disallowToggle",!0),r(6),xe(n.nonFilterPaths()),r(4),N("formControl",n.newPathCtrl),r(4),N("disallowToggle",!0),r(7),R((i=n.pathSignal())!=null&&i.length?38:-1),r(),N("disallowToggle",!0),r(14),Se("active",n.filesLargerThan()),r(2),R(n.filesLargerThan()?55:-1)}},dependencies:[se,fe,z,Te,j,Ne,oe,Re,et,Pe,Ae,tt,Y,q,ae,Me,Ie,pt,Ct,dt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;flex:1 0;overflow:hidden}form[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex:1 0;overflow:hidden}.right[_ngcontent-%COMP%], .left[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:1.5rem}.left[_ngcontent-%COMP%]{padding:2.5rem;overflow:hidden;border-right:1px solid var(--base-4)}.right[_ngcontent-%COMP%]{padding:2.5rem 1.5rem;overflow:auto}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between}sh-divider[_ngcontent-%COMP%]{margin:.75rem 0}.row-inputs[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr min-content;gap:.25rem}.paths[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;overflow:auto}.path[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr min-content min-content;gap:.25rem}"],changeDetection:0})};var Et="1W:1D,4W:1W,12M:1M",Q=class s{#e=A(H);#t=A(Oe);#i=A(it);#n=A(lt);#r=A(_t);#o=A(Le);generalForm=St();sourceDataForm=gt();scheduleFields={autoRun:E(ee.autoRun),nextTime:E(ee.nextTime),runAgain:E(ee.runAgain)};settings=E([]);optionsFields={remoteVolumeSize:E("50MB"),backupRetention:E("all"),backupRetentionTime:E(""),backupRetentionVersions:E(0),backupRetentionCustom:E("")};targetUrlModel=E(null);backupMetadata=E(null);isDraft=E(!1);backupId=E(null);backupName=G(()=>this.generalFormSignal()?.name??"");isSubmitting=E(!1);finishedLoading=E(!1);backupDefaults=E(null);applicationOptions=E(null);isNew=G(()=>this.backupId()==="new");osType=G(()=>this.#t.systemInfo()?.OSType);selectedOptions=E([]);sourceDataFormSignal=re(this.sourceDataForm.valueChanges);generalFormSignal=re(this.generalForm.valueChanges);encryptionFieldSignal=re(this.generalForm.controls.encryption.valueChanges);advancedOptions=G(()=>this.#t.systemInfo()?.Options?.map(this.#u)??[]);#s=E("");#a=E(null);#l=null;testSignal=this.#s.asReadonly();testErrorMessage=this.#a.asReadonly();#p=ne(()=>{let t=this.targetUrlModel(),e=this.#s(),n=this.#l;this.#l=t,!(e==="testing"||n===null||n===t)&&(this.#s.set(""),this.#a.set(null))});setTestState(t,e){this.#s.set(t),this.#a.set(e??null)}#u(t){return{name:t.Name,type:t.Type,shortDescription:t.ShortDescription??void 0,longDescription:t.LongDescription??void 0,options:t.ValidValues}}encryptionOptions=G(()=>{let t=this.#t.systemInfo()?.EncryptionModules??[];return[pe,...t]});nonSelectedOptions=G(()=>this.advancedOptions().sort((t,e)=>t?.name&&e?.name?t?.name.localeCompare(e?.name):0).filter(t=>this.selectedOptions()?.findIndex(e=>e.name===t.name)===-1));submit(t=!1){this.isSubmitting.set(!0);let e=this.#c(),n=this.backupId();this.isDraft()&&e.Backup&&(e.Backup.Metadata=this.backupMetadata()),n==="new"||!n||this.isDraft()?this.#n.postApiV1Backups({requestBody:e}).pipe(we(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{t||this.exit(!1)},error:()=>{}}):this.#n.putApiV1BackupById({id:n,requestBody:e}).pipe(we(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{t||this.exit(!1)},error:()=>{}})}exit(t){if(!t){this.#_(),this.#e.navigate(["/"]);return}this.#i.open(rt,{data:{title:$localize`Confirm exit?`,message:$localize`Are you sure you want to exit?`,confirmText:$localize`Yes`,cancelText:$localize`Cancel`},closed:e=>{e&&(this.#_(),this.#e.navigate(["/"]))}})}mapSourceDataToForm(t){let e=t.Sources??"",n=t.Filters?.map(c=>`${c.Include?"":"-"}${c.Expression}`)??[],i=t.Settings?.find(c=>c.Name==="--exclude-files-attributes")?.Value?.toLowerCase()?.split(",")??[],o=t.Settings?.find(c=>c.Name==="--skip-files-larger-than")?.Value?.toUpperCase()??null,d={path:[...e,...n].join("\0"),excludes:{hidden:i.includes("hidden"),system:i.includes("system"),temporary:i.includes("temporary"),filesLargerThan:o===null?void 0:ye(o)}};this.sourceDataForm.patchValue(d)}mapDestinationToForm(t){this.targetUrlModel.set(t.TargetURL??"")}mapGeneralToForm(t){let e=t.Name??"",n=t.Description??"",i=t.Settings?.find(g=>g.Name==="encryption-module"),o=t.Settings?.find(g=>g.Name==="passphrase")?.Value??"",d=i?.Value&&i.Value.length?i.Value:"",c=t.Settings?.find(g=>g.Name==="compression-module")?.Value??"",_={name:t.Name??"",description:t.Description??""};e&&e!==""&&(_.name=e),n&&n!==""&&(_.description=n),d&&d!==""&&(_.encryption=d),o&&o!==""&&(_.password=o,_.repeatPassword=o),c&&c!==""&&(_.compression=c),this.generalForm.patchValue(_)}mapScheduleToForm(t){if(!t){this.scheduleFields.autoRun.set(!1);return}let e=this.#o.fromString(t.Repeat)??null,n=this.#d(t.Time);this.scheduleFields.autoRun.set(!0),this.scheduleFields.nextTime.update(i=>b(b({},i),n)),this.scheduleFields.runAgain.set({repeatValue:e?.value??1,repeatUnit:e?.unit??"D",allowedDays:{mon:t.AllowedDays?.includes("mon")??!1,tue:t.AllowedDays?.includes("tue")??!1,wed:t.AllowedDays?.includes("wed")??!1,thu:t.AllowedDays?.includes("thu")??!1,fri:t.AllowedDays?.includes("fri")??!1,sat:t.AllowedDays?.includes("sat")??!1,sun:t.AllowedDays?.includes("sun")??!1}})}mapOptionsToForms(t,e=!1){let n=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","dblock-size","passphrase","keep-time","keep-versions","retention-policy"],i=(t.Settings??[]).map(_=>_);if(e){let _=this.#r.serverSettings()??{};Object.keys(_).filter(g=>g.startsWith("--")).forEach(g=>{i.find(h=>h.Name===g)||i.push({Name:g,Value:_[g],Filter:null})})}let o=i.filter(_=>!n.includes(_.Name)),d=i.filter(_=>n.includes(_.Name));this.settings.set(o??[]),o?.forEach(_=>{if(_.Name==="encryption-module"&&this.isNew())return this.generalForm.controls.encryption.setValue(_.Value??"")});var c="all";d?.forEach(_=>{if(_.Name==="dblock-size"&&this.optionsFields.remoteVolumeSize.set(_.Value??"50MB"),_.Name==="keep-time"&&(_.Value??"")!=="")return c="time",this.optionsFields.backupRetentionTime.set(_.Value??"");if(_.Name==="keep-versions"&&(_.Value??"")!=="")return c="versions",this.optionsFields.backupRetentionVersions.set(_.Value?parseInt(_.Value):null);if(_.Name==="retention-policy"&&(_.Value??"")!=="")if(_.Value===Et)c="smart";else return c="custom",this.optionsFields.backupRetentionCustom.set(_.Value??"")}),this.optionsFields.backupRetention.set(c)}storeMetadata(t,e){this.backupMetadata.set(e?t.Metadata??null:null)}getScheduleFormValue(){return{autoRun:this.scheduleFields.autoRun(),nextTime:this.scheduleFields.nextTime(),runAgain:this.scheduleFields.runAgain()}}#c(){let t=this.generalForm.value,e=this.getScheduleFormValue(),n=this.sourceDataForm.value,i=this.targetUrlModel(),o=null;e.runAgain?.repeatUnit&&e.runAgain?.repeatValue&&(o=this.#o.toString(e.runAgain.repeatValue,e.runAgain.repeatUnit));let d=e.runAgain?.allowedDays?Object.entries(e.runAgain?.allowedDays).filter(([h,$])=>$).map(([h,$])=>h):[],c=n.path?.split("\0")??[],_=this.mapFormsToSettings(),g=Object.entries(n.excludes??{}).filter(([h,$])=>$&&h!=="filesLargerThan").map(([h])=>h),y=n.excludes?.filesLargerThan;return g.length&&_.push({Name:"--exclude-files-attributes",Value:g.join(",")}),y&&y.size!==null&&y.unit!==null&&_.push({Name:"--skip-files-larger-than",Value:`${y.size}${y.unit}`}),{Backup:{Name:t.name,Description:t.description,TargetURL:i??null,Sources:c.filter(h=>!(h.startsWith("-")||h.startsWith("+"))),Settings:_,Filters:c.filter(h=>h.startsWith("-")||h.startsWith("+")).map((h,$)=>({Order:$,Include:h.startsWith("+"),Expression:h.slice(1)}))},Schedule:e.autoRun?{Repeat:o,Time:e.nextTime?.date?new Date(`${e.nextTime.date}T${e.nextTime?.time||"00:00:00"}`).toISOString():null,AllowedDays:d}:null}}mapFormsToSettings(t=[]){let e=this.generalForm.value,n=["--no-encryption","--exclude-files-attributes","--skip-files-larger-than","encryption-module","passphrase","keep-time","keep-versions","retention-policy","dblock-size","compression-module"],i=[{Name:"--no-encryption",Value:"True"}];e.encryption!==""&&e.encryption!==pe.Key&&(i=[{Name:"encryption-module",Value:e.encryption??null},{Name:"passphrase",Value:e.password??null}]);let o=[{Name:"compression-module",Value:e.compression}];e.compression===""&&(o=[]);let d=[{Name:"dblock-size",Value:this.optionsFields.remoteVolumeSize()}];switch(this.optionsFields.backupRetention()){case"time":d.push({Name:"keep-time",Value:this.optionsFields.backupRetentionTime()});break;case"versions":d.push({Name:"keep-versions",Value:this.optionsFields.backupRetentionVersions()?.toString()??""});break;case"custom":d.push({Name:"retention-policy",Value:this.optionsFields.backupRetentionCustom()});break;case"smart":d.push({Name:"retention-policy",Value:Et});break}let c=[...t,...n],_=this.settings().filter(g=>!c.includes(g.Name)).map(g=>{let y=g.Value;return typeof g.Value=="number"&&(y=g.Value.toString()),typeof g.Value=="boolean"&&(y=g.Value?"True":"False"),{Name:g.Name?.startsWith("--")?g.Name:`--${g.Name}`,Value:y}});return[...i,...o,...d,..._]}#d(t){if(!t||t?.indexOf("T")===-1)return{time:t??"13:00"};let e=new Date(t);return{time:`${(""+e.getHours()).padStart(2,"0")}:${(""+e.getMinutes()).padStart(2,"0")}`,date:e.toISOString().split("T")[0]}}setTargetUrl(t,e=!1){e&&(this.#l=null),this.targetUrlModel.set(t)}#_(){this.generalForm.reset(),this.sourceDataForm.reset(),this.scheduleFields.autoRun.set(ee.autoRun),this.scheduleFields.nextTime.set(ee.nextTime),this.scheduleFields.runAgain.set(ee.runAgain),this.optionsFields.remoteVolumeSize.set("50MB"),this.optionsFields.backupRetention.set("all"),this.settings.set([]),this.targetUrlModel.set(null)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=Ce({token:s,factory:s.\u0275fac,providedIn:"root"})};var wt=["formRef"];function Gt(s,t){s&1&&(a(0,"sh-alert",17),m(1,5),S(2,"sh-icon",26),F(),l())}function $t(s,t){if(s&1&&U(0),s&2){let e=t.$implicit;Ye(" ",e.DisplayName," ")}}function xt(s,t){if(s&1&&S(0,"sh-progress-bar",40),s&2){let e=u(3);Se("error",e.calculatePasswordStrength()===1)("warn",e.calculatePasswordStrength()===2)("primary",e.calculatePasswordStrength()===4)("success",e.calculatePasswordStrength()===5),N("value",e.calculatePasswordStrength()*(100/5))}}function Ut(s,t){s&1&&(a(0,"span",35),f(1,10),l())}function bt(s,t){s&1&&(m(0,8,1),S(1,"sh-icon"),F())}function vt(s,t){s&1&&(m(0,8,2),S(1,"sh-icon"),F())}function Bt(s,t){s&1&&(m(0,11,1),S(1,"sh-icon",42),F())}function kt(s,t){s&1&&(m(0,11,2),S(1,"sh-icon"),F())}function Vt(s,t){if(s&1){let e=x();a(0,"button",41),T("click",function(){p(e);let i=u(3);return C(i.copyPassword())}),m(1,11),D(2,Bt,2,0)(3,kt,2,0),F(),l()}if(s&2){let e=u(3);r(2),R(e.copiedPassword()?2:3)}}function Kt(s,t){s&1&&(a(0,"sh-alert",39),f(1,12),l())}function Wt(s,t){if(s&1){let e=x();a(0,"div",30)(1,"sh-form-field")(2,"label",31),m(3,7),S(4,"sup"),F(),l(),S(5,"input",32),l(),D(6,xt,1,9,"sh-progress-bar",33),a(7,"sh-form-field"),S(8,"input",34),D(9,Ut,2,0,"span",35),l(),a(10,"div",36)(11,"button",37),T("click",function(){p(e);let i=u(2);return C(i.showPassword.set(!i.showPassword()))}),m(12,8),D(13,bt,2,0)(14,vt,2,0),F(),l(),a(15,"button",37),T("click",function(){p(e);let i=u(2);return C(i.generatePassword())}),m(16,9),S(17,"sh-icon"),F(),l(),D(18,Vt,4,1,"button",38),l(),D(19,Kt,2,0,"sh-alert",39),l()}if(s&2){let e=u(2);r(5),N("type",e.showPassword()?"text":"password"),r(),R(e.generalForm.value.password?6:-1),r(2),N("type",e.showPassword()?"text":"password"),r(),R(e.generalForm.value.repeatPassword&&e.generalForm.value.repeatPassword!==e.generalForm.value.password?9:-1),r(4),R(e.showPassword()?13:14),r(5),R(e.showCopyPassword()?18:-1),r(),R(e.generalForm.value.password&&e.generalForm.value.password===e.generalForm.value.repeatPassword?19:-1)}}function Xt(s,t){if(s&1&&(a(0,"sh-select",27)(1,"label",28),f(2,6),l(),S(3,"input",29),je(4,$t,1,1,"ng-template"),l(),D(5,Wt,20,7,"div",30)),s&2){let e=u();N("options",e.encryptionOptions())("isClearable",!1),r(5),R(e.encryptionFieldSignal()!==e.noneOptionKey?5:-1)}}function Jt(s,t){if(s&1&&(a(0,"button",24),m(1,13),S(2,"sh-icon"),F(),l()),s&2){let e=u();N("disabled",e.nameAndDescriptionValid()===!1)}}function Ht(s,t){if(s&1&&(a(0,"button",25),m(1,14),S(2,"sh-icon"),F(),l()),s&2){let e=u();N("disabled",e.generalForm.invalid||e.showCopyPassword()&&!e.copiedPassword())}}var te=new De,St=(s={name:"",description:"",encryption:"",password:"",repeatPassword:"",compression:""})=>te.group({name:te.control(s.name,[he.required]),description:te.control(s.description),encryption:te.control(s.encryption,[ct()]),password:te.control(s.password,[Ve(t=>t?.value.encryption!=="",[he.required])]),repeatPassword:te.control(s.repeatPassword,[Ve(t=>t?.value.encryption!=="",[he.required])]),compression:te.control(s.compression)}),pe={Key:"-",DisplayName:"None"},ze=class s{#e=A(H);#t=A(ie);#i=A(ut);#n=A(Q);#r=A(Oe);formRef=Fe.required("formRef");generalForm=this.#n.generalForm;generalFormSignal=this.#n.generalFormSignal;encryptionFieldSignal=this.#n.encryptionFieldSignal;encryptionOptions=this.#n.encryptionOptions;isNew=this.#n.isNew;showPassword=E(!1);copiedPassword=E(!1);showCopyPassword=E(!1);noneOptionKey=pe.Key;encryptionEffect=ne(()=>{this.encryptionFieldSignal()===pe.Key&&(this.copiedPassword.set(!1),this.showCopyPassword.set(!1))});nameAndDescriptionValid=G(()=>{let t=this.generalFormSignal(),e=this.generalForm.controls;return e?.name&&e.name.valid&&e?.description&&e.description.valid});calculatePasswordStrength=G(()=>{let e=this.generalFormSignal()?.password??"";return this.#i.calculatePasswordStrength(e)});ngOnInit(){this.formRef().nativeElement.focus()}exit(){this.#n.exit(!0)}async copyPassword(){let t=this.generalForm.controls.password.value;await this.#o(t??""),this.copiedPassword.set(!0)}async#o(t){try{await navigator.clipboard.writeText(t)}catch{try{let n=document.createElement("textarea");n.value=t,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}catch(n){console.error("Failed to copy text: ",n)}}}generatePassword(){this.copiedPassword.set(!1);let t=this.#i.generate(16);this.generalForm.controls.password.setValue(t),this.generalForm.controls.repeatPassword.setValue(t),this.showCopyPassword.set(!0)}next(){this.#n.isNew()||this.#n.submit(!0),this.#e.navigate(["destination"],{relativeTo:this.#t.parent})}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=J({type:s,selectors:[["app-general"]],viewQuery:function(e,n){e&1&&ge(n.formRef,wt,5),e&2&&Ee()},decls:21,vars:4,consts:()=>{let t;t=$localize`Your backup name`;let e;e=$localize`Your backup description`;let n;n=$localize`Remember to copy the password`;let i;i=$localize`General backup settings`;let o;o=$localize` Backup name ${"\uFFFD#8\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#8\uFFFD"}:CLOSE_SUPERSCRIPT:`;let d;d=$localize`Backup description`;let c;c=$localize`${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON: Exit `;let _;_=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:lock${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Encrypted backup `;let g;g=$localize`Encryption`;let y;y=$localize`Encryption`;let h;h=$localize`Password`;let $;$=$localize`Repeat password`;let K;K=$localize` Create a password ${"\uFFFD#4\uFFFD"}:START_SUPERSCRIPT:*${"\uFFFD/#4\uFFFD"}:CLOSE_SUPERSCRIPT:`;let v;v=$localize`${"\uFFFD*13:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye-slash${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Hide ${"\uFFFD/*13:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*14:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:eye${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Show ${"\uFFFD/*14:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,v=Ue(v);let W;W=$localize`${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:password${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON: Generate password `;let M;M=$localize`Passwords do not match`;let Z;Z=$localize`${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copied password ${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy password ${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,Z=Ue(Z);let _e;_e=$localize` Tip: Be sure to save your password. If you lose it, you will lose access to your backups. `;let ue;ue=$localize` Continue ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ce;return ce=$localize` Continue ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],i,o,d,c,_,y,K,v,W,M,Z,_e,ue,ce,["autocomplete","off",3,"submit","formGroup"],[1,"title-30"],[1,"primary"],["for","backupName"],["type","text","tabindex","1","placeholder",t,"formControlName","name"],["for","backupDescription"],["id","backupDescription","tabindex","2","placeholder",e,"formControlName","description"],[1,"form-actions"],["type","button","shButton","",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],["shButton","","type","submit","shTooltip",n,1,"raised","primary",3,"disabled"],["icon",""],["value","Key","label","DisplayName",3,"options","isClearable"],["for","encryption"],["type","text","id","encryption","tabindex","3","placeholder",g,"formControlName","encryption"],[1,"passwords"],["for","password"],["id","password","tabindex","4","autocomplete","off","placeholder",h,"formControlName","password",3,"type"],[1,"raised",3,"error","warn","primary","success","value"],["id","repeatPassword","tabindex","5","autocomplete","off","placeholder",$,"formControlName","repeatPassword",3,"type"],["error",""],[1,"password-actions"],["shButton","","type","button",1,"small",3,"click"],["shButton","","type","button",1,"small","copy"],["type","primary"],[1,"raised",3,"value"],["shButton","","type","button",1,"small","copy",3,"click"],[1,"sh-success"]]},template:function(e,n){if(e&1){let i=x();a(0,"form",15,0),T("submit",function(){return p(i),C(n.next())}),a(2,"h3",16),f(3,1),l(),D(4,Gt,3,0,"sh-alert",17),a(5,"sh-form-field")(6,"label",18),m(7,2),S(8,"sup"),F(),l(),S(9,"input",19),l(),a(10,"sh-form-field")(11,"label",20),f(12,3),l(),S(13,"textarea",21),l(),D(14,Xt,6,3),a(15,"div",22)(16,"button",23),T("click",function(){return p(i),C(n.exit())}),m(17,4),S(18,"sh-icon"),F(),l(),D(19,Jt,3,1,"button",24)(20,Ht,3,1,"button",25),l()()}if(e&2){let i;N("formGroup",n.generalForm),r(4),R(!n.isNew()&&((i=n.generalFormSignal())==null?null:i.encryption)!==""?4:-1),r(10),R(n.isNew()?14:-1),r(5),R(n.encryptionFieldSignal()===n.noneOptionKey||!n.isNew()?19:20)}},dependencies:[Re,fe,z,j,Ne,Pe,Ae,Y,le,ae,q,ot,nt,at],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;padding-bottom:1.5rem}sup[_ngcontent-%COMP%]{padding:0 .125rem;color:var(--error-8)}.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%] sh-icon.sh-success[_ngcontent-%COMP%]{color:var(--success-8)}"],changeDetection:0})};export{St as a,pe as b,ze as c,ee as d,Ke as e,gt as f,Je as g,Q as h};
|
package/chunk-JXLBFHEH.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as Nt}from"./chunk-OVLLX4US.js";import{a as Ct,b as pt,c as Rt}from"./chunk-AROXMP46.js";import"./chunk-QE4NBN5H.js";import"./chunk-KUP2T6AG.js";import{a as Et}from"./chunk-WNHQELMC.js";import{h as Ot}from"./chunk-IQ52IXSC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-OQ2HMOSQ.js";import"./chunk-VXJJGZ5F.js";import"./chunk-6Q6SSTBK.js";import"./chunk-AUMCM45B.js";import"./chunk-NY63VRAY.js";import"./chunk-GRPEAINE.js";import{a as R}from"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-4IAJY6E3.js";import"./chunk-P7OKMMNZ.js";import{B as St,G as dt,J as Dt,c as ot,e as at,f as st,g as rt,i as Ft,j as lt,s as _t,u as ct,w as Tt,y as ut,z as gt}from"./chunk-HJSCQF6V.js";import{b as nt,d as it}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Ab as x,Ac as tt,Bb as m,Cb as s,Db as r,Eb as g,Ib as G,Jb as w,Lb as O,Qc as k,Ra as F,Sb as T,Tb as u,Ub as h,Vb as f,Wb as $,Xb as b,Xc as et,Yb as d,_ as C,_b as l,bb as K,da as _,ea as c,fc as j,gc as Q,ia as X,jc as q,mc as I,nc as B,oa as p,oc as Y,rc as A,sc as M,tc as P,wb as D,xb as E,yb as y,zb as L,zc as Z}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var mt=["formRef"],It=()=>({maxWidth:"700px",width:"100%"});function ht(i,n){if(i&1){let t=O();T(0,2,1),s(1,"button",30),d("click",function(){_(t);let e=l();return c(e.testDestination(0,!0))}),r(),u()}if(i&2){let t=l();F(),q("loader",t.testSignal()=="testing"),m("disabled",t.testSignal()=="testing")}}function ft(i,n){if(i&1){let t=O();T(0,2,2),s(1,"button",20),d("click",function(){_(t);let e=l();return c(e.copyTargetUrl())}),g(2,"sh-icon"),r(),u()}}function $t(i,n){i&1&&(s(0,"sh-alert"),T(1,5),g(2,"sh-icon",31),u(),r())}function At(i,n){i&1&&(s(0,"sh-alert",21),T(1,6),g(2,"sh-icon",31),u(),r())}function Mt(i,n){if(i&1&&(s(0,"sh-alert",22),T(1,7),g(2,"sh-icon",31),u(),r()),i&2){let t=l();F(2),f(t.testErrorMessage()),$(1)}}function Pt(i,n){if(i&1&&(s(0,"sh-alert",23),T(1,8),g(2,"sh-icon",31),u(),r()),i&2){let t=l();F(2),f(t.testErrorMessage()),$(1)}}function yt(i,n){if(i&1){let t=O();s(0,"p",32),d("click",function(){_(t);let e=l();return c(e.removeDestination())}),T(1,9),g(2,"strong")(3,"br")(4,"span",33),u(),r()}if(i&2){let t,o=l();F(4),f((t=o.selectedDestinationType())==null?null:t.displayName),$(1)}}function Lt(i,n){if(i&1){let t=O();s(0,"div",39),d("click",function(){let e=_(t).$implicit,a=l(2);return c(a.setDestination(e.key))}),s(1,"h3"),I(2),r(),s(3,"p"),I(4),r()()}if(i&2){let t=n.$implicit;F(2),B(t.displayName),F(2),B(t.description)}}function xt(i,n){if(i&1){let t=O();s(0,"button",40,1),d("click",function(){let e=_(t).$implicit,a=l(2);return c(a.setDestination(e.key))}),I(2),r()}if(i&2){let t=n.$implicit;F(2),Y(" ",t.displayName," ")}}function Gt(i,n){if(i&1&&(s(0,"div",34),L(1,Lt,5,2,"div",35,y),r(),s(3,"sh-menu",36)(4,"button",37),h(5,10),r(),G(6,19),L(7,xt,3,1,"button",38,y),w(),r()),i&2){let t=l();F(),x(t.destinationTypeOptionsFocused()),F(2),m("searchable",!0),F(4),x(t.destinationTypeOptions())}}function wt(i,n){if(i&1){let t=O();s(0,"app-single-destination",41),P("targetUrlChange",function(e){_(t);let a=l();return M(a.targetUrlModel,e)||(a.targetUrlModel=e),c(e)}),r()}if(i&2){let t=l();A("targetUrl",t.targetUrlModel)}}function bt(i,n){i&1&&(T(0,4,1),g(1,"sh-icon",28),u())}function Bt(i,n){i&1&&(T(0,4,2),g(1,"sh-icon"),u())}function kt(i,n){if(i&1){let t=O();s(0,"sh-dialog",42),P("isOpenChange",function(e){_(t);let a=l();return M(a.targetUrlDialogOpen,e)||(a.targetUrlDialogOpen=e),c(e)}),s(1,"header",43)(2,"div",44)(3,"h2"),h(4,11),r(),s(5,"sh-alert",22),h(6,12),r()()(),s(7,"div",45)(8,"sh-form-field")(9,"textarea",46),P("ngModelChange",function(e){_(t);let a=l();return M(a.targetUrlCtrl,e)||(a.targetUrlCtrl=e),c(e)}),r()()(),s(10,"footer",47)(11,"button",26),d("click",function(){_(t);let e=l();return c(e.closeTargetUrlDialog(!1))}),I(12,"Cancel"),r(),s(13,"button",48),d("click",function(){_(t);let e=l();return c(e.closeTargetUrlDialog(!0))}),T(14,13),g(15,"sh-icon"),u(),r()()()}if(i&2){let t=l();A("isOpen",t.targetUrlDialogOpen),m("options",tt(3,It)),F(9),A("ngModel",t.targetUrlCtrl)}}var v=class i{#i=C(it);#o=C(nt);#e=C(gt);#a=C(Ct);injector=C(X);#t=C(Nt);#s=C(pt);formRef=et.required("formRef");targetUrlModel=this.#t.destinationTargetUrl;targetUrlCtrl=p(null);targetUrlInitial=p(null);targetUrlDialogOpen=p(!1);toggleNewDestination=p(!0);testSignal=this.#t.testSignal;testErrorMessage=this.#t.testErrorMessage;destinationTypeOptionsInFocus=p(["file","ssh","s3","gcs","googledrive","azure"]);destinationTypeOptions=this.#s.destinationTypeOptions;destinationTypeOptionsFocused=k(()=>{let n=this.destinationTypeOptionsInFocus(),t=this.destinationTypeOptions();return n.map(o=>t.find(e=>e.key===o))});selectedDestinationType=k(()=>{let n=this.#t.destinationTargetUrl();if(!n)return null;let t=n.split("://")[0];return Et(t)});copyTargetUrl(){navigator.clipboard.writeText(this.#t.destinationTargetUrl()??"")}openTargetUrlDialog(){let n=this.#t.destinationTargetUrl();this.targetUrlCtrl.set(n),this.targetUrlInitial.set(n),this.targetUrlDialogOpen.set(!0)}closeTargetUrlDialog(n=!1){this.targetUrlDialogOpen.set(!1);let t=this.targetUrlCtrl(),o=this.targetUrlInitial();!n||t===o||!t||this.#t.updateTargetUrl(t)}testDestination(n,t,o){let e=this.#t.destinationTargetUrl();e&&(this.#t.setTestState("testing"),this.#a.testDestination(e,this.#t.backupId(),n,!0,t).subscribe({next:a=>{if(a.action==="success"){this.#t.setTestState("success"),a.containsBackup===!1?(this.#t.setTestState("warning",$localize`The remote destination does not contain any backups. Please check if the destination details are correct.`),t||this.#e.open(R,{data:{title:$localize`Folder contains no backup`,message:$localize`The remote destination does not contain any backups. Please check if the destination details are correct.`,confirmText:$localize`OK`,cancelText:void 0}})):a.anyFilesFound===!1&&(this.#t.setTestState("warning",$localize`The remote destination is empty. Please check if the destination details are correct.`),t||this.#e.open(R,{data:{title:$localize`Folder is empty`,message:$localize`The remote destination is empty. Please check if the destination details are correct.`,confirmText:$localize`OK`,cancelText:void 0}})),o?.();return}if(this.#t.setTestState("error",a.errorMessage??$localize`An error occurred while testing the destination.`),a.action==="generic-error"){o?.();return}let N=e.includes("?");a.action==="trust-cert"&&this.#t.updateTargetUrl(e+`${N?"&":"?"}accept-specified-ssl-hash=${a.certData}`),a.action==="approve-host-key"&&this.#t.updateTargetUrl(e+`${N?"&":"?"}ssh-fingerprint=${a.reportedHostKey}`),a.testAgain?this.testDestination(a.destinationIndex,t):o?.()}}))}setDestination(n){this.#t.updateTargetUrl(`${n}://`)}removeDestination(){this.#t.updateTargetUrl(null)}goBack(){this.#i.navigate(["general"],{relativeTo:this.#o.parent})}next(){let n=this.testSignal();if(n===""){this.#e.open(R,{data:{title:$localize`Test destination`,message:$localize`You have not tested the destination yet. Do you want to test it now?`,confirmText:$localize`Test now`,cancelText:$localize`Skip test and continue`},closed:t=>{t?this.testDestination(0,!1,()=>{this.testSignal()==="success"?this.#n():this.#e.open(R,{data:{title:$localize`Test did not succeed`,message:this.testErrorMessage()??$localize`Failed to test the destination.`,confirmText:$localize`OK`,cancelText:void 0}})}):this.#n()}});return}if(n!=="success"){this.#e.open(R,{data:{title:$localize`Test destination`,message:$localize`The destination has not been tested successfully. Are you sure you want to continue?`,confirmText:$localize`Yes, continue`,cancelText:$localize`Cancel`},closed:t=>{t&&this.#n()}});return}this.#n()}#n(){this.#i.navigate(["encryption"],{relativeTo:this.#o.parent})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=K({type:i,selectors:[["app-restore-destination"]],viewQuery:function(t,o){t&1&&j(o.formRef,mt,5),t&2&&Q()},features:[Z([Ot])],decls:30,vars:9,consts:()=>{let n;n=$localize` Backup destination ${"\uFFFD#5\uFFFD"}:START_TAG_DIV:${"[\uFFFD*6:1\uFFFD|\uFFFD*13:2\uFFFD]"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_BUTTON: Test destination ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*6:1\uFFFD|\uFFFD/*13:2\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD#7\uFFFD"}:START_TAG_SH_MENU:${"\uFFFD#8\uFFFD"}:START_TAG_BUTTON_1:${"[\uFFFD#9\uFFFD|\uFFFD#12\uFFFD|\uFFFD#2:2\uFFFD]"}:START_TAG_SH_ICON:dots-three-vertical${"[\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD|\uFFFD/#2:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"\uFFFD#10\uFFFD"}:START_TAG_NG_CONTAINER:${"\uFFFD#11\uFFFD"}:START_TAG_BUTTON_2:${"[\uFFFD#9\uFFFD|\uFFFD#12\uFFFD|\uFFFD#2:2\uFFFD]"}:START_TAG_SH_ICON:link${"[\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD|\uFFFD/#2:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Edit target URL ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD*6:1\uFFFD|\uFFFD*13:2\uFFFD]"}:START_BLOCK_IF:${"\uFFFD#1:2\uFFFD"}:START_TAG_BUTTON_3:${"[\uFFFD#9\uFFFD|\uFFFD#12\uFFFD|\uFFFD#2:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#9\uFFFD|\uFFFD/#12\uFFFD|\uFFFD/#2:2\uFFFD]"}:CLOSE_TAG_SH_ICON: Copy URL to clipboard ${"[\uFFFD/#1:1\uFFFD|\uFFFD/#8\uFFFD|\uFFFD/#11\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_BUTTON:${"[\uFFFD/*6:1\uFFFD|\uFFFD/*13:2\uFFFD]"}:CLOSE_BLOCK_IF:${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_NG_CONTAINER:${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_MENU:${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_DIV:`,n=b(n);let t;t=$localize`${"\uFFFD#24\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#24\uFFFD"}:CLOSE_TAG_SH_ICON: Go back `;let o;o=$localize`${"\uFFFD*27:1\uFFFD"}:START_BLOCK_IF:${"\uFFFD#1:1\uFFFD"}:START_TAG_SH_ICON:spinner${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*27:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*28:2\uFFFD"}:START_BLOCK_ELSE:${"\uFFFD#1:2\uFFFD"}:START_TAG_SH_ICON_1:arrow-right${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*28:2\uFFFD"}:CLOSE_BLOCK_ELSE: Continue `,o=b(o);let e;e=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:spinner${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Testing connection... `;let a;a=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:check${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: Connection tested successfully. `;let N;N=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let U;U=$localize`${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:warning${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON: ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let V;V=$localize` Current destination type ${"\uFFFD#2\uFFFD"}:START_TAG_STRONG:${"\uFFFD0\uFFFD"}:INTERPOLATION:.${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_STRONG:${"\uFFFD#3\uFFFD\uFFFD/#3\uFFFD"}:LINE_BREAK: Want to select another? ${"\uFFFD#4\uFFFD"}:START_TAG_SPAN:Click here${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SPAN:`;let W;W=$localize`All destinations`;let z;z=$localize`Edit target URL`;let H;H=$localize`Be careful, this will overwrite everything you have in your destination.`;let J;return J=$localize` Override target URL ${"\uFFFD#15\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#15\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["formRef",""],["option",""],n,t,o,e,a,N,U,V,W,z,H,J,[3,"submit"],[1,"title-30"],[1,"actions"],["shButton","","type","button",1,"small",3,"disabled","loader"],["shButton","","type","button",1,"small"],["menu",""],["shButton","","type","button",1,"small",3,"click"],[1,"success"],[1,"warn"],[1,"error"],[3,"targetUrl"],[1,"form-actions"],["shButton","","type","button",3,"click"],["shButton","","type","submit",1,"raised","primary",3,"disabled"],[1,"loader"],[3,"isOpen","options"],["shButton","","type","button",1,"small",3,"click","disabled"],["icon",""],[3,"click"],[1,"sh-primary"],[1,"most-common-destinations"],[1,"tile"],[3,"searchable"],["shButton","","type","button",1,"outlined"],["type","button"],[1,"tile",3,"click"],["type","button",3,"click"],[3,"targetUrlChange","targetUrl"],[3,"isOpenChange","isOpen","options"],["header",""],[1,"target-dialog-header"],["content",""],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","submit",1,"raised","primary",3,"click"]]},template:function(t,o){if(t&1){let e=O();s(0,"form",14,0),d("submit",function(){return _(e),c(o.next())}),s(2,"header")(3,"h3",15),T(4,2),s(5,"div",16),D(6,ht,2,3,"button",17),s(7,"sh-menu")(8,"button",18),g(9,"sh-icon"),r(),G(10,19),s(11,"button",20),d("click",function(){return _(e),c(o.openTargetUrlDialog())}),g(12,"sh-icon"),r(),D(13,ft,3,0,"button",18),w(),r()(),u(),r(),D(14,$t,3,0,"sh-alert")(15,At,3,0,"sh-alert",21)(16,Mt,3,1,"sh-alert",22)(17,Pt,3,1,"sh-alert",23),D(18,yt,5,1,"p"),r(),D(19,Gt,9,1),D(20,wt,1,1,"app-single-destination",24),s(21,"div",25)(22,"button",26),d("click",function(){return _(e),c(o.goBack())}),T(23,3),g(24,"sh-icon"),u(),r(),s(25,"button",27),T(26,4),D(27,bt,2,0,"sh-icon",28)(28,Bt,2,0,"sh-icon"),u(),r()()(),D(29,kt,16,4,"sh-dialog",29)}if(t&2){let e=!!o.targetUrlModel();F(6),E(e?6:-1),F(7),E(e?13:-1),F(),E(o.testSignal()=="testing"?14:o.testSignal()=="success"?15:o.testSignal()=="warning"?16:o.testSignal()=="error"?17:-1),F(4),E(e?18:-1),F(),E(e?-1:19),F(),E(e?20:-1),F(5),m("disabled",o.testSignal()=="testing"||!e),F(2),E(o.testSignal()=="testing"?27:28),F(2),E(o.targetUrlDialogOpen()?29:-1)}},dependencies:[Rt,_t,lt,ot,at,st,Ft,rt,St,dt,Dt,ct,ut,Tt],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:32.5rem;padding:2.5rem}header[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], header[_ngcontent-%COMP%] sh-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}.clickable[_ngcontent-%COMP%]{cursor:pointer;color:var(--primary-8)}.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-4);border-radius:var(--shape-3);box-shadow:var(--box-shadow-10);background-color:var(--base-2);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-8)}textarea[_ngcontent-%COMP%] ~ grammarly-extension[_ngcontent-%COMP%]{display:none}.target-dialog-header[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.5rem}"],changeDetection:0})};export{v as default};
|
package/chunk-KKLVMIFL.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-EUDKD2JW.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-R3F6GIHW.js")},{path:"destination",loadComponent:()=>import("./chunk-WKA7CSGA.js")},{path:"source-data",loadComponent:()=>import("./chunk-SKFITJZT.js")},{path:"schedule",loadComponent:()=>import("./chunk-TPYX7QC7.js")},{path:"options",loadComponent:()=>import("./chunk-SHNCRKXQ.js")}];export{o as default};
|
package/chunk-L7WPKNLR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as M}from"./chunk-EEXKY2IJ.js";import"./chunk-X7XIFHAV.js";import"./chunk-ZZBUNZZO.js";import"./chunk-HW7A5ZWV.js";import"./chunk-ULR2EPP5.js";import"./chunk-VXJJGZ5F.js";import"./chunk-6Q6SSTBK.js";import"./chunk-AUMCM45B.js";import"./chunk-QOQI2ALM.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-E4KSSC6K.js";import"./chunk-4IAJY6E3.js";import"./chunk-P7OKMMNZ.js";import{B as D,C as N,u as E}from"./chunk-HJSCQF6V.js";import{e as m}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Ac as d,Bb as s,Cb as e,Db as n,Eb as o,Ra as c,Sb as r,Tb as l,Ub as i,bb as T}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";var f=()=>["/backup/new"],O=()=>["/backup/import"],u=class p{static \u0275fac=function(t){return new(t||p)};static \u0275cmp=T({type:p,selectors:[["app-add-backup"]],decls:23,vars:4,consts:()=>{let a;a=$localize`Add a new backup`;let t;t=$localize`New backup`;let C;C=$localize`Configure a new backup. Choose your destination, source data and schedule.`;let A;A=$localize` Add a new backup ${"\uFFFD#13\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#13\uFFFD"}:CLOSE_TAG_SH_ICON:`;let g;g=$localize`Import from file`;let P;P=$localize`Import backup configuration from a file. During import, you can adjust the settings.`;let S;return S=$localize` Import from file ${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:upload-simple${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON:`,[a,t,C,A,g,P,S,[1,"backup-types"],[1,"type-a"],["src","assets/images/new-backup.png"],["shButton","",1,"raised","primary",3,"routerLink"]]},template:function(t,C){t&1&&(o(0,"app-status-bar"),e(1,"section")(2,"h2"),i(3,0),n(),e(4,"div",7)(5,"sh-card",8),o(6,"img",9),e(7,"h3"),i(8,1),n(),e(9,"p"),i(10,2),n(),e(11,"button",10),r(12,3),o(13,"sh-icon"),l(),n()(),e(14,"sh-card",8),o(15,"img",9),e(16,"h3"),i(17,4),n(),e(18,"p"),i(19,5),n(),e(20,"button",10),r(21,6),o(22,"sh-icon"),l(),n()()()()),t&2&&(c(11),s("routerLink",d(2,f)),c(9),s("routerLink",d(3,O)))},dependencies:[M,D,N,E,m],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;align-items:center;flex-direction:column;gap:2rem;padding:2rem 0}div.backup-types[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;max-width:43.75rem}sh-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem;padding-bottom:3rem}sh-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:18.75rem}sh-card[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;text-align:center;width:75%}"],changeDetection:0})};export{u as default};
|
package/chunk-LHOHOKP5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as _e}from"./chunk-EEXKY2IJ.js";import"./chunk-X7XIFHAV.js";import"./chunk-ZZBUNZZO.js";import"./chunk-HW7A5ZWV.js";import{a as se}from"./chunk-ULR2EPP5.js";import"./chunk-VXJJGZ5F.js";import"./chunk-6Q6SSTBK.js";import"./chunk-AUMCM45B.js";import"./chunk-QOQI2ALM.js";import{a as le,b as m}from"./chunk-GRPEAINE.js";import{a as b}from"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-E4KSSC6K.js";import"./chunk-4IAJY6E3.js";import{b as oe}from"./chunk-P7OKMMNZ.js";import{B as ae,G as ie,X as ne,c as Q,e as Y,i as Z,s as x,u as ee,z as te}from"./chunk-HJSCQF6V.js";import{b as q,e as j}from"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import{Bb as d,Cb as n,D as G,Db as i,Eb as c,F as g,G as L,H as p,Qc as E,Ra as _,Rc as P,Sb as u,Tb as h,Ub as A,Vb as H,Wb as J,Yb as T,_ as F,bb as V,jc as C,lc as K,mc as D,oa as s,r as y,rc as X,sc as z,tc as W,wb as w,xb as U}from"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";function re(r,t){r&1&&(n(0,"sh-icon",19),D(1,"spinner"),i())}function ce(r,t){r&1&&(n(0,"sh-icon",20),D(1,"check"),i())}function de(r,t){r&1&&(n(0,"sh-icon",21),D(1,"warning"),i()),r&2&&d("shTooltip","File not found")}function ue(r,t){let a=le(r).pipe(G(t),L());return m(a,{initialValue:r()})}var N=class r{#o=F(q);#s=F(se);#e=F(oe);#a=F(te);#t=s("");backupId=m(this.#o.params.pipe(y(t=>t.id)));activeBackup=E(()=>this.#s.backups().find(t=>t.Backup?.ID===this.backupId()));backupFilePath=s("");lastValidatedPath=s("");isValidatedPath=E(()=>this.lastValidatedPath()===this.backupFilePath());pathHasChanged=E(()=>this.backupFilePath()!==this.#t());isValidatingPath=s(!1);#i=ue(this.backupFilePath,500);#n=s(!1);isWaitingForValidation=E(()=>this.#i()!=this.backupFilePath()||this.isValidatingPath());backupFilePathEffect=P(()=>{let t=this.#i(),a=this.activeBackup(),e=this.#n();t!==""&&(this.isValidatingPath.set(!0),this.#e.postApiV1FilesystemValidate({requestBody:{path:t}}).pipe(g(1),p(()=>this.isValidatingPath.set(!1))).subscribe(()=>this.lastValidatedPath.set(t)))});isRestoring=s(!1);isRepairing=s(!1);isDeleting=s(!1);isSavingDbPath=s(!1);isSavingAndRepairing=s(!1);isMovingDb=s(!1);isCreatingBugReport=s(!1);createdReport=s(!1);activeBackupEffect=P(()=>{let t=this.activeBackup();if(!t)return;let a=t.Backup?.DBPath??"";this.backupFilePath.set(a),this.#t.set(a)});repairDatabase(){this.isRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isRepairing.set(!1))).subscribe()}deleteDatabase(t=null){this.isValidatedPath()?this.#a.open(b,{data:{title:$localize`Confirm delete?`,message:$localize`Do you really want to delete the database for ${this.activeBackup()?.Backup?.Name}?`,confirmText:$localize`Delete database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doDeleteDatabase(t)}}):this.doDeleteDatabase(t)}doDeleteDatabase(t=null){this.isDeleting.set(!0),this.#e.postApiV1BackupByIdDeletedb({id:this.backupId()}).pipe(g(1),p(()=>this.isDeleting.set(!1))).subscribe(()=>{this.lastValidatedPath.set(""),t?.()})}restoreDatabase(){this.isValidatedPath()?this.deleteDatabase(()=>{this.doRepairDatabase()}):this.doRepairDatabase()}doRepairDatabase(){this.isRestoring.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isRestoring.set(!1))).subscribe()}resetDatabasePath(){this.backupFilePath.set(this.#t())}saveDatabasePath(t=null){this.isValidatedPath()?this.#a.open(b,{data:{title:$localize`Confirm reassign?`,message:$localize`The target database path already exists and may belong to another backup. Are you sure you want to assign this backup to an existing database?`,confirmText:$localize`Assign existing database`,cancelText:$localize`Cancel`},closed:a=>{a&&this.doSaveDatabasePath(t)}}):this.doSaveDatabasePath(t)}doSaveDatabasePath(t=null){this.isSavingDbPath.set(!0);let a=this.backupFilePath();this.#e.postApiV1BackupByIdUpdatedb({id:this.backupId(),requestBody:{path:a}}).pipe(p(()=>this.isSavingDbPath.set(!1))).subscribe(()=>{this.#t.set(a),t?.()})}saveAndRepairDatabasePath(){this.saveDatabasePath(()=>(this.isSavingAndRepairing.set(!0),this.#e.postApiV1BackupByIdRepair({id:this.backupId()}).pipe(g(1),p(()=>this.isSavingAndRepairing.set(!1))).subscribe()))}moveDatabasePath(){this.isMovingDb.set(!0);let t=this.backupFilePath();this.#e.postApiV1BackupByIdMovedb({id:this.backupId(),requestBody:{path:t}}).pipe(p(()=>this.isMovingDb.set(!1))).subscribe(()=>{this.#n.update(a=>!a),this.#t.set(t)})}createErrorReport(){this.isCreatingBugReport.set(!0),this.#e.postApiV1BackupByIdCreatereport({id:this.backupId()}).pipe(p(()=>this.isCreatingBugReport.set(!1))).subscribe({next:()=>{this.createdReport.set(!0),window.setTimeout(()=>this.createdReport.set(!1),3e3)}})}static \u0275fac=function(a){return new(a||r)};static \u0275cmp=V({type:r,selectors:[["app-database"]],decls:50,vars:21,consts:()=>{let t;t=$localize`${"\uFFFD#5\uFFFD"}:START_TAG_SH_ICON:arrow-left${"\uFFFD/#5\uFFFD"}:CLOSE_TAG_SH_ICON: Back `;let a;a=$localize`Local database for ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;e=$localize` Each backup has a local database associated with it, which stores information about the remote backup on the local machine. This makes it faster to perform many operations, and reduces the amount of data that needs to be downloaded for each operation. `;let o;o=$localize`Maintenance`;let S;S=$localize` If the backup and the remote storage is out of sync, Duplicati will require that you perform a repair operation to synchronize the database. If the repair is unsuccessful, you can delete the local database and re-generate. The bug report button can be used to create a copy of the database with path information removed. This should only be used if a developer requests to investigate an issue with your database. `;let f;f=$localize`${"\uFFFD#19\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#19\uFFFD"}:CLOSE_TAG_SH_ICON: Repair `;let I;I=$localize`${"\uFFFD#22\uFFFD"}:START_TAG_SH_ICON:trash${"\uFFFD/#22\uFFFD"}:CLOSE_TAG_SH_ICON: Delete `;let M;M=$localize`${"\uFFFD#25\uFFFD"}:START_TAG_SH_ICON:clock-counter-clockwise${"\uFFFD/#25\uFFFD"}:CLOSE_TAG_SH_ICON: Restore (delete and repair) `;let R;R=$localize`${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:file-plus${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON: Create bug report database `;let B;B=$localize`Placement`;let O;O=$localize`${"\uFFFD#40\uFFFD"}:START_TAG_SH_ICON:backspace${"\uFFFD/#40\uFFFD"}:CLOSE_TAG_SH_ICON: Reset `;let $;$=$localize`${"\uFFFD#43\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#43\uFFFD"}:CLOSE_TAG_SH_ICON: Save `;let v;v=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:wrench${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Save & Repair `;let k;return k=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:flow-arrow${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON: Move existing database `,[t,a,e,o,S,f,I,M,R,B,O,$,v,k,[1,"back"],["type","button","shButton","","routerLink","/",1,"small"],[1,"actions","maintenance"],["shButton","",3,"click","disabled"],["type","text",3,"ngModelChange","ngModel"],["prefix","",1,"primary"],["prefix",""],["prefix","",3,"shTooltip"],[1,"actions","placement"]]},template:function(a,e){if(a&1&&(c(0,"app-status-bar"),n(1,"section")(2,"div",14)(3,"button",15),u(4,0),c(5,"sh-icon"),h(),i()(),n(6,"article")(7,"h1"),A(8,1),i(),n(9,"p"),A(10,2),i()(),n(11,"article")(12,"h2"),A(13,3),i(),n(14,"p"),A(15,4),i(),n(16,"div",16)(17,"button",17),T("click",function(){return e.repairDatabase()}),u(18,5),c(19,"sh-icon"),h(),i(),n(20,"button",17),T("click",function(){return e.deleteDatabase()}),u(21,6),c(22,"sh-icon"),h(),i(),n(23,"button",17),T("click",function(){return e.restoreDatabase()}),u(24,7),c(25,"sh-icon"),h(),i(),n(26,"button",17),T("click",function(){return e.createErrorReport()}),u(27,8),c(28,"sh-icon"),h(),i()()(),n(29,"article")(30,"h2"),A(31,9),i(),n(32,"sh-form-field")(33,"input",18),W("ngModelChange",function(S){return z(e.backupFilePath,S)||(e.backupFilePath=S),S}),i(),w(34,re,2,0,"sh-icon",19)(35,ce,2,0,"sh-icon",20)(36,de,2,1,"sh-icon",21),i(),n(37,"div",22)(38,"button",17),T("click",function(){return e.resetDatabasePath()}),u(39,10),c(40,"sh-icon"),h(),i(),n(41,"button",17),T("click",function(){return e.saveDatabasePath()}),u(42,11),c(43,"sh-icon"),h(),i(),n(44,"button",17),T("click",function(){return e.saveAndRepairDatabasePath()}),u(45,12),c(46,"sh-icon"),h(),i(),n(47,"button",17),T("click",function(){return e.moveDatabasePath()}),u(48,13),c(49,"sh-icon"),h(),i()()()()),a&2){let o;_(8),H((o=e.activeBackup())==null||o.Backup==null?null:o.Backup.Name),J(8),_(9),C("loader",e.isRepairing()),d("disabled",!e.isValidatedPath()||e.pathHasChanged()),_(3),C("loader",e.isDeleting()),d("disabled",!e.isValidatedPath()||e.pathHasChanged()),_(3),C("loader",e.isRestoring()),d("disabled",e.pathHasChanged()),_(3),C("loader",e.isCreatingBugReport()),d("disabled",e.isCreatingBugReport()||!e.isValidatedPath()||e.pathHasChanged()),_(6),K(e.isValidatedPath()?"success":"error"),_(),X("ngModel",e.backupFilePath),_(),U(e.isWaitingForValidation()?34:e.isValidatedPath()?35:36),_(4),d("disabled",!e.pathHasChanged()),_(3),d("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),_(3),d("disabled",!e.pathHasChanged()||e.isWaitingForValidation()),_(3),d("disabled",!e.pathHasChanged()||e.isValidatedPath()||e.isWaitingForValidation())}},dependencies:[x,Q,Y,Z,_e,ae,ie,ee,ne,j],styles:["[_nghost-%COMP%]{display:block}section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2rem;padding:2rem}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}h1[_ngcontent-%COMP%]{font:var(--title-20)}h2[_ngcontent-%COMP%]{font:var(--title-30)}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem}"],changeDetection:0})};export{N as default};
|
package/chunk-NLXY47SY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-RRM5OZPV.js";import"./chunk-W7NX3PWJ.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as default};
|
package/chunk-POAVE42X.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as a,f as b}from"./chunk-OVLLX4US.js";import"./chunk-QE4NBN5H.js";import"./chunk-KUP2T6AG.js";import"./chunk-WNHQELMC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-VXJJGZ5F.js";import"./chunk-AUMCM45B.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-4IAJY6E3.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreSelectFilesForm,b as default};
|
package/chunk-QAY6UFT6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-QE4NBN5H.js";import"./chunk-KUP2T6AG.js";import"./chunk-WNHQELMC.js";import"./chunk-J64OAILA.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as OptionsListComponent};
|
package/chunk-R3F6GIHW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a,b,c}from"./chunk-IQ52IXSC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-OQ2HMOSQ.js";import"./chunk-6Q6SSTBK.js";import"./chunk-NY63VRAY.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{b as NONE_OPTION,a as createGeneralForm,c as default};
|
package/chunk-SKFITJZT.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as a,g as b}from"./chunk-IQ52IXSC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-OQ2HMOSQ.js";import"./chunk-6Q6SSTBK.js";import"./chunk-NY63VRAY.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as createSourceDataForm,b as default};
|
package/chunk-TPYX7QC7.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as a,e as b}from"./chunk-IQ52IXSC.js";import"./chunk-R2N5UWYB.js";import"./chunk-J64OAILA.js";import"./chunk-OQ2HMOSQ.js";import"./chunk-6Q6SSTBK.js";import"./chunk-NY63VRAY.js";import"./chunk-GRPEAINE.js";import"./chunk-QLUEDPL4.js";import"./chunk-ZQ56M63S.js";import"./chunk-P7OKMMNZ.js";import"./chunk-HJSCQF6V.js";import"./chunk-G4Z3JAJB.js";import"./chunk-53V6KV3I.js";import"./chunk-XUQ74HFK.js";import"./chunk-3ADKRLYD.js";import"./chunk-FPPZ4BUR.js";import"./chunk-Y7PHGRGB.js";import"./chunk-EUDKD2JW.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
|