@telefonica/mistica 14.37.0 → 14.39.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 (66) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/carousel.js +46 -43
  3. package/dist/chip.js +51 -34
  4. package/dist/empty-state-card.js +24 -18
  5. package/dist/image.css-mistica.js +7 -4
  6. package/dist/image.css.d.ts +1 -0
  7. package/dist/image.js +69 -58
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.js +7 -0
  10. package/dist/inline.css-mistica.js +14 -12
  11. package/dist/inline.css.d.ts +5 -1
  12. package/dist/inline.d.ts +4 -2
  13. package/dist/inline.js +31 -16
  14. package/dist/loading-bar.css-mistica.js +6 -18
  15. package/dist/loading-bar.css.d.ts +1 -4
  16. package/dist/loading-bar.js +22 -27
  17. package/dist/loading-screen.css-mistica.js +51 -0
  18. package/dist/loading-screen.css.d.ts +11 -0
  19. package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
  20. package/dist/loading-screen.d.ts +28 -0
  21. package/dist/loading-screen.js +398 -0
  22. package/dist/logo.css-mistica.js +21 -5
  23. package/dist/logo.css.d.ts +7 -0
  24. package/dist/logo.d.ts +2 -2
  25. package/dist/logo.js +86 -61
  26. package/dist/navigation-bar.css-mistica.js +43 -37
  27. package/dist/navigation-bar.css.d.ts +3 -1
  28. package/dist/navigation-bar.js +165 -209
  29. package/dist/package-version.js +1 -1
  30. package/dist/tabs.css.d.ts +1 -1
  31. package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
  32. package/dist/vivinho-loading-animation/index.d.ts +8 -0
  33. package/dist/vivinho-loading-animation/index.js +119 -0
  34. package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
  35. package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
  36. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
  37. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
  38. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
  39. package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
  40. package/dist-es/carousel.js +46 -43
  41. package/dist-es/chip.js +78 -61
  42. package/dist-es/empty-state-card.js +41 -35
  43. package/dist-es/image.css-mistica.js +2 -2
  44. package/dist-es/image.js +86 -76
  45. package/dist-es/index.js +1782 -1781
  46. package/dist-es/inline.css-mistica.js +7 -8
  47. package/dist-es/inline.js +39 -24
  48. package/dist-es/loading-bar.css-mistica.js +2 -2
  49. package/dist-es/loading-bar.js +22 -32
  50. package/dist-es/loading-screen.css-mistica.js +7 -0
  51. package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
  52. package/dist-es/loading-screen.js +335 -0
  53. package/dist-es/logo.css-mistica.js +7 -2
  54. package/dist-es/logo.js +110 -85
  55. package/dist-es/navigation-bar.css-mistica.js +19 -19
  56. package/dist-es/navigation-bar.js +219 -263
  57. package/dist-es/package-version.js +1 -1
  58. package/dist-es/style.css +1 -1
  59. package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
  60. package/dist-es/vivinho-loading-animation/index.js +64 -0
  61. package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
  62. package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
  63. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
  64. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
  65. package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
  66. package/package.json +2 -1
@@ -1,9 +1,8 @@
1
1
  import "./inline.css.ts.vanilla.css-mistica.js";
