@selectwin/kit 0.1.182 → 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/SelectFlowCanvas.d.ts +8 -2
- 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 +897 -715
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3039,12 +3039,18 @@ function zn(e) {
|
|
|
3039
3039
|
//#endregion
|
|
3040
3040
|
//#region src/SelectAlert.tsx
|
|
3041
3041
|
var Bn = r(function({ children: e, tone: t = "critical", title: n, action: r, className: i, ...a }, o) {
|
|
3042
|
+
let s = t === "critical";
|
|
3042
3043
|
return /* @__PURE__ */ v("div", {
|
|
3043
3044
|
ref: o,
|
|
3044
3045
|
...a,
|
|
3045
|
-
className: `select-alert select-alert--${t}${i ? " " + i : ""}`,
|
|
3046
|
+
className: `select-alert select-alert--${t}${s ? " select-alert--icon" : ""}${i ? " " + i : ""}`,
|
|
3046
3047
|
role: "alert",
|
|
3047
3048
|
children: [
|
|
3049
|
+
s && /* @__PURE__ */ _("span", {
|
|
3050
|
+
className: "select-alert__icon",
|
|
3051
|
+
"aria-hidden": "true",
|
|
3052
|
+
children: /* @__PURE__ */ _(Ce, {})
|
|
3053
|
+
}),
|
|
3048
3054
|
n != null && /* @__PURE__ */ _("p", {
|
|
3049
3055
|
className: "select-alert__title",
|
|
3050
3056
|
children: n
|
|
@@ -9774,34 +9780,47 @@ function gc({ children: e, time: t }) {
|
|
|
9774
9780
|
}) : null]
|
|
9775
9781
|
});
|
|
9776
9782
|
}
|
|
9777
|
-
function _c({ direction: e, author: t, label: n, attachment: r, meta: i, metaTone: a, children: o }) {
|
|
9778
|
-
let
|
|
9779
|
-
|
|
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", {
|
|
9780
9822
|
className: dc("select-convo__msg", `select-convo__msg--${e}`),
|
|
9781
|
-
children:
|
|
9782
|
-
t ? /* @__PURE__ */ _("span", {
|
|
9783
|
-
className: "select-convo__author",
|
|
9784
|
-
children: t
|
|
9785
|
-
}) : null,
|
|
9786
|
-
c ? /* @__PURE__ */ v("div", {
|
|
9787
|
-
className: "select-convo__bubble",
|
|
9788
|
-
children: [n ? /* @__PURE__ */ _("span", {
|
|
9789
|
-
className: "select-convo__label",
|
|
9790
|
-
children: n
|
|
9791
|
-
}) : null, s ? /* @__PURE__ */ _("div", {
|
|
9792
|
-
className: "select-convo__text",
|
|
9793
|
-
children: o
|
|
9794
|
-
}) : null]
|
|
9795
|
-
}) : null,
|
|
9796
|
-
r ? /* @__PURE__ */ _("div", {
|
|
9797
|
-
className: "select-convo__attachment",
|
|
9798
|
-
children: r
|
|
9799
|
-
}) : null,
|
|
9800
|
-
i ? /* @__PURE__ */ _("span", {
|
|
9801
|
-
className: dc("select-convo__meta", a && `select-convo__meta--${a}`),
|
|
9802
|
-
children: i
|
|
9803
|
-
}) : null
|
|
9804
|
-
]
|
|
9823
|
+
children: u
|
|
9805
9824
|
});
|
|
9806
9825
|
}
|
|
9807
9826
|
//#endregion
|
|
@@ -10022,19 +10041,19 @@ function Tc({ value: e, onChange: t, placeholder: n, "aria-label": r = "Mensagem
|
|
|
10022
10041
|
//#endregion
|
|
10023
10042
|
//#region src/SelectModal.tsx
|
|
10024
10043
|
var Ec = 220;
|
|
10025
|
-
function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i,
|
|
10026
|
-
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);
|
|
10027
10046
|
if (s(() => {
|
|
10028
|
-
if (e)
|
|
10029
|
-
else if (
|
|
10030
|
-
|
|
10047
|
+
if (e) T(!0), D(!1);
|
|
10048
|
+
else if (w) {
|
|
10049
|
+
D(!0);
|
|
10031
10050
|
let e = setTimeout(() => {
|
|
10032
|
-
|
|
10051
|
+
T(!1), D(!1);
|
|
10033
10052
|
}, Ec);
|
|
10034
10053
|
return () => clearTimeout(e);
|
|
10035
10054
|
}
|
|
10036
|
-
}, [e,
|
|
10037
|
-
if (!
|
|
10055
|
+
}, [e, w]), s(() => {
|
|
10056
|
+
if (!w) return;
|
|
10038
10057
|
let e = (e) => {
|
|
10039
10058
|
e.key === "Escape" && t();
|
|
10040
10059
|
};
|
|
@@ -10043,32 +10062,38 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10043
10062
|
return document.body.style.overflow = "hidden", () => {
|
|
10044
10063
|
document.removeEventListener("keydown", e), document.body.style.overflow = n;
|
|
10045
10064
|
};
|
|
10046
|
-
}, [
|
|
10047
|
-
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", {
|
|
10048
10073
|
type: "button",
|
|
10049
10074
|
className: "select-modal__close",
|
|
10050
10075
|
"aria-label": "Fechar",
|
|
10051
10076
|
onClick: t,
|
|
10052
10077
|
children: /* @__PURE__ */ _(de, {})
|
|
10053
|
-
}),
|
|
10078
|
+
}), A = `select-modal__header${m ? " select-modal__header--divided" : ""}`;
|
|
10054
10079
|
return y(/* @__PURE__ */ _("div", {
|
|
10055
|
-
className: `select select-modal__overlay${
|
|
10056
|
-
"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,
|
|
10057
10082
|
onMouseDown: t,
|
|
10058
10083
|
children: /* @__PURE__ */ _("div", {
|
|
10059
|
-
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" : ""}`,
|
|
10060
10085
|
role: "dialog",
|
|
10061
10086
|
"aria-modal": "true",
|
|
10062
10087
|
onMouseDown: (e) => e.stopPropagation(),
|
|
10063
|
-
children:
|
|
10088
|
+
children: l ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("aside", {
|
|
10064
10089
|
className: "select-modal__aside",
|
|
10065
|
-
children:
|
|
10090
|
+
children: l
|
|
10066
10091
|
}), /* @__PURE__ */ v("div", {
|
|
10067
10092
|
className: "select-modal__content",
|
|
10068
10093
|
children: [
|
|
10069
|
-
|
|
10070
|
-
(n || r || i) && /* @__PURE__ */ v("div", {
|
|
10071
|
-
className:
|
|
10094
|
+
k,
|
|
10095
|
+
(n || r || i || a) && /* @__PURE__ */ v("div", {
|
|
10096
|
+
className: A,
|
|
10072
10097
|
children: [
|
|
10073
10098
|
n && /* @__PURE__ */ _("span", {
|
|
10074
10099
|
className: "select-modal__eyebrow",
|
|
@@ -10078,21 +10103,18 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10078
10103
|
className: "select-modal__title",
|
|
10079
10104
|
children: r
|
|
10080
10105
|
}),
|
|
10081
|
-
|
|
10082
|
-
className: "select-modal__subtitle",
|
|
10083
|
-
children: i
|
|
10084
|
-
})
|
|
10106
|
+
O
|
|
10085
10107
|
]
|
|
10086
10108
|
}),
|
|
10087
10109
|
/* @__PURE__ */ _("div", {
|
|
10088
10110
|
className: "select-modal__body",
|
|
10089
|
-
children: /* @__PURE__ */ _(Si, { children:
|
|
10111
|
+
children: /* @__PURE__ */ _(Si, { children: o })
|
|
10090
10112
|
})
|
|
10091
10113
|
]
|
|
10092
10114
|
})] }) : /* @__PURE__ */ v(g, { children: [
|
|
10093
|
-
|
|
10094
|
-
(n || r || i) && (
|
|
10095
|
-
className: `${
|
|
10115
|
+
k,
|
|
10116
|
+
(n || r || i || a) && (S ? /* @__PURE__ */ v("div", {
|
|
10117
|
+
className: `${A} select-modal__header--action`,
|
|
10096
10118
|
children: [/* @__PURE__ */ v("div", {
|
|
10097
10119
|
className: "select-modal__headtext",
|
|
10098
10120
|
children: [
|
|
@@ -10104,17 +10126,14 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10104
10126
|
className: "select-modal__title",
|
|
10105
10127
|
children: r
|
|
10106
10128
|
}),
|
|
10107
|
-
|
|
10108
|
-
className: "select-modal__subtitle",
|
|
10109
|
-
children: i
|
|
10110
|
-
})
|
|
10129
|
+
O
|
|
10111
10130
|
]
|
|
10112
10131
|
}), /* @__PURE__ */ _("div", {
|
|
10113
10132
|
className: "select-modal__headaction",
|
|
10114
|
-
children:
|
|
10133
|
+
children: S
|
|
10115
10134
|
})]
|
|
10116
10135
|
}) : /* @__PURE__ */ v("div", {
|
|
10117
|
-
className:
|
|
10136
|
+
className: A,
|
|
10118
10137
|
children: [
|
|
10119
10138
|
n && /* @__PURE__ */ _("span", {
|
|
10120
10139
|
className: "select-modal__eyebrow",
|
|
@@ -10124,27 +10143,174 @@ function Dc({ open: e, onClose: t, eyebrow: n, title: r, subtitle: i, children:
|
|
|
10124
10143
|
className: "select-modal__title",
|
|
10125
10144
|
children: r
|
|
10126
10145
|
}),
|
|
10127
|
-
|
|
10128
|
-
className: "select-modal__subtitle",
|
|
10129
|
-
children: i
|
|
10130
|
-
})
|
|
10146
|
+
O
|
|
10131
10147
|
]
|
|
10132
10148
|
})),
|
|
10133
|
-
|
|
10149
|
+
o && /* @__PURE__ */ _("div", {
|
|
10134
10150
|
className: "select-modal__body",
|
|
10135
|
-
children: /* @__PURE__ */ _(Si, { children:
|
|
10151
|
+
children: /* @__PURE__ */ _(Si, { children: o })
|
|
10136
10152
|
}),
|
|
10137
|
-
|
|
10153
|
+
c && /* @__PURE__ */ _("div", {
|
|
10138
10154
|
className: "select-modal__footer",
|
|
10139
|
-
children:
|
|
10155
|
+
children: c
|
|
10140
10156
|
})
|
|
10141
10157
|
] })
|
|
10142
10158
|
})
|
|
10143
10159
|
}), document.body);
|
|
10144
10160
|
}
|
|
10145
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
|
|
10146
10312
|
//#region src/SelectRowActions.tsx
|
|
10147
|
-
function
|
|
10313
|
+
function Mc({ actions: e, label: t = "Ações" }) {
|
|
10148
10314
|
let [n, r] = p(!1);
|
|
10149
10315
|
return /* @__PURE__ */ _(mr, {
|
|
10150
10316
|
active: n,
|
|
@@ -10166,7 +10332,7 @@ function Oc({ actions: e, label: t = "Ações" }) {
|
|
|
10166
10332
|
}
|
|
10167
10333
|
//#endregion
|
|
10168
10334
|
//#region src/SelectConfirmModal.tsx
|
|
10169
|
-
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 }) {
|
|
10170
10336
|
return /* @__PURE__ */ _(Dc, {
|
|
10171
10337
|
open: e,
|
|
10172
10338
|
onClose: t,
|
|
@@ -10199,7 +10365,7 @@ function kc({ open: e, onClose: t, onConfirm: n, title: r, children: i, confirmL
|
|
|
10199
10365
|
}
|
|
10200
10366
|
//#endregion
|
|
10201
10367
|
//#region src/SelectFormModal.tsx
|
|
10202
|
-
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 }) {
|
|
10203
10369
|
return /* @__PURE__ */ v(Dc, {
|
|
10204
10370
|
open: e,
|
|
10205
10371
|
onClose: t,
|
|
@@ -10242,34 +10408,34 @@ function Ac({ open: e, onClose: t, onSubmit: n, title: r, subtitle: i, children:
|
|
|
10242
10408
|
}
|
|
10243
10409
|
//#endregion
|
|
10244
10410
|
//#region src/SelectDataTable.tsx
|
|
10245
|
-
var
|
|
10411
|
+
var Fc = "9.5rem", Ic = {
|
|
10246
10412
|
minWidth: "9.5rem",
|
|
10247
10413
|
grow: 2
|
|
10248
10414
|
};
|
|
10249
|
-
function
|
|
10415
|
+
function Lc(e) {
|
|
10250
10416
|
return [e.wrap ? "select-table__td--wrap" : "", e.tone ? `select-table__td--${e.tone}` : ""].filter(Boolean).join(" ") || void 0;
|
|
10251
10417
|
}
|
|
10252
|
-
var
|
|
10253
|
-
function
|
|
10418
|
+
var Rc = "select-datatable:hidden-cols:";
|
|
10419
|
+
function zc(e) {
|
|
10254
10420
|
try {
|
|
10255
|
-
let t = localStorage.getItem(
|
|
10421
|
+
let t = localStorage.getItem(Rc + e), n = t ? JSON.parse(t) : null;
|
|
10256
10422
|
return Array.isArray(n) ? n.filter((e) => typeof e == "string") : [];
|
|
10257
10423
|
} catch {
|
|
10258
10424
|
return [];
|
|
10259
10425
|
}
|
|
10260
10426
|
}
|
|
10261
|
-
function
|
|
10427
|
+
function Bc(e, t) {
|
|
10262
10428
|
try {
|
|
10263
|
-
t.length === 0 ? localStorage.removeItem(
|
|
10429
|
+
t.length === 0 ? localStorage.removeItem(Rc + e) : localStorage.setItem(Rc + e, JSON.stringify(t));
|
|
10264
10430
|
} catch {}
|
|
10265
10431
|
}
|
|
10266
|
-
function
|
|
10432
|
+
function Vc(e) {
|
|
10267
10433
|
return e.hideable ?? !!e.title;
|
|
10268
10434
|
}
|
|
10269
|
-
var
|
|
10270
|
-
function
|
|
10435
|
+
var Hc = "select-datatable:col-widths:";
|
|
10436
|
+
function Uc(e) {
|
|
10271
10437
|
try {
|
|
10272
|
-
let t = localStorage.getItem(
|
|
10438
|
+
let t = localStorage.getItem(Hc + e), n = t ? JSON.parse(t) : null;
|
|
10273
10439
|
if (!n || typeof n != "object" || Array.isArray(n)) return {};
|
|
10274
10440
|
let r = {};
|
|
10275
10441
|
for (let [e, t] of Object.entries(n)) typeof t == "string" && t && (r[e] = t);
|
|
@@ -10278,16 +10444,16 @@ function zc(e) {
|
|
|
10278
10444
|
return {};
|
|
10279
10445
|
}
|
|
10280
10446
|
}
|
|
10281
|
-
function
|
|
10447
|
+
function Wc(e, t) {
|
|
10282
10448
|
try {
|
|
10283
|
-
Object.keys(t).length === 0 ? localStorage.removeItem(
|
|
10449
|
+
Object.keys(t).length === 0 ? localStorage.removeItem(Hc + e) : localStorage.setItem(Hc + e, JSON.stringify(t));
|
|
10284
10450
|
} catch {}
|
|
10285
10451
|
}
|
|
10286
|
-
var
|
|
10287
|
-
function
|
|
10452
|
+
var Gc = "select-datatable:page-size:";
|
|
10453
|
+
function Kc(e, t, n) {
|
|
10288
10454
|
let [r, i] = p(() => {
|
|
10289
10455
|
try {
|
|
10290
|
-
let r = Number(localStorage.getItem(
|
|
10456
|
+
let r = Number(localStorage.getItem(Gc + e));
|
|
10291
10457
|
return Number.isInteger(r) && r > 0 && (!n || n.includes(r)) ? r : t;
|
|
10292
10458
|
} catch {
|
|
10293
10459
|
return t;
|
|
@@ -10296,25 +10462,25 @@ function Hc(e, t, n) {
|
|
|
10296
10462
|
return [r, (t) => {
|
|
10297
10463
|
i(t);
|
|
10298
10464
|
try {
|
|
10299
|
-
localStorage.setItem(
|
|
10465
|
+
localStorage.setItem(Gc + e, String(t));
|
|
10300
10466
|
} catch {}
|
|
10301
10467
|
}];
|
|
10302
10468
|
}
|
|
10303
|
-
function
|
|
10469
|
+
function qc(e, t, n) {
|
|
10304
10470
|
let r = e == null || e === "", i = t == null || t === "";
|
|
10305
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", {
|
|
10306
10472
|
numeric: !0,
|
|
10307
10473
|
sensitivity: "base"
|
|
10308
10474
|
});
|
|
10309
10475
|
}
|
|
10310
|
-
function
|
|
10311
|
-
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) => {
|
|
10312
10478
|
let r = new Set(t), i = n(e);
|
|
10313
10479
|
return r.delete(i) || r.add(i), r;
|
|
10314
10480
|
}), re = (e) => {
|
|
10315
10481
|
E((t) => {
|
|
10316
10482
|
let n = !t.includes(e.key), r = n ? [...t, e.key] : t.filter((t) => t !== e.key);
|
|
10317
|
-
return m &&
|
|
10483
|
+
return m && Bc(m, r), n && ee((t) => t && t.key === e.key ? null : t), r;
|
|
10318
10484
|
});
|
|
10319
10485
|
}, W = (e) => {
|
|
10320
10486
|
ee((t) => {
|
|
@@ -10331,7 +10497,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10331
10497
|
let e = ie == null ? void 0 : ie.sortValue;
|
|
10332
10498
|
if (!V || !e) return (e) => e;
|
|
10333
10499
|
let t = V.dir === "asc" ? 1 : -1;
|
|
10334
|
-
return (n) => [...n].sort((n, r) =>
|
|
10500
|
+
return (n) => [...n].sort((n, r) => qc(e(n), e(r), t));
|
|
10335
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 ? [{
|
|
10336
10502
|
label: "",
|
|
10337
10503
|
grow: 1
|
|
@@ -10350,10 +10516,10 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10350
10516
|
let n = z[e];
|
|
10351
10517
|
n && P((e) => {
|
|
10352
10518
|
let r = { ...e };
|
|
10353
|
-
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;
|
|
10354
10520
|
});
|
|
10355
10521
|
}, se = () => {
|
|
10356
|
-
P({}), m &&
|
|
10522
|
+
P({}), m && Wc(m, {});
|
|
10357
10523
|
}, ce = Object.keys(N).length > 0, le = !r && i ? /* @__PURE__ */ _(jo, {
|
|
10358
10524
|
icon: i.icon,
|
|
10359
10525
|
title: i.heading,
|
|
@@ -10441,7 +10607,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10441
10607
|
children: z.map((t, n) => /* @__PURE__ */ _(Ao, {
|
|
10442
10608
|
align: t.align,
|
|
10443
10609
|
width: t.width,
|
|
10444
|
-
className:
|
|
10610
|
+
className: Lc(t),
|
|
10445
10611
|
disclosure: J && n === 0 ? "none" : void 0,
|
|
10446
10612
|
children: t.render(e)
|
|
10447
10613
|
}, n))
|
|
@@ -10453,7 +10619,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10453
10619
|
children: z.map((t, n) => /* @__PURE__ */ _(Ao, {
|
|
10454
10620
|
align: t.align,
|
|
10455
10621
|
width: t.width,
|
|
10456
|
-
className:
|
|
10622
|
+
className: Lc(t),
|
|
10457
10623
|
disclosure: n === 0 ? r ? "open" : "closed" : void 0,
|
|
10458
10624
|
children: t.render(e)
|
|
10459
10625
|
}, n))
|
|
@@ -10463,7 +10629,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10463
10629
|
children: z.map((e, n) => /* @__PURE__ */ _(Ao, {
|
|
10464
10630
|
align: e.align,
|
|
10465
10631
|
width: e.width,
|
|
10466
|
-
className:
|
|
10632
|
+
className: Lc(e),
|
|
10467
10633
|
children: e.render(t)
|
|
10468
10634
|
}, n))
|
|
10469
10635
|
}, `${n(e)}/${n(t)}`)) : []];
|
|
@@ -10473,7 +10639,7 @@ function Wc({ columns: e = [], items: t, getId: n, loading: r = !1, empty: i, pa
|
|
|
10473
10639
|
}
|
|
10474
10640
|
//#endregion
|
|
10475
10641
|
//#region src/SelectAddCard.tsx
|
|
10476
|
-
var
|
|
10642
|
+
var Yc = r(function({ label: e, description: t, onClick: n, icon: r, className: i, ...a }, o) {
|
|
10477
10643
|
return /* @__PURE__ */ v("button", {
|
|
10478
10644
|
ref: o,
|
|
10479
10645
|
...a,
|
|
@@ -10499,7 +10665,7 @@ var Gc = r(function({ label: e, description: t, onClick: n, icon: r, className:
|
|
|
10499
10665
|
});
|
|
10500
10666
|
//#endregion
|
|
10501
10667
|
//#region src/SelectCardGrid.tsx
|
|
10502
|
-
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 }) {
|
|
10503
10669
|
let g = !r && e.length === 0 && a != null, { hasTitleRow: y, hasFilters: b } = go({
|
|
10504
10670
|
title: u,
|
|
10505
10671
|
description: f,
|
|
@@ -10555,7 +10721,7 @@ function Kc({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
10555
10721
|
}, `skeleton-${t}`)) : e.map((e) => /* @__PURE__ */ _("div", {
|
|
10556
10722
|
className: "select-cardgrid__item",
|
|
10557
10723
|
children: n(e)
|
|
10558
|
-
}, t(e))), !r && s && /* @__PURE__ */ _(
|
|
10724
|
+
}, t(e))), !r && s && /* @__PURE__ */ _(Yc, {
|
|
10559
10725
|
label: s.label,
|
|
10560
10726
|
description: s.description,
|
|
10561
10727
|
onClick: s.onAction,
|
|
@@ -10568,7 +10734,7 @@ function Kc({ items: e, getId: t, renderItem: n, loading: r = !1, skeletonCount:
|
|
|
10568
10734
|
}
|
|
10569
10735
|
//#endregion
|
|
10570
10736
|
//#region src/SelectRecordCard.tsx
|
|
10571
|
-
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) {
|
|
10572
10738
|
let y = s != null || c != null, x = ga(l);
|
|
10573
10739
|
return /* @__PURE__ */ v("div", {
|
|
10574
10740
|
ref: g,
|
|
@@ -10583,7 +10749,7 @@ var qc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10583
10749
|
className: "select-rcard__preview",
|
|
10584
10750
|
"aria-hidden": "true",
|
|
10585
10751
|
children: p
|
|
10586
|
-
}) : null : /* @__PURE__ */ _(
|
|
10752
|
+
}) : null : /* @__PURE__ */ _($c, {
|
|
10587
10753
|
src: d,
|
|
10588
10754
|
fallback: f
|
|
10589
10755
|
}),
|
|
@@ -10623,7 +10789,7 @@ var qc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10623
10789
|
}),
|
|
10624
10790
|
a && a.length > 0 && /* @__PURE__ */ _("div", {
|
|
10625
10791
|
className: "select-rcard__body",
|
|
10626
|
-
children: /* @__PURE__ */ _(
|
|
10792
|
+
children: /* @__PURE__ */ _(Qc, { items: a })
|
|
10627
10793
|
}),
|
|
10628
10794
|
o && /* @__PURE__ */ _("div", {
|
|
10629
10795
|
className: "select-rcard__tags",
|
|
@@ -10647,7 +10813,7 @@ var qc = r(function({ media: e, title: t, subtitle: n, actions: r, body: i, fact
|
|
|
10647
10813
|
]
|
|
10648
10814
|
});
|
|
10649
10815
|
});
|
|
10650
|
-
function
|
|
10816
|
+
function Qc({ items: e }) {
|
|
10651
10817
|
return e.length ? /* @__PURE__ */ _("ul", {
|
|
10652
10818
|
className: "select-facts",
|
|
10653
10819
|
children: e.map((e, t) => /* @__PURE__ */ v("li", {
|
|
@@ -10663,7 +10829,7 @@ function Jc({ items: e }) {
|
|
|
10663
10829
|
}, e.key ?? t))
|
|
10664
10830
|
}) : null;
|
|
10665
10831
|
}
|
|
10666
|
-
function
|
|
10832
|
+
function $c({ src: e, fallback: t }) {
|
|
10667
10833
|
let [n, r] = p(!1);
|
|
10668
10834
|
return s(() => r(!1), [e]), /* @__PURE__ */ _("span", {
|
|
10669
10835
|
className: "select-rcard__cover",
|
|
@@ -10679,7 +10845,7 @@ function Yc({ src: e, fallback: t }) {
|
|
|
10679
10845
|
})
|
|
10680
10846
|
});
|
|
10681
10847
|
}
|
|
10682
|
-
var
|
|
10848
|
+
var el = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i, ...a }, o) {
|
|
10683
10849
|
let s = t ? {
|
|
10684
10850
|
...i,
|
|
10685
10851
|
"--select-rcard-thumb-accent": t
|
|
@@ -10702,13 +10868,13 @@ var Xc = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
10702
10868
|
children: [/* @__PURE__ */ _("span", { className: "select-rcard__thumbcol" }), /* @__PURE__ */ _("span", { className: "select-rcard__thumbcol" })]
|
|
10703
10869
|
})]
|
|
10704
10870
|
});
|
|
10705
|
-
}),
|
|
10871
|
+
}), tl = r(function({ dragging: e = !1, ghost: t = !1, className: n, ...r }, i) {
|
|
10706
10872
|
return /* @__PURE__ */ _("div", {
|
|
10707
10873
|
ref: i,
|
|
10708
10874
|
...r,
|
|
10709
10875
|
className: `select-sortitem${e && !t ? " is-dragging" : ""}${t ? " is-ghost" : ""}${n ? " " + n : ""}`
|
|
10710
10876
|
});
|
|
10711
|
-
}),
|
|
10877
|
+
}), nl = r(function({ dragging: e = !1, variant: t = "inline", label: n = "Arrastar para reordenar", className: r, ...i }, a) {
|
|
10712
10878
|
return /* @__PURE__ */ _("button", {
|
|
10713
10879
|
ref: a,
|
|
10714
10880
|
type: "button",
|
|
@@ -10719,7 +10885,7 @@ var Xc = r(function({ kind: e, accent: t, fill: n = !1, className: r, style: i,
|
|
|
10719
10885
|
children: /* @__PURE__ */ _(rn, {})
|
|
10720
10886
|
});
|
|
10721
10887
|
});
|
|
10722
|
-
function
|
|
10888
|
+
function rl({ children: e }) {
|
|
10723
10889
|
return /* @__PURE__ */ v("span", {
|
|
10724
10890
|
className: "select-dragpreview",
|
|
10725
10891
|
children: [/* @__PURE__ */ _(rn, {}), e]
|
|
@@ -10727,20 +10893,20 @@ function $c({ children: e }) {
|
|
|
10727
10893
|
}
|
|
10728
10894
|
//#endregion
|
|
10729
10895
|
//#region src/SelectTokenTextarea.tsx
|
|
10730
|
-
var
|
|
10731
|
-
function
|
|
10896
|
+
var il = /\{\{?\s*([a-zA-Z_][a-zA-Z0-9_.[\]]*)\s*\}?\}/g, al = "data-select-sentinel";
|
|
10897
|
+
function ol(e, t, n) {
|
|
10732
10898
|
let r = document.createElement("span");
|
|
10733
10899
|
return r.className = "select-token", r.setAttribute("contenteditable", "false"), r.dataset.token = t, r.dataset.raw = e, r.textContent = n(t), r;
|
|
10734
10900
|
}
|
|
10735
|
-
function
|
|
10901
|
+
function sl(e, t, n) {
|
|
10736
10902
|
let r = [], i = new RegExp(t.source, t.flags.includes("g") ? t.flags : t.flags + "g"), a = 0;
|
|
10737
10903
|
for (let t of e.matchAll(i)) {
|
|
10738
10904
|
let i = t.index ?? 0;
|
|
10739
|
-
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;
|
|
10740
10906
|
}
|
|
10741
10907
|
return a < e.length && r.push(document.createTextNode(e.slice(a))), r;
|
|
10742
10908
|
}
|
|
10743
|
-
function
|
|
10909
|
+
function cl(e) {
|
|
10744
10910
|
let t = "", n = (e) => {
|
|
10745
10911
|
e.childNodes.forEach((e) => {
|
|
10746
10912
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
@@ -10753,7 +10919,7 @@ function il(e) {
|
|
|
10753
10919
|
return;
|
|
10754
10920
|
}
|
|
10755
10921
|
if (e.tagName === "BR") {
|
|
10756
|
-
e.hasAttribute(
|
|
10922
|
+
e.hasAttribute(al) || (t += "\n");
|
|
10757
10923
|
return;
|
|
10758
10924
|
}
|
|
10759
10925
|
(e.tagName === "DIV" || e.tagName === "P") && t && !t.endsWith("\n") && (t += "\n"), n(e);
|
|
@@ -10762,15 +10928,15 @@ function il(e) {
|
|
|
10762
10928
|
};
|
|
10763
10929
|
return n(e), t.replace(//g, "");
|
|
10764
10930
|
}
|
|
10765
|
-
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) {
|
|
10766
10932
|
let w = c(), T = f(null), E = f(null), D = f(null), O = f(r);
|
|
10767
10933
|
O.current = r;
|
|
10768
10934
|
let k = a((e) => {
|
|
10769
10935
|
let t = T.current;
|
|
10770
10936
|
if (!t) return;
|
|
10771
|
-
t.replaceChildren(...
|
|
10937
|
+
t.replaceChildren(...sl(e, i, O.current));
|
|
10772
10938
|
let n = document.createElement("br");
|
|
10773
|
-
n.setAttribute(
|
|
10939
|
+
n.setAttribute(al, ""), t.appendChild(n), E.current = e;
|
|
10774
10940
|
}, [i]);
|
|
10775
10941
|
u(() => {
|
|
10776
10942
|
t !== E.current && k(t);
|
|
@@ -10783,11 +10949,11 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10783
10949
|
let A = () => {
|
|
10784
10950
|
let e = T.current;
|
|
10785
10951
|
if (!e) return;
|
|
10786
|
-
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(
|
|
10952
|
+
if (!e.lastChild || !(e.lastChild instanceof HTMLElement && e.lastChild.hasAttribute(al))) {
|
|
10787
10953
|
let t = document.createElement("br");
|
|
10788
|
-
t.setAttribute(
|
|
10954
|
+
t.setAttribute(al, ""), e.appendChild(t);
|
|
10789
10955
|
}
|
|
10790
|
-
let t =
|
|
10956
|
+
let t = cl(e);
|
|
10791
10957
|
E.current = t, n(t);
|
|
10792
10958
|
}, j = () => {
|
|
10793
10959
|
let e = window.getSelection(), t = T.current;
|
|
@@ -10821,7 +10987,7 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10821
10987
|
l(C, () => ({
|
|
10822
10988
|
insertToken: (e) => {
|
|
10823
10989
|
var t, n;
|
|
10824
|
-
M([
|
|
10990
|
+
M([ol(`{${e}}`, e, O.current)], D.current), N(), window.setTimeout(N, 0), (t = (n = window).requestAnimationFrame) == null || t.call(n, () => N());
|
|
10825
10991
|
},
|
|
10826
10992
|
focus: N
|
|
10827
10993
|
}));
|
|
@@ -10836,12 +11002,12 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10836
11002
|
let t = e.clipboardData.getData("text/plain");
|
|
10837
11003
|
if (!t) return;
|
|
10838
11004
|
let n = window.getSelection();
|
|
10839
|
-
M(
|
|
11005
|
+
M(sl(t.replace(/\r\n?/g, "\n"), i, O.current), n && n.rangeCount ? n.getRangeAt(0) : null);
|
|
10840
11006
|
}, I = (e, t) => {
|
|
10841
11007
|
let n = window.getSelection();
|
|
10842
11008
|
if (!n || !n.rangeCount || n.isCollapsed) return;
|
|
10843
11009
|
let r = n.getRangeAt(0), i = document.createElement("div");
|
|
10844
|
-
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());
|
|
10845
11011
|
}, L = m ? `${w}-err` : p ? `${w}-hint` : void 0;
|
|
10846
11012
|
return /* @__PURE__ */ v("div", {
|
|
10847
11013
|
className: `select-field${x === "sm" ? " select-field--sm" : ""}${S ? " " + S : ""}`,
|
|
@@ -10894,18 +11060,18 @@ var al = r(function({ label: e, value: t, onChange: n, labelOf: r, pattern: i =
|
|
|
10894
11060
|
});
|
|
10895
11061
|
//#endregion
|
|
10896
11062
|
//#region src/SelectChannelPreview.tsx
|
|
10897
|
-
function
|
|
11063
|
+
function ul({ children: e }) {
|
|
10898
11064
|
return /* @__PURE__ */ _("div", {
|
|
10899
11065
|
className: "select-previewstage",
|
|
10900
11066
|
children: e
|
|
10901
11067
|
});
|
|
10902
11068
|
}
|
|
10903
|
-
function
|
|
11069
|
+
function dl(e) {
|
|
10904
11070
|
var t, n;
|
|
10905
11071
|
let r = e.trim().split(/\s+/).filter(Boolean);
|
|
10906
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();
|
|
10907
11073
|
}
|
|
10908
|
-
function
|
|
11074
|
+
function fl({ variant: e, title: t, subtitle: n, children: r }) {
|
|
10909
11075
|
return /* @__PURE__ */ v("div", {
|
|
10910
11076
|
className: `select-device select-device--${e}`,
|
|
10911
11077
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -10913,7 +11079,7 @@ function cl({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
10913
11079
|
children: [/* @__PURE__ */ _("span", {
|
|
10914
11080
|
className: "select-device__avatar",
|
|
10915
11081
|
"aria-hidden": "true",
|
|
10916
|
-
children: e === "whatsapp" && t ?
|
|
11082
|
+
children: e === "whatsapp" && t ? dl(t) : null
|
|
10917
11083
|
}), (t || n) && /* @__PURE__ */ v("span", {
|
|
10918
11084
|
className: "select-device__who",
|
|
10919
11085
|
children: [t && /* @__PURE__ */ _("span", {
|
|
@@ -10930,7 +11096,7 @@ function cl({ variant: e, title: t, subtitle: n, children: r }) {
|
|
|
10930
11096
|
})]
|
|
10931
11097
|
});
|
|
10932
11098
|
}
|
|
10933
|
-
function
|
|
11099
|
+
function pl({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1, children: a }) {
|
|
10934
11100
|
let o = /* @__PURE__ */ v("div", {
|
|
10935
11101
|
className: `select-bubble select-bubble--${e}`,
|
|
10936
11102
|
children: [
|
|
@@ -10956,7 +11122,7 @@ function ll({ variant: e, media: t, buttons: n, empty: r = !1, backdrop: i = !1,
|
|
|
10956
11122
|
children: o
|
|
10957
11123
|
}) : o;
|
|
10958
11124
|
}
|
|
10959
|
-
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" }) {
|
|
10960
11126
|
let s = t != null && t !== "" && t !== !1;
|
|
10961
11127
|
return /* @__PURE__ */ v("div", {
|
|
10962
11128
|
className: `select-mailpreview${r === "mobile" ? " select-mailpreview--mobile" : ""}`,
|
|
@@ -10977,13 +11143,13 @@ function ul({ from: e, subject: t, emptySubject: n = "Sem assunto", device: r =
|
|
|
10977
11143
|
className: `select-mailpreview__subject${s ? "" : " select-mailpreview__subject--empty"}`,
|
|
10978
11144
|
children: s ? t : n
|
|
10979
11145
|
})]
|
|
10980
|
-
}), 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, {
|
|
10981
11147
|
srcDoc: i,
|
|
10982
11148
|
title: o
|
|
10983
11149
|
})]
|
|
10984
11150
|
});
|
|
10985
11151
|
}
|
|
10986
|
-
function
|
|
11152
|
+
function hl({ srcDoc: e, title: t }) {
|
|
10987
11153
|
let n = f(null), [r, i] = p(null), a = f(null);
|
|
10988
11154
|
s(() => () => {
|
|
10989
11155
|
var e;
|
|
@@ -11013,7 +11179,7 @@ function dl({ srcDoc: e, title: t }) {
|
|
|
11013
11179
|
}
|
|
11014
11180
|
//#endregion
|
|
11015
11181
|
//#region src/SelectIconPicker.tsx
|
|
11016
|
-
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 }) {
|
|
11017
11183
|
let f = c(), [m, h] = p(!1), y = t.find((e) => e.value === n), b = (e) => {
|
|
11018
11184
|
r(e), h(!1);
|
|
11019
11185
|
}, x = /* @__PURE__ */ v("button", {
|
|
@@ -11084,18 +11250,18 @@ function fl({ label: e, options: t, value: n, onChange: r, help: i, hint: a, err
|
|
|
11084
11250
|
}
|
|
11085
11251
|
//#endregion
|
|
11086
11252
|
//#region src/SelectSplitChain.tsx
|
|
11087
|
-
function
|
|
11253
|
+
function _l(e) {
|
|
11088
11254
|
var t;
|
|
11089
11255
|
return e.initials ? e.initials : ((t = (typeof e.label == "string" ? e.label : "").trim()[0]) == null ? void 0 : t.toUpperCase()) ?? "•";
|
|
11090
11256
|
}
|
|
11091
|
-
function
|
|
11257
|
+
function vl({ node: e, origin: t = !1 }) {
|
|
11092
11258
|
return /* @__PURE__ */ v("span", {
|
|
11093
11259
|
className: `select-chain__node${t ? " select-chain__node--origin" : ""}`,
|
|
11094
11260
|
children: [
|
|
11095
11261
|
/* @__PURE__ */ _("span", {
|
|
11096
11262
|
className: "select-chain__dot",
|
|
11097
11263
|
"aria-hidden": "true",
|
|
11098
|
-
children:
|
|
11264
|
+
children: _l(e)
|
|
11099
11265
|
}),
|
|
11100
11266
|
/* @__PURE__ */ _("span", {
|
|
11101
11267
|
className: "select-chain__label",
|
|
@@ -11109,16 +11275,16 @@ function ml({ node: e, origin: t = !1 }) {
|
|
|
11109
11275
|
]
|
|
11110
11276
|
});
|
|
11111
11277
|
}
|
|
11112
|
-
var
|
|
11278
|
+
var yl = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a) {
|
|
11113
11279
|
let o = e.slice(0, n), s = e.length - o.length, c = [], l = (e) => /* @__PURE__ */ _("span", {
|
|
11114
11280
|
className: "select-chain__link",
|
|
11115
11281
|
"aria-hidden": "true"
|
|
11116
11282
|
}, e);
|
|
11117
|
-
t && c.push(/* @__PURE__ */ _(
|
|
11283
|
+
t && c.push(/* @__PURE__ */ _(vl, {
|
|
11118
11284
|
node: t,
|
|
11119
11285
|
origin: !0
|
|
11120
11286
|
}, "__origin"));
|
|
11121
|
-
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));
|
|
11122
11288
|
return s > 0 && (c.push(l("__link-more")), c.push(/* @__PURE__ */ v("span", {
|
|
11123
11289
|
className: "select-chain__more",
|
|
11124
11290
|
children: ["+", s]
|
|
@@ -11128,37 +11294,37 @@ var hl = r(function({ nodes: e, origin: t, max: n = 3, className: r, ...i }, a)
|
|
|
11128
11294
|
className: `select-chain${r ? " " + r : ""}`,
|
|
11129
11295
|
children: c
|
|
11130
11296
|
});
|
|
11131
|
-
}),
|
|
11297
|
+
}), bl = new Intl.NumberFormat("pt-BR", {
|
|
11132
11298
|
style: "currency",
|
|
11133
11299
|
currency: "BRL"
|
|
11134
11300
|
});
|
|
11135
|
-
function
|
|
11301
|
+
function xl(e) {
|
|
11136
11302
|
let t = typeof e == "string" ? Number(e) : e;
|
|
11137
11303
|
return typeof t == "number" && Number.isFinite(t) ? t : 0;
|
|
11138
11304
|
}
|
|
11139
|
-
function
|
|
11140
|
-
return
|
|
11305
|
+
function Sl(e) {
|
|
11306
|
+
return bl.format(xl(e) / 100);
|
|
11141
11307
|
}
|
|
11142
11308
|
//#endregion
|
|
11143
11309
|
//#region src/SelectMoney.tsx
|
|
11144
|
-
var
|
|
11310
|
+
var Cl = "sw:hide-money", wl = {
|
|
11145
11311
|
hidden: !1,
|
|
11146
11312
|
toggle: () => {},
|
|
11147
11313
|
setHidden: () => {}
|
|
11148
|
-
},
|
|
11149
|
-
function
|
|
11314
|
+
}, Tl = n(null);
|
|
11315
|
+
function El() {
|
|
11150
11316
|
try {
|
|
11151
|
-
return localStorage.getItem(
|
|
11317
|
+
return localStorage.getItem(Cl) === "1";
|
|
11152
11318
|
} catch {
|
|
11153
11319
|
return !1;
|
|
11154
11320
|
}
|
|
11155
11321
|
}
|
|
11156
|
-
function
|
|
11322
|
+
function Dl(e) {
|
|
11157
11323
|
try {
|
|
11158
|
-
localStorage.setItem(
|
|
11324
|
+
localStorage.setItem(Cl, e ? "1" : "0");
|
|
11159
11325
|
} catch {}
|
|
11160
11326
|
}
|
|
11161
|
-
function
|
|
11327
|
+
function Ol() {
|
|
11162
11328
|
let e = 0, t = /* @__PURE__ */ new Set(), n = () => t.forEach((e) => e());
|
|
11163
11329
|
return {
|
|
11164
11330
|
mark() {
|
|
@@ -11176,14 +11342,14 @@ function wl() {
|
|
|
11176
11342
|
present: () => e > 0
|
|
11177
11343
|
};
|
|
11178
11344
|
}
|
|
11179
|
-
var
|
|
11180
|
-
function
|
|
11181
|
-
let [t] = p(
|
|
11182
|
-
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);
|
|
11183
11349
|
}, []), o = a(() => {
|
|
11184
11350
|
r((e) => {
|
|
11185
11351
|
let t = !e;
|
|
11186
|
-
return
|
|
11352
|
+
return Dl(t), t;
|
|
11187
11353
|
});
|
|
11188
11354
|
}, []), s = d(() => ({
|
|
11189
11355
|
hidden: n,
|
|
@@ -11194,28 +11360,28 @@ function Ol({ children: e }) {
|
|
|
11194
11360
|
o,
|
|
11195
11361
|
i
|
|
11196
11362
|
]);
|
|
11197
|
-
return /* @__PURE__ */ _(
|
|
11363
|
+
return /* @__PURE__ */ _(kl.Provider, {
|
|
11198
11364
|
value: t,
|
|
11199
|
-
children: /* @__PURE__ */ _(
|
|
11365
|
+
children: /* @__PURE__ */ _(Tl.Provider, {
|
|
11200
11366
|
value: s,
|
|
11201
11367
|
children: e
|
|
11202
11368
|
})
|
|
11203
11369
|
});
|
|
11204
11370
|
}
|
|
11205
|
-
function
|
|
11206
|
-
return o(
|
|
11371
|
+
function Nl() {
|
|
11372
|
+
return o(Tl) ?? wl;
|
|
11207
11373
|
}
|
|
11208
|
-
function
|
|
11209
|
-
let t = o(
|
|
11374
|
+
function Pl(e = !0) {
|
|
11375
|
+
let t = o(kl);
|
|
11210
11376
|
s(() => e && t ? t.mark() : void 0, [t, e]);
|
|
11211
11377
|
}
|
|
11212
|
-
function
|
|
11213
|
-
let e = o(
|
|
11214
|
-
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);
|
|
11215
11381
|
}
|
|
11216
|
-
var
|
|
11217
|
-
let { hidden: a } =
|
|
11218
|
-
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", {
|
|
11219
11385
|
ref: i,
|
|
11220
11386
|
...r,
|
|
11221
11387
|
className: `select-sensitive${a ? " select-sensitive--hidden" : ""}${n ? " " + n : ""}`,
|
|
@@ -11223,15 +11389,15 @@ var Ml = r(function({ children: e, label: t = "valor oculto", className: n, ...r
|
|
|
11223
11389
|
children: e
|
|
11224
11390
|
});
|
|
11225
11391
|
});
|
|
11226
|
-
function
|
|
11227
|
-
let n =
|
|
11228
|
-
return _(t ?
|
|
11392
|
+
function Ll({ cents: e, sensitive: t = !0 }) {
|
|
11393
|
+
let n = Sl(e);
|
|
11394
|
+
return _(t ? Il : g, { children: n });
|
|
11229
11395
|
}
|
|
11230
|
-
var
|
|
11396
|
+
var Rl = new Intl.NumberFormat("pt-BR", {
|
|
11231
11397
|
signDisplay: "exceptZero",
|
|
11232
11398
|
minimumFractionDigits: 1,
|
|
11233
11399
|
maximumFractionDigits: 1
|
|
11234
|
-
}),
|
|
11400
|
+
}), zl = r(function({ value: e, invert: t = !1, caption: n, unit: r = "percent", className: i, ...a }, o) {
|
|
11235
11401
|
if (e == null || !Number.isFinite(e)) return /* @__PURE__ */ v("span", {
|
|
11236
11402
|
ref: o,
|
|
11237
11403
|
...a,
|
|
@@ -11247,7 +11413,7 @@ var Pl = new Intl.NumberFormat("pt-BR", {
|
|
|
11247
11413
|
className: `select-delta__value select-delta__value--${u}`,
|
|
11248
11414
|
children: [
|
|
11249
11415
|
d ? `${d} ` : "",
|
|
11250
|
-
|
|
11416
|
+
Rl.format(e),
|
|
11251
11417
|
r === "points" ? " p.p." : "%"
|
|
11252
11418
|
]
|
|
11253
11419
|
}), n != null && /* @__PURE__ */ _("span", {
|
|
@@ -11256,8 +11422,8 @@ var Pl = new Intl.NumberFormat("pt-BR", {
|
|
|
11256
11422
|
})]
|
|
11257
11423
|
});
|
|
11258
11424
|
});
|
|
11259
|
-
function
|
|
11260
|
-
let { hidden: e, toggle: t } =
|
|
11425
|
+
function Bl() {
|
|
11426
|
+
let { hidden: e, toggle: t } = Nl();
|
|
11261
11427
|
return /* @__PURE__ */ _(Y, {
|
|
11262
11428
|
variant: "outline",
|
|
11263
11429
|
icon: _(e ? Ge : We, {}),
|
|
@@ -11268,7 +11434,7 @@ function Il() {
|
|
|
11268
11434
|
}
|
|
11269
11435
|
//#endregion
|
|
11270
11436
|
//#region src/SelectOfferPrice.tsx
|
|
11271
|
-
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) {
|
|
11272
11438
|
let u = Number(e);
|
|
11273
11439
|
if (!Number.isFinite(u)) return null;
|
|
11274
11440
|
let d = Number(t), f = Number.isFinite(d) && d > u, p = f ? Math.round((d - u) / d * 100) : 0;
|
|
@@ -11283,7 +11449,7 @@ var Ll = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
11283
11449
|
}),
|
|
11284
11450
|
/* @__PURE__ */ _("span", {
|
|
11285
11451
|
className: "select-offerprice__now",
|
|
11286
|
-
children: u === 0 && r != null ? r : /* @__PURE__ */ _(
|
|
11452
|
+
children: u === 0 && r != null ? r : /* @__PURE__ */ _(Ll, { cents: u })
|
|
11287
11453
|
}),
|
|
11288
11454
|
o != null && /* @__PURE__ */ _("span", {
|
|
11289
11455
|
className: "select-offerprice__per",
|
|
@@ -11291,7 +11457,7 @@ var Ll = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
11291
11457
|
}),
|
|
11292
11458
|
f && /* @__PURE__ */ _("s", {
|
|
11293
11459
|
className: "select-offerprice__was",
|
|
11294
|
-
children: /* @__PURE__ */ _(
|
|
11460
|
+
children: /* @__PURE__ */ _(Ll, { cents: d })
|
|
11295
11461
|
}),
|
|
11296
11462
|
f && !n && p > 0 && /* @__PURE__ */ v("span", {
|
|
11297
11463
|
className: "select-offerprice__off",
|
|
@@ -11310,7 +11476,7 @@ var Ll = r(function({ price: e, was: t, hideDiscount: n = !1, zeroLabel: r, note
|
|
|
11310
11476
|
});
|
|
11311
11477
|
//#endregion
|
|
11312
11478
|
//#region src/SelectRating.tsx
|
|
11313
|
-
function
|
|
11479
|
+
function Hl({ size: e }) {
|
|
11314
11480
|
return /* @__PURE__ */ _("svg", {
|
|
11315
11481
|
width: e,
|
|
11316
11482
|
height: e,
|
|
@@ -11322,7 +11488,7 @@ function Rl({ size: e }) {
|
|
|
11322
11488
|
})
|
|
11323
11489
|
});
|
|
11324
11490
|
}
|
|
11325
|
-
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) {
|
|
11326
11492
|
let l = !!n && !a, [u, d] = p(null), f = u ?? e;
|
|
11327
11493
|
return /* @__PURE__ */ _("div", {
|
|
11328
11494
|
ref: c,
|
|
@@ -11338,14 +11504,14 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11338
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", {
|
|
11339
11505
|
className: "select-rating__star select-rating__star--part",
|
|
11340
11506
|
style: { "--select-rating-fill": `${Math.round(a * 100)}%` },
|
|
11341
|
-
children: [/* @__PURE__ */ _(
|
|
11507
|
+
children: [/* @__PURE__ */ _(Hl, { size: r }), /* @__PURE__ */ _("span", {
|
|
11342
11508
|
className: "select-rating__fill",
|
|
11343
11509
|
"aria-hidden": "true",
|
|
11344
|
-
children: /* @__PURE__ */ _(
|
|
11510
|
+
children: /* @__PURE__ */ _(Hl, { size: r })
|
|
11345
11511
|
})]
|
|
11346
11512
|
}) : /* @__PURE__ */ _("span", {
|
|
11347
11513
|
className: `select-rating__star${a === 1 ? " is-filled" : ""}`,
|
|
11348
|
-
children: /* @__PURE__ */ _(
|
|
11514
|
+
children: /* @__PURE__ */ _(Hl, { size: r })
|
|
11349
11515
|
});
|
|
11350
11516
|
return l ? /* @__PURE__ */ _("button", {
|
|
11351
11517
|
type: "button",
|
|
@@ -11359,14 +11525,14 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11359
11525
|
}, t) : /* @__PURE__ */ _("span", { children: o }, t);
|
|
11360
11526
|
})
|
|
11361
11527
|
});
|
|
11362
|
-
}),
|
|
11528
|
+
}), Wl = r(function({ stars: e, max: t = 5, title: n, text: r, className: i, ...a }, o) {
|
|
11363
11529
|
let s = Number(e), c = Number.isFinite(s) && s > 0;
|
|
11364
11530
|
return /* @__PURE__ */ v("div", {
|
|
11365
11531
|
ref: o,
|
|
11366
11532
|
...a,
|
|
11367
11533
|
className: `select-quote${i ? " " + i : ""}`,
|
|
11368
11534
|
children: [
|
|
11369
|
-
c && /* @__PURE__ */ _(
|
|
11535
|
+
c && /* @__PURE__ */ _(Ul, {
|
|
11370
11536
|
value: s,
|
|
11371
11537
|
max: t,
|
|
11372
11538
|
size: 13
|
|
@@ -11381,7 +11547,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11381
11547
|
})
|
|
11382
11548
|
]
|
|
11383
11549
|
});
|
|
11384
|
-
}),
|
|
11550
|
+
}), Gl = r(function({ marks: e, max: t = 4, className: n, ...r }, i) {
|
|
11385
11551
|
let a = e.slice(0, t), o = e.length - a.length, s = a.some((e) => e.icon == null && (e.initials ?? "").length > 2);
|
|
11386
11552
|
return /* @__PURE__ */ v("div", {
|
|
11387
11553
|
ref: i,
|
|
@@ -11403,7 +11569,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11403
11569
|
children: ["+", o]
|
|
11404
11570
|
})]
|
|
11405
11571
|
});
|
|
11406
|
-
}),
|
|
11572
|
+
}), Kl = [
|
|
11407
11573
|
"Dom",
|
|
11408
11574
|
"Seg",
|
|
11409
11575
|
"Ter",
|
|
@@ -11411,7 +11577,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11411
11577
|
"Qui",
|
|
11412
11578
|
"Sex",
|
|
11413
11579
|
"Sáb"
|
|
11414
|
-
],
|
|
11580
|
+
], ql = [
|
|
11415
11581
|
"Janeiro",
|
|
11416
11582
|
"Fevereiro",
|
|
11417
11583
|
"Março",
|
|
@@ -11424,7 +11590,7 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11424
11590
|
"Outubro",
|
|
11425
11591
|
"Novembro",
|
|
11426
11592
|
"Dezembro"
|
|
11427
|
-
],
|
|
11593
|
+
], Jl = [
|
|
11428
11594
|
"Jan",
|
|
11429
11595
|
"Fev",
|
|
11430
11596
|
"Mar",
|
|
@@ -11437,33 +11603,33 @@ var zl = r(function({ value: e, max: t = 5, onChange: n, size: r = 20, label: i,
|
|
|
11437
11603
|
"Out",
|
|
11438
11604
|
"Nov",
|
|
11439
11605
|
"Dez"
|
|
11440
|
-
],
|
|
11441
|
-
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) {
|
|
11442
11608
|
let t = /^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2}))?/.exec(e || "");
|
|
11443
11609
|
return t ? new Date(Number(t[1]), Number(t[2]) - 1, Number(t[3]), Number(t[4] ?? 0), Number(t[5] ?? 0)) : null;
|
|
11444
11610
|
}
|
|
11445
|
-
function
|
|
11446
|
-
let n = `${e.getFullYear()}-${
|
|
11447
|
-
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;
|
|
11448
11614
|
}
|
|
11449
|
-
function
|
|
11450
|
-
let n = `${
|
|
11451
|
-
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;
|
|
11452
11618
|
}
|
|
11453
|
-
var
|
|
11454
|
-
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 = () => {
|
|
11455
11621
|
if (T) return T;
|
|
11456
11622
|
let e = /* @__PURE__ */ new Date();
|
|
11457
11623
|
return D && e > D ? D : E && e < E ? E : e;
|
|
11458
|
-
}, [A, j] = p(() =>
|
|
11459
|
-
o || (j(
|
|
11460
|
-
}, 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) => {
|
|
11461
11627
|
if (O(e)) return;
|
|
11462
11628
|
let t = new Date(e);
|
|
11463
|
-
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);
|
|
11464
11630
|
}, U = (e) => {
|
|
11465
11631
|
let [t = "", r = ""] = e.split(":"), i = Number(t), a = Number(r), o = new Date(T ?? z);
|
|
11466
|
-
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));
|
|
11467
11633
|
}, te = () => {
|
|
11468
11634
|
n(""), w(!1);
|
|
11469
11635
|
}, ne = /* @__PURE__ */ v("div", {
|
|
@@ -11477,7 +11643,7 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11477
11643
|
"aria-haspopup": "dialog",
|
|
11478
11644
|
"aria-expanded": C,
|
|
11479
11645
|
"aria-invalid": s ? !0 : void 0,
|
|
11480
|
-
children: T ?
|
|
11646
|
+
children: T ? iu(T, r) : /* @__PURE__ */ _("span", {
|
|
11481
11647
|
className: "select-datefield__ph",
|
|
11482
11648
|
children: i ?? (r ? "Selecione data e hora" : "Selecione uma data")
|
|
11483
11649
|
})
|
|
@@ -11522,14 +11688,14 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11522
11688
|
children: [
|
|
11523
11689
|
I,
|
|
11524
11690
|
" – ",
|
|
11525
|
-
I +
|
|
11691
|
+
I + Yl - 1
|
|
11526
11692
|
]
|
|
11527
11693
|
}) : /* @__PURE__ */ v("button", {
|
|
11528
11694
|
type: "button",
|
|
11529
11695
|
className: "select-datepicker__monthlabel select-datefield__modebtn",
|
|
11530
11696
|
"aria-label": M === "day" ? "Escolher o ano e o mês" : "Escolher o ano",
|
|
11531
11697
|
onClick: () => N("year"),
|
|
11532
|
-
children: [M === "day" ? `${
|
|
11698
|
+
children: [M === "day" ? `${ql[A.getMonth()]} ${A.getFullYear()}` : A.getFullYear(), /* @__PURE__ */ _(J, {})]
|
|
11533
11699
|
}),
|
|
11534
11700
|
/* @__PURE__ */ _("button", {
|
|
11535
11701
|
type: "button",
|
|
@@ -11544,7 +11710,7 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11544
11710
|
className: "select-datefield__cells",
|
|
11545
11711
|
role: "grid",
|
|
11546
11712
|
"aria-label": "Anos",
|
|
11547
|
-
children: Array.from({ length:
|
|
11713
|
+
children: Array.from({ length: Yl }, (e, t) => I + t).map((e) => {
|
|
11548
11714
|
let t = (T == null ? void 0 : T.getFullYear()) === e;
|
|
11549
11715
|
return /* @__PURE__ */ _("button", {
|
|
11550
11716
|
type: "button",
|
|
@@ -11561,11 +11727,11 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11561
11727
|
className: "select-datefield__cells",
|
|
11562
11728
|
role: "grid",
|
|
11563
11729
|
"aria-label": `Meses de ${A.getFullYear()}`,
|
|
11564
|
-
children:
|
|
11730
|
+
children: Jl.map((e, t) => {
|
|
11565
11731
|
let n = A.getFullYear(), r = !!T && T.getFullYear() === n && T.getMonth() === t;
|
|
11566
11732
|
return /* @__PURE__ */ _("button", {
|
|
11567
11733
|
type: "button",
|
|
11568
|
-
"aria-label": `${
|
|
11734
|
+
"aria-label": `${ql[t]} de ${n}`,
|
|
11569
11735
|
className: `select-datefield__cell${r ? " is-selected" : ""}`,
|
|
11570
11736
|
disabled: F(n, t),
|
|
11571
11737
|
onClick: () => {
|
|
@@ -11578,11 +11744,11 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11578
11744
|
M === "day" && /* @__PURE__ */ v("div", {
|
|
11579
11745
|
className: "select-datepicker__grid",
|
|
11580
11746
|
role: "grid",
|
|
11581
|
-
children: [
|
|
11747
|
+
children: [Kl.map((e) => /* @__PURE__ */ _("div", {
|
|
11582
11748
|
className: "select-datepicker__weekday",
|
|
11583
11749
|
children: e
|
|
11584
11750
|
}, e)), R.map((e) => {
|
|
11585
|
-
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" : "");
|
|
11586
11752
|
return /* @__PURE__ */ _("div", {
|
|
11587
11753
|
className: "select-datepicker__day",
|
|
11588
11754
|
children: /* @__PURE__ */ _("button", {
|
|
@@ -11604,7 +11770,7 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11604
11770
|
type: "time",
|
|
11605
11771
|
className: "select-input select-datefield__time-input",
|
|
11606
11772
|
"aria-label": "Horário",
|
|
11607
|
-
value: T ? `${
|
|
11773
|
+
value: T ? `${Xl(T.getHours())}:${Xl(T.getMinutes())}` : "",
|
|
11608
11774
|
onChange: (e) => U(e.target.value)
|
|
11609
11775
|
})]
|
|
11610
11776
|
}),
|
|
@@ -11645,25 +11811,25 @@ var tu = r(function({ label: e, value: t, onChange: n, showTime: r = !1, placeho
|
|
|
11645
11811
|
}) : null
|
|
11646
11812
|
]
|
|
11647
11813
|
});
|
|
11648
|
-
}),
|
|
11649
|
-
function
|
|
11650
|
-
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 ?? "");
|
|
11651
11817
|
if (!t) return null;
|
|
11652
11818
|
let n = `${t[3]}/${t[2]}/${t[1]}`;
|
|
11653
11819
|
return t[4] == null ? n : `${n} ${t[4]}:${t[5]}`;
|
|
11654
11820
|
}
|
|
11655
11821
|
//#endregion
|
|
11656
11822
|
//#region src/SelectFilterBar.tsx
|
|
11657
|
-
function
|
|
11823
|
+
function cu(e, t) {
|
|
11658
11824
|
var n;
|
|
11659
|
-
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;
|
|
11660
11826
|
}
|
|
11661
|
-
function
|
|
11827
|
+
function lu({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a, disabled: o }) {
|
|
11662
11828
|
let [c, l] = p("");
|
|
11663
11829
|
s(() => {
|
|
11664
11830
|
r || l("");
|
|
11665
11831
|
}, [r]);
|
|
11666
|
-
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;
|
|
11667
11833
|
return /* @__PURE__ */ v(mr, {
|
|
11668
11834
|
active: r,
|
|
11669
11835
|
onClose: a,
|
|
@@ -11721,7 +11887,7 @@ function au({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11721
11887
|
})]
|
|
11722
11888
|
}) : e.type === "date" ? /* @__PURE__ */ _("div", {
|
|
11723
11889
|
className: "select-facet__field",
|
|
11724
|
-
children: /* @__PURE__ */ _(
|
|
11890
|
+
children: /* @__PURE__ */ _(au, {
|
|
11725
11891
|
value: t,
|
|
11726
11892
|
onChange: n,
|
|
11727
11893
|
placeholder: e.placeholder,
|
|
@@ -11759,7 +11925,7 @@ function au({ filter: e, value: t, onChange: n, open: r, onToggle: i, onClose: a
|
|
|
11759
11925
|
]
|
|
11760
11926
|
});
|
|
11761
11927
|
}
|
|
11762
|
-
var
|
|
11928
|
+
var uu = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search: i, leading: a, disabled: o, className: s, ...c }, l) {
|
|
11763
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 = () => {
|
|
11764
11930
|
d([]), m(null), r();
|
|
11765
11931
|
}, T = (e) => {
|
|
@@ -11814,7 +11980,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11814
11980
|
})
|
|
11815
11981
|
]
|
|
11816
11982
|
}),
|
|
11817
|
-
x.map((e) => /* @__PURE__ */ _(
|
|
11983
|
+
x.map((e) => /* @__PURE__ */ _(lu, {
|
|
11818
11984
|
filter: e,
|
|
11819
11985
|
value: t[e.key] ?? "",
|
|
11820
11986
|
onChange: (t) => n(e.key, t),
|
|
@@ -11866,7 +12032,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11866
12032
|
children: [
|
|
11867
12033
|
e.label,
|
|
11868
12034
|
": ",
|
|
11869
|
-
|
|
12035
|
+
cu(e, t[e.key] ?? ""),
|
|
11870
12036
|
/* @__PURE__ */ _("button", {
|
|
11871
12037
|
type: "button",
|
|
11872
12038
|
className: "select-filterbar__tagx",
|
|
@@ -11884,7 +12050,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
11884
12050
|
})
|
|
11885
12051
|
]
|
|
11886
12052
|
});
|
|
11887
|
-
}),
|
|
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) {
|
|
11888
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) => {
|
|
11889
12055
|
let n = t.find((t) => t.value === e);
|
|
11890
12056
|
return n ? {
|
|
@@ -12015,7 +12181,7 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
12015
12181
|
}) : null
|
|
12016
12182
|
]
|
|
12017
12183
|
});
|
|
12018
|
-
}),
|
|
12184
|
+
}), fu = r(function({ title: e, description: t, headerAction: n, footer: r, children: i, flush: a = !1, className: o, ...s }, c) {
|
|
12019
12185
|
return /* @__PURE__ */ v("div", {
|
|
12020
12186
|
ref: c,
|
|
12021
12187
|
...s,
|
|
@@ -12047,8 +12213,8 @@ var ou = r(function({ filters: e, values: t, onChange: n, onClearAll: r, search:
|
|
|
12047
12213
|
})
|
|
12048
12214
|
]
|
|
12049
12215
|
});
|
|
12050
|
-
}),
|
|
12051
|
-
function
|
|
12216
|
+
}), pu = n(null), mu = 220, hu = 6e3, gu = 8, _u = .04, vu = 5;
|
|
12217
|
+
function yu({ variant: e }) {
|
|
12052
12218
|
return e === "neutral" ? null : /* @__PURE__ */ v("svg", {
|
|
12053
12219
|
className: "select-toast__icon",
|
|
12054
12220
|
viewBox: "0 0 20 20",
|
|
@@ -12070,7 +12236,7 @@ function hu({ variant: e }) {
|
|
|
12070
12236
|
]
|
|
12071
12237
|
});
|
|
12072
12238
|
}
|
|
12073
|
-
function
|
|
12239
|
+
function bu({ children: e }) {
|
|
12074
12240
|
let [t, n] = p([]), [r, i] = p(!1), o = f(0), c = f(/* @__PURE__ */ new Map()), l = a((e) => {
|
|
12075
12241
|
n((t) => t.filter((t) => t.id !== e)), c.current.delete(e);
|
|
12076
12242
|
}, []), u = a((e) => {
|
|
@@ -12081,13 +12247,13 @@ function gu({ children: e }) {
|
|
|
12081
12247
|
} : t)), c.current.set(e, {
|
|
12082
12248
|
remaining: 0,
|
|
12083
12249
|
startedAt: null,
|
|
12084
|
-
timer: setTimeout(() => l(e),
|
|
12250
|
+
timer: setTimeout(() => l(e), mu)
|
|
12085
12251
|
});
|
|
12086
12252
|
}, [l]), m = a((e) => {
|
|
12087
12253
|
let t = c.current.get(e);
|
|
12088
12254
|
!t || t.startedAt !== null || t.remaining <= 0 || (t.startedAt = Date.now(), t.timer = setTimeout(() => u(e), t.remaining));
|
|
12089
12255
|
}, [u]), h = a((e, t) => {
|
|
12090
|
-
let r = ++o.current, i = (t == null ? void 0 : t.duration) ??
|
|
12256
|
+
let r = ++o.current, i = (t == null ? void 0 : t.duration) ?? hu;
|
|
12091
12257
|
n((n) => [...n, {
|
|
12092
12258
|
id: r,
|
|
12093
12259
|
content: e,
|
|
@@ -12126,7 +12292,7 @@ function gu({ children: e }) {
|
|
|
12126
12292
|
duration: t
|
|
12127
12293
|
})
|
|
12128
12294
|
}), [h]);
|
|
12129
|
-
return /* @__PURE__ */ v(
|
|
12295
|
+
return /* @__PURE__ */ v(pu.Provider, {
|
|
12130
12296
|
value: x,
|
|
12131
12297
|
children: [e, t.length > 0 && y(/* @__PURE__ */ _("div", {
|
|
12132
12298
|
className: `select select-toasts${r ? " is-paused" : ""}`,
|
|
@@ -12140,8 +12306,8 @@ function gu({ children: e }) {
|
|
|
12140
12306
|
e.currentTarget.contains(e.relatedTarget) || b();
|
|
12141
12307
|
},
|
|
12142
12308
|
children: t.map((e, n) => {
|
|
12143
|
-
let r = t.length - 1 - n, i = e.exiting || r >=
|
|
12144
|
-
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})`,
|
|
12145
12311
|
opacity: +!i,
|
|
12146
12312
|
zIndex: 1e3 - r,
|
|
12147
12313
|
pointerEvents: r === 0 && !e.exiting ? "auto" : "none"
|
|
@@ -12151,7 +12317,7 @@ function gu({ children: e }) {
|
|
|
12151
12317
|
role: "status",
|
|
12152
12318
|
style: a,
|
|
12153
12319
|
children: [
|
|
12154
|
-
/* @__PURE__ */ _(
|
|
12320
|
+
/* @__PURE__ */ _(yu, { variant: e.variant }),
|
|
12155
12321
|
/* @__PURE__ */ v("span", {
|
|
12156
12322
|
className: "select-toast__content",
|
|
12157
12323
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -12189,14 +12355,14 @@ function gu({ children: e }) {
|
|
|
12189
12355
|
}), document.body)]
|
|
12190
12356
|
});
|
|
12191
12357
|
}
|
|
12192
|
-
function
|
|
12193
|
-
let e = o(
|
|
12358
|
+
function xu() {
|
|
12359
|
+
let e = o(pu);
|
|
12194
12360
|
if (!e) throw Error("useSelectToast must be used within a SelectToastProvider");
|
|
12195
12361
|
return e;
|
|
12196
12362
|
}
|
|
12197
12363
|
//#endregion
|
|
12198
12364
|
//#region src/SelectPreviewFrame.tsx
|
|
12199
|
-
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) {
|
|
12200
12366
|
let S = ga(e), [C, w] = p(a), [T, E] = p(0), [D, O] = p(!0), k = f(null), [A, j] = p({
|
|
12201
12367
|
w: 0,
|
|
12202
12368
|
h: 0
|
|
@@ -12214,7 +12380,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12214
12380
|
});
|
|
12215
12381
|
return t.observe(e), () => t.disconnect();
|
|
12216
12382
|
}, []);
|
|
12217
|
-
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 = () => {
|
|
12218
12384
|
if (O(!0), l) {
|
|
12219
12385
|
l();
|
|
12220
12386
|
return;
|
|
@@ -12303,7 +12469,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12303
12469
|
})
|
|
12304
12470
|
})]
|
|
12305
12471
|
});
|
|
12306
|
-
}),
|
|
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) {
|
|
12307
12473
|
if (a === "hero") {
|
|
12308
12474
|
let n = (e, t = "1em") => /* @__PURE__ */ _("span", {
|
|
12309
12475
|
className: "select-skeleton select-balance__skel",
|
|
@@ -12311,7 +12477,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12311
12477
|
width: e,
|
|
12312
12478
|
height: t
|
|
12313
12479
|
}
|
|
12314
|
-
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ _(
|
|
12480
|
+
}), a = (e) => e == null || e === "" ? "—" : /* @__PURE__ */ _(Ll, { cents: e });
|
|
12315
12481
|
return /* @__PURE__ */ _("div", {
|
|
12316
12482
|
ref: f,
|
|
12317
12483
|
...d,
|
|
@@ -12343,7 +12509,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12343
12509
|
className: "select-balance-hero__meta",
|
|
12344
12510
|
children: s.map((e, t) => /* @__PURE__ */ v("div", {
|
|
12345
12511
|
className: "select-balance-hero__metaitem",
|
|
12346
|
-
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 ?? "—" })]
|
|
12347
12513
|
}, t))
|
|
12348
12514
|
}),
|
|
12349
12515
|
(i || c) && /* @__PURE__ */ v("div", {
|
|
@@ -12418,8 +12584,8 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12418
12584
|
className: "select-balance__heromain",
|
|
12419
12585
|
children: [/* @__PURE__ */ _("span", {
|
|
12420
12586
|
className: "select-balance__heroamount",
|
|
12421
|
-
children: /* @__PURE__ */ _(
|
|
12422
|
-
}), n != null && /* @__PURE__ */ _(
|
|
12587
|
+
children: /* @__PURE__ */ _(Ll, { cents: e })
|
|
12588
|
+
}), n != null && /* @__PURE__ */ _(zl, {
|
|
12423
12589
|
value: n,
|
|
12424
12590
|
caption: "vs. período anterior"
|
|
12425
12591
|
})]
|
|
@@ -12438,14 +12604,14 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12438
12604
|
children: e.label
|
|
12439
12605
|
}), /* @__PURE__ */ _("span", {
|
|
12440
12606
|
className: "select-balance__bucketamount",
|
|
12441
|
-
children: /* @__PURE__ */ _(
|
|
12607
|
+
children: /* @__PURE__ */ _(Ll, { cents: e.cents })
|
|
12442
12608
|
})]
|
|
12443
12609
|
})]
|
|
12444
12610
|
}, e.label))
|
|
12445
12611
|
})]
|
|
12446
12612
|
})]
|
|
12447
12613
|
});
|
|
12448
|
-
}),
|
|
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) {
|
|
12449
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;
|
|
12450
12616
|
return /* @__PURE__ */ v("div", {
|
|
12451
12617
|
ref: l,
|
|
@@ -12465,7 +12631,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12465
12631
|
children: o ?? /* @__PURE__ */ v(g, { children: [
|
|
12466
12632
|
i,
|
|
12467
12633
|
" · ",
|
|
12468
|
-
/* @__PURE__ */ _(
|
|
12634
|
+
/* @__PURE__ */ _(Ll, { cents: u })
|
|
12469
12635
|
] })
|
|
12470
12636
|
})
|
|
12471
12637
|
}), d > 0 && /* @__PURE__ */ _("span", {
|
|
@@ -12482,7 +12648,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12482
12648
|
"aria-hidden": "true"
|
|
12483
12649
|
}),
|
|
12484
12650
|
"Taxas ",
|
|
12485
|
-
/* @__PURE__ */ _(
|
|
12651
|
+
/* @__PURE__ */ _(Ll, { cents: d }),
|
|
12486
12652
|
" (",
|
|
12487
12653
|
p.toLocaleString("pt-BR", {
|
|
12488
12654
|
maximumFractionDigits: 1,
|
|
@@ -12498,20 +12664,20 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12498
12664
|
"aria-hidden": "true"
|
|
12499
12665
|
}),
|
|
12500
12666
|
"Líquido ",
|
|
12501
|
-
/* @__PURE__ */ _(
|
|
12667
|
+
/* @__PURE__ */ _(Ll, { cents: u })
|
|
12502
12668
|
]
|
|
12503
12669
|
})]
|
|
12504
12670
|
})]
|
|
12505
12671
|
}),
|
|
12506
12672
|
/* @__PURE__ */ v("div", {
|
|
12507
12673
|
className: "select-fees__row",
|
|
12508
|
-
children: [/* @__PURE__ */ _("span", { children: r }), /* @__PURE__ */ _("span", { children: /* @__PURE__ */ _(
|
|
12674
|
+
children: [/* @__PURE__ */ _("span", { children: r }), /* @__PURE__ */ _("span", { children: /* @__PURE__ */ _(Ll, { cents: e }) })]
|
|
12509
12675
|
}),
|
|
12510
12676
|
t.map((e) => /* @__PURE__ */ v("div", {
|
|
12511
12677
|
className: "select-fees__row",
|
|
12512
12678
|
children: [/* @__PURE__ */ _("span", { children: e.label }), /* @__PURE__ */ v("span", {
|
|
12513
12679
|
className: "select-fees__neg",
|
|
12514
|
-
children: ["−\xA0", /* @__PURE__ */ _(
|
|
12680
|
+
children: ["−\xA0", /* @__PURE__ */ _(Ll, { cents: e.cents })]
|
|
12515
12681
|
})]
|
|
12516
12682
|
}, e.label)),
|
|
12517
12683
|
/* @__PURE__ */ _("div", { className: "select-fees__divider" }),
|
|
@@ -12519,12 +12685,12 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12519
12685
|
className: "select-fees__row select-fees__row--net",
|
|
12520
12686
|
children: [/* @__PURE__ */ _("span", { children: i }), /* @__PURE__ */ _("span", {
|
|
12521
12687
|
className: "select-fees__netvalue",
|
|
12522
|
-
children: /* @__PURE__ */ _(
|
|
12688
|
+
children: /* @__PURE__ */ _(Ll, { cents: u })
|
|
12523
12689
|
})]
|
|
12524
12690
|
})
|
|
12525
12691
|
]
|
|
12526
12692
|
});
|
|
12527
|
-
}),
|
|
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) {
|
|
12528
12694
|
let p = s != null, m = p ? {
|
|
12529
12695
|
role: "button",
|
|
12530
12696
|
tabIndex: 0,
|
|
@@ -12569,7 +12735,7 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12569
12735
|
})
|
|
12570
12736
|
] })]
|
|
12571
12737
|
});
|
|
12572
|
-
}),
|
|
12738
|
+
}), ku = {
|
|
12573
12739
|
"pt-BR": {
|
|
12574
12740
|
severity: {
|
|
12575
12741
|
info: "Para saber",
|
|
@@ -12718,42 +12884,42 @@ var vu = "allow-scripts allow-same-origin allow-forms", yu = 390, bu = 1280, xu
|
|
|
12718
12884
|
unread: "Nuevo"
|
|
12719
12885
|
}
|
|
12720
12886
|
};
|
|
12721
|
-
function
|
|
12887
|
+
function Au(e) {
|
|
12722
12888
|
return e === "en" || e != null && e.startsWith("en-") ? "en" : e === "es" || e != null && e.startsWith("es-") ? "es" : "pt-BR";
|
|
12723
12889
|
}
|
|
12724
|
-
function
|
|
12725
|
-
let n =
|
|
12890
|
+
function ju(e, t) {
|
|
12891
|
+
let n = Au(e);
|
|
12726
12892
|
return {
|
|
12727
12893
|
lang: n,
|
|
12728
12894
|
labels: {
|
|
12729
|
-
...
|
|
12895
|
+
...ku[n],
|
|
12730
12896
|
...t
|
|
12731
12897
|
}
|
|
12732
12898
|
};
|
|
12733
12899
|
}
|
|
12734
|
-
var
|
|
12900
|
+
var Mu = {
|
|
12735
12901
|
info: "info",
|
|
12736
12902
|
opportunity: "success",
|
|
12737
12903
|
warning: "warning",
|
|
12738
12904
|
critical: "critical"
|
|
12739
12905
|
};
|
|
12740
|
-
function
|
|
12906
|
+
function Nu(e, t, n) {
|
|
12741
12907
|
return new Intl.NumberFormat(n, {
|
|
12742
12908
|
style: "currency",
|
|
12743
12909
|
currency: t,
|
|
12744
12910
|
maximumFractionDigits: 0
|
|
12745
12911
|
}).format(e / 100);
|
|
12746
12912
|
}
|
|
12747
|
-
function
|
|
12748
|
-
let r =
|
|
12913
|
+
function Pu(e, t, n) {
|
|
12914
|
+
let r = Nu(e.minCents, e.currency, t), i = Nu(e.maxCents, e.currency, t);
|
|
12749
12915
|
return e.minCents === e.maxCents ? n.about(i) : `${r}${n.rangeJoin}${i}`;
|
|
12750
12916
|
}
|
|
12751
|
-
function
|
|
12752
|
-
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);
|
|
12753
12919
|
return e.minCents === e.maxCents ? n.impactAbout(a) : n.impact(`${i}${n.rangeJoin}${a}`);
|
|
12754
12920
|
}
|
|
12755
|
-
var
|
|
12756
|
-
function
|
|
12921
|
+
var Iu = 864e5;
|
|
12922
|
+
function Lu(e, t, n, r) {
|
|
12757
12923
|
let i = new Date(e.start), a = new Date(e.end);
|
|
12758
12924
|
if (Number.isNaN(i.getTime()) || Number.isNaN(a.getTime())) return null;
|
|
12759
12925
|
let o = new Intl.DateTimeFormat("en", {
|
|
@@ -12765,7 +12931,7 @@ function Nu(e, t, n, r) {
|
|
|
12765
12931
|
...s ? {} : { year: "numeric" },
|
|
12766
12932
|
timeZone: n
|
|
12767
12933
|
});
|
|
12768
|
-
if (a.getTime() - i.getTime() <
|
|
12934
|
+
if (a.getTime() - i.getTime() < Iu) {
|
|
12769
12935
|
let e = new Intl.DateTimeFormat(t, {
|
|
12770
12936
|
hour: "2-digit",
|
|
12771
12937
|
minute: "2-digit",
|
|
@@ -12776,8 +12942,8 @@ function Nu(e, t, n, r) {
|
|
|
12776
12942
|
}
|
|
12777
12943
|
return r.periodRange(c.format(i), c.format(a));
|
|
12778
12944
|
}
|
|
12779
|
-
function
|
|
12780
|
-
let n =
|
|
12945
|
+
function Ru({ severity: e, labels: t }) {
|
|
12946
|
+
let n = Mu[e] ?? "info";
|
|
12781
12947
|
return /* @__PURE__ */ v("span", {
|
|
12782
12948
|
className: `select-insight__sev select-insight__sev--${n}`,
|
|
12783
12949
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -12786,7 +12952,7 @@ function Pu({ severity: e, labels: t }) {
|
|
|
12786
12952
|
}), t.severity[e] ?? e]
|
|
12787
12953
|
});
|
|
12788
12954
|
}
|
|
12789
|
-
function
|
|
12955
|
+
function zu({ label: e }) {
|
|
12790
12956
|
return /* @__PURE__ */ v("span", {
|
|
12791
12957
|
className: "select-insight__new",
|
|
12792
12958
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -12795,10 +12961,10 @@ function Fu({ label: e }) {
|
|
|
12795
12961
|
}), e]
|
|
12796
12962
|
});
|
|
12797
12963
|
}
|
|
12798
|
-
function
|
|
12964
|
+
function Bu(e) {
|
|
12799
12965
|
return e != null && typeof e.raw == "number" && Number.isFinite(e.raw) && e.raw >= 0 ? e.raw : null;
|
|
12800
12966
|
}
|
|
12801
|
-
function
|
|
12967
|
+
function Vu({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
12802
12968
|
let r = Math.max(0, Math.min(1, e)) * 100;
|
|
12803
12969
|
return /* @__PURE__ */ _("span", {
|
|
12804
12970
|
className: `select-insight__bar select-insight__bar--${t}${n === "sm" ? " select-insight__bar--sm" : ""}`,
|
|
@@ -12809,18 +12975,18 @@ function Lu({ fraction: e, tone: t = "value", size: n = "md" }) {
|
|
|
12809
12975
|
})
|
|
12810
12976
|
});
|
|
12811
12977
|
}
|
|
12812
|
-
var
|
|
12978
|
+
var Hu = /* @__PURE__ */ new Set([
|
|
12813
12979
|
"metric",
|
|
12814
12980
|
"comparison",
|
|
12815
12981
|
"table",
|
|
12816
12982
|
"items",
|
|
12817
12983
|
"text"
|
|
12818
12984
|
]);
|
|
12819
|
-
function
|
|
12820
|
-
return
|
|
12985
|
+
function Uu(e) {
|
|
12986
|
+
return Hu.has(e.type);
|
|
12821
12987
|
}
|
|
12822
|
-
function
|
|
12823
|
-
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;
|
|
12824
12990
|
return /* @__PURE__ */ v("div", {
|
|
12825
12991
|
className: `select-insight__tile select-insight__cmp${r == null ? " select-insight__cmp--plain" : ""}${!i && r != null ? " select-insight__cmp--stacked" : ""}`,
|
|
12826
12992
|
children: [
|
|
@@ -12837,7 +13003,7 @@ function Bu({ block: e }) {
|
|
|
12837
13003
|
className: "select-insight__cmpname",
|
|
12838
13004
|
children: i ? e.valueLabel : e.label
|
|
12839
13005
|
}),
|
|
12840
|
-
r == null ? null : /* @__PURE__ */ _(
|
|
13006
|
+
r == null ? null : /* @__PURE__ */ _(Vu, {
|
|
12841
13007
|
fraction: (t ?? 0) / r,
|
|
12842
13008
|
tone: "own"
|
|
12843
13009
|
}),
|
|
@@ -12853,7 +13019,7 @@ function Bu({ block: e }) {
|
|
|
12853
13019
|
className: "select-insight__cmpname",
|
|
12854
13020
|
children: e.baselineLabel
|
|
12855
13021
|
}),
|
|
12856
|
-
r == null ? null : /* @__PURE__ */ _(
|
|
13022
|
+
r == null ? null : /* @__PURE__ */ _(Vu, {
|
|
12857
13023
|
fraction: (n ?? 0) / r,
|
|
12858
13024
|
tone: "reference"
|
|
12859
13025
|
}),
|
|
@@ -12871,8 +13037,8 @@ function Bu({ block: e }) {
|
|
|
12871
13037
|
]
|
|
12872
13038
|
});
|
|
12873
13039
|
}
|
|
12874
|
-
function
|
|
12875
|
-
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);
|
|
12876
13042
|
return /* @__PURE__ */ v("div", {
|
|
12877
13043
|
className: "select-insight__box",
|
|
12878
13044
|
children: [/* @__PURE__ */ _("h5", {
|
|
@@ -12885,7 +13051,7 @@ function Vu({ block: e, renderItem: t }) {
|
|
|
12885
13051
|
className: "select-insight__itemlabel",
|
|
12886
13052
|
children: (t == null ? void 0 : t(e)) ?? e.label
|
|
12887
13053
|
}),
|
|
12888
|
-
i ? /* @__PURE__ */ _(
|
|
13054
|
+
i ? /* @__PURE__ */ _(Vu, {
|
|
12889
13055
|
fraction: (n[a] ?? 0) / r,
|
|
12890
13056
|
size: "sm"
|
|
12891
13057
|
}) : null,
|
|
@@ -12897,14 +13063,14 @@ function Vu({ block: e, renderItem: t }) {
|
|
|
12897
13063
|
})]
|
|
12898
13064
|
});
|
|
12899
13065
|
}
|
|
12900
|
-
function
|
|
13066
|
+
function Ku({ block: e }) {
|
|
12901
13067
|
let t = new Set(e.columns.filter((t) => e.rows.length > 0 && e.rows.every((e) => {
|
|
12902
13068
|
var n;
|
|
12903
|
-
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;
|
|
12904
13070
|
})).map((e) => e.key)), n = (e, n) => n && t.has(e) ? /* @__PURE__ */ v("span", {
|
|
12905
13071
|
className: "select-insight__share",
|
|
12906
|
-
children: [/* @__PURE__ */ _(
|
|
12907
|
-
fraction:
|
|
13072
|
+
children: [/* @__PURE__ */ _(Vu, {
|
|
13073
|
+
fraction: Bu(n) ?? 0,
|
|
12908
13074
|
size: "sm"
|
|
12909
13075
|
}), /* @__PURE__ */ _("span", {
|
|
12910
13076
|
className: "select-insight__sharevalue",
|
|
@@ -12933,7 +13099,7 @@ function Hu({ block: e }) {
|
|
|
12933
13099
|
})]
|
|
12934
13100
|
}) : null] });
|
|
12935
13101
|
}
|
|
12936
|
-
function
|
|
13102
|
+
function qu({ link: e, primary: t }) {
|
|
12937
13103
|
let n = ga(e.href);
|
|
12938
13104
|
if (!n && !e.onClick) return null;
|
|
12939
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, {})] });
|
|
@@ -12958,8 +13124,8 @@ function Uu({ link: e, primary: t }) {
|
|
|
12958
13124
|
children: i
|
|
12959
13125
|
});
|
|
12960
13126
|
}
|
|
12961
|
-
function
|
|
12962
|
-
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", {
|
|
12963
13129
|
className: "select-insight__head",
|
|
12964
13130
|
children: [/* @__PURE__ */ v("div", {
|
|
12965
13131
|
className: "select-insight__meta",
|
|
@@ -12968,12 +13134,12 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
12968
13134
|
className: "select-insight__position",
|
|
12969
13135
|
children: o
|
|
12970
13136
|
}) : null,
|
|
12971
|
-
/* @__PURE__ */ _(
|
|
13137
|
+
/* @__PURE__ */ _(Ru, {
|
|
12972
13138
|
severity: e.severity,
|
|
12973
13139
|
labels: T
|
|
12974
13140
|
}),
|
|
12975
13141
|
e.domain ? /* @__PURE__ */ _("span", { children: T.domain[e.domain] ?? e.domain }) : null,
|
|
12976
|
-
s && !i ? /* @__PURE__ */ _(
|
|
13142
|
+
s && !i ? /* @__PURE__ */ _(zu, { label: T.unread }) : null,
|
|
12977
13143
|
i ? /* @__PURE__ */ _(Vr, {
|
|
12978
13144
|
tone: "pro",
|
|
12979
13145
|
size: "sm",
|
|
@@ -13010,7 +13176,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13010
13176
|
}),
|
|
13011
13177
|
/* @__PURE__ */ _("strong", {
|
|
13012
13178
|
className: "select-insight__stakevalue",
|
|
13013
|
-
children:
|
|
13179
|
+
children: Pu(e.impact, w, T)
|
|
13014
13180
|
}),
|
|
13015
13181
|
/* @__PURE__ */ _("span", {
|
|
13016
13182
|
className: "select-insight__stakenote",
|
|
@@ -13059,7 +13225,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13059
13225
|
I || u ? /* @__PURE__ */ v("div", {
|
|
13060
13226
|
className: "select-insight__nowactions",
|
|
13061
13227
|
children: [
|
|
13062
|
-
I ? /* @__PURE__ */ _(
|
|
13228
|
+
I ? /* @__PURE__ */ _(qu, {
|
|
13063
13229
|
link: I,
|
|
13064
13230
|
primary: !0
|
|
13065
13231
|
}) : null,
|
|
@@ -13085,7 +13251,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13085
13251
|
return /* @__PURE__ */ _("li", { children: n ?? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("span", {
|
|
13086
13252
|
className: "select-insight__moretext",
|
|
13087
13253
|
children: e.label
|
|
13088
|
-
}), r ? /* @__PURE__ */ _(
|
|
13254
|
+
}), r ? /* @__PURE__ */ _(qu, {
|
|
13089
13255
|
link: r,
|
|
13090
13256
|
primary: !1
|
|
13091
13257
|
}) : null] }) }, `${e.target ?? "text"}:${t}`);
|
|
@@ -13123,7 +13289,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13123
13289
|
}),
|
|
13124
13290
|
/* @__PURE__ */ _("div", {
|
|
13125
13291
|
className: "select-insight__tilevalue",
|
|
13126
|
-
children:
|
|
13292
|
+
children: Pu(e.impact, w, T)
|
|
13127
13293
|
}),
|
|
13128
13294
|
/* @__PURE__ */ _("div", {
|
|
13129
13295
|
className: "select-insight__tilenote",
|
|
@@ -13134,7 +13300,7 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13134
13300
|
children: [/* @__PURE__ */ _("span", { children: z.label }), /* @__PURE__ */ _("strong", { children: z.value.display })]
|
|
13135
13301
|
}) : null
|
|
13136
13302
|
]
|
|
13137
|
-
}) : 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", {
|
|
13138
13304
|
className: "select-insight__tile",
|
|
13139
13305
|
children: [
|
|
13140
13306
|
/* @__PURE__ */ _("div", {
|
|
@@ -13166,10 +13332,10 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13166
13332
|
p.content
|
|
13167
13333
|
]
|
|
13168
13334
|
}) : null,
|
|
13169
|
-
V.map((e, t) => e.type === "items" ? /* @__PURE__ */ _(
|
|
13335
|
+
V.map((e, t) => e.type === "items" ? /* @__PURE__ */ _(Gu, {
|
|
13170
13336
|
block: e,
|
|
13171
13337
|
renderItem: h
|
|
13172
|
-
}, t) : e.type === "table" ? /* @__PURE__ */ _(
|
|
13338
|
+
}, t) : e.type === "table" ? /* @__PURE__ */ _(Ku, { block: e }, t) : e.type === "text" ? /* @__PURE__ */ v("div", {
|
|
13173
13339
|
className: "select-insight__text",
|
|
13174
13340
|
children: [/* @__PURE__ */ _(xe, {}), /* @__PURE__ */ _("span", { children: e.text })]
|
|
13175
13341
|
}, t) : null)
|
|
@@ -13252,25 +13418,25 @@ function Wu({ insight: e, locale: t, labels: n, timeZone: r = "America/Sao_Paulo
|
|
|
13252
13418
|
]
|
|
13253
13419
|
});
|
|
13254
13420
|
}
|
|
13255
|
-
function
|
|
13421
|
+
function Yu({ layout: e = "rows", children: t, className: n, ...r }) {
|
|
13256
13422
|
return /* @__PURE__ */ _("div", {
|
|
13257
13423
|
...r,
|
|
13258
13424
|
className: `select-insightlist${e === "cards" ? " select-insightlist--cards" : ""}${n ? " " + n : ""}`,
|
|
13259
13425
|
children: t
|
|
13260
13426
|
});
|
|
13261
13427
|
}
|
|
13262
|
-
function
|
|
13263
|
-
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", {
|
|
13264
13430
|
className: "select-insightrow__index select-insightrow__index--lock",
|
|
13265
13431
|
"aria-hidden": "true",
|
|
13266
13432
|
children: /* @__PURE__ */ _(it, {})
|
|
13267
13433
|
}) : r == null ? null : /* @__PURE__ */ _("span", {
|
|
13268
13434
|
className: `select-insightrow__index${o || S && r === 1 ? " select-insightrow__index--strong" : ""}`,
|
|
13269
13435
|
children: r
|
|
13270
|
-
}), T = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(
|
|
13436
|
+
}), T = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Ru, {
|
|
13271
13437
|
severity: e.severity,
|
|
13272
13438
|
labels: h
|
|
13273
|
-
}), 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: [
|
|
13274
13440
|
/* @__PURE__ */ v("span", {
|
|
13275
13441
|
className: "select-insightrow__top",
|
|
13276
13442
|
children: [
|
|
@@ -13336,8 +13502,8 @@ function Ku({ insight: e, locale: t, labels: n, index: r, locked: i = !1, unread
|
|
|
13336
13502
|
}
|
|
13337
13503
|
//#endregion
|
|
13338
13504
|
//#region src/SelectAssistant.tsx
|
|
13339
|
-
var
|
|
13340
|
-
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 }) {
|
|
13341
13507
|
let D = c(), O = f(null), k = f(null), A = f(null), [j, M] = p(""), N = f(0), P = b !== !1;
|
|
13342
13508
|
s(() => {
|
|
13343
13509
|
let t = O.current;
|
|
@@ -13355,7 +13521,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13355
13521
|
let o = t.scrollHeight - t.clientHeight, s = a ? Math.min(o, a.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop - 12) : o;
|
|
13356
13522
|
n ? t.scrollTop = s : s > t.scrollTop + 1 && (typeof t.scrollTo == "function" ? t.scrollTo({
|
|
13357
13523
|
top: s,
|
|
13358
|
-
behavior:
|
|
13524
|
+
behavior: nd() ? "auto" : "smooth"
|
|
13359
13525
|
}) : t.scrollTop = s);
|
|
13360
13526
|
}, [
|
|
13361
13527
|
e,
|
|
@@ -13419,7 +13585,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13419
13585
|
className: "select-assistant__body",
|
|
13420
13586
|
role: "log",
|
|
13421
13587
|
"aria-live": "polite",
|
|
13422
|
-
children: [l, P ? /* @__PURE__ */ _(
|
|
13588
|
+
children: [l, P ? /* @__PURE__ */ _(td, { label: typeof b == "string" ? b : void 0 }) : null]
|
|
13423
13589
|
}),
|
|
13424
13590
|
(h || d && d.length > 0) && /* @__PURE__ */ v("footer", {
|
|
13425
13591
|
className: "select-assistant__foot",
|
|
@@ -13443,7 +13609,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13443
13609
|
onChange: (e) => M(e.target.value),
|
|
13444
13610
|
placeholder: g,
|
|
13445
13611
|
"aria-label": T,
|
|
13446
|
-
maxLength:
|
|
13612
|
+
maxLength: Zu,
|
|
13447
13613
|
autoComplete: "off",
|
|
13448
13614
|
enterKeyHint: "send",
|
|
13449
13615
|
disabled: y
|
|
@@ -13475,7 +13641,7 @@ function Ju({ open: e, onOpenChange: t, icon: n, title: r, subtitle: i, launcher
|
|
|
13475
13641
|
})]
|
|
13476
13642
|
});
|
|
13477
13643
|
}
|
|
13478
|
-
function
|
|
13644
|
+
function $u({ from: e, bare: t = !1, children: n }) {
|
|
13479
13645
|
return /* @__PURE__ */ _("div", {
|
|
13480
13646
|
className: `select-chat__msg select-chat__msg--${e}${t ? " select-chat__msg--bare" : ""}`,
|
|
13481
13647
|
children: /* @__PURE__ */ _("div", {
|
|
@@ -13484,13 +13650,13 @@ function Yu({ from: e, bare: t = !1, children: n }) {
|
|
|
13484
13650
|
})
|
|
13485
13651
|
});
|
|
13486
13652
|
}
|
|
13487
|
-
function
|
|
13653
|
+
function ed({ children: e }) {
|
|
13488
13654
|
return /* @__PURE__ */ _("div", {
|
|
13489
13655
|
className: "select-chat__turn",
|
|
13490
13656
|
children: e
|
|
13491
13657
|
});
|
|
13492
13658
|
}
|
|
13493
|
-
function
|
|
13659
|
+
function td({ label: e = "Escrevendo…" }) {
|
|
13494
13660
|
return /* @__PURE__ */ _("div", {
|
|
13495
13661
|
className: "select-chat__msg select-chat__msg--assistant select-chat__msg--typing",
|
|
13496
13662
|
role: "status",
|
|
@@ -13506,19 +13672,19 @@ function Zu({ label: e = "Escrevendo…" }) {
|
|
|
13506
13672
|
})
|
|
13507
13673
|
});
|
|
13508
13674
|
}
|
|
13509
|
-
function
|
|
13675
|
+
function nd() {
|
|
13510
13676
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
13511
13677
|
}
|
|
13512
13678
|
//#endregion
|
|
13513
13679
|
//#region src/SelectNumberedList.tsx
|
|
13514
|
-
function
|
|
13680
|
+
function rd({ children: e, className: t, ...n }) {
|
|
13515
13681
|
return /* @__PURE__ */ _("ol", {
|
|
13516
13682
|
...n,
|
|
13517
13683
|
className: `select-numlist${t ? " " + t : ""}`,
|
|
13518
13684
|
children: e
|
|
13519
13685
|
});
|
|
13520
13686
|
}
|
|
13521
|
-
function
|
|
13687
|
+
function id({ title: e, children: t, className: n, ...r }) {
|
|
13522
13688
|
return /* @__PURE__ */ _("li", {
|
|
13523
13689
|
...r,
|
|
13524
13690
|
className: `select-numlist__item${n ? " " + n : ""}`,
|
|
@@ -13536,7 +13702,7 @@ function ed({ title: e, children: t, className: n, ...r }) {
|
|
|
13536
13702
|
}
|
|
13537
13703
|
//#endregion
|
|
13538
13704
|
//#region src/SelectChartCard.tsx
|
|
13539
|
-
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) {
|
|
13540
13706
|
let m = o === "auto" ? void 0 : `${o / 16}rem`, h = o === "auto" ? "10rem" : `${o / 16}rem`;
|
|
13541
13707
|
return /* @__PURE__ */ v("div", {
|
|
13542
13708
|
ref: p,
|
|
@@ -13579,7 +13745,7 @@ var td = r(function({ title: e, caption: t, action: n, help: r, loading: i = !1,
|
|
|
13579
13745
|
});
|
|
13580
13746
|
//#endregion
|
|
13581
13747
|
//#region src/chartUtils.ts
|
|
13582
|
-
function
|
|
13748
|
+
function od() {
|
|
13583
13749
|
let [e, t] = p(1);
|
|
13584
13750
|
return u(() => {
|
|
13585
13751
|
let e = () => {
|
|
@@ -13589,8 +13755,8 @@ function nd() {
|
|
|
13589
13755
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
13590
13756
|
}, []), e;
|
|
13591
13757
|
}
|
|
13592
|
-
function
|
|
13593
|
-
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();
|
|
13594
13760
|
return u(() => {
|
|
13595
13761
|
let e = t.current;
|
|
13596
13762
|
if (!e) return;
|
|
@@ -13608,21 +13774,21 @@ function rd(e) {
|
|
|
13608
13774
|
height: Math.round(e * o)
|
|
13609
13775
|
};
|
|
13610
13776
|
}
|
|
13611
|
-
var
|
|
13612
|
-
function
|
|
13613
|
-
if (
|
|
13614
|
-
|
|
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;
|
|
13615
13781
|
} catch {
|
|
13616
|
-
|
|
13782
|
+
cd = null;
|
|
13617
13783
|
}
|
|
13618
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;
|
|
13619
13785
|
for (let t of e) {
|
|
13620
|
-
let e = `${r}|${t}`, a =
|
|
13621
|
-
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);
|
|
13622
13788
|
}
|
|
13623
13789
|
return Math.max(24, Math.ceil(i) + 8);
|
|
13624
13790
|
}
|
|
13625
|
-
function
|
|
13791
|
+
function dd(e, t) {
|
|
13626
13792
|
let [n, r] = p(t);
|
|
13627
13793
|
return u(() => {
|
|
13628
13794
|
let t = e.current;
|
|
@@ -13636,15 +13802,15 @@ function sd(e, t) {
|
|
|
13636
13802
|
return i.observe(t), () => i.disconnect();
|
|
13637
13803
|
}, [e]), n;
|
|
13638
13804
|
}
|
|
13639
|
-
function
|
|
13805
|
+
function fd(e) {
|
|
13640
13806
|
if (e <= 0) return 1;
|
|
13641
13807
|
let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
|
|
13642
13808
|
return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
|
|
13643
13809
|
}
|
|
13644
|
-
function
|
|
13810
|
+
function pd(e, t = 4) {
|
|
13645
13811
|
return Array.from({ length: t + 1 }, (n, r) => e / t * r);
|
|
13646
13812
|
}
|
|
13647
|
-
function
|
|
13813
|
+
function md(e, t = 5) {
|
|
13648
13814
|
if (!(e > 0)) return {
|
|
13649
13815
|
max: 1,
|
|
13650
13816
|
values: [0, 1]
|
|
@@ -13656,10 +13822,10 @@ function ud(e, t = 5) {
|
|
|
13656
13822
|
values: s
|
|
13657
13823
|
};
|
|
13658
13824
|
}
|
|
13659
|
-
function
|
|
13825
|
+
function hd(e) {
|
|
13660
13826
|
return e.map((e, t) => `${t === 0 ? "M" : "L"}${e[0].toFixed(2)},${e[1].toFixed(2)}`).join(" ");
|
|
13661
13827
|
}
|
|
13662
|
-
function
|
|
13828
|
+
function gd(e) {
|
|
13663
13829
|
let t = e.length;
|
|
13664
13830
|
if (t === 0) return "";
|
|
13665
13831
|
if (t === 1) return `M${e[0][0].toFixed(2)},${e[0][1].toFixed(2)}`;
|
|
@@ -13683,23 +13849,23 @@ function fd(e) {
|
|
|
13683
13849
|
}
|
|
13684
13850
|
return s;
|
|
13685
13851
|
}
|
|
13686
|
-
function
|
|
13852
|
+
function _d(e, t) {
|
|
13687
13853
|
if (e.length === 0) return "";
|
|
13688
13854
|
let n = e[0], r = e[e.length - 1];
|
|
13689
|
-
return `${
|
|
13855
|
+
return `${gd(e)} L${r[0].toFixed(2)},${t.toFixed(2)} L${n[0].toFixed(2)},${t.toFixed(2)} Z`;
|
|
13690
13856
|
}
|
|
13691
|
-
function
|
|
13692
|
-
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`;
|
|
13693
13859
|
}
|
|
13694
|
-
function
|
|
13860
|
+
function yd(e, t, n, r) {
|
|
13695
13861
|
let i = (r - 90) * Math.PI / 180;
|
|
13696
13862
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
13697
13863
|
}
|
|
13698
|
-
function
|
|
13699
|
-
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);
|
|
13700
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`;
|
|
13701
13867
|
}
|
|
13702
|
-
var
|
|
13868
|
+
var xd = [
|
|
13703
13869
|
"var(--select-chart-1)",
|
|
13704
13870
|
"var(--select-chart-2)",
|
|
13705
13871
|
"var(--select-chart-3)",
|
|
@@ -13707,13 +13873,13 @@ var _d = [
|
|
|
13707
13873
|
"var(--select-chart-5)"
|
|
13708
13874
|
];
|
|
13709
13875
|
function X(e) {
|
|
13710
|
-
return
|
|
13876
|
+
return xd[e % xd.length];
|
|
13711
13877
|
}
|
|
13712
13878
|
function Z(e) {
|
|
13713
13879
|
let t = Math.abs(e);
|
|
13714
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));
|
|
13715
13881
|
}
|
|
13716
|
-
var
|
|
13882
|
+
var Sd = {
|
|
13717
13883
|
top: 16,
|
|
13718
13884
|
right: 22,
|
|
13719
13885
|
bottom: 32,
|
|
@@ -13721,8 +13887,8 @@ var vd = {
|
|
|
13721
13887
|
};
|
|
13722
13888
|
//#endregion
|
|
13723
13889
|
//#region src/SelectSparkline.tsx
|
|
13724
|
-
function
|
|
13725
|
-
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;
|
|
13726
13892
|
if (o > 0 && e.length > 1) {
|
|
13727
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];
|
|
13728
13894
|
u = /* @__PURE__ */ v("svg", {
|
|
@@ -13748,11 +13914,11 @@ function yd({ data: e, color: t, height: n = 40, className: r, ...i }) {
|
|
|
13748
13914
|
})]
|
|
13749
13915
|
}) }),
|
|
13750
13916
|
/* @__PURE__ */ _("path", {
|
|
13751
|
-
d:
|
|
13917
|
+
d: _d(a, n - 4),
|
|
13752
13918
|
fill: `url(#${l}-sa)`
|
|
13753
13919
|
}),
|
|
13754
13920
|
/* @__PURE__ */ _("path", {
|
|
13755
|
-
d:
|
|
13921
|
+
d: gd(a),
|
|
13756
13922
|
fill: "none",
|
|
13757
13923
|
stroke: s,
|
|
13758
13924
|
strokeWidth: 2,
|
|
@@ -13831,7 +13997,7 @@ function $({ tip: e, className: t, ...n }) {
|
|
|
13831
13997
|
}, t))]
|
|
13832
13998
|
});
|
|
13833
13999
|
}
|
|
13834
|
-
function
|
|
14000
|
+
function wd({ tip: e, onDismiss: t }) {
|
|
13835
14001
|
return s(() => {
|
|
13836
14002
|
if (e) return window.addEventListener("scroll", t, !0), window.addEventListener("resize", t), () => {
|
|
13837
14003
|
window.removeEventListener("scroll", t, !0), window.removeEventListener("resize", t);
|
|
@@ -13844,10 +14010,10 @@ function bd({ tip: e, onDismiss: t }) {
|
|
|
13844
14010
|
}
|
|
13845
14011
|
//#endregion
|
|
13846
14012
|
//#region src/SelectBarChart.tsx
|
|
13847
|
-
function
|
|
13848
|
-
let { ref: o, width: s } =
|
|
13849
|
-
...
|
|
13850
|
-
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)
|
|
13851
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;
|
|
13852
14018
|
return /* @__PURE__ */ v("div", {
|
|
13853
14019
|
...a,
|
|
@@ -13874,7 +14040,7 @@ function xd({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13874
14040
|
stopOpacity: .62
|
|
13875
14041
|
})]
|
|
13876
14042
|
}) }),
|
|
13877
|
-
|
|
14043
|
+
pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
13878
14044
|
x1: p.left,
|
|
13879
14045
|
x2: s - p.right,
|
|
13880
14046
|
y1: x(e),
|
|
@@ -13924,17 +14090,17 @@ function xd({ data: e, height: t = 240, color: n, format: r = Z, className: i, .
|
|
|
13924
14090
|
}
|
|
13925
14091
|
//#endregion
|
|
13926
14092
|
//#region src/SelectLineChart.tsx
|
|
13927
|
-
var
|
|
13928
|
-
function
|
|
14093
|
+
var Ed = (e) => e != null && Number.isFinite(e), Dd = 64;
|
|
14094
|
+
function Od(e, t) {
|
|
13929
14095
|
let n = [], r = [];
|
|
13930
|
-
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 = []);
|
|
13931
14097
|
return r.length && n.push(r), n;
|
|
13932
14098
|
}
|
|
13933
|
-
function
|
|
13934
|
-
let { ref: d, width: f, boxHeight: m } =
|
|
13935
|
-
...
|
|
13936
|
-
left:
|
|
13937
|
-
}, 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;
|
|
13938
14104
|
return /* @__PURE__ */ v("div", {
|
|
13939
14105
|
...u,
|
|
13940
14106
|
className: `select-chart-wrap${o ? " select-chart-wrap--fill" : ""}${s ? " " + s : ""}`,
|
|
@@ -13993,7 +14159,7 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
13993
14159
|
si: t
|
|
13994
14160
|
})).sort((e, t) => Number(!!t.s.dashed) - Number(!!e.s.dashed)).map(({ s: e, si: n }) => {
|
|
13995
14161
|
let r = e.color ?? X(n);
|
|
13996
|
-
return /* @__PURE__ */ _("g", { children:
|
|
14162
|
+
return /* @__PURE__ */ _("g", { children: Od(e.data, D).map((i, o) => {
|
|
13997
14163
|
let s = i.map((t) => [O(t), k(e.data[t])]);
|
|
13998
14164
|
return s.length === 1 ? /* @__PURE__ */ _("circle", {
|
|
13999
14165
|
cx: s[0][0],
|
|
@@ -14002,11 +14168,11 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14002
14168
|
fill: r,
|
|
14003
14169
|
className: "select-chart__dot select-chart__dot--lone"
|
|
14004
14170
|
}, o) : /* @__PURE__ */ v(t, { children: [a && !e.dashed && /* @__PURE__ */ _("path", {
|
|
14005
|
-
d:
|
|
14171
|
+
d: _d(s, N),
|
|
14006
14172
|
fill: `url(#${y}-a${n})`,
|
|
14007
14173
|
className: "select-chart__area"
|
|
14008
14174
|
}), /* @__PURE__ */ _("path", {
|
|
14009
|
-
d:
|
|
14175
|
+
d: gd(s),
|
|
14010
14176
|
fill: "none",
|
|
14011
14177
|
stroke: r,
|
|
14012
14178
|
strokeWidth: e.dashed ? 1.75 : 2.25,
|
|
@@ -14019,7 +14185,7 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14019
14185
|
})] }, o);
|
|
14020
14186
|
}) }, n);
|
|
14021
14187
|
}),
|
|
14022
|
-
b != null && e.map((e, t) =>
|
|
14188
|
+
b != null && e.map((e, t) => Ed(e.data[b]) ? /* @__PURE__ */ _("circle", {
|
|
14023
14189
|
cx: O(b),
|
|
14024
14190
|
cy: k(e.data[b] ?? 0),
|
|
14025
14191
|
r: 3.5,
|
|
@@ -14046,7 +14212,7 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14046
14212
|
let r = e.map((e, t) => ({
|
|
14047
14213
|
s: e,
|
|
14048
14214
|
si: t
|
|
14049
|
-
})).filter(({ s: e }) =>
|
|
14215
|
+
})).filter(({ s: e }) => Ed(e.data[n]));
|
|
14050
14216
|
if (!r.length) {
|
|
14051
14217
|
g.hide();
|
|
14052
14218
|
return;
|
|
@@ -14077,10 +14243,10 @@ function Td({ series: e, labels: n, height: r = 240, format: i = Z, area: a = !1
|
|
|
14077
14243
|
}
|
|
14078
14244
|
//#endregion
|
|
14079
14245
|
//#region src/SelectStackedArea.tsx
|
|
14080
|
-
function
|
|
14081
|
-
let { ref: o, width: s } =
|
|
14082
|
-
...
|
|
14083
|
-
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)
|
|
14084
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];
|
|
14085
14251
|
return /* @__PURE__ */ v("div", {
|
|
14086
14252
|
...a,
|
|
@@ -14110,7 +14276,7 @@ function Ed({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14110
14276
|
})]
|
|
14111
14277
|
}, t);
|
|
14112
14278
|
}) }),
|
|
14113
|
-
|
|
14279
|
+
pd(y).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
14114
14280
|
x1: b.left,
|
|
14115
14281
|
x2: s - b.right,
|
|
14116
14282
|
y1: w(e),
|
|
@@ -14129,10 +14295,10 @@ function Ed({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14129
14295
|
return /* @__PURE__ */ v("g", {
|
|
14130
14296
|
className: "select-chart__area",
|
|
14131
14297
|
children: [/* @__PURE__ */ _("path", {
|
|
14132
|
-
d:
|
|
14298
|
+
d: vd(i, a),
|
|
14133
14299
|
fill: `url(#${u}-b${n})`
|
|
14134
14300
|
}), /* @__PURE__ */ _("path", {
|
|
14135
|
-
d:
|
|
14301
|
+
d: gd(i),
|
|
14136
14302
|
fill: "none",
|
|
14137
14303
|
stroke: r,
|
|
14138
14304
|
strokeWidth: 1.5,
|
|
@@ -14186,11 +14352,11 @@ function Ed({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
14186
14352
|
}
|
|
14187
14353
|
//#endregion
|
|
14188
14354
|
//#region src/SelectComboChart.tsx
|
|
14189
|
-
function
|
|
14190
|
-
let { ref: l, width: u } =
|
|
14191
|
-
...
|
|
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,
|
|
14192
14358
|
right: 58
|
|
14193
|
-
}, 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)]);
|
|
14194
14360
|
return /* @__PURE__ */ v("div", {
|
|
14195
14361
|
...s,
|
|
14196
14362
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -14216,7 +14382,7 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14216
14382
|
stopOpacity: .55
|
|
14217
14383
|
})]
|
|
14218
14384
|
}) }),
|
|
14219
|
-
|
|
14385
|
+
pd(S).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
14220
14386
|
x1: g.left,
|
|
14221
14387
|
x2: u - g.right,
|
|
14222
14388
|
y1: A(e),
|
|
@@ -14230,7 +14396,7 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14230
14396
|
textAnchor: "end",
|
|
14231
14397
|
children: i(e)
|
|
14232
14398
|
})] }, t)),
|
|
14233
|
-
|
|
14399
|
+
pd(C).map((e, t) => /* @__PURE__ */ _("text", {
|
|
14234
14400
|
x: u - 4,
|
|
14235
14401
|
y: j(e),
|
|
14236
14402
|
className: "select-chart__ylabel",
|
|
@@ -14259,7 +14425,7 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14259
14425
|
className: "select-chart__crosshair"
|
|
14260
14426
|
}),
|
|
14261
14427
|
/* @__PURE__ */ _("path", {
|
|
14262
|
-
d:
|
|
14428
|
+
d: gd(N),
|
|
14263
14429
|
fill: "none",
|
|
14264
14430
|
stroke: O,
|
|
14265
14431
|
strokeWidth: 2.5,
|
|
@@ -14317,8 +14483,8 @@ function Dd({ labels: e, bars: t, line: n, height: r = 240, formatBar: i = Z, fo
|
|
|
14317
14483
|
}
|
|
14318
14484
|
//#endregion
|
|
14319
14485
|
//#region src/SelectDonut.tsx
|
|
14320
|
-
var
|
|
14321
|
-
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;
|
|
14322
14488
|
return /* @__PURE__ */ v("div", {
|
|
14323
14489
|
ref: d,
|
|
14324
14490
|
...u,
|
|
@@ -14361,7 +14527,7 @@ var Od = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
14361
14527
|
w += e.value;
|
|
14362
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);
|
|
14363
14529
|
return /* @__PURE__ */ _("path", {
|
|
14364
|
-
d:
|
|
14530
|
+
d: bd(b, x, S, C, c, l),
|
|
14365
14531
|
fill: `url(#${m}-s${t})`,
|
|
14366
14532
|
className: "select-chart__seg",
|
|
14367
14533
|
onMouseEnter: () => {
|
|
@@ -14409,12 +14575,12 @@ var Od = r(function({ segments: e, size: t = 200, thickness: n = 26, format: r =
|
|
|
14409
14575
|
/* @__PURE__ */ _($, { tip: p.tip })
|
|
14410
14576
|
]
|
|
14411
14577
|
});
|
|
14412
|
-
}),
|
|
14413
|
-
function
|
|
14414
|
-
let { ref: u, width: d } =
|
|
14415
|
-
...
|
|
14416
|
-
left:
|
|
14417
|
-
}, 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) => {
|
|
14418
14584
|
if (o) {
|
|
14419
14585
|
let e = o(t);
|
|
14420
14586
|
return e ? {
|
|
@@ -14581,7 +14747,7 @@ function jd({ series: e, labels: t, height: n = 240, format: r = Z, stacked: i =
|
|
|
14581
14747
|
}
|
|
14582
14748
|
//#endregion
|
|
14583
14749
|
//#region src/SelectChartLegend.tsx
|
|
14584
|
-
function
|
|
14750
|
+
function Id({ items: e, className: t, ...n }) {
|
|
14585
14751
|
return /* @__PURE__ */ _("div", {
|
|
14586
14752
|
...n,
|
|
14587
14753
|
className: `select-chartlegend${t ? " " + t : ""}`,
|
|
@@ -14610,7 +14776,7 @@ function Md({ items: e, className: t, ...n }) {
|
|
|
14610
14776
|
}
|
|
14611
14777
|
//#endregion
|
|
14612
14778
|
//#region src/SelectShareBar.tsx
|
|
14613
|
-
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 }) {
|
|
14614
14780
|
let u = e.map((e, t) => ({
|
|
14615
14781
|
...e,
|
|
14616
14782
|
key: e.key ?? e.label,
|
|
@@ -14715,7 +14881,7 @@ function Nd({ items: e, label: t, aside: n, legend: r = "list", size: i = "sm",
|
|
|
14715
14881
|
}
|
|
14716
14882
|
//#endregion
|
|
14717
14883
|
//#region src/SelectRing.tsx
|
|
14718
|
-
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) {
|
|
14719
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 = {
|
|
14720
14886
|
"--select-ring-size": `${n / 16}rem`,
|
|
14721
14887
|
...u
|
|
@@ -14759,7 +14925,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14759
14925
|
})]
|
|
14760
14926
|
})]
|
|
14761
14927
|
});
|
|
14762
|
-
}),
|
|
14928
|
+
}), zd = r(function({ steps: e, accent: t = "brand", align: n = "start", size: r = "md", orientation: i = "auto", marker: a, className: o, ...s }, c) {
|
|
14763
14929
|
let l = (t) => {
|
|
14764
14930
|
let n = e[t];
|
|
14765
14931
|
return n != null && n.state !== "upcoming";
|
|
@@ -14817,7 +14983,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14817
14983
|
})
|
|
14818
14984
|
})
|
|
14819
14985
|
});
|
|
14820
|
-
}),
|
|
14986
|
+
}), Bd = r(function({ total: e, value: t, label: n, tone: r = "success", className: i, ...a }, o) {
|
|
14821
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;
|
|
14822
14988
|
return /* @__PURE__ */ v("span", {
|
|
14823
14989
|
ref: o,
|
|
@@ -14833,7 +14999,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14833
14999
|
children: l
|
|
14834
15000
|
})]
|
|
14835
15001
|
});
|
|
14836
|
-
}),
|
|
15002
|
+
}), Vd = r(function({ icon: e, tone: t = "neutral", size: n = "md", className: r, ...i }, a) {
|
|
14837
15003
|
return /* @__PURE__ */ _("span", {
|
|
14838
15004
|
ref: a,
|
|
14839
15005
|
"aria-hidden": "true",
|
|
@@ -14841,7 +15007,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14841
15007
|
className: `select-icontile select-icontile--${t} select-icontile--${n}${r ? " " + r : ""}`,
|
|
14842
15008
|
children: e
|
|
14843
15009
|
});
|
|
14844
|
-
}),
|
|
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) {
|
|
14845
15011
|
let g = a != null && o === "end";
|
|
14846
15012
|
return /* @__PURE__ */ _("section", {
|
|
14847
15013
|
ref: h,
|
|
@@ -14913,7 +15079,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14913
15079
|
]
|
|
14914
15080
|
})
|
|
14915
15081
|
});
|
|
14916
|
-
}),
|
|
15082
|
+
}), Ud = r(function({ tone: e = "neutral", media: t, title: n, subtitle: r, meta: i, children: a, footer: o, className: s, ...c }, l) {
|
|
14917
15083
|
return /* @__PURE__ */ v("article", {
|
|
14918
15084
|
ref: l,
|
|
14919
15085
|
...c,
|
|
@@ -14948,7 +15114,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14948
15114
|
})]
|
|
14949
15115
|
})]
|
|
14950
15116
|
});
|
|
14951
|
-
}),
|
|
15117
|
+
}), Wd = r(function({ items: e, order: t = "label-first", columns: n, narrowColumns: r, loading: i = !1, className: a, ...o }, s) {
|
|
14952
15118
|
return /* @__PURE__ */ _("dl", {
|
|
14953
15119
|
ref: s,
|
|
14954
15120
|
"aria-busy": i || void 0,
|
|
@@ -14975,7 +15141,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
14975
15141
|
]
|
|
14976
15142
|
}, e.key ?? t))
|
|
14977
15143
|
});
|
|
14978
|
-
}),
|
|
15144
|
+
}), Gd = r(function({ brand: e, lastDigits: t, caption: n, className: r, ...i }, a) {
|
|
14979
15145
|
let o = (t ?? "").replace(/\D/g, "").slice(-4);
|
|
14980
15146
|
return /* @__PURE__ */ v("div", {
|
|
14981
15147
|
ref: a,
|
|
@@ -15018,7 +15184,7 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
15018
15184
|
})
|
|
15019
15185
|
]
|
|
15020
15186
|
});
|
|
15021
|
-
}),
|
|
15187
|
+
}), Kd = r(function({ stages: e, format: t = Z, palette: n = "ramp", convLabel: r, className: i, ...a }, o) {
|
|
15022
15188
|
let s = Math.max(1, ...e.map((e) => e.value));
|
|
15023
15189
|
return /* @__PURE__ */ _("div", {
|
|
15024
15190
|
ref: o,
|
|
@@ -15060,19 +15226,19 @@ var Pd = r(function({ value: e, max: t = 100, size: n = 64, thickness: r, tone:
|
|
|
15060
15226
|
});
|
|
15061
15227
|
//#endregion
|
|
15062
15228
|
//#region src/SelectGauge.tsx
|
|
15063
|
-
function
|
|
15229
|
+
function qd(e) {
|
|
15064
15230
|
return Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0;
|
|
15065
15231
|
}
|
|
15066
|
-
function
|
|
15232
|
+
function Jd(e, t, n, r) {
|
|
15067
15233
|
let i = Math.PI + r * Math.PI;
|
|
15068
15234
|
return [e + n * Math.cos(i), t + n * Math.sin(i)];
|
|
15069
15235
|
}
|
|
15070
|
-
function
|
|
15071
|
-
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);
|
|
15072
15238
|
return `M ${a.toFixed(2)} ${o.toFixed(2)} A ${n} ${n} 0 0 1 ${s.toFixed(2)} ${c.toFixed(2)}`;
|
|
15073
15239
|
}
|
|
15074
|
-
var
|
|
15075
|
-
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({
|
|
15076
15242
|
value: u,
|
|
15077
15243
|
format: o
|
|
15078
15244
|
});
|
|
@@ -15095,13 +15261,13 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15095
15261
|
"aria-hidden": "true",
|
|
15096
15262
|
children: [/* @__PURE__ */ _("path", {
|
|
15097
15263
|
className: "select-gauge__track",
|
|
15098
|
-
d:
|
|
15264
|
+
d: Yd(m, h, p, 0, 1),
|
|
15099
15265
|
fill: "none",
|
|
15100
15266
|
strokeWidth: d,
|
|
15101
15267
|
strokeLinecap: "round"
|
|
15102
15268
|
}), u > 0 && /* @__PURE__ */ _("path", {
|
|
15103
15269
|
className: "select-gauge__arc",
|
|
15104
|
-
d:
|
|
15270
|
+
d: Yd(m, h, p, 0, u / 100),
|
|
15105
15271
|
fill: "none",
|
|
15106
15272
|
stroke: a ?? "var(--select-chart-1)",
|
|
15107
15273
|
strokeWidth: d,
|
|
@@ -15124,7 +15290,7 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15124
15290
|
children: n
|
|
15125
15291
|
})]
|
|
15126
15292
|
});
|
|
15127
|
-
}),
|
|
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) {
|
|
15128
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 = {
|
|
15129
15295
|
gridTemplateColumns: `minmax(56px, max-content) repeat(${e.length}, minmax(${l}px, ${Math.max(l, u)}px))`,
|
|
15130
15296
|
width: "fit-content",
|
|
@@ -15184,12 +15350,12 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15184
15350
|
}, c);
|
|
15185
15351
|
})] }, n.label))
|
|
15186
15352
|
]
|
|
15187
|
-
}), /* @__PURE__ */ _(
|
|
15353
|
+
}), /* @__PURE__ */ _(wd, {
|
|
15188
15354
|
tip: h.tip,
|
|
15189
15355
|
onDismiss: h.hide
|
|
15190
15356
|
})]
|
|
15191
15357
|
});
|
|
15192
|
-
}),
|
|
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) {
|
|
15193
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 = {
|
|
15194
15360
|
width: f * m - r,
|
|
15195
15361
|
height: p * m - r
|
|
@@ -15251,13 +15417,13 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15251
15417
|
/* @__PURE__ */ _("span", { children: "mais" })
|
|
15252
15418
|
]
|
|
15253
15419
|
}),
|
|
15254
|
-
/* @__PURE__ */ _(
|
|
15420
|
+
/* @__PURE__ */ _(wd, {
|
|
15255
15421
|
tip: u.tip,
|
|
15256
15422
|
onDismiss: u.hide
|
|
15257
15423
|
})
|
|
15258
15424
|
]
|
|
15259
15425
|
});
|
|
15260
|
-
}),
|
|
15426
|
+
}), ef = [
|
|
15261
15427
|
{
|
|
15262
15428
|
key: "RR",
|
|
15263
15429
|
label: "RR",
|
|
@@ -15450,7 +15616,7 @@ var Kd = (e) => `${e.toLocaleString("pt-BR", { maximumFractionDigits: +(e < 10)
|
|
|
15450
15616
|
];
|
|
15451
15617
|
//#endregion
|
|
15452
15618
|
//#region src/SelectProgressList.tsx
|
|
15453
|
-
function
|
|
15619
|
+
function tf({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no período.", spread: i = !1, max: a }) {
|
|
15454
15620
|
if (e.length === 0) return /* @__PURE__ */ _("div", {
|
|
15455
15621
|
className: "select-progresslist__empty",
|
|
15456
15622
|
children: r
|
|
@@ -15501,7 +15667,7 @@ function Zd({ items: e, format: t = Z, color: n, emptyText: r = "Sem dados no pe
|
|
|
15501
15667
|
}
|
|
15502
15668
|
//#endregion
|
|
15503
15669
|
//#region src/SelectRadialBar.tsx
|
|
15504
|
-
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) {
|
|
15505
15671
|
let d = c(), f = t / 2, p = t / 2;
|
|
15506
15672
|
return /* @__PURE__ */ v("div", {
|
|
15507
15673
|
ref: u,
|
|
@@ -15541,7 +15707,7 @@ var Qd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, $d = r(f
|
|
|
15541
15707
|
}) }), e.map((e, i) => {
|
|
15542
15708
|
let a = t / 2 - 2 - n / 2 - i * (n + r);
|
|
15543
15709
|
if (a <= n / 2) return null;
|
|
15544
|
-
let o =
|
|
15710
|
+
let o = nf(e.value);
|
|
15545
15711
|
return /* @__PURE__ */ v("g", {
|
|
15546
15712
|
transform: `rotate(-90 ${f} ${p})`,
|
|
15547
15713
|
children: [/* @__PURE__ */ _("circle", {
|
|
@@ -15570,7 +15736,7 @@ var Qd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, $d = r(f
|
|
|
15570
15736
|
className: "select-radial__center",
|
|
15571
15737
|
children: a ?? (e.length === 1 ? /* @__PURE__ */ _("strong", {
|
|
15572
15738
|
className: "select-radial__value",
|
|
15573
|
-
children: i(
|
|
15739
|
+
children: i(nf(e[0].value))
|
|
15574
15740
|
}) : null)
|
|
15575
15741
|
})]
|
|
15576
15742
|
}), o && /* @__PURE__ */ _("ul", {
|
|
@@ -15588,15 +15754,15 @@ var Qd = (e) => Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : 0, $d = r(f
|
|
|
15588
15754
|
}),
|
|
15589
15755
|
/* @__PURE__ */ _("span", {
|
|
15590
15756
|
className: "select-donut__legval",
|
|
15591
|
-
children: i(
|
|
15757
|
+
children: i(nf(e.value))
|
|
15592
15758
|
})
|
|
15593
15759
|
]
|
|
15594
15760
|
}, t))
|
|
15595
15761
|
})]
|
|
15596
15762
|
});
|
|
15597
|
-
}),
|
|
15598
|
-
function
|
|
15599
|
-
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));
|
|
15600
15766
|
return /* @__PURE__ */ v("div", {
|
|
15601
15767
|
...u,
|
|
15602
15768
|
className: `select-chart-wrap${l ? " " + l : ""}`,
|
|
@@ -15625,7 +15791,7 @@ function af({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15625
15791
|
})]
|
|
15626
15792
|
}, t);
|
|
15627
15793
|
}) }),
|
|
15628
|
-
|
|
15794
|
+
pd(g).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
15629
15795
|
x1: O(e),
|
|
15630
15796
|
x2: O(e),
|
|
15631
15797
|
y1: 6,
|
|
@@ -15671,7 +15837,7 @@ function af({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15671
15837
|
onMouseLeave: m.hide
|
|
15672
15838
|
}),
|
|
15673
15839
|
/* @__PURE__ */ v("text", {
|
|
15674
|
-
x: x -
|
|
15840
|
+
x: x - of / 2,
|
|
15675
15841
|
y: n,
|
|
15676
15842
|
className: "select-chart__ylabel",
|
|
15677
15843
|
dominantBaseline: "middle",
|
|
@@ -15686,8 +15852,8 @@ function af({ data: e, height: t, color: n, format: r = Z, formatValue: i, distr
|
|
|
15686
15852
|
}
|
|
15687
15853
|
//#endregion
|
|
15688
15854
|
//#region src/SelectWaterfall.tsx
|
|
15689
|
-
function
|
|
15690
|
-
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) => {
|
|
15691
15857
|
if (e.total) return u = e.value, {
|
|
15692
15858
|
...e,
|
|
15693
15859
|
start: 0,
|
|
@@ -15699,7 +15865,7 @@ function of({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15699
15865
|
start: t,
|
|
15700
15866
|
end: u
|
|
15701
15867
|
};
|
|
15702
|
-
}), 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 = {
|
|
15703
15869
|
total: "var(--select-chart-1)",
|
|
15704
15870
|
inc: "var(--select-chart-4)",
|
|
15705
15871
|
dec: "var(--select-chart-3)"
|
|
@@ -15733,7 +15899,7 @@ function of({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15733
15899
|
stopOpacity: .62
|
|
15734
15900
|
})]
|
|
15735
15901
|
}, e)) }),
|
|
15736
|
-
|
|
15902
|
+
pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
15737
15903
|
x1: p.left,
|
|
15738
15904
|
x2: o - p.right,
|
|
15739
15905
|
y1: S(e),
|
|
@@ -15801,7 +15967,7 @@ function of({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15801
15967
|
}
|
|
15802
15968
|
//#endregion
|
|
15803
15969
|
//#region src/SelectBullet.tsx
|
|
15804
|
-
var
|
|
15970
|
+
var df = (e) => Math.max(0, Math.min(100, e)), ff = r(function({ items: e, format: t = Z, className: n, ...r }, i) {
|
|
15805
15971
|
return /* @__PURE__ */ _("div", {
|
|
15806
15972
|
ref: i,
|
|
15807
15973
|
...r,
|
|
@@ -15839,12 +16005,12 @@ var sf = (e) => Math.max(0, Math.min(100, e)), cf = r(function({ items: e, forma
|
|
|
15839
16005
|
children: [/* @__PURE__ */ _("span", {
|
|
15840
16006
|
className: "select-bullet__fill",
|
|
15841
16007
|
style: {
|
|
15842
|
-
width: `${
|
|
16008
|
+
width: `${df(e.value / i * 100)}%`,
|
|
15843
16009
|
background: `linear-gradient(90deg, ${r}, color-mix(in srgb, ${r} 55%, transparent))`
|
|
15844
16010
|
}
|
|
15845
16011
|
}), /* @__PURE__ */ _("span", {
|
|
15846
16012
|
className: "select-bullet__tick",
|
|
15847
|
-
style: { left: `${
|
|
16013
|
+
style: { left: `${df(e.target / i * 100)}%` }
|
|
15848
16014
|
})]
|
|
15849
16015
|
})]
|
|
15850
16016
|
}, `${e.label}-${n}`);
|
|
@@ -15853,7 +16019,7 @@ var sf = (e) => Math.max(0, Math.min(100, e)), cf = r(function({ items: e, forma
|
|
|
15853
16019
|
});
|
|
15854
16020
|
//#endregion
|
|
15855
16021
|
//#region src/SelectTreemap.tsx
|
|
15856
|
-
function
|
|
16022
|
+
function pf(e, t, n) {
|
|
15857
16023
|
let r = [], i = (e, t) => {
|
|
15858
16024
|
let n = e.reduce((e, t) => e + t, 0), r = Math.max(...e), i = Math.min(...e);
|
|
15859
16025
|
return Math.max(t * t * r / (n * n), n * n / (t * t * i));
|
|
@@ -15904,8 +16070,8 @@ function lf(e, t, n) {
|
|
|
15904
16070
|
};
|
|
15905
16071
|
return a(e.map((e, t) => t), 0, 0, t, n), r;
|
|
15906
16072
|
}
|
|
15907
|
-
function
|
|
15908
|
-
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) : [];
|
|
15909
16075
|
return /* @__PURE__ */ v("div", {
|
|
15910
16076
|
...i,
|
|
15911
16077
|
className: `select-chart-wrap select-treemap${r ? " " + r : ""}`,
|
|
@@ -15975,8 +16141,8 @@ function uf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
15975
16141
|
}
|
|
15976
16142
|
//#endregion
|
|
15977
16143
|
//#region src/SelectScatter.tsx
|
|
15978
|
-
function
|
|
15979
|
-
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;
|
|
15980
16146
|
return /* @__PURE__ */ v("div", {
|
|
15981
16147
|
...c,
|
|
15982
16148
|
className: `select-chart-wrap${s ? " " + s : ""}`,
|
|
@@ -15986,7 +16152,7 @@ function df({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
15986
16152
|
height: t,
|
|
15987
16153
|
className: "select-chart",
|
|
15988
16154
|
children: [
|
|
15989
|
-
|
|
16155
|
+
pd(m).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
15990
16156
|
x1: g.left,
|
|
15991
16157
|
x2: u - g.right,
|
|
15992
16158
|
y1: C(e),
|
|
@@ -16000,7 +16166,7 @@ function df({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
16000
16166
|
textAnchor: "end",
|
|
16001
16167
|
children: r(e)
|
|
16002
16168
|
})] }, `y${t}`)),
|
|
16003
|
-
|
|
16169
|
+
pd(p).map((e, r, i) => /* @__PURE__ */ _("text", {
|
|
16004
16170
|
x: S(e),
|
|
16005
16171
|
y: t - g.bottom + 16,
|
|
16006
16172
|
className: "select-chart__xlabel",
|
|
@@ -16047,8 +16213,8 @@ function df({ series: e, height: t = 240, xFormat: n = Z, yFormat: r = Z, xMax:
|
|
|
16047
16213
|
}
|
|
16048
16214
|
//#endregion
|
|
16049
16215
|
//#region src/SelectRadar.tsx
|
|
16050
|
-
var
|
|
16051
|
-
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";
|
|
16052
16218
|
return /* @__PURE__ */ v("div", {
|
|
16053
16219
|
ref: u,
|
|
16054
16220
|
...l,
|
|
@@ -16157,8 +16323,8 @@ var ff = r(function({ axes: e, series: t, size: n = 240, max: r, format: i = Z,
|
|
|
16157
16323
|
});
|
|
16158
16324
|
//#endregion
|
|
16159
16325
|
//#region src/SelectSankey.tsx
|
|
16160
|
-
function
|
|
16161
|
-
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 = [];
|
|
16162
16328
|
for (let t of e) u.includes(t.source) || u.push(t.source), d.includes(t.target) || d.push(t.target);
|
|
16163
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) => {
|
|
16164
16330
|
let r = /* @__PURE__ */ new Map(), a = 6;
|
|
@@ -16242,8 +16408,8 @@ function pf({ links: e, height: t = 260, format: n = Z, nodeWidth: r = 14, nodeG
|
|
|
16242
16408
|
}
|
|
16243
16409
|
//#endregion
|
|
16244
16410
|
//#region src/SelectCandlestick.tsx
|
|
16245
|
-
function
|
|
16246
|
-
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);
|
|
16247
16413
|
return /* @__PURE__ */ v("div", {
|
|
16248
16414
|
...o,
|
|
16249
16415
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -16332,8 +16498,8 @@ function mf({ data: e, height: t = 240, format: n = Z, upColor: r = "var(--selec
|
|
|
16332
16498
|
}
|
|
16333
16499
|
//#endregion
|
|
16334
16500
|
//#region src/SelectBoxPlot.tsx
|
|
16335
|
-
function
|
|
16336
|
-
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);
|
|
16337
16503
|
return /* @__PURE__ */ v("div", {
|
|
16338
16504
|
...i,
|
|
16339
16505
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -16342,7 +16508,7 @@ function hf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16342
16508
|
width: o,
|
|
16343
16509
|
height: t,
|
|
16344
16510
|
className: "select-chart",
|
|
16345
|
-
children: [
|
|
16511
|
+
children: [pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
16346
16512
|
x1: c.left,
|
|
16347
16513
|
x2: o - c.right,
|
|
16348
16514
|
y1: p(e),
|
|
@@ -16452,8 +16618,8 @@ function hf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
16452
16618
|
}
|
|
16453
16619
|
//#endregion
|
|
16454
16620
|
//#region src/SelectRangeBar.tsx
|
|
16455
|
-
function
|
|
16456
|
-
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);
|
|
16457
16623
|
return /* @__PURE__ */ v("div", {
|
|
16458
16624
|
...s,
|
|
16459
16625
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -16533,7 +16699,7 @@ function gf({ data: e, height: t, min: n, max: r, format: i = Z, labelWidth: a =
|
|
|
16533
16699
|
}
|
|
16534
16700
|
//#endregion
|
|
16535
16701
|
//#region src/SelectCalendarHeatmap.tsx
|
|
16536
|
-
var
|
|
16702
|
+
var xf = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n = [
|
|
16537
16703
|
"Seg",
|
|
16538
16704
|
"",
|
|
16539
16705
|
"Qua",
|
|
@@ -16606,8 +16772,8 @@ var _f = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16606
16772
|
]
|
|
16607
16773
|
}), /* @__PURE__ */ _($, { tip: p.tip })]
|
|
16608
16774
|
});
|
|
16609
|
-
}),
|
|
16610
|
-
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;
|
|
16611
16777
|
return /* @__PURE__ */ v("div", {
|
|
16612
16778
|
ref: s,
|
|
16613
16779
|
...o,
|
|
@@ -16637,7 +16803,7 @@ var _f = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16637
16803
|
}, t)), e.map((e, t) => {
|
|
16638
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);
|
|
16639
16805
|
return /* @__PURE__ */ _("path", {
|
|
16640
|
-
d:
|
|
16806
|
+
d: bd(l, u, o, 0, r, i),
|
|
16641
16807
|
fill: a,
|
|
16642
16808
|
fillOpacity: .8,
|
|
16643
16809
|
className: "select-chart__seg",
|
|
@@ -16680,13 +16846,13 @@ var _f = r(function({ weeks: e, color: t = "var(--select-chart-4)", dayLabels: n
|
|
|
16680
16846
|
});
|
|
16681
16847
|
//#endregion
|
|
16682
16848
|
//#region src/SelectSlope.tsx
|
|
16683
|
-
function
|
|
16684
|
-
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 = {
|
|
16685
16851
|
top: 24,
|
|
16686
16852
|
right: 64,
|
|
16687
16853
|
bottom: 12,
|
|
16688
16854
|
left: 132
|
|
16689
|
-
}, 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;
|
|
16690
16856
|
return /* @__PURE__ */ v("div", {
|
|
16691
16857
|
...o,
|
|
16692
16858
|
className: `select-chart-wrap${a ? " " + a : ""}`,
|
|
@@ -16802,8 +16968,8 @@ function yf({ data: e, leftLabel: t, rightLabel: n, height: r = 240, format: i =
|
|
|
16802
16968
|
}
|
|
16803
16969
|
//#endregion
|
|
16804
16970
|
//#region src/SelectDumbbell.tsx
|
|
16805
|
-
function
|
|
16806
|
-
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;
|
|
16807
16973
|
return /* @__PURE__ */ v("div", {
|
|
16808
16974
|
...s,
|
|
16809
16975
|
className: `select-chart-wrap${o ? " " + o : ""}`,
|
|
@@ -16812,7 +16978,7 @@ function bf({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16812
16978
|
width: u,
|
|
16813
16979
|
height: c,
|
|
16814
16980
|
className: "select-chart",
|
|
16815
|
-
children: [
|
|
16981
|
+
children: [pd(m).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
16816
16982
|
x1: x(e),
|
|
16817
16983
|
x2: x(e),
|
|
16818
16984
|
y1: 6,
|
|
@@ -16895,8 +17061,8 @@ function bf({ data: e, height: t, format: n = Z, fromLabel: r = "Antes", toLabel
|
|
|
16895
17061
|
}
|
|
16896
17062
|
//#endregion
|
|
16897
17063
|
//#region src/SelectMarimekko.tsx
|
|
16898
|
-
function
|
|
16899
|
-
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 = {
|
|
16900
17066
|
top: 6,
|
|
16901
17067
|
right: 6,
|
|
16902
17068
|
bottom: 24,
|
|
@@ -16975,7 +17141,7 @@ function xf({ columns: e, height: t = 240, format: n = Z, gap: r = 3, className:
|
|
|
16975
17141
|
}
|
|
16976
17142
|
//#endregion
|
|
16977
17143
|
//#region src/SelectGaugeBands.tsx
|
|
16978
|
-
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) {
|
|
16979
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) => {
|
|
16980
17146
|
let t = Math.PI + e * Math.PI;
|
|
16981
17147
|
return [p + f * Math.cos(t), m + f * Math.sin(t)];
|
|
@@ -17047,8 +17213,8 @@ var Sf = r(function({ value: e, max: t = 100, bands: n, size: r = 220, thickness
|
|
|
17047
17213
|
});
|
|
17048
17214
|
//#endregion
|
|
17049
17215
|
//#region src/SelectStreamGraph.tsx
|
|
17050
|
-
function
|
|
17051
|
-
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 = {
|
|
17052
17218
|
top: 14,
|
|
17053
17219
|
right: 14,
|
|
17054
17220
|
bottom: 28,
|
|
@@ -17091,7 +17257,7 @@ function Cf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
17091
17257
|
})]
|
|
17092
17258
|
}, t)) }),
|
|
17093
17259
|
w.map((e, t) => /* @__PURE__ */ _("path", {
|
|
17094
|
-
d:
|
|
17260
|
+
d: vd(e.upper, e.lower),
|
|
17095
17261
|
fill: `url(#${u}-st${t})`,
|
|
17096
17262
|
className: "select-chart__area"
|
|
17097
17263
|
}, t)),
|
|
@@ -17138,7 +17304,7 @@ function Cf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
17138
17304
|
}
|
|
17139
17305
|
//#endregion
|
|
17140
17306
|
//#region src/SelectSunburst.tsx
|
|
17141
|
-
var
|
|
17307
|
+
var Of = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, className: i, ...a }, o) {
|
|
17142
17308
|
let s = Q(), c = t / 2, l = t / 2, u = t / 2 - 2, d = u * .62, f = u * .32, p = e.map((e) => {
|
|
17143
17309
|
var t;
|
|
17144
17310
|
return (t = e.children) != null && t.length ? e.children.reduce((e, t) => e + t.value, 0) : e.value ?? 0;
|
|
@@ -17164,7 +17330,7 @@ var wf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
17164
17330
|
h += r;
|
|
17165
17331
|
let a = h / m * 360, o = e.color ?? X(t), g = i;
|
|
17166
17332
|
return /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("path", {
|
|
17167
|
-
d:
|
|
17333
|
+
d: bd(c, l, d, f, i + .6, Math.max(i + .7, a - .6)),
|
|
17168
17334
|
fill: o,
|
|
17169
17335
|
className: "select-chart__seg",
|
|
17170
17336
|
onMouseEnter: () => s.show({
|
|
@@ -17184,7 +17350,7 @@ var wf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
17184
17350
|
g += t.value / m * 360;
|
|
17185
17351
|
let f = g, p = t.color ?? o, h = .45 + i % 3 * .2, v = ((a + f) / 2 - 90) * (Math.PI / 180);
|
|
17186
17352
|
return /* @__PURE__ */ _("path", {
|
|
17187
|
-
d:
|
|
17353
|
+
d: bd(c, l, u, d + 2, a + .5, Math.max(a + .6, f - .5)),
|
|
17188
17354
|
fill: p,
|
|
17189
17355
|
fillOpacity: h,
|
|
17190
17356
|
className: "select-chart__seg",
|
|
@@ -17231,8 +17397,8 @@ var wf = r(function({ data: e, size: t = 220, format: n = Z, legend: r = !0, cla
|
|
|
17231
17397
|
});
|
|
17232
17398
|
//#endregion
|
|
17233
17399
|
//#region src/SelectViolin.tsx
|
|
17234
|
-
function
|
|
17235
|
-
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));
|
|
17236
17402
|
return /* @__PURE__ */ v("div", {
|
|
17237
17403
|
...i,
|
|
17238
17404
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -17241,7 +17407,7 @@ function Tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
17241
17407
|
width: o,
|
|
17242
17408
|
height: t,
|
|
17243
17409
|
className: "select-chart",
|
|
17244
|
-
children: [
|
|
17410
|
+
children: [pd(f).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
17245
17411
|
x1: c.left,
|
|
17246
17412
|
x2: o - c.right,
|
|
17247
17413
|
y1: p(e),
|
|
@@ -17258,7 +17424,7 @@ function Tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
17258
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 = [];
|
|
17259
17425
|
for (let e = o - 1; e >= 0; e--) f.push([i + d(e), l(e)]);
|
|
17260
17426
|
for (let e = 0; e < o; e++) m.push([i - d(e), l(e)]);
|
|
17261
|
-
let b = `${
|
|
17427
|
+
let b = `${hd(f)} ${hd(m).replace(/^M/, "L")} Z`, x = e.median == null ? null : p(e.median);
|
|
17262
17428
|
return /* @__PURE__ */ v("g", { children: [
|
|
17263
17429
|
/* @__PURE__ */ _("path", {
|
|
17264
17430
|
d: b,
|
|
@@ -17319,7 +17485,7 @@ function Tf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
17319
17485
|
}
|
|
17320
17486
|
//#endregion
|
|
17321
17487
|
//#region src/SelectChord.tsx
|
|
17322
|
-
var
|
|
17488
|
+
var Af = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAngle: i = .05, className: a, ...o }, s) {
|
|
17323
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;
|
|
17324
17490
|
for (let e = 0; e < l; e++) {
|
|
17325
17491
|
let t = b, n = b + m[e] * g;
|
|
@@ -17386,7 +17552,7 @@ var Ef = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
17386
17552
|
}, n)), y.map((e, n) => {
|
|
17387
17553
|
let r = (e.a0 + e.a1) / 2, [i, a] = S(r, f + 12);
|
|
17388
17554
|
return /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("path", {
|
|
17389
|
-
d:
|
|
17555
|
+
d: bd(u, d, f, p, w(e.a0), w(e.a1)),
|
|
17390
17556
|
fill: X(n),
|
|
17391
17557
|
className: "select-chord__arc"
|
|
17392
17558
|
}), /* @__PURE__ */ _("text", {
|
|
@@ -17404,8 +17570,8 @@ var Ef = r(function({ matrix: e, labels: t, size: n = 240, format: r = Z, padAng
|
|
|
17404
17570
|
});
|
|
17405
17571
|
//#endregion
|
|
17406
17572
|
//#region src/SelectHexbin.tsx
|
|
17407
|
-
function
|
|
17408
|
-
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) => {
|
|
17409
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);
|
|
17410
17576
|
return c > l && c > u ? a = -o - s : l > u ? o = -a - s : s = -a - o, [a, s];
|
|
17411
17577
|
}, C = (e, t) => [b * x * (e + t / 2), 3 / 2 * b * t], w = (e, t) => {
|
|
@@ -17456,7 +17622,7 @@ function Df({ points: e, height: t = 240, radius: n = 16, color: r = "var(--sele
|
|
|
17456
17622
|
}
|
|
17457
17623
|
//#endregion
|
|
17458
17624
|
//#region src/SelectWordCloud.tsx
|
|
17459
|
-
var
|
|
17625
|
+
var Mf = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r, ...i }, a) {
|
|
17460
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);
|
|
17461
17627
|
return /* @__PURE__ */ _("div", {
|
|
17462
17628
|
ref: a,
|
|
@@ -17473,7 +17639,7 @@ var Of = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
17473
17639
|
children: e.text
|
|
17474
17640
|
}, `${e.text}-${t}`))
|
|
17475
17641
|
});
|
|
17476
|
-
}),
|
|
17642
|
+
}), Nf = [
|
|
17477
17643
|
[
|
|
17478
17644
|
-59.6,
|
|
17479
17645
|
-80,
|
|
@@ -27868,24 +28034,24 @@ var Of = r(function({ words: e, minSize: t = 14, maxSize: n = 46, className: r,
|
|
|
27868
28034
|
-27.1,
|
|
27869
28035
|
83.5
|
|
27870
28036
|
]
|
|
27871
|
-
],
|
|
27872
|
-
function
|
|
27873
|
-
let n = e *
|
|
28037
|
+
], Pf = Math.PI / 180;
|
|
28038
|
+
function Ff(e, t) {
|
|
28039
|
+
let n = e * Pf, r = t * Pf;
|
|
27874
28040
|
return [
|
|
27875
28041
|
Math.cos(n) * Math.sin(r),
|
|
27876
28042
|
Math.sin(n),
|
|
27877
28043
|
Math.cos(n) * Math.cos(r)
|
|
27878
28044
|
];
|
|
27879
28045
|
}
|
|
27880
|
-
function
|
|
27881
|
-
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;
|
|
27882
28048
|
return [
|
|
27883
28049
|
o,
|
|
27884
28050
|
t * Math.cos(c) - s * Math.sin(c),
|
|
27885
28051
|
t * Math.sin(c) + s * Math.cos(c)
|
|
27886
28052
|
];
|
|
27887
28053
|
}
|
|
27888
|
-
function
|
|
28054
|
+
function Lf(e, t, n) {
|
|
27889
28055
|
let r = e[0] * t[0] + e[1] * t[1] + e[2] * t[2];
|
|
27890
28056
|
r = Math.max(-1, Math.min(1, r));
|
|
27891
28057
|
let i = Math.acos(r);
|
|
@@ -27897,9 +28063,9 @@ function Nf(e, t, n) {
|
|
|
27897
28063
|
e[2] * o + t[2] * s
|
|
27898
28064
|
];
|
|
27899
28065
|
}
|
|
27900
|
-
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) {
|
|
27901
28067
|
var S, C;
|
|
27902
|
-
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({
|
|
27903
28069
|
lng: -O,
|
|
27904
28070
|
lat: r
|
|
27905
28071
|
}), j = f({
|
|
@@ -27958,7 +28124,7 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27958
28124
|
var t, n;
|
|
27959
28125
|
P.current && ((t = (n = e.target).releasePointerCapture) == null || t.call(n, e.pointerId), P.current = null, V(!1), U());
|
|
27960
28126
|
}, G = (D / 2 - 6) * M.current, K = D / 2, q = D / 2, J = (e) => {
|
|
27961
|
-
let t =
|
|
28127
|
+
let t = If(e, A.current.lng, A.current.lat);
|
|
27962
28128
|
return {
|
|
27963
28129
|
x: K + G * t[0],
|
|
27964
28130
|
y: q - G * t[1],
|
|
@@ -27968,25 +28134,25 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
27968
28134
|
let e = [];
|
|
27969
28135
|
for (let t = -180; t < 180; t += 30) {
|
|
27970
28136
|
let n = [];
|
|
27971
|
-
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));
|
|
27972
28138
|
e.push(n);
|
|
27973
28139
|
}
|
|
27974
28140
|
for (let t = -60; t <= 60; t += 30) {
|
|
27975
28141
|
let n = [];
|
|
27976
|
-
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));
|
|
27977
28143
|
e.push(n);
|
|
27978
28144
|
}
|
|
27979
28145
|
return e;
|
|
27980
|
-
}, []), oe = d(() =>
|
|
28146
|
+
}, []), oe = d(() => Nf.map((e) => {
|
|
27981
28147
|
let t = [];
|
|
27982
|
-
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]));
|
|
27983
28149
|
return t;
|
|
27984
28150
|
}), []), se = (e) => ({
|
|
27985
28151
|
x: K + G * e[0],
|
|
27986
28152
|
y: q - G * e[1]
|
|
27987
28153
|
}), ce = "", le = "";
|
|
27988
28154
|
if (m) for (let e of oe) {
|
|
27989
|
-
let t = e.map((e) =>
|
|
28155
|
+
let t = e.map((e) => If(e, A.current.lng, A.current.lat)), n = t.length, r = !1;
|
|
27990
28156
|
for (let e of t) if (e[2] > 0) {
|
|
27991
28157
|
let t = se(e);
|
|
27992
28158
|
le += `${r ? "L" : "M"}${t.x.toFixed(1)},${t.y.toFixed(1)}`, r = !0;
|
|
@@ -28034,7 +28200,7 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
28034
28200
|
}
|
|
28035
28201
|
return t;
|
|
28036
28202
|
}, de = Math.max(1, ...e.map((e) => e.value ?? 0)), fe = e.map((e, t) => {
|
|
28037
|
-
let n = J(
|
|
28203
|
+
let n = J(Ff(e.lat, e.lng));
|
|
28038
28204
|
return {
|
|
28039
28205
|
...e,
|
|
28040
28206
|
i: t,
|
|
@@ -28044,20 +28210,20 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
28044
28210
|
col: e.color ?? o
|
|
28045
28211
|
};
|
|
28046
28212
|
}), pe = ee == null ? null : e[ee], me = t.map((e, t) => {
|
|
28047
|
-
let n =
|
|
28213
|
+
let n = Ff(e.from.lat, e.from.lng), r = Ff(e.to.lat, e.to.lng), i = "", a = !1;
|
|
28048
28214
|
for (let e = 0; e <= 40; e++) {
|
|
28049
|
-
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([
|
|
28050
28216
|
o[0] * s,
|
|
28051
28217
|
o[1] * s,
|
|
28052
28218
|
o[2] * s
|
|
28053
28219
|
]);
|
|
28054
28220
|
c[2] > -.05 ? (i += `${a ? "L" : "M"}${l.x.toFixed(1)},${l.y.toFixed(1)}`, a = !0) : a = !1;
|
|
28055
28221
|
}
|
|
28056
|
-
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([
|
|
28057
28223
|
c[0] * l,
|
|
28058
28224
|
c[1] * l,
|
|
28059
28225
|
c[2] * l
|
|
28060
|
-
]), f = pe != null && (
|
|
28226
|
+
]), f = pe != null && (Rf(e.from, pe) || Rf(e.to, pe));
|
|
28061
28227
|
return {
|
|
28062
28228
|
d: i,
|
|
28063
28229
|
col: e.color ?? o,
|
|
@@ -28331,8 +28497,8 @@ var Pf = (e, t) => Math.abs(e.lat - t.lat) < 1e-6 && Math.abs(e.lng - t.lng) < 1
|
|
|
28331
28497
|
});
|
|
28332
28498
|
//#endregion
|
|
28333
28499
|
//#region src/SelectTicker.tsx
|
|
28334
|
-
function
|
|
28335
|
-
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);
|
|
28336
28502
|
s(() => {
|
|
28337
28503
|
var e, n;
|
|
28338
28504
|
let r = a.current;
|
|
@@ -28393,12 +28559,12 @@ function If({ children: e, speed: t = 28, className: n, ...r }) {
|
|
|
28393
28559
|
}
|
|
28394
28560
|
//#endregion
|
|
28395
28561
|
//#region src/SelectPareto.tsx
|
|
28396
|
-
function
|
|
28562
|
+
function Vf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
28397
28563
|
var a;
|
|
28398
|
-
let { ref: o, width: s } =
|
|
28399
|
-
...
|
|
28564
|
+
let { ref: o, width: s } = sd(t), l = Q(), u = c(), [d, f] = p(null), m = {
|
|
28565
|
+
...Sd,
|
|
28400
28566
|
right: 44
|
|
28401
|
-
}, 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);
|
|
28402
28568
|
return /* @__PURE__ */ v("div", {
|
|
28403
28569
|
...i,
|
|
28404
28570
|
className: `select-chart-wrap${r ? " " + r : ""}`,
|
|
@@ -28427,7 +28593,7 @@ function Lf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28427
28593
|
stopOpacity: .55
|
|
28428
28594
|
})]
|
|
28429
28595
|
}) }),
|
|
28430
|
-
|
|
28596
|
+
pd(w).map((e, t) => /* @__PURE__ */ v("g", { children: [/* @__PURE__ */ _("line", {
|
|
28431
28597
|
x1: m.left,
|
|
28432
28598
|
x2: s - m.right,
|
|
28433
28599
|
y1: O(e),
|
|
@@ -28491,7 +28657,7 @@ function Lf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28491
28657
|
}, t);
|
|
28492
28658
|
}),
|
|
28493
28659
|
/* @__PURE__ */ _("path", {
|
|
28494
|
-
d:
|
|
28660
|
+
d: gd(j),
|
|
28495
28661
|
fill: "none",
|
|
28496
28662
|
stroke: N,
|
|
28497
28663
|
strokeWidth: 2,
|
|
@@ -28519,7 +28685,7 @@ function Lf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28519
28685
|
}
|
|
28520
28686
|
//#endregion
|
|
28521
28687
|
//#region src/SelectWaffle.tsx
|
|
28522
|
-
var
|
|
28688
|
+
var Hf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, className: i, ...a }, o) {
|
|
28523
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) => ({
|
|
28524
28690
|
i: t,
|
|
28525
28691
|
frac: e - u[t]
|
|
@@ -28568,8 +28734,8 @@ var Rf = r(function({ segments: e, cols: t = 10, rows: n = 10, format: r = Z, cl
|
|
|
28568
28734
|
});
|
|
28569
28735
|
//#endregion
|
|
28570
28736
|
//#region src/SelectPyramid.tsx
|
|
28571
|
-
function
|
|
28572
|
-
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);
|
|
28573
28739
|
return /* @__PURE__ */ v("div", {
|
|
28574
28740
|
...l,
|
|
28575
28741
|
className: `select-chart-wrap${c ? " " + c : ""}`,
|
|
@@ -28676,8 +28842,8 @@ function zf({ data: e, leftLabel: t = "Esquerda", rightLabel: n = "Direita", hei
|
|
|
28676
28842
|
}
|
|
28677
28843
|
//#endregion
|
|
28678
28844
|
//#region src/SelectBump.tsx
|
|
28679
|
-
function
|
|
28680
|
-
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 = {
|
|
28681
28847
|
top: 16,
|
|
28682
28848
|
right: 78,
|
|
28683
28849
|
bottom: 28,
|
|
@@ -28713,7 +28879,7 @@ function Bf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28713
28879
|
style: { opacity: l === null || l === n ? 1 : .22 },
|
|
28714
28880
|
children: [
|
|
28715
28881
|
/* @__PURE__ */ _("path", {
|
|
28716
|
-
d:
|
|
28882
|
+
d: gd(a),
|
|
28717
28883
|
fill: "none",
|
|
28718
28884
|
stroke: i,
|
|
28719
28885
|
strokeWidth: l === n ? 3.5 : 2.5,
|
|
@@ -28761,8 +28927,8 @@ function Bf({ series: e, labels: t, height: n = 240, format: r = Z, className: i
|
|
|
28761
28927
|
}
|
|
28762
28928
|
//#endregion
|
|
28763
28929
|
//#region src/SelectParallel.tsx
|
|
28764
|
-
function
|
|
28765
|
-
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 = {
|
|
28766
28932
|
top: 30,
|
|
28767
28933
|
right: 28,
|
|
28768
28934
|
bottom: 26,
|
|
@@ -28853,25 +29019,25 @@ function Vf({ axes: e, data: t, height: n = 260, format: r = Z, className: i, ..
|
|
|
28853
29019
|
}
|
|
28854
29020
|
//#endregion
|
|
28855
29021
|
//#region src/SelectIcicle.tsx
|
|
28856
|
-
function
|
|
28857
|
-
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;
|
|
28858
29024
|
}
|
|
28859
|
-
function
|
|
28860
|
-
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)));
|
|
28861
29027
|
}
|
|
28862
|
-
function
|
|
28863
|
-
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) => {
|
|
28864
29030
|
if (f.push({
|
|
28865
29031
|
node: e,
|
|
28866
29032
|
x0: t,
|
|
28867
29033
|
x1: n,
|
|
28868
29034
|
depth: r,
|
|
28869
29035
|
color: e.color ?? X(i),
|
|
28870
|
-
value:
|
|
29036
|
+
value: Kf(e)
|
|
28871
29037
|
}), e.children && e.children.length) {
|
|
28872
|
-
let a = e.children.reduce((e, t) => e +
|
|
29038
|
+
let a = e.children.reduce((e, t) => e + Kf(t), 0) || 1, o = t;
|
|
28873
29039
|
e.children.forEach((e, s) => {
|
|
28874
|
-
let c = (n - t) *
|
|
29040
|
+
let c = (n - t) * Kf(e) / a;
|
|
28875
29041
|
m(e, o, o + c, r + 1, r === 0 ? s : i), o += c;
|
|
28876
29042
|
});
|
|
28877
29043
|
}
|
|
@@ -28932,8 +29098,8 @@ function Wf({ data: e, height: t = 240, format: n = Z, className: r, ...i }) {
|
|
|
28932
29098
|
}
|
|
28933
29099
|
//#endregion
|
|
28934
29100
|
//#region src/SelectTree.tsx
|
|
28935
|
-
function
|
|
28936
|
-
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 = {
|
|
28937
29103
|
top: 14,
|
|
28938
29104
|
right: 96,
|
|
28939
29105
|
bottom: 14,
|
|
@@ -29010,7 +29176,7 @@ function Gf({ data: e, height: t = 260, className: n, ...r }) {
|
|
|
29010
29176
|
}
|
|
29011
29177
|
//#endregion
|
|
29012
29178
|
//#region src/SelectVenn.tsx
|
|
29013
|
-
var
|
|
29179
|
+
var Xf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
29014
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]] : [
|
|
29015
29181
|
[o, s - l * .5],
|
|
29016
29182
|
[o - l * .5, s + l * .36],
|
|
@@ -29075,7 +29241,7 @@ var Kf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
29075
29241
|
}, t))
|
|
29076
29242
|
})]
|
|
29077
29243
|
});
|
|
29078
|
-
}),
|
|
29244
|
+
}), Zf = r(function({ data: e, size: t = 260, format: n = Z, className: r, ...i }, a) {
|
|
29079
29245
|
let o = Q(), [s, c] = p(null), l = Math.max(1, ...e.map((e) => e.value)), u = e.map((e, t) => ({
|
|
29080
29246
|
d: e,
|
|
29081
29247
|
i: t,
|
|
@@ -29178,8 +29344,8 @@ var Kf = r(function({ sets: e, size: t = 240, className: n, ...r }, i) {
|
|
|
29178
29344
|
});
|
|
29179
29345
|
//#endregion
|
|
29180
29346
|
//#region src/SelectNetwork.tsx
|
|
29181
|
-
function
|
|
29182
|
-
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(() => {
|
|
29183
29349
|
let r = s || n, i = n, a = e.length, o = /* @__PURE__ */ new Map();
|
|
29184
29350
|
if (!a) return o;
|
|
29185
29351
|
let c = e.map((e, t) => ({
|
|
@@ -29292,8 +29458,8 @@ function Jf({ nodes: e, links: t, height: n = 300, format: r = Z, className: i,
|
|
|
29292
29458
|
}
|
|
29293
29459
|
//#endregion
|
|
29294
29460
|
//#region src/SelectSearchMenu.tsx
|
|
29295
|
-
var
|
|
29296
|
-
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 }) {
|
|
29297
29463
|
let d = f(null);
|
|
29298
29464
|
return s(() => {
|
|
29299
29465
|
if (!o) return;
|
|
@@ -29309,7 +29475,7 @@ function Xf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
29309
29475
|
onKeyDown: (e) => {
|
|
29310
29476
|
let t = d.current;
|
|
29311
29477
|
if (!t) return;
|
|
29312
|
-
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);
|
|
29313
29479
|
if (e.key === "ArrowDown") {
|
|
29314
29480
|
var a;
|
|
29315
29481
|
if (r.length === 0) return;
|
|
@@ -29340,7 +29506,7 @@ function Xf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
29340
29506
|
className: "select-combobox__empty",
|
|
29341
29507
|
role: "status",
|
|
29342
29508
|
children: r
|
|
29343
|
-
}) : /* @__PURE__ */ _(
|
|
29509
|
+
}) : /* @__PURE__ */ _(tp, {
|
|
29344
29510
|
maxHeight: l,
|
|
29345
29511
|
children: u
|
|
29346
29512
|
}),
|
|
@@ -29351,7 +29517,7 @@ function Xf({ search: e, onSearchChange: t, searchPlaceholder: n = "Buscar…",
|
|
|
29351
29517
|
]
|
|
29352
29518
|
});
|
|
29353
29519
|
}
|
|
29354
|
-
function
|
|
29520
|
+
function tp({ children: e, maxHeight: t }) {
|
|
29355
29521
|
let n = sr({
|
|
29356
29522
|
selector: ".select-combobox__option",
|
|
29357
29523
|
y: 6,
|
|
@@ -29366,7 +29532,7 @@ function Zf({ children: e, maxHeight: t }) {
|
|
|
29366
29532
|
children: e
|
|
29367
29533
|
});
|
|
29368
29534
|
}
|
|
29369
|
-
function
|
|
29535
|
+
function np({ label: e, children: t }) {
|
|
29370
29536
|
return (Array.isArray(t) ? t.some((e) => e != null && e !== !1) : t != null && t !== !1) ? /* @__PURE__ */ v("div", {
|
|
29371
29537
|
role: "group",
|
|
29372
29538
|
className: "select-searchmenu__group",
|
|
@@ -29378,7 +29544,7 @@ function Qf({ label: e, children: t }) {
|
|
|
29378
29544
|
}), t]
|
|
29379
29545
|
}) : null;
|
|
29380
29546
|
}
|
|
29381
|
-
function
|
|
29547
|
+
function rp({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i = !1, onSelect: a }) {
|
|
29382
29548
|
return /* @__PURE__ */ v("button", {
|
|
29383
29549
|
type: "button",
|
|
29384
29550
|
role: "option",
|
|
@@ -29411,14 +29577,14 @@ function $f({ label: e, secondary: t, trailing: n, selected: r = !1, disabled: i
|
|
|
29411
29577
|
}
|
|
29412
29578
|
//#endregion
|
|
29413
29579
|
//#region src/SelectKbd.tsx
|
|
29414
|
-
var
|
|
29580
|
+
var ip = r(function({ children: e, className: t, ...n }, r) {
|
|
29415
29581
|
return /* @__PURE__ */ _("kbd", {
|
|
29416
29582
|
ref: r,
|
|
29417
29583
|
...n,
|
|
29418
29584
|
className: `select-kbd${t ? " " + t : ""}`,
|
|
29419
29585
|
children: e
|
|
29420
29586
|
});
|
|
29421
|
-
}),
|
|
29587
|
+
}), ap = [
|
|
29422
29588
|
{
|
|
29423
29589
|
value: "light",
|
|
29424
29590
|
label: "Claro",
|
|
@@ -29435,15 +29601,15 @@ var ep = r(function({ children: e, className: t, ...n }, r) {
|
|
|
29435
29601
|
icon: /* @__PURE__ */ _(je, {})
|
|
29436
29602
|
}
|
|
29437
29603
|
];
|
|
29438
|
-
function
|
|
29604
|
+
function op(e) {
|
|
29439
29605
|
if (e === "system") {
|
|
29440
29606
|
var t, n;
|
|
29441
29607
|
return (t = (n = window).matchMedia) != null && t.call(n, "(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
29442
29608
|
}
|
|
29443
29609
|
return e;
|
|
29444
29610
|
}
|
|
29445
|
-
function
|
|
29446
|
-
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];
|
|
29447
29613
|
return s(() => {
|
|
29448
29614
|
if (!i) return;
|
|
29449
29615
|
let e = (e) => {
|
|
@@ -29463,7 +29629,7 @@ function rp({ value: e, onChange: t, className: n, ...r }) {
|
|
|
29463
29629
|
})
|
|
29464
29630
|
}), i && /* @__PURE__ */ _("div", {
|
|
29465
29631
|
className: "select-themeswitcher__popover",
|
|
29466
|
-
children: /* @__PURE__ */ _(Xa, { children:
|
|
29632
|
+
children: /* @__PURE__ */ _(Xa, { children: ap.map((n) => /* @__PURE__ */ _(Qa, {
|
|
29467
29633
|
icon: n.icon,
|
|
29468
29634
|
active: n.value === e,
|
|
29469
29635
|
trailing: n.value === e ? /* @__PURE__ */ _(Ue, {}) : null,
|
|
@@ -29477,8 +29643,8 @@ function rp({ value: e, onChange: t, className: n, ...r }) {
|
|
|
29477
29643
|
}
|
|
29478
29644
|
//#endregion
|
|
29479
29645
|
//#region src/SelectDetail.tsx
|
|
29480
|
-
var
|
|
29481
|
-
function
|
|
29646
|
+
var cp = n(!1);
|
|
29647
|
+
function lp({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 }) {
|
|
29482
29648
|
let i = sr({
|
|
29483
29649
|
selector: ".select-detail",
|
|
29484
29650
|
y: 8,
|
|
@@ -29486,7 +29652,7 @@ function ap({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
29486
29652
|
stagger: .05,
|
|
29487
29653
|
scroll: !0
|
|
29488
29654
|
});
|
|
29489
|
-
return /* @__PURE__ */ _(
|
|
29655
|
+
return /* @__PURE__ */ _(cp.Provider, {
|
|
29490
29656
|
value: r,
|
|
29491
29657
|
children: /* @__PURE__ */ _("div", {
|
|
29492
29658
|
className: `select-detaillist${t ? " select-detaillist--stacked" : ""}${n ? " select-detaillist--compact" : ""}`,
|
|
@@ -29495,8 +29661,8 @@ function ap({ children: e, stacked: t = !1, compact: n = !1, loading: r = !1 })
|
|
|
29495
29661
|
})
|
|
29496
29662
|
});
|
|
29497
29663
|
}
|
|
29498
|
-
var
|
|
29499
|
-
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;
|
|
29500
29666
|
return /* @__PURE__ */ v("div", {
|
|
29501
29667
|
ref: c,
|
|
29502
29668
|
...s,
|
|
@@ -29516,7 +29682,7 @@ var op = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
29516
29682
|
})
|
|
29517
29683
|
]
|
|
29518
29684
|
});
|
|
29519
|
-
}),
|
|
29685
|
+
}), dp = r(function({ steps: e, current: t, onSelect: n, orientation: r = "horizontal", connected: i = !1, className: a, ...o }, s) {
|
|
29520
29686
|
let c = r === "vertical";
|
|
29521
29687
|
return /* @__PURE__ */ _("ol", {
|
|
29522
29688
|
ref: s,
|
|
@@ -29559,7 +29725,7 @@ var op = r(function({ label: e, children: t, action: n, align: r = "center", loa
|
|
|
29559
29725
|
});
|
|
29560
29726
|
//#endregion
|
|
29561
29727
|
//#region src/SelectSetupGuide.tsx
|
|
29562
|
-
function
|
|
29728
|
+
function fp({ status: e }) {
|
|
29563
29729
|
return /* @__PURE__ */ _("span", {
|
|
29564
29730
|
className: `select-setupguide__icon select-setupguide__icon--${e}`,
|
|
29565
29731
|
"aria-hidden": "true",
|
|
@@ -29578,7 +29744,7 @@ function cp({ status: e }) {
|
|
|
29578
29744
|
})
|
|
29579
29745
|
});
|
|
29580
29746
|
}
|
|
29581
|
-
var
|
|
29747
|
+
var pp = /* @__PURE__ */ _("svg", {
|
|
29582
29748
|
viewBox: "0 0 20 20",
|
|
29583
29749
|
width: "16",
|
|
29584
29750
|
height: "16",
|
|
@@ -29590,7 +29756,7 @@ var lp = /* @__PURE__ */ _("svg", {
|
|
|
29590
29756
|
"aria-hidden": "true",
|
|
29591
29757
|
children: /* @__PURE__ */ _("path", { d: "M8 5l5 5-5 5" })
|
|
29592
29758
|
});
|
|
29593
|
-
function
|
|
29759
|
+
function mp({ group: e, justDone: t }) {
|
|
29594
29760
|
let [n, r] = p(!!(e.collapsible && e.defaultCollapsed)), i = !e.collapsible || !n;
|
|
29595
29761
|
return /* @__PURE__ */ v("div", {
|
|
29596
29762
|
className: `select-setupguide__group${i ? "" : " is-collapsed"}`,
|
|
@@ -29599,7 +29765,7 @@ function up({ group: e, justDone: t }) {
|
|
|
29599
29765
|
className: "select-setupguide__grouptitle select-setupguide__grouptoggle",
|
|
29600
29766
|
"aria-expanded": i,
|
|
29601
29767
|
onClick: () => r((e) => !e),
|
|
29602
|
-
children: [/* @__PURE__ */ _("span", { children: e.title }),
|
|
29768
|
+
children: [/* @__PURE__ */ _("span", { children: e.title }), pp]
|
|
29603
29769
|
}) : /* @__PURE__ */ _("div", {
|
|
29604
29770
|
className: "select-setupguide__grouptitle",
|
|
29605
29771
|
children: e.title
|
|
@@ -29614,7 +29780,7 @@ function up({ group: e, justDone: t }) {
|
|
|
29614
29780
|
children: e.steps.map((e) => /* @__PURE__ */ v("li", {
|
|
29615
29781
|
className: `select-setupguide__step is-${e.status}${e.onSelect ? " is-link" : ""}${t.has(e.id) ? " is-just-done" : ""}`,
|
|
29616
29782
|
children: [
|
|
29617
|
-
/* @__PURE__ */ _(
|
|
29783
|
+
/* @__PURE__ */ _(fp, { status: e.status }),
|
|
29618
29784
|
/* @__PURE__ */ v("span", {
|
|
29619
29785
|
className: "select-setupguide__text",
|
|
29620
29786
|
children: [e.onSelect ? /* @__PURE__ */ v("button", {
|
|
@@ -29623,13 +29789,13 @@ function up({ group: e, justDone: t }) {
|
|
|
29623
29789
|
onClick: e.onSelect,
|
|
29624
29790
|
children: [e.title, /* @__PURE__ */ v("span", {
|
|
29625
29791
|
className: "select-setupguide__sr",
|
|
29626
|
-
children: [" — ",
|
|
29792
|
+
children: [" — ", hp[e.status]]
|
|
29627
29793
|
})]
|
|
29628
29794
|
}) : /* @__PURE__ */ v("span", {
|
|
29629
29795
|
className: "select-setupguide__steptitle",
|
|
29630
29796
|
children: [e.title, /* @__PURE__ */ v("span", {
|
|
29631
29797
|
className: "select-setupguide__sr",
|
|
29632
|
-
children: [" — ",
|
|
29798
|
+
children: [" — ", hp[e.status]]
|
|
29633
29799
|
})]
|
|
29634
29800
|
}), e.description && /* @__PURE__ */ _("span", {
|
|
29635
29801
|
className: "select-setupguide__stepdesc",
|
|
@@ -29641,7 +29807,7 @@ function up({ group: e, justDone: t }) {
|
|
|
29641
29807
|
children: e.trailing
|
|
29642
29808
|
}) : e.onSelect && e.status !== "done" ? /* @__PURE__ */ _("span", {
|
|
29643
29809
|
className: "select-setupguide__chevron",
|
|
29644
|
-
children:
|
|
29810
|
+
children: pp
|
|
29645
29811
|
}) : null
|
|
29646
29812
|
]
|
|
29647
29813
|
}, e.id))
|
|
@@ -29649,13 +29815,13 @@ function up({ group: e, justDone: t }) {
|
|
|
29649
29815
|
})]
|
|
29650
29816
|
});
|
|
29651
29817
|
}
|
|
29652
|
-
var
|
|
29818
|
+
var hp = {
|
|
29653
29819
|
done: "feito",
|
|
29654
29820
|
todo: "a fazer",
|
|
29655
29821
|
next: "próximo passo",
|
|
29656
29822
|
skipped: "pulado",
|
|
29657
29823
|
waiting: "aguardando"
|
|
29658
|
-
},
|
|
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) {
|
|
29659
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);
|
|
29660
29826
|
if (h.current) for (let e of y) e.status === "done" && h.current.get(e.id) !== "done" && g.add(e.id);
|
|
29661
29827
|
return s(() => {
|
|
@@ -29713,7 +29879,7 @@ var dp = {
|
|
|
29713
29879
|
children: i
|
|
29714
29880
|
}), /* @__PURE__ */ _("div", {
|
|
29715
29881
|
className: "select-setupguide__steps",
|
|
29716
|
-
children: a.map((e, t) => /* @__PURE__ */ _(
|
|
29882
|
+
children: a.map((e, t) => /* @__PURE__ */ _(mp, {
|
|
29717
29883
|
group: e,
|
|
29718
29884
|
justDone: g
|
|
29719
29885
|
}, t))
|
|
@@ -29722,7 +29888,7 @@ var dp = {
|
|
|
29722
29888
|
})]
|
|
29723
29889
|
});
|
|
29724
29890
|
});
|
|
29725
|
-
function
|
|
29891
|
+
function _p({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
29726
29892
|
return /* @__PURE__ */ v("div", {
|
|
29727
29893
|
className: "select-setupnext",
|
|
29728
29894
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -29749,84 +29915,84 @@ function pp({ eyebrow: e, title: t, children: n, actions: r }) {
|
|
|
29749
29915
|
}
|
|
29750
29916
|
//#endregion
|
|
29751
29917
|
//#region src/SelectTour.tsx
|
|
29752
|
-
var
|
|
29753
|
-
function
|
|
29918
|
+
var vp = 6, yp = 14, bp = 8, xp = 640;
|
|
29919
|
+
function Sp(e) {
|
|
29754
29920
|
let t = document.querySelector(e);
|
|
29755
29921
|
if (!t) return null;
|
|
29756
29922
|
let n = t.getBoundingClientRect();
|
|
29757
29923
|
if (n.width === 0 && n.height === 0) return null;
|
|
29758
29924
|
let r = Math.min(parseFloat(getComputedStyle(t).borderTopLeftRadius) || 0, Math.min(n.width, n.height) / 2);
|
|
29759
29925
|
return {
|
|
29760
|
-
top: n.top -
|
|
29761
|
-
left: n.left -
|
|
29926
|
+
top: n.top - vp,
|
|
29927
|
+
left: n.left - vp,
|
|
29762
29928
|
width: n.width + 12,
|
|
29763
29929
|
height: n.height + 12,
|
|
29764
|
-
radius: r +
|
|
29930
|
+
radius: r + vp
|
|
29765
29931
|
};
|
|
29766
29932
|
}
|
|
29767
|
-
var
|
|
29768
|
-
function
|
|
29769
|
-
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 {
|
|
29770
29936
|
side: "sheet",
|
|
29771
|
-
left:
|
|
29772
|
-
top: e.top + e.height / 2 > i / 2 ?
|
|
29937
|
+
left: bp,
|
|
29938
|
+
top: e.top + e.height / 2 > i / 2 ? bp : i - n - bp
|
|
29773
29939
|
};
|
|
29774
|
-
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 = [
|
|
29775
29941
|
{
|
|
29776
29942
|
side: "right",
|
|
29777
|
-
left: e.left + e.width +
|
|
29943
|
+
left: e.left + e.width + yp,
|
|
29778
29944
|
top: l,
|
|
29779
29945
|
arrow: a - l
|
|
29780
29946
|
},
|
|
29781
29947
|
{
|
|
29782
29948
|
side: "left",
|
|
29783
|
-
left: e.left -
|
|
29949
|
+
left: e.left - yp - t,
|
|
29784
29950
|
top: l,
|
|
29785
29951
|
arrow: a - l
|
|
29786
29952
|
},
|
|
29787
29953
|
{
|
|
29788
29954
|
side: "bottom",
|
|
29789
29955
|
left: u,
|
|
29790
|
-
top: e.top + e.height +
|
|
29956
|
+
top: e.top + e.height + yp,
|
|
29791
29957
|
arrow: o - u
|
|
29792
29958
|
},
|
|
29793
29959
|
{
|
|
29794
29960
|
side: "top",
|
|
29795
29961
|
left: u,
|
|
29796
|
-
top: e.top -
|
|
29962
|
+
top: e.top - yp - n,
|
|
29797
29963
|
arrow: o - u
|
|
29798
29964
|
}
|
|
29799
29965
|
];
|
|
29800
29966
|
for (let r of d) {
|
|
29801
29967
|
let o = r.side === "right" || r.side === "left";
|
|
29802
|
-
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 {
|
|
29803
29969
|
...r,
|
|
29804
|
-
arrow:
|
|
29970
|
+
arrow: Cp(r.arrow ?? 0, 16, (o ? n : t) - 16)
|
|
29805
29971
|
};
|
|
29806
29972
|
}
|
|
29807
29973
|
return {
|
|
29808
29974
|
side: "sheet",
|
|
29809
29975
|
left: u,
|
|
29810
|
-
top: i - n -
|
|
29976
|
+
top: i - n - bp
|
|
29811
29977
|
};
|
|
29812
29978
|
}
|
|
29813
|
-
function
|
|
29979
|
+
function Tp(e) {
|
|
29814
29980
|
let t = document.querySelector(e);
|
|
29815
29981
|
if (!t) return !1;
|
|
29816
29982
|
let n = t.getBoundingClientRect();
|
|
29817
29983
|
return n.width === 0 && n.height === 0 || n.right <= 0 || n.left >= window.innerWidth ? !1 : getComputedStyle(t).visibility !== "hidden";
|
|
29818
29984
|
}
|
|
29819
|
-
function
|
|
29820
|
-
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);
|
|
29821
29987
|
s(() => {
|
|
29822
29988
|
e && l(0);
|
|
29823
29989
|
}, [e]);
|
|
29824
29990
|
let C = o[c], w = c === o.length - 1, T = a(() => {
|
|
29825
29991
|
if (!C) return;
|
|
29826
|
-
let e =
|
|
29992
|
+
let e = Sp(C.target);
|
|
29827
29993
|
h(e);
|
|
29828
29994
|
let t = x.current;
|
|
29829
|
-
e && t && b(
|
|
29995
|
+
e && t && b(wp(e, t.offsetWidth, t.offsetHeight, window.innerWidth, window.innerHeight));
|
|
29830
29996
|
}, [C]);
|
|
29831
29997
|
return u(() => {
|
|
29832
29998
|
var t, n;
|
|
@@ -29950,7 +30116,7 @@ function Sp({ open: e, steps: t, onClose: n, labels: r = {}, theme: i = "light"
|
|
|
29950
30116
|
}
|
|
29951
30117
|
//#endregion
|
|
29952
30118
|
//#region src/SelectPlanCard.tsx
|
|
29953
|
-
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) {
|
|
29954
30120
|
return /* @__PURE__ */ v("div", {
|
|
29955
30121
|
ref: d,
|
|
29956
30122
|
...u,
|
|
@@ -30005,7 +30171,7 @@ var Cp = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
30005
30171
|
})]
|
|
30006
30172
|
})]
|
|
30007
30173
|
});
|
|
30008
|
-
}),
|
|
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) {
|
|
30009
30175
|
return /* @__PURE__ */ v("div", {
|
|
30010
30176
|
ref: u,
|
|
30011
30177
|
...l,
|
|
@@ -30041,7 +30207,7 @@ var Cp = r(function({ name: e, price: t, priceSuffix: n, headerAction: r, summar
|
|
|
30041
30207
|
]
|
|
30042
30208
|
});
|
|
30043
30209
|
});
|
|
30044
|
-
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 }) {
|
|
30045
30211
|
let l = /* @__PURE__ */ v(g, { children: [
|
|
30046
30212
|
e && /* @__PURE__ */ _("span", {
|
|
30047
30213
|
className: `select-listrow__media${t === "auto" ? " select-listrow__media--auto" : ""}`,
|
|
@@ -30079,7 +30245,7 @@ function Tp({ media: e, mediaSize: t = "icon", title: n, secondary: r, action: i
|
|
|
30079
30245
|
children: l
|
|
30080
30246
|
});
|
|
30081
30247
|
}
|
|
30082
|
-
function
|
|
30248
|
+
function Ap({ children: e }) {
|
|
30083
30249
|
return /* @__PURE__ */ _("div", {
|
|
30084
30250
|
className: "select-listlabel",
|
|
30085
30251
|
children: e
|
|
@@ -30087,7 +30253,7 @@ function Ep({ children: e }) {
|
|
|
30087
30253
|
}
|
|
30088
30254
|
//#endregion
|
|
30089
30255
|
//#region src/SelectThumbnail.tsx
|
|
30090
|
-
var
|
|
30256
|
+
var jp = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i, ...a }, o) {
|
|
30091
30257
|
let [c, l] = p(!1);
|
|
30092
30258
|
s(() => l(!1), [e]);
|
|
30093
30259
|
let u = /* @__PURE__ */ _("span", {
|
|
@@ -30121,7 +30287,7 @@ var Dp = r(function({ src: e, alt: t = "", size: n = 40, count: r, className: i,
|
|
|
30121
30287
|
});
|
|
30122
30288
|
//#endregion
|
|
30123
30289
|
//#region src/SelectImageZoomModal.tsx
|
|
30124
|
-
function
|
|
30290
|
+
function Mp({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
30125
30291
|
return /* @__PURE__ */ _(Dc, {
|
|
30126
30292
|
open: e,
|
|
30127
30293
|
onClose: t,
|
|
@@ -30140,7 +30306,7 @@ function Op({ open: e, onClose: t, src: n, alt: r, title: i }) {
|
|
|
30140
30306
|
}
|
|
30141
30307
|
//#endregion
|
|
30142
30308
|
//#region src/SelectZoomThumbnail.tsx
|
|
30143
|
-
function
|
|
30309
|
+
function Np({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
30144
30310
|
let [a, o] = p(!1);
|
|
30145
30311
|
return e ? /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("button", {
|
|
30146
30312
|
type: "button",
|
|
@@ -30153,19 +30319,19 @@ function kp({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
30153
30319
|
cursor: "zoom-in",
|
|
30154
30320
|
display: "inline-flex"
|
|
30155
30321
|
},
|
|
30156
|
-
children: /* @__PURE__ */ _(
|
|
30322
|
+
children: /* @__PURE__ */ _(jp, {
|
|
30157
30323
|
src: e,
|
|
30158
30324
|
size: n,
|
|
30159
30325
|
alt: t,
|
|
30160
30326
|
count: i
|
|
30161
30327
|
})
|
|
30162
|
-
}), a && /* @__PURE__ */ _(
|
|
30328
|
+
}), a && /* @__PURE__ */ _(Mp, {
|
|
30163
30329
|
open: !0,
|
|
30164
30330
|
onClose: () => o(!1),
|
|
30165
30331
|
src: e,
|
|
30166
30332
|
alt: t,
|
|
30167
30333
|
title: r ?? t
|
|
30168
|
-
})] }) : /* @__PURE__ */ _(
|
|
30334
|
+
})] }) : /* @__PURE__ */ _(jp, {
|
|
30169
30335
|
size: n,
|
|
30170
30336
|
alt: t,
|
|
30171
30337
|
count: i
|
|
@@ -30173,7 +30339,7 @@ function kp({ src: e, alt: t = "", size: n = 40, title: r, count: i }) {
|
|
|
30173
30339
|
}
|
|
30174
30340
|
//#endregion
|
|
30175
30341
|
//#region src/SelectMediaCell.tsx
|
|
30176
|
-
var
|
|
30342
|
+
var Pp = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a) {
|
|
30177
30343
|
return /* @__PURE__ */ v("span", {
|
|
30178
30344
|
ref: a,
|
|
30179
30345
|
...i,
|
|
@@ -30195,7 +30361,7 @@ var Ap = r(function({ media: e, title: t, secondary: n, className: r, ...i }, a)
|
|
|
30195
30361
|
});
|
|
30196
30362
|
//#endregion
|
|
30197
30363
|
//#region src/SelectOfflineModal.tsx
|
|
30198
|
-
function
|
|
30364
|
+
function Fp() {
|
|
30199
30365
|
let [e, t] = p(() => typeof navigator < "u" && navigator.onLine === !1);
|
|
30200
30366
|
return s(() => {
|
|
30201
30367
|
let e = () => t(!1), n = () => t(!0);
|
|
@@ -30218,7 +30384,7 @@ function jp() {
|
|
|
30218
30384
|
}
|
|
30219
30385
|
//#endregion
|
|
30220
30386
|
//#region src/SelectKeyValueEditor.tsx
|
|
30221
|
-
function
|
|
30387
|
+
function Ip(e) {
|
|
30222
30388
|
return Array.isArray(e) ? e.filter((e) => typeof e == "object" && !!e).map((e) => ({
|
|
30223
30389
|
name: String(e.name ?? e.key ?? ""),
|
|
30224
30390
|
value: e.value == null ? "" : String(e.value)
|
|
@@ -30227,8 +30393,8 @@ function Mp(e) {
|
|
|
30227
30393
|
value: t == null ? "" : String(t)
|
|
30228
30394
|
})) : [];
|
|
30229
30395
|
}
|
|
30230
|
-
var
|
|
30231
|
-
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 ? {
|
|
30232
30398
|
...t,
|
|
30233
30399
|
...n
|
|
30234
30400
|
} : t)), p = (e) => t(d.filter((t, n) => n !== e)), m = () => t([...d, {
|
|
@@ -30292,7 +30458,7 @@ var Np = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
30292
30458
|
})
|
|
30293
30459
|
]
|
|
30294
30460
|
});
|
|
30295
|
-
}),
|
|
30461
|
+
}), Rp = (e) => String(e).padStart(2, "0"), zp = {
|
|
30296
30462
|
"en-US": {
|
|
30297
30463
|
weekdays: [
|
|
30298
30464
|
"Su",
|
|
@@ -30351,34 +30517,34 @@ var Np = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
30351
30517
|
to: "Até",
|
|
30352
30518
|
cancel: "Cancelar",
|
|
30353
30519
|
apply: "Aplicar",
|
|
30354
|
-
formatDate: (e) => `${
|
|
30520
|
+
formatDate: (e) => `${Rp(e.getDate())} / ${Rp(e.getMonth() + 1)} / ${e.getFullYear()}`
|
|
30355
30521
|
}
|
|
30356
|
-
},
|
|
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) => {
|
|
30357
30523
|
let t = /* @__PURE__ */ new Date();
|
|
30358
30524
|
return {
|
|
30359
30525
|
from: /* @__PURE__ */ new Date(t.getTime() - e * 6e4),
|
|
30360
30526
|
to: t
|
|
30361
30527
|
};
|
|
30362
|
-
},
|
|
30528
|
+
}, Kp = [
|
|
30363
30529
|
{
|
|
30364
30530
|
id: "15m",
|
|
30365
30531
|
label: "Last 15 minutes",
|
|
30366
|
-
range: () =>
|
|
30532
|
+
range: () => Gp(15)
|
|
30367
30533
|
},
|
|
30368
30534
|
{
|
|
30369
30535
|
id: "1h",
|
|
30370
30536
|
label: "Last 1 hour",
|
|
30371
|
-
range: () =>
|
|
30537
|
+
range: () => Gp(60)
|
|
30372
30538
|
},
|
|
30373
30539
|
{
|
|
30374
30540
|
id: "3h",
|
|
30375
30541
|
label: "Last 3 hours",
|
|
30376
|
-
range: () =>
|
|
30542
|
+
range: () => Gp(180)
|
|
30377
30543
|
},
|
|
30378
30544
|
{
|
|
30379
30545
|
id: "24h",
|
|
30380
30546
|
label: "Last 24 hours",
|
|
30381
|
-
range: () =>
|
|
30547
|
+
range: () => Gp(1440)
|
|
30382
30548
|
},
|
|
30383
30549
|
{
|
|
30384
30550
|
id: "3d",
|
|
@@ -30394,78 +30560,78 @@ var Np = r(function({ pairs: e, onChange: t, keyPlaceholder: n = "Chave", valueP
|
|
|
30394
30560
|
id: "all",
|
|
30395
30561
|
label: "All",
|
|
30396
30562
|
range: () => ({
|
|
30397
|
-
from:
|
|
30398
|
-
to:
|
|
30563
|
+
from: Bp(/* @__PURE__ */ new Date()),
|
|
30564
|
+
to: Bp(/* @__PURE__ */ new Date())
|
|
30399
30565
|
})
|
|
30400
30566
|
}
|
|
30401
|
-
],
|
|
30402
|
-
let t =
|
|
30567
|
+
], qp = (e) => {
|
|
30568
|
+
let t = Bp(/* @__PURE__ */ new Date());
|
|
30403
30569
|
return {
|
|
30404
|
-
from:
|
|
30570
|
+
from: Hp(t, -e),
|
|
30405
30571
|
to: t
|
|
30406
30572
|
};
|
|
30407
|
-
},
|
|
30408
|
-
let t =
|
|
30573
|
+
}, Jp = (e) => {
|
|
30574
|
+
let t = Hp(Bp(/* @__PURE__ */ new Date()), -e);
|
|
30409
30575
|
return {
|
|
30410
30576
|
from: t,
|
|
30411
30577
|
to: t
|
|
30412
30578
|
};
|
|
30413
|
-
},
|
|
30579
|
+
}, Yp = [
|
|
30414
30580
|
{
|
|
30415
30581
|
id: "today",
|
|
30416
30582
|
label: "Hoje",
|
|
30417
|
-
range: () =>
|
|
30583
|
+
range: () => qp(0)
|
|
30418
30584
|
},
|
|
30419
30585
|
{
|
|
30420
30586
|
id: "yesterday",
|
|
30421
30587
|
label: "Ontem",
|
|
30422
|
-
range: () =>
|
|
30588
|
+
range: () => Jp(1)
|
|
30423
30589
|
},
|
|
30424
30590
|
{
|
|
30425
30591
|
id: "7d",
|
|
30426
30592
|
label: "Últimos 7 dias",
|
|
30427
|
-
range: () =>
|
|
30593
|
+
range: () => qp(6)
|
|
30428
30594
|
},
|
|
30429
30595
|
{
|
|
30430
30596
|
id: "10d",
|
|
30431
30597
|
label: "Últimos 10 dias",
|
|
30432
|
-
range: () =>
|
|
30598
|
+
range: () => qp(9)
|
|
30433
30599
|
},
|
|
30434
30600
|
{
|
|
30435
30601
|
id: "15d",
|
|
30436
30602
|
label: "Últimos 15 dias",
|
|
30437
|
-
range: () =>
|
|
30603
|
+
range: () => qp(14)
|
|
30438
30604
|
},
|
|
30439
30605
|
{
|
|
30440
30606
|
id: "20d",
|
|
30441
30607
|
label: "Últimos 20 dias",
|
|
30442
|
-
range: () =>
|
|
30608
|
+
range: () => qp(19)
|
|
30443
30609
|
},
|
|
30444
30610
|
{
|
|
30445
30611
|
id: "30d",
|
|
30446
30612
|
label: "Últimos 30 dias",
|
|
30447
|
-
range: () =>
|
|
30613
|
+
range: () => qp(29)
|
|
30448
30614
|
},
|
|
30449
30615
|
{
|
|
30450
30616
|
id: "90d",
|
|
30451
30617
|
label: "Últimos 90 dias",
|
|
30452
|
-
range: () =>
|
|
30618
|
+
range: () => qp(89)
|
|
30453
30619
|
}
|
|
30454
30620
|
];
|
|
30455
|
-
function
|
|
30621
|
+
function Xp(e) {
|
|
30456
30622
|
if (!e) return "—";
|
|
30457
30623
|
let t = e.getHours(), n = t < 12 ? "AM" : "PM";
|
|
30458
30624
|
return t = t % 12 || 12, `${t} : ${String(e.getMinutes()).padStart(2, "0")} ${n}`;
|
|
30459
30625
|
}
|
|
30460
|
-
var
|
|
30461
|
-
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 ?? {
|
|
30462
30628
|
from: m,
|
|
30463
30629
|
to: m
|
|
30464
|
-
}), [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", {
|
|
30465
30631
|
className: "select-datepicker__placeholder",
|
|
30466
30632
|
children: "— / — / ——"
|
|
30467
30633
|
}), O = (e) => {
|
|
30468
|
-
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) ? {
|
|
30469
30635
|
from: e,
|
|
30470
30636
|
to: null
|
|
30471
30637
|
} : {
|
|
@@ -30475,7 +30641,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30475
30641
|
}, k = (e) => {
|
|
30476
30642
|
if (e.disabled || !e.range) return;
|
|
30477
30643
|
let t = e.range();
|
|
30478
|
-
y(t), C(e.id), t.from && x(
|
|
30644
|
+
y(t), C(e.id), t.from && x(Vp(t.from));
|
|
30479
30645
|
}, A = i ? { "--select-dp-accent": `var(${i})` } : void 0;
|
|
30480
30646
|
return /* @__PURE__ */ _("div", {
|
|
30481
30647
|
ref: d,
|
|
@@ -30521,7 +30687,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30521
30687
|
}),
|
|
30522
30688
|
o && /* @__PURE__ */ _("span", {
|
|
30523
30689
|
className: "select-datepicker__pill select-datepicker__pill--time",
|
|
30524
|
-
children:
|
|
30690
|
+
children: Xp(g[e])
|
|
30525
30691
|
})
|
|
30526
30692
|
]
|
|
30527
30693
|
}, e))
|
|
@@ -30533,7 +30699,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30533
30699
|
type: "button",
|
|
30534
30700
|
className: "select-datepicker__nav",
|
|
30535
30701
|
"aria-label": a === "pt-BR" ? "Mês anterior" : "Previous month",
|
|
30536
|
-
onClick: () => x((e) =>
|
|
30702
|
+
onClick: () => x((e) => Up(e, -1)),
|
|
30537
30703
|
children: /* @__PURE__ */ _(q, {})
|
|
30538
30704
|
}),
|
|
30539
30705
|
/* @__PURE__ */ v("span", {
|
|
@@ -30548,7 +30714,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30548
30714
|
type: "button",
|
|
30549
30715
|
className: "select-datepicker__nav",
|
|
30550
30716
|
"aria-label": a === "pt-BR" ? "Próximo mês" : "Next month",
|
|
30551
|
-
onClick: () => x((e) =>
|
|
30717
|
+
onClick: () => x((e) => Up(e, 1)),
|
|
30552
30718
|
children: /* @__PURE__ */ _(K, {})
|
|
30553
30719
|
})
|
|
30554
30720
|
]
|
|
@@ -30560,7 +30726,7 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30560
30726
|
className: "select-datepicker__weekday",
|
|
30561
30727
|
children: e
|
|
30562
30728
|
}, t)), T.map((e) => {
|
|
30563
|
-
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" : "");
|
|
30564
30730
|
return /* @__PURE__ */ _("div", {
|
|
30565
30731
|
className: s,
|
|
30566
30732
|
children: /* @__PURE__ */ _("button", {
|
|
@@ -30591,17 +30757,17 @@ var qp = r(function({ value: e, presets: t = Hp, onApply: n, onCancel: r, accent
|
|
|
30591
30757
|
})]
|
|
30592
30758
|
})
|
|
30593
30759
|
});
|
|
30594
|
-
}),
|
|
30595
|
-
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) {
|
|
30596
30762
|
for (let r of t) {
|
|
30597
30763
|
var n;
|
|
30598
30764
|
let t = (n = r.range) == null ? void 0 : n.call(r);
|
|
30599
|
-
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;
|
|
30600
30766
|
}
|
|
30601
|
-
return
|
|
30767
|
+
return $p(e.start, e.end) ? em(e.start) : `${em(e.start)} – ${em(e.end)}`;
|
|
30602
30768
|
}
|
|
30603
|
-
function
|
|
30604
|
-
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());
|
|
30605
30771
|
return /* @__PURE__ */ _(mr, {
|
|
30606
30772
|
active: c,
|
|
30607
30773
|
onClose: () => l(!1),
|
|
@@ -30615,9 +30781,9 @@ function Qp({ value: e, onChange: t, presets: n = Gp, maxDate: r, placement: i =
|
|
|
30615
30781
|
icon: /* @__PURE__ */ _(at, {}),
|
|
30616
30782
|
trailingIcon: /* @__PURE__ */ _(J, {}),
|
|
30617
30783
|
onClick: () => l((e) => !e),
|
|
30618
|
-
children:
|
|
30784
|
+
children: tm(e, n)
|
|
30619
30785
|
}),
|
|
30620
|
-
children: /* @__PURE__ */ _(
|
|
30786
|
+
children: /* @__PURE__ */ _(Zp, {
|
|
30621
30787
|
embedded: !0,
|
|
30622
30788
|
locale: "pt-BR",
|
|
30623
30789
|
showTime: !1,
|
|
@@ -30630,8 +30796,8 @@ function Qp({ value: e, onChange: t, presets: n = Gp, maxDate: r, placement: i =
|
|
|
30630
30796
|
onCancel: () => l(!1),
|
|
30631
30797
|
onApply: (e) => {
|
|
30632
30798
|
e.from && t({
|
|
30633
|
-
start:
|
|
30634
|
-
end:
|
|
30799
|
+
start: Qp(e.from),
|
|
30800
|
+
end: Qp(e.to ?? e.from)
|
|
30635
30801
|
}), l(!1);
|
|
30636
30802
|
}
|
|
30637
30803
|
})
|
|
@@ -30639,7 +30805,7 @@ function Qp({ value: e, onChange: t, presets: n = Gp, maxDate: r, placement: i =
|
|
|
30639
30805
|
}
|
|
30640
30806
|
//#endregion
|
|
30641
30807
|
//#region src/SelectNumberField.tsx
|
|
30642
|
-
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) {
|
|
30643
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) => {
|
|
30644
30810
|
let t = o ? e.replace(/[^\d.,-]/g, "").replace(",", ".") : e.replace(/[^\d-]/g, "");
|
|
30645
30811
|
if (o && j(t), t === "" || t === "-" || t === ".") return n(null);
|
|
@@ -30717,7 +30883,7 @@ var $p = r(function({ label: e, value: t, onChange: n, min: r, max: i, step: a =
|
|
|
30717
30883
|
});
|
|
30718
30884
|
//#endregion
|
|
30719
30885
|
//#region src/SelectRepeatingFieldArray.tsx
|
|
30720
|
-
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 }) {
|
|
30721
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) => {
|
|
30722
30888
|
let i = n + r;
|
|
30723
30889
|
if (i < 0 || i >= e.length) return;
|
|
@@ -30812,7 +30978,7 @@ function em({ items: e, onChange: t, renderRow: n, newItem: r, addLabel: i = "Ad
|
|
|
30812
30978
|
}
|
|
30813
30979
|
//#endregion
|
|
30814
30980
|
//#region src/SelectBuilderLayout.tsx
|
|
30815
|
-
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 }) {
|
|
30816
30982
|
let d = x();
|
|
30817
30983
|
return /* @__PURE__ */ _(Aa, {
|
|
30818
30984
|
title: e,
|
|
@@ -30852,7 +31018,7 @@ function tm({ title: e, subtitle: t, backTo: n, onSave: r, saving: i = !1, saveL
|
|
|
30852
31018
|
}
|
|
30853
31019
|
//#endregion
|
|
30854
31020
|
//#region src/SelectBuilderWorkspace.tsx
|
|
30855
|
-
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 }) {
|
|
30856
31022
|
var L;
|
|
30857
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) => {
|
|
30858
31024
|
P === void 0 && te(e), F == null || F(e);
|
|
@@ -31112,10 +31278,10 @@ function nm({ title: e, subtitle: t, backTo: n, onBack: r, onSave: i, saving: a
|
|
|
31112
31278
|
}
|
|
31113
31279
|
//#endregion
|
|
31114
31280
|
//#region src/SelectFlowCanvas.tsx
|
|
31115
|
-
var
|
|
31116
|
-
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 }) {
|
|
31117
31283
|
let h = c().replace(/:/g, ""), [g, y] = p(s), b = o ?? g, x = (e) => {
|
|
31118
|
-
let t =
|
|
31284
|
+
let t = sm(Math.min(d, Math.max(u, e)));
|
|
31119
31285
|
o === void 0 && y(t), l == null || l(t);
|
|
31120
31286
|
}, S = `select-flow-arrow-${h}`, C = `select-flow-arrow-on-${h}`;
|
|
31121
31287
|
return /* @__PURE__ */ v("div", {
|
|
@@ -31231,7 +31397,7 @@ function im({ width: e, height: t, edges: n, labels: r = [], pluses: i = [], chi
|
|
|
31231
31397
|
})]
|
|
31232
31398
|
});
|
|
31233
31399
|
}
|
|
31234
|
-
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 }) {
|
|
31235
31401
|
let x = `${p ? " is-selected" : g ? " is-invalid" : m ? " is-on" : ""}${h ? " is-muted" : ""}`, S = {
|
|
31236
31402
|
left: e,
|
|
31237
31403
|
top: t,
|
|
@@ -31307,9 +31473,10 @@ function am({ x: e, y: t, width: n, height: r, shape: i = "card", tone: a = "neu
|
|
|
31307
31473
|
})]
|
|
31308
31474
|
});
|
|
31309
31475
|
}
|
|
31310
|
-
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 }) {
|
|
31477
|
+
let p = d !== void 0;
|
|
31311
31478
|
return /* @__PURE__ */ v("div", {
|
|
31312
|
-
className: "select-flowpage"
|
|
31479
|
+
className: `select-flowpage${p ? " select-flowpage--sheet" : ""}${p && d ? " is-inspecting" : ""}`,
|
|
31313
31480
|
children: [
|
|
31314
31481
|
/* @__PURE__ */ v("header", {
|
|
31315
31482
|
className: "select-flowpage__bar",
|
|
@@ -31355,13 +31522,28 @@ function om({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
31355
31522
|
}), /* @__PURE__ */ v("aside", {
|
|
31356
31523
|
className: "select-flowpage__inspector",
|
|
31357
31524
|
"aria-label": u,
|
|
31358
|
-
children: [
|
|
31359
|
-
|
|
31360
|
-
|
|
31361
|
-
|
|
31362
|
-
|
|
31363
|
-
|
|
31364
|
-
|
|
31525
|
+
children: [
|
|
31526
|
+
p && f && /* @__PURE__ */ v("button", {
|
|
31527
|
+
type: "button",
|
|
31528
|
+
className: "select-flowpage__sheetclose",
|
|
31529
|
+
onClick: f,
|
|
31530
|
+
children: [/* @__PURE__ */ _("span", {
|
|
31531
|
+
className: "select-flowpage__sheetgrip",
|
|
31532
|
+
"aria-hidden": "true"
|
|
31533
|
+
}), /* @__PURE__ */ v("span", {
|
|
31534
|
+
className: "select-flowpage__sheetlabel",
|
|
31535
|
+
children: [/* @__PURE__ */ _(de, {}), "Fechar"]
|
|
31536
|
+
})]
|
|
31537
|
+
}),
|
|
31538
|
+
c != null && /* @__PURE__ */ _("div", {
|
|
31539
|
+
className: "select-flowpage__inspectorhead",
|
|
31540
|
+
children: c
|
|
31541
|
+
}),
|
|
31542
|
+
/* @__PURE__ */ _("div", {
|
|
31543
|
+
className: "select-flowpage__inspectorbody",
|
|
31544
|
+
children: l
|
|
31545
|
+
})
|
|
31546
|
+
]
|
|
31365
31547
|
})]
|
|
31366
31548
|
})
|
|
31367
31549
|
]
|
|
@@ -31369,7 +31551,7 @@ function om({ title: e, subtitle: t, onBack: n, backLabel: r = "Voltar", toolbar
|
|
|
31369
31551
|
}
|
|
31370
31552
|
//#endregion
|
|
31371
31553
|
//#region src/SelectSwitchField.tsx
|
|
31372
|
-
var
|
|
31554
|
+
var dm = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint: i, help: a, className: o, ...s }, c) {
|
|
31373
31555
|
return /* @__PURE__ */ v("div", {
|
|
31374
31556
|
ref: c,
|
|
31375
31557
|
...s,
|
|
@@ -31397,7 +31579,7 @@ var sm = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
31397
31579
|
children: i
|
|
31398
31580
|
})]
|
|
31399
31581
|
});
|
|
31400
|
-
}),
|
|
31582
|
+
}), fm = [
|
|
31401
31583
|
"#212529",
|
|
31402
31584
|
"#495057",
|
|
31403
31585
|
"#868E96",
|
|
@@ -31414,13 +31596,13 @@ var sm = r(function({ label: e, checked: t, onChange: n, disabled: r = !1, hint:
|
|
|
31414
31596
|
"#DB2777",
|
|
31415
31597
|
"#9333EA",
|
|
31416
31598
|
"#6D28D9"
|
|
31417
|
-
],
|
|
31418
|
-
function
|
|
31419
|
-
let t =
|
|
31599
|
+
], pm = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
31600
|
+
function mm(e) {
|
|
31601
|
+
let t = pm.exec((e ?? "").trim());
|
|
31420
31602
|
return t ? `#${(t[1].length === 3 ? t[1].split("").map((e) => e + e).join("") : t[1]).toUpperCase()}` : null;
|
|
31421
31603
|
}
|
|
31422
|
-
function
|
|
31423
|
-
let t =
|
|
31604
|
+
function hm(e) {
|
|
31605
|
+
let t = mm(e);
|
|
31424
31606
|
if (!t) return 0;
|
|
31425
31607
|
let [n, r, i] = [
|
|
31426
31608
|
1,
|
|
@@ -31429,13 +31611,13 @@ function dm(e) {
|
|
|
31429
31611
|
].map((e) => parseInt(t.slice(e, e + 2), 16) / 255).map((e) => e <= .03928 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4);
|
|
31430
31612
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
31431
31613
|
}
|
|
31432
|
-
function
|
|
31433
|
-
let [n, r] = [
|
|
31614
|
+
function gm(e, t) {
|
|
31615
|
+
let [n, r] = [hm(e), hm(t)].sort((e, t) => t - e);
|
|
31434
31616
|
return (n + .05) / (r + .05);
|
|
31435
31617
|
}
|
|
31436
|
-
var
|
|
31437
|
-
function
|
|
31438
|
-
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] = [
|
|
31439
31621
|
1,
|
|
31440
31622
|
3,
|
|
31441
31623
|
5
|
|
@@ -31446,7 +31628,7 @@ function mm(e) {
|
|
|
31446
31628
|
v: a
|
|
31447
31629
|
};
|
|
31448
31630
|
}
|
|
31449
|
-
function
|
|
31631
|
+
function ym({ h: e, s: t, v: n }) {
|
|
31450
31632
|
let r = (r) => {
|
|
31451
31633
|
let i = (r + e / 60) % 6;
|
|
31452
31634
|
return n - n * t * Math.max(0, Math.min(i, 4 - i, 1));
|
|
@@ -31457,26 +31639,26 @@ function hm({ h: e, s: t, v: n }) {
|
|
|
31457
31639
|
r(1)
|
|
31458
31640
|
].map((e) => Math.round(e * 255).toString(16).padStart(2, "0")).join("").toUpperCase()}`;
|
|
31459
31641
|
}
|
|
31460
|
-
function
|
|
31461
|
-
let [n, r] = p(() =>
|
|
31642
|
+
function bm({ hex: e, onPick: t }) {
|
|
31643
|
+
let [n, r] = p(() => vm(e ?? "#1D4ED8")), i = f(n), a = (e) => {
|
|
31462
31644
|
i.current = e, r(e);
|
|
31463
31645
|
};
|
|
31464
31646
|
s(() => {
|
|
31465
|
-
if (!e ||
|
|
31466
|
-
let t =
|
|
31647
|
+
if (!e || ym(i.current) === e) return;
|
|
31648
|
+
let t = vm(e);
|
|
31467
31649
|
a(t.s === 0 || t.v === 0 ? {
|
|
31468
31650
|
...t,
|
|
31469
31651
|
h: i.current.h
|
|
31470
31652
|
} : t);
|
|
31471
31653
|
}, [e]);
|
|
31472
31654
|
let o = (e) => {
|
|
31473
|
-
a(e), t(
|
|
31655
|
+
a(e), t(ym(e));
|
|
31474
31656
|
}, c = (e, t, n) => {
|
|
31475
31657
|
var r;
|
|
31476
31658
|
(r = e.setPointerCapture) == null || r.call(e, t.pointerId);
|
|
31477
31659
|
let i = (t) => {
|
|
31478
31660
|
let r = e.getBoundingClientRect();
|
|
31479
|
-
n(
|
|
31661
|
+
n(_m((t.clientX - r.left) / (r.width || 1)), _m((t.clientY - r.top) / (r.height || 1)));
|
|
31480
31662
|
};
|
|
31481
31663
|
i(t);
|
|
31482
31664
|
let a = (e) => i(e), o = () => {
|
|
@@ -31486,20 +31668,20 @@ function gm({ hex: e, onPick: t }) {
|
|
|
31486
31668
|
}, l = (e) => {
|
|
31487
31669
|
let t = e.shiftKey ? .1 : .01, { h: n, s: r, v: a } = i.current, s = e.key === "ArrowLeft" ? {
|
|
31488
31670
|
h: n,
|
|
31489
|
-
s:
|
|
31671
|
+
s: _m(r - t),
|
|
31490
31672
|
v: a
|
|
31491
31673
|
} : e.key === "ArrowRight" ? {
|
|
31492
31674
|
h: n,
|
|
31493
|
-
s:
|
|
31675
|
+
s: _m(r + t),
|
|
31494
31676
|
v: a
|
|
31495
31677
|
} : e.key === "ArrowUp" ? {
|
|
31496
31678
|
h: n,
|
|
31497
31679
|
s: r,
|
|
31498
|
-
v:
|
|
31680
|
+
v: _m(a + t)
|
|
31499
31681
|
} : e.key === "ArrowDown" ? {
|
|
31500
31682
|
h: n,
|
|
31501
31683
|
s: r,
|
|
31502
|
-
v:
|
|
31684
|
+
v: _m(a - t)
|
|
31503
31685
|
} : null;
|
|
31504
31686
|
s && (e.preventDefault(), o(s));
|
|
31505
31687
|
}, u = (e) => {
|
|
@@ -31509,11 +31691,11 @@ function gm({ hex: e, onPick: t }) {
|
|
|
31509
31691
|
s: r,
|
|
31510
31692
|
v: a
|
|
31511
31693
|
}));
|
|
31512
|
-
}, d =
|
|
31694
|
+
}, d = ym({
|
|
31513
31695
|
h: n.h,
|
|
31514
31696
|
s: 1,
|
|
31515
31697
|
v: 1
|
|
31516
|
-
}), m =
|
|
31698
|
+
}), m = ym(n);
|
|
31517
31699
|
return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
|
|
31518
31700
|
className: "select-colorfield__sv",
|
|
31519
31701
|
style: { backgroundColor: d },
|
|
@@ -31557,24 +31739,24 @@ function gm({ hex: e, onPick: t }) {
|
|
|
31557
31739
|
})
|
|
31558
31740
|
})] });
|
|
31559
31741
|
}
|
|
31560
|
-
var
|
|
31561
|
-
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 }) {
|
|
31562
31744
|
let h = c(), y = m ?? `color-${h}`, [b, x] = p(!1), [S, C] = p(i ?? ""), [w, T] = p(null);
|
|
31563
31745
|
s(() => {
|
|
31564
31746
|
C(i ?? ""), T(null);
|
|
31565
31747
|
}, [i]);
|
|
31566
|
-
let E =
|
|
31748
|
+
let E = mm(i ?? ""), D = (e) => {
|
|
31567
31749
|
if (!e.trim()) {
|
|
31568
31750
|
u ? (T(null), a("")) : C(i ?? "");
|
|
31569
31751
|
return;
|
|
31570
31752
|
}
|
|
31571
|
-
let t =
|
|
31753
|
+
let t = mm(e);
|
|
31572
31754
|
if (!t) {
|
|
31573
31755
|
T("Use o formato #RRGGBB (ex.: #1D4ED8).");
|
|
31574
31756
|
return;
|
|
31575
31757
|
}
|
|
31576
31758
|
T(null), C(t), t !== E && a(t);
|
|
31577
|
-
}, 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;
|
|
31578
31760
|
return /* @__PURE__ */ v("div", {
|
|
31579
31761
|
className: `select-field select-colorfield${l ? " is-disabled" : ""}`,
|
|
31580
31762
|
children: [
|
|
@@ -31602,7 +31784,7 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31602
31784
|
children: /* @__PURE__ */ v("div", {
|
|
31603
31785
|
className: "select-colorfield__panel",
|
|
31604
31786
|
children: [
|
|
31605
|
-
/* @__PURE__ */ _(
|
|
31787
|
+
/* @__PURE__ */ _(bm, {
|
|
31606
31788
|
hex: E,
|
|
31607
31789
|
onPick: D
|
|
31608
31790
|
}),
|
|
@@ -31611,7 +31793,7 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31611
31793
|
role: "group",
|
|
31612
31794
|
"aria-label": "Cores prontas",
|
|
31613
31795
|
children: o.map((e) => {
|
|
31614
|
-
let t =
|
|
31796
|
+
let t = mm(e) ?? e, n = t === E;
|
|
31615
31797
|
return /* @__PURE__ */ _("button", {
|
|
31616
31798
|
type: "button",
|
|
31617
31799
|
className: `select-colorfield__preset${n ? " is-selected" : ""}`,
|
|
@@ -31642,7 +31824,7 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31642
31824
|
className: "select-input select-input--mono select-colorfield__hex",
|
|
31643
31825
|
value: S,
|
|
31644
31826
|
onChange: (e) => {
|
|
31645
|
-
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);
|
|
31646
31828
|
},
|
|
31647
31829
|
onBlur: () => D(S),
|
|
31648
31830
|
placeholder: u ? "Padrão" : "#000000",
|
|
@@ -31665,14 +31847,14 @@ function vm({ label: e, help: t, hint: n, error: r, value: i, onChange: a, prese
|
|
|
31665
31847
|
}) : null : /* @__PURE__ */ v("p", {
|
|
31666
31848
|
id: `${y}-hint`,
|
|
31667
31849
|
className: `select-field__hint select-colorfield__contrast${k < 4.5 ? " is-low" : ""}`,
|
|
31668
|
-
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]
|
|
31669
31851
|
})
|
|
31670
31852
|
]
|
|
31671
31853
|
});
|
|
31672
31854
|
}
|
|
31673
31855
|
//#endregion
|
|
31674
31856
|
//#region src/SelectProgressBar.tsx
|
|
31675
|
-
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) {
|
|
31676
31858
|
if (l) return /* @__PURE__ */ v("div", {
|
|
31677
31859
|
ref: f,
|
|
31678
31860
|
...d,
|
|
@@ -31717,7 +31899,7 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31717
31899
|
})
|
|
31718
31900
|
]
|
|
31719
31901
|
});
|
|
31720
|
-
}),
|
|
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) {
|
|
31721
31903
|
let E = c(), D = f(null);
|
|
31722
31904
|
s(() => {
|
|
31723
31905
|
var e;
|
|
@@ -31727,10 +31909,10 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31727
31909
|
let O = (e) => {
|
|
31728
31910
|
if (C == null || C(e), !(e.defaultPrevented || e.key !== "Enter" || e.nativeEvent.isComposing)) {
|
|
31729
31911
|
if (e.shiftKey) {
|
|
31730
|
-
m && !
|
|
31912
|
+
m && !wm(e.target) && (e.preventDefault(), m());
|
|
31731
31913
|
return;
|
|
31732
31914
|
}
|
|
31733
|
-
(!
|
|
31915
|
+
(!wm(e.target) || e.ctrlKey || e.metaKey) && (e.target instanceof HTMLButtonElement || u && !d && (e.preventDefault(), u()));
|
|
31734
31916
|
}
|
|
31735
31917
|
}, k = t && t.max > 0 ? Math.max(0, Math.min(100, t.value / t.max * 100)) : null;
|
|
31736
31918
|
return /* @__PURE__ */ v("section", {
|
|
@@ -31756,7 +31938,7 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31756
31938
|
style: { width: `${k}%` }
|
|
31757
31939
|
})
|
|
31758
31940
|
}),
|
|
31759
|
-
/* @__PURE__ */ _(
|
|
31941
|
+
/* @__PURE__ */ _(Tm.Provider, {
|
|
31760
31942
|
value: E,
|
|
31761
31943
|
children: /* @__PURE__ */ v("div", {
|
|
31762
31944
|
ref: D,
|
|
@@ -31831,8 +32013,8 @@ var ym = r(function({ value: e = 0, max: t = 100, tone: n = "brand", size: r = "
|
|
|
31831
32013
|
]
|
|
31832
32014
|
});
|
|
31833
32015
|
});
|
|
31834
|
-
function
|
|
31835
|
-
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 : ""}`;
|
|
31836
32018
|
return r ? /* @__PURE__ */ _("textarea", {
|
|
31837
32019
|
className: d,
|
|
31838
32020
|
value: e,
|
|
@@ -31850,9 +32032,9 @@ function Cm({ value: e, onChange: t, type: n = "text", multiline: r = !1, placeh
|
|
|
31850
32032
|
onChange: (e) => t(e.target.value)
|
|
31851
32033
|
});
|
|
31852
32034
|
}
|
|
31853
|
-
var
|
|
31854
|
-
function
|
|
31855
|
-
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) => {
|
|
31856
32038
|
r(n ? c.includes(e) ? c.filter((t) => t !== e) : [...c, e] : e);
|
|
31857
32039
|
}, d = (t) => {
|
|
31858
32040
|
if (t.ctrlKey || t.metaKey || t.altKey || t.key.length !== 1) return;
|
|
@@ -31894,7 +32076,7 @@ function Tm({ options: e, value: t, multiple: n = !1, onChange: r, keys: i, aria
|
|
|
31894
32076
|
}
|
|
31895
32077
|
//#endregion
|
|
31896
32078
|
//#region src/SelectChoiceCard.tsx
|
|
31897
|
-
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) {
|
|
31898
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: [
|
|
31899
32081
|
t == null ? /* @__PURE__ */ v("span", {
|
|
31900
32082
|
className: "select-choicecard__top",
|
|
@@ -31962,7 +32144,7 @@ var Em = r(function({ icon: e, media: t, accent: n, title: r, description: i, ba
|
|
|
31962
32144
|
children: x
|
|
31963
32145
|
});
|
|
31964
32146
|
});
|
|
31965
|
-
function
|
|
32147
|
+
function jm({ badge: e = !0 }) {
|
|
31966
32148
|
return /* @__PURE__ */ v("div", {
|
|
31967
32149
|
className: "select-choicecard select-choicecard--skeleton",
|
|
31968
32150
|
"aria-hidden": "true",
|
|
@@ -31983,7 +32165,7 @@ function Dm({ badge: e = !0 }) {
|
|
|
31983
32165
|
]
|
|
31984
32166
|
});
|
|
31985
32167
|
}
|
|
31986
|
-
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) {
|
|
31987
32169
|
return /* @__PURE__ */ _("div", {
|
|
31988
32170
|
ref: c,
|
|
31989
32171
|
...s,
|
|
@@ -31993,16 +32175,16 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
31993
32175
|
"--select-choice-min": t,
|
|
31994
32176
|
...o
|
|
31995
32177
|
},
|
|
31996
|
-
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ _(
|
|
32178
|
+
children: n ? Array.from({ length: r }, (e, t) => /* @__PURE__ */ _(jm, {}, t)) : e
|
|
31997
32179
|
});
|
|
31998
|
-
}),
|
|
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) {
|
|
31999
32181
|
let h = f(null), [y, b] = p(.5);
|
|
32000
32182
|
s(() => {
|
|
32001
32183
|
let e = h.current;
|
|
32002
32184
|
if (!e) return;
|
|
32003
32185
|
let t = () => {
|
|
32004
32186
|
let t = e.clientWidth;
|
|
32005
|
-
t > 0 && b(Math.min(1, t /
|
|
32187
|
+
t > 0 && b(Math.min(1, t / Nm));
|
|
32006
32188
|
};
|
|
32007
32189
|
if (t(), typeof ResizeObserver > "u") return;
|
|
32008
32190
|
let n = new ResizeObserver(t);
|
|
@@ -32010,7 +32192,7 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32010
32192
|
}, []);
|
|
32011
32193
|
let x = e === "front", S = {
|
|
32012
32194
|
"--select-cert-accent": t || void 0,
|
|
32013
|
-
height:
|
|
32195
|
+
height: Pm * y + 2
|
|
32014
32196
|
};
|
|
32015
32197
|
return /* @__PURE__ */ _("div", {
|
|
32016
32198
|
ref: (e) => {
|
|
@@ -32023,8 +32205,8 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32023
32205
|
children: /* @__PURE__ */ _("div", {
|
|
32024
32206
|
className: "select-certpreview__sheet",
|
|
32025
32207
|
style: {
|
|
32026
|
-
width:
|
|
32027
|
-
height:
|
|
32208
|
+
width: Nm,
|
|
32209
|
+
height: Pm,
|
|
32028
32210
|
transform: `scale(${y})`
|
|
32029
32211
|
},
|
|
32030
32212
|
children: /* @__PURE__ */ v("div", {
|
|
@@ -32097,13 +32279,13 @@ var Om = r(function({ children: e, minCardWidth: t = "15rem", loading: n = !1, s
|
|
|
32097
32279
|
});
|
|
32098
32280
|
//#endregion
|
|
32099
32281
|
//#region src/SelectImageField.tsx
|
|
32100
|
-
function
|
|
32282
|
+
function Im(e) {
|
|
32101
32283
|
return new Promise((t, n) => {
|
|
32102
32284
|
let r = new FileReader();
|
|
32103
32285
|
r.onload = () => t(String(r.result)), r.onerror = () => n(r.error), r.readAsDataURL(e);
|
|
32104
32286
|
});
|
|
32105
32287
|
}
|
|
32106
|
-
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) {
|
|
32107
32289
|
let [d, f] = p([]), [m, h] = p(null), g = t ? [t] : [], y = async (e) => {
|
|
32108
32290
|
let t = e[0];
|
|
32109
32291
|
if (!t) {
|
|
@@ -32111,7 +32293,7 @@ var Nm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
32111
32293
|
return;
|
|
32112
32294
|
}
|
|
32113
32295
|
if (h(null), !s) {
|
|
32114
|
-
n(await
|
|
32296
|
+
n(await Im(t)), f([]);
|
|
32115
32297
|
return;
|
|
32116
32298
|
}
|
|
32117
32299
|
f([t]);
|
|
@@ -32143,7 +32325,7 @@ var Nm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
32143
32325
|
children: m
|
|
32144
32326
|
})]
|
|
32145
32327
|
});
|
|
32146
|
-
}),
|
|
32328
|
+
}), Rm = r(function({ items: e, multiple: t = !1, defaultOpenIds: n = [], className: r, ...i }, a) {
|
|
32147
32329
|
let [o, s] = p(() => new Set(n)), c = (e) => s((n) => {
|
|
32148
32330
|
let r = n.has(e), i = new Set(t ? n : []);
|
|
32149
32331
|
return r ? i.delete(e) : i.add(e), i;
|
|
@@ -32189,6 +32371,6 @@ var Nm = r(function({ label: e, value: t, onChange: n, accept: r = "image/*", ma
|
|
|
32189
32371
|
});
|
|
32190
32372
|
});
|
|
32191
32373
|
//#endregion
|
|
32192
|
-
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 };
|
|
32193
32375
|
|
|
32194
32376
|
//# sourceMappingURL=index.js.map
|