@duplicati/ngclient 0.0.165 → 0.0.166

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.
Files changed (114) hide show
  1. package/chunk-25QJ7OWU.js +1 -0
  2. package/{chunk-ZSP3PG56.js → chunk-2HQTO4LT.js} +1 -1
  3. package/{chunk-NXROYR6L.js → chunk-3ADKRLYD.js} +1 -1
  4. package/{chunk-BB73BKGN.js → chunk-3O255C2R.js} +1 -1
  5. package/{chunk-K6IL54XE.js → chunk-3VHQLGKM.js} +1 -1
  6. package/{chunk-IEGVSOLM.js → chunk-4IAJY6E3.js} +1 -1
  7. package/chunk-4N7O6OWH.js +1 -0
  8. package/{chunk-LEYSCNJE.js → chunk-53GUCO6P.js} +1 -1
  9. package/{chunk-VCLWADQK.js → chunk-53V6KV3I.js} +1 -1
  10. package/{chunk-Q6RATRPG.js → chunk-5RCKMVGY.js} +1 -1
  11. package/{chunk-2NUXSSQT.js → chunk-7WATCQLK.js} +1 -1
  12. package/chunk-A4HSV37F.js +1 -0
  13. package/{chunk-EM7XX5OF.js → chunk-AROXMP46.js} +1 -1
  14. package/{chunk-HVB6ARTT.js → chunk-AUMCM45B.js} +1 -1
  15. package/{chunk-Y27QHU4A.js → chunk-AY4BUZJQ.js} +1 -1
  16. package/{chunk-WNP2PFJP.js → chunk-BRPGUJ77.js} +1 -1
  17. package/{chunk-RVELYERL.js → chunk-CMFSS355.js} +1 -1
  18. package/{chunk-XAUZOGDI.js → chunk-CMMGGY2S.js} +1 -1
  19. package/{chunk-P2GZAEQX.js → chunk-CO4VU5IU.js} +1 -1
  20. package/chunk-DPQEDR6U.js +1 -0
  21. package/{chunk-KLODM6IK.js → chunk-E4KSSC6K.js} +1 -1
  22. package/chunk-EEXKY2IJ.js +1 -0
  23. package/chunk-EYFKXXER.js +1 -0
  24. package/chunk-FUPYLAQ6.js +1 -0
  25. package/{chunk-F3EXRAZJ.js → chunk-G4Z3JAJB.js} +1 -1
  26. package/{chunk-H3W2UQY2.js → chunk-GGNFAVSC.js} +1 -1
  27. package/{chunk-VLCXKEIA.js → chunk-GHJ4MU3O.js} +1 -1
  28. package/{chunk-WJDMMKWE.js → chunk-GRPEAINE.js} +1 -1
  29. package/{chunk-RPJFKWMV.js → chunk-HEST3B3S.js} +1 -1
  30. package/chunk-HJSCQF6V.js +1 -0
  31. package/{chunk-ORLZQJMN.js → chunk-HKYSIIV5.js} +1 -1
  32. package/{chunk-AT6BXXSP.js → chunk-HW7A5ZWV.js} +1 -1
  33. package/{chunk-ISCGGOPN.js → chunk-ILGMXHEE.js} +1 -1
  34. package/chunk-IMF5BUVN.js +1 -0
  35. package/{chunk-TVD2HREV.js → chunk-IQ52IXSC.js} +1 -1
  36. package/{chunk-2DP4QU4T.js → chunk-J64OAILA.js} +1 -1
  37. package/{chunk-JEWYZWQN.js → chunk-JGXPFEYZ.js} +1 -1
  38. package/{chunk-PFZG7ACX.js → chunk-JXLBFHEH.js} +1 -1
  39. package/chunk-KKLVMIFL.js +1 -0
  40. package/{chunk-H4H72SDD.js → chunk-KUP2T6AG.js} +1 -1
  41. package/{chunk-YGVXQBSL.js → chunk-L7WPKNLR.js} +1 -1
  42. package/{chunk-5NPUZRFY.js → chunk-LHOHOKP5.js} +1 -1
  43. package/{chunk-PZOMPDFS.js → chunk-M2BAPEJT.js} +1 -1
  44. package/{chunk-IKPQDSQK.js → chunk-NA6MTRHY.js} +2 -2
  45. package/{chunk-2QQJ6ZBU.js → chunk-NDZU2O2Q.js} +1 -1
  46. package/chunk-NLXY47SY.js +1 -0
  47. package/{chunk-ZTM5RK6J.js → chunk-NXJQU7IR.js} +1 -1
  48. package/{chunk-POJT4MSX.js → chunk-NY63VRAY.js} +1 -1
  49. package/{chunk-E3KF5SRU.js → chunk-O2M7MRKP.js} +1 -1
  50. package/{chunk-AWXWGD4T.js → chunk-OQ2HMOSQ.js} +1 -1
  51. package/{chunk-YIMKL4H6.js → chunk-OVLLX4US.js} +1 -1
  52. package/{chunk-TC7HZO7D.js → chunk-P7OKMMNZ.js} +1 -1
  53. package/chunk-POAVE42X.js +1 -0
  54. package/{chunk-PKK4MIRQ.js → chunk-Q4I4JXKZ.js} +1 -1
  55. package/chunk-QAY6UFT6.js +1 -0
  56. package/chunk-QE4NBN5H.js +2 -0
  57. package/{chunk-QBHHGHBJ.js → chunk-QLUEDPL4.js} +1 -1
  58. package/{chunk-E6DCTQ34.js → chunk-QOQI2ALM.js} +1 -1
  59. package/{chunk-5KMPTDRJ.js → chunk-R2N5UWYB.js} +1 -1
  60. package/chunk-R3F6GIHW.js +1 -0
  61. package/{chunk-CENUQU54.js → chunk-RRM5OZPV.js} +2 -2
  62. package/{chunk-D2ZTG4GG.js → chunk-SFSDLKTN.js} +1 -1
  63. package/{chunk-QNEJVXLY.js → chunk-SHNCRKXQ.js} +1 -1
  64. package/chunk-SKFITJZT.js +1 -0
  65. package/{chunk-IME3RCXO.js → chunk-SNVT3M5C.js} +1 -1
  66. package/chunk-TPYX7QC7.js +1 -0
  67. package/{chunk-A66RJUYO.js → chunk-ULR2EPP5.js} +1 -1
  68. package/{chunk-5U6T552I.js → chunk-V5B247QH.js} +1 -1
  69. package/{chunk-UEUGGMU7.js → chunk-V7OQKE2Z.js} +1 -1
  70. package/{chunk-SQSTMZR3.js → chunk-VXJJGZ5F.js} +1 -1
  71. package/{chunk-DQAT6VCF.js → chunk-W7NX3PWJ.js} +1 -1
  72. package/chunk-WJEUX75A.js +1 -0
  73. package/{chunk-DQ7EARGM.js → chunk-WKA7CSGA.js} +1 -1
  74. package/{chunk-D7OP5FPA.js → chunk-WNHQELMC.js} +1 -1
  75. package/{chunk-J34TTKLN.js → chunk-WPIVIZS6.js} +1 -1
  76. package/{chunk-4VZNWPWO.js → chunk-X6SJVQXW.js} +1 -1
  77. package/{chunk-TX7FNDPL.js → chunk-X7XIFHAV.js} +1 -1
  78. package/{chunk-ATGKEH5N.js → chunk-XUQ74HFK.js} +1 -1
  79. package/{chunk-KIUZUG7C.js → chunk-Y2LISX47.js} +1 -1
  80. package/chunk-Y7PHGRGB.js +4 -0
  81. package/{chunk-AAIMJHAS.js → chunk-YU5AMM6C.js} +1 -1
  82. package/{chunk-35ZUPRX7.js → chunk-YWZRYOES.js} +1 -1
  83. package/{chunk-AE7T2DAH.js → chunk-ZQ56M63S.js} +1 -1
  84. package/chunk-ZSEZR472.js +1 -0
  85. package/{chunk-ULC4PUPL.js → chunk-ZXEF3CNK.js} +1 -1
  86. package/{chunk-GNJTDWT4.js → chunk-ZZBUNZZO.js} +1 -1
  87. package/{chunk-KFYMEXS6.js → chunk-ZZBZEHXF.js} +1 -1
  88. package/index.html +2 -2
  89. package/locale/messages.en.json +3 -0
  90. package/locale/messages.json +3 -0
  91. package/{main-NIJHUKOR.js → main-L5HX5P6R.js} +1 -1
  92. package/package.json +1 -1
  93. package/styles-5QAJP4BI.css +1 -0
  94. package/chunk-2DSLXKCS.js +0 -1
  95. package/chunk-43UBTE3L.js +0 -1
  96. package/chunk-4M7H3XII.js +0 -1
  97. package/chunk-FG7TM7PO.js +0 -1
  98. package/chunk-I3AX7HPO.js +0 -1
  99. package/chunk-IFCA5KWR.js +0 -1
  100. package/chunk-JIVJVJKU.js +0 -1
  101. package/chunk-KGO3OR7H.js +0 -1
  102. package/chunk-LH6XLRJU.js +0 -1
  103. package/chunk-PIMTQKQK.js +0 -1
  104. package/chunk-RIX6H2ZX.js +0 -1
  105. package/chunk-SDIOWQX7.js +0 -1
  106. package/chunk-TCDG7C5J.js +0 -1
  107. package/chunk-TGNUULAU.js +0 -1
  108. package/chunk-UVPLU2YS.js +0 -1
  109. package/chunk-XRI2BFC2.js +0 -2
  110. package/chunk-Z34TVTJN.js +0 -1
  111. package/chunk-Z4MDYLVI.js +0 -1
  112. package/chunk-ZBK64QS2.js +0 -4
  113. package/chunk-ZNZH3TU5.js +0 -1
  114. package/styles-JSM72RCO.css +0 -1
