@jcdecor/vue 0.1.0
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 +68 -0
- package/dist/brand/Brand.d.ts +83 -0
- package/dist/brand/index.d.ts +2 -0
- package/dist/brand/paths.d.ts +43 -0
- package/dist/brand-CeSffe5P.js +320 -0
- package/dist/brand-CeSffe5P.js.map +1 -0
- package/dist/brand.d.ts +1 -0
- package/dist/brand.js +2 -0
- package/dist/charts/ChartCard.d.ts +32 -0
- package/dist/charts/charts.d.ts +124 -0
- package/dist/charts/echartsTheme.d.ts +19 -0
- package/dist/charts/index.d.ts +8 -0
- package/dist/charts/palette.d.ts +59 -0
- package/dist/charts.d.ts +1 -0
- package/dist/charts.js +473 -0
- package/dist/charts.js.map +1 -0
- package/dist/chat/ChatComposer.d.ts +34 -0
- package/dist/chat/ChatLayout.d.ts +53 -0
- package/dist/chat/ChatMessage.d.ts +26 -0
- package/dist/chat/ChatThread.d.ts +36 -0
- package/dist/chat/ConversationList.d.ts +22 -0
- package/dist/chat/TypingIndicator.d.ts +8 -0
- package/dist/chat/index.d.ts +9 -0
- package/dist/chat/node.d.ts +12 -0
- package/dist/chat/types.d.ts +38 -0
- package/dist/chat/utils.d.ts +25 -0
- package/dist/chat.d.ts +1 -0
- package/dist/chat.js +661 -0
- package/dist/chat.js.map +1 -0
- package/dist/colors-DUSEhAuo.js +32 -0
- package/dist/colors-DUSEhAuo.js.map +1 -0
- package/dist/components/ContentCard/ContentCard.d.ts +8 -0
- package/dist/components/ContentCard/ContentCard.types.d.ts +34 -0
- package/dist/components/ContentCard/ContentCard.vue.d.ts +35 -0
- package/dist/components/ContentCard/index.d.ts +1 -0
- package/dist/components/CouponCode/CouponCode.d.ts +20 -0
- package/dist/components/CouponCode/index.d.ts +1 -0
- package/dist/components/DataTable/DataTable.d.ts +95 -0
- package/dist/components/DataTable/index.d.ts +1 -0
- package/dist/components/KpiCard/KpiCard.d.ts +12 -0
- package/dist/components/KpiCard/KpiCard.types.d.ts +44 -0
- package/dist/components/KpiCard/KpiCard.vars.d.ts +3 -0
- package/dist/components/KpiCard/KpiCard.vue.d.ts +42 -0
- package/dist/components/KpiCard/KpiGroup.d.ts +10 -0
- package/dist/components/KpiCard/index.d.ts +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +29 -0
- package/dist/components/PageHeader/index.d.ts +1 -0
- package/dist/components/PriceTag/PriceTag.d.ts +21 -0
- package/dist/components/PriceTag/index.d.ts +1 -0
- package/dist/components/ProductCard/ProductCard.d.ts +12 -0
- package/dist/components/ProductCard/ProductCard.types.d.ts +53 -0
- package/dist/components/ProductCard/ProductCard.vue.d.ts +45 -0
- package/dist/components/ProductCard/index.d.ts +1 -0
- package/dist/components/PromoBanner/PromoBanner.d.ts +12 -0
- package/dist/components/PromoBanner/PromoBanner.types.d.ts +50 -0
- package/dist/components/PromoBanner/PromoBanner.vars.d.ts +2 -0
- package/dist/components/PromoBanner/PromoBanner.vue.d.ts +41 -0
- package/dist/components/PromoBanner/index.d.ts +1 -0
- package/dist/components/Tag/Tag.d.ts +18 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/ThemeToggle/ThemeToggle.d.ts +10 -0
- package/dist/components/ThemeToggle/index.d.ts +1 -0
- package/dist/components/TokenSwatch/TokenSwatch.d.ts +21 -0
- package/dist/components/TokenSwatch/index.d.ts +1 -0
- package/dist/components/TopNav/TopNav.d.ts +9 -0
- package/dist/components/TopNav/TopNav.types.d.ts +50 -0
- package/dist/components/TopNav/TopNav.vue.d.ts +33 -0
- package/dist/components/TopNav/index.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +41 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/components/index.d.ts +13 -0
- package/dist/format-D40SMATK.js +108 -0
- package/dist/format-D40SMATK.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +2239 -0
- package/dist/index.js.map +1 -0
- package/dist/provider/JcProvider.d.ts +285 -0
- package/dist/styles.css +2 -0
- package/dist/theme/colors.d.ts +26 -0
- package/dist/theme/components/buttons.d.ts +2 -0
- package/dist/theme/components/combobox.d.ts +2 -0
- package/dist/theme/components/dataDisplay.d.ts +2 -0
- package/dist/theme/components/feedback.d.ts +2 -0
- package/dist/theme/components/index.d.ts +3 -0
- package/dist/theme/components/inputs.d.ts +2 -0
- package/dist/theme/components/layout.d.ts +2 -0
- package/dist/theme/components/misc.d.ts +2 -0
- package/dist/theme/components/navigation.d.ts +2 -0
- package/dist/theme/components/overlays.d.ts +2 -0
- package/dist/theme/components/types.d.ts +11 -0
- package/dist/theme/components/typography.d.ts +2 -0
- package/dist/theme/controls.d.ts +44 -0
- package/dist/theme/cssVariablesResolver.d.ts +2 -0
- package/dist/theme/theme.d.ts +3 -0
- package/dist/theme/themeDefaults.d.ts +18 -0
- package/dist/theme/tokens.d.ts +457 -0
- package/dist/theme/variantColorResolver.d.ts +9 -0
- package/dist/themeDefaults-Ckd05FUY.js +29 -0
- package/dist/themeDefaults-Ckd05FUY.js.map +1 -0
- package/dist/tokens-CDSk_JkY.js +315 -0
- package/dist/tokens-CDSk_JkY.js.map +1 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +3 -0
- package/dist/utils/format.d.ts +14 -0
- package/dist/utils/styles-api.d.ts +15 -0
- package/dist/utils/vue.d.ts +27 -0
- package/package.json +109 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,2239 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "./themeDefaults-Ckd05FUY.js";
|
|
2
|
+
import { a as f, d as p, f as ee, l as m, n as te, o as ne, p as h, r as re, s as ie, t as g, u as _ } from "./tokens-CDSk_JkY.js";
|
|
3
|
+
import { t as v } from "./colors-DUSEhAuo.js";
|
|
4
|
+
import { a as ae, c as oe, d as y, f as se, i as ce, l as le, n as ue, o as de, r as fe, s as pe, t as me, u as he } from "./format-D40SMATK.js";
|
|
5
|
+
import { a as ge, c as _e, i as ve, l as ye, n as be, o as xe, r as Se, s as Ce, t as we, u as Te } from "./brand-CeSffe5P.js";
|
|
6
|
+
import { Accordion as Ee, ActionBar as De, ActionIcon as Oe, Alert as ke, AlphaSlider as Ae, Anchor as je, AngleSlider as Me, Avatar as Ne, BackgroundImage as Pe, Badge as Fe, Blockquote as Ie, Box as b, Breadcrumbs as Le, Burger as Re, Button as ze, Card as Be, Cascader as Ve, Checkbox as He, CheckboxCard as Ue, CheckboxIndicator as We, Chip as Ge, CloseButton as Ke, Code as qe, Collapse as Je, ColorPicker as Ye, Container as Xe, DataList as Ze, Dialog as Qe, Divider as $e, Drawer as et, EmptyState as tt, Fieldset as nt, FloatingWindow as rt, Group as x, HoverCard as it, HueSlider as at, Image as ot, Indicator as st, Input as ct, InputWrapper as lt, Kbd as ut, List as dt, Loader as ft, LoadingOverlay as pt, MantineProvider as mt, Mark as ht, Menu as gt, Menubar as _t, Modal as vt, NativeSelect as yt, NavLink as bt, Notification as xt, NumberFormatter as St, Overlay as Ct, Pagination as wt, Paper as Tt, Pill as Et, PinInput as Dt, Popover as Ot, Progress as kt, Radio as At, RadioCard as jt, RadioIndicator as Mt, RangeSlider as Nt, Rating as Pt, RingProgress as Ft, RollingNumber as It, ScrollArea as Lt, SegmentedControl as Rt, SemiCircleProgress as zt, SimpleGrid as Bt, Skeleton as Vt, Slider as Ht, Splitter as Ut, Spoiler as Wt, Stepper as Gt, Switch as Kt, Table as qt, TableOfContents as Jt, TableTbody as Yt, TableTd as Xt, TableTh as Zt, TableThead as Qt, TableTr as $t, Tabs as en, Text as S, ThemeIcon as tn, Timeline as nn, Title as rn, Tooltip as an, Tree as on, Typography as sn, createVarsResolver as cn, defaultVariantColorsResolver as ln, factory as un, getRadius as dn, getThemeColor as fn, luminance as pn, parseThemeColor as mn, resolveNode as C, useComputedColorScheme as hn, useMantineColorScheme as gn, useProps as _n, useStyles as vn } from "@mantine-vue/core";
|
|
7
|
+
import { Comment as yn, Fragment as bn, Text as xn, camelize as Sn, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createTextVNode as Cn, createVNode as k, defineComponent as A, getCurrentInstance as wn, guardReactiveProps as j, h as M, isVNode as Tn, mergeProps as N, normalizeProps as P, normalizeStyle as En, openBlock as F, ref as Dn, renderSlot as On, resolveDynamicComponent as I, toDisplayString as L, toHandlerKey as kn, unref as R, useAttrs as An, useSlots as jn, watch as Mn, withCtx as z } from "vue";
|
|
8
|
+
import { deepMerge as Nn } from "@mantine-vue/utils";
|
|
9
|
+
import { IconAlertTriangle as Pn, IconArrowDown as Fn, IconArrowDownRight as In, IconArrowUp as Ln, IconArrowUpRight as Rn, IconArrowsSort as zn, IconCheck as Bn, IconCopy as Vn, IconDatabaseOff as Hn, IconHeart as Un, IconHeartFilled as Wn, IconInfoCircle as Gn, IconMinus as Kn, IconMoon as qn, IconShoppingCart as Jn, IconSun as Yn, IconTicket as Xn, IconX as Zn } from "@tabler/icons-vue";
|
|
10
|
+
import { useClipboard as Qn, useDisclosure as $n, useUncontrolled as er } from "@mantine-vue/hooks";
|
|
11
|
+
export * from "@mantine-vue/core";
|
|
12
|
+
//#region src/theme/variantColorResolver.ts
|
|
13
|
+
var tr = {
|
|
14
|
+
horizon: "primary",
|
|
15
|
+
blue: "primary",
|
|
16
|
+
evergreen: "success",
|
|
17
|
+
green: "success",
|
|
18
|
+
teal: "success",
|
|
19
|
+
electric: "warn",
|
|
20
|
+
yellow: "warn",
|
|
21
|
+
danger: "error",
|
|
22
|
+
red: "error",
|
|
23
|
+
obsidian: "neutral",
|
|
24
|
+
gray: "neutral",
|
|
25
|
+
dark: "neutral"
|
|
26
|
+
}, nr = (e) => {
|
|
27
|
+
let { variant: t, theme: n } = e, r = e.color ?? n.primaryColor, i = mn({
|
|
28
|
+
color: r,
|
|
29
|
+
theme: n
|
|
30
|
+
}), a = i.isThemeColor ? i.color : void 0;
|
|
31
|
+
if (t === "accent" || t === "filled" && (a === "electric" || a === "yellow") && i.shade === void 0) return {
|
|
32
|
+
background: "var(--mantine-color-electric-3)",
|
|
33
|
+
hover: "color-mix(in oklch, var(--mantine-color-electric-3), var(--mantine-color-electric-4) 40%)",
|
|
34
|
+
color: "var(--mantine-color-obsidian-6)",
|
|
35
|
+
hoverColor: "var(--mantine-color-obsidian-6)",
|
|
36
|
+
border: "1px solid transparent"
|
|
37
|
+
};
|
|
38
|
+
if (t === "filled" && a && i.shade === void 0) return {
|
|
39
|
+
...ln(e),
|
|
40
|
+
color: "var(--jc-on-filled)",
|
|
41
|
+
hoverColor: "var(--jc-on-filled)"
|
|
42
|
+
};
|
|
43
|
+
if (t === "outline") {
|
|
44
|
+
let t = ln(e), r = ln({
|
|
45
|
+
...e,
|
|
46
|
+
variant: "light"
|
|
47
|
+
}), i = !e.color || a === n.primaryColor;
|
|
48
|
+
return {
|
|
49
|
+
...t,
|
|
50
|
+
hover: i ? "var(--ds-primary-soft)" : r.background,
|
|
51
|
+
color: i ? "var(--ds-primary)" : t.color,
|
|
52
|
+
border: i ? "1px solid var(--ds-primary)" : t.border
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
if (t === "subtle" && (!e.color || e.color === n.primaryColor)) return {
|
|
56
|
+
background: "transparent",
|
|
57
|
+
hover: "var(--ds-surface-2)",
|
|
58
|
+
color: "var(--ds-text-2)",
|
|
59
|
+
hoverColor: "var(--ds-text)",
|
|
60
|
+
border: "1px solid transparent"
|
|
61
|
+
};
|
|
62
|
+
if (t === "light" && a && tr[a]) {
|
|
63
|
+
let e = tr[a];
|
|
64
|
+
return {
|
|
65
|
+
background: `var(--ds-tag-${e}-bg)`,
|
|
66
|
+
hover: `var(--ds-tag-${e}-hover)`,
|
|
67
|
+
color: `var(--ds-tag-${e}-color)`,
|
|
68
|
+
border: "1px solid transparent"
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return ln(e);
|
|
72
|
+
};
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/theme/components/types.ts
|
|
75
|
+
function B(e, t) {
|
|
76
|
+
return t;
|
|
77
|
+
}
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/theme/controls.ts
|
|
80
|
+
var rr = (e) => e === "xs" || e === "sm" || e === "md" || e === "lg" || e === "xl", ir = {
|
|
81
|
+
xs: {
|
|
82
|
+
height: "28px",
|
|
83
|
+
px: "10px",
|
|
84
|
+
fz: "12px",
|
|
85
|
+
inputFz: "12px"
|
|
86
|
+
},
|
|
87
|
+
sm: {
|
|
88
|
+
height: "32px",
|
|
89
|
+
px: "12px",
|
|
90
|
+
fz: "13px",
|
|
91
|
+
inputFz: "14px"
|
|
92
|
+
},
|
|
93
|
+
md: {
|
|
94
|
+
height: "40px",
|
|
95
|
+
px: "16px",
|
|
96
|
+
fz: h.button.size,
|
|
97
|
+
inputFz: "16px"
|
|
98
|
+
},
|
|
99
|
+
lg: {
|
|
100
|
+
height: "48px",
|
|
101
|
+
px: "20px",
|
|
102
|
+
fz: "16px",
|
|
103
|
+
inputFz: "16px"
|
|
104
|
+
},
|
|
105
|
+
xl: {
|
|
106
|
+
height: "56px",
|
|
107
|
+
px: "24px",
|
|
108
|
+
fz: "18px",
|
|
109
|
+
inputFz: "18px"
|
|
110
|
+
}
|
|
111
|
+
}, ar = {
|
|
112
|
+
backgroundOpacity: .5,
|
|
113
|
+
blur: 2,
|
|
114
|
+
color: "#08154B"
|
|
115
|
+
}, or = {
|
|
116
|
+
button: "jc-buttons-button-ydj2o",
|
|
117
|
+
actionIcon: "jc-buttons-actionIcon-1mbg4",
|
|
118
|
+
closeButton: "jc-buttons-closeButton-12dbk"
|
|
119
|
+
}, sr = {
|
|
120
|
+
Button: B(ze, {
|
|
121
|
+
classNames: { root: or.button },
|
|
122
|
+
vars: (e, t) => {
|
|
123
|
+
if (!rr(t.size ?? "md")) return { root: {} };
|
|
124
|
+
let n = ir[t.size ?? "md"];
|
|
125
|
+
return { root: {
|
|
126
|
+
"--button-height": n.height,
|
|
127
|
+
"--button-padding-x": n.px,
|
|
128
|
+
"--button-fz": n.fz
|
|
129
|
+
} };
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
ActionIcon: B(Oe, {
|
|
133
|
+
defaultProps: { variant: "subtle" },
|
|
134
|
+
classNames: { root: or.actionIcon }
|
|
135
|
+
}),
|
|
136
|
+
CloseButton: B(Ke, { classNames: { root: or.closeButton } })
|
|
137
|
+
}, V = {
|
|
138
|
+
dropdown: "jc-combobox-dropdown-ovija",
|
|
139
|
+
option: "jc-combobox-option-o1xsu",
|
|
140
|
+
groupLabel: "jc-combobox-groupLabel-10mqk",
|
|
141
|
+
empty: "jc-combobox-empty-c2tf9",
|
|
142
|
+
search: "jc-combobox-search-prqlj",
|
|
143
|
+
header: "jc-combobox-header-kk8gv",
|
|
144
|
+
footer: "jc-combobox-footer-jrwfp",
|
|
145
|
+
pill: "jc-combobox-pill-1a7yw",
|
|
146
|
+
pillRemove: "jc-combobox-pillRemove-180x8",
|
|
147
|
+
cascaderColumn: "jc-combobox-cascaderColumn-42vci",
|
|
148
|
+
cascaderOption: "jc-combobox-cascaderOption-9s3gv",
|
|
149
|
+
cascaderOverflow: "jc-combobox-cascaderOverflow-x0429"
|
|
150
|
+
}, cr = [
|
|
151
|
+
"Select",
|
|
152
|
+
"MultiSelect",
|
|
153
|
+
"Autocomplete",
|
|
154
|
+
"TagsInput",
|
|
155
|
+
"PillsInput",
|
|
156
|
+
"Cascader",
|
|
157
|
+
"TreeSelect",
|
|
158
|
+
"Combobox"
|
|
159
|
+
], H = {
|
|
160
|
+
dropdown: V.dropdown,
|
|
161
|
+
option: V.option,
|
|
162
|
+
groupLabel: V.groupLabel,
|
|
163
|
+
empty: V.empty
|
|
164
|
+
}, lr = {
|
|
165
|
+
Combobox: {
|
|
166
|
+
...H,
|
|
167
|
+
search: V.search,
|
|
168
|
+
header: V.header,
|
|
169
|
+
footer: V.footer
|
|
170
|
+
},
|
|
171
|
+
ComboboxPopover: {
|
|
172
|
+
...H,
|
|
173
|
+
search: V.search
|
|
174
|
+
},
|
|
175
|
+
Select: H,
|
|
176
|
+
Autocomplete: H,
|
|
177
|
+
MultiSelect: {
|
|
178
|
+
...H,
|
|
179
|
+
pill: V.pill
|
|
180
|
+
},
|
|
181
|
+
TagsInput: {
|
|
182
|
+
...H,
|
|
183
|
+
pill: V.pill
|
|
184
|
+
},
|
|
185
|
+
TreeSelect: {
|
|
186
|
+
...H,
|
|
187
|
+
pill: V.pill
|
|
188
|
+
}
|
|
189
|
+
}, ur = {
|
|
190
|
+
...Object.fromEntries(cr.map((e) => [e, { defaultProps: { size: "md" } }])),
|
|
191
|
+
...Object.fromEntries(Object.entries(lr).map(([e, t]) => [e, {
|
|
192
|
+
defaultProps: cr.includes(e) ? { size: "md" } : {},
|
|
193
|
+
classNames: t
|
|
194
|
+
}])),
|
|
195
|
+
Cascader: B(Ve, {
|
|
196
|
+
defaultProps: { size: "md" },
|
|
197
|
+
classNames: {
|
|
198
|
+
...H,
|
|
199
|
+
column: V.cascaderColumn,
|
|
200
|
+
columnOption: V.cascaderOption,
|
|
201
|
+
flatOption: V.option,
|
|
202
|
+
columnsOverflow: V.cascaderOverflow
|
|
203
|
+
}
|
|
204
|
+
}),
|
|
205
|
+
Pill: B(Et, { classNames: {
|
|
206
|
+
root: V.pill,
|
|
207
|
+
remove: V.pillRemove
|
|
208
|
+
} })
|
|
209
|
+
}, U = {
|
|
210
|
+
badge: "jc-dataDisplay-badge-foc0t",
|
|
211
|
+
accordionItem: "jc-dataDisplay-accordionItem-u8k7a",
|
|
212
|
+
accordionControl: "jc-dataDisplay-accordionControl-1gfm0",
|
|
213
|
+
accordionLabel: "jc-dataDisplay-accordionLabel-e08r8",
|
|
214
|
+
accordionChevron: "jc-dataDisplay-accordionChevron-1czds",
|
|
215
|
+
accordionContent: "jc-dataDisplay-accordionContent-1gflq",
|
|
216
|
+
avatar: "jc-dataDisplay-avatar-1nm4r",
|
|
217
|
+
dataList: "jc-dataDisplay-dataList-12xng",
|
|
218
|
+
dataListLabel: "jc-dataDisplay-dataListLabel-1ky0f",
|
|
219
|
+
dataListValue: "jc-dataDisplay-dataListValue-1l3il",
|
|
220
|
+
indicator: "jc-dataDisplay-indicator-1t0gz",
|
|
221
|
+
kbd: "jc-dataDisplay-kbd-1dbej",
|
|
222
|
+
spoilerControl: "jc-dataDisplay-spoilerControl-yqlai",
|
|
223
|
+
timeline: "jc-dataDisplay-timeline-1a1d4",
|
|
224
|
+
timelineItem: "jc-dataDisplay-timelineItem-2ia8c",
|
|
225
|
+
timelineBullet: "jc-dataDisplay-timelineBullet-1qrrw",
|
|
226
|
+
timelineTitle: "jc-dataDisplay-timelineTitle-6vk5j"
|
|
227
|
+
}, dr = {
|
|
228
|
+
Accordion: B(Ee, {
|
|
229
|
+
defaultProps: { chevronPosition: "right" },
|
|
230
|
+
classNames: {
|
|
231
|
+
item: U.accordionItem,
|
|
232
|
+
control: U.accordionControl,
|
|
233
|
+
label: U.accordionLabel,
|
|
234
|
+
chevron: U.accordionChevron,
|
|
235
|
+
content: U.accordionContent
|
|
236
|
+
}
|
|
237
|
+
}),
|
|
238
|
+
Avatar: B(Ne, {
|
|
239
|
+
defaultProps: {
|
|
240
|
+
color: "horizon",
|
|
241
|
+
radius: "xl"
|
|
242
|
+
},
|
|
243
|
+
classNames: { root: U.avatar }
|
|
244
|
+
}),
|
|
245
|
+
BackgroundImage: B(Pe, { defaultProps: { radius: "md" } }),
|
|
246
|
+
Badge: B(Fe, {
|
|
247
|
+
defaultProps: {
|
|
248
|
+
variant: "light",
|
|
249
|
+
radius: "xl"
|
|
250
|
+
},
|
|
251
|
+
classNames: { root: U.badge },
|
|
252
|
+
vars: (e, t) => (t.size ?? "md") === "md" ? { root: {
|
|
253
|
+
"--badge-height": "24px",
|
|
254
|
+
"--badge-fz": "12px",
|
|
255
|
+
"--badge-padding-x": "8px"
|
|
256
|
+
} } : { root: {} }
|
|
257
|
+
}),
|
|
258
|
+
Card: B(Be, { defaultProps: {
|
|
259
|
+
radius: "md",
|
|
260
|
+
padding: "lg",
|
|
261
|
+
shadow: "sm",
|
|
262
|
+
withBorder: !0
|
|
263
|
+
} }),
|
|
264
|
+
DataList: B(Ze, { classNames: {
|
|
265
|
+
root: U.dataList,
|
|
266
|
+
itemLabel: U.dataListLabel,
|
|
267
|
+
itemValue: U.dataListValue
|
|
268
|
+
} }),
|
|
269
|
+
Image: B(ot, { defaultProps: { radius: "md" } }),
|
|
270
|
+
Indicator: B(st, {
|
|
271
|
+
defaultProps: { color: "danger" },
|
|
272
|
+
classNames: { indicator: U.indicator }
|
|
273
|
+
}),
|
|
274
|
+
Kbd: B(ut, { classNames: { root: U.kbd } }),
|
|
275
|
+
NumberFormatter: B(St, { defaultProps: {
|
|
276
|
+
thousandSeparator: ".",
|
|
277
|
+
decimalSeparator: ","
|
|
278
|
+
} }),
|
|
279
|
+
RollingNumber: B(It, { defaultProps: {
|
|
280
|
+
thousandSeparator: ".",
|
|
281
|
+
decimalSeparator: ","
|
|
282
|
+
} }),
|
|
283
|
+
Spoiler: B(Wt, { classNames: { control: U.spoilerControl } }),
|
|
284
|
+
ThemeIcon: B(tn, { defaultProps: { radius: "md" } }),
|
|
285
|
+
Timeline: B(nn, {
|
|
286
|
+
defaultProps: {
|
|
287
|
+
bulletSize: 24,
|
|
288
|
+
lineWidth: 2
|
|
289
|
+
},
|
|
290
|
+
classNames: {
|
|
291
|
+
root: U.timeline,
|
|
292
|
+
item: U.timelineItem,
|
|
293
|
+
itemBullet: U.timelineBullet,
|
|
294
|
+
itemTitle: U.timelineTitle
|
|
295
|
+
}
|
|
296
|
+
})
|
|
297
|
+
}, W = {
|
|
298
|
+
alert: "jc-feedback-alert-h7v92",
|
|
299
|
+
alertTitle: "jc-feedback-alertTitle-1w7oo",
|
|
300
|
+
alertMessage: "jc-feedback-alertMessage-t1ddb",
|
|
301
|
+
alertWrapper: "jc-feedback-alertWrapper-13mra",
|
|
302
|
+
notification: "jc-feedback-notification-1g32t",
|
|
303
|
+
notificationTitle: "jc-feedback-notificationTitle-1hkpr",
|
|
304
|
+
notificationDescription: "jc-feedback-notificationDescription-12b15",
|
|
305
|
+
notificationIcon: "jc-feedback-notificationIcon-1w65l",
|
|
306
|
+
progress: "jc-feedback-progress-mojt0",
|
|
307
|
+
progressLabel: "jc-feedback-progressLabel-17jpo",
|
|
308
|
+
ringCurve: "jc-feedback-ringCurve-143wl",
|
|
309
|
+
semiCircle: "jc-feedback-semiCircle-afy1b",
|
|
310
|
+
semiCircleLabel: "jc-feedback-semiCircleLabel-1yjul",
|
|
311
|
+
skeleton: "jc-feedback-skeleton-1epys",
|
|
312
|
+
emptyIndicator: "jc-feedback-emptyIndicator-1i2ak",
|
|
313
|
+
emptyState: "jc-feedback-emptyState-ixj8n",
|
|
314
|
+
emptyTitle: "jc-feedback-emptyTitle-ixwea",
|
|
315
|
+
emptyDescription: "jc-feedback-emptyDescription-p56id"
|
|
316
|
+
}, fr = {
|
|
317
|
+
Notification: B(xt, {
|
|
318
|
+
defaultProps: { radius: "md" },
|
|
319
|
+
classNames: {
|
|
320
|
+
root: W.notification,
|
|
321
|
+
title: W.notificationTitle,
|
|
322
|
+
description: W.notificationDescription,
|
|
323
|
+
icon: W.notificationIcon
|
|
324
|
+
}
|
|
325
|
+
}),
|
|
326
|
+
Alert: B(ke, {
|
|
327
|
+
defaultProps: { variant: "light" },
|
|
328
|
+
classNames: {
|
|
329
|
+
root: W.alert,
|
|
330
|
+
wrapper: W.alertWrapper,
|
|
331
|
+
title: W.alertTitle,
|
|
332
|
+
message: W.alertMessage
|
|
333
|
+
}
|
|
334
|
+
}),
|
|
335
|
+
Loader: B(ft, { defaultProps: { type: "oval" } }),
|
|
336
|
+
Progress: B(kt, {
|
|
337
|
+
defaultProps: { radius: "xl" },
|
|
338
|
+
classNames: {
|
|
339
|
+
root: W.progress,
|
|
340
|
+
label: W.progressLabel
|
|
341
|
+
}
|
|
342
|
+
}),
|
|
343
|
+
RingProgress: B(Ft, { classNames: { curve: W.ringCurve } }),
|
|
344
|
+
SemiCircleProgress: B(zt, { classNames: {
|
|
345
|
+
root: W.semiCircle,
|
|
346
|
+
label: W.semiCircleLabel
|
|
347
|
+
} }),
|
|
348
|
+
Skeleton: B(Vt, { classNames: { root: W.skeleton } }),
|
|
349
|
+
EmptyState: B(tt, { classNames: {
|
|
350
|
+
root: W.emptyState,
|
|
351
|
+
indicator: W.emptyIndicator,
|
|
352
|
+
title: W.emptyTitle,
|
|
353
|
+
description: W.emptyDescription
|
|
354
|
+
} })
|
|
355
|
+
}, G = {
|
|
356
|
+
input: "jc-inputs-input-x12vc",
|
|
357
|
+
label: "jc-inputs-label-x2hnj",
|
|
358
|
+
description: "jc-inputs-description-enm5y",
|
|
359
|
+
segmentedRoot: "jc-inputs-segmentedRoot-3hb3b",
|
|
360
|
+
segmentedIndicator: "jc-inputs-segmentedIndicator-1ml25",
|
|
361
|
+
segmentedLabel: "jc-inputs-segmentedLabel-10rvt",
|
|
362
|
+
nativeSelect: "jc-inputs-nativeSelect-se3qh",
|
|
363
|
+
nativeSelectSection: "jc-inputs-nativeSelectSection-kukh0",
|
|
364
|
+
checkInput: "jc-inputs-checkInput-hopjk",
|
|
365
|
+
selectCard: "jc-inputs-selectCard-1y8e9",
|
|
366
|
+
switchTrack: "jc-inputs-switchTrack-76xuz",
|
|
367
|
+
chipLabel: "jc-inputs-chipLabel-1v9km",
|
|
368
|
+
fieldset: "jc-inputs-fieldset-1h97c",
|
|
369
|
+
fieldsetLegend: "jc-inputs-fieldsetLegend-1u9i7",
|
|
370
|
+
pinInput: "jc-inputs-pinInput-1p3bz",
|
|
371
|
+
sliderRoot: "jc-inputs-sliderRoot-18w25",
|
|
372
|
+
sliderThumb: "jc-inputs-sliderThumb-161p2",
|
|
373
|
+
sliderLabel: "jc-inputs-sliderLabel-15x5u",
|
|
374
|
+
sliderMarkLabel: "jc-inputs-sliderMarkLabel-10x0t",
|
|
375
|
+
angleRoot: "jc-inputs-angleRoot-1k0pu",
|
|
376
|
+
angleThumb: "jc-inputs-angleThumb-vwj4a",
|
|
377
|
+
angleLabel: "jc-inputs-angleLabel-vrzwd",
|
|
378
|
+
rating: "jc-inputs-rating-xk7t1",
|
|
379
|
+
ratingStar: "jc-inputs-ratingStar-1p6e1",
|
|
380
|
+
colorSlider: "jc-inputs-colorSlider-1nakv",
|
|
381
|
+
colorSliderOverlay: "jc-inputs-colorSliderOverlay-1jt1i",
|
|
382
|
+
colorThumb: "jc-inputs-colorThumb-1br3d",
|
|
383
|
+
colorSaturation: "jc-inputs-colorSaturation-181ea",
|
|
384
|
+
colorSwatch: "jc-inputs-colorSwatch-1nght"
|
|
385
|
+
}, pr = Object.fromEntries([
|
|
386
|
+
"InputBase",
|
|
387
|
+
"TextInput",
|
|
388
|
+
"PasswordInput",
|
|
389
|
+
"NumberInput",
|
|
390
|
+
"Textarea",
|
|
391
|
+
"JsonInput",
|
|
392
|
+
"ColorInput",
|
|
393
|
+
"FileInput",
|
|
394
|
+
"MaskInput"
|
|
395
|
+
].map((e) => [e, { defaultProps: { size: "md" } }])), mr = {
|
|
396
|
+
slider: G.colorSlider,
|
|
397
|
+
sliderOverlay: G.colorSliderOverlay,
|
|
398
|
+
thumb: G.colorThumb
|
|
399
|
+
}, hr = {
|
|
400
|
+
root: G.sliderRoot,
|
|
401
|
+
thumb: G.sliderThumb,
|
|
402
|
+
label: G.sliderLabel,
|
|
403
|
+
markLabel: G.sliderMarkLabel
|
|
404
|
+
}, gr = {
|
|
405
|
+
...pr,
|
|
406
|
+
Input: B(ct, {
|
|
407
|
+
defaultProps: { size: "md" },
|
|
408
|
+
classNames: { input: G.input },
|
|
409
|
+
vars: (e, t) => {
|
|
410
|
+
let n = t.size ?? "md";
|
|
411
|
+
return rr(n) ? { wrapper: {
|
|
412
|
+
"--input-height": ir[n].height,
|
|
413
|
+
"--input-fz": ir[n].inputFz
|
|
414
|
+
} } : { wrapper: {} };
|
|
415
|
+
}
|
|
416
|
+
}),
|
|
417
|
+
InputWrapper: B(lt, { classNames: {
|
|
418
|
+
label: G.label,
|
|
419
|
+
description: G.description
|
|
420
|
+
} }),
|
|
421
|
+
NativeSelect: B(yt, {
|
|
422
|
+
defaultProps: { size: "md" },
|
|
423
|
+
classNames: {
|
|
424
|
+
input: G.nativeSelect,
|
|
425
|
+
section: G.nativeSelectSection
|
|
426
|
+
}
|
|
427
|
+
}),
|
|
428
|
+
Checkbox: B(He, {
|
|
429
|
+
defaultProps: { radius: "xs" },
|
|
430
|
+
classNames: { input: G.checkInput }
|
|
431
|
+
}),
|
|
432
|
+
CheckboxIndicator: B(We, {
|
|
433
|
+
defaultProps: { radius: "xs" },
|
|
434
|
+
classNames: { indicator: G.checkInput }
|
|
435
|
+
}),
|
|
436
|
+
CheckboxCard: B(Ue, {
|
|
437
|
+
defaultProps: { radius: "md" },
|
|
438
|
+
classNames: { card: G.selectCard }
|
|
439
|
+
}),
|
|
440
|
+
Radio: B(At, { classNames: { radio: G.checkInput } }),
|
|
441
|
+
RadioIndicator: B(Mt, { classNames: { indicator: G.checkInput } }),
|
|
442
|
+
RadioCard: B(jt, {
|
|
443
|
+
defaultProps: { radius: "md" },
|
|
444
|
+
classNames: { card: G.selectCard }
|
|
445
|
+
}),
|
|
446
|
+
Switch: B(Kt, {
|
|
447
|
+
defaultProps: { radius: "xl" },
|
|
448
|
+
classNames: { track: G.switchTrack }
|
|
449
|
+
}),
|
|
450
|
+
Chip: B(Ge, {
|
|
451
|
+
defaultProps: { variant: "outline" },
|
|
452
|
+
classNames: { label: G.chipLabel },
|
|
453
|
+
vars: (e, t) => {
|
|
454
|
+
if (t.variant !== "outline") return { root: {} };
|
|
455
|
+
let n = e.variantColorResolver({
|
|
456
|
+
color: t.color || e.primaryColor,
|
|
457
|
+
theme: e,
|
|
458
|
+
variant: "light"
|
|
459
|
+
});
|
|
460
|
+
return { root: {
|
|
461
|
+
"--chip-bg": n.hover,
|
|
462
|
+
"--chip-hover": n.hover
|
|
463
|
+
} };
|
|
464
|
+
}
|
|
465
|
+
}),
|
|
466
|
+
SegmentedControl: B(Rt, {
|
|
467
|
+
defaultProps: { radius: "sm" },
|
|
468
|
+
classNames: {
|
|
469
|
+
root: G.segmentedRoot,
|
|
470
|
+
indicator: G.segmentedIndicator,
|
|
471
|
+
label: G.segmentedLabel
|
|
472
|
+
}
|
|
473
|
+
}),
|
|
474
|
+
Fieldset: B(nt, {
|
|
475
|
+
defaultProps: { radius: "md" },
|
|
476
|
+
classNames: {
|
|
477
|
+
root: G.fieldset,
|
|
478
|
+
legend: G.fieldsetLegend
|
|
479
|
+
}
|
|
480
|
+
}),
|
|
481
|
+
PinInput: B(Dt, {
|
|
482
|
+
defaultProps: { size: "md" },
|
|
483
|
+
classNames: { input: G.pinInput },
|
|
484
|
+
vars: (e, t) => {
|
|
485
|
+
let n = t.size ?? "md";
|
|
486
|
+
return { root: rr(n) ? { "--pin-input-size": ir[n].height } : {} };
|
|
487
|
+
}
|
|
488
|
+
}),
|
|
489
|
+
Slider: B(Ht, { classNames: hr }),
|
|
490
|
+
RangeSlider: B(Nt, { classNames: hr }),
|
|
491
|
+
AngleSlider: B(Me, { classNames: {
|
|
492
|
+
root: G.angleRoot,
|
|
493
|
+
thumb: G.angleThumb,
|
|
494
|
+
label: G.angleLabel
|
|
495
|
+
} }),
|
|
496
|
+
Rating: B(Pt, {
|
|
497
|
+
defaultProps: { color: "electric.4" },
|
|
498
|
+
classNames: {
|
|
499
|
+
root: G.rating,
|
|
500
|
+
starSymbol: G.ratingStar
|
|
501
|
+
},
|
|
502
|
+
vars: (e, t) => ({ root: t.color === "electric.4" ? { "--rating-color": "var(--jc-rating-color)" } : {} })
|
|
503
|
+
}),
|
|
504
|
+
ColorPicker: B(Ye, { classNames: {
|
|
505
|
+
...mr,
|
|
506
|
+
saturation: G.colorSaturation,
|
|
507
|
+
swatch: G.colorSwatch
|
|
508
|
+
} }),
|
|
509
|
+
AlphaSlider: B(Ae, { classNames: mr }),
|
|
510
|
+
HueSlider: B(at, { classNames: mr })
|
|
511
|
+
}, K = {
|
|
512
|
+
appShellMain: "jc-layout-appShellMain-rn4sc",
|
|
513
|
+
appShellNavbar: "jc-layout-appShellNavbar-1yh1t",
|
|
514
|
+
appShellAside: "jc-layout-appShellAside-4dhpc",
|
|
515
|
+
appShellHeader: "jc-layout-appShellHeader-1volw",
|
|
516
|
+
appShellFooter: "jc-layout-appShellFooter-1uw9v",
|
|
517
|
+
container: "jc-layout-container-1otef",
|
|
518
|
+
splitter: "jc-layout-splitter-1c81w",
|
|
519
|
+
splitterHandle: "jc-layout-splitterHandle-3aw4b",
|
|
520
|
+
splitterThumb: "jc-layout-splitterThumb-9gif3"
|
|
521
|
+
}, _r = {
|
|
522
|
+
AppShell: { classNames: {
|
|
523
|
+
main: K.appShellMain,
|
|
524
|
+
navbar: K.appShellNavbar,
|
|
525
|
+
aside: K.appShellAside,
|
|
526
|
+
header: K.appShellHeader,
|
|
527
|
+
footer: K.appShellFooter
|
|
528
|
+
} },
|
|
529
|
+
Container: B(Xe, { classNames: { root: K.container } }),
|
|
530
|
+
Splitter: B(Ut, { classNames: {
|
|
531
|
+
root: K.splitter,
|
|
532
|
+
handle: K.splitterHandle,
|
|
533
|
+
thumb: K.splitterThumb
|
|
534
|
+
} })
|
|
535
|
+
}, vr = {
|
|
536
|
+
paper: "jc-misc-paper-ylgp1",
|
|
537
|
+
divider: "jc-misc-divider-19c9f",
|
|
538
|
+
scrollbar: "jc-misc-scrollbar-1rme3",
|
|
539
|
+
scrollThumb: "jc-misc-scrollThumb-1hy1m"
|
|
540
|
+
}, yr = {
|
|
541
|
+
Paper: B(Tt, {
|
|
542
|
+
defaultProps: { radius: "md" },
|
|
543
|
+
classNames: { root: vr.paper }
|
|
544
|
+
}),
|
|
545
|
+
Divider: B($e, { classNames: { root: vr.divider } }),
|
|
546
|
+
ScrollArea: B(Lt, { classNames: {
|
|
547
|
+
scrollbar: vr.scrollbar,
|
|
548
|
+
thumb: vr.scrollThumb
|
|
549
|
+
} })
|
|
550
|
+
}, q = {
|
|
551
|
+
tabs: "jc-navigation-tabs-1fx9s",
|
|
552
|
+
tab: "jc-navigation-tab-12c3k",
|
|
553
|
+
anchor: "jc-navigation-anchor-qow42",
|
|
554
|
+
burger: "jc-navigation-burger-ra1uf",
|
|
555
|
+
navLink: "jc-navigation-navLink-hxlfi",
|
|
556
|
+
paginationControl: "jc-navigation-paginationControl-eomsf",
|
|
557
|
+
stepper: "jc-navigation-stepper-t1m8k",
|
|
558
|
+
stepIcon: "jc-navigation-stepIcon-1c03s",
|
|
559
|
+
stepCompletedIcon: "jc-navigation-stepCompletedIcon-235zk",
|
|
560
|
+
stepLabel: "jc-navigation-stepLabel-1vilz",
|
|
561
|
+
stepDescription: "jc-navigation-stepDescription-1a1yx",
|
|
562
|
+
tocControl: "jc-navigation-tocControl-1a82m",
|
|
563
|
+
tree: "jc-navigation-tree-1fxa5",
|
|
564
|
+
treeLabel: "jc-navigation-treeLabel-19sv8"
|
|
565
|
+
}, br = {
|
|
566
|
+
Tabs: B(en, { classNames: {
|
|
567
|
+
root: q.tabs,
|
|
568
|
+
tab: q.tab
|
|
569
|
+
} }),
|
|
570
|
+
Anchor: B(je, { classNames: { root: q.anchor } }),
|
|
571
|
+
Burger: B(Re, { classNames: { root: q.burger } }),
|
|
572
|
+
NavLink: B(bt, {
|
|
573
|
+
defaultProps: { variant: "light" },
|
|
574
|
+
classNames: { root: q.navLink }
|
|
575
|
+
}),
|
|
576
|
+
Pagination: B(wt, {
|
|
577
|
+
defaultProps: { radius: "sm" },
|
|
578
|
+
classNames: { control: q.paginationControl }
|
|
579
|
+
}),
|
|
580
|
+
Stepper: B(Gt, { classNames: {
|
|
581
|
+
root: q.stepper,
|
|
582
|
+
stepIcon: q.stepIcon,
|
|
583
|
+
stepCompletedIcon: q.stepCompletedIcon,
|
|
584
|
+
stepLabel: q.stepLabel,
|
|
585
|
+
stepDescription: q.stepDescription
|
|
586
|
+
} }),
|
|
587
|
+
TableOfContents: B(Jt, { classNames: { control: q.tocControl } }),
|
|
588
|
+
Tree: B(on, { classNames: {
|
|
589
|
+
root: q.tree,
|
|
590
|
+
label: q.treeLabel
|
|
591
|
+
} })
|
|
592
|
+
}, J = {
|
|
593
|
+
dropdown: "jc-overlays-dropdown-jw4jb",
|
|
594
|
+
menuItem: "jc-overlays-menuItem-h1p96",
|
|
595
|
+
menuLabel: "jc-overlays-menuLabel-va9pv",
|
|
596
|
+
menuDivider: "jc-overlays-menuDivider-1bt9m",
|
|
597
|
+
menubarRoot: "jc-overlays-menubarRoot-1m3j7",
|
|
598
|
+
menubarTarget: "jc-overlays-menubarTarget-2rpcd",
|
|
599
|
+
floatingSurface: "jc-overlays-floatingSurface-abtom",
|
|
600
|
+
actionBarDivider: "jc-overlays-actionBarDivider-zlu32",
|
|
601
|
+
modalContent: "jc-overlays-modalContent-1r9tn",
|
|
602
|
+
modalHeader: "jc-overlays-modalHeader-ovcpc",
|
|
603
|
+
modalTitle: "jc-overlays-modalTitle-x2dy5",
|
|
604
|
+
tooltip: "jc-overlays-tooltip-rudkb"
|
|
605
|
+
}, xr = {
|
|
606
|
+
dropdown: J.dropdown,
|
|
607
|
+
item: J.menuItem,
|
|
608
|
+
label: J.menuLabel,
|
|
609
|
+
divider: J.menuDivider
|
|
610
|
+
}, Sr = {
|
|
611
|
+
Menu: B(gt, {
|
|
612
|
+
defaultProps: {
|
|
613
|
+
shadow: "md",
|
|
614
|
+
radius: "sm"
|
|
615
|
+
},
|
|
616
|
+
classNames: xr
|
|
617
|
+
}),
|
|
618
|
+
Menubar: B(_t, { classNames: {
|
|
619
|
+
root: J.menubarRoot,
|
|
620
|
+
target: J.menubarTarget
|
|
621
|
+
} }),
|
|
622
|
+
Popover: B(Ot, {
|
|
623
|
+
defaultProps: {
|
|
624
|
+
shadow: "md",
|
|
625
|
+
radius: "sm"
|
|
626
|
+
},
|
|
627
|
+
classNames: { dropdown: J.dropdown }
|
|
628
|
+
}),
|
|
629
|
+
HoverCard: B(it, {
|
|
630
|
+
defaultProps: {
|
|
631
|
+
shadow: "md",
|
|
632
|
+
radius: "md"
|
|
633
|
+
},
|
|
634
|
+
classNames: { dropdown: J.dropdown }
|
|
635
|
+
}),
|
|
636
|
+
Tooltip: B(an, {
|
|
637
|
+
defaultProps: {
|
|
638
|
+
radius: "sm",
|
|
639
|
+
withArrow: !0
|
|
640
|
+
},
|
|
641
|
+
classNames: { tooltip: J.tooltip }
|
|
642
|
+
}),
|
|
643
|
+
Modal: B(vt, {
|
|
644
|
+
defaultProps: {
|
|
645
|
+
radius: "md",
|
|
646
|
+
centered: !0,
|
|
647
|
+
shadow: "lg",
|
|
648
|
+
overlayProps: ar
|
|
649
|
+
},
|
|
650
|
+
classNames: {
|
|
651
|
+
content: J.modalContent,
|
|
652
|
+
header: J.modalHeader,
|
|
653
|
+
title: J.modalTitle
|
|
654
|
+
}
|
|
655
|
+
}),
|
|
656
|
+
Drawer: B(et, {
|
|
657
|
+
defaultProps: {
|
|
658
|
+
shadow: "lg",
|
|
659
|
+
overlayProps: ar
|
|
660
|
+
},
|
|
661
|
+
classNames: {
|
|
662
|
+
content: J.modalContent,
|
|
663
|
+
header: J.modalHeader,
|
|
664
|
+
title: J.modalTitle
|
|
665
|
+
}
|
|
666
|
+
}),
|
|
667
|
+
Dialog: B(Qe, {
|
|
668
|
+
defaultProps: {
|
|
669
|
+
radius: "md",
|
|
670
|
+
shadow: "lg"
|
|
671
|
+
},
|
|
672
|
+
classNames: { root: J.floatingSurface }
|
|
673
|
+
}),
|
|
674
|
+
ActionBar: B(De, {
|
|
675
|
+
defaultProps: {
|
|
676
|
+
radius: "md",
|
|
677
|
+
shadow: "lg"
|
|
678
|
+
},
|
|
679
|
+
classNames: {
|
|
680
|
+
root: J.floatingSurface,
|
|
681
|
+
divider: J.actionBarDivider
|
|
682
|
+
}
|
|
683
|
+
}),
|
|
684
|
+
FloatingWindow: B(rt, {
|
|
685
|
+
defaultProps: {
|
|
686
|
+
radius: "md",
|
|
687
|
+
shadow: "lg",
|
|
688
|
+
withBorder: !0
|
|
689
|
+
},
|
|
690
|
+
classNames: { root: J.floatingSurface }
|
|
691
|
+
}),
|
|
692
|
+
Overlay: B(Ct, { defaultProps: { color: g.obsidian } }),
|
|
693
|
+
LoadingOverlay: B(pt, { defaultProps: { overlayProps: {
|
|
694
|
+
backgroundOpacity: .75,
|
|
695
|
+
blur: 1
|
|
696
|
+
} } })
|
|
697
|
+
}, Y = {
|
|
698
|
+
table: "jc-typography-table-kknto",
|
|
699
|
+
th: "jc-typography-th-3gnnz",
|
|
700
|
+
thead: "jc-typography-thead-kkscj",
|
|
701
|
+
tr: "jc-typography-tr-3gnnz",
|
|
702
|
+
title: "jc-typography-title-kktax",
|
|
703
|
+
code: "jc-typography-code-1o89v",
|
|
704
|
+
blockquote: "jc-typography-blockquote-qpgfj",
|
|
705
|
+
blockquoteIcon: "jc-typography-blockquoteIcon-uil1s",
|
|
706
|
+
blockquoteCite: "jc-typography-blockquoteCite-uihcf",
|
|
707
|
+
mark: "jc-typography-mark-1o8fy",
|
|
708
|
+
list: "jc-typography-list-1o8fh",
|
|
709
|
+
listItem: "jc-typography-listItem-tklh3",
|
|
710
|
+
listItemIcon: "jc-typography-listItemIcon-iqpjy",
|
|
711
|
+
typography: "jc-typography-typography-1usve"
|
|
712
|
+
}, Cr = [
|
|
713
|
+
void 0,
|
|
714
|
+
"yellow",
|
|
715
|
+
"electric"
|
|
716
|
+
], wr = {
|
|
717
|
+
Blockquote: B(Ie, {
|
|
718
|
+
defaultProps: {
|
|
719
|
+
iconSize: 40,
|
|
720
|
+
radius: "sm"
|
|
721
|
+
},
|
|
722
|
+
classNames: {
|
|
723
|
+
root: Y.blockquote,
|
|
724
|
+
icon: Y.blockquoteIcon,
|
|
725
|
+
cite: Y.blockquoteCite
|
|
726
|
+
},
|
|
727
|
+
vars: (e, t) => !t.color || t.color === "horizon" || t.color === "blue" ? { root: {
|
|
728
|
+
"--bq-bd": "var(--ds-primary)",
|
|
729
|
+
"--bq-bg-light": "var(--ds-primary-soft)",
|
|
730
|
+
"--bq-bg-dark": "var(--ds-primary-soft)"
|
|
731
|
+
} } : { root: {} }
|
|
732
|
+
}),
|
|
733
|
+
Code: B(qe, { classNames: { root: Y.code } }),
|
|
734
|
+
List: B(dt, {
|
|
735
|
+
defaultProps: { spacing: "xs" },
|
|
736
|
+
classNames: {
|
|
737
|
+
root: Y.list,
|
|
738
|
+
item: Y.listItem,
|
|
739
|
+
itemIcon: Y.listItemIcon
|
|
740
|
+
}
|
|
741
|
+
}),
|
|
742
|
+
Mark: B(ht, {
|
|
743
|
+
classNames: { root: Y.mark },
|
|
744
|
+
vars: (e, t) => {
|
|
745
|
+
let n = Cr.includes(t.color), r = n ? "electric" : t.color;
|
|
746
|
+
return { root: {
|
|
747
|
+
"--mark-bg-light": fn(`${r}.${n ? 2 : 1}`, e),
|
|
748
|
+
"--mark-bg-dark": `color-mix(in srgb, ${fn(`${r}.${n ? 3 : 4}`, e)} 32%, transparent)`
|
|
749
|
+
} };
|
|
750
|
+
}
|
|
751
|
+
}),
|
|
752
|
+
Table: B(qt, {
|
|
753
|
+
defaultProps: {
|
|
754
|
+
highlightOnHover: !0,
|
|
755
|
+
verticalSpacing: "sm",
|
|
756
|
+
horizontalSpacing: "sm"
|
|
757
|
+
},
|
|
758
|
+
classNames: {
|
|
759
|
+
table: Y.table,
|
|
760
|
+
th: Y.th,
|
|
761
|
+
thead: Y.thead,
|
|
762
|
+
tr: Y.tr
|
|
763
|
+
}
|
|
764
|
+
}),
|
|
765
|
+
Title: B(rn, { classNames: { root: Y.title } }),
|
|
766
|
+
Typography: B(sn, { classNames: { root: Y.typography } })
|
|
767
|
+
}, Tr = {
|
|
768
|
+
..._r,
|
|
769
|
+
...gr,
|
|
770
|
+
...ur,
|
|
771
|
+
...sr,
|
|
772
|
+
...br,
|
|
773
|
+
...fr,
|
|
774
|
+
...Sr,
|
|
775
|
+
...dr,
|
|
776
|
+
...wr,
|
|
777
|
+
...yr
|
|
778
|
+
}, X = h, Er = {
|
|
779
|
+
colors: v,
|
|
780
|
+
primaryColor: "horizon",
|
|
781
|
+
primaryShade: {
|
|
782
|
+
light: 6,
|
|
783
|
+
dark: 4
|
|
784
|
+
},
|
|
785
|
+
autoContrast: !0,
|
|
786
|
+
luminanceThreshold: .3,
|
|
787
|
+
white: "#FFFFFF",
|
|
788
|
+
black: "#1F2228",
|
|
789
|
+
variantColorResolver: nr,
|
|
790
|
+
fontFamily: ne,
|
|
791
|
+
fontFamilyMonospace: "ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, monospace",
|
|
792
|
+
headings: {
|
|
793
|
+
fontFamily: ne,
|
|
794
|
+
fontWeight: "600",
|
|
795
|
+
textWrap: "balance",
|
|
796
|
+
sizes: {
|
|
797
|
+
h1: {
|
|
798
|
+
fontSize: X.displaySm.size,
|
|
799
|
+
fontWeight: "700",
|
|
800
|
+
lineHeight: String(X.displaySm.lineHeight)
|
|
801
|
+
},
|
|
802
|
+
h2: {
|
|
803
|
+
fontSize: X.headlineLg.size,
|
|
804
|
+
fontWeight: "600",
|
|
805
|
+
lineHeight: String(X.headlineLg.lineHeight)
|
|
806
|
+
},
|
|
807
|
+
h3: {
|
|
808
|
+
fontSize: X.headlineMd.size,
|
|
809
|
+
fontWeight: "600",
|
|
810
|
+
lineHeight: String(X.headlineMd.lineHeight)
|
|
811
|
+
},
|
|
812
|
+
h4: {
|
|
813
|
+
fontSize: X.headlineSm.size,
|
|
814
|
+
fontWeight: "600",
|
|
815
|
+
lineHeight: String(X.headlineSm.lineHeight)
|
|
816
|
+
},
|
|
817
|
+
h5: {
|
|
818
|
+
fontSize: "18px",
|
|
819
|
+
fontWeight: "600",
|
|
820
|
+
lineHeight: "1.45"
|
|
821
|
+
},
|
|
822
|
+
h6: {
|
|
823
|
+
fontSize: "16px",
|
|
824
|
+
fontWeight: "600",
|
|
825
|
+
lineHeight: "1.5"
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
},
|
|
829
|
+
fontSizes: {
|
|
830
|
+
xs: X.disclaimer.size,
|
|
831
|
+
sm: X.subheadlineSm.size,
|
|
832
|
+
md: X.subheadlineRg.size,
|
|
833
|
+
lg: X.subheadlineLg.size,
|
|
834
|
+
xl: X.headlineSm.size
|
|
835
|
+
},
|
|
836
|
+
lineHeights: {
|
|
837
|
+
xs: "1.33",
|
|
838
|
+
sm: "1.43",
|
|
839
|
+
md: "1.5",
|
|
840
|
+
lg: "1.55",
|
|
841
|
+
xl: "1.4"
|
|
842
|
+
},
|
|
843
|
+
spacing: {
|
|
844
|
+
xs: p[4],
|
|
845
|
+
sm: p[8],
|
|
846
|
+
md: p[16],
|
|
847
|
+
lg: p[24],
|
|
848
|
+
xl: p[32]
|
|
849
|
+
},
|
|
850
|
+
radius: {
|
|
851
|
+
xs: "4px",
|
|
852
|
+
sm: "8px",
|
|
853
|
+
md: "12px",
|
|
854
|
+
lg: "16px",
|
|
855
|
+
xl: "99px"
|
|
856
|
+
},
|
|
857
|
+
defaultRadius: "sm",
|
|
858
|
+
shadows: {
|
|
859
|
+
xs: "0 1px 2px rgba(31,34,40,.06)",
|
|
860
|
+
sm: "var(--ds-shadow-sm)",
|
|
861
|
+
md: "var(--ds-shadow-md)",
|
|
862
|
+
lg: "var(--ds-shadow-lg)",
|
|
863
|
+
xl: "0 24px 56px rgba(31,34,40,.18)"
|
|
864
|
+
},
|
|
865
|
+
breakpoints: {
|
|
866
|
+
xs: "36em",
|
|
867
|
+
sm: "48em",
|
|
868
|
+
md: "64em",
|
|
869
|
+
lg: "85.375em",
|
|
870
|
+
xl: "96em"
|
|
871
|
+
},
|
|
872
|
+
focusRing: "auto",
|
|
873
|
+
cursorType: "pointer",
|
|
874
|
+
defaultGradient: {
|
|
875
|
+
from: "horizon.6",
|
|
876
|
+
to: "horizon.4",
|
|
877
|
+
deg: 135
|
|
878
|
+
},
|
|
879
|
+
other: {
|
|
880
|
+
spacing: p,
|
|
881
|
+
grid: ie,
|
|
882
|
+
typography: h,
|
|
883
|
+
chartPalette: re
|
|
884
|
+
},
|
|
885
|
+
components: Tr
|
|
886
|
+
}, Dr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
887
|
+
function Or(e) {
|
|
888
|
+
return {
|
|
889
|
+
"--ds-bg": e.bg,
|
|
890
|
+
"--ds-surface": e.surface,
|
|
891
|
+
"--ds-surface-2": e.surface2,
|
|
892
|
+
"--ds-text": e.text,
|
|
893
|
+
"--ds-text-2": e.text2,
|
|
894
|
+
"--ds-text-3": e.text3,
|
|
895
|
+
"--ds-border": e.border,
|
|
896
|
+
"--ds-border-soft": e.borderSoft,
|
|
897
|
+
"--ds-primary": e.primary,
|
|
898
|
+
"--ds-primary-hover": e.primaryHover,
|
|
899
|
+
"--ds-primary-soft": e.primarySoft,
|
|
900
|
+
"--ds-accent": e.accent,
|
|
901
|
+
"--ds-link": e.link,
|
|
902
|
+
"--ds-success-bg": e.successBg,
|
|
903
|
+
"--ds-warn-bg": e.warnBg,
|
|
904
|
+
"--ds-error-bg": e.errorBg,
|
|
905
|
+
"--ds-shadow-sm": e.shadowSm,
|
|
906
|
+
"--ds-shadow-md": e.shadowMd,
|
|
907
|
+
"--ds-shadow-lg": e.shadowLg,
|
|
908
|
+
"--mantine-color-body": e.bg,
|
|
909
|
+
"--mantine-color-text": e.text,
|
|
910
|
+
"--mantine-color-dimmed": e.text3,
|
|
911
|
+
"--mantine-color-default": e.surface,
|
|
912
|
+
"--mantine-color-default-hover": e.surface2,
|
|
913
|
+
"--mantine-color-default-border": e.border,
|
|
914
|
+
"--mantine-color-anchor": e.link,
|
|
915
|
+
"--mantine-color-error": f.error,
|
|
916
|
+
"--mantine-color-success": f.success
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
function kr() {
|
|
920
|
+
let e = {
|
|
921
|
+
"--font-body": "'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif",
|
|
922
|
+
"--ds-radius": "12px",
|
|
923
|
+
"--ds-radius-sm": "8px",
|
|
924
|
+
"--ds-radius-lg": "16px",
|
|
925
|
+
"--grid-gap": "24px",
|
|
926
|
+
"--grid-margin": "64px",
|
|
927
|
+
"--grid-max": "1224px"
|
|
928
|
+
};
|
|
929
|
+
return Object.keys(g).forEach((t) => {
|
|
930
|
+
e[`--dc-${t}`] = g[t];
|
|
931
|
+
}), Object.keys(m).forEach((t) => {
|
|
932
|
+
Object.entries(m[t]).forEach(([n, r]) => {
|
|
933
|
+
e[`--dc-${t}-${n}`] = r;
|
|
934
|
+
});
|
|
935
|
+
}), Object.entries(h).forEach(([t, n]) => {
|
|
936
|
+
e[`--type-${Dr(t)}`] = n.size;
|
|
937
|
+
}), Object.entries(p).forEach(([t, n]) => {
|
|
938
|
+
e[`--sp-${t}`] = n;
|
|
939
|
+
}), e;
|
|
940
|
+
}
|
|
941
|
+
var Ar = {
|
|
942
|
+
light: {
|
|
943
|
+
"--ds-tag-primary-bg": m.horizon[50],
|
|
944
|
+
"--ds-tag-primary-hover": m.horizon[100],
|
|
945
|
+
"--ds-tag-primary-color": m.horizon[700],
|
|
946
|
+
"--ds-tag-success-bg": m.evergreen[50],
|
|
947
|
+
"--ds-tag-success-hover": m.evergreen[100],
|
|
948
|
+
"--ds-tag-success-color": m.evergreen[700],
|
|
949
|
+
"--ds-tag-warn-bg": m.electric[50],
|
|
950
|
+
"--ds-tag-warn-hover": m.electric[100],
|
|
951
|
+
"--ds-tag-warn-color": m.electric[700],
|
|
952
|
+
"--ds-tag-error-bg": m.danger[50],
|
|
953
|
+
"--ds-tag-error-hover": m.danger[100],
|
|
954
|
+
"--ds-tag-error-color": m.danger[700],
|
|
955
|
+
"--ds-tag-neutral-bg": m.gray[100],
|
|
956
|
+
"--ds-tag-neutral-hover": m.gray[200],
|
|
957
|
+
"--ds-tag-neutral-color": m.gray[700]
|
|
958
|
+
},
|
|
959
|
+
dark: {
|
|
960
|
+
"--ds-tag-primary-bg": "rgba(110,159,255,.14)",
|
|
961
|
+
"--ds-tag-primary-hover": "rgba(110,159,255,.22)",
|
|
962
|
+
"--ds-tag-primary-color": m.horizon[300],
|
|
963
|
+
"--ds-tag-success-bg": "rgba(97,184,117,.14)",
|
|
964
|
+
"--ds-tag-success-hover": "rgba(97,184,117,.22)",
|
|
965
|
+
"--ds-tag-success-color": m.evergreen[300],
|
|
966
|
+
"--ds-tag-warn-bg": "rgba(247,215,89,.12)",
|
|
967
|
+
"--ds-tag-warn-hover": "rgba(247,215,89,.2)",
|
|
968
|
+
"--ds-tag-warn-color": m.electric[200],
|
|
969
|
+
"--ds-tag-error-bg": "rgba(255,108,90,.14)",
|
|
970
|
+
"--ds-tag-error-hover": "rgba(255,108,90,.22)",
|
|
971
|
+
"--ds-tag-error-color": m.danger[300],
|
|
972
|
+
"--ds-tag-neutral-bg": _.dark.surface2,
|
|
973
|
+
"--ds-tag-neutral-hover": _.dark.border,
|
|
974
|
+
"--ds-tag-neutral-color": _.dark.text2
|
|
975
|
+
}
|
|
976
|
+
}, jr = Object.fromEntries(Object.entries({
|
|
977
|
+
horizon: "primary",
|
|
978
|
+
blue: "primary",
|
|
979
|
+
evergreen: "success",
|
|
980
|
+
green: "success",
|
|
981
|
+
teal: "success",
|
|
982
|
+
electric: "warn",
|
|
983
|
+
yellow: "warn",
|
|
984
|
+
danger: "error",
|
|
985
|
+
red: "error",
|
|
986
|
+
obsidian: "neutral",
|
|
987
|
+
indigo: "neutral",
|
|
988
|
+
gray: "neutral",
|
|
989
|
+
dark: "neutral"
|
|
990
|
+
}).flatMap(([e, t]) => [
|
|
991
|
+
[`--mantine-color-${e}-light`, `var(--ds-tag-${t}-bg)`],
|
|
992
|
+
[`--mantine-color-${e}-light-hover`, `var(--ds-tag-${t}-hover)`],
|
|
993
|
+
[`--mantine-color-${e}-light-color`, `var(--ds-tag-${t}-color)`]
|
|
994
|
+
])), Mr = (e) => Object.fromEntries(e.map((e, t) => [`--jc-chart-${t + 1}`, e])), Nr = () => ({
|
|
995
|
+
variables: kr(),
|
|
996
|
+
light: {
|
|
997
|
+
...Or(_.light),
|
|
998
|
+
...Ar.light,
|
|
999
|
+
...Mr(te.light),
|
|
1000
|
+
...jr,
|
|
1001
|
+
"--ds-success": f.success,
|
|
1002
|
+
"--ds-warn": f.warn,
|
|
1003
|
+
"--ds-error": f.error,
|
|
1004
|
+
"--jc-on-filled": "#FFFFFF",
|
|
1005
|
+
"--mantine-primary-color-contrast": "#FFFFFF",
|
|
1006
|
+
"--jc-logo-shield": "#0E36E3",
|
|
1007
|
+
"--jc-logo-letters": "#0E36E3",
|
|
1008
|
+
"--jc-logo-wordmark": "#0E36E3",
|
|
1009
|
+
"--jc-art-primary": "#2A2758",
|
|
1010
|
+
"--jc-art-ink": "#0C0C0C",
|
|
1011
|
+
"--jc-art-paper": "#FFFFFF"
|
|
1012
|
+
},
|
|
1013
|
+
dark: {
|
|
1014
|
+
...Or(_.dark),
|
|
1015
|
+
...Ar.dark,
|
|
1016
|
+
...Mr(te.dark),
|
|
1017
|
+
...jr,
|
|
1018
|
+
"--ds-success": m.evergreen[400],
|
|
1019
|
+
"--ds-warn": m.electric[300],
|
|
1020
|
+
"--ds-error": m.danger[400],
|
|
1021
|
+
"--jc-on-filled": g.obsidian,
|
|
1022
|
+
"--mantine-primary-color-contrast": g.obsidian,
|
|
1023
|
+
"--jc-logo-shield": "#FFFFFF",
|
|
1024
|
+
"--jc-logo-letters": "#FFFFFF",
|
|
1025
|
+
"--jc-logo-wordmark": "#FFFFFF",
|
|
1026
|
+
"--jc-art-primary": m.horizon[300],
|
|
1027
|
+
"--jc-art-ink": _.dark.text,
|
|
1028
|
+
"--jc-art-paper": _.dark.surface2,
|
|
1029
|
+
"--mantine-color-error": m.danger[400],
|
|
1030
|
+
"--mantine-color-success": m.evergreen[400]
|
|
1031
|
+
}
|
|
1032
|
+
}), Pr = "mantine-color-scheme-value", Fr = (e) => e === "light" || e === "dark" || e === "auto";
|
|
1033
|
+
function Ir(e) {
|
|
1034
|
+
try {
|
|
1035
|
+
let t = typeof window < "u" ? window.localStorage.getItem(e) : null;
|
|
1036
|
+
return Fr(t) ? t : void 0;
|
|
1037
|
+
} catch {
|
|
1038
|
+
return;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
var Lr = A({
|
|
1042
|
+
name: "JcColorSchemePersistence",
|
|
1043
|
+
props: { storageKey: {
|
|
1044
|
+
type: String,
|
|
1045
|
+
required: !0
|
|
1046
|
+
} },
|
|
1047
|
+
setup(e) {
|
|
1048
|
+
let { colorScheme: t } = gn();
|
|
1049
|
+
return Mn(t, (t) => {
|
|
1050
|
+
try {
|
|
1051
|
+
window.localStorage.setItem(e.storageKey, t);
|
|
1052
|
+
} catch {}
|
|
1053
|
+
}), () => null;
|
|
1054
|
+
}
|
|
1055
|
+
}), Rr = A({
|
|
1056
|
+
name: "JcProvider",
|
|
1057
|
+
inheritAttrs: !1,
|
|
1058
|
+
props: {
|
|
1059
|
+
theme: {
|
|
1060
|
+
type: Object,
|
|
1061
|
+
default: void 0
|
|
1062
|
+
},
|
|
1063
|
+
defaultColorScheme: {
|
|
1064
|
+
type: String,
|
|
1065
|
+
default: "light"
|
|
1066
|
+
},
|
|
1067
|
+
forceColorScheme: {
|
|
1068
|
+
type: String,
|
|
1069
|
+
default: void 0
|
|
1070
|
+
},
|
|
1071
|
+
cssVariablesResolver: {
|
|
1072
|
+
type: Function,
|
|
1073
|
+
default: void 0
|
|
1074
|
+
},
|
|
1075
|
+
colorSchemeStorageKey: {
|
|
1076
|
+
type: [String, Boolean],
|
|
1077
|
+
default: Pr
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
setup(e, { attrs: t, slots: n }) {
|
|
1081
|
+
let r = w(() => e.theme ? Nn(Er, e.theme) : Er), i = e.colorSchemeStorageKey ? Ir(e.colorSchemeStorageKey) : void 0;
|
|
1082
|
+
return () => M(mt, {
|
|
1083
|
+
...t,
|
|
1084
|
+
theme: r.value,
|
|
1085
|
+
defaultColorScheme: i ?? e.defaultColorScheme,
|
|
1086
|
+
forceColorScheme: e.forceColorScheme,
|
|
1087
|
+
cssVariablesResolver: e.cssVariablesResolver ?? Nr
|
|
1088
|
+
}, () => [e.colorSchemeStorageKey ? M(Lr, { storageKey: e.colorSchemeStorageKey }) : null, n.default?.()]);
|
|
1089
|
+
}
|
|
1090
|
+
}), zr = {
|
|
1091
|
+
primary: "horizon",
|
|
1092
|
+
success: "evergreen",
|
|
1093
|
+
warn: "electric",
|
|
1094
|
+
error: "danger",
|
|
1095
|
+
neutral: "obsidian"
|
|
1096
|
+
}, Br = {
|
|
1097
|
+
primary: Gn,
|
|
1098
|
+
success: Bn,
|
|
1099
|
+
warn: Pn,
|
|
1100
|
+
error: Zn,
|
|
1101
|
+
neutral: null
|
|
1102
|
+
}, Vr = A({
|
|
1103
|
+
name: "Tag",
|
|
1104
|
+
inheritAttrs: !1,
|
|
1105
|
+
props: {
|
|
1106
|
+
tone: {
|
|
1107
|
+
type: String,
|
|
1108
|
+
default: "primary"
|
|
1109
|
+
},
|
|
1110
|
+
withIcon: {
|
|
1111
|
+
type: Boolean,
|
|
1112
|
+
default: !1
|
|
1113
|
+
},
|
|
1114
|
+
variant: {
|
|
1115
|
+
type: String,
|
|
1116
|
+
default: "light"
|
|
1117
|
+
}
|
|
1118
|
+
},
|
|
1119
|
+
setup(e, { attrs: t, slots: n }) {
|
|
1120
|
+
return () => {
|
|
1121
|
+
let r = Br[e.tone], i = n.leftSection || t.leftSection !== void 0 || t["left-section"] !== void 0, a = n.leftSection ?? (!i && e.withIcon && r ? () => M(r, {
|
|
1122
|
+
size: 12,
|
|
1123
|
+
stroke: 2.5
|
|
1124
|
+
}) : void 0);
|
|
1125
|
+
return M(Fe, {
|
|
1126
|
+
color: zr[e.tone],
|
|
1127
|
+
variant: e.variant,
|
|
1128
|
+
"data-tone": e.tone,
|
|
1129
|
+
...t
|
|
1130
|
+
}, {
|
|
1131
|
+
...n,
|
|
1132
|
+
...a && { leftSection: a }
|
|
1133
|
+
});
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
//#endregion
|
|
1138
|
+
//#region src/utils/vue.ts
|
|
1139
|
+
function Z(e) {
|
|
1140
|
+
if (e == null || e === !1 || e === !0 || e === "") return !1;
|
|
1141
|
+
if (Array.isArray(e)) return e.some((e) => Z(e));
|
|
1142
|
+
if (Tn(e)) {
|
|
1143
|
+
if (e.type === yn) return !1;
|
|
1144
|
+
if (e.type === xn) return typeof e.children == "string" && e.children.trim() !== "";
|
|
1145
|
+
if (e.type === bn) return Z(e.children);
|
|
1146
|
+
}
|
|
1147
|
+
return !0;
|
|
1148
|
+
}
|
|
1149
|
+
function Q(e, t) {
|
|
1150
|
+
let n = C(e, t);
|
|
1151
|
+
return Z(n) ? n : void 0;
|
|
1152
|
+
}
|
|
1153
|
+
function Hr() {
|
|
1154
|
+
let e = wn();
|
|
1155
|
+
return (t) => {
|
|
1156
|
+
let n = e?.vnode.props;
|
|
1157
|
+
return n ? !!(n[kn(t)] || n[kn(Sn(t))]) : !1;
|
|
1158
|
+
};
|
|
1159
|
+
}
|
|
1160
|
+
var Ur = {
|
|
1161
|
+
type: null,
|
|
1162
|
+
default: void 0
|
|
1163
|
+
}, Wr = {
|
|
1164
|
+
horizon: {
|
|
1165
|
+
bg: "var(--dc-horizon-700)",
|
|
1166
|
+
color: "#fff",
|
|
1167
|
+
highlight: "var(--dc-electric)"
|
|
1168
|
+
},
|
|
1169
|
+
electric: {
|
|
1170
|
+
bg: "var(--dc-electric)",
|
|
1171
|
+
color: "var(--dc-obsidian)",
|
|
1172
|
+
highlight: "var(--dc-horizon-700)"
|
|
1173
|
+
},
|
|
1174
|
+
obsidian: {
|
|
1175
|
+
bg: "var(--dc-obsidian)",
|
|
1176
|
+
color: "#fff",
|
|
1177
|
+
highlight: "var(--dc-electric)"
|
|
1178
|
+
}
|
|
1179
|
+
}, Gr = cn((e, { variant: t = "horizon", radius: n }) => ({ root: {
|
|
1180
|
+
"--banner-bg": Wr[t].bg,
|
|
1181
|
+
"--banner-color": Wr[t].color,
|
|
1182
|
+
"--banner-highlight": Wr[t].highlight,
|
|
1183
|
+
"--banner-radius": n === void 0 ? void 0 : dn(n)
|
|
1184
|
+
} })), Kr = {
|
|
1185
|
+
root: "jc-PromoBanner-root-ea180",
|
|
1186
|
+
highlight: "jc-PromoBanner-highlight-1ead9",
|
|
1187
|
+
content: "jc-PromoBanner-content-118h9",
|
|
1188
|
+
close: "jc-PromoBanner-close-g82r6"
|
|
1189
|
+
}, qr = un(/* @__PURE__ */ A({
|
|
1190
|
+
name: "PromoBanner",
|
|
1191
|
+
inheritAttrs: !1,
|
|
1192
|
+
__name: "PromoBanner",
|
|
1193
|
+
props: {
|
|
1194
|
+
variant: { default: void 0 },
|
|
1195
|
+
highlight: { default: void 0 },
|
|
1196
|
+
icon: { default: void 0 },
|
|
1197
|
+
withCloseButton: {
|
|
1198
|
+
type: Boolean,
|
|
1199
|
+
default: void 0
|
|
1200
|
+
},
|
|
1201
|
+
opened: {
|
|
1202
|
+
type: Boolean,
|
|
1203
|
+
default: void 0
|
|
1204
|
+
},
|
|
1205
|
+
radius: { default: void 0 },
|
|
1206
|
+
classNames: { default: void 0 },
|
|
1207
|
+
styles: { default: void 0 },
|
|
1208
|
+
vars: { default: void 0 },
|
|
1209
|
+
unstyled: {
|
|
1210
|
+
type: Boolean,
|
|
1211
|
+
default: void 0
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
emits: ["close", "update:opened"],
|
|
1215
|
+
setup(e, { emit: t }) {
|
|
1216
|
+
let n = e, r = t, i = An(), a = jn(), o = _n("PromoBanner", { variant: "horizon" }, n), [s, c] = er({
|
|
1217
|
+
value: () => o.opened,
|
|
1218
|
+
defaultValue: !0,
|
|
1219
|
+
onChange: (e) => r("update:opened", e)
|
|
1220
|
+
}), l = vn({
|
|
1221
|
+
name: "PromoBanner",
|
|
1222
|
+
classes: Kr,
|
|
1223
|
+
props: o,
|
|
1224
|
+
get className() {
|
|
1225
|
+
return i.class;
|
|
1226
|
+
},
|
|
1227
|
+
get style() {
|
|
1228
|
+
return i.style;
|
|
1229
|
+
},
|
|
1230
|
+
get classNames() {
|
|
1231
|
+
return o.classNames;
|
|
1232
|
+
},
|
|
1233
|
+
get styles() {
|
|
1234
|
+
return o.styles;
|
|
1235
|
+
},
|
|
1236
|
+
get vars() {
|
|
1237
|
+
return o.vars;
|
|
1238
|
+
},
|
|
1239
|
+
get unstyled() {
|
|
1240
|
+
return o.unstyled;
|
|
1241
|
+
},
|
|
1242
|
+
varsResolver: Gr
|
|
1243
|
+
}), u = () => Q(o.icon, a.icon), d = () => Q(o.highlight, a.highlight);
|
|
1244
|
+
function f() {
|
|
1245
|
+
c(!1), r("close");
|
|
1246
|
+
}
|
|
1247
|
+
return (e, t) => R(s) ? (F(), T(R(b), N({
|
|
1248
|
+
key: 0,
|
|
1249
|
+
role: "note"
|
|
1250
|
+
}, {
|
|
1251
|
+
...R(i),
|
|
1252
|
+
...R(l)("root")
|
|
1253
|
+
}, {
|
|
1254
|
+
variant: R(o).variant,
|
|
1255
|
+
mod: [{
|
|
1256
|
+
radius: R(o).radius !== void 0,
|
|
1257
|
+
closable: R(o).withCloseButton
|
|
1258
|
+
}, R(i).mod]
|
|
1259
|
+
}), {
|
|
1260
|
+
default: z(() => [O("span", P(j(R(l)("content"))), [
|
|
1261
|
+
(F(), T(I(u))),
|
|
1262
|
+
O("span", null, [On(e.$slots, "default")]),
|
|
1263
|
+
R(Z)(d()) ? (F(), D("strong", P(N({ key: 0 }, R(l)("highlight"))), [(F(), T(I(d)))], 16)) : E("", !0)
|
|
1264
|
+
], 16), R(o).withCloseButton ? (F(), T(R(Ke), N({
|
|
1265
|
+
key: 0,
|
|
1266
|
+
"aria-label": "Fechar",
|
|
1267
|
+
size: "sm",
|
|
1268
|
+
variant: "transparent"
|
|
1269
|
+
}, R(l)("close"), { onClick: f }), null, 16)) : E("", !0)]),
|
|
1270
|
+
_: 3
|
|
1271
|
+
}, 16, ["variant", "mod"])) : E("", !0);
|
|
1272
|
+
}
|
|
1273
|
+
}), {
|
|
1274
|
+
classes: Kr,
|
|
1275
|
+
varsResolver: Gr
|
|
1276
|
+
}), Jr = {
|
|
1277
|
+
root: "jc-ContentCard-root-1onkj",
|
|
1278
|
+
image: "jc-ContentCard-image-xcrki",
|
|
1279
|
+
kicker: "jc-ContentCard-kicker-14g3b",
|
|
1280
|
+
title: "jc-ContentCard-title-xir5a",
|
|
1281
|
+
body: "jc-ContentCard-body-1onab",
|
|
1282
|
+
actions: "jc-ContentCard-actions-13191"
|
|
1283
|
+
}, Yr = ["src", "alt"], Xr = un(/* @__PURE__ */ A({
|
|
1284
|
+
name: "ContentCard",
|
|
1285
|
+
inheritAttrs: !1,
|
|
1286
|
+
__name: "ContentCard",
|
|
1287
|
+
props: {
|
|
1288
|
+
kicker: { default: void 0 },
|
|
1289
|
+
title: { default: void 0 },
|
|
1290
|
+
image: { default: void 0 },
|
|
1291
|
+
imageAlt: { default: void 0 },
|
|
1292
|
+
imageHeight: { default: void 0 },
|
|
1293
|
+
actions: { default: void 0 },
|
|
1294
|
+
classNames: { default: void 0 },
|
|
1295
|
+
styles: { default: void 0 },
|
|
1296
|
+
vars: { default: void 0 },
|
|
1297
|
+
unstyled: {
|
|
1298
|
+
type: Boolean,
|
|
1299
|
+
default: void 0
|
|
1300
|
+
}
|
|
1301
|
+
},
|
|
1302
|
+
setup(e) {
|
|
1303
|
+
let t = e, n = An(), r = jn(), i = _n("ContentCard", { imageHeight: 180 }, t), a = vn({
|
|
1304
|
+
name: "ContentCard",
|
|
1305
|
+
classes: Jr,
|
|
1306
|
+
props: i,
|
|
1307
|
+
get className() {
|
|
1308
|
+
return n.class;
|
|
1309
|
+
},
|
|
1310
|
+
get style() {
|
|
1311
|
+
return n.style;
|
|
1312
|
+
},
|
|
1313
|
+
get classNames() {
|
|
1314
|
+
return i.classNames;
|
|
1315
|
+
},
|
|
1316
|
+
get styles() {
|
|
1317
|
+
return i.styles;
|
|
1318
|
+
},
|
|
1319
|
+
get vars() {
|
|
1320
|
+
return i.vars;
|
|
1321
|
+
},
|
|
1322
|
+
get unstyled() {
|
|
1323
|
+
return i.unstyled;
|
|
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), d = () => !r.image && typeof i.image == "string" && i.image ? i.image : void 0, f = () => Q(i.image, r.image);
|
|
1326
|
+
return (e, t) => (F(), T(R(u), P(j({
|
|
1327
|
+
...R(n),
|
|
1328
|
+
...R(a)("root")
|
|
1329
|
+
})), {
|
|
1330
|
+
default: z(() => [
|
|
1331
|
+
d() || R(Z)(f()) ? (F(), D("div", P(N({ key: 0 }, R(a)("image"))), [d() ? (F(), D("img", {
|
|
1332
|
+
key: 0,
|
|
1333
|
+
src: d(),
|
|
1334
|
+
alt: R(i).imageAlt ?? "",
|
|
1335
|
+
style: En({ height: `${R(i).imageHeight}px` })
|
|
1336
|
+
}, null, 12, Yr)) : (F(), T(I(f), { key: 1 }))], 16)) : E("", !0),
|
|
1337
|
+
R(Z)(o()) ? (F(), T(R(y), P(N({ key: 1 }, R(a)("kicker"))), {
|
|
1338
|
+
default: z(() => [(F(), T(I(o)))]),
|
|
1339
|
+
_: 1
|
|
1340
|
+
}, 16)) : E("", !0),
|
|
1341
|
+
R(Z)(s()) ? (F(), D("div", P(N({ key: 2 }, R(a)("title"))), [(F(), T(I(s)))], 16)) : E("", !0),
|
|
1342
|
+
R(Z)(l()) ? (F(), D("div", P(N({ key: 3 }, R(a)("body"))), [(F(), T(I(l)))], 16)) : E("", !0),
|
|
1343
|
+
R(Z)(c()) ? (F(), D("div", P(N({ key: 4 }, R(a)("actions"))), [(F(), T(I(c)))], 16)) : E("", !0)
|
|
1344
|
+
]),
|
|
1345
|
+
_: 1
|
|
1346
|
+
}, 16));
|
|
1347
|
+
}
|
|
1348
|
+
}), { classes: Jr });
|
|
1349
|
+
//#endregion
|
|
1350
|
+
//#region src/components/KpiCard/KpiCard.vars.ts
|
|
1351
|
+
function Zr(e, t = !1) {
|
|
1352
|
+
return e === void 0 || e === 0 || Number.isNaN(e) ? "flat" : e > 0 === t ? "down" : "up";
|
|
1353
|
+
}
|
|
1354
|
+
var Qr = {
|
|
1355
|
+
up: "var(--ds-success)",
|
|
1356
|
+
down: "var(--ds-error)",
|
|
1357
|
+
flat: "var(--ds-text-3)"
|
|
1358
|
+
}, $r = cn((e, { delta: t, invertDelta: n, colorValue: r }) => {
|
|
1359
|
+
let i = Zr(t, n);
|
|
1360
|
+
return { root: {
|
|
1361
|
+
"--kpi-delta-color": Qr[i],
|
|
1362
|
+
"--kpi-value-color": r && i !== "flat" ? Qr[i] : void 0
|
|
1363
|
+
} };
|
|
1364
|
+
}), ei = {
|
|
1365
|
+
root: "jc-KpiCard-root-12p58",
|
|
1366
|
+
header: "jc-KpiCard-header-z6ndb",
|
|
1367
|
+
label: "jc-KpiCard-label-1r25g",
|
|
1368
|
+
icon: "jc-KpiCard-icon-12oz8",
|
|
1369
|
+
value: "jc-KpiCard-value-1r7nl",
|
|
1370
|
+
footer: "jc-KpiCard-footer-yebc4",
|
|
1371
|
+
delta: "jc-KpiCard-delta-1qxtv",
|
|
1372
|
+
chart: "jc-KpiCard-chart-1qxbr"
|
|
1373
|
+
}, ti = ["data-tone"], ni = { key: 1 }, ri = /* @__PURE__ */ A({
|
|
1374
|
+
name: "KpiCard",
|
|
1375
|
+
inheritAttrs: !1,
|
|
1376
|
+
__name: "KpiCard",
|
|
1377
|
+
props: {
|
|
1378
|
+
label: { default: void 0 },
|
|
1379
|
+
value: { default: void 0 },
|
|
1380
|
+
delta: { default: void 0 },
|
|
1381
|
+
deltaLabel: { default: void 0 },
|
|
1382
|
+
invertDelta: {
|
|
1383
|
+
type: Boolean,
|
|
1384
|
+
default: void 0
|
|
1385
|
+
},
|
|
1386
|
+
colorValue: {
|
|
1387
|
+
type: Boolean,
|
|
1388
|
+
default: void 0
|
|
1389
|
+
},
|
|
1390
|
+
icon: { default: void 0 },
|
|
1391
|
+
chart: { default: void 0 },
|
|
1392
|
+
loading: {
|
|
1393
|
+
type: Boolean,
|
|
1394
|
+
default: void 0
|
|
1395
|
+
},
|
|
1396
|
+
classNames: { default: void 0 },
|
|
1397
|
+
styles: { default: void 0 },
|
|
1398
|
+
vars: { default: void 0 },
|
|
1399
|
+
unstyled: {
|
|
1400
|
+
type: Boolean,
|
|
1401
|
+
default: void 0
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
setup(e) {
|
|
1405
|
+
let t = e, n = An(), r = jn(), i = _n("KpiCard", {}, t), a = vn({
|
|
1406
|
+
name: "KpiCard",
|
|
1407
|
+
classes: ei,
|
|
1408
|
+
props: i,
|
|
1409
|
+
get className() {
|
|
1410
|
+
return n.class;
|
|
1411
|
+
},
|
|
1412
|
+
get style() {
|
|
1413
|
+
return n.style;
|
|
1414
|
+
},
|
|
1415
|
+
get classNames() {
|
|
1416
|
+
return i.classNames;
|
|
1417
|
+
},
|
|
1418
|
+
get styles() {
|
|
1419
|
+
return i.styles;
|
|
1420
|
+
},
|
|
1421
|
+
get vars() {
|
|
1422
|
+
return i.vars;
|
|
1423
|
+
},
|
|
1424
|
+
get unstyled() {
|
|
1425
|
+
return i.unstyled;
|
|
1426
|
+
},
|
|
1427
|
+
varsResolver: $r
|
|
1428
|
+
}), o = () => Q(i.label, r.label), s = () => {
|
|
1429
|
+
let e = Q(i.value, r.value);
|
|
1430
|
+
return typeof e == "number" ? ae(e) : e;
|
|
1431
|
+
}, c = () => Q(i.deltaLabel, r.deltaLabel), l = () => Q(i.icon, r.icon), u = () => Q(i.chart, r.chart), d = () => Zr(i.delta, i.invertDelta), f = () => i.delta === void 0 || i.delta === 0 ? Kn : i.delta > 0 ? Rn : In;
|
|
1432
|
+
return (e, t) => (F(), T(R(b), P(j({
|
|
1433
|
+
...R(n),
|
|
1434
|
+
...R(a)("root")
|
|
1435
|
+
})), {
|
|
1436
|
+
default: z(() => [
|
|
1437
|
+
O("div", P(j(R(a)("header"))), [O("span", P(j(R(a)("label"))), [(F(), T(I(o)))], 16), R(Z)(l()) ? (F(), D("span", P(N({ key: 0 }, R(a)("icon"))), [(F(), T(I(l)))], 16)) : E("", !0)], 16),
|
|
1438
|
+
R(i).loading ? (F(), T(R(Vt), {
|
|
1439
|
+
key: 0,
|
|
1440
|
+
height: 32,
|
|
1441
|
+
width: "60%",
|
|
1442
|
+
mt: 4
|
|
1443
|
+
})) : (F(), D("div", P(N({ key: 1 }, R(a)("value"))), [(F(), T(I(s)))], 16)),
|
|
1444
|
+
(R(i).delta !== void 0 || R(Z)(c())) && !R(i).loading ? (F(), D("div", P(N({ key: 2 }, R(a)("footer"))), [R(i).delta === void 0 ? E("", !0) : (F(), D("span", N({ key: 0 }, R(a)("delta"), { "data-tone": d() }), [(F(), T(I(f()), {
|
|
1445
|
+
size: 14,
|
|
1446
|
+
stroke: "2.5"
|
|
1447
|
+
})), Cn(" " + L(R(de)(R(i).delta, { signed: !0 })), 1)], 16, ti)), R(Z)(c()) ? (F(), D("span", ni, [(F(), T(I(c)))])) : E("", !0)], 16)) : E("", !0),
|
|
1448
|
+
R(Z)(u()) ? (F(), D("div", P(N({ key: 3 }, R(a)("chart"))), [(F(), T(I(u)))], 16)) : E("", !0)
|
|
1449
|
+
]),
|
|
1450
|
+
_: 1
|
|
1451
|
+
}, 16));
|
|
1452
|
+
}
|
|
1453
|
+
}), ii = A({
|
|
1454
|
+
name: "KpiGroup",
|
|
1455
|
+
inheritAttrs: !1,
|
|
1456
|
+
props: {
|
|
1457
|
+
cols: {
|
|
1458
|
+
type: [Number, Object],
|
|
1459
|
+
default: () => ({
|
|
1460
|
+
base: 1,
|
|
1461
|
+
"440px": 2,
|
|
1462
|
+
"880px": 4
|
|
1463
|
+
})
|
|
1464
|
+
},
|
|
1465
|
+
spacing: {
|
|
1466
|
+
type: [
|
|
1467
|
+
String,
|
|
1468
|
+
Number,
|
|
1469
|
+
Object
|
|
1470
|
+
],
|
|
1471
|
+
default: "md"
|
|
1472
|
+
},
|
|
1473
|
+
type: {
|
|
1474
|
+
type: String,
|
|
1475
|
+
default: "container"
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
setup(e, { attrs: t, slots: n }) {
|
|
1479
|
+
return () => M(Bt, {
|
|
1480
|
+
type: e.type,
|
|
1481
|
+
cols: e.cols,
|
|
1482
|
+
spacing: e.spacing,
|
|
1483
|
+
...t
|
|
1484
|
+
}, n);
|
|
1485
|
+
}
|
|
1486
|
+
}), ai = un(ri, {
|
|
1487
|
+
classes: ei,
|
|
1488
|
+
varsResolver: $r
|
|
1489
|
+
}), oi = A({
|
|
1490
|
+
name: "PageHeader",
|
|
1491
|
+
inheritAttrs: !1,
|
|
1492
|
+
props: {
|
|
1493
|
+
kicker: Ur,
|
|
1494
|
+
title: Ur,
|
|
1495
|
+
description: Ur,
|
|
1496
|
+
actions: Ur,
|
|
1497
|
+
breadcrumbs: {
|
|
1498
|
+
type: Array,
|
|
1499
|
+
default: void 0
|
|
1500
|
+
},
|
|
1501
|
+
linkComponent: {
|
|
1502
|
+
type: [
|
|
1503
|
+
String,
|
|
1504
|
+
Object,
|
|
1505
|
+
Function
|
|
1506
|
+
],
|
|
1507
|
+
default: "a"
|
|
1508
|
+
},
|
|
1509
|
+
size: {
|
|
1510
|
+
type: String,
|
|
1511
|
+
default: "headline"
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
setup(e, { attrs: t, slots: n }) {
|
|
1515
|
+
return () => {
|
|
1516
|
+
let r = Q(e.kicker, n.kicker), i = C(e.title, n.title), a = Q(e.description, n.description), o = Q(e.actions, n.actions), { breadcrumbs: s, linkComponent: c } = e;
|
|
1517
|
+
return M(b, {
|
|
1518
|
+
mb: "xl",
|
|
1519
|
+
...t
|
|
1520
|
+
}, () => [s && s.length > 0 ? M(Le, {
|
|
1521
|
+
mb: "sm",
|
|
1522
|
+
fz: "sm",
|
|
1523
|
+
separatorMargin: 6
|
|
1524
|
+
}, () => s.map((e, t) => e.href ? M(je, {
|
|
1525
|
+
key: t,
|
|
1526
|
+
component: c,
|
|
1527
|
+
href: e.href,
|
|
1528
|
+
...c !== "a" && { to: e.href },
|
|
1529
|
+
fz: "sm"
|
|
1530
|
+
}, () => C(e.label)) : M(b, {
|
|
1531
|
+
key: t,
|
|
1532
|
+
component: "span",
|
|
1533
|
+
c: "var(--ds-text-3)",
|
|
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, {
|
|
1546
|
+
component: "h1",
|
|
1547
|
+
size: "lg",
|
|
1548
|
+
fz: "var(--type-display-sm)",
|
|
1549
|
+
lh: 1.15,
|
|
1550
|
+
mt: 8
|
|
1551
|
+
}, () => i) : M(he, {
|
|
1552
|
+
component: "h1",
|
|
1553
|
+
size: "lg",
|
|
1554
|
+
mt: r === void 0 ? 0 : 8
|
|
1555
|
+
}, () => i),
|
|
1556
|
+
a === void 0 ? null : M(se, {
|
|
1557
|
+
component: "div",
|
|
1558
|
+
size: "lg",
|
|
1559
|
+
c: "var(--ds-text-2)",
|
|
1560
|
+
maw: 640,
|
|
1561
|
+
mt: 8
|
|
1562
|
+
}, () => a)
|
|
1563
|
+
]), o === void 0 ? null : M(x, { gap: "sm" }, () => o)])]);
|
|
1564
|
+
};
|
|
1565
|
+
}
|
|
1566
|
+
}), si = {
|
|
1567
|
+
wrapper: "jc-DataTable-wrapper-1saie",
|
|
1568
|
+
num: "jc-DataTable-num-1nq3v",
|
|
1569
|
+
sortButton: "jc-DataTable-sortButton-z9h2e",
|
|
1570
|
+
row: "jc-DataTable-row-1nq3y",
|
|
1571
|
+
footer: "jc-DataTable-footer-gwddl"
|
|
1572
|
+
}, ci = (e) => e.id ?? e.key ?? "";
|
|
1573
|
+
function li(e, t) {
|
|
1574
|
+
return typeof e == "number" && typeof t == "number" ? e - t : String(e ?? "").localeCompare(String(t ?? ""), "pt-BR", {
|
|
1575
|
+
numeric: !0,
|
|
1576
|
+
sensitivity: "base"
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
var ui = A((e, { attrs: t, slots: n, emit: r }) => {
|
|
1580
|
+
let [i, a] = er({
|
|
1581
|
+
value: () => e.sort,
|
|
1582
|
+
defaultValue: e.initialSort ?? null,
|
|
1583
|
+
onChange: (e) => {
|
|
1584
|
+
r("update:sort", e), r("sort-change", e);
|
|
1585
|
+
}
|
|
1586
|
+
}), o = Dn(1), s = (e) => {
|
|
1587
|
+
a(e), o.value = 1;
|
|
1588
|
+
}, c = (e) => {
|
|
1589
|
+
let t = i.value;
|
|
1590
|
+
!t || t.key !== e ? s({
|
|
1591
|
+
key: e,
|
|
1592
|
+
direction: "asc"
|
|
1593
|
+
}) : t.direction === "asc" ? s({
|
|
1594
|
+
key: e,
|
|
1595
|
+
direction: "desc"
|
|
1596
|
+
}) : s(null);
|
|
1597
|
+
}, l = w(() => {
|
|
1598
|
+
let t = i.value;
|
|
1599
|
+
if (!t) return e.data;
|
|
1600
|
+
let n = e.columns.find((e) => ci(e) === t.key), r = n?.sortValue ?? ((e) => n?.key ? e[n.key] : void 0), a = [...e.data].sort((e, t) => li(r(e), r(t)));
|
|
1601
|
+
return t.direction === "desc" ? a.reverse() : a;
|
|
1602
|
+
}), u = Hr();
|
|
1603
|
+
return () => {
|
|
1604
|
+
let { columns: a, pageSize: s, loading: f, plain: p, striped: ee, stickyHeader: m, tableProps: te } = e, ne = e.loadingRows ?? 5, h = i.value, re = l.value.length, ie = s ? Math.max(1, Math.ceil(re / s)) : 1, g = Math.min(o.value, ie), _ = s ? l.value.slice((g - 1) * s, g * s) : l.value, v = u("row-click"), oe = M(Qt, null, () => M($t, null, () => a.map((e) => {
|
|
1605
|
+
let t = ci(e), r = h?.key === t, i = r ? h.direction === "asc" ? Ln : Fn : zn, a = C(e.header, n[`header-${t}`]);
|
|
1606
|
+
return M(Zt, {
|
|
1607
|
+
key: t,
|
|
1608
|
+
class: e.numeric ? si.num : void 0,
|
|
1609
|
+
style: { width: typeof e.width == "number" ? `${e.width}px` : e.width },
|
|
1610
|
+
"aria-sort": r ? h.direction === "asc" ? "ascending" : "descending" : void 0
|
|
1611
|
+
}, () => e.sortable ? M("button", {
|
|
1612
|
+
type: "button",
|
|
1613
|
+
class: si.sortButton,
|
|
1614
|
+
"data-sorted": r || void 0,
|
|
1615
|
+
onClick: () => c(t)
|
|
1616
|
+
}, [a, M(i, {
|
|
1617
|
+
size: 12,
|
|
1618
|
+
stroke: "2.5",
|
|
1619
|
+
opacity: r ? 1 : .5
|
|
1620
|
+
})]) : a);
|
|
1621
|
+
}))), y;
|
|
1622
|
+
if (f) y = Array.from({ length: ne }, (e, t) => M($t, { key: t }, () => a.map((e) => M(Xt, { key: ci(e) }, () => M(Vt, {
|
|
1623
|
+
height: 14,
|
|
1624
|
+
width: e.numeric ? "50%" : "80%",
|
|
1625
|
+
ml: e.numeric ? "auto" : 0
|
|
1626
|
+
})))));
|
|
1627
|
+
else if (_.length === 0) {
|
|
1628
|
+
let t = C(e.empty, n.empty);
|
|
1629
|
+
y = M($t, null, () => M(Xt, { colspan: a.length }, () => t ?? M(tt, {
|
|
1630
|
+
py: "xl",
|
|
1631
|
+
size: "sm",
|
|
1632
|
+
icon: () => M(Hn, { size: 22 }),
|
|
1633
|
+
title: "Nenhum resultado",
|
|
1634
|
+
description: "Não há dados para exibir com os filtros atuais."
|
|
1635
|
+
})));
|
|
1636
|
+
} else y = _.map((t, i) => M($t, {
|
|
1637
|
+
key: e.rowKey ? e.rowKey(t, i) : i,
|
|
1638
|
+
class: si.row,
|
|
1639
|
+
"data-clickable": v ? !0 : void 0,
|
|
1640
|
+
tabindex: v ? 0 : void 0,
|
|
1641
|
+
onClick: v ? () => r("row-click", t, i) : void 0,
|
|
1642
|
+
onKeydown: v ? (e) => {
|
|
1643
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), r("row-click", t, i));
|
|
1644
|
+
} : void 0
|
|
1645
|
+
}, () => a.map((e) => {
|
|
1646
|
+
let r = ci(e), a = n[`cell-${r}`], o = e.key ? t[e.key] : void 0, s = a ? a({
|
|
1647
|
+
row: t,
|
|
1648
|
+
index: i
|
|
1649
|
+
}) : e.render ? e.render(t, i) : e.numeric && typeof o == "number" ? ae(o, e.format) : o;
|
|
1650
|
+
return M(Xt, {
|
|
1651
|
+
key: r,
|
|
1652
|
+
class: e.numeric ? si.num : void 0
|
|
1653
|
+
}, () => s);
|
|
1654
|
+
})));
|
|
1655
|
+
return M(b, N({
|
|
1656
|
+
class: si.wrapper,
|
|
1657
|
+
"data-plain": p || void 0
|
|
1658
|
+
}, t), () => [M(Lt, { type: "auto" }, () => M(d, {
|
|
1659
|
+
striped: ee,
|
|
1660
|
+
stickyHeader: m,
|
|
1661
|
+
...te
|
|
1662
|
+
}, () => [oe, M(Yt, null, () => y)])), s && re > s ? M("div", { class: si.footer }, [M("span", `${ae((g - 1) * s + 1)}–${ae(Math.min(g * s, re))} de ${ae(re)}`), M(wt, {
|
|
1663
|
+
size: "sm",
|
|
1664
|
+
total: ie,
|
|
1665
|
+
modelValue: g,
|
|
1666
|
+
"onUpdate:modelValue": (e) => {
|
|
1667
|
+
o.value = e;
|
|
1668
|
+
}
|
|
1669
|
+
})]) : null]);
|
|
1670
|
+
};
|
|
1671
|
+
}, {
|
|
1672
|
+
name: "DataTable",
|
|
1673
|
+
inheritAttrs: !1,
|
|
1674
|
+
props: [
|
|
1675
|
+
"columns",
|
|
1676
|
+
"data",
|
|
1677
|
+
"rowKey",
|
|
1678
|
+
"initialSort",
|
|
1679
|
+
"sort",
|
|
1680
|
+
"pageSize",
|
|
1681
|
+
"loading",
|
|
1682
|
+
"loadingRows",
|
|
1683
|
+
"empty",
|
|
1684
|
+
"plain",
|
|
1685
|
+
"striped",
|
|
1686
|
+
"stickyHeader",
|
|
1687
|
+
"tableProps"
|
|
1688
|
+
],
|
|
1689
|
+
emits: [
|
|
1690
|
+
"update:sort",
|
|
1691
|
+
"sort-change",
|
|
1692
|
+
"row-click"
|
|
1693
|
+
]
|
|
1694
|
+
}), di = A({
|
|
1695
|
+
name: "ThemeToggle",
|
|
1696
|
+
inheritAttrs: !1,
|
|
1697
|
+
props: {
|
|
1698
|
+
as: {
|
|
1699
|
+
type: String,
|
|
1700
|
+
default: "icon"
|
|
1701
|
+
},
|
|
1702
|
+
label: {
|
|
1703
|
+
type: String,
|
|
1704
|
+
default: "Alternar tema"
|
|
1705
|
+
},
|
|
1706
|
+
variant: {
|
|
1707
|
+
type: String,
|
|
1708
|
+
default: void 0
|
|
1709
|
+
},
|
|
1710
|
+
color: {
|
|
1711
|
+
type: String,
|
|
1712
|
+
default: void 0
|
|
1713
|
+
},
|
|
1714
|
+
size: {
|
|
1715
|
+
type: [String, Number],
|
|
1716
|
+
default: void 0
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
setup(e, { attrs: t }) {
|
|
1720
|
+
let { setColorScheme: n } = gn(), r = hn("light", { getInitialValueInEffect: !0 }), i = () => n(r.value === "dark" ? "light" : "dark");
|
|
1721
|
+
return () => {
|
|
1722
|
+
let n = r.value === "dark" ? Yn : qn;
|
|
1723
|
+
return e.as === "button" ? M(ze, {
|
|
1724
|
+
variant: e.variant ?? "outline",
|
|
1725
|
+
color: e.color,
|
|
1726
|
+
size: e.size ?? "sm",
|
|
1727
|
+
leftSection: () => M(n, { size: 16 }),
|
|
1728
|
+
onClick: i,
|
|
1729
|
+
...t
|
|
1730
|
+
}, () => e.label) : M(Oe, {
|
|
1731
|
+
variant: e.variant ?? "subtle",
|
|
1732
|
+
color: e.color,
|
|
1733
|
+
size: e.size ?? "lg",
|
|
1734
|
+
onClick: i,
|
|
1735
|
+
"aria-label": e.label,
|
|
1736
|
+
title: e.label,
|
|
1737
|
+
...t
|
|
1738
|
+
}, () => M(n, { size: 18 }));
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
}), $ = {
|
|
1742
|
+
swatch: "jc-TokenSwatch-swatch-gyxea",
|
|
1743
|
+
color: "jc-TokenSwatch-color-1gzzi",
|
|
1744
|
+
info: "jc-TokenSwatch-info-1bjej",
|
|
1745
|
+
name: "jc-TokenSwatch-name-1bjhg",
|
|
1746
|
+
hex: "jc-TokenSwatch-hex-1kiwm",
|
|
1747
|
+
ramp: "jc-TokenSwatch-ramp-1bjk0",
|
|
1748
|
+
step: "jc-TokenSwatch-step-1bjl1"
|
|
1749
|
+
}, fi = A({
|
|
1750
|
+
name: "TokenSwatch",
|
|
1751
|
+
inheritAttrs: !1,
|
|
1752
|
+
props: {
|
|
1753
|
+
name: {
|
|
1754
|
+
type: String,
|
|
1755
|
+
required: !0
|
|
1756
|
+
},
|
|
1757
|
+
value: {
|
|
1758
|
+
type: String,
|
|
1759
|
+
required: !0
|
|
1760
|
+
},
|
|
1761
|
+
cssVar: {
|
|
1762
|
+
type: String,
|
|
1763
|
+
default: void 0
|
|
1764
|
+
},
|
|
1765
|
+
copy: {
|
|
1766
|
+
type: String,
|
|
1767
|
+
default: "value"
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
setup(e, { attrs: t }) {
|
|
1771
|
+
let r = Qn({ timeout: 1200 });
|
|
1772
|
+
return () => {
|
|
1773
|
+
let i = e.copy === "cssVar" && e.cssVar ? `var(${e.cssVar})` : e.value;
|
|
1774
|
+
return M(n, {
|
|
1775
|
+
label: r.copied.value ? "Copiado!" : `Copiar ${i}`,
|
|
1776
|
+
withArrow: !0
|
|
1777
|
+
}, () => M("button", N({
|
|
1778
|
+
type: "button",
|
|
1779
|
+
class: $.swatch,
|
|
1780
|
+
onClick: () => r.copy(i)
|
|
1781
|
+
}, t), [M("div", {
|
|
1782
|
+
class: $.color,
|
|
1783
|
+
style: { background: e.value }
|
|
1784
|
+
}), M("div", { class: $.info }, [
|
|
1785
|
+
M("div", { class: $.name }, e.name),
|
|
1786
|
+
M("div", { class: $.hex }, e.value),
|
|
1787
|
+
e.cssVar ? M("div", { class: $.hex }, e.cssVar) : null
|
|
1788
|
+
])]));
|
|
1789
|
+
};
|
|
1790
|
+
}
|
|
1791
|
+
}), pi = A({
|
|
1792
|
+
name: "ColorRamp",
|
|
1793
|
+
inheritAttrs: !1,
|
|
1794
|
+
props: { steps: {
|
|
1795
|
+
type: Array,
|
|
1796
|
+
required: !0
|
|
1797
|
+
} },
|
|
1798
|
+
setup(e, { attrs: t }) {
|
|
1799
|
+
let r = Qn({ timeout: 1200 });
|
|
1800
|
+
return () => M("div", N({ class: $.ramp }, t), e.steps.map((e) => M(n, {
|
|
1801
|
+
key: e.label,
|
|
1802
|
+
label: r.copied.value ? "Copiado!" : e.value,
|
|
1803
|
+
withArrow: !0
|
|
1804
|
+
}, () => M("button", {
|
|
1805
|
+
type: "button",
|
|
1806
|
+
class: $.step,
|
|
1807
|
+
style: {
|
|
1808
|
+
background: e.value,
|
|
1809
|
+
color: pn(e.value) > .3 ? "var(--dc-obsidian)" : "#fff"
|
|
1810
|
+
},
|
|
1811
|
+
onClick: () => r.copy(e.value)
|
|
1812
|
+
}, `${e.label}${e.derived ? "*" : ""}`))));
|
|
1813
|
+
}
|
|
1814
|
+
}), mi = {
|
|
1815
|
+
sm: "var(--type-subheadline-lg)",
|
|
1816
|
+
md: "var(--type-headline-sm)",
|
|
1817
|
+
lg: "var(--type-headline-lg)"
|
|
1818
|
+
}, hi = A({
|
|
1819
|
+
name: "PriceTag",
|
|
1820
|
+
inheritAttrs: !1,
|
|
1821
|
+
props: {
|
|
1822
|
+
value: {
|
|
1823
|
+
type: Number,
|
|
1824
|
+
required: !0
|
|
1825
|
+
},
|
|
1826
|
+
oldValue: {
|
|
1827
|
+
type: Number,
|
|
1828
|
+
default: void 0
|
|
1829
|
+
},
|
|
1830
|
+
installments: {
|
|
1831
|
+
type: Object,
|
|
1832
|
+
default: void 0
|
|
1833
|
+
},
|
|
1834
|
+
pixDiscount: {
|
|
1835
|
+
type: Number,
|
|
1836
|
+
default: void 0
|
|
1837
|
+
},
|
|
1838
|
+
unit: {
|
|
1839
|
+
type: String,
|
|
1840
|
+
default: void 0
|
|
1841
|
+
},
|
|
1842
|
+
size: {
|
|
1843
|
+
type: String,
|
|
1844
|
+
default: "md"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
setup(e, { attrs: t }) {
|
|
1848
|
+
return () => {
|
|
1849
|
+
let { value: n, oldValue: r, installments: i, pixDiscount: a, unit: o, size: s } = e;
|
|
1850
|
+
return M(b, t, () => [
|
|
1851
|
+
r !== void 0 && r > n ? M(S, {
|
|
1852
|
+
fz: "xs",
|
|
1853
|
+
c: "var(--ds-text-3)",
|
|
1854
|
+
td: "line-through",
|
|
1855
|
+
"aria-label": `Preço anterior ${fe(r)}`
|
|
1856
|
+
}, () => fe(r)) : null,
|
|
1857
|
+
M(x, {
|
|
1858
|
+
gap: 4,
|
|
1859
|
+
align: "baseline",
|
|
1860
|
+
wrap: "nowrap"
|
|
1861
|
+
}, () => [M(S, {
|
|
1862
|
+
component: "span",
|
|
1863
|
+
fz: mi[s],
|
|
1864
|
+
fw: 700,
|
|
1865
|
+
lh: 1.2,
|
|
1866
|
+
c: "var(--ds-primary)",
|
|
1867
|
+
style: { fontVariantNumeric: "tabular-nums" }
|
|
1868
|
+
}, () => fe(n)), o ? M(S, {
|
|
1869
|
+
component: "span",
|
|
1870
|
+
fz: "xs",
|
|
1871
|
+
c: "var(--ds-text-3)",
|
|
1872
|
+
fw: 500
|
|
1873
|
+
}, () => o) : null]),
|
|
1874
|
+
a !== void 0 && a > 0 ? M(S, {
|
|
1875
|
+
fz: "xs",
|
|
1876
|
+
fw: 600,
|
|
1877
|
+
c: "var(--ds-tag-success-color)"
|
|
1878
|
+
}, () => `${fe(n * (1 - a / 100))} no Pix (${a}% off)`) : null,
|
|
1879
|
+
i && i.count > 1 ? M(S, {
|
|
1880
|
+
fz: "xs",
|
|
1881
|
+
c: "var(--ds-text-2)"
|
|
1882
|
+
}, () => `ou ${i.count}x de ${fe(n / i.count)}${i.interestFree === !1 ? "" : " sem juros"}`) : null
|
|
1883
|
+
]);
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
}), gi = {
|
|
1887
|
+
root: "jc-ProductCard-root-mvthw",
|
|
1888
|
+
media: "jc-ProductCard-media-1y1gb",
|
|
1889
|
+
badges: "jc-ProductCard-badges-z1zie",
|
|
1890
|
+
favorite: "jc-ProductCard-favorite-199qf",
|
|
1891
|
+
category: "jc-ProductCard-category-1jquc",
|
|
1892
|
+
name: "jc-ProductCard-name-mvqni",
|
|
1893
|
+
price: "jc-ProductCard-price-1y3c4",
|
|
1894
|
+
action: "jc-ProductCard-action-ymbqp"
|
|
1895
|
+
}, _i = ["src", "alt"], vi = un(/* @__PURE__ */ A({
|
|
1896
|
+
name: "ProductCard",
|
|
1897
|
+
inheritAttrs: !1,
|
|
1898
|
+
__name: "ProductCard",
|
|
1899
|
+
props: {
|
|
1900
|
+
name: {},
|
|
1901
|
+
image: {},
|
|
1902
|
+
href: { default: void 0 },
|
|
1903
|
+
category: { default: void 0 },
|
|
1904
|
+
price: {},
|
|
1905
|
+
oldPrice: { default: void 0 },
|
|
1906
|
+
installments: { default: void 0 },
|
|
1907
|
+
pixDiscount: { default: void 0 },
|
|
1908
|
+
unit: { default: void 0 },
|
|
1909
|
+
badges: { default: void 0 },
|
|
1910
|
+
showDiscount: {
|
|
1911
|
+
type: Boolean,
|
|
1912
|
+
default: void 0
|
|
1913
|
+
},
|
|
1914
|
+
rating: { default: void 0 },
|
|
1915
|
+
reviews: { default: void 0 },
|
|
1916
|
+
favorite: {
|
|
1917
|
+
type: Boolean,
|
|
1918
|
+
default: void 0
|
|
1919
|
+
},
|
|
1920
|
+
actionLabel: { default: void 0 },
|
|
1921
|
+
imageRatio: { default: void 0 },
|
|
1922
|
+
linkComponent: { default: void 0 },
|
|
1923
|
+
classNames: { default: void 0 },
|
|
1924
|
+
styles: { default: void 0 },
|
|
1925
|
+
vars: { default: void 0 },
|
|
1926
|
+
unstyled: {
|
|
1927
|
+
type: Boolean,
|
|
1928
|
+
default: void 0
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
emits: ["update:favorite", "action"],
|
|
1932
|
+
setup(e, { emit: t }) {
|
|
1933
|
+
let n = e, r = t, i = An(), a = jn(), o = Hr(), s = _n("ProductCard", {
|
|
1934
|
+
showDiscount: !0,
|
|
1935
|
+
actionLabel: "Comprar",
|
|
1936
|
+
imageRatio: 1,
|
|
1937
|
+
linkComponent: "a"
|
|
1938
|
+
}, n), c = vn({
|
|
1939
|
+
name: "ProductCard",
|
|
1940
|
+
classes: gi,
|
|
1941
|
+
props: s,
|
|
1942
|
+
get className() {
|
|
1943
|
+
return i.class;
|
|
1944
|
+
},
|
|
1945
|
+
get style() {
|
|
1946
|
+
return i.style;
|
|
1947
|
+
},
|
|
1948
|
+
get classNames() {
|
|
1949
|
+
return s.classNames;
|
|
1950
|
+
},
|
|
1951
|
+
get styles() {
|
|
1952
|
+
return s.styles;
|
|
1953
|
+
},
|
|
1954
|
+
get vars() {
|
|
1955
|
+
return s.vars;
|
|
1956
|
+
},
|
|
1957
|
+
get unstyled() {
|
|
1958
|
+
return s.unstyled;
|
|
1959
|
+
}
|
|
1960
|
+
}), l = () => s.oldPrice && s.oldPrice > s.price ? Math.round((1 - s.price / s.oldPrice) * 100) : 0, d = () => s.favorite !== void 0 || o("update:favorite"), f = () => o("action"), p = () => {
|
|
1961
|
+
let e = s.linkComponent ?? "a";
|
|
1962
|
+
return s.href ? e === "a" ? { href: s.href } : {
|
|
1963
|
+
to: s.href,
|
|
1964
|
+
href: s.href
|
|
1965
|
+
} : {};
|
|
1966
|
+
}, ee = () => s.href ? s.linkComponent ?? "a" : "div", m = () => [...(s.badges ?? []).map((e) => C(e)), a.badges?.()];
|
|
1967
|
+
return (e, t) => (F(), T(R(u), N({
|
|
1968
|
+
...R(i),
|
|
1969
|
+
...R(c)("root")
|
|
1970
|
+
}, { mod: [{ interactive: !!(R(s).href || f()) }, R(i).mod] }), {
|
|
1971
|
+
default: z(() => [
|
|
1972
|
+
O("div", P(j(R(c)("media", { style: { "--product-ratio": String(R(s).imageRatio) } }))), [
|
|
1973
|
+
O("img", {
|
|
1974
|
+
src: R(s).image,
|
|
1975
|
+
alt: R(s).name,
|
|
1976
|
+
loading: "lazy"
|
|
1977
|
+
}, null, 8, _i),
|
|
1978
|
+
O("div", P(j(R(c)("badges"))), [R(s).showDiscount && l() > 0 ? (F(), T(R(Vr), {
|
|
1979
|
+
key: 0,
|
|
1980
|
+
tone: "error",
|
|
1981
|
+
variant: "filled"
|
|
1982
|
+
}, {
|
|
1983
|
+
default: z(() => [Cn("-" + L(l()) + "%", 1)]),
|
|
1984
|
+
_: 1
|
|
1985
|
+
})) : E("", !0), (F(), T(I(m)))], 16),
|
|
1986
|
+
d() ? (F(), T(R(Oe), N({ key: 0 }, R(c)("favorite"), {
|
|
1987
|
+
variant: "subtle",
|
|
1988
|
+
color: R(s).favorite ? "danger" : "obsidian",
|
|
1989
|
+
radius: "xl",
|
|
1990
|
+
"aria-label": R(s).favorite ? "Remover dos favoritos" : "Adicionar aos favoritos",
|
|
1991
|
+
"aria-pressed": !!R(s).favorite,
|
|
1992
|
+
onClick: t[0] ||= (e) => r("update:favorite", !R(s).favorite)
|
|
1993
|
+
}), {
|
|
1994
|
+
default: z(() => [R(s).favorite ? (F(), T(R(Wn), {
|
|
1995
|
+
key: 0,
|
|
1996
|
+
size: 18
|
|
1997
|
+
})) : (F(), T(R(Un), {
|
|
1998
|
+
key: 1,
|
|
1999
|
+
size: 18
|
|
2000
|
+
}))]),
|
|
2001
|
+
_: 1
|
|
2002
|
+
}, 16, [
|
|
2003
|
+
"color",
|
|
2004
|
+
"aria-label",
|
|
2005
|
+
"aria-pressed"
|
|
2006
|
+
])) : E("", !0)
|
|
2007
|
+
], 16),
|
|
2008
|
+
R(s).category ? (F(), D("div", P(N({ key: 0 }, R(c)("category"))), L(R(s).category), 17)) : E("", !0),
|
|
2009
|
+
(F(), T(I(ee()), P(j({
|
|
2010
|
+
...p(),
|
|
2011
|
+
...R(c)("name")
|
|
2012
|
+
})), {
|
|
2013
|
+
default: z(() => [Cn(L(R(s).name), 1)]),
|
|
2014
|
+
_: 1
|
|
2015
|
+
}, 16)),
|
|
2016
|
+
R(s).rating === void 0 ? E("", !0) : (F(), T(R(x), {
|
|
2017
|
+
key: 1,
|
|
2018
|
+
gap: 6,
|
|
2019
|
+
mb: "xs"
|
|
2020
|
+
}, {
|
|
2021
|
+
default: z(() => [k(R(Pt), {
|
|
2022
|
+
"model-value": R(s).rating,
|
|
2023
|
+
fractions: 2,
|
|
2024
|
+
"read-only": "",
|
|
2025
|
+
size: "xs",
|
|
2026
|
+
color: "electric.4"
|
|
2027
|
+
}, null, 8, ["model-value"]), R(s).reviews === void 0 ? E("", !0) : (F(), T(R(S), {
|
|
2028
|
+
key: 0,
|
|
2029
|
+
fz: "xs",
|
|
2030
|
+
c: "var(--ds-text-3)"
|
|
2031
|
+
}, {
|
|
2032
|
+
default: z(() => [Cn("(" + L(R(s).reviews) + ")", 1)]),
|
|
2033
|
+
_: 1
|
|
2034
|
+
}))]),
|
|
2035
|
+
_: 1
|
|
2036
|
+
})),
|
|
2037
|
+
k(R(hi), N(R(c)("price"), {
|
|
2038
|
+
value: R(s).price,
|
|
2039
|
+
"old-value": R(s).oldPrice,
|
|
2040
|
+
installments: R(s).installments,
|
|
2041
|
+
"pix-discount": R(s).pixDiscount,
|
|
2042
|
+
unit: R(s).unit
|
|
2043
|
+
}), null, 16, [
|
|
2044
|
+
"value",
|
|
2045
|
+
"old-value",
|
|
2046
|
+
"installments",
|
|
2047
|
+
"pix-discount",
|
|
2048
|
+
"unit"
|
|
2049
|
+
]),
|
|
2050
|
+
f() ? (F(), T(R(ze), N({ key: 2 }, R(c)("action"), {
|
|
2051
|
+
"full-width": "",
|
|
2052
|
+
onClick: t[1] ||= (e) => r("action", e)
|
|
2053
|
+
}), {
|
|
2054
|
+
leftSection: z(() => [k(R(Jn), { size: 18 })]),
|
|
2055
|
+
default: z(() => [Cn(" " + L(R(s).actionLabel), 1)]),
|
|
2056
|
+
_: 1
|
|
2057
|
+
}, 16)) : E("", !0)
|
|
2058
|
+
]),
|
|
2059
|
+
_: 1
|
|
2060
|
+
}, 16, ["mod"]));
|
|
2061
|
+
}
|
|
2062
|
+
}), { classes: gi }), yi = A({
|
|
2063
|
+
name: "CouponCode",
|
|
2064
|
+
inheritAttrs: !1,
|
|
2065
|
+
props: {
|
|
2066
|
+
code: {
|
|
2067
|
+
type: String,
|
|
2068
|
+
required: !0
|
|
2069
|
+
},
|
|
2070
|
+
description: Ur,
|
|
2071
|
+
copyLabel: {
|
|
2072
|
+
type: String,
|
|
2073
|
+
default: "Copiar"
|
|
2074
|
+
},
|
|
2075
|
+
copiedLabel: {
|
|
2076
|
+
type: String,
|
|
2077
|
+
default: "Copiado!"
|
|
2078
|
+
}
|
|
2079
|
+
},
|
|
2080
|
+
emits: { copy: (e) => !0 },
|
|
2081
|
+
setup(e, { attrs: t, slots: n, emit: r }) {
|
|
2082
|
+
let i = Qn({ timeout: 1600 });
|
|
2083
|
+
return () => {
|
|
2084
|
+
let a = i.copied.value, o = Q(e.description, n.description);
|
|
2085
|
+
return M(b, {
|
|
2086
|
+
p: "sm",
|
|
2087
|
+
style: {
|
|
2088
|
+
border: "2px dashed var(--ds-primary)",
|
|
2089
|
+
borderRadius: "var(--ds-radius)",
|
|
2090
|
+
background: "var(--ds-primary-soft)"
|
|
2091
|
+
},
|
|
2092
|
+
...t
|
|
2093
|
+
}, () => M(x, {
|
|
2094
|
+
justify: "space-between",
|
|
2095
|
+
gap: "sm",
|
|
2096
|
+
wrap: "nowrap"
|
|
2097
|
+
}, () => [M(x, {
|
|
2098
|
+
gap: "sm",
|
|
2099
|
+
wrap: "nowrap",
|
|
2100
|
+
style: { minWidth: 0 }
|
|
2101
|
+
}, () => [M(Xn, {
|
|
2102
|
+
size: 22,
|
|
2103
|
+
color: "var(--ds-primary)",
|
|
2104
|
+
style: { flexShrink: 0 }
|
|
2105
|
+
}), M("div", { style: { minWidth: 0 } }, [o === void 0 ? null : M(S, {
|
|
2106
|
+
fz: "xs",
|
|
2107
|
+
c: "var(--ds-text-2)",
|
|
2108
|
+
fw: 500
|
|
2109
|
+
}, () => o), M(S, {
|
|
2110
|
+
fw: 700,
|
|
2111
|
+
fz: "lg",
|
|
2112
|
+
lts: "0.08em",
|
|
2113
|
+
c: "var(--ds-primary)",
|
|
2114
|
+
ff: "monospace"
|
|
2115
|
+
}, () => e.code)])]), M(ze, {
|
|
2116
|
+
size: "sm",
|
|
2117
|
+
variant: a ? "filled" : "outline",
|
|
2118
|
+
color: a ? "evergreen" : void 0,
|
|
2119
|
+
leftSection: () => M(a ? Bn : Vn, { size: 16 }),
|
|
2120
|
+
onClick: () => {
|
|
2121
|
+
i.copy(e.code), r("copy", e.code);
|
|
2122
|
+
}
|
|
2123
|
+
}, () => a ? e.copiedLabel : e.copyLabel)]));
|
|
2124
|
+
};
|
|
2125
|
+
}
|
|
2126
|
+
}), bi = {
|
|
2127
|
+
root: "jc-TopNav-root-juvro",
|
|
2128
|
+
brand: "jc-TopNav-brand-1b3pb",
|
|
2129
|
+
links: "jc-TopNav-links-1b91r",
|
|
2130
|
+
link: "jc-TopNav-link-jurt9",
|
|
2131
|
+
right: "jc-TopNav-right-1bcce",
|
|
2132
|
+
burger: "jc-TopNav-burger-13mhl",
|
|
2133
|
+
mobileLinks: "jc-TopNav-mobileLinks-90417"
|
|
2134
|
+
}, xi = un(/* @__PURE__ */ A({
|
|
2135
|
+
name: "TopNav",
|
|
2136
|
+
inheritAttrs: !1,
|
|
2137
|
+
__name: "TopNav",
|
|
2138
|
+
props: {
|
|
2139
|
+
classNames: { default: void 0 },
|
|
2140
|
+
styles: { default: void 0 },
|
|
2141
|
+
vars: { default: void 0 },
|
|
2142
|
+
unstyled: {
|
|
2143
|
+
type: Boolean,
|
|
2144
|
+
default: void 0
|
|
2145
|
+
},
|
|
2146
|
+
brand: { default: void 0 },
|
|
2147
|
+
brandHref: { default: void 0 },
|
|
2148
|
+
links: { default: void 0 },
|
|
2149
|
+
linkComponent: { default: void 0 },
|
|
2150
|
+
rightSection: { default: void 0 },
|
|
2151
|
+
collapseOnMobile: {
|
|
2152
|
+
type: Boolean,
|
|
2153
|
+
default: void 0
|
|
2154
|
+
}
|
|
2155
|
+
},
|
|
2156
|
+
setup(e) {
|
|
2157
|
+
let t = e, n = jn(), r = An(), i = _n("TopNav", {
|
|
2158
|
+
brand: () => M(Se, {
|
|
2159
|
+
variant: "dark",
|
|
2160
|
+
size: 28
|
|
2161
|
+
}),
|
|
2162
|
+
brandHref: "/",
|
|
2163
|
+
links: [],
|
|
2164
|
+
linkComponent: "a",
|
|
2165
|
+
collapseOnMobile: !0
|
|
2166
|
+
}, t), [a, { toggle: o, close: s }] = $n(!1), c = vn({
|
|
2167
|
+
name: "TopNav",
|
|
2168
|
+
classes: bi,
|
|
2169
|
+
props: i,
|
|
2170
|
+
get className() {
|
|
2171
|
+
return r.class;
|
|
2172
|
+
},
|
|
2173
|
+
get style() {
|
|
2174
|
+
return r.style;
|
|
2175
|
+
},
|
|
2176
|
+
get classNames() {
|
|
2177
|
+
return i.classNames;
|
|
2178
|
+
},
|
|
2179
|
+
get styles() {
|
|
2180
|
+
return i.styles;
|
|
2181
|
+
},
|
|
2182
|
+
get vars() {
|
|
2183
|
+
return i.vars;
|
|
2184
|
+
},
|
|
2185
|
+
get unstyled() {
|
|
2186
|
+
return i.unstyled;
|
|
2187
|
+
}
|
|
2188
|
+
}), l = (e) => e.node;
|
|
2189
|
+
l.props = ["node"];
|
|
2190
|
+
let u = w(() => i.linkComponent ?? "a"), d = (e) => u.value === "a" ? { href: e } : {
|
|
2191
|
+
to: e,
|
|
2192
|
+
href: e
|
|
2193
|
+
}, f = (e, t) => typeof e == "string" ? t : { default: () => t }, p = (e) => (i.links ?? []).map((t, n) => {
|
|
2194
|
+
let r = !t.href, i = r ? "button" : u.value, a = r ? { type: "button" } : d(t.href);
|
|
2195
|
+
return M(i, {
|
|
2196
|
+
key: n,
|
|
2197
|
+
...a,
|
|
2198
|
+
...c("link"),
|
|
2199
|
+
"data-active": t.active || void 0,
|
|
2200
|
+
"aria-current": t.active ? "page" : void 0,
|
|
2201
|
+
onClick: (n) => {
|
|
2202
|
+
t.onClick?.(n), e?.();
|
|
2203
|
+
}
|
|
2204
|
+
}, f(i, C(t.label)));
|
|
2205
|
+
}), ee = w(() => C(i.brand, n.brand)), m = w(() => C(i.rightSection, n.rightSection)), te = w(() => i.brandHref === null ? "span" : u.value), ne = w(() => i.brandHref === null ? {} : d(i.brandHref ?? "/")), h = w(() => !!i.collapseOnMobile && (i.links ?? []).length > 0), re = w(() => [{ collapse: i.collapseOnMobile }, r.mod]);
|
|
2206
|
+
return (e, t) => (F(), D("header", null, [k(R(b), N({
|
|
2207
|
+
...R(r),
|
|
2208
|
+
...R(c)("root")
|
|
2209
|
+
}, { mod: re.value }), {
|
|
2210
|
+
default: z(() => [
|
|
2211
|
+
(F(), T(I(te.value), P(j({
|
|
2212
|
+
...ne.value,
|
|
2213
|
+
...R(c)("brand")
|
|
2214
|
+
})), {
|
|
2215
|
+
default: z(() => [k(l, { node: ee.value }, null, 8, ["node"])]),
|
|
2216
|
+
_: 1
|
|
2217
|
+
}, 16)),
|
|
2218
|
+
O("nav", N(R(c)("links"), { "aria-label": "Principal" }), [k(l, { node: p() }, null, 8, ["node"])], 16),
|
|
2219
|
+
O("div", P(j(R(c)("right"))), [k(l, { node: m.value }, null, 8, ["node"]), h.value ? (F(), T(R(Re), N({
|
|
2220
|
+
key: 0,
|
|
2221
|
+
opened: R(a),
|
|
2222
|
+
size: "sm",
|
|
2223
|
+
"aria-label": "Abrir menu"
|
|
2224
|
+
}, R(c)("burger"), { onClick: R(o) }), null, 16, ["opened", "onClick"])) : E("", !0)], 16)
|
|
2225
|
+
]),
|
|
2226
|
+
_: 1
|
|
2227
|
+
}, 16, ["mod"]), h.value ? (F(), T(R(Je), {
|
|
2228
|
+
key: 0,
|
|
2229
|
+
expanded: R(a)
|
|
2230
|
+
}, {
|
|
2231
|
+
default: z(() => [O("nav", N(R(c)("mobileLinks"), { "aria-label": "Principal (mobile)" }), [k(l, { node: p(R(s)) }, null, 8, ["node"])], 16)]),
|
|
2232
|
+
_: 1
|
|
2233
|
+
}, 8, ["expanded"])) : E("", !0)]));
|
|
2234
|
+
}
|
|
2235
|
+
}), { classes: bi });
|
|
2236
|
+
//#endregion
|
|
2237
|
+
export { Pr as COLOR_SCHEME_STORAGE_KEY, u as Card, o as Cascader, c as CheckboxIndicator, we as Collaborator, pi as ColorRamp, i as Combobox, Xr as ContentCard, yi as CouponCode, ui as DataTable, oe as Disclaimer, le as Display, e as FileInput, s as FloatingWindow, be as GreekFrame, he as Headline, Se as JcLogo, ve as JcLogoAlt, Rr as JcProvider, y as Kicker, ai as KpiCard, ii as KpiGroup, me as LOCALE, l as NumberFormatter, t as NumberInput, oi as PageHeader, a as PillsInput, hi as PriceTag, vi as ProductCard, qr as PromoBanner, ge as SpartanHelmet, se as Subheadline, d as Table, Vr as Tag, di as ThemeToggle, fi as TokenSwatch, n as Tooltip, xi as TopNav, xe as altLogoPaths, Ce as collaboratorPaths, ue as formatCompact, fe as formatCurrency, ce as formatDate, ae as formatNumber, de as formatPercent, pe as formatTime, Zr as getDeltaTone, _e as greekFramePaths, v as jcColors, Nr as jcCssVariablesResolver, Er as jcTheme, nr as jcVariantColorResolver, ye as logoPaths, Te as spartanPaths, ee as tokens, r as withThemeDefaults };
|
|
2238
|
+
|
|
2239
|
+
//# sourceMappingURL=index.js.map
|