@telefonica/mistica 14.36.1 → 14.38.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.
Files changed (215) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/avatar.css-mistica.js +1 -1
  4. package/dist/badge.css-mistica.js +3 -3
  5. package/dist/boxed.css-mistica.js +1 -1
  6. package/dist/button-group.css-mistica.js +1 -1
  7. package/dist/button-layout.css-mistica.js +10 -10
  8. package/dist/button.css-mistica.js +40 -32
  9. package/dist/button.css.d.ts +7 -4
  10. package/dist/button.d.ts +4 -2
  11. package/dist/button.js +176 -148
  12. package/dist/callout.css-mistica.js +1 -1
  13. package/dist/card.css-mistica.js +22 -22
  14. package/dist/card.js +10 -10
  15. package/dist/carousel.css-mistica.js +18 -18
  16. package/dist/checkbox.css-mistica.js +10 -10
  17. package/dist/chip.css-mistica.js +8 -8
  18. package/dist/chip.js +47 -42
  19. package/dist/circle.css-mistica.js +2 -2
  20. package/dist/community/advanced-data-card.css-mistica.js +13 -13
  21. package/dist/community/blocks.css-mistica.js +1 -1
  22. package/dist/counter.css-mistica.js +7 -7
  23. package/dist/credit-card-number-field.css-mistica.js +3 -3
  24. package/dist/dialog.css-mistica.js +11 -11
  25. package/dist/double-field.css-mistica.js +4 -4
  26. package/dist/empty-state-card.css-mistica.js +2 -2
  27. package/dist/empty-state.css-mistica.js +6 -6
  28. package/dist/feedback.css-mistica.js +6 -6
  29. package/dist/fixed-footer-layout.css-mistica.js +2 -2
  30. package/dist/grid.css-mistica.js +118 -120
  31. package/dist/grid.css.d.ts +0 -2
  32. package/dist/grid.d.ts +2 -2
  33. package/dist/grid.js +41 -26
  34. package/dist/header.css-mistica.js +1 -1
  35. package/dist/hero.css-mistica.js +5 -5
  36. package/dist/highlighted-card.css-mistica.js +7 -7
  37. package/dist/horizontal-scroll.css-mistica.js +3 -3
  38. package/dist/icon-button.css-mistica.js +2 -2
  39. package/dist/image.css-mistica.js +3 -3
  40. package/dist/image.d.ts +1 -1
  41. package/dist/image.js +21 -21
  42. package/dist/index.d.ts +3 -1
  43. package/dist/index.js +17 -0
  44. package/dist/inline.js +20 -12
  45. package/dist/list.css-mistica.js +16 -16
  46. package/dist/loading-bar.css-mistica.js +7 -7
  47. package/dist/loading-screen.css-mistica.js +51 -0
  48. package/dist/loading-screen.css.d.ts +11 -0
  49. package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
  50. package/dist/loading-screen.d.ts +28 -0
  51. package/dist/loading-screen.js +398 -0
  52. package/dist/maybe-dismissable.css-mistica.js +1 -1
  53. package/dist/menu.css-mistica.js +1 -1
  54. package/dist/mosaic.css-mistica.js +23 -0
  55. package/dist/mosaic.css.d.ts +6 -0
  56. package/dist/mosaic.css.ts.vanilla.css-mistica.js +11 -0
  57. package/dist/mosaic.d.ts +15 -0
  58. package/dist/mosaic.js +206 -0
  59. package/dist/navigation-bar.css-mistica.js +24 -24
  60. package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
  61. package/dist/package-version.js +1 -1
  62. package/dist/password-field.css-mistica.js +1 -1
  63. package/dist/pin-field.css-mistica.js +6 -6
  64. package/dist/popover.css-mistica.js +10 -10
  65. package/dist/progress-bar.css-mistica.js +5 -5
  66. package/dist/radio-button.css-mistica.js +11 -11
  67. package/dist/responsive-layout.css-mistica.js +3 -3
  68. package/dist/screen-reader-only.css-mistica.js +2 -2
  69. package/dist/select.css-mistica.js +14 -14
  70. package/dist/sheet.css-mistica.js +11 -11
  71. package/dist/sheet.js +8 -8
  72. package/dist/skeletons.css-mistica.js +3 -3
  73. package/dist/skins/blau.js +8 -2
  74. package/dist/skins/movistar-legacy.js +6 -0
  75. package/dist/skins/movistar.js +6 -0
  76. package/dist/skins/o2-classic.js +6 -0
  77. package/dist/skins/o2.js +6 -0
  78. package/dist/skins/skin-contract.css-mistica.js +205 -199
  79. package/dist/skins/skin-contract.css.d.ts +6 -0
  80. package/dist/skins/telefonica.js +6 -0
  81. package/dist/skins/types/colors.d.ts +3 -0
  82. package/dist/skins/vivo-new.js +6 -0
  83. package/dist/skins/vivo.js +6 -0
  84. package/dist/slider.css-mistica.js +7 -7
  85. package/dist/snackbar.css-mistica.js +14 -14
  86. package/dist/spinner.css-mistica.js +1 -1
  87. package/dist/sprinkles.css-mistica.js +921 -407
  88. package/dist/sprinkles.css.d.ts +21 -1
  89. package/dist/stacking-group.css-mistica.js +2 -2
  90. package/dist/stepper.css-mistica.js +9 -9
  91. package/dist/switch-component.css-mistica.js +23 -23
  92. package/dist/tabs.css-mistica.js +12 -12
  93. package/dist/tabs.css.d.ts +1 -1
  94. package/dist/tag.css-mistica.js +1 -1
  95. package/dist/text-field-base.css-mistica.js +9 -9
  96. package/dist/text-field-components.css-mistica.js +11 -11
  97. package/dist/text-field-components.js +30 -26
  98. package/dist/text-link.css-mistica.js +3 -3
  99. package/dist/theme.d.ts +1 -1
  100. package/dist/theme.js +1 -0
  101. package/dist/tooltip.css-mistica.js +6 -6
  102. package/dist/touchable.css-mistica.js +3 -3
  103. package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
  104. package/dist/utils/aspect-ratio-support.d.ts +1 -1
  105. package/dist/utils/aspect-ratio-support.js +2 -1
  106. package/dist/video.css-mistica.js +2 -2
  107. package/dist/video.js +22 -22
  108. package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
  109. package/dist/vivinho-loading-animation/index.d.ts +8 -0
  110. package/dist/vivinho-loading-animation/index.js +119 -0
  111. package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
  112. package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
  113. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
  114. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
  115. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
  116. package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
  117. package/dist-es/accordion.css-mistica.js +3 -3
  118. package/dist-es/avatar.css-mistica.js +1 -1
  119. package/dist-es/badge.css-mistica.js +2 -2
  120. package/dist-es/boxed.css-mistica.js +1 -1
  121. package/dist-es/button-group.css-mistica.js +1 -1
  122. package/dist-es/button-layout.css-mistica.js +7 -7
  123. package/dist-es/button.css-mistica.js +18 -10
  124. package/dist-es/button.js +213 -188
  125. package/dist-es/callout.css-mistica.js +1 -1
  126. package/dist-es/card.css-mistica.js +2 -2
  127. package/dist-es/card.js +10 -10
  128. package/dist-es/carousel.css-mistica.js +2 -2
  129. package/dist-es/checkbox.css-mistica.js +6 -6
  130. package/dist-es/chip.css-mistica.js +7 -7
  131. package/dist-es/chip.js +70 -65
  132. package/dist-es/circle.css-mistica.js +2 -2
  133. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  134. package/dist-es/community/blocks.css-mistica.js +1 -1
  135. package/dist-es/counter.css-mistica.js +2 -2
  136. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  137. package/dist-es/dialog.css-mistica.js +5 -5
  138. package/dist-es/double-field.css-mistica.js +4 -4
  139. package/dist-es/empty-state-card.css-mistica.js +2 -2
  140. package/dist-es/empty-state.css-mistica.js +3 -3
  141. package/dist-es/feedback.css-mistica.js +2 -2
  142. package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
  143. package/dist-es/grid.css-mistica.js +117 -119
  144. package/dist-es/grid.js +44 -29
  145. package/dist-es/header.css-mistica.js +1 -1
  146. package/dist-es/hero.css-mistica.js +2 -2
  147. package/dist-es/highlighted-card.css-mistica.js +5 -5
  148. package/dist-es/horizontal-scroll.css-mistica.js +2 -2
  149. package/dist-es/icon-button.css-mistica.js +2 -2
  150. package/dist-es/image.css-mistica.js +2 -2
  151. package/dist-es/image.js +37 -37
  152. package/dist-es/index.js +1796 -1794
  153. package/dist-es/inline.js +29 -21
  154. package/dist-es/list.css-mistica.js +2 -2
  155. package/dist-es/loading-bar.css-mistica.js +2 -2
  156. package/dist-es/loading-screen.css-mistica.js +7 -0
  157. package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
  158. package/dist-es/loading-screen.js +335 -0
  159. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  160. package/dist-es/menu.css-mistica.js +1 -1
  161. package/dist-es/mosaic.css-mistica.js +3 -0
  162. package/dist-es/mosaic.css.ts.vanilla.css-mistica.js +2 -0
  163. package/dist-es/mosaic.js +189 -0
  164. package/dist-es/navigation-bar.css-mistica.js +12 -12
  165. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  166. package/dist-es/package-version.js +1 -1
  167. package/dist-es/password-field.css-mistica.js +1 -1
  168. package/dist-es/pin-field.css-mistica.js +2 -2
  169. package/dist-es/popover.css-mistica.js +2 -2
  170. package/dist-es/progress-bar.css-mistica.js +2 -2
  171. package/dist-es/radio-button.css-mistica.js +6 -6
  172. package/dist-es/responsive-layout.css-mistica.js +3 -3
  173. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  174. package/dist-es/select.css-mistica.js +11 -11
  175. package/dist-es/sheet.css-mistica.js +2 -2
  176. package/dist-es/sheet.js +8 -8
  177. package/dist-es/skeletons.css-mistica.js +2 -2
  178. package/dist-es/skins/blau.js +8 -2
  179. package/dist-es/skins/movistar-legacy.js +8 -2
  180. package/dist-es/skins/movistar.js +6 -0
  181. package/dist-es/skins/o2-classic.js +6 -0
  182. package/dist-es/skins/o2.js +6 -0
  183. package/dist-es/skins/skin-contract.css-mistica.js +205 -199
  184. package/dist-es/skins/telefonica.js +6 -0
  185. package/dist-es/skins/vivo-new.js +6 -0
  186. package/dist-es/skins/vivo.js +6 -0
  187. package/dist-es/slider.css-mistica.js +2 -2
  188. package/dist-es/snackbar.css-mistica.js +5 -5
  189. package/dist-es/spinner.css-mistica.js +1 -1
  190. package/dist-es/sprinkles.css-mistica.js +921 -407
  191. package/dist-es/stacking-group.css-mistica.js +2 -2
  192. package/dist-es/stepper.css-mistica.js +2 -2
  193. package/dist-es/style.css +1 -1
  194. package/dist-es/switch-component.css-mistica.js +18 -18
  195. package/dist-es/tabs.css-mistica.js +7 -7
  196. package/dist-es/tag.css-mistica.js +1 -1
  197. package/dist-es/text-field-base.css-mistica.js +2 -2
  198. package/dist-es/text-field-components.css-mistica.js +2 -2
  199. package/dist-es/text-field-components.js +49 -44
  200. package/dist-es/text-link.css-mistica.js +3 -3
  201. package/dist-es/theme.js +1 -0
  202. package/dist-es/tooltip.css-mistica.js +2 -2
  203. package/dist-es/touchable.css-mistica.js +2 -2
  204. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  205. package/dist-es/utils/aspect-ratio-support.js +2 -1
  206. package/dist-es/video.css-mistica.js +2 -2
  207. package/dist-es/video.js +22 -22
  208. package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
  209. package/dist-es/vivinho-loading-animation/index.js +64 -0
  210. package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
  211. package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
  212. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
  213. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
  214. package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
  215. package/package.json +2 -1
