@duplicati/ngclient 0.0.214 → 0.0.219

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 (136) hide show
  1. package/assets/sh-bold.woff2 +0 -0
  2. package/assets/sh.woff2 +0 -0
  3. package/assets/ship.css +0 -2
  4. package/{chunk-XAYG4QT7.js → chunk-22AR7ES3.js} +1 -1
  5. package/{chunk-3XCT4PYH.js → chunk-23SRH7FI.js} +1 -1
  6. package/{chunk-QRLREAIK.js → chunk-2J2554EV.js} +1 -1
  7. package/chunk-37ODVJFS.js +1 -0
  8. package/chunk-3RCF6UT4.js +1 -0
  9. package/{chunk-S3FBC24H.js → chunk-4E7D5F6K.js} +1 -1
  10. package/chunk-4J6L5OV3.js +1 -0
  11. package/chunk-4OA2FFS5.js +1 -0
  12. package/chunk-4OJPTRZJ.js +1 -0
  13. package/{chunk-YGHS3INE.js → chunk-5KJPC3V5.js} +1 -1
  14. package/{chunk-EGTYGTQI.js → chunk-5RNU5BNO.js} +1 -1
  15. package/{chunk-AZRNX5LU.js → chunk-6JS7B4FW.js} +1 -1
  16. package/chunk-7C2YZVSQ.js +1 -0
  17. package/chunk-ACTATISC.js +1 -0
  18. package/chunk-ACTJSKQZ.js +2 -0
  19. package/{chunk-XZNYCTQB.js → chunk-AIAUP7OE.js} +1 -1
  20. package/{chunk-LU7TIW3P.js → chunk-ANSV4G2K.js} +1 -1
  21. package/{chunk-YMUS7QSB.js → chunk-BACKG7KA.js} +1 -1
  22. package/{chunk-J6WVOYQ6.js → chunk-BKEJZADV.js} +2 -2
  23. package/{chunk-FMDSOHVR.js → chunk-BLSV7CNZ.js} +1 -1
  24. package/{chunk-PBYZZEYM.js → chunk-BZXBH4CN.js} +1 -1
  25. package/chunk-C3PQFWVO.js +1 -0
  26. package/{chunk-R6TFME5I.js → chunk-C6PICAXB.js} +1 -1
  27. package/{chunk-5L2OOKRZ.js → chunk-CAQ3XMFP.js} +1 -1
  28. package/chunk-DJXLNIMV.js +11 -0
  29. package/{chunk-QAQMMCTH.js → chunk-DSYNIXJF.js} +1 -1
  30. package/chunk-DSZ644JT.js +1 -0
  31. package/chunk-EADZVBRA.js +1 -0
  32. package/{chunk-CQYKOCGO.js → chunk-EDLHTWBA.js} +1 -1
  33. package/{chunk-KHFOQETZ.js → chunk-EKVZKEQJ.js} +1 -1
  34. package/{chunk-CYY7RVDE.js → chunk-ELCA5MKF.js} +2 -2
  35. package/chunk-EPIYGHPM.js +1 -0
  36. package/{chunk-J5TWEZOP.js → chunk-EXMYBMGI.js} +1 -1
  37. package/{chunk-OZEGNE5W.js → chunk-FBU3EBFO.js} +1 -1
  38. package/{chunk-APAWDC4O.js → chunk-FD5CKX3J.js} +1 -1
  39. package/{chunk-22PELS6R.js → chunk-GKGMP6VF.js} +1 -1
  40. package/chunk-GN7AO4B6.js +1 -0
  41. package/{chunk-TZEOQBIX.js → chunk-GRE6GKVP.js} +2 -2
  42. package/chunk-I6MIXWIT.js +1 -0
  43. package/{chunk-ZK3S23CJ.js → chunk-IFSZJSGH.js} +1 -1
  44. package/{chunk-AMSFSVKQ.js → chunk-IG7XUEED.js} +1 -1
  45. package/chunk-IMQUTGIK.js +1 -0
  46. package/{chunk-ZXQSQRKN.js → chunk-IQL3REGJ.js} +1 -1
  47. package/chunk-IRT2UBDI.js +2 -0
  48. package/{chunk-GE3DHZ5E.js → chunk-JPCUISZG.js} +1 -1
  49. package/{chunk-3PUCEFO5.js → chunk-KDV2OE64.js} +1 -1
  50. package/{chunk-VGBTP4QP.js → chunk-KZTFESBJ.js} +1 -1
  51. package/{chunk-7PYUNUEY.js → chunk-M3PW6DLD.js} +1 -1
  52. package/{chunk-BRL4YYWO.js → chunk-N2AU7VKX.js} +1 -1
  53. package/chunk-N3NJW75G.js +1 -0
  54. package/{chunk-VI7MBIGT.js → chunk-NHS6CQO2.js} +1 -1
  55. package/{chunk-V7UJAXBT.js → chunk-NKUA7I47.js} +2 -2
  56. package/chunk-NPFPMA4P.js +1 -0
  57. package/{chunk-WALKMFYR.js → chunk-NX35OQ3V.js} +1 -1
  58. package/{chunk-L2QOWZDR.js → chunk-O2SMJYPC.js} +1 -1
  59. package/{chunk-7FDLOZXV.js → chunk-OHYENIPP.js} +1 -1
  60. package/{chunk-FSHBOASN.js → chunk-OPHQNXYO.js} +1 -1
  61. package/chunk-P4R3ERID.js +1 -0
  62. package/chunk-PG4G4RLP.js +1 -0
  63. package/{chunk-QQLV7J6T.js → chunk-PIGMTUUT.js} +1 -1
  64. package/chunk-PXI3UZ4R.js +1 -0
  65. package/chunk-QDDVZ4CR.js +1 -0
  66. package/{chunk-CW43F6WE.js → chunk-QOWXL7ZL.js} +1 -1
  67. package/chunk-QZQS7M3D.js +1 -0
  68. package/{chunk-HHDCI6IF.js → chunk-RGFJ5UMA.js} +1 -1
  69. package/{chunk-I625OICV.js → chunk-RJ2JM7C7.js} +1 -1
  70. package/{chunk-JMLM4A3C.js → chunk-RLWICOKH.js} +1 -1
  71. package/chunk-RRDLQLTM.js +1 -0
  72. package/{chunk-ADB5QRUO.js → chunk-TCXCC5BM.js} +1 -1
  73. package/chunk-TQTOIWBK.js +4 -0
  74. package/{chunk-EQNDYV43.js → chunk-UTXZPAY6.js} +1 -1
  75. package/chunk-VC55KFAX.js +1 -0
  76. package/chunk-VKQQDCUN.js +1 -0
  77. package/{chunk-XCVBN7EK.js → chunk-WOKYULBU.js} +1 -1
  78. package/{chunk-5FQ5SDPZ.js → chunk-X276XFCH.js} +1 -1
  79. package/chunk-X4BDJA6L.js +3 -0
  80. package/{chunk-B7CQXYTS.js → chunk-XDBSTUYC.js} +1 -1
  81. package/chunk-XEG3CP74.js +1 -0
  82. package/chunk-XWTB7XRI.js +1 -0
  83. package/chunk-XXVDL5TR.js +1 -0
  84. package/{chunk-MRSBKQQM.js → chunk-YCJYEQF7.js} +1 -1
  85. package/chunk-YWBZLU6M.js +1 -0
  86. package/chunk-YWUUX3S6.js +1 -0
  87. package/{chunk-BDQJFOCO.js → chunk-ZC23RK4J.js} +1 -1
  88. package/{chunk-OBF6ZSYT.js → chunk-ZEFSBETQ.js} +1 -1
  89. package/chunk-ZHQI6LYB.js +1 -0
  90. package/chunk-ZNYN6ES6.js +1 -0
  91. package/chunk-ZNYRWXQR.js +1 -0
  92. package/{chunk-VCIINZCU.js → chunk-ZP3QZ43W.js} +1 -1
  93. package/{chunk-WIE7KXIC.js → chunk-ZYRB2TUK.js} +1 -1
  94. package/index.html +2 -2
  95. package/{main-7HIGYDD6.js → main-JR6IVB6K.js} +1 -1
  96. package/package.json +1 -1
  97. package/ship-ui-assets/mcp/components.json +2907 -2456
  98. package/styles-S2CJL4OY.css +1 -0
  99. package/chunk-22YUDKKU.js +0 -1
  100. package/chunk-2E5PWPGZ.js +0 -1
  101. package/chunk-2NLWVJNK.js +0 -1
  102. package/chunk-35APLYI4.js +0 -1
  103. package/chunk-522J6R6I.js +0 -1
  104. package/chunk-7ED2GUWQ.js +0 -1
  105. package/chunk-7WOSHJ7G.js +0 -1
  106. package/chunk-7YSKL3IG.js +0 -1
  107. package/chunk-AJZA5YWT.js +0 -1
  108. package/chunk-B3T2NEGO.js +0 -1
  109. package/chunk-BME6TJIR.js +0 -1
  110. package/chunk-BP66ERTI.js +0 -1
  111. package/chunk-C2NKW2QW.js +0 -1
  112. package/chunk-DTIGWCAE.js +0 -2
  113. package/chunk-EU6N52DH.js +0 -1
  114. package/chunk-GCYBVLSX.js +0 -3
  115. package/chunk-GO22QPW4.js +0 -1
  116. package/chunk-HO6FQWDR.js +0 -1
  117. package/chunk-HYYZB4AS.js +0 -1
  118. package/chunk-IJHPC43D.js +0 -1
  119. package/chunk-KHZ5AXGT.js +0 -1
  120. package/chunk-LOFKRPRH.js +0 -1
  121. package/chunk-M5RTYP7N.js +0 -2
  122. package/chunk-NBKLLQQO.js +0 -1
  123. package/chunk-NCXKMSRH.js +0 -1
  124. package/chunk-OO32MPRQ.js +0 -1
  125. package/chunk-QUXPHHDZ.js +0 -1
  126. package/chunk-R5OX4JTJ.js +0 -1
  127. package/chunk-T2X5J6MQ.js +0 -1
  128. package/chunk-TJNL6F5S.js +0 -1
  129. package/chunk-U34FLIYL.js +0 -1
  130. package/chunk-U3A754M6.js +0 -1
  131. package/chunk-UH2E7MMT.js +0 -4
  132. package/chunk-VDHWNNO7.js +0 -1
  133. package/chunk-Y3BYCXUX.js +0 -1
  134. package/chunk-Y3YNTMT5.js +0 -11
  135. package/chunk-YPWKWP5H.js +0 -1
  136. package/styles-43GHZ572.css +0 -1
