@selectwin/kit 0.1.183 → 0.1.184
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/SelectConversation.d.ts +8 -1
- package/dist/SelectDnsRecords.d.ts +23 -0
- package/dist/SelectFactStrip.d.ts +19 -0
- package/dist/SelectModal.d.ts +9 -1
- package/dist/SelectStatusPage.d.ts +26 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +866 -706
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9780,34 +9780,47 @@ function gc({ children: e, time: t }) {
|
|
|
9780
9780
|
}) : null]
|
|
9781
9781
|
});
|
|
9782
9782
|
}
|
|
9783
|
-
function _c({ direction: e, author: t, label: n, attachment: r, meta: i, metaTone: a, children: o }) {
|
|
9784
|
-
let
|
|
9785
|
-
|
|
9783
|
+
function _c({ direction: e, author: t, label: n, attachment: r, meta: i, metaTone: a, children: o, avatar: s, time: c }) {
|
|
9784
|
+
let l = o != null && o !== "", u = /* @__PURE__ */ v(g, { children: [
|
|
9785
|
+
t || c ? /* @__PURE__ */ v("span", {
|
|
9786
|
+
className: "select-convo__author",
|
|
9787
|
+
children: [t, c ? /* @__PURE__ */ _("span", {
|
|
9788
|
+
className: "select-convo__time",
|
|
9789
|
+
children: c
|
|
9790
|
+
}) : null]
|
|
9791
|
+
}) : null,
|
|
9792
|
+
l || n ? /* @__PURE__ */ v("div", {
|
|
9793
|
+
className: "select-convo__bubble",
|
|
9794
|
+
children: [n ? /* @__PURE__ */ _("span", {
|
|
9795
|
+
className: "select-convo__label",
|
|
9796
|
+
children: n
|
|
9797
|
+
}) : null, l ? /* @__PURE__ */ _("div", {
|
|
9798
|
+
className: "select-convo__text",
|
|
9799
|
+
children: o
|
|
9800
|
+
}) : null]
|
|
9801
|
+
}) : null,
|
|
9802
|
+
r ? /* @__PURE__ */ _("div", {
|
|
9803
|
+
className: "select-convo__attachment",
|
|
9804
|
+
children: r
|
|
9805
|
+
}) : null,
|
|
9806
|
+
i ? /* @__PURE__ */ _("span", {
|
|
9807
|
+
className: dc("select-convo__meta", a && `select-convo__meta--${a}`),
|
|
9808
|
+
children: i
|
|
9809
|
+
}) : null
|
|
9810
|
+
] });
|
|
9811
|
+
return s ? /* @__PURE__ */ v("div", {
|
|
9812
|
+
className: dc("select-convo__msg", `select-convo__msg--${e}`, "select-convo__msg--avatar"),
|
|
9813
|
+
children: [/* @__PURE__ */ _("span", {
|
|
9814
|
+
className: "select-convo__avatar",
|
|
9815
|
+
"aria-hidden": "true",
|
|
9816
|
+
children: s
|
|
9817
|
+
}), /* @__PURE__ */ _("div", {
|
|
9818
|
+
className: "select-convo__stack",
|
|
9819
|
+
children: u
|
|
9820
|
+
})]
|
|
9821
|
+
}) : /* @__PURE__ */ _("div", {
|
|
9786
9822
|
className: dc("select-convo__msg", `select-convo__msg--${e}`),
|
|
9787
|
-
children:
|
|
9788
|
-
t ? /* @__PURE__ */ _("span", {
|
|
9789
|
-
className: "select-convo__author",
|
|
9790
|
-
children: t
|
|
9791
|
-
}) : null,
|
|
9792
|
-
c ? /* @__PURE__ */ v("div", {
|
|
9793
|
-
className: "select-convo__bubble",
|
|
9794
|
-
children: [n ? /* @__PURE__ */ _("span", {
|
|
9795
|
-
className: "select-convo__label",
|
|
9796
|
-
children: n
|
|
9797
|
-
}) : null, s ? /* @__PURE__ */ _("div", {
|
|
9798
|
-
className: "select-convo__text",
|
|
9799
|
-
children: o
|
|
9800
|
-
}) : null]
|
|
9801
|
-
}) : null,
|
|
9802
|
-
r ? /* @__PURE__ */ _("div", {
|
|
9803
|
-
className: "select-convo__attachment",
|
|
9804
|
-
children: r
|
|
9805
|
-
}) : null,
|
|
9806
|
-
i ? /* @__PURE__ */ _("span", {
|
|
9807
|
-
className: dc("select-convo__meta", a && `select-convo__meta--${a}`),
|
|
9808
|
-
children: i
|
|
9809
|
-
}) : null
|
|
9810
|
-
]
|
|
9823
|
+
children: u
|
|
9811
9824
|
});
|
|
9812
9825
|
}
|
|
9813
9826
|
//#endregion
|
|
@@ -10028,19 +10041,19 @@ function Tc({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
10028
10041
|
//#endregion
|
|
10029
10042
|
//#region src/SelectModal.tsx
|
|
10030
10043
|
var Ec = 220;
|
|
10031
|
-
function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i,
|
|
10032
|
-
let [
|
|
10044
|
+
function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, badge: a, children: o, footer: c, aside: l, size: u = "md", showClose: d = !0, noise: f = !0, dividedHeader: m = !1, backdrop: h = "dim", theme: b = "light", placement: x = "center", headerAction: S, flush: C = !1 }) {
|
|
10045
|
+
let [w, T] = p(e), [E, D] = p(!1);
|
|
10033
10046
|
if (s(() => {
|
|
10034
|
-
if (e)
|
|
10035
|
-
else if (
|
|
10036
|
-
|
|
10047
|
+
if (e) T(!0), D(!1);
|
|
10048
|
+
else if (w) {
|
|
10049
|
+
D(!0);
|
|
10037
10050
|
let e = setTimeout(() => {
|
|
10038
|
-
|
|
10051
|
+
T(!1), D(!1);
|
|
10039
10052
|
}, Ec);
|
|
10040
10053
|
return () => clearTimeout(e);
|
|
10041
10054
|
}
|
|
10042
|
-
}, [e,
|
|
10043
|
-
if (!
|
|
10055
|
+
}, [e, w]), s(() => {
|
|
10056
|
+
if (!w) return;
|
|
10044
10057
|
let e = (e) => {
|
|
10045
10058
|
e.key === "Escape" && t();
|
|
10046
10059
|
};
|
|
@@ -10049,32 +10062,38 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10049
10062
|
return document.body.style.overflow = "hidden", () => {
|
|
10050
10063
|
document.removeEventListener("keydown", e), document.body.style.overflow = n;
|
|
10051
10064
|
};
|
|
10052
|
-
}, [
|
|
10053
|
-
let
|
|
10065
|
+
}, [w, t]), !w) return null;
|
|
10066
|
+
let O = a ? /* @__PURE__ */ v("p", {
|
|
10067
|
+
className: "select-modal__subtitle select-modal__subtitle--badge",
|
|
10068
|
+
children: [a, i ? /* @__PURE__ */ _("span", { children: i }) : null]
|
|
10069
|
+
}) : i && /* @__PURE__ */ _("p", {
|
|
10070
|
+
className: "select-modal__subtitle",
|
|
10071
|
+
children: i
|
|
10072
|
+
}), k = d && /* @__PURE__ */ _("button", {
|
|
10054
10073
|
type: "button",
|
|
10055
10074
|
className: "select-modal__close",
|
|
10056
10075
|
"aria-label": "Fechar",
|
|
10057
10076
|
onClick: t,
|
|
10058
10077
|
children: /* @__PURE__ */ _(de, {})
|
|
10059
|
-
}),
|
|
10078
|
+
}), A = `select-modal__header${m ? " select-modal__header--divided" : ""}`;
|
|
10060
10079
|
return y(/* @__PURE__ */ _("div", {
|
|
10061
|
-
className: `select select-modal__overlay${
|
|
10062
|
-
"data-theme":
|
|
10080
|
+
className: `select select-modal__overlay${x === "side" ? " select-modal__overlay--side" : ""}${f ? " select-modal__overlay--noise" : ""}${h === "blur" ? " select-modal__overlay--blur" : ""}${E ? " select-modal__overlay--closing" : ""}`,
|
|
10081
|
+
"data-theme": b,
|
|
10063
10082
|
onMouseDown: t,
|
|
10064
10083
|
children: /* @__PURE__ */ _("div", {
|
|
10065
|
-
className: `select-modal select-modal--${
|
|
10084
|
+
className: `select-modal select-modal--${u}${x === "side" ? " select-modal--side" : ""}${C ? " select-modal--flush" : ""}${l ? " select-modal--split" : ""}${E ? " select-modal--closing" : ""}`,
|
|
10066
10085
|
role: "dialog",
|
|
10067
10086
|
"aria-modal": "true",
|
|
10068
10087
|
onMouseDown: (e) => e.stopPropagation(),
|
|
10069
|
-
children:
|
|
10088
|
+
children: l ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("aside", {
|
|
10070
10089
|
className: "select-modal__aside",
|
|
10071
|
-
children:
|
|
10090
|
+
children: l
|
|
10072
10091
|
}), /* @__PURE__ */ v("div", {
|
|
10073
10092
|
className: "select-modal__content",
|
|
10074
10093
|
children: [
|
|
10075
|
-
|
|
10076
|
-
(n || r || i) && /* @__PURE__ */ v("div", {
|
|
10077
|
-
className:
|
|
10094
|
+
k,
|
|
10095
|
+
(n || r || i || a) && /* @__PURE__ */ v("div", {
|
|
10096
|
+
className: A,
|
|
10078
10097
|
children: [
|
|
10079
10098
|
n && /* @__PURE__ */ _("span", {
|
|
10080
10099
|
className: "select-modal__eyebrow",
|
|
@@ -10084,21 +10103,18 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10084
10103
|
className: "select-modal__title",
|
|
10085
10104
|
children: r
|
|
10086
10105
|
}),
|
|
10087
|
-
|
|
10088
|
-
className: "select-modal__subtitle",
|
|
10089
|
-
children: i
|
|
10090
|
-
})
|
|
10106
|
+
O
|
|
10091
10107
|
]
|
|
10092
10108
|
}),
|
|
10093
10109
|
/* @__PURE__ */ _("div", {
|
|
10094
10110
|
className: "select-modal__body",
|
|
10095
|
-
children: /* @__PURE__ */ _(Si, { children:
|
|
10111
|
+
children: /* @__PURE__ */ _(Si, { children: o })
|
|
10096
10112
|
})
|
|
10097
10113
|
]
|
|
10098
10114
|
})] }) : /* @__PURE__ */ v(g, { children: [
|
|
10099
|
-
|
|
10100
|
-
(n || r || i) && (
|
|
10101
|
-
className: `${
|
|
10115
|
+
k,
|
|
10116
|
+
(n || r || i || a) && (S ? /* @__PURE__ */ v("div", {
|
|
10117
|
+
className: `${A} select-modal__header--action`,
|
|
10102
10118
|
children: [/* @__PURE__ */ v("div", {
|
|
10103
10119
|
className: "select-modal__headtext",
|
|
10104
10120
|
children: [
|
|
@@ -10110,17 +10126,14 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10110
10126
|
className: "select-modal__title",
|
|
10111
10127
|
children: r
|
|
10112
10128
|
}),
|
|
10113
|
-
|
|
10114
|
-
className: "select-modal__subtitle",
|
|
10115
|
-
children: i
|
|
10116
|
-
})
|
|
10129
|
+
O
|
|
10117
10130
|
]
|
|
10118
10131
|
}), /* @__PURE__ */ _("div", {
|
|
10119
10132
|
className: "select-modal__headaction",
|
|
10120
|
-
children:
|
|
10133
|
+
children: S
|
|
10121
10134
|
})]
|
|
10122
10135
|
}) : /* @__PURE__ */ v("div", {
|
|
10123
|
-
className:
|
|
10136
|
+
className: A,
|
|
10124
10137
|
children: [
|
|
10125
10138
|
n && /* @__PURE__ */ _("span", {
|
|
10126
10139
|
className: "select-modal__eyebrow",
|
|
@@ -10130,27 +10143,174 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10130
10143
|
className: "select-modal__title",
|
|
10131
10144
|
children: r
|
|
10132
10145
|
}),
|
|
10133
|
-
|
|
10134
|
-
className: "select-modal__subtitle",
|
|
10135
|
-
children: i
|
|
10136
|
-
})
|
|
10146
|
+
O
|
|
10137
10147
|
]
|
|
10138
10148
|
})),
|
|
10139
|
-
|
|
10149
|
+
o && /* @__PURE__ */ _("div", {
|
|
10140
10150
|
className: "select-modal__body",
|
|
10141
|
-
children: /* @__PURE__ */ _(Si, { children:
|
|
10151
|
+
children: /* @__PURE__ */ _(Si, { children: o })
|
|
10142
10152
|
}),
|
|
10143
|
-
|
|
10153
|
+
c && /* @__PURE__ */ _("div", {
|
|
10144
10154
|
className: "select-modal__footer",
|
|
10145
|
-
children:
|
|
10155
|
+
children: c
|
|
10146
10156
|
})
|
|
10147
10157
|
] })
|
|
10148
10158
|
})
|
|
10149
10159
|
}), document.body);
|
|
10150
10160
|
}
|
|
10151
10161
|
//#endregion
|
|
10162
|
+
//#region src/SelectFactStrip.tsx
|
|
10163
|
+
var Oc = {
|
|
10164
|
+
done: "feito",
|
|
10165
|
+
todo: "falta fazer",
|
|
10166
|
+
wait: "esperando",
|
|
10167
|
+
critical: "precisa de atenção"
|
|
10168
|
+
}, kc = r(function({ items: e, className: t, ...n }, r) {
|
|
10169
|
+
return /* @__PURE__ */ _("dl", {
|
|
10170
|
+
ref: r,
|
|
10171
|
+
...n,
|
|
10172
|
+
className: `select-factstrip${t ? " " + t : ""}`,
|
|
10173
|
+
children: e.map((e, t) => /* @__PURE__ */ v("div", {
|
|
10174
|
+
className: `select-factstrip__item${e.state ? ` select-factstrip__item--step select-factstrip__item--${e.state}` : ""}`,
|
|
10175
|
+
children: [e.state && /* @__PURE__ */ _("span", {
|
|
10176
|
+
className: "select-factstrip__mark",
|
|
10177
|
+
"aria-hidden": "true",
|
|
10178
|
+
children: e.state === "done" ? /* @__PURE__ */ _(Ue, {}) : e.state === "wait" ? /* @__PURE__ */ _("span", { className: "select-factstrip__ring" }) : "!"
|
|
10179
|
+
}), /* @__PURE__ */ v("div", {
|
|
10180
|
+
className: "select-factstrip__text",
|
|
10181
|
+
children: [/* @__PURE__ */ v("dt", {
|
|
10182
|
+
className: "select-factstrip__label",
|
|
10183
|
+
children: [e.label, e.state && /* @__PURE__ */ v("span", {
|
|
10184
|
+
className: "select-factstrip__sr",
|
|
10185
|
+
children: [
|
|
10186
|
+
" (",
|
|
10187
|
+
Oc[e.state],
|
|
10188
|
+
")"
|
|
10189
|
+
]
|
|
10190
|
+
})]
|
|
10191
|
+
}), e.value != null && e.value !== "" && /* @__PURE__ */ _("dd", {
|
|
10192
|
+
className: `select-factstrip__value${e.tone ? ` select-factstrip__value--${e.tone}` : ""}`,
|
|
10193
|
+
children: e.value
|
|
10194
|
+
})]
|
|
10195
|
+
})]
|
|
10196
|
+
}, t))
|
|
10197
|
+
});
|
|
10198
|
+
}), Ac = r(function({ records: e, labels: t, className: n, ...r }, i) {
|
|
10199
|
+
let a = (t == null ? void 0 : t.type) ?? "Tipo", o = (t == null ? void 0 : t.name) ?? "Nome", s = (t == null ? void 0 : t.value) ?? "Valor";
|
|
10200
|
+
return /* @__PURE__ */ v("div", {
|
|
10201
|
+
ref: i,
|
|
10202
|
+
role: "table",
|
|
10203
|
+
"aria-label": "Registros DNS",
|
|
10204
|
+
...r,
|
|
10205
|
+
className: `select-dnsrecs${n ? " " + n : ""}`,
|
|
10206
|
+
children: [/* @__PURE__ */ v("div", {
|
|
10207
|
+
className: "select-dnsrecs__head",
|
|
10208
|
+
role: "row",
|
|
10209
|
+
children: [
|
|
10210
|
+
/* @__PURE__ */ _("span", {
|
|
10211
|
+
role: "columnheader",
|
|
10212
|
+
children: a
|
|
10213
|
+
}),
|
|
10214
|
+
/* @__PURE__ */ _("span", {
|
|
10215
|
+
role: "columnheader",
|
|
10216
|
+
children: o
|
|
10217
|
+
}),
|
|
10218
|
+
/* @__PURE__ */ _("span", {
|
|
10219
|
+
role: "columnheader",
|
|
10220
|
+
children: s
|
|
10221
|
+
})
|
|
10222
|
+
]
|
|
10223
|
+
}), e.map((e, t) => /* @__PURE__ */ v("div", {
|
|
10224
|
+
className: "select-dnsrecs__row",
|
|
10225
|
+
role: "row",
|
|
10226
|
+
children: [
|
|
10227
|
+
/* @__PURE__ */ v("span", {
|
|
10228
|
+
className: "select-dnsrecs__cell select-dnsrecs__cell--type",
|
|
10229
|
+
role: "cell",
|
|
10230
|
+
children: [/* @__PURE__ */ _("span", {
|
|
10231
|
+
className: "select-dnsrecs__type",
|
|
10232
|
+
children: e.type
|
|
10233
|
+
}), e.tag != null && /* @__PURE__ */ _("span", {
|
|
10234
|
+
className: "select-dnsrecs__tag",
|
|
10235
|
+
children: e.tag
|
|
10236
|
+
})]
|
|
10237
|
+
}),
|
|
10238
|
+
/* @__PURE__ */ _("span", {
|
|
10239
|
+
className: "select-dnsrecs__cell",
|
|
10240
|
+
role: "cell",
|
|
10241
|
+
"data-label": o,
|
|
10242
|
+
children: /* @__PURE__ */ _(Io, {
|
|
10243
|
+
value: e.name,
|
|
10244
|
+
reveal: "always",
|
|
10245
|
+
label: `Copiar o nome do ${e.type}`
|
|
10246
|
+
})
|
|
10247
|
+
}),
|
|
10248
|
+
/* @__PURE__ */ _("span", {
|
|
10249
|
+
className: "select-dnsrecs__cell",
|
|
10250
|
+
role: "cell",
|
|
10251
|
+
"data-label": s,
|
|
10252
|
+
children: /* @__PURE__ */ _(Io, {
|
|
10253
|
+
value: e.value,
|
|
10254
|
+
reveal: "always",
|
|
10255
|
+
label: `Copiar o valor do ${e.type}`
|
|
10256
|
+
})
|
|
10257
|
+
})
|
|
10258
|
+
]
|
|
10259
|
+
}, `${e.type}-${e.name}-${t}`))]
|
|
10260
|
+
});
|
|
10261
|
+
}), jc = r(function({ badge: e, tone: t = "neutral", title: n, description: r, actions: i, brand: a, meta: o, className: s, ...c }, l) {
|
|
10262
|
+
let u = (o ?? []).filter((e) => e.value != null && e.value !== "");
|
|
10263
|
+
return /* @__PURE__ */ _("div", {
|
|
10264
|
+
ref: l,
|
|
10265
|
+
...c,
|
|
10266
|
+
className: `select-statepage${s ? " " + s : ""}`,
|
|
10267
|
+
children: /* @__PURE__ */ v("div", {
|
|
10268
|
+
className: "select-statepage__shell",
|
|
10269
|
+
children: [a != null && /* @__PURE__ */ _("div", {
|
|
10270
|
+
className: "select-statepage__brand",
|
|
10271
|
+
children: a
|
|
10272
|
+
}), /* @__PURE__ */ _(qa, {
|
|
10273
|
+
className: "select-statepage__card",
|
|
10274
|
+
footer: u.length > 0 ? /* @__PURE__ */ _("dl", {
|
|
10275
|
+
className: "select-statepage__meta",
|
|
10276
|
+
children: u.map((e, t) => /* @__PURE__ */ v("div", {
|
|
10277
|
+
className: "select-statepage__metarow",
|
|
10278
|
+
children: [/* @__PURE__ */ _("dt", { children: e.label }), /* @__PURE__ */ _("dd", { children: e.copy ? /* @__PURE__ */ _(Io, {
|
|
10279
|
+
value: e.copy,
|
|
10280
|
+
reveal: "always",
|
|
10281
|
+
label: "Copiar",
|
|
10282
|
+
children: e.value
|
|
10283
|
+
}) : e.value })]
|
|
10284
|
+
}, t))
|
|
10285
|
+
}) : void 0,
|
|
10286
|
+
children: /* @__PURE__ */ v("div", {
|
|
10287
|
+
className: "select-statepage__body",
|
|
10288
|
+
children: [
|
|
10289
|
+
/* @__PURE__ */ _("div", { children: /* @__PURE__ */ _(Vr, {
|
|
10290
|
+
tone: t,
|
|
10291
|
+
children: e
|
|
10292
|
+
}) }),
|
|
10293
|
+
/* @__PURE__ */ _("h1", {
|
|
10294
|
+
className: "select-statepage__title",
|
|
10295
|
+
children: n
|
|
10296
|
+
}),
|
|
10297
|
+
r != null && /* @__PURE__ */ _("p", {
|
|
10298
|
+
className: "select-statepage__lead",
|
|
10299
|
+
children: r
|
|
10300
|
+
}),
|
|
10301
|
+
i != null && /* @__PURE__ */ _("div", {
|
|
10302
|
+
className: "select-statepage__actions",
|
|
10303
|
+
children: i
|
|
10304
|
+
})
|
|
10305
|
+
]
|
|
10306
|
+
})
|
|
10307
|
+
})]
|
|
10308
|
+
})
|
|
10309
|
+
});
|
|
10310
|
+
});
|
|
10311
|
+
//#endregion
|
|
10152
10312
|
//#region src/SelectRowActions.tsx
|
|
10153
|
-
function
|
|
10313
|
+
function Mc({ actions: e, label: t = "Ações" }) {
|
|
10154
10314
|
let [n, r] = p(!1);
|
|
10155
10315
|
return /* @__PURE__ */ _(mr, {
|
|
10156
10316
|
active: n,
|
|
@@ -10172,7 +10332,7 @@ function Oc({ actions: e, label: t = "Ações" }) {
|
|
|
10172
10332
|
}
|
|
10173
10333
|
//#endregion
|
|
10174
10334
|
//#region src/SelectConfirmModal.tsx
|
|
10175
|
-
function
|
|
10335
|
+
function Nc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmLabel: a = "Confirmar", cancelLabel: o = "Cancelar", destructive: s = !1, loading: c = !1, theme: l }) {
|
|
10176
10336
|
return /* @__PURE__ */ _(Dc, {
|
|
10177
10337
|
open: e,
|
|
10178
10338
|
onClose: t,
|
|
@@ -10205,7 +10365,7 @@ function kc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
10205
10365
|
}
|
|
10206
10366
|
//#endregion
|
|
10207
10367
|
//#region src/SelectFormModal.tsx
|
|
10208
|
-
function
|
|
10368
|
+
function Pc({ 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 }) {
|
|
10209
10369
|
return /* @__PURE__ */ v(Dc, {
|
|
10210
10370
|
open: e,
|
|
10211
10371
|
onClose: t,
|
|
@@ -10248,34 +10408,34 @@ function Ac({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
10248
10408
|
}
|
|
10249
10409
|
//#endregion
|
|
10250
10410
|
//#region src/SelectDataTable.tsx
|
|
10251
|
-
var
|
|
10411
|
+
var Fc = "9.5rem", Ic = {
|
|
10252
10412
|
minWidth: "9.5rem",
|
|
10253
10413
|
grow: 2
|
|
10254
10414
|
};
|
|
10255
|
-
function
|
|
10415
|
+
function Lc(e) {
|
|
10256
10416
|
return [e.wrap ? "select-table__td--wrap" : "", e.tone ? `select-table__td--${e.tone}` : ""].filter(Boolean).join(" ") || void 0;
|
|
10257
10417
|
}
|
|
10258
|
-
var
|
|
10259
|
-
function
|
|
10418
|
+
var Rc = "select-datatable:hidden-cols:";
|
|
10419
|
+
function zc(e) {
|
|
10260
10420
|
try {
|
|
10261
|
-
let t = localStorage.getItem(
|
|
10421
|
+
let t = localStorage.getItem(Rc + e), n = t ? JSON.parse(t) : null;
|
|
10262
10422
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
10263
10423
|
} catch {
|
|
10264
10424
|
return [];
|
|
10265
10425
|
}
|
|
10266
10426
|
}
|
|
10267
|
-
function
|
|
10427
|
+
function Bc(e, t) {
|
|
10268
10428
|
try {
|
|
10269
|
-
t.length === 0 ? localStorage.removeItem(
|
|
10429
|
+
t.length === 0 ? localStorage.removeItem(Rc + e) : localStorage.setItem(Rc + e, JSON.stringify(t));
|
|
10270
10430
|
} catch {}
|
|
10271
10431
|
}
|
|
10272
|
-
function
|
|
10432
|
+
function Vc(e) {
|
|
10273
10433
|
return e.hideable ?? !!e.title;
|
|
10274
10434
|
}
|
|
10275
|
-
var
|
|
10276
|
-
function
|
|
10435
|
+
var Hc = "select-datatable:col-widths:";
|
|
10436
|
+
function Uc(e) {
|
|
10277
10437
|
try {
|
|
10278
|
-
let t = localStorage.getItem(
|
|
10438
|
+
let t = localStorage.getItem(Hc + e), n = t ? JSON.parse(t) : null;
|
|
10279
10439
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
10280
10440
|
let r = {};
|
|
10281
10441
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -10284,16 +10444,16 @@ function zc(e) {
|
|
|
10284
10444
|
return {};
|
|
10285
10445
|
}
|
|
10286
10446
|
}
|
|
10287
|
-
function
|
|
10447
|
+
function Wc(e, t) {
|
|
10288
10448
|
try {
|
|
10289
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
10449
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(Hc + e) : localStorage.setItem(Hc + e, JSON.stringify(t));
|
|
10290
10450
|
} catch {}
|
|
10291
10451
|
}
|
|
10292
|
-
var
|
|
10293
|
-
function
|
|
10452
|
+
var Gc = "select-datatable:page-size:";
|
|
10453
|
+
function Kc(e, t, n) {
|
|
10294
10454
|
let [r, i] = p(() => {
|
|
10295
10455
|
try {
|
|
10296
|
-
let r = Number(localStorage.getItem(
|
|
10456
|
+
let r = Number(localStorage.getItem(Gc + e));
|
|
10297
10457
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
10298
10458
|
} catch {
|
|
10299
10459
|
return t;
|
|
@@ -10302,25 +10462,25 @@ function Hc(e, t, n) {
|
|
|
10302
10462
|
return [r, (t) => {
|
|
10303
10463
|
i(t);
|
|
10304
10464
|
try {
|
|
10305
|
-
localStorage.setItem(
|
|
10465
|
+
localStorage.setItem(Gc + e, String(t));
|
|
10306
10466
|
} catch {}
|
|
10307
10467
|
}];
|
|
10308
10468
|
}
|
|
10309
|
-
function
|
|
10469
|
+
function qc(e, t, n) {
|
|
10310
10470
|
let r = e == null || e === "", i = t == null || t === "";
|
|
10311
10471
|
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", {
|
|
10312
10472
|
numeric: !0,
|
|
10313
10473
|
sensitivity: "base"
|
|
10314
10474
|
});
|
|
10315
10475
|
}
|
|
10316
|
-
function
|
|
10317
|
-
let [T, E] = p(() => m ?
|
|
10476
|
+
function Jc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pagination: a, onRowClick: o, title: s, help: c, description: l, action: u, filters: f, columnsKey: m, getChildren: h, defaultExpanded: g, compactRow: y, compactQuery: b = "(max-width: 40rem)", onCompactRowClick: x, listRow: S, footer: C, flush: w = !1 }) {
|
|
10477
|
+
let [T, E] = p(() => m ? zc(m) : []), [D, O] = p(!1), k = zn(y && !S ? b : void 0) && y != null, A = S != null || k, j = S ?? y, M = S != null || e.some((e) => e.wrap), [N, P] = p(() => m ? Uc(m) : {}), F = d(() => new Set(T), [T]), I = e.filter(Vc), L = I.length > 0 && I.every((e) => F.has(e.key)), R = (e) => !L && F.has(e.key) && Vc(e), z = e.filter((e) => !R(e)), B = I.filter((e) => !R(e)), [V, ee] = p(null), [H, U] = p(() => /* @__PURE__ */ new Set()), te = (e) => ((g == null ? void 0 : g(e)) ?? !1) !== H.has(n(e)), ne = (e) => U((t) => {
|
|
10318
10478
|
let r = new Set(t), i = n(e);
|
|
10319
10479
|
return r.delete(i) || r.add(i), r;
|
|
10320
10480
|
}), re = (e) => {
|
|
10321
10481
|
E((t) => {
|
|
10322
10482
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
10323
|
-
return m &&
|
|
10483
|
+
return m && Bc(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
10324
10484
|
});
|
|
10325
10485
|
}, W = (e) => {
|
|
10326
10486
|
ee((t) => {
|
|
@@ -10337,7 +10497,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10337
10497
|
let e = ie == null ? void 0 : ie.sortValue;
|
|
10338
10498
|
if (!V || !e) return (e) => e;
|
|
10339
10499
|
let t = V.dir === "asc" ? 1 : -1;
|
|
10340
|
-
return (n) => [...n].sort((n, r) =>
|
|
10500
|
+
return (n) => [...n].sort((n, r) => qc(e(n), e(r), t));
|
|
10341
10501
|
}, [V, ie]), K = d(() => G(t), [t, G]), q = (e) => (h == null ? void 0 : h(e)) ?? [], J = !!h && t.some((e) => q(e).length > 0), ae = A ? [{
|
|
10342
10502
|
label: "",
|
|
10343
10503
|
grow: 1
|
|
@@ -10356,10 +10516,10 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10356
10516
|
let n = z[e];
|
|
10357
10517
|
n && P((e) => {
|
|
10358
10518
|
let r = { ...e };
|
|
10359
|
-
return t ? r[n.key] = t : delete r[n.key], m &&
|
|
10519
|
+
return t ? r[n.key] = t : delete r[n.key], m && Wc(m, r), r;
|
|
10360
10520
|
});
|
|
10361
10521
|
}, se = () => {
|
|
10362
|
-
P({}), m &&
|
|
10522
|
+
P({}), m && Wc(m, {});
|
|
10363
10523
|
}, ce = Object.keys(N).length > 0, le = !r && i ? /* @__PURE__ */ _(jo, {
|
|
10364
10524
|
icon: i.icon,
|
|
10365
10525
|
title: i.heading,
|
|
@@ -10447,7 +10607,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10447
10607
|
children: z.map((t, n) => /* @__PURE__ */ _(Ao, {
|
|
10448
10608
|
align: t.align,
|
|
10449
10609
|
width: t.width,
|
|
10450
|
-
className:
|
|
10610
|
+
className: Lc(t),
|
|
10451
10611
|
disclosure: J && n === 0 ? "none" : void 0,
|
|
10452
10612
|
children: t.render(e)
|
|
10453
10613
|
}, n))
|
|
@@ -10459,7 +10619,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10459
10619
|
children: z.map((t, n) => /* @__PURE__ */ _(Ao, {
|
|
10460
10620
|
align: t.align,
|
|
10461
10621
|
width: t.width,
|
|
10462
|
-
className:
|
|
10622
|
+
className: Lc(t),
|
|
10463
10623
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
10464
10624
|
children: t.render(e)
|
|
10465
10625
|
}, n))
|
|
@@ -10469,7 +10629,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10469
10629
|
children: z.map((e, n) => /* @__PURE__ */ _(Ao, {
|
|
10470
10630
|
align: e.align,
|
|
10471
10631
|
width: e.width,
|
|
10472
|
-
className:
|
|
10632
|
+
className: Lc(e),
|
|
10473
10633
|
children: e.render(t)
|
|
10474
10634
|
}, n))
|
|
10475
10635
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
@@ -10479,7 +10639,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10479
10639
|
}
|
|
10480
10640
|
//#endregion
|
|
10481
10641
|
//#region src/SelectAddCard.tsx
|
|
10482
|
-
var
|
|
10642
|
+
var Yc = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
10483
10643
|
return /* @__PURE__ */ v("button", {
|
|
10484
10644
|
ref: o,
|
|
10485
10645
|
...a,
|
|
@@ -10505,7 +10665,7 @@ var Gc = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
10505
10665
|
});
|
|
10506
10666
|
//#endregion
|
|
10507
10667
|
//#region src/SelectCardGrid.tsx
|
|
10508
|
-
function
|
|
10668
|
+
function Xc({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount: i = 6, empty: a, pagination: o, create: s, minCardWidth: c = "16rem", skeletonCover: l = !1, title: u, help: d, description: f, action: p, filters: m, tools: h }) {
|
|
10509
10669
|
let g = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = go({
|
|
10510
10670
|
title: u,
|
|
10511
10671
|
description: f,
|
|
@@ -10561,7 +10721,7 @@ function Kc({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
10561
10721
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ _("div", {
|
|
10562
10722
|
className: "select-cardgrid__item",
|
|
10563
10723
|
children: n(e)
|
|
10564
|
-
}, t(e))), !r && s && /* @__PURE__ */ _(
|
|
10724
|
+
}, t(e))), !r && s && /* @__PURE__ */ _(Yc, {
|
|
10565
10725
|
label: s.label,
|
|
10566
10726
|
description: s.description,
|
|
10567
10727
|
onClick: s.onAction,
|
|
@@ -10574,7 +10734,7 @@ function Kc({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
10574
10734
|
}
|
|
10575
10735
|
//#endregion
|
|
10576
10736
|
//#region src/SelectRecordCard.tsx
|
|
10577
|
-
var
|
|
10737
|
+
var Zc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, facts: a, tags: o, status: s, meta: c, to: l, accent: u = !1, cover: d, coverFallback: f, preview: p, className: m, ...h }, g) {
|
|
10578
10738
|
let y = s != null || c != null, x = ga(l);
|
|
10579
10739
|
return /* @__PURE__ */ v("div", {
|
|
10580
10740
|
ref: g,
|
|
@@ -10589,7 +10749,7 @@ var qc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10589
10749
|
className: "select-rcard__preview",
|
|
10590
10750
|
"aria-hidden": "true",
|
|
10591
10751
|
children: p
|
|
10592
|
-
}) : null : /* @__PURE__ */ _(
|
|
10752
|
+
}) : null : /* @__PURE__ */ _($c, {
|
|
10593
10753
|
src: d,
|
|
10594
10754
|
fallback: f
|
|
10595
10755
|
}),
|
|
@@ -10629,7 +10789,7 @@ var qc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10629
10789
|
}),
|
|
10630
10790
|
a && a.length > 0 && /* @__PURE__ */ _("div", {
|
|
10631
10791
|
className: "select-rcard__body",
|
|
10632
|
-
children: /* @__PURE__ */ _(
|
|
10792
|
+
children: /* @__PURE__ */ _(Qc, { items: a })
|
|
10633
10793
|
}),
|
|
10634
10794
|
o && /* @__PURE__ */ _("div", {
|
|
10635
10795
|
className: "select-rcard__tags",
|
|
@@ -10653,7 +10813,7 @@ var qc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10653
10813
|
]
|
|
10654
10814
|
});
|
|
10655
10815
|
});
|
|
10656
|
-
function
|
|
10816
|
+
function Qc({ items: e }) {
|
|
10657
10817
|
return e.length ? /* @__PURE__ */ _("ul", {
|
|
10658
10818
|
className: "select-facts",
|
|
10659
10819
|
children: e.map((e, t) => /* @__PURE__ */ v("li", {
|
|
@@ -10669,7 +10829,7 @@ function Jc({ items: e }) {
|
|
|
10669
10829
|
}, e.key ?? t))
|
|
10670
10830
|
}) : null;
|
|
10671
10831
|
}
|
|
10672
|
-
function
|
|
10832
|
+
function $c({ src: e, fallback: t }) {
|
|
10673
10833
|
let [n, r] = p(!1);
|
|
10674
10834
|
return s(() => r(!1), [e]), /* @__PURE__ */ _("span", {
|
|
10675
10835
|
className: "select-rcard__cover",
|
|
@@ -10685,7 +10845,7 @@ function Yc({ src: e, fallback: t }) {
|
|
|
10685
10845
|
})
|
|
10686
10846
|
});
|
|
10687
10847
|
}
|
|
10688
|
-
var
|
|
10848
|
+
var el = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i, ...a }, o) {
|
|
10689
10849
|
let s = t ? {
|
|
10690
10850
|
...i,
|
|
10691
10851
|
"--select-rcard-thumb-accent": t
|
|
@@ -10708,13 +10868,13 @@ var Xc = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
10708
10868
|
children: [/* @__PURE__ */ _("span", { className: "select-rcard__thumbcol" }), /* @__PURE__ */ _("span", { className: "select-rcard__thumbcol" })]
|
|
10709
10869
|
})]
|
|
10710
10870
|
});
|
|
10711
|
-
}),
|
|
10871
|
+
}), tl = r(function({ dragging: e = !1, ghost: t = !1, className: n, ...r }, i) {
|
|
10712
10872
|
return /* @__PURE__ */ _("div", {
|
|
10713
10873
|
ref: i,
|
|
10714
10874
|
...r,
|
|
10715
10875
|
className: `select-sortitem${e && !t ? " is-dragging" : ""}${t ? " is-ghost" : ""}${n ? " " + n : ""}`
|
|
10716
10876
|
});
|
|
10717
|
-
}),
|
|
10877
|
+
}), nl = r(function({ dragging: e = !1, variant: t = "inline", label: n = "Arrastar para reordenar", className: r, ...i }, a) {
|
|
10718
10878
|
return /* @__PURE__ */ _("button", {
|
|
10719
10879
|
ref: a,
|
|
10720
10880
|
type: "button",
|
|
@@ -10725,7 +10885,7 @@ var Xc = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
10725
10885
|
children: /* @__PURE__ */ _(rn, {})
|
|
10726
10886
|
});
|
|
10727
10887
|
});
|
|
10728
|
-
function
|
|
10888
|
+
function rl({ children: e }) {
|
|
10729
10889
|
return /* @__PURE__ */ v("span", {
|
|
10730
10890
|
className: "select-dragpreview",
|
|
10731
10891
|
children: [/* @__PURE__ */ _(rn, {}), e]
|
|
@@ -10733,20 +10893,20 @@ function $c({ children: e }) {
|
|
|
10733
10893
|
}
|
|
10734
10894
|
//#endregion
|
|
10735
10895
|
//#region src/SelectTokenTextarea.tsx
|
|
10736
|
-
var
|
|
10737
|
-
function
|
|
10896
|
+
var il = /\{\{?\s*([a-zA-Z_][a-zA-Z0-9_.[\]]*)\s*\}?\}/g, al = "data-select-sentinel";
|
|
10897
|
+
function ol(e, t, n) {
|
|
10738
10898
|
let r = document.createElement("span");
|
|
10739
10899
|
return r.className = "select-token", r.setAttribute("contenteditable", "false"), r.dataset.token = t, r.dataset.raw = e, r.textContent = n(t), r;
|
|
10740
10900
|
}
|
|
10741
|
-
function
|
|
10901
|
+
function sl(e, t, n) {
|
|
10742
10902
|
let r = [], i = new RegExp(t.source, t.flags.includes("g") ? t.flags : t.flags + "g"), a = 0;
|
|
10743
10903
|
for (let t of e.matchAll(i)) {
|
|
10744
10904
|
let i = t.index ?? 0;
|
|
10745
|
-
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(
|
|
10905
|
+
i > a && r.push(document.createTextNode(e.slice(a, i))), r.push(ol(t[0], t[1] ?? "", n)), a = i + t[0].length;
|
|
10746
10906
|
}
|
|
10747
10907
|
return a < e.length && r.push(document.createTextNode(e.slice(a))), r;
|
|
10748
10908
|
}
|
|
10749
|
-
function
|
|
10909
|
+
function cl(e) {
|
|
10750
10910
|
let t = "", n = (e) => {
|
|
10751
10911
|
e.childNodes.forEach((e) => {
|
|
10752
10912
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
@@ -10759,7 +10919,7 @@ function il(e) {
|
|
|
10759
10919
|
return;
|
|
10760
10920
|
}
|
|
10761
10921
|
if (e.tagName === "BR") {
|
|
10762
|
-
e.hasAttribute(
|
|
10922
|
+
e.hasAttribute(al) || (t += "\n");
|
|
10763
10923
|
return;
|
|
10764
10924
|
}
|
|
10765
10925
|
(e.tagName === "DIV" || e.tagName === "P") && t && !t.endsWith("\n") && (t += "\n"), n(e);
|
|
@@ -10768,15 +10928,15 @@ function il(e) {
|
|
|
10768
10928
|
};
|
|
10769
10929
|
return n(e), t.replace(//g, "");
|
|
10770
10930
|
}
|
|
10771
|
-
var
|
|
10931
|
+
var ll = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i = il, labelAction: o, help: d, hint: p, error: m, placeholder: h, rows: g = 4, disabled: y = !1, onBlur: b, size: x = "md", className: S }, C) {
|
|
10772
10932
|
let w = c(), T = f(null), E = f(null), D = f(null), O = f(r);
|
|
10773
10933
|
O.current = r;
|
|
10774
10934
|
let k = a((e) => {
|
|
10775
10935
|
let t = T.current;
|
|
10776
10936
|
if (!t) return;
|
|
10777
|
-
t.replaceChildren(...
|
|
10937
|
+
t.replaceChildren(...sl(e, i, O.current));
|
|
10778
10938
|
let n = document.createElement("br");
|
|
10779
|
-
n.setAttribute(
|
|
10939
|
+
n.setAttribute(al, ""), t.appendChild(n), E.current = e;
|
|
10780
10940
|
}, [i]);
|
|
10781
10941
|
u(() => {
|
|
10782
10942
|
t !== E.current && k(t);
|
|
@@ -10789,11 +10949,11 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10789
10949
|
let A = () => {
|
|
10790
10950
|
let e = T.current;
|
|
10791
10951
|
if (!e) return;
|
|
10792
|
-
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(
|
|
10952
|
+
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(al))) {
|
|
10793
10953
|
let t = document.createElement("br");
|
|
10794
|
-
t.setAttribute(
|
|
10954
|
+
t.setAttribute(al, ""), e.appendChild(t);
|
|
10795
10955
|
}
|
|
10796
|
-
let t =
|
|
10956
|
+
let t = cl(e);
|
|
10797
10957
|
E.current = t, n(t);
|
|
10798
10958
|
}, j = () => {
|
|
10799
10959
|
let e = window.getSelection(), t = T.current;
|
|
@@ -10827,7 +10987,7 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10827
10987
|
l(C, () => ({
|
|
10828
10988
|
insertToken: (e) => {
|
|
10829
10989
|
var t, n;
|
|
10830
|
-
M([
|
|
10990
|
+
M([ol(`{${e}}`, e, O.current)], D.current), N(), window.setTimeout(N, 0), (t = (n = window).requestAnimationFrame) == null || t.call(n, () => N());
|
|
10831
10991
|
},
|
|
10832
10992
|
focus: N
|
|
10833
10993
|
}));
|
|
@@ -10842,12 +11002,12 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10842
11002
|
let t = e.clipboardData.getData("text/plain");
|
|
10843
11003
|
if (!t) return;
|
|
10844
11004
|
let n = window.getSelection();
|
|
10845
|
-
M(
|
|
11005
|
+
M(sl(t.replace(/\r\n?/g, "\n"), i, O.current), n && n.rangeCount ? n.getRangeAt(0) : null);
|
|
10846
11006
|
}, I = (e, t) => {
|
|
10847
11007
|
let n = window.getSelection();
|
|
10848
11008
|
if (!n || !n.rangeCount || n.isCollapsed) return;
|
|
10849
11009
|
let r = n.getRangeAt(0), i = document.createElement("div");
|
|
10850
|
-
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain",
|
|
11010
|
+
i.appendChild(r.cloneContents()), e.preventDefault(), e.clipboardData.setData("text/plain", cl(i)), t && (r.deleteContents(), A());
|
|
10851
11011
|
}, L = m ? `${w}-err` : p ? `${w}-hint` : void 0;
|
|
10852
11012
|
return /* @__PURE__ */ v("div", {
|
|
10853
11013
|
className: `select-field${x === "sm" ? " select-field--sm" : ""}${S ? " " + S : ""}`,
|
|
@@ -10900,18 +11060,18 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10900
11060
|
});
|
|
10901
11061
|
//#endregion
|
|
10902
11062
|
//#region src/SelectChannelPreview.tsx
|
|
10903
|
-
function
|
|
11063
|
+
function ul({ children: e }) {
|
|
10904
11064
|
return /* @__PURE__ */ _("div", {
|
|
10905
11065
|
className: "select-previewstage",
|
|
10906
11066
|
children: e
|
|
10907
11067
|
});
|
|
10908
11068
|
}
|
|
10909
|
-
function
|
|
11069
|
+
function dl(e) {
|
|
10910
11070
|
var t, n;
|
|
10911
11071
|
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
10912
11072
|
return (r.length > 1 ? (((t = r[0]) == null ? void 0 : t[0]) ?? "") + (((n = r[1]) == null ? void 0 : n[0]) ?? "") : e.slice(0, 2)).toUpperCase();
|
|
10913
11073
|
}
|
|
10914
|
-
function
|
|
11074
|
+
function fl({ variant: e, title: t, subtitle: n, children: r }) {
|
|
10915
11075
|
return /* @__PURE__ */ v("div", {
|
|
10916
11076
|
className: `select-device select-device--${e}`,
|
|
10917
11077
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -10919,7 +11079,7 @@ function cl({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
10919
11079
|
children: [/* @__PURE__ */ _("span", {
|
|
10920
11080
|
className: "select-device__avatar",
|
|
10921
11081
|
"aria-hidden": "true",
|
|
10922
|
-
children: e === "whatsapp" && t ?
|
|
11082
|
+
children: e === "whatsapp" && t ? dl(t) : null
|
|
10923
11083
|
}), (t || n) && /* @__PURE__ */ v("span", {
|
|
10924
11084
|
className: "select-device__who",
|
|
10925
11085
|
children: [t && /* @__PURE__ */ _("span", {
|
|
@@ -10936,7 +11096,7 @@ function cl({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
10936
11096
|
})]
|
|
10937
11097
|
});
|
|
10938
11098
|
}
|
|
10939
|
-
function
|
|
11099
|
+
function pl({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1, children: a }) {
|
|
10940
11100
|
let o = /* @__PURE__ */ v("div", {
|
|
10941
11101
|
className: `select-bubble select-bubble--${e}`,
|
|
10942
11102
|
children: [
|
|
@@ -10962,7 +11122,7 @@ function ll({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1,
|
|
|
10962
11122
|
children: o
|
|
10963
11123
|
}) : o;
|
|
10964
11124
|
}
|
|
10965
|
-
function
|
|
11125
|
+
function ml({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r = "desktop", srcDoc: i, loading: a = !1, frameTitle: o = "O e-mail" }) {
|
|
10966
11126
|
let s = t != null && t !== "" && t !== !1;
|
|
10967
11127
|
return /* @__PURE__ */ v("div", {
|
|
10968
11128
|
className: `select-mailpreview${r === "mobile" ? " select-mailpreview--mobile" : ""}`,
|
|
@@ -10983,13 +11143,13 @@ function ul({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r =
|
|
|
10983
11143
|
className: `select-mailpreview__subject${s ? "" : " select-mailpreview__subject--empty"}`,
|
|
10984
11144
|
children: s ? t : n
|
|
10985
11145
|
})]
|
|
10986
|
-
}), a ? /* @__PURE__ */ _("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ _(
|
|
11146
|
+
}), a ? /* @__PURE__ */ _("span", { className: "select-skeleton select-mailpreview__loading" }) : i == null ? null : /* @__PURE__ */ _(hl, {
|
|
10987
11147
|
srcDoc: i,
|
|
10988
11148
|
title: o
|
|
10989
11149
|
})]
|
|
10990
11150
|
});
|
|
10991
11151
|
}
|
|
10992
|
-
function
|
|
11152
|
+
function hl({ srcDoc: e, title: t }) {
|
|
10993
11153
|
let n = f(null), [r, i] = p(null), a = f(null);
|
|
10994
11154
|
s(() => () => {
|
|
10995
11155
|
var e;
|
|
@@ -11019,7 +11179,7 @@ function dl({ srcDoc: e, title: t }) {
|
|
|
11019
11179
|
}
|
|
11020
11180
|
//#endregion
|
|
11021
11181
|
//#region src/SelectIconPicker.tsx
|
|
11022
|
-
function
|
|
11182
|
+
function gl({ label: e, options: t, value: n, onChange: r, help: i, hint: a, error: o, disabled: s = !1, unknownLabel: l = "Outro ícone", placeholder: u = "Escolha um ícone", columns: d = 6 }) {
|
|
11023
11183
|
let f = c(), [m, h] = p(!1), y = t.find((e) => e.value === n), b = (e) => {
|
|
11024
11184
|
r(e), h(!1);
|
|
11025
11185
|
}, x = /* @__PURE__ */ v("button", {
|
|
@@ -11090,18 +11250,18 @@ function fl({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
11090
11250
|
}
|
|
11091
11251
|
//#endregion
|
|
11092
11252
|
//#region src/SelectSplitChain.tsx
|
|
11093
|
-
function
|
|
11253
|
+
function _l(e) {
|
|
11094
11254
|
var t;
|
|
11095
11255
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
11096
11256
|
}
|
|
11097
|
-
function
|
|
11257
|
+
function vl({ node: e, origin: t = !1 }) {
|
|
11098
11258
|
return /* @__PURE__ */ v("span", {
|
|
11099
11259
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
11100
11260
|
children: [
|
|
11101
11261
|
/* @__PURE__ */ _("span", {
|
|
11102
11262
|
className: "select-chain__dot",
|
|
11103
11263
|
"aria-hidden": "true",
|
|
11104
|
-
children:
|
|
11264
|
+
children: _l(e)
|
|
11105
11265
|
}),
|
|
11106
11266
|
/* @__PURE__ */ _("span", {
|
|
11107
11267
|
className: "select-chain__label",
|
|
@@ -11115,16 +11275,16 @@ function ml({ node: e, origin: t = !1 }) {
|
|
|
11115
11275
|
]
|
|
11116
11276
|
});
|
|
11117
11277
|
}
|
|
11118
|
-
var
|
|
11278
|
+
var yl = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
11119
11279
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ _("span", {
|
|
11120
11280
|
className: "select-chain__link",
|
|
11121
11281
|
"aria-hidden": "true"
|
|
11122
11282
|
}, e);
|
|
11123
|
-
t && c.push(/* @__PURE__ */ _(
|
|
11283
|
+
t && c.push(/* @__PURE__ */ _(vl, {
|
|
11124
11284
|
node: t,
|
|
11125
11285
|
origin: !0
|
|
11126
11286
|
}, "__origin"));
|
|
11127
|
-
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ _(
|
|
11287
|
+
for (let e of o) c.length && c.push(l(`__link-${e.id}`)), c.push(/* @__PURE__ */ _(vl, { node: e }, e.id));
|
|
11128
11288
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ v("span", {
|
|
11129
11289
|
className: "select-chain__more",
|
|
11130
11290
|
children: ["+", s]
|
|
@@ -11134,37 +11294,37 @@ var hl = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
11134
11294
|
className: `select-chain${r ? " " + r : ""}`,
|
|
11135
11295
|
children: c
|
|
11136
11296
|
});
|
|
11137
|
-
}),
|
|
11297
|
+
}), bl = new Intl.NumberFormat("pt-BR", {
|
|
11138
11298
|
style: "currency",
|
|
11139
11299
|
currency: "BRL"
|
|
11140
11300
|
});
|
|
11141
|
-
function
|
|
11301
|
+
function xl(e) {
|
|
11142
11302
|
let t = typeof e == "string" ? Number(e) : e;
|
|
11143
11303
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
11144
11304
|
}
|
|
11145
|
-
function
|
|
11146
|
-
return
|
|
11305
|
+
function Sl(e) {
|
|
11306
|
+
return bl.format(xl(e) / 100);
|
|
11147
11307
|
}
|
|
11148
11308
|
//#endregion
|
|
11149
11309
|
//#region src/SelectMoney.tsx
|
|
11150
|
-
var
|
|
11310
|
+
var Cl = "sw:hide-money", wl = {
|
|
11151
11311
|
hidden: !1,
|
|
11152
11312
|
toggle: () => {},
|
|
11153
11313
|
setHidden: () => {}
|
|
11154
|
-
},
|
|
11155
|
-
function
|
|
11314
|
+
}, Tl = n(null);
|
|
11315
|
+
function El() {
|
|
11156
11316
|
try {
|
|
11157
|
-
return localStorage.getItem(
|
|
11317
|
+
return localStorage.getItem(Cl) === "1";
|
|
11158
11318
|
} catch {
|
|
11159
11319
|
return !1;
|
|
11160
11320
|
}
|
|
11161
11321
|
}
|
|
11162
|
-
function
|
|
11322
|
+
function Dl(e) {
|
|
11163
11323
|
try {
|
|
11164
|
-
localStorage.setItem(
|
|
11324
|
+
localStorage.setItem(Cl, e ? "1" : "0");
|
|
11165
11325
|
} catch {}
|
|
11166
11326
|
}
|
|
11167
|
-
function
|
|
11327
|
+
function Ol() {
|
|
11168
11328
|
let e = 0, t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
|
|
11169
11329
|
return {
|
|
11170
11330
|
mark() {
|
|
@@ -11182,14 +11342,14 @@ function wl() {
|
|
|
11182
11342
|
present: () => e > 0
|
|
11183
11343
|
};
|
|
11184
11344
|
}
|
|
11185
|
-
var
|
|
11186
|
-
function
|
|
11187
|
-
let [t] = p(
|
|
11188
|
-
r(e),
|
|
11345
|
+
var kl = n(null), Al = () => () => {}, jl = () => !1;
|
|
11346
|
+
function Ml({ children: e }) {
|
|
11347
|
+
let [t] = p(Ol), [n, r] = p(El), i = a((e) => {
|
|
11348
|
+
r(e), Dl(e);
|
|
11189
11349
|
}, []), o = a(() => {
|
|
11190
11350
|
r((e) => {
|
|
11191
11351
|
let t = !e;
|
|
11192
|
-
return
|
|
11352
|
+
return Dl(t), t;
|
|
11193
11353
|
});
|
|
11194
11354
|
}, []), s = d(() => ({
|
|
11195
11355
|
hidden: n,
|
|
@@ -11200,28 +11360,28 @@ function Ol({ children: e }) {
|
|
|
11200
11360
|
o,
|
|
11201
11361
|
i
|
|
11202
11362
|
]);
|
|
11203
|
-
return /* @__PURE__ */ _(
|
|
11363
|
+
return /* @__PURE__ */ _(kl.Provider, {
|
|
11204
11364
|
value: t,
|
|
11205
|
-
children: /* @__PURE__ */ _(
|
|
11365
|
+
children: /* @__PURE__ */ _(Tl.Provider, {
|
|
11206
11366
|
value: s,
|
|
11207
11367
|
children: e
|
|
11208
11368
|
})
|
|
11209
11369
|
});
|
|
11210
11370
|
}
|
|
11211
|
-
function
|
|
11212
|
-
return o(
|
|
11371
|
+
function Nl() {
|
|
11372
|
+
return o(Tl) ?? wl;
|
|
11213
11373
|
}
|
|
11214
|
-
function
|
|
11215
|
-
let t = o(
|
|
11374
|
+
function Pl(e = !0) {
|
|
11375
|
+
let t = o(kl);
|
|
11216
11376
|
s(() => e && t ? t.mark() : void 0, [t, e]);
|
|
11217
11377
|
}
|
|
11218
|
-
function
|
|
11219
|
-
let e = o(
|
|
11220
|
-
return m(e ? e.subscribe :
|
|
11378
|
+
function Fl() {
|
|
11379
|
+
let e = o(kl);
|
|
11380
|
+
return m(e ? e.subscribe : Al, e ? e.present : jl, jl);
|
|
11221
11381
|
}
|
|
11222
|
-
var
|
|
11223
|
-
let { hidden: a } =
|
|
11224
|
-
return
|
|
11382
|
+
var Il = r(function({ children: e, label: t = "valor oculto", className: n, ...r }, i) {
|
|
11383
|
+
let { hidden: a } = Nl();
|
|
11384
|
+
return Pl(), /* @__PURE__ */ _("span", {
|
|
11225
11385
|
ref: i,
|
|
11226
11386
|
...r,
|
|
11227
11387
|
className: `select-sensitive${a ? " select-sensitive--hidden" : ""}${n ? " " + n : ""}`,
|
|
@@ -11229,15 +11389,15 @@ var Ml = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
11229
11389
|
children: e
|
|
11230
11390
|
});
|
|
11231
11391
|
});
|
|
11232
|
-
function
|
|
11233
|
-
let n =
|
|
11234
|
-
return _(t ?
|
|
11392
|
+
function Ll({ cents: e, sensitive: t = !0 }) {
|
|
11393
|
+
let n = Sl(e);
|
|
11394
|
+
return _(t ? Il : g, { children: n });
|
|
11235
11395
|
}
|
|
11236
|
-
var
|
|
11396
|
+
var Rl = new Intl.NumberFormat("pt-BR", {
|
|
11237
11397
|
signDisplay: "exceptZero",
|
|
11238
11398
|
minimumFractionDigits: 1,
|
|
11239
11399
|
maximumFractionDigits: 1
|
|
11240
|
-
}),
|
|
11400
|
+
}), zl = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
11241
11401
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ v("span", {
|
|
11242
11402
|
ref: o,
|
|
11243
11403
|
...a,
|
|
@@ -11253,7 +11413,7 @@ var Pl = new Intl.NumberFormat("pt-BR", {
|
|
|
11253
11413
|
className: `select-delta__value select-delta__value--${u}`,
|
|
11254
11414
|
children: [
|
|
11255
11415
|
d ? `${d} ` : "",
|
|
11256
|
-
|
|
11416
|
+
Rl.format(e),
|
|
11257
11417
|
r === "points" ? " p.p." : "%"
|
|
11258
11418
|
]
|
|
11259
11419
|
}), n != null && /* @__PURE__ */ _("span", {
|
|
@@ -11262,8 +11422,8 @@ var Pl = new Intl.NumberFormat("pt-BR", {
|
|
|
11262
11422
|
})]
|
|
11263
11423
|
});
|
|
11264
11424
|
});
|
|
11265
|
-
function
|
|
11266
|
-
let { hidden: e, toggle: t } =
|
|
11425
|
+
function Bl() {
|
|
11426
|
+
let { hidden: e, toggle: t } = Nl();
|
|
11267
11427
|
return /* @__PURE__ */ _(Y, {
|
|
11268
11428
|
variant: "outline",
|
|
11269
11429
|
icon: _(e ? Ge : We, {}),
|
|
@@ -11274,7 +11434,7 @@ function Il() {
|
|
|
11274
11434
|
}
|
|
11275
11435
|
//#endregion
|
|
11276
11436
|
//#region src/SelectOfferPrice.tsx
|
|
11277
|
-
var
|
|
11437
|
+
var Vl = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note: i, prefix: a, suffix: o, className: s, ...c }, l) {
|
|
11278
11438
|
let u = Number(e);
|
|
11279
11439
|
if (!Number.isFinite(u)) return null;
|
|
11280
11440
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -11289,7 +11449,7 @@ var Ll = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
11289
11449
|
}),
|
|
11290
11450
|
/* @__PURE__ */ _("span", {
|
|
11291
11451
|
className: "select-offerprice__now",
|
|
11292
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ _(
|
|
11452
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ _(Ll, { cents: u })
|
|
11293
11453
|
}),
|
|
11294
11454
|
o != null && /* @__PURE__ */ _("span", {
|
|
11295
11455
|
className: "select-offerprice__per",
|
|
@@ -11297,7 +11457,7 @@ var Ll = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
11297
11457
|
}),
|
|
11298
11458
|
f && /* @__PURE__ */ _("s", {
|
|
11299
11459
|
className: "select-offerprice__was",
|
|
11300
|
-
children: /* @__PURE__ */ _(
|
|
11460
|
+
children: /* @__PURE__ */ _(Ll, { cents: d })
|
|
11301
11461
|
}),
|
|
11302
11462
|
f && !n && p > 0 && /* @__PURE__ */ v("span", {
|
|
11303
11463
|
className: "select-offerprice__off",
|
|
@@ -11316,7 +11476,7 @@ var Ll = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
11316
11476
|
});
|
|
11317
11477
|
//#endregion
|
|
11318
11478
|
//#region src/SelectRating.tsx
|
|
11319
|
-
function
|
|
11479
|
+
function Hl({ size: e }) {
|
|
11320
11480
|
return /* @__PURE__ */ _("svg", {
|
|
11321
11481
|
width: e,
|
|
11322
11482
|
height: e,
|
|
@@ -11328,7 +11488,7 @@ function Rl({ size: e }) {
|
|
|
11328
11488
|
})
|
|
11329
11489
|
});
|
|
11330
11490
|
}
|
|
11331
|
-
var
|
|
11491
|
+
var Ul = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i, disabled: a = !1, className: o, ...s }, c) {
|
|
11332
11492
|
let l = !!n && !a, [u, d] = p(null), f = u ?? e;
|
|
11333
11493
|
return /* @__PURE__ */ _("div", {
|
|
11334
11494
|
ref: c,
|
|
@@ -11344,14 +11504,14 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11344
11504
|
let i = l ? +(t < f) : Math.max(0, Math.min(1, f - t)), a = i >= .95 ? 1 : i <= .05 ? 0 : i, o = a > 0 && a < 1 ? /* @__PURE__ */ v("span", {
|
|
11345
11505
|
className: "select-rating__star select-rating__star--part",
|
|
11346
11506
|
style: { "--select-rating-fill": `${Math.round(a * 100)}%` },
|
|
11347
|
-
children: [/* @__PURE__ */ _(
|
|
11507
|
+
children: [/* @__PURE__ */ _(Hl, { size: r }), /* @__PURE__ */ _("span", {
|
|
11348
11508
|
className: "select-rating__fill",
|
|
11349
11509
|
"aria-hidden": "true",
|
|
11350
|
-
children: /* @__PURE__ */ _(
|
|
11510
|
+
children: /* @__PURE__ */ _(Hl, { size: r })
|
|
11351
11511
|
})]
|
|
11352
11512
|
}) : /* @__PURE__ */ _("span", {
|
|
11353
11513
|
className: `select-rating__star${a === 1 ? " is-filled" : ""}`,
|
|
11354
|
-
children: /* @__PURE__ */ _(
|
|
11514
|
+
children: /* @__PURE__ */ _(Hl, { size: r })
|
|
11355
11515
|
});
|
|
11356
11516
|
return l ? /* @__PURE__ */ _("button", {
|
|
11357
11517
|
type: "button",
|
|
@@ -11365,14 +11525,14 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11365
11525
|
}, t) : /* @__PURE__ */ _("span", { children: o }, t);
|
|
11366
11526
|
})
|
|
11367
11527
|
});
|
|
11368
|
-
}),
|
|
11528
|
+
}), Wl = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
11369
11529
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
11370
11530
|
return /* @__PURE__ */ v("div", {
|
|
11371
11531
|
ref: o,
|
|
11372
11532
|
...a,
|
|
11373
11533
|
className: `select-quote${i ? " " + i : ""}`,
|
|
11374
11534
|
children: [
|
|
11375
|
-
c && /* @__PURE__ */ _(
|
|
11535
|
+
c && /* @__PURE__ */ _(Ul, {
|
|
11376
11536
|
value: s,
|
|
11377
11537
|
max: t,
|
|
11378
11538
|
size: 13
|
|
@@ -11387,7 +11547,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11387
11547
|
})
|
|
11388
11548
|
]
|
|
11389
11549
|
});
|
|
11390
|
-
}),
|
|
11550
|
+
}), Gl = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
11391
11551
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
11392
11552
|
return /* @__PURE__ */ v("div", {
|
|
11393
11553
|
ref: i,
|
|
@@ -11409,7 +11569,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11409
11569
|
children: ["+", o]
|
|
11410
11570
|
})]
|
|
11411
11571
|
});
|
|
11412
|
-
}),
|
|
11572
|
+
}), Kl = [
|
|
11413
11573
|
"Dom",
|
|
11414
11574
|
"Seg",
|
|
11415
11575
|
"Ter",
|
|
@@ -11417,7 +11577,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11417
11577
|
"Qui",
|
|
11418
11578
|
"Sex",
|
|
11419
11579
|
"Sáb"
|
|
11420
|
-
],
|
|
11580
|
+
], ql = [
|
|
11421
11581
|
"Janeiro",
|
|
11422
11582
|
"Fevereiro",
|
|
11423
11583
|
"Março",
|
|
@@ -11430,7 +11590,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11430
11590
|
"Outubro",
|
|
11431
11591
|
"Novembro",
|
|
11432
11592
|
"Dezembro"
|
|
11433
|
-
],
|
|
11593
|
+
], Jl = [
|
|
11434
11594
|
"Jan",
|
|
11435
11595
|
"Fev",
|
|
11436
11596
|
"Mar",
|
|
@@ -11443,33 +11603,33 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11443
11603
|
"Out",
|
|
11444
11604
|
"Nov",
|
|
11445
11605
|
"Dez"
|
|
11446
|
-
],
|
|
11447
|
-
function
|
|
11606
|
+
], Yl = 12, Xl = (e) => String(e).padStart(2, "0"), Zl = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Ql = (e) => new Date(e.getFullYear(), e.getMonth(), 1), $l = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), eu = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), tu = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
|
|
11607
|
+
function nu(e) {
|
|
11448
11608
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
11449
11609
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
11450
11610
|
}
|
|
11451
|
-
function
|
|
11452
|
-
let n = `${e.getFullYear()}-${
|
|
11453
|
-
return t ? `${n}T${
|
|
11611
|
+
function ru(e, t) {
|
|
11612
|
+
let n = `${e.getFullYear()}-${Xl(e.getMonth() + 1)}-${Xl(e.getDate())}`;
|
|
11613
|
+
return t ? `${n}T${Xl(e.getHours())}:${Xl(e.getMinutes())}` : n;
|
|
11454
11614
|
}
|
|
11455
|
-
function
|
|
11456
|
-
let n = `${
|
|
11457
|
-
return t ? `${n} ${
|
|
11615
|
+
function iu(e, t) {
|
|
11616
|
+
let n = `${Xl(e.getDate())}/${Xl(e.getMonth() + 1)}/${e.getFullYear()}`;
|
|
11617
|
+
return t ? `${n} ${Xl(e.getHours())}:${Xl(e.getMinutes())}` : n;
|
|
11458
11618
|
}
|
|
11459
|
-
var
|
|
11460
|
-
let x = c(), S = h ?? x, [C, w] = p(!1), T =
|
|
11619
|
+
var au = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeholder: i, required: a, disabled: o, error: s, hint: l, minDate: u, maxDate: d, clearable: f = !0, openTo: m = "day", id: h, className: g, ...y }, b) {
|
|
11620
|
+
let x = c(), S = h ?? x, [C, w] = p(!1), T = nu(t), E = u ? Zl(u) : null, D = d ? Zl(d) : null, O = (e) => !!E && Zl(e) < E || !!D && Zl(e) > D, k = () => {
|
|
11461
11621
|
if (T) return T;
|
|
11462
11622
|
let e = /* @__PURE__ */ new Date();
|
|
11463
11623
|
return D && e > D ? D : E && e < E ? E : e;
|
|
11464
|
-
}, [A, j] = p(() =>
|
|
11465
|
-
o || (j(
|
|
11466
|
-
}, V = (e) => j((t) => M === "day" ?
|
|
11624
|
+
}, [A, j] = p(() => Ql(k())), [M, N] = p("day"), P = (e) => !!E && e < E.getFullYear() || !!D && e > D.getFullYear(), F = (e, t) => !!E && new Date(e, t + 1, 0) < E || !!D && new Date(e, t, 1) > D, I = A.getFullYear() - A.getFullYear() % Yl, L = $l(Ql(A), -Ql(A).getDay()), R = Array.from({ length: 42 }, (e, t) => $l(L, t)), z = Zl(/* @__PURE__ */ new Date()), B = () => {
|
|
11625
|
+
o || (j(Ql(k())), N(!T && m === "year" ? "year" : "day"), w((e) => !e));
|
|
11626
|
+
}, V = (e) => j((t) => M === "day" ? eu(t, e) : new Date(t.getFullYear() + e * (M === "year" ? Yl : 1), t.getMonth(), 1)), ee = M === "day" ? ["Mês anterior", "Próximo mês"] : M === "month" ? ["Ano anterior", "Próximo ano"] : ["Anos anteriores", "Próximos anos"], H = (e) => {
|
|
11467
11627
|
if (O(e)) return;
|
|
11468
11628
|
let t = new Date(e);
|
|
11469
|
-
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(
|
|
11629
|
+
r && t.setHours((T == null ? void 0 : T.getHours()) ?? 0, (T == null ? void 0 : T.getMinutes()) ?? 0, 0, 0), n(ru(t, r)), r || w(!1);
|
|
11470
11630
|
}, U = (e) => {
|
|
11471
11631
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
|
|
11472
|
-
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(
|
|
11632
|
+
o.setHours(Number.isFinite(i) ? i : 0, Number.isFinite(a) ? a : 0, 0, 0), n(ru(o, !0));
|
|
11473
11633
|
}, te = () => {
|
|
11474
11634
|
n(""), w(!1);
|
|
11475
11635
|
}, ne = /* @__PURE__ */ v("div", {
|
|
@@ -11483,7 +11643,7 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11483
11643
|
"aria-haspopup": "dialog",
|
|
11484
11644
|
"aria-expanded": C,
|
|
11485
11645
|
"aria-invalid": s ? !0 : void 0,
|
|
11486
|
-
children: T ?
|
|
11646
|
+
children: T ? iu(T, r) : /* @__PURE__ */ _("span", {
|
|
11487
11647
|
className: "select-datefield__ph",
|
|
11488
11648
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
11489
11649
|
})
|
|
@@ -11528,14 +11688,14 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11528
11688
|
children: [
|
|
11529
11689
|
I,
|
|
11530
11690
|
" – ",
|
|
11531
|
-
I +
|
|
11691
|
+
I + Yl - 1
|
|
11532
11692
|
]
|
|
11533
11693
|
}) : /* @__PURE__ */ v("button", {
|
|
11534
11694
|
type: "button",
|
|
11535
11695
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
11536
11696
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
11537
11697
|
onClick: () => N("year"),
|
|
11538
|
-
children: [M === "day" ? `${
|
|
11698
|
+
children: [M === "day" ? `${ql[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ _(J, {})]
|
|
11539
11699
|
}),
|
|
11540
11700
|
/* @__PURE__ */ _("button", {
|
|
11541
11701
|
type: "button",
|
|
@@ -11550,7 +11710,7 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11550
11710
|
className: "select-datefield__cells",
|
|
11551
11711
|
role: "grid",
|
|
11552
11712
|
"aria-label": "Anos",
|
|
11553
|
-
children: Array.from({ length:
|
|
11713
|
+
children: Array.from({ length: Yl }, (e, t) => I + t).map((e) => {
|
|
11554
11714
|
let t = (T == null ? void 0 : T.getFullYear()) === e;
|
|
11555
11715
|
return /* @__PURE__ */ _("button", {
|
|
11556
11716
|
type: "button",
|
|
@@ -11567,11 +11727,11 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11567
11727
|
className: "select-datefield__cells",
|
|
11568
11728
|
role: "grid",
|
|
11569
11729
|
"aria-label": `Meses de ${A.getFullYear()}`,
|
|
11570
|
-
children:
|
|
11730
|
+
children: Jl.map((e, t) => {
|
|
11571
11731
|
let n = A.getFullYear(), r = !!T && T.getFullYear() === n && T.getMonth() === t;
|
|
11572
11732
|
return /* @__PURE__ */ _("button", {
|
|
11573
11733
|
type: "button",
|
|
11574
|
-
"aria-label": `${
|
|
11734
|
+
"aria-label": `${ql[t]} de ${n}`,
|
|
11575
11735
|
className: `select-datefield__cell${r ? " is-selected" : ""}`,
|
|
11576
11736
|
disabled: F(n, t),
|
|
11577
11737
|
onClick: () => {
|
|
@@ -11584,11 +11744,11 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11584
11744
|
M === "day" && /* @__PURE__ */ v("div", {
|
|
11585
11745
|
className: "select-datepicker__grid",
|
|
11586
11746
|
role: "grid",
|
|
11587
|
-
children: [
|
|
11747
|
+
children: [Kl.map((e) => /* @__PURE__ */ _("div", {
|
|
11588
11748
|
className: "select-datepicker__weekday",
|
|
11589
11749
|
children: e
|
|
11590
11750
|
}, e)), R.map((e) => {
|
|
11591
|
-
let t = e.getMonth() !== A.getMonth(), n = !!T &&
|
|
11751
|
+
let t = e.getMonth() !== A.getMonth(), n = !!T && tu(e, T), r = "select-datepicker__daybtn" + (n ? " is-selected" : "") + (tu(e, z) && !n ? " is-today" : "") + (t ? " is-outside" : "");
|
|
11592
11752
|
return /* @__PURE__ */ _("div", {
|
|
11593
11753
|
className: "select-datepicker__day",
|
|
11594
11754
|
children: /* @__PURE__ */ _("button", {
|
|
@@ -11610,7 +11770,7 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11610
11770
|
type: "time",
|
|
11611
11771
|
className: "select-input select-datefield__time-input",
|
|
11612
11772
|
"aria-label": "Horário",
|
|
11613
|
-
value: T ? `${
|
|
11773
|
+
value: T ? `${Xl(T.getHours())}:${Xl(T.getMinutes())}` : "",
|
|
11614
11774
|
onChange: (e) => U(e.target.value)
|
|
11615
11775
|
})]
|
|
11616
11776
|
}),
|
|
@@ -11651,25 +11811,25 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11651
11811
|
}) : null
|
|
11652
11812
|
]
|
|
11653
11813
|
});
|
|
11654
|
-
}),
|
|
11655
|
-
function
|
|
11656
|
-
let t =
|
|
11814
|
+
}), ou = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?$/;
|
|
11815
|
+
function su(e) {
|
|
11816
|
+
let t = ou.exec(e ?? "");
|
|
11657
11817
|
if (!t) return null;
|
|
11658
11818
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
11659
11819
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
11660
11820
|
}
|
|
11661
11821
|
//#endregion
|
|
11662
11822
|
//#region src/SelectFilterBar.tsx
|
|
11663
|
-
function
|
|
11823
|
+
function cu(e, t) {
|
|
11664
11824
|
var n;
|
|
11665
|
-
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ?
|
|
11825
|
+
return e.type === "select" ? ((n = e.options) == null || (n = n.find((e) => e.value === t)) == null ? void 0 : n.label) ?? t : e.type === "date" ? su(t) ?? t : t;
|
|
11666
11826
|
}
|
|
11667
|
-
function
|
|
11827
|
+
function lu({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: o }) {
|
|
11668
11828
|
let [c, l] = p("");
|
|
11669
11829
|
s(() => {
|
|
11670
11830
|
r || l("");
|
|
11671
11831
|
}, [r]);
|
|
11672
|
-
let u = t.trim() !== "", d = u ?
|
|
11832
|
+
let u = t.trim() !== "", d = u ? cu(e, t) : null, f = u && !!e.error, m = e.options ?? [], h = m.length > 7, g = h ? m.filter((e) => e.label.toLowerCase().includes(c.trim().toLowerCase())) : m;
|
|
11673
11833
|
return /* @__PURE__ */ v(mr, {
|
|
11674
11834
|
active: r,
|
|
11675
11835
|
onClose: a,
|
|
@@ -11727,7 +11887,7 @@ function au({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11727
11887
|
})]
|
|
11728
11888
|
}) : e.type === "date" ? /* @__PURE__ */ _("div", {
|
|
11729
11889
|
className: "select-facet__field",
|
|
11730
|
-
children: /* @__PURE__ */ _(
|
|
11890
|
+
children: /* @__PURE__ */ _(au, {
|
|
11731
11891
|
value: t,
|
|
11732
11892
|
onChange: n,
|
|
11733
11893
|
placeholder: e.placeholder,
|
|
@@ -11765,7 +11925,7 @@ function au({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11765
11925
|
]
|
|
11766
11926
|
});
|
|
11767
11927
|
}
|
|
11768
|
-
var
|
|
11928
|
+
var uu = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
11769
11929
|
let [u, d] = p([]), [f, m] = p(null), [h, g] = p(!1), y = (e) => (t[e.key] ?? "").trim() !== "", b = (e) => !!e.pinned || y(e) || u.includes(e.key), x = e.filter(b), S = e.filter((e) => !b(e)), C = e.filter(y), w = () => {
|
|
11770
11930
|
d([]), m(null), r();
|
|
11771
11931
|
}, T = (e) => {
|
|
@@ -11820,7 +11980,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11820
11980
|
})
|
|
11821
11981
|
]
|
|
11822
11982
|
}),
|
|
11823
|
-
x.map((e) => /* @__PURE__ */ _(
|
|
11983
|
+
x.map((e) => /* @__PURE__ */ _(lu, {
|
|
11824
11984
|
filter: e,
|
|
11825
11985
|
value: t[e.key] ?? "",
|
|
11826
11986
|
onChange: (t) => n(e.key, t),
|
|
@@ -11872,7 +12032,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11872
12032
|
children: [
|
|
11873
12033
|
e.label,
|
|
11874
12034
|
": ",
|
|
11875
|
-
|
|
12035
|
+
cu(e, t[e.key] ?? ""),
|
|
11876
12036
|
/* @__PURE__ */ _("button", {
|
|
11877
12037
|
type: "button",
|
|
11878
12038
|
className: "select-filterbar__tagx",
|
|
@@ -11890,7 +12050,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11890
12050
|
})
|
|
11891
12051
|
]
|
|
11892
12052
|
});
|
|
11893
|
-
}),
|
|
12053
|
+
}), du = r(function({ label: e, options: t, selected: n, onChange: r, placeholder: i = "Selecionar…", hint: a, help: o, error: s, onBlur: c, size: l = "md", unknownLabel: u, loading: d = !1, loadingLabel: f = "Carregando…", disabled: m = !1, className: h, ...g }, y) {
|
|
11894
12054
|
let [b, x] = p(!1), S = d || m, [C, w] = p(""), T = t.filter((e) => e.label.toLowerCase().includes(C.trim().toLowerCase())), E = (e) => r(n.includes(e) ? n.filter((t) => t !== e) : [...n, e]), D = n.map((e) => {
|
|
11895
12055
|
let n = t.find((t) => t.value === e);
|
|
11896
12056
|
return n ? {
|
|
@@ -12021,7 +12181,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
12021
12181
|
}) : null
|
|
12022
12182
|
]
|
|
12023
12183
|
});
|
|
12024
|
-
}),
|
|
12184
|
+
}), fu = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
12025
12185
|
return /* @__PURE__ */ v("div", {
|
|
12026
12186
|
ref: c,
|
|
12027
12187
|
...s,
|
|
@@ -12053,8 +12213,8 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
12053
12213
|
})
|
|
12054
12214
|
]
|
|
12055
12215
|
});
|
|
12056
|
-
}),
|
|
12057
|
-
function
|
|
12216
|
+
}), pu = n(null), mu = 220, hu = 6e3, gu = 8, _u = .04, vu = 5;
|
|
12217
|
+
function yu({ variant: e }) {
|
|
12058
12218
|
return e === "neutral" ? null : /* @__PURE__ */ v("svg", {
|
|
12059
12219
|
className: "select-toast__icon",
|
|
12060
12220
|
viewBox: "0 0 20 20",
|
|
@@ -12076,7 +12236,7 @@ function hu({ variant: e }) {
|
|
|
12076
12236
|
]
|
|
12077
12237
|
});
|
|
12078
12238
|
}
|
|
12079
|
-
function
|
|
12239
|
+
function bu({ children: e }) {
|
|
12080
12240
|
let [t, n] = p([]), [r, i] = p(!1), o = f(0), c = f(/* @__PURE__ */ new Map()), l = a((e) => {
|
|
12081
12241
|
n((t) => t.filter((t) => t.id !== e)), c.current.delete(e);
|
|
12082
12242
|
}, []), u = a((e) => {
|
|
@@ -12087,13 +12247,13 @@ function gu({ children: e }) {
|
|
|
12087
12247
|
} : t)), c.current.set(e, {
|
|
12088
12248
|
remaining: 0,
|
|
12089
12249
|
startedAt: null,
|
|
12090
|
-
timer: setTimeout(() => l(e),
|
|
12250
|
+
timer: setTimeout(() => l(e), mu)
|
|
12091
12251
|
});
|
|
12092
12252
|
}, [l]), m = a((e) => {
|
|
12093
12253
|
let t = c.current.get(e);
|
|
12094
12254
|
!t || t.startedAt !== null || t.remaining <= 0 || (t.startedAt = Date.now(), t.timer = setTimeout(() => u(e), t.remaining));
|
|
12095
12255
|
}, [u]), h = a((e, t) => {
|
|
12096
|
-
let r = ++o.current, i = (t == null ? void 0 : t.duration) ??
|
|
12256
|
+
let r = ++o.current, i = (t == null ? void 0 : t.duration) ?? hu;
|
|
12097
12257
|
n((n) => [...n, {
|
|
12098
12258
|
id: r,
|
|
12099
12259
|
content: e,
|
|
@@ -12132,7 +12292,7 @@ function gu({ children: e }) {
|
|
|
12132
12292
|
duration: t
|
|
12133
12293
|
})
|
|
12134
12294
|
}), [h]);
|
|
12135
|
-
return /* @__PURE__ */ v(
|
|
12295
|
+
return /* @__PURE__ */ v(pu.Provider, {
|
|
12136
12296
|
value: x,
|
|
12137
12297
|
children: [e, t.length > 0 && y(/* @__PURE__ */ _("div", {
|
|
12138
12298
|
className: `select select-toasts${r ? " is-paused" : ""}`,
|
|
@@ -12146,8 +12306,8 @@ function gu({ children: e }) {
|
|
|
12146
12306
|
e.currentTarget.contains(e.relatedTarget) || b();
|
|
12147
12307
|
},
|
|
12148
12308
|
children: t.map((e, n) => {
|
|
12149
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
12150
|
-
transform: `translate(-50%, ${-r *
|
|
12309
|
+
let r = t.length - 1 - n, i = e.exiting || r >= vu, a = {
|
|
12310
|
+
transform: `translate(-50%, ${-r * gu}px) scale(${1 - r * _u})`,
|
|
12151
12311
|
opacity: +!i,
|
|
12152
12312
|
zIndex: 1e3 - r,
|
|
12153
12313
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -12157,7 +12317,7 @@ function gu({ children: e }) {
|
|
|
12157
12317
|
role: "status",
|
|
12158
12318
|
style: a,
|
|
12159
12319
|
children: [
|
|
12160
|
-
/* @__PURE__ */ _(
|
|
12320
|
+
/* @__PURE__ */ _(yu, { variant: e.variant }),
|
|
12161
12321
|
/* @__PURE__ */ v("span", {
|
|
12162
12322
|
className: "select-toast__content",
|
|
12163
12323
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -12195,14 +12355,14 @@ function gu({ children: e }) {
|
|
|
12195
12355
|
}), document.body)]
|
|
12196
12356
|
});
|
|
12197
12357
|
}
|
|
12198
|
-
function
|
|
12199
|
-
let e = o(
|
|
12358
|
+
function xu() {
|
|
12359
|
+
let e = o(pu);
|
|
12200
12360
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
12201
12361
|
return e;
|
|
12202
12362
|
}
|
|
12203
12363
|
//#endregion
|
|
12204
12364
|
//#region src/SelectPreviewFrame.tsx
|
|
12205
|
-
var
|
|
12365
|
+
var Su = "allow-scripts allow-same-origin allow-forms", Cu = 390, wu = 1280, Tu = r(function({ src: e, sandbox: t = Su, title: n = "Pré-visualização", height: r = 560, fill: i = !1, initialDevice: a = "desktop", showDeviceToggle: o = !0, openLabel: s = "Abrir em nova aba", emptyLabel: c = "Salve para gerar a pré-visualização.", onReload: l, notice: d, iframeRef: m, desktopWidth: h = wu, className: y, ...b }, x) {
|
|
12206
12366
|
let S = ga(e), [C, w] = p(a), [T, E] = p(0), [D, O] = p(!0), k = f(null), [A, j] = p({
|
|
12207
12367
|
w: 0,
|
|
12208
12368
|
h: 0
|
|
@@ -12220,7 +12380,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12220
12380
|
});
|
|
12221
12381
|
return t.observe(e), () => t.disconnect();
|
|
12222
12382
|
}, []);
|
|
12223
|
-
let M = C === "mobile" ?
|
|
12383
|
+
let M = C === "mobile" ? Cu : h, N = A.w > 0 ? Math.min(1, A.w / M) : 1, P = S ? `${S}${S.includes("?") ? "&" : "?"}_pv=${T}` : "", F = () => {
|
|
12224
12384
|
if (O(!0), l) {
|
|
12225
12385
|
l();
|
|
12226
12386
|
return;
|
|
@@ -12309,7 +12469,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12309
12469
|
})
|
|
12310
12470
|
})]
|
|
12311
12471
|
});
|
|
12312
|
-
}),
|
|
12472
|
+
}), Eu = r(function({ availableCents: e, availableLabel: t = "Saldo disponível", delta: n, buckets: r = [], action: i, variant: a = "card", updatedLabel: o, meta: s = [], status: c, loading: l = !1, className: u, ...d }, f) {
|
|
12313
12473
|
if (a === "hero") {
|
|
12314
12474
|
let n = (e, t = "1em") => /* @__PURE__ */ _("span", {
|
|
12315
12475
|
className: "select-skeleton select-balance__skel",
|
|
@@ -12317,7 +12477,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12317
12477
|
width: e,
|
|
12318
12478
|
height: t
|
|
12319
12479
|
}
|
|
12320
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ _(
|
|
12480
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ _(Ll, { cents: e });
|
|
12321
12481
|
return /* @__PURE__ */ _("div", {
|
|
12322
12482
|
ref: f,
|
|
12323
12483
|
...d,
|
|
@@ -12349,7 +12509,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12349
12509
|
className: "select-balance-hero__meta",
|
|
12350
12510
|
children: s.map((e, t) => /* @__PURE__ */ v("div", {
|
|
12351
12511
|
className: "select-balance-hero__metaitem",
|
|
12352
|
-
children: [/* @__PURE__ */ _("dt", { children: e.label }), /* @__PURE__ */ _("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ v(g, { children: [e.prefix, /* @__PURE__ */ _(
|
|
12512
|
+
children: [/* @__PURE__ */ _("dt", { children: e.label }), /* @__PURE__ */ _("dd", { children: l ? n("7ch") : e.cents != null && e.cents !== "" ? /* @__PURE__ */ v(g, { children: [e.prefix, /* @__PURE__ */ _(Ll, { cents: e.cents })] }) : e.value ?? "—" })]
|
|
12353
12513
|
}, t))
|
|
12354
12514
|
}),
|
|
12355
12515
|
(i || c) && /* @__PURE__ */ v("div", {
|
|
@@ -12424,8 +12584,8 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12424
12584
|
className: "select-balance__heromain",
|
|
12425
12585
|
children: [/* @__PURE__ */ _("span", {
|
|
12426
12586
|
className: "select-balance__heroamount",
|
|
12427
|
-
children: /* @__PURE__ */ _(
|
|
12428
|
-
}), n != null && /* @__PURE__ */ _(
|
|
12587
|
+
children: /* @__PURE__ */ _(Ll, { cents: e })
|
|
12588
|
+
}), n != null && /* @__PURE__ */ _(zl, {
|
|
12429
12589
|
value: n,
|
|
12430
12590
|
caption: "vs. período anterior"
|
|
12431
12591
|
})]
|
|
@@ -12444,14 +12604,14 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12444
12604
|
children: e.label
|
|
12445
12605
|
}), /* @__PURE__ */ _("span", {
|
|
12446
12606
|
className: "select-balance__bucketamount",
|
|
12447
|
-
children: /* @__PURE__ */ _(
|
|
12607
|
+
children: /* @__PURE__ */ _(Ll, { cents: e.cents })
|
|
12448
12608
|
})]
|
|
12449
12609
|
})]
|
|
12450
12610
|
}, e.label))
|
|
12451
12611
|
})]
|
|
12452
12612
|
})]
|
|
12453
12613
|
});
|
|
12454
|
-
}),
|
|
12614
|
+
}), Du = r(function({ grossCents: e, fees: t, netCents: n, grossLabel: r = "Valor bruto", netLabel: i = "Valor líquido", bar: a = !1, barLabel: o, className: s, ...c }, l) {
|
|
12455
12615
|
let u = n ?? e - t.reduce((e, t) => e + t.cents, 0), d = Math.max(0, e - u), f = a && e > 0 && u >= 0, p = e > 0 ? d / e * 100 : 0;
|
|
12456
12616
|
return /* @__PURE__ */ v("div", {
|
|
12457
12617
|
ref: l,
|
|
@@ -12471,7 +12631,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12471
12631
|
children: o ?? /* @__PURE__ */ v(g, { children: [
|
|
12472
12632
|
i,
|
|
12473
12633
|
" · ",
|
|
12474
|
-
/* @__PURE__ */ _(
|
|
12634
|
+
/* @__PURE__ */ _(Ll, { cents: u })
|
|
12475
12635
|
] })
|
|
12476
12636
|
})
|
|
12477
12637
|
}), d > 0 && /* @__PURE__ */ _("span", {
|
|
@@ -12488,7 +12648,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12488
12648
|
"aria-hidden": "true"
|
|
12489
12649
|
}),
|
|
12490
12650
|
"Taxas ",
|
|
12491
|
-
/* @__PURE__ */ _(
|
|
12651
|
+
/* @__PURE__ */ _(Ll, { cents: d }),
|
|
12492
12652
|
" (",
|
|
12493
12653
|
p.toLocaleString("pt-BR", {
|
|
12494
12654
|
maximumFractionDigits: 1,
|
|
@@ -12504,20 +12664,20 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12504
12664
|
"aria-hidden": "true"
|
|
12505
12665
|
}),
|
|
12506
12666
|
"Líquido ",
|
|
12507
|
-
/* @__PURE__ */ _(
|
|
12667
|
+
/* @__PURE__ */ _(Ll, { cents: u })
|
|
12508
12668
|
]
|
|
12509
12669
|
})]
|
|
12510
12670
|
})]
|
|
12511
12671
|
}),
|
|
12512
12672
|
/* @__PURE__ */ v("div", {
|
|
12513
12673
|
className: "select-fees__row",
|
|
12514
|
-
children: [/* @__PURE__ */ _("span", { children: r }), /* @__PURE__ */ _("span", { children: /* @__PURE__ */ _(
|
|
12674
|
+
children: [/* @__PURE__ */ _("span", { children: r }), /* @__PURE__ */ _("span", { children: /* @__PURE__ */ _(Ll, { cents: e }) })]
|
|
12515
12675
|
}),
|
|
12516
12676
|
t.map((e) => /* @__PURE__ */ v("div", {
|
|
12517
12677
|
className: "select-fees__row",
|
|
12518
12678
|
children: [/* @__PURE__ */ _("span", { children: e.label }), /* @__PURE__ */ v("span", {
|
|
12519
12679
|
className: "select-fees__neg",
|
|
12520
|
-
children: ["−\xA0", /* @__PURE__ */ _(
|
|
12680
|
+
children: ["−\xA0", /* @__PURE__ */ _(Ll, { cents: e.cents })]
|
|
12521
12681
|
})]
|
|
12522
12682
|
}, e.label)),
|
|
12523
12683
|
/* @__PURE__ */ _("div", { className: "select-fees__divider" }),
|
|
@@ -12525,12 +12685,12 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12525
12685
|
className: "select-fees__row select-fees__row--net",
|
|
12526
12686
|
children: [/* @__PURE__ */ _("span", { children: i }), /* @__PURE__ */ _("span", {
|
|
12527
12687
|
className: "select-fees__netvalue",
|
|
12528
|
-
children: /* @__PURE__ */ _(
|
|
12688
|
+
children: /* @__PURE__ */ _(Ll, { cents: u })
|
|
12529
12689
|
})]
|
|
12530
12690
|
})
|
|
12531
12691
|
]
|
|
12532
12692
|
});
|
|
12533
|
-
}),
|
|
12693
|
+
}), Ou = r(function({ label: e, value: t, caption: n, chart: r, help: i, tone: a, bare: o = !1, onClick: s, selected: c = !1, loading: l = !1, className: u, ...d }, f) {
|
|
12534
12694
|
let p = s != null, m = p ? {
|
|
12535
12695
|
role: "button",
|
|
12536
12696
|
tabIndex: 0,
|
|
@@ -12575,7 +12735,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12575
12735
|
})
|
|
12576
12736
|
] })]
|
|
12577
12737
|
});
|
|
12578
|
-
}),
|
|
12738
|
+
}), ku = {
|
|
12579
12739
|
"pt-BR": {
|
|
12580
12740
|
severity: {
|
|
12581
12741
|
info: "Para saber",
|
|
@@ -12724,42 +12884,42 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12724
12884
|
unread: "Nuevo"
|
|
12725
12885
|
}
|
|
12726
12886
|
};
|
|
12727
|
-
function
|
|
12887
|
+
function Au(e) {
|
|
12728
12888
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
12729
12889
|
}
|
|
12730
|
-
function
|
|
12731
|
-
let n =
|
|
12890
|
+
function ju(e, t) {
|
|
12891
|
+
let n = Au(e);
|
|
12732
12892
|
return {
|
|
12733
12893
|
lang: n,
|
|
12734
12894
|
labels: {
|
|
12735
|
-
...
|
|
12895
|
+
...ku[n],
|
|
12736
12896
|
...t
|
|
12737
12897
|
}
|
|
12738
12898
|
};
|
|
12739
12899
|
}
|
|
12740
|
-
var
|
|
12900
|
+
var Mu = {
|
|
12741
12901
|
info: "info",
|
|
12742
12902
|
opportunity: "success",
|
|
12743
12903
|
warning: "warning",
|
|
12744
12904
|
critical: "critical"
|
|
12745
12905
|
};
|
|
12746
|
-
function
|
|
12906
|
+
function Nu(e, t, n) {
|
|
12747
12907
|
return new Intl.NumberFormat(n, {
|
|
12748
12908
|
style: "currency",
|
|
12749
12909
|
currency: t,
|
|
12750
12910
|
maximumFractionDigits: 0
|
|
12751
12911
|
}).format(e / 100);
|
|
12752
12912
|
}
|
|
12753
|
-
function
|
|
12754
|
-
let r =
|
|
12913
|
+
function Pu(e, t, n) {
|
|
12914
|
+
let r = Nu(e.minCents, e.currency, t), i = Nu(e.maxCents, e.currency, t);
|
|
12755
12915
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
12756
12916
|
}
|
|
12757
|
-
function
|
|
12758
|
-
let r =
|
|
12917
|
+
function Fu(e, t = "pt-BR", n = ku[Au(t)]) {
|
|
12918
|
+
let r = Au(t), i = Nu(e.minCents, e.currency, r), a = Nu(e.maxCents, e.currency, r);
|
|
12759
12919
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
12760
12920
|
}
|
|
12761
|
-
var
|
|
12762
|
-
function
|
|
12921
|
+
var Iu = 864e5;
|
|
12922
|
+
function Lu(e, t, n, r) {
|
|
12763
12923
|
let i = new Date(e.start), a = new Date(e.end);
|
|
12764
12924
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
12765
12925
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -12771,7 +12931,7 @@ function Nu(e, t, n, r) {
|
|
|
12771
12931
|
...s ? {} : { year: "numeric" },
|
|
12772
12932
|
timeZone: n
|
|
12773
12933
|
});
|
|
12774
|
-
if (a.getTime() - i.getTime() <
|
|
12934
|
+
if (a.getTime() - i.getTime() < Iu) {
|
|
12775
12935
|
let e = new Intl.DateTimeFormat(t, {
|
|
12776
12936
|
hour: "2-digit",
|
|
12777
12937
|
minute: "2-digit",
|
|
@@ -12782,8 +12942,8 @@ function Nu(e, t, n, r) {
|
|
|
12782
12942
|
}
|
|
12783
12943
|
return r.periodRange(c.format(i), c.format(a));
|
|
12784
12944
|
}
|
|
12785
|
-
function
|
|
12786
|
-
let n =
|
|
12945
|
+
function Ru({ severity: e, labels: t }) {
|
|
12946
|
+
let n = Mu[e] ?? "info";
|
|
12787
12947
|
return /* @__PURE__ */ v("span", {
|
|
12788
12948
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
12789
12949
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -12792,7 +12952,7 @@ function Pu({ severity: e, labels: t }) {
|
|
|
12792
12952
|
}), t.severity[e] ?? e]
|
|
12793
12953
|
});
|
|
12794
12954
|
}
|
|
12795
|
-
function
|
|
12955
|
+
function zu({ label: e }) {
|
|
12796
12956
|
return /* @__PURE__ */ v("span", {
|
|
12797
12957
|
className: "select-insight__new",
|
|
12798
12958
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -12801,10 +12961,10 @@ function Fu({ label: e }) {
|
|
|
12801
12961
|
}), e]
|
|
12802
12962
|
});
|
|
12803
12963
|
}
|
|
12804
|
-
function
|
|
12964
|
+
function Bu(e) {
|
|
12805
12965
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
12806
12966
|
}
|
|
12807
|
-
function
|
|
12967
|
+
function Vu({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
12808
12968
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
12809
12969
|
return /* @__PURE__ */ _("span", {
|
|
12810
12970
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -12815,18 +12975,18 @@ function Lu({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
12815
12975
|
})
|
|
12816
12976
|
});
|
|
12817
12977
|
}
|
|
12818
|
-
var
|
|
12978
|
+
var Hu = /* @__PURE__ */ new Set([
|
|
12819
12979
|
"metric",
|
|
12820
12980
|
"comparison",
|
|
12821
12981
|
"table",
|
|
12822
12982
|
"items",
|
|
12823
12983
|
"text"
|
|
12824
12984
|
]);
|
|
12825
|
-
function
|
|
12826
|
-
return
|
|
12985
|
+
function Uu(e) {
|
|
12986
|
+
return Hu.has(e.type);
|
|
12827
12987
|
}
|
|
12828
|
-
function
|
|
12829
|
-
let t =
|
|
12988
|
+
function Wu({ block: e }) {
|
|
12989
|
+
let t = Bu(e.value), n = Bu(e.baseline), r = t != null && n != null && Math.max(t, n) > 0 ? Math.max(t, n) / .9 : null, i = !!e.valueLabel;
|
|
12830
12990
|
return /* @__PURE__ */ v("div", {
|
|
12831
12991
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
12832
12992
|
children: [
|
|
@@ -12843,7 +13003,7 @@ function Bu({ block: e }) {
|
|
|
12843
13003
|
className: "select-insight__cmpname",
|
|
12844
13004
|
children: i ? e.valueLabel : e.label
|
|
12845
13005
|
}),
|
|
12846
|
-
r == null ? null : /* @__PURE__ */ _(
|
|
13006
|
+
r == null ? null : /* @__PURE__ */ _(Vu, {
|
|
12847
13007
|
fraction: (t ?? 0) / r,
|
|
12848
13008
|
tone: "own"
|
|
12849
13009
|
}),
|
|
@@ -12859,7 +13019,7 @@ function Bu({ block: e }) {
|
|
|
12859
13019
|
className: "select-insight__cmpname",
|
|
12860
13020
|
children: e.baselineLabel
|
|
12861
13021
|
}),
|
|
12862
|
-
r == null ? null : /* @__PURE__ */ _(
|
|
13022
|
+
r == null ? null : /* @__PURE__ */ _(Vu, {
|
|
12863
13023
|
fraction: (n ?? 0) / r,
|
|
12864
13024
|
tone: "reference"
|
|
12865
13025
|
}),
|
|
@@ -12877,8 +13037,8 @@ function Bu({ block: e }) {
|
|
|
12877
13037
|
]
|
|
12878
13038
|
});
|
|
12879
13039
|
}
|
|
12880
|
-
function
|
|
12881
|
-
let n = e.items.map((e) =>
|
|
13040
|
+
function Gu({ block: e, renderItem: t }) {
|
|
13041
|
+
let n = e.items.map((e) => Bu(e.value)), r = Math.max(0, ...n.map((e) => e ?? 0)), i = e.items.length > 0 && r > 0 && n.every((e) => e != null);
|
|
12882
13042
|
return /* @__PURE__ */ v("div", {
|
|
12883
13043
|
className: "select-insight__box",
|
|
12884
13044
|
children: [/* @__PURE__ */ _("h5", {
|
|
@@ -12891,7 +13051,7 @@ function Vu({ block: e, renderItem: t }) {
|
|
|
12891
13051
|
className: "select-insight__itemlabel",
|
|
12892
13052
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
12893
13053
|
}),
|
|
12894
|
-
i ? /* @__PURE__ */ _(
|
|
13054
|
+
i ? /* @__PURE__ */ _(Vu, {
|
|
12895
13055
|
fraction: (n[a] ?? 0) / r,
|
|
12896
13056
|
size: "sm"
|
|
12897
13057
|
}) : null,
|
|
@@ -12903,14 +13063,14 @@ function Vu({ block: e, renderItem: t }) {
|
|
|
12903
13063
|
})]
|
|
12904
13064
|
});
|
|
12905
13065
|
}
|
|
12906
|
-
function
|
|
13066
|
+
function Ku({ block: e }) {
|
|
12907
13067
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
12908
13068
|
var n;
|
|
12909
|
-
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (
|
|
13069
|
+
return ((n = e[t.key]) == null ? void 0 : n.type) === "percent" && (Bu(e[t.key]) ?? 2) <= 1;
|
|
12910
13070
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ v("span", {
|
|
12911
13071
|
className: "select-insight__share",
|
|
12912
|
-
children: [/* @__PURE__ */ _(
|
|
12913
|
-
fraction:
|
|
13072
|
+
children: [/* @__PURE__ */ _(Vu, {
|
|
13073
|
+
fraction: Bu(n) ?? 0,
|
|
12914
13074
|
size: "sm"
|
|
12915
13075
|
}), /* @__PURE__ */ _("span", {
|
|
12916
13076
|
className: "select-insight__sharevalue",
|
|
@@ -12939,7 +13099,7 @@ function Hu({ block: e }) {
|
|
|
12939
13099
|
})]
|
|
12940
13100
|
}) : null] });
|
|
12941
13101
|
}
|
|
12942
|
-
function
|
|
13102
|
+
function qu({ link: e, primary: t }) {
|
|
12943
13103
|
let n = ga(e.href);
|
|
12944
13104
|
if (!n && !e.onClick) return null;
|
|
12945
13105
|
let r = t ? "select-btn select-btn--primary select-btn--auto select-insight__go" : "select-insight__golink", i = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", { children: e.label }), /* @__PURE__ */ _(K, {})] });
|
|
@@ -12964,8 +13124,8 @@ function Uu({ link: e, primary: t }) {
|
|
|
12964
13124
|
children: i
|
|
12965
13125
|
});
|
|
12966
13126
|
}
|
|
12967
|
-
function
|
|
12968
|
-
let { lang: w, labels: T } =
|
|
13127
|
+
function Ju({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo", locked: i = !1, lockedCta: a, position: o, unread: s = !1, badges: c, nav: l, triage: u, triageNote: d, footer: f, trend: p, outcome: m, renderItem: h, actionLink: y, renderAction: b, methodologyOpen: x = !1, bare: S = !1, className: C }) {
|
|
13128
|
+
let { lang: w, labels: T } = ju(t, n), E = Mu[e.severity] ?? "info", D = e.period ? Lu(e.period, w, r, T) : null, O = (e.blocks ?? []).filter(Uu), k = e.actions ?? [], A = `select-insight select-insight--${E}` + (i ? " select-insight--locked" : "") + (S ? " select-insight--bare" : "") + (C ? " " + C : ""), j = /* @__PURE__ */ v("header", {
|
|
12969
13129
|
className: "select-insight__head",
|
|
12970
13130
|
children: [/* @__PURE__ */ v("div", {
|
|
12971
13131
|
className: "select-insight__meta",
|
|
@@ -12974,12 +13134,12 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12974
13134
|
className: "select-insight__position",
|
|
12975
13135
|
children: o
|
|
12976
13136
|
}) : null,
|
|
12977
|
-
/* @__PURE__ */ _(
|
|
13137
|
+
/* @__PURE__ */ _(Ru, {
|
|
12978
13138
|
severity: e.severity,
|
|
12979
13139
|
labels: T
|
|
12980
13140
|
}),
|
|
12981
13141
|
e.domain ? /* @__PURE__ */ _("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
12982
|
-
s && !i ? /* @__PURE__ */ _(
|
|
13142
|
+
s && !i ? /* @__PURE__ */ _(zu, { label: T.unread }) : null,
|
|
12983
13143
|
i ? /* @__PURE__ */ _(Vr, {
|
|
12984
13144
|
tone: "pro",
|
|
12985
13145
|
size: "sm",
|
|
@@ -13016,7 +13176,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13016
13176
|
}),
|
|
13017
13177
|
/* @__PURE__ */ _("strong", {
|
|
13018
13178
|
className: "select-insight__stakevalue",
|
|
13019
|
-
children:
|
|
13179
|
+
children: Pu(e.impact, w, T)
|
|
13020
13180
|
}),
|
|
13021
13181
|
/* @__PURE__ */ _("span", {
|
|
13022
13182
|
className: "select-insight__stakenote",
|
|
@@ -13065,7 +13225,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13065
13225
|
I || u ? /* @__PURE__ */ v("div", {
|
|
13066
13226
|
className: "select-insight__nowactions",
|
|
13067
13227
|
children: [
|
|
13068
|
-
I ? /* @__PURE__ */ _(
|
|
13228
|
+
I ? /* @__PURE__ */ _(qu, {
|
|
13069
13229
|
link: I,
|
|
13070
13230
|
primary: !0
|
|
13071
13231
|
}) : null,
|
|
@@ -13091,7 +13251,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13091
13251
|
return /* @__PURE__ */ _("li", { children: n ?? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
|
|
13092
13252
|
className: "select-insight__moretext",
|
|
13093
13253
|
children: e.label
|
|
13094
|
-
}), r ? /* @__PURE__ */ _(
|
|
13254
|
+
}), r ? /* @__PURE__ */ _(qu, {
|
|
13095
13255
|
link: r,
|
|
13096
13256
|
primary: !1
|
|
13097
13257
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -13129,7 +13289,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13129
13289
|
}),
|
|
13130
13290
|
/* @__PURE__ */ _("div", {
|
|
13131
13291
|
className: "select-insight__tilevalue",
|
|
13132
|
-
children:
|
|
13292
|
+
children: Pu(e.impact, w, T)
|
|
13133
13293
|
}),
|
|
13134
13294
|
/* @__PURE__ */ _("div", {
|
|
13135
13295
|
className: "select-insight__tilenote",
|
|
@@ -13140,7 +13300,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13140
13300
|
children: [/* @__PURE__ */ _("span", { children: z.label }), /* @__PURE__ */ _("strong", { children: z.value.display })]
|
|
13141
13301
|
}) : null
|
|
13142
13302
|
]
|
|
13143
|
-
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ _(
|
|
13303
|
+
}) : null, B.map((e, t) => e.type === "comparison" ? /* @__PURE__ */ _(Wu, { block: e }, t) : /* @__PURE__ */ v("div", {
|
|
13144
13304
|
className: "select-insight__tile",
|
|
13145
13305
|
children: [
|
|
13146
13306
|
/* @__PURE__ */ _("div", {
|
|
@@ -13172,10 +13332,10 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13172
13332
|
p.content
|
|
13173
13333
|
]
|
|
13174
13334
|
}) : null,
|
|
13175
|
-
V.map((e, t) => e.type === "items" ? /* @__PURE__ */ _(
|
|
13335
|
+
V.map((e, t) => e.type === "items" ? /* @__PURE__ */ _(Gu, {
|
|
13176
13336
|
block: e,
|
|
13177
13337
|
renderItem: h
|
|
13178
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ _(
|
|
13338
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ _(Ku, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ v("div", {
|
|
13179
13339
|
className: "select-insight__text",
|
|
13180
13340
|
children: [/* @__PURE__ */ _(xe, {}), /* @__PURE__ */ _("span", { children: e.text })]
|
|
13181
13341
|
}, t) : null)
|
|
@@ -13258,25 +13418,25 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13258
13418
|
]
|
|
13259
13419
|
});
|
|
13260
13420
|
}
|
|
13261
|
-
function
|
|
13421
|
+
function Yu({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
13262
13422
|
return /* @__PURE__ */ _("div", {
|
|
13263
13423
|
...r,
|
|
13264
13424
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
13265
13425
|
children: t
|
|
13266
13426
|
});
|
|
13267
13427
|
}
|
|
13268
|
-
function
|
|
13269
|
-
let { lang: m, labels: h } =
|
|
13428
|
+
function Xu({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread: a = !1, selected: o = !1, layout: s = "row", cta: c, badge: l, href: u, onClick: d, className: f, ...p }) {
|
|
13429
|
+
let { lang: m, labels: h } = ju(t, n), y = e.domain ? h.domain[e.domain] ?? e.domain : null, b = e.impact ? Nu(e.impact.maxCents, e.impact.currency, m) : null, x = e.impact && e.impact.minCents === e.impact.maxCents ? h.about("").trim() : h.upTo, S = s === "card", C = "select-insightrow" + (S ? " select-insightrow--card" : "") + (o ? " is-selected" : "") + (i ? " select-insightrow--locked" : "") + (f ? " " + f : ""), w = i ? /* @__PURE__ */ _("span", {
|
|
13270
13430
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
13271
13431
|
"aria-hidden": "true",
|
|
13272
13432
|
children: /* @__PURE__ */ _(it, {})
|
|
13273
13433
|
}) : r == null ? null : /* @__PURE__ */ _("span", {
|
|
13274
13434
|
className: `select-insightrow__index${o || S && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
13275
13435
|
children: r
|
|
13276
|
-
}), T = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(
|
|
13436
|
+
}), T = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Ru, {
|
|
13277
13437
|
severity: e.severity,
|
|
13278
13438
|
labels: h
|
|
13279
|
-
}), y && !i ? /* @__PURE__ */ _("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ _(
|
|
13439
|
+
}), y && !i ? /* @__PURE__ */ _("span", { children: y }) : null] }), E = a && !i ? /* @__PURE__ */ _(zu, { label: h.unread }) : null, D = S ? /* @__PURE__ */ v(g, { children: [
|
|
13280
13440
|
/* @__PURE__ */ v("span", {
|
|
13281
13441
|
className: "select-insightrow__top",
|
|
13282
13442
|
children: [
|
|
@@ -13342,8 +13502,8 @@ function Ku({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
13342
13502
|
}
|
|
13343
13503
|
//#endregion
|
|
13344
13504
|
//#region src/SelectAssistant.tsx
|
|
13345
|
-
var
|
|
13346
|
-
function
|
|
13505
|
+
var Zu = 240;
|
|
13506
|
+
function Qu({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcherLabel: a, badge: o, children: l, scrollKey: u, suggestions: d, onSuggestion: m, onSend: h, placeholder: g, disabled: y = !1, typing: b = !1, headerAction: x, anchor: S = "viewport", closeLabel: C = "Fechar", sendLabel: w = "Enviar", inputLabel: T = "Sua pergunta", className: E }) {
|
|
13347
13507
|
let D = c(), O = f(null), k = f(null), A = f(null), [j, M] = p(""), N = f(0), P = b !== !1;
|
|
13348
13508
|
s(() => {
|
|
13349
13509
|
let t = O.current;
|
|
@@ -13361,7 +13521,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13361
13521
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
13362
13522
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
13363
13523
|
top: s,
|
|
13364
|
-
behavior:
|
|
13524
|
+
behavior: nd() ? "auto" : "smooth"
|
|
13365
13525
|
}) : t.scrollTop = s);
|
|
13366
13526
|
}, [
|
|
13367
13527
|
e,
|
|
@@ -13425,7 +13585,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13425
13585
|
className: "select-assistant__body",
|
|
13426
13586
|
role: "log",
|
|
13427
13587
|
"aria-live": "polite",
|
|
13428
|
-
children: [l, P ? /* @__PURE__ */ _(
|
|
13588
|
+
children: [l, P ? /* @__PURE__ */ _(td, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
13429
13589
|
}),
|
|
13430
13590
|
(h || d && d.length > 0) && /* @__PURE__ */ v("footer", {
|
|
13431
13591
|
className: "select-assistant__foot",
|
|
@@ -13449,7 +13609,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13449
13609
|
onChange: (e) => M(e.target.value),
|
|
13450
13610
|
placeholder: g,
|
|
13451
13611
|
"aria-label": T,
|
|
13452
|
-
maxLength:
|
|
13612
|
+
maxLength: Zu,
|
|
13453
13613
|
autoComplete: "off",
|
|
13454
13614
|
enterKeyHint: "send",
|
|
13455
13615
|
disabled: y
|
|
@@ -13481,7 +13641,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13481
13641
|
})]
|
|
13482
13642
|
});
|
|
13483
13643
|
}
|
|
13484
|
-
function
|
|
13644
|
+
function $u({ from: e, bare: t = !1, children: n }) {
|
|
13485
13645
|
return /* @__PURE__ */ _("div", {
|
|
13486
13646
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
13487
13647
|
children: /* @__PURE__ */ _("div", {
|
|
@@ -13490,13 +13650,13 @@ function Yu({ from: e, bare: t = !1, children: n }) {
|
|
|
13490
13650
|
})
|
|
13491
13651
|
});
|
|
13492
13652
|
}
|
|
13493
|
-
function
|
|
13653
|
+
function ed({ children: e }) {
|
|
13494
13654
|
return /* @__PURE__ */ _("div", {
|
|
13495
13655
|
className: "select-chat__turn",
|
|
13496
13656
|
children: e
|
|
13497
13657
|
});
|
|
13498
13658
|
}
|
|
13499
|
-
function
|
|
13659
|
+
function td({ label: e = "Escrevendo…" }) {
|
|
13500
13660
|
return /* @__PURE__ */ _("div", {
|
|
13501
13661
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
13502
13662
|
role: "status",
|
|
@@ -13512,19 +13672,19 @@ function Zu({ label: e = "Escrevendo…" }) {
|
|
|
13512
13672
|
})
|
|
13513
13673
|
});
|
|
13514
13674
|
}
|
|
13515
|
-
function
|
|
13675
|
+
function nd() {
|
|
13516
13676
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
13517
13677
|
}
|
|
13518
13678
|
//#endregion
|
|
13519
13679
|
//#region src/SelectNumberedList.tsx
|
|
13520
|
-
function
|
|
13680
|
+
function rd({ children: e, className: t, ...n }) {
|
|
13521
13681
|
return /* @__PURE__ */ _("ol", {
|
|
13522
13682
|
...n,
|
|
13523
13683
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
13524
13684
|
children: e
|
|
13525
13685
|
});
|
|
13526
13686
|
}
|
|
13527
|
-
function
|
|
13687
|
+
function id({ title: e, children: t, className: n, ...r }) {
|
|
13528
13688
|
return /* @__PURE__ */ _("li", {
|
|
13529
13689
|
...r,
|
|
13530
13690
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -13542,7 +13702,7 @@ function ed({ title: e, children: t, className: n, ...r }) {
|
|
|
13542
13702
|
}
|
|
13543
13703
|
//#endregion
|
|
13544
13704
|
//#region src/SelectChartCard.tsx
|
|
13545
|
-
var
|
|
13705
|
+
var ad = 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) {
|
|
13546
13706
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, h = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
13547
13707
|
return /* @__PURE__ */ v("div", {
|
|
13548
13708
|
ref: p,
|
|
@@ -13585,7 +13745,7 @@ var td = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
13585
13745
|
});
|
|
13586
13746
|
//#endregion
|
|
13587
13747
|
//#region src/chartUtils.ts
|
|
13588
|
-
function
|
|
13748
|
+
function od() {
|
|
13589
13749
|
let [e, t] = p(1);
|
|
13590
13750
|
return u(() => {
|
|
13591
13751
|
let e = () => {
|
|
@@ -13595,8 +13755,8 @@ function nd() {
|
|
|
13595
13755
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
13596
13756
|
}, []), e;
|
|
13597
13757
|
}
|
|
13598
|
-
function
|
|
13599
|
-
let t = f(null), [n, r] = p(0), [i, a] = p(0), o =
|
|
13758
|
+
function sd(e) {
|
|
13759
|
+
let t = f(null), [n, r] = p(0), [i, a] = p(0), o = od();
|
|
13600
13760
|
return u(() => {
|
|
13601
13761
|
let e = t.current;
|
|
13602
13762
|
if (!e) return;
|
|
@@ -13614,21 +13774,21 @@ function rd(e) {
|
|
|
13614
13774
|
height: Math.round(e * o)
|
|
13615
13775
|
};
|
|
13616
13776
|
}
|
|
13617
|
-
var
|
|
13618
|
-
function
|
|
13619
|
-
if (
|
|
13620
|
-
|
|
13777
|
+
var cd, ld = /* @__PURE__ */ new Map();
|
|
13778
|
+
function ud(e, t) {
|
|
13779
|
+
if (cd === void 0) try {
|
|
13780
|
+
cd = typeof document < "u" ? document.createElement("canvas").getContext("2d") : null;
|
|
13621
13781
|
} catch {
|
|
13622
|
-
|
|
13782
|
+
cd = null;
|
|
13623
13783
|
}
|
|
13624
13784
|
let n = (typeof document < "u" && parseFloat(getComputedStyle(document.documentElement).fontSize) || 16) * .6875, r = `500 ${n}px ${t ? getComputedStyle(t).fontFamily : "sans-serif"}`, i = 0;
|
|
13625
13785
|
for (let t of e) {
|
|
13626
|
-
let e = `${r}|${t}`, a =
|
|
13627
|
-
a ?? (
|
|
13786
|
+
let e = `${r}|${t}`, a = ld.get(e);
|
|
13787
|
+
a ?? (cd ? (cd.font = r, a = cd.measureText(t).width) : a = t.length * n * .58, ld.set(e, a)), i = Math.max(i, a);
|
|
13628
13788
|
}
|
|
13629
13789
|
return Math.max(24, Math.ceil(i) + 8);
|
|
13630
13790
|
}
|
|
13631
|
-
function
|
|
13791
|
+
function dd(e, t) {
|
|
13632
13792
|
let [n, r] = p(t);
|
|
13633
13793
|
return u(() => {
|
|
13634
13794
|
let t = e.current;
|
|
@@ -13642,15 +13802,15 @@ function sd(e, t) {
|
|
|
13642
13802
|
return i.observe(t), () => i.disconnect();
|
|
13643
13803
|
}, [e]), n;
|
|
13644
13804
|
}
|
|
13645
|
-
function
|
|
13805
|
+
function fd(e) {
|
|
13646
13806
|
if (e <= 0) return 1;
|
|
13647
13807
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
13648
13808
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
13649
13809
|
}
|
|
13650
|
-
function
|
|
13810
|
+
function pd(e, t = 4) {
|
|
13651
13811
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
13652
13812
|
}
|
|
13653
|
-
function
|
|
13813
|
+
function md(e, t = 5) {
|
|
13654
13814
|
if (!(e > 0)) return {
|
|
13655
13815
|
max: 1,
|
|
13656
13816
|
values: [0, 1]
|
|
@@ -13662,10 +13822,10 @@ function ud(e, t = 5) {
|
|
|
13662
13822
|
values: s
|
|
13663
13823
|
};
|
|
13664
13824
|
}
|
|
13665
|
-
function
|
|
13825
|
+
function hd(e) {
|
|
13666
13826
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
13667
13827
|
}
|
|
13668
|
-
function
|
|
13828
|
+
function gd(e) {
|
|
13669
13829
|
let t = e.length;
|
|
13670
13830
|
if (t === 0) return "";
|
|
13671
13831
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -13689,23 +13849,23 @@ function fd(e) {
|
|
|
13689
13849
|
}
|
|
13690
13850
|
return s;
|
|
13691
13851
|
}
|
|
13692
|
-
function
|
|
13852
|
+
function _d(e, t) {
|
|
13693
13853
|
if (e.length === 0) return "";
|
|
13694
13854
|
let n = e[0], r = e[e.length - 1];
|
|
13695
|
-
return `${
|
|
13855
|
+
return `${gd(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
13696
13856
|
}
|
|
13697
|
-
function
|
|
13698
|
-
return e.length === 0 || t.length === 0 ? "" : `${
|
|
13857
|
+
function vd(e, t) {
|
|
13858
|
+
return e.length === 0 || t.length === 0 ? "" : `${gd(e)} ${gd([...t].reverse()).replace(/^M/, "L")} Z`;
|
|
13699
13859
|
}
|
|
13700
|
-
function
|
|
13860
|
+
function yd(e, t, n, r) {
|
|
13701
13861
|
let i = (r - 90) * Math.PI / 180;
|
|
13702
13862
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
13703
13863
|
}
|
|
13704
|
-
function
|
|
13705
|
-
let [o, s] =
|
|
13864
|
+
function bd(e, t, n, r, i, a) {
|
|
13865
|
+
let [o, s] = yd(e, t, n, i), [c, l] = yd(e, t, n, a), [u, d] = yd(e, t, r, a), [f, p] = yd(e, t, r, i), m = +(a - i > 180);
|
|
13706
13866
|
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`;
|
|
13707
13867
|
}
|
|
13708
|
-
var
|
|
13868
|
+
var xd = [
|
|
13709
13869
|
"var(--select-chart-1)",
|
|
13710
13870
|
"var(--select-chart-2)",
|
|
13711
13871
|
"var(--select-chart-3)",
|
|
@@ -13713,13 +13873,13 @@ var _d = [
|
|
|
13713
13873
|
"var(--select-chart-5)"
|
|
13714
13874
|
];
|
|
13715
13875
|
function X(e) {
|
|
13716
|
-
return
|
|
13876
|
+
return xd[e % xd.length];
|
|
13717
13877
|
}
|
|
13718
13878
|
function Z(e) {
|
|
13719
13879
|
let t = Math.abs(e);
|
|
13720
13880
|
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));
|
|
13721
13881
|
}
|
|
13722
|
-
var
|
|
13882
|
+
var Sd = {
|
|
13723
13883
|
top: 16,
|
|
13724
13884
|
right: 22,
|
|
13725
13885
|
bottom: 32,
|
|
@@ -13727,8 +13887,8 @@ var vd = {
|
|
|
13727
13887
|
};
|
|
13728
13888
|
//#endregion
|
|
13729
13889
|
//#region src/SelectSparkline.tsx
|
|
13730
|
-
function
|
|
13731
|
-
let { ref: a, width: o } =
|
|
13890
|
+
function Cd({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
13891
|
+
let { ref: a, width: o } = sd(n), s = t ?? X(0), l = c(), u = null;
|
|
13732
13892
|
if (o > 0 && e.length > 1) {
|
|
13733
13893
|
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)]), c = a[a.length - 1];
|
|
13734
13894
|
u = /* @__PURE__ */ v("svg", {
|
|
@@ -13754,11 +13914,11 @@ function yd({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
13754
13914
|
})]
|
|
13755
13915
|
}) }),
|
|
13756
13916
|
/* @__PURE__ */ _("path", {
|
|
13757
|
-
d:
|
|
13917
|
+
d: _d(a, n - 4),
|
|
13758
13918
|
fill: `url(#${l}-sa)`
|
|
13759
13919
|
}),
|
|
13760
13920
|
/* @__PURE__ */ _("path", {
|
|
13761
|
-
d:
|
|
13921
|
+
d: gd(a),
|
|
13762
13922
|
fill: "none",
|
|
13763
13923
|
stroke: s,
|
|
13764
13924
|
strokeWidth: 2,
|
|
@@ -13837,7 +13997,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
13837
13997
|
}, t))]
|
|
13838
13998
|
});
|
|
13839
13999
|
}
|
|
13840
|
-
function
|
|
14000
|
+
function wd({ tip: e, onDismiss: t }) {
|
|
13841
14001
|
return s(() => {
|
|
13842
14002
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
13843
14003
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -13850,10 +14010,10 @@ function bd({ tip: e, onDismiss: t }) {
|
|
|
13850
14010
|
}
|
|
13851
14011
|
//#endregion
|
|
13852
14012
|
//#region src/SelectBarChart.tsx
|
|
13853
|
-
function
|
|
13854
|
-
let { ref: o, width: s } =
|
|
13855
|
-
...
|
|
13856
|
-
left:
|
|
14013
|
+
function Td({ data: e, height: t = 240, color: n, format: r = Z, className: i, ...a }) {
|
|
14014
|
+
let { ref: o, width: s } = sd(t), l = Q(), u = c(), d = n ?? X(0), f = fd(Math.max(0, ...e.map((e) => e.value))), p = {
|
|
14015
|
+
...Sd,
|
|
14016
|
+
left: ud(pd(f).map(r), o.current)
|
|
13857
14017
|
}, m = Math.max(0, s - p.left - p.right), h = t - p.top - p.bottom, g = e.length > 0 ? m / e.length : 0, y = Math.min(g * .62, 44), b = p.top + h, x = (e) => b - e / f * h;
|
|
13858
14018
|
return /* @__PURE__ */ v("div", {
|
|
13859
14019
|
...a,
|
|
@@ -13880,7 +14040,7 @@ function xd({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13880
14040
|
stopOpacity: .62
|
|
13881
14041
|
})]
|
|
13882
14042
|
}) }),
|
|
13883
|
-
|
|
14043
|
+
pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
13884
14044
|
x1: p.left,
|
|
13885
14045
|
x2: s - p.right,
|
|
13886
14046
|
y1: x(e),
|
|
@@ -13930,17 +14090,17 @@ function xd({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13930
14090
|
}
|
|
13931
14091
|
//#endregion
|
|
13932
14092
|
//#region src/SelectLineChart.tsx
|
|
13933
|
-
var
|
|
13934
|
-
function
|
|
14093
|
+
var Ed = (e) => e != null && Number.isFinite(e), Dd = 64;
|
|
14094
|
+
function Od(e, t) {
|
|
13935
14095
|
let n = [], r = [];
|
|
13936
|
-
for (let i = 0; i < t; i++)
|
|
14096
|
+
for (let i = 0; i < t; i++) Ed(e[i]) ? r.push(i) : r.length && (n.push(r), r = []);
|
|
13937
14097
|
return r.length && n.push(r), n;
|
|
13938
14098
|
}
|
|
13939
|
-
function
|
|
13940
|
-
let { ref: d, width: f, boxHeight: m } =
|
|
13941
|
-
...
|
|
13942
|
-
left:
|
|
13943
|
-
}, T = Math.max(0, f - w.left - w.right), E = h - w.top - w.bottom, D = n.length, O = (e) => w.left + (D <= 1 ? T / 2 : e / (D - 1) * T), k = (e) => w.top + E - e / S * E, A = D > 1 ? T / (D - 1) : T, j = Math.max(1, Math.ceil(D / 7), Math.ceil(
|
|
14099
|
+
function kd({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1, fill: o = !1, className: s, style: l, ...u }) {
|
|
14100
|
+
let { ref: d, width: f, boxHeight: m } = sd(r), h = o ? Math.max(r, Math.floor(m)) : r, g = Q(), y = c(), [b, x] = p(null), { max: S, values: C } = md(Math.max(0, ...e.flatMap((e) => e.data.filter((e) => Number.isFinite(e))))), w = {
|
|
14101
|
+
...Sd,
|
|
14102
|
+
left: ud(C.map(i), d.current)
|
|
14103
|
+
}, T = Math.max(0, f - w.left - w.right), E = h - w.top - w.bottom, D = n.length, O = (e) => w.left + (D <= 1 ? T / 2 : e / (D - 1) * T), k = (e) => w.top + E - e / S * E, A = D > 1 ? T / (D - 1) : T, j = Math.max(1, Math.ceil(D / 7), Math.ceil(Dd / Math.max(A, 1))), M = (e) => e === D - 1 || e % j === 0 && (D - 1 - e) * A >= Dd, N = w.top + E;
|
|
13944
14104
|
return /* @__PURE__ */ v("div", {
|
|
13945
14105
|
...u,
|
|
13946
14106
|
className: `select-chart-wrap${o ? " select-chart-wrap--fill" : ""}${s ? " " + s : ""}`,
|
|
@@ -13999,7 +14159,7 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13999
14159
|
si: t
|
|
14000
14160
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
14001
14161
|
let r = e.color ?? X(n);
|
|
14002
|
-
return /* @__PURE__ */ _("g", { children:
|
|
14162
|
+
return /* @__PURE__ */ _("g", { children: Od(e.data, D).map((i, o) => {
|
|
14003
14163
|
let s = i.map((t) => [O(t), k(e.data[t])]);
|
|
14004
14164
|
return s.length === 1 ? /* @__PURE__ */ _("circle", {
|
|
14005
14165
|
cx: s[0][0],
|
|
@@ -14008,11 +14168,11 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14008
14168
|
fill: r,
|
|
14009
14169
|
className: "select-chart__dot select-chart__dot--lone"
|
|
14010
14170
|
}, o) : /* @__PURE__ */ v(t, { children: [a && !e.dashed && /* @__PURE__ */ _("path", {
|
|
14011
|
-
d:
|
|
14171
|
+
d: _d(s, N),
|
|
14012
14172
|
fill: `url(#${y}-a${n})`,
|
|
14013
14173
|
className: "select-chart__area"
|
|
14014
14174
|
}), /* @__PURE__ */ _("path", {
|
|
14015
|
-
d:
|
|
14175
|
+
d: gd(s),
|
|
14016
14176
|
fill: "none",
|
|
14017
14177
|
stroke: r,
|
|
14018
14178
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -14025,7 +14185,7 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14025
14185
|
})] }, o);
|
|
14026
14186
|
}) }, n);
|
|
14027
14187
|
}),
|
|
14028
|
-
b != null && e.map((e, t) =>
|
|
14188
|
+
b != null && e.map((e, t) => Ed(e.data[b]) ? /* @__PURE__ */ _("circle", {
|
|
14029
14189
|
cx: O(b),
|
|
14030
14190
|
cy: k(e.data[b] ?? 0),
|
|
14031
14191
|
r: 3.5,
|
|
@@ -14052,7 +14212,7 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14052
14212
|
let r = e.map((e, t) => ({
|
|
14053
14213
|
s: e,
|
|
14054
14214
|
si: t
|
|
14055
|
-
})).filter(({ s: e }) =>
|
|
14215
|
+
})).filter(({ s: e }) => Ed(e.data[n]));
|
|
14056
14216
|
if (!r.length) {
|
|
14057
14217
|
g.hide();
|
|
14058
14218
|
return;
|
|
@@ -14083,10 +14243,10 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14083
14243
|
}
|
|
14084
14244
|
//#endregion
|
|
14085
14245
|
//#region src/SelectStackedArea.tsx
|
|
14086
|
-
function
|
|
14087
|
-
let { ref: o, width: s } =
|
|
14088
|
-
...
|
|
14089
|
-
left:
|
|
14246
|
+
function Ad({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
14247
|
+
let { ref: o, width: s } = sd(n), l = Q(), u = c(), [d, f] = p(null), m = t.length, h = Array(m).fill(0), g = e.map((e) => e.data.map((e, t) => (h[t] = (h[t] ?? 0) + (e ?? 0), h[t]))), y = fd(Math.max(0, ...h)), b = {
|
|
14248
|
+
...Sd,
|
|
14249
|
+
left: ud(pd(y).map(r), o.current)
|
|
14090
14250
|
}, x = Math.max(0, s - b.left - b.right), S = n - b.top - b.bottom, C = (e) => b.left + (m <= 1 ? x / 2 : e / (m - 1) * x), w = (e) => b.top + S - e / y * S, T = m > 1 ? x / (m - 1) : x, E = Math.max(1, Math.ceil(m / 7)), D = b.top + S, O = g[g.length - 1];
|
|
14091
14251
|
return /* @__PURE__ */ v("div", {
|
|
14092
14252
|
...a,
|
|
@@ -14116,7 +14276,7 @@ function Ed({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14116
14276
|
})]
|
|
14117
14277
|
}, t);
|
|
14118
14278
|
}) }),
|
|
14119
|
-
|
|
14279
|
+
pd(y).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
14120
14280
|
x1: b.left,
|
|
14121
14281
|
x2: s - b.right,
|
|
14122
14282
|
y1: w(e),
|
|
@@ -14135,10 +14295,10 @@ function Ed({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14135
14295
|
return /* @__PURE__ */ v("g", {
|
|
14136
14296
|
className: "select-chart__area",
|
|
14137
14297
|
children: [/* @__PURE__ */ _("path", {
|
|
14138
|
-
d:
|
|
14298
|
+
d: vd(i, a),
|
|
14139
14299
|
fill: `url(#${u}-b${n})`
|
|
14140
14300
|
}), /* @__PURE__ */ _("path", {
|
|
14141
|
-
d:
|
|
14301
|
+
d: gd(i),
|
|
14142
14302
|
fill: "none",
|
|
14143
14303
|
stroke: r,
|
|
14144
14304
|
strokeWidth: 1.5,
|
|
@@ -14192,11 +14352,11 @@ function Ed({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14192
14352
|
}
|
|
14193
14353
|
//#endregion
|
|
14194
14354
|
//#region src/SelectComboChart.tsx
|
|
14195
|
-
function
|
|
14196
|
-
let { ref: l, width: u } =
|
|
14197
|
-
...
|
|
14355
|
+
function jd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, formatLine: a = (e) => `${Math.round(e)}%`, className: o, ...s }) {
|
|
14356
|
+
let { ref: l, width: u } = sd(r), d = Q(), f = c(), [m, h] = p(null), g = {
|
|
14357
|
+
...Sd,
|
|
14198
14358
|
right: 58
|
|
14199
|
-
}, y = Math.max(0, u - g.left - g.right), b = r - g.top - g.bottom, x = e.length, S =
|
|
14359
|
+
}, y = Math.max(0, u - g.left - g.right), b = r - g.top - g.bottom, x = e.length, S = fd(Math.max(0, ...t.data)), C = fd(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 = g.top + b, A = (e) => k - e / S * b, j = (e) => k - e / C * b, M = (e) => g.left + w * e + w / 2, N = n.data.map((e, t) => [M(t), j(e)]);
|
|
14200
14360
|
return /* @__PURE__ */ v("div", {
|
|
14201
14361
|
...s,
|
|
14202
14362
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14222,7 +14382,7 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14222
14382
|
stopOpacity: .55
|
|
14223
14383
|
})]
|
|
14224
14384
|
}) }),
|
|
14225
|
-
|
|
14385
|
+
pd(S).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
14226
14386
|
x1: g.left,
|
|
14227
14387
|
x2: u - g.right,
|
|
14228
14388
|
y1: A(e),
|
|
@@ -14236,7 +14396,7 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14236
14396
|
textAnchor: "end",
|
|
14237
14397
|
children: i(e)
|
|
14238
14398
|
})] }, t)),
|
|
14239
|
-
|
|
14399
|
+
pd(C).map((e, t) => /* @__PURE__ */ _("text", {
|
|
14240
14400
|
x: u - 4,
|
|
14241
14401
|
y: j(e),
|
|
14242
14402
|
className: "select-chart__ylabel",
|
|
@@ -14265,7 +14425,7 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14265
14425
|
className: "select-chart__crosshair"
|
|
14266
14426
|
}),
|
|
14267
14427
|
/* @__PURE__ */ _("path", {
|
|
14268
|
-
d:
|
|
14428
|
+
d: gd(N),
|
|
14269
14429
|
fill: "none",
|
|
14270
14430
|
stroke: O,
|
|
14271
14431
|
strokeWidth: 2.5,
|
|
@@ -14323,8 +14483,8 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14323
14483
|
}
|
|
14324
14484
|
//#endregion
|
|
14325
14485
|
//#region src/SelectDonut.tsx
|
|
14326
|
-
var
|
|
14327
|
-
let p = Q(), m = c(), h = f(null), g =
|
|
14486
|
+
var Md = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r = Z, centerLabel: i, legend: a = !0, gap: o = 2, pie: s = !1, className: l, ...u }, d) {
|
|
14487
|
+
let p = Q(), m = c(), h = f(null), g = dd(h, t), y = e.reduce((e, t) => e + t.value, 0) || 1, b = g / 2, x = g / 2, S = g / 2 - 2, C = s ? 0 : S - n, w = 0;
|
|
14328
14488
|
return /* @__PURE__ */ v("div", {
|
|
14329
14489
|
ref: d,
|
|
14330
14490
|
...u,
|
|
@@ -14367,7 +14527,7 @@ var Od = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
14367
14527
|
w += e.value;
|
|
14368
14528
|
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);
|
|
14369
14529
|
return /* @__PURE__ */ _("path", {
|
|
14370
|
-
d:
|
|
14530
|
+
d: bd(b, x, S, C, c, l),
|
|
14371
14531
|
fill: `url(#${m}-s${t})`,
|
|
14372
14532
|
className: "select-chart__seg",
|
|
14373
14533
|
onMouseEnter: () => {
|
|
@@ -14415,12 +14575,12 @@ var Od = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
14415
14575
|
/* @__PURE__ */ _($, { tip: p.tip })
|
|
14416
14576
|
]
|
|
14417
14577
|
});
|
|
14418
|
-
}),
|
|
14419
|
-
function
|
|
14420
|
-
let { ref: u, width: d } =
|
|
14421
|
-
...
|
|
14422
|
-
left:
|
|
14423
|
-
}, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, h * 40), O = i ? Math.min(T * .5, 44) : D / h, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M *
|
|
14578
|
+
}), Nd = 6.4, Pd = 12;
|
|
14579
|
+
function Fd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i = !1, marker: a, tooltip: o, className: s, ...l }) {
|
|
14580
|
+
let { ref: u, width: d } = sd(n), f = Q(), p = c(), m = t.length, h = e.length || 1, g = t.map((t, n) => e.reduce((e, t) => e + (t.data[n] ?? 0), 0)), { max: y, values: b } = md(i ? Math.max(0, ...g) : Math.max(0, ...e.flatMap((e) => e.data)), 4), x = {
|
|
14581
|
+
...Sd,
|
|
14582
|
+
left: ud(b.map(r), u.current)
|
|
14583
|
+
}, S = Math.max(0, d - x.left - x.right), C = n - x.top - x.bottom, w = x.top + C, T = m ? S / m : 0, E = (e) => w - e / y * C, D = Math.min(T * .72, h * 40), O = i ? Math.min(T * .5, 44) : D / h, k = Math.min(30, 600 / Math.max(1, m)), A = (e, t) => e.pattern === "hatch" ? `url(#${p}-p${t})` : `url(#${p}-c${t})`, j = a && m > 0 ? Math.min(m - 1, Math.max(0, a.index)) : null, M = t.reduce((e, t) => Math.max(e, t.length), 0), N = T > 0 ? Math.max(1, Math.ceil((M * Nd + Pd) / T)) : 1, P = j ?? 0, F = (e) => N === 1 || ((e - P) % N + N) % N === 0, I = (t, n) => {
|
|
14424
14584
|
if (o) {
|
|
14425
14585
|
let e = o(t);
|
|
14426
14586
|
return e ? {
|
|
@@ -14587,7 +14747,7 @@ function jd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
14587
14747
|
}
|
|
14588
14748
|
//#endregion
|
|
14589
14749
|
//#region src/SelectChartLegend.tsx
|
|
14590
|
-
function
|
|
14750
|
+
function Id({ items: e, className: t, ...n }) {
|
|
14591
14751
|
return /* @__PURE__ */ _("div", {
|
|
14592
14752
|
...n,
|
|
14593
14753
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -14616,7 +14776,7 @@ function Md({ items: e, className: t, ...n }) {
|
|
|
14616
14776
|
}
|
|
14617
14777
|
//#endregion
|
|
14618
14778
|
//#region src/SelectShareBar.tsx
|
|
14619
|
-
function
|
|
14779
|
+
function Ld({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm", onSelect: a, selected: o, hint: s, className: c, ...l }) {
|
|
14620
14780
|
let u = e.map((e, t) => ({
|
|
14621
14781
|
...e,
|
|
14622
14782
|
key: e.key ?? e.label,
|
|
@@ -14721,7 +14881,7 @@ function Nd({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
14721
14881
|
}
|
|
14722
14882
|
//#endregion
|
|
14723
14883
|
//#region src/SelectRing.tsx
|
|
14724
|
-
var
|
|
14884
|
+
var Rd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone: i = "brand", label: a, caption: o, inverse: s = !1, ariaLabel: c, className: l, style: u, ...d }, f) {
|
|
14725
14885
|
let p = t > 0 ? t : 100, m = Math.max(0, Math.min(1, (Number.isFinite(e) ? e : 0) / p)), h = (r ?? Math.max(4, Math.round(n * .11))) / n * 100, g = 50 - h / 2, y = 2 * Math.PI * g, b = {
|
|
14726
14886
|
"--select-ring-size": `${n / 16}rem`,
|
|
14727
14887
|
...u
|
|
@@ -14765,7 +14925,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14765
14925
|
})]
|
|
14766
14926
|
})]
|
|
14767
14927
|
});
|
|
14768
|
-
}),
|
|
14928
|
+
}), zd = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
14769
14929
|
let l = (t) => {
|
|
14770
14930
|
let n = e[t];
|
|
14771
14931
|
return n != null && n.state !== "upcoming";
|
|
@@ -14823,7 +14983,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14823
14983
|
})
|
|
14824
14984
|
})
|
|
14825
14985
|
});
|
|
14826
|
-
}),
|
|
14986
|
+
}), Bd = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
14827
14987
|
let s = Math.max(0, Math.floor(e)), c = Math.max(0, Math.min(s, Math.floor(t))), l = n === void 0 ? `${c} de ${s}` : n;
|
|
14828
14988
|
return /* @__PURE__ */ v("span", {
|
|
14829
14989
|
ref: o,
|
|
@@ -14839,7 +14999,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14839
14999
|
children: l
|
|
14840
15000
|
})]
|
|
14841
15001
|
});
|
|
14842
|
-
}),
|
|
15002
|
+
}), Vd = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
14843
15003
|
return /* @__PURE__ */ _("span", {
|
|
14844
15004
|
ref: a,
|
|
14845
15005
|
"aria-hidden": "true",
|
|
@@ -14847,7 +15007,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14847
15007
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
14848
15008
|
children: e
|
|
14849
15009
|
});
|
|
14850
|
-
}),
|
|
15010
|
+
}), Hd = r(function({ tone: e = "neutral", media: t, eyebrow: n, title: r, description: i, actions: a, actionsPlacement: o = "below", aside: s, facts: c, asideSize: l = "half", size: u = "md", mediaInline: d = !1, children: f, className: p, ...m }, h) {
|
|
14851
15011
|
let g = a != null && o === "end";
|
|
14852
15012
|
return /* @__PURE__ */ _("section", {
|
|
14853
15013
|
ref: h,
|
|
@@ -14919,7 +15079,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14919
15079
|
]
|
|
14920
15080
|
})
|
|
14921
15081
|
});
|
|
14922
|
-
}),
|
|
15082
|
+
}), Ud = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
14923
15083
|
return /* @__PURE__ */ v("article", {
|
|
14924
15084
|
ref: l,
|
|
14925
15085
|
...c,
|
|
@@ -14954,7 +15114,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14954
15114
|
})]
|
|
14955
15115
|
})]
|
|
14956
15116
|
});
|
|
14957
|
-
}),
|
|
15117
|
+
}), Wd = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
14958
15118
|
return /* @__PURE__ */ _("dl", {
|
|
14959
15119
|
ref: s,
|
|
14960
15120
|
"aria-busy": i || void 0,
|
|
@@ -14981,7 +15141,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14981
15141
|
]
|
|
14982
15142
|
}, e.key ?? t))
|
|
14983
15143
|
});
|
|
14984
|
-
}),
|
|
15144
|
+
}), Gd = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
14985
15145
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
14986
15146
|
return /* @__PURE__ */ v("div", {
|
|
14987
15147
|
ref: a,
|
|
@@ -15024,7 +15184,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
15024
15184
|
})
|
|
15025
15185
|
]
|
|
15026
15186
|
});
|
|
15027
|
-
}),
|
|
15187
|
+
}), Kd = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
15028
15188
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
15029
15189
|
return /* @__PURE__ */ _("div", {
|
|
15030
15190
|
ref: o,
|
|
@@ -15066,19 +15226,19 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
15066
15226
|
});
|
|
15067
15227
|
//#endregion
|
|
15068
15228
|
//#region src/SelectGauge.tsx
|
|
15069
|
-
function
|
|
15229
|
+
function qd(e) {
|
|
15070
15230
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
15071
15231
|
}
|
|
15072
|
-
function
|
|
15232
|
+
function Jd(e, t, n, r) {
|
|
15073
15233
|
let i = Math.PI + r * Math.PI;
|
|
15074
15234
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
15075
15235
|
}
|
|
15076
|
-
function
|
|
15077
|
-
let [a, o] =
|
|
15236
|
+
function Yd(e, t, n, r, i) {
|
|
15237
|
+
let [a, o] = Jd(e, t, n, r), [s, c] = Jd(e, t, n, i);
|
|
15078
15238
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
15079
15239
|
}
|
|
15080
|
-
var
|
|
15081
|
-
let u =
|
|
15240
|
+
var Xd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10) })}%`, Zd = r(function({ value: e, label: t, caption: n, size: r = 220, thickness: i, color: a, format: o = Xd, className: s, ...c }, l) {
|
|
15241
|
+
let u = qd(e), d = i ?? Math.max(8, Math.round(r * .075)), f = d / 2 + 2, p = r / 2 - f, m = r / 2, h = r / 2, g = h + f, y = cr({
|
|
15082
15242
|
value: u,
|
|
15083
15243
|
format: o
|
|
15084
15244
|
});
|
|
@@ -15101,13 +15261,13 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15101
15261
|
"aria-hidden": "true",
|
|
15102
15262
|
children: [/* @__PURE__ */ _("path", {
|
|
15103
15263
|
className: "select-gauge__track",
|
|
15104
|
-
d:
|
|
15264
|
+
d: Yd(m, h, p, 0, 1),
|
|
15105
15265
|
fill: "none",
|
|
15106
15266
|
strokeWidth: d,
|
|
15107
15267
|
strokeLinecap: "round"
|
|
15108
15268
|
}), u > 0 && /* @__PURE__ */ _("path", {
|
|
15109
15269
|
className: "select-gauge__arc",
|
|
15110
|
-
d:
|
|
15270
|
+
d: Yd(m, h, p, 0, u / 100),
|
|
15111
15271
|
fill: "none",
|
|
15112
15272
|
stroke: a ?? "var(--select-chart-1)",
|
|
15113
15273
|
strokeWidth: d,
|
|
@@ -15130,7 +15290,7 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15130
15290
|
children: n
|
|
15131
15291
|
})]
|
|
15132
15292
|
});
|
|
15133
|
-
}),
|
|
15293
|
+
}), Qd = 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 }, m) {
|
|
15134
15294
|
let h = Q(), g = n.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e)), y = s ?? (g.length ? Math.min(...g) : 0), b = (c ?? (g.length ? Math.max(...g) : 1)) - y || 1, x = { "--heat-color": a }, S = {
|
|
15135
15295
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
15136
15296
|
width: "fit-content",
|
|
@@ -15190,12 +15350,12 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15190
15350
|
}, c);
|
|
15191
15351
|
})] }, n.label))
|
|
15192
15352
|
]
|
|
15193
|
-
}), /* @__PURE__ */ _(
|
|
15353
|
+
}), /* @__PURE__ */ _(wd, {
|
|
15194
15354
|
tip: h.tip,
|
|
15195
15355
|
onDismiss: h.hide
|
|
15196
15356
|
})]
|
|
15197
15357
|
});
|
|
15198
|
-
}),
|
|
15358
|
+
}), $d = r(function({ tiles: e, color: t = "var(--select-chart-1)", tileSize: n = 36, gap: r = 5, format: i = (e) => String(e), legend: a = !0, className: o, style: s, ...c }, l) {
|
|
15199
15359
|
let u = Q(), d = Math.max(0, ...e.map((e) => e.value ?? 0)), f = Math.max(0, ...e.map((e) => e.col)) + 1, p = Math.max(0, ...e.map((e) => e.row)) + 1, m = n + r, h = {
|
|
15200
15360
|
width: f * m - r,
|
|
15201
15361
|
height: p * m - r
|
|
@@ -15257,13 +15417,13 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15257
15417
|
/* @__PURE__ */ _("span", { children: "mais" })
|
|
15258
15418
|
]
|
|
15259
15419
|
}),
|
|
15260
|
-
/* @__PURE__ */ _(
|
|
15420
|
+
/* @__PURE__ */ _(wd, {
|
|
15261
15421
|
tip: u.tip,
|
|
15262
15422
|
onDismiss: u.hide
|
|
15263
15423
|
})
|
|
15264
15424
|
]
|
|
15265
15425
|
});
|
|
15266
|
-
}),
|
|
15426
|
+
}), ef = [
|
|
15267
15427
|
{
|
|
15268
15428
|
key: "RR",
|
|
15269
15429
|
label: "RR",
|
|
@@ -15456,7 +15616,7 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15456
15616
|
];
|
|
15457
15617
|
//#endregion
|
|
15458
15618
|
//#region src/SelectProgressList.tsx
|
|
15459
|
-
function
|
|
15619
|
+
function tf({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
15460
15620
|
if (e.length === 0) return /* @__PURE__ */ _("div", {
|
|
15461
15621
|
className: "select-progresslist__empty",
|
|
15462
15622
|
children: r
|
|
@@ -15507,7 +15667,7 @@ function Zd({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
15507
15667
|
}
|
|
15508
15668
|
//#endregion
|
|
15509
15669
|
//#region src/SelectRadialBar.tsx
|
|
15510
|
-
var
|
|
15670
|
+
var nf = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, rf = 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: s, ...l }, u) {
|
|
15511
15671
|
let d = c(), f = t / 2, p = t / 2;
|
|
15512
15672
|
return /* @__PURE__ */ v("div", {
|
|
15513
15673
|
ref: u,
|
|
@@ -15547,7 +15707,7 @@ var Qd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, $d = r(f
|
|
|
15547
15707
|
}) }), e.map((e, i) => {
|
|
15548
15708
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
15549
15709
|
if (a <= n / 2) return null;
|
|
15550
|
-
let o =
|
|
15710
|
+
let o = nf(e.value);
|
|
15551
15711
|
return /* @__PURE__ */ v("g", {
|
|
15552
15712
|
transform: `rotate(-90 ${f} ${p})`,
|
|
15553
15713
|
children: [/* @__PURE__ */ _("circle", {
|
|
@@ -15576,7 +15736,7 @@ var Qd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, $d = r(f
|
|
|
15576
15736
|
className: "select-radial__center",
|
|
15577
15737
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ _("strong", {
|
|
15578
15738
|
className: "select-radial__value",
|
|
15579
|
-
children: i(
|
|
15739
|
+
children: i(nf(e[0].value))
|
|
15580
15740
|
}) : null)
|
|
15581
15741
|
})]
|
|
15582
15742
|
}), o && /* @__PURE__ */ _("ul", {
|
|
@@ -15594,15 +15754,15 @@ var Qd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, $d = r(f
|
|
|
15594
15754
|
}),
|
|
15595
15755
|
/* @__PURE__ */ _("span", {
|
|
15596
15756
|
className: "select-donut__legval",
|
|
15597
|
-
children: i(
|
|
15757
|
+
children: i(nf(e.value))
|
|
15598
15758
|
})
|
|
15599
15759
|
]
|
|
15600
15760
|
}, t))
|
|
15601
15761
|
})]
|
|
15602
15762
|
});
|
|
15603
|
-
}),
|
|
15604
|
-
function
|
|
15605
|
-
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } =
|
|
15763
|
+
}), af = 6.1, of = 12, sf = 56, cf = .4;
|
|
15764
|
+
function lf({ data: e, height: t, color: n, format: r = Z, formatValue: i, distributed: a = !0, labelWidth: o, max: s, className: l, ...u }) {
|
|
15765
|
+
let d = t ?? e.length * 36 + 6 + 26, { ref: f, width: p } = sd(d), m = Q(), h = c(), g = s && s > 0 ? s : fd(Math.max(0, ...e.map((e) => e.value))), y = e.reduce((e, t) => Math.max(e, t.label.length), 0), b = Math.min(Math.max(sf, y * af + of), Math.max(sf, p * cf)), x = o ?? b, S = Math.max(3, Math.floor((x - of) / af)), C = (e) => e.length <= S ? e : `${e.slice(0, S - 1).trimEnd()}…`, w = Math.max(0, p - x - 28), T = d - 6 - 26, E = e.length ? T / e.length : 0, D = Math.min(E * .62, 22), O = (e) => x + e / g * w, k = (e, t) => e.color ?? (a ? X(t) : n ?? X(0));
|
|
15606
15766
|
return /* @__PURE__ */ v("div", {
|
|
15607
15767
|
...u,
|
|
15608
15768
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -15631,7 +15791,7 @@ function af({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15631
15791
|
})]
|
|
15632
15792
|
}, t);
|
|
15633
15793
|
}) }),
|
|
15634
|
-
|
|
15794
|
+
pd(g).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
15635
15795
|
x1: O(e),
|
|
15636
15796
|
x2: O(e),
|
|
15637
15797
|
y1: 6,
|
|
@@ -15677,7 +15837,7 @@ function af({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15677
15837
|
onMouseLeave: m.hide
|
|
15678
15838
|
}),
|
|
15679
15839
|
/* @__PURE__ */ v("text", {
|
|
15680
|
-
x: x -
|
|
15840
|
+
x: x - of / 2,
|
|
15681
15841
|
y: n,
|
|
15682
15842
|
className: "select-chart__ylabel",
|
|
15683
15843
|
dominantBaseline: "middle",
|
|
@@ -15692,8 +15852,8 @@ function af({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15692
15852
|
}
|
|
15693
15853
|
//#endregion
|
|
15694
15854
|
//#region src/SelectWaterfall.tsx
|
|
15695
|
-
function
|
|
15696
|
-
let { ref: a, width: o } =
|
|
15855
|
+
function uf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
15856
|
+
let { ref: a, width: o } = sd(t), s = Q(), l = c(), u = 0, d = e.map((e) => {
|
|
15697
15857
|
if (e.total) return u = e.value, {
|
|
15698
15858
|
...e,
|
|
15699
15859
|
start: 0,
|
|
@@ -15705,7 +15865,7 @@ function of({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15705
15865
|
start: t,
|
|
15706
15866
|
end: u
|
|
15707
15867
|
};
|
|
15708
|
-
}), f =
|
|
15868
|
+
}), f = fd(Math.max(0, ...d.map((e) => Math.max(e.start, e.end)))), p = Sd, m = Math.max(0, o - p.left - p.right), h = t - p.top - p.bottom, g = p.top + h, y = e.length, b = y ? m / y : 0, x = Math.min(b * .6, 46), S = (e) => g - e / f * h, C = {
|
|
15709
15869
|
total: "var(--select-chart-1)",
|
|
15710
15870
|
inc: "var(--select-chart-4)",
|
|
15711
15871
|
dec: "var(--select-chart-3)"
|
|
@@ -15739,7 +15899,7 @@ function of({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15739
15899
|
stopOpacity: .62
|
|
15740
15900
|
})]
|
|
15741
15901
|
}, e)) }),
|
|
15742
|
-
|
|
15902
|
+
pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
15743
15903
|
x1: p.left,
|
|
15744
15904
|
x2: o - p.right,
|
|
15745
15905
|
y1: S(e),
|
|
@@ -15807,7 +15967,7 @@ function of({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15807
15967
|
}
|
|
15808
15968
|
//#endregion
|
|
15809
15969
|
//#region src/SelectBullet.tsx
|
|
15810
|
-
var
|
|
15970
|
+
var df = (e) => Math.max(0, Math.min(100, e)), ff = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
15811
15971
|
return /* @__PURE__ */ _("div", {
|
|
15812
15972
|
ref: i,
|
|
15813
15973
|
...r,
|
|
@@ -15845,12 +16005,12 @@ var sf = (e) => Math.max(0, Math.min(100, e)), cf = r(function({ items: e, forma
|
|
|
15845
16005
|
children: [/* @__PURE__ */ _("span", {
|
|
15846
16006
|
className: "select-bullet__fill",
|
|
15847
16007
|
style: {
|
|
15848
|
-
width: `${
|
|
16008
|
+
width: `${df(e.value / i * 100)}%`,
|
|
15849
16009
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
15850
16010
|
}
|
|
15851
16011
|
}), /* @__PURE__ */ _("span", {
|
|
15852
16012
|
className: "select-bullet__tick",
|
|
15853
|
-
style: { left: `${
|
|
16013
|
+
style: { left: `${df(e.target / i * 100)}%` }
|
|
15854
16014
|
})]
|
|
15855
16015
|
})]
|
|
15856
16016
|
}, `${e.label}-${n}`);
|
|
@@ -15859,7 +16019,7 @@ var sf = (e) => Math.max(0, Math.min(100, e)), cf = r(function({ items: e, forma
|
|
|
15859
16019
|
});
|
|
15860
16020
|
//#endregion
|
|
15861
16021
|
//#region src/SelectTreemap.tsx
|
|
15862
|
-
function
|
|
16022
|
+
function pf(e, t, n) {
|
|
15863
16023
|
let r = [], i = (e, t) => {
|
|
15864
16024
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
15865
16025
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -15910,8 +16070,8 @@ function lf(e, t, n) {
|
|
|
15910
16070
|
};
|
|
15911
16071
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
15912
16072
|
}
|
|
15913
|
-
function
|
|
15914
|
-
let { ref: a, width: o } =
|
|
16073
|
+
function mf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
16074
|
+
let { ref: a, width: o } = sd(t), s = Q(), l = c(), u = e.map((e, t) => t).sort((t, n) => e[n].value - e[t].value), d = o > 0 ? pf(u.map((t) => e[t].value), o, t) : [];
|
|
15915
16075
|
return /* @__PURE__ */ v("div", {
|
|
15916
16076
|
...i,
|
|
15917
16077
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -15981,8 +16141,8 @@ function uf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15981
16141
|
}
|
|
15982
16142
|
//#endregion
|
|
15983
16143
|
//#region src/SelectScatter.tsx
|
|
15984
|
-
function
|
|
15985
|
-
let { ref: l, width: u } =
|
|
16144
|
+
function hf({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax: i, yMax: a, maxRadius: o = 18, className: s, ...c }) {
|
|
16145
|
+
let { ref: l, width: u } = sd(t), d = Q(), f = e.flatMap((e) => e.points), p = fd(i ?? Math.max(0, ...f.map((e) => e.x))), m = fd(a ?? Math.max(0, ...f.map((e) => e.y))), h = Math.max(1, ...f.map((e) => e.r ?? 0)), g = Sd, y = Math.max(0, u - g.left - g.right), b = t - g.top - g.bottom, x = g.top + b, S = (e) => g.left + e / p * y, C = (e) => x - e / m * b, w = (e) => e.r ? 4 + Math.sqrt(e.r) / Math.sqrt(h) * (o - 4) : 4.5;
|
|
15986
16146
|
return /* @__PURE__ */ v("div", {
|
|
15987
16147
|
...c,
|
|
15988
16148
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -15992,7 +16152,7 @@ function df({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15992
16152
|
height: t,
|
|
15993
16153
|
className: "select-chart",
|
|
15994
16154
|
children: [
|
|
15995
|
-
|
|
16155
|
+
pd(m).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
15996
16156
|
x1: g.left,
|
|
15997
16157
|
x2: u - g.right,
|
|
15998
16158
|
y1: C(e),
|
|
@@ -16006,7 +16166,7 @@ function df({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
16006
16166
|
textAnchor: "end",
|
|
16007
16167
|
children: r(e)
|
|
16008
16168
|
})] }, `y${t}`)),
|
|
16009
|
-
|
|
16169
|
+
pd(p).map((e, r, i) => /* @__PURE__ */ _("text", {
|
|
16010
16170
|
x: S(e),
|
|
16011
16171
|
y: t - g.bottom + 16,
|
|
16012
16172
|
className: "select-chart__xlabel",
|
|
@@ -16053,8 +16213,8 @@ function df({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
16053
16213
|
}
|
|
16054
16214
|
//#endregion
|
|
16055
16215
|
//#region src/SelectRadar.tsx
|
|
16056
|
-
var
|
|
16057
|
-
let d = Q(), f = c(), p = e.length, m = n / 2, h = n / 2, g = n / 2 - 30, y = r ??
|
|
16216
|
+
var gf = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z, levels: a = 4, legend: o = !0, className: s, ...l }, u) {
|
|
16217
|
+
let d = Q(), f = c(), p = e.length, m = n / 2, h = n / 2, g = n / 2 - 30, y = r ?? fd(Math.max(1, ...t.flatMap((e) => e.values))), b = (e) => (-90 + e * 360 / p) * Math.PI / 180, x = (e, t) => [m + t * Math.cos(b(e)), h + 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";
|
|
16058
16218
|
return /* @__PURE__ */ v("div", {
|
|
16059
16219
|
ref: u,
|
|
16060
16220
|
...l,
|
|
@@ -16163,8 +16323,8 @@ var ff = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
16163
16323
|
});
|
|
16164
16324
|
//#endregion
|
|
16165
16325
|
//#region src/SelectSankey.tsx
|
|
16166
|
-
function
|
|
16167
|
-
let { ref: s, width: c } =
|
|
16326
|
+
function _f({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeGap: i = 14, className: a, ...o }) {
|
|
16327
|
+
let { ref: s, width: c } = sd(t), l = Q(), u = [], d = [];
|
|
16168
16328
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
16169
16329
|
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), m = t - 12, h = Math.max(u.length, d.length), g = (m - i * Math.max(0, h - 1)) / f, y = (e, t, n) => {
|
|
16170
16330
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -16248,8 +16408,8 @@ function pf({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
16248
16408
|
}
|
|
16249
16409
|
//#endregion
|
|
16250
16410
|
//#region src/SelectCandlestick.tsx
|
|
16251
|
-
function
|
|
16252
|
-
let { ref: s, width: c } =
|
|
16411
|
+
function vf({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--select-chart-4)", downColor: i = "var(--select-chart-3)", className: a, ...o }) {
|
|
16412
|
+
let { ref: s, width: c } = sd(t), l = Q(), u = Sd, d = Math.max(0, c - u.left - u.right), f = t - u.top - u.bottom, p = u.top + f, m = Math.max(1, ...e.map((e) => e.high)), h = Math.min(m, ...e.map((e) => e.low)), g = (m - h) * .08 || 1, y = h - g, b = m + g, 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);
|
|
16253
16413
|
return /* @__PURE__ */ v("div", {
|
|
16254
16414
|
...o,
|
|
16255
16415
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -16338,8 +16498,8 @@ function mf({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
16338
16498
|
}
|
|
16339
16499
|
//#endregion
|
|
16340
16500
|
//#region src/SelectBoxPlot.tsx
|
|
16341
|
-
function
|
|
16342
|
-
let { ref: a, width: o } =
|
|
16501
|
+
function yf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
16502
|
+
let { ref: a, width: o } = sd(t), s = Q(), c = Sd, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = fd(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, h = m ? l / m : 0, g = Math.min(h * .5, 40);
|
|
16343
16503
|
return /* @__PURE__ */ v("div", {
|
|
16344
16504
|
...i,
|
|
16345
16505
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -16348,7 +16508,7 @@ function hf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16348
16508
|
width: o,
|
|
16349
16509
|
height: t,
|
|
16350
16510
|
className: "select-chart",
|
|
16351
|
-
children: [
|
|
16511
|
+
children: [pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
16352
16512
|
x1: c.left,
|
|
16353
16513
|
x2: o - c.right,
|
|
16354
16514
|
y1: p(e),
|
|
@@ -16458,8 +16618,8 @@ function hf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16458
16618
|
}
|
|
16459
16619
|
//#endregion
|
|
16460
16620
|
//#region src/SelectRangeBar.tsx
|
|
16461
|
-
function
|
|
16462
|
-
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } =
|
|
16621
|
+
function bf({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a = 96, className: o, ...s }) {
|
|
16622
|
+
let l = t ?? e.length * 36 + 6 + 26, { ref: u, width: d } = sd(l), f = Q(), p = c(), m = n ?? Math.min(0, ...e.map((e) => e.start)), h = (r ?? Math.max(1, ...e.map((e) => e.end))) - m || 1, g = a, y = Math.max(0, d - g - 14), b = l - 6 - 26, x = e.length ? b / e.length : 0, S = Math.min(x * .6, 22), C = (e) => g + (e - m) / h * y, w = Array.from({ length: 5 }, (e, t) => m + h * t / 4);
|
|
16463
16623
|
return /* @__PURE__ */ v("div", {
|
|
16464
16624
|
...s,
|
|
16465
16625
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -16539,7 +16699,7 @@ function gf({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
16539
16699
|
}
|
|
16540
16700
|
//#endregion
|
|
16541
16701
|
//#region src/SelectCalendarHeatmap.tsx
|
|
16542
|
-
var
|
|
16702
|
+
var xf = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
16543
16703
|
"Seg",
|
|
16544
16704
|
"",
|
|
16545
16705
|
"Qua",
|
|
@@ -16612,8 +16772,8 @@ var _f = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16612
16772
|
]
|
|
16613
16773
|
}), /* @__PURE__ */ _($, { tip: p.tip })]
|
|
16614
16774
|
});
|
|
16615
|
-
}),
|
|
16616
|
-
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p =
|
|
16775
|
+
}), Sf = r(function({ segments: e, size: t = 200, format: n = Z, legend: r = !0, rose: i = !1, className: a, ...o }, s) {
|
|
16776
|
+
let c = Q(), l = t / 2, u = t / 2, d = t / 2 - 2, f = e.length || 1, p = fd(Math.max(1, ...e.map((e) => e.value))), m = (e) => i ? Math.max(0, e) / p * d : Math.sqrt(Math.max(0, e) / p) * d, h = 360 / f;
|
|
16617
16777
|
return /* @__PURE__ */ v("div", {
|
|
16618
16778
|
ref: s,
|
|
16619
16779
|
...o,
|
|
@@ -16643,7 +16803,7 @@ var _f = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16643
16803
|
}, t)), e.map((e, t) => {
|
|
16644
16804
|
let r = t * h, i = (t + 1) * h - 1.5, a = e.color ?? X(t), o = Math.max(2, m(e.value)), s = ((r + i) / 2 - 90) * (Math.PI / 180), d = l + o * Math.cos(s), f = u + o * Math.sin(s);
|
|
16645
16805
|
return /* @__PURE__ */ _("path", {
|
|
16646
|
-
d:
|
|
16806
|
+
d: bd(l, u, o, 0, r, i),
|
|
16647
16807
|
fill: a,
|
|
16648
16808
|
fillOpacity: .8,
|
|
16649
16809
|
className: "select-chart__seg",
|
|
@@ -16686,13 +16846,13 @@ var _f = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16686
16846
|
});
|
|
16687
16847
|
//#endregion
|
|
16688
16848
|
//#region src/SelectSlope.tsx
|
|
16689
|
-
function
|
|
16690
|
-
let { ref: s, width: c } =
|
|
16849
|
+
function Cf({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i = Z, className: a, ...o }) {
|
|
16850
|
+
let { ref: s, width: c } = sd(r), l = Q(), u = {
|
|
16691
16851
|
top: 24,
|
|
16692
16852
|
right: 64,
|
|
16693
16853
|
bottom: 12,
|
|
16694
16854
|
left: 132
|
|
16695
|
-
}, d =
|
|
16855
|
+
}, d = fd(Math.max(1, ...e.flatMap((e) => [e.left, e.right]))), f = r - u.top - u.bottom, p = (e) => u.top + f - e / d * f, m = u.left, h = c - u.right;
|
|
16696
16856
|
return /* @__PURE__ */ v("div", {
|
|
16697
16857
|
...o,
|
|
16698
16858
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -16808,8 +16968,8 @@ function yf({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
16808
16968
|
}
|
|
16809
16969
|
//#endregion
|
|
16810
16970
|
//#region src/SelectDumbbell.tsx
|
|
16811
|
-
function
|
|
16812
|
-
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } =
|
|
16971
|
+
function wf({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel: i = "Depois", labelWidth: a = 96, className: o, ...s }) {
|
|
16972
|
+
let c = t ?? e.length * 34 + 6 + 26, { ref: l, width: u } = sd(c), d = Q(), f = "var(--select-chart-2)", p = "var(--select-chart-1)", m = fd(Math.max(1, ...e.flatMap((e) => [e.from, e.to]))), h = a, g = Math.max(0, u - h - 14), y = c - 6 - 26, b = e.length ? y / e.length : 0, x = (e) => h + e / m * g;
|
|
16813
16973
|
return /* @__PURE__ */ v("div", {
|
|
16814
16974
|
...s,
|
|
16815
16975
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -16818,7 +16978,7 @@ function bf({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16818
16978
|
width: u,
|
|
16819
16979
|
height: c,
|
|
16820
16980
|
className: "select-chart",
|
|
16821
|
-
children: [
|
|
16981
|
+
children: [pd(m).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
16822
16982
|
x1: x(e),
|
|
16823
16983
|
x2: x(e),
|
|
16824
16984
|
y1: 6,
|
|
@@ -16901,8 +17061,8 @@ function bf({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16901
17061
|
}
|
|
16902
17062
|
//#endregion
|
|
16903
17063
|
//#region src/SelectMarimekko.tsx
|
|
16904
|
-
function
|
|
16905
|
-
let { ref: o, width: s } =
|
|
17064
|
+
function Tf({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className: i, ...a }) {
|
|
17065
|
+
let { ref: o, width: s } = sd(t), c = Q(), l = {
|
|
16906
17066
|
top: 6,
|
|
16907
17067
|
right: 6,
|
|
16908
17068
|
bottom: 24,
|
|
@@ -16981,7 +17141,7 @@ function xf({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
16981
17141
|
}
|
|
16982
17142
|
//#endregion
|
|
16983
17143
|
//#region src/SelectGaugeBands.tsx
|
|
16984
|
-
var
|
|
17144
|
+
var Ef = 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) {
|
|
16985
17145
|
let u = i ?? Math.max(10, Math.round(r * .08)), d = u / 2 + 2, f = r / 2 - d, p = r / 2, m = r / 2, h = m + d, g = (e) => Math.max(0, Math.min(t, e)), y = (e) => {
|
|
16986
17146
|
let t = Math.PI + e * Math.PI;
|
|
16987
17147
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -17053,8 +17213,8 @@ var Sf = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
17053
17213
|
});
|
|
17054
17214
|
//#endregion
|
|
17055
17215
|
//#region src/SelectStreamGraph.tsx
|
|
17056
|
-
function
|
|
17057
|
-
let { ref: o, width: s } =
|
|
17216
|
+
function Df({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
17217
|
+
let { ref: o, width: s } = sd(n), l = Q(), u = c(), [d, f] = p(null), m = t.length, h = {
|
|
17058
17218
|
top: 14,
|
|
17059
17219
|
right: 14,
|
|
17060
17220
|
bottom: 28,
|
|
@@ -17097,7 +17257,7 @@ function Cf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
17097
17257
|
})]
|
|
17098
17258
|
}, t)) }),
|
|
17099
17259
|
w.map((e, t) => /* @__PURE__ */ _("path", {
|
|
17100
|
-
d:
|
|
17260
|
+
d: vd(e.upper, e.lower),
|
|
17101
17261
|
fill: `url(#${u}-st${t})`,
|
|
17102
17262
|
className: "select-chart__area"
|
|
17103
17263
|
}, t)),
|
|
@@ -17144,7 +17304,7 @@ function Cf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
17144
17304
|
}
|
|
17145
17305
|
//#endregion
|
|
17146
17306
|
//#region src/SelectSunburst.tsx
|
|
17147
|
-
var
|
|
17307
|
+
var Of = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
17148
17308
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
17149
17309
|
var t;
|
|
17150
17310
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -17170,7 +17330,7 @@ var wf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
17170
17330
|
h += r;
|
|
17171
17331
|
let a = h / m * 360, o = e.color ?? X(t), g = i;
|
|
17172
17332
|
return /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("path", {
|
|
17173
|
-
d:
|
|
17333
|
+
d: bd(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
17174
17334
|
fill: o,
|
|
17175
17335
|
className: "select-chart__seg",
|
|
17176
17336
|
onMouseEnter: () => s.show({
|
|
@@ -17190,7 +17350,7 @@ var wf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
17190
17350
|
g += t.value / m * 360;
|
|
17191
17351
|
let f = g, p = t.color ?? o, h = .45 + i % 3 * .2, v = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
17192
17352
|
return /* @__PURE__ */ _("path", {
|
|
17193
|
-
d:
|
|
17353
|
+
d: bd(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
17194
17354
|
fill: p,
|
|
17195
17355
|
fillOpacity: h,
|
|
17196
17356
|
className: "select-chart__seg",
|
|
@@ -17237,8 +17397,8 @@ var wf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
17237
17397
|
});
|
|
17238
17398
|
//#endregion
|
|
17239
17399
|
//#region src/SelectViolin.tsx
|
|
17240
|
-
function
|
|
17241
|
-
let { ref: a, width: o } =
|
|
17400
|
+
function kf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
17401
|
+
let { ref: a, width: o } = sd(t), s = Q(), c = Sd, l = Math.max(0, o - c.left - c.right), u = t - c.top - c.bottom, d = c.top + u, f = fd(Math.max(1, ...e.map((e) => e.max))), p = (e) => d - e / f * u, m = e.length, h = m ? l / m : 0, g = Math.min(h * .42, 46), y = Math.max(1, ...e.flatMap((e) => e.bins));
|
|
17242
17402
|
return /* @__PURE__ */ v("div", {
|
|
17243
17403
|
...i,
|
|
17244
17404
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -17247,7 +17407,7 @@ function Tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
17247
17407
|
width: o,
|
|
17248
17408
|
height: t,
|
|
17249
17409
|
className: "select-chart",
|
|
17250
|
-
children: [
|
|
17410
|
+
children: [pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
17251
17411
|
x1: c.left,
|
|
17252
17412
|
x2: o - c.right,
|
|
17253
17413
|
y1: p(e),
|
|
@@ -17264,7 +17424,7 @@ function Tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
17264
17424
|
let i = c.left + h * r + h / 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 * g, f = [], m = [];
|
|
17265
17425
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
17266
17426
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
17267
|
-
let b = `${
|
|
17427
|
+
let b = `${hd(f)} ${hd(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
17268
17428
|
return /* @__PURE__ */ v("g", { children: [
|
|
17269
17429
|
/* @__PURE__ */ _("path", {
|
|
17270
17430
|
d: b,
|
|
@@ -17325,7 +17485,7 @@ function Tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
17325
17485
|
}
|
|
17326
17486
|
//#endregion
|
|
17327
17487
|
//#region src/SelectChord.tsx
|
|
17328
|
-
var
|
|
17488
|
+
var Af = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
17329
17489
|
let c = Q(), l = t.length, u = n / 2, d = n / 2, f = n / 2 - 22, p = f - 9, m = e.map((e) => e.reduce((e, t) => e + t, 0)), h = m.reduce((e, t) => e + t, 0) || 1, g = (2 * Math.PI - l * i) / h, y = [], b = 0;
|
|
17330
17490
|
for (let e = 0; e < l; e++) {
|
|
17331
17491
|
let t = b, n = b + m[e] * g;
|
|
@@ -17392,7 +17552,7 @@ var Ef = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
17392
17552
|
}, n)), y.map((e, n) => {
|
|
17393
17553
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
17394
17554
|
return /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("path", {
|
|
17395
|
-
d:
|
|
17555
|
+
d: bd(u, d, f, p, w(e.a0), w(e.a1)),
|
|
17396
17556
|
fill: X(n),
|
|
17397
17557
|
className: "select-chord__arc"
|
|
17398
17558
|
}), /* @__PURE__ */ _("text", {
|
|
@@ -17410,8 +17570,8 @@ var Ef = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
17410
17570
|
});
|
|
17411
17571
|
//#endregion
|
|
17412
17572
|
//#region src/SelectHexbin.tsx
|
|
17413
|
-
function
|
|
17414
|
-
let { ref: l, width: u } =
|
|
17573
|
+
function jf({ points: e, height: t = 240, radius: n = 16, color: r = "var(--select-chart-1)", xMax: i, yMax: a, format: o = Z, className: s, ...c }) {
|
|
17574
|
+
let { ref: l, width: u } = sd(t), d = Q(), f = Math.max(0, u - 24), p = t - 24, m = i ?? Math.max(1, ...e.map((e) => e.x)), h = a ?? Math.max(1, ...e.map((e) => e.y)), g = (e) => 12 + e / m * f, y = (e) => 12 + p - e / h * p, b = n, x = Math.sqrt(3), S = (e, t) => {
|
|
17415
17575
|
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);
|
|
17416
17576
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
17417
17577
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -17462,7 +17622,7 @@ function Df({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
17462
17622
|
}
|
|
17463
17623
|
//#endregion
|
|
17464
17624
|
//#region src/SelectWordCloud.tsx
|
|
17465
|
-
var
|
|
17625
|
+
var Mf = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
17466
17626
|
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);
|
|
17467
17627
|
return /* @__PURE__ */ _("div", {
|
|
17468
17628
|
ref: a,
|
|
@@ -17479,7 +17639,7 @@ var Of = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
17479
17639
|
children: e.text
|
|
17480
17640
|
}, `${e.text}-${t}`))
|
|
17481
17641
|
});
|
|
17482
|
-
}),
|
|
17642
|
+
}), Nf = [
|
|
17483
17643
|
[
|
|
17484
17644
|
-59.6,
|
|
17485
17645
|
-80,
|
|
@@ -27874,24 +28034,24 @@ var Of = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
27874
28034
|
-27.1,
|
|
27875
28035
|
83.5
|
|
27876
28036
|
]
|
|
27877
|
-
],
|
|
27878
|
-
function
|
|
27879
|
-
let n = e *
|
|
28037
|
+
], Pf = Math.PI / 180;
|
|
28038
|
+
function Ff(e, t) {
|
|
28039
|
+
let n = e * Pf, r = t * Pf;
|
|
27880
28040
|
return [
|
|
27881
28041
|
Math.cos(n) * Math.sin(r),
|
|
27882
28042
|
Math.sin(n),
|
|
27883
28043
|
Math.cos(n) * Math.cos(r)
|
|
27884
28044
|
];
|
|
27885
28045
|
}
|
|
27886
|
-
function
|
|
27887
|
-
let a = r *
|
|
28046
|
+
function If([e, t, n], r, i) {
|
|
28047
|
+
let a = r * Pf, o = e * Math.cos(a) + n * Math.sin(a), s = -e * Math.sin(a) + n * Math.cos(a), c = i * Pf;
|
|
27888
28048
|
return [
|
|
27889
28049
|
o,
|
|
27890
28050
|
t * Math.cos(c) - s * Math.sin(c),
|
|
27891
28051
|
t * Math.sin(c) + s * Math.cos(c)
|
|
27892
28052
|
];
|
|
27893
28053
|
}
|
|
27894
|
-
function
|
|
28054
|
+
function Lf(e, t, n) {
|
|
27895
28055
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
27896
28056
|
r = Math.max(-1, Math.min(1, r));
|
|
27897
28057
|
let i = Math.acos(r);
|
|
@@ -27903,9 +28063,9 @@ function Nf(e, t, n) {
|
|
|
27903
28063
|
e[2] * o + t[2] * s
|
|
27904
28064
|
];
|
|
27905
28065
|
}
|
|
27906
|
-
var
|
|
28066
|
+
var Rf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1e-6, zf = r(function({ points: e = [], arcs: t = [], size: n = 320, tilt: r = -18, spin: i = !0, speed: a = 7, color: o = "var(--select-chart-1)", format: l = Z, legend: u = !0, map: m = !0, fluid: h = !1, onZoomChange: g, className: y, ...b }, x) {
|
|
27907
28067
|
var S, C;
|
|
27908
|
-
let w = c(), T = Q(), E = f(null), D =
|
|
28068
|
+
let w = c(), T = Q(), E = f(null), D = dd(E, n), O = e.length ? e.reduce((e, t) => e + t.lng, 0) / e.length : 0, k = f(typeof window < "u" && !!((S = (C = window).matchMedia) != null && S.call(C, "(prefers-reduced-motion: reduce)").matches)), A = f({
|
|
27909
28069
|
lng: -O,
|
|
27910
28070
|
lat: r
|
|
27911
28071
|
}), j = f({
|
|
@@ -27964,7 +28124,7 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27964
28124
|
var t, n;
|
|
27965
28125
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, V(!1), U());
|
|
27966
28126
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, J = (e) => {
|
|
27967
|
-
let t =
|
|
28127
|
+
let t = If(e, A.current.lng, A.current.lat);
|
|
27968
28128
|
return {
|
|
27969
28129
|
x: K + G * t[0],
|
|
27970
28130
|
y: q - G * t[1],
|
|
@@ -27974,25 +28134,25 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27974
28134
|
let e = [];
|
|
27975
28135
|
for (let t = -180; t < 180; t += 30) {
|
|
27976
28136
|
let n = [];
|
|
27977
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
28137
|
+
for (let e = 0; e <= 48; e++) n.push(Ff(-90 + 180 * e / 48, t));
|
|
27978
28138
|
e.push(n);
|
|
27979
28139
|
}
|
|
27980
28140
|
for (let t = -60; t <= 60; t += 30) {
|
|
27981
28141
|
let n = [];
|
|
27982
|
-
for (let e = 0; e <= 48; e++) n.push(
|
|
28142
|
+
for (let e = 0; e <= 48; e++) n.push(Ff(t, -180 + 360 * e / 48));
|
|
27983
28143
|
e.push(n);
|
|
27984
28144
|
}
|
|
27985
28145
|
return e;
|
|
27986
|
-
}, []), oe = d(() =>
|
|
28146
|
+
}, []), oe = d(() => Nf.map((e) => {
|
|
27987
28147
|
let t = [];
|
|
27988
|
-
for (let n = 0; n < e.length; n += 2) t.push(
|
|
28148
|
+
for (let n = 0; n < e.length; n += 2) t.push(Ff(e[n + 1], e[n]));
|
|
27989
28149
|
return t;
|
|
27990
28150
|
}), []), se = (e) => ({
|
|
27991
28151
|
x: K + G * e[0],
|
|
27992
28152
|
y: q - G * e[1]
|
|
27993
28153
|
}), ce = "", le = "";
|
|
27994
28154
|
if (m) for (let e of oe) {
|
|
27995
|
-
let t = e.map((e) =>
|
|
28155
|
+
let t = e.map((e) => If(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
27996
28156
|
for (let e of t) if (e[2] > 0) {
|
|
27997
28157
|
let t = se(e);
|
|
27998
28158
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -28040,7 +28200,7 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
28040
28200
|
}
|
|
28041
28201
|
return t;
|
|
28042
28202
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
28043
|
-
let n = J(
|
|
28203
|
+
let n = J(Ff(e.lat, e.lng));
|
|
28044
28204
|
return {
|
|
28045
28205
|
...e,
|
|
28046
28206
|
i: t,
|
|
@@ -28050,20 +28210,20 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
28050
28210
|
col: e.color ?? o
|
|
28051
28211
|
};
|
|
28052
28212
|
}), pe = ee == null ? null : e[ee], me = t.map((e, t) => {
|
|
28053
|
-
let n =
|
|
28213
|
+
let n = Ff(e.from.lat, e.from.lng), r = Ff(e.to.lat, e.to.lng), i = "", a = !1;
|
|
28054
28214
|
for (let e = 0; e <= 40; e++) {
|
|
28055
|
-
let t = e / 40, o =
|
|
28215
|
+
let t = e / 40, o = Lf(n, r, t), s = 1 + .34 * Math.sin(Math.PI * t), c = If(o, A.current.lng, A.current.lat), l = J([
|
|
28056
28216
|
o[0] * s,
|
|
28057
28217
|
o[1] * s,
|
|
28058
28218
|
o[2] * s
|
|
28059
28219
|
]);
|
|
28060
28220
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
28061
28221
|
}
|
|
28062
|
-
let s = k.current ? .5 : (I.current * .16 + t * .27) % 1, c =
|
|
28222
|
+
let s = k.current ? .5 : (I.current * .16 + t * .27) % 1, c = Lf(n, r, s), l = 1 + .34 * Math.sin(Math.PI * s), u = If(c, A.current.lng, A.current.lat), d = J([
|
|
28063
28223
|
c[0] * l,
|
|
28064
28224
|
c[1] * l,
|
|
28065
28225
|
c[2] * l
|
|
28066
|
-
]), f = pe != null && (
|
|
28226
|
+
]), f = pe != null && (Rf(e.from, pe) || Rf(e.to, pe));
|
|
28067
28227
|
return {
|
|
28068
28228
|
d: i,
|
|
28069
28229
|
col: e.color ?? o,
|
|
@@ -28337,8 +28497,8 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
28337
28497
|
});
|
|
28338
28498
|
//#endregion
|
|
28339
28499
|
//#region src/SelectTicker.tsx
|
|
28340
|
-
function
|
|
28341
|
-
let i = f(null), a = f(null), o = f(null), c =
|
|
28500
|
+
function Bf({ children: e, speed: t = 28, className: n, ...r }) {
|
|
28501
|
+
let i = f(null), a = f(null), o = f(null), c = dd(i, 0), l = dd(o, 0), u = c > 0 && l > c + 1, d = f(0), p = f(null), m = f(!1);
|
|
28342
28502
|
s(() => {
|
|
28343
28503
|
var e, n;
|
|
28344
28504
|
let r = a.current;
|
|
@@ -28399,12 +28559,12 @@ function If({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
28399
28559
|
}
|
|
28400
28560
|
//#endregion
|
|
28401
28561
|
//#region src/SelectPareto.tsx
|
|
28402
|
-
function
|
|
28562
|
+
function Vf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
28403
28563
|
var a;
|
|
28404
|
-
let { ref: o, width: s } =
|
|
28405
|
-
...
|
|
28564
|
+
let { ref: o, width: s } = sd(t), l = Q(), u = c(), [d, f] = p(null), m = {
|
|
28565
|
+
...Sd,
|
|
28406
28566
|
right: 44
|
|
28407
|
-
}, h = [...e].sort((e, t) => t.value - e.value), g = h.length, y = h.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = h.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, s - m.left - m.right), C = t - m.top - m.bottom, w =
|
|
28567
|
+
}, h = [...e].sort((e, t) => t.value - e.value), g = h.length, y = h.reduce((e, t) => e + t.value, 0) || 1, b = 0, x = h.map((e) => (b += e.value, b / y * 100)), S = Math.max(0, s - m.left - m.right), C = t - m.top - m.bottom, w = fd(((a = h[0]) == null ? void 0 : a.value) ?? 1), T = g > 0 ? S / g : 0, E = Math.min(T * .62, 46), D = m.top + C, O = (e) => D - e / w * C, k = (e) => D - e / 100 * C, A = (e) => m.left + T * e + T / 2, j = x.map((e, t) => [A(t), k(e)]), M = X(0), N = X(1);
|
|
28408
28568
|
return /* @__PURE__ */ v("div", {
|
|
28409
28569
|
...i,
|
|
28410
28570
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -28433,7 +28593,7 @@ function Lf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28433
28593
|
stopOpacity: .55
|
|
28434
28594
|
})]
|
|
28435
28595
|
}) }),
|
|
28436
|
-
|
|
28596
|
+
pd(w).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
28437
28597
|
x1: m.left,
|
|
28438
28598
|
x2: s - m.right,
|
|
28439
28599
|
y1: O(e),
|
|
@@ -28497,7 +28657,7 @@ function Lf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28497
28657
|
}, t);
|
|
28498
28658
|
}),
|
|
28499
28659
|
/* @__PURE__ */ _("path", {
|
|
28500
|
-
d:
|
|
28660
|
+
d: gd(j),
|
|
28501
28661
|
fill: "none",
|
|
28502
28662
|
stroke: N,
|
|
28503
28663
|
strokeWidth: 2,
|
|
@@ -28525,7 +28685,7 @@ function Lf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28525
28685
|
}
|
|
28526
28686
|
//#endregion
|
|
28527
28687
|
//#region src/SelectWaffle.tsx
|
|
28528
|
-
var
|
|
28688
|
+
var Hf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
28529
28689
|
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) => ({
|
|
28530
28690
|
i: t,
|
|
28531
28691
|
frac: e - u[t]
|
|
@@ -28574,8 +28734,8 @@ var Rf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
28574
28734
|
});
|
|
28575
28735
|
//#endregion
|
|
28576
28736
|
//#region src/SelectPyramid.tsx
|
|
28577
|
-
function
|
|
28578
|
-
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: f } =
|
|
28737
|
+
function Uf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", height: r, format: i = Z, leftColor: a, rightColor: o, centerWidth: s = 84, className: c, ...l }) {
|
|
28738
|
+
let u = r ?? Math.max(180, e.length * 40 + 36), { ref: d, width: f } = sd(u), m = Q(), [h, g] = p(null), y = Math.max(1, ...e.flatMap((e) => [e.left, e.right])), b = Math.max(0, (f - 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);
|
|
28579
28739
|
return /* @__PURE__ */ v("div", {
|
|
28580
28740
|
...l,
|
|
28581
28741
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -28682,8 +28842,8 @@ function zf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
28682
28842
|
}
|
|
28683
28843
|
//#endregion
|
|
28684
28844
|
//#region src/SelectBump.tsx
|
|
28685
|
-
function
|
|
28686
|
-
let { ref: o, width: s } =
|
|
28845
|
+
function Wf({ series: e, labels: t, height: n = 240, format: r = Z, className: i, ...a }) {
|
|
28846
|
+
let { ref: o, width: s } = sd(n), c = Q(), [l, u] = p(null), d = {
|
|
28687
28847
|
top: 16,
|
|
28688
28848
|
right: 78,
|
|
28689
28849
|
bottom: 28,
|
|
@@ -28719,7 +28879,7 @@ function Bf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28719
28879
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
28720
28880
|
children: [
|
|
28721
28881
|
/* @__PURE__ */ _("path", {
|
|
28722
|
-
d:
|
|
28882
|
+
d: gd(a),
|
|
28723
28883
|
fill: "none",
|
|
28724
28884
|
stroke: i,
|
|
28725
28885
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -28767,8 +28927,8 @@ function Bf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28767
28927
|
}
|
|
28768
28928
|
//#endregion
|
|
28769
28929
|
//#region src/SelectParallel.tsx
|
|
28770
|
-
function
|
|
28771
|
-
let { ref: o, width: s } =
|
|
28930
|
+
function Gf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ...a }) {
|
|
28931
|
+
let { ref: o, width: s } = sd(n), c = Q(), [l, u] = p(null), d = {
|
|
28772
28932
|
top: 30,
|
|
28773
28933
|
right: 28,
|
|
28774
28934
|
bottom: 26,
|
|
@@ -28859,25 +29019,25 @@ function Vf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
28859
29019
|
}
|
|
28860
29020
|
//#endregion
|
|
28861
29021
|
//#region src/SelectIcicle.tsx
|
|
28862
|
-
function
|
|
28863
|
-
return e.children && e.children.length ? e.children.reduce((e, t) => e +
|
|
29022
|
+
function Kf(e) {
|
|
29023
|
+
return e.children && e.children.length ? e.children.reduce((e, t) => e + Kf(t), 0) : e.value ?? 0;
|
|
28864
29024
|
}
|
|
28865
|
-
function
|
|
28866
|
-
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) =>
|
|
29025
|
+
function qf(e, t = 0) {
|
|
29026
|
+
return !e.children || !e.children.length ? t : Math.max(...e.children.map((e) => qf(e, t + 1)));
|
|
28867
29027
|
}
|
|
28868
|
-
function
|
|
28869
|
-
let { ref: a, width: o } =
|
|
29028
|
+
function Jf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
29029
|
+
let { ref: a, width: o } = sd(t), s = Q(), [c, l] = p(null), u = qf(e), d = t / (u + 1), f = [], m = (e, t, n, r, i) => {
|
|
28870
29030
|
if (f.push({
|
|
28871
29031
|
node: e,
|
|
28872
29032
|
x0: t,
|
|
28873
29033
|
x1: n,
|
|
28874
29034
|
depth: r,
|
|
28875
29035
|
color: e.color ?? X(i),
|
|
28876
|
-
value:
|
|
29036
|
+
value: Kf(e)
|
|
28877
29037
|
}), e.children && e.children.length) {
|
|
28878
|
-
let a = e.children.reduce((e, t) => e +
|
|
29038
|
+
let a = e.children.reduce((e, t) => e + Kf(t), 0) || 1, o = t;
|
|
28879
29039
|
e.children.forEach((e, s) => {
|
|
28880
|
-
let c = (n - t) *
|
|
29040
|
+
let c = (n - t) * Kf(e) / a;
|
|
28881
29041
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
28882
29042
|
});
|
|
28883
29043
|
}
|
|
@@ -28938,8 +29098,8 @@ function Wf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28938
29098
|
}
|
|
28939
29099
|
//#endregion
|
|
28940
29100
|
//#region src/SelectTree.tsx
|
|
28941
|
-
function
|
|
28942
|
-
let { ref: i, width: a } =
|
|
29101
|
+
function Yf({ data: e, height: t = 260, className: n, ...r }) {
|
|
29102
|
+
let { ref: i, width: a } = sd(t), o = Q(), [s, c] = p(null), l = {
|
|
28943
29103
|
top: 14,
|
|
28944
29104
|
right: 96,
|
|
28945
29105
|
bottom: 14,
|
|
@@ -29016,7 +29176,7 @@ function Gf({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
29016
29176
|
}
|
|
29017
29177
|
//#endregion
|
|
29018
29178
|
//#region src/SelectVenn.tsx
|
|
29019
|
-
var
|
|
29179
|
+
var Xf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
29020
29180
|
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]] : [
|
|
29021
29181
|
[o, s - l * .5],
|
|
29022
29182
|
[o - l * .5, s + l * .36],
|
|
@@ -29081,7 +29241,7 @@ var Kf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
29081
29241
|
}, t))
|
|
29082
29242
|
})]
|
|
29083
29243
|
});
|
|
29084
|
-
}),
|
|
29244
|
+
}), Zf = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
29085
29245
|
let o = Q(), [s, c] = p(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
29086
29246
|
d: e,
|
|
29087
29247
|
i: t,
|
|
@@ -29184,8 +29344,8 @@ var Kf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
29184
29344
|
});
|
|
29185
29345
|
//#endregion
|
|
29186
29346
|
//#region src/SelectNetwork.tsx
|
|
29187
|
-
function
|
|
29188
|
-
let { ref: o, width: s } =
|
|
29347
|
+
function Qf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i, ...a }) {
|
|
29348
|
+
let { ref: o, width: s } = sd(n), c = Q(), [l, u] = p(null), f = d(() => {
|
|
29189
29349
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
29190
29350
|
if (!a) return o;
|
|
29191
29351
|
let c = e.map((e, t) => ({
|
|
@@ -29298,8 +29458,8 @@ function Jf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
29298
29458
|
}
|
|
29299
29459
|
//#endregion
|
|
29300
29460
|
//#region src/SelectSearchMenu.tsx
|
|
29301
|
-
var
|
|
29302
|
-
function
|
|
29461
|
+
var $f = "[role=\"option\"]:not([disabled])";
|
|
29462
|
+
function ep({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…", status: r, footer: i, width: a = "min(22rem, 86vw)", autoFocus: o = !1, selectFirstOnEnter: c = !1, listMaxHeight: l, children: u }) {
|
|
29303
29463
|
let d = f(null);
|
|
29304
29464
|
return s(() => {
|
|
29305
29465
|
if (!o) return;
|
|
@@ -29315,7 +29475,7 @@ function Xf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
29315
29475
|
onKeyDown: (e) => {
|
|
29316
29476
|
let t = d.current;
|
|
29317
29477
|
if (!t) return;
|
|
29318
|
-
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll(
|
|
29478
|
+
let n = t.querySelector("input"), r = Array.from(t.querySelectorAll($f)), i = r.indexOf(document.activeElement);
|
|
29319
29479
|
if (e.key === "ArrowDown") {
|
|
29320
29480
|
var a;
|
|
29321
29481
|
if (r.length === 0) return;
|
|
@@ -29346,7 +29506,7 @@ function Xf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
29346
29506
|
className: "select-combobox__empty",
|
|
29347
29507
|
role: "status",
|
|
29348
29508
|
children: r
|
|
29349
|
-
}) : /* @__PURE__ */ _(
|
|
29509
|
+
}) : /* @__PURE__ */ _(tp, {
|
|
29350
29510
|
maxHeight: l,
|
|
29351
29511
|
children: u
|
|
29352
29512
|
}),
|
|
@@ -29357,7 +29517,7 @@ function Xf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
29357
29517
|
]
|
|
29358
29518
|
});
|
|
29359
29519
|
}
|
|
29360
|
-
function
|
|
29520
|
+
function tp({ children: e, maxHeight: t }) {
|
|
29361
29521
|
let n = sr({
|
|
29362
29522
|
selector: ".select-combobox__option",
|
|
29363
29523
|
y: 6,
|
|
@@ -29372,7 +29532,7 @@ function Zf({ children: e, maxHeight: t }) {
|
|
|
29372
29532
|
children: e
|
|
29373
29533
|
});
|
|
29374
29534
|
}
|
|
29375
|
-
function
|
|
29535
|
+
function np({ label: e, children: t }) {
|
|
29376
29536
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ v("div", {
|
|
29377
29537
|
role: "group",
|
|
29378
29538
|
className: "select-searchmenu__group",
|
|
@@ -29384,7 +29544,7 @@ function Qf({ label: e, children: t }) {
|
|
|
29384
29544
|
}), t]
|
|
29385
29545
|
}) : null;
|
|
29386
29546
|
}
|
|
29387
|
-
function
|
|
29547
|
+
function rp({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
29388
29548
|
return /* @__PURE__ */ v("button", {
|
|
29389
29549
|
type: "button",
|
|
29390
29550
|
role: "option",
|
|
@@ -29417,14 +29577,14 @@ function $f({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
29417
29577
|
}
|
|
29418
29578
|
//#endregion
|
|
29419
29579
|
//#region src/SelectKbd.tsx
|
|
29420
|
-
var
|
|
29580
|
+
var ip = r(function({ children: e, className: t, ...n }, r) {
|
|
29421
29581
|
return /* @__PURE__ */ _("kbd", {
|
|
29422
29582
|
ref: r,
|
|
29423
29583
|
...n,
|
|
29424
29584
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
29425
29585
|
children: e
|
|
29426
29586
|
});
|
|
29427
|
-
}),
|
|
29587
|
+
}), ap = [
|
|
29428
29588
|
{
|
|
29429
29589
|
value: "light",
|
|
29430
29590
|
label: "Claro",
|
|
@@ -29441,15 +29601,15 @@ var ep = r(function({ children: e, className: t, ...n }, r) {
|
|
|
29441
29601
|
icon: /* @__PURE__ */ _(je, {})
|
|
29442
29602
|
}
|
|
29443
29603
|
];
|
|
29444
|
-
function
|
|
29604
|
+
function op(e) {
|
|
29445
29605
|
if (e === "system") {
|
|
29446
29606
|
var t, n;
|
|
29447
29607
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
29448
29608
|
}
|
|
29449
29609
|
return e;
|
|
29450
29610
|
}
|
|
29451
|
-
function
|
|
29452
|
-
let [i, a] = p(!1), o = f(null), c =
|
|
29611
|
+
function sp({ value: e, onChange: t, className: n, ...r }) {
|
|
29612
|
+
let [i, a] = p(!1), o = f(null), c = ap.find((t) => t.value === e) ?? ap[2];
|
|
29453
29613
|
return s(() => {
|
|
29454
29614
|
if (!i) return;
|
|
29455
29615
|
let e = (e) => {
|
|
@@ -29469,7 +29629,7 @@ function rp({ value: e, onChange: t, className: n, ...r }) {
|
|
|
29469
29629
|
})
|
|
29470
29630
|
}), i && /* @__PURE__ */ _("div", {
|
|
29471
29631
|
className: "select-themeswitcher__popover",
|
|
29472
|
-
children: /* @__PURE__ */ _(Xa, { children:
|
|
29632
|
+
children: /* @__PURE__ */ _(Xa, { children: ap.map((n) => /* @__PURE__ */ _(Qa, {
|
|
29473
29633
|
icon: n.icon,
|
|
29474
29634
|
active: n.value === e,
|
|
29475
29635
|
trailing: n.value === e ? /* @__PURE__ */ _(Ue, {}) : null,
|
|
@@ -29483,8 +29643,8 @@ function rp({ value: e, onChange: t, className: n, ...r }) {
|
|
|
29483
29643
|
}
|
|
29484
29644
|
//#endregion
|
|
29485
29645
|
//#region src/SelectDetail.tsx
|
|
29486
|
-
var
|
|
29487
|
-
function
|
|
29646
|
+
var cp = n(!1);
|
|
29647
|
+
function lp({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
29488
29648
|
let i = sr({
|
|
29489
29649
|
selector: ".select-detail",
|
|
29490
29650
|
y: 8,
|
|
@@ -29492,7 +29652,7 @@ function ap({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
29492
29652
|
stagger: .05,
|
|
29493
29653
|
scroll: !0
|
|
29494
29654
|
});
|
|
29495
|
-
return /* @__PURE__ */ _(
|
|
29655
|
+
return /* @__PURE__ */ _(cp.Provider, {
|
|
29496
29656
|
value: r,
|
|
29497
29657
|
children: /* @__PURE__ */ _("div", {
|
|
29498
29658
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -29501,8 +29661,8 @@ function ap({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
29501
29661
|
})
|
|
29502
29662
|
});
|
|
29503
29663
|
}
|
|
29504
|
-
var
|
|
29505
|
-
let l = o(
|
|
29664
|
+
var up = r(function({ label: e, children: t, action: n, align: r = "center", loading: i, className: a, ...s }, c) {
|
|
29665
|
+
let l = o(cp), u = i ?? l;
|
|
29506
29666
|
return /* @__PURE__ */ v("div", {
|
|
29507
29667
|
ref: c,
|
|
29508
29668
|
...s,
|
|
@@ -29522,7 +29682,7 @@ var op = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
29522
29682
|
})
|
|
29523
29683
|
]
|
|
29524
29684
|
});
|
|
29525
|
-
}),
|
|
29685
|
+
}), dp = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
29526
29686
|
let c = r === "vertical";
|
|
29527
29687
|
return /* @__PURE__ */ _("ol", {
|
|
29528
29688
|
ref: s,
|
|
@@ -29565,7 +29725,7 @@ var op = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
29565
29725
|
});
|
|
29566
29726
|
//#endregion
|
|
29567
29727
|
//#region src/SelectSetupGuide.tsx
|
|
29568
|
-
function
|
|
29728
|
+
function fp({ status: e }) {
|
|
29569
29729
|
return /* @__PURE__ */ _("span", {
|
|
29570
29730
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
29571
29731
|
"aria-hidden": "true",
|
|
@@ -29584,7 +29744,7 @@ function cp({ status: e }) {
|
|
|
29584
29744
|
})
|
|
29585
29745
|
});
|
|
29586
29746
|
}
|
|
29587
|
-
var
|
|
29747
|
+
var pp = /* @__PURE__ */ _("svg", {
|
|
29588
29748
|
viewBox: "0 0 20 20",
|
|
29589
29749
|
width: "16",
|
|
29590
29750
|
height: "16",
|
|
@@ -29596,7 +29756,7 @@ var lp = /* @__PURE__ */ _("svg", {
|
|
|
29596
29756
|
"aria-hidden": "true",
|
|
29597
29757
|
children: /* @__PURE__ */ _("path", { d: "M8 5l5 5-5 5" })
|
|
29598
29758
|
});
|
|
29599
|
-
function
|
|
29759
|
+
function mp({ group: e, justDone: t }) {
|
|
29600
29760
|
let [n, r] = p(!!(e.collapsible && e.defaultCollapsed)), i = !e.collapsible || !n;
|
|
29601
29761
|
return /* @__PURE__ */ v("div", {
|
|
29602
29762
|
className: `select-setupguide__group${i ? "" : " is-collapsed"}`,
|
|
@@ -29605,7 +29765,7 @@ function up({ group: e, justDone: t }) {
|
|
|
29605
29765
|
className: "select-setupguide__grouptitle select-setupguide__grouptoggle",
|
|
29606
29766
|
"aria-expanded": i,
|
|
29607
29767
|
onClick: () => r((e) => !e),
|
|
29608
|
-
children: [/* @__PURE__ */ _("span", { children: e.title }),
|
|
29768
|
+
children: [/* @__PURE__ */ _("span", { children: e.title }), pp]
|
|
29609
29769
|
}) : /* @__PURE__ */ _("div", {
|
|
29610
29770
|
className: "select-setupguide__grouptitle",
|
|
29611
29771
|
children: e.title
|
|
@@ -29620,7 +29780,7 @@ function up({ group: e, justDone: t }) {
|
|
|
29620
29780
|
children: e.steps.map((e) => /* @__PURE__ */ v("li", {
|
|
29621
29781
|
className: `select-setupguide__step is-${e.status}${e.onSelect ? " is-link" : ""}${t.has(e.id) ? " is-just-done" : ""}`,
|
|
29622
29782
|
children: [
|
|
29623
|
-
/* @__PURE__ */ _(
|
|
29783
|
+
/* @__PURE__ */ _(fp, { status: e.status }),
|
|
29624
29784
|
/* @__PURE__ */ v("span", {
|
|
29625
29785
|
className: "select-setupguide__text",
|
|
29626
29786
|
children: [e.onSelect ? /* @__PURE__ */ v("button", {
|
|
@@ -29629,13 +29789,13 @@ function up({ group: e, justDone: t }) {
|
|
|
29629
29789
|
onClick: e.onSelect,
|
|
29630
29790
|
children: [e.title, /* @__PURE__ */ v("span", {
|
|
29631
29791
|
className: "select-setupguide__sr",
|
|
29632
|
-
children: [" — ",
|
|
29792
|
+
children: [" — ", hp[e.status]]
|
|
29633
29793
|
})]
|
|
29634
29794
|
}) : /* @__PURE__ */ v("span", {
|
|
29635
29795
|
className: "select-setupguide__steptitle",
|
|
29636
29796
|
children: [e.title, /* @__PURE__ */ v("span", {
|
|
29637
29797
|
className: "select-setupguide__sr",
|
|
29638
|
-
children: [" — ",
|
|
29798
|
+
children: [" — ", hp[e.status]]
|
|
29639
29799
|
})]
|
|
29640
29800
|
}), e.description && /* @__PURE__ */ _("span", {
|
|
29641
29801
|
className: "select-setupguide__stepdesc",
|
|
@@ -29647,7 +29807,7 @@ function up({ group: e, justDone: t }) {
|
|
|
29647
29807
|
children: e.trailing
|
|
29648
29808
|
}) : e.onSelect && e.status !== "done" ? /* @__PURE__ */ _("span", {
|
|
29649
29809
|
className: "select-setupguide__chevron",
|
|
29650
|
-
children:
|
|
29810
|
+
children: pp
|
|
29651
29811
|
}) : null
|
|
29652
29812
|
]
|
|
29653
29813
|
}, e.id))
|
|
@@ -29655,13 +29815,13 @@ function up({ group: e, justDone: t }) {
|
|
|
29655
29815
|
})]
|
|
29656
29816
|
});
|
|
29657
29817
|
}
|
|
29658
|
-
var
|
|
29818
|
+
var hp = {
|
|
29659
29819
|
done: "feito",
|
|
29660
29820
|
todo: "a fazer",
|
|
29661
29821
|
next: "próximo passo",
|
|
29662
29822
|
skipped: "pulado",
|
|
29663
29823
|
waiting: "aguardando"
|
|
29664
|
-
},
|
|
29824
|
+
}, gp = r(function({ title: e, description: t, progress: n, actions: r, next: i, groups: a, minimized: o = !1, tone: c = "default", className: l, ...u }, d) {
|
|
29665
29825
|
let p = n && n.total > 0 ? Math.round(n.done / n.total * 100) : 0, m = xi(), h = f(null), g = /* @__PURE__ */ new Set(), y = a.flatMap((e) => e.steps);
|
|
29666
29826
|
if (h.current) for (let e of y) e.status === "done" && h.current.get(e.id) !== "done" && g.add(e.id);
|
|
29667
29827
|
return s(() => {
|
|
@@ -29719,7 +29879,7 @@ var dp = {
|
|
|
29719
29879
|
children: i
|
|
29720
29880
|
}), /* @__PURE__ */ _("div", {
|
|
29721
29881
|
className: "select-setupguide__steps",
|
|
29722
|
-
children: a.map((e, t) => /* @__PURE__ */ _(
|
|
29882
|
+
children: a.map((e, t) => /* @__PURE__ */ _(mp, {
|
|
29723
29883
|
group: e,
|
|
29724
29884
|
justDone: g
|
|
29725
29885
|
}, t))
|
|
@@ -29728,7 +29888,7 @@ var dp = {
|
|
|
29728
29888
|
})]
|
|
29729
29889
|
});
|
|
29730
29890
|
});
|
|
29731
|
-
function
|
|
29891
|
+
function _p({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
29732
29892
|
return /* @__PURE__ */ v("div", {
|
|
29733
29893
|
className: "select-setupnext",
|
|
29734
29894
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -29755,84 +29915,84 @@ function pp({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
29755
29915
|
}
|
|
29756
29916
|
//#endregion
|
|
29757
29917
|
//#region src/SelectTour.tsx
|
|
29758
|
-
var
|
|
29759
|
-
function
|
|
29918
|
+
var vp = 6, yp = 14, bp = 8, xp = 640;
|
|
29919
|
+
function Sp(e) {
|
|
29760
29920
|
let t = document.querySelector(e);
|
|
29761
29921
|
if (!t) return null;
|
|
29762
29922
|
let n = t.getBoundingClientRect();
|
|
29763
29923
|
if (n.width === 0 && n.height === 0) return null;
|
|
29764
29924
|
let r = Math.min(parseFloat(getComputedStyle(t).borderTopLeftRadius) || 0, Math.min(n.width, n.height) / 2);
|
|
29765
29925
|
return {
|
|
29766
|
-
top: n.top -
|
|
29767
|
-
left: n.left -
|
|
29926
|
+
top: n.top - vp,
|
|
29927
|
+
left: n.left - vp,
|
|
29768
29928
|
width: n.width + 12,
|
|
29769
29929
|
height: n.height + 12,
|
|
29770
|
-
radius: r +
|
|
29930
|
+
radius: r + vp
|
|
29771
29931
|
};
|
|
29772
29932
|
}
|
|
29773
|
-
var
|
|
29774
|
-
function
|
|
29775
|
-
if (r <
|
|
29933
|
+
var Cp = (e, t, n) => Math.min(Math.max(e, t), Math.max(t, n));
|
|
29934
|
+
function wp(e, t, n, r, i) {
|
|
29935
|
+
if (r < xp) return {
|
|
29776
29936
|
side: "sheet",
|
|
29777
|
-
left:
|
|
29778
|
-
top: e.top + e.height / 2 > i / 2 ?
|
|
29937
|
+
left: bp,
|
|
29938
|
+
top: e.top + e.height / 2 > i / 2 ? bp : i - n - bp
|
|
29779
29939
|
};
|
|
29780
|
-
let a = e.top + e.height / 2, o = e.left + e.width / 2, s = (e) => e >=
|
|
29940
|
+
let a = e.top + e.height / 2, o = e.left + e.width / 2, s = (e) => e >= bp && e + n <= i - bp, c = (e) => e >= bp && e + t <= r - bp, l = Cp(a - n / 2, bp, i - n - bp), u = Cp(o - t / 2, bp, r - t - bp), d = [
|
|
29781
29941
|
{
|
|
29782
29942
|
side: "right",
|
|
29783
|
-
left: e.left + e.width +
|
|
29943
|
+
left: e.left + e.width + yp,
|
|
29784
29944
|
top: l,
|
|
29785
29945
|
arrow: a - l
|
|
29786
29946
|
},
|
|
29787
29947
|
{
|
|
29788
29948
|
side: "left",
|
|
29789
|
-
left: e.left -
|
|
29949
|
+
left: e.left - yp - t,
|
|
29790
29950
|
top: l,
|
|
29791
29951
|
arrow: a - l
|
|
29792
29952
|
},
|
|
29793
29953
|
{
|
|
29794
29954
|
side: "bottom",
|
|
29795
29955
|
left: u,
|
|
29796
|
-
top: e.top + e.height +
|
|
29956
|
+
top: e.top + e.height + yp,
|
|
29797
29957
|
arrow: o - u
|
|
29798
29958
|
},
|
|
29799
29959
|
{
|
|
29800
29960
|
side: "top",
|
|
29801
29961
|
left: u,
|
|
29802
|
-
top: e.top -
|
|
29962
|
+
top: e.top - yp - n,
|
|
29803
29963
|
arrow: o - u
|
|
29804
29964
|
}
|
|
29805
29965
|
];
|
|
29806
29966
|
for (let r of d) {
|
|
29807
29967
|
let o = r.side === "right" || r.side === "left";
|
|
29808
|
-
if (!(o && (e.height > i * .6 || a <
|
|
29968
|
+
if (!(o && (e.height > i * .6 || a < bp || a > i - bp)) && c(r.left) && s(r.top)) return {
|
|
29809
29969
|
...r,
|
|
29810
|
-
arrow:
|
|
29970
|
+
arrow: Cp(r.arrow ?? 0, 16, (o ? n : t) - 16)
|
|
29811
29971
|
};
|
|
29812
29972
|
}
|
|
29813
29973
|
return {
|
|
29814
29974
|
side: "sheet",
|
|
29815
29975
|
left: u,
|
|
29816
|
-
top: i - n -
|
|
29976
|
+
top: i - n - bp
|
|
29817
29977
|
};
|
|
29818
29978
|
}
|
|
29819
|
-
function
|
|
29979
|
+
function Tp(e) {
|
|
29820
29980
|
let t = document.querySelector(e);
|
|
29821
29981
|
if (!t) return !1;
|
|
29822
29982
|
let n = t.getBoundingClientRect();
|
|
29823
29983
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
29824
29984
|
}
|
|
29825
|
-
function
|
|
29826
|
-
let o = d(() => e ? t.filter((e) =>
|
|
29985
|
+
function Ep({ open: e, steps: t, onClose: n, labels: r = {}, theme: i = "light" }) {
|
|
29986
|
+
let o = d(() => e ? t.filter((e) => Tp(e.target)) : [], [e]), [c, l] = p(0), [m, h] = p(null), [g, b] = p(null), x = f(null), S = f(null);
|
|
29827
29987
|
s(() => {
|
|
29828
29988
|
e && l(0);
|
|
29829
29989
|
}, [e]);
|
|
29830
29990
|
let C = o[c], w = c === o.length - 1, T = a(() => {
|
|
29831
29991
|
if (!C) return;
|
|
29832
|
-
let e =
|
|
29992
|
+
let e = Sp(C.target);
|
|
29833
29993
|
h(e);
|
|
29834
29994
|
let t = x.current;
|
|
29835
|
-
e && t && b(
|
|
29995
|
+
e && t && b(wp(e, t.offsetWidth, t.offsetHeight, window.innerWidth, window.innerHeight));
|
|
29836
29996
|
}, [C]);
|
|
29837
29997
|
return u(() => {
|
|
29838
29998
|
var t, n;
|
|
@@ -29956,7 +30116,7 @@ function Sp({ open: e, steps: t, onClose: n, labels: r = {}, theme: i = "light"
|
|
|
29956
30116
|
}
|
|
29957
30117
|
//#endregion
|
|
29958
30118
|
//#region src/SelectPlanCard.tsx
|
|
29959
|
-
var
|
|
30119
|
+
var Dp = 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) {
|
|
29960
30120
|
return /* @__PURE__ */ v("div", {
|
|
29961
30121
|
ref: d,
|
|
29962
30122
|
...u,
|
|
@@ -30011,7 +30171,7 @@ var Cp = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
30011
30171
|
})]
|
|
30012
30172
|
})]
|
|
30013
30173
|
});
|
|
30014
|
-
}),
|
|
30174
|
+
}), Op = r(function({ title: e, description: t, headerAction: n, footer: r, dense: i = !1, spread: a = !1, flush: o = !1, children: s, className: c, ...l }, u) {
|
|
30015
30175
|
return /* @__PURE__ */ v("div", {
|
|
30016
30176
|
ref: u,
|
|
30017
30177
|
...l,
|
|
@@ -30047,7 +30207,7 @@ var Cp = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
30047
30207
|
]
|
|
30048
30208
|
});
|
|
30049
30209
|
});
|
|
30050
|
-
function
|
|
30210
|
+
function kp({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i, muted: a = !1, wrap: o = !1, onClick: s, href: c }) {
|
|
30051
30211
|
let l = /* @__PURE__ */ v(g, { children: [
|
|
30052
30212
|
e && /* @__PURE__ */ _("span", {
|
|
30053
30213
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -30085,7 +30245,7 @@ function Tp({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
30085
30245
|
children: l
|
|
30086
30246
|
});
|
|
30087
30247
|
}
|
|
30088
|
-
function
|
|
30248
|
+
function Ap({ children: e }) {
|
|
30089
30249
|
return /* @__PURE__ */ _("div", {
|
|
30090
30250
|
className: "select-listlabel",
|
|
30091
30251
|
children: e
|
|
@@ -30093,7 +30253,7 @@ function Ep({ children: e }) {
|
|
|
30093
30253
|
}
|
|
30094
30254
|
//#endregion
|
|
30095
30255
|
//#region src/SelectThumbnail.tsx
|
|
30096
|
-
var
|
|
30256
|
+
var jp = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, o) {
|
|
30097
30257
|
let [c, l] = p(!1);
|
|
30098
30258
|
s(() => l(!1), [e]);
|
|
30099
30259
|
let u = /* @__PURE__ */ _("span", {
|
|
@@ -30127,7 +30287,7 @@ var Dp = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
30127
30287
|
});
|
|
30128
30288
|
//#endregion
|
|
30129
30289
|
//#region src/SelectImageZoomModal.tsx
|
|
30130
|
-
function
|
|
30290
|
+
function Mp({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
30131
30291
|
return /* @__PURE__ */ _(Dc, {
|
|
30132
30292
|
open: e,
|
|
30133
30293
|
onClose: t,
|
|
@@ -30146,7 +30306,7 @@ function Op({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
30146
30306
|
}
|
|
30147
30307
|
//#endregion
|
|
30148
30308
|
//#region src/SelectZoomThumbnail.tsx
|
|
30149
|
-
function
|
|
30309
|
+
function Np({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
30150
30310
|
let [a, o] = p(!1);
|
|
30151
30311
|
return e ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
|
|
30152
30312
|
type: "button",
|
|
@@ -30159,19 +30319,19 @@ function kp({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
30159
30319
|
cursor: "zoom-in",
|
|
30160
30320
|
display: "inline-flex"
|
|
30161
30321
|
},
|
|
30162
|
-
children: /* @__PURE__ */ _(
|
|
30322
|
+
children: /* @__PURE__ */ _(jp, {
|
|
30163
30323
|
src: e,
|
|
30164
30324
|
size: n,
|
|
30165
30325
|
alt: t,
|
|
30166
30326
|
count: i
|
|
30167
30327
|
})
|
|
30168
|
-
}), a && /* @__PURE__ */ _(
|
|
30328
|
+
}), a && /* @__PURE__ */ _(Mp, {
|
|
30169
30329
|
open: !0,
|
|
30170
30330
|
onClose: () => o(!1),
|
|
30171
30331
|
src: e,
|
|
30172
30332
|
alt: t,
|
|
30173
30333
|
title: r ?? t
|
|
30174
|
-
})] }) : /* @__PURE__ */ _(
|
|
30334
|
+
})] }) : /* @__PURE__ */ _(jp, {
|
|
30175
30335
|
size: n,
|
|
30176
30336
|
alt: t,
|
|
30177
30337
|
count: i
|
|
@@ -30179,7 +30339,7 @@ function kp({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
30179
30339
|
}
|
|
30180
30340
|
//#endregion
|
|
30181
30341
|
//#region src/SelectMediaCell.tsx
|
|
30182
|
-
var
|
|
30342
|
+
var Pp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
30183
30343
|
return /* @__PURE__ */ v("span", {
|
|
30184
30344
|
ref: a,
|
|
30185
30345
|
...i,
|
|
@@ -30201,7 +30361,7 @@ var Ap = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
30201
30361
|
});
|
|
30202
30362
|
//#endregion
|
|
30203
30363
|
//#region src/SelectOfflineModal.tsx
|
|
30204
|
-
function
|
|
30364
|
+
function Fp() {
|
|
30205
30365
|
let [e, t] = p(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
30206
30366
|
return s(() => {
|
|
30207
30367
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -30224,7 +30384,7 @@ function jp() {
|
|
|
30224
30384
|
}
|
|
30225
30385
|
//#endregion
|
|
30226
30386
|
//#region src/SelectKeyValueEditor.tsx
|
|
30227
|
-
function
|
|
30387
|
+
function Ip(e) {
|
|
30228
30388
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
30229
30389
|
name: String(e.name ?? e.key ?? ""),
|
|
30230
30390
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -30233,8 +30393,8 @@ function Mp(e) {
|
|
|
30233
30393
|
value: t == null ? "" : String(t)
|
|
30234
30394
|
})) : [];
|
|
30235
30395
|
}
|
|
30236
|
-
var
|
|
30237
|
-
let d =
|
|
30396
|
+
var Lp = 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) {
|
|
30397
|
+
let d = Ip(e), f = (e, n) => t(d.map((t, r) => r === e ? {
|
|
30238
30398
|
...t,
|
|
30239
30399
|
...n
|
|
30240
30400
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -30298,7 +30458,7 @@ var Np = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
30298
30458
|
})
|
|
30299
30459
|
]
|
|
30300
30460
|
});
|
|
30301
|
-
}),
|
|
30461
|
+
}), Rp = (e) => String(e).padStart(2, "0"), zp = {
|
|
30302
30462
|
"en-US": {
|
|
30303
30463
|
weekdays: [
|
|
30304
30464
|
"Su",
|
|
@@ -30357,34 +30517,34 @@ var Np = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
30357
30517
|
to: "Até",
|
|
30358
30518
|
cancel: "Cancelar",
|
|
30359
30519
|
apply: "Aplicar",
|
|
30360
|
-
formatDate: (e) => `${
|
|
30520
|
+
formatDate: (e) => `${Rp(e.getDate())} / ${Rp(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
30361
30521
|
}
|
|
30362
|
-
},
|
|
30522
|
+
}, Bp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), Vp = (e) => new Date(e.getFullYear(), e.getMonth(), 1), Hp = (e, t) => new Date(e.getFullYear(), e.getMonth(), e.getDate() + t), Up = (e, t) => new Date(e.getFullYear(), e.getMonth() + t, 1), Wp = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Gp = (e) => {
|
|
30363
30523
|
let t = /* @__PURE__ */ new Date();
|
|
30364
30524
|
return {
|
|
30365
30525
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
30366
30526
|
to: t
|
|
30367
30527
|
};
|
|
30368
|
-
},
|
|
30528
|
+
}, Kp = [
|
|
30369
30529
|
{
|
|
30370
30530
|
id: "15m",
|
|
30371
30531
|
label: "Last 15 minutes",
|
|
30372
|
-
range: () =>
|
|
30532
|
+
range: () => Gp(15)
|
|
30373
30533
|
},
|
|
30374
30534
|
{
|
|
30375
30535
|
id: "1h",
|
|
30376
30536
|
label: "Last 1 hour",
|
|
30377
|
-
range: () =>
|
|
30537
|
+
range: () => Gp(60)
|
|
30378
30538
|
},
|
|
30379
30539
|
{
|
|
30380
30540
|
id: "3h",
|
|
30381
30541
|
label: "Last 3 hours",
|
|
30382
|
-
range: () =>
|
|
30542
|
+
range: () => Gp(180)
|
|
30383
30543
|
},
|
|
30384
30544
|
{
|
|
30385
30545
|
id: "24h",
|
|
30386
30546
|
label: "Last 24 hours",
|
|
30387
|
-
range: () =>
|
|
30547
|
+
range: () => Gp(1440)
|
|
30388
30548
|
},
|
|
30389
30549
|
{
|
|
30390
30550
|
id: "3d",
|
|
@@ -30400,78 +30560,78 @@ var Np = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
30400
30560
|
id: "all",
|
|
30401
30561
|
label: "All",
|
|
30402
30562
|
range: () => ({
|
|
30403
|
-
from:
|
|
30404
|
-
to:
|
|
30563
|
+
from: Bp(/* @__PURE__ */ new Date()),
|
|
30564
|
+
to: Bp(/* @__PURE__ */ new Date())
|
|
30405
30565
|
})
|
|
30406
30566
|
}
|
|
30407
|
-
],
|
|
30408
|
-
let t =
|
|
30567
|
+
], qp = (e) => {
|
|
30568
|
+
let t = Bp(/* @__PURE__ */ new Date());
|
|
30409
30569
|
return {
|
|
30410
|
-
from:
|
|
30570
|
+
from: Hp(t, -e),
|
|
30411
30571
|
to: t
|
|
30412
30572
|
};
|
|
30413
|
-
},
|
|
30414
|
-
let t =
|
|
30573
|
+
}, Jp = (e) => {
|
|
30574
|
+
let t = Hp(Bp(/* @__PURE__ */ new Date()), -e);
|
|
30415
30575
|
return {
|
|
30416
30576
|
from: t,
|
|
30417
30577
|
to: t
|
|
30418
30578
|
};
|
|
30419
|
-
},
|
|
30579
|
+
}, Yp = [
|
|
30420
30580
|
{
|
|
30421
30581
|
id: "today",
|
|
30422
30582
|
label: "Hoje",
|
|
30423
|
-
range: () =>
|
|
30583
|
+
range: () => qp(0)
|
|
30424
30584
|
},
|
|
30425
30585
|
{
|
|
30426
30586
|
id: "yesterday",
|
|
30427
30587
|
label: "Ontem",
|
|
30428
|
-
range: () =>
|
|
30588
|
+
range: () => Jp(1)
|
|
30429
30589
|
},
|
|
30430
30590
|
{
|
|
30431
30591
|
id: "7d",
|
|
30432
30592
|
label: "Últimos 7 dias",
|
|
30433
|
-
range: () =>
|
|
30593
|
+
range: () => qp(6)
|
|
30434
30594
|
},
|
|
30435
30595
|
{
|
|
30436
30596
|
id: "10d",
|
|
30437
30597
|
label: "Últimos 10 dias",
|
|
30438
|
-
range: () =>
|
|
30598
|
+
range: () => qp(9)
|
|
30439
30599
|
},
|
|
30440
30600
|
{
|
|
30441
30601
|
id: "15d",
|
|
30442
30602
|
label: "Últimos 15 dias",
|
|
30443
|
-
range: () =>
|
|
30603
|
+
range: () => qp(14)
|
|
30444
30604
|
},
|
|
30445
30605
|
{
|
|
30446
30606
|
id: "20d",
|
|
30447
30607
|
label: "Últimos 20 dias",
|
|
30448
|
-
range: () =>
|
|
30608
|
+
range: () => qp(19)
|
|
30449
30609
|
},
|
|
30450
30610
|
{
|
|
30451
30611
|
id: "30d",
|
|
30452
30612
|
label: "Últimos 30 dias",
|
|
30453
|
-
range: () =>
|
|
30613
|
+
range: () => qp(29)
|
|
30454
30614
|
},
|
|
30455
30615
|
{
|
|
30456
30616
|
id: "90d",
|
|
30457
30617
|
label: "Últimos 90 dias",
|
|
30458
|
-
range: () =>
|
|
30618
|
+
range: () => qp(89)
|
|
30459
30619
|
}
|
|
30460
30620
|
];
|
|
30461
|
-
function
|
|
30621
|
+
function Xp(e) {
|
|
30462
30622
|
if (!e) return "—";
|
|
30463
30623
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
30464
30624
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
30465
30625
|
}
|
|
30466
|
-
var
|
|
30467
|
-
let f =
|
|
30626
|
+
var Zp = r(function({ value: e, presets: t = Kp, onApply: n, onCancel: r, accentVar: i, locale: a = "en-US", showTime: o = !0, maxDate: s, embedded: c = !1, className: l, ...u }, d) {
|
|
30627
|
+
let f = zp[a], m = Bp(/* @__PURE__ */ new Date()), h = s ? Bp(s) : null, [g, y] = p(e ?? {
|
|
30468
30628
|
from: m,
|
|
30469
30629
|
to: m
|
|
30470
|
-
}), [b, x] = p(
|
|
30630
|
+
}), [b, x] = p(Vp((e == null ? void 0 : e.from) ?? /* @__PURE__ */ new Date())), [S, C] = p(null), w = Hp(Vp(b), -Vp(b).getDay()), T = Array.from({ length: 42 }, (e, t) => Hp(w, t)), E = (e) => h ? Bp(e) > h : !1, D = (e) => e ? f.formatDate(e) : /* @__PURE__ */ _("span", {
|
|
30471
30631
|
className: "select-datepicker__placeholder",
|
|
30472
30632
|
children: "— / — / ——"
|
|
30473
30633
|
}), O = (e) => {
|
|
30474
|
-
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e <
|
|
30634
|
+
E(e) || (C(null), y((t) => !t.from || t.from && t.to || e < Bp(t.from) ? {
|
|
30475
30635
|
from: e,
|
|
30476
30636
|
to: null
|
|
30477
30637
|
} : {
|
|
@@ -30481,7 +30641,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30481
30641
|
}, k = (e) => {
|
|
30482
30642
|
if (e.disabled || !e.range) return;
|
|
30483
30643
|
let t = e.range();
|
|
30484
|
-
y(t), C(e.id), t.from && x(
|
|
30644
|
+
y(t), C(e.id), t.from && x(Vp(t.from));
|
|
30485
30645
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
30486
30646
|
return /* @__PURE__ */ _("div", {
|
|
30487
30647
|
ref: d,
|
|
@@ -30527,7 +30687,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30527
30687
|
}),
|
|
30528
30688
|
o && /* @__PURE__ */ _("span", {
|
|
30529
30689
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
30530
|
-
children:
|
|
30690
|
+
children: Xp(g[e])
|
|
30531
30691
|
})
|
|
30532
30692
|
]
|
|
30533
30693
|
}, e))
|
|
@@ -30539,7 +30699,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30539
30699
|
type: "button",
|
|
30540
30700
|
className: "select-datepicker__nav",
|
|
30541
30701
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
30542
|
-
onClick: () => x((e) =>
|
|
30702
|
+
onClick: () => x((e) => Up(e, -1)),
|
|
30543
30703
|
children: /* @__PURE__ */ _(q, {})
|
|
30544
30704
|
}),
|
|
30545
30705
|
/* @__PURE__ */ v("span", {
|
|
@@ -30554,7 +30714,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30554
30714
|
type: "button",
|
|
30555
30715
|
className: "select-datepicker__nav",
|
|
30556
30716
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
30557
|
-
onClick: () => x((e) =>
|
|
30717
|
+
onClick: () => x((e) => Up(e, 1)),
|
|
30558
30718
|
children: /* @__PURE__ */ _(K, {})
|
|
30559
30719
|
})
|
|
30560
30720
|
]
|
|
@@ -30566,7 +30726,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30566
30726
|
className: "select-datepicker__weekday",
|
|
30567
30727
|
children: e
|
|
30568
30728
|
}, t)), T.map((e) => {
|
|
30569
|
-
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!g.from &&
|
|
30729
|
+
let t = e.getMonth() !== b.getMonth(), n = E(e), r = !!g.from && Wp(e, g.from), i = !!g.to && Wp(e, g.to), a = r || i, o = !!g.from && !!g.to && !Wp(g.from, g.to), s = "select-datepicker__day" + (g.from && g.to && e > Bp(g.from) && e < Bp(g.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" : "") + (Wp(e, m) && !a ? " is-today" : "") + (t ? " is-outside" : "");
|
|
30570
30730
|
return /* @__PURE__ */ _("div", {
|
|
30571
30731
|
className: s,
|
|
30572
30732
|
children: /* @__PURE__ */ _("button", {
|
|
@@ -30597,17 +30757,17 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30597
30757
|
})]
|
|
30598
30758
|
})
|
|
30599
30759
|
});
|
|
30600
|
-
}),
|
|
30601
|
-
function
|
|
30760
|
+
}), Qp = (e) => new Date(e.getFullYear(), e.getMonth(), e.getDate()), $p = (e, t) => e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), em = (e) => `${String(e.getDate()).padStart(2, "0")}/${String(e.getMonth() + 1).padStart(2, "0")}/${e.getFullYear()}`;
|
|
30761
|
+
function tm(e, t) {
|
|
30602
30762
|
for (let r of t) {
|
|
30603
30763
|
var n;
|
|
30604
30764
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
30605
|
-
if (t != null && t.from && t != null && t.to &&
|
|
30765
|
+
if (t != null && t.from && t != null && t.to && $p(t.from, e.start) && $p(t.to, e.end)) return r.label;
|
|
30606
30766
|
}
|
|
30607
|
-
return
|
|
30767
|
+
return $p(e.start, e.end) ? em(e.start) : `${em(e.start)} – ${em(e.end)}`;
|
|
30608
30768
|
}
|
|
30609
|
-
function
|
|
30610
|
-
let [c, l] = p(!1), u = r === null ? null : r ??
|
|
30769
|
+
function nm({ value: e, onChange: t, presets: n = Yp, maxDate: r, placement: i = "bottom-end", size: a = "md", disabled: o = !1, block: s = !1 }) {
|
|
30770
|
+
let [c, l] = p(!1), u = r === null ? null : r ?? Qp(/* @__PURE__ */ new Date());
|
|
30611
30771
|
return /* @__PURE__ */ _(mr, {
|
|
30612
30772
|
active: c,
|
|
30613
30773
|
onClose: () => l(!1),
|
|
@@ -30621,9 +30781,9 @@ function Qp({ value: e, onChange: t, presets: n = Gp, maxDate: r, placement: i =
|
|
|
30621
30781
|
icon: /* @__PURE__ */ _(at, {}),
|
|
30622
30782
|
trailingIcon: /* @__PURE__ */ _(J, {}),
|
|
30623
30783
|
onClick: () => l((e) => !e),
|
|
30624
|
-
children:
|
|
30784
|
+
children: tm(e, n)
|
|
30625
30785
|
}),
|
|
30626
|
-
children: /* @__PURE__ */ _(
|
|
30786
|
+
children: /* @__PURE__ */ _(Zp, {
|
|
30627
30787
|
embedded: !0,
|
|
30628
30788
|
locale: "pt-BR",
|
|
30629
30789
|
showTime: !1,
|
|
@@ -30636,8 +30796,8 @@ function Qp({ value: e, onChange: t, presets: n = Gp, maxDate: r, placement: i =
|
|
|
30636
30796
|
onCancel: () => l(!1),
|
|
30637
30797
|
onApply: (e) => {
|
|
30638
30798
|
e.from && t({
|
|
30639
|
-
start:
|
|
30640
|
-
end:
|
|
30799
|
+
start: Qp(e.from),
|
|
30800
|
+
end: Qp(e.to ?? e.from)
|
|
30641
30801
|
}), l(!1);
|
|
30642
30802
|
}
|
|
30643
30803
|
})
|
|
@@ -30645,7 +30805,7 @@ function Qp({ value: e, onChange: t, presets: n = Gp, maxDate: r, placement: i =
|
|
|
30645
30805
|
}
|
|
30646
30806
|
//#endregion
|
|
30647
30807
|
//#region src/SelectNumberField.tsx
|
|
30648
|
-
var
|
|
30808
|
+
var rm = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a = 1, decimal: o = !1, disabled: s = !1, hint: l, error: u, onBlur: d, placeholder: f, size: m = "md", ariaLabel: h, className: g, ...y }, b) {
|
|
30649
30809
|
let x = c(), S = u ? `${x}-err` : l ? `${x}-hint` : void 0, C = (e) => Math.min(i ?? Infinity, Math.max(r ?? -Infinity, e)), w = (e) => Math.round(e * 1e6) / 1e6, T = t ?? 0, E = r != null && T <= r, D = i != null && T >= i, [O, k] = p(!1), [A, j] = p(""), M = o && O ? A : t == null ? "" : String(t), N = (e) => {
|
|
30650
30810
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
30651
30811
|
if (o && j(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -30723,7 +30883,7 @@ var $p = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
30723
30883
|
});
|
|
30724
30884
|
//#endregion
|
|
30725
30885
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
30726
|
-
function
|
|
30886
|
+
function im({ 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 }) {
|
|
30727
30887
|
let p = !c && (s == null || e.length < s), m = e.length > o, h = (n, r) => t(e.map((e, t) => t === n ? r : e)), y = (n) => t(e.filter((e, t) => t !== n)), b = (n, r) => {
|
|
30728
30888
|
let i = n + r;
|
|
30729
30889
|
if (i < 0 || i >= e.length) return;
|
|
@@ -30818,7 +30978,7 @@ function em({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
30818
30978
|
}
|
|
30819
30979
|
//#endregion
|
|
30820
30980
|
//#region src/SelectBuilderLayout.tsx
|
|
30821
|
-
function
|
|
30981
|
+
function am({ 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 }) {
|
|
30822
30982
|
let d = x();
|
|
30823
30983
|
return /* @__PURE__ */ _(Aa, {
|
|
30824
30984
|
title: e,
|
|
@@ -30858,7 +31018,7 @@ function tm({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
30858
31018
|
}
|
|
30859
31019
|
//#endregion
|
|
30860
31020
|
//#region src/SelectBuilderWorkspace.tsx
|
|
30861
|
-
function
|
|
31021
|
+
function om({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a = !1, saveLabel: o = "Salvar", saveDisabled: s = !1, cancelTo: c, onDiscard: l, discardLabel: u = "Descartar", error: f, sections: m = [], activeId: h, onActiveChange: y, searchable: b = !1, searchPlaceholder: S = "Buscar ajuste…", preview: C, previewLayout: w = "fill", toolbar: T, dirty: E = !1, dirtyLabel: D = "Alterações não salvas", savedLabel: O, reviewLabel: k, layout: A = "rail", panel: j, panelWidth: M, mobileTabs: N, mobileTab: P, onMobileTabChange: F, readOnly: I = !1 }) {
|
|
30862
31022
|
var L;
|
|
30863
31023
|
let R = x(), z = A === "drill", [B, V] = p(z ? null : ((L = m[0]) == null ? void 0 : L.id) ?? ""), [ee, H] = p(""), [U, te] = p("panel"), ne = P ?? U, re = (e) => {
|
|
30864
31024
|
P === void 0 && te(e), F == null || F(e);
|
|
@@ -31118,10 +31278,10 @@ function nm({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
31118
31278
|
}
|
|
31119
31279
|
//#endregion
|
|
31120
31280
|
//#region src/SelectFlowCanvas.tsx
|
|
31121
|
-
var
|
|
31122
|
-
function
|
|
31281
|
+
var sm = (e) => Math.round(e * 100) / 100;
|
|
31282
|
+
function cm({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], children: a, zoom: o, defaultZoom: s = 1, onZoomChange: l, minZoom: u = .5, maxZoom: d = 1.3, onBackgroundClick: f, ariaLabel: m }) {
|
|
31123
31283
|
let h = c().replace(/:/g, ""), [g, y] = p(s), b = o ?? g, x = (e) => {
|
|
31124
|
-
let t =
|
|
31284
|
+
let t = sm(Math.min(d, Math.max(u, e)));
|
|
31125
31285
|
o === void 0 && y(t), l == null || l(t);
|
|
31126
31286
|
}, S = `select-flow-arrow-${h}`, C = `select-flow-arrow-on-${h}`;
|
|
31127
31287
|
return /* @__PURE__ */ v("div", {
|
|
@@ -31237,7 +31397,7 @@ function im({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
31237
31397
|
})]
|
|
31238
31398
|
});
|
|
31239
31399
|
}
|
|
31240
|
-
function
|
|
31400
|
+
function lm({ 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: m = !1, muted: h = !1, invalid: g = !1, onClick: y, ariaLabel: b }) {
|
|
31241
31401
|
let x = `${p ? " is-selected" : g ? " is-invalid" : m ? " is-on" : ""}${h ? " is-muted" : ""}`, S = {
|
|
31242
31402
|
left: e,
|
|
31243
31403
|
top: t,
|
|
@@ -31313,7 +31473,7 @@ function am({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
31313
31473
|
})]
|
|
31314
31474
|
});
|
|
31315
31475
|
}
|
|
31316
|
-
function
|
|
31476
|
+
function um({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar: i, actions: a, error: o, canvas: s, inspectorHead: c, inspector: l, inspectorLabel: u = "Painel", inspectorOpen: d, onInspectorClose: f }) {
|
|
31317
31477
|
let p = d !== void 0;
|
|
31318
31478
|
return /* @__PURE__ */ v("div", {
|
|
31319
31479
|
className: `select-flowpage${p ? " select-flowpage--sheet" : ""}${p && d ? " is-inspecting" : ""}`,
|
|
@@ -31391,7 +31551,7 @@ function om({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
31391
31551
|
}
|
|
31392
31552
|
//#endregion
|
|
31393
31553
|
//#region src/SelectSwitchField.tsx
|
|
31394
|
-
var
|
|
31554
|
+
var dm = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
31395
31555
|
return /* @__PURE__ */ v("div", {
|
|
31396
31556
|
ref: c,
|
|
31397
31557
|
...s,
|
|
@@ -31419,7 +31579,7 @@ var sm = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
31419
31579
|
children: i
|
|
31420
31580
|
})]
|
|
31421
31581
|
});
|
|
31422
|
-
}),
|
|
31582
|
+
}), fm = [
|
|
31423
31583
|
"#212529",
|
|
31424
31584
|
"#495057",
|
|
31425
31585
|
"#868E96",
|
|
@@ -31436,13 +31596,13 @@ var sm = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
31436
31596
|
"#DB2777",
|
|
31437
31597
|
"#9333EA",
|
|
31438
31598
|
"#6D28D9"
|
|
31439
|
-
],
|
|
31440
|
-
function
|
|
31441
|
-
let t =
|
|
31599
|
+
], pm = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
31600
|
+
function mm(e) {
|
|
31601
|
+
let t = pm.exec((e ?? "").trim());
|
|
31442
31602
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
31443
31603
|
}
|
|
31444
|
-
function
|
|
31445
|
-
let t =
|
|
31604
|
+
function hm(e) {
|
|
31605
|
+
let t = mm(e);
|
|
31446
31606
|
if (!t) return 0;
|
|
31447
31607
|
let [n, r, i] = [
|
|
31448
31608
|
1,
|
|
@@ -31451,13 +31611,13 @@ function dm(e) {
|
|
|
31451
31611
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
31452
31612
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
31453
31613
|
}
|
|
31454
|
-
function
|
|
31455
|
-
let [n, r] = [
|
|
31614
|
+
function gm(e, t) {
|
|
31615
|
+
let [n, r] = [hm(e), hm(t)].sort((e, t) => t - e);
|
|
31456
31616
|
return (n + .05) / (r + .05);
|
|
31457
31617
|
}
|
|
31458
|
-
var
|
|
31459
|
-
function
|
|
31460
|
-
let t =
|
|
31618
|
+
var _m = (e) => Math.min(1, Math.max(0, e));
|
|
31619
|
+
function vm(e) {
|
|
31620
|
+
let t = mm(e) ?? "#000000", [n, r, i] = [
|
|
31461
31621
|
1,
|
|
31462
31622
|
3,
|
|
31463
31623
|
5
|
|
@@ -31468,7 +31628,7 @@ function mm(e) {
|
|
|
31468
31628
|
v: a
|
|
31469
31629
|
};
|
|
31470
31630
|
}
|
|
31471
|
-
function
|
|
31631
|
+
function ym({ h: e, s: t, v: n }) {
|
|
31472
31632
|
let r = (r) => {
|
|
31473
31633
|
let i = (r + e / 60) % 6;
|
|
31474
31634
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -31479,26 +31639,26 @@ function hm({ h: e, s: t, v: n }) {
|
|
|
31479
31639
|
r(1)
|
|
31480
31640
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
31481
31641
|
}
|
|
31482
|
-
function
|
|
31483
|
-
let [n, r] = p(() =>
|
|
31642
|
+
function bm({ hex: e, onPick: t }) {
|
|
31643
|
+
let [n, r] = p(() => vm(e ?? "#1D4ED8")), i = f(n), a = (e) => {
|
|
31484
31644
|
i.current = e, r(e);
|
|
31485
31645
|
};
|
|
31486
31646
|
s(() => {
|
|
31487
|
-
if (!e ||
|
|
31488
|
-
let t =
|
|
31647
|
+
if (!e || ym(i.current) === e) return;
|
|
31648
|
+
let t = vm(e);
|
|
31489
31649
|
a(t.s === 0 || t.v === 0 ? {
|
|
31490
31650
|
...t,
|
|
31491
31651
|
h: i.current.h
|
|
31492
31652
|
} : t);
|
|
31493
31653
|
}, [e]);
|
|
31494
31654
|
let o = (e) => {
|
|
31495
|
-
a(e), t(
|
|
31655
|
+
a(e), t(ym(e));
|
|
31496
31656
|
}, c = (e, t, n) => {
|
|
31497
31657
|
var r;
|
|
31498
31658
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
31499
31659
|
let i = (t) => {
|
|
31500
31660
|
let r = e.getBoundingClientRect();
|
|
31501
|
-
n(
|
|
31661
|
+
n(_m((t.clientX - r.left) / (r.width || 1)), _m((t.clientY - r.top) / (r.height || 1)));
|
|
31502
31662
|
};
|
|
31503
31663
|
i(t);
|
|
31504
31664
|
let a = (e) => i(e), o = () => {
|
|
@@ -31508,20 +31668,20 @@ function gm({ hex: e, onPick: t }) {
|
|
|
31508
31668
|
}, l = (e) => {
|
|
31509
31669
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, s = e.key === "ArrowLeft" ? {
|
|
31510
31670
|
h: n,
|
|
31511
|
-
s:
|
|
31671
|
+
s: _m(r - t),
|
|
31512
31672
|
v: a
|
|
31513
31673
|
} : e.key === "ArrowRight" ? {
|
|
31514
31674
|
h: n,
|
|
31515
|
-
s:
|
|
31675
|
+
s: _m(r + t),
|
|
31516
31676
|
v: a
|
|
31517
31677
|
} : e.key === "ArrowUp" ? {
|
|
31518
31678
|
h: n,
|
|
31519
31679
|
s: r,
|
|
31520
|
-
v:
|
|
31680
|
+
v: _m(a + t)
|
|
31521
31681
|
} : e.key === "ArrowDown" ? {
|
|
31522
31682
|
h: n,
|
|
31523
31683
|
s: r,
|
|
31524
|
-
v:
|
|
31684
|
+
v: _m(a - t)
|
|
31525
31685
|
} : null;
|
|
31526
31686
|
s && (e.preventDefault(), o(s));
|
|
31527
31687
|
}, u = (e) => {
|
|
@@ -31531,11 +31691,11 @@ function gm({ hex: e, onPick: t }) {
|
|
|
31531
31691
|
s: r,
|
|
31532
31692
|
v: a
|
|
31533
31693
|
}));
|
|
31534
|
-
}, d =
|
|
31694
|
+
}, d = ym({
|
|
31535
31695
|
h: n.h,
|
|
31536
31696
|
s: 1,
|
|
31537
31697
|
v: 1
|
|
31538
|
-
}), m =
|
|
31698
|
+
}), m = ym(n);
|
|
31539
31699
|
return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
|
|
31540
31700
|
className: "select-colorfield__sv",
|
|
31541
31701
|
style: { backgroundColor: d },
|
|
@@ -31579,24 +31739,24 @@ function gm({ hex: e, onPick: t }) {
|
|
|
31579
31739
|
})
|
|
31580
31740
|
})] });
|
|
31581
31741
|
}
|
|
31582
|
-
var
|
|
31583
|
-
function
|
|
31742
|
+
var xm = (e) => e.toFixed(1).replace(".", ",");
|
|
31743
|
+
function Sm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, presets: o = fm, disabled: l = !1, allowEmpty: u = !1, contrastWith: d, contrastLabel: f = "o texto", id: m }) {
|
|
31584
31744
|
let h = c(), y = m ?? `color-${h}`, [b, x] = p(!1), [S, C] = p(i ?? ""), [w, T] = p(null);
|
|
31585
31745
|
s(() => {
|
|
31586
31746
|
C(i ?? ""), T(null);
|
|
31587
31747
|
}, [i]);
|
|
31588
|
-
let E =
|
|
31748
|
+
let E = mm(i ?? ""), D = (e) => {
|
|
31589
31749
|
if (!e.trim()) {
|
|
31590
31750
|
u ? (T(null), a("")) : C(i ?? "");
|
|
31591
31751
|
return;
|
|
31592
31752
|
}
|
|
31593
|
-
let t =
|
|
31753
|
+
let t = mm(e);
|
|
31594
31754
|
if (!t) {
|
|
31595
31755
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
31596
31756
|
return;
|
|
31597
31757
|
}
|
|
31598
31758
|
T(null), C(t), t !== E && a(t);
|
|
31599
|
-
}, O = d ?
|
|
31759
|
+
}, O = d ? mm(d) : null, k = E && O ? gm(E, O) : null, A = r ?? w, j = A ? `${y}-err` : n || k != null ? `${y}-hint` : void 0;
|
|
31600
31760
|
return /* @__PURE__ */ v("div", {
|
|
31601
31761
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
31602
31762
|
children: [
|
|
@@ -31624,7 +31784,7 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31624
31784
|
children: /* @__PURE__ */ v("div", {
|
|
31625
31785
|
className: "select-colorfield__panel",
|
|
31626
31786
|
children: [
|
|
31627
|
-
/* @__PURE__ */ _(
|
|
31787
|
+
/* @__PURE__ */ _(bm, {
|
|
31628
31788
|
hex: E,
|
|
31629
31789
|
onPick: D
|
|
31630
31790
|
}),
|
|
@@ -31633,7 +31793,7 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31633
31793
|
role: "group",
|
|
31634
31794
|
"aria-label": "Cores prontas",
|
|
31635
31795
|
children: o.map((e) => {
|
|
31636
|
-
let t =
|
|
31796
|
+
let t = mm(e) ?? e, n = t === E;
|
|
31637
31797
|
return /* @__PURE__ */ _("button", {
|
|
31638
31798
|
type: "button",
|
|
31639
31799
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -31664,7 +31824,7 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31664
31824
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
31665
31825
|
value: S,
|
|
31666
31826
|
onChange: (e) => {
|
|
31667
|
-
C(e.target.value), e.target.value.replace("#", "").length === 6 &&
|
|
31827
|
+
C(e.target.value), e.target.value.replace("#", "").length === 6 && mm(e.target.value) && D(e.target.value);
|
|
31668
31828
|
},
|
|
31669
31829
|
onBlur: () => D(S),
|
|
31670
31830
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -31687,14 +31847,14 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31687
31847
|
}) : null : /* @__PURE__ */ v("p", {
|
|
31688
31848
|
id: `${y}-hint`,
|
|
31689
31849
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
31690
|
-
children: [k >= 4.5 ? `Contraste com ${f}: ${
|
|
31850
|
+
children: [k >= 4.5 ? `Contraste com ${f}: ${xm(k)}:1 — legível.` : `Contraste com ${f}: ${xm(k)}:1 — difícil de ler. Escolha uma cor ${hm(E) < hm(O) ? "mais escura" : "mais clara"}.`, n ? /* @__PURE__ */ v(g, { children: [" ", n] }) : null]
|
|
31691
31851
|
})
|
|
31692
31852
|
]
|
|
31693
31853
|
});
|
|
31694
31854
|
}
|
|
31695
31855
|
//#endregion
|
|
31696
31856
|
//#region src/SelectProgressBar.tsx
|
|
31697
|
-
var
|
|
31857
|
+
var Cm = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "md", label: i, valueLabel: a, caption: o, indeterminate: s = !1, ariaLabel: c, loading: l = !1, className: u, ...d }, f) {
|
|
31698
31858
|
if (l) return /* @__PURE__ */ v("div", {
|
|
31699
31859
|
ref: f,
|
|
31700
31860
|
...d,
|
|
@@ -31739,7 +31899,7 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31739
31899
|
})
|
|
31740
31900
|
]
|
|
31741
31901
|
});
|
|
31742
|
-
}),
|
|
31902
|
+
}), wm = (e) => e instanceof HTMLTextAreaElement, Tm = n(void 0), Em = r(function({ stepKey: e, progress: t, number: n, title: r, required: i = !1, help: a, children: o, okLabel: l = "OK", onOk: u, okDisabled: d = !1, okHint: p, onPrev: m, onNext: h, footer: y, height: b = "560px", className: x, style: S, onKeyDown: C, ...w }, T) {
|
|
31743
31903
|
let E = c(), D = f(null);
|
|
31744
31904
|
s(() => {
|
|
31745
31905
|
var e;
|
|
@@ -31749,10 +31909,10 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31749
31909
|
let O = (e) => {
|
|
31750
31910
|
if (C == null || C(e), !(e.defaultPrevented || e.key !== "Enter" || e.nativeEvent.isComposing)) {
|
|
31751
31911
|
if (e.shiftKey) {
|
|
31752
|
-
m && !
|
|
31912
|
+
m && !wm(e.target) && (e.preventDefault(), m());
|
|
31753
31913
|
return;
|
|
31754
31914
|
}
|
|
31755
|
-
(!
|
|
31915
|
+
(!wm(e.target) || e.ctrlKey || e.metaKey) && (e.target instanceof HTMLButtonElement || u && !d && (e.preventDefault(), u()));
|
|
31756
31916
|
}
|
|
31757
31917
|
}, k = t && t.max > 0 ? Math.max(0, Math.min(100, t.value / t.max * 100)) : null;
|
|
31758
31918
|
return /* @__PURE__ */ v("section", {
|
|
@@ -31778,7 +31938,7 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31778
31938
|
style: { width: `${k}%` }
|
|
31779
31939
|
})
|
|
31780
31940
|
}),
|
|
31781
|
-
/* @__PURE__ */ _(
|
|
31941
|
+
/* @__PURE__ */ _(Tm.Provider, {
|
|
31782
31942
|
value: E,
|
|
31783
31943
|
children: /* @__PURE__ */ v("div", {
|
|
31784
31944
|
ref: D,
|
|
@@ -31853,8 +32013,8 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31853
32013
|
]
|
|
31854
32014
|
});
|
|
31855
32015
|
});
|
|
31856
|
-
function
|
|
31857
|
-
let l = o(
|
|
32016
|
+
function Dm({ value: e, onChange: t, type: n = "text", multiline: r = !1, placeholder: i = "Digite sua resposta aqui…", ariaLabel: a, className: s, inputMode: c }) {
|
|
32017
|
+
let l = o(Tm), u = a ? { "aria-label": a } : { "aria-labelledby": l }, d = `select-qstage__input${r ? " select-qstage__input--multi" : ""}${s ? " " + s : ""}`;
|
|
31858
32018
|
return r ? /* @__PURE__ */ _("textarea", {
|
|
31859
32019
|
className: d,
|
|
31860
32020
|
value: e,
|
|
@@ -31872,9 +32032,9 @@ function Cm({ value: e, onChange: t, type: n = "text", multiline: r = !1, placeh
|
|
|
31872
32032
|
onChange: (e) => t(e.target.value)
|
|
31873
32033
|
});
|
|
31874
32034
|
}
|
|
31875
|
-
var
|
|
31876
|
-
function
|
|
31877
|
-
let s = o(
|
|
32035
|
+
var Om = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
32036
|
+
function km({ options: e, value: t, multiple: n = !1, onChange: r, keys: i, ariaLabel: a }) {
|
|
32037
|
+
let s = o(Tm), c = Array.isArray(t) ? t : t ? [t] : [], l = (e) => ((i == null ? void 0 : i[e]) ?? Om[e] ?? "").toUpperCase(), u = (e) => {
|
|
31878
32038
|
r(n ? c.includes(e) ? c.filter((t) => t !== e) : [...c, e] : e);
|
|
31879
32039
|
}, d = (t) => {
|
|
31880
32040
|
if (t.ctrlKey || t.metaKey || t.altKey || t.key.length !== 1) return;
|
|
@@ -31916,7 +32076,7 @@ function Tm({ options: e, value: t, multiple: n = !1, onChange: r, keys: i, aria
|
|
|
31916
32076
|
}
|
|
31917
32077
|
//#endregion
|
|
31918
32078
|
//#region src/SelectChoiceCard.tsx
|
|
31919
|
-
var
|
|
32079
|
+
var Am = r(function({ icon: e, media: t, accent: n, title: r, description: i, badge: a, meta: o, cta: s, to: c, onClick: l, selected: u, disabled: d = !1, className: f, ...p }, m) {
|
|
31920
32080
|
let h = `select-choicecard${u ? " is-selected" : ""}${d ? " is-disabled" : ""}${f ? " " + f : ""}`, y = n ? { "--select-choice-accent": n } : void 0, x = /* @__PURE__ */ v(g, { children: [
|
|
31921
32081
|
t == null ? /* @__PURE__ */ v("span", {
|
|
31922
32082
|
className: "select-choicecard__top",
|
|
@@ -31984,7 +32144,7 @@ var Em = r(function({ icon: e, media: t, accent: n, title: r, description: i, ba
|
|
|
31984
32144
|
children: x
|
|
31985
32145
|
});
|
|
31986
32146
|
});
|
|
31987
|
-
function
|
|
32147
|
+
function jm({ badge: e = !0 }) {
|
|
31988
32148
|
return /* @__PURE__ */ v("div", {
|
|
31989
32149
|
className: "select-choicecard select-choicecard--skeleton",
|
|
31990
32150
|
"aria-hidden": "true",
|
|
@@ -32005,7 +32165,7 @@ function Dm({ badge: e = !0 }) {
|
|
|
32005
32165
|
]
|
|
32006
32166
|
});
|
|
32007
32167
|
}
|
|
32008
|
-
var
|
|
32168
|
+
var Mm = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, skeletonCount: r = 4, listOnPhone: i = !1, className: a, style: o, ...s }, c) {
|
|
32009
32169
|
return /* @__PURE__ */ _("div", {
|
|
32010
32170
|
ref: c,
|
|
32011
32171
|
...s,
|
|
@@ -32015,16 +32175,16 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32015
32175
|
"--select-choice-min": t,
|
|
32016
32176
|
...o
|
|
32017
32177
|
},
|
|
32018
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ _(
|
|
32178
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ _(jm, {}, t)) : e
|
|
32019
32179
|
});
|
|
32020
|
-
}),
|
|
32180
|
+
}), Nm = 960, Pm = Math.round(Nm * 210 / 297), Fm = r(function({ side: e = "front", accent: t, courseTitle: n, subtitle: r, memberName: i = "Nome do aluno", body: a, signatures: o = [], issuedAt: c, verificationCode: l, eyebrow: u, className: d }, m) {
|
|
32021
32181
|
let h = f(null), [y, b] = p(.5);
|
|
32022
32182
|
s(() => {
|
|
32023
32183
|
let e = h.current;
|
|
32024
32184
|
if (!e) return;
|
|
32025
32185
|
let t = () => {
|
|
32026
32186
|
let t = e.clientWidth;
|
|
32027
|
-
t > 0 && b(Math.min(1, t /
|
|
32187
|
+
t > 0 && b(Math.min(1, t / Nm));
|
|
32028
32188
|
};
|
|
32029
32189
|
if (t(), typeof ResizeObserver > "u") return;
|
|
32030
32190
|
let n = new ResizeObserver(t);
|
|
@@ -32032,7 +32192,7 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32032
32192
|
}, []);
|
|
32033
32193
|
let x = e === "front", S = {
|
|
32034
32194
|
"--select-cert-accent": t || void 0,
|
|
32035
|
-
height:
|
|
32195
|
+
height: Pm * y + 2
|
|
32036
32196
|
};
|
|
32037
32197
|
return /* @__PURE__ */ _("div", {
|
|
32038
32198
|
ref: (e) => {
|
|
@@ -32045,8 +32205,8 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32045
32205
|
children: /* @__PURE__ */ _("div", {
|
|
32046
32206
|
className: "select-certpreview__sheet",
|
|
32047
32207
|
style: {
|
|
32048
|
-
width:
|
|
32049
|
-
height:
|
|
32208
|
+
width: Nm,
|
|
32209
|
+
height: Pm,
|
|
32050
32210
|
transform: `scale(${y})`
|
|
32051
32211
|
},
|
|
32052
32212
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -32119,13 +32279,13 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32119
32279
|
});
|
|
32120
32280
|
//#endregion
|
|
32121
32281
|
//#region src/SelectImageField.tsx
|
|
32122
|
-
function
|
|
32282
|
+
function Im(e) {
|
|
32123
32283
|
return new Promise((t, n) => {
|
|
32124
32284
|
let r = new FileReader();
|
|
32125
32285
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
32126
32286
|
});
|
|
32127
32287
|
}
|
|
32128
|
-
var
|
|
32288
|
+
var Lm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", maxSizeMB: i = 3, urlPlaceholder: a, hint: o, uploadFile: s, className: c, ...l }, u) {
|
|
32129
32289
|
let [d, f] = p([]), [m, h] = p(null), g = t ? [t] : [], y = async (e) => {
|
|
32130
32290
|
let t = e[0];
|
|
32131
32291
|
if (!t) {
|
|
@@ -32133,7 +32293,7 @@ var Nm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
32133
32293
|
return;
|
|
32134
32294
|
}
|
|
32135
32295
|
if (h(null), !s) {
|
|
32136
|
-
n(await
|
|
32296
|
+
n(await Im(t)), f([]);
|
|
32137
32297
|
return;
|
|
32138
32298
|
}
|
|
32139
32299
|
f([t]);
|
|
@@ -32165,7 +32325,7 @@ var Nm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
32165
32325
|
children: m
|
|
32166
32326
|
})]
|
|
32167
32327
|
});
|
|
32168
|
-
}),
|
|
32328
|
+
}), Rm = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
32169
32329
|
let [o, s] = p(() => new Set(n)), c = (e) => s((n) => {
|
|
32170
32330
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
32171
32331
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -32211,6 +32371,6 @@ var Nm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
32211
32371
|
});
|
|
32212
32372
|
});
|
|
32213
32373
|
//#endregion
|
|
32214
|
-
export { E as AUTH_FX_VARIANTS, ze as AppleIcon, bt as AppsIcon, ln as ArchiveIcon, ae as ArrowLeftIcon, Ve as ArrowRightIcon, Yt as ArrowUpRightIcon, qe as AtIcon, Ie as AuthAppIcon, Ot as AwardIcon, Xt as BagIcon, ct as BankIcon, Te as BellIcon, Et as BookIcon, he as BookmarkIcon, ht as BroadcastIcon, Ye as BuildingIcon, at as CalendarIcon, Kt as CameraIcon, St as CartIcon, vt as ChartLineIcon, Ft as ChatIcon, Ke as CheckCircleIcon, Ue as CheckIcon, J as ChevronDownIcon, q as ChevronLeftIcon, K as ChevronRightIcon, ot as ChevronUpIcon, vn as ClearFormatIcon, dt as ClipboardIcon, me as ClockIcon, zt as CloseCircleIcon, de as CloseIcon, le as CopyIcon, tt as CreditCardIcon, Oe as CubeIcon, Gt as DatabaseIcon, pt as DiscountIcon, Vt as DocumentTextIcon, fe as DotsHorizontalIcon, nt as EditIcon, st as ExportIcon, ue as ExternalLinkIcon, We as EyeIcon, Ge as EyeOffIcon, Re as FacebookIcon, Dt as FileDownloadIcon, oe as FilterIcon, Lt as FlagIcon, Bt as FlashIcon, $t as GiftIcon, G as GithubIcon, ye as GlobeIcon, ie as GoogleIcon, rn as GripIcon, en as HeadsetIcon, Se as HelpIcon, Qe as HomeIcon, qt as IdCardIcon, nn as ImageIcon, xe as InfoIcon, Xe as KeyIcon, Wt as LampIcon, Zt as LayoutIcon, Ht as LinceIcon, _t as LinkIcon, hn as ListBulletIcon, gn as ListNumberIcon, Rt as LocationIcon, it as LockIcon, Le as MailIcon, un as MailUnreadIcon, Ct as MenuIcon, xt as MinusCircleIcon, Me as MobileIcon, ut as MoneyReceiveIcon, lt as MoneySendIcon, je as MonitorIcon, Ae as MoonIcon, ft as NoteIcon, At as PaletteIcon, sn as PaperclipIcon, Be as PasskeyIcon, Mt as PauseIcon, Fe as PhoneIcon, ge as PinIcon, Tt as PlayCircleIcon, Pe as PlusIcon, Pt as ReceiptIcon, Ne as RefreshIcon, Nt as RefundIcon, on as ReplyAllIcon, an as ReplyIcon, De as RocketIcon, mi as SELECT_BRAND_NAMES, Xd as SELECT_BR_UF_TILES, ri as SELECT_CARD_BRANDS, cm as SELECT_COLOR_PRESETS, jc as SELECT_COL_DATETIME, Mc as SELECT_COL_ID, Ir as SELECT_COUNTRIES, Gp as SELECT_DAILY_PRESETS, Hp as SELECT_DATE_PRESETS, Kr as SELECT_SPACE, el as SELECT_TOKEN_PATTERN, Hr as SELECT_TRANSACTION_STATUS, se as SearchIcon, Pm as SelectAccordion, Ro as SelectActionCard, Wr as SelectActionList, Gr as SelectActionMenu, Yn as SelectAddButton, Gc as SelectAddCard, Bn as SelectAlert, zo as SelectAppTile, Ju as SelectAssistant, ne as SelectAuthFx, sa as SelectAvatar, _a as SelectBackLink, Vr as SelectBadge, Su as SelectBalanceCard, br as SelectBankAccountField, yi as SelectBankIcon, xd as SelectBarChart, ei as SelectBox, hf as SelectBoxPlot, gi as SelectBrandIcon, Da as SelectBreadcrumb, tm as SelectBuilderLayout, nm as SelectBuilderWorkspace, cf as SelectBullet, Bf as SelectBump, W as SelectButton, Ts as SelectCalendar, _f as SelectCalendarHeatmap, mf as SelectCandlestick, re as SelectCard, Kc as SelectCardGrid, jm as SelectCertificatePreview, td as SelectChartCard, Md as SelectChartLegend, Yu as SelectChatMessage, Xu as SelectChatTurn, Zu as SelectChatTyping, On as SelectCheckbox, ua as SelectChipInput, Em as SelectChoiceCard, Dm as SelectChoiceCardSkeleton, Om as SelectChoiceGrid, Ef as SelectChord, qf as SelectCirclePack, Fo as SelectCodeBlock, Lo as SelectCollapsible, vm as SelectColorField, jd as SelectColumnChart, Dd as SelectComboChart, gr as SelectCombobox, kc as SelectConfirmModal, mc as SelectConversation, _c as SelectConversationBubble, hc as SelectConversationDay, gc as SelectConversationEvent, No as SelectCopyRow, Io as SelectCopyableId, Bo as SelectCreateTile, Wc as SelectDataTable, tu as SelectDateField, qp as SelectDatePicker, Qp as SelectDateRangeField, ap as SelectDetailList, op as SelectDetailRow, cl as SelectDeviceFrame, Ci as SelectDisclosureButton, oa as SelectDivider, Rn as SelectDocumentField, Od as SelectDonut, T as SelectDotField, Qc as SelectDragHandle, $c as SelectDragPreview, bf as SelectDumbbell, Jc as SelectFactList, Cu as SelectFeeBreakdown, Dn as SelectField, _r as SelectFieldGrid, Jn as SelectFileDropzone, Vn as SelectFileTile, ou as SelectFilterBar, Mo as SelectFilterChip, im as SelectFlowCanvas, om as SelectFlowLayout, am as SelectFlowNode, Na as SelectFormLayout, Ac as SelectFormModal, Hd as SelectFunnel, qd as SelectGauge, Sf as SelectGaugeBands, Ff as SelectGlobe, Zr as SelectGrid, Jd as SelectHeatmap, Df as SelectHexbin, Il as SelectHideMoneyToggle, af as SelectHorizontalBar, ks as SelectHtmlFrame, Wf as SelectIcicle, Ha as SelectIcon, Y as SelectIconButton, fl as SelectIconPicker, Ld as SelectIconTile, pa as SelectIdentityFooter, Nm as SelectImageField, rr as SelectImageGalleryField, Zn as SelectImageUploadField, Xn as SelectImageUrlsField, Op as SelectImageZoomModal, Ms as SelectInbox, Ns as SelectInboxBanner, Is as SelectInboxEmpty, Ps as SelectInboxToolbar, Cn as SelectInfoTip, Xr as SelectInline, Wu as SelectInsight, Gu as SelectInsightList, Ku as SelectInsightRow, Fd as SelectJourney, ta as SelectJsonViewer, Ko as SelectKanban, qo as SelectKanbanCard, ep as SelectKbd, Np as SelectKeyValueEditor, wu as SelectKpiCard, wn as SelectLabelRow, Ho as SelectLauncherItem, Vo as SelectLauncherSection, Xc as SelectLayoutThumb, Xs as SelectLeadChip, Td as SelectLineChart, aa as SelectLinkButton, wp as SelectListCard, Ep as SelectListLabel, Tp as SelectListRow, Ea as SelectLoader, nc as SelectMailAttachButton, Ys as SelectMailAttachment, Qs as SelectMailComposer, rc as SelectMailComposerAttachments, tc as SelectMailComposerBody, ac as SelectMailComposerFooter, ec as SelectMailComposerInput, $s as SelectMailComposerRow, Tc as SelectMailEditor, Ls as SelectMailList, Rs as SelectMailListGroup, zs as SelectMailListItem, Vs as SelectMailListNote, Bs as SelectMailListSkeleton, Us as SelectMailMessage, Ws as SelectMailNotice, ul as SelectMailPreview, Hs as SelectMailReader, ic as SelectMailUpload, Fs as SelectMailboxStatus, xf as SelectMarimekko, Vl as SelectMarkStack, Ap as SelectMediaCell, Xa as SelectMenu, no as SelectMenuButton, to as SelectMenuDivider, eo as SelectMenuHeading, Qa as SelectMenuItem, $a as SelectMenuLink, ll as SelectMessageBubble, Fl as SelectMetricDelta, Bd as SelectMiniStats, Dc as SelectModal, Nl as SelectMoney, Pn as SelectMoneyField, Jf as SelectNetwork, Ua as SelectNote, $p as SelectNumberField, ed as SelectNumberedItem, $u as SelectNumberedList, Ll as SelectOfferPrice, jp as SelectOfflineModal, da as SelectOptionList, fa as SelectOptionRow, ma as SelectOtpInput, Aa as SelectPage, ka as SelectPageBackProvider, ho as SelectPagination, Ka as SelectPanel, Vf as SelectParallel, Lf as SelectPareto, Ta as SelectPasswordStrength, pi as SelectPaymentBrand, Vd as SelectPaymentCard, Rr as SelectPhoneField, Id as SelectPips, Cp as SelectPlanCard, vf as SelectPolarArea, mr as SelectPopover, xu as SelectPreviewFrame, ol as SelectPreviewStage, ym as SelectProgressBar, Zd as SelectProgressList, zf as SelectPyramid, Tm as SelectQuestionChoices, Cm as SelectQuestionInput, Sm as SelectQuestionStage, ff as SelectRadar, $d as SelectRadialBar, zr as SelectRadioGroup, gf as SelectRangeBar, zl as SelectRating, Bl as SelectRatingQuote, lc as SelectRecipientInput, qc as SelectRecordCard, Ja as SelectRegions, em as SelectRepeatingFieldArray, ya as SelectResendButton, xa as SelectRetryStatus, Pd as SelectRing, Oc as SelectRowActions, pf as SelectSankey, df as SelectScatter, uo as SelectSearchInput, Xf as SelectSearchMenu, Qf as SelectSearchMenuGroup, $f as SelectSearchMenuOption, qa as SelectSection, Br as SelectSegmented, ir as SelectSelect, Ml as SelectSensitiveValue, Wa as SelectSettingList, Ga as SelectSettingRow, fp as SelectSetupGuide, pp as SelectSetupNext, Nd as SelectShareBar, lo as SelectSideNav, Ba as SelectSkeleton, yf as SelectSlope, Zc as SelectSortableItem, yd as SelectSparkline, hl as SelectSplitChain, Rd as SelectSpotlight, Yr as SelectStack, Ed as SelectStackedArea, Ur as SelectStatusBadge, sp as SelectSteps, Cf as SelectStreamGraph, wf as SelectSunburst, cu as SelectSurface, xr as SelectSwitch, sm as SelectSwitchField, wo as SelectTable, Ao as SelectTableCell, jo as SelectTableEmpty, Do as SelectTableRow, Ya as SelectTabs, su as SelectTagSelect, zd as SelectTaskCard, uc as SelectTemplateMenu, ti as SelectText, kn as SelectTextarea, rp as SelectThemeSwitcher, Dp as SelectThumbnail, If as SelectTicker, Yd as SelectTileMap, ia as SelectTimeline, gu as SelectToastProvider, Sr as SelectToggleList, wr as SelectTogglePanel, Cr as SelectToggleRow, al as SelectTokenTextarea, Sn as SelectTooltip, Sp as SelectTour, Gf as SelectTree, uf as SelectTreemap, An as SelectUnitInput, Eo as SelectUserCell, Ol as SelectValueVisibilityProvider, Kf as SelectVenn, Tf as SelectViolin, Rf as SelectWaffle, of as SelectWaterfall, Of as SelectWordCloud, Uo as SelectWorkspaceSwitcher, kp as SelectZoomThumbnail, be as SelectorIcon, rt as SendIcon, pe as Setting4Icon, $e as SettingsIcon, He as ShieldIcon, Jt as ShieldTickIcon, cn as SidebarIcon, It as SparkleIcon, ve as SplitIcon, _e as StarIcon, yt as StoreIcon, wt as StorefrontIcon, ke as SunIcon, Qt as TargetIcon, Ee as TerminalIcon, dn as TextBoldIcon, fn as TextItalicIcon, _n as TextQuoteIcon, mn as TextStrikeIcon, pn as TextUnderlineIcon, mt as TicketDiscountIcon, Ze as TrashIcon, Ut as TrendUpIcon, gt as TruckIcon, ce as UploadIcon, we as UserIcon, kt as UsersIcon, et as WalletIcon, Ce as WarningIcon, Je as Web3Icon, tn as WhatsAppIcon, qs as attachmentExt, ca as avatarInitials, ps as calendarRange, ds as calendarToday, fm as contrastRatio, fr as detectSelectTheme, Lr as dialCodeOf, ju as formatInsightImpact, va as formatResendWait, $n as galleryItemFromFile, er as galleryItemFromUrl, mm as hexToHsv, hm as hsvToHex, cc as isMailAddress, bc as mailLinkHref, As as mailName, yc as mailTextToHtml, um as normalizeHex, wa as passwordScore, Po as prettyCode, il as readTokenText, np as resolveSelectTheme, vi as selectBankIspb, oi as selectCardBrand, si as selectCardBrandLabel, jl as useSelectHasSensitiveValues, Hc as useSelectPageSize, Al as useSelectSensitiveValueMark, _u as useSelectToast, kl as useSelectValueVisibility };
|
|
32374
|
+
export { E as AUTH_FX_VARIANTS, ze as AppleIcon, bt as AppsIcon, ln as ArchiveIcon, ae as ArrowLeftIcon, Ve as ArrowRightIcon, Yt as ArrowUpRightIcon, qe as AtIcon, Ie as AuthAppIcon, Ot as AwardIcon, Xt as BagIcon, ct as BankIcon, Te as BellIcon, Et as BookIcon, he as BookmarkIcon, ht as BroadcastIcon, Ye as BuildingIcon, at as CalendarIcon, Kt as CameraIcon, St as CartIcon, vt as ChartLineIcon, Ft as ChatIcon, Ke as CheckCircleIcon, Ue as CheckIcon, J as ChevronDownIcon, q as ChevronLeftIcon, K as ChevronRightIcon, ot as ChevronUpIcon, vn as ClearFormatIcon, dt as ClipboardIcon, me as ClockIcon, zt as CloseCircleIcon, de as CloseIcon, le as CopyIcon, tt as CreditCardIcon, Oe as CubeIcon, Gt as DatabaseIcon, pt as DiscountIcon, Vt as DocumentTextIcon, fe as DotsHorizontalIcon, nt as EditIcon, st as ExportIcon, ue as ExternalLinkIcon, We as EyeIcon, Ge as EyeOffIcon, Re as FacebookIcon, Dt as FileDownloadIcon, oe as FilterIcon, Lt as FlagIcon, Bt as FlashIcon, $t as GiftIcon, G as GithubIcon, ye as GlobeIcon, ie as GoogleIcon, rn as GripIcon, en as HeadsetIcon, Se as HelpIcon, Qe as HomeIcon, qt as IdCardIcon, nn as ImageIcon, xe as InfoIcon, Xe as KeyIcon, Wt as LampIcon, Zt as LayoutIcon, Ht as LinceIcon, _t as LinkIcon, hn as ListBulletIcon, gn as ListNumberIcon, Rt as LocationIcon, it as LockIcon, Le as MailIcon, un as MailUnreadIcon, Ct as MenuIcon, xt as MinusCircleIcon, Me as MobileIcon, ut as MoneyReceiveIcon, lt as MoneySendIcon, je as MonitorIcon, Ae as MoonIcon, ft as NoteIcon, At as PaletteIcon, sn as PaperclipIcon, Be as PasskeyIcon, Mt as PauseIcon, Fe as PhoneIcon, ge as PinIcon, Tt as PlayCircleIcon, Pe as PlusIcon, Pt as ReceiptIcon, Ne as RefreshIcon, Nt as RefundIcon, on as ReplyAllIcon, an as ReplyIcon, De as RocketIcon, mi as SELECT_BRAND_NAMES, ef as SELECT_BR_UF_TILES, ri as SELECT_CARD_BRANDS, fm as SELECT_COLOR_PRESETS, Fc as SELECT_COL_DATETIME, Ic as SELECT_COL_ID, Ir as SELECT_COUNTRIES, Yp as SELECT_DAILY_PRESETS, Kp as SELECT_DATE_PRESETS, Kr as SELECT_SPACE, il as SELECT_TOKEN_PATTERN, Hr as SELECT_TRANSACTION_STATUS, se as SearchIcon, Rm as SelectAccordion, Ro as SelectActionCard, Wr as SelectActionList, Gr as SelectActionMenu, Yn as SelectAddButton, Yc as SelectAddCard, Bn as SelectAlert, zo as SelectAppTile, Qu as SelectAssistant, ne as SelectAuthFx, sa as SelectAvatar, _a as SelectBackLink, Vr as SelectBadge, Eu as SelectBalanceCard, br as SelectBankAccountField, yi as SelectBankIcon, Td as SelectBarChart, ei as SelectBox, yf as SelectBoxPlot, gi as SelectBrandIcon, Da as SelectBreadcrumb, am as SelectBuilderLayout, om as SelectBuilderWorkspace, ff as SelectBullet, Wf as SelectBump, W as SelectButton, Ts as SelectCalendar, xf as SelectCalendarHeatmap, vf as SelectCandlestick, re as SelectCard, Xc as SelectCardGrid, Fm as SelectCertificatePreview, ad as SelectChartCard, Id as SelectChartLegend, $u as SelectChatMessage, ed as SelectChatTurn, td as SelectChatTyping, On as SelectCheckbox, ua as SelectChipInput, Am as SelectChoiceCard, jm as SelectChoiceCardSkeleton, Mm as SelectChoiceGrid, Af as SelectChord, Zf as SelectCirclePack, Fo as SelectCodeBlock, Lo as SelectCollapsible, Sm as SelectColorField, Fd as SelectColumnChart, jd as SelectComboChart, gr as SelectCombobox, Nc as SelectConfirmModal, mc as SelectConversation, _c as SelectConversationBubble, hc as SelectConversationDay, gc as SelectConversationEvent, No as SelectCopyRow, Io as SelectCopyableId, Bo as SelectCreateTile, Jc as SelectDataTable, au as SelectDateField, Zp as SelectDatePicker, nm as SelectDateRangeField, lp as SelectDetailList, up as SelectDetailRow, fl as SelectDeviceFrame, Ci as SelectDisclosureButton, oa as SelectDivider, Ac as SelectDnsRecords, Rn as SelectDocumentField, Md as SelectDonut, T as SelectDotField, nl as SelectDragHandle, rl as SelectDragPreview, wf as SelectDumbbell, Qc as SelectFactList, kc as SelectFactStrip, Du as SelectFeeBreakdown, Dn as SelectField, _r as SelectFieldGrid, Jn as SelectFileDropzone, Vn as SelectFileTile, uu as SelectFilterBar, Mo as SelectFilterChip, cm as SelectFlowCanvas, um as SelectFlowLayout, lm as SelectFlowNode, Na as SelectFormLayout, Pc as SelectFormModal, Kd as SelectFunnel, Zd as SelectGauge, Ef as SelectGaugeBands, zf as SelectGlobe, Zr as SelectGrid, Qd as SelectHeatmap, jf as SelectHexbin, Bl as SelectHideMoneyToggle, lf as SelectHorizontalBar, ks as SelectHtmlFrame, Jf as SelectIcicle, Ha as SelectIcon, Y as SelectIconButton, gl as SelectIconPicker, Vd as SelectIconTile, pa as SelectIdentityFooter, Lm as SelectImageField, rr as SelectImageGalleryField, Zn as SelectImageUploadField, Xn as SelectImageUrlsField, Mp as SelectImageZoomModal, Ms as SelectInbox, Ns as SelectInboxBanner, Is as SelectInboxEmpty, Ps as SelectInboxToolbar, Cn as SelectInfoTip, Xr as SelectInline, Ju as SelectInsight, Yu as SelectInsightList, Xu as SelectInsightRow, zd as SelectJourney, ta as SelectJsonViewer, Ko as SelectKanban, qo as SelectKanbanCard, ip as SelectKbd, Lp as SelectKeyValueEditor, Ou as SelectKpiCard, wn as SelectLabelRow, Ho as SelectLauncherItem, Vo as SelectLauncherSection, el as SelectLayoutThumb, Xs as SelectLeadChip, kd as SelectLineChart, aa as SelectLinkButton, Op as SelectListCard, Ap as SelectListLabel, kp as SelectListRow, Ea as SelectLoader, nc as SelectMailAttachButton, Ys as SelectMailAttachment, Qs as SelectMailComposer, rc as SelectMailComposerAttachments, tc as SelectMailComposerBody, ac as SelectMailComposerFooter, ec as SelectMailComposerInput, $s as SelectMailComposerRow, Tc as SelectMailEditor, Ls as SelectMailList, Rs as SelectMailListGroup, zs as SelectMailListItem, Vs as SelectMailListNote, Bs as SelectMailListSkeleton, Us as SelectMailMessage, Ws as SelectMailNotice, ml as SelectMailPreview, Hs as SelectMailReader, ic as SelectMailUpload, Fs as SelectMailboxStatus, Tf as SelectMarimekko, Gl as SelectMarkStack, Pp as SelectMediaCell, Xa as SelectMenu, no as SelectMenuButton, to as SelectMenuDivider, eo as SelectMenuHeading, Qa as SelectMenuItem, $a as SelectMenuLink, pl as SelectMessageBubble, zl as SelectMetricDelta, Wd as SelectMiniStats, Dc as SelectModal, Ll as SelectMoney, Pn as SelectMoneyField, Qf as SelectNetwork, Ua as SelectNote, rm as SelectNumberField, id as SelectNumberedItem, rd as SelectNumberedList, Vl as SelectOfferPrice, Fp as SelectOfflineModal, da as SelectOptionList, fa as SelectOptionRow, ma as SelectOtpInput, Aa as SelectPage, ka as SelectPageBackProvider, ho as SelectPagination, Ka as SelectPanel, Gf as SelectParallel, Vf as SelectPareto, Ta as SelectPasswordStrength, pi as SelectPaymentBrand, Gd as SelectPaymentCard, Rr as SelectPhoneField, Bd as SelectPips, Dp as SelectPlanCard, Sf as SelectPolarArea, mr as SelectPopover, Tu as SelectPreviewFrame, ul as SelectPreviewStage, Cm as SelectProgressBar, tf as SelectProgressList, Uf as SelectPyramid, km as SelectQuestionChoices, Dm as SelectQuestionInput, Em as SelectQuestionStage, gf as SelectRadar, rf as SelectRadialBar, zr as SelectRadioGroup, bf as SelectRangeBar, Ul as SelectRating, Wl as SelectRatingQuote, lc as SelectRecipientInput, Zc as SelectRecordCard, Ja as SelectRegions, im as SelectRepeatingFieldArray, ya as SelectResendButton, xa as SelectRetryStatus, Rd as SelectRing, Mc as SelectRowActions, _f as SelectSankey, hf as SelectScatter, uo as SelectSearchInput, ep as SelectSearchMenu, np as SelectSearchMenuGroup, rp as SelectSearchMenuOption, qa as SelectSection, Br as SelectSegmented, ir as SelectSelect, Il as SelectSensitiveValue, Wa as SelectSettingList, Ga as SelectSettingRow, gp as SelectSetupGuide, _p as SelectSetupNext, Ld as SelectShareBar, lo as SelectSideNav, Ba as SelectSkeleton, Cf as SelectSlope, tl as SelectSortableItem, Cd as SelectSparkline, yl as SelectSplitChain, Hd as SelectSpotlight, Yr as SelectStack, Ad as SelectStackedArea, Ur as SelectStatusBadge, jc as SelectStatusPage, dp as SelectSteps, Df as SelectStreamGraph, Of as SelectSunburst, fu as SelectSurface, xr as SelectSwitch, dm as SelectSwitchField, wo as SelectTable, Ao as SelectTableCell, jo as SelectTableEmpty, Do as SelectTableRow, Ya as SelectTabs, du as SelectTagSelect, Ud as SelectTaskCard, uc as SelectTemplateMenu, ti as SelectText, kn as SelectTextarea, sp as SelectThemeSwitcher, jp as SelectThumbnail, Bf as SelectTicker, $d as SelectTileMap, ia as SelectTimeline, bu as SelectToastProvider, Sr as SelectToggleList, wr as SelectTogglePanel, Cr as SelectToggleRow, ll as SelectTokenTextarea, Sn as SelectTooltip, Ep as SelectTour, Yf as SelectTree, mf as SelectTreemap, An as SelectUnitInput, Eo as SelectUserCell, Ml as SelectValueVisibilityProvider, Xf as SelectVenn, kf as SelectViolin, Hf as SelectWaffle, uf as SelectWaterfall, Mf as SelectWordCloud, Uo as SelectWorkspaceSwitcher, Np as SelectZoomThumbnail, be as SelectorIcon, rt as SendIcon, pe as Setting4Icon, $e as SettingsIcon, He as ShieldIcon, Jt as ShieldTickIcon, cn as SidebarIcon, It as SparkleIcon, ve as SplitIcon, _e as StarIcon, yt as StoreIcon, wt as StorefrontIcon, ke as SunIcon, Qt as TargetIcon, Ee as TerminalIcon, dn as TextBoldIcon, fn as TextItalicIcon, _n as TextQuoteIcon, mn as TextStrikeIcon, pn as TextUnderlineIcon, mt as TicketDiscountIcon, Ze as TrashIcon, Ut as TrendUpIcon, gt as TruckIcon, ce as UploadIcon, we as UserIcon, kt as UsersIcon, et as WalletIcon, Ce as WarningIcon, Je as Web3Icon, tn as WhatsAppIcon, qs as attachmentExt, ca as avatarInitials, ps as calendarRange, ds as calendarToday, gm as contrastRatio, fr as detectSelectTheme, Lr as dialCodeOf, Fu as formatInsightImpact, va as formatResendWait, $n as galleryItemFromFile, er as galleryItemFromUrl, vm as hexToHsv, ym as hsvToHex, cc as isMailAddress, bc as mailLinkHref, As as mailName, yc as mailTextToHtml, mm as normalizeHex, wa as passwordScore, Po as prettyCode, cl as readTokenText, op as resolveSelectTheme, vi as selectBankIspb, oi as selectCardBrand, si as selectCardBrandLabel, Fl as useSelectHasSensitiveValues, Kc as useSelectPageSize, Pl as useSelectSensitiveValueMark, xu as useSelectToast, Nl as useSelectValueVisibility };
|
|
32215
32375
|
|
|
32216
32376
|
//# sourceMappingURL=index.js.map
|