@vincisys/eyeson 0.10.0 → 0.11.1
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/components/ComboBox/Combobox.d.ts.map +1 -1
- package/dist/components/DateTimePicker/AnalogClock.d.ts +20 -0
- package/dist/components/DateTimePicker/AnalogClock.d.ts.map +1 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +9 -1
- package/dist/components/DateTimePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1031 -861
- package/dist/styles/eyes-standalone.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function L(e, t, n) {
|
|
|
28
28
|
}
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/components/Button/Button.tsx
|
|
31
|
-
var
|
|
31
|
+
var ie = /* @__PURE__ */ new Set([
|
|
32
32
|
"blue-background",
|
|
33
33
|
"green-background",
|
|
34
34
|
"green-main",
|
|
@@ -40,7 +40,7 @@ var R = /* @__PURE__ */ new Set([
|
|
|
40
40
|
"red-background",
|
|
41
41
|
"red-dark",
|
|
42
42
|
"red-middle"
|
|
43
|
-
]),
|
|
43
|
+
]), R = {
|
|
44
44
|
size: {
|
|
45
45
|
sm: { classes: "h-[calc(1.75rem*1.188*1.1)] gap-1 rounded-[min(var(--radius-eds-xs),12px)] px-[calc(0.625rem*1.188*1.15)] text-[0.8rem] has-data-[icon=inline-end]:pr-[calc(0.375rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.375rem*1.188*1.15)] [&_svg:not([class*='size-'])]:size-3.5 [&_.eds-btn-icon-wrap]:size-3.5" },
|
|
46
46
|
md: { classes: "h-[calc(2rem*1.188*1.1)] gap-1.5 px-[calc(0.625rem*1.188*1.15)] has-data-[icon=inline-end]:pr-[calc(0.5rem*1.188*1.15)] has-data-[icon=inline-start]:pl-[calc(0.5rem*1.188*1.15)] [&_.eds-btn-icon-wrap]:size-4" },
|
|
@@ -52,7 +52,7 @@ var R = /* @__PURE__ */ new Set([
|
|
|
52
52
|
ghost: { classes: "border-transparent bg-transparent text-[var(--eds-btn-accent)] hover:bg-[color-mix(in_srgb,var(--eds-btn-accent)_10%,transparent)] hover:text-[color-mix(in_srgb,var(--eds-btn-accent)_88%,black)] data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" },
|
|
53
53
|
link: { classes: "h-auto border-transparent bg-transparent px-0 text-[var(--eds-btn-accent)] underline-offset-4 hover:underline data-disabled:not-data-loading:text-eds-neutral-disabled data-loading:data-disabled:text-[var(--eds-btn-accent)]" }
|
|
54
54
|
}
|
|
55
|
-
},
|
|
55
|
+
}, z = {
|
|
56
56
|
size: "md",
|
|
57
57
|
variant: "solid"
|
|
58
58
|
}, B = {
|
|
@@ -60,14 +60,14 @@ var R = /* @__PURE__ */ new Set([
|
|
|
60
60
|
md: 16,
|
|
61
61
|
lg: 16
|
|
62
62
|
};
|
|
63
|
-
function V({ variant: e =
|
|
64
|
-
let r = L(
|
|
63
|
+
function V({ variant: e = z.variant, size: t = z.size, fluid: n = !1 }) {
|
|
64
|
+
let r = L(R.size, t, z.size), i = L(R.variant, e, z.variant);
|
|
65
65
|
return I("eds-btn group/button inline-flex shrink-0 items-center justify-center rounded-lg border bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none cursor-pointer box-border m-0", "focus-visible:border-[var(--eds-btn-accent)] focus-visible:ring-3 focus-visible:ring-[color-mix(in_srgb,var(--eds-btn-accent)_50%,transparent)]", "active:not-aria-[haspopup]:translate-y-px", "data-disabled:pointer-events-none data-disabled:not-data-loading:opacity-50 data-loading:data-disabled:cursor-wait data-loading:data-disabled:opacity-100", "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r.classes, i.classes, n && "w-full");
|
|
66
66
|
}
|
|
67
67
|
function ae({ text: t = "Button", className: n, icon: r, iconPosition: i = "start", variant: a = "solid", color: o = "blue-main", size: s = "md", fluid: c = !1, isLoading: l = !1, disabled: u, style: f, ...p }) {
|
|
68
68
|
let m = B[s], h = !!(u || l), y = !!(l || r), b = i === "end" ? "inline-end" : "inline-start", x = {
|
|
69
69
|
"--eds-btn-accent": `var(--color-eds-${o})`,
|
|
70
|
-
...
|
|
70
|
+
...ie.has(o) ? { "--eds-btn-solid-fg": "#fff" } : {},
|
|
71
71
|
...f
|
|
72
72
|
}, S = y ? /* @__PURE__ */ _("span", {
|
|
73
73
|
className: "eds-btn-icon-wrap flex shrink-0 items-center justify-center",
|
|
@@ -98,7 +98,7 @@ function ae({ text: t = "Button", className: n, icon: r, iconPosition: i = "star
|
|
|
98
98
|
}
|
|
99
99
|
//#endregion
|
|
100
100
|
//#region src/constants/colors.ts
|
|
101
|
-
var
|
|
101
|
+
var oe = [
|
|
102
102
|
"blue-background",
|
|
103
103
|
"blue-dark",
|
|
104
104
|
"blue-main",
|
|
@@ -119,142 +119,142 @@ var H = [
|
|
|
119
119
|
"red-dark",
|
|
120
120
|
"red-main",
|
|
121
121
|
"red-middle"
|
|
122
|
-
],
|
|
123
|
-
|
|
124
|
-
var
|
|
122
|
+
], H = 365.2425, se = 6048e5, U = 864e5, ce = 3600 * 24;
|
|
123
|
+
ce * 7, ce * H / 12 * 3;
|
|
124
|
+
var le = Symbol.for("constructDateFrom");
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructFrom.js
|
|
127
|
-
function
|
|
128
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
127
|
+
function W(e, t) {
|
|
128
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && le in e ? e[le](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
129
129
|
}
|
|
130
130
|
//#endregion
|
|
131
131
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/toDate.js
|
|
132
|
-
function
|
|
133
|
-
return
|
|
132
|
+
function G(e, t) {
|
|
133
|
+
return W(t || e, e);
|
|
134
134
|
}
|
|
135
135
|
//#endregion
|
|
136
136
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addDays.js
|
|
137
|
-
function
|
|
138
|
-
let r =
|
|
139
|
-
return isNaN(t) ?
|
|
137
|
+
function ue(e, t, n) {
|
|
138
|
+
let r = G(e, n?.in);
|
|
139
|
+
return isNaN(t) ? W(n?.in || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/addMonths.js
|
|
143
|
-
function
|
|
144
|
-
let r =
|
|
145
|
-
if (isNaN(t)) return
|
|
143
|
+
function de(e, t, n) {
|
|
144
|
+
let r = G(e, n?.in);
|
|
145
|
+
if (isNaN(t)) return W(n?.in || e, NaN);
|
|
146
146
|
if (!t) return r;
|
|
147
|
-
let i = r.getDate(), a =
|
|
147
|
+
let i = r.getDate(), a = W(n?.in || e, r.getTime());
|
|
148
148
|
return a.setMonth(r.getMonth() + t + 1, 0), i >= a.getDate() ? a : (r.setFullYear(a.getFullYear(), a.getMonth(), i), r);
|
|
149
149
|
}
|
|
150
150
|
//#endregion
|
|
151
151
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/defaultOptions.js
|
|
152
|
-
var
|
|
153
|
-
function
|
|
154
|
-
return
|
|
152
|
+
var fe = {};
|
|
153
|
+
function pe() {
|
|
154
|
+
return fe;
|
|
155
155
|
}
|
|
156
156
|
//#endregion
|
|
157
157
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeek.js
|
|
158
|
-
function
|
|
159
|
-
let n =
|
|
158
|
+
function K(e, t) {
|
|
159
|
+
let n = pe(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
160
160
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
161
161
|
}
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeek.js
|
|
164
|
-
function
|
|
165
|
-
return
|
|
164
|
+
function q(e, t) {
|
|
165
|
+
return K(e, {
|
|
166
166
|
...t,
|
|
167
167
|
weekStartsOn: 1
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
//#endregion
|
|
171
171
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeekYear.js
|
|
172
|
-
function
|
|
173
|
-
let n =
|
|
172
|
+
function me(e, t) {
|
|
173
|
+
let n = G(e, t?.in), r = n.getFullYear(), i = W(n, 0);
|
|
174
174
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
175
|
-
let a =
|
|
175
|
+
let a = q(i), o = W(n, 0);
|
|
176
176
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
177
|
-
let s =
|
|
177
|
+
let s = q(o);
|
|
178
178
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
179
179
|
}
|
|
180
180
|
//#endregion
|
|
181
181
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
182
|
-
function
|
|
183
|
-
let t =
|
|
182
|
+
function he(e) {
|
|
183
|
+
let t = G(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
184
184
|
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
185
185
|
}
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/normalizeDates.js
|
|
188
|
-
function
|
|
189
|
-
let n =
|
|
188
|
+
function ge(e, ...t) {
|
|
189
|
+
let n = W.bind(null, e || t.find((e) => typeof e == "object"));
|
|
190
190
|
return t.map(n);
|
|
191
191
|
}
|
|
192
192
|
//#endregion
|
|
193
193
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfDay.js
|
|
194
|
-
function
|
|
195
|
-
let n =
|
|
194
|
+
function _e(e, t) {
|
|
195
|
+
let n = G(e, t?.in);
|
|
196
196
|
return n.setHours(0, 0, 0, 0), n;
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/differenceInCalendarDays.js
|
|
200
|
-
function
|
|
201
|
-
let [r, i] =
|
|
202
|
-
return Math.round((s - c) /
|
|
200
|
+
function ve(e, t, n) {
|
|
201
|
+
let [r, i] = ge(n?.in, e, t), a = _e(r), o = _e(i), s = +a - he(a), c = +o - he(o);
|
|
202
|
+
return Math.round((s - c) / U);
|
|
203
203
|
}
|
|
204
204
|
//#endregion
|
|
205
205
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfISOWeekYear.js
|
|
206
|
-
function
|
|
207
|
-
let n =
|
|
208
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
206
|
+
function ye(e, t) {
|
|
207
|
+
let n = me(e, t), r = W(t?.in || e, 0);
|
|
208
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), q(r);
|
|
209
209
|
}
|
|
210
210
|
//#endregion
|
|
211
211
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/constructNow.js
|
|
212
|
-
function
|
|
213
|
-
return
|
|
212
|
+
function be(e) {
|
|
213
|
+
return W(e, Date.now());
|
|
214
214
|
}
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameDay.js
|
|
217
|
-
function
|
|
218
|
-
let [r, i] =
|
|
219
|
-
return +
|
|
217
|
+
function xe(e, t, n) {
|
|
218
|
+
let [r, i] = ge(n?.in, e, t);
|
|
219
|
+
return +_e(r) == +_e(i);
|
|
220
220
|
}
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isDate.js
|
|
223
|
-
function
|
|
223
|
+
function Se(e) {
|
|
224
224
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isValid.js
|
|
228
|
-
function
|
|
229
|
-
return !(!
|
|
228
|
+
function Ce(e) {
|
|
229
|
+
return !(!Se(e) && typeof e != "number" || isNaN(+G(e)));
|
|
230
230
|
}
|
|
231
231
|
//#endregion
|
|
232
232
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfMonth.js
|
|
233
|
-
function
|
|
234
|
-
let n =
|
|
233
|
+
function we(e, t) {
|
|
234
|
+
let n = G(e, t?.in), r = n.getMonth();
|
|
235
235
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
236
236
|
}
|
|
237
237
|
//#endregion
|
|
238
238
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfMonth.js
|
|
239
|
-
function
|
|
240
|
-
let n =
|
|
239
|
+
function Te(e, t) {
|
|
240
|
+
let n = G(e, t?.in);
|
|
241
241
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
242
242
|
}
|
|
243
243
|
//#endregion
|
|
244
244
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfYear.js
|
|
245
|
-
function
|
|
246
|
-
let n =
|
|
245
|
+
function Ee(e, t) {
|
|
246
|
+
let n = G(e, t?.in);
|
|
247
247
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
248
248
|
}
|
|
249
249
|
//#endregion
|
|
250
250
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/endOfWeek.js
|
|
251
|
-
function
|
|
252
|
-
let n =
|
|
251
|
+
function De(e, t) {
|
|
252
|
+
let n = pe(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = G(e, t?.in), a = i.getDay(), o = (a < r ? -7 : 0) + 6 - (a - r);
|
|
253
253
|
return i.setDate(i.getDate() + o), i.setHours(23, 59, 59, 999), i;
|
|
254
254
|
}
|
|
255
255
|
//#endregion
|
|
256
256
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
257
|
-
var
|
|
257
|
+
var Oe = {
|
|
258
258
|
lessThanXSeconds: {
|
|
259
259
|
one: "less than a second",
|
|
260
260
|
other: "less than {{count}} seconds"
|
|
@@ -316,20 +316,20 @@ var ke = {
|
|
|
316
316
|
one: "almost 1 year",
|
|
317
317
|
other: "almost {{count}} years"
|
|
318
318
|
}
|
|
319
|
-
},
|
|
320
|
-
let r, i =
|
|
319
|
+
}, ke = (e, t, n) => {
|
|
320
|
+
let r, i = Oe[e];
|
|
321
321
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
322
322
|
};
|
|
323
323
|
//#endregion
|
|
324
324
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
325
|
-
function
|
|
325
|
+
function Ae(e) {
|
|
326
326
|
return (t = {}) => {
|
|
327
327
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
328
328
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
var
|
|
332
|
-
date:
|
|
331
|
+
var je = {
|
|
332
|
+
date: Ae({
|
|
333
333
|
formats: {
|
|
334
334
|
full: "EEEE, MMMM do, y",
|
|
335
335
|
long: "MMMM do, y",
|
|
@@ -338,7 +338,7 @@ var Me = {
|
|
|
338
338
|
},
|
|
339
339
|
defaultWidth: "full"
|
|
340
340
|
}),
|
|
341
|
-
time:
|
|
341
|
+
time: Ae({
|
|
342
342
|
formats: {
|
|
343
343
|
full: "h:mm:ss a zzzz",
|
|
344
344
|
long: "h:mm:ss a z",
|
|
@@ -347,7 +347,7 @@ var Me = {
|
|
|
347
347
|
},
|
|
348
348
|
defaultWidth: "full"
|
|
349
349
|
}),
|
|
350
|
-
dateTime:
|
|
350
|
+
dateTime: Ae({
|
|
351
351
|
formats: {
|
|
352
352
|
full: "{{date}} 'at' {{time}}",
|
|
353
353
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -356,17 +356,17 @@ var Me = {
|
|
|
356
356
|
},
|
|
357
357
|
defaultWidth: "full"
|
|
358
358
|
})
|
|
359
|
-
},
|
|
359
|
+
}, Me = {
|
|
360
360
|
lastWeek: "'last' eeee 'at' p",
|
|
361
361
|
yesterday: "'yesterday at' p",
|
|
362
362
|
today: "'today at' p",
|
|
363
363
|
tomorrow: "'tomorrow at' p",
|
|
364
364
|
nextWeek: "eeee 'at' p",
|
|
365
365
|
other: "P"
|
|
366
|
-
},
|
|
366
|
+
}, Ne = (e, t, n, r) => Me[e];
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
369
|
-
function
|
|
369
|
+
function Pe(e) {
|
|
370
370
|
return (t, n) => {
|
|
371
371
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
372
372
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -380,7 +380,7 @@ function Fe(e) {
|
|
|
380
380
|
return i[a];
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
var
|
|
383
|
+
var Fe = {
|
|
384
384
|
ordinalNumber: (e, t) => {
|
|
385
385
|
let n = Number(e), r = n % 100;
|
|
386
386
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -390,7 +390,7 @@ var Ie = {
|
|
|
390
390
|
}
|
|
391
391
|
return n + "th";
|
|
392
392
|
},
|
|
393
|
-
era:
|
|
393
|
+
era: Pe({
|
|
394
394
|
values: {
|
|
395
395
|
narrow: ["B", "A"],
|
|
396
396
|
abbreviated: ["BC", "AD"],
|
|
@@ -398,7 +398,7 @@ var Ie = {
|
|
|
398
398
|
},
|
|
399
399
|
defaultWidth: "wide"
|
|
400
400
|
}),
|
|
401
|
-
quarter:
|
|
401
|
+
quarter: Pe({
|
|
402
402
|
values: {
|
|
403
403
|
narrow: [
|
|
404
404
|
"1",
|
|
@@ -422,7 +422,7 @@ var Ie = {
|
|
|
422
422
|
defaultWidth: "wide",
|
|
423
423
|
argumentCallback: (e) => e - 1
|
|
424
424
|
}),
|
|
425
|
-
month:
|
|
425
|
+
month: Pe({
|
|
426
426
|
values: {
|
|
427
427
|
narrow: [
|
|
428
428
|
"J",
|
|
@@ -469,7 +469,7 @@ var Ie = {
|
|
|
469
469
|
},
|
|
470
470
|
defaultWidth: "wide"
|
|
471
471
|
}),
|
|
472
|
-
day:
|
|
472
|
+
day: Pe({
|
|
473
473
|
values: {
|
|
474
474
|
narrow: [
|
|
475
475
|
"S",
|
|
@@ -510,7 +510,7 @@ var Ie = {
|
|
|
510
510
|
},
|
|
511
511
|
defaultWidth: "wide"
|
|
512
512
|
}),
|
|
513
|
-
dayPeriod:
|
|
513
|
+
dayPeriod: Pe({
|
|
514
514
|
values: {
|
|
515
515
|
narrow: {
|
|
516
516
|
am: "a",
|
|
@@ -581,11 +581,11 @@ var Ie = {
|
|
|
581
581
|
};
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
584
|
-
function
|
|
584
|
+
function Ie(e) {
|
|
585
585
|
return (t, n = {}) => {
|
|
586
586
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
587
587
|
if (!a) return null;
|
|
588
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
588
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Re(s, (e) => e.test(o)) : Le(s, (e) => e.test(o)), l;
|
|
589
589
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
590
590
|
let u = t.slice(o.length);
|
|
591
591
|
return {
|
|
@@ -594,15 +594,15 @@ function Le(e) {
|
|
|
594
594
|
};
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function Le(e, t) {
|
|
598
598
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Re(e, t) {
|
|
601
601
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
602
602
|
}
|
|
603
603
|
//#endregion
|
|
604
604
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
605
|
-
function
|
|
605
|
+
function ze(e) {
|
|
606
606
|
return (t, n = {}) => {
|
|
607
607
|
let r = t.match(e.matchPattern);
|
|
608
608
|
if (!r) return null;
|
|
@@ -619,19 +619,19 @@ function Be(e) {
|
|
|
619
619
|
}
|
|
620
620
|
//#endregion
|
|
621
621
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/en-US.js
|
|
622
|
-
var
|
|
622
|
+
var Be = {
|
|
623
623
|
code: "en-US",
|
|
624
|
-
formatDistance:
|
|
625
|
-
formatLong:
|
|
626
|
-
formatRelative:
|
|
627
|
-
localize:
|
|
624
|
+
formatDistance: ke,
|
|
625
|
+
formatLong: je,
|
|
626
|
+
formatRelative: Ne,
|
|
627
|
+
localize: Fe,
|
|
628
628
|
match: {
|
|
629
|
-
ordinalNumber:
|
|
629
|
+
ordinalNumber: ze({
|
|
630
630
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
631
631
|
parsePattern: /\d+/i,
|
|
632
632
|
valueCallback: (e) => parseInt(e, 10)
|
|
633
633
|
}),
|
|
634
|
-
era:
|
|
634
|
+
era: Ie({
|
|
635
635
|
matchPatterns: {
|
|
636
636
|
narrow: /^(b|a)/i,
|
|
637
637
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -641,7 +641,7 @@ var Ve = {
|
|
|
641
641
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
642
642
|
defaultParseWidth: "any"
|
|
643
643
|
}),
|
|
644
|
-
quarter:
|
|
644
|
+
quarter: Ie({
|
|
645
645
|
matchPatterns: {
|
|
646
646
|
narrow: /^[1234]/i,
|
|
647
647
|
abbreviated: /^q[1234]/i,
|
|
@@ -657,7 +657,7 @@ var Ve = {
|
|
|
657
657
|
defaultParseWidth: "any",
|
|
658
658
|
valueCallback: (e) => e + 1
|
|
659
659
|
}),
|
|
660
|
-
month:
|
|
660
|
+
month: Ie({
|
|
661
661
|
matchPatterns: {
|
|
662
662
|
narrow: /^[jfmasond]/i,
|
|
663
663
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -696,7 +696,7 @@ var Ve = {
|
|
|
696
696
|
},
|
|
697
697
|
defaultParseWidth: "any"
|
|
698
698
|
}),
|
|
699
|
-
day:
|
|
699
|
+
day: Ie({
|
|
700
700
|
matchPatterns: {
|
|
701
701
|
narrow: /^[smtwf]/i,
|
|
702
702
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -726,7 +726,7 @@ var Ve = {
|
|
|
726
726
|
},
|
|
727
727
|
defaultParseWidth: "any"
|
|
728
728
|
}),
|
|
729
|
-
dayPeriod:
|
|
729
|
+
dayPeriod: Ie({
|
|
730
730
|
matchPatterns: {
|
|
731
731
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
732
732
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -752,56 +752,56 @@ var Ve = {
|
|
|
752
752
|
};
|
|
753
753
|
//#endregion
|
|
754
754
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getDayOfYear.js
|
|
755
|
-
function
|
|
756
|
-
let n =
|
|
757
|
-
return
|
|
755
|
+
function Ve(e, t) {
|
|
756
|
+
let n = G(e, t?.in);
|
|
757
|
+
return ve(n, Ee(n)) + 1;
|
|
758
758
|
}
|
|
759
759
|
//#endregion
|
|
760
760
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getISOWeek.js
|
|
761
|
-
function
|
|
762
|
-
let n =
|
|
761
|
+
function He(e, t) {
|
|
762
|
+
let n = G(e, t?.in), r = q(n) - +ye(n);
|
|
763
763
|
return Math.round(r / se) + 1;
|
|
764
764
|
}
|
|
765
765
|
//#endregion
|
|
766
766
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeekYear.js
|
|
767
|
-
function
|
|
768
|
-
let n =
|
|
767
|
+
function Ue(e, t) {
|
|
768
|
+
let n = G(e, t?.in), r = n.getFullYear(), i = pe(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = W(t?.in || e, 0);
|
|
769
769
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
770
|
-
let s =
|
|
770
|
+
let s = K(o, t), c = W(t?.in || e, 0);
|
|
771
771
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
772
|
-
let l =
|
|
772
|
+
let l = K(c, t);
|
|
773
773
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
774
774
|
}
|
|
775
775
|
//#endregion
|
|
776
776
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/startOfWeekYear.js
|
|
777
|
-
function
|
|
778
|
-
let n =
|
|
779
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
777
|
+
function We(e, t) {
|
|
778
|
+
let n = pe(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Ue(e, t), a = W(t?.in || e, 0);
|
|
779
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), K(a, t);
|
|
780
780
|
}
|
|
781
781
|
//#endregion
|
|
782
782
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getWeek.js
|
|
783
|
-
function
|
|
784
|
-
let n =
|
|
783
|
+
function Ge(e, t) {
|
|
784
|
+
let n = G(e, t?.in), r = K(n, t) - +We(n, t);
|
|
785
785
|
return Math.round(r / se) + 1;
|
|
786
786
|
}
|
|
787
787
|
//#endregion
|
|
788
788
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/addLeadingZeros.js
|
|
789
|
-
function
|
|
789
|
+
function J(e, t) {
|
|
790
790
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
791
791
|
}
|
|
792
792
|
//#endregion
|
|
793
793
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/lightFormatters.js
|
|
794
|
-
var
|
|
794
|
+
var Ke = {
|
|
795
795
|
y(e, t) {
|
|
796
796
|
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
797
|
-
return
|
|
797
|
+
return J(t === "yy" ? r % 100 : r, t.length);
|
|
798
798
|
},
|
|
799
799
|
M(e, t) {
|
|
800
800
|
let n = e.getMonth();
|
|
801
|
-
return t === "M" ? String(n + 1) :
|
|
801
|
+
return t === "M" ? String(n + 1) : J(n + 1, 2);
|
|
802
802
|
},
|
|
803
803
|
d(e, t) {
|
|
804
|
-
return
|
|
804
|
+
return J(e.getDate(), t.length);
|
|
805
805
|
},
|
|
806
806
|
a(e, t) {
|
|
807
807
|
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
@@ -814,22 +814,22 @@ var qe = {
|
|
|
814
814
|
}
|
|
815
815
|
},
|
|
816
816
|
h(e, t) {
|
|
817
|
-
return
|
|
817
|
+
return J(e.getHours() % 12 || 12, t.length);
|
|
818
818
|
},
|
|
819
819
|
H(e, t) {
|
|
820
|
-
return
|
|
820
|
+
return J(e.getHours(), t.length);
|
|
821
821
|
},
|
|
822
822
|
m(e, t) {
|
|
823
|
-
return
|
|
823
|
+
return J(e.getMinutes(), t.length);
|
|
824
824
|
},
|
|
825
825
|
s(e, t) {
|
|
826
|
-
return
|
|
826
|
+
return J(e.getSeconds(), t.length);
|
|
827
827
|
},
|
|
828
828
|
S(e, t) {
|
|
829
829
|
let n = t.length, r = e.getMilliseconds();
|
|
830
|
-
return
|
|
830
|
+
return J(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
831
831
|
}
|
|
832
|
-
},
|
|
832
|
+
}, qe = {
|
|
833
833
|
am: "am",
|
|
834
834
|
pm: "pm",
|
|
835
835
|
midnight: "midnight",
|
|
@@ -838,7 +838,7 @@ var qe = {
|
|
|
838
838
|
afternoon: "afternoon",
|
|
839
839
|
evening: "evening",
|
|
840
840
|
night: "night"
|
|
841
|
-
},
|
|
841
|
+
}, Je = {
|
|
842
842
|
G: function(e, t, n) {
|
|
843
843
|
let r = +(e.getFullYear() > 0);
|
|
844
844
|
switch (t) {
|
|
@@ -854,23 +854,23 @@ var qe = {
|
|
|
854
854
|
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
855
855
|
return n.ordinalNumber(r, { unit: "year" });
|
|
856
856
|
}
|
|
857
|
-
return
|
|
857
|
+
return Ke.y(e, t);
|
|
858
858
|
},
|
|
859
859
|
Y: function(e, t, n, r) {
|
|
860
|
-
let i =
|
|
861
|
-
return t === "YY" ?
|
|
860
|
+
let i = Ue(e, r), a = i > 0 ? i : 1 - i;
|
|
861
|
+
return t === "YY" ? J(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : J(a, t.length);
|
|
862
862
|
},
|
|
863
863
|
R: function(e, t) {
|
|
864
|
-
return
|
|
864
|
+
return J(me(e), t.length);
|
|
865
865
|
},
|
|
866
866
|
u: function(e, t) {
|
|
867
|
-
return
|
|
867
|
+
return J(e.getFullYear(), t.length);
|
|
868
868
|
},
|
|
869
869
|
Q: function(e, t, n) {
|
|
870
870
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
871
871
|
switch (t) {
|
|
872
872
|
case "Q": return String(r);
|
|
873
|
-
case "QQ": return
|
|
873
|
+
case "QQ": return J(r, 2);
|
|
874
874
|
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
875
875
|
case "QQQ": return n.quarter(r, {
|
|
876
876
|
width: "abbreviated",
|
|
@@ -890,7 +890,7 @@ var qe = {
|
|
|
890
890
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
891
891
|
switch (t) {
|
|
892
892
|
case "q": return String(r);
|
|
893
|
-
case "qq": return
|
|
893
|
+
case "qq": return J(r, 2);
|
|
894
894
|
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
895
895
|
case "qqq": return n.quarter(r, {
|
|
896
896
|
width: "abbreviated",
|
|
@@ -910,7 +910,7 @@ var qe = {
|
|
|
910
910
|
let r = e.getMonth();
|
|
911
911
|
switch (t) {
|
|
912
912
|
case "M":
|
|
913
|
-
case "MM": return
|
|
913
|
+
case "MM": return Ke.M(e, t);
|
|
914
914
|
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
915
915
|
case "MMM": return n.month(r, {
|
|
916
916
|
width: "abbreviated",
|
|
@@ -930,7 +930,7 @@ var qe = {
|
|
|
930
930
|
let r = e.getMonth();
|
|
931
931
|
switch (t) {
|
|
932
932
|
case "L": return String(r + 1);
|
|
933
|
-
case "LL": return
|
|
933
|
+
case "LL": return J(r + 1, 2);
|
|
934
934
|
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
935
935
|
case "LLL": return n.month(r, {
|
|
936
936
|
width: "abbreviated",
|
|
@@ -947,19 +947,19 @@ var qe = {
|
|
|
947
947
|
}
|
|
948
948
|
},
|
|
949
949
|
w: function(e, t, n, r) {
|
|
950
|
-
let i =
|
|
951
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
950
|
+
let i = Ge(e, r);
|
|
951
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : J(i, t.length);
|
|
952
952
|
},
|
|
953
953
|
I: function(e, t, n) {
|
|
954
|
-
let r =
|
|
955
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
954
|
+
let r = He(e);
|
|
955
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : J(r, t.length);
|
|
956
956
|
},
|
|
957
957
|
d: function(e, t, n) {
|
|
958
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
958
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Ke.d(e, t);
|
|
959
959
|
},
|
|
960
960
|
D: function(e, t, n) {
|
|
961
|
-
let r =
|
|
962
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
961
|
+
let r = Ve(e);
|
|
962
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : J(r, t.length);
|
|
963
963
|
},
|
|
964
964
|
E: function(e, t, n) {
|
|
965
965
|
let r = e.getDay();
|
|
@@ -988,7 +988,7 @@ var qe = {
|
|
|
988
988
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
989
989
|
switch (t) {
|
|
990
990
|
case "e": return String(a);
|
|
991
|
-
case "ee": return
|
|
991
|
+
case "ee": return J(a, 2);
|
|
992
992
|
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
993
993
|
case "eee": return n.day(i, {
|
|
994
994
|
width: "abbreviated",
|
|
@@ -1012,7 +1012,7 @@ var qe = {
|
|
|
1012
1012
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
1013
1013
|
switch (t) {
|
|
1014
1014
|
case "c": return String(a);
|
|
1015
|
-
case "cc": return
|
|
1015
|
+
case "cc": return J(a, t.length);
|
|
1016
1016
|
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
1017
1017
|
case "ccc": return n.day(i, {
|
|
1018
1018
|
width: "abbreviated",
|
|
@@ -1036,7 +1036,7 @@ var qe = {
|
|
|
1036
1036
|
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
1037
1037
|
switch (t) {
|
|
1038
1038
|
case "i": return String(i);
|
|
1039
|
-
case "ii": return
|
|
1039
|
+
case "ii": return J(i, t.length);
|
|
1040
1040
|
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
1041
1041
|
case "iii": return n.day(r, {
|
|
1042
1042
|
width: "abbreviated",
|
|
@@ -1080,7 +1080,7 @@ var qe = {
|
|
|
1080
1080
|
},
|
|
1081
1081
|
b: function(e, t, n) {
|
|
1082
1082
|
let r = e.getHours(), i;
|
|
1083
|
-
switch (i = r === 12 ?
|
|
1083
|
+
switch (i = r === 12 ? qe.noon : r === 0 ? qe.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
1084
1084
|
case "b":
|
|
1085
1085
|
case "bb": return n.dayPeriod(i, {
|
|
1086
1086
|
width: "abbreviated",
|
|
@@ -1102,7 +1102,7 @@ var qe = {
|
|
|
1102
1102
|
},
|
|
1103
1103
|
B: function(e, t, n) {
|
|
1104
1104
|
let r = e.getHours(), i;
|
|
1105
|
-
switch (i = r >= 17 ?
|
|
1105
|
+
switch (i = r >= 17 ? qe.evening : r >= 12 ? qe.afternoon : r >= 4 ? qe.morning : qe.night, t) {
|
|
1106
1106
|
case "B":
|
|
1107
1107
|
case "BB":
|
|
1108
1108
|
case "BBB": return n.dayPeriod(i, {
|
|
@@ -1124,45 +1124,45 @@ var qe = {
|
|
|
1124
1124
|
let t = e.getHours() % 12;
|
|
1125
1125
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
1126
1126
|
}
|
|
1127
|
-
return
|
|
1127
|
+
return Ke.h(e, t);
|
|
1128
1128
|
},
|
|
1129
1129
|
H: function(e, t, n) {
|
|
1130
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
1130
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Ke.H(e, t);
|
|
1131
1131
|
},
|
|
1132
1132
|
K: function(e, t, n) {
|
|
1133
1133
|
let r = e.getHours() % 12;
|
|
1134
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1134
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : J(r, t.length);
|
|
1135
1135
|
},
|
|
1136
1136
|
k: function(e, t, n) {
|
|
1137
1137
|
let r = e.getHours();
|
|
1138
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
1138
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : J(r, t.length);
|
|
1139
1139
|
},
|
|
1140
1140
|
m: function(e, t, n) {
|
|
1141
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
1141
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Ke.m(e, t);
|
|
1142
1142
|
},
|
|
1143
1143
|
s: function(e, t, n) {
|
|
1144
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
1144
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Ke.s(e, t);
|
|
1145
1145
|
},
|
|
1146
1146
|
S: function(e, t) {
|
|
1147
|
-
return
|
|
1147
|
+
return Ke.S(e, t);
|
|
1148
1148
|
},
|
|
1149
1149
|
X: function(e, t, n) {
|
|
1150
1150
|
let r = e.getTimezoneOffset();
|
|
1151
1151
|
if (r === 0) return "Z";
|
|
1152
1152
|
switch (t) {
|
|
1153
|
-
case "X": return
|
|
1153
|
+
case "X": return Xe(r);
|
|
1154
1154
|
case "XXXX":
|
|
1155
|
-
case "XX": return
|
|
1156
|
-
default: return
|
|
1155
|
+
case "XX": return Ze(r);
|
|
1156
|
+
default: return Ze(r, ":");
|
|
1157
1157
|
}
|
|
1158
1158
|
},
|
|
1159
1159
|
x: function(e, t, n) {
|
|
1160
1160
|
let r = e.getTimezoneOffset();
|
|
1161
1161
|
switch (t) {
|
|
1162
|
-
case "x": return
|
|
1162
|
+
case "x": return Xe(r);
|
|
1163
1163
|
case "xxxx":
|
|
1164
|
-
case "xx": return
|
|
1165
|
-
default: return
|
|
1164
|
+
case "xx": return Ze(r);
|
|
1165
|
+
default: return Ze(r, ":");
|
|
1166
1166
|
}
|
|
1167
1167
|
},
|
|
1168
1168
|
O: function(e, t, n) {
|
|
@@ -1170,8 +1170,8 @@ var qe = {
|
|
|
1170
1170
|
switch (t) {
|
|
1171
1171
|
case "O":
|
|
1172
1172
|
case "OO":
|
|
1173
|
-
case "OOO": return "GMT" +
|
|
1174
|
-
default: return "GMT" +
|
|
1173
|
+
case "OOO": return "GMT" + Ye(r, ":");
|
|
1174
|
+
default: return "GMT" + Ze(r, ":");
|
|
1175
1175
|
}
|
|
1176
1176
|
},
|
|
1177
1177
|
z: function(e, t, n) {
|
|
@@ -1179,49 +1179,49 @@ var qe = {
|
|
|
1179
1179
|
switch (t) {
|
|
1180
1180
|
case "z":
|
|
1181
1181
|
case "zz":
|
|
1182
|
-
case "zzz": return "GMT" +
|
|
1183
|
-
default: return "GMT" +
|
|
1182
|
+
case "zzz": return "GMT" + Ye(r, ":");
|
|
1183
|
+
default: return "GMT" + Ze(r, ":");
|
|
1184
1184
|
}
|
|
1185
1185
|
},
|
|
1186
1186
|
t: function(e, t, n) {
|
|
1187
|
-
return
|
|
1187
|
+
return J(Math.trunc(e / 1e3), t.length);
|
|
1188
1188
|
},
|
|
1189
1189
|
T: function(e, t, n) {
|
|
1190
|
-
return
|
|
1190
|
+
return J(+e, t.length);
|
|
1191
1191
|
}
|
|
1192
1192
|
};
|
|
1193
|
-
function
|
|
1193
|
+
function Ye(e, t = "") {
|
|
1194
1194
|
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
1195
|
-
return a === 0 ? n + String(i) : n + String(i) + t +
|
|
1195
|
+
return a === 0 ? n + String(i) : n + String(i) + t + J(a, 2);
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") +
|
|
1197
|
+
function Xe(e, t) {
|
|
1198
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + J(Math.abs(e) / 60, 2) : Ze(e, t);
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1201
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
1200
|
+
function Ze(e, t = "") {
|
|
1201
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = J(Math.trunc(r / 60), 2), a = J(r % 60, 2);
|
|
1202
1202
|
return n + i + t + a;
|
|
1203
1203
|
}
|
|
1204
1204
|
//#endregion
|
|
1205
1205
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/_lib/format/longFormatters.js
|
|
1206
|
-
var
|
|
1206
|
+
var Qe = (e, t) => {
|
|
1207
1207
|
switch (e) {
|
|
1208
1208
|
case "P": return t.date({ width: "short" });
|
|
1209
1209
|
case "PP": return t.date({ width: "medium" });
|
|
1210
1210
|
case "PPP": return t.date({ width: "long" });
|
|
1211
1211
|
default: return t.date({ width: "full" });
|
|
1212
1212
|
}
|
|
1213
|
-
},
|
|
1213
|
+
}, $e = (e, t) => {
|
|
1214
1214
|
switch (e) {
|
|
1215
1215
|
case "p": return t.time({ width: "short" });
|
|
1216
1216
|
case "pp": return t.time({ width: "medium" });
|
|
1217
1217
|
case "ppp": return t.time({ width: "long" });
|
|
1218
1218
|
default: return t.time({ width: "full" });
|
|
1219
1219
|
}
|
|
1220
|
-
},
|
|
1221
|
-
p:
|
|
1220
|
+
}, et = {
|
|
1221
|
+
p: $e,
|
|
1222
1222
|
P: (e, t) => {
|
|
1223
1223
|
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
1224
|
-
if (!i) return
|
|
1224
|
+
if (!i) return Qe(e, t);
|
|
1225
1225
|
let a;
|
|
1226
1226
|
switch (r) {
|
|
1227
1227
|
case "P":
|
|
@@ -1237,42 +1237,42 @@ var $e = (e, t) => {
|
|
|
1237
1237
|
a = t.dateTime({ width: "full" });
|
|
1238
1238
|
break;
|
|
1239
1239
|
}
|
|
1240
|
-
return a.replace("{{date}}",
|
|
1240
|
+
return a.replace("{{date}}", Qe(r, t)).replace("{{time}}", $e(i, t));
|
|
1241
1241
|
}
|
|
1242
|
-
},
|
|
1242
|
+
}, tt = /^D+$/, nt = /^Y+$/, rt = [
|
|
1243
1243
|
"D",
|
|
1244
1244
|
"DD",
|
|
1245
1245
|
"YY",
|
|
1246
1246
|
"YYYY"
|
|
1247
1247
|
];
|
|
1248
|
+
function it(e) {
|
|
1249
|
+
return tt.test(e);
|
|
1250
|
+
}
|
|
1248
1251
|
function at(e) {
|
|
1249
1252
|
return nt.test(e);
|
|
1250
1253
|
}
|
|
1251
|
-
function ot(e) {
|
|
1252
|
-
|
|
1254
|
+
function ot(e, t, n) {
|
|
1255
|
+
let r = st(e, t, n);
|
|
1256
|
+
if (console.warn(r), rt.includes(e)) throw RangeError(r);
|
|
1253
1257
|
}
|
|
1254
1258
|
function st(e, t, n) {
|
|
1255
|
-
let r = ct(e, t, n);
|
|
1256
|
-
if (console.warn(r), it.includes(e)) throw RangeError(r);
|
|
1257
|
-
}
|
|
1258
|
-
function ct(e, t, n) {
|
|
1259
1259
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
1260
1260
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1261
1261
|
}
|
|
1262
1262
|
//#endregion
|
|
1263
1263
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/format.js
|
|
1264
|
-
var
|
|
1265
|
-
function
|
|
1266
|
-
let r =
|
|
1267
|
-
if (!
|
|
1268
|
-
let c = t.match(
|
|
1264
|
+
var ct = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, lt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, ut = /^'([^]*?)'?$/, dt = /''/g, ft = /[a-zA-Z]/;
|
|
1265
|
+
function Y(e, t, n) {
|
|
1266
|
+
let r = pe(), i = n?.locale ?? r.locale ?? Be, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = G(e, n?.in);
|
|
1267
|
+
if (!Ce(s)) throw RangeError("Invalid time value");
|
|
1268
|
+
let c = t.match(lt).map((e) => {
|
|
1269
1269
|
let t = e[0];
|
|
1270
1270
|
if (t === "p" || t === "P") {
|
|
1271
|
-
let n =
|
|
1271
|
+
let n = et[t];
|
|
1272
1272
|
return n(e, i.formatLong);
|
|
1273
1273
|
}
|
|
1274
1274
|
return e;
|
|
1275
|
-
}).join("").match(
|
|
1275
|
+
}).join("").match(ct).map((e) => {
|
|
1276
1276
|
if (e === "''") return {
|
|
1277
1277
|
isToken: !1,
|
|
1278
1278
|
value: "'"
|
|
@@ -1280,13 +1280,13 @@ function J(e, t, n) {
|
|
|
1280
1280
|
let t = e[0];
|
|
1281
1281
|
if (t === "'") return {
|
|
1282
1282
|
isToken: !1,
|
|
1283
|
-
value:
|
|
1283
|
+
value: pt(e)
|
|
1284
1284
|
};
|
|
1285
|
-
if (
|
|
1285
|
+
if (Je[t]) return {
|
|
1286
1286
|
isToken: !0,
|
|
1287
1287
|
value: e
|
|
1288
1288
|
};
|
|
1289
|
-
if (t.match(
|
|
1289
|
+
if (t.match(ft)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
1290
1290
|
return {
|
|
1291
1291
|
isToken: !1,
|
|
1292
1292
|
value: e
|
|
@@ -1301,72 +1301,72 @@ function J(e, t, n) {
|
|
|
1301
1301
|
return c.map((r) => {
|
|
1302
1302
|
if (!r.isToken) return r.value;
|
|
1303
1303
|
let a = r.value;
|
|
1304
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
1305
|
-
let o =
|
|
1304
|
+
(!n?.useAdditionalWeekYearTokens && at(a) || !n?.useAdditionalDayOfYearTokens && it(a)) && ot(a, t, String(e));
|
|
1305
|
+
let o = Je[a[0]];
|
|
1306
1306
|
return o(s, a, i.localize, l);
|
|
1307
1307
|
}).join("");
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1310
|
-
let t = e.match(
|
|
1311
|
-
return t ? t[1].replace(
|
|
1309
|
+
function pt(e) {
|
|
1310
|
+
let t = e.match(ut);
|
|
1311
|
+
return t ? t[1].replace(dt, "'") : e;
|
|
1312
1312
|
}
|
|
1313
1313
|
//#endregion
|
|
1314
1314
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getHours.js
|
|
1315
|
-
function
|
|
1316
|
-
return
|
|
1315
|
+
function mt(e, t) {
|
|
1316
|
+
return G(e, t?.in).getHours();
|
|
1317
1317
|
}
|
|
1318
1318
|
//#endregion
|
|
1319
1319
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/getMinutes.js
|
|
1320
|
-
function
|
|
1321
|
-
return
|
|
1320
|
+
function ht(e, t) {
|
|
1321
|
+
return G(e, t?.in).getMinutes();
|
|
1322
1322
|
}
|
|
1323
1323
|
//#endregion
|
|
1324
1324
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isAfter.js
|
|
1325
|
-
function
|
|
1326
|
-
return +
|
|
1325
|
+
function gt(e, t) {
|
|
1326
|
+
return +G(e) > +G(t);
|
|
1327
1327
|
}
|
|
1328
1328
|
//#endregion
|
|
1329
1329
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isBefore.js
|
|
1330
|
-
function
|
|
1331
|
-
return +
|
|
1330
|
+
function _t(e, t) {
|
|
1331
|
+
return +G(e) < +G(t);
|
|
1332
1332
|
}
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isSameMonth.js
|
|
1335
|
-
function
|
|
1336
|
-
let [r, i] =
|
|
1335
|
+
function vt(e, t, n) {
|
|
1336
|
+
let [r, i] = ge(n?.in, e, t);
|
|
1337
1337
|
return r.getFullYear() === i.getFullYear() && r.getMonth() === i.getMonth();
|
|
1338
1338
|
}
|
|
1339
1339
|
//#endregion
|
|
1340
1340
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/isToday.js
|
|
1341
|
-
function
|
|
1342
|
-
return
|
|
1341
|
+
function yt(e, t) {
|
|
1342
|
+
return xe(W(t?.in || e, e), be(t?.in || e));
|
|
1343
1343
|
}
|
|
1344
1344
|
//#endregion
|
|
1345
1345
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setHours.js
|
|
1346
|
-
function
|
|
1347
|
-
let r =
|
|
1346
|
+
function bt(e, t, n) {
|
|
1347
|
+
let r = G(e, n?.in);
|
|
1348
1348
|
return r.setHours(t), r;
|
|
1349
1349
|
}
|
|
1350
1350
|
//#endregion
|
|
1351
1351
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setMinutes.js
|
|
1352
|
-
function
|
|
1353
|
-
let r =
|
|
1352
|
+
function xt(e, t, n) {
|
|
1353
|
+
let r = G(e, n?.in);
|
|
1354
1354
|
return r.setMinutes(t), r;
|
|
1355
1355
|
}
|
|
1356
1356
|
//#endregion
|
|
1357
1357
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/setSeconds.js
|
|
1358
|
-
function
|
|
1359
|
-
let r =
|
|
1358
|
+
function St(e, t, n) {
|
|
1359
|
+
let r = G(e, n?.in);
|
|
1360
1360
|
return r.setSeconds(t), r;
|
|
1361
1361
|
}
|
|
1362
1362
|
//#endregion
|
|
1363
1363
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/subMonths.js
|
|
1364
|
-
function
|
|
1365
|
-
return
|
|
1364
|
+
function Ct(e, t, n) {
|
|
1365
|
+
return de(e, -t, n);
|
|
1366
1366
|
}
|
|
1367
1367
|
//#endregion
|
|
1368
1368
|
//#region ../../node_modules/.pnpm/date-fns@4.4.0/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js
|
|
1369
|
-
var
|
|
1369
|
+
var wt = {
|
|
1370
1370
|
lessThanXSeconds: {
|
|
1371
1371
|
one: "menos de um segundo",
|
|
1372
1372
|
other: "menos de {{count}} segundos"
|
|
@@ -1428,11 +1428,11 @@ var Tt = {
|
|
|
1428
1428
|
one: "quase 1 ano",
|
|
1429
1429
|
other: "quase {{count}} anos"
|
|
1430
1430
|
}
|
|
1431
|
-
},
|
|
1432
|
-
let r, i =
|
|
1431
|
+
}, Tt = (e, t, n) => {
|
|
1432
|
+
let r, i = wt[e];
|
|
1433
1433
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", String(t)), n?.addSuffix ? n.comparison && n.comparison > 0 ? "em " + r : "há " + r : r;
|
|
1434
|
-
},
|
|
1435
|
-
date:
|
|
1434
|
+
}, Et = {
|
|
1435
|
+
date: Ae({
|
|
1436
1436
|
formats: {
|
|
1437
1437
|
full: "EEEE, d 'de' MMMM 'de' y",
|
|
1438
1438
|
long: "d 'de' MMMM 'de' y",
|
|
@@ -1441,7 +1441,7 @@ var Tt = {
|
|
|
1441
1441
|
},
|
|
1442
1442
|
defaultWidth: "full"
|
|
1443
1443
|
}),
|
|
1444
|
-
time:
|
|
1444
|
+
time: Ae({
|
|
1445
1445
|
formats: {
|
|
1446
1446
|
full: "HH:mm:ss zzzz",
|
|
1447
1447
|
long: "HH:mm:ss z",
|
|
@@ -1450,7 +1450,7 @@ var Tt = {
|
|
|
1450
1450
|
},
|
|
1451
1451
|
defaultWidth: "full"
|
|
1452
1452
|
}),
|
|
1453
|
-
dateTime:
|
|
1453
|
+
dateTime: Ae({
|
|
1454
1454
|
formats: {
|
|
1455
1455
|
full: "{{date}} 'às' {{time}}",
|
|
1456
1456
|
long: "{{date}} 'às' {{time}}",
|
|
@@ -1459,7 +1459,7 @@ var Tt = {
|
|
|
1459
1459
|
},
|
|
1460
1460
|
defaultWidth: "full"
|
|
1461
1461
|
})
|
|
1462
|
-
},
|
|
1462
|
+
}, Dt = {
|
|
1463
1463
|
lastWeek: (e) => {
|
|
1464
1464
|
let t = e.getDay();
|
|
1465
1465
|
return "'" + (t === 0 || t === 6 ? "último" : "última") + "' eeee 'às' p";
|
|
@@ -1469,12 +1469,12 @@ var Tt = {
|
|
|
1469
1469
|
tomorrow: "'amanhã às' p",
|
|
1470
1470
|
nextWeek: "eeee 'às' p",
|
|
1471
1471
|
other: "P"
|
|
1472
|
-
},
|
|
1472
|
+
}, Ot = {
|
|
1473
1473
|
code: "pt-BR",
|
|
1474
|
-
formatDistance:
|
|
1475
|
-
formatLong:
|
|
1474
|
+
formatDistance: Tt,
|
|
1475
|
+
formatLong: Et,
|
|
1476
1476
|
formatRelative: (e, t, n, r) => {
|
|
1477
|
-
let i =
|
|
1477
|
+
let i = Dt[e];
|
|
1478
1478
|
return typeof i == "function" ? i(t) : i;
|
|
1479
1479
|
},
|
|
1480
1480
|
localize: {
|
|
@@ -1482,7 +1482,7 @@ var Tt = {
|
|
|
1482
1482
|
let n = Number(e);
|
|
1483
1483
|
return t?.unit === "week" ? n + "ª" : n + "º";
|
|
1484
1484
|
},
|
|
1485
|
-
era:
|
|
1485
|
+
era: Pe({
|
|
1486
1486
|
values: {
|
|
1487
1487
|
narrow: ["AC", "DC"],
|
|
1488
1488
|
abbreviated: ["AC", "DC"],
|
|
@@ -1490,7 +1490,7 @@ var Tt = {
|
|
|
1490
1490
|
},
|
|
1491
1491
|
defaultWidth: "wide"
|
|
1492
1492
|
}),
|
|
1493
|
-
quarter:
|
|
1493
|
+
quarter: Pe({
|
|
1494
1494
|
values: {
|
|
1495
1495
|
narrow: [
|
|
1496
1496
|
"1",
|
|
@@ -1514,7 +1514,7 @@ var Tt = {
|
|
|
1514
1514
|
defaultWidth: "wide",
|
|
1515
1515
|
argumentCallback: (e) => e - 1
|
|
1516
1516
|
}),
|
|
1517
|
-
month:
|
|
1517
|
+
month: Pe({
|
|
1518
1518
|
values: {
|
|
1519
1519
|
narrow: [
|
|
1520
1520
|
"j",
|
|
@@ -1561,7 +1561,7 @@ var Tt = {
|
|
|
1561
1561
|
},
|
|
1562
1562
|
defaultWidth: "wide"
|
|
1563
1563
|
}),
|
|
1564
|
-
day:
|
|
1564
|
+
day: Pe({
|
|
1565
1565
|
values: {
|
|
1566
1566
|
narrow: [
|
|
1567
1567
|
"D",
|
|
@@ -1602,7 +1602,7 @@ var Tt = {
|
|
|
1602
1602
|
},
|
|
1603
1603
|
defaultWidth: "wide"
|
|
1604
1604
|
}),
|
|
1605
|
-
dayPeriod:
|
|
1605
|
+
dayPeriod: Pe({
|
|
1606
1606
|
values: {
|
|
1607
1607
|
narrow: {
|
|
1608
1608
|
am: "a",
|
|
@@ -1672,12 +1672,12 @@ var Tt = {
|
|
|
1672
1672
|
})
|
|
1673
1673
|
},
|
|
1674
1674
|
match: {
|
|
1675
|
-
ordinalNumber:
|
|
1675
|
+
ordinalNumber: ze({
|
|
1676
1676
|
matchPattern: /^(\d+)[ºªo]?/i,
|
|
1677
1677
|
parsePattern: /\d+/i,
|
|
1678
1678
|
valueCallback: (e) => parseInt(e, 10)
|
|
1679
1679
|
}),
|
|
1680
|
-
era:
|
|
1680
|
+
era: Ie({
|
|
1681
1681
|
matchPatterns: {
|
|
1682
1682
|
narrow: /^(ac|dc|a|d)/i,
|
|
1683
1683
|
abbreviated: /^(a\.?\s?c\.?|d\.?\s?c\.?)/i,
|
|
@@ -1690,7 +1690,7 @@ var Tt = {
|
|
|
1690
1690
|
},
|
|
1691
1691
|
defaultParseWidth: "any"
|
|
1692
1692
|
}),
|
|
1693
|
-
quarter:
|
|
1693
|
+
quarter: Ie({
|
|
1694
1694
|
matchPatterns: {
|
|
1695
1695
|
narrow: /^[1234]/i,
|
|
1696
1696
|
abbreviated: /^T[1234]/i,
|
|
@@ -1706,7 +1706,7 @@ var Tt = {
|
|
|
1706
1706
|
defaultParseWidth: "any",
|
|
1707
1707
|
valueCallback: (e) => e + 1
|
|
1708
1708
|
}),
|
|
1709
|
-
month:
|
|
1709
|
+
month: Ie({
|
|
1710
1710
|
matchPatterns: {
|
|
1711
1711
|
narrow: /^[jfmajsond]/i,
|
|
1712
1712
|
abbreviated: /^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,
|
|
@@ -1745,7 +1745,7 @@ var Tt = {
|
|
|
1745
1745
|
},
|
|
1746
1746
|
defaultParseWidth: "any"
|
|
1747
1747
|
}),
|
|
1748
|
-
day:
|
|
1748
|
+
day: Ie({
|
|
1749
1749
|
matchPatterns: {
|
|
1750
1750
|
narrow: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
1751
1751
|
short: /^(dom|[23456]ª?|s[aá]b)/i,
|
|
@@ -1784,7 +1784,7 @@ var Tt = {
|
|
|
1784
1784
|
},
|
|
1785
1785
|
defaultParseWidth: "any"
|
|
1786
1786
|
}),
|
|
1787
|
-
dayPeriod:
|
|
1787
|
+
dayPeriod: Ie({
|
|
1788
1788
|
matchPatterns: {
|
|
1789
1789
|
narrow: /^(a|p|mn|md|(da) (manhã|tarde|noite))/i,
|
|
1790
1790
|
any: /^([ap]\.?\s?m\.?|meia[-\s]noite|meio[-\s]dia|(da) (manhã|tarde|noite))/i
|
|
@@ -1807,7 +1807,7 @@ var Tt = {
|
|
|
1807
1807
|
weekStartsOn: 0,
|
|
1808
1808
|
firstWeekContainsDate: 1
|
|
1809
1809
|
}
|
|
1810
|
-
},
|
|
1810
|
+
}, kt = {
|
|
1811
1811
|
sm: {
|
|
1812
1812
|
classes: "size-[calc(1.75rem*1.188*1.1)] rounded-[min(var(--radius-eds-xs),12px)] [&_svg:not([class*='size-'])]:size-3.5",
|
|
1813
1813
|
iconPx: 14
|
|
@@ -1821,11 +1821,11 @@ var Tt = {
|
|
|
1821
1821
|
iconPx: 16
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
1824
|
-
function
|
|
1825
|
-
let f = ee(), p = L(
|
|
1824
|
+
function At({ icon: t, label: n, className: r, variant: i = "ghost", color: a = "neutral-main", hoverColor: o, size: s = "md", disabled: c, style: l, tooltip: u, ...d }) {
|
|
1825
|
+
let f = ee(), p = L(kt, s, z.size), m = L(R.variant, i, z.variant), h = /* @__PURE__ */ _(e, {
|
|
1826
1826
|
style: {
|
|
1827
1827
|
"--eds-btn-base-accent": `var(--color-eds-${a})`,
|
|
1828
|
-
...
|
|
1828
|
+
...ie.has(a) ? { "--eds-btn-solid-fg": "#fff" } : {},
|
|
1829
1829
|
...o ? { "--eds-btn-hover-accent": `var(--color-eds-${o})` } : {},
|
|
1830
1830
|
...l
|
|
1831
1831
|
},
|
|
@@ -1858,7 +1858,7 @@ function jt({ icon: t, label: n, className: r, variant: i = "ghost", color: a =
|
|
|
1858
1858
|
}
|
|
1859
1859
|
//#endregion
|
|
1860
1860
|
//#region src/components/Calendar/Calendar.tsx
|
|
1861
|
-
var
|
|
1861
|
+
var jt = [
|
|
1862
1862
|
"Dom",
|
|
1863
1863
|
"Seg",
|
|
1864
1864
|
"Ter",
|
|
@@ -1867,16 +1867,16 @@ var Mt = [
|
|
|
1867
1867
|
"Sex",
|
|
1868
1868
|
"Sáb"
|
|
1869
1869
|
];
|
|
1870
|
-
function
|
|
1871
|
-
let n =
|
|
1872
|
-
for (let e = n; e <= r; e =
|
|
1870
|
+
function Mt(e, t) {
|
|
1871
|
+
let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
|
|
1872
|
+
for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
|
|
1873
1873
|
return i;
|
|
1874
1874
|
}
|
|
1875
|
-
function
|
|
1876
|
-
let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...
|
|
1875
|
+
function Nt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVisibleEvents: i = 3, weekStartsOn: a = 0, onDayClick: o, onEventClick: l, renderEvent: u, showNavigation: d = !0, className: f }) {
|
|
1876
|
+
let [p, m] = E(() => t ?? /* @__PURE__ */ new Date()), h = e !== void 0, g = h ? e : p, y = w(() => [...jt.slice(a), ...jt.slice(0, a)], [a]), b = w(() => Mt(g, a), [g, a]), x = w(() => {
|
|
1877
1877
|
let e = /* @__PURE__ */ new Map();
|
|
1878
1878
|
for (let t of r) {
|
|
1879
|
-
let n =
|
|
1879
|
+
let n = Y(t.date, "yyyy-MM-dd"), r = e.get(n);
|
|
1880
1880
|
r ? r.push(t) : e.set(n, [t]);
|
|
1881
1881
|
}
|
|
1882
1882
|
return e;
|
|
@@ -1891,19 +1891,19 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1891
1891
|
className: "mb-3 flex shrink-0 items-center justify-between",
|
|
1892
1892
|
children: [/* @__PURE__ */ _("span", {
|
|
1893
1893
|
className: "text-base font-medium text-eds-neutral-main capitalize",
|
|
1894
|
-
children:
|
|
1894
|
+
children: Y(g, "MMMM yyyy", { locale: Ot })
|
|
1895
1895
|
}), /* @__PURE__ */ v("div", {
|
|
1896
1896
|
className: "flex items-center gap-1",
|
|
1897
|
-
children: [/* @__PURE__ */ _(
|
|
1897
|
+
children: [/* @__PURE__ */ _(At, {
|
|
1898
1898
|
icon: s,
|
|
1899
1899
|
label: "Mês anterior",
|
|
1900
1900
|
size: "sm",
|
|
1901
|
-
onClick: () => S(
|
|
1902
|
-
}), /* @__PURE__ */ _(
|
|
1901
|
+
onClick: () => S(Ct(g, 1))
|
|
1902
|
+
}), /* @__PURE__ */ _(At, {
|
|
1903
1903
|
icon: c,
|
|
1904
1904
|
label: "Próximo mês",
|
|
1905
1905
|
size: "sm",
|
|
1906
|
-
onClick: () => S(
|
|
1906
|
+
onClick: () => S(de(g, 1))
|
|
1907
1907
|
})]
|
|
1908
1908
|
})]
|
|
1909
1909
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -1917,7 +1917,7 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1917
1917
|
}), /* @__PURE__ */ _("div", {
|
|
1918
1918
|
className: "grid flex-1 auto-rows-fr grid-cols-7",
|
|
1919
1919
|
children: b.map((e, t) => {
|
|
1920
|
-
let n =
|
|
1920
|
+
let n = vt(e, g), r = yt(e), a = Y(e, "yyyy-MM-dd"), s = x.get(a) ?? [], c = s.slice(0, i), d = s.length - c.length, f = n ? Y(e, "d") : Y(e, "d MMM", { locale: Ot });
|
|
1921
1921
|
return /* @__PURE__ */ v("div", {
|
|
1922
1922
|
"data-date": a,
|
|
1923
1923
|
onClick: () => o?.(e),
|
|
@@ -1972,73 +1972,73 @@ function Pt({ month: e, defaultMonth: t, onMonthChange: n, events: r = [], maxVi
|
|
|
1972
1972
|
}
|
|
1973
1973
|
//#endregion
|
|
1974
1974
|
//#region src/components/Card/Card.tsx
|
|
1975
|
-
function
|
|
1975
|
+
function Pt({ className: e, ...t }) {
|
|
1976
1976
|
return /* @__PURE__ */ _("div", {
|
|
1977
1977
|
"data-eds-component": "Card",
|
|
1978
1978
|
className: I("flex flex-col gap-6 rounded-eds-sm border border-eds-outline-border bg-white py-6 text-eds-neutral-main shadow-sm", e),
|
|
1979
1979
|
...t
|
|
1980
1980
|
});
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1982
|
+
function Ft({ className: e, ...t }) {
|
|
1983
1983
|
return /* @__PURE__ */ _("div", {
|
|
1984
1984
|
"data-slot": "card-header",
|
|
1985
1985
|
className: I("grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-[[data-slot=card-action]]:grid-cols-[1fr_auto]", e),
|
|
1986
1986
|
...t
|
|
1987
1987
|
});
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function It({ className: e, ...t }) {
|
|
1990
1990
|
return /* @__PURE__ */ _("h3", {
|
|
1991
1991
|
"data-slot": "card-title",
|
|
1992
1992
|
className: I("text-lg leading-none font-semibold text-eds-neutral-main", e),
|
|
1993
1993
|
...t
|
|
1994
1994
|
});
|
|
1995
1995
|
}
|
|
1996
|
-
function
|
|
1996
|
+
function Lt({ className: e, ...t }) {
|
|
1997
1997
|
return /* @__PURE__ */ _("p", {
|
|
1998
1998
|
"data-slot": "card-description",
|
|
1999
1999
|
className: I("text-sm text-eds-neutral-elements", e),
|
|
2000
2000
|
...t
|
|
2001
2001
|
});
|
|
2002
2002
|
}
|
|
2003
|
-
function
|
|
2003
|
+
function Rt({ className: e, ...t }) {
|
|
2004
2004
|
return /* @__PURE__ */ _("div", {
|
|
2005
2005
|
"data-slot": "card-action",
|
|
2006
2006
|
className: I("col-start-2 row-span-2 row-start-1 self-start justify-self-end", e),
|
|
2007
2007
|
...t
|
|
2008
2008
|
});
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function zt({ className: e, ...t }) {
|
|
2011
2011
|
return /* @__PURE__ */ _("div", {
|
|
2012
2012
|
"data-slot": "card-content",
|
|
2013
2013
|
className: I("px-6", e),
|
|
2014
2014
|
...t
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2017
|
+
function Bt({ className: e, ...t }) {
|
|
2018
2018
|
return /* @__PURE__ */ _("div", {
|
|
2019
2019
|
"data-slot": "card-footer",
|
|
2020
2020
|
className: I("-mb-6 -mt-6 flex flex-col-reverse gap-2 rounded-b-eds-sm border-t border-eds-outline-border bg-eds-neutral-background px-6 py-4 sm:flex-row sm:justify-end", e),
|
|
2021
2021
|
...t
|
|
2022
2022
|
});
|
|
2023
2023
|
}
|
|
2024
|
-
|
|
2025
|
-
var
|
|
2026
|
-
Header:
|
|
2027
|
-
Title:
|
|
2028
|
-
Description:
|
|
2029
|
-
Action:
|
|
2030
|
-
Content:
|
|
2031
|
-
Footer:
|
|
2032
|
-
}),
|
|
2024
|
+
Ft.displayName = "Card.Header", It.displayName = "Card.Title", Lt.displayName = "Card.Description", Rt.displayName = "Card.Action", zt.displayName = "Card.Content", Bt.displayName = "Card.Footer";
|
|
2025
|
+
var Vt = Object.assign(Pt, {
|
|
2026
|
+
Header: Ft,
|
|
2027
|
+
Title: It,
|
|
2028
|
+
Description: Lt,
|
|
2029
|
+
Action: Rt,
|
|
2030
|
+
Content: zt,
|
|
2031
|
+
Footer: Bt
|
|
2032
|
+
}), Ht = {
|
|
2033
2033
|
default: { classes: "gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2" },
|
|
2034
2034
|
sm: { classes: "gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5" },
|
|
2035
2035
|
xs: { classes: "gap-1.5 rounded-eds-lil text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1" }
|
|
2036
|
-
},
|
|
2036
|
+
}, Ut = {
|
|
2037
2037
|
horizontal: { classes: "min-w-40 items-center" },
|
|
2038
2038
|
vertical: { classes: "w-24 flex-col has-data-[slot=attachment-content]:w-[7.5rem]" }
|
|
2039
2039
|
};
|
|
2040
|
-
function
|
|
2041
|
-
let a = L(
|
|
2040
|
+
function Wt({ className: e, state: t = "done", size: n = "default", orientation: r = "horizontal", ...i }) {
|
|
2041
|
+
let a = L(Ht, n, "default"), o = L(Ut, r, "horizontal");
|
|
2042
2042
|
return /* @__PURE__ */ _("div", {
|
|
2043
2043
|
"data-eds-component": "Attachment",
|
|
2044
2044
|
"data-slot": "attachment",
|
|
@@ -2049,7 +2049,7 @@ function Gt({ className: e, state: t = "done", size: n = "default", orientation:
|
|
|
2049
2049
|
...i
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function Gt({ className: e, variant: t = "icon", ...n }) {
|
|
2053
2053
|
return /* @__PURE__ */ _("div", {
|
|
2054
2054
|
"data-slot": "attachment-media",
|
|
2055
2055
|
"data-variant": t,
|
|
@@ -2057,36 +2057,36 @@ function Kt({ className: e, variant: t = "icon", ...n }) {
|
|
|
2057
2057
|
...n
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Kt({ className: e, ...t }) {
|
|
2061
2061
|
return /* @__PURE__ */ _("div", {
|
|
2062
2062
|
"data-slot": "attachment-content",
|
|
2063
2063
|
className: I("max-w-full min-w-0 flex-1 leading-tight group-data-[orientation=vertical]/attachment:px-1", e),
|
|
2064
2064
|
...t
|
|
2065
2065
|
});
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function qt({ className: e, ...t }) {
|
|
2068
2068
|
return /* @__PURE__ */ _("span", {
|
|
2069
2069
|
"data-slot": "attachment-title",
|
|
2070
2070
|
className: I("block max-w-full min-w-0 truncate font-medium text-eds-neutral-main", "group-data-[state=uploading]/attachment:animate-eds-shimmer group-data-[state=processing]/attachment:animate-eds-shimmer", "group-data-[state=uploading]/attachment:text-eds-blue-main group-data-[state=processing]/attachment:text-eds-blue-main", e),
|
|
2071
2071
|
...t
|
|
2072
2072
|
});
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2074
|
+
function Jt({ className: e, ...t }) {
|
|
2075
2075
|
return /* @__PURE__ */ _("span", {
|
|
2076
2076
|
"data-slot": "attachment-description",
|
|
2077
2077
|
className: I("mt-0.5 block max-w-full min-w-0 truncate text-xs text-eds-neutral-elements", "group-data-[state=error]/attachment:text-eds-red-main/85", "group-data-[state=uploading]/attachment:text-eds-blue-middle group-data-[state=processing]/attachment:text-eds-blue-middle", e),
|
|
2078
2078
|
...t
|
|
2079
2079
|
});
|
|
2080
2080
|
}
|
|
2081
|
-
function
|
|
2081
|
+
function Yt({ className: e, ...t }) {
|
|
2082
2082
|
return /* @__PURE__ */ _("div", {
|
|
2083
2083
|
"data-slot": "attachment-actions",
|
|
2084
2084
|
className: I("relative z-20 flex shrink-0 items-center", "group-data-[orientation=vertical]/attachment:absolute group-data-[orientation=vertical]/attachment:top-3 group-data-[orientation=vertical]/attachment:right-3 group-data-[orientation=vertical]/attachment:gap-1", e),
|
|
2085
2085
|
...t
|
|
2086
2086
|
});
|
|
2087
2087
|
}
|
|
2088
|
-
function
|
|
2089
|
-
return /* @__PURE__ */ _(
|
|
2088
|
+
function Xt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", className: r, ...i }) {
|
|
2089
|
+
return /* @__PURE__ */ _(At, {
|
|
2090
2090
|
"data-slot": "attachment-action",
|
|
2091
2091
|
variant: e,
|
|
2092
2092
|
color: t,
|
|
@@ -2095,7 +2095,7 @@ function Zt({ variant: e = "ghost", color: t = "blue-main", size: n = "sm", clas
|
|
|
2095
2095
|
...i
|
|
2096
2096
|
});
|
|
2097
2097
|
}
|
|
2098
|
-
function
|
|
2098
|
+
function Zt({ className: e, render: t, type: n, ...r }) {
|
|
2099
2099
|
return ne({
|
|
2100
2100
|
defaultTagName: "button",
|
|
2101
2101
|
props: te({
|
|
@@ -2106,7 +2106,7 @@ function Qt({ className: e, render: t, type: n, ...r }) {
|
|
|
2106
2106
|
state: { slot: "attachment-trigger" }
|
|
2107
2107
|
});
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function Qt({ className: e, ...t }) {
|
|
2110
2110
|
return /* @__PURE__ */ _("div", {
|
|
2111
2111
|
"data-eds-component": "AttachmentGroup",
|
|
2112
2112
|
"data-slot": "attachment-group",
|
|
@@ -2114,21 +2114,21 @@ function $t({ className: e, ...t }) {
|
|
|
2114
2114
|
...t
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
2117
|
-
|
|
2118
|
-
var
|
|
2119
|
-
Media:
|
|
2120
|
-
Content:
|
|
2121
|
-
Title:
|
|
2122
|
-
Description:
|
|
2123
|
-
Actions:
|
|
2124
|
-
Action:
|
|
2125
|
-
Trigger:
|
|
2126
|
-
Group:
|
|
2127
|
-
}),
|
|
2128
|
-
function
|
|
2117
|
+
Gt.displayName = "Attachment.Media", Kt.displayName = "Attachment.Content", qt.displayName = "Attachment.Title", Jt.displayName = "Attachment.Description", Yt.displayName = "Attachment.Actions", Xt.displayName = "Attachment.Action", Zt.displayName = "Attachment.Trigger", Qt.displayName = "Attachment.Group";
|
|
2118
|
+
var $t = Object.assign(Wt, {
|
|
2119
|
+
Media: Gt,
|
|
2120
|
+
Content: Kt,
|
|
2121
|
+
Title: qt,
|
|
2122
|
+
Description: Jt,
|
|
2123
|
+
Actions: Yt,
|
|
2124
|
+
Action: Xt,
|
|
2125
|
+
Trigger: Zt,
|
|
2126
|
+
Group: Qt
|
|
2127
|
+
}), en = I("relative flex size-[18px] shrink-0 items-center justify-center rounded-[4px] border border-eds-neutral-elements bg-white transition-colors", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-brand focus-visible:ring-offset-1", "data-checked:border-eds-blue-main data-checked:bg-eds-blue-main", "data-indeterminate:border-eds-blue-main data-indeterminate:bg-eds-blue-main", "data-disabled:cursor-not-allowed data-disabled:border-eds-neutral-disabled data-disabled:bg-eds-neutral-background data-disabled:opacity-70");
|
|
2128
|
+
function tn({ className: e, ...t }) {
|
|
2129
2129
|
return /* @__PURE__ */ _(O.Root, {
|
|
2130
2130
|
"data-eds-component": "Checkbox",
|
|
2131
|
-
className: I(
|
|
2131
|
+
className: I(en, e),
|
|
2132
2132
|
...t,
|
|
2133
2133
|
children: /* @__PURE__ */ _(O.Indicator, {
|
|
2134
2134
|
keepMounted: !0,
|
|
@@ -2148,17 +2148,17 @@ function nn({ className: e, ...t }) {
|
|
|
2148
2148
|
})
|
|
2149
2149
|
});
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function nn({ className: e, label: t, disabled: n, ...r }) {
|
|
2152
2152
|
return t ? /* @__PURE__ */ _(re.Root, {
|
|
2153
2153
|
className: I("inline-flex", e),
|
|
2154
2154
|
children: /* @__PURE__ */ v(re.Label, {
|
|
2155
2155
|
className: I("inline-flex min-h-7 cursor-pointer items-center gap-[9px] rounded-md pl-2 text-base leading-6 text-eds-default", n && "cursor-not-allowed opacity-70"),
|
|
2156
|
-
children: [/* @__PURE__ */ _(
|
|
2156
|
+
children: [/* @__PURE__ */ _(tn, {
|
|
2157
2157
|
disabled: n,
|
|
2158
2158
|
...r
|
|
2159
2159
|
}), /* @__PURE__ */ _("span", { children: t })]
|
|
2160
2160
|
})
|
|
2161
|
-
}) : /* @__PURE__ */ _(
|
|
2161
|
+
}) : /* @__PURE__ */ _(tn, {
|
|
2162
2162
|
className: e,
|
|
2163
2163
|
disabled: n,
|
|
2164
2164
|
...r
|
|
@@ -2166,10 +2166,10 @@ function rn({ className: e, label: t, disabled: n, ...r }) {
|
|
|
2166
2166
|
}
|
|
2167
2167
|
//#endregion
|
|
2168
2168
|
//#region src/lib/field-styles.ts
|
|
2169
|
-
function
|
|
2169
|
+
function rn(e) {
|
|
2170
2170
|
return e ?? "floating";
|
|
2171
2171
|
}
|
|
2172
|
-
var
|
|
2172
|
+
var an = {
|
|
2173
2173
|
sm: {
|
|
2174
2174
|
control: "h-9 px-3",
|
|
2175
2175
|
trigger: "h-9 px-3",
|
|
@@ -2197,29 +2197,29 @@ var on = {
|
|
|
2197
2197
|
icon: "size-8",
|
|
2198
2198
|
paddingX: "px-4"
|
|
2199
2199
|
}
|
|
2200
|
-
},
|
|
2200
|
+
}, on = {
|
|
2201
2201
|
overlay: "z-[1300]",
|
|
2202
2202
|
popup: "z-[1400]",
|
|
2203
2203
|
overlayValue: 1300,
|
|
2204
2204
|
popupValue: 1400
|
|
2205
|
-
},
|
|
2206
|
-
function
|
|
2205
|
+
}, sn = "box-border inline-flex w-[214px] flex-col gap-1.5 data-fluid:w-full", cn = "flex items-center justify-between gap-3", ln = "inline-flex items-baseline gap-1 text-sm text-eds-neutral-main", un = "text-eds-neutral-disabled", dn = "placeholder:text-eds-neutral-disabled placeholder:opacity-100", fn = "data-placeholder:text-eds-neutral-disabled", pn = "group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70", mn = "box-border min-w-(--anchor-width) max-h-[280px] overflow-visible rounded-eds-xs border border-eds-outline-border bg-white py-1 shadow-[0_4px_6px_-1px_rgb(0_0_0_/_0.07),0_2px_4px_-2px_rgb(0_0_0_/_0.06)]", hn = "box-border max-h-60 overflow-y-auto overscroll-contain p-0.5 outline-none", gn = "box-border flex w-full cursor-pointer items-center gap-2 rounded-md px-2.5 py-2 text-left text-sm text-eds-neutral-main data-highlighted:bg-eds-neutral-elements/10 data-disabled:cursor-not-allowed data-disabled:opacity-50", _n = "inline-flex size-4 shrink-0 items-center justify-center text-eds-blue-main", vn = `${on.popup} outline-none`, yn = { zIndex: on.popupValue };
|
|
2206
|
+
function bn(e) {
|
|
2207
2207
|
return `pointer-events-none absolute top-0 z-1 -translate-y-1/2 bg-transparent px-0 pr-1 text-sm text-eds-neutral-elements ${e} before:absolute before:inset-x-0 before:top-1/2 before:-z-10 before:h-0.5 before:-translate-y-1/2 before:bg-white before:content-[''] group-data-disabled:before:bg-eds-neutral-background`;
|
|
2208
2208
|
}
|
|
2209
2209
|
//#endregion
|
|
2210
2210
|
//#region src/components/ComboBox/Combobox.tsx
|
|
2211
|
-
var
|
|
2211
|
+
var xn = {
|
|
2212
2212
|
default: "",
|
|
2213
2213
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
2214
2214
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
2215
|
-
},
|
|
2216
|
-
function
|
|
2217
|
-
let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N =
|
|
2215
|
+
}, Sn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-md text-eds-neutral-elements hover:not-data-disabled:bg-eds-neutral-elements/8 hover:not-data-disabled:text-eds-neutral-main focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", Cn = "inline-flex h-6 max-w-full items-center gap-1 rounded-eds-lil bg-eds-blue-background/45 py-0 pr-1 pl-2 text-xs text-eds-blue-main", wn = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded p-1 text-eds-blue-main hover:not-data-disabled:bg-eds-blue-main/15 data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50", Tn = k.Root;
|
|
2216
|
+
function En({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", emptyMessage: p = "Nenhum resultado.", readOnly: h = !1, id: g, name: y, multiple: b, value: x, defaultValue: S, onValueChange: C, getItemLabel: w, getItemValue: T, getRemoveItemLabel: E, renderItem: D, renderChip: te, className: ne, inputProps: O }) {
|
|
2217
|
+
let re = ee(), A = g ?? re, j = l === "invalid", M = j || !!d, N = an[u], P = rn(t), F = P === "floating", L = (e) => w ? w(e) : e.label ?? "", ie = (e) => T ? T(e) : e.value ?? L(e), R = (e) => {
|
|
2218
2218
|
C?.(e);
|
|
2219
|
-
},
|
|
2219
|
+
}, z = w ? (e) => w(e) : void 0, B = T ? (e) => T(e) : void 0, V = /* @__PURE__ */ v("div", {
|
|
2220
2220
|
className: "inline-flex shrink-0 items-center",
|
|
2221
2221
|
children: [/* @__PURE__ */ _(k.Clear, {
|
|
2222
|
-
className: I(
|
|
2222
|
+
className: I(Sn, N.icon),
|
|
2223
2223
|
"aria-label": "Limpar seleção",
|
|
2224
2224
|
"data-disabled": i || void 0,
|
|
2225
2225
|
children: /* @__PURE__ */ _(m, {
|
|
@@ -2228,7 +2228,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2228
2228
|
"aria-hidden": !0
|
|
2229
2229
|
})
|
|
2230
2230
|
}), /* @__PURE__ */ _(k.Trigger, {
|
|
2231
|
-
className: I(
|
|
2231
|
+
className: I(Sn, N.icon),
|
|
2232
2232
|
"aria-label": "Abrir lista",
|
|
2233
2233
|
"data-disabled": i || void 0,
|
|
2234
2234
|
children: /* @__PURE__ */ _(o, {
|
|
@@ -2238,7 +2238,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2238
2238
|
})
|
|
2239
2239
|
})]
|
|
2240
2240
|
}), ae = F ? /* @__PURE__ */ v("span", {
|
|
2241
|
-
className:
|
|
2241
|
+
className: bn(N.left),
|
|
2242
2242
|
children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
|
|
2243
2243
|
className: "text-eds-red-main",
|
|
2244
2244
|
"aria-hidden": "true",
|
|
@@ -2246,15 +2246,15 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2246
2246
|
})]
|
|
2247
2247
|
}) : null;
|
|
2248
2248
|
return /* @__PURE__ */ v("div", {
|
|
2249
|
-
className: I(
|
|
2249
|
+
className: I(sn, ne),
|
|
2250
2250
|
"data-fluid": c || void 0,
|
|
2251
2251
|
"data-eds-component": "Combobox",
|
|
2252
2252
|
"data-label-variant": P,
|
|
2253
2253
|
children: [
|
|
2254
2254
|
/* @__PURE__ */ _("div", {
|
|
2255
|
-
className:
|
|
2255
|
+
className: cn,
|
|
2256
2256
|
children: /* @__PURE__ */ v("label", {
|
|
2257
|
-
className: I(
|
|
2257
|
+
className: I(ln, F && "sr-only", !F && "font-medium"),
|
|
2258
2258
|
htmlFor: A,
|
|
2259
2259
|
children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
|
|
2260
2260
|
className: "text-eds-red-main",
|
|
@@ -2262,18 +2262,18 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2262
2262
|
})]
|
|
2263
2263
|
})
|
|
2264
2264
|
}),
|
|
2265
|
-
/* @__PURE__ */ v(
|
|
2265
|
+
/* @__PURE__ */ v(Tn, {
|
|
2266
2266
|
items: n,
|
|
2267
2267
|
name: y,
|
|
2268
2268
|
multiple: b,
|
|
2269
2269
|
disabled: i,
|
|
2270
2270
|
required: s,
|
|
2271
|
-
onValueChange: C ?
|
|
2271
|
+
onValueChange: C ? R : void 0,
|
|
2272
2272
|
...x === void 0 ? S === void 0 ? {} : { defaultValue: S } : { value: x },
|
|
2273
|
-
itemToStringLabel:
|
|
2273
|
+
itemToStringLabel: z,
|
|
2274
2274
|
itemToStringValue: B,
|
|
2275
2275
|
children: [b ? /* @__PURE__ */ v(k.Chips, {
|
|
2276
|
-
className: I(
|
|
2276
|
+
className: I(pn, "h-auto flex-wrap content-start gap-1.5", N.triggerMultiple, xn[l]),
|
|
2277
2277
|
"data-state": l,
|
|
2278
2278
|
"data-size": u,
|
|
2279
2279
|
"data-disabled": i || void 0,
|
|
@@ -2281,12 +2281,12 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2281
2281
|
children: [
|
|
2282
2282
|
ae,
|
|
2283
2283
|
/* @__PURE__ */ _(k.Value, { children: (e) => e.map((e) => /* @__PURE__ */ v(k.Chip, {
|
|
2284
|
-
className:
|
|
2284
|
+
className: Cn,
|
|
2285
2285
|
children: [/* @__PURE__ */ _("span", {
|
|
2286
2286
|
className: "truncate",
|
|
2287
2287
|
children: te ? te(e) : L(e)
|
|
2288
2288
|
}), /* @__PURE__ */ _(k.ChipRemove, {
|
|
2289
|
-
className:
|
|
2289
|
+
className: wn,
|
|
2290
2290
|
"aria-label": E ? E(e) : `Remover ${L(e)}`,
|
|
2291
2291
|
children: /* @__PURE__ */ _(m, {
|
|
2292
2292
|
size: 10,
|
|
@@ -2294,13 +2294,13 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2294
2294
|
"aria-hidden": !0
|
|
2295
2295
|
})
|
|
2296
2296
|
})]
|
|
2297
|
-
},
|
|
2297
|
+
}, ie(e))) }),
|
|
2298
2298
|
/* @__PURE__ */ v("div", {
|
|
2299
2299
|
className: "flex min-w-[120px] flex-1 items-center gap-1",
|
|
2300
2300
|
children: [/* @__PURE__ */ _(k.Input, {
|
|
2301
2301
|
...O,
|
|
2302
2302
|
id: A,
|
|
2303
|
-
className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer",
|
|
2303
|
+
className: I("min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", dn, N.text),
|
|
2304
2304
|
placeholder: r,
|
|
2305
2305
|
disabled: i,
|
|
2306
2306
|
readOnly: h,
|
|
@@ -2311,7 +2311,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2311
2311
|
})
|
|
2312
2312
|
]
|
|
2313
2313
|
}) : /* @__PURE__ */ v(k.InputGroup, {
|
|
2314
|
-
className: I(
|
|
2314
|
+
className: I(pn, "box-border py-0", N.trigger, xn[l]),
|
|
2315
2315
|
"data-state": l,
|
|
2316
2316
|
"data-size": u,
|
|
2317
2317
|
"data-disabled": i || void 0,
|
|
@@ -2321,7 +2321,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2321
2321
|
/* @__PURE__ */ _(k.Input, {
|
|
2322
2322
|
...O,
|
|
2323
2323
|
id: A,
|
|
2324
|
-
className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer",
|
|
2324
|
+
className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none disabled:cursor-not-allowed read-only:not-disabled:cursor-pointer", dn, N.text),
|
|
2325
2325
|
placeholder: r,
|
|
2326
2326
|
disabled: i,
|
|
2327
2327
|
readOnly: h,
|
|
@@ -2332,22 +2332,22 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2332
2332
|
V
|
|
2333
2333
|
]
|
|
2334
2334
|
}), /* @__PURE__ */ _(k.Portal, { children: /* @__PURE__ */ _(k.Positioner, {
|
|
2335
|
-
className:
|
|
2336
|
-
style:
|
|
2335
|
+
className: vn,
|
|
2336
|
+
style: yn,
|
|
2337
2337
|
positionMethod: "fixed",
|
|
2338
2338
|
sideOffset: 4,
|
|
2339
2339
|
children: /* @__PURE__ */ v(k.Popup, {
|
|
2340
|
-
className:
|
|
2340
|
+
className: mn,
|
|
2341
2341
|
children: [/* @__PURE__ */ _(k.Empty, { children: /* @__PURE__ */ _("div", {
|
|
2342
2342
|
className: "px-3 py-2.5 text-sm text-eds-neutral-elements",
|
|
2343
2343
|
children: p
|
|
2344
2344
|
}) }), /* @__PURE__ */ _(k.List, {
|
|
2345
|
-
className:
|
|
2345
|
+
className: hn,
|
|
2346
2346
|
children: (e) => /* @__PURE__ */ v(k.Item, {
|
|
2347
2347
|
value: e,
|
|
2348
|
-
className:
|
|
2348
|
+
className: gn,
|
|
2349
2349
|
children: [/* @__PURE__ */ _(k.ItemIndicator, {
|
|
2350
|
-
className:
|
|
2350
|
+
className: _n,
|
|
2351
2351
|
children: /* @__PURE__ */ _(a, {
|
|
2352
2352
|
size: 14,
|
|
2353
2353
|
strokeWidth: 2.5,
|
|
@@ -2357,7 +2357,7 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2357
2357
|
className: "block min-w-0 flex-1 text-left",
|
|
2358
2358
|
children: L(e)
|
|
2359
2359
|
})]
|
|
2360
|
-
},
|
|
2360
|
+
}, ie(e))
|
|
2361
2361
|
})]
|
|
2362
2362
|
})
|
|
2363
2363
|
}) })]
|
|
@@ -2373,11 +2373,11 @@ function Dn({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
2373
2373
|
}
|
|
2374
2374
|
//#endregion
|
|
2375
2375
|
//#region src/components/DatePicker/DatePicker.tsx
|
|
2376
|
-
var
|
|
2376
|
+
var Dn = {
|
|
2377
2377
|
default: "",
|
|
2378
2378
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
2379
2379
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
2380
|
-
},
|
|
2380
|
+
}, On = [
|
|
2381
2381
|
"D",
|
|
2382
2382
|
"S",
|
|
2383
2383
|
"T",
|
|
@@ -2386,38 +2386,38 @@ var On = {
|
|
|
2386
2386
|
"S",
|
|
2387
2387
|
"S"
|
|
2388
2388
|
];
|
|
2389
|
-
function
|
|
2390
|
-
let n =
|
|
2391
|
-
for (let e = n; e <= r; e =
|
|
2389
|
+
function kn(e, t) {
|
|
2390
|
+
let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
|
|
2391
|
+
for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
|
|
2392
2392
|
return i;
|
|
2393
2393
|
}
|
|
2394
|
-
function
|
|
2394
|
+
function An(e) {
|
|
2395
2395
|
return e.mode === "range";
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2398
|
-
let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y =
|
|
2397
|
+
function jn(e) {
|
|
2398
|
+
let { label: t = "Label", labelVariant: n, disabled: r = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data válida", id: p, weekStartsOn: m = 0, dateFormat: h = "dd/MM/yyyy", className: g } = e, y = An(e), b = e.placeholder ?? (y ? "Selecione um período" : "Selecione uma data"), x = ee(), S = p ?? x, C = l === "invalid", T = C || d, D = an[u], te = u === "lg" ? "size-5" : "size-4", ne = rn(n), O = ne === "floating", re = An(e) ? {
|
|
2399
2399
|
from: e.defaultValue?.from ?? null,
|
|
2400
2400
|
to: e.defaultValue?.to ?? null
|
|
2401
2401
|
} : {
|
|
2402
2402
|
from: e.defaultValue ?? null,
|
|
2403
2403
|
to: null
|
|
2404
|
-
}, k =
|
|
2404
|
+
}, k = An(e) ? e.value === void 0 ? void 0 : {
|
|
2405
2405
|
from: e.value?.from ?? null,
|
|
2406
2406
|
to: e.value?.to ?? null
|
|
2407
2407
|
} : e.value === void 0 ? void 0 : {
|
|
2408
2408
|
from: e.value ?? null,
|
|
2409
2409
|
to: null
|
|
2410
|
-
}, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F =
|
|
2411
|
-
function H(t) {
|
|
2412
|
-
r || (t && B(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), z(t));
|
|
2413
|
-
}
|
|
2410
|
+
}, j = k !== void 0, [M, N] = E(re), P = j ? k : M, F = An(e) ? Math.max(1, e.numberOfMonths ?? 1) : 1, L = An(e) ? e.presets : void 0, [ie, R] = E(!1), [z, B] = E(() => P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), V = w(() => [...On.slice(m), ...On.slice(0, m)], [m]), ae = w(() => Array.from({ length: F }, (e, t) => de(z, t)), [z, F]);
|
|
2414
2411
|
function oe(t) {
|
|
2415
|
-
|
|
2412
|
+
r || (t && B(P.from ?? e.defaultMonth ?? /* @__PURE__ */ new Date()), R(t));
|
|
2413
|
+
}
|
|
2414
|
+
function H(t) {
|
|
2415
|
+
if (An(e)) {
|
|
2416
2416
|
let n = P, r;
|
|
2417
2417
|
r = !n.from || n.to ? {
|
|
2418
2418
|
from: t,
|
|
2419
2419
|
to: null
|
|
2420
|
-
} :
|
|
2420
|
+
} : _t(t, n.from) ? {
|
|
2421
2421
|
from: t,
|
|
2422
2422
|
to: n.from
|
|
2423
2423
|
} : {
|
|
@@ -2426,38 +2426,38 @@ function Mn(e) {
|
|
|
2426
2426
|
}, j || N(r), r.from && e.onValueChange?.({
|
|
2427
2427
|
from: r.from,
|
|
2428
2428
|
to: r.to ?? void 0
|
|
2429
|
-
}), r.from && r.to &&
|
|
2429
|
+
}), r.from && r.to && R(!1);
|
|
2430
2430
|
return;
|
|
2431
2431
|
}
|
|
2432
2432
|
j || N({
|
|
2433
2433
|
from: t,
|
|
2434
2434
|
to: null
|
|
2435
|
-
}), e.onValueChange?.(t),
|
|
2435
|
+
}), e.onValueChange?.(t), R(!1);
|
|
2436
2436
|
}
|
|
2437
2437
|
function se(t) {
|
|
2438
2438
|
let n = {
|
|
2439
2439
|
from: t.from,
|
|
2440
2440
|
to: t.to ?? null
|
|
2441
2441
|
};
|
|
2442
|
-
j || N(n),
|
|
2442
|
+
j || N(n), An(e) && e.onValueChange?.({
|
|
2443
2443
|
from: t.from,
|
|
2444
2444
|
to: t.to ?? void 0
|
|
2445
2445
|
}), B(t.from);
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2448
|
-
return !P.from || !P.to || !e.range.to ? !1 :
|
|
2447
|
+
function U(e) {
|
|
2448
|
+
return !P.from || !P.to || !e.range.to ? !1 : xe(P.from, e.range.from) && xe(P.to, e.range.to);
|
|
2449
2449
|
}
|
|
2450
|
-
let
|
|
2450
|
+
let ce = P.from ? !y || !P.to ? Y(P.from, h) : `${Y(P.from, h)} - ${Y(P.to, h)}` : b;
|
|
2451
2451
|
return /* @__PURE__ */ v("div", {
|
|
2452
|
-
className: I(
|
|
2452
|
+
className: I(sn, g),
|
|
2453
2453
|
"data-fluid": o || void 0,
|
|
2454
2454
|
"data-eds-component": "DatePicker",
|
|
2455
2455
|
"data-label-variant": ne,
|
|
2456
2456
|
children: [
|
|
2457
2457
|
/* @__PURE__ */ _("div", {
|
|
2458
|
-
className:
|
|
2458
|
+
className: cn,
|
|
2459
2459
|
children: /* @__PURE__ */ v("label", {
|
|
2460
|
-
className: I(
|
|
2460
|
+
className: I(ln, O && "sr-only", !O && "font-medium"),
|
|
2461
2461
|
htmlFor: S,
|
|
2462
2462
|
children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
|
|
2463
2463
|
className: "text-eds-red-main",
|
|
@@ -2466,19 +2466,19 @@ function Mn(e) {
|
|
|
2466
2466
|
})
|
|
2467
2467
|
}),
|
|
2468
2468
|
/* @__PURE__ */ v(A.Root, {
|
|
2469
|
-
open:
|
|
2470
|
-
onOpenChange:
|
|
2469
|
+
open: ie,
|
|
2470
|
+
onOpenChange: oe,
|
|
2471
2471
|
children: [/* @__PURE__ */ v(A.Trigger, {
|
|
2472
2472
|
id: S,
|
|
2473
2473
|
disabled: r,
|
|
2474
|
-
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger,
|
|
2474
|
+
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", D.trigger, Dn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
2475
2475
|
"data-state": l,
|
|
2476
2476
|
"data-size": u,
|
|
2477
2477
|
"data-disabled": r || void 0,
|
|
2478
2478
|
"aria-describedby": T ? `${S}-desc` : void 0,
|
|
2479
2479
|
children: [
|
|
2480
2480
|
O && /* @__PURE__ */ v("span", {
|
|
2481
|
-
className:
|
|
2481
|
+
className: bn(D.left),
|
|
2482
2482
|
children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
|
|
2483
2483
|
className: "text-eds-red-main",
|
|
2484
2484
|
"aria-hidden": "true",
|
|
@@ -2490,13 +2490,13 @@ function Mn(e) {
|
|
|
2490
2490
|
"aria-hidden": !0
|
|
2491
2491
|
}),
|
|
2492
2492
|
/* @__PURE__ */ _("span", {
|
|
2493
|
-
className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" :
|
|
2494
|
-
children:
|
|
2493
|
+
className: I("min-w-0 flex-1 truncate font-inherit", D.text, P.from ? "text-eds-neutral-main" : un),
|
|
2494
|
+
children: ce
|
|
2495
2495
|
})
|
|
2496
2496
|
]
|
|
2497
2497
|
}), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
|
|
2498
|
-
className:
|
|
2499
|
-
style:
|
|
2498
|
+
className: vn,
|
|
2499
|
+
style: yn,
|
|
2500
2500
|
positionMethod: "fixed",
|
|
2501
2501
|
sideOffset: 4,
|
|
2502
2502
|
align: "start",
|
|
@@ -2508,36 +2508,36 @@ function Mn(e) {
|
|
|
2508
2508
|
children: L.map((e) => /* @__PURE__ */ _("button", {
|
|
2509
2509
|
type: "button",
|
|
2510
2510
|
onClick: () => se(e.range),
|
|
2511
|
-
className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap",
|
|
2511
|
+
className: I("rounded-md px-3 py-1.5 text-left whitespace-nowrap", U(e) ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
2512
2512
|
children: e.label
|
|
2513
2513
|
}, e.label))
|
|
2514
2514
|
}), /* @__PURE__ */ _("div", {
|
|
2515
2515
|
className: "flex",
|
|
2516
2516
|
children: ae.map((e, t) => {
|
|
2517
|
-
let n = t === 0, r = t === ae.length - 1, i =
|
|
2517
|
+
let n = t === 0, r = t === ae.length - 1, i = kn(e, m);
|
|
2518
2518
|
return /* @__PURE__ */ v("div", {
|
|
2519
2519
|
className: I("w-[284px] shrink-0", !n && "border-l border-eds-outline-border"),
|
|
2520
2520
|
children: [/* @__PURE__ */ v("div", {
|
|
2521
2521
|
className: "flex items-center gap-2.5 p-4",
|
|
2522
2522
|
children: [
|
|
2523
|
-
n ? /* @__PURE__ */ _(
|
|
2523
|
+
n ? /* @__PURE__ */ _(At, {
|
|
2524
2524
|
icon: s,
|
|
2525
2525
|
label: "Mês anterior",
|
|
2526
2526
|
size: "sm",
|
|
2527
|
-
onClick: () => B((e) =>
|
|
2527
|
+
onClick: () => B((e) => Ct(e, 1))
|
|
2528
2528
|
}) : /* @__PURE__ */ _("span", {
|
|
2529
2529
|
className: "size-8 shrink-0",
|
|
2530
2530
|
"aria-hidden": !0
|
|
2531
2531
|
}),
|
|
2532
2532
|
/* @__PURE__ */ _("span", {
|
|
2533
2533
|
className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
|
|
2534
|
-
children:
|
|
2534
|
+
children: Y(e, "MMMM yyyy", { locale: Ot })
|
|
2535
2535
|
}),
|
|
2536
|
-
r ? /* @__PURE__ */ _(
|
|
2536
|
+
r ? /* @__PURE__ */ _(At, {
|
|
2537
2537
|
icon: c,
|
|
2538
2538
|
label: "Próximo mês",
|
|
2539
2539
|
size: "sm",
|
|
2540
|
-
onClick: () => B((e) =>
|
|
2540
|
+
onClick: () => B((e) => de(e, 1))
|
|
2541
2541
|
}) : /* @__PURE__ */ _("span", {
|
|
2542
2542
|
className: "size-8 shrink-0",
|
|
2543
2543
|
"aria-hidden": !0
|
|
@@ -2549,16 +2549,16 @@ function Mn(e) {
|
|
|
2549
2549
|
className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
|
|
2550
2550
|
children: e
|
|
2551
2551
|
}, `${e}-${t}`)), i.map((t) => {
|
|
2552
|
-
let n =
|
|
2552
|
+
let n = vt(t, e), r = yt(t), i = y && P.from ? xe(t, P.from) : !1, a = y && P.to ? xe(t, P.to) : !1, o = !!(y && P.from && P.to && !xe(P.from, P.to)), s = o && P.from && P.to ? gt(t, P.from) && _t(t, P.to) : !1, c = y ? i || a : P.from ? xe(t, P.from) : !1;
|
|
2553
2553
|
return /* @__PURE__ */ _("div", {
|
|
2554
2554
|
className: I("flex items-center justify-center py-0.5", o && (s || i || a) && "bg-eds-blue-main/10", o && i && "rounded-l-full", o && a && "rounded-r-full"),
|
|
2555
2555
|
children: /* @__PURE__ */ _("button", {
|
|
2556
2556
|
type: "button",
|
|
2557
|
-
onClick: () =>
|
|
2557
|
+
onClick: () => H(t),
|
|
2558
2558
|
"data-selected": c || void 0,
|
|
2559
2559
|
"data-today": r || void 0,
|
|
2560
2560
|
className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", c ? "bg-eds-blue-main text-white" : n ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !c && r && "ring-1 ring-inset ring-eds-blue-main"),
|
|
2561
|
-
children:
|
|
2561
|
+
children: Y(t, "d")
|
|
2562
2562
|
})
|
|
2563
2563
|
}, t.toISOString());
|
|
2564
2564
|
})]
|
|
@@ -2579,12 +2579,150 @@ function Mn(e) {
|
|
|
2579
2579
|
});
|
|
2580
2580
|
}
|
|
2581
2581
|
//#endregion
|
|
2582
|
+
//#region src/components/DateTimePicker/AnalogClock.tsx
|
|
2583
|
+
var Mn = 220, Nn = Mn / 2, Pn = 92, Fn = 64, In = 30;
|
|
2584
|
+
function Ln(e, t) {
|
|
2585
|
+
let n = Math.atan2(t - Nn, e - Nn) + Math.PI / 2;
|
|
2586
|
+
return n < 0 ? n + Math.PI * 2 : n;
|
|
2587
|
+
}
|
|
2588
|
+
function Rn(e, t) {
|
|
2589
|
+
let n = Ln(e, t), r = Math.round(n / (Math.PI * 2) * 12) % 12, i = r === 0 ? 12 : r;
|
|
2590
|
+
return Math.hypot(e - Nn, t - Nn) < 156 / 2 ? i === 12 ? 0 : i + 12 : i;
|
|
2591
|
+
}
|
|
2592
|
+
function zn(e, t, n) {
|
|
2593
|
+
let r = n > 0 ? n : 1, i = Ln(e, t) / (Math.PI * 2) * 60, a = Math.round(i / r) * r;
|
|
2594
|
+
return a >= 60 ? 0 : a;
|
|
2595
|
+
}
|
|
2596
|
+
function Bn(e, t) {
|
|
2597
|
+
let n = e / 12 * Math.PI * 2 - Math.PI / 2;
|
|
2598
|
+
return {
|
|
2599
|
+
x: Math.round(Math.cos(n) * t),
|
|
2600
|
+
y: Math.round(Math.sin(n) * t)
|
|
2601
|
+
};
|
|
2602
|
+
}
|
|
2603
|
+
function Vn(e, t) {
|
|
2604
|
+
return e === "hours" ? t % 12 : t / 5;
|
|
2605
|
+
}
|
|
2606
|
+
function Hn(e, t) {
|
|
2607
|
+
let n = e === "hours" && (t === 0 || t > 12);
|
|
2608
|
+
return Bn(Vn(e, t), n ? Fn : Pn);
|
|
2609
|
+
}
|
|
2610
|
+
function Un(e, t) {
|
|
2611
|
+
return (e === "hours" ? t % 12 / 12 * Math.PI * 2 - Math.PI / 2 : t / 60 * Math.PI * 2 - Math.PI / 2) - Math.PI / 2;
|
|
2612
|
+
}
|
|
2613
|
+
var Wn = Array.from({ length: 24 }, (e, t) => t), Gn = Array.from({ length: 12 }, (e, t) => t * 5);
|
|
2614
|
+
function Kn({ mode: e, value: t, minuteStep: n, onSelect: r }) {
|
|
2615
|
+
let i = T(null), a = T(!1);
|
|
2616
|
+
function o(r, a) {
|
|
2617
|
+
let o = i.current?.getBoundingClientRect();
|
|
2618
|
+
if (!o) return t;
|
|
2619
|
+
let s = r - o.left, c = a - o.top;
|
|
2620
|
+
return e === "hours" ? Rn(s, c) : zn(s, c, n);
|
|
2621
|
+
}
|
|
2622
|
+
function s(e) {
|
|
2623
|
+
e.button > 0 || (a.current = !0, e.currentTarget.setPointerCapture(e.pointerId), r(o(e.clientX, e.clientY), !1));
|
|
2624
|
+
}
|
|
2625
|
+
function c(e) {
|
|
2626
|
+
a.current && r(o(e.clientX, e.clientY), !1);
|
|
2627
|
+
}
|
|
2628
|
+
function l(e) {
|
|
2629
|
+
a.current && (a.current = !1, r(o(e.clientX, e.clientY), !0));
|
|
2630
|
+
}
|
|
2631
|
+
function u() {
|
|
2632
|
+
a.current = !1;
|
|
2633
|
+
}
|
|
2634
|
+
function d(i) {
|
|
2635
|
+
let a = e === "hours" ? 23 : 59, o = e === "hours" ? 1 : n, s = (e) => (e % (a + 1) + (a + 1)) % (a + 1);
|
|
2636
|
+
switch (i.key) {
|
|
2637
|
+
case "ArrowUp":
|
|
2638
|
+
case "ArrowRight":
|
|
2639
|
+
r(s(t + o), !1), i.preventDefault();
|
|
2640
|
+
break;
|
|
2641
|
+
case "ArrowDown":
|
|
2642
|
+
case "ArrowLeft":
|
|
2643
|
+
r(s(t - o), !1), i.preventDefault();
|
|
2644
|
+
break;
|
|
2645
|
+
case "Home":
|
|
2646
|
+
r(0, !1), i.preventDefault();
|
|
2647
|
+
break;
|
|
2648
|
+
case "End":
|
|
2649
|
+
r(a, !1), i.preventDefault();
|
|
2650
|
+
break;
|
|
2651
|
+
case "Enter":
|
|
2652
|
+
case " ":
|
|
2653
|
+
r(t, !0), i.preventDefault();
|
|
2654
|
+
break;
|
|
2655
|
+
default: break;
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
let f = e === "hours" ? Wn : Gn;
|
|
2659
|
+
return /* @__PURE__ */ v("div", {
|
|
2660
|
+
className: "relative shrink-0 select-none rounded-full bg-eds-neutral-background",
|
|
2661
|
+
style: {
|
|
2662
|
+
width: Mn,
|
|
2663
|
+
height: Mn
|
|
2664
|
+
},
|
|
2665
|
+
children: [
|
|
2666
|
+
/* @__PURE__ */ _("div", {
|
|
2667
|
+
ref: i,
|
|
2668
|
+
role: "slider",
|
|
2669
|
+
tabIndex: 0,
|
|
2670
|
+
"aria-valuemin": 0,
|
|
2671
|
+
"aria-valuemax": e === "hours" ? 23 : 59,
|
|
2672
|
+
"aria-valuenow": t,
|
|
2673
|
+
"aria-label": e === "hours" ? "Hora" : "Minuto",
|
|
2674
|
+
className: "absolute inset-0 cursor-pointer touch-none rounded-full focus-visible:outline focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
|
|
2675
|
+
onPointerDown: s,
|
|
2676
|
+
onPointerMove: c,
|
|
2677
|
+
onPointerUp: l,
|
|
2678
|
+
onPointerCancel: u,
|
|
2679
|
+
onLostPointerCapture: u,
|
|
2680
|
+
onKeyDown: d
|
|
2681
|
+
}),
|
|
2682
|
+
/* @__PURE__ */ _("div", {
|
|
2683
|
+
className: "pointer-events-none absolute bg-eds-blue-main",
|
|
2684
|
+
style: {
|
|
2685
|
+
width: 2,
|
|
2686
|
+
height: e === "hours" && (t === 0 || t > 12) ? Fn : Pn,
|
|
2687
|
+
left: Nn,
|
|
2688
|
+
top: Nn,
|
|
2689
|
+
transformOrigin: "top",
|
|
2690
|
+
transform: `rotate(${Un(e, t)}rad)`
|
|
2691
|
+
}
|
|
2692
|
+
}),
|
|
2693
|
+
/* @__PURE__ */ _("div", {
|
|
2694
|
+
className: "pointer-events-none absolute size-1.5 rounded-full bg-eds-blue-main",
|
|
2695
|
+
style: {
|
|
2696
|
+
left: Nn - 3,
|
|
2697
|
+
top: Nn - 3
|
|
2698
|
+
}
|
|
2699
|
+
}),
|
|
2700
|
+
f.map((n) => {
|
|
2701
|
+
let r = e === "hours" && (n === 0 || n > 12), { x: i, y: a } = Hn(e, n), o = t === n, s = e === "hours" ? n === 0 ? "00" : String(n) : String(n).padStart(2, "0");
|
|
2702
|
+
return /* @__PURE__ */ _("button", {
|
|
2703
|
+
type: "button",
|
|
2704
|
+
tabIndex: -1,
|
|
2705
|
+
"aria-hidden": "true",
|
|
2706
|
+
className: I("pointer-events-none absolute flex items-center justify-center rounded-full text-sm tabular-nums", o ? "bg-eds-blue-main text-white" : "text-eds-neutral-main", r && !o && "text-xs text-eds-neutral-elements"),
|
|
2707
|
+
style: {
|
|
2708
|
+
width: In,
|
|
2709
|
+
height: In,
|
|
2710
|
+
left: Nn + i - In / 2,
|
|
2711
|
+
top: Nn + a - In / 2
|
|
2712
|
+
},
|
|
2713
|
+
children: s
|
|
2714
|
+
}, n);
|
|
2715
|
+
})
|
|
2716
|
+
]
|
|
2717
|
+
});
|
|
2718
|
+
}
|
|
2719
|
+
//#endregion
|
|
2582
2720
|
//#region src/components/DateTimePicker/DateTimePicker.tsx
|
|
2583
|
-
var
|
|
2721
|
+
var qn = {
|
|
2584
2722
|
default: "",
|
|
2585
2723
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
2586
2724
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
2587
|
-
},
|
|
2725
|
+
}, Jn = [
|
|
2588
2726
|
"D",
|
|
2589
2727
|
"S",
|
|
2590
2728
|
"T",
|
|
@@ -2593,83 +2731,83 @@ var Nn = {
|
|
|
2593
2731
|
"S",
|
|
2594
2732
|
"S"
|
|
2595
2733
|
];
|
|
2596
|
-
function
|
|
2597
|
-
let n =
|
|
2598
|
-
for (let e = n; e <= r; e =
|
|
2734
|
+
function Yn(e, t) {
|
|
2735
|
+
let n = K(Te(e), { weekStartsOn: t }), r = De(we(e), { weekStartsOn: t }), i = [];
|
|
2736
|
+
for (let e = n; e <= r; e = ue(e, 1)) i.push(e);
|
|
2599
2737
|
return i;
|
|
2600
2738
|
}
|
|
2601
|
-
function
|
|
2602
|
-
let n = t ?
|
|
2603
|
-
return
|
|
2739
|
+
function Xn(e, t) {
|
|
2740
|
+
let n = t ? mt(t) : 0, r = t ? ht(t) : 0;
|
|
2741
|
+
return St(xt(bt(e, n), r), 0);
|
|
2604
2742
|
}
|
|
2605
|
-
function
|
|
2743
|
+
function Zn(e, t) {
|
|
2606
2744
|
let n = Math.round(e / t) * t;
|
|
2607
2745
|
return Math.min(59, Math.max(0, n >= 60 ? 60 - t : n));
|
|
2608
2746
|
}
|
|
2609
|
-
function
|
|
2747
|
+
function Qn(e) {
|
|
2610
2748
|
let t = Math.max(1, Math.min(30, Math.floor(e))), n = [];
|
|
2611
2749
|
for (let e = 0; e < 60; e += t) n.push(e);
|
|
2612
2750
|
return n;
|
|
2613
2751
|
}
|
|
2614
|
-
var
|
|
2615
|
-
function
|
|
2616
|
-
let
|
|
2752
|
+
var $n = Array.from({ length: 24 }, (e, t) => t);
|
|
2753
|
+
function er({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione data e hora", disabled: i = !1, required: a = !1, fluid: o = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma data e hora válidas", id: p, weekStartsOn: m = 0, defaultMonth: h, dateFormat: g = "dd/MM/yyyy HH:mm", minuteStep: y = 5, timeVariant: b = "clock", value: x, defaultValue: S = null, onValueChange: D, className: te }) {
|
|
2754
|
+
let ne = ee(), O = p ?? ne, re = l === "invalid", k = re || d, j = an[u], M = u === "lg" ? "size-5" : "size-4", N = rn(t), P = N === "floating", F = x !== void 0, [L, ie] = E(S), R = F ? x ?? null : L, [z, B] = E(!1), [V, oe] = E(() => R ?? h ?? /* @__PURE__ */ new Date()), [H, se] = E(R), [U, ce] = E("hours"), le = T(null), W = T(null), G = w(() => Qn(y), [y]), ue = w(() => Math.max(1, Math.min(30, Math.floor(y))), [y]), fe = w(() => [...Jn.slice(m), ...Jn.slice(0, m)], [m]), pe = w(() => Yn(V, m), [V, m]), K = H ? mt(H) : 0, q = H ? Zn(ht(H), y) : 0;
|
|
2617
2755
|
C(() => {
|
|
2618
2756
|
if (!z) return;
|
|
2619
2757
|
let e = (e, t, n) => {
|
|
2620
2758
|
(e?.querySelector(`[data-${t}="${n}"]`))?.scrollIntoView({ block: "center" });
|
|
2621
2759
|
};
|
|
2622
2760
|
requestAnimationFrame(() => {
|
|
2623
|
-
e(
|
|
2761
|
+
e(le.current, "hour", K), e(W.current, "minute", q);
|
|
2624
2762
|
});
|
|
2625
2763
|
}, [
|
|
2626
2764
|
z,
|
|
2627
|
-
|
|
2628
|
-
|
|
2765
|
+
K,
|
|
2766
|
+
q
|
|
2629
2767
|
]);
|
|
2630
|
-
function pe(e) {
|
|
2631
|
-
P || L(e), S?.(e);
|
|
2632
|
-
}
|
|
2633
2768
|
function me(e) {
|
|
2769
|
+
F || ie(e), D?.(e);
|
|
2770
|
+
}
|
|
2771
|
+
function he(e) {
|
|
2634
2772
|
if (!i) {
|
|
2635
2773
|
if (e) {
|
|
2636
|
-
let e = R ?? h ?? /* @__PURE__ */ new Date(), t =
|
|
2637
|
-
|
|
2774
|
+
let e = R ?? h ?? /* @__PURE__ */ new Date(), t = xt(e, Zn(ht(e), y));
|
|
2775
|
+
se(R ? t : null), oe(R ?? h ?? /* @__PURE__ */ new Date()), ce("hours");
|
|
2638
2776
|
}
|
|
2639
|
-
|
|
2777
|
+
B(e);
|
|
2640
2778
|
}
|
|
2641
2779
|
}
|
|
2642
|
-
function
|
|
2643
|
-
let t =
|
|
2644
|
-
|
|
2780
|
+
function ge(e) {
|
|
2781
|
+
let t = Xn(e, H ?? R), n = xt(t, Zn(ht(t), y));
|
|
2782
|
+
se(n), me(n);
|
|
2645
2783
|
}
|
|
2646
|
-
function
|
|
2647
|
-
let
|
|
2648
|
-
|
|
2784
|
+
function _e(e, t = !0) {
|
|
2785
|
+
let n = H ?? R ?? /* @__PURE__ */ new Date(), r = St(xt(bt(n, e), Zn(ht(n), y)), 0);
|
|
2786
|
+
se(r), t && (me(r), b === "clock" && ce("minutes"));
|
|
2649
2787
|
}
|
|
2650
|
-
function
|
|
2651
|
-
let
|
|
2652
|
-
|
|
2788
|
+
function ve(e, t = !0) {
|
|
2789
|
+
let n = St(xt(H ?? R ?? /* @__PURE__ */ new Date(), e), 0);
|
|
2790
|
+
se(n), t && (me(n), B(!1));
|
|
2653
2791
|
}
|
|
2654
|
-
function
|
|
2655
|
-
let e = /* @__PURE__ */ new Date(), t =
|
|
2656
|
-
|
|
2792
|
+
function ye() {
|
|
2793
|
+
let e = /* @__PURE__ */ new Date(), t = St(xt(e, Zn(ht(e), y)), 0);
|
|
2794
|
+
se(t), oe(t), me(t);
|
|
2657
2795
|
}
|
|
2658
|
-
function
|
|
2659
|
-
H &&
|
|
2796
|
+
function be() {
|
|
2797
|
+
H && me(H), B(!1);
|
|
2660
2798
|
}
|
|
2661
|
-
let
|
|
2799
|
+
let Se = R ? Y(R, g) : n;
|
|
2662
2800
|
return /* @__PURE__ */ v("div", {
|
|
2663
|
-
className: I(
|
|
2801
|
+
className: I(sn, te),
|
|
2664
2802
|
"data-fluid": o || void 0,
|
|
2665
2803
|
"data-eds-component": "DateTimePicker",
|
|
2666
|
-
"data-label-variant":
|
|
2804
|
+
"data-label-variant": N,
|
|
2667
2805
|
children: [
|
|
2668
2806
|
/* @__PURE__ */ _("div", {
|
|
2669
|
-
className:
|
|
2807
|
+
className: cn,
|
|
2670
2808
|
children: /* @__PURE__ */ v("label", {
|
|
2671
|
-
className: I(
|
|
2672
|
-
htmlFor:
|
|
2809
|
+
className: I(ln, P && "sr-only", !P && "font-medium"),
|
|
2810
|
+
htmlFor: O,
|
|
2673
2811
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
2674
2812
|
className: "text-eds-red-main",
|
|
2675
2813
|
children: "*"
|
|
@@ -2678,18 +2816,18 @@ function Bn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2678
2816
|
}),
|
|
2679
2817
|
/* @__PURE__ */ v(A.Root, {
|
|
2680
2818
|
open: z,
|
|
2681
|
-
onOpenChange:
|
|
2819
|
+
onOpenChange: he,
|
|
2682
2820
|
children: [/* @__PURE__ */ v(A.Trigger, {
|
|
2683
|
-
id:
|
|
2821
|
+
id: O,
|
|
2684
2822
|
disabled: i,
|
|
2685
|
-
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left",
|
|
2823
|
+
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0 text-left", j.trigger, qn[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
2686
2824
|
"data-state": l,
|
|
2687
2825
|
"data-size": u,
|
|
2688
2826
|
"data-disabled": i || void 0,
|
|
2689
|
-
"aria-describedby":
|
|
2827
|
+
"aria-describedby": k ? `${O}-desc` : void 0,
|
|
2690
2828
|
children: [
|
|
2691
|
-
|
|
2692
|
-
className:
|
|
2829
|
+
P && /* @__PURE__ */ v("span", {
|
|
2830
|
+
className: bn(j.left),
|
|
2693
2831
|
children: [/* @__PURE__ */ _("span", { children: e }), a && /* @__PURE__ */ _("span", {
|
|
2694
2832
|
className: "text-eds-red-main",
|
|
2695
2833
|
"aria-hidden": "true",
|
|
@@ -2697,17 +2835,17 @@ function Bn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2697
2835
|
})]
|
|
2698
2836
|
}),
|
|
2699
2837
|
/* @__PURE__ */ _(r, {
|
|
2700
|
-
className: I("shrink-0 text-eds-neutral-elements",
|
|
2838
|
+
className: I("shrink-0 text-eds-neutral-elements", M),
|
|
2701
2839
|
"aria-hidden": !0
|
|
2702
2840
|
}),
|
|
2703
2841
|
/* @__PURE__ */ _("span", {
|
|
2704
|
-
className: I("min-w-0 flex-1 truncate font-inherit",
|
|
2705
|
-
children:
|
|
2842
|
+
className: I("min-w-0 flex-1 truncate font-inherit", j.text, R ? "text-eds-neutral-main" : un),
|
|
2843
|
+
children: Se
|
|
2706
2844
|
})
|
|
2707
2845
|
]
|
|
2708
2846
|
}), /* @__PURE__ */ _(A.Portal, { children: /* @__PURE__ */ _(A.Positioner, {
|
|
2709
|
-
className:
|
|
2710
|
-
style:
|
|
2847
|
+
className: vn,
|
|
2848
|
+
style: yn,
|
|
2711
2849
|
positionMethod: "fixed",
|
|
2712
2850
|
sideOffset: 4,
|
|
2713
2851
|
align: "start",
|
|
@@ -2721,44 +2859,76 @@ function Bn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2721
2859
|
children: [/* @__PURE__ */ v("div", {
|
|
2722
2860
|
className: "flex items-center gap-2.5 p-4",
|
|
2723
2861
|
children: [
|
|
2724
|
-
/* @__PURE__ */ _(
|
|
2862
|
+
/* @__PURE__ */ _(At, {
|
|
2725
2863
|
icon: s,
|
|
2726
2864
|
label: "Mês anterior",
|
|
2727
2865
|
size: "sm",
|
|
2728
|
-
onClick: () =>
|
|
2866
|
+
onClick: () => oe((e) => Ct(e, 1))
|
|
2729
2867
|
}),
|
|
2730
2868
|
/* @__PURE__ */ _("span", {
|
|
2731
2869
|
className: "flex-1 text-center text-base font-medium text-eds-neutral-main capitalize",
|
|
2732
|
-
children:
|
|
2870
|
+
children: Y(V, "MMMM yyyy", { locale: Ot })
|
|
2733
2871
|
}),
|
|
2734
|
-
/* @__PURE__ */ _(
|
|
2872
|
+
/* @__PURE__ */ _(At, {
|
|
2735
2873
|
icon: c,
|
|
2736
2874
|
label: "Próximo mês",
|
|
2737
2875
|
size: "sm",
|
|
2738
|
-
onClick: () =>
|
|
2876
|
+
onClick: () => oe((e) => de(e, 1))
|
|
2739
2877
|
})
|
|
2740
2878
|
]
|
|
2741
2879
|
}), /* @__PURE__ */ v("div", {
|
|
2742
2880
|
className: "grid grid-cols-7 px-4 pb-4",
|
|
2743
|
-
children: [
|
|
2881
|
+
children: [fe.map((e, t) => /* @__PURE__ */ _("span", {
|
|
2744
2882
|
className: "pb-2 text-center text-xs font-medium text-eds-neutral-main",
|
|
2745
2883
|
children: e
|
|
2746
|
-
}, `${e}-${t}`)),
|
|
2747
|
-
let t =
|
|
2884
|
+
}, `${e}-${t}`)), pe.map((e) => {
|
|
2885
|
+
let t = vt(e, V), n = yt(e), r = H ? xe(e, H) : !1;
|
|
2748
2886
|
return /* @__PURE__ */ _("div", {
|
|
2749
2887
|
className: "flex items-center justify-center py-0.5",
|
|
2750
2888
|
children: /* @__PURE__ */ _("button", {
|
|
2751
2889
|
type: "button",
|
|
2752
|
-
onClick: () =>
|
|
2890
|
+
onClick: () => ge(e),
|
|
2753
2891
|
"data-selected": r || void 0,
|
|
2754
2892
|
"data-today": n || void 0,
|
|
2755
2893
|
className: I("flex size-9 shrink-0 items-center justify-center rounded-full text-sm font-medium", r ? "bg-eds-blue-main text-white" : t ? "text-eds-neutral-main hover:bg-eds-neutral-background" : "text-eds-neutral-elements/50 hover:bg-eds-neutral-background", !r && n && "ring-1 ring-inset ring-eds-blue-main"),
|
|
2756
|
-
children:
|
|
2894
|
+
children: Y(e, "d")
|
|
2757
2895
|
})
|
|
2758
2896
|
}, e.toISOString());
|
|
2759
2897
|
})]
|
|
2760
2898
|
})]
|
|
2761
|
-
}), /* @__PURE__ */ v("div", {
|
|
2899
|
+
}), b === "clock" ? /* @__PURE__ */ v("div", {
|
|
2900
|
+
className: "flex w-[260px] shrink-0 flex-col items-center gap-3 border-l border-eds-outline-border p-4",
|
|
2901
|
+
children: [/* @__PURE__ */ v("div", {
|
|
2902
|
+
className: "flex items-center gap-1 rounded-full bg-eds-neutral-background p-1",
|
|
2903
|
+
children: [
|
|
2904
|
+
/* @__PURE__ */ _("button", {
|
|
2905
|
+
type: "button",
|
|
2906
|
+
"aria-label": "Selecionar hora",
|
|
2907
|
+
"aria-pressed": U === "hours",
|
|
2908
|
+
onClick: () => ce("hours"),
|
|
2909
|
+
className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", U === "hours" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
|
|
2910
|
+
children: String(K).padStart(2, "0")
|
|
2911
|
+
}),
|
|
2912
|
+
/* @__PURE__ */ _("span", {
|
|
2913
|
+
className: "text-sm text-eds-neutral-elements",
|
|
2914
|
+
children: ":"
|
|
2915
|
+
}),
|
|
2916
|
+
/* @__PURE__ */ _("button", {
|
|
2917
|
+
type: "button",
|
|
2918
|
+
"aria-label": "Selecionar minuto",
|
|
2919
|
+
"aria-pressed": U === "minutes",
|
|
2920
|
+
onClick: () => ce("minutes"),
|
|
2921
|
+
className: I("rounded-full px-3 py-1 text-sm font-medium tabular-nums", U === "minutes" ? "bg-white text-eds-neutral-main shadow-sm" : "text-eds-neutral-elements"),
|
|
2922
|
+
children: String(q).padStart(2, "0")
|
|
2923
|
+
})
|
|
2924
|
+
]
|
|
2925
|
+
}), /* @__PURE__ */ _(Kn, {
|
|
2926
|
+
mode: U,
|
|
2927
|
+
value: U === "hours" ? K : q,
|
|
2928
|
+
minuteStep: ue,
|
|
2929
|
+
onSelect: (e, t) => U === "hours" ? _e(e, t) : ve(e, t)
|
|
2930
|
+
})]
|
|
2931
|
+
}) : /* @__PURE__ */ v("div", {
|
|
2762
2932
|
className: "flex w-[148px] shrink-0 border-l border-eds-outline-border",
|
|
2763
2933
|
children: [/* @__PURE__ */ v("div", {
|
|
2764
2934
|
className: "flex min-h-0 flex-1 flex-col",
|
|
@@ -2766,18 +2936,18 @@ function Bn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2766
2936
|
className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
|
|
2767
2937
|
children: "Hora"
|
|
2768
2938
|
}), /* @__PURE__ */ _("div", {
|
|
2769
|
-
ref:
|
|
2939
|
+
ref: le,
|
|
2770
2940
|
className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
|
|
2771
2941
|
role: "listbox",
|
|
2772
2942
|
"aria-label": "Hora",
|
|
2773
|
-
children:
|
|
2774
|
-
let t =
|
|
2943
|
+
children: $n.map((e) => {
|
|
2944
|
+
let t = K === e;
|
|
2775
2945
|
return /* @__PURE__ */ _("button", {
|
|
2776
2946
|
type: "button",
|
|
2777
2947
|
role: "option",
|
|
2778
2948
|
"aria-selected": t,
|
|
2779
2949
|
"data-hour": e,
|
|
2780
|
-
onClick: () =>
|
|
2950
|
+
onClick: () => _e(e),
|
|
2781
2951
|
className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
2782
2952
|
children: String(e).padStart(2, "0")
|
|
2783
2953
|
}, e);
|
|
@@ -2789,18 +2959,18 @@ function Bn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2789
2959
|
className: "px-2 pt-3 pb-1 text-center text-xs font-medium text-eds-neutral-elements",
|
|
2790
2960
|
children: "Min"
|
|
2791
2961
|
}), /* @__PURE__ */ _("div", {
|
|
2792
|
-
ref:
|
|
2962
|
+
ref: W,
|
|
2793
2963
|
className: "flex max-h-[248px] flex-col gap-0.5 overflow-y-auto overscroll-contain px-2 pb-3",
|
|
2794
2964
|
role: "listbox",
|
|
2795
2965
|
"aria-label": "Minuto",
|
|
2796
|
-
children:
|
|
2797
|
-
let t =
|
|
2966
|
+
children: G.map((e) => {
|
|
2967
|
+
let t = q === e;
|
|
2798
2968
|
return /* @__PURE__ */ _("button", {
|
|
2799
2969
|
type: "button",
|
|
2800
2970
|
role: "option",
|
|
2801
2971
|
"aria-selected": t,
|
|
2802
2972
|
"data-minute": e,
|
|
2803
|
-
onClick: () =>
|
|
2973
|
+
onClick: () => ve(e),
|
|
2804
2974
|
className: I("rounded-md px-2 py-1.5 text-center text-sm tabular-nums", t ? "bg-eds-blue-main text-white" : "text-eds-neutral-main hover:bg-eds-neutral-background"),
|
|
2805
2975
|
children: String(e).padStart(2, "0")
|
|
2806
2976
|
}, e);
|
|
@@ -2814,29 +2984,29 @@ function Bn({ label: e = "Label", labelVariant: t, placeholder: n = "Selecione d
|
|
|
2814
2984
|
text: "Agora",
|
|
2815
2985
|
variant: "ghost",
|
|
2816
2986
|
size: "sm",
|
|
2817
|
-
onClick:
|
|
2987
|
+
onClick: ye
|
|
2818
2988
|
}), /* @__PURE__ */ _(ae, {
|
|
2819
2989
|
text: "Confirmar",
|
|
2820
2990
|
size: "sm",
|
|
2821
|
-
onClick:
|
|
2991
|
+
onClick: be,
|
|
2822
2992
|
disabled: !H
|
|
2823
2993
|
})]
|
|
2824
2994
|
})]
|
|
2825
2995
|
})
|
|
2826
2996
|
}) })]
|
|
2827
2997
|
}),
|
|
2828
|
-
|
|
2829
|
-
id: `${
|
|
2998
|
+
k && /* @__PURE__ */ _("div", {
|
|
2999
|
+
id: `${O}-desc`,
|
|
2830
3000
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
2831
|
-
"data-state":
|
|
2832
|
-
children:
|
|
3001
|
+
"data-state": re ? "invalid" : l,
|
|
3002
|
+
children: re ? f : d
|
|
2833
3003
|
})
|
|
2834
3004
|
]
|
|
2835
3005
|
});
|
|
2836
3006
|
}
|
|
2837
3007
|
//#endregion
|
|
2838
3008
|
//#region src/components/Dialog/Dialog.tsx
|
|
2839
|
-
var
|
|
3009
|
+
var tr = { size: {
|
|
2840
3010
|
sm: {
|
|
2841
3011
|
classes: "sm:max-w-xs",
|
|
2842
3012
|
description: "Small dialog for simple confirmations (288px)"
|
|
@@ -2853,22 +3023,22 @@ var Vn = { size: {
|
|
|
2853
3023
|
classes: "sm:max-w-3xl",
|
|
2854
3024
|
description: "Extra large dialog for detailed views (768px)"
|
|
2855
3025
|
}
|
|
2856
|
-
} },
|
|
2857
|
-
function
|
|
2858
|
-
return S(
|
|
3026
|
+
} }, nr = { size: "md" }, rr = b("dialog");
|
|
3027
|
+
function ir() {
|
|
3028
|
+
return S(rr);
|
|
2859
3029
|
}
|
|
2860
|
-
function
|
|
2861
|
-
return I(`fixed top-1/2 left-1/2 ${
|
|
3030
|
+
function ar({ size: e = nr.size } = {}) {
|
|
3031
|
+
return I(`fixed top-1/2 left-1/2 ${on.overlay} grid w-full max-w-[calc(100%-2rem)] max-h-[calc(100vh-4rem)] -translate-x-1/2 -translate-y-1/2 gap-4 overflow-y-auto rounded-xl bg-white p-4 text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0`, L(tr.size, e, nr.size).classes);
|
|
2862
3032
|
}
|
|
2863
|
-
function
|
|
2864
|
-
let i =
|
|
3033
|
+
function or({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
|
|
3034
|
+
let i = ir(), a = i === "alertdialog" ? M.Portal : j.Portal, o = i === "alertdialog" ? M.Backdrop : j.Backdrop, s = i === "alertdialog" ? M.Popup : j.Popup, c = i === "alertdialog" ? M.Close : j.Close;
|
|
2865
3035
|
return /* @__PURE__ */ v(a, { children: [/* @__PURE__ */ _(o, {
|
|
2866
|
-
className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
2867
|
-
style: { zIndex:
|
|
3036
|
+
className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", on.overlay),
|
|
3037
|
+
style: { zIndex: on.overlayValue }
|
|
2868
3038
|
}), /* @__PURE__ */ v(s, {
|
|
2869
3039
|
"data-eds-component": "Dialog",
|
|
2870
|
-
className: I(
|
|
2871
|
-
style: { zIndex:
|
|
3040
|
+
className: I(ar({ size: n }), e),
|
|
3041
|
+
style: { zIndex: on.overlayValue },
|
|
2872
3042
|
children: [t, r ? /* @__PURE__ */ _(c, {
|
|
2873
3043
|
"data-eds-component": "Dialog",
|
|
2874
3044
|
"aria-label": "Fechar",
|
|
@@ -2880,10 +3050,10 @@ function Kn({ className: e, children: t, size: n, showCloseButton: r = !0 }) {
|
|
|
2880
3050
|
}) : null]
|
|
2881
3051
|
})] });
|
|
2882
3052
|
}
|
|
2883
|
-
function
|
|
3053
|
+
function sr(e) {
|
|
2884
3054
|
if (e.role === "alertdialog") {
|
|
2885
3055
|
let { children: t, role: n, ...r } = e;
|
|
2886
|
-
return /* @__PURE__ */ _(
|
|
3056
|
+
return /* @__PURE__ */ _(rr.Provider, {
|
|
2887
3057
|
value: n,
|
|
2888
3058
|
children: /* @__PURE__ */ _(M.Root, {
|
|
2889
3059
|
...r,
|
|
@@ -2892,7 +3062,7 @@ function qn(e) {
|
|
|
2892
3062
|
});
|
|
2893
3063
|
}
|
|
2894
3064
|
let { children: t, role: n = "dialog", ...r } = e;
|
|
2895
|
-
return /* @__PURE__ */ _(
|
|
3065
|
+
return /* @__PURE__ */ _(rr.Provider, {
|
|
2896
3066
|
value: n,
|
|
2897
3067
|
children: /* @__PURE__ */ _(j.Root, {
|
|
2898
3068
|
...r,
|
|
@@ -2900,8 +3070,8 @@ function qn(e) {
|
|
|
2900
3070
|
})
|
|
2901
3071
|
});
|
|
2902
3072
|
}
|
|
2903
|
-
function
|
|
2904
|
-
return
|
|
3073
|
+
function cr({ children: e, ...t }) {
|
|
3074
|
+
return ir() === "alertdialog" ? /* @__PURE__ */ _(M.Trigger, {
|
|
2905
3075
|
"data-eds-component": "Dialog",
|
|
2906
3076
|
...t,
|
|
2907
3077
|
children: e
|
|
@@ -2911,71 +3081,71 @@ function Jn({ children: e, ...t }) {
|
|
|
2911
3081
|
children: e
|
|
2912
3082
|
});
|
|
2913
3083
|
}
|
|
2914
|
-
function
|
|
3084
|
+
function lr({ className: e, ...t }) {
|
|
2915
3085
|
return /* @__PURE__ */ _("div", {
|
|
2916
3086
|
"data-slot": "dialog-header",
|
|
2917
3087
|
className: I("flex flex-col gap-2", e),
|
|
2918
3088
|
...t
|
|
2919
3089
|
});
|
|
2920
3090
|
}
|
|
2921
|
-
function
|
|
3091
|
+
function ur({ className: e, ...t }) {
|
|
2922
3092
|
return /* @__PURE__ */ _("div", {
|
|
2923
3093
|
"data-slot": "dialog-footer",
|
|
2924
3094
|
className: I("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-eds-outline-border bg-eds-neutral-background p-4 sm:flex-row sm:justify-end", e),
|
|
2925
3095
|
...t
|
|
2926
3096
|
});
|
|
2927
3097
|
}
|
|
2928
|
-
function
|
|
2929
|
-
return /* @__PURE__ */ _(
|
|
3098
|
+
function dr({ className: e, ...t }) {
|
|
3099
|
+
return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Title : j.Title, {
|
|
2930
3100
|
className: I("text-base leading-none font-medium text-eds-neutral-main", e),
|
|
2931
3101
|
...t
|
|
2932
3102
|
});
|
|
2933
3103
|
}
|
|
2934
|
-
function
|
|
2935
|
-
return /* @__PURE__ */ _(
|
|
3104
|
+
function fr({ className: e, ...t }) {
|
|
3105
|
+
return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Description : j.Description, {
|
|
2936
3106
|
className: I("text-sm text-eds-neutral-elements", e),
|
|
2937
3107
|
...t
|
|
2938
3108
|
});
|
|
2939
3109
|
}
|
|
2940
|
-
function
|
|
2941
|
-
return /* @__PURE__ */ _(
|
|
3110
|
+
function pr({ children: e, ...t }) {
|
|
3111
|
+
return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Close : j.Close, {
|
|
2942
3112
|
"data-eds-component": "Dialog",
|
|
2943
3113
|
...t,
|
|
2944
3114
|
children: e
|
|
2945
3115
|
});
|
|
2946
3116
|
}
|
|
2947
|
-
|
|
2948
|
-
var
|
|
2949
|
-
Root:
|
|
2950
|
-
Trigger:
|
|
2951
|
-
Header:
|
|
2952
|
-
Footer:
|
|
2953
|
-
Title:
|
|
2954
|
-
Description:
|
|
2955
|
-
Close:
|
|
3117
|
+
sr.displayName = "Dialog.Root", cr.displayName = "Dialog.Trigger", lr.displayName = "Dialog.Header", ur.displayName = "Dialog.Footer", dr.displayName = "Dialog.Title", fr.displayName = "Dialog.Description", pr.displayName = "Dialog.Close";
|
|
3118
|
+
var mr = Object.assign(or, {
|
|
3119
|
+
Root: sr,
|
|
3120
|
+
Trigger: cr,
|
|
3121
|
+
Header: lr,
|
|
3122
|
+
Footer: ur,
|
|
3123
|
+
Title: dr,
|
|
3124
|
+
Description: fr,
|
|
3125
|
+
Close: pr
|
|
2956
3126
|
});
|
|
2957
3127
|
//#endregion
|
|
2958
3128
|
//#region src/components/FormDialog/FormDialog.tsx
|
|
2959
|
-
function
|
|
2960
|
-
return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(
|
|
3129
|
+
function hr({ size: e = "xl" } = {}) {
|
|
3130
|
+
return I("relative flex w-full max-h-full min-h-0 flex-col overflow-hidden rounded-xl bg-white text-sm text-eds-neutral-main ring-1 ring-eds-outline-border outline-none transition-all duration-100 data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0", "[&>form]:flex [&>form]:min-h-0 [&>form]:w-full [&>form]:flex-1 [&>form]:flex-col [&>form]:overflow-hidden", L(tr.size, e, nr.size).classes);
|
|
2961
3131
|
}
|
|
2962
|
-
function
|
|
2963
|
-
let r =
|
|
3132
|
+
function gr({ className: e, children: t, size: n = "xl" }) {
|
|
3133
|
+
let r = ir(), i = r === "alertdialog" ? M.Portal : j.Portal, a = r === "alertdialog" ? M.Backdrop : j.Backdrop, o = r === "alertdialog" ? M.Popup : j.Popup;
|
|
2964
3134
|
return /* @__PURE__ */ v(i, { children: [/* @__PURE__ */ _(a, {
|
|
2965
|
-
className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0",
|
|
2966
|
-
style: { zIndex:
|
|
3135
|
+
className: I("fixed inset-0 isolate bg-black/50 transition-opacity duration-100 data-[ending-style]:opacity-0 data-[starting-style]:opacity-0", on.overlay),
|
|
3136
|
+
style: { zIndex: on.overlayValue }
|
|
2967
3137
|
}), /* @__PURE__ */ _("div", {
|
|
2968
|
-
className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8",
|
|
2969
|
-
style: { zIndex:
|
|
3138
|
+
className: I("pointer-events-none fixed inset-0 flex items-center justify-center p-4 sm:p-8", on.overlay),
|
|
3139
|
+
style: { zIndex: on.overlayValue },
|
|
2970
3140
|
children: /* @__PURE__ */ _(o, {
|
|
2971
3141
|
"data-eds-component": "FormDialog",
|
|
2972
|
-
className: I("pointer-events-auto",
|
|
3142
|
+
className: I("pointer-events-auto", hr({ size: n }), e),
|
|
2973
3143
|
children: t
|
|
2974
3144
|
})
|
|
2975
3145
|
})] });
|
|
2976
3146
|
}
|
|
2977
|
-
function
|
|
2978
|
-
let s =
|
|
3147
|
+
function _r({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i = !0, children: a, ...o }) {
|
|
3148
|
+
let s = ir(), c = s === "alertdialog" ? M.Close : j.Close, l = s === "alertdialog" ? M.Title : j.Title, u = s === "alertdialog" ? M.Description : j.Description, d = n != null || r != null || t;
|
|
2979
3149
|
return /* @__PURE__ */ v("div", {
|
|
2980
3150
|
"data-slot": "form-dialog-header",
|
|
2981
3151
|
className: I("relative flex shrink-0 items-start gap-3 border-b border-eds-outline-border bg-white px-5 py-4", i && "pr-12", e),
|
|
@@ -3019,43 +3189,43 @@ function rr({ className: e, icon: t, title: n, subtitle: r, showCloseButton: i =
|
|
|
3019
3189
|
]
|
|
3020
3190
|
});
|
|
3021
3191
|
}
|
|
3022
|
-
function
|
|
3192
|
+
function vr({ className: e, ...t }) {
|
|
3023
3193
|
return /* @__PURE__ */ _("div", {
|
|
3024
3194
|
"data-slot": "form-dialog-body",
|
|
3025
3195
|
className: I("min-h-0 flex-1 overflow-y-auto overscroll-contain px-5 py-4", e),
|
|
3026
3196
|
...t
|
|
3027
3197
|
});
|
|
3028
3198
|
}
|
|
3029
|
-
function
|
|
3199
|
+
function yr({ className: e, ...t }) {
|
|
3030
3200
|
return /* @__PURE__ */ _("div", {
|
|
3031
3201
|
"data-slot": "form-dialog-footer",
|
|
3032
3202
|
className: I("flex shrink-0 flex-col-reverse gap-2 border-t border-eds-outline-border bg-eds-neutral-background px-5 py-4 sm:flex-row sm:justify-end", e),
|
|
3033
3203
|
...t
|
|
3034
3204
|
});
|
|
3035
3205
|
}
|
|
3036
|
-
function
|
|
3037
|
-
return /* @__PURE__ */ _(
|
|
3206
|
+
function br({ className: e, ...t }) {
|
|
3207
|
+
return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Title : j.Title, {
|
|
3038
3208
|
className: I("text-lg leading-tight font-semibold text-eds-blue-dark", e),
|
|
3039
3209
|
...t
|
|
3040
3210
|
});
|
|
3041
3211
|
}
|
|
3042
|
-
function
|
|
3043
|
-
return /* @__PURE__ */ _(
|
|
3212
|
+
function xr({ className: e, ...t }) {
|
|
3213
|
+
return /* @__PURE__ */ _(ir() === "alertdialog" ? M.Description : j.Description, {
|
|
3044
3214
|
className: I("text-sm leading-snug text-eds-neutral-elements", e),
|
|
3045
3215
|
...t
|
|
3046
3216
|
});
|
|
3047
3217
|
}
|
|
3048
|
-
|
|
3049
|
-
var
|
|
3050
|
-
Root:
|
|
3051
|
-
Trigger:
|
|
3052
|
-
Close:
|
|
3053
|
-
Header:
|
|
3054
|
-
Body:
|
|
3055
|
-
Footer:
|
|
3056
|
-
Title:
|
|
3057
|
-
Description:
|
|
3058
|
-
}),
|
|
3218
|
+
_r.displayName = "FormDialog.Header", vr.displayName = "FormDialog.Body", yr.displayName = "FormDialog.Footer", br.displayName = "FormDialog.Title", xr.displayName = "FormDialog.Description";
|
|
3219
|
+
var Sr = Object.assign(gr, {
|
|
3220
|
+
Root: sr,
|
|
3221
|
+
Trigger: cr,
|
|
3222
|
+
Close: pr,
|
|
3223
|
+
Header: _r,
|
|
3224
|
+
Body: vr,
|
|
3225
|
+
Footer: yr,
|
|
3226
|
+
Title: br,
|
|
3227
|
+
Description: xr
|
|
3228
|
+
}), Cr = { size: {
|
|
3059
3229
|
sm: {
|
|
3060
3230
|
classes: "px-6 py-8 gap-3",
|
|
3061
3231
|
description: "Compact empty state for smaller containers"
|
|
@@ -3068,11 +3238,11 @@ var cr = Object.assign(nr, {
|
|
|
3068
3238
|
classes: "px-12 py-20 gap-6",
|
|
3069
3239
|
description: "Large empty state for prominent placement"
|
|
3070
3240
|
}
|
|
3071
|
-
} },
|
|
3072
|
-
function
|
|
3241
|
+
} }, wr = { size: "md" };
|
|
3242
|
+
function Tr({ icon: e, title: t, description: n, action: r, size: i = wr.size, titleLevel: a = "h2", className: o }) {
|
|
3073
3243
|
return /* @__PURE__ */ v("div", {
|
|
3074
3244
|
"data-eds-component": "Empty",
|
|
3075
|
-
className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(
|
|
3245
|
+
className: I("flex w-full flex-col items-center rounded-eds-sm border border-eds-outline-border bg-eds-neutral-background text-center", L(Cr.size, i, wr.size).classes, o),
|
|
3076
3246
|
children: [
|
|
3077
3247
|
e && /* @__PURE__ */ _("div", {
|
|
3078
3248
|
className: "text-eds-neutral-elements",
|
|
@@ -3093,24 +3263,24 @@ function dr({ icon: e, title: t, description: n, action: r, size: i = ur.size, t
|
|
|
3093
3263
|
}
|
|
3094
3264
|
//#endregion
|
|
3095
3265
|
//#region ../../node_modules/.pnpm/brazilian-values@0.13.1/node_modules/brazilian-values/dist/brazilian-values.mjs
|
|
3096
|
-
var
|
|
3097
|
-
return e.replace(
|
|
3098
|
-
},
|
|
3099
|
-
return
|
|
3100
|
-
},
|
|
3101
|
-
return
|
|
3102
|
-
},
|
|
3103
|
-
return
|
|
3104
|
-
},
|
|
3266
|
+
var Er = /\D/g, Dr = function(e) {
|
|
3267
|
+
return e.replace(Er, "");
|
|
3268
|
+
}, Or = function(e) {
|
|
3269
|
+
return Dr(e).replace(/(\d{5})(\d{1,3})/, "$1-$2");
|
|
3270
|
+
}, kr = function(e) {
|
|
3271
|
+
return Dr(e).replace(/(\d{2})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1/$2").replace(/(\d{4})(\d{1,2})$/, "$1-$2");
|
|
3272
|
+
}, Ar = function(e) {
|
|
3273
|
+
return Dr(e).replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2");
|
|
3274
|
+
}, jr = function(e) {
|
|
3105
3275
|
return (e.match(/\d/g)?.length ?? 0) <= 11;
|
|
3106
|
-
},
|
|
3107
|
-
return
|
|
3108
|
-
},
|
|
3109
|
-
return
|
|
3276
|
+
}, Mr = function(e) {
|
|
3277
|
+
return jr(e) ? Ar(e) : kr(e);
|
|
3278
|
+
}, Nr = function(e) {
|
|
3279
|
+
return Dr(e).replace(/(\d{1,2})/, "($1").replace(/(\(\d{2})(\d{1,4})/, "$1) $2").replace(/( \d{4})(\d{1,4})/, "$1-$2").replace(/( \d{4})(?:-)(\d{1})(\d{4})/, "$1$2-$3");
|
|
3110
3280
|
};
|
|
3111
3281
|
//#endregion
|
|
3112
3282
|
//#region src/components/Input/Input.tsx
|
|
3113
|
-
function
|
|
3283
|
+
function Pr(e) {
|
|
3114
3284
|
if (!e) return "";
|
|
3115
3285
|
let t = e.trimStart().startsWith("-"), n = e.replace(/\./g, ",").replace(/[^\d,]/g, "");
|
|
3116
3286
|
if (!n) return t ? "-" : "";
|
|
@@ -3119,30 +3289,30 @@ function br(e) {
|
|
|
3119
3289
|
let i = n.slice(0, r), a = n.slice(r + 1).replace(/,/g, "");
|
|
3120
3290
|
return `${t ? "-" : ""}${i},${a}`;
|
|
3121
3291
|
}
|
|
3122
|
-
var
|
|
3292
|
+
var Fr = {
|
|
3123
3293
|
default: "",
|
|
3124
3294
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3125
3295
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]",
|
|
3126
3296
|
loading: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-blue-main)_45%,var(--color-eds-outline-border))]"
|
|
3127
3297
|
};
|
|
3128
|
-
function
|
|
3129
|
-
let
|
|
3298
|
+
function Ir({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", inputType: a = "text", required: o = !1, placeholder: s = "Digite algo...", errorMessage: c = "Campo obrigatório", fluid: l = !1, format: f, tooltip: p = null, linkText: m = null, linkUrl: h = null, supportLink: g = null, supportLinkUrl: y = null, supportingText: b = "", lazy: x = !1, labelVariant: S, disableAutocomplete: C = !1, isLoading: w = !1, loadingIconPosition: T = "end", icon: D, hideContent: te = !1, showContentText: ne = "Mostrar", hideContentText: O = "Ocultar", defaultValue: re, value: k, id: A, name: j, onBlur: M, onFocus: P, onKeyDown: F, onClick: L, onChange: ie, ...R }) {
|
|
3299
|
+
let z = ee(), B = A ?? z, V = a === "number", [ae, oe] = E(!1), [H, se] = E(() => {
|
|
3130
3300
|
let e = re?.toString() ?? "";
|
|
3131
|
-
return V ?
|
|
3132
|
-
}),
|
|
3133
|
-
if (V) return
|
|
3301
|
+
return V ? Pr(e) : e;
|
|
3302
|
+
}), U = k !== void 0, ce = (U ? k : H)?.toString() ?? "", le = V ? Pr(ce) : ce, W = g ?? m, G = y ?? h, ue = rn(S), de = ue === "floating", fe = (e) => {
|
|
3303
|
+
if (V) return Pr(e);
|
|
3134
3304
|
switch (f) {
|
|
3135
|
-
case "cep": return
|
|
3136
|
-
case "cpf": return
|
|
3137
|
-
case "cnpj": return
|
|
3138
|
-
case "cpfOrCnpj": return
|
|
3139
|
-
case "phone": return
|
|
3305
|
+
case "cep": return Or(e);
|
|
3306
|
+
case "cpf": return Ar(e);
|
|
3307
|
+
case "cnpj": return kr(e);
|
|
3308
|
+
case "cpfOrCnpj": return Mr(e);
|
|
3309
|
+
case "phone": return Nr(e);
|
|
3140
3310
|
default: return e;
|
|
3141
3311
|
}
|
|
3142
|
-
},
|
|
3143
|
-
let n =
|
|
3144
|
-
|
|
3145
|
-
},
|
|
3312
|
+
}, pe = (e, t) => {
|
|
3313
|
+
let n = fe(e);
|
|
3314
|
+
U || se(n), ie?.(n, t);
|
|
3315
|
+
}, K = r === "invalid", q = n || w, me = an[i], he = w ? /* @__PURE__ */ _("span", {
|
|
3146
3316
|
className: "inline-flex shrink-0 items-center justify-center text-eds-blue-main",
|
|
3147
3317
|
"data-position": T,
|
|
3148
3318
|
"aria-hidden": !0,
|
|
@@ -3152,17 +3322,17 @@ function Sr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3152
3322
|
})
|
|
3153
3323
|
}) : null;
|
|
3154
3324
|
return /* @__PURE__ */ v("div", {
|
|
3155
|
-
className: I(
|
|
3325
|
+
className: I(sn, e),
|
|
3156
3326
|
"data-fluid": l || void 0,
|
|
3157
3327
|
"data-eds-component": "Input",
|
|
3158
|
-
"data-label-variant":
|
|
3328
|
+
"data-label-variant": ue,
|
|
3159
3329
|
children: [
|
|
3160
3330
|
/* @__PURE__ */ v("div", {
|
|
3161
|
-
className:
|
|
3331
|
+
className: cn,
|
|
3162
3332
|
children: [/* @__PURE__ */ v("div", {
|
|
3163
3333
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
3164
3334
|
children: [/* @__PURE__ */ v("label", {
|
|
3165
|
-
className: I(
|
|
3335
|
+
className: I(ln, de && "sr-only", !de && "font-medium"),
|
|
3166
3336
|
htmlFor: B,
|
|
3167
3337
|
children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
|
|
3168
3338
|
className: "text-eds-red-main",
|
|
@@ -3173,33 +3343,33 @@ function Sr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3173
3343
|
className: "inline-flex size-7 cursor-help items-center justify-center rounded-md text-eds-neutral-elements focus-visible:outline-2 focus-visible:outline-eds-blue-main focus-visible:outline-offset-2",
|
|
3174
3344
|
"aria-label": p,
|
|
3175
3345
|
title: p,
|
|
3176
|
-
disabled:
|
|
3346
|
+
disabled: q,
|
|
3177
3347
|
children: /* @__PURE__ */ _(u, {
|
|
3178
3348
|
size: 16,
|
|
3179
3349
|
"aria-hidden": !0
|
|
3180
3350
|
})
|
|
3181
3351
|
})]
|
|
3182
|
-
}),
|
|
3352
|
+
}), W && G && /* @__PURE__ */ _("a", {
|
|
3183
3353
|
className: "text-sm whitespace-nowrap text-eds-blue-main underline underline-offset-[0.15em] aria-disabled:pointer-events-none aria-disabled:opacity-60",
|
|
3184
|
-
href:
|
|
3185
|
-
"aria-disabled":
|
|
3186
|
-
tabIndex:
|
|
3354
|
+
href: G,
|
|
3355
|
+
"aria-disabled": q || void 0,
|
|
3356
|
+
tabIndex: q ? -1 : 0,
|
|
3187
3357
|
onClick: (e) => {
|
|
3188
|
-
|
|
3358
|
+
q && e.preventDefault();
|
|
3189
3359
|
},
|
|
3190
|
-
children:
|
|
3360
|
+
children: W
|
|
3191
3361
|
})]
|
|
3192
3362
|
}),
|
|
3193
3363
|
/* @__PURE__ */ v("div", {
|
|
3194
|
-
className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white",
|
|
3195
|
-
"data-disabled":
|
|
3364
|
+
className: I("group relative inline-flex w-full items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white", me.control, Fr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3365
|
+
"data-disabled": q || void 0,
|
|
3196
3366
|
"data-state": r,
|
|
3197
3367
|
"data-size": i,
|
|
3198
|
-
"data-floating":
|
|
3199
|
-
"data-has-value":
|
|
3368
|
+
"data-floating": de || void 0,
|
|
3369
|
+
"data-has-value": le ? !0 : void 0,
|
|
3200
3370
|
children: [
|
|
3201
|
-
|
|
3202
|
-
className:
|
|
3371
|
+
de && /* @__PURE__ */ v("span", {
|
|
3372
|
+
className: bn(me.left),
|
|
3203
3373
|
children: [/* @__PURE__ */ _("span", { children: t }), o && /* @__PURE__ */ _("span", {
|
|
3204
3374
|
className: "text-eds-red-main",
|
|
3205
3375
|
"aria-hidden": "true",
|
|
@@ -3211,82 +3381,82 @@ function Sr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3211
3381
|
size: 16,
|
|
3212
3382
|
"aria-hidden": !0
|
|
3213
3383
|
}),
|
|
3214
|
-
T === "start" &&
|
|
3384
|
+
T === "start" && he,
|
|
3215
3385
|
/* @__PURE__ */ _(N, {
|
|
3216
|
-
...
|
|
3386
|
+
...R,
|
|
3217
3387
|
id: B,
|
|
3218
3388
|
name: j,
|
|
3219
|
-
className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none",
|
|
3220
|
-
disabled:
|
|
3389
|
+
className: I("box-border min-w-0 flex-1 border-0 bg-transparent p-0 font-inherit text-eds-neutral-main outline-none", dn, me.text),
|
|
3390
|
+
disabled: q,
|
|
3221
3391
|
type: V ? "text" : te ? ae ? "text" : "password" : a,
|
|
3222
|
-
inputMode: V ?
|
|
3223
|
-
lang: V ?
|
|
3392
|
+
inputMode: V ? R.inputMode ?? "decimal" : R.inputMode,
|
|
3393
|
+
lang: V ? R.lang ?? "pt-BR" : R.lang,
|
|
3224
3394
|
required: o,
|
|
3225
3395
|
placeholder: s,
|
|
3226
|
-
autoComplete: C ? "off" :
|
|
3227
|
-
"aria-invalid":
|
|
3228
|
-
"aria-describedby":
|
|
3396
|
+
autoComplete: C ? "off" : R.autoComplete,
|
|
3397
|
+
"aria-invalid": K || void 0,
|
|
3398
|
+
"aria-describedby": K ? `${B}-desc` : void 0,
|
|
3229
3399
|
"aria-busy": w || void 0,
|
|
3230
|
-
value:
|
|
3231
|
-
defaultValue: !
|
|
3400
|
+
value: U || V ? le : void 0,
|
|
3401
|
+
defaultValue: !U && !V ? re : void 0,
|
|
3232
3402
|
onClick: L,
|
|
3233
3403
|
onKeyDown: F,
|
|
3234
3404
|
onFocus: P,
|
|
3235
3405
|
onBlur: (e) => {
|
|
3236
|
-
M?.(e), x &&
|
|
3406
|
+
M?.(e), x && pe(e.currentTarget.value, e);
|
|
3237
3407
|
},
|
|
3238
3408
|
onChange: (e) => {
|
|
3239
3409
|
if (x) {
|
|
3240
|
-
V && !
|
|
3410
|
+
V && !U && se(fe(e.currentTarget.value));
|
|
3241
3411
|
return;
|
|
3242
3412
|
}
|
|
3243
|
-
|
|
3413
|
+
pe(e.currentTarget.value, e);
|
|
3244
3414
|
}
|
|
3245
3415
|
}),
|
|
3246
3416
|
te && !w && /* @__PURE__ */ _("button", {
|
|
3247
3417
|
type: "button",
|
|
3248
3418
|
className: "shrink-0 text-sm font-medium text-eds-blue-main hover:underline",
|
|
3249
|
-
disabled:
|
|
3250
|
-
onClick: () =>
|
|
3419
|
+
disabled: q,
|
|
3420
|
+
onClick: () => oe((e) => !e),
|
|
3251
3421
|
children: ae ? O : ne
|
|
3252
3422
|
}),
|
|
3253
|
-
T === "end" &&
|
|
3423
|
+
T === "end" && he
|
|
3254
3424
|
]
|
|
3255
3425
|
}),
|
|
3256
|
-
(
|
|
3426
|
+
(K || b) && /* @__PURE__ */ _("div", {
|
|
3257
3427
|
id: `${B}-desc`,
|
|
3258
3428
|
className: "text-xs text-eds-neutral-elements data-[state=invalid]:text-eds-red-main",
|
|
3259
|
-
"data-state":
|
|
3260
|
-
children:
|
|
3429
|
+
"data-state": K ? "invalid" : r,
|
|
3430
|
+
children: K ? c : b
|
|
3261
3431
|
})
|
|
3262
3432
|
]
|
|
3263
3433
|
});
|
|
3264
3434
|
}
|
|
3265
3435
|
//#endregion
|
|
3266
3436
|
//#region src/components/Textarea/Textarea.tsx
|
|
3267
|
-
var
|
|
3437
|
+
var Lr = {
|
|
3268
3438
|
default: "",
|
|
3269
3439
|
valid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3270
3440
|
invalid: "not-focus-within:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3271
|
-
},
|
|
3441
|
+
}, Rr = {
|
|
3272
3442
|
sm: "min-h-20",
|
|
3273
3443
|
md: "min-h-24",
|
|
3274
3444
|
lg: "min-h-32"
|
|
3275
3445
|
};
|
|
3276
|
-
function
|
|
3277
|
-
let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M =
|
|
3446
|
+
function zr({ className: e, label: t = "Label", disabled: n = !1, state: r = "default", size: i = "md", required: a = !1, placeholder: o = "Digite algo...", errorMessage: s = "Campo obrigatório", fluid: c = !1, tooltip: l = null, supportLink: d = null, supportLinkUrl: f = null, supportingText: p = "", labelVariant: m, rows: h = 4, defaultValue: g, value: y, id: b, name: x, onBlur: S, onFocus: C, onKeyDown: w, onClick: T, onChange: D, ...te }) {
|
|
3447
|
+
let ne = ee(), O = b ?? ne, [re, k] = E(() => g?.toString() ?? ""), A = y !== void 0, j = (A ? y : re)?.toString() ?? "", M = rn(m), N = M === "floating", P = r === "invalid", F = an[i];
|
|
3278
3448
|
return /* @__PURE__ */ v("div", {
|
|
3279
|
-
className: I(
|
|
3449
|
+
className: I(sn, e),
|
|
3280
3450
|
"data-fluid": c || void 0,
|
|
3281
3451
|
"data-eds-component": "Textarea",
|
|
3282
3452
|
"data-label-variant": M,
|
|
3283
3453
|
children: [
|
|
3284
3454
|
/* @__PURE__ */ v("div", {
|
|
3285
|
-
className:
|
|
3455
|
+
className: cn,
|
|
3286
3456
|
children: [/* @__PURE__ */ v("div", {
|
|
3287
3457
|
className: "inline-flex min-w-0 items-center gap-2",
|
|
3288
3458
|
children: [/* @__PURE__ */ v("label", {
|
|
3289
|
-
className: I(
|
|
3459
|
+
className: I(ln, N && "sr-only", !N && "font-medium"),
|
|
3290
3460
|
htmlFor: O,
|
|
3291
3461
|
children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
|
|
3292
3462
|
className: "text-eds-red-main",
|
|
@@ -3315,14 +3485,14 @@ function Tr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3315
3485
|
})]
|
|
3316
3486
|
}),
|
|
3317
3487
|
/* @__PURE__ */ v("div", {
|
|
3318
|
-
className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5",
|
|
3488
|
+
className: I("group relative flex w-full flex-col rounded-eds-xs border border-eds-outline-border !bg-white", F.paddingX, "py-2.5", Rr[i], Lr[r], "focus-within:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-within:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)]", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:!bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3319
3489
|
"data-disabled": n || void 0,
|
|
3320
3490
|
"data-state": r,
|
|
3321
3491
|
"data-size": i,
|
|
3322
3492
|
"data-floating": N || void 0,
|
|
3323
3493
|
"data-has-value": j ? !0 : void 0,
|
|
3324
3494
|
children: [N && /* @__PURE__ */ v("span", {
|
|
3325
|
-
className:
|
|
3495
|
+
className: bn(F.left),
|
|
3326
3496
|
children: [/* @__PURE__ */ _("span", { children: t }), a && /* @__PURE__ */ _("span", {
|
|
3327
3497
|
className: "text-eds-red-main",
|
|
3328
3498
|
"aria-hidden": "true",
|
|
@@ -3333,7 +3503,7 @@ function Tr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3333
3503
|
id: O,
|
|
3334
3504
|
name: x,
|
|
3335
3505
|
rows: h,
|
|
3336
|
-
className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none",
|
|
3506
|
+
className: I("box-border min-h-[inherit] w-full flex-1 resize-y appearance-none border-0 !bg-white p-0 font-inherit text-eds-neutral-main shadow-none outline-none", dn, F.text, "disabled:cursor-not-allowed disabled:!bg-eds-neutral-background"),
|
|
3337
3507
|
disabled: n,
|
|
3338
3508
|
required: a,
|
|
3339
3509
|
placeholder: o,
|
|
@@ -3361,23 +3531,23 @@ function Tr({ className: e, label: t = "Label", disabled: n = !1, state: r = "de
|
|
|
3361
3531
|
}
|
|
3362
3532
|
//#endregion
|
|
3363
3533
|
//#region src/components/Select/Select.tsx
|
|
3364
|
-
var
|
|
3534
|
+
var Br = {
|
|
3365
3535
|
default: "",
|
|
3366
3536
|
valid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-green-main)_55%,var(--color-eds-outline-border))]",
|
|
3367
3537
|
invalid: "not-focus-visible:border-[color-mix(in_srgb,var(--color-eds-red-main)_55%,var(--color-eds-outline-border))]"
|
|
3368
3538
|
};
|
|
3369
|
-
function
|
|
3370
|
-
let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E =
|
|
3539
|
+
function Vr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "Selecione uma opção", disabled: i = !1, required: s = !1, fluid: c = !1, state: l = "default", size: u = "md", supportingText: d = "", errorMessage: f = "Selecione uma opção válida", id: p, name: m, value: h = void 0, defaultValue: g = void 0, onValueChange: y = void 0, renderItem: b = void 0, className: x }) {
|
|
3540
|
+
let S = ee(), C = p ?? S, w = l === "invalid", T = w || d, E = an[u], D = rn(t), te = D === "floating";
|
|
3371
3541
|
return /* @__PURE__ */ v("div", {
|
|
3372
|
-
className: I(
|
|
3542
|
+
className: I(sn, x),
|
|
3373
3543
|
"data-fluid": c || void 0,
|
|
3374
3544
|
"data-eds-component": "Select",
|
|
3375
3545
|
"data-label-variant": D,
|
|
3376
3546
|
children: [
|
|
3377
3547
|
/* @__PURE__ */ _("div", {
|
|
3378
|
-
className:
|
|
3548
|
+
className: cn,
|
|
3379
3549
|
children: /* @__PURE__ */ v("label", {
|
|
3380
|
-
className: I(
|
|
3550
|
+
className: I(ln, te && "sr-only", !te && "font-medium"),
|
|
3381
3551
|
htmlFor: C,
|
|
3382
3552
|
children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
|
|
3383
3553
|
className: "text-eds-red-main",
|
|
@@ -3394,14 +3564,14 @@ function Dr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3394
3564
|
defaultValue: g,
|
|
3395
3565
|
value: h,
|
|
3396
3566
|
children: [/* @__PURE__ */ v(P.Trigger, {
|
|
3397
|
-
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger,
|
|
3567
|
+
className: I("group relative box-border inline-flex w-full cursor-pointer items-center gap-2 rounded-eds-xs border border-eds-outline-border bg-white py-0", E.trigger, Br[l], "focus-visible:border-[color-mix(in_srgb,var(--color-eds-neutral-elements)_35%,var(--color-eds-outline-border))] focus-visible:shadow-[0_0_0_3px_var(--color-eds-outline-focus-ring)] focus-visible:outline-none", "data-disabled:cursor-not-allowed data-disabled:border-eds-outline-border data-disabled:bg-eds-neutral-background data-disabled:opacity-70"),
|
|
3398
3568
|
"data-state": l,
|
|
3399
3569
|
"data-size": u,
|
|
3400
3570
|
"data-disabled": i || void 0,
|
|
3401
3571
|
"aria-describedby": T ? `${C}-desc` : void 0,
|
|
3402
3572
|
children: [
|
|
3403
3573
|
te && /* @__PURE__ */ v("span", {
|
|
3404
|
-
className:
|
|
3574
|
+
className: bn(E.left),
|
|
3405
3575
|
children: [/* @__PURE__ */ _("span", { children: e }), s && /* @__PURE__ */ _("span", {
|
|
3406
3576
|
className: "text-eds-red-main",
|
|
3407
3577
|
"aria-hidden": "true",
|
|
@@ -3409,7 +3579,7 @@ function Dr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3409
3579
|
})]
|
|
3410
3580
|
}),
|
|
3411
3581
|
/* @__PURE__ */ _(P.Value, {
|
|
3412
|
-
className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main",
|
|
3582
|
+
className: I("box-border min-w-0 flex-1 truncate text-left font-inherit text-eds-neutral-main", fn, E.text),
|
|
3413
3583
|
placeholder: r
|
|
3414
3584
|
}),
|
|
3415
3585
|
/* @__PURE__ */ _(P.Icon, {
|
|
@@ -3422,19 +3592,19 @@ function Dr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3422
3592
|
})
|
|
3423
3593
|
]
|
|
3424
3594
|
}), /* @__PURE__ */ _(P.Portal, { children: /* @__PURE__ */ _(P.Positioner, {
|
|
3425
|
-
className:
|
|
3426
|
-
style:
|
|
3595
|
+
className: vn,
|
|
3596
|
+
style: yn,
|
|
3427
3597
|
positionMethod: "fixed",
|
|
3428
3598
|
sideOffset: 4,
|
|
3429
3599
|
children: /* @__PURE__ */ _(P.Popup, {
|
|
3430
|
-
className:
|
|
3600
|
+
className: mn,
|
|
3431
3601
|
children: /* @__PURE__ */ _(P.List, {
|
|
3432
|
-
className:
|
|
3602
|
+
className: hn,
|
|
3433
3603
|
children: n.map((e) => /* @__PURE__ */ v(P.Item, {
|
|
3434
3604
|
value: e,
|
|
3435
|
-
className:
|
|
3605
|
+
className: gn,
|
|
3436
3606
|
children: [/* @__PURE__ */ _(P.ItemIndicator, {
|
|
3437
|
-
className:
|
|
3607
|
+
className: _n,
|
|
3438
3608
|
children: /* @__PURE__ */ _(a, {
|
|
3439
3609
|
size: 14,
|
|
3440
3610
|
"aria-hidden": !0
|
|
@@ -3459,7 +3629,7 @@ function Dr({ label: e = "Label", labelVariant: t, items: n, placeholder: r = "S
|
|
|
3459
3629
|
}
|
|
3460
3630
|
//#endregion
|
|
3461
3631
|
//#region src/components/Text/Text.tsx
|
|
3462
|
-
var
|
|
3632
|
+
var Hr = {
|
|
3463
3633
|
variant: {
|
|
3464
3634
|
heading1: {
|
|
3465
3635
|
classes: "text-3xl font-semibold",
|
|
@@ -3516,20 +3686,20 @@ var Or = {
|
|
|
3516
3686
|
description: "Large text"
|
|
3517
3687
|
}
|
|
3518
3688
|
}
|
|
3519
|
-
},
|
|
3689
|
+
}, Ur = {
|
|
3520
3690
|
variant: "body",
|
|
3521
3691
|
size: "md"
|
|
3522
|
-
},
|
|
3692
|
+
}, Wr = /* @__PURE__ */ new Set([
|
|
3523
3693
|
"heading1",
|
|
3524
3694
|
"heading2",
|
|
3525
3695
|
"heading3"
|
|
3526
|
-
]),
|
|
3527
|
-
function
|
|
3528
|
-
let l =
|
|
3696
|
+
]), Gr = /* @__PURE__ */ new Set(["mono", "mono-secondary"]);
|
|
3697
|
+
function Kr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !1, children: i, className: a, as: o, ...s }, c) {
|
|
3698
|
+
let l = Gr.has(e), u = Wr.has(e), d = w(() => o || (l || u ? "span" : "p"), [
|
|
3529
3699
|
o,
|
|
3530
3700
|
l,
|
|
3531
3701
|
u
|
|
3532
|
-
]), f = L(
|
|
3702
|
+
]), f = L(Hr.variant, e, Ur.variant), p = L(Hr.size, n ?? "md", Ur.size);
|
|
3533
3703
|
return /* @__PURE__ */ _(d, {
|
|
3534
3704
|
ref: c,
|
|
3535
3705
|
"data-eds-component": "Text",
|
|
@@ -3538,7 +3708,7 @@ function Mr({ variant: e = "body", bold: t = !1, size: n = "md", truncate: r = !
|
|
|
3538
3708
|
children: i
|
|
3539
3709
|
});
|
|
3540
3710
|
}
|
|
3541
|
-
var
|
|
3711
|
+
var qr = x(Kr), Jr = {
|
|
3542
3712
|
layout: {
|
|
3543
3713
|
auto: {
|
|
3544
3714
|
classes: "",
|
|
@@ -3587,15 +3757,15 @@ var Nr = x(Mr), Pr = {
|
|
|
3587
3757
|
description: "Pin column to the right edge of the scroll container"
|
|
3588
3758
|
}
|
|
3589
3759
|
}
|
|
3590
|
-
},
|
|
3591
|
-
let n = L(
|
|
3760
|
+
}, Yr = (e, t) => {
|
|
3761
|
+
let n = L(Jr.sticky, e, "left").classes, r = t === "head" ? "z-2" : "z-1", i = e === "right" ? "before:-left-6" : "before:-right-6", a = "before:pointer-events-none before:absolute before:inset-y-0 before:w-6";
|
|
3592
3762
|
return t === "cell" ? I(n, r, "bg-white", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-white" : "before:bg-gradient-to-l before:from-transparent before:to-white") : I(n, r, "bg-eds-neutral-background", a, i, e === "right" ? "before:bg-gradient-to-r before:from-transparent before:to-eds-neutral-background" : "before:bg-gradient-to-l before:from-transparent before:to-eds-neutral-background");
|
|
3593
|
-
},
|
|
3763
|
+
}, Xr = {
|
|
3594
3764
|
layout: "auto",
|
|
3595
3765
|
variant: "default",
|
|
3596
3766
|
dividers: "row"
|
|
3597
|
-
},
|
|
3598
|
-
let o = I("isolate w-full", L(
|
|
3767
|
+
}, Zr = x(({ layout: e = "auto", dividers: t = Xr.dividers, className: n, containerClassName: r, ...i }, a) => {
|
|
3768
|
+
let o = I("isolate w-full", L(Jr.layout, e, Xr.layout).classes, L(Jr.dividers, t, Xr.dividers).classes, "[&_td]:p-3", "[&_th]:border-b [&_th]:border-eds-neutral-disabled [&_th]:p-3 [&_th]:font-semibold [&_th]:text-sm", "[&_th]:bg-eds-neutral-background", "text-sm text-left text-eds-neutral-main", n);
|
|
3599
3769
|
return /* @__PURE__ */ _("div", {
|
|
3600
3770
|
className: I("w-full overflow-x-auto rounded-eds-xs border border-eds-outline-border bg-white", r),
|
|
3601
3771
|
children: /* @__PURE__ */ _("table", {
|
|
@@ -3605,7 +3775,7 @@ var Nr = x(Mr), Pr = {
|
|
|
3605
3775
|
className: o
|
|
3606
3776
|
})
|
|
3607
3777
|
});
|
|
3608
|
-
}),
|
|
3778
|
+
}), Qr = x(({ variant: e = "default", sticky: t, ...n }, r) => {
|
|
3609
3779
|
let i = e === "compact", a = I("group/header", i && "[&_th]:py-2 text-xs text-eds-neutral-elements", t && "[&_th]:sticky [&_th]:top-0 [&_th]:z-1", n.className);
|
|
3610
3780
|
return /* @__PURE__ */ _("thead", {
|
|
3611
3781
|
ref: r,
|
|
@@ -3613,45 +3783,45 @@ var Nr = x(Mr), Pr = {
|
|
|
3613
3783
|
className: a,
|
|
3614
3784
|
...i && { "data-compact": "" }
|
|
3615
3785
|
});
|
|
3616
|
-
}),
|
|
3617
|
-
let r = I("group relative", e &&
|
|
3786
|
+
}), $r = x(({ sticky: e, ...t }, n) => {
|
|
3787
|
+
let r = I("group relative", e && Yr(e, "head"), t.className);
|
|
3618
3788
|
return /* @__PURE__ */ _("th", {
|
|
3619
3789
|
ref: n,
|
|
3620
3790
|
...t,
|
|
3621
3791
|
className: r
|
|
3622
3792
|
});
|
|
3623
|
-
}),
|
|
3624
|
-
let r = I(L(
|
|
3793
|
+
}), ei = x(({ variant: e = Xr.variant, ...t }, n) => {
|
|
3794
|
+
let r = I(L(Jr.variant, e, Xr.variant).classes, t.className);
|
|
3625
3795
|
return /* @__PURE__ */ _("tr", {
|
|
3626
3796
|
ref: n,
|
|
3627
3797
|
...t,
|
|
3628
3798
|
className: r
|
|
3629
3799
|
});
|
|
3630
|
-
}),
|
|
3800
|
+
}), ti = x((e, t) => /* @__PURE__ */ _("tbody", {
|
|
3631
3801
|
ref: t,
|
|
3632
3802
|
...e
|
|
3633
|
-
})),
|
|
3634
|
-
let r = I(e &&
|
|
3803
|
+
})), ni = x(({ sticky: e, ...t }, n) => {
|
|
3804
|
+
let r = I(e && Yr(e, "cell"), t.className);
|
|
3635
3805
|
return /* @__PURE__ */ _("td", {
|
|
3636
3806
|
ref: n,
|
|
3637
3807
|
...t,
|
|
3638
3808
|
className: r
|
|
3639
3809
|
});
|
|
3640
|
-
}),
|
|
3810
|
+
}), ri = x((e, t) => /* @__PURE__ */ _("tfoot", {
|
|
3641
3811
|
ref: t,
|
|
3642
3812
|
...e
|
|
3643
|
-
})),
|
|
3813
|
+
})), ii = x((e, t) => /* @__PURE__ */ _("button", {
|
|
3644
3814
|
ref: t,
|
|
3645
3815
|
...e,
|
|
3646
3816
|
type: "button",
|
|
3647
3817
|
"aria-label": "Redimensionar coluna",
|
|
3648
3818
|
className: I("opacity-0 h-full group-hover:opacity-100 focus-visible:opacity-100", "w-[10px]", "flex items-center justify-center", "cursor-col-resize touch-none select-none", "absolute top-0 right-0", "m-0 bg-white p-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-eds-blue-main", e.className),
|
|
3649
3819
|
children: /* @__PURE__ */ _("span", { className: "h-5 w-[2px] rounded bg-eds-neutral-disabled" })
|
|
3650
|
-
})),
|
|
3820
|
+
})), ai = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _(ni, {
|
|
3651
3821
|
ref: o,
|
|
3652
3822
|
...a,
|
|
3653
3823
|
className: I("w-10 leading-none", a.className),
|
|
3654
|
-
children: /* @__PURE__ */ _(
|
|
3824
|
+
children: /* @__PURE__ */ _(nn, {
|
|
3655
3825
|
checked: e,
|
|
3656
3826
|
indeterminate: t,
|
|
3657
3827
|
onCheckedChange: n,
|
|
@@ -3659,11 +3829,11 @@ var Nr = x(Mr), Pr = {
|
|
|
3659
3829
|
disabled: i,
|
|
3660
3830
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
3661
3831
|
})
|
|
3662
|
-
})),
|
|
3832
|
+
})), oi = x(({ checked: e, indeterminate: t, onCheckedChange: n, label: r, disabled: i, ...a }, o) => /* @__PURE__ */ _($r, {
|
|
3663
3833
|
ref: o,
|
|
3664
3834
|
...a,
|
|
3665
3835
|
className: I("w-10 leading-none", a.className),
|
|
3666
|
-
children: /* @__PURE__ */ _(
|
|
3836
|
+
children: /* @__PURE__ */ _(nn, {
|
|
3667
3837
|
checked: e,
|
|
3668
3838
|
indeterminate: t,
|
|
3669
3839
|
onCheckedChange: n,
|
|
@@ -3672,38 +3842,38 @@ var Nr = x(Mr), Pr = {
|
|
|
3672
3842
|
className: "relative before:absolute before:-inset-3 before:content-['']"
|
|
3673
3843
|
})
|
|
3674
3844
|
}));
|
|
3675
|
-
|
|
3676
|
-
var
|
|
3677
|
-
Header:
|
|
3678
|
-
Head:
|
|
3679
|
-
Row:
|
|
3680
|
-
Body:
|
|
3681
|
-
Cell:
|
|
3682
|
-
CheckCell:
|
|
3683
|
-
CheckHead:
|
|
3684
|
-
Footer:
|
|
3685
|
-
ResizeHandle:
|
|
3845
|
+
Zr.displayName = "Table", ti.displayName = "Table.Body", $r.displayName = "Table.Head", ei.displayName = "Table.Row", ni.displayName = "Table.Cell", ri.displayName = "Table.Footer", Qr.displayName = "Table.Header", ii.displayName = "Table.ResizeHandle", ai.displayName = "Table.CheckCell", oi.displayName = "Table.CheckHead";
|
|
3846
|
+
var X = Object.assign(Zr, {
|
|
3847
|
+
Header: Qr,
|
|
3848
|
+
Head: $r,
|
|
3849
|
+
Row: ei,
|
|
3850
|
+
Body: ti,
|
|
3851
|
+
Cell: ni,
|
|
3852
|
+
CheckCell: ai,
|
|
3853
|
+
CheckHead: oi,
|
|
3854
|
+
Footer: ri,
|
|
3855
|
+
ResizeHandle: ii
|
|
3686
3856
|
});
|
|
3687
3857
|
//#endregion
|
|
3688
3858
|
//#region ../../node_modules/.pnpm/@tanstack+table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
3689
|
-
function
|
|
3859
|
+
function si(e, t) {
|
|
3690
3860
|
return typeof e == "function" ? e(t) : e;
|
|
3691
3861
|
}
|
|
3692
|
-
function
|
|
3862
|
+
function ci(e, t) {
|
|
3693
3863
|
return (n) => {
|
|
3694
3864
|
t.setState((t) => ({
|
|
3695
3865
|
...t,
|
|
3696
|
-
[e]:
|
|
3866
|
+
[e]: si(n, t[e])
|
|
3697
3867
|
}));
|
|
3698
3868
|
};
|
|
3699
3869
|
}
|
|
3700
|
-
function
|
|
3870
|
+
function li(e) {
|
|
3701
3871
|
return e instanceof Function;
|
|
3702
3872
|
}
|
|
3703
|
-
function
|
|
3873
|
+
function ui(e) {
|
|
3704
3874
|
return Array.isArray(e) && e.every((e) => typeof e == "number");
|
|
3705
3875
|
}
|
|
3706
|
-
function
|
|
3876
|
+
function di(e, t) {
|
|
3707
3877
|
let n = [], r = (e) => {
|
|
3708
3878
|
e.forEach((e) => {
|
|
3709
3879
|
n.push(e);
|
|
@@ -3742,7 +3912,7 @@ function Q(e, t, n, r) {
|
|
|
3742
3912
|
onChange: r
|
|
3743
3913
|
};
|
|
3744
3914
|
}
|
|
3745
|
-
function
|
|
3915
|
+
function fi(e, t, n, r) {
|
|
3746
3916
|
let i = {
|
|
3747
3917
|
id: `${t.id}_${n.id}`,
|
|
3748
3918
|
row: t,
|
|
@@ -3767,7 +3937,7 @@ function Zr(e, t, n, r) {
|
|
|
3767
3937
|
r.createCell == null || r.createCell(i, n, t, e);
|
|
3768
3938
|
}, {}), i;
|
|
3769
3939
|
}
|
|
3770
|
-
function
|
|
3940
|
+
function pi(e, t, n, r) {
|
|
3771
3941
|
let i = {
|
|
3772
3942
|
...e._getDefaultColumnDef(),
|
|
3773
3943
|
...t
|
|
@@ -3794,7 +3964,7 @@ function Qr(e, t, n, r) {
|
|
|
3794
3964
|
return c;
|
|
3795
3965
|
}
|
|
3796
3966
|
var $ = "debugHeaders";
|
|
3797
|
-
function
|
|
3967
|
+
function mi(e, t, n) {
|
|
3798
3968
|
let r = {
|
|
3799
3969
|
id: n.id ?? t.id,
|
|
3800
3970
|
column: t,
|
|
@@ -3822,7 +3992,7 @@ function $r(e, t, n) {
|
|
|
3822
3992
|
t.createHeader == null || t.createHeader(r, e);
|
|
3823
3993
|
}), r;
|
|
3824
3994
|
}
|
|
3825
|
-
var
|
|
3995
|
+
var hi = { createTable: (e) => {
|
|
3826
3996
|
e.getHeaderGroups = Z(() => [
|
|
3827
3997
|
e.getAllColumns(),
|
|
3828
3998
|
e.getVisibleLeafColumns(),
|
|
@@ -3830,7 +4000,7 @@ var ei = { createTable: (e) => {
|
|
|
3830
4000
|
e.getState().columnPinning.right
|
|
3831
4001
|
], (t, n, r, i) => {
|
|
3832
4002
|
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
|
|
3833
|
-
return
|
|
4003
|
+
return gi(t, [
|
|
3834
4004
|
...a,
|
|
3835
4005
|
...s,
|
|
3836
4006
|
...o
|
|
@@ -3840,15 +4010,15 @@ var ei = { createTable: (e) => {
|
|
|
3840
4010
|
e.getVisibleLeafColumns(),
|
|
3841
4011
|
e.getState().columnPinning.left,
|
|
3842
4012
|
e.getState().columnPinning.right
|
|
3843
|
-
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))),
|
|
4013
|
+
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), gi(t, n, e, "center")), Q(e.options, $, "getCenterHeaderGroups")), e.getLeftHeaderGroups = Z(() => [
|
|
3844
4014
|
e.getAllColumns(),
|
|
3845
4015
|
e.getVisibleLeafColumns(),
|
|
3846
4016
|
e.getState().columnPinning.left
|
|
3847
|
-
], (t, n, r) =>
|
|
4017
|
+
], (t, n, r) => gi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), Q(e.options, $, "getLeftHeaderGroups")), e.getRightHeaderGroups = Z(() => [
|
|
3848
4018
|
e.getAllColumns(),
|
|
3849
4019
|
e.getVisibleLeafColumns(),
|
|
3850
4020
|
e.getState().columnPinning.right
|
|
3851
|
-
], (t, n, r) =>
|
|
4021
|
+
], (t, n, r) => gi(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), Q(e.options, $, "getRightHeaderGroups")), e.getFooterGroups = Z(() => [e.getHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getFooterGroups")), e.getLeftFooterGroups = Z(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getLeftFooterGroups")), e.getCenterFooterGroups = Z(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getCenterFooterGroups")), e.getRightFooterGroups = Z(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), Q(e.options, $, "getRightFooterGroups")), e.getFlatHeaders = Z(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getFlatHeaders")), e.getLeftFlatHeaders = Z(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getLeftFlatHeaders")), e.getCenterFlatHeaders = Z(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getCenterFlatHeaders")), e.getRightFlatHeaders = Z(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), Q(e.options, $, "getRightFlatHeaders")), e.getCenterLeafHeaders = Z(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
|
|
3852
4022
|
var t;
|
|
3853
4023
|
return !((t = e.subHeaders) != null && t.length);
|
|
3854
4024
|
}), Q(e.options, $, "getCenterLeafHeaders")), e.getLeftLeafHeaders = Z(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
|
|
@@ -3867,7 +4037,7 @@ var ei = { createTable: (e) => {
|
|
|
3867
4037
|
...n[0]?.headers ?? []
|
|
3868
4038
|
].map((e) => e.getLeafHeaders()).flat(), Q(e.options, $, "getLeafHeaders"));
|
|
3869
4039
|
} };
|
|
3870
|
-
function
|
|
4040
|
+
function gi(e, t, n, r) {
|
|
3871
4041
|
let i = 0, a = function(e, t) {
|
|
3872
4042
|
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
|
|
3873
4043
|
var n;
|
|
@@ -3885,7 +4055,7 @@ function ti(e, t, n, r) {
|
|
|
3885
4055
|
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
|
|
3886
4056
|
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
|
|
3887
4057
|
else {
|
|
3888
|
-
let i =
|
|
4058
|
+
let i = mi(n, c, {
|
|
3889
4059
|
id: [
|
|
3890
4060
|
r,
|
|
3891
4061
|
t,
|
|
@@ -3902,7 +4072,7 @@ function ti(e, t, n, r) {
|
|
|
3902
4072
|
i.headers.push(e), e.headerGroup = i;
|
|
3903
4073
|
}), o.push(i), t > 0 && s(a, t - 1);
|
|
3904
4074
|
};
|
|
3905
|
-
s(t.map((e, t) =>
|
|
4075
|
+
s(t.map((e, t) => mi(n, e, {
|
|
3906
4076
|
depth: i,
|
|
3907
4077
|
index: t
|
|
3908
4078
|
})), i - 1), o.reverse();
|
|
@@ -3920,7 +4090,7 @@ function ti(e, t, n, r) {
|
|
|
3920
4090
|
});
|
|
3921
4091
|
return c(o[0]?.headers ?? []), o;
|
|
3922
4092
|
}
|
|
3923
|
-
var
|
|
4093
|
+
var _i = (e, t, n, r, i, a, o) => {
|
|
3924
4094
|
let s = {
|
|
3925
4095
|
id: t,
|
|
3926
4096
|
index: r,
|
|
@@ -3941,7 +4111,7 @@ var ni = (e, t, n, r, i, a, o) => {
|
|
|
3941
4111
|
},
|
|
3942
4112
|
renderValue: (t) => s.getValue(t) ?? e.options.renderFallbackValue,
|
|
3943
4113
|
subRows: a ?? [],
|
|
3944
|
-
getLeafRows: () =>
|
|
4114
|
+
getLeafRows: () => di(s.subRows, (e) => e.subRows),
|
|
3945
4115
|
getParentRow: () => s.parentId ? e.getRow(s.parentId, !0) : void 0,
|
|
3946
4116
|
getParentRows: () => {
|
|
3947
4117
|
let e = [], t = s;
|
|
@@ -3952,7 +4122,7 @@ var ni = (e, t, n, r, i, a, o) => {
|
|
|
3952
4122
|
}
|
|
3953
4123
|
return e.reverse();
|
|
3954
4124
|
},
|
|
3955
|
-
getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) =>
|
|
4125
|
+
getAllCells: Z(() => [e.getAllLeafColumns()], (t) => t.map((t) => fi(e, s, t, t.id)), Q(e.options, "debugRows", "getAllCells")),
|
|
3956
4126
|
_getAllCellsByColumnId: Z(() => [s.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), Q(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
3957
4127
|
};
|
|
3958
4128
|
for (let t = 0; t < e._features.length; t++) {
|
|
@@ -3960,87 +4130,87 @@ var ni = (e, t, n, r, i, a, o) => {
|
|
|
3960
4130
|
n == null || n.createRow == null || n.createRow(s, e);
|
|
3961
4131
|
}
|
|
3962
4132
|
return s;
|
|
3963
|
-
},
|
|
4133
|
+
}, vi = { createColumn: (e, t) => {
|
|
3964
4134
|
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
|
|
3965
4135
|
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
|
|
3966
4136
|
};
|
|
3967
|
-
} },
|
|
4137
|
+
} }, yi = (e, t, n) => {
|
|
3968
4138
|
var r, i;
|
|
3969
4139
|
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
3970
4140
|
return !!(!((i = e.getValue(t)) == null || (i = i.toString()) == null || (i = i.toLowerCase()) == null) && i.includes(a));
|
|
3971
4141
|
};
|
|
3972
|
-
|
|
3973
|
-
var
|
|
4142
|
+
yi.autoRemove = (e) => ki(e);
|
|
4143
|
+
var bi = (e, t, n) => {
|
|
3974
4144
|
var r;
|
|
3975
4145
|
return !!(!((r = e.getValue(t)) == null || (r = r.toString()) == null) && r.includes(n));
|
|
3976
4146
|
};
|
|
3977
|
-
|
|
3978
|
-
var
|
|
4147
|
+
bi.autoRemove = (e) => ki(e);
|
|
4148
|
+
var xi = (e, t, n) => {
|
|
3979
4149
|
var r;
|
|
3980
4150
|
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
3981
4151
|
};
|
|
3982
|
-
|
|
3983
|
-
var
|
|
3984
|
-
|
|
3985
|
-
var
|
|
4152
|
+
xi.autoRemove = (e) => ki(e);
|
|
4153
|
+
var Si = (e, t, n) => e.getValue(t)?.includes(n);
|
|
4154
|
+
Si.autoRemove = (e) => ki(e);
|
|
4155
|
+
var Ci = (e, t, n) => !n.some((n) => {
|
|
3986
4156
|
var r;
|
|
3987
4157
|
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
3988
4158
|
});
|
|
3989
|
-
|
|
3990
|
-
var
|
|
3991
|
-
|
|
3992
|
-
var
|
|
3993
|
-
|
|
3994
|
-
var
|
|
3995
|
-
|
|
3996
|
-
var
|
|
4159
|
+
Ci.autoRemove = (e) => ki(e) || !(e != null && e.length);
|
|
4160
|
+
var wi = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
4161
|
+
wi.autoRemove = (e) => ki(e) || !(e != null && e.length);
|
|
4162
|
+
var Ti = (e, t, n) => e.getValue(t) === n;
|
|
4163
|
+
Ti.autoRemove = (e) => ki(e);
|
|
4164
|
+
var Ei = (e, t, n) => e.getValue(t) == n;
|
|
4165
|
+
Ei.autoRemove = (e) => ki(e);
|
|
4166
|
+
var Di = (e, t, n) => {
|
|
3997
4167
|
let [r, i] = n, a = e.getValue(t);
|
|
3998
4168
|
return a >= r && a <= i;
|
|
3999
4169
|
};
|
|
4000
|
-
|
|
4170
|
+
Di.resolveFilterValue = (e) => {
|
|
4001
4171
|
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
|
|
4002
4172
|
if (a > o) {
|
|
4003
4173
|
let e = a;
|
|
4004
4174
|
a = o, o = e;
|
|
4005
4175
|
}
|
|
4006
4176
|
return [a, o];
|
|
4007
|
-
},
|
|
4008
|
-
var
|
|
4009
|
-
includesString:
|
|
4010
|
-
includesStringSensitive:
|
|
4011
|
-
equalsString:
|
|
4012
|
-
arrIncludes:
|
|
4013
|
-
arrIncludesAll:
|
|
4014
|
-
arrIncludesSome:
|
|
4015
|
-
equals:
|
|
4016
|
-
weakEquals:
|
|
4017
|
-
inNumberRange:
|
|
4177
|
+
}, Di.autoRemove = (e) => ki(e) || ki(e[0]) && ki(e[1]);
|
|
4178
|
+
var Oi = {
|
|
4179
|
+
includesString: yi,
|
|
4180
|
+
includesStringSensitive: bi,
|
|
4181
|
+
equalsString: xi,
|
|
4182
|
+
arrIncludes: Si,
|
|
4183
|
+
arrIncludesAll: Ci,
|
|
4184
|
+
arrIncludesSome: wi,
|
|
4185
|
+
equals: Ti,
|
|
4186
|
+
weakEquals: Ei,
|
|
4187
|
+
inNumberRange: Di
|
|
4018
4188
|
};
|
|
4019
|
-
function
|
|
4189
|
+
function ki(e) {
|
|
4020
4190
|
return e == null || e === "";
|
|
4021
4191
|
}
|
|
4022
|
-
var
|
|
4192
|
+
var Ai = {
|
|
4023
4193
|
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
4024
4194
|
getInitialState: (e) => ({
|
|
4025
4195
|
columnFilters: [],
|
|
4026
4196
|
...e
|
|
4027
4197
|
}),
|
|
4028
4198
|
getDefaultOptions: (e) => ({
|
|
4029
|
-
onColumnFiltersChange:
|
|
4199
|
+
onColumnFiltersChange: ci("columnFilters", e),
|
|
4030
4200
|
filterFromLeafRows: !1,
|
|
4031
4201
|
maxLeafRowFilterDepth: 100
|
|
4032
4202
|
}),
|
|
4033
4203
|
createColumn: (e, t) => {
|
|
4034
4204
|
e.getAutoFilterFn = () => {
|
|
4035
4205
|
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
4036
|
-
return typeof n == "string" ?
|
|
4037
|
-
}, e.getFilterFn = () =>
|
|
4206
|
+
return typeof n == "string" ? Oi.includesString : typeof n == "number" ? Oi.inNumberRange : typeof n == "boolean" || typeof n == "object" && n ? Oi.equals : Array.isArray(n) ? Oi.arrIncludes : Oi.weakEquals;
|
|
4207
|
+
}, e.getFilterFn = () => li(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : t.options.filterFns?.[e.columnDef.filterFn] ?? Oi[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (t.options.enableColumnFilters ?? !0) && (t.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
|
4038
4208
|
var n;
|
|
4039
4209
|
return (n = t.getState().columnFilters) == null || (n = n.find((t) => t.id === e.id)) == null ? void 0 : n.value;
|
|
4040
4210
|
}, e.getFilterIndex = () => t.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (n) => {
|
|
4041
4211
|
t.setColumnFilters((t) => {
|
|
4042
|
-
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a =
|
|
4043
|
-
if (
|
|
4212
|
+
let r = e.getFilterFn(), i = t?.find((t) => t.id === e.id), a = si(n, i ? i.value : void 0);
|
|
4213
|
+
if (ji(r, a, e)) return t?.filter((t) => t.id !== e.id) ?? [];
|
|
4044
4214
|
let o = {
|
|
4045
4215
|
id: e.id,
|
|
4046
4216
|
value: a
|
|
@@ -4055,19 +4225,19 @@ var hi = {
|
|
|
4055
4225
|
createTable: (e) => {
|
|
4056
4226
|
e.setColumnFilters = (t) => {
|
|
4057
4227
|
let n = e.getAllLeafColumns();
|
|
4058
|
-
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) =>
|
|
4228
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => si(t, e)?.filter((e) => {
|
|
4059
4229
|
let t = n.find((t) => t.id === e.id);
|
|
4060
|
-
return !(t &&
|
|
4230
|
+
return !(t && ji(t.getFilterFn(), e.value, t));
|
|
4061
4231
|
}));
|
|
4062
4232
|
}, e.resetColumnFilters = (t) => {
|
|
4063
4233
|
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
|
|
4064
4234
|
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
4065
4235
|
}
|
|
4066
4236
|
};
|
|
4067
|
-
function
|
|
4237
|
+
function ji(e, t, n) {
|
|
4068
4238
|
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
|
|
4069
4239
|
}
|
|
4070
|
-
var
|
|
4240
|
+
var Mi = {
|
|
4071
4241
|
sum: (e, t, n) => n.reduce((t, n) => {
|
|
4072
4242
|
let r = n.getValue(e);
|
|
4073
4243
|
return t + (typeof r == "number" ? r : 0);
|
|
@@ -4103,7 +4273,7 @@ var _i = {
|
|
|
4103
4273
|
median: (e, t) => {
|
|
4104
4274
|
if (!t.length) return;
|
|
4105
4275
|
let n = t.map((t) => t.getValue(e));
|
|
4106
|
-
if (!
|
|
4276
|
+
if (!ui(n)) return;
|
|
4107
4277
|
if (n.length === 1) return n[0];
|
|
4108
4278
|
let r = Math.floor(n.length / 2), i = n.sort((e, t) => e - t);
|
|
4109
4279
|
return n.length % 2 == 0 ? (i[r - 1] + i[r]) / 2 : i[r];
|
|
@@ -4111,7 +4281,7 @@ var _i = {
|
|
|
4111
4281
|
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
|
|
4112
4282
|
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
|
|
4113
4283
|
count: (e, t) => t.length
|
|
4114
|
-
},
|
|
4284
|
+
}, Ni = {
|
|
4115
4285
|
getDefaultColumnDef: () => ({
|
|
4116
4286
|
aggregatedCell: (e) => {
|
|
4117
4287
|
var t;
|
|
@@ -4124,7 +4294,7 @@ var _i = {
|
|
|
4124
4294
|
...e
|
|
4125
4295
|
}),
|
|
4126
4296
|
getDefaultOptions: (e) => ({
|
|
4127
|
-
onGroupingChange:
|
|
4297
|
+
onGroupingChange: ci("grouping", e),
|
|
4128
4298
|
groupedColumnMode: "reorder"
|
|
4129
4299
|
}),
|
|
4130
4300
|
createColumn: (e, t) => {
|
|
@@ -4137,11 +4307,11 @@ var _i = {
|
|
|
4137
4307
|
};
|
|
4138
4308
|
}, e.getAutoAggregationFn = () => {
|
|
4139
4309
|
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
4140
|
-
if (typeof n == "number") return
|
|
4141
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
4310
|
+
if (typeof n == "number") return Mi.sum;
|
|
4311
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return Mi.extent;
|
|
4142
4312
|
}, e.getAggregationFn = () => {
|
|
4143
4313
|
if (!e) throw Error();
|
|
4144
|
-
return
|
|
4314
|
+
return li(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? Mi[e.columnDef.aggregationFn];
|
|
4145
4315
|
};
|
|
4146
4316
|
},
|
|
4147
4317
|
createTable: (e) => {
|
|
@@ -4163,20 +4333,20 @@ var _i = {
|
|
|
4163
4333
|
};
|
|
4164
4334
|
}
|
|
4165
4335
|
};
|
|
4166
|
-
function
|
|
4336
|
+
function Pi(e, t, n) {
|
|
4167
4337
|
if (!(t != null && t.length) || !n) return e;
|
|
4168
4338
|
let r = e.filter((e) => !t.includes(e.id));
|
|
4169
4339
|
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
|
|
4170
4340
|
}
|
|
4171
|
-
var
|
|
4341
|
+
var Fi = {
|
|
4172
4342
|
getInitialState: (e) => ({
|
|
4173
4343
|
columnOrder: [],
|
|
4174
4344
|
...e
|
|
4175
4345
|
}),
|
|
4176
|
-
getDefaultOptions: (e) => ({ onColumnOrderChange:
|
|
4346
|
+
getDefaultOptions: (e) => ({ onColumnOrderChange: ci("columnOrder", e) }),
|
|
4177
4347
|
createColumn: (e, t) => {
|
|
4178
|
-
e.getIndex = Z((e) => [
|
|
4179
|
-
let r =
|
|
4348
|
+
e.getIndex = Z((e) => [Ki(t, e)], (t) => t.findIndex((t) => t.id === e.id), Q(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => Ki(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
|
|
4349
|
+
let r = Ki(t, n);
|
|
4180
4350
|
return r[r.length - 1]?.id === e.id;
|
|
4181
4351
|
};
|
|
4182
4352
|
},
|
|
@@ -4198,18 +4368,18 @@ var bi = {
|
|
|
4198
4368
|
}
|
|
4199
4369
|
i = [...i, ...n];
|
|
4200
4370
|
}
|
|
4201
|
-
return
|
|
4371
|
+
return Pi(i, t, n);
|
|
4202
4372
|
}, Q(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
4203
4373
|
}
|
|
4204
|
-
},
|
|
4374
|
+
}, Ii = () => ({
|
|
4205
4375
|
left: [],
|
|
4206
4376
|
right: []
|
|
4207
|
-
}),
|
|
4377
|
+
}), Li = {
|
|
4208
4378
|
getInitialState: (e) => ({
|
|
4209
|
-
columnPinning:
|
|
4379
|
+
columnPinning: Ii(),
|
|
4210
4380
|
...e
|
|
4211
4381
|
}),
|
|
4212
|
-
getDefaultOptions: (e) => ({ onColumnPinningChange:
|
|
4382
|
+
getDefaultOptions: (e) => ({ onColumnPinningChange: ci("columnPinning", e) }),
|
|
4213
4383
|
createColumn: (e, t) => {
|
|
4214
4384
|
e.pin = (n) => {
|
|
4215
4385
|
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
|
|
@@ -4249,7 +4419,7 @@ var bi = {
|
|
|
4249
4419
|
})), Q(t.options, "debugRows", "getRightVisibleCells"));
|
|
4250
4420
|
},
|
|
4251
4421
|
createTable: (e) => {
|
|
4252
|
-
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ?
|
|
4422
|
+
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? Ii() : e.initialState?.columnPinning ?? Ii()), e.getIsSomeColumnsPinned = (t) => {
|
|
4253
4423
|
let n = e.getState().columnPinning;
|
|
4254
4424
|
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
|
|
4255
4425
|
}, e.getLeftLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = Z(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), Q(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = Z(() => [
|
|
@@ -4262,44 +4432,44 @@ var bi = {
|
|
|
4262
4432
|
}, Q(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
4263
4433
|
}
|
|
4264
4434
|
};
|
|
4265
|
-
function
|
|
4435
|
+
function Ri(e) {
|
|
4266
4436
|
return e || (typeof document < "u" ? document : null);
|
|
4267
4437
|
}
|
|
4268
|
-
var
|
|
4438
|
+
var zi = {
|
|
4269
4439
|
size: 150,
|
|
4270
4440
|
minSize: 20,
|
|
4271
4441
|
maxSize: 2 ** 53 - 1
|
|
4272
|
-
},
|
|
4442
|
+
}, Bi = () => ({
|
|
4273
4443
|
startOffset: null,
|
|
4274
4444
|
startSize: null,
|
|
4275
4445
|
deltaOffset: null,
|
|
4276
4446
|
deltaPercentage: null,
|
|
4277
4447
|
isResizingColumn: !1,
|
|
4278
4448
|
columnSizingStart: []
|
|
4279
|
-
}),
|
|
4280
|
-
getDefaultColumnDef: () =>
|
|
4449
|
+
}), Vi = {
|
|
4450
|
+
getDefaultColumnDef: () => zi,
|
|
4281
4451
|
getInitialState: (e) => ({
|
|
4282
4452
|
columnSizing: {},
|
|
4283
|
-
columnSizingInfo:
|
|
4453
|
+
columnSizingInfo: Bi(),
|
|
4284
4454
|
...e
|
|
4285
4455
|
}),
|
|
4286
4456
|
getDefaultOptions: (e) => ({
|
|
4287
4457
|
columnResizeMode: "onEnd",
|
|
4288
4458
|
columnResizeDirection: "ltr",
|
|
4289
|
-
onColumnSizingChange:
|
|
4290
|
-
onColumnSizingInfoChange:
|
|
4459
|
+
onColumnSizingChange: ci("columnSizing", e),
|
|
4460
|
+
onColumnSizingInfoChange: ci("columnSizingInfo", e)
|
|
4291
4461
|
}),
|
|
4292
4462
|
createColumn: (e, t) => {
|
|
4293
4463
|
e.getSize = () => {
|
|
4294
4464
|
let n = t.getState().columnSizing[e.id];
|
|
4295
|
-
return Math.min(Math.max(e.columnDef.minSize ??
|
|
4465
|
+
return Math.min(Math.max(e.columnDef.minSize ?? zi.minSize, n ?? e.columnDef.size ?? zi.size), e.columnDef.maxSize ?? zi.maxSize);
|
|
4296
4466
|
}, e.getStart = Z((e) => [
|
|
4297
4467
|
e,
|
|
4298
|
-
|
|
4468
|
+
Ki(t, e),
|
|
4299
4469
|
t.getState().columnSizing
|
|
4300
4470
|
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getStart")), e.getAfter = Z((e) => [
|
|
4301
4471
|
e,
|
|
4302
|
-
|
|
4472
|
+
Ki(t, e),
|
|
4303
4473
|
t.getState().columnSizing
|
|
4304
4474
|
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), Q(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
4305
4475
|
t.setColumnSizing((t) => {
|
|
@@ -4323,8 +4493,8 @@ var wi = {
|
|
|
4323
4493
|
}, e.getResizeHandler = (n) => {
|
|
4324
4494
|
let r = t.getColumn(e.column.id), i = r?.getCanResize();
|
|
4325
4495
|
return (a) => {
|
|
4326
|
-
if (!r || !i || (a.persist == null || a.persist(),
|
|
4327
|
-
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c =
|
|
4496
|
+
if (!r || !i || (a.persist == null || a.persist(), Wi(a) && a.touches && a.touches.length > 1)) return;
|
|
4497
|
+
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = Wi(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
|
|
4328
4498
|
typeof n == "number" && (t.setColumnSizingInfo((e) => {
|
|
4329
4499
|
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
|
|
4330
4500
|
return e.columnSizingStart.forEach((e) => {
|
|
@@ -4349,7 +4519,7 @@ var wi = {
|
|
|
4349
4519
|
deltaPercentage: null,
|
|
4350
4520
|
columnSizingStart: []
|
|
4351
4521
|
}));
|
|
4352
|
-
}, p =
|
|
4522
|
+
}, p = Ri(n), m = {
|
|
4353
4523
|
moveHandler: (e) => d(e.clientX),
|
|
4354
4524
|
upHandler: (e) => {
|
|
4355
4525
|
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
|
|
@@ -4359,8 +4529,8 @@ var wi = {
|
|
|
4359
4529
|
upHandler: (e) => {
|
|
4360
4530
|
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
|
|
4361
4531
|
}
|
|
4362
|
-
}, g =
|
|
4363
|
-
|
|
4532
|
+
}, g = Ui() ? { passive: !1 } : !1;
|
|
4533
|
+
Wi(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
|
|
4364
4534
|
...e,
|
|
4365
4535
|
startOffset: c,
|
|
4366
4536
|
startSize: o,
|
|
@@ -4376,12 +4546,12 @@ var wi = {
|
|
|
4376
4546
|
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
|
|
4377
4547
|
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
|
|
4378
4548
|
}, e.resetHeaderSizeInfo = (t) => {
|
|
4379
|
-
e.setColumnSizingInfo(t ?
|
|
4549
|
+
e.setColumnSizingInfo(t ? Bi() : e.initialState.columnSizingInfo ?? Bi());
|
|
4380
4550
|
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
|
|
4381
4551
|
}
|
|
4382
|
-
},
|
|
4383
|
-
function
|
|
4384
|
-
if (typeof
|
|
4552
|
+
}, Hi = null;
|
|
4553
|
+
function Ui() {
|
|
4554
|
+
if (typeof Hi == "boolean") return Hi;
|
|
4385
4555
|
let e = !1;
|
|
4386
4556
|
try {
|
|
4387
4557
|
let t = { get passive() {
|
|
@@ -4391,17 +4561,17 @@ function Oi() {
|
|
|
4391
4561
|
} catch {
|
|
4392
4562
|
e = !1;
|
|
4393
4563
|
}
|
|
4394
|
-
return
|
|
4564
|
+
return Hi = e, Hi;
|
|
4395
4565
|
}
|
|
4396
|
-
function
|
|
4566
|
+
function Wi(e) {
|
|
4397
4567
|
return e.type === "touchstart";
|
|
4398
4568
|
}
|
|
4399
|
-
var
|
|
4569
|
+
var Gi = {
|
|
4400
4570
|
getInitialState: (e) => ({
|
|
4401
4571
|
columnVisibility: {},
|
|
4402
4572
|
...e
|
|
4403
4573
|
}),
|
|
4404
|
-
getDefaultOptions: (e) => ({ onColumnVisibilityChange:
|
|
4574
|
+
getDefaultOptions: (e) => ({ onColumnVisibilityChange: ci("columnVisibility", e) }),
|
|
4405
4575
|
createColumn: (e, t) => {
|
|
4406
4576
|
e.toggleVisibility = (n) => {
|
|
4407
4577
|
e.getCanHide() && t.setColumnVisibility((t) => ({
|
|
@@ -4440,20 +4610,20 @@ var Ai = {
|
|
|
4440
4610
|
};
|
|
4441
4611
|
}
|
|
4442
4612
|
};
|
|
4443
|
-
function
|
|
4613
|
+
function Ki(e, t) {
|
|
4444
4614
|
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
4445
4615
|
}
|
|
4446
|
-
var
|
|
4616
|
+
var qi = { createTable: (e) => {
|
|
4447
4617
|
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
4448
4618
|
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
|
|
4449
4619
|
};
|
|
4450
|
-
} },
|
|
4620
|
+
} }, Ji = {
|
|
4451
4621
|
getInitialState: (e) => ({
|
|
4452
4622
|
globalFilter: void 0,
|
|
4453
4623
|
...e
|
|
4454
4624
|
}),
|
|
4455
4625
|
getDefaultOptions: (e) => ({
|
|
4456
|
-
onGlobalFilterChange:
|
|
4626
|
+
onGlobalFilterChange: ci("globalFilter", e),
|
|
4457
4627
|
globalFilterFn: "auto",
|
|
4458
4628
|
getColumnCanGlobalFilter: (t) => {
|
|
4459
4629
|
var n;
|
|
@@ -4465,22 +4635,22 @@ var Mi = { createTable: (e) => {
|
|
|
4465
4635
|
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
|
|
4466
4636
|
},
|
|
4467
4637
|
createTable: (e) => {
|
|
4468
|
-
e.getGlobalAutoFilterFn = () =>
|
|
4638
|
+
e.getGlobalAutoFilterFn = () => Oi.includesString, e.getGlobalFilterFn = () => {
|
|
4469
4639
|
let { globalFilterFn: t } = e.options;
|
|
4470
|
-
return
|
|
4640
|
+
return li(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? Oi[t];
|
|
4471
4641
|
}, e.setGlobalFilter = (t) => {
|
|
4472
4642
|
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
4473
4643
|
}, e.resetGlobalFilter = (t) => {
|
|
4474
4644
|
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
4475
4645
|
};
|
|
4476
4646
|
}
|
|
4477
|
-
},
|
|
4647
|
+
}, Yi = {
|
|
4478
4648
|
getInitialState: (e) => ({
|
|
4479
4649
|
expanded: {},
|
|
4480
4650
|
...e
|
|
4481
4651
|
}),
|
|
4482
4652
|
getDefaultOptions: (e) => ({
|
|
4483
|
-
onExpandedChange:
|
|
4653
|
+
onExpandedChange: ci("expanded", e),
|
|
4484
4654
|
paginateExpandedRows: !0
|
|
4485
4655
|
}),
|
|
4486
4656
|
createTable: (e) => {
|
|
@@ -4551,18 +4721,18 @@ var Mi = { createTable: (e) => {
|
|
|
4551
4721
|
};
|
|
4552
4722
|
};
|
|
4553
4723
|
}
|
|
4554
|
-
},
|
|
4555
|
-
pageIndex:
|
|
4556
|
-
pageSize:
|
|
4557
|
-
}),
|
|
4724
|
+
}, Xi = 0, Zi = 10, Qi = () => ({
|
|
4725
|
+
pageIndex: Xi,
|
|
4726
|
+
pageSize: Zi
|
|
4727
|
+
}), $i = {
|
|
4558
4728
|
getInitialState: (e) => ({
|
|
4559
4729
|
...e,
|
|
4560
4730
|
pagination: {
|
|
4561
|
-
...
|
|
4731
|
+
...Qi(),
|
|
4562
4732
|
...e?.pagination
|
|
4563
4733
|
}
|
|
4564
4734
|
}),
|
|
4565
|
-
getDefaultOptions: (e) => ({ onPaginationChange:
|
|
4735
|
+
getDefaultOptions: (e) => ({ onPaginationChange: ci("pagination", e) }),
|
|
4566
4736
|
createTable: (e) => {
|
|
4567
4737
|
let t = !1, n = !1;
|
|
4568
4738
|
e._autoResetPageIndex = () => {
|
|
@@ -4578,11 +4748,11 @@ var Mi = { createTable: (e) => {
|
|
|
4578
4748
|
e.resetPageIndex(), n = !1;
|
|
4579
4749
|
});
|
|
4580
4750
|
}
|
|
4581
|
-
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) =>
|
|
4582
|
-
e.setPagination(t ?
|
|
4751
|
+
}, e.setPagination = (t) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => si(t, e)), e.resetPagination = (t) => {
|
|
4752
|
+
e.setPagination(t ? Qi() : e.initialState.pagination ?? Qi());
|
|
4583
4753
|
}, e.setPageIndex = (t) => {
|
|
4584
4754
|
e.setPagination((n) => {
|
|
4585
|
-
let r =
|
|
4755
|
+
let r = si(t, n.pageIndex), i = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
|
|
4586
4756
|
return r = Math.max(0, Math.min(r, i)), {
|
|
4587
4757
|
...n,
|
|
4588
4758
|
pageIndex: r
|
|
@@ -4590,13 +4760,13 @@ var Mi = { createTable: (e) => {
|
|
|
4590
4760
|
});
|
|
4591
4761
|
}, e.resetPageIndex = (t) => {
|
|
4592
4762
|
var n;
|
|
4593
|
-
e.setPageIndex(t ?
|
|
4763
|
+
e.setPageIndex(t ? Xi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? Xi);
|
|
4594
4764
|
}, e.resetPageSize = (t) => {
|
|
4595
4765
|
var n;
|
|
4596
|
-
e.setPageSize(t ?
|
|
4766
|
+
e.setPageSize(t ? Zi : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? Zi);
|
|
4597
4767
|
}, e.setPageSize = (t) => {
|
|
4598
4768
|
e.setPagination((e) => {
|
|
4599
|
-
let n = Math.max(1,
|
|
4769
|
+
let n = Math.max(1, si(t, e.pageSize)), r = e.pageSize * e.pageIndex, i = Math.floor(r / n);
|
|
4600
4770
|
return {
|
|
4601
4771
|
...e,
|
|
4602
4772
|
pageIndex: i,
|
|
@@ -4604,7 +4774,7 @@ var Mi = { createTable: (e) => {
|
|
|
4604
4774
|
};
|
|
4605
4775
|
});
|
|
4606
4776
|
}, e.setPageCount = (t) => e.setPagination((n) => {
|
|
4607
|
-
let r =
|
|
4777
|
+
let r = si(t, e.options.pageCount ?? -1);
|
|
4608
4778
|
return typeof r == "number" && (r = Math.max(-1, r)), {
|
|
4609
4779
|
...n,
|
|
4610
4780
|
pageCount: r
|
|
@@ -4617,15 +4787,15 @@ var Mi = { createTable: (e) => {
|
|
|
4617
4787
|
return n === -1 ? !0 : n === 0 ? !1 : t < n - 1;
|
|
4618
4788
|
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
|
|
4619
4789
|
}
|
|
4620
|
-
},
|
|
4790
|
+
}, ea = () => ({
|
|
4621
4791
|
top: [],
|
|
4622
4792
|
bottom: []
|
|
4623
|
-
}),
|
|
4793
|
+
}), ta = {
|
|
4624
4794
|
getInitialState: (e) => ({
|
|
4625
|
-
rowPinning:
|
|
4795
|
+
rowPinning: ea(),
|
|
4626
4796
|
...e
|
|
4627
4797
|
}),
|
|
4628
|
-
getDefaultOptions: (e) => ({ onRowPinningChange:
|
|
4798
|
+
getDefaultOptions: (e) => ({ onRowPinningChange: ci("rowPinning", e) }),
|
|
4629
4799
|
createRow: (e, t) => {
|
|
4630
4800
|
e.pin = (n, r, i) => {
|
|
4631
4801
|
let a = r ? e.getLeafRows().map((e) => {
|
|
@@ -4664,7 +4834,7 @@ var Mi = { createTable: (e) => {
|
|
|
4664
4834
|
};
|
|
4665
4835
|
},
|
|
4666
4836
|
createTable: (e) => {
|
|
4667
|
-
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ?
|
|
4837
|
+
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? ea() : e.initialState?.rowPinning ?? ea()), e.getIsSomeRowsPinned = (t) => {
|
|
4668
4838
|
let n = e.getState().rowPinning;
|
|
4669
4839
|
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
|
|
4670
4840
|
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
|
|
@@ -4682,13 +4852,13 @@ var Mi = { createTable: (e) => {
|
|
|
4682
4852
|
return e.filter((e) => !r.has(e.id));
|
|
4683
4853
|
}, Q(e.options, "debugRows", "getCenterRows"));
|
|
4684
4854
|
}
|
|
4685
|
-
},
|
|
4855
|
+
}, na = {
|
|
4686
4856
|
getInitialState: (e) => ({
|
|
4687
4857
|
rowSelection: {},
|
|
4688
4858
|
...e
|
|
4689
4859
|
}),
|
|
4690
4860
|
getDefaultOptions: (e) => ({
|
|
4691
|
-
onRowSelectionChange:
|
|
4861
|
+
onRowSelectionChange: ci("rowSelection", e),
|
|
4692
4862
|
enableRowSelection: !0,
|
|
4693
4863
|
enableMultiRowSelection: !0,
|
|
4694
4864
|
enableSubRowSelection: !0
|
|
@@ -4707,17 +4877,17 @@ var Mi = { createTable: (e) => {
|
|
|
4707
4877
|
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
|
|
4708
4878
|
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
|
|
4709
4879
|
return e.getRowModel().rows.forEach((t) => {
|
|
4710
|
-
|
|
4880
|
+
ra(i, t.id, r, !0, e);
|
|
4711
4881
|
}), i;
|
|
4712
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ?
|
|
4882
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = Z(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
|
|
4713
4883
|
rows: [],
|
|
4714
4884
|
flatRows: [],
|
|
4715
4885
|
rowsById: {}
|
|
4716
|
-
}, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ?
|
|
4886
|
+
}, Q(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = Z(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
|
|
4717
4887
|
rows: [],
|
|
4718
4888
|
flatRows: [],
|
|
4719
4889
|
rowsById: {}
|
|
4720
|
-
}, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ?
|
|
4890
|
+
}, Q(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = Z(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? ia(e, n) : {
|
|
4721
4891
|
rows: [],
|
|
4722
4892
|
flatRows: [],
|
|
4723
4893
|
rowsById: {}
|
|
@@ -4745,17 +4915,17 @@ var Mi = { createTable: (e) => {
|
|
|
4745
4915
|
t.setRowSelection((a) => {
|
|
4746
4916
|
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
|
|
4747
4917
|
let o = { ...a };
|
|
4748
|
-
return
|
|
4918
|
+
return ra(o, e.id, n, r?.selectChildren ?? !0, t), o;
|
|
4749
4919
|
});
|
|
4750
4920
|
}, e.getIsSelected = () => {
|
|
4751
4921
|
let { rowSelection: n } = t.getState();
|
|
4752
|
-
return
|
|
4922
|
+
return aa(e, n);
|
|
4753
4923
|
}, e.getIsSomeSelected = () => {
|
|
4754
4924
|
let { rowSelection: n } = t.getState();
|
|
4755
|
-
return
|
|
4925
|
+
return oa(e, n) === "some";
|
|
4756
4926
|
}, e.getIsAllSubRowsSelected = () => {
|
|
4757
4927
|
let { rowSelection: n } = t.getState();
|
|
4758
|
-
return
|
|
4928
|
+
return oa(e, n) === "all";
|
|
4759
4929
|
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
|
|
4760
4930
|
let t = e.getCanSelect();
|
|
4761
4931
|
return (n) => {
|
|
@@ -4763,16 +4933,16 @@ var Mi = { createTable: (e) => {
|
|
|
4763
4933
|
};
|
|
4764
4934
|
};
|
|
4765
4935
|
}
|
|
4766
|
-
},
|
|
4936
|
+
}, ra = (e, t, n, r, i) => {
|
|
4767
4937
|
var a;
|
|
4768
4938
|
let o = i.getRow(t, !0);
|
|
4769
|
-
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) =>
|
|
4939
|
+
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => ra(e, t.id, n, r, i));
|
|
4770
4940
|
};
|
|
4771
|
-
function
|
|
4941
|
+
function ia(e, t) {
|
|
4772
4942
|
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
|
|
4773
4943
|
return e.map((e) => {
|
|
4774
4944
|
var t;
|
|
4775
|
-
let o =
|
|
4945
|
+
let o = aa(e, n);
|
|
4776
4946
|
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
|
|
4777
4947
|
...e,
|
|
4778
4948
|
subRows: a(e.subRows)
|
|
@@ -4785,32 +4955,32 @@ function Ui(e, t) {
|
|
|
4785
4955
|
rowsById: i
|
|
4786
4956
|
};
|
|
4787
4957
|
}
|
|
4788
|
-
function
|
|
4958
|
+
function aa(e, t) {
|
|
4789
4959
|
return t[e.id] ?? !1;
|
|
4790
4960
|
}
|
|
4791
|
-
function
|
|
4961
|
+
function oa(e, t, n) {
|
|
4792
4962
|
var r;
|
|
4793
4963
|
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
4794
4964
|
let i = !0, a = !1;
|
|
4795
4965
|
return e.subRows.forEach((e) => {
|
|
4796
|
-
if (!(a && !i) && (e.getCanSelect() && (
|
|
4797
|
-
let n =
|
|
4966
|
+
if (!(a && !i) && (e.getCanSelect() && (aa(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
4967
|
+
let n = oa(e, t);
|
|
4798
4968
|
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
4799
4969
|
}
|
|
4800
4970
|
}), i ? "all" : a ? "some" : !1;
|
|
4801
4971
|
}
|
|
4802
|
-
var
|
|
4972
|
+
var sa = /([0-9]+)/gm, ca = (e, t, n) => ga(ha(e.getValue(n)).toLowerCase(), ha(t.getValue(n)).toLowerCase()), la = (e, t, n) => ga(ha(e.getValue(n)), ha(t.getValue(n))), ua = (e, t, n) => ma(ha(e.getValue(n)).toLowerCase(), ha(t.getValue(n)).toLowerCase()), da = (e, t, n) => ma(ha(e.getValue(n)), ha(t.getValue(n))), fa = (e, t, n) => {
|
|
4803
4973
|
let r = e.getValue(n), i = t.getValue(n);
|
|
4804
4974
|
return r > i ? 1 : r < i ? -1 : 0;
|
|
4805
|
-
},
|
|
4806
|
-
function
|
|
4975
|
+
}, pa = (e, t, n) => ma(e.getValue(n), t.getValue(n));
|
|
4976
|
+
function ma(e, t) {
|
|
4807
4977
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
4808
4978
|
}
|
|
4809
|
-
function
|
|
4979
|
+
function ha(e) {
|
|
4810
4980
|
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
|
|
4811
4981
|
}
|
|
4812
|
-
function
|
|
4813
|
-
let n = e.split(
|
|
4982
|
+
function ga(e, t) {
|
|
4983
|
+
let n = e.split(sa).filter(Boolean), r = t.split(sa).filter(Boolean);
|
|
4814
4984
|
for (; n.length && r.length;) {
|
|
4815
4985
|
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
|
|
4816
4986
|
if (isNaN(o[0])) {
|
|
@@ -4824,22 +4994,22 @@ function ta(e, t) {
|
|
|
4824
4994
|
}
|
|
4825
4995
|
return n.length - r.length;
|
|
4826
4996
|
}
|
|
4827
|
-
var
|
|
4828
|
-
alphanumeric:
|
|
4829
|
-
alphanumericCaseSensitive:
|
|
4830
|
-
text:
|
|
4831
|
-
textCaseSensitive:
|
|
4832
|
-
datetime:
|
|
4833
|
-
basic:
|
|
4834
|
-
},
|
|
4835
|
-
ei,
|
|
4836
|
-
Ai,
|
|
4837
|
-
bi,
|
|
4838
|
-
Si,
|
|
4839
|
-
ri,
|
|
4997
|
+
var _a = {
|
|
4998
|
+
alphanumeric: ca,
|
|
4999
|
+
alphanumericCaseSensitive: la,
|
|
5000
|
+
text: ua,
|
|
5001
|
+
textCaseSensitive: da,
|
|
5002
|
+
datetime: fa,
|
|
5003
|
+
basic: pa
|
|
5004
|
+
}, va = [
|
|
4840
5005
|
hi,
|
|
4841
|
-
|
|
4842
|
-
|
|
5006
|
+
Gi,
|
|
5007
|
+
Fi,
|
|
5008
|
+
Li,
|
|
5009
|
+
vi,
|
|
5010
|
+
Ai,
|
|
5011
|
+
qi,
|
|
5012
|
+
Ji,
|
|
4843
5013
|
{
|
|
4844
5014
|
getInitialState: (e) => ({
|
|
4845
5015
|
sorting: [],
|
|
@@ -4850,7 +5020,7 @@ var na = {
|
|
|
4850
5020
|
sortUndefined: 1
|
|
4851
5021
|
}),
|
|
4852
5022
|
getDefaultOptions: (e) => ({
|
|
4853
|
-
onSortingChange:
|
|
5023
|
+
onSortingChange: ci("sorting", e),
|
|
4854
5024
|
isMultiSortEvent: (e) => e.shiftKey
|
|
4855
5025
|
}),
|
|
4856
5026
|
createColumn: (e, t) => {
|
|
@@ -4858,13 +5028,13 @@ var na = {
|
|
|
4858
5028
|
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
|
|
4859
5029
|
for (let t of n) {
|
|
4860
5030
|
let n = t?.getValue(e.id);
|
|
4861
|
-
if (Object.prototype.toString.call(n) === "[object Date]") return
|
|
4862
|
-
if (typeof n == "string" && (r = !0, n.split(
|
|
5031
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return _a.datetime;
|
|
5032
|
+
if (typeof n == "string" && (r = !0, n.split(sa).length > 1)) return _a.alphanumeric;
|
|
4863
5033
|
}
|
|
4864
|
-
return r ?
|
|
5034
|
+
return r ? _a.text : _a.basic;
|
|
4865
5035
|
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
|
|
4866
5036
|
if (!e) throw Error();
|
|
4867
|
-
return
|
|
5037
|
+
return li(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? _a[e.columnDef.sortingFn];
|
|
4868
5038
|
}, e.toggleSorting = (n, r) => {
|
|
4869
5039
|
let i = e.getNextSortingOrder(), a = n != null;
|
|
4870
5040
|
t.setSorting((o) => {
|
|
@@ -4901,16 +5071,16 @@ var na = {
|
|
|
4901
5071
|
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
4902
5072
|
}
|
|
4903
5073
|
},
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
5074
|
+
Ni,
|
|
5075
|
+
Yi,
|
|
5076
|
+
$i,
|
|
5077
|
+
ta,
|
|
5078
|
+
na,
|
|
5079
|
+
Vi
|
|
4910
5080
|
];
|
|
4911
|
-
function
|
|
5081
|
+
function ya(e) {
|
|
4912
5082
|
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
4913
|
-
let t = [...
|
|
5083
|
+
let t = [...va, ...e._features ?? []], n = { _features: t }, r = n._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(n)), {}), i = (e) => n.options.mergeOptions ? n.options.mergeOptions(r, e) : {
|
|
4914
5084
|
...r,
|
|
4915
5085
|
...e
|
|
4916
5086
|
}, a = { ...e.initialState ?? {} };
|
|
@@ -4936,7 +5106,7 @@ function ia(e) {
|
|
|
4936
5106
|
n.setState(n.initialState);
|
|
4937
5107
|
},
|
|
4938
5108
|
setOptions: (e) => {
|
|
4939
|
-
let t =
|
|
5109
|
+
let t = si(e, n.options);
|
|
4940
5110
|
n.options = i(t);
|
|
4941
5111
|
},
|
|
4942
5112
|
getState: () => n.options.state,
|
|
@@ -4967,7 +5137,7 @@ function ia(e) {
|
|
|
4967
5137
|
getAllColumns: Z(() => [n._getColumnDefs()], (e) => {
|
|
4968
5138
|
let t = function(e, r, i) {
|
|
4969
5139
|
return i === void 0 && (i = 0), e.map((e) => {
|
|
4970
|
-
let a =
|
|
5140
|
+
let a = pi(n, e, i, r), o = e;
|
|
4971
5141
|
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
|
|
4972
5142
|
});
|
|
4973
5143
|
};
|
|
@@ -4988,7 +5158,7 @@ function ia(e) {
|
|
|
4988
5158
|
}
|
|
4989
5159
|
return n;
|
|
4990
5160
|
}
|
|
4991
|
-
function
|
|
5161
|
+
function ba() {
|
|
4992
5162
|
return (e) => Z(() => [e.options.data], (t) => {
|
|
4993
5163
|
let n = {
|
|
4994
5164
|
rows: [],
|
|
@@ -4998,7 +5168,7 @@ function aa() {
|
|
|
4998
5168
|
i === void 0 && (i = 0);
|
|
4999
5169
|
let o = [];
|
|
5000
5170
|
for (let c = 0; c < t.length; c++) {
|
|
5001
|
-
let l =
|
|
5171
|
+
let l = _i(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
|
|
5002
5172
|
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
|
|
5003
5173
|
var s;
|
|
5004
5174
|
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
|
|
@@ -5011,28 +5181,28 @@ function aa() {
|
|
|
5011
5181
|
}
|
|
5012
5182
|
//#endregion
|
|
5013
5183
|
//#region ../../node_modules/.pnpm/@tanstack+react-table@8.21.3_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
5014
|
-
function
|
|
5015
|
-
return e ?
|
|
5184
|
+
function xa(e, t) {
|
|
5185
|
+
return e ? Sa(e) ? /*#__PURE__*/ y.createElement(e, t) : e : null;
|
|
5016
5186
|
}
|
|
5017
|
-
function
|
|
5018
|
-
return
|
|
5187
|
+
function Sa(e) {
|
|
5188
|
+
return Ca(e) || typeof e == "function" || wa(e);
|
|
5019
5189
|
}
|
|
5020
|
-
function
|
|
5190
|
+
function Ca(e) {
|
|
5021
5191
|
return typeof e == "function" && (() => {
|
|
5022
5192
|
let t = Object.getPrototypeOf(e);
|
|
5023
5193
|
return t.prototype && t.prototype.isReactComponent;
|
|
5024
5194
|
})();
|
|
5025
5195
|
}
|
|
5026
|
-
function
|
|
5196
|
+
function wa(e) {
|
|
5027
5197
|
return typeof e == "object" && typeof e.$$typeof == "symbol" && ["react.memo", "react.forward_ref"].includes(e.$$typeof.description);
|
|
5028
5198
|
}
|
|
5029
|
-
function
|
|
5199
|
+
function Ta(e) {
|
|
5030
5200
|
let t = {
|
|
5031
5201
|
state: {},
|
|
5032
5202
|
onStateChange: () => {},
|
|
5033
5203
|
renderFallbackValue: null,
|
|
5034
5204
|
...e
|
|
5035
|
-
}, [n] = y.useState(() => ({ current:
|
|
5205
|
+
}, [n] = y.useState(() => ({ current: ya(t) })), [r, i] = y.useState(() => n.current.initialState);
|
|
5036
5206
|
return n.current.setOptions((t) => ({
|
|
5037
5207
|
...t,
|
|
5038
5208
|
...e,
|
|
@@ -5047,7 +5217,7 @@ function ua(e) {
|
|
|
5047
5217
|
}
|
|
5048
5218
|
//#endregion
|
|
5049
5219
|
//#region src/components/DataTable/DataTable.tsx
|
|
5050
|
-
function
|
|
5220
|
+
function Ea({ direction: e }) {
|
|
5051
5221
|
return e === "asc" ? /* @__PURE__ */ _(n, {
|
|
5052
5222
|
className: "size-3.5",
|
|
5053
5223
|
"aria-hidden": !0
|
|
@@ -5059,17 +5229,17 @@ function da({ direction: e }) {
|
|
|
5059
5229
|
"aria-hidden": !0
|
|
5060
5230
|
});
|
|
5061
5231
|
}
|
|
5062
|
-
function
|
|
5063
|
-
return /* @__PURE__ */ v(
|
|
5232
|
+
function Da({ columns: e, rows: t = 5, dividers: n }) {
|
|
5233
|
+
return /* @__PURE__ */ v(X, {
|
|
5064
5234
|
dividers: n,
|
|
5065
|
-
children: [/* @__PURE__ */ _(
|
|
5235
|
+
children: [/* @__PURE__ */ _(X.Header, { children: /* @__PURE__ */ _(X.Row, { children: e.map((e, t) => /* @__PURE__ */ _(X.Head, { children: typeof e.header == "string" ? e.header : null }, e.id ?? t)) }) }), /* @__PURE__ */ _(X.Body, { children: Array.from({ length: t }).map((t, n) => /* @__PURE__ */ _(X.Row, { children: e.map((e, t) => /* @__PURE__ */ _(X.Cell, { children: /* @__PURE__ */ _("div", { className: "h-4 w-full max-w-40 animate-pulse rounded bg-eds-neutral-background" }) }, t)) }, n)) })]
|
|
5066
5236
|
});
|
|
5067
5237
|
}
|
|
5068
|
-
function
|
|
5069
|
-
let x = l !== void 0 && !!u, S =
|
|
5238
|
+
function Oa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, onPageChange: a, search: o, sorting: l, onSortingChange: u, emptyStateTitle: f = "Nenhum resultado encontrado", emptyStateDescription: m, meta: h, "aria-label": g, className: y, dividers: b }) {
|
|
5239
|
+
let x = l !== void 0 && !!u, S = Ta({
|
|
5070
5240
|
data: t,
|
|
5071
5241
|
columns: e,
|
|
5072
|
-
getCoreRowModel:
|
|
5242
|
+
getCoreRowModel: ba(),
|
|
5073
5243
|
meta: h,
|
|
5074
5244
|
state: x ? { sorting: l } : void 0,
|
|
5075
5245
|
onSortingChange: u,
|
|
@@ -5082,7 +5252,7 @@ function pa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5082
5252
|
children: [
|
|
5083
5253
|
o && /* @__PURE__ */ _("div", {
|
|
5084
5254
|
className: "flex justify-end",
|
|
5085
|
-
children: /* @__PURE__ */ _(
|
|
5255
|
+
children: /* @__PURE__ */ _(Ir, {
|
|
5086
5256
|
label: "Buscar",
|
|
5087
5257
|
labelVariant: "floating",
|
|
5088
5258
|
className: "w-full max-w-sm",
|
|
@@ -5102,35 +5272,35 @@ function pa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5102
5272
|
"aria-hidden": !0
|
|
5103
5273
|
}), "Carregando..."]
|
|
5104
5274
|
}),
|
|
5105
|
-
n ? /* @__PURE__ */ _(
|
|
5275
|
+
n ? /* @__PURE__ */ _(Da, {
|
|
5106
5276
|
columns: e,
|
|
5107
5277
|
dividers: b
|
|
5108
|
-
}) : r ? /* @__PURE__ */ _(
|
|
5278
|
+
}) : r ? /* @__PURE__ */ _(Tr, {
|
|
5109
5279
|
title: f,
|
|
5110
5280
|
description: m ?? "Houve um erro ao buscar os dados. Tente novamente."
|
|
5111
|
-
}) : C.length === 0 ? /* @__PURE__ */ _(
|
|
5281
|
+
}) : C.length === 0 ? /* @__PURE__ */ _(Tr, {
|
|
5112
5282
|
title: f,
|
|
5113
5283
|
description: m
|
|
5114
|
-
}) : /* @__PURE__ */ v(
|
|
5284
|
+
}) : /* @__PURE__ */ v(X, {
|
|
5115
5285
|
"aria-label": g,
|
|
5116
5286
|
dividers: b,
|
|
5117
|
-
children: [/* @__PURE__ */ _(
|
|
5287
|
+
children: [/* @__PURE__ */ _(X.Header, { children: S.getHeaderGroups().map((e) => /* @__PURE__ */ _(X.Row, { children: e.headers.map((e) => {
|
|
5118
5288
|
let t = e.column.getIsSorted();
|
|
5119
|
-
return /* @__PURE__ */ _(
|
|
5289
|
+
return /* @__PURE__ */ _(X.Head, {
|
|
5120
5290
|
"aria-sort": e.column.getCanSort() ? t === "asc" ? "ascending" : t === "desc" ? "descending" : "none" : void 0,
|
|
5121
5291
|
children: e.isPlaceholder ? null : e.column.getCanSort() ? /* @__PURE__ */ v("button", {
|
|
5122
5292
|
type: "button",
|
|
5123
5293
|
className: "flex select-none items-center gap-1 font-semibold",
|
|
5124
5294
|
onClick: e.column.getToggleSortingHandler(),
|
|
5125
|
-
children: [
|
|
5126
|
-
}) :
|
|
5295
|
+
children: [xa(e.column.columnDef.header, e.getContext()), /* @__PURE__ */ _(Ea, { direction: t })]
|
|
5296
|
+
}) : xa(e.column.columnDef.header, e.getContext())
|
|
5127
5297
|
}, e.id);
|
|
5128
|
-
}) }, e.id)) }), /* @__PURE__ */ _(
|
|
5298
|
+
}) }, e.id)) }), /* @__PURE__ */ _(X.Body, { children: C.map((e) => /* @__PURE__ */ _(X.Row, { children: e.getVisibleCells().map((e) => /* @__PURE__ */ _(X.Cell, { children: xa(e.column.columnDef.cell, e.getContext()) }, e.id)) }, e.id)) })]
|
|
5129
5299
|
}),
|
|
5130
5300
|
w && /* @__PURE__ */ v("div", {
|
|
5131
5301
|
className: "flex items-center justify-center gap-2",
|
|
5132
5302
|
children: [
|
|
5133
|
-
/* @__PURE__ */ _(
|
|
5303
|
+
/* @__PURE__ */ _(At, {
|
|
5134
5304
|
type: "button",
|
|
5135
5305
|
variant: "outline",
|
|
5136
5306
|
size: "sm",
|
|
@@ -5147,7 +5317,7 @@ function pa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5147
5317
|
ee
|
|
5148
5318
|
]
|
|
5149
5319
|
}),
|
|
5150
|
-
/* @__PURE__ */ _(
|
|
5320
|
+
/* @__PURE__ */ _(At, {
|
|
5151
5321
|
type: "button",
|
|
5152
5322
|
variant: "outline",
|
|
5153
5323
|
size: "sm",
|
|
@@ -5163,12 +5333,12 @@ function pa({ columns: e, data: t, isLoading: n = !1, error: r, pagination: i, o
|
|
|
5163
5333
|
}
|
|
5164
5334
|
//#endregion
|
|
5165
5335
|
//#region src/components/Tabs/Tabs.tsx
|
|
5166
|
-
var
|
|
5336
|
+
var ka = {
|
|
5167
5337
|
variant: "segmented",
|
|
5168
5338
|
size: "md"
|
|
5169
5339
|
};
|
|
5170
|
-
function
|
|
5171
|
-
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } =
|
|
5340
|
+
function Aa({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnFocus: i, className: a, listClassName: o, indicatorClassName: s, variant: c = ka.variant, size: l = ka.size }) {
|
|
5341
|
+
let u = e ?? [], d = c === "segmented", f = c === "underline", p = l === "sm", { ref: m, isOverflowing: h } = Ma(d), g = ja(m, h);
|
|
5172
5342
|
if (u.length === 0) return null;
|
|
5173
5343
|
let y = u[0]?.value, b = t !== void 0, x = {
|
|
5174
5344
|
value: b ? t : void 0,
|
|
@@ -5206,7 +5376,7 @@ function ha({ tabs: e, value: t, selectedValue: n, onValueChange: r, activateOnF
|
|
|
5206
5376
|
})]
|
|
5207
5377
|
});
|
|
5208
5378
|
}
|
|
5209
|
-
function
|
|
5379
|
+
function ja(e, t) {
|
|
5210
5380
|
let n = T(null), r = T(!1);
|
|
5211
5381
|
return () => ({
|
|
5212
5382
|
onPointerDownCapture: (i) => {
|
|
@@ -5243,7 +5413,7 @@ function ga(e, t) {
|
|
|
5243
5413
|
}
|
|
5244
5414
|
});
|
|
5245
5415
|
}
|
|
5246
|
-
function
|
|
5416
|
+
function Ma(e) {
|
|
5247
5417
|
let t = T(null), [n, r] = E(!1);
|
|
5248
5418
|
return C(() => {
|
|
5249
5419
|
if (!e) return;
|
|
@@ -5257,4 +5427,4 @@ function _a(e) {
|
|
|
5257
5427
|
};
|
|
5258
5428
|
}
|
|
5259
5429
|
//#endregion
|
|
5260
|
-
export {
|
|
5430
|
+
export { $t as Attachment, Xt as AttachmentAction, Yt as AttachmentActions, Kt as AttachmentContent, Jt as AttachmentDescription, Qt as AttachmentGroup, Gt as AttachmentMedia, qt as AttachmentTitle, Zt as AttachmentTrigger, ae as Button, oe as COLORS, Nt as Calendar, Vt as Card, nn as Checkbox, En as Combobox, Oa as DataTable, jn as DatePicker, er as DateTimePicker, mr as Dialog, Tr as Empty, Sr as FormDialog, At as IconButton, Ir as Input, Vr as Select, X as Table, Aa as Tabs, qr as Text, zr as Textarea };
|