@hybridcore/ui 1.4.13 → 1.4.15

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.
@@ -1,26 +1,26 @@
1
- import { jsx as e, jsxs as r, Fragment as h } from "react/jsx-runtime";
2
- import { Skeleton as n, Box as g, Avatar as C } from "@mui/material";
1
+ import { jsx as e, jsxs as a, Fragment as u } from "react/jsx-runtime";
2
+ import { Skeleton as n, Box as f, Avatar as M } from "@mui/material";
3
3
  import { LandscapeCardRoot as I, LandscapeInfoBox as P, LandscapeCardExtraActions as _, PortraitCardRoot as L, PortraitCardExtraActions as U } from "./styled.js";
4
- import { _ as u, a as O } from "../../objectWithoutPropertiesLoose-BK36oJDi.js";
5
- import * as T from "react";
4
+ import { _ as x, a as T } from "../../objectWithoutPropertiesLoose-BK36oJDi.js";
5
+ import * as S from "react";
6
6
  import { P as i } from "../../createStyled-BzvgQjjR.js";
7
- import { g as S, u as N, c as k, a as B, b as H } from "../../useThemeProps-uYx_RkOH.js";
8
- import { g as j, s as R } from "../../styled-LNCprp4n.js";
9
- import { C as M } from "../../CardContent-DFsCCOWk.js";
10
- import { T as p } from "../../Typography-Bm7PFqUT.js";
7
+ import { g as N, u as k, c as B, a as j, b as H } from "../../useThemeProps-uYx_RkOH.js";
8
+ import { g as R, s as E } from "../../styled-LNCprp4n.js";
9
+ import { C as O } from "../../CardContent-DFsCCOWk.js";
10
+ import { T as g } from "../../Typography-Bm7PFqUT.js";
11
11
  function D(t) {
12
- return j("MuiCardActions", t);
12
+ return R("MuiCardActions", t);
13
13
  }