package/chunk-TGNUULAU.js DELETED
@@ -1 +0,0 @@
1
- import{a as Xt,ea as Ai}from"./chunk-NXROYR6L.js";import{$b as D,Ab as Ht,Ac as re,Bb as Bt,Bc as $t,Cb as ge,Cc as mt,Db as E,Dc as Wt,Eb as V,Fb as Ne,Gb as z,Hb as $,Ib as Ae,Lb as Ie,Mb as he,Pc as Gt,Qc as be,Ra as Mi,Rc as F,S as ht,Sa as S,Sc as J,U as ue,Ua as pt,V as Le,W as Ye,Wa as ye,Wc as xe,Xa as A,Xc as O,Y as Ce,Ya as Ei,Yc as fe,Zb as W,Zc as Ti,_ as I,_b as Pe,_c as ne,a as mi,ac as G,ad as qt,ba as Di,bc as b,ca as bi,cb as H,da as Si,db as Ze,ea as j,eb as Y,ed as Ni,fa as U,fc as xi,gb as ie,gc as pe,gd as Yt,hb as Te,hc as De,i as vi,ic as Oi,ja as Xe,jc as se,ka as He,kb as Me,kc as q,la as Be,lc as Vi,m as _i,mb as kt,mc as ve,nc as P,oa as Ft,ob as wi,oc as Ke,pa as T,pc as we,qc as ft,r as Ci,rb as Rt,sa as Qe,sc as jt,ta as je,tc as Ut,ub as Ee,uc as zt,va as K,vc as gt,wc as me,x as yi,xb as R,xc as Q,yb as L,zb as Lt}from"./chunk-ZBK64QS2.js";import{a as X,b as te,c as gi,d as m,e as w,f as x,g as M}from"./chunk-EUDKD2JW.js";var ji=(()=>{class i{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K))};static \u0275dir=Y({type:i})}return i})(),rt=(()=>{class i extends ji{static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,features:[ie]})}return i})(),Ve=new Ce(""),Vn={provide:Ve,useExisting:ue(()=>Tn),multi:!0},Tn=(()=>{class i extends rt{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([Vn]),ie]})}return i})(),Nn={provide:Ve,useExisting:ue(()=>Ui),multi:!0};function An(){let i=Xt()?Xt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var In=new Ce(""),Ui=(()=>{class i extends ji{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!An())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K),A(In,8))};static \u0275dir=Y({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&&W("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},standalone:!1,features:[re([Nn]),ie]})}return i})();function Jt(i){return i==null||ei(i)===0}function ei(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Fe=new Ce(""),ke=new Ce(""),Pn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ii=class{static min(e){return Fn(e)}static max(e){return kn(e)}static required(e){return Rn(e)}static requiredTrue(e){return Ln(e)}static email(e){return Hn(e)}static minLength(e){return Bn(e)}static maxLength(e){return jn(e)}static pattern(e){return Un(e)}static nullValidator(e){return zi()}static compose(e){return Xi(e)}static composeAsync(e){return Qi(e)}};function Fn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<i?{min:{min:i,actual:e.value}}:null}}function kn(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Rn(i){return Jt(i.value)?{required:!0}:null}function Ln(i){return i.value===!0?null:{required:!0}}function Hn(i){return Jt(i.value)||Pn.test(i.value)?null:{email:!0}}function Bn(i){return e=>{let t=e.value?.length??ei(e.value);return t===null||t===0?null:t<i?{minlength:{requiredLength:i,actualLength:t}}:null}}function jn(i){return e=>{let t=e.value?.length??ei(e.value);return t!==null&&t>i?{maxlength:{requiredLength:i,actualLength:t}}:null}}function Un(i){if(!i)return zi;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Jt(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function zi(i){return null}function $i(i){return i!=null}function Wi(i){return wi(i)?_i(i):i}function Gi(i){let e={};return i.forEach(t=>{e=t!=null?X(X({},e),t):e}),Object.keys(e).length===0?null:e}function qi(i,e){return e.map(t=>t(i))}function zn(i){return!i.validate}function Yi(i){return i.map(e=>zn(e)?e:t=>e.validate(t))}function Xi(i){if(!i)return null;let e=i.filter($i);return e.length==0?null:function(t){return Gi(qi(t,e))}}function ti(i){return i!=null?Xi(Yi(i)):null}function Qi(i){if(!i)return null;let e=i.filter($i);return e.length==0?null:function(t){let n=qi(t,e).map(Wi);return yi(n).pipe(Ci(Gi))}}function ii(i){return i!=null?Qi(Yi(i)):null}function Pi(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Zi(i){return i._rawValidators}function Ki(i){return i._rawAsyncValidators}function Qt(i){return i?Array.isArray(i)?i:[i]:[]}function _t(i,e){return Array.isArray(i)?i.includes(e):i===e}function Fi(i,e){let t=Qt(e);return Qt(i).forEach(o=>{_t(t,o)||t.push(o)}),t}function ki(i,e){return Qt(e).filter(t=>!_t(i,t))}var Ct=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=ti(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ii(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class extends Ct{name;get formDirective(){return null}get path(){return null}},_e=class extends Ct{_parent=null;name=null;valueAccessor=null},yt=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},$n={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Lr=te(X({},$n),{"[class.ng-submitted]":"isSubmitted"}),Hr=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(A(_e,2))};static \u0275dir=Y({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return i})(),Br=(()=>{class i extends yt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(A(oe,10))};static \u0275dir=Y({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return i})();var Je="VALID",vt="INVALID",Ue="PENDING",et="DISABLED",Oe=class{},Dt=class extends Oe{value;source;constructor(e,t){super(),this.value=e,this.source=t}},it=class extends Oe{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},nt=class extends Oe{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},ze=class extends Oe{status;source;constructor(e,t){super(),this.status=e,this.source=t}},bt=class extends Oe{source;constructor(e){super(),this.source=e}},St=class extends Oe{source;constructor(e){super(),this.source=e}};function ni(i){return(xt(i)?i.validators:i)||null}function Wn(i){return Array.isArray(i)?ti(i):i||null}function oi(i,e){return(xt(e)?e.asyncValidators:i)||null}function Gn(i){return Array.isArray(i)?ii(i):i||null}function xt(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Ji(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new ht(1e3,"");if(!n[t])throw new ht(1001,"")}function en(i,e,t){i._forEachChild((n,o)=>{if(t[o]===void 0)throw new ht(1002,"")})}var $e=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return be(this.statusReactive)}set status(e){be(()=>this.statusReactive.set(e))}_status=F(()=>this.statusReactive());statusReactive=T(void 0);get valid(){return this.status===Je}get invalid(){return this.status===vt}get pending(){return this.status==Ue}get disabled(){return this.status===et}get enabled(){return this.status!==et}errors;get pristine(){return be(this.pristineReactive)}set pristine(e){be(()=>this.pristineReactive.set(e))}_pristine=F(()=>this.pristineReactive());pristineReactive=T(!0);get dirty(){return!this.pristine}get touched(){return be(this.touchedReactive)}set touched(e){be(()=>this.touchedReactive.set(e))}_touched=F(()=>this.touchedReactive());touchedReactive=T(!1);get untouched(){return!this.touched}_events=new vi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Fi(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fi(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ki(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ki(e,this._rawAsyncValidators))}hasValidator(e){return _t(this._rawValidators,e)}hasAsyncValidator(e){return _t(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(te(X({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new nt(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new nt(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(te(X({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new it(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new it(!0,n))}markAsPending(e={}){this.status=Ue;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new ze(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(te(X({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=et,this.errors=null,this._forEachChild(o=>{o.disable(te(X({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,n)),this._events.next(new ze(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(te(X({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Je,this._forEachChild(n=>{n.enable(te(X({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(te(X({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===Ue)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Dt(this.value,t)),this._events.next(new ze(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(te(X({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=Ue,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=Wi(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new ze(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?vt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ue)?Ue:this._anyControlsHaveStatus(vt)?vt:Je}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),o&&this._events.next(new it(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new nt(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){xt(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Wn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Gn(this._rawAsyncValidators)}},We=class extends $e{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){en(this,!0,e),Object.keys(e).forEach(n=>{Ji(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((o,s)=>{n=t(n,o,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Zt=class extends We{};var Re=new Ce("",{providedIn:"root",factory:()=>at}),at="always";function Ot(i,e){return[...e.path,i]}function st(i,e,t=at){si(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Yn(i,e),Qn(i,e),Xn(i,e),qn(i,e)}function Mt(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),wt(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Et(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function qn(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function si(i,e){let t=Zi(i);e.validator!==null?i.setValidators(Pi(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Ki(i);e.asyncValidator!==null?i.setAsyncValidators(Pi(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();Et(e._rawValidators,o),Et(e._rawAsyncValidators,o)}function wt(i,e){let t=!1;if(i!==null){if(e.validator!==null){let o=Zi(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.validator);s.length!==o.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let o=Ki(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.asyncValidator);s.length!==o.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return Et(e._rawValidators,n),Et(e._rawAsyncValidators,n),t}function Yn(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&tn(i,e)})}function Xn(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&tn(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function tn(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Qn(i,e){let t=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function nn(i,e){i==null,si(i,e)}function Zn(i,e){return wt(i,e)}function ri(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Kn(i){return Object.getPrototypeOf(i.constructor)===rt}function on(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function ai(i,e){if(!e)return null;Array.isArray(e);let t,n,o;return e.forEach(s=>{s.constructor===Ui?t=s:Kn(s)?n=s:o=s}),o||n||t||null}function Jn(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}var eo={provide:oe,useExisting:ue(()=>to)},tt=Promise.resolve(),to=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this.submittedReactive)}_submitted=F(()=>this.submittedReactive());submittedReactive=T(!1);_directives=new Set;form;ngSubmit=new Me;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new We({},ti(t),ii(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),st(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path),o=new We({});nn(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){tt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),on(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new St(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&W("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([eo]),ie]})}return i})();function Ri(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function Li(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ot=class extends $e{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(ni(t),oi(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),xt(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Li(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ri(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ri(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Li(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var io=i=>i instanceof ot,no=(()=>{class i extends oe{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,standalone:!1,features:[ie]})}return i})();var oo={provide:_e,useExisting:ue(()=>so)},Hi=Promise.resolve(),so=(()=>{class i extends _e{_changeDetectorRef;callSetDisabledState;control=new ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Me;constructor(t,n,o,s,c,y){super(),this._changeDetectorRef=c,this.callSetDisabledState=y,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),ri(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){st(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Hi.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Ni(n);Hi.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ot(t,this._parent):[t]}static \u0275fac=function(n){return new(n||i)(A(oe,9),A(Fe,10),A(ke,10),A(Ve,10),A(qt,8),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[re([oo]),ie,Qe]})}return i})();var Ur=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=Y({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),ro={provide:Ve,useExisting:ue(()=>ao),multi:!0},ao=(()=>{class i extends rt{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&W("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ro]),ie]})}return i})(),lo={provide:Ve,useExisting:ue(()=>uo),multi:!0};var co=(()=>{class i{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Le({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),uo=(()=>{class i extends rt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=I(Re,{optional:!0})??at;constructor(t,n,o,s){super(t,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(_e),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(A(ye),A(K),A(co),A(Xe))};static \u0275dir=Y({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[re([lo]),ie]})}return i})(),ho={provide:Ve,useExisting:ue(()=>po),multi:!0},po=(()=>{class i extends rt{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=je(i)))(o||i)}})();static \u0275dir=Y({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&W("change",function(c){return o.onChange(c.target.value)})("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[re([ho]),ie]})}return i})(),li=new Ce(""),fo={provide:_e,useExisting:ue(()=>go)},go=(()=>{class i extends _e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=ai(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Mt(n,this,!1),st(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}ri(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Mt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Ve,10),A(li,8),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[re([fo]),ie,Qe]})}return i})(),mo={provide:oe,useExisting:ue(()=>sn)},sn=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=F(()=>this._submittedReactive());_submittedReactive=T(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Me;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return st(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Mt(t.control||null,t,!1),Jn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),on(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new bt(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new St(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Mt(n||null,t),io(o)&&(st(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);nn(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&Zn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){si(this.form,this),this._oldForm&&wt(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(A(Fe,10),A(ke,10),A(Re,8))};static \u0275dir=Y({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&W("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[re([mo]),ie,Qe]})}return i})(),vo={provide:oe,useExisting:ue(()=>rn)},rn=(()=>{class i extends no{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){ln(this._parent)}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10))};static \u0275dir=Y({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[re([vo]),ie]})}return i})(),_o={provide:oe,useExisting:ue(()=>an)},an=(()=>{class i extends oe{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){ln(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10))};static \u0275dir=Y({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[re([_o]),ie]})}return i})();function ln(i){return!(i instanceof rn)&&!(i instanceof sn)&&!(i instanceof an)}var Co={provide:_e,useExisting:ue(()=>yo)},yo=(()=>{class i extends _e{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=c,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=ai(this,s)}ngOnChanges(t){this._added||this._setUpControl(),ri(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Ot(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(A(oe,13),A(Fe,10),A(ke,10),A(Ve,10),A(li,8))};static \u0275dir=Y({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[re([Co]),ie,Qe]})}return i})();var cn=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({})}return i})(),Kt=class extends $e{constructor(e,t,n){super(ni(t),oi(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){en(this,!1,e),e.forEach((n,o)=>{Ji(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Bi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var zr=(()=>{class i{useNonNullable=!1;get nonNullable(){let t=new i;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),s={};return Bi(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new We(o,s)}record(t,n=null){let o=this._reduceControls(t);return new Zt(o,n)}control(t,n,o){let s={};return this.useNonNullable?(Bi(n)?s=n:(s.validators=n,s.asyncValidators=o),new ot(t,te(X({},s),{nonNullable:!0}))):new ot(t,n,o)}array(t,n,o){let s=t.map(c=>this._createControl(c));return new Kt(s,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof ot)return t;if(t instanceof $e)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,o,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Le({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var $r=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({imports:[cn]})}return i})(),Wr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:li,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ze({type:i});static \u0275inj=Ye({imports:[cn]})}return i})();var ce=["*"],Do=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],bo=["[icon]","sh-icon","[title]","*","[content]","p"];function So(i,e){i&1&&(E(0,"sh-icon",3),P(1,"info"),V())}function Mo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"info"),V())}function Eo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"warning"),V())}function wo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"warning-octagon"),V())}function xo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"check-circle"),V())}function Oo(i,e){i&1&&(E(0,"sh-icon",3),P(1,"question"),V())}function Vo(i,e){if(i&1){let t=he();E(0,"sh-icon",7),W("click",function(){j(t);let o=D();return U(o.removeAlert())}),P(1,"plus"),V()}}var To=["dialogRef"];function No(i,e){if(i&1){let t=he();z(0,"div",5),Pe("click",function(){j(t);let o=D(2);return U(o.isOpen.set(!1))}),$()}}function Ao(i,e){if(i&1&&(z(0,"dialog",2,0)(2,"div",3),b(3),$(),R(4,No,1,0,"div",4),$()),i&2){let t=D(),n=Q(0);ve(n.class),se("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),S(4),L(t.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Io=["shButton",""];var Po=["triggerRef"],Fo=["popoverRef"],ko=["popoverContentRef"],Ro=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],Lo=["[trigger]","button","[shButton]","*"];function Ho(i,e){if(i&1){let t=he();z(0,"div",6,1)(2,"div",7),Pe("click",function(o){j(t);let s=D();return U(s.eventClose(o))}),$(),z(3,"div",8,2),b(5,3),$()()}if(i&2){let t=D();Ee("id",t.id()+"hello"),S(3),Vi(t.menuStyle()),se("position-anchor",t.id())}}var Bo=()=>({closeOnButton:!1,closeOnEsc:!0});var jo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Uo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],zo=["input"],$o=[[["label"]]],Wo=["label"];function Go(i,e){if(i&1&&(E(0,"div",3),P(1),V()),i&2){let t=D();S(),Ke(t.files()[0].name)}}function qo(i,e){if(i&1&&(E(0,"div",3),P(1),V()),i&2){let t=D();S(),we("",t.files().length," files selected")}}function Yo(i,e){if(i&1&&(E(0,"div",4),P(1),V()),i&2){let t=D();S(),Ke(t.filesOver()?t.overlayText():t.placeholder())}}var Xo=["inputRef"],Qo=["optionsRef"],Zo=["*",[["","menu",""]]],Ko=["*","[menu]"];function Jo(i,e){i&1&&(E(0,"sh-icon",5),P(1,"caret-down"),V())}var es=[[["label"]],[["input","type","range"]]],ts=["label","input[type=range]"],is=["optionsWrap"],ns=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],os=["label","[prefix]","[boxPrefix]","input","textarea"],ss=()=>({closeOnButton:!1,closeOnEsc:!1}),dn=(i,e)=>({$implicit:i,last:e}),pi=i=>({$implicit:i});function rs(i,e){if(i&1&&P(0),i&2){let t=D();we(" ",t.inputValue()," ")}}function as(i,e){i&1&&Ie(0)}function ls(i,e){if(i&1&&Te(0,as,1,0,"ng-container",13),i&2){let t=D(3),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=Q(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function cs(i,e){if(i&1&&P(0),i&2){let t=D(3).$implicit,n=D(2);we(" ",n.getLabel(t)," ")}}function ds(i,e){if(i&1){let t=he();E(0,"sh-chip",12),W("click",function(o){j(t);let s=D(2).$index,c=D(2);return U(c.removeSelectedOptionByIndex(o,s))}),R(1,ls,1,5,"ng-container")(2,cs,1,1),E(3,"sh-icon"),P(4,"x-bold"),V()()}if(i&2){let t=D(4),n=Q(3);ve(t.selectClasses()),S(),L(n?1:2)}}function us(i,e){i&1&&Ie(0)}function hs(i,e){if(i&1&&Te(0,us,1,0,"ng-container",13),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=Q(3);ge("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function ps(i,e){if(i&1&&P(0),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count,c=D(2);we(" ",o===s-1?c.getLabel(n):c.getLabel(n)+","," ")}}function fs(i,e){if(i&1&&R(0,hs,1,5,"ng-container")(1,ps,1,1),i&2){D(5);let t=Q(3);L(t?0:1)}}function gs(i,e){if(i&1&&R(0,fs,2,1),i&2){D(4);let t=Q(6);L(t?-1:0)}}function ms(i,e){if(i&1&&R(0,ds,5,3,"sh-chip",11)(1,gs,1,1),i&2){D(3);let t=Q(5);L(t?0:1)}}function vs(i,e){if(i&1&&R(0,ms,2,1),i&2){let t=e.$implicit;L(t?0:-1)}}function _s(i,e){if(i&1&&Ht(0,vs,1,1,null,null,Lt),i&2){D();let t=Q(2);Bt(t)}}function Cs(i,e){i&1&&Ie(0)}function ys(i,e){if(i&1&&Te(0,Cs,1,0,"ng-container",14),i&2){D(2);let t=Q(0);ge("ngTemplateOutlet",t)}}function Ds(i,e){if(i&1&&P(0),i&2){let t=D(2);we(" ",t.placeholderText()??""," ")}}function bs(i,e){if(i&1&&R(0,ys,1,1,"ng-container")(1,Ds,1,1),i&2){D();let t=Q(0);L(t?0:1)}}function Ss(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-down"),V())}function Ms(i,e){i&1&&Ne(0,"sh-spinner",7)}function Es(i,e){i&1&&(E(0,"sh-icon",6),P(1,"list-magnifying-glass"),V())}function ws(i,e){i&1&&(E(0,"sh-icon",6),P(1,"magnifying-glass"),V())}function xs(i,e){if(i&1){let t=he();E(0,"sh-icon",15),W("click",function(o){j(t);let s=D();return U(s.clear(o))}),P(1,"x-bold"),V()}}function Os(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-down"),V())}function Vs(i,e){i&1&&(E(0,"sh-icon",6),P(1,"caret-up"),V())}function Ts(i,e){if(i&1&&(E(0,"p",9),P(1),V()),i&2){let t=D(3);S(),Ke(t.freeTextTitle())}}function Ns(i,e){i&1&&Ie(0)}function As(i,e){if(i&1&&Te(0,Ns,1,0,"ng-container",13),i&2){D(2);let t=Q(0);D();let n=Q(1);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Is(i,e){i&1&&Ie(0)}function Ps(i,e){if(i&1&&Te(0,Is,1,0,"ng-container",13),i&2){D(2);let t=Q(0);D();let n=Q(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function Fs(i,e){if(i&1&&P(0),i&2){D(2);let t=Q(1);we(" ",t," ")}}function ks(i,e){i&1&&Ne(0,"sh-divider")}function Rs(i,e){if(i&1){let t=he();R(0,Ts,2,1,"p",9),E(1,"li",16),W("click",function(){j(t);let o=D(2);return U(o.toggleOptionByIndex(-1))}),R(2,As,1,4,"ng-container")(3,Ps,1,4,"ng-container")(4,Fs,1,1),V(),R(5,ks,1,0,"sh-divider")}if(i&2){D();let t=Q(0),n=D(),o=Q(1),s=Q(4);L(n.freeTextTitle()?0:-1),S(),q("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),ge("id",n.getLabelAsSlug(t)),Ee("aria-selected",n.isSelected(-1)),S(),L(o?2:s?3:4),S(3),L(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ls(i,e){if(i&1&&(gt(0)(1),R(2,Rs,6,9)),i&2){let t=D(),n=me(t.computedFreeTextOption());S();let o=me(t.getValue(n));S(),L(o.length>0?2:-1)}}function Hs(i,e){if(i&1&&(E(0,"p",9),P(1),V()),i&2){let t=D();S(),Ke(t.optionTitle())}}function Bs(i,e){if(i&1&&Ne(0,"sh-checkbox"),i&2){let t=D().$index,n=D();ve(n.selectClasses()),q("active",n.isSelected(t))}}function js(i,e){i&1&&Ie(0)}function Us(i,e){if(i&1&&Te(0,js,1,0,"ng-container",13),i&2){let t=D().$implicit;D();let n=Q(4);ge("ngTemplateOutlet",n)("ngTemplateOutletContext",mt(2,pi,t))}}function zs(i,e){if(i&1&&P(0),i&2){let t=D().$implicit,n=D();we(" ",n.getLabel(t)," ")}}function $s(i,e){if(i&1){let t=he();E(0,"li",16),W("click",function(){let o=j(t).$index,s=D();return U(s.toggleOptionByIndex(o))}),R(1,Bs,1,4,"sh-checkbox",17),R(2,Us,1,4,"ng-container")(3,zs,1,1),V()}if(i&2){let t=e.$implicit,n=e.$index,o=D(),s=Q(4);q("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),ge("id",o.getLabelAsSlug(t)),Ee("aria-selected",o.isSelected(n)),S(),L(o.selectMultiple()?1:-1),S(),L(s?2:3)}}var Ws=["dragImageElement"],Gs=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],qs=["[sidenav]","[sidenav-closed-topbar]","*"];function Ys(i,e){i&1&&Ae(0,"div",1,0)}function Xs(i,e){if(i&1){let t=he();z(0,"div",7),Pe("drop",function(o){j(t);let s=D();return U(s.drop(o))})("dragenter",function(){j(t);let o=D();return U(o.dragEnter())})("dragleave",function(){j(t);let o=D();return U(o.dragLeave())}),$()}}function Qs(i,e){if(i&1){let t=he();z(0,"div",8),Pe("dragstart",function(o){j(t);let s=D();return U(s.dragStart(o))})("dragend",function(o){j(t);let s=D();return U(s.dragEnd(o))})("drag",function(o){j(t);let s=D();return U(s.drag(o))})("touchstart",function(o){j(t);let s=D();return U(s.touchStart(o))})("touchmove",function(o){j(t);let s=D();return U(s.touchMove(o))})("touchend",function(o){j(t);let s=D();return U(s.touchEnd(o))})("touchcancel",function(o){j(t);let s=D();return U(s.touchCancel(o))}),$()}}var Zs=["thead"],Ks=["tbody"],Js=[[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],er=["th","[thead]","*","[table-no-rows]"];function tr(i,e){i&1&&Ne(0,"sh-progress-bar",2)}function ir(i,e){i&1&&(E(0,"div",3),b(1,3),V())}var nr=[[["","title",""]],"*"],or=["[title]","*"];function sr(i,e){i&1&&P(0,"Title")}function rr(i,e){i&1&&(E(0,"sh-icon",1),P(1,"caret-down"),V())}var ar=["bold","thin","light","fill","duotone"],qe=(()=>{var e,t;let n=class n{constructor(){w(this,e,I(K));w(this,t,I(ye))}ngAfterContentInit(){let s=m(this,e).nativeElement.textContent?.trim();if(!s)return;let c=s.split("-").at(-1);c&&ar.includes(c)&&m(this,t).addClass(m(this,e).nativeElement,c)}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=H({type:n,selectors:[["sh-icon"]],ngContentSelectors:ce,decls:1,vars:0,template:function(c,y){c&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function At(i=null){let e=i??I(K).nativeElement;if(!e)return T("");let t=T(e.className);if(typeof MutationObserver>"u")return t.asReadonly();let n=I(Be),o=new MutationObserver(s=>{for(let c of s)if(c.type==="attributes"&&c.attributeName==="class"){let y=c.target;t.set(y.className)}});return o.observe(e,{attributes:!0,attributeFilter:["class"]}),n.onDestroy(()=>o.disconnect()),t.asReadonly()}var It=new Ce("Ship UI Config"),lr=["simple","outlined","flat","raised"],Ca=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(It,{optional:!0})),this.variant=T(m(this,e)?.alertVariant??""),this._el=I(K),this.alertService=O(null),this.id=O(null),this.currentClasses=At(),this.activeClass=F(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?lr.find(y=>this.currentClasses().includes(y))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:bo,decls:19,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(s,c){if(s&1&&(G(Do),E(0,"div",1)(1,"div",2,0),b(3),b(4,1),V(),E(5,"div",2),R(6,So,2,0,"sh-icon",3)(7,Mo,2,0,"sh-icon",3)(8,Eo,2,0,"sh-icon",3)(9,wo,2,0,"sh-icon",3)(10,xo,2,0,"sh-icon",3)(11,Oo,2,0,"sh-icon",3),V(),E(12,"div",4),b(13,2),b(14,3),V(),R(15,Vo,2,0,"sh-icon",5),E(16,"div",6),b(17,4),b(18,5),V()()),s&2){let y=Oi(2);S(),se("display",y.children.length?"block":"none");let C=c.currentClasses();S(5),L(C.includes("primary")?6:C.includes("accent")?7:C.includes("warn")?8:C.includes("error")?9:C.includes("success")?10:11),S(9),L(c.id()?15:-1)}},dependencies:[qe],encapsulation:2,changeDetection:0});let i=t;return i})();function Pt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ya=(()=>{let e=class e{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=Pt();this.alertHistory.update(s=>[te(X({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(c=>te(X({},c),{animateIn:c.id===o?!1:c.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>te(X({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>te(X({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=Le({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),cr={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},dr=(()=>{var e,t;let n=class n{constructor(){w(this,e);w(this,t);x(this,e,I(He)),x(this,t,I(It,{optional:!0})),this.dialogRef=fe("dialogRef"),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=F(()=>X(te(X({},cr),{class:m(this,t)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=J(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),m(this,e).addEventListener("keydown",c=>{c.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&c.preventDefault(),c.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=H({type:n,selectors:[["sh-dialog"]],viewQuery:function(c,y){c&1&&pe(y.dialogRef,To,5),c&2&&De()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ce,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(c,y){c&1&&(G(),gt(0),R(1,Ao,5,11,"dialog",1)),c&2&&(me(y.defaultOptionMerge()),S(),L(y.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),Da=(()=>{var e,t,n,o,un,lt;let y=class y{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);x(this,e,I(He)),x(this,t,m(this,e).querySelector("body")),x(this,n,I(Rt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(r,d){let u=m(this,n).injector,p=M(this,o,un).call(this),g=!1,Z=d||{},{data:v,closed:a}=Z,l=gi(Z,["data","closed"]);this.compRef&&M(this,o,lt).call(this,!0),this.insertedCompRef=Yt(r,{environmentInjector:u}),this.compRef=Yt(dr,{hostElement:p,environmentInjector:u,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let f=this.insertedCompRef.instance?.data,h=this.insertedCompRef.instance?.closed;if(v){if(Ft(f))this.insertedCompRef.setInput("data",v);else if(!Ft(f))throw new Error("data is not an input signal on the passed component")}h instanceof Gt&&(this.closedFieldSub=h.subscribe((...B)=>{M(this,o,lt).call(this),!g&&(g=!0,a?.(...B),this.compRef?.instance.closed.emit(...B))})),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",l),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>N());let _=this;function N(B=void 0){var k;M(k=_,o,lt).call(k),!g&&(g=!0,h&&h instanceof Gt&&h.emit(B),a?.(B))}return{component:this.insertedCompRef.instance,close:N,closed:this.compRef.instance.closed}}ngOnDestroy(){M(this,o,lt).call(this,!0)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,un=function(){let r=m(this,e).createElement("sh-dialog-ref");return r.id="sh-dialog-ref",m(this,e).getElementById("sh-dialog-ref")||m(this,t)?.append(r),m(this,e).getElementById("sh-dialog-ref")},lt=function(r=!1){let d=this;r||queueMicrotask(()=>u());function u(){d.insertedCompRef&&(m(d,n).detachView(d.insertedCompRef.hostView),d.closedFieldSub?.unsubscribe(),d.insertedCompRef.destroy()),d.compRef&&(m(d,n).detachView(d.compRef.hostView),d.compClosedSub?.unsubscribe(),d.compRef.destroy())}},y.\u0275fac=function(d){return new(d||y)},y.\u0275prov=Le({token:y,factory:y.\u0275fac,providedIn:"root"});let i=y;return i})();var ba=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-button-group"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--btng-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Sa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Io,ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Ma=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(It,{optional:!0})),this.class=T(m(this,e)?.cardType??"type-a")}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,c){s&2&&ve(c.class())},ngContentSelectors:ce,decls:1,vars:0,template:function(s,c){s&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),ur=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-checkbox"]],ngContentSelectors:ce,decls:7,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"]],template:function(o,s){o&1&&(G(),E(0,"div",0)(1,"sh-icon",1),P(2,"check-bold"),V(),E(3,"sh-icon",2),P(4,"minus-bold"),V()(),E(5,"div",3),b(6),V()),o&2&&ve(s.currentClassList())},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),hr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:ce,decls:2,vars:0,template:function(o,s){o&1&&(G(),z(0,"div"),b(1),$())},encapsulation:2,changeDetection:0});let i=e;return i})();var Vt=4,pr=["scroll","auto"],fr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},hn=(()=>{var e,t,pn,fn,gn,mn,vn,Tt;let r=class r{constructor(){w(this,t);w(this,e);x(this,e,I(He)),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=O(!1),this.disableOpenByClick=O(!1),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=F(()=>X(X({},fr),this.options())),this.triggerRef=fe.required("triggerRef"),this.popoverRef=fe("popoverRef"),this.popoverContentRef=fe("popoverContentRef"),this.id=T("--"+Pt()),this.menuStyle=T(null),this.openAbort=null,this.openEffect=J(()=>{let u=this.isOpen();queueMicrotask(()=>{let p=this.popoverRef()?.nativeElement;if(!p){this.openAbort?.abort(),this.openAbort=null;return}u?(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,m(this,e).addEventListener("keydown",g=>{g.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&g.preventDefault(),g.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),p.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{M(this,t,pn).call(this,p).addEventListener("scroll",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>M(this,t,Tt).call(this),{signal:this.openAbort?.signal}),M(this,t,Tt).call(this)})):(this.closed.emit(),this.openAbort?.abort(),this.openAbort=null)})})}toggleIsOpen(u){this.disableOpenByClick()||(u.preventDefault(),u.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(u){this.isOpen()&&this.isOpen.set(!1)}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}};e=new WeakMap,t=new WeakSet,pn=function(u){let p=u.parentElement;for(;p;){if(pr.indexOf(window?.getComputedStyle(p).overflowY)>-1&&p.scrollHeight>p.clientHeight)return p;p=p.parentElement}return m(this,e).documentElement},fn=function(u,p){let g=u.left,v=u.bottom+Vt;return{left:g,top:v}},gn=function(u,p){let g=u.right+Vt,v=u.top;return{left:g,top:v}},mn=function(u,p){let g=u.right+Vt,v=u.bottom;return{left:g,top:v}},vn=function(u,p){let g=u.left,v=u.bottom-u.height-p.height-Vt;return{left:g,top:v}},Tt=function(){let u=this.triggerRef()?.nativeElement.getBoundingClientRect(),p=this.popoverContentRef()?.nativeElement.getBoundingClientRect(),g=[M(this,t,gn),M(this,t,mn)],v=[M(this,t,fn),M(this,t,vn)],a=this.asMultiLayer()?g:v;for(let f=0;f<a.length;f++){let h=a[f](u,p),_=h.left+(p?.width||0)>window.innerWidth,N=h.top+(p?.height||0)>window.innerHeight;if(!_&&!N){this.menuStyle.set({left:h.left+"px",top:h.top+"px"});return}}let l=a[0](u,p);this.menuStyle.set({left:l.left+"px",top:l.top+"px"})},r.\u0275fac=function(p){return new(p||r)},r.\u0275cmp=H({type:r,selectors:[["sh-popover"]],viewQuery:function(p,g){p&1&&(pe(g.triggerRef,Po,5),pe(g.popoverRef,Fo,5),pe(g.popoverContentRef,ko,5)),p&2&&De(3)},hostVars:2,hostBindings:function(p,g){p&2&&q("multi-layer",g.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Lo,decls:8,vars:4,consts:[["triggerRef",""],["popoverRef",""],["popoverContentRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","manual",1,"popover"],[1,"overlay",3,"click"],[1,"popover-content"]],template:function(p,g){if(p&1){let v=he();G(Ro),z(0,"div",3,0),Pe("click",function(l){return j(v),U(g.toggleIsOpen(l))}),z(2,"div",4),b(3),b(4,1),b(5,2),$(),Ae(6,"div",5),$(),R(7,Ho,6,5,"div",6)}p&2&&(Ee("popovertarget",g.id()+"hello"),S(6),se("anchor-name",g.id()),S(),L(g.isOpen()?7:-1))},encapsulation:2,changeDetection:0});let i=r;return i})();var gr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-divider"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var fi=(()=>{var e;let t=class t{constructor(){w(this,e,I(K));kt(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=m(this,e).nativeElement.querySelector("textarea");if(!o&&s!==null){let C=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(C,0)};var c=C,y=r;s.addEventListener("change",C),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),C()}})}onClick(){m(this,e).nativeElement.querySelector("input")&&m(this,e).nativeElement.querySelector("input").focus(),m(this,e).nativeElement.querySelector("textarea")&&m(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=H({type:t,selectors:[["sh-form-field"]],hostBindings:function(s,c){s&1&&W("click",function(){return c.onClick()})},ngContentSelectors:Uo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,c){s&1&&(G(jo),b(0),z(1,"div",0)(2,"div",1),b(3,1),b(4,2),b(5,3),$(),b(6,4),b(7,5),z(8,"div",2),b(9,6),b(10,7),b(11,8),$()(),z(12,"div",3)(13,"div",4),b(14,9),$(),z(15,"div",5),b(16,10),$()())},encapsulation:2,changeDetection:0});let i=t;return i})(),Ea=(()=>{let e=class e{constructor(){this._el=I(K),this.inputRef=fe.required("input"),this.filesOver=T(!1),this.multiple=O(),this.accept=O(null),this.placeholder=ne("Click or drag files here"),this.overlayText=O("Drop files here"),this.files=ne([]),this.fileUploadClasses=F(()=>this._el.nativeElement.classList.toString()),this.inputEffect=J(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&pe(s.inputRef,zo,5),o&2&&De()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Wo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(o,s){o&1&&(G($o),E(0,"sh-form-field"),b(1,0,["ngProjectAs","label",5,["label"]]),E(2,"div",2,0),R(4,Go,2,1,"div",3)(5,qo,2,1,"div",3)(6,Yo,2,1,"div",4),Ne(7,"input",5,1)(9,"div",6),V(),E(10,"sh-icon",7),P(11,"upload-simple"),V()()),o&2&&(ve(s.fileUploadClasses()),S(4),L(s.files().length===1?4:s.files().length>1?5:6),S(3),Ee("multiple",s.multiple())("accept",s.accept()),S(2),q("files-over",s.filesOver()))},dependencies:[fi,qe],encapsulation:2,changeDetection:0});let i=e;return i})(),wa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-list"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();function _n(i,e){let t=e?.injector||(Si(_n),I(Xe)),{debounce:n=0,initialValue:o=void 0,transform:s=h=>h,compare:c=(h,_)=>h===_,forceType:y=void 0,returnPreviousValue:C=!0}=e||{},r=T(o),d=t.get(Be),u=F(()=>{let h=i()?.nativeElement;if(h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement)return l(h)}),p=!1,g,v=null;return J(()=>{let h=u();if(!h)return r.set(C&&g?s(g):void 0);o!==void 0&&h.value===""?r.set(o):h.value!==""&&a();let _=N=>{v!==null&&clearTimeout(v),v=setTimeout(()=>{v=null,a()},n)};h.addEventListener("input",_),h.addEventListener("inputValueChanged",_),d.onDestroy(()=>{h.removeEventListener("input",_),h.removeEventListener("inputValueChanged",_),v!==null&&clearTimeout(v)})},{injector:t}),J(()=>{let h=u();if(!h)return;let _=r()??"",N=_==null?"":String(_);h.value!==N&&(g=N,h.value=N,h.dispatchEvent(new Event("input")))},{injector:t}),r;function a(){if(!p){p=!0;try{let h=u();if(!h)return;let _=h.value,N=y?f(_,y):s(_);g=_,c(r(),N)||r.set(N)}finally{p=!1}}}function l(h){return Object.defineProperty(h,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").get.call(this)},set(_){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").set.call(this,_);let Z=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:_}});return this.dispatchEvent(Z),_}}),h}function f(h,_){switch(_){case"string":return h.toString();case"number":let N=Number(h);return isNaN(N)?void 0:N;case"boolean":return h.toLowerCase()==="true"?!0:h.toLowerCase()==="false"?!1:void 0;default:return h}}}function Cn(i,e){let t=I(Xe),n=t.get(Be),o=T([]),s=null,c=null,y=(r,d)=>{c&&c.disconnect();let u=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(u),typeof MutationObserver<"u"&&(c=new MutationObserver(p=>{queueMicrotask(()=>{let g=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(g)})}),c.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>C())};s=J(()=>{let r=typeof i=="function"&&i[mi]?i():i,d=typeof e=="function"?e():e;r&&d?.length>0?y(r,d):(o.set([]),c&&(c.disconnect(),c=null))},{injector:t});function C(){s&&s.destroy(),c&&c.disconnect()}return{signal:o.asReadonly(),destroy:C}}var xa=(()=>{var e,t,n,yn,ci;let c=class c{constructor(){w(this,n);w(this,e);w(this,t);x(this,e,I(He)),x(this,t,I(ye)),this.asMultiLayer=O(!1),this.openIndicator=O(!1),this.disabled=O(!1),this.customOptionElementSelectors=O(["button"]),this.keepClickedOptionActive=O(!1),this.closeOnClick=O(!0),this.isOpen=ne(!1),this.closed=xe(),this.searchable=O(!1),this.activeOptionIndex=T(-1),this.inputRef=fe("inputRef"),this.optionsRef=fe("optionsRef"),this.options=Cn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=F(()=>this.options.signal().filter(C=>!C.disabled)),this.inputValue=_n(this.inputRef),this.abortController=null,this.optionsEffect=J(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||m(this,e).documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let r=this.inputRef()?.nativeElement;r&&(queueMicrotask(()=>r.focus()),r.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",u=>{let p=u.target,g=this.activeElements();if(!g.length){let a=this.optionsEl();this.activeElements.set(a),g=a}let v=g.findIndex(a=>a===p);v>-1&&(this.activeOptionIndex.set(v),r.focus())}))}),this.keyDownEventListener=C=>{let r=this.activeOptionIndex();C.key==="ArrowDown"?(C.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):C.key==="ArrowUp"?(C.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):C.key==="Enter"?(C.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):C.key==="Tab"&&(C.preventDefault(),this.close("closed"))},this._lastElementList=[],this.activeElements=T([]),this.lastInputValue="",this.inputValueEffect=J(()=>{if(!this.searchable())return;let r=(this.inputValue()??"").toLowerCase();if(M(this,n,ci).call(this),!r||r===""){let u=this.optionsEl();this.activeElements.set(u),this._lastElementList=u;for(let p=0;p<u.length;p++)m(this,t).removeStyle(u[p],"order");return}if(!r||r==="")return;let d=this._lastElementList.length&&r.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=r;for(let u=0;u<d.length;u++){let p=d[u],g=p.textContent?.toLowerCase()||"",v=M(this,n,yn).call(this,g,r);p.value=v}d=d.filter(u=>u.value>0).sort((u,p)=>p.value-u.value);for(let u=0;u<d.length;u++)m(this,t).setStyle(d[u],"order",u);this.activeElements.set(d),this._lastElementList=d}),this.activeOptionIndexEffect=J(()=>{let C=this.activeElements(),r=this.activeOptionIndex();for(let d=0;d<C.length;d++)C[d].classList.remove("active");r>-1&&(C[r].scrollIntoView({block:"center"}),C[r].classList.add("active"))})}toggleIsOpen(C){C.preventDefault(),C.stopPropagation(),!this.disabled()&&(this.isOpen.set(!this.isOpen()),this.searchable()&&this.isOpen()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}nextActiveIndex(C){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(C===-1||C===r.length-1)return 0;let d=C+1;return r[d].disabled?this.nextActiveIndex(d):d}prevActiveIndex(C){let r=this.activeElements();if(!r.length){let u=this.optionsEl();this.activeElements.set(u),r=u}if(C===0||C===-1)return r.length-1;let d=C-1;return r[d].disabled?this.prevActiveIndex(d):d}close(C="closed",r){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||C==="closed")&&M(this,n,ci).call(this),this.isOpen.set(!1),this.closed.emit(C==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,t=new WeakMap,n=new WeakSet,yn=function(C,r){if(!r)return 0;let d=0,u=-1,p=0,g=!0;for(let v=0;v<r.length;v++){let a=r[v];if(C.length>u+1&&C[u+1]===a)d+=v===0?100:150,u++,p++;else{let l=C.indexOf(a,u+1);if(v>0&&(g=!1),l===-1)return 0;d+=100,u=l,p++}}return g&&r.length===p&&(d+=1e3),d+=p*20,d},ci=function(){this.activeOptionIndex.set(-1);let C=this.optionsEl();for(let r=0;r<C.length;r++)C[r].classList.remove("active")},c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=H({type:c,selectors:[["sh-menu"]],viewQuery:function(r,d){r&1&&(pe(d.inputRef,Xo,5),pe(d.optionsRef,Qo,5)),r&2&&De(2)},hostVars:6,hostBindings:function(r,d){r&2&&q("disabled",d.disabled())("has-search",d.searchable())("multi-layer",d.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Ko,decls:12,vars:12,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(r,d){if(r&1){let u=he();G(Zo),E(0,"sh-popover",3,0),zt("isOpenChange",function(g){return j(u),Ut(d.isOpen,g)||(d.isOpen=g),U(g)}),W("closed",function(){return j(u),U(d.close("fromPopover"))}),E(2,"div",4),W("click",function(g){return j(u),U(d.toggleIsOpen(g))}),b(3),R(4,Jo,2,0,"sh-icon",5),V(),E(5,"div",6)(6,"sh-form-field",7),Ne(7,"input",8,1),V()(),E(9,"div",9,2),W("click",function(){return j(u),U(d.close("active"))}),b(11,1),V()()}r&2&&(jt("isOpen",d.isOpen),ge("disableOpenByClick",!0)("asMultiLayer",d.asMultiLayer())("options",$t(11,Bo)),S(2),q("is-open",d.isOpen()),S(2),L(d.openIndicator()?4:-1),S(2),q("hidden",d.searchable()===!1),S(3),q("searching",d.searchable()&&d.inputValue()!==""))},dependencies:[hn,fi,qe],encapsulation:2,changeDetection:0});let i=c;return i})(),mr=(()=>{let e=class e{constructor(){this.value=O(void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Ae(0,"div",0),o&2&&se("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=e;return i})(),Oa=(()=>{let e=class e{constructor(){this.currentClassList=At()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-radio"]],ngContentSelectors:ce,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(G(),Ae(0,"div",0),b(1)),o&2&&ve(s.currentClassList())},encapsulation:2,changeDetection:0});let i=e;return i})(),Va=(()=>{var e,t,n,o,s,di,Dn,bn,Sn;let d=class d{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(K)),x(this,t,null),x(this,n,null),x(this,o,0),this.unit=O(""),this.value=ne(m(this,o)),this.inputState=T({min:0,max:100,step:1}),this.valuePercentage=F(()=>{let{min:p,max:g}=this.inputState(),v=this.value()??p;if(isNaN(v))return 0;let a=g-p;if(a===0)return 0;let l=(v-p)/a*100;return Math.max(0,Math.min(100,l))}),this.trackFilledPercentage=F(()=>this.valuePercentage()),this.thumbPositionPercentage=F(()=>this.valuePercentage()),this.syncModelToInputEffect=J(()=>{let p=this.value();if(m(this,n)){let g=parseFloat(m(this,n).value);(isNaN(g)||String(g)!==String(p))&&(m(this,n).value=String(p))}})}get hasInputElement(){return!!m(this,n)}ngAfterViewInit(){x(this,n,m(this,e).nativeElement.querySelector('input[type="range"]')),m(this,n)?(M(this,s,Sn).call(this,m(this,n)),m(this,n).oninput=()=>{this.setNewInputValue(m(this,n).value)},m(this,n).addEventListener("inputValueChanged",p=>{this.setNewInputValue(p.detail.value)}),queueMicrotask(()=>M(this,s,di).call(this,!0)),M(this,s,Dn).call(this)):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(p){let g=parseFloat(p??"0");if(!isNaN(g)){let{min:v,max:a}=this.inputState();this.value.set(Math.max(v,Math.min(a,g)))}}trackEvent(p){if(!m(this,n)||m(this,n).readOnly||m(this,n).disabled){p.preventDefault(),p.stopPropagation();return}if(p.target===m(this,n)||p.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let v=p.currentTarget.getBoundingClientRect(),a=p.clientX-v.left,l=v.width,{min:f,max:h,step:_}=this.inputState(),N=h-f;if(l>0&&N!==0&&_>0){let B=(a/l*N+f-f)/_,k=f+Math.round(B)*_,ee=M(this,s,bn).call(this,_);k=parseFloat(k.toFixed(ee));let de=Math.max(f,Math.min(h,k));this.value.set(de)}}ngOnDestroy(){m(this,t)&&m(this,t).disconnect(),m(this,n)&&(m(this,n).oninput=null)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,di=function(p=!1){if(!m(this,n))return;let g=parseFloat(m(this,n).min??"0")??0,v=parseFloat(m(this,n).max??"100")??100,a=m(this,n).step,l=1;if(a&&a.toLowerCase()!=="any"){let h=parseFloat(a);!isNaN(h)&&h>0&&(l=h)}this.inputState.set({min:g,max:v,step:l});let f=parseFloat(m(this,n).value??String(g))??g;if(p&&this.value()!==m(this,o)){let h=this.value(),_=Math.max(g,Math.min(v,h));f!==_&&(m(this,n).value=String(_)),h!==_&&this.value.set(_)}else{let h=Math.max(g,Math.min(v,f));this.value()!==h&&this.value.set(h)}},Dn=function(){if(!m(this,n)||typeof MutationObserver>"u")return;let p=["min","max","step","value","readonly","disabled"];x(this,t,new MutationObserver(g=>{let v=!1;for(let a of g)if(a.type==="attributes"&&p.includes(a.attributeName??"")){v=!0;break}v&&M(this,s,di).call(this,!1)})),m(this,t).observe(m(this,n),{attributes:!0,attributeFilter:p})},bn=function(p){if(isNaN(p)||Math.floor(p)===p)return 0;let v=p.toString().split(".")[1];return v?v.length:0},Sn=function(p){Object.defineProperty(p,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value").get.call(this)},set(g){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(p),"value").set.call(this,g);let a=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:g}});return this.dispatchEvent(a),g}})},d.\u0275fac=function(g){return new(g||d)},d.\u0275cmp=H({type:d,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(g,v){g&2&&q("has-input",v.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:ts,decls:15,vars:10,consts:[[1,"label"],[1,"input-wrap"],[1,"min-indicator"],[1,"track-wrap",3,"click"],[1,"track"],[1,"track-filled"],[1,"thumb-wrap"],[1,"thumb"],[1,"value-indicator"],[1,"max-indicator"]],template:function(g,v){g&1&&(G(es),z(0,"div",0),b(1),$(),z(2,"div",1)(3,"div",2),P(4),$(),z(5,"div",3),Pe("click",function(l){return v.trackEvent(l)}),b(6,1),z(7,"div",4),Ae(8,"div",5),$(),z(9,"div",6)(10,"div",7)(11,"div",8),P(12),$()()()(),z(13,"div",9),P(14),$()()),g&2&&(S(4),ft("",v.inputState().min,"",v.unit()),S(4),se("width",v.trackFilledPercentage(),"%"),S(),se("left",v.thumbPositionPercentage(),"%"),S(3),ft("",v.value(),"",v.unit()),S(2),ft("",v.inputState().max,"",v.unit()))},encapsulation:2,changeDetection:0});let i=d;return i})(),vr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=e;return i})(),Ta=(()=>{var e,t,n,o,ui,c,y,hi,le,Mn,En,wn;let g=class g{constructor(){w(this,o);w(this,e);w(this,t);w(this,n);w(this,c);w(this,y);x(this,e,I(K)),this.value=O(),this.label=O(),this.asFreeText=O(!1),this.optionTitle=O(null),this.freeTextTitle=O(null),this.freeTextPlaceholder=O("Type to create a new option"),this.validateFreeText=O(),this.placeholder=O(),this.readonly=ne(!1),this.disabled=ne(!1),this.lazySearch=O(!1),this.inlineSearch=O(!1),this.asText=O(!1),this.isClearable=O(!0),this.selectMultiple=O(!1),this.optionTemplate=O(null),this.selectedOptionTemplate=O(null),this.placeholderTemplate=O(null),this.freeTextOptionTemplate=O(null),this.isOpen=ne(!1),this.isLoading=ne(!1),this.options=ne([]),this.selectedOptions=ne([]),this.cleared=xe(),this.onAddNewFreeTextOption=xe(),this.computedFreeTextOption=F(()=>{let a=this.inputValue(),l=this.value(),f=l?{}:a;return l&&typeof f=="object"&&(f[l]=a),f}),x(this,t,T(null)),this.inlineTemplate=Ti(pt),this.optionsWrapRef=fe.required("optionsWrap"),this.inputRefInput=T(null),x(this,n,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var l of a)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new K(l.target)),m(this,n).disconnect())})),this.inputValue=T(""),this.prevInputValue=T(null),this.focusedOptionIndex=T(-1),this._isClearable=F(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=F(()=>m(this,e).nativeElement.classList.toString()),this.stretch=F(()=>this.selectClasses().includes("stretch")),this.small=F(()=>this.selectClasses().includes("small")),this.placeholderText=F(()=>{let a=this.placeholder(),l=this.inputRefEl();return a||l?.placeholder||null}),this.selectedOptionValues=F(()=>{let a=this.selectedOptions(),l=this.value();return l?a.map(f=>M(this,o,le).call(this,f,l)):a}),this.filteredOptions=F(()=>{let a=this.options()||[],l=this.label(),f=this.value(),h=this.inlineSearch(),_=this.inputValue().toLowerCase(),N=M(this,o,En).call(this,_);if(a.length<=0)return[];if(!h||_==="")return a;let B=a.filter(k=>{let ee=l?(M(this,o,le).call(this,k,l)??"").toString().toLowerCase():(k??"").toString().toLowerCase(),de=((f?M(this,o,le).call(this,k,f):k)??"").toString().toLowerCase(),Se=N.test(ee),dt=N.test(de);return Se||dt}).map(k=>{let ee=l?(M(this,o,le).call(this,k,l)??"").toString().toLowerCase():(k??"").toString().toLowerCase(),de=((f?M(this,o,le).call(this,k,f):k)??"").toString().toLowerCase(),Se=M(this,o,ui).call(this,ee,_),dt=M(this,o,ui).call(this,de,_);return{item:k,score:Math.max(Se,dt)}});return B.sort((k,ee)=>ee.score-k.score),B.map(k=>k.item)}),x(this,c,Pt()),this.inputRefEl=F(()=>{let a=this.inputRefInput();if(a===null)return;let l=a?a.nativeElement:null;return l?(l.autocomplete="off",l.setAttribute("role","combobox"),l.setAttribute("id",`combobox-${m(this,c)}`),l.setAttribute("aria-haspopup","listbox"),l.setAttribute("aria-owns","optionsWrapId"),M(this,o,Mn).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),l.addEventListener("input",f=>{let h=f.target.value,_=this.inputValue();h!==_&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(h),this.updateInputElValue())}),l.addEventListener("inputValueChanged",f=>{let h=f.detail.value,_=this.inputValue();if(h!==_){if(h===""){this.clear();return}this.setSelectedOptionsFromValue(h),this.setInputValueFromOptions(this.selectedOptions()),M(this,o,hi).call(this)}}),l):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=J(()=>{let a=this.inputRefEl();if(!a)return;let l=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);l?a.setAttribute("aria-activedescendant",l):a.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=J(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl(),h=this.asFreeText()?-1:0;if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),l.addEventListener("keydown",_=>{if((_.key==="Escape"||_.key==="Tab")&&(_.preventDefault(),this.close()),_.key==="Enter"&&(_.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),_.key==="ArrowDown"){_.preventDefault();let N=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(N>this.filteredOptions().length-1?h:N)}if(_.key==="ArrowUp"){_.preventDefault();let N=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(N<h?this.filteredOptions().length-1:N)}},{signal:this.openAbortController?.signal})}else{let l=this.inputRefEl();if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=J(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=J(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=F(()=>{let a=this.selectedOptions();return this.label()?a.map(f=>this.getLabel(f)).join(", "):a.join(", ")}),this.inputState=F(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=F(()=>this.inlineSearch()||this.lazySearch()),x(this,y,J(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),l=this.value(),f=a.map(h=>l?M(this,o,le).call(this,h,l):h).join(",");this.inputValue.set(f)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=m(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new K(a));return}let l=m(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new K(l));return}typeof MutationObserver<"u"&&m(this,n).observe(m(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let l=this.options()||[],f=this.value(),h=this.selectMultiple(),_=a.toString().split(",");if(_.length===0){this.selectedOptions.set([]);return}let N=h?_:[_[0]],Z=l.filter(B=>{let k=f?M(this,o,le).call(this,B,f)?.toString():B?.toString();return k&&N.includes(k)});this.selectedOptions.set(h?Z:[Z[0]])}setInputValueFromOptions(a){let l=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let f=a.map(h=>l?M(this,o,le).call(this,h,l):h).join(",");f!==this.inputValue()&&(this.inputValue.set(f),this.updateInputElValue())}getValue(a){let l=this.value();return l?M(this,o,le).call(this,a,l):a}getLabel(a){let l=this.label();return l?M(this,o,le).call(this,a,l):a}getLabelAsSlug(a){let l=this.getLabel(a);return!l||typeof l!="string"?"":l.replaceAll(" ","-")}toggleOptionByIndex(a,l,f=!1){let h=this.filteredOptions()[a];if(this.asFreeText()&&a===-1){let ee=this.computedFreeTextOption(),de=this.getValue(ee);if(!(this.validateFreeText()??(ut=>!0))(de))return;this.options.update(ut=>ut.findIndex(xn=>this.getValue(xn)===de)>-1?ut:(this.onAddNewFreeTextOption.emit(de),[ee,...ut])),a=0,h=ee}else if(!h){this.close();return}l&&l.stopPropagation();let _=this.selectMultiple(),N=this._isClearable(),Z=this.value(),B=this.selectedOptionValues(),k=Z?M(this,o,le).call(this,h,Z):h;this.prevInputValue.set(null),m(this,t).set(null),this.selectedOptions.update(ee=>{let de=B.indexOf(k);if(de>-1){let Se=[...ee.slice(0,de),...ee.slice(de+1)];return N||Se.length>0?Se:ee}else return this.focusedOptionIndex.set(a),_?[...ee,h]:[h]}),_?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),_&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,l){a.stopPropagation(),this.selectedOptions.update(f=>[...f.slice(0,l),...f.slice(l+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(a){let l=this.value(),f=this.filteredOptions()[a],h=l?M(this,o,le).call(this,f,l):f;return this.selectedOptionValues().indexOf(h)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):m(this,t).set(this.selectedOptions()),this.selectMultiple()||M(this,o,hi).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue(),l=m(this,t).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&l!==null&&this.setInputValueFromOptions(l),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),l=this.inputValue();a&&(a.value=l,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&m(this,n).disconnect()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,ui=function(a,l){if(!l)return 0;let f=0,h=-1,_=0,N=!0;for(let Z=0;Z<l.length;Z++){let B=l[Z];if(a.length>h+1&&a[h+1]===B)f+=Z===0?100:150,h++,_++;else{let k=a.indexOf(B,h+1);if(Z>0&&(N=!1),k===-1)return 0;f+=100,h=k,_++}}return N&&l.length===_&&(f+=1e3),f+=_*20,f},c=new WeakMap,y=new WeakMap,hi=function(){let a=this.selectedOptionValues()[0],l=this.value();if(a){let f=this.filteredOptions().findIndex(h=>l?M(this,o,le).call(this,h,l)===a:h===a);this.focusedOptionIndex.set(f)}else this.focusedOptionIndex.set(-1)},le=function(a,l){return l.split(".").reduce((f,h)=>f?.[h],a)},Mn=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,l);let h=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(h),l}})},En=function(a){let l=(a??"").toLowerCase(),f="^";for(let h of l)f+=".*"+M(this,o,wn).call(this,h);return f+=".*$",new RegExp(f,"i")},wn=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},g.\u0275fac=function(l){return new(l||g)},g.\u0275cmp=H({type:g,selectors:[["sh-select"]],contentQueries:function(l,f,h){l&1&&xi(h,f.inlineTemplate,pt,5),l&2&&De()},viewQuery:function(l,f){l&1&&pe(f.optionsWrapRef,is,5),l&2&&De()},hostVars:2,hostBindings:function(l,f){l&2&&q("multiple",f.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:os,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(l,f){if(l&1){let h=he();G(ns),gt(0)(1)(2)(3)(4)(5)(6),E(7,"sh-popover",2,0),zt("isOpenChange",function(N){return j(h),Ut(f.isOpen,N)||(f.isOpen=N),U(N)}),W("closed",function(){return j(h),U(f.close())}),E(9,"sh-form-field",3),W("click",function(){return j(h),U(f.open())}),b(10,0,["ngProjectAs","label",5,["label"]]),b(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),b(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),E(13,"div",4)(14,"div",5),R(15,rs,1,1)(16,_s,2,0)(17,bs,2,1),b(18,3),b(19,4),V()(),R(20,Ss,2,0,"sh-icon",6)(21,Ms,1,0,"sh-spinner",7)(22,Es,2,0,"sh-icon",6)(23,ws,2,0,"sh-icon",6)(24,xs,2,0,"sh-icon",6)(25,Os,2,0,"sh-icon",6)(26,Vs,2,0,"sh-icon",6),V(),E(27,"div",8,1),R(29,Ls,3,3),R(30,Hs,2,1,"p",9),Ht(31,$s,4,8,"li",10,Lt),V()()}if(l&2){me(f.placeholderTemplate());let h=f.optionTemplate();S(),me(f.freeTextOptionTemplate());let _=f.selectedOptionTemplate(),N=f.inlineTemplate();S();let Z=me(f.selectedOptions()),B=f.inputState();S(),me(_||h||N),S(),me(h||N),S();let k=me(!f.asText()&&f.selectMultiple());S();let ee=me(f.isOpen()&&f.hasSearch()&&(k||f.inputValue().length>-1));S(),jt("isOpen",f.isOpen),ge("disableOpenByClick",!0)("options",$t(24,ss)),S(2),q("stretch",f.stretch())("small",f.small())("readonly",f.readonly()||f.disabled()),S(4),q("show-search-text",ee),S(),q("is-selected",B==="selected"),S(),L(f.asFreeText()&&f.inputValue().length>0&&!f.isOpen()?15:Z.length>0?16:ee?-1:17),S(5),L(B==="closed"?20:B==="loading"?21:B==="open-searching"?22:B==="searching"?23:B==="selected"&&f._isClearable()?24:B==="selected"&&!f._isClearable()?25:26),S(9),L(f.asFreeText()?29:-1),S(),L(f.optionTitle()&&f.filteredOptions().length>0?30:-1),S(),Bt(f.filteredOptions())}},dependencies:[Ai,hn,fi,qe,ur,vr,hr,gr],encapsulation:2,changeDetection:0});let i=g;return i})();function _r(i){let e=I(K),t=I(Be),n=T(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(c=>{c.type==="attributes"&&c.attributeName==="class"&&n.set(e.nativeElement.classList.contains(i))})});return bi(e.nativeElement,()=>{o&&o.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(i))}),t.onDestroy(()=>{o&&o.disconnect()}),n}var Na=(()=>{var e,t,n,o,s,ct;let y=class y{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(He)),x(this,t,I(K)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=O(!1),this.isOpen=ne(!1),this.isOverlay=_r("overlay"),x(this,n,m(this,t).nativeElement.parentElement),x(this,o,m(this,n).getBoundingClientRect&&m(this,n).getBoundingClientRect()),this.dragImageElement=fe.required("dragImageElement"),this.dragIsEnding=T(!1),this.dragIsOnScreen=T(!0),this.isDragging=T(!1),this.dragPositionX=T(0),this.dragActualPositionX=F(()=>{let r=this.dragPositionX(),d=280,u=100,p=.008,g=d/2,v=g-u/2,a=g+u/2;if(r>a){let l=r-a,h=(d-a)*(1-Math.exp(-p*l));return a+h}else if(r<v){let l=v-r,h=v*(1-Math.exp(-p*l));return v-h}return r}),this.draggingStyle=F(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=J(()=>{this.disableDrag()||(this.isDragging()?m(this,e).body.classList.add("dragging"):m(this,e).body.classList.remove("dragging"))})}drop(r){r.stopPropagation(),M(this,s,ct).call(this,r.clientX-m(this,o).left)}dragEnd(r){r.clientX-m(this,o).left<0&&M(this,s,ct).call(this,0),r.clientX-m(this,o).left>this.openWidthTreshold&&M(this,s,ct).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(r){r.stopPropagation(),x(this,o,m(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(r){r.stopPropagation(),this.isDragging()&&(r.clientX!==0||r.clientY!==0)&&this.dragPositionX.set(r.clientX-m(this,o).left)}touchStart(r){r.stopPropagation(),this.isDragging.set(!0),x(this,o,m(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(r){r.stopPropagation(),this.isDragging()&&this.dragPositionX.set(r.touches[0].clientX-m(this,o).left)}touchEnd(r){r.stopPropagation(),M(this,s,ct).call(this,r.changedTouches[0].clientX-m(this,o).left)}touchCancel(r){r.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,ct=function(r){this.isDragging.set(!1),r>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},y.\u0275fac=function(d){return new(d||y)},y.\u0275cmp=H({type:y,selectors:[["sh-sidenav"]],viewQuery:function(d,u){d&1&&pe(u.dragImageElement,Ws,5),d&2&&De()},hostVars:6,hostBindings:function(d,u){d&2&&q("open",u.isOpen())("closed",!u.isOpen())("is-dragging",u.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:qs,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(d,u){d&1&&(G(Gs),R(0,Ys,2,0,"div",1),R(1,Xs,1,0,"div",2),z(2,"div",3),b(3),$(),z(4,"div",4),R(5,Qs,1,0,"div",5),z(6,"div",6),b(7,1),$(),z(8,"main"),b(9,2),$()()),d&2&&(L(u.isOverlay()&&!u.disableDrag()?0:-1),S(),L(u.isOverlay()&&u.isDragging()?1:-1),S(3),se("transform",!u.disableDrag()&&u.draggingStyle()),S(),L(u.isOverlay()&&!u.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=y;return i})();var Aa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-stepper"]],ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ia=(()=>{var e;let t=class t{constructor(){w(this,e);x(this,e,I(Cr)),this.shSort=O(),this.sortAsc=F(()=>{let o=m(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=F(()=>{let o=m(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&m(this,e).toggleSort(o)}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=Y({type:t,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,c){s&1&&W("mousedown",function(){return c.toggleSort()}),s&2&&q("sort-asc",c.sortAsc())("sort-desc",c.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=t;return i})();var Ge=1.5,Cr=(()=>{var e,t,n,o,s,Nt;let y=class y{constructor(){w(this,s);w(this,e);w(this,t);w(this,n);w(this,o);x(this,e,I(K)),x(this,t,I(It,{optional:!0})),this.loading=O(!1),this.data=O([]),this.dataChange=xe(),this.sortByColumn=ne(null),this.currentClass=At(),this.thead=fe("thead"),this.tbody=fe("tbody"),this.columns=Cn(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=F(()=>{let r=this.currentClass();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=J(()=>{let r=this.tbody()?.nativeElement,d=this.thead()?.nativeElement;if(!r||!d)return;let u=this.stickyHeaderHeight();queueMicrotask(()=>{let p=d.querySelectorAll("tr.sticky").length>0,g=r.querySelectorAll("tr.sticky");if(g.length>0&&p)for(let a=0;a<g.length;a++)g[a].style.top=`${u}px`})}),this.class=T(m(this,t)?.tableType??"default"),this.resizing=T(!1),this.sizeTrigger=T(!0),x(this,n,null),x(this,o,T(!1)),this.scrollXState=T(-1),this.scrollYState=T(-1),this.canScrollX=T(!1),this.canScrollY=T(!1),this.columnSizes=F(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,u,p)=>{let g=u,v=g.getAttribute("size"),a=p===r.length-1;return v?`${d} ${v}`:g.classList.contains("sticky")||g.classList.contains("sticky-end")?`${d} min-content`:a?`${d} 1fr`:`${d} 1fr`},"")}),this.e=J(()=>{let r=this.sortByColumn();if(r===null)return m(this,o).call(this)||(x(this,n,this.data()),m(this,o).set(!0)),this.dataChange.emit(structuredClone(m(this,n)));let d=r.startsWith("-")?r.slice(1):r,u=r.startsWith("-"),p=this.data().sort((g,v)=>{let a=g[d],l=v[d],f=0;return typeof a=="number"&&typeof l=="number"&&(f=a-l),a instanceof Date&&l instanceof Date&&(f=a.getTime()-l.getTime()),typeof a=="string"&&typeof l=="string"&&(f=a.localeCompare(l,void 0,{sensitivity:"base"})),u?-f:f});this.dataChange.emit(p)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){M(this,s,Nt).call(this)}onResize(r){M(this,s,Nt).call(this)}ngAfterViewInit(){queueMicrotask(()=>M(this,s,Nt).call(this))}toggleSort(r){let d=this.sortByColumn(),u=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(u)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,Nt=function(){let r=m(this,e).nativeElement,d=-1,u=-1,p=r.scrollWidth>r.clientWidth+Ge;if(p){let v=r.scrollLeft<=Ge;r.scrollWidth-(r.scrollLeft+r.clientWidth)<Ge?d=1:v||(d=0)}this.scrollXState.set(d),this.canScrollX.set(p);let g=r.scrollHeight>r.clientHeight+Ge;if(g){let v=r.scrollTop<=Ge;r.scrollHeight-(r.scrollTop+r.clientHeight)<Ge?u=1:v||(u=0)}this.scrollYState.set(u),this.canScrollY.set(g)},y.\u0275fac=function(d){return new(d||y)},y.\u0275cmp=H({type:y,selectors:[["sh-table"]],viewQuery:function(d,u){d&1&&(pe(u.thead,Zs,5),pe(u.tbody,Ks,5)),d&2&&De(2)},hostVars:18,hostBindings:function(d,u){d&1&&W("scroll",function(){return u.onScroll()})("resize",function(g){return u.onResize(g)},Mi),d&2&&(ve(u.class()),se("grid-template-columns",u.columnSizes()),q("resizing",u.resizing())("can-scroll-x",u.canScrollX())("can-scroll-y",u.canScrollY())("scrolled-x",u.scrollXState()>=0)("scrolled-x-end",u.scrollXState()===1)("scrolled-y",u.scrollYState()>=0)("scrolled-y-end",u.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:er,decls:9,vars:2,consts:[["thead",""],["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,u){d&1&&(G(Js),R(0,tr,1,0,"sh-progress-bar",2),E(1,"thead",null,0),b(3),b(4,1),V(),E(5,"tbody",null,1),b(7,2),V(),R(8,ir,2,0,"div",3)),d&2&&(L(u.loading()?0:-1),S(8),L(u.loading()?-1:8))},dependencies:[mr],encapsulation:2,changeDetection:0});let i=y;return i})(),Pa=(()=>{let e=class e{constructor(){this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-tabs"]],hostVars:2,hostBindings:function(o,s){o&2&&se("--tabs-id",s.id)},ngContentSelectors:ce,decls:1,vars:0,template:function(o,s){o&1&&(G(),b(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),Fa=(()=>{let e=class e{constructor(){this.isActive=ne(!1),this.disallowToggle=O(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&q("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:or,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(G(nr),E(0,"h3",0),W("click",function(){return s.disallowToggle()||s.toggle()}),b(1,0,null,sr,1,0),R(3,rr,2,0,"sh-icon",1),V(),E(4,"div",2)(5,"div",3),b(6,1),V()()),o&2&&(S(3),L(s.disallowToggle()?-1:3))},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),ka=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=H({type:e,selectors:[["sh-toggle"]],ngContentSelectors:ce,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(G(),z(0,"div",0),Ae(1,"div",1),$(),b(2))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ra=(()=>{let e=class e{constructor(){this.filesOver=T(!1),this.filesDropped=xe()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=Y({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&W("dragover",function(y){return s.onDragOver(y)})("dragleave",function(y){return s.onDragLeave(y)})("drop",function(y){return s.ondrop(y)}),o&2&&q("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=e;return i})();var yr=(()=>{var e,t,n;let o=class o{constructor(){w(this,e);w(this,t);w(this,n);this.positionAnchorName=O.required(),this.anchorEl=O.required(),this.isOpen=O(!1),x(this,e,I(K)),x(this,t,I(ye)),x(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=T(!1),this.openEffect=J(()=>{this.isOpen()?setTimeout(()=>{m(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):m(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let c=this.anchorEl().nativeElement.getBoundingClientRect(),y=m(this,e).nativeElement,C=y.getBoundingClientRect();if(C.width===0&&C.height===0)return;let r=c.top-C.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let d=y.getBoundingClientRect(),u=c.top-d.height,p=c.left+c.width/2-d.width/2;r&&(u=c.top+c.height),p+d.width>window?.innerWidth&&(p=c.right-d.width/2),p<0&&(p=-(d.width/2)),m(this,t).setStyle(y,"left",`${p}px`),m(this,t).setStyle(y,"top",`${u}px`),m(this,t).setStyle(y,"position","fixed")}}}ngAfterViewInit(){x(this,n,new AbortController);let c={signal:m(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,c),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:m(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())}ngOnDestroy(){m(this,n)?.abort()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o.\u0275fac=function(y){return new(y||o)},o.\u0275cmp=H({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(y,C){y&2&&(Ee("popover","manual"),se("position-anchor",C.positionAnchorName()),q("below",C.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:ce,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(y,C){y&1&&(G(),z(0,"div",0),b(1),$())},encapsulation:2});let i=o;return i})(),ae=null,La=(()=>{var e,t,n,o,s;let c=class c{constructor(){w(this,e);w(this,t);w(this,n);w(this,o);w(this,s);this.shTooltip=O.required(),x(this,e,I(K)),x(this,t,I(Ei)),x(this,n,I(Di)),x(this,o,I(ye)),x(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${Pt()}`,this.isOpen=T(!1)}onMouseEnter(){ae?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(ae?.wrapperComponentRef||!this.shTooltip())return;let C,r=this.shTooltip();if(typeof r=="string")C=[[m(this,o).createText(r)]];else if(r instanceof pt)x(this,s,r.createEmbeddedView({})),m(this,s).detectChanges(),C=[m(this,s).rootNodes];else return;ae={wrapperComponentRef:m(this,t).createComponent(yr,{environmentInjector:m(this,n),projectableNodes:C}),component:this},ae.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),ae.wrapperComponentRef.setInput("anchorEl",m(this,e)),ae.wrapperComponentRef?.setInput("isOpen",this.isOpen),ae.wrapperComponentRef.changeDetectorRef.detectChanges(),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),ae.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){ae?.wrapperComponentRef&&(ae.component.cancelCleanupTimer(),ae.wrapperComponentRef.destroy(),ae.component.isOpen.set(!1),ae=null),m(this,s)&&(m(this,s).destroy(),x(this,s,null))}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,c.\u0275fac=function(r){return new(r||c)},c.\u0275dir=Y({type:c,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(r,d){r&1&&W("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()}),r&2&&(se("anchor-name",d.anchorName),q("active",d.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=c;return i})();export{Ve as a,Tn as b,Ui as c,Ii as d,Hr as e,Br as f,to as g,ot as h,so as i,Ur as j,ao as k,uo as l,po as m,go as n,sn as o,rn as p,yo as q,zr as r,$r as s,Wr as t,qe as u,It as v,Ca as w,ya as x,dr as y,Da as z,ba as A,Sa as B,Ma as C,ur as D,hr as E,gr as F,fi as G,Ea as H,wa as I,xa as J,mr as K,Oa as L,Va as M,vr as N,Ta as O,Na as P,Aa as Q,Ia as R,Cr as S,Pa as T,Fa as U,ka as V,Ra as W,La as X};
package/chunk-UVPLU2YS.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-YIMKL4H6.js";import"./chunk-XRI2BFC2.js";import"./chunk-H4H72SDD.js";import"./chunk-D7OP5FPA.js";import"./chunk-5KMPTDRJ.js";import"./chunk-2DP4QU4T.js";import"./chunk-SQSTMZR3.js";import"./chunk-HVB6ARTT.js";import"./chunk-WJDMMKWE.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-IEGVSOLM.js";import"./chunk-TC7HZO7D.js";import"./chunk-TGNUULAU.js";import"./chunk-F3EXRAZJ.js";import"./chunk-VCLWADQK.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
package/chunk-XRI2BFC2.js DELETED
@@ -1,2 +0,0 @@
1
- import{a as ue}from"./chunk-H4H72SDD.js";import{d as me}from"./chunk-D7OP5FPA.js";import{c as de,d as Ce}from"./chunk-2DP4QU4T.js";import{a as ce}from"./chunk-AE7T2DAH.js";import{B as oe,G as re,J as ae,O as le,U as _e,V as se,X as pe,b as W,c as Y,e as Z,i as ee,k as te,s as ne,u as ie}from"./chunk-TGNUULAU.js";import{ea as Q}from"./chunk-NXROYR6L.js";import{$b as _,Ab as E,Bb as P,Bc as j,Cb as c,Db as a,Eb as l,Fb as I,Jb as v,Kb as V,Kc as D,Lb as S,Mb as g,Rc as R,Sa as s,Tb as b,Ub as $,Vb as J,Xc as k,Zb as u,_ as K,_c as q,cb as H,ea as d,fa as C,hb as f,ic as T,kc as G,nc as m,oc as B,pa as N,pc as A,vc as X,wc as z,xb as h,xc as x,yb as O,zb as M}from"./chunk-ZBK64QS2.js";import{a as w,b as L}from"./chunk-EUDKD2JW.js";var ge=[{name:"send-mail-to",type:"Email"},{name:"send-mail-from",type:"Email"},{name:"log-file",type:"FileTree"},{name:"compression-extension-file",type:"FileTree"},{name:"dbpath",type:"FileTree"},{name:"restore-path",type:"FileTree"},{name:"gpg-program-path",type:"FileTree"}];var xe=()=>({updateOn:"blur"});function Se(t,i){if(t&1){let e=g();a(0,"button",13),u("click",function(){d(e);let n=_();return C(n.showTextArea.set(!1))}),b(1,5),I(2,"sh-icon"),$(),l()}}function he(t,i){if(t&1){let e=g();a(0,"button",17,0),u("click",function(){let n=d(e).$implicit,r=_(3);return C(r.addSetting(n))}),m(2),l()}if(t&2){let e=i.$implicit;G("deprecated",e.deprecatedDescription),s(2),A(" ",e.name," ")}}function Oe(t,i){if(t&1&&(a(0,"h3",9),m(1),l(),E(2,he,3,3,"button",16,M)),t&2){let e=i.$implicit;s(),B(e.displayName),s(),P(e.options)}}function Fe(t,i){if(t&1){let e=g();a(0,"sh-menu")(1,"button",18)(2,"sh-icon"),m(3,"dots-three-vertical"),l()(),v(4,15),a(5,"button",13),u("click",function(){d(e);let n=_(2);return C(n.addFreeTextSetting())}),b(6,7),I(7,"sh-icon"),$(),l(),a(8,"button",19),u("click",function(){d(e);let n=_(2);return C(n.showTextArea.set(!0))}),a(9,"sh-icon"),m(10,"link"),l(),m(11," Edit contents as text "),l(),V(),l()}}function we(t,i){if(t&1&&(a(0,"sh-menu",14)(1,"button",11),b(2,6),I(3,"sh-icon"),$(),l(),v(4,15),E(5,Oe,4,1,null,null,M),V(),l(),h(7,Fe,12,0,"sh-menu")),t&2){let e=_();c("searchable",!0),s(5),P(e.nonSelectedOptionsGrouped()),s(2),O(e.hasFreeTextSettings()?7:-1)}}function ye(t,i){if(t&1){let e=g();a(0,"textarea",20),u("ngModelChange",function(n){d(e);let r=_();return C(r.updateSettingsFromText(n))}),l()}if(t&2){let e=_();c("ngModel",e.settingsAsText())("ngModelOptions",j(2,xe))}}function Ie(t,i){t&1&&(a(0,"div",21),m(1,"Add a setting above to get started."),l())}function Ve(t,i){t&1&&(a(0,"sh-icon",29),m(1," warning-octagon "),l())}function Le(t,i){if(t&1&&(a(0,"sh-icon",30),m(1,"archive"),l()),t&2){let e=_(2).$implicit;c("shTooltip",e.FormView.deprecatedDescription)}}function Ne(t,i){if(t&1&&(a(0,"sh-icon",31),m(1,"question"),l()),t&2){let e=_(2).$implicit;c("shTooltip",e.FormView.longDescription)}}function Me(t,i){if(t&1&&(h(0,Ve,2,0,"sh-icon",29),a(1,"span"),m(2),l(),h(3,Le,2,1,"sh-icon",30)(4,Ne,2,1,"sh-icon",31)),t&2){let e=_().$implicit,o=x(1);O(o?0:-1),s(),G("deprecated",e.FormView.deprecatedDescription),s(),B(e.FormView.shortDescription),s(),O(e.FormView.deprecatedDescription?3:e.FormView.longDescription?4:-1)}}function Ee(t,i){t&1&&S(0)}function Pe(t,i){if(t&1){let e=g();a(0,"div",23)(1,"label"),f(2,Ee,1,0,"ng-container",32),l(),a(3,"div")(4,"sh-form-field")(5,"input",33),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateFreeTextSettingName(r,n))}),l(),a(6,"sh-icon",34),m(7,"rectangle-dashed"),l()()(),a(8,"div")(9,"sh-form-field")(10,"input",33),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),a(11,"sh-icon",34),m(12,"textbox"),l()()()()}if(t&2){let e=_().$implicit,o=T(3);s(2),c("ngTemplateOutlet",o),s(3),c("ngModel",e.Name),s(5),c("ngModel",e.Value())}}function ve(t,i){t&1&&S(0)}function be(t,i){if(t&1){let e=g();a(0,"app-file-tree",24)(1,"label",35),f(2,ve,1,0,"ng-container",32),l(),a(3,"input",36),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);c("startingPath",e.Value())("accepts",e.FormView.accepts)("showFiles",!0)("showHiddenNodes",!0)("selectFiles",!0),s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("id",n)("ngModel",e.Value())}}function $e(t,i){if(t&1){let e=g();a(0,"app-file-tree",25),I(1,"label",35),a(2,"input",36),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()()}if(t&2){let e=_().$implicit,o=x(0);c("startingPath",e.Value()),s(),c("for",o),s(),c("id",o)("ngModel",e.Value())}}function Ae(t,i){t&1&&S(0)}function De(t,i){t&1&&(a(0,"sh-icon",34),m(1,"link"),l())}function Re(t,i){t&1&&(a(0,"sh-icon",34),m(1,"hard-drives"),l())}function ke(t,i){t&1&&(a(0,"sh-icon",34),m(1,"jar"),l())}function Ge(t,i){t&1&&(a(0,"sh-icon",34),m(1,"envelope"),l())}function Be(t,i){t&1&&(a(0,"sh-icon",34),m(1,"textbox"),l())}function ze(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,Ae,1,0,"ng-container",32),l(),a(3,"input",37),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),h(4,De,2,0,"sh-icon",34)(5,Re,2,0,"sh-icon",34)(6,ke,2,0,"sh-icon",34)(7,Ge,2,0,"sh-icon",34)(8,Be,2,0,"sh-icon",34),l()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("type",e.FormView.type==="Email"?"email":"text")("id",n)("ngModel",e.Value()),s(),O(e.FormView.type==="Path"?4:e.FormView.type==="Hostname"?5:e.FormView.type==="Bucketname"?6:e.FormView.type==="Email"?7:8)}}function Ue(t,i){t&1&&S(0)}function Ke(t,i){if(t&1){let e=g();a(0,"sh-icon",40),u("click",function(){d(e);let n=_(2).$implicit;return C(n.showPassword=!n.showPassword)}),m(1," eye "),l()}}function He(t,i){if(t&1){let e=g();a(0,"sh-icon",40),u("click",function(){d(e);let n=_(2).$implicit;return C(n.showPassword=!n.showPassword)}),m(1," eye-slash "),l()}}function Je(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,Ue,1,0,"ng-container",32),l(),a(3,"input",38),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),a(4,"sh-icon",34),m(5,"password"),l(),h(6,Ke,2,0,"sh-icon",39)(7,He,2,0,"sh-icon",39),l()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("type",e.showPassword?"text":"password")("id",n)("ngModel",e.Value()),s(3),O(e.showPassword?6:7)}}function Xe(t,i){t&1&&S(0)}function je(t,i){if(t&1&&m(0),t&2){let e=i.$implicit;A(" ",e," ")}}function qe(t,i){if(t&1){let e=g();a(0,"sh-select",41)(1,"label",35),f(2,Xe,1,0,"ng-container",32),l(),a(3,"input",36),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()(),f(4,je,1,1,"ng-template",null,2,D)}if(t&2){let e=T(5),o=_().$implicit,n=T(3),r=x(0);c("options",o.FormView.options)("isClearable",!1)("optionTemplate",e),s(),c("for",r),s(),c("ngTemplateOutlet",n),s(),c("id",r)("ngModel",o.Value())}}function Qe(t,i){t&1&&S(0)}function We(t,i){if(t&1){let e=g();a(0,"app-size",42),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),a(1,"label",35),f(2,Qe,1,0,"ng-container",32),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),s(),c("for",n),s(),c("ngTemplateOutlet",o)}}function Ye(t,i){t&1&&S(0)}function Ze(t,i){if(t&1){let e=g();a(0,"sh-form-field")(1,"label",35),f(2,Ye,1,0,"ng-container",32),l(),a(3,"input",43),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l(),a(4,"sh-icon",34),m(5,"numpad"),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("id",n)("ngModel",e.Value())}}function et(t,i){t&1&&S(0)}function tt(t,i){if(t&1){let e=g();a(0,"sh-toggle",27)(1,"label",35),f(2,et,1,0,"ng-container",32),l(),a(3,"input",44),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);s(),c("for",n),s(),c("ngTemplateOutlet",o),s(),c("id",n)("ngModel",e.Value())}}function nt(t,i){t&1&&S(0)}function it(t,i){if(t&1&&m(0),t&2){let e=i.$implicit;A(" ",e," ")}}function ot(t,i){if(t&1){let e=g();a(0,"sh-select",45)(1,"label",35),f(2,nt,1,0,"ng-container",32),l(),a(3,"input",46),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),l()(),f(4,it,1,1,"ng-template",null,3,D)}if(t&2){let e=T(5),o=_().$implicit,n=T(3),r=x(0);c("options",o.FormView.options)("selectMultiple",!0)("optionTemplate",e),s(),c("for",r),s(),c("ngTemplateOutlet",n),s(),c("ngModel",o.Value())}}function rt(t,i){t&1&&S(0)}function at(t,i){if(t&1){let e=g();a(0,"app-timespan",42),u("ngModelChange",function(n){d(e);let r=_().$implicit,p=_(2);return C(p.updateSettingValue(r,n))}),a(1,"label",35),f(2,rt,1,0,"ng-container",32),l()()}if(t&2){let e=_().$implicit,o=T(3),n=x(0);c("inputType",e.Name)("ngModel",e.Value())("customId",n),s(),c("for",n),s(),c("ngTemplateOutlet",o)}}function lt(t,i){if(t&1){let e=g();X(0)(1),f(2,Me,5,5,"ng-template",null,1,D),a(4,"div",22),h(5,Pe,13,3,"div",23)(6,be,4,9,"app-file-tree",24)(7,$e,3,4,"app-file-tree",25)(8,ze,9,6,"sh-form-field")(9,Je,8,6,"sh-form-field")(10,qe,6,7)(11,We,3,5,"app-size",26)(12,Ze,6,4,"sh-form-field")(13,tt,4,4,"sh-toggle",27)(14,ot,6,6)(15,at,3,5,"app-timespan",26),a(16,"button",28),u("click",function(){let n=d(e).$implicit,r=_(2);return C(r.removeSetting(n))}),a(17,"sh-icon"),m(18,"x-bold"),l()()()}if(t&2){let e=i.$implicit,o=i.$index,n=_(2);z("destination-"+e.Name+o),s(),z(n.inAppOptions(e.Name)),s(4),O(e.FormView.type==="FreeText"?5:e.FormView.type==="FileTree"?6:e.FormView.type==="FolderTree"?7:e.FormView.type==="String"||e.FormView.type==="Path"||e.FormView.type==="Decimal"||e.FormView.type==="Email"||e.FormView.type==="Hostname"||e.FormView.type==="Bucketname"?8:e.FormView.type==="Password"?9:e.FormView.type==="Enumeration"?10:e.FormView.type==="Size"?11:e.FormView.type==="Integer"?12:e.FormView.type==="Boolean"?13:e.FormView.type==="Flags"?14:e.FormView.type==="Timespan"||e.FormView.type==="DateTime"?15:-1)}}function _t(t,i){if(t&1&&(h(0,Ie,2,0,"div",21),E(1,lt,19,3,null,null,M)),t&2){let e=_();O(e.selectedSettings().length===0?0:-1),s(),P(e.selectedSettings())}}var fe=class t{#e=K(ce);options=q.required();hiddenOptions=k([]);hasFreeTextSettings=k(!1);applicationOptions=k();showTextArea=N(!1);allOptionsGrouped=this.#e.allOptionsGrouped;allOptions=this.#e.allOptions;selectedSettings=R(()=>{let i=this.hiddenOptions();return this.options().map(n=>{let r=this.allOptions().find(F=>F.name===n.Name?.replace("--","")),p=n.Value??"";if(r&&i.includes(r.name))return null;if(r){if(r.type==="Boolean"&&(p=this.isTrue(p)),r.type==="Integer"&&(p=parseInt(p)||0),r.type==="Enumeration"&&r.options){let y=p?.trim().toLowerCase(),U=r.options.find(Te=>(Te??"").trim().toLocaleLowerCase()===y);U&&(p=U)}let F=ge.find(y=>y.name===r?.name);return F&&(r=w(w({},r),F)),L(w({},n),{Value:N(p),FormView:r})}else if(this.hasFreeTextSettings())return L(w({},n),{Value:N(p),FormView:{name:n.Name,type:"FreeText",shortDescription:"Custom settings argument",longDescription:"Custom settings argument"}});return null}).filter(n=>n!==null)});nonSelectedOptionsGrouped=R(()=>{let i=this.options().map(o=>o.Name?.replace("--","")),e=this.hiddenOptions();return this.allOptionsGrouped().map(o=>L(w({},o),{options:o.options.filter(n=>!i.includes(n.name)&&!e.includes(n.name))})).filter(o=>o.options.length>0)});settingsAsText=R(()=>this.selectedSettings().map(i=>{let e=i.Value(),o="";return typeof e=="boolean"?o=this.isTrue(e)?"True":"False":(typeof e=="number"||e!=null)&&(o=e.toString()),`${i.Name??""}=${o}`}).join(`
2
- `));updateSettingsFromText(i){if(typeof i!="string")return;let e=me(i);this.options.update(()=>e)}isTrue(i){if(typeof i=="boolean")return i;if(typeof i=="string"){let e=i.toLowerCase();return e==="true"||e==="1"||e==="yes"||e==="on"}return!1}inAppOptions(i){let e=this.applicationOptions()?.findIndex(o=>o.Name?.replace("--","")===i);return e===void 0?!1:e>-1}addFreeTextSetting(){this.hasFreeTextSettings()&&this.options.update(i=>[...i,{Filter:null,Name:"",Value:""}])}addSetting(i){this.options.update(e=>{let o=i.defaultValue??"";return i.type==="Boolean"&&(o=this.isTrue(o)),i.type==="Integer"&&(o=parseInt(o)||0),[...e,{Name:i.name,Value:o}]})}updateSettingValue(i,e){this.options.update(o=>{let n=[...o],r=n.findIndex(p=>p.Name===i.Name);if(i.FormView.type==="Boolean")return n[r].Value=this.isTrue(e)?"True":"False",n;if(i.FormView.type==="Integer")return n[r].Value=e.toString(),n;if(i.FormView.type==="Enumeration"&&i.FormView.options){let p=e?.trim().toLowerCase()??"",F=i.FormView.options.find(y=>(y??"").trim().toLocaleLowerCase()===p);if(F)return n[r].Value=F,n}return n[r].Value=e,n})}updateFreeTextSettingName(i,e){this.options.update(o=>{let n=[...o],r=n.findIndex(p=>p.Name===i.Name);return n[r].Name=e,n})}removeSetting(i){this.options.update(e=>e.filter(o=>o.Name!==i.Name))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=H({type:t,selectors:[["app-options-list"]],inputs:{options:[1,"options"],hiddenOptions:[1,"hiddenOptions"],hasFreeTextSettings:[1,"hasFreeTextSettings"],applicationOptions:[1,"applicationOptions"]},outputs:{options:"optionsChange"},decls:9,vars:3,consts:()=>{let i;i=$localize`Advanced options`;let e;e=$localize` Show editor ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:link${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let o;o=$localize` Add advanced option ${"\uFFFD#3\uFFFD"}:START_TAG_SH_ICON:plus${"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SH_ICON:`;let n;n=$localize`${"\uFFFD#7\uFFFD"}:START_TAG_SH_ICON:pen${"\uFFFD/#7\uFFFD"}:CLOSE_TAG_SH_ICON: New custom option `;let r;return r=$localize`By adding this option it will override the matching global option`,[["option",""],["defaultLabel",""],["enumOptionTemplate",""],["optionTemplate",""],i,e,o,n,[3,"disallowToggle"],["title",""],[1,"actions"],["shButton","","type","button",1,"outlined","small"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModel","ngModelOptions"],["shButton","","type","button",1,"outlined","small",3,"click"],[3,"searchable"],["menu",""],["type","button",3,"deprecated"],["type","button",3,"click"],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"],["wrap","off","placeholder","Paste advanced options here, one per line.",1,"raw-text-area",3,"ngModelChange","ngModel","ngModelOptions"],[1,"placeholder"],[1,"field-row"],[1,"form-column"],[3,"startingPath","accepts","showFiles","showHiddenNodes","selectFiles"],[3,"startingPath"],[3,"inputType","ngModel","customId"],[1,"primary","raised"],["shButton","","type","button",1,"outlined","remove-btn",3,"click"],["shTooltip",r,1,"error"],[1,"warn",3,"shTooltip"],[1,"primary",3,"shTooltip"],[4,"ngTemplateOutlet"],["type","text",3,"ngModelChange","ngModel"],["prefix",""],[3,"for"],["type","text",3,"ngModelChange","id","ngModel"],[3,"ngModelChange","type","id","ngModel"],["autocomplete","off",3,"ngModelChange","type","id","ngModel"],["suffix","",1,"clickable"],["suffix","",1,"clickable",3,"click"],[3,"options","isClearable","optionTemplate"],[3,"ngModelChange","inputType","ngModel","customId"],["type","number",3,"ngModelChange","id","ngModel"],["type","checkbox",3,"ngModelChange","id","ngModel"],[1,"primary","raised",3,"options","selectMultiple","optionTemplate"],["type","text","id","text",3,"ngModelChange","ngModel"]]},template:function(e,o){e&1&&(a(0,"sh-toggle-card",8),v(1,9)(2),J(3,4),V(),a(4,"div",10),h(5,Se,3,0,"button",11)(6,we,8,2),l(),V(),h(7,ye,1,3,"textarea",12)(8,_t,3,1),l()),e&2&&(c("disallowToggle",!0),s(5),O(o.showTextArea()?5:6),s(2),O(o.showTextArea()?7:8))},dependencies:[ne,Y,te,W,Z,ee,Ce,de,ue,Q,_e,re,oe,ae,pe,ie,le,se],styles:["[_nghost-%COMP%]{display:block}sh-select[_ngcontent-%COMP%]{--miw: p2r(120)}sh-toggle[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{font-size:1rem}.placeholder[_ngcontent-%COMP%]{color:var(--base-9);text-align:center;padding:2rem 1rem}.field-row[_ngcontent-%COMP%]{display:grid;align-items:center;grid-template-columns:1fr 2.5rem;gap:.5rem;position:relative;z-index:1}.field-row[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{align-self:flex-end}.form-column[_ngcontent-%COMP%]{display:flex;gap:.25rem;flex-direction:column}label[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.25rem}sh-icon[_ngcontent-%COMP%]{font-size:1rem}.form-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end}.deprecated[_ngcontent-%COMP%]{text-decoration:line-through}.raw-text-area[_ngcontent-%COMP%]{min-height:12rem;white-space:pre}"],changeDetection:0})};export{fe as a};
package/chunk-Z34TVTJN.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-XRI2BFC2.js";import"./chunk-H4H72SDD.js";import"./chunk-D7OP5FPA.js";import"./chunk-2DP4QU4T.js";import"./chunk-QBHHGHBJ.js";import"./chunk-AE7T2DAH.js";import"./chunk-TC7HZO7D.js";import"./chunk-TGNUULAU.js";import"./chunk-ATGKEH5N.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";export{a as OptionsListComponent};
package/chunk-Z4MDYLVI.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-GNJTDWT4.js";import"./chunk-AT6BXXSP.js";import"./chunk-NXROYR6L.js";import"./chunk-FPPZ4BUR.js";import"./chunk-ZBK64QS2.js";import"./chunk-EUDKD2JW.js";export{a as RelativeTimePipe};