@telefonica/mistica 14.4.1 → 14.6.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.
@@ -51,33 +51,33 @@ function _objectSpreadProps(target, source) {
51
51
  return target;
52
52
  }
53
53
  import * as c from "react";
54
- import X from "./generated/mistica-icons/icon-chevron-left-regular.js";
55
- import Z from "./generated/mistica-icons/icon-chevron-right-regular.js";
56
- import { useScreenSize as $, useTheme as ee, useIsInViewport as pe, useIsomorphicLayoutEffect as ge } from "./hooks.js";
57
- import ve from "./inline.js";
58
- import be from "./stack.js";
59
- import { BaseTouchable as R } from "./touchable.js";
60
- import J from "classnames";
61
- import { useIsInverseVariant as Ie, ThemeVariant as M } from "./theme-variant-context.js";
62
- import { MediaBorderRadiusProvider as Pe } from "./image.js";
63
- import { listenResize as te, getPrefixedDataAttributes as xe } from "./utils/dom.js";
64
- import { isAndroid as se } from "./utils/platform.js";
65
- import { useDocumentVisibility as we } from "./utils/document-visibility.js";
66
- import { slideshowContainer as Se, slideshowPrevArrowButton as ke, slideshow as Le, slideshowItem as Ce, slideshowNextArrowButton as Ne, slideshowBullets as Ae, bulletActiveInverse as Me, bulletInverse as Re, bulletActive as Be, bullet as Ee, carouselContainer as ye, carouselPrevArrowButton as Te, carousel as We, centeredCarousel as De, carouselWithScroll as Ve, vars as _, carouselItem as Oe, carouselNextArrowButton as ze, carouselBullets as je } from "./carousel.css-mistica.js";
67
- import { assignInlineVars as _e } from "@vanilla-extract/dynamic";
68
- import { sprinkles as Fe } from "./sprinkles.css-mistica.js";
69
- import { useDesktopContainerType as Ue } from "./desktop-container-type-context.js";
54
+ import $ from "./generated/mistica-icons/icon-chevron-left-regular.js";
55
+ import ee from "./generated/mistica-icons/icon-chevron-right-regular.js";
56
+ import { useScreenSize as te, useTheme as se, useIsInViewport as be, useIsomorphicLayoutEffect as ve } from "./hooks.js";
57
+ import Ie from "./inline.js";
58
+ import Pe from "./stack.js";
59
+ import { BaseTouchable as M } from "./touchable.js";
60
+ import Q from "classnames";
61
+ import { useIsInverseVariant as xe, ThemeVariant as A } from "./theme-variant-context.js";
62
+ import { MediaBorderRadiusProvider as we } from "./image.js";
63
+ import { listenResize as oe, getPrefixedDataAttributes as Se } from "./utils/dom.js";
64
+ import { isAndroid as re } from "./utils/platform.js";
65
+ import { useDocumentVisibility as ke } from "./utils/document-visibility.js";
66
+ import { slideshowContainer as Le, slideshowPrevArrowButton as Ce, slideshow as Ne, slideshowItem as Re, slideshowNextArrowButton as Ae, slideshowBullets as Me, bulletActiveInverse as Be, bulletInverse as Ee, bulletActive as Te, bullet as ye, carouselContainer as We, carouselPrevArrowButton as De, carousel as Ve, centeredCarousel as ze, carouselWithScroll as Oe, vars as _, carouselItem as je, carouselNextArrowButton as _e, carouselBullets as Fe } from "./carousel.css-mistica.js";
67
+ import { assignInlineVars as Ue } from "@vanilla-extract/dynamic";
68
+ import { sprinkles as qe } from "./sprinkles.css-mistica.js";
69
+ import { useDesktopContainerType as Ye } from "./desktop-container-type-context.js";
70
70
  import { jsx as s, jsxs as G } from "./_virtual/jsx-runtime.js";
