@duplicati/ngclient 0.0.159 → 0.0.161

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 (87) hide show
  1. package/assets/sh.woff2 +0 -0
  2. package/{chunk-F6ME3VE6.js → chunk-2KU5X7TN.js} +1 -1
  3. package/{chunk-XX3WLO55.js → chunk-2MIEBBFN.js} +1 -1
  4. package/{chunk-2WGW24ZH.js → chunk-2PUCHKOK.js} +1 -1
  5. package/{chunk-4NBLWONL.js → chunk-2YGOHGD2.js} +1 -1
  6. package/{chunk-XUIDYG2O.js → chunk-3S7YCGEK.js} +1 -1
  7. package/chunk-3V4DGTSM.js +1 -0
  8. package/{chunk-RZKDEJUP.js → chunk-4FWCJIJ4.js} +1 -1
  9. package/{chunk-NM7WJRU7.js → chunk-4KEA3KF7.js} +1 -1
  10. package/chunk-4NOWNXOS.js +1 -0
  11. package/{chunk-QNM5CG4Z.js → chunk-5CTM5KYC.js} +1 -1
  12. package/{chunk-XLDVUBTQ.js → chunk-5LX6M65H.js} +1 -1
  13. package/{chunk-GCCJSS4C.js → chunk-6XI3IP27.js} +1 -1
  14. package/{chunk-4IXUXIXV.js → chunk-A366Q7F5.js} +1 -1
  15. package/{chunk-2S6ABLBU.js → chunk-AUR4SBGD.js} +1 -1
  16. package/chunk-AVTEJPQ4.js +1 -0
  17. package/{chunk-PHQBBCUL.js → chunk-B32YSHV5.js} +1 -1
  18. package/{chunk-PULERFBI.js → chunk-BF2IYOUB.js} +1 -1
  19. package/{chunk-CCKT2GLS.js → chunk-BK2MSH26.js} +1 -1
  20. package/{chunk-72QJ345F.js → chunk-BZ2XGEV5.js} +1 -1
  21. package/{chunk-BQJICFF5.js → chunk-C7EUC34O.js} +1 -1
  22. package/{chunk-GOVVHVP2.js → chunk-CSL7HCLZ.js} +1 -1
  23. package/{chunk-SWD3HS57.js → chunk-CTAP3SAA.js} +1 -1
  24. package/{chunk-ZDME3W57.js → chunk-DJQOPNQJ.js} +1 -1
  25. package/{chunk-LSKF2B33.js → chunk-DUCPSWRQ.js} +1 -1
  26. package/{chunk-KAAYNQ7L.js → chunk-E6H2XELA.js} +1 -1
  27. package/chunk-EYFTFGJS.js +1 -0
  28. package/{chunk-D6KZSKI7.js → chunk-F5Z5ZAIL.js} +1 -1
  29. package/{chunk-C6F6FP4R.js → chunk-FSG362SU.js} +1 -1
  30. package/{chunk-D4F7SID5.js → chunk-G6VJHFTW.js} +1 -1
  31. package/{chunk-UST7PIBI.js → chunk-GMUNZKVL.js} +1 -1
  32. package/{chunk-MGTRQOF6.js → chunk-H44BDPZE.js} +1 -1
  33. package/{chunk-GYDI67IZ.js → chunk-H7ZKBS2Q.js} +1 -1
  34. package/{chunk-ZBVBVQO7.js → chunk-HHU5JW5J.js} +1 -1
  35. package/{chunk-4IIDZXFC.js → chunk-HJBNADRP.js} +1 -1
  36. package/{chunk-A5LNLNWR.js → chunk-HYQ6MPYI.js} +1 -1
  37. package/chunk-IUK3B6GX.js +1 -0
  38. package/{chunk-5WDKKAXO.js → chunk-K2BANUEJ.js} +1 -1
  39. package/{chunk-FNJU5CD3.js → chunk-KIIJBHZE.js} +1 -1
  40. package/{chunk-VXRNST6C.js → chunk-KXJZEADJ.js} +1 -1
  41. package/chunk-MBYGBVHF.js +1 -0
  42. package/{chunk-6YGURBW6.js → chunk-MHPSC3FM.js} +1 -1
  43. package/chunk-MTNOIKEK.js +1 -0
  44. package/chunk-MWXDEOZO.js +3 -0
  45. package/{chunk-U2Y2D6MA.js → chunk-NCDXMDW5.js} +1 -1
  46. package/{chunk-QX3IRESN.js → chunk-NSAY2K7E.js} +1 -1
  47. package/{chunk-PUNIQ3JW.js → chunk-NSPJ3ZXL.js} +1 -1
  48. package/{chunk-2QJVTZ56.js → chunk-OJ3H3ZRA.js} +1 -1
  49. package/chunk-P6IZFXXC.js +1 -0
  50. package/{chunk-2ZGJS4OW.js → chunk-PFZASYQH.js} +1 -1
  51. package/chunk-QF5WMLMJ.js +1 -0
  52. package/chunk-QWNOIRT4.js +1 -0
  53. package/{chunk-CHYEYO6L.js → chunk-R2FAS2C3.js} +1 -1
  54. package/chunk-RPUPXDQE.js +1 -0
  55. package/{chunk-7LYN2XHO.js → chunk-S4OFJD2F.js} +1 -1
  56. package/{chunk-7JHF4R5J.js → chunk-SPMSFKWG.js} +1 -1
  57. package/{chunk-EBANXXYI.js → chunk-SWAQMTBY.js} +1 -1
  58. package/{chunk-EMRD3UKA.js → chunk-TI6AQ6OL.js} +1 -1
  59. package/chunk-U562AGPC.js +1 -0
  60. package/chunk-U7GOWS7E.js +1 -0
  61. package/chunk-XJ7KXQWK.js +1 -0
  62. package/{chunk-KT7U3QIP.js → chunk-XXVFRNSP.js} +1 -1
  63. package/{chunk-3NFAL4U4.js → chunk-YCORZV4Z.js} +1 -1
  64. package/{chunk-ZMTLDG46.js → chunk-YPJRYB54.js} +1 -1
  65. package/{chunk-DW7A6PHZ.js → chunk-YYJFEUNT.js} +1 -1
  66. package/{chunk-KXM6LF3X.js → chunk-Z7WHLTVV.js} +1 -1
  67. package/index.html +2 -2
  68. package/main-L6FT73U5.js +1 -0
  69. package/package.json +1 -1
  70. package/styles-FD7LUDV4.css +1 -0
  71. package/chunk-33J6ZQYE.js +0 -1
  72. package/chunk-3OCWLJKG.js +0 -3
  73. package/chunk-72HORZFV.js +0 -1
  74. package/chunk-A2LUC3NC.js +0 -1
  75. package/chunk-DTOILX4E.js +0 -1
  76. package/chunk-GDQZEB3A.js +0 -1
  77. package/chunk-H3UUJ5EW.js +0 -1
  78. package/chunk-K3ILN56U.js +0 -1
  79. package/chunk-OKDVOGSM.js +0 -1
  80. package/chunk-PQSZLHZR.js +0 -1
  81. package/chunk-Q65KFDJ5.js +0 -1
  82. package/chunk-QF4DQYEP.js +0 -1
  83. package/chunk-RUXUFB7C.js +0 -1
  84. package/chunk-RWPF5SQT.js +0 -1
  85. package/chunk-W2CMPDWL.js +0 -1
  86. package/main-AK26L46R.js +0 -1
  87. package/styles-DYNNLJCR.css +0 -1
