@duplicati/ngclient 0.0.213 → 0.0.218

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 (116) hide show
  1. package/assets/sh-bold.woff2 +0 -0
  2. package/assets/sh.woff2 +0 -0
  3. package/{chunk-JMLM4A3C.js → chunk-2C3OMPC2.js} +1 -1
  4. package/{chunk-VCIINZCU.js → chunk-2LDEHODA.js} +1 -1
  5. package/{chunk-TZEOQBIX.js → chunk-3374ABNZ.js} +1 -1
  6. package/{chunk-QAQMMCTH.js → chunk-4KFQXVKU.js} +1 -1
  7. package/chunk-4U5P2NHK.js +1 -0
  8. package/{chunk-YHVGLFWL.js → chunk-53YJLSUR.js} +1 -1
  9. package/{chunk-I625OICV.js → chunk-54IBJBVK.js} +1 -1
  10. package/{chunk-2NLWVJNK.js → chunk-5DB5LJ2V.js} +1 -1
  11. package/{chunk-VI7MBIGT.js → chunk-5Q47XWAA.js} +1 -1
  12. package/chunk-5QCIXYJ2.js +1 -0
  13. package/{chunk-35APLYI4.js → chunk-5TT43ERP.js} +1 -1
  14. package/{chunk-APAWDC4O.js → chunk-5VAN6GVG.js} +1 -1
  15. package/{chunk-3XCT4PYH.js → chunk-6HY2QKBL.js} +1 -1
  16. package/chunk-6LPGVWBH.js +1 -0
  17. package/{chunk-PBYZZEYM.js → chunk-6PPCACHR.js} +1 -1
  18. package/{chunk-Z7CZCI7E.js → chunk-6XWKOOJR.js} +1 -1
  19. package/{chunk-BRL4YYWO.js → chunk-7BK2K5ML.js} +1 -1
  20. package/{chunk-U34FLIYL.js → chunk-7PBEL6UP.js} +1 -1
  21. package/{chunk-L2QOWZDR.js → chunk-AAUAZ76N.js} +1 -1
  22. package/{chunk-EQNDYV43.js → chunk-AC34YYIW.js} +1 -1
  23. package/{chunk-AMSFSVKQ.js → chunk-B7CN4JEV.js} +1 -1
  24. package/{chunk-YGHS3INE.js → chunk-B7PXB6LO.js} +1 -1
  25. package/{chunk-GE3DHZ5E.js → chunk-BOD6INK4.js} +1 -1
  26. package/{chunk-M5RTYP7N.js → chunk-C56RQYG4.js} +1 -1
  27. package/chunk-CL2S4OQ7.js +1 -0
  28. package/{chunk-QQLV7J6T.js → chunk-DJIBS7A6.js} +1 -1
  29. package/{chunk-S3FBC24H.js → chunk-DQISAVUL.js} +1 -1
  30. package/chunk-E3UAEGAI.js +1 -0
  31. package/{chunk-V7UJAXBT.js → chunk-EZZPO6ZZ.js} +1 -1
  32. package/{chunk-MRSBKQQM.js → chunk-FHH444ZI.js} +1 -1
  33. package/{chunk-KHZ5AXGT.js → chunk-G5IUH2UI.js} +1 -1
  34. package/{chunk-J5TWEZOP.js → chunk-GEATZGKK.js} +1 -1
  35. package/{chunk-BDQJFOCO.js → chunk-GIITUFAQ.js} +1 -1
  36. package/chunk-GNMIMW7D.js +1 -0
  37. package/{chunk-VDHWNNO7.js → chunk-GQWUTQIZ.js} +1 -1
  38. package/{chunk-WALKMFYR.js → chunk-HKQDPKTA.js} +1 -1
  39. package/{chunk-LQKECNBH.js → chunk-HN6343SO.js} +1 -1
  40. package/{chunk-CYY7RVDE.js → chunk-HSAIFBZZ.js} +1 -1
  41. package/{chunk-DTIGWCAE.js → chunk-IFZC7RUJ.js} +1 -1
  42. package/{chunk-QRLREAIK.js → chunk-IHNPTBK2.js} +1 -1
  43. package/{chunk-OO32MPRQ.js → chunk-IM6CS76E.js} +1 -1
  44. package/chunk-J6OYVDRR.js +1 -0
  45. package/{chunk-CW43F6WE.js → chunk-JJ5XEJ75.js} +1 -1
  46. package/{chunk-R5OX4JTJ.js → chunk-JNWS5H5A.js} +1 -1
  47. package/{chunk-22PELS6R.js → chunk-KDWGBKDI.js} +1 -1
  48. package/{chunk-SGLY2D7Y.js → chunk-KQR3DEQ4.js} +1 -1
  49. package/{chunk-CFJXIOSV.js → chunk-KTRNTLNO.js} +1 -1
  50. package/{chunk-5L2OOKRZ.js → chunk-LFWCPFV7.js} +1 -1
  51. package/{chunk-KMGGFCBZ.js → chunk-LRZXNEAQ.js} +1 -1
  52. package/{chunk-FSHBOASN.js → chunk-MI3BETEH.js} +1 -1
  53. package/{chunk-AZRNX5LU.js → chunk-MZAGGSG2.js} +1 -1
  54. package/chunk-NFXXT6A3.js +4 -0
  55. package/chunk-NPL5UWFD.js +1 -0
  56. package/{chunk-FMDSOHVR.js → chunk-NXEMSNQO.js} +1 -1
  57. package/{chunk-TPHRU6NP.js → chunk-O42PEGVX.js} +1 -1
  58. package/{chunk-R6TFME5I.js → chunk-O6ZQRIZA.js} +1 -1
  59. package/{chunk-XZNYCTQB.js → chunk-OMOPTBR2.js} +1 -1
  60. package/chunk-OW2XLFBF.js +1 -0
  61. package/{chunk-5FQ5SDPZ.js → chunk-OZDUAVJM.js} +1 -1
  62. package/{chunk-YMUS7QSB.js → chunk-PAXRIMTV.js} +1 -1
  63. package/{chunk-WIE7KXIC.js → chunk-PSISW3DT.js} +1 -1
  64. package/chunk-Q6A652RP.js +1 -0
  65. package/chunk-R3H3RDDJ.js +1 -0
  66. package/chunk-RLWCEUKT.js +1 -0
  67. package/{chunk-T2X5J6MQ.js → chunk-RXWMHEJY.js} +1 -1
  68. package/{chunk-HHDCI6IF.js → chunk-RZTMWVAA.js} +1 -1
  69. package/chunk-S235GCI6.js +1 -0
  70. package/{chunk-7FDLOZXV.js → chunk-S36F6ZJZ.js} +1 -1
  71. package/{chunk-ADB5QRUO.js → chunk-SDKAVOP6.js} +1 -1
  72. package/{chunk-OBF6ZSYT.js → chunk-SRILTSQM.js} +1 -1
  73. package/{chunk-VGBTP4QP.js → chunk-SXNQOAUJ.js} +1 -1
  74. package/{chunk-ZK3S23CJ.js → chunk-TMS3I5A2.js} +1 -1
  75. package/{chunk-GO22QPW4.js → chunk-TSDCJYMP.js} +1 -1
  76. package/{chunk-BLPTBPXV.js → chunk-UOTOQXS3.js} +1 -1
  77. package/{chunk-XAYG4QT7.js → chunk-UT42UQWA.js} +1 -1
  78. package/chunk-V42HCQ3A.js +1 -0
  79. package/chunk-V4NNTODH.js +1 -0
  80. package/{chunk-NBKLLQQO.js → chunk-V6U75SVY.js} +1 -1
  81. package/{chunk-KHFOQETZ.js → chunk-VJ3PK33N.js} +1 -1
  82. package/{chunk-XCVBN7EK.js → chunk-VOHSRCTH.js} +1 -1
  83. package/{chunk-3IZWJV72.js → chunk-X5TRWBWL.js} +1 -1
  84. package/{chunk-EGTYGTQI.js → chunk-X6S2TQ5D.js} +1 -1
  85. package/{chunk-J6WVOYQ6.js → chunk-XZS6HRVR.js} +1 -1
  86. package/{chunk-LU7TIW3P.js → chunk-Y3LMRA5G.js} +1 -1
  87. package/{chunk-3PUCEFO5.js → chunk-Y4TMGQ3H.js} +1 -1
  88. package/{chunk-CQYKOCGO.js → chunk-Y6WYFFBC.js} +1 -1
  89. package/{chunk-OZEGNE5W.js → chunk-YEMKFHRS.js} +1 -1
  90. package/{chunk-DFVPFPMV.js → chunk-YXRM2NKT.js} +2 -2
  91. package/chunk-ZJAQQH7X.js +1 -0
  92. package/chunk-ZXAPMIF3.js +1 -0
  93. package/index.html +2 -2
  94. package/{main-ZP6YWLCN.js → main-57XFFSWO.js} +1 -1
  95. package/package.json +1 -1
  96. package/ship-ui-assets/mcp/components.json +3079 -2415
  97. package/styles-VWVVVLVS.css +1 -0
  98. package/chunk-5REJ6F23.js +0 -1
  99. package/chunk-BME6TJIR.js +0 -1
  100. package/chunk-C5OIC3DB.js +0 -1
  101. package/chunk-EU6N52DH.js +0 -1
  102. package/chunk-IWDA6CMP.js +0 -1
  103. package/chunk-J5VU6VA4.js +0 -1
  104. package/chunk-JLSU6WKG.js +0 -1
  105. package/chunk-LOFKRPRH.js +0 -1
  106. package/chunk-NCXKMSRH.js +0 -1
  107. package/chunk-QUXPHHDZ.js +0 -1
  108. package/chunk-TGZAL6DJ.js +0 -1
  109. package/chunk-TJNL6F5S.js +0 -1
  110. package/chunk-UE37PPYX.js +0 -1
  111. package/chunk-UH2E7MMT.js +0 -4
  112. package/chunk-Y3BYCXUX.js +0 -1
  113. package/chunk-YPWKWP5H.js +0 -1
  114. package/chunk-ZJOUYWI2.js +0 -1
  115. package/chunk-ZXQSQRKN.js +0 -1
  116. package/styles-43GHZ572.css +0 -1
