@m4l/testing 1.2.1-beta-docs-autocomplete-async-with-add-mf-sync.0 → 1.2.1-beta-docs-autocomplete-async-with-add-mf-sync.1

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.
@@ -0,0 +1,2113 @@
1
+ import { isDeepStrictEqual as y, inspect as R } from "node:util";
2
+ import { jsxDEV as u } from "react/jsx-dev-runtime";
3
+ import { vi as t } from "vitest";
4
+ import { q as X, l as B, r as H, w as Q, v as ee, u as te } from "./userPreferences-CoM3U5-X.js";
5
+ import "date-fns";
6
+ import "history";
7
+ import g from "react";
8
+ const _ = "__rhfOnSubmitRef", re = {
9
+ square: {
10
+ large: {
11
+ width: 800,
12
+ height: 800
13
+ },
14
+ medium: {
15
+ width: 600,
16
+ height: 600
17
+ }
18
+ }
19
+ }, oe = {
20
+ date: 180,
21
+ smallId: 50,
22
+ smallName: 130,
23
+ mediumId: 130,
24
+ mediumName: 180,
25
+ mediumNumber: 120,
26
+ mediumChip: 100,
27
+ mediumDescription: 280,
28
+ smallDescription: 160
29
+ }, q = {
30
+ database: "test-db",
31
+ domain_token: "test-token",
32
+ domainToken: "test-token",
33
+ environment_assets: "test-env",
34
+ host: "http://test-host.com",
35
+ host_api_local: "http://test-api-local.com",
36
+ hostApiLocal: "http://test-api-local.com",
37
+ host_api_remote: "http://test-api.com",
38
+ hostApiRemote: "http://test-api.com",
39
+ hostRemote: "test-host.com",
40
+ hostApiIcons: "http://test-api.com/main/icons",
41
+ host_static_assets: "http://test-assets.com",
42
+ isLocalhost: !1
43
+ }, ne = {
44
+ ...q,
45
+ environment_assets: "env",
46
+ host: "https://app.example.com",
47
+ host_api_local: "https://api.example.com/local",
48
+ hostApiLocal: "https://api.example.com/local",
49
+ host_api_remote: "https://api.example.com",
50
+ hostApiRemote: "https://api.example.com",
51
+ hostApiIcons: "https://static.example.com/icons",
52
+ hostRemote: "api.example.com",
53
+ host_static_assets: "https://static.example.com"
54
+ }, ie = {
55
+ value: "5",
56
+ unit: "m"
57
+ }, Ze = {
58
+ noSignal: 0,
59
+ reliable: 1,
60
+ acceptable: 2
61
+ }, Xe = {
62
+ off: 0,
63
+ moving: 1,
64
+ maxSpeed: 2
65
+ }, C = /* @__PURE__ */ Symbol("expected-function-value");
66
+ function se(e) {
67
+ return e?.type === "nested";
68
+ }
69
+ function ae(e) {
70
+ return e?.type === "date";
71
+ }
72
+ function ce(e) {
73
+ return e?.type === "boolean";
74
+ }
75
+ function le(e) {
76
+ return e?.type === "price";
77
+ }
78
+ function ue(e) {
79
+ return e?.type === "points";
80
+ }
81
+ function de(e) {
82
+ return e?.type === "number";
83
+ }
84
+ function fe(e) {
85
+ return e?.type === "interactiveCheck";
86
+ }
87
+ function pe(e) {
88
+ return e?.type === "setCheck";
89
+ }
90
+ function me(e) {
91
+ return e?.type === "uncertainty";
92
+ }
93
+ function ge(e) {
94
+ return e?.type === "concatenated";
95
+ }
96
+ function ye(e) {
97
+ return e?.type === "chipStatus";
98
+ }
99
+ function ve(e) {
100
+ return e?.type === "tags";
101
+ }
102
+ function be(e) {
103
+ return e?.type === "icon";
104
+ }
105
+ function he(e) {
106
+ return e?.type === "color";
107
+ }
108
+ function ke(e) {
109
+ return e?.type === "image";
110
+ }
111
+ function M(e) {
112
+ return typeof e == "string" ? JSON.stringify(e) : typeof e == "symbol" ? e.toString() : R(e, {
113
+ depth: 4,
114
+ breakLength: 1 / 0,
115
+ compact: !0,
116
+ sorted: !0
117
+ });
118
+ }
119
+ function x(e, o, n, r, s) {
120
+ e.push(
121
+ `${o} ${n}: expected ${M(r)}, got ${M(s)}`
122
+ );
123
+ }
124
+ function O(e, o, n) {
125
+ e.push(`${o} ${n}: expected a function, got undefined`);
126
+ }
127
+ function L(e, o, n) {
128
+ e.push(
129
+ `${o} ${n}: expected undefined, got ${M("function")}`
130
+ );
131
+ }
132
+ function Ne(e, o, n, r) {
133
+ if (!n) {
134
+ e.push(`${o} testProps: expected an object, got undefined`);
135
+ return;
136
+ }
137
+ const s = Object.keys(n).sort(), i = Object.keys(r).sort();
138
+ y(s, i) || e.push(
139
+ `${o} testProps keys: expected ${M(i)}, got ${M(s)}`
140
+ ), i.forEach((a) => {
141
+ const c = r[a], l = n[a];
142
+ if (c === C) {
143
+ typeof l != "function" && x(
144
+ e,
145
+ o,
146
+ `testProps.${a}`,
147
+ "[function]",
148
+ l
149
+ );
150
+ return;
151
+ }
152
+ y(l, c) || x(
153
+ e,
154
+ o,
155
+ `testProps.${a}`,
156
+ c,
157
+ l
158
+ );
159
+ });
160
+ }
161
+ function xe(e) {
162
+ return se(e) ? {
163
+ expectedTestProps: {
164
+ fieldValue: e.fieldValue,
165
+ defaultValue: e.defaultValue,
166
+ Component: e.Component
167
+ },
168
+ requiresFormatter: !0,
169
+ requiresFilter: !0,
170
+ requiresSort: !0
171
+ } : ae(e) ? {
172
+ expectedTestProps: {
173
+ fieldValue: e.fieldValue,
174
+ presentationType: e.presentationType
175
+ },
176
+ requiresFormatter: !0,
177
+ requiresFilter: !0,
178
+ requiresSort: !0
179
+ } : ce(e) ? {
180
+ expectedTestProps: {
181
+ fieldValue: e.fieldValue,
182
+ presentationType: e.presentationType
183
+ },
184
+ requiresFormatter: !0,
185
+ requiresFilter: !0,
186
+ requiresSort: !0
187
+ } : le(e) ? {
188
+ expectedTestProps: {
189
+ fieldValue: e.fieldValue
190
+ },
191
+ requiresFormatter: !0,
192
+ requiresFilter: !0,
193
+ requiresSort: !0
194
+ } : ue(e) ? {
195
+ expectedTestProps: {
196
+ fieldValue: e.fieldValue,
197
+ fieldUnit: e.fieldUnit
198
+ },
199
+ requiresFormatter: !0,
200
+ requiresFilter: !0,
201
+ requiresSort: !0
202
+ } : de(e) ? {
203
+ expectedTestProps: {
204
+ fieldValue: e.fieldValue,
205
+ // Only assert fractionDigits when the hook call declares it, so the
206
+ // exact testProps key match works whether or not the caller passes it.
207
+ ...e.fractionDigits !== void 0 ? { fractionDigits: e.fractionDigits } : {}
208
+ },
209
+ requiresFormatter: !0,
210
+ requiresFilter: !0,
211
+ requiresSort: !0
212
+ } : fe(e) ? {
213
+ requiresFormatter: !0,
214
+ requiresFilter: !0,
215
+ requiresSort: !0
216
+ } : pe(e) ? {
217
+ expectedTestProps: {
218
+ field: e.field,
219
+ disabledGetter: C,
220
+ rowKeyGetter: C,
221
+ useHook: C
222
+ },
223
+ requiresFormatter: !0,
224
+ requiresFilter: !1,
225
+ requiresSort: !1
226
+ } : me(e) ? {
227
+ expectedTestProps: {
228
+ fieldValue: e.fieldValue,
229
+ fieldUnit: e.fieldUnit,
230
+ fieldSymbol: e.fieldSymbol
231
+ },
232
+ requiresFormatter: !0,
233
+ requiresFilter: !0,
234
+ requiresSort: !0
235
+ } : ge(e) ? {
236
+ expectedTestProps: {
237
+ fieldValue: e.fieldValue,
238
+ fieldSeparator: e.fieldSeparator
239
+ },
240
+ requiresFormatter: !0,
241
+ requiresFilter: !0,
242
+ requiresSort: !0
243
+ } : ye(e) ? {
244
+ expectedTestProps: {
245
+ fieldLabel: typeof e.fieldLabel == "function" ? C : e.fieldLabel,
246
+ fieldStatus: e.fieldStatus,
247
+ statusesColors: e.statusesColors,
248
+ fallbackColor: e.fallbackColor
249
+ },
250
+ requiresFormatter: !0,
251
+ requiresFilter: !0,
252
+ requiresSort: !0
253
+ } : ve(e) ? {
254
+ expectedTestProps: {
255
+ fieldValue: e.fieldValue
256
+ },
257
+ requiresFormatter: !0,
258
+ requiresFilter: !0,
259
+ requiresSort: !0
260
+ } : be(e) ? {
261
+ expectedTestProps: {
262
+ getIconProps: C
263
+ },
264
+ requiresFormatter: !0,
265
+ requiresFilter: !1,
266
+ requiresSort: !1
267
+ } : he(e) ? {
268
+ expectedTestProps: {
269
+ fieldValue: e.fieldValue
270
+ },
271
+ requiresFormatter: !0,
272
+ requiresFilter: !1,
273
+ requiresSort: !1
274
+ } : ke(e) ? {
275
+ expectedTestProps: {
276
+ fieldValue: e.fieldValue,
277
+ fieldText: e.fieldText,
278
+ cover: e.cover,
279
+ width: e.width,
280
+ height: e.height
281
+ },
282
+ requiresFormatter: !0,
283
+ requiresFilter: !1,
284
+ requiresSort: !1
285
+ } : Pe(e);
286
+ }
287
+ function Pe(e) {
288
+ return {
289
+ expectedTestProps: {
290
+ unsupportedHookCall: M(e)
291
+ },
292
+ requiresFormatter: !0,
293
+ requiresFilter: !0,
294
+ requiresSort: !0
295
+ };
296
+ }
297
+ function Qe(e, o) {
298
+ const n = [];
299
+ return e.length !== o.length && n.push(
300
+ `[columns] length: expected ${o.length}, got ${e.length}`
301
+ ), o.forEach((r, s) => {
302
+ const i = e[s], a = `[col ${s + 1} ${JSON.stringify(r.key)}]`;
303
+ if (!i) {
304
+ n.push(`${a} missing column at index ${s}`);
305
+ return;
306
+ }
307
+ if (i.key !== r.key && x(n, a, "key", r.key, i.key), i.name !== r.name && x(n, a, "name", r.name, i.name), i.type !== r.type && x(n, a, "type", r.type, i.type), y(i.align, r.align) || x(
308
+ n,
309
+ a,
310
+ "align",
311
+ r.align,
312
+ i.align
313
+ ), y(i.width, r.width) || x(
314
+ n,
315
+ a,
316
+ "width",
317
+ r.width,
318
+ i.width
319
+ ), y(i.visible, r.visible) || x(
320
+ n,
321
+ a,
322
+ "visible",
323
+ r.visible,
324
+ i.visible
325
+ ), r.fixed !== void 0 && !y(i.fixed, r.fixed) && x(
326
+ n,
327
+ a,
328
+ "fixed",
329
+ r.fixed,
330
+ i.fixed
331
+ ), r.hookCall) {
332
+ const c = xe(r.hookCall);
333
+ c.expectedTestProps && Ne(
334
+ n,
335
+ a,
336
+ i.testProps,
337
+ c.expectedTestProps
338
+ ), i.formatter === void 0 && O(n, a, "formatter"), c.requiresFilter && i.customFilter === void 0 && O(n, a, "customFilter"), c.requiresSort && i.customSort === void 0 && O(n, a, "customSort");
339
+ return;
340
+ }
341
+ i.formatter !== void 0 && L(n, a, "formatter"), i.customFilter !== void 0 && L(n, a, "customFilter"), i.customSort !== void 0 && L(n, a, "customSort");
342
+ }), n;
343
+ }
344
+ function p(e) {
345
+ return t.fn(
346
+ ({ children: o, ...n }) => g.createElement("div", { "data-testid": e, ...n }, o)
347
+ );
348
+ }
349
+ function h(e, o) {
350
+ return t.fn(() => g.createElement("div", { "data-testid": e }, o));
351
+ }
352
+ function Se(e = "paper-form") {
353
+ return t.fn(
354
+ ({ children: o, title: n }) => g.createElement(
355
+ "div",
356
+ {
357
+ "data-testid": e,
358
+ "data-title": String(n)
359
+ },
360
+ o
361
+ )
362
+ );
363
+ }
364
+ function v(e) {
365
+ return t.fn(
366
+ ({ children: o }) => g.createElement("div", { "data-testid": e }, o)
367
+ );
368
+ }
369
+ function Ae(e = "helmet-page") {
370
+ return t.fn(
371
+ ({ children: o, subtitle: n, title: r, titlePrefix: s }) => g.createElement(
372
+ "div",
373
+ {
374
+ "data-testid": e,
375
+ "data-title": String(r ?? ""),
376
+ "data-title-prefix": String(s ?? ""),
377
+ "data-subtitle": String(n ?? "")
378
+ },
379
+ o
380
+ )
381
+ );
382
+ }
383
+ function S(e) {
384
+ return t.fn(
385
+ ({ name: o }) => g.createElement("div", {
386
+ "data-testid": `${e}-${String(o)}`
387
+ })
388
+ );
389
+ }
390
+ function Ce(e = "property") {
391
+ return t.fn(
392
+ ({ property: o }) => g.createElement("div", {
393
+ "data-testid": `${e}-${String(o)}`
394
+ })
395
+ );
396
+ }
397
+ function Me(e = "data-src") {
398
+ return t.fn(
399
+ ({ src: o }) => g.createElement("span", {
400
+ [e]: String(o)
401
+ })
402
+ );
403
+ }
404
+ function Te(e = "divider") {
405
+ return t.fn(
406
+ ({ customVariant: o, orientation: n }) => g.createElement("div", {
407
+ "data-testid": e,
408
+ "data-orientation": String(n ?? ""),
409
+ "data-variant": String(o ?? "")
410
+ })
411
+ );
412
+ }
413
+ function De(e = "nav-link") {
414
+ return t.fn(
415
+ ({ children: o, reloadDocument: n, text: r, to: s, ...i }) => g.createElement(
416
+ "a",
417
+ {
418
+ "data-testid": e,
419
+ href: String(s ?? ""),
420
+ "data-reload-document": String(n ?? ""),
421
+ ...i
422
+ },
423
+ o ?? r ?? ""
424
+ )
425
+ );
426
+ }
427
+ function _e(e = "window-base") {
428
+ return t.fn(
429
+ ({ children: o, onClose: n, title: r }) => g.createElement(
430
+ "section",
431
+ {
432
+ "data-testid": e,
433
+ "data-title": String(r ?? "")
434
+ },
435
+ g.createElement(
436
+ "button",
437
+ {
438
+ type: "button",
439
+ onClick: n
440
+ },
441
+ "Close"
442
+ ),
443
+ o
444
+ )
445
+ );
446
+ }
447
+ function Fe({
448
+ testId: e,
449
+ disabledProp: o = "disabled",
450
+ handlerProp: n = "onClick",
451
+ labelProp: r = "label"
452
+ }) {
453
+ return t.fn(
454
+ (s) => g.createElement(
455
+ "button",
456
+ {
457
+ "data-testid": e,
458
+ disabled: !!s[o],
459
+ onClick: s[n]
460
+ },
461
+ String(s[r])
462
+ )
463
+ );
464
+ }
465
+ function et(e, o = `${e}-fallback`) {
466
+ return t.fn(
467
+ (n) => function() {
468
+ return g.createElement(
469
+ g.Suspense,
470
+ {
471
+ fallback: g.createElement("div", {
472
+ "data-testid": o
473
+ })
474
+ },
475
+ g.createElement(
476
+ "div",
477
+ { "data-testid": e },
478
+ g.createElement(n)
479
+ )
480
+ );
481
+ }
482
+ );
483
+ }
484
+ function A() {
485
+ return t.fn((e) => ({
486
+ formatter: t.fn(),
487
+ customFilter: t.fn(),
488
+ customSort: t.fn(),
489
+ getIconProps: e.getIconProps,
490
+ testProps: e
491
+ }));
492
+ }
493
+ function I(e) {
494
+ return typeof e == "string" ? JSON.stringify(e) : R(e, {
495
+ depth: 4,
496
+ breakLength: 1 / 0,
497
+ compact: !0,
498
+ sorted: !0
499
+ });
500
+ }
501
+ function N(e, o, n, r, s) {
502
+ e.push(
503
+ `${o} ${n}: expected ${I(r)}, got ${I(s)}`
504
+ );
505
+ }
506
+ function tt(e, o) {
507
+ const n = [];
508
+ return Array.isArray(e) ? (e.length !== o.length && n.push(
509
+ `[fields] length: expected ${o.length}, got ${e.length}`
510
+ ), o.forEach((r, s) => {
511
+ const i = e[s], a = `[field ${s + 1} ${JSON.stringify(r.name)}]`;
512
+ if (!i) {
513
+ n.push(`${a} missing field at index ${s}`);
514
+ return;
515
+ }
516
+ if (i.name !== r.name && N(
517
+ n,
518
+ a,
519
+ "name",
520
+ r.name,
521
+ i.name
522
+ ), y(i.dictionaryId, r.dictionaryId) || N(
523
+ n,
524
+ a,
525
+ "dictionaryId",
526
+ r.dictionaryId,
527
+ i.dictionaryId
528
+ ), i.type !== r.type && N(
529
+ n,
530
+ a,
531
+ "type",
532
+ r.type,
533
+ i.type
534
+ ), y(i.multiple, r.multiple) || N(
535
+ n,
536
+ a,
537
+ "multiple",
538
+ r.multiple,
539
+ i.multiple
540
+ ), y(i.presence, r.presence) || N(
541
+ n,
542
+ a,
543
+ "presence",
544
+ r.presence,
545
+ i.presence
546
+ ), r.defaultOperator !== void 0 && !y(i.defaultOperator, r.defaultOperator) && N(
547
+ n,
548
+ a,
549
+ "defaultOperator",
550
+ r.defaultOperator,
551
+ i.defaultOperator
552
+ ), r.restritcOperatorsTo !== void 0 && !y(
553
+ i.restritcOperatorsTo,
554
+ r.restritcOperatorsTo
555
+ ) && N(
556
+ n,
557
+ a,
558
+ "restritcOperatorsTo",
559
+ r.restritcOperatorsTo,
560
+ i.restritcOperatorsTo
561
+ ), r.defaultOperand1 !== void 0 && !y(i.defaultOperand1, r.defaultOperand1) && N(
562
+ n,
563
+ a,
564
+ "defaultOperand1",
565
+ r.defaultOperand1,
566
+ i.defaultOperand1
567
+ ), r.urlIcon !== void 0 && !y(i.urlIcon, r.urlIcon) && N(
568
+ n,
569
+ a,
570
+ "urlIcon",
571
+ r.urlIcon,
572
+ i.urlIcon
573
+ ), r.type === "selectAsync") {
574
+ if (!i.selectAsyncOptions) {
575
+ n.push(
576
+ `${a} selectAsyncOptions: expected to be defined, got undefined`
577
+ );
578
+ return;
579
+ }
580
+ r.selectAsyncOptions && !y(
581
+ i.selectAsyncOptions,
582
+ r.selectAsyncOptions
583
+ ) && N(
584
+ n,
585
+ a,
586
+ "selectAsyncOptions",
587
+ r.selectAsyncOptions,
588
+ i.selectAsyncOptions
589
+ );
590
+ }
591
+ }), n) : (n.push(
592
+ `[fields] type: expected "array", got ${I(typeof e)}`
593
+ ), n);
594
+ }
595
+ function Ee(e = _) {
596
+ return globalThis[e];
597
+ }
598
+ function Oe(e) {
599
+ return e === void 0 ? "" : JSON.stringify(e);
600
+ }
601
+ function w(e) {
602
+ return typeof e == "string" ? JSON.stringify(e) : R(e, {
603
+ depth: 4,
604
+ breakLength: 1 / 0,
605
+ compact: !0,
606
+ sorted: !0
607
+ });
608
+ }
609
+ function T(e, o, n, r, s) {
610
+ e.push(
611
+ `${o} ${n}: expected ${w(r)}, got ${w(s)}`
612
+ );
613
+ }
614
+ function rt(e, o) {
615
+ const n = [];
616
+ return Array.isArray(e) ? (e.length !== o.length && n.push(
617
+ `[fields] length: expected ${o.length}, got ${e.length}`
618
+ ), o.forEach((r, s) => {
619
+ const i = e[s], a = `[field ${s + 1} ${JSON.stringify(r.name)}]`;
620
+ if (!i) {
621
+ n.push(`${a} missing field at index ${s}`);
622
+ return;
623
+ }
624
+ i.name !== r.name && T(
625
+ n,
626
+ a,
627
+ "name",
628
+ r.name,
629
+ i.name
630
+ ), y(i.dictionaryId, r.dictionaryId) || T(
631
+ n,
632
+ a,
633
+ "dictionaryId",
634
+ r.dictionaryId,
635
+ i.dictionaryId
636
+ ), i.type !== r.type && T(
637
+ n,
638
+ a,
639
+ "type",
640
+ r.type,
641
+ i.type
642
+ ), y(i.presence, r.presence) || T(
643
+ n,
644
+ a,
645
+ "presence",
646
+ r.presence,
647
+ i.presence
648
+ ), r.urlIcon !== void 0 && !y(i.urlIcon, r.urlIcon) && T(
649
+ n,
650
+ a,
651
+ "urlIcon",
652
+ r.urlIcon,
653
+ i.urlIcon
654
+ );
655
+ }), n) : (n.push(
656
+ `[fields] type: expected "array", got ${w(typeof e)}`
657
+ ), n);
658
+ }
659
+ function Le() {
660
+ return {
661
+ hashLayers: {},
662
+ mapActions: {
663
+ getMap: () => null,
664
+ smartMoveToPoint: t.fn(),
665
+ setDataLayer: t.fn(),
666
+ addLayer: t.fn(),
667
+ removeLayer: t.fn()
668
+ }
669
+ };
670
+ }
671
+ function V(e) {
672
+ return typeof e == "function" || e && typeof e == "object" && "$$typeof" in e ? "callable" : "value";
673
+ }
674
+ function ot(e, o) {
675
+ return Object.keys(e).filter((n) => !(n in o));
676
+ }
677
+ function nt(e, o) {
678
+ const n = [];
679
+ for (const r of Object.keys(e)) {
680
+ if (!(r in o))
681
+ continue;
682
+ const s = V(o[r]), i = V(e[r]);
683
+ s !== i && n.push(`"${r}": real is ${s}, mock is ${i}`);
684
+ }
685
+ return n;
686
+ }
687
+ function Ie(e) {
688
+ return e.flatMap((o) => {
689
+ if (typeof o == "string")
690
+ return [o];
691
+ if (o && typeof o == "object") {
692
+ const n = o;
693
+ return [n.stack, n.message].filter(
694
+ (r) => typeof r == "string"
695
+ );
696
+ }
697
+ return [];
698
+ });
699
+ }
700
+ function it({
701
+ patterns: e
702
+ }) {
703
+ const o = console.error;
704
+ beforeEach(() => {
705
+ console.error = (...n) => {
706
+ Ie(n).some(
707
+ (s) => e.some((i) => i.test(s))
708
+ ) || o.call(console, ...n);
709
+ };
710
+ }), afterEach(() => {
711
+ console.error = o;
712
+ });
713
+ }
714
+ function st(e = _) {
715
+ globalThis[e] = {
716
+ current: null
717
+ };
718
+ }
719
+ function we({
720
+ baseModule: e = {},
721
+ moduleOverrides: o = {}
722
+ } = {}) {
723
+ const n = t.fn(
724
+ ({ ariaLabel: r, className: s, disabled: i, icon: a, onClick: c, src: l }) => {
725
+ const f = typeof l == "string" ? l : typeof a == "string" ? a : "";
726
+ return /* @__PURE__ */ u(
727
+ "span",
728
+ {
729
+ "data-testid": "base-icon",
730
+ className: s,
731
+ "data-disabled": String(!!i),
732
+ "data-src": f,
733
+ "aria-hidden": r ? void 0 : !0,
734
+ "aria-label": r,
735
+ onClick: i ? void 0 : c
736
+ },
737
+ void 0,
738
+ !1,
739
+ {
740
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageBase.tsx",
741
+ lineNumber: 61,
742
+ columnNumber: 9
743
+ },
744
+ this
745
+ );
746
+ }
747
+ );
748
+ return {
749
+ ...e,
750
+ // ButtonBase is consumed at module-load time as a styled() target by
751
+ // @m4l/components (e.g. DateRangeCalendarPickerSlots), so the base mock
752
+ // must always expose it even when tests never render it directly.
753
+ ButtonBase: t.fn(
754
+ ({ children: r, className: s, disabled: i, onClick: a }) => /* @__PURE__ */ u(
755
+ "button",
756
+ {
757
+ "data-testid": "base-button-base",
758
+ className: s,
759
+ disabled: i,
760
+ onClick: a,
761
+ type: "button",
762
+ children: r
763
+ },
764
+ void 0,
765
+ !1,
766
+ {
767
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageBase.tsx",
768
+ lineNumber: 81,
769
+ columnNumber: 9
770
+ },
771
+ this
772
+ )
773
+ ),
774
+ Icon: n,
775
+ Tooltip: t.fn(
776
+ ({ children: r, className: s, placement: i, size: a, title: c }) => /* @__PURE__ */ u(
777
+ "div",
778
+ {
779
+ "data-testid": "base-tooltip",
780
+ className: s,
781
+ "data-has-node-title": String(c !== void 0 && typeof c != "string"),
782
+ "data-placement": String(i ?? ""),
783
+ "data-size": String(a ?? ""),
784
+ "data-title": typeof c == "string" ? c : "",
785
+ children: r
786
+ },
787
+ void 0,
788
+ !1,
789
+ {
790
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageBase.tsx",
791
+ lineNumber: 95,
792
+ columnNumber: 9
793
+ },
794
+ this
795
+ )
796
+ ),
797
+ Typography: t.fn(
798
+ ({ children: r, className: s, dataTestid: i }) => /* @__PURE__ */ u(
799
+ "span",
800
+ {
801
+ "data-testid": typeof i == "string" && i.length > 0 ? i : "base-typography",
802
+ className: s,
803
+ children: r
804
+ },
805
+ void 0,
806
+ !1,
807
+ {
808
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageBase.tsx",
809
+ lineNumber: 109,
810
+ columnNumber: 9
811
+ },
812
+ this
813
+ )
814
+ ),
815
+ ...o
816
+ };
817
+ }
818
+ function at({
819
+ baseModule: e = {},
820
+ moduleOverrides: o = {}
821
+ } = {}) {
822
+ return we({
823
+ baseModule: e,
824
+ moduleOverrides: o
825
+ });
826
+ }
827
+ function U({
828
+ baseModule: e = {},
829
+ moduleOverrides: o = {},
830
+ submitRefGlobalKey: n = _
831
+ } = {}) {
832
+ const r = e.createValidationPartialObject, s = e.createValidationFullObject, i = e.createValidationSchema, a = e.getStepsAndValidationSchema;
833
+ return {
834
+ ...e,
835
+ Accordion: p("accordion"),
836
+ ContainerFlow: h("container-flow"),
837
+ ActionsGroup: p("actions-group"),
838
+ Divider: Te(),
839
+ ChipStatusFormatter: t.fn(({ label: c }) => /* @__PURE__ */ u("div", { "data-testid": "chip-status-formatter", children: c ?? "" }, void 0, !1, {
840
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
841
+ lineNumber: 69,
842
+ columnNumber: 7
843
+ }, this)),
844
+ BooleanFormatter: t.fn(({ value: c }) => /* @__PURE__ */ u("div", { "data-testid": "boolean-formatter", children: `${c ?? ""}` }, void 0, !1, {
845
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
846
+ lineNumber: 72,
847
+ columnNumber: 7
848
+ }, this)),
849
+ DateFormatter: t.fn(({ value: c }) => `${c ?? ""}`),
850
+ NumberFormatter: t.fn(
851
+ ({ obProps: c, fieldValue: l }) => `${c?.[l] ?? ""}`
852
+ ),
853
+ getTypographyStyles: t.fn(() => ({})),
854
+ getComponentClasses: t.fn(
855
+ (c, l) => (Array.isArray(l) ? l : Object.keys(l)).reduce(
856
+ (m, k) => ({
857
+ ...m,
858
+ [k]: k
859
+ }),
860
+ {}
861
+ )
862
+ ),
863
+ Chip: t.fn(
864
+ ({
865
+ label: c,
866
+ startIcon: l,
867
+ color: f
868
+ }) => /* @__PURE__ */ u(
869
+ "div",
870
+ {
871
+ "data-testid": "chip",
872
+ "data-label": c ?? "",
873
+ "data-start-icon": l ?? "",
874
+ "data-color": f ?? ""
875
+ },
876
+ void 0,
877
+ !1,
878
+ {
879
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
880
+ lineNumber: 106,
881
+ columnNumber: 9
882
+ },
883
+ this
884
+ )
885
+ ),
886
+ Image: t.fn(
887
+ ({
888
+ src: c,
889
+ alt: l
890
+ }) => /* @__PURE__ */ u("img", { "data-testid": "mock-image", src: c ?? "", alt: l ?? "" }, void 0, !1, {
891
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
892
+ lineNumber: 121,
893
+ columnNumber: 13
894
+ }, this)
895
+ ),
896
+ RHFormProvider: t.fn(
897
+ ({
898
+ children: c,
899
+ onSubmit: l,
900
+ statusLoad: f
901
+ }) => {
902
+ const m = Ee(n);
903
+ return m && l && (m.current = l), /* @__PURE__ */ u(
904
+ "div",
905
+ {
906
+ "data-testid": "rhf-provider",
907
+ "data-status-load": String(f ?? ""),
908
+ children: c
909
+ },
910
+ void 0,
911
+ !1,
912
+ {
913
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
914
+ lineNumber: 136,
915
+ columnNumber: 11
916
+ },
917
+ this
918
+ );
919
+ }
920
+ ),
921
+ createValidationPartialObject: t.fn(
922
+ (...c) => r ? r(...c) : {}
923
+ ),
924
+ createValidationFullObject: t.fn(
925
+ (...c) => s ? s(...c) : c[0]
926
+ ),
927
+ createValidationSchema: t.fn(
928
+ (...c) => i ? i(...c) : {}
929
+ ),
930
+ getObjectLogsComponentsDictionary: t.fn(() => []),
931
+ getNoItemSelectedComponentsDictionary: t.fn(() => []),
932
+ getFormattersComponentsDictionary: t.fn(() => []),
933
+ getDynamicSortComponentsDictionary: t.fn(() => []),
934
+ getDynamicFilterComponentsDictionary: t.fn(() => []),
935
+ getDataGridComponentsDictionary: t.fn(() => []),
936
+ getCheckableListComponentsDictionary: t.fn(() => []),
937
+ getRHFAutocompleteComponentsDictionary: t.fn(() => []),
938
+ getStepperComponentsDictionary: t.fn(() => []),
939
+ LinearProgress: t.fn(
940
+ ({
941
+ "data-testid": c
942
+ }) => /* @__PURE__ */ u("div", { "data-testid": c ?? "linear-progress" }, void 0, !1, {
943
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
944
+ lineNumber: 172,
945
+ columnNumber: 13
946
+ }, this)
947
+ ),
948
+ DataGrid: t.fn(({ children: c }) => /* @__PURE__ */ u("div", { "data-testid": "data-grid", children: c }, void 0, !1, {
949
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
950
+ lineNumber: 175,
951
+ columnNumber: 7
952
+ }, this)),
953
+ Stack: v("stack"),
954
+ Button: t.fn(
955
+ ({ children: c, disabled: l, label: f, onClick: m, "data-testid": k }) => /* @__PURE__ */ u(
956
+ "button",
957
+ {
958
+ "data-testid": typeof k == "string" ? k : "button",
959
+ disabled: !!l,
960
+ onClick: m,
961
+ children: String(f ?? c ?? "")
962
+ },
963
+ void 0,
964
+ !1,
965
+ {
966
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
967
+ lineNumber: 180,
968
+ columnNumber: 9
969
+ },
970
+ this
971
+ )
972
+ ),
973
+ WindowConfirm: v("window-confirm"),
974
+ WindowBase: _e(),
975
+ Card: v("card"),
976
+ Typography: v("typography"),
977
+ NavLink: De(),
978
+ Tooltip: t.fn(
979
+ ({
980
+ children: c,
981
+ title: l
982
+ }) => /* @__PURE__ */ u(
983
+ "div",
984
+ {
985
+ "data-testid": "tooltip",
986
+ "data-title": typeof l == "string" ? l : void 0,
987
+ children: c
988
+ },
989
+ void 0,
990
+ !1,
991
+ {
992
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
993
+ lineNumber: 202,
994
+ columnNumber: 9
995
+ },
996
+ this
997
+ )
998
+ ),
999
+ NoItemSelected: t.fn(
1000
+ ({ title: c, message: l }) => /* @__PURE__ */ u("div", { "data-testid": "no-item-selected", children: [
1001
+ /* @__PURE__ */ u("div", { "data-testid": "no-item-title", children: c }, void 0, !1, {
1002
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1003
+ lineNumber: 213,
1004
+ columnNumber: 11
1005
+ }, this),
1006
+ /* @__PURE__ */ u("div", { "data-testid": "no-item-message", children: l }, void 0, !1, {
1007
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1008
+ lineNumber: 214,
1009
+ columnNumber: 11
1010
+ }, this)
1011
+ ] }, void 0, !0, {
1012
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1013
+ lineNumber: 212,
1014
+ columnNumber: 9
1015
+ }, this)
1016
+ ),
1017
+ DATAGRID_SEMANTIC_WIDTHS: oe,
1018
+ IconButton: t.fn(
1019
+ ({ children: c, className: l, disabled: f, onClick: m }) => /* @__PURE__ */ u(
1020
+ "button",
1021
+ {
1022
+ "data-testid": "icon-button",
1023
+ className: typeof l == "string" ? l : void 0,
1024
+ disabled: !!f,
1025
+ onClick: m,
1026
+ children: c
1027
+ },
1028
+ void 0,
1029
+ !1,
1030
+ {
1031
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1032
+ lineNumber: 221,
1033
+ columnNumber: 9
1034
+ },
1035
+ this
1036
+ )
1037
+ ),
1038
+ Icon: Me(),
1039
+ ReactJsonViewer: t.fn(({ data: c }) => /* @__PURE__ */ u("div", { "data-testid": "react-json-view", children: Oe(c) }, void 0, !1, {
1040
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1041
+ lineNumber: 233,
1042
+ columnNumber: 7
1043
+ }, this)),
1044
+ TabsNavigator: h("tabs-navigator", "TabsNavigator"),
1045
+ DistanceToNowFormatter: t.fn(
1046
+ ({
1047
+ value: c
1048
+ }) => /* @__PURE__ */ u("span", { "data-testid": "distance-to-now-formatter", children: c ?? "" }, void 0, !1, {
1049
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1050
+ lineNumber: 242,
1051
+ columnNumber: 9
1052
+ }, this)
1053
+ ),
1054
+ useDistanceToNowFormatter: t.fn(() => ie),
1055
+ Tabs: v("tabs"),
1056
+ Tab: t.fn(({ children: c, label: l, ...f }) => /* @__PURE__ */ u(
1057
+ "button",
1058
+ {
1059
+ "data-testid": "tab",
1060
+ "data-label": String(l ?? ""),
1061
+ ...f,
1062
+ children: c
1063
+ },
1064
+ void 0,
1065
+ !1,
1066
+ {
1067
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1068
+ lineNumber: 248,
1069
+ columnNumber: 7
1070
+ },
1071
+ this
1072
+ )),
1073
+ PropagateLoaderSpinner: h(
1074
+ "propagate-loader-spinner"
1075
+ ),
1076
+ createToaster: t.fn(() => X()),
1077
+ deepShallow: t.fn(Object.is),
1078
+ getRawFiltersForNetwork: t.fn(() => []),
1079
+ getRawSortsForNetwork: t.fn(() => []),
1080
+ useColumnBoolean: A(),
1081
+ useColumnChipStatus: A(),
1082
+ useColumnDate: A(),
1083
+ useColumnIcon: A(),
1084
+ useColumnNestedValue: A(),
1085
+ useColumnNumber: A(),
1086
+ getDataGridRowsFromSet: t.fn(
1087
+ (c, l, f) => l.filter((m) => c.has(f(m)))
1088
+ ),
1089
+ PaperForm: Se(),
1090
+ PropertyValue: Ce(),
1091
+ RHFColorPicker: S("rhf-color"),
1092
+ RHFCheckbox: S("rhf-checkbox"),
1093
+ RHFHelperError: S("rhf-helper"),
1094
+ RHFSelect: S("rhf-select"),
1095
+ RHFTextField: S("rhf-field"),
1096
+ RHFNumberInput: S("rhf-number"),
1097
+ RHFRadioGroup: t.fn(({ name: c }) => /* @__PURE__ */ u("div", { "data-testid": `rhf-radio-group-${String(c ?? "")}` }, void 0, !1, {
1098
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1099
+ lineNumber: 285,
1100
+ columnNumber: 7
1101
+ }, this)),
1102
+ RHFCheckableList: t.fn(({ name: c }) => /* @__PURE__ */ u(
1103
+ "div",
1104
+ {
1105
+ "data-testid": `rhf-checkable-list-${String(c ?? "")}`,
1106
+ "data-name": String(c ?? "")
1107
+ },
1108
+ void 0,
1109
+ !1,
1110
+ {
1111
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/base/m4lBaseComponents.tsx",
1112
+ lineNumber: 288,
1113
+ columnNumber: 7
1114
+ },
1115
+ this
1116
+ )),
1117
+ Step: v("step"),
1118
+ Stepper: v("stepper"),
1119
+ StepperContent: v("stepper-content"),
1120
+ StepperFooter: v("stepper-footer"),
1121
+ StepperFooterLeftActions: v(
1122
+ "stepper-footer-left-actions"
1123
+ ),
1124
+ StepperFooterRightActions: v(
1125
+ "stepper-footer-right-actions"
1126
+ ),
1127
+ StepperNextButton: h("stepper-next"),
1128
+ StepperPrevButton: h("stepper-prev"),
1129
+ StepperSubmitButton: h("stepper-submit"),
1130
+ StepperCancelButton: Fe({
1131
+ testId: "stepper-cancel-button",
1132
+ handlerProp: "onClose",
1133
+ labelProp: "children"
1134
+ }),
1135
+ useFormReadyForUpdate: t.fn(() => !0),
1136
+ getStepsAndValidationSchema: t.fn(
1137
+ (c) => a ? a(c) : {
1138
+ steps: c.steps,
1139
+ validationSchema: c.validationSchema
1140
+ }
1141
+ ),
1142
+ ...o
1143
+ };
1144
+ }
1145
+ function ct({
1146
+ baseModule: e = {},
1147
+ moduleOverrides: o = {},
1148
+ submitRefGlobalKey: n = _
1149
+ } = {}) {
1150
+ return {
1151
+ ...U({ baseModule: e, submitRefGlobalKey: n }),
1152
+ SideBar: p("mock-side-bar"),
1153
+ AppBar: p("mock-app-bar"),
1154
+ ModalProvider: p("mock-modal-provider"),
1155
+ PopupsProvider: p("mock-popups-provider"),
1156
+ AreasProvider: p("mock-areas-provider"),
1157
+ Loadable: t.fn((r) => r),
1158
+ MFLoader: t.fn(
1159
+ ({
1160
+ moduleId: r,
1161
+ debugPort: s
1162
+ }) => /* @__PURE__ */ u(
1163
+ "div",
1164
+ {
1165
+ "data-testid": "mock-mf-loader",
1166
+ "data-module-id": r ?? "",
1167
+ "data-debug-port": `${s ?? ""}`
1168
+ },
1169
+ void 0,
1170
+ !1,
1171
+ {
1172
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppComponents.tsx",
1173
+ lineNumber: 51,
1174
+ columnNumber: 9
1175
+ },
1176
+ this
1177
+ )
1178
+ ),
1179
+ SplitLayout: t.fn(
1180
+ ({
1181
+ firstPart: r,
1182
+ secondPart: s
1183
+ }) => /* @__PURE__ */ u("div", { "data-testid": "split-layout", children: [
1184
+ r,
1185
+ s
1186
+ ] }, void 0, !0, {
1187
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppComponents.tsx",
1188
+ lineNumber: 66,
1189
+ columnNumber: 9
1190
+ }, this)
1191
+ ),
1192
+ WINDOW_SIZES: re,
1193
+ createDynamicMFStore: t.fn(
1194
+ ({
1195
+ dynamicMFParameters: r
1196
+ }) => ({
1197
+ dynamicMFParameters: r
1198
+ })
1199
+ ),
1200
+ getMFLoaderComponentsDictionary: t.fn(() => []),
1201
+ getLoadingErrorComponentsDictionary: t.fn(() => []),
1202
+ AreasAdmin: h("mock-areas-admin"),
1203
+ LanguagePopover: h("mock-language-popover"),
1204
+ AccountPopover: h("mock-account-popover"),
1205
+ HelmetPage: Ae(),
1206
+ useDataGridPersistence: t.fn(),
1207
+ // Shared export-datagrid hooks; export tests restore real impl via vi.importActual.
1208
+ useExportColumns: t.fn(),
1209
+ useVisibleColumnNames: t.fn(),
1210
+ useWatchTyped: t.fn(
1211
+ ({ name: r }) => r === "color" ? "#64748B" : !1
1212
+ ),
1213
+ RowKey: void 0,
1214
+ useWindowToolsMF: t.fn(() => ({
1215
+ getCookie: t.fn(),
1216
+ getWindowId: t.fn(() => "test-window-id"),
1217
+ setCookie: t.fn()
1218
+ })),
1219
+ useSizeContainer: t.fn(() => ({ containerWidth: 1200, containerHeight: 800 })),
1220
+ useDynamicFilterAndSort: t.fn(
1221
+ ({
1222
+ onChangeFilterSort: r,
1223
+ rightActions: s
1224
+ }) => ({
1225
+ leftActions: /* @__PURE__ */ u("div", { children: "LeftActions" }, void 0, !1, {
1226
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppComponents.tsx",
1227
+ lineNumber: 110,
1228
+ columnNumber: 22
1229
+ }, this),
1230
+ visibleCustomHeader: !1,
1231
+ customHeaderComponent: /* @__PURE__ */ u("div", { children: "CustomHeaderComponent" }, void 0, !1, {
1232
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppComponents.tsx",
1233
+ lineNumber: 112,
1234
+ columnNumber: 32
1235
+ }, this),
1236
+ rightActions: s,
1237
+ onChangeFilterSort: r
1238
+ })
1239
+ ),
1240
+ useModal: t.fn(),
1241
+ MFIsolationApp: v("mock-mf-isolation-app"),
1242
+ AreasViewer: h("mock-areas-viewer"),
1243
+ ...o
1244
+ };
1245
+ }
1246
+ function lt({
1247
+ dynamicMFParameters: e = { objectId: 99 }
1248
+ } = {}) {
1249
+ return {
1250
+ useDynamicMFParametersStore: t.fn(
1251
+ (o) => o({ dynamicMFParameters: e })
1252
+ ),
1253
+ FormContainer: t.fn(({ children: o }) => o),
1254
+ ActionsContainer: t.fn(({ children: o }) => o),
1255
+ ActionFormCancel: t.fn(() => null),
1256
+ ActionFormIntro: t.fn(() => null),
1257
+ RHFAutocompleteAsync: t.fn(() => null),
1258
+ RHFRadioGroup: t.fn(() => null)
1259
+ };
1260
+ }
1261
+ function ut({
1262
+ baseModule: e = {},
1263
+ baseStoreState: o,
1264
+ environmentData: n,
1265
+ hostToolsData: r,
1266
+ moduleLabel: s = "Test Module",
1267
+ getLabel: i = (m) => m,
1268
+ userPreferencesData: a,
1269
+ moduleOverrides: c = {},
1270
+ authState: l = {
1271
+ isAuthenticated: !1,
1272
+ isInitialized: !0
1273
+ },
1274
+ flagsStoreState: f
1275
+ } = {}) {
1276
+ const m = B({
1277
+ ...q,
1278
+ ...n
1279
+ }), k = r ?? H(), b = Q(
1280
+ a
1281
+ ), P = ee(a), j = o ?? {}, z = f ?? {
1282
+ flagsActions: {
1283
+ addFlag: t.fn()
1284
+ }
1285
+ }, K = l ? {
1286
+ isAuthenticated: l.isAuthenticated,
1287
+ isInitialized: l.isInitialized,
1288
+ user: l.user ?? null,
1289
+ login: l.login ?? t.fn(),
1290
+ logout: l.logout ?? t.fn(async () => {
1291
+ })
1292
+ } : {
1293
+ isAuthenticated: !1,
1294
+ isInitialized: !0,
1295
+ user: null,
1296
+ login: t.fn(),
1297
+ logout: t.fn(async () => {
1298
+ })
1299
+ };
1300
+ return {
1301
+ ...e,
1302
+ BaseProvider: t.fn(({ children: d }) => /* @__PURE__ */ u("div", { "data-testid": "base-provider", children: d }, void 0, !1, {
1303
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppCore.tsx",
1304
+ lineNumber: 78,
1305
+ columnNumber: 7
1306
+ }, this)),
1307
+ AuthProvider: p("auth-provider"),
1308
+ EnvironmentProvider: p("environment-provider"),
1309
+ FlagsProvider: p("flags-provider"),
1310
+ HostToolsProvider: p("host-tools-provider"),
1311
+ NetworkProvider: p("network-provider"),
1312
+ UserPreferencesProvider: p("user-preferences-provider"),
1313
+ useBaseStore: t.fn(
1314
+ (d) => d(j)
1315
+ ),
1316
+ useAuth: t.fn(() => K),
1317
+ DomainCountryProvider: p("domain-country-provider"),
1318
+ ModuleDictionaryProvider: p("module-dictionary-provider"),
1319
+ ModuleSkeletonProvider: p("module-skeleton-provider"),
1320
+ CommonFlags: {
1321
+ FLAG_DOMAIN_LOADED: "FLAG_DOMAIN_LOADED",
1322
+ FLAG_DICTIONARY_LOADED: "FLAG_DICTIONARY_LOADED",
1323
+ FLAG_PRIVILEGES_LOADED: "FLAG_PRIVILEGES_LOADED"
1324
+ },
1325
+ EmitEvents: {
1326
+ EMMIT_EVENT_HOST_EMERGE_WINDOW: "EMMIT_EVENT_HOST_EMERGE_WINDOW"
1327
+ },
1328
+ getPropertyByString: t.fn(
1329
+ (d, F, E) => {
1330
+ if (d == null)
1331
+ return E;
1332
+ try {
1333
+ return F.split(".").reduce(
1334
+ (Y, Z) => Y?.[Z],
1335
+ d
1336
+ ) ?? E;
1337
+ } catch {
1338
+ return E;
1339
+ }
1340
+ }
1341
+ ),
1342
+ useEnvironment: t.fn(() => m),
1343
+ useDomainCountry: t.fn(() => ({
1344
+ id: 1,
1345
+ currency: "USD",
1346
+ currency_decimal_digits: 2,
1347
+ decimal_symbol: ".",
1348
+ thousands_symbol: ","
1349
+ })),
1350
+ useFlagsPresent: t.fn().mockReturnValue(!0),
1351
+ useFlagsStore: t.fn(
1352
+ (d) => d(z)
1353
+ ),
1354
+ useHostTools: t.fn(() => k),
1355
+ useModuleDictionary: t.fn(() => ({
1356
+ getLabel: t.fn(i),
1357
+ getModuleLabel: t.fn(() => s)
1358
+ })),
1359
+ useModulePrivileges: t.fn(),
1360
+ useModuleSkeleton: t.fn(() => !1),
1361
+ useLocalStorage: t.fn(
1362
+ (d, F) => [F, t.fn()]
1363
+ ),
1364
+ useNetwork: t.fn(),
1365
+ DEFAULT_USER_PREFERENCES: te,
1366
+ normalizeUserPreferences: t.fn((d) => ({
1367
+ decimalSymbol: typeof d?.decimalSymbol == "string" ? d.decimalSymbol : b.decimalSymbol,
1368
+ thousandsSymbol: typeof d?.thousandsSymbol == "string" ? d.thousandsSymbol : b.thousandsSymbol,
1369
+ dateFormat: typeof d?.dateFormat == "string" ? d.dateFormat : typeof d?.dateFormat?.format == "string" ? (d?.dateFormat).format : b.dateFormat,
1370
+ timeFormat: typeof d?.timeFormat == "string" ? d.timeFormat : typeof d?.timeFormat?.format == "string" ? (d?.timeFormat).format : b.timeFormat,
1371
+ timeZone: d?.timeZone !== void 0 ? d.timeZone : b.timeZone,
1372
+ locale: typeof d?.locale == "string" ? d.locale : typeof d?.locale?.id == "string" ? (d?.locale).id : b.locale,
1373
+ magnitudesSystemId: typeof d?.magnitudesSystemId == "number" ? d.magnitudesSystemId : typeof d?.magnitudesSystem?.id == "number" ? (d?.magnitudesSystem).id : b.magnitudesSystemId,
1374
+ properties: Array.isArray(d?.properties) ? d.properties : b.properties,
1375
+ currency: typeof d?.currency == "string" ? d.currency : b.currency,
1376
+ currencyDecimalDigits: typeof d?.currencyDecimalDigits == "number" ? d.currencyDecimalDigits : b.currencyDecimalDigits
1377
+ })),
1378
+ useUserPreferences: t.fn(() => ({
1379
+ ...P,
1380
+ changeUserPreferences: t.fn(
1381
+ P.changeUserPreferences
1382
+ ),
1383
+ convertMagnitude: t.fn(
1384
+ P.convertMagnitude
1385
+ ),
1386
+ formatNumber: t.fn(
1387
+ P.formatNumber
1388
+ ),
1389
+ getMagnitudeProperty: t.fn(
1390
+ P.getMagnitudeProperty
1391
+ )
1392
+ })),
1393
+ voidFunction: t.fn(),
1394
+ ...c
1395
+ };
1396
+ }
1397
+ function dt({
1398
+ baseModule: e = {},
1399
+ moduleOverrides: o = {}
1400
+ } = {}) {
1401
+ return {
1402
+ ...e,
1403
+ getContrastTextColor: t.fn(() => "#000000"),
1404
+ useIsMobile: t.fn(() => !1),
1405
+ usePaginate: t.fn(() => ({
1406
+ pagerState: {
1407
+ page: 1,
1408
+ rowsPerPage: 10,
1409
+ totalRows: 0
1410
+ },
1411
+ rows: [],
1412
+ onPageChange: t.fn(),
1413
+ onRowsPerPageChange: t.fn(),
1414
+ Refresh: t.fn()
1415
+ })),
1416
+ useInfinitePaginate: t.fn(() => ({
1417
+ rows: [],
1418
+ setRows: t.fn(),
1419
+ totalRecords: 0,
1420
+ loading: !1,
1421
+ Refresh: t.fn(),
1422
+ clearRows: t.fn(),
1423
+ rowsPerPage: 25,
1424
+ infiniteScrollOptions: {
1425
+ hasMore: !1,
1426
+ isLoadingMore: !1,
1427
+ loadMoreError: !1,
1428
+ onLoadMore: t.fn(),
1429
+ resetKey: 0,
1430
+ totalRecords: 0,
1431
+ rowsPerPage: 25,
1432
+ onRowsPerPageChange: t.fn()
1433
+ }
1434
+ })),
1435
+ useRows: t.fn(() => ({
1436
+ rows: [],
1437
+ refresh: t.fn()
1438
+ })),
1439
+ getLocaleFromNetwork: t.fn(),
1440
+ useLocales: t.fn(() => ({
1441
+ currentLocale: {
1442
+ localeString: "en"
1443
+ }
1444
+ })),
1445
+ useThemeSettingsStore: t.fn(
1446
+ (n) => n({
1447
+ settingsActions: {
1448
+ handleOpen: t.fn()
1449
+ }
1450
+ })
1451
+ ),
1452
+ FormatterProvider: p("formatter-provider"),
1453
+ HostThemeProvider: p("host-theme-provider"),
1454
+ LocalesProvider: p("locales-provider"),
1455
+ ThemeSettingsProvider: p("theme-settings-provider"),
1456
+ DeviceTypeProvider: p("device-type-provider"),
1457
+ ...o
1458
+ };
1459
+ }
1460
+ function ft({
1461
+ baseModule: e = {},
1462
+ moduleOverrides: o = {}
1463
+ } = {}) {
1464
+ return {
1465
+ ...e,
1466
+ EnvironmentType: {
1467
+ DEVELOPMENT: "development",
1468
+ PRODUCTION: "production",
1469
+ STAGING: "staging"
1470
+ },
1471
+ MasterDetailLayout: t.fn(({ children: n, ...r }) => /* @__PURE__ */ u("div", { "data-testid": "master-detail-layout", ...r, children: n }, void 0, !1, {
1472
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppLayouts.tsx",
1473
+ lineNumber: 32,
1474
+ columnNumber: 7
1475
+ }, this)),
1476
+ MFHostApp: t.fn(({ children: n }) => n),
1477
+ ModuleDetailTabs: t.fn(
1478
+ ({
1479
+ tabs: n
1480
+ }) => /* @__PURE__ */ u("div", { children: n.map((r) => /* @__PURE__ */ u("div", { children: typeof r.tabContent == "function" ? r.tabContent() : r.tabContent }, r.value, !1, {
1481
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppLayouts.tsx",
1482
+ lineNumber: 48,
1483
+ columnNumber: 13
1484
+ }, this)) }, void 0, !1, {
1485
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppLayouts.tsx",
1486
+ lineNumber: 46,
1487
+ columnNumber: 9
1488
+ }, this)
1489
+ ),
1490
+ ModuleLayout: t.fn(({ children: n }) => /* @__PURE__ */ u("div", { "data-testid": "module-layout", children: n }, void 0, !1, {
1491
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppLayouts.tsx",
1492
+ lineNumber: 58,
1493
+ columnNumber: 7
1494
+ }, this)),
1495
+ MFNoAuthApp: p("mock-mf-no-auth-app"),
1496
+ NoAuthModuleLayout: t.fn(() => /* @__PURE__ */ u("div", { "data-testid": "no-auth-layout" }, void 0, !1, {
1497
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/app/m4lAppLayouts.tsx",
1498
+ lineNumber: 61,
1499
+ columnNumber: 37
1500
+ }, this)),
1501
+ createAppMF: t.fn(),
1502
+ getMasterDetailLayoutComponentsDictionary: t.fn(() => []),
1503
+ useModule: t.fn(),
1504
+ useMasterDetail: t.fn(() => ({
1505
+ onChangeMasterSelection: t.fn(),
1506
+ onClickViewDetail: t.fn()
1507
+ })),
1508
+ useDynamicAccordions: t.fn(() => ({
1509
+ configDynamicAccordions: t.fn(() => ({
1510
+ detailInventory: t.fn(() => ({}))
1511
+ }))
1512
+ })),
1513
+ useNetworkActionConfirm: t.fn(() => ({
1514
+ onAction: t.fn()
1515
+ })),
1516
+ ...o
1517
+ };
1518
+ }
1519
+ function pt({
1520
+ createComponentFieldImplementation: e
1521
+ } = {}) {
1522
+ return {
1523
+ useDynamicPaperForm: t.fn(),
1524
+ useFormAddEdit: t.fn(),
1525
+ createComponentField: t.fn(
1526
+ e ?? ((o) => o)
1527
+ )
1528
+ };
1529
+ }
1530
+ function mt({
1531
+ baseModule: e = {},
1532
+ domEventData: o,
1533
+ moduleOverrides: n = {},
1534
+ scaleControlFactory: r
1535
+ } = {}) {
1536
+ const s = e, i = s.default ?? s, a = i.DomEvent ?? {}, c = i.control ?? {};
1537
+ return {
1538
+ ...s,
1539
+ default: {
1540
+ ...i,
1541
+ DomEvent: {
1542
+ ...a,
1543
+ disableClickPropagation: o?.disableClickPropagation ?? t.fn(),
1544
+ disableScrollPropagation: o?.disableScrollPropagation ?? t.fn()
1545
+ },
1546
+ control: {
1547
+ ...c,
1548
+ scale: r !== void 0 ? t.fn(() => r()) : c.scale ?? t.fn()
1549
+ }
1550
+ },
1551
+ ...n
1552
+ };
1553
+ }
1554
+ function gt({
1555
+ baseModule: e = {},
1556
+ dataGridPersistenceData: o,
1557
+ dynamicFilterAndSortData: n,
1558
+ modalData: r,
1559
+ moduleOverrides: s = {},
1560
+ popupsStoreData: i,
1561
+ windowToolsData: a
1562
+ } = {}) {
1563
+ const c = o ?? {
1564
+ defaultUserColumns: void 0,
1565
+ onChangeUserColumns: t.fn()
1566
+ }, l = n ?? {
1567
+ customHeaderComponent: null,
1568
+ externalFilterSettings: void 0,
1569
+ externalSortSettings: void 0,
1570
+ leftActions: null,
1571
+ rightActions: null,
1572
+ visibleCustomHeader: !1
1573
+ }, f = r ?? {
1574
+ closeModal: t.fn(),
1575
+ openModal: t.fn()
1576
+ }, m = i ?? {
1577
+ popupActions: {
1578
+ close: t.fn(),
1579
+ hide: t.fn(),
1580
+ show: t.fn()
1581
+ },
1582
+ popupsActions: {
1583
+ addPopup: t.fn()
1584
+ }
1585
+ }, k = a ?? {
1586
+ getCookie: t.fn(),
1587
+ getWindowId: t.fn(() => "test-window-id"),
1588
+ setCookie: t.fn(),
1589
+ startProgress: t.fn(),
1590
+ stopProgress: t.fn()
1591
+ };
1592
+ return {
1593
+ ...U({ baseModule: e }),
1594
+ PopupsProvider: v("mock-popups-provider"),
1595
+ useDataGridPersistence: t.fn(() => c),
1596
+ useDynamicFilterAndSort: t.fn(() => l),
1597
+ useModal: t.fn(() => f),
1598
+ usePopupsStore: t.fn(
1599
+ (b) => b(m)
1600
+ ),
1601
+ useWatchTyped: t.fn(() => {
1602
+ }),
1603
+ useWindowToolsMF: t.fn(() => k),
1604
+ ...s
1605
+ };
1606
+ }
1607
+ function yt({
1608
+ baseModule: e = {},
1609
+ environmentData: o,
1610
+ getLabel: n = (l, f) => f ? `label:${l}:${f}` : `label:${l}`,
1611
+ hostToolsData: r,
1612
+ moduleOverrides: s = {},
1613
+ moduleLabel: i = "Test Module",
1614
+ modulePrivilegesData: a,
1615
+ networkData: c
1616
+ } = {}) {
1617
+ const l = B({
1618
+ ...ne,
1619
+ ...o
1620
+ }), f = r ?? H(), m = a ?? {
1621
+ hasPrivilege: t.fn(() => !0)
1622
+ }, k = c ?? {
1623
+ networkOperation: t.fn()
1624
+ };
1625
+ return {
1626
+ ...e,
1627
+ useLocalStorageWithListener: t.fn(
1628
+ (b, P) => [P, t.fn()]
1629
+ ),
1630
+ useEnvironment: t.fn(() => l),
1631
+ useHostTools: t.fn(() => f),
1632
+ useModuleDictionary: t.fn(() => ({
1633
+ getLabel: t.fn(n),
1634
+ getModuleLabel: t.fn(() => i)
1635
+ })),
1636
+ useModulePrivileges: t.fn(() => m),
1637
+ useModuleSkeleton: t.fn(() => !1),
1638
+ useNetwork: t.fn(() => k),
1639
+ ...s
1640
+ };
1641
+ }
1642
+ function vt({
1643
+ baseModule: e = {},
1644
+ mapStoreState: o,
1645
+ moduleOverrides: n = {}
1646
+ } = {}) {
1647
+ const r = {
1648
+ ...Le(),
1649
+ ...o
1650
+ };
1651
+ return {
1652
+ ...e,
1653
+ LAT_LON_FIXED_DIGITS: 6,
1654
+ createPixelPathDecimationFilter: t.fn(() => t.fn()),
1655
+ courseToCartesianAngle: t.fn((s) => s),
1656
+ getCourseDirection: t.fn(
1657
+ (s, i, a = 5) => i >= 0 + a && i < 90 - a ? s("LABEL_NORTH_EAST") : i >= 90 - a && i < 90 + a ? s("LABEL_NORTH") : i >= 90 + a && i < 180 - a ? s("LABEL_NORTH_WEST") : i >= 180 - a && i < 180 + a ? s("LABEL_WEST") : i >= 180 + a && i < 270 - a ? s("LABEL_SOUTH_WEST") : i >= 270 - a && i < 270 + a ? s("LABEL_SOUTH") : i >= 270 + a && i < 360 - a ? s("LABEL_SOUTH_EAST") : s("LABEL_EAST")
1658
+ ),
1659
+ IndicatorValueAndMagnitude: t.fn(
1660
+ ({
1661
+ value: s,
1662
+ magnitude: i,
1663
+ minWidth: a
1664
+ }) => /* @__PURE__ */ u(
1665
+ "div",
1666
+ {
1667
+ "data-testid": "mock-indicator-value-and-magnitude",
1668
+ "data-value": String(s),
1669
+ "data-magnitude": i ?? "",
1670
+ "data-min-width": a ?? ""
1671
+ },
1672
+ void 0,
1673
+ !1,
1674
+ {
1675
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageGclick.tsx",
1676
+ lineNumber: 74,
1677
+ columnNumber: 9
1678
+ },
1679
+ this
1680
+ )
1681
+ ),
1682
+ getMapComponentsDictionary: t.fn(() => []),
1683
+ getDeviceComponentsDictionary: t.fn(() => []),
1684
+ getCourseFormatterComponentsDictionary: t.fn(() => []),
1685
+ getIndicatorCSQComponentsDictionary: t.fn(() => []),
1686
+ getGpsMapToolsComponentsDictionary: t.fn(() => []),
1687
+ getDevicesPickerComponentsDictionary: t.fn(() => []),
1688
+ getCheckableDevicesPickerComponentsDictionary: t.fn(() => []),
1689
+ /**
1690
+ * Catalog of components that can be rendered in place of
1691
+ * `RHFAutocompleteAsync`. A suite that builds filter fields only needs the
1692
+ * entry to resolve; the rendered picker itself is a placeholder.
1693
+ */
1694
+ RHF_AUTOCOMPLETE_ASYNC_RENDER_AS_REGISTRY: {
1695
+ devices: S("rhf-devices-picker")
1696
+ },
1697
+ /**
1698
+ * Device label contract mirrored from `@m4l/gclick`: alias first, name
1699
+ * when there is none.
1700
+ */
1701
+ resolveDeviceTitle: t.fn(
1702
+ (s) => s?.alias?.trim() || s?.name?.trim() || ""
1703
+ ),
1704
+ GpsMap: h("mock-gps-map", "GpsMap"),
1705
+ IndicatorValueStatus: h(
1706
+ "mock-indicator-value-status",
1707
+ "IndicatorValueStatus"
1708
+ ),
1709
+ MapProvider: t.fn(({ children: s }) => /* @__PURE__ */ u("div", { "data-testid": "map-provider", children: s }, void 0, !1, {
1710
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageGclick.tsx",
1711
+ lineNumber: 111,
1712
+ columnNumber: 7
1713
+ }, this)),
1714
+ getHdopPresentation: t.fn(
1715
+ ({ hdop: s }) => s < 0 ? { precisionMeters: void 0, status: "UNKNOWN", color: "warning" } : s === 0 ? { precisionMeters: 0, status: "EXCELLENT", color: "success" } : s < 3 ? { precisionMeters: 2.5, status: "GOOD", color: "primary" } : { precisionMeters: 10, status: "POOR", color: "error" }
1716
+ ),
1717
+ useDeviceStatus: t.fn(() => ({
1718
+ label: "Test status",
1719
+ palletColor: "primary",
1720
+ iconKey: "online"
1721
+ })),
1722
+ useMapStore: t.fn(
1723
+ (s) => s(r)
1724
+ ),
1725
+ ...n
1726
+ };
1727
+ }
1728
+ const Re = "#1E96DC", Ve = /* @__PURE__ */ new Set(["state", "updatedAt", "value"]);
1729
+ var G = /* @__PURE__ */ ((e) => (e[e.off = 0] = "off", e[e.moving = 1] = "moving", e[e.stopped = 2] = "stopped", e[e.stoppedRalenti = 3] = "stoppedRalenti", e[e.stoppedExcesiveRalenti = 4] = "stoppedExcesiveRalenti", e[e.towing = 5] = "towing", e[e.powerSaving = 6] = "powerSaving", e[e.maxSpeed = 7] = "maxSpeed", e[e.notDetectable = 250] = "notDetectable", e))(G || {}), W = /* @__PURE__ */ ((e) => (e[e.reliable = 0] = "reliable", e[e.acceptable = 1] = "acceptable", e[e.noSignal = 2] = "noSignal", e))(W || {});
1730
+ function D(e) {
1731
+ if (typeof e != "object" || e === null || Array.isArray(e))
1732
+ return !1;
1733
+ const o = Object.getPrototypeOf(e);
1734
+ return o === Object.prototype || o === null;
1735
+ }
1736
+ function $(e) {
1737
+ return D(e) ? Object.keys(e).some((o) => Ve.has(o)) : !1;
1738
+ }
1739
+ function $e(e, o) {
1740
+ const n = e.updatedAt, r = o.updatedAt;
1741
+ if (typeof n != "string" || typeof r != "string")
1742
+ return !1;
1743
+ const s = new Date(n).getTime(), i = new Date(r).getTime();
1744
+ return !Number.isFinite(s) || !Number.isFinite(i) ? !1 : i < s;
1745
+ }
1746
+ function Be(e, o) {
1747
+ try {
1748
+ return e == null ? o : typeof e == "object" ? e?.value ?? o : e;
1749
+ } catch {
1750
+ return o;
1751
+ }
1752
+ }
1753
+ function He(e, o = (/* @__PURE__ */ new Date()).toISOString()) {
1754
+ try {
1755
+ if (typeof e == "object")
1756
+ return e?.updatedAt ?? o;
1757
+ } catch {
1758
+ return o;
1759
+ }
1760
+ return o;
1761
+ }
1762
+ function J(e, o) {
1763
+ if (o !== void 0) {
1764
+ if ($(e) && $(o))
1765
+ return $e(e, o) ? { ...e } : {
1766
+ ...e,
1767
+ ...o
1768
+ };
1769
+ if (Array.isArray(o))
1770
+ return o;
1771
+ if (D(e) && D(o)) {
1772
+ let n = o, r = !1;
1773
+ return Object.entries(o).forEach(([s, i]) => {
1774
+ const a = J(
1775
+ e[s],
1776
+ i
1777
+ );
1778
+ a === i && a !== void 0 || (r || (n = { ...o }, r = !0), a === void 0 ? delete n[s] : n[s] = a);
1779
+ }), n;
1780
+ }
1781
+ return o;
1782
+ }
1783
+ }
1784
+ function qe(e, o) {
1785
+ const n = J(
1786
+ e,
1787
+ o
1788
+ );
1789
+ return D(n) ? n : o;
1790
+ }
1791
+ function bt({
1792
+ baseModule: e = {},
1793
+ moduleOverrides: o = {},
1794
+ surface: n = "root"
1795
+ } = {}) {
1796
+ const r = {
1797
+ BASE_SVG_COLOR: Re,
1798
+ GNSSEnumMotionStatus: G,
1799
+ GNSSEnumSignal: W
1800
+ }, s = {
1801
+ getVptValueWithGuard: t.fn(Be),
1802
+ getVptUpdatedAtWithGuard: t.fn(He),
1803
+ mergeDevicePayloadWithUpdatedAtGuard: t.fn(
1804
+ qe
1805
+ )
1806
+ };
1807
+ return {
1808
+ ...e,
1809
+ ...n === "payload" ? s : r,
1810
+ ...o
1811
+ };
1812
+ }
1813
+ function ht({
1814
+ baseModule: e = {},
1815
+ moduleOverrides: o = {}
1816
+ } = {}) {
1817
+ return {
1818
+ ...e,
1819
+ getContrastTextColor: t.fn(() => "#000000"),
1820
+ useIsMobile: t.fn(() => !1),
1821
+ usePaginate: t.fn(() => ({
1822
+ pagerState: {
1823
+ page: 1,
1824
+ rowsPerPage: 10,
1825
+ totalRecords: 0
1826
+ },
1827
+ rows: [],
1828
+ onPageChange: t.fn(),
1829
+ onRowsPerPageChange: t.fn(),
1830
+ Refresh: t.fn()
1831
+ })),
1832
+ useRows: t.fn(() => ({
1833
+ rows: [],
1834
+ refresh: t.fn()
1835
+ })),
1836
+ ...o
1837
+ };
1838
+ }
1839
+ function kt({
1840
+ baseModule: e = {},
1841
+ moduleOverrides: o = {}
1842
+ } = {}) {
1843
+ return {
1844
+ ...e,
1845
+ DynamicTabs: h("dynamic-tabs"),
1846
+ MasterDetailLayout: v(
1847
+ "master-detail-layout"
1848
+ ),
1849
+ ModuleDetailTabs: t.fn(
1850
+ ({
1851
+ tabs: n
1852
+ }) => /* @__PURE__ */ u("div", { "data-testid": "module-detail-tabs", children: n?.map((r) => /* @__PURE__ */ u("div", { children: typeof r.tabContent == "function" ? r.tabContent() : r.tabContent }, r.value, !1, {
1853
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageLayouts.tsx",
1854
+ lineNumber: 42,
1855
+ columnNumber: 13
1856
+ }, this)) }, void 0, !1, {
1857
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/packages/m4lPackageLayouts.tsx",
1858
+ lineNumber: 40,
1859
+ columnNumber: 9
1860
+ }, this)
1861
+ ),
1862
+ ModuleLayout: v("module-layout"),
1863
+ useFormAddEdit: t.fn(() => ({
1864
+ formValues: {},
1865
+ statusLoad: "idle"
1866
+ })),
1867
+ useMasterDetail: t.fn(() => ({
1868
+ onChangeMasterSelection: t.fn(),
1869
+ onClickViewDetail: t.fn(),
1870
+ refreshMaster: t.fn(),
1871
+ setRefreshMaster: t.fn()
1872
+ })),
1873
+ useModule: t.fn(() => ({
1874
+ setDynamicActions: t.fn()
1875
+ })),
1876
+ useNetworkActionConfirm: t.fn(() => ({
1877
+ onAction: t.fn()
1878
+ })),
1879
+ MFHostApp: t.fn(({ children: n }) => n),
1880
+ ...o
1881
+ };
1882
+ }
1883
+ function Nt({
1884
+ baseModule: e = {},
1885
+ moduleOverrides: o = {},
1886
+ useFormContextData: n = {}
1887
+ } = {}) {
1888
+ return {
1889
+ ...e,
1890
+ useFormContext: t.fn(() => ({
1891
+ control: {},
1892
+ getValues: t.fn(),
1893
+ reset: t.fn(),
1894
+ setValue: t.fn(),
1895
+ trigger: t.fn(),
1896
+ watch: t.fn(),
1897
+ formState: {
1898
+ dirtyFields: {},
1899
+ errors: {}
1900
+ },
1901
+ ...n
1902
+ })),
1903
+ ...o
1904
+ };
1905
+ }
1906
+ function xt() {
1907
+ return {
1908
+ Resizable: t.fn(({ children: e }) => /* @__PURE__ */ u("div", { "data-testid": "resizable", children: e }, void 0, !1, {
1909
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reResizable.tsx",
1910
+ lineNumber: 11,
1911
+ columnNumber: 7
1912
+ }, this))
1913
+ };
1914
+ }
1915
+ function Pt({
1916
+ baseModule: e = {},
1917
+ moduleOverrides: o = {},
1918
+ useMapData: n,
1919
+ useMapImplementation: r
1920
+ } = {}) {
1921
+ return {
1922
+ ...e,
1923
+ Circle: t.fn(
1924
+ ({
1925
+ center: s,
1926
+ radius: i,
1927
+ eventHandlers: a,
1928
+ ...c
1929
+ }) => /* @__PURE__ */ u(
1930
+ "div",
1931
+ {
1932
+ "data-testid": "circle",
1933
+ "data-center": JSON.stringify(s ?? null),
1934
+ "data-radius": String(i ?? ""),
1935
+ "data-event-handlers": JSON.stringify(a ?? {}),
1936
+ "data-props": JSON.stringify(c)
1937
+ },
1938
+ void 0,
1939
+ !1,
1940
+ {
1941
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
1942
+ lineNumber: 31,
1943
+ columnNumber: 9
1944
+ },
1945
+ this
1946
+ )
1947
+ ),
1948
+ GeoJSON: t.fn(
1949
+ ({
1950
+ data: s,
1951
+ eventHandlers: i,
1952
+ ...a
1953
+ }) => /* @__PURE__ */ u(
1954
+ "div",
1955
+ {
1956
+ "data-testid": "geojson",
1957
+ "data-geojson": JSON.stringify(s ?? null),
1958
+ "data-event-handlers": JSON.stringify(i ?? {}),
1959
+ "data-props": JSON.stringify(a)
1960
+ },
1961
+ void 0,
1962
+ !1,
1963
+ {
1964
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
1965
+ lineNumber: 46,
1966
+ columnNumber: 9
1967
+ },
1968
+ this
1969
+ )
1970
+ ),
1971
+ LayerGroup: t.fn(({ children: s }) => /* @__PURE__ */ u("div", { "data-testid": "layer-group", children: s }, void 0, !1, {
1972
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
1973
+ lineNumber: 55,
1974
+ columnNumber: 7
1975
+ }, this)),
1976
+ Polyline: t.fn(
1977
+ ({
1978
+ positions: s,
1979
+ eventHandlers: i,
1980
+ ...a
1981
+ }) => /* @__PURE__ */ u(
1982
+ "div",
1983
+ {
1984
+ "data-testid": "polyline",
1985
+ "data-positions": JSON.stringify(s ?? []),
1986
+ "data-event-handlers": JSON.stringify(i ?? {}),
1987
+ "data-props": JSON.stringify(a)
1988
+ },
1989
+ void 0,
1990
+ !1,
1991
+ {
1992
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
1993
+ lineNumber: 63,
1994
+ columnNumber: 9
1995
+ },
1996
+ this
1997
+ )
1998
+ ),
1999
+ Polygon: t.fn(
2000
+ ({
2001
+ positions: s,
2002
+ eventHandlers: i,
2003
+ ...a
2004
+ }) => /* @__PURE__ */ u(
2005
+ "div",
2006
+ {
2007
+ "data-testid": "polygon",
2008
+ "data-positions": JSON.stringify(s ?? []),
2009
+ "data-event-handlers": JSON.stringify(i ?? {}),
2010
+ "data-props": JSON.stringify(a)
2011
+ },
2012
+ void 0,
2013
+ !1,
2014
+ {
2015
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
2016
+ lineNumber: 77,
2017
+ columnNumber: 9
2018
+ },
2019
+ this
2020
+ )
2021
+ ),
2022
+ Marker: t.fn(
2023
+ ({
2024
+ children: s,
2025
+ position: i,
2026
+ icon: a,
2027
+ eventHandlers: c,
2028
+ ...l
2029
+ }) => /* @__PURE__ */ u(
2030
+ "div",
2031
+ {
2032
+ "data-testid": "marker",
2033
+ "data-position": JSON.stringify(i),
2034
+ "data-icon": JSON.stringify(a),
2035
+ "data-event-handlers": JSON.stringify(c ?? {}),
2036
+ "data-props": JSON.stringify(l),
2037
+ children: s
2038
+ },
2039
+ void 0,
2040
+ !1,
2041
+ {
2042
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
2043
+ lineNumber: 98,
2044
+ columnNumber: 9
2045
+ },
2046
+ this
2047
+ )
2048
+ ),
2049
+ Popup: t.fn(({ children: s }) => /* @__PURE__ */ u("div", { "data-testid": "popup", children: s }, void 0, !1, {
2050
+ fileName: "/home/bruce/codex_proyects/guardian2/nx-gclick-monorepo/packages/testing/vitest/src/factories/reactLeaflet.tsx",
2051
+ lineNumber: 110,
2052
+ columnNumber: 7
2053
+ }, this)),
2054
+ useMap: t.fn(
2055
+ () => r ? r() : n
2056
+ ),
2057
+ ...o
2058
+ };
2059
+ }
2060
+ export {
2061
+ V as A,
2062
+ ot as B,
2063
+ nt as C,
2064
+ _ as D,
2065
+ it as E,
2066
+ st as F,
2067
+ at as G,
2068
+ ct as H,
2069
+ lt as I,
2070
+ ut as J,
2071
+ dt as K,
2072
+ ft as L,
2073
+ re as M,
2074
+ pt as N,
2075
+ U as O,
2076
+ mt as P,
2077
+ we as Q,
2078
+ gt as R,
2079
+ yt as S,
2080
+ vt as T,
2081
+ bt as U,
2082
+ ht as V,
2083
+ kt as W,
2084
+ Nt as X,
2085
+ xt as Y,
2086
+ Pt as Z,
2087
+ oe as a,
2088
+ ne as b,
2089
+ ie as c,
2090
+ q as d,
2091
+ Xe as e,
2092
+ Qe as f,
2093
+ Ze as g,
2094
+ p as h,
2095
+ h as i,
2096
+ Se as j,
2097
+ v as k,
2098
+ Ae as l,
2099
+ S as m,
2100
+ Ce as n,
2101
+ Me as o,
2102
+ Te as p,
2103
+ De as q,
2104
+ _e as r,
2105
+ Fe as s,
2106
+ et as t,
2107
+ A as u,
2108
+ tt as v,
2109
+ Ee as w,
2110
+ Oe as x,
2111
+ rt as y,
2112
+ Le as z
2113
+ };