package/dist-es/inline.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  function _define_property(obj, key, value) {
2
3
  if (key in obj) {
3
4
  Object.defineProperty(obj, key, {
@@ -50,29 +51,36 @@ function _object_spread_props(target, source) {
50
51
  }
51
52
  return target;
52
53
  }
53
- import { jsx as i } from "react/jsx-runtime";
54
- import * as d from "react";
55
- import u from "classnames";
56
- import { sprinkles as y } from "./sprinkles.css-mistica.js";
54
+ import { jsx as e } from "react/jsx-runtime";
55
+ import * as u from "react";
56
+ import y from "classnames";
57
+ import { sprinkles as c } from "./sprinkles.css-mistica.js";
57
58
  import { getPrefixedDataAttributes as b } from "./utils/dom.js";
58
- import { wrap as h, fullWidth as c, noFullWidth as v, justifyVariants as x, vars as W } from "./inline.css-mistica.js";
59
- import { applyCssVars as g } from "./utils/css.js";
60
- const j = (param)=>{
61
- let { space: r, className: l, children: e, role: o, alignItems: a = "stretch", "aria-labelledby": s, fullWidth: m, wrap: n, dataAttributes: f } = param;
62
- const p = m || typeof r == "string";
63
- return /* @__PURE__ */ i("div", _object_spread_props(_object_spread({
64
- className: u(l, y({
65
- alignItems: a
66
- }), n ? h : p ? c : v, typeof r != "number" && x[r]),
67
- style: typeof r == "number" ? g({
68
- [W.space]: `${r}px`
59
+ import { wrap as h, fullWidth as v, noFullWidth as g, justifyVariants as x, vars as I } from "./inline.css-mistica.js";
60
+ import { applyCssVars as W } from "./utils/css.js";
61
+ import { isIos as j, isRunningAcceptanceTest as w } from "./utils/platform.js";
62
+ import { useTheme as A } from "./hooks.js";
63
+ const C = (param)=>{
64
+ let { space: r, className: o, children: s, role: l, alignItems: n = "stretch", "aria-labelledby": m, fullWidth: a, wrap: p, dataAttributes: f } = param;
65
+ const d = a || typeof r == "string", { platformOverrides: i } = A();
66
+ return /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
67
+ className: y(o, c({
68
+ alignItems: n
69
+ }), p ? h : d ? v : g, typeof r != "number" && x[r]),
70
+ style: typeof r == "number" ? W({
71
+ [I.space]: `${r}px`
69
72
  }) : void 0,
70
- role: o,
71
- "aria-labelledby": s
72
- }, b(f)), {
73
- children: d.Children.map(e, (t)=>t || t === 0 ? /* @__PURE__ */ i("div", {
73
+ role: l,
74
+ "aria-labelledby": m
75
+ }, b(f, "Inline")), {
76
+ children: u.Children.map(s, (t)=>t || t === 0 ? /* @__PURE__ */ e("div", {
77
+ style: {
78
+ // Hack to fix https://jira.tid.es/browse/WEB-1683
79
+ // In iOS the inline component sometimes cuts the last line of the content
80
+ paddingBottom: j(i) && !w(i) ? 1 : void 0
81
+ },
74
82
  children: t
75
83
  }) : null)
76
84
  }));
77
- }, k = j;
78
- export { k as default };
85
+ }, N = C;
86
+ export { N as default };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./list.css.ts.vanilla.css-mistica.js";
3
- var _ = "_1y2v1nfba _1y2v1nfbs _1y2v1nfbu", f = "_1y2v1nfbj _1y2v1nfd0 _1y2v1nfce _1y2v1nfbs", y = "_1y2v1nfba _1y2v1nfbp", a = "_1y2v1nfba _1y2v1nfbx _1y2v1nfdn", b = "_2buj9gf", r = "_2buj9ge", t = "_2buj9g0", e = "_1y2v1nfba _1y2v1nfbf _1y2v1nfce", u = "_2buj9gm _1y2v1nfba", c = "_1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfds _1y2v1nf62 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfbc _1y2v1nfbv", d = "_2buj9go _1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfds _1y2v1nf62 _1y2v1nf90 _1y2v1nfa9 _1y2v1nfba _1y2v1nfbp _1y2v1nfbu _1y2v1nfby _1y2v1nfce", i = "_1y2v1nfea", o = "_2buj9gc", g = "_2buj9gd", l = "_1y2v1nfba _1y2v1nfbg _1y2v1nfbw", j = "_1y2v1nf63 _1y2v1nf7c _1y2v1nf8l _1y2v1nf9u _1y2v1nfbx _1y2v1nfds _1y2v1nf62 _1y2v1nfbc _1y2v1nfce", s = "_2buj9g1", h = "_2buj9g2";
4
- export { _ as asset, f as badge, y as center, a as content, b as detail, r as detailRight, t as disabled, e as dualActionContainer, u as dualActionDivider, c as dualActionLeft, d as dualActionRight, i as pointer, o as right, g as rightRestrictedWidth, l as rowBody, j as rowContent, s as touchableBackground, h as touchableBackgroundInverse };
3
+ var _ = "_1y2v1nfgg _1y2v1nfgy _1y2v1nfh0", y = "_1y2v1nfgp _1y2v1nfi6 _1y2v1nfhk _1y2v1nfgy", f = "_1y2v1nfgg _1y2v1nfgv", g = "_1y2v1nfgg _1y2v1nfh3 _1y2v1nfit", a = "_2buj9gf", r = "_2buj9ge", i = "_2buj9g0", t = "_1y2v1nfgg _1y2v1nfgl _1y2v1nfhk", e = "_2buj9gm _1y2v1nfgg", o = "_1y2v1nf69 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfiy _1y2v1nf68 _1y2v1nf96 _1y2v1nfaf _1y2v1nfgi _1y2v1nfh1", h = "_2buj9go _1y2v1nf69 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfiy _1y2v1nf68 _1y2v1nf96 _1y2v1nfaf _1y2v1nfgg _1y2v1nfgv _1y2v1nfh0 _1y2v1nfh4 _1y2v1nfhk", u = "_1y2v1nfjg", d = "_2buj9gc", b = "_2buj9gd", c = "_1y2v1nfgg _1y2v1nfgm _1y2v1nfh2", j = "_1y2v1nf69 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfh3 _1y2v1nfiy _1y2v1nf68 _1y2v1nfgi _1y2v1nfhk", l = "_2buj9g1", k = "_2buj9g2";
4
+ export { _ as asset, y as badge, f as center, g as content, a as detail, r as detailRight, i as disabled, t as dualActionContainer, e as dualActionDivider, o as dualActionLeft, h as dualActionRight, u as pointer, d as right, b as rightRestrictedWidth, c as rowBody, j as rowContent, l as touchableBackground, k as touchableBackgroundInverse };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./loading-bar.css.ts.vanilla.css-mistica.js";
3
- var r = 400, _ = "_1num3qg9", e = "_1num3qga", f = "_1num3qgb", y = "_1num3qgc", a = "_1num3qg8 _1y2v1nfce", t = "_1num3qg3 _1y2v1nfb6 _1y2v1nfeh _1y2v1nfew _1y2v1nffb", g = "_1num3qg6 _1y2v1nfb5 _1y2v1nfce _1y2v1nfbx", m = "_1y2v1nfbx _1y2v1nfeb _1y2v1nfb4 _1y2v1nf4c _1y2v1nfch";
4
- export { r as TRANSITION_DURATION_MS, _ as enter, e as enterActive, f as exit, y as exitActive, a as innerProgress, t as portal, g as progress, m as progressContainer };
3
+ var r = 400, _ = "_1num3qg9", e = "_1num3qga", a = "_1num3qgb", f = "_1num3qgc", g = "_1num3qg8 _1y2v1nfhk", y = "_1num3qg3 _1y2v1nfgc _1y2v1nfjn _1y2v1nfk2 _1y2v1nfkh", t = "_1num3qg6 _1y2v1nfgb _1y2v1nfhk _1y2v1nfh3", i = "_1y2v1nfh3 _1y2v1nfjh _1y2v1nfga _1y2v1nf4i _1y2v1nfhn";
4
+ export { r as TRANSITION_DURATION_MS, _ as enter, e as enterActive, a as exit, f as exitActive, g as innerProgress, y as portal, t as progress, i as progressContainer };
@@ -0,0 +1,7 @@
1
+ import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
+ import "./loading-screen.css.ts.vanilla.css-mistica.js";
3
+ var r = 500, a = "flke8b1 _1y2v1nfgg _1y2v1nfgm _1y2v1nfgv", v = "_1y2v1nfh2 _1y2v1nfgg _1y2v1nfgm _1y2v1nfgv _1y2v1nfgp", f = "flke8b9 _1y2v1nf6u", g = "flke8bb", l = "flke8bc", o = "flke8bf", i = "flke8be", d = {
4
+ default: "flke8b4",
5
+ inverse: "flke8b5"
6
+ }, t = "flke8b3", k = "flke8b6";
7
+ export { r as inOutAnimationMs, a as loadingScreen, v as loadingScreenChildren, f as loadingScreenText, g as loadingScreenTextAnimated, l as loadingScreenTextAnimatedOut, o as logo, i as pulseLogo, d as screenBackground, t as screenBackgroundAnimated, k as screenBackgroundFadeOut };
@@ -0,0 +1,2 @@
1
+ const a = "";
2
+ export { a as default };
@@ -0,0 +1,335 @@
1
+ "use client";
2
+ function _define_property(obj, key, value) {
3
+ if (key in obj) {
4
+ Object.defineProperty(obj, key, {
5
+ value: value,
6
+ enumerable: true,
7
+ configurable: true,
8
+ writable: true
9
+ });
10
+ } else {
11
+ obj[key] = value;
12
+ }
13
+ return obj;
14
+ }
15
+ function _object_spread(target) {
16
+ for(var i = 1; i < arguments.length; i++){
17
+ var source = arguments[i] != null ? arguments[i] : {};
18
+ var ownKeys = Object.keys(source);
19
+ if (typeof Object.getOwnPropertySymbols === "function") {
20
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
21
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
22
+ }));
23
+ }
24
+ ownKeys.forEach(function(key) {
25
+ _define_property(target, key, source[key]);
26
+ });
27
+ }
28
+ return target;
29
+ }
30
+ function ownKeys(object, enumerableOnly) {
31
+ var keys = Object.keys(object);
32
+ if (Object.getOwnPropertySymbols) {
33
+ var symbols = Object.getOwnPropertySymbols(object);
34
+ if (enumerableOnly) {
35
+ symbols = symbols.filter(function(sym) {
36
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
37
+ });
38
+ }
39
+ keys.push.apply(keys, symbols);
40
+ }
41
+ return keys;
42
+ }
43
+ function _object_spread_props(target, source) {
44
+ source = source != null ? source : {};
45
+ if (Object.getOwnPropertyDescriptors) {
46
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
+ } else {
48
+ ownKeys(Object(source)).forEach(function(key) {
49
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
+ });
51
+ }
52
+ return target;
53
+ }
54
+ function _object_without_properties(source, excluded) {
55
+ if (source == null) return {};
56
+ var target = _object_without_properties_loose(source, excluded);
57
+ var key, i;
58
+ if (Object.getOwnPropertySymbols) {
59
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
60
+ for(i = 0; i < sourceSymbolKeys.length; i++){
61
+ key = sourceSymbolKeys[i];
62
+ if (excluded.indexOf(key) >= 0) continue;
63
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
64
+ target[key] = source[key];
65
+ }
66
+ }
67
+ return target;
68
+ }
69
+ function _object_without_properties_loose(source, excluded) {
70
+ if (source == null) return {};
71
+ var target = {};
72
+ var sourceKeys = Object.keys(source);
73
+ var key, i;
74
+ for(i = 0; i < sourceKeys.length; i++){
75
+ key = sourceKeys[i];
76
+ if (excluded.indexOf(key) >= 0) continue;
77
+ target[key] = source[key];
78
+ }
79
+ return target;
80
+ }
81
+ import { jsxs as g, jsx as n } from "react/jsx-runtime";
82
+ import * as i from "react";
83
+ import N from "./overscroll-color-context.js";
84
+ import { ThemeVariant as B } from "./theme-variant-context.js";
85
+ import { vars as S } from "./skins/skin-contract.css-mistica.js";
86
+ import E from "./responsive-layout.js";
87
+ import { Text4 as I, Text2 as O } from "./text.js";
88
+ import w from "./stack.js";
89
+ import { inOutAnimationMs as k, loadingScreen as V, screenBackground as j, screenBackgroundFadeOut as z, screenBackgroundAnimated as D, loadingScreenChildren as P, loadingScreenText as _, loadingScreenTextAnimatedOut as F, loadingScreenTextAnimated as y, logo as K, pulseLogo as M } from "./loading-screen.css-mistica.js";
90
+ import W from "./spinner.js";
91
+ import T from "classnames";
92
+ import { sprinkles as $ } from "./sprinkles.css-mistica.js";
93
+ import { Logo as q } from "./logo.js";
94
+ import G from "./screen-reader-only.js";
95
+ import { useTheme as R } from "./hooks.js";
96
+ import { VIVO_NEW_SKIN as H } from "./skins/constants.js";
97
+ import { getPrefixedDataAttributes as J } from "./utils/dom.js";
98
+ const L = (param)=>{
99
+ let { isInverse: e } = param;
100
+ const r = `body {background:${e ? S.colors.backgroundBrand : S.colors.background}}`;
101
+ return /* @__PURE__ */ n("style", {
102
+ children: r
103
+ });
104
+ }, Q = (param)=>{
105
+ let { animateText: e, isLoading: r, onClose: t, texts: c } = param;
106
+ const [o, s] = i.useState(0), [a, l] = i.useState(!1), u = i.useCallback(()=>{
107
+ s((o + 1) % c.length), l(!1);
108
+ }, [
109
+ o,
110
+ c.length
111
+ ]);
112
+ i.useEffect(()=>{
113
+ if (!r || c.length === 1) return;
114
+ var _c_o_duration;
115
+ const h = setTimeout(()=>{
116
+ e ? l(!0) : u();
117
+ }, (_c_o_duration = c[o].duration) !== null && _c_o_duration !== void 0 ? _c_o_duration : 5e3);
118
+ return ()=>{
119
+ clearTimeout(h);
120
+ };
121
+ }, [
122
+ e,
123
+ o,
124
+ a,
125
+ r,
126
+ u,
127
+ c
128
+ ]);
129
+ const m = ()=>{
130
+ if (!r) {
131
+ t == null || t();
132
+ return;
133
+ }
134
+ a && u();
135
+ }, { title: d, description: f } = c[o % c.length];
136
+ return /* @__PURE__ */ n(E, {
137
+ children: /* @__PURE__ */ n("div", {
138
+ className: T(_, {
139
+ [F]: e && (!r || a)
140
+ }),
141
+ onTransitionEnd: m,
142
+ children: /* @__PURE__ */ g(w, {
143
+ space: 8,
144
+ children: [
145
+ d && /* @__PURE__ */ n("div", {
146
+ className: e ? y : void 0,
147
+ children: /* @__PURE__ */ n(I, {
148
+ textAlign: "center",
149
+ regular: !0,
150
+ as: "h1",
151
+ children: d
152
+ })
153
+ }),
154
+ f && /* @__PURE__ */ n("div", {
155
+ className: e ? y : void 0,
156
+ style: {
157
+ animationDelay: "200ms"
158
+ },
159
+ children: /* @__PURE__ */ n(O, {
160
+ textAlign: "center",
161
+ regular: !0,
162
+ as: "p",
163
+ color: S.colors.textSecondary,
164
+ children: f
165
+ })
166
+ })
167
+ ]
168
+ })
169
+ }, o)
170
+ });
171
+ }, x = /*#__PURE__*/ i.forwardRef((param, d)=>{
172
+ let { isInverse: e, children: r, isLoading: t = !0, animateText: c, animateBackground: o, onClose: s, dataAttributes: a, title: l, description: u, texts: m = [
173
+ {
174
+ title: l,
175
+ description: u
176
+ }
177
+ ] } = param;
178
+ const [f, h] = i.useState(!1);
179
+ i.useEffect(()=>{
180
+ if (!t) return;
181
+ const A = setTimeout(()=>{
182
+ h(!0);
183
+ }, k);
184
+ return ()=>{
185
+ clearTimeout(A);
186
+ };
187
+ }, [
188
+ t
189
+ ]);
190
+ const v = i.useRef(!1), p = i.useCallback(()=>{
191
+ !t && !v.current && (v.current = !0, s == null || s());
192
+ }, [
193
+ t,
194
+ s
195
+ ]);
196
+ i.useEffect(()=>{
197
+ if (t) return;
198
+ if (!c && !o) {
199
+ s == null || s();
200
+ return;
201
+ }
202
+ const A = setTimeout(()=>{
203
+ p();
204
+ }, k);
205
+ return ()=>{
206
+ clearTimeout(A);
207
+ };
208
+ }, [
209
+ o,
210
+ c,
211
+ p,
212
+ t,
213
+ s
214
+ ]);
215
+ const b = !r;
216
+ return /* @__PURE__ */ g(B, {
217
+ isInverse: e,
218
+ children: [
219
+ e && /* @__PURE__ */ n(N, {}),
220
+ /* @__PURE__ */ g("div", _object_spread_props(_object_spread({
221
+ ref: d
222
+ }, J(a)), {
223
+ className: T(V, j[e ? "inverse" : "default"], {
224
+ [z]: !t && o,
225
+ [D]: o
226
+ }, $({
227
+ justifyContent: b ? "center" : "space-between"
228
+ })),
229
+ onAnimationEnd: ()=>{
230
+ h(!0);
231
+ },
232
+ onTransitionEnd: p,
233
+ children: [
234
+ r ? /* @__PURE__ */ n("div", {
235
+ className: P,
236
+ children: r
237
+ }) : /* @__PURE__ */ n(W, {
238
+ delay: "0s",
239
+ size: 32,
240
+ color: e ? S.colors.inverse : void 0
241
+ }),
242
+ /* @__PURE__ */ n(Q, {
243
+ animateText: c,
244
+ isLoading: t,
245
+ texts: m,
246
+ onClose: p
247
+ }),
248
+ !b && /* @__PURE__ */ n("div", {
249
+ style: {
250
+ height: 104
251
+ }
252
+ })
253
+ ]
254
+ })),
255
+ t && f && /* @__PURE__ */ n(L, {
256
+ isInverse: !!e
257
+ })
258
+ ]
259
+ });
260
+ }), he = /*#__PURE__*/ i.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
261
+ ref: r
262
+ }, e), {
263
+ dataAttributes: _object_spread({
264
+ "component-name": "LoadingScreen"
265
+ }, e.dataAttributes),
266
+ animateBackground: !0
267
+ }))), U = (param)=>{
268
+ let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
269
+ const { texts: c } = R(), [o, s] = i.useState(!0), a = ()=>{
270
+ e || (r == null || r(), s(!1), t == null || t());
271
+ };
272
+ return /* @__PURE__ */ g("div", {
273
+ className: T(K, {
274
+ [M]: o
275
+ }),
276
+ onAnimationIteration: a,
277
+ children: [
278
+ /* @__PURE__ */ n(G, {
279
+ children: /* @__PURE__ */ n("div", {
280
+ children: c.loading
281
+ })
282
+ }),
283
+ /* @__PURE__ */ n(q, {
284
+ size: 128
285
+ })
286
+ ]
287
+ });
288
+ }, X = /*#__PURE__*/ i.lazy(()=>import("./vivinho-loading-animation/index.js")), Y = (param)=>{
289
+ let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
290
+ const { skinName: c } = R();
291
+ return c === H ? /* @__PURE__ */ n(i.Suspense, {
292
+ fallback: null,
293
+ children: /* @__PURE__ */ n(X, {
294
+ isLoading: e,
295
+ onCloseStart: r,
296
+ onCloseEnd: t
297
+ })
298
+ }) : /* @__PURE__ */ n(U, {
299
+ isLoading: e,
300
+ onCloseStart: r,
301
+ onCloseEnd: t
302
+ });
303
+ }, pe = /*#__PURE__*/ i.forwardRef((_param, o)=>{
304
+ var { isLoading: e = !0, onClose: r, dataAttributes: t } = _param, c = _object_without_properties(_param, [
305
+ "isLoading",
306
+ "onClose",
307
+ "dataAttributes"
308
+ ]);
309
+ const [s, a] = i.useState(!1), l = i.useRef(!1), u = i.useRef(!1), m = ()=>{
310
+ a(!0);
311
+ }, d = ()=>{
312
+ l.current && u.current && (r == null || r());
313
+ };
314
+ return /* @__PURE__ */ n(x, _object_spread_props(_object_spread({
315
+ ref: o,
316
+ isInverse: !0
317
+ }, c), {
318
+ isLoading: e || !s,
319
+ onClose: ()=>{
320
+ u.current = !0, d();
321
+ },
322
+ animateText: !0,
323
+ dataAttributes: _object_spread({
324
+ "component-name": "BrandLoadingScreen"
325
+ }, t),
326
+ children: /* @__PURE__ */ n(Y, {
327
+ isLoading: e,
328
+ onCloseStart: m,
329
+ onCloseEnd: ()=>{
330
+ l.current = !0, d();
331
+ }
332
+ })
333
+ }));
334
+ });
335
+ export { pe as BrandLoadingScreen, he as LoadingScreen };
@@ -1,4 +1,4 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./maybe-dismissable.css.ts.vanilla.css-mistica.js";
3
- var f = "cim30m2 _1y2v1nfb5 _1y2v1nfeh _1y2v1nffb _1y2v1nfc9 _1y2v1nfcp _1y2v1nfba _1y2v1nfbp _1y2v1nfbj", y = "cim30m4 _1y2v1nfba _1y2v1nfbp _1y2v1nfbj _1y2v1nfc6 _1y2v1nfcm _1y2v1nfdt", _ = "_1y2v1nfb4 _1y2v1nfba _1y2v1nfbs";
3
+ var f = "cim30m2 _1y2v1nfgb _1y2v1nfjn _1y2v1nfkh _1y2v1nfhf _1y2v1nfhv _1y2v1nfgg _1y2v1nfgv _1y2v1nfgp", y = "cim30m4 _1y2v1nfgg _1y2v1nfgv _1y2v1nfgp _1y2v1nfhc _1y2v1nfhs _1y2v1nfiz", _ = "_1y2v1nfga _1y2v1nfgg _1y2v1nfgy";
4
4
  export { f as dismissableButton, y as dismissableCircleContainer, _ as dismissableContainer };
