fansunited-widgets-cdn 0.0.86-RC4 → 0.0.86-RC5

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.
Files changed (85) hide show
  1. package/chunks/{Alert-DuMXT9be.js → Alert-B6o66mYo.js} +39 -39
  2. package/chunks/{CardContent-COgjZl3_.js → CardContent-NCZhfGcZ.js} +16 -16
  3. package/chunks/{Snackbar-DJz-WddP.js → ChevronRight-1pLZ7T0v.js} +100 -94
  4. package/chunks/{ClassicQuizWrapper-C7svf4eh.js → ClassicQuizWrapper-n2epPO4k.js} +201 -205
  5. package/chunks/CollectLeadForm-C_3plJtn-Dr8J3eDw.js +3918 -0
  6. package/chunks/{CollectLeadWrapper-DACvBsa_.js → CollectLeadWrapper-CCtTZAxL.js} +55 -56
  7. package/chunks/EitherOrById-ClGwMK0b.js +6820 -0
  8. package/chunks/EitherOrPreviewWrapper-BYiKyYwi.js +46 -0
  9. package/chunks/Error-BurPfBJw-DWYn31sK.js +1119 -0
  10. package/chunks/{EventGameWrapper-DmjaKr3I.js → EventGameWrapper-BphusLTk.js} +208 -219
  11. package/chunks/{Grid-BbegUe2J.js → Grid-yjqNNhEx.js} +32 -32
  12. package/chunks/{IconButton-zh1RLwcE.js → IconButton-D7onwgY0.js} +22 -22
  13. package/chunks/{List-CA3L6bUS.js → List-8Vy9IZiv.js} +26 -29
  14. package/chunks/{MatchPredictionContainer-CmHKsJ_z.js → MatchPredictionContainer-BGytBwLo.js} +52 -54
  15. package/chunks/{MatchQuizWrapper-BxHHl4a5.js → MatchQuizWrapper-BGjldBpF.js} +73 -85
  16. package/chunks/{OverlayLeadAfterCollection-DnqztPJ5-CJnicIes.js → OverlayLeadAfterCollection-Bjh1xAB5-DgVOuSX5.js} +104 -105
  17. package/chunks/{OverlayScoreStateSkeleton-C9FUhcnd-CZ7cct30.js → OverlayScoreStateSkeleton-Cha5KeNi-fyZTu-l5.js} +18 -19
  18. package/chunks/{PersonalityQuizWrapper-B-Rkzvc0.js → PersonalityQuizWrapper-BgLFw5tM.js} +3 -3
  19. package/chunks/{PlayerOfTheMatch-CzGMT1jr.js → PlayerOfTheMatch-CImBLG3T.js} +1008 -609
  20. package/chunks/{PollWrapper-Cdl3AbXE.js → PollWrapper-QpIKCCVF.js} +30 -34
  21. package/chunks/Portal-DegkUXpU-ByGP9zS1.js +19236 -0
  22. package/chunks/{PreviewQuizById-CPiwewW_.js → PreviewQuizById-Ba6yhxKV.js} +11 -14
  23. package/chunks/Sheet-U5EnSrgg.js +282 -0
  24. package/chunks/{Stack-BBjT-MoB.js → Stack-DbDi7kPO.js} +30 -30
  25. package/chunks/Tabs-leN3Fb8D--YMyy3EM.js +783 -0
  26. package/chunks/{TeamNextMatchPrediction-BOOGeVEv.js → TeamNextMatchPrediction-9VSQOCcC.js} +2 -2
  27. package/chunks/Tutorial-CRJLOovs.js +1072 -0
  28. package/chunks/createLucideIcon-CMWOQsDL.js +381 -0
  29. package/chunks/{createSvgIcon-cOpRx8M1.js → createSvgIcon-D9D4a1R9.js} +412 -390
  30. package/chunks/default-quiz-bg-ADjjIfPj.js +126 -0
  31. package/chunks/{index-CNAE4RYY.js → index-0ADq_9jd.js} +1 -1
  32. package/chunks/{index-D9kNvflO.js → index-B74jHeYm.js} +2 -2
  33. package/chunks/{index-Dr-yGqo_.js → index-BfVvJg5R.js} +1 -1
  34. package/chunks/{index-D3wDyWq_.js → index-BycLbIYY.js} +1 -1
  35. package/chunks/{index-BKyd0MUt.js → index-C6KAc5B_.js} +1 -1
  36. package/chunks/{index-BkU2GDR4.js → index-CHV6tlpH.js} +5 -5
  37. package/chunks/{index-Uv42o9aR.js → index-CILd3yUc.js} +1 -1
  38. package/chunks/index-CJqcqbHq.js +5 -0
  39. package/chunks/{index-DrlzgjUf.js → index-CK2RXrJm.js} +1 -1
  40. package/chunks/{index-DFXrZaoM.js → index-CPTAlr_t.js} +1 -1
  41. package/chunks/{index-D1SEUyHT.js → index-CiB_Gqim.js} +1 -1
  42. package/chunks/{index-CNukXTLi.js → index-CvGJXa6l.js} +1 -1
  43. package/chunks/{index-CpFMxpj1.js → index-CviTG4Nv.js} +1 -1
  44. package/chunks/index-DUQ2LFod-Cw45tHim.js +4510 -0
  45. package/chunks/{index-DbZ10tsY.js → index-Da0AXb_O.js} +1 -1
  46. package/chunks/{index-CiI_vSMR.js → index-DwR4J2nN.js} +1 -1
  47. package/chunks/{index-CMhbRdLz.js → index-UwW9niUj.js} +1 -1
  48. package/chunks/index.es-wHqA4PHm.js +11480 -0
  49. package/chunks/{init-DYY4CJtu.js → init-C-gCorsh.js} +1 -1
  50. package/chunks/{main-NO9IQFuY.js → main-Bh6iw92_.js} +94 -110
  51. package/chunks/{Button-DJj0KOh3.js → resolveProps-Bgg0H6c2.js} +471 -313
  52. package/chunks/{users-C-6eqEb6.js → users-CXdzg3DM.js} +1 -1
  53. package/fu-widgets.es.js +2 -2
  54. package/fu-widgets.iife.js +310 -257
  55. package/manifest.json +56 -72
  56. package/package.json +1 -1
  57. package/chunks/AspectRatio-CKWgGwn-.js +0 -125
  58. package/chunks/Avatar-Cv70g9HX.js +0 -186
  59. package/chunks/Card-BDn3dk3E.js +0 -129
  60. package/chunks/ChevronRight-BwGivLSL.js +0 -11
  61. package/chunks/Chip-BkY7Uww3.js +0 -281
  62. package/chunks/CollectLeadForm-DtmR2Vuf-DvAoHDnn.js +0 -1560
  63. package/chunks/DialogActions-CuXgjeCi.js +0 -45
  64. package/chunks/DialogContent-CyQJ8yz-.js +0 -60
  65. package/chunks/EitherOrById-B8v0nJmv.js +0 -1496
  66. package/chunks/EitherOrPreviewWrapper-C9O6TEVe.js +0 -47
  67. package/chunks/Error-DhQL89pn-DD0O1kEt.js +0 -418
  68. package/chunks/Link-Cw8ci6QQ.js +0 -228
  69. package/chunks/ListItemDecorator-DwvO_ty1.js +0 -1882
  70. package/chunks/ModalDialog-DLPhSR9-.js +0 -619
  71. package/chunks/NotFoundSkeleton-BYJTzYJR-JURKfNZv.js +0 -2764
  72. package/chunks/Portal-BWqqFvVm-pvatNKfM.js +0 -12717
  73. package/chunks/Portal-BsATdUrC.js +0 -41
  74. package/chunks/Select-Cewujqtd.js +0 -3418
  75. package/chunks/Sheet-B8wNvQTa.js +0 -167
  76. package/chunks/Tabs-BP1RMTCA.js +0 -784
  77. package/chunks/Tutorial-B1LWDD9l.js +0 -427
  78. package/chunks/createLucideIcon-nPUeaUEe.js +0 -79
  79. package/chunks/createSvgIcon-DhITitgm.js +0 -119
  80. package/chunks/default-quiz-bg-CTzaADn7.js +0 -4
  81. package/chunks/getReactElementRef-66jU_By9.js +0 -25
  82. package/chunks/index-BPH9IX2Q.js +0 -5
  83. package/chunks/index.es-BZbN3xaq.js +0 -6162
  84. package/chunks/resolveProps-BfYZubfk.js +0 -37
  85. package/chunks/variantColorInheritance-DVZ9CGcB.js +0 -28
