@grapadigital/shared-app-modules 0.0.199 → 0.0.201
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.
- package/dist/chuncks/{format.util.CHqqItQu.js → format.util.ovfydp3w.js} +1 -1
- package/dist/chuncks/index.GkteP4bn.js +7 -0
- package/dist/chuncks/{organization-users.service.B8hU1HtK.js → organization-users.service.BCM_WcCz.js} +1 -1
- package/dist/chuncks/{use-shared-app-modules.hook.DKoXZuvy.js → use-shared-app-modules.hook.B3x4jLx3.js} +7 -7
- package/dist/chuncks/{youtube-icon.component.CYI8uem4.js → youtube-icon.component.D8isKAX6.js} +870 -820
- package/dist/components.d.ts +54 -3
- package/dist/components.js +7 -5
- package/dist/configs.d.ts +1 -0
- package/dist/configs.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/dictionaries.js +6 -6
- package/dist/events.js +1 -1
- package/dist/hooks.js +3 -3
- package/dist/utils.js +4 -4
- package/package.json +1 -1
- package/dist/chuncks/index.CQj95ye6.js +0 -7
package/dist/chuncks/{youtube-icon.component.CYI8uem4.js → youtube-icon.component.D8isKAX6.js}
RENAMED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { aZ as
|
|
3
|
-
import * as
|
|
4
|
-
import M, { createContext as vt, Component as
|
|
5
|
-
import { S as _t, F as ae, b as
|
|
6
|
-
import { QueryErrorResetBoundary as
|
|
1
|
+
import { jsx as i, jsxs as h, Fragment as jt } from "react/jsx-runtime";
|
|
2
|
+
import { aZ as de, w as Wt, c as $, F as Qt, B as K, L as Ir, bo as Rr, I as Qn, x as Gn, z as Jn, A as Xn, D as Br, v as Nr, o as Mr, r as kr, u as jr, p as _r, Q as qr, R as Lr, U as An, V as un, a2 as zr, a5 as Hr, a7 as Ur, a8 as Yr, aa as Vr, a9 as Wr, a6 as Qr, S as Gr, C as Zn, a_ as Jr, bp as De, ac as je, ae as _e, af as qe, ag as X, bq as $e, ah as Le, ai as ze, b0 as Xr, d as Zr, g as Kr, f as $r, h as ea, j as ta, aY as na, T as ra } from "./switch.D_38xWg-.js";
|
|
3
|
+
import * as aa from "react";
|
|
4
|
+
import M, { createContext as vt, Component as oa, createElement as ln, Suspense as sa, forwardRef as G, useState as V, useContext as Gt, useEffect as Fe, useMemo as ia, Children as Je } from "react";
|
|
5
|
+
import { S as _t, F as ae, b as he, c as fe, m as Aa, B as yt, u as ua, P as Se, o as xe, p as Pe, d as la, a as cn, T as ca, k as da, l as fa, v as St, w as Ye, x as Ve, y as pa, C as ga, h as Kn } from "./badge.tZcF7uIJ.js";
|
|
6
|
+
import { QueryErrorResetBoundary as ma, useSuspenseQuery as ha, useQueryClient as Jt, useMutation as Xt, useQuery as et } from "@tanstack/react-query";
|
|
7
7
|
import "date-fns";
|
|
8
|
-
import { b as bt, c as
|
|
8
|
+
import { b as bt, c as tt, u as nt, a as rt } from "./use-shared-app-modules.hook.B3x4jLx3.js";
|
|
9
9
|
import "./shared-app-modules.provider.DRJ7n4Cj.js";
|
|
10
10
|
import { isAxiosError as Zt } from "axios";
|
|
11
|
-
import
|
|
12
|
-
import { appendErrors as
|
|
13
|
-
import { validateFieldsNatively as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
11
|
+
import va from "react-dom";
|
|
12
|
+
import { appendErrors as $n, useForm as ct, FormProvider as Kt, useFormContext as $t, useWatch as ya, Controller as dn } from "react-hook-form";
|
|
13
|
+
import { validateFieldsNatively as fn, toNestErrors as pn } from "@hookform/resolvers";
|
|
14
|
+
import Ne from "zod";
|
|
15
|
+
import { g as en } from "./index.GkteP4bn.js";
|
|
16
16
|
const ba = [
|
|
17
17
|
["path", { d: "m7 15 5 5 5-5", key: "1hf1tw" }],
|
|
18
18
|
["path", { d: "m7 9 5-5 5 5", key: "sgt6xg" }]
|
|
19
|
-
],
|
|
19
|
+
], He = de("chevrons-up-down", ba);
|
|
20
20
|
const Ea = [
|
|
21
21
|
[
|
|
22
22
|
"path",
|
|
@@ -29,17 +29,17 @@ const Ea = [
|
|
|
29
29
|
["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
|
|
30
30
|
["circle", { cx: "6.5", cy: "12.5", r: ".5", fill: "currentColor", key: "qy21gx" }],
|
|
31
31
|
["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }]
|
|
32
|
-
],
|
|
32
|
+
], gn = de("palette", Ea);
|
|
33
33
|
const wa = [
|
|
34
34
|
["path", { d: "M5 12h14", key: "1ays0h" }],
|
|
35
35
|
["path", { d: "M12 5v14", key: "s699le" }]
|
|
36
|
-
], Ca =
|
|
36
|
+
], Ca = de("plus", wa);
|
|
37
37
|
const Sa = [
|
|
38
38
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
39
39
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
40
40
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
41
41
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
42
|
-
], xa =
|
|
42
|
+
], xa = de("refresh-cw", Sa);
|
|
43
43
|
const Pa = [
|
|
44
44
|
[
|
|
45
45
|
"path",
|
|
@@ -50,13 +50,13 @@ const Pa = [
|
|
|
50
50
|
],
|
|
51
51
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
52
52
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
53
|
-
], Ta =
|
|
53
|
+
], Ta = de("save", Pa);
|
|
54
54
|
const Oa = [
|
|
55
55
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
56
56
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }],
|
|
57
57
|
["path", { d: "M11 7v4", key: "m2edmq" }],
|
|
58
58
|
["path", { d: "M11 15h.01", key: "k85uqc" }]
|
|
59
|
-
], Da =
|
|
59
|
+
], Da = de("search-alert", Oa);
|
|
60
60
|
const Fa = [
|
|
61
61
|
[
|
|
62
62
|
"path",
|
|
@@ -66,8 +66,8 @@ const Fa = [
|
|
|
66
66
|
}
|
|
67
67
|
],
|
|
68
68
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
69
|
-
],
|
|
70
|
-
const
|
|
69
|
+
], Ia = de("settings", Fa);
|
|
70
|
+
const Ra = [
|
|
71
71
|
["path", { d: "M16 13h6", key: "1um0mj" }],
|
|
72
72
|
[
|
|
73
73
|
"path",
|
|
@@ -78,8 +78,8 @@ const Ba = [
|
|
|
78
78
|
],
|
|
79
79
|
["path", { d: "M19 10v6", key: "13mz7b" }],
|
|
80
80
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
81
|
-
],
|
|
82
|
-
const
|
|
81
|
+
], tn = de("tag-plus", Ra);
|
|
82
|
+
const Ba = [
|
|
83
83
|
[
|
|
84
84
|
"path",
|
|
85
85
|
{
|
|
@@ -90,14 +90,14 @@ const Ia = [
|
|
|
90
90
|
["path", { d: "m16.5 10.5 5 5", key: "1jo8bf" }],
|
|
91
91
|
["path", { d: "m21.5 10.5-5 5", key: "jzei60" }],
|
|
92
92
|
["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }]
|
|
93
|
-
], Na =
|
|
93
|
+
], Na = de("tag-x", Ba);
|
|
94
94
|
const Ma = [
|
|
95
95
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
96
96
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
97
97
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
98
98
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
99
99
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
100
|
-
], ka =
|
|
100
|
+
], ka = de("trash-2", Ma);
|
|
101
101
|
const ja = [
|
|
102
102
|
[
|
|
103
103
|
"path",
|
|
@@ -108,11 +108,11 @@ const ja = [
|
|
|
108
108
|
],
|
|
109
109
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
110
110
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
111
|
-
], _a =
|
|
112
|
-
function
|
|
111
|
+
], _a = de("triangle-alert", ja);
|
|
112
|
+
function er(e) {
|
|
113
113
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
114
114
|
}
|
|
115
|
-
const DA = "Não há dados para atualizar.", FA = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.",
|
|
115
|
+
const DA = "Não há dados para atualizar.", FA = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", IA = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", Oe = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", RA = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", BA = "Campo obrigatório.", tr = {
|
|
116
116
|
instagram: "Instagram",
|
|
117
117
|
tiktok: "TikTok",
|
|
118
118
|
youtube: "YouTube",
|
|
@@ -209,7 +209,7 @@ function Wa(e) {
|
|
|
209
209
|
return !isNaN(Number(e));
|
|
210
210
|
}
|
|
211
211
|
function qt(e) {
|
|
212
|
-
return typeof e != "string" || !e ? !1 : e in
|
|
212
|
+
return typeof e != "string" || !e ? !1 : e in tr;
|
|
213
213
|
}
|
|
214
214
|
function Qa(e) {
|
|
215
215
|
return typeof e != "string" || !e ? !1 : e in qa;
|
|
@@ -249,7 +249,7 @@ function eo(e) {
|
|
|
249
249
|
function to(e) {
|
|
250
250
|
return Object.values(e);
|
|
251
251
|
}
|
|
252
|
-
function
|
|
252
|
+
function ve(e) {
|
|
253
253
|
function t(a) {
|
|
254
254
|
return !a || !(a in e) ? null : e[a];
|
|
255
255
|
}
|
|
@@ -267,10 +267,10 @@ function he(e) {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
|
-
const qA =
|
|
270
|
+
const qA = ve({
|
|
271
271
|
partner: "Parceiros",
|
|
272
272
|
exclusive: "Exclusivos"
|
|
273
|
-
}), LA =
|
|
273
|
+
}), LA = ve({
|
|
274
274
|
config: "Configuração",
|
|
275
275
|
script: "Roteiro",
|
|
276
276
|
production: "Produção",
|
|
@@ -280,10 +280,10 @@ const qA = he({
|
|
|
280
280
|
onHold: "Aguardando",
|
|
281
281
|
cancelled: "Cancelado",
|
|
282
282
|
archived: "Arquivada"
|
|
283
|
-
}), zA =
|
|
283
|
+
}), zA = ve({
|
|
284
284
|
agency: "Agência",
|
|
285
285
|
brand: "Marca"
|
|
286
|
-
}), HA =
|
|
286
|
+
}), HA = ve({
|
|
287
287
|
influencer: "Veículação de Influenciador",
|
|
288
288
|
advisor: "Pagamento de Assessor",
|
|
289
289
|
supplier: "Pagamento de Fornecedor",
|
|
@@ -298,7 +298,7 @@ const qA = he({
|
|
|
298
298
|
conta_simples: "Conta Simples",
|
|
299
299
|
motoboy_bruno: "Motoboy Bruno",
|
|
300
300
|
motoboy_others: "Motoboy Outros"
|
|
301
|
-
}), UA =
|
|
301
|
+
}), UA = ve({
|
|
302
302
|
pending: "Revisão Atendimento",
|
|
303
303
|
review: "Revisão Financeiro",
|
|
304
304
|
awaiting: "Aguardando",
|
|
@@ -308,14 +308,14 @@ const qA = he({
|
|
|
308
308
|
paid: "Pago",
|
|
309
309
|
client: "Pagamento via Cliente",
|
|
310
310
|
canceled: "Cancelado"
|
|
311
|
-
}), YA =
|
|
311
|
+
}), YA = ve({
|
|
312
312
|
new: "Aquisição",
|
|
313
313
|
organic_expansion: "Expansão Orgânica de Base",
|
|
314
314
|
strategic_expansion: "Expansão Estratégica de Base",
|
|
315
315
|
renewal: "Renovação",
|
|
316
316
|
comercial_winback: "Reativação Comercial",
|
|
317
317
|
organic_winback: "Reativação Orgânica"
|
|
318
|
-
}), VA =
|
|
318
|
+
}), VA = ve({
|
|
319
319
|
instagram: "Instagram",
|
|
320
320
|
tiktok: "TikTok",
|
|
321
321
|
youtube: "YouTube",
|
|
@@ -323,19 +323,19 @@ const qA = he({
|
|
|
323
323
|
pinterest: "Pinterest",
|
|
324
324
|
twitter: "Twitter (X)",
|
|
325
325
|
facebook: "Facebook"
|
|
326
|
-
}), WA =
|
|
326
|
+
}), WA = ve({
|
|
327
327
|
instagram: "bg-gradient-to-br from-[#f09433] via-[#e6683c] via-[#dc2743] via-[#cc2366] to-[#bc1888]",
|
|
328
328
|
tiktok: "bg-black",
|
|
329
329
|
youtube: "bg-[#ff0033]",
|
|
330
330
|
linkedin: "bg-[#0a66c2]",
|
|
331
331
|
pinterest: "bg-[#e60023]",
|
|
332
332
|
twitter: "bg-black"
|
|
333
|
-
}), QA =
|
|
333
|
+
}), QA = ve({
|
|
334
334
|
service: "Atendimento",
|
|
335
335
|
comercial: "Comercial",
|
|
336
336
|
squad_a: "Squad A",
|
|
337
337
|
squad_b: "Squad B"
|
|
338
|
-
}),
|
|
338
|
+
}), Xe = ve({
|
|
339
339
|
white: "hover:opacity-90 bg-white border border-border text-black",
|
|
340
340
|
black: "hover:opacity-90 bg-black text-white",
|
|
341
341
|
slate: "hover:opacity-90 bg-slate-500 text-slate-50",
|
|
@@ -368,7 +368,7 @@ function Lt() {
|
|
|
368
368
|
return e;
|
|
369
369
|
}, Lt.apply(null, arguments);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function mn(e, t) {
|
|
372
372
|
try {
|
|
373
373
|
var n = e();
|
|
374
374
|
} catch (a) {
|
|
@@ -391,7 +391,7 @@ function no(e, t) {
|
|
|
391
391
|
});
|
|
392
392
|
}), t) {
|
|
393
393
|
var d = n[s].types, c = d && d[a.code];
|
|
394
|
-
n[s] =
|
|
394
|
+
n[s] = $n(s, t, n, r, c ? [].concat(c, a.message) : a.message);
|
|
395
395
|
}
|
|
396
396
|
e.shift();
|
|
397
397
|
}
|
|
@@ -401,18 +401,18 @@ function ro(e, t) {
|
|
|
401
401
|
for (var n = /* @__PURE__ */ Object.create(null), a = function() {
|
|
402
402
|
var r = e[0], o = r.code, s = r.message, A = r.path.join(".");
|
|
403
403
|
if (!n[A]) if (r.code === "invalid_union" && r.errors.length > 0) {
|
|
404
|
-
var u, l, d = r.errors.reduce(function(p,
|
|
405
|
-
return
|
|
404
|
+
var u, l, d = r.errors.reduce(function(p, v) {
|
|
405
|
+
return v.length < p.length ? v : p;
|
|
406
406
|
})[0];
|
|
407
407
|
n[A] = { message: (u = d?.message) != null ? u : s, type: (l = d?.code) != null ? l : o };
|
|
408
408
|
} else n[A] = { message: s, type: o };
|
|
409
409
|
if (r.code === "invalid_union" && r.errors.forEach(function(p) {
|
|
410
|
-
return p.forEach(function(
|
|
411
|
-
return e.push(Lt({},
|
|
410
|
+
return p.forEach(function(v) {
|
|
411
|
+
return e.push(Lt({}, v, { path: [].concat(r.path, v.path) }));
|
|
412
412
|
});
|
|
413
413
|
}), t) {
|
|
414
414
|
var c = n[A].types, f = c && c[r.code];
|
|
415
|
-
n[A] =
|
|
415
|
+
n[A] = $n(A, t, n, o, f ? [].concat(f, r.message) : r.message);
|
|
416
416
|
}
|
|
417
417
|
e.shift();
|
|
418
418
|
}; e.length; ) a();
|
|
@@ -423,9 +423,9 @@ function zt(e, t, n) {
|
|
|
423
423
|
return "_zod" in a && typeof a._zod == "object";
|
|
424
424
|
})(e)) return function(a, r, o) {
|
|
425
425
|
try {
|
|
426
|
-
return Promise.resolve(
|
|
426
|
+
return Promise.resolve(mn(function() {
|
|
427
427
|
function s(u) {
|
|
428
|
-
return o.shouldUseNativeValidation &&
|
|
428
|
+
return o.shouldUseNativeValidation && fn({}, o), { errors: {}, values: n.raw ? Object.assign({}, a) : u };
|
|
429
429
|
}
|
|
430
430
|
var A = e;
|
|
431
431
|
return n.mode === "sync" ? s(A.parse(a, t)) : Promise.resolve(A.parseAsync(a, t)).then(s);
|
|
@@ -433,7 +433,7 @@ function zt(e, t, n) {
|
|
|
433
433
|
if ((function(A) {
|
|
434
434
|
var u;
|
|
435
435
|
return !(A == null || (u = A._zod) == null || (u = u.traits) == null || !u.has("$ZodError"));
|
|
436
|
-
})(s)) return { values: {}, errors:
|
|
436
|
+
})(s)) return { values: {}, errors: pn(ro(s.issues, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
|
|
437
437
|
throw s;
|
|
438
438
|
}));
|
|
439
439
|
} catch (s) {
|
|
@@ -444,14 +444,14 @@ function zt(e, t, n) {
|
|
|
444
444
|
return "_def" in a && typeof a._def == "object";
|
|
445
445
|
})(e)) return function(a, r, o) {
|
|
446
446
|
try {
|
|
447
|
-
return Promise.resolve(
|
|
447
|
+
return Promise.resolve(mn(function() {
|
|
448
448
|
return Promise.resolve(e[n.mode === "sync" ? "parse" : "parseAsync"](a, t)).then(function(s) {
|
|
449
|
-
return o.shouldUseNativeValidation &&
|
|
449
|
+
return o.shouldUseNativeValidation && fn({}, o), { errors: {}, values: n.raw ? Object.assign({}, a) : s };
|
|
450
450
|
});
|
|
451
451
|
}, function(s) {
|
|
452
452
|
if ((function(A) {
|
|
453
453
|
return Array.isArray(A?.issues);
|
|
454
|
-
})(s)) return { values: {}, errors:
|
|
454
|
+
})(s)) return { values: {}, errors: pn(no(s.errors, !o.shouldUseNativeValidation && o.criteriaMode === "all"), o) };
|
|
455
455
|
throw s;
|
|
456
456
|
}));
|
|
457
457
|
} catch (s) {
|
|
@@ -467,7 +467,7 @@ function ao(e) {
|
|
|
467
467
|
}
|
|
468
468
|
Array(12).fill(0);
|
|
469
469
|
let oo = 1;
|
|
470
|
-
const so = 100,
|
|
470
|
+
const so = 100, hn = (e) => {
|
|
471
471
|
var t;
|
|
472
472
|
return typeof e?.id == "number" || (e == null || (t = e.id) == null ? void 0 : t.length) > 0 ? e.id : oo++;
|
|
473
473
|
};
|
|
@@ -487,7 +487,7 @@ class io {
|
|
|
487
487
|
let t = this.toasts.length - so;
|
|
488
488
|
t <= 0 || (this.toasts = this.toasts.filter((n) => t > 0 && this.dismissedToasts.has(n.id) ? (this.dismissedToasts.delete(n.id), t--, !1) : !0));
|
|
489
489
|
}, this.create = (t) => {
|
|
490
|
-
const { message: n, ...a } = t, r =
|
|
490
|
+
const { message: n, ...a } = t, r = hn(t), o = this.pendingDismissals.get(r);
|
|
491
491
|
o !== void 0 && (cancelAnimationFrame(o), this.pendingDismissals.delete(r), this.dismissedToasts.delete(r));
|
|
492
492
|
const s = this.dismissedToasts.has(r), A = t.dismissible === void 0 ? !0 : t.dismissible;
|
|
493
493
|
return s && (this.dismissedToasts.delete(r), this.toasts = this.toasts.filter((l) => l.id !== r)), (s ? void 0 : this.toasts.find((l) => l.id === r)) ? this.toasts = this.toasts.map((l) => l.id === r ? (this.publish({
|
|
@@ -572,36 +572,36 @@ class io {
|
|
|
572
572
|
});
|
|
573
573
|
else if (uo(l) && !l.ok) {
|
|
574
574
|
o = !1;
|
|
575
|
-
const c = typeof n.error == "function" ? await n.error(`HTTP error! status: ${l.status}`) : n.error, f = typeof n.description == "function" ? await n.description(`HTTP error! status: ${l.status}`) : n.description,
|
|
575
|
+
const c = typeof n.error == "function" ? await n.error(`HTTP error! status: ${l.status}`) : n.error, f = typeof n.description == "function" ? await n.description(`HTTP error! status: ${l.status}`) : n.description, v = typeof c == "object" && !M.isValidElement(c) ? c : {
|
|
576
576
|
message: c
|
|
577
577
|
};
|
|
578
578
|
this.create({
|
|
579
579
|
id: a,
|
|
580
580
|
type: "error",
|
|
581
581
|
description: f,
|
|
582
|
-
...
|
|
582
|
+
...v
|
|
583
583
|
});
|
|
584
584
|
} else if (l instanceof Error) {
|
|
585
585
|
o = !1;
|
|
586
|
-
const c = typeof n.error == "function" ? await n.error(l) : n.error, f = typeof n.description == "function" ? await n.description(l) : n.description,
|
|
586
|
+
const c = typeof n.error == "function" ? await n.error(l) : n.error, f = typeof n.description == "function" ? await n.description(l) : n.description, v = typeof c == "object" && !M.isValidElement(c) ? c : {
|
|
587
587
|
message: c
|
|
588
588
|
};
|
|
589
589
|
this.create({
|
|
590
590
|
id: a,
|
|
591
591
|
type: "error",
|
|
592
592
|
description: f,
|
|
593
|
-
...
|
|
593
|
+
...v
|
|
594
594
|
});
|
|
595
595
|
} else if (n.success !== void 0) {
|
|
596
596
|
o = !1;
|
|
597
|
-
const c = typeof n.success == "function" ? await n.success(l) : n.success, f = typeof n.description == "function" ? await n.description(l) : n.description,
|
|
597
|
+
const c = typeof n.success == "function" ? await n.success(l) : n.success, f = typeof n.description == "function" ? await n.description(l) : n.description, v = typeof c == "object" && !M.isValidElement(c) ? c : {
|
|
598
598
|
message: c
|
|
599
599
|
};
|
|
600
600
|
this.create({
|
|
601
601
|
id: a,
|
|
602
602
|
type: "success",
|
|
603
603
|
description: f,
|
|
604
|
-
...
|
|
604
|
+
...v
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
}).catch(async (l) => {
|
|
@@ -629,7 +629,7 @@ class io {
|
|
|
629
629
|
unwrap: u
|
|
630
630
|
});
|
|
631
631
|
}, this.custom = (t, n) => {
|
|
632
|
-
const a =
|
|
632
|
+
const a = hn(n);
|
|
633
633
|
return this.create({
|
|
634
634
|
...n,
|
|
635
635
|
jsx: t(a),
|
|
@@ -639,7 +639,7 @@ class io {
|
|
|
639
639
|
}, this.getActiveToasts = () => this.toasts.filter((t) => !this.dismissedToasts.has(t.id)), this.subscribers = [], this.toasts = [], this.dismissedToasts = /* @__PURE__ */ new Set(), this.pendingDismissals = /* @__PURE__ */ new Map();
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
|
-
const ie = new io(), Ao = (e, t) => ie.message(e, t), uo = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", lo = Ao, co = () => ie.toasts, fo = () => ie.getActiveToasts(),
|
|
642
|
+
const ie = new io(), Ao = (e, t) => ie.message(e, t), uo = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", lo = Ao, co = () => ie.toasts, fo = () => ie.getActiveToasts(), vn = Object.assign(lo, {
|
|
643
643
|
success: ie.success,
|
|
644
644
|
info: ie.info,
|
|
645
645
|
warning: ie.warning,
|
|
@@ -658,7 +658,7 @@ const po = vt(null), xt = {
|
|
|
658
658
|
didCatch: !1,
|
|
659
659
|
error: null
|
|
660
660
|
};
|
|
661
|
-
class go extends
|
|
661
|
+
class go extends oa {
|
|
662
662
|
constructor(t) {
|
|
663
663
|
super(t), this.resetErrorBoundary = this.resetErrorBoundary.bind(this), this.state = xt;
|
|
664
664
|
}
|
|
@@ -694,13 +694,13 @@ class go extends aa {
|
|
|
694
694
|
if (typeof n == "function")
|
|
695
695
|
A = n(u);
|
|
696
696
|
else if (a)
|
|
697
|
-
A =
|
|
697
|
+
A = ln(a, u);
|
|
698
698
|
else if (r !== void 0)
|
|
699
699
|
A = r;
|
|
700
700
|
else
|
|
701
701
|
throw s;
|
|
702
702
|
}
|
|
703
|
-
return
|
|
703
|
+
return ln(
|
|
704
704
|
po.Provider,
|
|
705
705
|
{
|
|
706
706
|
value: {
|
|
@@ -716,7 +716,7 @@ class go extends aa {
|
|
|
716
716
|
function mo(e = [], t = []) {
|
|
717
717
|
return e.length !== t.length || e.some((n, a) => !Object.is(n, t[a]));
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function nr({
|
|
720
720
|
icon: e = _a,
|
|
721
721
|
title: t = "Algo deu errado",
|
|
722
722
|
description: n = "Não foi possível concluir esta operação no momento. Tente novamente em alguns instantes. Se o problema persistir, entre em contato com o suporte.",
|
|
@@ -725,11 +725,11 @@ function tr({
|
|
|
725
725
|
className: o,
|
|
726
726
|
...s
|
|
727
727
|
}) {
|
|
728
|
-
return /* @__PURE__ */ i(Wt, { className: $(o), ...s, children: /* @__PURE__ */
|
|
728
|
+
return /* @__PURE__ */ i(Wt, { className: $(o), ...s, children: /* @__PURE__ */ h(Qt, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
729
729
|
/* @__PURE__ */ i("div", { className: "relative mb-4", children: /* @__PURE__ */ i(e, { "aria-hidden": "true", className: "text-destructive/60 size-16" }) }),
|
|
730
730
|
/* @__PURE__ */ i("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: t }),
|
|
731
731
|
/* @__PURE__ */ i("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
|
|
732
|
-
a && /* @__PURE__ */
|
|
732
|
+
a && /* @__PURE__ */ h(K, { onClick: a, variant: "outline", className: "mt-6", children: [
|
|
733
733
|
/* @__PURE__ */ i(xa, {}),
|
|
734
734
|
"Tentar novamente"
|
|
735
735
|
] }),
|
|
@@ -738,10 +738,10 @@ function tr({
|
|
|
738
738
|
}
|
|
739
739
|
function ho({
|
|
740
740
|
suspenseFallback: e = vo,
|
|
741
|
-
errorFallback: t =
|
|
741
|
+
errorFallback: t = nr,
|
|
742
742
|
children: n
|
|
743
743
|
}) {
|
|
744
|
-
return /* @__PURE__ */ i(
|
|
744
|
+
return /* @__PURE__ */ i(sa, { fallback: /* @__PURE__ */ i(e, {}), children: /* @__PURE__ */ i(ma, { children: ({ reset: a }) => /* @__PURE__ */ i(
|
|
745
745
|
go,
|
|
746
746
|
{
|
|
747
747
|
onReset: a,
|
|
@@ -753,18 +753,18 @@ function ho({
|
|
|
753
753
|
function vo() {
|
|
754
754
|
return /* @__PURE__ */ i(_t, { className: "h-[13.75625rem]" });
|
|
755
755
|
}
|
|
756
|
-
const
|
|
756
|
+
const rr = aa.forwardRef(({ asterisk: e, children: t, ...n }, a) => /* @__PURE__ */ i(Ir, { ref: a, ...n, children: /* @__PURE__ */ h("span", { className: "inline-flex gap-0.5", children: [
|
|
757
757
|
t,
|
|
758
758
|
" ",
|
|
759
759
|
e && /* @__PURE__ */ i("span", { className: "text-red-500", children: "*" })
|
|
760
760
|
] }) }));
|
|
761
|
-
|
|
762
|
-
function
|
|
761
|
+
rr.displayName = Rr.displayName;
|
|
762
|
+
function ye({
|
|
763
763
|
className: e,
|
|
764
764
|
...t
|
|
765
765
|
}) {
|
|
766
766
|
return /* @__PURE__ */ i(
|
|
767
|
-
|
|
767
|
+
rr,
|
|
768
768
|
{
|
|
769
769
|
"data-slot": "field-label",
|
|
770
770
|
className: $(
|
|
@@ -777,49 +777,60 @@ function ve({
|
|
|
777
777
|
}
|
|
778
778
|
);
|
|
779
779
|
}
|
|
780
|
-
const
|
|
780
|
+
const ar = G(
|
|
781
781
|
({ label: e, description: t, asterisk: n, invalid: a, error: r, ...o }, s) => {
|
|
782
782
|
const { name: A } = o;
|
|
783
783
|
return n && !e && console.warn(
|
|
784
784
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
785
|
-
), /* @__PURE__ */
|
|
786
|
-
e && /* @__PURE__ */ i(
|
|
787
|
-
/* @__PURE__ */ i(
|
|
788
|
-
t && /* @__PURE__ */ i(
|
|
789
|
-
a && /* @__PURE__ */ i(
|
|
785
|
+
), /* @__PURE__ */ h(ae, { "data-invalid": a, children: [
|
|
786
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: A, asterisk: n, children: e }),
|
|
787
|
+
/* @__PURE__ */ i(Qn, { id: A, "aria-invalid": a, ...o, ref: s }),
|
|
788
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
789
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
790
790
|
] });
|
|
791
791
|
}
|
|
792
792
|
);
|
|
793
|
-
|
|
794
|
-
const
|
|
795
|
-
if (!
|
|
796
|
-
if (!
|
|
797
|
-
if (!
|
|
798
|
-
|
|
793
|
+
ar.displayName = "FieldInput";
|
|
794
|
+
const le = {}, we = () => {
|
|
795
|
+
if (!le.module) throw new Error("Module é obrigatório.");
|
|
796
|
+
if (!le.moduleId) throw new Error("moduleId é obrigatório.");
|
|
797
|
+
if (!le.organizationId)
|
|
798
|
+
throw new Error("organizationId é obrigatório.");
|
|
799
|
+
if (!le.currentTags) throw new Error("currentTags é obrigatório.");
|
|
800
|
+
if (!le.useUpdateModuleTags)
|
|
799
801
|
throw new Error("useUpdateModuleTags é obrigatório.");
|
|
800
802
|
return {
|
|
801
|
-
module:
|
|
802
|
-
organizationId:
|
|
803
|
-
|
|
804
|
-
|
|
803
|
+
module: le.module,
|
|
804
|
+
organizationId: le.organizationId,
|
|
805
|
+
moduleId: le.moduleId,
|
|
806
|
+
currentTags: le.currentTags,
|
|
807
|
+
useUpdateModuleTags: le.useUpdateModuleTags
|
|
805
808
|
};
|
|
806
|
-
}, Et = (
|
|
809
|
+
}, Et = ({
|
|
810
|
+
module: e,
|
|
811
|
+
organizationId: t
|
|
812
|
+
} = {}) => [
|
|
813
|
+
"tags",
|
|
814
|
+
"list",
|
|
815
|
+
e ?? we().module,
|
|
816
|
+
t ?? we().organizationId
|
|
817
|
+
], or = vt(null);
|
|
807
818
|
function yo({ children: e }) {
|
|
808
|
-
const [t, n] = V(!1), [a, r] = V(null), o =
|
|
809
|
-
u.reset(
|
|
819
|
+
const [t, n] = V(!1), [a, r] = V(null), o = Ie(), s = (v) => {
|
|
820
|
+
u.reset(v), r(v);
|
|
810
821
|
}, A = () => {
|
|
811
822
|
r(null);
|
|
812
|
-
}, u =
|
|
813
|
-
resolver: zt(
|
|
823
|
+
}, u = ct({
|
|
824
|
+
resolver: zt(bn),
|
|
814
825
|
defaultValues: { color: "white", name: "" }
|
|
815
|
-
}), l =
|
|
816
|
-
resolver: zt(
|
|
826
|
+
}), l = ct({
|
|
827
|
+
resolver: zt(bn),
|
|
817
828
|
defaultValues: { color: "white", name: "" }
|
|
818
|
-
}), d =
|
|
819
|
-
c || (
|
|
820
|
-
}, p = !!a && !!o.data?.find((
|
|
829
|
+
}), d = ct(), c = u.formState.isSubmitting || l.formState.isSubmitting, f = (v) => {
|
|
830
|
+
c || (v || (A(), l.reset()), n(v));
|
|
831
|
+
}, p = !!a && !!o.data?.find((v) => v._id === a._id);
|
|
821
832
|
return /* @__PURE__ */ i(
|
|
822
|
-
|
|
833
|
+
or.Provider,
|
|
823
834
|
{
|
|
824
835
|
value: {
|
|
825
836
|
isEditing: p,
|
|
@@ -838,50 +849,50 @@ function yo({ children: e }) {
|
|
|
838
849
|
);
|
|
839
850
|
}
|
|
840
851
|
function wt() {
|
|
841
|
-
const e = Gt(
|
|
852
|
+
const e = Gt(or);
|
|
842
853
|
if (!e)
|
|
843
854
|
throw new Error(
|
|
844
855
|
"useManageTagsCtx deve ser utilizado dentro de um ManageTagsProvider"
|
|
845
856
|
);
|
|
846
857
|
return e;
|
|
847
858
|
}
|
|
848
|
-
const bo =
|
|
849
|
-
tags:
|
|
850
|
-
}),
|
|
859
|
+
const bo = Ne.object({
|
|
860
|
+
tags: Ne.array(Ne.string()).optional()
|
|
861
|
+
}), sr = vt(null);
|
|
851
862
|
function Eo({ children: e }) {
|
|
852
|
-
const t =
|
|
863
|
+
const t = we(), [n, a] = V(!1), { useUpdateModuleTags: r } = we(), o = r(), A = Ie().data, u = ct({
|
|
853
864
|
resolver: zt(bo),
|
|
854
865
|
defaultValues: {
|
|
855
|
-
tags: t.currentTags.map((
|
|
866
|
+
tags: t.currentTags.map((f) => A.find((p) => p._id === f)?._id).filter(Boolean)
|
|
856
867
|
}
|
|
857
|
-
}),
|
|
858
|
-
|
|
868
|
+
}), l = u.handleSubmit((f) => {
|
|
869
|
+
o.mutate(
|
|
859
870
|
{
|
|
860
|
-
id:
|
|
861
|
-
payload: { tags:
|
|
871
|
+
id: t.moduleId,
|
|
872
|
+
payload: { tags: f.tags ?? [] }
|
|
862
873
|
},
|
|
863
874
|
{
|
|
864
875
|
onSuccess: () => {
|
|
865
|
-
|
|
876
|
+
vn.success("Etiquetas atualizadas com sucesso!"), u.reset(f), a(!1);
|
|
866
877
|
},
|
|
867
878
|
onError: () => {
|
|
868
|
-
|
|
879
|
+
vn.error(Oe);
|
|
869
880
|
}
|
|
870
881
|
}
|
|
871
882
|
);
|
|
872
|
-
}),
|
|
873
|
-
|
|
883
|
+
}), d = u.formState.isSubmitting || o.isPending, c = (f) => {
|
|
884
|
+
d || (u.reset(), a(f));
|
|
874
885
|
};
|
|
875
|
-
return /* @__PURE__ */ i(Kt, { ...
|
|
876
|
-
|
|
886
|
+
return /* @__PURE__ */ i(Kt, { ...u, children: /* @__PURE__ */ i(
|
|
887
|
+
sr.Provider,
|
|
877
888
|
{
|
|
878
|
-
value: { isDisabled:
|
|
889
|
+
value: { isDisabled: d, open: n, toggleUpdateTags: c, onSubmit: l },
|
|
879
890
|
children: e
|
|
880
891
|
}
|
|
881
892
|
) });
|
|
882
893
|
}
|
|
883
|
-
function
|
|
884
|
-
const e = Gt(
|
|
894
|
+
function ir() {
|
|
895
|
+
const e = Gt(sr);
|
|
885
896
|
if (!e)
|
|
886
897
|
throw new Error(
|
|
887
898
|
"useUpdateTagsCtx deve ser utilizado dentro de um UpdateTagsProvider"
|
|
@@ -889,17 +900,17 @@ function sr() {
|
|
|
889
900
|
return e;
|
|
890
901
|
}
|
|
891
902
|
function wo() {
|
|
892
|
-
return /* @__PURE__ */
|
|
893
|
-
/* @__PURE__ */
|
|
894
|
-
/* @__PURE__ */ i(
|
|
895
|
-
/* @__PURE__ */ i(
|
|
903
|
+
return /* @__PURE__ */ h(Wt, { children: [
|
|
904
|
+
/* @__PURE__ */ h(Gn, { children: [
|
|
905
|
+
/* @__PURE__ */ i(Jn, { children: /* @__PURE__ */ i(_t, { className: "h-4 w-24" }) }),
|
|
906
|
+
/* @__PURE__ */ i(Xn, { className: "flex gap-2", children: Array.from({ length: 2 }).map((e, t) => /* @__PURE__ */ i(_t, { className: "size-4" }, t)) })
|
|
896
907
|
] }),
|
|
897
908
|
/* @__PURE__ */ i(Qt, { className: "flex flex-wrap gap-1", children: Array.from({ length: 3 }).map((e, t) => /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-1", children: /* @__PURE__ */ i(yt, { className: "h-[1.375rem] w-[5.625rem] bg-gray-500 text-black hover:opacity-90" }) }, t)) })
|
|
898
909
|
] });
|
|
899
910
|
}
|
|
900
911
|
function Co() {
|
|
901
912
|
return /* @__PURE__ */ i(
|
|
902
|
-
|
|
913
|
+
nr,
|
|
903
914
|
{
|
|
904
915
|
icon: Na,
|
|
905
916
|
title: "Erro ao exibir as Etiquetas",
|
|
@@ -911,29 +922,31 @@ function Co() {
|
|
|
911
922
|
}
|
|
912
923
|
function GA({
|
|
913
924
|
module: e,
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
925
|
+
moduleId: t,
|
|
926
|
+
organizationId: n,
|
|
927
|
+
currentTags: a = [],
|
|
928
|
+
useUpdateModuleTags: r
|
|
917
929
|
}) {
|
|
918
|
-
return Object.assign(
|
|
930
|
+
return Object.assign(le, {
|
|
919
931
|
module: e,
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
932
|
+
moduleId: t,
|
|
933
|
+
organizationId: n ?? en.organizationId,
|
|
934
|
+
currentTags: a,
|
|
935
|
+
useUpdateModuleTags: r
|
|
923
936
|
}), /* @__PURE__ */ i(
|
|
924
937
|
ho,
|
|
925
938
|
{
|
|
926
939
|
suspenseFallback: wo,
|
|
927
940
|
errorFallback: Co,
|
|
928
|
-
children: /* @__PURE__ */ i(
|
|
941
|
+
children: /* @__PURE__ */ i(Aa, { children: /* @__PURE__ */ i(yo, { children: /* @__PURE__ */ i(Eo, { children: /* @__PURE__ */ i(So, {}) }) }) })
|
|
929
942
|
}
|
|
930
943
|
);
|
|
931
944
|
}
|
|
932
945
|
function So() {
|
|
933
|
-
return /* @__PURE__ */
|
|
934
|
-
/* @__PURE__ */
|
|
935
|
-
/* @__PURE__ */ i(
|
|
936
|
-
/* @__PURE__ */
|
|
946
|
+
return /* @__PURE__ */ h(Wt, { children: [
|
|
947
|
+
/* @__PURE__ */ h(Gn, { children: [
|
|
948
|
+
/* @__PURE__ */ i(Jn, { children: /* @__PURE__ */ i("h2", { children: "Etiquetas" }) }),
|
|
949
|
+
/* @__PURE__ */ h(Xn, { className: "flex gap-2", children: [
|
|
937
950
|
/* @__PURE__ */ i(xo, {}),
|
|
938
951
|
/* @__PURE__ */ i(Do, {})
|
|
939
952
|
] })
|
|
@@ -942,19 +955,19 @@ function So() {
|
|
|
942
955
|
] });
|
|
943
956
|
}
|
|
944
957
|
function xo() {
|
|
945
|
-
return
|
|
958
|
+
return ua("(min-width: 768px)") ? /* @__PURE__ */ i(Po, {}) : /* @__PURE__ */ i(To, {});
|
|
946
959
|
}
|
|
947
960
|
function Po() {
|
|
948
|
-
const { open: e, toggleUpdateTags: t, isDisabled: n, onSubmit: a } =
|
|
949
|
-
return /* @__PURE__ */
|
|
950
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ i(K, { size: "icon-sm", variant: "ghost", className: "size-4", children: /* @__PURE__ */ i(
|
|
961
|
+
const { open: e, toggleUpdateTags: t, isDisabled: n, onSubmit: a } = ir();
|
|
962
|
+
return /* @__PURE__ */ h(Se, { open: e, onOpenChange: t, children: [
|
|
963
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ i(K, { size: "icon-sm", variant: "ghost", className: "size-4", children: /* @__PURE__ */ i(tn, {}) }) }),
|
|
951
964
|
/* @__PURE__ */ i(
|
|
952
965
|
Pe,
|
|
953
966
|
{
|
|
954
967
|
className: "w-full min-w-[var(--radix-popper-anchor-width)]",
|
|
955
968
|
align: "end",
|
|
956
|
-
children: /* @__PURE__ */
|
|
957
|
-
/* @__PURE__ */ i(
|
|
969
|
+
children: /* @__PURE__ */ h("form", { onSubmit: a, className: "flex flex-col gap-4", children: [
|
|
970
|
+
/* @__PURE__ */ i(Ar, {}),
|
|
958
971
|
/* @__PURE__ */ i(K, { type: "submit", size: "sm", isPending: n, children: "Salvar" })
|
|
959
972
|
] })
|
|
960
973
|
}
|
|
@@ -962,13 +975,13 @@ function Po() {
|
|
|
962
975
|
] });
|
|
963
976
|
}
|
|
964
977
|
function To() {
|
|
965
|
-
const { open: e, toggleUpdateTags: t, isDisabled: n, onSubmit: a } =
|
|
966
|
-
return /* @__PURE__ */
|
|
967
|
-
/* @__PURE__ */ i(
|
|
968
|
-
/* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */ i(
|
|
970
|
-
/* @__PURE__ */ i("form", { id: "update-tags-form", onSubmit: a, className: "mx-4", children: /* @__PURE__ */ i(
|
|
971
|
-
/* @__PURE__ */
|
|
978
|
+
const { open: e, toggleUpdateTags: t, isDisabled: n, onSubmit: a } = ir();
|
|
979
|
+
return /* @__PURE__ */ h(zr, { open: e, onOpenChange: t, children: [
|
|
980
|
+
/* @__PURE__ */ i(Hr, { asChild: !0, children: /* @__PURE__ */ i(K, { size: "icon-sm", variant: "ghost", className: "size-4", children: /* @__PURE__ */ i(tn, {}) }) }),
|
|
981
|
+
/* @__PURE__ */ h(Ur, { "aria-describedby": void 0, children: [
|
|
982
|
+
/* @__PURE__ */ i(Yr, { children: /* @__PURE__ */ i(Vr, { className: "text-center", children: "Etiquetas" }) }),
|
|
983
|
+
/* @__PURE__ */ i("form", { id: "update-tags-form", onSubmit: a, className: "mx-4", children: /* @__PURE__ */ i(Ar, {}) }),
|
|
984
|
+
/* @__PURE__ */ h(Wr, { children: [
|
|
972
985
|
/* @__PURE__ */ i(
|
|
973
986
|
K,
|
|
974
987
|
{
|
|
@@ -979,41 +992,72 @@ function To() {
|
|
|
979
992
|
children: "Salvar"
|
|
980
993
|
}
|
|
981
994
|
),
|
|
982
|
-
/* @__PURE__ */ i(
|
|
995
|
+
/* @__PURE__ */ i(Qr, { asChild: !0, children: /* @__PURE__ */ i(K, { variant: "ghost", size: "sm", disabled: n, children: "Fechar" }) })
|
|
983
996
|
] })
|
|
984
997
|
] })
|
|
985
998
|
] });
|
|
986
999
|
}
|
|
1000
|
+
function JA({
|
|
1001
|
+
module: e,
|
|
1002
|
+
organizationId: t
|
|
1003
|
+
}) {
|
|
1004
|
+
return Ie({
|
|
1005
|
+
config: {
|
|
1006
|
+
module: e,
|
|
1007
|
+
organizationId: t ?? en.organizationId ?? ""
|
|
1008
|
+
}
|
|
1009
|
+
}).data;
|
|
1010
|
+
}
|
|
1011
|
+
function XA({
|
|
1012
|
+
module: e,
|
|
1013
|
+
tags: t = [],
|
|
1014
|
+
organizationId: n
|
|
1015
|
+
}) {
|
|
1016
|
+
const r = Ie({
|
|
1017
|
+
config: {
|
|
1018
|
+
module: e,
|
|
1019
|
+
organizationId: n ?? en.organizationId ?? ""
|
|
1020
|
+
}
|
|
1021
|
+
}).data;
|
|
1022
|
+
return t.map((o) => {
|
|
1023
|
+
const s = r.find((u) => u._id === o), A = Xe.getLabel(s?.color) ?? void 0;
|
|
1024
|
+
if (s)
|
|
1025
|
+
return {
|
|
1026
|
+
...s,
|
|
1027
|
+
className: A
|
|
1028
|
+
};
|
|
1029
|
+
}).filter((o) => o !== void 0);
|
|
1030
|
+
}
|
|
987
1031
|
function Oo() {
|
|
988
|
-
const e = $t(), t =
|
|
989
|
-
const s = a.find((A) => A.
|
|
1032
|
+
const e = $t(), t = ya({ control: e.control, name: "tags" }) ?? [], a = Ie().data, r = t.map((o) => {
|
|
1033
|
+
const s = a.find((A) => A._id === o);
|
|
990
1034
|
if (s)
|
|
991
1035
|
return {
|
|
992
1036
|
...s,
|
|
993
|
-
className:
|
|
1037
|
+
className: Xe.getLabel(s.color) ?? void 0
|
|
994
1038
|
};
|
|
995
1039
|
}).filter(Boolean);
|
|
996
|
-
return r.length === 0 ? /* @__PURE__ */ i("p", { className: "text-muted-foreground text-sm italic", children: "Nenhuma etiqueta vinculada." }) : /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-1", children: r.map((o) => /* @__PURE__ */ i(yt, { className: o?.className, children: o?.name }, o?.
|
|
1040
|
+
return r.length === 0 ? /* @__PURE__ */ i("p", { className: "text-muted-foreground text-sm italic", children: "Nenhuma etiqueta vinculada." }) : /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-1", children: r.map((o) => /* @__PURE__ */ i(yt, { className: o?.className, children: o?.name }, o?._id)) });
|
|
997
1041
|
}
|
|
998
|
-
function
|
|
999
|
-
const t =
|
|
1042
|
+
function Ar() {
|
|
1043
|
+
const t = Ie().data ?? [], n = $t(), a = n.watch("tags");
|
|
1000
1044
|
return /* @__PURE__ */ i("div", { className: "flex flex-col gap-2 pt-2", children: t.length === 0 ? /* @__PURE__ */ i("div", { className: "text-sm italic text-gray-500", children: "Não existem etiquetas por enquanto." }) : t.map((r) => {
|
|
1001
|
-
const o = a?.some((s) => s === r.
|
|
1002
|
-
return /* @__PURE__ */
|
|
1045
|
+
const o = a?.some((s) => s === r._id);
|
|
1046
|
+
return /* @__PURE__ */ h(
|
|
1003
1047
|
"label",
|
|
1004
1048
|
{
|
|
1005
1049
|
className: "flex cursor-pointer items-center space-x-2 rounded-sm p-1 hover:bg-[#f3f4f6]",
|
|
1006
1050
|
children: [
|
|
1007
1051
|
/* @__PURE__ */ i(
|
|
1008
|
-
|
|
1052
|
+
Zn,
|
|
1009
1053
|
{
|
|
1010
1054
|
checked: o,
|
|
1011
1055
|
onCheckedChange: (s) => {
|
|
1012
1056
|
if (s)
|
|
1013
|
-
n.setValue("tags", [...a ?? [], r.
|
|
1057
|
+
n.setValue("tags", [...a ?? [], r._id]);
|
|
1014
1058
|
else {
|
|
1015
1059
|
const A = a?.filter(
|
|
1016
|
-
(u) => u !== r.
|
|
1060
|
+
(u) => u !== r._id
|
|
1017
1061
|
);
|
|
1018
1062
|
n.setValue("tags", A);
|
|
1019
1063
|
}
|
|
@@ -1029,31 +1073,31 @@ function ir() {
|
|
|
1029
1073
|
}
|
|
1030
1074
|
function Do() {
|
|
1031
1075
|
const { open: e, toggleDialog: t, isSubmitting: n } = wt();
|
|
1032
|
-
return /* @__PURE__ */
|
|
1033
|
-
/* @__PURE__ */ i(
|
|
1034
|
-
/* @__PURE__ */
|
|
1035
|
-
/* @__PURE__ */
|
|
1036
|
-
/* @__PURE__ */ i(
|
|
1037
|
-
/* @__PURE__ */ i(
|
|
1076
|
+
return /* @__PURE__ */ h(Br, { open: e, onOpenChange: t, children: [
|
|
1077
|
+
/* @__PURE__ */ i(Nr, { asChild: !0, children: /* @__PURE__ */ i(K, { variant: "ghost", size: "icon-sm", className: "size-4", children: /* @__PURE__ */ i(Ia, {}) }) }),
|
|
1078
|
+
/* @__PURE__ */ h(Mr, { className: "!max-w-5xl", children: [
|
|
1079
|
+
/* @__PURE__ */ h(kr, { children: [
|
|
1080
|
+
/* @__PURE__ */ i(jr, { children: "Gerenciador de Etiquetas" }),
|
|
1081
|
+
/* @__PURE__ */ i(_r, { children: "Crie, edite ou remova etiquetas disponíveis no sistema." })
|
|
1038
1082
|
] }),
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
/* @__PURE__ */
|
|
1041
|
-
/* @__PURE__ */ i(
|
|
1042
|
-
/* @__PURE__ */ i(
|
|
1083
|
+
/* @__PURE__ */ h(qr, { defaultValue: "manage-tags", children: [
|
|
1084
|
+
/* @__PURE__ */ h(Lr, { children: [
|
|
1085
|
+
/* @__PURE__ */ i(An, { disabled: n, value: "manage-tags", children: "Etiquetas" }),
|
|
1086
|
+
/* @__PURE__ */ i(An, { disabled: n, value: "create-tag", children: "Nova Etiqueta" })
|
|
1043
1087
|
] }),
|
|
1044
|
-
/* @__PURE__ */ i(
|
|
1045
|
-
/* @__PURE__ */ i(
|
|
1088
|
+
/* @__PURE__ */ i(un, { value: "manage-tags", children: /* @__PURE__ */ i(Fo, {}) }),
|
|
1089
|
+
/* @__PURE__ */ i(un, { value: "create-tag", children: /* @__PURE__ */ i(Io, {}) })
|
|
1046
1090
|
] })
|
|
1047
1091
|
] })
|
|
1048
1092
|
] });
|
|
1049
1093
|
}
|
|
1050
|
-
function
|
|
1094
|
+
function yn({
|
|
1051
1095
|
icon: e,
|
|
1052
1096
|
description: t,
|
|
1053
1097
|
title: n
|
|
1054
1098
|
}) {
|
|
1055
|
-
return /* @__PURE__ */ i("div", { className: "flex h-full items-center justify-center rounded-lg border border-dashed bg-zinc-50 px-6 py-9", children: /* @__PURE__ */
|
|
1056
|
-
/* @__PURE__ */
|
|
1099
|
+
return /* @__PURE__ */ i("div", { className: "flex h-full items-center justify-center rounded-lg border border-dashed bg-zinc-50 px-6 py-9", children: /* @__PURE__ */ h("div", { className: "flex flex-col items-center gap-2", children: [
|
|
1100
|
+
/* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
1057
1101
|
/* @__PURE__ */ i(e, { className: "size-3.5" }),
|
|
1058
1102
|
/* @__PURE__ */ i("h2", { className: "text-lg font-semibold", children: n })
|
|
1059
1103
|
] }),
|
|
@@ -1061,7 +1105,7 @@ function vn({
|
|
|
1061
1105
|
] }) });
|
|
1062
1106
|
}
|
|
1063
1107
|
function Fo() {
|
|
1064
|
-
const e =
|
|
1108
|
+
const e = we(), { isEditing: t, selectedTag: n, unselectTag: a, updateTagForm: r, deleteTagForm: o } = wt(), [s, A] = V(""), u = Ie(), l = No(), d = u.data ?? [], c = u.data.filter(
|
|
1065
1109
|
(b) => b.name.toLowerCase().includes(s.toLowerCase())
|
|
1066
1110
|
), f = r.handleSubmit(async (b) => {
|
|
1067
1111
|
n && await l.mutateAsync({
|
|
@@ -1069,15 +1113,15 @@ function Fo() {
|
|
|
1069
1113
|
tagId: n?._id,
|
|
1070
1114
|
payload: b
|
|
1071
1115
|
});
|
|
1072
|
-
}), p = l.isPending || r.formState.isSubmitting,
|
|
1116
|
+
}), p = l.isPending || r.formState.isSubmitting, v = o.formState.isSubmitting;
|
|
1073
1117
|
return d.length === 0 ? /* @__PURE__ */ i(
|
|
1074
|
-
|
|
1118
|
+
yn,
|
|
1075
1119
|
{
|
|
1076
|
-
icon:
|
|
1120
|
+
icon: gn,
|
|
1077
1121
|
title: "Etiquetas",
|
|
1078
1122
|
description: "Nenhuma etiqueta encontrada. Crie uma nova para começar."
|
|
1079
1123
|
}
|
|
1080
|
-
) : /* @__PURE__ */
|
|
1124
|
+
) : /* @__PURE__ */ h(
|
|
1081
1125
|
"div",
|
|
1082
1126
|
{
|
|
1083
1127
|
className: $(
|
|
@@ -1085,17 +1129,17 @@ function Fo() {
|
|
|
1085
1129
|
t && "grid-cols-[1fr,auto,1fr]"
|
|
1086
1130
|
),
|
|
1087
1131
|
children: [
|
|
1088
|
-
/* @__PURE__ */
|
|
1132
|
+
/* @__PURE__ */ h("div", { className: "space-y-3 pt-3", children: [
|
|
1089
1133
|
/* @__PURE__ */ i(
|
|
1090
|
-
|
|
1134
|
+
Qn,
|
|
1091
1135
|
{
|
|
1092
1136
|
value: s,
|
|
1093
1137
|
onChange: (b) => A(b.target.value),
|
|
1094
1138
|
placeholder: "Busque por etiquetas..."
|
|
1095
1139
|
}
|
|
1096
1140
|
),
|
|
1097
|
-
/* @__PURE__ */ i("div", { className: "max-h-[21rem] space-y-1 overflow-y-auto pr-1", children: c.length > 0 ? c?.map((b) => /* @__PURE__ */ i(
|
|
1098
|
-
|
|
1141
|
+
/* @__PURE__ */ i("div", { className: "max-h-[21rem] space-y-1 overflow-y-auto pr-1", children: c.length > 0 ? c?.map((b) => /* @__PURE__ */ i(Ro, { tag: b }, b._id)) : /* @__PURE__ */ i(
|
|
1142
|
+
yn,
|
|
1099
1143
|
{
|
|
1100
1144
|
icon: Da,
|
|
1101
1145
|
title: "Nenhum resultado encontrado",
|
|
@@ -1104,31 +1148,31 @@ function Fo() {
|
|
|
1104
1148
|
}
|
|
1105
1149
|
) })
|
|
1106
1150
|
] }),
|
|
1107
|
-
t && /* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */ i(
|
|
1109
|
-
/* @__PURE__ */
|
|
1110
|
-
/* @__PURE__ */
|
|
1111
|
-
/* @__PURE__ */ i(
|
|
1151
|
+
t && /* @__PURE__ */ h(jt, { children: [
|
|
1152
|
+
/* @__PURE__ */ i(Gr, { orientation: "vertical" }),
|
|
1153
|
+
/* @__PURE__ */ h("form", { onSubmit: f, className: "grid h-full gap-3 pt-3", children: [
|
|
1154
|
+
/* @__PURE__ */ h("h2", { className: "flex items-center gap-2 font-semibold", children: [
|
|
1155
|
+
/* @__PURE__ */ i(gn, { className: "size-3.5" }),
|
|
1112
1156
|
" Editando Etiqueta"
|
|
1113
1157
|
] }),
|
|
1114
|
-
/* @__PURE__ */ i(Kt, { ...r, children: /* @__PURE__ */ i(
|
|
1115
|
-
/* @__PURE__ */
|
|
1158
|
+
/* @__PURE__ */ i(Kt, { ...r, children: /* @__PURE__ */ i(ur, {}) }),
|
|
1159
|
+
/* @__PURE__ */ h("div", { className: "grid grid-cols-2 gap-2", children: [
|
|
1116
1160
|
/* @__PURE__ */ i(
|
|
1117
1161
|
K,
|
|
1118
1162
|
{
|
|
1119
1163
|
variant: "outline",
|
|
1120
|
-
disabled: p ||
|
|
1164
|
+
disabled: p || v,
|
|
1121
1165
|
className: "w-full",
|
|
1122
1166
|
onClick: a,
|
|
1123
1167
|
children: "Fechar"
|
|
1124
1168
|
}
|
|
1125
1169
|
),
|
|
1126
|
-
/* @__PURE__ */
|
|
1170
|
+
/* @__PURE__ */ h(
|
|
1127
1171
|
K,
|
|
1128
1172
|
{
|
|
1129
1173
|
type: "submit",
|
|
1130
1174
|
variant: "default",
|
|
1131
|
-
disabled: p ||
|
|
1175
|
+
disabled: p || v,
|
|
1132
1176
|
isPending: p,
|
|
1133
1177
|
className: "w-full",
|
|
1134
1178
|
children: [
|
|
@@ -1144,8 +1188,8 @@ function Fo() {
|
|
|
1144
1188
|
}
|
|
1145
1189
|
);
|
|
1146
1190
|
}
|
|
1147
|
-
function
|
|
1148
|
-
const e =
|
|
1191
|
+
function Io() {
|
|
1192
|
+
const e = we(), { createTagForm: t } = wt(), n = jo(), a = t.handleSubmit(async (o) => {
|
|
1149
1193
|
await n.mutateAsync(
|
|
1150
1194
|
{
|
|
1151
1195
|
organizationId: e.organizationId,
|
|
@@ -1158,13 +1202,13 @@ function Ro() {
|
|
|
1158
1202
|
}
|
|
1159
1203
|
);
|
|
1160
1204
|
}), r = n.isPending || t.formState.isSubmitting;
|
|
1161
|
-
return /* @__PURE__ */
|
|
1162
|
-
/* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */ i(
|
|
1205
|
+
return /* @__PURE__ */ h("form", { onSubmit: a, className: "grid h-full gap-3 border-t pt-3", children: [
|
|
1206
|
+
/* @__PURE__ */ h("h2", { className: "flex items-center gap-2 font-semibold", children: [
|
|
1207
|
+
/* @__PURE__ */ i(tn, { className: "size-3.5" }),
|
|
1164
1208
|
" Criando Etiqueta"
|
|
1165
1209
|
] }),
|
|
1166
|
-
/* @__PURE__ */ i(Kt, { ...t, children: /* @__PURE__ */ i(
|
|
1167
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ i(Kt, { ...t, children: /* @__PURE__ */ i(ur, {}) }),
|
|
1211
|
+
/* @__PURE__ */ h(
|
|
1168
1212
|
K,
|
|
1169
1213
|
{
|
|
1170
1214
|
type: "submit",
|
|
@@ -1179,16 +1223,16 @@ function Ro() {
|
|
|
1179
1223
|
)
|
|
1180
1224
|
] });
|
|
1181
1225
|
}
|
|
1182
|
-
function
|
|
1226
|
+
function ur() {
|
|
1183
1227
|
const e = $t(), t = e.watch("name"), n = e.watch("color");
|
|
1184
|
-
return /* @__PURE__ */
|
|
1228
|
+
return /* @__PURE__ */ h(la, { children: [
|
|
1185
1229
|
/* @__PURE__ */ i(
|
|
1186
|
-
|
|
1230
|
+
dn,
|
|
1187
1231
|
{
|
|
1188
1232
|
name: "name",
|
|
1189
1233
|
control: e.control,
|
|
1190
1234
|
render: ({ field: a, fieldState: r }) => /* @__PURE__ */ i(
|
|
1191
|
-
|
|
1235
|
+
ar,
|
|
1192
1236
|
{
|
|
1193
1237
|
...a,
|
|
1194
1238
|
...r,
|
|
@@ -1200,14 +1244,14 @@ function Ar() {
|
|
|
1200
1244
|
}
|
|
1201
1245
|
),
|
|
1202
1246
|
/* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(
|
|
1203
|
-
|
|
1247
|
+
dn,
|
|
1204
1248
|
{
|
|
1205
1249
|
name: "color",
|
|
1206
1250
|
control: e.control,
|
|
1207
|
-
render: ({ field: a, fieldState: r }) => /* @__PURE__ */
|
|
1208
|
-
/* @__PURE__ */ i(
|
|
1209
|
-
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children:
|
|
1210
|
-
/* @__PURE__ */ i(
|
|
1251
|
+
render: ({ field: a, fieldState: r }) => /* @__PURE__ */ h(ae, { children: [
|
|
1252
|
+
/* @__PURE__ */ i(cn, { children: "Cor" }),
|
|
1253
|
+
/* @__PURE__ */ i("div", { className: "flex flex-wrap items-center gap-2", children: Xe.options.map((o) => /* @__PURE__ */ h(ca, { children: [
|
|
1254
|
+
/* @__PURE__ */ i(da, { asChild: !0, children: /* @__PURE__ */ i(
|
|
1211
1255
|
"button",
|
|
1212
1256
|
{
|
|
1213
1257
|
type: "button",
|
|
@@ -1220,26 +1264,26 @@ function Ar() {
|
|
|
1220
1264
|
onClick: () => a.onChange(o.value)
|
|
1221
1265
|
}
|
|
1222
1266
|
) }),
|
|
1223
|
-
/* @__PURE__ */ i(
|
|
1267
|
+
/* @__PURE__ */ i(fa, { className: "capitalize", children: o.value })
|
|
1224
1268
|
] }, o.value)) }),
|
|
1225
|
-
r.invalid && /* @__PURE__ */ i(
|
|
1269
|
+
r.invalid && /* @__PURE__ */ i(fe, { errors: [r.error] })
|
|
1226
1270
|
] })
|
|
1227
1271
|
}
|
|
1228
1272
|
) }),
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */ i(
|
|
1273
|
+
/* @__PURE__ */ h(ae, { children: [
|
|
1274
|
+
/* @__PURE__ */ i(cn, { children: "Pré-visualização" }),
|
|
1231
1275
|
/* @__PURE__ */ i("div", { className: "flex justify-center rounded-lg border border-dashed bg-zinc-50/50 p-6", children: t ? /* @__PURE__ */ i(
|
|
1232
1276
|
yt,
|
|
1233
1277
|
{
|
|
1234
|
-
className:
|
|
1278
|
+
className: Xe.getLabel(n ?? "white"),
|
|
1235
1279
|
children: t
|
|
1236
1280
|
}
|
|
1237
1281
|
) : /* @__PURE__ */ i("span", { className: "text-sm", children: "Informe o nome da etiqueta" }) })
|
|
1238
1282
|
] })
|
|
1239
1283
|
] });
|
|
1240
1284
|
}
|
|
1241
|
-
function
|
|
1242
|
-
const t =
|
|
1285
|
+
function Ro({ tag: e }) {
|
|
1286
|
+
const t = we(), { isSubmitting: n, selectedTag: a, deleteTagForm: r, selectTag: o } = wt(), [s, A] = V(!1), u = e._id === a?._id, l = Mo(), d = r.handleSubmit(async () => {
|
|
1243
1287
|
await l.mutateAsync({
|
|
1244
1288
|
organizationId: t.organizationId,
|
|
1245
1289
|
tagId: e._id
|
|
@@ -1257,16 +1301,16 @@ function Bo({ tag: e }) {
|
|
|
1257
1301
|
u ? "border-zinc-300 bg-zinc-50" : "cursor-pointer",
|
|
1258
1302
|
c && ""
|
|
1259
1303
|
),
|
|
1260
|
-
children: s ? /* @__PURE__ */
|
|
1261
|
-
/* @__PURE__ */
|
|
1262
|
-
/* @__PURE__ */
|
|
1304
|
+
children: s ? /* @__PURE__ */ h(jt, { children: [
|
|
1305
|
+
/* @__PURE__ */ h("div", { className: "text-start", children: [
|
|
1306
|
+
/* @__PURE__ */ h("h3", { className: "font-semibold text-red-800", children: [
|
|
1263
1307
|
"Excluir '",
|
|
1264
1308
|
e.name,
|
|
1265
1309
|
"'?"
|
|
1266
1310
|
] }),
|
|
1267
1311
|
/* @__PURE__ */ i("p", { className: "text-muted-foreground text-sm", children: "Essa operação não pode ser desfeito." })
|
|
1268
1312
|
] }),
|
|
1269
|
-
/* @__PURE__ */
|
|
1313
|
+
/* @__PURE__ */ h("div", { className: "ml-auto flex w-fit items-center gap-1", children: [
|
|
1270
1314
|
/* @__PURE__ */ i(
|
|
1271
1315
|
K,
|
|
1272
1316
|
{
|
|
@@ -1276,7 +1320,7 @@ function Bo({ tag: e }) {
|
|
|
1276
1320
|
onClick: (f) => {
|
|
1277
1321
|
f.stopPropagation(), A(!1);
|
|
1278
1322
|
},
|
|
1279
|
-
children: /* @__PURE__ */ i(
|
|
1323
|
+
children: /* @__PURE__ */ i(Jr, {})
|
|
1280
1324
|
}
|
|
1281
1325
|
),
|
|
1282
1326
|
/* @__PURE__ */ i(
|
|
@@ -1293,8 +1337,8 @@ function Bo({ tag: e }) {
|
|
|
1293
1337
|
}
|
|
1294
1338
|
)
|
|
1295
1339
|
] })
|
|
1296
|
-
] }) : /* @__PURE__ */
|
|
1297
|
-
/* @__PURE__ */ i(yt, { className:
|
|
1340
|
+
] }) : /* @__PURE__ */ h(jt, { children: [
|
|
1341
|
+
/* @__PURE__ */ i(yt, { className: Xe.getLabel(e.color) ?? void 0, children: e.name }),
|
|
1298
1342
|
/* @__PURE__ */ i(
|
|
1299
1343
|
K,
|
|
1300
1344
|
{
|
|
@@ -1312,19 +1356,23 @@ function Bo({ tag: e }) {
|
|
|
1312
1356
|
}
|
|
1313
1357
|
);
|
|
1314
1358
|
}
|
|
1315
|
-
function
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1359
|
+
function Ie({
|
|
1360
|
+
config: e
|
|
1361
|
+
} = {}) {
|
|
1362
|
+
return ha({
|
|
1363
|
+
queryKey: Et({
|
|
1364
|
+
module: e?.module,
|
|
1365
|
+
organizationId: e?.organizationId
|
|
1366
|
+
}),
|
|
1367
|
+
queryFn: () => Bo({
|
|
1368
|
+
organizationId: e?.organizationId ?? we().organizationId,
|
|
1321
1369
|
query: {
|
|
1322
|
-
module: e.module
|
|
1370
|
+
module: e?.module ?? we().module
|
|
1323
1371
|
}
|
|
1324
1372
|
})
|
|
1325
1373
|
});
|
|
1326
1374
|
}
|
|
1327
|
-
async function
|
|
1375
|
+
async function Bo({
|
|
1328
1376
|
organizationId: e,
|
|
1329
1377
|
query: t
|
|
1330
1378
|
}) {
|
|
@@ -1395,9 +1443,9 @@ async function _o({
|
|
|
1395
1443
|
}) {
|
|
1396
1444
|
return (await bt().post(`/organizations/${e}/tags`, t)).data;
|
|
1397
1445
|
}
|
|
1398
|
-
const
|
|
1399
|
-
name:
|
|
1400
|
-
color:
|
|
1446
|
+
const bn = Ne.object({
|
|
1447
|
+
name: Ne.string().trim().nonempty("Nome é obrigatório"),
|
|
1448
|
+
color: Ne.string().min(1, "Cor é obrigatória").optional()
|
|
1401
1449
|
});
|
|
1402
1450
|
async function qo({
|
|
1403
1451
|
organizationId: e,
|
|
@@ -1446,18 +1494,18 @@ const Yo = G(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
1446
1494
|
}
|
|
1447
1495
|
));
|
|
1448
1496
|
Yo.displayName = "PageHeaderTitle";
|
|
1449
|
-
var Pt = {}, Tt = {},
|
|
1497
|
+
var Pt = {}, Tt = {}, st = { exports: {} }, En;
|
|
1450
1498
|
function Vo() {
|
|
1451
|
-
if (
|
|
1452
|
-
|
|
1499
|
+
if (En) return st.exports;
|
|
1500
|
+
En = 1;
|
|
1453
1501
|
var e = String, t = function() {
|
|
1454
1502
|
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 };
|
|
1455
1503
|
};
|
|
1456
|
-
return
|
|
1504
|
+
return st.exports = t(), st.exports.createColors = t, st.exports;
|
|
1457
1505
|
}
|
|
1458
|
-
var
|
|
1506
|
+
var wn;
|
|
1459
1507
|
function Wo() {
|
|
1460
|
-
return
|
|
1508
|
+
return wn || (wn = 1, (function(e) {
|
|
1461
1509
|
Object.defineProperty(e, "__esModule", {
|
|
1462
1510
|
value: !0
|
|
1463
1511
|
});
|
|
@@ -1516,9 +1564,9 @@ function Wo() {
|
|
|
1516
1564
|
};
|
|
1517
1565
|
})(Tt)), Tt;
|
|
1518
1566
|
}
|
|
1519
|
-
var
|
|
1567
|
+
var Cn;
|
|
1520
1568
|
function Qo() {
|
|
1521
|
-
return
|
|
1569
|
+
return Cn || (Cn = 1, (function(e) {
|
|
1522
1570
|
Object.defineProperty(e, "__esModule", {
|
|
1523
1571
|
value: !0
|
|
1524
1572
|
}), Object.defineProperty(e, "default", {
|
|
@@ -1869,10 +1917,10 @@ function Qo() {
|
|
|
1869
1917
|
};
|
|
1870
1918
|
})(Pt)), Pt;
|
|
1871
1919
|
}
|
|
1872
|
-
var Ot,
|
|
1920
|
+
var Ot, Sn;
|
|
1873
1921
|
function Go() {
|
|
1874
|
-
if (
|
|
1875
|
-
|
|
1922
|
+
if (Sn) return Ot;
|
|
1923
|
+
Sn = 1;
|
|
1876
1924
|
let e = Qo();
|
|
1877
1925
|
return Ot = (e.__esModule ? e : { default: e }).default, Ot;
|
|
1878
1926
|
}
|
|
@@ -1903,7 +1951,7 @@ Xo.displayName = "Image";
|
|
|
1903
1951
|
const Zo = async ({
|
|
1904
1952
|
filter: e,
|
|
1905
1953
|
environment: t
|
|
1906
|
-
}) => (await
|
|
1954
|
+
}) => (await tt(t).get("/action", {
|
|
1907
1955
|
params: e
|
|
1908
1956
|
})).data;
|
|
1909
1957
|
function Ko({
|
|
@@ -1911,8 +1959,8 @@ function Ko({
|
|
|
1911
1959
|
queryKey: t,
|
|
1912
1960
|
enabled: n = !0
|
|
1913
1961
|
}) {
|
|
1914
|
-
const { environments: a } =
|
|
1915
|
-
return
|
|
1962
|
+
const { environments: a } = nt();
|
|
1963
|
+
return et({
|
|
1916
1964
|
queryKey: ["campaigns", e, ...t || []],
|
|
1917
1965
|
queryFn: () => Zo({
|
|
1918
1966
|
filter: e,
|
|
@@ -1923,7 +1971,7 @@ function Ko({
|
|
|
1923
1971
|
}
|
|
1924
1972
|
const $o = G(
|
|
1925
1973
|
({ queryKey: e, value: t, defaultValue: n, onValueChange: a, id: r, disabled: o, ...s }, A) => {
|
|
1926
|
-
const u = n ? { title: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p,
|
|
1974
|
+
const u = n ? { title: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p, v] = V(""), b = rt(p, 200), g = Ko({
|
|
1927
1975
|
filter: {
|
|
1928
1976
|
page: 1,
|
|
1929
1977
|
limit: 5,
|
|
@@ -1933,14 +1981,14 @@ const $o = G(
|
|
|
1933
1981
|
enabled: l
|
|
1934
1982
|
}), S = g.data?.data;
|
|
1935
1983
|
Fe(() => {
|
|
1936
|
-
!t && c && (f(void 0),
|
|
1984
|
+
!t && c && (f(void 0), v(""));
|
|
1937
1985
|
}, [c, t]);
|
|
1938
1986
|
const T = (C) => {
|
|
1939
1987
|
const E = S?.find((m) => m._id === C);
|
|
1940
1988
|
d(!1), E && (f(E), a(E));
|
|
1941
1989
|
};
|
|
1942
|
-
return /* @__PURE__ */
|
|
1943
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
1990
|
+
return /* @__PURE__ */ h(Se, { open: l, onOpenChange: d, children: [
|
|
1991
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
1944
1992
|
K,
|
|
1945
1993
|
{
|
|
1946
1994
|
id: r,
|
|
@@ -1951,33 +1999,33 @@ const $o = G(
|
|
|
1951
1999
|
disabled: o,
|
|
1952
2000
|
children: [
|
|
1953
2001
|
c?.title ? c?.title : "Selecionar",
|
|
1954
|
-
/* @__PURE__ */ i(
|
|
2002
|
+
/* @__PURE__ */ i(He, { className: "opacity-50" })
|
|
1955
2003
|
]
|
|
1956
2004
|
}
|
|
1957
2005
|
) }),
|
|
1958
|
-
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */
|
|
2006
|
+
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ h(je, { shouldFilter: !1, children: [
|
|
1959
2007
|
/* @__PURE__ */ i(
|
|
1960
|
-
|
|
2008
|
+
_e,
|
|
1961
2009
|
{
|
|
1962
2010
|
...s,
|
|
1963
2011
|
disabled: o,
|
|
1964
2012
|
value: p,
|
|
1965
|
-
onValueChange: (C) =>
|
|
2013
|
+
onValueChange: (C) => v(C),
|
|
1966
2014
|
placeholder: "Busque uma Ação...",
|
|
1967
2015
|
className: "h-9",
|
|
1968
2016
|
ref: A
|
|
1969
2017
|
}
|
|
1970
2018
|
),
|
|
1971
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ h(qe, { children: [
|
|
1972
2020
|
g.isSuccess && S?.length === 0 && /* @__PURE__ */ i(X, { children: "Nenhuma ação encontrada." }),
|
|
1973
2021
|
g.isError && /* @__PURE__ */ i(X, { children: "Ocorreu um erro ao buscar as ações." }),
|
|
1974
2022
|
!g.isEnabled && /* @__PURE__ */ i(X, { children: "Busque uma Ação..." }),
|
|
1975
|
-
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */
|
|
1976
|
-
/* @__PURE__ */ i(
|
|
2023
|
+
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */ h(X, { className: "flex items-center justify-center gap-2", children: [
|
|
2024
|
+
/* @__PURE__ */ i($e, { className: "size-4 animate-spin" }),
|
|
1977
2025
|
"Buscando..."
|
|
1978
2026
|
] }),
|
|
1979
|
-
/* @__PURE__ */ i(
|
|
1980
|
-
|
|
2027
|
+
/* @__PURE__ */ i(Le, { children: S?.map((C) => /* @__PURE__ */ h(
|
|
2028
|
+
ze,
|
|
1981
2029
|
{
|
|
1982
2030
|
value: C._id,
|
|
1983
2031
|
onSelect: (E) => {
|
|
@@ -2009,14 +2057,14 @@ $o.displayName = "CampaignsSelectInput";
|
|
|
2009
2057
|
const es = async ({
|
|
2010
2058
|
filter: e,
|
|
2011
2059
|
environment: t
|
|
2012
|
-
}) => (await
|
|
2060
|
+
}) => (await tt(t).get("/client", { params: e })).data;
|
|
2013
2061
|
function ts({
|
|
2014
2062
|
filter: e,
|
|
2015
2063
|
queryKey: t,
|
|
2016
2064
|
enabled: n = !0
|
|
2017
2065
|
}) {
|
|
2018
|
-
const { environments: a } =
|
|
2019
|
-
return
|
|
2066
|
+
const { environments: a } = nt();
|
|
2067
|
+
return et({
|
|
2020
2068
|
queryKey: ["clients", e, ...t || []],
|
|
2021
2069
|
queryFn: () => es({
|
|
2022
2070
|
filter: e,
|
|
@@ -2025,7 +2073,7 @@ function ts({
|
|
|
2025
2073
|
enabled: n && !!(e.name && e.name.length >= 2)
|
|
2026
2074
|
});
|
|
2027
2075
|
}
|
|
2028
|
-
const
|
|
2076
|
+
const lr = G(
|
|
2029
2077
|
({
|
|
2030
2078
|
queryKey: e,
|
|
2031
2079
|
value: t,
|
|
@@ -2036,7 +2084,7 @@ const ur = G(
|
|
|
2036
2084
|
clientType: s,
|
|
2037
2085
|
...A
|
|
2038
2086
|
}, u) => {
|
|
2039
|
-
const l = n ? { name: String(n) } : void 0, [d, c] = V(!1), [f, p] = V(l), [
|
|
2087
|
+
const l = n ? { name: String(n) } : void 0, [d, c] = V(!1), [f, p] = V(l), [v, b] = V(""), g = rt(v, 200), S = ts({
|
|
2040
2088
|
filter: {
|
|
2041
2089
|
page: 1,
|
|
2042
2090
|
limit: 5,
|
|
@@ -2053,8 +2101,8 @@ const ur = G(
|
|
|
2053
2101
|
const m = T?.find((H) => H._id === E);
|
|
2054
2102
|
c(!1), m && (p(m), a(m));
|
|
2055
2103
|
};
|
|
2056
|
-
return /* @__PURE__ */
|
|
2057
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ h(Se, { open: d, onOpenChange: c, children: [
|
|
2105
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
2058
2106
|
K,
|
|
2059
2107
|
{
|
|
2060
2108
|
id: r,
|
|
@@ -2065,33 +2113,33 @@ const ur = G(
|
|
|
2065
2113
|
disabled: o,
|
|
2066
2114
|
children: [
|
|
2067
2115
|
f?.name ? f?.name : "Selecionar",
|
|
2068
|
-
/* @__PURE__ */ i(
|
|
2116
|
+
/* @__PURE__ */ i(He, { className: "opacity-50" })
|
|
2069
2117
|
]
|
|
2070
2118
|
}
|
|
2071
2119
|
) }),
|
|
2072
|
-
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */
|
|
2120
|
+
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ h(je, { shouldFilter: !1, children: [
|
|
2073
2121
|
/* @__PURE__ */ i(
|
|
2074
|
-
|
|
2122
|
+
_e,
|
|
2075
2123
|
{
|
|
2076
2124
|
...A,
|
|
2077
2125
|
disabled: o,
|
|
2078
|
-
value:
|
|
2126
|
+
value: v,
|
|
2079
2127
|
onValueChange: (E) => b(E),
|
|
2080
2128
|
placeholder: "Busque um cliente...",
|
|
2081
2129
|
className: "h-9",
|
|
2082
2130
|
ref: u
|
|
2083
2131
|
}
|
|
2084
2132
|
),
|
|
2085
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ h(qe, { children: [
|
|
2086
2134
|
S.isSuccess && T?.length === 0 && /* @__PURE__ */ i(X, { children: "Nenhuma cliente encontrado." }),
|
|
2087
2135
|
S.isError && /* @__PURE__ */ i(X, { children: "Ocorreu um erro ao buscar os clientes." }),
|
|
2088
2136
|
!S.isEnabled && /* @__PURE__ */ i(X, { children: "Busque um cliente..." }),
|
|
2089
|
-
S.fetchStatus !== "idle" && S.isPending && /* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */ i(
|
|
2137
|
+
S.fetchStatus !== "idle" && S.isPending && /* @__PURE__ */ h(X, { className: "flex items-center justify-center gap-2", children: [
|
|
2138
|
+
/* @__PURE__ */ i($e, { className: "size-4 animate-spin" }),
|
|
2091
2139
|
"Buscando..."
|
|
2092
2140
|
] }),
|
|
2093
|
-
/* @__PURE__ */ i(
|
|
2094
|
-
|
|
2141
|
+
/* @__PURE__ */ i(Le, { children: T?.map((E) => /* @__PURE__ */ h(
|
|
2142
|
+
ze,
|
|
2095
2143
|
{
|
|
2096
2144
|
value: E._id,
|
|
2097
2145
|
onSelect: (m) => {
|
|
@@ -2119,11 +2167,11 @@ const ur = G(
|
|
|
2119
2167
|
] });
|
|
2120
2168
|
}
|
|
2121
2169
|
);
|
|
2122
|
-
|
|
2170
|
+
lr.displayName = "ClientSelectInput";
|
|
2123
2171
|
const ns = async ({
|
|
2124
2172
|
filter: e,
|
|
2125
2173
|
environment: t
|
|
2126
|
-
}) => (await
|
|
2174
|
+
}) => (await tt(t).get("/influencers", {
|
|
2127
2175
|
params: e
|
|
2128
2176
|
})).data;
|
|
2129
2177
|
function rs({
|
|
@@ -2131,8 +2179,8 @@ function rs({
|
|
|
2131
2179
|
queryKey: t,
|
|
2132
2180
|
enabled: n = !0
|
|
2133
2181
|
}) {
|
|
2134
|
-
const { environments: a } =
|
|
2135
|
-
return
|
|
2182
|
+
const { environments: a } = nt();
|
|
2183
|
+
return et({
|
|
2136
2184
|
queryKey: ["influencers", e, ...t || []],
|
|
2137
2185
|
queryFn: () => ns({
|
|
2138
2186
|
filter: e,
|
|
@@ -2143,7 +2191,7 @@ function rs({
|
|
|
2143
2191
|
}
|
|
2144
2192
|
const as = G(
|
|
2145
2193
|
({ queryKey: e, value: t, defaultValue: n, onValueChange: a, id: r, disabled: o, ...s }, A) => {
|
|
2146
|
-
const u = n ? { name: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p,
|
|
2194
|
+
const u = n ? { name: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p, v] = V(""), b = rt(p, 200), g = rs({
|
|
2147
2195
|
filter: {
|
|
2148
2196
|
page: 1,
|
|
2149
2197
|
limit: 10,
|
|
@@ -2153,14 +2201,14 @@ const as = G(
|
|
|
2153
2201
|
enabled: l
|
|
2154
2202
|
}), S = g.data?.data;
|
|
2155
2203
|
Fe(() => {
|
|
2156
|
-
!t && c && (f(void 0),
|
|
2204
|
+
!t && c && (f(void 0), v(""));
|
|
2157
2205
|
}, [c, t]);
|
|
2158
2206
|
const T = (C) => {
|
|
2159
2207
|
const E = S?.find((m) => m._id === C);
|
|
2160
2208
|
d(!1), E && (f(E), a(E));
|
|
2161
2209
|
};
|
|
2162
|
-
return /* @__PURE__ */
|
|
2163
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ h(Se, { open: l, onOpenChange: d, children: [
|
|
2211
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
2164
2212
|
K,
|
|
2165
2213
|
{
|
|
2166
2214
|
id: r,
|
|
@@ -2171,33 +2219,33 @@ const as = G(
|
|
|
2171
2219
|
disabled: o,
|
|
2172
2220
|
children: [
|
|
2173
2221
|
c?.name ? c?.name : "Selecionar",
|
|
2174
|
-
/* @__PURE__ */ i(
|
|
2222
|
+
/* @__PURE__ */ i(He, { className: "opacity-50" })
|
|
2175
2223
|
]
|
|
2176
2224
|
}
|
|
2177
2225
|
) }),
|
|
2178
|
-
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */
|
|
2226
|
+
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ h(je, { shouldFilter: !1, children: [
|
|
2179
2227
|
/* @__PURE__ */ i(
|
|
2180
|
-
|
|
2228
|
+
_e,
|
|
2181
2229
|
{
|
|
2182
2230
|
...s,
|
|
2183
2231
|
disabled: o,
|
|
2184
2232
|
value: p,
|
|
2185
|
-
onValueChange: (C) =>
|
|
2233
|
+
onValueChange: (C) => v(C),
|
|
2186
2234
|
placeholder: "Busque um influenciador...",
|
|
2187
2235
|
className: "h-9",
|
|
2188
2236
|
ref: A
|
|
2189
2237
|
}
|
|
2190
2238
|
),
|
|
2191
|
-
/* @__PURE__ */
|
|
2239
|
+
/* @__PURE__ */ h(qe, { children: [
|
|
2192
2240
|
g.isSuccess && S?.length === 0 && /* @__PURE__ */ i(X, { children: "Nenhuma influenciador encontrado." }),
|
|
2193
2241
|
g.isError && /* @__PURE__ */ i(X, { children: "Ocorreu um erro ao buscar os influenciadores." }),
|
|
2194
2242
|
!g.isEnabled && /* @__PURE__ */ i(X, { children: "Busque um influenciador..." }),
|
|
2195
|
-
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */ i(
|
|
2243
|
+
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */ h(X, { className: "flex items-center justify-center gap-2", children: [
|
|
2244
|
+
/* @__PURE__ */ i($e, { className: "size-4 animate-spin" }),
|
|
2197
2245
|
"Buscando..."
|
|
2198
2246
|
] }),
|
|
2199
|
-
/* @__PURE__ */ i(
|
|
2200
|
-
|
|
2247
|
+
/* @__PURE__ */ i(Le, { children: S?.map((C) => /* @__PURE__ */ h(
|
|
2248
|
+
ze,
|
|
2201
2249
|
{
|
|
2202
2250
|
value: C._id,
|
|
2203
2251
|
onSelect: (E) => {
|
|
@@ -2229,7 +2277,7 @@ as.displayName = "InfluencerSelectInput";
|
|
|
2229
2277
|
const os = async ({
|
|
2230
2278
|
filter: e,
|
|
2231
2279
|
environment: t
|
|
2232
|
-
}) => (await
|
|
2280
|
+
}) => (await tt(t).get("/profiles", {
|
|
2233
2281
|
params: e
|
|
2234
2282
|
})).data;
|
|
2235
2283
|
function ss({
|
|
@@ -2237,8 +2285,8 @@ function ss({
|
|
|
2237
2285
|
queryKey: t,
|
|
2238
2286
|
enabled: n = !0
|
|
2239
2287
|
}) {
|
|
2240
|
-
const { environments: a } =
|
|
2241
|
-
return
|
|
2288
|
+
const { environments: a } = nt();
|
|
2289
|
+
return et({
|
|
2242
2290
|
queryKey: ["profile", e, ...t || []],
|
|
2243
2291
|
queryFn: () => os({
|
|
2244
2292
|
filter: e,
|
|
@@ -2247,9 +2295,9 @@ function ss({
|
|
|
2247
2295
|
enabled: n && e.searchTerm.length > 3
|
|
2248
2296
|
});
|
|
2249
2297
|
}
|
|
2250
|
-
const
|
|
2298
|
+
const cr = G(
|
|
2251
2299
|
({ queryKey: e, value: t, defaultValue: n, onValueChange: a, id: r, disabled: o, ...s }, A) => {
|
|
2252
|
-
const u = n ? { username: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p,
|
|
2300
|
+
const u = n ? { username: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p, v] = V(""), b = rt(p, 200), g = ss({
|
|
2253
2301
|
filter: {
|
|
2254
2302
|
searchTerm: b,
|
|
2255
2303
|
fromRecruitment: !1
|
|
@@ -2258,16 +2306,16 @@ const lr = G(
|
|
|
2258
2306
|
enabled: l
|
|
2259
2307
|
}), S = g.data?.data;
|
|
2260
2308
|
Fe(() => {
|
|
2261
|
-
!t && c && (f(void 0),
|
|
2309
|
+
!t && c && (f(void 0), v(""));
|
|
2262
2310
|
}, [c, t]);
|
|
2263
2311
|
const T = (E) => {
|
|
2264
2312
|
const m = S?.find((H) => H._id === E);
|
|
2265
2313
|
d(!1), m && (f(m), a(m));
|
|
2266
2314
|
}, C = qt(
|
|
2267
2315
|
c?.socialnetwork
|
|
2268
|
-
) ?
|
|
2269
|
-
return /* @__PURE__ */
|
|
2270
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
2316
|
+
) ? tr[c.socialnetwork] : "";
|
|
2317
|
+
return /* @__PURE__ */ h(Se, { open: l, onOpenChange: d, children: [
|
|
2318
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
2271
2319
|
K,
|
|
2272
2320
|
{
|
|
2273
2321
|
id: r,
|
|
@@ -2281,36 +2329,36 @@ const lr = G(
|
|
|
2281
2329
|
disabled: o,
|
|
2282
2330
|
children: [
|
|
2283
2331
|
c?.username ? `${C && `[${C}]`} ${c.username}` : "Selecionar",
|
|
2284
|
-
/* @__PURE__ */ i(
|
|
2332
|
+
/* @__PURE__ */ i(He, { className: "opacity-50" })
|
|
2285
2333
|
]
|
|
2286
2334
|
}
|
|
2287
2335
|
) }),
|
|
2288
|
-
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ h(je, { shouldFilter: !1, children: [
|
|
2289
2337
|
/* @__PURE__ */ i(
|
|
2290
|
-
|
|
2338
|
+
_e,
|
|
2291
2339
|
{
|
|
2292
2340
|
...s,
|
|
2293
2341
|
disabled: o,
|
|
2294
2342
|
value: p,
|
|
2295
|
-
onValueChange: (E) =>
|
|
2343
|
+
onValueChange: (E) => v(E),
|
|
2296
2344
|
placeholder: "Busque um cliente...",
|
|
2297
2345
|
className: "h-9",
|
|
2298
2346
|
ref: A
|
|
2299
2347
|
}
|
|
2300
2348
|
),
|
|
2301
|
-
/* @__PURE__ */
|
|
2349
|
+
/* @__PURE__ */ h(qe, { children: [
|
|
2302
2350
|
g.isSuccess && S?.length === 0 && /* @__PURE__ */ i(X, { children: "Nenhuma perfil encontrado." }),
|
|
2303
2351
|
g.isError && /* @__PURE__ */ i(X, { children: "Ocorreu um erro ao buscar os perfis." }),
|
|
2304
2352
|
!g.isEnabled && /* @__PURE__ */ i(X, { children: "Busque um perfil..." }),
|
|
2305
|
-
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */
|
|
2306
|
-
/* @__PURE__ */ i(
|
|
2353
|
+
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */ h(X, { className: "flex items-center justify-center gap-2", children: [
|
|
2354
|
+
/* @__PURE__ */ i($e, { className: "size-4 animate-spin" }),
|
|
2307
2355
|
"Buscando..."
|
|
2308
2356
|
] }),
|
|
2309
|
-
/* @__PURE__ */ i(
|
|
2357
|
+
/* @__PURE__ */ i(Le, { children: S?.map((E) => {
|
|
2310
2358
|
if (!qt(E?.socialnetwork)) return;
|
|
2311
2359
|
const m = Va[E?.socialnetwork];
|
|
2312
|
-
return /* @__PURE__ */
|
|
2313
|
-
|
|
2360
|
+
return /* @__PURE__ */ h(
|
|
2361
|
+
ze,
|
|
2314
2362
|
{
|
|
2315
2363
|
value: E._id,
|
|
2316
2364
|
onSelect: (H) => {
|
|
@@ -2341,7 +2389,7 @@ const lr = G(
|
|
|
2341
2389
|
] });
|
|
2342
2390
|
}
|
|
2343
2391
|
);
|
|
2344
|
-
|
|
2392
|
+
cr.displayName = "ProfileSelectInput";
|
|
2345
2393
|
function is(e) {
|
|
2346
2394
|
if (Array.isArray(e)) {
|
|
2347
2395
|
for (var t = 0, n = new Array(e.length); t < e.length; t++)
|
|
@@ -2381,7 +2429,7 @@ function cs(e, t) {
|
|
|
2381
2429
|
function ds(e, t, n) {
|
|
2382
2430
|
return t && cs(e.prototype, t), e;
|
|
2383
2431
|
}
|
|
2384
|
-
function
|
|
2432
|
+
function R(e) {
|
|
2385
2433
|
if (e === void 0)
|
|
2386
2434
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
2387
2435
|
return e;
|
|
@@ -2402,29 +2450,29 @@ function fs(e, t) {
|
|
|
2402
2450
|
}
|
|
2403
2451
|
}), t && Ht(e, t);
|
|
2404
2452
|
}
|
|
2405
|
-
function
|
|
2406
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2453
|
+
function Me(e) {
|
|
2454
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Me = function(n) {
|
|
2407
2455
|
return typeof n;
|
|
2408
|
-
} :
|
|
2456
|
+
} : Me = function(n) {
|
|
2409
2457
|
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
|
|
2410
|
-
},
|
|
2458
|
+
}, Me(e);
|
|
2411
2459
|
}
|
|
2412
|
-
function
|
|
2413
|
-
return typeof Symbol == "function" &&
|
|
2414
|
-
return
|
|
2415
|
-
} :
|
|
2416
|
-
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" :
|
|
2417
|
-
},
|
|
2460
|
+
function dt(e) {
|
|
2461
|
+
return typeof Symbol == "function" && Me(Symbol.iterator) === "symbol" ? dt = function(n) {
|
|
2462
|
+
return Me(n);
|
|
2463
|
+
} : dt = function(n) {
|
|
2464
|
+
return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : Me(n);
|
|
2465
|
+
}, dt(e);
|
|
2418
2466
|
}
|
|
2419
2467
|
function ps(e, t) {
|
|
2420
|
-
return t && (
|
|
2468
|
+
return t && (dt(t) === "object" || typeof t == "function") ? t : R(e);
|
|
2421
2469
|
}
|
|
2422
2470
|
function mt(e) {
|
|
2423
2471
|
return mt = Object.setPrototypeOf ? Object.getPrototypeOf : function(n) {
|
|
2424
2472
|
return n.__proto__ || Object.getPrototypeOf(n);
|
|
2425
2473
|
}, mt(e);
|
|
2426
2474
|
}
|
|
2427
|
-
function
|
|
2475
|
+
function I(e, t, n) {
|
|
2428
2476
|
return t in e ? Object.defineProperty(e, t, {
|
|
2429
2477
|
value: n,
|
|
2430
2478
|
enumerable: !0,
|
|
@@ -2432,10 +2480,10 @@ function R(e, t, n) {
|
|
|
2432
2480
|
writable: !0
|
|
2433
2481
|
}) : e[t] = n, e;
|
|
2434
2482
|
}
|
|
2435
|
-
var Dt,
|
|
2483
|
+
var Dt, xn;
|
|
2436
2484
|
function gs() {
|
|
2437
|
-
if (
|
|
2438
|
-
|
|
2485
|
+
if (xn) return Dt;
|
|
2486
|
+
xn = 1;
|
|
2439
2487
|
var e = function(t, n, a, r, o, s, A, u) {
|
|
2440
2488
|
if (process.env.NODE_ENV !== "production" && n === void 0)
|
|
2441
2489
|
throw new Error("invariant requires an error message argument");
|
|
@@ -2459,7 +2507,7 @@ function gs() {
|
|
|
2459
2507
|
return Dt = e, Dt;
|
|
2460
2508
|
}
|
|
2461
2509
|
var ms = gs();
|
|
2462
|
-
const
|
|
2510
|
+
const ke = /* @__PURE__ */ er(ms);
|
|
2463
2511
|
function hs(e) {
|
|
2464
2512
|
if (Array.isArray(e)) return e;
|
|
2465
2513
|
}
|
|
@@ -2502,29 +2550,29 @@ function Es(e, t) {
|
|
|
2502
2550
|
}
|
|
2503
2551
|
return n;
|
|
2504
2552
|
}
|
|
2505
|
-
function
|
|
2553
|
+
function Ze(e) {
|
|
2506
2554
|
"@babel/helpers - typeof";
|
|
2507
|
-
return
|
|
2555
|
+
return Ze = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2508
2556
|
return typeof t;
|
|
2509
2557
|
} : function(t) {
|
|
2510
2558
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2511
|
-
},
|
|
2559
|
+
}, Ze(e);
|
|
2512
2560
|
}
|
|
2513
2561
|
function ws(e, t) {
|
|
2514
|
-
if (
|
|
2562
|
+
if (Ze(e) != "object" || !e) return e;
|
|
2515
2563
|
var n = e[Symbol.toPrimitive];
|
|
2516
2564
|
if (n !== void 0) {
|
|
2517
2565
|
var a = n.call(e, t);
|
|
2518
|
-
if (
|
|
2566
|
+
if (Ze(a) != "object") return a;
|
|
2519
2567
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2520
2568
|
}
|
|
2521
2569
|
return (t === "string" ? String : Number)(e);
|
|
2522
2570
|
}
|
|
2523
2571
|
function Cs(e) {
|
|
2524
2572
|
var t = ws(e, "string");
|
|
2525
|
-
return
|
|
2573
|
+
return Ze(t) == "symbol" ? t : t + "";
|
|
2526
2574
|
}
|
|
2527
|
-
function
|
|
2575
|
+
function Ke(e, t, n) {
|
|
2528
2576
|
return (t = Cs(t)) in e ? Object.defineProperty(e, t, {
|
|
2529
2577
|
value: n,
|
|
2530
2578
|
enumerable: !0,
|
|
@@ -2557,22 +2605,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2557
2605
|
function Ee(e) {
|
|
2558
2606
|
return Ss(e) || xs(e) || Ps(e) || Ts();
|
|
2559
2607
|
}
|
|
2560
|
-
var
|
|
2608
|
+
var Ue = function(t) {
|
|
2561
2609
|
return t === Object(t) ? Object.keys(t) : [];
|
|
2562
|
-
},
|
|
2610
|
+
}, dr = function(t) {
|
|
2563
2611
|
return t === Object(t) ? Object.values(t) : [];
|
|
2564
2612
|
};
|
|
2565
|
-
function
|
|
2613
|
+
function fr(e, t) {
|
|
2566
2614
|
var n = Object.assign({}, e);
|
|
2567
|
-
return
|
|
2568
|
-
|
|
2615
|
+
return ft(e) && ft(t) && Ue(t).forEach(function(a) {
|
|
2616
|
+
ft(t[a]) ? a in e ? n[a] = fr(e[a], t[a]) : Object.assign(n, Ke({}, a, t[a])) : Object.assign(n, Ke({}, a, t[a]));
|
|
2569
2617
|
}), n;
|
|
2570
2618
|
}
|
|
2571
2619
|
var Yt = function(t) {
|
|
2572
2620
|
for (var n = arguments.length, a = new Array(n > 1 ? n - 1 : 0), r = 1; r < n; r++)
|
|
2573
2621
|
a[r - 1] = arguments[r];
|
|
2574
2622
|
return a.reduce(function(o, s) {
|
|
2575
|
-
return
|
|
2623
|
+
return fr(o, s);
|
|
2576
2624
|
}, t);
|
|
2577
2625
|
}, Os = function(t, n) {
|
|
2578
2626
|
var a = Object.assign({}, t);
|
|
@@ -2580,20 +2628,20 @@ var Yt = function(t) {
|
|
|
2580
2628
|
for (var r = 0; r < n.length; r++)
|
|
2581
2629
|
delete a[n[r]];
|
|
2582
2630
|
return a;
|
|
2583
|
-
},
|
|
2631
|
+
}, ft = function(t) {
|
|
2584
2632
|
return t === Object(t) && !(t instanceof Date) && !Array.isArray(t);
|
|
2585
2633
|
}, Ds = function(t) {
|
|
2586
2634
|
return (t || []).filter(Boolean);
|
|
2587
|
-
},
|
|
2635
|
+
}, nn = function(t) {
|
|
2588
2636
|
return t[0] === "&";
|
|
2589
2637
|
}, Fs = function(t) {
|
|
2590
|
-
return !
|
|
2591
|
-
},
|
|
2638
|
+
return !nn(t);
|
|
2639
|
+
}, Pn = function(t) {
|
|
2592
2640
|
return t.replace(/-(\w)/g, function(n, a) {
|
|
2593
2641
|
return a.toUpperCase();
|
|
2594
2642
|
});
|
|
2595
|
-
},
|
|
2596
|
-
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a =
|
|
2643
|
+
}, Is = function(t) {
|
|
2644
|
+
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], a = Ue(t), r = {}, o = 0, s = a.length; o < s; o += 1) {
|
|
2597
2645
|
var A = a[o], u = Object.prototype.toString.call(t[A]) !== "[object Object]" || // style defs
|
|
2598
2646
|
A[0] === ":" || // pseudo selectors
|
|
2599
2647
|
A[0] === "@" || // @media / @keyframes / @supports / @font-face
|
|
@@ -2601,20 +2649,20 @@ var Yt = function(t) {
|
|
|
2601
2649
|
u && (r[A] = t[A]);
|
|
2602
2650
|
}
|
|
2603
2651
|
return r;
|
|
2604
|
-
},
|
|
2605
|
-
for (var a = n.map(
|
|
2652
|
+
}, pr = function(t, n) {
|
|
2653
|
+
for (var a = n.map(Pn), r = Ue(t), o = {}, s = 0, A = r.length; s < A; s += 1) {
|
|
2606
2654
|
var u = r[s];
|
|
2607
|
-
(n.indexOf(u) >= 0 || a.indexOf(
|
|
2655
|
+
(n.indexOf(u) >= 0 || a.indexOf(Pn(u)) >= 0) && (o[u] = t[u]);
|
|
2608
2656
|
}
|
|
2609
2657
|
return o;
|
|
2610
|
-
},
|
|
2611
|
-
for (var a = Yt.apply(void 0, [{}, Os(t, n)].concat(Ee(
|
|
2658
|
+
}, Rs = function e(t, n) {
|
|
2659
|
+
for (var a = Yt.apply(void 0, [{}, Os(t, n)].concat(Ee(dr(pr(t, n))))), r = Ue(a).filter(nn), o = 0, s = r.length; o < s; o += 1) {
|
|
2612
2660
|
var A = r[o], u = e(a[A], n);
|
|
2613
2661
|
n.indexOf(A) >= 0 ? (delete a[A], a = Yt({}, a, u)) : a[A] = u;
|
|
2614
2662
|
}
|
|
2615
2663
|
return a;
|
|
2616
2664
|
};
|
|
2617
|
-
function
|
|
2665
|
+
function Tn(e, t) {
|
|
2618
2666
|
var n = Object.keys(e);
|
|
2619
2667
|
if (Object.getOwnPropertySymbols) {
|
|
2620
2668
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2624,33 +2672,33 @@ function Pn(e, t) {
|
|
|
2624
2672
|
}
|
|
2625
2673
|
return n;
|
|
2626
2674
|
}
|
|
2627
|
-
function
|
|
2675
|
+
function On(e) {
|
|
2628
2676
|
for (var t = 1; t < arguments.length; t++) {
|
|
2629
2677
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2630
|
-
t % 2 ?
|
|
2631
|
-
|
|
2632
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2678
|
+
t % 2 ? Tn(Object(n), !0).forEach(function(a) {
|
|
2679
|
+
Ke(e, a, n[a]);
|
|
2680
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Tn(Object(n)).forEach(function(a) {
|
|
2633
2681
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
2634
2682
|
});
|
|
2635
2683
|
}
|
|
2636
2684
|
return e;
|
|
2637
2685
|
}
|
|
2638
|
-
var
|
|
2686
|
+
var Bs = ["animationName"], gr = function(t) {
|
|
2639
2687
|
var n = t.style, a = t.className;
|
|
2640
|
-
return
|
|
2641
|
-
style:
|
|
2688
|
+
return On(On({}, n ? {
|
|
2689
|
+
style: Is(n, Bs)
|
|
2642
2690
|
} : {}), a ? {
|
|
2643
2691
|
className: a
|
|
2644
2692
|
} : {});
|
|
2645
|
-
},
|
|
2646
|
-
|
|
2647
|
-
var
|
|
2693
|
+
}, mr = /* @__PURE__ */ vt(gr);
|
|
2694
|
+
mr.Provider;
|
|
2695
|
+
var hr = function(t) {
|
|
2648
2696
|
if (t) {
|
|
2649
2697
|
if (typeof t == "string")
|
|
2650
2698
|
return [t];
|
|
2651
2699
|
if (!Array.isArray(t)) {
|
|
2652
2700
|
var n = t;
|
|
2653
|
-
return
|
|
2701
|
+
return Ue(t).reduce(function(a, r) {
|
|
2654
2702
|
return a.concat(n[r] ? [r] : []);
|
|
2655
2703
|
}, []);
|
|
2656
2704
|
}
|
|
@@ -2662,11 +2710,11 @@ var mr = function(t) {
|
|
|
2662
2710
|
t.memoize = t.memoize || /* @__PURE__ */ new WeakMap();
|
|
2663
2711
|
var o;
|
|
2664
2712
|
t.memoize.has(r) ? o = t.memoize.get(r) : (o = {}, t.memoize.set(r, o));
|
|
2665
|
-
var s =
|
|
2713
|
+
var s = hr(n).join(" ");
|
|
2666
2714
|
return s in o ? o[s] : o[s] = t(n || [], a);
|
|
2667
2715
|
};
|
|
2668
2716
|
};
|
|
2669
|
-
function
|
|
2717
|
+
function Dn(e, t) {
|
|
2670
2718
|
var n = Object.keys(e);
|
|
2671
2719
|
if (Object.getOwnPropertySymbols) {
|
|
2672
2720
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2679,16 +2727,16 @@ function On(e, t) {
|
|
|
2679
2727
|
function Re(e) {
|
|
2680
2728
|
for (var t = 1; t < arguments.length; t++) {
|
|
2681
2729
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2682
|
-
t % 2 ?
|
|
2683
|
-
|
|
2684
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2730
|
+
t % 2 ? Dn(Object(n), !0).forEach(function(a) {
|
|
2731
|
+
Ke(e, a, n[a]);
|
|
2732
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Dn(Object(n)).forEach(function(a) {
|
|
2685
2733
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
2686
2734
|
});
|
|
2687
2735
|
}
|
|
2688
2736
|
return e;
|
|
2689
2737
|
}
|
|
2690
2738
|
var ks = function(t) {
|
|
2691
|
-
var n = t &&
|
|
2739
|
+
var n = t && Ue(t)[0];
|
|
2692
2740
|
return n && n.split("__")[0].split("--")[0];
|
|
2693
2741
|
}, js = function(t, n, a) {
|
|
2694
2742
|
if (t) {
|
|
@@ -2700,19 +2748,19 @@ var ks = function(t) {
|
|
|
2700
2748
|
return n.length === 0 ? [t].concat(Ee(o)) : o;
|
|
2701
2749
|
}
|
|
2702
2750
|
};
|
|
2703
|
-
function
|
|
2704
|
-
var t = e.style, n = e.className, a = e.classNames, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2705
|
-
var p =
|
|
2706
|
-
|
|
2707
|
-
var
|
|
2708
|
-
return
|
|
2751
|
+
function vr(e) {
|
|
2752
|
+
var t = e.style, n = e.className, a = e.classNames, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : gr, o = n || ks(a) || t?.className, s = typeof t == "function" ? t : Ms(function(c, f) {
|
|
2753
|
+
var p = hr(c);
|
|
2754
|
+
ke(Array.isArray(p), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), ke(!f || ft(f), "Optional second parameter must be a plain object.");
|
|
2755
|
+
var v = p.filter(nn), b = p.filter(Fs), g = b.length > 0 ? function(C) {
|
|
2756
|
+
return dr(pr(C, b));
|
|
2709
2757
|
} : function(C) {
|
|
2710
2758
|
return [C];
|
|
2711
2759
|
}, S = function() {
|
|
2712
2760
|
var E = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2713
|
-
return g(
|
|
2714
|
-
}, T = js(o, b,
|
|
2715
|
-
return
|
|
2761
|
+
return g(Rs(E, v));
|
|
2762
|
+
}, T = js(o, b, v);
|
|
2763
|
+
return vr(Re(Re(Re({}, (t || f) && {
|
|
2716
2764
|
style: Yt.apply(void 0, [{}].concat(Ee(S(f)), Ee(S(t))))
|
|
2717
2765
|
}), T && {
|
|
2718
2766
|
className: T.join(" ")
|
|
@@ -2728,7 +2776,7 @@ function hr(e) {
|
|
|
2728
2776
|
} : {}));
|
|
2729
2777
|
return Object.assign(s, d), s;
|
|
2730
2778
|
}
|
|
2731
|
-
function
|
|
2779
|
+
function Fn(e, t) {
|
|
2732
2780
|
var n = Object.keys(e);
|
|
2733
2781
|
if (Object.getOwnPropertySymbols) {
|
|
2734
2782
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -2738,12 +2786,12 @@ function Dn(e, t) {
|
|
|
2738
2786
|
}
|
|
2739
2787
|
return n;
|
|
2740
2788
|
}
|
|
2741
|
-
function
|
|
2789
|
+
function We(e) {
|
|
2742
2790
|
for (var t = 1; t < arguments.length; t++) {
|
|
2743
2791
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
2744
|
-
t % 2 ?
|
|
2745
|
-
|
|
2746
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
2792
|
+
t % 2 ? Fn(Object(n), !0).forEach(function(a) {
|
|
2793
|
+
Ke(e, a, n[a]);
|
|
2794
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Fn(Object(n)).forEach(function(a) {
|
|
2747
2795
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
2748
2796
|
});
|
|
2749
2797
|
}
|
|
@@ -2753,25 +2801,25 @@ var _s = function() {
|
|
|
2753
2801
|
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
|
|
2754
2802
|
n[a] = arguments[a];
|
|
2755
2803
|
return n.reduce(function(r, o) {
|
|
2756
|
-
return
|
|
2757
|
-
style:
|
|
2804
|
+
return We(We(We({}, r), typeof o == "function" ? o : {}), {}, {
|
|
2805
|
+
style: We(We({}, r.style), typeof o == "function" ? o.style : o)
|
|
2758
2806
|
});
|
|
2759
2807
|
}, {});
|
|
2760
|
-
},
|
|
2761
|
-
var r = n.style, o = n.className, s = n.classNames, A = Gt(
|
|
2762
|
-
return
|
|
2808
|
+
}, rn = function(t, n, a) {
|
|
2809
|
+
var r = n.style, o = n.className, s = n.classNames, A = Gt(mr), u = ia(function() {
|
|
2810
|
+
return vr({
|
|
2763
2811
|
style: r,
|
|
2764
2812
|
className: o,
|
|
2765
2813
|
classNames: s
|
|
2766
2814
|
}, A);
|
|
2767
2815
|
}, [r, o, s, A]);
|
|
2768
2816
|
return u(a, t);
|
|
2769
|
-
},
|
|
2770
|
-
var
|
|
2817
|
+
}, it = { exports: {} }, At = { exports: {} }, L = {};
|
|
2818
|
+
var In;
|
|
2771
2819
|
function qs() {
|
|
2772
|
-
if (
|
|
2773
|
-
|
|
2774
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115,
|
|
2820
|
+
if (In) return L;
|
|
2821
|
+
In = 1;
|
|
2822
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
2775
2823
|
function C(m) {
|
|
2776
2824
|
if (typeof m == "object" && m !== null) {
|
|
2777
2825
|
var H = m.$$typeof;
|
|
@@ -2789,7 +2837,7 @@ function qs() {
|
|
|
2789
2837
|
switch (m = m && m.$$typeof, m) {
|
|
2790
2838
|
case A:
|
|
2791
2839
|
case d:
|
|
2792
|
-
case
|
|
2840
|
+
case v:
|
|
2793
2841
|
case p:
|
|
2794
2842
|
case s:
|
|
2795
2843
|
return m;
|
|
@@ -2805,7 +2853,7 @@ function qs() {
|
|
|
2805
2853
|
function E(m) {
|
|
2806
2854
|
return C(m) === l;
|
|
2807
2855
|
}
|
|
2808
|
-
return L.AsyncMode = u, L.ConcurrentMode = l, L.ContextConsumer = A, L.ContextProvider = s, L.Element = t, L.ForwardRef = d, L.Fragment = a, L.Lazy =
|
|
2856
|
+
return L.AsyncMode = u, L.ConcurrentMode = l, L.ContextConsumer = A, L.ContextProvider = s, L.Element = t, L.ForwardRef = d, L.Fragment = a, L.Lazy = v, L.Memo = p, L.Portal = n, L.Profiler = o, L.StrictMode = r, L.Suspense = c, L.isAsyncMode = function(m) {
|
|
2809
2857
|
return E(m) || C(m) === u;
|
|
2810
2858
|
}, L.isConcurrentMode = E, L.isContextConsumer = function(m) {
|
|
2811
2859
|
return C(m) === A;
|
|
@@ -2818,7 +2866,7 @@ function qs() {
|
|
|
2818
2866
|
}, L.isFragment = function(m) {
|
|
2819
2867
|
return C(m) === a;
|
|
2820
2868
|
}, L.isLazy = function(m) {
|
|
2821
|
-
return C(m) ===
|
|
2869
|
+
return C(m) === v;
|
|
2822
2870
|
}, L.isMemo = function(m) {
|
|
2823
2871
|
return C(m) === p;
|
|
2824
2872
|
}, L.isPortal = function(m) {
|
|
@@ -2830,51 +2878,51 @@ function qs() {
|
|
|
2830
2878
|
}, L.isSuspense = function(m) {
|
|
2831
2879
|
return C(m) === c;
|
|
2832
2880
|
}, L.isValidElementType = function(m) {
|
|
2833
|
-
return typeof m == "string" || typeof m == "function" || m === a || m === l || m === o || m === r || m === c || m === f || typeof m == "object" && m !== null && (m.$$typeof ===
|
|
2881
|
+
return typeof m == "string" || typeof m == "function" || m === a || m === l || m === o || m === r || m === c || m === f || typeof m == "object" && m !== null && (m.$$typeof === v || m.$$typeof === p || m.$$typeof === s || m.$$typeof === A || m.$$typeof === d || m.$$typeof === g || m.$$typeof === S || m.$$typeof === T || m.$$typeof === b);
|
|
2834
2882
|
}, L.typeOf = C, L;
|
|
2835
2883
|
}
|
|
2836
2884
|
var z = {};
|
|
2837
2885
|
var Rn;
|
|
2838
2886
|
function Ls() {
|
|
2839
2887
|
return Rn || (Rn = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2840
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115,
|
|
2888
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, A = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, l = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, S = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
2841
2889
|
function C(P) {
|
|
2842
2890
|
return typeof P == "string" || typeof P == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2843
|
-
P === a || P === l || P === o || P === r || P === c || P === f || typeof P == "object" && P !== null && (P.$$typeof ===
|
|
2891
|
+
P === a || P === l || P === o || P === r || P === c || P === f || typeof P == "object" && P !== null && (P.$$typeof === v || P.$$typeof === p || P.$$typeof === s || P.$$typeof === A || P.$$typeof === d || P.$$typeof === g || P.$$typeof === S || P.$$typeof === T || P.$$typeof === b);
|
|
2844
2892
|
}
|
|
2845
2893
|
function E(P) {
|
|
2846
2894
|
if (typeof P == "object" && P !== null) {
|
|
2847
|
-
var
|
|
2848
|
-
switch (
|
|
2895
|
+
var ge = P.$$typeof;
|
|
2896
|
+
switch (ge) {
|
|
2849
2897
|
case t:
|
|
2850
|
-
var
|
|
2851
|
-
switch (
|
|
2898
|
+
var ot = P.type;
|
|
2899
|
+
switch (ot) {
|
|
2852
2900
|
case u:
|
|
2853
2901
|
case l:
|
|
2854
2902
|
case a:
|
|
2855
2903
|
case o:
|
|
2856
2904
|
case r:
|
|
2857
2905
|
case c:
|
|
2858
|
-
return
|
|
2906
|
+
return ot;
|
|
2859
2907
|
default:
|
|
2860
|
-
var
|
|
2861
|
-
switch (
|
|
2908
|
+
var sn = ot && ot.$$typeof;
|
|
2909
|
+
switch (sn) {
|
|
2862
2910
|
case A:
|
|
2863
2911
|
case d:
|
|
2864
|
-
case
|
|
2912
|
+
case v:
|
|
2865
2913
|
case p:
|
|
2866
2914
|
case s:
|
|
2867
|
-
return
|
|
2915
|
+
return sn;
|
|
2868
2916
|
default:
|
|
2869
|
-
return
|
|
2917
|
+
return ge;
|
|
2870
2918
|
}
|
|
2871
2919
|
}
|
|
2872
2920
|
case n:
|
|
2873
|
-
return
|
|
2921
|
+
return ge;
|
|
2874
2922
|
}
|
|
2875
2923
|
}
|
|
2876
2924
|
}
|
|
2877
|
-
var m = u, H = l, te = A, J = s, ue = t, se = d,
|
|
2925
|
+
var m = u, H = l, te = A, J = s, ue = t, se = d, pe = a, be = v, oe = p, W = n, ee = o, Y = r, k = c, Q = !1;
|
|
2878
2926
|
function Z(P) {
|
|
2879
2927
|
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.")), y(P) || E(P) === u;
|
|
2880
2928
|
}
|
|
@@ -2896,8 +2944,8 @@ function Ls() {
|
|
|
2896
2944
|
function j(P) {
|
|
2897
2945
|
return E(P) === a;
|
|
2898
2946
|
}
|
|
2899
|
-
function
|
|
2900
|
-
return E(P) ===
|
|
2947
|
+
function B(P) {
|
|
2948
|
+
return E(P) === v;
|
|
2901
2949
|
}
|
|
2902
2950
|
function N(P) {
|
|
2903
2951
|
return E(P) === p;
|
|
@@ -2914,17 +2962,17 @@ function Ls() {
|
|
|
2914
2962
|
function re(P) {
|
|
2915
2963
|
return E(P) === c;
|
|
2916
2964
|
}
|
|
2917
|
-
z.AsyncMode = m, z.ConcurrentMode = H, z.ContextConsumer = te, z.ContextProvider = J, z.Element = ue, z.ForwardRef = se, z.Fragment =
|
|
2965
|
+
z.AsyncMode = m, z.ConcurrentMode = H, z.ContextConsumer = te, z.ContextProvider = J, z.Element = ue, z.ForwardRef = se, z.Fragment = pe, z.Lazy = be, z.Memo = oe, z.Portal = W, z.Profiler = ee, z.StrictMode = Y, z.Suspense = k, z.isAsyncMode = Z, z.isConcurrentMode = y, z.isContextConsumer = x, z.isContextProvider = F, z.isElement = D, z.isForwardRef = O, z.isFragment = j, z.isLazy = B, z.isMemo = N, z.isPortal = _, z.isProfiler = U, z.isStrictMode = q, z.isSuspense = re, z.isValidElementType = C, z.typeOf = E;
|
|
2918
2966
|
})()), z;
|
|
2919
2967
|
}
|
|
2920
2968
|
var Bn;
|
|
2921
|
-
function
|
|
2922
|
-
return Bn || (Bn = 1, process.env.NODE_ENV === "production" ?
|
|
2969
|
+
function yr() {
|
|
2970
|
+
return Bn || (Bn = 1, process.env.NODE_ENV === "production" ? At.exports = qs() : At.exports = Ls()), At.exports;
|
|
2923
2971
|
}
|
|
2924
|
-
var Ft,
|
|
2972
|
+
var Ft, Nn;
|
|
2925
2973
|
function zs() {
|
|
2926
|
-
if (
|
|
2927
|
-
|
|
2974
|
+
if (Nn) return Ft;
|
|
2975
|
+
Nn = 1;
|
|
2928
2976
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable;
|
|
2929
2977
|
function a(o) {
|
|
2930
2978
|
if (o == null)
|
|
@@ -2967,25 +3015,25 @@ function zs() {
|
|
|
2967
3015
|
return u;
|
|
2968
3016
|
}, Ft;
|
|
2969
3017
|
}
|
|
2970
|
-
var
|
|
2971
|
-
function
|
|
2972
|
-
if (
|
|
2973
|
-
|
|
3018
|
+
var It, Mn;
|
|
3019
|
+
function an() {
|
|
3020
|
+
if (Mn) return It;
|
|
3021
|
+
Mn = 1;
|
|
2974
3022
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2975
|
-
return
|
|
3023
|
+
return It = e, It;
|
|
2976
3024
|
}
|
|
2977
|
-
var
|
|
2978
|
-
function
|
|
2979
|
-
return
|
|
3025
|
+
var Rt, kn;
|
|
3026
|
+
function br() {
|
|
3027
|
+
return kn || (kn = 1, Rt = Function.call.bind(Object.prototype.hasOwnProperty)), Rt;
|
|
2980
3028
|
}
|
|
2981
|
-
var
|
|
3029
|
+
var Bt, jn;
|
|
2982
3030
|
function Hs() {
|
|
2983
|
-
if (
|
|
2984
|
-
|
|
3031
|
+
if (jn) return Bt;
|
|
3032
|
+
jn = 1;
|
|
2985
3033
|
var e = function() {
|
|
2986
3034
|
};
|
|
2987
3035
|
if (process.env.NODE_ENV !== "production") {
|
|
2988
|
-
var t = /* @__PURE__ */
|
|
3036
|
+
var t = /* @__PURE__ */ an(), n = {}, a = /* @__PURE__ */ br();
|
|
2989
3037
|
e = function(o) {
|
|
2990
3038
|
var s = "Warning: " + o;
|
|
2991
3039
|
typeof console < "u" && console.error(s);
|
|
@@ -3008,8 +3056,8 @@ function Hs() {
|
|
|
3008
3056
|
throw f.name = "Invariant Violation", f;
|
|
3009
3057
|
}
|
|
3010
3058
|
c = o[d](s, d, u, A, null, t);
|
|
3011
|
-
} catch (
|
|
3012
|
-
c =
|
|
3059
|
+
} catch (v) {
|
|
3060
|
+
c = v;
|
|
3013
3061
|
}
|
|
3014
3062
|
if (c && !(c instanceof Error) && e(
|
|
3015
3063
|
(u || "React class") + ": type specification of " + A + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
@@ -3025,13 +3073,13 @@ function Hs() {
|
|
|
3025
3073
|
}
|
|
3026
3074
|
return r.resetWarningCache = function() {
|
|
3027
3075
|
process.env.NODE_ENV !== "production" && (n = {});
|
|
3028
|
-
},
|
|
3076
|
+
}, Bt = r, Bt;
|
|
3029
3077
|
}
|
|
3030
|
-
var Nt,
|
|
3078
|
+
var Nt, _n;
|
|
3031
3079
|
function Us() {
|
|
3032
|
-
if (
|
|
3033
|
-
|
|
3034
|
-
var e =
|
|
3080
|
+
if (_n) return Nt;
|
|
3081
|
+
_n = 1;
|
|
3082
|
+
var e = yr(), t = zs(), n = /* @__PURE__ */ an(), a = /* @__PURE__ */ br(), r = /* @__PURE__ */ Hs(), o = function() {
|
|
3035
3083
|
};
|
|
3036
3084
|
process.env.NODE_ENV !== "production" && (o = function(A) {
|
|
3037
3085
|
var u = "Warning: " + A;
|
|
@@ -3069,10 +3117,10 @@ function Us() {
|
|
|
3069
3117
|
objectOf: J,
|
|
3070
3118
|
oneOf: te,
|
|
3071
3119
|
oneOfType: ue,
|
|
3072
|
-
shape:
|
|
3120
|
+
shape: be,
|
|
3073
3121
|
exact: oe
|
|
3074
3122
|
};
|
|
3075
|
-
function
|
|
3123
|
+
function v(y, x) {
|
|
3076
3124
|
return y === x ? y !== 0 || 1 / y === 1 / x : y !== y && x !== x;
|
|
3077
3125
|
}
|
|
3078
3126
|
function b(y, x) {
|
|
@@ -3082,7 +3130,7 @@ function Us() {
|
|
|
3082
3130
|
function g(y) {
|
|
3083
3131
|
if (process.env.NODE_ENV !== "production")
|
|
3084
3132
|
var x = {}, F = 0;
|
|
3085
|
-
function D(j,
|
|
3133
|
+
function D(j, B, N, _, U, q, re) {
|
|
3086
3134
|
if (_ = _ || f, q = q || N, re !== n) {
|
|
3087
3135
|
if (u) {
|
|
3088
3136
|
var P = new Error(
|
|
@@ -3090,25 +3138,25 @@ function Us() {
|
|
|
3090
3138
|
);
|
|
3091
3139
|
throw P.name = "Invariant Violation", P;
|
|
3092
3140
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
3093
|
-
var
|
|
3094
|
-
!x[
|
|
3141
|
+
var ge = _ + ":" + N;
|
|
3142
|
+
!x[ge] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
3095
3143
|
F < 3 && (o(
|
|
3096
3144
|
"You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + _ + "`. 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."
|
|
3097
|
-
), x[
|
|
3145
|
+
), x[ge] = !0, F++);
|
|
3098
3146
|
}
|
|
3099
3147
|
}
|
|
3100
|
-
return
|
|
3148
|
+
return B[N] == null ? j ? B[N] === null ? new b("The " + U + " `" + q + "` is marked as required " + ("in `" + _ + "`, but its value is `null`.")) : new b("The " + U + " `" + q + "` is marked as required in " + ("`" + _ + "`, but its value is `undefined`.")) : null : y(B, N, _, U, q);
|
|
3101
3149
|
}
|
|
3102
3150
|
var O = D.bind(null, !1);
|
|
3103
3151
|
return O.isRequired = D.bind(null, !0), O;
|
|
3104
3152
|
}
|
|
3105
3153
|
function S(y) {
|
|
3106
|
-
function x(F, D, O, j,
|
|
3154
|
+
function x(F, D, O, j, B, N) {
|
|
3107
3155
|
var _ = F[D], U = Y(_);
|
|
3108
3156
|
if (U !== y) {
|
|
3109
3157
|
var q = k(_);
|
|
3110
3158
|
return new b(
|
|
3111
|
-
"Invalid " + j + " `" +
|
|
3159
|
+
"Invalid " + j + " `" + B + "` of type " + ("`" + q + "` supplied to `" + O + "`, expected ") + ("`" + y + "`."),
|
|
3112
3160
|
{ expectedType: y }
|
|
3113
3161
|
);
|
|
3114
3162
|
}
|
|
@@ -3120,16 +3168,16 @@ function Us() {
|
|
|
3120
3168
|
return g(s);
|
|
3121
3169
|
}
|
|
3122
3170
|
function C(y) {
|
|
3123
|
-
function x(F, D, O, j,
|
|
3171
|
+
function x(F, D, O, j, B) {
|
|
3124
3172
|
if (typeof y != "function")
|
|
3125
|
-
return new b("Property `" +
|
|
3173
|
+
return new b("Property `" + B + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
|
|
3126
3174
|
var N = F[D];
|
|
3127
3175
|
if (!Array.isArray(N)) {
|
|
3128
3176
|
var _ = Y(N);
|
|
3129
|
-
return new b("Invalid " + j + " `" +
|
|
3177
|
+
return new b("Invalid " + j + " `" + B + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected an array."));
|
|
3130
3178
|
}
|
|
3131
3179
|
for (var U = 0; U < N.length; U++) {
|
|
3132
|
-
var q = y(N, U, O, j,
|
|
3180
|
+
var q = y(N, U, O, j, B + "[" + U + "]", n);
|
|
3133
3181
|
if (q instanceof Error)
|
|
3134
3182
|
return q;
|
|
3135
3183
|
}
|
|
@@ -3139,9 +3187,9 @@ function Us() {
|
|
|
3139
3187
|
}
|
|
3140
3188
|
function E() {
|
|
3141
3189
|
function y(x, F, D, O, j) {
|
|
3142
|
-
var
|
|
3143
|
-
if (!A(
|
|
3144
|
-
var N = Y(
|
|
3190
|
+
var B = x[F];
|
|
3191
|
+
if (!A(B)) {
|
|
3192
|
+
var N = Y(B);
|
|
3145
3193
|
return new b("Invalid " + O + " `" + j + "` of type " + ("`" + N + "` supplied to `" + D + "`, expected a single ReactElement."));
|
|
3146
3194
|
}
|
|
3147
3195
|
return null;
|
|
@@ -3150,9 +3198,9 @@ function Us() {
|
|
|
3150
3198
|
}
|
|
3151
3199
|
function m() {
|
|
3152
3200
|
function y(x, F, D, O, j) {
|
|
3153
|
-
var
|
|
3154
|
-
if (!e.isValidElementType(
|
|
3155
|
-
var N = Y(
|
|
3201
|
+
var B = x[F];
|
|
3202
|
+
if (!e.isValidElementType(B)) {
|
|
3203
|
+
var N = Y(B);
|
|
3156
3204
|
return new b("Invalid " + O + " `" + j + "` of type " + ("`" + N + "` supplied to `" + D + "`, expected a single ReactElement type."));
|
|
3157
3205
|
}
|
|
3158
3206
|
return null;
|
|
@@ -3160,10 +3208,10 @@ function Us() {
|
|
|
3160
3208
|
return g(y);
|
|
3161
3209
|
}
|
|
3162
3210
|
function H(y) {
|
|
3163
|
-
function x(F, D, O, j,
|
|
3211
|
+
function x(F, D, O, j, B) {
|
|
3164
3212
|
if (!(F[D] instanceof y)) {
|
|
3165
3213
|
var N = y.name || f, _ = Z(F[D]);
|
|
3166
|
-
return new b("Invalid " + j + " `" +
|
|
3214
|
+
return new b("Invalid " + j + " `" + B + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected ") + ("instance of `" + N + "`."));
|
|
3167
3215
|
}
|
|
3168
3216
|
return null;
|
|
3169
3217
|
}
|
|
@@ -3174,28 +3222,28 @@ function Us() {
|
|
|
3174
3222
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
3175
3223
|
"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])."
|
|
3176
3224
|
) : o("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
3177
|
-
function x(F, D, O, j,
|
|
3225
|
+
function x(F, D, O, j, B) {
|
|
3178
3226
|
for (var N = F[D], _ = 0; _ < y.length; _++)
|
|
3179
|
-
if (
|
|
3227
|
+
if (v(N, y[_]))
|
|
3180
3228
|
return null;
|
|
3181
3229
|
var U = JSON.stringify(y, function(re, P) {
|
|
3182
|
-
var
|
|
3183
|
-
return
|
|
3230
|
+
var ge = k(P);
|
|
3231
|
+
return ge === "symbol" ? String(P) : P;
|
|
3184
3232
|
});
|
|
3185
|
-
return new b("Invalid " + j + " `" +
|
|
3233
|
+
return new b("Invalid " + j + " `" + B + "` of value `" + String(N) + "` " + ("supplied to `" + O + "`, expected one of " + U + "."));
|
|
3186
3234
|
}
|
|
3187
3235
|
return g(x);
|
|
3188
3236
|
}
|
|
3189
3237
|
function J(y) {
|
|
3190
|
-
function x(F, D, O, j,
|
|
3238
|
+
function x(F, D, O, j, B) {
|
|
3191
3239
|
if (typeof y != "function")
|
|
3192
|
-
return new b("Property `" +
|
|
3240
|
+
return new b("Property `" + B + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
|
|
3193
3241
|
var N = F[D], _ = Y(N);
|
|
3194
3242
|
if (_ !== "object")
|
|
3195
|
-
return new b("Invalid " + j + " `" +
|
|
3243
|
+
return new b("Invalid " + j + " `" + B + "` of type " + ("`" + _ + "` supplied to `" + O + "`, expected an object."));
|
|
3196
3244
|
for (var U in N)
|
|
3197
3245
|
if (a(N, U)) {
|
|
3198
|
-
var q = y(N, U, O, j,
|
|
3246
|
+
var q = y(N, U, O, j, B + "." + U, n);
|
|
3199
3247
|
if (q instanceof Error)
|
|
3200
3248
|
return q;
|
|
3201
3249
|
}
|
|
@@ -3213,15 +3261,15 @@ function Us() {
|
|
|
3213
3261
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(F) + " at index " + x + "."
|
|
3214
3262
|
), s;
|
|
3215
3263
|
}
|
|
3216
|
-
function D(O, j,
|
|
3264
|
+
function D(O, j, B, N, _) {
|
|
3217
3265
|
for (var U = [], q = 0; q < y.length; q++) {
|
|
3218
|
-
var re = y[q], P = re(O, j,
|
|
3266
|
+
var re = y[q], P = re(O, j, B, N, _, n);
|
|
3219
3267
|
if (P == null)
|
|
3220
3268
|
return null;
|
|
3221
3269
|
P.data && a(P.data, "expectedType") && U.push(P.data.expectedType);
|
|
3222
3270
|
}
|
|
3223
|
-
var
|
|
3224
|
-
return new b("Invalid " + N + " `" + _ + "` supplied to " + ("`" +
|
|
3271
|
+
var ge = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
3272
|
+
return new b("Invalid " + N + " `" + _ + "` supplied to " + ("`" + B + "`" + ge + "."));
|
|
3225
3273
|
}
|
|
3226
3274
|
return g(D);
|
|
3227
3275
|
}
|
|
@@ -3231,21 +3279,21 @@ function Us() {
|
|
|
3231
3279
|
}
|
|
3232
3280
|
return g(y);
|
|
3233
3281
|
}
|
|
3234
|
-
function
|
|
3282
|
+
function pe(y, x, F, D, O) {
|
|
3235
3283
|
return new b(
|
|
3236
3284
|
(y || "React class") + ": " + x + " type `" + F + "." + D + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
|
|
3237
3285
|
);
|
|
3238
3286
|
}
|
|
3239
|
-
function
|
|
3240
|
-
function x(F, D, O, j,
|
|
3287
|
+
function be(y) {
|
|
3288
|
+
function x(F, D, O, j, B) {
|
|
3241
3289
|
var N = F[D], _ = Y(N);
|
|
3242
3290
|
if (_ !== "object")
|
|
3243
|
-
return new b("Invalid " + j + " `" +
|
|
3291
|
+
return new b("Invalid " + j + " `" + B + "` of type `" + _ + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
3244
3292
|
for (var U in y) {
|
|
3245
3293
|
var q = y[U];
|
|
3246
3294
|
if (typeof q != "function")
|
|
3247
|
-
return
|
|
3248
|
-
var re = q(N, U, O, j,
|
|
3295
|
+
return pe(O, j, B, U, k(q));
|
|
3296
|
+
var re = q(N, U, O, j, B + "." + U, n);
|
|
3249
3297
|
if (re)
|
|
3250
3298
|
return re;
|
|
3251
3299
|
}
|
|
@@ -3254,21 +3302,21 @@ function Us() {
|
|
|
3254
3302
|
return g(x);
|
|
3255
3303
|
}
|
|
3256
3304
|
function oe(y) {
|
|
3257
|
-
function x(F, D, O, j,
|
|
3305
|
+
function x(F, D, O, j, B) {
|
|
3258
3306
|
var N = F[D], _ = Y(N);
|
|
3259
3307
|
if (_ !== "object")
|
|
3260
|
-
return new b("Invalid " + j + " `" +
|
|
3308
|
+
return new b("Invalid " + j + " `" + B + "` of type `" + _ + "` " + ("supplied to `" + O + "`, expected `object`."));
|
|
3261
3309
|
var U = t({}, F[D], y);
|
|
3262
3310
|
for (var q in U) {
|
|
3263
3311
|
var re = y[q];
|
|
3264
3312
|
if (a(y, q) && typeof re != "function")
|
|
3265
|
-
return
|
|
3313
|
+
return pe(O, j, B, q, k(re));
|
|
3266
3314
|
if (!re)
|
|
3267
3315
|
return new b(
|
|
3268
|
-
"Invalid " + j + " `" +
|
|
3316
|
+
"Invalid " + j + " `" + B + "` key `" + q + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(F[D], null, " ") + `
|
|
3269
3317
|
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
3270
3318
|
);
|
|
3271
|
-
var P = re(N, q, O, j,
|
|
3319
|
+
var P = re(N, q, O, j, B + "." + q, n);
|
|
3272
3320
|
if (P)
|
|
3273
3321
|
return P;
|
|
3274
3322
|
}
|
|
@@ -3348,11 +3396,11 @@ Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
|
3348
3396
|
return p.checkPropTypes = r, p.resetWarningCache = r.resetWarningCache, p.PropTypes = p, p;
|
|
3349
3397
|
}, Nt;
|
|
3350
3398
|
}
|
|
3351
|
-
var Mt,
|
|
3399
|
+
var Mt, qn;
|
|
3352
3400
|
function Ys() {
|
|
3353
|
-
if (
|
|
3354
|
-
|
|
3355
|
-
var e = /* @__PURE__ */
|
|
3401
|
+
if (qn) return Mt;
|
|
3402
|
+
qn = 1;
|
|
3403
|
+
var e = /* @__PURE__ */ an();
|
|
3356
3404
|
function t() {
|
|
3357
3405
|
}
|
|
3358
3406
|
function n() {
|
|
@@ -3396,53 +3444,53 @@ function Ys() {
|
|
|
3396
3444
|
return o.PropTypes = o, o;
|
|
3397
3445
|
}, Mt;
|
|
3398
3446
|
}
|
|
3399
|
-
var
|
|
3447
|
+
var Ln;
|
|
3400
3448
|
function Vs() {
|
|
3401
|
-
if (
|
|
3402
|
-
if (
|
|
3403
|
-
var e =
|
|
3404
|
-
|
|
3449
|
+
if (Ln) return it.exports;
|
|
3450
|
+
if (Ln = 1, process.env.NODE_ENV !== "production") {
|
|
3451
|
+
var e = yr(), t = !0;
|
|
3452
|
+
it.exports = /* @__PURE__ */ Us()(e.isElement, t);
|
|
3405
3453
|
} else
|
|
3406
|
-
|
|
3407
|
-
return
|
|
3454
|
+
it.exports = /* @__PURE__ */ Ys()();
|
|
3455
|
+
return it.exports;
|
|
3408
3456
|
}
|
|
3409
3457
|
var Ws = /* @__PURE__ */ Vs();
|
|
3410
|
-
const w = /* @__PURE__ */
|
|
3411
|
-
var
|
|
3458
|
+
const w = /* @__PURE__ */ er(Ws);
|
|
3459
|
+
var pt = function(t) {
|
|
3412
3460
|
return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
3413
|
-
},
|
|
3461
|
+
}, me = {
|
|
3414
3462
|
id: "__id__",
|
|
3415
3463
|
display: "__display__"
|
|
3416
|
-
},
|
|
3417
|
-
|
|
3418
|
-
var a = t.indexOf(
|
|
3419
|
-
return a < 0 && (a = null), r < 0 && (r = null),
|
|
3464
|
+
}, zn = function(t, n) {
|
|
3465
|
+
ke(n === "id" || n === "display", 'Second arg must be either "id" or "display", got: "'.concat(n, '"'));
|
|
3466
|
+
var a = t.indexOf(me.display), r = t.indexOf(me.id);
|
|
3467
|
+
return a < 0 && (a = null), r < 0 && (r = null), ke(a !== null || r !== null, "The markup '".concat(t, "' does not contain either of the placeholders '__id__' or '__display__'")), a !== null && r !== null ? n === "id" && r <= a || n === "display" && a <= r ? 0 : 1 : 0;
|
|
3420
3468
|
}, Qs = function(t) {
|
|
3421
3469
|
var n = /^\/(.+)\/(\w+)?$/;
|
|
3422
3470
|
return new RegExp(t.map(function(a) {
|
|
3423
3471
|
var r = n.exec(a.toString()), o = ht(r, 3), s = o[1], A = o[2];
|
|
3424
|
-
return
|
|
3472
|
+
return ke(!A, "RegExp flags are not supported. Change /".concat(s, "/").concat(A, " into /").concat(s, "/")), "(".concat(s, ")");
|
|
3425
3473
|
}).join("|"), "g");
|
|
3426
|
-
},
|
|
3474
|
+
}, Er = function(t) {
|
|
3427
3475
|
var n = 0;
|
|
3428
3476
|
return t.indexOf("__id__") >= 0 && n++, t.indexOf("__display__") >= 0 && n++, n;
|
|
3429
3477
|
}, Gs = function() {
|
|
3430
|
-
},
|
|
3478
|
+
}, at = function(t, n, a) {
|
|
3431
3479
|
for (var r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : Gs, o = Qs(n.map(function(m) {
|
|
3432
3480
|
return m.regex;
|
|
3433
3481
|
})), s = 2, A = n.map(function(m) {
|
|
3434
3482
|
var H = m.markup, te = s;
|
|
3435
|
-
return s +=
|
|
3483
|
+
return s += Er(H) + 1, te;
|
|
3436
3484
|
}), u, l = 0, d = 0; (u = o.exec(t)) !== null; ) {
|
|
3437
3485
|
var c = A.find(function(m) {
|
|
3438
3486
|
return !!u[m];
|
|
3439
|
-
}), f = A.indexOf(c), p = n[f],
|
|
3487
|
+
}), f = A.indexOf(c), p = n[f], v = p.markup, b = p.displayTransform, g = c + zn(v, "id"), S = c + zn(v, "display"), T = u[g], C = b(T, u[S]), E = t.substring(l, u.index);
|
|
3440
3488
|
r(E, l, d), d += E.length, a(u[0], u.index, d, T, C, f, l), d += C.length, l = o.lastIndex;
|
|
3441
3489
|
}
|
|
3442
3490
|
l < t.length && r(t.substring(l), l, d);
|
|
3443
3491
|
}, Te = function(t, n) {
|
|
3444
3492
|
var a = "";
|
|
3445
|
-
return
|
|
3493
|
+
return at(t, n, function(r, o, s, A, u) {
|
|
3446
3494
|
a += u;
|
|
3447
3495
|
}, function(r) {
|
|
3448
3496
|
a += r;
|
|
@@ -3453,36 +3501,36 @@ var ft = function(t) {
|
|
|
3453
3501
|
return a;
|
|
3454
3502
|
var o, s = function(l, d, c) {
|
|
3455
3503
|
o === void 0 && c + l.length >= a && (o = d + a - c);
|
|
3456
|
-
}, A = function(l, d, c, f, p,
|
|
3504
|
+
}, A = function(l, d, c, f, p, v, b) {
|
|
3457
3505
|
o === void 0 && c + p.length > a && (r === "NULL" ? o = null : o = d + (r === "END" ? l.length : 0));
|
|
3458
3506
|
};
|
|
3459
|
-
return
|
|
3460
|
-
},
|
|
3507
|
+
return at(t, n, A, s), o === void 0 ? t.length : o;
|
|
3508
|
+
}, Ge = function(t, n, a, r) {
|
|
3461
3509
|
return t.substring(0, n) + r + t.substring(a);
|
|
3462
3510
|
}, Js = function(t, n, a, r) {
|
|
3463
3511
|
var o = a.selectionStartBefore, s = a.selectionEndBefore, A = a.selectionEndAfter, u = Te(t, r), l = u.length - n.length;
|
|
3464
3512
|
o === "undefined" && (o = A + l), s === "undefined" && (s = o), o === s && s === A && u.length === n.length && (o = o - 1);
|
|
3465
3513
|
var d = n.slice(o, A), c = Math.min(o, A), f = s;
|
|
3466
3514
|
o === A && (f = Math.max(s, o + l));
|
|
3467
|
-
var p = ne(t, r, c, "START"),
|
|
3515
|
+
var p = ne(t, r, c, "START"), v = ne(t, r, f, "END"), b = ne(t, r, c, "NULL"), g = ne(t, r, f, "NULL"), S = b === null || g === null, T = Ge(t, p, v, d);
|
|
3468
3516
|
if (!S) {
|
|
3469
3517
|
var C = Te(T, r);
|
|
3470
3518
|
if (C !== n) {
|
|
3471
3519
|
for (c = 0; n[c] === C[c]; )
|
|
3472
3520
|
c++;
|
|
3473
|
-
d = n.slice(c, A), f = u.lastIndexOf(n.substring(A)), p = ne(t, r, c, "START"),
|
|
3521
|
+
d = n.slice(c, A), f = u.lastIndexOf(n.substring(A)), p = ne(t, r, c, "START"), v = ne(t, r, f, "END"), T = Ge(t, p, v, d);
|
|
3474
3522
|
}
|
|
3475
3523
|
}
|
|
3476
3524
|
return T;
|
|
3477
|
-
},
|
|
3478
|
-
var r = a, o = !1, s = function(u, l, d, c, f, p,
|
|
3525
|
+
}, Hn = function(t, n, a) {
|
|
3526
|
+
var r = a, o = !1, s = function(u, l, d, c, f, p, v) {
|
|
3479
3527
|
d <= a && d + f.length > a && (r = d, o = !0);
|
|
3480
3528
|
};
|
|
3481
|
-
if (
|
|
3529
|
+
if (at(t, n, s), o)
|
|
3482
3530
|
return r;
|
|
3483
|
-
},
|
|
3531
|
+
}, Qe = function(t, n) {
|
|
3484
3532
|
var a = [];
|
|
3485
|
-
return
|
|
3533
|
+
return at(t, n, function(r, o, s, A, u, l, d) {
|
|
3486
3534
|
a.push({
|
|
3487
3535
|
id: A,
|
|
3488
3536
|
display: u,
|
|
@@ -3491,21 +3539,21 @@ var ft = function(t) {
|
|
|
3491
3539
|
plainTextIndex: s
|
|
3492
3540
|
});
|
|
3493
3541
|
}), a;
|
|
3494
|
-
},
|
|
3542
|
+
}, wr = function(t, n) {
|
|
3495
3543
|
return "".concat(t, "-").concat(n);
|
|
3496
|
-
},
|
|
3544
|
+
}, ut = function(t) {
|
|
3497
3545
|
return Object.values(t).reduce(function(n, a) {
|
|
3498
3546
|
var r = a.results;
|
|
3499
3547
|
return n + r.length;
|
|
3500
3548
|
}, 0);
|
|
3501
3549
|
}, Xs = function(t, n) {
|
|
3502
|
-
var a =
|
|
3550
|
+
var a = Qe(t, n), r = a[a.length - 1];
|
|
3503
3551
|
return r ? r.plainTextIndex + r.display.length : 0;
|
|
3504
3552
|
}, Zs = function(t) {
|
|
3505
|
-
var n =
|
|
3506
|
-
return new RegExp(n.replace(
|
|
3507
|
-
},
|
|
3508
|
-
return
|
|
3553
|
+
var n = pt(t), a = t[t.indexOf(me.display) + me.display.length], r = t[t.indexOf(me.id) + me.id.length];
|
|
3554
|
+
return new RegExp(n.replace(me.display, "([^".concat(pt(a || ""), "]+?)")).replace(me.id, "([^".concat(pt(r || ""), "]+?)")));
|
|
3555
|
+
}, Ce = function(t) {
|
|
3556
|
+
return Je.toArray(t).map(function(n) {
|
|
3509
3557
|
var a = n.props, r = a.markup, o = a.regex, s = a.displayTransform;
|
|
3510
3558
|
return {
|
|
3511
3559
|
markup: r,
|
|
@@ -3516,10 +3564,10 @@ var ft = function(t) {
|
|
|
3516
3564
|
};
|
|
3517
3565
|
});
|
|
3518
3566
|
}, Ks = function(t, n) {
|
|
3519
|
-
var a = new RegExp(t.toString() + "|").exec("").length - 1, r =
|
|
3520
|
-
return
|
|
3567
|
+
var a = new RegExp(t.toString() + "|").exec("").length - 1, r = Er(n);
|
|
3568
|
+
return ke(a === r, "Number of capturing groups in RegExp ".concat(t.toString(), " (").concat(a, ") does not match the number of placeholders in the markup '").concat(n, "' (").concat(r, ")")), t;
|
|
3521
3569
|
}, $s = function(t, n, a) {
|
|
3522
|
-
return t.replace(
|
|
3570
|
+
return t.replace(me.id, n).replace(me.display, a);
|
|
3523
3571
|
}, ei = [{
|
|
3524
3572
|
base: "A",
|
|
3525
3573
|
letters: /(A|Ⓐ|A|À|Á|Â|Ầ|Ấ|Ẫ|Ẩ|Ã|Ā|Ă|Ằ|Ắ|Ẵ|Ẳ|Ȧ|Ǡ|Ä|Ǟ|Ả|Å|Ǻ|Ǎ|Ȁ|Ȃ|Ạ|Ậ|Ặ|Ḁ|Ą|Ⱥ|Ɐ|[\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
|
|
@@ -3795,10 +3843,10 @@ var ft = function(t) {
|
|
|
3795
3843
|
return ei.forEach(function(a) {
|
|
3796
3844
|
n = n.replace(a.letters, a.base);
|
|
3797
3845
|
}), n;
|
|
3798
|
-
},
|
|
3846
|
+
}, Un = function(t) {
|
|
3799
3847
|
return ti(t).toLowerCase();
|
|
3800
|
-
},
|
|
3801
|
-
return a ?
|
|
3848
|
+
}, Cr = function(t, n, a) {
|
|
3849
|
+
return a ? Un(t).indexOf(Un(n)) : t.toLowerCase().indexOf(n.toLowerCase());
|
|
3802
3850
|
}, ni = function() {
|
|
3803
3851
|
return !!document.documentMode;
|
|
3804
3852
|
}, Vt = function(t) {
|
|
@@ -3813,7 +3861,7 @@ var ft = function(t) {
|
|
|
3813
3861
|
return t.hasOwnProperty(u) && !s.includes(u) && t[u] !== void 0 && (A[u] = t[u]), A;
|
|
3814
3862
|
}, {});
|
|
3815
3863
|
}, oi = ["style", "className", "classNames"];
|
|
3816
|
-
function
|
|
3864
|
+
function Yn(e, t) {
|
|
3817
3865
|
var n = Object.keys(e);
|
|
3818
3866
|
if (Object.getOwnPropertySymbols) {
|
|
3819
3867
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -3823,12 +3871,12 @@ function Un(e, t) {
|
|
|
3823
3871
|
}
|
|
3824
3872
|
return n;
|
|
3825
3873
|
}
|
|
3826
|
-
function
|
|
3874
|
+
function Vn(e) {
|
|
3827
3875
|
for (var t = 1; t < arguments.length; t++) {
|
|
3828
3876
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
3829
|
-
t % 2 ?
|
|
3830
|
-
|
|
3831
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
3877
|
+
t % 2 ? Yn(Object(n), !0).forEach(function(a) {
|
|
3878
|
+
I(e, a, n[a]);
|
|
3879
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Yn(Object(n)).forEach(function(a) {
|
|
3832
3880
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
3833
3881
|
});
|
|
3834
3882
|
}
|
|
@@ -3837,17 +3885,17 @@ function Yn(e) {
|
|
|
3837
3885
|
function Ct(e, t) {
|
|
3838
3886
|
var n = function(r) {
|
|
3839
3887
|
var o = function(u) {
|
|
3840
|
-
var l = u.style, d = u.className, c = u.classNames, f = Es(u, oi), p = t ? t(f) : void 0,
|
|
3888
|
+
var l = u.style, d = u.className, c = u.classNames, f = Es(u, oi), p = t ? t(f) : void 0, v = rn(e, {
|
|
3841
3889
|
style: l,
|
|
3842
3890
|
className: d,
|
|
3843
3891
|
classNames: c
|
|
3844
3892
|
}, p);
|
|
3845
3893
|
return /* @__PURE__ */ M.createElement(r, Ae({}, f, {
|
|
3846
|
-
style:
|
|
3894
|
+
style: v
|
|
3847
3895
|
}));
|
|
3848
3896
|
}, s = r.displayName || r.name || "Component";
|
|
3849
3897
|
return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */ M.forwardRef(function(A, u) {
|
|
3850
|
-
return o(
|
|
3898
|
+
return o(Vn(Vn({}, A), {}, {
|
|
3851
3899
|
ref: u
|
|
3852
3900
|
}));
|
|
3853
3901
|
});
|
|
@@ -3857,13 +3905,13 @@ function Ct(e, t) {
|
|
|
3857
3905
|
var si = function(t, n) {
|
|
3858
3906
|
return t.hasOwnProperty(n) ? t[n]++ : t[n] = 0, n + "_" + t[n];
|
|
3859
3907
|
};
|
|
3860
|
-
function
|
|
3908
|
+
function Sr(e) {
|
|
3861
3909
|
var t = e.selectionStart, n = e.selectionEnd, a = e.value, r = a === void 0 ? "" : a, o = e.onCaretPositionChange, s = e.containerRef, A = e.children;
|
|
3862
3910
|
e.singleLine;
|
|
3863
3911
|
var u = e.style, l = V({
|
|
3864
3912
|
left: void 0,
|
|
3865
3913
|
top: void 0
|
|
3866
|
-
}), d = ht(l, 2), c = d[0], f = d[1], p = V(),
|
|
3914
|
+
}), d = ht(l, 2), c = d[0], f = d[1], p = V(), v = ht(p, 2), b = v[0], g = v[1];
|
|
3867
3915
|
Fe(function() {
|
|
3868
3916
|
S();
|
|
3869
3917
|
});
|
|
@@ -3878,7 +3926,7 @@ function Cr(e) {
|
|
|
3878
3926
|
f(Y), o(Y);
|
|
3879
3927
|
}
|
|
3880
3928
|
}
|
|
3881
|
-
}, T =
|
|
3929
|
+
}, T = Ce(A), C;
|
|
3882
3930
|
n === t && (C = ne(r, T, t, "START"));
|
|
3883
3931
|
var E = [], m = {}, H = E, te = 0, J = function(W, ee, Y) {
|
|
3884
3932
|
if (Vt(C) && C >= ee && C <= ee + W.length) {
|
|
@@ -3889,29 +3937,29 @@ function Cr(e) {
|
|
|
3889
3937
|
te++;
|
|
3890
3938
|
}, ue = function(W, ee, Y, k, Q, Z, y) {
|
|
3891
3939
|
var x = si(m, k);
|
|
3892
|
-
H.push(
|
|
3940
|
+
H.push(pe(k, Q, Z, x));
|
|
3893
3941
|
}, se = function(W, ee) {
|
|
3894
3942
|
return /* @__PURE__ */ M.createElement("span", Ae({}, u("substring"), {
|
|
3895
3943
|
key: ee
|
|
3896
3944
|
}), W);
|
|
3897
|
-
},
|
|
3945
|
+
}, pe = function(W, ee, Y, k) {
|
|
3898
3946
|
var Q = {
|
|
3899
3947
|
id: W,
|
|
3900
3948
|
display: ee,
|
|
3901
3949
|
key: k
|
|
3902
|
-
}, Z =
|
|
3950
|
+
}, Z = Je.toArray(A)[Y];
|
|
3903
3951
|
return /* @__PURE__ */ M.cloneElement(Z, Q);
|
|
3904
|
-
},
|
|
3952
|
+
}, be = function(W) {
|
|
3905
3953
|
return /* @__PURE__ */ M.createElement("span", Ae({}, u("caret"), {
|
|
3906
3954
|
ref: g,
|
|
3907
3955
|
key: "caret"
|
|
3908
3956
|
}), W);
|
|
3909
3957
|
};
|
|
3910
|
-
return
|
|
3958
|
+
return at(r, T, ue, J), H.push(" "), H !== E && E.push(be(H)), /* @__PURE__ */ M.createElement("div", Ae({}, u, {
|
|
3911
3959
|
ref: s
|
|
3912
3960
|
}), E);
|
|
3913
3961
|
}
|
|
3914
|
-
|
|
3962
|
+
Sr.propTypes = {
|
|
3915
3963
|
selectionStart: w.number,
|
|
3916
3964
|
selectionEnd: w.number,
|
|
3917
3965
|
value: w.string.isRequired,
|
|
@@ -3942,23 +3990,23 @@ var ii = Ct({
|
|
|
3942
3990
|
return {
|
|
3943
3991
|
"&singleLine": e.singleLine
|
|
3944
3992
|
};
|
|
3945
|
-
}), Ai = ii(
|
|
3946
|
-
function
|
|
3993
|
+
}), Ai = ii(Sr);
|
|
3994
|
+
function xr(e) {
|
|
3947
3995
|
var t = e.id, n = e.focused, a = e.ignoreAccents, r = e.index, o = e.onClick, s = e.onMouseEnter, A = e.query, u = e.renderSuggestion, l = e.suggestion, d = e.style;
|
|
3948
3996
|
e.className, e.classNames;
|
|
3949
3997
|
var c = {
|
|
3950
3998
|
onClick: o,
|
|
3951
3999
|
onMouseEnter: s
|
|
3952
4000
|
}, f = function() {
|
|
3953
|
-
var g = p(), S =
|
|
4001
|
+
var g = p(), S = v(g);
|
|
3954
4002
|
return u ? u(l, A, S, r, n) : S;
|
|
3955
4003
|
}, p = function() {
|
|
3956
4004
|
if (typeof l == "string")
|
|
3957
4005
|
return l;
|
|
3958
4006
|
var g = l.id, S = l.display;
|
|
3959
4007
|
return g === void 0 || !S ? g : S;
|
|
3960
|
-
},
|
|
3961
|
-
var S =
|
|
4008
|
+
}, v = function(g) {
|
|
4009
|
+
var S = Cr(g, A, a);
|
|
3962
4010
|
return S === -1 ? /* @__PURE__ */ M.createElement("span", d("display"), g) : /* @__PURE__ */ M.createElement("span", d("display"), g.substring(0, S), /* @__PURE__ */ M.createElement("b", d("highlight"), g.substring(S, S + A.length)), g.substring(S + A.length));
|
|
3963
4011
|
};
|
|
3964
4012
|
return /* @__PURE__ */ M.createElement("li", Ae({
|
|
@@ -3967,7 +4015,7 @@ function Sr(e) {
|
|
|
3967
4015
|
"aria-selected": n
|
|
3968
4016
|
}, c, d), f());
|
|
3969
4017
|
}
|
|
3970
|
-
|
|
4018
|
+
xr.propTypes = {
|
|
3971
4019
|
id: w.string.isRequired,
|
|
3972
4020
|
query: w.string.isRequired,
|
|
3973
4021
|
index: w.number.isRequired,
|
|
@@ -3985,9 +4033,9 @@ var ui = Ct({
|
|
|
3985
4033
|
return {
|
|
3986
4034
|
"&focused": e.focused
|
|
3987
4035
|
};
|
|
3988
|
-
}), li = ui(
|
|
4036
|
+
}), li = ui(xr);
|
|
3989
4037
|
function ci(e) {
|
|
3990
|
-
var t = e.style, n = e.className, a = e.classNames, r =
|
|
4038
|
+
var t = e.style, n = e.className, a = e.classNames, r = rn(di, {
|
|
3991
4039
|
style: t,
|
|
3992
4040
|
className: n,
|
|
3993
4041
|
classNames: a
|
|
@@ -3995,8 +4043,8 @@ function ci(e) {
|
|
|
3995
4043
|
return /* @__PURE__ */ M.createElement("div", r, /* @__PURE__ */ M.createElement("div", o, /* @__PURE__ */ M.createElement("div", o(["element", "element1"])), /* @__PURE__ */ M.createElement("div", o(["element", "element2"])), /* @__PURE__ */ M.createElement("div", o(["element", "element3"])), /* @__PURE__ */ M.createElement("div", o(["element", "element4"])), /* @__PURE__ */ M.createElement("div", o(["element", "element5"]))));
|
|
3996
4044
|
}
|
|
3997
4045
|
var di = {};
|
|
3998
|
-
function
|
|
3999
|
-
var t = e.id, n = e.suggestions, a = n === void 0 ? {} : n, r = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, A = e.left, u = e.right, l = e.top, d = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, p = e.onSelect,
|
|
4046
|
+
function Pr(e) {
|
|
4047
|
+
var t = e.id, n = e.suggestions, a = n === void 0 ? {} : n, r = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, A = e.left, u = e.right, l = e.top, d = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, p = e.onSelect, v = p === void 0 ? function() {
|
|
4000
4048
|
return null;
|
|
4001
4049
|
} : p, b = e.ignoreAccents, g = e.containerRef, S = e.children, T = e.style, C = e.customSuggestionsContainer, E = e.onMouseDown, m = e.onMouseEnter, H = V(void 0), te = ht(H, 2), J = te[0], ue = te[1];
|
|
4002
4050
|
Fe(function() {
|
|
@@ -4014,16 +4062,16 @@ function xr(e) {
|
|
|
4014
4062
|
}, T("list")), Object.values(a).reduce(function(Q, Z) {
|
|
4015
4063
|
var y = Z.results, x = Z.queryInfo;
|
|
4016
4064
|
return [].concat(gt(Q), gt(y.map(function(F, D) {
|
|
4017
|
-
return
|
|
4065
|
+
return pe(F, x, Q.length + D);
|
|
4018
4066
|
})));
|
|
4019
4067
|
}, []));
|
|
4020
4068
|
return C ? C(k) : k;
|
|
4021
|
-
},
|
|
4022
|
-
var y = Z === o, x = Q.childIndex, F = Q.query, D =
|
|
4069
|
+
}, pe = function(k, Q, Z) {
|
|
4070
|
+
var y = Z === o, x = Q.childIndex, F = Q.query, D = Je.toArray(S)[x].props.renderSuggestion;
|
|
4023
4071
|
return /* @__PURE__ */ M.createElement(li, {
|
|
4024
4072
|
style: T("item"),
|
|
4025
4073
|
key: "".concat(x, "-").concat(ee(k)),
|
|
4026
|
-
id:
|
|
4074
|
+
id: wr(t, Z),
|
|
4027
4075
|
query: F,
|
|
4028
4076
|
index: Z,
|
|
4029
4077
|
ignoreAccents: b,
|
|
@@ -4037,7 +4085,7 @@ function xr(e) {
|
|
|
4037
4085
|
return oe(Z);
|
|
4038
4086
|
}
|
|
4039
4087
|
});
|
|
4040
|
-
},
|
|
4088
|
+
}, be = function() {
|
|
4041
4089
|
if (c)
|
|
4042
4090
|
return /* @__PURE__ */ M.createElement(ci, {
|
|
4043
4091
|
style: T("loadingIndicator")
|
|
@@ -4045,7 +4093,7 @@ function xr(e) {
|
|
|
4045
4093
|
}, oe = function(k, Q) {
|
|
4046
4094
|
m && m(k);
|
|
4047
4095
|
}, W = function(k, Q) {
|
|
4048
|
-
|
|
4096
|
+
v(k, Q);
|
|
4049
4097
|
}, ee = function(k) {
|
|
4050
4098
|
return typeof k == "string" ? k : k.id;
|
|
4051
4099
|
};
|
|
@@ -4057,9 +4105,9 @@ function xr(e) {
|
|
|
4057
4105
|
}, T), {
|
|
4058
4106
|
onMouseDown: E,
|
|
4059
4107
|
ref: g
|
|
4060
|
-
}), se(),
|
|
4108
|
+
}), se(), be()) : null;
|
|
4061
4109
|
}
|
|
4062
|
-
|
|
4110
|
+
Pr.propTypes = {
|
|
4063
4111
|
id: w.string.isRequired,
|
|
4064
4112
|
suggestions: w.object.isRequired,
|
|
4065
4113
|
a11ySuggestionsListLabel: w.string,
|
|
@@ -4088,8 +4136,8 @@ var fi = Ct({
|
|
|
4088
4136
|
padding: 0,
|
|
4089
4137
|
listStyleType: "none"
|
|
4090
4138
|
}
|
|
4091
|
-
}), pi = fi(
|
|
4092
|
-
function
|
|
4139
|
+
}), pi = fi(Pr);
|
|
4140
|
+
function Wn(e, t) {
|
|
4093
4141
|
var n = Object.keys(e);
|
|
4094
4142
|
if (Object.getOwnPropertySymbols) {
|
|
4095
4143
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -4099,12 +4147,12 @@ function Vn(e, t) {
|
|
|
4099
4147
|
}
|
|
4100
4148
|
return n;
|
|
4101
4149
|
}
|
|
4102
|
-
function
|
|
4150
|
+
function ce(e) {
|
|
4103
4151
|
for (var t = 1; t < arguments.length; t++) {
|
|
4104
4152
|
var n = arguments[t] != null ? arguments[t] : {};
|
|
4105
|
-
t % 2 ?
|
|
4106
|
-
|
|
4107
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4153
|
+
t % 2 ? Wn(Object(n), !0).forEach(function(a) {
|
|
4154
|
+
I(e, a, n[a]);
|
|
4155
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Wn(Object(n)).forEach(function(a) {
|
|
4108
4156
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(n, a));
|
|
4109
4157
|
});
|
|
4110
4158
|
}
|
|
@@ -4136,13 +4184,13 @@ var hi = function(t) {
|
|
|
4136
4184
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4137
4185
|
if (t instanceof RegExp)
|
|
4138
4186
|
return t;
|
|
4139
|
-
var a = n.allowSpaceInQuery, r =
|
|
4187
|
+
var a = n.allowSpaceInQuery, r = pt(t);
|
|
4140
4188
|
return new RegExp("(?:^|\\s)(".concat(r, "([^").concat(a ? "" : "\\s").concat(r, "]*))$"));
|
|
4141
4189
|
}, vi = function(t, n) {
|
|
4142
4190
|
return t instanceof Array ? function(a, r) {
|
|
4143
4191
|
for (var o = [], s = 0, A = t.length; s < A; ++s) {
|
|
4144
4192
|
var u = t[s].display || t[s].id;
|
|
4145
|
-
|
|
4193
|
+
Cr(u, a, n) >= 0 && o.push(t[s]);
|
|
4146
4194
|
}
|
|
4147
4195
|
return o;
|
|
4148
4196
|
} : t;
|
|
@@ -4152,7 +4200,7 @@ var hi = function(t) {
|
|
|
4152
4200
|
ESC: 27,
|
|
4153
4201
|
UP: 38,
|
|
4154
4202
|
DOWN: 40
|
|
4155
|
-
},
|
|
4203
|
+
}, lt = !1, Tr = {
|
|
4156
4204
|
/**
|
|
4157
4205
|
* If set to `true` a regular text input element will be rendered
|
|
4158
4206
|
* instead of a textarea
|
|
@@ -4174,21 +4222,21 @@ var hi = function(t) {
|
|
|
4174
4222
|
current: typeof Element > "u" ? w.any : w.instanceOf(Element)
|
|
4175
4223
|
})]),
|
|
4176
4224
|
children: w.oneOfType([w.element, w.arrayOf(w.element)]).isRequired
|
|
4177
|
-
},
|
|
4225
|
+
}, on = /* @__PURE__ */ (function(e) {
|
|
4178
4226
|
fs(n, e);
|
|
4179
4227
|
var t = gi(n);
|
|
4180
4228
|
function n(a) {
|
|
4181
4229
|
var r;
|
|
4182
|
-
return ls(this, n), r = t.call(this, a), R(
|
|
4230
|
+
return ls(this, n), r = t.call(this, a), I(R(r), "setContainerElement", function(o) {
|
|
4183
4231
|
r.containerElement = o;
|
|
4184
|
-
}), R(
|
|
4232
|
+
}), I(R(r), "getInputProps", function() {
|
|
4185
4233
|
var o = r.props, s = o.readOnly, A = o.disabled, u = o.style, l = ai(
|
|
4186
4234
|
r.props,
|
|
4187
4235
|
["style", "classNames", "className"],
|
|
4188
4236
|
// substyle props
|
|
4189
|
-
ri(
|
|
4237
|
+
ri(Tr)
|
|
4190
4238
|
);
|
|
4191
|
-
return
|
|
4239
|
+
return ce(ce(ce(ce({}, l), u("input")), {}, {
|
|
4192
4240
|
value: r.getPlainText(),
|
|
4193
4241
|
onScroll: r.updateHighlighterScroll
|
|
4194
4242
|
}, !s && !A && {
|
|
@@ -4204,27 +4252,27 @@ var hi = function(t) {
|
|
|
4204
4252
|
"aria-expanded": !0,
|
|
4205
4253
|
"aria-autocomplete": "list",
|
|
4206
4254
|
"aria-haspopup": "listbox",
|
|
4207
|
-
"aria-activedescendant":
|
|
4255
|
+
"aria-activedescendant": wr(r.uuidSuggestionsOverlay, r.state.focusIndex)
|
|
4208
4256
|
});
|
|
4209
|
-
}), R(
|
|
4257
|
+
}), I(R(r), "renderControl", function() {
|
|
4210
4258
|
var o = r.props, s = o.singleLine, A = o.style, u = r.getInputProps();
|
|
4211
4259
|
return /* @__PURE__ */ M.createElement("div", A("control"), r.renderHighlighter(), s ? r.renderInput(u) : r.renderTextarea(u));
|
|
4212
|
-
}), R(
|
|
4260
|
+
}), I(R(r), "renderInput", function(o) {
|
|
4213
4261
|
return /* @__PURE__ */ M.createElement("input", Ae({
|
|
4214
4262
|
type: "text",
|
|
4215
4263
|
ref: r.setInputRef
|
|
4216
4264
|
}, o));
|
|
4217
|
-
}), R(
|
|
4265
|
+
}), I(R(r), "renderTextarea", function(o) {
|
|
4218
4266
|
return /* @__PURE__ */ M.createElement("textarea", Ae({
|
|
4219
4267
|
ref: r.setInputRef
|
|
4220
4268
|
}, o));
|
|
4221
|
-
}), R(
|
|
4269
|
+
}), I(R(r), "setInputRef", function(o) {
|
|
4222
4270
|
r.inputElement = o;
|
|
4223
4271
|
var s = r.props.inputRef;
|
|
4224
4272
|
typeof s == "function" ? s(o) : s && (s.current = o);
|
|
4225
|
-
}), R(
|
|
4273
|
+
}), I(R(r), "setSuggestionsElement", function(o) {
|
|
4226
4274
|
r.suggestionsElement = o;
|
|
4227
|
-
}), R(
|
|
4275
|
+
}), I(R(r), "renderSuggestionsOverlay", function() {
|
|
4228
4276
|
if (!Vt(r.state.selectionStart))
|
|
4229
4277
|
return null;
|
|
4230
4278
|
var o = r.state.suggestionsPosition, s = o.position, A = o.left, u = o.top, l = o.right, d = /* @__PURE__ */ M.createElement(pi, {
|
|
@@ -4247,8 +4295,8 @@ var hi = function(t) {
|
|
|
4247
4295
|
ignoreAccents: r.props.ignoreAccents,
|
|
4248
4296
|
a11ySuggestionsListLabel: r.props.a11ySuggestionsListLabel
|
|
4249
4297
|
}, r.props.children);
|
|
4250
|
-
return r.props.suggestionsPortalHost ? /* @__PURE__ */
|
|
4251
|
-
}), R(
|
|
4298
|
+
return r.props.suggestionsPortalHost ? /* @__PURE__ */ va.createPortal(d, r.props.suggestionsPortalHost) : d;
|
|
4299
|
+
}), I(R(r), "renderHighlighter", function() {
|
|
4252
4300
|
var o = r.state, s = o.selectionStart, A = o.selectionEnd, u = r.props, l = u.singleLine, d = u.children, c = u.value, f = u.style;
|
|
4253
4301
|
return /* @__PURE__ */ M.createElement(Ai, {
|
|
4254
4302
|
containerRef: r.setHighlighterElement,
|
|
@@ -4259,15 +4307,15 @@ var hi = function(t) {
|
|
|
4259
4307
|
selectionEnd: A,
|
|
4260
4308
|
onCaretPositionChange: r.handleCaretPositionChange
|
|
4261
4309
|
}, d);
|
|
4262
|
-
}), R(
|
|
4310
|
+
}), I(R(r), "setHighlighterElement", function(o) {
|
|
4263
4311
|
r.highlighterElement = o;
|
|
4264
|
-
}), R(
|
|
4312
|
+
}), I(R(r), "handleCaretPositionChange", function(o) {
|
|
4265
4313
|
r.setState({
|
|
4266
4314
|
caretPosition: o
|
|
4267
4315
|
});
|
|
4268
|
-
}), R(
|
|
4269
|
-
return Te(r.props.value || "",
|
|
4270
|
-
}), R(
|
|
4316
|
+
}), I(R(r), "getPlainText", function() {
|
|
4317
|
+
return Te(r.props.value || "", Ce(r.props.children));
|
|
4318
|
+
}), I(R(r), "executeOnChange", function(o) {
|
|
4271
4319
|
for (var s = arguments.length, A = new Array(s > 1 ? s - 1 : 0), u = 1; u < s; u++)
|
|
4272
4320
|
A[u - 1] = arguments[u];
|
|
4273
4321
|
if (r.props.onChange) {
|
|
@@ -4278,13 +4326,13 @@ var hi = function(t) {
|
|
|
4278
4326
|
var d;
|
|
4279
4327
|
return (d = r.props.valueLink).requestChange.apply(d, [o.target.value].concat(A));
|
|
4280
4328
|
}
|
|
4281
|
-
}), R(
|
|
4282
|
-
if (
|
|
4329
|
+
}), I(R(r), "handleChange", function(o) {
|
|
4330
|
+
if (lt = !1, ni()) {
|
|
4283
4331
|
var s = document.activeElement && document.activeElement.contentDocument || document;
|
|
4284
4332
|
if (s.activeElement !== o.target)
|
|
4285
4333
|
return;
|
|
4286
4334
|
}
|
|
4287
|
-
var A = r.props.value || "", u =
|
|
4335
|
+
var A = r.props.value || "", u = Ce(r.props.children), l = o.target.value, d = r.state.selectionStart;
|
|
4288
4336
|
d == null && (d = o.target.selectionStart);
|
|
4289
4337
|
var c = r.state.selectionEnd;
|
|
4290
4338
|
c == null && (c = o.target.selectionEnd);
|
|
@@ -4294,30 +4342,30 @@ var hi = function(t) {
|
|
|
4294
4342
|
selectionEndAfter: o.target.selectionEnd
|
|
4295
4343
|
}, u);
|
|
4296
4344
|
l = Te(f, u);
|
|
4297
|
-
var p = o.target.selectionStart,
|
|
4298
|
-
g !== void 0 && r.state.selectionEnd > g && (p = g + (o.nativeEvent.data ? o.nativeEvent.data.length : 0),
|
|
4345
|
+
var p = o.target.selectionStart, v = o.target.selectionEnd, b = !1, g = Hn(A, u, p);
|
|
4346
|
+
g !== void 0 && r.state.selectionEnd > g && (p = g + (o.nativeEvent.data ? o.nativeEvent.data.length : 0), v = p, b = !0), r.setState({
|
|
4299
4347
|
selectionStart: p,
|
|
4300
|
-
selectionEnd:
|
|
4348
|
+
selectionEnd: v,
|
|
4301
4349
|
setSelectionAfterMentionChange: b
|
|
4302
4350
|
});
|
|
4303
|
-
var S =
|
|
4304
|
-
o.nativeEvent.isComposing && p ===
|
|
4351
|
+
var S = Qe(f, u);
|
|
4352
|
+
o.nativeEvent.isComposing && p === v && r.updateMentionsQueries(r.inputElement.value, p);
|
|
4305
4353
|
var T = {
|
|
4306
4354
|
target: {
|
|
4307
4355
|
value: f
|
|
4308
4356
|
}
|
|
4309
4357
|
};
|
|
4310
4358
|
r.executeOnChange(T, f, l, S);
|
|
4311
|
-
}), R(
|
|
4359
|
+
}), I(R(r), "handleSelect", function(o) {
|
|
4312
4360
|
if (r.setState({
|
|
4313
4361
|
selectionStart: o.target.selectionStart,
|
|
4314
4362
|
selectionEnd: o.target.selectionEnd
|
|
4315
|
-
}), !
|
|
4363
|
+
}), !lt) {
|
|
4316
4364
|
var s = r.inputElement;
|
|
4317
4365
|
o.target.selectionStart === o.target.selectionEnd ? r.updateMentionsQueries(s.value, o.target.selectionStart) : r.clearSuggestions(), r.updateHighlighterScroll(), r.props.onSelect(o);
|
|
4318
4366
|
}
|
|
4319
|
-
}), R(
|
|
4320
|
-
var s =
|
|
4367
|
+
}), I(R(r), "handleKeyDown", function(o) {
|
|
4368
|
+
var s = ut(r.state.suggestions);
|
|
4321
4369
|
if (s === 0 || !r.suggestionsElement) {
|
|
4322
4370
|
r.props.onKeyDown(o);
|
|
4323
4371
|
return;
|
|
@@ -4346,26 +4394,26 @@ var hi = function(t) {
|
|
|
4346
4394
|
default:
|
|
4347
4395
|
return;
|
|
4348
4396
|
}
|
|
4349
|
-
}), R(
|
|
4350
|
-
var s =
|
|
4397
|
+
}), I(R(r), "shiftFocus", function(o) {
|
|
4398
|
+
var s = ut(r.state.suggestions);
|
|
4351
4399
|
r.setState({
|
|
4352
4400
|
focusIndex: (s + r.state.focusIndex + o) % s,
|
|
4353
4401
|
scrollFocusedIntoView: !0
|
|
4354
4402
|
});
|
|
4355
|
-
}), R(
|
|
4403
|
+
}), I(R(r), "selectFocused", function() {
|
|
4356
4404
|
var o = r.state, s = o.suggestions, A = o.focusIndex, u = Object.values(s).reduce(function(c, f) {
|
|
4357
|
-
var p = f.results,
|
|
4405
|
+
var p = f.results, v = f.queryInfo;
|
|
4358
4406
|
return [].concat(gt(c), gt(p.map(function(b) {
|
|
4359
4407
|
return {
|
|
4360
4408
|
result: b,
|
|
4361
|
-
queryInfo:
|
|
4409
|
+
queryInfo: v
|
|
4362
4410
|
};
|
|
4363
4411
|
})));
|
|
4364
4412
|
}, [])[A], l = u.result, d = u.queryInfo;
|
|
4365
4413
|
r.addMention(l, d), r.setState({
|
|
4366
4414
|
focusIndex: 0
|
|
4367
4415
|
});
|
|
4368
|
-
}), R(
|
|
4416
|
+
}), I(R(r), "handleBlur", function(o) {
|
|
4369
4417
|
var s = r._suggestionsMouseDown;
|
|
4370
4418
|
r._suggestionsMouseDown = !1, s || r.setState({
|
|
4371
4419
|
selectionStart: null,
|
|
@@ -4373,17 +4421,17 @@ var hi = function(t) {
|
|
|
4373
4421
|
}), window.setTimeout(function() {
|
|
4374
4422
|
r.updateHighlighterScroll();
|
|
4375
4423
|
}, 1), r.props.onBlur(o, s);
|
|
4376
|
-
}), R(
|
|
4424
|
+
}), I(R(r), "handleSuggestionsMouseDown", function(o) {
|
|
4377
4425
|
r._suggestionsMouseDown = !0;
|
|
4378
|
-
}), R(
|
|
4426
|
+
}), I(R(r), "handleSuggestionsMouseEnter", function(o) {
|
|
4379
4427
|
r.setState({
|
|
4380
4428
|
focusIndex: o,
|
|
4381
4429
|
scrollFocusedIntoView: !1
|
|
4382
4430
|
});
|
|
4383
|
-
}), R(
|
|
4431
|
+
}), I(R(r), "updateSuggestionsPosition", function() {
|
|
4384
4432
|
var o = r.state.caretPosition, s = r.props, A = s.suggestionsPortalHost, u = s.allowSuggestionsAboveCursor, l = s.forceSuggestionsAboveCursor;
|
|
4385
4433
|
if (!(!o || !r.suggestionsElement)) {
|
|
4386
|
-
var d = r.suggestionsElement, c = r.highlighterElement, f = c.getBoundingClientRect(), p = kt(c, "font-size"),
|
|
4434
|
+
var d = r.suggestionsElement, c = r.highlighterElement, f = c.getBoundingClientRect(), p = kt(c, "font-size"), v = {
|
|
4387
4435
|
left: f.left + o.left,
|
|
4388
4436
|
top: f.top + o.top + p
|
|
4389
4437
|
}, b = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
@@ -4391,27 +4439,27 @@ var hi = function(t) {
|
|
|
4391
4439
|
var g = {};
|
|
4392
4440
|
if (A) {
|
|
4393
4441
|
g.position = "fixed";
|
|
4394
|
-
var S =
|
|
4442
|
+
var S = v.left, T = v.top;
|
|
4395
4443
|
S -= kt(d, "margin-left"), T -= kt(d, "margin-top"), S -= c.scrollLeft, T -= c.scrollTop;
|
|
4396
4444
|
var C = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
4397
4445
|
S + d.offsetWidth > C ? g.left = Math.max(0, C - d.offsetWidth) : g.left = S, u && T + d.offsetHeight > b && d.offsetHeight < T - p || l ? g.top = Math.max(0, T - d.offsetHeight - p) : g.top = T;
|
|
4398
4446
|
} else {
|
|
4399
4447
|
var E = o.left - c.scrollLeft, m = o.top - c.scrollTop;
|
|
4400
|
-
E + d.offsetWidth > r.containerElement.offsetWidth ? g.right = 0 : g.left = E, u &&
|
|
4448
|
+
E + d.offsetWidth > r.containerElement.offsetWidth ? g.right = 0 : g.left = E, u && v.top - c.scrollTop + d.offsetHeight > b && d.offsetHeight < f.top - p - c.scrollTop || l ? g.top = m - d.offsetHeight - p : g.top = m;
|
|
4401
4449
|
}
|
|
4402
4450
|
g.left === r.state.suggestionsPosition.left && g.top === r.state.suggestionsPosition.top && g.position === r.state.suggestionsPosition.position || r.setState({
|
|
4403
4451
|
suggestionsPosition: g
|
|
4404
4452
|
});
|
|
4405
4453
|
}
|
|
4406
4454
|
}
|
|
4407
|
-
}), R(
|
|
4455
|
+
}), I(R(r), "updateHighlighterScroll", function() {
|
|
4408
4456
|
var o = r.inputElement, s = r.highlighterElement;
|
|
4409
4457
|
!o || !s || (s.scrollLeft = o.scrollLeft, s.scrollTop = o.scrollTop, s.height = o.height);
|
|
4410
|
-
}), R(
|
|
4411
|
-
|
|
4412
|
-
}), R(
|
|
4413
|
-
|
|
4414
|
-
}), R(
|
|
4458
|
+
}), I(R(r), "handleCompositionStart", function() {
|
|
4459
|
+
lt = !0;
|
|
4460
|
+
}), I(R(r), "handleCompositionEnd", function() {
|
|
4461
|
+
lt = !1;
|
|
4462
|
+
}), I(R(r), "setSelection", function(o, s) {
|
|
4415
4463
|
if (!(o === null || s === null)) {
|
|
4416
4464
|
var A = r.inputElement;
|
|
4417
4465
|
if (A.setSelectionRange)
|
|
@@ -4421,34 +4469,34 @@ var hi = function(t) {
|
|
|
4421
4469
|
u.collapse(!0), u.moveEnd("character", s), u.moveStart("character", o), u.select();
|
|
4422
4470
|
}
|
|
4423
4471
|
}
|
|
4424
|
-
}), R(
|
|
4472
|
+
}), I(R(r), "updateMentionsQueries", function(o, s) {
|
|
4425
4473
|
r._queryId++, r.suggestions = {}, r.setState({
|
|
4426
4474
|
suggestions: {}
|
|
4427
4475
|
});
|
|
4428
|
-
var A = r.props.value || "", u = r.props.children, l =
|
|
4476
|
+
var A = r.props.value || "", u = r.props.children, l = Ce(u), d = ne(A, l, s, "NULL");
|
|
4429
4477
|
if (d !== null) {
|
|
4430
4478
|
var c = Xs(A.substring(0, d), l), f = o.substring(c, s);
|
|
4431
|
-
M.Children.forEach(u, function(p,
|
|
4479
|
+
M.Children.forEach(u, function(p, v) {
|
|
4432
4480
|
if (p) {
|
|
4433
4481
|
var b = hi(p.props.trigger, r.props), g = f.match(b);
|
|
4434
4482
|
if (g) {
|
|
4435
4483
|
var S = c + f.indexOf(g[1], g.index);
|
|
4436
|
-
r.queryData(g[2],
|
|
4484
|
+
r.queryData(g[2], v, S, S + g[1].length, o);
|
|
4437
4485
|
}
|
|
4438
4486
|
}
|
|
4439
4487
|
});
|
|
4440
4488
|
}
|
|
4441
|
-
}), R(
|
|
4489
|
+
}), I(R(r), "clearSuggestions", function() {
|
|
4442
4490
|
r._queryId++, r.suggestions = {}, r.setState({
|
|
4443
4491
|
suggestions: {},
|
|
4444
4492
|
focusIndex: 0
|
|
4445
4493
|
});
|
|
4446
|
-
}), R(
|
|
4447
|
-
var d = r.props, c = d.children, f = d.ignoreAccents, p =
|
|
4494
|
+
}), I(R(r), "queryData", function(o, s, A, u, l) {
|
|
4495
|
+
var d = r.props, c = d.children, f = d.ignoreAccents, p = Je.toArray(c)[s], v = vi(p.props.data, f), b = v(o, r.updateSuggestions.bind(null, r._queryId, s, o, A, u, l));
|
|
4448
4496
|
b instanceof Array && r.updateSuggestions(r._queryId, s, o, A, u, l, b);
|
|
4449
|
-
}), R(
|
|
4497
|
+
}), I(R(r), "updateSuggestions", function(o, s, A, u, l, d, c) {
|
|
4450
4498
|
if (o === r._queryId) {
|
|
4451
|
-
r.suggestions =
|
|
4499
|
+
r.suggestions = ce(ce({}, r.suggestions), {}, I({}, s, {
|
|
4452
4500
|
queryInfo: {
|
|
4453
4501
|
childIndex: s,
|
|
4454
4502
|
query: A,
|
|
@@ -4458,16 +4506,16 @@ var hi = function(t) {
|
|
|
4458
4506
|
},
|
|
4459
4507
|
results: c
|
|
4460
4508
|
}));
|
|
4461
|
-
var f = r.state.focusIndex, p =
|
|
4509
|
+
var f = r.state.focusIndex, p = ut(r.suggestions);
|
|
4462
4510
|
r.setState({
|
|
4463
4511
|
suggestions: r.suggestions,
|
|
4464
4512
|
focusIndex: f >= p ? Math.max(p - 1, 0) : f
|
|
4465
4513
|
});
|
|
4466
4514
|
}
|
|
4467
|
-
}), R(
|
|
4468
|
-
var A = o.id, u = o.display, l = s.childIndex, d = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, p = r.props.value || "",
|
|
4515
|
+
}), I(R(r), "addMention", function(o, s) {
|
|
4516
|
+
var A = o.id, u = o.display, l = s.childIndex, d = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, p = r.props.value || "", v = Ce(r.props.children), b = Je.toArray(r.props.children)[l], g = b.props, S = g.markup, T = g.displayTransform, C = g.appendSpaceOnAdd, E = g.onAdd, m = ne(p, v, d, "START"), H = m + c - d, te = $s(S, A, u);
|
|
4469
4517
|
C && (te += " ");
|
|
4470
|
-
var J =
|
|
4518
|
+
var J = Ge(p, m, H, te);
|
|
4471
4519
|
r.inputElement.focus();
|
|
4472
4520
|
var ue = T(A, u);
|
|
4473
4521
|
C && (ue += " ");
|
|
@@ -4477,20 +4525,20 @@ var hi = function(t) {
|
|
|
4477
4525
|
selectionEnd: se,
|
|
4478
4526
|
setSelectionAfterMentionChange: !0
|
|
4479
4527
|
});
|
|
4480
|
-
var
|
|
4528
|
+
var pe = {
|
|
4481
4529
|
target: {
|
|
4482
4530
|
value: J
|
|
4483
4531
|
}
|
|
4484
|
-
},
|
|
4485
|
-
r.executeOnChange(
|
|
4486
|
-
}), R(
|
|
4532
|
+
}, be = Qe(J, v), oe = Ge(f, d, c, ue);
|
|
4533
|
+
r.executeOnChange(pe, J, oe, be), E && E(A, u, m, H), r.clearSuggestions();
|
|
4534
|
+
}), I(R(r), "isLoading", function() {
|
|
4487
4535
|
var o = !1;
|
|
4488
4536
|
return M.Children.forEach(r.props.children, function(s) {
|
|
4489
4537
|
o = o || s && s.props.isLoading;
|
|
4490
4538
|
}), o;
|
|
4491
|
-
}), R(
|
|
4492
|
-
return Vt(r.state.selectionStart) && (
|
|
4493
|
-
}), R(
|
|
4539
|
+
}), I(R(r), "isOpened", function() {
|
|
4540
|
+
return Vt(r.state.selectionStart) && (ut(r.state.suggestions) !== 0 || r.isLoading());
|
|
4541
|
+
}), I(R(r), "_queryId", 0), r.suggestions = {}, r.uuidSuggestionsOverlay = Math.random().toString(16).substring(2), r.handleCopy = r.handleCopy.bind(R(r)), r.handleCut = r.handleCut.bind(R(r)), r.handlePaste = r.handlePaste.bind(R(r)), r.state = {
|
|
4494
4542
|
focusIndex: 0,
|
|
4495
4543
|
selectionStart: null,
|
|
4496
4544
|
selectionEnd: null,
|
|
@@ -4531,13 +4579,13 @@ var hi = function(t) {
|
|
|
4531
4579
|
value: function(r) {
|
|
4532
4580
|
if (r.target === this.inputElement && this.supportsClipboardActions(r)) {
|
|
4533
4581
|
r.preventDefault();
|
|
4534
|
-
var o = this.state, s = o.selectionStart, A = o.selectionEnd, u = this.props, l = u.value, d = u.children, c =
|
|
4535
|
-
target:
|
|
4582
|
+
var o = this.state, s = o.selectionStart, A = o.selectionEnd, u = this.props, l = u.value, d = u.children, c = Ce(d), f = ne(l, c, s, "START"), p = ne(l, c, A, "END"), v = r.clipboardData.getData("text/react-mentions"), b = r.clipboardData.getData("text/plain"), g = Ge(l, f, p, v || b).replace(/\r/g, ""), S = Te(g, c), T = {
|
|
4583
|
+
target: ce(ce({}, r.target), {}, {
|
|
4536
4584
|
value: g
|
|
4537
4585
|
})
|
|
4538
4586
|
};
|
|
4539
|
-
this.executeOnChange(T, g, S,
|
|
4540
|
-
var C =
|
|
4587
|
+
this.executeOnChange(T, g, S, Qe(g, c));
|
|
4588
|
+
var C = Hn(l, c, s), E = (C || s) + Te(v || b, c).length;
|
|
4541
4589
|
this.setState({
|
|
4542
4590
|
selectionStart: E,
|
|
4543
4591
|
selectionEnd: E,
|
|
@@ -4548,7 +4596,7 @@ var hi = function(t) {
|
|
|
4548
4596
|
}, {
|
|
4549
4597
|
key: "saveSelectionToClipboard",
|
|
4550
4598
|
value: function(r) {
|
|
4551
|
-
var o = this.inputElement.selectionStart, s = this.inputElement.selectionEnd, A = this.props, u = A.children, l = A.value, d =
|
|
4599
|
+
var o = this.inputElement.selectionStart, s = this.inputElement.selectionEnd, A = this.props, u = A.children, l = A.value, d = Ce(u), c = ne(l, d, o, "START"), f = ne(l, d, s, "END");
|
|
4552
4600
|
r.clipboardData.setData("text/plain", r.target.value.slice(o, s)), r.clipboardData.setData("text/react-mentions", l.slice(c, f));
|
|
4553
4601
|
}
|
|
4554
4602
|
}, {
|
|
@@ -4566,19 +4614,19 @@ var hi = function(t) {
|
|
|
4566
4614
|
value: function(r) {
|
|
4567
4615
|
if (r.target === this.inputElement && this.supportsClipboardActions(r)) {
|
|
4568
4616
|
r.preventDefault(), this.saveSelectionToClipboard(r);
|
|
4569
|
-
var o = this.state, s = o.selectionStart, A = o.selectionEnd, u = this.props, l = u.children, d = u.value, c =
|
|
4570
|
-
target:
|
|
4617
|
+
var o = this.state, s = o.selectionStart, A = o.selectionEnd, u = this.props, l = u.children, d = u.value, c = Ce(l), f = ne(d, c, s, "START"), p = ne(d, c, A, "END"), v = [d.slice(0, f), d.slice(p)].join(""), b = Te(v, c), g = {
|
|
4618
|
+
target: ce(ce({}, r.target), {}, {
|
|
4571
4619
|
value: b
|
|
4572
4620
|
})
|
|
4573
4621
|
};
|
|
4574
|
-
this.executeOnChange(g,
|
|
4622
|
+
this.executeOnChange(g, v, b, Qe(d, c));
|
|
4575
4623
|
}
|
|
4576
4624
|
}
|
|
4577
4625
|
// Handle input element's change event
|
|
4578
4626
|
}]), n;
|
|
4579
4627
|
})(M.Component);
|
|
4580
|
-
|
|
4581
|
-
|
|
4628
|
+
I(on, "propTypes", Tr);
|
|
4629
|
+
I(on, "defaultProps", {
|
|
4582
4630
|
ignoreAccents: !1,
|
|
4583
4631
|
singleLine: !1,
|
|
4584
4632
|
allowSuggestionsAboveCursor: !1,
|
|
@@ -4612,7 +4660,7 @@ var kt = function(t, n) {
|
|
|
4612
4660
|
letterSpacing: "inherit"
|
|
4613
4661
|
},
|
|
4614
4662
|
"&multiLine": {
|
|
4615
|
-
input:
|
|
4663
|
+
input: ce({
|
|
4616
4664
|
height: "100%",
|
|
4617
4665
|
bottom: 0,
|
|
4618
4666
|
overflow: "hidden",
|
|
@@ -4628,17 +4676,17 @@ var kt = function(t, n) {
|
|
|
4628
4676
|
"&singleLine": t,
|
|
4629
4677
|
"&multiLine": !t
|
|
4630
4678
|
};
|
|
4631
|
-
}),
|
|
4679
|
+
}), ZA = bi(on), Ei = {
|
|
4632
4680
|
fontWeight: "inherit"
|
|
4633
|
-
},
|
|
4634
|
-
var n = t.display, a = t.style, r = t.className, o = t.classNames, s =
|
|
4681
|
+
}, Or = function(t) {
|
|
4682
|
+
var n = t.display, a = t.style, r = t.className, o = t.classNames, s = rn(Ei, {
|
|
4635
4683
|
style: a,
|
|
4636
4684
|
className: r,
|
|
4637
4685
|
classNames: o
|
|
4638
4686
|
});
|
|
4639
4687
|
return /* @__PURE__ */ M.createElement("strong", s, n);
|
|
4640
4688
|
};
|
|
4641
|
-
|
|
4689
|
+
Or.propTypes = {
|
|
4642
4690
|
/**
|
|
4643
4691
|
* Called when a new mention is added in the input
|
|
4644
4692
|
*
|
|
@@ -4662,7 +4710,7 @@ Tr.propTypes = {
|
|
|
4662
4710
|
allowSpaceInQuery: w.bool,
|
|
4663
4711
|
isLoading: w.bool
|
|
4664
4712
|
};
|
|
4665
|
-
|
|
4713
|
+
Or.defaultProps = {
|
|
4666
4714
|
trigger: "@",
|
|
4667
4715
|
markup: "@[__display__](__id__)",
|
|
4668
4716
|
displayTransform: function(t, n) {
|
|
@@ -4681,14 +4729,14 @@ Tr.defaultProps = {
|
|
|
4681
4729
|
const wi = async ({
|
|
4682
4730
|
filter: e,
|
|
4683
4731
|
environment: t
|
|
4684
|
-
}) => (await
|
|
4732
|
+
}) => (await tt(t).get("/sales", { params: e })).data;
|
|
4685
4733
|
function Ci({
|
|
4686
4734
|
filter: e,
|
|
4687
4735
|
queryKey: t,
|
|
4688
4736
|
enabled: n = !0
|
|
4689
4737
|
}) {
|
|
4690
|
-
const { environments: a } =
|
|
4691
|
-
return
|
|
4738
|
+
const { environments: a } = nt();
|
|
4739
|
+
return et({
|
|
4692
4740
|
queryKey: ["sales", e, ...t || []],
|
|
4693
4741
|
queryFn: () => wi({
|
|
4694
4742
|
filter: e,
|
|
@@ -4697,9 +4745,9 @@ function Ci({
|
|
|
4697
4745
|
enabled: n && !!(e.title && e.title.length > 3)
|
|
4698
4746
|
});
|
|
4699
4747
|
}
|
|
4700
|
-
const
|
|
4748
|
+
const Dr = G(
|
|
4701
4749
|
({ queryKey: e, value: t, defaultValue: n, onValueChange: a, id: r, disabled: o, ...s }, A) => {
|
|
4702
|
-
const u = n ? { title: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p,
|
|
4750
|
+
const u = n ? { title: String(n) } : void 0, [l, d] = V(!1), [c, f] = V(u), [p, v] = V(""), b = rt(p, 200), g = Ci({
|
|
4703
4751
|
filter: {
|
|
4704
4752
|
page: 1,
|
|
4705
4753
|
limit: 5,
|
|
@@ -4709,14 +4757,14 @@ const Or = G(
|
|
|
4709
4757
|
enabled: l
|
|
4710
4758
|
}), S = g.data?.data;
|
|
4711
4759
|
Fe(() => {
|
|
4712
|
-
!t && c && (f(void 0),
|
|
4760
|
+
!t && c && (f(void 0), v(""));
|
|
4713
4761
|
}, [c, t]);
|
|
4714
4762
|
const T = (C) => {
|
|
4715
4763
|
const E = S?.find((m) => m._id === C);
|
|
4716
4764
|
d(!1), E && (f(E), a(E));
|
|
4717
4765
|
};
|
|
4718
|
-
return /* @__PURE__ */
|
|
4719
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
4766
|
+
return /* @__PURE__ */ h(Se, { open: l, onOpenChange: d, children: [
|
|
4767
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
4720
4768
|
K,
|
|
4721
4769
|
{
|
|
4722
4770
|
id: r,
|
|
@@ -4727,33 +4775,33 @@ const Or = G(
|
|
|
4727
4775
|
disabled: o,
|
|
4728
4776
|
children: [
|
|
4729
4777
|
c?.title ? c?.title : "Selecionar",
|
|
4730
|
-
/* @__PURE__ */ i(
|
|
4778
|
+
/* @__PURE__ */ i(He, { className: "opacity-50" })
|
|
4731
4779
|
]
|
|
4732
4780
|
}
|
|
4733
4781
|
) }),
|
|
4734
|
-
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */
|
|
4782
|
+
/* @__PURE__ */ i(Pe, { className: "w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ h(je, { shouldFilter: !1, children: [
|
|
4735
4783
|
/* @__PURE__ */ i(
|
|
4736
|
-
|
|
4784
|
+
_e,
|
|
4737
4785
|
{
|
|
4738
4786
|
...s,
|
|
4739
4787
|
disabled: o,
|
|
4740
4788
|
value: p,
|
|
4741
|
-
onValueChange: (C) =>
|
|
4789
|
+
onValueChange: (C) => v(C),
|
|
4742
4790
|
placeholder: "Busque uma venda...",
|
|
4743
4791
|
className: "h-9",
|
|
4744
4792
|
ref: A
|
|
4745
4793
|
}
|
|
4746
4794
|
),
|
|
4747
|
-
/* @__PURE__ */
|
|
4795
|
+
/* @__PURE__ */ h(qe, { children: [
|
|
4748
4796
|
g.isSuccess && S?.length === 0 && /* @__PURE__ */ i(X, { children: "Nenhuma venda encontrado." }),
|
|
4749
4797
|
g.isError && /* @__PURE__ */ i(X, { children: "Ocorreu um erro ao buscar as vendas." }),
|
|
4750
4798
|
!g.isEnabled && /* @__PURE__ */ i(X, { children: "Busque uma venda..." }),
|
|
4751
|
-
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */
|
|
4752
|
-
/* @__PURE__ */ i(
|
|
4799
|
+
g.fetchStatus !== "idle" && g.isPending && /* @__PURE__ */ h(X, { className: "flex items-center justify-center gap-2", children: [
|
|
4800
|
+
/* @__PURE__ */ i($e, { className: "size-4 animate-spin" }),
|
|
4753
4801
|
"Buscando..."
|
|
4754
4802
|
] }),
|
|
4755
|
-
/* @__PURE__ */ i(
|
|
4756
|
-
|
|
4803
|
+
/* @__PURE__ */ i(Le, { children: S?.map((C) => /* @__PURE__ */ h(
|
|
4804
|
+
ze,
|
|
4757
4805
|
{
|
|
4758
4806
|
value: C._id,
|
|
4759
4807
|
onSelect: (E) => {
|
|
@@ -4781,12 +4829,12 @@ const Or = G(
|
|
|
4781
4829
|
] });
|
|
4782
4830
|
}
|
|
4783
4831
|
);
|
|
4784
|
-
|
|
4785
|
-
const
|
|
4832
|
+
Dr.displayName = "SaleSelectInput";
|
|
4833
|
+
const Fr = G(
|
|
4786
4834
|
({ users: e, value: t, onValueChange: n, isLoading: a, disabled: r, placeholder: o = "Selecionar", id: s }, A) => {
|
|
4787
4835
|
const [u, l] = V(!1), d = e.find((c) => c.email === t);
|
|
4788
|
-
return /* @__PURE__ */
|
|
4789
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
4836
|
+
return /* @__PURE__ */ h(Se, { open: u, onOpenChange: l, children: [
|
|
4837
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
4790
4838
|
K,
|
|
4791
4839
|
{
|
|
4792
4840
|
ref: A,
|
|
@@ -4799,16 +4847,16 @@ const Dr = G(
|
|
|
4799
4847
|
className: "w-full justify-between font-normal",
|
|
4800
4848
|
children: [
|
|
4801
4849
|
a ? "Carregando..." : d?.name ?? o,
|
|
4802
|
-
/* @__PURE__ */ i(
|
|
4850
|
+
/* @__PURE__ */ i(He, { className: "opacity-50" })
|
|
4803
4851
|
]
|
|
4804
4852
|
}
|
|
4805
4853
|
) }),
|
|
4806
|
-
/* @__PURE__ */ i(Pe, { className: "z-[10000] w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */
|
|
4807
|
-
/* @__PURE__ */ i(
|
|
4808
|
-
/* @__PURE__ */
|
|
4854
|
+
/* @__PURE__ */ i(Pe, { className: "z-[10000] w-full min-w-[var(--radix-popper-anchor-width)] p-0", children: /* @__PURE__ */ h(je, { children: [
|
|
4855
|
+
/* @__PURE__ */ i(_e, { placeholder: "Buscar usuário...", className: "h-9" }),
|
|
4856
|
+
/* @__PURE__ */ h(qe, { onWheel: (c) => c.stopPropagation(), children: [
|
|
4809
4857
|
/* @__PURE__ */ i(X, { children: "Nenhum usuário encontrado." }),
|
|
4810
|
-
/* @__PURE__ */ i(
|
|
4811
|
-
|
|
4858
|
+
/* @__PURE__ */ i(Le, { children: e.map((c) => /* @__PURE__ */ h(
|
|
4859
|
+
ze,
|
|
4812
4860
|
{
|
|
4813
4861
|
value: c.name,
|
|
4814
4862
|
onSelect: () => {
|
|
@@ -4834,7 +4882,7 @@ const Dr = G(
|
|
|
4834
4882
|
] });
|
|
4835
4883
|
}
|
|
4836
4884
|
);
|
|
4837
|
-
|
|
4885
|
+
Fr.displayName = "ResponsibleSelectInput";
|
|
4838
4886
|
const Si = {
|
|
4839
4887
|
lessThanXSeconds: {
|
|
4840
4888
|
one: "menos de um segundo",
|
|
@@ -4939,14 +4987,14 @@ const Si = {
|
|
|
4939
4987
|
tomorrow: "'amanhã às' p",
|
|
4940
4988
|
nextWeek: "eeee 'às' p",
|
|
4941
4989
|
other: "P"
|
|
4942
|
-
},
|
|
4990
|
+
}, Ii = (e, t, n, a) => {
|
|
4943
4991
|
const r = Fi[e];
|
|
4944
4992
|
return typeof r == "function" ? r(t) : r;
|
|
4945
|
-
},
|
|
4993
|
+
}, Ri = {
|
|
4946
4994
|
narrow: ["AC", "DC"],
|
|
4947
4995
|
abbreviated: ["AC", "DC"],
|
|
4948
4996
|
wide: ["antes de cristo", "depois de cristo"]
|
|
4949
|
-
},
|
|
4997
|
+
}, Bi = {
|
|
4950
4998
|
narrow: ["1", "2", "3", "4"],
|
|
4951
4999
|
abbreviated: ["T1", "T2", "T3", "T4"],
|
|
4952
5000
|
wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
|
|
@@ -5068,24 +5116,24 @@ const Si = {
|
|
|
5068
5116
|
return t?.unit === "week" ? n + "ª" : n + "º";
|
|
5069
5117
|
}, qi = {
|
|
5070
5118
|
ordinalNumber: _i,
|
|
5071
|
-
era:
|
|
5072
|
-
values:
|
|
5119
|
+
era: Ye({
|
|
5120
|
+
values: Ri,
|
|
5073
5121
|
defaultWidth: "wide"
|
|
5074
5122
|
}),
|
|
5075
|
-
quarter:
|
|
5076
|
-
values:
|
|
5123
|
+
quarter: Ye({
|
|
5124
|
+
values: Bi,
|
|
5077
5125
|
defaultWidth: "wide",
|
|
5078
5126
|
argumentCallback: (e) => e - 1
|
|
5079
5127
|
}),
|
|
5080
|
-
month:
|
|
5128
|
+
month: Ye({
|
|
5081
5129
|
values: Ni,
|
|
5082
5130
|
defaultWidth: "wide"
|
|
5083
5131
|
}),
|
|
5084
|
-
day:
|
|
5132
|
+
day: Ye({
|
|
5085
5133
|
values: Mi,
|
|
5086
5134
|
defaultWidth: "wide"
|
|
5087
5135
|
}),
|
|
5088
|
-
dayPeriod:
|
|
5136
|
+
dayPeriod: Ye({
|
|
5089
5137
|
values: ki,
|
|
5090
5138
|
defaultWidth: "wide",
|
|
5091
5139
|
formattingValues: ji,
|
|
@@ -5161,37 +5209,37 @@ const Si = {
|
|
|
5161
5209
|
night: /noite/i
|
|
5162
5210
|
}
|
|
5163
5211
|
}, Ki = {
|
|
5164
|
-
ordinalNumber:
|
|
5212
|
+
ordinalNumber: pa({
|
|
5165
5213
|
matchPattern: Li,
|
|
5166
5214
|
parsePattern: zi,
|
|
5167
5215
|
valueCallback: (e) => parseInt(e, 10)
|
|
5168
5216
|
}),
|
|
5169
|
-
era:
|
|
5217
|
+
era: Ve({
|
|
5170
5218
|
matchPatterns: Hi,
|
|
5171
5219
|
defaultMatchWidth: "wide",
|
|
5172
5220
|
parsePatterns: Ui,
|
|
5173
5221
|
defaultParseWidth: "any"
|
|
5174
5222
|
}),
|
|
5175
|
-
quarter:
|
|
5223
|
+
quarter: Ve({
|
|
5176
5224
|
matchPatterns: Yi,
|
|
5177
5225
|
defaultMatchWidth: "wide",
|
|
5178
5226
|
parsePatterns: Vi,
|
|
5179
5227
|
defaultParseWidth: "any",
|
|
5180
5228
|
valueCallback: (e) => e + 1
|
|
5181
5229
|
}),
|
|
5182
|
-
month:
|
|
5230
|
+
month: Ve({
|
|
5183
5231
|
matchPatterns: Wi,
|
|
5184
5232
|
defaultMatchWidth: "wide",
|
|
5185
5233
|
parsePatterns: Qi,
|
|
5186
5234
|
defaultParseWidth: "any"
|
|
5187
5235
|
}),
|
|
5188
|
-
day:
|
|
5236
|
+
day: Ve({
|
|
5189
5237
|
matchPatterns: Gi,
|
|
5190
5238
|
defaultMatchWidth: "wide",
|
|
5191
5239
|
parsePatterns: Ji,
|
|
5192
5240
|
defaultParseWidth: "any"
|
|
5193
5241
|
}),
|
|
5194
|
-
dayPeriod:
|
|
5242
|
+
dayPeriod: Ve({
|
|
5195
5243
|
matchPatterns: Xi,
|
|
5196
5244
|
defaultMatchWidth: "any",
|
|
5197
5245
|
parsePatterns: Zi,
|
|
@@ -5201,7 +5249,7 @@ const Si = {
|
|
|
5201
5249
|
code: "pt-BR",
|
|
5202
5250
|
formatDistance: xi,
|
|
5203
5251
|
formatLong: Di,
|
|
5204
|
-
formatRelative:
|
|
5252
|
+
formatRelative: Ii,
|
|
5205
5253
|
localize: qi,
|
|
5206
5254
|
match: Ki,
|
|
5207
5255
|
options: {
|
|
@@ -5223,10 +5271,10 @@ const Si = {
|
|
|
5223
5271
|
const [d, c] = V(!1);
|
|
5224
5272
|
return r && !e && console.warn(
|
|
5225
5273
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5226
|
-
), /* @__PURE__ */
|
|
5227
|
-
e && /* @__PURE__ */ i(
|
|
5228
|
-
/* @__PURE__ */
|
|
5229
|
-
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */
|
|
5274
|
+
), /* @__PURE__ */ h(ae, { "data-invalid": s, children: [
|
|
5275
|
+
e && /* @__PURE__ */ i(ye, { asterisk: r, htmlFor: t, children: e }),
|
|
5276
|
+
/* @__PURE__ */ h(Se, { open: d, onOpenChange: c, children: [
|
|
5277
|
+
/* @__PURE__ */ i(xe, { asChild: !0, children: /* @__PURE__ */ h(
|
|
5230
5278
|
K,
|
|
5231
5279
|
{
|
|
5232
5280
|
variant: "outline",
|
|
@@ -5236,12 +5284,12 @@ const Si = {
|
|
|
5236
5284
|
ref: l,
|
|
5237
5285
|
children: [
|
|
5238
5286
|
n ? new Date(n).toLocaleDateString() : "dd/mm/aa",
|
|
5239
|
-
/* @__PURE__ */ i(
|
|
5287
|
+
/* @__PURE__ */ i(Xr, {})
|
|
5240
5288
|
]
|
|
5241
5289
|
}
|
|
5242
5290
|
) }),
|
|
5243
5291
|
/* @__PURE__ */ i(Pe, { className: "w-auto overflow-hidden p-0", align: "start", children: /* @__PURE__ */ i(
|
|
5244
|
-
|
|
5292
|
+
ga,
|
|
5245
5293
|
{
|
|
5246
5294
|
mode: "single",
|
|
5247
5295
|
selected: n ? new Date(n) : void 0,
|
|
@@ -5257,8 +5305,8 @@ const Si = {
|
|
|
5257
5305
|
}
|
|
5258
5306
|
) })
|
|
5259
5307
|
] }),
|
|
5260
|
-
a && /* @__PURE__ */ i(
|
|
5261
|
-
s && /* @__PURE__ */ i(
|
|
5308
|
+
a && /* @__PURE__ */ i(he, { children: a }),
|
|
5309
|
+
s && /* @__PURE__ */ i(fe, { errors: [A] })
|
|
5262
5310
|
] });
|
|
5263
5311
|
}
|
|
5264
5312
|
);
|
|
@@ -5267,10 +5315,10 @@ const tA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5267
5315
|
const { name: A } = o;
|
|
5268
5316
|
return n && !e && console.warn(
|
|
5269
5317
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5270
|
-
), /* @__PURE__ */
|
|
5271
|
-
e && /* @__PURE__ */ i(
|
|
5318
|
+
), /* @__PURE__ */ h(ae, { "data-invalid": a, children: [
|
|
5319
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: A, asterisk: n, children: e }),
|
|
5272
5320
|
/* @__PURE__ */ i(
|
|
5273
|
-
|
|
5321
|
+
lr,
|
|
5274
5322
|
{
|
|
5275
5323
|
id: A,
|
|
5276
5324
|
"aria-invalid": a,
|
|
@@ -5278,8 +5326,8 @@ const tA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5278
5326
|
ref: s
|
|
5279
5327
|
}
|
|
5280
5328
|
),
|
|
5281
|
-
t && /* @__PURE__ */ i(
|
|
5282
|
-
a && /* @__PURE__ */ i(
|
|
5329
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
5330
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
5283
5331
|
] });
|
|
5284
5332
|
});
|
|
5285
5333
|
tA.displayName = "FieldClientSelectInput";
|
|
@@ -5287,10 +5335,10 @@ const nA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5287
5335
|
const { name: A } = o;
|
|
5288
5336
|
return n && !e && console.warn(
|
|
5289
5337
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5290
|
-
), /* @__PURE__ */
|
|
5291
|
-
e && /* @__PURE__ */ i(
|
|
5338
|
+
), /* @__PURE__ */ h(ae, { "data-invalid": a, children: [
|
|
5339
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: A, asterisk: n, children: e }),
|
|
5292
5340
|
/* @__PURE__ */ i(
|
|
5293
|
-
|
|
5341
|
+
cr,
|
|
5294
5342
|
{
|
|
5295
5343
|
id: A,
|
|
5296
5344
|
"aria-invalid": a,
|
|
@@ -5298,8 +5346,8 @@ const nA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5298
5346
|
ref: s
|
|
5299
5347
|
}
|
|
5300
5348
|
),
|
|
5301
|
-
t && /* @__PURE__ */ i(
|
|
5302
|
-
a && /* @__PURE__ */ i(
|
|
5349
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
5350
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
5303
5351
|
] });
|
|
5304
5352
|
});
|
|
5305
5353
|
nA.displayName = "FieldProfileSelectInput";
|
|
@@ -5307,10 +5355,10 @@ const rA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5307
5355
|
const { name: A } = o;
|
|
5308
5356
|
return n && !e && console.warn(
|
|
5309
5357
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5310
|
-
), /* @__PURE__ */
|
|
5311
|
-
e && /* @__PURE__ */ i(
|
|
5358
|
+
), /* @__PURE__ */ h(ae, { "data-invalid": a, children: [
|
|
5359
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: A, asterisk: n, children: e }),
|
|
5312
5360
|
/* @__PURE__ */ i(
|
|
5313
|
-
|
|
5361
|
+
Dr,
|
|
5314
5362
|
{
|
|
5315
5363
|
id: A,
|
|
5316
5364
|
"aria-invalid": a,
|
|
@@ -5318,8 +5366,8 @@ const rA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5318
5366
|
...o
|
|
5319
5367
|
}
|
|
5320
5368
|
),
|
|
5321
|
-
t && /* @__PURE__ */ i(
|
|
5322
|
-
a && /* @__PURE__ */ i(
|
|
5369
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
5370
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
5323
5371
|
] });
|
|
5324
5372
|
});
|
|
5325
5373
|
rA.displayName = "FieldSaleSelectInput";
|
|
@@ -5338,19 +5386,19 @@ const aA = G(
|
|
|
5338
5386
|
...d
|
|
5339
5387
|
}, c) => (r && !e && console.warn(
|
|
5340
5388
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5341
|
-
), /* @__PURE__ */
|
|
5342
|
-
e && /* @__PURE__ */ i(
|
|
5343
|
-
/* @__PURE__ */
|
|
5344
|
-
|
|
5389
|
+
), /* @__PURE__ */ h(ae, { orientation: "vertical", "data-invalid": u, children: [
|
|
5390
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: t, asterisk: r, children: e }),
|
|
5391
|
+
/* @__PURE__ */ h(
|
|
5392
|
+
Zr,
|
|
5345
5393
|
{
|
|
5346
5394
|
value: n,
|
|
5347
5395
|
name: t,
|
|
5348
5396
|
onValueChange: o,
|
|
5349
5397
|
...d,
|
|
5350
5398
|
children: [
|
|
5351
|
-
/* @__PURE__ */ i(
|
|
5352
|
-
/* @__PURE__ */ i(
|
|
5353
|
-
|
|
5399
|
+
/* @__PURE__ */ i(Kr, { id: t, "aria-invalid": u, ref: c, children: /* @__PURE__ */ i($r, { placeholder: "Selecionar" }) }),
|
|
5400
|
+
/* @__PURE__ */ i(ea, { children: Object.entries(s).map(([f, p]) => /* @__PURE__ */ i(
|
|
5401
|
+
ta,
|
|
5354
5402
|
{
|
|
5355
5403
|
value: f,
|
|
5356
5404
|
disabled: (A ?? []).includes(f),
|
|
@@ -5361,8 +5409,8 @@ const aA = G(
|
|
|
5361
5409
|
]
|
|
5362
5410
|
}
|
|
5363
5411
|
),
|
|
5364
|
-
a && /* @__PURE__ */ i(
|
|
5365
|
-
u && /* @__PURE__ */ i(
|
|
5412
|
+
a && /* @__PURE__ */ i(he, { children: a }),
|
|
5413
|
+
u && /* @__PURE__ */ i(fe, { errors: [l] })
|
|
5366
5414
|
] }))
|
|
5367
5415
|
);
|
|
5368
5416
|
aA.displayName = "FieldSelect";
|
|
@@ -5371,9 +5419,9 @@ const oA = G(
|
|
|
5371
5419
|
const { name: l } = A;
|
|
5372
5420
|
return n && !e && console.warn(
|
|
5373
5421
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5374
|
-
), /* @__PURE__ */
|
|
5422
|
+
), /* @__PURE__ */ h(ae, { orientation: "horizontal", "data-invalid": a, children: [
|
|
5375
5423
|
/* @__PURE__ */ i(
|
|
5376
|
-
|
|
5424
|
+
na,
|
|
5377
5425
|
{
|
|
5378
5426
|
id: l,
|
|
5379
5427
|
name: l,
|
|
@@ -5384,10 +5432,10 @@ const oA = G(
|
|
|
5384
5432
|
ref: u
|
|
5385
5433
|
}
|
|
5386
5434
|
),
|
|
5387
|
-
/* @__PURE__ */
|
|
5388
|
-
e && /* @__PURE__ */ i(
|
|
5389
|
-
t && /* @__PURE__ */ i(
|
|
5390
|
-
a && /* @__PURE__ */ i(
|
|
5435
|
+
/* @__PURE__ */ h(Kn, { children: [
|
|
5436
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: l, asterisk: n, children: e }),
|
|
5437
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
5438
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
5391
5439
|
] })
|
|
5392
5440
|
] });
|
|
5393
5441
|
}
|
|
@@ -5397,11 +5445,11 @@ const sA = G(({ label: e, description: t, asterisk: n, invalid: a, error: r, ...
|
|
|
5397
5445
|
const { name: A } = o;
|
|
5398
5446
|
return n && !e && console.warn(
|
|
5399
5447
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5400
|
-
), /* @__PURE__ */
|
|
5401
|
-
e && /* @__PURE__ */ i(
|
|
5402
|
-
/* @__PURE__ */ i(
|
|
5403
|
-
t && /* @__PURE__ */ i(
|
|
5404
|
-
a && /* @__PURE__ */ i(
|
|
5448
|
+
), /* @__PURE__ */ h(ae, { "data-invalid": a, children: [
|
|
5449
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: A, asterisk: n, children: e }),
|
|
5450
|
+
/* @__PURE__ */ i(ra, { id: A, "aria-invalid": a, ...o, ref: s }),
|
|
5451
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
5452
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
5405
5453
|
] });
|
|
5406
5454
|
});
|
|
5407
5455
|
sA.displayName = "FieldTextarea";
|
|
@@ -5410,10 +5458,10 @@ const iA = G(
|
|
|
5410
5458
|
const { name: l } = A;
|
|
5411
5459
|
return n && !e && console.warn(
|
|
5412
5460
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5413
|
-
), /* @__PURE__ */ i(ae, { orientation: "horizontal", "data-invalid": a, children: /* @__PURE__ */
|
|
5414
|
-
/* @__PURE__ */
|
|
5461
|
+
), /* @__PURE__ */ i(ae, { orientation: "horizontal", "data-invalid": a, children: /* @__PURE__ */ h(Kn, { children: [
|
|
5462
|
+
/* @__PURE__ */ h(ae, { orientation: "horizontal", children: [
|
|
5415
5463
|
/* @__PURE__ */ i(
|
|
5416
|
-
|
|
5464
|
+
Zn,
|
|
5417
5465
|
{
|
|
5418
5466
|
id: l,
|
|
5419
5467
|
name: l,
|
|
@@ -5424,10 +5472,10 @@ const iA = G(
|
|
|
5424
5472
|
ref: u
|
|
5425
5473
|
}
|
|
5426
5474
|
),
|
|
5427
|
-
e && /* @__PURE__ */ i(
|
|
5475
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: l, asterisk: n, children: e })
|
|
5428
5476
|
] }),
|
|
5429
|
-
t && /* @__PURE__ */ i(
|
|
5430
|
-
a && /* @__PURE__ */ i(
|
|
5477
|
+
t && /* @__PURE__ */ i(he, { children: t }),
|
|
5478
|
+
a && /* @__PURE__ */ i(fe, { errors: [r] })
|
|
5431
5479
|
] }) });
|
|
5432
5480
|
}
|
|
5433
5481
|
);
|
|
@@ -5435,11 +5483,11 @@ iA.displayName = "FieldCheckbox";
|
|
|
5435
5483
|
const AA = G(
|
|
5436
5484
|
({ label: e, name: t, description: n, asterisk: a, invalid: r, error: o, ...s }, A) => (a && !e && console.warn(
|
|
5437
5485
|
"A prop `asterisk` deve ser utilizada junto com a prop `label`."
|
|
5438
|
-
), /* @__PURE__ */
|
|
5439
|
-
e && /* @__PURE__ */ i(
|
|
5440
|
-
/* @__PURE__ */ i(
|
|
5441
|
-
n && /* @__PURE__ */ i(
|
|
5442
|
-
r && /* @__PURE__ */ i(
|
|
5486
|
+
), /* @__PURE__ */ h(ae, { orientation: "vertical", "data-invalid": r, children: [
|
|
5487
|
+
e && /* @__PURE__ */ i(ye, { htmlFor: t, asterisk: a, children: e }),
|
|
5488
|
+
/* @__PURE__ */ i(Fr, { id: t, ref: A, ...s }),
|
|
5489
|
+
n && /* @__PURE__ */ i(he, { children: n }),
|
|
5490
|
+
r && /* @__PURE__ */ i(fe, { errors: [o] })
|
|
5443
5491
|
] }))
|
|
5444
5492
|
);
|
|
5445
5493
|
AA.displayName = "FieldResponsibleSelectInput";
|
|
@@ -5448,7 +5496,7 @@ function uA({
|
|
|
5448
5496
|
color: t = "currentColor",
|
|
5449
5497
|
...n
|
|
5450
5498
|
}) {
|
|
5451
|
-
return /* @__PURE__ */
|
|
5499
|
+
return /* @__PURE__ */ h(
|
|
5452
5500
|
"svg",
|
|
5453
5501
|
{
|
|
5454
5502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5475,7 +5523,7 @@ function lA({
|
|
|
5475
5523
|
color: t = "currentColor",
|
|
5476
5524
|
...n
|
|
5477
5525
|
}) {
|
|
5478
|
-
return /* @__PURE__ */
|
|
5526
|
+
return /* @__PURE__ */ h(
|
|
5479
5527
|
"svg",
|
|
5480
5528
|
{
|
|
5481
5529
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5505,7 +5553,7 @@ function cA({
|
|
|
5505
5553
|
color: t = "currentColor",
|
|
5506
5554
|
...n
|
|
5507
5555
|
}) {
|
|
5508
|
-
return /* @__PURE__ */
|
|
5556
|
+
return /* @__PURE__ */ h(
|
|
5509
5557
|
"svg",
|
|
5510
5558
|
{
|
|
5511
5559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5533,7 +5581,7 @@ function dA({
|
|
|
5533
5581
|
color: t = "transparent",
|
|
5534
5582
|
...n
|
|
5535
5583
|
}) {
|
|
5536
|
-
return /* @__PURE__ */
|
|
5584
|
+
return /* @__PURE__ */ h(
|
|
5537
5585
|
"svg",
|
|
5538
5586
|
{
|
|
5539
5587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5559,7 +5607,7 @@ function fA({
|
|
|
5559
5607
|
color: t = "currentColor",
|
|
5560
5608
|
...n
|
|
5561
5609
|
}) {
|
|
5562
|
-
return /* @__PURE__ */
|
|
5610
|
+
return /* @__PURE__ */ h(
|
|
5563
5611
|
"svg",
|
|
5564
5612
|
{
|
|
5565
5613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5586,7 +5634,7 @@ function pA({
|
|
|
5586
5634
|
color: t = "currentColor",
|
|
5587
5635
|
...n
|
|
5588
5636
|
}) {
|
|
5589
|
-
return /* @__PURE__ */
|
|
5637
|
+
return /* @__PURE__ */ h(
|
|
5590
5638
|
"svg",
|
|
5591
5639
|
{
|
|
5592
5640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5608,56 +5656,58 @@ function pA({
|
|
|
5608
5656
|
);
|
|
5609
5657
|
}
|
|
5610
5658
|
export {
|
|
5611
|
-
|
|
5659
|
+
aA as $,
|
|
5612
5660
|
NA as A,
|
|
5613
5661
|
za as B,
|
|
5614
5662
|
qa as C,
|
|
5615
5663
|
jA as D,
|
|
5616
5664
|
Oe as E,
|
|
5617
5665
|
FA as F,
|
|
5618
|
-
|
|
5619
|
-
|
|
5666
|
+
ye as G,
|
|
5667
|
+
Xo as H,
|
|
5620
5668
|
Ua as I,
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5669
|
+
$o as J,
|
|
5670
|
+
lr as K,
|
|
5671
|
+
as as L,
|
|
5672
|
+
ZA as M,
|
|
5625
5673
|
DA as N,
|
|
5626
|
-
|
|
5674
|
+
cr as O,
|
|
5627
5675
|
Ha as P,
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5676
|
+
Dr as Q,
|
|
5677
|
+
BA as R,
|
|
5678
|
+
tr as S,
|
|
5631
5679
|
kA as T,
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5680
|
+
Fr as U,
|
|
5681
|
+
RA as V,
|
|
5682
|
+
eA as W,
|
|
5683
|
+
tA as X,
|
|
5684
|
+
ar as Y,
|
|
5685
|
+
nA as Z,
|
|
5686
|
+
rA as _,
|
|
5687
|
+
IA as a,
|
|
5688
|
+
oA as a0,
|
|
5689
|
+
sA as a1,
|
|
5690
|
+
iA as a2,
|
|
5691
|
+
AA as a3,
|
|
5692
|
+
uA as a4,
|
|
5693
|
+
lA as a5,
|
|
5694
|
+
cA as a6,
|
|
5695
|
+
dA as a7,
|
|
5696
|
+
fA as a8,
|
|
5697
|
+
pA as a9,
|
|
5698
|
+
GA as aa,
|
|
5699
|
+
JA as ab,
|
|
5700
|
+
XA as ac,
|
|
5701
|
+
QA as ad,
|
|
5702
|
+
Xe as ae,
|
|
5703
|
+
qA as af,
|
|
5704
|
+
LA as ag,
|
|
5705
|
+
zA as ah,
|
|
5706
|
+
HA as ai,
|
|
5707
|
+
UA as aj,
|
|
5708
|
+
YA as ak,
|
|
5709
|
+
VA as al,
|
|
5710
|
+
WA as am,
|
|
5661
5711
|
La as b,
|
|
5662
5712
|
MA as c,
|
|
5663
5713
|
Ya as d,
|
|
@@ -5673,14 +5723,14 @@ export {
|
|
|
5673
5723
|
Ka as n,
|
|
5674
5724
|
$a as o,
|
|
5675
5725
|
eo as p,
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5726
|
+
ve as q,
|
|
5727
|
+
Or as r,
|
|
5728
|
+
ho as s,
|
|
5729
|
+
Lo as t,
|
|
5730
|
+
zo as u,
|
|
5681
5731
|
to as v,
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5732
|
+
Ho as w,
|
|
5733
|
+
Uo as x,
|
|
5734
|
+
Yo as y,
|
|
5735
|
+
nr as z
|
|
5686
5736
|
};
|