@selectwin/kit 0.1.99 → 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/SelectModal.d.ts +4 -1
- package/dist/SelectRetryStatus.d.ts +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +579 -503
- 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,12 +7909,12 @@ 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) {
|
|
7842
7918
|
let f = s != null, p = f ? {
|
|
7843
7919
|
role: "button",
|
|
7844
7920
|
tabIndex: 0,
|
|
@@ -7878,7 +7954,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7878
7954
|
})
|
|
7879
7955
|
]
|
|
7880
7956
|
});
|
|
7881
|
-
}),
|
|
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) {
|
|
7882
7958
|
let g = o === "auto" ? void 0 : `${o / 16}rem`, _ = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
7883
7959
|
return /* @__PURE__ */ h("div", {
|
|
7884
7960
|
ref: p,
|
|
@@ -7921,7 +7997,7 @@ var _o = "allow-scripts allow-same-origin allow-forms", vo = 390, yo = 1280, bo
|
|
|
7921
7997
|
});
|
|
7922
7998
|
//#endregion
|
|
7923
7999
|
//#region src/chartUtils.ts
|
|
7924
|
-
function
|
|
8000
|
+
function Do() {
|
|
7925
8001
|
let [e, t] = d(1);
|
|
7926
8002
|
return c(() => {
|
|
7927
8003
|
let e = () => {
|
|
@@ -7932,7 +8008,7 @@ function To() {
|
|
|
7932
8008
|
}, []), e;
|
|
7933
8009
|
}
|
|
7934
8010
|
function Y(e) {
|
|
7935
|
-
let t = u(null), [n, r] = d(0), i =
|
|
8011
|
+
let t = u(null), [n, r] = d(0), i = Do();
|
|
7936
8012
|
return c(() => {
|
|
7937
8013
|
let e = t.current;
|
|
7938
8014
|
if (!e) return;
|
|
@@ -7949,7 +8025,7 @@ function Y(e) {
|
|
|
7949
8025
|
height: Math.round(e * i)
|
|
7950
8026
|
};
|
|
7951
8027
|
}
|
|
7952
|
-
function
|
|
8028
|
+
function Oo(e, t) {
|
|
7953
8029
|
let [n, r] = d(t);
|
|
7954
8030
|
return c(() => {
|
|
7955
8031
|
let t = e.current;
|
|
@@ -7963,15 +8039,15 @@ function Eo(e, t) {
|
|
|
7963
8039
|
return i.observe(t), () => i.disconnect();
|
|
7964
8040
|
}, [e]), n;
|
|
7965
8041
|
}
|
|
7966
|
-
function
|
|
8042
|
+
function ko(e) {
|
|
7967
8043
|
if (e <= 0) return 1;
|
|
7968
8044
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
7969
8045
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
7970
8046
|
}
|
|
7971
|
-
function
|
|
8047
|
+
function Ao(e, t = 4) {
|
|
7972
8048
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
7973
8049
|
}
|
|
7974
|
-
function
|
|
8050
|
+
function jo(e, t = 5) {
|
|
7975
8051
|
if (!(e > 0)) return {
|
|
7976
8052
|
max: 1,
|
|
7977
8053
|
values: [0, 1]
|
|
@@ -7983,10 +8059,10 @@ function ko(e, t = 5) {
|
|
|
7983
8059
|
values: s
|
|
7984
8060
|
};
|
|
7985
8061
|
}
|
|
7986
|
-
function
|
|
8062
|
+
function Mo(e) {
|
|
7987
8063
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
7988
8064
|
}
|
|
7989
|
-
function
|
|
8065
|
+
function No(e) {
|
|
7990
8066
|
let t = e.length;
|
|
7991
8067
|
if (t === 0) return "";
|
|
7992
8068
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -8010,23 +8086,23 @@ function jo(e) {
|
|
|
8010
8086
|
}
|
|
8011
8087
|
return s;
|
|
8012
8088
|
}
|
|
8013
|
-
function
|
|
8089
|
+
function Po(e, t) {
|
|
8014
8090
|
if (e.length === 0) return "";
|
|
8015
8091
|
let n = e[0], r = e[e.length - 1];
|
|
8016
|
-
return `${
|
|
8092
|
+
return `${No(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
8017
8093
|
}
|
|
8018
|
-
function
|
|
8019
|
-
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`;
|
|
8020
8096
|
}
|
|
8021
|
-
function
|
|
8097
|
+
function Io(e, t, n, r) {
|
|
8022
8098
|
let i = (r - 90) * Math.PI / 180;
|
|
8023
8099
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8024
8100
|
}
|
|
8025
|
-
function
|
|
8026
|
-
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);
|
|
8027
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`;
|
|
8028
8104
|
}
|
|
8029
|
-
var
|
|
8105
|
+
var Ro = [
|
|
8030
8106
|
"var(--select-chart-1)",
|
|
8031
8107
|
"var(--select-chart-2)",
|
|
8032
8108
|
"var(--select-chart-3)",
|
|
@@ -8034,13 +8110,13 @@ var Io = [
|
|
|
8034
8110
|
"var(--select-chart-5)"
|
|
8035
8111
|
];
|
|
8036
8112
|
function X(e) {
|
|
8037
|
-
return
|
|
8113
|
+
return Ro[e % Ro.length];
|
|
8038
8114
|
}
|
|
8039
8115
|
function Z(e) {
|
|
8040
8116
|
let t = Math.abs(e);
|
|
8041
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));
|
|
8042
8118
|
}
|
|
8043
|
-
var
|
|
8119
|
+
var zo = {
|
|
8044
8120
|
top: 16,
|
|
8045
8121
|
right: 22,
|
|
8046
8122
|
bottom: 32,
|
|
@@ -8048,7 +8124,7 @@ var Lo = {
|
|
|
8048
8124
|
};
|
|
8049
8125
|
//#endregion
|
|
8050
8126
|
//#region src/SelectSparkline.tsx
|
|
8051
|
-
function
|
|
8127
|
+
function Bo({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
8052
8128
|
let { ref: a, width: o } = Y(n), c = t ?? X(0), l = s(), u = null;
|
|
8053
8129
|
if (o > 0 && e.length > 1) {
|
|
8054
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];
|
|
@@ -8075,11 +8151,11 @@ function Ro({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
8075
8151
|
})]
|
|
8076
8152
|
}) }),
|
|
8077
8153
|
/* @__PURE__ */ m("path", {
|
|
8078
|
-
d:
|
|
8154
|
+
d: Po(a, n - 4),
|
|
8079
8155
|
fill: `url(#${l}-sa)`
|
|
8080
8156
|
}),
|
|
8081
8157
|
/* @__PURE__ */ m("path", {
|
|
8082
|
-
d:
|
|
8158
|
+
d: No(a),
|
|
8083
8159
|
fill: "none",
|
|
8084
8160
|
stroke: c,
|
|
8085
8161
|
strokeWidth: 2,
|
|
@@ -8160,8 +8236,8 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
8160
8236
|
}
|
|
8161
8237
|
//#endregion
|
|
8162
8238
|
//#region src/SelectBarChart.tsx
|
|
8163
|
-
function
|
|
8164
|
-
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 * _;
|
|
8165
8241
|
return /* @__PURE__ */ h("div", {
|
|
8166
8242
|
...a,
|
|
8167
8243
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8187,7 +8263,7 @@ function zo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8187
8263
|
stopOpacity: .62
|
|
8188
8264
|
})]
|
|
8189
8265
|
}) }),
|
|
8190
|
-
|
|
8266
|
+
Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8191
8267
|
x1: p.left,
|
|
8192
8268
|
x2: c - p.right,
|
|
8193
8269
|
y1: x(e),
|
|
@@ -8237,8 +8313,8 @@ function zo({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
8237
8313
|
}
|
|
8238
8314
|
//#endregion
|
|
8239
8315
|
//#region src/SelectLineChart.tsx
|
|
8240
|
-
function
|
|
8241
|
-
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;
|
|
8242
8318
|
return /* @__PURE__ */ h("div", {
|
|
8243
8319
|
...o,
|
|
8244
8320
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8291,11 +8367,11 @@ function Bo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8291
8367
|
e.map((e, t) => {
|
|
8292
8368
|
let n = e.color ?? X(t), r = e.data.map((e, t) => [C(t), w(e)]);
|
|
8293
8369
|
return /* @__PURE__ */ h("g", { children: [i && /* @__PURE__ */ m("path", {
|
|
8294
|
-
d:
|
|
8370
|
+
d: Po(r, D),
|
|
8295
8371
|
fill: `url(#${f}-a${t})`,
|
|
8296
8372
|
className: "select-chart__area"
|
|
8297
8373
|
}), /* @__PURE__ */ m("path", {
|
|
8298
|
-
d:
|
|
8374
|
+
d: No(r),
|
|
8299
8375
|
fill: "none",
|
|
8300
8376
|
stroke: n,
|
|
8301
8377
|
strokeWidth: 2.25,
|
|
@@ -8350,8 +8426,8 @@ function Bo({ series: e, labels: t, height: n = 240, format: r = Z, area: i = !1
|
|
|
8350
8426
|
}
|
|
8351
8427
|
//#endregion
|
|
8352
8428
|
//#region src/SelectStackedArea.tsx
|
|
8353
|
-
function
|
|
8354
|
-
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];
|
|
8355
8431
|
return /* @__PURE__ */ h("div", {
|
|
8356
8432
|
...a,
|
|
8357
8433
|
className: `select-chart-wrap${i ? " " + i : ""}`,
|
|
@@ -8380,7 +8456,7 @@ function Vo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8380
8456
|
})]
|
|
8381
8457
|
}, t);
|
|
8382
8458
|
}) }),
|
|
8383
|
-
|
|
8459
|
+
Ao(y).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8384
8460
|
x1: b.left,
|
|
8385
8461
|
x2: c - b.right,
|
|
8386
8462
|
y1: w(e),
|
|
@@ -8399,10 +8475,10 @@ function Vo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8399
8475
|
return /* @__PURE__ */ h("g", {
|
|
8400
8476
|
className: "select-chart__area",
|
|
8401
8477
|
children: [/* @__PURE__ */ m("path", {
|
|
8402
|
-
d:
|
|
8478
|
+
d: Fo(i, a),
|
|
8403
8479
|
fill: `url(#${u}-b${n})`
|
|
8404
8480
|
}), /* @__PURE__ */ m("path", {
|
|
8405
|
-
d:
|
|
8481
|
+
d: No(i),
|
|
8406
8482
|
fill: "none",
|
|
8407
8483
|
stroke: r,
|
|
8408
8484
|
strokeWidth: 1.5,
|
|
@@ -8456,11 +8532,11 @@ function Vo({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
8456
8532
|
}
|
|
8457
8533
|
//#endregion
|
|
8458
8534
|
//#region src/SelectComboChart.tsx
|
|
8459
|
-
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 }) {
|
|
8460
8536
|
let { ref: l, width: u } = Y(r), f = Q(), p = s(), [g, _] = d(null), v = {
|
|
8461
|
-
...
|
|
8537
|
+
...zo,
|
|
8462
8538
|
right: 58
|
|
8463
|
-
}, 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)]);
|
|
8464
8540
|
return /* @__PURE__ */ h("div", {
|
|
8465
8541
|
...c,
|
|
8466
8542
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -8486,7 +8562,7 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8486
8562
|
stopOpacity: .55
|
|
8487
8563
|
})]
|
|
8488
8564
|
}) }),
|
|
8489
|
-
|
|
8565
|
+
Ao(S).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8490
8566
|
x1: v.left,
|
|
8491
8567
|
x2: u - v.right,
|
|
8492
8568
|
y1: A(e),
|
|
@@ -8500,7 +8576,7 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8500
8576
|
textAnchor: "end",
|
|
8501
8577
|
children: i(e)
|
|
8502
8578
|
})] }, t)),
|
|
8503
|
-
|
|
8579
|
+
Ao(C).map((e, t) => /* @__PURE__ */ m("text", {
|
|
8504
8580
|
x: u - 4,
|
|
8505
8581
|
y: j(e),
|
|
8506
8582
|
className: "select-chart__ylabel",
|
|
@@ -8529,7 +8605,7 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8529
8605
|
className: "select-chart__crosshair"
|
|
8530
8606
|
}),
|
|
8531
8607
|
/* @__PURE__ */ m("path", {
|
|
8532
|
-
d:
|
|
8608
|
+
d: No(N),
|
|
8533
8609
|
fill: "none",
|
|
8534
8610
|
stroke: O,
|
|
8535
8611
|
strokeWidth: 2.5,
|
|
@@ -8587,8 +8663,8 @@ function Ho({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
8587
8663
|
}
|
|
8588
8664
|
//#endregion
|
|
8589
8665
|
//#region src/SelectDonut.tsx
|
|
8590
|
-
var
|
|
8591
|
-
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;
|
|
8592
8668
|
return /* @__PURE__ */ h("div", {
|
|
8593
8669
|
ref: f,
|
|
8594
8670
|
...d,
|
|
@@ -8631,7 +8707,7 @@ var Uo = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8631
8707
|
w += e.value;
|
|
8632
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);
|
|
8633
8709
|
return /* @__PURE__ */ m("path", {
|
|
8634
|
-
d:
|
|
8710
|
+
d: Lo(b, x, S, C, c, l),
|
|
8635
8711
|
fill: `url(#${g}-s${t})`,
|
|
8636
8712
|
className: "select-chart__seg",
|
|
8637
8713
|
onMouseEnter: () => {
|
|
@@ -8682,8 +8758,8 @@ var Uo = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
8682
8758
|
});
|
|
8683
8759
|
//#endregion
|
|
8684
8760
|
//#region src/SelectColumnChart.tsx
|
|
8685
|
-
function
|
|
8686
|
-
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;
|
|
8687
8763
|
return /* @__PURE__ */ h("div", {
|
|
8688
8764
|
...o,
|
|
8689
8765
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -8712,7 +8788,7 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8712
8788
|
})]
|
|
8713
8789
|
}, t);
|
|
8714
8790
|
}) }),
|
|
8715
|
-
|
|
8791
|
+
Ao(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
8716
8792
|
x1: v.left,
|
|
8717
8793
|
x2: l - v.right,
|
|
8718
8794
|
y1: C(e),
|
|
@@ -8794,7 +8870,7 @@ function Wo({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
8794
8870
|
}
|
|
8795
8871
|
//#endregion
|
|
8796
8872
|
//#region src/SelectFunnel.tsx
|
|
8797
|
-
var
|
|
8873
|
+
var qo = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
8798
8874
|
let a = Math.max(1, ...e.map((e) => e.value));
|
|
8799
8875
|
return /* @__PURE__ */ m("div", {
|
|
8800
8876
|
ref: i,
|
|
@@ -8836,19 +8912,19 @@ var Go = r(function({ stages: e, format: t = Z, className: n, ...r }, i) {
|
|
|
8836
8912
|
});
|
|
8837
8913
|
//#endregion
|
|
8838
8914
|
//#region src/SelectGauge.tsx
|
|
8839
|
-
function
|
|
8915
|
+
function Jo(e) {
|
|
8840
8916
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
8841
8917
|
}
|
|
8842
|
-
function
|
|
8918
|
+
function Yo(e, t, n, r) {
|
|
8843
8919
|
let i = Math.PI + r * Math.PI;
|
|
8844
8920
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
8845
8921
|
}
|
|
8846
|
-
function
|
|
8847
|
-
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);
|
|
8848
8924
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
8849
8925
|
}
|
|
8850
|
-
var
|
|
8851
|
-
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({
|
|
8852
8928
|
value: u,
|
|
8853
8929
|
format: o
|
|
8854
8930
|
});
|
|
@@ -8871,13 +8947,13 @@ var Yo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8871
8947
|
"aria-hidden": "true",
|
|
8872
8948
|
children: [/* @__PURE__ */ m("path", {
|
|
8873
8949
|
className: "select-gauge__track",
|
|
8874
|
-
d:
|
|
8950
|
+
d: Xo(g, _, p, 0, 1),
|
|
8875
8951
|
fill: "none",
|
|
8876
8952
|
strokeWidth: d,
|
|
8877
8953
|
strokeLinecap: "round"
|
|
8878
8954
|
}), u > 0 && /* @__PURE__ */ m("path", {
|
|
8879
8955
|
className: "select-gauge__arc",
|
|
8880
|
-
d:
|
|
8956
|
+
d: Xo(g, _, p, 0, u / 100),
|
|
8881
8957
|
fill: "none",
|
|
8882
8958
|
stroke: a ?? "var(--select-chart-1)",
|
|
8883
8959
|
strokeWidth: d,
|
|
@@ -8900,7 +8976,7 @@ var Yo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8900
8976
|
children: n
|
|
8901
8977
|
})]
|
|
8902
8978
|
});
|
|
8903
|
-
}),
|
|
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) {
|
|
8904
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 = {
|
|
8905
8981
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
8906
8982
|
width: "fit-content",
|
|
@@ -8965,7 +9041,7 @@ var Yo = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
8965
9041
|
});
|
|
8966
9042
|
//#endregion
|
|
8967
9043
|
//#region src/SelectProgressList.tsx
|
|
8968
|
-
function
|
|
9044
|
+
function es({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período." }) {
|
|
8969
9045
|
if (e.length === 0) return /* @__PURE__ */ m("div", {
|
|
8970
9046
|
className: "select-progresslist__empty",
|
|
8971
9047
|
children: r
|
|
@@ -9016,7 +9092,7 @@ function Qo({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
9016
9092
|
}
|
|
9017
9093
|
//#endregion
|
|
9018
9094
|
//#region src/SelectRadialBar.tsx
|
|
9019
|
-
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) {
|
|
9020
9096
|
let d = s(), f = t / 2, p = t / 2;
|
|
9021
9097
|
return /* @__PURE__ */ h("div", {
|
|
9022
9098
|
ref: u,
|
|
@@ -9056,7 +9132,7 @@ var $o = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, es = r(f
|
|
|
9056
9132
|
}) }), e.map((e, i) => {
|
|
9057
9133
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
9058
9134
|
if (a <= n / 2) return null;
|
|
9059
|
-
let o =
|
|
9135
|
+
let o = ts(e.value);
|
|
9060
9136
|
return /* @__PURE__ */ h("g", {
|
|
9061
9137
|
transform: `rotate(-90 ${f} ${p})`,
|
|
9062
9138
|
children: [/* @__PURE__ */ m("circle", {
|
|
@@ -9085,7 +9161,7 @@ var $o = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, es = r(f
|
|
|
9085
9161
|
className: "select-radial__center",
|
|
9086
9162
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ m("strong", {
|
|
9087
9163
|
className: "select-radial__value",
|
|
9088
|
-
children: i(
|
|
9164
|
+
children: i(ts(e[0].value))
|
|
9089
9165
|
}) : null)
|
|
9090
9166
|
})]
|
|
9091
9167
|
}), o && /* @__PURE__ */ m("ul", {
|
|
@@ -9103,15 +9179,15 @@ var $o = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, es = r(f
|
|
|
9103
9179
|
}),
|
|
9104
9180
|
/* @__PURE__ */ m("span", {
|
|
9105
9181
|
className: "select-donut__legval",
|
|
9106
|
-
children: i(
|
|
9182
|
+
children: i(ts(e.value))
|
|
9107
9183
|
})
|
|
9108
9184
|
]
|
|
9109
9185
|
}, t))
|
|
9110
9186
|
})]
|
|
9111
9187
|
});
|
|
9112
|
-
}),
|
|
9113
|
-
function
|
|
9114
|
-
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));
|
|
9115
9191
|
return /* @__PURE__ */ h("div", {
|
|
9116
9192
|
...l,
|
|
9117
9193
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -9140,7 +9216,7 @@ function as({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9140
9216
|
})]
|
|
9141
9217
|
}, t);
|
|
9142
9218
|
}) }),
|
|
9143
|
-
|
|
9219
|
+
Ao(_).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9144
9220
|
x1: D(e),
|
|
9145
9221
|
x2: D(e),
|
|
9146
9222
|
y1: 6,
|
|
@@ -9186,7 +9262,7 @@ function as({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9186
9262
|
onMouseLeave: p.hide
|
|
9187
9263
|
}),
|
|
9188
9264
|
/* @__PURE__ */ h("text", {
|
|
9189
|
-
x: b -
|
|
9265
|
+
x: b - is / 2,
|
|
9190
9266
|
y: n,
|
|
9191
9267
|
className: "select-chart__ylabel",
|
|
9192
9268
|
dominantBaseline: "middle",
|
|
@@ -9201,7 +9277,7 @@ function as({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
9201
9277
|
}
|
|
9202
9278
|
//#endregion
|
|
9203
9279
|
//#region src/SelectWaterfall.tsx
|
|
9204
|
-
function
|
|
9280
|
+
function cs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
9205
9281
|
let { ref: a, width: o } = Y(t), c = Q(), l = s(), u = 0, d = e.map((e) => {
|
|
9206
9282
|
if (e.total) return u = e.value, {
|
|
9207
9283
|
...e,
|
|
@@ -9214,7 +9290,7 @@ function os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9214
9290
|
start: t,
|
|
9215
9291
|
end: u
|
|
9216
9292
|
};
|
|
9217
|
-
}), 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 = {
|
|
9218
9294
|
total: "var(--select-chart-1)",
|
|
9219
9295
|
inc: "var(--select-chart-4)",
|
|
9220
9296
|
dec: "var(--select-chart-3)"
|
|
@@ -9248,7 +9324,7 @@ function os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9248
9324
|
stopOpacity: .62
|
|
9249
9325
|
})]
|
|
9250
9326
|
}, e)) }),
|
|
9251
|
-
|
|
9327
|
+
Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9252
9328
|
x1: p.left,
|
|
9253
9329
|
x2: o - p.right,
|
|
9254
9330
|
y1: S(e),
|
|
@@ -9316,7 +9392,7 @@ function os({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9316
9392
|
}
|
|
9317
9393
|
//#endregion
|
|
9318
9394
|
//#region src/SelectBullet.tsx
|
|
9319
|
-
var
|
|
9395
|
+
var ls = (e) => Math.max(0, Math.min(100, e)), us = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
9320
9396
|
return /* @__PURE__ */ m("div", {
|
|
9321
9397
|
ref: i,
|
|
9322
9398
|
...r,
|
|
@@ -9354,12 +9430,12 @@ var ss = (e) => Math.max(0, Math.min(100, e)), cs = r(function({ items: e, forma
|
|
|
9354
9430
|
children: [/* @__PURE__ */ m("span", {
|
|
9355
9431
|
className: "select-bullet__fill",
|
|
9356
9432
|
style: {
|
|
9357
|
-
width: `${
|
|
9433
|
+
width: `${ls(e.value / i * 100)}%`,
|
|
9358
9434
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
9359
9435
|
}
|
|
9360
9436
|
}), /* @__PURE__ */ m("span", {
|
|
9361
9437
|
className: "select-bullet__tick",
|
|
9362
|
-
style: { left: `${
|
|
9438
|
+
style: { left: `${ls(e.target / i * 100)}%` }
|
|
9363
9439
|
})]
|
|
9364
9440
|
})]
|
|
9365
9441
|
}, `${e.label}-${n}`);
|
|
@@ -9368,7 +9444,7 @@ var ss = (e) => Math.max(0, Math.min(100, e)), cs = r(function({ items: e, forma
|
|
|
9368
9444
|
});
|
|
9369
9445
|
//#endregion
|
|
9370
9446
|
//#region src/SelectTreemap.tsx
|
|
9371
|
-
function
|
|
9447
|
+
function ds(e, t, n) {
|
|
9372
9448
|
let r = [], i = (e, t) => {
|
|
9373
9449
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
9374
9450
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -9419,8 +9495,8 @@ function ls(e, t, n) {
|
|
|
9419
9495
|
};
|
|
9420
9496
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
9421
9497
|
}
|
|
9422
|
-
function
|
|
9423
|
-
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) : [];
|
|
9424
9500
|
return /* @__PURE__ */ h("div", {
|
|
9425
9501
|
...i,
|
|
9426
9502
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -9490,8 +9566,8 @@ function us({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9490
9566
|
}
|
|
9491
9567
|
//#endregion
|
|
9492
9568
|
//#region src/SelectScatter.tsx
|
|
9493
|
-
function
|
|
9494
|
-
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;
|
|
9495
9571
|
return /* @__PURE__ */ h("div", {
|
|
9496
9572
|
...c,
|
|
9497
9573
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -9501,7 +9577,7 @@ function ds({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9501
9577
|
height: t,
|
|
9502
9578
|
className: "select-chart",
|
|
9503
9579
|
children: [
|
|
9504
|
-
|
|
9580
|
+
Ao(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9505
9581
|
x1: v.left,
|
|
9506
9582
|
x2: u - v.right,
|
|
9507
9583
|
y1: C(e),
|
|
@@ -9515,7 +9591,7 @@ function ds({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9515
9591
|
textAnchor: "end",
|
|
9516
9592
|
children: r(e)
|
|
9517
9593
|
})] }, `y${t}`)),
|
|
9518
|
-
|
|
9594
|
+
Ao(p).map((e, r, i) => /* @__PURE__ */ m("text", {
|
|
9519
9595
|
x: S(e),
|
|
9520
9596
|
y: t - v.bottom + 16,
|
|
9521
9597
|
className: "select-chart__xlabel",
|
|
@@ -9562,8 +9638,8 @@ function ds({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
9562
9638
|
}
|
|
9563
9639
|
//#endregion
|
|
9564
9640
|
//#region src/SelectRadar.tsx
|
|
9565
|
-
var
|
|
9566
|
-
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";
|
|
9567
9643
|
return /* @__PURE__ */ h("div", {
|
|
9568
9644
|
ref: u,
|
|
9569
9645
|
...l,
|
|
@@ -9672,7 +9748,7 @@ var fs = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
9672
9748
|
});
|
|
9673
9749
|
//#endregion
|
|
9674
9750
|
//#region src/SelectSankey.tsx
|
|
9675
|
-
function
|
|
9751
|
+
function hs({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
9676
9752
|
let { ref: s, width: c } = Y(t), l = Q(), u = [], d = [];
|
|
9677
9753
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
9678
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) => {
|
|
@@ -9757,8 +9833,8 @@ function ps({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
9757
9833
|
}
|
|
9758
9834
|
//#endregion
|
|
9759
9835
|
//#region src/SelectCandlestick.tsx
|
|
9760
|
-
function
|
|
9761
|
-
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);
|
|
9762
9838
|
return /* @__PURE__ */ h("div", {
|
|
9763
9839
|
...o,
|
|
9764
9840
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -9847,8 +9923,8 @@ function ms({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
9847
9923
|
}
|
|
9848
9924
|
//#endregion
|
|
9849
9925
|
//#region src/SelectBoxPlot.tsx
|
|
9850
|
-
function
|
|
9851
|
-
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);
|
|
9852
9928
|
return /* @__PURE__ */ h("div", {
|
|
9853
9929
|
...i,
|
|
9854
9930
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -9857,7 +9933,7 @@ function hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9857
9933
|
width: o,
|
|
9858
9934
|
height: t,
|
|
9859
9935
|
className: "select-chart",
|
|
9860
|
-
children: [
|
|
9936
|
+
children: [Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
9861
9937
|
x1: c.left,
|
|
9862
9938
|
x2: o - c.right,
|
|
9863
9939
|
y1: p(e),
|
|
@@ -9967,7 +10043,7 @@ function hs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
9967
10043
|
}
|
|
9968
10044
|
//#endregion
|
|
9969
10045
|
//#region src/SelectRangeBar.tsx
|
|
9970
|
-
function
|
|
10046
|
+
function vs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...c }) {
|
|
9971
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);
|
|
9972
10048
|
return /* @__PURE__ */ h("div", {
|
|
9973
10049
|
...c,
|
|
@@ -10048,7 +10124,7 @@ function gs({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
10048
10124
|
}
|
|
10049
10125
|
//#endregion
|
|
10050
10126
|
//#region src/SelectCalendarHeatmap.tsx
|
|
10051
|
-
var
|
|
10127
|
+
var ys = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
10052
10128
|
"Seg",
|
|
10053
10129
|
"",
|
|
10054
10130
|
"Qua",
|
|
@@ -10121,8 +10197,8 @@ var _s = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10121
10197
|
]
|
|
10122
10198
|
}), /* @__PURE__ */ m($, { tip: p.tip })]
|
|
10123
10199
|
});
|
|
10124
|
-
}),
|
|
10125
|
-
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;
|
|
10126
10202
|
return /* @__PURE__ */ h("div", {
|
|
10127
10203
|
ref: s,
|
|
10128
10204
|
...o,
|
|
@@ -10152,7 +10228,7 @@ var _s = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10152
10228
|
}, t)), e.map((e, t) => {
|
|
10153
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);
|
|
10154
10230
|
return /* @__PURE__ */ m("path", {
|
|
10155
|
-
d:
|
|
10231
|
+
d: Lo(l, u, o, 0, r, i),
|
|
10156
10232
|
fill: a,
|
|
10157
10233
|
fillOpacity: .8,
|
|
10158
10234
|
className: "select-chart__seg",
|
|
@@ -10195,13 +10271,13 @@ var _s = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
10195
10271
|
});
|
|
10196
10272
|
//#endregion
|
|
10197
10273
|
//#region src/SelectSlope.tsx
|
|
10198
|
-
function
|
|
10274
|
+
function xs({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
10199
10275
|
let { ref: s, width: c } = Y(r), l = Q(), u = {
|
|
10200
10276
|
top: 24,
|
|
10201
10277
|
right: 64,
|
|
10202
10278
|
bottom: 12,
|
|
10203
10279
|
left: 132
|
|
10204
|
-
}, 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;
|
|
10205
10281
|
return /* @__PURE__ */ h("div", {
|
|
10206
10282
|
...o,
|
|
10207
10283
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -10317,8 +10393,8 @@ function ys({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
10317
10393
|
}
|
|
10318
10394
|
//#endregion
|
|
10319
10395
|
//#region src/SelectDumbbell.tsx
|
|
10320
|
-
function
|
|
10321
|
-
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;
|
|
10322
10398
|
return /* @__PURE__ */ h("div", {
|
|
10323
10399
|
...s,
|
|
10324
10400
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -10327,7 +10403,7 @@ function bs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10327
10403
|
width: u,
|
|
10328
10404
|
height: c,
|
|
10329
10405
|
className: "select-chart",
|
|
10330
|
-
children: [
|
|
10406
|
+
children: [Ao(g).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10331
10407
|
x1: x(e),
|
|
10332
10408
|
x2: x(e),
|
|
10333
10409
|
y1: 6,
|
|
@@ -10410,7 +10486,7 @@ function bs({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
10410
10486
|
}
|
|
10411
10487
|
//#endregion
|
|
10412
10488
|
//#region src/SelectMarimekko.tsx
|
|
10413
|
-
function
|
|
10489
|
+
function Cs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
10414
10490
|
let { ref: o, width: s } = Y(t), c = Q(), l = {
|
|
10415
10491
|
top: 6,
|
|
10416
10492
|
right: 6,
|
|
@@ -10490,7 +10566,7 @@ function xs({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
10490
10566
|
}
|
|
10491
10567
|
//#endregion
|
|
10492
10568
|
//#region src/SelectGaugeBands.tsx
|
|
10493
|
-
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) {
|
|
10494
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) => {
|
|
10495
10571
|
let t = Math.PI + e * Math.PI;
|
|
10496
10572
|
return [p + f * Math.cos(t), g + f * Math.sin(t)];
|
|
@@ -10562,7 +10638,7 @@ var Ss = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
10562
10638
|
});
|
|
10563
10639
|
//#endregion
|
|
10564
10640
|
//#region src/SelectStreamGraph.tsx
|
|
10565
|
-
function
|
|
10641
|
+
function Ts({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
10566
10642
|
let { ref: o, width: c } = Y(n), l = Q(), u = s(), [f, p] = d(null), g = t.length, _ = {
|
|
10567
10643
|
top: 14,
|
|
10568
10644
|
right: 14,
|
|
@@ -10606,7 +10682,7 @@ function Cs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10606
10682
|
})]
|
|
10607
10683
|
}, t)) }),
|
|
10608
10684
|
w.map((e, t) => /* @__PURE__ */ m("path", {
|
|
10609
|
-
d:
|
|
10685
|
+
d: Fo(e.upper, e.lower),
|
|
10610
10686
|
fill: `url(#${u}-st${t})`,
|
|
10611
10687
|
className: "select-chart__area"
|
|
10612
10688
|
}, t)),
|
|
@@ -10653,7 +10729,7 @@ function Cs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
10653
10729
|
}
|
|
10654
10730
|
//#endregion
|
|
10655
10731
|
//#region src/SelectSunburst.tsx
|
|
10656
|
-
var
|
|
10732
|
+
var Es = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
10657
10733
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
10658
10734
|
var t;
|
|
10659
10735
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -10679,7 +10755,7 @@ var ws = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10679
10755
|
_ += r;
|
|
10680
10756
|
let a = _ / g * 360, o = e.color ?? X(t), v = i;
|
|
10681
10757
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10682
|
-
d:
|
|
10758
|
+
d: Lo(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
10683
10759
|
fill: o,
|
|
10684
10760
|
className: "select-chart__seg",
|
|
10685
10761
|
onMouseEnter: () => s.show({
|
|
@@ -10699,7 +10775,7 @@ var ws = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10699
10775
|
v += t.value / g * 360;
|
|
10700
10776
|
let f = v, p = t.color ?? o, h = .45 + i % 3 * .2, _ = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
10701
10777
|
return /* @__PURE__ */ m("path", {
|
|
10702
|
-
d:
|
|
10778
|
+
d: Lo(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
10703
10779
|
fill: p,
|
|
10704
10780
|
fillOpacity: h,
|
|
10705
10781
|
className: "select-chart__seg",
|
|
@@ -10746,8 +10822,8 @@ var ws = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
10746
10822
|
});
|
|
10747
10823
|
//#endregion
|
|
10748
10824
|
//#region src/SelectViolin.tsx
|
|
10749
|
-
function
|
|
10750
|
-
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));
|
|
10751
10827
|
return /* @__PURE__ */ h("div", {
|
|
10752
10828
|
...i,
|
|
10753
10829
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -10756,7 +10832,7 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10756
10832
|
width: o,
|
|
10757
10833
|
height: t,
|
|
10758
10834
|
className: "select-chart",
|
|
10759
|
-
children: [
|
|
10835
|
+
children: [Ao(f).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
10760
10836
|
x1: c.left,
|
|
10761
10837
|
x2: o - c.right,
|
|
10762
10838
|
y1: p(e),
|
|
@@ -10773,7 +10849,7 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10773
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 = [];
|
|
10774
10850
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
10775
10851
|
for (let e = 0; e < o; e++) g.push([i - d(e), l(e)]);
|
|
10776
|
-
let b = `${
|
|
10852
|
+
let b = `${Mo(f)} ${Mo(g).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
10777
10853
|
return /* @__PURE__ */ h("g", { children: [
|
|
10778
10854
|
/* @__PURE__ */ m("path", {
|
|
10779
10855
|
d: b,
|
|
@@ -10834,7 +10910,7 @@ function Ts({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
10834
10910
|
}
|
|
10835
10911
|
//#endregion
|
|
10836
10912
|
//#region src/SelectChord.tsx
|
|
10837
|
-
var
|
|
10913
|
+
var Os = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
10838
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;
|
|
10839
10915
|
for (let e = 0; e < l; e++) {
|
|
10840
10916
|
let t = b, n = b + g[e] * v;
|
|
@@ -10901,7 +10977,7 @@ var Es = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
10901
10977
|
}, n)), y.map((e, n) => {
|
|
10902
10978
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
10903
10979
|
return /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("path", {
|
|
10904
|
-
d:
|
|
10980
|
+
d: Lo(u, d, f, p, w(e.a0), w(e.a1)),
|
|
10905
10981
|
fill: X(n),
|
|
10906
10982
|
className: "select-chord__arc"
|
|
10907
10983
|
}), /* @__PURE__ */ m("text", {
|
|
@@ -10919,7 +10995,7 @@ var Es = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
10919
10995
|
});
|
|
10920
10996
|
//#endregion
|
|
10921
10997
|
//#region src/SelectHexbin.tsx
|
|
10922
|
-
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 }) {
|
|
10923
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) => {
|
|
10924
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);
|
|
10925
11001
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
@@ -10971,7 +11047,7 @@ function Ds({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
10971
11047
|
}
|
|
10972
11048
|
//#endregion
|
|
10973
11049
|
//#region src/SelectWordCloud.tsx
|
|
10974
|
-
var
|
|
11050
|
+
var As = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
10975
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);
|
|
10976
11052
|
return /* @__PURE__ */ m("div", {
|
|
10977
11053
|
ref: a,
|
|
@@ -10988,7 +11064,7 @@ var Os = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
10988
11064
|
children: e.text
|
|
10989
11065
|
}, `${e.text}-${t}`))
|
|
10990
11066
|
});
|
|
10991
|
-
}),
|
|
11067
|
+
}), js = [
|
|
10992
11068
|
[
|
|
10993
11069
|
-59.6,
|
|
10994
11070
|
-80,
|
|
@@ -21383,24 +21459,24 @@ var Os = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
21383
21459
|
-27.1,
|
|
21384
21460
|
83.5
|
|
21385
21461
|
]
|
|
21386
|
-
],
|
|
21387
|
-
function
|
|
21388
|
-
let n = e *
|
|
21462
|
+
], Ms = Math.PI / 180;
|
|
21463
|
+
function Ns(e, t) {
|
|
21464
|
+
let n = e * Ms, r = t * Ms;
|
|
21389
21465
|
return [
|
|
21390
21466
|
Math.cos(n) * Math.sin(r),
|
|
21391
21467
|
Math.sin(n),
|
|
21392
21468
|
Math.cos(n) * Math.cos(r)
|
|
21393
21469
|
];
|
|
21394
21470
|
}
|
|
21395
|
-
function
|
|
21396
|
-
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;
|
|
21397
21473
|
return [
|
|
21398
21474
|
o,
|
|
21399
21475
|
t * Math.cos(c) - s * Math.sin(c),
|
|
21400
21476
|
t * Math.sin(c) + s * Math.cos(c)
|
|
21401
21477
|
];
|
|
21402
21478
|
}
|
|
21403
|
-
function
|
|
21479
|
+
function Fs(e, t, n) {
|
|
21404
21480
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
21405
21481
|
r = Math.max(-1, Math.min(1, r));
|
|
21406
21482
|
let i = Math.acos(r);
|
|
@@ -21412,9 +21488,9 @@ function Ns(e, t, n) {
|
|
|
21412
21488
|
e[2] * o + t[2] * s
|
|
21413
21489
|
];
|
|
21414
21490
|
}
|
|
21415
|
-
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) {
|
|
21416
21492
|
var S, C;
|
|
21417
|
-
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({
|
|
21418
21494
|
lng: -O,
|
|
21419
21495
|
lat: r
|
|
21420
21496
|
}), j = u({
|
|
@@ -21473,7 +21549,7 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21473
21549
|
var t, n;
|
|
21474
21550
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, ne(!1), re());
|
|
21475
21551
|
}, W = (D / 2 - 6) * M.current, G = D / 2, K = D / 2, oe = (e) => {
|
|
21476
|
-
let t =
|
|
21552
|
+
let t = Ps(e, A.current.lng, A.current.lat);
|
|
21477
21553
|
return {
|
|
21478
21554
|
x: G + W * t[0],
|
|
21479
21555
|
y: K - W * t[1],
|
|
@@ -21483,25 +21559,25 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21483
21559
|
let e = [];
|
|
21484
21560
|
for (let t = -180; t < 180; t += 30) {
|
|
21485
21561
|
let n = [];
|
|
21486
|
-
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));
|
|
21487
21563
|
e.push(n);
|
|
21488
21564
|
}
|
|
21489
21565
|
for (let t = -60; t <= 60; t += 30) {
|
|
21490
21566
|
let n = [];
|
|
21491
|
-
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));
|
|
21492
21568
|
e.push(n);
|
|
21493
21569
|
}
|
|
21494
21570
|
return e;
|
|
21495
|
-
}, []), ce = l(() =>
|
|
21571
|
+
}, []), ce = l(() => js.map((e) => {
|
|
21496
21572
|
let t = [];
|
|
21497
|
-
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]));
|
|
21498
21574
|
return t;
|
|
21499
21575
|
}), []), q = (e) => ({
|
|
21500
21576
|
x: G + W * e[0],
|
|
21501
21577
|
y: K - W * e[1]
|
|
21502
21578
|
}), le = "", ue = "";
|
|
21503
21579
|
if (g) for (let e of ce) {
|
|
21504
|
-
let t = e.map((e) =>
|
|
21580
|
+
let t = e.map((e) => Ps(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
21505
21581
|
for (let e of t) if (e[2] > 0) {
|
|
21506
21582
|
let t = q(e);
|
|
21507
21583
|
ue += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -21549,7 +21625,7 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21549
21625
|
}
|
|
21550
21626
|
return t;
|
|
21551
21627
|
}, fe = Math.max(1, ...e.map((e) => e.value ?? 0)), pe = e.map((e, t) => {
|
|
21552
|
-
let n = oe(
|
|
21628
|
+
let n = oe(Ns(e.lat, e.lng));
|
|
21553
21629
|
return {
|
|
21554
21630
|
...e,
|
|
21555
21631
|
i: t,
|
|
@@ -21559,20 +21635,20 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21559
21635
|
col: e.color ?? c
|
|
21560
21636
|
};
|
|
21561
21637
|
}), me = z == null ? null : e[z], he = t.map((e, t) => {
|
|
21562
|
-
let n =
|
|
21638
|
+
let n = Ns(e.from.lat, e.from.lng), r = Ns(e.to.lat, e.to.lng), i = "", a = !1;
|
|
21563
21639
|
for (let e = 0; e <= 40; e++) {
|
|
21564
|
-
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([
|
|
21565
21641
|
o[0] * s,
|
|
21566
21642
|
o[1] * s,
|
|
21567
21643
|
o[2] * s
|
|
21568
21644
|
]);
|
|
21569
21645
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
21570
21646
|
}
|
|
21571
|
-
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([
|
|
21572
21648
|
s[0] * l,
|
|
21573
21649
|
s[1] * l,
|
|
21574
21650
|
s[2] * l
|
|
21575
|
-
]), f = me != null && (
|
|
21651
|
+
]), f = me != null && (Is(e.from, me) || Is(e.to, me));
|
|
21576
21652
|
return {
|
|
21577
21653
|
d: i,
|
|
21578
21654
|
col: e.color ?? c,
|
|
@@ -21846,8 +21922,8 @@ var Ps = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
21846
21922
|
});
|
|
21847
21923
|
//#endregion
|
|
21848
21924
|
//#region src/SelectTicker.tsx
|
|
21849
|
-
function
|
|
21850
|
-
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);
|
|
21851
21927
|
o(() => {
|
|
21852
21928
|
var e, n;
|
|
21853
21929
|
let r = a.current;
|
|
@@ -21908,12 +21984,12 @@ function Is({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
21908
21984
|
}
|
|
21909
21985
|
//#endregion
|
|
21910
21986
|
//#region src/SelectPareto.tsx
|
|
21911
|
-
function
|
|
21987
|
+
function zs({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
21912
21988
|
var a;
|
|
21913
21989
|
let { ref: o, width: c } = Y(t), l = Q(), u = s(), [f, p] = d(null), g = {
|
|
21914
|
-
...
|
|
21990
|
+
...zo,
|
|
21915
21991
|
right: 44
|
|
21916
|
-
}, _ = [...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);
|
|
21917
21993
|
return /* @__PURE__ */ h("div", {
|
|
21918
21994
|
...i,
|
|
21919
21995
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -21942,7 +22018,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
21942
22018
|
stopOpacity: .55
|
|
21943
22019
|
})]
|
|
21944
22020
|
}) }),
|
|
21945
|
-
|
|
22021
|
+
Ao(w).map((e, t) => /* @__PURE__ */ h("g", { children: [/* @__PURE__ */ m("line", {
|
|
21946
22022
|
x1: g.left,
|
|
21947
22023
|
x2: c - g.right,
|
|
21948
22024
|
y1: O(e),
|
|
@@ -22006,7 +22082,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22006
22082
|
}, t);
|
|
22007
22083
|
}),
|
|
22008
22084
|
/* @__PURE__ */ m("path", {
|
|
22009
|
-
d:
|
|
22085
|
+
d: No(j),
|
|
22010
22086
|
fill: "none",
|
|
22011
22087
|
stroke: N,
|
|
22012
22088
|
strokeWidth: 2,
|
|
@@ -22034,7 +22110,7 @@ function Ls({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22034
22110
|
}
|
|
22035
22111
|
//#endregion
|
|
22036
22112
|
//#region src/SelectWaffle.tsx
|
|
22037
|
-
var
|
|
22113
|
+
var Bs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
22038
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) => ({
|
|
22039
22115
|
i: t,
|
|
22040
22116
|
frac: e - u[t]
|
|
@@ -22083,7 +22159,7 @@ var Rs = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
22083
22159
|
});
|
|
22084
22160
|
//#endregion
|
|
22085
22161
|
//#region src/SelectPyramid.tsx
|
|
22086
|
-
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 }) {
|
|
22087
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);
|
|
22088
22164
|
return /* @__PURE__ */ h("div", {
|
|
22089
22165
|
...l,
|
|
@@ -22191,7 +22267,7 @@ function zs({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
22191
22267
|
}
|
|
22192
22268
|
//#endregion
|
|
22193
22269
|
//#region src/SelectBump.tsx
|
|
22194
|
-
function
|
|
22270
|
+
function Hs({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
22195
22271
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22196
22272
|
top: 16,
|
|
22197
22273
|
right: 78,
|
|
@@ -22228,7 +22304,7 @@ function Bs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22228
22304
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
22229
22305
|
children: [
|
|
22230
22306
|
/* @__PURE__ */ m("path", {
|
|
22231
|
-
d:
|
|
22307
|
+
d: No(a),
|
|
22232
22308
|
fill: "none",
|
|
22233
22309
|
stroke: i,
|
|
22234
22310
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -22276,7 +22352,7 @@ function Bs({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
22276
22352
|
}
|
|
22277
22353
|
//#endregion
|
|
22278
22354
|
//#region src/SelectParallel.tsx
|
|
22279
|
-
function
|
|
22355
|
+
function Us({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
22280
22356
|
let { ref: o, width: s } = Y(n), c = Q(), [l, u] = d(null), f = {
|
|
22281
22357
|
top: 30,
|
|
22282
22358
|
right: 28,
|
|
@@ -22368,25 +22444,25 @@ function Vs({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
22368
22444
|
}
|
|
22369
22445
|
//#endregion
|
|
22370
22446
|
//#region src/SelectIcicle.tsx
|
|
22371
|
-
function
|
|
22372
|
-
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;
|
|
22373
22449
|
}
|
|
22374
|
-
function
|
|
22375
|
-
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)));
|
|
22376
22452
|
}
|
|
22377
|
-
function
|
|
22378
|
-
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) => {
|
|
22379
22455
|
if (p.push({
|
|
22380
22456
|
node: e,
|
|
22381
22457
|
x0: t,
|
|
22382
22458
|
x1: n,
|
|
22383
22459
|
depth: r,
|
|
22384
22460
|
color: e.color ?? X(i),
|
|
22385
|
-
value:
|
|
22461
|
+
value: Ws(e)
|
|
22386
22462
|
}), e.children && e.children.length) {
|
|
22387
|
-
let a = e.children.reduce((e, t) => e +
|
|
22463
|
+
let a = e.children.reduce((e, t) => e + Ws(t), 0) || 1, o = t;
|
|
22388
22464
|
e.children.forEach((e, s) => {
|
|
22389
|
-
let c = (n - t) *
|
|
22465
|
+
let c = (n - t) * Ws(e) / a;
|
|
22390
22466
|
g(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
22391
22467
|
});
|
|
22392
22468
|
}
|
|
@@ -22447,7 +22523,7 @@ function Ws({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
22447
22523
|
}
|
|
22448
22524
|
//#endregion
|
|
22449
22525
|
//#region src/SelectTree.tsx
|
|
22450
|
-
function
|
|
22526
|
+
function qs({ data: e, height: t = 260, className: n, ...r }) {
|
|
22451
22527
|
let { ref: i, width: a } = Y(t), o = Q(), [s, c] = d(null), l = {
|
|
22452
22528
|
top: 14,
|
|
22453
22529
|
right: 96,
|
|
@@ -22525,7 +22601,7 @@ function Gs({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
22525
22601
|
}
|
|
22526
22602
|
//#endregion
|
|
22527
22603
|
//#region src/SelectVenn.tsx
|
|
22528
|
-
var
|
|
22604
|
+
var Js = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
22529
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]] : [
|
|
22530
22606
|
[o, s - l * .5],
|
|
22531
22607
|
[o - l * .5, s + l * .36],
|
|
@@ -22590,7 +22666,7 @@ var Ks = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22590
22666
|
}, t))
|
|
22591
22667
|
})]
|
|
22592
22668
|
});
|
|
22593
|
-
}),
|
|
22669
|
+
}), Ys = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
22594
22670
|
let o = Q(), [s, c] = d(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
22595
22671
|
d: e,
|
|
22596
22672
|
i: t,
|
|
@@ -22693,7 +22769,7 @@ var Ks = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
22693
22769
|
});
|
|
22694
22770
|
//#endregion
|
|
22695
22771
|
//#region src/SelectNetwork.tsx
|
|
22696
|
-
function
|
|
22772
|
+
function Xs({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
22697
22773
|
let { ref: o, width: s } = Y(n), c = Q(), [u, f] = d(null), p = l(() => {
|
|
22698
22774
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
22699
22775
|
if (!a) return o;
|
|
@@ -22807,7 +22883,7 @@ function Js({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
22807
22883
|
}
|
|
22808
22884
|
//#endregion
|
|
22809
22885
|
//#region src/SelectThemeSwitcher.tsx
|
|
22810
|
-
var
|
|
22886
|
+
var Zs = [
|
|
22811
22887
|
{
|
|
22812
22888
|
value: "light",
|
|
22813
22889
|
label: "Claro",
|
|
@@ -22824,15 +22900,15 @@ var Ys = [
|
|
|
22824
22900
|
icon: /* @__PURE__ */ m(ke, {})
|
|
22825
22901
|
}
|
|
22826
22902
|
];
|
|
22827
|
-
function
|
|
22903
|
+
function Qs(e) {
|
|
22828
22904
|
if (e === "system") {
|
|
22829
22905
|
var t, n;
|
|
22830
22906
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
22831
22907
|
}
|
|
22832
22908
|
return e;
|
|
22833
22909
|
}
|
|
22834
|
-
function
|
|
22835
|
-
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];
|
|
22836
22912
|
return o(() => {
|
|
22837
22913
|
if (!i) return;
|
|
22838
22914
|
let e = (e) => {
|
|
@@ -22843,7 +22919,7 @@ function Zs({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22843
22919
|
...r,
|
|
22844
22920
|
className: `select-themeswitcher${n ? " " + n : ""}`,
|
|
22845
22921
|
ref: s,
|
|
22846
|
-
children: [/* @__PURE__ */ m(
|
|
22922
|
+
children: [/* @__PURE__ */ m(Gi, {
|
|
22847
22923
|
active: i,
|
|
22848
22924
|
onClick: () => a((e) => !e),
|
|
22849
22925
|
children: /* @__PURE__ */ h("span", {
|
|
@@ -22852,7 +22928,7 @@ function Zs({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22852
22928
|
})
|
|
22853
22929
|
}), i && /* @__PURE__ */ m("div", {
|
|
22854
22930
|
className: "select-themeswitcher__popover",
|
|
22855
|
-
children: /* @__PURE__ */ m(
|
|
22931
|
+
children: /* @__PURE__ */ m(Bi, { children: Zs.map((n) => /* @__PURE__ */ m(Vi, {
|
|
22856
22932
|
icon: n.icon,
|
|
22857
22933
|
active: n.value === e,
|
|
22858
22934
|
trailing: n.value === e ? /* @__PURE__ */ m(Ve, {}) : null,
|
|
@@ -22866,8 +22942,8 @@ function Zs({ value: e, onChange: t, className: n, ...r }) {
|
|
|
22866
22942
|
}
|
|
22867
22943
|
//#endregion
|
|
22868
22944
|
//#region src/SelectDetail.tsx
|
|
22869
|
-
var
|
|
22870
|
-
function
|
|
22945
|
+
var ec = n(!1);
|
|
22946
|
+
function tc({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
22871
22947
|
let r = Qt({
|
|
22872
22948
|
selector: ".select-detail",
|
|
22873
22949
|
y: 8,
|
|
@@ -22875,7 +22951,7 @@ function $s({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
22875
22951
|
stagger: .05,
|
|
22876
22952
|
scroll: !0
|
|
22877
22953
|
});
|
|
22878
|
-
return /* @__PURE__ */ m(
|
|
22954
|
+
return /* @__PURE__ */ m(ec.Provider, {
|
|
22879
22955
|
value: n,
|
|
22880
22956
|
children: /* @__PURE__ */ m("div", {
|
|
22881
22957
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}`,
|
|
@@ -22884,8 +22960,8 @@ function $s({ children: e, stacked: t = !1, loading: n = !1 }) {
|
|
|
22884
22960
|
})
|
|
22885
22961
|
});
|
|
22886
22962
|
}
|
|
22887
|
-
var
|
|
22888
|
-
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;
|
|
22889
22965
|
return /* @__PURE__ */ h("div", {
|
|
22890
22966
|
ref: c,
|
|
22891
22967
|
...s,
|
|
@@ -22905,7 +22981,7 @@ var ec = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
22905
22981
|
})
|
|
22906
22982
|
]
|
|
22907
22983
|
});
|
|
22908
|
-
}),
|
|
22984
|
+
}), rc = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", className: i, ...a }, o) {
|
|
22909
22985
|
let s = r === "vertical";
|
|
22910
22986
|
return /* @__PURE__ */ m("ol", {
|
|
22911
22987
|
ref: o,
|
|
@@ -22944,7 +23020,7 @@ var ec = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
22944
23020
|
});
|
|
22945
23021
|
//#endregion
|
|
22946
23022
|
//#region src/SelectSetupGuide.tsx
|
|
22947
|
-
function
|
|
23023
|
+
function ic({ status: e }) {
|
|
22948
23024
|
return /* @__PURE__ */ m("span", {
|
|
22949
23025
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
22950
23026
|
"aria-hidden": "true",
|
|
@@ -22963,13 +23039,13 @@ function nc({ status: e }) {
|
|
|
22963
23039
|
})
|
|
22964
23040
|
});
|
|
22965
23041
|
}
|
|
22966
|
-
var
|
|
23042
|
+
var ac = {
|
|
22967
23043
|
done: "feito",
|
|
22968
23044
|
todo: "a fazer",
|
|
22969
23045
|
next: "próximo passo",
|
|
22970
23046
|
skipped: "pulado",
|
|
22971
23047
|
waiting: "aguardando"
|
|
22972
|
-
},
|
|
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) {
|
|
22973
23049
|
let d = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0;
|
|
22974
23050
|
return /* @__PURE__ */ h("section", {
|
|
22975
23051
|
ref: u,
|
|
@@ -23032,14 +23108,14 @@ var rc = {
|
|
|
23032
23108
|
children: e.steps.map((e) => /* @__PURE__ */ h("li", {
|
|
23033
23109
|
className: `select-setupguide__step is-${e.status}`,
|
|
23034
23110
|
children: [
|
|
23035
|
-
/* @__PURE__ */ m(
|
|
23111
|
+
/* @__PURE__ */ m(ic, { status: e.status }),
|
|
23036
23112
|
/* @__PURE__ */ h("span", {
|
|
23037
23113
|
className: "select-setupguide__text",
|
|
23038
23114
|
children: [/* @__PURE__ */ h("span", {
|
|
23039
23115
|
className: "select-setupguide__steptitle",
|
|
23040
23116
|
children: [e.title, /* @__PURE__ */ h("span", {
|
|
23041
23117
|
className: "select-setupguide__sr",
|
|
23042
|
-
children: [" — ",
|
|
23118
|
+
children: [" — ", ac[e.status]]
|
|
23043
23119
|
})]
|
|
23044
23120
|
}), e.description && /* @__PURE__ */ m("span", {
|
|
23045
23121
|
className: "select-setupguide__stepdesc",
|
|
@@ -23058,7 +23134,7 @@ var rc = {
|
|
|
23058
23134
|
})]
|
|
23059
23135
|
});
|
|
23060
23136
|
});
|
|
23061
|
-
function
|
|
23137
|
+
function sc({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
23062
23138
|
return /* @__PURE__ */ h("div", {
|
|
23063
23139
|
className: "select-setupnext",
|
|
23064
23140
|
children: [
|
|
@@ -23083,37 +23159,37 @@ function ac({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
23083
23159
|
}
|
|
23084
23160
|
//#endregion
|
|
23085
23161
|
//#region src/SelectTour.tsx
|
|
23086
|
-
var
|
|
23087
|
-
function
|
|
23162
|
+
var cc = 6, lc = 12;
|
|
23163
|
+
function uc(e) {
|
|
23088
23164
|
let t = document.querySelector(e);
|
|
23089
23165
|
if (!t) return null;
|
|
23090
23166
|
let n = t.getBoundingClientRect();
|
|
23091
23167
|
return n.width === 0 && n.height === 0 ? null : {
|
|
23092
|
-
top: n.top -
|
|
23093
|
-
left: n.left -
|
|
23168
|
+
top: n.top - cc,
|
|
23169
|
+
left: n.left - cc,
|
|
23094
23170
|
width: n.width + 12,
|
|
23095
23171
|
height: n.height + 12
|
|
23096
23172
|
};
|
|
23097
23173
|
}
|
|
23098
|
-
function
|
|
23174
|
+
function dc(e) {
|
|
23099
23175
|
let t = document.querySelector(e);
|
|
23100
23176
|
if (!t) return !1;
|
|
23101
23177
|
let n = t.getBoundingClientRect();
|
|
23102
23178
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
23103
23179
|
}
|
|
23104
|
-
function
|
|
23105
|
-
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);
|
|
23106
23182
|
o(() => {
|
|
23107
23183
|
e && p(0);
|
|
23108
23184
|
}, [e]);
|
|
23109
23185
|
let C = s[f], w = f === s.length - 1, T = i(() => {
|
|
23110
23186
|
if (!C) return;
|
|
23111
|
-
let e =
|
|
23187
|
+
let e = uc(C.target);
|
|
23112
23188
|
v(e);
|
|
23113
23189
|
let t = x.current;
|
|
23114
23190
|
if (!e || !t) return;
|
|
23115
|
-
let n = t.offsetWidth, r = t.offsetHeight, i = window.innerWidth, a = window.innerHeight, o = e.left + e.width +
|
|
23116
|
-
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({
|
|
23117
23193
|
top: s,
|
|
23118
23194
|
left: o
|
|
23119
23195
|
});
|
|
@@ -23215,7 +23291,7 @@ function uc({ open: e, steps: t, onClose: n, labels: r = {}, theme: a = "light"
|
|
|
23215
23291
|
}
|
|
23216
23292
|
//#endregion
|
|
23217
23293
|
//#region src/SelectPlanCard.tsx
|
|
23218
|
-
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) {
|
|
23219
23295
|
return /* @__PURE__ */ h("div", {
|
|
23220
23296
|
ref: d,
|
|
23221
23297
|
...u,
|
|
@@ -23270,7 +23346,7 @@ var dc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23270
23346
|
})]
|
|
23271
23347
|
})]
|
|
23272
23348
|
});
|
|
23273
|
-
}),
|
|
23349
|
+
}), mc = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, className: a, ...o }, s) {
|
|
23274
23350
|
return /* @__PURE__ */ h("div", {
|
|
23275
23351
|
ref: s,
|
|
23276
23352
|
...o,
|
|
@@ -23306,7 +23382,7 @@ var dc = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
23306
23382
|
]
|
|
23307
23383
|
});
|
|
23308
23384
|
});
|
|
23309
|
-
function
|
|
23385
|
+
function hc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClick: a }) {
|
|
23310
23386
|
let o = /* @__PURE__ */ h(p, { children: [
|
|
23311
23387
|
e && /* @__PURE__ */ m("span", {
|
|
23312
23388
|
className: "select-listrow__media",
|
|
@@ -23340,7 +23416,7 @@ function pc({ media: e, title: t, secondary: n, action: r, muted: i = !1, onClic
|
|
|
23340
23416
|
}
|
|
23341
23417
|
//#endregion
|
|
23342
23418
|
//#region src/SelectThumbnail.tsx
|
|
23343
|
-
var
|
|
23419
|
+
var gc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a) {
|
|
23344
23420
|
let [s, c] = d(!1);
|
|
23345
23421
|
return o(() => c(!1), [e]), /* @__PURE__ */ m("span", {
|
|
23346
23422
|
ref: a,
|
|
@@ -23365,8 +23441,8 @@ var mc = r(function({ src: e, alt: t = "", size: n = 40, className: r, ...i }, a
|
|
|
23365
23441
|
});
|
|
23366
23442
|
//#endregion
|
|
23367
23443
|
//#region src/SelectImageZoomModal.tsx
|
|
23368
|
-
function
|
|
23369
|
-
return /* @__PURE__ */ m(
|
|
23444
|
+
function _c({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
23445
|
+
return /* @__PURE__ */ m(ta, {
|
|
23370
23446
|
open: e,
|
|
23371
23447
|
onClose: t,
|
|
23372
23448
|
title: i,
|
|
@@ -23384,7 +23460,7 @@ function hc({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
23384
23460
|
}
|
|
23385
23461
|
//#endregion
|
|
23386
23462
|
//#region src/SelectZoomThumbnail.tsx
|
|
23387
|
-
function
|
|
23463
|
+
function vc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
23388
23464
|
let [i, a] = d(!1);
|
|
23389
23465
|
return e ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("button", {
|
|
23390
23466
|
type: "button",
|
|
@@ -23397,25 +23473,25 @@ function gc({ src: e, alt: t = "", size: n = 40, title: r }) {
|
|
|
23397
23473
|
cursor: "zoom-in",
|
|
23398
23474
|
display: "inline-flex"
|
|
23399
23475
|
},
|
|
23400
|
-
children: /* @__PURE__ */ m(
|
|
23476
|
+
children: /* @__PURE__ */ m(gc, {
|
|
23401
23477
|
src: e,
|
|
23402
23478
|
size: n,
|
|
23403
23479
|
alt: t
|
|
23404
23480
|
})
|
|
23405
|
-
}), i && /* @__PURE__ */ m(
|
|
23481
|
+
}), i && /* @__PURE__ */ m(_c, {
|
|
23406
23482
|
open: !0,
|
|
23407
23483
|
onClose: () => a(!1),
|
|
23408
23484
|
src: e,
|
|
23409
23485
|
alt: t,
|
|
23410
23486
|
title: r ?? t
|
|
23411
|
-
})] }) : /* @__PURE__ */ m(
|
|
23487
|
+
})] }) : /* @__PURE__ */ m(gc, {
|
|
23412
23488
|
size: n,
|
|
23413
23489
|
alt: t
|
|
23414
23490
|
});
|
|
23415
23491
|
}
|
|
23416
23492
|
//#endregion
|
|
23417
23493
|
//#region src/SelectMediaCell.tsx
|
|
23418
|
-
var
|
|
23494
|
+
var yc = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
23419
23495
|
return /* @__PURE__ */ h("span", {
|
|
23420
23496
|
ref: a,
|
|
23421
23497
|
...i,
|
|
@@ -23437,14 +23513,14 @@ var _c = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
23437
23513
|
});
|
|
23438
23514
|
//#endregion
|
|
23439
23515
|
//#region src/SelectOfflineModal.tsx
|
|
23440
|
-
function
|
|
23516
|
+
function bc() {
|
|
23441
23517
|
let [e, t] = d(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
23442
23518
|
return o(() => {
|
|
23443
23519
|
let e = () => t(!1), n = () => t(!0);
|
|
23444
23520
|
return window.addEventListener("online", e), window.addEventListener("offline", n), () => {
|
|
23445
23521
|
window.removeEventListener("online", e), window.removeEventListener("offline", n);
|
|
23446
23522
|
};
|
|
23447
|
-
}, []), /* @__PURE__ */ m(
|
|
23523
|
+
}, []), /* @__PURE__ */ m(ta, {
|
|
23448
23524
|
open: e,
|
|
23449
23525
|
onClose: () => {},
|
|
23450
23526
|
showClose: !1,
|
|
@@ -23460,7 +23536,7 @@ function vc() {
|
|
|
23460
23536
|
}
|
|
23461
23537
|
//#endregion
|
|
23462
23538
|
//#region src/SelectKeyValueEditor.tsx
|
|
23463
|
-
function
|
|
23539
|
+
function xc(e) {
|
|
23464
23540
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
23465
23541
|
name: String(e.name ?? e.key ?? ""),
|
|
23466
23542
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -23469,8 +23545,8 @@ function yc(e) {
|
|
|
23469
23545
|
value: t == null ? "" : String(t)
|
|
23470
23546
|
})) : [];
|
|
23471
23547
|
}
|
|
23472
|
-
var
|
|
23473
|
-
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 ? {
|
|
23474
23550
|
...t,
|
|
23475
23551
|
...n
|
|
23476
23552
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), g = () => t([...d, {
|
|
@@ -23534,7 +23610,7 @@ var bc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23534
23610
|
})
|
|
23535
23611
|
]
|
|
23536
23612
|
});
|
|
23537
|
-
}),
|
|
23613
|
+
}), Cc = (e) => String(e).padStart(2, "0"), wc = {
|
|
23538
23614
|
"en-US": {
|
|
23539
23615
|
weekdays: [
|
|
23540
23616
|
"Su",
|
|
@@ -23593,34 +23669,34 @@ var bc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23593
23669
|
to: "Até",
|
|
23594
23670
|
cancel: "Cancelar",
|
|
23595
23671
|
apply: "Aplicar",
|
|
23596
|
-
formatDate: (e) => `${
|
|
23672
|
+
formatDate: (e) => `${Cc(e.getDate())} / ${Cc(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
23597
23673
|
}
|
|
23598
|
-
},
|
|
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) => {
|
|
23599
23675
|
let t = /* @__PURE__ */ new Date();
|
|
23600
23676
|
return {
|
|
23601
23677
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
23602
23678
|
to: t
|
|
23603
23679
|
};
|
|
23604
|
-
},
|
|
23680
|
+
}, jc = [
|
|
23605
23681
|
{
|
|
23606
23682
|
id: "15m",
|
|
23607
23683
|
label: "Last 15 minutes",
|
|
23608
|
-
range: () =>
|
|
23684
|
+
range: () => Ac(15)
|
|
23609
23685
|
},
|
|
23610
23686
|
{
|
|
23611
23687
|
id: "1h",
|
|
23612
23688
|
label: "Last 1 hour",
|
|
23613
|
-
range: () =>
|
|
23689
|
+
range: () => Ac(60)
|
|
23614
23690
|
},
|
|
23615
23691
|
{
|
|
23616
23692
|
id: "3h",
|
|
23617
23693
|
label: "Last 3 hours",
|
|
23618
|
-
range: () =>
|
|
23694
|
+
range: () => Ac(180)
|
|
23619
23695
|
},
|
|
23620
23696
|
{
|
|
23621
23697
|
id: "24h",
|
|
23622
23698
|
label: "Last 24 hours",
|
|
23623
|
-
range: () =>
|
|
23699
|
+
range: () => Ac(1440)
|
|
23624
23700
|
},
|
|
23625
23701
|
{
|
|
23626
23702
|
id: "3d",
|
|
@@ -23636,78 +23712,78 @@ var bc = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
23636
23712
|
id: "all",
|
|
23637
23713
|
label: "All",
|
|
23638
23714
|
range: () => ({
|
|
23639
|
-
from:
|
|
23640
|
-
to:
|
|
23715
|
+
from: Tc(/* @__PURE__ */ new Date()),
|
|
23716
|
+
to: Tc(/* @__PURE__ */ new Date())
|
|
23641
23717
|
})
|
|
23642
23718
|
}
|
|
23643
|
-
],
|
|
23644
|
-
let t =
|
|
23719
|
+
], Mc = (e) => {
|
|
23720
|
+
let t = Tc(/* @__PURE__ */ new Date());
|
|
23645
23721
|
return {
|
|
23646
|
-
from:
|
|
23722
|
+
from: Dc(t, -e),
|
|
23647
23723
|
to: t
|
|
23648
23724
|
};
|
|
23649
|
-
},
|
|
23650
|
-
let t = Tc(
|
|
23725
|
+
}, Nc = (e) => {
|
|
23726
|
+
let t = Dc(Tc(/* @__PURE__ */ new Date()), -e);
|
|
23651
23727
|
return {
|
|
23652
23728
|
from: t,
|
|
23653
23729
|
to: t
|
|
23654
23730
|
};
|
|
23655
|
-
},
|
|
23731
|
+
}, Pc = [
|
|
23656
23732
|
{
|
|
23657
23733
|
id: "today",
|
|
23658
23734
|
label: "Hoje",
|
|
23659
|
-
range: () =>
|
|
23735
|
+
range: () => Mc(0)
|
|
23660
23736
|
},
|
|
23661
23737
|
{
|
|
23662
23738
|
id: "yesterday",
|
|
23663
23739
|
label: "Ontem",
|
|
23664
|
-
range: () =>
|
|
23740
|
+
range: () => Nc(1)
|
|
23665
23741
|
},
|
|
23666
23742
|
{
|
|
23667
23743
|
id: "7d",
|
|
23668
23744
|
label: "Últimos 7 dias",
|
|
23669
|
-
range: () =>
|
|
23745
|
+
range: () => Mc(6)
|
|
23670
23746
|
},
|
|
23671
23747
|
{
|
|
23672
23748
|
id: "10d",
|
|
23673
23749
|
label: "Últimos 10 dias",
|
|
23674
|
-
range: () =>
|
|
23750
|
+
range: () => Mc(9)
|
|
23675
23751
|
},
|
|
23676
23752
|
{
|
|
23677
23753
|
id: "15d",
|
|
23678
23754
|
label: "Últimos 15 dias",
|
|
23679
|
-
range: () =>
|
|
23755
|
+
range: () => Mc(14)
|
|
23680
23756
|
},
|
|
23681
23757
|
{
|
|
23682
23758
|
id: "20d",
|
|
23683
23759
|
label: "Últimos 20 dias",
|
|
23684
|
-
range: () =>
|
|
23760
|
+
range: () => Mc(19)
|
|
23685
23761
|
},
|
|
23686
23762
|
{
|
|
23687
23763
|
id: "30d",
|
|
23688
23764
|
label: "Últimos 30 dias",
|
|
23689
|
-
range: () =>
|
|
23765
|
+
range: () => Mc(29)
|
|
23690
23766
|
},
|
|
23691
23767
|
{
|
|
23692
23768
|
id: "90d",
|
|
23693
23769
|
label: "Últimos 90 dias",
|
|
23694
|
-
range: () =>
|
|
23770
|
+
range: () => Mc(89)
|
|
23695
23771
|
}
|
|
23696
23772
|
];
|
|
23697
|
-
function
|
|
23773
|
+
function Fc(e) {
|
|
23698
23774
|
if (!e) return "—";
|
|
23699
23775
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
23700
23776
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
23701
23777
|
}
|
|
23702
|
-
var
|
|
23703
|
-
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 ?? {
|
|
23704
23780
|
from: g,
|
|
23705
23781
|
to: g
|
|
23706
|
-
}), [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", {
|
|
23707
23783
|
className: "select-datepicker__placeholder",
|
|
23708
23784
|
children: "— / — / ——"
|
|
23709
23785
|
}), O = (e) => {
|
|
23710
|
-
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) ? {
|
|
23711
23787
|
from: e,
|
|
23712
23788
|
to: null
|
|
23713
23789
|
} : {
|
|
@@ -23717,7 +23793,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23717
23793
|
}, k = (e) => {
|
|
23718
23794
|
if (e.disabled || !e.range) return;
|
|
23719
23795
|
let t = e.range();
|
|
23720
|
-
y(t), C(e.id), t.from && x(
|
|
23796
|
+
y(t), C(e.id), t.from && x(Ec(t.from));
|
|
23721
23797
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
23722
23798
|
return /* @__PURE__ */ m("div", {
|
|
23723
23799
|
ref: f,
|
|
@@ -23763,7 +23839,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23763
23839
|
}),
|
|
23764
23840
|
o && /* @__PURE__ */ m("span", {
|
|
23765
23841
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
23766
|
-
children:
|
|
23842
|
+
children: Fc(v[e])
|
|
23767
23843
|
})
|
|
23768
23844
|
]
|
|
23769
23845
|
}, e))
|
|
@@ -23775,7 +23851,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23775
23851
|
type: "button",
|
|
23776
23852
|
className: "select-datepicker__nav",
|
|
23777
23853
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
23778
|
-
onClick: () => x((e) =>
|
|
23854
|
+
onClick: () => x((e) => Oc(e, -1)),
|
|
23779
23855
|
children: /* @__PURE__ */ m(U, {})
|
|
23780
23856
|
}),
|
|
23781
23857
|
/* @__PURE__ */ h("span", {
|
|
@@ -23790,7 +23866,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23790
23866
|
type: "button",
|
|
23791
23867
|
className: "select-datepicker__nav",
|
|
23792
23868
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
23793
|
-
onClick: () => x((e) =>
|
|
23869
|
+
onClick: () => x((e) => Oc(e, 1)),
|
|
23794
23870
|
children: /* @__PURE__ */ m(ae, {})
|
|
23795
23871
|
})
|
|
23796
23872
|
]
|
|
@@ -23802,7 +23878,7 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23802
23878
|
className: "select-datepicker__weekday",
|
|
23803
23879
|
children: e
|
|
23804
23880
|
}, t)), T.map((e) => {
|
|
23805
|
-
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" : "");
|
|
23806
23882
|
return /* @__PURE__ */ m("div", {
|
|
23807
23883
|
className: s,
|
|
23808
23884
|
children: /* @__PURE__ */ m("button", {
|
|
@@ -23833,17 +23909,17 @@ var Pc = r(function({ value: e, presets: t = kc, onApply: n, onCancel: r, accent
|
|
|
23833
23909
|
})]
|
|
23834
23910
|
})
|
|
23835
23911
|
});
|
|
23836
|
-
}),
|
|
23837
|
-
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) {
|
|
23838
23914
|
for (let r of t) {
|
|
23839
23915
|
var n;
|
|
23840
23916
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
23841
|
-
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;
|
|
23842
23918
|
}
|
|
23843
|
-
return
|
|
23919
|
+
return Rc(e.start, e.end) ? zc(e.start) : `${zc(e.start)} – ${zc(e.end)}`;
|
|
23844
23920
|
}
|
|
23845
|
-
function
|
|
23846
|
-
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());
|
|
23847
23923
|
return /* @__PURE__ */ m(on, {
|
|
23848
23924
|
active: c,
|
|
23849
23925
|
onClose: () => l(!1),
|
|
@@ -23857,9 +23933,9 @@ function zc({ value: e, onChange: t, presets: n = Mc, maxDate: r, placement: i =
|
|
|
23857
23933
|
icon: /* @__PURE__ */ m(rt, {}),
|
|
23858
23934
|
trailingIcon: /* @__PURE__ */ m(W, {}),
|
|
23859
23935
|
onClick: () => l((e) => !e),
|
|
23860
|
-
children:
|
|
23936
|
+
children: Bc(e, n)
|
|
23861
23937
|
}),
|
|
23862
|
-
children: /* @__PURE__ */ m(
|
|
23938
|
+
children: /* @__PURE__ */ m(Ic, {
|
|
23863
23939
|
embedded: !0,
|
|
23864
23940
|
locale: "pt-BR",
|
|
23865
23941
|
showTime: !1,
|
|
@@ -23872,8 +23948,8 @@ function zc({ value: e, onChange: t, presets: n = Mc, maxDate: r, placement: i =
|
|
|
23872
23948
|
onCancel: () => l(!1),
|
|
23873
23949
|
onApply: (e) => {
|
|
23874
23950
|
e.from && t({
|
|
23875
|
-
start:
|
|
23876
|
-
end:
|
|
23951
|
+
start: Lc(e.from),
|
|
23952
|
+
end: Lc(e.to ?? e.from)
|
|
23877
23953
|
}), l(!1);
|
|
23878
23954
|
}
|
|
23879
23955
|
})
|
|
@@ -23881,7 +23957,7 @@ function zc({ value: e, onChange: t, presets: n = Mc, maxDate: r, placement: i =
|
|
|
23881
23957
|
}
|
|
23882
23958
|
//#endregion
|
|
23883
23959
|
//#region src/SelectNumberField.tsx
|
|
23884
|
-
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) {
|
|
23885
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) => {
|
|
23886
23962
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
23887
23963
|
if (o && k(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -23955,7 +24031,7 @@ var Bc = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
23955
24031
|
});
|
|
23956
24032
|
//#endregion
|
|
23957
24033
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
23958
|
-
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 }) {
|
|
23959
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) => {
|
|
23960
24036
|
let i = n + r;
|
|
23961
24037
|
if (i < 0 || i >= e.length) return;
|
|
@@ -24050,9 +24126,9 @@ function Vc({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
24050
24126
|
}
|
|
24051
24127
|
//#endregion
|
|
24052
24128
|
//#region src/SelectBuilderLayout.tsx
|
|
24053
|
-
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 }) {
|
|
24054
24130
|
let d = v();
|
|
24055
|
-
return /* @__PURE__ */ m(
|
|
24131
|
+
return /* @__PURE__ */ m(ri, {
|
|
24056
24132
|
title: e,
|
|
24057
24133
|
subtitle: t,
|
|
24058
24134
|
backAction: {
|
|
@@ -24090,7 +24166,7 @@ function Hc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24090
24166
|
}
|
|
24091
24167
|
//#endregion
|
|
24092
24168
|
//#region src/SelectBuilderWorkspace.tsx
|
|
24093
|
-
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" }) {
|
|
24094
24170
|
var w;
|
|
24095
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) => {
|
|
24096
24172
|
f === void 0 && D(e), g == null || g(e);
|
|
@@ -24175,7 +24251,7 @@ function Uc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24175
24251
|
"aria-label": "Seções de configuração",
|
|
24176
24252
|
children: [_ && /* @__PURE__ */ m("div", {
|
|
24177
24253
|
className: "select-bwork__search",
|
|
24178
|
-
children: /* @__PURE__ */ m(
|
|
24254
|
+
children: /* @__PURE__ */ m(Ci, {
|
|
24179
24255
|
value: O,
|
|
24180
24256
|
onChange: k,
|
|
24181
24257
|
placeholder: "Buscar ajuste…"
|
|
@@ -24195,7 +24271,7 @@ function Uc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24195
24271
|
children: [
|
|
24196
24272
|
e.icon && /* @__PURE__ */ m("span", {
|
|
24197
24273
|
className: "select-bwork__navicon",
|
|
24198
|
-
children: /* @__PURE__ */ m(
|
|
24274
|
+
children: /* @__PURE__ */ m(pi, {
|
|
24199
24275
|
size: "1rem",
|
|
24200
24276
|
children: e.icon
|
|
24201
24277
|
})
|
|
@@ -24250,10 +24326,10 @@ function Uc({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
24250
24326
|
}
|
|
24251
24327
|
//#endregion
|
|
24252
24328
|
//#region src/SelectFlowCanvas.tsx
|
|
24253
|
-
var
|
|
24254
|
-
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 }) {
|
|
24255
24331
|
let _ = s().replace(/:/g, ""), [v, y] = d(c), b = o ?? v, x = (e) => {
|
|
24256
|
-
let t =
|
|
24332
|
+
let t = Kc(Math.min(f, Math.max(u, e)));
|
|
24257
24333
|
o === void 0 && y(t), l == null || l(t);
|
|
24258
24334
|
}, S = `select-flow-arrow-${_}`, C = `select-flow-arrow-on-${_}`;
|
|
24259
24335
|
return /* @__PURE__ */ h("div", {
|
|
@@ -24369,7 +24445,7 @@ function Gc({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
24369
24445
|
})]
|
|
24370
24446
|
});
|
|
24371
24447
|
}
|
|
24372
|
-
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 }) {
|
|
24373
24449
|
let x = `${p ? " is-selected" : v ? " is-invalid" : g ? " is-on" : ""}${_ ? " is-muted" : ""}`, S = {
|
|
24374
24450
|
left: e,
|
|
24375
24451
|
top: t,
|
|
@@ -24445,7 +24521,7 @@ function Kc({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
24445
24521
|
})]
|
|
24446
24522
|
});
|
|
24447
24523
|
}
|
|
24448
|
-
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" }) {
|
|
24449
24525
|
return /* @__PURE__ */ h("div", {
|
|
24450
24526
|
className: "select-flowpage",
|
|
24451
24527
|
children: [
|
|
@@ -24507,7 +24583,7 @@ function qc({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
24507
24583
|
}
|
|
24508
24584
|
//#endregion
|
|
24509
24585
|
//#region src/SelectSwitchField.tsx
|
|
24510
|
-
var
|
|
24586
|
+
var Xc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
24511
24587
|
return /* @__PURE__ */ h("div", {
|
|
24512
24588
|
ref: c,
|
|
24513
24589
|
...s,
|
|
@@ -24535,8 +24611,8 @@ var Jc = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
24535
24611
|
children: i
|
|
24536
24612
|
})]
|
|
24537
24613
|
});
|
|
24538
|
-
}),
|
|
24539
|
-
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 }) {
|
|
24540
24616
|
return /* @__PURE__ */ m(Tt, {
|
|
24541
24617
|
label: e,
|
|
24542
24618
|
value: t,
|
|
@@ -24554,7 +24630,7 @@ function Xc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24554
24630
|
prefix: /* @__PURE__ */ m("input", {
|
|
24555
24631
|
type: "color",
|
|
24556
24632
|
className: "select-color-swatch",
|
|
24557
|
-
value:
|
|
24633
|
+
value: Zc(t) ? t : "#000000",
|
|
24558
24634
|
onChange: (e) => n(e.target.value),
|
|
24559
24635
|
disabled: r,
|
|
24560
24636
|
"aria-label": e ? `${e} — escolher cor` : "Escolher cor"
|
|
@@ -24563,13 +24639,13 @@ function Xc({ label: e, value: t, onChange: n, disabled: r = !1, hint: i, error:
|
|
|
24563
24639
|
}
|
|
24564
24640
|
//#endregion
|
|
24565
24641
|
//#region src/SelectImageField.tsx
|
|
24566
|
-
function
|
|
24642
|
+
function $c(e) {
|
|
24567
24643
|
return new Promise((t, n) => {
|
|
24568
24644
|
let r = new FileReader();
|
|
24569
24645
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
24570
24646
|
});
|
|
24571
24647
|
}
|
|
24572
|
-
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) {
|
|
24573
24649
|
let [f, p] = d([]), [g, _] = d(null), v = t ? [t] : [], y = async (e) => {
|
|
24574
24650
|
let t = e[0];
|
|
24575
24651
|
if (!t) {
|
|
@@ -24577,7 +24653,7 @@ var Qc = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24577
24653
|
return;
|
|
24578
24654
|
}
|
|
24579
24655
|
if (_(null), !s) {
|
|
24580
|
-
n(await
|
|
24656
|
+
n(await $c(t)), p([]);
|
|
24581
24657
|
return;
|
|
24582
24658
|
}
|
|
24583
24659
|
p([t]);
|
|
@@ -24609,7 +24685,7 @@ var Qc = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24609
24685
|
children: g
|
|
24610
24686
|
})]
|
|
24611
24687
|
});
|
|
24612
|
-
}),
|
|
24688
|
+
}), tl = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
24613
24689
|
let [o, s] = d(() => new Set(n)), c = (e) => s((n) => {
|
|
24614
24690
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
24615
24691
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -24655,6 +24731,6 @@ var Qc = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
24655
24731
|
});
|
|
24656
24732
|
});
|
|
24657
24733
|
//#endregion
|
|
24658
|
-
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 };
|
|
24659
24735
|
|
|
24660
24736
|
//# sourceMappingURL=index.js.map
|