@grapadigital/shared-app-modules 0.0.197 → 0.0.199

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.
@@ -1,4503 +0,0 @@
1
- import { jsx as d, jsxs as O } from "react/jsx-runtime";
2
- import { aZ as Tn, c as ne, L as In, bg as Mn, B as ye, ac as Be, ae as xe, af as Fe, ag as J, bh as Ye, ah as Re, ai as Te, bi as Ie, bj as jn, I as Nn, d as Ln, g as qn, f as kn, h as _n, j as Hn, aY as Un, T as zn, C as Yn } from "./switch.D4GUsewk.js";
3
- import * as Wn from "react";
4
- import k, { createContext as an, Component as Qn, createElement as Tt, forwardRef as G, useState as Z, useEffect as Ee, useContext as Gn, useMemo as Vn, Children as He } from "react";
5
- import { P as be, k as Ce, l as Se, q as ut, r as Ne, s as Le, t as Jn, F as se, C as Zn, b as de, c as fe, h as on } from "./popover.C3VFqVxV.js";
6
- import { useQuery as We } from "@tanstack/react-query";
7
- import "date-fns";
8
- import { c as Qe, u as Ge, a as Ve } from "./axios.lib.DebbmKD8.js";
9
- import "./shared-app-modules.provider.DRJ7n4Cj.js";
10
- import "axios";
11
- import Xn from "react-dom";
12
- import "react-hook-form";
13
- const Kn = [
14
- ["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
15
- ["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
16
- ], Me = Tn("chevrons-up-down", Kn);
17
- function sn(e) {
18
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
- }
20
- const $n = an(null), ct = {
21
- didCatch: !1,
22
- error: null
23
- };
24
- class no extends Qn {
25
- constructor(t) {
26
- super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = ct;
27
- }
28
- static getDerivedStateFromError(t) {
29
- return { didCatch: !0, error: t };
30
- }
31
- resetErrorBoundary(...t) {
32
- const { error: r } = this.state;
33
- r !== null && (this.props.onReset?.({
34
- args: t,
35
- reason: "imperative-api"
36
- }), this.setState(ct));
37
- }
38
- componentDidCatch(t, r) {
39
- this.props.onError?.(t, r);
40
- }
41
- componentDidUpdate(t, r) {
42
- const { didCatch: A } = this.state, { resetKeys: n } = this.props;
43
- A && r.error !== null && er(t.resetKeys, n) && (this.props.onReset?.({
44
- next: n,
45
- prev: t.resetKeys,
46
- reason: "keys"
47
- }), this.setState(ct));
48
- }
49
- render() {
50
- const { children: t, fallbackRender: r, FallbackComponent: A, fallback: n } = this.props, { didCatch: a, error: o } = this.state;
51
- let i = t;
52
- if (a) {
53
- const s = {
54
- error: o,
55
- resetErrorBoundary: this.resetErrorBoundary
56
- };
57
- if (typeof r == "function")
58
- i = r(s);
59
- else if (A)
60
- i = Tt(A, s);
61
- else if (n !== void 0)
62
- i = n;
63
- else
64
- throw o;
65
- }
66
- return Tt(
67
- $n.Provider,
68
- {
69
- value: {
70
- didCatch: a,
71
- error: o,
72
- resetErrorBoundary: this.resetErrorBoundary
73
- }
74
- },
75
- i
76
- );
77
- }
78
- }
79
- function er(e = [], t = []) {
80
- return e.length !== t.length || e.some((r, A) => !Object.is(r, t[A]));
81
- }
82
- const tr = G(({ className: e, ...t }, r) => /* @__PURE__ */ d(
83
- "div",
84
- {
85
- ref: r,
86
- className: ne(
87
- "flex gap-3 justify-between sm:items-center flex-col sm:flex-row",
88
- e
89
- ),
90
- ...t
91
- }
92
- ));
93
- tr.displayName = "PageHeader";
94
- const nr = G(({ className: e, ...t }, r) => /* @__PURE__ */ d(
95
- "div",
96
- {
97
- ref: r,
98
- className: ne("flex gap-2 items-center", e),
99
- ...t
100
- }
101
- ));
102
- nr.displayName = "PageHeaderActions";
103
- const rr = G(({ className: e, ...t }, r) => /* @__PURE__ */ d("div", { ref: r, className: ne("space-y-1", e), ...t }));
104
- rr.displayName = "PageHeaderContent";
105
- const Ar = G(({ className: e, ...t }, r) => /* @__PURE__ */ d(
106
- "div",
107
- {
108
- ref: r,
109
- className: ne("text-muted-foreground", e),
110
- ...t
111
- }
112
- ));
113
- Ar.displayName = "PageHeaderDescription";
114
- const ar = G(({ className: e, ...t }, r) => /* @__PURE__ */ d(
115
- "div",
116
- {
117
- ref: r,
118
- className: ne("text-xl md:text-2xl font-bold", e),
119
- ...t
120
- }
121
- ));
122
- ar.displayName = "PageHeaderTitle";
123
- const un = Wn.forwardRef(({ asterisk: e, children: t, ...r }, A) => /* @__PURE__ */ d(In, { ref: A, ...r, children: /* @__PURE__ */ O("span", { className: "inline-flex gap-0.5", children: [
124
- t,
125
- " ",
126
- e && /* @__PURE__ */ d("span", { className: "text-red-500", children: "*" })
127
- ] }) }));
128
- un.displayName = Mn.displayName;
129
- function pe({
130
- className: e,
131
- ...t
132
- }) {
133
- return /* @__PURE__ */ d(
134
- un,
135
- {
136
- "data-slot": "field-label",
137
- className: ne(
138
- "group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50",
139
- "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4",
140
- "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10",
141
- e
142
- ),
143
- ...t
144
- }
145
- );
146
- }
147
- var lt = {}, dt = {}, Xe = { exports: {} }, It;
148
- function or() {
149
- if (It) return Xe.exports;
150
- It = 1;
151
- var e = String, t = function() {
152
- return { isColorSupported: !1, reset: e, bold: e, dim: e, italic: e, underline: e, inverse: e, hidden: e, strikethrough: e, black: e, red: e, green: e, yellow: e, blue: e, magenta: e, cyan: e, white: e, gray: e, bgBlack: e, bgRed: e, bgGreen: e, bgYellow: e, bgBlue: e, bgMagenta: e, bgCyan: e, bgWhite: e, blackBright: e, redBright: e, greenBright: e, yellowBright: e, blueBright: e, magentaBright: e, cyanBright: e, whiteBright: e, bgBlackBright: e, bgRedBright: e, bgGreenBright: e, bgYellowBright: e, bgBlueBright: e, bgMagentaBright: e, bgCyanBright: e, bgWhiteBright: e };
153
- };
154
- return Xe.exports = t(), Xe.exports.createColors = t, Xe.exports;
155
- }
156
- var Mt;
157
- function ir() {
158
- return Mt || (Mt = 1, (function(e) {
159
- Object.defineProperty(e, "__esModule", {
160
- value: !0
161
- });
162
- function t(s, l) {
163
- for (var c in l) Object.defineProperty(s, c, {
164
- enumerable: !0,
165
- get: l[c]
166
- });
167
- }
168
- t(e, {
169
- dim: function() {
170
- return o;
171
- },
172
- default: function() {
173
- return i;
174
- }
175
- });
176
- const r = /* @__PURE__ */ A(/* @__PURE__ */ or());
177
- function A(s) {
178
- return s && s.__esModule ? s : {
179
- default: s
180
- };
181
- }
182
- let n = /* @__PURE__ */ new Set();
183
- function a(s, l, c) {
184
- typeof process < "u" && process.env.JEST_WORKER_ID || c && n.has(c) || (c && n.add(c), console.warn(""), l.forEach((u) => console.warn(s, "-", u)));
185
- }
186
- function o(s) {
187
- return r.default.dim(s);
188
- }
189
- const i = {
190
- info(s, l) {
191
- a(r.default.bold(r.default.cyan("info")), ...Array.isArray(s) ? [
192
- s
193
- ] : [
194
- l,
195
- s
196
- ]);
197
- },
198
- warn(s, l) {
199
- a(r.default.bold(r.default.yellow("warn")), ...Array.isArray(s) ? [
200
- s
201
- ] : [
202
- l,
203
- s
204
- ]);
205
- },
206
- risk(s, l) {
207
- a(r.default.bold(r.default.magenta("risk")), ...Array.isArray(s) ? [
208
- s
209
- ] : [
210
- l,
211
- s
212
- ]);
213
- }
214
- };
215
- })(dt)), dt;
216
- }
217
- var jt;
218
- function sr() {
219
- return jt || (jt = 1, (function(e) {
220
- Object.defineProperty(e, "__esModule", {
221
- value: !0
222
- }), Object.defineProperty(e, "default", {
223
- enumerable: !0,
224
- get: function() {
225
- return n;
226
- }
227
- });
228
- const t = /* @__PURE__ */ r(ir());
229
- function r(a) {
230
- return a && a.__esModule ? a : {
231
- default: a
232
- };
233
- }
234
- function A({ version: a, from: o, to: i }) {
235
- t.default.warn(`${o}-color-renamed`, [
236
- `As of Tailwind CSS ${a}, \`${o}\` has been renamed to \`${i}\`.`,
237
- "Update your configuration file to silence this warning."
238
- ]);
239
- }
240
- const n = {
241
- inherit: "inherit",
242
- current: "currentColor",
243
- transparent: "transparent",
244
- black: "#000",
245
- white: "#fff",
246
- slate: {
247
- 50: "#f8fafc",
248
- 100: "#f1f5f9",
249
- 200: "#e2e8f0",
250
- 300: "#cbd5e1",
251
- 400: "#94a3b8",
252
- 500: "#64748b",
253
- 600: "#475569",
254
- 700: "#334155",
255
- 800: "#1e293b",
256
- 900: "#0f172a",
257
- 950: "#020617"
258
- },
259
- gray: {
260
- 50: "#f9fafb",
261
- 100: "#f3f4f6",
262
- 200: "#e5e7eb",
263
- 300: "#d1d5db",
264
- 400: "#9ca3af",
265
- 500: "#6b7280",
266
- 600: "#4b5563",
267
- 700: "#374151",
268
- 800: "#1f2937",
269
- 900: "#111827",
270
- 950: "#030712"
271
- },
272
- zinc: {
273
- 50: "#fafafa",
274
- 100: "#f4f4f5",
275
- 200: "#e4e4e7",
276
- 300: "#d4d4d8",
277
- 400: "#a1a1aa",
278
- 500: "#71717a",
279
- 600: "#52525b",
280
- 700: "#3f3f46",
281
- 800: "#27272a",
282
- 900: "#18181b",
283
- 950: "#09090b"
284
- },
285
- neutral: {
286
- 50: "#fafafa",
287
- 100: "#f5f5f5",
288
- 200: "#e5e5e5",
289
- 300: "#d4d4d4",
290
- 400: "#a3a3a3",
291
- 500: "#737373",
292
- 600: "#525252",
293
- 700: "#404040",
294
- 800: "#262626",
295
- 900: "#171717",
296
- 950: "#0a0a0a"
297
- },
298
- stone: {
299
- 50: "#fafaf9",
300
- 100: "#f5f5f4",
301
- 200: "#e7e5e4",
302
- 300: "#d6d3d1",
303
- 400: "#a8a29e",
304
- 500: "#78716c",
305
- 600: "#57534e",
306
- 700: "#44403c",
307
- 800: "#292524",
308
- 900: "#1c1917",
309
- 950: "#0c0a09"
310
- },
311
- red: {
312
- 50: "#fef2f2",
313
- 100: "#fee2e2",
314
- 200: "#fecaca",
315
- 300: "#fca5a5",
316
- 400: "#f87171",
317
- 500: "#ef4444",
318
- 600: "#dc2626",
319
- 700: "#b91c1c",
320
- 800: "#991b1b",
321
- 900: "#7f1d1d",
322
- 950: "#450a0a"
323
- },
324
- orange: {
325
- 50: "#fff7ed",
326
- 100: "#ffedd5",
327
- 200: "#fed7aa",
328
- 300: "#fdba74",
329
- 400: "#fb923c",
330
- 500: "#f97316",
331
- 600: "#ea580c",
332
- 700: "#c2410c",
333
- 800: "#9a3412",
334
- 900: "#7c2d12",
335
- 950: "#431407"
336
- },
337
- amber: {
338
- 50: "#fffbeb",
339
- 100: "#fef3c7",
340
- 200: "#fde68a",
341
- 300: "#fcd34d",
342
- 400: "#fbbf24",
343
- 500: "#f59e0b",
344
- 600: "#d97706",
345
- 700: "#b45309",
346
- 800: "#92400e",
347
- 900: "#78350f",
348
- 950: "#451a03"
349
- },
350
- yellow: {
351
- 50: "#fefce8",
352
- 100: "#fef9c3",
353
- 200: "#fef08a",
354
- 300: "#fde047",
355
- 400: "#facc15",
356
- 500: "#eab308",
357
- 600: "#ca8a04",
358
- 700: "#a16207",
359
- 800: "#854d0e",
360
- 900: "#713f12",
361
- 950: "#422006"
362
- },
363
- lime: {
364
- 50: "#f7fee7",
365
- 100: "#ecfccb",
366
- 200: "#d9f99d",
367
- 300: "#bef264",
368
- 400: "#a3e635",
369
- 500: "#84cc16",
370
- 600: "#65a30d",
371
- 700: "#4d7c0f",
372
- 800: "#3f6212",
373
- 900: "#365314",
374
- 950: "#1a2e05"
375
- },
376
- green: {
377
- 50: "#f0fdf4",
378
- 100: "#dcfce7",
379
- 200: "#bbf7d0",
380
- 300: "#86efac",
381
- 400: "#4ade80",
382
- 500: "#22c55e",
383
- 600: "#16a34a",
384
- 700: "#15803d",
385
- 800: "#166534",
386
- 900: "#14532d",
387
- 950: "#052e16"
388
- },
389
- emerald: {
390
- 50: "#ecfdf5",
391
- 100: "#d1fae5",
392
- 200: "#a7f3d0",
393
- 300: "#6ee7b7",
394
- 400: "#34d399",
395
- 500: "#10b981",
396
- 600: "#059669",
397
- 700: "#047857",
398
- 800: "#065f46",
399
- 900: "#064e3b",
400
- 950: "#022c22"
401
- },
402
- teal: {
403
- 50: "#f0fdfa",
404
- 100: "#ccfbf1",
405
- 200: "#99f6e4",
406
- 300: "#5eead4",
407
- 400: "#2dd4bf",
408
- 500: "#14b8a6",
409
- 600: "#0d9488",
410
- 700: "#0f766e",
411
- 800: "#115e59",
412
- 900: "#134e4a",
413
- 950: "#042f2e"
414
- },
415
- cyan: {
416
- 50: "#ecfeff",
417
- 100: "#cffafe",
418
- 200: "#a5f3fc",
419
- 300: "#67e8f9",
420
- 400: "#22d3ee",
421
- 500: "#06b6d4",
422
- 600: "#0891b2",
423
- 700: "#0e7490",
424
- 800: "#155e75",
425
- 900: "#164e63",
426
- 950: "#083344"
427
- },
428
- sky: {
429
- 50: "#f0f9ff",
430
- 100: "#e0f2fe",
431
- 200: "#bae6fd",
432
- 300: "#7dd3fc",
433
- 400: "#38bdf8",
434
- 500: "#0ea5e9",
435
- 600: "#0284c7",
436
- 700: "#0369a1",
437
- 800: "#075985",
438
- 900: "#0c4a6e",
439
- 950: "#082f49"
440
- },
441
- blue: {
442
- 50: "#eff6ff",
443
- 100: "#dbeafe",
444
- 200: "#bfdbfe",
445
- 300: "#93c5fd",
446
- 400: "#60a5fa",
447
- 500: "#3b82f6",
448
- 600: "#2563eb",
449
- 700: "#1d4ed8",
450
- 800: "#1e40af",
451
- 900: "#1e3a8a",
452
- 950: "#172554"
453
- },
454
- indigo: {
455
- 50: "#eef2ff",
456
- 100: "#e0e7ff",
457
- 200: "#c7d2fe",
458
- 300: "#a5b4fc",
459
- 400: "#818cf8",
460
- 500: "#6366f1",
461
- 600: "#4f46e5",
462
- 700: "#4338ca",
463
- 800: "#3730a3",
464
- 900: "#312e81",
465
- 950: "#1e1b4b"
466
- },
467
- violet: {
468
- 50: "#f5f3ff",
469
- 100: "#ede9fe",
470
- 200: "#ddd6fe",
471
- 300: "#c4b5fd",
472
- 400: "#a78bfa",
473
- 500: "#8b5cf6",
474
- 600: "#7c3aed",
475
- 700: "#6d28d9",
476
- 800: "#5b21b6",
477
- 900: "#4c1d95",
478
- 950: "#2e1065"
479
- },
480
- purple: {
481
- 50: "#faf5ff",
482
- 100: "#f3e8ff",
483
- 200: "#e9d5ff",
484
- 300: "#d8b4fe",
485
- 400: "#c084fc",
486
- 500: "#a855f7",
487
- 600: "#9333ea",
488
- 700: "#7e22ce",
489
- 800: "#6b21a8",
490
- 900: "#581c87",
491
- 950: "#3b0764"
492
- },
493
- fuchsia: {
494
- 50: "#fdf4ff",
495
- 100: "#fae8ff",
496
- 200: "#f5d0fe",
497
- 300: "#f0abfc",
498
- 400: "#e879f9",
499
- 500: "#d946ef",
500
- 600: "#c026d3",
501
- 700: "#a21caf",
502
- 800: "#86198f",
503
- 900: "#701a75",
504
- 950: "#4a044e"
505
- },
506
- pink: {
507
- 50: "#fdf2f8",
508
- 100: "#fce7f3",
509
- 200: "#fbcfe8",
510
- 300: "#f9a8d4",
511
- 400: "#f472b6",
512
- 500: "#ec4899",
513
- 600: "#db2777",
514
- 700: "#be185d",
515
- 800: "#9d174d",
516
- 900: "#831843",
517
- 950: "#500724"
518
- },
519
- rose: {
520
- 50: "#fff1f2",
521
- 100: "#ffe4e6",
522
- 200: "#fecdd3",
523
- 300: "#fda4af",
524
- 400: "#fb7185",
525
- 500: "#f43f5e",
526
- 600: "#e11d48",
527
- 700: "#be123c",
528
- 800: "#9f1239",
529
- 900: "#881337",
530
- 950: "#4c0519"
531
- },
532
- get lightBlue() {
533
- return A({
534
- version: "v2.2",
535
- from: "lightBlue",
536
- to: "sky"
537
- }), this.sky;
538
- },
539
- get warmGray() {
540
- return A({
541
- version: "v3.0",
542
- from: "warmGray",
543
- to: "stone"
544
- }), this.stone;
545
- },
546
- get trueGray() {
547
- return A({
548
- version: "v3.0",
549
- from: "trueGray",
550
- to: "neutral"
551
- }), this.neutral;
552
- },
553
- get coolGray() {
554
- return A({
555
- version: "v3.0",
556
- from: "coolGray",
557
- to: "gray"
558
- }), this.gray;
559
- },
560
- get blueGray() {
561
- return A({
562
- version: "v3.0",
563
- from: "blueGray",
564
- to: "slate"
565
- }), this.slate;
566
- }
567
- };
568
- })(lt)), lt;
569
- }
570
- var ft, Nt;
571
- function ur() {
572
- if (Nt) return ft;
573
- Nt = 1;
574
- let e = sr();
575
- return ft = (e.__esModule ? e : { default: e }).default, ft;
576
- }
577
- ur();
578
- const cr = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEBLAEsAAD/4QCNRXhpZgAASUkqAAgAAAADAA4BAgBDAAAAMgAAABoBBQABAAAAdQAAABsBBQABAAAAfQAAAAAAAABObyBQaWN0dXJlIEF2YWlsYWJsZSBQbGFjZWhvbGRlciBUaHVtYm5haWwgSWNvbiBJbGx1c3RyYXRpb24gRGVzaWduLAEAAAEAAAAsAQAAAQAAAP/hBb9odHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iPgoJPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KCQk8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtbG5zOklwdGM0eG1wQ29yZT0iaHR0cDovL2lwdGMub3JnL3N0ZC9JcHRjNHhtcENvcmUvMS4wL3htbG5zLyIgICB4bWxuczpHZXR0eUltYWdlc0dJRlQ9Imh0dHA6Ly94bXAuZ2V0dHlpbWFnZXMuY29tL2dpZnQvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wd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6M2Kmo5eg3uzj2/Z9/rjKT1OByeKUAz/8AT0EAiCOYw0xLz/xljMAyp/1wTgDmcjCIETMeAUZjJgWR97OB5fTZQqs2r6O92ce37Pv5qOTJwOTw5iCkRlECXpT53Cf+QYKpIIy1h+eGcmjkIoKaPJ9fe7OPb9n38/8AKp98Dk8MwilHVz9SQBJL9deNEQPaEHqWnX1t7s49v2ffiiJmQQ3IcXJ4EIJqyCAH5K3faIJJJjGePX9YRGSST1N7s49v2fgJss32f5xcngnQUy9fbkMjW16wyYHp73Zx7fs/AVTkZfeLk4grIqsHz6U+r3FXTR5kVtVyHpb3Zx7fs/AKLmhgCGSTMHJjnhWxzPvl7pEAjmMTgXm8x6O92ce37PwPZdsHJhzw/gt7yeyOYcoOXBmPHvdnHt+z8D2XbByYc8P4Le9kUyGQzIl1o5DJ4t7s49v2fgey7YOTDnh/Bb3ycicmJ1N73C3uzj2/Z+B7Ltg5MOeH8lvgCnAOblekIgImY473Zx7fs/A9l2wcmHPBnQsxInF/+UX/AOUX35RcflFz+UfxUf0X6j+i/Uf0X6iw/DFh+GLb8MW/4Y/meBuryceTjzeNGeGR45HjkeCR4JHikeMR4RHgEeLROUsyA7w4lMuYzHDe7OPb9n4Hsu2Dkw5/Db3Zx7fs/A9l2wcvh6qqqqqqqqqqqqqqqqqqqqqqqqrPfE5Nse37PwPZdvjO37PwPZdvjO37PwKCTIJwvYXsL2F7C9hewvYXsL2F7C9hewvYXsL2F7C9hewvYXsL2F7C9hewvYXsL2F7C9hewvYXsL2F7C9hewvYXsL2F7C9hewvYCYpJpzn/sl//9k=", lr = G(
579
- ({ alternativeSrc: e, src: t, className: r, ...A }, n) => {
580
- const [a, o] = Z(!1), i = cr;
581
- return /* @__PURE__ */ d(
582
- "img",
583
- {
584
- ref: n,
585
- src: t ?? e ?? i,
586
- onError: (s) => {
587
- s.currentTarget.src = e ?? i;
588
- },
589
- onLoad: () => o(!0),
590
- className: ne(
591
- "duration-500 ease-in-out",
592
- a ? "opacity-100" : "opacity-0",
593
- r
594
- ),
595
- ...A
596
- }
597
- );
598
- }
599
- );
600
- lr.displayName = "Image";
601
- const dr = async ({
602
- filter: e,
603
- environment: t
604
- }) => (await Qe(t).get("/action", {
605
- params: e
606
- })).data;
607
- function fr({
608
- filter: e,
609
- queryKey: t,
610
- enabled: r = !0
611
- }) {
612
- const { environments: A } = Ge();
613
- return We({
614
- queryKey: ["campaigns", e, ...t || []],
615
- queryFn: () => dr({
616
- filter: e,
617
- environment: A.VITE_BACKEND_API_CAMPAIGNS_URL ?? ""
618
- }),
619
- enabled: r && !!(e.title && e.title.length > 3)
620
- });
621
- }
622
- const pr = G(
623
- ({ queryKey: e, value: t, defaultValue: r, onValueChange: A, id: n, disabled: a, ...o }, i) => {
624
- const s = r ? { title: String(r) } : void 0, [l, c] = Z(!1), [u, g] = Z(s), [h, b] = Z(""), C = Ve(h, 200), f = fr({
625
- filter: {
626
- page: 1,
627
- limit: 5,
628
- title: C
629
- },
630
- queryKey: e,
631
- enabled: l
632
- }), S = f.data?.data;
633
- Ee(() => {
634
- !t && u && (g(void 0), b(""));
635
- }, [u, t]);
636
- const D = (E) => {
637
- const v = S?.find((p) => p._id === E);
638
- c(!1), v && (g(v), A(v));
639
- };
640
- return /* @__PURE__ */ O(be, { open: l, onOpenChange: c, children: [
641
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
642
- ye,
643
- {
644
- id: n,
645
- variant: "outline",
646
- role: "combobox",
647
- "aria-expanded": l,
648
- className: "w-full justify-between",
649
- disabled: a,
650
- children: [
651
- u?.title ? u?.title : "Selecionar",
652
- /* @__PURE__ */ d(Me, { className: "opacity-50" })
653
- ]
654
- }
655
- ) }),
656
- /* @__PURE__ */ d(Se, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ O(Be, { shouldFilter: !1, children: [
657
- /* @__PURE__ */ d(
658
- xe,
659
- {
660
- ...o,
661
- disabled: a,
662
- value: h,
663
- onValueChange: (E) => b(E),
664
- placeholder: "Busque uma Ação...",
665
- className: "h-9",
666
- ref: i
667
- }
668
- ),
669
- /* @__PURE__ */ O(Fe, { children: [
670
- f.isSuccess && S?.length === 0 && /* @__PURE__ */ d(J, { children: "Nenhuma ação encontrada." }),
671
- f.isError && /* @__PURE__ */ d(J, { children: "Ocorreu um erro ao buscar as ações." }),
672
- !f.isEnabled && /* @__PURE__ */ d(J, { children: "Busque uma Ação..." }),
673
- f.fetchStatus !== "idle" && f.isPending && /* @__PURE__ */ O(J, { className: "flex items-center justify-center gap-2", children: [
674
- /* @__PURE__ */ d(Ye, { className: "size-4 animate-spin" }),
675
- "Buscando..."
676
- ] }),
677
- /* @__PURE__ */ d(Re, { children: S?.map((E) => /* @__PURE__ */ O(
678
- Te,
679
- {
680
- value: E._id,
681
- onSelect: (v) => {
682
- D(
683
- v === u?._id ? "" : v
684
- ), c(!1);
685
- },
686
- children: [
687
- E.title,
688
- /* @__PURE__ */ d(
689
- Ie,
690
- {
691
- className: ne(
692
- "ml-auto",
693
- u?._id === E._id ? "opacity-100" : "opacity-0"
694
- )
695
- }
696
- )
697
- ]
698
- },
699
- E._id
700
- )) })
701
- ] })
702
- ] }) })
703
- ] });
704
- }
705
- );
706
- pr.displayName = "CampaignsSelectInput";
707
- const gr = async ({
708
- filter: e,
709
- environment: t
710
- }) => (await Qe(t).get("/client", { params: e })).data;
711
- function mr({
712
- filter: e,
713
- queryKey: t,
714
- enabled: r = !0
715
- }) {
716
- const { environments: A } = Ge();
717
- return We({
718
- queryKey: ["clients", e, ...t || []],
719
- queryFn: () => gr({
720
- filter: e,
721
- environment: A.VITE_BACKEND_API_CLIENTS_URL ?? ""
722
- }),
723
- enabled: r && !!(e.name && e.name.length >= 2)
724
- });
725
- }
726
- const cn = G(
727
- ({
728
- queryKey: e,
729
- value: t,
730
- defaultValue: r,
731
- onValueChange: A,
732
- id: n,
733
- disabled: a,
734
- clientType: o,
735
- ...i
736
- }, s) => {
737
- const l = r ? { name: String(r) } : void 0, [c, u] = Z(!1), [g, h] = Z(l), [b, C] = Z(""), f = Ve(b, 200), S = mr({
738
- filter: {
739
- page: 1,
740
- limit: 5,
741
- name: f,
742
- clientType: o
743
- },
744
- queryKey: e,
745
- enabled: c
746
- }), D = S.data?.data;
747
- Ee(() => {
748
- !t && g && (h(void 0), C(""));
749
- }, [g, t]);
750
- const E = (v) => {
751
- const p = D?.find((U) => U._id === v);
752
- u(!1), p && (h(p), A(p));
753
- };
754
- return /* @__PURE__ */ O(be, { open: c, onOpenChange: u, children: [
755
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
756
- ye,
757
- {
758
- id: n,
759
- variant: "outline",
760
- role: "combobox",
761
- "aria-expanded": c,
762
- className: "w-full justify-between",
763
- disabled: a,
764
- children: [
765
- g?.name ? g?.name : "Selecionar",
766
- /* @__PURE__ */ d(Me, { className: "opacity-50" })
767
- ]
768
- }
769
- ) }),
770
- /* @__PURE__ */ d(Se, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ O(Be, { shouldFilter: !1, children: [
771
- /* @__PURE__ */ d(
772
- xe,
773
- {
774
- ...i,
775
- disabled: a,
776
- value: b,
777
- onValueChange: (v) => C(v),
778
- placeholder: "Busque um cliente...",
779
- className: "h-9",
780
- ref: s
781
- }
782
- ),
783
- /* @__PURE__ */ O(Fe, { children: [
784
- S.isSuccess && D?.length === 0 && /* @__PURE__ */ d(J, { children: "Nenhuma cliente encontrado." }),
785
- S.isError && /* @__PURE__ */ d(J, { children: "Ocorreu um erro ao buscar os clientes." }),
786
- !S.isEnabled && /* @__PURE__ */ d(J, { children: "Busque um cliente..." }),
787
- S.fetchStatus !== "idle" && S.isPending && /* @__PURE__ */ O(J, { className: "flex items-center justify-center gap-2", children: [
788
- /* @__PURE__ */ d(Ye, { className: "size-4 animate-spin" }),
789
- "Buscando..."
790
- ] }),
791
- /* @__PURE__ */ d(Re, { children: D?.map((v) => /* @__PURE__ */ O(
792
- Te,
793
- {
794
- value: v._id,
795
- onSelect: (p) => {
796
- E(
797
- p === g?._id ? "" : p
798
- ), u(!1);
799
- },
800
- children: [
801
- v.name,
802
- /* @__PURE__ */ d(
803
- Ie,
804
- {
805
- className: ne(
806
- "ml-auto",
807
- g?._id === v._id ? "opacity-100" : "opacity-0"
808
- )
809
- }
810
- )
811
- ]
812
- },
813
- v._id
814
- )) })
815
- ] })
816
- ] }) })
817
- ] });
818
- }
819
- );
820
- cn.displayName = "ClientSelectInput";
821
- const hr = async ({
822
- filter: e,
823
- environment: t
824
- }) => (await Qe(t).get("/influencers", {
825
- params: e
826
- })).data;
827
- function vr({
828
- filter: e,
829
- queryKey: t,
830
- enabled: r = !0
831
- }) {
832
- const { environments: A } = Ge();
833
- return We({
834
- queryKey: ["influencers", e, ...t || []],
835
- queryFn: () => hr({
836
- filter: e,
837
- environment: A.VITE_BACKEND_API_INFLUENCERS_URL ?? ""
838
- }),
839
- enabled: r && !!(e.name && e.name.length > 3)
840
- });
841
- }
842
- const yr = G(
843
- ({ queryKey: e, value: t, defaultValue: r, onValueChange: A, id: n, disabled: a, ...o }, i) => {
844
- const s = r ? { name: String(r) } : void 0, [l, c] = Z(!1), [u, g] = Z(s), [h, b] = Z(""), C = Ve(h, 200), f = vr({
845
- filter: {
846
- page: 1,
847
- limit: 10,
848
- name: C
849
- },
850
- queryKey: e,
851
- enabled: l
852
- }), S = f.data?.data;
853
- Ee(() => {
854
- !t && u && (g(void 0), b(""));
855
- }, [u, t]);
856
- const D = (E) => {
857
- const v = S?.find((p) => p._id === E);
858
- c(!1), v && (g(v), A(v));
859
- };
860
- return /* @__PURE__ */ O(be, { open: l, onOpenChange: c, children: [
861
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
862
- ye,
863
- {
864
- id: n,
865
- variant: "outline",
866
- role: "combobox",
867
- "aria-expanded": l,
868
- className: "w-full justify-between",
869
- disabled: a,
870
- children: [
871
- u?.name ? u?.name : "Selecionar",
872
- /* @__PURE__ */ d(Me, { className: "opacity-50" })
873
- ]
874
- }
875
- ) }),
876
- /* @__PURE__ */ d(Se, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ O(Be, { shouldFilter: !1, children: [
877
- /* @__PURE__ */ d(
878
- xe,
879
- {
880
- ...o,
881
- disabled: a,
882
- value: h,
883
- onValueChange: (E) => b(E),
884
- placeholder: "Busque um influenciador...",
885
- className: "h-9",
886
- ref: i
887
- }
888
- ),
889
- /* @__PURE__ */ O(Fe, { children: [
890
- f.isSuccess && S?.length === 0 && /* @__PURE__ */ d(J, { children: "Nenhuma influenciador encontrado." }),
891
- f.isError && /* @__PURE__ */ d(J, { children: "Ocorreu um erro ao buscar os influenciadores." }),
892
- !f.isEnabled && /* @__PURE__ */ d(J, { children: "Busque um influenciador..." }),
893
- f.fetchStatus !== "idle" && f.isPending && /* @__PURE__ */ O(J, { className: "flex items-center justify-center gap-2", children: [
894
- /* @__PURE__ */ d(Ye, { className: "size-4 animate-spin" }),
895
- "Buscando..."
896
- ] }),
897
- /* @__PURE__ */ d(Re, { children: S?.map((E) => /* @__PURE__ */ O(
898
- Te,
899
- {
900
- value: E._id,
901
- onSelect: (v) => {
902
- D(
903
- v === u?._id ? "" : v
904
- ), c(!1);
905
- },
906
- children: [
907
- E.name,
908
- /* @__PURE__ */ d(
909
- Ie,
910
- {
911
- className: ne(
912
- "ml-auto",
913
- u?._id === E._id ? "opacity-100" : "opacity-0"
914
- )
915
- }
916
- )
917
- ]
918
- },
919
- E._id
920
- )) })
921
- ] })
922
- ] }) })
923
- ] });
924
- }
925
- );
926
- yr.displayName = "InfluencerSelectInput";
927
- const ln = {
928
- instagram: "Instagram",
929
- tiktok: "TikTok",
930
- youtube: "YouTube",
931
- linkedin: "LinkedIn",
932
- pinterest: "Pinterest",
933
- twitter: "Twitter (X)"
934
- }, Er = {
935
- agency: "Agência",
936
- brand: "Marca"
937
- }, ro = {
938
- partner: "Parceiros",
939
- exclusive: "Exclusivos"
940
- }, br = {
941
- config: "Configuração",
942
- script: "Roteiro",
943
- production: "Produção",
944
- posting: "Postagem",
945
- analytics: "Analytics",
946
- finished: "Concluído",
947
- onHold: "Aguardando",
948
- cancelled: "Cancelado",
949
- archived: "Arquivada"
950
- }, Cr = {
951
- service: "Atendimento",
952
- comercial: "Comercial",
953
- squad_a: "Squad A",
954
- squad_b: "Squad B"
955
- }, Ao = {
956
- instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
957
- tiktok: "bg-black",
958
- youtube: "bg-[#ff0033]",
959
- linkedin: "bg-[#0a66c2]",
960
- pinterest: "bg-[#e60023]",
961
- twitter: "bg-black"
962
- }, ao = {
963
- new: "Aquisição",
964
- organic_expansion: "Expansão Orgânica de Base",
965
- strategic_expansion: "Expansão Estratégica de Base",
966
- renewal: "Renovação",
967
- comercial_winback: "Reativação Comercial",
968
- organic_winback: "Reativação Orgânica"
969
- }, Sr = {
970
- influencer: "Veículação de Influenciador",
971
- advisor: "Pagamento de Assessor",
972
- supplier: "Pagamento de Fornecedor",
973
- employee_refund: "Reembolso de Colaborador",
974
- influencer_refund: "Reembolso de Influenciador",
975
- influencer_extra: "Extra de Influenciador",
976
- partlog: "Kit pela Partlog",
977
- airplane_ticket: "Passagem Aérea para Influenciador",
978
- hotel_ticket: "Hospedagem para Influenciador",
979
- rumo_certo: "Rumo Certo",
980
- correios: "Correios",
981
- conta_simples: "Conta Simples",
982
- motoboy_bruno: "Motoboy Bruno",
983
- motoboy_others: "Motoboy Outros"
984
- }, wr = {
985
- transfer: "Repasse",
986
- client: "Pagamento Direto pelo Cliente",
987
- direct: "Custo Direto",
988
- debit_note: "Nota de Débito",
989
- undefined: "Não definido"
990
- }, Pr = {
991
- pending: "Revisão Atendimento",
992
- review: "Revisão Financeiro",
993
- awaiting: "Aguardando",
994
- requested: "NF Solicitada",
995
- received: "NF Recebida",
996
- queued: "Na Fila para Pagamento",
997
- paid: "Pago",
998
- client: "Pagamento via Cliente",
999
- canceled: "Cancelado"
1000
- }, oo = {
1001
- reels: "Reels",
1002
- images: "Feed (Foto)",
1003
- carousels: "Carousel",
1004
- stories: "Story",
1005
- tiktok: "TikTok",
1006
- youtube: "YouTube",
1007
- ytshorts: "YT Shorts",
1008
- dayAllocation: "Diária",
1009
- pinterest: "Pin",
1010
- linkedin: "LinkedIn",
1011
- twitter: "Tweet"
1012
- }, Or = {
1013
- instagram: ka,
1014
- tiktok: Ua,
1015
- youtube: Ya,
1016
- linkedin: _a,
1017
- pinterest: Ha,
1018
- twitter: za
1019
- };
1020
- function Dr(e) {
1021
- return !isNaN(Number(e));
1022
- }
1023
- function Ct(e) {
1024
- return typeof e != "string" || !e ? !1 : e in ln;
1025
- }
1026
- function Br(e) {
1027
- return typeof e != "string" || !e ? !1 : e in Er;
1028
- }
1029
- function xr(e) {
1030
- return typeof e != "string" || !e ? !1 : e in Cr;
1031
- }
1032
- function Fr(e) {
1033
- return typeof e != "string" || !e ? !1 : e in Sr;
1034
- }
1035
- function Rr(e) {
1036
- return typeof e != "string" || !e ? !1 : e in wr;
1037
- }
1038
- function Tr(e) {
1039
- return typeof e != "string" || !e ? !1 : e in Pr;
1040
- }
1041
- function Ir(e) {
1042
- return typeof e != "string" || !e ? !1 : e in br;
1043
- }
1044
- const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1045
- __proto__: null,
1046
- isActionStatus: Ir,
1047
- isBusinessUnit: xr,
1048
- isClientType: Br,
1049
- isInfluencerBroadcastMethod: Rr,
1050
- isNumber: Dr,
1051
- isPaymentPhase: Tr,
1052
- isPaymentType: Fr,
1053
- isSocialNetwork: Ct
1054
- }, Symbol.toStringTag, { value: "Module" })), Mr = async ({
1055
- filter: e,
1056
- environment: t
1057
- }) => (await Qe(t).get("/profiles", {
1058
- params: e
1059
- })).data;
1060
- function jr({
1061
- filter: e,
1062
- queryKey: t,
1063
- enabled: r = !0
1064
- }) {
1065
- const { environments: A } = Ge();
1066
- return We({
1067
- queryKey: ["profile", e, ...t || []],
1068
- queryFn: () => Mr({
1069
- filter: e,
1070
- environment: A.VITE_BACKEND_API_PROFILES_URL ?? ""
1071
- }),
1072
- enabled: r && e.searchTerm.length > 3
1073
- });
1074
- }
1075
- const dn = G(
1076
- ({ queryKey: e, value: t, defaultValue: r, onValueChange: A, id: n, disabled: a, ...o }, i) => {
1077
- const s = r ? { username: String(r) } : void 0, [l, c] = Z(!1), [u, g] = Z(s), [h, b] = Z(""), C = Ve(h, 200), f = jr({
1078
- filter: {
1079
- searchTerm: C,
1080
- fromRecruitment: !1
1081
- },
1082
- queryKey: e,
1083
- enabled: l
1084
- }), S = f.data?.data;
1085
- Ee(() => {
1086
- !t && u && (g(void 0), b(""));
1087
- }, [u, t]);
1088
- const D = (v) => {
1089
- const p = S?.find((U) => U._id === v);
1090
- c(!1), p && (g(p), A(p));
1091
- }, E = Ct(
1092
- u?.socialnetwork
1093
- ) ? ln[u.socialnetwork] : "";
1094
- return /* @__PURE__ */ O(be, { open: l, onOpenChange: c, children: [
1095
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
1096
- ye,
1097
- {
1098
- id: n,
1099
- variant: "outline",
1100
- role: "combobox",
1101
- "aria-expanded": l,
1102
- className: ne(
1103
- "w-full justify-between",
1104
- a && "!pointer-events-auto !cursor-not-allowed hover:bg-transparent"
1105
- ),
1106
- disabled: a,
1107
- children: [
1108
- u?.username ? `${E && `[${E}]`} ${u.username}` : "Selecionar",
1109
- /* @__PURE__ */ d(Me, { className: "opacity-50" })
1110
- ]
1111
- }
1112
- ) }),
1113
- /* @__PURE__ */ d(Se, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ O(Be, { shouldFilter: !1, children: [
1114
- /* @__PURE__ */ d(
1115
- xe,
1116
- {
1117
- ...o,
1118
- disabled: a,
1119
- value: h,
1120
- onValueChange: (v) => b(v),
1121
- placeholder: "Busque um cliente...",
1122
- className: "h-9",
1123
- ref: i
1124
- }
1125
- ),
1126
- /* @__PURE__ */ O(Fe, { children: [
1127
- f.isSuccess && S?.length === 0 && /* @__PURE__ */ d(J, { children: "Nenhuma perfil encontrado." }),
1128
- f.isError && /* @__PURE__ */ d(J, { children: "Ocorreu um erro ao buscar os perfis." }),
1129
- !f.isEnabled && /* @__PURE__ */ d(J, { children: "Busque um perfil..." }),
1130
- f.fetchStatus !== "idle" && f.isPending && /* @__PURE__ */ O(J, { className: "flex items-center justify-center gap-2", children: [
1131
- /* @__PURE__ */ d(Ye, { className: "size-4 animate-spin" }),
1132
- "Buscando..."
1133
- ] }),
1134
- /* @__PURE__ */ d(Re, { children: S?.map((v) => {
1135
- if (!Ct(v?.socialnetwork)) return;
1136
- const p = Or[v?.socialnetwork];
1137
- return /* @__PURE__ */ O(
1138
- Te,
1139
- {
1140
- value: v._id,
1141
- onSelect: (U) => {
1142
- D(
1143
- U === u?._id ? "" : U
1144
- ), c(!1);
1145
- },
1146
- children: [
1147
- /* @__PURE__ */ d(p, { className: "size-4" }),
1148
- " ",
1149
- v.username,
1150
- /* @__PURE__ */ d(
1151
- Ie,
1152
- {
1153
- className: ne(
1154
- "ml-auto",
1155
- u?._id === v._id ? "opacity-100" : "opacity-0"
1156
- )
1157
- }
1158
- )
1159
- ]
1160
- },
1161
- v._id
1162
- );
1163
- }) })
1164
- ] })
1165
- ] }) })
1166
- ] });
1167
- }
1168
- );
1169
- dn.displayName = "ProfileSelectInput";
1170
- function Nr(e) {
1171
- if (Array.isArray(e)) {
1172
- for (var t = 0, r = new Array(e.length); t < e.length; t++)
1173
- r[t] = e[t];
1174
- return r;
1175
- }
1176
- }
1177
- function Lr(e) {
1178
- if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
1179
- }
1180
- function qr() {
1181
- throw new TypeError("Invalid attempt to spread non-iterable instance");
1182
- }
1183
- function at(e) {
1184
- return Nr(e) || Lr(e) || qr();
1185
- }
1186
- function ae() {
1187
- return ae = Object.assign || function(e) {
1188
- for (var t = 1; t < arguments.length; t++) {
1189
- var r = arguments[t];
1190
- for (var A in r)
1191
- Object.prototype.hasOwnProperty.call(r, A) && (e[A] = r[A]);
1192
- }
1193
- return e;
1194
- }, ae.apply(this, arguments);
1195
- }
1196
- function kr(e, t) {
1197
- if (!(e instanceof t))
1198
- throw new TypeError("Cannot call a class as a function");
1199
- }
1200
- function _r(e, t) {
1201
- for (var r = 0; r < t.length; r++) {
1202
- var A = t[r];
1203
- A.enumerable = A.enumerable || !1, A.configurable = !0, "value" in A && (A.writable = !0), Object.defineProperty(e, A.key, A);
1204
- }
1205
- }
1206
- function Hr(e, t, r) {
1207
- return t && _r(e.prototype, t), e;
1208
- }
1209
- function T(e) {
1210
- if (e === void 0)
1211
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1212
- return e;
1213
- }
1214
- function St(e, t) {
1215
- return St = Object.setPrototypeOf || function(A, n) {
1216
- return A.__proto__ = n, A;
1217
- }, St(e, t);
1218
- }
1219
- function Ur(e, t) {
1220
- if (typeof t != "function" && t !== null)
1221
- throw new TypeError("Super expression must either be null or a function");
1222
- e.prototype = Object.create(t && t.prototype, {
1223
- constructor: {
1224
- value: e,
1225
- writable: !0,
1226
- configurable: !0
1227
- }
1228
- }), t && St(e, t);
1229
- }
1230
- function Oe(e) {
1231
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(r) {
1232
- return typeof r;
1233
- } : Oe = function(r) {
1234
- return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
1235
- }, Oe(e);
1236
- }
1237
- function nt(e) {
1238
- return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ? nt = function(r) {
1239
- return Oe(r);
1240
- } : nt = function(r) {
1241
- return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : Oe(r);
1242
- }, nt(e);
1243
- }
1244
- function zr(e, t) {
1245
- return t && (nt(t) === "object" || typeof t == "function") ? t : T(e);
1246
- }
1247
- function ot(e) {
1248
- return ot = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
1249
- return r.__proto__ || Object.getPrototypeOf(r);
1250
- }, ot(e);
1251
- }
1252
- function R(e, t, r) {
1253
- return t in e ? Object.defineProperty(e, t, {
1254
- value: r,
1255
- enumerable: !0,
1256
- configurable: !0,
1257
- writable: !0
1258
- }) : e[t] = r, e;
1259
- }
1260
- var pt, Lt;
1261
- function Yr() {
1262
- if (Lt) return pt;
1263
- Lt = 1;
1264
- var e = function(t, r, A, n, a, o, i, s) {
1265
- if (process.env.NODE_ENV !== "production" && r === void 0)
1266
- throw new Error("invariant requires an error message argument");
1267
- if (!t) {
1268
- var l;
1269
- if (r === void 0)
1270
- l = new Error(
1271
- "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
1272
- );
1273
- else {
1274
- var c = [A, n, a, o, i, s], u = 0;
1275
- l = new Error(
1276
- r.replace(/%s/g, function() {
1277
- return c[u++];
1278
- })
1279
- ), l.name = "Invariant Violation";
1280
- }
1281
- throw l.framesToPop = 1, l;
1282
- }
1283
- };
1284
- return pt = e, pt;
1285
- }
1286
- var Wr = Yr();
1287
- const De = /* @__PURE__ */ sn(Wr);
1288
- function Qr(e) {
1289
- if (Array.isArray(e)) return e;
1290
- }
1291
- function Gr(e, t) {
1292
- var r = [], A = !0, n = !1, a = void 0;
1293
- try {
1294
- for (var o = e[Symbol.iterator](), i; !(A = (i = o.next()).done) && (r.push(i.value), !(t && r.length === t)); A = !0)
1295
- ;
1296
- } catch (s) {
1297
- n = !0, a = s;
1298
- } finally {
1299
- try {
1300
- !A && o.return != null && o.return();
1301
- } finally {
1302
- if (n) throw a;
1303
- }
1304
- }
1305
- return r;
1306
- }
1307
- function Vr() {
1308
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
1309
- }
1310
- function it(e, t) {
1311
- return Qr(e) || Gr(e, t) || Vr();
1312
- }
1313
- function Jr(e, t) {
1314
- if (e == null) return {};
1315
- var r = {}, A = Object.keys(e), n, a;
1316
- for (a = 0; a < A.length; a++)
1317
- n = A[a], !(t.indexOf(n) >= 0) && (r[n] = e[n]);
1318
- return r;
1319
- }
1320
- function Zr(e, t) {
1321
- if (e == null) return {};
1322
- var r = Jr(e, t), A, n;
1323
- if (Object.getOwnPropertySymbols) {
1324
- var a = Object.getOwnPropertySymbols(e);
1325
- for (n = 0; n < a.length; n++)
1326
- A = a[n], !(t.indexOf(A) >= 0) && Object.prototype.propertyIsEnumerable.call(e, A) && (r[A] = e[A]);
1327
- }
1328
- return r;
1329
- }
1330
- function Ue(e) {
1331
- "@babel/helpers - typeof";
1332
- return Ue = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
1333
- return typeof t;
1334
- } : function(t) {
1335
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1336
- }, Ue(e);
1337
- }
1338
- function Xr(e, t) {
1339
- if (Ue(e) != "object" || !e) return e;
1340
- var r = e[Symbol.toPrimitive];
1341
- if (r !== void 0) {
1342
- var A = r.call(e, t);
1343
- if (Ue(A) != "object") return A;
1344
- throw new TypeError("@@toPrimitive must return a primitive value.");
1345
- }
1346
- return (t === "string" ? String : Number)(e);
1347
- }
1348
- function Kr(e) {
1349
- var t = Xr(e, "string");
1350
- return Ue(t) == "symbol" ? t : t + "";
1351
- }
1352
- function ze(e, t, r) {
1353
- return (t = Kr(t)) in e ? Object.defineProperty(e, t, {
1354
- value: r,
1355
- enumerable: !0,
1356
- configurable: !0,
1357
- writable: !0
1358
- }) : e[t] = r, e;
1359
- }
1360
- function wt(e, t) {
1361
- (t == null || t > e.length) && (t = e.length);
1362
- for (var r = 0, A = Array(t); r < t; r++) A[r] = e[r];
1363
- return A;
1364
- }
1365
- function $r(e) {
1366
- if (Array.isArray(e)) return wt(e);
1367
- }
1368
- function eA(e) {
1369
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1370
- }
1371
- function tA(e, t) {
1372
- if (e) {
1373
- if (typeof e == "string") return wt(e, t);
1374
- var r = {}.toString.call(e).slice(8, -1);
1375
- return r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set" ? Array.from(e) : r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? wt(e, t) : void 0;
1376
- }
1377
- }
1378
- function nA() {
1379
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
1380
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1381
- }
1382
- function me(e) {
1383
- return $r(e) || eA(e) || tA(e) || nA();
1384
- }
1385
- var je = function(t) {
1386
- return t === Object(t) ? Object.keys(t) : [];
1387
- }, fn = function(t) {
1388
- return t === Object(t) ? Object.values(t) : [];
1389
- };
1390
- function pn(e, t) {
1391
- var r = Object.assign({}, e);
1392
- return rt(e) && rt(t) && je(t).forEach(function(A) {
1393
- rt(t[A]) ? A in e ? r[A] = pn(e[A], t[A]) : Object.assign(r, ze({}, A, t[A])) : Object.assign(r, ze({}, A, t[A]));
1394
- }), r;
1395
- }
1396
- var Pt = function(t) {
1397
- for (var r = arguments.length, A = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
1398
- A[n - 1] = arguments[n];
1399
- return A.reduce(function(a, o) {
1400
- return pn(a, o);
1401
- }, t);
1402
- }, rA = function(t, r) {
1403
- var A = Object.assign({}, t);
1404
- if (r)
1405
- for (var n = 0; n < r.length; n++)
1406
- delete A[r[n]];
1407
- return A;
1408
- }, rt = function(t) {
1409
- return t === Object(t) && !(t instanceof Date) && !Array.isArray(t);
1410
- }, AA = function(t) {
1411
- return (t || []).filter(Boolean);
1412
- }, Dt = function(t) {
1413
- return t[0] === "&";
1414
- }, aA = function(t) {
1415
- return !Dt(t);
1416
- }, qt = function(t) {
1417
- return t.replace(/-(\w)/g, function(r, A) {
1418
- return A.toUpperCase();
1419
- });
1420
- }, oA = function(t) {
1421
- for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], A = je(t), n = {}, a = 0, o = A.length; a < o; a += 1) {
1422
- var i = A[a], s = Object.prototype.toString.call(t[i]) !== "[object Object]" || // style defs
1423
- i[0] === ":" || // pseudo selectors
1424
- i[0] === "@" || // @media / @keyframes / @supports / @font-face
1425
- r.indexOf(i) >= 0;
1426
- s && (n[i] = t[i]);
1427
- }
1428
- return n;
1429
- }, gn = function(t, r) {
1430
- for (var A = r.map(qt), n = je(t), a = {}, o = 0, i = n.length; o < i; o += 1) {
1431
- var s = n[o];
1432
- (r.indexOf(s) >= 0 || A.indexOf(qt(s)) >= 0) && (a[s] = t[s]);
1433
- }
1434
- return a;
1435
- }, iA = function e(t, r) {
1436
- for (var A = Pt.apply(void 0, [{}, rA(t, r)].concat(me(fn(gn(t, r))))), n = je(A).filter(Dt), a = 0, o = n.length; a < o; a += 1) {
1437
- var i = n[a], s = e(A[i], r);
1438
- r.indexOf(i) >= 0 ? (delete A[i], A = Pt({}, A, s)) : A[i] = s;
1439
- }
1440
- return A;
1441
- };
1442
- function kt(e, t) {
1443
- var r = Object.keys(e);
1444
- if (Object.getOwnPropertySymbols) {
1445
- var A = Object.getOwnPropertySymbols(e);
1446
- t && (A = A.filter(function(n) {
1447
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
1448
- })), r.push.apply(r, A);
1449
- }
1450
- return r;
1451
- }
1452
- function _t(e) {
1453
- for (var t = 1; t < arguments.length; t++) {
1454
- var r = arguments[t] != null ? arguments[t] : {};
1455
- t % 2 ? kt(Object(r), !0).forEach(function(A) {
1456
- ze(e, A, r[A]);
1457
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : kt(Object(r)).forEach(function(A) {
1458
- Object.defineProperty(e, A, Object.getOwnPropertyDescriptor(r, A));
1459
- });
1460
- }
1461
- return e;
1462
- }
1463
- var sA = ["animationName"], mn = function(t) {
1464
- var r = t.style, A = t.className;
1465
- return _t(_t({}, r ? {
1466
- style: oA(r, sA)
1467
- } : {}), A ? {
1468
- className: A
1469
- } : {});
1470
- }, hn = /* @__PURE__ */ an(mn);
1471
- hn.Provider;
1472
- var vn = function(t) {
1473
- if (t) {
1474
- if (typeof t == "string")
1475
- return [t];
1476
- if (!Array.isArray(t)) {
1477
- var r = t;
1478
- return je(t).reduce(function(A, n) {
1479
- return A.concat(r[n] ? [n] : []);
1480
- }, []);
1481
- }
1482
- } else return [];
1483
- return t;
1484
- }, uA = {}, cA = function(t) {
1485
- return function(r, A) {
1486
- var n = A || uA;
1487
- t.memoize = t.memoize || /* @__PURE__ */ new WeakMap();
1488
- var a;
1489
- t.memoize.has(n) ? a = t.memoize.get(n) : (a = {}, t.memoize.set(n, a));
1490
- var o = vn(r).join(" ");
1491
- return o in a ? a[o] : a[o] = t(r || [], A);
1492
- };
1493
- };
1494
- function Ht(e, t) {
1495
- var r = Object.keys(e);
1496
- if (Object.getOwnPropertySymbols) {
1497
- var A = Object.getOwnPropertySymbols(e);
1498
- t && (A = A.filter(function(n) {
1499
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
1500
- })), r.push.apply(r, A);
1501
- }
1502
- return r;
1503
- }
1504
- function we(e) {
1505
- for (var t = 1; t < arguments.length; t++) {
1506
- var r = arguments[t] != null ? arguments[t] : {};
1507
- t % 2 ? Ht(Object(r), !0).forEach(function(A) {
1508
- ze(e, A, r[A]);
1509
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ht(Object(r)).forEach(function(A) {
1510
- Object.defineProperty(e, A, Object.getOwnPropertyDescriptor(r, A));
1511
- });
1512
- }
1513
- return e;
1514
- }
1515
- var lA = function(t) {
1516
- var r = t && je(t)[0];
1517
- return r && r.split("__")[0].split("--")[0];
1518
- }, dA = function(t, r, A) {
1519
- if (t) {
1520
- var n = t.split(" ")[0], a = [].concat(me(r.length === 0 ? A.map(function(o) {
1521
- return "".concat(n, "--").concat(o.substring(1));
1522
- }) : []), me(r.map(function(o) {
1523
- return "".concat(n, "__").concat(o);
1524
- })));
1525
- return r.length === 0 ? [t].concat(me(a)) : a;
1526
- }
1527
- };
1528
- function yn(e) {
1529
- var t = e.style, r = e.className, A = e.classNames, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : mn, a = r || lA(A) || t?.className, o = typeof t == "function" ? t : cA(function(u, g) {
1530
- var h = vn(u);
1531
- De(Array.isArray(h), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), De(!g || rt(g), "Optional second parameter must be a plain object.");
1532
- var b = h.filter(Dt), C = h.filter(aA), f = C.length > 0 ? function(E) {
1533
- return fn(gn(E, C));
1534
- } : function(E) {
1535
- return [E];
1536
- }, S = function() {
1537
- var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1538
- return f(iA(v, b));
1539
- }, D = dA(a, C, b);
1540
- return yn(we(we(we({}, (t || g) && {
1541
- style: Pt.apply(void 0, [{}].concat(me(S(g)), me(S(t))))
1542
- }), D && {
1543
- className: D.join(" ")
1544
- }), A && {
1545
- classNames: A
1546
- }), n);
1547
- }), i = we({}, typeof t == "function" ? t : {
1548
- style: t
1549
- }), s = me(new Set([].concat(me(i.className ? i.className.split(" ") : []), me(a ? a.split(" ") : [])))), l = A ? AA(s.map(function(u) {
1550
- return A[u];
1551
- })) : s, c = n(we(we({}, i), l.length > 0 ? {
1552
- className: l.join(" ")
1553
- } : {}));
1554
- return Object.assign(o, c), o;
1555
- }
1556
- function Ut(e, t) {
1557
- var r = Object.keys(e);
1558
- if (Object.getOwnPropertySymbols) {
1559
- var A = Object.getOwnPropertySymbols(e);
1560
- t && (A = A.filter(function(n) {
1561
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
1562
- })), r.push.apply(r, A);
1563
- }
1564
- return r;
1565
- }
1566
- function qe(e) {
1567
- for (var t = 1; t < arguments.length; t++) {
1568
- var r = arguments[t] != null ? arguments[t] : {};
1569
- t % 2 ? Ut(Object(r), !0).forEach(function(A) {
1570
- ze(e, A, r[A]);
1571
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : Ut(Object(r)).forEach(function(A) {
1572
- Object.defineProperty(e, A, Object.getOwnPropertyDescriptor(r, A));
1573
- });
1574
- }
1575
- return e;
1576
- }
1577
- var fA = function() {
1578
- for (var t = arguments.length, r = new Array(t), A = 0; A < t; A++)
1579
- r[A] = arguments[A];
1580
- return r.reduce(function(n, a) {
1581
- return qe(qe(qe({}, n), typeof a == "function" ? a : {}), {}, {
1582
- style: qe(qe({}, n.style), typeof a == "function" ? a.style : a)
1583
- });
1584
- }, {});
1585
- }, Bt = function(t, r, A) {
1586
- var n = r.style, a = r.className, o = r.classNames, i = Gn(hn), s = Vn(function() {
1587
- return yn({
1588
- style: n,
1589
- className: a,
1590
- classNames: o
1591
- }, i);
1592
- }, [n, a, o, i]);
1593
- return s(A, t);
1594
- }, Ke = { exports: {} }, $e = { exports: {} }, _ = {};
1595
- var zt;
1596
- function pA() {
1597
- if (zt) return _;
1598
- zt = 1;
1599
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, A = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1600
- function E(p) {
1601
- if (typeof p == "object" && p !== null) {
1602
- var U = p.$$typeof;
1603
- switch (U) {
1604
- case t:
1605
- switch (p = p.type, p) {
1606
- case s:
1607
- case l:
1608
- case A:
1609
- case a:
1610
- case n:
1611
- case u:
1612
- return p;
1613
- default:
1614
- switch (p = p && p.$$typeof, p) {
1615
- case i:
1616
- case c:
1617
- case b:
1618
- case h:
1619
- case o:
1620
- return p;
1621
- default:
1622
- return U;
1623
- }
1624
- }
1625
- case r:
1626
- return U;
1627
- }
1628
- }
1629
- }
1630
- function v(p) {
1631
- return E(p) === l;
1632
- }
1633
- return _.AsyncMode = s, _.ConcurrentMode = l, _.ContextConsumer = i, _.ContextProvider = o, _.Element = t, _.ForwardRef = c, _.Fragment = A, _.Lazy = b, _.Memo = h, _.Portal = r, _.Profiler = a, _.StrictMode = n, _.Suspense = u, _.isAsyncMode = function(p) {
1634
- return v(p) || E(p) === s;
1635
- }, _.isConcurrentMode = v, _.isContextConsumer = function(p) {
1636
- return E(p) === i;
1637
- }, _.isContextProvider = function(p) {
1638
- return E(p) === o;
1639
- }, _.isElement = function(p) {
1640
- return typeof p == "object" && p !== null && p.$$typeof === t;
1641
- }, _.isForwardRef = function(p) {
1642
- return E(p) === c;
1643
- }, _.isFragment = function(p) {
1644
- return E(p) === A;
1645
- }, _.isLazy = function(p) {
1646
- return E(p) === b;
1647
- }, _.isMemo = function(p) {
1648
- return E(p) === h;
1649
- }, _.isPortal = function(p) {
1650
- return E(p) === r;
1651
- }, _.isProfiler = function(p) {
1652
- return E(p) === a;
1653
- }, _.isStrictMode = function(p) {
1654
- return E(p) === n;
1655
- }, _.isSuspense = function(p) {
1656
- return E(p) === u;
1657
- }, _.isValidElementType = function(p) {
1658
- return typeof p == "string" || typeof p == "function" || p === A || p === l || p === a || p === n || p === u || p === g || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === h || p.$$typeof === o || p.$$typeof === i || p.$$typeof === c || p.$$typeof === f || p.$$typeof === S || p.$$typeof === D || p.$$typeof === C);
1659
- }, _.typeOf = E, _;
1660
- }
1661
- var H = {};
1662
- var Yt;
1663
- function gA() {
1664
- return Yt || (Yt = 1, process.env.NODE_ENV !== "production" && (function() {
1665
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, A = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, i = e ? Symbol.for("react.context") : 60110, s = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, u = e ? Symbol.for("react.suspense") : 60113, g = e ? Symbol.for("react.suspense_list") : 60120, h = e ? Symbol.for("react.memo") : 60115, b = e ? Symbol.for("react.lazy") : 60116, C = e ? Symbol.for("react.block") : 60121, f = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, D = e ? Symbol.for("react.scope") : 60119;
1666
- function E(P) {
1667
- return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1668
- P === A || P === l || P === a || P === n || P === u || P === g || typeof P == "object" && P !== null && (P.$$typeof === b || P.$$typeof === h || P.$$typeof === o || P.$$typeof === i || P.$$typeof === c || P.$$typeof === f || P.$$typeof === S || P.$$typeof === D || P.$$typeof === C);
1669
- }
1670
- function v(P) {
1671
- if (typeof P == "object" && P !== null) {
1672
- var ce = P.$$typeof;
1673
- switch (ce) {
1674
- case t:
1675
- var Ze = P.type;
1676
- switch (Ze) {
1677
- case s:
1678
- case l:
1679
- case A:
1680
- case a:
1681
- case n:
1682
- case u:
1683
- return Ze;
1684
- default:
1685
- var Rt = Ze && Ze.$$typeof;
1686
- switch (Rt) {
1687
- case i:
1688
- case c:
1689
- case b:
1690
- case h:
1691
- case o:
1692
- return Rt;
1693
- default:
1694
- return ce;
1695
- }
1696
- }
1697
- case r:
1698
- return ce;
1699
- }
1700
- }
1701
- }
1702
- var p = s, U = l, $ = i, V = o, oe = t, Ae = c, ue = A, ge = b, re = h, W = r, K = a, Y = n, j = u, Q = !1;
1703
- function X(P) {
1704
- return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(P) || v(P) === s;
1705
- }
1706
- function m(P) {
1707
- return v(P) === l;
1708
- }
1709
- function w(P) {
1710
- return v(P) === i;
1711
- }
1712
- function F(P) {
1713
- return v(P) === o;
1714
- }
1715
- function x(P) {
1716
- return typeof P == "object" && P !== null && P.$$typeof === t;
1717
- }
1718
- function B(P) {
1719
- return v(P) === c;
1720
- }
1721
- function N(P) {
1722
- return v(P) === A;
1723
- }
1724
- function I(P) {
1725
- return v(P) === b;
1726
- }
1727
- function M(P) {
1728
- return v(P) === h;
1729
- }
1730
- function L(P) {
1731
- return v(P) === r;
1732
- }
1733
- function z(P) {
1734
- return v(P) === a;
1735
- }
1736
- function q(P) {
1737
- return v(P) === n;
1738
- }
1739
- function te(P) {
1740
- return v(P) === u;
1741
- }
1742
- H.AsyncMode = p, H.ConcurrentMode = U, H.ContextConsumer = $, H.ContextProvider = V, H.Element = oe, H.ForwardRef = Ae, H.Fragment = ue, H.Lazy = ge, H.Memo = re, H.Portal = W, H.Profiler = K, H.StrictMode = Y, H.Suspense = j, H.isAsyncMode = X, H.isConcurrentMode = m, H.isContextConsumer = w, H.isContextProvider = F, H.isElement = x, H.isForwardRef = B, H.isFragment = N, H.isLazy = I, H.isMemo = M, H.isPortal = L, H.isProfiler = z, H.isStrictMode = q, H.isSuspense = te, H.isValidElementType = E, H.typeOf = v;
1743
- })()), H;
1744
- }
1745
- var Wt;
1746
- function En() {
1747
- return Wt || (Wt = 1, process.env.NODE_ENV === "production" ? $e.exports = pA() : $e.exports = gA()), $e.exports;
1748
- }
1749
- var gt, Qt;
1750
- function mA() {
1751
- if (Qt) return gt;
1752
- Qt = 1;
1753
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
1754
- function A(a) {
1755
- if (a == null)
1756
- throw new TypeError("Object.assign cannot be called with null or undefined");
1757
- return Object(a);
1758
- }
1759
- function n() {
1760
- try {
1761
- if (!Object.assign)
1762
- return !1;
1763
- var a = new String("abc");
1764
- if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
1765
- return !1;
1766
- for (var o = {}, i = 0; i < 10; i++)
1767
- o["_" + String.fromCharCode(i)] = i;
1768
- var s = Object.getOwnPropertyNames(o).map(function(c) {
1769
- return o[c];
1770
- });
1771
- if (s.join("") !== "0123456789")
1772
- return !1;
1773
- var l = {};
1774
- return "abcdefghijklmnopqrst".split("").forEach(function(c) {
1775
- l[c] = c;
1776
- }), Object.keys(Object.assign({}, l)).join("") === "abcdefghijklmnopqrst";
1777
- } catch {
1778
- return !1;
1779
- }
1780
- }
1781
- return gt = n() ? Object.assign : function(a, o) {
1782
- for (var i, s = A(a), l, c = 1; c < arguments.length; c++) {
1783
- i = Object(arguments[c]);
1784
- for (var u in i)
1785
- t.call(i, u) && (s[u] = i[u]);
1786
- if (e) {
1787
- l = e(i);
1788
- for (var g = 0; g < l.length; g++)
1789
- r.call(i, l[g]) && (s[l[g]] = i[l[g]]);
1790
- }
1791
- }
1792
- return s;
1793
- }, gt;
1794
- }
1795
- var mt, Gt;
1796
- function xt() {
1797
- if (Gt) return mt;
1798
- Gt = 1;
1799
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1800
- return mt = e, mt;
1801
- }
1802
- var ht, Vt;
1803
- function bn() {
1804
- return Vt || (Vt = 1, ht = Function.call.bind(Object.prototype.hasOwnProperty)), ht;
1805
- }
1806
- var vt, Jt;
1807
- function hA() {
1808
- if (Jt) return vt;
1809
- Jt = 1;
1810
- var e = function() {
1811
- };
1812
- if (process.env.NODE_ENV !== "production") {
1813
- var t = /* @__PURE__ */ xt(), r = {}, A = /* @__PURE__ */ bn();
1814
- e = function(a) {
1815
- var o = "Warning: " + a;
1816
- typeof console < "u" && console.error(o);
1817
- try {
1818
- throw new Error(o);
1819
- } catch {
1820
- }
1821
- };
1822
- }
1823
- function n(a, o, i, s, l) {
1824
- if (process.env.NODE_ENV !== "production") {
1825
- for (var c in a)
1826
- if (A(a, c)) {
1827
- var u;
1828
- try {
1829
- if (typeof a[c] != "function") {
1830
- var g = Error(
1831
- (s || "React class") + ": " + i + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
1832
- );
1833
- throw g.name = "Invariant Violation", g;
1834
- }
1835
- u = a[c](o, c, s, i, null, t);
1836
- } catch (b) {
1837
- u = b;
1838
- }
1839
- if (u && !(u instanceof Error) && e(
1840
- (s || "React class") + ": type specification of " + i + " `" + c + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof u + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1841
- ), u instanceof Error && !(u.message in r)) {
1842
- r[u.message] = !0;
1843
- var h = l ? l() : "";
1844
- e(
1845
- "Failed " + i + " type: " + u.message + (h ?? "")
1846
- );
1847
- }
1848
- }
1849
- }
1850
- }
1851
- return n.resetWarningCache = function() {
1852
- process.env.NODE_ENV !== "production" && (r = {});
1853
- }, vt = n, vt;
1854
- }
1855
- var yt, Zt;
1856
- function vA() {
1857
- if (Zt) return yt;
1858
- Zt = 1;
1859
- var e = En(), t = mA(), r = /* @__PURE__ */ xt(), A = /* @__PURE__ */ bn(), n = /* @__PURE__ */ hA(), a = function() {
1860
- };
1861
- process.env.NODE_ENV !== "production" && (a = function(i) {
1862
- var s = "Warning: " + i;
1863
- typeof console < "u" && console.error(s);
1864
- try {
1865
- throw new Error(s);
1866
- } catch {
1867
- }
1868
- });
1869
- function o() {
1870
- return null;
1871
- }
1872
- return yt = function(i, s) {
1873
- var l = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
1874
- function u(m) {
1875
- var w = m && (l && m[l] || m[c]);
1876
- if (typeof w == "function")
1877
- return w;
1878
- }
1879
- var g = "<<anonymous>>", h = {
1880
- array: S("array"),
1881
- bigint: S("bigint"),
1882
- bool: S("boolean"),
1883
- func: S("function"),
1884
- number: S("number"),
1885
- object: S("object"),
1886
- string: S("string"),
1887
- symbol: S("symbol"),
1888
- any: D(),
1889
- arrayOf: E,
1890
- element: v(),
1891
- elementType: p(),
1892
- instanceOf: U,
1893
- node: Ae(),
1894
- objectOf: V,
1895
- oneOf: $,
1896
- oneOfType: oe,
1897
- shape: ge,
1898
- exact: re
1899
- };
1900
- function b(m, w) {
1901
- return m === w ? m !== 0 || 1 / m === 1 / w : m !== m && w !== w;
1902
- }
1903
- function C(m, w) {
1904
- this.message = m, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
1905
- }
1906
- C.prototype = Error.prototype;
1907
- function f(m) {
1908
- if (process.env.NODE_ENV !== "production")
1909
- var w = {}, F = 0;
1910
- function x(N, I, M, L, z, q, te) {
1911
- if (L = L || g, q = q || M, te !== r) {
1912
- if (s) {
1913
- var P = new Error(
1914
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
1915
- );
1916
- throw P.name = "Invariant Violation", P;
1917
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1918
- var ce = L + ":" + M;
1919
- !w[ce] && // Avoid spamming the console because they are often not actionable except for lib authors
1920
- F < 3 && (a(
1921
- "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + L + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
1922
- ), w[ce] = !0, F++);
1923
- }
1924
- }
1925
- return I[M] == null ? N ? I[M] === null ? new C("The " + z + " `" + q + "` is marked as required " + ("in `" + L + "`, but its value is `null`.")) : new C("The " + z + " `" + q + "` is marked as required in " + ("`" + L + "`, but its value is `undefined`.")) : null : m(I, M, L, z, q);
1926
- }
1927
- var B = x.bind(null, !1);
1928
- return B.isRequired = x.bind(null, !0), B;
1929
- }
1930
- function S(m) {
1931
- function w(F, x, B, N, I, M) {
1932
- var L = F[x], z = Y(L);
1933
- if (z !== m) {
1934
- var q = j(L);
1935
- return new C(
1936
- "Invalid " + N + " `" + I + "` of type " + ("`" + q + "` supplied to `" + B + "`, expected ") + ("`" + m + "`."),
1937
- { expectedType: m }
1938
- );
1939
- }
1940
- return null;
1941
- }
1942
- return f(w);
1943
- }
1944
- function D() {
1945
- return f(o);
1946
- }
1947
- function E(m) {
1948
- function w(F, x, B, N, I) {
1949
- if (typeof m != "function")
1950
- return new C("Property `" + I + "` of component `" + B + "` has invalid PropType notation inside arrayOf.");
1951
- var M = F[x];
1952
- if (!Array.isArray(M)) {
1953
- var L = Y(M);
1954
- return new C("Invalid " + N + " `" + I + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected an array."));
1955
- }
1956
- for (var z = 0; z < M.length; z++) {
1957
- var q = m(M, z, B, N, I + "[" + z + "]", r);
1958
- if (q instanceof Error)
1959
- return q;
1960
- }
1961
- return null;
1962
- }
1963
- return f(w);
1964
- }
1965
- function v() {
1966
- function m(w, F, x, B, N) {
1967
- var I = w[F];
1968
- if (!i(I)) {
1969
- var M = Y(I);
1970
- return new C("Invalid " + B + " `" + N + "` of type " + ("`" + M + "` supplied to `" + x + "`, expected a single ReactElement."));
1971
- }
1972
- return null;
1973
- }
1974
- return f(m);
1975
- }
1976
- function p() {
1977
- function m(w, F, x, B, N) {
1978
- var I = w[F];
1979
- if (!e.isValidElementType(I)) {
1980
- var M = Y(I);
1981
- return new C("Invalid " + B + " `" + N + "` of type " + ("`" + M + "` supplied to `" + x + "`, expected a single ReactElement type."));
1982
- }
1983
- return null;
1984
- }
1985
- return f(m);
1986
- }
1987
- function U(m) {
1988
- function w(F, x, B, N, I) {
1989
- if (!(F[x] instanceof m)) {
1990
- var M = m.name || g, L = X(F[x]);
1991
- return new C("Invalid " + N + " `" + I + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected ") + ("instance of `" + M + "`."));
1992
- }
1993
- return null;
1994
- }
1995
- return f(w);
1996
- }
1997
- function $(m) {
1998
- if (!Array.isArray(m))
1999
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
2000
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2001
- ) : a("Invalid argument supplied to oneOf, expected an array.")), o;
2002
- function w(F, x, B, N, I) {
2003
- for (var M = F[x], L = 0; L < m.length; L++)
2004
- if (b(M, m[L]))
2005
- return null;
2006
- var z = JSON.stringify(m, function(te, P) {
2007
- var ce = j(P);
2008
- return ce === "symbol" ? String(P) : P;
2009
- });
2010
- return new C("Invalid " + N + " `" + I + "` of value `" + String(M) + "` " + ("supplied to `" + B + "`, expected one of " + z + "."));
2011
- }
2012
- return f(w);
2013
- }
2014
- function V(m) {
2015
- function w(F, x, B, N, I) {
2016
- if (typeof m != "function")
2017
- return new C("Property `" + I + "` of component `" + B + "` has invalid PropType notation inside objectOf.");
2018
- var M = F[x], L = Y(M);
2019
- if (L !== "object")
2020
- return new C("Invalid " + N + " `" + I + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected an object."));
2021
- for (var z in M)
2022
- if (A(M, z)) {
2023
- var q = m(M, z, B, N, I + "." + z, r);
2024
- if (q instanceof Error)
2025
- return q;
2026
- }
2027
- return null;
2028
- }
2029
- return f(w);
2030
- }
2031
- function oe(m) {
2032
- if (!Array.isArray(m))
2033
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), o;
2034
- for (var w = 0; w < m.length; w++) {
2035
- var F = m[w];
2036
- if (typeof F != "function")
2037
- return a(
2038
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(F) + " at index " + w + "."
2039
- ), o;
2040
- }
2041
- function x(B, N, I, M, L) {
2042
- for (var z = [], q = 0; q < m.length; q++) {
2043
- var te = m[q], P = te(B, N, I, M, L, r);
2044
- if (P == null)
2045
- return null;
2046
- P.data && A(P.data, "expectedType") && z.push(P.data.expectedType);
2047
- }
2048
- var ce = z.length > 0 ? ", expected one of type [" + z.join(", ") + "]" : "";
2049
- return new C("Invalid " + M + " `" + L + "` supplied to " + ("`" + I + "`" + ce + "."));
2050
- }
2051
- return f(x);
2052
- }
2053
- function Ae() {
2054
- function m(w, F, x, B, N) {
2055
- return W(w[F]) ? null : new C("Invalid " + B + " `" + N + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
2056
- }
2057
- return f(m);
2058
- }
2059
- function ue(m, w, F, x, B) {
2060
- return new C(
2061
- (m || "React class") + ": " + w + " type `" + F + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + B + "`."
2062
- );
2063
- }
2064
- function ge(m) {
2065
- function w(F, x, B, N, I) {
2066
- var M = F[x], L = Y(M);
2067
- if (L !== "object")
2068
- return new C("Invalid " + N + " `" + I + "` of type `" + L + "` " + ("supplied to `" + B + "`, expected `object`."));
2069
- for (var z in m) {
2070
- var q = m[z];
2071
- if (typeof q != "function")
2072
- return ue(B, N, I, z, j(q));
2073
- var te = q(M, z, B, N, I + "." + z, r);
2074
- if (te)
2075
- return te;
2076
- }
2077
- return null;
2078
- }
2079
- return f(w);
2080
- }
2081
- function re(m) {
2082
- function w(F, x, B, N, I) {
2083
- var M = F[x], L = Y(M);
2084
- if (L !== "object")
2085
- return new C("Invalid " + N + " `" + I + "` of type `" + L + "` " + ("supplied to `" + B + "`, expected `object`."));
2086
- var z = t({}, F[x], m);
2087
- for (var q in z) {
2088
- var te = m[q];
2089
- if (A(m, q) && typeof te != "function")
2090
- return ue(B, N, I, q, j(te));
2091
- if (!te)
2092
- return new C(
2093
- "Invalid " + N + " `" + I + "` key `" + q + "` supplied to `" + B + "`.\nBad object: " + JSON.stringify(F[x], null, " ") + `
2094
- Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
2095
- );
2096
- var P = te(M, q, B, N, I + "." + q, r);
2097
- if (P)
2098
- return P;
2099
- }
2100
- return null;
2101
- }
2102
- return f(w);
2103
- }
2104
- function W(m) {
2105
- switch (typeof m) {
2106
- case "number":
2107
- case "string":
2108
- case "undefined":
2109
- return !0;
2110
- case "boolean":
2111
- return !m;
2112
- case "object":
2113
- if (Array.isArray(m))
2114
- return m.every(W);
2115
- if (m === null || i(m))
2116
- return !0;
2117
- var w = u(m);
2118
- if (w) {
2119
- var F = w.call(m), x;
2120
- if (w !== m.entries) {
2121
- for (; !(x = F.next()).done; )
2122
- if (!W(x.value))
2123
- return !1;
2124
- } else
2125
- for (; !(x = F.next()).done; ) {
2126
- var B = x.value;
2127
- if (B && !W(B[1]))
2128
- return !1;
2129
- }
2130
- } else
2131
- return !1;
2132
- return !0;
2133
- default:
2134
- return !1;
2135
- }
2136
- }
2137
- function K(m, w) {
2138
- return m === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
2139
- }
2140
- function Y(m) {
2141
- var w = typeof m;
2142
- return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : K(w, m) ? "symbol" : w;
2143
- }
2144
- function j(m) {
2145
- if (typeof m > "u" || m === null)
2146
- return "" + m;
2147
- var w = Y(m);
2148
- if (w === "object") {
2149
- if (m instanceof Date)
2150
- return "date";
2151
- if (m instanceof RegExp)
2152
- return "regexp";
2153
- }
2154
- return w;
2155
- }
2156
- function Q(m) {
2157
- var w = j(m);
2158
- switch (w) {
2159
- case "array":
2160
- case "object":
2161
- return "an " + w;
2162
- case "boolean":
2163
- case "date":
2164
- case "regexp":
2165
- return "a " + w;
2166
- default:
2167
- return w;
2168
- }
2169
- }
2170
- function X(m) {
2171
- return !m.constructor || !m.constructor.name ? g : m.constructor.name;
2172
- }
2173
- return h.checkPropTypes = n, h.resetWarningCache = n.resetWarningCache, h.PropTypes = h, h;
2174
- }, yt;
2175
- }
2176
- var Et, Xt;
2177
- function yA() {
2178
- if (Xt) return Et;
2179
- Xt = 1;
2180
- var e = /* @__PURE__ */ xt();
2181
- function t() {
2182
- }
2183
- function r() {
2184
- }
2185
- return r.resetWarningCache = t, Et = function() {
2186
- function A(o, i, s, l, c, u) {
2187
- if (u !== e) {
2188
- var g = new Error(
2189
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2190
- );
2191
- throw g.name = "Invariant Violation", g;
2192
- }
2193
- }
2194
- A.isRequired = A;
2195
- function n() {
2196
- return A;
2197
- }
2198
- var a = {
2199
- array: A,
2200
- bigint: A,
2201
- bool: A,
2202
- func: A,
2203
- number: A,
2204
- object: A,
2205
- string: A,
2206
- symbol: A,
2207
- any: A,
2208
- arrayOf: n,
2209
- element: A,
2210
- elementType: A,
2211
- instanceOf: n,
2212
- node: A,
2213
- objectOf: n,
2214
- oneOf: n,
2215
- oneOfType: n,
2216
- shape: n,
2217
- exact: n,
2218
- checkPropTypes: r,
2219
- resetWarningCache: t
2220
- };
2221
- return a.PropTypes = a, a;
2222
- }, Et;
2223
- }
2224
- var Kt;
2225
- function EA() {
2226
- if (Kt) return Ke.exports;
2227
- if (Kt = 1, process.env.NODE_ENV !== "production") {
2228
- var e = En(), t = !0;
2229
- Ke.exports = /* @__PURE__ */ vA()(e.isElement, t);
2230
- } else
2231
- Ke.exports = /* @__PURE__ */ yA()();
2232
- return Ke.exports;
2233
- }
2234
- var bA = /* @__PURE__ */ EA();
2235
- const y = /* @__PURE__ */ sn(bA);
2236
- var At = function(t) {
2237
- return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
2238
- }, le = {
2239
- id: "__id__",
2240
- display: "__display__"
2241
- }, $t = function(t, r) {
2242
- De(r === "id" || r === "display", 'Second arg must be either "id" or "display", got: "'.concat(r, '"'));
2243
- var A = t.indexOf(le.display), n = t.indexOf(le.id);
2244
- return A < 0 && (A = null), n < 0 && (n = null), De(A !== null || n !== null, "The markup '".concat(t, "' does not contain either of the placeholders '__id__' or '__display__'")), A !== null && n !== null ? r === "id" && n <= A || r === "display" && A <= n ? 0 : 1 : 0;
2245
- }, CA = function(t) {
2246
- var r = /^\/(.+)\/(\w+)?$/;
2247
- return new RegExp(t.map(function(A) {
2248
- var n = r.exec(A.toString()), a = it(n, 3), o = a[1], i = a[2];
2249
- return De(!i, "RegExp flags are not supported. Change /".concat(o, "/").concat(i, " into /").concat(o, "/")), "(".concat(o, ")");
2250
- }).join("|"), "g");
2251
- }, Cn = function(t) {
2252
- var r = 0;
2253
- return t.indexOf("__id__") >= 0 && r++, t.indexOf("__display__") >= 0 && r++, r;
2254
- }, SA = function() {
2255
- }, Je = function(t, r, A) {
2256
- for (var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : SA, a = CA(r.map(function(p) {
2257
- return p.regex;
2258
- })), o = 2, i = r.map(function(p) {
2259
- var U = p.markup, $ = o;
2260
- return o += Cn(U) + 1, $;
2261
- }), s, l = 0, c = 0; (s = a.exec(t)) !== null; ) {
2262
- var u = i.find(function(p) {
2263
- return !!s[p];
2264
- }), g = i.indexOf(u), h = r[g], b = h.markup, C = h.displayTransform, f = u + $t(b, "id"), S = u + $t(b, "display"), D = s[f], E = C(D, s[S]), v = t.substring(l, s.index);
2265
- n(v, l, c), c += v.length, A(s[0], s.index, c, D, E, g, l), c += E.length, l = a.lastIndex;
2266
- }
2267
- l < t.length && n(t.substring(l), l, c);
2268
- }, ve = function(t, r) {
2269
- var A = "";
2270
- return Je(t, r, function(n, a, o, i, s) {
2271
- A += s;
2272
- }, function(n) {
2273
- A += n;
2274
- }), A;
2275
- }, ee = function(t, r, A) {
2276
- var n = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "START";
2277
- if (typeof A != "number")
2278
- return A;
2279
- var a, o = function(l, c, u) {
2280
- a === void 0 && u + l.length >= A && (a = c + A - u);
2281
- }, i = function(l, c, u, g, h, b, C) {
2282
- a === void 0 && u + h.length > A && (n === "NULL" ? a = null : a = c + (n === "END" ? l.length : 0));
2283
- };
2284
- return Je(t, r, i, o), a === void 0 ? t.length : a;
2285
- }, _e = function(t, r, A, n) {
2286
- return t.substring(0, r) + n + t.substring(A);
2287
- }, wA = function(t, r, A, n) {
2288
- var a = A.selectionStartBefore, o = A.selectionEndBefore, i = A.selectionEndAfter, s = ve(t, n), l = s.length - r.length;
2289
- a === "undefined" && (a = i + l), o === "undefined" && (o = a), a === o && o === i && s.length === r.length && (a = a - 1);
2290
- var c = r.slice(a, i), u = Math.min(a, i), g = o;
2291
- a === i && (g = Math.max(o, a + l));
2292
- var h = ee(t, n, u, "START"), b = ee(t, n, g, "END"), C = ee(t, n, u, "NULL"), f = ee(t, n, g, "NULL"), S = C === null || f === null, D = _e(t, h, b, c);
2293
- if (!S) {
2294
- var E = ve(D, n);
2295
- if (E !== r) {
2296
- for (u = 0; r[u] === E[u]; )
2297
- u++;
2298
- c = r.slice(u, i), g = s.lastIndexOf(r.substring(i)), h = ee(t, n, u, "START"), b = ee(t, n, g, "END"), D = _e(t, h, b, c);
2299
- }
2300
- }
2301
- return D;
2302
- }, en = function(t, r, A) {
2303
- var n = A, a = !1, o = function(s, l, c, u, g, h, b) {
2304
- c <= A && c + g.length > A && (n = c, a = !0);
2305
- };
2306
- if (Je(t, r, o), a)
2307
- return n;
2308
- }, ke = function(t, r) {
2309
- var A = [];
2310
- return Je(t, r, function(n, a, o, i, s, l, c) {
2311
- A.push({
2312
- id: i,
2313
- display: s,
2314
- childIndex: l,
2315
- index: a,
2316
- plainTextIndex: o
2317
- });
2318
- }), A;
2319
- }, Sn = function(t, r) {
2320
- return "".concat(t, "-").concat(r);
2321
- }, et = function(t) {
2322
- return Object.values(t).reduce(function(r, A) {
2323
- var n = A.results;
2324
- return r + n.length;
2325
- }, 0);
2326
- }, PA = function(t, r) {
2327
- var A = ke(t, r), n = A[A.length - 1];
2328
- return n ? n.plainTextIndex + n.display.length : 0;
2329
- }, OA = function(t) {
2330
- var r = At(t), A = t[t.indexOf(le.display) + le.display.length], n = t[t.indexOf(le.id) + le.id.length];
2331
- return new RegExp(r.replace(le.display, "([^".concat(At(A || ""), "]+?)")).replace(le.id, "([^".concat(At(n || ""), "]+?)")));
2332
- }, he = function(t) {
2333
- return He.toArray(t).map(function(r) {
2334
- var A = r.props, n = A.markup, a = A.regex, o = A.displayTransform;
2335
- return {
2336
- markup: n,
2337
- regex: a ? DA(a, n) : OA(n),
2338
- displayTransform: o || function(i, s) {
2339
- return s || i;
2340
- }
2341
- };
2342
- });
2343
- }, DA = function(t, r) {
2344
- var A = new RegExp(t.toString() + "|").exec("").length - 1, n = Cn(r);
2345
- return De(A === n, "Number of capturing groups in RegExp ".concat(t.toString(), " (").concat(A, ") does not match the number of placeholders in the markup '").concat(r, "' (").concat(n, ")")), t;
2346
- }, BA = function(t, r, A) {
2347
- return t.replace(le.id, r).replace(le.display, A);
2348
- }, xA = [{
2349
- base: "A",
2350
- letters: /(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g
2351
- }, {
2352
- base: "AA",
2353
- letters: /(&#42802;|[\uA732])/g
2354
- }, {
2355
- base: "AE",
2356
- letters: /(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g
2357
- }, {
2358
- base: "AO",
2359
- letters: /(&#42804;|[\uA734])/g
2360
- }, {
2361
- base: "AU",
2362
- letters: /(&#42806;|[\uA736])/g
2363
- }, {
2364
- base: "AV",
2365
- letters: /(&#42808;|&#42810;|[\uA738\uA73A])/g
2366
- }, {
2367
- base: "AY",
2368
- letters: /(&#42812;|[\uA73C])/g
2369
- }, {
2370
- base: "B",
2371
- letters: /(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g
2372
- }, {
2373
- base: "C",
2374
- letters: /(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g
2375
- }, {
2376
- base: "D",
2377
- letters: /(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g
2378
- }, {
2379
- base: "DZ",
2380
- letters: /(&#497;|&#452;|[\u01F1\u01C4])/g
2381
- }, {
2382
- base: "Dz",
2383
- letters: /(&#498;|&#453;|[\u01F2\u01C5])/g
2384
- }, {
2385
- base: "E",
2386
- letters: /(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g
2387
- }, {
2388
- base: "F",
2389
- letters: /(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g
2390
- }, {
2391
- base: "G",
2392
- letters: /(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g
2393
- }, {
2394
- base: "H",
2395
- letters: /(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g
2396
- }, {
2397
- base: "I",
2398
- letters: /(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g
2399
- }, {
2400
- base: "J",
2401
- letters: /(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g
2402
- }, {
2403
- base: "K",
2404
- letters: /(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g
2405
- }, {
2406
- base: "L",
2407
- letters: /(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g
2408
- }, {
2409
- base: "LJ",
2410
- letters: /(&#455;|[\u01C7])/g
2411
- }, {
2412
- base: "Lj",
2413
- letters: /(&#456;|[\u01C8])/g
2414
- }, {
2415
- base: "M",
2416
- letters: /(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g
2417
- }, {
2418
- base: "N",
2419
- letters: /(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g
2420
- }, {
2421
- base: "NJ",
2422
- letters: /(&#458;|[\u01CA])/g
2423
- }, {
2424
- base: "Nj",
2425
- letters: /(&#459;|[\u01CB])/g
2426
- }, {
2427
- base: "O",
2428
- letters: /(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g
2429
- }, {
2430
- base: "OE",
2431
- letters: /(&#338;|[\u0152])/g
2432
- }, {
2433
- base: "OI",
2434
- letters: /(&#418;|[\u01A2])/g
2435
- }, {
2436
- base: "OO",
2437
- letters: /(&#42830;|[\uA74E])/g
2438
- }, {
2439
- base: "OU",
2440
- letters: /(&#546;|[\u0222])/g
2441
- }, {
2442
- base: "P",
2443
- letters: /(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g
2444
- }, {
2445
- base: "Q",
2446
- letters: /(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g
2447
- }, {
2448
- base: "R",
2449
- letters: /(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g
2450
- }, {
2451
- base: "S",
2452
- letters: /(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g
2453
- }, {
2454
- base: "T",
2455
- letters: /(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g
2456
- }, {
2457
- base: "TH",
2458
- letters: /(&#222;|[\u00DE])/g
2459
- }, {
2460
- base: "TZ",
2461
- letters: /(&#42792;|[\uA728])/g
2462
- }, {
2463
- base: "U",
2464
- letters: /(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g
2465
- }, {
2466
- base: "V",
2467
- letters: /(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g
2468
- }, {
2469
- base: "VY",
2470
- letters: /(&#42848;|[\uA760])/g
2471
- }, {
2472
- base: "W",
2473
- letters: /(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g
2474
- }, {
2475
- base: "X",
2476
- letters: /(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g
2477
- }, {
2478
- base: "Y",
2479
- letters: /(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g
2480
- }, {
2481
- base: "Z",
2482
- letters: /(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g
2483
- }, {
2484
- base: "a",
2485
- letters: /(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g
2486
- }, {
2487
- base: "aa",
2488
- letters: /(&#42803;|[\uA733])/g
2489
- }, {
2490
- base: "ae",
2491
- letters: /(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g
2492
- }, {
2493
- base: "ao",
2494
- letters: /(&#42805;|[\uA735])/g
2495
- }, {
2496
- base: "au",
2497
- letters: /(&#42807;|[\uA737])/g
2498
- }, {
2499
- base: "av",
2500
- letters: /(&#42809;|&#42811;|[\uA739\uA73B])/g
2501
- }, {
2502
- base: "ay",
2503
- letters: /(&#42813;|[\uA73D])/g
2504
- }, {
2505
- base: "b",
2506
- letters: /(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g
2507
- }, {
2508
- base: "c",
2509
- letters: /(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g
2510
- }, {
2511
- base: "d",
2512
- letters: /(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g
2513
- }, {
2514
- base: "dz",
2515
- letters: /(&#499;|&#454;|[\u01F3\u01C6])/g
2516
- }, {
2517
- base: "e",
2518
- letters: /(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g
2519
- }, {
2520
- base: "f",
2521
- letters: /(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g
2522
- }, {
2523
- base: "g",
2524
- letters: /(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g
2525
- }, {
2526
- base: "h",
2527
- letters: /(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g
2528
- }, {
2529
- base: "hv",
2530
- letters: /(&#405;|[\u0195])/g
2531
- }, {
2532
- base: "i",
2533
- letters: /(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g
2534
- }, {
2535
- base: "ij",
2536
- letters: /(&#307;|[\u0133])/g
2537
- }, {
2538
- base: "j",
2539
- letters: /(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g
2540
- }, {
2541
- base: "k",
2542
- letters: /(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g
2543
- }, {
2544
- base: "l",
2545
- letters: /(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g
2546
- }, {
2547
- base: "lj",
2548
- letters: /(&#457;|[\u01C9])/g
2549
- }, {
2550
- base: "m",
2551
- letters: /(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g
2552
- }, {
2553
- base: "n",
2554
- letters: /(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g
2555
- }, {
2556
- base: "nj",
2557
- letters: /(&#460;|[\u01CC])/g
2558
- }, {
2559
- base: "o",
2560
- letters: /(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g
2561
- }, {
2562
- base: "oe",
2563
- letters: /(&#339;|[\u0153])/g
2564
- }, {
2565
- base: "oi",
2566
- letters: /(&#419;|[\u01A3])/g
2567
- }, {
2568
- base: "ou",
2569
- letters: /(&#547;|[\u0223])/g
2570
- }, {
2571
- base: "oo",
2572
- letters: /(&#42831;|[\uA74F])/g
2573
- }, {
2574
- base: "p",
2575
- letters: /(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g
2576
- }, {
2577
- base: "q",
2578
- letters: /(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g
2579
- }, {
2580
- base: "r",
2581
- letters: /(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g
2582
- }, {
2583
- base: "s",
2584
- letters: /(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g
2585
- }, {
2586
- base: "ss",
2587
- letters: /(&#223;|[\u00DF])/g
2588
- }, {
2589
- base: "t",
2590
- letters: /(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g
2591
- }, {
2592
- base: "th",
2593
- letters: /(&#254;|[\u00FE])/g
2594
- }, {
2595
- base: "tz",
2596
- letters: /(&#42793;|[\uA729])/g
2597
- }, {
2598
- base: "u",
2599
- letters: /(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g
2600
- }, {
2601
- base: "v",
2602
- letters: /(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g
2603
- }, {
2604
- base: "vy",
2605
- letters: /(&#42849;|[\uA761])/g
2606
- }, {
2607
- base: "w",
2608
- letters: /(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g
2609
- }, {
2610
- base: "x",
2611
- letters: /(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g
2612
- }, {
2613
- base: "y",
2614
- letters: /(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g
2615
- }, {
2616
- base: "z",
2617
- letters: /(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g
2618
- }], FA = function(t) {
2619
- var r = t;
2620
- return xA.forEach(function(A) {
2621
- r = r.replace(A.letters, A.base);
2622
- }), r;
2623
- }, tn = function(t) {
2624
- return FA(t).toLowerCase();
2625
- }, wn = function(t, r, A) {
2626
- return A ? tn(t).indexOf(tn(r)) : t.toLowerCase().indexOf(r.toLowerCase());
2627
- }, RA = function() {
2628
- return !!document.documentMode;
2629
- }, Ot = function(t) {
2630
- return typeof t == "number";
2631
- }, TA = function(t) {
2632
- return t === Object(t) ? Object.keys(t) : [];
2633
- }, IA = function(t) {
2634
- for (var r, A = arguments.length, n = new Array(A > 1 ? A - 1 : 0), a = 1; a < A; a++)
2635
- n[a - 1] = arguments[a];
2636
- var o = (r = []).concat.apply(r, n);
2637
- return Object.keys(t).reduce(function(i, s) {
2638
- return t.hasOwnProperty(s) && !o.includes(s) && t[s] !== void 0 && (i[s] = t[s]), i;
2639
- }, {});
2640
- }, MA = ["style", "className", "classNames"];
2641
- function nn(e, t) {
2642
- var r = Object.keys(e);
2643
- if (Object.getOwnPropertySymbols) {
2644
- var A = Object.getOwnPropertySymbols(e);
2645
- t && (A = A.filter(function(n) {
2646
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
2647
- })), r.push.apply(r, A);
2648
- }
2649
- return r;
2650
- }
2651
- function rn(e) {
2652
- for (var t = 1; t < arguments.length; t++) {
2653
- var r = arguments[t] != null ? arguments[t] : {};
2654
- t % 2 ? nn(Object(r), !0).forEach(function(A) {
2655
- R(e, A, r[A]);
2656
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : nn(Object(r)).forEach(function(A) {
2657
- Object.defineProperty(e, A, Object.getOwnPropertyDescriptor(r, A));
2658
- });
2659
- }
2660
- return e;
2661
- }
2662
- function st(e, t) {
2663
- var r = function(n) {
2664
- var a = function(s) {
2665
- var l = s.style, c = s.className, u = s.classNames, g = Zr(s, MA), h = t ? t(g) : void 0, b = Bt(e, {
2666
- style: l,
2667
- className: c,
2668
- classNames: u
2669
- }, h);
2670
- return /* @__PURE__ */ k.createElement(n, ae({}, g, {
2671
- style: b
2672
- }));
2673
- }, o = n.displayName || n.name || "Component";
2674
- return a.displayName = "defaultStyle(".concat(o, ")"), /* @__PURE__ */ k.forwardRef(function(i, s) {
2675
- return a(rn(rn({}, i), {}, {
2676
- ref: s
2677
- }));
2678
- });
2679
- };
2680
- return r;
2681
- }
2682
- var jA = function(t, r) {
2683
- return t.hasOwnProperty(r) ? t[r]++ : t[r] = 0, r + "_" + t[r];
2684
- };
2685
- function Pn(e) {
2686
- var t = e.selectionStart, r = e.selectionEnd, A = e.value, n = A === void 0 ? "" : A, a = e.onCaretPositionChange, o = e.containerRef, i = e.children;
2687
- e.singleLine;
2688
- var s = e.style, l = Z({
2689
- left: void 0,
2690
- top: void 0
2691
- }), c = it(l, 2), u = c[0], g = c[1], h = Z(), b = it(h, 2), C = b[0], f = b[1];
2692
- Ee(function() {
2693
- S();
2694
- });
2695
- var S = function() {
2696
- if (C) {
2697
- var W = C.offsetLeft, K = C.offsetTop;
2698
- if (!(u.left === W && u.top === K)) {
2699
- var Y = {
2700
- left: W,
2701
- top: K
2702
- };
2703
- g(Y), a(Y);
2704
- }
2705
- }
2706
- }, D = he(i), E;
2707
- r === t && (E = ee(n, D, t, "START"));
2708
- var v = [], p = {}, U = v, $ = 0, V = function(W, K, Y) {
2709
- if (Ot(E) && E >= K && E <= K + W.length) {
2710
- var j = E - K;
2711
- U.push(Ae(W.substring(0, j), $)), U = [Ae(W.substring(j), $)];
2712
- } else
2713
- U.push(Ae(W, $));
2714
- $++;
2715
- }, oe = function(W, K, Y, j, Q, X, m) {
2716
- var w = jA(p, j);
2717
- U.push(ue(j, Q, X, w));
2718
- }, Ae = function(W, K) {
2719
- return /* @__PURE__ */ k.createElement("span", ae({}, s("substring"), {
2720
- key: K
2721
- }), W);
2722
- }, ue = function(W, K, Y, j) {
2723
- var Q = {
2724
- id: W,
2725
- display: K,
2726
- key: j
2727
- }, X = He.toArray(i)[Y];
2728
- return /* @__PURE__ */ k.cloneElement(X, Q);
2729
- }, ge = function(W) {
2730
- return /* @__PURE__ */ k.createElement("span", ae({}, s("caret"), {
2731
- ref: f,
2732
- key: "caret"
2733
- }), W);
2734
- };
2735
- return Je(n, D, oe, V), U.push(" "), U !== v && v.push(ge(U)), /* @__PURE__ */ k.createElement("div", ae({}, s, {
2736
- ref: o
2737
- }), v);
2738
- }
2739
- Pn.propTypes = {
2740
- selectionStart: y.number,
2741
- selectionEnd: y.number,
2742
- value: y.string.isRequired,
2743
- onCaretPositionChange: y.func.isRequired,
2744
- containerRef: y.oneOfType([y.func, y.shape({
2745
- current: typeof Element > "u" ? y.any : y.instanceOf(Element)
2746
- })]),
2747
- children: y.oneOfType([y.element, y.arrayOf(y.element)]).isRequired
2748
- };
2749
- var NA = st({
2750
- position: "relative",
2751
- boxSizing: "border-box",
2752
- width: "100%",
2753
- color: "transparent",
2754
- overflow: "hidden",
2755
- whiteSpace: "pre-wrap",
2756
- wordWrap: "break-word",
2757
- border: "1px solid transparent",
2758
- textAlign: "start",
2759
- "&singleLine": {
2760
- whiteSpace: "pre",
2761
- wordWrap: null
2762
- },
2763
- substring: {
2764
- visibility: "hidden"
2765
- }
2766
- }, function(e) {
2767
- return {
2768
- "&singleLine": e.singleLine
2769
- };
2770
- }), LA = NA(Pn);
2771
- function On(e) {
2772
- var t = e.id, r = e.focused, A = e.ignoreAccents, n = e.index, a = e.onClick, o = e.onMouseEnter, i = e.query, s = e.renderSuggestion, l = e.suggestion, c = e.style;
2773
- e.className, e.classNames;
2774
- var u = {
2775
- onClick: a,
2776
- onMouseEnter: o
2777
- }, g = function() {
2778
- var f = h(), S = b(f);
2779
- return s ? s(l, i, S, n, r) : S;
2780
- }, h = function() {
2781
- if (typeof l == "string")
2782
- return l;
2783
- var f = l.id, S = l.display;
2784
- return f === void 0 || !S ? f : S;
2785
- }, b = function(f) {
2786
- var S = wn(f, i, A);
2787
- return S === -1 ? /* @__PURE__ */ k.createElement("span", c("display"), f) : /* @__PURE__ */ k.createElement("span", c("display"), f.substring(0, S), /* @__PURE__ */ k.createElement("b", c("highlight"), f.substring(S, S + i.length)), f.substring(S + i.length));
2788
- };
2789
- return /* @__PURE__ */ k.createElement("li", ae({
2790
- id: t,
2791
- role: "option",
2792
- "aria-selected": r
2793
- }, u, c), g());
2794
- }
2795
- On.propTypes = {
2796
- id: y.string.isRequired,
2797
- query: y.string.isRequired,
2798
- index: y.number.isRequired,
2799
- ignoreAccents: y.bool,
2800
- suggestion: y.oneOfType([y.string, y.shape({
2801
- id: y.oneOfType([y.string, y.number]).isRequired,
2802
- display: y.string
2803
- })]).isRequired,
2804
- renderSuggestion: y.func,
2805
- focused: y.bool
2806
- };
2807
- var qA = st({
2808
- cursor: "pointer"
2809
- }, function(e) {
2810
- return {
2811
- "&focused": e.focused
2812
- };
2813
- }), kA = qA(On);
2814
- function _A(e) {
2815
- var t = e.style, r = e.className, A = e.classNames, n = Bt(HA, {
2816
- style: t,
2817
- className: r,
2818
- classNames: A
2819
- }), a = n("spinner");
2820
- return /* @__PURE__ */ k.createElement("div", n, /* @__PURE__ */ k.createElement("div", a, /* @__PURE__ */ k.createElement("div", a(["element", "element1"])), /* @__PURE__ */ k.createElement("div", a(["element", "element2"])), /* @__PURE__ */ k.createElement("div", a(["element", "element3"])), /* @__PURE__ */ k.createElement("div", a(["element", "element4"])), /* @__PURE__ */ k.createElement("div", a(["element", "element5"]))));
2821
- }
2822
- var HA = {};
2823
- function Dn(e) {
2824
- var t = e.id, r = e.suggestions, A = r === void 0 ? {} : r, n = e.a11ySuggestionsListLabel, a = e.focusIndex, o = e.position, i = e.left, s = e.right, l = e.top, c = e.scrollFocusedIntoView, u = e.isLoading, g = e.isOpened, h = e.onSelect, b = h === void 0 ? function() {
2825
- return null;
2826
- } : h, C = e.ignoreAccents, f = e.containerRef, S = e.children, D = e.style, E = e.customSuggestionsContainer, v = e.onMouseDown, p = e.onMouseEnter, U = Z(void 0), $ = it(U, 2), V = $[0], oe = $[1];
2827
- Ee(function() {
2828
- if (!(!V || V.offsetHeight >= V.scrollHeight || !c)) {
2829
- var Y = V.scrollTop, j = V.children[a].getBoundingClientRect(), Q = j.top, X = j.bottom, m = V.getBoundingClientRect(), w = m.top;
2830
- Q = Q - w + Y, X = X - w + Y, Q < Y ? V.scrollTop = Q : X > V.offsetHeight && (V.scrollTop = X - V.offsetHeight);
2831
- }
2832
- }, [a, c, V]);
2833
- var Ae = function() {
2834
- var j = /* @__PURE__ */ k.createElement("ul", ae({
2835
- ref: oe,
2836
- id: t,
2837
- role: "listbox",
2838
- "aria-label": n
2839
- }, D("list")), Object.values(A).reduce(function(Q, X) {
2840
- var m = X.results, w = X.queryInfo;
2841
- return [].concat(at(Q), at(m.map(function(F, x) {
2842
- return ue(F, w, Q.length + x);
2843
- })));
2844
- }, []));
2845
- return E ? E(j) : j;
2846
- }, ue = function(j, Q, X) {
2847
- var m = X === a, w = Q.childIndex, F = Q.query, x = He.toArray(S)[w].props.renderSuggestion;
2848
- return /* @__PURE__ */ k.createElement(kA, {
2849
- style: D("item"),
2850
- key: "".concat(w, "-").concat(K(j)),
2851
- id: Sn(t, X),
2852
- query: F,
2853
- index: X,
2854
- ignoreAccents: C,
2855
- renderSuggestion: x,
2856
- suggestion: j,
2857
- focused: m,
2858
- onClick: function() {
2859
- return W(j, Q);
2860
- },
2861
- onMouseEnter: function() {
2862
- return re(X);
2863
- }
2864
- });
2865
- }, ge = function() {
2866
- if (u)
2867
- return /* @__PURE__ */ k.createElement(_A, {
2868
- style: D("loadingIndicator")
2869
- });
2870
- }, re = function(j, Q) {
2871
- p && p(j);
2872
- }, W = function(j, Q) {
2873
- b(j, Q);
2874
- }, K = function(j) {
2875
- return typeof j == "string" ? j : j.id;
2876
- };
2877
- return g ? /* @__PURE__ */ k.createElement("div", ae({}, fA({
2878
- position: o || "absolute",
2879
- left: i,
2880
- right: s,
2881
- top: l
2882
- }, D), {
2883
- onMouseDown: v,
2884
- ref: f
2885
- }), Ae(), ge()) : null;
2886
- }
2887
- Dn.propTypes = {
2888
- id: y.string.isRequired,
2889
- suggestions: y.object.isRequired,
2890
- a11ySuggestionsListLabel: y.string,
2891
- focusIndex: y.number,
2892
- position: y.string,
2893
- left: y.number,
2894
- right: y.number,
2895
- top: y.number,
2896
- scrollFocusedIntoView: y.bool,
2897
- isLoading: y.bool,
2898
- isOpened: y.bool.isRequired,
2899
- onSelect: y.func,
2900
- ignoreAccents: y.bool,
2901
- customSuggestionsContainer: y.func,
2902
- containerRef: y.oneOfType([y.func, y.shape({
2903
- current: typeof Element > "u" ? y.any : y.instanceOf(Element)
2904
- })])
2905
- };
2906
- var UA = st({
2907
- zIndex: 1,
2908
- backgroundColor: "white",
2909
- marginTop: 14,
2910
- minWidth: 100,
2911
- list: {
2912
- margin: 0,
2913
- padding: 0,
2914
- listStyleType: "none"
2915
- }
2916
- }), zA = UA(Dn);
2917
- function An(e, t) {
2918
- var r = Object.keys(e);
2919
- if (Object.getOwnPropertySymbols) {
2920
- var A = Object.getOwnPropertySymbols(e);
2921
- t && (A = A.filter(function(n) {
2922
- return Object.getOwnPropertyDescriptor(e, n).enumerable;
2923
- })), r.push.apply(r, A);
2924
- }
2925
- return r;
2926
- }
2927
- function ie(e) {
2928
- for (var t = 1; t < arguments.length; t++) {
2929
- var r = arguments[t] != null ? arguments[t] : {};
2930
- t % 2 ? An(Object(r), !0).forEach(function(A) {
2931
- R(e, A, r[A]);
2932
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : An(Object(r)).forEach(function(A) {
2933
- Object.defineProperty(e, A, Object.getOwnPropertyDescriptor(r, A));
2934
- });
2935
- }
2936
- return e;
2937
- }
2938
- function YA(e) {
2939
- var t = WA();
2940
- return function() {
2941
- var A = ot(e), n;
2942
- if (t) {
2943
- var a = ot(this).constructor;
2944
- n = Reflect.construct(A, arguments, a);
2945
- } else
2946
- n = A.apply(this, arguments);
2947
- return zr(this, n);
2948
- };
2949
- }
2950
- function WA() {
2951
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
2952
- if (typeof Proxy == "function") return !0;
2953
- try {
2954
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2955
- })), !0;
2956
- } catch {
2957
- return !1;
2958
- }
2959
- }
2960
- var QA = function(t) {
2961
- var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2962
- if (t instanceof RegExp)
2963
- return t;
2964
- var A = r.allowSpaceInQuery, n = At(t);
2965
- return new RegExp("(?:^|\\s)(".concat(n, "([^").concat(A ? "" : "\\s").concat(n, "]*))$"));
2966
- }, GA = function(t, r) {
2967
- return t instanceof Array ? function(A, n) {
2968
- for (var a = [], o = 0, i = t.length; o < i; ++o) {
2969
- var s = t[o].display || t[o].id;
2970
- wn(s, A, r) >= 0 && a.push(t[o]);
2971
- }
2972
- return a;
2973
- } : t;
2974
- }, Pe = {
2975
- TAB: 9,
2976
- RETURN: 13,
2977
- ESC: 27,
2978
- UP: 38,
2979
- DOWN: 40
2980
- }, tt = !1, Bn = {
2981
- /**
2982
- * If set to `true` a regular text input element will be rendered
2983
- * instead of a textarea
2984
- */
2985
- singleLine: y.bool,
2986
- allowSpaceInQuery: y.bool,
2987
- allowSuggestionsAboveCursor: y.bool,
2988
- forceSuggestionsAboveCursor: y.bool,
2989
- ignoreAccents: y.bool,
2990
- a11ySuggestionsListLabel: y.string,
2991
- value: y.string,
2992
- onKeyDown: y.func,
2993
- customSuggestionsContainer: y.func,
2994
- onSelect: y.func,
2995
- onBlur: y.func,
2996
- onChange: y.func,
2997
- suggestionsPortalHost: typeof Element > "u" ? y.any : y.PropTypes.instanceOf(Element),
2998
- inputRef: y.oneOfType([y.func, y.shape({
2999
- current: typeof Element > "u" ? y.any : y.instanceOf(Element)
3000
- })]),
3001
- children: y.oneOfType([y.element, y.arrayOf(y.element)]).isRequired
3002
- }, Ft = /* @__PURE__ */ (function(e) {
3003
- Ur(r, e);
3004
- var t = YA(r);
3005
- function r(A) {
3006
- var n;
3007
- return kr(this, r), n = t.call(this, A), R(T(n), "setContainerElement", function(a) {
3008
- n.containerElement = a;
3009
- }), R(T(n), "getInputProps", function() {
3010
- var a = n.props, o = a.readOnly, i = a.disabled, s = a.style, l = IA(
3011
- n.props,
3012
- ["style", "classNames", "className"],
3013
- // substyle props
3014
- TA(Bn)
3015
- );
3016
- return ie(ie(ie(ie({}, l), s("input")), {}, {
3017
- value: n.getPlainText(),
3018
- onScroll: n.updateHighlighterScroll
3019
- }, !o && !i && {
3020
- onChange: n.handleChange,
3021
- onSelect: n.handleSelect,
3022
- onKeyDown: n.handleKeyDown,
3023
- onBlur: n.handleBlur,
3024
- onCompositionStart: n.handleCompositionStart,
3025
- onCompositionEnd: n.handleCompositionEnd
3026
- }), n.isOpened() && {
3027
- role: "combobox",
3028
- "aria-controls": n.uuidSuggestionsOverlay,
3029
- "aria-expanded": !0,
3030
- "aria-autocomplete": "list",
3031
- "aria-haspopup": "listbox",
3032
- "aria-activedescendant": Sn(n.uuidSuggestionsOverlay, n.state.focusIndex)
3033
- });
3034
- }), R(T(n), "renderControl", function() {
3035
- var a = n.props, o = a.singleLine, i = a.style, s = n.getInputProps();
3036
- return /* @__PURE__ */ k.createElement("div", i("control"), n.renderHighlighter(), o ? n.renderInput(s) : n.renderTextarea(s));
3037
- }), R(T(n), "renderInput", function(a) {
3038
- return /* @__PURE__ */ k.createElement("input", ae({
3039
- type: "text",
3040
- ref: n.setInputRef
3041
- }, a));
3042
- }), R(T(n), "renderTextarea", function(a) {
3043
- return /* @__PURE__ */ k.createElement("textarea", ae({
3044
- ref: n.setInputRef
3045
- }, a));
3046
- }), R(T(n), "setInputRef", function(a) {
3047
- n.inputElement = a;
3048
- var o = n.props.inputRef;
3049
- typeof o == "function" ? o(a) : o && (o.current = a);
3050
- }), R(T(n), "setSuggestionsElement", function(a) {
3051
- n.suggestionsElement = a;
3052
- }), R(T(n), "renderSuggestionsOverlay", function() {
3053
- if (!Ot(n.state.selectionStart))
3054
- return null;
3055
- var a = n.state.suggestionsPosition, o = a.position, i = a.left, s = a.top, l = a.right, c = /* @__PURE__ */ k.createElement(zA, {
3056
- id: n.uuidSuggestionsOverlay,
3057
- style: n.props.style("suggestions"),
3058
- position: o,
3059
- left: i,
3060
- top: s,
3061
- right: l,
3062
- focusIndex: n.state.focusIndex,
3063
- scrollFocusedIntoView: n.state.scrollFocusedIntoView,
3064
- containerRef: n.setSuggestionsElement,
3065
- suggestions: n.state.suggestions,
3066
- customSuggestionsContainer: n.props.customSuggestionsContainer,
3067
- onSelect: n.addMention,
3068
- onMouseDown: n.handleSuggestionsMouseDown,
3069
- onMouseEnter: n.handleSuggestionsMouseEnter,
3070
- isLoading: n.isLoading(),
3071
- isOpened: n.isOpened(),
3072
- ignoreAccents: n.props.ignoreAccents,
3073
- a11ySuggestionsListLabel: n.props.a11ySuggestionsListLabel
3074
- }, n.props.children);
3075
- return n.props.suggestionsPortalHost ? /* @__PURE__ */ Xn.createPortal(c, n.props.suggestionsPortalHost) : c;
3076
- }), R(T(n), "renderHighlighter", function() {
3077
- var a = n.state, o = a.selectionStart, i = a.selectionEnd, s = n.props, l = s.singleLine, c = s.children, u = s.value, g = s.style;
3078
- return /* @__PURE__ */ k.createElement(LA, {
3079
- containerRef: n.setHighlighterElement,
3080
- style: g("highlighter"),
3081
- value: u,
3082
- singleLine: l,
3083
- selectionStart: o,
3084
- selectionEnd: i,
3085
- onCaretPositionChange: n.handleCaretPositionChange
3086
- }, c);
3087
- }), R(T(n), "setHighlighterElement", function(a) {
3088
- n.highlighterElement = a;
3089
- }), R(T(n), "handleCaretPositionChange", function(a) {
3090
- n.setState({
3091
- caretPosition: a
3092
- });
3093
- }), R(T(n), "getPlainText", function() {
3094
- return ve(n.props.value || "", he(n.props.children));
3095
- }), R(T(n), "executeOnChange", function(a) {
3096
- for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
3097
- i[s - 1] = arguments[s];
3098
- if (n.props.onChange) {
3099
- var l;
3100
- return (l = n.props).onChange.apply(l, [a].concat(i));
3101
- }
3102
- if (n.props.valueLink) {
3103
- var c;
3104
- return (c = n.props.valueLink).requestChange.apply(c, [a.target.value].concat(i));
3105
- }
3106
- }), R(T(n), "handleChange", function(a) {
3107
- if (tt = !1, RA()) {
3108
- var o = document.activeElement && document.activeElement.contentDocument || document;
3109
- if (o.activeElement !== a.target)
3110
- return;
3111
- }
3112
- var i = n.props.value || "", s = he(n.props.children), l = a.target.value, c = n.state.selectionStart;
3113
- c == null && (c = a.target.selectionStart);
3114
- var u = n.state.selectionEnd;
3115
- u == null && (u = a.target.selectionEnd);
3116
- var g = wA(i, l, {
3117
- selectionStartBefore: c,
3118
- selectionEndBefore: u,
3119
- selectionEndAfter: a.target.selectionEnd
3120
- }, s);
3121
- l = ve(g, s);
3122
- var h = a.target.selectionStart, b = a.target.selectionEnd, C = !1, f = en(i, s, h);
3123
- f !== void 0 && n.state.selectionEnd > f && (h = f + (a.nativeEvent.data ? a.nativeEvent.data.length : 0), b = h, C = !0), n.setState({
3124
- selectionStart: h,
3125
- selectionEnd: b,
3126
- setSelectionAfterMentionChange: C
3127
- });
3128
- var S = ke(g, s);
3129
- a.nativeEvent.isComposing && h === b && n.updateMentionsQueries(n.inputElement.value, h);
3130
- var D = {
3131
- target: {
3132
- value: g
3133
- }
3134
- };
3135
- n.executeOnChange(D, g, l, S);
3136
- }), R(T(n), "handleSelect", function(a) {
3137
- if (n.setState({
3138
- selectionStart: a.target.selectionStart,
3139
- selectionEnd: a.target.selectionEnd
3140
- }), !tt) {
3141
- var o = n.inputElement;
3142
- a.target.selectionStart === a.target.selectionEnd ? n.updateMentionsQueries(o.value, a.target.selectionStart) : n.clearSuggestions(), n.updateHighlighterScroll(), n.props.onSelect(a);
3143
- }
3144
- }), R(T(n), "handleKeyDown", function(a) {
3145
- var o = et(n.state.suggestions);
3146
- if (o === 0 || !n.suggestionsElement) {
3147
- n.props.onKeyDown(a);
3148
- return;
3149
- }
3150
- switch (Object.values(Pe).indexOf(a.keyCode) >= 0 && (a.preventDefault(), a.stopPropagation()), a.keyCode) {
3151
- case Pe.ESC: {
3152
- n.clearSuggestions();
3153
- return;
3154
- }
3155
- case Pe.DOWN: {
3156
- n.shiftFocus(1);
3157
- return;
3158
- }
3159
- case Pe.UP: {
3160
- n.shiftFocus(-1);
3161
- return;
3162
- }
3163
- case Pe.RETURN: {
3164
- n.selectFocused();
3165
- return;
3166
- }
3167
- case Pe.TAB: {
3168
- n.selectFocused();
3169
- return;
3170
- }
3171
- default:
3172
- return;
3173
- }
3174
- }), R(T(n), "shiftFocus", function(a) {
3175
- var o = et(n.state.suggestions);
3176
- n.setState({
3177
- focusIndex: (o + n.state.focusIndex + a) % o,
3178
- scrollFocusedIntoView: !0
3179
- });
3180
- }), R(T(n), "selectFocused", function() {
3181
- var a = n.state, o = a.suggestions, i = a.focusIndex, s = Object.values(o).reduce(function(u, g) {
3182
- var h = g.results, b = g.queryInfo;
3183
- return [].concat(at(u), at(h.map(function(C) {
3184
- return {
3185
- result: C,
3186
- queryInfo: b
3187
- };
3188
- })));
3189
- }, [])[i], l = s.result, c = s.queryInfo;
3190
- n.addMention(l, c), n.setState({
3191
- focusIndex: 0
3192
- });
3193
- }), R(T(n), "handleBlur", function(a) {
3194
- var o = n._suggestionsMouseDown;
3195
- n._suggestionsMouseDown = !1, o || n.setState({
3196
- selectionStart: null,
3197
- selectionEnd: null
3198
- }), window.setTimeout(function() {
3199
- n.updateHighlighterScroll();
3200
- }, 1), n.props.onBlur(a, o);
3201
- }), R(T(n), "handleSuggestionsMouseDown", function(a) {
3202
- n._suggestionsMouseDown = !0;
3203
- }), R(T(n), "handleSuggestionsMouseEnter", function(a) {
3204
- n.setState({
3205
- focusIndex: a,
3206
- scrollFocusedIntoView: !1
3207
- });
3208
- }), R(T(n), "updateSuggestionsPosition", function() {
3209
- var a = n.state.caretPosition, o = n.props, i = o.suggestionsPortalHost, s = o.allowSuggestionsAboveCursor, l = o.forceSuggestionsAboveCursor;
3210
- if (!(!a || !n.suggestionsElement)) {
3211
- var c = n.suggestionsElement, u = n.highlighterElement, g = u.getBoundingClientRect(), h = bt(u, "font-size"), b = {
3212
- left: g.left + a.left,
3213
- top: g.top + a.top + h
3214
- }, C = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
3215
- if (c) {
3216
- var f = {};
3217
- if (i) {
3218
- f.position = "fixed";
3219
- var S = b.left, D = b.top;
3220
- S -= bt(c, "margin-left"), D -= bt(c, "margin-top"), S -= u.scrollLeft, D -= u.scrollTop;
3221
- var E = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
3222
- S + c.offsetWidth > E ? f.left = Math.max(0, E - c.offsetWidth) : f.left = S, s && D + c.offsetHeight > C && c.offsetHeight < D - h || l ? f.top = Math.max(0, D - c.offsetHeight - h) : f.top = D;
3223
- } else {
3224
- var v = a.left - u.scrollLeft, p = a.top - u.scrollTop;
3225
- v + c.offsetWidth > n.containerElement.offsetWidth ? f.right = 0 : f.left = v, s && b.top - u.scrollTop + c.offsetHeight > C && c.offsetHeight < g.top - h - u.scrollTop || l ? f.top = p - c.offsetHeight - h : f.top = p;
3226
- }
3227
- f.left === n.state.suggestionsPosition.left && f.top === n.state.suggestionsPosition.top && f.position === n.state.suggestionsPosition.position || n.setState({
3228
- suggestionsPosition: f
3229
- });
3230
- }
3231
- }
3232
- }), R(T(n), "updateHighlighterScroll", function() {
3233
- var a = n.inputElement, o = n.highlighterElement;
3234
- !a || !o || (o.scrollLeft = a.scrollLeft, o.scrollTop = a.scrollTop, o.height = a.height);
3235
- }), R(T(n), "handleCompositionStart", function() {
3236
- tt = !0;
3237
- }), R(T(n), "handleCompositionEnd", function() {
3238
- tt = !1;
3239
- }), R(T(n), "setSelection", function(a, o) {
3240
- if (!(a === null || o === null)) {
3241
- var i = n.inputElement;
3242
- if (i.setSelectionRange)
3243
- i.setSelectionRange(a, o);
3244
- else if (i.createTextRange) {
3245
- var s = i.createTextRange();
3246
- s.collapse(!0), s.moveEnd("character", o), s.moveStart("character", a), s.select();
3247
- }
3248
- }
3249
- }), R(T(n), "updateMentionsQueries", function(a, o) {
3250
- n._queryId++, n.suggestions = {}, n.setState({
3251
- suggestions: {}
3252
- });
3253
- var i = n.props.value || "", s = n.props.children, l = he(s), c = ee(i, l, o, "NULL");
3254
- if (c !== null) {
3255
- var u = PA(i.substring(0, c), l), g = a.substring(u, o);
3256
- k.Children.forEach(s, function(h, b) {
3257
- if (h) {
3258
- var C = QA(h.props.trigger, n.props), f = g.match(C);
3259
- if (f) {
3260
- var S = u + g.indexOf(f[1], f.index);
3261
- n.queryData(f[2], b, S, S + f[1].length, a);
3262
- }
3263
- }
3264
- });
3265
- }
3266
- }), R(T(n), "clearSuggestions", function() {
3267
- n._queryId++, n.suggestions = {}, n.setState({
3268
- suggestions: {},
3269
- focusIndex: 0
3270
- });
3271
- }), R(T(n), "queryData", function(a, o, i, s, l) {
3272
- var c = n.props, u = c.children, g = c.ignoreAccents, h = He.toArray(u)[o], b = GA(h.props.data, g), C = b(a, n.updateSuggestions.bind(null, n._queryId, o, a, i, s, l));
3273
- C instanceof Array && n.updateSuggestions(n._queryId, o, a, i, s, l, C);
3274
- }), R(T(n), "updateSuggestions", function(a, o, i, s, l, c, u) {
3275
- if (a === n._queryId) {
3276
- n.suggestions = ie(ie({}, n.suggestions), {}, R({}, o, {
3277
- queryInfo: {
3278
- childIndex: o,
3279
- query: i,
3280
- querySequenceStart: s,
3281
- querySequenceEnd: l,
3282
- plainTextValue: c
3283
- },
3284
- results: u
3285
- }));
3286
- var g = n.state.focusIndex, h = et(n.suggestions);
3287
- n.setState({
3288
- suggestions: n.suggestions,
3289
- focusIndex: g >= h ? Math.max(h - 1, 0) : g
3290
- });
3291
- }
3292
- }), R(T(n), "addMention", function(a, o) {
3293
- var i = a.id, s = a.display, l = o.childIndex, c = o.querySequenceStart, u = o.querySequenceEnd, g = o.plainTextValue, h = n.props.value || "", b = he(n.props.children), C = He.toArray(n.props.children)[l], f = C.props, S = f.markup, D = f.displayTransform, E = f.appendSpaceOnAdd, v = f.onAdd, p = ee(h, b, c, "START"), U = p + u - c, $ = BA(S, i, s);
3294
- E && ($ += " ");
3295
- var V = _e(h, p, U, $);
3296
- n.inputElement.focus();
3297
- var oe = D(i, s);
3298
- E && (oe += " ");
3299
- var Ae = c + oe.length;
3300
- n.setState({
3301
- selectionStart: Ae,
3302
- selectionEnd: Ae,
3303
- setSelectionAfterMentionChange: !0
3304
- });
3305
- var ue = {
3306
- target: {
3307
- value: V
3308
- }
3309
- }, ge = ke(V, b), re = _e(g, c, u, oe);
3310
- n.executeOnChange(ue, V, re, ge), v && v(i, s, p, U), n.clearSuggestions();
3311
- }), R(T(n), "isLoading", function() {
3312
- var a = !1;
3313
- return k.Children.forEach(n.props.children, function(o) {
3314
- a = a || o && o.props.isLoading;
3315
- }), a;
3316
- }), R(T(n), "isOpened", function() {
3317
- return Ot(n.state.selectionStart) && (et(n.state.suggestions) !== 0 || n.isLoading());
3318
- }), R(T(n), "_queryId", 0), n.suggestions = {}, n.uuidSuggestionsOverlay = Math.random().toString(16).substring(2), n.handleCopy = n.handleCopy.bind(T(n)), n.handleCut = n.handleCut.bind(T(n)), n.handlePaste = n.handlePaste.bind(T(n)), n.state = {
3319
- focusIndex: 0,
3320
- selectionStart: null,
3321
- selectionEnd: null,
3322
- suggestions: {},
3323
- caretPosition: null,
3324
- suggestionsPosition: {},
3325
- setSelectionAfterHandlePaste: !1
3326
- }, n;
3327
- }
3328
- return Hr(r, [{
3329
- key: "componentDidMount",
3330
- value: function() {
3331
- document.addEventListener("copy", this.handleCopy), document.addEventListener("cut", this.handleCut), document.addEventListener("paste", this.handlePaste), this.updateSuggestionsPosition();
3332
- }
3333
- }, {
3334
- key: "componentDidUpdate",
3335
- value: function(n, a) {
3336
- a.suggestionsPosition === this.state.suggestionsPosition && this.updateSuggestionsPosition(), this.state.setSelectionAfterMentionChange && (this.setState({
3337
- setSelectionAfterMentionChange: !1
3338
- }), this.setSelection(this.state.selectionStart, this.state.selectionEnd)), this.state.setSelectionAfterHandlePaste && (this.setState({
3339
- setSelectionAfterHandlePaste: !1
3340
- }), this.setSelection(this.state.selectionStart, this.state.selectionEnd));
3341
- }
3342
- }, {
3343
- key: "componentWillUnmount",
3344
- value: function() {
3345
- document.removeEventListener("copy", this.handleCopy), document.removeEventListener("cut", this.handleCut), document.removeEventListener("paste", this.handlePaste);
3346
- }
3347
- }, {
3348
- key: "render",
3349
- value: function() {
3350
- return /* @__PURE__ */ k.createElement("div", ae({
3351
- ref: this.setContainerElement
3352
- }, this.props.style), this.renderControl(), this.renderSuggestionsOverlay());
3353
- }
3354
- }, {
3355
- key: "handlePaste",
3356
- value: function(n) {
3357
- if (n.target === this.inputElement && this.supportsClipboardActions(n)) {
3358
- n.preventDefault();
3359
- var a = this.state, o = a.selectionStart, i = a.selectionEnd, s = this.props, l = s.value, c = s.children, u = he(c), g = ee(l, u, o, "START"), h = ee(l, u, i, "END"), b = n.clipboardData.getData("text/react-mentions"), C = n.clipboardData.getData("text/plain"), f = _e(l, g, h, b || C).replace(/\r/g, ""), S = ve(f, u), D = {
3360
- target: ie(ie({}, n.target), {}, {
3361
- value: f
3362
- })
3363
- };
3364
- this.executeOnChange(D, f, S, ke(f, u));
3365
- var E = en(l, u, o), v = (E || o) + ve(b || C, u).length;
3366
- this.setState({
3367
- selectionStart: v,
3368
- selectionEnd: v,
3369
- setSelectionAfterHandlePaste: !0
3370
- });
3371
- }
3372
- }
3373
- }, {
3374
- key: "saveSelectionToClipboard",
3375
- value: function(n) {
3376
- var a = this.inputElement.selectionStart, o = this.inputElement.selectionEnd, i = this.props, s = i.children, l = i.value, c = he(s), u = ee(l, c, a, "START"), g = ee(l, c, o, "END");
3377
- n.clipboardData.setData("text/plain", n.target.value.slice(a, o)), n.clipboardData.setData("text/react-mentions", l.slice(u, g));
3378
- }
3379
- }, {
3380
- key: "supportsClipboardActions",
3381
- value: function(n) {
3382
- return !!n.clipboardData;
3383
- }
3384
- }, {
3385
- key: "handleCopy",
3386
- value: function(n) {
3387
- n.target === this.inputElement && this.supportsClipboardActions(n) && (n.preventDefault(), this.saveSelectionToClipboard(n));
3388
- }
3389
- }, {
3390
- key: "handleCut",
3391
- value: function(n) {
3392
- if (n.target === this.inputElement && this.supportsClipboardActions(n)) {
3393
- n.preventDefault(), this.saveSelectionToClipboard(n);
3394
- var a = this.state, o = a.selectionStart, i = a.selectionEnd, s = this.props, l = s.children, c = s.value, u = he(l), g = ee(c, u, o, "START"), h = ee(c, u, i, "END"), b = [c.slice(0, g), c.slice(h)].join(""), C = ve(b, u), f = {
3395
- target: ie(ie({}, n.target), {}, {
3396
- value: C
3397
- })
3398
- };
3399
- this.executeOnChange(f, b, C, ke(c, u));
3400
- }
3401
- }
3402
- // Handle input element's change event
3403
- }]), r;
3404
- })(k.Component);
3405
- R(Ft, "propTypes", Bn);
3406
- R(Ft, "defaultProps", {
3407
- ignoreAccents: !1,
3408
- singleLine: !1,
3409
- allowSuggestionsAboveCursor: !1,
3410
- onKeyDown: function() {
3411
- return null;
3412
- },
3413
- onSelect: function() {
3414
- return null;
3415
- },
3416
- onBlur: function() {
3417
- return null;
3418
- }
3419
- });
3420
- var bt = function(t, r) {
3421
- var A = parseFloat(window.getComputedStyle(t, null).getPropertyValue(r));
3422
- return isFinite(A) ? A : 0;
3423
- }, VA = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), JA = st({
3424
- position: "relative",
3425
- overflowY: "visible",
3426
- input: {
3427
- display: "block",
3428
- width: "100%",
3429
- position: "absolute",
3430
- margin: 0,
3431
- top: 0,
3432
- left: 0,
3433
- boxSizing: "border-box",
3434
- backgroundColor: "transparent",
3435
- fontFamily: "inherit",
3436
- fontSize: "inherit",
3437
- letterSpacing: "inherit"
3438
- },
3439
- "&multiLine": {
3440
- input: ie({
3441
- height: "100%",
3442
- bottom: 0,
3443
- overflow: "hidden",
3444
- resize: "none"
3445
- }, VA ? {
3446
- marginTop: 1,
3447
- marginLeft: -3
3448
- } : null)
3449
- }
3450
- }, function(e) {
3451
- var t = e.singleLine;
3452
- return {
3453
- "&singleLine": t,
3454
- "&multiLine": !t
3455
- };
3456
- }), so = JA(Ft), ZA = {
3457
- fontWeight: "inherit"
3458
- }, xn = function(t) {
3459
- var r = t.display, A = t.style, n = t.className, a = t.classNames, o = Bt(ZA, {
3460
- style: A,
3461
- className: n,
3462
- classNames: a
3463
- });
3464
- return /* @__PURE__ */ k.createElement("strong", o, r);
3465
- };
3466
- xn.propTypes = {
3467
- /**
3468
- * Called when a new mention is added in the input
3469
- *
3470
- * Example:
3471
- *
3472
- * ```js
3473
- * function(id, display) {
3474
- * console.log("user " + display + " was mentioned!");
3475
- * }
3476
- * ```
3477
- */
3478
- onAdd: y.func,
3479
- onRemove: y.func,
3480
- renderSuggestion: y.func,
3481
- trigger: y.oneOfType([y.string, y.instanceOf(RegExp)]),
3482
- markup: y.string,
3483
- displayTransform: y.func,
3484
- /**
3485
- * If set to `true` spaces will not interrupt matching suggestions
3486
- */
3487
- allowSpaceInQuery: y.bool,
3488
- isLoading: y.bool
3489
- };
3490
- xn.defaultProps = {
3491
- trigger: "@",
3492
- markup: "@[__display__](__id__)",
3493
- displayTransform: function(t, r) {
3494
- return r || t;
3495
- },
3496
- onAdd: function() {
3497
- return null;
3498
- },
3499
- onRemove: function() {
3500
- return null;
3501
- },
3502
- renderSuggestion: null,
3503
- isLoading: !1,
3504
- appendSpaceOnAdd: !1
3505
- };
3506
- const XA = async ({
3507
- filter: e,
3508
- environment: t
3509
- }) => (await Qe(t).get("/sales", { params: e })).data;
3510
- function KA({
3511
- filter: e,
3512
- queryKey: t,
3513
- enabled: r = !0
3514
- }) {
3515
- const { environments: A } = Ge();
3516
- return We({
3517
- queryKey: ["sales", e, ...t || []],
3518
- queryFn: () => XA({
3519
- filter: e,
3520
- environment: A.VITE_BACKEND_API_SALES_URL ?? ""
3521
- }),
3522
- enabled: r && !!(e.title && e.title.length > 3)
3523
- });
3524
- }
3525
- const Fn = G(
3526
- ({ queryKey: e, value: t, defaultValue: r, onValueChange: A, id: n, disabled: a, ...o }, i) => {
3527
- const s = r ? { title: String(r) } : void 0, [l, c] = Z(!1), [u, g] = Z(s), [h, b] = Z(""), C = Ve(h, 200), f = KA({
3528
- filter: {
3529
- page: 1,
3530
- limit: 5,
3531
- title: C
3532
- },
3533
- queryKey: e,
3534
- enabled: l
3535
- }), S = f.data?.data;
3536
- Ee(() => {
3537
- !t && u && (g(void 0), b(""));
3538
- }, [u, t]);
3539
- const D = (E) => {
3540
- const v = S?.find((p) => p._id === E);
3541
- c(!1), v && (g(v), A(v));
3542
- };
3543
- return /* @__PURE__ */ O(be, { open: l, onOpenChange: c, children: [
3544
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
3545
- ye,
3546
- {
3547
- id: n,
3548
- variant: "outline",
3549
- role: "combobox",
3550
- "aria-expanded": l,
3551
- className: "w-full justify-between",
3552
- disabled: a,
3553
- children: [
3554
- u?.title ? u?.title : "Selecionar",
3555
- /* @__PURE__ */ d(Me, { className: "opacity-50" })
3556
- ]
3557
- }
3558
- ) }),
3559
- /* @__PURE__ */ d(Se, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ O(Be, { shouldFilter: !1, children: [
3560
- /* @__PURE__ */ d(
3561
- xe,
3562
- {
3563
- ...o,
3564
- disabled: a,
3565
- value: h,
3566
- onValueChange: (E) => b(E),
3567
- placeholder: "Busque uma venda...",
3568
- className: "h-9",
3569
- ref: i
3570
- }
3571
- ),
3572
- /* @__PURE__ */ O(Fe, { children: [
3573
- f.isSuccess && S?.length === 0 && /* @__PURE__ */ d(J, { children: "Nenhuma venda encontrado." }),
3574
- f.isError && /* @__PURE__ */ d(J, { children: "Ocorreu um erro ao buscar as vendas." }),
3575
- !f.isEnabled && /* @__PURE__ */ d(J, { children: "Busque uma venda..." }),
3576
- f.fetchStatus !== "idle" && f.isPending && /* @__PURE__ */ O(J, { className: "flex items-center justify-center gap-2", children: [
3577
- /* @__PURE__ */ d(Ye, { className: "size-4 animate-spin" }),
3578
- "Buscando..."
3579
- ] }),
3580
- /* @__PURE__ */ d(Re, { children: S?.map((E) => /* @__PURE__ */ O(
3581
- Te,
3582
- {
3583
- value: E._id,
3584
- onSelect: (v) => {
3585
- D(
3586
- v === u?._id ? "" : v
3587
- ), c(!1);
3588
- },
3589
- children: [
3590
- E.title,
3591
- /* @__PURE__ */ d(
3592
- Ie,
3593
- {
3594
- className: ne(
3595
- "ml-auto",
3596
- u?._id === E._id ? "opacity-100" : "opacity-0"
3597
- )
3598
- }
3599
- )
3600
- ]
3601
- },
3602
- E._id
3603
- )) })
3604
- ] })
3605
- ] }) })
3606
- ] });
3607
- }
3608
- );
3609
- Fn.displayName = "SaleSelectInput";
3610
- const Rn = G(
3611
- ({ users: e, value: t, onValueChange: r, isLoading: A, disabled: n, placeholder: a = "Selecionar", id: o }, i) => {
3612
- const [s, l] = Z(!1), c = e.find((u) => u.email === t);
3613
- return /* @__PURE__ */ O(be, { open: s, onOpenChange: l, children: [
3614
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
3615
- ye,
3616
- {
3617
- ref: i,
3618
- id: o,
3619
- type: "button",
3620
- variant: "outline",
3621
- role: "combobox",
3622
- "aria-expanded": s,
3623
- disabled: n || A,
3624
- className: "w-full justify-between font-normal",
3625
- children: [
3626
- A ? "Carregando..." : c?.name ?? a,
3627
- /* @__PURE__ */ d(Me, { className: "opacity-50" })
3628
- ]
3629
- }
3630
- ) }),
3631
- /* @__PURE__ */ d(Se, { className: "z-[10000] w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ O(Be, { children: [
3632
- /* @__PURE__ */ d(xe, { placeholder: "Buscar usuário...", className: "h-9" }),
3633
- /* @__PURE__ */ O(Fe, { onWheel: (u) => u.stopPropagation(), children: [
3634
- /* @__PURE__ */ d(J, { children: "Nenhum usuário encontrado." }),
3635
- /* @__PURE__ */ d(Re, { children: e.map((u) => /* @__PURE__ */ O(
3636
- Te,
3637
- {
3638
- value: u.name,
3639
- onSelect: () => {
3640
- r(u.email), l(!1);
3641
- },
3642
- children: [
3643
- u.name,
3644
- /* @__PURE__ */ d(
3645
- Ie,
3646
- {
3647
- className: ne(
3648
- "ml-auto",
3649
- t === u.email ? "opacity-100" : "opacity-0"
3650
- )
3651
- }
3652
- )
3653
- ]
3654
- },
3655
- u.email
3656
- )) })
3657
- ] })
3658
- ] }) })
3659
- ] });
3660
- }
3661
- );
3662
- Rn.displayName = "ResponsibleSelectInput";
3663
- const $A = {
3664
- lessThanXSeconds: {
3665
- one: "menos de um segundo",
3666
- other: "menos de {{count}} segundos"
3667
- },
3668
- xSeconds: {
3669
- one: "1 segundo",
3670
- other: "{{count}} segundos"
3671
- },
3672
- halfAMinute: "meio minuto",
3673
- lessThanXMinutes: {
3674
- one: "menos de um minuto",
3675
- other: "menos de {{count}} minutos"
3676
- },
3677
- xMinutes: {
3678
- one: "1 minuto",
3679
- other: "{{count}} minutos"
3680
- },
3681
- aboutXHours: {
3682
- one: "cerca de 1 hora",
3683
- other: "cerca de {{count}} horas"
3684
- },
3685
- xHours: {
3686
- one: "1 hora",
3687
- other: "{{count}} horas"
3688
- },
3689
- xDays: {
3690
- one: "1 dia",
3691
- other: "{{count}} dias"
3692
- },
3693
- aboutXWeeks: {
3694
- one: "cerca de 1 semana",
3695
- other: "cerca de {{count}} semanas"
3696
- },
3697
- xWeeks: {
3698
- one: "1 semana",
3699
- other: "{{count}} semanas"
3700
- },
3701
- aboutXMonths: {
3702
- one: "cerca de 1 mês",
3703
- other: "cerca de {{count}} meses"
3704
- },
3705
- xMonths: {
3706
- one: "1 mês",
3707
- other: "{{count}} meses"
3708
- },
3709
- aboutXYears: {
3710
- one: "cerca de 1 ano",
3711
- other: "cerca de {{count}} anos"
3712
- },
3713
- xYears: {
3714
- one: "1 ano",
3715
- other: "{{count}} anos"
3716
- },
3717
- overXYears: {
3718
- one: "mais de 1 ano",
3719
- other: "mais de {{count}} anos"
3720
- },
3721
- almostXYears: {
3722
- one: "quase 1 ano",
3723
- other: "quase {{count}} anos"
3724
- }
3725
- }, ea = (e, t, r) => {
3726
- let A;
3727
- const n = $A[e];
3728
- return typeof n == "string" ? A = n : t === 1 ? A = n.one : A = n.other.replace("{{count}}", String(t)), r?.addSuffix ? r.comparison && r.comparison > 0 ? "em " + A : "há " + A : A;
3729
- }, ta = {
3730
- full: "EEEE, d 'de' MMMM 'de' y",
3731
- long: "d 'de' MMMM 'de' y",
3732
- medium: "d MMM y",
3733
- short: "dd/MM/yyyy"
3734
- }, na = {
3735
- full: "HH:mm:ss zzzz",
3736
- long: "HH:mm:ss z",
3737
- medium: "HH:mm:ss",
3738
- short: "HH:mm"
3739
- }, ra = {
3740
- full: "{{date}} 'às' {{time}}",
3741
- long: "{{date}} 'às' {{time}}",
3742
- medium: "{{date}}, {{time}}",
3743
- short: "{{date}}, {{time}}"
3744
- }, Aa = {
3745
- date: ut({
3746
- formats: ta,
3747
- defaultWidth: "full"
3748
- }),
3749
- time: ut({
3750
- formats: na,
3751
- defaultWidth: "full"
3752
- }),
3753
- dateTime: ut({
3754
- formats: ra,
3755
- defaultWidth: "full"
3756
- })
3757
- }, aa = {
3758
- lastWeek: (e) => {
3759
- const t = e.getDay();
3760
- return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
3761
- },
3762
- yesterday: "'ontem às' p",
3763
- today: "'hoje às' p",
3764
- tomorrow: "'amanhã às' p",
3765
- nextWeek: "eeee 'às' p",
3766
- other: "P"
3767
- }, oa = (e, t, r, A) => {
3768
- const n = aa[e];
3769
- return typeof n == "function" ? n(t) : n;
3770
- }, ia = {
3771
- narrow: ["AC", "DC"],
3772
- abbreviated: ["AC", "DC"],
3773
- wide: ["antes de cristo", "depois de cristo"]
3774
- }, sa = {
3775
- narrow: ["1", "2", "3", "4"],
3776
- abbreviated: ["T1", "T2", "T3", "T4"],
3777
- wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
3778
- }, ua = {
3779
- narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
3780
- abbreviated: [
3781
- "jan",
3782
- "fev",
3783
- "mar",
3784
- "abr",
3785
- "mai",
3786
- "jun",
3787
- "jul",
3788
- "ago",
3789
- "set",
3790
- "out",
3791
- "nov",
3792
- "dez"
3793
- ],
3794
- wide: [
3795
- "janeiro",
3796
- "fevereiro",
3797
- "março",
3798
- "abril",
3799
- "maio",
3800
- "junho",
3801
- "julho",
3802
- "agosto",
3803
- "setembro",
3804
- "outubro",
3805
- "novembro",
3806
- "dezembro"
3807
- ]
3808
- }, ca = {
3809
- narrow: ["D", "S", "T", "Q", "Q", "S", "S"],
3810
- short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"],
3811
- abbreviated: [
3812
- "domingo",
3813
- "segunda",
3814
- "terça",
3815
- "quarta",
3816
- "quinta",
3817
- "sexta",
3818
- "sábado"
3819
- ],
3820
- wide: [
3821
- "domingo",
3822
- "segunda-feira",
3823
- "terça-feira",
3824
- "quarta-feira",
3825
- "quinta-feira",
3826
- "sexta-feira",
3827
- "sábado"
3828
- ]
3829
- }, la = {
3830
- narrow: {
3831
- am: "a",
3832
- pm: "p",
3833
- midnight: "mn",
3834
- noon: "md",
3835
- morning: "manhã",
3836
- afternoon: "tarde",
3837
- evening: "tarde",
3838
- night: "noite"
3839
- },
3840
- abbreviated: {
3841
- am: "AM",
3842
- pm: "PM",
3843
- midnight: "meia-noite",
3844
- noon: "meio-dia",
3845
- morning: "manhã",
3846
- afternoon: "tarde",
3847
- evening: "tarde",
3848
- night: "noite"
3849
- },
3850
- wide: {
3851
- am: "a.m.",
3852
- pm: "p.m.",
3853
- midnight: "meia-noite",
3854
- noon: "meio-dia",
3855
- morning: "manhã",
3856
- afternoon: "tarde",
3857
- evening: "tarde",
3858
- night: "noite"
3859
- }
3860
- }, da = {
3861
- narrow: {
3862
- am: "a",
3863
- pm: "p",
3864
- midnight: "mn",
3865
- noon: "md",
3866
- morning: "da manhã",
3867
- afternoon: "da tarde",
3868
- evening: "da tarde",
3869
- night: "da noite"
3870
- },
3871
- abbreviated: {
3872
- am: "AM",
3873
- pm: "PM",
3874
- midnight: "meia-noite",
3875
- noon: "meio-dia",
3876
- morning: "da manhã",
3877
- afternoon: "da tarde",
3878
- evening: "da tarde",
3879
- night: "da noite"
3880
- },
3881
- wide: {
3882
- am: "a.m.",
3883
- pm: "p.m.",
3884
- midnight: "meia-noite",
3885
- noon: "meio-dia",
3886
- morning: "da manhã",
3887
- afternoon: "da tarde",
3888
- evening: "da tarde",
3889
- night: "da noite"
3890
- }
3891
- }, fa = (e, t) => {
3892
- const r = Number(e);
3893
- return t?.unit === "week" ? r + "ª" : r + "º";
3894
- }, pa = {
3895
- ordinalNumber: fa,
3896
- era: Ne({
3897
- values: ia,
3898
- defaultWidth: "wide"
3899
- }),
3900
- quarter: Ne({
3901
- values: sa,
3902
- defaultWidth: "wide",
3903
- argumentCallback: (e) => e - 1
3904
- }),
3905
- month: Ne({
3906
- values: ua,
3907
- defaultWidth: "wide"
3908
- }),
3909
- day: Ne({
3910
- values: ca,
3911
- defaultWidth: "wide"
3912
- }),
3913
- dayPeriod: Ne({
3914
- values: la,
3915
- defaultWidth: "wide",
3916
- formattingValues: da,
3917
- defaultFormattingWidth: "wide"
3918
- })
3919
- }, ga = /^(\d+)[ºªo]?/i, ma = /\d+/i, ha = {
3920
- narrow: /^(ac|dc|a|d)/i,
3921
- abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
3922
- wide: /^(antes de cristo|depois de cristo)/i
3923
- }, va = {
3924
- any: [/^ac/i, /^dc/i],
3925
- wide: [/^antes de cristo/i, /^depois de cristo/i]
3926
- }, ya = {
3927
- narrow: /^[1234]/i,
3928
- abbreviated: /^T[1234]/i,
3929
- wide: /^[1234](º)? trimestre/i
3930
- }, Ea = {
3931
- any: [/1/i, /2/i, /3/i, /4/i]
3932
- }, ba = {
3933
- narrow: /^[jfmajsond]/i,
3934
- abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
3935
- wide: /^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i
3936
- }, Ca = {
3937
- narrow: [
3938
- /^j/i,
3939
- /^f/i,
3940
- /^m/i,
3941
- /^a/i,
3942
- /^m/i,
3943
- /^j/i,
3944
- /^j/i,
3945
- /^a/i,
3946
- /^s/i,
3947
- /^o/i,
3948
- /^n/i,
3949
- /^d/i
3950
- ],
3951
- any: [
3952
- /^ja/i,
3953
- /^fev/i,
3954
- /^mar/i,
3955
- /^abr/i,
3956
- /^mai/i,
3957
- /^jun/i,
3958
- /^jul/i,
3959
- /^ago/i,
3960
- /^set/i,
3961
- /^out/i,
3962
- /^nov/i,
3963
- /^dez/i
3964
- ]
3965
- }, Sa = {
3966
- narrow: /^(dom|[23456]ª?|s[aá]b)/i,
3967
- short: /^(dom|[23456]ª?|s[aá]b)/i,
3968
- abbreviated: /^(dom|seg|ter|qua|qui|sex|s[aá]b)/i,
3969
- wide: /^(domingo|(segunda|ter[cç]a|quarta|quinta|sexta)([- ]feira)?|s[aá]bado)/i
3970
- }, wa = {
3971
- short: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
3972
- narrow: [/^d/i, /^2/i, /^3/i, /^4/i, /^5/i, /^6/i, /^s[aá]/i],
3973
- any: [/^d/i, /^seg/i, /^t/i, /^qua/i, /^qui/i, /^sex/i, /^s[aá]b/i]
3974
- }, Pa = {
3975
- narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
3976
- any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
3977
- }, Oa = {
3978
- any: {
3979
- am: /^a/i,
3980
- pm: /^p/i,
3981
- midnight: /^mn|^meia[-\s]noite/i,
3982
- noon: /^md|^meio[-\s]dia/i,
3983
- morning: /manhã/i,
3984
- afternoon: /tarde/i,
3985
- evening: /tarde/i,
3986
- night: /noite/i
3987
- }
3988
- }, Da = {
3989
- ordinalNumber: Jn({
3990
- matchPattern: ga,
3991
- parsePattern: ma,
3992
- valueCallback: (e) => parseInt(e, 10)
3993
- }),
3994
- era: Le({
3995
- matchPatterns: ha,
3996
- defaultMatchWidth: "wide",
3997
- parsePatterns: va,
3998
- defaultParseWidth: "any"
3999
- }),
4000
- quarter: Le({
4001
- matchPatterns: ya,
4002
- defaultMatchWidth: "wide",
4003
- parsePatterns: Ea,
4004
- defaultParseWidth: "any",
4005
- valueCallback: (e) => e + 1
4006
- }),
4007
- month: Le({
4008
- matchPatterns: ba,
4009
- defaultMatchWidth: "wide",
4010
- parsePatterns: Ca,
4011
- defaultParseWidth: "any"
4012
- }),
4013
- day: Le({
4014
- matchPatterns: Sa,
4015
- defaultMatchWidth: "wide",
4016
- parsePatterns: wa,
4017
- defaultParseWidth: "any"
4018
- }),
4019
- dayPeriod: Le({
4020
- matchPatterns: Pa,
4021
- defaultMatchWidth: "any",
4022
- parsePatterns: Oa,
4023
- defaultParseWidth: "any"
4024
- })
4025
- }, Ba = {
4026
- code: "pt-BR",
4027
- formatDistance: ea,
4028
- formatLong: Aa,
4029
- formatRelative: oa,
4030
- localize: pa,
4031
- match: Da,
4032
- options: {
4033
- weekStartsOn: 0,
4034
- firstWeekContainsDate: 1
4035
- }
4036
- }, xa = G(
4037
- ({
4038
- label: e,
4039
- name: t,
4040
- value: r,
4041
- description: A,
4042
- asterisk: n,
4043
- disabled: a,
4044
- invalid: o,
4045
- error: i,
4046
- onChange: s
4047
- }, l) => {
4048
- const [c, u] = Z(!1);
4049
- return n && !e && console.warn(
4050
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4051
- ), /* @__PURE__ */ O(se, { "data-invalid": o, children: [
4052
- e && /* @__PURE__ */ d(pe, { asterisk: n, htmlFor: t, children: e }),
4053
- /* @__PURE__ */ O(be, { open: c, onOpenChange: u, children: [
4054
- /* @__PURE__ */ d(Ce, { asChild: !0, children: /* @__PURE__ */ O(
4055
- ye,
4056
- {
4057
- variant: "outline",
4058
- id: t,
4059
- className: "justify-between font-normal",
4060
- disabled: a,
4061
- ref: l,
4062
- children: [
4063
- r ? new Date(r).toLocaleDateString() : "dd/mm/aa",
4064
- /* @__PURE__ */ d(jn, {})
4065
- ]
4066
- }
4067
- ) }),
4068
- /* @__PURE__ */ d(Se, { className: "w-auto overflow-hidden p-0", align: "start", children: /* @__PURE__ */ d(
4069
- Zn,
4070
- {
4071
- mode: "single",
4072
- selected: r ? new Date(r) : void 0,
4073
- defaultMonth: r ? new Date(r) : void 0,
4074
- captionLayout: "dropdown",
4075
- locale: Ba,
4076
- startMonth: new Date(2e3, 0),
4077
- endMonth: new Date(2050, 11),
4078
- hidden: { after: new Date(2050, 11, 31) },
4079
- onSelect: (g) => {
4080
- g && (s(g), u(!1));
4081
- }
4082
- }
4083
- ) })
4084
- ] }),
4085
- A && /* @__PURE__ */ d(de, { children: A }),
4086
- o && /* @__PURE__ */ d(fe, { errors: [i] })
4087
- ] });
4088
- }
4089
- );
4090
- xa.displayName = "FieldCalendar";
4091
- const Fa = G(({ label: e, description: t, asterisk: r, invalid: A, error: n, ...a }, o) => {
4092
- const { name: i } = a;
4093
- return r && !e && console.warn(
4094
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4095
- ), /* @__PURE__ */ O(se, { "data-invalid": A, children: [
4096
- e && /* @__PURE__ */ d(pe, { htmlFor: i, asterisk: r, children: e }),
4097
- /* @__PURE__ */ d(
4098
- cn,
4099
- {
4100
- id: i,
4101
- "aria-invalid": A,
4102
- ...a,
4103
- ref: o
4104
- }
4105
- ),
4106
- t && /* @__PURE__ */ d(de, { children: t }),
4107
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4108
- ] });
4109
- });
4110
- Fa.displayName = "FieldClientSelectInput";
4111
- const Ra = G(
4112
- ({ label: e, description: t, asterisk: r, invalid: A, error: n, ...a }, o) => {
4113
- const { name: i } = a;
4114
- return r && !e && console.warn(
4115
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4116
- ), /* @__PURE__ */ O(se, { "data-invalid": A, children: [
4117
- e && /* @__PURE__ */ d(pe, { htmlFor: i, asterisk: r, children: e }),
4118
- /* @__PURE__ */ d(Nn, { id: i, "aria-invalid": A, ...a, ref: o }),
4119
- t && /* @__PURE__ */ d(de, { children: t }),
4120
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4121
- ] });
4122
- }
4123
- );
4124
- Ra.displayName = "FieldInput";
4125
- const Ta = G(({ label: e, description: t, asterisk: r, invalid: A, error: n, ...a }, o) => {
4126
- const { name: i } = a;
4127
- return r && !e && console.warn(
4128
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4129
- ), /* @__PURE__ */ O(se, { "data-invalid": A, children: [
4130
- e && /* @__PURE__ */ d(pe, { htmlFor: i, asterisk: r, children: e }),
4131
- /* @__PURE__ */ d(
4132
- dn,
4133
- {
4134
- id: i,
4135
- "aria-invalid": A,
4136
- ...a,
4137
- ref: o
4138
- }
4139
- ),
4140
- t && /* @__PURE__ */ d(de, { children: t }),
4141
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4142
- ] });
4143
- });
4144
- Ta.displayName = "FieldProfileSelectInput";
4145
- const Ia = G(({ label: e, description: t, asterisk: r, invalid: A, error: n, ...a }, o) => {
4146
- const { name: i } = a;
4147
- return r && !e && console.warn(
4148
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4149
- ), /* @__PURE__ */ O(se, { "data-invalid": A, children: [
4150
- e && /* @__PURE__ */ d(pe, { htmlFor: i, asterisk: r, children: e }),
4151
- /* @__PURE__ */ d(
4152
- Fn,
4153
- {
4154
- id: i,
4155
- "aria-invalid": A,
4156
- ref: o,
4157
- ...a
4158
- }
4159
- ),
4160
- t && /* @__PURE__ */ d(de, { children: t }),
4161
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4162
- ] });
4163
- });
4164
- Ia.displayName = "FieldSaleSelectInput";
4165
- const Ma = G(
4166
- ({
4167
- label: e,
4168
- name: t,
4169
- value: r,
4170
- description: A,
4171
- asterisk: n,
4172
- onValueChange: a,
4173
- options: o,
4174
- disabledOptions: i,
4175
- invalid: s,
4176
- error: l,
4177
- ...c
4178
- }, u) => (n && !e && console.warn(
4179
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4180
- ), /* @__PURE__ */ O(se, { orientation: "vertical", "data-invalid": s, children: [
4181
- e && /* @__PURE__ */ d(pe, { htmlFor: t, asterisk: n, children: e }),
4182
- /* @__PURE__ */ O(
4183
- Ln,
4184
- {
4185
- value: r,
4186
- name: t,
4187
- onValueChange: a,
4188
- ...c,
4189
- children: [
4190
- /* @__PURE__ */ d(qn, { id: t, "aria-invalid": s, ref: u, children: /* @__PURE__ */ d(kn, { placeholder: "Selecionar" }) }),
4191
- /* @__PURE__ */ d(_n, { children: Object.entries(o).map(([g, h]) => /* @__PURE__ */ d(
4192
- Hn,
4193
- {
4194
- value: g,
4195
- disabled: (i ?? []).includes(g),
4196
- children: h
4197
- },
4198
- g
4199
- )) })
4200
- ]
4201
- }
4202
- ),
4203
- A && /* @__PURE__ */ d(de, { children: A }),
4204
- s && /* @__PURE__ */ d(fe, { errors: [l] })
4205
- ] }))
4206
- );
4207
- Ma.displayName = "FieldSelect";
4208
- const ja = G(
4209
- ({ label: e, description: t, asterisk: r, invalid: A, error: n, value: a, onChange: o, ...i }, s) => {
4210
- const { name: l } = i;
4211
- return r && !e && console.warn(
4212
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4213
- ), /* @__PURE__ */ O(se, { orientation: "horizontal", "data-invalid": A, children: [
4214
- /* @__PURE__ */ d(
4215
- Un,
4216
- {
4217
- id: l,
4218
- name: l,
4219
- checked: a,
4220
- onCheckedChange: o,
4221
- "aria-invalid": A,
4222
- ...i,
4223
- ref: s
4224
- }
4225
- ),
4226
- /* @__PURE__ */ O(on, { children: [
4227
- e && /* @__PURE__ */ d(pe, { htmlFor: l, asterisk: r, children: e }),
4228
- t && /* @__PURE__ */ d(de, { children: t }),
4229
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4230
- ] })
4231
- ] });
4232
- }
4233
- );
4234
- ja.displayName = "FieldSwitch";
4235
- const Na = G(({ label: e, description: t, asterisk: r, invalid: A, error: n, ...a }, o) => {
4236
- const { name: i } = a;
4237
- return r && !e && console.warn(
4238
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4239
- ), /* @__PURE__ */ O(se, { "data-invalid": A, children: [
4240
- e && /* @__PURE__ */ d(pe, { htmlFor: i, asterisk: r, children: e }),
4241
- /* @__PURE__ */ d(zn, { id: i, "aria-invalid": A, ...a, ref: o }),
4242
- t && /* @__PURE__ */ d(de, { children: t }),
4243
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4244
- ] });
4245
- });
4246
- Na.displayName = "FieldTextarea";
4247
- const La = G(
4248
- ({ label: e, description: t, asterisk: r, invalid: A, error: n, value: a, onChange: o, ...i }, s) => {
4249
- const { name: l } = i;
4250
- return r && !e && console.warn(
4251
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4252
- ), /* @__PURE__ */ d(se, { orientation: "horizontal", "data-invalid": A, children: /* @__PURE__ */ O(on, { children: [
4253
- /* @__PURE__ */ O(se, { orientation: "horizontal", children: [
4254
- /* @__PURE__ */ d(
4255
- Yn,
4256
- {
4257
- id: l,
4258
- name: l,
4259
- checked: a,
4260
- onCheckedChange: o,
4261
- "aria-invalid": A,
4262
- ...i,
4263
- ref: s
4264
- }
4265
- ),
4266
- e && /* @__PURE__ */ d(pe, { htmlFor: l, asterisk: r, children: e })
4267
- ] }),
4268
- t && /* @__PURE__ */ d(de, { children: t }),
4269
- A && /* @__PURE__ */ d(fe, { errors: [n] })
4270
- ] }) });
4271
- }
4272
- );
4273
- La.displayName = "FieldCheckbox";
4274
- const qa = G(
4275
- ({ label: e, name: t, description: r, asterisk: A, invalid: n, error: a, ...o }, i) => (A && !e && console.warn(
4276
- "A prop `asterisk` deve ser utilizada junto com a prop `label`."
4277
- ), /* @__PURE__ */ O(se, { orientation: "vertical", "data-invalid": n, children: [
4278
- e && /* @__PURE__ */ d(pe, { htmlFor: t, asterisk: A, children: e }),
4279
- /* @__PURE__ */ d(Rn, { id: t, ref: i, ...o }),
4280
- r && /* @__PURE__ */ d(de, { children: r }),
4281
- n && /* @__PURE__ */ d(fe, { errors: [a] })
4282
- ] }))
4283
- );
4284
- qa.displayName = "FieldResponsibleSelectInput";
4285
- function ka({
4286
- size: e = 24,
4287
- color: t = "currentColor",
4288
- ...r
4289
- }) {
4290
- return /* @__PURE__ */ O(
4291
- "svg",
4292
- {
4293
- xmlns: "http://www.w3.org/2000/svg",
4294
- width: e,
4295
- height: e,
4296
- viewBox: "0 0 24 24",
4297
- fill: "none",
4298
- stroke: t,
4299
- strokeWidth: "2",
4300
- strokeLinecap: "round",
4301
- strokeLinejoin: "round",
4302
- className: "lucide lucide-instagram-icon lucide-instagram",
4303
- ...r,
4304
- children: [
4305
- /* @__PURE__ */ d("rect", { width: "20", height: "20", x: "2", y: "2", rx: "5", ry: "5" }),
4306
- /* @__PURE__ */ d("path", { d: "M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z" }),
4307
- /* @__PURE__ */ d("line", { x1: "17.5", x2: "17.51", y1: "6.5", y2: "6.5" })
4308
- ]
4309
- }
4310
- );
4311
- }
4312
- function _a({
4313
- size: e = 24,
4314
- color: t = "currentColor",
4315
- ...r
4316
- }) {
4317
- return /* @__PURE__ */ O(
4318
- "svg",
4319
- {
4320
- xmlns: "http://www.w3.org/2000/svg",
4321
- width: e,
4322
- height: e,
4323
- viewBox: "0 0 24 24",
4324
- fill: "none",
4325
- stroke: t,
4326
- strokeWidth: "2",
4327
- strokeLinecap: "round",
4328
- strokeLinejoin: "round",
4329
- className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-linkedin",
4330
- ...r,
4331
- children: [
4332
- /* @__PURE__ */ d("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4333
- /* @__PURE__ */ d("path", { d: "M8 11v5" }),
4334
- /* @__PURE__ */ d("path", { d: "M8 8v.01" }),
4335
- /* @__PURE__ */ d("path", { d: "M12 16v-5" }),
4336
- /* @__PURE__ */ d("path", { d: "M16 16v-3a2 2 0 1 0 -4 0" }),
4337
- /* @__PURE__ */ d("path", { d: "M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10" })
4338
- ]
4339
- }
4340
- );
4341
- }
4342
- function Ha({
4343
- size: e = 24,
4344
- color: t = "currentColor",
4345
- ...r
4346
- }) {
4347
- return /* @__PURE__ */ O(
4348
- "svg",
4349
- {
4350
- xmlns: "http://www.w3.org/2000/svg",
4351
- width: e,
4352
- height: e,
4353
- viewBox: "0 0 24 24",
4354
- fill: "none",
4355
- stroke: t,
4356
- strokeWidth: "2",
4357
- strokeLinecap: "round",
4358
- strokeLinejoin: "round",
4359
- className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-pinterest",
4360
- ...r,
4361
- children: [
4362
- /* @__PURE__ */ d("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4363
- /* @__PURE__ */ d("path", { d: "M8 20l4 -9" }),
4364
- /* @__PURE__ */ d("path", { d: "M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7" }),
4365
- /* @__PURE__ */ d("path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0" })
4366
- ]
4367
- }
4368
- );
4369
- }
4370
- function Ua({
4371
- size: e = 24,
4372
- color: t = "transparent",
4373
- ...r
4374
- }) {
4375
- return /* @__PURE__ */ O(
4376
- "svg",
4377
- {
4378
- xmlns: "http://www.w3.org/2000/svg",
4379
- width: e,
4380
- height: e,
4381
- viewBox: "0 0 24 24",
4382
- fill: t,
4383
- stroke: "currentColor",
4384
- strokeWidth: "2",
4385
- strokeLinecap: "round",
4386
- strokeLinejoin: "round",
4387
- className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-tiktok",
4388
- ...r,
4389
- children: [
4390
- /* @__PURE__ */ d("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4391
- /* @__PURE__ */ d("path", { d: "M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917" })
4392
- ]
4393
- }
4394
- );
4395
- }
4396
- function za({
4397
- size: e = 24,
4398
- color: t = "currentColor",
4399
- ...r
4400
- }) {
4401
- return /* @__PURE__ */ O(
4402
- "svg",
4403
- {
4404
- xmlns: "http://www.w3.org/2000/svg",
4405
- width: e,
4406
- height: e,
4407
- viewBox: "0 0 24 24",
4408
- fill: "none",
4409
- stroke: t,
4410
- "stroke-width": "2",
4411
- "stroke-linecap": "round",
4412
- "stroke-linejoin": "round",
4413
- className: "icon icon-tabler icons-tabler-outline icon-tabler-brand-x",
4414
- ...r,
4415
- children: [
4416
- /* @__PURE__ */ d("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
4417
- /* @__PURE__ */ d("path", { d: "M4 4l11.733 16h4.267l-11.733 -16l-4.267 0" }),
4418
- /* @__PURE__ */ d("path", { d: "M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772" })
4419
- ]
4420
- }
4421
- );
4422
- }
4423
- function Ya({
4424
- size: e = 24,
4425
- color: t = "currentColor",
4426
- ...r
4427
- }) {
4428
- return /* @__PURE__ */ O(
4429
- "svg",
4430
- {
4431
- xmlns: "http://www.w3.org/2000/svg",
4432
- width: e,
4433
- height: e,
4434
- viewBox: "0 0 24 24",
4435
- fill: "none",
4436
- stroke: t,
4437
- strokeWidth: "2",
4438
- strokeLinecap: "round",
4439
- strokeLinejoin: "round",
4440
- className: "lucide lucide-youtube-icon lucide-youtube",
4441
- ...r,
4442
- children: [
4443
- /* @__PURE__ */ d("path", { d: "M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17" }),
4444
- /* @__PURE__ */ d("path", { d: "m10 15 5-3-5-3z" })
4445
- ]
4446
- }
4447
- );
4448
- }
4449
- export {
4450
- ro as A,
4451
- Cr as B,
4452
- Er as C,
4453
- oo as D,
4454
- xa as E,
4455
- pe as F,
4456
- Fa as G,
4457
- Ra as H,
4458
- io as I,
4459
- Ta as J,
4460
- Ia as K,
4461
- Ma as L,
4462
- so as M,
4463
- ja as N,
4464
- Na as O,
4465
- Sr as P,
4466
- La as Q,
4467
- Rn as R,
4468
- ln as S,
4469
- ao as T,
4470
- qa as U,
4471
- ka as V,
4472
- _a as W,
4473
- Ha as X,
4474
- Ua as Y,
4475
- za as Z,
4476
- Ya as _,
4477
- Ct as a,
4478
- Br as b,
4479
- xr as c,
4480
- Fr as d,
4481
- Rr as e,
4482
- Tr as f,
4483
- Ir as g,
4484
- br as h,
4485
- Dr as i,
4486
- Ao as j,
4487
- wr as k,
4488
- Pr as l,
4489
- Or as m,
4490
- no as n,
4491
- xn as o,
4492
- tr as p,
4493
- nr as q,
4494
- rr as r,
4495
- Ar as s,
4496
- ar as t,
4497
- lr as u,
4498
- pr as v,
4499
- cn as w,
4500
- yr as x,
4501
- dn as y,
4502
- Fn as z
4503
- };