14
- S("MuiCardActions", ["root", "spacing"]);
14
+ N("MuiCardActions", ["root", "spacing"]);
15
15
  const z = ["disableSpacing", "className"], $ = (t) => {
16
16
  const {
17
17
  classes: o,
18
18
  disableSpacing: s
19
19
  } = t;
20
- return B({
20
+ return j({
21
21
  root: ["root", !s && "spacing"]
22
22
  }, D, o);
23
- }, F = R("div", {
23
+ }, F = E("div", {
24
24
  name: "MuiCardActions",
25
25
  slot: "Root",
26
26
  overridesResolver: (t, o) => {
@@ -31,7 +31,7 @@ const z = ["disableSpacing", "className"], $ = (t) => {
31
31
  }
32
32
  })(({
33
33
  ownerState: t
34
- }) => u({
34
+ }) => x({
35
35
  display: "flex",
36
36
  alignItems: "center",
37
37
  padding: 8
@@ -39,23 +39,23 @@ const z = ["disableSpacing", "className"], $ = (t) => {
39
39
  "& > :not(:first-of-type)": {
40
40
  marginLeft: 8
41
41
  }
42
- })), E = /* @__PURE__ */ T.forwardRef(function(o, s) {
43
- const c = N({
42
+ })), W = /* @__PURE__ */ S.forwardRef(function(o, s) {
43
+ const c = k({
44
44
  props: o,
45
45
  name: "MuiCardActions"
46
46
  }), {
47
47
  disableSpacing: l = !1,
48
- className: f
49
- } = c, d = O(c, z), m = u({}, c, {
48
+ className: w
49
+ } = c, m = T(c, z), p = x({}, c, {
50
50
  disableSpacing: l
51
- }), x = $(m);
52
- return /* @__PURE__ */ e(F, u({
53
- className: k(x.root, f),
54
- ownerState: m,
51
+ }), v = $(p);
52
+ return /* @__PURE__ */ e(F, x({
53
+ className: B(v.root, w),
54
+ ownerState: p,
55
55
  ref: s
56
- }, d));
56
+ }, m));
57
57
  });
58
- process.env.NODE_ENV !== "production" && (E.propTypes = {
58
+ process.env.NODE_ENV !== "production" && (W.propTypes = {
59
59
  // ----------------------------- Warning --------------------------------
60
60
  // | These PropTypes are generated from the TypeScript type definitions |
61
61
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -83,19 +83,19 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
83
83
  sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
84
84
  });
85
85
  function V(t) {
86
- return j("MuiCardMedia", t);
86
+ return R("MuiCardMedia", t);
87
87
  }
88
- S("MuiCardMedia", ["root", "media", "img"]);
88
+ N("MuiCardMedia", ["root", "media", "img"]);
89
89
  const G = ["children", "className", "component", "image", "src", "style"], q = (t) => {
90
90
  const {
91
91
  classes: o,
92
92
  isMediaComponent: s,
93
93
  isImageComponent: c
94
94
  } = t;
95
- return B({
95
+ return j({
96
96
  root: ["root", s && "media", c && "img"]
97
97
  }, V, o);
98
- }, J = R("div", {
98
+ }, J = E("div", {
99
99
  name: "MuiCardMedia",
100
100
  slot: "Root",
101
101
  overridesResolver: (t, o) => {
@@ -109,7 +109,7 @@ const G = ["children", "className", "component", "image", "src", "style"], q = (
109
109
  }
110
110
  })(({
111
111
  ownerState: t
112
- }) => u({
112
+ }) => x({
113
113
  display: "block",
114
114
  backgroundSize: "cover",
115
115
  backgroundRepeat: "no-repeat",
@@ -119,37 +119,37 @@ const G = ["children", "className", "component", "image", "src", "style"], q = (
119
119
  }, t.isImageComponent && {
120
120
  // ⚠️ object-fit is not supported by IE11.
121
121
  objectFit: "cover"
122
- })), K = ["video", "audio", "picture", "iframe", "img"], Q = ["picture", "img"], b = /* @__PURE__ */ T.forwardRef(function(o, s) {
123
- const c = N({
122
+ })), K = ["video", "audio", "picture", "iframe", "img"], Q = ["picture", "img"], y = /* @__PURE__ */ S.forwardRef(function(o, s) {
123
+ const c = k({
124
124
  props: o,
125
125
  name: "MuiCardMedia"
126
126
  }), {
127
127
  children: l,
128
- className: f,
129
- component: d = "div",
130
- image: m,
131
- src: x,
132
- style: a
133
- } = c, w = O(c, G), v = K.indexOf(d) !== -1, W = !v && m ? u({
134
- backgroundImage: `url("${m}")`
135
- }, a) : a, y = u({}, c, {
136
- component: d,
137
- isMediaComponent: v,
138
- isImageComponent: Q.indexOf(d) !== -1
139
- }), A = q(y);
140
- return /* @__PURE__ */ e(J, u({
141
- className: k(A.root, f),
142
- as: d,
143
- role: !v && m ? "img" : void 0,
128
+ className: w,
129
+ component: m = "div",
130
+ image: p,
131
+ src: v,
132
+ style: r
133
+ } = c, h = T(c, G), d = K.indexOf(m) !== -1, b = !d && p ? x({
134
+ backgroundImage: `url("${p}")`
135
+ }, r) : r, C = x({}, c, {
136
+ component: m,
137
+ isMediaComponent: d,
138
+ isImageComponent: Q.indexOf(m) !== -1
139
+ }), A = q(C);
140
+ return /* @__PURE__ */ e(J, x({
141
+ className: B(A.root, w),
142
+ as: m,
143
+ role: !d && p ? "img" : void 0,
144
144
  ref: s,
145
- style: W,
146
- ownerState: y,
147
- src: v ? m || x : void 0
148
- }, w, {
145
+ style: b,
146
+ ownerState: C,
147
+ src: d ? p || v : void 0
148
+ }, h, {
149
149
  children: l
150
150
  }));
151
151
  });
152
- process.env.NODE_ENV !== "production" && (b.propTypes = {
152
+ process.env.NODE_ENV !== "production" && (y.propTypes = {
153
153
  // ----------------------------- Warning --------------------------------
154
154
  // | These PropTypes are generated from the TypeScript type definitions |
155
155
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -192,334 +192,372 @@ process.env.NODE_ENV !== "production" && (b.propTypes = {
192
192
  */
193
193
  sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object])
194
194
  });
195
- const re = ({
195
+ const ae = ({
196
196
  title: t,
197
197
  text: o,
198
198
  image: s,
199
199
  orientation: c = "portrait",
200
200
  avatar: l,
201
- actions: f,
202
- extraActions: d,
203
- extraInfo: m,
204
- stats: x,
205
- loading: a = !1
206
- }) => c === "landscape" ? /* @__PURE__ */ r(I, { children: [
207
- a ? /* @__PURE__ */ e(
208
- n,
209
- {
210
- sx: { width: 330, height: 200 },
211
- animation: "wave",
212
- variant: "rounded"
213
- }
214
- ) : /* @__PURE__ */ e(
215
- b,
216
- {
217
- component: "img",
218
- alt: t,
219
- image: s,
220
- sx: { width: 330, height: 200 }
221
- }
222
- ),
223
- /* @__PURE__ */ r(M, { children: [
224
- /* @__PURE__ */ e(g, { flex: 1, children: /* @__PURE__ */ r(
225
- g,
201
+ actions: w,
202
+ extraActions: m,
203
+ extraInfo: p,
204
+ stats: v,
205
+ loading: r = !1,
206
+ onClick: h
207
+ }) => {
208
+ const d = () => {
209
+ h && h();
210
+ };
211
+ return c === "landscape" ? /* @__PURE__ */ a(I, { children: [
212
+ r ? /* @__PURE__ */ e(
213
+ n,
226
214
  {
227
- display: "flex",
228
- flexDirection: "column",
229
- justifyContent: "space-between",
230
- height: "100%",
231
- children: [
232
- /* @__PURE__ */ e(g, { children: a ? /* @__PURE__ */ r(h, { children: [
233
- /* @__PURE__ */ e(
234
- n,
235
- {
236
- animation: "wave",
237
- height: 10,
238
- style: { marginBottom: 16, marginTop: 10 }
239
- }
240
- ),
241
- /* @__PURE__ */ e(
242
- n,
243
- {
244
- animation: "wave",
245
- height: 10,
246
- style: { marginBottom: 6 }
247
- }
248
- ),
249
- /* @__PURE__ */ e(
215
+ sx: { width: 330, height: 200 },
216
+ animation: "wave",
217
+ variant: "rounded"
218
+ }
219
+ ) : /* @__PURE__ */ e(
220
+ y,
221
+ {
222
+ component: "img",
223
+ alt: t,
224
+ image: s,
225
+ sx: {
226
+ width: 330,
227
+ height: 200,
228
+ cursor: h ? "pointer" : "default"
229
+ },
230
+ onClick: d
231
+ }
232
+ ),
233
+ /* @__PURE__ */ a(O, { children: [
234
+ /* @__PURE__ */ e(f, { flex: 1, children: /* @__PURE__ */ a(
235
+ f,
236
+ {
237
+ display: "flex",
238
+ flexDirection: "column",
239
+ justifyContent: "space-between",
240
+ height: "100%",
241
+ children: [
242
+ /* @__PURE__ */ e(f, { children: r ? /* @__PURE__ */ a(u, { children: [
243
+ /* @__PURE__ */ e(
244
+ n,
245
+ {
246
+ animation: "wave",
247
+ height: 10,
248
+ style: { marginBottom: 16, marginTop: 10 }
249
+ }
250
+ ),
251
+ /* @__PURE__ */ e(
252
+ n,
253
+ {
254
+ animation: "wave",
255
+ height: 10,
256
+ style: { marginBottom: 6 }
257
+ }
258
+ ),
259
+ /* @__PURE__ */ e(
260
+ n,
261
+ {
262
+ animation: "wave",
263
+ height: 10,
264
+ width: "80%",
265
+ style: { marginBottom: 6 }
266
+ }
267
+ )
268
+ ] }) : /* @__PURE__ */ a(u, { children: [
269
+ /* @__PURE__ */ e(
270
+ g,
271
+ {
272
+ gutterBottom: !0,
273
+ variant: "subtitle1",
274
+ component: "h3",
275
+ sx: {
276
+ overflow: "hidden",
277
+ textOverflow: "ellipsis",
278
+ display: "-webkit-box",
279
+ WebkitLineClamp: 3,
280
+ WebkitBoxOrient: "vertical",
281
+ cursor: h ? "pointer" : "default"
282
+ },
283
+ onClick: d,
284
+ children: t
285
+ }
286
+ ),
287
+ /* @__PURE__ */ e(
288
+ g,
289
+ {
290
+ variant: "caption",
291
+ component: "p",
292
+ sx: {
293
+ color: "text.secondary",
294
+ overflow: "hidden",
295
+ textOverflow: "ellipsis",
296
+ display: "-webkit-box",
297
+ WebkitLineClamp: 4,
298
+ WebkitBoxOrient: "vertical",
299
+ lineHeight: "16px",
300
+ cursor: h ? "pointer" : "default"
301
+ },
302
+ onClick: d,
303
+ children: /* @__PURE__ */ e("small", { children: o })
304
+ }
305
+ )
306
+ ] }) }),
307
+ /* @__PURE__ */ e(f, { children: r ? /* @__PURE__ */ e(
250
308
  n,
251
309
  {
252
310
  animation: "wave",
253
311
  height: 10,
254
- width: "80%",
312
+ width: "40%",
255
313
  style: { marginBottom: 6 }
256
314
  }
257
- )
258
- ] }) : /* @__PURE__ */ r(h, { children: [
259
- /* @__PURE__ */ e(
260
- p,
261
- {
262
- gutterBottom: !0,
263
- variant: "subtitle1",
264
- component: "h3",
265
- sx: {
266
- overflow: "hidden",
267
- textOverflow: "ellipsis",
268
- display: "-webkit-box",
269
- WebkitLineClamp: 3,
270
- WebkitBoxOrient: "vertical"
271
- },
272
- children: t
273
- }
274
- ),
275
- /* @__PURE__ */ e(
276
- p,
277
- {
278
- variant: "caption",
279
- component: "p",
280
- sx: {
281
- color: "text.secondary",
282
- overflow: "hidden",
283
- textOverflow: "ellipsis",
284
- display: "-webkit-box",
285
- WebkitLineClamp: 4,
286
- WebkitBoxOrient: "vertical",
287
- lineHeight: "16px"
288
- },
289
- children: /* @__PURE__ */ e("small", { children: o })
290
- }
291
- )
292
- ] }) }),
293
- /* @__PURE__ */ e(g, { children: a ? /* @__PURE__ */ e(
315
+ ) : v })
316
+ ]
317
+ }
318
+ ) }),
319
+ /* @__PURE__ */ a(P, { children: [
320
+ r ? /* @__PURE__ */ e(
321
+ n,
322
+ {
323
+ animation: "wave",
324
+ variant: "circular",
325
+ width: 42,
326
+ height: 42
327
+ }
328
+ ) : /* @__PURE__ */ e(M, { src: l.image, sx: { width: 42, height: 42 } }),
329
+ r ? /* @__PURE__ */ a(u, { children: [
330
+ /* @__PURE__ */ e(
294
331
  n,
295
332
  {
296
333
  animation: "wave",
297
334
  height: 10,
298
335
  width: "40%",
299
- style: { marginBottom: 6 }
336
+ sx: { mb: 0.25, mt: 0.35 }
300
337
  }
301
- ) : x })
302
- ]
303
- }
304
- ) }),
305
- /* @__PURE__ */ r(P, { children: [
306
- a ? /* @__PURE__ */ e(
307
- n,
308
- {
309
- animation: "wave",
310
- variant: "circular",
311
- width: 42,
312
- height: 42
313
- }
314
- ) : /* @__PURE__ */ e(C, { src: l.image, sx: { width: 42, height: 42 } }),
315
- a ? /* @__PURE__ */ r(h, { children: [
316
- /* @__PURE__ */ e(
338
+ ),
339
+ /* @__PURE__ */ e(
340
+ n,
341
+ {
342
+ animation: "wave",
343
+ height: 10,
344
+ width: "60%",
345
+ sx: { mb: 0.25 }
346
+ }
347
+ )
348
+ ] }) : /* @__PURE__ */ a(u, { children: [
349
+ /* @__PURE__ */ e(
350
+ g,
351
+ {
352
+ variant: "subtitle2",
353
+ sx: {
354
+ fontWeight: "normal",
355
+ lineHeight: "14px",
356
+ fontSize: "13px"
357
+ },
358
+ children: l.title
359
+ }
360
+ ),
361
+ /* @__PURE__ */ e(
362
+ g,
363
+ {
364
+ variant: "caption",
365
+ sx: { color: "text.secondary", lineHeight: "12px" },
366
+ children: /* @__PURE__ */ e("small", { children: l.subTitle })
367
+ }
368
+ )
369
+ ] }),
370
+ /* @__PURE__ */ e(_, { children: r ? /* @__PURE__ */ a(u, { children: [
371
+ /* @__PURE__ */ e(
372
+ n,
373
+ {
374
+ animation: "wave",
375
+ variant: "circular",
376
+ width: 32,
377
+ height: 32
378
+ }
379
+ ),
380
+ /* @__PURE__ */ e(
381
+ n,
382
+ {
383
+ animation: "wave",
384
+ variant: "circular",
385
+ width: 32,
386
+ height: 32
387
+ }
388
+ ),
389
+ /* @__PURE__ */ e(
390
+ n,
391
+ {
392
+ animation: "wave",
393
+ variant: "circular",
394
+ width: 32,
395
+ height: 32
396
+ }
397
+ )
398
+ ] }) : m }),
399
+ r ? /* @__PURE__ */ e(
317
400
  n,
318
401
  {
319
402
  animation: "wave",
320
403
  height: 10,
321
404
  width: "40%",
322
- sx: { mb: 0.25, mt: 0.35 }
405
+ sx: { mb: 0.05, mt: 0.35 }
323
406
  }
324
- ),
325
- /* @__PURE__ */ e(
326
- n,
327
- {
328
- animation: "wave",
329
- height: 10,
330
- width: "60%",
331
- sx: { mb: 0.25 }
332
- }
333
- )
334
- ] }) : /* @__PURE__ */ r(h, { children: [
335
- /* @__PURE__ */ e(
336
- p,
337
- {
338
- variant: "subtitle2",
339
- sx: {
340
- fontWeight: "normal",
341
- lineHeight: "14px",
342
- fontSize: "13px"
343
- },
344
- children: l.title
345
- }
346
- ),
347
- /* @__PURE__ */ e(
348
- p,
407
+ ) : /* @__PURE__ */ e(
408
+ g,
349
409
  {
350
410
  variant: "caption",
351
411
  sx: { color: "text.secondary", lineHeight: "12px" },
352
- children: /* @__PURE__ */ e("small", { children: l.subTitle })
353
- }
354
- )
355
- ] }),
356
- /* @__PURE__ */ e(_, { children: a ? /* @__PURE__ */ r(h, { children: [
357
- /* @__PURE__ */ e(
358
- n,
359
- {
360
- animation: "wave",
361
- variant: "circular",
362
- width: 32,
363
- height: 32
364
- }
365
- ),
366
- /* @__PURE__ */ e(
367
- n,
368
- {
369
- animation: "wave",
370
- variant: "circular",
371
- width: 32,
372
- height: 32
412
+ children: /* @__PURE__ */ e("small", { children: p })
373
413
  }
374
414
  ),
375
- /* @__PURE__ */ e(
415
+ /* @__PURE__ */ e(f, { display: "flex", mt: 1, width: "100%", children: r ? /* @__PURE__ */ e(
376
416
  n,
377
417
  {
418
+ variant: "rounded",
378
419
  animation: "wave",
379
- variant: "circular",
380
- width: 32,
381
- height: 32
420
+ height: 36,
421
+ width: "100%",
422
+ sx: { borderRadius: (b) => b.shape.borderRadius }
382
423
  }
383
- )
384
- ] }) : d }),
385
- a ? /* @__PURE__ */ e(
424
+ ) : w })
425
+ ] })
426
+ ] })
427
+ ] }) : /* @__PURE__ */ a(L, { children: [
428
+ r ? /* @__PURE__ */ e(n, { sx: { height: 172 }, animation: "wave", variant: "rectangular" }) : /* @__PURE__ */ e(
429
+ y,
430
+ {
431
+ component: "img",
432
+ alt: t,
433
+ height: "172",
434
+ image: s,
435
+ sx: { cursor: h ? "pointer" : "default" },
436
+ onClick: d
437
+ }
438
+ ),
439
+ /* @__PURE__ */ e(O, { children: r ? /* @__PURE__ */ a(u, { children: [
440
+ /* @__PURE__ */ e(
386
441
  n,
387
442
  {
388
443
  animation: "wave",
389
444
  height: 10,
390
- width: "40%",
391
- sx: { mb: 0.05, mt: 0.35 }
445
+ style: { marginBottom: 16, marginTop: 10 }
392
446
  }
393
- ) : /* @__PURE__ */ e(
394
- p,
447
+ ),
448
+ /* @__PURE__ */ e(
449
+ n,
395
450
  {
396
- variant: "caption",
397
- sx: { color: "text.secondary", lineHeight: "12px" },
398
- children: /* @__PURE__ */ e("small", { children: m })
451
+ animation: "wave",
452
+ height: 10,
453
+ style: { marginBottom: 6 }
399
454
  }
400
455
  ),
401
- /* @__PURE__ */ e(g, { display: "flex", mt: 1, width: "100%", children: a ? /* @__PURE__ */ e(
456
+ /* @__PURE__ */ e(
402
457
  n,
403
458
  {
404
- variant: "rounded",
405
459
  animation: "wave",
406
- height: 36,
407
- width: "100%",
408
- sx: { borderRadius: (w) => w.shape.borderRadius }
460
+ height: 10,
461
+ width: "80%",
462
+ style: { marginBottom: 8 }
409
463
  }
410
- ) : f })
411
- ] })
412
- ] })
413
- ] }) : /* @__PURE__ */ r(L, { children: [
414
- a ? /* @__PURE__ */ e(n, { sx: { height: 172 }, animation: "wave", variant: "rectangular" }) : /* @__PURE__ */ e(b, { component: "img", alt: t, height: "172", image: s }),
415
- /* @__PURE__ */ e(M, { children: a ? /* @__PURE__ */ r(h, { children: [
416
- /* @__PURE__ */ e(
417
- n,
418
- {
419
- animation: "wave",
420
- height: 10,
421
- style: { marginBottom: 16, marginTop: 10 }
422
- }
423
- ),
424
- /* @__PURE__ */ e(
425
- n,
426
- {
427
- animation: "wave",
428
- height: 10,
429
- style: { marginBottom: 6 }
430
- }
431
- ),
432
- /* @__PURE__ */ e(
433
- n,
434
- {
435
- animation: "wave",
436
- height: 10,
437
- width: "80%",
438
- style: { marginBottom: 8 }
439
- }
440
- )
441
- ] }) : /* @__PURE__ */ r(h, { children: [
442
- /* @__PURE__ */ e(p, { gutterBottom: !0, variant: "subtitle1", component: "h3", noWrap: !0, children: t }),
443
- /* @__PURE__ */ e(
444
- p,
464
+ )
465
+ ] }) : /* @__PURE__ */ a(u, { children: [
466
+ /* @__PURE__ */ e(
467
+ g,
468
+ {
469
+ gutterBottom: !0,
470
+ variant: "subtitle1",
471
+ component: "h3",
472
+ noWrap: !0,
473
+ sx: { cursor: h ? "pointer" : "default" },
474
+ onClick: d,
475
+ children: t
476
+ }
477
+ ),
478
+ /* @__PURE__ */ e(
479
+ g,
480
+ {
481
+ variant: "caption",
482
+ component: "p",
483
+ sx: {
484
+ color: "text.secondary",
485
+ overflow: "hidden",
486
+ textOverflow: "ellipsis",
487
+ display: "-webkit-box",
488
+ WebkitLineClamp: 2,
489
+ WebkitBoxOrient: "vertical",
490
+ lineHeight: "16px",
491
+ cursor: h ? "pointer" : "default"
492
+ },
493
+ onClick: d,
494
+ children: /* @__PURE__ */ e("small", { children: o })
495
+ }
496
+ )
497
+ ] }) }),
498
+ /* @__PURE__ */ a(
499
+ W,
445
500
  {
446
- variant: "caption",
447
- component: "p",
448
501
  sx: {
449
- color: "text.secondary",
450
- overflow: "hidden",
451
- textOverflow: "ellipsis",
452
- display: "-webkit-box",
453
- WebkitLineClamp: 2,
454
- WebkitBoxOrient: "vertical",
455
- lineHeight: "16px"
502
+ display: "flex",
503
+ justifyContent: "space-between",
504
+ p: (b) => b.spacing(2)
456
505
  },
457
- children: /* @__PURE__ */ e("small", { children: o })
458
- }
459
- )
460
- ] }) }),
461
- /* @__PURE__ */ r(
462
- E,
463
- {
464
- sx: {
465
- display: "flex",
466
- justifyContent: "space-between",
467
- p: (w) => w.spacing(2)
468
- },
469
- children: [
470
- /* @__PURE__ */ r(g, { display: "flex", justifyItems: "center", flex: 1, children: [
471
- a ? /* @__PURE__ */ e(
472
- n,
473
- {
474
- animation: "wave",
475
- variant: "circular",
476
- width: 29,
477
- height: 29,
478
- sx: { mb: 0.6 }
479
- }
480
- ) : /* @__PURE__ */ e(C, { src: l.image, sx: { width: 29, height: 29 } }),
481
- /* @__PURE__ */ e(g, { display: "flex", flexDirection: "column", ml: 1, flex: 1, children: a ? /* @__PURE__ */ r(h, { children: [
482
- /* @__PURE__ */ e(
506
+ children: [
507
+ /* @__PURE__ */ a(f, { display: "flex", justifyItems: "center", flex: 1, children: [
508
+ r ? /* @__PURE__ */ e(
483
509
  n,
484
510
  {
485
511
  animation: "wave",
486
- height: 10,
487
- style: { marginBottom: 2, marginTop: 3 },
488
- width: "40%"
489
- }
490
- ),
491
- /* @__PURE__ */ e(n, { animation: "wave", height: 10, width: "60%" })
492
- ] }) : /* @__PURE__ */ r(h, { children: [
493
- /* @__PURE__ */ e(
494
- p,
495
- {
496
- variant: "subtitle2",
497
- sx: {
498
- fontWeight: "normal",
499
- lineHeight: "14px",
500
- fontSize: "13px"
501
- },
502
- noWrap: !0,
503
- children: l.title
504
- }
505
- ),
506
- /* @__PURE__ */ e(
507
- p,
508
- {
509
- variant: "caption",
510
- sx: { color: "text.secondary" },
511
- noWrap: !0,
512
- children: /* @__PURE__ */ e("small", { children: l.subTitle })
512
+ variant: "circular",
513
+ width: 29,
514
+ height: 29,
515
+ sx: { mb: 0.6 }
513
516
  }
514
- )
515
- ] }) })
516
- ] }),
517
- !a && /* @__PURE__ */ e(g, { display: "flex", children: f })
518
- ]
519
- }
520
- ),
521
- a === !1 && d !== void 0 && /* @__PURE__ */ e(U, { className: "extra-actions", children: d })
522
- ] });
517
+ ) : /* @__PURE__ */ e(M, { src: l.image, sx: { width: 29, height: 29 } }),
518
+ /* @__PURE__ */ e(f, { display: "flex", flexDirection: "column", ml: 1, flex: 1, children: r ? /* @__PURE__ */ a(u, { children: [
519
+ /* @__PURE__ */ e(
520
+ n,
521
+ {
522
+ animation: "wave",
523
+ height: 10,
524
+ style: { marginBottom: 2, marginTop: 3 },
525
+ width: "40%"
526
+ }
527
+ ),
528
+ /* @__PURE__ */ e(n, { animation: "wave", height: 10, width: "60%" })
529
+ ] }) : /* @__PURE__ */ a(u, { children: [
530
+ /* @__PURE__ */ e(
531
+ g,
532
+ {
533
+ variant: "subtitle2",
534
+ sx: {
535
+ fontWeight: "normal",
536
+ lineHeight: "14px",
537
+ fontSize: "13px"
538
+ },
539
+ noWrap: !0,
540
+ children: l.title
541
+ }
542
+ ),
543
+ /* @__PURE__ */ e(
544
+ g,
545
+ {
546
+ variant: "caption",
547
+ sx: { color: "text.secondary" },
548
+ noWrap: !0,
549
+ children: /* @__PURE__ */ e("small", { children: l.subTitle })
550
+ }
551
+ )
552
+ ] }) })
553
+ ] }),
554
+ !r && /* @__PURE__ */ e(f, { display: "flex", children: w })
555
+ ]
556
+ }
557
+ ),
558
+ r === !1 && m !== void 0 && /* @__PURE__ */ e(U, { className: "extra-actions", children: m })
559
+ ] });
560
+ };
523
561
  export {
524
- re as Card
562
+ ae as Card
525
563
  };