71
- const oe = (e, r)=>{
72
- const t = we();
73
- return pe(r, !1) && t && !!e;
74
- }, re = (param)=>{
71
+ const le = (e, r)=>{
72
+ const t = ke();
73
+ return be(r, !1) && t && !!e;
74
+ }, ne = (param)=>{
75
75
  let { currentIndex: e , numPages: r , onPress: t } = param;
76
- const o = Ie(), { isDesktopOrBigger: u } = $(), I = (P)=>{
77
- const d = P === e;
78
- return o ? d ? Me : Re : d ? Be : Ee;
76
+ const o = xe(), { isDesktopOrBigger: u } = te(), m = (P)=>{
77
+ const f = P === e;
78
+ return o ? f ? Be : Ee : f ? Te : ye;
79
79
  };
80
- return /* @__PURE__ */ s(ve, {
80
+ return /* @__PURE__ */ s(Ie, {
81
81
  space: u ? 16 : 8,
82
82
  alignItems: "center",
83
83
  dataAttributes: {
@@ -85,21 +85,21 @@ const oe = (e, r)=>{
85
85
  },
86
86
  children: Array.from({
87
87
  length: r
88
- }, (P, d)=>/* @__PURE__ */ s(R, {
89
- className: Fe({
88
+ }, (P, f)=>/* @__PURE__ */ s(M, {
89
+ className: qe({
90
90
  display: "block",
91
91
  padding: 0,
92
92
  border: "none",
93
93
  background: "transparent"
94
94
  }),
95
95
  maybe: !0,
96
- onPress: u && t ? ()=>t(d) : void 0,
96
+ onPress: u && t ? ()=>t(f) : void 0,
97
97
  children: /* @__PURE__ */ s("div", {
98
- className: I(d)
98
+ className: m(f)
99
99
  })
100
- }, d))
100
+ }, f))
101
101
  });
102
- }, K = (e, r, t)=>t ? typeof t == "number" ? t : t[e] || r[e] : r[e], qe = (e, r)=>{
102
+ }, X = (e, r, t)=>t ? typeof t == "number" ? t : t[e] || r[e] : r[e], Ge = (e, r)=>{
103
103
  const t = {
104
104
  mobile: 1,
105
105
  tablet: 2,
@@ -110,54 +110,54 @@ const oe = (e, r)=>{
110
110
  }
111
111
  };
112
112
  if (!r) return _objectSpreadProps(_objectSpread({}, t), {
113
- desktop: K(e, t.desktop)
113
+ desktop: X(e, t.desktop)
114
114
  });
115
115
  if (typeof r == "number") return {
116
116
  mobile: r,
117
117
  tablet: r,
118
118
  desktop: r
119
119
  };
120
- const o = K(e, t.desktop, r.desktop);
120
+ const o = X(e, t.desktop, r.desktop);
121
121
  return _objectSpreadProps(_objectSpread({}, t, r), {
122
122
  desktop: o
123
123
  });
124
- }, Q = (e, r)=>{
124
+ }, Z = (e, r)=>{
125
125
  if (e.length === 0) return [];
126
126
  const t = Math.ceil(e.length / r), o = [];
127
127
  for(let u = 0; u < e.length; u += t)o.push(e[u]);
128
128
  return o[o.length - 1] = e[e.length - t], o;
129
- }, Ye = (e, r)=>{
129
+ }, He = (e, r)=>{
130
130
  const t = [];
131
131
  for(let o = 0; o < r.length; o++)o === 0 ? t.push(r[0]) : t.push((r[o] + r[o - 1]) / 2);
132
132
  for(let o1 = t.length - 1; o1 >= 0; o1--)if (e - t[o1] >= -1) return o1;
133
133
  return 0;
134
- }, le = 5e3, ne = (param)=>{
135
- let { items: e , itemStyle: r , itemClassName: t , withBullets: o , renderBullets: u , initialActiveItem: I , itemsPerPage: P , itemsToScroll: d , gap: f , free: B , centered: w , autoplay: x , onPageChange: S , dataAttributes: k } = param;
136
- const { texts: E , platformOverrides: F } = ee(), L = Ue(), m = qe(L || "large", P), { isDesktopOrBigger: n , isMobile: g } = $(), C = g ? m.mobile : m.tablet, p = Math.max(Math.floor(n ? m.desktop : C), 1), v = c.useRef(null), b = Math.ceil(e.length / p), [{ scrollLeft: y , scrollRight: U }, ie] = c.useState({
134
+ }, ce = 5e3, ie = (param)=>{
135
+ let { items: e , itemStyle: r , itemClassName: t , withBullets: o , renderBullets: u , initialActiveItem: m , itemsPerPage: P , itemsToScroll: f , gap: d , free: B , centered: w , autoplay: x , onPageChange: k , dataAttributes: L } = param;
136
+ const { texts: E , platformOverrides: F } = se(), C = Ye(), p = Ge(C || "large", P), { isDesktopOrBigger: n , isTablet: b } = te(), N = b ? p.tablet : p.mobile, g = Math.max(Math.floor(n ? p.desktop : N), 1), v = c.useRef(null), I = Math.ceil(e.length / g), [{ scrollLeft: T , scrollRight: U }, ue] = c.useState({
137
137
  scrollLeft: 0,
138
138
  scrollRight: 0
139
- }), [q, ae] = c.useState([]), T = c.useMemo(()=>Q(q, b), [
139
+ }), [q, fe] = c.useState([]), y = c.useMemo(()=>Z(q, I), [
140
140
  q,
141
- b
142
- ]), W = d ? Q(q, Math.ceil(e.length / d)) : T, ue = U !== 0, de = y !== 0;
143
- ge(()=>{
141
+ I
142
+ ]), W = f ? Z(q, Math.ceil(e.length / f)) : y, de = U !== 0, he = T !== 0;
143
+ ve(()=>{
144
144
  if (v.current) {
145
145
  const l = v.current, i = ()=>{
146
- const { scrollWidth: O , clientWidth: A } = l, z = Math.round(l.scrollLeft), j = Math.round(O - (z + A));
147
- ie({
148
- scrollLeft: z,
146
+ const { scrollWidth: z , clientWidth: R } = l, O = Math.round(l.scrollLeft), j = Math.round(z - (O + R));
147
+ ue({
148
+ scrollLeft: O,
149
149
  scrollRight: j
150
150
  });
151
151
  }, a = ()=>{
152
- const O = l.scrollWidth - l.clientWidth;
153
- ae(Array.from(l.querySelectorAll("[data-item]")).map((A, z)=>{
154
- if (z === e.length - 1) return O;
155
- const j = A.offsetLeft, he = parseInt(getComputedStyle(A).scrollMargin), me = w && !n ? j - A.clientWidth / 2 : j;
156
- return Math.min(me - he - l.offsetLeft, O);
152
+ const z = l.scrollWidth - l.clientWidth;
153
+ fe(Array.from(l.querySelectorAll("[data-item]")).map((R, O)=>{
154
+ if (O === e.length - 1) return z;
155
+ const j = R.offsetLeft, pe = parseInt(getComputedStyle(R).scrollMargin), ge = w && !n ? j - R.clientWidth / 2 : j;
156
+ return Math.min(ge - pe - l.offsetLeft, z);
157
157
  }));
158
158
  };
159
159
  i(), a(), l.addEventListener("scroll", i);
160
- const h = te(l, ()=>{
160
+ const h = oe(l, ()=>{
161
161
  i(), a();
162
162
  });
163
163
  return ()=>{
@@ -166,11 +166,11 @@ const oe = (e, r)=>{
166
166
  }
167
167
  return ()=>{};
168
168
  }, [
169
- m.desktop,
170
- m.tablet,
171
- m.mobile,
172
- b,
173
- f,
169
+ p.desktop,
170
+ p.tablet,
171
+ p.mobile,
172
+ I,
173
+ d,
174
174
  w,
175
175
  n,
176
176
  e.length
@@ -179,15 +179,15 @@ const oe = (e, r)=>{
179
179
  let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
180
180
  const a = v.current;
181
181
  if (a) {
182
- const h = T[l];
182
+ const h = y[l];
183
183
  a.scrollTo({
184
184
  left: h,
185
185
  behavior: i ? "smooth" : "auto"
186
186
  });
187
187
  }
188
188
  }, [
189
- T
190
- ]), fe = c.useCallback(()=>{
189
+ y
190
+ ]), me = c.useCallback(()=>{
191
191
  const l = v.current;
192
192
  if (l) {
193
193
  const { scrollLeft: i } = l, a = [
@@ -211,16 +211,16 @@ const oe = (e, r)=>{
211
211
  }
212
212
  }, [
213
213
  W
214
- ]), H = oe(!!x, v);
214
+ ]), H = le(!!x, v);
215
215
  c.useEffect(()=>{
216
- I !== void 0 && D(Math.floor(I / p), !1);
216
+ m !== void 0 && D(Math.floor(m / g), !1);
217
217
  }, [
218
- I,
218
+ m,
219
219
  D,
220
- p
220
+ g
221
221
  ]), c.useEffect(()=>{
222
222
  if (H && x) {
223
- const l = typeof x == "boolean" ? le : x.time, i = typeof x == "object" && x.loop, a = setInterval(()=>{
223
+ const l = typeof x == "boolean" ? ce : x.time, i = typeof x == "object" && x.loop, a = setInterval(()=>{
224
224
  var h;
225
225
  U !== 0 ? Y() : i && ((h = v.current) == null || h.scrollTo({
226
226
  left: 0,
@@ -235,98 +235,99 @@ const oe = (e, r)=>{
235
235
  U,
236
236
  H
237
237
  ]);
238
- const N = Ye(y, T);
238
+ const S = He(T, y), J = c.useRef(!m), K = c.useRef(0);
239
239
  c.useEffect(()=>{
240
- if (S) {
241
- const l = Math.min((N + 1) * p - 1, e.length - 1), i = [];
242
- for(let a = 0; a < p; a++){
240
+ if (k) {
241
+ const l = Math.min((S + 1) * g - 1, e.length - 1), i = [];
242
+ for(let a = 0; a < g; a++){
243
243
  const h = l - a;
244
244
  h >= 0 && i.unshift(h);
245
245
  }
246
- S({
247
- pageIndex: N,
246
+ J.current ? K.current !== S && k({
247
+ pageIndex: S,
248
248
  shownItemIndexes: i
249
- });
249
+ }) : J.current = i.includes(m || 0), K.current = S;
250
250
  }
251
251
  }, [
252
- N,
252
+ S,
253
253
  e.length,
254
- p,
255
- S
254
+ g,
255
+ m,
256
+ k
256
257
  ]);
257
258
  let V = null;
258
259
  return u ? V = u({
259
- numPages: b,
260
- currentIndex: N,
260
+ numPages: I,
261
+ currentIndex: S,
261
262
  onPress: D
262
- }) : o && (V = b > 1 && /* @__PURE__ */ s(re, {
263
- numPages: b,
264
- currentIndex: N,
263
+ }) : o && (V = I > 1 && /* @__PURE__ */ s(ne, {
264
+ numPages: I,
265
+ currentIndex: S,
265
266
  onPress: D
266
- })), /* @__PURE__ */ G(be, {
267
+ })), /* @__PURE__ */ G(Pe, {
267
268
  space: 24,
268
269
  dataAttributes: _objectSpread({
269
270
  "component-name": "Carousel"
270
- }, k),
271
+ }, L),
271
272
  children: [
272
273
  /* @__PURE__ */ G("div", {
273
- className: ye,
274
+ className: We,
274
275
  children: [
275
- /* @__PURE__ */ s(M, {
276
+ /* @__PURE__ */ s(A, {
276
277
  isInverse: !1,
277
- children: /* @__PURE__ */ s(R, {
278
- className: Te,
278
+ children: /* @__PURE__ */ s(M, {
279
+ className: De,
279
280
  "aria-label": E.carouselPrevButton,
280
- onPress: fe,
281
- disabled: !de,
282
- children: /* @__PURE__ */ s(X, {})
281
+ onPress: me,
282
+ disabled: !he,
283
+ children: /* @__PURE__ */ s($, {})
283
284
  })
284
285
  }),
285
286
  /* @__PURE__ */ s("div", {
286
- className: J(We, {
287
- [De]: w,
288
- [Ve]: b > 1
287
+ className: Q(Ve, {
288
+ [ze]: w,
289
+ [Oe]: I > 1
289
290
  }),
290
- style: _objectSpreadProps(_objectSpread({}, _e(_objectSpread({
291
- [_.itemsPerPageDesktop]: String(m.desktop),
292
- [_.itemsPerPageTablet]: String(m.tablet),
293
- [_.itemsPerPageMobile]: String(m.mobile)
294
- }, f !== void 0 ? {
295
- [_.gap]: String(f)
291
+ style: _objectSpreadProps(_objectSpread({}, Ue(_objectSpread({
292
+ [_.itemsPerPageDesktop]: String(p.desktop),
293
+ [_.itemsPerPageTablet]: String(p.tablet),
294
+ [_.itemsPerPageMobile]: String(p.mobile)
295
+ }, d !== void 0 ? {
296
+ [_.gap]: String(d)
296
297
  } : {}))), {
297
298
  scrollSnapType: B ? "initial" : "x mandatory"
298
299
  }),
299
300
  ref: v,
300
301
  children: e.map((l, i)=>/* @__PURE__ */ s("div", {
301
- className: J(Oe, t),
302
+ className: Q(je, t),
302
303
  style: _objectSpreadProps(_objectSpread({}, r), {
303
- scrollSnapStop: se(F) ? "always" : "normal"
304
+ scrollSnapStop: re(F) ? "always" : "normal"
304
305
  }),
305
306
  "data-item": !0,
306
307
  children: l
307
308
  }, i))
308
309
  }),
309
- /* @__PURE__ */ s(M, {
310
+ /* @__PURE__ */ s(A, {
310
311
  isInverse: !1,
311
- children: /* @__PURE__ */ s(R, {
312
- className: ze,
312
+ children: /* @__PURE__ */ s(M, {
313
+ className: _e,
313
314
  "aria-label": E.carouselNextButton,
314
315
  onPress: Y,
315
- disabled: !ue,
316
- children: /* @__PURE__ */ s(Z, {})
316
+ disabled: !de,
317
+ children: /* @__PURE__ */ s(ee, {})
317
318
  })
318
319
  })
319
320
  ]
320
321
  }),
321
322
  V && /* @__PURE__ */ s("div", {
322
- className: je,
323
+ className: Fe,
323
324
  children: V
324
325
  })
325
326
  ]
326
327
  });
327
- }, ut = (e)=>/* @__PURE__ */ s(ne, _objectSpread({}, e)), dt = (param)=>/* @__PURE__ */ {
328
- let { items: e , itemStyle: r , itemClassName: t , withBullets: o , renderBullets: u , initialActiveItem: I , onPageChange: P , dataAttributes: d } = param;
329
- return s(ne, {
328
+ }, dt = (e)=>/* @__PURE__ */ s(ie, _objectSpread({}, e)), ht = (param)=>/* @__PURE__ */ {
329
+ let { items: e , itemStyle: r , itemClassName: t , withBullets: o , renderBullets: u , initialActiveItem: m , onPageChange: P , dataAttributes: f } = param;
330
+ return s(ie, {
330
331
  items: e,
331
332
  itemStyle: r,
332
333
  itemClassName: t,
@@ -340,121 +341,121 @@ const oe = (e, r)=>{
340
341
  gap: 0,
341
342
  withBullets: o,
342
343
  renderBullets: u,
343
- initialActiveItem: I,
344
+ initialActiveItem: m,
344
345
  onPageChange: P,
345
- dataAttributes: d
346
+ dataAttributes: f
346
347
  });
347
- }, ce = /*#__PURE__*/ c.createContext(!1), ft = ()=>c.useContext(ce), Ge = (param)=>/* @__PURE__ */ {
348
+ }, ae = /*#__PURE__*/ c.createContext(!1), mt = ()=>c.useContext(ae), Je = (param)=>/* @__PURE__ */ {
348
349
  let { children: e } = param;
349
- return s(ce.Provider, {
350
+ return s(ae.Provider, {
350
351
  value: !0,
351
352
  children: e
352
353
  });
353
- }, ht = (param)=>{
354
- let { items: e , withBullets: r , autoplay: t , onPageChange: o , dataAttributes: u , inverseBullets: I = !0 } = param;
355
- const { texts: P , platformOverrides: d } = ee(), f = c.useRef(null), [{ scrollLeft: B , scrollRight: w }, x] = c.useState({
354
+ }, pt = (param)=>{
355
+ let { items: e , withBullets: r , autoplay: t , onPageChange: o , dataAttributes: u , inverseBullets: m = !0 } = param;
356
+ const { texts: P , platformOverrides: f } = se(), d = c.useRef(null), [{ scrollLeft: B , scrollRight: w }, x] = c.useState({
356
357
  scrollLeft: 0,
357
358
  scrollRight: 0
358
- }), S = c.useCallback(()=>{
359
- const n = f.current;
359
+ }), k = c.useCallback(()=>{
360
+ const n = d.current;
360
361
  n && n.scrollBy({
361
362
  left: -n.clientWidth,
362
363
  behavior: "smooth"
363
364
  });
364
- }, []), k = c.useCallback(()=>{
365
- const n = f.current;
365
+ }, []), L = c.useCallback(()=>{
366
+ const n = d.current;
366
367
  n && n.scrollBy({
367
368
  left: n.clientWidth,
368
369
  behavior: "smooth"
369
370
  });
370
- }, []), E = w !== 0, F = B !== 0, L = f.current ? Math.floor((B + f.current.clientWidth / 2) / f.current.clientWidth) : 0;
371
+ }, []), E = w !== 0, F = B !== 0, C = d.current ? Math.floor((B + d.current.clientWidth / 2) / d.current.clientWidth) : 0;
371
372
  c.useLayoutEffect(()=>{
372
- const n = f.current;
373
+ const n = d.current;
373
374
  if (n) {
374
- const g = ()=>{
375
- const { scrollWidth: p , clientWidth: v } = n, b = Math.round(n.scrollLeft), y = Math.round(p - (b + v));
375
+ const b = ()=>{
376
+ const { scrollWidth: g , clientWidth: v } = n, I = Math.round(n.scrollLeft), T = Math.round(g - (I + v));
376
377
  x({
377
- scrollLeft: b,
378
- scrollRight: y
378
+ scrollLeft: I,
379
+ scrollRight: T
379
380
  });
380
381
  };
381
- g(), n.addEventListener("scroll", g);
382
- const C = te(n, g);
382
+ b(), n.addEventListener("scroll", b);
383
+ const N = oe(n, b);
383
384
  return ()=>{
384
- n.removeEventListener("scroll", g), C();
385
+ n.removeEventListener("scroll", b), N();
385
386
  };
386
387
  }
387
388
  }, [
388
389
  e.length
389
390
  ]);
390
- const m = oe(!!t, f);
391
+ const p = le(!!t, d);
391
392
  return c.useEffect(()=>{
392
- if (m && t) {
393
- const n = typeof t == "boolean" ? le : t.time, g = typeof t == "object" && t.loop, C = setInterval(()=>{
394
- var p;
395
- w !== 0 ? k() : g && ((p = f.current) == null || p.scrollTo({
393
+ if (p && t) {
394
+ const n = typeof t == "boolean" ? ce : t.time, b = typeof t == "object" && t.loop, N = setInterval(()=>{
395
+ var g;
396
+ w !== 0 ? L() : b && ((g = d.current) == null || g.scrollTo({
396
397
  left: 0,
397
398
  behavior: "smooth"
398
399
  }));
399
400
  }, n);
400
- return ()=>clearInterval(C);
401
+ return ()=>clearInterval(N);
401
402
  }
402
403
  }, [
403
404
  t,
404
- k,
405
+ L,
405
406
  w,
406
- m
407
+ p
407
408
  ]), c.useEffect(()=>{
408
- o && o(L);
409
+ o && o(C);
409
410
  }, [
410
- L,
411
+ C,
411
412
  o
412
- ]), /* @__PURE__ */ s(Ge, {
413
+ ]), /* @__PURE__ */ s(Je, {
413
414
  children: /* @__PURE__ */ G("div", _objectSpreadProps(_objectSpread({
414
- className: Se
415
- }, xe(u, "SlideShow")), {
415
+ className: Le
416
+ }, Se(u, "SlideShow")), {
416
417
  children: [
417
- /* @__PURE__ */ s(M, {
418
+ /* @__PURE__ */ s(A, {
418
419
  isInverse: !1,
419
- children: /* @__PURE__ */ s(R, {
420
- className: ke,
420
+ children: /* @__PURE__ */ s(M, {
421
+ className: Ce,
421
422
  "aria-label": P.carouselPrevButton,
422
- onPress: S,
423
+ onPress: k,
423
424
  disabled: !F,
424
- children: /* @__PURE__ */ s(X, {})
425
+ children: /* @__PURE__ */ s($, {})
425
426
  })
426
427
  }),
427
- /* @__PURE__ */ s(Pe, {
428
+ /* @__PURE__ */ s(we, {
428
429
  value: !1,
429
430
  children: /* @__PURE__ */ s("div", {
430
- className: Le,
431
- ref: f,
432
- children: e.map((n, g)=>/* @__PURE__ */ s("div", {
433
- className: Ce,
431
+ className: Ne,
432
+ ref: d,
433
+ children: e.map((n, b)=>/* @__PURE__ */ s("div", {
434
+ className: Re,
434
435
  style: {
435
- scrollSnapStop: se(d) ? "always" : "normal"
436
+ scrollSnapStop: re(f) ? "always" : "normal"
436
437
  },
437
438
  children: n
438
- }, g))
439
+ }, b))
439
440
  })
440
441
  }),
441
- /* @__PURE__ */ s(M, {
442
+ /* @__PURE__ */ s(A, {
442
443
  isInverse: !1,
443
- children: /* @__PURE__ */ s(R, {
444
- className: Ne,
444
+ children: /* @__PURE__ */ s(M, {
445
+ className: Ae,
445
446
  "aria-label": P.carouselNextButton,
446
- onPress: k,
447
+ onPress: L,
447
448
  disabled: !E,
448
- children: /* @__PURE__ */ s(Z, {})
449
+ children: /* @__PURE__ */ s(ee, {})
449
450
  })
450
451
  }),
451
- r && e.length > 1 && /* @__PURE__ */ s(M, {
452
- isInverse: I,
452
+ r && e.length > 1 && /* @__PURE__ */ s(A, {
453
+ isInverse: m,
453
454
  children: /* @__PURE__ */ s("div", {
454
- className: Ae,
455
- children: /* @__PURE__ */ s(re, {
455
+ className: Me,
456
+ children: /* @__PURE__ */ s(ne, {
456
457
  numPages: e.length,
457
- currentIndex: L
458
+ currentIndex: C
458
459
  })
459
460
  })
460
461
  })
@@ -462,4 +463,4 @@ const oe = (e, r)=>{
462
463
  }))
463
464
  });
464
465
  };
465
- export { ut as Carousel, dt as CenteredCarousel, Ge as IsInsideSlideshowProvider, re as PageBullets, ht as Slideshow, ft as useIsInsideSlideshowContext };
466
+ export { dt as Carousel, ht as CenteredCarousel, Je as IsInsideSlideshowProvider, ne as PageBullets, pt as Slideshow, mt as useIsInsideSlideshowContext };
@@ -84,13 +84,13 @@ import { BaseTouchable as c } from "./touchable.js";
84
84
  import { Text as x, Text2 as k } from "./text.js";
85
85
  import { Boxed as I } from "./boxed.js";
86
86
  import C, { useIsDismissable as T } from "./maybe-dismissable.js";
87
- import { container as P, textContainerVariant as E, imageContent as N, touchableContainer as s } from "./highlighted-card.css-mistica.js";
88
- import { vars as H } from "./skins/skin-contract.css-mistica.js";
89
- import { useTheme as y } from "./hooks.js";
87
+ import { container as P, textContainerVariant as y, imageContent as E, touchableContainer as s } from "./highlighted-card.css-mistica.js";
88
+ import { vars as N } from "./skins/skin-contract.css-mistica.js";
89
+ import { useTheme as H } from "./hooks.js";
90
90
  import { jsxs as m, jsx as t, Fragment as R } from "./_virtual/jsx-runtime.js";
91
91
  const S = /*#__PURE__*/ g.forwardRef((e, i)=>{
92
92
  var h;
93
- const { title: a , description: r , imageUrl: o , imageFit: l } = e, u = v(), f = (h = e.isInverse) != null ? h : u, d = T(), { textPresets: b } = y(), n = /* @__PURE__ */ m(I, {
93
+ const { title: a , description: r , imageUrl: o , imageFit: l } = e, u = v(), f = (h = e.isInverse) != null ? h : u, d = T(), { textPresets: b } = H(), n = /* @__PURE__ */ m(I, {
94
94
  ref: i,
95
95
  isInverse: f,
96
96
  className: P,
@@ -101,7 +101,7 @@ const S = /*#__PURE__*/ g.forwardRef((e, i)=>{
101
101
  children: [
102
102
  /* @__PURE__ */ m("div", {
103
103
  role: d ? void 0 : "region",
104
- className: E[o ? "withImage" : "withoutImage"],
104
+ className: y[o ? "withImage" : "withoutImage"],
105
105
  "aria-label": d ? void 0 : e["aria-label"],
106
106
  children: [
107
107
  /* @__PURE__ */ t(x, {
@@ -112,15 +112,17 @@ const S = /*#__PURE__*/ g.forwardRef((e, i)=>{
112
112
  truncate: e.titleLinesMax,
113
113
  weight: b.cardTitle.weight,
114
114
  as: "h3",
115
+ hyphens: "auto",
115
116
  children: a
116
117
  }),
117
118
  /* @__PURE__ */ t(w, {
118
119
  paddingTop: 8,
119
120
  children: /* @__PURE__ */ t(k, {
120
121
  regular: !0,
121
- color: H.colors.textSecondary,
122
+ color: N.colors.textSecondary,
122
123
  truncate: e.descriptionLinesMax,
123
124
  as: "p",
125
+ hyphens: "auto",
124
126
  children: r
125
127
  })
126
128
  }),
@@ -138,7 +140,7 @@ const S = /*#__PURE__*/ g.forwardRef((e, i)=>{
138
140
  ]
139
141
  }),
140
142
  o && /* @__PURE__ */ t("div", {
141
- className: N,
143
+ className: E,
142
144
  style: {
143
145
  backgroundImage: `url(${o})`,
144
146
  backgroundRepeat: "no-repeat",