@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aa as Ui,a as ti,ea as ji,la as ii}from"./chunk-6DB3NZXR.js";import{$b as M,Ab as $e,Ac as re,Bb as We,Bc as Mt,Cb as pe,Cc as Et,Db as b,Dc as Qt,Eb as E,Fb as ye,Gb as W,Hb as X,Ib as Pe,Kc as Bi,Lb as Fe,Mb as oe,Pc as Zt,Qa as Fi,Qc as Ee,Ra as S,Rc as k,S as yt,Sc as Q,Ta as Dt,U as he,V as He,Va as Me,W as Je,Wa as I,Wc as De,Xa as ki,Xc as V,Y as Se,Yc as ve,Zb as B,Zc as Kt,_ as A,_b as ke,_c as te,a as xi,ac as z,ad as Jt,ba as Ai,bb as U,bc as y,ca as Ii,cb as tt,da as H,db as K,ea as j,ed as Hi,fb as ne,fc as qt,gb as Oe,gc as fe,gd as ei,hc as _e,i as Oi,ia as je,ic as Yt,ja as Ue,jb as Ve,jc as le,ka as xe,kc as $,lb as Wt,lc as Xt,m as Vi,mc as ge,na as $t,nb as Ri,nc as N,oa as T,oc as Ge,pc as me,qb as Gt,qc as bt,r as Ti,ra as et,sa as ze,sc as nt,tb as Te,tc as ot,ua as Y,uc as st,vc as St,wb as R,wc as Ce,x as Ni,xb as L,xc as ee,ya as Pi,yb as it,zb as Li}from"./chunk-FAM42SZT.js";import{a as Z,b as ie,c as wi,d as m,e as x,f as O,g as w}from"./chunk-EUDKD2JW.js";var Zi=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||i)(I(Me),I(Y))};static \u0275dir=K({type:i})}return i})(),pt=(()=>{class i extends Zi{static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,features:[ne]})}return i})(),Ae=new Se(""),Hn={provide:Ae,useExisting:he(()=>jn),multi:!0},jn=(()=>{class i extends pt{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&B("change",function(h){return o.onChange(h.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Hn]),ne]})}return i})(),Un={provide:Ae,useExisting:he(()=>Ki),multi:!0};function zn(){let i=ti()?ti().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var $n=new Se(""),Ki=(()=>{class i extends Zi{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zn())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||i)(I(Me),I(Y),I($n,8))};static \u0275dir=K({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&&B("input",function(h){return o._handleInput(h.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(h){return o._compositionEnd(h.target.value)})},standalone:!1,features:[re([Un]),ne]})}return i})();function ri(i){return i==null||ai(i)===0}function ai(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Re=new Se(""),Le=new Se(""),Wn=/^(?=.{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])?)*$/,zi=class{static min(t){return Gn(t)}static max(t){return qn(t)}static required(t){return Yn(t)}static requiredTrue(t){return Xn(t)}static email(t){return Qn(t)}static minLength(t){return Zn(t)}static maxLength(t){return Kn(t)}static pattern(t){return Jn(t)}static nullValidator(t){return Ji()}static compose(t){return rn(t)}static composeAsync(t){return an(t)}};function Gn(i){return t=>{if(t.value==null||i==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e<i?{min:{min:i,actual:t.value}}:null}}function qn(i){return t=>{if(t.value==null||i==null)return null;let e=parseFloat(t.value);return!isNaN(e)&&e>i?{max:{max:i,actual:t.value}}:null}}function Yn(i){return ri(i.value)?{required:!0}:null}function Xn(i){return i.value===!0?null:{required:!0}}function Qn(i){return ri(i.value)||Wn.test(i.value)?null:{email:!0}}function Zn(i){return t=>{let e=t.value?.length??ai(t.value);return e===null||e===0?null:e<i?{minlength:{requiredLength:i,actualLength:e}}:null}}function Kn(i){return t=>{let e=t.value?.length??ai(t.value);return e!==null&&e>i?{maxlength:{requiredLength:i,actualLength:e}}:null}}function Jn(i){if(!i)return Ji;let t,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),t=new RegExp(e)):(e=i.toString(),t=i),n=>{if(ri(n.value))return null;let o=n.value;return t.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Ji(i){return null}function en(i){return i!=null}function tn(i){return Ri(i)?Vi(i):i}function nn(i){let t={};return i.forEach(e=>{t=e!=null?Z(Z({},t),e):t}),Object.keys(t).length===0?null:t}function on(i,t){return t.map(e=>e(i))}function eo(i){return!i.validate}function sn(i){return i.map(t=>eo(t)?t:e=>t.validate(e))}function rn(i){if(!i)return null;let t=i.filter(en);return t.length==0?null:function(e){return nn(on(e,t))}}function li(i){return i!=null?rn(sn(i)):null}function an(i){if(!i)return null;let t=i.filter(en);return t.length==0?null:function(e){let n=on(e,t).map(tn);return Ni(n).pipe(Ti(nn))}}function ci(i){return i!=null?an(sn(i)):null}function $i(i,t){return i===null?[t]:Array.isArray(i)?[...i,t]:[i,t]}function ln(i){return i._rawValidators}function cn(i){return i._rawAsyncValidators}function ni(i){return i?Array.isArray(i)?i:[i]:[]}function xt(i,t){return Array.isArray(i)?i.includes(t):i===t}function Wi(i,t){let e=ni(t);return ni(i).forEach(o=>{xt(e,o)||e.push(o)}),e}function Gi(i,t){return ni(t).filter(e=>!xt(i,e))}var Ot=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(t){this._rawValidators=t||[],this._composedValidatorFn=li(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=ci(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,e){return this.control?this.control.hasError(t,e):!1}getError(t,e){return this.control?this.control.getError(t,e):null}},ae=class extends Ot{name;get formDirective(){return null}get path(){return null}},be=class extends Ot{_parent=null;name=null;valueAccessor=null},Vt=class{_cd;constructor(t){this._cd=t}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},to={"[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"},ha=ie(Z({},to),{"[class.ng-submitted]":"isSubmitted"}),pa=(()=>{class i extends Vt{constructor(e){super(e)}static \u0275fac=function(n){return new(n||i)(I(be,2))};static \u0275dir=K({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&$("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:[ne]})}return i})(),fa=(()=>{class i extends Vt{constructor(e){super(e)}static \u0275fac=function(n){return new(n||i)(I(ae,10))};static \u0275dir=K({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&$("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:[ne]})}return i})();var rt="VALID",wt="INVALID",qe="PENDING",at="DISABLED",Ne=class{},Tt=class extends Ne{value;source;constructor(t,e){super(),this.value=t,this.source=e}},ct=class extends Ne{pristine;source;constructor(t,e){super(),this.pristine=t,this.source=e}},dt=class extends Ne{touched;source;constructor(t,e){super(),this.touched=t,this.source=e}},Ye=class extends Ne{status;source;constructor(t,e){super(),this.status=t,this.source=e}},Nt=class extends Ne{source;constructor(t){super(),this.source=t}},At=class extends Ne{source;constructor(t){super(),this.source=t}};function di(i){return(kt(i)?i.validators:i)||null}function io(i){return Array.isArray(i)?li(i):i||null}function ui(i,t){return(kt(t)?t.asyncValidators:i)||null}function no(i){return Array.isArray(i)?ci(i):i||null}function kt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function dn(i,t,e){let n=i.controls;if(!(t?Object.keys(n):n).length)throw new yt(1e3,"");if(!n[e])throw new yt(1001,"")}function un(i,t,e){i._forEachChild((n,o)=>{if(e[o]===void 0)throw new yt(1002,"")})}var Xe=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,e){this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return Ee(this.statusReactive)}set status(t){Ee(()=>this.statusReactive.set(t))}_status=k(()=>this.statusReactive());statusReactive=T(void 0);get valid(){return this.status===rt}get invalid(){return this.status===wt}get pending(){return this.status==qe}get disabled(){return this.status===at}get enabled(){return this.status!==at}errors;get pristine(){return Ee(this.pristineReactive)}set pristine(t){Ee(()=>this.pristineReactive.set(t))}_pristine=k(()=>this.pristineReactive());pristineReactive=T(!0);get dirty(){return!this.pristine}get touched(){return Ee(this.touchedReactive)}set touched(t){Ee(()=>this.touchedReactive.set(t))}_touched=k(()=>this.touchedReactive());touchedReactive=T(!1);get untouched(){return!this.touched}_events=new Oi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Wi(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Wi(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(Gi(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(Gi(t,this._rawAsyncValidators))}hasValidator(t){return xt(this._rawValidators,t)}hasAsyncValidator(t){return xt(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let e=this.touched===!1;this.touched=!0;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(ie(Z({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new dt(!0,n))}markAllAsDirty(t={}){this.markAsDirty({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(t))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(t))}markAsUntouched(t={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:n})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n),e&&t.emitEvent!==!1&&this._events.next(new dt(!1,n))}markAsDirty(t={}){let e=this.pristine===!0;this.pristine=!1;let n=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(ie(Z({},t),{sourceControl:n})),e&&t.emitEvent!==!1&&this._events.next(new ct(!1,n))}markAsPristine(t={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),e&&t.emitEvent!==!1&&this._events.next(new ct(!0,n))}markAsPending(t={}){this.status=qe;let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Ye(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(ie(Z({},t),{sourceControl:e}))}disable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=at,this.errors=null,this._forEachChild(o=>{o.disable(ie(Z({},t),{onlySelf:!0}))}),this._updateValue();let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Tt(this.value,n)),this._events.next(new Ye(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(ie(Z({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let e=this._parentMarkedDirty(t.onlySelf);this.status=rt,this._forEachChild(n=>{n.enable(ie(Z({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(ie(Z({},t),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(t,e){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rt||this.status===qe)&&this._runAsyncValidator(n,t.emitEvent)}let e=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Tt(this.value,e)),this._events.next(new Ye(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(ie(Z({},t),{sourceControl:e}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?at:rt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,e){if(this.asyncValidator){this.status=qe,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:t!==!1};let n=tn(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(t){let e=t;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(t,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,e,n){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||n)&&this._events.next(new Ye(this.status,e)),this._parent&&this._parent._updateControlsErrors(t,e,n)}_initObservables(){this.valueChanges=new Ve,this.statusChanges=new Ve}_calculateStatus(){return this._allControlsDisabled()?at:this.errors?wt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qe)?qe:this._anyControlsHaveStatus(wt)?wt:rt}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,e),o&&this._events.next(new ct(this.pristine,e))}_updateTouched(t={},e){this.touched=this._anyControlsTouched(),this._events.next(new dt(this.touched,e)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,e)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){kt(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let e=this._parent&&this._parent.dirty;return!t&&!!e&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=io(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=no(this._rawAsyncValidators)}},Qe=class extends Xe{constructor(t,e,n){super(di(e),ui(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,n={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){un(this,!0,t),Object.keys(t).forEach(n=>{dn(this,!0,n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(Object.keys(t).forEach(n=>{let o=this.controls[n];o&&o.patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((n,o)=>{n.reset(t?t[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&t(n,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&t(n))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(t,e){let n=t;return this._forEachChild((o,s)=>{n=e(n,o,s)}),n}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var oi=class extends Qe{};var Be=new Se("",{providedIn:"root",factory:()=>ft}),ft="always";function Rt(i,t){return[...t.path,i]}function ht(i,t,e=ft){hi(i,t),t.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&t.valueAccessor.setDisabledState?.(i.disabled),so(i,t),ao(i,t),ro(i,t),oo(i,t)}function It(i,t,e=!0){let n=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(n),t.valueAccessor.registerOnTouched(n)),Ft(i,t),i&&(t._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Pt(i,t){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function oo(i,t){if(t.valueAccessor.setDisabledState){let e=n=>{t.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(e),t._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function hi(i,t){let e=ln(i);t.validator!==null?i.setValidators($i(e,t.validator)):typeof e=="function"&&i.setValidators([e]);let n=cn(i);t.asyncValidator!==null?i.setAsyncValidators($i(n,t.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Pt(t._rawValidators,o),Pt(t._rawAsyncValidators,o)}function Ft(i,t){let e=!1;if(i!==null){if(t.validator!==null){let o=ln(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(h=>h!==t.validator);s.length!==o.length&&(e=!0,i.setValidators(s))}}if(t.asyncValidator!==null){let o=cn(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(h=>h!==t.asyncValidator);s.length!==o.length&&(e=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Pt(t._rawValidators,n),Pt(t._rawAsyncValidators,n),e}function so(i,t){t.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&hn(i,t)})}function ro(i,t){t.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&hn(i,t),i.updateOn!=="submit"&&i.markAsTouched()})}function hn(i,t){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function ao(i,t){let e=(n,o)=>{t.valueAccessor.writeValue(n),o&&t.viewToModelUpdate(n)};i.registerOnChange(e),t._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function pn(i,t){i==null,hi(i,t)}function lo(i,t){return Ft(i,t)}function pi(i,t){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(t,e.currentValue)}function co(i){return Object.getPrototypeOf(i.constructor)===pt}function fn(i,t){i._syncPendingControls(),t.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function fi(i,t){if(!t)return null;Array.isArray(t);let e,n,o;return t.forEach(s=>{s.constructor===Ki?e=s:co(s)?n=s:o=s}),o||n||e||null}function uo(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}var ho={provide:ae,useExisting:he(()=>po)},lt=Promise.resolve(),po=(()=>{class i extends ae{callSetDisabledState;get submitted(){return Ee(this.submittedReactive)}_submitted=k(()=>this.submittedReactive());submittedReactive=T(!1);_directives=new Set;form;ngSubmit=new Ve;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new Qe({},li(e),ci(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){lt.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ht(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){lt.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){lt.then(()=>{let n=this._findContainer(e.path),o=new Qe({});pn(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){lt.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){lt.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),fn(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Nt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new At(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||i)(I(Re,10),I(Le,10),I(Be,8))};static \u0275dir=K({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&B("submit",function(h){return o.onSubmit(h)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([ho]),ne]})}return i})();function qi(i,t){let e=i.indexOf(t);e>-1&&i.splice(e,1)}function Yi(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ut=class extends Xe{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,e,n){super(di(e),ui(n,e)),this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kt(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Yi(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){qi(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){qi(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Yi(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var fo=i=>i instanceof ut,go=(()=>{class i extends ae{_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 Rt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,standalone:!1,features:[ne]})}return i})();var mo={provide:be,useExisting:he(()=>Lt)},Xi=Promise.resolve(),Lt=(()=>{class i extends be{_changeDetectorRef;callSetDisabledState;control=new ut;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Ve;constructor(e,n,o,s,h,C){super(),this._changeDetectorRef=h,this.callSetDisabledState=C,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=fi(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pi(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){ht(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(e){Xi.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&Hi(n);Xi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Rt(e,this._parent):[e]}static \u0275fac=function(n){return new(n||i)(I(ae,9),I(Re,10),I(Le,10),I(Ae,10),I(Jt,8),I(Be,8))};static \u0275dir=K({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([mo]),ne,et]})}return i})();var ma=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=K({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),vo={provide:Ae,useExisting:he(()=>_o),multi:!0},_o=(()=>{class i extends pt{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&B("input",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([vo]),ne]})}return i})(),Co={provide:Ae,useExisting:he(()=>Do),multi:!0};var yo=(()=>{class i{_accessors=[];add(e,n){this._accessors.push([e,n])}remove(e){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===e){this._accessors.splice(n,1);return}}select(e){this._accessors.forEach(n=>{this._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})}_isSameGroup(e,n){return e[0].control?e[0]._parent===n._control._parent&&e[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=He({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Do=(()=>{class i extends pt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=A(Be,{optional:!0})??ft;constructor(e,n,o,s){super(e,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(be),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(I(Me),I(Y),I(yo),I(je))};static \u0275dir=K({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&B("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([Co]),ne]})}return i})(),bo={provide:Ae,useExisting:he(()=>So),multi:!0},So=(()=>{class i extends pt{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=ze(i)))(o||i)}})();static \u0275dir=K({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&B("change",function(h){return o.onChange(h.target.value)})("input",function(h){return o.onChange(h.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([bo]),ne]})}return i})(),gi=new Se(""),Mo={provide:be,useExisting:he(()=>Eo)},Eo=(()=>{class i extends be{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new Ve;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,s,h){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=h,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=fi(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&It(n,this,!1),ht(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}pi(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&It(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(I(Re,10),I(Le,10),I(Ae,10),I(gi,8),I(Be,8))};static \u0275dir=K({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([Mo]),ne,et]})}return i})(),wo={provide:ae,useExisting:he(()=>gn)},gn=(()=>{class i extends ae{callSetDisabledState;get submitted(){return Ee(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=k(()=>this._submittedReactive());_submittedReactive=T(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Ve;constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ft(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return ht(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){It(e.control||null,e,!1),uo(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),fn(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Nt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new At(this.form))}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(It(n||null,e),fo(o)&&(ht(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);pn(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&lo(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){hi(this.form,this),this._oldForm&&Ft(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(I(Re,10),I(Le,10),I(Be,8))};static \u0275dir=K({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&B("submit",function(h){return o.onSubmit(h)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([wo]),ne,et]})}return i})(),xo={provide:ae,useExisting:he(()=>mn)},mn=(()=>{class i extends go{name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){_n(this._parent)}static \u0275fac=function(n){return new(n||i)(I(ae,13),I(Re,10),I(Le,10))};static \u0275dir=K({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([xo]),ne]})}return i})(),Oo={provide:ae,useExisting:he(()=>vn)},vn=(()=>{class i extends ae{_parent;name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){_n(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 Rt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(I(ae,13),I(Re,10),I(Le,10))};static \u0275dir=K({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([Oo]),ne]})}return i})();function _n(i){return!(i instanceof mn)&&!(i instanceof gn)&&!(i instanceof vn)}var Vo={provide:be,useExisting:he(()=>To)},To=(()=>{class i extends be{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new Ve;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,s,h){super(),this._ngModelWarningConfig=h,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=fi(this,s)}ngOnChanges(e){this._added||this._setUpControl(),pi(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Rt(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)(I(ae,13),I(Re,10),I(Le,10),I(Ae,10),I(gi,8))};static \u0275dir=K({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Vo]),ne,et]})}return i})();var Cn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=tt({type:i});static \u0275inj=Je({})}return i})(),si=class extends Xe{constructor(t,e,n){super(di(e),ui(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){Array.isArray(t)?t.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,n={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(t,e={}){let n=this._adjustIndex(t);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,n={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){un(this,!1,t),t.forEach((n,o)=>{dn(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t!=null&&(t.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((n,o)=>{n.reset(t[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function Qi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var va=(()=>{class i{useNonNullable=!1;get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,n=null){let o=this._reduceControls(e),s={};return Qi(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new Qe(o,s)}record(e,n=null){let o=this._reduceControls(e);return new oi(o,n)}control(e,n,o){let s={};return this.useNonNullable?(Qi(n)?s=n:(s.validators=n,s.asyncValidators=o),new ut(e,ie(Z({},s),{nonNullable:!0}))):new ut(e,n,o)}array(e,n,o){let s=e.map(h=>this._createControl(h));return new si(s,n,o)}_reduceControls(e){let n={};return Object.keys(e).forEach(o=>{n[o]=this._createControl(e[o])}),n}_createControl(e){if(e instanceof ut)return e;if(e instanceof Xe)return e;if(Array.isArray(e)){let n=e[0],o=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(n,o,s)}else return this.control(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=He({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _a=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Be,useValue:e.callSetDisabledState??ft}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=tt({type:i});static \u0275inj=Je({imports:[Cn]})}return i})(),Ca=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:gi,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Be,useValue:e.callSetDisabledState??ft}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=tt({type:i});static \u0275inj=Je({imports:[Cn]})}return i})();var ue=["*"],No=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],Ao=["[icon]","sh-icon","[title]","*","[content]","p"];function Io(i,t){i&1&&(b(0,"sh-icon",3),N(1,"info"),E())}function Po(i,t){i&1&&(b(0,"sh-icon",3),N(1,"info"),E())}function Fo(i,t){i&1&&(b(0,"sh-icon",3),N(1,"warning"),E())}function ko(i,t){i&1&&(b(0,"sh-icon",3),N(1,"warning-octagon"),E())}function Ro(i,t){i&1&&(b(0,"sh-icon",3),N(1,"check-circle"),E())}function Lo(i,t){i&1&&(b(0,"sh-icon",3),N(1,"question"),E())}function Bo(i,t){if(i&1){let e=oe();b(0,"sh-icon",7),B("click",function(){H(e);let o=M();return j(o.removeAlert())}),N(1,"plus"),E()}}var Ho=["dialogRef"];function jo(i,t){if(i&1){let e=oe();W(0,"div",5),ke("click",function(){H(e);let o=M(2);return j(o.isOpen.set(!1))}),X()}}function Uo(i,t){if(i&1&&(W(0,"dialog",2,0)(2,"div",3),y(3),X(),R(4,jo,1,0,"div",4),X()),i&2){let e=M(),n=ee(0);ge(n.class),le("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),L(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var zo=["shButton",""];var $o=["daysRef"];function Wo(i,t){if(i&1&&N(0),i&2){let e=M();me(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function Go(i,t){if(i&1&&(b(0,"div"),N(1),E()),i&2){let e=t.$implicit;S(),Ge(e)}}function qo(i,t){if(i&1){let e=oe();b(0,"div",2,1),B("click",function(){let o=H(e).$implicit,s=Yt(1),h=M(2);return j(h.setDate(o,s))}),N(2),E()}if(i&2){let e=t.$implicit,n=M().$implicit,o=M();ge(o.isDateSelected(e)),$("out-of-scope",!o.isCurrentMonth(e,n)),S(2),me(" ",e.getDate()," ")}}function Yo(i,t){if(i&1&&(b(0,"article",7),ye(1,"div",9),E()),i&2){let e=M(2);S(),Xt(e.selectedDateStylePosition())}}function Xo(i,t){if(i&1&&(b(0,"div",5)(1,"nav",6),$e(2,Go,2,1,"div",null,it),E(),b(4,"div",7,0),$e(6,qo,3,5,"div",8,it),R(8,Yo,2,2,"article",7),E()()),i&2){let e=t.$implicit,n=M();S(2),We(n.weekdays()),S(4),We(n.getMonthDates(e)),S(2),L(n.asRange()?-1:8)}}var Qo=["triggerRef"],Zo=["popoverRef"],Ko=["popoverContentRef"],Jo=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],es=["[trigger]","button","[shButton]","*"];function ts(i,t){if(i&1){let e=oe();W(0,"div",6,1)(2,"div",7),ke("click",function(o){H(e);let s=M();return j(s.eventClose(o))}),X(),W(3,"div",8,2),y(5,3),X()()}if(i&2){let e=M();Te("id",e.id()+"hello"),S(3),Xt(e.menuStyle()),le("position-anchor",e.id())}}var is=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","popoverContent",""]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","error",""]],[["","hint",""]]],ns=["label","[prefix]","[textPrefix]","input","[popoverContent]","textarea","[textSuffix]","[suffix]","[error]","[hint]"],yn=()=>({closeOnButton:!1,closeOnEsc:!0}),os=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],ss=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];function rs(i,t){if(i&1&&(b(0,"div",3),N(1),E()),i&2){let e=M();S(),me(" ",e._maskedDate()," ")}}function as(i,t){if(i&1){let e=oe();b(0,"sh-datepicker",7),B("dateChange",function(o){H(e);let s=M();return j(s.onDateChange(o))}),E()}if(i&2){let e=M();ge(e.currentClass()),pe("date",e.internalDate())}}function ls(i,t){}var cs=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],ds=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],us=["input"],hs=[[["label"]]],ps=["label"];function fs(i,t){if(i&1&&(b(0,"div",3),N(1),E()),i&2){let e=M();S(),Ge(e.files()[0].name)}}function gs(i,t){if(i&1&&(b(0,"div",3),N(1),E()),i&2){let e=M();S(),me("",e.files().length," files selected")}}function ms(i,t){if(i&1&&(b(0,"div",4),N(1),E()),i&2){let e=M();S(),Ge(e.filesOver()?e.overlayText():e.placeholder())}}var vs=["inputRef"],_s=["optionsRef"],Cs=["*",[["","menu",""]]],ys=["*","[menu]"];function Ds(i,t){i&1&&(b(0,"sh-icon",5),N(1,"caret-down"),E())}var bs=[[["label"]],[["input","type","range"]]],Ss=["label","input[type=range]"],Ms=["optionsWrap"],Es=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],ws=["label","[prefix]","[boxPrefix]","input","textarea"],xs=()=>({closeOnButton:!1,closeOnEsc:!1}),Dn=(i,t)=>({$implicit:i,last:t}),Si=i=>({$implicit:i});function Os(i,t){if(i&1&&N(0),i&2){let e=M();me(" ",e.inputValue()," ")}}function Vs(i,t){i&1&&Fe(0)}function Ts(i,t){if(i&1&&Oe(0,Vs,1,0,"ng-container",13),i&2){let e=M(3),n=e.$implicit,o=e.$index,s=e.$count;M(2);let h=ee(3);pe("ngTemplateOutlet",h)("ngTemplateOutletContext",Qt(2,Dn,n,o===s-1))}}function Ns(i,t){if(i&1&&N(0),i&2){let e=M(3).$implicit,n=M(2);me(" ",n.getLabel(e)," ")}}function As(i,t){if(i&1){let e=oe();b(0,"sh-chip",12),B("click",function(o){H(e);let s=M(2).$index,h=M(2);return j(h.removeSelectedOptionByIndex(o,s))}),R(1,Ts,1,5,"ng-container")(2,Ns,1,1),b(3,"sh-icon"),N(4,"x-bold"),E()()}if(i&2){let e=M(4),n=ee(3);ge(e.selectClasses()),S(),L(n?1:2)}}function Is(i,t){i&1&&Fe(0)}function Ps(i,t){if(i&1&&Oe(0,Is,1,0,"ng-container",13),i&2){let e=M(4),n=e.$implicit,o=e.$index,s=e.$count;M(2);let h=ee(3);pe("ngTemplateOutlet",h)("ngTemplateOutletContext",Qt(2,Dn,n,o===s-1))}}function Fs(i,t){if(i&1&&N(0),i&2){let e=M(4),n=e.$implicit,o=e.$index,s=e.$count,h=M(2);me(" ",o===s-1?h.getLabel(n):h.getLabel(n)+","," ")}}function ks(i,t){if(i&1&&R(0,Ps,1,5,"ng-container")(1,Fs,1,1),i&2){M(5);let e=ee(3);L(e?0:1)}}function Rs(i,t){if(i&1&&R(0,ks,2,1),i&2){M(4);let e=ee(6);L(e?-1:0)}}function Ls(i,t){if(i&1&&R(0,As,5,3,"sh-chip",11)(1,Rs,1,1),i&2){M(3);let e=ee(5);L(e?0:1)}}function Bs(i,t){if(i&1&&R(0,Ls,2,1),i&2){let e=t.$implicit;L(e?0:-1)}}function Hs(i,t){if(i&1&&$e(0,Bs,1,1,null,null,it),i&2){M();let e=ee(2);We(e)}}function js(i,t){i&1&&Fe(0)}function Us(i,t){if(i&1&&Oe(0,js,1,0,"ng-container",14),i&2){M(2);let e=ee(0);pe("ngTemplateOutlet",e)}}function zs(i,t){if(i&1&&N(0),i&2){let e=M(2);me(" ",e.placeholderText()??""," ")}}function $s(i,t){if(i&1&&R(0,Us,1,1,"ng-container")(1,zs,1,1),i&2){M();let e=ee(0);L(e?0:1)}}function Ws(i,t){i&1&&(b(0,"sh-icon",6),N(1,"caret-down"),E())}function Gs(i,t){i&1&&ye(0,"sh-spinner",7)}function qs(i,t){i&1&&(b(0,"sh-icon",6),N(1,"list-magnifying-glass"),E())}function Ys(i,t){i&1&&(b(0,"sh-icon",6),N(1,"magnifying-glass"),E())}function Xs(i,t){if(i&1){let e=oe();b(0,"sh-icon",15),B("click",function(o){H(e);let s=M();return j(s.clear(o))}),N(1,"x-bold"),E()}}function Qs(i,t){i&1&&(b(0,"sh-icon",6),N(1,"caret-down"),E())}function Zs(i,t){i&1&&(b(0,"sh-icon",6),N(1,"caret-up"),E())}function Ks(i,t){if(i&1&&(b(0,"p",9),N(1),E()),i&2){let e=M(3);S(),Ge(e.freeTextTitle())}}function Js(i,t){i&1&&Fe(0)}function er(i,t){if(i&1&&Oe(0,Js,1,0,"ng-container",13),i&2){M(2);let e=ee(0);M();let n=ee(1);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",Et(2,Si,e))}}function tr(i,t){i&1&&Fe(0)}function ir(i,t){if(i&1&&Oe(0,tr,1,0,"ng-container",13),i&2){M(2);let e=ee(0);M();let n=ee(4);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",Et(2,Si,e))}}function nr(i,t){if(i&1&&N(0),i&2){M(2);let e=ee(1);me(" ",e," ")}}function or(i,t){i&1&&ye(0,"sh-divider")}function sr(i,t){if(i&1){let e=oe();R(0,Ks,2,1,"p",9),b(1,"li",16),B("click",function(){H(e);let o=M(2);return j(o.toggleOptionByIndex(-1))}),R(2,er,1,4,"ng-container")(3,ir,1,4,"ng-container")(4,nr,1,1),E(),R(5,or,1,0,"sh-divider")}if(i&2){M();let e=ee(0),n=M(),o=ee(1),s=ee(4);L(n.freeTextTitle()?0:-1),S(),$("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),pe("id",n.getLabelAsSlug(e)),Te("aria-selected",n.isSelected(-1)),S(),L(o?2:s?3:4),S(3),L(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function rr(i,t){if(i&1&&(St(0)(1),R(2,sr,6,9)),i&2){let e=M(),n=Ce(e.computedFreeTextOption());S();let o=Ce(e.getValue(n));S(),L(o.length>0?2:-1)}}function ar(i,t){if(i&1&&(b(0,"p",9),N(1),E()),i&2){let e=M();S(),Ge(e.optionTitle())}}function lr(i,t){if(i&1&&ye(0,"sh-checkbox"),i&2){let e=M().$index,n=M();ge(n.selectClasses()),$("active",n.isSelected(e))}}function cr(i,t){i&1&&Fe(0)}function dr(i,t){if(i&1&&Oe(0,cr,1,0,"ng-container",13),i&2){let e=M().$implicit;M();let n=ee(4);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",Et(2,Si,e))}}function ur(i,t){if(i&1&&N(0),i&2){let e=M().$implicit,n=M();me(" ",n.getLabel(e)," ")}}function hr(i,t){if(i&1){let e=oe();b(0,"li",16),B("click",function(){let o=H(e).$index,s=M();return j(s.toggleOptionByIndex(o))}),R(1,lr,1,4,"sh-checkbox",17),R(2,dr,1,4,"ng-container")(3,ur,1,1),E()}if(i&2){let e=t.$implicit,n=t.$index,o=M(),s=ee(4);$("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),pe("id",o.getLabelAsSlug(e)),Te("aria-selected",o.isSelected(n)),S(),L(o.selectMultiple()?1:-1),S(),L(s?2:3)}}var pr=["dragImageElement"],fr=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],gr=["[sidenav]","[sidenav-closed-topbar]","*"];function mr(i,t){i&1&&Pe(0,"div",1,0)}function vr(i,t){if(i&1){let e=oe();W(0,"div",7),ke("drop",function(o){H(e);let s=M();return j(s.drop(o))})("dragenter",function(){H(e);let o=M();return j(o.dragEnter())})("dragleave",function(){H(e);let o=M();return j(o.dragLeave())}),X()}}function _r(i,t){if(i&1){let e=oe();W(0,"div",8),ke("dragstart",function(o){H(e);let s=M();return j(s.dragStart(o))})("dragend",function(o){H(e);let s=M();return j(s.dragEnd(o))})("drag",function(o){H(e);let s=M();return j(s.drag(o))})("touchstart",function(o){H(e);let s=M();return j(s.touchStart(o))})("touchmove",function(o){H(e);let s=M();return j(s.touchMove(o))})("touchend",function(o){H(e);let s=M();return j(s.touchEnd(o))})("touchcancel",function(o){H(e);let s=M();return j(s.touchCancel(o))}),X()}}var Cr=["thead"],yr=["tbody"],Dr=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],br=["th","[thead]","*","[table-no-rows]"];function Sr(i,t){i&1&&ye(0,"sh-progress-bar",2)}function Mr(i,t){i&1&&(b(0,"div",3),y(1,3),E())}var Er=[[["","title",""]],"*"],wr=["[title]","*"];function xr(i,t){i&1&&N(0,"Title")}function Or(i,t){i&1&&(b(0,"sh-icon",1),N(1,"caret-down"),E())}var Vr=["bold","thin","light","fill","duotone"],Ie=(()=>{var t,e;let n=class n{constructor(){x(this,t,A(Y));x(this,e,A(Me))}ngAfterContentInit(){let s=m(this,t).nativeElement.textContent?.trim();if(!s)return;let h=s.split("-").at(-1);h&&Vr.includes(h)&&m(this,e).addClass(m(this,t).nativeElement,h)}};t=new WeakMap,e=new WeakMap,n.\u0275fac=function(h){return new(h||n)},n.\u0275cmp=U({type:n,selectors:[["sh-icon"]],ngContentSelectors:ue,decls:1,vars:0,template:function(h,C){h&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function Ke(i=null){let t=i??A(Y).nativeElement;if(!t)return T("");let e=T(t.className);if(typeof MutationObserver>"u")return e.asReadonly();let n=A(xe),o=new MutationObserver(s=>{for(let h of s)if(h.type==="attributes"&&h.attributeName==="class"){let C=h.target;e.set(C.className)}});return o.observe(t,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),e.asReadonly()}var Ut=new Se("Ship UI Config"),Tr=["simple","outlined","flat","raised"],$a=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(Ut,{optional:!0})),this.variant=T(m(this,t)?.alertVariant??""),this._el=A(Y),this.alertService=V(null),this.id=V(null),this.currentClasses=Ke(),this.activeClass=k(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?Tr.find(C=>this.currentClasses().includes(C))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,h){s&2&&ge(h.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Ao,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,h){if(s&1&&(z(No),b(0,"div",1)(1,"div",2,0),y(3),y(4,1),E(),b(5,"div",2),R(6,Io,2,0,"sh-icon",3)(7,Po,2,0,"sh-icon",3)(8,Fo,2,0,"sh-icon",3)(9,ko,2,0,"sh-icon",3)(10,Ro,2,0,"sh-icon",3)(11,Lo,2,0,"sh-icon",3),E(),b(12,"div",4),y(13,2),y(14,3),E(),R(15,Bo,2,0,"sh-icon",5),b(16,"div",6),y(17,4),y(18,5),E()()),s&2){let C=Yt(2);S(),le("display",C.children.length?"block":"none");let f=h.currentClasses();S(5),L(f.includes("primary")?6:f.includes("accent")?7:f.includes("warn")?8:f.includes("error")?9:f.includes("success")?10:11),S(9),L(h.id()?15:-1)}},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=e;return i})();function zt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var Wa=(()=>{let t=class t{constructor(){this.alertHistory=T([]),this.alertHistoryIsOpen=T(!1),this.alertHistoryIsHidden=T(!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=zt();this.alertHistory.update(s=>[ie(Z({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(h=>ie(Z({},h),{animateIn:h.id===o?!1:h.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>ie(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=>ie(Z({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=He({token:t,factory:t.\u0275fac,providedIn:"root"});let i=t;return i})(),Nr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Ar=(()=>{var t,e;let n=class n{constructor(){x(this,t);x(this,e);O(this,t,A(Ue)),O(this,e,A(Ut,{optional:!0})),this.dialogRef=ve("dialogRef"),this.isOpen=te(!1),this.options=V(),this.closed=De(),this.defaultOptionMerge=k(()=>Z(ie(Z({},Nr),{class:m(this,e)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=Q(()=>{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}),m(this,t).addEventListener("keydown",h=>{h.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&h.preventDefault(),h.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};t=new WeakMap,e=new WeakMap,n.\u0275fac=function(h){return new(h||n)},n.\u0275cmp=U({type:n,selectors:[["sh-dialog"]],viewQuery:function(h,C){h&1&&fe(C.dialogRef,Ho,5),h&2&&_e()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ue,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(h,C){h&1&&(z(),St(0),R(1,Uo,5,11,"dialog",1)),h&2&&(Ce(C.defaultOptionMerge()),S(),L(C.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Ga=(()=>{var t,e,n,o,bn,gt;let C=class C{constructor(){x(this,o);x(this,t);x(this,e);x(this,n);O(this,t,A(Ue)),O(this,e,m(this,t).querySelector("body")),O(this,n,A(Gt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(l,r){let a=m(this,n).injector,d=w(this,o,bn).call(this),p=!1,G=r||{},{data:_,closed:c}=G,u=wi(G,["data","closed"]);this.compRef&&w(this,o,gt).call(this,!0),this.insertedCompRef=ei(l,{environmentInjector:a}),this.compRef=ei(Ar,{hostElement:d,environmentInjector:a,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let g=this.insertedCompRef.instance,v=g.data,D=g.closed;if(_){if($t(v))this.insertedCompRef.setInput("data",_);else if(!$t(v))throw new Error("data is not an input signal on the passed component")}D instanceof Zt&&(this.closedFieldSub=D.subscribe(F=>{w(this,o,gt).call(this),!p&&(p=!0,c?.(F),(this.compRef?.instance.closed).emit(F))})),m(this,n).attachView(this.insertedCompRef.hostView),m(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",u),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>J());let P=this;function J(F=void 0){var q;w(q=P,o,gt).call(q),!p&&(p=!0,D&&D instanceof Zt&&D.emit(F),c?.(F))}return{component:this.insertedCompRef.instance,close:J,closed:this.compRef.instance.closed}}ngOnDestroy(){w(this,o,gt).call(this,!0)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakSet,bn=function(){let l=m(this,t).createElement("sh-dialog-ref");return l.id="sh-dialog-ref",m(this,t).getElementById("sh-dialog-ref")||m(this,e)?.append(l),m(this,t).getElementById("sh-dialog-ref")},gt=function(l=!1){let r=this;l||queueMicrotask(()=>a());function a(){r.insertedCompRef&&(m(r,n).detachView(r.insertedCompRef.hostView),r.closedFieldSub?.unsubscribe(),r.insertedCompRef.destroy()),r.compRef&&(m(r,n).detachView(r.compRef.hostView),r.compClosedSub?.unsubscribe(),r.compRef.destroy())}},C.\u0275fac=function(r){return new(r||C)},C.\u0275prov=He({token:C,factory:C.\u0275fac,providedIn:"root"});let i=C;return i})();var qa=(()=>{let t=class t{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&le("--btng-id",s.id)},ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),Ya=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:zo,ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),Xa=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(Ut,{optional:!0})),this.class=T(m(this,t)?.cardType??"type-a")}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,h){s&2&&ge(h.class())},ngContentSelectors:ue,decls:1,vars:0,template:function(s,h){s&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ir=(()=>{let t=class t{constructor(){this.currentClassList=Ke()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-checkbox"]],ngContentSelectors:ue,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&&(z(),b(0,"div",0)(1,"sh-icon",1),N(2,"check-bold"),E(),b(3,"sh-icon",2),N(4,"minus-bold"),E()(),b(5,"div",3),y(6),E()),o&2&&ge(s.currentClassList())},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=t;return i})(),Pr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ue,decls:2,vars:0,template:function(o,s){o&1&&(z(),W(0,"div"),y(1),X())},encapsulation:2,changeDetection:0});let i=t;return i})();var Fr=(()=>{var t,e,n,mi,mt,Sn,vi;let f=class f{constructor(){x(this,n);x(this,t);x(this,e);O(this,t,w(this,n,vi).call(this,new Date)),this.date=te(null),this.endDate=te(null),this.asRange=V(!1),this.monthsToShow=V(1),this.disabled=V(!1),this.startOfWeek=V(1),this.weekdayLabels=V(["Su","Mo","Tu","We","Th","Fr","Sa"]),this.daysRef=ve("daysRef"),this.currentDate=T(this.date()??m(this,t)),this.monthOffsets=k(()=>Array.from({length:this.monthsToShow()},(r,a)=>a)),this.selectedDateStylePosition=T(null),this.weekdays=k(()=>{let r=this.startOfWeek(),a=this.weekdayLabels();return a.slice(r).concat(a.slice(0,r))}),this.currentClasses=Ke(),this.someEffect=Q(()=>{let r=this.currentClasses();w(this,n,mt).call(this)}),O(this,e,Q(()=>{this.monthsToShow()>1||w(this,n,mi).call(this)}))}getLastVisibleMonth(){let r=this.monthsToShow()-1;return this.getOffsetDate(r)}getOffsetDate(r){let a=new Date(this.currentDate());return a.setMonth(a.getMonth()+r),a}getMonthDates(r){let a=this.getOffsetDate(r);return w(this,n,Sn).call(this,a,this.startOfWeek())}ngOnInit(){this.monthsToShow()!==1&&w(this,n,mi).call(this)}nextMonth(){this.currentDate.update(r=>{let a=new Date(r);return a.setMonth(r.getMonth()+1),a}),w(this,n,mt).call(this)}previousMonth(){this.currentDate.update(r=>{let a=new Date(r);return a.setMonth(r.getMonth()-1),a}),w(this,n,mt).call(this)}setDate(r,a){let d=(p,_)=>{let c=_?.getUTCHours()??0,u=_?.getUTCMinutes()??0,g=_?.getUTCSeconds()??0,v=_?.getUTCMilliseconds()??0;return w(this,n,vi).call(this,new Date(Date.UTC(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate(),c,u,g,v)))};if(!this.asRange())this.date.set(d(r,this.date())),this.endDate.set(null);else{let p=this.date(),_=this.endDate(),c=d(r,null);p?_?(this.date.set(c),this.endDate.set(null)):c<p?(this.date.set(c),this.endDate.set(null)):this.endDate.set(c):this.date.set(c)}this.asRange()||this.setSelectedDateStylePosition(a)}isDateSelected(r){let a=this.date(),d=this.endDate();if(a===null)return null;let p=D=>new Date(Date.UTC(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate(),0,0,0,0)),_=D=>new Date(Date.UTC(D.getUTCFullYear(),D.getUTCMonth(),D.getUTCDate(),23,59,59,999)),c=p(r),u=p(a),g=d?_(d):null,v=[];if(this.asRange())if(g===null)c.getTime()===u.getTime()&&v.push("sel first last");else{if(c.getTime()===u.getTime()&&v.push("first"),c.getTime()===p(g).getTime()&&v.push("last"),c>=u&&c<=g){v.push("sel");let F=c.getUTCDay(),q=this.startOfWeek();F===q&&v.push("week-start");let se=(q+6)%7;F===se&&v.push("week-end")}let D=new Date(c);D.setUTCDate(c.getUTCDate()+1),new Date(c).setUTCDate(c.getUTCDate()-1);let J=c.getUTCDate()===1,G=D.getUTCMonth()!==c.getUTCMonth();J&&v.push("month-start"),G&&v.push("month-end")}else c.getTime()===u.getTime()&&v.push("sel");return v.join(" ")||null}setSelectedDateStylePosition(r){this.selectedDateStylePosition.set({transform:`translate(${r.offsetLeft}px, ${r.offsetTop}px)`,opacity:"1"})}getMonthName(r){return r.toLocaleString("default",{month:"long"})}getFullYear(r){return r.getFullYear()}isCurrentMonth(r,a){let d=this.getOffsetDate(a);return r.getMonth()===d.getMonth()}};t=new WeakMap,e=new WeakMap,n=new WeakSet,mi=function(){let r=this.date();r&&this.currentDate.set(r),w(this,n,mt).call(this)},mt=function(){setTimeout(()=>{let r=this.daysRef()?.nativeElement.querySelector(".sel");if(!r)return this.selectedDateStylePosition.update(a=>a?ie(Z({},a),{opacity:"0"}):null);this.setSelectedDateStylePosition(r)})},Sn=function(r,a){let d=r.getUTCFullYear(),p=r.getUTCMonth(),_=new Date(Date.UTC(d,p)).getUTCDay(),c=32-new Date(Date.UTC(d,p,32)).getUTCDate(),u=[],g=_-a;g<0&&(g+=7);let v=new Date(Date.UTC(d,p,0)).getUTCDate();for(let P=g-1;P>=0;P--){let J=new Date(Date.UTC(d,p-1,v-P));u.push(J)}for(let P=1;P<=c;P++)u.push(new Date(Date.UTC(d,p,P)));let D=1;for(;u.length%7!==0;)u.push(new Date(Date.UTC(d,p+1,D++)));return u},vi=function(r){let d=r.getTimezoneOffset()*60*1e3;return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())+d)},f.\u0275fac=function(a){return new(a||f)},f.\u0275cmp=U({type:f,selectors:[["sh-datepicker"]],viewQuery:function(a,d){a&1&&fe(d.daysRef,$o,5),a&2&&_e()},hostVars:6,hostBindings:function(a,d){a&2&&(ge("columns-"+d.monthsToShow()),$("as-range",d.asRange())("disabled",d.disabled()))},inputs:{date:[1,"date"],endDate:[1,"endDate"],asRange:[1,"asRange"],monthsToShow:[1,"monthsToShow"],disabled:[1,"disabled"],startOfWeek:[1,"startOfWeek"],weekdayLabels:[1,"weekdayLabels"]},outputs:{date:"dateChange",endDate:"endDateChange"},decls:14,vars:3,consts:[["daysRef",""],["elementRef",""],[3,"click"],[1,"title"],[1,"months-container"],[1,"month"],[1,"weekdays"],[1,"days"],[3,"out-of-scope","class"],[1,"sel-el"]],template:function(a,d){a&1&&(b(0,"header")(1,"button",2),B("click",function(){return d.previousMonth()}),b(2,"sh-icon"),N(3,"caret-left"),E()(),b(4,"div",3),N(5),R(6,Wo,1,1),N(7),E(),b(8,"button",2),B("click",function(){return d.nextMonth()}),b(9,"sh-icon"),N(10,"caret-right"),E()()(),b(11,"section",4),$e(12,Xo,9,1,"div",5,Li),E()),a&2&&(S(5),me(" ",d.getMonthName(d.currentDate())," "),S(),L(d.monthsToShow()>1?6:-1),S(),me(" ",d.getFullYear(d.currentDate())," "),S(5),We(d.monthOffsets()))},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=f;return i})(),Bt=4,kr=["scroll","auto"],Rr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},Mi=(()=>{var t,e,Mn,En,wn,xn,On,Ht;let l=class l{constructor(){x(this,e);x(this,t);O(this,t,A(Ue)),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=te(!1),this.options=V(),this.closed=De(),this.defaultOptionMerge=k(()=>Z(Z({},Rr),this.options())),this.triggerRef=ve.required("triggerRef"),this.popoverRef=ve("popoverRef"),this.popoverContentRef=ve("popoverContentRef"),this.id=T("--"+zt()),this.menuStyle=T(null),this.openAbort=null,this.openEffect=Q(()=>{let a=this.isOpen();queueMicrotask(()=>{let d=this.popoverRef()?.nativeElement;if(!d){this.openAbort?.abort(),this.openAbort=null;return}a?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,m(this,t).addEventListener("keydown",p=>{p.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&p.preventDefault(),p.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),d.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{w(this,e,Mn).call(this,d).addEventListener("scroll",()=>w(this,e,Ht).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>w(this,e,Ht).call(this),{signal:this.openAbort?.signal}),w(this,e,Ht).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(a){this.disableOpenByClick()||(a.preventDefault(),a.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(a){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};t=new WeakMap,e=new WeakSet,Mn=function(a){let d=a.parentElement;for(;d;){if(kr.indexOf(window?.getComputedStyle(d).overflowY)>-1&&d.scrollHeight>d.clientHeight)return d;d=d.parentElement}return m(this,t).documentElement},En=function(a,d){let p=a.left,_=a.bottom+Bt;return{left:p,top:_}},wn=function(a,d){let p=a.right+Bt,_=a.top;return{left:p,top:_}},xn=function(a,d){let p=a.right+Bt,_=a.bottom;return{left:p,top:_}},On=function(a,d){let p=a.left,_=a.bottom-a.height-d.height-Bt;return{left:p,top:_}},Ht=function(){let a=this.triggerRef()?.nativeElement.getBoundingClientRect(),d=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),p=[w(this,e,wn),w(this,e,xn)],_=[w(this,e,En),w(this,e,On)],c=this.asMultiLayer()?p:_;for(let g=0;g<c.length;g++){let v=c[g](a,d),D=v.left+(d?.width||0)>window.innerWidth,P=v.top+(d?.height||0)>window.innerHeight;if(!D&&!P){this.menuStyle.set({left:v.left+"px",top:v.top+"px"});return}}let u=c[0](a,d);this.menuStyle.set({left:u.left+"px",top:u.top+"px"})},l.\u0275fac=function(d){return new(d||l)},l.\u0275cmp=U({type:l,selectors:[["sh-popover"]],viewQuery:function(d,p){d&1&&(fe(p.triggerRef,Qo,5),fe(p.popoverRef,Zo,5),fe(p.popoverContentRef,Ko,5)),d&2&&_e(3)},hostVars:2,hostBindings:function(d,p){d&2&&$("multi-layer",p.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:es,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(d,p){if(d&1){let _=oe();z(Jo),W(0,"div",3,0),ke("click",function(u){return H(_),j(p.toggleIsOpen(u))}),W(2,"div",4),y(3),y(4,1),y(5,2),X(),Pe(6,"div",5),X(),R(7,ts,6,5,"div",6)}d&2&&(Te("popovertarget",p.id()+"hello"),S(6),le("anchor-name",p.id()),S(),L(p.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=l;return i})(),Lr=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(Y)),this.isOpen=te(!1),this.closed=De()}onClick(){m(this,t).nativeElement.querySelector("input")&&m(this,t).nativeElement.querySelector("input").focus(),m(this,t).nativeElement.querySelector("textarea")&&m(this,t).nativeElement.querySelector("textarea").focus()}close(){this.closed.emit()}ngOnInit(){let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,t).nativeElement.querySelector("textarea");if(!o&&s!==null){let l=function(){f.style.height="auto",f.style.height=f.scrollHeight+"px"},r=function(){setTimeout(l,0)};var h=l,C=r;let f=m(this,t).nativeElement.querySelector("textarea");f&&(f.addEventListener("change",l),f.addEventListener("cut",r),f.addEventListener("paste",r),f.addEventListener("drop",r),f.addEventListener("keydown",r),f.focus(),f.select(),l())}}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-form-field-popover"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},inputs:{isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ns,decls:18,vars:3,consts:[[1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[3,"isOpenChange","closed","isOpen","options"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,h){s&1&&(z(is),y(0),b(1,"div",0)(2,"div",1),y(3,1),y(4,2),E(),ye(5,"div",2),b(6,"sh-popover",3),st("isOpenChange",function(f){return ot(h.isOpen,f)||(h.isOpen=f),f}),B("closed",function(){return h.close()}),y(7,3,["trigger",""]),y(8,4),E(),y(9,5),y(10,6),ye(11,"div",4),y(12,7),E(),b(13,"div",5)(14,"div",6),y(15,8),E(),b(16,"div",7),y(17,9),E()()),s&2&&(S(6),nt("isOpen",h.isOpen),pe("options",Mt(2,yn)))},dependencies:[Mi],encapsulation:2,changeDetection:0});let i=e;return i})();function Br(i){let t=A(Y).nativeElement,e=A(xe),n=T([]),o=()=>{n.set(Array.from(t.querySelectorAll(i)))};if(o(),typeof MutationObserver>"u")return n.asReadonly();let s=new MutationObserver(h=>{h.some(f=>f.type==="childList")&&o()});return s.observe(t,{childList:!0}),e.onDestroy(()=>s.disconnect()),n.asReadonly()}var Qa=(()=>{var t,e,n,o,s,Vn,_i;let f=class f{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);this.ngModels=Kt(Lt),O(this,t,A(ii)),O(this,e,T(null)),this.masking=V("mediumDate"),this.closed=De(),this._maskedDate=k(()=>{let r=this.internalDate(),a=this.masking();return a?r?m(this,t).transform(r,a):null:r}),this.internalDate=T(null),this.isOpen=te(!1),this.currentClass=Ke(),O(this,n,Br("#input-wrap input")),O(this,o,Q(()=>{let r=m(this,n).call(this);if(!r.length)return;let a=r[0];a&&(w(this,s,Vn).call(this,a),a.addEventListener("inputValueChanged",d=>{this.internalDate.set(d.detail.value?w(this,s,_i).call(this,new Date(d.detail.value)):null)}),a.addEventListener("focus",()=>{this.isOpen.set(!0),a.blur()}),m(this,e).set(a),a.autocomplete="off",typeof a.value=="string"&&this.internalDate.set(a.value?w(this,s,_i).call(this,new Date(a.value)):null))}))}onDateChange(r){this.internalDate.set(r);let a=m(this,e).call(this);a&&(a.value=r?r.toString():"",a.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Vn=function(r){return Object.defineProperty(r,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(a){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,a);let p=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:a}});return this.dispatchEvent(p),a}}),r},_i=function(r){let d=r.getTimezoneOffset()*60*1e3;return new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds())+d)},f.\u0275fac=function(a){return new(a||f)},f.\u0275cmp=U({type:f,selectors:[["sh-datepicker-input"]],contentQueries:function(a,d,p){a&1&&qt(p,d.ngModels,Lt,5),a&2&&_e()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[re([ii])],ngContentSelectors:ss,decls:15,vars:3,consts:[["defaultIndicator",""],[3,"closed","isOpenChange","isOpen"],["id","input-wrap","ngProjectAs","input",5,["input"],1,"input"],[1,"masked-value"],["suffix","",1,"default-indicator"],["popoverContent",""],[3,"date","class"],[3,"dateChange","date"]],template:function(a,d){if(a&1){let p=oe();z(os),b(0,"sh-form-field-popover",1),B("closed",function(){return H(p),j(d.close())}),st("isOpenChange",function(c){return H(p),ot(d.isOpen,c)||(d.isOpen=c),j(c)}),y(1,0,["ngProjectAs","label",5,["label"]]),y(2,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),y(3,2,["ngProjectAs","[textPrefix]",5,["","textPrefix",""]]),b(4,"div",2),R(5,rs,2,1,"div",3),y(6,3),E(),y(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),y(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),b(9,"sh-icon",4),N(10,"calendar"),E(),b(11,"div",5),R(12,as,1,3,"sh-datepicker",6),E()(),Oe(13,ls,0,0,"ng-template",null,0,Bi)}a&2&&(nt("isOpen",d.isOpen),S(5),L(d.masking()?5:-1),S(7),L(d.isOpen()?12:-1))},dependencies:[Fr,Lr,Ie],encapsulation:2,changeDetection:0});let i=f;return i})();var Hr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-divider"]],ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})();var Ei=(()=>{var t;let e=class e{constructor(){x(this,t,A(Y));Wt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,t).nativeElement.querySelector("textarea");if(!o&&s!==null){let f=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},l=function(){setTimeout(f,0)};var h=f,C=l;s.addEventListener("change",f),s.addEventListener("cut",l),s.addEventListener("paste",l),s.addEventListener("drop",l),s.addEventListener("keydown",l),s.focus(),s.select(),f()}})}onClick(){m(this,t).nativeElement.querySelector("input")&&m(this,t).nativeElement.querySelector("input").focus(),m(this,t).nativeElement.querySelector("textarea")&&m(this,t).nativeElement.querySelector("textarea").focus()}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275cmp=U({type:e,selectors:[["sh-form-field"]],hostBindings:function(s,h){s&1&&B("click",function(){return h.onClick()})},ngContentSelectors:ds,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,h){s&1&&(z(cs),y(0),W(1,"div",0)(2,"div",1),y(3,1),y(4,2),y(5,3),X(),y(6,4),y(7,5),W(8,"div",2),y(9,6),y(10,7),y(11,8),X()(),W(12,"div",3)(13,"div",4),y(14,9),X(),W(15,"div",5),y(16,10),X()())},encapsulation:2,changeDetection:0});let i=e;return i})(),Za=(()=>{let t=class t{constructor(){this._el=A(Y),this.inputRef=ve.required("input"),this.filesOver=T(!1),this.multiple=V(),this.accept=V(null),this.placeholder=te("Click or drag files here"),this.overlayText=V("Drop files here"),this.files=te([]),this.fileUploadClasses=k(()=>this._el.nativeElement.classList.toString()),this.inputEffect=Q(()=>{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)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&fe(s.inputRef,us,5),o&2&&_e()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:ps,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&&(z(hs),b(0,"sh-form-field"),y(1,0,["ngProjectAs","label",5,["label"]]),b(2,"div",2,0),R(4,fs,2,1,"div",3)(5,gs,2,1,"div",3)(6,ms,2,1,"div",4),ye(7,"input",5,1)(9,"div",6),E(),b(10,"sh-icon",7),N(11,"upload-simple"),E()()),o&2&&(ge(s.fileUploadClasses()),S(4),L(s.files().length===1?4:s.files().length>1?5:6),S(3),Te("multiple",s.multiple())("accept",s.accept()),S(2),$("files-over",s.filesOver()))},dependencies:[Ei,Ie],encapsulation:2,changeDetection:0});let i=t;return i})(),Ka=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-list"]],ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})();function jr(i,t){let e=T(null),n=t.map(f=>f.toUpperCase()),o=A(je),s=o.get(xe);if(Ui(o.get(Pi))||typeof MutationObserver>"u")return e.asReadonly();if(n.find(f=>i.nativeElement.querySelector(f)))return e.set(new Y(i.nativeElement.querySelector(t[0]))),e.asReadonly();let C=new MutationObserver(f=>{for(let l of f)if(l.addedNodes){for(let r of Array.from(l.addedNodes))if(r.nodeType===Node.ELEMENT_NODE&&n.includes(r.nodeName)){e.set(new Y(r)),C.disconnect();return}}});return C.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>C.disconnect()),e.asReadonly()}function Tn(i,t){let e=A(je),n=e.get(xe),o=T([]),s=null,h=null,C=(l,r)=>{h&&h.disconnect();let a=Array.from(l.nativeElement.querySelectorAll(r.join(",")));o.set(a),typeof MutationObserver<"u"&&(h=new MutationObserver(d=>{queueMicrotask(()=>{let p=Array.from(l.nativeElement.querySelectorAll(r.join(",")));o.set(p)})}),h.observe(l.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>f())};s=Q(()=>{let l=typeof i=="function"&&i[xi]?i():i,r=typeof t=="function"?t():t;l&&r?.length>0?C(l,r):(o.set([]),h&&(h.disconnect(),h=null))},{injector:e});function f(){s&&s.destroy(),h&&h.disconnect()}return{signal:o.asReadonly(),destroy:f}}function Ur(i,t=["input","textarea"]){let e=i||jr(A(Y),t),n=T(void 0),o=A(je),s=o.get(xe),h=T(null);Q(f=>{let l=e();if(!l)return;let r=l.nativeElement;r&&(zr(r),h.set(r),n.set(r.value??""),f(()=>{h.set(null)}))},{injector:o});let C=null;return Q(()=>{let f=h();if(!f)return;C&&(C(),C=null);let l=a=>{n.set(a.detail.value)},r=a=>{n.set(a.target.value)};f.addEventListener("input",r),f.addEventListener("inputValueChanged",l),n.set(f.value),C=()=>{f.removeEventListener("input",r),f.removeEventListener("inputValueChanged",l)},s.onDestroy(()=>{C&&C()})},{injector:o}),Q(()=>{let f=h();if(!f)return;let l=n();l&&(f.value=l,f.dispatchEvent(new Event("input")))},{injector:o}),n}function zr(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,t);let n=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(n),t}}),i}var Ja=(()=>{var t,e,n,Nn,Ci;let h=class h{constructor(){x(this,n);x(this,t);x(this,e);O(this,t,A(Ue)),O(this,e,A(Me)),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=te(!1),this.closed=De(),this.searchable=V(!1),this.activeOptionIndex=T(-1),this.inputRef=ve("inputRef"),this.optionsRef=ve("optionsRef"),this.options=Tn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=k(()=>this.options.signal().filter(f=>!f.disabled)),this.inputValue=Ur(this.inputRef),this.abortController=null,this.optionsEffect=Q(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||m(this,t).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let l=this.inputRef()?.nativeElement;l&&(queueMicrotask(()=>l.focus()),l.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",a=>{let d=a.target,p=this.activeElements();if(!p.length){let c=this.optionsEl();this.activeElements.set(c),p=c}let _=p.findIndex(c=>c===d);_>-1&&(this.activeOptionIndex.set(_),l.focus())}))}),this.keyDownEventListener=f=>{let l=this.activeOptionIndex();f.key==="ArrowDown"?(f.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(l))):f.key==="ArrowUp"?(f.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(l))):f.key==="Enter"?(f.preventDefault(),l>-1&&(this.activeElements()[l].click(),queueMicrotask(()=>this.close("active")))):f.key==="Tab"&&(f.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=T([]),this.lastInputValue="",this.inputValueEffect=Q(()=>{if(!this.searchable())return;let l=(this.inputValue()??"").toLowerCase();if(w(this,n,Ci).call(this),!l||l===""){let a=this.optionsEl();this.activeElements.set(a),this._lastElementList=a;for(let d=0;d<a.length;d++)m(this,e).removeStyle(a[d],"order");return}if(!l||l==="")return;let r=this._lastElementList.length&&l.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=l;for(let a=0;a<r.length;a++){let d=r[a],p=d.textContent?.toLowerCase()||"",_=w(this,n,Nn).call(this,p,l);d.value=_}r=r.filter(a=>a.value>0).sort((a,d)=>d.value-a.value);for(let a=0;a<r.length;a++)m(this,e).setStyle(r[a],"order",a);this.activeElements.set(r),this._lastElementList=r}),this.activeOptionIndexEffect=Q(()=>{let f=this.activeElements(),l=this.activeOptionIndex();for(let r=0;r<f.length;r++)f[r].classList.remove("active");l>-1&&(f[l].scrollIntoView({block:"center"}),f[l].classList.add("active"))})}toggleIsOpen(f){f.preventDefault(),f.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(f){let l=this.activeElements();if(!l.length){let a=this.optionsEl();this.activeElements.set(a),l=a}if(f===-1||f===l.length-1)return 0;let r=f+1;return l[r].disabled?this.nextActiveIndex(r):r}prevActiveIndex(f){let l=this.activeElements();if(!l.length){let a=this.optionsEl();this.activeElements.set(a),l=a}if(f===0||f===-1)return l.length-1;let r=f-1;return l[r].disabled?this.prevActiveIndex(r):r}close(f="closed",l){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||f==="closed")&&w(this,n,Ci).call(this),this.isOpen.set(!1),this.closed.emit(f==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};t=new WeakMap,e=new WeakMap,n=new WeakSet,Nn=function(f,l){if(!l)return 0;let r=0,a=-1,d=0,p=!0;for(let _=0;_<l.length;_++){let c=l[_];if(f.length>a+1&&f[a+1]===c)r+=_===0?100:150,a++,d++;else{let u=f.indexOf(c,a+1);if(_>0&&(p=!1),u===-1)return 0;r+=100,a=u,d++}}return p&&l.length===d&&(r+=1e3),r+=d*20,r},Ci=function(){this.activeOptionIndex.set(-1);let f=this.optionsEl();for(let l=0;l<f.length;l++)f[l].classList.remove("active")},h.\u0275fac=function(l){return new(l||h)},h.\u0275cmp=U({type:h,selectors:[["sh-menu"]],viewQuery:function(l,r){l&1&&(fe(r.inputRef,vs,5),fe(r.optionsRef,_s,5)),l&2&&_e(2)},hostVars:6,hostBindings:function(l,r){l&2&&$("disabled",r.disabled())("has-search",r.searchable())("multi-layer",r.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:ys,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(l,r){if(l&1){let a=oe();z(Cs),b(0,"sh-popover",3,0),st("isOpenChange",function(p){return H(a),ot(r.isOpen,p)||(r.isOpen=p),j(p)}),B("closed",function(){return H(a),j(r.close("fromPopover"))}),b(2,"div",4),B("click",function(p){return H(a),j(r.toggleIsOpen(p))}),y(3),R(4,Ds,2,0,"sh-icon",5),E(),b(5,"div",6)(6,"sh-form-field",7),ye(7,"input",8,1),E()(),b(9,"div",9,2),B("click",function(){return H(a),j(r.close("active"))}),y(11,1),E()()}l&2&&(nt("isOpen",r.isOpen),pe("disableOpenByClick",!0)("asMultiLayer",r.asMultiLayer())("options",Mt(11,yn)),S(2),$("is-open",r.isOpen()),S(2),L(r.openIndicator()?4:-1),S(2),$("hidden",r.searchable()===!1),S(3),$("searching",r.searchable()&&r.inputValue()!==""))},dependencies:[Mi,Ei,Ie],encapsulation:2,changeDetection:0});let i=h;return i})(),$r=(()=>{let t=class t{constructor(){this.value=V(void 0)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Pe(0,"div",0),o&2&&le("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=t;return i})(),el=(()=>{let t=class t{constructor(){this.currentClassList=Ke()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-radio"]],ngContentSelectors:ue,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(z(),Pe(0,"div",0),y(1)),o&2&&ge(s.currentClassList())},encapsulation:2,changeDetection:0});let i=t;return i})(),tl=(()=>{var t,e,n,o,s,yi,An,In,Pn;let r=class r{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);O(this,t,A(Y)),O(this,e,null),O(this,n,null),O(this,o,0),this.unit=V(""),this.value=te(m(this,o)),this.inputState=T({min:0,max:100,step:1}),this.valuePercentage=k(()=>{let{min:d,max:p}=this.inputState(),_=this.value()??d;if(isNaN(_))return 0;let c=p-d;if(c===0)return 0;let u=(_-d)/c*100;return Math.max(0,Math.min(100,u))}),this.trackFilledPercentage=k(()=>this.valuePercentage()),this.thumbPositionPercentage=k(()=>this.valuePercentage()),this.syncModelToInputEffect=Q(()=>{let d=this.value();if(m(this,n)){let p=parseFloat(m(this,n).value);(isNaN(p)||String(p)!==String(d))&&(m(this,n).value=String(d))}})}get hasInputElement(){return!!m(this,n)}ngAfterViewInit(){O(this,n,m(this,t).nativeElement.querySelector('input[type="range"]')),m(this,n)?(w(this,s,Pn).call(this,m(this,n)),m(this,n).oninput=()=>{this.setNewInputValue(m(this,n).value)},m(this,n).addEventListener("inputValueChanged",d=>{this.setNewInputValue(d.detail.value)}),queueMicrotask(()=>w(this,s,yi).call(this,!0)),w(this,s,An).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(d){let p=parseFloat(d??"0");if(!isNaN(p)){let{min:_,max:c}=this.inputState();this.value.set(Math.max(_,Math.min(c,p)))}}trackEvent(d){if(!m(this,n)||m(this,n).readOnly||m(this,n).disabled){d.preventDefault(),d.stopPropagation();return}if(d.target===m(this,n)||d.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let _=d.currentTarget.getBoundingClientRect(),c=d.clientX-_.left,u=_.width,{min:g,max:v,step:D}=this.inputState(),P=v-g;if(u>0&&P!==0&&D>0){let G=(c/u*P+g-g)/D,F=g+Math.round(G)*D,q=w(this,s,In).call(this,D);F=parseFloat(F.toFixed(q));let se=Math.max(g,Math.min(v,F));this.value.set(se)}}ngOnDestroy(){m(this,e)&&m(this,e).disconnect(),m(this,n)&&(m(this,n).oninput=null)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,yi=function(d=!1){if(!m(this,n))return;let p=parseFloat(m(this,n).min??"0")??0,_=parseFloat(m(this,n).max??"100")??100,c=m(this,n).step,u=1;if(c&&c.toLowerCase()!=="any"){let v=parseFloat(c);!isNaN(v)&&v>0&&(u=v)}this.inputState.set({min:p,max:_,step:u});let g=parseFloat(m(this,n).value??String(p))??p;if(d&&this.value()!==m(this,o)){let v=this.value(),D=Math.max(p,Math.min(_,v));g!==D&&(m(this,n).value=String(D)),v!==D&&this.value.set(D)}else{let v=Math.max(p,Math.min(_,g));this.value()!==v&&this.value.set(v)}},An=function(){if(!m(this,n)||typeof MutationObserver>"u")return;let d=["min","max","step","value","readonly","disabled"];O(this,e,new MutationObserver(p=>{let _=!1;for(let c of p)if(c.type==="attributes"&&d.includes(c.attributeName??"")){_=!0;break}_&&w(this,s,yi).call(this,!1)})),m(this,e).observe(m(this,n),{attributes:!0,attributeFilter:d})},In=function(d){if(isNaN(d)||Math.floor(d)===d)return 0;let _=d.toString().split(".")[1];return _?_.length:0},Pn=function(d){Object.defineProperty(d,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(d),"value").get.call(this)},set(p){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(d),"value").set.call(this,p);let c=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:p}});return this.dispatchEvent(c),p}})},r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=U({type:r,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(p,_){p&2&&$("has-input",_.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:Ss,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(p,_){p&1&&(z(bs),W(0,"div",0),y(1),X(),W(2,"div",1)(3,"div",2),N(4),X(),W(5,"div",3),ke("click",function(u){return _.trackEvent(u)}),y(6,1),W(7,"div",4),Pe(8,"div",5),X(),W(9,"div",6)(10,"div",7)(11,"div",8),N(12),X()()()(),W(13,"div",9),N(14),X()()),p&2&&(S(4),bt("",_.inputState().min,"",_.unit()),S(4),le("width",_.trackFilledPercentage(),"%"),S(),le("left",_.thumbPositionPercentage(),"%"),S(3),bt("",_.value(),"",_.unit()),S(2),bt("",_.inputState().max,"",_.unit()))},encapsulation:2,changeDetection:0});let i=r;return i})(),Wr=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=t;return i})(),il=(()=>{var t,e,n,o,Di,h,C,bi,de,Fn,kn,Rn;let p=class p{constructor(){x(this,o);x(this,t);x(this,e);x(this,n);x(this,h);x(this,C);O(this,t,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=te(!1),this.disabled=te(!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=te(!1),this.isLoading=te(!1),this.options=te([]),this.selectedOptions=te([]),this.cleared=De(),this.onAddNewFreeTextOption=De(),this.computedFreeTextOption=k(()=>{let c=this.inputValue(),u=this.value(),g=u?{}:c;return u&&typeof g=="object"&&(g[u]=c),g}),O(this,e,T(null)),this.inlineTemplate=Kt(Dt),this.optionsWrapRef=ve.required("optionsWrap"),this.inputRefInput=T(null),O(this,n,typeof MutationObserver<"u"&&new MutationObserver(c=>{for(var u of c)u&&(u.target.nodeName==="INPUT"||u.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Y(u.target)),m(this,n).disconnect())})),this.inputValue=T(""),this.prevInputValue=T(null),this.focusedOptionIndex=T(-1),this._isClearable=k(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=k(()=>m(this,t).nativeElement.classList.toString()),this.stretch=k(()=>this.selectClasses().includes("stretch")),this.small=k(()=>this.selectClasses().includes("small")),this.placeholderText=k(()=>{let c=this.placeholder(),u=this.inputRefEl();return c||u?.placeholder||null}),this.selectedOptionValues=k(()=>{let c=this.selectedOptions(),u=this.value();return u?c.map(g=>w(this,o,de).call(this,g,u)):c}),this.filteredOptions=k(()=>{let c=this.options()||[],u=this.label(),g=this.value(),v=this.inlineSearch(),D=this.inputValue().toLowerCase(),P=w(this,o,kn).call(this,D);if(c.length<=0)return[];if(!v||D==="")return c;let G=c.filter(F=>{let q=u?(w(this,o,de).call(this,F,u)??"").toString().toLowerCase():(F??"").toString().toLowerCase(),se=((g?w(this,o,de).call(this,F,g):F)??"").toString().toLowerCase(),we=P.test(q),_t=P.test(se);return we||_t}).map(F=>{let q=u?(w(this,o,de).call(this,F,u)??"").toString().toLowerCase():(F??"").toString().toLowerCase(),se=((g?w(this,o,de).call(this,F,g):F)??"").toString().toLowerCase(),we=w(this,o,Di).call(this,q,D),_t=w(this,o,Di).call(this,se,D);return{item:F,score:Math.max(we,_t)}});return G.sort((F,q)=>q.score-F.score),G.map(F=>F.item)}),O(this,h,zt()),this.inputRefEl=k(()=>{let c=this.inputRefInput();if(c===null)return;let u=c?c.nativeElement:null;return u?(u.autocomplete="off",u.setAttribute("role","combobox"),u.setAttribute("id",`combobox-${m(this,h)}`),u.setAttribute("aria-haspopup","listbox"),u.setAttribute("aria-owns","optionsWrapId"),w(this,o,Fn).call(this,u),u.addEventListener("focus",()=>{this.readonly()||this.open()}),u.addEventListener("input",g=>{let v=g.target.value,D=this.inputValue();v!==D&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(v),this.updateInputElValue())}),u.addEventListener("inputValueChanged",g=>{let v=g.detail.value,D=this.inputValue();if(v!==D){if(v===""){this.clear();return}this.setSelectedOptionsFromValue(v),this.setInputValueFromOptions(this.selectedOptions()),w(this,o,bi).call(this)}}),u):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=Q(()=>{let c=this.inputRefEl();if(!c)return;let u=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);u?c.setAttribute("aria-activedescendant",u):c.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=Q(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let u=this.inputRefEl(),v=this.asFreeText()?-1:0;if(!u)return;u.setAttribute("aria-expanded",this.isOpen().toString()),u.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 P=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(P>this.filteredOptions().length-1?v:P)}if(D.key==="ArrowUp"){D.preventDefault();let P=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(P<v?this.filteredOptions().length-1:P)}},{signal:this.openAbortController?.signal})}else{let u=this.inputRefEl();if(!u)return;u.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=Q(()=>{let c=this.inputValue();this._inputValue=c}),this.inputRefElEffect=Q(()=>{let c=this.inputRefEl();c&&c.value!==this._inputValue&&(this.disabled.set(c.disabled),this.setSelectedOptionsFromValue(c.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=k(()=>{let c=this.selectedOptions();return this.label()?c.map(g=>this.getLabel(g)).join(", "):c.join(", ")}),this.inputState=k(()=>(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=k(()=>this.inlineSearch()||this.lazySearch()),O(this,C,Q(()=>{if(this.selectMultiple()&&this.hasSearch())return;let c=this.selectedOptions(),u=this.value(),g=c.map(v=>u?w(this,o,de).call(this,v,u):v).join(",");this.inputValue.set(g)}))}ngOnInit(){this.setInitInput()}setInitInput(){let c=m(this,t).nativeElement.querySelector("input");if(c){this.inputRefInput.set(new Y(c));return}let u=m(this,t).nativeElement.querySelector("textarea");if(u){this.inputRefInput.set(new Y(u));return}typeof MutationObserver<"u"&&m(this,n).observe(m(this,t).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(c){let u=this.options()||[],g=this.value(),v=this.selectMultiple(),D=c.toString().split(",");if(D.length===0){this.selectedOptions.set([]);return}let P=v?D:[D[0]],J=u.filter(G=>{let F=g?w(this,o,de).call(this,G,g)?.toString():G?.toString();return F&&P.includes(F)});this.selectedOptions.set(v?J:[J[0]])}setInputValueFromOptions(c){let u=this.value();if(c.length===0){this.inputValue.set(""),this.updateInputElValue();return}let g=c.map(v=>u?w(this,o,de).call(this,v,u):v).join(",");g!==this.inputValue()&&(this.inputValue.set(g),this.updateInputElValue())}getValue(c){let u=this.value();return u?w(this,o,de).call(this,c,u):c}getLabel(c){let u=this.label();return u?w(this,o,de).call(this,c,u):c}getLabelAsSlug(c){let u=this.getLabel(c);return!u||typeof u!="string"?"":u.replaceAll(" ","-")}toggleOptionByIndex(c,u,g=!1){let v=this.filteredOptions()[c];if(this.asFreeText()&&c===-1){let q=this.computedFreeTextOption(),se=this.getValue(q);if(!(this.validateFreeText()??(Ct=>!0))(se))return;this.options.update(Ct=>Ct.findIndex(Ln=>this.getValue(Ln)===se)>-1?Ct:(this.onAddNewFreeTextOption.emit(se),[q,...Ct])),c=0,v=q}else if(!v){this.close();return}u&&u.stopPropagation();let D=this.selectMultiple(),P=this._isClearable(),J=this.value(),G=this.selectedOptionValues(),F=J?w(this,o,de).call(this,v,J):v;this.prevInputValue.set(null),m(this,e).set(null),this.selectedOptions.update(q=>{let se=G.indexOf(F);if(se>-1){let we=[...q.slice(0,se),...q.slice(se+1)];return P||we.length>0?we:q}else return this.focusedOptionIndex.set(c),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(c,u){c.stopPropagation(),this.selectedOptions.update(g=>[...g.slice(0,u),...g.slice(u+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(c){let u=this.value(),g=this.filteredOptions()[c],v=u?w(this,o,de).call(this,g,u):g;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()):m(this,e).set(this.selectedOptions()),this.selectMultiple()||w(this,o,bi).call(this))}close(){this.isOpen.set(!1);let c=this.prevInputValue(),u=m(this,e).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&c&&(this.inputValue.set(c),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&u!==null&&this.setInputValueFromOptions(u),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(c){c?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let c=this.inputRefEl(),u=this.inputValue();c&&(c.value=u,c.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&m(this,n).disconnect()}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakSet,Di=function(c,u){if(!u)return 0;let g=0,v=-1,D=0,P=!0;for(let J=0;J<u.length;J++){let G=u[J];if(c.length>v+1&&c[v+1]===G)g+=J===0?100:150,v++,D++;else{let F=c.indexOf(G,v+1);if(J>0&&(P=!1),F===-1)return 0;g+=100,v=F,D++}}return P&&u.length===D&&(g+=1e3),g+=D*20,g},h=new WeakMap,C=new WeakMap,bi=function(){let c=this.selectedOptionValues()[0],u=this.value();if(c){let g=this.filteredOptions().findIndex(v=>u?w(this,o,de).call(this,v,u)===c:v===c);this.focusedOptionIndex.set(g)}else this.focusedOptionIndex.set(-1)},de=function(c,u){return u.split(".").reduce((g,v)=>g?.[v],c)},Fn=function(c){Object.defineProperty(c,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),"value").get.call(this)},set(u){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(c),"value").set.call(this,u);let v=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:u}});return this.dispatchEvent(v),u}})},kn=function(c){let u=(c??"").toLowerCase(),g="^";for(let v of u)g+=".*"+w(this,o,Rn).call(this,v);return g+=".*$",new RegExp(g,"i")},Rn=function(c){return c.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},p.\u0275fac=function(u){return new(u||p)},p.\u0275cmp=U({type:p,selectors:[["sh-select"]],contentQueries:function(u,g,v){u&1&&qt(v,g.inlineTemplate,Dt,5),u&2&&_e()},viewQuery:function(u,g){u&1&&fe(g.optionsWrapRef,Ms,5),u&2&&_e()},hostVars:2,hostBindings:function(u,g){u&2&&$("multiple",g.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:ws,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(u,g){if(u&1){let v=oe();z(Es),St(0)(1)(2)(3)(4)(5)(6),b(7,"sh-popover",2,0),st("isOpenChange",function(P){return H(v),ot(g.isOpen,P)||(g.isOpen=P),j(P)}),B("closed",function(){return H(v),j(g.close())}),b(9,"sh-form-field",3),B("click",function(){return H(v),j(g.open())}),y(10,0,["ngProjectAs","label",5,["label"]]),y(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),y(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),b(13,"div",4)(14,"div",5),R(15,Os,1,1)(16,Hs,2,0)(17,$s,2,1),y(18,3),y(19,4),E()(),R(20,Ws,2,0,"sh-icon",6)(21,Gs,1,0,"sh-spinner",7)(22,qs,2,0,"sh-icon",6)(23,Ys,2,0,"sh-icon",6)(24,Xs,2,0,"sh-icon",6)(25,Qs,2,0,"sh-icon",6)(26,Zs,2,0,"sh-icon",6),E(),b(27,"div",8,1),R(29,rr,3,3),R(30,ar,2,1,"p",9),$e(31,hr,4,8,"li",10,it),E()()}if(u&2){Ce(g.placeholderTemplate());let v=g.optionTemplate();S(),Ce(g.freeTextOptionTemplate());let D=g.selectedOptionTemplate(),P=g.inlineTemplate();S();let J=Ce(g.selectedOptions()),G=g.inputState();S(),Ce(D||v||P),S(),Ce(v||P),S();let F=Ce(!g.asText()&&g.selectMultiple());S();let q=Ce(g.isOpen()&&g.hasSearch()&&(F||g.inputValue().length>-1));S(),nt("isOpen",g.isOpen),pe("disableOpenByClick",!0)("options",Mt(24,xs)),S(2),$("stretch",g.stretch())("small",g.small())("readonly",g.readonly()||g.disabled()),S(4),$("show-search-text",q),S(),$("is-selected",G==="selected"),S(),L(g.asFreeText()&&g.inputValue().length>0&&!g.isOpen()?15:J.length>0?16:q?-1:17),S(5),L(G==="closed"?20:G==="loading"?21:G==="open-searching"?22:G==="searching"?23:G==="selected"&&g._isClearable()?24:G==="selected"&&!g._isClearable()?25:26),S(9),L(g.asFreeText()?29:-1),S(),L(g.optionTitle()&&g.filteredOptions().length>0?30:-1),S(),We(g.filteredOptions())}},dependencies:[ji,Mi,Ei,Ie,Ir,Wr,Pr,Hr],encapsulation:2,changeDetection:0});let i=p;return i})();function Gr(i){let t=A(Y),e=A(xe),n=T(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(h=>{h.type==="attributes"&&h.attributeName==="class"&&n.set(t.nativeElement.classList.contains(i))})});return Ii(t.nativeElement,()=>{o&&o.observe(t.nativeElement,{attributes:!0}),n.set(t.nativeElement.classList.contains(i))}),e.onDestroy(()=>{o&&o.disconnect()}),n}var nl=(()=>{var t,e,n,o,s,vt;let C=class C{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);O(this,t,A(Ue)),O(this,e,A(Y)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=V(!1),this.isOpen=te(!1),this.isOverlay=Gr("overlay"),O(this,n,m(this,e).nativeElement.parentElement),O(this,o,m(this,n).getBoundingClientRect&&m(this,n).getBoundingClientRect()),this.dragImageElement=ve.required("dragImageElement"),this.dragIsEnding=T(!1),this.dragIsOnScreen=T(!0),this.isDragging=T(!1),this.dragPositionX=T(0),this.dragActualPositionX=k(()=>{let l=this.dragPositionX(),r=280,a=100,d=.008,p=r/2,_=p-a/2,c=p+a/2;if(l>c){let u=l-c,v=(r-c)*(1-Math.exp(-d*u));return c+v}else if(l<_){let u=_-l,v=_*(1-Math.exp(-d*u));return _-v}return l}),this.draggingStyle=k(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=Q(()=>{this.disableDrag()||(this.isDragging()?m(this,t).body.classList.add("dragging"):m(this,t).body.classList.remove("dragging"))})}drop(l){l.stopPropagation(),w(this,s,vt).call(this,l.clientX-m(this,o).left)}dragEnd(l){l.clientX-m(this,o).left<0&&w(this,s,vt).call(this,0),l.clientX-m(this,o).left>this.openWidthTreshold&&w(this,s,vt).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(l){l.stopPropagation(),O(this,o,m(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(l){l.stopPropagation(),this.isDragging()&&(l.clientX!==0||l.clientY!==0)&&this.dragPositionX.set(l.clientX-m(this,o).left)}touchStart(l){l.stopPropagation(),this.isDragging.set(!0),O(this,o,m(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(l){l.stopPropagation(),this.isDragging()&&this.dragPositionX.set(l.touches[0].clientX-m(this,o).left)}touchEnd(l){l.stopPropagation(),w(this,s,vt).call(this,l.changedTouches[0].clientX-m(this,o).left)}touchCancel(l){l.stopPropagation(),this.isDragging.set(!1)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,vt=function(l){this.isDragging.set(!1),l>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},C.\u0275fac=function(r){return new(r||C)},C.\u0275cmp=U({type:C,selectors:[["sh-sidenav"]],viewQuery:function(r,a){r&1&&fe(a.dragImageElement,pr,5),r&2&&_e()},hostVars:6,hostBindings:function(r,a){r&2&&$("open",a.isOpen())("closed",!a.isOpen())("is-dragging",a.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:gr,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(r,a){r&1&&(z(fr),R(0,mr,2,0,"div",1),R(1,vr,1,0,"div",2),W(2,"div",3),y(3),X(),W(4,"div",4),R(5,_r,1,0,"div",5),W(6,"div",6),y(7,1),X(),W(8,"main"),y(9,2),X()()),r&2&&(L(a.isOverlay()&&!a.disableDrag()?0:-1),S(),L(a.isOverlay()&&a.isDragging()?1:-1),S(3),le("transform",!a.disableDrag()&&a.draggingStyle()),S(),L(a.isOverlay()&&!a.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=C;return i})();var ol=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-stepper"]],ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})();var sl=(()=>{var t;let e=class e{constructor(){x(this,t);O(this,t,A(qr)),this.shSort=V(),this.sortAsc=k(()=>{let o=m(this,t).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=k(()=>{let o=m(this,t).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&m(this,t).toggleSort(o)}};t=new WeakMap,e.\u0275fac=function(s){return new(s||e)},e.\u0275dir=K({type:e,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,h){s&1&&B("mousedown",function(){return h.toggleSort()}),s&2&&$("sort-asc",h.sortAsc())("sort-desc",h.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=e;return i})();var Ze=1.5,qr=(()=>{var t,e,n,o,s,jt;let C=class C{constructor(){x(this,s);x(this,t);x(this,e);x(this,n);x(this,o);O(this,t,A(Y)),O(this,e,A(Ut,{optional:!0})),this.loading=V(!1),this.data=V([]),this.dataChange=De(),this.sortByColumn=te(null),this.currentClass=Ke(),this.thead=ve("thead"),this.tbody=ve("tbody"),this.columns=Tn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=k(()=>{let l=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=Q(()=>{let l=this.tbody()?.nativeElement,r=this.thead()?.nativeElement;if(!l||!r)return;let a=this.stickyHeaderHeight();queueMicrotask(()=>{let d=r.querySelectorAll("tr.sticky").length>0,p=l.querySelectorAll("tr.sticky");if(p.length>0&&d)for(let c=0;c<p.length;c++)p[c].style.top=`${a}px`})}),this.class=T(m(this,e)?.tableType??"default"),this.resizing=T(!1),this.sizeTrigger=T(!0),O(this,n,null),O(this,o,T(!1)),this.scrollXState=T(-1),this.scrollYState=T(-1),this.canScrollX=T(!1),this.canScrollY=T(!1),this.columnSizes=k(()=>{this.sizeTrigger();let l=this.columns.signal();return l.reduce((r,a,d)=>{let p=a,_=p.getAttribute("size"),c=d===l.length-1;return _?`${r} ${_}`:p.classList.contains("sticky")||p.classList.contains("sticky-end")?`${r} min-content`:c?`${r} 1fr`:`${r} 1fr`},"")}),this.e=Q(()=>{let l=this.sortByColumn();if(l===null)return m(this,o).call(this)||(O(this,n,this.data()),m(this,o).set(!0)),this.dataChange.emit(structuredClone(m(this,n)));let r=l.startsWith("-")?l.slice(1):l,a=l.startsWith("-"),d=this.data().sort((p,_)=>{let c=p[r],u=_[r],g=0;return typeof c=="number"&&typeof u=="number"&&(g=c-u),c instanceof Date&&u instanceof Date&&(g=c.getTime()-u.getTime()),typeof c=="string"&&typeof u=="string"&&(g=c.localeCompare(u,void 0,{sensitivity:"base"})),a?-g:g});this.dataChange.emit(d)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){w(this,s,jt).call(this)}onResize(l){w(this,s,jt).call(this)}ngAfterViewInit(){queueMicrotask(()=>w(this,s,jt).call(this))}toggleSort(l){let r=this.sortByColumn(),a=r===l?`-${l}`:r===`-${l}`?null:l;this.sortByColumn.set(a)}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,jt=function(){let l=m(this,t).nativeElement,r=-1,a=-1,d=l.scrollWidth>l.clientWidth+Ze;if(d){let _=l.scrollLeft<=Ze;l.scrollWidth-(l.scrollLeft+l.clientWidth)<Ze?r=1:_||(r=0)}this.scrollXState.set(r),this.canScrollX.set(d);let p=l.scrollHeight>l.clientHeight+Ze;if(p){let _=l.scrollTop<=Ze;l.scrollHeight-(l.scrollTop+l.clientHeight)<Ze?a=1:_||(a=0)}this.scrollYState.set(a),this.canScrollY.set(p)},C.\u0275fac=function(r){return new(r||C)},C.\u0275cmp=U({type:C,selectors:[["sh-table"]],viewQuery:function(r,a){r&1&&(fe(a.thead,Cr,5),fe(a.tbody,yr,5)),r&2&&_e(2)},hostVars:18,hostBindings:function(r,a){r&1&&B("scroll",function(){return a.onScroll()})("resize",function(p){return a.onResize(p)},Fi),r&2&&(ge(a.class()),le("grid-template-columns",a.columnSizes()),$("resizing",a.resizing())("can-scroll-x",a.canScrollX())("can-scroll-y",a.canScrollY())("scrolled-x",a.scrollXState()>=0)("scrolled-x-end",a.scrollXState()===1)("scrolled-y",a.scrollYState()>=0)("scrolled-y-end",a.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:br,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(r,a){r&1&&(z(Dr),R(0,Sr,1,0,"sh-progress-bar",2),b(1,"thead",null,0),y(3),y(4,1),E(),b(5,"tbody",null,1),y(7,2),E(),R(8,Mr,2,0,"div",3)),r&2&&(L(a.loading()?0:-1),S(8),L(a.loading()?-1:8))},dependencies:[$r],encapsulation:2,changeDetection:0});let i=C;return i})(),rl=(()=>{let t=class t{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&le("--tabs-id",s.id)},ngContentSelectors:ue,decls:1,vars:0,template:function(o,s){o&1&&(z(),y(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),al=(()=>{let t=class t{constructor(){this.isActive=te(!1),this.disallowToggle=V(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&$("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:wr,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(z(Er),b(0,"h3",0),B("click",function(){return s.disallowToggle()||s.toggle()}),y(1,0,null,xr,1,0),R(3,Or,2,0,"sh-icon",1),E(),b(4,"div",2)(5,"div",3),y(6,1),E()()),o&2&&(S(3),L(s.disallowToggle()?-1:3))},dependencies:[Ie],encapsulation:2,changeDetection:0});let i=t;return i})(),ll=(()=>{let t=class t{};t.\u0275fac=function(o){return new(o||t)},t.\u0275cmp=U({type:t,selectors:[["sh-toggle"]],ngContentSelectors:ue,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(z(),W(0,"div",0),Pe(1,"div",1),X(),y(2))},encapsulation:2,changeDetection:0});let i=t;return i})();var cl=(()=>{let t=class t{constructor(){this.filesOver=T(!1),this.filesDropped=De()}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)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275dir=K({type:t,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&B("dragover",function(C){return s.onDragOver(C)})("dragleave",function(C){return s.onDragLeave(C)})("drop",function(C){return s.ondrop(C)}),o&2&&$("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=t;return i})();var Yr=(()=>{var t,e,n;let o=class o{constructor(){x(this,t);x(this,e);x(this,n);this.positionAnchorName=V.required(),this.anchorEl=V.required(),this.isOpen=V(!1),O(this,t,A(Y)),O(this,e,A(Me)),O(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=T(!1),this.openEffect=Q(()=>{this.isOpen()?setTimeout(()=>{m(this,t).nativeElement.showPopover(),this.calculateTooltipPosition()}):m(this,t).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let h=this.anchorEl().nativeElement.getBoundingClientRect(),C=m(this,t).nativeElement,f=C.getBoundingClientRect();if(f.width===0&&f.height===0)return;let l=h.top-f.height<0;if(this.isBelow.set(l),!this.SUPPORTS_ANCHOR){let r=C.getBoundingClientRect(),a=h.top-r.height,d=h.left+h.width/2-r.width/2;l&&(a=h.top+h.height),d+r.width>window?.innerWidth&&(d=h.right-r.width/2),d<0&&(d=-(r.width/2)),m(this,e).setStyle(C,"left",`${d}px`),m(this,e).setStyle(C,"top",`${a}px`),m(this,e).setStyle(C,"position","fixed")}}}ngAfterViewInit(){O(this,n,new AbortController);let h={signal:m(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,h),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:m(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){m(this,n)?.abort()}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o.\u0275fac=function(C){return new(C||o)},o.\u0275cmp=U({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(C,f){C&2&&(Te("popover","manual"),le("position-anchor",f.positionAnchorName()),$("below",f.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ue,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(C,f){C&1&&(z(),W(0,"div",0),y(1),X())},encapsulation:2});let i=o;return i})(),ce=null,dl=(()=>{var t,e,n,o,s;let h=class h{constructor(){x(this,t);x(this,e);x(this,n);x(this,o);x(this,s);this.shTooltip=V.required(),O(this,t,A(Y)),O(this,e,A(ki)),O(this,n,A(Ai)),O(this,o,A(Me)),O(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${zt()}`,this.isOpen=T(!1)}onMouseEnter(){ce?.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(ce?.wrapperComponentRef||!this.shTooltip())return;let f,l=this.shTooltip();if(typeof l=="string")f=[[m(this,o).createText(l)]];else if(l instanceof Dt)O(this,s,l.createEmbeddedView({})),m(this,s).detectChanges(),f=[m(this,s).rootNodes];else return;ce={wrapperComponentRef:m(this,e).createComponent(Yr,{environmentInjector:m(this,n),projectableNodes:f}),component:this},ce.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ce.wrapperComponentRef.setInput("anchorEl",m(this,t)),ce.wrapperComponentRef?.setInput("isOpen",this.isOpen),ce.wrapperComponentRef.changeDetectorRef.detectChanges(),ce.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ce.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ce?.wrapperComponentRef&&(ce.component.cancelCleanupTimer(),ce.wrapperComponentRef.destroy(),ce.component.isOpen.set(!1),ce=null),m(this,s)&&(m(this,s).destroy(),O(this,s,null))}};t=new WeakMap,e=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,h.\u0275fac=function(l){return new(l||h)},h.\u0275dir=K({type:h,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(l,r){l&1&&B("mouseenter",function(){return r.onMouseEnter()})("mouseleave",function(){return r.onMouseLeave()}),l&2&&(le("anchor-name",r.anchorName),$("active",r.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=h;return i})();export{Ae as a,jn as b,Ki as c,zi as d,pa as e,fa as f,po as g,ut as h,Lt as i,ma as j,_o as k,Do as l,So as m,Eo as n,gn as o,mn as p,To as q,va as r,_a as s,Ca as t,Ie as u,Ut as v,$a as w,Wa as x,Ar as y,Ga as z,qa as A,Ya as B,Xa as C,Ir as D,Pr as E,Qa as F,Hr as G,Ei as H,Za as I,Ka as J,Ja as K,$r as L,el as M,tl as N,Wr as O,il as P,nl as Q,ol as R,sl as S,qr as T,rl as U,al as V,ll as W,cl as X,dl as Y};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as F}from"./chunk-
|
|
1
|
+
import{a as F}from"./chunk-66KMXCBD.js";import{a as Z}from"./chunk-F2QQDU4N.js";import{b as Q}from"./chunk-KBGIIJMM.js";import{B as q,L as Y,w as H,x as K,z as W}from"./chunk-LFRGO2IP.js";import{b as U,d as j}from"./chunk-LEZL7BSL.js";import{$b as s,Ab as b,Bb as k,Cb as O,Db as a,Eb as l,Fb as m,Jb as y,Kb as D,Mb as f,Oa as M,Ra as r,Rc as P,Tb as G,Ub as V,Vb as _,Xc as S,Zb as u,_ as T,bb as E,da as p,ea as I,mc as z,nc as A,oa as v,oc as x,pc as J,vc as X,wb as d,wc as B,xb as N,xc as g}from"./chunk-FAM42SZT.js";function ne(n,t){if(n&1&&(a(0,"div",11),A(1),l()),n&2){s();let e=g(0);r(),J(" ",e.Message," ")}}function oe(n,t){if(n&1&&(a(0,"div"),G(1,1),m(2,"a",15),V(),l()),n&2){let e=s();r(2),O("href",e.downloadLink(),M)}}function ae(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s(),c=g(0);return I(i.doRepair(c.BackupID))}),_(1,2),l()}}function re(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s(),c=g(0);return I(i.doDownloadBugreport(c))}),_(1,3),l()}}function le(n,t){if(n&1&&m(0,"sh-progress-bar",17),n&2){let e,o=s(2);O("value",(e=o.serverState())==null?null:e.UpdateDownloadProgress)}}function ce(n,t){if(n&1){let e=f();a(0,"div",11),y(1),_(2,4),D(),a(3,"a",16),A(4),l(),d(5,le,1,1,"sh-progress-bar",17),a(6,"button",14),u("click",function(){p(e);let i=s();return I(i.doShowUpdate())}),_(7,5),l()()}if(n&2){let e,o,i=s(),c=g(0);r(3),O("href",(e=i.serverState())==null?null:e.UpdateDownloadLink,M),r(),x(c.Message),r(),N(((o=i.serverState())==null?null:o.UpdaterState)==="Downloading"?5:-1)}}function _e(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s(),c=g(0);return I(i.doShowLog(c.BackupID))}),_(1,6),l()}}function se(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s();return I(i.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),_(1,7),l()}}function de(n,t){if(n&1){let e=f();a(0,"button",14),u("click",function(){p(e);let i=s();return I(i.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),_(1,8),l()}}var Ne={Error:"error",Warning:"warn",Information:"primary"},h=class n{#e=T(j);#a=T(U);#r=T(W);#t=T(K);#i=T(F);#n=T(Q);#o=v(null);serverState=this.#i.serverState;index=S.required();notification=S.required();downloadLink=P(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index())}deleteAllNotifications(){this.#i.deleteAllNotifications()}getAlertType(t){return t&&Ne[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"])},error:e=>{if(e.status===404){let o={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(o={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(Z,{maxWidth:"550px",width:"100%",data:o})}else this.#t.error($localize`Failed to find backup: `+e.message)}})}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a})},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message)}})}doShowUpdate(){this.#e.navigate(["/about/changelog"])}doShowLink(t){window.open(t,"_blank")}doDownloadBugreport(t){let e=t.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:o=>{if(!o.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let i=`${location.origin}/api/v1/bugreport/${e}?token=${o.Token}`;t.DownloadLink=i,this.#o.set(i),this.triggerDownload(i)},error:o=>{this.#t.error(`Failed to get bug report URL: ${o.message}`)}})}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click()}catch{}document.body.removeChild(e)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=E({type:n,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let o;o=$localize`Repair`;let i;i=$localize`Download`;let c;c=$localize`New update found:`;let L;L=$localize`Show Update`;let w;w=$localize`Show Log`;let R;R=$localize` Show Help `;let $;return $=$localize` Show Help `,[t,e,o,i,c,L,w,R,$,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,o){if(e&1){let i=f();X(0),a(1,"sh-alert")(2,"div",9),A(3),l(),a(4,"div",10),d(5,ne,2,1,"div",11),d(6,oe,3,1,"div"),a(7,"div",12),d(8,ae,2,0,"button",13),d(9,re,2,0,"button",13),d(10,ce,8,3,"div",11),d(11,_e,2,0,"button",13),d(12,se,2,0,"button",13),d(13,de,2,0,"button",13),a(14,"button",14),u("click",function(){return p(i),I(o.deleteNotificationByIndex())}),_(15,0),l()()()()}if(e&2){let i=B(o.notification());r(),z(o.getAlertType(i.Type)),r(2),x(i.Title),r(2),N(i.Action!=="update:new"&&i.Action!=="update:manual"?5:-1),r(),N(o.downloadLink()?6:-1),r(2),N(i.Message!=null&&i.Message.includes("please run repair")?8:-1),r(),N(i.Action!=null&&i.Action.startsWith("bug-report:created:")&&!o.downloadLink()?9:-1),r(),N(i.Action==="update:new"?10:-1),r(),N(i.Action==="backup:show-log"?11:-1),r(),N(i.Action==="config:issue:unencrypted-database"?12:-1),r(),N(i.Action==="config:issue:windows-folder-used"?13:-1)}},dependencies:[Y,q,H],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}"],changeDetection:0})};var Te=(n,t)=>t.ID;function Ce(n,t){if(n&1&&m(0,"app-notification",1),n&2){let e=t.$implicit,o=t.$index;O("index",o)("notification",e)}}function pe(n,t){n&1&&(a(0,"div",2)(1,"p"),_(2,0),l()())}var ee=class n{#e=T(F);notificationFilterPredicate=S();notifications=P(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||n)};static \u0275cmp=E({type:n,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,o){e&1&&b(0,Ce,1,2,"app-notification",1,Te,!1,pe,3,0,"div",2),e&2&&k(o.notifications())},dependencies:[h],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"],changeDetection:0})};export{h as a,ee as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as g}from"./chunk-
|
|
1
|
+
import{b as g}from"./chunk-I2RHQQ3J.js";import{b as o}from"./chunk-KBGIIJMM.js";import{Rc as n,V as r,_ as i,oa as s}from"./chunk-FAM42SZT.js";var a=class e{#e=i(o);#r=g(this.#e.getApiV1Serversettings());#t=s(void 0);serverSettings=n(()=>this.#t()||this.#r());refreshServerSettings(){this.#e.getApiV1Serversettings().subscribe({next:t=>{this.#t.set(t)}})}static \u0275fac=function(p){return new(p||e)};static \u0275prov=r({token:e,factory:e.\u0275fac,providedIn:"root"})};export{a};
|