@selectwin/kit 0.1.117 → 0.1.118
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/SelectInsight.d.ts +119 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +641 -304
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8331,7 +8331,344 @@ var Mo = "allow-scripts allow-same-origin allow-forms", No = 390, Po = 1280, Fo
|
|
|
8331
8331
|
})
|
|
8332
8332
|
] })]
|
|
8333
8333
|
});
|
|
8334
|
-
}), zo =
|
|
8334
|
+
}), zo = {
|
|
8335
|
+
"pt-BR": {
|
|
8336
|
+
severity: {
|
|
8337
|
+
info: "Informativo",
|
|
8338
|
+
opportunity: "Oportunidade",
|
|
8339
|
+
warning: "Atenção",
|
|
8340
|
+
critical: "Crítico"
|
|
8341
|
+
},
|
|
8342
|
+
kind: {
|
|
8343
|
+
insight: "Descoberta",
|
|
8344
|
+
recommendation: "Recomendação",
|
|
8345
|
+
alert: "Alerta",
|
|
8346
|
+
dataTip: "Dica de dado"
|
|
8347
|
+
},
|
|
8348
|
+
domain: {
|
|
8349
|
+
sales: "Vendas",
|
|
8350
|
+
acquisition: "Aquisição",
|
|
8351
|
+
products: "Produtos",
|
|
8352
|
+
coupons: "Cupons",
|
|
8353
|
+
customers: "Clientes",
|
|
8354
|
+
checkout: "Checkout",
|
|
8355
|
+
payments: "Pagamentos",
|
|
8356
|
+
data: "Dados"
|
|
8357
|
+
},
|
|
8358
|
+
confidence: {
|
|
8359
|
+
high: "Confiança alta",
|
|
8360
|
+
medium: "Confiança média",
|
|
8361
|
+
low: "Confiança baixa"
|
|
8362
|
+
},
|
|
8363
|
+
sample: (e) => `amostra de ${e}`,
|
|
8364
|
+
impact: (e) => `${e} em jogo`,
|
|
8365
|
+
impactAbout: (e) => `cerca de ${e} em jogo`,
|
|
8366
|
+
rangeJoin: " a ",
|
|
8367
|
+
methodology: "Como calculamos",
|
|
8368
|
+
actions: "O que fazer",
|
|
8369
|
+
locked: "Conteúdo de um plano superior"
|
|
8370
|
+
},
|
|
8371
|
+
en: {
|
|
8372
|
+
severity: {
|
|
8373
|
+
info: "Info",
|
|
8374
|
+
opportunity: "Opportunity",
|
|
8375
|
+
warning: "Warning",
|
|
8376
|
+
critical: "Critical"
|
|
8377
|
+
},
|
|
8378
|
+
kind: {
|
|
8379
|
+
insight: "Insight",
|
|
8380
|
+
recommendation: "Recommendation",
|
|
8381
|
+
alert: "Alert",
|
|
8382
|
+
dataTip: "Data tip"
|
|
8383
|
+
},
|
|
8384
|
+
domain: {
|
|
8385
|
+
sales: "Sales",
|
|
8386
|
+
acquisition: "Acquisition",
|
|
8387
|
+
products: "Products",
|
|
8388
|
+
coupons: "Coupons",
|
|
8389
|
+
customers: "Customers",
|
|
8390
|
+
checkout: "Checkout",
|
|
8391
|
+
payments: "Payments",
|
|
8392
|
+
data: "Data"
|
|
8393
|
+
},
|
|
8394
|
+
confidence: {
|
|
8395
|
+
high: "High confidence",
|
|
8396
|
+
medium: "Medium confidence",
|
|
8397
|
+
low: "Low confidence"
|
|
8398
|
+
},
|
|
8399
|
+
sample: (e) => `sample of ${e}`,
|
|
8400
|
+
impact: (e) => `${e} at stake`,
|
|
8401
|
+
impactAbout: (e) => `about ${e} at stake`,
|
|
8402
|
+
rangeJoin: " to ",
|
|
8403
|
+
methodology: "How we calculate",
|
|
8404
|
+
actions: "What to do",
|
|
8405
|
+
locked: "Available on a higher plan"
|
|
8406
|
+
},
|
|
8407
|
+
es: {
|
|
8408
|
+
severity: {
|
|
8409
|
+
info: "Informativo",
|
|
8410
|
+
opportunity: "Oportunidad",
|
|
8411
|
+
warning: "Atención",
|
|
8412
|
+
critical: "Crítico"
|
|
8413
|
+
},
|
|
8414
|
+
kind: {
|
|
8415
|
+
insight: "Hallazgo",
|
|
8416
|
+
recommendation: "Recomendación",
|
|
8417
|
+
alert: "Alerta",
|
|
8418
|
+
dataTip: "Consejo de datos"
|
|
8419
|
+
},
|
|
8420
|
+
domain: {
|
|
8421
|
+
sales: "Ventas",
|
|
8422
|
+
acquisition: "Adquisición",
|
|
8423
|
+
products: "Productos",
|
|
8424
|
+
coupons: "Cupones",
|
|
8425
|
+
customers: "Clientes",
|
|
8426
|
+
checkout: "Checkout",
|
|
8427
|
+
payments: "Pagos",
|
|
8428
|
+
data: "Datos"
|
|
8429
|
+
},
|
|
8430
|
+
confidence: {
|
|
8431
|
+
high: "Confianza alta",
|
|
8432
|
+
medium: "Confianza media",
|
|
8433
|
+
low: "Confianza baja"
|
|
8434
|
+
},
|
|
8435
|
+
sample: (e) => `muestra de ${e}`,
|
|
8436
|
+
impact: (e) => `${e} en juego`,
|
|
8437
|
+
impactAbout: (e) => `cerca de ${e} en juego`,
|
|
8438
|
+
rangeJoin: " a ",
|
|
8439
|
+
methodology: "Cómo lo calculamos",
|
|
8440
|
+
actions: "Qué hacer",
|
|
8441
|
+
locked: "Disponible en un plan superior"
|
|
8442
|
+
}
|
|
8443
|
+
};
|
|
8444
|
+
function Bo(e) {
|
|
8445
|
+
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
8446
|
+
}
|
|
8447
|
+
var Vo = {
|
|
8448
|
+
info: "info",
|
|
8449
|
+
opportunity: "success",
|
|
8450
|
+
warning: "warning",
|
|
8451
|
+
critical: "critical"
|
|
8452
|
+
};
|
|
8453
|
+
function Ho(e, t = "pt-BR", n = zo[Bo(t)]) {
|
|
8454
|
+
let r = new Intl.NumberFormat(Bo(t), {
|
|
8455
|
+
style: "currency",
|
|
8456
|
+
currency: e.currency,
|
|
8457
|
+
maximumFractionDigits: 0
|
|
8458
|
+
}), i = r.format(e.minCents / 100), a = r.format(e.maxCents / 100);
|
|
8459
|
+
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
8460
|
+
}
|
|
8461
|
+
function Uo(e, t, n) {
|
|
8462
|
+
let r = new Date(e.start), i = new Date(e.end);
|
|
8463
|
+
if (Number.isNaN(r.getTime()) || Number.isNaN(i.getTime())) return null;
|
|
8464
|
+
let a = new Intl.DateTimeFormat(t, {
|
|
8465
|
+
day: "2-digit",
|
|
8466
|
+
month: "2-digit",
|
|
8467
|
+
year: "numeric",
|
|
8468
|
+
timeZone: n
|
|
8469
|
+
});
|
|
8470
|
+
return `${a.format(r)} – ${a.format(i)}`;
|
|
8471
|
+
}
|
|
8472
|
+
var Wo = /* @__PURE__ */ new Set([
|
|
8473
|
+
"metric",
|
|
8474
|
+
"comparison",
|
|
8475
|
+
"table",
|
|
8476
|
+
"items",
|
|
8477
|
+
"text"
|
|
8478
|
+
]);
|
|
8479
|
+
function Go(e) {
|
|
8480
|
+
return Wo.has(e.type);
|
|
8481
|
+
}
|
|
8482
|
+
function Ko(e) {
|
|
8483
|
+
return e.type === "table" || e.type === "items" || e.type === "text";
|
|
8484
|
+
}
|
|
8485
|
+
function qo({ children: e }) {
|
|
8486
|
+
return /* @__PURE__ */ m(Qn, {
|
|
8487
|
+
background: "surface-secondary",
|
|
8488
|
+
borderRadius: "lg",
|
|
8489
|
+
padding: "300",
|
|
8490
|
+
children: e
|
|
8491
|
+
});
|
|
8492
|
+
}
|
|
8493
|
+
function Jo({ block: e, renderItem: t }) {
|
|
8494
|
+
switch (e.type) {
|
|
8495
|
+
case "metric": return /* @__PURE__ */ m(qo, { children: /* @__PURE__ */ m(Ro, {
|
|
8496
|
+
bare: !0,
|
|
8497
|
+
label: e.label,
|
|
8498
|
+
value: e.value.display,
|
|
8499
|
+
caption: e.hint ?? void 0
|
|
8500
|
+
}) });
|
|
8501
|
+
case "comparison": return /* @__PURE__ */ m(qo, { children: /* @__PURE__ */ m(Ro, {
|
|
8502
|
+
bare: !0,
|
|
8503
|
+
label: e.label,
|
|
8504
|
+
value: e.value.display,
|
|
8505
|
+
caption: /* @__PURE__ */ h(p, { children: [
|
|
8506
|
+
e.baselineLabel,
|
|
8507
|
+
": ",
|
|
8508
|
+
/* @__PURE__ */ m("strong", { children: e.baseline.display }),
|
|
8509
|
+
e.hint ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("br", {}), e.hint] }) : null
|
|
8510
|
+
] })
|
|
8511
|
+
}) });
|
|
8512
|
+
case "table": return /* @__PURE__ */ m(Gi, {
|
|
8513
|
+
title: e.title,
|
|
8514
|
+
columns: e.columns.map((e) => ({ label: e.label })),
|
|
8515
|
+
children: e.rows.map((t, n) => /* @__PURE__ */ m(Ji, { children: e.columns.map((e) => {
|
|
8516
|
+
var n;
|
|
8517
|
+
return /* @__PURE__ */ m(Yi, { children: ((n = t[e.key]) == null ? void 0 : n.display) ?? "—" }, e.key);
|
|
8518
|
+
}) }, n))
|
|
8519
|
+
});
|
|
8520
|
+
case "items": return /* @__PURE__ */ h(qn, {
|
|
8521
|
+
gap: "200",
|
|
8522
|
+
children: [/* @__PURE__ */ m($n, {
|
|
8523
|
+
variant: "headingSm",
|
|
8524
|
+
as: "h4",
|
|
8525
|
+
children: e.title
|
|
8526
|
+
}), /* @__PURE__ */ m(qn, {
|
|
8527
|
+
gap: "100",
|
|
8528
|
+
as: "ul",
|
|
8529
|
+
className: "select-insight__items",
|
|
8530
|
+
children: e.items.map((e, n) => /* @__PURE__ */ h(Jn, {
|
|
8531
|
+
as: "li",
|
|
8532
|
+
gap: "300",
|
|
8533
|
+
align: "space-between",
|
|
8534
|
+
wrap: !1,
|
|
8535
|
+
children: [/* @__PURE__ */ m($n, {
|
|
8536
|
+
variant: "bodySm",
|
|
8537
|
+
truncate: !0,
|
|
8538
|
+
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
8539
|
+
}), e.value ? /* @__PURE__ */ m($n, {
|
|
8540
|
+
variant: "bodySm",
|
|
8541
|
+
fontWeight: "medium",
|
|
8542
|
+
numeric: !0,
|
|
8543
|
+
children: e.value.display
|
|
8544
|
+
}) : null]
|
|
8545
|
+
}, `${e.kind}:${e.id ?? n}`))
|
|
8546
|
+
})]
|
|
8547
|
+
});
|
|
8548
|
+
case "text": return /* @__PURE__ */ m($n, {
|
|
8549
|
+
variant: "bodySm",
|
|
8550
|
+
children: e.text
|
|
8551
|
+
});
|
|
8552
|
+
}
|
|
8553
|
+
}
|
|
8554
|
+
function Yo({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, badges: o, footer: s, renderItem: c, renderAction: l, methodologyOpen: u = !1, className: d }) {
|
|
8555
|
+
let f = Bo(t), g = {
|
|
8556
|
+
...zo[f],
|
|
8557
|
+
...n
|
|
8558
|
+
}, _ = Vo[e.severity] ?? "info", v = e.period ? Uo(e.period, f, r) : null, y = [
|
|
8559
|
+
e.confidence ? g.confidence[e.confidence] ?? e.confidence : null,
|
|
8560
|
+
e.sampleSize == null ? null : g.sample(e.sampleSize.toLocaleString(f)),
|
|
8561
|
+
v
|
|
8562
|
+
].filter((e) => !!e), b = (e.blocks ?? []).filter(Go), x = e.actions ?? [];
|
|
8563
|
+
return /* @__PURE__ */ m(Qn, {
|
|
8564
|
+
as: "article",
|
|
8565
|
+
background: "surface",
|
|
8566
|
+
border: !0,
|
|
8567
|
+
borderRadius: "card",
|
|
8568
|
+
padding: "500",
|
|
8569
|
+
className: `select-insight${i ? " select-insight--locked" : ""}${d ? " " + d : ""}`,
|
|
8570
|
+
children: /* @__PURE__ */ h(qn, {
|
|
8571
|
+
gap: "400",
|
|
8572
|
+
children: [
|
|
8573
|
+
/* @__PURE__ */ h(qn, {
|
|
8574
|
+
gap: "200",
|
|
8575
|
+
children: [
|
|
8576
|
+
/* @__PURE__ */ h(Jn, {
|
|
8577
|
+
gap: "100",
|
|
8578
|
+
children: [
|
|
8579
|
+
/* @__PURE__ */ m(zn, {
|
|
8580
|
+
tone: _,
|
|
8581
|
+
size: "sm",
|
|
8582
|
+
children: g.severity[e.severity] ?? e.severity
|
|
8583
|
+
}),
|
|
8584
|
+
e.kind ? /* @__PURE__ */ m(zn, {
|
|
8585
|
+
tone: "neutral",
|
|
8586
|
+
size: "sm",
|
|
8587
|
+
children: g.kind[e.kind] ?? e.kind
|
|
8588
|
+
}) : null,
|
|
8589
|
+
e.domain ? /* @__PURE__ */ m(zn, {
|
|
8590
|
+
tone: "outline",
|
|
8591
|
+
size: "sm",
|
|
8592
|
+
children: g.domain[e.domain] ?? e.domain
|
|
8593
|
+
}) : null,
|
|
8594
|
+
i ? /* @__PURE__ */ m(zn, {
|
|
8595
|
+
tone: "pro",
|
|
8596
|
+
size: "sm",
|
|
8597
|
+
children: g.locked
|
|
8598
|
+
}) : null,
|
|
8599
|
+
o
|
|
8600
|
+
]
|
|
8601
|
+
}),
|
|
8602
|
+
/* @__PURE__ */ m($n, {
|
|
8603
|
+
as: "h3",
|
|
8604
|
+
variant: "headingMd",
|
|
8605
|
+
children: e.title
|
|
8606
|
+
}),
|
|
8607
|
+
/* @__PURE__ */ m($n, {
|
|
8608
|
+
variant: "bodySm",
|
|
8609
|
+
tone: "subdued",
|
|
8610
|
+
className: "select-insight__summary",
|
|
8611
|
+
children: e.summary
|
|
8612
|
+
}),
|
|
8613
|
+
e.impact ? /* @__PURE__ */ m($n, {
|
|
8614
|
+
variant: "headingSm",
|
|
8615
|
+
className: "select-insight__impact",
|
|
8616
|
+
children: Ho(e.impact, f, g)
|
|
8617
|
+
}) : null,
|
|
8618
|
+
y.length && !i ? /* @__PURE__ */ m($n, {
|
|
8619
|
+
variant: "bodyXs",
|
|
8620
|
+
tone: "subdued",
|
|
8621
|
+
children: y.join(" · ")
|
|
8622
|
+
}) : null
|
|
8623
|
+
]
|
|
8624
|
+
}),
|
|
8625
|
+
i ? a ?? null : /* @__PURE__ */ h(p, { children: [
|
|
8626
|
+
b.length ? /* @__PURE__ */ m(Yn, {
|
|
8627
|
+
columns: "repeat(auto-fill, minmax(12rem, 1fr))",
|
|
8628
|
+
gap: "300",
|
|
8629
|
+
children: b.map((e, t) => /* @__PURE__ */ m("div", {
|
|
8630
|
+
className: Ko(e) ? "select-insight__wide" : void 0,
|
|
8631
|
+
children: /* @__PURE__ */ m(Jo, {
|
|
8632
|
+
block: e,
|
|
8633
|
+
renderItem: c
|
|
8634
|
+
})
|
|
8635
|
+
}, t))
|
|
8636
|
+
}) : null,
|
|
8637
|
+
x.length ? /* @__PURE__ */ h(qn, {
|
|
8638
|
+
gap: "150",
|
|
8639
|
+
children: [/* @__PURE__ */ m($n, {
|
|
8640
|
+
variant: "headingSm",
|
|
8641
|
+
as: "h4",
|
|
8642
|
+
children: g.actions
|
|
8643
|
+
}), /* @__PURE__ */ m(qn, {
|
|
8644
|
+
gap: "100",
|
|
8645
|
+
as: "ul",
|
|
8646
|
+
className: "select-insight__actions",
|
|
8647
|
+
children: x.map((e, t) => /* @__PURE__ */ m("li", { children: (l == null ? void 0 : l(e)) ?? /* @__PURE__ */ m($n, {
|
|
8648
|
+
variant: "bodySm",
|
|
8649
|
+
children: e.label
|
|
8650
|
+
}) }, `${e.target ?? "text"}:${t}`))
|
|
8651
|
+
})]
|
|
8652
|
+
}) : null,
|
|
8653
|
+
e.methodology ? /* @__PURE__ */ m(sa, {
|
|
8654
|
+
plain: !0,
|
|
8655
|
+
title: g.methodology,
|
|
8656
|
+
defaultOpen: u,
|
|
8657
|
+
children: /* @__PURE__ */ m($n, {
|
|
8658
|
+
variant: "bodySm",
|
|
8659
|
+
tone: "subdued",
|
|
8660
|
+
children: e.methodology
|
|
8661
|
+
})
|
|
8662
|
+
}) : null
|
|
8663
|
+
] }),
|
|
8664
|
+
s
|
|
8665
|
+
]
|
|
8666
|
+
})
|
|
8667
|
+
});
|
|
8668
|
+
}
|
|
8669
|
+
//#endregion
|
|
8670
|
+
//#region src/SelectChartCard.tsx
|
|
8671
|
+
var Xo = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1, hideValues: a = !1, height: o = 260, flush: s = !1, insight: c, insightTone: l = "neutral", children: u, className: d, ...f }, p) {
|
|
8335
8672
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
8336
8673
|
return /* @__PURE__ */ h("div", {
|
|
8337
8674
|
ref: p,
|
|
@@ -8374,7 +8711,7 @@ var Mo = "allow-scripts allow-same-origin allow-forms", No = 390, Po = 1280, Fo
|
|
|
8374
8711
|
});
|
|
8375
8712
|
//#endregion
|
|
8376
8713
|
//#region src/chartUtils.ts
|
|
8377
|
-
function
|
|
8714
|
+
function Zo() {
|
|
8378
8715
|
let [e, t] = d(1);
|
|
8379
8716
|
return c(() => {
|
|
8380
8717
|
let e = () => {
|
|
@@ -8385,7 +8722,7 @@ function Bo() {
|
|
|
8385
8722
|
}, []), e;
|
|
8386
8723
|
}
|
|
8387
8724
|
function Y(e) {
|
|
8388
|
-
let t = u(null), [n, r] = d(0), i =
|
|
8725
|
+
let t = u(null), [n, r] = d(0), i = Zo();
|
|
8389
8726
|
return c(() => {
|
|
8390
8727
|
let e = t.current;
|
|
8391
8728
|
if (!e) return;
|
|
@@ -8402,7 +8739,7 @@ function Y(e) {
|
|
|
8402
8739
|
height: Math.round(e * i)
|
|
8403
8740
|
};
|
|
8404
8741
|
}
|
|
8405
|
-
function
|
|
8742
|
+
function Qo(e, t) {
|
|
8406
8743
|
let [n, r] = d(t);
|
|
8407
8744
|
return c(() => {
|
|
8408
8745
|
let t = e.current;
|
|
@@ -8416,15 +8753,15 @@ function Vo(e, t) {
|
|
|
8416
8753
|
return i.observe(t), () => i.disconnect();
|
|
8417
8754
|
}, [e]), n;
|
|
8418
8755
|
}
|
|
8419
|
-
function
|
|
8756
|
+
function $o(e) {
|
|
8420
8757
|
if (e <= 0) return 1;
|
|
8421
8758
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
8422
8759
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
8423
8760
|
}
|
|
8424
|
-
function
|
|
8761
|
+
function es(e, t = 4) {
|
|
8425
8762
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
8426
8763
|
}
|
|
8427
|
-
function
|
|
8764
|
+
function ts(e, t = 5) {
|
|
8428
8765
|
if (!(e > 0)) return {
|
|
8429
8766
|
max: 1,
|
|
8430
8767
|
values: [0, 1]
|
|
@@ -8436,10 +8773,10 @@ function Wo(e, t = 5) {
|
|
|
8436
8773
|
values: s
|
|
8437
8774
|
};
|
|
8438
8775
|
}
|
|
8439
|
-
function
|
|
8776
|
+
function ns(e) {
|
|
8440
8777
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
8441
8778
|
}
|
|
8442
|
-
function
|
|
8779
|
+
function rs(e) {
|
|
8443
8780
|
let t = e.length;
|
|
8444
8781
|
if (t === 0) return "";
|
|
8445
8782
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -8463,23 +8800,23 @@ function Ko(e) {
|
|
|
8463
8800
|
}
|
|
8464
8801
|
return s;
|
|
8465
8802
|
}
|
|
8466
|
-
function
|
|
8803
|
+
function is(e, t) {
|
|
8467
8804
|
if (e.length === 0) return "";
|
|
8468
8805
|
let n = e[0], r = e[e.length - 1];
|
|
8469
|
-
return `${
|
|
8806
|
+
return `${rs(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
8470
8807
|
}
|
|
8471
|
-
function
|
|
8472
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
8808
|
+
function as(e, t) {
|
|
8809
|
+
return e.length === 0 || t.length === 0 ? "" : `${rs(e)} ${rs([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
8473
8810
|
}
|
|
8474
|
-
function
|
|
8811
|
+
function os(e, t, n, r) {
|
|
8475
8812
|
let i = (r - 90) * Math.PI / 180;
|
|
8476
8813
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8477
8814
|
}
|
|
8478
|
-
function
|
|
8479
|
-
let [o, s] =
|
|
8815
|
+
function ss(e, t, n, r, i, a) {
|
|
8816
|
+
let [o, s] = os(e, t, n, i), [c, l] = os(e, t, n, a), [u, d] = os(e, t, r, a), [f, p] = os(e, t, r, i), m = +(a - i > 180);
|
|
8480
8817
|
return `M${o.toFixed(2)},${s.toFixed(2)} A${n},${n} 0 ${m} 1 ${c.toFixed(2)},${l.toFixed(2)} L${u.toFixed(2)},${d.toFixed(2)} A${r},${r} 0 ${m} 0 ${f.toFixed(2)},${p.toFixed(2)} Z`;
|
|
8481
8818
|
}
|
|
8482
|
-
var
|
|
8819
|
+
var cs = [
|
|
8483
8820
|
"var(--select-chart-1)",
|
|
8484
8821
|
"var(--select-chart-2)",
|
|
8485
8822
|
"var(--select-chart-3)",
|
|
@@ -8487,13 +8824,13 @@ var Zo = [
|
|
|
8487
8824
|
"var(--select-chart-5)"
|
|
8488
8825
|
];
|
|
8489
8826
|
function X(e) {
|
|
8490
|
-
return
|
|
8827
|
+
return cs[e % cs.length];
|
|
8491
8828
|
}
|
|
8492
8829
|
function Z(e) {
|
|
8493
8830
|
let t = Math.abs(e);
|
|
8494
8831
|
return t >= 1e9 ? (e / 1e9).toFixed(1).replace(/\.0$/, "") + "B" : t >= 1e6 ? (e / 1e6).toFixed(1).replace(/\.0$/, "") + "M" : t >= 1e3 ? (e / 1e3).toFixed(1).replace(/\.0$/, "") + "k" : String(Math.round(e));
|
|
8495
8832
|
}
|
|
8496
|
-
var
|
|
8833
|
+
var ls = {
|
|
8497
8834
|
top: 16,
|
|
8498
8835
|
right: 22,
|
|
8499
8836
|
bottom: 32,
|
|
@@ -8501,7 +8838,7 @@ var Qo = {
|
|
|
8501
8838
|
};
|
|
8502
8839
|
//#endregion
|
|
8503
8840
|
//#region src/SelectSparkline.tsx
|
|
8504
|
-
function
|
|
8841
|
+
function us({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
8505
8842
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
8506
8843
|
if (o > 0 && e.length > 1) {
|
|
8507
8844
|
let t = Math.max(...e), r = Math.min(...e), i = t - r || 1, a = e.map((t, a) => [4 + a / (e.length - 1) * (o - 8), n - 4 - (t - r) / i * (n - 8)]), s = a[a.length - 1];
|
|
@@ -8528,11 +8865,11 @@ function $o({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
8528
8865
|
})]
|
|
8529
8866
|
}) }),
|
|
8530
8867
|
/* @__PURE__ */ m("path", {
|
|
8531
|
-
d:
|
|
8868
|
+
d: is(a, n - 4),
|
|
8532
8869
|
fill: `url(#${l}-sa)`
|
|
8533
8870
|
}),
|
|
8534
8871
|
/* @__PURE__ */ m("path", {
|
|
8535
|
-
d:
|
|
8872
|
+
d: rs(a),
|
|
8536
8873
|
fill: "none",
|
|
8537
8874
|
stroke: c,
|
|
8538
8875
|
strokeWidth: 2,
|
|
@@ -8613,8 +8950,8 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
8613
8950
|
}
|
|
8614
8951
|
//#endregion
|
|
8615
8952
|
//#region src/SelectBarChart.tsx
|
|
8616
|
-
function
|
|
8617
|
-
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f =
|
|
8953
|
+
function ds({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
8954
|
+
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = $o(Math.max(0, ...e.map((e) => e.value))), p = ls, g = Math.max(0, c - p.left - p.right), _ = t - p.top - p.bottom, v = e.length > 0 ? g / e.length : 0, y = Math.min(v * .62, 44), b = p.top + _, x = (e) => b - e / f * _;
|
|
8618
8955
|
return /* @__PURE__ */ h("div", {
|
|
8619
8956
|
...a,
|
|
8620
8957
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8640,7 +8977,7 @@ function es({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8640
8977
|
stopOpacity: .62
|
|
8641
8978
|
})]
|
|
8642
8979
|
}) }),
|
|
8643
|
-
|
|
8980
|
+
es(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8644
8981
|
x1: p.left,
|
|
8645
8982
|
x2: c - p.right,
|
|
8646
8983
|
y1: x(e),
|
|
@@ -8690,8 +9027,8 @@ function es({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8690
9027
|
}
|
|
8691
9028
|
//#endregion
|
|
8692
9029
|
//#region src/SelectLineChart.tsx
|
|
8693
|
-
function
|
|
8694
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } =
|
|
9030
|
+
function fs({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
9031
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = ts(Math.max(0, ...e.flatMap((e) => e.data))), y = ls, b = Math.max(0, l - y.left - y.right), x = n - y.top - y.bottom, S = t.length, C = (e) => y.left + (S <= 1 ? b / 2 : e / (S - 1) * b), w = (e) => y.top + x - e / _ * x, T = S > 1 ? b / (S - 1) : b, E = Math.max(1, Math.ceil(S / 7)), D = y.top + x;
|
|
8695
9032
|
return /* @__PURE__ */ h("div", {
|
|
8696
9033
|
...o,
|
|
8697
9034
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8744,11 +9081,11 @@ function ts({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8744
9081
|
e.map((e, t) => {
|
|
8745
9082
|
let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
|
|
8746
9083
|
return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
|
|
8747
|
-
d:
|
|
9084
|
+
d: is(r, D),
|
|
8748
9085
|
fill: `url(#${f}-a${t})`,
|
|
8749
9086
|
className: "select-chart__area"
|
|
8750
9087
|
}), /* @__PURE__ */ m("path", {
|
|
8751
|
-
d:
|
|
9088
|
+
d: rs(r),
|
|
8752
9089
|
fill: "none",
|
|
8753
9090
|
stroke: n,
|
|
8754
9091
|
strokeWidth: 2.25,
|
|
@@ -8803,8 +9140,8 @@ function ts({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8803
9140
|
}
|
|
8804
9141
|
//#endregion
|
|
8805
9142
|
//#region src/SelectStackedArea.tsx
|
|
8806
|
-
function
|
|
8807
|
-
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y =
|
|
9143
|
+
function ps({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
9144
|
+
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = Array(g).fill(0), v = e.map((e) => e.data.map((e, t) => (_[t] = (_[t] ?? 0) + (e ?? 0), _[t]))), y = $o(Math.max(0, ..._)), b = ls, x = Math.max(0, c - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (g <= 1 ? x / 2 : e / (g - 1) * x), w = (e) => b.top + S - e / y * S, T = g > 1 ? x / (g - 1) : x, E = Math.max(1, Math.ceil(g / 7)), D = b.top + S, O = v[v.length - 1];
|
|
8808
9145
|
return /* @__PURE__ */ h("div", {
|
|
8809
9146
|
...a,
|
|
8810
9147
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8833,7 +9170,7 @@ function ns({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8833
9170
|
})]
|
|
8834
9171
|
}, t);
|
|
8835
9172
|
}) }),
|
|
8836
|
-
|
|
9173
|
+
es(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8837
9174
|
x1: b.left,
|
|
8838
9175
|
x2: c - b.right,
|
|
8839
9176
|
y1: w(e),
|
|
@@ -8852,10 +9189,10 @@ function ns({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8852
9189
|
return /* @__PURE__ */ h("g", {
|
|
8853
9190
|
className: "select-chart__area",
|
|
8854
9191
|
children: [/* @__PURE__ */ m("path", {
|
|
8855
|
-
d:
|
|
9192
|
+
d: as(i, a),
|
|
8856
9193
|
fill: `url(#${u}-b${n})`
|
|
8857
9194
|
}), /* @__PURE__ */ m("path", {
|
|
8858
|
-
d:
|
|
9195
|
+
d: rs(i),
|
|
8859
9196
|
fill: "none",
|
|
8860
9197
|
stroke: r,
|
|
8861
9198
|
strokeWidth: 1.5,
|
|
@@ -8909,11 +9246,11 @@ function ns({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8909
9246
|
}
|
|
8910
9247
|
//#endregion
|
|
8911
9248
|
//#region src/SelectComboChart.tsx
|
|
8912
|
-
function
|
|
9249
|
+
function ms({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
8913
9250
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
8914
|
-
...
|
|
9251
|
+
...ls,
|
|
8915
9252
|
right: 58
|
|
8916
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
9253
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = $o(Math.max(0, ...t.data)), C = $o(Math.max(0, ...n.data)), w = x > 0 ? y / x : 0, T = Math.min(w * .5, 36), E = Math.max(1, Math.ceil(x / 8)), D = t.color ?? X(0), O = n.color ?? X(1), k = v.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => v.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
|
|
8917
9254
|
return /* @__PURE__ */ h("div", {
|
|
8918
9255
|
...c,
|
|
8919
9256
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -8939,7 +9276,7 @@ function rs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8939
9276
|
stopOpacity: .55
|
|
8940
9277
|
})]
|
|
8941
9278
|
}) }),
|
|
8942
|
-
|
|
9279
|
+
es(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8943
9280
|
x1: v.left,
|
|
8944
9281
|
x2: u - v.right,
|
|
8945
9282
|
y1: A(e),
|
|
@@ -8953,7 +9290,7 @@ function rs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8953
9290
|
textAnchor: "end",
|
|
8954
9291
|
children: i(e)
|
|
8955
9292
|
})] }, t)),
|
|
8956
|
-
|
|
9293
|
+
es(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
8957
9294
|
x: u - 4,
|
|
8958
9295
|
y: j(e),
|
|
8959
9296
|
className: "select-chart__ylabel",
|
|
@@ -8982,7 +9319,7 @@ function rs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8982
9319
|
className: "select-chart__crosshair"
|
|
8983
9320
|
}),
|
|
8984
9321
|
/* @__PURE__ */ m("path", {
|
|
8985
|
-
d:
|
|
9322
|
+
d: rs(N),
|
|
8986
9323
|
fill: "none",
|
|
8987
9324
|
stroke: O,
|
|
8988
9325
|
strokeWidth: 2.5,
|
|
@@ -9040,8 +9377,8 @@ function rs({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
9040
9377
|
}
|
|
9041
9378
|
//#endregion
|
|
9042
9379
|
//#region src/SelectDonut.tsx
|
|
9043
|
-
var
|
|
9044
|
-
let p = Q(), g = s(), _ = u(null), v =
|
|
9380
|
+
var hs = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: c = !1, className: l, ...d }, f) {
|
|
9381
|
+
let p = Q(), g = s(), _ = u(null), v = Qo(_, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = v / 2, x = v / 2, S = v / 2 - 2, C = c ? 0 : S - n, w = 0;
|
|
9045
9382
|
return /* @__PURE__ */ h("div", {
|
|
9046
9383
|
ref: f,
|
|
9047
9384
|
...d,
|
|
@@ -9084,7 +9421,7 @@ var is = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
9084
9421
|
w += e.value;
|
|
9085
9422
|
let i = w / y * 360, a = e.color ?? X(t), s = i - n > o * 1.5 ? o / 2 : 0, c = n + s, l = Math.max(c + .01, i - s);
|
|
9086
9423
|
return /* @__PURE__ */ m("path", {
|
|
9087
|
-
d:
|
|
9424
|
+
d: ss(b, x, S, C, c, l),
|
|
9088
9425
|
fill: `url(#${g}-s${t})`,
|
|
9089
9426
|
className: "select-chart__seg",
|
|
9090
9427
|
onMouseEnter: () => {
|
|
@@ -9135,8 +9472,8 @@ var is = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
9135
9472
|
});
|
|
9136
9473
|
//#endregion
|
|
9137
9474
|
//#region src/SelectColumnChart.tsx
|
|
9138
|
-
function
|
|
9139
|
-
let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ =
|
|
9475
|
+
function gs({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, className: a, ...o }) {
|
|
9476
|
+
let { ref: c, width: l } = Y(n), u = Q(), d = s(), f = t.length, p = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), _ = $o(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data))), v = ls, y = Math.max(0, l - v.left - v.right), b = n - v.top - v.bottom, x = v.top + b, S = f ? y / f : 0, C = (e) => x - e / _ * b, w = Math.min(S * .72, p * 40), T = i ? Math.min(S * .5, 44) : w / p;
|
|
9140
9477
|
return /* @__PURE__ */ h("div", {
|
|
9141
9478
|
...o,
|
|
9142
9479
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9165,7 +9502,7 @@ function as({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
9165
9502
|
})]
|
|
9166
9503
|
}, t);
|
|
9167
9504
|
}) }),
|
|
9168
|
-
|
|
9505
|
+
es(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9169
9506
|
x1: v.left,
|
|
9170
9507
|
x2: l - v.right,
|
|
9171
9508
|
y1: C(e),
|
|
@@ -9247,7 +9584,7 @@ function as({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
9247
9584
|
}
|
|
9248
9585
|
//#endregion
|
|
9249
9586
|
//#region src/SelectFunnel.tsx
|
|
9250
|
-
var
|
|
9587
|
+
var _s = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
9251
9588
|
let a = Math.max(1, ...e.map((e) => e.value));
|
|
9252
9589
|
return /* @__PURE__ */ m("div", {
|
|
9253
9590
|
ref: i,
|
|
@@ -9289,19 +9626,19 @@ var os = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
|
9289
9626
|
});
|
|
9290
9627
|
//#endregion
|
|
9291
9628
|
//#region src/SelectGauge.tsx
|
|
9292
|
-
function
|
|
9629
|
+
function vs(e) {
|
|
9293
9630
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
9294
9631
|
}
|
|
9295
|
-
function
|
|
9632
|
+
function ys(e, t, n, r) {
|
|
9296
9633
|
let i = Math.PI + r * Math.PI;
|
|
9297
9634
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
9298
9635
|
}
|
|
9299
|
-
function
|
|
9300
|
-
let [a, o] =
|
|
9636
|
+
function bs(e, t, n, r, i) {
|
|
9637
|
+
let [a, o] = ys(e, t, n, r), [s, c] = ys(e, t, n, i);
|
|
9301
9638
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
9302
9639
|
}
|
|
9303
|
-
var
|
|
9304
|
-
let u =
|
|
9640
|
+
var xs = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Ss = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = xs, className: s, ...c }, l) {
|
|
9641
|
+
let u = vs(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, g = r / 2, _ = r / 2, v = _ + f, y = on({
|
|
9305
9642
|
value: u,
|
|
9306
9643
|
format: o
|
|
9307
9644
|
});
|
|
@@ -9324,13 +9661,13 @@ var us = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9324
9661
|
"aria-hidden": "true",
|
|
9325
9662
|
children: [/* @__PURE__ */ m("path", {
|
|
9326
9663
|
className: "select-gauge__track",
|
|
9327
|
-
d:
|
|
9664
|
+
d: bs(g, _, p, 0, 1),
|
|
9328
9665
|
fill: "none",
|
|
9329
9666
|
strokeWidth: d,
|
|
9330
9667
|
strokeLinecap: "round"
|
|
9331
9668
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
9332
9669
|
className: "select-gauge__arc",
|
|
9333
|
-
d:
|
|
9670
|
+
d: bs(g, _, p, 0, u / 100),
|
|
9334
9671
|
fill: "none",
|
|
9335
9672
|
stroke: a ?? "var(--select-chart-1)",
|
|
9336
9673
|
strokeWidth: d,
|
|
@@ -9353,7 +9690,7 @@ var us = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9353
9690
|
children: n
|
|
9354
9691
|
})]
|
|
9355
9692
|
});
|
|
9356
|
-
}),
|
|
9693
|
+
}), Cs = r(function({ columns: e, rows: n, format: r = Z, formatValue: i, color: a = "var(--select-chart-1)", showValues: o = !0, min: s, max: c, cellSize: l = 40, maxCellSize: u = 96, cellHeight: d = 30, className: f, ...p }, g) {
|
|
9357
9694
|
let _ = Q(), v = n.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e)), y = s ?? (v.length ? Math.min(...v) : 0), b = (c ?? (v.length ? Math.max(...v) : 1)) - y || 1, x = { "--heat-color": a }, S = {
|
|
9358
9695
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
9359
9696
|
width: "fit-content",
|
|
@@ -9418,7 +9755,7 @@ var us = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
9418
9755
|
});
|
|
9419
9756
|
//#endregion
|
|
9420
9757
|
//#region src/SelectProgressList.tsx
|
|
9421
|
-
function
|
|
9758
|
+
function ws({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
|
|
9422
9759
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
9423
9760
|
className: "select-progresslist__empty",
|
|
9424
9761
|
children: r
|
|
@@ -9469,7 +9806,7 @@ function ps({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
9469
9806
|
}
|
|
9470
9807
|
//#endregion
|
|
9471
9808
|
//#region src/SelectRadialBar.tsx
|
|
9472
|
-
var
|
|
9809
|
+
var Ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, Es = r(function({ series: e, size: t = 200, thickness: n = 14, gap: r = 8, format: i = (e) => `${Math.round(e)}%`, centerLabel: a, legend: o = !0, className: c, ...l }, u) {
|
|
9473
9810
|
let d = s(), f = t / 2, p = t / 2;
|
|
9474
9811
|
return /* @__PURE__ */ h("div", {
|
|
9475
9812
|
ref: u,
|
|
@@ -9509,7 +9846,7 @@ var ms = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, hs = r(f
|
|
|
9509
9846
|
}) }), e.map((e, i) => {
|
|
9510
9847
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
9511
9848
|
if (a <= n / 2) return null;
|
|
9512
|
-
let o =
|
|
9849
|
+
let o = Ts(e.value);
|
|
9513
9850
|
return /* @__PURE__ */ h("g", {
|
|
9514
9851
|
transform: `rotate(-90 ${f} ${p})`,
|
|
9515
9852
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -9538,7 +9875,7 @@ var ms = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, hs = r(f
|
|
|
9538
9875
|
className: "select-radial__center",
|
|
9539
9876
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
9540
9877
|
className: "select-radial__value",
|
|
9541
|
-
children: i(
|
|
9878
|
+
children: i(Ts(e[0].value))
|
|
9542
9879
|
}) : null)
|
|
9543
9880
|
})]
|
|
9544
9881
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -9556,15 +9893,15 @@ var ms = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, hs = r(f
|
|
|
9556
9893
|
}),
|
|
9557
9894
|
/* @__PURE__ */ m("span", {
|
|
9558
9895
|
className: "select-donut__legval",
|
|
9559
|
-
children: i(
|
|
9896
|
+
children: i(Ts(e.value))
|
|
9560
9897
|
})
|
|
9561
9898
|
]
|
|
9562
9899
|
}, t))
|
|
9563
9900
|
})]
|
|
9564
9901
|
});
|
|
9565
|
-
}),
|
|
9566
|
-
function
|
|
9567
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c :
|
|
9902
|
+
}), Ds = 6.1, Os = 12, ks = 56, As = .4;
|
|
9903
|
+
function js({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: c, className: l, ...u }) {
|
|
9904
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = Y(d), g = Q(), _ = s(), v = c && c > 0 ? c : $o(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(ks, y * Ds + Os), Math.max(ks, p * As)), x = o ?? b, S = Math.max(3, Math.floor((x - Os) / Ds)), C = (e) => e.length <= S ? e : `${e.slice(0, S - 1).trimEnd()}…`, w = Math.max(0, p - x - 28), T = d - 6 - 26, E = e.length ? T / e.length : 0, D = Math.min(E * .62, 22), O = (e) => x + e / v * w, k = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
|
|
9568
9905
|
return /* @__PURE__ */ h("div", {
|
|
9569
9906
|
...u,
|
|
9570
9907
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -9593,7 +9930,7 @@ function bs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9593
9930
|
})]
|
|
9594
9931
|
}, t);
|
|
9595
9932
|
}) }),
|
|
9596
|
-
|
|
9933
|
+
es(v).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9597
9934
|
x1: O(e),
|
|
9598
9935
|
x2: O(e),
|
|
9599
9936
|
y1: 6,
|
|
@@ -9639,7 +9976,7 @@ function bs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9639
9976
|
onMouseLeave: g.hide
|
|
9640
9977
|
}),
|
|
9641
9978
|
/* @__PURE__ */ h("text", {
|
|
9642
|
-
x: x -
|
|
9979
|
+
x: x - Os / 2,
|
|
9643
9980
|
y: n,
|
|
9644
9981
|
className: "select-chart__ylabel",
|
|
9645
9982
|
dominantBaseline: "middle",
|
|
@@ -9654,7 +9991,7 @@ function bs({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9654
9991
|
}
|
|
9655
9992
|
//#endregion
|
|
9656
9993
|
//#region src/SelectWaterfall.tsx
|
|
9657
|
-
function
|
|
9994
|
+
function Ms({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9658
9995
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
9659
9996
|
if (e.total) return u = e.value, {
|
|
9660
9997
|
...e,
|
|
@@ -9667,7 +10004,7 @@ function xs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9667
10004
|
start: t,
|
|
9668
10005
|
end: u
|
|
9669
10006
|
};
|
|
9670
|
-
}), f =
|
|
10007
|
+
}), f = $o(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = ls, g = Math.max(0, o - p.left - p.right), _ = t - p.top - p.bottom, v = p.top + _, y = e.length, b = y ? g / y : 0, x = Math.min(b * .6, 46), S = (e) => v - e / f * _, C = {
|
|
9671
10008
|
total: "var(--select-chart-1)",
|
|
9672
10009
|
inc: "var(--select-chart-4)",
|
|
9673
10010
|
dec: "var(--select-chart-3)"
|
|
@@ -9701,7 +10038,7 @@ function xs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9701
10038
|
stopOpacity: .62
|
|
9702
10039
|
})]
|
|
9703
10040
|
}, e)) }),
|
|
9704
|
-
|
|
10041
|
+
es(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9705
10042
|
x1: p.left,
|
|
9706
10043
|
x2: o - p.right,
|
|
9707
10044
|
y1: S(e),
|
|
@@ -9769,7 +10106,7 @@ function xs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9769
10106
|
}
|
|
9770
10107
|
//#endregion
|
|
9771
10108
|
//#region src/SelectBullet.tsx
|
|
9772
|
-
var
|
|
10109
|
+
var Ns = (e) => Math.max(0, Math.min(100, e)), Ps = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
9773
10110
|
return /* @__PURE__ */ m("div", {
|
|
9774
10111
|
ref: i,
|
|
9775
10112
|
...r,
|
|
@@ -9807,12 +10144,12 @@ var Ss = (e) => Math.max(0, Math.min(100, e)), Cs = r(function({ items: e, forma
|
|
|
9807
10144
|
children: [/* @__PURE__ */ m("span", {
|
|
9808
10145
|
className: "select-bullet__fill",
|
|
9809
10146
|
style: {
|
|
9810
|
-
width: `${
|
|
10147
|
+
width: `${Ns(e.value / i * 100)}%`,
|
|
9811
10148
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
9812
10149
|
}
|
|
9813
10150
|
}), /* @__PURE__ */ m("span", {
|
|
9814
10151
|
className: "select-bullet__tick",
|
|
9815
|
-
style: { left: `${
|
|
10152
|
+
style: { left: `${Ns(e.target / i * 100)}%` }
|
|
9816
10153
|
})]
|
|
9817
10154
|
})]
|
|
9818
10155
|
}, `${e.label}-${n}`);
|
|
@@ -9821,7 +10158,7 @@ var Ss = (e) => Math.max(0, Math.min(100, e)), Cs = r(function({ items: e, forma
|
|
|
9821
10158
|
});
|
|
9822
10159
|
//#endregion
|
|
9823
10160
|
//#region src/SelectTreemap.tsx
|
|
9824
|
-
function
|
|
10161
|
+
function Fs(e, t, n) {
|
|
9825
10162
|
let r = [], i = (e, t) => {
|
|
9826
10163
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
9827
10164
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -9872,8 +10209,8 @@ function ws(e, t, n) {
|
|
|
9872
10209
|
};
|
|
9873
10210
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
9874
10211
|
}
|
|
9875
|
-
function
|
|
9876
|
-
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ?
|
|
10212
|
+
function Is({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
10213
|
+
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? Fs(u.map((t) => e[t].value), o, t) : [];
|
|
9877
10214
|
return /* @__PURE__ */ h("div", {
|
|
9878
10215
|
...i,
|
|
9879
10216
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -9943,8 +10280,8 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9943
10280
|
}
|
|
9944
10281
|
//#endregion
|
|
9945
10282
|
//#region src/SelectScatter.tsx
|
|
9946
|
-
function
|
|
9947
|
-
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p =
|
|
10283
|
+
function Ls({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
10284
|
+
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = $o(i ?? Math.max(0, ...f.map((e) => e.x))), g = $o(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = ls, y = Math.max(0, u - v.left - v.right), b = t - v.top - v.bottom, x = v.top + b, S = (e) => v.left + e / p * y, C = (e) => x - e / g * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(_) * (o - 4) : 4.5;
|
|
9948
10285
|
return /* @__PURE__ */ h("div", {
|
|
9949
10286
|
...c,
|
|
9950
10287
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -9954,7 +10291,7 @@ function Es({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9954
10291
|
height: t,
|
|
9955
10292
|
className: "select-chart",
|
|
9956
10293
|
children: [
|
|
9957
|
-
|
|
10294
|
+
es(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9958
10295
|
x1: v.left,
|
|
9959
10296
|
x2: u - v.right,
|
|
9960
10297
|
y1: C(e),
|
|
@@ -9968,7 +10305,7 @@ function Es({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9968
10305
|
textAnchor: "end",
|
|
9969
10306
|
children: r(e)
|
|
9970
10307
|
})] }, `y${t}`)),
|
|
9971
|
-
|
|
10308
|
+
es(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
9972
10309
|
x: S(e),
|
|
9973
10310
|
y: t - v.bottom + 16,
|
|
9974
10311
|
className: "select-chart__xlabel",
|
|
@@ -10015,8 +10352,8 @@ function Es({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
10015
10352
|
}
|
|
10016
10353
|
//#endregion
|
|
10017
10354
|
//#region src/SelectRadar.tsx
|
|
10018
|
-
var
|
|
10019
|
-
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
10355
|
+
var Rs = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
10356
|
+
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? $o(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [g + t * Math.cos(b(e)), _ + t * Math.sin(b(e))], S = (e) => e.map((e, t) => `${t === 0 ? "M" : "L"}${x(t, e).map((e) => e.toFixed(2)).join(",")}`).join(" ") + " Z";
|
|
10020
10357
|
return /* @__PURE__ */ h("div", {
|
|
10021
10358
|
ref: u,
|
|
10022
10359
|
...l,
|
|
@@ -10125,7 +10462,7 @@ var Ds = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
10125
10462
|
});
|
|
10126
10463
|
//#endregion
|
|
10127
10464
|
//#region src/SelectSankey.tsx
|
|
10128
|
-
function
|
|
10465
|
+
function zs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
10129
10466
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
10130
10467
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
10131
10468
|
let f = e.reduce((e, t) => e + t.value, 0) || 1, p = (t, n) => e.filter((e) => e[n] === t).reduce((e, t) => e + t.value, 0), g = t - 12, _ = Math.max(u.length, d.length), v = (g - i * Math.max(0, _ - 1)) / f, y = (e, t, n) => {
|
|
@@ -10210,8 +10547,8 @@ function Os({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
10210
10547
|
}
|
|
10211
10548
|
//#endregion
|
|
10212
10549
|
//#region src/SelectCandlestick.tsx
|
|
10213
|
-
function
|
|
10214
|
-
let { ref: s, width: c } = Y(t), l = Q(), u =
|
|
10550
|
+
function Bs({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
10551
|
+
let { ref: s, width: c } = Y(t), l = Q(), u = ls, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, g = Math.max(1, ...e.map((e) => e.high)), _ = Math.min(g, ...e.map((e) => e.low)), v = (g - _) * .08 || 1, y = _ - v, b = g + v, x = (e) => p - (e - y) / (b - y) * f, S = e.length, C = S ? d / S : 0, w = Math.min(C * .5, 18), T = Array.from({ length: 5 }, (e, t) => y + (b - y) * t / 4);
|
|
10215
10552
|
return /* @__PURE__ */ h("div", {
|
|
10216
10553
|
...o,
|
|
10217
10554
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10300,8 +10637,8 @@ function ks({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
10300
10637
|
}
|
|
10301
10638
|
//#endregion
|
|
10302
10639
|
//#region src/SelectBoxPlot.tsx
|
|
10303
|
-
function
|
|
10304
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
10640
|
+
function Vs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
10641
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = ls, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = $o(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .5, 40);
|
|
10305
10642
|
return /* @__PURE__ */ h("div", {
|
|
10306
10643
|
...i,
|
|
10307
10644
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -10310,7 +10647,7 @@ function As({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10310
10647
|
width: o,
|
|
10311
10648
|
height: t,
|
|
10312
10649
|
className: "select-chart",
|
|
10313
|
-
children: [
|
|
10650
|
+
children: [es(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10314
10651
|
x1: c.left,
|
|
10315
10652
|
x2: o - c.right,
|
|
10316
10653
|
y1: p(e),
|
|
@@ -10420,7 +10757,7 @@ function As({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10420
10757
|
}
|
|
10421
10758
|
//#endregion
|
|
10422
10759
|
//#region src/SelectRangeBar.tsx
|
|
10423
|
-
function
|
|
10760
|
+
function Hs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
10424
10761
|
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = Y(l), f = Q(), p = s(), g = n ?? Math.min(0, ...e.map((e) => e.start)), _ = (r ?? Math.max(1, ...e.map((e) => e.end))) - g || 1, v = a, y = Math.max(0, d - v - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => v + (e - g) / _ * y, w = Array.from({ length: 5 }, (e, t) => g + _ * t / 4);
|
|
10425
10762
|
return /* @__PURE__ */ h("div", {
|
|
10426
10763
|
...c,
|
|
@@ -10501,7 +10838,7 @@ function js({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
10501
10838
|
}
|
|
10502
10839
|
//#endregion
|
|
10503
10840
|
//#region src/SelectCalendarHeatmap.tsx
|
|
10504
|
-
var
|
|
10841
|
+
var Us = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
10505
10842
|
"Seg",
|
|
10506
10843
|
"",
|
|
10507
10844
|
"Qua",
|
|
@@ -10574,8 +10911,8 @@ var Ms = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10574
10911
|
]
|
|
10575
10912
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
10576
10913
|
});
|
|
10577
|
-
}),
|
|
10578
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
10914
|
+
}), Ws = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
10915
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = $o(Math.max(1, ...e.map((e) => e.value))), g = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, _ = 360 / f;
|
|
10579
10916
|
return /* @__PURE__ */ h("div", {
|
|
10580
10917
|
ref: s,
|
|
10581
10918
|
...o,
|
|
@@ -10605,7 +10942,7 @@ var Ms = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10605
10942
|
}, t)), e.map((e, t) => {
|
|
10606
10943
|
let r = t * _, i = (t + 1) * _ - 1.5, a = e.color ?? X(t), o = Math.max(2, g(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
10607
10944
|
return /* @__PURE__ */ m("path", {
|
|
10608
|
-
d:
|
|
10945
|
+
d: ss(l, u, o, 0, r, i),
|
|
10609
10946
|
fill: a,
|
|
10610
10947
|
fillOpacity: .8,
|
|
10611
10948
|
className: "select-chart__seg",
|
|
@@ -10648,13 +10985,13 @@ var Ms = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10648
10985
|
});
|
|
10649
10986
|
//#endregion
|
|
10650
10987
|
//#region src/SelectSlope.tsx
|
|
10651
|
-
function
|
|
10988
|
+
function Gs({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
10652
10989
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
10653
10990
|
top: 24,
|
|
10654
10991
|
right: 64,
|
|
10655
10992
|
bottom: 12,
|
|
10656
10993
|
left: 132
|
|
10657
|
-
}, d =
|
|
10994
|
+
}, d = $o(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, g = u.left, _ = c - u.right;
|
|
10658
10995
|
return /* @__PURE__ */ h("div", {
|
|
10659
10996
|
...o,
|
|
10660
10997
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10770,8 +11107,8 @@ function Ps({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
10770
11107
|
}
|
|
10771
11108
|
//#endregion
|
|
10772
11109
|
//#region src/SelectDumbbell.tsx
|
|
10773
|
-
function
|
|
10774
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g =
|
|
11110
|
+
function Ks({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
11111
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = Y(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", g = $o(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), _ = a, v = Math.max(0, u - _ - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => _ + e / g * v;
|
|
10775
11112
|
return /* @__PURE__ */ h("div", {
|
|
10776
11113
|
...s,
|
|
10777
11114
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -10780,7 +11117,7 @@ function Fs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10780
11117
|
width: u,
|
|
10781
11118
|
height: c,
|
|
10782
11119
|
className: "select-chart",
|
|
10783
|
-
children: [
|
|
11120
|
+
children: [es(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10784
11121
|
x1: x(e),
|
|
10785
11122
|
x2: x(e),
|
|
10786
11123
|
y1: 6,
|
|
@@ -10863,7 +11200,7 @@ function Fs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10863
11200
|
}
|
|
10864
11201
|
//#endregion
|
|
10865
11202
|
//#region src/SelectMarimekko.tsx
|
|
10866
|
-
function
|
|
11203
|
+
function qs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
10867
11204
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
10868
11205
|
top: 6,
|
|
10869
11206
|
right: 6,
|
|
@@ -10943,7 +11280,7 @@ function Is({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
10943
11280
|
}
|
|
10944
11281
|
//#endregion
|
|
10945
11282
|
//#region src/SelectGaugeBands.tsx
|
|
10946
|
-
var
|
|
11283
|
+
var Js = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness: i, label: a, format: o = (e) => `${Math.round(e)}`, className: s, ...c }, l) {
|
|
10947
11284
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, g = r / 2, _ = g + d, v = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
10948
11285
|
let t = Math.PI + e * Math.PI;
|
|
10949
11286
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -11015,7 +11352,7 @@ var Ls = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
11015
11352
|
});
|
|
11016
11353
|
//#endregion
|
|
11017
11354
|
//#region src/SelectStreamGraph.tsx
|
|
11018
|
-
function
|
|
11355
|
+
function Ys({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
11019
11356
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
11020
11357
|
top: 14,
|
|
11021
11358
|
right: 14,
|
|
@@ -11059,7 +11396,7 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11059
11396
|
})]
|
|
11060
11397
|
}, t)) }),
|
|
11061
11398
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
11062
|
-
d:
|
|
11399
|
+
d: as(e.upper, e.lower),
|
|
11063
11400
|
fill: `url(#${u}-st${t})`,
|
|
11064
11401
|
className: "select-chart__area"
|
|
11065
11402
|
}, t)),
|
|
@@ -11106,7 +11443,7 @@ function Rs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
11106
11443
|
}
|
|
11107
11444
|
//#endregion
|
|
11108
11445
|
//#region src/SelectSunburst.tsx
|
|
11109
|
-
var
|
|
11446
|
+
var Xs = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
11110
11447
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
11111
11448
|
var t;
|
|
11112
11449
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -11132,7 +11469,7 @@ var zs = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
11132
11469
|
_ += r;
|
|
11133
11470
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
11134
11471
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
11135
|
-
d:
|
|
11472
|
+
d: ss(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
11136
11473
|
fill: o,
|
|
11137
11474
|
className: "select-chart__seg",
|
|
11138
11475
|
onMouseEnter: () => s.show({
|
|
@@ -11152,7 +11489,7 @@ var zs = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
11152
11489
|
v += t.value / g * 360;
|
|
11153
11490
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
11154
11491
|
return /* @__PURE__ */ m("path", {
|
|
11155
|
-
d:
|
|
11492
|
+
d: ss(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
11156
11493
|
fill: p,
|
|
11157
11494
|
fillOpacity: h,
|
|
11158
11495
|
className: "select-chart__seg",
|
|
@@ -11199,8 +11536,8 @@ var zs = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
11199
11536
|
});
|
|
11200
11537
|
//#endregion
|
|
11201
11538
|
//#region src/SelectViolin.tsx
|
|
11202
|
-
function
|
|
11203
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
11539
|
+
function Zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
11540
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = ls, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = $o(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, g = e.length, _ = g ? l / g : 0, v = Math.min(_ * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
11204
11541
|
return /* @__PURE__ */ h("div", {
|
|
11205
11542
|
...i,
|
|
11206
11543
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -11209,7 +11546,7 @@ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11209
11546
|
width: o,
|
|
11210
11547
|
height: t,
|
|
11211
11548
|
className: "select-chart",
|
|
11212
|
-
children: [
|
|
11549
|
+
children: [es(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
11213
11550
|
x1: c.left,
|
|
11214
11551
|
x2: o - c.right,
|
|
11215
11552
|
y1: p(e),
|
|
@@ -11226,7 +11563,7 @@ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11226
11563
|
let i = c.left + _ * r + _ / 2, a = e.color ?? X(r), o = e.bins.length, l = (t) => p(e.min + (e.max - e.min) * t / Math.max(1, o - 1)), d = (t) => e.bins[t] / y * v, f = [], g = [];
|
|
11227
11564
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
11228
11565
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
11229
|
-
let b = `${
|
|
11566
|
+
let b = `${ns(f)} ${ns(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
11230
11567
|
return /* @__PURE__ */ h("g", { children: [
|
|
11231
11568
|
/* @__PURE__ */ m("path", {
|
|
11232
11569
|
d: b,
|
|
@@ -11287,7 +11624,7 @@ function Bs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
11287
11624
|
}
|
|
11288
11625
|
//#endregion
|
|
11289
11626
|
//#region src/SelectChord.tsx
|
|
11290
|
-
var
|
|
11627
|
+
var Qs = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
11291
11628
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, g = e.map((e) => e.reduce((e, t) => e + t, 0)), _ = g.reduce((e, t) => e + t, 0) || 1, v = (2 * Math.PI - l * i) / _, y = [], b = 0;
|
|
11292
11629
|
for (let e = 0; e < l; e++) {
|
|
11293
11630
|
let t = b, n = b + g[e] * v;
|
|
@@ -11354,7 +11691,7 @@ var Vs = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
11354
11691
|
}, n)), y.map((e, n) => {
|
|
11355
11692
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
11356
11693
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
11357
|
-
d:
|
|
11694
|
+
d: ss(u, d, f, p, w(e.a0), w(e.a1)),
|
|
11358
11695
|
fill: X(n),
|
|
11359
11696
|
className: "select-chord__arc"
|
|
11360
11697
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -11372,7 +11709,7 @@ var Vs = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
11372
11709
|
});
|
|
11373
11710
|
//#endregion
|
|
11374
11711
|
//#region src/SelectHexbin.tsx
|
|
11375
|
-
function
|
|
11712
|
+
function $s({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
11376
11713
|
let { ref: l, width: u } = Y(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, g = i ?? Math.max(1, ...e.map((e) => e.x)), _ = a ?? Math.max(1, ...e.map((e) => e.y)), v = (e) => 12 + e / g * f, y = (e) => 12 + p - e / _ * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
11377
11714
|
let n = e, r = t, i = -n - r, a = Math.round(n), o = Math.round(i), s = Math.round(r), c = Math.abs(a - n), l = Math.abs(o - i), u = Math.abs(s - r);
|
|
11378
11715
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -11424,7 +11761,7 @@ function Hs({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
11424
11761
|
}
|
|
11425
11762
|
//#endregion
|
|
11426
11763
|
//#region src/SelectWordCloud.tsx
|
|
11427
|
-
var
|
|
11764
|
+
var ec = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
11428
11765
|
let o = e.map((e) => e.value), s = Math.max(1, ...o), c = Math.min(...o), l = s - c || 1, u = (e) => t + (e - c) / l * (n - t);
|
|
11429
11766
|
return /* @__PURE__ */ m("div", {
|
|
11430
11767
|
ref: a,
|
|
@@ -11441,7 +11778,7 @@ var Us = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
11441
11778
|
children: e.text
|
|
11442
11779
|
}, `${e.text}-${t}`))
|
|
11443
11780
|
});
|
|
11444
|
-
}),
|
|
11781
|
+
}), tc = [
|
|
11445
11782
|
[
|
|
11446
11783
|
-59.6,
|
|
11447
11784
|
-80,
|
|
@@ -21836,24 +22173,24 @@ var Us = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
21836
22173
|
-27.1,
|
|
21837
22174
|
83.5
|
|
21838
22175
|
]
|
|
21839
|
-
],
|
|
21840
|
-
function
|
|
21841
|
-
let n = e *
|
|
22176
|
+
], nc = Math.PI / 180;
|
|
22177
|
+
function rc(e, t) {
|
|
22178
|
+
let n = e * nc, r = t * nc;
|
|
21842
22179
|
return [
|
|
21843
22180
|
Math.cos(n) * Math.sin(r),
|
|
21844
22181
|
Math.sin(n),
|
|
21845
22182
|
Math.cos(n) * Math.cos(r)
|
|
21846
22183
|
];
|
|
21847
22184
|
}
|
|
21848
|
-
function
|
|
21849
|
-
let a = r *
|
|
22185
|
+
function ic([e, t, n], r, i) {
|
|
22186
|
+
let a = r * nc, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * nc;
|
|
21850
22187
|
return [
|
|
21851
22188
|
o,
|
|
21852
22189
|
t * Math.cos(c) - s * Math.sin(c),
|
|
21853
22190
|
t * Math.sin(c) + s * Math.cos(c)
|
|
21854
22191
|
];
|
|
21855
22192
|
}
|
|
21856
|
-
function
|
|
22193
|
+
function ac(e, t, n) {
|
|
21857
22194
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
21858
22195
|
r = Math.max(-1, Math.min(1, r));
|
|
21859
22196
|
let i = Math.acos(r);
|
|
@@ -21865,9 +22202,9 @@ function Js(e, t, n) {
|
|
|
21865
22202
|
e[2] * o + t[2] * s
|
|
21866
22203
|
];
|
|
21867
22204
|
}
|
|
21868
|
-
var
|
|
22205
|
+
var oc = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, sc = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: c = "var(--select-chart-1)", format: f = Z, legend: p = !0, map: g = !0, fluid: _ = !1, onZoomChange: v, className: y, ...b }, x) {
|
|
21869
22206
|
var S, C;
|
|
21870
|
-
let w = s(), T = Q(), E = u(null), D =
|
|
22207
|
+
let w = s(), T = Q(), E = u(null), D = Qo(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = u(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = u({
|
|
21871
22208
|
lng: -O,
|
|
21872
22209
|
lat: r
|
|
21873
22210
|
}), j = u({
|
|
@@ -21926,7 +22263,7 @@ var Ys = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21926
22263
|
var t, n;
|
|
21927
22264
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ne(!1), re());
|
|
21928
22265
|
}, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, oe = (e) => {
|
|
21929
|
-
let t =
|
|
22266
|
+
let t = ic(e, A.current.lng, A.current.lat);
|
|
21930
22267
|
return {
|
|
21931
22268
|
x: G + W * t[0],
|
|
21932
22269
|
y: K - W * t[1],
|
|
@@ -21936,25 +22273,25 @@ var Ys = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21936
22273
|
let e = [];
|
|
21937
22274
|
for (let t = -180; t < 180; t += 30) {
|
|
21938
22275
|
let n = [];
|
|
21939
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
22276
|
+
for (let e = 0; e <= 48; e++) n.push(rc(-90 + 180 * e / 48, t));
|
|
21940
22277
|
e.push(n);
|
|
21941
22278
|
}
|
|
21942
22279
|
for (let t = -60; t <= 60; t += 30) {
|
|
21943
22280
|
let n = [];
|
|
21944
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
22281
|
+
for (let e = 0; e <= 48; e++) n.push(rc(t, -180 + 360 * e / 48));
|
|
21945
22282
|
e.push(n);
|
|
21946
22283
|
}
|
|
21947
22284
|
return e;
|
|
21948
|
-
}, []), ce = l(() =>
|
|
22285
|
+
}, []), ce = l(() => tc.map((e) => {
|
|
21949
22286
|
let t = [];
|
|
21950
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
22287
|
+
for (let n = 0; n < e.length; n += 2) t.push(rc(e[n + 1], e[n]));
|
|
21951
22288
|
return t;
|
|
21952
22289
|
}), []), q = (e) => ({
|
|
21953
22290
|
x: G + W * e[0],
|
|
21954
22291
|
y: K - W * e[1]
|
|
21955
22292
|
}), le = "", ue = "";
|
|
21956
22293
|
if (g) for (let e of ce) {
|
|
21957
|
-
let t = e.map((e) =>
|
|
22294
|
+
let t = e.map((e) => ic(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
21958
22295
|
for (let e of t) if (e[2] > 0) {
|
|
21959
22296
|
let t = q(e);
|
|
21960
22297
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -22002,7 +22339,7 @@ var Ys = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22002
22339
|
}
|
|
22003
22340
|
return t;
|
|
22004
22341
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
22005
|
-
let n = oe(
|
|
22342
|
+
let n = oe(rc(e.lat, e.lng));
|
|
22006
22343
|
return {
|
|
22007
22344
|
...e,
|
|
22008
22345
|
i: t,
|
|
@@ -22012,20 +22349,20 @@ var Ys = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22012
22349
|
col: e.color ?? c
|
|
22013
22350
|
};
|
|
22014
22351
|
}), me = z == null ? null : e[z], he = t.map((e, t) => {
|
|
22015
|
-
let n =
|
|
22352
|
+
let n = rc(e.from.lat, e.from.lng), r = rc(e.to.lat, e.to.lng), i = "", a = !1;
|
|
22016
22353
|
for (let e = 0; e <= 40; e++) {
|
|
22017
|
-
let t = e / 40, o =
|
|
22354
|
+
let t = e / 40, o = ac(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = ic(o, A.current.lng, A.current.lat), l = oe([
|
|
22018
22355
|
o[0] * s,
|
|
22019
22356
|
o[1] * s,
|
|
22020
22357
|
o[2] * s
|
|
22021
22358
|
]);
|
|
22022
22359
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
22023
22360
|
}
|
|
22024
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
22361
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = ac(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = ic(s, A.current.lng, A.current.lat), d = oe([
|
|
22025
22362
|
s[0] * l,
|
|
22026
22363
|
s[1] * l,
|
|
22027
22364
|
s[2] * l
|
|
22028
|
-
]), f = me != null && (
|
|
22365
|
+
]), f = me != null && (oc(e.from, me) || oc(e.to, me));
|
|
22029
22366
|
return {
|
|
22030
22367
|
d: i,
|
|
22031
22368
|
col: e.color ?? c,
|
|
@@ -22299,8 +22636,8 @@ var Ys = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
22299
22636
|
});
|
|
22300
22637
|
//#endregion
|
|
22301
22638
|
//#region src/SelectTicker.tsx
|
|
22302
|
-
function
|
|
22303
|
-
let i = u(null), a = u(null), s = u(null), c =
|
|
22639
|
+
function cc({ children: e, speed: t = 28, className: n, ...r }) {
|
|
22640
|
+
let i = u(null), a = u(null), s = u(null), c = Qo(i, 0), l = Qo(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
22304
22641
|
o(() => {
|
|
22305
22642
|
var e, n;
|
|
22306
22643
|
let r = a.current;
|
|
@@ -22361,12 +22698,12 @@ function Zs({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
22361
22698
|
}
|
|
22362
22699
|
//#endregion
|
|
22363
22700
|
//#region src/SelectPareto.tsx
|
|
22364
|
-
function
|
|
22701
|
+
function lc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
22365
22702
|
var a;
|
|
22366
22703
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
22367
|
-
...
|
|
22704
|
+
...ls,
|
|
22368
22705
|
right: 44
|
|
22369
|
-
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w =
|
|
22706
|
+
}, _ = [...e].sort((e, t) => t.value - e.value), v = _.length, y = _.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = _.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, c - g.left - g.right), C = t - g.top - g.bottom, w = $o(((a = _[0]) == null ? void 0 : a.value) ?? 1), T = v > 0 ? S / v : 0, E = Math.min(T * .62, 46), D = g.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => g.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
22370
22707
|
return /* @__PURE__ */ h("div", {
|
|
22371
22708
|
...i,
|
|
22372
22709
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -22395,7 +22732,7 @@ function Qs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22395
22732
|
stopOpacity: .55
|
|
22396
22733
|
})]
|
|
22397
22734
|
}) }),
|
|
22398
|
-
|
|
22735
|
+
es(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
22399
22736
|
x1: g.left,
|
|
22400
22737
|
x2: c - g.right,
|
|
22401
22738
|
y1: O(e),
|
|
@@ -22459,7 +22796,7 @@ function Qs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22459
22796
|
}, t);
|
|
22460
22797
|
}),
|
|
22461
22798
|
/* @__PURE__ */ m("path", {
|
|
22462
|
-
d:
|
|
22799
|
+
d: rs(j),
|
|
22463
22800
|
fill: "none",
|
|
22464
22801
|
stroke: N,
|
|
22465
22802
|
strokeWidth: 2,
|
|
@@ -22487,7 +22824,7 @@ function Qs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22487
22824
|
}
|
|
22488
22825
|
//#endregion
|
|
22489
22826
|
//#region src/SelectWaffle.tsx
|
|
22490
|
-
var
|
|
22827
|
+
var uc = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
22491
22828
|
let s = e.reduce((e, t) => e + t.value, 0) || 1, c = t * n, l = e.map((e) => e.value / s * c), u = l.map(Math.floor), d = u.reduce((e, t) => e + t, 0), f = l.map((e, t) => ({
|
|
22492
22829
|
i: t,
|
|
22493
22830
|
frac: e - u[t]
|
|
@@ -22536,7 +22873,7 @@ var $s = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
22536
22873
|
});
|
|
22537
22874
|
//#endregion
|
|
22538
22875
|
//#region src/SelectPyramid.tsx
|
|
22539
|
-
function
|
|
22876
|
+
function dc({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
22540
22877
|
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: f, width: p } = Y(u), g = Q(), [_, v] = d(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (p - s - 16) / 2), x = e.length ? (u - 26 - 8) / e.length : 0, S = Math.min(x * .6, 26), C = 8 + b, w = 8 + b + s, T = a ?? X(1), E = o ?? X(0);
|
|
22541
22878
|
return /* @__PURE__ */ h("div", {
|
|
22542
22879
|
...l,
|
|
@@ -22644,7 +22981,7 @@ function ec({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
22644
22981
|
}
|
|
22645
22982
|
//#endregion
|
|
22646
22983
|
//#region src/SelectBump.tsx
|
|
22647
|
-
function
|
|
22984
|
+
function fc({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
22648
22985
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22649
22986
|
top: 16,
|
|
22650
22987
|
right: 78,
|
|
@@ -22681,7 +23018,7 @@ function tc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22681
23018
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
22682
23019
|
children: [
|
|
22683
23020
|
/* @__PURE__ */ m("path", {
|
|
22684
|
-
d:
|
|
23021
|
+
d: rs(a),
|
|
22685
23022
|
fill: "none",
|
|
22686
23023
|
stroke: i,
|
|
22687
23024
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -22729,7 +23066,7 @@ function tc({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22729
23066
|
}
|
|
22730
23067
|
//#endregion
|
|
22731
23068
|
//#region src/SelectParallel.tsx
|
|
22732
|
-
function
|
|
23069
|
+
function pc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
22733
23070
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22734
23071
|
top: 30,
|
|
22735
23072
|
right: 28,
|
|
@@ -22821,25 +23158,25 @@ function nc({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
22821
23158
|
}
|
|
22822
23159
|
//#endregion
|
|
22823
23160
|
//#region src/SelectIcicle.tsx
|
|
22824
|
-
function
|
|
22825
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
23161
|
+
function mc(e) {
|
|
23162
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + mc(t), 0) : e.value ?? 0;
|
|
22826
23163
|
}
|
|
22827
|
-
function
|
|
22828
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
23164
|
+
function hc(e, t = 0) {
|
|
23165
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => hc(e, t + 1)));
|
|
22829
23166
|
}
|
|
22830
|
-
function
|
|
22831
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
23167
|
+
function gc({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
23168
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = hc(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
22832
23169
|
if (p.push({
|
|
22833
23170
|
node: e,
|
|
22834
23171
|
x0: t,
|
|
22835
23172
|
x1: n,
|
|
22836
23173
|
depth: r,
|
|
22837
23174
|
color: e.color ?? X(i),
|
|
22838
|
-
value:
|
|
23175
|
+
value: mc(e)
|
|
22839
23176
|
}), e.children && e.children.length) {
|
|
22840
|
-
let a = e.children.reduce((e, t) => e +
|
|
23177
|
+
let a = e.children.reduce((e, t) => e + mc(t), 0) || 1, o = t;
|
|
22841
23178
|
e.children.forEach((e, s) => {
|
|
22842
|
-
let c = (n - t) *
|
|
23179
|
+
let c = (n - t) * mc(e) / a;
|
|
22843
23180
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
22844
23181
|
});
|
|
22845
23182
|
}
|
|
@@ -22900,7 +23237,7 @@ function ac({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22900
23237
|
}
|
|
22901
23238
|
//#endregion
|
|
22902
23239
|
//#region src/SelectTree.tsx
|
|
22903
|
-
function
|
|
23240
|
+
function _c({ data: e, height: t = 260, className: n, ...r }) {
|
|
22904
23241
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
22905
23242
|
top: 14,
|
|
22906
23243
|
right: 96,
|
|
@@ -22978,7 +23315,7 @@ function oc({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
22978
23315
|
}
|
|
22979
23316
|
//#endregion
|
|
22980
23317
|
//#region src/SelectVenn.tsx
|
|
22981
|
-
var
|
|
23318
|
+
var vc = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
22982
23319
|
let a = Math.min(3, e.length), o = t / 2, s = t / 2, c = Math.max(1, ...e.slice(0, a).map((e) => e.size)), l = t * .26, u = (e) => l * .45 + l * .55 * Math.sqrt(e.size / c), d = a <= 2 ? [[o - l * .42, s], [o + l * .42, s]] : [
|
|
22983
23320
|
[o, s - l * .5],
|
|
22984
23321
|
[o - l * .5, s + l * .36],
|
|
@@ -23043,7 +23380,7 @@ var sc = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
23043
23380
|
}, t))
|
|
23044
23381
|
})]
|
|
23045
23382
|
});
|
|
23046
|
-
}),
|
|
23383
|
+
}), yc = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
23047
23384
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
23048
23385
|
d: e,
|
|
23049
23386
|
i: t,
|
|
@@ -23146,7 +23483,7 @@ var sc = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
23146
23483
|
});
|
|
23147
23484
|
//#endregion
|
|
23148
23485
|
//#region src/SelectNetwork.tsx
|
|
23149
|
-
function
|
|
23486
|
+
function bc({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
23150
23487
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
23151
23488
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
23152
23489
|
if (!a) return o;
|
|
@@ -23260,7 +23597,7 @@ function lc({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
23260
23597
|
}
|
|
23261
23598
|
//#endregion
|
|
23262
23599
|
//#region src/SelectSearchMenu.tsx
|
|
23263
|
-
function
|
|
23600
|
+
function xc({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", children: o }) {
|
|
23264
23601
|
return /* @__PURE__ */ h("div", {
|
|
23265
23602
|
className: "select-combobox__panel select-searchmenu",
|
|
23266
23603
|
style: { width: a },
|
|
@@ -23277,7 +23614,7 @@ function uc({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
23277
23614
|
className: "select-combobox__empty",
|
|
23278
23615
|
role: "status",
|
|
23279
23616
|
children: r
|
|
23280
|
-
}) : /* @__PURE__ */ m(
|
|
23617
|
+
}) : /* @__PURE__ */ m(Sc, { children: o }),
|
|
23281
23618
|
i != null && i !== !1 ? /* @__PURE__ */ m("div", {
|
|
23282
23619
|
className: "select-searchmenu__footer",
|
|
23283
23620
|
children: i
|
|
@@ -23285,7 +23622,7 @@ function uc({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
23285
23622
|
]
|
|
23286
23623
|
});
|
|
23287
23624
|
}
|
|
23288
|
-
function
|
|
23625
|
+
function Sc({ children: e }) {
|
|
23289
23626
|
let t = an({
|
|
23290
23627
|
selector: ".select-combobox__option",
|
|
23291
23628
|
y: 6,
|
|
@@ -23299,7 +23636,7 @@ function dc({ children: e }) {
|
|
|
23299
23636
|
children: e
|
|
23300
23637
|
});
|
|
23301
23638
|
}
|
|
23302
|
-
function
|
|
23639
|
+
function Cc({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSelect: i }) {
|
|
23303
23640
|
return /* @__PURE__ */ h("button", {
|
|
23304
23641
|
type: "button",
|
|
23305
23642
|
role: "option",
|
|
@@ -23325,7 +23662,7 @@ function fc({ label: e, secondary: t, selected: n = !1, disabled: r = !1, onSele
|
|
|
23325
23662
|
}
|
|
23326
23663
|
//#endregion
|
|
23327
23664
|
//#region src/SelectThemeSwitcher.tsx
|
|
23328
|
-
var
|
|
23665
|
+
var wc = [
|
|
23329
23666
|
{
|
|
23330
23667
|
value: "light",
|
|
23331
23668
|
label: "Claro",
|
|
@@ -23342,15 +23679,15 @@ var pc = [
|
|
|
23342
23679
|
icon: /* @__PURE__ */ m(ke, {})
|
|
23343
23680
|
}
|
|
23344
23681
|
];
|
|
23345
|
-
function
|
|
23682
|
+
function Tc(e) {
|
|
23346
23683
|
if (e === "system") {
|
|
23347
23684
|
var t, n;
|
|
23348
23685
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
23349
23686
|
}
|
|
23350
23687
|
return e;
|
|
23351
23688
|
}
|
|
23352
|
-
function
|
|
23353
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
23689
|
+
function Ec({ value: e, onChange: t, className: n, ...r }) {
|
|
23690
|
+
let [i, a] = d(!1), s = u(null), c = wc.find((t) => t.value === e) ?? wc[2];
|
|
23354
23691
|
return o(() => {
|
|
23355
23692
|
if (!i) return;
|
|
23356
23693
|
let e = (e) => {
|
|
@@ -23370,7 +23707,7 @@ function hc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23370
23707
|
})
|
|
23371
23708
|
}), i && /* @__PURE__ */ m("div", {
|
|
23372
23709
|
className: "select-themeswitcher__popover",
|
|
23373
|
-
children: /* @__PURE__ */ m(Zi, { children:
|
|
23710
|
+
children: /* @__PURE__ */ m(Zi, { children: wc.map((n) => /* @__PURE__ */ m($i, {
|
|
23374
23711
|
icon: n.icon,
|
|
23375
23712
|
active: n.value === e,
|
|
23376
23713
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -23384,8 +23721,8 @@ function hc({ value: e, onChange: t, className: n, ...r }) {
|
|
|
23384
23721
|
}
|
|
23385
23722
|
//#endregion
|
|
23386
23723
|
//#region src/SelectDetail.tsx
|
|
23387
|
-
var
|
|
23388
|
-
function
|
|
23724
|
+
var Dc = n(!1);
|
|
23725
|
+
function Oc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
23389
23726
|
let r = an({
|
|
23390
23727
|
selector: ".select-detail",
|
|
23391
23728
|
y: 8,
|
|
@@ -23393,7 +23730,7 @@ function _c({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
23393
23730
|
stagger: .05,
|
|
23394
23731
|
scroll: !0
|
|
23395
23732
|
});
|
|
23396
|
-
return /* @__PURE__ */ m(
|
|
23733
|
+
return /* @__PURE__ */ m(Dc.Provider, {
|
|
23397
23734
|
value: n,
|
|
23398
23735
|
children: /* @__PURE__ */ m("div", {
|
|
23399
23736
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -23402,8 +23739,8 @@ function _c({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
23402
23739
|
})
|
|
23403
23740
|
});
|
|
23404
23741
|
}
|
|
23405
|
-
var
|
|
23406
|
-
let l = a(
|
|
23742
|
+
var kc = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
23743
|
+
let l = a(Dc), u = i ?? l;
|
|
23407
23744
|
return /* @__PURE__ */ h("div", {
|
|
23408
23745
|
ref: c,
|
|
23409
23746
|
...s,
|
|
@@ -23423,7 +23760,7 @@ var vc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23423
23760
|
})
|
|
23424
23761
|
]
|
|
23425
23762
|
});
|
|
23426
|
-
}),
|
|
23763
|
+
}), Ac = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
23427
23764
|
let s = r === "vertical";
|
|
23428
23765
|
return /* @__PURE__ */ m("ol", {
|
|
23429
23766
|
ref: o,
|
|
@@ -23462,7 +23799,7 @@ var vc = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
23462
23799
|
});
|
|
23463
23800
|
//#endregion
|
|
23464
23801
|
//#region src/SelectSetupGuide.tsx
|
|
23465
|
-
function
|
|
23802
|
+
function jc({ status: e }) {
|
|
23466
23803
|
return /* @__PURE__ */ m("span", {
|
|
23467
23804
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
23468
23805
|
"aria-hidden": "true",
|
|
@@ -23481,13 +23818,13 @@ function bc({ status: e }) {
|
|
|
23481
23818
|
})
|
|
23482
23819
|
});
|
|
23483
23820
|
}
|
|
23484
|
-
var
|
|
23821
|
+
var Mc = {
|
|
23485
23822
|
done: "feito",
|
|
23486
23823
|
todo: "a fazer",
|
|
23487
23824
|
next: "próximo passo",
|
|
23488
23825
|
skipped: "pulado",
|
|
23489
23826
|
waiting: "aguardando"
|
|
23490
|
-
},
|
|
23827
|
+
}, Nc = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
23491
23828
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
23492
23829
|
return /* @__PURE__ */ h("section", {
|
|
23493
23830
|
ref: u,
|
|
@@ -23550,14 +23887,14 @@ var xc = {
|
|
|
23550
23887
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
23551
23888
|
className: `select-setupguide__step is-${e.status}`,
|
|
23552
23889
|
children: [
|
|
23553
|
-
/* @__PURE__ */ m(
|
|
23890
|
+
/* @__PURE__ */ m(jc, { status: e.status }),
|
|
23554
23891
|
/* @__PURE__ */ h("span", {
|
|
23555
23892
|
className: "select-setupguide__text",
|
|
23556
23893
|
children: [/* @__PURE__ */ h("span", {
|
|
23557
23894
|
className: "select-setupguide__steptitle",
|
|
23558
23895
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
23559
23896
|
className: "select-setupguide__sr",
|
|
23560
|
-
children: [" — ",
|
|
23897
|
+
children: [" — ", Mc[e.status]]
|
|
23561
23898
|
})]
|
|
23562
23899
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
23563
23900
|
className: "select-setupguide__stepdesc",
|
|
@@ -23576,7 +23913,7 @@ var xc = {
|
|
|
23576
23913
|
})]
|
|
23577
23914
|
});
|
|
23578
23915
|
});
|
|
23579
|
-
function
|
|
23916
|
+
function Pc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
23580
23917
|
return /* @__PURE__ */ h("div", {
|
|
23581
23918
|
className: "select-setupnext",
|
|
23582
23919
|
children: [
|
|
@@ -23601,37 +23938,37 @@ function Cc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
23601
23938
|
}
|
|
23602
23939
|
//#endregion
|
|
23603
23940
|
//#region src/SelectTour.tsx
|
|
23604
|
-
var
|
|
23605
|
-
function
|
|
23941
|
+
var Fc = 6, Ic = 12;
|
|
23942
|
+
function Lc(e) {
|
|
23606
23943
|
let t = document.querySelector(e);
|
|
23607
23944
|
if (!t) return null;
|
|
23608
23945
|
let n = t.getBoundingClientRect();
|
|
23609
23946
|
return n.width === 0 && n.height === 0 ? null : {
|
|
23610
|
-
top: n.top -
|
|
23611
|
-
left: n.left -
|
|
23947
|
+
top: n.top - Fc,
|
|
23948
|
+
left: n.left - Fc,
|
|
23612
23949
|
width: n.width + 12,
|
|
23613
23950
|
height: n.height + 12
|
|
23614
23951
|
};
|
|
23615
23952
|
}
|
|
23616
|
-
function
|
|
23953
|
+
function Rc(e) {
|
|
23617
23954
|
let t = document.querySelector(e);
|
|
23618
23955
|
if (!t) return !1;
|
|
23619
23956
|
let n = t.getBoundingClientRect();
|
|
23620
23957
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
23621
23958
|
}
|
|
23622
|
-
function
|
|
23623
|
-
let s = l(() => e ? t.filter((e) =>
|
|
23959
|
+
function zc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
23960
|
+
let s = l(() => e ? t.filter((e) => Rc(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
23624
23961
|
o(() => {
|
|
23625
23962
|
e && p(0);
|
|
23626
23963
|
}, [e]);
|
|
23627
23964
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
23628
23965
|
if (!C) return;
|
|
23629
|
-
let e =
|
|
23966
|
+
let e = Lc(C.target);
|
|
23630
23967
|
v(e);
|
|
23631
23968
|
let t = x.current;
|
|
23632
23969
|
if (!e || !t) return;
|
|
23633
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
23634
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
23970
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + Ic, s = e.top;
|
|
23971
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + Ic, s + r > a - 8 && (s = e.top - r - Ic)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
23635
23972
|
top: s,
|
|
23636
23973
|
left: o
|
|
23637
23974
|
});
|
|
@@ -23733,7 +24070,7 @@ function Oc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
23733
24070
|
}
|
|
23734
24071
|
//#endregion
|
|
23735
24072
|
//#region src/SelectPlanCard.tsx
|
|
23736
|
-
var
|
|
24073
|
+
var Bc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summary: i, cta: a, featuresTitle: o, features: s, featured: c = !1, className: l, ...u }, d) {
|
|
23737
24074
|
return /* @__PURE__ */ h("div", {
|
|
23738
24075
|
ref: d,
|
|
23739
24076
|
...u,
|
|
@@ -23788,7 +24125,7 @@ var kc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23788
24125
|
})]
|
|
23789
24126
|
})]
|
|
23790
24127
|
});
|
|
23791
|
-
}),
|
|
24128
|
+
}), Vc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
23792
24129
|
return /* @__PURE__ */ h("div", {
|
|
23793
24130
|
ref: s,
|
|
23794
24131
|
...o,
|
|
@@ -23824,7 +24161,7 @@ var kc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23824
24161
|
]
|
|
23825
24162
|
});
|
|
23826
24163
|
});
|
|
23827
|
-
function
|
|
24164
|
+
function Hc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
|
|
23828
24165
|
let o = /* @__PURE__ */ h(p, { children: [
|
|
23829
24166
|
e && /* @__PURE__ */ m("span", {
|
|
23830
24167
|
className: "select-listrow__media",
|
|
@@ -23858,7 +24195,7 @@ function jc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
|
|
|
23858
24195
|
}
|
|
23859
24196
|
//#endregion
|
|
23860
24197
|
//#region src/SelectThumbnail.tsx
|
|
23861
|
-
var
|
|
24198
|
+
var Uc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
|
|
23862
24199
|
let [s, c] = d(!1);
|
|
23863
24200
|
return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
|
|
23864
24201
|
ref: a,
|
|
@@ -23883,7 +24220,7 @@ var Mc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
|
|
|
23883
24220
|
});
|
|
23884
24221
|
//#endregion
|
|
23885
24222
|
//#region src/SelectImageZoomModal.tsx
|
|
23886
|
-
function
|
|
24223
|
+
function Wc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
23887
24224
|
return /* @__PURE__ */ m(pa, {
|
|
23888
24225
|
open: e,
|
|
23889
24226
|
onClose: t,
|
|
@@ -23902,7 +24239,7 @@ function Nc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
23902
24239
|
}
|
|
23903
24240
|
//#endregion
|
|
23904
24241
|
//#region src/SelectZoomThumbnail.tsx
|
|
23905
|
-
function
|
|
24242
|
+
function Gc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
23906
24243
|
let [i, a] = d(!1);
|
|
23907
24244
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
23908
24245
|
type: "button",
|
|
@@ -23915,25 +24252,25 @@ function Pc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
|
23915
24252
|
cursor: "zoom-in",
|
|
23916
24253
|
display: "inline-flex"
|
|
23917
24254
|
},
|
|
23918
|
-
children: /* @__PURE__ */ m(
|
|
24255
|
+
children: /* @__PURE__ */ m(Uc, {
|
|
23919
24256
|
src: e,
|
|
23920
24257
|
size: n,
|
|
23921
24258
|
alt: t
|
|
23922
24259
|
})
|
|
23923
|
-
}), i && /* @__PURE__ */ m(
|
|
24260
|
+
}), i && /* @__PURE__ */ m(Wc, {
|
|
23924
24261
|
open: !0,
|
|
23925
24262
|
onClose: () => a(!1),
|
|
23926
24263
|
src: e,
|
|
23927
24264
|
alt: t,
|
|
23928
24265
|
title: r ?? t
|
|
23929
|
-
})] }) : /* @__PURE__ */ m(
|
|
24266
|
+
})] }) : /* @__PURE__ */ m(Uc, {
|
|
23930
24267
|
size: n,
|
|
23931
24268
|
alt: t
|
|
23932
24269
|
});
|
|
23933
24270
|
}
|
|
23934
24271
|
//#endregion
|
|
23935
24272
|
//#region src/SelectMediaCell.tsx
|
|
23936
|
-
var
|
|
24273
|
+
var Kc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
23937
24274
|
return /* @__PURE__ */ h("span", {
|
|
23938
24275
|
ref: a,
|
|
23939
24276
|
...i,
|
|
@@ -23955,7 +24292,7 @@ var Fc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
23955
24292
|
});
|
|
23956
24293
|
//#endregion
|
|
23957
24294
|
//#region src/SelectOfflineModal.tsx
|
|
23958
|
-
function
|
|
24295
|
+
function qc() {
|
|
23959
24296
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
23960
24297
|
return o(() => {
|
|
23961
24298
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -23978,7 +24315,7 @@ function Ic() {
|
|
|
23978
24315
|
}
|
|
23979
24316
|
//#endregion
|
|
23980
24317
|
//#region src/SelectKeyValueEditor.tsx
|
|
23981
|
-
function
|
|
24318
|
+
function Jc(e) {
|
|
23982
24319
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
23983
24320
|
name: String(e.name ?? e.key ?? ""),
|
|
23984
24321
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -23987,8 +24324,8 @@ function Lc(e) {
|
|
|
23987
24324
|
value: t == null ? "" : String(t)
|
|
23988
24325
|
})) : [];
|
|
23989
24326
|
}
|
|
23990
|
-
var
|
|
23991
|
-
let d =
|
|
24327
|
+
var Yc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valuePlaceholder: r = "Valor", keyOptions: i, addLabel: a = "Adicionar", max: o, helpText: s = "Linhas vazias serão ignoradas.", className: c, ...l }, u) {
|
|
24328
|
+
let d = Jc(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
23992
24329
|
...t,
|
|
23993
24330
|
...n
|
|
23994
24331
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -24052,7 +24389,7 @@ var Rc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
24052
24389
|
})
|
|
24053
24390
|
]
|
|
24054
24391
|
});
|
|
24055
|
-
}),
|
|
24392
|
+
}), Xc = (e) => String(e).padStart(2, "0"), Zc = {
|
|
24056
24393
|
"en-US": {
|
|
24057
24394
|
weekdays: [
|
|
24058
24395
|
"Su",
|
|
@@ -24111,34 +24448,34 @@ var Rc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
24111
24448
|
to: "Até",
|
|
24112
24449
|
cancel: "Cancelar",
|
|
24113
24450
|
apply: "Aplicar",
|
|
24114
|
-
formatDate: (e) => `${
|
|
24451
|
+
formatDate: (e) => `${Xc(e.getDate())} / ${Xc(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
24115
24452
|
}
|
|
24116
|
-
},
|
|
24453
|
+
}, Qc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), $c = (e) => new Date(e.getFullYear(), e.getMonth(), 1), el = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), tl = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), nl = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), rl = (e) => {
|
|
24117
24454
|
let t = /* @__PURE__ */ new Date();
|
|
24118
24455
|
return {
|
|
24119
24456
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
24120
24457
|
to: t
|
|
24121
24458
|
};
|
|
24122
|
-
},
|
|
24459
|
+
}, il = [
|
|
24123
24460
|
{
|
|
24124
24461
|
id: "15m",
|
|
24125
24462
|
label: "Last 15 minutes",
|
|
24126
|
-
range: () =>
|
|
24463
|
+
range: () => rl(15)
|
|
24127
24464
|
},
|
|
24128
24465
|
{
|
|
24129
24466
|
id: "1h",
|
|
24130
24467
|
label: "Last 1 hour",
|
|
24131
|
-
range: () =>
|
|
24468
|
+
range: () => rl(60)
|
|
24132
24469
|
},
|
|
24133
24470
|
{
|
|
24134
24471
|
id: "3h",
|
|
24135
24472
|
label: "Last 3 hours",
|
|
24136
|
-
range: () =>
|
|
24473
|
+
range: () => rl(180)
|
|
24137
24474
|
},
|
|
24138
24475
|
{
|
|
24139
24476
|
id: "24h",
|
|
24140
24477
|
label: "Last 24 hours",
|
|
24141
|
-
range: () =>
|
|
24478
|
+
range: () => rl(1440)
|
|
24142
24479
|
},
|
|
24143
24480
|
{
|
|
24144
24481
|
id: "3d",
|
|
@@ -24154,78 +24491,78 @@ var Rc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
24154
24491
|
id: "all",
|
|
24155
24492
|
label: "All",
|
|
24156
24493
|
range: () => ({
|
|
24157
|
-
from:
|
|
24158
|
-
to:
|
|
24494
|
+
from: Qc(/* @__PURE__ */ new Date()),
|
|
24495
|
+
to: Qc(/* @__PURE__ */ new Date())
|
|
24159
24496
|
})
|
|
24160
24497
|
}
|
|
24161
|
-
],
|
|
24162
|
-
let t =
|
|
24498
|
+
], al = (e) => {
|
|
24499
|
+
let t = Qc(/* @__PURE__ */ new Date());
|
|
24163
24500
|
return {
|
|
24164
|
-
from:
|
|
24501
|
+
from: el(t, -e),
|
|
24165
24502
|
to: t
|
|
24166
24503
|
};
|
|
24167
|
-
},
|
|
24168
|
-
let t =
|
|
24504
|
+
}, ol = (e) => {
|
|
24505
|
+
let t = el(Qc(/* @__PURE__ */ new Date()), -e);
|
|
24169
24506
|
return {
|
|
24170
24507
|
from: t,
|
|
24171
24508
|
to: t
|
|
24172
24509
|
};
|
|
24173
|
-
},
|
|
24510
|
+
}, sl = [
|
|
24174
24511
|
{
|
|
24175
24512
|
id: "today",
|
|
24176
24513
|
label: "Hoje",
|
|
24177
|
-
range: () =>
|
|
24514
|
+
range: () => al(0)
|
|
24178
24515
|
},
|
|
24179
24516
|
{
|
|
24180
24517
|
id: "yesterday",
|
|
24181
24518
|
label: "Ontem",
|
|
24182
|
-
range: () =>
|
|
24519
|
+
range: () => ol(1)
|
|
24183
24520
|
},
|
|
24184
24521
|
{
|
|
24185
24522
|
id: "7d",
|
|
24186
24523
|
label: "Últimos 7 dias",
|
|
24187
|
-
range: () =>
|
|
24524
|
+
range: () => al(6)
|
|
24188
24525
|
},
|
|
24189
24526
|
{
|
|
24190
24527
|
id: "10d",
|
|
24191
24528
|
label: "Últimos 10 dias",
|
|
24192
|
-
range: () =>
|
|
24529
|
+
range: () => al(9)
|
|
24193
24530
|
},
|
|
24194
24531
|
{
|
|
24195
24532
|
id: "15d",
|
|
24196
24533
|
label: "Últimos 15 dias",
|
|
24197
|
-
range: () =>
|
|
24534
|
+
range: () => al(14)
|
|
24198
24535
|
},
|
|
24199
24536
|
{
|
|
24200
24537
|
id: "20d",
|
|
24201
24538
|
label: "Últimos 20 dias",
|
|
24202
|
-
range: () =>
|
|
24539
|
+
range: () => al(19)
|
|
24203
24540
|
},
|
|
24204
24541
|
{
|
|
24205
24542
|
id: "30d",
|
|
24206
24543
|
label: "Últimos 30 dias",
|
|
24207
|
-
range: () =>
|
|
24544
|
+
range: () => al(29)
|
|
24208
24545
|
},
|
|
24209
24546
|
{
|
|
24210
24547
|
id: "90d",
|
|
24211
24548
|
label: "Últimos 90 dias",
|
|
24212
|
-
range: () =>
|
|
24549
|
+
range: () => al(89)
|
|
24213
24550
|
}
|
|
24214
24551
|
];
|
|
24215
|
-
function
|
|
24552
|
+
function cl(e) {
|
|
24216
24553
|
if (!e) return "—";
|
|
24217
24554
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
24218
24555
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
24219
24556
|
}
|
|
24220
|
-
var
|
|
24221
|
-
let p =
|
|
24557
|
+
var ll = r(function({ value: e, presets: t = il, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
24558
|
+
let p = Zc[a], g = Qc(/* @__PURE__ */ new Date()), _ = s ? Qc(s) : null, [v, y] = d(e ?? {
|
|
24222
24559
|
from: g,
|
|
24223
24560
|
to: g
|
|
24224
|
-
}), [b, x] = d(
|
|
24561
|
+
}), [b, x] = d($c((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = el($c(b), -$c(b).getDay()), T = Array.from({ length: 42 }, (e, t) => el(w, t)), E = (e) => _ ? Qc(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
24225
24562
|
className: "select-datepicker__placeholder",
|
|
24226
24563
|
children: "— / — / ——"
|
|
24227
24564
|
}), O = (e) => {
|
|
24228
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
24565
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Qc(t.from) ? {
|
|
24229
24566
|
from: e,
|
|
24230
24567
|
to: null
|
|
24231
24568
|
} : {
|
|
@@ -24235,7 +24572,7 @@ var Qc = r(function({ value: e, presets: t = qc, onApply: n, onCancel: r, accent
|
|
|
24235
24572
|
}, k = (e) => {
|
|
24236
24573
|
if (e.disabled || !e.range) return;
|
|
24237
24574
|
let t = e.range();
|
|
24238
|
-
y(t), C(e.id), t.from && x(
|
|
24575
|
+
y(t), C(e.id), t.from && x($c(t.from));
|
|
24239
24576
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
24240
24577
|
return /* @__PURE__ */ m("div", {
|
|
24241
24578
|
ref: f,
|
|
@@ -24281,7 +24618,7 @@ var Qc = r(function({ value: e, presets: t = qc, onApply: n, onCancel: r, accent
|
|
|
24281
24618
|
}),
|
|
24282
24619
|
o && /* @__PURE__ */ m("span", {
|
|
24283
24620
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
24284
|
-
children:
|
|
24621
|
+
children: cl(v[e])
|
|
24285
24622
|
})
|
|
24286
24623
|
]
|
|
24287
24624
|
}, e))
|
|
@@ -24293,7 +24630,7 @@ var Qc = r(function({ value: e, presets: t = qc, onApply: n, onCancel: r, accent
|
|
|
24293
24630
|
type: "button",
|
|
24294
24631
|
className: "select-datepicker__nav",
|
|
24295
24632
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
24296
|
-
onClick: () => x((e) =>
|
|
24633
|
+
onClick: () => x((e) => tl(e, -1)),
|
|
24297
24634
|
children: /* @__PURE__ */ m(U, {})
|
|
24298
24635
|
}),
|
|
24299
24636
|
/* @__PURE__ */ h("span", {
|
|
@@ -24308,7 +24645,7 @@ var Qc = r(function({ value: e, presets: t = qc, onApply: n, onCancel: r, accent
|
|
|
24308
24645
|
type: "button",
|
|
24309
24646
|
className: "select-datepicker__nav",
|
|
24310
24647
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
24311
|
-
onClick: () => x((e) =>
|
|
24648
|
+
onClick: () => x((e) => tl(e, 1)),
|
|
24312
24649
|
children: /* @__PURE__ */ m(ae, {})
|
|
24313
24650
|
})
|
|
24314
24651
|
]
|
|
@@ -24320,7 +24657,7 @@ var Qc = r(function({ value: e, presets: t = qc, onApply: n, onCancel: r, accent
|
|
|
24320
24657
|
className: "select-datepicker__weekday",
|
|
24321
24658
|
children: e
|
|
24322
24659
|
}, t)), T.map((e) => {
|
|
24323
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
24660
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && nl(e, v.from), i = !!v.to && nl(e, v.to), a = r || i, o = !!v.from && !!v.to && !nl(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Qc(v.from) && e < Qc(v.to) ? " select-datepicker__day--in-range" : "") + (o && r ? " select-datepicker__day--range-start" : "") + (o && i ? " select-datepicker__day--range-end" : ""), c = "select-datepicker__daybtn" + (a ? " is-selected" : "") + (nl(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
24324
24661
|
return /* @__PURE__ */ m("div", {
|
|
24325
24662
|
className: s,
|
|
24326
24663
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -24351,17 +24688,17 @@ var Qc = r(function({ value: e, presets: t = qc, onApply: n, onCancel: r, accent
|
|
|
24351
24688
|
})]
|
|
24352
24689
|
})
|
|
24353
24690
|
});
|
|
24354
|
-
}),
|
|
24355
|
-
function
|
|
24691
|
+
}), ul = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), dl = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), fl = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
24692
|
+
function pl(e, t) {
|
|
24356
24693
|
for (let r of t) {
|
|
24357
24694
|
var n;
|
|
24358
24695
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
24359
|
-
if (t != null && t.from && t != null && t.to &&
|
|
24696
|
+
if (t != null && t.from && t != null && t.to && dl(t.from, e.start) && dl(t.to, e.end)) return r.label;
|
|
24360
24697
|
}
|
|
24361
|
-
return
|
|
24698
|
+
return dl(e.start, e.end) ? fl(e.start) : `${fl(e.start)} – ${fl(e.end)}`;
|
|
24362
24699
|
}
|
|
24363
|
-
function
|
|
24364
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
24700
|
+
function ml({ value: e, onChange: t, presets: n = sl, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
24701
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? ul(/* @__PURE__ */ new Date());
|
|
24365
24702
|
return /* @__PURE__ */ m(fn, {
|
|
24366
24703
|
active: c,
|
|
24367
24704
|
onClose: () => l(!1),
|
|
@@ -24375,9 +24712,9 @@ function rl({ value: e, onChange: t, presets: n = Xc, maxDate: r, placement: i =
|
|
|
24375
24712
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
24376
24713
|
trailingIcon: /* @__PURE__ */ m(W, {}),
|
|
24377
24714
|
onClick: () => l((e) => !e),
|
|
24378
|
-
children:
|
|
24715
|
+
children: pl(e, n)
|
|
24379
24716
|
}),
|
|
24380
|
-
children: /* @__PURE__ */ m(
|
|
24717
|
+
children: /* @__PURE__ */ m(ll, {
|
|
24381
24718
|
embedded: !0,
|
|
24382
24719
|
locale: "pt-BR",
|
|
24383
24720
|
showTime: !1,
|
|
@@ -24390,8 +24727,8 @@ function rl({ value: e, onChange: t, presets: n = Xc, maxDate: r, placement: i =
|
|
|
24390
24727
|
onCancel: () => l(!1),
|
|
24391
24728
|
onApply: (e) => {
|
|
24392
24729
|
e.from && t({
|
|
24393
|
-
start:
|
|
24394
|
-
end:
|
|
24730
|
+
start: ul(e.from),
|
|
24731
|
+
end: ul(e.to ?? e.from)
|
|
24395
24732
|
}), l(!1);
|
|
24396
24733
|
}
|
|
24397
24734
|
})
|
|
@@ -24399,7 +24736,7 @@ function rl({ value: e, onChange: t, presets: n = Xc, maxDate: r, placement: i =
|
|
|
24399
24736
|
}
|
|
24400
24737
|
//#endregion
|
|
24401
24738
|
//#region src/SelectNumberField.tsx
|
|
24402
|
-
var
|
|
24739
|
+
var hl = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: c = !1, hint: l, error: u, onBlur: f, placeholder: p, size: g = "md", className: _, ...v }, y) {
|
|
24403
24740
|
let b = s(), x = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), S = (e) => Math.round(e * 1e6) / 1e6, C = t ?? 0, w = r != null && C <= r, T = i != null && C >= i, [E, D] = d(!1), [O, k] = d(""), A = o && E ? O : t == null ? "" : String(t), j = (e) => {
|
|
24404
24741
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
24405
24742
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -24473,7 +24810,7 @@ var il = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
24473
24810
|
});
|
|
24474
24811
|
//#endregion
|
|
24475
24812
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
24476
|
-
function
|
|
24813
|
+
function gl({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Adicionar", rowLabel: a, min: o = 0, max: s, addDisabled: c = !1, reorderable: l = !1, chrome: u = "card", emptyState: d, helpText: f }) {
|
|
24477
24814
|
let g = !c && (s == null || e.length < s), _ = e.length > o, v = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
|
|
24478
24815
|
let i = n + r;
|
|
24479
24816
|
if (i < 0 || i >= e.length) return;
|
|
@@ -24568,7 +24905,7 @@ function al({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24568
24905
|
}
|
|
24569
24906
|
//#endregion
|
|
24570
24907
|
//#region src/SelectBuilderLayout.tsx
|
|
24571
|
-
function
|
|
24908
|
+
function _l({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, preview: l, children: u }) {
|
|
24572
24909
|
let d = v();
|
|
24573
24910
|
return /* @__PURE__ */ m(li, {
|
|
24574
24911
|
title: e,
|
|
@@ -24608,7 +24945,7 @@ function ol({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24608
24945
|
}
|
|
24609
24946
|
//#endregion
|
|
24610
24947
|
//#region src/SelectBuilderWorkspace.tsx
|
|
24611
|
-
function
|
|
24948
|
+
function vl({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveLabel: a = "Salvar", saveDisabled: o = !1, cancelTo: s, error: c, sections: u, activeId: f, onActiveChange: g, searchable: _ = !1, preview: y, previewLayout: b = "fill", toolbar: x, dirty: S = !1, dirtyLabel: C = "Alterações não salvas" }) {
|
|
24612
24949
|
var w;
|
|
24613
24950
|
let T = v(), [E, D] = d(((w = u[0]) == null ? void 0 : w.id) ?? ""), [O, k] = d(""), A = f ?? E, j = u.find((e) => e.id === A) ?? u[0], M = (e) => {
|
|
24614
24951
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -24768,10 +25105,10 @@ function sl({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24768
25105
|
}
|
|
24769
25106
|
//#endregion
|
|
24770
25107
|
//#region src/SelectFlowCanvas.tsx
|
|
24771
|
-
var
|
|
24772
|
-
function
|
|
25108
|
+
var yl = (e) => Math.round(e * 100) / 100;
|
|
25109
|
+
function bl({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: c = 1, onZoomChange: l, minZoom: u = .5, maxZoom: f = 1.3, onBackgroundClick: p, ariaLabel: g }) {
|
|
24773
25110
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
24774
|
-
let t =
|
|
25111
|
+
let t = yl(Math.min(f, Math.max(u, e)));
|
|
24775
25112
|
o === void 0 && y(t), l == null || l(t);
|
|
24776
25113
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
24777
25114
|
return /* @__PURE__ */ h("div", {
|
|
@@ -24887,7 +25224,7 @@ function ll({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
24887
25224
|
})]
|
|
24888
25225
|
});
|
|
24889
25226
|
}
|
|
24890
|
-
function
|
|
25227
|
+
function xl({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neutral", icon: o, order: s, eyebrow: c, title: l, subtitle: u, tags: d, titleTone: f = "default", selected: p = !1, active: g = !1, muted: _ = !1, invalid: v = !1, onClick: y, ariaLabel: b }) {
|
|
24891
25228
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
24892
25229
|
left: e,
|
|
24893
25230
|
top: t,
|
|
@@ -24963,7 +25300,7 @@ function ul({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
24963
25300
|
})]
|
|
24964
25301
|
});
|
|
24965
25302
|
}
|
|
24966
|
-
function
|
|
25303
|
+
function Sl({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
24967
25304
|
return /* @__PURE__ */ h("div", {
|
|
24968
25305
|
className: "select-flowpage",
|
|
24969
25306
|
children: [
|
|
@@ -25025,7 +25362,7 @@ function dl({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
25025
25362
|
}
|
|
25026
25363
|
//#endregion
|
|
25027
25364
|
//#region src/SelectSwitchField.tsx
|
|
25028
|
-
var
|
|
25365
|
+
var Cl = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
25029
25366
|
return /* @__PURE__ */ h("div", {
|
|
25030
25367
|
ref: c,
|
|
25031
25368
|
...s,
|
|
@@ -25053,7 +25390,7 @@ var fl = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
25053
25390
|
children: i
|
|
25054
25391
|
})]
|
|
25055
25392
|
});
|
|
25056
|
-
}),
|
|
25393
|
+
}), wl = [
|
|
25057
25394
|
"#212529",
|
|
25058
25395
|
"#495057",
|
|
25059
25396
|
"#868E96",
|
|
@@ -25070,13 +25407,13 @@ var fl = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
25070
25407
|
"#DB2777",
|
|
25071
25408
|
"#9333EA",
|
|
25072
25409
|
"#6D28D9"
|
|
25073
|
-
],
|
|
25074
|
-
function
|
|
25075
|
-
let t =
|
|
25410
|
+
], Tl = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
25411
|
+
function El(e) {
|
|
25412
|
+
let t = Tl.exec((e ?? "").trim());
|
|
25076
25413
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
25077
25414
|
}
|
|
25078
|
-
function
|
|
25079
|
-
let t =
|
|
25415
|
+
function Dl(e) {
|
|
25416
|
+
let t = El(e);
|
|
25080
25417
|
if (!t) return 0;
|
|
25081
25418
|
let [n, r, i] = [
|
|
25082
25419
|
1,
|
|
@@ -25085,13 +25422,13 @@ function gl(e) {
|
|
|
25085
25422
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
25086
25423
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
25087
25424
|
}
|
|
25088
|
-
function
|
|
25089
|
-
let [n, r] = [
|
|
25425
|
+
function Ol(e, t) {
|
|
25426
|
+
let [n, r] = [Dl(e), Dl(t)].sort((e, t) => t - e);
|
|
25090
25427
|
return (n + .05) / (r + .05);
|
|
25091
25428
|
}
|
|
25092
|
-
var
|
|
25093
|
-
function
|
|
25094
|
-
let t =
|
|
25429
|
+
var kl = (e) => Math.min(1, Math.max(0, e));
|
|
25430
|
+
function Al(e) {
|
|
25431
|
+
let t = El(e) ?? "#000000", [n, r, i] = [
|
|
25095
25432
|
1,
|
|
25096
25433
|
3,
|
|
25097
25434
|
5
|
|
@@ -25102,7 +25439,7 @@ function yl(e) {
|
|
|
25102
25439
|
v: a
|
|
25103
25440
|
};
|
|
25104
25441
|
}
|
|
25105
|
-
function
|
|
25442
|
+
function jl({ h: e, s: t, v: n }) {
|
|
25106
25443
|
let r = (r) => {
|
|
25107
25444
|
let i = (r + e / 60) % 6;
|
|
25108
25445
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -25113,26 +25450,26 @@ function bl({ h: e, s: t, v: n }) {
|
|
|
25113
25450
|
r(1)
|
|
25114
25451
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
25115
25452
|
}
|
|
25116
|
-
function
|
|
25117
|
-
let [n, r] = d(() =>
|
|
25453
|
+
function Ml({ hex: e, onPick: t }) {
|
|
25454
|
+
let [n, r] = d(() => Al(e ?? "#1D4ED8")), i = u(n), a = (e) => {
|
|
25118
25455
|
i.current = e, r(e);
|
|
25119
25456
|
};
|
|
25120
25457
|
o(() => {
|
|
25121
|
-
if (!e ||
|
|
25122
|
-
let t =
|
|
25458
|
+
if (!e || jl(i.current) === e) return;
|
|
25459
|
+
let t = Al(e);
|
|
25123
25460
|
a(t.s === 0 || t.v === 0 ? {
|
|
25124
25461
|
...t,
|
|
25125
25462
|
h: i.current.h
|
|
25126
25463
|
} : t);
|
|
25127
25464
|
}, [e]);
|
|
25128
25465
|
let s = (e) => {
|
|
25129
|
-
a(e), t(
|
|
25466
|
+
a(e), t(jl(e));
|
|
25130
25467
|
}, c = (e, t, n) => {
|
|
25131
25468
|
var r;
|
|
25132
25469
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
25133
25470
|
let i = (t) => {
|
|
25134
25471
|
let r = e.getBoundingClientRect();
|
|
25135
|
-
n(
|
|
25472
|
+
n(kl((t.clientX - r.left) / (r.width || 1)), kl((t.clientY - r.top) / (r.height || 1)));
|
|
25136
25473
|
};
|
|
25137
25474
|
i(t);
|
|
25138
25475
|
let a = (e) => i(e), o = () => {
|
|
@@ -25142,20 +25479,20 @@ function xl({ hex: e, onPick: t }) {
|
|
|
25142
25479
|
}, l = (e) => {
|
|
25143
25480
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, o = e.key === "ArrowLeft" ? {
|
|
25144
25481
|
h: n,
|
|
25145
|
-
s:
|
|
25482
|
+
s: kl(r - t),
|
|
25146
25483
|
v: a
|
|
25147
25484
|
} : e.key === "ArrowRight" ? {
|
|
25148
25485
|
h: n,
|
|
25149
|
-
s:
|
|
25486
|
+
s: kl(r + t),
|
|
25150
25487
|
v: a
|
|
25151
25488
|
} : e.key === "ArrowUp" ? {
|
|
25152
25489
|
h: n,
|
|
25153
25490
|
s: r,
|
|
25154
|
-
v:
|
|
25491
|
+
v: kl(a + t)
|
|
25155
25492
|
} : e.key === "ArrowDown" ? {
|
|
25156
25493
|
h: n,
|
|
25157
25494
|
s: r,
|
|
25158
|
-
v:
|
|
25495
|
+
v: kl(a - t)
|
|
25159
25496
|
} : null;
|
|
25160
25497
|
o && (e.preventDefault(), s(o));
|
|
25161
25498
|
}, f = (e) => {
|
|
@@ -25165,11 +25502,11 @@ function xl({ hex: e, onPick: t }) {
|
|
|
25165
25502
|
s: r,
|
|
25166
25503
|
v: a
|
|
25167
25504
|
}));
|
|
25168
|
-
}, g =
|
|
25505
|
+
}, g = jl({
|
|
25169
25506
|
h: n.h,
|
|
25170
25507
|
s: 1,
|
|
25171
25508
|
v: 1
|
|
25172
|
-
}), _ =
|
|
25509
|
+
}), _ = jl(n);
|
|
25173
25510
|
return /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
25174
25511
|
className: "select-colorfield__sv",
|
|
25175
25512
|
style: { backgroundColor: g },
|
|
@@ -25213,24 +25550,24 @@ function xl({ hex: e, onPick: t }) {
|
|
|
25213
25550
|
})
|
|
25214
25551
|
})] });
|
|
25215
25552
|
}
|
|
25216
|
-
var
|
|
25217
|
-
function
|
|
25553
|
+
var Nl = (e) => e.toFixed(1).replace(".", ",");
|
|
25554
|
+
function Pl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: c = wl, disabled: l = !1, allowEmpty: u = !1, contrastWith: f, contrastLabel: g = "o texto", id: _ }) {
|
|
25218
25555
|
let v = s(), y = _ ?? `color-${v}`, [b, x] = d(!1), [S, C] = d(i ?? ""), [w, T] = d(null);
|
|
25219
25556
|
o(() => {
|
|
25220
25557
|
C(i ?? ""), T(null);
|
|
25221
25558
|
}, [i]);
|
|
25222
|
-
let E =
|
|
25559
|
+
let E = El(i ?? ""), D = (e) => {
|
|
25223
25560
|
if (!e.trim()) {
|
|
25224
25561
|
u ? (T(null), a("")) : C(i ?? "");
|
|
25225
25562
|
return;
|
|
25226
25563
|
}
|
|
25227
|
-
let t =
|
|
25564
|
+
let t = El(e);
|
|
25228
25565
|
if (!t) {
|
|
25229
25566
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
25230
25567
|
return;
|
|
25231
25568
|
}
|
|
25232
25569
|
T(null), C(t), t !== E && a(t);
|
|
25233
|
-
}, O = f ?
|
|
25570
|
+
}, O = f ? El(f) : null, k = E && O ? Ol(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
25234
25571
|
return /* @__PURE__ */ h("div", {
|
|
25235
25572
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
25236
25573
|
children: [
|
|
@@ -25258,7 +25595,7 @@ function Cl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
25258
25595
|
children: /* @__PURE__ */ h("div", {
|
|
25259
25596
|
className: "select-colorfield__panel",
|
|
25260
25597
|
children: [
|
|
25261
|
-
/* @__PURE__ */ m(
|
|
25598
|
+
/* @__PURE__ */ m(Ml, {
|
|
25262
25599
|
hex: E,
|
|
25263
25600
|
onPick: D
|
|
25264
25601
|
}),
|
|
@@ -25267,7 +25604,7 @@ function Cl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
25267
25604
|
role: "group",
|
|
25268
25605
|
"aria-label": "Cores prontas",
|
|
25269
25606
|
children: c.map((e) => {
|
|
25270
|
-
let t =
|
|
25607
|
+
let t = El(e) ?? e, n = t === E;
|
|
25271
25608
|
return /* @__PURE__ */ m("button", {
|
|
25272
25609
|
type: "button",
|
|
25273
25610
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -25298,7 +25635,7 @@ function Cl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
25298
25635
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
25299
25636
|
value: S,
|
|
25300
25637
|
onChange: (e) => {
|
|
25301
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
25638
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && El(e.target.value) && D(e.target.value);
|
|
25302
25639
|
},
|
|
25303
25640
|
onBlur: () => D(S),
|
|
25304
25641
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -25321,14 +25658,14 @@ function Cl({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
25321
25658
|
}) : null : /* @__PURE__ */ h("p", {
|
|
25322
25659
|
id: `${y}-hint`,
|
|
25323
25660
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
25324
|
-
children: [k >= 4.5 ? `Contraste com ${g}: ${
|
|
25661
|
+
children: [k >= 4.5 ? `Contraste com ${g}: ${Nl(k)}:1 — legível.` : `Contraste com ${g}: ${Nl(k)}:1 — difícil de ler. Escolha uma cor ${Dl(E) < Dl(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ h(p, { children: [" ", n] }) : null]
|
|
25325
25662
|
})
|
|
25326
25663
|
]
|
|
25327
25664
|
});
|
|
25328
25665
|
}
|
|
25329
25666
|
//#endregion
|
|
25330
25667
|
//#region src/SelectProgressBar.tsx
|
|
25331
|
-
var
|
|
25668
|
+
var Fl = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "md", label: i, valueLabel: a, caption: o, indeterminate: s = !1, ariaLabel: c, loading: l = !1, className: u, ...d }, f) {
|
|
25332
25669
|
if (l) return /* @__PURE__ */ h("div", {
|
|
25333
25670
|
ref: f,
|
|
25334
25671
|
...d,
|
|
@@ -25373,7 +25710,7 @@ var wl = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25373
25710
|
})
|
|
25374
25711
|
]
|
|
25375
25712
|
});
|
|
25376
|
-
}),
|
|
25713
|
+
}), Il = r(function({ icon: e, accent: t, title: n, description: r, badge: i, meta: a, cta: o, to: s, onClick: c, selected: l, disabled: u = !1, className: d, ...f }, g) {
|
|
25377
25714
|
let v = `select-choicecard${l ? " is-selected" : ""}${u ? " is-disabled" : ""}${d ? " " + d : ""}`, y = t ? { "--select-choice-accent": t } : void 0, b = /* @__PURE__ */ h(p, { children: [
|
|
25378
25715
|
/* @__PURE__ */ h("span", {
|
|
25379
25716
|
className: "select-choicecard__top",
|
|
@@ -25434,7 +25771,7 @@ var wl = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
25434
25771
|
children: b
|
|
25435
25772
|
});
|
|
25436
25773
|
});
|
|
25437
|
-
function
|
|
25774
|
+
function Ll({ badge: e = !0 }) {
|
|
25438
25775
|
return /* @__PURE__ */ h("div", {
|
|
25439
25776
|
className: "select-choicecard select-choicecard--skeleton",
|
|
25440
25777
|
"aria-hidden": "true",
|
|
@@ -25455,7 +25792,7 @@ function El({ badge: e = !0 }) {
|
|
|
25455
25792
|
]
|
|
25456
25793
|
});
|
|
25457
25794
|
}
|
|
25458
|
-
var
|
|
25795
|
+
var Rl = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, className: i, style: a, ...o }, s) {
|
|
25459
25796
|
return /* @__PURE__ */ m("div", {
|
|
25460
25797
|
ref: s,
|
|
25461
25798
|
...o,
|
|
@@ -25465,16 +25802,16 @@ var Dl = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
25465
25802
|
"--select-choice-min": t,
|
|
25466
25803
|
...a
|
|
25467
25804
|
},
|
|
25468
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(
|
|
25805
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ m(Ll, {}, t)) : e
|
|
25469
25806
|
});
|
|
25470
|
-
}),
|
|
25807
|
+
}), zl = 960, Bl = Math.round(zl * 210 / 297), Vl = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: s = [], issuedAt: c, verificationCode: l, eyebrow: f, className: g }, _) {
|
|
25471
25808
|
let v = u(null), [y, b] = d(.5);
|
|
25472
25809
|
o(() => {
|
|
25473
25810
|
let e = v.current;
|
|
25474
25811
|
if (!e) return;
|
|
25475
25812
|
let t = () => {
|
|
25476
25813
|
let t = e.clientWidth;
|
|
25477
|
-
t > 0 && b(Math.min(1, t /
|
|
25814
|
+
t > 0 && b(Math.min(1, t / zl));
|
|
25478
25815
|
};
|
|
25479
25816
|
if (t(), typeof ResizeObserver > "u") return;
|
|
25480
25817
|
let n = new ResizeObserver(t);
|
|
@@ -25482,7 +25819,7 @@ var Dl = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
25482
25819
|
}, []);
|
|
25483
25820
|
let x = e === "front", S = {
|
|
25484
25821
|
"--select-cert-accent": t || void 0,
|
|
25485
|
-
height:
|
|
25822
|
+
height: Bl * y + 2
|
|
25486
25823
|
};
|
|
25487
25824
|
return /* @__PURE__ */ m("div", {
|
|
25488
25825
|
ref: (e) => {
|
|
@@ -25495,8 +25832,8 @@ var Dl = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
25495
25832
|
children: /* @__PURE__ */ m("div", {
|
|
25496
25833
|
className: "select-certpreview__sheet",
|
|
25497
25834
|
style: {
|
|
25498
|
-
width:
|
|
25499
|
-
height:
|
|
25835
|
+
width: zl,
|
|
25836
|
+
height: Bl,
|
|
25500
25837
|
transform: `scale(${y})`
|
|
25501
25838
|
},
|
|
25502
25839
|
children: /* @__PURE__ */ h("div", {
|
|
@@ -25569,13 +25906,13 @@ var Dl = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
25569
25906
|
});
|
|
25570
25907
|
//#endregion
|
|
25571
25908
|
//#region src/SelectImageField.tsx
|
|
25572
|
-
function
|
|
25909
|
+
function Hl(e) {
|
|
25573
25910
|
return new Promise((t, n) => {
|
|
25574
25911
|
let r = new FileReader();
|
|
25575
25912
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
25576
25913
|
});
|
|
25577
25914
|
}
|
|
25578
|
-
var
|
|
25915
|
+
var Ul = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
25579
25916
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
25580
25917
|
let t = e[0];
|
|
25581
25918
|
if (!t) {
|
|
@@ -25583,7 +25920,7 @@ var Ml = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25583
25920
|
return;
|
|
25584
25921
|
}
|
|
25585
25922
|
if (_(null), !s) {
|
|
25586
|
-
n(await
|
|
25923
|
+
n(await Hl(t)), p([]);
|
|
25587
25924
|
return;
|
|
25588
25925
|
}
|
|
25589
25926
|
p([t]);
|
|
@@ -25615,7 +25952,7 @@ var Ml = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25615
25952
|
children: g
|
|
25616
25953
|
})]
|
|
25617
25954
|
});
|
|
25618
|
-
}),
|
|
25955
|
+
}), Wl = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
25619
25956
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
25620
25957
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
25621
25958
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -25661,6 +25998,6 @@ var Ml = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
25661
25998
|
});
|
|
25662
25999
|
});
|
|
25663
26000
|
//#endregion
|
|
25664
|
-
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, St as AwardIcon, Ce as BellIcon, bt as BookIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, U as ChevronLeftIcon, ae as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, xt as FileDownloadIcon, K as FilterIcon, ie as GithubIcon, _e as GlobeIcon, H as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, wt as PaletteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, yt as PlayCircleIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, tr as SELECT_CARD_BRANDS,
|
|
26001
|
+
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, St as AwardIcon, Ce as BellIcon, bt as BookIcon, pe as BookmarkIcon, lt as BroadcastIcon, qe as BuildingIcon, rt as CalendarIcon, gt as CartIcon, ft as ChartLineIcon, We as CheckCircleIcon, Ve as CheckIcon, W as ChevronDownIcon, U as ChevronLeftIcon, ae as ChevronRightIcon, it as ChevronUpIcon, ot as ClipboardIcon, fe as ClockIcon, le as CloseIcon, ce as CopyIcon, $e as CreditCardIcon, Ee as CubeIcon, ct as DiscountIcon, ue as DotsHorizontalIcon, et as EditIcon, at as ExportIcon, q as ExternalLinkIcon, He as EyeIcon, Ue as EyeOffIcon, Ie as FacebookIcon, xt as FileDownloadIcon, K as FilterIcon, ie as GithubIcon, _e as GlobeIcon, H as GoogleIcon, be as HelpIcon, Xe as HomeIcon, ye as InfoIcon, Je as KeyIcon, dt as LinkIcon, nt as LockIcon, Fe as MailIcon, _t as MenuIcon, ht as MinusCircleIcon, Ae as MobileIcon, ke as MonitorIcon, Oe as MoonIcon, st as NoteIcon, wt as PaletteIcon, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, yt as PlayCircleIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, tr as SELECT_CARD_BRANDS, wl as SELECT_COLOR_PRESETS, _a as SELECT_COL_DATETIME, va as SELECT_COL_ID, Pn as SELECT_COUNTRIES, sl as SELECT_DAILY_PRESETS, il as SELECT_DATE_PRESETS, Wn as SELECT_SPACE, Bn as SELECT_TRANSACTION_STATUS, oe as SearchIcon, Wl as SelectAccordion, ca as SelectActionCard, Hn as SelectActionList, Un as SelectActionMenu, Qt as SelectAddButton, Aa as SelectAddCard, Ut as SelectAlert, la as SelectAppTile, B as SelectAuthFx, qr as SelectAvatar, ei as SelectBackLink, zn as SelectBadge, Io as SelectBalanceCard, vn as SelectBankAccountField, ds as SelectBarChart, Qn as SelectBox, Vs as SelectBoxPlot, _l as SelectBuilderLayout, vl as SelectBuilderWorkspace, Ps as SelectBullet, fc as SelectBump, V as SelectButton, Us as SelectCalendarHeatmap, Bs as SelectCandlestick, re as SelectCard, ja as SelectCardGrid, Vl as SelectCertificatePreview, Xo as SelectChartCard, Mt as SelectCheckbox, Il as SelectChoiceCard, Ll as SelectChoiceCardSkeleton, Rl as SelectChoiceGrid, Qs as SelectChord, yc as SelectCirclePack, sa as SelectCollapsible, Pl as SelectColorField, gs as SelectColumnChart, ms as SelectComboChart, mn as SelectCombobox, ha as SelectConfirmModal, aa as SelectCopyRow, oa as SelectCopyableId, ua as SelectCreateTile, ka as SelectDataTable, go as SelectDateField, ll as SelectDatePicker, ml as SelectDateRangeField, Oc as SelectDetailList, kc as SelectDetailRow, ur as SelectDisclosureButton, Kr as SelectDivider, Ht as SelectDocumentField, hs as SelectDonut, S as SelectDotField, Ks as SelectDumbbell, Lo as SelectFeeBreakdown, jt as SelectField, hn as SelectFieldGrid, Zt as SelectFileDropzone, Wt as SelectFileTile, xo as SelectFilterBar, ia as SelectFilterChip, bl as SelectFlowCanvas, Sl as SelectFlowLayout, xl as SelectFlowNode, fi as SelectFormLayout, ga as SelectFormModal, _s as SelectFunnel, Ss as SelectGauge, Js as SelectGaugeBands, sc as SelectGlobe, Yn as SelectGrid, Cs as SelectHeatmap, $s as SelectHexbin, Qa as SelectHideMoneyToggle, js as SelectHorizontalBar, gc as SelectIcicle, xi as SelectIcon, J as SelectIconButton, Xr as SelectIdentityFooter, Ul as SelectImageField, en as SelectImageUploadField, $t as SelectImageUrlsField, Wc as SelectImageZoomModal, kt as SelectInfoTip, Jn as SelectInline, Yo as SelectInsight, Hr as SelectJsonViewer, Yc as SelectKeyValueEditor, Ro as SelectKpiCard, At as SelectLabelRow, Pa as SelectLayoutThumb, fs as SelectLineChart, Gr as SelectLinkButton, Vc as SelectListCard, Hc as SelectListRow, ci as SelectLoader, qs as SelectMarimekko, ro as SelectMarkStack, Kc as SelectMediaCell, Zi as SelectMenu, ra as SelectMenuButton, na as SelectMenuDivider, ta as SelectMenuHeading, $i as SelectMenuItem, ea as SelectMenuLink, Za as SelectMetricDelta, pa as SelectModal, Ya as SelectMoney, Rt as SelectMoneyField, bc as SelectNetwork, Si as SelectNote, hl as SelectNumberField, $a as SelectOfferPrice, qc as SelectOfflineModal, Jr as SelectOptionList, Yr as SelectOptionRow, Zr as SelectOtpInput, li as SelectPage, Ii as SelectPagination, Ti as SelectPanel, pc as SelectParallel, lc as SelectPareto, si as SelectPasswordStrength, lr as SelectPaymentBrand, In as SelectPhoneField, Bc as SelectPlanCard, Ws as SelectPolarArea, fn as SelectPopover, Fo as SelectPreviewFrame, Fl as SelectProgressBar, ws as SelectProgressList, dc as SelectPyramid, Rs as SelectRadar, Es as SelectRadialBar, Ln as SelectRadioGroup, Hs as SelectRangeBar, to as SelectRating, no as SelectRatingQuote, Ma as SelectRecordCard, gl as SelectRepeatingFieldArray, ti as SelectResendButton, ri as SelectRetryStatus, ma as SelectRowActions, zs as SelectSankey, Ls as SelectScatter, Ni as SelectSearchInput, xc as SelectSearchMenu, Cc as SelectSearchMenuOption, Ei as SelectSection, Rn as SelectSegmented, tn as SelectSelect, Ja as SelectSensitiveValue, Ci as SelectSettingList, wi as SelectSettingRow, Nc as SelectSetupGuide, Pc as SelectSetupNext, Mi as SelectSideNav, yi as SelectSkeleton, Gs as SelectSlope, us as SelectSparkline, La as SelectSplitChain, qn as SelectStack, ps as SelectStackedArea, Vn as SelectStatusBadge, Ac as SelectSteps, Ys as SelectStreamGraph, Xs as SelectSunburst, Co as SelectSurface, yn as SelectSwitch, Cl as SelectSwitchField, Gi as SelectTable, Yi as SelectTableCell, Xi as SelectTableEmpty, Ji as SelectTableRow, Di as SelectTabs, So as SelectTagSelect, $n as SelectText, Nt as SelectTextarea, Ec as SelectThemeSwitcher, Uc as SelectThumbnail, cc as SelectTicker, Wr as SelectTimeline, Ao as SelectToastProvider, bn as SelectToggleList, Sn as SelectTogglePanel, xn as SelectToggleRow, Ot as SelectTooltip, zc as SelectTour, _c as SelectTree, Is as SelectTreemap, Pt as SelectUnitInput, qi as SelectUserCell, Ka as SelectValueVisibilityProvider, vc as SelectVenn, Zs as SelectViolin, uc as SelectWaffle, Ms as SelectWaterfall, ec as SelectWordCloud, da as SelectWorkspaceSwitcher, Gc as SelectZoomThumbnail, ve as SelectorIcon, tt as SendIcon, de as Setting4Icon, Ze as SettingsIcon, Be as ShieldIcon, ge as SplitIcon, he as StarIcon, pt as StoreIcon, vt as StorefrontIcon, De as SunIcon, we as TerminalIcon, Ye as TrashIcon, ut as TruckIcon, se as UploadIcon, Se as UserIcon, Ct as UsersIcon, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, Ol as contrastRatio, un as detectSelectTheme, Fn as dialCodeOf, Ho as formatInsightImpact, Al as hexToHsv, jl as hsvToHex, El as normalizeHex, oi as passwordScore, Tc as resolveSelectTheme, ir as selectCardBrand, ar as selectCardBrandLabel, Da as useSelectPageSize, jo as useSelectToast, qa as useSelectValueVisibility };
|
|
25665
26002
|
|
|
25666
26003
|
//# sourceMappingURL=index.js.map
|