@@ -1,6 +1,6 @@
1
1
  import "./sprinkles.css.ts.vanilla.css-mistica.js";
2
2
  import "./menu.css.ts.vanilla.css-mistica.js";
3
- var r = "_2k0k3uj", n = "_2k0k3ui", v = "_2k0k3u8 _1y2v1nf6c _1y2v1nf7l _1y2v1nf8u _1y2v1nfa3 _1y2v1nf33 _1y2v1nfe3 _1y2v1nfba _1y2v1nfbg _1y2v1nfb5", a = "_2k0k3ud", t = "_2k0k3ug", _ = "_2k0k3uf", u = "_2k0k3ue", i = "_2k0k3uh", m = {
3
+ var r = "_2k0k3uj", n = "_2k0k3ui", v = "_2k0k3u8 _1y2v1nf6i _1y2v1nf7r _1y2v1nf90 _1y2v1nfa9 _1y2v1nf36 _1y2v1nfj9 _1y2v1nfgg _1y2v1nfgm _1y2v1nfgb", a = "_2k0k3ud", t = "_2k0k3ug", _ = "_2k0k3uf", u = "_2k0k3ue", i = "_2k0k3uh", m = {
4
4
  enter: "_2k0k3u9",
5
5
  enterActive: "_2k0k3ua",
6
6
  exit: "_2k0k3ub",
@@ -0,0 +1,3 @@
1
+ import "./mosaic.css.ts.vanilla.css-mistica.js";
2
+ var r = "_1j2q6te2", t = "_1j2q6te1", a = "_1j2q6te0";
3
+ export { r as fourItemsContainer, t as singleItemRowContainer, a as squareContainer };
@@ -0,0 +1,2 @@
1
+ const s = "";
2
+ export { s as default };
@@ -0,0 +1,189 @@
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ import { jsx as o, jsxs as g, Fragment as M } from "react/jsx-runtime";
54
+ import { Grid as i, GridItem as e } from "./grid.js";
55
+ import { Carousel as v } from "./carousel.js";
56
+ import { singleItemRowContainer as m, squareContainer as u, fourItemsContainer as w } from "./mosaic.css-mistica.js";
57
+ const d = {
58
+ mobile: 8,
59
+ desktop: 16
60
+ }, C = (param)=>/* @__PURE__ */ {
61
+ let { items: n, isEven: r } = param;
62
+ return o("div", {
63
+ className: n.length === 1 ? m : u,
64
+ children: /* @__PURE__ */ o(i, {
65
+ gap: d,
66
+ rows: 2,
67
+ columns: 2,
68
+ height: "100%",
69
+ children: n.length === 3 ? /* @__PURE__ */ g(M, {
70
+ children: [
71
+ /* @__PURE__ */ o(e, {
72
+ columnSpan: r ? 2 : void 0,
73
+ children: n[0]
74
+ }),
75
+ /* @__PURE__ */ o(e, {
76
+ children: n[1]
77
+ }),
78
+ /* @__PURE__ */ o(e, {
79
+ columnSpan: r ? void 0 : 2,
80
+ children: n[2]
81
+ })
82
+ ]
83
+ }) : n.map((a, h)=>/* @__PURE__ */ o(e, {
84
+ columnSpan: n.length === 4 ? void 0 : 2,
85
+ rowSpan: n.length === 1 ? 2 : void 0,
86
+ children: a
87
+ }, h))
88
+ })
89
+ });
90
+ }, N = (param)=>{
91
+ let { items: n, withBullets: r, free: a, dataAttributes: h } = param;
92
+ const c = n.length, t = c < 5 ? Math.min(c, 1) : Math.floor((c + 1) / 3), l = Array.from({
93
+ length: t
94
+ }, ()=>[]);
95
+ return n.forEach((s, p)=>{
96
+ const f = Math.min(t - 1, Math.floor(p / 3));
97
+ l[f].push(s);
98
+ }), /* @__PURE__ */ o(v, {
99
+ dataAttributes: _object_spread_props(_object_spread({}, h), {
100
+ "component-name": "HorizontalMosaic"
101
+ }),
102
+ items: l.map((s, p)=>/* @__PURE__ */ o(i, {
103
+ children: /* @__PURE__ */ o(C, {
104
+ items: s,
105
+ isEven: p % 2 === 0
106
+ }, p)
107
+ })),
108
+ withBullets: r,
109
+ free: a
110
+ });
111
+ }, S = (param)=>{
112
+ let { items: n } = param;
113
+ switch(n.length){
114
+ case 1:
115
+ case 2:
116
+ return /* @__PURE__ */ o("div", {
117
+ className: m,
118
+ children: /* @__PURE__ */ o(i, {
119
+ gap: d,
120
+ columns: 2,
121
+ height: "100%",
122
+ children: n.map((r, a)=>/* @__PURE__ */ o(e, {
123
+ columnSpan: n.length === 2 ? void 0 : 2,
124
+ children: r
125
+ }, a))
126
+ })
127
+ });
128
+ case 3:
129
+ return /* @__PURE__ */ o("div", {
130
+ className: u,
131
+ children: /* @__PURE__ */ o(i, {
132
+ gap: d,
133
+ columns: 2,
134
+ flow: "column",
135
+ height: "100%",
136
+ children: n.map((r, a)=>/* @__PURE__ */ o(e, {
137
+ rowSpan: a === 0 ? 2 : void 0,
138
+ children: r
139
+ }, a))
140
+ })
141
+ });
142
+ case 4:
143
+ default:
144
+ return /* @__PURE__ */ o("div", {
145
+ className: w,
146
+ children: /* @__PURE__ */ g(i, {
147
+ gap: d,
148
+ rows: 3,
149
+ columns: 2,
150
+ height: "100%",
151
+ children: [
152
+ /* @__PURE__ */ o(e, {
153
+ rowSpan: 2,
154
+ children: n[0]
155
+ }),
156
+ /* @__PURE__ */ o(e, {
157
+ children: n[1]
158
+ }),
159
+ /* @__PURE__ */ o(e, {
160
+ rowSpan: 2,
161
+ children: n[3]
162
+ }),
163
+ /* @__PURE__ */ o(e, {
164
+ children: n[2]
165
+ })
166
+ ]
167
+ })
168
+ });
169
+ }
170
+ }, b = (param)=>{
171
+ let { items: n, dataAttributes: r } = param;
172
+ const a = n.length, h = Math.ceil(a / 4), c = Array.from({
173
+ length: h
174
+ }, ()=>[]);
175
+ return n.forEach((t, l)=>{
176
+ const s = Math.floor(l / 4);
177
+ c[s].push(t);
178
+ }), /* @__PURE__ */ o(i, {
179
+ rows: 1,
180
+ gap: d,
181
+ dataAttributes: _object_spread_props(_object_spread({}, r), {
182
+ "component-name": "VerticalMosaic"
183
+ }),
184
+ children: c.map((t, l)=>/* @__PURE__ */ o(S, {
185
+ items: t
186
+ }, l))
187
+ });
188
+ };
189
+ export { N as HorizontalMosaic, b as VerticalMosaic };