@@ -1 +1 @@
1
- import{a as Q}from"./chunk-QQLV7J6T.js";import{a as B}from"./chunk-LU7TIW3P.js";import{e as j}from"./chunk-AZRNX5LU.js";import{B as H,D as K,H as V,b as D,c as y,d as R,e as $,f as A,j as v,p as k,q as x,r as J,t as X,v as q,w as z}from"./chunk-NCXKMSRH.js";import"./chunk-QAQMMCTH.js";import{d as G}from"./chunk-KHZ5AXGT.js";import"./chunk-L2QOWZDR.js";import"./chunk-BRL4YYWO.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import{Cb as _,Db as t,Eb as i,F as C,Fb as r,Sa as a,Tb as g,Ub as d,Vb as I,Yc as w,Zb as p,_ as u,gb as S,gc as E,hc as M,kc as O,nc as P,oc as b,pa as s,ra as N,wb as T,xb as L}from"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";var U=["passwordInput"];function W(l,n){l&1&&(t(0,"sh-alert",6),I(1,4),i())}var F=new J,f=class l{#e=u(G);#n=u(j);rememberMe=B("rememberMe",!1,!0);failedLogin=s(!1);successLogin=s(!1);isLoading=s(!1);loginForm=F.group({pass:F.control("",R.required),rememberMe:F.control(this.rememberMe())});showPassword=s(!1);passwordInput=w("passwordInput");passwordEffect=N(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??!1),n&&(this.isLoading.set(!0),this.#n.login(n,this.rememberMe()).pipe(C(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=S({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&E(e.passwordInput,U,5),o&2&&M()},decls:23,vars:6,consts:()=>{let n;n=$localize`Enter your password`;let o;o=$localize` Password ${"\uFFFD#9\uFFFD"}:START_LINK:${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#9\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize` Keep me logged in ${"\uFFFD#20\uFFFD\uFFFD/#20\uFFFD"}:TAG_INPUT:`;let h;return h=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],o,e,m,h,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",n,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(o,e){o&1&&(t(0,"form",5),p("submit",function(){return e.submit()}),T(1,W,2,0,"sh-alert",6),t(2,"div",7),r(3,"app-logo"),i(),t(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),g(8,1),t(9,"a",11),r(10,"sh-icon"),i(),d(),i(),r(11,"input",12,0),t(13,"sh-icon",13),p("click",function(){return e.showPassword.set(!e.showPassword())}),P(14),i()(),t(15,"button",14),g(16,2),r(17,"sh-icon"),d(),i()(),t(18,"sh-checkbox",15),g(19,3),r(20,"input",16),d(),i(),t(21,"div",17),r(22,"label",18),i()()()),o&2&&(_("formGroup",e.loginForm),a(),L(e.failedLogin()&&!e.successLogin()?1:-1),a(10),_("type",e.showPassword()?"text":"password"),a(3),b(e.showPassword()?"eye":"eye-slash"),a(),O("loading",e.isLoading()))},dependencies:[X,v,y,D,$,A,x,k,Q,V,q,H,z,K],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"],changeDetection:0})};export{f as default};
1
+ import{a as Q}from"./chunk-DJIBS7A6.js";import{a as B}from"./chunk-Y3LMRA5G.js";import{e as j}from"./chunk-MZAGGSG2.js";import{B as H,D as K,H as V,b as D,c as y,d as R,e as $,f as A,j as v,p as k,q as x,r as J,t as X,v as q,w as z}from"./chunk-E3UAEGAI.js";import"./chunk-4KFQXVKU.js";import{d as G}from"./chunk-G5IUH2UI.js";import"./chunk-AAUAZ76N.js";import"./chunk-7BK2K5ML.js";import"./chunk-GIITUFAQ.js";import"./chunk-MI3BETEH.js";import{Cb as _,Db as t,Eb as i,F as C,Fb as r,Sa as a,Tb as g,Ub as d,Vb as I,Yc as w,Zb as p,_ as u,gb as S,gc as E,hc as M,kc as O,nc as P,oc as b,pa as s,ra as N,wb as T,xb as L}from"./chunk-NFXXT6A3.js";import"./chunk-7CGTOI24.js";var U=["passwordInput"];function W(l,n){l&1&&(t(0,"sh-alert",6),I(1,4),i())}var F=new J,f=class l{#e=u(G);#n=u(j);rememberMe=B("rememberMe",!1,!0);failedLogin=s(!1);successLogin=s(!1);isLoading=s(!1);loginForm=F.group({pass:F.control("",R.required),rememberMe:F.control(this.rememberMe())});showPassword=s(!1);passwordInput=w("passwordInput");passwordEffect=N(()=>{this.failedLogin()&&queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())});ngOnInit(){this.loginForm.controls.rememberMe.valueChanges.subscribe(n=>this.rememberMe.set(n??!1)),queueMicrotask(()=>this.passwordInput()?.nativeElement?.focus())}submit(){let n=this.loginForm.value.pass;this.rememberMe.set(this.loginForm.value.rememberMe??!1),n&&(this.isLoading.set(!0),this.#n.login(n,this.rememberMe()).pipe(C(()=>{this.isLoading.set(!1),this.failedLogin.set(!0)})).subscribe({next:()=>{this.successLogin.set(!0),this.#e.navigate(["/"])}}))}static \u0275fac=function(o){return new(o||l)};static \u0275cmp=S({type:l,selectors:[["app-login"]],viewQuery:function(o,e){o&1&&E(e.passwordInput,U,5),o&2&&M()},decls:23,vars:6,consts:()=>{let n;n=$localize`Enter your password`;let o;o=$localize` Password ${"\uFFFD#9\uFFFD"}:START_LINK:${"\uFFFD#10\uFFFD"}:START_TAG_SH_ICON:question${"\uFFFD/#10\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD/#9\uFFFD"}:CLOSE_LINK:`;let e;e=$localize` Login ${"\uFFFD#17\uFFFD"}:START_TAG_SH_ICON:arrow-right${"\uFFFD/#17\uFFFD"}:CLOSE_TAG_SH_ICON:`;let m;m=$localize` Keep me logged in ${"\uFFFD#20\uFFFD\uFFFD/#20\uFFFD"}:TAG_INPUT:`;let h;return h=$localize` Remember to enter a password, if you can't remember the password open the duplicati client on the machine in question and make sure you open it through the tray icon then go into settings to change the password. `,[["passwordInput",""],o,e,m,h,[3,"submit","formGroup"],["type","warning"],[1,"logo-login"],[1,"inner"],[1,"login-row"],["for","password"],["href","https://docs.duplicati.com/detailed-descriptions/duplicati-access-password","target","_blank","rel","noopener noreferrer"],["name","password","autocomplete","current-password","placeholder",n,"tabindex","1","formControlName","pass",3,"type"],["suffix","",3,"click"],["shButton","","type","submit",1,"raised","primary","login-button"],[1,"raised","primary"],["type","checkbox","id","rememberMe","tabindex","2","formControlName","rememberMe"],[1,"login-row","checkbox"],["for","rememberMe",1,"remember-me"]]},template:function(o,e){o&1&&(t(0,"form",5),p("submit",function(){return e.submit()}),T(1,W,2,0,"sh-alert",6),t(2,"div",7),r(3,"app-logo"),i(),t(4,"div",8)(5,"div",9)(6,"sh-form-field")(7,"label",10),g(8,1),t(9,"a",11),r(10,"sh-icon"),i(),d(),i(),r(11,"input",12,0),t(13,"sh-icon",13),p("click",function(){return e.showPassword.set(!e.showPassword())}),P(14),i()(),t(15,"button",14),g(16,2),r(17,"sh-icon"),d(),i()(),t(18,"sh-checkbox",15),g(19,3),r(20,"input",16),d(),i(),t(21,"div",17),r(22,"label",18),i()()()),o&2&&(_("formGroup",e.loginForm),a(),L(e.failedLogin()&&!e.successLogin()?1:-1),a(10),_("type",e.showPassword()?"text":"password"),a(3),b(e.showPassword()?"eye":"eye-slash"),a(),O("loading",e.isLoading()))},dependencies:[X,v,y,D,$,A,x,k,Q,V,q,H,z,K],styles:["[_nghost-%COMP%]{display:block}form[_ngcontent-%COMP%]{width:100vw;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:1rem}form[_ngcontent-%COMP%] .inner[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{align-self:flex-start}sh-alert[_ngcontent-%COMP%]{max-width:20rem;margin:0 auto}h3[_ngcontent-%COMP%]{font:var(--title-30)}.login-row[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.logo-login[_ngcontent-%COMP%]{top:0;left:0;padding:1.25rem;position:fixed}.login-button[_ngcontent-%COMP%]{padding-left:1.5rem;padding-right:1.5rem}"],changeDetection:0})};export{f as default};
@@ -0,0 +1 @@
1
+ import{aa as Ht,ha as jt,ya as Ci}from"./chunk-GIITUFAQ.js";import{a as Bt}from"./chunk-MI3BETEH.js";import{$a as M,$b as h,$c as $,Ab as Ae,Ac as J,Bb as ke,Bc as ht,Cb as X,Cc as Xe,Db as f,Dc as kt,Eb as v,Fb as ue,Gb as P,Hb as B,Ib as Ee,Kc as _i,Lb as be,Mb as Q,Nb as Vt,Pc as Pt,Qc as oe,Ra as pi,Rc as O,S as lt,Sa as p,U as se,V as Ne,W as je,Wc as re,Xa as Tt,Xc as c,Y as fe,Ya as $e,Yc as Z,Zb as E,_ as C,_a as ge,_b as ve,_c as Ft,ab as fi,ac as H,ad as Rt,ba as di,bb as gi,bc as g,ca as ui,da as F,ea as R,ed as pt,fc as Nt,g as ri,gb as A,gc as le,gd as Lt,ha as Ie,hb as We,hc as te,ia as _e,ib as L,ic as It,ja as Ce,jc as ie,k as ai,kb as G,kc as j,la as ye,lb as me,lc as At,mc as k,nc as y,ob as ct,oc as Pe,pa as _,pb as mi,pc as ne,q as li,qc as dt,ra as N,sa as ze,sb as Ot,sc as qe,ta as xe,tc as Ue,uc as Ye,va as I,vb as K,vc as ut,w as ci,wb as w,wc as de,xb as T,xc as q,yb as Ge,za as hi,zb as vi}from"./chunk-NFXXT6A3.js";import{a as z,b as U,c as si}from"./chunk-7CGTOI24.js";var Ti=(()=>{class n{_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||n)(M(ge),M(I))};static \u0275dir=L({type:n})}return n})(),ot=(()=>{class n extends Ti{static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,features:[G]})}return n})(),Se=new fe(""),tn={provide:Se,useExisting:se(()=>nn),multi:!0},nn=(()=>{class n extends ot{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,i){t&1&&E("change",function(r){return i.onChange(r.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[J([tn]),G]})}return n})(),on={provide:Se,useExisting:se(()=>Oi),multi:!0};function sn(){let n=Bt()?Bt().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var rn=new fe(""),Oi=(()=>{class n extends Ti{_compositionMode;_composing=!1;constructor(e,t,i){super(e,t),this._compositionMode=i,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||n)(M(ge),M(I),M(rn,8))};static \u0275dir=L({type:n,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,i){t&1&&E("input",function(r){return i._handleInput(r.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(r){return i._compositionEnd(r.target.value)})},standalone:!1,features:[J([on]),G]})}return n})();function Gt(n){return n==null||qt(n)===0}function qt(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var we=new fe(""),Te=new fe(""),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])?)*$/,yi=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 Fi(o)}static composeAsync(o){return Ri(o)}};function ln(n){return o=>{if(o.value==null||n==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e<n?{min:{min:n,actual:o.value}}:null}}function cn(n){return o=>{if(o.value==null||n==null)return null;let e=parseFloat(o.value);return!isNaN(e)&&e>n?{max:{max:n,actual:o.value}}:null}}function dn(n){return Gt(n.value)?{required:!0}:null}function un(n){return n.value===!0?null:{required:!0}}function hn(n){return Gt(n.value)||an.test(n.value)?null:{email:!0}}function pn(n){return o=>{let e=o.value?.length??qt(o.value);return e===null||e===0?null:e<n?{minlength:{requiredLength:n,actualLength:e}}:null}}function fn(n){return o=>{let e=o.value?.length??qt(o.value);return e!==null&&e>n?{maxlength:{requiredLength:n,actualLength:e}}:null}}function gn(n){if(!n)return Vi;let o,e;return typeof n=="string"?(e="",n.charAt(0)!=="^"&&(e+="^"),e+=n,n.charAt(n.length-1)!=="$"&&(e+="$"),o=new RegExp(e)):(e=n.toString(),o=n),t=>{if(Gt(t.value))return null;let i=t.value;return o.test(i)?null:{pattern:{requiredPattern:e,actualValue:i}}}}function Vi(n){return null}function Ni(n){return n!=null}function Ii(n){return mi(n)?ai(n):n}function Ai(n){let o={};return n.forEach(e=>{o=e!=null?z(z({},o),e):o}),Object.keys(o).length===0?null:o}function ki(n,o){return o.map(e=>e(n))}function mn(n){return!n.validate}function Pi(n){return n.map(o=>mn(o)?o:e=>o.validate(e))}function Fi(n){if(!n)return null;let o=n.filter(Ni);return o.length==0?null:function(e){return Ai(ki(e,o))}}function Ut(n){return n!=null?Fi(Pi(n)):null}function Ri(n){if(!n)return null;let o=n.filter(Ni);return o.length==0?null:function(e){let t=ki(e,o).map(Ii);return ci(t).pipe(li(Ai))}}function Yt(n){return n!=null?Ri(Pi(n)):null}function bi(n,o){return n===null?[o]:Array.isArray(n)?[...n,o]:[n,o]}function Li(n){return n._rawValidators}function Bi(n){return n._rawAsyncValidators}function zt(n){return n?Array.isArray(n)?n:[n]:[]}function gt(n,o){return Array.isArray(n)?n.includes(o):n===o}function Di(n,o){let e=zt(o);return zt(n).forEach(i=>{gt(e,i)||e.push(i)}),e}function Si(n,o){return zt(o).filter(e=>!gt(n,e))}var mt=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=Ut(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=Yt(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}},ee=class extends mt{name;get formDirective(){return null}get path(){return null}},he=class extends mt{_parent=null;name=null;valueAccessor=null},vt=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 Ir=(()=>{class n extends vt{constructor(e){super(e)}static \u0275fac=function(t){return new(t||n)(M(he,2))};static \u0275dir=L({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){t&2&&j("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[G]})}return n})(),Ar=(()=>{class n extends vt{constructor(e){super(e)}static \u0275fac=function(t){return new(t||n)(M(ee,10))};static \u0275dir=L({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,i){t&2&&j("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[G]})}return n})();var Qe="VALID",ft="INVALID",Fe="PENDING",Ke="DISABLED",De=class{},_t=class extends De{value;source;constructor(o,e){super(),this.value=o,this.source=e}},Je=class extends De{pristine;source;constructor(o,e){super(),this.pristine=o,this.source=e}},et=class extends De{touched;source;constructor(o,e){super(),this.touched=o,this.source=e}},Re=class extends De{status;source;constructor(o,e){super(),this.status=o,this.source=e}},Ct=class extends De{source;constructor(o){super(),this.source=o}},it=class extends De{source;constructor(o){super(),this.source=o}};function Xt(n){return(St(n)?n.validators:n)||null}function vn(n){return Array.isArray(n)?Ut(n):n||null}function Qt(n,o){return(St(o)?o.asyncValidators:n)||null}function _n(n){return Array.isArray(n)?Yt(n):n||null}function St(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function Hi(n,o,e){let t=n.controls;if(!(o?Object.keys(t):t).length)throw new lt(1e3,"");if(!t[e])throw new lt(1001,"")}function ji(n,o,e){n._forEachChild((t,i)=>{if(e[i]===void 0)throw new lt(1002,"")})}var Le=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 oe(this.statusReactive)}set status(o){oe(()=>this.statusReactive.set(o))}_status=O(()=>this.statusReactive());statusReactive=_(void 0);get valid(){return this.status===Qe}get invalid(){return this.status===ft}get pending(){return this.status==Fe}get disabled(){return this.status===Ke}get enabled(){return this.status!==Ke}errors;get pristine(){return oe(this.pristineReactive)}set pristine(o){oe(()=>this.pristineReactive.set(o))}_pristine=O(()=>this.pristineReactive());pristineReactive=_(!0);get dirty(){return!this.pristine}get touched(){return oe(this.touchedReactive)}set touched(o){oe(()=>this.touchedReactive.set(o))}_touched=O(()=>this.touchedReactive());touchedReactive=_(!1);get untouched(){return!this.touched}_events=new ri;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(Di(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(Di(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(Si(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(Si(o,this._rawAsyncValidators))}hasValidator(o){return gt(this._rawValidators,o)}hasAsyncValidator(o){return gt(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(U(z({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new et(!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(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:o.emitEvent,sourceControl:t})}),o.onlySelf||this._parent?._updateTouched(o,t),e&&o.emitEvent!==!1&&this._events.next(new et(!1,t))}markAsDirty(o={}){let e=this.pristine===!0;this.pristine=!1;let t=o.sourceControl??this;o.onlySelf||this._parent?.markAsDirty(U(z({},o),{sourceControl:t})),e&&o.emitEvent!==!1&&this._events.next(new Je(!1,t))}markAsPristine(o={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=o.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:o.emitEvent})}),o.onlySelf||this._parent?._updatePristine(o,t),e&&o.emitEvent!==!1&&this._events.next(new Je(!0,t))}markAsPending(o={}){this.status=Fe;let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new Re(this.status,e)),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.markAsPending(U(z({},o),{sourceControl:e}))}disable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Ke,this.errors=null,this._forEachChild(i=>{i.disable(U(z({},o),{onlySelf:!0}))}),this._updateValue();let t=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new _t(this.value,t)),this._events.next(new Re(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(U(z({},o),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(o={}){let e=this._parentMarkedDirty(o.onlySelf);this.status=Qe,this._forEachChild(t=>{t.enable(U(z({},o),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors(U(z({},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===Qe||this.status===Fe)&&this._runAsyncValidator(t,o.emitEvent)}let e=o.sourceControl??this;o.emitEvent!==!1&&(this._events.next(new _t(this.value,e)),this._events.next(new Re(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),o.onlySelf||this._parent?.updateValueAndValidity(U(z({},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()?Ke:Qe}_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(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{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,i)=>t&&t._find(i),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 Re(this.status,e)),this._parent&&this._parent._updateControlsErrors(o,e,t)}_initObservables(){this.valueChanges=new ye,this.statusChanges=new ye}_calculateStatus(){return this._allControlsDisabled()?Ke:this.errors?ft:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Fe)?Fe:this._anyControlsHaveStatus(ft)?ft:Qe}_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(),i=this.pristine!==t;this.pristine=t,o.onlySelf||this._parent?._updatePristine(o,e),i&&this._events.next(new Je(this.pristine,e))}_updateTouched(o={},e){this.touched=this._anyControlsTouched(),this._events.next(new et(this.touched,e)),o.onlySelf||this._parent?._updateTouched(o,e)}_onDisabledChange=[];_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){St(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)}},Be=class extends Le{constructor(o,e,t){super(Xt(e),Qt(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 i=this.controls[t];i&&i.patchValue(o[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o={},e={}){this._forEachChild((t,i)=>{t.reset(o?o[i]:null,U(z({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new it(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,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(o,e){let t=o;return this._forEachChild((i,s)=>{t=e(t,i,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 $t=class extends Be{};var Oe=new fe("",{factory:()=>st}),st="always";function Mt(n,o){return[...o.path,n]}function nt(n,o,e=st){Kt(n,o),o.valueAccessor.writeValue(n.value),(n.disabled||e==="always")&&o.valueAccessor.setDisabledState?.(n.disabled),yn(n,o),Dn(n,o),bn(n,o),Cn(n,o)}function yt(n,o,e=!0){let t=()=>{};o?.valueAccessor?.registerOnChange(t),o?.valueAccessor?.registerOnTouched(t),Dt(n,o),n&&(o._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function bt(n,o){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(o)})}function Cn(n,o){if(o.valueAccessor.setDisabledState){let e=t=>{o.valueAccessor.setDisabledState(t)};n.registerOnDisabledChange(e),o._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}function Kt(n,o){let e=Li(n);o.validator!==null?n.setValidators(bi(e,o.validator)):typeof e=="function"&&n.setValidators([e]);let t=Bi(n);o.asyncValidator!==null?n.setAsyncValidators(bi(t,o.asyncValidator)):typeof t=="function"&&n.setAsyncValidators([t]);let i=()=>n.updateValueAndValidity();bt(o._rawValidators,i),bt(o._rawAsyncValidators,i)}function Dt(n,o){let e=!1;if(n!==null){if(o.validator!==null){let i=Li(n);if(Array.isArray(i)&&i.length>0){let s=i.filter(r=>r!==o.validator);s.length!==i.length&&(e=!0,n.setValidators(s))}}if(o.asyncValidator!==null){let i=Bi(n);if(Array.isArray(i)&&i.length>0){let s=i.filter(r=>r!==o.asyncValidator);s.length!==i.length&&(e=!0,n.setAsyncValidators(s))}}}let t=()=>{};return bt(o._rawValidators,t),bt(o._rawAsyncValidators,t),e}function yn(n,o){o.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&zi(n,o)})}function bn(n,o){o.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&zi(n,o),n.updateOn!=="submit"&&n.markAsTouched()})}function zi(n,o){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Dn(n,o){let e=(t,i)=>{o.valueAccessor.writeValue(t),i&&o.viewToModelUpdate(t)};n.registerOnChange(e),o._registerOnDestroy(()=>{n._unregisterOnChange(e)})}function $i(n,o){n==null,Kt(n,o)}function Sn(n,o){return Dt(n,o)}function Zt(n,o){if(!n.hasOwnProperty("model"))return!1;let e=n.model;return e.isFirstChange()?!0:!Object.is(o,e.currentValue)}function Mn(n){return Object.getPrototypeOf(n.constructor)===ot}function Wi(n,o){n._syncPendingControls(),o.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function Jt(n,o){if(!o)return null;Array.isArray(o);let e,t,i;return o.forEach(s=>{s.constructor===Oi?e=s:Mn(s)?t=s:i=s}),i||t||e||null}function xn(n,o){let e=n.indexOf(o);e>-1&&n.splice(e,1)}var En={provide:ee,useExisting:se(()=>wn)},Ze=Promise.resolve(),wn=(()=>{class n extends ee{callSetDisabledState;get submitted(){return oe(this.submittedReactive)}_submitted=O(()=>this.submittedReactive());submittedReactive=_(!1);_directives=new Set;form;ngSubmit=new ye;options;constructor(e,t,i){super(),this.callSetDisabledState=i,this.form=new Be({},Ut(e),Yt(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Ze.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),nt(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Ze.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Ze.then(()=>{let t=this._findContainer(e.path),i=new Be({});$i(i,e),t.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Ze.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Ze.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 Ct(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||n)(M(we,10),M(Te,10),M(Oe,8))};static \u0275dir=L({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){t&1&&E("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[J([En]),G]})}return n})();function Mi(n,o){let e=n.indexOf(o);e>-1&&n.splice(e,1)}function xi(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var tt=class extends Le{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(o=null,e,t){super(Xt(e),Qt(t,e)),this._applyFormState(o),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),St(e)&&(e.nonNullable||e.initialValueIsDefault)&&(xi(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 it(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){xi(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 Tn=n=>n instanceof tt,On=(()=>{class n extends ee{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Mt(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(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,standalone:!1,features:[G]})}return n})();var Vn={provide:he,useExisting:se(()=>xt)},Ei=Promise.resolve(),xt=(()=>{class n extends he{_changeDetectorRef;callSetDisabledState;control=new tt;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new ye;constructor(e,t,i,s,r,a){super(),this._changeDetectorRef=r,this.callSetDisabledState=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=Jt(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),Zt(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(){nt(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){Ei.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,i=t!==0&&pt(t);Ei.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Mt(e,this._parent):[e]}static \u0275fac=function(t){return new(t||n)(M(ee,9),M(we,10),M(Te,10),M(Se,10),M(Rt,8),M(Oe,8))};static \u0275dir=L({type:n,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:[J([Vn]),G,ze]})}return n})();var Pr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=L({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})(),Nn={provide:Se,useExisting:se(()=>In),multi:!0},In=(()=>{class n extends ot{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(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){t&1&&E("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[J([Nn]),G]})}return n})(),An={provide:Se,useExisting:se(()=>Pn),multi:!0};var kn=(()=>{class n{_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||n)};static \u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Pn=(()=>{class n extends ot{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=C(Oe,{optional:!0})??st;constructor(e,t,i,s){super(e,t),this._registry=i,this._injector=s}ngOnInit(){this._control=this._injector.get(he),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||n)(M(ge),M(I),M(kn),M(Ie))};static \u0275dir=L({type:n,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,i){t&1&&E("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[J([An]),G]})}return n})(),Fn={provide:Se,useExisting:se(()=>Rn),multi:!0},Rn=(()=>{class n extends ot{writeValue(e){this.setProperty("value",parseFloat(e))}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,i){t&1&&E("change",function(r){return i.onChange(r.target.value)})("input",function(r){return i.onChange(r.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[J([Fn]),G]})}return n})(),Wt=class extends Le{constructor(o,e,t){super(Xt(e),Qt(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 i=this._adjustIndex(o);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),e&&(this.controls.splice(i,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,i)=>{Hi(this,!1,i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(o,e={}){o!=null&&(o.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(o=[],e={}){this._forEachChild((t,i)=>{t.reset(o[i],U(z({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new it(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 n extends ee{callSetDisabledState;get submitted(){return oe(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=O(()=>this._submittedReactive());_submittedReactive=_(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,t,i){super(),this.callSetDisabledState=i,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&&(Dt(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 nt(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){yt(e.control||null,e,!1),xn(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 Ct(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,i=this.form.get(e.path);t!==i&&(yt(t||null,e),Tn(i)&&(nt(i,e,this.callSetDisabledState),e.control=i))}),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(){Kt(this.form,this),this._oldForm&&Dt(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(t){return new(t||n)(M(we,10),M(Te,10),M(Oe,8))};static \u0275dir=L({type:n,features:[G,ze]})}return n})();var ei=new fe(""),Ln={provide:he,useExisting:se(()=>Bn)},Bn=(()=>{class n extends he{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new ye;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,i,s,r){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=r,this._setValidators(e),this._setAsyncValidators(t),this.valueAccessor=Jt(this,i)}ngOnChanges(e){if(this._isControlChanged(e)){let t=e.form.previousValue;t&&yt(t,this,!1),nt(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Zt(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&yt(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||n)(M(we,10),M(Te,10),M(Se,10),M(ei,8),M(Oe,8))};static \u0275dir=L({type:n,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[J([Ln]),G,ze]})}return n})(),Hn={provide:ee,useExisting:se(()=>qi)},qi=(()=>{class n extends On{name=null;constructor(e,t,i){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(i)}_checkParentType(){Yi(this._parent)}static \u0275fac=function(t){return new(t||n)(M(ee,13),M(we,10),M(Te,10))};static \u0275dir=L({type:n,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[J([Hn]),G]})}return n})(),jn={provide:ee,useExisting:se(()=>Ui)},Ui=(()=>{class n extends ee{_parent;name=null;constructor(e,t,i){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(i)}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 Mt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(t){return new(t||n)(M(ee,13),M(we,10),M(Te,10))};static \u0275dir=L({type:n,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[J([jn]),G]})}return n})();function Yi(n){return!(n instanceof qi)&&!(n instanceof Gi)&&!(n instanceof Ui)}var zn={provide:he,useExisting:se(()=>$n)},$n=(()=>{class n extends he{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new ye;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,i,s,r){super(),this._ngModelWarningConfig=r,this._parent=e,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=Jt(this,s)}ngOnChanges(e){this._added||this._setUpControl(),Zt(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 Mt(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||n)(M(ee,13),M(we,10),M(Te,10),M(Se,10),M(ei,8))};static \u0275dir=L({type:n,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[J([zn]),G,ze]})}return n})();var Wn={provide:ee,useExisting:se(()=>Gn)},Gn=(()=>{class n extends Gi{form=null;ngSubmit=new ye;get control(){return this.form}static \u0275fac=(()=>{let e;return function(i){return(e||(e=xe(n)))(i||n)}})();static \u0275dir=L({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){t&1&&E("submit",function(r){return i.onSubmit(r)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[J([Wn]),G]})}return n})();var Xi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=We({type:n});static \u0275inj=je({})}return n})();function wi(n){return!!n&&(n.asyncValidators!==void 0||n.validators!==void 0||n.updateOn!==void 0)}var Fr=(()=>{class n{useNonNullable=!1;get nonNullable(){let e=new n;return e.useNonNullable=!0,e}group(e,t=null){let i=this._reduceControls(e),s={};return wi(t)?s=t:t!==null&&(s.validators=t.validator,s.asyncValidators=t.asyncValidator),new Be(i,s)}record(e,t=null){let i=this._reduceControls(e);return new $t(i,t)}control(e,t,i){let s={};return this.useNonNullable?(wi(t)?s=t:(s.validators=t,s.asyncValidators=i),new tt(e,U(z({},s),{nonNullable:!0}))):new tt(e,t,i)}array(e,t,i){let s=e.map(r=>this._createControl(r));return new Wt(s,t,i)}_reduceControls(e){let t={};return Object.keys(e).forEach(i=>{t[i]=this._createControl(e[i])}),t}_createControl(e){if(e instanceof tt)return e;if(e instanceof Le)return e;if(Array.isArray(e)){let t=e[0],i=e.length>1?e[1]:null,s=e.length>2?e[2]:null;return this.control(t,i,s)}else return this.control(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Rr=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:Oe,useValue:e.callSetDisabledState??st}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=We({type:n});static \u0275inj=je({imports:[Xi]})}return n})(),Lr=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:ei,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:Oe,useValue:e.callSetDisabledState??st}]}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=We({type:n});static \u0275inj=je({imports:[Xi]})}return n})();var ae=["*"],qn=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["button"]],[["","actions",""]],[["","content",""]],[["p"]]],Un=["[icon]","sh-icon","[title]","*","button","[actions]","[content]","p"];function Yn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"info"),v())}function Xn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"info"),v())}function Qn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"warning"),v())}function Kn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"warning-octagon"),v())}function Zn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"check-circle"),v())}function Jn(n,o){n&1&&(f(0,"sh-icon",3),y(1,"question"),v())}function eo(n,o){if(n&1){let e=Q();f(0,"sh-icon",8),E("click",function(){F(e);let i=h();return R(i.removeAlert())}),y(1,"plus"),v()}}var to=["dialogRef"];function io(n,o){if(n&1){let e=Q();P(0,"div",5),ve("click",function(){F(e);let i=h(2);return R(i.isOpen.set(!1))}),B()}}function no(n,o){if(n&1&&(P(0,"dialog",2,0)(2,"div",3),g(3),B(),w(4,io,1,0,"div",4),B()),n&2){let e=h(),t=q(0);k(t.class),ie("width",t.width??"")("max-width",t.maxWidth??"")("max-height",t.maxHeight??"")("height",t.height??""),p(4),T(e.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var oo=["shButton",""],ti=["internalInput"];function so(n,o){if(n&1){let e=Q();f(0,"input",6,0),E("change",function(i){F(e);let s=h();return R(s.onInternalInputChange(i))}),v()}if(n&2){let e=h();X("checked",e.checked()),K("disabled",e.disabled()?"":null)}}var ro=["triggerRef"],ao=["popoverRef"],lo=["popoverContentRef"],co=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],uo=["[trigger]","button","[shButton]","*"];function ho(n,o){if(n&1){let e=Q();P(0,"div",6,1)(2,"div",7),ve("click",function(i){F(e);let s=h();return R(s.eventClose(i))}),B(),P(3,"div",8,2),g(5,3),B()()}if(n&2){let e=h();K("id",e.id()+"hello"),p(3),At(e.menuStyle()),ie("position-anchor",e.id())}}var po=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","popoverContent",""]],[["","error",""]],[["","hint",""]]],fo=["label","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[popoverContent]","[error]","[hint]"],Qi=()=>({closeOnButton:!1,closeOnEsc:!0}),go=[[["label"]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["","textSuffix",""]],[["","suffix",""]]],mo=["label","[prefix]","[textPrefix]","input","[textSuffix]","[suffix]"];var vo=["daysRef"];function _o(n,o){if(n&1&&y(0),n&2){let e=h();ne(" - ",e.getMonthName(e.getLastVisibleMonth())," ")}}function Co(n,o){if(n&1&&(f(0,"div"),y(1),v()),n&2){let e=o.$implicit;p(),Pe(e)}}function yo(n,o){if(n&1){let e=Q();f(0,"div",2,1),E("click",function(){let i=F(e).$implicit,s=It(1),r=h(2);return R(r.setDate(i,s))}),y(2),v()}if(n&2){let e=o.$implicit,t=h().$implicit,i=h();k(i.isDateSelected(e)),j("out-of-scope",!i.isCurrentMonth(e,t)),p(2),ne(" ",e.getDate()," ")}}function bo(n,o){if(n&1&&(f(0,"article",7),ue(1,"div",9),v()),n&2){let e=h(2);p(),At(e.selectedDateStylePosition())}}function Do(n,o){if(n&1&&(f(0,"div",5)(1,"nav",6),Ae(2,Co,2,1,"div",null,Ge),v(),f(4,"div",7,0),Ae(6,yo,3,5,"div",8,Ge),w(8,bo,2,2,"article",7),v()()),n&2){let e=o.$implicit,t=h();p(2),ke(t.weekdays()),p(4),ke(t.getMonthDates(e)),p(2),T(t.asRange()?-1:8)}}function So(n,o){if(n&1&&(f(0,"div",3),y(1),v()),n&2){let e=h();p(),ne(" ",e._maskedDate()," ")}}function Mo(n,o){if(n&1){let e=Q();f(0,"sh-datepicker",7),E("dateChange",function(i){F(e);let s=h();return R(s.onDateChange(i))}),v()}if(n&2){let e=h();k(e.currentClass()),X("date",e.internalDate())}}function xo(n,o){}var Eo=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],wo=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],To=["input"],Oo=[[["label"]]],Vo=["label"];function No(n,o){if(n&1&&(f(0,"div",3),y(1),v()),n&2){let e=h();p(),Pe(e.files()[0].name)}}function Io(n,o){if(n&1&&(f(0,"div",3),y(1),v()),n&2){let e=h();p(),ne("",e.files().length," files selected")}}function Ao(n,o){if(n&1&&(f(0,"div",4),y(1),v()),n&2){let e=h();p(),Pe(e.filesOver()?e.overlayText():e.placeholder())}}var ko=["inputRef"],Po=["optionsRef"],Fo=["*",[["","menu",""]]],Ro=["*","[menu]"];function Lo(n,o){n&1&&(f(0,"sh-icon",5),y(1,"caret-down"),v())}function Bo(n,o){if(n&1){let e=Q();P(0,"input",3,0),ve("change",function(i){F(e);let s=h();return R(s.onInternalInputChange(i))}),B()}if(n&2){let e=h();Vt("checked",e.checked()),K("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=(n,o)=>({$implicit:n,last:o}),Et=n=>({$implicit:n});function qo(n,o){if(n&1&&y(0),n&2){let e=h();ne(" ",e.inputValue()," ")}}function Uo(n,o){n&1&&be(0)}function Yo(n,o){if(n&1&&me(0,Uo,1,0,"ng-container",13),n&2){let e=h(3),t=e.$implicit,i=e.$index,s=e.$count;h(2);let r=q(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",kt(2,Ki,t,i===s-1))}}function Xo(n,o){if(n&1&&y(0),n&2){let e=h(3).$implicit,t=h(2);ne(" ",t.getLabel(e)," ")}}function Qo(n,o){if(n&1){let e=Q();f(0,"sh-chip",12),E("click",function(i){F(e);let s=h(2).$index,r=h(2);return R(r.removeSelectedOptionByIndex(i,s))}),w(1,Yo,1,5,"ng-container")(2,Xo,1,1),f(3,"sh-icon"),y(4,"x-bold"),v()()}if(n&2){let e=h(4),t=q(3);k(e.selectClasses()),p(),T(t?1:2)}}function Ko(n,o){n&1&&be(0)}function Zo(n,o){if(n&1&&me(0,Ko,1,0,"ng-container",13),n&2){let e=h(4),t=e.$implicit,i=e.$index,s=e.$count;h(2);let r=q(3);X("ngTemplateOutlet",r)("ngTemplateOutletContext",kt(2,Ki,t,i===s-1))}}function Jo(n,o){if(n&1&&y(0),n&2){let e=h(4),t=e.$implicit,i=e.$index,s=e.$count,r=h(2);ne(" ",i===s-1?r.getLabel(t):r.getLabel(t)+","," ")}}function es(n,o){if(n&1&&w(0,Zo,1,5,"ng-container")(1,Jo,1,1),n&2){h(5);let e=q(3);T(e?0:1)}}function ts(n,o){if(n&1&&w(0,es,2,1),n&2){h(4);let e=q(6);T(e?-1:0)}}function is(n,o){if(n&1&&w(0,Qo,5,3,"sh-chip",11)(1,ts,1,1),n&2){h(3);let e=q(5);T(e?0:1)}}function ns(n,o){if(n&1&&w(0,is,2,1),n&2){let e=o.$implicit;T(e?0:-1)}}function os(n,o){if(n&1&&Ae(0,ns,1,1,null,null,Ge),n&2){h();let e=q(2);ke(e)}}function ss(n,o){n&1&&be(0)}function rs(n,o){if(n&1&&me(0,ss,1,0,"ng-container",14),n&2){h(2);let e=q(0);X("ngTemplateOutlet",e)}}function as(n,o){if(n&1&&y(0),n&2){let e=h(2);ne(" ",e.placeholderText()??""," ")}}function ls(n,o){if(n&1&&w(0,rs,1,1,"ng-container")(1,as,1,1),n&2){h();let e=q(0);T(e?0:1)}}function cs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"caret-down"),v())}function ds(n,o){n&1&&ue(0,"sh-spinner",7)}function us(n,o){n&1&&(f(0,"sh-icon",6),y(1,"list-magnifying-glass"),v())}function hs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"magnifying-glass"),v())}function ps(n,o){if(n&1){let e=Q();f(0,"sh-icon",15),E("click",function(i){F(e);let s=h();return R(s.clear(i))}),y(1,"x-bold"),v()}}function fs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"caret-down"),v())}function gs(n,o){n&1&&(f(0,"sh-icon",6),y(1,"caret-up"),v())}function ms(n,o){if(n&1&&(f(0,"p",9),y(1),v()),n&2){let e=h(3);p(),Pe(e.freeTextTitle())}}function vs(n,o){n&1&&be(0)}function _s(n,o){if(n&1&&me(0,vs,1,0,"ng-container",13),n&2){h(2);let e=q(0);h();let t=q(1);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Xe(2,Et,e))}}function Cs(n,o){n&1&&be(0)}function ys(n,o){if(n&1&&me(0,Cs,1,0,"ng-container",13),n&2){h(2);let e=q(0);h();let t=q(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Xe(2,Et,e))}}function bs(n,o){if(n&1&&y(0),n&2){h(2);let e=q(1);ne(" ",e," ")}}function Ds(n,o){n&1&&ue(0,"sh-divider")}function Ss(n,o){if(n&1){let e=Q();w(0,ms,2,1,"p",9),f(1,"li",16),E("click",function(){F(e);let i=h(2);return R(i.toggleOptionByIndex(-1))}),w(2,_s,1,4,"ng-container")(3,ys,1,4,"ng-container")(4,bs,1,1),v(),w(5,Ds,1,0,"sh-divider")}if(n&2){h();let e=q(0),t=h(),i=q(1),s=q(4);T(t.freeTextTitle()?0:-1),p(),j("selected",t.isSelected(-1))("focused",t.focusedOptionIndex()===-1),X("id",t.getLabelAsSlug(e)),K("aria-selected",t.isSelected(-1)),p(),T(i?2:s?3:4),p(3),T(t.freeTextTitle()&&t.filteredOptions().length>0?5:-1)}}function Ms(n,o){if(n&1&&(ut(0)(1),w(2,Ss,6,9)),n&2){let e=h(),t=de(e.computedFreeTextOption());p();let i=de(e.getValue(t));p(),T(i.length>0?2:-1)}}function xs(n,o){if(n&1&&(f(0,"p",9),y(1),v()),n&2){let e=h();p(),Pe(e.optionTitle())}}function Es(n,o){if(n&1&&ue(0,"sh-checkbox",18),n&2){let e=h().$index,t=h();k(t.selectClasses()),X("checked",t.isSelected(e))}}function ws(n,o){n&1&&be(0)}function Ts(n,o){if(n&1&&me(0,ws,1,0,"ng-container",13),n&2){let e=h().$implicit;h();let t=q(4);X("ngTemplateOutlet",t)("ngTemplateOutletContext",Xe(2,Et,e))}}function Os(n,o){if(n&1&&y(0),n&2){let e=h().$implicit,t=h();ne(" ",t.getLabel(e)," ")}}function Vs(n,o){if(n&1){let e=Q();f(0,"li",16),E("click",function(){let i=F(e).$index,s=h();return R(s.toggleOptionByIndex(i))}),w(1,Es,1,3,"sh-checkbox",17),w(2,Ts,1,4,"ng-container")(3,Os,1,1),v()}if(n&2){let e=o.$implicit,t=o.$index,i=h(),s=q(4);j("selected",i.isSelected(t))("focused",t===i.focusedOptionIndex()),X("id",i.getLabelAsSlug(e)),K("aria-selected",i.isSelected(t)),p(),T(i.selectMultiple()?1:-1),p(),T(s?2:3)}}var Ns=["dragImageElement"],Is=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],As=["[sidenav]","[sidenav-closed-topbar]","*"];function ks(n,o){n&1&&Ee(0,"div",1,0)}function Ps(n,o){if(n&1){let e=Q();P(0,"div",7),ve("drop",function(i){F(e);let s=h();return R(s.drop(i))})("dragenter",function(){F(e);let i=h();return R(i.dragEnter())})("dragleave",function(){F(e);let i=h();return R(i.dragLeave())}),B()}}function Fs(n,o){if(n&1){let e=Q();P(0,"div",8),ve("dragstart",function(i){F(e);let s=h();return R(s.dragStart(i))})("dragend",function(i){F(e);let s=h();return R(s.dragEnd(i))})("drag",function(i){F(e);let s=h();return R(s.drag(i))})("touchstart",function(i){F(e);let s=h();return R(s.touchStart(i))})("touchmove",function(i){F(e);let s=h();return R(s.touchMove(i))})("touchend",function(i){F(e);let s=h();return R(s.touchEnd(i))})("touchcancel",function(i){F(e);let s=h();return R(s.touchCancel(i))}),B()}}var Rs=["thead"],Ls=["tbody"],Bs=[[["","actionbar",""]],[["th"]],[["","thead",""]],"*",[["","table-no-rows",""]]],Hs=["[actionbar]","th","[thead]","*","[table-no-rows]"];function js(n,o){n&1&&ue(0,"sh-progress-bar",3)}function zs(n,o){n&1&&(f(0,"div",4),g(1,4),v())}var $s=[[["","title",""]],"*"],Ws=["[title]","*"];function Gs(n,o){n&1&&y(0,"Title")}function qs(n,o){n&1&&(f(0,"sh-icon",1),y(1,"caret-down"),v())}function Us(n,o){if(n&1){let e=Q();P(0,"input",4,0),ve("change",function(i){F(e);let s=h();return R(s.onInternalInputChange(i))}),B()}if(n&2){let e=h();Vt("checked",e.checked()),K("disabled",e.disabled()?"":null)}}function Ys(n,o){n&1&&be(0)}function Xs(n,o){if(n&1&&me(0,Ys,1,0,"ng-container",1),n&2){let e=h();X("ngTemplateOutlet",e.content())("ngTemplateOutletContext",Xe(2,Et,e.tooltipContext))}}function Qs(n,o){if(n&1&&y(0),n&2){let e=h();ne(" ",e.content()," ")}}var Zi=new fe("Ship UI Config");function Y(n,o){let e=C(Zi,{optional:!0});return O(()=>{let t=e?.[n],i=o.variant?.();i||(i=t?.variant),!i&&n==="alert"&&e?.alertVariant&&(i=e.alertVariant),!i&&n==="card"&&e?.cardType&&(i=e.cardType),!i&&n==="table"&&e?.tableType&&(i=e.tableType);let s=o.color?.()||t?.color;i||(i="base");let r=o.size?.()||t?.size,a=(o.sharp?.()??t?.sharp)||!1,l=(o.dynamic?.()??t?.dynamic)||!1,d=(o.readonly?.()??t?.readonly)||!1,u=(o.alwaysShow?.()??t?.alwaysShow)||!1,m=[];return s&&m.push(s),i&&(["a","b","c","d"].includes(i)?m.push(`type-${i}`):m.push(i)),r&&m.push(r),a&&m.push("sharp"),l&&m.push("dynamic"),d&&m.push("readonly"),u&&m.push("always-show"),m.join(" ")})}var Ks=["bold","thin","light","fill","duotone"],Me=(()=>{class n{constructor(){this.#t=C(I),this.#i=C(ge),this.color=c(null),this.size=c(null),this.hostClasses=Y("icon",{color:this.color,size:this.size})}#t;#i;ngAfterContentInit(){let e=this.#t.nativeElement.textContent?.trim();if(!e)return;let t=e.split("-").at(-1);t&&Ks.includes(t)&&this.#i.addClass(this.#t.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-icon"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],size:[1,"size"]},ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),la=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=Y("alert",{color:this.color,variant:this.variant}),this._el=C(I),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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-alert"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,i){t&2&&k(i.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,i){if(t&1&&(H(qn),f(0,"div",1)(1,"div",2,0),g(3),g(4,1),v(),f(5,"div",2),w(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),v(),f(12,"div",4),g(13,2),g(14,3),v(),w(15,eo,2,0,"sh-icon",5),f(16,"div",6),g(17,4),g(18,5),v(),f(19,"div",7),g(20,6),g(21,7),v()()),t&2){let s=It(2);p(),ie("display",s.children.length?"block":"none");let r=i.hostClasses();p(5),T(r.includes("primary")?6:r.includes("accent")?7:r.includes("warn")?8:r.includes("error")?9:r.includes("success")?10:11),p(9),T(i.id()?15:-1)}},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})();function rt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ca=(()=>{class n{constructor(){this.alertHistory=_([]),this.alertHistoryIsOpen=_(!1),this.alertHistoryIsHidden=_(!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=rt();this.alertHistory.update(i=>[U(z({},e),{isOpen:!0,animateIn:!0,animateOut:!1,id:t}),...i]),setTimeout(()=>{this.alertHistory.update(i=>i.map(s=>U(z({},s),{animateIn:s.id===t?!1:s.animateIn})))},40),setTimeout(()=>{this.hideAlert(t)},2500)}removeAlert(e){this.alertHistory.update(t=>t.map(i=>U(z({},i),{animateOut:i.id===e?!1:i.animateOut}))),setTimeout(()=>{this.alertHistory.update(t=>t.filter(i=>i.id!==e))},300)}hideAlert(e){this.alertHistory.update(t=>t.map(i=>U(z({},i),{isOpen:i.id===e?!1:i.isOpen})))}setHidden(e){this.alertHistoryIsHidden.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})(),Zs={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},Js=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(Zi,{optional:!0}),this.dialogRef=Z("dialogRef"),this.isOpen=$(!1),this.options=c(),this.closed=re(),this.defaultOptionMerge=O(()=>z(U(z({},Zs),{class:this.#i?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=N(()=>{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;#i;ngOnDestroy(){this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-dialog"]],viewQuery:function(t,i){t&1&&le(i.dialogRef,to,5),t&2&&te()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:ae,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,i){t&1&&(H(),ut(0),w(1,no,5,11,"dialog",1)),t&2&&(de(i.defaultOptionMerge()),p(),T(i.isOpen()?1:-1))},encapsulation:2,changeDetection:0})}}return n})(),da=(()=>{class n{constructor(){this.#t=C(_e),this.#i=this.#t.querySelector("body"),this.#e=C(Ot),this.compRef=null,this.insertedCompRef=null,this.insertedTemplateRef=null,this.closedFieldSub=null,this.compClosedSub=null}#t;#i;#e;open(e,t){let i=this.#e.injector,s=this.#n(),r=!1,a,S=t||{},{data:l,closed:d}=S,u=si(S,["data","closed"]);this.compRef&&this.#o(!0);let m=this;function x(D=void 0){m.#o(),!r&&(r=!0,a&&a instanceof Pt&&a.emit(D),d?.(D))}let V=[];if(e instanceof $e)this.insertedTemplateRef=e.createEmbeddedView({$implicit:l,close:D=>x(D)}),V=[this.insertedTemplateRef.rootNodes];else{this.insertedCompRef=Lt(e,{environmentInjector:i}),V=[[this.insertedCompRef.location.nativeElement]];let D=this.insertedCompRef.instance,ce=D.data;if(a=D.closed,l){if(ct(ce))this.insertedCompRef.setInput("data",l);else if(!ct(ce))throw new Error("data is not an input signal on the passed component")}a&&a instanceof Pt&&(this.closedFieldSub=a.subscribe(Ve=>{this.#o(),!r&&(r=!0,d?.(Ve),(this.compRef?.instance.closed).emit(Ve))}))}return this.compRef=Lt(Js,{hostElement:s,environmentInjector:i,projectableNodes:V}),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(()=>x()),{component:this.insertedCompRef?.instance,close:x,closed:this.compRef.instance.closed}}#n(){let e=this.#t.createElement("sh-dialog-ref");return e.id="sh-dialog-ref",this.#t.getElementById("sh-dialog-ref")||this.#i?.append(e),this.#t.getElementById("sh-dialog-ref")}#o(e=!1){let t=this;e||queueMicrotask(()=>i());function i(){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||n)}}static{this.\u0275prov=Ne({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function at(n,o={childList:!0}){let e=C(I).nativeElement,t=C(Ce),i=_([]),s=()=>{i.set(Array.from(e.querySelectorAll(n)))};if(s(),typeof MutationObserver>"u")return i.asReadonly();let r=new MutationObserver(a=>{a.some(d=>d.type==="childList")&&s()});return r.observe(e,o),t.onDestroy(()=>r.disconnect()),i.asReadonly()}function wt(n=null){let o=n??C(I).nativeElement;if(!o)return _("");let e=_(o.className);if(typeof MutationObserver>"u")return e.asReadonly();let t=C(Ce),i=new MutationObserver(s=>{for(let r of s)if(r.type==="attributes"&&r.attributeName==="class"){let a=r.target;e.set(a.className)}});return i.observe(o,{attributes:!0,attributeFilter:["class"]}),t.onDestroy(()=>i.disconnect()),e.asReadonly()}var ii=(()=>{class n{constructor(e,t){this.itemSelector=e,this.activeClass=t,this.hostElement=C(I).nativeElement,this.value=$(null),this.closable=c(!1,{transform:pt}),this.items=at(this.itemSelector,{childList:!0,subtree:!0,attributes:!0}),N(()=>{let i=this.value(),s=this.activeClass;this.items().forEach(r=>{let a=r.getAttribute("value");a===null&&!r.hasAttribute("value")||(a===String(i)||a===""&&(i===null||i==="")?r.classList.add(s):r.classList.remove(s))})})}onClick(e){let t=e;if(!t||!t.closest)return;let i=t.closest(this.itemSelector);if(i&&this.hostElement.contains(i)&&i.hasAttribute("value")){let s=i.getAttribute("value");this.closable()&&String(this.value())===String(s)?this.value.set(null):this.value.set(s)}}onKeyDown(e){let t=this.items().filter(a=>a.hasAttribute("value"));if(!t.length)return;let i=t.findIndex(a=>a.classList.contains(this.activeClass)),s=i;switch(e.key){case"ArrowRight":case"ArrowDown":s=i>=t.length-1?0:i+1;break;case"ArrowLeft":case"ArrowUp":s=i<=0?t.length-1:i-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){fi()}}static{this.\u0275dir=L({type:n,hostBindings:function(t,i){t&1&&E("click",function(r){return i.onClick(r.target)})("keydown",function(r){return i.onKeyDown(r)})},inputs:{value:[1,"value"],closable:[1,"closable"]},outputs:{value:"valueChange"}})}}return n})(),ua=(()=>{class n extends ii{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=Y("buttonGroup",{color:this.color,variant:this.variant,size:this.size})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-button-group"]],hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),ie("--btng-id",i.id))},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"]},features:[G],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),ha=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=Y("button",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},attrs:oo,ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),pa=(()=>{class n{constructor(){this.color=c(null),this.variant=c(null),this.hostClasses=Y("card",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-card"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"]},ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})(),er=(()=>{class n{constructor(){this._elementRef=C(I),this.internalInput=Z("internalInput"),this.projectedInputs=at("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=$(!1),this.currentClassList=wt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=Y("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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-checkbox"]],viewQuery:function(t,i){t&1&&le(i.internalInput,ti,5),t&2&&te()},hostVars:3,hostBindings:function(t,i){t&1&&E("keydown.enter",function(r){return i.onEnter(r)}),t&2&&(K("disabled",i.disabled()?"":null),k(i.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:ae,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,i){t&1&&(H(),f(0,"div",1)(1,"sh-icon",2),y(2,"check-bold"),v(),f(3,"sh-icon",3),y(4,"minus-bold"),v()(),f(5,"div",4),g(6),v(),w(7,so,2,2,"input",5)),t&2&&(k(i.currentClassList()),p(7),T(i.projectedInputs().length===0&&!i.noInternalInput()?7:-1))},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})(),tr=(()=>{class n{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=Y("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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],dynamic:[1,"dynamic"],readonly:[1,"readonly"]},ngContentSelectors:ae,decls:2,vars:0,template:function(t,i){t&1&&(H(),P(0,"div"),g(1),B())},encapsulation:2,changeDetection:0})}}return n})();var pe=4,ir=["scroll","auto"],nr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},ni=(()=>{class n{constructor(){this.#t=C(_e),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=c(!1),this.asSheetOnMobile=c(!1),this.disableOpenByClick=c(!1),this.isOpen=$(!1),this.options=c(),this.closed=re(),this.defaultOptionMerge=O(()=>z(z({},nr),this.options())),this.triggerRef=Z.required("triggerRef"),this.popoverRef=Z("popoverRef"),this.popoverContentRef=Z("popoverContentRef"),this.id=_("--"+rt()),this.menuStyle=_(null),this.openAbort=null,this.#i=null,this.openEffect=N(()=>{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",s=>{s.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&s.preventDefault(),s.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.openAbort?.signal}),!t.isConnected)return;t.showPopover();let i=this.asSheetOnMobile()&&window.innerWidth<=768;i&&(this.#i=this.#t.body.style.overflow,this.#t.body.style.overflow="hidden",this.menuStyle.set(null)),!this.SUPPORTS_ANCHOR&&!i&&setTimeout(()=>{this.#e(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,this.asSheetOnMobile()&&this.#i!==null&&(this.#t.body.style.overflow=this.#i,this.#i=null)})})}#t;#i;toggleIsOpen(e){this.disableOpenByClick()||(e.preventDefault(),e.stopPropagation(),this.isOpen.set(!this.isOpen()))}eventClose(e){this.isOpen()&&this.isOpen.set(!1)}#e(e){let t=e.parentElement;for(;t;){if(ir.indexOf(window?.getComputedStyle(t).overflowY)>-1&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return this.#t.documentElement}#n(e,t){return{left:e.left,top:e.bottom+pe}}#o(e,t){return{left:e.left,top:e.top-t.height-pe}}#a(e,t){return{left:e.right-t.width,top:e.bottom+pe}}#r(e,t){return{left:e.right-t.width,top:e.top-t.height-pe}}#s(e,t){return{left:e.right+pe,top:e.top}}#l(e,t){return{left:e.left-t.width-pe,top:e.top}}#c(e,t){return{left:e.right+pe,top:e.top+e.height/2-t.height/2}}#d(e,t){return{left:e.left-t.width-pe,top:e.top+e.height/2-t.height/2}}#h(e,t){return{left:e.right+pe,top:e.bottom-t.height}}#p(e,t){return{left:e.left-t.width-pe,top:e.bottom-t.height}}#f(e,t){return e.left>=0&&e.top>=0&&e.left+t.width<=window.innerWidth&&e.top+t.height<=window.innerHeight}#g(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 i=[this.#n,this.#o,this.#a,this.#r,this.#s,this.#l,this.#c,this.#d,this.#h,this.#p],s=[this.#s,this.#h,this.#l,this.#p,this.#c,this.#d,this.#n,this.#o,this.#a,this.#r],r=this.asMultiLayer()?s:i;for(let l of r){let d=l.call(this,e,t);if(this.#f(d,t)){this.menuStyle.set({left:d.left+"px",top:d.top+"px"});return}}let a=this.#g(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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-popover"]],viewQuery:function(t,i){t&1&&le(i.triggerRef,ro,5)(i.popoverRef,ao,5)(i.popoverContentRef,lo,5),t&2&&te(3)},hostVars:4,hostBindings:function(t,i){t&2&&j("multi-layer",i.asMultiLayer())("as-sheet",i.asSheetOnMobile())},inputs:{asMultiLayer:[1,"asMultiLayer"],asSheetOnMobile:[1,"asSheetOnMobile"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:uo,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,i){t&1&&(H(co),P(0,"div",3,0),ve("click",function(r){return i.toggleIsOpen(r)}),P(2,"div",4),g(3),g(4,1),g(5,2),B(),Ee(6,"div",5),B(),w(7,ho,6,5,"div",6)),t&2&&(K("popovertarget",i.id()+"hello"),p(6),ie("anchor-name",i.id()),p(),T(i.isOpen()?7:-1))},encapsulation:2,changeDetection:0})}}return n})(),or=(()=>{class n{constructor(){this.#t=C(I),this.isOpen=$(!1),this.closed=re(),this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=Y("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly})}#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 i=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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-form-field-popover"]],hostVars:2,hostBindings:function(t,i){t&1&&E("click",function(){return i.onClick()}),t&2&&k(i.hostClasses())},inputs:{isOpen:[1,"isOpen"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],readonly:[1,"readonly"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:fo,decls:18,vars:4,consts:[[3,"isOpenChange","closed","isOpen","asSheetOnMobile","options"],["trigger","",1,"input-wrap"],[1,"prefix"],[1,"prefix-space"],[1,"suffix-space"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(t,i){t&1&&(H(po),g(0),f(1,"sh-popover",0),Ye("isOpenChange",function(r){return Ue(i.isOpen,r)||(i.isOpen=r),r}),E("closed",function(){return i.close()}),f(2,"div",1)(3,"div",2),g(4,1),g(5,2),v(),ue(6,"div",3),g(7,3),g(8,4),g(9,5),ue(10,"div",4),g(11,6),v(),g(12,7),v(),f(13,"div",5)(14,"div",6),g(15,8),v(),f(16,"div",7),g(17,9),v()()),t&2&&(p(),qe("isOpen",i.isOpen),X("asSheetOnMobile",!0)("options",ht(3,Qi)))},dependencies:[ni],encapsulation:2,changeDetection:0})}}return n})();var sr=(()=>{class n{constructor(){this.#t=new Date(new Date().setHours(0,0,0,0)),this.date=$(null),this.endDate=$(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=Z("daysRef"),this.currentDate=_(this.date()??this.#t),this.monthOffsets=O(()=>Array.from({length:this.monthsToShow()},(e,t)=>t)),this.selectedDateStylePosition=_(null),this.weekdays=O(()=>{let e=this.startOfWeek(),t=this.weekdayLabels();return t.slice(e).concat(t.slice(0,e))}),this.currentClasses=wt(),this.someEffect=N(()=>{let e=this.currentClasses();this.#n()}),this.#i=N(()=>{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())}#i;ngOnInit(){this.monthsToShow()!==1&&this.#e()}#e(){let e=this.date();e&&this.currentDate.set(e),this.#n()}#n(){setTimeout(()=>{let e=this.daysRef()?.nativeElement.querySelector(".sel");if(!e)return this.selectedDateStylePosition.update(t=>t?U(z({},t),{opacity:"0"}):null);this.setSelectedDateStylePosition(e)})}#o(e,t){let i=e.getFullYear(),s=e.getMonth(),r=new Date(i,s,1).getDay(),a=new Date(i,s+1,0).getDate(),l=[],d=r-t;d<0&&(d+=7);let u=new Date(i,s,0).getDate();for(let x=d-1;x>=0;x--)l.push(new Date(i,s-1,u-x,0,0,0,0));for(let x=1;x<=a;x++)l.push(new Date(i,s,x,0,0,0,0));let m=1;for(;l.length%7!==0;)l.push(new Date(i,s+1,m++,0,0,0,0));return l}nextMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()+1),t}),this.#n()}previousMonth(){this.currentDate.update(e=>{let t=new Date(e);return t.setMonth(e.getMonth()-1),t}),this.#n()}setDate(e,t){let i=(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(i(e,this.date())),this.endDate.set(null);else{let s=this.date(),r=this.endDate(),a=i(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(),i=this.endDate();if(t===null)return null;let s=m=>new Date(m.getFullYear(),m.getMonth(),m.getDate(),0,0,0,0),r=m=>new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999),a=s(e),l=s(t),d=i?r(i):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 D=a.getDay(),ce=this.startOfWeek();D===ce&&u.push("week-start");let Ve=(ce+6)%7;D===Ve&&u.push("week-end")}let m=new Date(a);m.setDate(a.getDate()+1),new Date(a).setDate(a.getDate()-1);let V=a.getDate()===1,S=m.getMonth()!==a.getMonth();V&&u.push("month-start"),S&&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 i=this.getOffsetDate(t);return e.getMonth()===i.getMonth()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-datepicker"]],viewQuery:function(t,i){t&1&&le(i.daysRef,vo,5),t&2&&te()},hostVars:6,hostBindings:function(t,i){t&2&&(k("columns-"+i.monthsToShow()),j("as-range",i.asRange())("disabled",i.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,i){t&1&&(f(0,"header")(1,"button",2),E("click",function(){return i.previousMonth()}),f(2,"sh-icon"),y(3,"caret-left"),v()(),f(4,"div",3),y(5),w(6,_o,1,1),y(7),v(),f(8,"button",2),E("click",function(){return i.nextMonth()}),f(9,"sh-icon"),y(10,"caret-right"),v()()(),f(11,"section",4),Ae(12,Do,9,1,"div",5,vi),v()),t&2&&(p(5),ne(" ",i.getMonthName(i.currentDate())," "),p(),T(i.monthsToShow()>1?6:-1),p(),ne(" ",i.getFullYear(i.currentDate())," "),p(5),ke(i.monthOffsets()))},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})(),fa=(()=>{class n{constructor(){this.ngModels=Ft(xt),this.#t=C(jt),this.#i=_(null),this.masking=c("mediumDate"),this.closed=re(),this._maskedDate=O(()=>{let e=this.internalDate(),t=this.masking();return t?e?this.#t.transform(e,t):null:e}),this.internalDate=_(null),this.isOpen=$(!1),this.currentClass=wt(),this.#e=at("#input-wrap input"),this.#n=N(()=>{let e=this.#e();if(!e.length)return;let t=e[0];t&&(this.#o(t),t.addEventListener("inputValueChanged",i=>{this.internalDate.set(i.detail.value?new Date(i.detail.value):null)}),t.addEventListener("focus",()=>{this.isOpen.set(!0),t.blur()}),this.#i.set(t),t.autocomplete="off",typeof t.value=="string"&&this.internalDate.set(t.value?new Date(t.value):null))})}#t;#i;#e;onDateChange(e){this.internalDate.set(e);let t=this.#i();t&&(t.value=e?e.toString():"",t.dispatchEvent(new Event("input")))}close(){this.closed.emit(this.internalDate())}#n;#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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-datepicker-input"]],contentQueries:function(t,i,s){t&1&&Nt(s,i.ngModels,xt,5),t&2&&te()},inputs:{masking:[1,"masking"],isOpen:[1,"isOpen"]},outputs:{closed:"closed",isOpen:"isOpenChange"},features:[J([jt])],ngContentSelectors:mo,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,i){if(t&1){let s=Q();H(go),f(0,"sh-form-field-popover",1),E("closed",function(){return i.close()}),Ye("isOpenChange",function(a){return F(s),Ue(i.isOpen,a)||(i.isOpen=a),R(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),w(5,So,2,1,"div",3),g(6,3),v(),g(7,4,["ngProjectAs","[textSuffix]",5,["","textSuffix",""]]),g(8,5,["ngProjectAs","[suffix]",5,["","suffix",""]]),f(9,"sh-icon",4),y(10,"calendar"),v(),f(11,"div",5),w(12,Mo,1,3,"sh-datepicker",6),v()(),me(13,xo,0,0,"ng-template",null,0,_i)}t&2&&(qe("isOpen",i.isOpen),p(5),T(i.masking()?5:-1),p(7),T(i.isOpen()?12:-1))},dependencies:[sr,or,Me],encapsulation:2,changeDetection:0})}}return n})();var rr=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-divider"]],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();var oi=(()=>{class n{#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(I),this.color=c(null),this.variant=c(null),this.size=c(null),this.readonly=c(!1),this.hostClasses=Y("formField",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),Tt(()=>{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 i=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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-form-field"]],hostVars:2,hostBindings:function(t,i){t&1&&E("click",function(){return i.onClick()}),t&2&&k(i.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,i){t&1&&(H(Eo),g(0),P(1,"div",0)(2,"div",1),g(3,1),g(4,2),g(5,3),B(),g(6,4),g(7,5),P(8,"div",2),g(9,6),g(10,7),g(11,8),B()(),P(12,"div",3)(13,"div",4),g(14,9),B(),P(15,"div",5),g(16,10),B()())},encapsulation:2,changeDetection:0})}}return n})(),ga=(()=>{class n{constructor(){this._el=C(I),this.inputRef=Z.required("input"),this.filesOver=_(!1),this.multiple=c(),this.accept=c(null),this.placeholder=$("Click or drag files here"),this.overlayText=c("Drop files here"),this.files=$([]),this.fileUploadClasses=O(()=>this._el.nativeElement.classList.toString()),this.inputEffect=N(()=>{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 i=t.dataTransfer?.files;i&&i.length>0&&(this.handleFileUpload(Array.from(i)),e.files=i)}),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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-file-upload"]],viewQuery:function(t,i){t&1&&le(i.inputRef,To,5),t&2&&te()},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,i){t&1&&(H(Oo),f(0,"sh-form-field"),g(1,0,["ngProjectAs","label",5,["label"]]),f(2,"div",2,0),w(4,No,2,1,"div",3)(5,Io,2,1,"div",3)(6,Ao,2,1,"div",4),ue(7,"input",5,1)(9,"div",6),v(),f(10,"sh-icon",7),y(11,"upload-simple"),v()()),t&2&&(k(i.fileUploadClasses()),p(4),T(i.files().length===1?4:i.files().length>1?5:6),p(3),K("multiple",i.multiple())("accept",i.accept()),p(2),j("files-over",i.filesOver()))},dependencies:[oi,Me],encapsulation:2,changeDetection:0})}}return n})(),ma=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-list"]],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();function ar(n,o){let e=_(null),t=o.map(l=>l.toUpperCase()),i=C(Ie),s=i.get(Ce);if(Ci(i.get(hi))||typeof MutationObserver>"u")return e.asReadonly();if(t.find(l=>n.nativeElement.querySelector(l)))return e.set(new I(n.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 I(u)),a.disconnect();return}}});return a.observe(n.nativeElement,{childList:!0,subtree:!0}),s.onDestroy(()=>a.disconnect()),e.asReadonly()}function Ji(n,o){let e=C(Ie),t=e.get(Ce),i=_([]),s=null,r=null,a=(d,u)=>{r&&r.disconnect();let m=Array.from(d.nativeElement.querySelectorAll(u.join(",")));i.set(m),typeof MutationObserver<"u"&&(r=new MutationObserver(x=>{queueMicrotask(()=>{let V=Array.from(d.nativeElement.querySelectorAll(u.join(",")));i.set(V)})}),r.observe(d.nativeElement,{childList:!0,subtree:!0})),t.onDestroy(()=>l())};s=N(()=>{let d=typeof n=="function"&&ct(n)?n():n,u=typeof o=="function"?o():o;d&&u?.length>0?a(d,u):(i.set([]),r&&(r.disconnect(),r=null))},{injector:e});function l(){s&&s.destroy(),r&&r.disconnect()}return{signal:i.asReadonly(),destroy:l}}function lr(n,o=["input","textarea"]){let e=n||ar(C(I),o),t=_(void 0),i=C(Ie),s=i.get(Ce),r=_(null);N(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:i});let a=null;return N(()=>{let l=r();if(!l)return;a&&(a(),a=null);let d=m=>{t.set(m.detail.value)},u=m=>{t.set(m.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:i}),N(()=>{let l=r();if(!l)return;let d=t();d&&(l.value=d,l.dispatchEvent(new Event("input")))},{injector:i}),t}function cr(n){return Object.defineProperty(n,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value").get.call(this)},set(o){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value").set.call(this,o);let t=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:o}});return this.dispatchEvent(t),o}}),n}var va=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(ge),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=$(!1),this.closed=re(),this.searchable=c(!1),this.activeOptionIndex=_(-1),this.inputRef=Z("inputRef"),this.optionsRef=Z("optionsRef"),this.openMenusEffect=N(e=>{this.isOpen()&&n.openMenus.push(this),e(()=>{let t=n.openMenus.indexOf(this);t>-1&&n.openMenus.splice(t,1)})}),this.options=Ji(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=O(()=>this.options.signal().filter(e=>!e.disabled)),this.inputValue=lr(this.inputRef),this.optionsId=rt(),this.activeOptionId=_(void 0),this.abortController=null,this.optionsEffect=N(()=>{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(n.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 i=this.activeElements()[t];if(i.parentElement?.hasAttribute("trigger")){let r=new CustomEvent("ship-menu-open",{bubbles:!0,cancelable:!0});i.dispatchEvent(r)}else i.click(),i.querySelector("sh-checkbox")||queueMicrotask(()=>this.close("active"))}}else if(e.key==="Tab"){let i=this.activeElements();if(!i.length){let s=this.optionsEl();this.activeElements.set(s),i=s}e.shiftKey?t<=0?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(t))):t>=i.length-1?(e.preventDefault(),this.close("closed")):(e.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(t)))}},this._lastElementList=[],this.activeElements=_([]),this.lastInputValue="",this.inputValueEffect=N(()=>{if(!this.searchable())return;let t=(this.inputValue()??"").toLowerCase();if(this.#n(),!t||t===""){let s=this.optionsEl();this.activeElements.set(s),this._lastElementList=s;for(let r=0;r<s.length;r++)this.#i.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 i=this._lastElementList.length&&t.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=t;for(let s=0;s<i.length;s++){let r=i[s],a=r.textContent?.toLowerCase()||"",l=this.#e(a,t);r.value=l}i=i.filter(s=>s.value>0).sort((s,r)=>r.value-s.value);for(let s=0;s<i.length;s++)this.#i.setStyle(i[s],"order",s);this.activeElements.set(i),this._lastElementList=i;for(let s=0;s<i.length;s++)i[s].id||(i[s].id=`${this.optionsId}-option-${s}`),i[s].setAttribute("role","option")}),this.activeOptionIndexEffect=N(()=>{let e=this.activeElements(),t=this.activeOptionIndex();for(let i=0;i<e.length;i++)e[i].classList.remove("active"),e[i].removeAttribute("aria-selected");if(t>-1){let i=e[t];i.scrollIntoView({block:"center"}),i.classList.add("active"),i.setAttribute("aria-selected","true"),this.activeOptionId.set(i.id)}else this.activeOptionId.set(void 0)})}#t;#i;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 i=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)i+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;i+=100,s=u,r++}}return a&&t.length===r&&(i+=1e3),i+=r*20,i}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 i=e+1;return t[i].disabled?this.nextActiveIndex(i):i}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 i=e-1;return t[i].disabled?this.prevActiveIndex(i):i}close(e="closed",t){this.inputValue.set("");let i=this.inputRef()?.nativeElement;i&&(i.value=""),this.closeOnClick()&&((!this.keepClickedOptionActive()||e==="closed")&&this.#n(),this.isOpen.set(!1),this.closed.emit(e==="active"))}#n(){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=n.openMenus.indexOf(this);e>-1&&n.openMenus.splice(e,1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-menu"]],viewQuery:function(t,i){t&1&&le(i.inputRef,ko,5)(i.optionsRef,Po,5),t&2&&te(2)},hostVars:6,hostBindings:function(t,i){t&1&&E("ship-menu-open",function(r){return i.onShipMenuOpen(r)}),t&2&&j("disabled",i.disabled())("has-search",i.searchable())("multi-layer",i.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,i){if(t&1){let s=Q();H(Fo),f(0,"sh-popover",3,0),Ye("isOpenChange",function(a){return F(s),Ue(i.isOpen,a)||(i.isOpen=a),R(a)}),E("closed",function(){return i.close("fromPopover")}),f(2,"div",4),E("click",function(a){return i.toggleIsOpen(a)}),g(3),w(4,Lo,2,0,"sh-icon",5),v(),f(5,"div",6)(6,"sh-form-field",7),ue(7,"input",8,1),v()(),f(9,"div",9,2),E("click",function(){return i.close("active")}),g(11,1),v()()}t&2&&(qe("isOpen",i.isOpen),X("disableOpenByClick",!0)("asMultiLayer",i.asMultiLayer())("options",ht(19,Qi)),p(2),j("is-open",i.isOpen()),K("aria-expanded",i.isOpen())("aria-controls",i.optionsId)("aria-activedescendant",i.activeOptionId()),p(2),T(i.openIndicator()?4:-1),p(2),j("hidden",i.searchable()===!1),p(),K("aria-expanded",i.isOpen())("aria-controls",i.optionsId)("aria-activedescendant",i.activeOptionId()),p(2),j("searching",i.searchable()&&i.inputValue()!==""),X("id",i.optionsId),K("aria-activedescendant",i.activeOptionId()))},dependencies:[ni,oi,Me],encapsulation:2,changeDetection:0})}}return n})(),dr=(()=>{class n{constructor(){this.value=c(void 0),this.color=c(null),this.variant=c(null),this.hostClasses=Y("progressBar",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-progress-bar"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{value:[1,"value"],color:[1,"color"],variant:[1,"variant"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(t,i){t&1&&Ee(0,"div",0),t&2&&ie("width",i.value(),"%")},encapsulation:2,changeDetection:0})}}return n})(),_a=(()=>{class n{constructor(){this._elementRef=C(I),this.internalInput=Z("internalInput"),this.projectedInputs=at("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=$(!1),this.currentClassList=wt(),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=Y("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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-radio"]],viewQuery:function(t,i){t&1&&le(i.internalInput,ti,5),t&2&&te()},hostVars:3,hostBindings:function(t,i){t&1&&E("keydown.enter",function(r){return i.onEnter(r)}),t&2&&(K("disabled",i.disabled()?"":null),k(i.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:ae,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,i){t&1&&(H(),Ee(0,"div",1),g(1),w(2,Bo,2,2,"input",2)),t&2&&(k(i.currentClassList()),p(2),T(i.projectedInputs().length===0&&!i.noInternalInput()?2:-1))},encapsulation:2,changeDetection:0})}}return n})(),Ca=(()=>{class n{constructor(){this.#t=C(I),this.#i=null,this.#e=null,this.#n=0,this.unit=c(""),this.value=$(this.#n),this.inputState=_({min:0,max:100,step:1}),this.color=c(null),this.variant=c(null),this.size=c(null),this.sharp=c(void 0),this.alwaysShow=c(void 0),this.hostClasses=Y("rangeSlider",{color:this.color,variant:this.variant,size:this.size,sharp:this.sharp,alwaysShow:this.alwaysShow}),this.valuePercentage=O(()=>{let{min:e,max:t}=this.inputState(),i=this.value()??e;if(isNaN(i))return 0;let s=t-e;if(s===0)return 0;let r=(i-e)/s*100;return Math.max(0,Math.min(100,r))}),this.trackFilledPercentage=O(()=>this.valuePercentage()),this.thumbPositionPercentage=O(()=>this.valuePercentage()),this.syncModelToInputEffect=N(()=>{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;#i;#e;#n;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.#a()):console.error('ShipRangeSlider: No <input type="range"> element found projected inside.')}setNewInputValue(e){let t=parseFloat(e??"0");if(!isNaN(t)){let{min:i,max:s}=this.inputState();this.value.set(Math.max(i,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 i=e.currentTarget.getBoundingClientRect(),s=e.clientX-i.left,r=i.width,{min:a,max:l,step:d}=this.inputState(),u=l-a;if(r>0&&u!==0&&d>0){let x=(s/r*u+a-a)/d,V=a+Math.round(x)*d,S=this.#r(d);V=parseFloat(V.toFixed(S));let D=Math.max(a,Math.min(l,V));this.value.set(D)}}#o(e=!1){if(!this.#e)return;let t=parseFloat(this.#e.min??"0")??0,i=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:i,step:r});let a=parseFloat(this.#e.value??String(t))??t;if(e&&this.value()!==this.#n){let l=this.value(),d=Math.max(t,Math.min(i,l));a!==d&&(this.#e.value=String(d)),l!==d&&this.value.set(d)}else{let l=Math.max(t,Math.min(i,a));this.value()!==l&&this.value.set(l)}}#a(){if(!this.#e||typeof MutationObserver>"u")return;let e=["min","max","step","value","readonly","disabled"];this.#i=new MutationObserver(t=>{let i=!1;for(let s of t)if(s.type==="attributes"&&e.includes(s.attributeName??"")){i=!0;break}i&&this.#o(!1)}),this.#i.observe(this.#e,{attributes:!0,attributeFilter:e})}#r(e){if(isNaN(e)||Math.floor(e)===e)return 0;let i=e.toString().split(".")[1];return i?i.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.#i&&this.#i.disconnect(),this.#e&&(this.#e.oninput=null)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-range-slider"]],hostVars:6,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),j("sh-range-slider",!0)("has-input",i.hasInputElement))},inputs:{unit:[1,"unit"],value:[1,"value"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],sharp:[1,"sharp"],alwaysShow:[1,"alwaysShow"]},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,i){t&1&&(H(Ho),P(0,"div",0),g(1),B(),P(2,"div",1)(3,"div",2),y(4),B(),P(5,"div",3),ve("click",function(r){return i.trackEvent(r)}),g(6,1),P(7,"div",4),Ee(8,"div",5),B(),P(9,"div",6)(10,"div",7)(11,"div",8),y(12),B()()()(),P(13,"div",9),y(14),B()()),t&2&&(p(4),dt("",i.inputState().min,"",i.unit()),p(4),ie("width",i.trackFilledPercentage(),"%"),p(),ie("left",i.thumbPositionPercentage(),"%"),p(3),dt("",i.value(),"",i.unit()),p(2),dt("",i.inputState().max,"",i.unit()))},encapsulation:2,changeDetection:0})}}return n})(),ur=(()=>{class n{constructor(){this.color=c(null),this.hostClasses=Y("spinner",{color:this.color})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-spinner"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"]},decls:0,vars:0,template:function(t,i){},encapsulation:2,changeDetection:0})}}return n})(),ya=(()=>{class n{constructor(){this.#t=C(I),this.value=c(),this.label=c(),this.asFreeText=c(!1),this.color=c(null),this.variant=c(null),this.size=c(null),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=$(!1),this.disabled=$(!1),this.hostClasses=Y("select",{color:this.color,variant:this.variant,size:this.size,readonly:this.readonly}),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=$(!1),this.isLoading=$(!1),this.options=$([]),this.selectedOptions=$([]),this.cleared=re(),this.onAddNewFreeTextOption=re(),this.computedFreeTextOption=O(()=>{let e=this.inputValue(),t=this.value(),i=t?{}:e;return t&&typeof i=="object"&&(i[t]=e),i}),this.#i=_(null),this.inlineTemplate=Ft($e),this.optionsWrapRef=Z.required("optionsWrap"),this.inputRefInput=_(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 I(t.target)),this.#e.disconnect())}):void 0,this.inputValue=_(""),this.prevInputValue=_(null),this.focusedOptionIndex=_(-1),this._isClearable=O(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=O(()=>this.#t.nativeElement.classList.toString()),this.stretch=O(()=>this.selectClasses().includes("stretch")),this.small=O(()=>this.selectClasses().includes("small")),this.placeholderText=O(()=>{let e=this.placeholder(),t=this.inputRefEl();return e||t?.placeholder||null}),this.selectedOptionValues=O(()=>{let e=this.selectedOptions(),t=this.value();return t?e.map(i=>this.#s(i,t)):e}),this.filteredOptions=O(()=>{let e=this.options()||[],t=this.label(),i=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 m=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),x=((i?this.#s(u,i):u)??"").toString().toLowerCase(),V=a.test(m),S=a.test(x);return V||S}).map(u=>{let m=t?(this.#s(u,t)??"").toString().toLowerCase():(u??"").toString().toLowerCase(),x=((i?this.#s(u,i):u)??"").toString().toLowerCase(),V=this.#n(m,r),S=this.#n(x,r);return{item:u,score:Math.max(V,S)}});return d.sort((u,m)=>m.score-u.score),d.map(u=>u.item)}),this.#o=rt(),this.inputRefEl=O(()=>{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",i=>{let s=i.target.value,r=this.inputValue();s!==r&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(s),this.updateInputElValue())}),t.addEventListener("inputValueChanged",i=>{let s=i.detail.value,r=this.inputValue(),a=oe(()=>this.selectedOptions().length);s===r&&(s!==""||a>0)||(this.setSelectedOptionsFromValue(s),this.setInputValueFromOptions(this.selectedOptions()),this.#r())}),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=N(()=>{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=N(()=>{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=N(()=>{let e=this.inputValue();this._inputValue=e}),this.inputRefElEffect=N(()=>{let e=this.inputRefEl();if(!e)return;let t=oe(()=>this.selectedOptions().length);e.value===this._inputValue&&(e.value!==""||t>0)||(this.disabled.set(e.disabled),oe(()=>{this.setSelectedOptionsFromValue(e.value),this.setInputValueFromOptions(this.selectedOptions())}))}),this.selectedLabels=O(()=>{let e=this.selectedOptions();return this.label()?e.map(i=>this.getLabel(i)).join(", "):e.join(", ")}),this.inputState=O(()=>(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=O(()=>this.inlineSearch()||this.lazySearch()),this.#a=N(()=>{if(this.selectMultiple()&&this.hasSearch())return;let e=this.selectedOptions(),t=this.value(),i=e.map(s=>t?this.#s(s,t):s).join(",");this.inputValue.set(i)})}#t;#i;#e;#n(e,t){if(!t)return 0;let i=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)i+=l===0?100:150,s++,r++;else{let u=e.indexOf(d,s+1);if(l>0&&(a=!1),u===-1)return 0;i+=100,s=u,r++}}return a&&t.length===r&&(i+=1e3),i+=r*20,i}#o;#a;ngOnInit(){this.setInitInput()}setInitInput(){let e=this.#t.nativeElement.querySelector("input");if(e){this.inputRefInput.set(new I(e));return}let t=this.#t.nativeElement.querySelector("textarea");if(t){this.inputRefInput.set(new I(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()||[],i=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(u=>{let m=i?this.#s(u,i)?.toString():u?.toString();return m!=null&&a.includes(m)}),d=l.length>0;this.selectedOptions.set(s?l:d?[l[0]]:[])}setInputValueFromOptions(e){let t=this.value();if(e.length===0){this.inputValue.set(""),this.updateInputElValue();return}let i=e.map(s=>t?this.#s(s,t):s).join(",");i!==this.inputValue()&&(this.inputValue.set(i),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,i=!1){let s=this.filteredOptions()[e];if(this.asFreeText()&&e===-1){let m=this.computedFreeTextOption(),x=this.getValue(m);if(!(this.validateFreeText()??(D=>!0))(x))return;this.options.update(D=>D.findIndex(Ve=>this.getValue(Ve)===x)>-1?D:(this.onAddNewFreeTextOption.emit(x),[m,...D])),e=0,s=m}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.#i.set(null),this.selectedOptions.update(m=>{let x=d.indexOf(u);if(x>-1){let V=[...m.slice(0,x),...m.slice(x+1)];return a||V.length>0?V:m}else return this.focusedOptionIndex.set(e),r?[...m,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(i=>[...i.slice(0,t),...i.slice(t+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(e){let t=this.value(),i=this.filteredOptions()[e],s=t?this.#s(i,t):i;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.#i.set(this.selectedOptions()),this.selectMultiple()||this.#r())}#r(){let e=this.selectedOptionValues()[0],t=this.value();if(e){let i=this.filteredOptions().findIndex(s=>t?this.#s(s,t)===e:s===e);this.focusedOptionIndex.set(i)}else this.focusedOptionIndex.set(-1)}close(){this.isOpen.set(!1);let e=this.prevInputValue(),t=this.#i();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.value=t,e.dispatchEvent(new Event("input")))}#s(e,t){return t.split(".").reduce((i,s)=>i?.[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(),i="^";for(let s of t)i+=".*"+this.#d(s);return i+=".*$",new RegExp(i,"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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-select"]],contentQueries:function(t,i,s){t&1&&Nt(s,i.inlineTemplate,$e,5),t&2&&te()},viewQuery:function(t,i){t&1&&le(i.optionsWrapRef,zo,5),t&2&&te()},hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),j("multiple",i.selectMultiple()))},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],color:[1,"color"],variant:[1,"variant"],size:[1,"size"],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:28,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click","color","variant","size"],["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,i){if(t&1){let s=Q();H($o),ut(0)(1)(2)(3)(4)(5)(6),f(7,"sh-popover",2,0),Ye("isOpenChange",function(a){return F(s),Ue(i.isOpen,a)||(i.isOpen=a),R(a)}),E("closed",function(){return i.close()}),f(9,"sh-form-field",3),E("click",function(){return i.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),w(15,qo,1,1)(16,os,2,0)(17,ls,2,1),g(18,3),g(19,4),v()(),w(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),v(),f(27,"div",8,1),w(29,Ms,3,3),w(30,xs,2,1,"p",9),Ae(31,Vs,4,8,"li",10,Ge),v()()}if(t&2){de(i.placeholderTemplate());let s=i.optionTemplate();p(),de(i.freeTextOptionTemplate());let r=i.selectedOptionTemplate(),a=i.inlineTemplate();p();let l=de(i.selectedOptions()),d=i.inputState();p(),de(r||s||a),p(),de(s||a),p();let u=de(!i.asText()&&i.selectMultiple());p();let m=de(i.isOpen()&&i.hasSearch()&&(u||i.inputValue().length>-1));p(),qe("isOpen",i.isOpen),X("disableOpenByClick",!0)("options",ht(27,Go)),p(2),j("stretch",i.stretch())("small",i.small())("readonly",i.readonly()||i.disabled()),X("color",i.color())("variant",i.variant())("size",i.size()),p(4),j("show-search-text",m),p(),j("is-selected",d==="selected"),p(),T(i.asFreeText()&&i.inputValue().length>0&&!i.isOpen()?15:l.length>0?16:m?-1:17),p(5),T(d==="closed"?20:d==="loading"?21:d==="open-searching"?22:d==="searching"?23:d==="selected"&&i._isClearable()?24:d==="selected"&&!i._isClearable()?25:26),p(9),T(i.asFreeText()?29:-1),p(),T(i.optionTitle()&&i.filteredOptions().length>0?30:-1),p(),ke(i.filteredOptions())}},dependencies:[Ht,ni,oi,Me,er,ur,tr,rr],encapsulation:2,changeDetection:0})}}return n})();function hr(n){let o=C(I),e=C(Ce),t=_(!1),i=typeof MutationObserver<"u"?new MutationObserver(s=>{s.forEach(r=>{r.type==="attributes"&&r.attributeName==="class"&&t.set(o.nativeElement.classList.contains(n))})}):void 0;return ui(o.nativeElement,()=>{i&&i.observe(o.nativeElement,{attributes:!0}),t.set(o.nativeElement.classList.contains(n))}),e.onDestroy(()=>{i&&i.disconnect()}),t}var ba=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(I),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=c(!1),this.isOpen=$(!1),this.isOverlay=hr("overlay"),this.#e=this.#i.nativeElement.parentElement,this.#n=this.#e.getBoundingClientRect&&this.#e.getBoundingClientRect(),this.dragImageElement=Z.required("dragImageElement"),this.dragIsEnding=_(!1),this.dragIsOnScreen=_(!0),this.isDragging=_(!1),this.dragPositionX=_(0),this.dragActualPositionX=O(()=>{let e=this.dragPositionX(),t=280,i=100,s=.008,r=t/2,a=r-i/2,l=r+i/2;if(e>l){let d=e-l,m=(t-l)*(1-Math.exp(-s*d));return l+m}else if(e<a){let d=a-e,m=a*(1-Math.exp(-s*d));return a-m}return e}),this.draggingStyle=O(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=N(()=>{this.disableDrag()||(this.isDragging()?this.#t.body.classList.add("dragging"):this.#t.body.classList.remove("dragging"))})}#t;#i;#e;#n;drop(e){e.stopPropagation(),this.#o(e.clientX-this.#n.left)}#o(e){this.isDragging.set(!1),e>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)}dragEnd(e){e.clientX-this.#n.left<0&&this.#o(0),e.clientX-this.#n.left>this.openWidthTreshold&&this.#o(this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(e){e.stopPropagation(),this.#n=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.#n.left)}touchStart(e){e.stopPropagation(),this.isDragging.set(!0),this.#n=this.#e.getBoundingClientRect(),this.dragPositionX.set(0)}touchMove(e){e.stopPropagation(),this.isDragging()&&this.dragPositionX.set(e.touches[0].clientX-this.#n.left)}touchEnd(e){e.stopPropagation(),this.#o(e.changedTouches[0].clientX-this.#n.left)}touchCancel(e){e.stopPropagation(),this.isDragging.set(!1)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-sidenav"]],viewQuery:function(t,i){t&1&&le(i.dragImageElement,Ns,5),t&2&&te()},hostVars:6,hostBindings:function(t,i){t&2&&j("open",i.isOpen())("closed",!i.isOpen())("is-dragging",i.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,i){t&1&&(H(Is),w(0,ks,2,0,"div",1),w(1,Ps,1,0,"div",2),P(2,"div",3),g(3),B(),P(4,"div",4),w(5,Fs,1,0,"div",5),P(6,"div",6),g(7,1),B(),P(8,"main"),g(9,2),B()()),t&2&&(T(i.isOverlay()&&!i.disableDrag()?0:-1),p(),T(i.isOverlay()&&i.isDragging()?1:-1),p(3),ie("transform",!i.disableDrag()&&i.draggingStyle()),p(),T(i.isOverlay()&&!i.disableDrag()?5:-1))},encapsulation:2,changeDetection:0})}}return n})(),b;var pr=(()=>{class n{constructor(){this.#t=C(_e),this.#i=C(I),this.#e=C(ge),this.#n=_(null),this.shSortable=c(),this.sortableGroup=c(),this.sortDrop=re(),this.afterDrop=re(),this.crossDrop=re(),this.dragStartIndex=_(-1),this.dragToIndex=_(-1),this.initialPositions=_([]),this.dragables=_([]),this.abortController=null,this.isDropping=!1,this.isCrossTarget=!1,this.draggingEffect=N(()=>{let e=this.dragToIndex(),t=this.dragStartIndex(),i=this.dragables(),s=this.initialPositions();if(e>-1&&s.length>0){this.#e.removeClass(this.#i.nativeElement,"item-dragged-out");let r=null,a=-1;!this.isCrossTarget&&t>-1&&i.length>t?(r=i[t],a=t):this.isCrossTarget&&this.#n()&&(r=this.#n(),a=s.length-1);for(let l=0;l<i.length;l++){if(l===t&&!this.isCrossTarget)continue;let d=this.getVisualIndexOfElement(l);if(d<s.length&&s[l]){let u=s[d].x-s[l].x,m=s[d].y-s[l].y,x=`translate(${u}px, ${m}px)`;i[l].style.transform!==x&&this.#e.setStyle(i[l],"transform",x)}}if(r&&a>-1&&s[e]&&s[a]){let l=s[e].x-s[a].x,d=s[e].y-s[a].y,u=`translate(${l}px, ${d}px)`;r.style.transform!==u&&this.#e.setStyle(r,"transform",u)}}else if(t>-1&&e===-1&&!this.isCrossTarget){this.#e.addClass(this.#i.nativeElement,"item-dragged-out");for(let r=0;r<i.length;r++)i[r].style.transform!==""&&this.#e.setStyle(i[r],"transform","")}}),this.draggablesEffect=N(()=>{let e=this.dragables();this.abortController&&this.abortController.abort(),this.abortController=new AbortController;for(let t of e)t.addEventListener("dragstart",i=>this.dragStart(i),{signal:this.abortController.signal}),t.addEventListener("dragend",()=>this.dragEnd(),{signal:this.abortController.signal})}),this.#r=typeof MutationObserver<"u"?new MutationObserver(e=>{for(let t of e)if(t.type==="childList"){let i=Array.from(this.#i.nativeElement.querySelectorAll("[draggable]:not(.sortable-spacer)"));this.dragables.set(i),this.isDropping&&(this.isDropping=!1,this.#o(),b.activeTarget===this&&(b.activeTarget=null),b.activeSource===this&&(b.activeSource=null))}}):void 0}#t;#i;#e;#n;static{this.activeSource=null}static{this.activeDraggedElement=null}static{this.activeTarget=null}getIndexOfElement(e){return this.dragables().findIndex(t=>t===e)}dragStart(e){if(e.target&&e.dataTransfer){let t=e.target,i=this.#t.elementFromPoint(e.clientX,e.clientY),s=i?.hasAttribute("sort-handle")||i?.closest("[sort-handle]")!==null,r;if(s)r=t.closest("[draggable]");else if(r=t,r.parentElement?.querySelector("[sort-handle]")!==null||!r.draggable){e.preventDefault();return}e.dataTransfer.effectAllowed="move",b.activeSource=this,b.activeDraggedElement=r,b.activeTarget=this,this.isCrossTarget=!1;let a=this.#i.nativeElement.getBoundingClientRect(),l=this.#i.nativeElement,d=Array.from(this.dragables()).map(S=>{let D=S.getBoundingClientRect();return{x:D.left-a.left-l.clientLeft+l.scrollLeft,y:D.top-a.top-l.clientTop+l.scrollTop,width:D.width,height:D.height}});this.initialPositions.set(d);let u=r.getBoundingClientRect(),m=Math.max(0,e.clientX-u.left),x=Math.max(0,e.clientY-u.top);e.dataTransfer.setDragImage(r,m,x);let V=this.getIndexOfElement(r);this.dragStartIndex.set(V),this.dragToIndex.set(V),setTimeout(()=>{this.#e.addClass(r,"sortable-ghost"),this.#e.addClass(this.#i.nativeElement,"dragging")},0)}}ngOnInit(){typeof MutationObserver<"u"&&this.#r.observe(this.#i.nativeElement,{childList:!0})}dragEnter(e){if(!b.activeSource||b.activeSource===this)return;let t=b.activeSource.sortableGroup(),i=this.sortableGroup(),s=b.activeSource.shSortable(),r=this.shSortable(),a=!!(t&&i&&t===i),l=!!(s?.drop&&r?.drop&&s===r);if((a||l)&&(b.activeTarget=this,b.activeSource.dragToIndex.set(-1),!this.isCrossTarget)){this.isCrossTarget=!0,this.#e.addClass(this.#i.nativeElement,"dragging");let u=b.activeDraggedElement.cloneNode(!0);this.#e.setStyle(u,"transform",""),this.#e.removeClass(u,"sortable-ghost"),this.#i.nativeElement.appendChild(u);let m=Array.from(this.#i.nativeElement.querySelectorAll("[draggable]:not(.sortable-spacer)")),x=this.#i.nativeElement.getBoundingClientRect(),V=this.#i.nativeElement,S=m.map(D=>{let ce=D.getBoundingClientRect();return{x:ce.left-x.left-V.clientLeft+V.scrollLeft,y:ce.top-x.top-V.clientTop+V.scrollTop,width:ce.width,height:ce.height}});this.initialPositions.set(S),u.removeAttribute("draggable"),this.#e.addClass(u,"sortable-spacer"),this.#n.set(u),this.#e.addClass(u,"sortable-ghost"),this.dragToIndex.set(this.dragables().length)}}dragLeave(e){if(!(!b.activeSource||b.activeSource===this)){if(e.relatedTarget){if(this.#i.nativeElement.contains(e.relatedTarget))return}else{let t=this.#i.nativeElement.getBoundingClientRect();if(!(e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom))return}this.isCrossTarget&&(this.#o(),b.activeTarget===this&&(b.activeTarget=b.activeSource))}}dragOver(e){if(e.preventDefault(),e.dataTransfer.dropEffect="move",b.activeTarget!==this)return;let t=this.#i.nativeElement,i=t.getBoundingClientRect(),s=e.clientX-i.left-t.clientLeft+t.scrollLeft,r=e.clientY-i.top-t.clientTop+t.scrollTop,a=-1,l=1/0,d=this.initialPositions();for(let u=0;u<d.length;u++){let m=d[u],x=m.x+m.width/2,V=m.y+m.height/2,S=Math.hypot(s-x,r-V);S<l&&(l=S,a=u)}a!==-1&&this.dragToIndex()!==a&&this.dragToIndex.set(a)}getVisualIndexOfElement(e){let t=this.dragStartIndex(),i=this.dragToIndex(),s=e;return t>-1?i>t&&e>t&&e<=i?s=e-1:i<t&&e>=i&&e<t&&(s=e+1):this.isCrossTarget&&e>=i&&(s=e+1),s}drop(){if(b.activeSource){if(this.#e.removeClass(b.activeSource.#i.nativeElement,"dragging"),this.#e.removeClass(this.#i.nativeElement,"dragging"),b.activeSource===this){if(this.dragStartIndex()!==-1&&this.dragToIndex()!==-1&&this.dragStartIndex()!==this.dragToIndex()){this.isDropping=!0;let e={previousContainer:this,container:this,previousIndex:this.dragStartIndex(),currentIndex:this.dragToIndex()};this.shSortable()?.drop?this.shSortable().drop(e):(this.sortDrop.emit(e),this.afterDrop.emit({fromIndex:e.previousIndex,toIndex:e.currentIndex}))}}else if(b.activeTarget===this&&this.isCrossTarget){this.isDropping=!0,b.activeSource.isDropping=!0;let e={previousContainer:b.activeSource,container:this,previousIndex:b.activeSource.dragStartIndex(),currentIndex:this.dragToIndex()};this.shSortable()?.drop?this.shSortable().drop(e):(this.sortDrop.emit(e),this.crossDrop.emit({previousContainer:b.activeSource,currentContainer:this,previousIndex:b.activeSource.dragStartIndex(),currentIndex:this.dragToIndex()}))}}}dragEnd(){b.activeSource&&(b.activeSource.#e.removeClass(b.activeSource.#i.nativeElement,"dragging"),b.activeSource.#o()),b.activeTarget&&b.activeTarget!==b.activeSource&&(b.activeTarget.#e.removeClass(b.activeTarget.#i.nativeElement,"dragging"),b.activeTarget.#o()),b.activeSource=null,b.activeTarget=null,b.activeDraggedElement=null}#o(){this.#e.removeClass(this.#i.nativeElement,"dragging"),this.#e.removeClass(this.#i.nativeElement,"item-dragged-out");let e=this.#n();e&&(this.#e.removeChild(this.#i.nativeElement,e),this.#n.set(null)),this.#a(),this.dragStartIndex.set(-1),this.dragToIndex.set(-1),this.isCrossTarget=!1}#a(){let e=this.dragables();for(let t of e)this.#e.setStyle(t,"transform",""),this.#e.removeClass(t,"sortable-ghost")}#r;ngOnDestroy(){this.#r?.disconnect(),this.abortController?.abort()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shSortable",""]],hostAttrs:[1,"sh-sortable"],hostBindings:function(t,i){t&1&&E("dragenter",function(r){return i.dragEnter(r)})("dragleave",function(r){return i.dragLeave(r)})("dragover",function(r){return i.dragOver(r)})("drop",function(){return i.drop()})},inputs:{shSortable:[1,"shSortable"],sortableGroup:[1,"sortableGroup"]},outputs:{sortDrop:"sortDrop",afterDrop:"afterDrop",crossDrop:"crossDrop"}})}}return n})();b=pr;var Da=(()=>{class n extends ii{constructor(){super("[value], [step], [routerLinkActive], button, a","active"),this.color=c(null),this.hostClasses=Y("stepper",{color:this.color}),N(()=>{this.items().forEach(e=>{if(!e.querySelector(".sh-radio")){let t=document.createElement("div");t.className="sh-radio";let i=document.createElement("div");i.className="radio sh-sheet",t.append(i),e.prepend(t)}})})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-stepper"]],hostVars:2,hostBindings:function(t,i){t&2&&k(i.hostClasses())},inputs:{color:[1,"color"]},features:[G],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();var Sa=(()=>{class n{constructor(){this.#t=C(fr),this.shSort=c(),this.sortAsc=O(()=>{let e=this.#t.sortByColumn(),t=this.shSort();return!e||!t?!1:e===t}),this.sortDesc=O(()=>{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||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(t,i){t&1&&E("mousedown",function(){return i.toggleSort()}),t&2&&j("sort-asc",i.sortAsc())("sort-desc",i.sortDesc())},inputs:{shSort:[1,"shSort"]}})}}return n})();var He=1.5,fr=(()=>{class n{constructor(){this.#t=C(I),this.loading=c(!1),this.data=c([]),this.dataChange=re(),this.sortByColumn=$(null),this.color=c(null),this.variant=c(null),this.hostClasses=Y("table",{color:this.color,variant:this.variant}),this.thead=Z("thead"),this.tbody=Z("tbody"),this.columns=Ji(this.thead,["tr:first-child th"]),this.stickyHeaderHeight=O(()=>{let e=this.hostClasses();return this.thead()?.nativeElement?.clientHeight??0}),this.bodyEffect=N(()=>{let e=this.tbody()?.nativeElement,t=this.thead()?.nativeElement;if(!e||!t)return;let i=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=`${i}px`})}),this.resizing=_(!1),this.sizeTrigger=_(!0),this.#i=null,this.#e=_(!1),this.scrollXState=_(-1),this.scrollYState=_(-1),this.canScrollX=_(!1),this.canScrollY=_(!1),this.columnSizes=O(()=>{this.sizeTrigger();let e=this.columns.signal();return e.reduce((t,i,s)=>{let r=i,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=N(()=>{let e=this.sortByColumn();if(e===null)return this.#e()||(this.#i=this.data(),this.#e.set(!0)),this.dataChange.emit(structuredClone(this.#i));let t=e.startsWith("-")?e.slice(1):e,i=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"})),i?-u:u});this.dataChange.emit(s)})}#t;#i;#e;updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){this.#n()}onResize(e){this.#n()}ngAfterViewInit(){queueMicrotask(()=>this.#n())}toggleSort(e){let t=this.sortByColumn(),i=t===e?`-${e}`:t===`-${e}`?null:e;this.sortByColumn.set(i)}#n(){let e=this.#t.nativeElement,t=-1,i=-1,s=e.scrollWidth>e.clientWidth+He;if(s){let a=e.scrollLeft<=He;e.scrollWidth-(e.scrollLeft+e.clientWidth)<He?t=1:a||(t=0)}this.scrollXState.set(t),this.canScrollX.set(s);let r=e.scrollHeight>e.clientHeight+He;if(r){let a=e.scrollTop<=He;e.scrollHeight-(e.scrollTop+e.clientHeight)<He?i=1:a||(i=0)}this.scrollYState.set(i),this.canScrollY.set(r)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-table"]],viewQuery:function(t,i){t&1&&le(i.thead,Rs,5)(i.tbody,Ls,5),t&2&&te(2)},hostVars:18,hostBindings:function(t,i){t&1&&E("scroll",function(){return i.onScroll()})("resize",function(r){return i.onResize(r)},pi),t&2&&(k(i.hostClasses()),ie("grid-template-columns",i.columnSizes()),j("resizing",i.resizing())("can-scroll-x",i.canScrollX())("can-scroll-y",i.canScrollY())("scrolled-x",i.scrollXState()>=0)("scrolled-x-end",i.scrollXState()===1)("scrolled-y",i.scrollYState()>=0)("scrolled-y-end",i.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,i){t&1&&(H(Bs),f(0,"div",2),g(1),v(),w(2,js,1,0,"sh-progress-bar",3),f(3,"thead",null,0),g(5,1),g(6,2),v(),f(7,"tbody",null,1),g(9,3),v(),w(10,zs,2,0,"div",4)),t&2&&(p(2),T(i.loading()?2:-1),p(8),T(i.loading()?-1:10))},dependencies:[dr],encapsulation:2,changeDetection:0})}}return n})(),Ma=(()=>{class n extends ii{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=Y("tabs",{color:this.color,variant:this.variant})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-tabs"]],hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),ie("--tabs-id",i.id))},inputs:{color:[1,"color"],variant:[1,"variant"]},features:[G],ngContentSelectors:ae,decls:1,vars:0,template:function(t,i){t&1&&(H(),g(0))},encapsulation:2,changeDetection:0})}}return n})();var xa=(()=>{class n{constructor(){this.disableToggle=c(!1),this.isActive=$(),this.#t=N(()=>{this.disableToggle()&&this.isActive.set(!0)}),this.color=c(null),this.variant=c(null),this.hostClasses=Y("card",{color:this.color,variant:this.variant})}#t;toggle(){this.isActive.set(!this.isActive())}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-toggle-card"]],hostVars:4,hostBindings:function(t,i){t&2&&(k(i.hostClasses()),j("active",i.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,i){t&1&&(H($s),f(0,"h3",0),E("click",function(){return!i.disableToggle()&&i.toggle()}),g(1,0,null,Gs,1,0),w(3,qs,2,0,"sh-icon",1),v(),f(4,"div",2)(5,"div",3),g(6,1),v()()),t&2&&(p(3),T(i.disableToggle()?-1:3))},dependencies:[Me],encapsulation:2,changeDetection:0})}}return n})(),Ea=(()=>{class n{constructor(){this._elementRef=C(I),this.internalInput=Z("internalInput"),this.projectedInputs=at("input:not(.internal-input)",{childList:!0,attributes:!0}),this.checked=$(!1),this.color=c(null),this.variant=c(null),this.readonly=c(!1),this.disabled=c(!1),this.noInternalInput=c(!1),this.hostClasses=Y("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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["sh-toggle"]],viewQuery:function(t,i){t&1&&le(i.internalInput,ti,5),t&2&&te()},hostVars:3,hostBindings:function(t,i){t&1&&E("keydown.enter",function(r){return i.onEnter(r)}),t&2&&(K("disabled",i.disabled()?"":null),k(i.hostClasses()))},inputs:{checked:[1,"checked"],color:[1,"color"],variant:[1,"variant"],readonly:[1,"readonly"],disabled:[1,"disabled"],noInternalInput:[1,"noInternalInput"]},outputs:{checked:"checkedChange"},ngContentSelectors:ae,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,i){t&1&&(H(),P(0,"div",1),Ee(1,"div",2),B(),g(2),w(3,Us,2,2,"input",3)),t&2&&(p(3),T(i.projectedInputs().length===0&&!i.noInternalInput()?3:-1))},encapsulation:2,changeDetection:0})}}return n})();var wa=(()=>{class n{constructor(){this.filesOver=_(!1),this.filesDropped=re()}onDragOver(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!0)}onDragLeave(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1)}ondrop(e){e.preventDefault(),e.stopPropagation(),this.filesOver.set(!1);let t=e.dataTransfer?.files;t&&t.length>0&&this.filesDropped.emit(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(t,i){t&1&&E("dragover",function(r){return i.onDragOver(r)})("dragleave",function(r){return i.onDragLeave(r)})("drop",function(r){return i.ondrop(r)}),t&2&&j("filesover",i.filesOver())},outputs:{filesDropped:"filesDropped"}})}}return n})();var gr=(()=>{class n{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=O(()=>this.content()instanceof $e),this.#t=C(_e),this.#i=C(I),this.#e=C(ge),this.#n=null,this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.isBelow=_(!1),this.openEffect=N(()=>{if(this.isOpen())queueMicrotask(()=>{let e=this.#i.nativeElement;!e||!e.isConnected||(this.#n&&this.#n.abort(),this.#n=new AbortController,e.showPopover(),this.SUPPORTS_ANCHOR||setTimeout(()=>{this.#o(e).addEventListener("scroll",()=>this.calculateTooltipPosition(),{signal:this.#n?.signal,passive:!0}),window?.addEventListener("resize",()=>this.calculateTooltipPosition(),{signal:this.#n?.signal,passive:!0}),this.calculateTooltipPosition()}))});else{let e=this.#i.nativeElement;if(e)try{e.matches(":popover-open")&&e.hidePopover()}catch{}this.#n?.abort(),this.#n=null}}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let e=this.anchorEl().nativeElement.getBoundingClientRect(),t=this.#i.nativeElement,i=t.getBoundingClientRect();if(i.width===0&&i.height===0)return;let s=8,r=(S,D)=>({left:S.left+S.width/2-D.width/2,top:S.top-D.height-s}),x=[r,(S,D)=>({left:S.right-D.width,top:S.top-D.height-s}),(S,D)=>({left:S.left,top:S.top-D.height-s}),(S,D)=>({left:S.left+S.width/2-D.width/2,top:S.bottom+s}),(S,D)=>({left:S.right-D.width,top:S.bottom+s}),(S,D)=>({left:S.left,top:S.bottom+s})];for(let S of x){let D=S(e,i);if(this.#r(D,i)){this.#a(D,t),this.isBelow.set(D.top>e.top);return}}let V=this.#s(r(e,i),i);this.#a(V,t),this.isBelow.set(V.top>e.top)}}#t;#i;#e;#n;ngOnDestroy(){this.#n?.abort(),this.#n=null}#o(e){let t=["scroll","auto"],i=e.parentElement;for(;i;){if(t.indexOf(window?.getComputedStyle(i).overflowY)>-1&&i.scrollHeight>i.clientHeight)return i;i=i.parentElement}return this.#t.documentElement}#a(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")}#r(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||n)}}static{this.\u0275cmp=A({type:n,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,i){t&2&&(K("popover","manual"),ie("position-anchor",i.positionAnchorName()),j("below",i.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,i){t&1&&(f(0,"div",0),w(1,Xs,1,4,"ng-container")(2,Qs,1,1),v()),t&2&&(p(),T(i.isTemplate()?1:2))},dependencies:[Ht],encapsulation:2})}}return n})(),W=null,Ta=(()=>{class n{constructor(){this.shTooltip=c.required(),this.#t=N(()=>{let e=this.shTooltip();oe(()=>{this.isOpen()&&W?.component===this&&W?.wrapperComponentRef&&(W.wrapperComponentRef.setInput("content",e),W.wrapperComponentRef.changeDetectorRef.detectChanges())})}),this.#i=C(I),this.#e=C(gi),this.#n=C(di),this.debounceTimer=null,this.DEBOUNCE_DELAY=50,this.anchorName=`--${rt()}`,this.isOpen=_(!1),this.destroyTimeout=null}#t;#i;#e;#n;onMouseEnter(e){e.stopPropagation(),W?.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(W?.wrapperComponentRef||!this.shTooltip()){W?.component===this&&W?.wrapperComponentRef&&W.wrapperComponentRef.setInput("content",this.shTooltip());return}W={wrapperComponentRef:this.#e.createComponent(gr,{environmentInjector:this.#n}),component:this},W.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),W.wrapperComponentRef.setInput("anchorEl",this.#i),W.wrapperComponentRef.setInput("isOpen",this.isOpen),W.wrapperComponentRef.setInput("content",this.shTooltip()),W.wrapperComponentRef.setInput("close",()=>this.cleanupTooltip()),W.wrapperComponentRef.changeDetectorRef.detectChanges(),W.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",e=>{e.stopPropagation(),this.cancelCleanupTimer()}),W.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",e=>{e.stopPropagation(),this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){W?.wrapperComponentRef&&(W.component.cancelCleanupTimer(),W.component.isOpen.set(!1),W.wrapperComponentRef.location.nativeElement.hidePopover(),this.destroyTimeout=setTimeout(()=>{queueMicrotask(()=>{W?.wrapperComponentRef.destroy(),W=null})},this.DEBOUNCE_DELAY))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=L({type:n,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(t,i){t&1&&E("mouseenter",function(r){return i.onMouseEnter(r)})("mouseleave",function(r){return i.onMouseLeave(r)}),t&2&&(ie("anchor-name",i.anchorName),j("active",i.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}})}}return n})();export{Se as a,nn as b,Oi as c,yi as d,Ir as e,Ar as f,wn as g,tt as h,xt as i,Pr as j,In as k,Pn as l,Rn as m,Bn as n,qi as o,$n as p,Gn as q,Fr as r,Rr as s,Lr as t,Zi as u,Me 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,oi as H,ga as I,ma as J,va as K,dr as L,_a as M,Ca as N,ur as O,ya as P,ba as Q,Da as R,Sa as S,fr as T,Ma as U,xa as V,Ea as W,wa as X,Ta as Y};
@@ -1,2 +1,2 @@
1
- import{a as At}from"./chunk-ZK3S23CJ.js";import"./chunk-GO22QPW4.js";import{a as $t}from"./chunk-FMDSOHVR.js";import"./chunk-NBKLLQQO.js";import{a as yt}from"./chunk-3XCT4PYH.js";import"./chunk-I625OICV.js";import"./chunk-XCVBN7EK.js";import"./chunk-ADB5QRUO.js";import"./chunk-22PELS6R.js";import"./chunk-6Q6SSTBK.js";import"./chunk-MRSBKQQM.js";import{a as ee}from"./chunk-7FDLOZXV.js";import"./chunk-EQNDYV43.js";import{a as ae}from"./chunk-35APLYI4.js";import"./chunk-LU7TIW3P.js";import{a as x}from"./chunk-YMUS7QSB.js";import"./chunk-ZXQSQRKN.js";import"./chunk-XZNYCTQB.js";import{a as Ft}from"./chunk-R6TFME5I.js";import{a as Et,c as ut}from"./chunk-AZRNX5LU.js";import{B as D,E as mt,G as ft,H as Z,L as It,M as Mt,N as Pt,P as ht,W as Ot,Y as Rt,c as W,e as q,i as j,m as pt,s as K,t as Q,v as w,w as Y,z as Nt}from"./chunk-NCXKMSRH.js";import{d as Gt}from"./chunk-QAQMMCTH.js";import"./chunk-KHZ5AXGT.js";import"./chunk-L2QOWZDR.js";import"./chunk-BRL4YYWO.js";import"./chunk-BDQJFOCO.js";import"./chunk-FSHBOASN.js";import{$b as S,Bc as J,Cb as C,Db as s,Eb as o,F as G,Fb as m,Mb as I,Pa as _t,Rc as v,Sa as l,Tb as P,Ub as h,Vb as _,Wb as U,Xb as V,Yb as B,Yc as gt,Zb as d,_ as O,a as st,b as at,c as lt,da as u,ea as p,gb as b,gc as ct,hc as dt,kc as F,lb as oe,mb as rt,nc as $,oc as H,pa as c,pc as se,ra as k,sc as A,tb as Tt,tc as y,ub as St,uc as L,wb as g,xb as E,yc as Ct}from"./chunk-UH2E7MMT.js";import"./chunk-7CGTOI24.js";var Dt=["formRef"],xt=()=>[import("./chunk-BME6TJIR.js").then(n=>n.OptionsListComponent)];function kt(n,t){n&1&&(s(0,"sh-alert",3),_(1,1),o())}function Jt(n,t){if(n&1){let e=I();s(0,"app-options-list",5),L("optionsChange",function(a){u(e);let T=S();return y(T.settings,a)||(T.settings=a),p(a)}),o()}if(n&2){let e=S();A("options",e.settings),C("hasFreeTextSettings",!0)}}var X=class n{#e=O(x);#n=O(Gt);formRef=gt.required("formRef");settings=c([]);isSubmitting=c(!1);isLoadingOptions=c(!0);saved=c(!1);lastRecievedServerSettings=c({});serverSettingsEffect=k(()=>{let t=this.#e.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([i,a],T)=>{if(i.startsWith("--")){let f=i.substring(2);this.settings.update(N=>(N.some(M=>M.Name===f||M.Name===i)||N.push({Name:i,Value:a}),N))}T===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),i=t.map(N=>N.Name?.startsWith("--")?N.Name:`--${N.Name}`),T=Object.keys(e).filter(N=>N.startsWith("--")).filter(N=>!i.includes(N)),f=t.reduce((N,M)=>{let R=M.Name?.startsWith("--")?M.Name:`--${M.Name}`;return N[R]=M.Value,N},{});T.forEach(N=>{f[N]=null}),this.#n.patchApiV1Serversettings({requestBody:f}).pipe(G(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#e.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,i){e&1&&ct(i.formRef,Dt,5),e&2&&dt()},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,i){e&1&&(s(0,"div",2),g(1,kt,2,0,"sh-alert",3),s(2,"button",4),d("click",function(){return i.submit()}),P(3,0),m(4,"sh-icon"),h(),o()(),rt(5,Jt,1,2),Tt(6,5,xt)),e&2&&(l(),E(i.saved()?1:-1),l(),F("loading",i.isSubmitting()),l(4),St(!i.isLoadingOptions()))},dependencies:[Q,D,w,Y],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"],changeDetection:0})};function zt(n,t){if(n&1){let e=I();s(0,"sh-form-field",12)(1,"input",13),L("ngModelChange",function(a){u(e);let T=S(2);return y(T.registerUrl,a)||(T.registerUrl=a),p(a)}),o()(),s(2,"button",14),d("click",function(){u(e);let a=S(2);return p(a.register())}),_(3,0),o()}if(n&2){let e=S(2);l(),A("ngModel",e.registerUrl)}}function Ut(n,t){if(n&1&&(s(0,"div",9)(1,"label"),_(2,1),o(),s(3,"a",15),$(4),o()()),n&2){let e=S(2);l(3),C("href",Ct(e.claimUrl()),_t),l(),H(e.claimUrl())}}function Vt(n,t){n&1&&(s(0,"div",9)(1,"label"),_(2,2),o()())}function Bt(n,t){if(n&1){let e=I();s(0,"button",14),d("click",function(){u(e);let a=S(2);return p(a.cancel())}),_(1,3),o()}}function Ht(n,t){if(n&1){let e=I();s(0,"button",14),d("click",function(){u(e);let a=S(2);return p(a.disable())}),_(1,4),o()}}function Wt(n,t){if(n&1){let e=I();s(0,"button",14),d("click",function(){u(e);let a=S(2);return p(a.enable())}),_(1,5),o(),s(2,"button",16),d("click",function(){u(e);let a=S(2);return p(a.delete())}),_(3,6),o()}}function qt(n,t){n&1&&(P(0,7,1),m(1,"sh-icon"),h())}function jt(n,t){n&1&&(P(0,7,2),m(1,"sh-icon"),h())}function Kt(n,t){if(n&1){let e=I();s(0,"sh-chip",17),d("click",function(){u(e);let a=S(2);return p(a.copyReportingUrl())}),P(1,7),g(2,qt,2,0,"sh-icon")(3,jt,2,0,"sh-icon"),h(),o()}if(n&2){let e=S(2);l(2),E(e.copiedReportingUrl()===!0?2:3)}}function Qt(n,t){if(n&1&&(s(0,"div",8),g(1,zt,4,1),g(2,Ut,5,3,"div",9),g(3,Vt,3,0,"div",9),g(4,Bt,2,0,"button",10),g(5,Ht,2,0,"button",10),g(6,Wt,4,0),g(7,Kt,4,1,"sh-chip",11),o()),n&2){let e=S();l(),E(e.state()==="inactive"?1:-1),l(),E(e.state()==="registered"?2:-1),l(),E(e.state()==="registering"?3:-1),l(),E(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),E(e.state()==="connected"||e.state()==="connecting"?5:-1),l(),E(e.state()==="disabled"?6:-1),l(),E(e.additionalReportingUrl()!==""?7:-1)}}var te=class n{#e=O(ee);#n=O(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;additionalReportingUrl=v(()=>{let t=this.#n.serverSettings();return this.#e.state()==="inactive"?"":t&&t["additional-report-url"]||""});copiedReportingUrl=c(!1);ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(t))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let i;i=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let T;T=$localize`Disable console connection`;let f;f=$localize`Enable console connection`;let N;N=$localize` Delete console connection setup `;let M;return M=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,M=B(M),[t,e,i,a,T,f,N,M,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,i){e&1&&g(0,Qt,8,7,"div",8),e&2&&E(i.state()!=="unknown"?0:-1)},dependencies:[K,W,q,j,Z,D,mt,w],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"],changeDetection:0})};function bt(...n){let t=c(...n);return Object.defineProperty(t,"value",{get:t.asReadonly(),set:t.set.bind(t)})}var ne=()=>({standalone:!0});function Yt(n,t){if(n&1&&(s(0,"label"),P(1,35),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.remoteControlTooltip())}}function Zt(n,t){if(n&1&&(s(0,"label"),P(1,36),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.remoteControlTooltip())}}function en(n,t){if(n&1&&(s(0,"label"),P(1,37),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.connectionStatusIndicatorTooltip())}}function tn(n,t){if(n&1&&(s(0,"label"),P(1,38),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.connectionStatusIndicatorTooltip())}}function nn(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,33),o(),s(4,"p"),_(5,34),o()(),s(6,"div",84)(7,"sh-toggle",73),d("checkedChange",function(a){u(e);let T=S(2);return p(T.toggleConsoleControl(a))}),g(8,Yt,3,1,"label")(9,Zt,3,1,"label"),o(),s(10,"sh-toggle",73),d("checkedChange",function(a){u(e);let T=S(2);return p(T.saveHideConsoleConnectionStatus(a))}),g(11,en,3,1,"label")(12,tn,3,1,"label"),o()()()}if(n&2){let e=S(2);l(7),C("checked",!e.consoleControlDisabled()),l(),E(e.consoleControlDisabled()?8:9),l(2),C("checked",!e.hideConsoleConnectionStatus()),l(),E(e.hideConsoleConnectionStatus()?11:12)}}function on(n,t){n&1&&(s(0,"label"),_(1,41),o())}function sn(n,t){n&1&&(s(0,"label"),_(1,42),o())}function an(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,39),o(),s(4,"p"),_(5,40),o()(),s(6,"div",62)(7,"sh-toggle",73),d("checkedChange",function(a){u(e);let T=S(2);return p(T.saveHideConsoleConnectionStatus(a))}),g(8,on,2,0,"label")(9,sn,2,0,"label"),o()()()}if(n&2){let e=S(2);l(7),C("checked",!e.hideConsoleConnectionStatus()),l(),E(e.hideConsoleConnectionStatus()?8:9)}}function ln(n,t){if(n&1&&(s(0,"section")(1,"div",61)(2,"h3"),_(3,32),o(),s(4,"p"),$(5),o()(),s(6,"div",62),m(7,"app-remote-control"),o()(),g(8,nn,13,4,"section")(9,an,10,2,"section")),n&2){let e=S();l(5),H(e.remoteControlStatus()),l(3),E(e.remoteControlState()!="inactive"?8:9)}}function _n(n,t){n&1&&(s(0,"sh-icon",90),$(1,"check"),o())}function rn(n,t){n&1&&(s(0,"sh-icon",91),$(1,"prohibit"),o())}function Tn(n,t){if(n&1){let e=I();s(0,"button",95),d("click",function(){u(e);let a=S(2);return p(a.updatePassphrase())}),_(1,46),o()}if(n&2){let e=S(2);F("loading",e.isUpdating())}}function Sn(n,t){if(n&1){let e=I();s(0,"button",96),d("click",function(){u(e);let a=S(2);return p(a.updatePassphrase())}),_(1,47),o()}if(n&2){let e=S(2);F("loading",e.isUpdating()),C("disabled",!0)}}function cn(n,t){if(n&1){let e=I();s(0,"sh-form-field")(1,"label",86),_(2,43),o(),s(3,"input",87),L("ngModelChange",function(a){u(e);let T=S();return y(T.passphrase,a)||(T.passphrase=a),p(a)}),o()(),s(4,"sh-form-field")(5,"label",88),_(6,44),o(),s(7,"input",89),L("ngModelChange",function(a){u(e);let T=S();return y(T.repeatPassphrase,a)||(T.repeatPassphrase=a),p(a)}),o(),g(8,_n,2,0,"sh-icon",90)(9,rn,2,0,"sh-icon",91),o(),s(10,"div",67)(11,"button",92),d("click",function(){u(e);let a=S();return p(a.cancelPasswordChange())}),_(12,45),o(),g(13,Tn,2,2,"button",93)(14,Sn,2,3,"button",94),o()}if(n&2){let e=S();l(3),A("ngModel",e.passphrase),l(4),C("disabled",e.passphrase().length===0),A("ngModel",e.repeatPassphrase),l(),E(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),F("loading",e.isUpdating()),l(2),E(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function dn(n,t){n&1&&(s(0,"sh-icon",97),$(1,"check"),o())}function Cn(n,t){if(n&1){let e=I();s(0,"div",67)(1,"button",92),d("click",function(){u(e);let a=S();return p(a.openPassphraseForm())}),_(2,48),o(),g(3,dn,2,0,"sh-icon",97),o()}if(n&2){let e=S();l(3),E(e.passwordUpdated()?3:-1)}}function gn(n,t){n&1&&(P(0,11,1),m(1,"span"),h())}function En(n,t){n&1&&(P(0,11,2),m(1,"span"),h())}function un(n,t){if(n&1){let e=I();s(0,"sh-form-field")(1,"label",98),_(2,49),o(),s(3,"textarea",99),L("ngModelChange",function(a){u(e);let T=S();return y(T.allowedHostnames,a)||(T.allowedHostnames=a),p(a)}),o()(),s(4,"sh-alert",100),_(5,50),o(),s(6,"button",95),d("click",function(){u(e);let a=S();return p(a.updateAllowedHostnames())}),_(7,51),o()}if(n&2){let e=S();l(3),A("ngModel",e.allowedHostnames),l(3),F("loading",e.updatingAllowedHosts())}}function pn(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,52),o(),s(4,"p"),_(5,53),o()(),s(6,"div",62)(7,"sh-select",101)(8,"input",69),d("ngModelChange",function(a){u(e);let T=S();return p(T.updatePowerMode(a))}),o()()()()}if(n&2){let e=S();l(7),C("options",e.powerModeOptions())("isClearable",!1),l(),C("ngModel",e.powerModeCtrl())("ngModelOptions",J(4,ne))}}function Nn(n,t){if(n&1&&(s(0,"p"),_(1,54),o()),n&2){let e,i=S();l(),U((e=i.sysinfo())==null?null:e.ServerVersionName),V(1)}}function mn(n,t){n&1&&m(0,"sh-progress-bar",74)}function fn(n,t){if(n&1&&$(0),n&2){let e=t.$implicit;se(" ",e.label," ")}}function In(n,t){if(n&1&&$(0),n&2){let e=t.$implicit;se(" ",e.label," ")}}function Mn(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,55),o(),s(4,"p")(5,"span"),_(6,56),o(),s(7,"a",102),_(8,57),o(),m(9,"br")(10,"br"),s(11,"span"),_(12,58),o()()(),s(13,"div",62)(14,"sh-select",103)(15,"input",69),d("ngModelChange",function(a){u(e);let T=S();return p(T.updateUsageStatistics(a))}),o(),oe(16,In,1,1,"ng-template"),o()()()}if(n&2){let e=S();l(14),C("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),l(),C("ngModel",e.usageStatistics())("ngModelOptions",J(4,ne))}}function Pn(n,t,e){let i=bt(n),a=i[st];e?.equal&&(a.equal=e.equal);let T;return i.set=f=>{clearTimeout(T),T=setTimeout(()=>at(a,f),t)},i.update=f=>{clearTimeout(T),T=setTimeout(()=>lt(a,f),t)},i}var hn=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],wt=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],le=class n{#e=O(Nt);#n=O($t);#i=O(Ft);#t=O(x);#s=O(ee);#T=O(ut);#a=O(Et);#l=this.#a.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#n.isDarkMode;editAs=c("list");previousLang=this.#l;langCtrl=c(this.#l);powerModeCtrl=c("");usageStatistics=c("");updatingUsageStatistics=c(!1);remoteControlStatus=this.#s.status;remoteControlState=this.#s.state;updatingChannel=c(!1);updateChannel=c("");isUsingRelay=this.#T.relayIsEnabled;defaultClient=c(this.#S());usageStatisticsDisabled=v(()=>(this.#i.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");#c=k(()=>{let t=this.#i.systemInfo()?.DefaultUsageReportLevel??"",e=wt;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e)});remoteControlTooltip=c($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
1
+ import{a as At}from"./chunk-TMS3I5A2.js";import"./chunk-TSDCJYMP.js";import{a as $t}from"./chunk-NXEMSNQO.js";import"./chunk-V6U75SVY.js";import{a as yt}from"./chunk-6HY2QKBL.js";import"./chunk-54IBJBVK.js";import"./chunk-VOHSRCTH.js";import"./chunk-SDKAVOP6.js";import"./chunk-KDWGBKDI.js";import"./chunk-6Q6SSTBK.js";import"./chunk-FHH444ZI.js";import{a as ee}from"./chunk-S36F6ZJZ.js";import"./chunk-AC34YYIW.js";import{a as ae}from"./chunk-5TT43ERP.js";import"./chunk-Y3LMRA5G.js";import{a as x}from"./chunk-PAXRIMTV.js";import"./chunk-J6OYVDRR.js";import"./chunk-OMOPTBR2.js";import{a as Ft}from"./chunk-O6ZQRIZA.js";import{a as Et,c as ut}from"./chunk-MZAGGSG2.js";import{B as D,E as mt,G as ft,H as Z,L as It,M as Mt,N as Pt,P as ht,W as Ot,Y as Rt,c as W,e as q,i as j,m as pt,s as K,t as Q,v as w,w as Y,z as Nt}from"./chunk-E3UAEGAI.js";import{d as Gt}from"./chunk-4KFQXVKU.js";import"./chunk-G5IUH2UI.js";import"./chunk-AAUAZ76N.js";import"./chunk-7BK2K5ML.js";import"./chunk-GIITUFAQ.js";import"./chunk-MI3BETEH.js";import{$b as S,Bc as J,Cb as C,Db as s,Eb as o,F as G,Fb as m,Mb as I,Pa as _t,Rc as v,Sa as l,Tb as P,Ub as h,Vb as _,Wb as U,Xb as V,Yb as B,Yc as gt,Zb as d,_ as O,a as st,b as at,c as lt,da as u,ea as p,gb as b,gc as ct,hc as dt,kc as F,lb as oe,mb as rt,nc as $,oc as H,pa as c,pc as se,ra as k,sc as A,tb as Tt,tc as y,ub as St,uc as L,wb as g,xb as E,yc as Ct}from"./chunk-NFXXT6A3.js";import"./chunk-7CGTOI24.js";var Dt=["formRef"],xt=()=>[import("./chunk-NPL5UWFD.js").then(n=>n.OptionsListComponent)];function kt(n,t){n&1&&(s(0,"sh-alert",3),_(1,1),o())}function Jt(n,t){if(n&1){let e=I();s(0,"app-options-list",5),L("optionsChange",function(a){u(e);let T=S();return y(T.settings,a)||(T.settings=a),p(a)}),o()}if(n&2){let e=S();A("options",e.settings),C("hasFreeTextSettings",!0)}}var X=class n{#e=O(x);#n=O(Gt);formRef=gt.required("formRef");settings=c([]);isSubmitting=c(!1);isLoadingOptions=c(!0);saved=c(!1);lastRecievedServerSettings=c({});serverSettingsEffect=k(()=>{let t=this.#e.serverSettings();if(t===void 0)return;this.lastRecievedServerSettings.set(t),this.isLoadingOptions.set(!0);let e=Object.entries(t);e.forEach(([i,a],T)=>{if(i.startsWith("--")){let f=i.substring(2);this.settings.update(N=>(N.some(M=>M.Name===f||M.Name===i)||N.push({Name:i,Value:a}),N))}T===e.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let t=this.settings(),e=this.lastRecievedServerSettings(),i=t.map(N=>N.Name?.startsWith("--")?N.Name:`--${N.Name}`),T=Object.keys(e).filter(N=>N.startsWith("--")).filter(N=>!i.includes(N)),f=t.reduce((N,M)=>{let R=M.Name?.startsWith("--")?M.Name:`--${M.Name}`;return N[R]=M.Value,N},{});T.forEach(N=>{f[N]=null}),this.#n.patchApiV1Serversettings({requestBody:f}).pipe(G(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#e.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-advanced-options-settings"]],viewQuery:function(e,i){e&1&&ct(i.formRef,Dt,5),e&2&&dt()},decls:8,vars:4,consts:()=>{let t;t=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let e;return e=$localize`Settings saved`,[t,e,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(e,i){e&1&&(s(0,"div",2),g(1,kt,2,0,"sh-alert",3),s(2,"button",4),d("click",function(){return i.submit()}),P(3,0),m(4,"sh-icon"),h(),o()(),rt(5,Jt,1,2),Tt(6,5,xt)),e&2&&(l(),E(i.saved()?1:-1),l(),F("loading",i.isSubmitting()),l(4),St(!i.isLoadingOptions()))},dependencies:[Q,D,w,Y],styles:["[_nghost-%COMP%]{display:block;width:100%;max-width:40.625rem;justify-self:flex-end}.actions[_ngcontent-%COMP%]{display:flex;gap:.5rem;justify-content:flex-end;margin-bottom:.5rem}form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}.form-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:2fr 2.5rem;gap:.5rem;align-items:flex-end}.remote-volume-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}.remote-volume-wrap[_ngcontent-%COMP%] p.warning[_ngcontent-%COMP%]{color:#7d7d00}.row-inputs[_ngcontent-%COMP%]{display:flex;align-items:flex-end;gap:.5rem}.row-inputs[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1 0}.advanced-option[_ngcontent-%COMP%]{display:grid;gap:.5rem;grid-template-columns:1fr 1fr 2.5rem;align-items:flex-end}"],changeDetection:0})};function zt(n,t){if(n&1){let e=I();s(0,"sh-form-field",12)(1,"input",13),L("ngModelChange",function(a){u(e);let T=S(2);return y(T.registerUrl,a)||(T.registerUrl=a),p(a)}),o()(),s(2,"button",14),d("click",function(){u(e);let a=S(2);return p(a.register())}),_(3,0),o()}if(n&2){let e=S(2);l(),A("ngModel",e.registerUrl)}}function Ut(n,t){if(n&1&&(s(0,"div",9)(1,"label"),_(2,1),o(),s(3,"a",15),$(4),o()()),n&2){let e=S(2);l(3),C("href",Ct(e.claimUrl()),_t),l(),H(e.claimUrl())}}function Vt(n,t){n&1&&(s(0,"div",9)(1,"label"),_(2,2),o()())}function Bt(n,t){if(n&1){let e=I();s(0,"button",14),d("click",function(){u(e);let a=S(2);return p(a.cancel())}),_(1,3),o()}}function Ht(n,t){if(n&1){let e=I();s(0,"button",14),d("click",function(){u(e);let a=S(2);return p(a.disable())}),_(1,4),o()}}function Wt(n,t){if(n&1){let e=I();s(0,"button",14),d("click",function(){u(e);let a=S(2);return p(a.enable())}),_(1,5),o(),s(2,"button",16),d("click",function(){u(e);let a=S(2);return p(a.delete())}),_(3,6),o()}}function qt(n,t){n&1&&(P(0,7,1),m(1,"sh-icon"),h())}function jt(n,t){n&1&&(P(0,7,2),m(1,"sh-icon"),h())}function Kt(n,t){if(n&1){let e=I();s(0,"sh-chip",17),d("click",function(){u(e);let a=S(2);return p(a.copyReportingUrl())}),P(1,7),g(2,qt,2,0,"sh-icon")(3,jt,2,0,"sh-icon"),h(),o()}if(n&2){let e=S(2);l(2),E(e.copiedReportingUrl()===!0?2:3)}}function Qt(n,t){if(n&1&&(s(0,"div",8),g(1,zt,4,1),g(2,Ut,5,3,"div",9),g(3,Vt,3,0,"div",9),g(4,Bt,2,0,"button",10),g(5,Ht,2,0,"button",10),g(6,Wt,4,0),g(7,Kt,4,1,"sh-chip",11),o()),n&2){let e=S();l(),E(e.state()==="inactive"?1:-1),l(),E(e.state()==="registered"?2:-1),l(),E(e.state()==="registering"?3:-1),l(),E(e.state()==="registering"||e.state()==="registeringfaulted"||e.state()==="registered"?4:-1),l(),E(e.state()==="connected"||e.state()==="connecting"?5:-1),l(),E(e.state()==="disabled"?6:-1),l(),E(e.additionalReportingUrl()!==""?7:-1)}}var te=class n{#e=O(ee);#n=O(x);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;additionalReportingUrl=v(()=>{let t=this.#n.serverSettings();return this.#e.state()==="inactive"?"":t&&t["additional-report-url"]||""});copiedReportingUrl=c(!1);ngOnInit(){this.#e.refreshRemoteControlStatus()}cancel(){this.#e.cancelRemoteRegistration()}register(){this.#e.beginRemoteRegistration()}disable(){this.#e.disableRemoteControl()}enable(){this.#e.enableRemoteControl()}delete(){this.#e.deleteRemoteControl()}copyReportingUrl(){let t=this.additionalReportingUrl();t&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(t))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let t;t=$localize`Register on console`;let e;e=$localize`Machine is now registered, open this link to add it to your account:`;let i;i=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let T;T=$localize`Disable console connection`;let f;f=$localize`Enable console connection`;let N;N=$localize` Delete console connection setup `;let M;return M=$localize` Reporting configured by server ${"\uFFFD*2:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:check${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*2:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*3:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SH_ICON:copy${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SH_ICON:${"\uFFFD/*3:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,M=B(M),[t,e,i,a,T,f,N,M,[1,"field-row"],[1,"field-col"],["type","button","shButton","",1,"raised"],[1,"reporting-url","primary","simple"],["label","Registration URL","for","remoteControlRegisterUrl"],["type","text","sh-input","","id","remoteControlRegisterUrl","name","remoteControlRegisterUrl",3,"ngModelChange","ngModel"],["type","button","shButton","",1,"raised",3,"click"],["target","_blank",3,"href"],["type","button","shButton","",1,"raised","error",3,"click"],[1,"reporting-url","primary","simple",3,"click"]]},template:function(e,i){e&1&&g(0,Qt,8,7,"div",8),e&2&&E(i.state()!=="unknown"?0:-1)},dependencies:[K,W,q,j,Z,D,mt,w],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.reporting-url[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none;margin-top:.25rem}"],changeDetection:0})};function bt(...n){let t=c(...n);return Object.defineProperty(t,"value",{get:t.asReadonly(),set:t.set.bind(t)})}var ne=()=>({standalone:!0});function Yt(n,t){if(n&1&&(s(0,"label"),P(1,35),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.remoteControlTooltip())}}function Zt(n,t){if(n&1&&(s(0,"label"),P(1,36),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.remoteControlTooltip())}}function en(n,t){if(n&1&&(s(0,"label"),P(1,37),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.connectionStatusIndicatorTooltip())}}function tn(n,t){if(n&1&&(s(0,"label"),P(1,38),m(2,"sh-icon",85),h(),o()),n&2){let e=S(3);l(2),C("shTooltip",e.connectionStatusIndicatorTooltip())}}function nn(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,33),o(),s(4,"p"),_(5,34),o()(),s(6,"div",84)(7,"sh-toggle",73),d("checkedChange",function(a){u(e);let T=S(2);return p(T.toggleConsoleControl(a))}),g(8,Yt,3,1,"label")(9,Zt,3,1,"label"),o(),s(10,"sh-toggle",73),d("checkedChange",function(a){u(e);let T=S(2);return p(T.saveHideConsoleConnectionStatus(a))}),g(11,en,3,1,"label")(12,tn,3,1,"label"),o()()()}if(n&2){let e=S(2);l(7),C("checked",!e.consoleControlDisabled()),l(),E(e.consoleControlDisabled()?8:9),l(2),C("checked",!e.hideConsoleConnectionStatus()),l(),E(e.hideConsoleConnectionStatus()?11:12)}}function on(n,t){n&1&&(s(0,"label"),_(1,41),o())}function sn(n,t){n&1&&(s(0,"label"),_(1,42),o())}function an(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,39),o(),s(4,"p"),_(5,40),o()(),s(6,"div",62)(7,"sh-toggle",73),d("checkedChange",function(a){u(e);let T=S(2);return p(T.saveHideConsoleConnectionStatus(a))}),g(8,on,2,0,"label")(9,sn,2,0,"label"),o()()()}if(n&2){let e=S(2);l(7),C("checked",!e.hideConsoleConnectionStatus()),l(),E(e.hideConsoleConnectionStatus()?8:9)}}function ln(n,t){if(n&1&&(s(0,"section")(1,"div",61)(2,"h3"),_(3,32),o(),s(4,"p"),$(5),o()(),s(6,"div",62),m(7,"app-remote-control"),o()(),g(8,nn,13,4,"section")(9,an,10,2,"section")),n&2){let e=S();l(5),H(e.remoteControlStatus()),l(3),E(e.remoteControlState()!="inactive"?8:9)}}function _n(n,t){n&1&&(s(0,"sh-icon",90),$(1,"check"),o())}function rn(n,t){n&1&&(s(0,"sh-icon",91),$(1,"prohibit"),o())}function Tn(n,t){if(n&1){let e=I();s(0,"button",95),d("click",function(){u(e);let a=S(2);return p(a.updatePassphrase())}),_(1,46),o()}if(n&2){let e=S(2);F("loading",e.isUpdating())}}function Sn(n,t){if(n&1){let e=I();s(0,"button",96),d("click",function(){u(e);let a=S(2);return p(a.updatePassphrase())}),_(1,47),o()}if(n&2){let e=S(2);F("loading",e.isUpdating()),C("disabled",!0)}}function cn(n,t){if(n&1){let e=I();s(0,"sh-form-field")(1,"label",86),_(2,43),o(),s(3,"input",87),L("ngModelChange",function(a){u(e);let T=S();return y(T.passphrase,a)||(T.passphrase=a),p(a)}),o()(),s(4,"sh-form-field")(5,"label",88),_(6,44),o(),s(7,"input",89),L("ngModelChange",function(a){u(e);let T=S();return y(T.repeatPassphrase,a)||(T.repeatPassphrase=a),p(a)}),o(),g(8,_n,2,0,"sh-icon",90)(9,rn,2,0,"sh-icon",91),o(),s(10,"div",67)(11,"button",92),d("click",function(){u(e);let a=S();return p(a.cancelPasswordChange())}),_(12,45),o(),g(13,Tn,2,2,"button",93)(14,Sn,2,3,"button",94),o()}if(n&2){let e=S();l(3),A("ngModel",e.passphrase),l(4),C("disabled",e.passphrase().length===0),A("ngModel",e.repeatPassphrase),l(),E(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?8:9),l(3),F("loading",e.isUpdating()),l(2),E(e.passphrase().length!==0&&e.passphrase()===e.repeatPassphrase()?13:14)}}function dn(n,t){n&1&&(s(0,"sh-icon",97),$(1,"check"),o())}function Cn(n,t){if(n&1){let e=I();s(0,"div",67)(1,"button",92),d("click",function(){u(e);let a=S();return p(a.openPassphraseForm())}),_(2,48),o(),g(3,dn,2,0,"sh-icon",97),o()}if(n&2){let e=S();l(3),E(e.passwordUpdated()?3:-1)}}function gn(n,t){n&1&&(P(0,11,1),m(1,"span"),h())}function En(n,t){n&1&&(P(0,11,2),m(1,"span"),h())}function un(n,t){if(n&1){let e=I();s(0,"sh-form-field")(1,"label",98),_(2,49),o(),s(3,"textarea",99),L("ngModelChange",function(a){u(e);let T=S();return y(T.allowedHostnames,a)||(T.allowedHostnames=a),p(a)}),o()(),s(4,"sh-alert",100),_(5,50),o(),s(6,"button",95),d("click",function(){u(e);let a=S();return p(a.updateAllowedHostnames())}),_(7,51),o()}if(n&2){let e=S();l(3),A("ngModel",e.allowedHostnames),l(3),F("loading",e.updatingAllowedHosts())}}function pn(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,52),o(),s(4,"p"),_(5,53),o()(),s(6,"div",62)(7,"sh-select",101)(8,"input",69),d("ngModelChange",function(a){u(e);let T=S();return p(T.updatePowerMode(a))}),o()()()()}if(n&2){let e=S();l(7),C("options",e.powerModeOptions())("isClearable",!1),l(),C("ngModel",e.powerModeCtrl())("ngModelOptions",J(4,ne))}}function Nn(n,t){if(n&1&&(s(0,"p"),_(1,54),o()),n&2){let e,i=S();l(),U((e=i.sysinfo())==null?null:e.ServerVersionName),V(1)}}function mn(n,t){n&1&&m(0,"sh-progress-bar",74)}function fn(n,t){if(n&1&&$(0),n&2){let e=t.$implicit;se(" ",e.label," ")}}function In(n,t){if(n&1&&$(0),n&2){let e=t.$implicit;se(" ",e.label," ")}}function Mn(n,t){if(n&1){let e=I();s(0,"section")(1,"div",61)(2,"h3"),_(3,55),o(),s(4,"p")(5,"span"),_(6,56),o(),s(7,"a",102),_(8,57),o(),m(9,"br")(10,"br"),s(11,"span"),_(12,58),o()()(),s(13,"div",62)(14,"sh-select",103)(15,"input",69),d("ngModelChange",function(a){u(e);let T=S();return p(T.updateUsageStatistics(a))}),o(),oe(16,In,1,1,"ng-template"),o()()()}if(n&2){let e=S();l(14),C("options",e.usageStatisticsOptions())("isLoading",e.updatingUsageStatistics()),l(),C("ngModel",e.usageStatistics())("ngModelOptions",J(4,ne))}}function Pn(n,t,e){let i=bt(n),a=i[st];e?.equal&&(a.equal=e.equal);let T;return i.set=f=>{clearTimeout(T),T=setTimeout(()=>at(a,f),t)},i.update=f=>{clearTimeout(T),T=setTimeout(()=>lt(a,f),t)},i}var hn=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],wt=[{value:"none",label:$localize`System default ($value)`},{value:"information",label:$localize`Usage statistics, warnings, errors, and crashes`},{value:"warning",label:$localize`Warnings, errors and crashes`},{value:"error",label:$localize`Errors and crashes`},{value:"crash",label:$localize`Crashes only`},{value:"disabled",label:$localize`None / disabled`}],le=class n{#e=O(Nt);#n=O($t);#i=O(Ft);#t=O(x);#s=O(ee);#T=O(ut);#a=O(Et);#l=this.#a.getItem("locale")??"en-US";sysinfo=this.#i.systemInfo;isDarkMode=this.#n.isDarkMode;editAs=c("list");previousLang=this.#l;langCtrl=c(this.#l);powerModeCtrl=c("");usageStatistics=c("");updatingUsageStatistics=c(!1);remoteControlStatus=this.#s.status;remoteControlState=this.#s.state;updatingChannel=c(!1);updateChannel=c("");isUsingRelay=this.#T.relayIsEnabled;defaultClient=c(this.#S());usageStatisticsDisabled=v(()=>(this.#i.systemInfo()?.DefaultUsageReportLevel??"").toLowerCase()==="disabled");#c=k(()=>{let t=this.#i.systemInfo()?.DefaultUsageReportLevel??"",e=wt;e[0].label=$localize`System default (${t})`,this.usageStatisticsOptions.set(e)});remoteControlTooltip=c($localize`Disabling console control will disable remote access to this machine from the console, but will keep the
2
2
  registration intact and allow pushing settings from the console.`);connectionStatusIndicatorTooltip=c($localize`Hides the connection status indicator in the status bar. Useful if you are not using the remote console.`);setNewChannel(t){let e=this.updateChannel();this.updateChannel.set(t),this.#t.setUpdateChannel(t).pipe(G(()=>this.updatingChannel.set(!1))).subscribe()}allowRemoteAccess=c(!1);allowedHostnames=c("");loadedAllowedHostnames=c("");updatingRemoteAccess=c(!1);updatingAllowedHosts=c(!1);updatingConsoleControl=c(!1);consoleControlDisabled=c(!1);hideConsoleConnectionStatus=this.#t.isConsoleConnectionStatusHidden;updateRemoteAccess(t){this.allowRemoteAccess.set(t),this.#t.setRemoteAccessInterface(t?"any":"loopback").pipe(G(()=>this.updatingRemoteAccess.set(!1))).subscribe()}updateAllowedHostnames(){let t=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#t.setRemoteAccessAllowedHostnames(t).pipe(G(()=>this.updatingAllowedHosts.set(!1))).subscribe()}toggleConsoleControl(t){this.consoleControlDisabled.set(!t),this.#t.setDisableConsoleControl(!t).pipe(G(()=>this.updatingConsoleControl.set(!1))).subscribe()}updatingDisableTrayIconLogin=c(!1);disableTrayIconLogin=c(!1);saveDisableTrayIconLogin(t){let e=t;this.updatingDisableTrayIconLogin.set(!0),this.#t.setDisableTrayIconLogin(e).pipe(G(()=>this.updatingDisableTrayIconLogin.set(!1))).subscribe()}updatingHideConsoleConnectionStatus=c(!1);saveHideConsoleConnectionStatus(t){this.updatingHideConsoleConnectionStatus.set(!0),this.#t.setHideConsoleConnectionStatus(!t).pipe(G(()=>this.updatingHideConsoleConnectionStatus.set(!1))).subscribe()}showPassphraseForm=c(!1);isUpdating=c(!1);passphrase=c("");repeatPassphrase=c("");passwordUpdated=c(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#t.setRemoteAccessPassword(this.passphrase()).pipe(G(()=>this.isUpdating.set(!1))).subscribe({next:()=>{this.showPassphraseForm.set(!1),this.passwordUpdated.set(!0),setTimeout(()=>{this.passwordUpdated.set(!1)},3e3)}}))}openPassphraseForm(){this.showPassphraseForm.set(!0)}cancelPasswordChange(){this.showPassphraseForm.set(!1)}languageOptions=c(yt);powerModeOptions=v(()=>{let t=this.#i.systemInfo();return!t?.PowerModeProviders||t.PowerModeProviders.filter(e=>e!==""&&e!=="None").length==0?[]:t.PowerModeProviders.map(e=>({value:e==""?"default":e,label:e===""?$localize`Default`:e}))});usageStatisticsOptions=c(wt);timeTypeOptions=c(hn);timeType=c("none");timeValue=Pn(0,300);timeRange=v(()=>this.timeType()==="h"?[1,24]:[1,60]);updateLocale(t){!t||t===""||t===this.previousLang||(this.#a.setItem("locale",t),window.location.reload())}updateTimeValue(t){this.timeValue.set(t),this.#_()}updateTimeType(t){this.timeType()==="none"&&this.timeValue.set(1),this.timeType.set(t),this.#_()}#o;#_(){this.#o&&clearTimeout(this.#o),this.#o=setTimeout(()=>{let t=this.timeValue(),e=this.timeType(),i=e==="none"||t===0?"":`${t}${e}`;i!==this.#t.serverSettings()?.["startup-delay"]&&this.#t.setStartupDelay(i).subscribe()},1e3)}updateUsageStatistics(t){let e=this.usageStatistics();!t||t===""||t===e||(this.usageStatistics.set(t),this.updatingUsageStatistics.set(!0),this.#t.setUsageReporterLevel(t).subscribe())}updatePowerMode(t){this.powerModeCtrl()!==t&&(t==="default"&&(t=""),this.#t.setPowerModeProvider(t).subscribe())}serverSettingsEffect=k(()=>{let t=this.#t.serverSettings();if(t===void 0)return;let e=t["startup-delay"],i=e.slice(-1),a=e.slice(0,-1),T=["s","m","h"];this.disableTrayIconLogin.set(t["disable-tray-icon-login"]!=="False"),this.updateChannel.set(t["update-channel"]),this.allowRemoteAccess.set(t["server-listen-interface"]==="any"),this.allowedHostnames.set(t["allowed-hostnames"]),this.loadedAllowedHostnames.set(t["allowed-hostnames"]),this.consoleControlDisabled.set(t["disable-console-control"]==="True"),this.usageStatistics.set(t["usage-reporter-level"]===""?"none":t["usage-reporter-level"]),this.timeType.set(e==""?"none":T.includes(i)?i:"none"),this.timeValue.set(e==""?0:parseInt(a));let f=t["power-mode-provider"]===""||t["power-mode-provider"]==null?"default":t["power-mode-provider"];this.powerModeCtrl.set(f)});setDarkMode(){this.#n.setDarkMode()}setLightMode(){this.#n.setLightMode()}changeDefaultClientTo(t){this.defaultClient()!==t&&(t==="ngax"?this.#e.open(ae,{data:{title:$localize`Use legacy UI by default`,message:$localize`Are you sure you want to use the legacy user interface by default? This is not recommended unless you have a specific reason.`,confirmText:$localize`Use legacy UI by default`,cancelText:$localize`Cancel`},closed:e=>{e&&(window.location.href="/ngax",this.#r(t))}}):this.#r(t))}openLegacyUI(){this.#e.open(ae,{data:{title:$localize`Open legacy UI`,message:$localize`Are you sure you want to open the legacy user interface? This is not recommended unless you have a specific reason.`,confirmText:$localize`Open legacy UI`,cancelText:$localize`Cancel`},closed:t=>{t&&window.open("/ngax","_blank")}})}#r(t){var e=new Date;e.setTime(e.getTime()+2160*60*60*1e3),document.cookie="default-client="+t+"; expires="+e.toUTCString()+"; path=/",this.defaultClient.set(t)}#S(){let t=document.cookie.split(";");for(let e=0;e<t.length;e++){let i=t[e].trim();if(i.startsWith("default-client="))return i.substring(15)}return"ngclient"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=b({type:n,selectors:[["app-settings"]],decls:128,vars:37,consts:()=>{let t;t=$localize`Settings`;let e;e=$localize`Configure your backup settings.`;let i;i=$localize`Color theme`;let a;a=$localize`Customize your application theme`;let T;T=$localize`Passwords`;let f;f=$localize`Change server passphrase`;let N;N=$localize`Language`;let M;M=$localize`Select a language for the platform`;let R;R=$localize`Use legacy interface`;let _e;_e=$localize`Use the old user interface, not recommended unless you have a specific reason.`;let re;re=$localize`${"\uFFFD#46\uFFFD"}:START_TAG_SH_ICON:arrow-square-right${"\uFFFD/#46\uFFFD"}:CLOSE_TAG_SH_ICON: Open legacy UI `;let z;z=$localize`${"\uFFFD#49\uFFFD"}:START_TAG_SH_ICON:swap${"\uFFFD/#49\uFFFD"}:CLOSE_TAG_SH_ICON:${"\uFFFD*50:1\uFFFD"}:START_BLOCK_IF:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set current UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*50:1\uFFFD"}:CLOSE_BLOCK_IF:${"\uFFFD*51:2\uFFFD"}:START_BLOCK_ELSE:${"[\uFFFD#1:1\uFFFD|\uFFFD#1:2\uFFFD]"}:START_TAG_SPAN:Set legacy UI as default${"[\uFFFD/#1:1\uFFFD|\uFFFD/#1:2\uFFFD]"}:CLOSE_TAG_SPAN:${"\uFFFD/*51:2\uFFFD"}:CLOSE_BLOCK_ELSE:`,z=B(z);let Te;Te=$localize`Allow remote access (requires restart)`;let Se;Se=$localize` By allowing remote access, the server listens to requests from any machine on your network. If you enable this option, make sure you are always using the computer on a secure firewall protected network. `;let ce;ce=$localize`Allow remote access`;let de;de=$localize`Prevent tray icon automatic log-in`;let Ce;Ce=$localize` By default, the tray icon will open the user interface with a token that unlocks the user interface. This ensures that you can access the user interface from the tray icon, while requiring others to enter a password. If you prefer having to type in the password, even when accessing the user interface from the tray icon, enable this option. `;let ge;ge=$localize`Prevent tray icon automatic log-in`;let Ee;Ee=$localize`Update channel`;let ue;ue=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let pe;pe=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ne;Ne=$localize`Stable`;let me;me=$localize`Official stable release.`;let fe;fe=$localize`Beta`;let Ie;Ie=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let Me;Me=$localize`Experimental`;let Pe;Pe=$localize`Early previews of new features. Not for use with important data.`;let he;he=$localize`Canary`;let Oe;Oe=$localize`Builds for developers and testers only. Not for use with important data.`;let Re;Re=$localize`Pause after startup or hibernation`;let Ge;Ge=$localize` Duplicati will run when started, but will remain in paused state for the duration. Duplicati will occupy minimal system resources and no backups will be run. `;let Fe;Fe=$localize`Advanced options`;let $e;$e=$localize`Connect to console`;let Ae;Ae=$localize`Configure console control`;let ye;ye=$localize` You can control various settings for the remote console connection. If you are not using the console, you can also hide the connection status indicator. `;let Le;Le=$localize` Remote control disabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let ve;ve=$localize` Remote control enabled ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let be;be=$localize` Console connection status is hidden ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let we;we=$localize` Console connection status is visible ${"\uFFFD#2\uFFFD"}:START_TAG_SH_ICON:info${"\uFFFD/#2\uFFFD"}:CLOSE_TAG_SH_ICON:`;let De;De=$localize`Toggle console connection status`;let xe;xe=$localize`Toggle the visibility of the console connection status indicator.`;let ke;ke=$localize`Console connection status is hidden`;let Je;Je=$localize`Console connection status is visible`;let Xe;Xe=$localize`Enter new password`;let ze;ze=$localize`Repeat password`;let ie;ie=$localize`Password have to be filled and have to match`;let Ue;Ue=$localize`Passphrase`;let Ve;Ve=$localize`Repeat passphrase`;let Be;Be=$localize`Cancel`;let He;He=$localize` Update passphrase `;let We;We=$localize` Update passphrase `;let qe;qe=$localize`Change password`;let je;je=$localize`Allowed hostnames`;let Ke;Ke=$localize` To prevent various DNS based attacks, Duplicati limits the allowed hostnames to the ones listed here. Direct IP access and localhost is always allowed. Multiple hostnames can be supplied with a semicolon separator. If any of the allowed hostnames is an asterisk (*), all hostnames are allowed and this feature is disabled. If the field is empty, only IP address and localhost access is allowed. `;let Qe;Qe=$localize` Update allowed hostnames `;let Ye;Ye=$localize`Power mode provider`;let Ze;Ze=$localize` The power mode provider monitors the system for when it enters a low power state and pauses Duplicati. When the system resumes, Duplicati will resume as well. Choosing the None option disables detection of low power states and Duplicati will run all the time. `;let et;et=$localize`Installed version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let tt;tt=$localize`Usage statistics`;let nt;nt=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate `;let it;it=$localize`public usage statistics.`;let ot;return ot=$localize` All usage reports are sent anonymously and do not contain any personal information. They contain information about hardware and operating system, the type of backend, backup duration, overall size of source data and similar data. They do not contain paths, filenames, usernames, passwords or similar sensitive information. `,[t,e,i,a,T,f,N,M,R,_e,re,z,Te,Se,ce,de,Ce,ge,Ee,ue,pe,Ne,me,fe,Ie,Me,Pe,he,Oe,Re,Ge,Fe,$e,Ae,ye,Le,ve,be,we,De,xe,ke,Je,Ue,Ve,Be,He,We,qe,je,Ke,Qe,Ye,Ze,et,tt,nt,it,ot,[1,"content"],[1,"title"],[1,"left"],[1,"right"],[1,"themes"],["src","assets/images/light-theme.png","alt","light theme",3,"click"],["src","assets/images/dark-theme.png","alt","dark theme",3,"click"],[1,"right","passphrase-form"],[1,"actions"],["value","value","label","label",3,"options","isClearable","inlineSearch"],["type","text",3,"ngModelChange","ngModel","ngModelOptions"],[1,"right","buttons"],["shButton","",1,"primary",3,"click"],[1,"right","remote-access-form"],[1,"primary","raised",3,"checkedChange","checked"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised",3,"checked"],[1,"field-row"],[1,"raised","primary",3,"unit"],["type","range",3,"ngModelChange","min","max","disabled","ngModel","ngModelOptions"],["label","label","value","value",3,"options","isClearable"],["type","text",3,"ngModelChange","ngModel"],[1,"advanced-settings"],[1,"right","multiple"],["suffix","",3,"shTooltip"],["for","password"],["type","password","name","password","autocomplete","new-password","placeholder",Xe,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","new-password","placeholder",ze,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loading"],["shButton","","shTooltip",ie,1,"raised","primary",3,"loading","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",ie,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"],["value","value","label","label",3,"options","isClearable"],["href","https://usage-reporter.duplicati.com/","target","_blank"],["label","label","value","value",3,"options","isLoading"]]},template:function(e,i){if(e&1&&(m(0,"app-status-bar"),s(1,"div",59)(2,"header")(3,"div",60)(4,"h2"),_(5,0),o(),s(6,"p"),_(7,1),o()()(),g(8,ln,10,2),s(9,"section")(10,"div",61)(11,"h3"),_(12,2),o(),s(13,"p"),_(14,3),o()(),s(15,"div",62)(16,"div",63)(17,"img",64),d("click",function(){return i.setLightMode()}),o(),s(18,"img",65),d("click",function(){return i.setDarkMode()}),o()()()(),s(19,"section")(20,"div",61)(21,"h3"),_(22,4),o(),s(23,"p"),_(24,5),o()(),s(25,"div",66),g(26,cn,15,7)(27,Cn,4,1,"div",67),o()(),s(28,"section")(29,"div",61)(30,"h3"),_(31,6),o(),s(32,"p"),_(33,7),o()(),s(34,"div",62)(35,"sh-select",68)(36,"input",69),d("ngModelChange",function(T){return i.updateLocale(T)}),o()()()(),s(37,"section")(38,"div",61)(39,"h3"),_(40,8),o(),s(41,"p"),_(42,9),o()(),s(43,"div",70)(44,"button",71),d("click",function(){return i.openLegacyUI()}),P(45,10),m(46,"sh-icon"),h(),o(),s(47,"button",71),d("click",function(){return i.changeDefaultClientTo(i.defaultClient()==="ngclient"?"ngax":"ngclient")}),P(48,11),m(49,"sh-icon"),g(50,gn,2,0,"span")(51,En,2,0,"span"),h(),o()()(),s(52,"section")(53,"div",61)(54,"h3"),_(55,12),o(),s(56,"p"),_(57,13),o()(),s(58,"div",72)(59,"sh-toggle",73),d("checkedChange",function(T){return i.updateRemoteAccess(T)}),s(60,"label"),_(61,14),o()(),g(62,un,8,3),o()(),s(63,"section")(64,"div",61)(65,"h3"),_(66,15),o(),s(67,"p"),_(68,16),o()(),s(69,"div",62)(70,"sh-toggle",73),d("checkedChange",function(T){return i.saveDisableTrayIconLogin(T)}),s(71,"label"),_(72,17),o()()()(),g(73,pn,9,5,"section"),s(74,"section")(75,"div",61)(76,"h3"),_(77,18),o(),g(78,Nn,2,1,"p"),g(79,mn,1,0,"sh-progress-bar",74),o(),s(80,"div",75)(81,"div",76),d("click",function(){return i.setNewChannel("")}),s(82,"sh-radio",77),_(83,19),o(),s(84,"p"),_(85,20),o()(),s(86,"div",76),d("click",function(){return i.setNewChannel("stable")}),s(87,"sh-radio",77),_(88,21),o(),s(89,"p"),_(90,22),o()(),s(91,"div",76),d("click",function(){return i.setNewChannel("beta")}),s(92,"sh-radio",77),_(93,23),o(),s(94,"p"),_(95,24),o()(),s(96,"div",76),d("click",function(){return i.setNewChannel("experimental")}),s(97,"sh-radio",77),_(98,25),o(),s(99,"p"),_(100,26),o()(),s(101,"div",76),d("click",function(){return i.setNewChannel("canary")}),s(102,"sh-radio",77),_(103,27),o(),s(104,"p"),_(105,28),o()()()(),s(106,"section")(107,"div",61)(108,"h3"),_(109,29),o(),s(110,"p"),_(111,30),o()(),s(112,"div",62)(113,"div",78)(114,"sh-range-slider",79)(115,"input",80),L("ngModelChange",function(T){return y(i.timeValue,T)||(i.timeValue=T),T}),d("ngModelChange",function(T){return i.updateTimeValue(T)}),o()(),s(116,"sh-select",81)(117,"input",82),d("ngModelChange",function(T){return i.updateTimeType(T)}),o(),oe(118,fn,1,1,"ng-template"),o()()()(),g(119,Mn,17,5,"section"),o(),m(120,"sh-divider"),s(121,"div",59)(122,"section")(123,"div",83)(124,"h3"),_(125,31),o(),m(126,"app-advanced-options-settings"),o()()(),m(127,"sh-divider")),e&2){let a,T,f;l(8),E(i.isUsingRelay()?-1:8),l(9),F("active",!i.isDarkMode()),l(),F("active",i.isDarkMode()),l(8),E(i.showPassphraseForm()?26:27),l(9),C("options",i.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),C("ngModel",i.langCtrl())("ngModelOptions",J(35,ne)),l(14),E(i.defaultClient()==="ngax"?50:51),l(9),C("checked",i.allowRemoteAccess()),l(3),E(i.allowRemoteAccess()?62:-1),l(8),C("checked",i.disableTrayIconLogin()),l(3),E(i.powerModeOptions().length>0?73:-1),l(5),E((a=i.sysinfo())!=null&&a.ServerVersion?78:-1),l(),E(i.updatingChannel()?79:-1),l(3),C("checked",i.updateChannel()===""),l(),U((T=i.sysinfo())==null?null:T.DefaultUpdateChannel),V(83),l(2),U((f=i.sysinfo())==null?null:f.ServerVersionType),V(85),l(2),C("checked",i.updateChannel()==="stable"),l(5),C("checked",i.updateChannel()==="beta"),l(5),C("checked",i.updateChannel()==="experimental"),l(5),C("checked",i.updateChannel()==="canary"),l(12),C("unit",i.timeType()==="none"?"s":i.timeType()),l(),C("min",i.timeRange()[0])("max",i.timeRange()[1])("disabled",i.timeType()==="none"),A("ngModel",i.timeValue),C("ngModelOptions",J(36,ne)),l(),C("options",i.timeTypeOptions())("isClearable",!1),l(),C("ngModel",i.timeType()),l(2),E(i.usageStatisticsDisabled()?-1:119)}},dependencies:[K,W,pt,q,j,Q,At,te,X,D,Mt,Pt,It,Ot,Rt,Z,w,ft,Y,ht],styles:["[_nghost-%COMP%]{display:block}.content[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:0 2rem 2rem}header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:2rem 0;background:var(--base-1);border-bottom:1px solid var(--base-4)}header[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem}section[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding:2rem 0;border-top:1px solid var(--base-4)}@media only screen and (max-width:768px){section[_ngcontent-%COMP%]{grid-template-columns:1fr}}section[_ngcontent-%COMP%]:first-of-type{border-top:0}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.25rem;align-items:flex-start}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] sh-button-group[_ngcontent-%COMP%]{margin-top:.25rem}section[_ngcontent-%COMP%] .left[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;width:50%}.passphrase-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;gap:1rem}.passphrase-form[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.remote-access-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.themes[_ngcontent-%COMP%]{display:flex;gap:.5rem}.themes[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:15rem;border-radius:var(--shape-3);cursor:pointer}.themes[_ngcontent-%COMP%] img.active[_ngcontent-%COMP%]{border:2px solid var(--primary-8)}.radios[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.radio-option[_ngcontent-%COMP%]{cursor:pointer}.radio-option[_ngcontent-%COMP%] sh-radio[_ngcontent-%COMP%]{color:var(--base-8);margin-bottom:.25rem}.radio-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-wrap:balance;color:var(--base-9)}.field-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.field-row[_ngcontent-%COMP%]{display:flex;gap:.5rem;width:100%}.field-row[_ngcontent-%COMP%] sh-form-field[_ngcontent-%COMP%], .field-row[_ngcontent-%COMP%] sh-select[_ngcontent-%COMP%]{flex:1 0}.advanced-settings[_ngcontent-%COMP%]{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr;gap:1rem}.right.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1rem}.right.multiple[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}"],changeDetection:0})};export{Pn as debounceSignal,le as default};
@@ -1 +1 @@
1
- import{ma as l}from"./chunk-BDQJFOCO.js";import{_ as p,jb as f}from"./chunk-UH2E7MMT.js";var m=class o{decimalPipe=p(l);transform(t,e=!1,i=!1){if(i&&t===0)return e?"0 Bytes":"0B";if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let a=this.#t(),n=a?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r=Math.floor(Math.log(t)/Math.log(a?1e3:1024));r=Math.min(r,n.length-1);let c=t/Math.pow(a?1e3:1024,r),s=this.decimalPipe.transform(c,"1.0-2");return s?`${s} ${e?n[r]:n[r].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(i=>e.includes(i)):!1}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=f({name:"bytes",type:o,pure:!0})};export{m as a};
1
+ import{ma as l}from"./chunk-GIITUFAQ.js";import{_ as p,jb as f}from"./chunk-NFXXT6A3.js";var m=class o{decimalPipe=p(l);transform(t,e=!1,i=!1){if(i&&t===0)return e?"0 Bytes":"0B";if(!t||t===0||(typeof t=="string"&&(t=parseInt(t)),isNaN(t)))return"";let a=this.#t(),n=a?["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"]:["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],r=Math.floor(Math.log(t)/Math.log(a?1e3:1024));r=Math.min(r,n.length-1);let c=t/Math.pow(a?1e3:1024,r),s=this.decimalPipe.transform(c,"1.0-2");return s?`${s} ${e?n[r]:n[r].replace("Bytes","B")}`:""}#t(){if(navigator.userAgentData?.platform.toLowerCase().includes("mac"))return!0;let t=["mac","macintosh","os x","apple"],e=((navigator.userAgent||navigator.platform||navigator.vendor)??"").toLowerCase();return e?t.some(i=>e.includes(i)):!1}static \u0275fac=function(e){return new(e||o)};static \u0275pipe=f({name:"bytes",type:o,pure:!0})};export{m as a};