package/chunk-K3ILN56U.js DELETED
@@ -1 +0,0 @@
1
- import{a as pt}from"./chunk-VXRNST6C.js";import{a as Ct}from"./chunk-YJPY33RI.js";import{a as gt}from"./chunk-D4F7SID5.js";import{a as k}from"./chunk-6YGURBW6.js";import"./chunk-Z27IQRKV.js";import"./chunk-GYDI67IZ.js";import"./chunk-4NBLWONL.js";import"./chunk-CCKT2GLS.js";import{a as ct}from"./chunk-72HORZFV.js";import"./chunk-6Q6SSTBK.js";import{a as ne}from"./chunk-XLDVUBTQ.js";import"./chunk-LN26XMBJ.js";import"./chunk-7LYN2XHO.js";import{a as nt}from"./chunk-GCCJSS4C.js";import"./chunk-ABYM5HWA.js";import"./chunk-Z35OG2DV.js";import{B as D,E as st,F as at,G as te,K as rt,L as lt,M as _t,O as dt,V as Tt,X as St,c as j,e as K,i as Q,m as it,s as Y,t as Z,u as F,w as ee,z as ot}from"./chunk-QF4DQYEP.js";import{h as x}from"./chunk-2QJVTZ56.js";import"./chunk-I2LW33GO.js";import"./chunk-5ZSBXGHQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-JYWOYPSQ.js";import{$b as S,B as $,Bc as q,Cb as h,Db as i,Eb as o,Fb as I,H as R,Mb as P,Pa as He,Qc as A,Rc as b,Sa as l,Tb as z,Ub as B,V as We,Vb as r,Wb as ae,Xb as re,Xc as tt,Yb as Qe,Zb as c,_ as N,a as Ue,b as ze,c as Be,cb as w,ea as u,fa as m,gc as Ye,hb as se,hc as Ze,ib as qe,kc as M,n as L,nc as O,oc as W,pa as T,pc as H,sb as je,sc as G,tb as Ke,tc as y,uc as v,xb as p,yb as C,yc as et}from"./chunk-QONLYWYC.js";import"./chunk-EUDKD2JW.js";var Et=["formRef"],Nt=()=>[import("./chunk-33J6ZQYE.js").then(s=>s.OptionsListComponent)];function ft(s,e){s&1&&(i(0,"sh-alert",3),r(1,1),o())}function ht(s,e){if(s&1){let t=P();i(0,"app-options-list",5),v("optionsChange",function(a){u(t);let _=S();return y(_.settings,a)||(_.settings=a),m(a)}),o()}if(s&2){let t=S();G("options",t.settings),h("hasFreeTextSettings",!0)}}var X=class s{#e=N(k);#t=N(x);formRef=tt.required("formRef");settings=T([]);isSubmitting=T(!1);isLoadingOptions=T(!0);saved=T(!1);lastRecievedServerSettings=T({});serverSettingsEffect=b(()=>{let e=this.#e.serverSettings();if(e===void 0)return;this.lastRecievedServerSettings.set(e),this.isLoadingOptions.set(!0);let t=Object.entries(e);t.forEach(([n,a],_)=>{if(n.startsWith("--")){let E=n.substring(2);this.settings.update(g=>(g.some(f=>f.Name===E)||g.push({Name:E,Value:a}),g))}_===t.length-1&&this.isLoadingOptions.set(!1)})});submit(){this.isSubmitting.set(!0);let e=this.settings(),t=this.lastRecievedServerSettings(),n=e.map(g=>g.Name),_=Object.keys(t).filter(g=>g.startsWith("--")).filter(g=>!n.includes(g.replace("--",""))),E=e.reduce((g,f)=>{let V=f.Name?.startsWith("--")?f.Name:`--${f.Name}`;return g[V]=f.Value,g},{});_.forEach(g=>{E[g]=null}),this.#t.patchApiV1Serversettings({requestBody:E}).pipe(R(()=>this.isSubmitting.set(!1))).subscribe({next:()=>{this.#e.refreshServerSettings(),this.saved.set(!0),setTimeout(()=>{this.saved.set(!1)},3e3)}})}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=w({type:s,selectors:[["app-advanced-options-settings"]],viewQuery:function(t,n){t&1&&Ye(n.formRef,Et,5),t&2&&Ze()},decls:8,vars:4,consts:()=>{let e;e=$localize`${"\uFFFD#4\uFFFD"}:START_TAG_SH_ICON:floppy-disk${"\uFFFD/#4\uFFFD"}:CLOSE_TAG_SH_ICON: Save settings `;let t;return t=$localize`Settings saved`,[e,t,[1,"actions"],[1,"success"],["shButton","","type","button",1,"raised","primary",3,"click"],[3,"optionsChange","options","hasFreeTextSettings"]]},template:function(t,n){t&1&&(i(0,"div",2),p(1,ft,2,0,"sh-alert",3),i(2,"button",4),c("click",function(){return n.submit()}),z(3,0),I(4,"sh-icon"),B(),o()(),qe(5,ht,1,2),je(6,5,Nt)),t&2&&(l(),C(n.saved()?1:-1),l(),M("loader",n.isSubmitting()),l(4),Ke(!n.isLoadingOptions()))},dependencies:[Z,D,F,ee],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})};var J=class s{#e=N(ot);#t=N(x);#o=N(ne);repeatRegisterTimer=null;state=T("unknown");claimUrl=T(null);registerUrl=T("");status=A(()=>{let e=this.state();return e==="enabled"?"Remote control is enabled but not connected":e==="connected"?"Remote control is connected":e==="registering"?"Registering machine...":e==="registeringfaulted"?"Registration failed":e==="registered"?"Registered, waiting for accept":e==="disabled"?"Remote control is configured but not enabled":e==="unknown"?"...loading...":"Remote control is not set up"});sysInfoEffect=b(()=>{let e=this.#o.systemInfo();e&&this.registerUrl.set(e.RemoteControlRegistrationUrl??"")});#n(e){e.RegistrationUrl&&this.claimUrl.set(e.RegistrationUrl),e.IsConnected?this.state.set("connected"):e.IsEnabled?this.state.set("enabled"):e.CanEnable?this.state.set("disabled"):e.IsRegisteringFaulted?this.state.set("registeringfaulted"):e.IsRegistering?e.RegistrationUrl!=null&&e.RegistrationUrl.trim().length>0?this.state.set("registered"):this.state.set("registering"):this.state.set("inactive");let t=this.state();this.repeatRegisterTimer!==null&&(clearTimeout(this.repeatRegisterTimer),this.repeatRegisterTimer=null),t==="registering"&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:""}}).subscribe({next:n=>this.#n(n),error:n=>this.#i(n)})},5e3)),(t==="enabled"||t==="registered")&&(this.repeatRegisterTimer=setTimeout(()=>{this.#t.getApiV1RemotecontrolStatus().subscribe({next:n=>this.#n(n),error:n=>this.#i(n)})},5e3)),e.IsRegistering&&e.CanEnable&&this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:n=>this.#n(n)})}#i(e){this.#t.getApiV1RemotecontrolStatus().subscribe({next:t=>this.#n(t)})}refreshRemoteControlStatus(){this.#t.getApiV1RemotecontrolStatus().subscribe({next:e=>this.#n(e),error:e=>this.#i(e)})}beginRemoteRegistration(){this.state.set("registering"),this.#t.postApiV1RemotecontrolRegister({requestBody:{RegistrationUrl:this.registerUrl()}}).subscribe({next:e=>this.#n(e),error:e=>this.#i(e)})}cancelRemoteRegistration(){this.#t.deleteApiV1RemotecontrolRegister().subscribe({next:e=>this.#n(e),error:e=>this.#i(e)})}enableRemoteControl(){this.#t.postApiV1RemotecontrolEnable().subscribe({next:e=>this.#n(e),error:e=>this.#i(e)})}disableRemoteControl(){this.#t.postApiV1RemotecontrolDisable().subscribe({next:e=>this.#n(e),error:e=>this.#i(e)})}deleteRemoteControl(){let e=this;this.#e.open(ct,{data:{title:$localize`Confirm delete`,message:$localize`Are you sure you want to delete the remote control registration?`,confirmText:$localize`Delete registration`,cancelText:$localize`Cancel`},closed:t=>{t&&e.#t.deleteApiV1RemotecontrolRegistration().subscribe({next:n=>e.#n(n),error:n=>e.#i(n)})}})}static \u0275fac=function(t){return new(t||s)};static \u0275prov=We({token:s,factory:s.\u0275fac,providedIn:"root"})};function Pt(s,e){if(s&1){let t=P();i(0,"sh-form-field",11)(1,"input",12),v("ngModelChange",function(a){u(t);let _=S(2);return y(_.registerUrl,a)||(_.registerUrl=a),m(a)}),o()(),i(2,"button",13),c("click",function(){u(t);let a=S(2);return m(a.register())}),r(3,0),o()}if(s&2){let t=S(2);l(),G("ngModel",t.registerUrl)}}function Ot(s,e){if(s&1&&(i(0,"div",8)(1,"label"),r(2,1),o(),i(3,"a",14),O(4),o()()),s&2){let t=S(2);l(3),h("href",et(t.claimUrl()),He),l(),W(t.claimUrl())}}function Rt(s,e){s&1&&(i(0,"div",8)(1,"label"),r(2,2),o()())}function It(s,e){if(s&1){let t=P();i(0,"button",13),c("click",function(){u(t);let a=S(2);return m(a.cancel())}),r(1,3),o()}}function Gt(s,e){if(s&1){let t=P();i(0,"button",13),c("click",function(){u(t);let a=S(2);return m(a.disable())}),r(1,4),o()}}function yt(s,e){if(s&1){let t=P();i(0,"button",13),c("click",function(){u(t);let a=S(2);return m(a.enable())}),r(1,5),o(),i(2,"button",15),c("click",function(){u(t);let a=S(2);return m(a.delete())}),r(3,6),o()}}function vt(s,e){s&1&&(i(0,"sh-icon"),O(1,"check"),o())}function At(s,e){s&1&&(i(0,"sh-icon"),O(1,"copy"),o())}function bt(s,e){if(s&1){let t=P();i(0,"sh-chip",16),c("click",function(){u(t);let a=S(2);return m(a.copyReportingUrl())}),O(1," Reporting configured by server "),p(2,vt,2,0,"sh-icon")(3,At,2,0,"sh-icon"),o()}if(s&2){let t=S(2);l(2),C(t.copiedReportingUrl()===!0?2:3)}}function Lt(s,e){if(s&1&&(i(0,"div",7),p(1,Pt,4,1),p(2,Ot,5,3,"div",8),p(3,Rt,3,0,"div",8),p(4,It,2,0,"button",9),p(5,Gt,2,0,"button",9),p(6,yt,4,0),p(7,bt,4,1,"sh-chip",10),o()),s&2){let t=S();l(),C(t.state()==="inactive"?1:-1),l(),C(t.state()==="registered"?2:-1),l(),C(t.state()==="registering"?3:-1),l(),C(t.state()==="registering"||t.state()==="registeringfaulted"||t.state()==="registered"?4:-1),l(),C(t.state()==="connected"||t.state()==="enabled"?5:-1),l(),C(t.state()==="disabled"?6:-1),l(),C(t.additionalReportingUrl()!==""?7:-1)}}var ie=class s{#e=N(J);#t=N(k);state=this.#e.state;claimUrl=this.#e.claimUrl;registerUrl=this.#e.registerUrl;additionalReportingUrl=A(()=>{let e=this.#t.serverSettings();return this.#e.state()==="inactive"?"":e&&e["additional-report-url"]||""});copiedReportingUrl=T(!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 e=this.additionalReportingUrl();e&&(this.copiedReportingUrl.set(!0),setTimeout(()=>this.copiedReportingUrl.set(!1),2e3),navigator.clipboard.writeText(e))}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=w({type:s,selectors:[["app-remote-control"]],decls:1,vars:1,consts:()=>{let e;e=$localize`Register for remote control`;let t;t=$localize`Machine is now registered, open this link to add it to your account:`;let n;n=$localize`Registering, please wait...`;let a;a=$localize`Cancel registration`;let _;_=$localize`Disable remote control`;let E;E=$localize`Enable remote control`;let g;return g=$localize`Delete remote control setup`,[e,t,n,a,_,E,g,[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(t,n){t&1&&p(0,Lt,8,7,"div",7),t&2&&C(n.state()!=="unknown"?0:-1)},dependencies:[Y,j,K,Q,te,D,st,F],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 mt(...s){let e=T(...s);return Object.defineProperty(e,"value",{get:e.asReadonly(),set:e.set.bind(e)})}var _e=()=>({standalone:!0});function $t(s,e){s&1&&(i(0,"sh-icon",69),O(1,"check"),o())}function wt(s,e){s&1&&(i(0,"sh-icon",70),O(1,"prohibit"),o())}function Ft(s,e){if(s&1){let t=P();i(0,"button",74),c("click",function(){u(t);let a=S(2);return m(a.updatePassphrase())}),r(1,34),o()}if(s&2){let t=S(2);M("loader",t.isUpdating())}}function Dt(s,e){if(s&1){let t=P();i(0,"button",75),c("click",function(){u(t);let a=S(2);return m(a.updatePassphrase())}),r(1,35),o()}if(s&2){let t=S(2);M("loader",t.isUpdating()),h("disabled",!0)}}function xt(s,e){if(s&1){let t=P();i(0,"sh-form-field")(1,"label",65),r(2,31),o(),i(3,"input",66),v("ngModelChange",function(a){u(t);let _=S();return y(_.passphrase,a)||(_.passphrase=a),m(a)}),o()(),i(4,"sh-form-field")(5,"label",67),r(6,32),o(),i(7,"input",68),v("ngModelChange",function(a){u(t);let _=S();return y(_.repeatPassphrase,a)||(_.repeatPassphrase=a),m(a)}),o(),p(8,$t,2,0,"sh-icon",69)(9,wt,2,0,"sh-icon",70),o(),i(10,"div",48)(11,"button",71),c("click",function(){u(t);let a=S();return m(a.cancelPasswordChange())}),r(12,33),o(),p(13,Ft,2,2,"button",72)(14,Dt,2,3,"button",73),o()}if(s&2){let t=S();l(3),G("ngModel",t.passphrase),l(4),h("disabled",t.passphrase().length===0),G("ngModel",t.repeatPassphrase),l(),C(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?8:9),l(3),M("loader",t.isUpdating()),l(2),C(t.passphrase().length!==0&&t.passphrase()===t.repeatPassphrase()?13:14)}}function kt(s,e){s&1&&(i(0,"sh-icon",76),O(1,"check"),o())}function Jt(s,e){if(s&1){let t=P();i(0,"div",48)(1,"button",71),c("click",function(){u(t);let a=S();return m(a.openPassphraseForm())}),r(2,36),o(),p(3,kt,2,0,"sh-icon",76),o()}if(s&2){let t=S();l(3),C(t.passwordUpdated()?3:-1)}}function Xt(s,e){if(s&1){let t=P();i(0,"sh-form-field")(1,"label",77),r(2,37),o(),i(3,"textarea",78),v("ngModelChange",function(a){u(t);let _=S();return y(_.allowedHostnames,a)||(_.allowedHostnames=a),m(a)}),o()(),i(4,"sh-alert",79),r(5,38),o(),i(6,"button",74),c("click",function(){u(t);let a=S();return m(a.updateAllowedHostnames())}),r(7,39),o()}if(s&2){let t=S();l(3),G("ngModel",t.allowedHostnames),l(3),M("loader",t.updatingAllowedHosts())}}function Vt(s,e){if(s&1&&O(0),s&2){let t,n=S();H(" ",(t=n.sysinfo())==null?null:t.ServerVersion," ")}}function Ut(s,e){s&1&&I(0,"sh-progress-bar",53)}function zt(s,e){if(s&1&&O(0),s&2){let t=e.$implicit;H(" ",t.label," ")}}function Bt(s,e){if(s&1&&O(0),s&2){let t=e.$implicit;H(" ",t.label," ")}}function Wt(s,e,t){let n=mt(s),a=n[Ue];t?.equal&&(a.equal=t.equal);let _;return n.set=E=>{clearTimeout(_),_=setTimeout(()=>ze(a,E),e)},n.update=E=>{clearTimeout(_),_=setTimeout(()=>Be(a,E),e)},n}var Ht=[{value:"none",label:$localize`None`},{value:"s",label:$localize`Seconds`},{value:"m",label:$localize`Minutes`},{value:"h",label:$localize`Hours`}],qt=[{value:"none",label:$localize`System default (information)`},{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:"none",label:$localize`None / disabled`}],de=class s{#e=N(gt);#t=N(ne);#o=N(x);#n=N(k);#i=N(J);#s=N(nt);#a=this.#s.getItem("locale")??"en-US";sysinfo=this.#t.systemInfo;isDarkMode=this.#e.isDarkMode;editAs=T("list");previousLang=this.#a;langCtrl=T(this.#a);usageStatistics=T("");updatingUsageStatistics=T(!1);remoteControlStatus=this.#i.status;updatingChannel=T(!1);updateChannel=T("");setNewChannel(e){let t=this.updateChannel();this.updateChannel.set(e),this.#o.patchApiV1Serversettings({requestBody:{"update-channel":e}}).pipe(R(()=>this.updatingChannel.set(!1)),$(()=>(this.updateChannel.set(t),L(null)))).subscribe()}allowRemoteAccess=T(!1);allowedHostnames=T("");loadedAllowedHostnames=T("");updatingRemoteAccess=T(!1);updatingAllowedHosts=T(!1);updateRemoteAccess(){let e=this.allowRemoteAccess(),t=!e;this.allowRemoteAccess.set(t),this.#o.patchApiV1Serversettings({requestBody:{"server-listen-interface":t?"any":"loopback"}}).pipe(R(()=>this.updatingRemoteAccess.set(!1)),$(()=>(this.allowRemoteAccess.set(e),L(null)))).subscribe()}updateAllowedHostnames(){let e=this.loadedAllowedHostnames(),t=this.allowedHostnames();this.updatingAllowedHosts.set(!0),this.#o.patchApiV1Serversettings({requestBody:{"server-listen-interface":"any","allowed-hostnames":t}}).pipe(R(()=>this.updatingAllowedHosts.set(!1)),$(()=>(this.allowedHostnames.set(e),L(null)))).subscribe()}updatingDisableTrayIconLogin=T(!1);disableTrayIconLogin=T(!1);saveDisableTrayIconLogin(){let e=this.disableTrayIconLogin(),t=!e;this.updatingDisableTrayIconLogin.set(!0),this.disableTrayIconLogin.set(t),this.#o.patchApiV1Serversettings({requestBody:{"disable-tray-icon-login":t?"True":"False"}}).pipe(R(()=>this.updatingDisableTrayIconLogin.set(!1)),$(()=>(this.disableTrayIconLogin.set(e),L(null)))).subscribe()}showPassphraseForm=T(!1);isUpdating=T(!1);passphrase=T("");repeatPassphrase=T("");passwordUpdated=T(!1);updatePassphrase(){this.passphrase()===this.repeatPassphrase()&&(this.isUpdating.set(!0),this.#o.patchApiV1Serversettings({requestBody:{"server-passphrase":this.passphrase()}}).pipe(R(()=>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=T(Ct);usageStatisticsOptions=T(qt);timeTypeOptions=T(Ht);timeType=T("none");timeValue=Wt(0,300);timeRange=A(()=>this.timeType()==="h"?[0,24]:[0,60]);timeValueEffect=b(()=>{let e=this.timeValue(),t=this.#n.serverSettings();!t||t["startup-delay"]===""&&this.timeType()==="none"||this.updateStartupDelay()});updateLocale(e){!e||e===""||e===this.previousLang||(this.#s.setItem("locale",e),window.location.reload())}updateStartupDelay(){let e=this.timeValue(),t=this.timeType(),n="";t!=="none"&&e!==0&&(n=`${e}${t}`),this.#o.patchApiV1Serversettings({requestBody:{"startup-delay":n}}).subscribe()}updateTimeType(e){this.timeType()==="none"&&this.timeValue.set(0),this.timeType.set(e)}updateUsageStatistics(e){let t=this.usageStatistics();!e||e===""||e===t||(this.usageStatistics.set(e),this.updatingUsageStatistics.set(!0),this.#o.patchApiV1Serversettings({requestBody:{"usage-reporter-level":this.usageStatistics()==="none"?"":this.usageStatistics()}}).pipe(R(()=>this.updatingUsageStatistics.set(!1)),$(()=>(this.usageStatistics.set(t),L(null)))).subscribe())}serverSettingsEffect=b(()=>{let e=this.#n.serverSettings();if(e===void 0)return;let t=e["startup-delay"],n=t.slice(-1),a=t.slice(0,-1),_=["s","m","h"];this.disableTrayIconLogin.set(e["disable-tray-icon-login"]!=="False"),this.updateChannel.set(e["update-channel"]),this.allowRemoteAccess.set(e["server-listen-interface"]==="any"),this.allowedHostnames.set(e["allowed-hostnames"]),this.loadedAllowedHostnames.set(e["allowed-hostnames"]),this.usageStatistics.set(e["usage-reporter-level"]===""?"none":e["usage-reporter-level"]),this.timeType.set(t==""?"none":_.includes(n)?n:"none"),this.timeValue.set(t==""?0:parseInt(a))});setDarkMode(){this.#e.setDarkMode()}setLightMode(){this.#e.setLightMode()}static \u0275fac=function(t){return new(t||s)};static \u0275cmp=w({type:s,selectors:[["app-settings"]],decls:132,vars:46,consts:()=>{let e;e=$localize`Settings`;let t;t=$localize`Configure your backup settings.`;let n;n=$localize`Remote access control`;let a;a=$localize`Color theme`;let _;_=$localize`Customize your application theme`;let E;E=$localize`Passwords`;let g;g=$localize`Change server passphrase`;let f;f=$localize`Language`;let V;V=$localize`Select a language for the platform`;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 ge;ge=$localize`Prevent tray icon automatic log-in`;let pe;pe=$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 Ce;Ce=$localize`Prevent tray icon automatic log-in`;let ue;ue=$localize`Update channel`;let me;me=$localize` Default (${"\uFFFD0\uFFFD"}:INTERPOLATION:) `;let Ee;Ee=$localize`Same as the base install version: ${"\uFFFD0\uFFFD"}:INTERPOLATION:`;let Ne;Ne=$localize`Stable`;let fe;fe=$localize`Official stable release.`;let he;he=$localize`Beta`;let Me;Me=$localize` Try out the new features that we are working on. Test a backup and restore before using this in production environments. `;let Pe;Pe=$localize` Experimental `;let Oe;Oe=$localize`Early previews of new features. Not for use with important data.`;let Re;Re=$localize`Canary`;let Ie;Ie=$localize`Builds for developers and testers only. Not for use with important data.`;let Ge;Ge=$localize`Pause after startup or hibernation`;let ye;ye=$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 ve;ve=$localize`Usage statistics`;let U;U=$localize` Usage reports help us improve the user experience and evaluate impact of new features. We use them to generate ${"\uFFFD#119\uFFFD"}:START_LINK:public usage statistics.${"\uFFFD/#119\uFFFD"}:CLOSE_LINK:${"[\uFFFD#120\uFFFD\uFFFD/#120\uFFFD|\uFFFD#121\uFFFD\uFFFD/#121\uFFFD]"}:LINE_BREAK:${"[\uFFFD#120\uFFFD\uFFFD/#120\uFFFD|\uFFFD#121\uFFFD\uFFFD/#121\uFFFD]"}:LINE_BREAK: 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. `,U=Qe(U);let Ae;Ae=$localize`Advanced options`;let be;be=$localize`Enter new password`;let Le;Le=$localize`Repeat password`;let oe;oe=$localize`Password have to be filled and have to match`;let $e;$e=$localize`Passphrase`;let we;we=$localize`Repeat passphrase`;let Fe;Fe=$localize`Cancel`;let De;De=$localize` Update passphrase `;let xe;xe=$localize` Update passphrase `;let ke;ke=$localize`Change password`;let Je;Je=$localize`Allowed hostnames`;let Xe;Xe=$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 Ve;return Ve=$localize` Update allowed hostnames `,[e,t,n,a,_,E,g,f,V,Te,Se,ce,ge,pe,Ce,ue,me,Ee,Ne,fe,he,Me,Pe,Oe,Re,Ie,Ge,ye,ve,U,Ae,$e,we,Fe,De,xe,ke,Je,Xe,Ve,[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","remote-access-form"],[1,"primary","raised",3,"click"],[1,"indeterminate","primary"],[1,"right","radios"],[1,"radio-option",3,"click"],[1,"primary","raised"],[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"],["href","#"],["label","label","value","value",3,"options","isLoading"],[1,"advanced-settings"],["for","password"],["type","password","name","password","autocomplete","disabled","placeholder",be,"tabindex","1",3,"ngModelChange","ngModel"],["for","repeatPassword"],["type","password","name","repeatPassword","autocomplete","disabled","placeholder",Le,"tabindex","2",3,"ngModelChange","disabled","ngModel"],["suffix","",1,"sh-success"],["suffix",""],["shButton","",3,"click"],["shButton","",1,"raised","primary",3,"loader"],["shButton","","shTooltip",oe,1,"raised","primary",3,"loader","disabled"],["shButton","",1,"raised","primary",3,"click"],["shButton","","shTooltip",oe,1,"raised","primary",3,"click","disabled"],[1,"sh-success"],["for","allowedHostnames"],["type","text","id","allowedHostnames",3,"ngModelChange","ngModel"],["type","primary"]]},template:function(t,n){if(t&1&&(I(0,"app-status-bar"),i(1,"div",40)(2,"header")(3,"div",41)(4,"h2"),r(5,0),o(),i(6,"p"),r(7,1),o()()(),i(8,"section")(9,"div",42)(10,"h3"),r(11,2),o(),i(12,"p"),O(13),o()(),i(14,"div",43),I(15,"app-remote-control"),o()(),i(16,"section")(17,"div",42)(18,"h3"),r(19,3),o(),i(20,"p"),r(21,4),o()(),i(22,"div",43)(23,"div",44)(24,"img",45),c("click",function(){return n.setLightMode()}),o(),i(25,"img",46),c("click",function(){return n.setDarkMode()}),o()()()(),i(26,"section")(27,"div",42)(28,"h3"),r(29,5),o(),i(30,"p"),r(31,6),o()(),i(32,"div",47),p(33,xt,15,7)(34,Jt,4,1,"div",48),o()(),i(35,"section")(36,"div",42)(37,"h3"),r(38,7),o(),i(39,"p"),r(40,8),o()(),i(41,"div",43)(42,"sh-select",49)(43,"input",50),c("ngModelChange",function(_){return n.updateLocale(_)}),o()()()(),i(44,"section")(45,"div",42)(46,"h3"),r(47,9),o(),i(48,"p"),r(49,10),o()(),i(50,"div",51)(51,"sh-toggle",52),c("click",function(){return n.updateRemoteAccess()}),i(52,"label"),r(53,11),o()(),p(54,Xt,8,3),o()(),i(55,"section")(56,"div",42)(57,"h3"),r(58,12),o(),i(59,"p"),r(60,13),o()(),i(61,"div",43)(62,"sh-toggle",52),c("click",function(){return n.saveDisableTrayIconLogin()}),i(63,"label"),r(64,14),o()()()(),i(65,"section")(66,"div",42)(67,"h3"),r(68,15),o(),i(69,"p"),p(70,Vt,1,1),o(),p(71,Ut,1,0,"sh-progress-bar",53),o(),i(72,"div",54)(73,"div",55),c("click",function(){return n.setNewChannel("")}),i(74,"sh-radio",56),r(75,16),o(),i(76,"p"),r(77,17),o()(),i(78,"div",55),c("click",function(){return n.setNewChannel("stable")}),i(79,"sh-radio",56),r(80,18),o(),i(81,"p"),r(82,19),o()(),i(83,"div",55),c("click",function(){return n.setNewChannel("beta")}),i(84,"sh-radio",56),r(85,20),o(),i(86,"p"),r(87,21),o()(),i(88,"div",55),c("click",function(){return n.setNewChannel("experimental")}),i(89,"sh-radio",56),r(90,22),o(),i(91,"p"),r(92,23),o()(),i(93,"div",55),c("click",function(){return n.setNewChannel("canary")}),i(94,"sh-radio",56),r(95,24),o(),i(96,"p"),r(97,25),o()()()()(),I(98,"sh-divider"),i(99,"div",40)(100,"section")(101,"div",42)(102,"h3"),r(103,26),o(),i(104,"p"),r(105,27),o()(),i(106,"div",43)(107,"div",57)(108,"sh-range-slider",58)(109,"input",59),v("ngModelChange",function(_){return y(n.timeValue,_)||(n.timeValue=_),_}),o()(),i(110,"sh-select",60)(111,"input",61),c("ngModelChange",function(_){return n.updateTimeType(_)}),o(),se(112,zt,1,1,"ng-template"),o()()()(),i(113,"section")(114,"div",42)(115,"h3"),r(116,28),o(),i(117,"p"),z(118,29),I(119,"a",62)(120,"br")(121,"br"),B(),o()(),i(122,"div",43)(123,"sh-select",63)(124,"input",50),c("ngModelChange",function(_){return n.updateUsageStatistics(_)}),o(),se(125,Bt,1,1,"ng-template"),o()()()(),i(126,"div",40)(127,"section")(128,"div",64)(129,"h3"),r(130,30),o(),I(131,"app-advanced-options-settings"),o()()()),t&2){let a,_,E;l(13),W(n.remoteControlStatus()),l(11),M("active",!n.isDarkMode()),l(),M("active",n.isDarkMode()),l(8),C(n.showPassphraseForm()?33:34),l(9),h("options",n.languageOptions())("isClearable",!1)("inlineSearch",!0),l(),h("ngModel",n.langCtrl())("ngModelOptions",q(43,_e)),l(8),M("active",n.allowRemoteAccess()),l(3),C(n.allowRemoteAccess()?54:-1),l(8),M("active",n.disableTrayIconLogin()),l(8),C(n.updateChannel()!==""&&((a=n.sysinfo())!=null&&a.ServerVersion)?70:-1),l(),C(n.updatingChannel()?71:-1),l(3),M("active",n.updateChannel()===""),l(),ae((_=n.sysinfo())==null?null:_.DefaultUpdateChannel),re(75),l(2),ae((E=n.sysinfo())==null?null:E.ServerVersionType),re(77),l(2),M("active",n.updateChannel()==="stable"),l(5),M("active",n.updateChannel()==="beta"),l(5),M("active",n.updateChannel()==="experimental"),l(5),M("active",n.updateChannel()==="canary"),l(14),h("unit",n.timeType()==="none"?"s":n.timeType()),l(),h("min",n.timeRange()[0])("max",n.timeRange()[1])("disabled",n.timeType()==="none"),G("ngModel",n.timeValue),h("ngModelOptions",q(44,_e)),l(),h("options",n.timeTypeOptions())("isClearable",!1),l(),h("ngModel",n.timeType()),l(12),h("options",n.usageStatisticsOptions())("isLoading",n.updatingUsageStatistics()),l(),h("ngModel",n.usageStatistics())("ngModelOptions",q(45,_e))}},dependencies:[Y,j,it,K,Q,Z,pt,ie,X,D,lt,_t,rt,Tt,St,te,F,at,ee,dt],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)}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}"],changeDetection:0})};export{Wt as debounceSignal,de as default};
package/chunk-OKDVOGSM.js DELETED
@@ -1 +0,0 @@
1
- import{e as a,f as b}from"./chunk-D6KZSKI7.js";import"./chunk-KAAYNQ7L.js";import"./chunk-ZBVBVQO7.js";import"./chunk-C6F6FP4R.js";import"./chunk-A5LNLNWR.js";import"./chunk-3NFAL4U4.js";import"./chunk-Z27IQRKV.js";import"./chunk-CCKT2GLS.js";import"./chunk-72HORZFV.js";import"./chunk-XLDVUBTQ.js";import"./chunk-LN26XMBJ.js";import"./chunk-GCCJSS4C.js";import"./chunk-ABYM5HWA.js";import"./chunk-Z35OG2DV.js";import"./chunk-QF4DQYEP.js";import"./chunk-2QJVTZ56.js";import"./chunk-5ZSBXGHQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-QONLYWYC.js";import"./chunk-EUDKD2JW.js";export{a as createRestoreSelectFilesForm,b as default};
package/chunk-PQSZLHZR.js DELETED
@@ -1 +0,0 @@
1
- import{c as a,d as b}from"./chunk-D6KZSKI7.js";import"./chunk-KAAYNQ7L.js";import"./chunk-ZBVBVQO7.js";import"./chunk-C6F6FP4R.js";import"./chunk-A5LNLNWR.js";import"./chunk-3NFAL4U4.js";import"./chunk-Z27IQRKV.js";import"./chunk-CCKT2GLS.js";import"./chunk-72HORZFV.js";import"./chunk-XLDVUBTQ.js";import"./chunk-LN26XMBJ.js";import"./chunk-GCCJSS4C.js";import"./chunk-ABYM5HWA.js";import"./chunk-Z35OG2DV.js";import"./chunk-QF4DQYEP.js";import"./chunk-2QJVTZ56.js";import"./chunk-5ZSBXGHQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-QONLYWYC.js";import"./chunk-EUDKD2JW.js";export{a as createEncryptionForm,b as default};
package/chunk-Q65KFDJ5.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-EUDKD2JW.js";var o=[{path:"",loadComponent:()=>import("./chunk-EMRD3UKA.js"),children:[{path:"",redirectTo:"stored",pathMatch:"full"},{path:"stored",loadComponent:()=>import("./chunk-5WDKKAXO.js")},{path:"live",loadComponent:()=>import("./chunk-H3UUJ5EW.js")}]}],t=o;export{t as default};
package/chunk-QF4DQYEP.js DELETED
@@ -1 +0,0 @@
1
- import{a as zt,ea as Ai}from"./chunk-5ZSBXGHQ.js";import{$b as D,$c as Gt,Ab as Pt,Ac as se,Bb as jt,Bc as Ut,Cb as pe,Cc as vt,Db as E,Dc as Wt,Eb as T,Fb as Te,Gb as U,Hb as W,Ib as Ae,Lb as Ie,Mb as ue,Oc as $t,Pc as be,Qc as k,Ra as Si,Rc as ee,S as ht,Sa as b,U as de,Ua as pt,V as Pe,Vc as xe,W as ze,Wa as ye,Wc as O,Xa as I,Xc as ve,Y as Ce,Ya as Mi,Yc as Vi,Zb as $,Zc as ne,_ as N,_b as Ne,a as gi,ac as G,ba as yi,bc as S,ca as Di,cb as L,da as bi,db as Ke,dd as Ti,ea as H,eb as z,fa as B,fc as xi,fd as qt,gb as ie,gc as ge,hb as Ve,hc as De,i as mi,ic as wi,ja as Ye,jc as he,ka as Qe,kb as Me,kc as q,la as je,lc as Oi,m as vi,mb as ft,mc as me,nc as F,oa as Ft,ob as Ei,oc as Ze,pa as V,pc as Ee,qc as gt,r as _i,rb as kt,sa as Xe,sc as Lt,ta as Le,tc as Ht,ub as He,uc as Bt,va as Z,vc as mt,wc as fe,x as Ci,xb as R,xc as X,yb as P,zb as Rt}from"./chunk-QONLYWYC.js";import{a as Q,b as te,c as fi,d as p,e as M,f as x,g as w}from"./chunk-EUDKD2JW.js";var Hi=(()=>{class i{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||i)(I(ye),I(Z))};static \u0275dir=z({type:i})}return i})(),rt=(()=>{class i extends Hi{static \u0275fac=(()=>{let t;return function(o){return(t||(t=Le(i)))(o||i)}})();static \u0275dir=z({type:i,features:[ie]})}return i})(),Oe=new Ce(""),En={provide:Oe,useExisting:de(()=>xn),multi:!0},xn=(()=>{class i extends rt{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Le(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(c){return o.onChange(c.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[se([En]),ie]})}return i})(),wn={provide:Oe,useExisting:de(()=>Bi),multi:!0};function On(){let i=zt()?zt().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Vn=new Ce(""),Bi=(()=>{class i extends Hi{_compositionMode;_composing=!1;constructor(t,n,o){super(t,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!On())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||i)(I(ye),I(Z),I(Vn,8))};static \u0275dir=z({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&$("input",function(c){return o._handleInput(c.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(c){return o._compositionEnd(c.target.value)})},standalone:!1,features:[se([wn]),ie]})}return i})();function Kt(i){return i==null||Zt(i)===0}function Zt(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var Fe=new Ce(""),ke=new Ce(""),Tn=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ii=class{static min(e){return An(e)}static max(e){return In(e)}static required(e){return Nn(e)}static requiredTrue(e){return Fn(e)}static email(e){return kn(e)}static minLength(e){return Rn(e)}static maxLength(e){return Pn(e)}static pattern(e){return jn(e)}static nullValidator(e){return Ui()}static compose(e){return Yi(e)}static composeAsync(e){return Qi(e)}};function An(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<i?{min:{min:i,actual:e.value}}:null}}function In(i){return e=>{if(e.value==null||i==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>i?{max:{max:i,actual:e.value}}:null}}function Nn(i){return Kt(i.value)?{required:!0}:null}function Fn(i){return i.value===!0?null:{required:!0}}function kn(i){return Kt(i.value)||Tn.test(i.value)?null:{email:!0}}function Rn(i){return e=>{let t=e.value?.length??Zt(e.value);return t===null||t===0?null:t<i?{minlength:{requiredLength:i,actualLength:t}}:null}}function Pn(i){return e=>{let t=e.value?.length??Zt(e.value);return t!==null&&t>i?{maxlength:{requiredLength:i,actualLength:t}}:null}}function jn(i){if(!i)return Ui;let e,t;return typeof i=="string"?(t="",i.charAt(0)!=="^"&&(t+="^"),t+=i,i.charAt(i.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=i.toString(),e=i),n=>{if(Kt(n.value))return null;let o=n.value;return e.test(o)?null:{pattern:{requiredPattern:t,actualValue:o}}}}function Ui(i){return null}function Wi(i){return i!=null}function $i(i){return Ei(i)?vi(i):i}function Gi(i){let e={};return i.forEach(t=>{e=t!=null?Q(Q({},e),t):e}),Object.keys(e).length===0?null:e}function qi(i,e){return e.map(t=>t(i))}function Ln(i){return!i.validate}function zi(i){return i.map(e=>Ln(e)?e:t=>e.validate(t))}function Yi(i){if(!i)return null;let e=i.filter(Wi);return e.length==0?null:function(t){return Gi(qi(t,e))}}function Jt(i){return i!=null?Yi(zi(i)):null}function Qi(i){if(!i)return null;let e=i.filter(Wi);return e.length==0?null:function(t){let n=qi(t,e).map($i);return Ci(n).pipe(_i(Gi))}}function ei(i){return i!=null?Qi(zi(i)):null}function Ni(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Xi(i){return i._rawValidators}function Ki(i){return i._rawAsyncValidators}function Yt(i){return i?Array.isArray(i)?i:[i]:[]}function Ct(i,e){return Array.isArray(i)?i.includes(e):i===e}function Fi(i,e){let t=Yt(e);return Yt(i).forEach(o=>{Ct(t,o)||t.push(o)}),t}function ki(i,e){return Yt(e).filter(t=>!Ct(i,t))}var yt=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Jt(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=ei(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},oe=class extends yt{name;get formDirective(){return null}get path(){return null}},_e=class extends yt{_parent=null;name=null;valueAccessor=null},Dt=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Hn={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Vr=te(Q({},Hn),{"[class.ng-submitted]":"isSubmitted"}),Tr=(()=>{class i extends Dt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(I(_e,2))};static \u0275dir=z({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return i})(),Ar=(()=>{class i extends Dt{constructor(t){super(t)}static \u0275fac=function(n){return new(n||i)(I(oe,10))};static \u0275dir=z({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&q("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return i})();var Je="VALID",_t="INVALID",Be="PENDING",et="DISABLED",we=class{},bt=class extends we{value;source;constructor(e,t){super(),this.value=e,this.source=t}},it=class extends we{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},nt=class extends we{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},Ue=class extends we{status;source;constructor(e,t){super(),this.status=e,this.source=t}},St=class extends we{source;constructor(e){super(),this.source=e}},Mt=class extends we{source;constructor(e){super(),this.source=e}};function ti(i){return(Ot(i)?i.validators:i)||null}function Bn(i){return Array.isArray(i)?Jt(i):i||null}function ii(i,e){return(Ot(e)?e.asyncValidators:i)||null}function Un(i){return Array.isArray(i)?ei(i):i||null}function Ot(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function Zi(i,e,t){let n=i.controls;if(!(e?Object.keys(n):n).length)throw new ht(1e3,"");if(!n[t])throw new ht(1001,"")}function Ji(i,e,t){i._forEachChild((n,o)=>{if(t[o]===void 0)throw new ht(1002,"")})}var We=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return be(this.statusReactive)}set status(e){be(()=>this.statusReactive.set(e))}_status=k(()=>this.statusReactive());statusReactive=V(void 0);get valid(){return this.status===Je}get invalid(){return this.status===_t}get pending(){return this.status==Be}get disabled(){return this.status===et}get enabled(){return this.status!==et}errors;get pristine(){return be(this.pristineReactive)}set pristine(e){be(()=>this.pristineReactive.set(e))}_pristine=k(()=>this.pristineReactive());pristineReactive=V(!0);get dirty(){return!this.pristine}get touched(){return be(this.touchedReactive)}set touched(e){be(()=>this.touchedReactive.set(e))}_touched=k(()=>this.touchedReactive());touchedReactive=V(!1);get untouched(){return!this.touched}_events=new mi;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(Fi(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fi(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ki(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ki(e,this._rawAsyncValidators))}hasValidator(e){return Ct(this._rawValidators,e)}hasAsyncValidator(e){return Ct(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(te(Q({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new nt(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new nt(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(te(Q({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new it(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new it(!0,n))}markAsPending(e={}){this.status=Be;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Ue(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(te(Q({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=et,this.errors=null,this._forEachChild(o=>{o.disable(te(Q({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new bt(this.value,n)),this._events.next(new Ue(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(te(Q({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=Je,this._forEachChild(n=>{n.enable(te(Q({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(te(Q({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Je||this.status===Be)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new bt(this.value,t)),this._events.next(new Ue(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(te(Q({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?et:Je}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=Be,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=$i(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,o)=>n&&n._find(o),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Ue(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?et:this.errors?_t:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Be)?Be:this._anyControlsHaveStatus(_t)?_t:Je}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),o&&this._events.next(new it(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new nt(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){Ot(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Bn(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Un(this._rawAsyncValidators)}},$e=class extends We{constructor(e,t,n){super(ti(t),ii(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Ji(this,!0,e),Object.keys(e).forEach(n=>{Zi(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let o=this.controls[n];o&&o.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,o)=>{n.reset(e?e[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,o)=>((n.enabled||this.disabled)&&(t[o]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((o,s)=>{n=t(n,o,s)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Qt=class extends $e{};var Re=new Ce("",{providedIn:"root",factory:()=>at}),at="always";function Vt(i,e){return[...e.path,i]}function st(i,e,t=at){ni(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),$n(i,e),qn(i,e),Gn(i,e),Wn(i,e)}function Et(i,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),wt(i,e),i&&(e._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function xt(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Wn(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function ni(i,e){let t=Xi(i);e.validator!==null?i.setValidators(Ni(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=Ki(i);e.asyncValidator!==null?i.setAsyncValidators(Ni(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let o=()=>i.updateValueAndValidity();xt(e._rawValidators,o),xt(e._rawAsyncValidators,o)}function wt(i,e){let t=!1;if(i!==null){if(e.validator!==null){let o=Xi(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.validator);s.length!==o.length&&(t=!0,i.setValidators(s))}}if(e.asyncValidator!==null){let o=Ki(i);if(Array.isArray(o)&&o.length>0){let s=o.filter(c=>c!==e.asyncValidator);s.length!==o.length&&(t=!0,i.setAsyncValidators(s))}}}let n=()=>{};return xt(e._rawValidators,n),xt(e._rawAsyncValidators,n),t}function $n(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&en(i,e)})}function Gn(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&en(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function en(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function qn(i,e){let t=(n,o)=>{e.valueAccessor.writeValue(n),o&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function tn(i,e){i==null,ni(i,e)}function zn(i,e){return wt(i,e)}function oi(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Yn(i){return Object.getPrototypeOf(i.constructor)===rt}function nn(i,e){i._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function si(i,e){if(!e)return null;Array.isArray(e);let t,n,o;return e.forEach(s=>{s.constructor===Bi?t=s:Yn(s)?n=s:o=s}),o||n||t||null}function Qn(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}var Xn={provide:oe,useExisting:de(()=>Kn)},tt=Promise.resolve(),Kn=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this.submittedReactive)}_submitted=k(()=>this.submittedReactive());submittedReactive=V(!1);_directives=new Set;form;ngSubmit=new Me;options;constructor(t,n,o){super(),this.callSetDisabledState=o,this.form=new $e({},Jt(t),ei(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){tt.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),st(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path),o=new $e({});tn(o,t),n.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){tt.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){tt.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),nn(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new St(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1),this.form._events.next(new Mt(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||i)(I(Fe,10),I(ke,10),I(Re,8))};static \u0275dir=z({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&$("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[se([Xn]),ie]})}return i})();function Ri(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function Pi(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var ot=class extends We{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(ti(t),ii(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Ot(t)&&(t.nonNullable||t.initialValueIsDefault)&&(Pi(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){Ri(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){Ri(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){Pi(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var Zn=i=>i instanceof ot,Jn=(()=>{class i extends oe{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Le(i)))(o||i)}})();static \u0275dir=z({type:i,standalone:!1,features:[ie]})}return i})();var eo={provide:_e,useExisting:de(()=>to)},ji=Promise.resolve(),to=(()=>{class i extends _e{_changeDetectorRef;callSetDisabledState;control=new ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Me;constructor(t,n,o,s,c,g){super(),this._changeDetectorRef=c,this.callSetDisabledState=g,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=si(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),oi(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){st(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){ji.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,o=n!==0&&Ti(n);ji.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Vt(t,this._parent):[t]}static \u0275fac=function(n){return new(n||i)(I(oe,9),I(Fe,10),I(ke,10),I(Oe,10),I(Gt,8),I(Re,8))};static \u0275dir=z({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[se([eo]),ie,Xe]})}return i})();var Nr=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275dir=z({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),io={provide:Oe,useExisting:de(()=>no),multi:!0},no=(()=>{class i extends rt{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Le(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&$("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[se([io]),ie]})}return i})(),oo={provide:Oe,useExisting:de(()=>ro),multi:!0};var so=(()=>{class i{_accessors=[];add(t,n){this._accessors.push([t,n])}remove(t){for(let n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t){this._accessors.splice(n,1);return}}select(t){this._accessors.forEach(n=>{this._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})}_isSameGroup(t,n){return t[0].control?t[0]._parent===n._control._parent&&t[1].name===n.name:!1}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Pe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ro=(()=>{class i extends rt{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=N(Re,{optional:!0})??at;constructor(t,n,o,s){super(t,n),this._registry=o,this._injector=s}ngOnInit(){this._control=this._injector.get(_e),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}setDisabledState(t){(this.setDisabledStateFired||t||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",t),this.setDisabledStateFired=!0}fireUncheck(t){this.writeValue(t)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(n){return new(n||i)(I(ye),I(Z),I(so),I(Ye))};static \u0275dir=z({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(){return o.onChange()})("blur",function(){return o.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[se([oo]),ie]})}return i})(),ao={provide:Oe,useExisting:de(()=>lo),multi:!0},lo=(()=>{class i extends rt{writeValue(t){this.setProperty("value",parseFloat(t))}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(o){return(t||(t=Le(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(n,o){n&1&&$("change",function(c){return o.onChange(c.target.value)})("input",function(c){return o.onChange(c.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[se([ao]),ie]})}return i})(),ri=new Ce(""),co={provide:_e,useExisting:de(()=>uo)},uo=(()=>{class i extends _e{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=s,this.callSetDisabledState=c,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=si(this,o)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&Et(n,this,!1),st(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}oi(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Et(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||i)(I(Fe,10),I(ke,10),I(Oe,10),I(ri,8),I(Re,8))};static \u0275dir=z({type:i,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[se([co]),ie,Xe]})}return i})(),ho={provide:oe,useExisting:de(()=>on)},on=(()=>{class i extends oe{callSetDisabledState;get submitted(){return be(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=k(()=>this._submittedReactive());_submittedReactive=V(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Me;constructor(t,n,o){super(),this.callSetDisabledState=o,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(wt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return st(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){Et(t.control||null,t,!1),Qn(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),nn(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new St(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1),n?.emitEvent!==!1&&this.form._events.next(new Mt(this.form))}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,o=this.form.get(t.path);n!==o&&(Et(n||null,t),Zn(o)&&(st(o,t,this.callSetDisabledState),t.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);tn(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&zn(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ni(this.form,this),this._oldForm&&wt(this._oldForm,this)}static \u0275fac=function(n){return new(n||i)(I(Fe,10),I(ke,10),I(Re,8))};static \u0275dir=z({type:i,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&$("submit",function(c){return o.onSubmit(c)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[se([ho]),ie,Xe]})}return i})(),po={provide:oe,useExisting:de(()=>sn)},sn=(()=>{class i extends Jn{name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){an(this._parent)}static \u0275fac=function(n){return new(n||i)(I(oe,13),I(Fe,10),I(ke,10))};static \u0275dir=z({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[se([po]),ie]})}return i})(),fo={provide:oe,useExisting:de(()=>rn)},rn=(()=>{class i extends oe{_parent;name=null;constructor(t,n,o){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){an(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 Vt(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||i)(I(oe,13),I(Fe,10),I(ke,10))};static \u0275dir=z({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[se([fo]),ie]})}return i})();function an(i){return!(i instanceof sn)&&!(i instanceof on)&&!(i instanceof rn)}var go={provide:_e,useExisting:de(()=>mo)},mo=(()=>{class i extends _e{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Me;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,o,s,c){super(),this._ngModelWarningConfig=c,this._parent=t,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=si(this,s)}ngOnChanges(t){this._added||this._setUpControl(),oi(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return Vt(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||i)(I(oe,13),I(Fe,10),I(ke,10),I(Oe,10),I(ri,8))};static \u0275dir=z({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[se([go]),ie,Xe]})}return i})();var ln=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ke({type:i});static \u0275inj=ze({})}return i})(),Xt=class extends We{constructor(e,t,n){super(ti(t),ii(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let o=this._adjustIndex(e);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),t&&(this.controls.splice(o,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Ji(this,!1,e),e.forEach((n,o)=>{Zi(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,o)=>{n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function Li(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var Fr=(()=>{class i{useNonNullable=!1;get nonNullable(){let t=new i;return t.useNonNullable=!0,t}group(t,n=null){let o=this._reduceControls(t),s={};return Li(n)?s=n:n!==null&&(s.validators=n.validator,s.asyncValidators=n.asyncValidator),new $e(o,s)}record(t,n=null){let o=this._reduceControls(t);return new Qt(o,n)}control(t,n,o){let s={};return this.useNonNullable?(Li(n)?s=n:(s.validators=n,s.asyncValidators=o),new ot(t,te(Q({},s),{nonNullable:!0}))):new ot(t,n,o)}array(t,n,o){let s=t.map(c=>this._createControl(c));return new Xt(s,n,o)}_reduceControls(t){let n={};return Object.keys(t).forEach(o=>{n[o]=this._createControl(t[o])}),n}_createControl(t){if(t instanceof ot)return t;if(t instanceof We)return t;if(Array.isArray(t)){let n=t[0],o=t.length>1?t[1]:null,s=t.length>2?t[2]:null;return this.control(n,o,s)}else return this.control(t)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=Pe({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var kr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ke({type:i});static \u0275inj=ze({imports:[ln]})}return i})(),Rr=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:ri,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Re,useValue:t.callSetDisabledState??at}]}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Ke({type:i});static \u0275inj=ze({imports:[ln]})}return i})();var le=["*"],vo=[[["","icon",""]],[["sh-icon"]],[["","title",""]],"*",[["","content",""]],[["p"]]],_o=["[icon]","sh-icon","[title]","*","[content]","p"];function Co(i,e){i&1&&(E(0,"sh-icon",3),F(1,"info"),T())}function yo(i,e){i&1&&(E(0,"sh-icon",3),F(1,"info"),T())}function Do(i,e){i&1&&(E(0,"sh-icon",3),F(1,"warning"),T())}function bo(i,e){i&1&&(E(0,"sh-icon",3),F(1,"warning-octagon"),T())}function So(i,e){i&1&&(E(0,"sh-icon",3),F(1,"check-circle"),T())}function Mo(i,e){i&1&&(E(0,"sh-icon",3),F(1,"question"),T())}function Eo(i,e){if(i&1){let t=ue();E(0,"sh-icon",7),$("click",function(){H(t);let o=D();return B(o.removeAlert())}),F(1,"plus"),T()}}var xo=["dialogRef"];function wo(i,e){if(i&1){let t=ue();U(0,"div",5),Ne("click",function(){H(t);let o=D(2);return B(o.isOpen.set(!1))}),W()}}function Oo(i,e){if(i&1&&(U(0,"dialog",2,0)(2,"div",3),S(3),W(),R(4,wo,1,0,"div",4),W()),i&2){let t=D(),n=X(0);me(n.class),he("width",n.width??"")("max-width",n.maxWidth??"")("max-height",n.maxHeight??"")("height",n.height??""),b(4),P(t.defaultOptionMerge().closeOnOutsideClick?4:-1)}}var Vo=["shButton",""];var To=["triggerRef"],Ao=["popoverRef"],Io=[[["","trigger",""]],[["button"]],[["","shButton",""]],"*"],No=["[trigger]","button","[shButton]","*"];var Fo=()=>({closeOnButton:!1,closeOnEsc:!0});var ko=[[["label"]],[["","boxPrefix",""]],[["","prefix",""]],[["","textPrefix",""]],[["input"]],[["textarea"]],[["","textSuffix",""]],[["","suffix",""]],[["","boxSuffix",""]],[["","error",""]],[["","hint",""]]],Ro=["label","[boxPrefix]","[prefix]","[textPrefix]","input","textarea","[textSuffix]","[suffix]","[boxSuffix]","[error]","[hint]"],cn=["input"],Po=[[["label"]]],jo=["label"];function Lo(i,e){if(i&1&&(E(0,"div",3),F(1),T()),i&2){let t=D();b(),Ze(t.files()[0].name)}}function Ho(i,e){if(i&1&&(E(0,"div",3),F(1),T()),i&2){let t=D();b(),Ee("",t.files().length," files selected")}}function Bo(i,e){if(i&1&&(E(0,"div",4),F(1),T()),i&2){let t=D();b(),Ze(t.filesOver()?t.overlayText():t.placeholder())}}var Uo=["optionsRef"],Wo=["*",[["","menu",""]]],$o=["*","[menu]"];function Go(i,e){i&1&&(E(0,"sh-icon",5),F(1,"caret-down"),T())}var qo=[[["label"]],[["input","type","range"]]],zo=["label","input[type=range]"],Yo=["optionsWrap"],Qo=[[["label"]],[["","prefix",""]],[["","boxPrefix",""]],[["input"]],[["textarea"]]],Xo=["label","[prefix]","[boxPrefix]","input","textarea"],Ko=()=>({closeOnButton:!1,closeOnEsc:!1}),dn=(i,e)=>({$implicit:i,last:e}),ui=i=>({$implicit:i});function Zo(i,e){if(i&1&&F(0),i&2){let t=D();Ee(" ",t.inputValue()," ")}}function Jo(i,e){i&1&&Ie(0)}function es(i,e){if(i&1&&Ve(0,Jo,1,0,"ng-container",13),i&2){let t=D(3),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=X(3);pe("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function ts(i,e){if(i&1&&F(0),i&2){let t=D(3).$implicit,n=D(2);Ee(" ",n.getLabel(t)," ")}}function is(i,e){if(i&1){let t=ue();E(0,"sh-chip",12),$("click",function(o){H(t);let s=D(2).$index,c=D(2);return B(c.removeSelectedOptionByIndex(o,s))}),R(1,es,1,5,"ng-container")(2,ts,1,1),E(3,"sh-icon"),F(4,"x-bold"),T()()}if(i&2){let t=D(4),n=X(3);me(t.selectClasses()),b(),P(n?1:2)}}function ns(i,e){i&1&&Ie(0)}function os(i,e){if(i&1&&Ve(0,ns,1,0,"ng-container",13),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count;D(2);let c=X(3);pe("ngTemplateOutlet",c)("ngTemplateOutletContext",Wt(2,dn,n,o===s-1))}}function ss(i,e){if(i&1&&F(0),i&2){let t=D(4),n=t.$implicit,o=t.$index,s=t.$count,c=D(2);Ee(" ",o===s-1?c.getLabel(n):c.getLabel(n)+","," ")}}function rs(i,e){if(i&1&&R(0,os,1,5,"ng-container")(1,ss,1,1),i&2){D(5);let t=X(3);P(t?0:1)}}function as(i,e){if(i&1&&R(0,rs,2,1),i&2){D(4);let t=X(6);P(t?-1:0)}}function ls(i,e){if(i&1&&R(0,is,5,3,"sh-chip",11)(1,as,1,1),i&2){D(3);let t=X(5);P(t?0:1)}}function cs(i,e){if(i&1&&R(0,ls,2,1),i&2){let t=e.$implicit;P(t?0:-1)}}function ds(i,e){if(i&1&&Pt(0,cs,1,1,null,null,Rt),i&2){D();let t=X(2);jt(t)}}function us(i,e){i&1&&Ie(0)}function hs(i,e){if(i&1&&Ve(0,us,1,0,"ng-container",14),i&2){D(2);let t=X(0);pe("ngTemplateOutlet",t)}}function ps(i,e){if(i&1&&F(0),i&2){let t=D(2);Ee(" ",t.placeholderText()??""," ")}}function fs(i,e){if(i&1&&R(0,hs,1,1,"ng-container")(1,ps,1,1),i&2){D();let t=X(0);P(t?0:1)}}function gs(i,e){i&1&&(E(0,"sh-icon",6),F(1,"caret-down"),T())}function ms(i,e){i&1&&Te(0,"sh-spinner",7)}function vs(i,e){i&1&&(E(0,"sh-icon",6),F(1,"list-magnifying-glass"),T())}function _s(i,e){i&1&&(E(0,"sh-icon",6),F(1,"magnifying-glass"),T())}function Cs(i,e){if(i&1){let t=ue();E(0,"sh-icon",15),$("click",function(o){H(t);let s=D();return B(s.clear(o))}),F(1,"x-bold"),T()}}function ys(i,e){i&1&&(E(0,"sh-icon",6),F(1,"caret-down"),T())}function Ds(i,e){i&1&&(E(0,"sh-icon",6),F(1,"caret-up"),T())}function bs(i,e){if(i&1&&(E(0,"p",9),F(1),T()),i&2){let t=D(3);b(),Ze(t.freeTextTitle())}}function Ss(i,e){i&1&&Ie(0)}function Ms(i,e){if(i&1&&Ve(0,Ss,1,0,"ng-container",13),i&2){D(2);let t=X(0);D();let n=X(1);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",vt(2,ui,t))}}function Es(i,e){i&1&&Ie(0)}function xs(i,e){if(i&1&&Ve(0,Es,1,0,"ng-container",13),i&2){D(2);let t=X(0);D();let n=X(4);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",vt(2,ui,t))}}function ws(i,e){if(i&1&&F(0),i&2){D(2);let t=X(1);Ee(" ",t," ")}}function Os(i,e){i&1&&Te(0,"sh-divider")}function Vs(i,e){if(i&1){let t=ue();R(0,bs,2,1,"p",9),E(1,"li",16),$("click",function(){H(t);let o=D(2);return B(o.toggleOptionByIndex(-1))}),R(2,Ms,1,4,"ng-container")(3,xs,1,4,"ng-container")(4,ws,1,1),T(),R(5,Os,1,0,"sh-divider")}if(i&2){D();let t=X(0),n=D(),o=X(1),s=X(4);P(n.freeTextTitle()?0:-1),b(),q("selected",n.isSelected(-1))("focused",n.focusedOptionIndex()===-1),pe("id",n.getLabelAsSlug(t)),He("aria-selected",n.isSelected(-1)),b(),P(o?2:s?3:4),b(3),P(n.freeTextTitle()&&n.filteredOptions().length>0?5:-1)}}function Ts(i,e){if(i&1&&(mt(0)(1),R(2,Vs,6,9)),i&2){let t=D(),n=fe(t.computedFreeTextOption());b();let o=fe(t.getValue(n));b(),P(o.length>0?2:-1)}}function As(i,e){if(i&1&&(E(0,"p",9),F(1),T()),i&2){let t=D();b(),Ze(t.optionTitle())}}function Is(i,e){if(i&1&&Te(0,"sh-checkbox"),i&2){let t=D().$index,n=D();me(n.selectClasses()),q("active",n.isSelected(t))}}function Ns(i,e){i&1&&Ie(0)}function Fs(i,e){if(i&1&&Ve(0,Ns,1,0,"ng-container",13),i&2){let t=D().$implicit;D();let n=X(4);pe("ngTemplateOutlet",n)("ngTemplateOutletContext",vt(2,ui,t))}}function ks(i,e){if(i&1&&F(0),i&2){let t=D().$implicit,n=D();Ee(" ",n.getLabel(t)," ")}}function Rs(i,e){if(i&1){let t=ue();E(0,"li",16),$("click",function(){let o=H(t).$index,s=D();return B(s.toggleOptionByIndex(o))}),R(1,Is,1,4,"sh-checkbox",17),R(2,Fs,1,4,"ng-container")(3,ks,1,1),T()}if(i&2){let t=e.$implicit,n=e.$index,o=D(),s=X(4);q("selected",o.isSelected(n))("focused",n===o.focusedOptionIndex()),pe("id",o.getLabelAsSlug(t)),He("aria-selected",o.isSelected(n)),b(),P(o.selectMultiple()?1:-1),b(),P(s?2:3)}}var Ps=["dragImageElement"],js=[[["","sidenav",""]],[["","sidenav-closed-topbar",""]],"*"],Ls=["[sidenav]","[sidenav-closed-topbar]","*"];function Hs(i,e){i&1&&Ae(0,"div",1,0)}function Bs(i,e){if(i&1){let t=ue();U(0,"div",7),Ne("drop",function(o){H(t);let s=D();return B(s.drop(o))})("dragenter",function(){H(t);let o=D();return B(o.dragEnter())})("dragleave",function(){H(t);let o=D();return B(o.dragLeave())}),W()}}function Us(i,e){if(i&1){let t=ue();U(0,"div",8),Ne("dragstart",function(o){H(t);let s=D();return B(s.dragStart(o))})("dragend",function(o){H(t);let s=D();return B(s.dragEnd(o))})("drag",function(o){H(t);let s=D();return B(s.drag(o))})("touchstart",function(o){H(t);let s=D();return B(s.touchStart(o))})("touchmove",function(o){H(t);let s=D();return B(s.touchMove(o))})("touchend",function(o){H(t);let s=D();return B(s.touchEnd(o))})("touchcancel",function(o){H(t);let s=D();return B(s.touchCancel(o))}),W()}}var Ws=["tbody"],$s=["*",[["","table-no-rows",""]]],Gs=["*","[table-no-rows]"];function qs(i,e){i&1&&Te(0,"sh-progress-bar",1)}function zs(i,e){i&1&&(E(0,"div",2),S(1,1),T())}var Ys=[[["","title",""]],"*"],Qs=["[title]","*"];function Xs(i,e){i&1&&F(0,"Title")}function Ks(i,e){i&1&&(E(0,"sh-icon",1),F(1,"caret-down"),T())}var Zs=["bold","thin","light","fill","duotone"],qe=(()=>{var e,t;let n=class n{constructor(){M(this,e,N(Z));M(this,t,N(ye))}ngAfterContentInit(){let s=p(this,e).nativeElement.textContent?.trim();if(!s)return;let c=s.split("-").at(-1);c&&Zs.includes(c)&&p(this,t).addClass(p(this,e).nativeElement,c)}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=L({type:n,selectors:[["sh-icon"]],ngContentSelectors:le,decls:1,vars:0,template:function(c,g){c&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=n;return i})();function hi(){let i=N(Z).nativeElement;if(!i)return V("");let e=V(i.className);if(typeof MutationObserver>"u")return e.asReadonly();let t=N(je),n=new MutationObserver(o=>{for(let s of o)if(s.type==="attributes"&&s.attributeName==="class"){let c=s.target;e.set(c.className)}});return n.observe(i,{attributes:!0,attributeFilter:["class"]}),t.onDestroy(()=>n.disconnect()),e.asReadonly()}var It=new Ce("Ship UI Config"),Js=["simple","outlined","flat","raised"],ta=(()=>{var e;let t=class t{constructor(){M(this,e);x(this,e,N(It,{optional:!0})),this.variant=V(p(this,e)?.alertVariant??""),this._el=N(Z),this.alertService=O(null),this.id=O(null),this.currentClasses=hi(),this.activeClass=k(()=>{let o=this.variant(),s=`${this.currentClasses()} sh-sheet`;return o?Js.find(g=>this.currentClasses().includes(g))?s:`${s} ${o}`:s})}removeAlert(){this.id()&&this.alertService()&&this.alertService()?.removeAlert(this.id())}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=L({type:t,selectors:[["sh-alert"]],hostVars:2,hostBindings:function(s,c){s&2&&me(c.activeClass())},inputs:{alertService:[1,"alertService"],id:[1,"id"]},ngContentSelectors:_o,decls:19,vars:4,consts:[["ref",""],[1,"alert"],[1,"icon"],[1,"state-icon"],[1,"title"],[1,"close-icon"],[1,"content"],[1,"close-icon",3,"click"]],template:function(s,c){if(s&1&&(G(vo),E(0,"div",1)(1,"div",2,0),S(3),S(4,1),T(),E(5,"div",2),R(6,Co,2,0,"sh-icon",3)(7,yo,2,0,"sh-icon",3)(8,Do,2,0,"sh-icon",3)(9,bo,2,0,"sh-icon",3)(10,So,2,0,"sh-icon",3)(11,Mo,2,0,"sh-icon",3),T(),E(12,"div",4),S(13,2),S(14,3),T(),R(15,Eo,2,0,"sh-icon",5),E(16,"div",6),S(17,4),S(18,5),T()()),s&2){let g=wi(2);b(),he("display",g.children.length?"block":"none");let f=c.currentClasses();b(5),P(f.includes("primary")?6:f.includes("accent")?7:f.includes("warn")?8:f.includes("error")?9:f.includes("success")?10:11),b(9),P(c.id()?15:-1)}},dependencies:[qe],encapsulation:2,changeDetection:0});let i=t;return i})();function Nt(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}var ia=(()=>{let e=class e{constructor(){this.alertHistory=V([]),this.alertHistoryIsOpen=V(!1),this.alertHistoryIsHidden=V(!0)}error(n){this.addAlert({type:"error",title:n??"An error occured"})}success(n){this.addAlert({type:"success",title:n})}question(n){this.addAlert({type:"question",title:n})}warning(n){this.addAlert({type:"warn",title:n})}info(n){this.addAlert({type:"primary",title:n})}addAlert(n){let o=Nt();this.alertHistory.update(s=>[te(Q({},n),{isOpen:!0,animateIn:!0,animateOut:!1,id:o}),...s]),setTimeout(()=>{this.alertHistory.update(s=>s.map(c=>te(Q({},c),{animateIn:c.id===o?!1:c.animateIn})))},40),setTimeout(()=>{this.hideAlert(o)},2500)}removeAlert(n){this.alertHistory.update(o=>o.map(s=>te(Q({},s),{animateOut:s.id===n?!1:s.animateOut}))),setTimeout(()=>{this.alertHistory.update(o=>o.filter(s=>s.id!==n))},300)}hideAlert(n){this.alertHistory.update(o=>o.map(s=>te(Q({},s),{isOpen:s.id===n?!1:s.isOpen})))}setHidden(n){this.alertHistoryIsHidden.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275prov=Pe({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})(),er={class:"default",width:void 0,maxWidth:void 0,height:void 0,maxHeight:void 0,closeOnButton:!0,closeOnEsc:!0,closeOnOutsideClick:!0},tr=(()=>{var e,t;let n=class n{constructor(){M(this,e);M(this,t);x(this,e,N(Qe)),x(this,t,N(It,{optional:!0})),this.dialogRef=ve("dialogRef"),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=k(()=>Q(te(Q({},er),{class:p(this,t)?.dialogType??"default"}),this.options())),this.abortController=null,this.isOpenEffect=ee(()=>{let s=this.dialogRef()?.nativeElement;s&&(this.abortController&&this.abortController.abort(),this.abortController=new AbortController,this.isOpen()?(s.showModal(),s.addEventListener("close",()=>{this.isOpen.set(!1),this.closed.emit()},{signal:this.abortController?.signal}),p(this,e).addEventListener("keydown",c=>{c.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&c.preventDefault(),c.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},{signal:this.abortController?.signal})):(s.close(),queueMicrotask(()=>this.closed.emit())))})}ngOnDestroy(){this.abortController?.abort()}};e=new WeakMap,t=new WeakMap,n.\u0275fac=function(c){return new(c||n)},n.\u0275cmp=L({type:n,selectors:[["sh-dialog"]],viewQuery:function(c,g){c&1&&ge(g.dialogRef,xo,5),c&2&&De()},inputs:{isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:le,decls:2,vars:2,consts:[["dialogRef",""],["shDialog","",3,"class","width","max-width","max-height","height"],["shDialog",""],[1,"content"],[1,"closeable-overlay"],[1,"closeable-overlay",3,"click"]],template:function(c,g){c&1&&(G(),mt(0),R(1,Oo,5,11,"dialog",1)),c&2&&(fe(g.defaultOptionMerge()),b(),P(g.isOpen()?1:-1))},encapsulation:2,changeDetection:0});let i=n;return i})(),na=(()=>{var e,t,n,o,un,lt;let g=class g{constructor(){M(this,o);M(this,e);M(this,t);M(this,n);x(this,e,N(Qe)),x(this,t,p(this,e).querySelector("body")),x(this,n,N(kt)),this.compRef=null,this.insertedCompRef=null,this.closedFieldSub=null,this.compClosedSub=null}open(r,d){let m=p(this,n).injector,_=w(this,o,un).call(this),A=d||{},{data:v,closed:y}=A,a=fi(A,["data","closed"]);this.compRef&&w(this,o,lt).call(this),this.insertedCompRef=qt(r,{environmentInjector:m}),this.compRef=qt(tr,{hostElement:_,environmentInjector:m,projectableNodes:[[this.insertedCompRef.location.nativeElement]]});let l=this.insertedCompRef.instance?.data,u=this.insertedCompRef.instance?.closed;if(v){if(Ft(l))this.insertedCompRef.setInput("data",v);else if(!Ft(l))throw new Error("data is not an input signal on the passed component")}u instanceof $t&&(this.closedFieldSub=u.subscribe((...Y)=>{y?.(...Y),w(this,o,lt).call(this)})),p(this,n).attachView(this.insertedCompRef.hostView),p(this,n).attachView(this.compRef.hostView),this.insertedCompRef.changeDetectorRef.detectChanges(),this.compRef.changeDetectorRef.detectChanges(),this.compRef.instance.isOpen.set(!0),this.compRef.setInput("options",a),this.compRef.instance.closed.subscribe(()=>C());let h=this;function C(){var Y;u&&u instanceof $t?u.emit(!1):y?.(void 0),w(Y=h,o,lt).call(Y)}return{component:this.insertedCompRef.instance,close:C}}ngOnDestroy(){w(this,o,lt).call(this)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,un=function(){let r=p(this,e).createElement("sh-dialog-ref");return r.id="sh-dialog-ref",p(this,e).getElementById("sh-dialog-ref")||p(this,t)?.append(r),p(this,e).getElementById("sh-dialog-ref")},lt=function(){this.insertedCompRef&&(p(this,n).detachView(this.insertedCompRef.hostView),this.closedFieldSub?.unsubscribe(),this.insertedCompRef.destroy()),this.compRef&&(p(this,n).detachView(this.compRef.hostView),this.compClosedSub?.unsubscribe(),this.compRef.destroy())},g.\u0275fac=function(d){return new(d||g)},g.\u0275prov=Pe({token:g,factory:g.\u0275fac,providedIn:"root"});let i=g;return i})(),oa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-button-group"]],ngContentSelectors:le,decls:1,vars:0,template:function(o,s){o&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),sa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["","shButton",""]],hostAttrs:[1,"sh-sheet-h"],attrs:Vo,ngContentSelectors:le,decls:1,vars:0,template:function(o,s){o&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),ra=(()=>{var e;let t=class t{constructor(){M(this,e);x(this,e,N(It,{optional:!0})),this.class=V(p(this,e)?.cardType??"default")}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=L({type:t,selectors:[["sh-card"]],hostVars:2,hostBindings:function(s,c){s&2&&me(c.class())},ngContentSelectors:le,decls:1,vars:0,template:function(s,c){s&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=t;return i})(),ir=(()=>{let e=class e{constructor(){this.currentClassList=hi()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-checkbox"]],ngContentSelectors:le,decls:6,vars:2,consts:[[1,"box","sh-sheet"],[1,"inherit","default-indicator"],[1,"inherit","indeterminate-indicator"]],template:function(o,s){o&1&&(G(),E(0,"div",0)(1,"sh-icon",1),F(2,"check-bold"),T(),E(3,"sh-icon",2),F(4,"minus-bold"),T()(),S(5)),o&2&&me(s.currentClassList())},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),nr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-chip"]],hostAttrs:[1,"sh-sheet"],ngContentSelectors:le,decls:2,vars:0,template:function(o,s){o&1&&(G(),U(0,"div"),S(1),W())},encapsulation:2,changeDetection:0});let i=e;return i})();var or=["scroll","auto"],sr={width:void 0,height:void 0,closeOnButton:!0,closeOnEsc:!0},hn=(()=>{var e,t,n,pn,Tt;let c=class c{constructor(){M(this,n);M(this,e);M(this,t);x(this,e,N(Qe)),x(this,t,4),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc")&&CSS.supports("anchor-name","--abc"),this.asMultiLayer=O(!1),this.disableOpenByClick=O(!1),this.isOpen=ne(!1),this.options=O(),this.closed=xe(),this.defaultOptionMerge=k(()=>Q(Q({},sr),this.options())),this.triggerRef=ve.required("triggerRef"),this.popoverRef=ve.required("popoverRef"),this.id=V("--"+Nt()),this.menuStyle=V(null),this.openAbort=null,this.openEffect=ee(()=>{let f=this.popoverRef()?.nativeElement;if(this.isOpen()){this.openAbort&&this.openAbort.abort(),this.openAbort=new AbortController;let d={signal:this.openAbort?.signal};f?.showPopover(),p(this,e).addEventListener("keydown",m=>{m.key==="Escape"&&!this.defaultOptionMerge().closeOnEsc&&m.preventDefault(),m.key==="Escape"&&this.defaultOptionMerge().closeOnEsc&&this.isOpen.set(!1)},d),setTimeout(()=>{w(this,n,pn).call(this,this.popoverRef()?.nativeElement).addEventListener("scroll",()=>w(this,n,Tt).call(this),d),window?.addEventListener("resize",()=>w(this,n,Tt).call(this),d),w(this,n,Tt).call(this)})}else f.hidePopover&&f.hidePopover(),this.openAbort?.abort(),this.closed.emit()})}toggleIsOpen(f){f.preventDefault(),f.stopPropagation(),this.disableOpenByClick()||this.isOpen.set(!this.isOpen())}eventClose(f){f.stopPropagation(),f.preventDefault(),this.isOpen.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakSet,pn=function(f){let r=f.parentElement;for(;r;){if(or.indexOf(window?.getComputedStyle(r).overflowY)>-1&&r.scrollHeight>r.clientHeight)return r;r=r.parentElement}return p(this,e).documentElement},Tt=function(){let f=this.triggerRef()?.nativeElement.getBoundingClientRect(),r=this.popoverRef()?.nativeElement.getBoundingClientRect(),d=f.left,m=f.bottom,_=d,v=m+p(this,t),y=_+r.width>window?.innerWidth,a=v+r.height>window?.innerHeight;if(!this.SUPPORTS_ANCHOR){if(_=d,v=m+p(this,t),a){let u=f.top-r.height-p(this,t);u<0||(v=u)}y&&(_=f.right-r.width,_<0&&(_=0));let l={left:_+"px",top:v+"px"};this.menuStyle.set(l)}},c.\u0275fac=function(r){return new(r||c)},c.\u0275cmp=L({type:c,selectors:[["sh-popover"]],viewQuery:function(r,d){r&1&&(ge(d.triggerRef,To,5),ge(d.popoverRef,Ao,5)),r&2&&De(2)},hostVars:2,hostBindings:function(r,d){r&2&&q("multi-layer",d.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],disableOpenByClick:[1,"disableOpenByClick"],isOpen:[1,"isOpen"],options:[1,"options"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:No,decls:11,vars:6,consts:[["triggerRef",""],["popoverRef",""],[1,"trigger",3,"click"],[1,"trigger-wrapper"],[1,"trigger-anchor"],["popover","",1,"popover"],[1,"overlay",3,"click"]],template:function(r,d){if(r&1){let m=ue();G(Io),U(0,"div",2,0),Ne("click",function(v){return H(m),B(d.toggleIsOpen(v))}),U(2,"div",3),S(3),S(4,1),S(5,2),W(),Ae(6,"div",4),W(),U(7,"div",5,1)(9,"div",6),Ne("click",function(v){return H(m),B(d.isOpen()&&d.eventClose(v))}),W(),S(10,3),W()}r&2&&(b(6),he("anchor-name",d.id()),b(),Oi(d.menuStyle()),he("position-anchor",d.id()))},encapsulation:2,changeDetection:0});let i=c;return i})();var rr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-divider"]],ngContentSelectors:le,decls:1,vars:0,template:function(o,s){o&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var pi=(()=>{var e;let t=class t{constructor(){M(this,e,N(Z));ft(()=>{let o=typeof CSS<"u"&&CSS.supports("field-sizing","content"),s=p(this,e).nativeElement.querySelector("textarea");if(!o&&s!==null){let f=function(){s.style.height="auto",s.style.height=s.scrollHeight+"px"},r=function(){setTimeout(f,0)};var c=f,g=r;s.addEventListener("change",f),s.addEventListener("cut",r),s.addEventListener("paste",r),s.addEventListener("drop",r),s.addEventListener("keydown",r),s.focus(),s.select(),f()}})}onClick(){p(this,e).nativeElement.querySelector("input")&&p(this,e).nativeElement.querySelector("input").focus(),p(this,e).nativeElement.querySelector("textarea")&&p(this,e).nativeElement.querySelector("textarea").focus()}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=L({type:t,selectors:[["sh-form-field"]],hostBindings:function(s,c){s&1&&$("click",function(){return c.onClick()})},ngContentSelectors:Ro,decls:17,vars:0,consts:[[1,"input-wrap"],[1,"prefix"],[1,"suffix"],[1,"helpers"],[1,"error-wrap"],[1,"hint"]],template:function(s,c){s&1&&(G(ko),S(0),U(1,"div",0)(2,"div",1),S(3,1),S(4,2),S(5,3),W(),S(6,4),S(7,5),U(8,"div",2),S(9,6),S(10,7),S(11,8),W()(),U(12,"div",3)(13,"div",4),S(14,9),W(),U(15,"div",5),S(16,10),W()())},encapsulation:2,changeDetection:0});let i=t;return i})(),aa=(()=>{let e=class e{constructor(){this._el=N(Z),this.inputRef=ve.required("input"),this.filesOver=V(!1),this.multiple=O(),this.accept=O(null),this.placeholder=ne("Click or drag files here"),this.overlayText=O("Drop files here"),this.files=ne([]),this.fileUploadClasses=k(()=>this._el.nativeElement.classList.toString()),this.inputEffect=ee(()=>{let n=this.inputRef().nativeElement;n&&(n.placeholder&&this.placeholder.set(n.placeholder),n.addEventListener("dragover",o=>{o.preventDefault(),this.filesOver.set(!0)}),n.addEventListener("dragleave",o=>{o.preventDefault(),this.filesOver.set(!1)}),n.addEventListener("drop",o=>{o.preventDefault(),this.filesOver.set(!1);let s=o.dataTransfer?.files;s&&s.length>0&&(this.handleFileUpload(Array.from(s)),n.files=s)}),n.addEventListener("change",o=>{o.preventDefault(),this.handleFileUpload(Array.from(o.target.files))}))})}handleFileUpload(n){this.multiple()?this.files.update(o=>[...o,...n]):this.files.set(n)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-file-upload"]],viewQuery:function(o,s){o&1&&ge(s.inputRef,cn,5),o&2&&De()},inputs:{multiple:[1,"multiple"],accept:[1,"accept"],placeholder:[1,"placeholder"],overlayText:[1,"overlayText"],files:[1,"files"]},outputs:{placeholder:"placeholderChange",files:"filesChange"},ngContentSelectors:jo,decls:12,vars:7,consts:[["inputWrap",""],["input",""],["ngProjectAs","input",5,["input"],1,"input"],[1,"files-text"],[1,"placeholder"],["type","file"],[1,"bg-overlay"],["suffix",""]],template:function(o,s){o&1&&(G(Po),E(0,"sh-form-field"),S(1,0,["ngProjectAs","label",5,["label"]]),E(2,"div",2,0),R(4,Lo,2,1,"div",3)(5,Ho,2,1,"div",3)(6,Bo,2,1,"div",4),Te(7,"input",5,1)(9,"div",6),T(),E(10,"sh-icon",7),F(11,"upload-simple"),T()()),o&2&&(me(s.fileUploadClasses()),b(4),P(s.files().length===1?4:s.files().length>1?5:6),b(3),He("multiple",s.multiple())("accept",s.accept()),b(2),q("files-over",s.filesOver()))},dependencies:[pi,qe],encapsulation:2,changeDetection:0});let i=e;return i})(),la=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-list"]],ngContentSelectors:le,decls:1,vars:0,template:function(o,s){o&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=e;return i})();function fn(i,e){let t=e?.injector||(bi(fn),N(Ye)),{debounce:n=0,initialValue:o=void 0,transform:s=h=>h,compare:c=(h,C)=>h===C,forceType:g=void 0,returnPreviousValue:f=!0}=e||{},r=V(o),d=t.get(je),m=k(()=>{let h=i()?.nativeElement;if(h instanceof HTMLInputElement||h instanceof HTMLTextAreaElement)return l(h)}),_=!1,v,y=null;return ee(()=>{let h=m();if(!h)return r.set(f&&v?s(v):void 0);o!==void 0&&h.value===""?r.set(o):h.value!==""&&a();let C=A=>{y!==null&&clearTimeout(y),y=setTimeout(()=>{y=null,a()},n)};h.addEventListener("input",C),h.addEventListener("inputValueChanged",C),d.onDestroy(()=>{h.removeEventListener("input",C),h.removeEventListener("inputValueChanged",C),y!==null&&clearTimeout(y)})},{injector:t}),ee(()=>{let h=m();if(!h)return;let C=r()??"",A=C==null?"":String(C);h.value!==A&&(v=A,h.value=A,h.dispatchEvent(new Event("input")))},{injector:t}),r;function a(){if(!_){_=!0;try{let h=m();if(!h)return;let C=h.value,A=g?u(C,g):s(C);v=C,c(r(),A)||r.set(A)}finally{_=!1}}}function l(h){return Object.defineProperty(h,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").get.call(this)},set(C){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(h),"value").set.call(this,C);let Y=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:C}});return this.dispatchEvent(Y),C}}),h}function u(h,C){switch(C){case"string":return h.toString();case"number":let A=Number(h);return isNaN(A)?void 0:A;case"boolean":return h.toLowerCase()==="true"?!0:h.toLowerCase()==="false"?!1:void 0;default:return h}}}function gn(i,e){let t=N(Ye),n=t.get(je),o=V([]),s=null,c=null,g=(r,d)=>{c&&c.disconnect();let m=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(m),typeof MutationObserver<"u"&&(c=new MutationObserver(_=>{queueMicrotask(()=>{let v=Array.from(r.nativeElement.querySelectorAll(d.join(",")));o.set(v)})}),c.observe(r.nativeElement,{childList:!0,subtree:!0})),n.onDestroy(()=>f())};s=ee(()=>{let r=typeof i=="function"&&i[gi]?i():i,d=typeof e=="function"?e():e;r&&d?.length>0?g(r,d):(o.set([]),c&&(c.disconnect(),c=null))},{injector:t});function f(){s&&s.destroy(),c&&c.disconnect()}return{signal:o.asReadonly(),destroy:f}}var ca=(()=>{var e,t,mn,ai;let s=class s{constructor(){M(this,t);M(this,e);x(this,e,N(ye)),this.asMultiLayer=O(!1),this.openIndicator=O(!1),this.disabled=O(!1),this.customOptionElementSelectors=O(["button"]),this.keepClickedOptionActive=O(!1),this.closeOnClick=O(!0),this.isOpen=ne(!1),this.closed=xe(),this.searchable=O(!1),this.activeOptionIndex=V(-1),this.inputRef=ve("input"),this.optionsRef=ve("optionsRef"),this.options=gn(this.optionsRef,this.customOptionElementSelectors),this.optionsEl=k(()=>this.options.signal().filter(g=>!g.disabled)),this.inputValue=fn(this.inputRef),this.abortController=null,this.optionsEffect=ee(()=>{if(!this.isOpen())return;this.abortController&&(this.abortController.abort(),this.abortController=null),this.abortController=new AbortController;let g=this.inputRef()?.nativeElement;g&&(queueMicrotask(()=>g.focus()),this.closeOnClick()||this.optionsRef()?.nativeElement?.addEventListener("click",r=>{let d=r.target,m=this.activeElements();if(!m.length){let v=this.optionsEl();this.activeElements.set(v),m=v}let _=m.findIndex(v=>v===d);_>-1&&(this.activeOptionIndex.set(_),g.focus())}),g.addEventListener("keydown",f=>{let r=this.activeOptionIndex();f.key==="ArrowDown"?(f.preventDefault(),this.activeOptionIndex.set(this.nextActiveIndex(r))):f.key==="ArrowUp"?(f.preventDefault(),this.activeOptionIndex.set(this.prevActiveIndex(r))):f.key==="Enter"?(f.preventDefault(),r>-1&&(this.activeElements()[r].click(),queueMicrotask(()=>this.close("active")))):f.key==="Tab"&&(f.preventDefault(),this.close("closed"))},{signal:this.abortController.signal}))}),this._lastElementList=[],this.activeElements=V([]),this.lastInputValue="",this.inputValueEffect=ee(()=>{if(!this.searchable())return;let f=(this.inputValue()??"").toLowerCase();if(w(this,t,ai).call(this),!f||f==="")return;let r=this._lastElementList.length&&f.length>this.lastInputValue.length?this._lastElementList:this.optionsEl();this.lastInputValue=f;for(let d=0;d<r.length;d++){let m=r[d],_=m.textContent?.toLowerCase()||"",v=w(this,t,mn).call(this,_,f);m.value=v}r=r.filter(d=>d.value>0).sort((d,m)=>m.value-d.value);for(let d=0;d<r.length;d++)p(this,e).setStyle(r[d],"order",d);this.activeElements.set(r),this._lastElementList=r}),this.activeOptionIndexEffect=ee(()=>{let g=this.activeElements(),f=this.activeOptionIndex();for(let r=0;r<g.length;r++)g[r].classList.remove("active");f>-1&&(g[f].scrollIntoView({block:"center"}),g[f].classList.add("active"))})}nextActiveIndex(g){let f=this.activeElements();if(!f.length){let d=this.optionsEl();this.activeElements.set(d),f=d}if(g===-1||g===f.length-1)return 0;let r=g+1;return f[r].disabled?this.nextActiveIndex(r):r}prevActiveIndex(g){let f=this.activeElements();if(!f.length){let d=this.optionsEl();this.activeElements.set(d),f=d}if(g===0||g===-1)return f.length-1;let r=g-1;return f[r].disabled?this.prevActiveIndex(r):r}close(g="closed",f){this.inputValue.set(""),this.closeOnClick()&&((!this.keepClickedOptionActive()||g==="closed")&&w(this,t,ai).call(this),this.isOpen.set(!1),this.closed.emit(g==="active"))}ngOnDestroy(){this.abortController&&(this.abortController.abort(),this.abortController=null)}};e=new WeakMap,t=new WeakSet,mn=function(g,f){if(!f)return 0;let r=0,d=-1,m=0,_=!0;for(let v=0;v<f.length;v++){let y=f[v];if(g.length>d+1&&g[d+1]===y)r+=v===0?100:150,d++,m++;else{let a=g.indexOf(y,d+1);if(v>0&&(_=!1),a===-1)return 0;r+=100,d=a,m++}}return _&&f.length===m&&(r+=1e3),r+=m*20,r},ai=function(){this.activeOptionIndex.set(-1);let g=this.optionsEl();for(let f=0;f<g.length;f++)g[f].classList.remove("active")},s.\u0275fac=function(f){return new(f||s)},s.\u0275cmp=L({type:s,selectors:[["sh-menu"]],viewQuery:function(f,r){f&1&&(ge(r.inputRef,cn,5),ge(r.optionsRef,Uo,5)),f&2&&De(2)},hostVars:6,hostBindings:function(f,r){f&2&&q("disabled",r.disabled())("has-search",r.searchable())("multi-layer",r.asMultiLayer())},inputs:{asMultiLayer:[1,"asMultiLayer"],openIndicator:[1,"openIndicator"],disabled:[1,"disabled"],customOptionElementSelectors:[1,"customOptionElementSelectors"],keepClickedOptionActive:[1,"keepClickedOptionActive"],closeOnClick:[1,"closeOnClick"],isOpen:[1,"isOpen"],searchable:[1,"searchable"]},outputs:{isOpen:"isOpenChange",closed:"closed"},ngContentSelectors:$o,decls:12,vars:12,consts:[["formFieldWrapper",""],["input",""],["optionsRef",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","asMultiLayer","options"],["trigger","",3,"click"],[1,"open-indicator"],[1,"form-field-wrap"],[1,"small","stretch"],["type","text","placeholder","Search"],[1,"options",3,"click"]],template:function(f,r){if(f&1){let d=ue();G(Wo),E(0,"sh-popover",3,0),Bt("isOpenChange",function(_){return H(d),Ht(r.isOpen,_)||(r.isOpen=_),B(_)}),$("closed",function(){return H(d),B(r.close("fromPopover"))}),E(2,"div",4),$("click",function(){return H(d),B(!r.disabled()&&r.isOpen.set(!0))}),S(3),R(4,Go,2,0,"sh-icon",5),T(),E(5,"div",6)(6,"sh-form-field",7),Te(7,"input",8,1),T()(),E(9,"div",9,2),$("click",function(){return H(d),B(r.close("active"))}),S(11,1),T()()}f&2&&(Lt("isOpen",r.isOpen),pe("disableOpenByClick",!0)("asMultiLayer",r.asMultiLayer())("options",Ut(11,Fo)),b(2),q("is-open",r.isOpen()),b(2),P(r.openIndicator()?4:-1),b(2),q("hidden",r.searchable()===!1),b(3),q("searching",r.searchable()&&r.inputValue()!==""))},dependencies:[hn,pi,qe],encapsulation:2,changeDetection:0});let i=s;return i})(),ar=(()=>{let e=class e{constructor(){this.value=O(void 0)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-progress-bar"]],inputs:{value:[1,"value"]},decls:1,vars:2,consts:[[1,"progress-bar"]],template:function(o,s){o&1&&Ae(0,"div",0),o&2&&he("width",s.value(),"%")},encapsulation:2,changeDetection:0});let i=e;return i})(),da=(()=>{let e=class e{constructor(){this.currentClassList=hi()}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-radio"]],ngContentSelectors:le,decls:2,vars:2,consts:[[1,"radio","sh-sheet"]],template:function(o,s){o&1&&(G(),Ae(0,"div",0),S(1)),o&2&&me(s.currentClassList())},encapsulation:2,changeDetection:0});let i=e;return i})(),ua=(()=>{var e,t,n,o,s,li,vn,_n,Cn;let d=class d{constructor(){M(this,s);M(this,e);M(this,t);M(this,n);M(this,o);x(this,e,N(Z)),x(this,t,null),x(this,n,null),x(this,o,0),this.unit=O(""),this.value=ne(p(this,o)),this.inputState=V({min:0,max:100,step:1}),this.valuePercentage=k(()=>{let{min:_,max:v}=this.inputState(),y=this.value()??_;if(isNaN(y))return 0;let a=v-_;if(a===0)return 0;let l=(y-_)/a*100;return Math.max(0,Math.min(100,l))}),this.trackFilledPercentage=k(()=>this.valuePercentage()),this.thumbPositionPercentage=k(()=>this.valuePercentage()),this.syncModelToInputEffect=ee(()=>{let _=this.value();if(p(this,n)){let v=parseFloat(p(this,n).value);(isNaN(v)||String(v)!==String(_))&&(p(this,n).value=String(_))}})}get hasInputElement(){return!!p(this,n)}ngAfterViewInit(){x(this,n,p(this,e).nativeElement.querySelector('input[type="range"]')),p(this,n)?(w(this,s,Cn).call(this,p(this,n)),p(this,n).oninput=()=>{this.setNewInputValue(p(this,n).value)},p(this,n).addEventListener("inputValueChanged",_=>{this.setNewInputValue(_.detail.value)}),queueMicrotask(()=>w(this,s,li).call(this,!0)),w(this,s,vn).call(this)):console.error('ShipRangeSliderComponent: No <input type="range"> element found projected inside.')}setNewInputValue(_){let v=parseFloat(_??"0");if(!isNaN(v)){let{min:y,max:a}=this.inputState();this.value.set(Math.max(y,Math.min(a,v)))}}trackEvent(_){if(!p(this,n)||p(this,n).readOnly||p(this,n).disabled){_.preventDefault(),_.stopPropagation();return}if(_.target===p(this,n)||_.target?.closest(".thumb, .min-indicator, .max-indicator"))return;let y=_.currentTarget.getBoundingClientRect(),a=_.clientX-y.left,l=y.width,{min:u,max:h,step:C}=this.inputState(),A=h-u;if(l>0&&A!==0&&C>0){let K=(a/l*A+u-u)/C,j=u+Math.round(K)*C,J=w(this,s,_n).call(this,C);j=parseFloat(j.toFixed(J));let ce=Math.max(u,Math.min(h,j));this.value.set(ce)}}ngOnDestroy(){p(this,t)&&p(this,t).disconnect(),p(this,n)&&(p(this,n).oninput=null)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,li=function(_=!1){if(!p(this,n))return;let v=parseFloat(p(this,n).min??"0")??0,y=parseFloat(p(this,n).max??"100")??100,a=p(this,n).step,l=1;if(a&&a.toLowerCase()!=="any"){let h=parseFloat(a);!isNaN(h)&&h>0&&(l=h)}this.inputState.set({min:v,max:y,step:l});let u=parseFloat(p(this,n).value??String(v))??v;if(_&&this.value()!==p(this,o)){let h=this.value(),C=Math.max(v,Math.min(y,h));u!==C&&(p(this,n).value=String(C)),h!==C&&this.value.set(C)}else{let h=Math.max(v,Math.min(y,u));this.value()!==h&&this.value.set(h)}},vn=function(){if(!p(this,n)||typeof MutationObserver>"u")return;let _=["min","max","step","value","readonly","disabled"];x(this,t,new MutationObserver(v=>{let y=!1;for(let a of v)if(a.type==="attributes"&&_.includes(a.attributeName??"")){y=!0;break}y&&w(this,s,li).call(this,!1)})),p(this,t).observe(p(this,n),{attributes:!0,attributeFilter:_})},_n=function(_){if(isNaN(_)||Math.floor(_)===_)return 0;let y=_.toString().split(".")[1];return y?y.length:0},Cn=function(_){Object.defineProperty(_,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(_),"value").get.call(this)},set(v){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(_),"value").set.call(this,v);let a=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:v}});return this.dispatchEvent(a),v}})},d.\u0275fac=function(v){return new(v||d)},d.\u0275cmp=L({type:d,selectors:[["sh-range-slider"]],hostVars:2,hostBindings:function(v,y){v&2&&q("has-input",y.hasInputElement)},inputs:{unit:[1,"unit"],value:[1,"value"]},outputs:{value:"valueChange"},ngContentSelectors:zo,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(v,y){v&1&&(G(qo),U(0,"div",0),S(1),W(),U(2,"div",1)(3,"div",2),F(4),W(),U(5,"div",3),Ne("click",function(l){return y.trackEvent(l)}),S(6,1),U(7,"div",4),Ae(8,"div",5),W(),U(9,"div",6)(10,"div",7)(11,"div",8),F(12),W()()()(),U(13,"div",9),F(14),W()()),v&2&&(b(4),gt("",y.inputState().min,"",y.unit()),b(4),he("width",y.trackFilledPercentage(),"%"),b(),he("left",y.thumbPositionPercentage(),"%"),b(3),gt("",y.value(),"",y.unit()),b(2),gt("",y.inputState().max,"",y.unit()))},encapsulation:2,changeDetection:0});let i=d;return i})(),lr=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-spinner"]],decls:0,vars:0,template:function(o,s){},encapsulation:2,changeDetection:0});let i=e;return i})(),ha=(()=>{var e,t,n,o,ci,c,g,di,ae,yn,Dn,bn;let v=class v{constructor(){M(this,o);M(this,e);M(this,t);M(this,n);M(this,c);M(this,g);x(this,e,N(Z)),this.value=O(),this.label=O(),this.asFreeText=O(!1),this.optionTitle=O(null),this.freeTextTitle=O(null),this.freeTextPlaceholder=O("Type to create a new option"),this.validateFreeText=O(),this.placeholder=O(),this.readonly=ne(!1),this.disabled=ne(!1),this.lazySearch=O(!1),this.inlineSearch=O(!1),this.asText=O(!1),this.isClearable=O(!0),this.selectMultiple=O(!1),this.optionTemplate=O(null),this.selectedOptionTemplate=O(null),this.placeholderTemplate=O(null),this.freeTextOptionTemplate=O(null),this.isOpen=ne(!1),this.isLoading=ne(!1),this.options=ne([]),this.selectedOptions=ne([]),this.cleared=xe(),this.onAddNewFreeTextOption=xe(),this.computedFreeTextOption=k(()=>{let a=this.inputValue(),l=this.value(),u=l?{}:a;return l&&typeof u=="object"&&(u[l]=a),u}),x(this,t,V(null)),this.inlineTemplate=Vi(pt),this.optionsWrapRef=ve.required("optionsWrap"),this.inputRefInput=V(null),x(this,n,typeof MutationObserver<"u"&&new MutationObserver(a=>{for(var l of a)l&&(l.target.nodeName==="INPUT"||l.target.nodeName==="TEXTAREA")&&(this.inputRefInput.set(new Z(l.target)),p(this,n).disconnect())})),this.inputValue=V(""),this.prevInputValue=V(null),this.focusedOptionIndex=V(-1),this._isClearable=k(()=>this.selectMultiple()||this.isClearable()),this.selectClasses=k(()=>p(this,e).nativeElement.classList.toString()),this.stretch=k(()=>this.selectClasses().includes("stretch")),this.small=k(()=>this.selectClasses().includes("small")),this.placeholderText=k(()=>{let a=this.placeholder(),l=this.inputRefEl();return a||l?.placeholder||null}),this.selectedOptionValues=k(()=>{let a=this.selectedOptions(),l=this.value();return l?a.map(u=>w(this,o,ae).call(this,u,l)):a}),this.filteredOptions=k(()=>{let a=this.options()||[],l=this.label(),u=this.value(),h=this.inlineSearch(),C=this.inputValue().toLowerCase(),A=w(this,o,Dn).call(this,C);if(a.length<=0)return[];if(!h||C==="")return a;let K=a.filter(j=>{let J=l?(w(this,o,ae).call(this,j,l)??"").toString().toLowerCase():(j??"").toString().toLowerCase(),ce=((u?w(this,o,ae).call(this,j,u):j)??"").toString().toLowerCase(),Se=A.test(J),dt=A.test(ce);return Se||dt}).map(j=>{let J=l?(w(this,o,ae).call(this,j,l)??"").toString().toLowerCase():(j??"").toString().toLowerCase(),ce=((u?w(this,o,ae).call(this,j,u):j)??"").toString().toLowerCase(),Se=w(this,o,ci).call(this,J,C),dt=w(this,o,ci).call(this,ce,C);return{item:j,score:Math.max(Se,dt)}});return K.sort((j,J)=>J.score-j.score),K.map(j=>j.item)}),x(this,c,Nt()),this.inputRefEl=k(()=>{let a=this.inputRefInput();if(a===null)return;let l=a?a.nativeElement:null;return l?(l.autocomplete="off",l.setAttribute("role","combobox"),l.setAttribute("id",`combobox-${p(this,c)}`),l.setAttribute("aria-haspopup","listbox"),l.setAttribute("aria-owns","optionsWrapId"),w(this,o,yn).call(this,l),l.addEventListener("focus",()=>{this.readonly()||this.open()}),l.addEventListener("input",u=>{let h=u.target.value,C=this.inputValue();h!==C&&(this.focusedOptionIndex.set(this.asFreeText()?-1:0),this.inputValue.set(h),this.updateInputElValue())}),l.addEventListener("inputValueChanged",u=>{let h=u.detail.value,C=this.inputValue();if(h!==C){if(h===""){this.clear();return}this.setSelectedOptionsFromValue(h),this.setInputValueFromOptions(this.selectedOptions()),w(this,o,di).call(this)}}),l):(console.warn("<sh-select> input element not found are you missing to pass an <input> or <textarea> element to select component?"),null)}),this.focusEffect=ee(()=>{let a=this.inputRefEl();if(!a)return;let l=this.getLabelAsSlug(this.filteredOptions()[this.focusedOptionIndex()]);l?a.setAttribute("aria-activedescendant",l):a.removeAttribute("aria-activedescendant")}),this.openAbortController=null,this.isOpenEffect=ee(()=>{if(this.isOpen()){this.openAbortController||(this.openAbortController=new AbortController);let l=this.inputRefEl(),h=this.asFreeText()?-1:0;if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),l.addEventListener("keydown",C=>{if((C.key==="Escape"||C.key==="Tab")&&(C.preventDefault(),this.close()),C.key==="Enter"&&(C.preventDefault(),this.toggleOptionByIndex(this.focusedOptionIndex(),void 0,!0)),C.key==="ArrowDown"){C.preventDefault();let A=this.focusedOptionIndex()+1;this.focusedOptionIndex.set(A>this.filteredOptions().length-1?h:A)}if(C.key==="ArrowUp"){C.preventDefault();let A=this.focusedOptionIndex()-1;this.focusedOptionIndex.set(A<h?this.filteredOptions().length-1:A)}},{signal:this.openAbortController?.signal})}else{let l=this.inputRefEl();if(!l)return;l.setAttribute("aria-expanded",this.isOpen().toString()),this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null)}}),this._inputValue="",this.inputValueEffect=ee(()=>{let a=this.inputValue();this._inputValue=a}),this.inputRefElEffect=ee(()=>{let a=this.inputRefEl();a&&a.value!==this._inputValue&&(this.disabled.set(a.disabled),this.setSelectedOptionsFromValue(a.value),this.setInputValueFromOptions(this.selectedOptions()))}),this.selectedLabels=k(()=>{let a=this.selectedOptions();return this.label()?a.map(u=>this.getLabel(u)).join(", "):a.join(", ")}),this.inputState=k(()=>(this.selectedOptions().length>0||this.asFreeText()&&this.inputValue().length>0)&&!this.isOpen()?"selected":this.isLoading()?"loading":this.isOpen()&&(this.lazySearch()||this.inlineSearch())?"open-searching":this.isOpen()?"open":this.inlineSearch()||this.lazySearch()?"searching":"closed"),this.hasSearch=k(()=>this.inlineSearch()||this.lazySearch()),x(this,g,ee(()=>{if(this.selectMultiple()&&this.hasSearch())return;let a=this.selectedOptions(),l=this.value(),u=a.map(h=>l?w(this,o,ae).call(this,h,l):h).join(",");this.inputValue.set(u)}))}ngOnInit(){this.setInitInput()}setInitInput(){let a=p(this,e).nativeElement.querySelector("input");if(a){this.inputRefInput.set(new Z(a));return}let l=p(this,e).nativeElement.querySelector("textarea");if(l){this.inputRefInput.set(new Z(l));return}typeof MutationObserver<"u"&&p(this,n).observe(p(this,e).nativeElement,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}setSelectedOptionsFromValue(a){let l=this.options()||[],u=this.value(),h=this.selectMultiple(),C=a.toString().split(",");if(C.length===0){this.selectedOptions.set([]);return}let A=h?C:[C[0]],Y=l.filter(K=>{let j=u?w(this,o,ae).call(this,K,u)?.toString():K?.toString();return j&&A.includes(j)});this.selectedOptions.set(h?Y:[Y[0]])}setInputValueFromOptions(a){let l=this.value();if(a.length===0){this.inputValue.set(""),this.updateInputElValue();return}let u=a.map(h=>l?w(this,o,ae).call(this,h,l):h).join(",");u!==this.inputValue()&&(this.inputValue.set(u),this.updateInputElValue())}getValue(a){let l=this.value();return l?w(this,o,ae).call(this,a,l):a}getLabel(a){let l=this.label();return l?w(this,o,ae).call(this,a,l):a}getLabelAsSlug(a){let l=this.getLabel(a);return!l||typeof l!="string"?"":l.replaceAll(" ","-")}toggleOptionByIndex(a,l,u=!1){let h=this.filteredOptions()[a];if(this.asFreeText()&&a===-1){let J=this.computedFreeTextOption(),ce=this.getValue(J);if(!(this.validateFreeText()??(ut=>!0))(ce))return;this.options.update(ut=>ut.findIndex(Sn=>this.getValue(Sn)===ce)>-1?ut:(this.onAddNewFreeTextOption.emit(ce),[J,...ut])),a=0,h=J}else if(!h){this.close();return}l&&l.stopPropagation();let C=this.selectMultiple(),A=this._isClearable(),Y=this.value(),K=this.selectedOptionValues(),j=Y?w(this,o,ae).call(this,h,Y):h;this.prevInputValue.set(null),p(this,t).set(null),this.selectedOptions.update(J=>{let ce=K.indexOf(j);if(ce>-1){let Se=[...J.slice(0,ce),...J.slice(ce+1)];return A||Se.length>0?Se:J}else return this.focusedOptionIndex.set(a),C?[...J,h]:[h]}),C?this.inputRefEl()?.focus():this.isOpen.set(!1),this.setInputValueFromOptions(this.selectedOptions()),C&&this.hasSearch()&&(this.inputValue.set(""),this.updateInputElValue())}removeSelectedOptionByIndex(a,l){a.stopPropagation(),this.selectedOptions.update(u=>[...u.slice(0,l),...u.slice(l+1)]),this.setInputValueFromOptions(this.selectedOptions())}isSelected(a){let l=this.value(),u=this.filteredOptions()[a],h=l?w(this,o,ae).call(this,u,l):u;return this.selectedOptionValues().indexOf(h)>-1}open(){this.isOpen()||(this.isOpen.set(!0),this.hasSearch()?(this.prevInputValue.set(this.inputValue()??""),this.inputValue.set(""),this.updateInputElValue()):p(this,t).set(this.selectedOptions()),this.selectMultiple()||w(this,o,di).call(this))}close(){this.isOpen.set(!1);let a=this.prevInputValue(),l=p(this,t).call(this);if(this.asFreeText()){this.updateInputElValue();return}this.hasSearch()&&a&&(this.inputValue.set(a),this.setInputValueFromOptions(this.selectedOptions())),!this.hasSearch()&&l!==null&&this.setInputValueFromOptions(l),this.selectMultiple()&&this.setInputValueFromOptions(this.selectedOptions())}clear(a){a?.stopPropagation(),this.inputValue.set(""),this.selectedOptions.set([]),this.isOpen.set(!1),this.prevInputValue.set(null),this.cleared.emit(),this.updateInputElValue()}updateInputElValue(){let a=this.inputRefEl(),l=this.inputValue();a&&(a.value=l,a.dispatchEvent(new Event("input")))}ngOnDestroy(){this.openAbortController&&(this.openAbortController.abort(),this.openAbortController=null),typeof MutationObserver<"u"&&p(this,n).disconnect()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakSet,ci=function(a,l){if(!l)return 0;let u=0,h=-1,C=0,A=!0;for(let Y=0;Y<l.length;Y++){let K=l[Y];if(a.length>h+1&&a[h+1]===K)u+=Y===0?100:150,h++,C++;else{let j=a.indexOf(K,h+1);if(Y>0&&(A=!1),j===-1)return 0;u+=100,h=j,C++}}return A&&l.length===C&&(u+=1e3),u+=C*20,u},c=new WeakMap,g=new WeakMap,di=function(){let a=this.selectedOptionValues()[0],l=this.value();if(a){let u=this.filteredOptions().findIndex(h=>l?w(this,o,ae).call(this,h,l)===a:h===a);this.focusedOptionIndex.set(u)}else this.focusedOptionIndex.set(-1)},ae=function(a,l){return l.split(".").reduce((u,h)=>u?.[h],a)},yn=function(a){Object.defineProperty(a,"value",{configurable:!0,get(){return Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").get.call(this)},set(l){Object.getOwnPropertyDescriptor(Object.getPrototypeOf(a),"value").set.call(this,l);let h=new CustomEvent("inputValueChanged",{bubbles:!0,cancelable:!0,detail:{value:l}});return this.dispatchEvent(h),l}})},Dn=function(a){let l=(a??"").toLowerCase(),u="^";for(let h of l)u+=".*"+w(this,o,bn).call(this,h);return u+=".*$",new RegExp(u,"i")},bn=function(a){return a.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&")},v.\u0275fac=function(l){return new(l||v)},v.\u0275cmp=L({type:v,selectors:[["sh-select"]],contentQueries:function(l,u,h){l&1&&xi(h,u.inlineTemplate,pt,5),l&2&&De()},viewQuery:function(l,u){l&1&&ge(u.optionsWrapRef,Yo,5),l&2&&De()},hostVars:2,hostBindings:function(l,u){l&2&&q("multiple",u.selectMultiple())},inputs:{value:[1,"value"],label:[1,"label"],asFreeText:[1,"asFreeText"],optionTitle:[1,"optionTitle"],freeTextTitle:[1,"freeTextTitle"],freeTextPlaceholder:[1,"freeTextPlaceholder"],validateFreeText:[1,"validateFreeText"],placeholder:[1,"placeholder"],readonly:[1,"readonly"],disabled:[1,"disabled"],lazySearch:[1,"lazySearch"],inlineSearch:[1,"inlineSearch"],asText:[1,"asText"],isClearable:[1,"isClearable"],selectMultiple:[1,"selectMultiple"],optionTemplate:[1,"optionTemplate"],selectedOptionTemplate:[1,"selectedOptionTemplate"],placeholderTemplate:[1,"placeholderTemplate"],freeTextOptionTemplate:[1,"freeTextOptionTemplate"],isOpen:[1,"isOpen"],isLoading:[1,"isLoading"],options:[1,"options"],selectedOptions:[1,"selectedOptions"]},outputs:{readonly:"readonlyChange",disabled:"disabledChange",isOpen:"isOpenChange",isLoading:"isLoadingChange",options:"optionsChange",selectedOptions:"selectedOptionsChange",cleared:"cleared",onAddNewFreeTextOption:"onAddNewFreeTextOption"},ngContentSelectors:Xo,decls:33,vars:25,consts:[["formFieldWrapper",""],["optionsWrap",""],[3,"isOpenChange","closed","isOpen","disableOpenByClick","options"],["trigger","",3,"click"],["ngProjectAs","input",5,["input"],1,"input"],[1,"selected-value"],["suffix",""],["suffix","",1,"primary"],["id","optionsWrapId","role","listbox",1,"ship-options"],["title",""],[1,"option",3,"id","selected","focused"],[1,"small",3,"class"],[1,"small",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["suffix","",3,"click"],[1,"option",3,"click","id"],[3,"class","active"]],template:function(l,u){if(l&1){let h=ue();G(Qo),mt(0)(1)(2)(3)(4)(5)(6),E(7,"sh-popover",2,0),Bt("isOpenChange",function(A){return H(h),Ht(u.isOpen,A)||(u.isOpen=A),B(A)}),$("closed",function(){return H(h),B(u.close())}),E(9,"sh-form-field",3),$("click",function(){return H(h),B(u.open())}),S(10,0,["ngProjectAs","label",5,["label"]]),S(11,1,["ngProjectAs","[prefix]",5,["","prefix",""]]),S(12,2,["ngProjectAs","[boxPrefix]",5,["","boxPrefix",""]]),E(13,"div",4)(14,"div",5),R(15,Zo,1,1)(16,ds,2,0)(17,fs,2,1),S(18,3),S(19,4),T()(),R(20,gs,2,0,"sh-icon",6)(21,ms,1,0,"sh-spinner",7)(22,vs,2,0,"sh-icon",6)(23,_s,2,0,"sh-icon",6)(24,Cs,2,0,"sh-icon",6)(25,ys,2,0,"sh-icon",6)(26,Ds,2,0,"sh-icon",6),T(),E(27,"div",8,1),R(29,Ts,3,3),R(30,As,2,1,"p",9),Pt(31,Rs,4,8,"li",10,Rt),T()()}if(l&2){fe(u.placeholderTemplate());let h=u.optionTemplate();b(),fe(u.freeTextOptionTemplate());let C=u.selectedOptionTemplate(),A=u.inlineTemplate();b();let Y=fe(u.selectedOptions()),K=u.inputState();b(),fe(C||h||A),b(),fe(h||A),b();let j=fe(!u.asText()&&u.selectMultiple());b();let J=fe(u.isOpen()&&u.hasSearch()&&(j||u.inputValue().length>-1));b(),Lt("isOpen",u.isOpen),pe("disableOpenByClick",!0)("options",Ut(24,Ko)),b(2),q("stretch",u.stretch())("small",u.small())("readonly",u.readonly()||u.disabled()),b(4),q("show-search-text",J),b(),q("is-selected",K==="selected"),b(),P(u.asFreeText()&&u.inputValue().length>0&&!u.isOpen()?15:Y.length>0?16:J?-1:17),b(5),P(K==="closed"?20:K==="loading"?21:K==="open-searching"?22:K==="searching"?23:K==="selected"&&u._isClearable()?24:K==="selected"&&!u._isClearable()?25:26),b(9),P(u.asFreeText()?29:-1),b(),P(u.optionTitle()&&u.filteredOptions().length>0?30:-1),b(),jt(u.filteredOptions())}},dependencies:[Ai,hn,pi,qe,ir,lr,nr,rr],encapsulation:2,changeDetection:0});let i=v;return i})();function cr(i){let e=N(Z),t=N(je),n=V(!1),o=typeof MutationObserver<"u"&&new MutationObserver(s=>{s.forEach(c=>{c.type==="attributes"&&c.attributeName==="class"&&n.set(e.nativeElement.classList.contains(i))})});return Di(e.nativeElement,()=>{o&&o.observe(e.nativeElement,{attributes:!0}),n.set(e.nativeElement.classList.contains(i))}),t.onDestroy(()=>{o&&o.disconnect()}),n}var pa=(()=>{var e,t,n,o,s,ct;let g=class g{constructor(){M(this,s);M(this,e);M(this,t);M(this,n);M(this,o);x(this,e,N(Qe)),x(this,t,N(Z)),this.openWidth=280,this.openWidthTreshold=this.openWidth*.5,this.disableDrag=O(!1),this.isOpen=ne(!1),this.isOverlay=cr("overlay"),x(this,n,p(this,t).nativeElement.parentElement),x(this,o,p(this,n).getBoundingClientRect&&p(this,n).getBoundingClientRect()),this.dragImageElement=ve.required("dragImageElement"),this.dragIsEnding=V(!1),this.dragIsOnScreen=V(!0),this.isDragging=V(!1),this.dragPositionX=V(0),this.dragActualPositionX=k(()=>{let r=this.dragPositionX(),d=280,m=100,_=.008,v=d/2,y=v-m/2,a=v+m/2;if(r>a){let l=r-a,h=(d-a)*(1-Math.exp(-_*l));return a+h}else if(r<y){let l=y-r,h=y*(1-Math.exp(-_*l));return y-h}return r}),this.draggingStyle=k(()=>!this.isOverlay()||this.disableDrag()?null:this.isDragging()?`translateX(${this.dragActualPositionX()}px)`:this.isOpen()?`translateX(${this.openWidth}px)`:"translateX(0px)"),this.draggingEffect=ee(()=>{this.disableDrag()||(this.isDragging()?p(this,e).body.classList.add("dragging"):p(this,e).body.classList.remove("dragging"))})}drop(r){r.stopPropagation(),w(this,s,ct).call(this,r.clientX-p(this,o).left)}dragEnd(r){r.clientX-p(this,o).left<0&&w(this,s,ct).call(this,0),r.clientX-p(this,o).left>this.openWidthTreshold&&w(this,s,ct).call(this,this.openWidthTreshold)}dragEnter(){this.dragIsOnScreen.set(!0)}dragLeave(){this.dragIsOnScreen.set(!1)}dragStart(r){r.stopPropagation(),x(this,o,p(this,n).getBoundingClientRect()),this.isDragging.set(!0)}drag(r){r.stopPropagation(),this.isDragging()&&(r.clientX!==0||r.clientY!==0)&&this.dragPositionX.set(r.clientX-p(this,o).left)}touchStart(r){r.stopPropagation(),this.isDragging.set(!0),x(this,o,p(this,n).getBoundingClientRect()),this.dragPositionX.set(0)}touchMove(r){r.stopPropagation(),this.isDragging()&&this.dragPositionX.set(r.touches[0].clientX-p(this,o).left)}touchEnd(r){r.stopPropagation(),w(this,s,ct).call(this,r.changedTouches[0].clientX-p(this,o).left)}touchCancel(r){r.stopPropagation(),this.isDragging.set(!1)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,ct=function(r){this.isDragging.set(!1),r>=this.openWidthTreshold?this.isOpen.set(!0):this.isOpen.set(!1)},g.\u0275fac=function(d){return new(d||g)},g.\u0275cmp=L({type:g,selectors:[["sh-sidenav"]],viewQuery:function(d,m){d&1&&ge(m.dragImageElement,Ps,5),d&2&&De()},hostVars:6,hostBindings:function(d,m){d&2&&q("open",m.isOpen())("closed",!m.isOpen())("is-dragging",m.isDragging())},inputs:{disableDrag:[1,"disableDrag"],isOpen:[1,"isOpen"]},outputs:{isOpen:"isOpenChange"},ngContentSelectors:Ls,decls:10,vars:5,consts:[["dragImageElement",""],[1,"drag-image"],[1,"dropping-surface"],[1,"sidenav"],[1,"main-wrap"],["draggable","true",1,"dragable"],[1,"closed-topbar"],[1,"dropping-surface",3,"drop","dragenter","dragleave"],["draggable","true",1,"dragable",3,"dragstart","dragend","drag","touchstart","touchmove","touchend","touchcancel"]],template:function(d,m){d&1&&(G(js),R(0,Hs,2,0,"div",1),R(1,Bs,1,0,"div",2),U(2,"div",3),S(3),W(),U(4,"div",4),R(5,Us,1,0,"div",5),U(6,"div",6),S(7,1),W(),U(8,"main"),S(9,2),W()()),d&2&&(P(m.isOverlay()&&!m.disableDrag()?0:-1),b(),P(m.isOverlay()&&m.isDragging()?1:-1),b(3),he("transform",!m.disableDrag()&&m.draggingStyle()),b(),P(m.isOverlay()&&!m.disableDrag()?5:-1))},encapsulation:2,changeDetection:0});let i=g;return i})();var fa=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-stepper"]],ngContentSelectors:le,decls:1,vars:0,template:function(o,s){o&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=e;return i})();var ga=(()=>{var e;let t=class t{constructor(){M(this,e);x(this,e,N(dr)),this.shSort=O(),this.sortAsc=k(()=>{let o=p(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===s}),this.sortDesc=k(()=>{let o=p(this,e).sortByColumn(),s=this.shSort();return!o||!s?!1:o===`-${s}`})}toggleSort(){let o=this.shSort();o&&p(this,e).toggleSort(o)}};e=new WeakMap,t.\u0275fac=function(s){return new(s||t)},t.\u0275dir=z({type:t,selectors:[["","shSort",""]],hostAttrs:[1,"sortable"],hostVars:4,hostBindings:function(s,c){s&1&&$("mousedown",function(){return c.toggleSort()}),s&2&&q("sort-asc",c.sortAsc())("sort-desc",c.sortDesc())},inputs:{shSort:[1,"shSort"]}});let i=t;return i})();var Ge=1.5,dr=(()=>{var e,t,n,o,s,At;let g=class g{constructor(){M(this,s);M(this,e);M(this,t);M(this,n);M(this,o);x(this,e,N(Z)),x(this,t,N(It,{optional:!0})),this.loading=O(!1),this.data=O([]),this.dataChange=xe(),this.sortByColumn=ne(null),this.tbody=ve("tbody"),this.columns=gn(this.tbody,["tr:first-child th"]),this.class=V(p(this,t)?.tableType??"default"),this.resizing=V(!1),this.sizeTrigger=V(!0),x(this,n,null),x(this,o,V(!1)),this.scrollXState=V(-1),this.scrollYState=V(-1),this.canScrollX=V(!1),this.canScrollY=V(!1),this.columnSizes=k(()=>{this.sizeTrigger();let r=this.columns.signal();return r.reduce((d,m,_)=>{let v=m,y=v.getAttribute("size"),a=_===r.length-1;return y?`${d} ${y}`:v.classList.contains("sticky")||v.classList.contains("sticky-end")?`${d} min-content`:a?`${d} 1fr`:`${d} 1fr`},"")}),this.e=ee(()=>{let r=this.sortByColumn();if(r===null)return p(this,o).call(this)||(x(this,n,this.data()),p(this,o).set(!0)),this.dataChange.emit(structuredClone(p(this,n)));let d=r.startsWith("-")?r.slice(1):r,m=r.startsWith("-"),_=this.data().sort((v,y)=>{let a=v[d],l=y[d],u=0;return typeof a=="number"&&typeof l=="number"&&(u=a-l),a instanceof Date&&l instanceof Date&&(u=a.getTime()-l.getTime()),typeof a=="string"&&typeof l=="string"&&(u=a.localeCompare(l,void 0,{sensitivity:"base"})),m?-u:u});this.dataChange.emit(_)})}updateColumnSizes(){this.sizeTrigger.set(!this.sizeTrigger())}onScroll(){w(this,s,At).call(this)}onResize(r){w(this,s,At).call(this)}ngAfterViewInit(){queueMicrotask(()=>w(this,s,At).call(this))}toggleSort(r){let d=this.sortByColumn(),m=d===r?`-${r}`:d===`-${r}`?null:r;this.sortByColumn.set(m)}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakSet,At=function(){let r=p(this,e).nativeElement,d=-1,m=-1,_=r.scrollWidth>r.clientWidth+Ge;if(_){let y=r.scrollLeft<=Ge;r.scrollWidth-(r.scrollLeft+r.clientWidth)<Ge?d=1:y||(d=0)}this.scrollXState.set(d),this.canScrollX.set(_);let v=r.scrollHeight>r.clientHeight+Ge;if(v){let y=r.scrollTop<=Ge;r.scrollHeight-(r.scrollTop+r.clientHeight)<Ge?m=1:y||(m=0)}this.scrollYState.set(m),this.canScrollY.set(v)},g.\u0275fac=function(d){return new(d||g)},g.\u0275cmp=L({type:g,selectors:[["sh-table"]],viewQuery:function(d,m){d&1&&ge(m.tbody,Ws,5),d&2&&De()},hostVars:18,hostBindings:function(d,m){d&1&&$("scroll",function(){return m.onScroll()})("resize",function(v){return m.onResize(v)},Si),d&2&&(me(m.class()),he("grid-template-columns",m.columnSizes()),q("resizing",m.resizing())("can-scroll-x",m.canScrollX())("can-scroll-y",m.canScrollY())("scrolled-x",m.scrollXState()>=0)("scrolled-x-end",m.scrollXState()===1)("scrolled-y",m.scrollYState()>=0)("scrolled-y-end",m.scrollYState()===1))},inputs:{loading:[1,"loading"],data:[1,"data"],sortByColumn:[1,"sortByColumn"]},outputs:{dataChange:"dataChange",sortByColumn:"sortByColumnChange"},ngContentSelectors:Gs,decls:5,vars:2,consts:[["tbody",""],[1,"indeterminate","primary"],[1,"no-rows"]],template:function(d,m){d&1&&(G($s),R(0,qs,1,0,"sh-progress-bar",1),E(1,"tbody",null,0),S(3),T(),R(4,zs,2,0,"div",2)),d&2&&(P(m.loading()?0:-1),b(4),P(m.loading()?-1:4))},dependencies:[ar],encapsulation:2,changeDetection:0});let i=g;return i})(),ma=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-tabs"]],ngContentSelectors:le,decls:1,vars:0,template:function(o,s){o&1&&(G(),S(0))},encapsulation:2,changeDetection:0});let i=e;return i})(),va=(()=>{let e=class e{constructor(){this.isActive=ne(!1),this.disallowToggle=O(!1)}ngOnInit(){this.disallowToggle()&&this.isActive.set(!0)}toggle(){this.isActive.set(!this.isActive())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-toggle-card"]],hostVars:2,hostBindings:function(o,s){o&2&&q("active",s.isActive())},inputs:{isActive:[1,"isActive"],disallowToggle:[1,"disallowToggle"]},outputs:{isActive:"isActiveChange"},ngContentSelectors:Qs,decls:7,vars:1,consts:[[3,"click"],[1,"toggle-icon"],[1,"collapsable"],[1,"content"]],template:function(o,s){o&1&&(G(Ys),E(0,"h3",0),$("click",function(){return s.disallowToggle()||s.toggle()}),S(1,0,null,Xs,1,0),R(3,Ks,2,0,"sh-icon",1),T(),E(4,"div",2)(5,"div",3),S(6,1),T()()),o&2&&(b(3),P(s.disallowToggle()?-1:3))},dependencies:[qe],encapsulation:2,changeDetection:0});let i=e;return i})(),_a=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=L({type:e,selectors:[["sh-toggle"]],ngContentSelectors:le,decls:3,vars:0,consts:[[1,"box"],[1,"knob"]],template:function(o,s){o&1&&(G(),U(0,"div",0),Ae(1,"div",1),W(),S(2))},encapsulation:2,changeDetection:0});let i=e;return i})();var Ca=(()=>{let e=class e{constructor(){this.filesOver=V(!1),this.filesDropped=xe()}onDragOver(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!0)}onDragLeave(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1)}ondrop(n){n.preventDefault(),n.stopPropagation(),this.filesOver.set(!1);let o=n.dataTransfer?.files;o&&o.length>0&&this.filesDropped.emit(o)}};e.\u0275fac=function(o){return new(o||e)},e.\u0275dir=z({type:e,selectors:[["","shDragDrop",""]],hostVars:2,hostBindings:function(o,s){o&1&&$("dragover",function(g){return s.onDragOver(g)})("dragleave",function(g){return s.onDragLeave(g)})("drop",function(g){return s.ondrop(g)}),o&2&&q("filesover",s.filesOver())},outputs:{filesDropped:"filesDropped"}});let i=e;return i})();var ur=(()=>{var e,t,n;let o=class o{constructor(){M(this,e);M(this,t);M(this,n);this.positionAnchorName=O.required(),this.anchorEl=O.required(),this.isOpen=O(!1),x(this,e,N(Z)),x(this,t,N(ye)),x(this,n,null),this.SUPPORTS_ANCHOR=typeof CSS<"u"&&CSS.supports("position-anchor","--abc"),this.isBelow=V(!1),this.openEffect=ee(()=>{this.isOpen()?setTimeout(()=>{p(this,e).nativeElement.showPopover(),this.calculateTooltipPosition()}):p(this,e).nativeElement.hidePopover()}),this.calculateTooltipPosition=()=>{if(!this.anchorEl())return;let c=this.anchorEl().nativeElement.getBoundingClientRect(),g=p(this,e).nativeElement,f=g.getBoundingClientRect();if(f.width===0&&f.height===0)return;let r=c.top-f.height<0;if(this.isBelow.set(r),!this.SUPPORTS_ANCHOR){let d=c.top-f.height,m=c.left+c.width/2-f.width/2;r&&(d=c.top+c.height),m+f.width>window?.innerWidth&&(m=c.right-f.width/2),m<0&&(m=-(f.width/2)),p(this,t).setStyle(g,"left",`${m}px`),p(this,t).setStyle(g,"top",`${d}px`),p(this,t).setStyle(g,"position","fixed")}},ft(()=>{x(this,n,new AbortController);let c={signal:p(this,n).signal,capture:!0};window?.addEventListener("scroll",this.calculateTooltipPosition,c),window?.addEventListener("resize",this.calculateTooltipPosition,{signal:p(this,n).signal}),setTimeout(()=>this.calculateTooltipPosition())})}ngOnDestroy(){p(this,n)?.abort()}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o.\u0275fac=function(g){return new(g||o)},o.\u0275cmp=L({type:o,selectors:[["ship-tooltip-wrapper"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(g,f){g&2&&(He("popover","manual"),he("position-anchor",f.positionAnchorName()),q("below",f.isBelow()))},inputs:{positionAnchorName:[1,"positionAnchorName"],anchorEl:[1,"anchorEl"],isOpen:[1,"isOpen"]},ngContentSelectors:le,decls:2,vars:0,consts:[[1,"tooltip-content"]],template:function(g,f){g&1&&(G(),U(0,"div",0),S(1),W())},encapsulation:2});let i=o;return i})(),re=null,ya=(()=>{var e,t,n,o,s;let c=class c{constructor(){M(this,e);M(this,t);M(this,n);M(this,o);M(this,s);this.shTooltip=O.required(),x(this,e,N(Z)),x(this,t,N(Mi)),x(this,n,N(yi)),x(this,o,N(ye)),x(this,s,null),this.DEBOUNCE_DELAY=500,this.anchorName=`--${Nt()}`,this.isOpen=V(!1)}onMouseEnter(){re?.component.anchorName!==this.anchorName&&this.cleanupTooltip(),this.cancelCleanupTimer(),queueMicrotask(()=>this.showTooltip())}onMouseLeave(){this.startCleanupTimer()}ngOnDestroy(){this.cancelCleanupTimer(),this.cleanupTooltip()}startCleanupTimer(){this.cancelCleanupTimer(),this.debounceTimer=setTimeout(()=>{this.cleanupTooltip()},this.DEBOUNCE_DELAY)}cancelCleanupTimer(){this.debounceTimer&&(clearTimeout(this.debounceTimer),this.debounceTimer=null)}showTooltip(){if(re?.wrapperComponentRef||!this.shTooltip())return;let f,r=this.shTooltip();if(typeof r=="string")f=[[p(this,o).createText(r)]];else if(r instanceof pt)x(this,s,r.createEmbeddedView({})),p(this,s).detectChanges(),f=[p(this,s).rootNodes];else return;re={wrapperComponentRef:p(this,t).createComponent(ur,{environmentInjector:p(this,n),projectableNodes:f}),component:this},re.wrapperComponentRef.setInput("positionAnchorName",this.anchorName),re.wrapperComponentRef.setInput("anchorEl",p(this,e)),re.wrapperComponentRef?.setInput("isOpen",this.isOpen),re.wrapperComponentRef.changeDetectorRef.detectChanges(),re.wrapperComponentRef.location.nativeElement.addEventListener("mouseenter",()=>{this.cancelCleanupTimer()}),re.wrapperComponentRef.location.nativeElement.addEventListener("mouseleave",()=>{this.startCleanupTimer()}),setTimeout(()=>{this.isOpen.set(!0)})}cleanupTooltip(){re?.wrapperComponentRef&&(re.component.cancelCleanupTimer(),re.wrapperComponentRef.destroy(),re.component.isOpen.set(!1),re=null),p(this,s)&&(p(this,s).destroy(),x(this,s,null))}};e=new WeakMap,t=new WeakMap,n=new WeakMap,o=new WeakMap,s=new WeakMap,c.\u0275fac=function(r){return new(r||c)},c.\u0275dir=z({type:c,selectors:[["","shTooltip",""]],hostAttrs:[1,"tooltip"],hostVars:4,hostBindings:function(r,d){r&1&&$("mouseenter",function(){return d.onMouseEnter()})("mouseleave",function(){return d.onMouseLeave()}),r&2&&(he("anchor-name",d.anchorName),q("active",d.isOpen()))},inputs:{shTooltip:[1,"shTooltip"]}});let i=c;return i})();export{Oe as a,xn as b,Bi as c,Ii as d,Tr as e,Ar as f,Kn as g,ot as h,to as i,Nr as j,no as k,ro as l,lo as m,uo as n,on as o,sn as p,mo as q,Fr as r,kr as s,Rr as t,qe as u,It as v,ta as w,ia as x,tr as y,na as z,oa as A,sa as B,ra as C,ir as D,nr as E,rr as F,pi as G,aa as H,la as I,ca as J,ar as K,da as L,ua as M,lr as N,ha as O,pa as P,fa as Q,ga as R,dr as S,ma as T,va as U,_a as V,Ca as W,ya as X};
package/chunk-RUXUFB7C.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-EUDKD2JW.js";var o=[{path:"",redirectTo:"select-files",pathMatch:"full"},{path:"destination",loadComponent:()=>import("./chunk-2WGW24ZH.js")},{path:"encryption",loadComponent:()=>import("./chunk-PQSZLHZR.js")},{path:"select-files",loadComponent:()=>import("./chunk-OKDVOGSM.js")},{path:"options",loadComponent:()=>import("./chunk-A2LUC3NC.js")},{path:":taskid/progress",loadComponent:()=>import("./chunk-EBANXXYI.js")}],t=o;export{t as default};
package/chunk-RWPF5SQT.js DELETED
@@ -1 +0,0 @@
1
- import"./chunk-EUDKD2JW.js";var o=[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-GDQZEB3A.js")},{path:"destination",loadComponent:()=>import("./chunk-U2Y2D6MA.js")},{path:"source-data",loadComponent:()=>import("./chunk-DTOILX4E.js")},{path:"schedule",loadComponent:()=>import("./chunk-W2CMPDWL.js")},{path:"options",loadComponent:()=>import("./chunk-CHYEYO6L.js")}];export{o as default};
package/chunk-W2CMPDWL.js DELETED
@@ -1 +0,0 @@
1
- import{d as a,e as b}from"./chunk-BQJICFF5.js";import"./chunk-A5LNLNWR.js";import"./chunk-3NFAL4U4.js";import"./chunk-4VY6SMSL.js";import"./chunk-Z27IQRKV.js";import"./chunk-72HORZFV.js";import"./chunk-6Q6SSTBK.js";import"./chunk-XLDVUBTQ.js";import"./chunk-ABYM5HWA.js";import"./chunk-Z35OG2DV.js";import"./chunk-QF4DQYEP.js";import"./chunk-2QJVTZ56.js";import"./chunk-5ZSBXGHQ.js";import"./chunk-FPPZ4BUR.js";import"./chunk-QONLYWYC.js";import"./chunk-EUDKD2JW.js";export{a as SCHEDULE_FIELD_DEFAULTS,b as default};
package/main-AK26L46R.js DELETED
@@ -1 +0,0 @@
1
- import{b as ve,c as Ce}from"./chunk-YJPY33RI.js";import{a as fe}from"./chunk-KT7U3QIP.js";import{a as k}from"./chunk-GYDI67IZ.js";import"./chunk-4NBLWONL.js";import"./chunk-CCKT2GLS.js";import"./chunk-72HORZFV.js";import{a as P}from"./chunk-6Q6SSTBK.js";import{a as L}from"./chunk-XLDVUBTQ.js";import{a as ue}from"./chunk-LN26XMBJ.js";import"./chunk-7LYN2XHO.js";import{a as b,b as v,c as he,d as I}from"./chunk-GCCJSS4C.js";import{c as ie,d as ae,g as pe,h as ce}from"./chunk-ABYM5HWA.js";import{a as ee}from"./chunk-Z35OG2DV.js";import{v as le,x as me}from"./chunk-QF4DQYEP.js";import{a as te,b as oe,d as ne,e as re,f as se,i as de}from"./chunk-2QJVTZ56.js";import{a as ye}from"./chunk-I2LW33GO.js";import{la as Y,qa as Z}from"./chunk-5ZSBXGHQ.js";import"./chunk-FPPZ4BUR.js";import{a as be}from"./chunk-UCS5RU7N.js";import{b as ge}from"./chunk-JYWOYPSQ.js";import{A as x,B,Fb as z,H as w,Lc as q,Mc as X,N as G,P as R,R as J,Rc as Q,V as M,Y as _,_ as s,cb as K,f as j,i as W,ja as $,n as F,o as U,pa as d,r as S}from"./chunk-QONLYWYC.js";import"./chunk-EUDKD2JW.js";var E=class e{#o=s(b);#s=s(v);ngOnInit(){this.#s.fetchConfig(),this.#o.clearAllNotCurrentVersion()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=K({type:e,selectors:[["app-root"]],decls:1,vars:0,template:function(o,n){o&1&&z(0,"router-outlet")},dependencies:[ie],encapsulation:2})};var Re={production:!0,baseUrl:"/api",machineServerUrl:"${WS_URL}",defaultTimeout:3e4};var h=new _("ENVIRONMENT");var A=class e{#o=s(de);isLoaded=d(!1);webmodules=d(null);preload(t=!1){let o=this.#o.getApiV1Webmodules().pipe(J(n=>this.webmodules.set(n)),w(()=>this.isLoaded.set(!0)));if(t)return o;o.subscribe()}static \u0275fac=function(o){return new(o||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};var Ae=()=>{let e=s(I);return e.token()?!0:e.checkProxyAuthed().pipe(R(t=>t?F(!0):e.refreshToken().pipe(S(()=>!0))))},Ne=()=>{let e=s(v),t=s(k),o=s($),n=e.relayIsEnabled()?"longpoll":"websocket",i=[o.get(L).preload(!0),o.get(L).preloadFilterGroups(!0),o.get(A).preload(!0)];return e.configLoaded===null?x(i).pipe(S(()=>n)):e.configLoaded?.pipe(R(()=>x(i)))},Te=[{path:"",children:[{path:"login",canActivate:[],loadComponent:()=>import("./chunk-4IXUXIXV.js")},{path:"logout",loadComponent:()=>import("./chunk-F6ME3VE6.js")},{path:"",canActivate:[Ae],children:[{path:"",canActivate:[Ne],loadComponent:()=>import("./chunk-RZKDEJUP.js"),children:[{path:"",loadComponent:()=>import("./chunk-4IIDZXFC.js")},{path:"add-backup",loadComponent:()=>import("./chunk-ZDME3W57.js")},{path:"backup/:id/export",loadComponent:()=>import("./chunk-UST7PIBI.js")},{path:"backup/import",loadComponent:()=>import("./chunk-2S6ABLBU.js")},{path:"backup-draft/:id",loadComponent:()=>import("./chunk-PUNIQ3JW.js"),loadChildren:()=>import("./chunk-RWPF5SQT.js")},{path:"backup/:id",loadComponent:()=>import("./chunk-PUNIQ3JW.js"),loadChildren:()=>import("./chunk-RWPF5SQT.js")},{path:"backup/:id/log",loadComponent:()=>import("./chunk-7JHF4R5J.js")},{path:"backup/:id/database",loadComponent:()=>import("./chunk-DW7A6PHZ.js")},{path:"backup/:id/commandline",loadComponent:()=>import("./chunk-3OCWLJKG.js")},{path:"backup/:id/commandline/:runId",loadComponent:()=>import("./chunk-QNM5CG4Z.js")},{path:"backup/:id/delete",loadComponent:()=>import("./chunk-XX3WLO55.js")},{path:"restore",children:[{path:"",loadComponent:()=>import("./chunk-FNJU5CD3.js")},{path:"from-config",loadComponent:()=>import("./chunk-PHQBBCUL.js")}]},{path:"restore-from-files",loadComponent:()=>import("./chunk-XUIDYG2O.js"),loadChildren:()=>import("./chunk-RUXUFB7C.js")},{path:"restore-draft/:id",loadComponent:()=>import("./chunk-XUIDYG2O.js"),loadChildren:()=>import("./chunk-RUXUFB7C.js")},{path:"restore/:id",loadComponent:()=>import("./chunk-XUIDYG2O.js"),loadChildren:()=>import("./chunk-RUXUFB7C.js")},{path:"settings",loadComponent:()=>import("./chunk-K3ILN56U.js")},{path:"about",loadComponent:()=>import("./chunk-MGTRQOF6.js"),children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",loadComponent:()=>import("./chunk-PULERFBI.js")},{path:"changelog",loadComponent:()=>import("./chunk-KXM6LF3X.js")},{path:"libraries",loadComponent:()=>import("./chunk-GOVVHVP2.js")},{path:"system-info",loadComponent:()=>import("./chunk-NM7WJRU7.js")},{path:"server-settings",loadComponent:()=>import("./chunk-SWD3HS57.js")},{path:"logs",loadChildren:()=>import("./chunk-Q65KFDJ5.js")},{path:"crashlogs",loadComponent:()=>import("./chunk-72QJ345F.js")}]}]}]}]}];var V=null,we=(e,t)=>{let o=s(I),n=s(ae),i=s(b),l=s(h),r=i.getItem("locale"),u=s(me),a=ve(r),p=e.url==="/api/v1/auth/login",m=e.url==="/api/v1/auth/refresh",C=e.url==="/api/v1/progressstate",g=e.url==="/api/v1/remoteoperation/test",y=e.url==="/api/v1/filesystem/validate",T=e.url.startsWith("/api/v2/"),O=o.token(),D=e,H=e.headers.has("custom-proxy-check")||O===he;if(O&&e.url.startsWith(l.baseUrl)&&!H){let c=e.headers.set("Authorization",`Bearer ${O}`);r&&r!=="en-US"&&(c=c.set("X-Ui-Language",a)),D=e.clone({headers:c})}return t(D).pipe(S(c=>{if(c.type===4&&c.status===200&&T){let f=c.body;if(f?.Success===!1)throw{status:200,message:f?.Error??"Unknown error",error:{Error:f?.Error??"Unknown error"},requestBody:f}}return c}),B(c=>{let f=c.error?.Error||`Error Code: ${c.status}, Message: ${c.message}`;return!H&&(C&&c.status===404||g||y||u.error(f),m&&c.status===401&&(o.logout(),n.navigate(["/logout"])),!p&&!m&&c.status===401)?(V??=o.refreshToken().pipe(G()),V.pipe(R(()=>t(e.clone({headers:e.headers.set("Authorization",`Bearer ${o.token()}`)}))),w(()=>V=null))):U(()=>({error:c,message:f}))}))};var Oe="1.0.0",Me=`portal-proxy-client-${P()}`,xe=1,N=class e{#o=1e3;#s=s(h);#t=d("disconnected");#l=d(this.#o);#i=d(!1);#n=d(!1);#a=d(null);isConnectedToMachineServer=this.#n.asReadonly();wsState=this.#t.asReadonly();#p=[];#r={};#e=null;#m=new TextDecoder("utf-8");#c=null;#d=Q(()=>{let t=this.#i(),o=this.#l(),n=this.#a();if(!n||!t||!o||o<this.#o){this.#c&&window.clearInterval(this.#c);return}this.#c=window.setInterval(()=>{this.connectToMachineServer(n)},o)});utf8Atob(t){let o=Uint8Array.from(atob(t),i=>i.charCodeAt(0)),n=this.#m.decode(o);return n?JSON.parse(n):null}connectToMachineServer(t,o){let n=o?.reconnect??!1,i=this.wsState();(i==="disconnected"||i==="error"||n)&&(this.#e?.close(),this.#e=null),!this.#e&&(this.#e=new WebSocket(this.#s.machineServerUrl),this.#t.set("connecting"),this.#e.onopen=()=>{this.#t.set("connect"),this.#n.set(!0),this.#i.set(!1),this.#a.set(null)},this.#e.onclose=()=>{this.#t.set("disconnected"),this.#n.set(!1),this.#a.set(t),this.#i.set(!0)},this.#e.onerror=()=>{this.#t.set("error")},this.#e.onmessage=l=>{let r=JSON.parse(l.data);if(this.wsState()==="connect"){if(r.type!=="welcome"){this.disconnectFromMachineServer(`Unexpected message type, expected 'welcome' but got '${r.type}'`);return}let a={token:t,publicKey:"",clientVersion:Oe,protocolVersion:xe},p=this.createResponse(r,"authportal",a);this.#t.set("welcome"),this.#e?.send(p)}else if(this.wsState()==="welcome"){if(r.type!=="authportal"){this.disconnectFromMachineServer(`Unexpected message type, expected 'authportal' but got '${r.type}'`);return}var u=JSON.parse(r.payload??"");if(u.accepted===!1){this.disconnectFromMachineServer("Authentication failed");return}for(this.#t.set("authenticated"),this.#n.set(!0);this.#p.length>0;){let a=this.#p.pop();a&&this.#r[a.messageId]&&this.activateCommand(a)}}else if(this.wsState()==="authenticated"){if(r.type!=="command"){console.warn(`Unexpected message type, expected 'command' but got '${r.type}'`);return}let a=this.#r[r.messageId];if(a){if(r.errorMessage){a.reject(r.errorMessage);return}else{let p=JSON.parse(r.payload??"");p.body=p?.body==null?null:this.utf8Atob(p.body),a.resolve(p)}delete this.#r[r.messageId],window.clearTimeout(a.timer)}}})}disconnectFromMachineServer(t=null){t&&console.error(t),this.#e?.close(),this.#e=null,this.#t.set("disconnected"),this.#n.set(!1)}createResponse(t,o,n){let i={from:Me,to:t.from,type:o,messageId:t.messageId,payload:JSON.stringify(n)};return JSON.stringify(i)}sendCommand(t,o,n,i,l,r,u=5e3){return(this.wsState()==="disconnected"||this.wsState()==="error")&&this.connectToMachineServer(t),new Promise((a,p)=>{let m=P(),g={from:Me,to:o,type:"command",messageId:m,payload:JSON.stringify({method:n,path:i,requestBody:l,headers:r})},y={resolve:a,reject:p,timer:window.setTimeout(()=>{let T=this.#r[m];T&&(delete this.#r[m],T.reject("Timeout"))},u)};this.#r[m]=y,this.#n()?this.activateCommand(g):this.#p.push(g)})}activateCommand(t){this.#e?.send(JSON.stringify(t))}static \u0275fac=function(o){return new(o||e)};static \u0275prov=M({token:e,factory:e.\u0275fac,providedIn:"root"})};function Le(e){if(typeof e!="string")return null;let o=new TextEncoder().encode(e);return window.btoa(String.fromCharCode(...o))}function Ie(e,t,o){let n=e.relayconfigState.config();if(n===null)return o(t);let i=Le(t.body),l={};t.headers.keys().forEach(p=>{l[p]=t.headers.get(p)??""});let r=t.headers.get("timeout"),u=r!==null?parseInt(r):e.defaultTimeout;t.url.startsWith("/api/v1/serverstate")&&t.url.includes("longpoll=true")&&(u=1e3*99);let a=e.relayWebsocket.sendCommand(n.accessToken,n.clientId,t.method,t.url,i,l,u);return new j(p=>{a.then(m=>{let C=new te;l!=null&&Object.keys(l).forEach(y=>{C.set(y,l[y])});let g=new oe({body:m.body,status:m.code,statusText:"OK",headers:C});p.next(g),p.complete()})})}var ke=(e,t)=>{let o={relayconfigState:s(v),defaultTimeout:s(h).defaultTimeout,relayWebsocket:s(N)},n=o.relayconfigState.config();if(o.relayconfigState.configLoaded!==null&&n===null){let i=new W;return o.relayconfigState.configLoaded.subscribe(l=>{l&&Ie(o,e,t).subscribe(i)}),i}return Ie(o,e,t)};var Ee={providers:[q(),pe(Te,ce()),ne(se(),re([ke,we])),b,{provide:h,useValue:Re},{provide:X,useValue:Ce()},{provide:le,useValue:{alertVariant:"simple"}},fe,k,ge,Z,ue,Y,ye,be]};ee(E,Ee);