package/chunk-NCXKMSRH.js DELETED
@@ -1 +0,0 @@
1
- import{aa as Lt,ha as Bt,ya as yi}from"./chunk-BDQJFOCO.js";import{a as Rt}from"./chunk-FSHBOASN.js";import{$a as D,$b as h,$c as j,Ab as Ie,Ac as Z,Bb as Ae,Bc as dt,Cb as X,Cc as Ye,Db as f,Dc as It,Eb as m,Fb as le,Gb as I,Hb as F,Ib as Me,Kc as vi,Lb as _e,Mb as U,Nb as Ot,Pc as At,Qc as ae,Ra as hi,Rc as E,S as at,Sa as p,U as ne,V as Ve,W as He,Wc as ce,Xa as Et,Xc as c,Y as he,Ya as ze,Yc as Q,Zb as M,_ as C,_a as ve,_b as fe,_c as kt,a as oi,ab as pi,ac as P,ad as Ft,ba as ci,bb as fi,bc as g,ca as di,da as A,ea as k,ed as _i,fc as Tt,g as si,gb as O,gc as se,gd as Pt,ha as Ne,hb as $e,hc as ee,ia as be,ib as B,ic as Vt,ja as ge,jc as te,k as ri,kb as W,kc as R,la as me,lb as pe,lc as Nt,mc as L,nc as _,ob as xt,oc as ke,pa as v,pb as gi,pc as ie,q as ai,qc as lt,ra as V,sa as je,sb as wt,sc as Ge,ta as Se,tc as qe,uc as Ue,va as N,vb as Y,vc as ct,w as li,wb as b,wc as re,xb as S,xc as G,yb as We,za as ui,zb as mi}from"./chunk-UH2E7MMT.js";import{a as H,b as q,c as ni}from"./chunk-7CGTOI24.js";var Oi=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||i)(D(ve),D(N))};static \u0275dir=B({type:i})}return i})(),nt=(()=>{class i extends Oi{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,features:[W]})}return i})(),Ce=new he(""),tn={provide:Ce,useExisting:ne(()=>nn),multi:!0},nn=(()=>{class i extends nt{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,n){t&1&&M("change",function(r){return n.onChange(r.target.checked)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Z([tn]),W]})}return i})(),on={provide:Ce,useExisting:ne(()=>Ti),multi:!0};function sn(){let i=Rt()?Rt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var rn=new he(""),Ti=(()=>{class i extends Oi{_compositionMode;_composing=!1;constructor(e,t,n){super(e,t),this._compositionMode=n,this._compositionMode==null&&(this._compositionMode=!sn())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||i)(D(ve),D(N),D(rn,8))};static \u0275dir=B({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(t,n){t&1&&M("input",function(r){return n._handleInput(r.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(r){return n._compositionEnd(r.target.value)})},standalone:!1,features:[Z([on]),W]})}return i})();function $t(i){return i==null||Wt(i)===0}function Wt(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Ee=new he(""),xe=new he(""),an=/^(?=.{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])?)*$/,Ci=class{static min(o){return ln(o)}static max(o){return cn(o)}static required(o){return dn(o)}static requiredTrue(o){return un(o)}static email(o){return hn(o)}static minLength(o){return pn(o)}static maxLength(o){return fn(o)}static pattern(o){return gn(o)}static nullValidator(o){return Vi()}static compose(o){return Pi(o)}static composeAsync(o){return Ri(o)}};function ln(i){return o=>{if(o.value==null||i==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e<i?{min:{min:i,actual:o.value}}:null}}function cn(i){return o=>{if(o.value==null||i==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e>i?{max:{max:i,actual:o.value}}:null}}function dn(i){return $t(i.value)?{required:!0}:null}function un(i){return i.value===!0?null:{required:!0}}function hn(i){return $t(i.value)||an.test(i.value)?null:{email:!0}}function pn(i){return o=>{let e=o.value?.length??Wt(o.value);return e===null||e===0?null:e<i?{minlength:{requiredLength:i,actualLength:e}}:null}}function fn(i){return o=>{let e=o.value?.length??Wt(o.value);return e!==null&&e>i?{maxlength:{requiredLength:i,actualLength:e}}:null}}function gn(i){if(!i)return Vi;let o,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),o=new RegExp(e)):(e=i.toString(),o=i),t=>{if($t(t.value))return null;let n=t.value;return o.test(n)?null:{pattern:{requiredPattern:e,actualValue:n}}}}function Vi(i){return null}function Ni(i){return i!=null}function Ii(i){return gi(i)?ri(i):i}function Ai(i){let o={};return i.forEach(e=>{o=e!=null?H(H({},o),e):o}),Object.keys(o).length===0?null:o}function ki(i,o){return o.map(e=>e(i))}function mn(i){return!i.validate}function Fi(i){return i.map(o=>mn(o)?o:e=>o.validate(e))}function Pi(i){if(!i)return null;let o=i.filter(Ni);return o.length==0?null:function(e){return Ai(ki(e,o))}}function Gt(i){return i!=null?Pi(Fi(i)):null}function Ri(i){if(!i)return null;let o=i.filter(Ni);return o.length==0?null:function(e){let t=ki(e,o).map(Ii);return li(t).pipe(ai(Ai))}}function qt(i){return i!=null?Ri(Fi(i)):null}function Di(i,o){return i===null?[o]:Array.isArray(i)?[...i,o]:[i,o]}function Li(i){return i._rawValidators}function Bi(i){return i._rawAsyncValidators}function Ht(i){return i?Array.isArray(i)?i:[i]:[]}function ht(i,o){return Array.isArray(i)?i.includes(o):i===o}function bi(i,o){let e=Ht(o);return Ht(i).forEach(n=>{ht(e,n)||e.push(n)}),e}function Si(i,o){return Ht(o).filter(e=>!ht(i,e))}var pt=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(o){this._rawValidators=o||[],this._composedValidatorFn=Gt(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=qt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o=void 0){this.control?.reset(o)}hasError(o,e){return this.control?this.control.hasError(o,e):!1}getError(o,e){return this.control?this.control.getError(o,e):null}},J=class extends pt{name;get formDirective(){return null}get path(){return null}},de=class extends pt{_parent=null;name=null;valueAccessor=null},ft=class{_cd;constructor(o){this._cd=o}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}};var Nr=(()=>{class i extends ft{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(D(de,2))};static \u0275dir=B({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,n){t&2&&R("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)},standalone:!1,features:[W]})}return i})(),Ir=(()=>{class i extends ft{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(D(J,10))};static \u0275dir=B({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,n){t&2&&R("ng-untouched",n.isUntouched)("ng-touched",n.isTouched)("ng-pristine",n.isPristine)("ng-dirty",n.isDirty)("ng-valid",n.isValid)("ng-invalid",n.isInvalid)("ng-pending",n.isPending)("ng-submitted",n.isSubmitted)},standalone:!1,features:[W]})}return i})();var Xe="VALID",ut="INVALID",Fe="PENDING",Qe="DISABLED",ye=class{},gt=class extends ye{value;source;constructor(o,e){super(),this.value=o,this.source=e}},Ze=class extends ye{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},Je=class extends ye{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},Pe=class extends ye{status;source;constructor(o,e){super(),this.status=o,this.source=e}},mt=class extends ye{source;constructor(o){super(),this.source=o}},tt=class extends ye{source;constructor(o){super(),this.source=o}};function Ut(i){return(Ct(i)?i.validators:i)||null}function vn(i){return Array.isArray(i)?Gt(i):i||null}function Yt(i,o){return(Ct(o)?o.asyncValidators:i)||null}function _n(i){return Array.isArray(i)?qt(i):i||null}function Ct(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Hi(i,o,e){let t=i.controls;if(!(o?Object.keys(t):t).length)throw new at(1e3,"");if(!t[e])throw new at(1001,"")}function ji(i,o,e){i._forEachChild((t,n)=>{if(e[n]===void 0)throw new at(1002,"")})}var Re=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(o,e){this._assignValidators(o),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get status(){return ae(this.statusReactive)}set status(o){ae(()=>this.statusReactive.set(o))}_status=E(()=>this.statusReactive());statusReactive=v(void 0);get valid(){return this.status===Xe}get invalid(){return this.status===ut}get pending(){return this.status==Fe}get disabled(){return this.status===Qe}get enabled(){return this.status!==Qe}errors;get pristine(){return ae(this.pristineReactive)}set pristine(o){ae(()=>this.pristineReactive.set(o))}_pristine=E(()=>this.pristineReactive());pristineReactive=v(!0);get dirty(){return!this.pristine}get touched(){return ae(this.touchedReactive)}set touched(o){ae(()=>this.touchedReactive.set(o))}_touched=E(()=>this.touchedReactive());touchedReactive=v(!1);get untouched(){return!this.touched}_events=new si;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._assignValidators(o)}setAsyncValidators(o){this._assignAsyncValidators(o)}addValidators(o){this.setValidators(bi(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(bi(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Si(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Si(o,this._rawAsyncValidators))}hasValidator(o){return ht(this._rawValidators,o)}hasAsyncValidator(o){return ht(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){let e=this.touched===!1;this.touched=!0;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsTouched(q(H({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Je(!0,t))}markAllAsDirty(o={}){this.markAsDirty({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(o))}markAllAsTouched(o={}){this.markAsTouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(o))}markAsUntouched(o={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=o.sourceControl??this;this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:t})}),o.onlySelf||this._parent?._updateTouched(o,t),e&&o.emitEvent!==!1&&this._events.next(new Je(!1,t))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(q(H({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Ze(!1,t))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=o.sourceControl??this;this._forEachChild(n=>{n.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,t),e&&o.emitEvent!==!1&&this._events.next(new Ze(!0,t))}markAsPending(o={}){this.status=Fe;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Pe(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(q(H({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Qe,this.errors=null,this._forEachChild(n=>{n.disable(q(H({},o),{onlySelf:!0}))}),this._updateValue();let t=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new gt(this.value,t)),this._events.next(new Pe(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(q(H({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Xe,this._forEachChild(t=>{t.enable(q(H({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(q(H({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(o,e){o.onlySelf||(this._parent?.updateValueAndValidity(o),o.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xe||this.status===Fe)&&this._runAsyncValidator(t,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new gt(this.value,e)),this._events.next(new Pe(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(q(H({},o),{sourceControl:e}))}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Qe:Xe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o,e){if(this.asyncValidator){this.status=Fe,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:o!==!1};let t=Ii(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(n=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(n,{emitEvent:e,shouldHaveEmitted:o})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let o=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,o}return!1}setErrors(o,e={}){this.errors=o,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(o){let e=o;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,n)=>t&&t._find(n),this)}getError(o,e){let t=e?this.get(e):this;return t?.errors?t.errors[o]:null}hasError(o,e){return!!this.getError(o,e)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o,e,t){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),(o||t)&&this._events.next(new Pe(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,t)}_initObservables(){this.valueChanges=new me,this.statusChanges=new me}_calculateStatus(){return this._allControlsDisabled()?Qe:this.errors?ut:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fe)?Fe:this._anyControlsHaveStatus(ut)?ut:Xe}_anyControlsHaveStatus(o){return this._anyControls(e=>e.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o,e){let t=!this._anyControlsDirty(),n=this.pristine!==t;this.pristine=t,o.onlySelf||this._parent?._updatePristine(o,e),n&&this._events.next(new Ze(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new Je(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){Ct(o)&&o.updateOn!=null&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(o){return null}_assignValidators(o){this._rawValidators=Array.isArray(o)?o.slice():o,this._composedValidatorFn=vn(this._rawValidators)}_assignAsyncValidators(o){this._rawAsyncValidators=Array.isArray(o)?o.slice():o,this._composedAsyncValidatorFn=_n(this._rawAsyncValidators)}},Le=class extends Re{constructor(o,e,t){super(Ut(e),Yt(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(o,e){return this.controls[o]?this.controls[o]:(this.controls[o]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(o,e,t={}){this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(o,e={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(o,e,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],e&&this.registerControl(o,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,e={}){ji(this,!0,o),Object.keys(o).forEach(t=>{Hi(this,!0,t),this.controls[t].setValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(Object.keys(o).forEach(t=>{let n=this.controls[t];n&&n.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,n)=>{t.reset(o?o[n]:null,q(H({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new tt(this))}getRawValue(){return this._reduceChildren({},(o,e,t)=>(o[t]=e.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&o(t,e)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&o(t))return!0;return!1}_reduceValue(){let o={};return this._reduceChildren(o,(e,t,n)=>((t.enabled||this.disabled)&&(e[n]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((n,s)=>{t=e(t,n,s)}),t}_allControlsDisabled(){for(let o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}};var jt=class extends Le{};var we=new he("",{factory:()=>ot}),ot="always";function Dt(i,o){return[...o.path,i]}function it(i,o,e=ot){Xt(i,o),o.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(i.disabled),Cn(i,o),bn(i,o),Dn(i,o),yn(i,o)}function vt(i,o,e=!0){let t=()=>{};o?.valueAccessor?.registerOnChange(t),o?.valueAccessor?.registerOnTouched(t),yt(i,o),i&&(o._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function _t(i,o){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function yn(i,o){if(o.valueAccessor.setDisabledState){let e=t=>{o.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),o._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Xt(i,o){let e=Li(i);o.validator!==null?i.setValidators(Di(e,o.validator)):typeof e=="function"&&i.setValidators([e]);let t=Bi(i);o.asyncValidator!==null?i.setAsyncValidators(Di(t,o.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let n=()=>i.updateValueAndValidity();_t(o._rawValidators,n),_t(o._rawAsyncValidators,n)}function yt(i,o){let e=!1;if(i!==null){if(o.validator!==null){let n=Li(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(r=>r!==o.validator);s.length!==n.length&&(e=!0,i.setValidators(s))}}if(o.asyncValidator!==null){let n=Bi(i);if(Array.isArray(n)&&n.length>0){let s=n.filter(r=>r!==o.asyncValidator);s.length!==n.length&&(e=!0,i.setAsyncValidators(s))}}}let t=()=>{};return _t(o._rawValidators,t),_t(o._rawAsyncValidators,t),e}function Cn(i,o){o.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&zi(i,o)})}function Dn(i,o){o.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&zi(i,o),i.updateOn!=="submit"&&i.markAsTouched()})}function zi(i,o){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function bn(i,o){let e=(t,n)=>{o.valueAccessor.writeValue(t),n&&o.viewToModelUpdate(t)};i.registerOnChange(e),o._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function $i(i,o){i==null,Xt(i,o)}function Sn(i,o){return yt(i,o)}function Qt(i,o){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Mn(i){return Object.getPrototypeOf(i.constructor)===nt}function Wi(i,o){i._syncPendingControls(),o.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Kt(i,o){if(!o)return null;Array.isArray(o);let e,t,n;return o.forEach(s=>{s.constructor===Ti?e=s:Mn(s)?t=s:n=s}),n||t||e||null}function En(i,o){let e=i.indexOf(o);e>-1&&i.splice(e,1)}var xn={provide:J,useExisting:ne(()=>wn)},Ke=Promise.resolve(),wn=(()=>{class i extends J{callSetDisabledState;get submitted(){return ae(this.submittedReactive)}_submitted=E(()=>this.submittedReactive());submittedReactive=v(!1);_directives=new Set;form;ngSubmit=new me;options;constructor(e,t,n){super(),this.callSetDisabledState=n,this.form=new Le({},Gt(e),qt(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ke.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),it(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ke.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ke.then(()=>{let t=this._findContainer(e.path),n=new Le({});$i(n,e),t.registerControl(e.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ke.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ke.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),Wi(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new mt(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||i)(D(Ee,10),D(xe,10),D(we,8))};static \u0275dir=B({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,n){t&1&&M("submit",function(r){return n.onSubmit(r)})("reset",function(){return n.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Z([xn]),W]})}return i})();function Mi(i,o){let e=i.indexOf(o);e>-1&&i.splice(e,1)}function Ei(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var et=class extends Re{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,t){super(Ut(e),Yt(t,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ct(e)&&(e.nonNullable||e.initialValueIsDefault)&&(Ei(o)?this.defaultValue=o.value:this.defaultValue=o)}setValue(o,e={}){this.value=this._pendingValue=o,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(o,e={}){this.setValue(o,e)}reset(o=this.defaultValue,e={}){this._applyFormState(o),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new tt(this))}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){Mi(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){Mi(this._onDisabledChange,o)}_forEachChild(o){}_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(o){Ei(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}};var On=i=>i instanceof et,Tn=(()=>{class i extends J{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Dt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,standalone:!1,features:[W]})}return i})();var Vn={provide:de,useExisting:ne(()=>bt)},xi=Promise.resolve(),bt=(()=>{class i extends de{_changeDetectorRef;callSetDisabledState;control=new et;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new me;constructor(e,t,n,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Kt(this,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),Qt(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){it(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){xi.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,n=t!==0&&_i(t);xi.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Dt(e,this._parent):[e]}static \u0275fac=function(t){return new(t||i)(D(J,9),D(Ee,10),D(xe,10),D(Ce,10),D(Ft,8),D(we,8))};static \u0275dir=B({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:[Z([Vn]),W,je]})}return i})();var kr=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=B({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),Nn={provide:Ce,useExisting:ne(()=>In),multi:!0},In=(()=>{class i extends nt{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,n){t&1&&M("input",function(r){return n.onChange(r.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Z([Nn]),W]})}return i})(),An={provide:Ce,useExisting:ne(()=>Fn),multi:!0};var kn=(()=>{class i{_accessors=[];add(e,t){this._accessors.push([e,t])}remove(e){for(let t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e){this._accessors.splice(t,1);return}}select(e){this._accessors.forEach(t=>{this._isSameGroup(t,e)&&t[1]!==e&&t[1].fireUncheck(e.value)})}_isSameGroup(e,t){return e[0].control?e[0]._parent===t._control._parent&&e[1].name===t.name:!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Fn=(()=>{class i extends nt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=C(we,{optional:!0})??ot;constructor(e,t,n,s){super(e,t),this._registry=n,this._injector=s}ngOnInit(){this._control=this._injector.get(de),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(t){return new(t||i)(D(ve),D(N),D(kn),D(Ne))};static \u0275dir=B({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,n){t&1&&M("change",function(){return n.onChange()})("blur",function(){return n.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[Z([An]),W]})}return i})(),Pn={provide:Ce,useExisting:ne(()=>Rn),multi:!0},Rn=(()=>{class i extends nt{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,n){t&1&&M("change",function(r){return n.onChange(r.target.value)})("input",function(r){return n.onChange(r.target.value)})("blur",function(){return n.onTouched()})},standalone:!1,features:[Z([Pn]),W]})}return i})(),zt=class extends Re{constructor(o,e,t){super(Ut(e),Yt(t,e)),this.controls=o,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(o){return this.controls[this._adjustIndex(o)]}push(o,e={}){Array.isArray(o)?o.forEach(t=>{this.controls.push(t),this._registerControl(t)}):(this.controls.push(o),this._registerControl(o)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(o,e,t={}){this.controls.splice(o,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(o,e={}){let t=this._adjustIndex(o);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(o,e,t={}){let n=this._adjustIndex(o);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),e&&(this.controls.splice(n,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(o,e={}){ji(this,!1,o),o.forEach((t,n)=>{Hi(this,!1,n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(o.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,n)=>{t.reset(o[n],q(H({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new tt(this))}getRawValue(){return this.controls.map(o=>o.getRawValue())}clear(o={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:o.emitEvent}))}_adjustIndex(o){return o<0?o+this.length:o}_syncPendingControls(){let o=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){this.controls.forEach((e,t)=>{o(e,t)})}_updateValue(){this.value=this.controls.filter(o=>o.enabled||this.disabled).map(o=>o.value)}_anyControls(o){return this.controls.some(e=>e.enabled&&o(e))}_setUpControls(){this._forEachChild(o=>this._registerControl(o))}_allControlsDisabled(){for(let o of this.controls)if(o.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(o){o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)}_find(o){return this.at(o)??null}};var Gi=(()=>{class i extends J{callSetDisabledState;get submitted(){return ae(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=E(()=>this._submittedReactive());_submittedReactive=v(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,t,n){super(),this.callSetDisabledState=n,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(yt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let t=this.form.get(e.path);return it(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){vt(e.control||null,e,!1),En(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,t){this.form.get(e.path).setValue(t)}onReset(){this.resetForm()}resetForm(e=void 0,t={}){this.form.reset(e,t),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,Wi(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new mt(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,n=this.form.get(e.path);t!==n&&(vt(t||null,e),On(n)&&(it(n,e,this.callSetDisabledState),e.control=n))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);$i(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let t=this.form?.get(e.path);t&&Sn(t,e)&&t.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){Xt(this.form,this),this._oldForm&&yt(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||i)(D(Ee,10),D(xe,10),D(we,8))};static \u0275dir=B({type:i,features:[W,je]})}return i})();var Zt=new he(""),Ln={provide:de,useExisting:ne(()=>Bn)},Bn=(()=>{class i extends de{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,n,s,r){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Kt(this,n)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&vt(t,this,!1),it(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Qt(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&vt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(t){return new(t||i)(D(Ee,10),D(xe,10),D(Ce,10),D(Zt,8),D(we,8))};static \u0275dir=B({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:[Z([Ln]),W,je]})}return i})(),Hn={provide:J,useExisting:ne(()=>qi)},qi=(()=>{class i extends Tn{name=null;constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}_checkParentType(){Yi(this._parent)}static \u0275fac=function(t){return new(t||i)(D(J,13),D(Ee,10),D(xe,10))};static \u0275dir=B({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[Z([Hn]),W]})}return i})(),jn={provide:J,useExisting:ne(()=>Ui)},Ui=(()=>{class i extends J{_parent;name=null;constructor(e,t,n){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(n)}ngOnInit(){Yi(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 Dt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(t){return new(t||i)(D(J,13),D(Ee,10),D(xe,10))};static \u0275dir=B({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[Z([jn]),W]})}return i})();function Yi(i){return!(i instanceof qi)&&!(i instanceof Gi)&&!(i instanceof Ui)}var zn={provide:de,useExisting:ne(()=>$n)},$n=(()=>{class i extends de{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,n,s,r){super(),this._ngModelWarningConfig=r,this._parent=e,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=Kt(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Qt(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Dt(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(t){return new(t||i)(D(J,13),D(Ee,10),D(xe,10),D(Ce,10),D(Zt,8))};static \u0275dir=B({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Z([zn]),W,je]})}return i})();var Wn={provide:J,useExisting:ne(()=>Gn)},Gn=(()=>{class i extends Gi{form=null;ngSubmit=new me;get control(){return this.form}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Se(i)))(n||i)}})();static \u0275dir=B({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,n){t&1&&M("submit",function(r){return n.onSubmit(r)})("reset",function(){return n.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Z([Wn]),W]})}return i})();var Xi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=$e({type:i});static \u0275inj=He({})}return i})();function wi(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Fr=(()=>{class i{useNonNullable=!1;get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,t=null){let n=this._reduceControls(e),s={};return wi(t)?s=t:t!==null&&(s.validators=t.validator,s.asyncValidators=t.asyncValidator),new Le(n,s)}record(e,t=null){let n=this._reduceControls(e);return new jt(n,t)}control(e,t,n){let s={};return this.useNonNullable?(wi(t)?s=t:(s.validators=t,s.asyncValidators=n),new et(e,q(H({},s),{nonNullable:!0}))):new et(e,t,n)}array(e,t,n){let s=e.map(r=>this._createControl(r));return new zt(s,t,n)}_reduceControls(e){let t={};return Object.keys(e).forEach(n=>{t[n]=this._createControl(e[n])}),t}_createControl(e){if(e instanceof et)return e;if(e instanceof Re)return e;if(Array.isArray(e)){let t=e[0],n=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(t,n,s)}else return this.control(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Pr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:we,useValue:e.callSetDisabledState??ot}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=$e({type:i});static \u0275inj=He({imports:[Xi]})}return i})(),Rr=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:Zt,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:we,useValue:e.callSetDisabledState??ot}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=$e({type:i});static \u0275inj=He({imports:[Xi]})}return i})();var oe=["*"],qn=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["button"]],[["","actions",""]],[["","content",""]],[["p"]]],Un=["[icon]","sh-icon","[title]","*","button","[actions]","[content]","p"];function Yn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"info"),m())}function Xn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"info"),m())}function Qn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"warning"),m())}function Kn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"warning-octagon"),m())}function Zn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"check-circle"),m())}function Jn(i,o){i&1&&(f(0,"sh-icon",3),_(1,"question"),m())}function eo(i,o){if(i&1){let e=U();f(0,"sh-icon",8),M("click",function(){A(e);let n=h();return k(n.removeAlert())}),_(1,"plus"),m()}}var to=["dialogRef"];function io(i,o){if(i&1){let e=U();I(0,"div",5),fe("click",function(){A(e);let n=h(2);return k(n.isOpen.set(!1))}),F()}}function no(i,o){if(i&1&&(I(0,"dialog",2,0)(2,"div",3),g(3),F(),b(4,io,1,0,"div",4),F()),i&2){let e=h(),t=G(0);L(t.class),te("width",t.width??"")("max-width",t.maxWidth??"")("max-height",t.maxHeight??"")("height",t.height??""),p(4),S(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var oo=["shButton",""],Jt=["internalInput"];function so(i,o){if(i&1){let e=U();f(0,"input",6,0),M("change",function(n){A(e);let s=h();return k(s.onInternalInputChange(n))}),m()}if(i&2){let e=h();X("checked",e.checked()),Y("disabled",e.disabled()?"":null)}}var ro=["daysRef"];function ao(i,o){if(i&1&&_(0),i&2){let e=h();ie(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function lo(i,o){if(i&1&&(f(0,"div"),_(1),m()),i&2){let e=o.$implicit;p(),ke(e)}}function co(i,o){if(i&1){let e=U();f(0,"div",2,1),M("click",function(){let n=A(e).$implicit,s=Vt(1),r=h(2);return k(r.setDate(n,s))}),_(2),m()}if(i&2){let e=o.$implicit,t=h().$implicit,n=h();L(n.isDateSelected(e)),R("out-of-scope",!n.isCurrentMonth(e,t)),p(2),ie(" ",e.getDate()," ")}}function uo(i,o){if(i&1&&(f(0,"article",7),le(1,"div",9),m()),i&2){let e=h(2);p(),Nt(e.selectedDateStylePosition())}}function ho(i,o){if(i&1&&(f(0,"div",5)(1,"nav",6),Ie(2,lo,2,1,"div",null,We),m(),f(4,"div",7,0),Ie(6,co,3,5,"div",8,We),b(8,uo,2,2,"article",7),m()()),i&2){let e=o.$implicit,t=h();p(2),Ae(t.weekdays()),p(4),Ae(t.getMonthDates(e)),p(2),S(t.asRange()?-1:8)}}var po=["triggerRef"],fo=["popoverRef"],go=["popoverContentRef"],mo=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],vo=["[trigger]","button","[shButton]","*"];function _o(i,o){if(i&1){let e=U();I(0,"div",6,1)(2,"div",7),fe("click",function(n){A(e);let s=h();return k(s.eventClose(n))}),F(),I(3,"div",8,2),g(5,3),F()()}if(i&2){let e=h();Y("id",e.id()+"hello"),p(3),Nt(e.menuStyle()),te("position-anchor",e.id())}}var yo=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],Co=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],Qi=()=>({closeOnButton:!1,closeOnEsc:!0}),Do=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],bo=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];function So(i,o){if(i&1&&(f(0,"div",3),_(1),m()),i&2){let e=h();p(),ie(" ",e._maskedDate()," ")}}function Mo(i,o){if(i&1){let e=U();f(0,"sh-datepicker",7),M("dateChange",function(n){A(e);let s=h();return k(s.onDateChange(n))}),m()}if(i&2){let e=h();L(e.currentClass()),X("date",e.internalDate())}}function Eo(i,o){}var xo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],wo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],Oo=["input"],To=[[["label"]]],Vo=["label"];function No(i,o){if(i&1&&(f(0,"div",3),_(1),m()),i&2){let e=h();p(),ke(e.files()[0].name)}}function Io(i,o){if(i&1&&(f(0,"div",3),_(1),m()),i&2){let e=h();p(),ie("",e.files().length," files selected")}}function Ao(i,o){if(i&1&&(f(0,"div",4),_(1),m()),i&2){let e=h();p(),ke(e.filesOver()?e.overlayText():e.placeholder())}}var ko=["inputRef"],Fo=["optionsRef"],Po=["*",[["","menu",""]]],Ro=["*","[menu]"];function Lo(i,o){i&1&&(f(0,"sh-icon",5),_(1,"caret-down"),m())}function Bo(i,o){if(i&1){let e=U();I(0,"input",3,0),fe("change",function(n){A(e);let s=h();return k(s.onInternalInputChange(n))}),F()}if(i&2){let e=h();Ot("checked",e.checked()),Y("disabled",e.disabled()?"":null)}}var Ho=[[["label"]],[["input","type","range"]]],jo=["label","input[type=range]"],zo=["optionsWrap"],$o=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],Wo=["label","[prefix]","[boxPrefix]","input","textarea"],Go=()=>({closeOnButton:!1,closeOnEsc:!1}),Ki=(i,o)=>({$implicit:i,last:o}),St=i=>({$implicit:i});function qo(i,o){if(i&1&&_(0),i&2){let e=h();ie(" ",e.inputValue()," ")}}function Uo(i,o){i&1&&_e(0)}function Yo(i,o){if(i&1&&pe(0,Uo,1,0,"ng-container",13),i&2){let e=h(3),t=e.$implicit,n=e.$index,s=e.$count;h(2);let r=G(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",It(2,Ki,t,n===s-1))}}function Xo(i,o){if(i&1&&_(0),i&2){let e=h(3).$implicit,t=h(2);ie(" ",t.getLabel(e)," ")}}function Qo(i,o){if(i&1){let e=U();f(0,"sh-chip",12),M("click",function(n){A(e);let s=h(2).$index,r=h(2);return k(r.removeSelectedOptionByIndex(n,s))}),b(1,Yo,1,5,"ng-container")(2,Xo,1,1),f(3,"sh-icon"),_(4,"x-bold"),m()()}if(i&2){let e=h(4),t=G(3);L(e.selectClasses()),p(),S(t?1:2)}}function Ko(i,o){i&1&&_e(0)}function Zo(i,o){if(i&1&&pe(0,Ko,1,0,"ng-container",13),i&2){let e=h(4),t=e.$implicit,n=e.$index,s=e.$count;h(2);let r=G(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",It(2,Ki,t,n===s-1))}}function Jo(i,o){if(i&1&&_(0),i&2){let e=h(4),t=e.$implicit,n=e.$index,s=e.$count,r=h(2);ie(" ",n===s-1?r.getLabel(t):r.getLabel(t)+","," ")}}function es(i,o){if(i&1&&b(0,Zo,1,5,"ng-container")(1,Jo,1,1),i&2){h(5);let e=G(3);S(e?0:1)}}function ts(i,o){if(i&1&&b(0,es,2,1),i&2){h(4);let e=G(6);S(e?-1:0)}}function is(i,o){if(i&1&&b(0,Qo,5,3,"sh-chip",11)(1,ts,1,1),i&2){h(3);let e=G(5);S(e?0:1)}}function ns(i,o){if(i&1&&b(0,is,2,1),i&2){let e=o.$implicit;S(e?0:-1)}}function os(i,o){if(i&1&&Ie(0,ns,1,1,null,null,We),i&2){h();let e=G(2);Ae(e)}}function ss(i,o){i&1&&_e(0)}function rs(i,o){if(i&1&&pe(0,ss,1,0,"ng-container",14),i&2){h(2);let e=G(0);X("ngTemplateOutlet",e)}}function as(i,o){if(i&1&&_(0),i&2){let e=h(2);ie(" ",e.placeholderText()??""," ")}}function ls(i,o){if(i&1&&b(0,rs,1,1,"ng-container")(1,as,1,1),i&2){h();let e=G(0);S(e?0:1)}}function cs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"caret-down"),m())}function ds(i,o){i&1&&le(0,"sh-spinner",7)}function us(i,o){i&1&&(f(0,"sh-icon",6),_(1,"list-magnifying-glass"),m())}function hs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"magnifying-glass"),m())}function ps(i,o){if(i&1){let e=U();f(0,"sh-icon",15),M("click",function(n){A(e);let s=h();return k(s.clear(n))}),_(1,"x-bold"),m()}}function fs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"caret-down"),m())}function gs(i,o){i&1&&(f(0,"sh-icon",6),_(1,"caret-up"),m())}function ms(i,o){if(i&1&&(f(0,"p",9),_(1),m()),i&2){let e=h(3);p(),ke(e.freeTextTitle())}}function vs(i,o){i&1&&_e(0)}function _s(i,o){if(i&1&&pe(0,vs,1,0,"ng-container",13),i&2){h(2);let e=G(0);h();let t=G(1);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Ye(2,St,e))}}function ys(i,o){i&1&&_e(0)}function Cs(i,o){if(i&1&&pe(0,ys,1,0,"ng-container",13),i&2){h(2);let e=G(0);h();let t=G(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Ye(2,St,e))}}function Ds(i,o){if(i&1&&_(0),i&2){h(2);let e=G(1);ie(" ",e," ")}}function bs(i,o){i&1&&le(0,"sh-divider")}function Ss(i,o){if(i&1){let e=U();b(0,ms,2,1,"p",9),f(1,"li",16),M("click",function(){A(e);let n=h(2);return k(n.toggleOptionByIndex(-1))}),b(2,_s,1,4,"ng-container")(3,Cs,1,4,"ng-container")(4,Ds,1,1),m(),b(5,bs,1,0,"sh-divider")}if(i&2){h();let e=G(0),t=h(),n=G(1),s=G(4);S(t.freeTextTitle()?0:-1),p(),R("selected",t.isSelected(-1))("focused",t.focusedOptionIndex()===-1),X("id",t.getLabelAsSlug(e)),Y("aria-selected",t.isSelected(-1)),p(),S(n?2:s?3:4),p(3),S(t.freeTextTitle()&&t.filteredOptions().length>0?5:-1)}}function Ms(i,o){if(i&1&&(ct(0)(1),b(2,Ss,6,9)),i&2){let e=h(),t=re(e.computedFreeTextOption());p();let n=re(e.getValue(t));p(),S(n.length>0?2:-1)}}function Es(i,o){if(i&1&&(f(0,"p",9),_(1),m()),i&2){let e=h();p(),ke(e.optionTitle())}}function xs(i,o){if(i&1&&le(0,"sh-checkbox",18),i&2){let e=h().$index,t=h();L(t.selectClasses()),X("checked",t.isSelected(e))}}function ws(i,o){i&1&&_e(0)}function Os(i,o){if(i&1&&pe(0,ws,1,0,"ng-container",13),i&2){let e=h().$implicit;h();let t=G(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Ye(2,St,e))}}function Ts(i,o){if(i&1&&_(0),i&2){let e=h().$implicit,t=h();ie(" ",t.getLabel(e)," ")}}function Vs(i,o){if(i&1){let e=U();f(0,"li",16),M("click",function(){let n=A(e).$index,s=h();return k(s.toggleOptionByIndex(n))}),b(1,xs,1,3,"sh-checkbox",17),b(2,Os,1,4,"ng-container")(3,Ts,1,1),m()}if(i&2){let e=o.$implicit,t=o.$index,n=h(),s=G(4);R("selected",n.isSelected(t))("focused",t===n.focusedOptionIndex()),X("id",n.getLabelAsSlug(e)),Y("aria-selected",n.isSelected(t)),p(),S(n.selectMultiple()?1:-1),p(),S(s?2:3)}}var Ns=["dragImageElement"],Is=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],As=["[sidenav]","[sidenav-closed-topbar]","*"];function ks(i,o){i&1&&Me(0,"div",1,0)}function Fs(i,o){if(i&1){let e=U();I(0,"div",7),fe("drop",function(n){A(e);let s=h();return k(s.drop(n))})("dragenter",function(){A(e);let n=h();return k(n.dragEnter())})("dragleave",function(){A(e);let n=h();return k(n.dragLeave())}),F()}}function Ps(i,o){if(i&1){let e=U();I(0,"div",8),fe("dragstart",function(n){A(e);let s=h();return k(s.dragStart(n))})("dragend",function(n){A(e);let s=h();return k(s.dragEnd(n))})("drag",function(n){A(e);let s=h();return k(s.drag(n))})("touchstart",function(n){A(e);let s=h();return k(s.touchStart(n))})("touchmove",function(n){A(e);let s=h();return k(s.touchMove(n))})("touchend",function(n){A(e);let s=h();return k(s.touchEnd(n))})("touchcancel",function(n){A(e);let s=h();return k(s.touchCancel(n))}),F()}}var Rs=["thead"],Ls=["tbody"],Bs=[[["","actionbar",""]],[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],Hs=["[actionbar]","th","[thead]","*","[table-no-rows]"];function js(i,o){i&1&&le(0,"sh-progress-bar",3)}function zs(i,o){i&1&&(f(0,"div",4),g(1,4),m())}var $s=[[["","title",""]],"*"],Ws=["[title]","*"];function Gs(i,o){i&1&&_(0,"Title")}function qs(i,o){i&1&&(f(0,"sh-icon",1),_(1,"caret-down"),m())}function Us(i,o){if(i&1){let e=U();I(0,"input",4,0),fe("change",function(n){A(e);let s=h();return k(s.onInternalInputChange(n))}),F()}if(i&2){let e=h();Ot("checked",e.checked()),Y("disabled",e.disabled()?"":null)}}function Ys(i,o){i&1&&_e(0)}function Xs(i,o){if(i&1&&pe(0,Ys,1,0,"ng-container",1),i&2){let e=h();X("ngTemplateOutlet",e.content())("ngTemplateOutletContext",Ye(2,St,e.tooltipContext))}}function Qs(i,o){if(i&1&&_(0),i&2){let e=h();ie(" ",e.content()," ")}}var Zi=new he("Ship UI Config");function K(i,o){let e=C(Zi,{optional:!0});return E(()=>{let t=e?.[i],n=o.variant?.();n||(n=t?.variant),!n&&i==="alert"&&e?.alertVariant&&(n=e.alertVariant),!n&&i==="card"&&e?.cardType&&(n=e.cardType),!n&&i==="table"&&e?.tableType&&(n=e.tableType);let s=o.color?.()||t?.color,r=o.size?.()||t?.size,a=(o.sharp?.()??t?.sharp)||!1,l=(o.dynamic?.()??t?.dynamic)||!1,d=(o.readonly?.()??t?.readonly)||!1,u=[];return s&&u.push(s),n&&(["a","b","c","d"].includes(n)?u.push(`type-${n}`):u.push(n)),r&&u.push(r),a&&u.push("sharp"),l&&u.push("dynamic"),d&&u.push("readonly"),u.join(" ")})}var Ks=["bold","thin","light","fill","duotone"],De=(()=>{class i{constructor(){this.#t=C(N),this.#n=C(ve),this.color=c(null),this.variant=c(null),this.size=c(null),this.hostClasses=K("icon",{color:this.color,variant:this.variant,size:this.size})}#t;#n;ngAfterContentInit(){let e=this.#t.nativeElement.textContent?.trim();if(!e)return;let t=e.split("-").at(-1);t&&Ks.includes(t)&&this.#n.addClass(this.#t.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-icon"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),la=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=K("alert",{color:this.color,variant:this.variant}),this._el=C(N),this.alertService=c(null),this.id=c(null)}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-alert"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:Un,decls:22,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"actions"],[1,"content"],[1,"close-icon",3,"click"]],template:function(t,n){if(t&1&&(P(qn),f(0,"div",1)(1,"div",2,0),g(3),g(4,1),m(),f(5,"div",2),b(6,Yn,2,0,"sh-icon",3)(7,Xn,2,0,"sh-icon",3)(8,Qn,2,0,"sh-icon",3)(9,Kn,2,0,"sh-icon",3)(10,Zn,2,0,"sh-icon",3)(11,Jn,2,0,"sh-icon",3),m(),f(12,"div",4),g(13,2),g(14,3),m(),b(15,eo,2,0,"sh-icon",5),f(16,"div",6),g(17,4),g(18,5),m(),f(19,"div",7),g(20,6),g(21,7),m()()),t&2){let s=Vt(2);p(),te("display",s.children.length?"block":"none");let r=n.hostClasses();p(5),S(r.includes("primary")?6:r.includes("accent")?7:r.includes("warn")?8:r.includes("error")?9:r.includes("success")?10:11),p(9),S(n.id()?15:-1)}},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})();function st(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ca=(()=>{class i{constructor(){this.alertHistory=v([]),this.alertHistoryIsOpen=v(!1),this.alertHistoryIsHidden=v(!0)}error(e){this.addAlert({type:"error",title:e??"An error occured"})}success(e){this.addAlert({type:"success",title:e})}question(e){this.addAlert({type:"question",title:e})}warning(e){this.addAlert({type:"warn",title:e})}info(e){this.addAlert({type:"primary",title:e})}addAlert(e){let t=st();this.alertHistory.update(n=>[q(H({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...n]),setTimeout(()=>{this.alertHistory.update(n=>n.map(s=>q(H({},s),{animateIn:s.id===t?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(n=>q(H({},n),{animateOut:n.id===e?!1:n.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(n=>n.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(n=>q(H({},n),{isOpen:n.id===e?!1:n.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Zs={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Js=(()=>{class i{constructor(){this.#t=C(be),this.#n=C(Zi,{optional:!0}),this.dialogRef=Q("dialogRef"),this.isOpen=j(!1),this.options=c(),this.closed=ce(),this.defaultOptionMerge=E(()=>H(q(H({},Zs),{class:this.#n?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=V(()=>{let e=this.dialogRef()?.nativeElement;e&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(e.showModal(),e.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),this.#t.addEventListener("keydown",t=>{t.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&t.preventDefault(),t.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(e.close(),queueMicrotask(()=>this.closed.emit())))})}#t;#n;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-dialog"]],viewQuery:function(t,n){t&1&&se(n.dialogRef,to,5),t&2&&ee()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:oe,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(t,n){t&1&&(P(),ct(0),b(1,no,5,11,"dialog",1)),t&2&&(re(n.defaultOptionMerge()),p(),S(n.isOpen()?1:-1))},encapsulation:2,changeDetection:0})}}return i})(),da=(()=>{class i{constructor(){this.#t=C(be),this.#n=this.#t.querySelector("body"),this.#e=C(wt),this.compRef=null,this.insertedCompRef=null,this.insertedTemplateRef=null,this.closedFieldSub=null,this.compClosedSub=null}#t;#n;#e;open(e,t){let n=this.#e.injector,s=this.#i(),r=!1,a,w=t||{},{data:l,closed:d}=w,u=ni(w,["data","closed"]);this.compRef&&this.#o(!0);let y=this;function T(x=void 0){y.#o(),!r&&(r=!0,a&&a instanceof At&&a.emit(x),d?.(x))}let $=[];if(e instanceof ze)this.insertedTemplateRef=e.createEmbeddedView({$implicit:l,close:x=>T(x)}),$=[this.insertedTemplateRef.rootNodes];else{this.insertedCompRef=Pt(e,{environmentInjector:n}),$=[[this.insertedCompRef.location.nativeElement]];let x=this.insertedCompRef.instance,Oe=x.data;if(a=x.closed,l){if(xt(Oe))this.insertedCompRef.setInput("data",l);else if(!xt(Oe))throw new Error("data is not an input signal on the passed component")}a&&a instanceof At&&(this.closedFieldSub=a.subscribe(Te=>{this.#o(),!r&&(r=!0,d?.(Te),(this.compRef?.instance.closed).emit(Te))}))}return this.compRef=Pt(Js,{hostElement:s,environmentInjector:n,projectableNodes:$}),this.insertedCompRef&&(this.#e.attachView(this.insertedCompRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges()),this.insertedTemplateRef&&(this.#e.attachView(this.insertedTemplateRef),this.insertedTemplateRef.detectChanges()),this.#e.attachView(this.compRef.hostView),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",u),this.compClosedSub=this.compRef.instance.closed.subscribe(()=>T()),{component:this.insertedCompRef?.instance,close:T,closed:this.compRef.instance.closed}}#i(){let e=this.#t.createElement("sh-dialog-ref");return e.id="sh-dialog-ref",this.#t.getElementById("sh-dialog-ref")||this.#n?.append(e),this.#t.getElementById("sh-dialog-ref")}#o(e=!1){let t=this;e||queueMicrotask(()=>n());function n(){t.insertedCompRef&&(t.#e.detachView(t.insertedCompRef.hostView),t.closedFieldSub?.unsubscribe(),t.insertedCompRef.destroy(),t.insertedCompRef=null),t.insertedTemplateRef&&(t.#e.detachView(t.insertedTemplateRef),t.insertedTemplateRef.destroy(),t.insertedTemplateRef=null),t.compRef&&(t.#e.detachView(t.compRef.hostView),t.compClosedSub?.unsubscribe(),t.compRef.destroy())}}ngOnDestroy(){this.#o(!0)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=Ve({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Mt(i=null){let o=i??C(N).nativeElement;if(!o)return v("");let e=v(o.className);if(typeof MutationObserver>"u")return e.asReadonly();let t=C(ge),n=new MutationObserver(s=>{for(let r of s)if(r.type==="attributes"&&r.attributeName==="class"){let a=r.target;e.set(a.className)}});return n.observe(o,{attributes:!0,attributeFilter:["class"]}),t.onDestroy(()=>n.disconnect()),e.asReadonly()}function rt(i,o={childList:!0}){let e=C(N).nativeElement,t=C(ge),n=v([]),s=()=>{n.set(Array.from(e.querySelectorAll(i)))};if(s(),typeof MutationObserver>"u")return n.asReadonly();let r=new MutationObserver(a=>{a.some(d=>d.type==="childList")&&s()});return r.observe(e,o),t.onDestroy(()=>r.disconnect()),n.asReadonly()}var ei=(()=>{class i{constructor(e,t){this.itemSelector=e,this.activeClass=t,this.hostElement=C(N).nativeElement,this.value=j(null),this.items=rt(this.itemSelector,{childList:!0,subtree:!0,attributes:!0}),V(()=>{let n=this.value(),s=this.activeClass;this.items().forEach(r=>{let a=r.getAttribute("value");a===null&&!r.hasAttribute("value")||(a===String(n)||a===""&&(n===null||n==="")?r.classList.add(s):r.classList.remove(s))})})}onClick(e){let t=e;if(!t||!t.closest)return;let n=t.closest(this.itemSelector);if(n&&this.hostElement.contains(n)&&n.hasAttribute("value")){let s=n.getAttribute("value");this.value.set(s)}}onKeyDown(e){let t=this.items().filter(a=>a.hasAttribute("value"));if(!t.length)return;let n=t.findIndex(a=>a.classList.contains(this.activeClass)),s=n;switch(e.key){case"ArrowRight":case"ArrowDown":s=n>=t.length-1?0:n+1;break;case"ArrowLeft":case"ArrowUp":s=n<=0?t.length-1:n-1;break;default:return}e.preventDefault();let r=t[s];if(r){let a=r.getAttribute("value");this.value.set(a),r.focus()}}static{this.\u0275fac=function(t){pi()}}static{this.\u0275dir=B({type:i,hostBindings:function(t,n){t&1&&M("click",function(r){return n.onClick(r.target)})("keydown",function(r){return n.onKeyDown(r)})},inputs:{value:[1,"value"]},outputs:{value:"valueChange"}})}}return i})(),ua=(()=>{class i extends ei{constructor(){super("button","active"),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=c(null),this.variant=c(null),this.size=c(null),this.hostClasses=K("buttonGroup",{color:this.color,variant:this.variant,size:this.size})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-button-group"]],hostVars:4,hostBindings:function(t,n){t&2&&(L(n.hostClasses()),te("--btng-id",n.id))},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},features:[W],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),ha=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=K("button",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},attrs:oo,ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),pa=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=K("card",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-card"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"]},ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})(),er=(()=>{class i{constructor(){this._elementRef=C(N),this.internalInput=Q("internalInput"),this.projectedInputs=rt("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=j(!1),this.currentClassList=Mt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=K("checkbox",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-checkbox"]],viewQuery:function(t,n){t&1&&se(n.internalInput,Jt,5),t&2&&ee()},hostVars:3,hostBindings:function(t,n){t&1&&M("keydown.enter",function(r){return n.onEnter(r)}),t&2&&(Y("disabled",n.disabled()?"":null),L(n.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:oe,decls:8,vars:3,consts:[["internalInput",""],[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"],[1,"label"],["type","checkbox",1,"internal-input",3,"checked"],["type","checkbox",1,"internal-input",3,"change","checked"]],template:function(t,n){t&1&&(P(),f(0,"div",1)(1,"sh-icon",2),_(2,"check-bold"),m(),f(3,"sh-icon",3),_(4,"minus-bold"),m()(),f(5,"div",4),g(6),m(),b(7,so,2,2,"input",5)),t&2&&(L(n.currentClassList()),p(7),S(n.projectedInputs().length===0&&!n.noInternalInput()?7:-1))},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})(),tr=(()=>{class i{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.sharp=c(void 0),this.dynamic=c(void 0),this.readonly=c(!1),this.hostClasses=K("chip",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,dynamic:this.dynamic,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"]},ngContentSelectors:oe,decls:2,vars:0,template:function(t,n){t&1&&(P(),I(0,"div"),g(1),F())},encapsulation:2,changeDetection:0})}}return i})();var ir=(()=>{class i{constructor(){this.#t=new Date(new Date().setHours(0,0,0,0)),this.date=j(null),this.endDate=j(null),this.asRange=c(!1),this.monthsToShow=c(1),this.disabled=c(!1),this.startOfWeek=c(1),this.weekdayLabels=c(["Su","Mo","Tu","We","Th","Fr","Sa"]),this.daysRef=Q("daysRef"),this.currentDate=v(this.date()??this.#t),this.monthOffsets=E(()=>Array.from({length:this.monthsToShow()},(e,t)=>t)),this.selectedDateStylePosition=v(null),this.weekdays=E(()=>{let e=this.startOfWeek(),t=this.weekdayLabels();return t.slice(e).concat(t.slice(0,e))}),this.currentClasses=Mt(),this.someEffect=V(()=>{let e=this.currentClasses();this.#i()}),this.#n=V(()=>{this.monthsToShow()>1||this.#e()})}#t;getLastVisibleMonth(){let e=this.monthsToShow()-1;return this.getOffsetDate(e)}getOffsetDate(e){let t=new Date(this.currentDate());return t.setMonth(t.getMonth()+e),t}getMonthDates(e){let t=this.getOffsetDate(e);return this.#o(t,this.startOfWeek())}#n;ngOnInit(){this.monthsToShow()!==1&&this.#e()}#e(){let e=this.date();e&&this.currentDate.set(e),this.#i()}#i(){setTimeout(()=>{let e=this.daysRef()?.nativeElement.querySelector(".sel");if(!e)return this.selectedDateStylePosition.update(t=>t?q(H({},t),{opacity:"0"}):null);this.setSelectedDateStylePosition(e)})}#o(e,t){let n=e.getFullYear(),s=e.getMonth(),r=new Date(n,s,1).getDay(),a=new Date(n,s+1,0).getDate(),l=[],d=r-t;d<0&&(d+=7);let u=new Date(n,s,0).getDate();for(let T=d-1;T>=0;T--)l.push(new Date(n,s-1,u-T,0,0,0,0));for(let T=1;T<=a;T++)l.push(new Date(n,s,T,0,0,0,0));let y=1;for(;l.length%7!==0;)l.push(new Date(n,s+1,y++,0,0,0,0));return l}nextMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()+1),t}),this.#i()}previousMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()-1),t}),this.#i()}setDate(e,t){let n=(s,r)=>{let a=r?.getHours()??0,l=r?.getMinutes()??0,d=r?.getSeconds()??0,u=r?.getMilliseconds()??0;return new Date(s.getFullYear(),s.getMonth(),s.getDate(),a,l,d,u)};if(!this.asRange())this.date.set(n(e,this.date())),this.endDate.set(null);else{let s=this.date(),r=this.endDate(),a=n(e,null);s?r?(this.date.set(a),this.endDate.set(null)):a<s?(this.date.set(a),this.endDate.set(null)):this.endDate.set(a):this.date.set(a)}this.asRange()||this.setSelectedDateStylePosition(t)}isDateSelected(e){let t=this.date(),n=this.endDate();if(t===null)return null;let s=y=>new Date(y.getFullYear(),y.getMonth(),y.getDate(),0,0,0,0),r=y=>new Date(y.getFullYear(),y.getMonth(),y.getDate(),23,59,59,999),a=s(e),l=s(t),d=n?r(n):null,u=[];if(this.asRange())if(d===null)a.getTime()===l.getTime()&&u.push("sel first last");else{if(a.getTime()===l.getTime()&&u.push("first"),a.getTime()===s(d).getTime()&&u.push("last"),a>=l&&a<=d){u.push("sel");let x=a.getDay(),Oe=this.startOfWeek();x===Oe&&u.push("week-start");let Te=(Oe+6)%7;x===Te&&u.push("week-end")}let y=new Date(a);y.setDate(a.getDate()+1),new Date(a).setDate(a.getDate()-1);let $=a.getDate()===1,w=y.getMonth()!==a.getMonth();$&&u.push("month-start"),w&&u.push("month-end")}else a.getTime()===l.getTime()&&u.push("sel");return u.join(" ")||null}setSelectedDateStylePosition(e){this.selectedDateStylePosition.set({transform:`translate(${e.offsetLeft}px, ${e.offsetTop}px)`,opacity:"1"})}getMonthName(e){return e.toLocaleString("default",{month:"long"})}getFullYear(e){return e.getFullYear()}isCurrentMonth(e,t){let n=this.getOffsetDate(t);return e.getMonth()===n.getMonth()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-datepicker"]],viewQuery:function(t,n){t&1&&se(n.daysRef,ro,5),t&2&&ee()},hostVars:6,hostBindings:function(t,n){t&2&&(L("columns-"+n.monthsToShow()),R("as-range",n.asRange())("disabled",n.disabled()))},inputs:{date:[1,"date"],endDate:[1,"endDate"],asRange:[1,"asRange"],monthsToShow:[1,"monthsToShow"],disabled:[1,"disabled"],startOfWeek:[1,"startOfWeek"],weekdayLabels:[1,"weekdayLabels"]},outputs:{date:"dateChange",endDate:"endDateChange"},decls:14,vars:3,consts:[["daysRef",""],["elementRef",""],[3,"click"],[1,"title"],[1,"months-container"],[1,"month"],[1,"weekdays"],[1,"days"],[3,"out-of-scope","class"],[1,"sel-el"]],template:function(t,n){t&1&&(f(0,"header")(1,"button",2),M("click",function(){return n.previousMonth()}),f(2,"sh-icon"),_(3,"caret-left"),m()(),f(4,"div",3),_(5),b(6,ao,1,1),_(7),m(),f(8,"button",2),M("click",function(){return n.nextMonth()}),f(9,"sh-icon"),_(10,"caret-right"),m()()(),f(11,"section",4),Ie(12,ho,9,1,"div",5,mi),m()),t&2&&(p(5),ie(" ",n.getMonthName(n.currentDate())," "),p(),S(n.monthsToShow()>1?6:-1),p(),ie(" ",n.getFullYear(n.currentDate())," "),p(5),Ae(n.monthOffsets()))},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})(),ue=4,nr=["scroll","auto"],or={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ti=(()=>{class i{constructor(){this.#t=C(be),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=c(!1),this.disableOpenByClick=c(!1),this.isOpen=j(!1),this.options=c(),this.closed=ce(),this.defaultOptionMerge=E(()=>H(H({},or),this.options())),this.triggerRef=Q.required("triggerRef"),this.popoverRef=Q("popoverRef"),this.popoverContentRef=Q("popoverContentRef"),this.id=v("--"+st()),this.menuStyle=v(null),this.openAbort=null,this.openEffect=V(()=>{let e=this.isOpen();queueMicrotask(()=>{let t=this.popoverRef()?.nativeElement;if(!t){this.openAbort?.abort(),this.openAbort=null;return}if(e){if(this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController,this.#t.addEventListener("keydown",n=>{n.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&n.preventDefault(),n.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),!t.isConnected)return;t.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#n(t).addEventListener("scroll",()=>this.#u(),{signal:this.openAbort?.signal}),window?.addEventListener("resize",()=>this.#u(),{signal:this.openAbort?.signal}),this.#u()})}else this.closed.emit(),t.hidePopover(),this.openAbort?.abort(),this.openAbort=null})})}#t;toggleIsOpen(e){this.disableOpenByClick()||(e.preventDefault(),e.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(e){this.isOpen()&&this.isOpen.set(!1)}#n(e){let t=e.parentElement;for(;t;){if(nr.indexOf(window?.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return this.#t.documentElement}#e(e,t){return{left:e.left,top:e.bottom+ue}}#i(e,t){return{left:e.left,top:e.top-t.height-ue}}#o(e,t){return{left:e.right-t.width,top:e.bottom+ue}}#r(e,t){return{left:e.right-t.width,top:e.top-t.height-ue}}#a(e,t){return{left:e.right+ue,top:e.top}}#s(e,t){return{left:e.left-t.width-ue,top:e.top}}#l(e,t){return{left:e.right+ue,top:e.top+e.height/2-t.height/2}}#c(e,t){return{left:e.left-t.width-ue,top:e.top+e.height/2-t.height/2}}#d(e,t){return{left:e.right+ue,top:e.bottom-t.height}}#h(e,t){return{left:e.left-t.width-ue,top:e.bottom-t.height}}#p(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#f(e,t){return{left:Math.max(0,Math.min(e.left,window.innerWidth-t.width)),top:Math.max(0,Math.min(e.top,window.innerHeight-t.height))}}#u(){let e=this.triggerRef()?.nativeElement.getBoundingClientRect(),t=this.popoverContentRef()?.nativeElement.getBoundingClientRect();if(!e||!t)return;let n=[this.#e,this.#i,this.#o,this.#r,this.#a,this.#s,this.#l,this.#c,this.#d,this.#h],s=[this.#a,this.#d,this.#s,this.#h,this.#l,this.#c,this.#e,this.#i,this.#o,this.#r],r=this.asMultiLayer()?s:n;for(let l of r){let d=l.call(this,e,t);if(this.#p(d,t)){this.menuStyle.set({left:d.left+"px",top:d.top+"px"});return}}let a=this.#f(r[0].call(this,e,t),t);this.menuStyle.set({left:a.left+"px",top:a.top+"px"})}ngOnDestroy(){this.openAbort?.abort(),this.openAbort=null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-popover"]],viewQuery:function(t,n){t&1&&se(n.triggerRef,po,5)(n.popoverRef,fo,5)(n.popoverContentRef,go,5),t&2&&ee(3)},hostVars:2,hostBindings:function(t,n){t&2&&R("multi-layer",n.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:vo,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(t,n){t&1&&(P(mo),I(0,"div",3,0),fe("click",function(r){return n.toggleIsOpen(r)}),I(2,"div",4),g(3),g(4,1),g(5,2),F(),Me(6,"div",5),F(),b(7,_o,6,5,"div",6)),t&2&&(Y("popovertarget",n.id()+"hello"),p(6),te("anchor-name",n.id()),p(),S(n.isOpen()?7:-1))},encapsulation:2,changeDetection:0})}}return i})(),sr=(()=>{class i{constructor(){this.#t=C(N),this.isOpen=j(!1),this.closed=ce()}#t;onClick(){this.#t.nativeElement.querySelector("input")&&this.#t.nativeElement.querySelector("input").focus(),this.#t.nativeElement.querySelector("textarea")&&this.#t.nativeElement.querySelector("textarea").focus()}close(){this.closed.emit()}ngOnInit(){let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#t.nativeElement.querySelector("textarea");if(!e&&t!==null){let a=function(){r.style.height="auto",r.style.height=r.scrollHeight+"px"},l=function(){setTimeout(a,0)};var n=a,s=l;let r=this.#t.nativeElement.querySelector("textarea");r&&(r.addEventListener("change",a),r.addEventListener("cut",l),r.addEventListener("paste",l),r.addEventListener("drop",l),r.addEventListener("keydown",l),r.focus(),r.select(),a())}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-form-field-popover"]],hostBindings:function(t,n){t&1&&M("click",function(){return n.onClick()})},inputs:{isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:Co,decls:18,vars:3,consts:[[3,"isOpenChange","closed","isOpen","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,n){t&1&&(P(yo),g(0),f(1,"sh-popover",0),Ue("isOpenChange",function(r){return qe(n.isOpen,r)||(n.isOpen=r),r}),M("closed",function(){return n.close()}),f(2,"div",1)(3,"div",2),g(4,1),g(5,2),m(),le(6,"div",3),g(7,3),g(8,4),g(9,5),le(10,"div",4),g(11,6),m(),g(12,7),m(),f(13,"div",5)(14,"div",6),g(15,8),m(),f(16,"div",7),g(17,9),m()()),t&2&&(p(),Ge("isOpen",n.isOpen),X("options",dt(2,Qi)))},dependencies:[ti],encapsulation:2,changeDetection:0})}}return i})(),fa=(()=>{class i{constructor(){this.ngModels=kt(bt),this.#t=C(Bt),this.#n=v(null),this.masking=c("mediumDate"),this.closed=ce(),this._maskedDate=E(()=>{let e=this.internalDate(),t=this.masking();return t?e?this.#t.transform(e,t):null:e}),this.internalDate=v(null),this.isOpen=j(!1),this.currentClass=Mt(),this.#e=rt("#input-wrap input"),this.#i=V(()=>{let e=this.#e();if(!e.length)return;let t=e[0];t&&(this.#o(t),t.addEventListener("inputValueChanged",n=>{this.internalDate.set(n.detail.value?new Date(n.detail.value):null)}),t.addEventListener("focus",()=>{this.isOpen.set(!0),t.blur()}),this.#n.set(t),t.autocomplete="off",typeof t.value=="string"&&this.internalDate.set(t.value?new Date(t.value):null))})}#t;#n;#e;onDateChange(e){this.internalDate.set(e);let t=this.#n();t&&(t.value=e?e.toString():"",t.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}#i;#o(e){return Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}}),e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-datepicker-input"]],contentQueries:function(t,n,s){t&1&&Tt(s,n.ngModels,bt,5),t&2&&ee()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[Z([Bt])],ngContentSelectors:bo,decls:15,vars:3,consts:[["defaultIndicator",""],[3,"closed","isOpenChange","isOpen"],["id","input-wrap","ngProjectAs","input",5,["input"],1,"input"],[1,"masked-value"],["suffix","",1,"default-indicator"],["popoverContent",""],[3,"date","class"],[3,"dateChange","date"]],template:function(t,n){if(t&1){let s=U();P(Do),f(0,"sh-form-field-popover",1),M("closed",function(){return n.close()}),Ue("isOpenChange",function(a){return A(s),qe(n.isOpen,a)||(n.isOpen=a),k(a)}),g(1,0,["ngProjectAs","label",5,["label"]]),g(2,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),g(3,2,["ngProjectAs","[textPrefix]",5,["","textPrefix",""]]),f(4,"div",2),b(5,So,2,1,"div",3),g(6,3),m(),g(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),g(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),f(9,"sh-icon",4),_(10,"calendar"),m(),f(11,"div",5),b(12,Mo,1,3,"sh-datepicker",6),m()(),pe(13,Eo,0,0,"ng-template",null,0,vi)}t&2&&(Ge("isOpen",n.isOpen),p(5),S(n.masking()?5:-1),p(7),S(n.isOpen()?12:-1))},dependencies:[ir,sr,De],encapsulation:2,changeDetection:0})}}return i})();var rr=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-divider"]],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();var ii=(()=>{class i{#t;onClick(){this.#t.nativeElement.querySelector("input")&&this.#t.nativeElement.querySelector("input").focus(),this.#t.nativeElement.querySelector("textarea")&&this.#t.nativeElement.querySelector("textarea").focus()}constructor(){this.#t=C(N),this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=K("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),Et(()=>{let e=typeof CSS<"u"&&CSS.supports("field-sizing","content"),t=this.#t.nativeElement.querySelector("textarea");if(!e&&t!==null){let r=function(){t.style.height="auto",t.style.height=t.scrollHeight+"px"},a=function(){setTimeout(r,0)};var n=r,s=a;t.addEventListener("change",r),t.addEventListener("cut",a),t.addEventListener("paste",a),t.addEventListener("drop",a),t.addEventListener("keydown",a),t.focus(),t.select(),r()}})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(t,n){t&1&&M("click",function(){return n.onClick()}),t&2&&L(n.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},ngContentSelectors:wo,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,n){t&1&&(P(xo),g(0),I(1,"div",0)(2,"div",1),g(3,1),g(4,2),g(5,3),F(),g(6,4),g(7,5),I(8,"div",2),g(9,6),g(10,7),g(11,8),F()(),I(12,"div",3)(13,"div",4),g(14,9),F(),I(15,"div",5),g(16,10),F()())},encapsulation:2,changeDetection:0})}}return i})(),ga=(()=>{class i{constructor(){this._el=C(N),this.inputRef=Q.required("input"),this.filesOver=v(!1),this.multiple=c(),this.accept=c(null),this.placeholder=j("Click or drag files here"),this.overlayText=c("Drop files here"),this.files=j([]),this.fileUploadClasses=E(()=>this._el.nativeElement.classList.toString()),this.inputEffect=V(()=>{let e=this.inputRef().nativeElement;e&&(e.placeholder&&this.placeholder.set(e.placeholder),e.addEventListener("dragover",t=>{t.preventDefault(),this.filesOver.set(!0)}),e.addEventListener("dragleave",t=>{t.preventDefault(),this.filesOver.set(!1)}),e.addEventListener("drop",t=>{t.preventDefault(),this.filesOver.set(!1);let n=t.dataTransfer?.files;n&&n.length>0&&(this.handleFileUpload(Array.from(n)),e.files=n)}),e.addEventListener("change",t=>{t.preventDefault(),this.handleFileUpload(Array.from(t.target.files))}))})}handleFileUpload(e){this.multiple()?this.files.update(t=>[...t,...e]):this.files.set(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-file-upload"]],viewQuery:function(t,n){t&1&&se(n.inputRef,Oo,5),t&2&&ee()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:Vo,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(t,n){t&1&&(P(To),f(0,"sh-form-field"),g(1,0,["ngProjectAs","label",5,["label"]]),f(2,"div",2,0),b(4,No,2,1,"div",3)(5,Io,2,1,"div",3)(6,Ao,2,1,"div",4),le(7,"input",5,1)(9,"div",6),m(),f(10,"sh-icon",7),_(11,"upload-simple"),m()()),t&2&&(L(n.fileUploadClasses()),p(4),S(n.files().length===1?4:n.files().length>1?5:6),p(3),Y("multiple",n.multiple())("accept",n.accept()),p(2),R("files-over",n.filesOver()))},dependencies:[ii,De],encapsulation:2,changeDetection:0})}}return i})(),ma=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-list"]],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();function ar(i,o){let e=v(null),t=o.map(l=>l.toUpperCase()),n=C(Ne),s=n.get(ge);if(yi(n.get(ui))||typeof MutationObserver>"u")return e.asReadonly();if(t.find(l=>i.nativeElement.querySelector(l)))return e.set(new N(i.nativeElement.querySelector(o[0]))),e.asReadonly();let a=new MutationObserver(l=>{for(let d of l)if(d.addedNodes){for(let u of Array.from(d.addedNodes))if(u.nodeType===Node.ELEMENT_NODE&&t.includes(u.nodeName)){e.set(new N(u)),a.disconnect();return}}});return a.observe(i.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>a.disconnect()),e.asReadonly()}function Ji(i,o){let e=C(Ne),t=e.get(ge),n=v([]),s=null,r=null,a=(d,u)=>{r&&r.disconnect();let y=Array.from(d.nativeElement.querySelectorAll(u.join(",")));n.set(y),typeof MutationObserver<"u"&&(r=new MutationObserver(T=>{queueMicrotask(()=>{let $=Array.from(d.nativeElement.querySelectorAll(u.join(",")));n.set($)})}),r.observe(d.nativeElement,{childList:!0,subtree:!0})),t.onDestroy(()=>l())};s=V(()=>{let d=typeof i=="function"&&i[oi]?i():i,u=typeof o=="function"?o():o;d&&u?.length>0?a(d,u):(n.set([]),r&&(r.disconnect(),r=null))},{injector:e});function l(){s&&s.destroy(),r&&r.disconnect()}return{signal:n.asReadonly(),destroy:l}}function lr(i,o=["input","textarea"]){let e=i||ar(C(N),o),t=v(void 0),n=C(Ne),s=n.get(ge),r=v(null);V(l=>{let d=e();if(!d)return;let u=d.nativeElement;u&&(cr(u),r.set(u),t.set(u.value??""),l(()=>{r.set(null)}))},{injector:n});let a=null;return V(()=>{let l=r();if(!l)return;a&&(a(),a=null);let d=y=>{t.set(y.detail.value)},u=y=>{t.set(y.target.value)};l.addEventListener("input",u),l.addEventListener("inputValueChanged",d),t.set(l.value),a=()=>{l.removeEventListener("input",u),l.removeEventListener("inputValueChanged",d)},s.onDestroy(()=>{a&&a()})},{injector:n}),V(()=>{let l=r();if(!l)return;let d=t();d&&(l.value=d,l.dispatchEvent(new Event("input")))},{injector:n}),t}function cr(i){return Object.defineProperty(i,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").get.call(this)},set(o){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i),"value").set.call(this,o);let t=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:o}});return this.dispatchEvent(t),o}}),i}var va=(()=>{class i{constructor(){this.#t=C(be),this.#n=C(ve),this.asMultiLayer=c(!1),this.openIndicator=c(!1),this.disabled=c(!1),this.customOptionElementSelectors=c(["button"]),this.keepClickedOptionActive=c(!1),this.closeOnClick=c(!0),this.isOpen=j(!1),this.closed=ce(),this.searchable=c(!1),this.activeOptionIndex=v(-1),this.inputRef=Q("inputRef"),this.optionsRef=Q("optionsRef"),this.openMenusEffect=V(e=>{this.isOpen()&&i.openMenus.push(this),e(()=>{let t=i.openMenus.indexOf(this);t>-1&&i.openMenus.splice(t,1)})}),this.options=Ji(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=E(()=>this.options.signal().filter(e=>!e.disabled)),this.inputValue=lr(this.inputRef),this.optionsId=st(),this.activeOptionId=v(void 0),this.abortController=null,this.optionsEffect=V(()=>{if(this.abortController!==null&&(this.abortController.abort(),this.abortController=null),!this.isOpen())return;this.abortController=new AbortController,this.searchable()||this.#t.documentElement.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal});let t=this.inputRef()?.nativeElement;t&&(queueMicrotask(()=>t.focus()),t.addEventListener("keydown",this.keyDownEventListener,{signal:this.abortController.signal}),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",s=>{let r=s.target,a=this.activeElements();if(!a.length){let d=this.optionsEl();this.activeElements.set(d),a=d}let l=a.findIndex(d=>d===r);l>-1&&(this.activeOptionIndex.set(l),t.focus())}))}),this.keyDownEventListener=e=>{if(i.openMenus.at(-1)!==this)return;let t=this.activeOptionIndex();if(e.key==="ArrowDown")e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t));else if(e.key==="ArrowUp")e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t));else if(e.key==="Enter"){if(e.preventDefault(),t>-1){let n=this.activeElements()[t];if(n.parentElement?.hasAttribute("trigger")){let r=new CustomEvent("ship-menu-open",{bubbles:!0,cancelable:!0});n.dispatchEvent(r)}else n.click(),n.querySelector("sh-checkbox")||queueMicrotask(()=>this.close("active"))}}else if(e.key==="Tab"){let n=this.activeElements();if(!n.length){let s=this.optionsEl();this.activeElements.set(s),n=s}e.shiftKey?t<=0?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t))):t>=n.length-1?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t)))}},this._lastElementList=[],this.activeElements=v([]),this.lastInputValue="",this.inputValueEffect=V(()=>{if(!this.searchable())return;let t=(this.inputValue()??"").toLowerCase();if(this.#i(),!t||t===""){let s=this.optionsEl();this.activeElements.set(s),this._lastElementList=s;for(let r=0;r<s.length;r++)this.#n.removeStyle(s[r],"order"),s[r].id||(s[r].id=`${this.optionsId}-option-${r}`),s[r].setAttribute("role","option");return}if(!t||t==="")return;let n=this._lastElementList.length&&t.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=t;for(let s=0;s<n.length;s++){let r=n[s],a=r.textContent?.toLowerCase()||"",l=this.#e(a,t);r.value=l}n=n.filter(s=>s.value>0).sort((s,r)=>r.value-s.value);for(let s=0;s<n.length;s++)this.#n.setStyle(n[s],"order",s);this.activeElements.set(n),this._lastElementList=n;for(let s=0;s<n.length;s++)n[s].id||(n[s].id=`${this.optionsId}-option-${s}`),n[s].setAttribute("role","option")}),this.activeOptionIndexEffect=V(()=>{let e=this.activeElements(),t=this.activeOptionIndex();for(let n=0;n<e.length;n++)e[n].classList.remove("active"),e[n].removeAttribute("aria-selected");if(t>-1){let n=e[t];n.scrollIntoView({block:"center"}),n.classList.add("active"),n.setAttribute("aria-selected","true"),this.activeOptionId.set(n.id)}else this.activeOptionId.set(void 0)})}#t;#n;static{this.openMenus=[]}toggleIsOpen(e){e.preventDefault(),e.stopPropagation(),!this.disabled()&&(this.isOpen()?this.close("fromPopover"):this.open())}open(){this.disabled()||(this.isOpen.set(!0),this.searchable()&&setTimeout(()=>this.inputRef()?.nativeElement.focus()))}onShipMenuOpen(e){e.preventDefault(),e.stopPropagation(),this.open()}#e(e,t){if(!t)return 0;let n=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let d=t[l];if(e.length>s+1&&e[s+1]===d)n+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;n+=100,s=u,r++}}return a&&t.length===r&&(n+=1e3),n+=r*20,n}nextActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===-1||e===t.length-1)return 0;let n=e+1;return t[n].disabled?this.nextActiveIndex(n):n}prevActiveIndex(e){let t=this.activeElements();if(!t.length){let s=this.optionsEl();this.activeElements.set(s),t=s}if(e===0||e===-1)return t.length-1;let n=e-1;return t[n].disabled?this.prevActiveIndex(n):n}close(e="closed",t){this.inputValue.set("");let n=this.inputRef()?.nativeElement;n&&(n.value=""),this.closeOnClick()&&((!this.keepClickedOptionActive()||e==="closed")&&this.#i(),this.isOpen.set(!1),this.closed.emit(e==="active"))}#i(){this.activeOptionIndex.set(-1);let e=this.optionsEl();for(let t=0;t<e.length;t++)e[t].classList.remove("active"),e[t].removeAttribute("aria-selected")}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null);let e=i.openMenus.indexOf(this);e>-1&&i.openMenus.splice(e,1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-menu"]],viewQuery:function(t,n){t&1&&se(n.inputRef,ko,5)(n.optionsRef,Fo,5),t&2&&ee(2)},hostVars:6,hostBindings:function(t,n){t&1&&M("ship-menu-open",function(r){return n.onShipMenuOpen(r)}),t&2&&R("disabled",n.disabled())("has-search",n.searchable())("multi-layer",n.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:Ro,decls:12,vars:20,consts:[["formFieldWrapper",""],["inputRef",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","","role","combobox","aria-haspopup","listbox",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search","role","combobox","aria-autocomplete","list"],["role","listbox",1,"options",3,"click","id"]],template:function(t,n){if(t&1){let s=U();P(Po),f(0,"sh-popover",3,0),Ue("isOpenChange",function(a){return A(s),qe(n.isOpen,a)||(n.isOpen=a),k(a)}),M("closed",function(){return n.close("fromPopover")}),f(2,"div",4),M("click",function(a){return n.toggleIsOpen(a)}),g(3),b(4,Lo,2,0,"sh-icon",5),m(),f(5,"div",6)(6,"sh-form-field",7),le(7,"input",8,1),m()(),f(9,"div",9,2),M("click",function(){return n.close("active")}),g(11,1),m()()}t&2&&(Ge("isOpen",n.isOpen),X("disableOpenByClick",!0)("asMultiLayer",n.asMultiLayer())("options",dt(19,Qi)),p(2),R("is-open",n.isOpen()),Y("aria-expanded",n.isOpen())("aria-controls",n.optionsId)("aria-activedescendant",n.activeOptionId()),p(2),S(n.openIndicator()?4:-1),p(2),R("hidden",n.searchable()===!1),p(),Y("aria-expanded",n.isOpen())("aria-controls",n.optionsId)("aria-activedescendant",n.activeOptionId()),p(2),R("searching",n.searchable()&&n.inputValue()!==""),X("id",n.optionsId),Y("aria-activedescendant",n.activeOptionId()))},dependencies:[ti,ii,De],encapsulation:2,changeDetection:0})}}return i})(),dr=(()=>{class i{constructor(){this.value=c(void 0),this.color=c(null),this.variant=c(null),this.hostClasses=K("progressBar",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-progress-bar"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{value:[1,"value"],color:[1,"color"],variant:[1,"variant"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,n){t&1&&Me(0,"div",0),t&2&&te("width",n.value(),"%")},encapsulation:2,changeDetection:0})}}return i})(),_a=(()=>{class i{constructor(){this._elementRef=C(N),this.internalInput=Q("internalInput"),this.projectedInputs=rt("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=j(!1),this.currentClassList=Mt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=K("radio",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-radio"]],viewQuery:function(t,n){t&1&&se(n.internalInput,Jt,5),t&2&&ee()},hostVars:3,hostBindings:function(t,n){t&1&&M("keydown.enter",function(r){return n.onEnter(r)}),t&2&&(Y("disabled",n.disabled()?"":null),L(n.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:oe,decls:3,vars:3,consts:[["internalInput",""],[1,"radio","sh-sheet"],["type","radio",1,"internal-input",3,"checked"],["type","radio",1,"internal-input",3,"change","checked"]],template:function(t,n){t&1&&(P(),Me(0,"div",1),g(1),b(2,Bo,2,2,"input",2)),t&2&&(L(n.currentClassList()),p(2),S(n.projectedInputs().length===0&&!n.noInternalInput()?2:-1))},encapsulation:2,changeDetection:0})}}return i})(),ya=(()=>{class i{constructor(){this.#t=C(N),this.#n=null,this.#e=null,this.#i=0,this.unit=c(""),this.value=j(this.#i),this.inputState=v({min:0,max:100,step:1}),this.valuePercentage=E(()=>{let{min:e,max:t}=this.inputState(),n=this.value()??e;if(isNaN(n))return 0;let s=t-e;if(s===0)return 0;let r=(n-e)/s*100;return Math.max(0,Math.min(100,r))}),this.trackFilledPercentage=E(()=>this.valuePercentage()),this.thumbPositionPercentage=E(()=>this.valuePercentage()),this.syncModelToInputEffect=V(()=>{let e=this.value();if(this.#e){let t=parseFloat(this.#e.value);(isNaN(t)||String(t)!==String(e))&&(this.#e.value=String(e))}})}#t;#n;#e;#i;get hasInputElement(){return!!this.#e}ngAfterViewInit(){this.#e=this.#t.nativeElement.querySelector('input[type="range"]'),this.#e?(this.#s(this.#e),this.#e.oninput=()=>{this.setNewInputValue(this.#e.value)},this.#e.addEventListener("inputValueChanged",e=>{this.setNewInputValue(e.detail.value)}),queueMicrotask(()=>this.#o(!0)),this.#r()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(e){let t=parseFloat(e??"0");if(!isNaN(t)){let{min:n,max:s}=this.inputState();this.value.set(Math.max(n,Math.min(s,t)))}}trackEvent(e){if(!this.#e||this.#e.readOnly||this.#e.disabled){e.preventDefault(),e.stopPropagation();return}if(e.target===this.#e||e.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let n=e.currentTarget.getBoundingClientRect(),s=e.clientX-n.left,r=n.width,{min:a,max:l,step:d}=this.inputState(),u=l-a;if(r>0&&u!==0&&d>0){let T=(s/r*u+a-a)/d,$=a+Math.round(T)*d,w=this.#a(d);$=parseFloat($.toFixed(w));let x=Math.max(a,Math.min(l,$));this.value.set(x)}}#o(e=!1){if(!this.#e)return;let t=parseFloat(this.#e.min??"0")??0,n=parseFloat(this.#e.max??"100")??100,s=this.#e.step,r=1;if(s&&s.toLowerCase()!=="any"){let l=parseFloat(s);!isNaN(l)&&l>0&&(r=l)}this.inputState.set({min:t,max:n,step:r});let a=parseFloat(this.#e.value??String(t))??t;if(e&&this.value()!==this.#i){let l=this.value(),d=Math.max(t,Math.min(n,l));a!==d&&(this.#e.value=String(d)),l!==d&&this.value.set(d)}else{let l=Math.max(t,Math.min(n,a));this.value()!==l&&this.value.set(l)}}#r(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#n=new MutationObserver(t=>{let n=!1;for(let s of t)if(s.type==="attributes"&&e.includes(s.attributeName??"")){n=!0;break}n&&this.#o(!1)}),this.#n.observe(this.#e,{attributes:!0,attributeFilter:e})}#a(e){if(isNaN(e)||Math.floor(e)===e)return 0;let n=e.toString().split(".")[1];return n?n.length:0}#s(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}ngOnDestroy(){this.#n&&this.#n.disconnect(),this.#e&&(this.#e.oninput=null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(t,n){t&2&&R("has-input",n.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:jo,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(t,n){t&1&&(P(Ho),I(0,"div",0),g(1),F(),I(2,"div",1)(3,"div",2),_(4),F(),I(5,"div",3),fe("click",function(r){return n.trackEvent(r)}),g(6,1),I(7,"div",4),Me(8,"div",5),F(),I(9,"div",6)(10,"div",7)(11,"div",8),_(12),F()()()(),I(13,"div",9),_(14),F()()),t&2&&(p(4),lt("",n.inputState().min,"",n.unit()),p(4),te("width",n.trackFilledPercentage(),"%"),p(),te("left",n.thumbPositionPercentage(),"%"),p(3),lt("",n.value(),"",n.unit()),p(2),lt("",n.inputState().max,"",n.unit()))},encapsulation:2,changeDetection:0})}}return i})(),ur=(()=>{class i{constructor(){this.color=c(null),this.hostClasses=K("spinner",{color:this.color})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-spinner"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"]},decls:0,vars:0,template:function(t,n){},encapsulation:2,changeDetection:0})}}return i})(),Ca=(()=>{class i{constructor(){this.#t=C(N),this.value=c(),this.label=c(),this.asFreeText=c(!1),this.optionTitle=c(null),this.freeTextTitle=c(null),this.freeTextPlaceholder=c("Type to create a new option"),this.validateFreeText=c(),this.placeholder=c(),this.readonly=j(!1),this.disabled=j(!1),this.lazySearch=c(!1),this.inlineSearch=c(!1),this.asText=c(!1),this.isClearable=c(!0),this.selectMultiple=c(!1),this.optionTemplate=c(null),this.selectedOptionTemplate=c(null),this.placeholderTemplate=c(null),this.freeTextOptionTemplate=c(null),this.isOpen=j(!1),this.isLoading=j(!1),this.options=j([]),this.selectedOptions=j([]),this.cleared=ce(),this.onAddNewFreeTextOption=ce(),this.computedFreeTextOption=E(()=>{let e=this.inputValue(),t=this.value(),n=t?{}:e;return t&&typeof n=="object"&&(n[t]=e),n}),this.#n=v(null),this.inlineTemplate=kt(ze),this.optionsWrapRef=Q.required("optionsWrap"),this.inputRefInput=v(null),this.#e=typeof MutationObserver<"u"&&new MutationObserver(e=>{for(var t of e)t&&(t.target.nodeName==="INPUT"||t.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new N(t.target)),this.#e.disconnect())}),this.inputValue=v(""),this.prevInputValue=v(null),this.focusedOptionIndex=v(-1),this._isClearable=E(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=E(()=>this.#t.nativeElement.classList.toString()),this.stretch=E(()=>this.selectClasses().includes("stretch")),this.small=E(()=>this.selectClasses().includes("small")),this.placeholderText=E(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=E(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(n=>this.#s(n,t)):e}),this.filteredOptions=E(()=>{let e=this.options()||[],t=this.label(),n=this.value(),s=this.inlineSearch(),r=this.inputValue().toLowerCase(),a=this.#c(r);if(e.length<=0)return[];if(!s||r==="")return e;let d=e.filter(u=>{let y=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),T=((n?this.#s(u,n):u)??"").toString().toLowerCase(),$=a.test(y),w=a.test(T);return $||w}).map(u=>{let y=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),T=((n?this.#s(u,n):u)??"").toString().toLowerCase(),$=this.#i(y,r),w=this.#i(T,r);return{item:u,score:Math.max($,w)}});return d.sort((u,y)=>y.score-u.score),d.map(u=>u.item)}),this.#o=st(),this.inputRefEl=E(()=>{let e=this.inputRefInput();if(e===null)return;let t=e?e.nativeElement:null;return t?(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("id",`combobox-${this.#o}`),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-owns","optionsWrapId"),this.#l(t),t.addEventListener("focus",()=>{this.readonly()||this.open()}),t.addEventListener("input",n=>{let s=n.target.value,r=this.inputValue();s!==r&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),t.addEventListener("inputValueChanged",n=>{let s=n.detail.value,r=this.inputValue();if(s!==r){if(s===""){this.clear();return}this.setSelectedOptionsFromValue(s),this.setInputValueFromOptions(this.selectedOptions()),this.#a()}}),t):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=V(()=>{let e=this.inputRefEl();if(!e)return;let t=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);t?e.setAttribute("aria-activedescendant",t):e.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=V(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let t=this.inputRefEl(),s=this.asFreeText()?-1:0;if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),t.addEventListener("keydown",r=>{if((r.key==="Escape"||r.key==="Tab")&&(r.preventDefault(),this.close()),r.key==="Enter"&&(r.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),r.key==="ArrowDown"){r.preventDefault();let a=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(a>this.filteredOptions().length-1?s:a)}if(r.key==="ArrowUp"){r.preventDefault();let a=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(a<s?this.filteredOptions().length-1:a)}},{signal:this.openAbortController?.signal})}else{let t=this.inputRefEl();if(!t)return;t.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=V(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=V(()=>{let e=this.inputRefEl();e&&e.value!==this._inputValue&&(this.disabled.set(e.disabled),this.setSelectedOptionsFromValue(e.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=E(()=>{let e=this.selectedOptions();return this.label()?e.map(n=>this.getLabel(n)).join(", "):e.join(", ")}),this.inputState=E(()=>(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=E(()=>this.inlineSearch()||this.lazySearch()),this.#r=V(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),n=e.map(s=>t?this.#s(s,t):s).join(",");this.inputValue.set(n)})}#t;#n;#e;#i(e,t){if(!t)return 0;let n=0,s=-1,r=0,a=!0;for(let l=0;l<t.length;l++){let d=t[l];if(e.length>s+1&&e[s+1]===d)n+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;n+=100,s=u,r++}}return a&&t.length===r&&(n+=1e3),n+=r*20,n}#o;#r;ngOnInit(){this.setInitInput()}setInitInput(){let e=this.#t.nativeElement.querySelector("input");if(e){this.inputRefInput.set(new N(e));return}let t=this.#t.nativeElement.querySelector("textarea");if(t){this.inputRefInput.set(new N(t));return}typeof MutationObserver<"u"&&this.#e.observe(this.#t.nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(e){let t=this.options()||[],n=this.value(),s=this.selectMultiple(),r=e.toString().split(",");if(r.length===0){this.selectedOptions.set([]);return}let a=s?r:[r[0]],l=t.filter(d=>{let u=n?this.#s(d,n)?.toString():d?.toString();return u&&a.includes(u)});this.selectedOptions.set(s?l:[l[0]])}setInputValueFromOptions(e){let t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let n=e.map(s=>t?this.#s(s,t):s).join(",");n!==this.inputValue()&&(this.inputValue.set(n),this.updateInputElValue())}getValue(e){let t=this.value();return t?this.#s(e,t):e}getLabel(e){let t=this.label();return t?this.#s(e,t):e}getLabelAsSlug(e){let t=this.getLabel(e);return!t||typeof t!="string"?"":t.replaceAll(" ","-")}toggleOptionByIndex(e,t,n=!1){let s=this.filteredOptions()[e];if(this.asFreeText()&&e===-1){let y=this.computedFreeTextOption(),T=this.getValue(y);if(!(this.validateFreeText()??(x=>!0))(T))return;this.options.update(x=>x.findIndex(Te=>this.getValue(Te)===T)>-1?x:(this.onAddNewFreeTextOption.emit(T),[y,...x])),e=0,s=y}else if(!s){this.close();return}t&&t.stopPropagation();let r=this.selectMultiple(),a=this._isClearable(),l=this.value(),d=this.selectedOptionValues(),u=l?this.#s(s,l):s;this.prevInputValue.set(null),this.#n.set(null),this.selectedOptions.update(y=>{let T=d.indexOf(u);if(T>-1){let $=[...y.slice(0,T),...y.slice(T+1)];return a||$.length>0?$:y}else return this.focusedOptionIndex.set(e),r?[...y,s]:[s]}),r?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),r&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(e,t){e.stopPropagation(),this.selectedOptions.update(n=>[...n.slice(0,t),...n.slice(t+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(e){let t=this.value(),n=this.filteredOptions()[e],s=t?this.#s(n,t):n;return this.selectedOptionValues().indexOf(s)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):this.#n.set(this.selectedOptions()),this.selectMultiple()||this.#a())}#a(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let n=this.filteredOptions().findIndex(s=>t?this.#s(s,t)===e:s===e);this.focusedOptionIndex.set(n)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue(),t=this.#n();if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&e&&(this.inputValue.set(e),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&t!==null&&this.setInputValueFromOptions(t),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(e){e?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let e=this.inputRefEl(),t=this.inputValue();e&&(e.value=t,e.dispatchEvent(new Event("input")))}#s(e,t){return t.split(".").reduce((n,s)=>n?.[s],e)}#l(e){Object.defineProperty(e,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").get.call(this)},set(t){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value").set.call(this,t);let s=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:t}});return this.dispatchEvent(s),t}})}#c(e){let t=(e??"").toLowerCase(),n="^";for(let s of t)n+=".*"+this.#d(s);return n+=".*$",new RegExp(n,"i")}#d(e){return e.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&this.#e.disconnect()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-select"]],contentQueries:function(t,n,s){t&1&&Tt(s,n.inlineTemplate,ze,5),t&2&&ee()},viewQuery:function(t,n){t&1&&se(n.optionsWrapRef,zo,5),t&2&&ee()},hostVars:2,hostBindings:function(t,n){t&2&&R("multiple",n.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:Wo,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","checked"],[3,"checked"]],template:function(t,n){if(t&1){let s=U();P($o),ct(0)(1)(2)(3)(4)(5)(6),f(7,"sh-popover",2,0),Ue("isOpenChange",function(a){return A(s),qe(n.isOpen,a)||(n.isOpen=a),k(a)}),M("closed",function(){return n.close()}),f(9,"sh-form-field",3),M("click",function(){return n.open()}),g(10,0,["ngProjectAs","label",5,["label"]]),g(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),g(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),f(13,"div",4)(14,"div",5),b(15,qo,1,1)(16,os,2,0)(17,ls,2,1),g(18,3),g(19,4),m()(),b(20,cs,2,0,"sh-icon",6)(21,ds,1,0,"sh-spinner",7)(22,us,2,0,"sh-icon",6)(23,hs,2,0,"sh-icon",6)(24,ps,2,0,"sh-icon",6)(25,fs,2,0,"sh-icon",6)(26,gs,2,0,"sh-icon",6),m(),f(27,"div",8,1),b(29,Ms,3,3),b(30,Es,2,1,"p",9),Ie(31,Vs,4,8,"li",10,We),m()()}if(t&2){re(n.placeholderTemplate());let s=n.optionTemplate();p(),re(n.freeTextOptionTemplate());let r=n.selectedOptionTemplate(),a=n.inlineTemplate();p();let l=re(n.selectedOptions()),d=n.inputState();p(),re(r||s||a),p(),re(s||a),p();let u=re(!n.asText()&&n.selectMultiple());p();let y=re(n.isOpen()&&n.hasSearch()&&(u||n.inputValue().length>-1));p(),Ge("isOpen",n.isOpen),X("disableOpenByClick",!0)("options",dt(24,Go)),p(2),R("stretch",n.stretch())("small",n.small())("readonly",n.readonly()||n.disabled()),p(4),R("show-search-text",y),p(),R("is-selected",d==="selected"),p(),S(n.asFreeText()&&n.inputValue().length>0&&!n.isOpen()?15:l.length>0?16:y?-1:17),p(5),S(d==="closed"?20:d==="loading"?21:d==="open-searching"?22:d==="searching"?23:d==="selected"&&n._isClearable()?24:d==="selected"&&!n._isClearable()?25:26),p(9),S(n.asFreeText()?29:-1),p(),S(n.optionTitle()&&n.filteredOptions().length>0?30:-1),p(),Ae(n.filteredOptions())}},dependencies:[Lt,ti,ii,De,er,ur,tr,rr],encapsulation:2,changeDetection:0})}}return i})();function hr(i){let o=C(N),e=C(ge),t=v(!1),n=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&t.set(o.nativeElement.classList.contains(i))})});return di(o.nativeElement,()=>{n&&n.observe(o.nativeElement,{attributes:!0}),t.set(o.nativeElement.classList.contains(i))}),e.onDestroy(()=>{n&&n.disconnect()}),t}var Da=(()=>{class i{constructor(){this.#t=C(be),this.#n=C(N),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=c(!1),this.isOpen=j(!1),this.isOverlay=hr("overlay"),this.#e=this.#n.nativeElement.parentElement,this.#i=this.#e.getBoundingClientRect&&this.#e.getBoundingClientRect(),this.dragImageElement=Q.required("dragImageElement"),this.dragIsEnding=v(!1),this.dragIsOnScreen=v(!0),this.isDragging=v(!1),this.dragPositionX=v(0),this.dragActualPositionX=E(()=>{let e=this.dragPositionX(),t=280,n=100,s=.008,r=t/2,a=r-n/2,l=r+n/2;if(e>l){let d=e-l,y=(t-l)*(1-Math.exp(-s*d));return l+y}else if(e<a){let d=a-e,y=a*(1-Math.exp(-s*d));return a-y}return e}),this.draggingStyle=E(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=V(()=>{this.disableDrag()||(this.isDragging()?this.#t.body.classList.add("dragging"):this.#t.body.classList.remove("dragging"))})}#t;#n;#e;#i;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#i.left)}#o(e){this.isDragging.set(!1),e>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)}dragEnd(e){e.clientX-this.#i.left<0&&this.#o(0),e.clientX-this.#i.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(e){e.stopPropagation(),this.#i=this.#e.getBoundingClientRect(),this.isDragging.set(!0)}drag(e){e.stopPropagation(),this.isDragging()&&(e.clientX!==0||e.clientY!==0)&&this.dragPositionX.set(e.clientX-this.#i.left)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#i=this.#e.getBoundingClientRect(),this.dragPositionX.set(0)}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#i.left)}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#i.left)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-sidenav"]],viewQuery:function(t,n){t&1&&se(n.dragImageElement,Ns,5),t&2&&ee()},hostVars:6,hostBindings:function(t,n){t&2&&R("open",n.isOpen())("closed",!n.isOpen())("is-dragging",n.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:As,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(t,n){t&1&&(P(Is),b(0,ks,2,0,"div",1),b(1,Fs,1,0,"div",2),I(2,"div",3),g(3),F(),I(4,"div",4),b(5,Ps,1,0,"div",5),I(6,"div",6),g(7,1),F(),I(8,"main"),g(9,2),F()()),t&2&&(S(n.isOverlay()&&!n.disableDrag()?0:-1),p(),S(n.isOverlay()&&n.isDragging()?1:-1),p(3),te("transform",!n.disableDrag()&&n.draggingStyle()),p(),S(n.isOverlay()&&!n.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return i})();var ba=(()=>{class i extends ei{constructor(){super("[value], [step], [routerLinkActive], button, a","active"),this.color=c(null),this.hostClasses=K("stepper",{color:this.color}),V(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let n=document.createElement("div");n.className="radio sh-sheet",t.append(n),e.prepend(t)}})})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(t,n){t&2&&L(n.hostClasses())},inputs:{color:[1,"color"]},features:[W],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();var Sa=(()=>{class i{constructor(){this.#t=C(pr),this.shSort=c(),this.sortAsc=E(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===t}),this.sortDesc=E(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===`-${t}`})}#t;toggleSort(){let e=this.shSort();e&&this.#t.toggleSort(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=B({type:i,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(t,n){t&1&&M("mousedown",function(){return n.toggleSort()}),t&2&&R("sort-asc",n.sortAsc())("sort-desc",n.sortDesc())},inputs:{shSort:[1,"shSort"]}})}}return i})();var Be=1.5,pr=(()=>{class i{constructor(){this.#t=C(N),this.loading=c(!1),this.data=c([]),this.dataChange=ce(),this.sortByColumn=j(null),this.color=c(null),this.variant=c(null),this.hostClasses=K("table",{color:this.color,variant:this.variant}),this.thead=Q("thead"),this.tbody=Q("tbody"),this.columns=Ji(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=E(()=>{let e=this.hostClasses();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=V(()=>{let e=this.tbody()?.nativeElement,t=this.thead()?.nativeElement;if(!e||!t)return;let n=this.stickyHeaderHeight();queueMicrotask(()=>{let s=t.querySelectorAll("tr.sticky").length>0,r=e.querySelectorAll("tr.sticky");if(r.length>0&&s)for(let l=0;l<r.length;l++)r[l].style.top=`${n}px`})}),this.resizing=v(!1),this.sizeTrigger=v(!0),this.#n=null,this.#e=v(!1),this.scrollXState=v(-1),this.scrollYState=v(-1),this.canScrollX=v(!1),this.canScrollY=v(!1),this.columnSizes=E(()=>{this.sizeTrigger();let e=this.columns.signal();return e.reduce((t,n,s)=>{let r=n,a=r.getAttribute("size"),l=s===e.length-1;return a?`${t} ${a}`:r.classList.contains("sticky")||r.classList.contains("sticky-end")?`${t} min-content`:l?`${t} 1fr`:`${t} 1fr`},"")}),this.e=V(()=>{let e=this.sortByColumn();if(e===null)return this.#e()||(this.#n=this.data(),this.#e.set(!0)),this.dataChange.emit(structuredClone(this.#n));let t=e.startsWith("-")?e.slice(1):e,n=e.startsWith("-"),s=this.data().sort((r,a)=>{let l=r[t],d=a[t],u=0;return typeof l=="number"&&typeof d=="number"&&(u=l-d),l instanceof Date&&d instanceof Date&&(u=l.getTime()-d.getTime()),typeof l=="string"&&typeof d=="string"&&(u=l.localeCompare(d,void 0,{sensitivity:"base"})),n?-u:u});this.dataChange.emit(s)})}#t;#n;#e;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#i()}onResize(e){this.#i()}ngAfterViewInit(){queueMicrotask(()=>this.#i())}toggleSort(e){let t=this.sortByColumn(),n=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(n)}#i(){let e=this.#t.nativeElement,t=-1,n=-1,s=e.scrollWidth>e.clientWidth+Be;if(s){let a=e.scrollLeft<=Be;e.scrollWidth-(e.scrollLeft+e.clientWidth)<Be?t=1:a||(t=0)}this.scrollXState.set(t),this.canScrollX.set(s);let r=e.scrollHeight>e.clientHeight+Be;if(r){let a=e.scrollTop<=Be;e.scrollHeight-(e.scrollTop+e.clientHeight)<Be?n=1:a||(n=0)}this.scrollYState.set(n),this.canScrollY.set(r)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-table"]],viewQuery:function(t,n){t&1&&se(n.thead,Rs,5)(n.tbody,Ls,5),t&2&&ee(2)},hostVars:18,hostBindings:function(t,n){t&1&&M("scroll",function(){return n.onScroll()})("resize",function(r){return n.onResize(r)},hi),t&2&&(L(n.hostClasses()),te("grid-template-columns",n.columnSizes()),R("resizing",n.resizing())("can-scroll-x",n.canScrollX())("can-scroll-y",n.canScrollY())("scrolled-x",n.scrollXState()>=0)("scrolled-x-end",n.scrollXState()===1)("scrolled-y",n.scrollYState()>=0)("scrolled-y-end",n.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"],color:[1,"color"],variant:[1,"variant"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Hs,decls:11,vars:2,consts:[["thead",""],["tbody",""],[1,"actionbar"],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(t,n){t&1&&(P(Bs),f(0,"div",2),g(1),m(),b(2,js,1,0,"sh-progress-bar",3),f(3,"thead",null,0),g(5,1),g(6,2),m(),f(7,"tbody",null,1),g(9,3),m(),b(10,zs,2,0,"div",4)),t&2&&(p(2),S(n.loading()?2:-1),p(8),S(n.loading()?-1:10))},dependencies:[dr],encapsulation:2,changeDetection:0})}}return i})(),Ma=(()=>{class i extends ei{constructor(){super("[value], [tab], button, a","active"),this.id="--"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,12),this.color=c(null),this.variant=c(null),this.hostClasses=K("tabs",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(t,n){t&2&&(L(n.hostClasses()),te("--tabs-id",n.id))},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[W],ngContentSelectors:oe,decls:1,vars:0,template:function(t,n){t&1&&(P(),g(0))},encapsulation:2,changeDetection:0})}}return i})();var Ea=(()=>{class i{constructor(){this.disableToggle=c(!1),this.isActive=j(),this.#t=V(()=>{this.disableToggle()&&this.isActive.set(!0)}),this.color=c(null),this.variant=c(null),this.hostClasses=K("card",{color:this.color,variant:this.variant})}#t;toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-toggle-card"]],hostVars:4,hostBindings:function(t,n){t&2&&(L(n.hostClasses()),R("active",n.isActive()))},inputs:{disableToggle:[1,"disableToggle"],isActive:[1,"isActive"],color:[1,"color"],variant:[1,"variant"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Ws,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(t,n){t&1&&(P($s),f(0,"h3",0),M("click",function(){return!n.disableToggle()&&n.toggle()}),g(1,0,null,Gs,1,0),b(3,qs,2,0,"sh-icon",1),m(),f(4,"div",2)(5,"div",3),g(6,1),m()()),t&2&&(p(3),S(n.disableToggle()?-1:3))},dependencies:[De],encapsulation:2,changeDetection:0})}}return i})(),xa=(()=>{class i{constructor(){this._elementRef=C(N),this.internalInput=Q("internalInput"),this.projectedInputs=rt("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=j(!1),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=K("toggle",{color:this.color,variant:this.variant,readonly:this.readonly})}onInternalInputChange(e){if(this.disabled())return;let t=e.target;this.checked.set(t.checked)}onEnter(e){let t=this.internalInput()?.nativeElement;t&&getComputedStyle(t).display!=="none"?t.click():this._elementRef.nativeElement.click(),e.preventDefault()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["sh-toggle"]],viewQuery:function(t,n){t&1&&se(n.internalInput,Jt,5),t&2&&ee()},hostVars:3,hostBindings:function(t,n){t&1&&M("keydown.enter",function(r){return n.onEnter(r)}),t&2&&(Y("disabled",n.disabled()?"":null),L(n.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:oe,decls:4,vars:1,consts:[["internalInput",""],[1,"box"],[1,"knob"],["type","checkbox",1,"internal-input",3,"checked"],["type","checkbox",1,"internal-input",3,"change","checked"]],template:function(t,n){t&1&&(P(),I(0,"div",1),Me(1,"div",2),F(),g(2),b(3,Us,2,2,"input",3)),t&2&&(p(3),S(n.projectedInputs().length===0&&!n.noInternalInput()?3:-1))},encapsulation:2,changeDetection:0})}}return i})();var wa=(()=>{class i{constructor(){this.filesOver=v(!1),this.filesDropped=ce()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=B({type:i,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(t,n){t&1&&M("dragover",function(r){return n.onDragOver(r)})("dragleave",function(r){return n.onDragLeave(r)})("drop",function(r){return n.ondrop(r)}),t&2&&R("filesover",n.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return i})();var fr=(()=>{class i{constructor(){this.positionAnchorName=c.required(),this.anchorEl=c.required(),this.isOpen=c(!1),this.content=c(),this.close=c(()=>{}),this.tooltipContext={close:()=>this.close()()},this.isTemplate=E(()=>this.content()instanceof ze),this.#t=C(be),this.#n=C(N),this.#e=C(ve),this.#i=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=v(!1),this.openEffect=V(()=>{if(this.isOpen())queueMicrotask(()=>{let e=this.#n.nativeElement;!e||!e.isConnected||(this.#i&&this.#i.abort(),this.#i=new AbortController,e.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#o(e).addEventListener("scroll",()=>this.calculateTooltipPosition(),{signal:this.#i?.signal,passive:!0}),window?.addEventListener("resize",()=>this.calculateTooltipPosition(),{signal:this.#i?.signal,passive:!0}),this.calculateTooltipPosition()}))});else{let e=this.#n.nativeElement;if(e)try{e.matches(":popover-open")&&e.hidePopover()}catch{}this.#i?.abort(),this.#i=null}}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let e=this.anchorEl().nativeElement.getBoundingClientRect(),t=this.#n.nativeElement,n=t.getBoundingClientRect();if(n.width===0&&n.height===0)return;let s=8,r=(w,x)=>({left:w.left+w.width/2-x.width/2,top:w.top-x.height-s}),T=[r,(w,x)=>({left:w.right-x.width,top:w.top-x.height-s}),(w,x)=>({left:w.left,top:w.top-x.height-s}),(w,x)=>({left:w.left+w.width/2-x.width/2,top:w.bottom+s}),(w,x)=>({left:w.right-x.width,top:w.bottom+s}),(w,x)=>({left:w.left,top:w.bottom+s})];for(let w of T){let x=w(e,n);if(this.#a(x,n)){this.#r(x,t),this.isBelow.set(x.top>e.top);return}}let $=this.#s(r(e,n),n);this.#r($,t),this.isBelow.set($.top>e.top)}}#t;#n;#e;#i;ngOnDestroy(){this.#i?.abort(),this.#i=null}#o(e){let t=["scroll","auto"],n=e.parentElement;for(;n;){if(t.indexOf(window?.getComputedStyle(n).overflowY)>-1&&n.scrollHeight>n.clientHeight)return n;n=n.parentElement}return this.#t.documentElement}#r(e,t){this.#e.setStyle(t,"left",`${e.left}px`),this.#e.setStyle(t,"top",`${e.top}px`),this.#e.setStyle(t,"position","fixed"),this.#e.setStyle(t,"margin","0")}#a(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#s(e,t){return{left:Math.max(0,Math.min(e.left,window.innerWidth-t.width)),top:Math.max(0,Math.min(e.top,window.innerHeight-t.height))}}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,n){t&2&&(Y("popover","manual"),te("position-anchor",n.positionAnchorName()),R("below",n.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"],content:[1,"content"],close:[1,"close"]},decls:3,vars:1,consts:[[1,"tooltip-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&(f(0,"div",0),b(1,Xs,1,4,"ng-container")(2,Qs,1,1),m()),t&2&&(p(),S(n.isTemplate()?1:2))},dependencies:[Lt],encapsulation:2})}}return i})(),z=null,Oa=(()=>{class i{constructor(){this.shTooltip=c.required(),this.#t=V(()=>{let e=this.shTooltip();ae(()=>{this.isOpen()&&z?.component===this&&z?.wrapperComponentRef&&(z.wrapperComponentRef.setInput("content",e),z.wrapperComponentRef.changeDetectorRef.detectChanges())})}),this.#n=C(N),this.#e=C(fi),this.#i=C(ci),this.debounceTimer=null,this.DEBOUNCE_DELAY=50,this.anchorName=`--${st()}`,this.isOpen=v(!1),this.destroyTimeout=null}#t;#n;#e;#i;onMouseEnter(e){e.stopPropagation(),z?.component.anchorName!==this.anchorName?this.cleanupTooltip():this.cancelCleanupTimer(),this.showTooltip()}onMouseLeave(e){e.stopPropagation(),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),this.destroyTimeout&&(clearTimeout(this.destroyTimeout),this.destroyTimeout=null)}showTooltip(){if(z?.wrapperComponentRef||!this.shTooltip()){z?.component===this&&z?.wrapperComponentRef&&z.wrapperComponentRef.setInput("content",this.shTooltip());return}z={wrapperComponentRef:this.#e.createComponent(fr,{environmentInjector:this.#i}),component:this},z.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),z.wrapperComponentRef.setInput("anchorEl",this.#n),z.wrapperComponentRef.setInput("isOpen",this.isOpen),z.wrapperComponentRef.setInput("content",this.shTooltip()),z.wrapperComponentRef.setInput("close",()=>this.cleanupTooltip()),z.wrapperComponentRef.changeDetectorRef.detectChanges(),z.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",e=>{e.stopPropagation(),this.cancelCleanupTimer()}),z.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",e=>{e.stopPropagation(),this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){z?.wrapperComponentRef&&(z.component.cancelCleanupTimer(),z.component.isOpen.set(!1),z.wrapperComponentRef.location.nativeElement.hidePopover(),this.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{z?.wrapperComponentRef.destroy(),z=null})},this.DEBOUNCE_DELAY))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=B({type:i,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(t,n){t&1&&M("mouseenter",function(r){return n.onMouseEnter(r)})("mouseleave",function(r){return n.onMouseLeave(r)}),t&2&&(te("anchor-name",n.anchorName),R("active",n.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}})}}return i})();export{Ce as a,nn as b,Ti as c,Ci as d,Nr as e,Ir as f,wn as g,et as h,bt as i,kr as j,In as k,Fn as l,Rn as m,Bn as n,qi as o,$n as p,Gn as q,Fr as r,Pr as s,Rr as t,Zi as u,De as v,la as w,ca as x,Js as y,da as z,ua as A,ha as B,pa as C,er as D,tr as E,fa as F,rr as G,ii as H,ga as I,ma as J,va as K,dr as L,_a as M,ya as N,ur as O,Ca as P,Da as Q,ba as R,Sa as S,pr as T,Ma as U,Ea as V,xa as W,wa as X,Oa as Y};
package/chunk-OO32MPRQ.js DELETED
@@ -1 +0,0 @@
1
- import{a as ze}from"./chunk-35APLYI4.js";import{a as Ge}from"./chunk-R6TFME5I.js";import{A as Le,B as ce,H as J,J as Ae,K as ke,L as Be,P as $e,W as We,a as ae,c as G,e as z,i as j,k as de,s as H,v as De,y as we,z as Ie}from"./chunk-NCXKMSRH.js";import{d as Ve}from"./chunk-QAQMMCTH.js";import{aa as Re}from"./chunk-BDQJFOCO.js";import{$b as _,A as Ce,Ab as te,Ac as se,Bb as ne,Bc as ve,Cb as T,Cc as le,Db as a,Dc as Fe,Eb as d,F as ue,Fb as ie,Jb as Te,Kb as Pe,Kc as ye,Lb as pe,Mb as L,Rc as O,Sa as p,Tb as Me,Ub as be,Vb as x,Wb as q,Wc as xe,Xb as K,Xc as m,Yc as _e,Zb as A,_ as Z,ac as V,bc as S,da as b,ea as N,gb as W,gc as Ne,hc as Se,ic as ge,jc as oe,kc as B,l as me,lb as X,nc as P,pa as C,pc as Oe,q as k,qc as re,ra as y,sc as R,tc as D,uc as w,vb as ee,w as fe,wb as v,xb as F,yb as Ee}from"./chunk-UH2E7MMT.js";import{a as Q,b as Y}from"./chunk-7CGTOI24.js";var Qe=["treeContainer"],Ye=["formRef"],Ze=[[["label"]],[["label"]],[["input"]]],et=["label","label","input"],tt=r=>({children:r,level:0}),Ue=r=>({$implicit:r}),nt=(r,t)=>({children:r,level:t}),it=()=>({maxWidth:"700px",width:"100%"}),ot=(r,t)=>t.id;function rt(r,t){if(r&1){let e=L();a(0,"sh-button-group",21),w("valueChange",function(i){b(e);let o=_();return D(o.pathDiscoveryMethod,i)||(o.pathDiscoveryMethod=i),N(i)}),a(1,"button",22),x(2,4),d(),a(3,"button",23),x(4,5),d()()}if(r&2){let e=_();R("value",e.pathDiscoveryMethod)}}function st(r,t){r&1&&ie(0,"sh-progress-bar",14)}function lt(r,t){r&1&&(a(0,"sh-icon",28),P(1,"caret-down"),d())}function at(r,t){r&1&&ie(0,"sh-icon",28)}function dt(r,t){r&1&&(a(0,"sh-icon",28),P(1,"spinner"),d())}function ct(r,t){r&1&&(a(0,"sh-icon",28),P(1,"caret-right"),d())}function ut(r,t){r&1&&(a(0,"sh-icon",26),P(1,"folder-open"),d())}function pt(r,t){r&1&&(a(0,"sh-icon",26),P(1,"folder-user"),d())}function gt(r,t){r&1&&(a(0,"sh-icon",26),P(1,"file"),d())}function _t(r,t){r&1&&(a(0,"sh-icon",26),P(1,"folder"),d())}function ht(r,t){if(r&1&&(v(0,lt,2,0,"sh-icon",28)(1,at,1,0,"sh-icon",28)(2,dt,2,0,"sh-icon",28)(3,ct,2,0,"sh-icon",28),v(4,ut,2,0,"sh-icon",26)(5,pt,2,0,"sh-icon",26)(6,gt,2,0,"sh-icon",26)(7,_t,2,0,"sh-icon",26)),r&2){let e=_(2).$implicit,n=_(2);F(e.children.length?0:e.cls==="file"?1:e.id===n.isLoading()?2:3),p(4),F(e.children.length?4:e.id==="%HOME%"?5:e.cls==="file"?6:7)}}function mt(r,t){r&1&&(a(0,"sh-icon",26),P(1,"desktop-tower"),d())}function ft(r,t){r&1&&pe(0)}function Ct(r,t){if(r&1&&X(0,ft,1,0,"ng-container",15),r&2){let e=_(2).$implicit,n=_().$implicit;_();let i=ge(7);T("ngTemplateOutlet",i)("ngTemplateOutletContext",le(5,Ue,Fe(2,nt,e.children,n.level+1)))}}function Et(r,t){if(r&1){let e=L();a(0,"div",24,3),A("click",function(){b(e);let i=_().$implicit,o=_(2);return N(o.toggleNode(i.id,i))}),a(2,"div",25),v(3,ht,8,2)(4,mt,2,0,"sh-icon",26),d(),a(5,"div",27),A("click",function(i){b(e);let o=_().$implicit,l=_(2);return N(l.toggleSelectedNode(i,o))}),P(6),d()(),v(7,Ct,1,7,"ng-container")}if(r&2){let e=_().$implicit,n=_().$implicit,i=_();B("accepted",e.accepted===!0)("active",e.evalState===i.TreeEvalEnum.Included)("indeterminate",e.isIndeterminate)("open",e.children.length)("usually-hidden",e.hidden)("root",n.level===0)("loading",i.isLoading()===e.id),p(2),B("file",e.cls==="file"),p(),F(e.id!=="/"?3:4),p(3),Oe(" ",e.text," "),p(),F(e.children.length>0?7:-1)}}function Tt(r,t){if(r&1&&v(0,Et,8,19),r&2){let e=t.$implicit,n=_(2);F(e.hidden&&n._showHiddenNodes()||!e.hidden?0:-1)}}function Pt(r,t){if(r&1&&(a(0,"sh-list"),te(1,Tt,1,1,null,null,ot),d()),r&2){let e=t.$implicit;oe("padding-left",e.level*.25,"rem"),p(),ne(e.children)}}function Mt(r,t){r&1&&pe(0)}function bt(r,t){if(r&1){let e=L();a(0,"sh-toggle",29),w("checkedChange",function(i){b(e);let o=_();return D(o._showHiddenNodes,i)||(o._showHiddenNodes=i),N(i)}),x(1,6),d()}if(r&2){let e=_();R("checked",e._showHiddenNodes),p(),q(e.showFiles()?"files":"folders"),K(1)}}function Nt(r,t){if(r&1){let e=L();a(0,"button",30),A("click",function(){b(e);let i=_();return N(i.openCreateFolderDialog())}),x(1,7),d()}if(r&2){let e=_();T("disabled",!e.isCurrentPathFolder())}}function St(r,t){if(r&1){let e=L();a(0,"sh-dialog",31),w("isOpenChange",function(i){b(e);let o=_();return D(o.createFolderDialogOpen,i)||(o.createFolderDialogOpen=i),N(i)}),a(1,"header",32)(2,"h2"),x(3,8),d()(),a(4,"div",33)(5,"div",34)(6,"p"),x(7,9),d(),a(8,"div",35)(9,"pre"),P(10),d()()(),a(11,"sh-form-field")(12,"textarea",36),w("ngModelChange",function(i){b(e);let o=_();return D(o.createFolderPath,i)||(o.createFolderPath=i),N(i)}),d()()(),a(13,"footer",37)(14,"button",38),A("click",function(){b(e);let i=_();return N(i.closeCreateFolderDialog(!1))}),P(15,"Cancel"),d(),a(16,"button",39),A("click",function(){b(e);let i=_();return N(i.closeCreateFolderDialog(!0))}),Me(17,10),ie(18,"sh-icon"),be(),d()()()}if(r&2){let e,n=_();R("isOpen",n.createFolderDialogOpen),T("options",ve(6,it)),p(10),re("",n.currentPathResolvedShorthands(),"",n.createFolderPath()?"/"+n.createFolderPath():""),p(2),R("ngModel",n.createFolderPath),p(4),T("disabled",!((e=n.createFolderPath())!=null&&e.length))}}var Xe=(o=>(o[o.ExcludedByParent=-2]="ExcludedByParent",o[o.Excluded=-1]="Excluded",o[o.None=0]="None",o[o.Included=1]="Included",o[o.IncludedByParent=2]="IncludedByParent",o))(Xe||{}),M="/",he=class r{#e=Z(Ve);#n=Z(Ge);#u=Z(Ie);multiSelect=m(!1);disabled=m(!1);showFiles=m(!1);selectFiles=m(!1);accepts=m(null);startingPath=m(null);rootPaths=m([]);initialNodes=m([]);backupSettings=m(null);pathRefreshTrigger=m(!1);showHiddenNodes=m(!1);enableCreateFolder=m(!1);hideShortcuts=m(!1);customRemoteMode=m(null);backupId=m("");sourcePrefix=m("");destinationUrl=m("");loadExtendedData=m(!0);hasExtendedData=xe();_showHiddenNodes=C(!1);createFolderDialogOpen=C(!1);createFolderPath=C(null);treeContainerRef=_e("treeContainer");formRef=_e("formRef");pathDiscoveryMethod=C("browse");isLoading=C(null);currentPath=C("");currentPathResolvedShorthands=O(()=>this.#n.resolveShorthandPath(this.currentPath()));#r=C(null);treeSearchQuery=C("");treeNodes=C([]);pathDelimiter=O(()=>this.#n.systemInfo()?.DirectorySeparator??"");filterGroups=this.#n.filterGroups();isByBackupSettings=O(()=>{let t=this.backupSettings();return!(t===void 0||t?.id===void 0||t?.time===void 0)});searchableTreeNodes=O(()=>{let t=this.treeSearchQuery();return t?this.treeNodes().filter(e=>e.text?.toLowerCase().includes(t.toLowerCase())):this.treeNodes()});TreeEvalEnum=Xe;treeStructure=O(()=>{let t=this.showHiddenNodes(),e=this.currentPath().split("\0").filter(s=>s!==""&&s!==M),n=structuredClone(e);for(let s=0;s<n.length;s++){let f=n[s].slice(1);if(f.startsWith("{")&&f.endsWith("}")){let h=f.slice(1,-1),g=this.filterGroups?.FilterGroups[h];if(g&&g.length){let I=g.map(E=>`-${E}`);n.splice(s,1,...I)}}}let i=this.searchableTreeNodes(),o=this.rootPaths(),l=this.accepts(),u=[];return o.length>0?u=o.map(s=>{let c=this.#s(n,s,"folder",null);return{id:s,resolvedpath:s,text:s,parentPath:"",children:[],evalState:c,isIndeterminate:!1,cls:this.#t(s)?"folder":"file"}}):u=[{id:M,resolvedpath:M,text:$localize`Computer`,parentPath:"",children:[],evalState:0,isIndeterminate:!1,cls:"folder"}],u.map(s=>{let c=new Map;if(!s.id)return;let f=s.id;l&&(s.accepted=!0),c.set(f,s);let h=o.length>0?i.filter(g=>g.parentPath.startsWith(f)):i;for(let g of h){if(!g.id)continue;let I=g.id;if(!g.cls||c.has(I))continue;let E=c.get(g.parentPath),U=g.hidden===!0&&t?0:this.#s(n,I,g.cls,E),$=Y(Q({},g),{isIndeterminate:this.isIndeterminate(n,I),evalState:U,children:[]});l&&($.accepted=this.matchAccepts(l,$)),c.set(I,$),E&&E.children.push($)}return s}),u});#p(t){if(!t)return M;let e=this.#i(t);return t.endsWith("/")||t.endsWith("\\")||t===M?t:t+e}#s(t,e,n,i){if(i&&i.evalState===-1)return-2;let o=0,l=t.filter(c=>!c.startsWith("-")&&!c.startsWith("+")),u=t.filter(c=>c.startsWith("-")||c.startsWith("+")),s=this.multiSelect();if(l.length===0)return o;for(let c=0;c<l.length;c++){let f=l[c];if(e===f){o=1;break}if(!s||!this.#t(f))continue;if(e?.startsWith(f)){o=1;break}}if(u.length===0)return o;for(let c=0;c<u.length;c++){let f=u[c],h=f.slice(1),g=f.startsWith("-")?-1:1;if(this.#t(h)){if(n!=="folder")continue;if(e===h){o=g;break}}if(h.startsWith("*")&&(h.endsWith("*\\")||h.endsWith("*/"))){if(n!=="folder")continue;let E=h.slice(1,-2);if(E==="")break;if(e?.includes(E+"\\")||e?.includes(E+"/")){o=g;break}}if(h.startsWith("[.*")&&(h.endsWith("[^\\/]*]")||h.endsWith("[^\\\\]*]"))){if(n!=="file")continue;let E=h.slice(3,-7);if(new RegExp(E).test(e)){o=g;break}}if(h.startsWith("[")&&h.endsWith("]")){let E=h.slice(1,-1),U=this.translateCSharpRegex(E);if(new RegExp(`${U}`).test(e)){o=g;break}}if(h.startsWith("*.")){if(n!=="file"||h.replace("*.","").length===0)continue;if(this.#l(e,h,!0)){o=g;break}}if(h==="")continue;if(h===e){o=g;break}if(this.#l(e,h,!0)){o=g;break}}return o}translateCSharpRegex(t){let e=t;e=e.replace(/^@/,"");let n=/\(\?<(?<name>\w+)>(?<pattern>[^)]+)\)/g;return e=e.replace(n,(i,o,l)=>`(${l})`),e=e.replace(/\\/g,"\\\\"),e}isIndeterminate(t,e){return t.filter(n=>!n.startsWith("-")&&this.#t(n)).some(n=>n.startsWith(e))}isCurrentPathFolder(){let t=this.currentPath();return t?t.endsWith("/")||t.endsWith("\\")||t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\"):!1}#l(t,e,n=!1){let i=e.replace(/\*/g,".*").replace(/\?/g,".").replace(/\[!([^\]]+)\]/g,"[^$1]");return new RegExp(`${i}${n?"$":""}`).test(t)}#i(t){return t?t.includes("/")?"/":t.includes("\\")?"\\":this.pathDelimiter():this.pathDelimiter()}showHiddenNodesEffect=y(()=>this._showHiddenNodes.set(this.showHiddenNodes()));pathDiscoveryMethodEffect=y(()=>{let t=this.pathDiscoveryMethod(),e=this.#r();if(t==="browse"&&e){let n=e.value;if(n==null||n==="")return;this.currentPath.set(n)}});matchAccepts(t,e){if(!t||e.cls==="folder"||e.id===M)return!0;let n=t.split(",");if(n.length===0)return!0;let i="."+e.id.slice(e.id.indexOf("."));return i?n.some(o=>i.endsWith(o)):!1}currentPathEffect=y(()=>{let t=this.#r();t&&(t.value=this.currentPath(),t.dispatchEvent(new Event("input")))});inputValueChangeAbortController=null;inputRefEffect=y(()=>{let t=this.formRef()?.nativeElement?.querySelector("input");t&&(this.#g(t),this.inputValueChangeAbortController&&this.inputValueChangeAbortController.abort(),this.inputValueChangeAbortController=new AbortController,t.addEventListener("inputValueChanged",e=>{this.currentPath.set(e.detail.value)},{signal:this.inputValueChangeAbortController.signal}),this.#r.set(t),t.autocomplete="off")});ngOnInit(){let t=this.startingPath();if(t)this.currentPath.set(t),this.#E(t);else{let e=this.rootPaths(),n=this.initialNodes();e&&e.length>0?(n&&n.length>0&&this.treeNodes.set(n.map(i=>({id:i.id,leaf:i.leaf,cls:i.cls,text:this.#c(i.text,i?.Metadata),iconCls:i.iconCls,fileSize:i.fileSize,resolvedpath:i.resolvedpath,parentPath:this.getParentPath(i.id??"")}))),this.#o(null,e[0])):this.#o(null,M)}}getParentPath(t){let e=this.#i(t),n=t.split(e);return n.length<=1?M:(n.pop(),n.length!==0&&n.pop(),n.join(e)+e)}toggleSelectedNode(t,e){if(e.id===M||(t.stopPropagation(),e.evalState===-2))return;if(this.selectFiles()&&e.cls==="folder"){this.toggleNode(e.id,e);return}if(this.accepts()&&!e.accepted)return;let i=this.currentPath().split("\0").filter(s=>s!==""&&s!==M),l=this.isChildOfSelected(e)?`-${e.id}`:e.id,u=this.#t(e.id);if(this.multiSelect())if(i.includes(e.id))this.currentPath.set(i.filter(s=>s!==e.id&&!(u&&s.startsWith(l))).join("\0"));else if(i.some(s=>s==l))this.currentPath.set(i.filter(s=>s!==l).join("\0"));else{let s=u?i.filter(c=>!c.startsWith(e.id)):i;this.currentPath.set([...s,l].join("\0"))}else i.includes(e.id)?this.currentPath.set(i.filter(s=>s!==e.id).join("\0")):this.currentPath.set(e.id)}isChildOfSelected(t){return this.currentPath().split("\0").filter(n=>n!==""&&n!==M&&this.#t(n)).some(n=>t.id?.startsWith(n)||`-${t.id}`.startsWith(n))}toggleNode(t,e=null){e?.cls==="folder"&&(e?.children.length?this.treeNodes.update(n=>n.filter(i=>!i.id?.startsWith(e.id)||i.id===e.id)):this.#o(e,t))}openCreateFolderDialog(){return this.createFolderPath.set(null),this.createFolderDialogOpen.set(!0),!1}closeCreateFolderDialog(t){if(t&&this.createFolderPath()?.length&&this.isCurrentPathFolder()){let e=this.createFolderPath()?.trim();if(e){let n=this.currentPath(),i=this.currentPathResolvedShorthands(),o=this.#p(e),l=`${i}/${o}`;this.#e.postApiV1RemoteoperationCreate({requestBody:{path:"file://"+l}}).subscribe({next:()=>{this.currentPath.set(l),this.#o(null,n),setTimeout(()=>{this.#a()},500),this.createFolderDialogOpen.set(!1)},error:u=>{let s=u?.message?.match(/user-information\s*:\s*(.*?)(?:\s*,|$)/i),c=s?s[1]:u?.message||$localize`An error occurred while trying to create the folder.`;this.#u.open(ze,{data:{title:$localize`Cannot create folder`,message:c,confirmText:$localize`OK`,cancelText:void 0}})}})}}else this.createFolderDialogOpen.set(!1);return!1}#a(){setTimeout(()=>{let e=this.treeContainerRef()?.nativeElement?.querySelector(".active");e&&e.scrollIntoView({behavior:"smooth",block:"center"})},100)}#g(t){return Object.defineProperty(t,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").get.call(this)},set(e){return Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value").set.call(this,e),this.dispatchEvent(new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:e}})),e}}),t}#_(t){return this.#e.postApiV1Filesystem({showHidden:!0,requestBody:{path:t},onlyFolders:!this.showFiles()})}#h(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"office365",requestBody:{"backup-id":this.backupId()??"","source-prefix":this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:this.destinationUrl()??"",path:t??"/"}}).pipe(k(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#m(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"googleworkspace",requestBody:{"backup-id":this.backupId()??"","source-prefix":this.sourcePrefix()??"",operation:"ListDestinationRestoreTargets",url:this.destinationUrl()??"",path:t??"/"}}).pipe(k(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#f(t){return this.#e.postApiV1WebmoduleByModulekey({modulekey:"diskimage",requestBody:{operation:"ListDestinationRestoreTargets",path:t??"/"}}).pipe(k(e=>{let n=e.Result;return Object.keys(n).map(i=>({Path:i,Metadata:JSON.parse(n[i])}))}))}#C(t){let e=this.backupSettings();if(this.#n.hasV2ListOperations())return this.#e.postApiV2BackupListFolder({requestBody:{BackupId:e.id,Time:e.time,Paths:t?[t]:null,PageSize:0,Page:0,ReturnExtended:this.customRemoteMode()!==null||this.loadExtendedData()}}).pipe(k(n=>n.Data??[]));{let n={id:e.id+"",prefixOnly:!1,folderContents:!0,time:e.time,filter:t?"@"+t:void 0};return this.#e.getApiV1BackupByIdFiles(n).pipe(k(i=>i.Files??[]))}}#d(t){return this.customRemoteMode()==="o365"?this.#h(t):this.customRemoteMode()==="gsuite"?this.#m(t):this.customRemoteMode()==="diskimage"?this.#f(t):this.isByBackupSettings()?this.#C(t):this.#_(t)}#E(t){let n=t.split("\0").filter(l=>!l.startsWith("-")&&!l.startsWith("+")&&!l.startsWith("@")).filter(Boolean).map(l=>{let u=this.#i(l),s=l.split(u);return s.at(-1)!==""&&s.pop(),{split:s,sep:u}}),i=[M];n.forEach(({split:l,sep:u})=>{l.forEach((s,c)=>{let f=l.slice(0,c+1).join(u)+u;f===""||f===u||i.includes(f)||i.push(f)})});let o=i.map(l=>(this.isLoading.set(l),this.#d(l).pipe(k(u=>({status:"success",value:u,url:l})),Ce(u=>me({status:"error",value:u,url:l})))));fe(o).pipe(ue(()=>this.isLoading.set(null))).subscribe({next:l=>{let u=l.filter(c=>c.status==="success"),s=l.filter(c=>c.status==="error");this.treeNodes.update(c=>{let f=u.flatMap(g=>Array.isArray(g.value)?g.value.map(I=>Y(Q({},I),{parentPath:g.url})):[]),h=[...new Map([...c,...f].map(g=>[g.id,g])).values()];return this.#a(),this.hideShortcuts()?h.filter(g=>!g.id.startsWith("%")):h})}})}#c(t,e){if(e){let n=e["o365:Name"]||e["o365:DisplayName"]||e["gsuite:Name"]||e["gsuite:DisplayName"]||e["diskimage:Name"];if(n)return n}return t}#T(t){t&&t.ExtType&&t.ExtType.length>0&&this.hasExtendedData.emit(t.ExtType)}#t(t){return t.startsWith("%")&&t.endsWith("%")&&!t.includes("/")&&!t.includes("\\")||t.endsWith("/")||t.endsWith("\\")}#o(t=null,e=M){this.isLoading.set(e),this.#d(e).pipe(ue(()=>this.isLoading.set(null))).subscribe({next:n=>{let i=this.isByBackupSettings()||this.customRemoteMode()!==null?n.map(o=>{this.#T(o.Metadata);let l=this.#i(o.Path);return{text:this.#c(o.Path.split(l).filter(s=>s!=="").pop(),o.Metadata),id:o.Path,cls:this.#t(o.Path)?"folder":"file",leaf:t!==null,resolvedpath:o.Path,hidden:!1}}):n;this.treeNodes.update(o=>{let l=i.map(s=>{let c=this.#t(s.id)?"folder":"file";return Y(Q({},s),{cls:c,parentPath:e})}),u=[...new Map([...o,...l].map(s=>[s.id,s])).values()];return this.hideShortcuts()?u.filter(s=>!s.id.startsWith("%")):u})}})}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=W({type:r,selectors:[["app-file-tree"]],viewQuery:function(e,n){e&1&&Ne(n.treeContainerRef,Qe,5)(n.formRef,Ye,5),e&2&&Se(2)},hostVars:2,hostBindings:function(e,n){e&2&&B("disabled",n.disabled())},inputs:{multiSelect:[1,"multiSelect"],disabled:[1,"disabled"],showFiles:[1,"showFiles"],selectFiles:[1,"selectFiles"],accepts:[1,"accepts"],startingPath:[1,"startingPath"],rootPaths:[1,"rootPaths"],initialNodes:[1,"initialNodes"],backupSettings:[1,"backupSettings"],pathRefreshTrigger:[1,"pathRefreshTrigger"],showHiddenNodes:[1,"showHiddenNodes"],enableCreateFolder:[1,"enableCreateFolder"],hideShortcuts:[1,"hideShortcuts"],customRemoteMode:[1,"customRemoteMode"],backupId:[1,"backupId"],sourcePrefix:[1,"sourcePrefix"],destinationUrl:[1,"destinationUrl"],loadExtendedData:[1,"loadExtendedData"]},outputs:{hasExtendedData:"hasExtendedData"},ngContentSelectors:et,decls:18,vars:17,consts:()=>{let t;t=$localize`Browse path`;let e;e=$localize`Manually type path`;let n;n=$localize` Show hidden ${"\uFFFD0\uFFFD"}:INTERPOLATION: `;let i;i=$localize` Create folder `;let o;o=$localize`Enter new folder path`;let l;l=$localize`Will be created as:`;let u;return u=$localize` Create folder ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:folder-plus${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`,[["treeContainer",""],["recursiveTree",""],["formRef",""],["treeNode",""],t,e,n,i,o,l,u,[1,"type-b","small",3,"value"],[1,"section"],[1,"browse-files"],[1,"indeterminate","primary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"footer"],[1,"primary","raised","browse-files-toggle",3,"checked"],["shButton","","type","button",1,"small","create-folder",3,"disabled"],[1,"form-field"],[3,"isOpen","options"],[1,"type-b","small",3,"valueChange","value"],["type","button","value","browse"],["type","button","value","path"],["action","",3,"click"],[1,"icon"],[1,"primary"],[1,"text",3,"click"],[1,"small"],[1,"primary","raised","browse-files-toggle",3,"checkedChange","checked"],["shButton","","type","button",1,"small","create-folder",3,"click","disabled"],[3,"isOpenChange","isOpen","options"],["header",""],["content",""],[1,"wrap-box"],[1,"box"],["id","targetUrl","autocomplete","off",3,"ngModelChange","ngModel"],["footer",""],["shButton","","type","button",3,"click"],["shButton","",1,"raised","primary",3,"click","disabled"]]},template:function(e,n){if(e&1&&(V(Ze),v(0,rt,5,1,"sh-button-group",11),a(1,"div",12),S(2,0,["ngProjectAs","label",5,["label"]]),a(3,"div",13,0),v(5,st,1,0,"sh-progress-bar",14),X(6,Pt,3,2,"ng-template",null,1,ye)(8,Mt,1,0,"ng-container",15),d(),a(9,"div",16),v(10,bt,2,2,"sh-toggle",17),v(11,Nt,2,1,"button",18),d()(),a(12,"div",19,2)(14,"sh-form-field"),S(15,1,["ngProjectAs","label",5,["label"]]),S(16,2,["ngProjectAs","input",5,["input"]]),d()(),v(17,St,19,7,"sh-dialog",20)),e&2){let i=ge(7);F(!n.multiSelect()&&n.customRemoteMode()===null?0:-1),p(),B("hidden",n.pathDiscoveryMethod()!=="browse"),p(2),B("visualize-accepted",n.accepts()),p(2),F(n.isLoading()!=null?5:-1),p(3),T("ngTemplateOutlet",i)("ngTemplateOutletContext",le(15,Ue,le(13,tt,n.treeStructure()))),p(2),F(!n.accepts()&&!n.isByBackupSettings()&&n.customRemoteMode()===null?10:-1),p(),F(n.enableCreateFolder()&&n.customRemoteMode()===null?11:-1),p(),B("hidden",n.pathDiscoveryMethod()!=="path"),p(5),F(n.createFolderDialogOpen()?17:-1)}},dependencies:[ce,Le,We,De,J,Ae,Be,we,Re,H,G,z,j],styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;gap:1rem}.disabled[_nghost-%COMP%]{opacity:.5;-webkit-user-select:none;user-select:none;pointer-events:none;position:relative}.disabled[_nghost-%COMP%]:before{content:"";position:absolute;inset:0;background:transparent}.fill[_nghost-%COMP%]{height:auto;overflow:hidden;flex:1 0}.fill[_nghost-%COMP%] .section[_ngcontent-%COMP%]{height:auto;overflow:hidden;flex:1 0;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr;grid-template-areas:"label toggle" "tree tree"}.fill[_nghost-%COMP%] .browse-files[_ngcontent-%COMP%]{resize:none;height:initial;grid-area:tree}.fill[_nghost-%COMP%] label[_ngcontent-%COMP%]{grid-area:label}.fill[_nghost-%COMP%] sh-toggle[_ngcontent-%COMP%]{grid-area:toggle;flex-direction:row-reverse}.section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.form-field.hidden[_ngcontent-%COMP%]{display:none}.browse-files[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding:.5rem 1rem;height:12.5rem;border:1px solid var(--base-4);border-radius:var(--shape-3);overflow:auto;resize:vertical;background:var(--base-1);position:relative}.browse-files[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]:not(.accepted){opacity:.5}.browse-files.visualize-accepted[_ngcontent-%COMP%] [action].accepted[_ngcontent-%COMP%]{opacity:1}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%]{--list-active-bg: var(--base-3);gap:.125rem;padding:0;height:min-content;min-width:min-content}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%]{padding:0;gap:0;border:1px solid transparent}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].active[_ngcontent-%COMP%]{border-color:transparent;--list-active-bg: var(--primary-2)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].indeterminate[_ngcontent-%COMP%]{border-color:var(--primary-4)}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].usually-hidden[_ngcontent-%COMP%]{opacity:.6}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%]{gap:.25rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]:has(sh-icon:nth-child(2)){width:3rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].root[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:1.5rem}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action].loading[_ngcontent-%COMP%]{opacity:.7}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;height:100%;width:max-content;display:flex;align-items:center}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:3rem;gap:.25rem;height:1.5rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.browse-files[_ngcontent-%COMP%] sh-list[_ngcontent-%COMP%] [action][_ngcontent-%COMP%] .icon.file[_ngcontent-%COMP%]{width:3rem;padding:0 .25rem}.browse-files-toggle[_ngcontent-%COMP%]{color:var(--base-9)}.hidden[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center}.box[_ngcontent-%COMP%]{border:1px solid var(--base-4);border-radius:var(--shape-3);padding:.5rem;background:var(--base-2)}.box[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{margin:0}.wrap-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;margin-bottom:1rem}'],changeDetection:0})};var Ot=[[["label"]],[["","prefix",""]],[["","suffix",""]]],vt=["label","[prefix]","[suffix]"];function Ft(r,t){if(r&1&&P(0),r&2){let e=t.$implicit,n=_();re("",e.label,"",n.hasPerSecond()?"/s":"")}}var yt=["throttle-upload","throttle-download"],xt=[{value:"B",label:"Bytes"},{value:"KB",label:"KB"},{value:"MB",label:"MB"},{value:"GB",label:"GB"},{value:"TB",label:"TB"},{value:"PB",label:"PB"}],Rt=r=>{if(!r||typeof r!="string"||r.length===0)return{size:0,unit:"MB"};let t=r.match(/^(\d+)(bytes|kb|mb|gb|tb|pb|b|kib|mib|gib|tib|pib)$/i);return t&&(t[2].toUpperCase()==="B"||t[2].toUpperCase()==="BYTES")?{size:1,unit:"KB"}:{size:t?parseInt(t[1],10):0,unit:t?t[2].toUpperCase():"MB"}},qe=class r{customId=m();inputType=m();timespan=C(0);unit=C("MB");sizeOptions=C(xt);readonly=C(!1);hasPerSecond=O(()=>{let t=this.inputType();return t&&yt.includes(t)});onChange=()=>{};onTouched=()=>{};onChangeEffect=y(()=>{this.onChange(this.getValue())});writeValue(t){if(t){let e=Rt(t);e?queueMicrotask(()=>{this.timespan.set(e.size),this.unit.set(e.unit)}):(this.timespan.set(0),this.unit.set("MB"))}else this.timespan.set(0),this.unit.set("MB")}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=W({type:r,selectors:[["app-size"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[se([{provide:ae,useExisting:r,multi:!0}])],ngContentSelectors:vt,decls:9,vars:10,consts:[[1,"label"],["type","number",3,"ngModelChange","id","ngModel","disabled"],["value","value","label","label",3,"options","readonly","isClearable"],["type","text",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(V(Ot),a(0,"div",0),S(1,0,["ngProjectAs","label",5,["label"]]),d(),a(2,"sh-form-field")(3,"input",1),w("ngModelChange",function(o){return D(n.timespan,o)||(n.timespan=o),o}),d(),S(4,1),S(5,2),d(),a(6,"sh-select",2)(7,"input",3),w("ngModelChange",function(o){return D(n.unit,o)||(n.unit=o),o}),d(),X(8,Ft,1,2,"ng-template"),d()),e&2&&(p(2),ee("readonly",n.readonly()||void 0),p(),T("id",n.customId()),R("ngModel",n.timespan),T("disabled",n.readonly()),p(3),oe("--miw",0),T("options",n.sizeOptions())("readonly",n.readonly())("isClearable",!1),p(),R("ngModel",n.unit))},dependencies:[$e,J,H,G,de,z,j],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-select[_ngcontent-%COMP%]{grid-area:unit}'],changeDetection:0})};var Dt=[[["label"]],[["","prefix",""]],[["","suffix",""]]],wt=["label","[prefix]","[suffix]"];function It(r,t){if(r&1){let e=L();a(0,"button",7),A("click",function(){let i=b(e).$implicit,o=_();return N(o.updateUnit(i.value))}),x(1,1),d()}if(r&2){let e=t.$implicit;p(),q(e.label),K(1)}}var Lt=[{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],At=[{value:"Y",label:$localize`Years`},{value:"M",label:$localize`Months`},{value:"W",label:$localize`Weeks`},{value:"D",label:$localize`Days`}],kt=["retry-delay","web-timeout","read-write-timeout","run-script-timeout","list-timeout","short-timeout"],Ke=class r{customId=m();inputType=m();timespan=C(0);#e="D";unit=C(this.#e);unitLabel=O(()=>{let t=this.timeOptions(),e=t.findIndex(n=>n.value===this.unit());return t[e]?.label??this.unit()});isShortTime=O(()=>{let t=this.inputType();return t&&kt.includes(t.replace("--",""))});timeOptions=O(()=>this.isShortTime()?Lt:At);readonly=C(!1);onChange=()=>{};onTouched=()=>{};onChangeEffect=y(()=>{this.onChange(this.getValue())});inputTypeEffect=y(()=>{let t=this.timeOptions(),e=this.isShortTime()?"s":"D";this.#e=e,this.unit.set(e)});updateUnit(t){this.unit.set(t)}writeValue(t){let e=this.isShortTime();if(t){let n=e?/(\d+)([smh])/i:/^(\d+)([YMWD])$/i,i=t.match(n);i?(this.timespan.set(parseInt(i[1],10)),this.unit.set(i[2])):(this.timespan.set(0),this.unit.set(this.#e))}else this.timespan.set(0),this.unit.set(this.#e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.readonly.set(t)}getValue(){return`${this.timespan()}${this.unit()}`}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=W({type:r,selectors:[["app-timespan"]],inputs:{customId:[1,"customId"],inputType:[1,"inputType"]},features:[se([{provide:ae,useExisting:r,multi:!0}])],ngContentSelectors:wt,decls:11,vars:6,consts:()=>{let t;t=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let e;return e=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`,[t,e,["type","number",3,"ngModelChange","id","ngModel","disabled"],[3,"openIndicator"],["shButton","","type","button",1,"trigger"],["menu",""],["shButton","","type","button",1,"small"],["shButton","","type","button",1,"small",3,"click"]]},template:function(e,n){e&1&&(V(Dt),S(0,0,["ngProjectAs","label",5,["label"]]),a(1,"sh-form-field")(2,"input",2),w("ngModelChange",function(o){return D(n.timespan,o)||(n.timespan=o),o}),d(),S(3,1),S(4,2),d(),a(5,"sh-menu",3)(6,"button",4),x(7,0),d(),Te(8,5),te(9,It,2,1,"button",6,Ee),Pe(),d()),e&2&&(p(),ee("readonly",n.readonly()||void 0),p(),T("id",n.customId()),R("ngModel",n.timespan),T("disabled",n.readonly()),p(3),T("openIndicator",!0),p(2),q(n.unitLabel()),K(7),p(2),ne(n.timeOptions()))},dependencies:[ke,J,H,G,de,z,j,ce],styles:['[_nghost-%COMP%]{display:grid;grid-template-areas:"label label" "input unit";grid-template-columns:3fr 1fr;gap:.5rem;align-items:flex-end}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{grid-area:label;grid-column:1/-1}[_nghost-%COMP%] sh-form-field[_ngcontent-%COMP%]{grid-area:input}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%]{grid-area:unit}[_nghost-%COMP%] sh-menu[_ngcontent-%COMP%] button.trigger[_ngcontent-%COMP%]{width:100%}'],changeDetection:0})};export{he as a,Rt as b,qe as c,Ke as d};
package/chunk-QUXPHHDZ.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-MRSBKQQM.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";export{a as BytesPipe};
package/chunk-R5OX4JTJ.js DELETED
@@ -1 +0,0 @@
1
- import{a as fe}from"./chunk-M5RTYP7N.js";import"./chunk-HHDCI6IF.js";import{a as Ce}from"./chunk-GO22QPW4.js";import{a as pe,b as z}from"./chunk-I625OICV.js";import"./chunk-XCVBN7EK.js";import{a as ue}from"./chunk-ADB5QRUO.js";import"./chunk-22PELS6R.js";import"./chunk-6Q6SSTBK.js";import{a as me}from"./chunk-MRSBKQQM.js";import"./chunk-35APLYI4.js";import"./chunk-LU7TIW3P.js";import{b as ge}from"./chunk-XZNYCTQB.js";import"./chunk-R6TFME5I.js";import"./chunk-AZRNX5LU.js";import{B as se,C as le,J as ce,L as de,v as oe,z as re}from"./chunk-NCXKMSRH.js";import{d as _e}from"./chunk-QAQMMCTH.js";import"./chunk-KHZ5AXGT.js";import"./chunk-L2QOWZDR.js";import"./chunk-BRL4YYWO.js";import{T as ee,U as te,ha as ne,ma as ie,qa as ae}from"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import{$b as g,Ab as K,Bb as Q,Cb as p,Db as e,Eb as t,Fb as I,Gc as _,Hc as C,Ic as E,Jb as Y,Kb as Z,Mb as B,Rc as L,Sa as r,V as X,Vb as S,Zb as h,_ as x,da as y,ea as b,fa as V,ga as j,gb as H,kc as G,lb as P,nc as o,oc as m,pa as N,pc as u,qc as $,ra as W,wb as D,xb as F,yb as q}from"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";var U=class s{#e=x(z);#n=x(ge);#i=N([]);recentFiles=this.#i.asReadonly();#r=5;#s=N(null);etaData=this.#s.asReadonly();#a=null;#t=null;#o=null;recentFileEffect=W(()=>{let i=this.#e.statusData();i&&i.CurrentFilename&&i.CurrentFilesize!==void 0&&this.#l(i.CurrentFilename,i.CurrentFilesize)});#l(i,n){let a=new Date;this.#i.update(l=>l.length>0&&l[0].filename===i?l:[{filename:i,filesize:n,timestamp:a},...l].slice(0,this.#r))}activateView(){this.#a=new Date;let i=this.#e.statusData();i&&i.ProcessedFileCount!==void 0&&i.ProcessedFileSize!==void 0&&(this.#t={files:i.ProcessedFileCount,bytes:i.ProcessedFileSize}),this.#o=setInterval(()=>{this.#c()},1e3)}deactivateView(){this.#a=null,this.#t=null,this.#o&&(clearInterval(this.#o),this.#o=null)}#c(){if(!this.#a||!this.#t)return;let i=this.#e.statusData();if(!i)return;let n=new Date,a=(n.getTime()-this.#a.getTime())/1e3;if(a<5)return;let l=i.ProcessedFileCount||0,d=i.ProcessedFileSize||0,c=l-this.#t.files,k=d-this.#t.bytes,M=c/a,O=k/a,A=(i.TotalFileCount||0)-l,f=(i.TotalFileSize||0)-d,T=null,v=null;M>0&&(T=A/M),O>0&&(v=f/O);let R=null,w="bytes";if(T!==null&&v!==null){let Se=Math.max(T,v);R=new Date(n.getTime()+Se*1e3),w=T>v?"files":"bytes"}else T!==null?(R=new Date(n.getTime()+T*1e3),w="files"):v!==null&&(R=new Date(n.getTime()+v*1e3),w="bytes");this.#s.set({startTime:this.#a,filesProcessedAtStart:this.#t.files,bytesProcessedAtStart:this.#t.bytes,currentFilesPerSecond:M,currentBytesPerSecond:O,estimatedCompletion:R,metric:w})}static \u0275fac=function(n){return new(n||s)};static \u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"})};function xe(s,i){if(s&1&&(e(0,"div",42)(1,"span",20),o(2,"Processing"),t(),e(3,"sh-list",43)(4,"div",44)(5,"sh-icon"),o(6,"file"),t(),e(7,"div",45)(8,"span",46),o(9),t(),e(10,"span",47),o(11),_(12,"bytes"),t()()()()()),s&2){let n,a,l,d=g(2);r(8),p("title",(n=d.statusData())==null?null:n.CurrentFilename),r(),u(" ",(a=d.statusData())==null?null:a.CurrentFilename," "),r(2),m(C(12,3,(l=d.statusData())==null?null:l.CurrentFilesize))}}function Me(s,i){if(s&1&&(e(0,"div",35)(1,"span",46),o(2),t(),e(3,"span",47),o(4),_(5,"bytes"),t()()),s&2){let n=i.$implicit;r(),p("title",n.filename),r(),m(n.filename),r(2),m(C(5,3,n.filesize))}}function Oe(s,i){s&1&&(e(0,"div",36),S(1,2),t())}function Te(s,i){if(s&1&&(e(0,"sh-list")(1,"div",48)(2,"span",20),o(3,"ETA"),t(),e(4,"span",21),o(5),_(6,"date"),e(7,"span",49),o(8),_(9,"relativeTime"),t()()(),e(10,"div",50)(11,"span",20),o(12,"Files/s"),t(),e(13,"span",21),o(14),_(15,"number"),t()(),e(16,"div",50)(17,"span",20),o(18,"Upload Speed"),t(),e(19,"span",21),o(20),_(21,"bytes"),t()()()),s&2){let n,a,l,d,c=g(2);r(5),u(" ",E(6,4,(n=c.etaData())==null?null:n.estimatedCompletion,"mediumTime")," "),r(3),u("(",C(9,7,(a=c.etaData())==null?null:a.estimatedCompletion),")"),r(6),m(E(15,9,(l=c.etaData())==null?null:l.currentFilesPerSecond,"1.1-1")),r(6),u("",C(21,12,(d=c.etaData())==null?null:d.currentBytesPerSecond),"/s")}}function ve(s,i){if(s&1&&(e(0,"div",53)(1,"div",54)(2,"span",55),o(3),t(),e(4,"span",56),o(5),_(6,"bytes"),t()(),I(7,"sh-progress-bar",57),t()),s&2){let n=i.$implicit;r(2),p("title",n.BackendPath),r(),m(n.BackendPath),r(2),u("",C(6,4,n.BackendSpeed),"/s"),r(2),p("value",(n.BackendFileProgress||0)/(n.BackendFileSize||1)*100)}}function he(s,i){if(s&1&&(e(0,"div",51)(1,"sh-list"),P(2,ve,8,6,"div",52),t()()),s&2){let n,a=g(2);r(2),p("ngForOf",(n=a.statusData())==null?null:n.ActiveTransfers)}}function Ee(s,i){if(s&1){let n=B();e(0,"sh-card")(1,"div",13)(2,"div",14)(3,"sh-icon",15),o(4,"clock"),t(),e(5,"h2"),o(6),t()()(),e(7,"div",26)(8,"div",27)(9,"span",28),o(10),_(11,"number"),t()(),I(12,"sh-progress-bar",29),e(13,"sh-list")(14,"div",30)(15,"span",20),o(16,"Files"),t(),e(17,"span",21),o(18),t()(),e(19,"div",30)(20,"span",20),o(21,"Size"),t(),e(22,"span",21),o(23),_(24,"bytes"),_(25,"bytes"),t()()()()(),e(26,"sh-card")(27,"div",13)(28,"div",14)(29,"sh-icon",15),o(30,"file"),t(),e(31,"h3"),o(32,"Activity"),t()()(),e(33,"div",31),P(34,xe,13,5,"div",32),e(35,"div",33)(36,"span",20),S(37,1),t(),e(38,"sh-list",34),K(39,Me,6,5,"div",35,q),D(41,Oe,2,0,"div",36),t()()()(),e(42,"sh-card")(43,"div",13)(44,"div",14)(45,"sh-icon",15),o(46,"gauge"),t(),e(47,"h3"),o(48,"Performance"),t()(),e(49,"div",37),o(50),_(51,"bytes"),t()(),e(52,"div",38),P(53,Te,22,14,"sh-list",25),e(54,"div",39)(55,"button",40),h("click",function(){y(n);let l=g();return b(l.toggleTransfers())}),o(56),t(),P(57,he,3,1,"div",41),t()()()}if(s&2){let n,a,l,d,c=g();r(6),m(c.statusText()),r(4),u("",E(11,13,c.progress(),"1.0-0"),"%"),r(2),p("value",c.progress()),r(6),$("",(n=c.statusData())==null?null:n.ProcessedFileCount," / ",(n=c.statusData())==null?null:n.TotalFileCount),r(5),$(" ",C(24,16,(a=c.statusData())==null?null:a.ProcessedFileSize)," / ",C(25,18,(a=c.statusData())==null?null:a.TotalFileSize)," "),r(11),p("ngIf",(l=c.statusData())==null?null:l.CurrentFilename),r(5),Q(c.recentFiles()),r(2),F(c.recentFiles().length===0?41:-1),r(9),u("",C(51,20,(d=c.statusData())==null?null:d.BackendSpeed),"/s"),r(3),p("ngIf",c.etaData()),r(3),u(" ",c.transfersExpanded()?"Hide Details":"Show Details"," "),r(),p("ngIf",c.transfersExpanded())}}function ye(s,i){if(s&1&&(e(0,"sh-card",75)(1,"div",13)(2,"div",14)(3,"sh-icon",15),o(4,"calendar"),t(),e(5,"h3"),S(6,7),t()()(),e(7,"div",76)(8,"div",77)(9,"span",78),o(10),t(),e(11,"div",79)(12,"span",80),o(13),_(14,"date"),t(),e(15,"span",81),o(16),_(17,"relativeTime"),t()()(),e(18,"sh-icon",82),o(19,"caret-right"),t()()()),s&2){let n,a=g(2);r(10),m((n=a.nextBackup().backup)==null?null:n.Name),r(3),m(E(14,3,a.nextBackup().time,"medium")),r(3),u("(",C(17,6,a.nextBackup().time),")")}}function be(s,i){s&1&&(e(0,"span",74),S(1,8),t())}function Ne(s,i){if(s&1){let n=B();e(0,"sh-card",58)(1,"div",59)(2,"div",60)(3,"div",61),V(),e(4,"svg",62),I(5,"circle",63),t(),j(),e(6,"sh-icon",64),S(7,3),t()()(),e(8,"div",65)(9,"h2"),S(10,4),t(),e(11,"p",66),S(12,5),t()(),e(13,"div",67)(14,"button",68),h("click",function(){y(n);let l=g();return b(l.pauseResume())}),e(15,"sh-icon"),o(16),t(),o(17),t()()()(),P(18,ye,20,8,"sh-card",69),e(19,"sh-card",70)(20,"div",71)(21,"span",20),S(22,6),t(),e(23,"div",72)(24,"span",73),o(25),t(),D(26,be,2,0,"span",74),t()()()}if(s&2){let n,a=g();r(14),p("variant",a.clientIsRunning()?"primary":"secondary"),r(2),m(a.clientIsRunning()?"pause":"play"),r(),u(" ",a.clientIsRunning()?"Pause Execution":"Resume Execution"," "),r(),p("ngIf",a.nextBackup()),r(6),G("running",a.clientIsRunning()),r(),m((n=a.serverState())==null?null:n.ProgramState),r(),F(a.clientIsRunning()?-1:26)}}function Ie(s,i){if(s&1&&(e(0,"div",35)(1,"span",46),o(2),t(),e(3,"span",47),o(4),_(5,"bytes"),t()()),s&2){let n=i.$implicit;r(),p("title",n.filename),r(),m(n.filename),r(2),m(C(5,3,n.filesize))}}function ke(s,i){if(s&1&&(e(0,"sh-card",83)(1,"div",13)(2,"div",14)(3,"sh-icon",15),o(4,"clock-counter-clockwise"),t(),e(5,"h3"),S(6,9),t()()(),e(7,"sh-list"),P(8,Ie,6,5,"div",84),t()()),s&2){let n=g();r(8),p("ngForOf",n.recentFiles())}}function Ae(s,i){if(s&1&&(e(0,"div",19)(1,"span",20),o(2,"Next Task:"),t(),e(3,"div",21)(4,"div"),o(5),t(),e(6,"div",49),o(7),_(8,"date"),_(9,"relativeTime"),t()()()),s&2){let n,a=g();r(5),m((n=a.nextBackup().backup)==null?null:n.Name),r(2),$(" ",E(8,3,a.nextBackup().time,"medium")," (",C(9,6,a.nextBackup().time),") ")}}function Re(s,i){if(s&1){let n=B();Y(0),e(1,"button",85),h("click",function(){y(n);let l=g();return b(l.stop())}),e(2,"sh-icon"),o(3,"stop"),t(),o(4," Stop "),t(),e(5,"button",85),h("click",function(){y(n);let l=g();return b(l.abort())}),e(6,"sh-icon"),o(7,"x-circle"),t(),o(8," Abort "),t(),Z()}}var J=class s{#e=x(z);#n=x(U);#i=x(_e);#r=x(re);statusData=this.#e.statusData;serverState=this.#e.serverState;recentFiles=this.#n.recentFiles;etaData=this.#n.etaData;transfersExpanded=N(!1);clientIsRunning=this.#e.clientIsRunning;statusText=L(()=>{let i=this.statusData()?.Phase;return i?pe[i]||i:""});progress=L(()=>{let i=this.statusData();return i?(i.OverallProgress||0)*100:0});nextBackup=L(()=>({backup:this.serverState()?.ProposedSchedule?.[0]?.backup,time:this.serverState()?.ProposedSchedule?.[0]?.Item2}));ngOnInit(){this.#n.activateView()}ngOnDestroy(){this.#n.deactivateView()}toggleTransfers(){this.transfersExpanded.update(i=>!i)}isTaskRunning(){return!!this.statusData()?.TaskID}taskStartTime(){return this.etaData()?.startTime}currentBackupId(){return this.statusData()?.BackupID}pauseResume(){if(this.clientIsRunning()){this.#r.open(Ce,{maxWidth:"550px",width:"100%"});return}this.#e.pauseResume().subscribe()}stop(){let i=this.statusData()?.TaskID;i&&this.#i.postApiV1TaskByTaskidStop({taskid:i}).subscribe()}abort(){let i=this.statusData()?.TaskID;i&&this.#i.postApiV1TaskByTaskidAbort({taskid:i}).subscribe()}static \u0275fac=function(n){return new(n||s)};static \u0275cmp=H({type:s,selectors:[["app-status"]],decls:29,vars:12,consts:()=>{let i;i=$localize`Live Logs`;let n;n=$localize`Recently Processed`;let a;a=$localize`No recent files`;let l;l=$localize`check-bold`;let d;d=$localize`System Ready`;let c;c=$localize`Waiting for the next scheduled backup task.`;let k;k=$localize`Server State`;let M;M=$localize`Next Scheduled Task`;let O;O=$localize`Backups are currently paused`;let A;return A=$localize`Recent Activity`,[i,n,a,l,d,c,k,M,O,A,[1,"status-page"],["class","activity-card",4,"ngIf"],[1,"logs-card"],[1,"card-header"],[1,"header-titl-group"],[1,"header-icon"],[1,"logs-content"],[3,"polling","whenFilter","backupIdFilter"],[1,"server-status-section"],[1,"status-row"],[1,"label"],[1,"value"],["class","status-row",4,"ngIf"],[1,"actions"],["shButton","",3,"click"],[4,"ngIf"],[1,"progress-content"],[1,"percentage-display"],[1,"percentage-value"],[3,"value"],["item","",1,"stat-item"],[1,"files-content"],["class","current-file-section",4,"ngIf"],[1,"recent-files-section"],[1,"recent-files-list"],["item","",1,"file-item"],["item","",1,"empty-state"],[1,"aggregate-speed"],[1,"performance-content"],[1,"transfers-section"],["shButton","","size","small","variant","ghost",1,"toggle-btn",3,"click"],["class","transfer-details",4,"ngIf"],[1,"current-file-section"],[1,"current-file-list"],["item","",1,"file-item","current"],[1,"file-details"],[1,"filename",3,"title"],[1,"filesize"],["item","",1,"eta-item"],[1,"sub-text"],["item","",1,"metric-item"],[1,"transfer-details"],["class","transfer-item","item","",4,"ngFor","ngForOf"],["item","",1,"transfer-item"],[1,"transfer-header"],[1,"path",3,"title"],[1,"speed"],[1,"mini-progress",3,"value"],[1,"idle-hero-card"],[1,"idle-content"],[1,"status-visual"],[1,"complete-status"],[1,"border-svg"],["cx","50","cy","50","r","45",1,"border-circle"],[1,"status-icon"],[1,"status-info"],[1,"status-description"],[1,"idle-actions"],["shButton","",3,"click","variant"],["class","next-task-hero",4,"ngIf"],[1,"server-state-card"],[1,"state-content"],[1,"state-line"],[1,"status-badge"],[1,"warning-text"],[1,"next-task-hero"],[1,"next-task-content"],[1,"task-main"],[1,"task-name"],[1,"task-time-group"],[1,"task-time"],[1,"task-relative"],[1,"chevron"],[1,"activity-card"],["class","file-item","item","",4,"ngFor","ngForOf"],["shButton","","color","warn",3,"click"]]},template:function(n,a){if(n&1&&(e(0,"div",10),D(1,Ee,58,22)(2,Ne,27,8),P(3,ke,9,1,"sh-card",11),e(4,"sh-card",12)(5,"div",13)(6,"div",14)(7,"sh-icon",15),o(8,"list"),t(),e(9,"h3"),S(10,0),t()()(),e(11,"div",16),I(12,"app-logs-live",17),t()(),e(13,"sh-card")(14,"div",18)(15,"h3"),o(16,"Server Status"),t(),e(17,"div",19)(18,"span",20),o(19,"State:"),t(),e(20,"span",21),o(21),t()(),P(22,Ae,10,8,"div",22),e(23,"div",23)(24,"button",24),h("click",function(){return a.pauseResume()}),e(25,"sh-icon"),o(26),t(),o(27),t(),P(28,Re,9,0,"ng-container",25),t()()()()),n&2){let l,d;G("idle",!a.isTaskRunning()),r(),F(a.isTaskRunning()?1:2),r(2),p("ngIf",!a.isTaskRunning()&&a.recentFiles().length>0),r(9),p("polling",a.isTaskRunning())("whenFilter",(l=a.taskStartTime())==null?null:l.getTime())("backupIdFilter",a.currentBackupId()),r(9),m((d=a.serverState())==null?null:d.ProgramState),r(),p("ngIf",a.nextBackup()),r(4),m(a.clientIsRunning()?"pause":"play_arrow"),r(),u(" ",a.clientIsRunning()?"Pause":"Resume"," "),r(),p("ngIf",a.isTaskRunning())}},dependencies:[ae,ee,te,le,de,se,oe,fe,ce,ie,ne,me,ue],styles:["[_nghost-%COMP%]{display:block;padding:24px;max-width:1400px;margin:0 auto}.status-page[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;gap:24px}@media(min-width:768px){.status-page[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr)}}@media(min-width:1200px){.status-page[_ngcontent-%COMP%]{grid-template-columns:repeat(3,1fr)}}@media(min-width:1200px){.status-page[_ngcontent-%COMP%] .logs-card[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .idle-hero-card[_ngcontent-%COMP%]{grid-column:span 2}.status-page.idle[_ngcontent-%COMP%] .next-task-hero[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .server-state-card[_ngcontent-%COMP%]{grid-column:3}.status-page.idle[_ngcontent-%COMP%] .activity-card[_ngcontent-%COMP%], .status-page.idle[_ngcontent-%COMP%] .logs-card[_ngcontent-%COMP%]{grid-column:1/-1}}sh-card[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;--sh-card-padding: 24px}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--primary-color);font-size:24px}.card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .card-header[_ngcontent-%COMP%] .header-titl-group[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;color:var(--text-primary)}.progress-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.progress-content[_ngcontent-%COMP%] .percentage-display[_ngcontent-%COMP%]{text-align:center}.progress-content[_ngcontent-%COMP%] .percentage-display[_ngcontent-%COMP%] .percentage-value[_ngcontent-%COMP%]{font-size:3rem;font-weight:800;color:var(--primary-color);line-height:1}.progress-content[_ngcontent-%COMP%] sh-progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:4px;--sh-progress-bar-track-color: var(--bg-secondary)}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.9rem}.progress-content[_ngcontent-%COMP%] .stat-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600}.files-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.files-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;color:var(--text-secondary);font-weight:600;margin-bottom:4px;display:block;padding-left:12px}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%]{gap:12px;justify-content:flex-start}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%] sh-icon[_ngcontent-%COMP%]{color:var(--primary-color)}.files-content[_ngcontent-%COMP%] .file-item.current[_ngcontent-%COMP%] .file-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .filename[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px;font-size:.9rem;font-weight:500;flex:1}.files-content[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .filesize[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.85rem;font-variant-numeric:tabular-nums;white-space:nowrap}.files-content[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{color:var(--text-secondary);font-style:italic;text-align:center;width:100%}.performance-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.performance-content[_ngcontent-%COMP%] .aggregate-speed[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:var(--text-primary);font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:.9rem}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .eta-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%], .performance-content[_ngcontent-%COMP%] .metric-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{color:var(--text-secondary);font-weight:400;font-size:.85rem;margin-left:4px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .toggle-btn[_ngcontent-%COMP%]{width:100%;margin-bottom:12px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;gap:4px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.85rem}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%] .path[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:12px}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .transfer-header[_ngcontent-%COMP%] .speed[_ngcontent-%COMP%]{color:var(--text-secondary);font-variant-numeric:tabular-nums}.performance-content[_ngcontent-%COMP%] .transfers-section[_ngcontent-%COMP%] .transfer-item[_ngcontent-%COMP%] .mini-progress[_ngcontent-%COMP%]{height:4px}.logs-content[_ngcontent-%COMP%] app-logs-live[_ngcontent-%COMP%]{height:350px;display:block}.status-badge[_ngcontent-%COMP%]{padding:4px 12px;border-radius:12px;background:var(--bg-secondary);color:var(--text-secondary);font-size:.8rem;font-weight:500;text-transform:uppercase}.status-badge.running[_ngcontent-%COMP%]{background:rgba(var(--primary-rgb),.1);color:var(--primary-color)}.actions-grid[_ngcontent-%COMP%]{margin-top:auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.actions-grid[_ngcontent-%COMP%] .action-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0;gap:32px}@media(min-width:768px){.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%]{flex-direction:row;text-align:left;justify-content:space-around;padding:48px 0}}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-visual[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;margin-bottom:8px;color:var(--text-primary)}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .status-info[_ngcontent-%COMP%] .status-description[_ngcontent-%COMP%]{color:var(--text-secondary);font-size:1.1rem;max-width:300px}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .idle-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.idle-hero-card[_ngcontent-%COMP%] .idle-content[_ngcontent-%COMP%] .idle-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.complete-status[_ngcontent-%COMP%]{position:relative;width:120px;height:120px;display:flex;justify-content:center;align-items:center;color:var(--primary-color)}.complete-status[_ngcontent-%COMP%] .status-icon[_ngcontent-%COMP%]{font-size:48px;opacity:0;animation:_ngcontent-%COMP%_reveal-icon .2s linear forwards;animation-delay:1s}.border-svg[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%}.border-circle[_ngcontent-%COMP%]{fill:none;stroke:var(--primary-color);stroke-width:5px;stroke-dasharray:282.74;stroke-dashoffset:282.74;animation:_ngcontent-%COMP%_draw-border 1.2s linear forwards}@keyframes _ngcontent-%COMP%_draw-border{to{stroke-dashoffset:0}}@keyframes _ngcontent-%COMP%_reveal-icon{to{opacity:1}}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:12px 0}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%] .task-name[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:700;color:var(--primary-color)}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .task-main[_ngcontent-%COMP%] .task-time-group[_ngcontent-%COMP%]{display:flex;flex-direction:column;color:var(--text-secondary);font-size:.95rem}.next-task-hero[_ngcontent-%COMP%] .next-task-content[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{color:var(--text-secondary);opacity:.5}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;color:var(--text-secondary);font-weight:600}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .state-line[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.server-state-card[_ngcontent-%COMP%] .state-content[_ngcontent-%COMP%] .state-line[_ngcontent-%COMP%] .warning-text[_ngcontent-%COMP%]{font-size:.85rem;color:var(--error-color);font-weight:500}"],changeDetection:0})};export{J as default};
package/chunk-T2X5J6MQ.js DELETED
@@ -1 +0,0 @@
1
- import{a as q}from"./chunk-ZK3S23CJ.js";import"./chunk-GO22QPW4.js";import"./chunk-FMDSOHVR.js";import"./chunk-NBKLLQQO.js";import"./chunk-I625OICV.js";import{a as W}from"./chunk-XCVBN7EK.js";import"./chunk-ADB5QRUO.js";import"./chunk-22PELS6R.js";import"./chunk-6Q6SSTBK.js";import"./chunk-MRSBKQQM.js";import"./chunk-7FDLOZXV.js";import"./chunk-EQNDYV43.js";import"./chunk-35APLYI4.js";import"./chunk-LU7TIW3P.js";import"./chunk-YMUS7QSB.js";import"./chunk-ZXQSQRKN.js";import"./chunk-XZNYCTQB.js";import"./chunk-R6TFME5I.js";import"./chunk-AZRNX5LU.js";import{B as P,C as F,G as z,L as H,v as f}from"./chunk-NCXKMSRH.js";import{d as j}from"./chunk-QAQMMCTH.js";import{e as N}from"./chunk-KHZ5AXGT.js";import"./chunk-L2QOWZDR.js";import"./chunk-BRL4YYWO.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import{$b as g,Ab as x,Bb as w,Bc as O,Cb as S,Cc as X,Db as n,Eb as o,Fb as s,Sa as l,Tb as T,Ub as d,Vb as c,Wb as v,Xb as B,Zb as p,_ as u,gb as A,mb as y,nc as m,qc as J,tb as D,ub as G,wb as R,xb as C,yb as b}from"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";var V=()=>[F,P,f,N],K=()=>["/restore-from-files"],Q=()=>["/restore/from-config"],U=t=>["/restore",t];function Y(t,i){if(t&1&&(n(0,"sh-card",10),p("keydown.enter",function(r){return r.target.click()})("keydown.space",function(r){return r.target.click()}),s(1,"img",16),n(2,"div",12)(3,"h3"),c(4,7),o(),n(5,"p"),m(6),o()(),n(7,"button",13),T(8,8),s(9,"sh-icon"),d(),o()()),t&2){let e=i.$implicit;S("routerLink",X(4,U,e.Backup.ID)),l(4),v(e.Backup.Name??"Backup name missing"),B(4),l(2),J(" ",(e.Backup.Metadata==null?null:e.Backup.Metadata.SourceSizeString)??"-"," / ",(e.Backup.Metadata==null?null:e.Backup.Metadata.BackupListCount)??"-"," ")}}function Z(t,i){if(t&1&&x(0,Y,10,6,"sh-card",15,b),t&2){let e=g(2);w(e.backups())}}function ee(t,i){if(t&1&&R(0,Z,2,0),t&2){let e=g();C(e.backups().length?0:-1)}}function te(t,i){t&1&&(n(0,"div",17),s(1,"sh-progress-bar",18),n(2,"div",12)(3,"h3"),c(4,9),o()()())}function ne(t,i){t&1&&(n(0,"sh-divider"),m(1,"Or without a local configuration"),o())}var M=class t{#e=u(W);#t=u(j);backups=this.#e.backups;backupsLoading=this.#e.backupsLoading;ngOnInit(){this.#e.getBackups(!0)}restoreNow(i){this.#t.postApiV1BackupByIdRestore({id:i.Backup?.ID,requestBody:{}})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=A({type:t,selectors:[["app-restore"]],decls:29,vars:6,consts:()=>{let i;i=$localize`Where do you want to restore from?`;let e;e=$localize`Direct restore from backup files`;let r;r=$localize`Point to your backup files and restore from there.`;let E;E=$localize` Start ${"\uFFFD#18\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#18\uFFFD"}:CLOSE_TAG_SH_ICON:`;let _;_=$localize`Restore from configuration`;let h;h=$localize`Load destination from an exported job`;let I;I=$localize` Start ${"\uFFFD#28\uFFFD"}:START_TAG_SH_ICON:play-circle${"\uFFFD/#28\uFFFD"}:CLOSE_TAG_SH_ICON:`;let $;$=$localize`${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let k;k=$localize` Restore ${"\uFFFD#9\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#9\uFFFD"}:CLOSE_TAG_SH_ICON:`;let L;return L=$localize`Loading backups...`,[i,e,r,E,_,h,I,$,k,L,[1,"type-a","actionable",3,"keydown.enter","keydown.space","routerLink"],["src","assets/images/backup.png","alt","","width","48px"],[1,"text"],["shButton","","tabindex","-1"],["src","assets/images/restore.png","alt","","width","48px"],[1,"type-a","actionable",3,"routerLink"],["src","assets/images/folder.png","alt","","width","48px"],[1,"loading-list"],[1,"indeterminate","primary"]]},template:function(e,r){e&1&&(s(0,"app-status-bar"),n(1,"section")(2,"h2"),c(3,0),o(),y(4,ee,1,1)(5,te,5,0),D(6,4,V,null,5),R(8,ne,2,0,"sh-divider"),n(9,"sh-card",10),p("keydown.enter",function(_){return _.target.click()})("keydown.space",function(_){return _.target.click()}),s(10,"img",11),n(11,"div",12)(12,"h3"),c(13,1),o(),n(14,"p"),c(15,2),o()(),n(16,"button",13),T(17,3),s(18,"sh-icon"),d(),o()(),n(19,"sh-card",10),p("keydown.enter",function(_){return _.target.click()})("keydown.space",function(_){return _.target.click()}),s(20,"img",14),n(21,"div",12)(22,"h3"),c(23,4),o(),n(24,"p"),c(25,5),o()(),n(26,"button",13),T(27,6),s(28,"sh-icon"),d(),o()()()),e&2&&(l(6),G(!r.backupsLoading()),l(2),C(r.backups().length?8:-1),l(),S("routerLink",O(4,K)),l(10),S("routerLink",O(5,Q)))},dependencies:[q,F,P,z,f,H,N],styles:["[_nghost-%COMP%]{display:block}h2[_ngcontent-%COMP%]{font:var(--title-30);text-align:center;padding:2rem}section[_ngcontent-%COMP%]{max-width:43.75rem;margin:0 auto;padding:2rem 1rem;display:flex;flex-direction:column;gap:1rem}sh-divider[_ngcontent-%COMP%]{color:var(--base-8)}sh-card[_ngcontent-%COMP%]{display:flex;align-items:center;gap:1rem;--card-padding: 2rem}sh-card[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{flex:1 0;display:flex;flex-direction:column;gap:.25rem}.actionable[_ngcontent-%COMP%]{cursor:pointer}.actionable[_ngcontent-%COMP%]:after{transition:inset .1s linear}.actionable[_ngcontent-%COMP%]:hover{--card-shp: 0}"],changeDetection:0})};export{M as default};
package/chunk-TJNL6F5S.js DELETED
@@ -1 +0,0 @@
1
- import{a}from"./chunk-KHFOQETZ.js";import"./chunk-22PELS6R.js";import"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";export{a as DurationFormatPipe};
package/chunk-U34FLIYL.js DELETED
@@ -1 +0,0 @@
1
- import{a as F}from"./chunk-J5TWEZOP.js";import{a as te}from"./chunk-35APLYI4.js";import{e as ee}from"./chunk-AZRNX5LU.js";import{B as Q,L as Y,w as K,x as W,z as q}from"./chunk-NCXKMSRH.js";import{a as H,d as Z}from"./chunk-QAQMMCTH.js";import{b as U,d as j}from"./chunk-KHZ5AXGT.js";import{$b as s,Ab as b,Bb as k,Cb as m,Db as a,Eb as l,Fb as S,Jb as y,Kb as D,Mb as u,Pa as x,Rc as h,Sa as r,Tb as G,Ub as z,Vb as _,Xc as A,Zb as p,_ as d,da as I,ea as f,gb as E,mc as V,nc as P,oc as L,pa as v,pc as J,vc as X,wb as N,wc as B,xb as T,xc as g}from"./chunk-UH2E7MMT.js";function ae(i,t){if(i&1&&(a(0,"div",11),P(1),l()),i&2){s();let e=g(0);r(),J(" ",e.Message," ")}}function re(i,t){if(i&1&&(a(0,"div"),G(1,1),S(2,"a",15),z(),l()),i&2){let e=s();r(2),m("href",e.downloadLink(),x)}}function le(i,t){if(i&1){let e=u();a(0,"button",14),p("click",function(){I(e);let n=s(),c=g(0);return f(n.doRepair(c.BackupID))}),_(1,2),l()}}function ce(i,t){if(i&1){let e=u();a(0,"button",14),p("click",function(){I(e);let n=s(),c=g(0);return f(n.doDownloadBugreport(c))}),_(1,3),l()}}function _e(i,t){if(i&1&&S(0,"sh-progress-bar",17),i&2){let e,o=s(2);m("value",(e=o.serverState())==null?null:e.UpdateDownloadProgress)}}function se(i,t){if(i&1){let e=u();a(0,"div",11),y(1),_(2,4),D(),a(3,"a",16),P(4),l(),N(5,_e,1,1,"sh-progress-bar",17),a(6,"button",14),p("click",function(){I(e);let n=s();return f(n.doShowUpdate())}),_(7,5),l()()}if(i&2){let e,o,n=s(),c=g(0);r(3),m("href",(e=n.serverState())==null?null:e.UpdateDownloadLink,x),r(),L(c.Message),r(),T(((o=n.serverState())==null?null:o.UpdaterState)==="Downloading"?5:-1)}}function de(i,t){if(i&1){let e=u();a(0,"button",14),p("click",function(){I(e);let n=s(),c=g(0);return f(n.doShowLog(c.BackupID))}),_(1,6),l()}}function Ne(i,t){if(i&1){let e=u();a(0,"button",14),p("click",function(){I(e);let n=s();return f(n.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),_(1,7),l()}}function Te(i,t){if(i&1){let e=u();a(0,"button",14),p("click",function(){I(e);let n=s();return f(n.doShowLink("https://docs.duplicati.com/detailed-descriptions/the-server-database"))}),_(1,8),l()}}var Ce={Error:"error",Warning:"warn",Information:"primary"},M=class i{#e=d(j);#a=d(U);#r=d(q);#t=d(W);#i=d(F);#n=d(Z);#l=d(ee);#o=v(null);serverState=this.#i.serverState;index=A.required();notification=A.required();downloadLink=h(()=>this.#o()||this.notification().DownloadLink||"");deleteNotificationByIndex(){this.#i.deleteNotification(this.index())}deleteAllNotifications(){this.#i.deleteAllNotifications()}getAlertType(t){return t&&Ce[t]||"primary"}doShowLog(t){this.#n.getApiV1BackupByIdIsactive({id:t}).subscribe({next:e=>{this.#e.navigate(["/backup/"+t+"/log"])},error:e=>{if(e.status===404){let o={title:$localize`Error`,message:$localize`The backup is missing, has it been deleted?`,confirmText:$localize`OK`,cancelText:null};parseInt(t)+""!=t&&(o={title:$localize`Error`,message:$localize`The backup was temporary and does not exist anymore, so the log data is lost`,confirmText:$localize`OK`,cancelText:null}),this.#r.open(te,{maxWidth:"550px",width:"100%",data:o})}else this.#t.error($localize`Failed to find backup: `+e.message)}})}doRepair(t){this.#n.postApiV1BackupByIdRepair({id:t}).subscribe({next:()=>{this.#t.success($localize`Backup repaired`),this.#e.navigate(["./"],{onSameUrlNavigation:"reload",relativeTo:this.#a})},error:e=>{this.#t.error($localize`Failed to repair backup: `+e.message)}})}doShowUpdate(){this.#e.navigate(["/about/changelog"])}doShowLink(t){window.open(t,"_blank")}doDownloadBugreport(t){let e=t.Action.slice(19);this.#n.postApiV1AuthIssuetokenByOperation({operation:"bugreport"}).subscribe({next:o=>{if(!o.Token){this.#t.error("Failed to get bug report URL: No token generated");return}let n=H.BASE||"",c=this.#l.xsrfQueryParam(),O=`${location.origin}${n}/api/v1/bugreport/${e}?token=${o.Token}${c?`&${c}`:""}`;t.DownloadLink=O,this.#o.set(O),this.triggerDownload(O)},error:o=>{this.#t.error(`Failed to get bug report URL: ${o.message}`)}})}triggerDownload(t){let e=document.createElement("a");e.href=t,e.download="",e.style.display="none",document.body.appendChild(e);try{e.click()}catch{}document.body.removeChild(e)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=E({type:i,selectors:[["app-notification"]],inputs:{index:[1,"index"],notification:[1,"notification"]},decls:16,vars:12,consts:()=>{let t;t=$localize`Dismiss`;let e;e=$localize` If the backup file was not downloaded automatically, ${"\uFFFD#2\uFFFD"}:START_LINK:right click and choose "Save as …"${"\uFFFD/#2\uFFFD"}:CLOSE_LINK:`;let o;o=$localize`Repair`;let n;n=$localize`Download`;let c;c=$localize`New update found:`;let O;O=$localize`Show Update`;let $;$=$localize`Show Log`;let w;w=$localize` Show Help `;let R;return R=$localize` Show Help `,[t,e,o,n,c,O,$,w,R,["ship-alert-title",""],["ship-alert-content","",1,"content"],[1,"message"],[1,"actions"],["shButton","",1,"small","outlined"],["shButton","",1,"small","outlined",3,"click"],["target","_blank",3,"href"],[3,"href"],[3,"value"]]},template:function(e,o){if(e&1&&(X(0),a(1,"sh-alert")(2,"div",9),P(3),l(),a(4,"div",10),N(5,ae,2,1,"div",11),N(6,re,3,1,"div"),a(7,"div",12),N(8,le,2,0,"button",13),N(9,ce,2,0,"button",13),N(10,se,8,3,"div",11),N(11,de,2,0,"button",13),N(12,Ne,2,0,"button",13),N(13,Te,2,0,"button",13),a(14,"button",14),p("click",function(){return o.deleteNotificationByIndex()}),_(15,0),l()()()()),e&2){let n=B(o.notification());r(),V(o.getAlertType(n.Type)),r(2),L(n.Title),r(2),T(n.Action!=="update:new"&&n.Action!=="update:manual"?5:-1),r(),T(o.downloadLink()?6:-1),r(2),T(n.Message!=null&&n.Message.includes("please run repair")?8:-1),r(),T(n.Action!=null&&n.Action.startsWith("bug-report:created:")&&!o.downloadLink()?9:-1),r(),T(n.Action==="update:new"?10:-1),r(),T(n.Action==="backup:show-log"?11:-1),r(),T(n.Action==="config:issue:unencrypted-database"?12:-1),r(),T(n.Action==="config:issue:windows-folder-used"?13:-1)}},dependencies:[Y,Q,K],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-direction:column;gap:.5rem}.message[_ngcontent-%COMP%]{max-height:12.5rem;overflow:auto}"],changeDetection:0})};var pe=(i,t)=>t.ID;function Ie(i,t){if(i&1&&S(0,"app-notification",1),i&2){let e=t.$implicit,o=t.$index;m("index",o)("notification",e)}}function fe(i,t){i&1&&(a(0,"div",2)(1,"p"),_(2,0),l()())}var ie=class i{#e=d(F);notificationFilterPredicate=A();notifications=h(()=>{let t=this.notificationFilterPredicate()?.predicate,e=this.#e.notifications();return typeof t!="function"?e:e.filter(t)});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=E({type:i,selectors:[["app-notifications"]],inputs:{notificationFilterPredicate:[1,"notificationFilterPredicate"]},decls:3,vars:1,consts:()=>{let t;return t=$localize`No more notifications`,[t,[3,"index","notification"],[1,"notification-list"]]},template:function(e,o){e&1&&b(0,Ie,1,2,"app-notification",1,pe,!1,fe,3,0,"div",2),e&2&&k(o.notifications())},dependencies:[M],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.actions[_ngcontent-%COMP%]{display:flex;gap:.25rem;justify-content:flex-end}.notification-list[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column;gap:1rem;text-align:center}"],changeDetection:0})};export{M as a,ie as b};