@ichgamer999/wmctest 1.0.0

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 (47) hide show
  1. package/.final-checklist.txt +33 -0
  2. package/LICENSE +21 -0
  3. package/README.md +205 -0
  4. package/dist/app/auth/auth.interceptor.d.ts +3 -0
  5. package/dist/app/auth/auth.interceptor.d.ts.map +1 -0
  6. package/dist/app/auth/auth.interceptor.js +11 -0
  7. package/dist/app/auth/auth.service.d.ts +17 -0
  8. package/dist/app/auth/auth.service.d.ts.map +1 -0
  9. package/dist/app/auth/auth.service.js +56 -0
  10. package/dist/app/guards/auth.guard.d.ts +3 -0
  11. package/dist/app/guards/auth.guard.d.ts.map +1 -0
  12. package/dist/app/guards/auth.guard.js +11 -0
  13. package/dist/app/home/home.component.d.ts +6 -0
  14. package/dist/app/home/home.component.d.ts.map +1 -0
  15. package/dist/app/home/home.component.js +71 -0
  16. package/dist/app/login/login.component.d.ts +10 -0
  17. package/dist/app/login/login.component.d.ts.map +1 -0
  18. package/dist/app/login/login.component.js +152 -0
  19. package/dist/public-api.d.ts +6 -0
  20. package/dist/public-api.d.ts.map +1 -0
  21. package/dist/public-api.js +5 -0
  22. package/dist/wmctest/3rdpartylicenses.txt +355 -0
  23. package/dist/wmctest/browser/chunk-7JWVLKWP.js +1 -0
  24. package/dist/wmctest/browser/chunk-DMFXUAXO.js +5 -0
  25. package/dist/wmctest/browser/chunk-LJ47X2MA.js +1 -0
  26. package/dist/wmctest/browser/favicon.ico +0 -0
  27. package/dist/wmctest/browser/index.html +13 -0
  28. package/dist/wmctest/browser/main-MA2WJZFH.js +1 -0
  29. package/dist/wmctest/browser/styles-5INURTSO.css +0 -0
  30. package/dist/wmctest/prerendered-routes.json +3 -0
  31. package/package.json +50 -0
  32. package/src/app/app.config.ts +14 -0
  33. package/src/app/app.css +0 -0
  34. package/src/app/app.html +1 -0
  35. package/src/app/app.routes.ts +18 -0
  36. package/src/app/app.ts +18 -0
  37. package/src/app/auth/auth.interceptor.ts +14 -0
  38. package/src/app/auth/auth.service.ts +61 -0
  39. package/src/app/guards/auth.guard.ts +14 -0
  40. package/src/app/home/home.component.ts +69 -0
  41. package/src/app/login/login.component.ts +152 -0
  42. package/src/index.html +13 -0
  43. package/src/index.ts +2 -0
  44. package/src/main.ts +6 -0
  45. package/src/public-api.ts +5 -0
  46. package/src/styles.css +1 -0
  47. package/tsconfig.lib.json +23 -0