2
- var v = "kkfbnv2 kkfbnv1", n = {
3
- between: "kkfbnv5",
4
- around: "kkfbnv6",
5
- evenly: "kkfbnv7"
6
- }, a = "kkfbnv4 kkfbnv1", f = {
7
- space: "var(--kkfbnv0)"
8
- }, r = "kkfbnv3 kkfbnv1";
9
- export { v as fullWidth, n as justifyVariants, a as noFullWidth, f as vars, r as wrap };
2
+ var v = "kkfbnv5", a = "kkfbnv7 kkfbnv6", n = "kkfbnv4", r = "kkfbnv9 kkfbnv6", b = {
3
+ space: "var(--kkfbnv0)",
4
+ spaceMobile: "var(--kkfbnv1)",
5
+ spaceTablet: "var(--kkfbnv2)",
6
+ spaceDesktop: "var(--kkfbnv3)"
7
+ }, f = "kkfbnv8 kkfbnv6";
8
+ export { v as flexInline, a as fullWidth, n as marginInline, r as noFullWidth, b as vars, f as wrap };
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,43 @@ 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";
57
- 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`
69
- }) : 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", {
74
- children: t
54
+ import { jsx as o } from "react/jsx-runtime";
55
+ import * as y from "react";
56
+ import I from "classnames";
57
+ import { sprinkles as g } from "./sprinkles.css-mistica.js";
58
+ import { getPrefixedDataAttributes as h } from "./utils/dom.js";
59
+ import { wrap as v, fullWidth as x, noFullWidth as W, flexInline as $, marginInline as k, vars as r } from "./inline.css-mistica.js";
60
+ import { applyCssVars as F } from "./utils/css.js";
61
+ import { isIos as T, isRunningAcceptanceTest as V } from "./utils/platform.js";
62
+ import { useTheme as w } from "./hooks.js";
63
+ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, A = (t)=>{
64
+ if (typeof t == "number" || typeof t == "string") return {
65
+ [r.space]: i(t)
66
+ };
67
+ const e = {
68
+ [r.spaceMobile]: i(t.mobile),
69
+ [r.spaceDesktop]: i(t.desktop)
70
+ };
71
+ return t.tablet && (e[r.spaceTablet] = i(t.tablet)), e;
72
+ }, C = (param)=>{
73
+ let { space: t, className: e, children: s, role: a, alignItems: m = "stretch", "aria-labelledby": f, fullWidth: p, wrap: u, dataAttributes: c } = param;
74
+ const d = p || typeof t == "string", { platformOverrides: l } = w(), b = typeof t == "string";
75
+ return /* @__PURE__ */ o("div", _object_spread_props(_object_spread({
76
+ className: I(e, g({
77
+ alignItems: m
78
+ }), u ? v : d ? x : W, b ? $ : k),
79
+ style: F(A(t)),
80
+ role: a,
81
+ "aria-labelledby": f
82
+ }, h(c, "Inline")), {
83
+ children: y.Children.map(s, (n)=>n || n === 0 ? /* @__PURE__ */ o("div", {
84
+ style: {
85
+ // Hack to fix https://jira.tid.es/browse/WEB-1683
86
+ // In iOS the inline component sometimes cuts the last line of the content
87
+ paddingBottom: T(l) && !V(l) ? 1 : void 0
88
+ },
89
+ children: n
75
90
  }) : null)
76
91
  }));
77
- }, k = j;
78
- export { k as default };
92
+ }, S = C;
93
+ export { S as default };
@@ -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", 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 };
3
+ var r = "_1num3qg3", _ = "_1num3qga _1y2v1nfhk", f = "_1num3qg2 _1y2v1nfgc _1y2v1nfjn _1y2v1nfk2 _1y2v1nfkh", y = "_1num3qg7 _1y2v1nfgb _1y2v1nfhk _1y2v1nfh3", g = "_1y2v1nfh3 _1y2v1nfjh _1y2v1nfga _1y2v1nf4i _1y2v1nfhn";
4
+ export { r as hidden, _ as innerProgress, f as portal, y as progress, g as progressContainer };
@@ -51,37 +51,27 @@ function _object_spread_props(target, source) {
51
51
  }
52
52
  return target;
53
53
  }
54
- import { jsx as e } from "react/jsx-runtime";
55
- import { CSSTransition as i } from "react-transition-group";
56
- import { Portal as n } from "./portal.js";
57
- import { TRANSITION_DURATION_MS as o, enter as a, enterActive as s, exit as m, exitActive as c, portal as d, progressContainer as l, progress as p, innerProgress as f } from "./loading-bar.css-mistica.js";
58
- import { getPrefixedDataAttributes as g } from "./utils/dom.js";
59
- import { isRunningAcceptanceTest as u } from "./utils/platform.js";
60
- const x = (param)=>/* @__PURE__ */ {
61
- let { visible: r, dataAttributes: t } = param;
62
- return e(i, {
63
- in: r,
64
- timeout: u() ? 0 : o,
65
- classNames: {
66
- enter: a,
67
- enterActive: s,
68
- exit: m,
69
- exitActive: c
70
- },
71
- unmountOnExit: !0,
72
- children: /* @__PURE__ */ e(n, {
73
- className: d,
74
- children: /* @__PURE__ */ e("div", _object_spread_props(_object_spread({
75
- className: l
76
- }, g(t, "LoadingBar")), {
77
- children: /* @__PURE__ */ e("div", {
78
- className: p,
79
- children: /* @__PURE__ */ e("div", {
80
- className: f
81
- })
54
+ import { jsx as r } from "react/jsx-runtime";
55
+ import { Portal as s } from "./portal.js";
56
+ import { portal as e, hidden as i, progressContainer as t, progress as m, innerProgress as n } from "./loading-bar.css-mistica.js";
57
+ import { getPrefixedDataAttributes as d } from "./utils/dom.js";
58
+ import l from "classnames";
59
+ const c = (param)=>/* @__PURE__ */ {
60
+ let { visible: a, dataAttributes: o } = param;
61
+ return r(s, {
62
+ className: l(e, {
63
+ [i]: !a
64
+ }),
65
+ children: /* @__PURE__ */ r("div", _object_spread_props(_object_spread({
66
+ className: t
67
+ }, d(o, "LoadingBar")), {
68
+ children: /* @__PURE__ */ r("div", {
69
+ className: m,
70
+ children: /* @__PURE__ */ r("div", {
71
+ className: n
82
72
  })
83
- }))
84
- })
73
+ })
74
+ }))
85
75
  });
86
- }, B = x;
87
- export { B as default };
76
+ }, u = c;
77
+ export { u as default };
@@ -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,3 +1,8 @@
1
1
  import "./logo.css.ts.vanilla.css-mistica.js";
2
- var r = "_140ft6x0";
3
- export { r as logoContainer };
2
+ var t = "_140ft6x5", a = "_140ft6x4", e = {
3
+ size: "var(--_140ft6x0)",
4
+ sizeMobile: "var(--_140ft6x1)",
5
+ sizeTablet: "var(--_140ft6x2)",
6
+ sizeDesktop: "var(--_140ft6x3)"
7
+ };
8
+ export { t as logoContainer, a as svg, e as vars };