@jcdecor/vue 0.1.0 → 0.1.6
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/README.md +7 -7
- package/dist/charts.js +97 -74
- package/dist/charts.js.map +1 -1
- package/dist/chat/ChatComposer.d.ts +14 -0
- package/dist/chat/ChatMessage.d.ts +4 -0
- package/dist/chat/ChatThread.d.ts +8 -0
- package/dist/chat/ConversationList.d.ts +8 -0
- package/dist/chat/types.d.ts +2 -0
- package/dist/chat.js +97 -55
- package/dist/chat.js.map +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +10 -29
- package/dist/components/PageHeader/PageHeader.types.d.ts +55 -0
- package/dist/components/PageHeader/PageHeader.vars.d.ts +2 -0
- package/dist/components/PageHeader/PageHeader.vue.d.ts +43 -0
- package/dist/components/TopNav/TopNav.types.d.ts +10 -2
- package/dist/components/TopNav/TopNav.vue.d.ts +2 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +634 -565
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/themeDefaults.d.ts +27 -2
- package/dist/themeDefaults-C4raY1h-.js +52 -0
- package/dist/themeDefaults-C4raY1h-.js.map +1 -0
- package/package.json +1 -1
- package/dist/themeDefaults-Ckd05FUY.js +0 -29
- package/dist/themeDefaults-Ckd05FUY.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as
|
|
3
|
-
import { t as
|
|
4
|
-
import { a as
|
|
5
|
-
import { a as
|
|
6
|
-
import { Accordion as
|
|
7
|
-
import { Comment as
|
|
8
|
-
import { deepMerge as
|
|
9
|
-
import { IconAlertTriangle as
|
|
10
|
-
import { useClipboard as
|
|
1
|
+
import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p as ee, r as te, s as ne, t as re, u as ie, v as p, y as m } from "./themeDefaults-C4raY1h-.js";
|
|
2
|
+
import { a as h, d as g, f as ae, l as _, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as v } from "./tokens-CDSk_JkY.js";
|
|
3
|
+
import { t as fe } from "./colors-DUSEhAuo.js";
|
|
4
|
+
import { a as pe, c as me, d as he, f as ge, i as _e, l as ve, n as ye, o as be, r as xe, s as Se, t as Ce, u as we } from "./format-D40SMATK.js";
|
|
5
|
+
import { a as Te, c as Ee, i as De, l as Oe, n as ke, o as Ae, r as je, s as Me, t as Ne, u as Pe } from "./brand-CeSffe5P.js";
|
|
6
|
+
import { Accordion as Fe, ActionBar as Ie, ActionIcon as Le, Alert as Re, AlphaSlider as ze, Anchor as Be, AngleSlider as Ve, Avatar as He, BackgroundImage as Ue, Badge as We, Blockquote as Ge, Box as y, Breadcrumbs as Ke, Burger as qe, Button as Je, Card as Ye, Cascader as Xe, Checkbox as Ze, CheckboxCard as Qe, CheckboxIndicator as $e, Chip as et, CloseButton as tt, Code as nt, Collapse as rt, ColorPicker as it, Container as at, DataList as ot, Dialog as st, Divider as ct, Drawer as lt, EmptyState as ut, Fieldset as dt, FloatingWindow as ft, Group as pt, HoverCard as mt, HueSlider as ht, Image as gt, Indicator as _t, Input as vt, InputWrapper as yt, Kbd as bt, List as xt, Loader as St, LoadingOverlay as Ct, MantineProvider as wt, Mark as Tt, Menu as Et, Menubar as Dt, Modal as Ot, NativeSelect as kt, NavLink as At, Notification as jt, NumberFormatter as Mt, Overlay as Nt, Pagination as Pt, Paper as Ft, Pill as It, PinInput as Lt, Popover as Rt, Progress as zt, Radio as Bt, RadioCard as Vt, RadioIndicator as Ht, RangeSlider as Ut, Rating as Wt, RingProgress as Gt, RollingNumber as Kt, ScrollArea as qt, SegmentedControl as Jt, SemiCircleProgress as Yt, SimpleGrid as Xt, Skeleton as Zt, Slider as Qt, Splitter as $t, Spoiler as en, Stepper as tn, Switch as nn, Table as rn, TableOfContents as an, TableTbody as on, TableTd as sn, TableTh as cn, TableThead as ln, TableTr as un, Tabs as dn, Text as b, ThemeIcon as fn, Timeline as pn, Title as mn, Tooltip as hn, Transition as gn, Tree as _n, Typography as vn, createVarsResolver as yn, defaultVariantColorsResolver as bn, factory as xn, getRadius as Sn, getThemeColor as Cn, luminance as wn, parseThemeColor as Tn, rem as En, resolveNode as x, useComputedColorScheme as Dn, useMantineColorScheme as On, useProps as kn, useStyles as An } from "@mantine-vue/core";
|
|
7
|
+
import { Comment as jn, Fragment as Mn, Text as Nn, camelize as Pn, computed as S, createBlock as C, createCommentVNode as w, createElementBlock as T, createElementVNode as E, createTextVNode as Fn, createVNode as D, defineComponent as O, getCurrentInstance as In, guardReactiveProps as k, h as A, isVNode as Ln, mergeProps as j, normalizeProps as M, normalizeStyle as Rn, openBlock as N, ref as zn, renderSlot as Bn, resolveDynamicComponent as P, toDisplayString as F, toHandlerKey as Vn, unref as I, useAttrs as L, useSlots as R, watch as Hn, withCtx as z } from "vue";
|
|
8
|
+
import { deepMerge as Un } from "@mantine-vue/utils";
|
|
9
|
+
import { IconAlertTriangle as Wn, IconArrowDown as Gn, IconArrowDownRight as Kn, IconArrowUp as qn, IconArrowUpRight as Jn, IconArrowsSort as Yn, IconCheck as Xn, IconCopy as Zn, IconDatabaseOff as Qn, IconHeart as $n, IconHeartFilled as er, IconInfoCircle as tr, IconMinus as nr, IconMoon as rr, IconShoppingCart as ir, IconSun as ar, IconTicket as or, IconX as sr } from "@tabler/icons-vue";
|
|
10
|
+
import { useClipboard as cr, useDisclosure as lr, useUncontrolled as ur } from "@mantine-vue/hooks";
|
|
11
11
|
export * from "@mantine-vue/core";
|
|
12
12
|
//#region src/theme/variantColorResolver.ts
|
|
13
|
-
var
|
|
13
|
+
var dr = {
|
|
14
14
|
horizon: "primary",
|
|
15
15
|
blue: "primary",
|
|
16
16
|
evergreen: "success",
|
|
@@ -23,8 +23,8 @@ var tr = {
|
|
|
23
23
|
obsidian: "neutral",
|
|
24
24
|
gray: "neutral",
|
|
25
25
|
dark: "neutral"
|
|
26
|
-
},
|
|
27
|
-
let { variant: t, theme: n } = e, r = e.color ?? n.primaryColor, i =
|
|
26
|
+
}, fr = (e) => {
|
|
27
|
+
let { variant: t, theme: n } = e, r = e.color ?? n.primaryColor, i = Tn({
|
|
28
28
|
color: r,
|
|
29
29
|
theme: n
|
|
30
30
|
}), a = i.isThemeColor ? i.color : void 0;
|
|
@@ -36,12 +36,12 @@ var tr = {
|
|
|
36
36
|
border: "1px solid transparent"
|
|
37
37
|
};
|
|
38
38
|
if (t === "filled" && a && i.shade === void 0) return {
|
|
39
|
-
...
|
|
39
|
+
...bn(e),
|
|
40
40
|
color: "var(--jc-on-filled)",
|
|
41
41
|
hoverColor: "var(--jc-on-filled)"
|
|
42
42
|
};
|
|
43
43
|
if (t === "outline") {
|
|
44
|
-
let t =
|
|
44
|
+
let t = bn(e), r = bn({
|
|
45
45
|
...e,
|
|
46
46
|
variant: "light"
|
|
47
47
|
}), i = !e.color || a === n.primaryColor;
|
|
@@ -52,15 +52,15 @@ var tr = {
|
|
|
52
52
|
border: i ? "1px solid var(--ds-primary)" : t.border
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
if (t === "subtle" &&
|
|
55
|
+
if (t === "subtle" && !e.color) return {
|
|
56
56
|
background: "transparent",
|
|
57
57
|
hover: "var(--ds-surface-2)",
|
|
58
58
|
color: "var(--ds-text-2)",
|
|
59
59
|
hoverColor: "var(--ds-text)",
|
|
60
60
|
border: "1px solid transparent"
|
|
61
61
|
};
|
|
62
|
-
if (t === "light" && a &&
|
|
63
|
-
let e =
|
|
62
|
+
if (t === "light" && a && dr[a]) {
|
|
63
|
+
let e = dr[a];
|
|
64
64
|
return {
|
|
65
65
|
background: `var(--ds-tag-${e}-bg)`,
|
|
66
66
|
hover: `var(--ds-tag-${e}-hover)`,
|
|
@@ -68,7 +68,7 @@ var tr = {
|
|
|
68
68
|
border: "1px solid transparent"
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return bn(e);
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
74
|
//#region src/theme/components/types.ts
|
|
@@ -77,7 +77,7 @@ function B(e, t) {
|
|
|
77
77
|
}
|
|
78
78
|
//#endregion
|
|
79
79
|
//#region src/theme/controls.ts
|
|
80
|
-
var
|
|
80
|
+
var pr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "xl", mr = {
|
|
81
81
|
xs: {
|
|
82
82
|
height: "28px",
|
|
83
83
|
px: "10px",
|
|
@@ -93,7 +93,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
93
93
|
md: {
|
|
94
94
|
height: "40px",
|
|
95
95
|
px: "16px",
|
|
96
|
-
fz:
|
|
96
|
+
fz: ce.button.size,
|
|
97
97
|
inputFz: "16px"
|
|
98
98
|
},
|
|
99
99
|
lg: {
|
|
@@ -108,20 +108,20 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
108
108
|
fz: "18px",
|
|
109
109
|
inputFz: "18px"
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, hr = {
|
|
112
112
|
backgroundOpacity: .5,
|
|
113
113
|
blur: 2,
|
|
114
114
|
color: "#08154B"
|
|
115
|
-
},
|
|
115
|
+
}, gr = {
|
|
116
116
|
button: "jc-buttons-button-ydj2o",
|
|
117
117
|
actionIcon: "jc-buttons-actionIcon-1mbg4",
|
|
118
118
|
closeButton: "jc-buttons-closeButton-12dbk"
|
|
119
|
-
},
|
|
120
|
-
Button: B(
|
|
121
|
-
classNames: { root:
|
|
119
|
+
}, _r = {
|
|
120
|
+
Button: B(Je, {
|
|
121
|
+
classNames: { root: gr.button },
|
|
122
122
|
vars: (e, t) => {
|
|
123
|
-
if (!
|
|
124
|
-
let n =
|
|
123
|
+
if (!pr(t.size ?? "md")) return { root: {} };
|
|
124
|
+
let n = mr[t.size ?? "md"];
|
|
125
125
|
return { root: {
|
|
126
126
|
"--button-height": n.height,
|
|
127
127
|
"--button-padding-x": n.px,
|
|
@@ -129,11 +129,11 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
129
129
|
} };
|
|
130
130
|
}
|
|
131
131
|
}),
|
|
132
|
-
ActionIcon: B(
|
|
132
|
+
ActionIcon: B(Le, {
|
|
133
133
|
defaultProps: { variant: "subtle" },
|
|
134
|
-
classNames: { root:
|
|
134
|
+
classNames: { root: gr.actionIcon }
|
|
135
135
|
}),
|
|
136
|
-
CloseButton: B(
|
|
136
|
+
CloseButton: B(tt, { classNames: { root: gr.closeButton } })
|
|
137
137
|
}, V = {
|
|
138
138
|
dropdown: "jc-combobox-dropdown-ovija",
|
|
139
139
|
option: "jc-combobox-option-o1xsu",
|
|
@@ -147,7 +147,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
147
147
|
cascaderColumn: "jc-combobox-cascaderColumn-42vci",
|
|
148
148
|
cascaderOption: "jc-combobox-cascaderOption-9s3gv",
|
|
149
149
|
cascaderOverflow: "jc-combobox-cascaderOverflow-x0429"
|
|
150
|
-
},
|
|
150
|
+
}, vr = [
|
|
151
151
|
"Select",
|
|
152
152
|
"MultiSelect",
|
|
153
153
|
"Autocomplete",
|
|
@@ -161,7 +161,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
161
161
|
option: V.option,
|
|
162
162
|
groupLabel: V.groupLabel,
|
|
163
163
|
empty: V.empty
|
|
164
|
-
},
|
|
164
|
+
}, yr = {
|
|
165
165
|
Combobox: {
|
|
166
166
|
...H,
|
|
167
167
|
search: V.search,
|
|
@@ -186,13 +186,13 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
186
186
|
...H,
|
|
187
187
|
pill: V.pill
|
|
188
188
|
}
|
|
189
|
-
},
|
|
190
|
-
...Object.fromEntries(
|
|
191
|
-
...Object.fromEntries(Object.entries(
|
|
192
|
-
defaultProps:
|
|
189
|
+
}, br = {
|
|
190
|
+
...Object.fromEntries(vr.map((e) => [e, { defaultProps: { size: "md" } }])),
|
|
191
|
+
...Object.fromEntries(Object.entries(yr).map(([e, t]) => [e, {
|
|
192
|
+
defaultProps: vr.includes(e) ? { size: "md" } : {},
|
|
193
193
|
classNames: t
|
|
194
194
|
}])),
|
|
195
|
-
Cascader: B(
|
|
195
|
+
Cascader: B(Xe, {
|
|
196
196
|
defaultProps: { size: "md" },
|
|
197
197
|
classNames: {
|
|
198
198
|
...H,
|
|
@@ -202,7 +202,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
202
202
|
columnsOverflow: V.cascaderOverflow
|
|
203
203
|
}
|
|
204
204
|
}),
|
|
205
|
-
Pill: B(
|
|
205
|
+
Pill: B(It, { classNames: {
|
|
206
206
|
root: V.pill,
|
|
207
207
|
remove: V.pillRemove
|
|
208
208
|
} })
|
|
@@ -224,8 +224,8 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
224
224
|
timelineItem: "jc-dataDisplay-timelineItem-2ia8c",
|
|
225
225
|
timelineBullet: "jc-dataDisplay-timelineBullet-1qrrw",
|
|
226
226
|
timelineTitle: "jc-dataDisplay-timelineTitle-6vk5j"
|
|
227
|
-
},
|
|
228
|
-
Accordion: B(
|
|
227
|
+
}, xr = {
|
|
228
|
+
Accordion: B(Fe, {
|
|
229
229
|
defaultProps: { chevronPosition: "right" },
|
|
230
230
|
classNames: {
|
|
231
231
|
item: U.accordionItem,
|
|
@@ -235,15 +235,15 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
235
235
|
content: U.accordionContent
|
|
236
236
|
}
|
|
237
237
|
}),
|
|
238
|
-
Avatar: B(
|
|
238
|
+
Avatar: B(He, {
|
|
239
239
|
defaultProps: {
|
|
240
240
|
color: "horizon",
|
|
241
241
|
radius: "xl"
|
|
242
242
|
},
|
|
243
243
|
classNames: { root: U.avatar }
|
|
244
244
|
}),
|
|
245
|
-
BackgroundImage: B(
|
|
246
|
-
Badge: B(
|
|
245
|
+
BackgroundImage: B(Ue, { defaultProps: { radius: "md" } }),
|
|
246
|
+
Badge: B(We, {
|
|
247
247
|
defaultProps: {
|
|
248
248
|
variant: "light",
|
|
249
249
|
radius: "xl"
|
|
@@ -255,34 +255,34 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
255
255
|
"--badge-padding-x": "8px"
|
|
256
256
|
} } : { root: {} }
|
|
257
257
|
}),
|
|
258
|
-
Card: B(
|
|
258
|
+
Card: B(Ye, { defaultProps: {
|
|
259
259
|
radius: "md",
|
|
260
260
|
padding: "lg",
|
|
261
261
|
shadow: "sm",
|
|
262
262
|
withBorder: !0
|
|
263
263
|
} }),
|
|
264
|
-
DataList: B(
|
|
264
|
+
DataList: B(ot, { classNames: {
|
|
265
265
|
root: U.dataList,
|
|
266
266
|
itemLabel: U.dataListLabel,
|
|
267
267
|
itemValue: U.dataListValue
|
|
268
268
|
} }),
|
|
269
|
-
Image: B(
|
|
270
|
-
Indicator: B(
|
|
269
|
+
Image: B(gt, { defaultProps: { radius: "md" } }),
|
|
270
|
+
Indicator: B(_t, {
|
|
271
271
|
defaultProps: { color: "danger" },
|
|
272
272
|
classNames: { indicator: U.indicator }
|
|
273
273
|
}),
|
|
274
|
-
Kbd: B(
|
|
275
|
-
NumberFormatter: B(
|
|
274
|
+
Kbd: B(bt, { classNames: { root: U.kbd } }),
|
|
275
|
+
NumberFormatter: B(Mt, { defaultProps: {
|
|
276
276
|
thousandSeparator: ".",
|
|
277
277
|
decimalSeparator: ","
|
|
278
278
|
} }),
|
|
279
|
-
RollingNumber: B(
|
|
279
|
+
RollingNumber: B(Kt, { defaultProps: {
|
|
280
280
|
thousandSeparator: ".",
|
|
281
281
|
decimalSeparator: ","
|
|
282
282
|
} }),
|
|
283
|
-
Spoiler: B(
|
|
284
|
-
ThemeIcon: B(
|
|
285
|
-
Timeline: B(
|
|
283
|
+
Spoiler: B(en, { classNames: { control: U.spoilerControl } }),
|
|
284
|
+
ThemeIcon: B(fn, { defaultProps: { radius: "md" } }),
|
|
285
|
+
Timeline: B(pn, {
|
|
286
286
|
defaultProps: {
|
|
287
287
|
bulletSize: 24,
|
|
288
288
|
lineWidth: 2
|
|
@@ -313,8 +313,8 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
313
313
|
emptyState: "jc-feedback-emptyState-ixj8n",
|
|
314
314
|
emptyTitle: "jc-feedback-emptyTitle-ixwea",
|
|
315
315
|
emptyDescription: "jc-feedback-emptyDescription-p56id"
|
|
316
|
-
},
|
|
317
|
-
Notification: B(
|
|
316
|
+
}, Sr = {
|
|
317
|
+
Notification: B(jt, {
|
|
318
318
|
defaultProps: { radius: "md" },
|
|
319
319
|
classNames: {
|
|
320
320
|
root: W.notification,
|
|
@@ -323,7 +323,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
323
323
|
icon: W.notificationIcon
|
|
324
324
|
}
|
|
325
325
|
}),
|
|
326
|
-
Alert: B(
|
|
326
|
+
Alert: B(Re, {
|
|
327
327
|
defaultProps: { variant: "light" },
|
|
328
328
|
classNames: {
|
|
329
329
|
root: W.alert,
|
|
@@ -332,21 +332,21 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
332
332
|
message: W.alertMessage
|
|
333
333
|
}
|
|
334
334
|
}),
|
|
335
|
-
Loader: B(
|
|
336
|
-
Progress: B(
|
|
335
|
+
Loader: B(St, { defaultProps: { type: "oval" } }),
|
|
336
|
+
Progress: B(zt, {
|
|
337
337
|
defaultProps: { radius: "xl" },
|
|
338
338
|
classNames: {
|
|
339
339
|
root: W.progress,
|
|
340
340
|
label: W.progressLabel
|
|
341
341
|
}
|
|
342
342
|
}),
|
|
343
|
-
RingProgress: B(
|
|
344
|
-
SemiCircleProgress: B(
|
|
343
|
+
RingProgress: B(Gt, { classNames: { curve: W.ringCurve } }),
|
|
344
|
+
SemiCircleProgress: B(Yt, { classNames: {
|
|
345
345
|
root: W.semiCircle,
|
|
346
346
|
label: W.semiCircleLabel
|
|
347
347
|
} }),
|
|
348
|
-
Skeleton: B(
|
|
349
|
-
EmptyState: B(
|
|
348
|
+
Skeleton: B(Zt, { classNames: { root: W.skeleton } }),
|
|
349
|
+
EmptyState: B(ut, { classNames: {
|
|
350
350
|
root: W.emptyState,
|
|
351
351
|
indicator: W.emptyIndicator,
|
|
352
352
|
title: W.emptyTitle,
|
|
@@ -382,7 +382,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
382
382
|
colorThumb: "jc-inputs-colorThumb-1br3d",
|
|
383
383
|
colorSaturation: "jc-inputs-colorSaturation-181ea",
|
|
384
384
|
colorSwatch: "jc-inputs-colorSwatch-1nght"
|
|
385
|
-
},
|
|
385
|
+
}, Cr = Object.fromEntries([
|
|
386
386
|
"InputBase",
|
|
387
387
|
"TextInput",
|
|
388
388
|
"PasswordInput",
|
|
@@ -392,62 +392,62 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
392
392
|
"ColorInput",
|
|
393
393
|
"FileInput",
|
|
394
394
|
"MaskInput"
|
|
395
|
-
].map((e) => [e, { defaultProps: { size: "md" } }])),
|
|
395
|
+
].map((e) => [e, { defaultProps: { size: "md" } }])), wr = {
|
|
396
396
|
slider: G.colorSlider,
|
|
397
397
|
sliderOverlay: G.colorSliderOverlay,
|
|
398
398
|
thumb: G.colorThumb
|
|
399
|
-
},
|
|
399
|
+
}, Tr = {
|
|
400
400
|
root: G.sliderRoot,
|
|
401
401
|
thumb: G.sliderThumb,
|
|
402
402
|
label: G.sliderLabel,
|
|
403
403
|
markLabel: G.sliderMarkLabel
|
|
404
|
-
},
|
|
405
|
-
...
|
|
406
|
-
Input: B(
|
|
404
|
+
}, Er = {
|
|
405
|
+
...Cr,
|
|
406
|
+
Input: B(vt, {
|
|
407
407
|
defaultProps: { size: "md" },
|
|
408
408
|
classNames: { input: G.input },
|
|
409
409
|
vars: (e, t) => {
|
|
410
410
|
let n = t.size ?? "md";
|
|
411
|
-
return
|
|
412
|
-
"--input-height":
|
|
413
|
-
"--input-fz":
|
|
411
|
+
return pr(n) ? { wrapper: {
|
|
412
|
+
"--input-height": mr[n].height,
|
|
413
|
+
"--input-fz": mr[n].inputFz
|
|
414
414
|
} } : { wrapper: {} };
|
|
415
415
|
}
|
|
416
416
|
}),
|
|
417
|
-
InputWrapper: B(
|
|
417
|
+
InputWrapper: B(yt, { classNames: {
|
|
418
418
|
label: G.label,
|
|
419
419
|
description: G.description
|
|
420
420
|
} }),
|
|
421
|
-
NativeSelect: B(
|
|
421
|
+
NativeSelect: B(kt, {
|
|
422
422
|
defaultProps: { size: "md" },
|
|
423
423
|
classNames: {
|
|
424
424
|
input: G.nativeSelect,
|
|
425
425
|
section: G.nativeSelectSection
|
|
426
426
|
}
|
|
427
427
|
}),
|
|
428
|
-
Checkbox: B(
|
|
428
|
+
Checkbox: B(Ze, {
|
|
429
429
|
defaultProps: { radius: "xs" },
|
|
430
430
|
classNames: { input: G.checkInput }
|
|
431
431
|
}),
|
|
432
|
-
CheckboxIndicator: B(
|
|
432
|
+
CheckboxIndicator: B($e, {
|
|
433
433
|
defaultProps: { radius: "xs" },
|
|
434
434
|
classNames: { indicator: G.checkInput }
|
|
435
435
|
}),
|
|
436
|
-
CheckboxCard: B(
|
|
436
|
+
CheckboxCard: B(Qe, {
|
|
437
437
|
defaultProps: { radius: "md" },
|
|
438
438
|
classNames: { card: G.selectCard }
|
|
439
439
|
}),
|
|
440
|
-
Radio: B(
|
|
441
|
-
RadioIndicator: B(
|
|
442
|
-
RadioCard: B(
|
|
440
|
+
Radio: B(Bt, { classNames: { radio: G.checkInput } }),
|
|
441
|
+
RadioIndicator: B(Ht, { classNames: { indicator: G.checkInput } }),
|
|
442
|
+
RadioCard: B(Vt, {
|
|
443
443
|
defaultProps: { radius: "md" },
|
|
444
444
|
classNames: { card: G.selectCard }
|
|
445
445
|
}),
|
|
446
|
-
Switch: B(
|
|
446
|
+
Switch: B(nn, {
|
|
447
447
|
defaultProps: { radius: "xl" },
|
|
448
448
|
classNames: { track: G.switchTrack }
|
|
449
449
|
}),
|
|
450
|
-
Chip: B(
|
|
450
|
+
Chip: B(et, {
|
|
451
451
|
defaultProps: { variant: "outline" },
|
|
452
452
|
classNames: { label: G.chipLabel },
|
|
453
453
|
vars: (e, t) => {
|
|
@@ -463,7 +463,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
463
463
|
} };
|
|
464
464
|
}
|
|
465
465
|
}),
|
|
466
|
-
SegmentedControl: B(
|
|
466
|
+
SegmentedControl: B(Jt, {
|
|
467
467
|
defaultProps: { radius: "sm" },
|
|
468
468
|
classNames: {
|
|
469
469
|
root: G.segmentedRoot,
|
|
@@ -471,29 +471,29 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
471
471
|
label: G.segmentedLabel
|
|
472
472
|
}
|
|
473
473
|
}),
|
|
474
|
-
Fieldset: B(
|
|
474
|
+
Fieldset: B(dt, {
|
|
475
475
|
defaultProps: { radius: "md" },
|
|
476
476
|
classNames: {
|
|
477
477
|
root: G.fieldset,
|
|
478
478
|
legend: G.fieldsetLegend
|
|
479
479
|
}
|
|
480
480
|
}),
|
|
481
|
-
PinInput: B(
|
|
481
|
+
PinInput: B(Lt, {
|
|
482
482
|
defaultProps: { size: "md" },
|
|
483
483
|
classNames: { input: G.pinInput },
|
|
484
484
|
vars: (e, t) => {
|
|
485
485
|
let n = t.size ?? "md";
|
|
486
|
-
return { root:
|
|
486
|
+
return { root: pr(n) ? { "--pin-input-size": mr[n].height } : {} };
|
|
487
487
|
}
|
|
488
488
|
}),
|
|
489
|
-
Slider: B(
|
|
490
|
-
RangeSlider: B(
|
|
491
|
-
AngleSlider: B(
|
|
489
|
+
Slider: B(Qt, { classNames: Tr }),
|
|
490
|
+
RangeSlider: B(Ut, { classNames: Tr }),
|
|
491
|
+
AngleSlider: B(Ve, { classNames: {
|
|
492
492
|
root: G.angleRoot,
|
|
493
493
|
thumb: G.angleThumb,
|
|
494
494
|
label: G.angleLabel
|
|
495
495
|
} }),
|
|
496
|
-
Rating: B(
|
|
496
|
+
Rating: B(Wt, {
|
|
497
497
|
defaultProps: { color: "electric.4" },
|
|
498
498
|
classNames: {
|
|
499
499
|
root: G.rating,
|
|
@@ -501,13 +501,13 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
501
501
|
},
|
|
502
502
|
vars: (e, t) => ({ root: t.color === "electric.4" ? { "--rating-color": "var(--jc-rating-color)" } : {} })
|
|
503
503
|
}),
|
|
504
|
-
ColorPicker: B(
|
|
505
|
-
...
|
|
504
|
+
ColorPicker: B(it, { classNames: {
|
|
505
|
+
...wr,
|
|
506
506
|
saturation: G.colorSaturation,
|
|
507
507
|
swatch: G.colorSwatch
|
|
508
508
|
} }),
|
|
509
|
-
AlphaSlider: B(
|
|
510
|
-
HueSlider: B(
|
|
509
|
+
AlphaSlider: B(ze, { classNames: wr }),
|
|
510
|
+
HueSlider: B(ht, { classNames: wr })
|
|
511
511
|
}, K = {
|
|
512
512
|
appShellMain: "jc-layout-appShellMain-rn4sc",
|
|
513
513
|
appShellNavbar: "jc-layout-appShellNavbar-1yh1t",
|
|
@@ -518,7 +518,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
518
518
|
splitter: "jc-layout-splitter-1c81w",
|
|
519
519
|
splitterHandle: "jc-layout-splitterHandle-3aw4b",
|
|
520
520
|
splitterThumb: "jc-layout-splitterThumb-9gif3"
|
|
521
|
-
},
|
|
521
|
+
}, Dr = {
|
|
522
522
|
AppShell: { classNames: {
|
|
523
523
|
main: K.appShellMain,
|
|
524
524
|
navbar: K.appShellNavbar,
|
|
@@ -526,26 +526,26 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
526
526
|
header: K.appShellHeader,
|
|
527
527
|
footer: K.appShellFooter
|
|
528
528
|
} },
|
|
529
|
-
Container: B(
|
|
530
|
-
Splitter: B(
|
|
529
|
+
Container: B(at, { classNames: { root: K.container } }),
|
|
530
|
+
Splitter: B($t, { classNames: {
|
|
531
531
|
root: K.splitter,
|
|
532
532
|
handle: K.splitterHandle,
|
|
533
533
|
thumb: K.splitterThumb
|
|
534
534
|
} })
|
|
535
|
-
},
|
|
535
|
+
}, Or = {
|
|
536
536
|
paper: "jc-misc-paper-ylgp1",
|
|
537
537
|
divider: "jc-misc-divider-19c9f",
|
|
538
538
|
scrollbar: "jc-misc-scrollbar-1rme3",
|
|
539
539
|
scrollThumb: "jc-misc-scrollThumb-1hy1m"
|
|
540
|
-
},
|
|
541
|
-
Paper: B(
|
|
540
|
+
}, kr = {
|
|
541
|
+
Paper: B(Ft, {
|
|
542
542
|
defaultProps: { radius: "md" },
|
|
543
|
-
classNames: { root:
|
|
543
|
+
classNames: { root: Or.paper }
|
|
544
544
|
}),
|
|
545
|
-
Divider: B(
|
|
546
|
-
ScrollArea: B(
|
|
547
|
-
scrollbar:
|
|
548
|
-
thumb:
|
|
545
|
+
Divider: B(ct, { classNames: { root: Or.divider } }),
|
|
546
|
+
ScrollArea: B(qt, { classNames: {
|
|
547
|
+
scrollbar: Or.scrollbar,
|
|
548
|
+
thumb: Or.scrollThumb
|
|
549
549
|
} })
|
|
550
550
|
}, q = {
|
|
551
551
|
tabs: "jc-navigation-tabs-1fx9s",
|
|
@@ -562,30 +562,30 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
562
562
|
tocControl: "jc-navigation-tocControl-1a82m",
|
|
563
563
|
tree: "jc-navigation-tree-1fxa5",
|
|
564
564
|
treeLabel: "jc-navigation-treeLabel-19sv8"
|
|
565
|
-
},
|
|
566
|
-
Tabs: B(
|
|
565
|
+
}, Ar = {
|
|
566
|
+
Tabs: B(dn, { classNames: {
|
|
567
567
|
root: q.tabs,
|
|
568
568
|
tab: q.tab
|
|
569
569
|
} }),
|
|
570
|
-
Anchor: B(
|
|
571
|
-
Burger: B(
|
|
572
|
-
NavLink: B(
|
|
570
|
+
Anchor: B(Be, { classNames: { root: q.anchor } }),
|
|
571
|
+
Burger: B(qe, { classNames: { root: q.burger } }),
|
|
572
|
+
NavLink: B(At, {
|
|
573
573
|
defaultProps: { variant: "light" },
|
|
574
574
|
classNames: { root: q.navLink }
|
|
575
575
|
}),
|
|
576
|
-
Pagination: B(
|
|
576
|
+
Pagination: B(Pt, {
|
|
577
577
|
defaultProps: { radius: "sm" },
|
|
578
578
|
classNames: { control: q.paginationControl }
|
|
579
579
|
}),
|
|
580
|
-
Stepper: B(
|
|
580
|
+
Stepper: B(tn, { classNames: {
|
|
581
581
|
root: q.stepper,
|
|
582
582
|
stepIcon: q.stepIcon,
|
|
583
583
|
stepCompletedIcon: q.stepCompletedIcon,
|
|
584
584
|
stepLabel: q.stepLabel,
|
|
585
585
|
stepDescription: q.stepDescription
|
|
586
586
|
} }),
|
|
587
|
-
TableOfContents: B(
|
|
588
|
-
Tree: B(
|
|
587
|
+
TableOfContents: B(an, { classNames: { control: q.tocControl } }),
|
|
588
|
+
Tree: B(_n, { classNames: {
|
|
589
589
|
root: q.tree,
|
|
590
590
|
label: q.treeLabel
|
|
591
591
|
} })
|
|
@@ -602,50 +602,50 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
602
602
|
modalHeader: "jc-overlays-modalHeader-ovcpc",
|
|
603
603
|
modalTitle: "jc-overlays-modalTitle-x2dy5",
|
|
604
604
|
tooltip: "jc-overlays-tooltip-rudkb"
|
|
605
|
-
},
|
|
605
|
+
}, jr = {
|
|
606
606
|
dropdown: J.dropdown,
|
|
607
607
|
item: J.menuItem,
|
|
608
608
|
label: J.menuLabel,
|
|
609
609
|
divider: J.menuDivider
|
|
610
|
-
},
|
|
611
|
-
Menu: B(
|
|
610
|
+
}, Mr = {
|
|
611
|
+
Menu: B(Et, {
|
|
612
612
|
defaultProps: {
|
|
613
613
|
shadow: "md",
|
|
614
614
|
radius: "sm"
|
|
615
615
|
},
|
|
616
|
-
classNames:
|
|
616
|
+
classNames: jr
|
|
617
617
|
}),
|
|
618
|
-
Menubar: B(
|
|
618
|
+
Menubar: B(Dt, { classNames: {
|
|
619
619
|
root: J.menubarRoot,
|
|
620
620
|
target: J.menubarTarget
|
|
621
621
|
} }),
|
|
622
|
-
Popover: B(
|
|
622
|
+
Popover: B(Rt, {
|
|
623
623
|
defaultProps: {
|
|
624
624
|
shadow: "md",
|
|
625
625
|
radius: "sm"
|
|
626
626
|
},
|
|
627
627
|
classNames: { dropdown: J.dropdown }
|
|
628
628
|
}),
|
|
629
|
-
HoverCard: B(
|
|
629
|
+
HoverCard: B(mt, {
|
|
630
630
|
defaultProps: {
|
|
631
631
|
shadow: "md",
|
|
632
632
|
radius: "md"
|
|
633
633
|
},
|
|
634
634
|
classNames: { dropdown: J.dropdown }
|
|
635
635
|
}),
|
|
636
|
-
Tooltip: B(
|
|
636
|
+
Tooltip: B(hn, {
|
|
637
637
|
defaultProps: {
|
|
638
638
|
radius: "sm",
|
|
639
639
|
withArrow: !0
|
|
640
640
|
},
|
|
641
641
|
classNames: { tooltip: J.tooltip }
|
|
642
642
|
}),
|
|
643
|
-
Modal: B(
|
|
643
|
+
Modal: B(Ot, {
|
|
644
644
|
defaultProps: {
|
|
645
645
|
radius: "md",
|
|
646
646
|
centered: !0,
|
|
647
647
|
shadow: "lg",
|
|
648
|
-
overlayProps:
|
|
648
|
+
overlayProps: hr
|
|
649
649
|
},
|
|
650
650
|
classNames: {
|
|
651
651
|
content: J.modalContent,
|
|
@@ -653,10 +653,10 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
653
653
|
title: J.modalTitle
|
|
654
654
|
}
|
|
655
655
|
}),
|
|
656
|
-
Drawer: B(
|
|
656
|
+
Drawer: B(lt, {
|
|
657
657
|
defaultProps: {
|
|
658
658
|
shadow: "lg",
|
|
659
|
-
overlayProps:
|
|
659
|
+
overlayProps: hr
|
|
660
660
|
},
|
|
661
661
|
classNames: {
|
|
662
662
|
content: J.modalContent,
|
|
@@ -664,14 +664,14 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
664
664
|
title: J.modalTitle
|
|
665
665
|
}
|
|
666
666
|
}),
|
|
667
|
-
Dialog: B(
|
|
667
|
+
Dialog: B(st, {
|
|
668
668
|
defaultProps: {
|
|
669
669
|
radius: "md",
|
|
670
670
|
shadow: "lg"
|
|
671
671
|
},
|
|
672
672
|
classNames: { root: J.floatingSurface }
|
|
673
673
|
}),
|
|
674
|
-
ActionBar: B(
|
|
674
|
+
ActionBar: B(Ie, {
|
|
675
675
|
defaultProps: {
|
|
676
676
|
radius: "md",
|
|
677
677
|
shadow: "lg"
|
|
@@ -681,7 +681,7 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
681
681
|
divider: J.actionBarDivider
|
|
682
682
|
}
|
|
683
683
|
}),
|
|
684
|
-
FloatingWindow: B(
|
|
684
|
+
FloatingWindow: B(ft, {
|
|
685
685
|
defaultProps: {
|
|
686
686
|
radius: "md",
|
|
687
687
|
shadow: "lg",
|
|
@@ -689,8 +689,8 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
689
689
|
},
|
|
690
690
|
classNames: { root: J.floatingSurface }
|
|
691
691
|
}),
|
|
692
|
-
Overlay: B(
|
|
693
|
-
LoadingOverlay: B(
|
|
692
|
+
Overlay: B(Nt, { defaultProps: { color: de.obsidian } }),
|
|
693
|
+
LoadingOverlay: B(Ct, { defaultProps: { overlayProps: {
|
|
694
694
|
backgroundOpacity: .75,
|
|
695
695
|
blur: 1
|
|
696
696
|
} } })
|
|
@@ -709,12 +709,12 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
709
709
|
listItem: "jc-typography-listItem-tklh3",
|
|
710
710
|
listItemIcon: "jc-typography-listItemIcon-iqpjy",
|
|
711
711
|
typography: "jc-typography-typography-1usve"
|
|
712
|
-
},
|
|
712
|
+
}, Nr = [
|
|
713
713
|
void 0,
|
|
714
714
|
"yellow",
|
|
715
715
|
"electric"
|
|
716
|
-
],
|
|
717
|
-
Blockquote: B(
|
|
716
|
+
], Pr = {
|
|
717
|
+
Blockquote: B(Ge, {
|
|
718
718
|
defaultProps: {
|
|
719
719
|
iconSize: 40,
|
|
720
720
|
radius: "sm"
|
|
@@ -730,8 +730,8 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
730
730
|
"--bq-bg-dark": "var(--ds-primary-soft)"
|
|
731
731
|
} } : { root: {} }
|
|
732
732
|
}),
|
|
733
|
-
Code: B(
|
|
734
|
-
List: B(
|
|
733
|
+
Code: B(nt, { classNames: { root: Y.code } }),
|
|
734
|
+
List: B(xt, {
|
|
735
735
|
defaultProps: { spacing: "xs" },
|
|
736
736
|
classNames: {
|
|
737
737
|
root: Y.list,
|
|
@@ -739,17 +739,17 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
739
739
|
itemIcon: Y.listItemIcon
|
|
740
740
|
}
|
|
741
741
|
}),
|
|
742
|
-
Mark: B(
|
|
742
|
+
Mark: B(Tt, {
|
|
743
743
|
classNames: { root: Y.mark },
|
|
744
744
|
vars: (e, t) => {
|
|
745
|
-
let n =
|
|
745
|
+
let n = Nr.includes(t.color), r = n ? "electric" : t.color;
|
|
746
746
|
return { root: {
|
|
747
|
-
"--mark-bg-light":
|
|
748
|
-
"--mark-bg-dark": `color-mix(in srgb, ${
|
|
747
|
+
"--mark-bg-light": Cn(`${r}.${n ? 2 : 1}`, e),
|
|
748
|
+
"--mark-bg-dark": `color-mix(in srgb, ${Cn(`${r}.${n ? 3 : 4}`, e)} 32%, transparent)`
|
|
749
749
|
} };
|
|
750
750
|
}
|
|
751
751
|
}),
|
|
752
|
-
Table: B(
|
|
752
|
+
Table: B(rn, {
|
|
753
753
|
defaultProps: {
|
|
754
754
|
highlightOnHover: !0,
|
|
755
755
|
verticalSpacing: "sm",
|
|
@@ -762,21 +762,21 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
762
762
|
tr: Y.tr
|
|
763
763
|
}
|
|
764
764
|
}),
|
|
765
|
-
Title: B(
|
|
766
|
-
Typography: B(
|
|
767
|
-
},
|
|
768
|
-
...
|
|
769
|
-
...
|
|
770
|
-
...ur,
|
|
771
|
-
...sr,
|
|
765
|
+
Title: B(mn, { classNames: { root: Y.title } }),
|
|
766
|
+
Typography: B(vn, { classNames: { root: Y.typography } })
|
|
767
|
+
}, Fr = {
|
|
768
|
+
...Dr,
|
|
769
|
+
...Er,
|
|
772
770
|
...br,
|
|
773
|
-
...
|
|
771
|
+
..._r,
|
|
772
|
+
...Ar,
|
|
774
773
|
...Sr,
|
|
775
|
-
...
|
|
776
|
-
...
|
|
777
|
-
...
|
|
778
|
-
|
|
779
|
-
|
|
774
|
+
...Mr,
|
|
775
|
+
...xr,
|
|
776
|
+
...Pr,
|
|
777
|
+
...kr
|
|
778
|
+
}, X = ce, Ir = {
|
|
779
|
+
colors: fe,
|
|
780
780
|
primaryColor: "horizon",
|
|
781
781
|
primaryShade: {
|
|
782
782
|
light: 6,
|
|
@@ -786,11 +786,11 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
786
786
|
luminanceThreshold: .3,
|
|
787
787
|
white: "#FFFFFF",
|
|
788
788
|
black: "#1F2228",
|
|
789
|
-
variantColorResolver:
|
|
790
|
-
fontFamily:
|
|
789
|
+
variantColorResolver: fr,
|
|
790
|
+
fontFamily: se,
|
|
791
791
|
fontFamilyMonospace: "ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace",
|
|
792
792
|
headings: {
|
|
793
|
-
fontFamily:
|
|
793
|
+
fontFamily: se,
|
|
794
794
|
fontWeight: "600",
|
|
795
795
|
textWrap: "balance",
|
|
796
796
|
sizes: {
|
|
@@ -841,11 +841,11 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
841
841
|
xl: "1.4"
|
|
842
842
|
},
|
|
843
843
|
spacing: {
|
|
844
|
-
xs:
|
|
845
|
-
sm:
|
|
846
|
-
md:
|
|
847
|
-
lg:
|
|
848
|
-
xl:
|
|
844
|
+
xs: g[4],
|
|
845
|
+
sm: g[8],
|
|
846
|
+
md: g[16],
|
|
847
|
+
lg: g[24],
|
|
848
|
+
xl: g[32]
|
|
849
849
|
},
|
|
850
850
|
radius: {
|
|
851
851
|
xs: "4px",
|
|
@@ -877,14 +877,14 @@ var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "x
|
|
|
877
877
|
deg: 135
|
|
878
878
|
},
|
|
879
879
|
other: {
|
|
880
|
-
spacing:
|
|
881
|
-
grid:
|
|
882
|
-
typography:
|
|
883
|
-
chartPalette:
|
|
880
|
+
spacing: g,
|
|
881
|
+
grid: ue,
|
|
882
|
+
typography: ce,
|
|
883
|
+
chartPalette: le
|
|
884
884
|
},
|
|
885
|
-
components:
|
|
886
|
-
},
|
|
887
|
-
function
|
|
885
|
+
components: Fr
|
|
886
|
+
}, Lr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
887
|
+
function Rr(e) {
|
|
888
888
|
return {
|
|
889
889
|
"--ds-bg": e.bg,
|
|
890
890
|
"--ds-surface": e.surface,
|
|
@@ -912,11 +912,11 @@ function Or(e) {
|
|
|
912
912
|
"--mantine-color-default-hover": e.surface2,
|
|
913
913
|
"--mantine-color-default-border": e.border,
|
|
914
914
|
"--mantine-color-anchor": e.link,
|
|
915
|
-
"--mantine-color-error":
|
|
916
|
-
"--mantine-color-success":
|
|
915
|
+
"--mantine-color-error": h.error,
|
|
916
|
+
"--mantine-color-success": h.success
|
|
917
917
|
};
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function zr() {
|
|
920
920
|
let e = {
|
|
921
921
|
"--font-body": "'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
922
922
|
"--ds-radius": "12px",
|
|
@@ -926,54 +926,54 @@ function kr() {
|
|
|
926
926
|
"--grid-margin": "64px",
|
|
927
927
|
"--grid-max": "1224px"
|
|
928
928
|
};
|
|
929
|
-
return Object.keys(
|
|
930
|
-
e[`--dc-${t}`] =
|
|
931
|
-
}), Object.keys(
|
|
932
|
-
Object.entries(
|
|
929
|
+
return Object.keys(de).forEach((t) => {
|
|
930
|
+
e[`--dc-${t}`] = de[t];
|
|
931
|
+
}), Object.keys(_).forEach((t) => {
|
|
932
|
+
Object.entries(_[t]).forEach(([n, r]) => {
|
|
933
933
|
e[`--dc-${t}-${n}`] = r;
|
|
934
934
|
});
|
|
935
|
-
}), Object.entries(
|
|
936
|
-
e[`--type-${
|
|
937
|
-
}), Object.entries(
|
|
935
|
+
}), Object.entries(ce).forEach(([t, n]) => {
|
|
936
|
+
e[`--type-${Lr(t)}`] = n.size;
|
|
937
|
+
}), Object.entries(g).forEach(([t, n]) => {
|
|
938
938
|
e[`--sp-${t}`] = n;
|
|
939
939
|
}), e;
|
|
940
940
|
}
|
|
941
|
-
var
|
|
941
|
+
var Br = {
|
|
942
942
|
light: {
|
|
943
|
-
"--ds-tag-primary-bg":
|
|
944
|
-
"--ds-tag-primary-hover":
|
|
945
|
-
"--ds-tag-primary-color":
|
|
946
|
-
"--ds-tag-success-bg":
|
|
947
|
-
"--ds-tag-success-hover":
|
|
948
|
-
"--ds-tag-success-color":
|
|
949
|
-
"--ds-tag-warn-bg":
|
|
950
|
-
"--ds-tag-warn-hover":
|
|
951
|
-
"--ds-tag-warn-color":
|
|
952
|
-
"--ds-tag-error-bg":
|
|
953
|
-
"--ds-tag-error-hover":
|
|
954
|
-
"--ds-tag-error-color":
|
|
955
|
-
"--ds-tag-neutral-bg":
|
|
956
|
-
"--ds-tag-neutral-hover":
|
|
957
|
-
"--ds-tag-neutral-color":
|
|
943
|
+
"--ds-tag-primary-bg": _.horizon[50],
|
|
944
|
+
"--ds-tag-primary-hover": _.horizon[100],
|
|
945
|
+
"--ds-tag-primary-color": _.horizon[700],
|
|
946
|
+
"--ds-tag-success-bg": _.evergreen[50],
|
|
947
|
+
"--ds-tag-success-hover": _.evergreen[100],
|
|
948
|
+
"--ds-tag-success-color": _.evergreen[700],
|
|
949
|
+
"--ds-tag-warn-bg": _.electric[50],
|
|
950
|
+
"--ds-tag-warn-hover": _.electric[100],
|
|
951
|
+
"--ds-tag-warn-color": _.electric[700],
|
|
952
|
+
"--ds-tag-error-bg": _.danger[50],
|
|
953
|
+
"--ds-tag-error-hover": _.danger[100],
|
|
954
|
+
"--ds-tag-error-color": _.danger[700],
|
|
955
|
+
"--ds-tag-neutral-bg": _.gray[100],
|
|
956
|
+
"--ds-tag-neutral-hover": _.gray[200],
|
|
957
|
+
"--ds-tag-neutral-color": _.gray[700]
|
|
958
958
|
},
|
|
959
959
|
dark: {
|
|
960
960
|
"--ds-tag-primary-bg": "rgba(110,159,255,.14)",
|
|
961
961
|
"--ds-tag-primary-hover": "rgba(110,159,255,.22)",
|
|
962
|
-
"--ds-tag-primary-color":
|
|
962
|
+
"--ds-tag-primary-color": _.horizon[300],
|
|
963
963
|
"--ds-tag-success-bg": "rgba(97,184,117,.14)",
|
|
964
964
|
"--ds-tag-success-hover": "rgba(97,184,117,.22)",
|
|
965
|
-
"--ds-tag-success-color":
|
|
965
|
+
"--ds-tag-success-color": _.evergreen[300],
|
|
966
966
|
"--ds-tag-warn-bg": "rgba(247,215,89,.12)",
|
|
967
967
|
"--ds-tag-warn-hover": "rgba(247,215,89,.2)",
|
|
968
|
-
"--ds-tag-warn-color":
|
|
968
|
+
"--ds-tag-warn-color": _.electric[200],
|
|
969
969
|
"--ds-tag-error-bg": "rgba(255,108,90,.14)",
|
|
970
970
|
"--ds-tag-error-hover": "rgba(255,108,90,.22)",
|
|
971
|
-
"--ds-tag-error-color":
|
|
972
|
-
"--ds-tag-neutral-bg":
|
|
973
|
-
"--ds-tag-neutral-hover":
|
|
974
|
-
"--ds-tag-neutral-color":
|
|
971
|
+
"--ds-tag-error-color": _.danger[300],
|
|
972
|
+
"--ds-tag-neutral-bg": v.dark.surface2,
|
|
973
|
+
"--ds-tag-neutral-hover": v.dark.border,
|
|
974
|
+
"--ds-tag-neutral-color": v.dark.text2
|
|
975
975
|
}
|
|
976
|
-
},
|
|
976
|
+
}, Vr = Object.fromEntries(Object.entries({
|
|
977
977
|
horizon: "primary",
|
|
978
978
|
blue: "primary",
|
|
979
979
|
evergreen: "success",
|
|
@@ -991,16 +991,16 @@ var Ar = {
|
|
|
991
991
|
[`--mantine-color-${e}-light`, `var(--ds-tag-${t}-bg)`],
|
|
992
992
|
[`--mantine-color-${e}-light-hover`, `var(--ds-tag-${t}-hover)`],
|
|
993
993
|
[`--mantine-color-${e}-light-color`, `var(--ds-tag-${t}-color)`]
|
|
994
|
-
])),
|
|
995
|
-
variables:
|
|
994
|
+
])), Hr = (e) => Object.fromEntries(e.map((e, t) => [`--jc-chart-${t + 1}`, e])), Ur = () => ({
|
|
995
|
+
variables: zr(),
|
|
996
996
|
light: {
|
|
997
|
-
...
|
|
998
|
-
...
|
|
999
|
-
...
|
|
1000
|
-
...
|
|
1001
|
-
"--ds-success":
|
|
1002
|
-
"--ds-warn":
|
|
1003
|
-
"--ds-error":
|
|
997
|
+
...Rr(v.light),
|
|
998
|
+
...Br.light,
|
|
999
|
+
...Hr(oe.light),
|
|
1000
|
+
...Vr,
|
|
1001
|
+
"--ds-success": h.success,
|
|
1002
|
+
"--ds-warn": h.warn,
|
|
1003
|
+
"--ds-error": h.error,
|
|
1004
1004
|
"--jc-on-filled": "#FFFFFF",
|
|
1005
1005
|
"--mantine-primary-color-contrast": "#FFFFFF",
|
|
1006
1006
|
"--jc-logo-shield": "#0E36E3",
|
|
@@ -1011,48 +1011,48 @@ var Ar = {
|
|
|
1011
1011
|
"--jc-art-paper": "#FFFFFF"
|
|
1012
1012
|
},
|
|
1013
1013
|
dark: {
|
|
1014
|
-
...
|
|
1015
|
-
...
|
|
1016
|
-
...
|
|
1017
|
-
...
|
|
1018
|
-
"--ds-success":
|
|
1019
|
-
"--ds-warn":
|
|
1020
|
-
"--ds-error":
|
|
1021
|
-
"--jc-on-filled":
|
|
1022
|
-
"--mantine-primary-color-contrast":
|
|
1014
|
+
...Rr(v.dark),
|
|
1015
|
+
...Br.dark,
|
|
1016
|
+
...Hr(oe.dark),
|
|
1017
|
+
...Vr,
|
|
1018
|
+
"--ds-success": _.evergreen[400],
|
|
1019
|
+
"--ds-warn": _.electric[300],
|
|
1020
|
+
"--ds-error": _.danger[400],
|
|
1021
|
+
"--jc-on-filled": de.obsidian,
|
|
1022
|
+
"--mantine-primary-color-contrast": de.obsidian,
|
|
1023
1023
|
"--jc-logo-shield": "#FFFFFF",
|
|
1024
1024
|
"--jc-logo-letters": "#FFFFFF",
|
|
1025
1025
|
"--jc-logo-wordmark": "#FFFFFF",
|
|
1026
|
-
"--jc-art-primary":
|
|
1027
|
-
"--jc-art-ink":
|
|
1028
|
-
"--jc-art-paper":
|
|
1029
|
-
"--mantine-color-error":
|
|
1030
|
-
"--mantine-color-success":
|
|
1026
|
+
"--jc-art-primary": _.horizon[300],
|
|
1027
|
+
"--jc-art-ink": v.dark.text,
|
|
1028
|
+
"--jc-art-paper": v.dark.surface2,
|
|
1029
|
+
"--mantine-color-error": _.danger[400],
|
|
1030
|
+
"--mantine-color-success": _.evergreen[400]
|
|
1031
1031
|
}
|
|
1032
|
-
}),
|
|
1033
|
-
function
|
|
1032
|
+
}), Wr = "mantine-color-scheme-value", Gr = (e) => e === "light" || e === "dark" || e === "auto";
|
|
1033
|
+
function Kr(e) {
|
|
1034
1034
|
try {
|
|
1035
1035
|
let t = typeof window < "u" ? window.localStorage.getItem(e) : null;
|
|
1036
|
-
return
|
|
1036
|
+
return Gr(t) ? t : void 0;
|
|
1037
1037
|
} catch {
|
|
1038
1038
|
return;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
var
|
|
1041
|
+
var qr = O({
|
|
1042
1042
|
name: "JcColorSchemePersistence",
|
|
1043
1043
|
props: { storageKey: {
|
|
1044
1044
|
type: String,
|
|
1045
1045
|
required: !0
|
|
1046
1046
|
} },
|
|
1047
1047
|
setup(e) {
|
|
1048
|
-
let { colorScheme: t } =
|
|
1049
|
-
return
|
|
1048
|
+
let { colorScheme: t } = On();
|
|
1049
|
+
return Hn(t, (t) => {
|
|
1050
1050
|
try {
|
|
1051
1051
|
window.localStorage.setItem(e.storageKey, t);
|
|
1052
1052
|
} catch {}
|
|
1053
1053
|
}), () => null;
|
|
1054
1054
|
}
|
|
1055
|
-
}),
|
|
1055
|
+
}), Jr = O({
|
|
1056
1056
|
name: "JcProvider",
|
|
1057
1057
|
inheritAttrs: !1,
|
|
1058
1058
|
props: {
|
|
@@ -1074,32 +1074,32 @@ var Lr = A({
|
|
|
1074
1074
|
},
|
|
1075
1075
|
colorSchemeStorageKey: {
|
|
1076
1076
|
type: [String, Boolean],
|
|
1077
|
-
default:
|
|
1077
|
+
default: Wr
|
|
1078
1078
|
}
|
|
1079
1079
|
},
|
|
1080
1080
|
setup(e, { attrs: t, slots: n }) {
|
|
1081
|
-
let r =
|
|
1082
|
-
return () =>
|
|
1081
|
+
let r = S(() => e.theme ? Un(Ir, e.theme) : Ir), i = e.colorSchemeStorageKey ? Kr(e.colorSchemeStorageKey) : void 0;
|
|
1082
|
+
return () => A(wt, {
|
|
1083
1083
|
...t,
|
|
1084
1084
|
theme: r.value,
|
|
1085
1085
|
defaultColorScheme: i ?? e.defaultColorScheme,
|
|
1086
1086
|
forceColorScheme: e.forceColorScheme,
|
|
1087
|
-
cssVariablesResolver: e.cssVariablesResolver ??
|
|
1088
|
-
}, () => [e.colorSchemeStorageKey ?
|
|
1087
|
+
cssVariablesResolver: e.cssVariablesResolver ?? Ur
|
|
1088
|
+
}, () => [e.colorSchemeStorageKey ? A(qr, { storageKey: e.colorSchemeStorageKey }) : null, n.default?.()]);
|
|
1089
1089
|
}
|
|
1090
|
-
}),
|
|
1090
|
+
}), Yr = {
|
|
1091
1091
|
primary: "horizon",
|
|
1092
1092
|
success: "evergreen",
|
|
1093
1093
|
warn: "electric",
|
|
1094
1094
|
error: "danger",
|
|
1095
1095
|
neutral: "obsidian"
|
|
1096
|
-
},
|
|
1097
|
-
primary:
|
|
1098
|
-
success:
|
|
1099
|
-
warn:
|
|
1100
|
-
error:
|
|
1096
|
+
}, Xr = {
|
|
1097
|
+
primary: tr,
|
|
1098
|
+
success: Xn,
|
|
1099
|
+
warn: Wn,
|
|
1100
|
+
error: sr,
|
|
1101
1101
|
neutral: null
|
|
1102
|
-
},
|
|
1102
|
+
}, Zr = O({
|
|
1103
1103
|
name: "Tag",
|
|
1104
1104
|
inheritAttrs: !1,
|
|
1105
1105
|
props: {
|
|
@@ -1118,12 +1118,12 @@ var Lr = A({
|
|
|
1118
1118
|
},
|
|
1119
1119
|
setup(e, { attrs: t, slots: n }) {
|
|
1120
1120
|
return () => {
|
|
1121
|
-
let r =
|
|
1121
|
+
let r = Xr[e.tone], i = n.leftSection || t.leftSection !== void 0 || t["left-section"] !== void 0, a = n.leftSection ?? (!i && e.withIcon && r ? () => A(r, {
|
|
1122
1122
|
size: 12,
|
|
1123
1123
|
stroke: 2.5
|
|
1124
1124
|
}) : void 0);
|
|
1125
|
-
return
|
|
1126
|
-
color:
|
|
1125
|
+
return A(We, {
|
|
1126
|
+
color: Yr[e.tone],
|
|
1127
1127
|
variant: e.variant,
|
|
1128
1128
|
"data-tone": e.tone,
|
|
1129
1129
|
...t
|
|
@@ -1139,28 +1139,28 @@ var Lr = A({
|
|
|
1139
1139
|
function Z(e) {
|
|
1140
1140
|
if (e == null || e === !1 || e === !0 || e === "") return !1;
|
|
1141
1141
|
if (Array.isArray(e)) return e.some((e) => Z(e));
|
|
1142
|
-
if (
|
|
1143
|
-
if (e.type ===
|
|
1144
|
-
if (e.type ===
|
|
1145
|
-
if (e.type ===
|
|
1142
|
+
if (Ln(e)) {
|
|
1143
|
+
if (e.type === jn) return !1;
|
|
1144
|
+
if (e.type === Nn) return typeof e.children == "string" && e.children.trim() !== "";
|
|
1145
|
+
if (e.type === Mn) return Z(e.children);
|
|
1146
1146
|
}
|
|
1147
1147
|
return !0;
|
|
1148
1148
|
}
|
|
1149
1149
|
function Q(e, t) {
|
|
1150
|
-
let n =
|
|
1150
|
+
let n = x(e, t);
|
|
1151
1151
|
return Z(n) ? n : void 0;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1154
|
-
let e =
|
|
1153
|
+
function Qr() {
|
|
1154
|
+
let e = In();
|
|
1155
1155
|
return (t) => {
|
|
1156
1156
|
let n = e?.vnode.props;
|
|
1157
|
-
return n ? !!(n[
|
|
1157
|
+
return n ? !!(n[Vn(t)] || n[Vn(Pn(t))]) : !1;
|
|
1158
1158
|
};
|
|
1159
1159
|
}
|
|
1160
|
-
var
|
|
1160
|
+
var $r = {
|
|
1161
1161
|
type: null,
|
|
1162
1162
|
default: void 0
|
|
1163
|
-
},
|
|
1163
|
+
}, ei = {
|
|
1164
1164
|
horizon: {
|
|
1165
1165
|
bg: "var(--dc-horizon-700)",
|
|
1166
1166
|
color: "#fff",
|
|
@@ -1176,17 +1176,17 @@ var Ur = {
|
|
|
1176
1176
|
color: "#fff",
|
|
1177
1177
|
highlight: "var(--dc-electric)"
|
|
1178
1178
|
}
|
|
1179
|
-
},
|
|
1180
|
-
"--banner-bg":
|
|
1181
|
-
"--banner-color":
|
|
1182
|
-
"--banner-highlight":
|
|
1183
|
-
"--banner-radius": n === void 0 ? void 0 :
|
|
1184
|
-
} })),
|
|
1179
|
+
}, ti = yn((e, { variant: t = "horizon", radius: n }) => ({ root: {
|
|
1180
|
+
"--banner-bg": ei[t].bg,
|
|
1181
|
+
"--banner-color": ei[t].color,
|
|
1182
|
+
"--banner-highlight": ei[t].highlight,
|
|
1183
|
+
"--banner-radius": n === void 0 ? void 0 : Sn(n)
|
|
1184
|
+
} })), ni = {
|
|
1185
1185
|
root: "jc-PromoBanner-root-ea180",
|
|
1186
1186
|
highlight: "jc-PromoBanner-highlight-1ead9",
|
|
1187
1187
|
content: "jc-PromoBanner-content-118h9",
|
|
1188
1188
|
close: "jc-PromoBanner-close-g82r6"
|
|
1189
|
-
},
|
|
1189
|
+
}, ri = xn(/* @__PURE__ */ O({
|
|
1190
1190
|
name: "PromoBanner",
|
|
1191
1191
|
inheritAttrs: !1,
|
|
1192
1192
|
__name: "PromoBanner",
|
|
@@ -1213,13 +1213,13 @@ var Ur = {
|
|
|
1213
1213
|
},
|
|
1214
1214
|
emits: ["close", "update:opened"],
|
|
1215
1215
|
setup(e, { emit: t }) {
|
|
1216
|
-
let n = e, r = t, i =
|
|
1216
|
+
let n = e, r = t, i = L(), a = R(), o = kn("PromoBanner", { variant: "horizon" }, n), [s, c] = ur({
|
|
1217
1217
|
value: () => o.opened,
|
|
1218
1218
|
defaultValue: !0,
|
|
1219
1219
|
onChange: (e) => r("update:opened", e)
|
|
1220
|
-
}), l =
|
|
1220
|
+
}), l = An({
|
|
1221
1221
|
name: "PromoBanner",
|
|
1222
|
-
classes:
|
|
1222
|
+
classes: ni,
|
|
1223
1223
|
props: o,
|
|
1224
1224
|
get className() {
|
|
1225
1225
|
return i.class;
|
|
@@ -1239,48 +1239,48 @@ var Ur = {
|
|
|
1239
1239
|
get unstyled() {
|
|
1240
1240
|
return o.unstyled;
|
|
1241
1241
|
},
|
|
1242
|
-
varsResolver:
|
|
1242
|
+
varsResolver: ti
|
|
1243
1243
|
}), u = () => Q(o.icon, a.icon), d = () => Q(o.highlight, a.highlight);
|
|
1244
1244
|
function f() {
|
|
1245
1245
|
c(!1), r("close");
|
|
1246
1246
|
}
|
|
1247
|
-
return (e, t) =>
|
|
1247
|
+
return (e, t) => I(s) ? (N(), C(I(y), j({
|
|
1248
1248
|
key: 0,
|
|
1249
1249
|
role: "note"
|
|
1250
1250
|
}, {
|
|
1251
|
-
...
|
|
1252
|
-
...
|
|
1251
|
+
...I(i),
|
|
1252
|
+
...I(l)("root")
|
|
1253
1253
|
}, {
|
|
1254
|
-
variant:
|
|
1254
|
+
variant: I(o).variant,
|
|
1255
1255
|
mod: [{
|
|
1256
|
-
radius:
|
|
1257
|
-
closable:
|
|
1258
|
-
},
|
|
1256
|
+
radius: I(o).radius !== void 0,
|
|
1257
|
+
closable: I(o).withCloseButton
|
|
1258
|
+
}, I(i).mod]
|
|
1259
1259
|
}), {
|
|
1260
|
-
default: z(() => [
|
|
1261
|
-
(
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
], 16),
|
|
1260
|
+
default: z(() => [E("span", M(k(I(l)("content"))), [
|
|
1261
|
+
(N(), C(P(u))),
|
|
1262
|
+
E("span", null, [Bn(e.$slots, "default")]),
|
|
1263
|
+
I(Z)(d()) ? (N(), T("strong", M(j({ key: 0 }, I(l)("highlight"))), [(N(), C(P(d)))], 16)) : w("", !0)
|
|
1264
|
+
], 16), I(o).withCloseButton ? (N(), C(I(tt), j({
|
|
1265
1265
|
key: 0,
|
|
1266
1266
|
"aria-label": "Fechar",
|
|
1267
1267
|
size: "sm",
|
|
1268
1268
|
variant: "transparent"
|
|
1269
|
-
},
|
|
1269
|
+
}, I(l)("close"), { onClick: f }), null, 16)) : w("", !0)]),
|
|
1270
1270
|
_: 3
|
|
1271
|
-
}, 16, ["variant", "mod"])) :
|
|
1271
|
+
}, 16, ["variant", "mod"])) : w("", !0);
|
|
1272
1272
|
}
|
|
1273
1273
|
}), {
|
|
1274
|
-
classes:
|
|
1275
|
-
varsResolver:
|
|
1276
|
-
}),
|
|
1274
|
+
classes: ni,
|
|
1275
|
+
varsResolver: ti
|
|
1276
|
+
}), ii = {
|
|
1277
1277
|
root: "jc-ContentCard-root-1onkj",
|
|
1278
1278
|
image: "jc-ContentCard-image-xcrki",
|
|
1279
1279
|
kicker: "jc-ContentCard-kicker-14g3b",
|
|
1280
1280
|
title: "jc-ContentCard-title-xir5a",
|
|
1281
1281
|
body: "jc-ContentCard-body-1onab",
|
|
1282
1282
|
actions: "jc-ContentCard-actions-13191"
|
|
1283
|
-
},
|
|
1283
|
+
}, ai = ["src", "alt"], oi = xn(/* @__PURE__ */ O({
|
|
1284
1284
|
name: "ContentCard",
|
|
1285
1285
|
inheritAttrs: !1,
|
|
1286
1286
|
__name: "ContentCard",
|
|
@@ -1300,9 +1300,9 @@ var Ur = {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
},
|
|
1302
1302
|
setup(e) {
|
|
1303
|
-
let t = e, n =
|
|
1303
|
+
let t = e, n = L(), r = R(), i = kn("ContentCard", { imageHeight: 180 }, t), a = An({
|
|
1304
1304
|
name: "ContentCard",
|
|
1305
|
-
classes:
|
|
1305
|
+
classes: ii,
|
|
1306
1306
|
props: i,
|
|
1307
1307
|
get className() {
|
|
1308
1308
|
return n.class;
|
|
@@ -1322,46 +1322,46 @@ var Ur = {
|
|
|
1322
1322
|
get unstyled() {
|
|
1323
1323
|
return i.unstyled;
|
|
1324
1324
|
}
|
|
1325
|
-
}), o = () => Q(i.kicker, r.kicker), s = () => Q(i.title, r.title), c = () => Q(i.actions, r.actions), l = () => Q(void 0, r.default),
|
|
1326
|
-
return (e, t) => (
|
|
1327
|
-
...
|
|
1328
|
-
...
|
|
1325
|
+
}), o = () => Q(i.kicker, r.kicker), s = () => Q(i.title, r.title), c = () => Q(i.actions, r.actions), l = () => Q(void 0, r.default), u = () => !r.image && typeof i.image == "string" && i.image ? i.image : void 0, f = () => Q(i.image, r.image);
|
|
1326
|
+
return (e, t) => (N(), C(I(d), M(k({
|
|
1327
|
+
...I(n),
|
|
1328
|
+
...I(a)("root")
|
|
1329
1329
|
})), {
|
|
1330
1330
|
default: z(() => [
|
|
1331
|
-
|
|
1331
|
+
u() || I(Z)(f()) ? (N(), T("div", M(j({ key: 0 }, I(a)("image"))), [u() ? (N(), T("img", {
|
|
1332
1332
|
key: 0,
|
|
1333
|
-
src:
|
|
1334
|
-
alt:
|
|
1335
|
-
style:
|
|
1336
|
-
}, null, 12,
|
|
1337
|
-
|
|
1338
|
-
default: z(() => [(
|
|
1333
|
+
src: u(),
|
|
1334
|
+
alt: I(i).imageAlt ?? "",
|
|
1335
|
+
style: Rn({ height: `${I(i).imageHeight}px` })
|
|
1336
|
+
}, null, 12, ai)) : (N(), C(P(f), { key: 1 }))], 16)) : w("", !0),
|
|
1337
|
+
I(Z)(o()) ? (N(), C(I(he), M(j({ key: 1 }, I(a)("kicker"))), {
|
|
1338
|
+
default: z(() => [(N(), C(P(o)))]),
|
|
1339
1339
|
_: 1
|
|
1340
|
-
}, 16)) :
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1340
|
+
}, 16)) : w("", !0),
|
|
1341
|
+
I(Z)(s()) ? (N(), T("div", M(j({ key: 2 }, I(a)("title"))), [(N(), C(P(s)))], 16)) : w("", !0),
|
|
1342
|
+
I(Z)(l()) ? (N(), T("div", M(j({ key: 3 }, I(a)("body"))), [(N(), C(P(l)))], 16)) : w("", !0),
|
|
1343
|
+
I(Z)(c()) ? (N(), T("div", M(j({ key: 4 }, I(a)("actions"))), [(N(), C(P(c)))], 16)) : w("", !0)
|
|
1344
1344
|
]),
|
|
1345
1345
|
_: 1
|
|
1346
1346
|
}, 16));
|
|
1347
1347
|
}
|
|
1348
|
-
}), { classes:
|
|
1348
|
+
}), { classes: ii });
|
|
1349
1349
|
//#endregion
|
|
1350
1350
|
//#region src/components/KpiCard/KpiCard.vars.ts
|
|
1351
|
-
function
|
|
1351
|
+
function si(e, t = !1) {
|
|
1352
1352
|
return e === void 0 || e === 0 || Number.isNaN(e) ? "flat" : e > 0 === t ? "down" : "up";
|
|
1353
1353
|
}
|
|
1354
|
-
var
|
|
1354
|
+
var ci = {
|
|
1355
1355
|
up: "var(--ds-success)",
|
|
1356
1356
|
down: "var(--ds-error)",
|
|
1357
1357
|
flat: "var(--ds-text-3)"
|
|
1358
|
-
},
|
|
1359
|
-
let i =
|
|
1358
|
+
}, li = yn((e, { delta: t, invertDelta: n, colorValue: r }) => {
|
|
1359
|
+
let i = si(t, n);
|
|
1360
1360
|
return { root: {
|
|
1361
|
-
"--kpi-delta-color":
|
|
1362
|
-
"--kpi-value-color": r && i !== "flat" ?
|
|
1361
|
+
"--kpi-delta-color": ci[i],
|
|
1362
|
+
"--kpi-value-color": r && i !== "flat" ? ci[i] : void 0
|
|
1363
1363
|
} };
|
|
1364
|
-
}),
|
|
1364
|
+
}), ui = {
|
|
1365
1365
|
root: "jc-KpiCard-root-12p58",
|
|
1366
1366
|
header: "jc-KpiCard-header-z6ndb",
|
|
1367
1367
|
label: "jc-KpiCard-label-1r25g",
|
|
@@ -1370,7 +1370,7 @@ var Qr = {
|
|
|
1370
1370
|
footer: "jc-KpiCard-footer-yebc4",
|
|
1371
1371
|
delta: "jc-KpiCard-delta-1qxtv",
|
|
1372
1372
|
chart: "jc-KpiCard-chart-1qxbr"
|
|
1373
|
-
},
|
|
1373
|
+
}, di = ["data-tone"], fi = { key: 1 }, pi = /* @__PURE__ */ O({
|
|
1374
1374
|
name: "KpiCard",
|
|
1375
1375
|
inheritAttrs: !1,
|
|
1376
1376
|
__name: "KpiCard",
|
|
@@ -1402,9 +1402,9 @@ var Qr = {
|
|
|
1402
1402
|
}
|
|
1403
1403
|
},
|
|
1404
1404
|
setup(e) {
|
|
1405
|
-
let t = e, n =
|
|
1405
|
+
let t = e, n = L(), r = R(), i = kn("KpiCard", {}, t), a = An({
|
|
1406
1406
|
name: "KpiCard",
|
|
1407
|
-
classes:
|
|
1407
|
+
classes: ui,
|
|
1408
1408
|
props: i,
|
|
1409
1409
|
get className() {
|
|
1410
1410
|
return n.class;
|
|
@@ -1424,33 +1424,33 @@ var Qr = {
|
|
|
1424
1424
|
get unstyled() {
|
|
1425
1425
|
return i.unstyled;
|
|
1426
1426
|
},
|
|
1427
|
-
varsResolver:
|
|
1427
|
+
varsResolver: li
|
|
1428
1428
|
}), o = () => Q(i.label, r.label), s = () => {
|
|
1429
1429
|
let e = Q(i.value, r.value);
|
|
1430
|
-
return typeof e == "number" ?
|
|
1431
|
-
}, c = () => Q(i.deltaLabel, r.deltaLabel), l = () => Q(i.icon, r.icon), u = () => Q(i.chart, r.chart), d = () =>
|
|
1432
|
-
return (e, t) => (
|
|
1433
|
-
...
|
|
1434
|
-
...
|
|
1430
|
+
return typeof e == "number" ? pe(e) : e;
|
|
1431
|
+
}, c = () => Q(i.deltaLabel, r.deltaLabel), l = () => Q(i.icon, r.icon), u = () => Q(i.chart, r.chart), d = () => si(i.delta, i.invertDelta), f = () => i.delta === void 0 || i.delta === 0 ? nr : i.delta > 0 ? Jn : Kn;
|
|
1432
|
+
return (e, t) => (N(), C(I(y), M(k({
|
|
1433
|
+
...I(n),
|
|
1434
|
+
...I(a)("root")
|
|
1435
1435
|
})), {
|
|
1436
1436
|
default: z(() => [
|
|
1437
|
-
|
|
1438
|
-
|
|
1437
|
+
E("div", M(k(I(a)("header"))), [E("span", M(k(I(a)("label"))), [(N(), C(P(o)))], 16), I(Z)(l()) ? (N(), T("span", M(j({ key: 0 }, I(a)("icon"))), [(N(), C(P(l)))], 16)) : w("", !0)], 16),
|
|
1438
|
+
I(i).loading ? (N(), C(I(Zt), {
|
|
1439
1439
|
key: 0,
|
|
1440
1440
|
height: 32,
|
|
1441
1441
|
width: "60%",
|
|
1442
1442
|
mt: 4
|
|
1443
|
-
})) : (
|
|
1444
|
-
(
|
|
1443
|
+
})) : (N(), T("div", M(j({ key: 1 }, I(a)("value"))), [(N(), C(P(s)))], 16)),
|
|
1444
|
+
(I(i).delta !== void 0 || I(Z)(c())) && !I(i).loading ? (N(), T("div", M(j({ key: 2 }, I(a)("footer"))), [I(i).delta === void 0 ? w("", !0) : (N(), T("span", j({ key: 0 }, I(a)("delta"), { "data-tone": d() }), [(N(), C(P(f()), {
|
|
1445
1445
|
size: 14,
|
|
1446
1446
|
stroke: "2.5"
|
|
1447
|
-
})),
|
|
1448
|
-
|
|
1447
|
+
})), Fn(" " + F(I(be)(I(i).delta, { signed: !0 })), 1)], 16, di)), I(Z)(c()) ? (N(), T("span", fi, [(N(), C(P(c)))])) : w("", !0)], 16)) : w("", !0),
|
|
1448
|
+
I(Z)(u()) ? (N(), T("div", M(j({ key: 3 }, I(a)("chart"))), [(N(), C(P(u)))], 16)) : w("", !0)
|
|
1449
1449
|
]),
|
|
1450
1450
|
_: 1
|
|
1451
1451
|
}, 16));
|
|
1452
1452
|
}
|
|
1453
|
-
}),
|
|
1453
|
+
}), mi = O({
|
|
1454
1454
|
name: "KpiGroup",
|
|
1455
1455
|
inheritAttrs: !1,
|
|
1456
1456
|
props: {
|
|
@@ -1476,192 +1476,244 @@ var Qr = {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
},
|
|
1478
1478
|
setup(e, { attrs: t, slots: n }) {
|
|
1479
|
-
return () =>
|
|
1479
|
+
return () => A(Xt, {
|
|
1480
1480
|
type: e.type,
|
|
1481
1481
|
cols: e.cols,
|
|
1482
1482
|
spacing: e.spacing,
|
|
1483
1483
|
...t
|
|
1484
1484
|
}, n);
|
|
1485
1485
|
}
|
|
1486
|
-
}),
|
|
1487
|
-
classes:
|
|
1488
|
-
varsResolver:
|
|
1489
|
-
}),
|
|
1486
|
+
}), hi = xn(pi, {
|
|
1487
|
+
classes: ui,
|
|
1488
|
+
varsResolver: li
|
|
1489
|
+
}), gi = yn((e, { iconSize: t }) => ({ root: { "--page-header-icon-size": t === void 0 ? void 0 : typeof t == "number" ? En(t) : t } })), _i = {
|
|
1490
|
+
root: "jc-PageHeader-root-13lz7",
|
|
1491
|
+
breadcrumbs: "jc-PageHeader-breadcrumbs-p3zii",
|
|
1492
|
+
header: "jc-PageHeader-header-1n95z",
|
|
1493
|
+
main: "jc-PageHeader-main-13lvp",
|
|
1494
|
+
icon: "jc-PageHeader-icon-13lt7",
|
|
1495
|
+
body: "jc-PageHeader-body-13loz",
|
|
1496
|
+
kicker: "jc-PageHeader-kicker-1oqjg",
|
|
1497
|
+
title: "jc-PageHeader-title-kfe3w",
|
|
1498
|
+
description: "jc-PageHeader-description-1wgzh",
|
|
1499
|
+
actions: "jc-PageHeader-actions-sr4fm"
|
|
1500
|
+
}, vi = xn(/* @__PURE__ */ O({
|
|
1490
1501
|
name: "PageHeader",
|
|
1491
1502
|
inheritAttrs: !1,
|
|
1503
|
+
__name: "PageHeader",
|
|
1492
1504
|
props: {
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
type: Array,
|
|
1505
|
+
classNames: { default: void 0 },
|
|
1506
|
+
styles: { default: void 0 },
|
|
1507
|
+
vars: { default: void 0 },
|
|
1508
|
+
unstyled: {
|
|
1509
|
+
type: Boolean,
|
|
1499
1510
|
default: void 0
|
|
1500
1511
|
},
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
},
|
|
1509
|
-
size: {
|
|
1510
|
-
type: String,
|
|
1511
|
-
default: "headline"
|
|
1512
|
-
}
|
|
1512
|
+
kicker: { default: void 0 },
|
|
1513
|
+
title: { default: void 0 },
|
|
1514
|
+
description: { default: void 0 },
|
|
1515
|
+
icon: { default: void 0 },
|
|
1516
|
+
iconSize: { default: void 0 },
|
|
1517
|
+
actions: { default: void 0 },
|
|
1518
|
+
breadcrumbs: { default: void 0 },
|
|
1519
|
+
linkComponent: { default: void 0 },
|
|
1520
|
+
size: { default: void 0 }
|
|
1513
1521
|
},
|
|
1514
|
-
setup(e
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
+
setup(e) {
|
|
1523
|
+
let t = e, n = R(), r = L(), i = kn("PageHeader", {
|
|
1524
|
+
linkComponent: "a",
|
|
1525
|
+
size: "headline"
|
|
1526
|
+
}, t), a = An({
|
|
1527
|
+
name: "PageHeader",
|
|
1528
|
+
classes: _i,
|
|
1529
|
+
props: i,
|
|
1530
|
+
get className() {
|
|
1531
|
+
return r.class;
|
|
1532
|
+
},
|
|
1533
|
+
get style() {
|
|
1534
|
+
return r.style;
|
|
1535
|
+
},
|
|
1536
|
+
get classNames() {
|
|
1537
|
+
return i.classNames;
|
|
1538
|
+
},
|
|
1539
|
+
get styles() {
|
|
1540
|
+
return i.styles;
|
|
1541
|
+
},
|
|
1542
|
+
get vars() {
|
|
1543
|
+
return i.vars;
|
|
1544
|
+
},
|
|
1545
|
+
get unstyled() {
|
|
1546
|
+
return i.unstyled;
|
|
1547
|
+
},
|
|
1548
|
+
varsResolver: gi
|
|
1549
|
+
}), o = (e) => e.node;
|
|
1550
|
+
o.props = ["node"];
|
|
1551
|
+
let s = S(() => i.linkComponent ?? "a"), c = S(() => Q(i.kicker, n.kicker)), l = S(() => x(i.title, n.title)), u = S(() => Q(i.description, n.description)), d = S(() => Q(i.icon, n.icon)), f = S(() => Q(i.actions, n.actions)), ee = S(() => {
|
|
1552
|
+
let { class: e, style: t, ...n } = r;
|
|
1553
|
+
return n;
|
|
1554
|
+
}), te = (e, t) => e.href ? A(Be, {
|
|
1555
|
+
key: t,
|
|
1556
|
+
component: s.value,
|
|
1557
|
+
href: e.href,
|
|
1558
|
+
...s.value !== "a" && { to: e.href },
|
|
1559
|
+
fz: "sm"
|
|
1560
|
+
}, () => x(e.label)) : A(y, {
|
|
1561
|
+
key: t,
|
|
1562
|
+
component: "span",
|
|
1563
|
+
c: "var(--ds-text-3)",
|
|
1564
|
+
fz: "sm"
|
|
1565
|
+
}, () => x(e.label));
|
|
1566
|
+
return (e, t) => (N(), C(I(y), M(k({
|
|
1567
|
+
...ee.value,
|
|
1568
|
+
...I(a)("root")
|
|
1569
|
+
})), {
|
|
1570
|
+
default: z(() => [I(i).breadcrumbs && I(i).breadcrumbs.length > 0 ? (N(), C(I(Ke), j({ key: 0 }, I(a)("breadcrumbs"), {
|
|
1522
1571
|
fz: "sm",
|
|
1523
|
-
|
|
1524
|
-
}
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
fz: "sm"
|
|
1535
|
-
}, () => C(e.label)))) : null, M(x, {
|
|
1536
|
-
justify: "space-between",
|
|
1537
|
-
align: "flex-end",
|
|
1538
|
-
gap: "md",
|
|
1539
|
-
wrap: "wrap"
|
|
1540
|
-
}, () => [M("div", { style: {
|
|
1541
|
-
flex: "1 1 320px",
|
|
1542
|
-
minWidth: 0
|
|
1543
|
-
} }, [
|
|
1544
|
-
r === void 0 ? null : M(y, null, () => r),
|
|
1545
|
-
e.size === "display" ? M(he, {
|
|
1572
|
+
"separator-margin": 6
|
|
1573
|
+
}), {
|
|
1574
|
+
default: z(() => [D(o, { node: I(i).breadcrumbs.map(te) }, null, 8, ["node"])]),
|
|
1575
|
+
_: 1
|
|
1576
|
+
}, 16)) : w("", !0), E("div", M(k(I(a)("header"))), [E("div", M(k(I(a)("main"))), [d.value === void 0 ? w("", !0) : (N(), T("div", j({ key: 0 }, I(a)("icon"), { "aria-hidden": "true" }), [D(o, { node: d.value }, null, 8, ["node"])], 16)), E("div", M(k(I(a)("body"))), [
|
|
1577
|
+
c.value === void 0 ? w("", !0) : (N(), C(I(he), M(j({ key: 0 }, I(a)("kicker"))), {
|
|
1578
|
+
default: z(() => [D(o, { node: c.value }, null, 8, ["node"])]),
|
|
1579
|
+
_: 1
|
|
1580
|
+
}, 16)),
|
|
1581
|
+
I(i).size === "display" ? (N(), C(I(we), j({
|
|
1582
|
+
key: 1,
|
|
1546
1583
|
component: "h1",
|
|
1547
1584
|
size: "lg",
|
|
1548
1585
|
fz: "var(--type-display-sm)",
|
|
1549
1586
|
lh: 1.15,
|
|
1550
1587
|
mt: 8
|
|
1551
|
-
}, ()
|
|
1588
|
+
}, I(a)("title")), {
|
|
1589
|
+
default: z(() => [D(o, { node: l.value }, null, 8, ["node"])]),
|
|
1590
|
+
_: 1
|
|
1591
|
+
}, 16)) : (N(), C(I(we), j({
|
|
1592
|
+
key: 2,
|
|
1552
1593
|
component: "h1",
|
|
1553
1594
|
size: "lg",
|
|
1554
|
-
mt:
|
|
1555
|
-
}, ()
|
|
1556
|
-
|
|
1595
|
+
mt: c.value === void 0 ? 0 : 8
|
|
1596
|
+
}, I(a)("title")), {
|
|
1597
|
+
default: z(() => [D(o, { node: l.value }, null, 8, ["node"])]),
|
|
1598
|
+
_: 1
|
|
1599
|
+
}, 16, ["mt"])),
|
|
1600
|
+
u.value === void 0 ? w("", !0) : (N(), C(I(ge), j({
|
|
1601
|
+
key: 3,
|
|
1557
1602
|
component: "div",
|
|
1558
1603
|
size: "lg",
|
|
1559
1604
|
c: "var(--ds-text-2)",
|
|
1560
1605
|
maw: 640,
|
|
1561
1606
|
mt: 8
|
|
1562
|
-
}, ()
|
|
1563
|
-
|
|
1564
|
-
|
|
1607
|
+
}, I(a)("description")), {
|
|
1608
|
+
default: z(() => [D(o, { node: u.value }, null, 8, ["node"])]),
|
|
1609
|
+
_: 1
|
|
1610
|
+
}, 16))
|
|
1611
|
+
], 16)], 16), f.value === void 0 ? w("", !0) : (N(), T("div", M(j({ key: 0 }, I(a)("actions"))), [D(o, { node: f.value }, null, 8, ["node"])], 16))], 16)]),
|
|
1612
|
+
_: 1
|
|
1613
|
+
}, 16));
|
|
1565
1614
|
}
|
|
1566
|
-
}),
|
|
1615
|
+
}), {
|
|
1616
|
+
classes: _i,
|
|
1617
|
+
varsResolver: gi
|
|
1618
|
+
}), yi = {
|
|
1567
1619
|
wrapper: "jc-DataTable-wrapper-1saie",
|
|
1568
1620
|
num: "jc-DataTable-num-1nq3v",
|
|
1569
1621
|
sortButton: "jc-DataTable-sortButton-z9h2e",
|
|
1570
1622
|
row: "jc-DataTable-row-1nq3y",
|
|
1571
1623
|
footer: "jc-DataTable-footer-gwddl"
|
|
1572
|
-
},
|
|
1573
|
-
function
|
|
1624
|
+
}, bi = (e) => e.id ?? e.key ?? "";
|
|
1625
|
+
function xi(e, t) {
|
|
1574
1626
|
return typeof e == "number" && typeof t == "number" ? e - t : String(e ?? "").localeCompare(String(t ?? ""), "pt-BR", {
|
|
1575
1627
|
numeric: !0,
|
|
1576
1628
|
sensitivity: "base"
|
|
1577
1629
|
});
|
|
1578
1630
|
}
|
|
1579
|
-
var
|
|
1580
|
-
let [i, a] =
|
|
1631
|
+
var Si = O((e, { attrs: t, slots: n, emit: r }) => {
|
|
1632
|
+
let [i, a] = ur({
|
|
1581
1633
|
value: () => e.sort,
|
|
1582
1634
|
defaultValue: e.initialSort ?? null,
|
|
1583
1635
|
onChange: (e) => {
|
|
1584
1636
|
r("update:sort", e), r("sort-change", e);
|
|
1585
1637
|
}
|
|
1586
|
-
}), o =
|
|
1638
|
+
}), o = zn(1), c = (e) => {
|
|
1587
1639
|
a(e), o.value = 1;
|
|
1588
|
-
},
|
|
1640
|
+
}, l = (e) => {
|
|
1589
1641
|
let t = i.value;
|
|
1590
|
-
!t || t.key !== e ?
|
|
1642
|
+
!t || t.key !== e ? c({
|
|
1591
1643
|
key: e,
|
|
1592
1644
|
direction: "asc"
|
|
1593
|
-
}) : t.direction === "asc" ?
|
|
1645
|
+
}) : t.direction === "asc" ? c({
|
|
1594
1646
|
key: e,
|
|
1595
1647
|
direction: "desc"
|
|
1596
|
-
}) :
|
|
1597
|
-
},
|
|
1648
|
+
}) : c(null);
|
|
1649
|
+
}, u = S(() => {
|
|
1598
1650
|
let t = i.value;
|
|
1599
1651
|
if (!t) return e.data;
|
|
1600
|
-
let n = e.columns.find((e) =>
|
|
1652
|
+
let n = e.columns.find((e) => bi(e) === t.key), r = n?.sortValue ?? ((e) => n?.key ? e[n.key] : void 0), a = [...e.data].sort((e, t) => xi(r(e), r(t)));
|
|
1601
1653
|
return t.direction === "desc" ? a.reverse() : a;
|
|
1602
|
-
}),
|
|
1654
|
+
}), d = Qr();
|
|
1603
1655
|
return () => {
|
|
1604
|
-
let { columns: a, pageSize:
|
|
1605
|
-
let t =
|
|
1606
|
-
return
|
|
1656
|
+
let { columns: a, pageSize: c, loading: f, plain: ee, striped: te, stickyHeader: ne, tableProps: re } = e, ie = e.loadingRows ?? 5, p = i.value, m = u.value.length, h = c ? Math.max(1, Math.ceil(m / c)) : 1, g = Math.min(o.value, h), ae = c ? u.value.slice((g - 1) * c, g * c) : u.value, _ = d("row-click"), oe = A(ln, null, () => A(un, null, () => a.map((e) => {
|
|
1657
|
+
let t = bi(e), r = p?.key === t, i = r ? p.direction === "asc" ? qn : Gn : Yn, a = x(e.header, n[`header-${t}`]);
|
|
1658
|
+
return A(cn, {
|
|
1607
1659
|
key: t,
|
|
1608
|
-
class: e.numeric ?
|
|
1660
|
+
class: e.numeric ? yi.num : void 0,
|
|
1609
1661
|
style: { width: typeof e.width == "number" ? `${e.width}px` : e.width },
|
|
1610
|
-
"aria-sort": r ?
|
|
1611
|
-
}, () => e.sortable ?
|
|
1662
|
+
"aria-sort": r ? p.direction === "asc" ? "ascending" : "descending" : void 0
|
|
1663
|
+
}, () => e.sortable ? A("button", {
|
|
1612
1664
|
type: "button",
|
|
1613
|
-
class:
|
|
1665
|
+
class: yi.sortButton,
|
|
1614
1666
|
"data-sorted": r || void 0,
|
|
1615
|
-
onClick: () =>
|
|
1616
|
-
}, [a,
|
|
1667
|
+
onClick: () => l(t)
|
|
1668
|
+
}, [a, A(i, {
|
|
1617
1669
|
size: 12,
|
|
1618
1670
|
stroke: "2.5",
|
|
1619
1671
|
opacity: r ? 1 : .5
|
|
1620
1672
|
})]) : a);
|
|
1621
|
-
}))),
|
|
1622
|
-
if (f)
|
|
1673
|
+
}))), se;
|
|
1674
|
+
if (f) se = Array.from({ length: ie }, (e, t) => A(un, { key: t }, () => a.map((e) => A(sn, { key: bi(e) }, () => A(Zt, {
|
|
1623
1675
|
height: 14,
|
|
1624
1676
|
width: e.numeric ? "50%" : "80%",
|
|
1625
1677
|
ml: e.numeric ? "auto" : 0
|
|
1626
1678
|
})))));
|
|
1627
|
-
else if (
|
|
1628
|
-
let t =
|
|
1629
|
-
|
|
1679
|
+
else if (ae.length === 0) {
|
|
1680
|
+
let t = x(e.empty, n.empty);
|
|
1681
|
+
se = A(un, null, () => A(sn, { colspan: a.length }, () => t ?? A(ut, {
|
|
1630
1682
|
py: "xl",
|
|
1631
1683
|
size: "sm",
|
|
1632
|
-
icon: () =>
|
|
1684
|
+
icon: () => A(Qn, { size: 22 }),
|
|
1633
1685
|
title: "Nenhum resultado",
|
|
1634
1686
|
description: "Não há dados para exibir com os filtros atuais."
|
|
1635
1687
|
})));
|
|
1636
|
-
} else
|
|
1688
|
+
} else se = ae.map((t, i) => A(un, {
|
|
1637
1689
|
key: e.rowKey ? e.rowKey(t, i) : i,
|
|
1638
|
-
class:
|
|
1639
|
-
"data-clickable":
|
|
1640
|
-
tabindex:
|
|
1641
|
-
onClick:
|
|
1642
|
-
onKeydown:
|
|
1690
|
+
class: yi.row,
|
|
1691
|
+
"data-clickable": _ ? !0 : void 0,
|
|
1692
|
+
tabindex: _ ? 0 : void 0,
|
|
1693
|
+
onClick: _ ? () => r("row-click", t, i) : void 0,
|
|
1694
|
+
onKeydown: _ ? (e) => {
|
|
1643
1695
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), r("row-click", t, i));
|
|
1644
1696
|
} : void 0
|
|
1645
1697
|
}, () => a.map((e) => {
|
|
1646
|
-
let r =
|
|
1698
|
+
let r = bi(e), a = n[`cell-${r}`], o = e.key ? t[e.key] : void 0, s = a ? a({
|
|
1647
1699
|
row: t,
|
|
1648
1700
|
index: i
|
|
1649
|
-
}) : e.render ? e.render(t, i) : e.numeric && typeof o == "number" ?
|
|
1650
|
-
return
|
|
1701
|
+
}) : e.render ? e.render(t, i) : e.numeric && typeof o == "number" ? pe(o, e.format) : o;
|
|
1702
|
+
return A(sn, {
|
|
1651
1703
|
key: r,
|
|
1652
|
-
class: e.numeric ?
|
|
1704
|
+
class: e.numeric ? yi.num : void 0
|
|
1653
1705
|
}, () => s);
|
|
1654
1706
|
})));
|
|
1655
|
-
return
|
|
1656
|
-
class:
|
|
1657
|
-
"data-plain":
|
|
1658
|
-
}, t), () => [
|
|
1659
|
-
striped:
|
|
1660
|
-
stickyHeader:
|
|
1661
|
-
...
|
|
1662
|
-
}, () => [oe,
|
|
1707
|
+
return A(y, j({
|
|
1708
|
+
class: yi.wrapper,
|
|
1709
|
+
"data-plain": ee || void 0
|
|
1710
|
+
}, t), () => [A(qt, { type: "auto" }, () => A(s, {
|
|
1711
|
+
striped: te,
|
|
1712
|
+
stickyHeader: ne,
|
|
1713
|
+
...re
|
|
1714
|
+
}, () => [oe, A(on, null, () => se)])), c && m > c ? A("div", { class: yi.footer }, [A("span", `${pe((g - 1) * c + 1)}–${pe(Math.min(g * c, m))} de ${pe(m)}`), A(Pt, {
|
|
1663
1715
|
size: "sm",
|
|
1664
|
-
total:
|
|
1716
|
+
total: h,
|
|
1665
1717
|
modelValue: g,
|
|
1666
1718
|
"onUpdate:modelValue": (e) => {
|
|
1667
1719
|
o.value = e;
|
|
@@ -1691,7 +1743,7 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1691
1743
|
"sort-change",
|
|
1692
1744
|
"row-click"
|
|
1693
1745
|
]
|
|
1694
|
-
}),
|
|
1746
|
+
}), Ci = O({
|
|
1695
1747
|
name: "ThemeToggle",
|
|
1696
1748
|
inheritAttrs: !1,
|
|
1697
1749
|
props: {
|
|
@@ -1717,17 +1769,17 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1717
1769
|
}
|
|
1718
1770
|
},
|
|
1719
1771
|
setup(e, { attrs: t }) {
|
|
1720
|
-
let { setColorScheme: n } =
|
|
1772
|
+
let { setColorScheme: n } = On(), r = Dn("light", { getInitialValueInEffect: !0 }), i = () => n(r.value === "dark" ? "light" : "dark");
|
|
1721
1773
|
return () => {
|
|
1722
|
-
let n = r.value === "dark" ?
|
|
1723
|
-
return e.as === "button" ?
|
|
1774
|
+
let n = r.value === "dark" ? ar : rr;
|
|
1775
|
+
return e.as === "button" ? A(Je, {
|
|
1724
1776
|
variant: e.variant ?? "outline",
|
|
1725
1777
|
color: e.color,
|
|
1726
1778
|
size: e.size ?? "sm",
|
|
1727
|
-
leftSection: () =>
|
|
1779
|
+
leftSection: () => A(n, { size: 16 }),
|
|
1728
1780
|
onClick: i,
|
|
1729
1781
|
...t
|
|
1730
|
-
}, () => e.label) :
|
|
1782
|
+
}, () => e.label) : A(Le, {
|
|
1731
1783
|
variant: e.variant ?? "subtle",
|
|
1732
1784
|
color: e.color,
|
|
1733
1785
|
size: e.size ?? "lg",
|
|
@@ -1735,7 +1787,7 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1735
1787
|
"aria-label": e.label,
|
|
1736
1788
|
title: e.label,
|
|
1737
1789
|
...t
|
|
1738
|
-
}, () =>
|
|
1790
|
+
}, () => A(n, { size: 18 }));
|
|
1739
1791
|
};
|
|
1740
1792
|
}
|
|
1741
1793
|
}), $ = {
|
|
@@ -1746,7 +1798,7 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1746
1798
|
hex: "jc-TokenSwatch-hex-1kiwm",
|
|
1747
1799
|
ramp: "jc-TokenSwatch-ramp-1bjk0",
|
|
1748
1800
|
step: "jc-TokenSwatch-step-1bjl1"
|
|
1749
|
-
},
|
|
1801
|
+
}, wi = O({
|
|
1750
1802
|
name: "TokenSwatch",
|
|
1751
1803
|
inheritAttrs: !1,
|
|
1752
1804
|
props: {
|
|
@@ -1768,27 +1820,27 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1768
1820
|
}
|
|
1769
1821
|
},
|
|
1770
1822
|
setup(e, { attrs: t }) {
|
|
1771
|
-
let
|
|
1823
|
+
let n = cr({ timeout: 1200 });
|
|
1772
1824
|
return () => {
|
|
1773
|
-
let
|
|
1774
|
-
return
|
|
1775
|
-
label:
|
|
1825
|
+
let r = e.copy === "cssVar" && e.cssVar ? `var(${e.cssVar})` : e.value;
|
|
1826
|
+
return A(p, {
|
|
1827
|
+
label: n.copied.value ? "Copiado!" : `Copiar ${r}`,
|
|
1776
1828
|
withArrow: !0
|
|
1777
|
-
}, () =>
|
|
1829
|
+
}, () => A("button", j({
|
|
1778
1830
|
type: "button",
|
|
1779
1831
|
class: $.swatch,
|
|
1780
|
-
onClick: () =>
|
|
1781
|
-
}, t), [
|
|
1832
|
+
onClick: () => n.copy(r)
|
|
1833
|
+
}, t), [A("div", {
|
|
1782
1834
|
class: $.color,
|
|
1783
1835
|
style: { background: e.value }
|
|
1784
|
-
}),
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
e.cssVar ?
|
|
1836
|
+
}), A("div", { class: $.info }, [
|
|
1837
|
+
A("div", { class: $.name }, e.name),
|
|
1838
|
+
A("div", { class: $.hex }, e.value),
|
|
1839
|
+
e.cssVar ? A("div", { class: $.hex }, e.cssVar) : null
|
|
1788
1840
|
])]));
|
|
1789
1841
|
};
|
|
1790
1842
|
}
|
|
1791
|
-
}),
|
|
1843
|
+
}), Ti = O({
|
|
1792
1844
|
name: "ColorRamp",
|
|
1793
1845
|
inheritAttrs: !1,
|
|
1794
1846
|
props: { steps: {
|
|
@@ -1796,26 +1848,26 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1796
1848
|
required: !0
|
|
1797
1849
|
} },
|
|
1798
1850
|
setup(e, { attrs: t }) {
|
|
1799
|
-
let
|
|
1800
|
-
return () =>
|
|
1851
|
+
let n = cr({ timeout: 1200 });
|
|
1852
|
+
return () => A("div", j({ class: $.ramp }, t), e.steps.map((e) => A(p, {
|
|
1801
1853
|
key: e.label,
|
|
1802
|
-
label:
|
|
1854
|
+
label: n.copied.value ? "Copiado!" : e.value,
|
|
1803
1855
|
withArrow: !0
|
|
1804
|
-
}, () =>
|
|
1856
|
+
}, () => A("button", {
|
|
1805
1857
|
type: "button",
|
|
1806
1858
|
class: $.step,
|
|
1807
1859
|
style: {
|
|
1808
1860
|
background: e.value,
|
|
1809
|
-
color:
|
|
1861
|
+
color: wn(e.value) > .3 ? "var(--dc-obsidian)" : "#fff"
|
|
1810
1862
|
},
|
|
1811
|
-
onClick: () =>
|
|
1863
|
+
onClick: () => n.copy(e.value)
|
|
1812
1864
|
}, `${e.label}${e.derived ? "*" : ""}`))));
|
|
1813
1865
|
}
|
|
1814
|
-
}),
|
|
1866
|
+
}), Ei = {
|
|
1815
1867
|
sm: "var(--type-subheadline-lg)",
|
|
1816
1868
|
md: "var(--type-headline-sm)",
|
|
1817
1869
|
lg: "var(--type-headline-lg)"
|
|
1818
|
-
},
|
|
1870
|
+
}, Di = O({
|
|
1819
1871
|
name: "PriceTag",
|
|
1820
1872
|
inheritAttrs: !1,
|
|
1821
1873
|
props: {
|
|
@@ -1847,43 +1899,43 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1847
1899
|
setup(e, { attrs: t }) {
|
|
1848
1900
|
return () => {
|
|
1849
1901
|
let { value: n, oldValue: r, installments: i, pixDiscount: a, unit: o, size: s } = e;
|
|
1850
|
-
return
|
|
1851
|
-
r !== void 0 && r > n ?
|
|
1902
|
+
return A(y, t, () => [
|
|
1903
|
+
r !== void 0 && r > n ? A(b, {
|
|
1852
1904
|
fz: "xs",
|
|
1853
1905
|
c: "var(--ds-text-3)",
|
|
1854
1906
|
td: "line-through",
|
|
1855
|
-
"aria-label": `Preço anterior ${
|
|
1856
|
-
}, () =>
|
|
1857
|
-
|
|
1907
|
+
"aria-label": `Preço anterior ${xe(r)}`
|
|
1908
|
+
}, () => xe(r)) : null,
|
|
1909
|
+
A(pt, {
|
|
1858
1910
|
gap: 4,
|
|
1859
1911
|
align: "baseline",
|
|
1860
1912
|
wrap: "nowrap"
|
|
1861
|
-
}, () => [
|
|
1913
|
+
}, () => [A(b, {
|
|
1862
1914
|
component: "span",
|
|
1863
|
-
fz:
|
|
1915
|
+
fz: Ei[s],
|
|
1864
1916
|
fw: 700,
|
|
1865
1917
|
lh: 1.2,
|
|
1866
1918
|
c: "var(--ds-primary)",
|
|
1867
1919
|
style: { fontVariantNumeric: "tabular-nums" }
|
|
1868
|
-
}, () =>
|
|
1920
|
+
}, () => xe(n)), o ? A(b, {
|
|
1869
1921
|
component: "span",
|
|
1870
1922
|
fz: "xs",
|
|
1871
1923
|
c: "var(--ds-text-3)",
|
|
1872
1924
|
fw: 500
|
|
1873
1925
|
}, () => o) : null]),
|
|
1874
|
-
a !== void 0 && a > 0 ?
|
|
1926
|
+
a !== void 0 && a > 0 ? A(b, {
|
|
1875
1927
|
fz: "xs",
|
|
1876
1928
|
fw: 600,
|
|
1877
1929
|
c: "var(--ds-tag-success-color)"
|
|
1878
|
-
}, () => `${
|
|
1879
|
-
i && i.count > 1 ?
|
|
1930
|
+
}, () => `${xe(n * (1 - a / 100))} no Pix (${a}% off)`) : null,
|
|
1931
|
+
i && i.count > 1 ? A(b, {
|
|
1880
1932
|
fz: "xs",
|
|
1881
1933
|
c: "var(--ds-text-2)"
|
|
1882
|
-
}, () => `ou ${i.count}x de ${
|
|
1934
|
+
}, () => `ou ${i.count}x de ${xe(n / i.count)}${i.interestFree === !1 ? "" : " sem juros"}`) : null
|
|
1883
1935
|
]);
|
|
1884
1936
|
};
|
|
1885
1937
|
}
|
|
1886
|
-
}),
|
|
1938
|
+
}), Oi = {
|
|
1887
1939
|
root: "jc-ProductCard-root-mvthw",
|
|
1888
1940
|
media: "jc-ProductCard-media-1y1gb",
|
|
1889
1941
|
badges: "jc-ProductCard-badges-z1zie",
|
|
@@ -1892,7 +1944,7 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1892
1944
|
name: "jc-ProductCard-name-mvqni",
|
|
1893
1945
|
price: "jc-ProductCard-price-1y3c4",
|
|
1894
1946
|
action: "jc-ProductCard-action-ymbqp"
|
|
1895
|
-
},
|
|
1947
|
+
}, ki = ["src", "alt"], Ai = xn(/* @__PURE__ */ O({
|
|
1896
1948
|
name: "ProductCard",
|
|
1897
1949
|
inheritAttrs: !1,
|
|
1898
1950
|
__name: "ProductCard",
|
|
@@ -1930,14 +1982,14 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1930
1982
|
},
|
|
1931
1983
|
emits: ["update:favorite", "action"],
|
|
1932
1984
|
setup(e, { emit: t }) {
|
|
1933
|
-
let n = e, r = t, i =
|
|
1985
|
+
let n = e, r = t, i = L(), a = R(), o = Qr(), s = kn("ProductCard", {
|
|
1934
1986
|
showDiscount: !0,
|
|
1935
1987
|
actionLabel: "Comprar",
|
|
1936
1988
|
imageRatio: 1,
|
|
1937
1989
|
linkComponent: "a"
|
|
1938
|
-
}, n), c =
|
|
1990
|
+
}, n), c = An({
|
|
1939
1991
|
name: "ProductCard",
|
|
1940
|
-
classes:
|
|
1992
|
+
classes: Oi,
|
|
1941
1993
|
props: s,
|
|
1942
1994
|
get className() {
|
|
1943
1995
|
return i.class;
|
|
@@ -1957,44 +2009,44 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
1957
2009
|
get unstyled() {
|
|
1958
2010
|
return s.unstyled;
|
|
1959
2011
|
}
|
|
1960
|
-
}), l = () => s.oldPrice && s.oldPrice > s.price ? Math.round((1 - s.price / s.oldPrice) * 100) : 0,
|
|
2012
|
+
}), l = () => s.oldPrice && s.oldPrice > s.price ? Math.round((1 - s.price / s.oldPrice) * 100) : 0, u = () => s.favorite !== void 0 || o("update:favorite"), f = () => o("action"), ee = () => {
|
|
1961
2013
|
let e = s.linkComponent ?? "a";
|
|
1962
2014
|
return s.href ? e === "a" ? { href: s.href } : {
|
|
1963
2015
|
to: s.href,
|
|
1964
2016
|
href: s.href
|
|
1965
2017
|
} : {};
|
|
1966
|
-
},
|
|
1967
|
-
return (e, t) => (
|
|
1968
|
-
...
|
|
1969
|
-
...
|
|
1970
|
-
}, { mod: [{ interactive: !!(
|
|
2018
|
+
}, te = () => s.href ? s.linkComponent ?? "a" : "div", ne = () => [...(s.badges ?? []).map((e) => x(e)), a.badges?.()];
|
|
2019
|
+
return (e, t) => (N(), C(I(d), j({
|
|
2020
|
+
...I(i),
|
|
2021
|
+
...I(c)("root")
|
|
2022
|
+
}, { mod: [{ interactive: !!(I(s).href || f()) }, I(i).mod] }), {
|
|
1971
2023
|
default: z(() => [
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
src:
|
|
1975
|
-
alt:
|
|
2024
|
+
E("div", M(k(I(c)("media", { style: { "--product-ratio": String(I(s).imageRatio) } }))), [
|
|
2025
|
+
E("img", {
|
|
2026
|
+
src: I(s).image,
|
|
2027
|
+
alt: I(s).name,
|
|
1976
2028
|
loading: "lazy"
|
|
1977
|
-
}, null, 8,
|
|
1978
|
-
|
|
2029
|
+
}, null, 8, ki),
|
|
2030
|
+
E("div", M(k(I(c)("badges"))), [I(s).showDiscount && l() > 0 ? (N(), C(I(Zr), {
|
|
1979
2031
|
key: 0,
|
|
1980
2032
|
tone: "error",
|
|
1981
2033
|
variant: "filled"
|
|
1982
2034
|
}, {
|
|
1983
|
-
default: z(() => [
|
|
2035
|
+
default: z(() => [Fn("-" + F(l()) + "%", 1)]),
|
|
1984
2036
|
_: 1
|
|
1985
|
-
})) :
|
|
1986
|
-
|
|
2037
|
+
})) : w("", !0), (N(), C(P(ne)))], 16),
|
|
2038
|
+
u() ? (N(), C(I(Le), j({ key: 0 }, I(c)("favorite"), {
|
|
1987
2039
|
variant: "subtle",
|
|
1988
|
-
color:
|
|
2040
|
+
color: I(s).favorite ? "danger" : "obsidian",
|
|
1989
2041
|
radius: "xl",
|
|
1990
|
-
"aria-label":
|
|
1991
|
-
"aria-pressed": !!
|
|
1992
|
-
onClick: t[0] ||= (e) => r("update:favorite", !
|
|
2042
|
+
"aria-label": I(s).favorite ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
2043
|
+
"aria-pressed": !!I(s).favorite,
|
|
2044
|
+
onClick: t[0] ||= (e) => r("update:favorite", !I(s).favorite)
|
|
1993
2045
|
}), {
|
|
1994
|
-
default: z(() => [
|
|
2046
|
+
default: z(() => [I(s).favorite ? (N(), C(I(er), {
|
|
1995
2047
|
key: 0,
|
|
1996
2048
|
size: 18
|
|
1997
|
-
})) : (
|
|
2049
|
+
})) : (N(), C(I($n), {
|
|
1998
2050
|
key: 1,
|
|
1999
2051
|
size: 18
|
|
2000
2052
|
}))]),
|
|
@@ -2003,43 +2055,43 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2003
2055
|
"color",
|
|
2004
2056
|
"aria-label",
|
|
2005
2057
|
"aria-pressed"
|
|
2006
|
-
])) :
|
|
2058
|
+
])) : w("", !0)
|
|
2007
2059
|
], 16),
|
|
2008
|
-
|
|
2009
|
-
(
|
|
2010
|
-
...
|
|
2011
|
-
...
|
|
2060
|
+
I(s).category ? (N(), T("div", M(j({ key: 0 }, I(c)("category"))), F(I(s).category), 17)) : w("", !0),
|
|
2061
|
+
(N(), C(P(te()), M(k({
|
|
2062
|
+
...ee(),
|
|
2063
|
+
...I(c)("name")
|
|
2012
2064
|
})), {
|
|
2013
|
-
default: z(() => [
|
|
2065
|
+
default: z(() => [Fn(F(I(s).name), 1)]),
|
|
2014
2066
|
_: 1
|
|
2015
2067
|
}, 16)),
|
|
2016
|
-
|
|
2068
|
+
I(s).rating === void 0 ? w("", !0) : (N(), C(I(pt), {
|
|
2017
2069
|
key: 1,
|
|
2018
2070
|
gap: 6,
|
|
2019
2071
|
mb: "xs"
|
|
2020
2072
|
}, {
|
|
2021
|
-
default: z(() => [
|
|
2022
|
-
"model-value":
|
|
2073
|
+
default: z(() => [D(I(Wt), {
|
|
2074
|
+
"model-value": I(s).rating,
|
|
2023
2075
|
fractions: 2,
|
|
2024
2076
|
"read-only": "",
|
|
2025
2077
|
size: "xs",
|
|
2026
2078
|
color: "electric.4"
|
|
2027
|
-
}, null, 8, ["model-value"]),
|
|
2079
|
+
}, null, 8, ["model-value"]), I(s).reviews === void 0 ? w("", !0) : (N(), C(I(b), {
|
|
2028
2080
|
key: 0,
|
|
2029
2081
|
fz: "xs",
|
|
2030
2082
|
c: "var(--ds-text-3)"
|
|
2031
2083
|
}, {
|
|
2032
|
-
default: z(() => [
|
|
2084
|
+
default: z(() => [Fn("(" + F(I(s).reviews) + ")", 1)]),
|
|
2033
2085
|
_: 1
|
|
2034
2086
|
}))]),
|
|
2035
2087
|
_: 1
|
|
2036
2088
|
})),
|
|
2037
|
-
|
|
2038
|
-
value:
|
|
2039
|
-
"old-value":
|
|
2040
|
-
installments:
|
|
2041
|
-
"pix-discount":
|
|
2042
|
-
unit:
|
|
2089
|
+
D(I(Di), j(I(c)("price"), {
|
|
2090
|
+
value: I(s).price,
|
|
2091
|
+
"old-value": I(s).oldPrice,
|
|
2092
|
+
installments: I(s).installments,
|
|
2093
|
+
"pix-discount": I(s).pixDiscount,
|
|
2094
|
+
unit: I(s).unit
|
|
2043
2095
|
}), null, 16, [
|
|
2044
2096
|
"value",
|
|
2045
2097
|
"old-value",
|
|
@@ -2047,19 +2099,19 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2047
2099
|
"pix-discount",
|
|
2048
2100
|
"unit"
|
|
2049
2101
|
]),
|
|
2050
|
-
f() ? (
|
|
2102
|
+
f() ? (N(), C(I(Je), j({ key: 2 }, I(c)("action"), {
|
|
2051
2103
|
"full-width": "",
|
|
2052
2104
|
onClick: t[1] ||= (e) => r("action", e)
|
|
2053
2105
|
}), {
|
|
2054
|
-
leftSection: z(() => [
|
|
2055
|
-
default: z(() => [
|
|
2106
|
+
leftSection: z(() => [D(I(ir), { size: 18 })]),
|
|
2107
|
+
default: z(() => [Fn(" " + F(I(s).actionLabel), 1)]),
|
|
2056
2108
|
_: 1
|
|
2057
|
-
}, 16)) :
|
|
2109
|
+
}, 16)) : w("", !0)
|
|
2058
2110
|
]),
|
|
2059
2111
|
_: 1
|
|
2060
2112
|
}, 16, ["mod"]));
|
|
2061
2113
|
}
|
|
2062
|
-
}), { classes:
|
|
2114
|
+
}), { classes: Oi }), ji = O({
|
|
2063
2115
|
name: "CouponCode",
|
|
2064
2116
|
inheritAttrs: !1,
|
|
2065
2117
|
props: {
|
|
@@ -2067,7 +2119,7 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2067
2119
|
type: String,
|
|
2068
2120
|
required: !0
|
|
2069
2121
|
},
|
|
2070
|
-
description:
|
|
2122
|
+
description: $r,
|
|
2071
2123
|
copyLabel: {
|
|
2072
2124
|
type: String,
|
|
2073
2125
|
default: "Copiar"
|
|
@@ -2079,10 +2131,10 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2079
2131
|
},
|
|
2080
2132
|
emits: { copy: (e) => !0 },
|
|
2081
2133
|
setup(e, { attrs: t, slots: n, emit: r }) {
|
|
2082
|
-
let i =
|
|
2134
|
+
let i = cr({ timeout: 1600 });
|
|
2083
2135
|
return () => {
|
|
2084
2136
|
let a = i.copied.value, o = Q(e.description, n.description);
|
|
2085
|
-
return
|
|
2137
|
+
return A(y, {
|
|
2086
2138
|
p: "sm",
|
|
2087
2139
|
style: {
|
|
2088
2140
|
border: "2px dashed var(--ds-primary)",
|
|
@@ -2090,48 +2142,50 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2090
2142
|
background: "var(--ds-primary-soft)"
|
|
2091
2143
|
},
|
|
2092
2144
|
...t
|
|
2093
|
-
}, () =>
|
|
2145
|
+
}, () => A(pt, {
|
|
2094
2146
|
justify: "space-between",
|
|
2095
2147
|
gap: "sm",
|
|
2096
2148
|
wrap: "nowrap"
|
|
2097
|
-
}, () => [
|
|
2149
|
+
}, () => [A(pt, {
|
|
2098
2150
|
gap: "sm",
|
|
2099
2151
|
wrap: "nowrap",
|
|
2100
2152
|
style: { minWidth: 0 }
|
|
2101
|
-
}, () => [
|
|
2153
|
+
}, () => [A(or, {
|
|
2102
2154
|
size: 22,
|
|
2103
2155
|
color: "var(--ds-primary)",
|
|
2104
2156
|
style: { flexShrink: 0 }
|
|
2105
|
-
}),
|
|
2157
|
+
}), A("div", { style: { minWidth: 0 } }, [o === void 0 ? null : A(b, {
|
|
2106
2158
|
fz: "xs",
|
|
2107
2159
|
c: "var(--ds-text-2)",
|
|
2108
2160
|
fw: 500
|
|
2109
|
-
}, () => o),
|
|
2161
|
+
}, () => o), A(b, {
|
|
2110
2162
|
fw: 700,
|
|
2111
2163
|
fz: "lg",
|
|
2112
2164
|
lts: "0.08em",
|
|
2113
2165
|
c: "var(--ds-primary)",
|
|
2114
2166
|
ff: "monospace"
|
|
2115
|
-
}, () => e.code)])]),
|
|
2167
|
+
}, () => e.code)])]), A(Je, {
|
|
2116
2168
|
size: "sm",
|
|
2117
2169
|
variant: a ? "filled" : "outline",
|
|
2118
2170
|
color: a ? "evergreen" : void 0,
|
|
2119
|
-
leftSection: () =>
|
|
2171
|
+
leftSection: () => A(a ? Xn : Zn, { size: 16 }),
|
|
2120
2172
|
onClick: () => {
|
|
2121
2173
|
i.copy(e.code), r("copy", e.code);
|
|
2122
2174
|
}
|
|
2123
2175
|
}, () => a ? e.copiedLabel : e.copyLabel)]));
|
|
2124
2176
|
};
|
|
2125
2177
|
}
|
|
2126
|
-
}),
|
|
2178
|
+
}), Mi = {
|
|
2127
2179
|
root: "jc-TopNav-root-juvro",
|
|
2128
2180
|
brand: "jc-TopNav-brand-1b3pb",
|
|
2129
2181
|
links: "jc-TopNav-links-1b91r",
|
|
2130
2182
|
link: "jc-TopNav-link-jurt9",
|
|
2183
|
+
linkSection: "jc-TopNav-linkSection-tut08",
|
|
2184
|
+
linkLabel: "jc-TopNav-linkLabel-4stdx",
|
|
2131
2185
|
right: "jc-TopNav-right-1bcce",
|
|
2132
2186
|
burger: "jc-TopNav-burger-13mhl",
|
|
2133
2187
|
mobileLinks: "jc-TopNav-mobileLinks-90417"
|
|
2134
|
-
},
|
|
2188
|
+
}, Ni = xn(/* @__PURE__ */ O({
|
|
2135
2189
|
name: "TopNav",
|
|
2136
2190
|
inheritAttrs: !1,
|
|
2137
2191
|
__name: "TopNav",
|
|
@@ -2154,8 +2208,8 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2154
2208
|
}
|
|
2155
2209
|
},
|
|
2156
2210
|
setup(e) {
|
|
2157
|
-
let t = e, n =
|
|
2158
|
-
brand: () =>
|
|
2211
|
+
let t = e, n = R(), r = L(), i = kn("TopNav", {
|
|
2212
|
+
brand: () => A(je, {
|
|
2159
2213
|
variant: "dark",
|
|
2160
2214
|
size: 28
|
|
2161
2215
|
}),
|
|
@@ -2163,9 +2217,9 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2163
2217
|
links: [],
|
|
2164
2218
|
linkComponent: "a",
|
|
2165
2219
|
collapseOnMobile: !0
|
|
2166
|
-
}, t), [a, { toggle: o, close: s }] =
|
|
2220
|
+
}, t), [a, { toggle: o, close: s }] = lr(!1), c = An({
|
|
2167
2221
|
name: "TopNav",
|
|
2168
|
-
classes:
|
|
2222
|
+
classes: Mi,
|
|
2169
2223
|
props: i,
|
|
2170
2224
|
get className() {
|
|
2171
2225
|
return r.class;
|
|
@@ -2187,53 +2241,68 @@ var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
|
2187
2241
|
}
|
|
2188
2242
|
}), l = (e) => e.node;
|
|
2189
2243
|
l.props = ["node"];
|
|
2190
|
-
let u =
|
|
2244
|
+
let u = S(() => i.linkComponent ?? "a"), d = (e) => u.value === "a" ? { href: e } : {
|
|
2191
2245
|
to: e,
|
|
2192
2246
|
href: e
|
|
2193
|
-
}, f = (e, t) => typeof e == "string" ? t : { default: () => t },
|
|
2194
|
-
let r = !t.href, i = r ? "button" : u.value, a = r ? {
|
|
2195
|
-
|
|
2247
|
+
}, f = (e, t) => typeof e == "string" ? t : { default: () => t }, ee = (e) => (i.links ?? []).map((t, n) => {
|
|
2248
|
+
let r = !t.href || t.disabled, i = r ? "button" : u.value, a = r ? {
|
|
2249
|
+
type: "button",
|
|
2250
|
+
disabled: t.disabled || void 0
|
|
2251
|
+
} : d(t.href), o = t.label !== void 0 && t.label !== null && t.label !== "", s = t.leftSection == null && t.rightSection == null ? x(t.label) : [
|
|
2252
|
+
t.leftSection == null ? null : A("span", {
|
|
2253
|
+
...c("linkSection"),
|
|
2254
|
+
"data-position": "left"
|
|
2255
|
+
}, [x(t.leftSection)]),
|
|
2256
|
+
o ? A("span", c("linkLabel"), [x(t.label)]) : null,
|
|
2257
|
+
t.rightSection == null ? null : A("span", {
|
|
2258
|
+
...c("linkSection"),
|
|
2259
|
+
"data-position": "right"
|
|
2260
|
+
}, [x(t.rightSection)])
|
|
2261
|
+
];
|
|
2262
|
+
return A(i, {
|
|
2196
2263
|
key: n,
|
|
2197
2264
|
...a,
|
|
2198
2265
|
...c("link"),
|
|
2199
2266
|
"data-active": t.active || void 0,
|
|
2267
|
+
"data-disabled": t.disabled || void 0,
|
|
2200
2268
|
"aria-current": t.active ? "page" : void 0,
|
|
2269
|
+
"aria-label": t["aria-label"],
|
|
2201
2270
|
onClick: (n) => {
|
|
2202
|
-
t.onClick?.(n), e?.();
|
|
2271
|
+
t.disabled || (t.onClick?.(n), e?.());
|
|
2203
2272
|
}
|
|
2204
|
-
}, f(i,
|
|
2205
|
-
}),
|
|
2206
|
-
return (e, t) => (
|
|
2207
|
-
...
|
|
2208
|
-
...
|
|
2209
|
-
}, { mod:
|
|
2273
|
+
}, f(i, s));
|
|
2274
|
+
}), te = S(() => x(i.brand, n.brand)), ne = S(() => x(i.rightSection, n.rightSection)), re = S(() => i.brandHref === null ? "span" : u.value), ie = S(() => i.brandHref === null ? {} : d(i.brandHref ?? "/")), p = S(() => !!i.collapseOnMobile && (i.links ?? []).length > 0), m = S(() => [{ collapse: i.collapseOnMobile }, r.mod]);
|
|
2275
|
+
return (e, t) => (N(), T("header", null, [D(I(y), j({
|
|
2276
|
+
...I(r),
|
|
2277
|
+
...I(c)("root")
|
|
2278
|
+
}, { mod: m.value }), {
|
|
2210
2279
|
default: z(() => [
|
|
2211
|
-
(
|
|
2212
|
-
...
|
|
2213
|
-
...
|
|
2280
|
+
(N(), C(P(re.value), M(k({
|
|
2281
|
+
...ie.value,
|
|
2282
|
+
...I(c)("brand")
|
|
2214
2283
|
})), {
|
|
2215
|
-
default: z(() => [
|
|
2284
|
+
default: z(() => [D(l, { node: te.value }, null, 8, ["node"])]),
|
|
2216
2285
|
_: 1
|
|
2217
2286
|
}, 16)),
|
|
2218
|
-
|
|
2219
|
-
|
|
2287
|
+
E("nav", j(I(c)("links"), { "aria-label": "Principal" }), [D(l, { node: ee() }, null, 8, ["node"])], 16),
|
|
2288
|
+
E("div", M(k(I(c)("right"))), [D(l, { node: ne.value }, null, 8, ["node"]), p.value ? (N(), C(I(qe), j({
|
|
2220
2289
|
key: 0,
|
|
2221
|
-
opened:
|
|
2290
|
+
opened: I(a),
|
|
2222
2291
|
size: "sm",
|
|
2223
2292
|
"aria-label": "Abrir menu"
|
|
2224
|
-
},
|
|
2293
|
+
}, I(c)("burger"), { onClick: I(o) }), null, 16, ["opened", "onClick"])) : w("", !0)], 16)
|
|
2225
2294
|
]),
|
|
2226
2295
|
_: 1
|
|
2227
|
-
}, 16, ["mod"]),
|
|
2296
|
+
}, 16, ["mod"]), p.value ? (N(), C(I(rt), {
|
|
2228
2297
|
key: 0,
|
|
2229
|
-
expanded:
|
|
2298
|
+
expanded: I(a)
|
|
2230
2299
|
}, {
|
|
2231
|
-
default: z(() => [
|
|
2300
|
+
default: z(() => [E("nav", j(I(c)("mobileLinks"), { "aria-label": "Principal (mobile)" }), [D(l, { node: ee(I(s)) }, null, 8, ["node"])], 16)]),
|
|
2232
2301
|
_: 1
|
|
2233
|
-
}, 8, ["expanded"])) :
|
|
2302
|
+
}, 8, ["expanded"])) : w("", !0)]));
|
|
2234
2303
|
}
|
|
2235
|
-
}), { classes:
|
|
2304
|
+
}), { classes: Mi });
|
|
2236
2305
|
//#endregion
|
|
2237
|
-
export {
|
|
2306
|
+
export { re as Autocomplete, Wr as COLOR_SCHEME_STORAGE_KEY, d as Card, te as Cascader, c as CheckboxIndicator, Ne as Collaborator, Ti as ColorRamp, t as Combobox, oi as ContentCard, ji as CouponCode, Si as DataTable, me as Disclaimer, ve as Display, f as FileInput, ne as FloatingWindow, ke as GreekFrame, we as Headline, je as JcLogo, De as JcLogoAlt, Jr as JcProvider, he as Kicker, hi as KpiCard, mi as KpiGroup, Ce as LOCALE, gn as MantineTransition, r as MultiSelect, l as NativeSelect, ie as NumberFormatter, i as NumberInput, vi as PageHeader, a as PillsInput, Di as PriceTag, Ai as ProductCard, ri as PromoBanner, ee as RollingNumber, u as Select, Te as SpartanHelmet, ge as Subheadline, s as Table, Zr as Tag, o as TagsInput, Ci as ThemeToggle, e as Timeline, wi as TokenSwatch, p as Tooltip, Ni as TopNav, m as TreeSelect, Ae as altLogoPaths, Me as collaboratorPaths, ye as formatCompact, xe as formatCurrency, _e as formatDate, pe as formatNumber, be as formatPercent, Se as formatTime, si as getDeltaTone, Ee as greekFramePaths, fe as jcColors, Ur as jcCssVariablesResolver, Ir as jcTheme, fr as jcVariantColorResolver, Oe as logoPaths, Pe as spartanPaths, ae as tokens, n as withThemeDefaults };
|
|
2238
2307
|
|
|
2239
2308
|
//# sourceMappingURL=index.js.map
|