@selectwin/kit 0.1.98 → 0.1.100
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/SelectKpiCard.d.ts +8 -0
- package/dist/SelectModal.d.ts +4 -1
- package/dist/SelectRetryStatus.d.ts +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +592 -506
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4997,7 +4997,83 @@ var Yr = r(function({ onResend: e, seconds: t = 30, idleLabel: n = "Reenviar có
|
|
|
4997
4997
|
disabled: f,
|
|
4998
4998
|
children: p
|
|
4999
4999
|
});
|
|
5000
|
-
})
|
|
5000
|
+
});
|
|
5001
|
+
//#endregion
|
|
5002
|
+
//#region src/SelectRetryStatus.tsx
|
|
5003
|
+
function Xr(e) {
|
|
5004
|
+
return e ? Math.max(0, Math.ceil((e - Date.now()) / 1e3)) : 0;
|
|
5005
|
+
}
|
|
5006
|
+
function Zr({ phase: e, nextAttemptAt: t, waitMs: n, attempt: r = 0, mark: i, action: a, waitingLabel: s = (e) => /* @__PURE__ */ h(p, { children: ["Nova tentativa em ", /* @__PURE__ */ h("span", {
|
|
5007
|
+
className: "select-retry__num",
|
|
5008
|
+
children: [e, "s"]
|
|
5009
|
+
})] }), tryingLabel: c = "Reconectando…", doneLabel: l = "Conexão restabelecida", attemptLabel: u = (e) => e === 1 ? "1 tentativa sem resposta" : `${e} tentativas sem resposta`, className: f }) {
|
|
5010
|
+
let [g, _] = d(() => Xr(t));
|
|
5011
|
+
o(() => {
|
|
5012
|
+
if (_(Xr(t)), e !== "waiting" || !t) return;
|
|
5013
|
+
let n = setInterval(() => _(Xr(t)), 250);
|
|
5014
|
+
return () => clearInterval(n);
|
|
5015
|
+
}, [e, t]);
|
|
5016
|
+
let v;
|
|
5017
|
+
if (e === "waiting" && t && n) {
|
|
5018
|
+
let e = Math.max(0, t - Date.now());
|
|
5019
|
+
v = {
|
|
5020
|
+
"--select-retry-from": String(Math.min(1, e / n)),
|
|
5021
|
+
animationDuration: `${e}ms`
|
|
5022
|
+
};
|
|
5023
|
+
}
|
|
5024
|
+
return /* @__PURE__ */ h("div", {
|
|
5025
|
+
className: `select-retry select-retry--${e}${f ? " " + f : ""}`,
|
|
5026
|
+
children: [
|
|
5027
|
+
/* @__PURE__ */ h("div", {
|
|
5028
|
+
className: "select-retry__line",
|
|
5029
|
+
role: "status",
|
|
5030
|
+
"aria-live": "polite",
|
|
5031
|
+
children: [
|
|
5032
|
+
e === "waiting" && /* @__PURE__ */ m("span", {
|
|
5033
|
+
className: "select-retry__dot",
|
|
5034
|
+
"aria-hidden": "true"
|
|
5035
|
+
}),
|
|
5036
|
+
e === "trying" && (i == null ? /* @__PURE__ */ m("span", {
|
|
5037
|
+
className: "select-retry__spinner",
|
|
5038
|
+
"aria-hidden": "true"
|
|
5039
|
+
}) : /* @__PURE__ */ m("span", {
|
|
5040
|
+
className: "select-retry__mark",
|
|
5041
|
+
"aria-hidden": "true",
|
|
5042
|
+
children: i
|
|
5043
|
+
})),
|
|
5044
|
+
e === "done" && /* @__PURE__ */ m("span", {
|
|
5045
|
+
className: "select-retry__check",
|
|
5046
|
+
"aria-hidden": "true",
|
|
5047
|
+
children: /* @__PURE__ */ m(Ve, {})
|
|
5048
|
+
}),
|
|
5049
|
+
/* @__PURE__ */ m("span", {
|
|
5050
|
+
className: "select-retry__label",
|
|
5051
|
+
children: e === "waiting" ? s(g) : e === "trying" ? c : l
|
|
5052
|
+
}),
|
|
5053
|
+
e === "waiting" && a != null && /* @__PURE__ */ m("span", {
|
|
5054
|
+
className: "select-retry__action",
|
|
5055
|
+
children: a
|
|
5056
|
+
})
|
|
5057
|
+
]
|
|
5058
|
+
}),
|
|
5059
|
+
/* @__PURE__ */ m("div", {
|
|
5060
|
+
className: "select-retry__track",
|
|
5061
|
+
"aria-hidden": "true",
|
|
5062
|
+
children: /* @__PURE__ */ m("div", {
|
|
5063
|
+
className: "select-retry__fill",
|
|
5064
|
+
style: v
|
|
5065
|
+
}, t ?? e)
|
|
5066
|
+
}),
|
|
5067
|
+
r > 0 && e !== "done" && /* @__PURE__ */ m("p", {
|
|
5068
|
+
className: "select-retry__caption",
|
|
5069
|
+
children: u(r)
|
|
5070
|
+
})
|
|
5071
|
+
]
|
|
5072
|
+
});
|
|
5073
|
+
}
|
|
5074
|
+
//#endregion
|
|
5075
|
+
//#region src/SelectPasswordStrength.tsx
|
|
5076
|
+
var Qr = [
|
|
5001
5077
|
{
|
|
5002
5078
|
label: "Muito fraca",
|
|
5003
5079
|
cls: "is-0"
|
|
@@ -5018,14 +5094,14 @@ var Yr = r(function({ onResend: e, seconds: t = 30, idleLabel: n = "Reenviar có
|
|
|
5018
5094
|
label: "Excelente",
|
|
5019
5095
|
cls: "is-4"
|
|
5020
5096
|
}
|
|
5021
|
-
],
|
|
5022
|
-
function
|
|
5097
|
+
], $r = 2;
|
|
5098
|
+
function ei(e) {
|
|
5023
5099
|
if (!e) return 0;
|
|
5024
5100
|
let t = 0;
|
|
5025
5101
|
return e.length >= 8 && t++, e.length >= 12 && t++, /[a-z]/.test(e) && /[A-Z]/.test(e) && t++, /\d/.test(e) && /[^A-Za-z0-9]/.test(e) && t++, Math.min(t, 4);
|
|
5026
5102
|
}
|
|
5027
|
-
var
|
|
5028
|
-
let a = t != null && t.length > 0, o =
|
|
5103
|
+
var ti = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
5104
|
+
let a = t != null && t.length > 0, o = ei(e), s = a && t.some((e) => !e.met) ? Math.min(o, $r) : o, c = Qr[s] ?? Qr[0], l = /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("div", {
|
|
5029
5105
|
className: `select-strength__bars select-strength__bars--${c.cls}`,
|
|
5030
5106
|
children: [
|
|
5031
5107
|
0,
|
|
@@ -5070,7 +5146,7 @@ var $r = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5070
5146
|
"aria-hidden": !e,
|
|
5071
5147
|
children: l
|
|
5072
5148
|
});
|
|
5073
|
-
}),
|
|
5149
|
+
}), ni = r(function({ label: e, mark: t, className: n, ...r }, i) {
|
|
5074
5150
|
return /* @__PURE__ */ h("div", {
|
|
5075
5151
|
ref: i,
|
|
5076
5152
|
...r,
|
|
@@ -5089,7 +5165,7 @@ var $r = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5089
5165
|
children: e
|
|
5090
5166
|
})]
|
|
5091
5167
|
});
|
|
5092
|
-
}),
|
|
5168
|
+
}), ri = r(function({ title: e, subtitle: t, primaryAction: n, secondaryActions: r, headerActions: i, backAction: a, children: o, className: s, ...c }, l) {
|
|
5093
5169
|
let u = !!n || r && r.length > 0 || !!i, d = a || e || t || u;
|
|
5094
5170
|
return /* @__PURE__ */ h("div", {
|
|
5095
5171
|
ref: l,
|
|
@@ -5146,54 +5222,54 @@ var $r = r(function({ value: e, rules: t, className: n, ...r }, i) {
|
|
|
5146
5222
|
});
|
|
5147
5223
|
//#endregion
|
|
5148
5224
|
//#region src/SelectFormLayout.tsx
|
|
5149
|
-
function
|
|
5225
|
+
function ii({ children: e }) {
|
|
5150
5226
|
return /* @__PURE__ */ m("div", {
|
|
5151
5227
|
className: "select-formlayout",
|
|
5152
5228
|
children: e
|
|
5153
5229
|
});
|
|
5154
5230
|
}
|
|
5155
|
-
function
|
|
5231
|
+
function ai({ children: e, columns: t = 2 }) {
|
|
5156
5232
|
return /* @__PURE__ */ m("div", {
|
|
5157
5233
|
className: "select-formlayout__group",
|
|
5158
5234
|
style: { "--cols": String(t) },
|
|
5159
5235
|
children: e
|
|
5160
5236
|
});
|
|
5161
5237
|
}
|
|
5162
|
-
var
|
|
5238
|
+
var oi = Object.assign(ii, { Group: ai });
|
|
5163
5239
|
//#endregion
|
|
5164
5240
|
//#region src/SelectSkeleton.tsx
|
|
5165
|
-
function
|
|
5241
|
+
function si({ lines: e = 3 }) {
|
|
5166
5242
|
return /* @__PURE__ */ m("div", {
|
|
5167
5243
|
className: "select-skel-body",
|
|
5168
5244
|
children: Array.from({ length: Math.max(1, e) }, (e, t) => /* @__PURE__ */ m("div", { className: "select-skeleton select-skel-line" }, t))
|
|
5169
5245
|
});
|
|
5170
5246
|
}
|
|
5171
|
-
function
|
|
5247
|
+
function ci({ size: e = "medium" }) {
|
|
5172
5248
|
return /* @__PURE__ */ m("div", { className: `select-skeleton select-skel-display select-skel-display--${e}` });
|
|
5173
5249
|
}
|
|
5174
|
-
function
|
|
5250
|
+
function li({ size: e = "medium" }) {
|
|
5175
5251
|
return /* @__PURE__ */ m("div", { className: `select-skeleton select-skel-thumb select-skel-thumb--${e}` });
|
|
5176
5252
|
}
|
|
5177
|
-
function
|
|
5253
|
+
function ui({ height: e = 240 }) {
|
|
5178
5254
|
return /* @__PURE__ */ m("div", {
|
|
5179
5255
|
className: "select-skeleton select-skel-block",
|
|
5180
5256
|
style: { height: e }
|
|
5181
5257
|
});
|
|
5182
5258
|
}
|
|
5183
|
-
var
|
|
5184
|
-
return /* @__PURE__ */ m(
|
|
5259
|
+
var di = Object.assign(function({ lines: e }) {
|
|
5260
|
+
return /* @__PURE__ */ m(si, { lines: e });
|
|
5185
5261
|
}, {
|
|
5186
|
-
Body:
|
|
5187
|
-
Display:
|
|
5188
|
-
Thumbnail:
|
|
5189
|
-
Block:
|
|
5190
|
-
}),
|
|
5262
|
+
Body: si,
|
|
5263
|
+
Display: ci,
|
|
5264
|
+
Thumbnail: li,
|
|
5265
|
+
Block: ui
|
|
5266
|
+
}), fi = {
|
|
5191
5267
|
sm: "1rem",
|
|
5192
5268
|
md: "1.25rem",
|
|
5193
5269
|
lg: "1.5rem"
|
|
5194
5270
|
};
|
|
5195
|
-
function
|
|
5196
|
-
let i = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" "), a =
|
|
5271
|
+
function pi({ source: e, children: t, tone: n = "inherit", size: r = "md" }) {
|
|
5272
|
+
let i = ["select-icon", n !== "inherit" && n !== "base" ? `select-icon--${n}` : ""].filter(Boolean).join(" "), a = fi[r] ?? r;
|
|
5197
5273
|
return /* @__PURE__ */ m("span", {
|
|
5198
5274
|
className: i,
|
|
5199
5275
|
style: { "--select-icon-size": a },
|
|
@@ -5203,7 +5279,7 @@ function di({ source: e, children: t, tone: n = "inherit", size: r = "md" }) {
|
|
|
5203
5279
|
}
|
|
5204
5280
|
//#endregion
|
|
5205
5281
|
//#region src/SelectNote.tsx
|
|
5206
|
-
var
|
|
5282
|
+
var mi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, className: r, ...i }, a) {
|
|
5207
5283
|
let o = m(t === "warning" || t === "critical" ? xe : ye, {});
|
|
5208
5284
|
return /* @__PURE__ */ h("div", {
|
|
5209
5285
|
ref: a,
|
|
@@ -5217,14 +5293,14 @@ var fi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5217
5293
|
children: e
|
|
5218
5294
|
})]
|
|
5219
5295
|
});
|
|
5220
|
-
}),
|
|
5296
|
+
}), hi = r(function({ children: e, className: t, ...n }, r) {
|
|
5221
5297
|
return /* @__PURE__ */ m("div", {
|
|
5222
5298
|
ref: r,
|
|
5223
5299
|
...n,
|
|
5224
5300
|
className: `select-settinglist${t ? " " + t : ""}`,
|
|
5225
5301
|
children: e
|
|
5226
5302
|
});
|
|
5227
|
-
}),
|
|
5303
|
+
}), gi = r(function({ control: e, title: t, badge: n, description: r, children: i, bodyOpen: a, className: o, ...s }, c) {
|
|
5228
5304
|
return /* @__PURE__ */ h("div", {
|
|
5229
5305
|
ref: c,
|
|
5230
5306
|
...s,
|
|
@@ -5263,7 +5339,7 @@ var fi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5263
5339
|
]
|
|
5264
5340
|
})]
|
|
5265
5341
|
});
|
|
5266
|
-
}),
|
|
5342
|
+
}), _i = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, tone: a = "default", flush: o = !1, className: s, ...c }, l) {
|
|
5267
5343
|
return /* @__PURE__ */ h("div", {
|
|
5268
5344
|
ref: l,
|
|
5269
5345
|
...c,
|
|
@@ -5295,7 +5371,7 @@ var fi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5295
5371
|
})
|
|
5296
5372
|
]
|
|
5297
5373
|
});
|
|
5298
|
-
}),
|
|
5374
|
+
}), vi = r(function({ title: e, help: t, description: n, action: r, collapsible: i = !1, defaultOpen: a = !0, children: o, className: s, ...c }, l) {
|
|
5299
5375
|
let [u, f] = d(a);
|
|
5300
5376
|
return i ? /* @__PURE__ */ h("div", {
|
|
5301
5377
|
ref: l,
|
|
@@ -5350,7 +5426,7 @@ var fi = r(function({ children: e, tone: t = "neutral", hideIcon: n = !1, classN
|
|
|
5350
5426
|
});
|
|
5351
5427
|
//#endregion
|
|
5352
5428
|
//#region src/SelectTabs.tsx
|
|
5353
|
-
function
|
|
5429
|
+
function yi({ tabs: e, value: t, onChange: n, end: r, className: i, ...a }) {
|
|
5354
5430
|
let o = u(null), [s, l] = d({
|
|
5355
5431
|
left: 0,
|
|
5356
5432
|
width: 0
|
|
@@ -5408,12 +5484,12 @@ function _i({ tabs: e, value: t, onChange: n, end: r, className: i, ...a }) {
|
|
|
5408
5484
|
}
|
|
5409
5485
|
//#endregion
|
|
5410
5486
|
//#region src/SelectSideNav.tsx
|
|
5411
|
-
function
|
|
5487
|
+
function bi(e, t) {
|
|
5412
5488
|
var n;
|
|
5413
|
-
return ((n = e.children) == null ? void 0 : n.some((e) => e.id === t ||
|
|
5489
|
+
return ((n = e.children) == null ? void 0 : n.some((e) => e.id === t || bi(e, t))) ?? !1;
|
|
5414
5490
|
}
|
|
5415
|
-
function
|
|
5416
|
-
let r = e.alwaysOpen === !0, i =
|
|
5491
|
+
function xi({ item: e, active: t, onSelect: n }) {
|
|
5492
|
+
let r = e.alwaysOpen === !0, i = bi(e, t), [a, s] = d(i);
|
|
5417
5493
|
o(() => {
|
|
5418
5494
|
s(i);
|
|
5419
5495
|
}, [i]);
|
|
@@ -5477,7 +5553,7 @@ function yi({ item: e, active: t, onSelect: n }) {
|
|
|
5477
5553
|
})]
|
|
5478
5554
|
});
|
|
5479
5555
|
}
|
|
5480
|
-
var
|
|
5556
|
+
var Si = r(function({ sections: e, active: t, onSelect: n, header: r, className: i, ...a }, o) {
|
|
5481
5557
|
return /* @__PURE__ */ h("nav", {
|
|
5482
5558
|
ref: o,
|
|
5483
5559
|
...a,
|
|
@@ -5490,7 +5566,7 @@ var bi = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5490
5566
|
children: [e.label && /* @__PURE__ */ m("div", {
|
|
5491
5567
|
className: "select-sidenav__sectionlabel",
|
|
5492
5568
|
children: e.label
|
|
5493
|
-
}), e.items.map((e) => e.children ? /* @__PURE__ */ m(
|
|
5569
|
+
}), e.items.map((e) => e.children ? /* @__PURE__ */ m(xi, {
|
|
5494
5570
|
item: e,
|
|
5495
5571
|
active: t,
|
|
5496
5572
|
onSelect: n
|
|
@@ -5509,7 +5585,7 @@ var bi = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5509
5585
|
}, e.id))]
|
|
5510
5586
|
}, r))]
|
|
5511
5587
|
});
|
|
5512
|
-
}),
|
|
5588
|
+
}), Ci = r(function({ value: e, onChange: t, placeholder: n = "Buscar…", shortcut: r, className: i, ...a }, o) {
|
|
5513
5589
|
return /* @__PURE__ */ h("div", {
|
|
5514
5590
|
ref: o,
|
|
5515
5591
|
...a,
|
|
@@ -5536,7 +5612,7 @@ var bi = r(function({ sections: e, active: t, onSelect: n, header: r, className:
|
|
|
5536
5612
|
});
|
|
5537
5613
|
//#endregion
|
|
5538
5614
|
//#region src/SelectPagination.tsx
|
|
5539
|
-
function
|
|
5615
|
+
function wi(e, t) {
|
|
5540
5616
|
let n = [.../* @__PURE__ */ new Set([
|
|
5541
5617
|
1,
|
|
5542
5618
|
t,
|
|
@@ -5547,7 +5623,7 @@ function Si(e, t) {
|
|
|
5547
5623
|
for (let e of n) e - i > 1 && r.push("gap"), r.push(e), i = e;
|
|
5548
5624
|
return r;
|
|
5549
5625
|
}
|
|
5550
|
-
function
|
|
5626
|
+
function Ti(e, t, n, r, i, a) {
|
|
5551
5627
|
let o = [];
|
|
5552
5628
|
if (e != null) {
|
|
5553
5629
|
if (e === 0) o.push(`0 ${i}`);
|
|
@@ -5558,8 +5634,8 @@ function Ci(e, t, n, r, i, a) {
|
|
|
5558
5634
|
}
|
|
5559
5635
|
return a && r != null && r > 0 && o.push(`Página ${n} de ${r}`), o.length > 0 ? o.join(" · ") : null;
|
|
5560
5636
|
}
|
|
5561
|
-
var
|
|
5562
|
-
let p = i ?? e > 1, g = a ?? (t == null || e < t), _ = o ?? (c ? () => c(e - 1) : void 0), v = s ?? (c ? () => c(e + 1) : void 0), y = t != null && t > 1 && c != null, b = y ?
|
|
5637
|
+
var Ei = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious: i, hasNext: a, onPrevious: o, onNext: s, onPage: c, noun: l = "resultados", className: u, ...d }, f) {
|
|
5638
|
+
let p = i ?? e > 1, g = a ?? (t == null || e < t), _ = o ?? (c ? () => c(e - 1) : void 0), v = s ?? (c ? () => c(e + 1) : void 0), y = t != null && t > 1 && c != null, b = y ? wi(e, t) : [], x = Ti(n, r, e, t, l, y);
|
|
5563
5639
|
return /* @__PURE__ */ h("nav", {
|
|
5564
5640
|
ref: f,
|
|
5565
5641
|
...d,
|
|
@@ -5607,7 +5683,7 @@ var wi = r(function({ page: e, pageCount: t, total: n, pageSize: r, hasPrevious:
|
|
|
5607
5683
|
});
|
|
5608
5684
|
//#endregion
|
|
5609
5685
|
//#region src/internal/listChrome.tsx
|
|
5610
|
-
function
|
|
5686
|
+
function Di({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
5611
5687
|
let a = r != null, o = a ? null : i, s = e != null || t != null;
|
|
5612
5688
|
return {
|
|
5613
5689
|
hasFilters: a,
|
|
@@ -5616,8 +5692,8 @@ function Ti({ title: e, description: t, action: n, filters: r, tools: i }) {
|
|
|
5616
5692
|
hasTitleRow: s || n != null || o != null
|
|
5617
5693
|
};
|
|
5618
5694
|
}
|
|
5619
|
-
function
|
|
5620
|
-
let { hasFilters: o, inlineTools: s, hasIdentity: c, hasTitleRow: l } =
|
|
5695
|
+
function Oi({ title: e, help: t, description: n, action: r, filters: i, tools: a }) {
|
|
5696
|
+
let { hasFilters: o, inlineTools: s, hasIdentity: c, hasTitleRow: l } = Di({
|
|
5621
5697
|
title: e,
|
|
5622
5698
|
description: n,
|
|
5623
5699
|
action: r,
|
|
@@ -5650,7 +5726,7 @@ function Ei({ title: e, help: t, description: n, action: r, filters: i, tools: a
|
|
|
5650
5726
|
})]
|
|
5651
5727
|
})] });
|
|
5652
5728
|
}
|
|
5653
|
-
function
|
|
5729
|
+
function ki(e, t, n) {
|
|
5654
5730
|
if (!e || e.length === 0) return [];
|
|
5655
5731
|
let r = [...e].sort((e, t) => e - t);
|
|
5656
5732
|
if (t == null) return r;
|
|
@@ -5659,8 +5735,8 @@ function Di(e, t, n) {
|
|
|
5659
5735
|
for (let e of r) if (i.push(e), e >= t) break;
|
|
5660
5736
|
return n != null && r.includes(n) && !i.includes(n) && (i.push(n), i.sort((e, t) => e - t)), i;
|
|
5661
5737
|
}
|
|
5662
|
-
function
|
|
5663
|
-
let [t, n] = d(!1), r =
|
|
5738
|
+
function Ai({ pagination: e }) {
|
|
5739
|
+
let [t, n] = d(!1), r = ki(e.pageSizeOptions, e.total, e.pageSize), i = r.length > 1 && e.onPageSizeChange != null;
|
|
5664
5740
|
return !i && !e.hasPrevious && !e.hasNext ? null : /* @__PURE__ */ h("div", {
|
|
5665
5741
|
className: "select-datatable__pagination",
|
|
5666
5742
|
children: [i && e.onPageSizeChange && /* @__PURE__ */ m("div", {
|
|
@@ -5711,7 +5787,7 @@ function Oi({ pagination: e }) {
|
|
|
5711
5787
|
})
|
|
5712
5788
|
})
|
|
5713
5789
|
})
|
|
5714
|
-
}), /* @__PURE__ */ m(
|
|
5790
|
+
}), /* @__PURE__ */ m(Ei, {
|
|
5715
5791
|
page: e.page ?? 1,
|
|
5716
5792
|
pageCount: e.pageCount,
|
|
5717
5793
|
total: e.total,
|
|
@@ -5727,13 +5803,13 @@ function Oi({ pagination: e }) {
|
|
|
5727
5803
|
}
|
|
5728
5804
|
//#endregion
|
|
5729
5805
|
//#region src/SelectTable.tsx
|
|
5730
|
-
var
|
|
5731
|
-
function
|
|
5806
|
+
var ji = 40, Mi = 1200, Ni = 8;
|
|
5807
|
+
function Pi(e) {
|
|
5732
5808
|
let t = parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
|
|
5733
5809
|
return `${Math.round(e / t * 1e3) / 1e3}rem`;
|
|
5734
5810
|
}
|
|
5735
|
-
var
|
|
5736
|
-
let x = e.count(n) === 0, S = x && !!r, { hasFilters: C, hasTitleRow: w } =
|
|
5811
|
+
var Fi = r(function({ columns: t, children: n, empty: r, footer: a, title: o, help: s, description: l, action: d, filters: f, tools: p, onColumnResize: g, onColumnResizeReset: _, className: v, ...y }, b) {
|
|
5812
|
+
let x = e.count(n) === 0, S = x && !!r, { hasFilters: C, hasTitleRow: w } = Di({
|
|
5737
5813
|
title: o,
|
|
5738
5814
|
description: l,
|
|
5739
5815
|
action: d,
|
|
@@ -5767,9 +5843,9 @@ var Ni = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5767
5843
|
let o = O.current;
|
|
5768
5844
|
o == null || o.classList.add("select-table--resizing");
|
|
5769
5845
|
let s = a, c = (t) => {
|
|
5770
|
-
s = Math.min(
|
|
5846
|
+
s = Math.min(Mi, Math.max(ji, a + (t.clientX - i))), A(e, s);
|
|
5771
5847
|
}, l = () => {
|
|
5772
|
-
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), g(e,
|
|
5848
|
+
window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", l), o == null || o.classList.remove("select-table--resizing"), g(e, Pi(s));
|
|
5773
5849
|
};
|
|
5774
5850
|
window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", l);
|
|
5775
5851
|
}, M = (e) => (t) => {
|
|
@@ -5780,8 +5856,8 @@ var Ni = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5780
5856
|
let i = (n = t.currentTarget.parentElement) == null ? void 0 : n.getBoundingClientRect();
|
|
5781
5857
|
if (!i) return;
|
|
5782
5858
|
t.preventDefault();
|
|
5783
|
-
let a =
|
|
5784
|
-
A(e, o), g(e,
|
|
5859
|
+
let a = Ni * (t.shiftKey ? 10 : 1), o = Math.min(Mi, Math.max(ji, i.width + r * a));
|
|
5860
|
+
A(e, o), g(e, Pi(o));
|
|
5785
5861
|
};
|
|
5786
5862
|
return /* @__PURE__ */ h("div", {
|
|
5787
5863
|
ref: k,
|
|
@@ -5789,7 +5865,7 @@ var Ni = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5789
5865
|
className: `select-table${T ? " select-table--empty" : ""}${v ? " " + v : ""}`,
|
|
5790
5866
|
style: { "--select-table-cols": D },
|
|
5791
5867
|
children: [
|
|
5792
|
-
/* @__PURE__ */ m(
|
|
5868
|
+
/* @__PURE__ */ m(Oi, {
|
|
5793
5869
|
title: o,
|
|
5794
5870
|
help: s,
|
|
5795
5871
|
description: l,
|
|
@@ -5843,7 +5919,7 @@ var Ni = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5843
5919
|
})
|
|
5844
5920
|
]
|
|
5845
5921
|
});
|
|
5846
|
-
}),
|
|
5922
|
+
}), Ii = r(function({ name: e, secondary: t, src: n, className: r, ...i }, a) {
|
|
5847
5923
|
return /* @__PURE__ */ h("span", {
|
|
5848
5924
|
ref: a,
|
|
5849
5925
|
...i,
|
|
@@ -5863,7 +5939,7 @@ var Ni = r(function({ columns: t, children: n, empty: r, footer: a, title: o, he
|
|
|
5863
5939
|
})]
|
|
5864
5940
|
});
|
|
5865
5941
|
});
|
|
5866
|
-
function
|
|
5942
|
+
function Li({ children: e, onClick: t }) {
|
|
5867
5943
|
return t ? /* @__PURE__ */ m("button", {
|
|
5868
5944
|
type: "button",
|
|
5869
5945
|
className: "select-table__row select-table__row--clickable",
|
|
@@ -5875,7 +5951,7 @@ function Fi({ children: e, onClick: t }) {
|
|
|
5875
5951
|
children: e
|
|
5876
5952
|
});
|
|
5877
5953
|
}
|
|
5878
|
-
var
|
|
5954
|
+
var Ri = r(function({ children: e, align: t = "start", className: n, ...r }, i) {
|
|
5879
5955
|
return /* @__PURE__ */ m("div", {
|
|
5880
5956
|
ref: i,
|
|
5881
5957
|
...r,
|
|
@@ -5883,7 +5959,7 @@ var Ii = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5883
5959
|
className: `select-table__td select-table__cell--${t}${n ? " " + n : ""}`,
|
|
5884
5960
|
children: e
|
|
5885
5961
|
});
|
|
5886
|
-
}),
|
|
5962
|
+
}), zi = r(function({ icon: e, title: t, subtitle: n, action: r, className: i, ...a }, o) {
|
|
5887
5963
|
return /* @__PURE__ */ h("div", {
|
|
5888
5964
|
ref: o,
|
|
5889
5965
|
...a,
|
|
@@ -5907,7 +5983,7 @@ var Ii = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5907
5983
|
})
|
|
5908
5984
|
]
|
|
5909
5985
|
});
|
|
5910
|
-
}),
|
|
5986
|
+
}), Bi = r(function({ children: e, className: t, ...n }, r) {
|
|
5911
5987
|
return /* @__PURE__ */ m("div", {
|
|
5912
5988
|
ref: r,
|
|
5913
5989
|
...n,
|
|
@@ -5915,7 +5991,7 @@ var Ii = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5915
5991
|
role: "menu",
|
|
5916
5992
|
children: e
|
|
5917
5993
|
});
|
|
5918
|
-
}),
|
|
5994
|
+
}), Vi = r(function({ children: e, icon: t, trailing: n, onClick: r, active: i = !1, tone: a = "default", className: o, ...s }, c) {
|
|
5919
5995
|
return /* @__PURE__ */ h("button", {
|
|
5920
5996
|
ref: c,
|
|
5921
5997
|
...s,
|
|
@@ -5938,7 +6014,7 @@ var Ii = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5938
6014
|
})
|
|
5939
6015
|
]
|
|
5940
6016
|
});
|
|
5941
|
-
}),
|
|
6017
|
+
}), Hi = r(function({ children: e, href: t, icon: n, trailing: r, external: i, tone: a = "default", className: o, ...s }, c) {
|
|
5942
6018
|
let l = qr(t), u = i ?? /^(https?:|mailto:|tel:)/i.test(l ?? ""), d = r ?? (u ? /* @__PURE__ */ m(q, {}) : void 0);
|
|
5943
6019
|
return /* @__PURE__ */ h("a", {
|
|
5944
6020
|
ref: c,
|
|
@@ -5964,19 +6040,19 @@ var Ii = r(function({ children: e, align: t = "start", className: n, ...r }, i)
|
|
|
5964
6040
|
]
|
|
5965
6041
|
});
|
|
5966
6042
|
});
|
|
5967
|
-
function
|
|
6043
|
+
function Ui({ children: e }) {
|
|
5968
6044
|
return /* @__PURE__ */ m("div", {
|
|
5969
6045
|
className: "select-menu__heading",
|
|
5970
6046
|
children: e
|
|
5971
6047
|
});
|
|
5972
6048
|
}
|
|
5973
|
-
function
|
|
6049
|
+
function Wi() {
|
|
5974
6050
|
return /* @__PURE__ */ m("div", {
|
|
5975
6051
|
className: "select-menu__divider",
|
|
5976
6052
|
role: "separator"
|
|
5977
6053
|
});
|
|
5978
6054
|
}
|
|
5979
|
-
var
|
|
6055
|
+
var Gi = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
5980
6056
|
return /* @__PURE__ */ h("button", {
|
|
5981
6057
|
ref: a,
|
|
5982
6058
|
...i,
|
|
@@ -5991,7 +6067,7 @@ var Ui = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
5991
6067
|
children: /* @__PURE__ */ m(W, {})
|
|
5992
6068
|
})]
|
|
5993
6069
|
});
|
|
5994
|
-
}),
|
|
6070
|
+
}), Ki = r(function({ children: e, onClick: t, active: n = !1, className: r, ...i }, a) {
|
|
5995
6071
|
return /* @__PURE__ */ h("button", {
|
|
5996
6072
|
ref: a,
|
|
5997
6073
|
...i,
|
|
@@ -6004,7 +6080,7 @@ var Ui = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6004
6080
|
children: /* @__PURE__ */ m(Me, {})
|
|
6005
6081
|
}), e]
|
|
6006
6082
|
});
|
|
6007
|
-
}),
|
|
6083
|
+
}), qi = r(function({ label: e, value: t, href: n, onCopy: r, className: i, ...a }, o) {
|
|
6008
6084
|
let [s, c] = d(!1), l = qr(n), u = () => {
|
|
6009
6085
|
navigator.clipboard.writeText(t).then(() => {
|
|
6010
6086
|
c(!0), setTimeout(() => c(!1), 1200), r == null || r(t);
|
|
@@ -6044,7 +6120,7 @@ var Ui = r(function({ children: e, onClick: t, active: n = !1, className: r, ...
|
|
|
6044
6120
|
});
|
|
6045
6121
|
//#endregion
|
|
6046
6122
|
//#region src/SelectCopyableId.tsx
|
|
6047
|
-
function
|
|
6123
|
+
function Ji({ value: e, children: t, truncate: n, label: r = "Copiar id", fallback: i = "—", to: a, reveal: o = "hover" }) {
|
|
6048
6124
|
let [s, c] = d(!1);
|
|
6049
6125
|
if (!e) return /* @__PURE__ */ m(p, { children: i });
|
|
6050
6126
|
let l = t ?? (n ? e.slice(0, n) : e), u = qr(a);
|
|
@@ -6076,7 +6152,7 @@ function Ki({ value: e, children: t, truncate: n, label: r = "Copiar id", fallba
|
|
|
6076
6152
|
}
|
|
6077
6153
|
//#endregion
|
|
6078
6154
|
//#region src/SelectCollapsible.tsx
|
|
6079
|
-
var
|
|
6155
|
+
var Yi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1, className: i, ...a }, o) {
|
|
6080
6156
|
let [s, c] = d(n);
|
|
6081
6157
|
return /* @__PURE__ */ h("div", {
|
|
6082
6158
|
ref: o,
|
|
@@ -6107,7 +6183,7 @@ var qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6107
6183
|
})
|
|
6108
6184
|
})]
|
|
6109
6185
|
});
|
|
6110
|
-
}),
|
|
6186
|
+
}), Xi = r(function({ icon: e, title: t, description: n, action: r, onDismiss: i, className: a, ...o }, s) {
|
|
6111
6187
|
return /* @__PURE__ */ h("div", {
|
|
6112
6188
|
ref: s,
|
|
6113
6189
|
...o,
|
|
@@ -6142,7 +6218,7 @@ var qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6142
6218
|
})
|
|
6143
6219
|
]
|
|
6144
6220
|
});
|
|
6145
|
-
}),
|
|
6221
|
+
}), Zi = r(function({ media: e, sublabel: t, title: n, badge: r, meta: i, accent: a = !0, onClick: o, className: s, ...c }, l) {
|
|
6146
6222
|
return /* @__PURE__ */ h("button", {
|
|
6147
6223
|
ref: l,
|
|
6148
6224
|
...c,
|
|
@@ -6179,7 +6255,7 @@ var qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6179
6255
|
})
|
|
6180
6256
|
]
|
|
6181
6257
|
});
|
|
6182
|
-
}),
|
|
6258
|
+
}), Qi = r(function({ label: e, onClick: t, className: n, ...r }, i) {
|
|
6183
6259
|
return /* @__PURE__ */ h("button", {
|
|
6184
6260
|
ref: i,
|
|
6185
6261
|
...r,
|
|
@@ -6195,7 +6271,7 @@ var qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6195
6271
|
children: e
|
|
6196
6272
|
})]
|
|
6197
6273
|
});
|
|
6198
|
-
}),
|
|
6274
|
+
}), $i = r(function({ avatar: e, name: t, badge: n, onClick: r, className: i, ...a }, o) {
|
|
6199
6275
|
return /* @__PURE__ */ h("button", {
|
|
6200
6276
|
ref: o,
|
|
6201
6277
|
...a,
|
|
@@ -6220,20 +6296,20 @@ var qi = r(function({ title: e, children: t, defaultOpen: n = !1, plain: r = !1,
|
|
|
6220
6296
|
})
|
|
6221
6297
|
]
|
|
6222
6298
|
});
|
|
6223
|
-
}),
|
|
6224
|
-
function
|
|
6225
|
-
let [
|
|
6299
|
+
}), ea = 220;
|
|
6300
|
+
function ta({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a, aside: s, size: c = "md", showClose: l = !0, noise: u = !0, dividedHeader: f = !1, backdrop: _ = "dim", theme: v = "light" }) {
|
|
6301
|
+
let [y, b] = d(e), [x, S] = d(!1);
|
|
6226
6302
|
if (o(() => {
|
|
6227
|
-
if (e)
|
|
6228
|
-
else if (
|
|
6229
|
-
|
|
6303
|
+
if (e) b(!0), S(!1);
|
|
6304
|
+
else if (y) {
|
|
6305
|
+
S(!0);
|
|
6230
6306
|
let e = setTimeout(() => {
|
|
6231
|
-
|
|
6232
|
-
},
|
|
6307
|
+
b(!1), S(!1);
|
|
6308
|
+
}, ea);
|
|
6233
6309
|
return () => clearTimeout(e);
|
|
6234
6310
|
}
|
|
6235
|
-
}, [e,
|
|
6236
|
-
if (!
|
|
6311
|
+
}, [e, y]), o(() => {
|
|
6312
|
+
if (!y) return;
|
|
6237
6313
|
let e = (e) => {
|
|
6238
6314
|
e.key === "Escape" && t();
|
|
6239
6315
|
};
|
|
@@ -6242,20 +6318,20 @@ function $i({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6242
6318
|
return document.body.style.overflow = "hidden", () => {
|
|
6243
6319
|
document.removeEventListener("keydown", e), document.body.style.overflow = n;
|
|
6244
6320
|
};
|
|
6245
|
-
}, [
|
|
6246
|
-
let
|
|
6321
|
+
}, [y, t]), !y) return null;
|
|
6322
|
+
let C = l && /* @__PURE__ */ m("button", {
|
|
6247
6323
|
type: "button",
|
|
6248
6324
|
className: "select-modal__close",
|
|
6249
6325
|
"aria-label": "Fechar",
|
|
6250
6326
|
onClick: t,
|
|
6251
6327
|
children: /* @__PURE__ */ m(le, {})
|
|
6252
|
-
}),
|
|
6328
|
+
}), w = `select-modal__header${f ? " select-modal__header--divided" : ""}`;
|
|
6253
6329
|
return g(/* @__PURE__ */ m("div", {
|
|
6254
|
-
className: `select select-modal__overlay${u ? " select-modal__overlay--noise" : ""}${
|
|
6255
|
-
"data-theme":
|
|
6330
|
+
className: `select select-modal__overlay${u ? " select-modal__overlay--noise" : ""}${_ === "blur" ? " select-modal__overlay--blur" : ""}${x ? " select-modal__overlay--closing" : ""}`,
|
|
6331
|
+
"data-theme": v,
|
|
6256
6332
|
onMouseDown: t,
|
|
6257
6333
|
children: /* @__PURE__ */ m("div", {
|
|
6258
|
-
className: `select-modal select-modal--${c}${s ? " select-modal--split" : ""}${
|
|
6334
|
+
className: `select-modal select-modal--${c}${s ? " select-modal--split" : ""}${x ? " select-modal--closing" : ""}`,
|
|
6259
6335
|
role: "dialog",
|
|
6260
6336
|
"aria-modal": "true",
|
|
6261
6337
|
onMouseDown: (e) => e.stopPropagation(),
|
|
@@ -6265,9 +6341,9 @@ function $i({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6265
6341
|
}), /* @__PURE__ */ h("div", {
|
|
6266
6342
|
className: "select-modal__content",
|
|
6267
6343
|
children: [
|
|
6268
|
-
|
|
6344
|
+
C,
|
|
6269
6345
|
(n || r) && /* @__PURE__ */ h("div", {
|
|
6270
|
-
className:
|
|
6346
|
+
className: w,
|
|
6271
6347
|
children: [n && /* @__PURE__ */ m("h2", {
|
|
6272
6348
|
className: "select-modal__title",
|
|
6273
6349
|
children: n
|
|
@@ -6282,9 +6358,9 @@ function $i({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6282
6358
|
})
|
|
6283
6359
|
]
|
|
6284
6360
|
})] }) : /* @__PURE__ */ h(p, { children: [
|
|
6285
|
-
|
|
6361
|
+
C,
|
|
6286
6362
|
(n || r) && /* @__PURE__ */ h("div", {
|
|
6287
|
-
className:
|
|
6363
|
+
className: w,
|
|
6288
6364
|
children: [n && /* @__PURE__ */ m("h2", {
|
|
6289
6365
|
className: "select-modal__title",
|
|
6290
6366
|
children: n
|
|
@@ -6307,7 +6383,7 @@ function $i({ open: e, onClose: t, title: n, subtitle: r, children: i, footer: a
|
|
|
6307
6383
|
}
|
|
6308
6384
|
//#endregion
|
|
6309
6385
|
//#region src/SelectRowActions.tsx
|
|
6310
|
-
function
|
|
6386
|
+
function na({ actions: e, label: t = "Ações" }) {
|
|
6311
6387
|
let [n, r] = d(!1);
|
|
6312
6388
|
return /* @__PURE__ */ m(on, {
|
|
6313
6389
|
active: n,
|
|
@@ -6329,8 +6405,8 @@ function ea({ actions: e, label: t = "Ações" }) {
|
|
|
6329
6405
|
}
|
|
6330
6406
|
//#endregion
|
|
6331
6407
|
//#region src/SelectConfirmModal.tsx
|
|
6332
|
-
function
|
|
6333
|
-
return /* @__PURE__ */ m(
|
|
6408
|
+
function ra({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
6409
|
+
return /* @__PURE__ */ m(ta, {
|
|
6334
6410
|
open: e,
|
|
6335
6411
|
onClose: t,
|
|
6336
6412
|
title: r,
|
|
@@ -6359,8 +6435,8 @@ function ta({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
6359
6435
|
}
|
|
6360
6436
|
//#endregion
|
|
6361
6437
|
//#region src/SelectFormModal.tsx
|
|
6362
|
-
function
|
|
6363
|
-
return /* @__PURE__ */ h(
|
|
6438
|
+
function ia({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children: a, submitLabel: o = "Salvar", cancelLabel: s = "Cancelar", submitting: c = !1, submitDisabled: l = !1, submitVariant: u = "primary", error: d, size: f = "md", theme: p }) {
|
|
6439
|
+
return /* @__PURE__ */ h(ta, {
|
|
6364
6440
|
open: e,
|
|
6365
6441
|
onClose: t,
|
|
6366
6442
|
title: r,
|
|
@@ -6402,30 +6478,30 @@ function na({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
6402
6478
|
}
|
|
6403
6479
|
//#endregion
|
|
6404
6480
|
//#region src/SelectDataTable.tsx
|
|
6405
|
-
var
|
|
6481
|
+
var aa = "9.5rem", oa = {
|
|
6406
6482
|
minWidth: "9.5rem",
|
|
6407
6483
|
grow: 2
|
|
6408
|
-
},
|
|
6409
|
-
function
|
|
6484
|
+
}, sa = "select-datatable:hidden-cols:";
|
|
6485
|
+
function ca(e) {
|
|
6410
6486
|
try {
|
|
6411
|
-
let t = localStorage.getItem(
|
|
6487
|
+
let t = localStorage.getItem(sa + e), n = t ? JSON.parse(t) : null;
|
|
6412
6488
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
6413
6489
|
} catch {
|
|
6414
6490
|
return [];
|
|
6415
6491
|
}
|
|
6416
6492
|
}
|
|
6417
|
-
function
|
|
6493
|
+
function la(e, t) {
|
|
6418
6494
|
try {
|
|
6419
|
-
t.length === 0 ? localStorage.removeItem(
|
|
6495
|
+
t.length === 0 ? localStorage.removeItem(sa + e) : localStorage.setItem(sa + e, JSON.stringify(t));
|
|
6420
6496
|
} catch {}
|
|
6421
6497
|
}
|
|
6422
|
-
function
|
|
6498
|
+
function ua(e) {
|
|
6423
6499
|
return e.hideable ?? !!e.title;
|
|
6424
6500
|
}
|
|
6425
|
-
var
|
|
6426
|
-
function
|
|
6501
|
+
var da = "select-datatable:col-widths:";
|
|
6502
|
+
function fa(e) {
|
|
6427
6503
|
try {
|
|
6428
|
-
let t = localStorage.getItem(
|
|
6504
|
+
let t = localStorage.getItem(da + e), n = t ? JSON.parse(t) : null;
|
|
6429
6505
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
6430
6506
|
let r = {};
|
|
6431
6507
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -6434,16 +6510,16 @@ function ua(e) {
|
|
|
6434
6510
|
return {};
|
|
6435
6511
|
}
|
|
6436
6512
|
}
|
|
6437
|
-
function
|
|
6513
|
+
function pa(e, t) {
|
|
6438
6514
|
try {
|
|
6439
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
6515
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(da + e) : localStorage.setItem(da + e, JSON.stringify(t));
|
|
6440
6516
|
} catch {}
|
|
6441
6517
|
}
|
|
6442
|
-
var
|
|
6443
|
-
function
|
|
6518
|
+
var ma = "select-datatable:page-size:";
|
|
6519
|
+
function ha(e, t, n) {
|
|
6444
6520
|
let [r, i] = d(() => {
|
|
6445
6521
|
try {
|
|
6446
|
-
let r = Number(localStorage.getItem(
|
|
6522
|
+
let r = Number(localStorage.getItem(ma + e));
|
|
6447
6523
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
6448
6524
|
} catch {
|
|
6449
6525
|
return t;
|
|
@@ -6452,22 +6528,22 @@ function pa(e, t, n) {
|
|
|
6452
6528
|
return [r, (t) => {
|
|
6453
6529
|
i(t);
|
|
6454
6530
|
try {
|
|
6455
|
-
localStorage.setItem(
|
|
6531
|
+
localStorage.setItem(ma + e, String(t));
|
|
6456
6532
|
} catch {}
|
|
6457
6533
|
}];
|
|
6458
6534
|
}
|
|
6459
|
-
function
|
|
6535
|
+
function ga(e, t, n) {
|
|
6460
6536
|
let r = e == null || e === "", i = t == null || t === "";
|
|
6461
6537
|
return r || i ? r && i ? 0 : r ? 1 : -1 : typeof e == "number" && typeof t == "number" ? n * (e - t) : n * String(e).localeCompare(String(t), "pt-BR", {
|
|
6462
6538
|
numeric: !0,
|
|
6463
6539
|
sensitivity: "base"
|
|
6464
6540
|
});
|
|
6465
6541
|
}
|
|
6466
|
-
function
|
|
6467
|
-
let [_, v] = d(() => g ?
|
|
6542
|
+
function _a({ columns: e, items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: u, action: f, filters: p, columnsKey: g }) {
|
|
6543
|
+
let [_, v] = d(() => g ? ca(g) : []), [y, b] = d(!1), [x, S] = d(() => g ? fa(g) : {}), C = l(() => new Set(_), [_]), w = e.filter(ua), T = w.length > 0 && w.every((e) => C.has(e.key)), E = (e) => !T && C.has(e.key) && ua(e), D = e.filter((e) => !E(e)), O = w.filter((e) => !E(e)), [k, A] = d(null), j = (e) => {
|
|
6468
6544
|
v((t) => {
|
|
6469
6545
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
6470
|
-
return g &&
|
|
6546
|
+
return g && la(g, r), n && A((t) => t && t.key === e.key ? null : t), r;
|
|
6471
6547
|
});
|
|
6472
6548
|
}, M = (e) => {
|
|
6473
6549
|
A((t) => {
|
|
@@ -6484,7 +6560,7 @@ function ha({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6484
6560
|
let e = N == null ? void 0 : N.sortValue;
|
|
6485
6561
|
if (!k || !e) return t;
|
|
6486
6562
|
let n = k.dir === "asc" ? 1 : -1;
|
|
6487
|
-
return [...t].sort((t, r) =>
|
|
6563
|
+
return [...t].sort((t, r) => ga(e(t), e(r), n));
|
|
6488
6564
|
}, [
|
|
6489
6565
|
t,
|
|
6490
6566
|
k,
|
|
@@ -6503,11 +6579,11 @@ function ha({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6503
6579
|
let n = D[e];
|
|
6504
6580
|
n && S((e) => {
|
|
6505
6581
|
let r = { ...e };
|
|
6506
|
-
return t ? r[n.key] = t : delete r[n.key], g &&
|
|
6582
|
+
return t ? r[n.key] = t : delete r[n.key], g && pa(g, r), r;
|
|
6507
6583
|
});
|
|
6508
6584
|
}, L = () => {
|
|
6509
|
-
S({}), g &&
|
|
6510
|
-
}, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(
|
|
6585
|
+
S({}), g && pa(g, {});
|
|
6586
|
+
}, ee = Object.keys(x).length > 0, R = !r && i ? /* @__PURE__ */ m(zi, {
|
|
6511
6587
|
icon: i.icon,
|
|
6512
6588
|
title: i.heading,
|
|
6513
6589
|
subtitle: i.text,
|
|
@@ -6563,7 +6639,7 @@ function ha({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6563
6639
|
}) : null;
|
|
6564
6640
|
return /* @__PURE__ */ h("div", {
|
|
6565
6641
|
className: "select-datatable",
|
|
6566
|
-
children: [/* @__PURE__ */ m(
|
|
6642
|
+
children: [/* @__PURE__ */ m(Fi, {
|
|
6567
6643
|
columns: F,
|
|
6568
6644
|
empty: R,
|
|
6569
6645
|
title: s,
|
|
@@ -6574,24 +6650,24 @@ function ha({ columns: e, items: t, getId: n, loading: r = !1, empty: i, paginat
|
|
|
6574
6650
|
tools: te,
|
|
6575
6651
|
onColumnResize: (e, t) => I(e, t),
|
|
6576
6652
|
onColumnResizeReset: (e) => I(e, null),
|
|
6577
|
-
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(
|
|
6653
|
+
children: r ? Array.from({ length: 5 }, (e, t) => /* @__PURE__ */ m(Li, { children: D.map((e, t) => /* @__PURE__ */ m(Ri, {
|
|
6578
6654
|
align: e.align,
|
|
6579
6655
|
width: e.width,
|
|
6580
6656
|
children: /* @__PURE__ */ m("span", { className: "select-skeleton select-datatable__skel" })
|
|
6581
|
-
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(
|
|
6657
|
+
}, t)) }, `skeleton-${t}`)) : P.map((e) => /* @__PURE__ */ m(Li, {
|
|
6582
6658
|
onClick: o ? () => o(e) : void 0,
|
|
6583
|
-
children: D.map((t, n) => /* @__PURE__ */ m(
|
|
6659
|
+
children: D.map((t, n) => /* @__PURE__ */ m(Ri, {
|
|
6584
6660
|
align: t.align,
|
|
6585
6661
|
width: t.width,
|
|
6586
6662
|
children: t.render(e)
|
|
6587
6663
|
}, n))
|
|
6588
6664
|
}, n(e)))
|
|
6589
|
-
}), a && /* @__PURE__ */ m(
|
|
6665
|
+
}), a && /* @__PURE__ */ m(Ai, { pagination: a })]
|
|
6590
6666
|
});
|
|
6591
6667
|
}
|
|
6592
6668
|
//#endregion
|
|
6593
6669
|
//#region src/SelectAddCard.tsx
|
|
6594
|
-
var
|
|
6670
|
+
var va = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
6595
6671
|
return /* @__PURE__ */ h("button", {
|
|
6596
6672
|
ref: o,
|
|
6597
6673
|
...a,
|
|
@@ -6617,8 +6693,8 @@ var ga = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
6617
6693
|
});
|
|
6618
6694
|
//#endregion
|
|
6619
6695
|
//#region src/SelectCardGrid.tsx
|
|
6620
|
-
function
|
|
6621
|
-
let _ = !r && e.length === 0 && a != null, { hasTitleRow: v, hasFilters: y } =
|
|
6696
|
+
function ya({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", title: l, help: u, description: d, action: f, filters: p, tools: g }) {
|
|
6697
|
+
let _ = !r && e.length === 0 && a != null, { hasTitleRow: v, hasFilters: y } = Di({
|
|
6622
6698
|
title: l,
|
|
6623
6699
|
description: d,
|
|
6624
6700
|
action: f,
|
|
@@ -6630,7 +6706,7 @@ function _a({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6630
6706
|
children: [
|
|
6631
6707
|
(v || y) && /* @__PURE__ */ m("div", {
|
|
6632
6708
|
className: "select-cardgrid__chrome",
|
|
6633
|
-
children: /* @__PURE__ */ m(
|
|
6709
|
+
children: /* @__PURE__ */ m(Oi, {
|
|
6634
6710
|
title: l,
|
|
6635
6711
|
help: u,
|
|
6636
6712
|
description: d,
|
|
@@ -6641,7 +6717,7 @@ function _a({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6641
6717
|
}),
|
|
6642
6718
|
_ ? /* @__PURE__ */ m("div", {
|
|
6643
6719
|
className: "select-cardgrid__empty",
|
|
6644
|
-
children: /* @__PURE__ */ m(
|
|
6720
|
+
children: /* @__PURE__ */ m(zi, {
|
|
6645
6721
|
icon: a.icon,
|
|
6646
6722
|
title: a.heading,
|
|
6647
6723
|
subtitle: a.text,
|
|
@@ -6659,19 +6735,19 @@ function _a({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
6659
6735
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ m("div", {
|
|
6660
6736
|
className: "select-cardgrid__item",
|
|
6661
6737
|
children: n(e)
|
|
6662
|
-
}, t(e))), !r && s && /* @__PURE__ */ m(
|
|
6738
|
+
}, t(e))), !r && s && /* @__PURE__ */ m(va, {
|
|
6663
6739
|
label: s.label,
|
|
6664
6740
|
description: s.description,
|
|
6665
6741
|
onClick: s.onAction
|
|
6666
6742
|
})]
|
|
6667
6743
|
}),
|
|
6668
|
-
o && /* @__PURE__ */ m(
|
|
6744
|
+
o && /* @__PURE__ */ m(Ai, { pagination: o })
|
|
6669
6745
|
]
|
|
6670
6746
|
});
|
|
6671
6747
|
}
|
|
6672
6748
|
//#endregion
|
|
6673
6749
|
//#region src/SelectRecordCard.tsx
|
|
6674
|
-
var
|
|
6750
|
+
var ba = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags: a, status: o, meta: s, to: c, accent: l = !1, className: u, ...d }, f) {
|
|
6675
6751
|
let p = o != null || s != null, g = qr(c);
|
|
6676
6752
|
return /* @__PURE__ */ h("div", {
|
|
6677
6753
|
ref: f,
|
|
@@ -6737,7 +6813,7 @@ var va = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6737
6813
|
})
|
|
6738
6814
|
]
|
|
6739
6815
|
});
|
|
6740
|
-
}),
|
|
6816
|
+
}), xa = r(function({ kind: e, className: t, ...n }, r) {
|
|
6741
6817
|
return /* @__PURE__ */ h("span", {
|
|
6742
6818
|
ref: r,
|
|
6743
6819
|
...n,
|
|
@@ -6755,18 +6831,18 @@ var va = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, tags
|
|
|
6755
6831
|
});
|
|
6756
6832
|
//#endregion
|
|
6757
6833
|
//#region src/SelectSplitChain.tsx
|
|
6758
|
-
function
|
|
6834
|
+
function Sa(e) {
|
|
6759
6835
|
var t;
|
|
6760
6836
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
6761
6837
|
}
|
|
6762
|
-
function
|
|
6838
|
+
function Ca({ node: e, origin: t = !1 }) {
|
|
6763
6839
|
return /* @__PURE__ */ h("span", {
|
|
6764
6840
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
6765
6841
|
children: [
|
|
6766
6842
|
/* @__PURE__ */ m("span", {
|
|
6767
6843
|
className: "select-chain__dot",
|
|
6768
6844
|
"aria-hidden": "true",
|
|
6769
|
-
children:
|
|
6845
|
+
children: Sa(e)
|
|
6770
6846
|
}),
|
|
6771
6847
|
/* @__PURE__ */ m("span", {
|
|
6772
6848
|
className: "select-chain__label",
|
|
@@ -6780,16 +6856,16 @@ function xa({ node: e, origin: t = !1 }) {
|
|
|
6780
6856
|
]
|
|
6781
6857
|
});
|
|
6782
6858
|
}
|
|
6783
|
-
var
|
|
6859
|
+
var wa = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
6784
6860
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ m("span", {
|
|
6785
6861
|
className: "select-chain__link",
|
|
6786
6862
|
"aria-hidden": "true"
|
|
6787
6863
|
}, e);
|
|
6788
|
-
t && c.push(/* @__PURE__ */ m(
|
|
6864
|
+
t && c.push(/* @__PURE__ */ m(Ca, {
|
|
6789
6865
|
node: t,
|
|
6790
6866
|
origin: !0
|
|
6791
6867
|
}, "__origin"));
|
|
6792
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(
|
|
6868
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ m(Ca, { node: e }, e.id));
|
|
6793
6869
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ h("span", {
|
|
6794
6870
|
className: "select-chain__more",
|
|
6795
6871
|
children: ["+", s]
|
|
@@ -6799,43 +6875,43 @@ var Sa = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
6799
6875
|
className: `select-chain${r ? " " + r : ""}`,
|
|
6800
6876
|
children: c
|
|
6801
6877
|
});
|
|
6802
|
-
}),
|
|
6878
|
+
}), Ta = new Intl.NumberFormat("pt-BR", {
|
|
6803
6879
|
style: "currency",
|
|
6804
6880
|
currency: "BRL"
|
|
6805
6881
|
});
|
|
6806
|
-
function
|
|
6882
|
+
function Ea(e) {
|
|
6807
6883
|
let t = typeof e == "string" ? Number(e) : e;
|
|
6808
6884
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
6809
6885
|
}
|
|
6810
|
-
function
|
|
6811
|
-
return
|
|
6886
|
+
function Da(e) {
|
|
6887
|
+
return Ta.format(Ea(e) / 100);
|
|
6812
6888
|
}
|
|
6813
6889
|
//#endregion
|
|
6814
6890
|
//#region src/SelectMoney.tsx
|
|
6815
|
-
var
|
|
6891
|
+
var Oa = "sw:hide-money", ka = {
|
|
6816
6892
|
hidden: !1,
|
|
6817
6893
|
toggle: () => {},
|
|
6818
6894
|
setHidden: () => {}
|
|
6819
|
-
},
|
|
6820
|
-
function
|
|
6895
|
+
}, Aa = n(null);
|
|
6896
|
+
function ja() {
|
|
6821
6897
|
try {
|
|
6822
|
-
return localStorage.getItem(
|
|
6898
|
+
return localStorage.getItem(Oa) === "1";
|
|
6823
6899
|
} catch {
|
|
6824
6900
|
return !1;
|
|
6825
6901
|
}
|
|
6826
6902
|
}
|
|
6827
|
-
function
|
|
6903
|
+
function Ma(e) {
|
|
6828
6904
|
try {
|
|
6829
|
-
localStorage.setItem(
|
|
6905
|
+
localStorage.setItem(Oa, e ? "1" : "0");
|
|
6830
6906
|
} catch {}
|
|
6831
6907
|
}
|
|
6832
|
-
function
|
|
6833
|
-
let [t, n] = d(
|
|
6834
|
-
n(e),
|
|
6908
|
+
function Na({ children: e }) {
|
|
6909
|
+
let [t, n] = d(ja), r = i((e) => {
|
|
6910
|
+
n(e), Ma(e);
|
|
6835
6911
|
}, []), a = i(() => {
|
|
6836
6912
|
n((e) => {
|
|
6837
6913
|
let t = !e;
|
|
6838
|
-
return
|
|
6914
|
+
return Ma(t), t;
|
|
6839
6915
|
});
|
|
6840
6916
|
}, []), o = l(() => ({
|
|
6841
6917
|
hidden: t,
|
|
@@ -6846,16 +6922,16 @@ function ja({ children: e }) {
|
|
|
6846
6922
|
a,
|
|
6847
6923
|
r
|
|
6848
6924
|
]);
|
|
6849
|
-
return /* @__PURE__ */ m(
|
|
6925
|
+
return /* @__PURE__ */ m(Aa.Provider, {
|
|
6850
6926
|
value: o,
|
|
6851
6927
|
children: e
|
|
6852
6928
|
});
|
|
6853
6929
|
}
|
|
6854
|
-
function
|
|
6855
|
-
return a(
|
|
6930
|
+
function Pa() {
|
|
6931
|
+
return a(Aa) ?? ka;
|
|
6856
6932
|
}
|
|
6857
|
-
var
|
|
6858
|
-
let { hidden: a } =
|
|
6933
|
+
var Fa = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
6934
|
+
let { hidden: a } = Pa();
|
|
6859
6935
|
return /* @__PURE__ */ m("span", {
|
|
6860
6936
|
ref: i,
|
|
6861
6937
|
...r,
|
|
@@ -6864,15 +6940,15 @@ var Na = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
6864
6940
|
children: e
|
|
6865
6941
|
});
|
|
6866
6942
|
});
|
|
6867
|
-
function
|
|
6868
|
-
let n =
|
|
6869
|
-
return m(t ?
|
|
6943
|
+
function Ia({ cents: e, sensitive: t = !0 }) {
|
|
6944
|
+
let n = Da(e);
|
|
6945
|
+
return m(t ? Fa : p, { children: n });
|
|
6870
6946
|
}
|
|
6871
|
-
var
|
|
6947
|
+
var La = new Intl.NumberFormat("pt-BR", {
|
|
6872
6948
|
signDisplay: "exceptZero",
|
|
6873
6949
|
minimumFractionDigits: 1,
|
|
6874
6950
|
maximumFractionDigits: 1
|
|
6875
|
-
}),
|
|
6951
|
+
}), Ra = r(function({ value: e, invert: t = !1, caption: n, className: r, ...i }, a) {
|
|
6876
6952
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ h("span", {
|
|
6877
6953
|
ref: a,
|
|
6878
6954
|
...i,
|
|
@@ -6888,7 +6964,7 @@ var Fa = new Intl.NumberFormat("pt-BR", {
|
|
|
6888
6964
|
className: `select-delta__value select-delta__value--${l}`,
|
|
6889
6965
|
children: [
|
|
6890
6966
|
u ? `${u} ` : "",
|
|
6891
|
-
|
|
6967
|
+
La.format(e),
|
|
6892
6968
|
"%"
|
|
6893
6969
|
]
|
|
6894
6970
|
}), n != null && /* @__PURE__ */ m("span", {
|
|
@@ -6897,8 +6973,8 @@ var Fa = new Intl.NumberFormat("pt-BR", {
|
|
|
6897
6973
|
})]
|
|
6898
6974
|
});
|
|
6899
6975
|
});
|
|
6900
|
-
function
|
|
6901
|
-
let { hidden: e, toggle: t } =
|
|
6976
|
+
function za() {
|
|
6977
|
+
let { hidden: e, toggle: t } = Pa();
|
|
6902
6978
|
return /* @__PURE__ */ m(J, {
|
|
6903
6979
|
variant: "outline",
|
|
6904
6980
|
icon: m(e ? Ue : He, {}),
|
|
@@ -6909,7 +6985,7 @@ function La() {
|
|
|
6909
6985
|
}
|
|
6910
6986
|
//#endregion
|
|
6911
6987
|
//#region src/SelectOfferPrice.tsx
|
|
6912
|
-
var
|
|
6988
|
+
var Ba = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, className: a, ...o }, s) {
|
|
6913
6989
|
let c = Number(e);
|
|
6914
6990
|
if (!Number.isFinite(c)) return null;
|
|
6915
6991
|
let l = Number(t), u = Number.isFinite(l) && l > c, d = u ? Math.round((l - c) / l * 100) : 0;
|
|
@@ -6920,11 +6996,11 @@ var Ra = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
6920
6996
|
children: [
|
|
6921
6997
|
/* @__PURE__ */ m("span", {
|
|
6922
6998
|
className: "select-offerprice__now",
|
|
6923
|
-
children: c === 0 && r != null ? r : /* @__PURE__ */ m(
|
|
6999
|
+
children: c === 0 && r != null ? r : /* @__PURE__ */ m(Ia, { cents: c })
|
|
6924
7000
|
}),
|
|
6925
7001
|
u && /* @__PURE__ */ m("s", {
|
|
6926
7002
|
className: "select-offerprice__was",
|
|
6927
|
-
children: /* @__PURE__ */ m(
|
|
7003
|
+
children: /* @__PURE__ */ m(Ia, { cents: l })
|
|
6928
7004
|
}),
|
|
6929
7005
|
u && !n && d > 0 && /* @__PURE__ */ h("span", {
|
|
6930
7006
|
className: "select-offerprice__off",
|
|
@@ -6943,7 +7019,7 @@ var Ra = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
6943
7019
|
});
|
|
6944
7020
|
//#endregion
|
|
6945
7021
|
//#region src/SelectRating.tsx
|
|
6946
|
-
function
|
|
7022
|
+
function Va({ size: e }) {
|
|
6947
7023
|
return /* @__PURE__ */ m("svg", {
|
|
6948
7024
|
width: e,
|
|
6949
7025
|
height: e,
|
|
@@ -6955,7 +7031,7 @@ function za({ size: e }) {
|
|
|
6955
7031
|
})
|
|
6956
7032
|
});
|
|
6957
7033
|
}
|
|
6958
|
-
var
|
|
7034
|
+
var Ha = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
6959
7035
|
let l = !!n && !a, [u, f] = d(null), p = u ?? e;
|
|
6960
7036
|
return /* @__PURE__ */ m("div", {
|
|
6961
7037
|
ref: c,
|
|
@@ -6970,7 +7046,7 @@ var Ba = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
6970
7046
|
children: Array.from({ length: t }, (e, t) => {
|
|
6971
7047
|
let i = /* @__PURE__ */ m("span", {
|
|
6972
7048
|
className: `select-rating__star${t < p ? " is-filled" : ""}`,
|
|
6973
|
-
children: /* @__PURE__ */ m(
|
|
7049
|
+
children: /* @__PURE__ */ m(Va, { size: r })
|
|
6974
7050
|
});
|
|
6975
7051
|
return l ? /* @__PURE__ */ m("button", {
|
|
6976
7052
|
type: "button",
|
|
@@ -6984,14 +7060,14 @@ var Ba = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
6984
7060
|
}, t) : /* @__PURE__ */ m("span", { children: i }, t);
|
|
6985
7061
|
})
|
|
6986
7062
|
});
|
|
6987
|
-
}),
|
|
7063
|
+
}), Ua = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
6988
7064
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
6989
7065
|
return /* @__PURE__ */ h("div", {
|
|
6990
7066
|
ref: o,
|
|
6991
7067
|
...a,
|
|
6992
7068
|
className: `select-quote${i ? " " + i : ""}`,
|
|
6993
7069
|
children: [
|
|
6994
|
-
c && /* @__PURE__ */ m(
|
|
7070
|
+
c && /* @__PURE__ */ m(Ha, {
|
|
6995
7071
|
value: s,
|
|
6996
7072
|
max: t,
|
|
6997
7073
|
size: 13
|
|
@@ -7006,7 +7082,7 @@ var Ba = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7006
7082
|
})
|
|
7007
7083
|
]
|
|
7008
7084
|
});
|
|
7009
|
-
}),
|
|
7085
|
+
}), Wa = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
7010
7086
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
7011
7087
|
return /* @__PURE__ */ h("div", {
|
|
7012
7088
|
ref: i,
|
|
@@ -7028,7 +7104,7 @@ var Ba = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7028
7104
|
children: ["+", o]
|
|
7029
7105
|
})]
|
|
7030
7106
|
});
|
|
7031
|
-
}),
|
|
7107
|
+
}), Ga = [
|
|
7032
7108
|
"Dom",
|
|
7033
7109
|
"Seg",
|
|
7034
7110
|
"Ter",
|
|
@@ -7036,7 +7112,7 @@ var Ba = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7036
7112
|
"Qui",
|
|
7037
7113
|
"Sex",
|
|
7038
7114
|
"Sáb"
|
|
7039
|
-
],
|
|
7115
|
+
], Ka = [
|
|
7040
7116
|
"Janeiro",
|
|
7041
7117
|
"Fevereiro",
|
|
7042
7118
|
"Março",
|
|
@@ -7049,29 +7125,29 @@ var Ba = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
7049
7125
|
"Outubro",
|
|
7050
7126
|
"Novembro",
|
|
7051
7127
|
"Dezembro"
|
|
7052
|
-
],
|
|
7053
|
-
function
|
|
7128
|
+
], qa = (e) => String(e).padStart(2, "0"), Ja = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ya = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Xa = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Za = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Qa = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
7129
|
+
function $a(e) {
|
|
7054
7130
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
7055
7131
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
7056
7132
|
}
|
|
7057
|
-
function
|
|
7058
|
-
let n = `${e.getFullYear()}-${
|
|
7059
|
-
return t ? `${n}T${
|
|
7133
|
+
function eo(e, t) {
|
|
7134
|
+
let n = `${e.getFullYear()}-${qa(e.getMonth() + 1)}-${qa(e.getDate())}`;
|
|
7135
|
+
return t ? `${n}T${qa(e.getHours())}:${qa(e.getMinutes())}` : n;
|
|
7060
7136
|
}
|
|
7061
|
-
function
|
|
7062
|
-
let n = `${
|
|
7063
|
-
return t ? `${n} ${
|
|
7137
|
+
function to(e, t) {
|
|
7138
|
+
let n = `${qa(e.getDate())}/${qa(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
7139
|
+
return t ? `${n} ${qa(e.getHours())}:${qa(e.getMinutes())}` : n;
|
|
7064
7140
|
}
|
|
7065
|
-
var
|
|
7066
|
-
let b = s(), x = g ?? b, [S, C] = d(!1), w =
|
|
7067
|
-
o || (E(
|
|
7141
|
+
var no = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: c, hint: l, minDate: u, maxDate: f, clearable: p = !0, id: g, className: _, ...v }, y) {
|
|
7142
|
+
let b = s(), x = g ?? b, [S, C] = d(!1), w = $a(t), [T, E] = d(() => Ya(w ?? /* @__PURE__ */ new Date())), D = u ? Ja(u) : null, O = f ? Ja(f) : null, k = (e) => !!D && Ja(e) < D || !!O && Ja(e) > O, A = Xa(Ya(T), -Ya(T).getDay()), j = Array.from({ length: 42 }, (e, t) => Xa(A, t)), M = Ja(/* @__PURE__ */ new Date()), N = () => {
|
|
7143
|
+
o || (E(Ya(w ?? /* @__PURE__ */ new Date())), C((e) => !e));
|
|
7068
7144
|
}, P = (e) => {
|
|
7069
7145
|
if (k(e)) return;
|
|
7070
7146
|
let t = new Date(e);
|
|
7071
|
-
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(
|
|
7147
|
+
r && t.setHours((w == null ? void 0 : w.getHours()) ?? 0, (w == null ? void 0 : w.getMinutes()) ?? 0, 0, 0), n(eo(t, r)), r || C(!1);
|
|
7072
7148
|
}, F = (e) => {
|
|
7073
7149
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(w ?? M);
|
|
7074
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
7150
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(eo(o, !0));
|
|
7075
7151
|
}, I = () => {
|
|
7076
7152
|
n(""), C(!1);
|
|
7077
7153
|
}, L = /* @__PURE__ */ h("div", {
|
|
@@ -7085,7 +7161,7 @@ var eo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7085
7161
|
"aria-haspopup": "dialog",
|
|
7086
7162
|
"aria-expanded": S,
|
|
7087
7163
|
"aria-invalid": c ? !0 : void 0,
|
|
7088
|
-
children: w ?
|
|
7164
|
+
children: w ? to(w, r) : /* @__PURE__ */ m("span", {
|
|
7089
7165
|
className: "select-datefield__ph",
|
|
7090
7166
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
7091
7167
|
})
|
|
@@ -7122,13 +7198,13 @@ var eo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7122
7198
|
type: "button",
|
|
7123
7199
|
className: "select-datepicker__nav",
|
|
7124
7200
|
"aria-label": "Mês anterior",
|
|
7125
|
-
onClick: () => E((e) =>
|
|
7201
|
+
onClick: () => E((e) => Za(e, -1)),
|
|
7126
7202
|
children: /* @__PURE__ */ m(U, {})
|
|
7127
7203
|
}),
|
|
7128
7204
|
/* @__PURE__ */ h("span", {
|
|
7129
7205
|
className: "select-datepicker__monthlabel",
|
|
7130
7206
|
children: [
|
|
7131
|
-
|
|
7207
|
+
Ka[T.getMonth()],
|
|
7132
7208
|
" ",
|
|
7133
7209
|
T.getFullYear()
|
|
7134
7210
|
]
|
|
@@ -7137,7 +7213,7 @@ var eo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7137
7213
|
type: "button",
|
|
7138
7214
|
className: "select-datepicker__nav",
|
|
7139
7215
|
"aria-label": "Próximo mês",
|
|
7140
|
-
onClick: () => E((e) =>
|
|
7216
|
+
onClick: () => E((e) => Za(e, 1)),
|
|
7141
7217
|
children: /* @__PURE__ */ m(ae, {})
|
|
7142
7218
|
})
|
|
7143
7219
|
]
|
|
@@ -7145,11 +7221,11 @@ var eo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7145
7221
|
/* @__PURE__ */ h("div", {
|
|
7146
7222
|
className: "select-datepicker__grid",
|
|
7147
7223
|
role: "grid",
|
|
7148
|
-
children: [
|
|
7224
|
+
children: [Ga.map((e) => /* @__PURE__ */ m("div", {
|
|
7149
7225
|
className: "select-datepicker__weekday",
|
|
7150
7226
|
children: e
|
|
7151
7227
|
}, e)), j.map((e) => {
|
|
7152
|
-
let t = e.getMonth() !== T.getMonth(), n = !!w &&
|
|
7228
|
+
let t = e.getMonth() !== T.getMonth(), n = !!w && Qa(e, w), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (Qa(e, M) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
7153
7229
|
return /* @__PURE__ */ m("div", {
|
|
7154
7230
|
className: "select-datepicker__day",
|
|
7155
7231
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -7171,7 +7247,7 @@ var eo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7171
7247
|
type: "time",
|
|
7172
7248
|
className: "select-input select-datefield__time-input",
|
|
7173
7249
|
"aria-label": "Horário",
|
|
7174
|
-
value: w ? `${
|
|
7250
|
+
value: w ? `${qa(w.getHours())}:${qa(w.getMinutes())}` : "",
|
|
7175
7251
|
onChange: (e) => F(e.target.value)
|
|
7176
7252
|
})]
|
|
7177
7253
|
}),
|
|
@@ -7212,25 +7288,25 @@ var eo = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
7212
7288
|
}) : null
|
|
7213
7289
|
]
|
|
7214
7290
|
});
|
|
7215
|
-
}),
|
|
7216
|
-
function
|
|
7217
|
-
let t =
|
|
7291
|
+
}), ro = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
7292
|
+
function io(e) {
|
|
7293
|
+
let t = ro.exec(e ?? "");
|
|
7218
7294
|
if (!t) return null;
|
|
7219
7295
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
7220
7296
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
7221
7297
|
}
|
|
7222
7298
|
//#endregion
|
|
7223
7299
|
//#region src/SelectFilterBar.tsx
|
|
7224
|
-
function
|
|
7300
|
+
function ao(e, t) {
|
|
7225
7301
|
var n;
|
|
7226
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
7302
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? io(t) ?? t : t;
|
|
7227
7303
|
}
|
|
7228
|
-
function
|
|
7304
|
+
function oo({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: s }) {
|
|
7229
7305
|
let [c, l] = d("");
|
|
7230
7306
|
o(() => {
|
|
7231
7307
|
r || l("");
|
|
7232
7308
|
}, [r]);
|
|
7233
|
-
let u = t.trim() !== "", f = u ?
|
|
7309
|
+
let u = t.trim() !== "", f = u ? ao(e, t) : null, p = u && !!e.error, g = e.options ?? [], _ = g.length > 7, v = _ ? g.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : g;
|
|
7234
7310
|
return /* @__PURE__ */ h(on, {
|
|
7235
7311
|
active: r,
|
|
7236
7312
|
onClose: a,
|
|
@@ -7257,7 +7333,7 @@ function io({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7257
7333
|
className: "select-facet__panel",
|
|
7258
7334
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
7259
7335
|
className: "select-facet__search",
|
|
7260
|
-
children: /* @__PURE__ */ m(
|
|
7336
|
+
children: /* @__PURE__ */ m(Ci, {
|
|
7261
7337
|
value: c,
|
|
7262
7338
|
onChange: l,
|
|
7263
7339
|
placeholder: "Buscar opção…"
|
|
@@ -7288,7 +7364,7 @@ function io({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7288
7364
|
})]
|
|
7289
7365
|
}) : e.type === "date" ? /* @__PURE__ */ m("div", {
|
|
7290
7366
|
className: "select-facet__field",
|
|
7291
|
-
children: /* @__PURE__ */ m(
|
|
7367
|
+
children: /* @__PURE__ */ m(no, {
|
|
7292
7368
|
value: t,
|
|
7293
7369
|
onChange: n,
|
|
7294
7370
|
placeholder: e.placeholder,
|
|
@@ -7326,7 +7402,7 @@ function io({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
7326
7402
|
]
|
|
7327
7403
|
});
|
|
7328
7404
|
}
|
|
7329
|
-
var
|
|
7405
|
+
var so = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, disabled: a, className: o, ...s }, c) {
|
|
7330
7406
|
let [l, u] = d([]), [f, p] = d(null), [g, _] = d(!1), v = (e) => (t[e.key] ?? "").trim() !== "", y = (e) => !!e.pinned || v(e) || l.includes(e.key), b = e.filter(y), x = e.filter((e) => !y(e)), S = e.filter(v), C = () => {
|
|
7331
7407
|
u([]), p(null), r();
|
|
7332
7408
|
}, w = (e) => {
|
|
@@ -7364,7 +7440,7 @@ var ao = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7364
7440
|
})
|
|
7365
7441
|
]
|
|
7366
7442
|
}),
|
|
7367
|
-
b.map((e) => /* @__PURE__ */ m(
|
|
7443
|
+
b.map((e) => /* @__PURE__ */ m(oo, {
|
|
7368
7444
|
filter: e,
|
|
7369
7445
|
value: t[e.key] ?? "",
|
|
7370
7446
|
onChange: (t) => n(e.key, t),
|
|
@@ -7410,7 +7486,7 @@ var ao = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7410
7486
|
children: [
|
|
7411
7487
|
e.label,
|
|
7412
7488
|
": ",
|
|
7413
|
-
|
|
7489
|
+
ao(e, t[e.key] ?? ""),
|
|
7414
7490
|
/* @__PURE__ */ m("button", {
|
|
7415
7491
|
type: "button",
|
|
7416
7492
|
className: "select-filterbar__tagx",
|
|
@@ -7427,7 +7503,7 @@ var ao = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7427
7503
|
})]
|
|
7428
7504
|
})]
|
|
7429
7505
|
});
|
|
7430
|
-
}),
|
|
7506
|
+
}), co = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", className: u, ...f }, p) {
|
|
7431
7507
|
let [g, _] = d(!1), [v, y] = d(""), b = t.filter((e) => e.label.toLowerCase().includes(v.trim().toLowerCase())), x = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), S = n.map((e) => t.find((t) => t.value === e)).filter((e) => e != null);
|
|
7432
7508
|
return /* @__PURE__ */ h("div", {
|
|
7433
7509
|
ref: p,
|
|
@@ -7487,7 +7563,7 @@ var ao = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7487
7563
|
className: "select-tagselect__menu",
|
|
7488
7564
|
children: [/* @__PURE__ */ m("div", {
|
|
7489
7565
|
className: "select-tagselect__search",
|
|
7490
|
-
children: /* @__PURE__ */ m(
|
|
7566
|
+
children: /* @__PURE__ */ m(Ci, {
|
|
7491
7567
|
value: v,
|
|
7492
7568
|
onChange: y,
|
|
7493
7569
|
placeholder: "Buscar…"
|
|
@@ -7540,7 +7616,7 @@ var ao = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7540
7616
|
}) : null
|
|
7541
7617
|
]
|
|
7542
7618
|
});
|
|
7543
|
-
}),
|
|
7619
|
+
}), lo = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
7544
7620
|
return /* @__PURE__ */ h("div", {
|
|
7545
7621
|
ref: c,
|
|
7546
7622
|
...s,
|
|
@@ -7572,8 +7648,8 @@ var ao = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
7572
7648
|
})
|
|
7573
7649
|
]
|
|
7574
7650
|
});
|
|
7575
|
-
}),
|
|
7576
|
-
function
|
|
7651
|
+
}), uo = n(null), fo = 220, po = 4e3, mo = 8, ho = .04, go = 5;
|
|
7652
|
+
function _o({ children: e }) {
|
|
7577
7653
|
let [t, n] = d([]), r = u(0), a = u(/* @__PURE__ */ new Map()), s = i((e) => {
|
|
7578
7654
|
n((t) => t.filter((t) => t.id !== e)), a.current.delete(e);
|
|
7579
7655
|
}, []), c = i((e) => {
|
|
@@ -7581,9 +7657,9 @@ function ho({ children: e }) {
|
|
|
7581
7657
|
t && clearTimeout(t), n((t) => t.map((t) => t.id === e ? {
|
|
7582
7658
|
...t,
|
|
7583
7659
|
exiting: !0
|
|
7584
|
-
} : t)), a.current.set(e, setTimeout(() => s(e),
|
|
7660
|
+
} : t)), a.current.set(e, setTimeout(() => s(e), fo));
|
|
7585
7661
|
}, [s]), f = i((e, t) => {
|
|
7586
|
-
let i = ++r.current, o = (t == null ? void 0 : t.duration) ??
|
|
7662
|
+
let i = ++r.current, o = (t == null ? void 0 : t.duration) ?? po;
|
|
7587
7663
|
n((n) => [...n, {
|
|
7588
7664
|
id: i,
|
|
7589
7665
|
content: e,
|
|
@@ -7611,7 +7687,7 @@ function ho({ children: e }) {
|
|
|
7611
7687
|
duration: t
|
|
7612
7688
|
})
|
|
7613
7689
|
}), [f]);
|
|
7614
|
-
return /* @__PURE__ */ h(
|
|
7690
|
+
return /* @__PURE__ */ h(uo.Provider, {
|
|
7615
7691
|
value: p,
|
|
7616
7692
|
children: [e, t.length > 0 && g(/* @__PURE__ */ m("div", {
|
|
7617
7693
|
className: "select select-toasts",
|
|
@@ -7619,8 +7695,8 @@ function ho({ children: e }) {
|
|
|
7619
7695
|
"aria-live": "polite",
|
|
7620
7696
|
"aria-label": "Notificações",
|
|
7621
7697
|
children: t.map((e, n) => {
|
|
7622
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
7623
|
-
transform: `translate(-50%, ${-r *
|
|
7698
|
+
let r = t.length - 1 - n, i = e.exiting || r >= go, a = {
|
|
7699
|
+
transform: `translate(-50%, ${-r * mo}px) scale(${1 - r * ho})`,
|
|
7624
7700
|
opacity: +!i,
|
|
7625
7701
|
zIndex: 1e3 - r,
|
|
7626
7702
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -7644,14 +7720,14 @@ function ho({ children: e }) {
|
|
|
7644
7720
|
}), document.body)]
|
|
7645
7721
|
});
|
|
7646
7722
|
}
|
|
7647
|
-
function
|
|
7648
|
-
let e = a(
|
|
7723
|
+
function vo() {
|
|
7724
|
+
let e = a(uo);
|
|
7649
7725
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
7650
7726
|
return e;
|
|
7651
7727
|
}
|
|
7652
7728
|
//#endregion
|
|
7653
7729
|
//#region src/SelectPreviewFrame.tsx
|
|
7654
|
-
var
|
|
7730
|
+
var yo = "allow-scripts allow-same-origin allow-forms", bo = 390, xo = 1280, So = r(function({ src: e, sandbox: t = yo, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, emptyLabel: s = "Salve para gerar a pré-visualização.", onReload: l, notice: f, iframeRef: g, desktopWidth: _ = xo, className: v, ...y }, b) {
|
|
7655
7731
|
let x = qr(e), [S, C] = d(a), [w, T] = d(0), [E, D] = d(!0), O = u(null), [k, A] = d({
|
|
7656
7732
|
w: 0,
|
|
7657
7733
|
h: 0
|
|
@@ -7669,7 +7745,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7669
7745
|
});
|
|
7670
7746
|
return t.observe(e), () => t.disconnect();
|
|
7671
7747
|
}, []);
|
|
7672
|
-
let j = S === "mobile" ?
|
|
7748
|
+
let j = S === "mobile" ? bo : _, M = k.w > 0 ? Math.min(1, k.w / j) : 1, N = x ? `${x}${x.includes("?") ? "&" : "?"}_pv=${w}` : "", P = () => {
|
|
7673
7749
|
if (D(!0), l) {
|
|
7674
7750
|
l();
|
|
7675
7751
|
return;
|
|
@@ -7735,7 +7811,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7735
7811
|
style: { width: j * M },
|
|
7736
7812
|
children: [E && /* @__PURE__ */ m("div", {
|
|
7737
7813
|
className: "select-preview__loading",
|
|
7738
|
-
children: /* @__PURE__ */ m(
|
|
7814
|
+
children: /* @__PURE__ */ m(ni, {})
|
|
7739
7815
|
}), /* @__PURE__ */ m("div", {
|
|
7740
7816
|
className: "select-preview__viewport",
|
|
7741
7817
|
style: {
|
|
@@ -7758,7 +7834,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7758
7834
|
})
|
|
7759
7835
|
})]
|
|
7760
7836
|
});
|
|
7761
|
-
}),
|
|
7837
|
+
}), Co = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, className: a, ...o }, s) {
|
|
7762
7838
|
return /* @__PURE__ */ h("div", {
|
|
7763
7839
|
ref: s,
|
|
7764
7840
|
...o,
|
|
@@ -7783,8 +7859,8 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7783
7859
|
className: "select-balance__heromain",
|
|
7784
7860
|
children: [/* @__PURE__ */ m("span", {
|
|
7785
7861
|
className: "select-balance__heroamount",
|
|
7786
|
-
children: /* @__PURE__ */ m(
|
|
7787
|
-
}), n != null && /* @__PURE__ */ m(
|
|
7862
|
+
children: /* @__PURE__ */ m(Ia, { cents: e })
|
|
7863
|
+
}), n != null && /* @__PURE__ */ m(Ra, {
|
|
7788
7864
|
value: n,
|
|
7789
7865
|
caption: "vs. período anterior"
|
|
7790
7866
|
})]
|
|
@@ -7803,14 +7879,14 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7803
7879
|
children: e.label
|
|
7804
7880
|
}), /* @__PURE__ */ m("span", {
|
|
7805
7881
|
className: "select-balance__bucketamount",
|
|
7806
|
-
children: /* @__PURE__ */ m(
|
|
7882
|
+
children: /* @__PURE__ */ m(Ia, { cents: e.cents })
|
|
7807
7883
|
})]
|
|
7808
7884
|
})]
|
|
7809
7885
|
}, e.label))
|
|
7810
7886
|
})]
|
|
7811
7887
|
})]
|
|
7812
7888
|
});
|
|
7813
|
-
}),
|
|
7889
|
+
}), wo = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", className: a, ...o }, s) {
|
|
7814
7890
|
let c = n ?? e - t.reduce((e, t) => e + t.cents, 0);
|
|
7815
7891
|
return /* @__PURE__ */ h("div", {
|
|
7816
7892
|
ref: s,
|
|
@@ -7819,13 +7895,13 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7819
7895
|
children: [
|
|
7820
7896
|
/* @__PURE__ */ h("div", {
|
|
7821
7897
|
className: "select-fees__row",
|
|
7822
|
-
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(
|
|
7898
|
+
children: [/* @__PURE__ */ m("span", { children: r }), /* @__PURE__ */ m("span", { children: /* @__PURE__ */ m(Ia, { cents: e }) })]
|
|
7823
7899
|
}),
|
|
7824
7900
|
t.map((e) => /* @__PURE__ */ h("div", {
|
|
7825
7901
|
className: "select-fees__row",
|
|
7826
7902
|
children: [/* @__PURE__ */ m("span", { children: e.label }), /* @__PURE__ */ h("span", {
|
|
7827
7903
|
className: "select-fees__neg",
|
|
7828
|
-
children: ["−\xA0", /* @__PURE__ */ m(
|
|
7904
|
+
children: ["−\xA0", /* @__PURE__ */ m(Ia, { cents: e.cents })]
|
|
7829
7905
|
})]
|
|
7830
7906
|
}, e.label)),
|
|
7831
7907
|
/* @__PURE__ */ m("div", { className: "select-fees__divider" }),
|
|
@@ -7833,16 +7909,26 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7833
7909
|
className: "select-fees__row select-fees__row--net",
|
|
7834
7910
|
children: [/* @__PURE__ */ m("span", { children: i }), /* @__PURE__ */ m("span", {
|
|
7835
7911
|
className: "select-fees__netvalue",
|
|
7836
|
-
children: /* @__PURE__ */ m(
|
|
7912
|
+
children: /* @__PURE__ */ m(Ia, { cents: c })
|
|
7837
7913
|
})]
|
|
7838
7914
|
})
|
|
7839
7915
|
]
|
|
7840
7916
|
});
|
|
7841
|
-
}),
|
|
7917
|
+
}), To = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, className: l, ...u }, d) {
|
|
7918
|
+
let f = s != null, p = f ? {
|
|
7919
|
+
role: "button",
|
|
7920
|
+
tabIndex: 0,
|
|
7921
|
+
"aria-pressed": c,
|
|
7922
|
+
onClick: s,
|
|
7923
|
+
onKeyDown: (e) => {
|
|
7924
|
+
e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), s());
|
|
7925
|
+
}
|
|
7926
|
+
} : {}, g = "select-kpi" + (o ? " select-kpi--bare" : "") + (f ? " select-kpi--interactive" : "") + (f && c ? " select-kpi--selected" : "") + (l ? " " + l : "");
|
|
7842
7927
|
return /* @__PURE__ */ h("div", {
|
|
7843
|
-
ref:
|
|
7844
|
-
...
|
|
7845
|
-
|
|
7928
|
+
ref: d,
|
|
7929
|
+
...u,
|
|
7930
|
+
...p,
|
|
7931
|
+
className: g,
|
|
7846
7932
|
children: [
|
|
7847
7933
|
/* @__PURE__ */ h("span", {
|
|
7848
7934
|
className: `select-kpi__label${i == null ? "" : " select-kpi__label--help"}`,
|
|
@@ -7868,7 +7954,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7868
7954
|
})
|
|
7869
7955
|
]
|
|
7870
7956
|
});
|
|
7871
|
-
}),
|
|
7957
|
+
}), Eo = 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) {
|
|
7872
7958
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
7873
7959
|
return /* @__PURE__ */ h("div", {
|
|
7874
7960
|
ref: p,
|
|
@@ -7911,7 +7997,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7911
7997
|
});
|
|
7912
7998
|
//#endregion
|
|
7913
7999
|
//#region src/chartUtils.ts
|
|
7914
|
-
function
|
|
8000
|
+
function Do() {
|
|
7915
8001
|
let [e, t] = d(1);
|
|
7916
8002
|
return c(() => {
|
|
7917
8003
|
let e = () => {
|
|
@@ -7922,7 +8008,7 @@ function To() {
|
|
|
7922
8008
|
}, []), e;
|
|
7923
8009
|
}
|
|
7924
8010
|
function Y(e) {
|
|
7925
|
-
let t = u(null), [n, r] = d(0), i =
|
|
8011
|
+
let t = u(null), [n, r] = d(0), i = Do();
|
|
7926
8012
|
return c(() => {
|
|
7927
8013
|
let e = t.current;
|
|
7928
8014
|
if (!e) return;
|
|
@@ -7939,7 +8025,7 @@ function Y(e) {
|
|
|
7939
8025
|
height: Math.round(e * i)
|
|
7940
8026
|
};
|
|
7941
8027
|
}
|
|
7942
|
-
function
|
|
8028
|
+
function Oo(e, t) {
|
|
7943
8029
|
let [n, r] = d(t);
|
|
7944
8030
|
return c(() => {
|
|
7945
8031
|
let t = e.current;
|
|
@@ -7953,15 +8039,15 @@ function Eo(e, t) {
|
|
|
7953
8039
|
return i.observe(t), () => i.disconnect();
|
|
7954
8040
|
}, [e]), n;
|
|
7955
8041
|
}
|
|
7956
|
-
function
|
|
8042
|
+
function ko(e) {
|
|
7957
8043
|
if (e <= 0) return 1;
|
|
7958
8044
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
7959
8045
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
7960
8046
|
}
|
|
7961
|
-
function
|
|
8047
|
+
function Ao(e, t = 4) {
|
|
7962
8048
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
7963
8049
|
}
|
|
7964
|
-
function
|
|
8050
|
+
function jo(e, t = 5) {
|
|
7965
8051
|
if (!(e > 0)) return {
|
|
7966
8052
|
max: 1,
|
|
7967
8053
|
values: [0, 1]
|
|
@@ -7973,10 +8059,10 @@ function ko(e, t = 5) {
|
|
|
7973
8059
|
values: s
|
|
7974
8060
|
};
|
|
7975
8061
|
}
|
|
7976
|
-
function
|
|
8062
|
+
function Mo(e) {
|
|
7977
8063
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
7978
8064
|
}
|
|
7979
|
-
function
|
|
8065
|
+
function No(e) {
|
|
7980
8066
|
let t = e.length;
|
|
7981
8067
|
if (t === 0) return "";
|
|
7982
8068
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -8000,23 +8086,23 @@ function jo(e) {
|
|
|
8000
8086
|
}
|
|
8001
8087
|
return s;
|
|
8002
8088
|
}
|
|
8003
|
-
function
|
|
8089
|
+
function Po(e, t) {
|
|
8004
8090
|
if (e.length === 0) return "";
|
|
8005
8091
|
let n = e[0], r = e[e.length - 1];
|
|
8006
|
-
return `${
|
|
8092
|
+
return `${No(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
8007
8093
|
}
|
|
8008
|
-
function
|
|
8009
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
8094
|
+
function Fo(e, t) {
|
|
8095
|
+
return e.length === 0 || t.length === 0 ? "" : `${No(e)} ${No([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
8010
8096
|
}
|
|
8011
|
-
function
|
|
8097
|
+
function Io(e, t, n, r) {
|
|
8012
8098
|
let i = (r - 90) * Math.PI / 180;
|
|
8013
8099
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8014
8100
|
}
|
|
8015
|
-
function
|
|
8016
|
-
let [o, s] =
|
|
8101
|
+
function Lo(e, t, n, r, i, a) {
|
|
8102
|
+
let [o, s] = Io(e, t, n, i), [c, l] = Io(e, t, n, a), [u, d] = Io(e, t, r, a), [f, p] = Io(e, t, r, i), m = +(a - i > 180);
|
|
8017
8103
|
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`;
|
|
8018
8104
|
}
|
|
8019
|
-
var
|
|
8105
|
+
var Ro = [
|
|
8020
8106
|
"var(--select-chart-1)",
|
|
8021
8107
|
"var(--select-chart-2)",
|
|
8022
8108
|
"var(--select-chart-3)",
|
|
@@ -8024,13 +8110,13 @@ var Io = [
|
|
|
8024
8110
|
"var(--select-chart-5)"
|
|
8025
8111
|
];
|
|
8026
8112
|
function X(e) {
|
|
8027
|
-
return
|
|
8113
|
+
return Ro[e % Ro.length];
|
|
8028
8114
|
}
|
|
8029
8115
|
function Z(e) {
|
|
8030
8116
|
let t = Math.abs(e);
|
|
8031
8117
|
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));
|
|
8032
8118
|
}
|
|
8033
|
-
var
|
|
8119
|
+
var zo = {
|
|
8034
8120
|
top: 16,
|
|
8035
8121
|
right: 22,
|
|
8036
8122
|
bottom: 32,
|
|
@@ -8038,7 +8124,7 @@ var Lo = {
|
|
|
8038
8124
|
};
|
|
8039
8125
|
//#endregion
|
|
8040
8126
|
//#region src/SelectSparkline.tsx
|
|
8041
|
-
function
|
|
8127
|
+
function Bo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
8042
8128
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
8043
8129
|
if (o > 0 && e.length > 1) {
|
|
8044
8130
|
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];
|
|
@@ -8065,11 +8151,11 @@ function Ro({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
8065
8151
|
})]
|
|
8066
8152
|
}) }),
|
|
8067
8153
|
/* @__PURE__ */ m("path", {
|
|
8068
|
-
d:
|
|
8154
|
+
d: Po(a, n - 4),
|
|
8069
8155
|
fill: `url(#${l}-sa)`
|
|
8070
8156
|
}),
|
|
8071
8157
|
/* @__PURE__ */ m("path", {
|
|
8072
|
-
d:
|
|
8158
|
+
d: No(a),
|
|
8073
8159
|
fill: "none",
|
|
8074
8160
|
stroke: c,
|
|
8075
8161
|
strokeWidth: 2,
|
|
@@ -8150,8 +8236,8 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
8150
8236
|
}
|
|
8151
8237
|
//#endregion
|
|
8152
8238
|
//#region src/SelectBarChart.tsx
|
|
8153
|
-
function
|
|
8154
|
-
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f =
|
|
8239
|
+
function Vo({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
8240
|
+
let { ref: o, width: c } = Y(t), l = Q(), u = s(), d = n ?? X(0), f = ko(Math.max(0, ...e.map((e) => e.value))), p = zo, 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 * _;
|
|
8155
8241
|
return /* @__PURE__ */ h("div", {
|
|
8156
8242
|
...a,
|
|
8157
8243
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8177,7 +8263,7 @@ function zo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8177
8263
|
stopOpacity: .62
|
|
8178
8264
|
})]
|
|
8179
8265
|
}) }),
|
|
8180
|
-
|
|
8266
|
+
Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8181
8267
|
x1: p.left,
|
|
8182
8268
|
x2: c - p.right,
|
|
8183
8269
|
y1: x(e),
|
|
@@ -8227,8 +8313,8 @@ function zo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8227
8313
|
}
|
|
8228
8314
|
//#endregion
|
|
8229
8315
|
//#region src/SelectLineChart.tsx
|
|
8230
|
-
function
|
|
8231
|
-
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } =
|
|
8316
|
+
function Ho({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1, className: a, ...o }) {
|
|
8317
|
+
let { ref: c, width: l } = Y(n), u = Q(), f = s(), [p, g] = d(null), { max: _, values: v } = jo(Math.max(0, ...e.flatMap((e) => e.data))), y = zo, 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;
|
|
8232
8318
|
return /* @__PURE__ */ h("div", {
|
|
8233
8319
|
...o,
|
|
8234
8320
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8281,11 +8367,11 @@ function Bo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8281
8367
|
e.map((e, t) => {
|
|
8282
8368
|
let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
|
|
8283
8369
|
return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
|
|
8284
|
-
d:
|
|
8370
|
+
d: Po(r, D),
|
|
8285
8371
|
fill: `url(#${f}-a${t})`,
|
|
8286
8372
|
className: "select-chart__area"
|
|
8287
8373
|
}), /* @__PURE__ */ m("path", {
|
|
8288
|
-
d:
|
|
8374
|
+
d: No(r),
|
|
8289
8375
|
fill: "none",
|
|
8290
8376
|
stroke: n,
|
|
8291
8377
|
strokeWidth: 2.25,
|
|
@@ -8340,8 +8426,8 @@ function Bo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8340
8426
|
}
|
|
8341
8427
|
//#endregion
|
|
8342
8428
|
//#region src/SelectStackedArea.tsx
|
|
8343
|
-
function
|
|
8344
|
-
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 =
|
|
8429
|
+
function Uo({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
8430
|
+
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 = ko(Math.max(0, ..._)), b = zo, 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];
|
|
8345
8431
|
return /* @__PURE__ */ h("div", {
|
|
8346
8432
|
...a,
|
|
8347
8433
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8370,7 +8456,7 @@ function Vo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8370
8456
|
})]
|
|
8371
8457
|
}, t);
|
|
8372
8458
|
}) }),
|
|
8373
|
-
|
|
8459
|
+
Ao(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8374
8460
|
x1: b.left,
|
|
8375
8461
|
x2: c - b.right,
|
|
8376
8462
|
y1: w(e),
|
|
@@ -8389,10 +8475,10 @@ function Vo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8389
8475
|
return /* @__PURE__ */ h("g", {
|
|
8390
8476
|
className: "select-chart__area",
|
|
8391
8477
|
children: [/* @__PURE__ */ m("path", {
|
|
8392
|
-
d:
|
|
8478
|
+
d: Fo(i, a),
|
|
8393
8479
|
fill: `url(#${u}-b${n})`
|
|
8394
8480
|
}), /* @__PURE__ */ m("path", {
|
|
8395
|
-
d:
|
|
8481
|
+
d: No(i),
|
|
8396
8482
|
fill: "none",
|
|
8397
8483
|
stroke: r,
|
|
8398
8484
|
strokeWidth: 1.5,
|
|
@@ -8446,11 +8532,11 @@ function Vo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8446
8532
|
}
|
|
8447
8533
|
//#endregion
|
|
8448
8534
|
//#region src/SelectComboChart.tsx
|
|
8449
|
-
function
|
|
8535
|
+
function Wo({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...c }) {
|
|
8450
8536
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
8451
|
-
...
|
|
8537
|
+
...zo,
|
|
8452
8538
|
right: 58
|
|
8453
|
-
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S =
|
|
8539
|
+
}, y = Math.max(0, u - v.left - v.right), b = r - v.top - v.bottom, x = e.length, S = ko(Math.max(0, ...t.data)), C = ko(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)]);
|
|
8454
8540
|
return /* @__PURE__ */ h("div", {
|
|
8455
8541
|
...c,
|
|
8456
8542
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -8476,7 +8562,7 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8476
8562
|
stopOpacity: .55
|
|
8477
8563
|
})]
|
|
8478
8564
|
}) }),
|
|
8479
|
-
|
|
8565
|
+
Ao(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8480
8566
|
x1: v.left,
|
|
8481
8567
|
x2: u - v.right,
|
|
8482
8568
|
y1: A(e),
|
|
@@ -8490,7 +8576,7 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8490
8576
|
textAnchor: "end",
|
|
8491
8577
|
children: i(e)
|
|
8492
8578
|
})] }, t)),
|
|
8493
|
-
|
|
8579
|
+
Ao(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
8494
8580
|
x: u - 4,
|
|
8495
8581
|
y: j(e),
|
|
8496
8582
|
className: "select-chart__ylabel",
|
|
@@ -8519,7 +8605,7 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8519
8605
|
className: "select-chart__crosshair"
|
|
8520
8606
|
}),
|
|
8521
8607
|
/* @__PURE__ */ m("path", {
|
|
8522
|
-
d:
|
|
8608
|
+
d: No(N),
|
|
8523
8609
|
fill: "none",
|
|
8524
8610
|
stroke: O,
|
|
8525
8611
|
strokeWidth: 2.5,
|
|
@@ -8577,8 +8663,8 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8577
8663
|
}
|
|
8578
8664
|
//#endregion
|
|
8579
8665
|
//#region src/SelectDonut.tsx
|
|
8580
|
-
var
|
|
8581
|
-
let p = Q(), g = s(), _ = u(null), v =
|
|
8666
|
+
var Go = 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) {
|
|
8667
|
+
let p = Q(), g = s(), _ = u(null), v = Oo(_, 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;
|
|
8582
8668
|
return /* @__PURE__ */ h("div", {
|
|
8583
8669
|
ref: f,
|
|
8584
8670
|
...d,
|
|
@@ -8621,7 +8707,7 @@ var Uo = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8621
8707
|
w += e.value;
|
|
8622
8708
|
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);
|
|
8623
8709
|
return /* @__PURE__ */ m("path", {
|
|
8624
|
-
d:
|
|
8710
|
+
d: Lo(b, x, S, C, c, l),
|
|
8625
8711
|
fill: `url(#${g}-s${t})`,
|
|
8626
8712
|
className: "select-chart__seg",
|
|
8627
8713
|
onMouseEnter: () => {
|
|
@@ -8672,8 +8758,8 @@ var Uo = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8672
8758
|
});
|
|
8673
8759
|
//#endregion
|
|
8674
8760
|
//#region src/SelectColumnChart.tsx
|
|
8675
|
-
function
|
|
8676
|
-
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)), _ =
|
|
8761
|
+
function Ko({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, className: a, ...o }) {
|
|
8762
|
+
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)), _ = ko(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data))), v = zo, 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;
|
|
8677
8763
|
return /* @__PURE__ */ h("div", {
|
|
8678
8764
|
...o,
|
|
8679
8765
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8702,7 +8788,7 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8702
8788
|
})]
|
|
8703
8789
|
}, t);
|
|
8704
8790
|
}) }),
|
|
8705
|
-
|
|
8791
|
+
Ao(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8706
8792
|
x1: v.left,
|
|
8707
8793
|
x2: l - v.right,
|
|
8708
8794
|
y1: C(e),
|
|
@@ -8784,7 +8870,7 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8784
8870
|
}
|
|
8785
8871
|
//#endregion
|
|
8786
8872
|
//#region src/SelectFunnel.tsx
|
|
8787
|
-
var
|
|
8873
|
+
var qo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
8788
8874
|
let a = Math.max(1, ...e.map((e) => e.value));
|
|
8789
8875
|
return /* @__PURE__ */ m("div", {
|
|
8790
8876
|
ref: i,
|
|
@@ -8826,19 +8912,19 @@ var Go = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
|
8826
8912
|
});
|
|
8827
8913
|
//#endregion
|
|
8828
8914
|
//#region src/SelectGauge.tsx
|
|
8829
|
-
function
|
|
8915
|
+
function Jo(e) {
|
|
8830
8916
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
8831
8917
|
}
|
|
8832
|
-
function
|
|
8918
|
+
function Yo(e, t, n, r) {
|
|
8833
8919
|
let i = Math.PI + r * Math.PI;
|
|
8834
8920
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8835
8921
|
}
|
|
8836
|
-
function
|
|
8837
|
-
let [a, o] =
|
|
8922
|
+
function Xo(e, t, n, r, i) {
|
|
8923
|
+
let [a, o] = Yo(e, t, n, r), [s, c] = Yo(e, t, n, i);
|
|
8838
8924
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
8839
8925
|
}
|
|
8840
|
-
var
|
|
8841
|
-
let u =
|
|
8926
|
+
var Zo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Qo = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Zo, className: s, ...c }, l) {
|
|
8927
|
+
let u = Jo(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 = $t({
|
|
8842
8928
|
value: u,
|
|
8843
8929
|
format: o
|
|
8844
8930
|
});
|
|
@@ -8861,13 +8947,13 @@ var Yo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8861
8947
|
"aria-hidden": "true",
|
|
8862
8948
|
children: [/* @__PURE__ */ m("path", {
|
|
8863
8949
|
className: "select-gauge__track",
|
|
8864
|
-
d:
|
|
8950
|
+
d: Xo(g, _, p, 0, 1),
|
|
8865
8951
|
fill: "none",
|
|
8866
8952
|
strokeWidth: d,
|
|
8867
8953
|
strokeLinecap: "round"
|
|
8868
8954
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
8869
8955
|
className: "select-gauge__arc",
|
|
8870
|
-
d:
|
|
8956
|
+
d: Xo(g, _, p, 0, u / 100),
|
|
8871
8957
|
fill: "none",
|
|
8872
8958
|
stroke: a ?? "var(--select-chart-1)",
|
|
8873
8959
|
strokeWidth: d,
|
|
@@ -8890,7 +8976,7 @@ var Yo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8890
8976
|
children: n
|
|
8891
8977
|
})]
|
|
8892
8978
|
});
|
|
8893
|
-
}),
|
|
8979
|
+
}), $o = 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) {
|
|
8894
8980
|
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 = {
|
|
8895
8981
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
8896
8982
|
width: "fit-content",
|
|
@@ -8955,7 +9041,7 @@ var Yo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8955
9041
|
});
|
|
8956
9042
|
//#endregion
|
|
8957
9043
|
//#region src/SelectProgressList.tsx
|
|
8958
|
-
function
|
|
9044
|
+
function es({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
|
|
8959
9045
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
8960
9046
|
className: "select-progresslist__empty",
|
|
8961
9047
|
children: r
|
|
@@ -9006,7 +9092,7 @@ function Qo({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
9006
9092
|
}
|
|
9007
9093
|
//#endregion
|
|
9008
9094
|
//#region src/SelectRadialBar.tsx
|
|
9009
|
-
var
|
|
9095
|
+
var ts = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, ns = 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) {
|
|
9010
9096
|
let d = s(), f = t / 2, p = t / 2;
|
|
9011
9097
|
return /* @__PURE__ */ h("div", {
|
|
9012
9098
|
ref: u,
|
|
@@ -9046,7 +9132,7 @@ var $o = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, es = r(f
|
|
|
9046
9132
|
}) }), e.map((e, i) => {
|
|
9047
9133
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
9048
9134
|
if (a <= n / 2) return null;
|
|
9049
|
-
let o =
|
|
9135
|
+
let o = ts(e.value);
|
|
9050
9136
|
return /* @__PURE__ */ h("g", {
|
|
9051
9137
|
transform: `rotate(-90 ${f} ${p})`,
|
|
9052
9138
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -9075,7 +9161,7 @@ var $o = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, es = r(f
|
|
|
9075
9161
|
className: "select-radial__center",
|
|
9076
9162
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
9077
9163
|
className: "select-radial__value",
|
|
9078
|
-
children: i(
|
|
9164
|
+
children: i(ts(e[0].value))
|
|
9079
9165
|
}) : null)
|
|
9080
9166
|
})]
|
|
9081
9167
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -9093,15 +9179,15 @@ var $o = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, es = r(f
|
|
|
9093
9179
|
}),
|
|
9094
9180
|
/* @__PURE__ */ m("span", {
|
|
9095
9181
|
className: "select-donut__legval",
|
|
9096
|
-
children: i(
|
|
9182
|
+
children: i(ts(e.value))
|
|
9097
9183
|
})
|
|
9098
9184
|
]
|
|
9099
9185
|
}, t))
|
|
9100
9186
|
})]
|
|
9101
9187
|
});
|
|
9102
|
-
}),
|
|
9103
|
-
function
|
|
9104
|
-
let u = t ?? e.length * 36 + 6 + 26, { ref: d, width: f } = Y(u), p = Q(), g = s(), _ =
|
|
9188
|
+
}), rs = 6.1, is = 12, as = 56, os = .4;
|
|
9189
|
+
function ss({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, className: c, ...l }) {
|
|
9190
|
+
let u = t ?? e.length * 36 + 6 + 26, { ref: d, width: f } = Y(u), p = Q(), g = s(), _ = ko(Math.max(0, ...e.map((e) => e.value))), v = e.reduce((e, t) => Math.max(e, t.label.length), 0), y = Math.min(Math.max(as, v * rs + is), Math.max(as, f * os)), b = o ?? y, x = Math.max(3, Math.floor((b - is) / rs)), S = (e) => e.length <= x ? e : `${e.slice(0, x - 1).trimEnd()}…`, C = Math.max(0, f - b - 28), w = u - 6 - 26, T = e.length ? w / e.length : 0, E = Math.min(T * .62, 22), D = (e) => b + e / _ * C, O = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
|
|
9105
9191
|
return /* @__PURE__ */ h("div", {
|
|
9106
9192
|
...l,
|
|
9107
9193
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -9130,7 +9216,7 @@ function as({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9130
9216
|
})]
|
|
9131
9217
|
}, t);
|
|
9132
9218
|
}) }),
|
|
9133
|
-
|
|
9219
|
+
Ao(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9134
9220
|
x1: D(e),
|
|
9135
9221
|
x2: D(e),
|
|
9136
9222
|
y1: 6,
|
|
@@ -9176,7 +9262,7 @@ function as({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9176
9262
|
onMouseLeave: p.hide
|
|
9177
9263
|
}),
|
|
9178
9264
|
/* @__PURE__ */ h("text", {
|
|
9179
|
-
x: b -
|
|
9265
|
+
x: b - is / 2,
|
|
9180
9266
|
y: n,
|
|
9181
9267
|
className: "select-chart__ylabel",
|
|
9182
9268
|
dominantBaseline: "middle",
|
|
@@ -9191,7 +9277,7 @@ function as({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9191
9277
|
}
|
|
9192
9278
|
//#endregion
|
|
9193
9279
|
//#region src/SelectWaterfall.tsx
|
|
9194
|
-
function
|
|
9280
|
+
function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9195
9281
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
9196
9282
|
if (e.total) return u = e.value, {
|
|
9197
9283
|
...e,
|
|
@@ -9204,7 +9290,7 @@ function os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9204
9290
|
start: t,
|
|
9205
9291
|
end: u
|
|
9206
9292
|
};
|
|
9207
|
-
}), f =
|
|
9293
|
+
}), f = ko(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = zo, 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 = {
|
|
9208
9294
|
total: "var(--select-chart-1)",
|
|
9209
9295
|
inc: "var(--select-chart-4)",
|
|
9210
9296
|
dec: "var(--select-chart-3)"
|
|
@@ -9238,7 +9324,7 @@ function os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9238
9324
|
stopOpacity: .62
|
|
9239
9325
|
})]
|
|
9240
9326
|
}, e)) }),
|
|
9241
|
-
|
|
9327
|
+
Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9242
9328
|
x1: p.left,
|
|
9243
9329
|
x2: o - p.right,
|
|
9244
9330
|
y1: S(e),
|
|
@@ -9306,7 +9392,7 @@ function os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9306
9392
|
}
|
|
9307
9393
|
//#endregion
|
|
9308
9394
|
//#region src/SelectBullet.tsx
|
|
9309
|
-
var
|
|
9395
|
+
var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
9310
9396
|
return /* @__PURE__ */ m("div", {
|
|
9311
9397
|
ref: i,
|
|
9312
9398
|
...r,
|
|
@@ -9344,12 +9430,12 @@ var ss = (e) => Math.max(0, Math.min(100, e)), cs = r(function({ items: e, forma
|
|
|
9344
9430
|
children: [/* @__PURE__ */ m("span", {
|
|
9345
9431
|
className: "select-bullet__fill",
|
|
9346
9432
|
style: {
|
|
9347
|
-
width: `${
|
|
9433
|
+
width: `${ls(e.value / i * 100)}%`,
|
|
9348
9434
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
9349
9435
|
}
|
|
9350
9436
|
}), /* @__PURE__ */ m("span", {
|
|
9351
9437
|
className: "select-bullet__tick",
|
|
9352
|
-
style: { left: `${
|
|
9438
|
+
style: { left: `${ls(e.target / i * 100)}%` }
|
|
9353
9439
|
})]
|
|
9354
9440
|
})]
|
|
9355
9441
|
}, `${e.label}-${n}`);
|
|
@@ -9358,7 +9444,7 @@ var ss = (e) => Math.max(0, Math.min(100, e)), cs = r(function({ items: e, forma
|
|
|
9358
9444
|
});
|
|
9359
9445
|
//#endregion
|
|
9360
9446
|
//#region src/SelectTreemap.tsx
|
|
9361
|
-
function
|
|
9447
|
+
function ds(e, t, n) {
|
|
9362
9448
|
let r = [], i = (e, t) => {
|
|
9363
9449
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
9364
9450
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -9409,8 +9495,8 @@ function ls(e, t, n) {
|
|
|
9409
9495
|
};
|
|
9410
9496
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
9411
9497
|
}
|
|
9412
|
-
function
|
|
9413
|
-
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 ?
|
|
9498
|
+
function fs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9499
|
+
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 ? ds(u.map((t) => e[t].value), o, t) : [];
|
|
9414
9500
|
return /* @__PURE__ */ h("div", {
|
|
9415
9501
|
...i,
|
|
9416
9502
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -9480,8 +9566,8 @@ function us({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9480
9566
|
}
|
|
9481
9567
|
//#endregion
|
|
9482
9568
|
//#region src/SelectScatter.tsx
|
|
9483
|
-
function
|
|
9484
|
-
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p =
|
|
9569
|
+
function ps({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
9570
|
+
let { ref: l, width: u } = Y(t), d = Q(), f = e.flatMap((e) => e.points), p = ko(i ?? Math.max(0, ...f.map((e) => e.x))), g = ko(a ?? Math.max(0, ...f.map((e) => e.y))), _ = Math.max(1, ...f.map((e) => e.r ?? 0)), v = zo, 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;
|
|
9485
9571
|
return /* @__PURE__ */ h("div", {
|
|
9486
9572
|
...c,
|
|
9487
9573
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -9491,7 +9577,7 @@ function ds({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9491
9577
|
height: t,
|
|
9492
9578
|
className: "select-chart",
|
|
9493
9579
|
children: [
|
|
9494
|
-
|
|
9580
|
+
Ao(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9495
9581
|
x1: v.left,
|
|
9496
9582
|
x2: u - v.right,
|
|
9497
9583
|
y1: C(e),
|
|
@@ -9505,7 +9591,7 @@ function ds({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9505
9591
|
textAnchor: "end",
|
|
9506
9592
|
children: r(e)
|
|
9507
9593
|
})] }, `y${t}`)),
|
|
9508
|
-
|
|
9594
|
+
Ao(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
9509
9595
|
x: S(e),
|
|
9510
9596
|
y: t - v.bottom + 16,
|
|
9511
9597
|
className: "select-chart__xlabel",
|
|
@@ -9552,8 +9638,8 @@ function ds({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9552
9638
|
}
|
|
9553
9639
|
//#endregion
|
|
9554
9640
|
//#region src/SelectRadar.tsx
|
|
9555
|
-
var
|
|
9556
|
-
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ??
|
|
9641
|
+
var ms = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: c, ...l }, u) {
|
|
9642
|
+
let d = Q(), f = s(), p = e.length, g = n / 2, _ = n / 2, v = n / 2 - 30, y = r ?? ko(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";
|
|
9557
9643
|
return /* @__PURE__ */ h("div", {
|
|
9558
9644
|
ref: u,
|
|
9559
9645
|
...l,
|
|
@@ -9662,7 +9748,7 @@ var fs = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
9662
9748
|
});
|
|
9663
9749
|
//#endregion
|
|
9664
9750
|
//#region src/SelectSankey.tsx
|
|
9665
|
-
function
|
|
9751
|
+
function hs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
9666
9752
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
9667
9753
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
9668
9754
|
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) => {
|
|
@@ -9747,8 +9833,8 @@ function ps({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
9747
9833
|
}
|
|
9748
9834
|
//#endregion
|
|
9749
9835
|
//#region src/SelectCandlestick.tsx
|
|
9750
|
-
function
|
|
9751
|
-
let { ref: s, width: c } = Y(t), l = Q(), u =
|
|
9836
|
+
function gs({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
9837
|
+
let { ref: s, width: c } = Y(t), l = Q(), u = zo, 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);
|
|
9752
9838
|
return /* @__PURE__ */ h("div", {
|
|
9753
9839
|
...o,
|
|
9754
9840
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9837,8 +9923,8 @@ function ms({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
9837
9923
|
}
|
|
9838
9924
|
//#endregion
|
|
9839
9925
|
//#region src/SelectBoxPlot.tsx
|
|
9840
|
-
function
|
|
9841
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
9926
|
+
function _s({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9927
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = zo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ko(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);
|
|
9842
9928
|
return /* @__PURE__ */ h("div", {
|
|
9843
9929
|
...i,
|
|
9844
9930
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -9847,7 +9933,7 @@ function hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9847
9933
|
width: o,
|
|
9848
9934
|
height: t,
|
|
9849
9935
|
className: "select-chart",
|
|
9850
|
-
children: [
|
|
9936
|
+
children: [Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9851
9937
|
x1: c.left,
|
|
9852
9938
|
x2: o - c.right,
|
|
9853
9939
|
y1: p(e),
|
|
@@ -9957,7 +10043,7 @@ function hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9957
10043
|
}
|
|
9958
10044
|
//#endregion
|
|
9959
10045
|
//#region src/SelectRangeBar.tsx
|
|
9960
|
-
function
|
|
10046
|
+
function vs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
9961
10047
|
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);
|
|
9962
10048
|
return /* @__PURE__ */ h("div", {
|
|
9963
10049
|
...c,
|
|
@@ -10038,7 +10124,7 @@ function gs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
10038
10124
|
}
|
|
10039
10125
|
//#endregion
|
|
10040
10126
|
//#region src/SelectCalendarHeatmap.tsx
|
|
10041
|
-
var
|
|
10127
|
+
var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
10042
10128
|
"Seg",
|
|
10043
10129
|
"",
|
|
10044
10130
|
"Qua",
|
|
@@ -10111,8 +10197,8 @@ var _s = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10111
10197
|
]
|
|
10112
10198
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
10113
10199
|
});
|
|
10114
|
-
}),
|
|
10115
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
10200
|
+
}), bs = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
10201
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = ko(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;
|
|
10116
10202
|
return /* @__PURE__ */ h("div", {
|
|
10117
10203
|
ref: s,
|
|
10118
10204
|
...o,
|
|
@@ -10142,7 +10228,7 @@ var _s = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10142
10228
|
}, t)), e.map((e, t) => {
|
|
10143
10229
|
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);
|
|
10144
10230
|
return /* @__PURE__ */ m("path", {
|
|
10145
|
-
d:
|
|
10231
|
+
d: Lo(l, u, o, 0, r, i),
|
|
10146
10232
|
fill: a,
|
|
10147
10233
|
fillOpacity: .8,
|
|
10148
10234
|
className: "select-chart__seg",
|
|
@@ -10185,13 +10271,13 @@ var _s = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10185
10271
|
});
|
|
10186
10272
|
//#endregion
|
|
10187
10273
|
//#region src/SelectSlope.tsx
|
|
10188
|
-
function
|
|
10274
|
+
function xs({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
10189
10275
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
10190
10276
|
top: 24,
|
|
10191
10277
|
right: 64,
|
|
10192
10278
|
bottom: 12,
|
|
10193
10279
|
left: 132
|
|
10194
|
-
}, d =
|
|
10280
|
+
}, d = ko(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;
|
|
10195
10281
|
return /* @__PURE__ */ h("div", {
|
|
10196
10282
|
...o,
|
|
10197
10283
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10307,8 +10393,8 @@ function ys({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
10307
10393
|
}
|
|
10308
10394
|
//#endregion
|
|
10309
10395
|
//#region src/SelectDumbbell.tsx
|
|
10310
|
-
function
|
|
10311
|
-
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 =
|
|
10396
|
+
function Ss({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
10397
|
+
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 = ko(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;
|
|
10312
10398
|
return /* @__PURE__ */ h("div", {
|
|
10313
10399
|
...s,
|
|
10314
10400
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -10317,7 +10403,7 @@ function bs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10317
10403
|
width: u,
|
|
10318
10404
|
height: c,
|
|
10319
10405
|
className: "select-chart",
|
|
10320
|
-
children: [
|
|
10406
|
+
children: [Ao(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10321
10407
|
x1: x(e),
|
|
10322
10408
|
x2: x(e),
|
|
10323
10409
|
y1: 6,
|
|
@@ -10400,7 +10486,7 @@ function bs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10400
10486
|
}
|
|
10401
10487
|
//#endregion
|
|
10402
10488
|
//#region src/SelectMarimekko.tsx
|
|
10403
|
-
function
|
|
10489
|
+
function Cs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
10404
10490
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
10405
10491
|
top: 6,
|
|
10406
10492
|
right: 6,
|
|
@@ -10480,7 +10566,7 @@ function xs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
10480
10566
|
}
|
|
10481
10567
|
//#endregion
|
|
10482
10568
|
//#region src/SelectGaugeBands.tsx
|
|
10483
|
-
var
|
|
10569
|
+
var ws = 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) {
|
|
10484
10570
|
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) => {
|
|
10485
10571
|
let t = Math.PI + e * Math.PI;
|
|
10486
10572
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -10552,7 +10638,7 @@ var Ss = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
10552
10638
|
});
|
|
10553
10639
|
//#endregion
|
|
10554
10640
|
//#region src/SelectStreamGraph.tsx
|
|
10555
|
-
function
|
|
10641
|
+
function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
10556
10642
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
10557
10643
|
top: 14,
|
|
10558
10644
|
right: 14,
|
|
@@ -10596,7 +10682,7 @@ function Cs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10596
10682
|
})]
|
|
10597
10683
|
}, t)) }),
|
|
10598
10684
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
10599
|
-
d:
|
|
10685
|
+
d: Fo(e.upper, e.lower),
|
|
10600
10686
|
fill: `url(#${u}-st${t})`,
|
|
10601
10687
|
className: "select-chart__area"
|
|
10602
10688
|
}, t)),
|
|
@@ -10643,7 +10729,7 @@ function Cs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10643
10729
|
}
|
|
10644
10730
|
//#endregion
|
|
10645
10731
|
//#region src/SelectSunburst.tsx
|
|
10646
|
-
var
|
|
10732
|
+
var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
10647
10733
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
10648
10734
|
var t;
|
|
10649
10735
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -10669,7 +10755,7 @@ var ws = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10669
10755
|
_ += r;
|
|
10670
10756
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
10671
10757
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10672
|
-
d:
|
|
10758
|
+
d: Lo(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
10673
10759
|
fill: o,
|
|
10674
10760
|
className: "select-chart__seg",
|
|
10675
10761
|
onMouseEnter: () => s.show({
|
|
@@ -10689,7 +10775,7 @@ var ws = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10689
10775
|
v += t.value / g * 360;
|
|
10690
10776
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
10691
10777
|
return /* @__PURE__ */ m("path", {
|
|
10692
|
-
d:
|
|
10778
|
+
d: Lo(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
10693
10779
|
fill: p,
|
|
10694
10780
|
fillOpacity: h,
|
|
10695
10781
|
className: "select-chart__seg",
|
|
@@ -10736,8 +10822,8 @@ var ws = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10736
10822
|
});
|
|
10737
10823
|
//#endregion
|
|
10738
10824
|
//#region src/SelectViolin.tsx
|
|
10739
|
-
function
|
|
10740
|
-
let { ref: a, width: o } = Y(t), s = Q(), c =
|
|
10825
|
+
function Ds({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
10826
|
+
let { ref: a, width: o } = Y(t), s = Q(), c = zo, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = ko(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));
|
|
10741
10827
|
return /* @__PURE__ */ h("div", {
|
|
10742
10828
|
...i,
|
|
10743
10829
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -10746,7 +10832,7 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10746
10832
|
width: o,
|
|
10747
10833
|
height: t,
|
|
10748
10834
|
className: "select-chart",
|
|
10749
|
-
children: [
|
|
10835
|
+
children: [Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10750
10836
|
x1: c.left,
|
|
10751
10837
|
x2: o - c.right,
|
|
10752
10838
|
y1: p(e),
|
|
@@ -10763,7 +10849,7 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10763
10849
|
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 = [];
|
|
10764
10850
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
10765
10851
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
10766
|
-
let b = `${
|
|
10852
|
+
let b = `${Mo(f)} ${Mo(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
10767
10853
|
return /* @__PURE__ */ h("g", { children: [
|
|
10768
10854
|
/* @__PURE__ */ m("path", {
|
|
10769
10855
|
d: b,
|
|
@@ -10824,7 +10910,7 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10824
10910
|
}
|
|
10825
10911
|
//#endregion
|
|
10826
10912
|
//#region src/SelectChord.tsx
|
|
10827
|
-
var
|
|
10913
|
+
var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
10828
10914
|
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;
|
|
10829
10915
|
for (let e = 0; e < l; e++) {
|
|
10830
10916
|
let t = b, n = b + g[e] * v;
|
|
@@ -10891,7 +10977,7 @@ var Es = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
10891
10977
|
}, n)), y.map((e, n) => {
|
|
10892
10978
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
10893
10979
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10894
|
-
d:
|
|
10980
|
+
d: Lo(u, d, f, p, w(e.a0), w(e.a1)),
|
|
10895
10981
|
fill: X(n),
|
|
10896
10982
|
className: "select-chord__arc"
|
|
10897
10983
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -10909,7 +10995,7 @@ var Es = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
10909
10995
|
});
|
|
10910
10996
|
//#endregion
|
|
10911
10997
|
//#region src/SelectHexbin.tsx
|
|
10912
|
-
function
|
|
10998
|
+
function ks({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
10913
10999
|
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) => {
|
|
10914
11000
|
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);
|
|
10915
11001
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -10961,7 +11047,7 @@ function Ds({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
10961
11047
|
}
|
|
10962
11048
|
//#endregion
|
|
10963
11049
|
//#region src/SelectWordCloud.tsx
|
|
10964
|
-
var
|
|
11050
|
+
var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
10965
11051
|
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);
|
|
10966
11052
|
return /* @__PURE__ */ m("div", {
|
|
10967
11053
|
ref: a,
|
|
@@ -10978,7 +11064,7 @@ var Os = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
10978
11064
|
children: e.text
|
|
10979
11065
|
}, `${e.text}-${t}`))
|
|
10980
11066
|
});
|
|
10981
|
-
}),
|
|
11067
|
+
}), js = [
|
|
10982
11068
|
[
|
|
10983
11069
|
-59.6,
|
|
10984
11070
|
-80,
|
|
@@ -21373,24 +21459,24 @@ var Os = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
21373
21459
|
-27.1,
|
|
21374
21460
|
83.5
|
|
21375
21461
|
]
|
|
21376
|
-
],
|
|
21377
|
-
function
|
|
21378
|
-
let n = e *
|
|
21462
|
+
], Ms = Math.PI / 180;
|
|
21463
|
+
function Ns(e, t) {
|
|
21464
|
+
let n = e * Ms, r = t * Ms;
|
|
21379
21465
|
return [
|
|
21380
21466
|
Math.cos(n) * Math.sin(r),
|
|
21381
21467
|
Math.sin(n),
|
|
21382
21468
|
Math.cos(n) * Math.cos(r)
|
|
21383
21469
|
];
|
|
21384
21470
|
}
|
|
21385
|
-
function
|
|
21386
|
-
let a = r *
|
|
21471
|
+
function Ps([e, t, n], r, i) {
|
|
21472
|
+
let a = r * Ms, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Ms;
|
|
21387
21473
|
return [
|
|
21388
21474
|
o,
|
|
21389
21475
|
t * Math.cos(c) - s * Math.sin(c),
|
|
21390
21476
|
t * Math.sin(c) + s * Math.cos(c)
|
|
21391
21477
|
];
|
|
21392
21478
|
}
|
|
21393
|
-
function
|
|
21479
|
+
function Fs(e, t, n) {
|
|
21394
21480
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
21395
21481
|
r = Math.max(-1, Math.min(1, r));
|
|
21396
21482
|
let i = Math.acos(r);
|
|
@@ -21402,9 +21488,9 @@ function Ns(e, t, n) {
|
|
|
21402
21488
|
e[2] * o + t[2] * s
|
|
21403
21489
|
];
|
|
21404
21490
|
}
|
|
21405
|
-
var
|
|
21491
|
+
var Is = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, Ls = 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) {
|
|
21406
21492
|
var S, C;
|
|
21407
|
-
let w = s(), T = Q(), E = u(null), D =
|
|
21493
|
+
let w = s(), T = Q(), E = u(null), D = Oo(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({
|
|
21408
21494
|
lng: -O,
|
|
21409
21495
|
lat: r
|
|
21410
21496
|
}), j = u({
|
|
@@ -21463,7 +21549,7 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21463
21549
|
var t, n;
|
|
21464
21550
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ne(!1), re());
|
|
21465
21551
|
}, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, oe = (e) => {
|
|
21466
|
-
let t =
|
|
21552
|
+
let t = Ps(e, A.current.lng, A.current.lat);
|
|
21467
21553
|
return {
|
|
21468
21554
|
x: G + W * t[0],
|
|
21469
21555
|
y: K - W * t[1],
|
|
@@ -21473,25 +21559,25 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21473
21559
|
let e = [];
|
|
21474
21560
|
for (let t = -180; t < 180; t += 30) {
|
|
21475
21561
|
let n = [];
|
|
21476
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
21562
|
+
for (let e = 0; e <= 48; e++) n.push(Ns(-90 + 180 * e / 48, t));
|
|
21477
21563
|
e.push(n);
|
|
21478
21564
|
}
|
|
21479
21565
|
for (let t = -60; t <= 60; t += 30) {
|
|
21480
21566
|
let n = [];
|
|
21481
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
21567
|
+
for (let e = 0; e <= 48; e++) n.push(Ns(t, -180 + 360 * e / 48));
|
|
21482
21568
|
e.push(n);
|
|
21483
21569
|
}
|
|
21484
21570
|
return e;
|
|
21485
|
-
}, []), ce = l(() =>
|
|
21571
|
+
}, []), ce = l(() => js.map((e) => {
|
|
21486
21572
|
let t = [];
|
|
21487
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
21573
|
+
for (let n = 0; n < e.length; n += 2) t.push(Ns(e[n + 1], e[n]));
|
|
21488
21574
|
return t;
|
|
21489
21575
|
}), []), q = (e) => ({
|
|
21490
21576
|
x: G + W * e[0],
|
|
21491
21577
|
y: K - W * e[1]
|
|
21492
21578
|
}), le = "", ue = "";
|
|
21493
21579
|
if (g) for (let e of ce) {
|
|
21494
|
-
let t = e.map((e) =>
|
|
21580
|
+
let t = e.map((e) => Ps(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
21495
21581
|
for (let e of t) if (e[2] > 0) {
|
|
21496
21582
|
let t = q(e);
|
|
21497
21583
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -21539,7 +21625,7 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21539
21625
|
}
|
|
21540
21626
|
return t;
|
|
21541
21627
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
21542
|
-
let n = oe(
|
|
21628
|
+
let n = oe(Ns(e.lat, e.lng));
|
|
21543
21629
|
return {
|
|
21544
21630
|
...e,
|
|
21545
21631
|
i: t,
|
|
@@ -21549,20 +21635,20 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21549
21635
|
col: e.color ?? c
|
|
21550
21636
|
};
|
|
21551
21637
|
}), me = z == null ? null : e[z], he = t.map((e, t) => {
|
|
21552
|
-
let n =
|
|
21638
|
+
let n = Ns(e.from.lat, e.from.lng), r = Ns(e.to.lat, e.to.lng), i = "", a = !1;
|
|
21553
21639
|
for (let e = 0; e <= 40; e++) {
|
|
21554
|
-
let t = e / 40, o =
|
|
21640
|
+
let t = e / 40, o = Fs(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = Ps(o, A.current.lng, A.current.lat), l = oe([
|
|
21555
21641
|
o[0] * s,
|
|
21556
21642
|
o[1] * s,
|
|
21557
21643
|
o[2] * s
|
|
21558
21644
|
]);
|
|
21559
21645
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
21560
21646
|
}
|
|
21561
|
-
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s =
|
|
21647
|
+
let o = k.current ? .5 : (I.current * .16 + t * .27) % 1, s = Fs(n, r, o), l = 1 + .34 * Math.sin(Math.PI * o), u = Ps(s, A.current.lng, A.current.lat), d = oe([
|
|
21562
21648
|
s[0] * l,
|
|
21563
21649
|
s[1] * l,
|
|
21564
21650
|
s[2] * l
|
|
21565
|
-
]), f = me != null && (
|
|
21651
|
+
]), f = me != null && (Is(e.from, me) || Is(e.to, me));
|
|
21566
21652
|
return {
|
|
21567
21653
|
d: i,
|
|
21568
21654
|
col: e.color ?? c,
|
|
@@ -21836,8 +21922,8 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21836
21922
|
});
|
|
21837
21923
|
//#endregion
|
|
21838
21924
|
//#region src/SelectTicker.tsx
|
|
21839
|
-
function
|
|
21840
|
-
let i = u(null), a = u(null), s = u(null), c =
|
|
21925
|
+
function Rs({ children: e, speed: t = 28, className: n, ...r }) {
|
|
21926
|
+
let i = u(null), a = u(null), s = u(null), c = Oo(i, 0), l = Oo(s, 0), d = c > 0 && l > c + 1, f = u(0), p = u(null), g = u(!1);
|
|
21841
21927
|
o(() => {
|
|
21842
21928
|
var e, n;
|
|
21843
21929
|
let r = a.current;
|
|
@@ -21898,12 +21984,12 @@ function Is({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
21898
21984
|
}
|
|
21899
21985
|
//#endregion
|
|
21900
21986
|
//#region src/SelectPareto.tsx
|
|
21901
|
-
function
|
|
21987
|
+
function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
21902
21988
|
var a;
|
|
21903
21989
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
21904
|
-
...
|
|
21990
|
+
...zo,
|
|
21905
21991
|
right: 44
|
|
21906
|
-
}, _ = [...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 =
|
|
21992
|
+
}, _ = [...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 = ko(((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);
|
|
21907
21993
|
return /* @__PURE__ */ h("div", {
|
|
21908
21994
|
...i,
|
|
21909
21995
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -21932,7 +22018,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
21932
22018
|
stopOpacity: .55
|
|
21933
22019
|
})]
|
|
21934
22020
|
}) }),
|
|
21935
|
-
|
|
22021
|
+
Ao(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
21936
22022
|
x1: g.left,
|
|
21937
22023
|
x2: c - g.right,
|
|
21938
22024
|
y1: O(e),
|
|
@@ -21996,7 +22082,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
21996
22082
|
}, t);
|
|
21997
22083
|
}),
|
|
21998
22084
|
/* @__PURE__ */ m("path", {
|
|
21999
|
-
d:
|
|
22085
|
+
d: No(j),
|
|
22000
22086
|
fill: "none",
|
|
22001
22087
|
stroke: N,
|
|
22002
22088
|
strokeWidth: 2,
|
|
@@ -22024,7 +22110,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22024
22110
|
}
|
|
22025
22111
|
//#endregion
|
|
22026
22112
|
//#region src/SelectWaffle.tsx
|
|
22027
|
-
var
|
|
22113
|
+
var Bs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
22028
22114
|
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) => ({
|
|
22029
22115
|
i: t,
|
|
22030
22116
|
frac: e - u[t]
|
|
@@ -22073,7 +22159,7 @@ var Rs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
22073
22159
|
});
|
|
22074
22160
|
//#endregion
|
|
22075
22161
|
//#region src/SelectPyramid.tsx
|
|
22076
|
-
function
|
|
22162
|
+
function Vs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
22077
22163
|
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);
|
|
22078
22164
|
return /* @__PURE__ */ h("div", {
|
|
22079
22165
|
...l,
|
|
@@ -22181,7 +22267,7 @@ function zs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
22181
22267
|
}
|
|
22182
22268
|
//#endregion
|
|
22183
22269
|
//#region src/SelectBump.tsx
|
|
22184
|
-
function
|
|
22270
|
+
function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
22185
22271
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22186
22272
|
top: 16,
|
|
22187
22273
|
right: 78,
|
|
@@ -22218,7 +22304,7 @@ function Bs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22218
22304
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
22219
22305
|
children: [
|
|
22220
22306
|
/* @__PURE__ */ m("path", {
|
|
22221
|
-
d:
|
|
22307
|
+
d: No(a),
|
|
22222
22308
|
fill: "none",
|
|
22223
22309
|
stroke: i,
|
|
22224
22310
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -22266,7 +22352,7 @@ function Bs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22266
22352
|
}
|
|
22267
22353
|
//#endregion
|
|
22268
22354
|
//#region src/SelectParallel.tsx
|
|
22269
|
-
function
|
|
22355
|
+
function Us({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
22270
22356
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22271
22357
|
top: 30,
|
|
22272
22358
|
right: 28,
|
|
@@ -22358,25 +22444,25 @@ function Vs({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
22358
22444
|
}
|
|
22359
22445
|
//#endregion
|
|
22360
22446
|
//#region src/SelectIcicle.tsx
|
|
22361
|
-
function
|
|
22362
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
22447
|
+
function Ws(e) {
|
|
22448
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + Ws(t), 0) : e.value ?? 0;
|
|
22363
22449
|
}
|
|
22364
|
-
function
|
|
22365
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
22450
|
+
function Gs(e, t = 0) {
|
|
22451
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => Gs(e, t + 1)));
|
|
22366
22452
|
}
|
|
22367
|
-
function
|
|
22368
|
-
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u =
|
|
22453
|
+
function Ks({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
22454
|
+
let { ref: a, width: o } = Y(t), s = Q(), [c, l] = d(null), u = Gs(e), f = t / (u + 1), p = [], g = (e, t, n, r, i) => {
|
|
22369
22455
|
if (p.push({
|
|
22370
22456
|
node: e,
|
|
22371
22457
|
x0: t,
|
|
22372
22458
|
x1: n,
|
|
22373
22459
|
depth: r,
|
|
22374
22460
|
color: e.color ?? X(i),
|
|
22375
|
-
value:
|
|
22461
|
+
value: Ws(e)
|
|
22376
22462
|
}), e.children && e.children.length) {
|
|
22377
|
-
let a = e.children.reduce((e, t) => e +
|
|
22463
|
+
let a = e.children.reduce((e, t) => e + Ws(t), 0) || 1, o = t;
|
|
22378
22464
|
e.children.forEach((e, s) => {
|
|
22379
|
-
let c = (n - t) *
|
|
22465
|
+
let c = (n - t) * Ws(e) / a;
|
|
22380
22466
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
22381
22467
|
});
|
|
22382
22468
|
}
|
|
@@ -22437,7 +22523,7 @@ function Ws({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22437
22523
|
}
|
|
22438
22524
|
//#endregion
|
|
22439
22525
|
//#region src/SelectTree.tsx
|
|
22440
|
-
function
|
|
22526
|
+
function qs({ data: e, height: t = 260, className: n, ...r }) {
|
|
22441
22527
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
22442
22528
|
top: 14,
|
|
22443
22529
|
right: 96,
|
|
@@ -22515,7 +22601,7 @@ function Gs({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
22515
22601
|
}
|
|
22516
22602
|
//#endregion
|
|
22517
22603
|
//#region src/SelectVenn.tsx
|
|
22518
|
-
var
|
|
22604
|
+
var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
22519
22605
|
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]] : [
|
|
22520
22606
|
[o, s - l * .5],
|
|
22521
22607
|
[o - l * .5, s + l * .36],
|
|
@@ -22580,7 +22666,7 @@ var Ks = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22580
22666
|
}, t))
|
|
22581
22667
|
})]
|
|
22582
22668
|
});
|
|
22583
|
-
}),
|
|
22669
|
+
}), Ys = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
22584
22670
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
22585
22671
|
d: e,
|
|
22586
22672
|
i: t,
|
|
@@ -22683,7 +22769,7 @@ var Ks = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22683
22769
|
});
|
|
22684
22770
|
//#endregion
|
|
22685
22771
|
//#region src/SelectNetwork.tsx
|
|
22686
|
-
function
|
|
22772
|
+
function Xs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
22687
22773
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
22688
22774
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
22689
22775
|
if (!a) return o;
|
|
@@ -22797,7 +22883,7 @@ function Js({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
22797
22883
|
}
|
|
22798
22884
|
//#endregion
|
|
22799
22885
|
//#region src/SelectThemeSwitcher.tsx
|
|
22800
|
-
var
|
|
22886
|
+
var Zs = [
|
|
22801
22887
|
{
|
|
22802
22888
|
value: "light",
|
|
22803
22889
|
label: "Claro",
|
|
@@ -22814,15 +22900,15 @@ var Ys = [
|
|
|
22814
22900
|
icon: /* @__PURE__ */ m(ke, {})
|
|
22815
22901
|
}
|
|
22816
22902
|
];
|
|
22817
|
-
function
|
|
22903
|
+
function Qs(e) {
|
|
22818
22904
|
if (e === "system") {
|
|
22819
22905
|
var t, n;
|
|
22820
22906
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
22821
22907
|
}
|
|
22822
22908
|
return e;
|
|
22823
22909
|
}
|
|
22824
|
-
function
|
|
22825
|
-
let [i, a] = d(!1), s = u(null), c =
|
|
22910
|
+
function $s({ value: e, onChange: t, className: n, ...r }) {
|
|
22911
|
+
let [i, a] = d(!1), s = u(null), c = Zs.find((t) => t.value === e) ?? Zs[2];
|
|
22826
22912
|
return o(() => {
|
|
22827
22913
|
if (!i) return;
|
|
22828
22914
|
let e = (e) => {
|
|
@@ -22833,7 +22919,7 @@ function Zs({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22833
22919
|
...r,
|
|
22834
22920
|
className: `select-themeswitcher${n ? " " + n : ""}`,
|
|
22835
22921
|
ref: s,
|
|
22836
|
-
children: [/* @__PURE__ */ m(
|
|
22922
|
+
children: [/* @__PURE__ */ m(Gi, {
|
|
22837
22923
|
active: i,
|
|
22838
22924
|
onClick: () => a((e) => !e),
|
|
22839
22925
|
children: /* @__PURE__ */ h("span", {
|
|
@@ -22842,7 +22928,7 @@ function Zs({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22842
22928
|
})
|
|
22843
22929
|
}), i && /* @__PURE__ */ m("div", {
|
|
22844
22930
|
className: "select-themeswitcher__popover",
|
|
22845
|
-
children: /* @__PURE__ */ m(
|
|
22931
|
+
children: /* @__PURE__ */ m(Bi, { children: Zs.map((n) => /* @__PURE__ */ m(Vi, {
|
|
22846
22932
|
icon: n.icon,
|
|
22847
22933
|
active: n.value === e,
|
|
22848
22934
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -22856,8 +22942,8 @@ function Zs({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22856
22942
|
}
|
|
22857
22943
|
//#endregion
|
|
22858
22944
|
//#region src/SelectDetail.tsx
|
|
22859
|
-
var
|
|
22860
|
-
function
|
|
22945
|
+
var ec = n(!1);
|
|
22946
|
+
function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
22861
22947
|
let r = Qt({
|
|
22862
22948
|
selector: ".select-detail",
|
|
22863
22949
|
y: 8,
|
|
@@ -22865,7 +22951,7 @@ function $s({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
22865
22951
|
stagger: .05,
|
|
22866
22952
|
scroll: !0
|
|
22867
22953
|
});
|
|
22868
|
-
return /* @__PURE__ */ m(
|
|
22954
|
+
return /* @__PURE__ */ m(ec.Provider, {
|
|
22869
22955
|
value: n,
|
|
22870
22956
|
children: /* @__PURE__ */ m("div", {
|
|
22871
22957
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -22874,8 +22960,8 @@ function $s({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
22874
22960
|
})
|
|
22875
22961
|
});
|
|
22876
22962
|
}
|
|
22877
|
-
var
|
|
22878
|
-
let l = a(
|
|
22963
|
+
var nc = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: o, ...s }, c) {
|
|
22964
|
+
let l = a(ec), u = i ?? l;
|
|
22879
22965
|
return /* @__PURE__ */ h("div", {
|
|
22880
22966
|
ref: c,
|
|
22881
22967
|
...s,
|
|
@@ -22895,7 +22981,7 @@ var ec = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
22895
22981
|
})
|
|
22896
22982
|
]
|
|
22897
22983
|
});
|
|
22898
|
-
}),
|
|
22984
|
+
}), rc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
22899
22985
|
let s = r === "vertical";
|
|
22900
22986
|
return /* @__PURE__ */ m("ol", {
|
|
22901
22987
|
ref: o,
|
|
@@ -22934,7 +23020,7 @@ var ec = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
22934
23020
|
});
|
|
22935
23021
|
//#endregion
|
|
22936
23022
|
//#region src/SelectSetupGuide.tsx
|
|
22937
|
-
function
|
|
23023
|
+
function ic({ status: e }) {
|
|
22938
23024
|
return /* @__PURE__ */ m("span", {
|
|
22939
23025
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
22940
23026
|
"aria-hidden": "true",
|
|
@@ -22953,13 +23039,13 @@ function nc({ status: e }) {
|
|
|
22953
23039
|
})
|
|
22954
23040
|
});
|
|
22955
23041
|
}
|
|
22956
|
-
var
|
|
23042
|
+
var ac = {
|
|
22957
23043
|
done: "feito",
|
|
22958
23044
|
todo: "a fazer",
|
|
22959
23045
|
next: "próximo passo",
|
|
22960
23046
|
skipped: "pulado",
|
|
22961
23047
|
waiting: "aguardando"
|
|
22962
|
-
},
|
|
23048
|
+
}, oc = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: s = "default", className: c, ...l }, u) {
|
|
22963
23049
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
22964
23050
|
return /* @__PURE__ */ h("section", {
|
|
22965
23051
|
ref: u,
|
|
@@ -23022,14 +23108,14 @@ var rc = {
|
|
|
23022
23108
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
23023
23109
|
className: `select-setupguide__step is-${e.status}`,
|
|
23024
23110
|
children: [
|
|
23025
|
-
/* @__PURE__ */ m(
|
|
23111
|
+
/* @__PURE__ */ m(ic, { status: e.status }),
|
|
23026
23112
|
/* @__PURE__ */ h("span", {
|
|
23027
23113
|
className: "select-setupguide__text",
|
|
23028
23114
|
children: [/* @__PURE__ */ h("span", {
|
|
23029
23115
|
className: "select-setupguide__steptitle",
|
|
23030
23116
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
23031
23117
|
className: "select-setupguide__sr",
|
|
23032
|
-
children: [" — ",
|
|
23118
|
+
children: [" — ", ac[e.status]]
|
|
23033
23119
|
})]
|
|
23034
23120
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
23035
23121
|
className: "select-setupguide__stepdesc",
|
|
@@ -23048,7 +23134,7 @@ var rc = {
|
|
|
23048
23134
|
})]
|
|
23049
23135
|
});
|
|
23050
23136
|
});
|
|
23051
|
-
function
|
|
23137
|
+
function sc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
23052
23138
|
return /* @__PURE__ */ h("div", {
|
|
23053
23139
|
className: "select-setupnext",
|
|
23054
23140
|
children: [
|
|
@@ -23073,37 +23159,37 @@ function ac({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
23073
23159
|
}
|
|
23074
23160
|
//#endregion
|
|
23075
23161
|
//#region src/SelectTour.tsx
|
|
23076
|
-
var
|
|
23077
|
-
function
|
|
23162
|
+
var cc = 6, lc = 12;
|
|
23163
|
+
function uc(e) {
|
|
23078
23164
|
let t = document.querySelector(e);
|
|
23079
23165
|
if (!t) return null;
|
|
23080
23166
|
let n = t.getBoundingClientRect();
|
|
23081
23167
|
return n.width === 0 && n.height === 0 ? null : {
|
|
23082
|
-
top: n.top -
|
|
23083
|
-
left: n.left -
|
|
23168
|
+
top: n.top - cc,
|
|
23169
|
+
left: n.left - cc,
|
|
23084
23170
|
width: n.width + 12,
|
|
23085
23171
|
height: n.height + 12
|
|
23086
23172
|
};
|
|
23087
23173
|
}
|
|
23088
|
-
function
|
|
23174
|
+
function dc(e) {
|
|
23089
23175
|
let t = document.querySelector(e);
|
|
23090
23176
|
if (!t) return !1;
|
|
23091
23177
|
let n = t.getBoundingClientRect();
|
|
23092
23178
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
23093
23179
|
}
|
|
23094
|
-
function
|
|
23095
|
-
let s = l(() => e ? t.filter((e) =>
|
|
23180
|
+
function fc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light" }) {
|
|
23181
|
+
let s = l(() => e ? t.filter((e) => dc(e.target)) : [], [e]), [f, p] = d(0), [_, v] = d(null), [y, b] = d(null), x = u(null), S = u(null);
|
|
23096
23182
|
o(() => {
|
|
23097
23183
|
e && p(0);
|
|
23098
23184
|
}, [e]);
|
|
23099
23185
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
23100
23186
|
if (!C) return;
|
|
23101
|
-
let e =
|
|
23187
|
+
let e = uc(C.target);
|
|
23102
23188
|
v(e);
|
|
23103
23189
|
let t = x.current;
|
|
23104
23190
|
if (!e || !t) return;
|
|
23105
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
23106
|
-
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height +
|
|
23191
|
+
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width + lc, s = e.top;
|
|
23192
|
+
o + n > i - 8 && (o = Math.min(Math.max(8, e.left), i - n - 8), s = e.top + e.height + lc, s + r > a - 8 && (s = e.top - r - lc)), s = Math.min(Math.max(8, s), a - r - 8), b({
|
|
23107
23193
|
top: s,
|
|
23108
23194
|
left: o
|
|
23109
23195
|
});
|
|
@@ -23205,7 +23291,7 @@ function uc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
23205
23291
|
}
|
|
23206
23292
|
//#endregion
|
|
23207
23293
|
//#region src/SelectPlanCard.tsx
|
|
23208
|
-
var
|
|
23294
|
+
var pc = 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) {
|
|
23209
23295
|
return /* @__PURE__ */ h("div", {
|
|
23210
23296
|
ref: d,
|
|
23211
23297
|
...u,
|
|
@@ -23260,7 +23346,7 @@ var dc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23260
23346
|
})]
|
|
23261
23347
|
})]
|
|
23262
23348
|
});
|
|
23263
|
-
}),
|
|
23349
|
+
}), mc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
23264
23350
|
return /* @__PURE__ */ h("div", {
|
|
23265
23351
|
ref: s,
|
|
23266
23352
|
...o,
|
|
@@ -23296,7 +23382,7 @@ var dc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23296
23382
|
]
|
|
23297
23383
|
});
|
|
23298
23384
|
});
|
|
23299
|
-
function
|
|
23385
|
+
function hc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
|
|
23300
23386
|
let o = /* @__PURE__ */ h(p, { children: [
|
|
23301
23387
|
e && /* @__PURE__ */ m("span", {
|
|
23302
23388
|
className: "select-listrow__media",
|
|
@@ -23330,7 +23416,7 @@ function pc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
|
|
|
23330
23416
|
}
|
|
23331
23417
|
//#endregion
|
|
23332
23418
|
//#region src/SelectThumbnail.tsx
|
|
23333
|
-
var
|
|
23419
|
+
var gc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
|
|
23334
23420
|
let [s, c] = d(!1);
|
|
23335
23421
|
return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
|
|
23336
23422
|
ref: a,
|
|
@@ -23355,8 +23441,8 @@ var mc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
|
|
|
23355
23441
|
});
|
|
23356
23442
|
//#endregion
|
|
23357
23443
|
//#region src/SelectImageZoomModal.tsx
|
|
23358
|
-
function
|
|
23359
|
-
return /* @__PURE__ */ m(
|
|
23444
|
+
function _c({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
23445
|
+
return /* @__PURE__ */ m(ta, {
|
|
23360
23446
|
open: e,
|
|
23361
23447
|
onClose: t,
|
|
23362
23448
|
title: i,
|
|
@@ -23374,7 +23460,7 @@ function hc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
23374
23460
|
}
|
|
23375
23461
|
//#endregion
|
|
23376
23462
|
//#region src/SelectZoomThumbnail.tsx
|
|
23377
|
-
function
|
|
23463
|
+
function vc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
23378
23464
|
let [i, a] = d(!1);
|
|
23379
23465
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
23380
23466
|
type: "button",
|
|
@@ -23387,25 +23473,25 @@ function gc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
|
23387
23473
|
cursor: "zoom-in",
|
|
23388
23474
|
display: "inline-flex"
|
|
23389
23475
|
},
|
|
23390
|
-
children: /* @__PURE__ */ m(
|
|
23476
|
+
children: /* @__PURE__ */ m(gc, {
|
|
23391
23477
|
src: e,
|
|
23392
23478
|
size: n,
|
|
23393
23479
|
alt: t
|
|
23394
23480
|
})
|
|
23395
|
-
}), i && /* @__PURE__ */ m(
|
|
23481
|
+
}), i && /* @__PURE__ */ m(_c, {
|
|
23396
23482
|
open: !0,
|
|
23397
23483
|
onClose: () => a(!1),
|
|
23398
23484
|
src: e,
|
|
23399
23485
|
alt: t,
|
|
23400
23486
|
title: r ?? t
|
|
23401
|
-
})] }) : /* @__PURE__ */ m(
|
|
23487
|
+
})] }) : /* @__PURE__ */ m(gc, {
|
|
23402
23488
|
size: n,
|
|
23403
23489
|
alt: t
|
|
23404
23490
|
});
|
|
23405
23491
|
}
|
|
23406
23492
|
//#endregion
|
|
23407
23493
|
//#region src/SelectMediaCell.tsx
|
|
23408
|
-
var
|
|
23494
|
+
var yc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
23409
23495
|
return /* @__PURE__ */ h("span", {
|
|
23410
23496
|
ref: a,
|
|
23411
23497
|
...i,
|
|
@@ -23427,14 +23513,14 @@ var _c = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
23427
23513
|
});
|
|
23428
23514
|
//#endregion
|
|
23429
23515
|
//#region src/SelectOfflineModal.tsx
|
|
23430
|
-
function
|
|
23516
|
+
function bc() {
|
|
23431
23517
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
23432
23518
|
return o(() => {
|
|
23433
23519
|
let e = () => t(!1), n = () => t(!0);
|
|
23434
23520
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
23435
23521
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
23436
23522
|
};
|
|
23437
|
-
}, []), /* @__PURE__ */ m(
|
|
23523
|
+
}, []), /* @__PURE__ */ m(ta, {
|
|
23438
23524
|
open: e,
|
|
23439
23525
|
onClose: () => {},
|
|
23440
23526
|
showClose: !1,
|
|
@@ -23450,7 +23536,7 @@ function vc() {
|
|
|
23450
23536
|
}
|
|
23451
23537
|
//#endregion
|
|
23452
23538
|
//#region src/SelectKeyValueEditor.tsx
|
|
23453
|
-
function
|
|
23539
|
+
function xc(e) {
|
|
23454
23540
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
23455
23541
|
name: String(e.name ?? e.key ?? ""),
|
|
23456
23542
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -23459,8 +23545,8 @@ function yc(e) {
|
|
|
23459
23545
|
value: t == null ? "" : String(t)
|
|
23460
23546
|
})) : [];
|
|
23461
23547
|
}
|
|
23462
|
-
var
|
|
23463
|
-
let d =
|
|
23548
|
+
var Sc = 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) {
|
|
23549
|
+
let d = xc(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
23464
23550
|
...t,
|
|
23465
23551
|
...n
|
|
23466
23552
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -23524,7 +23610,7 @@ var bc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23524
23610
|
})
|
|
23525
23611
|
]
|
|
23526
23612
|
});
|
|
23527
|
-
}),
|
|
23613
|
+
}), Cc = (e) => String(e).padStart(2, "0"), wc = {
|
|
23528
23614
|
"en-US": {
|
|
23529
23615
|
weekdays: [
|
|
23530
23616
|
"Su",
|
|
@@ -23583,34 +23669,34 @@ var bc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23583
23669
|
to: "Até",
|
|
23584
23670
|
cancel: "Cancelar",
|
|
23585
23671
|
apply: "Aplicar",
|
|
23586
|
-
formatDate: (e) => `${
|
|
23672
|
+
formatDate: (e) => `${Cc(e.getDate())} / ${Cc(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
23587
23673
|
}
|
|
23588
|
-
},
|
|
23674
|
+
}, Tc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ec = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Dc = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Oc = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), kc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Ac = (e) => {
|
|
23589
23675
|
let t = /* @__PURE__ */ new Date();
|
|
23590
23676
|
return {
|
|
23591
23677
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
23592
23678
|
to: t
|
|
23593
23679
|
};
|
|
23594
|
-
},
|
|
23680
|
+
}, jc = [
|
|
23595
23681
|
{
|
|
23596
23682
|
id: "15m",
|
|
23597
23683
|
label: "Last 15 minutes",
|
|
23598
|
-
range: () =>
|
|
23684
|
+
range: () => Ac(15)
|
|
23599
23685
|
},
|
|
23600
23686
|
{
|
|
23601
23687
|
id: "1h",
|
|
23602
23688
|
label: "Last 1 hour",
|
|
23603
|
-
range: () =>
|
|
23689
|
+
range: () => Ac(60)
|
|
23604
23690
|
},
|
|
23605
23691
|
{
|
|
23606
23692
|
id: "3h",
|
|
23607
23693
|
label: "Last 3 hours",
|
|
23608
|
-
range: () =>
|
|
23694
|
+
range: () => Ac(180)
|
|
23609
23695
|
},
|
|
23610
23696
|
{
|
|
23611
23697
|
id: "24h",
|
|
23612
23698
|
label: "Last 24 hours",
|
|
23613
|
-
range: () =>
|
|
23699
|
+
range: () => Ac(1440)
|
|
23614
23700
|
},
|
|
23615
23701
|
{
|
|
23616
23702
|
id: "3d",
|
|
@@ -23626,78 +23712,78 @@ var bc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23626
23712
|
id: "all",
|
|
23627
23713
|
label: "All",
|
|
23628
23714
|
range: () => ({
|
|
23629
|
-
from:
|
|
23630
|
-
to:
|
|
23715
|
+
from: Tc(/* @__PURE__ */ new Date()),
|
|
23716
|
+
to: Tc(/* @__PURE__ */ new Date())
|
|
23631
23717
|
})
|
|
23632
23718
|
}
|
|
23633
|
-
],
|
|
23634
|
-
let t =
|
|
23719
|
+
], Mc = (e) => {
|
|
23720
|
+
let t = Tc(/* @__PURE__ */ new Date());
|
|
23635
23721
|
return {
|
|
23636
|
-
from:
|
|
23722
|
+
from: Dc(t, -e),
|
|
23637
23723
|
to: t
|
|
23638
23724
|
};
|
|
23639
|
-
},
|
|
23640
|
-
let t = Tc(
|
|
23725
|
+
}, Nc = (e) => {
|
|
23726
|
+
let t = Dc(Tc(/* @__PURE__ */ new Date()), -e);
|
|
23641
23727
|
return {
|
|
23642
23728
|
from: t,
|
|
23643
23729
|
to: t
|
|
23644
23730
|
};
|
|
23645
|
-
},
|
|
23731
|
+
}, Pc = [
|
|
23646
23732
|
{
|
|
23647
23733
|
id: "today",
|
|
23648
23734
|
label: "Hoje",
|
|
23649
|
-
range: () =>
|
|
23735
|
+
range: () => Mc(0)
|
|
23650
23736
|
},
|
|
23651
23737
|
{
|
|
23652
23738
|
id: "yesterday",
|
|
23653
23739
|
label: "Ontem",
|
|
23654
|
-
range: () =>
|
|
23740
|
+
range: () => Nc(1)
|
|
23655
23741
|
},
|
|
23656
23742
|
{
|
|
23657
23743
|
id: "7d",
|
|
23658
23744
|
label: "Últimos 7 dias",
|
|
23659
|
-
range: () =>
|
|
23745
|
+
range: () => Mc(6)
|
|
23660
23746
|
},
|
|
23661
23747
|
{
|
|
23662
23748
|
id: "10d",
|
|
23663
23749
|
label: "Últimos 10 dias",
|
|
23664
|
-
range: () =>
|
|
23750
|
+
range: () => Mc(9)
|
|
23665
23751
|
},
|
|
23666
23752
|
{
|
|
23667
23753
|
id: "15d",
|
|
23668
23754
|
label: "Últimos 15 dias",
|
|
23669
|
-
range: () =>
|
|
23755
|
+
range: () => Mc(14)
|
|
23670
23756
|
},
|
|
23671
23757
|
{
|
|
23672
23758
|
id: "20d",
|
|
23673
23759
|
label: "Últimos 20 dias",
|
|
23674
|
-
range: () =>
|
|
23760
|
+
range: () => Mc(19)
|
|
23675
23761
|
},
|
|
23676
23762
|
{
|
|
23677
23763
|
id: "30d",
|
|
23678
23764
|
label: "Últimos 30 dias",
|
|
23679
|
-
range: () =>
|
|
23765
|
+
range: () => Mc(29)
|
|
23680
23766
|
},
|
|
23681
23767
|
{
|
|
23682
23768
|
id: "90d",
|
|
23683
23769
|
label: "Últimos 90 dias",
|
|
23684
|
-
range: () =>
|
|
23770
|
+
range: () => Mc(89)
|
|
23685
23771
|
}
|
|
23686
23772
|
];
|
|
23687
|
-
function
|
|
23773
|
+
function Fc(e) {
|
|
23688
23774
|
if (!e) return "—";
|
|
23689
23775
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
23690
23776
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
23691
23777
|
}
|
|
23692
|
-
var
|
|
23693
|
-
let p =
|
|
23778
|
+
var Ic = r(function({ value: e, presets: t = jc, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, f) {
|
|
23779
|
+
let p = wc[a], g = Tc(/* @__PURE__ */ new Date()), _ = s ? Tc(s) : null, [v, y] = d(e ?? {
|
|
23694
23780
|
from: g,
|
|
23695
23781
|
to: g
|
|
23696
|
-
}), [b, x] = d(
|
|
23782
|
+
}), [b, x] = d(Ec((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = d(null), w = Dc(Ec(b), -Ec(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Dc(w, t)), E = (e) => _ ? Tc(e) > _ : !1, D = (e) => e ? p.formatDate(e) : /* @__PURE__ */ m("span", {
|
|
23697
23783
|
className: "select-datepicker__placeholder",
|
|
23698
23784
|
children: "— / — / ——"
|
|
23699
23785
|
}), O = (e) => {
|
|
23700
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
23786
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Tc(t.from) ? {
|
|
23701
23787
|
from: e,
|
|
23702
23788
|
to: null
|
|
23703
23789
|
} : {
|
|
@@ -23707,7 +23793,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23707
23793
|
}, k = (e) => {
|
|
23708
23794
|
if (e.disabled || !e.range) return;
|
|
23709
23795
|
let t = e.range();
|
|
23710
|
-
y(t), C(e.id), t.from && x(
|
|
23796
|
+
y(t), C(e.id), t.from && x(Ec(t.from));
|
|
23711
23797
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
23712
23798
|
return /* @__PURE__ */ m("div", {
|
|
23713
23799
|
ref: f,
|
|
@@ -23753,7 +23839,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23753
23839
|
}),
|
|
23754
23840
|
o && /* @__PURE__ */ m("span", {
|
|
23755
23841
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
23756
|
-
children:
|
|
23842
|
+
children: Fc(v[e])
|
|
23757
23843
|
})
|
|
23758
23844
|
]
|
|
23759
23845
|
}, e))
|
|
@@ -23765,7 +23851,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23765
23851
|
type: "button",
|
|
23766
23852
|
className: "select-datepicker__nav",
|
|
23767
23853
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
23768
|
-
onClick: () => x((e) =>
|
|
23854
|
+
onClick: () => x((e) => Oc(e, -1)),
|
|
23769
23855
|
children: /* @__PURE__ */ m(U, {})
|
|
23770
23856
|
}),
|
|
23771
23857
|
/* @__PURE__ */ h("span", {
|
|
@@ -23780,7 +23866,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23780
23866
|
type: "button",
|
|
23781
23867
|
className: "select-datepicker__nav",
|
|
23782
23868
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
23783
|
-
onClick: () => x((e) =>
|
|
23869
|
+
onClick: () => x((e) => Oc(e, 1)),
|
|
23784
23870
|
children: /* @__PURE__ */ m(ae, {})
|
|
23785
23871
|
})
|
|
23786
23872
|
]
|
|
@@ -23792,7 +23878,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23792
23878
|
className: "select-datepicker__weekday",
|
|
23793
23879
|
children: e
|
|
23794
23880
|
}, t)), T.map((e) => {
|
|
23795
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from &&
|
|
23881
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!v.from && kc(e, v.from), i = !!v.to && kc(e, v.to), a = r || i, o = !!v.from && !!v.to && !kc(v.from, v.to), s = "select-datepicker__day" + (v.from && v.to && e > Tc(v.from) && e < Tc(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" : "") + (kc(e, g) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
23796
23882
|
return /* @__PURE__ */ m("div", {
|
|
23797
23883
|
className: s,
|
|
23798
23884
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -23823,17 +23909,17 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23823
23909
|
})]
|
|
23824
23910
|
})
|
|
23825
23911
|
});
|
|
23826
|
-
}),
|
|
23827
|
-
function
|
|
23912
|
+
}), Lc = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Rc = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), zc = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
23913
|
+
function Bc(e, t) {
|
|
23828
23914
|
for (let r of t) {
|
|
23829
23915
|
var n;
|
|
23830
23916
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
23831
|
-
if (t != null && t.from && t != null && t.to &&
|
|
23917
|
+
if (t != null && t.from && t != null && t.to && Rc(t.from, e.start) && Rc(t.to, e.end)) return r.label;
|
|
23832
23918
|
}
|
|
23833
|
-
return
|
|
23919
|
+
return Rc(e.start, e.end) ? zc(e.start) : `${zc(e.start)} – ${zc(e.end)}`;
|
|
23834
23920
|
}
|
|
23835
|
-
function
|
|
23836
|
-
let [c, l] = d(!1), u = r === null ? null : r ??
|
|
23921
|
+
function Vc({ value: e, onChange: t, presets: n = Pc, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
23922
|
+
let [c, l] = d(!1), u = r === null ? null : r ?? Lc(/* @__PURE__ */ new Date());
|
|
23837
23923
|
return /* @__PURE__ */ m(on, {
|
|
23838
23924
|
active: c,
|
|
23839
23925
|
onClose: () => l(!1),
|
|
@@ -23847,9 +23933,9 @@ function zc({ value: e, onChange: t, presets: n = Mc, maxDate: r, placement: i =
|
|
|
23847
23933
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
23848
23934
|
trailingIcon: /* @__PURE__ */ m(W, {}),
|
|
23849
23935
|
onClick: () => l((e) => !e),
|
|
23850
|
-
children:
|
|
23936
|
+
children: Bc(e, n)
|
|
23851
23937
|
}),
|
|
23852
|
-
children: /* @__PURE__ */ m(
|
|
23938
|
+
children: /* @__PURE__ */ m(Ic, {
|
|
23853
23939
|
embedded: !0,
|
|
23854
23940
|
locale: "pt-BR",
|
|
23855
23941
|
showTime: !1,
|
|
@@ -23862,8 +23948,8 @@ function zc({ value: e, onChange: t, presets: n = Mc, maxDate: r, placement: i =
|
|
|
23862
23948
|
onCancel: () => l(!1),
|
|
23863
23949
|
onApply: (e) => {
|
|
23864
23950
|
e.from && t({
|
|
23865
|
-
start:
|
|
23866
|
-
end:
|
|
23951
|
+
start: Lc(e.from),
|
|
23952
|
+
end: Lc(e.to ?? e.from)
|
|
23867
23953
|
}), l(!1);
|
|
23868
23954
|
}
|
|
23869
23955
|
})
|
|
@@ -23871,7 +23957,7 @@ function zc({ value: e, onChange: t, presets: n = Mc, maxDate: r, placement: i =
|
|
|
23871
23957
|
}
|
|
23872
23958
|
//#endregion
|
|
23873
23959
|
//#region src/SelectNumberField.tsx
|
|
23874
|
-
var
|
|
23960
|
+
var Hc = 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) {
|
|
23875
23961
|
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) => {
|
|
23876
23962
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
23877
23963
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -23945,7 +24031,7 @@ var Bc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
23945
24031
|
});
|
|
23946
24032
|
//#endregion
|
|
23947
24033
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
23948
|
-
function
|
|
24034
|
+
function Uc({ 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 }) {
|
|
23949
24035
|
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) => {
|
|
23950
24036
|
let i = n + r;
|
|
23951
24037
|
if (i < 0 || i >= e.length) return;
|
|
@@ -24040,9 +24126,9 @@ function Vc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24040
24126
|
}
|
|
24041
24127
|
//#endregion
|
|
24042
24128
|
//#region src/SelectBuilderLayout.tsx
|
|
24043
|
-
function
|
|
24129
|
+
function Wc({ 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 }) {
|
|
24044
24130
|
let d = v();
|
|
24045
|
-
return /* @__PURE__ */ m(
|
|
24131
|
+
return /* @__PURE__ */ m(ri, {
|
|
24046
24132
|
title: e,
|
|
24047
24133
|
subtitle: t,
|
|
24048
24134
|
backAction: {
|
|
@@ -24080,7 +24166,7 @@ function Hc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24080
24166
|
}
|
|
24081
24167
|
//#endregion
|
|
24082
24168
|
//#region src/SelectBuilderWorkspace.tsx
|
|
24083
|
-
function
|
|
24169
|
+
function Gc({ 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" }) {
|
|
24084
24170
|
var w;
|
|
24085
24171
|
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) => {
|
|
24086
24172
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -24165,7 +24251,7 @@ function Uc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24165
24251
|
"aria-label": "Seções de configuração",
|
|
24166
24252
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
24167
24253
|
className: "select-bwork__search",
|
|
24168
|
-
children: /* @__PURE__ */ m(
|
|
24254
|
+
children: /* @__PURE__ */ m(Ci, {
|
|
24169
24255
|
value: O,
|
|
24170
24256
|
onChange: k,
|
|
24171
24257
|
placeholder: "Buscar ajuste…"
|
|
@@ -24185,7 +24271,7 @@ function Uc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24185
24271
|
children: [
|
|
24186
24272
|
e.icon && /* @__PURE__ */ m("span", {
|
|
24187
24273
|
className: "select-bwork__navicon",
|
|
24188
|
-
children: /* @__PURE__ */ m(
|
|
24274
|
+
children: /* @__PURE__ */ m(pi, {
|
|
24189
24275
|
size: "1rem",
|
|
24190
24276
|
children: e.icon
|
|
24191
24277
|
})
|
|
@@ -24240,10 +24326,10 @@ function Uc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24240
24326
|
}
|
|
24241
24327
|
//#endregion
|
|
24242
24328
|
//#region src/SelectFlowCanvas.tsx
|
|
24243
|
-
var
|
|
24244
|
-
function
|
|
24329
|
+
var Kc = (e) => Math.round(e * 100) / 100;
|
|
24330
|
+
function qc({ 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 }) {
|
|
24245
24331
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
24246
|
-
let t =
|
|
24332
|
+
let t = Kc(Math.min(f, Math.max(u, e)));
|
|
24247
24333
|
o === void 0 && y(t), l == null || l(t);
|
|
24248
24334
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
24249
24335
|
return /* @__PURE__ */ h("div", {
|
|
@@ -24359,7 +24445,7 @@ function Gc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
24359
24445
|
})]
|
|
24360
24446
|
});
|
|
24361
24447
|
}
|
|
24362
|
-
function
|
|
24448
|
+
function Jc({ 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 }) {
|
|
24363
24449
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
24364
24450
|
left: e,
|
|
24365
24451
|
top: t,
|
|
@@ -24435,7 +24521,7 @@ function Kc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
24435
24521
|
})]
|
|
24436
24522
|
});
|
|
24437
24523
|
}
|
|
24438
|
-
function
|
|
24524
|
+
function Yc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel" }) {
|
|
24439
24525
|
return /* @__PURE__ */ h("div", {
|
|
24440
24526
|
className: "select-flowpage",
|
|
24441
24527
|
children: [
|
|
@@ -24497,7 +24583,7 @@ function qc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24497
24583
|
}
|
|
24498
24584
|
//#endregion
|
|
24499
24585
|
//#region src/SelectSwitchField.tsx
|
|
24500
|
-
var
|
|
24586
|
+
var Xc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
24501
24587
|
return /* @__PURE__ */ h("div", {
|
|
24502
24588
|
ref: c,
|
|
24503
24589
|
...s,
|
|
@@ -24525,8 +24611,8 @@ var Jc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
24525
24611
|
children: i
|
|
24526
24612
|
})]
|
|
24527
24613
|
});
|
|
24528
|
-
}),
|
|
24529
|
-
function
|
|
24614
|
+
}), Zc = (e) => /^#[0-9a-fA-F]{6}$/.test(e);
|
|
24615
|
+
function Qc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error: a }) {
|
|
24530
24616
|
return /* @__PURE__ */ m(Tt, {
|
|
24531
24617
|
label: e,
|
|
24532
24618
|
value: t,
|
|
@@ -24544,7 +24630,7 @@ function Xc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24544
24630
|
prefix: /* @__PURE__ */ m("input", {
|
|
24545
24631
|
type: "color",
|
|
24546
24632
|
className: "select-color-swatch",
|
|
24547
|
-
value:
|
|
24633
|
+
value: Zc(t) ? t : "#000000",
|
|
24548
24634
|
onChange: (e) => n(e.target.value),
|
|
24549
24635
|
disabled: r,
|
|
24550
24636
|
"aria-label": e ? `${e} — escolher cor` : "Escolher cor"
|
|
@@ -24553,13 +24639,13 @@ function Xc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24553
24639
|
}
|
|
24554
24640
|
//#endregion
|
|
24555
24641
|
//#region src/SelectImageField.tsx
|
|
24556
|
-
function
|
|
24642
|
+
function $c(e) {
|
|
24557
24643
|
return new Promise((t, n) => {
|
|
24558
24644
|
let r = new FileReader();
|
|
24559
24645
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
24560
24646
|
});
|
|
24561
24647
|
}
|
|
24562
|
-
var
|
|
24648
|
+
var el = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
24563
24649
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
24564
24650
|
let t = e[0];
|
|
24565
24651
|
if (!t) {
|
|
@@ -24567,7 +24653,7 @@ var Qc = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24567
24653
|
return;
|
|
24568
24654
|
}
|
|
24569
24655
|
if (_(null), !s) {
|
|
24570
|
-
n(await
|
|
24656
|
+
n(await $c(t)), p([]);
|
|
24571
24657
|
return;
|
|
24572
24658
|
}
|
|
24573
24659
|
p([t]);
|
|
@@ -24599,7 +24685,7 @@ var Qc = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24599
24685
|
children: g
|
|
24600
24686
|
})]
|
|
24601
24687
|
});
|
|
24602
|
-
}),
|
|
24688
|
+
}), tl = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
24603
24689
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
24604
24690
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
24605
24691
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -24645,6 +24731,6 @@ var Qc = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24645
24731
|
});
|
|
24646
24732
|
});
|
|
24647
24733
|
//#endregion
|
|
24648
|
-
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Ce as BellIcon, 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, 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, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, Yn as SELECT_CARD_BRANDS,
|
|
24734
|
+
export { C as AUTH_FX_VARIANTS, Le as AppleIcon, mt as AppsIcon, G as ArrowLeftIcon, ze as ArrowRightIcon, Ge as AtIcon, Pe as AuthAppIcon, Ce as BellIcon, 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, 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, Re as PasskeyIcon, Ne as PhoneIcon, me as PinIcon, Me as PlusIcon, je as RefreshIcon, Te as RocketIcon, Yn as SELECT_CARD_BRANDS, aa as SELECT_COL_DATETIME, oa as SELECT_COL_ID, On as SELECT_COUNTRIES, Pc as SELECT_DAILY_PRESETS, jc as SELECT_DATE_PRESETS, Rn as SELECT_SPACE, Pn as SELECT_TRANSACTION_STATUS, oe as SearchIcon, tl as SelectAccordion, Xi as SelectActionCard, In as SelectActionList, Ln as SelectActionMenu, Kt as SelectAddButton, va as SelectAddCard, Lt as SelectAlert, Zi as SelectAppTile, B as SelectAuthFx, Vr as SelectAvatar, Jr as SelectBackLink, Nn as SelectBadge, Co as SelectBalanceCard, fn as SelectBankAccountField, Vo as SelectBarChart, Kn as SelectBox, _s as SelectBoxPlot, Wc as SelectBuilderLayout, Gc as SelectBuilderWorkspace, us as SelectBullet, Hs as SelectBump, V as SelectButton, ys as SelectCalendarHeatmap, gs as SelectCandlestick, re as SelectCard, ya as SelectCardGrid, Eo as SelectChartCard, Et as SelectCheckbox, Os as SelectChord, Ys as SelectCirclePack, Yi as SelectCollapsible, Qc as SelectColorField, Ko as SelectColumnChart, Wo as SelectComboChart, cn as SelectCombobox, ra as SelectConfirmModal, qi as SelectCopyRow, Ji as SelectCopyableId, Qi as SelectCreateTile, _a as SelectDataTable, no as SelectDateField, Ic as SelectDatePicker, Vc as SelectDateRangeField, tc as SelectDetailList, nc as SelectDetailRow, ir as SelectDisclosureButton, Br as SelectDivider, It as SelectDocumentField, Go as SelectDonut, S as SelectDotField, Ss as SelectDumbbell, wo as SelectFeeBreakdown, Tt as SelectField, ln as SelectFieldGrid, Gt as SelectFileDropzone, Rt as SelectFileTile, so as SelectFilterBar, Ki as SelectFilterChip, qc as SelectFlowCanvas, Yc as SelectFlowLayout, Jc as SelectFlowNode, oi as SelectFormLayout, ia as SelectFormModal, qo as SelectFunnel, Qo as SelectGauge, ws as SelectGaugeBands, Ls as SelectGlobe, Un as SelectGrid, $o as SelectHeatmap, ks as SelectHexbin, za as SelectHideMoneyToggle, ss as SelectHorizontalBar, Ks as SelectIcicle, pi as SelectIcon, J as SelectIconButton, Wr as SelectIdentityFooter, el as SelectImageField, Jt as SelectImageUploadField, qt as SelectImageUrlsField, _c as SelectImageZoomModal, Ct as SelectInfoTip, Hn as SelectInline, Ir as SelectJsonViewer, Sc as SelectKeyValueEditor, To as SelectKpiCard, wt as SelectLabelRow, xa as SelectLayoutThumb, Ho as SelectLineChart, zr as SelectLinkButton, mc as SelectListCard, hc as SelectListRow, ni as SelectLoader, Cs as SelectMarimekko, Wa as SelectMarkStack, yc as SelectMediaCell, Bi as SelectMenu, Gi as SelectMenuButton, Wi as SelectMenuDivider, Ui as SelectMenuHeading, Vi as SelectMenuItem, Hi as SelectMenuLink, Ra as SelectMetricDelta, ta as SelectModal, Ia as SelectMoney, Mt as SelectMoneyField, Xs as SelectNetwork, mi as SelectNote, Hc as SelectNumberField, Ba as SelectOfferPrice, bc as SelectOfflineModal, Hr as SelectOptionList, Ur as SelectOptionRow, Gr as SelectOtpInput, ri as SelectPage, Ei as SelectPagination, _i as SelectPanel, Us as SelectParallel, zs as SelectPareto, ti as SelectPasswordStrength, rr as SelectPaymentBrand, An as SelectPhoneField, pc as SelectPlanCard, bs as SelectPolarArea, on as SelectPopover, So as SelectPreviewFrame, es as SelectProgressList, Vs as SelectPyramid, ms as SelectRadar, ns as SelectRadialBar, jn as SelectRadioGroup, vs as SelectRangeBar, Ha as SelectRating, Ua as SelectRatingQuote, ba as SelectRecordCard, Uc as SelectRepeatingFieldArray, Yr as SelectResendButton, Zr as SelectRetryStatus, na as SelectRowActions, hs as SelectSankey, ps as SelectScatter, Ci as SelectSearchInput, vi as SelectSection, Mn as SelectSegmented, Yt as SelectSelect, Fa as SelectSensitiveValue, hi as SelectSettingList, gi as SelectSettingRow, oc as SelectSetupGuide, sc as SelectSetupNext, Si as SelectSideNav, di as SelectSkeleton, xs as SelectSlope, Bo as SelectSparkline, wa as SelectSplitChain, Vn as SelectStack, Uo as SelectStackedArea, Fn as SelectStatusBadge, rc as SelectSteps, Ts as SelectStreamGraph, Es as SelectSunburst, lo as SelectSurface, pn as SelectSwitch, Xc as SelectSwitchField, Fi as SelectTable, Ri as SelectTableCell, zi as SelectTableEmpty, Li as SelectTableRow, yi as SelectTabs, co as SelectTagSelect, qn as SelectText, Dt as SelectTextarea, $s as SelectThemeSwitcher, gc as SelectThumbnail, Rs as SelectTicker, Rr as SelectTimeline, _o as SelectToastProvider, mn as SelectToggleList, gn as SelectTogglePanel, hn as SelectToggleRow, St as SelectTooltip, fc as SelectTour, qs as SelectTree, fs as SelectTreemap, Ot as SelectUnitInput, Ii as SelectUserCell, Na as SelectValueVisibilityProvider, Js as SelectVenn, Ds as SelectViolin, Bs as SelectWaffle, cs as SelectWaterfall, As as SelectWordCloud, $i as SelectWorkspaceSwitcher, vc 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, Qe as WalletIcon, xe as WarningIcon, Ke as Web3Icon, rn as detectSelectTheme, kn as dialCodeOf, ei as passwordScore, Qs as resolveSelectTheme, Qn as selectCardBrand, $n as selectCardBrandLabel, ha as useSelectPageSize, vo as useSelectToast, Pa as useSelectValueVisibility };
|
|
24649
24735
|
|
|
24650
24736
|
//# sourceMappingURL=index.js.map
|