@telefonica/mistica 14.0.0 → 14.2.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.
@@ -10,10 +10,10 @@ function _export(target, all) {
10
10
  }
11
11
  _export(exports, {
12
12
  getAnimateDrawLineProps: ()=>p,
13
- getAnimateFadeInProps: ()=>f,
14
- getAnimateHopInProps: ()=>u,
15
- getAnimateSweepInProps: ()=>y,
16
- mergeProperties: ()=>k
13
+ getAnimateFadeInProps: ()=>d,
14
+ getAnimateHopInProps: ()=>f,
15
+ getAnimateSweepInProps: ()=>u,
16
+ mergeProperties: ()=>y
17
17
  });
18
18
  const _platformJs = require("./platform.js");
19
19
  const _jsxRuntimeJs = require("../_virtual/jsx-runtime.js");
@@ -69,7 +69,7 @@ function _objectSpreadProps(target, source) {
69
69
  }
70
70
  return target;
71
71
  }
72
- const a = (e)=>!(0, _platformJs.isOldChrome)(e) && !(0, _platformJs.isRunningAcceptanceTest)(e) && typeof window < "u", p = (e, t, i)=>a(i) ? {
72
+ const i = (e)=>!(0, _platformJs.isRunningAcceptanceTest)(e), p = (e, t, a)=>i(a) ? {
73
73
  strokeDasharray: e.replace("-", ""),
74
74
  strokeDashoffset: e,
75
75
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("animate", {
@@ -84,7 +84,7 @@ const a = (e)=>!(0, _platformJs.isOldChrome)(e) && !(0, _platformJs.isRunningAcc
84
84
  calcMode: "spline",
85
85
  keySplines: "0.75 0 0.25 1"
86
86
  })
87
- } : null, f = (e, t)=>a(t) ? {
87
+ } : null, d = (e, t)=>i(t) ? {
88
88
  opacity: 0,
89
89
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("animate", {
90
90
  attributeName: "opacity",
@@ -98,7 +98,7 @@ const a = (e)=>!(0, _platformJs.isOldChrome)(e) && !(0, _platformJs.isRunningAcc
98
98
  calcMode: "spline",
99
99
  keySplines: "0.75 0 0.25 1"
100
100
  })
101
- } : null, u = (e, t)=>a(t) ? {
101
+ } : null, f = (e, t)=>i(t) ? {
102
102
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
103
103
  children: [
104
104
  /* @__PURE__ */ (0, _jsxRuntimeJs.jsx)("animate", {
@@ -125,7 +125,7 @@ const a = (e)=>!(0, _platformJs.isOldChrome)(e) && !(0, _platformJs.isRunningAcc
125
125
  })
126
126
  ]
127
127
  })
128
- } : null, y = (e, t)=>a(t) ? {
128
+ } : null, u = (e, t)=>i(t) ? {
129
129
  opacity: 0,
130
130
  children: /* @__PURE__ */ (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
131
131
  children: [
@@ -180,7 +180,7 @@ const a = (e)=>!(0, _platformJs.isOldChrome)(e) && !(0, _platformJs.isRunningAcc
180
180
  })
181
181
  ]
182
182
  })
183
- } : null, m = (param, t)=>/* @__PURE__ */ {
183
+ } : null, o = (param, t)=>/* @__PURE__ */ {
184
184
  let { children: e } = param;
185
185
  return (0, _jsxRuntimeJs.jsxs)(_jsxRuntimeJs.Fragment, {
186
186
  children: [
@@ -188,12 +188,12 @@ const a = (e)=>!(0, _platformJs.isOldChrome)(e) && !(0, _platformJs.isRunningAcc
188
188
  t
189
189
  ]
190
190
  });
191
- }, k = function() {
191
+ }, y = function() {
192
192
  for(var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++){
193
193
  e[_key] = arguments[_key];
194
194
  }
195
- return e.reduce((t, i)=>_objectSpreadProps(_objectSpread({}, t, i || {}), {
196
- children: m(t, i ? i.children : null)
195
+ return e.reduce((t, a)=>_objectSpreadProps(_objectSpread({}, t, a || {}), {
196
+ children: o(t, a ? a.children : null)
197
197
  }), {
198
198
  children: null
199
199
  });
@@ -12,6 +12,5 @@ export declare const isIos: (platformOverrides: Theme['platformOverrides']) => b
12
12
  export declare const isSafari: () => boolean;
13
13
  export declare const isFirefox: (platformOverrides?: Theme['platformOverrides']) => boolean;
14
14
  export declare const isChrome: (platformOverrides: Theme['platformOverrides']) => boolean;
15
- export declare const isOldChrome: (platformOverrides: Theme['platformOverrides']) => boolean;
16
15
  export declare const getIosVersion: (platformOverrides: Theme['platformOverrides']) => string;
17
16
  export declare const getPlatform: (platformOverrides?: Theme['platformOverrides']) => 'ios' | 'android' | 'desktop';
@@ -9,15 +9,14 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- getPlatform: ()=>h,
12
+ getPlatform: ()=>A,
13
13
  isAndroid: ()=>s,
14
- isChrome: ()=>g,
15
- isFirefox: ()=>p,
14
+ isChrome: ()=>l,
15
+ isFirefox: ()=>g,
16
16
  isInsideNovumNativeApp: ()=>c,
17
17
  isIos: ()=>a,
18
- isOldChrome: ()=>A,
19
- isRunningAcceptanceTest: ()=>m,
20
- isSafari: ()=>l
18
+ isRunningAcceptanceTest: ()=>f,
19
+ isSafari: ()=>p
21
20
  });
22
21
  const _webviewBridge = require("@tef-novum/webview-bridge");
23
22
  const t = function() {
@@ -27,13 +26,10 @@ const t = function() {
27
26
  }, c = function() {
28
27
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
29
28
  return typeof e.insideNovumNativeApp < "u" ? e.insideNovumNativeApp : (0, _webviewBridge.isWebViewBridgeAvailable)();
30
- }, m = function() {
29
+ }, f = function() {
31
30
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
32
- return t(e).includes("acceptance-test");
33
- }, r = Boolean(typeof self < "u" && self.MSStream), s = (e)=>t(e).toLowerCase().includes("android") && !r, a = (e)=>!!(/iPad|iPhone|iPod/.test(t(e)) && !r || c(e) && !s(e)), l = ()=>navigator.vendor.includes("Apple"), p = (e)=>!!t(e).match(/Firefox\/([0-9]+)\./), g = (e)=>!!t(e).match(/Chrom(e|ium)\/([0-9]+)\./), d = 44, A = (e)=>{
34
- const n = t(e).match(/Chrome\/(\d+)/);
35
- return !n || !n[1] ? !1 : Number(n[1]) < d;
36
- }, h = function() {
31
+ return t(e).includes("acceptance-test") && !process.env.SSR_TEST;
32
+ }, r = Boolean(typeof self < "u" && self.MSStream), s = (e)=>t(e).toLowerCase().includes("android") && !r, a = (e)=>!!(/iPad|iPhone|iPod/.test(t(e)) && !r || c(e) && !s(e)), p = ()=>navigator.vendor.includes("Apple"), g = (e)=>!!t(e).match(/Firefox\/([0-9]+)\./), l = (e)=>!!t(e).match(/Chrom(e|ium)\/([0-9]+)\./), A = function() {
37
33
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
38
34
  const n = e.platform;
39
35
  return n || (a(e) ? "ios" : s(e) ? "android" : "desktop");
package/dist-es/dialog.js CHANGED
@@ -99,13 +99,13 @@ import U from "./button-layout.js";
99
99
  import { Text5 as q, Text4 as P, Text3 as G } from "./text.js";
100
100
  import { ESC as J } from "./utils/key-codes.js";
101
101
  import E from "./box.js";
102
- import { isOldChrome as Q, isRunningAcceptanceTest as X } from "./utils/platform.js";
103
- import { useSetModalState as Y } from "./modal-context-provider.js";
104
- import Z from "./stack.js";
105
- import { wrapper as $, modalOpacityLayer as ee, closedOpactityLayer as te, modalContent as oe, closedModalContent as ne, modalCloseButtonContainer as ae, variants as ie, iconContainer as le, dialogContent as se, dialogActions as ce } from "./dialog.css-mistica.js";
102
+ import { isRunningAcceptanceTest as Q } from "./utils/platform.js";
103
+ import { useSetModalState as X } from "./modal-context-provider.js";
104
+ import Y from "./stack.js";
105
+ import { wrapper as Z, modalOpacityLayer as $, closedOpactityLayer as ee, modalContent as te, closedModalContent as oe, modalCloseButtonContainer as ne, variants as ae, iconContainer as ie, dialogContent as le, dialogActions as se } from "./dialog.css-mistica.js";
106
106
  import { vars as R } from "./skins/skin-contract.css-mistica.js";
107
- import { jsx as o, jsxs as b, Fragment as re } from "./_virtual/jsx-runtime.js";
108
- const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
107
+ import { jsx as o, jsxs as b, Fragment as ce } from "./_virtual/jsx-runtime.js";
108
+ const A = (e)=>process.env.NODE_ENV !== "test" && !Q(e), re = (e)=>{
109
109
  const { texts: n } = D(), { className: t , title: a , message: c , icon: l , extra: i , cancelText: r = n.dialogCancelButton , acceptText: d = n.dialogAcceptButton , onCancel: u , onAccept: C , showCancel: p = !1 , destructive: h = !1 } = e, x = !!e.forceWeb, m = {
110
110
  onPress: C || (()=>{}),
111
111
  dataAttributes: {
@@ -114,12 +114,12 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
114
114
  children: d
115
115
  };
116
116
  return /* @__PURE__ */ b("div", {
117
- className: T(ie[x ? "dialog" : "default"], t),
117
+ className: T(ae[x ? "dialog" : "default"], t),
118
118
  children: [
119
119
  l && /* @__PURE__ */ o(E, {
120
120
  paddingBottom: 24,
121
121
  children: /* @__PURE__ */ o("div", {
122
- className: le,
122
+ className: ie,
123
123
  children: /*#__PURE__*/ s.cloneElement(l, {
124
124
  size: "100%"
125
125
  })
@@ -145,8 +145,8 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
145
145
  })
146
146
  }),
147
147
  /* @__PURE__ */ o("div", {
148
- className: se,
149
- children: /* @__PURE__ */ b(Z, {
148
+ className: le,
149
+ children: /* @__PURE__ */ b(Y, {
150
150
  space: 16,
151
151
  children: [
152
152
  /* @__PURE__ */ o(G, {
@@ -159,7 +159,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
159
159
  })
160
160
  }),
161
161
  /* @__PURE__ */ o("div", {
162
- className: ce,
162
+ className: se,
163
163
  children: /* @__PURE__ */ b(U, {
164
164
  link: e.forceWeb ? e.link : void 0,
165
165
  children: [
@@ -181,7 +181,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
181
181
  })
182
182
  ]
183
183
  });
184
- }, ue = (param)=>{
184
+ }, de = (param)=>{
185
185
  let { showCancel: e , message: n , title: t , acceptText: a , cancelText: c , onAccept: l , onCancel: i } = param;
186
186
  return e ? K({
187
187
  message: n,
@@ -193,11 +193,11 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
193
193
  title: t,
194
194
  buttonText: a
195
195
  }).then(l);
196
- }, he = (param)=>{
196
+ }, ue = (param)=>{
197
197
  let { renderNative: e , onAccept: n , onCancel: t , acceptText: a , cancelText: c , showCancel: l , message: i , title: r } = param;
198
198
  const d = s.useRef(n).current, u = s.useRef(t).current;
199
199
  s.useEffect(()=>{
200
- e && ue({
200
+ e && de({
201
201
  acceptText: a,
202
202
  cancelText: c,
203
203
  showCancel: l,
@@ -216,7 +216,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
216
216
  r,
217
217
  e
218
218
  ]);
219
- }, me = (e)=>(he({
219
+ }, he = (e)=>(ue({
220
220
  renderNative: !0,
221
221
  acceptText: e.acceptText || e.dialogAcceptButton,
222
222
  cancelText: e.cancelText || e.dialogCancelButton,
@@ -225,7 +225,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
225
225
  title: e.title,
226
226
  onAccept: e.onAccept,
227
227
  onCancel: e.onCancel
228
- }), null), fe = (e)=>{
228
+ }), null), me = (e)=>{
229
229
  var N;
230
230
  const { platformOverrides: n } = D(), t = s.useContext(z), a = s.useRef(process.env.NODE_ENV === "test");
231
231
  if (!t) throw Error("To use @telefonica/mistica components you must instantiate <ThemeContextProvider> as their parent.");
@@ -267,7 +267,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
267
267
  c,
268
268
  n
269
269
  ]);
270
- const k = Y();
270
+ const k = X();
271
271
  return s.useEffect(()=>(k({
272
272
  isModalOpen: !0
273
273
  }), ()=>{
@@ -276,17 +276,17 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
276
276
  });
277
277
  }), [
278
278
  k
279
- ]), c ? /* @__PURE__ */ o(me, _objectSpreadProps(_objectSpread({}, e), {
279
+ ]), c ? /* @__PURE__ */ o(he, _objectSpreadProps(_objectSpread({}, e), {
280
280
  dialogAcceptButton: t.texts.dialogAcceptButton,
281
281
  dialogCancelButton: t.texts.dialogCancelButton
282
282
  })) : /* @__PURE__ */ o(I, {
283
283
  children: /* @__PURE__ */ o("div", {
284
- className: $,
284
+ className: Z,
285
285
  children: /* @__PURE__ */ o(H, {
286
286
  children: /* @__PURE__ */ o("div", {
287
287
  onClick: x,
288
- className: T(ee, {
289
- [te]: i
288
+ className: T($, {
289
+ [ee]: i
290
290
  }),
291
291
  role: "dialog",
292
292
  "data-component-name": "Dialog",
@@ -297,12 +297,12 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
297
297
  onAnimationEnd: ()=>{
298
298
  a.current = !0, B();
299
299
  },
300
- className: T(oe, {
301
- [ne]: i
300
+ className: T(te, {
301
+ [oe]: i
302
302
  }),
303
303
  children: [
304
304
  e.showClose && /* @__PURE__ */ o("div", {
305
- className: ae,
305
+ className: ne,
306
306
  children: /* @__PURE__ */ o(V, {
307
307
  onPress: h,
308
308
  "aria-label": (N = t.texts.modalClose) != null ? N : t.texts.closeButtonLabel,
@@ -311,7 +311,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
311
311
  })
312
312
  })
313
313
  }),
314
- /* @__PURE__ */ o(de, _objectSpreadProps(_objectSpread({}, u), {
314
+ /* @__PURE__ */ o(re, _objectSpreadProps(_objectSpread({}, u), {
315
315
  onCancel: p,
316
316
  onAccept: C
317
317
  }))
@@ -324,7 +324,7 @@ const A = (e)=>!Q(e) && process.env.NODE_ENV !== "test" && !X(e), de = (e)=>{
324
324
  });
325
325
  };
326
326
  let v = null, w = 0;
327
- class Me extends s.Component {
327
+ class We extends s.Component {
328
328
  componentDidMount() {
329
329
  w++, w === 1 && (v = this, window.addEventListener("popstate", this.handleBack));
330
330
  }
@@ -359,14 +359,14 @@ class Me extends s.Component {
359
359
  "onCancel",
360
360
  "onAccept"
361
361
  ]);
362
- c = /* @__PURE__ */ o(fe, _objectSpread({
362
+ c = /* @__PURE__ */ o(me, _objectSpread({
363
363
  onCancel: this.createCancelHandler(l),
364
364
  onAccept: this.createAcceptHandler(i),
365
365
  isClosing: t,
366
366
  onCloseTransitionEnd: t ? this.handleCloseFinished : void 0
367
367
  }, r));
368
368
  }
369
- return /* @__PURE__ */ b(re, {
369
+ return /* @__PURE__ */ b(ce, {
370
370
  children: [
371
371
  this.props.children,
372
372
  c
@@ -405,17 +405,17 @@ const y = (param)=>{
405
405
  forceWeb: t
406
406
  }, a));
407
407
  };
408
- }, Oe = y({
408
+ }, Me = y({
409
409
  showCancel: !1,
410
410
  forceWeb: !1,
411
411
  showClose: !1
412
- }), Ie = y({
412
+ }), Oe = y({
413
413
  showCancel: !0,
414
414
  forceWeb: !1,
415
415
  showClose: !1
416
- }), He = y({
416
+ }), Ie = y({
417
417
  showCancel: !1,
418
418
  forceWeb: !0,
419
419
  showClose: !0
420
420
  });
421
- export { Oe as alert, Ie as confirm, Me as default, He as dialog };
421
+ export { Me as alert, Oe as confirm, We as default, Ie as dialog };
@@ -88,21 +88,21 @@ import z from "./icons/icon-success-vivo.js";
88
88
  import ne from "./icons/icon-error.js";
89
89
  import ce from "./icons/icon-info.js";
90
90
  import { isWebViewBridgeAvailable as se, requestVibration as ae } from "@tef-novum/webview-bridge";
91
- import { isOldChrome as ie, isRunningAcceptanceTest as de } from "./utils/platform.js";
92
- import { Text2 as me, Text6 as le, Text3 as ue } from "./text.js";
91
+ import { isRunningAcceptanceTest as ie } from "./utils/platform.js";
92
+ import { Text2 as de, Text6 as me, Text3 as le } from "./text.js";
93
93
  import A from "./box.js";
94
- import { Boxed as pe } from "./boxed.js";
95
- import v from "./responsive-layout.js";
94
+ import { Boxed as ue } from "./boxed.js";
95
+ import F from "./responsive-layout.js";
96
96
  import b from "./stack.js";
97
- import be from "classnames";
98
- import fe from "./button-group.js";
97
+ import pe from "classnames";
98
+ import be from "./button-group.js";
99
99
  import { vars as s } from "./skins/skin-contract.css-mistica.js";
100
- import { innerContainer as R, feedbackData as he, feedbackDataAppear as ke, feedbackDataAppearActive as ge, desktopContainer as Se, desktopContent as Fe, container as ve } from "./feedback.css-mistica.js";
101
- import { jsxs as i, Fragment as Ie, jsx as e } from "./_virtual/jsx-runtime.js";
102
- const W = (r)=>!ie(r) && !de(r), j = (param)=>{
100
+ import { innerContainer as R, feedbackData as fe, feedbackDataAppear as he, feedbackDataAppearActive as ke, desktopContainer as ge, desktopContent as Se, container as ve } from "./feedback.css-mistica.js";
101
+ import { jsxs as i, Fragment as Fe, jsx as e } from "./_virtual/jsx-runtime.js";
102
+ const W = (r)=>!ie(r), j = (param)=>{
103
103
  let { primaryButton: r , secondaryButton: o } = param;
104
104
  return !!r || !!o;
105
- }, Be = ()=>{
105
+ }, Ie = ()=>{
106
106
  const o = `body {background:${q() ? s.colors.backgroundBrand : s.colors.background}}`;
107
107
  return /* @__PURE__ */ e("style", {
108
108
  children: o
@@ -140,13 +140,13 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
140
140
  r,
141
141
  /* @__PURE__ */ i(b, {
142
142
  space: 16,
143
- className: be(he, c && ke, c && a && ge),
143
+ className: pe(fe, c && he, c && a && ke),
144
144
  children: [
145
- /* @__PURE__ */ e(le, {
145
+ /* @__PURE__ */ e(me, {
146
146
  as: "h1",
147
147
  children: o
148
148
  }),
149
- d && /* @__PURE__ */ e(ue, {
149
+ d && /* @__PURE__ */ e(le, {
150
150
  regular: !0,
151
151
  color: s.colors.textSecondary,
152
152
  children: d
@@ -162,18 +162,18 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
162
162
  space: 24,
163
163
  children: [
164
164
  r,
165
- t && /* @__PURE__ */ e(fe, _objectSpread({}, o))
165
+ t && /* @__PURE__ */ e(be, _objectSpread({}, o))
166
166
  ]
167
167
  });
168
168
  }, U = (param)=>/* @__PURE__ */ {
169
169
  let { isInverse: r , inlineFeedbackBody: o , imageFit: t , imageUrl: n , dataAttributes: c } = param;
170
- return i(pe, {
171
- className: Se,
170
+ return i(ue, {
171
+ className: ge,
172
172
  isInverse: r,
173
173
  dataAttributes: c,
174
174
  children: [
175
175
  /* @__PURE__ */ e("div", {
176
- className: Fe,
176
+ className: Se,
177
177
  children: /* @__PURE__ */ e(A, {
178
178
  padding: 64,
179
179
  children: o
@@ -194,7 +194,7 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
194
194
  }, x = (param)=>{
195
195
  let { title: r , description: o , children: t , primaryButton: n , secondaryButton: c , link: a , hapticFeedback: d , icon: u , animateText: m = !1 , unstable_inlineInDesktop: h , imageUrl: k , imageFit: g , dataAttributes: S } = param;
196
196
  K(d);
197
- const l = q(), { platformOverrides: F , isDarkMode: p , skinName: T } = I(), J = oe(), { isTabletOrSmaller: y } = B(), [Q, X] = f.useState(typeof self < "u"), [C, Y] = f.useState(0), N = Q ? "100vh" : `${J - C}px`, V = j({
197
+ const l = q(), { platformOverrides: v , isDarkMode: p , skinName: T } = I(), J = oe(), { isTabletOrSmaller: y } = B(), [Q, X] = f.useState(typeof self < "u"), [C, Y] = f.useState(0), N = Q ? "100vh" : `${J - C}px`, V = j({
198
198
  primaryButton: n,
199
199
  secondaryButton: c,
200
200
  link: a
@@ -207,7 +207,7 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
207
207
  title: r,
208
208
  description: o,
209
209
  children: t
210
- }, m && W(F), Z), H = P(w, {
210
+ }, m && W(v), Z), H = P(w, {
211
211
  primaryButton: n,
212
212
  secondaryButton: c,
213
213
  link: a
@@ -215,14 +215,14 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
215
215
  if (!y && h) return H;
216
216
  const ee = /* @__PURE__ */ e("div", {
217
217
  className: ve,
218
- children: /* @__PURE__ */ e(v, {
218
+ children: /* @__PURE__ */ e(F, {
219
219
  children: /* @__PURE__ */ e("div", {
220
220
  className: R,
221
221
  children: w
222
222
  })
223
223
  })
224
224
  });
225
- return y ? /* @__PURE__ */ i(Ie, {
225
+ return y ? /* @__PURE__ */ i(Fe, {
226
226
  children: [
227
227
  l && /* @__PURE__ */ e(E, {}),
228
228
  /* @__PURE__ */ e("div", {
@@ -251,9 +251,9 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
251
251
  background: l ? s.colors.backgroundBrand : s.colors.background
252
252
  }
253
253
  }),
254
- T !== O && /* @__PURE__ */ e(Be, {})
254
+ T !== O && /* @__PURE__ */ e(Ie, {})
255
255
  ]
256
- }) : /* @__PURE__ */ e(v, {
256
+ }) : /* @__PURE__ */ e(F, {
257
257
  children: /* @__PURE__ */ e(A, {
258
258
  paddingTop: 64,
259
259
  children: U({
@@ -265,7 +265,7 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
265
265
  })
266
266
  })
267
267
  });
268
- }, Ge = (_param)=>{
268
+ }, Ke = (_param)=>{
269
269
  var { dataAttributes: r } = _param, o = _objectWithoutProperties(_param, [
270
270
  "dataAttributes"
271
271
  ]);
@@ -283,7 +283,7 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
283
283
  }, r)
284
284
  }))
285
285
  });
286
- }, Me = (_param)=>/* @__PURE__ */ {
286
+ }, Ge = (_param)=>/* @__PURE__ */ {
287
287
  var { children: r , errorReference: o , dataAttributes: t } = _param, n = _objectWithoutProperties(_param, [
288
288
  "children",
289
289
  "errorReference",
@@ -298,14 +298,14 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
298
298
  }, t),
299
299
  children: [
300
300
  r,
301
- o && /* @__PURE__ */ e(me, {
301
+ o && /* @__PURE__ */ e(de, {
302
302
  color: s.colors.textSecondary,
303
303
  regular: !0,
304
304
  children: o
305
305
  })
306
306
  ]
307
307
  }));
308
- }, Pe = (_param)=>/* @__PURE__ */ {
308
+ }, Me = (_param)=>/* @__PURE__ */ {
309
309
  var { dataAttributes: r } = _param, o = _objectWithoutProperties(_param, [
310
310
  "dataAttributes"
311
311
  ]);
@@ -315,20 +315,20 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
315
315
  }, r),
316
316
  icon: /* @__PURE__ */ e(ce, {})
317
317
  }, o));
318
- }, Ue = (param)=>{
318
+ }, Pe = (param)=>{
319
319
  let { title: r , description: o , children: t , primaryButton: n , secondaryButton: c , link: a , imageUrl: d , imageFit: u , dataAttributes: m } = param;
320
320
  K("success");
321
- const { isTabletOrSmaller: h } = B(), { skinName: k , platformOverrides: g } = I(), S = G(), F = M({
321
+ const { isTabletOrSmaller: h } = B(), { skinName: k , platformOverrides: g } = I(), S = G(), v = M({
322
322
  icon: k === L ? /* @__PURE__ */ e(z, {}) : /* @__PURE__ */ e(_, {}),
323
323
  title: r,
324
324
  description: o,
325
325
  children: t
326
- }, W(g), S), p = P(F, {
326
+ }, W(g), S), p = P(v, {
327
327
  primaryButton: n,
328
328
  secondaryButton: c,
329
329
  link: a
330
330
  });
331
- return h ? /* @__PURE__ */ i(v, {
331
+ return h ? /* @__PURE__ */ i(F, {
332
332
  isInverse: !0,
333
333
  children: [
334
334
  /* @__PURE__ */ e(E, {}),
@@ -353,4 +353,4 @@ const W = (r)=>!ie(r) && !de(r), j = (param)=>{
353
353
  }, m)
354
354
  });
355
355
  };
356
- export { Me as ErrorFeedbackScreen, x as FeedbackScreen, Pe as InfoFeedbackScreen, Ue as SuccessFeedback, Ge as SuccessFeedbackScreen };
356
+ export { Ge as ErrorFeedbackScreen, x as FeedbackScreen, Me as InfoFeedbackScreen, Pe as SuccessFeedback, Ke as SuccessFeedbackScreen };
@@ -0,0 +1,101 @@
1
+ function _defineProperty(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 _objectSpread(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
+ _defineProperty(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 _objectSpreadProps(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
+ function _objectWithoutProperties(source, excluded) {
54
+ if (source == null) return {};
55
+ var target = _objectWithoutPropertiesLoose(source, excluded);
56
+ var key, i;
57
+ if (Object.getOwnPropertySymbols) {
58
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
+ for(i = 0; i < sourceSymbolKeys.length; i++){
60
+ key = sourceSymbolKeys[i];
61
+ if (excluded.indexOf(key) >= 0) continue;
62
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
+ target[key] = source[key];
64
+ }
65
+ }
66
+ return target;
67
+ }
68
+ function _objectWithoutPropertiesLoose(source, excluded) {
69
+ if (source == null) return {};
70
+ var target = {};
71
+ var sourceKeys = Object.keys(source);
72
+ var key, i;
73
+ for(i = 0; i < sourceKeys.length; i++){
74
+ key = sourceKeys[i];
75
+ if (excluded.indexOf(key) >= 0) continue;
76
+ target[key] = source[key];
77
+ }
78
+ return target;
79
+ }
80
+ import { useIsInverseVariant as l } from "../../theme-variant-context.js";
81
+ import { vars as t } from "../../skins/skin-contract.css-mistica.js";
82
+ import { jsx as s } from "../../_virtual/jsx-runtime.js";
83
+ const f = (_param)=>{
84
+ var { color: e , size: r = 24 } = _param, i = _objectWithoutProperties(_param, [
85
+ "color",
86
+ "size"
87
+ ]);
88
+ const n = l(), o = e != null ? e : n ? t.colors.inverse : t.colors.neutralHigh;
89
+ return /* @__PURE__ */ s("svg", _objectSpreadProps(_objectSpread({
90
+ width: r,
91
+ height: r,
92
+ viewBox: "0 0 24 24",
93
+ role: "presentation"
94
+ }, i), {
95
+ children: /* @__PURE__ */ s("path", {
96
+ fill: o,
97
+ d: "M16.745 12.314c0-1.277 1.1-2.314 2.459-2.314 1.36 0 2.456 1.037 2.456 2.314 0 1.277-1.1 2.312-2.459 2.312-1.36 0-2.456-1.035-2.456-2.312zm-7.374 0c0-1.277 1.1-2.314 2.459-2.314 1.36 0 2.459 1.035 2.459 2.314 0 1.277-1.1 2.312-2.459 2.312-1.36 0-2.459-1.035-2.459-2.312zM4.456 10C3.1 10 2 11.037 2 12.314c0 1.277 1.097 2.312 2.456 2.312 1.36 0 2.459-1.035 2.459-2.312 0-1.28-1.102-2.314-2.459-2.314z"
98
+ })
99
+ }));
100
+ };
101
+ export { f as default };