@@ -1,47 +0,0 @@
1
- import { r as i, j as e, B as d, C as h, a as x } from "./main-NO9IQFuY.js";
2
- import { G as o, T as f } from "./Tutorial-B1LWDD9l.js";
3
- import { C as p } from "./Card-BDn3dk3E.js";
4
- import { T } from "./Button-DJj0KOh3.js";
5
- const j = ({ gameId: s, sdk: n, url: a }) => {
6
- const [c, l] = i.useState(o.LOADING), [r, u] = i.useState(null);
7
- i.useEffect(() => {
8
- (() => {
9
- try {
10
- n.getEitherOrById(s, !0).then((t) => {
11
- u(t), l(o.TUTORIAL);
12
- }).catch((t) => {
13
- console.error(t), l(null);
14
- });
15
- } catch (t) {
16
- return console.warn("Failed to fetch game:", t), "";
17
- }
18
- })();
19
- }, [s, n]);
20
- const m = () => {
21
- switch (c) {
22
- case o.LOADING:
23
- return /* @__PURE__ */ e.jsx(d, { display: "flex", justifyContent: "center", alignItems: "center", minHeight: 400, children: /* @__PURE__ */ e.jsx(h, {}) });
24
- case o.TUTORIAL:
25
- return /* @__PURE__ */ e.jsx(
26
- f,
27
- {
28
- onStart: () => {
29
- location.href = a;
30
- },
31
- game: r
32
- }
33
- );
34
- }
35
- };
36
- if (c !== null)
37
- return /* @__PURE__ */ e.jsxs(p, { variant: "outlined", sx: { borderColor: "divider", "&:hover": { borderColor: "divider" } }, children: [
38
- (r == null ? void 0 : r.title) && /* @__PURE__ */ e.jsx(T, { level: "h3", textAlign: "center", sx: { mb: 2 }, children: r.title }),
39
- m()
40
- ] });
41
- }, A = ({ initialGameId: s, url: n }) => {
42
- const a = x();
43
- return /* @__PURE__ */ e.jsx(j, { gameId: s, sdk: a.miniGames, url: n });
44
- };
45
- export {
46
- A as default
47
- };
@@ -1,418 +0,0 @@
1
- import { F, G as H, r as p, v as L, _ as N, w as g, x as E, y as j, E as M, j as c, z as u, D as O } from "./main-NO9IQFuY.js";
2
- import { c as P } from "./Button-DJj0KOh3.js";
3
- import { g as h } from "./Portal-BWqqFvVm-pvatNKfM.js";
4
- function S(e) {
5
- return F("MuiTable", e);
6
- }
7
- H("MuiTable", ["root", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "sizeSm", "sizeMd", "sizeLg", "stickyHeader", "stickyFooter", "noWrap", "hoverRow", "borderAxisNone", "borderAxisX", "borderAxisXBetween", "borderAxisY", "borderAxisYBetween", "borderAxisBoth", "borderAxisBothBetween"]);
8
- const X = ["className", "component", "children", "borderAxis", "hoverRow", "noWrap", "size", "variant", "color", "stripe", "stickyHeader", "stickyFooter", "slots", "slotProps"], Y = (e) => {
9
- const {
10
- size: t,
11
- variant: o,
12
- color: l,
13
- borderAxis: s,
14
- stickyHeader: a,
15
- stickyFooter: d,
16
- noWrap: i,
17
- hoverRow: n
18
- } = e, b = {
19
- root: ["root", a && "stickyHeader", d && "stickyFooter", i && "noWrap", n && "hoverRow", s && `borderAxis${u(s)}`, o && `variant${u(o)}`, l && `color${u(l)}`, t && `size${u(t)}`]
20
- };
21
- return O(b, S, {});
22
- }, r = {
23
- /**
24
- * According to https://www.w3.org/TR/2014/REC-html5-20141028/tabular-data.html#the-tr-element,
25
- * `tr` can only have `td | th` as children, so using :first-of-type is better than :first-child to prevent emotion SSR warning
26
- */
27
- getColumnExceptFirst() {
28
- return "& tr > *:not(:first-of-type), & tr > th + td, & tr > td + th";
29
- },
30
- /**
31
- * Every cell in the table
32
- */
33
- getCell() {
34
- return "& th, & td";
35
- },
36
- /**
37
- * `th` cell of the table (could exist in the body)
38
- */
39
- getHeadCell() {
40
- return "& th";
41
- },
42
- /**
43
- * Only the cell of `thead`
44
- */
45
- getHeaderCell() {
46
- return "& thead th";
47
- },
48
- getHeaderCellOfRow(e) {
49
- return `& thead tr:nth-of-type(${e}) th`;
50
- },
51
- getBottomHeaderCell() {
52
- return "& thead th:not([colspan])";
53
- },
54
- getHeaderNestedFirstColumn() {
55
- return "& thead tr:not(:first-of-type) th:not([colspan]):first-of-type";
56
- },
57
- /**
58
- * The body cell that contains data
59
- */
60
- getDataCell() {
61
- return "& td";
62
- },
63
- getDataCellExceptLastRow() {
64
- return "& tr:not(:last-of-type) > td";
65
- },
66
- /**
67
- * The body cell either `td` or `th`
68
- */
69
- getBodyCellExceptLastRow() {
70
- return `${this.getDataCellExceptLastRow()}, & tr:not(:last-of-type) > th[scope="row"]`;
71
- },
72
- getBodyCellOfRow(e) {
73
- return typeof e == "number" && e < 0 ? `& tbody tr:nth-last-of-type(${Math.abs(e)}) td, & tbody tr:nth-last-of-type(${Math.abs(e)}) th[scope="row"]` : `& tbody tr:nth-of-type(${e}) td, & tbody tr:nth-of-type(${e}) th[scope="row"]`;
74
- },
75
- getBodyRow(e) {
76
- return e === void 0 ? "& tbody tr" : `& tbody tr:nth-of-type(${e})`;
77
- },
78
- getFooterCell() {
79
- return "& tfoot th, & tfoot td";
80
- },
81
- getFooterFirstRowCell() {
82
- return "& tfoot tr:not(:last-of-type) th, & tfoot tr:not(:last-of-type) td";
83
- }
84
- }, D = j("table", {
85
- name: "JoyTable",
86
- slot: "Root",
87
- overridesResolver: (e, t) => t.root
88
- })(({
89
- theme: e,
90
- ownerState: t
91
- }) => {
92
- var o, l, s, a, d, i, n;
93
- const b = (o = e.variants[t.variant]) == null ? void 0 : o[t.color];
94
- return [g({
95
- "--Table-headerUnderlineThickness": "2px",
96
- "--TableCell-borderColor": (l = b == null ? void 0 : b.borderColor) != null ? l : e.vars.palette.divider,
97
- "--TableCell-headBackground": `var(--Sheet-background, ${e.vars.palette.background.surface})`
98
- }, t.size === "sm" && {
99
- "--unstable_TableCell-height": "var(--TableCell-height, 32px)",
100
- "--TableCell-paddingX": "0.25rem",
101
- "--TableCell-paddingY": "0.25rem"
102
- }, t.size === "md" && {
103
- "--unstable_TableCell-height": "var(--TableCell-height, 40px)",
104
- "--TableCell-paddingX": "0.5rem",
105
- "--TableCell-paddingY": "0.375rem"
106
- }, t.size === "lg" && {
107
- "--unstable_TableCell-height": "var(--TableCell-height, 48px)",
108
- "--TableCell-paddingX": "0.75rem",
109
- "--TableCell-paddingY": "0.5rem"
110
- }, {
111
- tableLayout: "fixed",
112
- width: "100%",
113
- borderSpacing: "0px",
114
- borderCollapse: "separate",
115
- borderRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
116
- }, e.typography[`body-${{
117
- sm: "xs",
118
- md: "sm",
119
- lg: "md"
120
- }[t.size]}`], (s = e.variants[t.variant]) == null ? void 0 : s[t.color], {
121
- "& caption": {
122
- color: e.vars.palette.text.tertiary,
123
- padding: "calc(2 * var(--TableCell-paddingY)) var(--TableCell-paddingX)"
124
- },
125
- [r.getDataCell()]: g({
126
- padding: "var(--TableCell-paddingY) var(--TableCell-paddingX)",
127
- height: "var(--unstable_TableCell-height)",
128
- borderColor: "var(--TableCell-borderColor)",
129
- // must come after border bottom
130
- backgroundColor: "var(--TableCell-dataBackground)"
131
- }, t.noWrap && {
132
- textOverflow: "ellipsis",
133
- whiteSpace: "nowrap",
134
- overflow: "hidden"
135
- }),
136
- [r.getHeadCell()]: {
137
- textAlign: "left",
138
- padding: "var(--TableCell-paddingY) var(--TableCell-paddingX)",
139
- backgroundColor: "var(--TableCell-headBackground)",
140
- // use `background-color` in case the Sheet has gradient background
141
- height: "var(--unstable_TableCell-height)",
142
- fontWeight: e.vars.fontWeight.lg,
143
- borderColor: "var(--TableCell-borderColor)",
144
- color: e.vars.palette.text.secondary,
145
- textOverflow: "ellipsis",
146
- whiteSpace: "nowrap",
147
- overflow: "hidden"
148
- },
149
- [r.getHeaderCell()]: {
150
- verticalAlign: "bottom",
151
- // Automatic radius adjustment with Sheet
152
- "&:first-of-type": {
153
- borderTopLeftRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
154
- },
155
- "&:last-of-type": {
156
- borderTopRightRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
157
- }
158
- },
159
- "& tfoot tr > *": {
160
- backgroundColor: `var(--TableCell-footBackground, ${e.vars.palette.background.level1})`,
161
- // Automatic radius adjustment with Sheet
162
- "&:first-of-type": {
163
- borderBottomLeftRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
164
- },
165
- "&:last-of-type": {
166
- borderBottomRightRadius: "var(--TableCell-cornerRadius, var(--unstable_actionRadius))"
167
- }
168
- }
169
- }), (((a = t.borderAxis) == null ? void 0 : a.startsWith("x")) || ((d = t.borderAxis) == null ? void 0 : d.startsWith("both"))) && {
170
- // insert border between rows
171
- [r.getHeaderCell()]: {
172
- borderBottomWidth: 1,
173
- borderBottomStyle: "solid"
174
- },
175
- [r.getBottomHeaderCell()]: {
176
- borderBottomWidth: "var(--Table-headerUnderlineThickness)",
177
- borderBottomStyle: "solid"
178
- },
179
- [r.getBodyCellExceptLastRow()]: {
180
- borderBottomWidth: 1,
181
- borderBottomStyle: "solid"
182
- },
183
- [r.getFooterCell()]: {
184
- borderTopWidth: 1,
185
- borderTopStyle: "solid"
186
- }
187
- }, (((i = t.borderAxis) == null ? void 0 : i.startsWith("y")) || ((n = t.borderAxis) == null ? void 0 : n.startsWith("both"))) && {
188
- // insert border between columns
189
- [`${r.getColumnExceptFirst()}, ${r.getHeaderNestedFirstColumn()}`]: {
190
- borderLeftWidth: 1,
191
- borderLeftStyle: "solid"
192
- }
193
- }, (t.borderAxis === "x" || t.borderAxis === "both") && {
194
- // insert border at the top of header and bottom of body
195
- [r.getHeaderCellOfRow(1)]: {
196
- borderTopWidth: 1,
197
- borderTopStyle: "solid"
198
- },
199
- [r.getBodyCellOfRow(-1)]: {
200
- borderBottomWidth: 1,
201
- borderBottomStyle: "solid"
202
- },
203
- [r.getFooterCell()]: {
204
- borderBottomWidth: 1,
205
- borderBottomStyle: "solid"
206
- }
207
- }, (t.borderAxis === "y" || t.borderAxis === "both") && {
208
- // insert border on the left of first column and right of the last column
209
- "& tr > *:first-of-type": {
210
- borderLeftWidth: 1,
211
- borderLeftStyle: "solid"
212
- },
213
- "& tr > *:last-of-type:not(:first-of-type)": {
214
- borderRightWidth: 1,
215
- borderRightStyle: "solid"
216
- }
217
- }, t.stripe && {
218
- [r.getBodyRow(t.stripe)]: {
219
- // For customization, a table cell can look for this variable with a fallback value.
220
- background: `var(--TableRow-stripeBackground, ${e.vars.palette.background.level2})`,
221
- color: e.vars.palette.text.primary
222
- }
223
- }, t.hoverRow && {
224
- [r.getBodyRow()]: {
225
- "&:hover": {
226
- background: `var(--TableRow-hoverBackground, ${e.vars.palette.background.level3})`
227
- }
228
- }
229
- }, t.stickyHeader && {
230
- // The column header
231
- [r.getHeaderCell()]: {
232
- position: "sticky",
233
- top: 0,
234
- zIndex: e.vars.zIndex.table
235
- },
236
- [r.getHeaderCellOfRow(2)]: {
237
- // support upto 2 rows for the sticky header
238
- top: "var(--unstable_TableCell-height)"
239
- }
240
- }, t.stickyFooter && {
241
- // The column header
242
- [r.getFooterCell()]: {
243
- position: "sticky",
244
- bottom: 0,
245
- zIndex: e.vars.zIndex.table,
246
- color: e.vars.palette.text.secondary,
247
- fontWeight: e.vars.fontWeight.lg
248
- },
249
- [r.getFooterFirstRowCell()]: {
250
- // support upto 2 rows for the sticky footer
251
- bottom: "var(--unstable_TableCell-height)"
252
- }
253
- }];
254
- }), G = /* @__PURE__ */ p.forwardRef(function(t, o) {
255
- const l = L({
256
- props: t,
257
- name: "JoyTable"
258
- }), {
259
- className: s,
260
- component: a,
261
- children: d,
262
- borderAxis: i = "xBetween",
263
- hoverRow: n = !1,
264
- noWrap: b = !1,
265
- size: v = "md",
266
- variant: x = "plain",
267
- color: m = "neutral",
268
- stripe: T,
269
- stickyHeader: R = !1,
270
- stickyFooter: k = !1,
271
- slots: B = {},
272
- slotProps: w = {}
273
- } = l, A = N(l, X), C = g({}, l, {
274
- borderAxis: i,
275
- hoverRow: n,
276
- noWrap: b,
277
- component: a,
278
- size: v,
279
- color: m,
280
- variant: x,
281
- stripe: T,
282
- stickyHeader: R,
283
- stickyFooter: k
284
- }), W = Y(C), $ = g({}, A, {
285
- component: a,
286
- slots: B,
287
- slotProps: w
288
- }), [z, _] = E("root", {
289
- ref: o,
290
- className: M(W.root, s),
291
- elementType: D,
292
- externalForwardedProps: $,
293
- ownerState: C
294
- });
295
- return /* @__PURE__ */ c.jsx(P.Provider, {
296
- value: !0,
297
- children: /* @__PURE__ */ c.jsx(z, g({}, _, {
298
- children: d
299
- }))
300
- });
301
- }), Z = h(/* @__PURE__ */ c.jsx("path", {
302
- d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"
303
- }), "KeyboardArrowLeft"), Q = h(/* @__PURE__ */ c.jsx("path", {
304
- d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"
305
- }), "KeyboardArrowRight"), ee = h(/* @__PURE__ */ c.jsx("path", {
306
- d: "M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"
307
- }), "HelpOutline"), te = h(/* @__PURE__ */ c.jsx("path", {
308
- d: "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"
309
- }), "Edit"), re = h(/* @__PURE__ */ c.jsx("path", {
310
- d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"
311
- }), "Person");
312
- /**
313
- * @license lucide-react v0.454.0 - ISC
314
- *
315
- * This source code is licensed under the ISC license.
316
- * See the LICENSE file in the root directory of this source tree.
317
- */
318
- const I = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), y = (...e) => e.filter((t, o, l) => !!t && t.trim() !== "" && l.indexOf(t) === o).join(" ").trim();
319
- /**
320
- * @license lucide-react v0.454.0 - ISC
321
- *
322
- * This source code is licensed under the ISC license.
323
- * See the LICENSE file in the root directory of this source tree.
324
- */
325
- var U = {
326
- xmlns: "http://www.w3.org/2000/svg",
327
- width: 24,
328
- height: 24,
329
- viewBox: "0 0 24 24",
330
- fill: "none",
331
- stroke: "currentColor",
332
- strokeWidth: 2,
333
- strokeLinecap: "round",
334
- strokeLinejoin: "round"
335
- };
336
- /**
337
- * @license lucide-react v0.454.0 - ISC
338
- *
339
- * This source code is licensed under the ISC license.
340
- * See the LICENSE file in the root directory of this source tree.
341
- */
342
- const K = p.forwardRef(
343
- ({
344
- color: e = "currentColor",
345
- size: t = 24,
346
- strokeWidth: o = 2,
347
- absoluteStrokeWidth: l,
348
- className: s = "",
349
- children: a,
350
- iconNode: d,
351
- ...i
352
- }, n) => p.createElement(
353
- "svg",
354
- {
355
- ref: n,
356
- ...U,
357
- width: t,
358
- height: t,
359
- stroke: e,
360
- strokeWidth: l ? Number(o) * 24 / Number(t) : o,
361
- className: y("lucide", s),
362
- ...i
363
- },
364
- [
365
- ...d.map(([b, v]) => p.createElement(b, v)),
366
- ...Array.isArray(a) ? a : [a]
367
- ]
368
- )
369
- );
370
- /**
371
- * @license lucide-react v0.454.0 - ISC
372
- *
373
- * This source code is licensed under the ISC license.
374
- * See the LICENSE file in the root directory of this source tree.
375
- */
376
- const f = (e, t) => {
377
- const o = p.forwardRef(
378
- ({ className: l, ...s }, a) => p.createElement(K, {
379
- ref: a,
380
- iconNode: t,
381
- className: y(`lucide-${I(e)}`, l),
382
- ...s
383
- })
384
- );
385
- return o.displayName = `${e}`, o;
386
- };
387
- /**
388
- * @license lucide-react v0.454.0 - ISC
389
- *
390
- * This source code is licensed under the ISC license.
391
- * See the LICENSE file in the root directory of this source tree.
392
- */
393
- const oe = f("ChevronLeft", [
394
- ["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]
395
- ]);
396
- /**
397
- * @license lucide-react v0.454.0 - ISC
398
- *
399
- * This source code is licensed under the ISC license.
400
- * See the LICENSE file in the root directory of this source tree.
401
- */
402
- const le = f("ChevronRight", [
403
- ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
404
- ]), ae = h(/* @__PURE__ */ c.jsx("path", {
405
- d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"
406
- }), "Error");
407
- export {
408
- Q as A,
409
- oe as E,
410
- Z as I,
411
- le as K,
412
- te as M,
413
- G as T,
414
- ee as k,
415
- f as m,
416
- ae as x,
417
- re as z
418
- };
@@ -1,228 +0,0 @@
1
- import { G as w, F as ee, r as u, v as oe, _ as L, Q as re, w as r, Z as ne, x as g, y, j as m, z as h, D as te } from "./main-NO9IQFuY.js";
2
- import { b as R, c as ae, a as se, i as ie } from "./Button-DJj0KOh3.js";
3
- function le(o) {
4
- return ee("MuiLink", o);
5
- }
6
- const I = w("MuiLink", ["root", "disabled", "focusVisible", "colorPrimary", "colorNeutral", "colorDanger", "colorSuccess", "colorWarning", "colorContext", "focusVisible", "variantPlain", "variantOutlined", "variantSoft", "variantSolid", "underlineNone", "underlineHover", "underlineAlways", "h1", "h2", "h3", "h4", "title-lg", "title-md", "title-sm", "body-lg", "body-md", "body-sm", "body-xs", "startDecorator", "endDecorator"]), ce = ["color", "textColor", "variant"], de = ["children", "disabled", "onBlur", "onFocus", "level", "overlay", "underline", "endDecorator", "startDecorator", "component", "slots", "slotProps"], ue = (o) => {
7
- const {
8
- level: e,
9
- color: t,
10
- variant: n,
11
- underline: a,
12
- focusVisible: s,
13
- disabled: i
14
- } = o, l = {
15
- root: ["root", t && `color${h(t)}`, i && "disabled", s && "focusVisible", e, a && `underline${h(a)}`, n && `variant${h(n)}`],
16
- startDecorator: ["startDecorator"],
17
- endDecorator: ["endDecorator"]
18
- };
19
- return te(l, le, {});
20
- }, pe = y("span", {
21
- name: "JoyLink",
22
- slot: "StartDecorator",
23
- overridesResolver: (o, e) => e.startDecorator
24
- })(({
25
- ownerState: o
26
- }) => {
27
- var e;
28
- return r({
29
- display: "inline-flex",
30
- marginInlineEnd: "clamp(4px, var(--Link-gap, 0.375em), 0.75rem)"
31
- }, typeof o.startDecorator != "string" && (o.alignItems === "flex-start" || ((e = o.sx) == null ? void 0 : e.alignItems) === "flex-start") && {
32
- marginTop: "2px"
33
- // this makes the alignment perfect in most cases
34
- });
35
- }), ve = y("span", {
36
- name: "JoyLink",
37
- slot: "endDecorator",
38
- overridesResolver: (o, e) => e.endDecorator
39
- })(({
40
- ownerState: o
41
- }) => {
42
- var e;
43
- return r({
44
- display: "inline-flex",
45
- marginInlineStart: "clamp(4px, var(--Link-gap, 0.25em), 0.5rem)"
46
- }, typeof o.startDecorator != "string" && (o.alignItems === "flex-start" || ((e = o.sx) == null ? void 0 : e.alignItems) === "flex-start") && {
47
- marginTop: "2px"
48
- // this makes the alignment perfect in most cases
49
- });
50
- }), me = y("a", {
51
- name: "JoyLink",
52
- slot: "Root",
53
- overridesResolver: (o, e) => e.root
54
- })(({
55
- theme: o,
56
- ownerState: e
57
- }) => {
58
- var t, n, a, s, i, l, c;
59
- return [r({
60
- "--Icon-fontSize": "1.25em",
61
- "--Icon-color": "currentColor",
62
- "--CircularProgress-size": "1.25em",
63
- "--CircularProgress-thickness": "3px"
64
- }, e.level && e.level !== "inherit" && o.typography[e.level], e.level === "inherit" && {
65
- font: "inherit"
66
- }, e.underline === "none" && {
67
- textDecoration: "none"
68
- }, e.underline === "hover" && {
69
- textDecoration: "none",
70
- "&:hover": {
71
- "@media (hover: hover)": {
72
- textDecorationLine: "underline"
73
- }
74
- }
75
- }, e.underline === "always" && {
76
- textDecoration: "underline"
77
- }, e.startDecorator && {
78
- verticalAlign: "bottom"
79
- // to make the link align with the parent's content
80
- }, {
81
- textDecorationThickness: "max(0.08em, 1px)",
82
- // steal from https://moderncss.dev/modern-css-for-dynamic-component-based-architecture/#css-reset-additions
83
- textUnderlineOffset: "0.15em",
84
- // steal from https://moderncss.dev/modern-css-for-dynamic-component-based-architecture/#css-reset-additions
85
- display: "inline-flex",
86
- alignItems: "center",
87
- WebkitTapHighlightColor: "transparent",
88
- backgroundColor: "transparent",
89
- // Reset default value
90
- // We disable the focus ring for mouse, touch and keyboard users.
91
- outline: 0,
92
- border: 0,
93
- margin: 0,
94
- // Remove the margin in Safari
95
- borderRadius: o.vars.radius.xs,
96
- padding: 0,
97
- // Remove the padding in Firefox
98
- cursor: "pointer",
99
- textDecorationColor: `var(--variant-outlinedBorder, rgba(${(t = o.vars.palette[e.color]) == null ? void 0 : t.mainChannel} / var(--Link-underlineOpacity, 0.72)))`
100
- }, e.variant ? r({
101
- paddingBlock: "min(0.1em, 4px)",
102
- paddingInline: "0.25em"
103
- }, !e.nesting && {
104
- marginInline: "-0.25em"
105
- }) : {
106
- color: `var(--variant-plainColor, rgba(${(n = o.vars.palette[e.color]) == null ? void 0 : n.mainChannel} / 1))`,
107
- [`&.${I.disabled}`]: {
108
- pointerEvents: "none",
109
- color: `var(--variant-plainDisabledColor, rgba(${(a = o.vars.palette[e.color]) == null ? void 0 : a.mainChannel} / 0.6))`
110
- }
111
- }, {
112
- userSelect: e.component === "button" ? "none" : void 0,
113
- MozAppearance: "none",
114
- // Reset
115
- WebkitAppearance: "none",
116
- // Reset
117
- "&::-moz-focus-inner": {
118
- borderStyle: "none"
119
- // Remove Firefox dotted outline.
120
- }
121
- }, e.overlay ? {
122
- position: "initial",
123
- "&::after": {
124
- content: '""',
125
- display: "block",
126
- position: "absolute",
127
- top: 0,
128
- left: 0,
129
- bottom: 0,
130
- right: 0,
131
- borderRadius: "var(--unstable_actionRadius, inherit)",
132
- margin: "var(--unstable_actionMargin)"
133
- },
134
- [`${o.focus.selector}`]: {
135
- "&::after": o.focus.default
136
- }
137
- } : {
138
- position: "relative",
139
- [o.focus.selector]: o.focus.default
140
- }), e.variant && r({}, (s = o.variants[e.variant]) == null ? void 0 : s[e.color], {
141
- "&:hover": {
142
- "@media (hover: hover)": (i = o.variants[`${e.variant}Hover`]) == null ? void 0 : i[e.color]
143
- },
144
- "&:active": (l = o.variants[`${e.variant}Active`]) == null ? void 0 : l[e.color],
145
- [`&.${I.disabled}`]: (c = o.variants[`${e.variant}Disabled`]) == null ? void 0 : c[e.color]
146
- })];
147
- }), be = /* @__PURE__ */ u.forwardRef(function(e, t) {
148
- const n = oe({
149
- props: e,
150
- name: "JoyLink"
151
- }), {
152
- color: a = "primary",
153
- textColor: s,
154
- variant: i
155
- } = n, l = L(n, ce), c = u.useContext(R), F = u.useContext(ae), f = re(r({}, l, {
156
- color: s
157
- })), {
158
- children: p,
159
- disabled: T = !1,
160
- onBlur: D,
161
- onFocus: $,
162
- level: V = "body-md",
163
- overlay: B = !1,
164
- underline: E = "hover",
165
- endDecorator: C,
166
- startDecorator: k,
167
- component: j,
168
- slots: z = {},
169
- slotProps: N = {}
170
- } = f, A = L(f, de), M = c || F ? e.level || "inherit" : V, {
171
- isFocusVisibleRef: P,
172
- onBlur: U,
173
- onFocus: J,
174
- ref: W
175
- } = se(), [H, _] = u.useState(!1), O = ne(t, W), G = (d) => {
176
- U(d), P.current === !1 && _(!1), D && D(d);
177
- }, Q = (d) => {
178
- J(d), P.current === !0 && _(!0), $ && $(d);
179
- }, v = r({}, f, {
180
- color: a,
181
- disabled: T,
182
- focusVisible: H,
183
- underline: E,
184
- variant: i,
185
- level: M,
186
- overlay: B,
187
- nesting: c
188
- }), x = ue(v), b = r({}, A, {
189
- component: j,
190
- slots: z,
191
- slotProps: N
192
- }), [Z, q] = g("root", {
193
- additionalProps: {
194
- onBlur: G,
195
- onFocus: Q
196
- },
197
- ref: O,
198
- className: x.root,
199
- elementType: me,
200
- externalForwardedProps: b,
201
- ownerState: v
202
- }), [K, X] = g("startDecorator", {
203
- className: x.startDecorator,
204
- elementType: pe,
205
- externalForwardedProps: b,
206
- ownerState: v
207
- }), [Y, S] = g("endDecorator", {
208
- className: x.endDecorator,
209
- elementType: ve,
210
- externalForwardedProps: b,
211
- ownerState: v
212
- });
213
- return /* @__PURE__ */ m.jsx(R.Provider, {
214
- value: !0,
215
- children: /* @__PURE__ */ m.jsxs(Z, r({}, q, {
216
- children: [k && /* @__PURE__ */ m.jsx(K, r({}, X, {
217
- children: k
218
- })), ie(p, ["Skeleton"]) ? /* @__PURE__ */ u.cloneElement(p, {
219
- variant: p.props.variant || "inline"
220
- }) : p, C && /* @__PURE__ */ m.jsx(Y, r({}, S, {
221
- children: C
222
- }))]
223
- }))
224
- });
225
- });
226
- export {
227
- be as L
228
- };