@@ -0,0 +1,355 @@
1
+
2
+ --------------------------------------------------------------------------------
3
+ Package: @angular/forms
4
+ License: "MIT"
5
+
6
+ The MIT License
7
+
8
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in
18
+ all copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
26
+ THE SOFTWARE.
27
+
28
+ --------------------------------------------------------------------------------
29
+ Package: @angular/core
30
+ License: "MIT"
31
+
32
+ The MIT License
33
+
34
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
35
+
36
+ Permission is hereby granted, free of charge, to any person obtaining a copy
37
+ of this software and associated documentation files (the "Software"), to deal
38
+ in the Software without restriction, including without limitation the rights
39
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40
+ copies of the Software, and to permit persons to whom the Software is
41
+ furnished to do so, subject to the following conditions:
42
+
43
+ The above copyright notice and this permission notice shall be included in
44
+ all copies or substantial portions of the Software.
45
+
46
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
52
+ THE SOFTWARE.
53
+
54
+ --------------------------------------------------------------------------------
55
+ Package: rxjs
56
+ License: "Apache-2.0"
57
+
58
+ Apache License
59
+ Version 2.0, January 2004
60
+ http://www.apache.org/licenses/
61
+
62
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
63
+
64
+ 1. Definitions.
65
+
66
+ "License" shall mean the terms and conditions for use, reproduction,
67
+ and distribution as defined by Sections 1 through 9 of this document.
68
+
69
+ "Licensor" shall mean the copyright owner or entity authorized by
70
+ the copyright owner that is granting the License.
71
+
72
+ "Legal Entity" shall mean the union of the acting entity and all
73
+ other entities that control, are controlled by, or are under common
74
+ control with that entity. For the purposes of this definition,
75
+ "control" means (i) the power, direct or indirect, to cause the
76
+ direction or management of such entity, whether by contract or
77
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
78
+ outstanding shares, or (iii) beneficial ownership of such entity.
79
+
80
+ "You" (or "Your") shall mean an individual or Legal Entity
81
+ exercising permissions granted by this License.
82
+
83
+ "Source" form shall mean the preferred form for making modifications,
84
+ including but not limited to software source code, documentation
85
+ source, and configuration files.
86
+
87
+ "Object" form shall mean any form resulting from mechanical
88
+ transformation or translation of a Source form, including but
89
+ not limited to compiled object code, generated documentation,
90
+ and conversions to other media types.
91
+
92
+ "Work" shall mean the work of authorship, whether in Source or
93
+ Object form, made available under the License, as indicated by a
94
+ copyright notice that is included in or attached to the work
95
+ (an example is provided in the Appendix below).
96
+
97
+ "Derivative Works" shall mean any work, whether in Source or Object
98
+ form, that is based on (or derived from) the Work and for which the
99
+ editorial revisions, annotations, elaborations, or other modifications
100
+ represent, as a whole, an original work of authorship. For the purposes
101
+ of this License, Derivative Works shall not include works that remain
102
+ separable from, or merely link (or bind by name) to the interfaces of,
103
+ the Work and Derivative Works thereof.
104
+
105
+ "Contribution" shall mean any work of authorship, including
106
+ the original version of the Work and any modifications or additions
107
+ to that Work or Derivative Works thereof, that is intentionally
108
+ submitted to Licensor for inclusion in the Work by the copyright owner
109
+ or by an individual or Legal Entity authorized to submit on behalf of
110
+ the copyright owner. For the purposes of this definition, "submitted"
111
+ means any form of electronic, verbal, or written communication sent
112
+ to the Licensor or its representatives, including but not limited to
113
+ communication on electronic mailing lists, source code control systems,
114
+ and issue tracking systems that are managed by, or on behalf of, the
115
+ Licensor for the purpose of discussing and improving the Work, but
116
+ excluding communication that is conspicuously marked or otherwise
117
+ designated in writing by the copyright owner as "Not a Contribution."
118
+
119
+ "Contributor" shall mean Licensor and any individual or Legal Entity
120
+ on behalf of whom a Contribution has been received by Licensor and
121
+ subsequently incorporated within the Work.
122
+
123
+ 2. Grant of Copyright License. Subject to the terms and conditions of
124
+ this License, each Contributor hereby grants to You a perpetual,
125
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
126
+ copyright license to reproduce, prepare Derivative Works of,
127
+ publicly display, publicly perform, sublicense, and distribute the
128
+ Work and such Derivative Works in Source or Object form.
129
+
130
+ 3. Grant of Patent License. Subject to the terms and conditions of
131
+ this License, each Contributor hereby grants to You a perpetual,
132
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
133
+ (except as stated in this section) patent license to make, have made,
134
+ use, offer to sell, sell, import, and otherwise transfer the Work,
135
+ where such license applies only to those patent claims licensable
136
+ by such Contributor that are necessarily infringed by their
137
+ Contribution(s) alone or by combination of their Contribution(s)
138
+ with the Work to which such Contribution(s) was submitted. If You
139
+ institute patent litigation against any entity (including a
140
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
141
+ or a Contribution incorporated within the Work constitutes direct
142
+ or contributory patent infringement, then any patent licenses
143
+ granted to You under this License for that Work shall terminate
144
+ as of the date such litigation is filed.
145
+
146
+ 4. Redistribution. You may reproduce and distribute copies of the
147
+ Work or Derivative Works thereof in any medium, with or without
148
+ modifications, and in Source or Object form, provided that You
149
+ meet the following conditions:
150
+
151
+ (a) You must give any other recipients of the Work or
152
+ Derivative Works a copy of this License; and
153
+
154
+ (b) You must cause any modified files to carry prominent notices
155
+ stating that You changed the files; and
156
+
157
+ (c) You must retain, in the Source form of any Derivative Works
158
+ that You distribute, all copyright, patent, trademark, and
159
+ attribution notices from the Source form of the Work,
160
+ excluding those notices that do not pertain to any part of
161
+ the Derivative Works; and
162
+
163
+ (d) If the Work includes a "NOTICE" text file as part of its
164
+ distribution, then any Derivative Works that You distribute must
165
+ include a readable copy of the attribution notices contained
166
+ within such NOTICE file, excluding those notices that do not
167
+ pertain to any part of the Derivative Works, in at least one
168
+ of the following places: within a NOTICE text file distributed
169
+ as part of the Derivative Works; within the Source form or
170
+ documentation, if provided along with the Derivative Works; or,
171
+ within a display generated by the Derivative Works, if and
172
+ wherever such third-party notices normally appear. The contents
173
+ of the NOTICE file are for informational purposes only and
174
+ do not modify the License. You may add Your own attribution
175
+ notices within Derivative Works that You distribute, alongside
176
+ or as an addendum to the NOTICE text from the Work, provided
177
+ that such additional attribution notices cannot be construed
178
+ as modifying the License.
179
+
180
+ You may add Your own copyright statement to Your modifications and
181
+ may provide additional or different license terms and conditions
182
+ for use, reproduction, or distribution of Your modifications, or
183
+ for any such Derivative Works as a whole, provided Your use,
184
+ reproduction, and distribution of the Work otherwise complies with
185
+ the conditions stated in this License.
186
+
187
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
188
+ any Contribution intentionally submitted for inclusion in the Work
189
+ by You to the Licensor shall be under the terms and conditions of
190
+ this License, without any additional terms or conditions.
191
+ Notwithstanding the above, nothing herein shall supersede or modify
192
+ the terms of any separate license agreement you may have executed
193
+ with Licensor regarding such Contributions.
194
+
195
+ 6. Trademarks. This License does not grant permission to use the trade
196
+ names, trademarks, service marks, or product names of the Licensor,
197
+ except as required for reasonable and customary use in describing the
198
+ origin of the Work and reproducing the content of the NOTICE file.
199
+
200
+ 7. Disclaimer of Warranty. Unless required by applicable law or
201
+ agreed to in writing, Licensor provides the Work (and each
202
+ Contributor provides its Contributions) on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
204
+ implied, including, without limitation, any warranties or conditions
205
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
206
+ PARTICULAR PURPOSE. You are solely responsible for determining the
207
+ appropriateness of using or redistributing the Work and assume any
208
+ risks associated with Your exercise of permissions under this License.
209
+
210
+ 8. Limitation of Liability. In no event and under no legal theory,
211
+ whether in tort (including negligence), contract, or otherwise,
212
+ unless required by applicable law (such as deliberate and grossly
213
+ negligent acts) or agreed to in writing, shall any Contributor be
214
+ liable to You for damages, including any direct, indirect, special,
215
+ incidental, or consequential damages of any character arising as a
216
+ result of this License or out of the use or inability to use the
217
+ Work (including but not limited to damages for loss of goodwill,
218
+ work stoppage, computer failure or malfunction, or any and all
219
+ other commercial damages or losses), even if such Contributor
220
+ has been advised of the possibility of such damages.
221
+
222
+ 9. Accepting Warranty or Additional Liability. While redistributing
223
+ the Work or Derivative Works thereof, You may choose to offer,
224
+ and charge a fee for, acceptance of support, warranty, indemnity,
225
+ or other liability obligations and/or rights consistent with this
226
+ License. However, in accepting such obligations, You may act only
227
+ on Your own behalf and on Your sole responsibility, not on behalf
228
+ of any other Contributor, and only if You agree to indemnify,
229
+ defend, and hold each Contributor harmless for any liability
230
+ incurred by, or claims asserted against, such Contributor by reason
231
+ of your accepting any such warranty or additional liability.
232
+
233
+ END OF TERMS AND CONDITIONS
234
+
235
+ APPENDIX: How to apply the Apache License to your work.
236
+
237
+ To apply the Apache License to your work, attach the following
238
+ boilerplate notice, with the fields enclosed by brackets "[]"
239
+ replaced with your own identifying information. (Don't include
240
+ the brackets!) The text should be enclosed in the appropriate
241
+ comment syntax for the file format. We also recommend that a
242
+ file or class name and description of purpose be included on the
243
+ same "printed page" as the copyright notice for easier
244
+ identification within third-party archives.
245
+
246
+ Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
247
+
248
+ Licensed under the Apache License, Version 2.0 (the "License");
249
+ you may not use this file except in compliance with the License.
250
+ You may obtain a copy of the License at
251
+
252
+ http://www.apache.org/licenses/LICENSE-2.0
253
+
254
+ Unless required by applicable law or agreed to in writing, software
255
+ distributed under the License is distributed on an "AS IS" BASIS,
256
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
257
+ See the License for the specific language governing permissions and
258
+ limitations under the License.
259
+
260
+
261
+ --------------------------------------------------------------------------------
262
+ Package: tslib
263
+ License: "0BSD"
264
+
265
+ Copyright (c) Microsoft Corporation.
266
+
267
+ Permission to use, copy, modify, and/or distribute this software for any
268
+ purpose with or without fee is hereby granted.
269
+
270
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
271
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
272
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
273
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
274
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
275
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
276
+ PERFORMANCE OF THIS SOFTWARE.
277
+ --------------------------------------------------------------------------------
278
+ Package: @angular/common
279
+ License: "MIT"
280
+
281
+ The MIT License
282
+
283
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
284
+
285
+ Permission is hereby granted, free of charge, to any person obtaining a copy
286
+ of this software and associated documentation files (the "Software"), to deal
287
+ in the Software without restriction, including without limitation the rights
288
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
289
+ copies of the Software, and to permit persons to whom the Software is
290
+ furnished to do so, subject to the following conditions:
291
+
292
+ The above copyright notice and this permission notice shall be included in
293
+ all copies or substantial portions of the Software.
294
+
295
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
296
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
297
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
298
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
299
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
300
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
301
+ THE SOFTWARE.
302
+
303
+ --------------------------------------------------------------------------------
304
+ Package: @angular/platform-browser
305
+ License: "MIT"
306
+
307
+ The MIT License
308
+
309
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
310
+
311
+ Permission is hereby granted, free of charge, to any person obtaining a copy
312
+ of this software and associated documentation files (the "Software"), to deal
313
+ in the Software without restriction, including without limitation the rights
314
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
315
+ copies of the Software, and to permit persons to whom the Software is
316
+ furnished to do so, subject to the following conditions:
317
+
318
+ The above copyright notice and this permission notice shall be included in
319
+ all copies or substantial portions of the Software.
320
+
321
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
322
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
323
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
324
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
325
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
326
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
327
+ THE SOFTWARE.
328
+
329
+ --------------------------------------------------------------------------------
330
+ Package: @angular/router
331
+ License: "MIT"
332
+
333
+ The MIT License
334
+
335
+ Copyright (c) 2010-2026 Google LLC. https://angular.dev/license
336
+
337
+ Permission is hereby granted, free of charge, to any person obtaining a copy
338
+ of this software and associated documentation files (the "Software"), to deal
339
+ in the Software without restriction, including without limitation the rights
340
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
341
+ copies of the Software, and to permit persons to whom the Software is
342
+ furnished to do so, subject to the following conditions:
343
+
344
+ The above copyright notice and this permission notice shall be included in
345
+ all copies or substantial portions of the Software.
346
+
347
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
348
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
349
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
350
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
351
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
352
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
353
+ THE SOFTWARE.
354
+
355
+ --------------------------------------------------------------------------------
@@ -0,0 +1 @@
1
+ import{A as Ve,B as De,C as be,D as d,E as f,I as A,K as Me,L as J,M as y,N as Ae,O as we,P as Q,Q as ee,R as te,S as w,T as g,U as E,V as Ee,W as ne,X as ie,Y as Fe,a,b as u,ba as Se,c as ge,d as pe,da as Ie,e as me,f as _e,g as P,h as b,i as q,j as v,k as R,l as M,n as c,o as z,p as Z,q as X,r as _,s as Y,t as s,u as ve,v as K,w as l,x as h,y as ye,z as Ce}from"./chunk-DMFXUAXO.js";var Ge=(()=>{class n{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,i){this._renderer=t,this._elementRef=i}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(i){return new(i||n)(s(Y),s(X))};static \u0275dir=l({type:n})}return n})(),ot=(()=>{class n extends Ge{static \u0275fac=(()=>{let t;return function(r){return(t||(t=Z(n)))(r||n)}})();static \u0275dir=l({type:n,features:[h]})}return n})(),Be=new v("");var st={provide:Be,useExisting:b(()=>W),multi:!0};function at(){let n=ie()?ie().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}var lt=new v(""),W=(()=>{class n extends Ge{_compositionMode;_composing=!1;constructor(t,i,r){super(t,i),this._compositionMode=r,this._compositionMode==null&&(this._compositionMode=!at())}writeValue(t){let i=t??"";this.setProperty("value",i)}_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(i){return new(i||n)(s(Y),s(X),s(lt,8))};static \u0275dir=l({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(i,r){i&1&&A("input",function(m){return r._handleInput(m.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(m){return r._compositionEnd(m.target.value)})},standalone:!1,features:[w([st]),h]})}return n})();function ut(n){return n==null||dt(n)===0}function dt(n){return n==null?null:Array.isArray(n)||typeof n=="string"?n.length:n instanceof Set?n.size:null}var se=new v(""),Ue=new v("");function ct(n){return ut(n.value)?{required:!0}:null}function Ne(n){return null}function He(n){return n!=null}function Le(n){return ye(n)?pe(n):n}function We(n){let e={};return n.forEach(t=>{e=t!=null?a(a({},e),t):e}),Object.keys(e).length===0?null:e}function $e(n,e){return e.map(t=>t(n))}function ht(n){return!n.validate}function qe(n){return n.map(e=>ht(e)?e:t=>e.validate(t))}function ft(n){if(!n)return null;let e=n.filter(He);return e.length==0?null:function(t){return We($e(t,e))}}function ae(n){return n!=null?ft(qe(n)):null}function gt(n){if(!n)return null;let e=n.filter(He);return e.length==0?null:function(t){let i=$e(t,e).map(Le);return _e(i).pipe(me(We))}}function le(n){return n!=null?gt(qe(n)):null}function Oe(n,e){return n===null?[e]:Array.isArray(n)?[...n,e]:[n,e]}function pt(n){return n._rawValidators}function mt(n){return n._rawAsyncValidators}function re(n){return n?Array.isArray(n)?n:[n]:[]}function j(n,e){return Array.isArray(n)?n.includes(e):n===e}function xe(n,e){let t=re(e);return re(n).forEach(r=>{j(t,r)||t.push(r)}),t}function Pe(n,e){return re(e).filter(t=>!j(n,t))}var T=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=ae(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=le(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?.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}},D=class extends T{name;get formDirective(){return null}get path(){return null}},x=class extends T{_parent=null;name=null;valueAccessor=null},G=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}};var ze=(()=>{class n extends G{constructor(t){super(t)}static \u0275fac=function(i){return new(i||n)(s(x,2))};static \u0275dir=l({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(i,r){i&2&&J("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},standalone:!1,features:[h]})}return n})(),Ze=(()=>{class n extends G{constructor(t){super(t)}static \u0275fac=function(i){return new(i||n)(s(D,10))};static \u0275dir=l({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(i,r){i&2&&J("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},standalone:!1,features:[h]})}return n})();var F="VALID",k="INVALID",C="PENDING",S="DISABLED",p=class{},B=class extends p{value;source;constructor(e,t){super(),this.value=e,this.source=t}},N=class extends p{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},O=class extends p{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},V=class extends p{status;source;constructor(e,t){super(),this.status=e,this.source=t}},oe=class extends p{source;constructor(e){super(),this.source=e}},U=class extends p{source;constructor(e){super(),this.source=e}};function Xe(n){return($(n)?n.validators:n)||null}function _t(n){return Array.isArray(n)?ae(n):n||null}function Ye(n,e){return($(e)?e.asyncValidators:n)||null}function vt(n){return Array.isArray(n)?le(n):n||null}function $(n){return n!=null&&!Array.isArray(n)&&typeof n=="object"}function yt(n,e,t){let i=n.controls;if(!(e?Object.keys(i):i).length)throw new P(1e3,"");if(!i[t])throw new P(1001,"")}function Ct(n,e,t){n._forEachChild((i,r)=>{if(t[r]===void 0)throw new P(1002,"")})}var H=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 g(this.statusReactive)}set status(e){g(()=>this.statusReactive.set(e))}_status=E(()=>this.statusReactive());statusReactive=c(void 0);get valid(){return this.status===F}get invalid(){return this.status===k}get pending(){return this.status===C}get disabled(){return this.status===S}get enabled(){return this.status!==S}errors;get pristine(){return g(this.pristineReactive)}set pristine(e){g(()=>this.pristineReactive.set(e))}_pristine=E(()=>this.pristineReactive());pristineReactive=c(!0);get dirty(){return!this.pristine}get touched(){return g(this.touchedReactive)}set touched(e){g(()=>this.touchedReactive.set(e))}_touched=E(()=>this.touchedReactive());touchedReactive=c(!1);get untouched(){return!this.touched}_events=new ge;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(xe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(xe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Pe(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Pe(e,this._rawAsyncValidators))}hasValidator(e){return j(this._rawValidators,e)}hasAsyncValidator(e){return j(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;e.onlySelf||this._parent?.markAsTouched(u(a({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new O(!0,i))}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 i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),e.onlySelf||this._parent?._updateTouched(e,i),t&&e.emitEvent!==!1&&this._events.next(new O(!1,i))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;e.onlySelf||this._parent?.markAsDirty(u(a({},e),{sourceControl:i})),t&&e.emitEvent!==!1&&this._events.next(new N(!1,i))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),e.onlySelf||this._parent?._updatePristine(e,i),t&&e.emitEvent!==!1&&this._events.next(new N(!0,i))}markAsPending(e={}){this.status=C;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new V(this.status,t)),this.statusChanges.emit(this.status)),e.onlySelf||this._parent?.markAsPending(u(a({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=S,this.errors=null,this._forEachChild(r=>{r.disable(u(a({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B(this.value,i)),this._events.next(new V(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(u(a({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=F,this._forEachChild(i=>{i.enable(u(a({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(u(a({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,t){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 i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===F||this.status===C)&&this._runAsyncValidator(i,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new B(this.value,t)),this._events.next(new V(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),e.onlySelf||this._parent?.updateValueAndValidity(u(a({},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()?S:F}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=C,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let i=Le(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{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((i,r)=>i&&i._find(r),this)}getError(e,t){let i=t?this.get(t):this;return i?.errors?i.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,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new V(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,i)}_initObservables(){this.valueChanges=new M,this.statusChanges=new M}_calculateStatus(){return this._allControlsDisabled()?S:this.errors?k:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(C)?C:this._anyControlsHaveStatus(k)?k:F}_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 i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,e.onlySelf||this._parent?._updatePristine(e,t),r&&this._events.next(new N(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new O(this.touched,t)),e.onlySelf||this._parent?._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){$(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=_t(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=vt(this._rawAsyncValidators)}},L=class extends H{constructor(e,t,i){super(Xe(t),Ye(i,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,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.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,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Ct(this,!0,e),Object.keys(e).forEach(i=>{yt(this,!0,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(i=>{let r=this.controls[i];r&&r.patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e?e[r]:null,u(a({},t),{onlySelf:!0}))}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new U(this))}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>i._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,i]of Object.entries(this.controls))if(this.contains(t)&&e(i))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,i,r)=>((i.enabled||this.disabled)&&(t[r]=i.value),t))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,o)=>{i=t(i,r,o)}),i}_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 ue=new v("",{factory:()=>de}),de="always";function Vt(n,e){return[...e.path,n]}function Ke(n,e,t=de){Je(n,e),e.valueAccessor.writeValue(n.value),(n.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(n.disabled),bt(n,e),At(n,e),Mt(n,e),Dt(n,e)}function Re(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Dt(n,e){if(e.valueAccessor.setDisabledState){let t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}function Je(n,e){let t=pt(n);e.validator!==null?n.setValidators(Oe(t,e.validator)):typeof t=="function"&&n.setValidators([t]);let i=mt(n);e.asyncValidator!==null?n.setAsyncValidators(Oe(i,e.asyncValidator)):typeof i=="function"&&n.setAsyncValidators([i]);let r=()=>n.updateValueAndValidity();Re(e._rawValidators,r),Re(e._rawAsyncValidators,r)}function bt(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,n.updateOn==="change"&&Qe(n,e)})}function Mt(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,n.updateOn==="blur"&&n._pendingChange&&Qe(n,e),n.updateOn!=="submit"&&n.markAsTouched()})}function Qe(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function At(n,e){let t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}function wt(n,e){n==null,Je(n,e)}function Et(n,e){if(!n.hasOwnProperty("model"))return!1;let t=n.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function Ft(n){return Object.getPrototypeOf(n.constructor)===ot}function St(n,e){n._syncPendingControls(),e.forEach(t=>{let i=t.control;i.updateOn==="submit"&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function It(n,e){if(!e)return null;Array.isArray(e);let t,i,r;return e.forEach(o=>{o.constructor===W?t=o:Ft(o)?i=o:r=o}),r||i||t||null}var Nt={provide:D,useExisting:b(()=>ce)},I=Promise.resolve(),ce=(()=>{class n extends D{callSetDisabledState;get submitted(){return g(this.submittedReactive)}_submitted=E(()=>this.submittedReactive());submittedReactive=c(!1);_directives=new Set;form;ngSubmit=new M;options;constructor(t,i,r){super(),this.callSetDisabledState=r,this.form=new L({},ae(t),le(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){I.then(()=>{let i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),Ke(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){I.then(()=>{this._findContainer(t.path)?.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){I.then(()=>{let i=this._findContainer(t.path),r=new L({});wt(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){I.then(()=>{this._findContainer(t.path)?.removeControl?.(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){I.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),St(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new oe(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_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(i){return new(i||n)(s(se,10),s(Ue,10),s(ue,8))};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(i,r){i&1&&A("submit",function(m){return r.onSubmit(m)})("reset",function(){return r.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[w([Nt]),h]})}return n})();function ke(n,e){let t=n.indexOf(e);t>-1&&n.splice(t,1)}function je(n){return typeof n=="object"&&n!==null&&Object.keys(n).length===2&&"value"in n&&"disabled"in n}var Ot=class extends H{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,i){super(Xe(t),Ye(i,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),$(t)&&(t.nonNullable||t.initialValueIsDefault)&&(je(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(i=>i(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),t.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new U(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ke(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ke(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){je(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 xt={provide:x,useExisting:b(()=>he)},Te=Promise.resolve(),he=(()=>{class n extends x{_changeDetectorRef;callSetDisabledState;control=new Ot;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new M;constructor(t,i,r,o,m,it){super(),this._changeDetectorRef=m,this.callSetDisabledState=it,this._parent=t,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=It(this,o)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let i=t.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),Et(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(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(){Ke(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){Te.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let i=t.isDisabled.currentValue,r=i!==0&&ne(i);Te.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Vt(t,this._parent):[t]}static \u0275fac=function(i){return new(i||n)(s(D,9),s(se,10),s(Ue,10),s(Be,10),s(Ee,8),s(ue,8))};static \u0275dir=l({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[w([xt]),h,z]})}return n})();var et=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return n})();var Pt=(()=>{class n{_validator=Ne;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let i=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(i),this._validator=this._enabled?this.createValidator(i):Ne,this._onChange?.()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(i){return new(i||n)};static \u0275dir=l({type:n,features:[z]})}return n})();var Rt={provide:se,useExisting:b(()=>fe),multi:!0};var fe=(()=>{class n extends Pt{required;inputName="required";normalizeInput=ne;createValidator=t=>ct;enabled(t){return t}static \u0275fac=(()=>{let t;return function(r){return(t||(t=Z(n)))(r||n)}})();static \u0275dir=l({type:n,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(i,r){i&2&&Ce("required",r._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[w([Rt]),h]})}return n})();var kt=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=K({type:n});static \u0275inj=q({})}return n})();var tt=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:ue,useValue:t.callSetDisabledState??de}]}}static \u0275fac=function(i){return new(i||n)};static \u0275mod=K({type:n});static \u0275inj=q({imports:[kt]})}return n})();function Tt(n,e){if(n&1&&(d(0,"div",2),y(1),f()),n&2){let t=Me();_(),Ae(t.error())}}var nt=class n{authService=R(Ie);router=R(Se);username="";password="";loading=c(!1);error=c("");onSubmit(){this.loading.set(!0),this.error.set(""),this.authService.login(this.username,this.password).subscribe({next:()=>{this.loading.set(!1),this.router.navigate(["/"])},error:e=>{this.loading.set(!1),this.error.set(e.error?.message||"Login failed. Please try again.")}})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=ve({type:n,selectors:[["app-login"]],decls:15,vars:5,consts:[[1,"login-container"],[1,"login-form",3,"ngSubmit"],[1,"error"],[1,"form-group"],["for","username"],["id","username","type","text","name","username","required","","autocomplete","username",3,"ngModelChange","ngModel"],["for","password"],["id","password","type","password","name","password","required","","autocomplete","current-password",3,"ngModelChange","ngModel"],["type","submit",3,"disabled"]],template:function(t,i){t&1&&(d(0,"div",0)(1,"form",1),A("ngSubmit",function(){return i.onSubmit()}),d(2,"h2"),y(3,"Login"),f(),Ve(4,Tt,2,1,"div",2),d(5,"div",3)(6,"label",4),y(7,"Username"),f(),d(8,"input",5),te("ngModelChange",function(o){return ee(i.username,o)||(i.username=o),o}),f()(),d(9,"div",3)(10,"label",6),y(11,"Password"),f(),d(12,"input",7),te("ngModelChange",function(o){return ee(i.password,o)||(i.password=o),o}),f()(),d(13,"button",8),y(14),f()()()),t&2&&(_(4),De(i.error()?4:-1),_(4),Q("ngModel",i.username),_(4),Q("ngModel",i.password),_(),be("disabled",i.loading()),_(),we(" ",i.loading()?"Loading...":"Login"," "))},dependencies:[tt,et,W,ze,Ze,fe,he,ce,Fe],styles:[".login-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:#f5f5f5}.login-form[_ngcontent-%COMP%]{background:#fff;padding:2rem;border-radius:8px;box-shadow:0 2px 10px #0000001a;width:100%;max-width:400px}h2[_ngcontent-%COMP%]{margin:0 0 1.5rem;text-align:center}.form-group[_ngcontent-%COMP%]{margin-bottom:1rem}label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:500}input[_ngcontent-%COMP%]{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;box-sizing:border-box}input[_ngcontent-%COMP%]:focus{outline:none;border-color:#007bff}button[_ngcontent-%COMP%]{width:100%;padding:.75rem;background:#007bff;color:#fff;border:none;border-radius:4px;font-size:1rem;cursor:pointer;margin-top:1rem}button[_ngcontent-%COMP%]:hover:not(:disabled){background:#0056b3}button[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.error[_ngcontent-%COMP%]{background:#f8d7da;color:#721c24;padding:.75rem;border-radius:4px;margin-bottom:1rem;border:1px solid #f5c6cb}"]})};export{nt as LoginComponent};