@saasquatch/mint-components 1.15.0-19 → 1.15.0-20

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 (36) hide show
  1. package/dist/cjs/{ShadowViewAddon-d958d324.js → ShadowViewAddon-f641a7de.js} +109 -109
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +11 -3
  5. package/dist/cjs/sqm-stencilbook.cjs.entry.js +1 -1
  6. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +36 -36
  7. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +36 -2
  8. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +2 -1
  9. package/dist/esm/{ShadowViewAddon-28c8307e.js → ShadowViewAddon-908b4435.js} +109 -109
  10. package/dist/esm/loader.js +1 -1
  11. package/dist/esm/mint-components.js +1 -1
  12. package/dist/esm/sqm-big-stat_41.entry.js +11 -3
  13. package/dist/esm/sqm-stencilbook.entry.js +1 -1
  14. package/dist/esm-es5/ShadowViewAddon-908b4435.js +1 -0
  15. package/dist/esm-es5/loader.js +1 -1
  16. package/dist/esm-es5/mint-components.js +1 -1
  17. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  18. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  19. package/dist/mint-components/mint-components.esm.js +1 -1
  20. package/dist/mint-components/p-2271dff7.system.js +1 -0
  21. package/dist/mint-components/p-5e617dd6.system.js +1 -1
  22. package/dist/mint-components/{p-1a6725c1.system.entry.js → p-87c18a1c.system.entry.js} +1 -1
  23. package/dist/mint-components/{p-fb85fbb0.system.entry.js → p-9980c750.system.entry.js} +1 -1
  24. package/dist/mint-components/{p-a041f0dc.entry.js → p-a558f6db.entry.js} +2 -2
  25. package/dist/mint-components/{p-62a04a06.js → p-d2beb502.js} +24 -24
  26. package/dist/mint-components/{p-be3ffc17.entry.js → p-fbdbcb13.entry.js} +1 -1
  27. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +1 -0
  28. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +6 -0
  29. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  30. package/dist/types/components.d.ts +12 -0
  31. package/docs/docs.docx +0 -0
  32. package/docs/raisins.json +1 -1
  33. package/grapesjs/grapesjs.js +1 -1
  34. package/package.json +1 -1
  35. package/dist/esm-es5/ShadowViewAddon-28c8307e.js +0 -1
  36. package/dist/mint-components/p-437c4eac.system.js +0 -1
@@ -268,51 +268,51 @@ function BigStatView(props) {
268
268
  index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
269
269
  }
270
270
 
271
- const style$1 = {
272
- HostBlock: mixins.HostBlock,
273
- Frame: {
274
- display: "flex",
275
- "flex-direction": "column",
276
- "box-sizing": "border-box",
277
- },
278
- FooterWrapper: {
279
- width: "100%",
280
- "max-width": "100%",
281
- padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
282
- background: "var(--sqm-footer-background)",
283
- display: "flex",
284
- "justify-content": "flex-end",
285
- "align-items": "center",
286
- "box-sizing": "border-box",
287
- "margin-top": "auto",
288
- },
289
- HeaderWrapper: {
290
- width: "100%",
291
- "max-width": "100%",
292
- "box-sizing": "border-box",
293
- display: "flex",
294
- "justify-content": "space-between",
295
- padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
296
- "align-items": "center",
297
- "background-color": "var(--sqm-header-background)",
298
- "@media screen and (max-width: 499px)": {
299
- "flex-direction": "row-reverse",
300
- "justify-content": "flex-end",
301
- padding: "0",
302
- },
303
- },
304
- };
305
- const sheet$1 = JSS.createStyleSheet(style$1);
306
- const styleString$1 = sheet$1.toString();
307
271
  function PortalFrameView(props, children) {
308
272
  const { data, notFullScreen } = props;
309
- return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$1.classes.Frame, part: "sqm-base" },
310
- index.h("style", { type: "text/css" }, styleString$1),
311
- index.h("div", { class: sheet$1.classes.HeaderWrapper, part: "sqm-header" },
273
+ const style = {
274
+ HostBlock: mixins.HostBlock,
275
+ Frame: {
276
+ display: "flex",
277
+ "flex-direction": "column",
278
+ "box-sizing": "border-box",
279
+ },
280
+ FooterWrapper: {
281
+ width: "100%",
282
+ "max-width": "100%",
283
+ padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
284
+ background: props.backgroundColor,
285
+ display: "flex",
286
+ "justify-content": "flex-end",
287
+ "align-items": "center",
288
+ "box-sizing": "border-box",
289
+ "margin-top": "auto",
290
+ },
291
+ HeaderWrapper: {
292
+ width: "100%",
293
+ "max-width": "100%",
294
+ "box-sizing": "border-box",
295
+ display: "flex",
296
+ "justify-content": "space-between",
297
+ padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
298
+ "align-items": "center",
299
+ background: props.backgroundColor,
300
+ "@media screen and (max-width: 499px)": {
301
+ "flex-direction": "row-reverse",
302
+ "justify-content": "flex-end",
303
+ padding: "0",
304
+ },
305
+ },
306
+ };
307
+ const sheet = JSS.createStyleSheet(style);
308
+ const styleString = sheet.toString();
309
+ return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-base" },
310
+ index.h("style", { type: "text/css" }, styleString),
311
+ index.h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-header" },
312
312
  data.header,
313
313
  index.h("slot", { name: "sqm-navigation-menu" })),
314
314
  children,
315
- index.h("div", { class: sheet$1.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
315
+ index.h("div", { class: sheet.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
316
316
  }
317
317
 
318
318
  const EditProfileView = (props) => {
@@ -1633,7 +1633,7 @@ function PortalChangePasswordView(props) {
1633
1633
  index.h("style", { type: "text/css" }, styleString))));
1634
1634
  }
1635
1635
 
1636
- const style$2 = {
1636
+ const style$1 = {
1637
1637
  Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
1638
1638
  Column: mixins.AuthColumn,
1639
1639
  HostBlock: mixins.HostBlock,
@@ -1659,20 +1659,20 @@ sqm-portal-register {
1659
1659
  display: none;
1660
1660
  }
1661
1661
  `;
1662
- const sheet$2 = JSS.createStyleSheet(style$2);
1663
- const styleString$2 = sheet$2.toString();
1662
+ const sheet$1 = JSS.createStyleSheet(style$1);
1663
+ const styleString$1 = sheet$1.toString();
1664
1664
  function PortalRegisterView(props) {
1665
1665
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
1666
1666
  const { states, refs, callbacks, content } = props;
1667
1667
  if (states.error) {
1668
1668
  window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
1669
1669
  }
1670
- return (index.h("div", { class: sheet$2.classes.Wrapper, part: "sqm-base" },
1670
+ return (index.h("div", { class: sheet$1.classes.Wrapper, part: "sqm-base" },
1671
1671
  index.h("style", { type: "text/css" },
1672
1672
  vanillaStyle,
1673
- styleString$2),
1673
+ styleString$1),
1674
1674
  index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
1675
- index.h("sl-form", { class: sheet$2.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1675
+ index.h("sl-form", { class: sheet$1.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1676
1676
  states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
1677
1677
  index.h("div", { part: "erroralert-text" }, props.states.error))),
1678
1678
  content.formData,
@@ -1685,7 +1685,7 @@ function PortalRegisterView(props) {
1685
1685
  return content.invalidEmailErrorMessage;
1686
1686
  }
1687
1687
  } }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
1688
- class: sheet$2.classes.ErrorStyle,
1688
+ class: sheet$1.classes.ErrorStyle,
1689
1689
  helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
1690
1690
  content.requiredFieldErrorMessage,
1691
1691
  }
@@ -1696,17 +1696,17 @@ function PortalRegisterView(props) {
1696
1696
  value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
1697
1697
  }
1698
1698
  : {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
1699
- class: sheet$2.classes.ErrorStyle,
1699
+ class: sheet$1.classes.ErrorStyle,
1700
1700
  helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
1701
1701
  }
1702
1702
  : [])))),
1703
1703
  content.terms,
1704
- index.h("div", { class: sheet$2.classes.ButtonsContainer },
1704
+ index.h("div", { class: sheet$1.classes.ButtonsContainer },
1705
1705
  index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
1706
1706
  content.secondaryButton))));
1707
1707
  }
1708
1708
 
1709
- const style$3 = {
1709
+ const style$2 = {
1710
1710
  ErrorStyle: {
1711
1711
  "&::part(control)": {
1712
1712
  background: "var(--sl-color-danger-10)",
@@ -1745,15 +1745,15 @@ sl-checkbox::part(base){
1745
1745
  }
1746
1746
  `;
1747
1747
  JSS.jss.setup(JSS.create());
1748
- const sheet$3 = JSS.jss.createStyleSheet(style$3);
1749
- const styleString$3 = sheet$3.toString();
1748
+ const sheet$2 = JSS.jss.createStyleSheet(style$2);
1749
+ const styleString$2 = sheet$2.toString();
1750
1750
  function CheckboxFieldView(props) {
1751
1751
  var _b, _c;
1752
1752
  const { states, content, callbacks } = props;
1753
- return (index.h("div", { class: sheet$3.classes.FieldContainer, part: "sqm-base" },
1753
+ return (index.h("div", { class: sheet$2.classes.FieldContainer, part: "sqm-base" },
1754
1754
  index.h("style", { type: "text/css" },
1755
1755
  vanillaStyle$1,
1756
- styleString$3),
1756
+ styleString$2),
1757
1757
  index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
1758
1758
  e.target.value = e.target.checked;
1759
1759
  callbacks.setChecked(e.target.value);
@@ -1809,7 +1809,7 @@ function ChangeMarktingView(props) {
1809
1809
  index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
1810
1810
  }
1811
1811
 
1812
- const style$4 = {
1812
+ const style$3 = {
1813
1813
  Description: {
1814
1814
  "& input[type=checkbox]": {
1815
1815
  display: "none",
@@ -1848,13 +1848,13 @@ const style$4 = {
1848
1848
  },
1849
1849
  },
1850
1850
  };
1851
- const sheet$4 = JSS.createStyleSheet(style$4);
1852
- const styleString$4 = sheet$4.toString();
1851
+ const sheet$3 = JSS.createStyleSheet(style$3);
1852
+ const styleString$3 = sheet$3.toString();
1853
1853
  function Details(props) {
1854
1854
  const rid = Math.random().toString(36).slice(2);
1855
1855
  return (index.h("div", { style: { opacity: props.opacity } },
1856
- index.h("style", { type: "text/css" }, styleString$4),
1857
- index.h("span", { class: sheet$4.classes.Description },
1856
+ index.h("style", { type: "text/css" }, styleString$3),
1857
+ index.h("span", { class: sheet$3.classes.Description },
1858
1858
  index.h("input", { type: "checkbox", id: "details-" + rid }),
1859
1859
  index.h("label", { class: "details", htmlFor: "details-" + rid },
1860
1860
  index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
@@ -1876,7 +1876,7 @@ const GreyGift = () => {
1876
1876
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
1877
1877
  };
1878
1878
 
1879
- const style$5 = {
1879
+ const style$4 = {
1880
1880
  ProgressBar: {
1881
1881
  "& .progress-bar": {
1882
1882
  height: "0",
@@ -1988,14 +1988,14 @@ const style$5 = {
1988
1988
  },
1989
1989
  },
1990
1990
  };
1991
- const sheet$5 = JSS.createStyleSheet(style$5, { classNamePrefix: "sqm-prog-bar" });
1992
- const styleString$5 = sheet$5.toString();
1991
+ const sheet$4 = JSS.createStyleSheet(style$4, { classNamePrefix: "sqm-prog-bar" });
1992
+ const styleString$4 = sheet$4.toString();
1993
1993
  function ProgressBarView(props) {
1994
1994
  const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
1995
1995
  let aggregate = buildProgressBar(repeatable, steps, props);
1996
1996
  const { columns, items } = aggregate;
1997
- return (index.h("div", { class: sheet$5.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1998
- index.h("style", { type: "text/css" }, styleString$5),
1997
+ return (index.h("div", { class: sheet$4.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1998
+ index.h("style", { type: "text/css" }, styleString$4),
1999
1999
  index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
2000
2000
  (Boolean(finite) && progress > 2 * goal)
2001
2001
  ? "progress-bar repeatable-steps"
@@ -2811,7 +2811,7 @@ function ReferralIframeView(props) {
2811
2811
  index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
2812
2812
  }
2813
2813
 
2814
- const style$6 = {
2814
+ const style$5 = {
2815
2815
  ErrorStyle: mixins.ErrorStyles,
2816
2816
  FieldsContainer: {
2817
2817
  "& sl-input": {
@@ -2831,21 +2831,21 @@ sl-input::part(label){
2831
2831
  font-weight: var(--sl-font-weight-semibold);
2832
2832
  }
2833
2833
  `;
2834
- const sheet$6 = JSS.createStyleSheet(style$6);
2835
- const styleString$6 = sheet$6.toString();
2834
+ const sheet$5 = JSS.createStyleSheet(style$5);
2835
+ const styleString$5 = sheet$5.toString();
2836
2836
  function NameFieldsView(props) {
2837
2837
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2838
2838
  const { states } = props;
2839
2839
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2840
- return (index.h("div", { class: sheet$6.classes.FieldsContainer },
2840
+ return (index.h("div", { class: sheet$5.classes.FieldsContainer },
2841
2841
  index.h("style", { type: "text/css" },
2842
2842
  vanillaStyle$3,
2843
- styleString$6),
2843
+ styleString$5),
2844
2844
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
2845
2845
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2846
2846
  }
2847
2847
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2848
- class: sheet$6.classes.ErrorStyle,
2848
+ class: sheet$5.classes.ErrorStyle,
2849
2849
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2850
2850
  }
2851
2851
  : []))),
@@ -2853,13 +2853,13 @@ function NameFieldsView(props) {
2853
2853
  value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2854
2854
  }
2855
2855
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2856
- class: sheet$6.classes.ErrorStyle,
2856
+ class: sheet$5.classes.ErrorStyle,
2857
2857
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
2858
2858
  }
2859
2859
  : [])))));
2860
2860
  }
2861
2861
 
2862
- const style$7 = {
2862
+ const style$6 = {
2863
2863
  ErrorStyle: {
2864
2864
  "--sl-input-border-color": "var(--sl-color-danger-500)",
2865
2865
  "--sl-input-background-color": "var(--sl-color-danger-10)",
@@ -2887,30 +2887,30 @@ sl-select::part(label){
2887
2887
  }
2888
2888
  `;
2889
2889
  JSS.jss.setup(JSS.create());
2890
- const sheet$7 = JSS.jss.createStyleSheet(style$7);
2891
- const styleString$7 = sheet$7.toString();
2890
+ const sheet$6 = JSS.jss.createStyleSheet(style$6);
2891
+ const styleString$6 = sheet$6.toString();
2892
2892
  function DropdownFieldView(props) {
2893
2893
  var _a, _b, _c, _d, _e, _f, _g;
2894
2894
  const { states, content } = props;
2895
2895
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2896
- return (index.h("div", { class: sheet$7.classes.FieldContainer, part: "sqm-base" },
2896
+ return (index.h("div", { class: sheet$6.classes.FieldContainer, part: "sqm-base" },
2897
2897
  index.h("style", { type: "text/css" },
2898
2898
  vanillaStyle$4,
2899
- styleString$7),
2899
+ styleString$6),
2900
2900
  index.h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
2901
2901
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2902
2902
  }
2903
2903
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2904
- class: sheet$7.classes.ErrorStyle,
2904
+ class: sheet$6.classes.ErrorStyle,
2905
2905
  }
2906
2906
  : [])), content.selectOptions),
2907
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$7.classes.ErrorMessageStyle }, global.intl.formatMessage({
2907
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$6.classes.ErrorMessageStyle }, global.intl.formatMessage({
2908
2908
  id: `errorMessage-${content.dropdownName}`,
2909
2909
  defaultMessage: content.errorMessage,
2910
2910
  })))));
2911
2911
  }
2912
2912
 
2913
- const style$8 = {
2913
+ const style$7 = {
2914
2914
  ErrorStyle: mixins.ErrorStyles,
2915
2915
  FieldContainer: {
2916
2916
  "margin-bottom": "var(--sl-spacing-large)",
@@ -2924,21 +2924,21 @@ const vanillaStyle$5 = `
2924
2924
  }
2925
2925
  `;
2926
2926
  JSS.jss.setup(JSS.create());
2927
- const sheet$8 = JSS.jss.createStyleSheet(style$8);
2928
- const styleString$8 = sheet$8.toString();
2927
+ const sheet$7 = JSS.jss.createStyleSheet(style$7);
2928
+ const styleString$7 = sheet$7.toString();
2929
2929
  function InputFieldView(props) {
2930
2930
  var _a, _b, _c, _d, _e, _f, _g;
2931
2931
  const { states, content } = props;
2932
2932
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2933
- return (index.h("div", { class: sheet$8.classes.FieldContainer, part: "sqm-base" },
2933
+ return (index.h("div", { class: sheet$7.classes.FieldContainer, part: "sqm-base" },
2934
2934
  index.h("style", { type: "text/css" },
2935
2935
  vanillaStyle$5,
2936
- styleString$8),
2936
+ styleString$7),
2937
2937
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
2938
2938
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2939
2939
  }
2940
2940
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2941
- class: sheet$8.classes.ErrorStyle,
2941
+ class: sheet$7.classes.ErrorStyle,
2942
2942
  helpText: global.intl.formatMessage({
2943
2943
  id: `errorMessage-${content.fieldName}`,
2944
2944
  defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
@@ -3033,7 +3033,7 @@ function ProgressBar({ stageCount, currentStage, }) {
3033
3033
  return (index.h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (index.h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
3034
3034
  }
3035
3035
 
3036
- const style$9 = {
3036
+ const style$8 = {
3037
3037
  HostBlock: mixins.HostBlock,
3038
3038
  Container: {
3039
3039
  minWidth: "300px",
@@ -3384,8 +3384,8 @@ const style$9 = {
3384
3384
  },
3385
3385
  };
3386
3386
  // JSS config
3387
- const sheet$9 = JSS.createStyleSheet(style$9);
3388
- const styleString$9 = sheet$9.toString();
3387
+ const sheet$8 = JSS.createStyleSheet(style$8);
3388
+ const styleString$8 = sheet$8.toString();
3389
3389
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
3390
3390
  function RewardExchangeView(props) {
3391
3391
  const { states, data, callbacks, refs } = props;
@@ -3408,7 +3408,7 @@ function RewardExchangeView(props) {
3408
3408
  sourceUnit: item.sourceUnit,
3409
3409
  })));
3410
3410
  }
3411
- return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$9.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
3411
+ return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$8.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
3412
3412
  var _a, _b, _c, _d, _e;
3413
3413
  return callbacks.setExchangeState({
3414
3414
  amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
@@ -3416,7 +3416,7 @@ function RewardExchangeView(props) {
3416
3416
  });
3417
3417
  } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
3418
3418
  var _a, _b;
3419
- return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$9.classes.SelectItem },
3419
+ return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$8.classes.SelectItem },
3420
3420
  step.prettyDestinationValue,
3421
3421
  index.h("br", null),
3422
3422
  index.h("div", { class: "step-cost", slot: "suffix" },
@@ -3435,8 +3435,8 @@ function RewardExchangeView(props) {
3435
3435
  var _a;
3436
3436
  return [
3437
3437
  index.h("div", { part: "choose-reward-container" },
3438
- index.h("div", { class: sheet$9.classes.Title }, states.content.text.rewardTitle),
3439
- states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$9.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3438
+ index.h("div", { class: sheet$8.classes.Title }, states.content.text.rewardTitle),
3439
+ states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$8.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3440
3440
  var _a, _b, _c, _d, _e;
3441
3441
  const style = {
3442
3442
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
@@ -3445,7 +3445,7 @@ function RewardExchangeView(props) {
3445
3445
  borderRadius: "4px",
3446
3446
  };
3447
3447
  return (index.h("div", { key: item.key, style: style },
3448
- index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$9.classes.Card, style: {
3448
+ index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$8.classes.Card, style: {
3449
3449
  cursor: item.unavailableReasonCode
3450
3450
  ? "not-allowed"
3451
3451
  : "pointer",
@@ -3462,14 +3462,14 @@ function RewardExchangeView(props) {
3462
3462
  ? "rgba(0, 0, 0, 0.05)"
3463
3463
  : "rgba(0, 0, 0, 0)",
3464
3464
  } },
3465
- index.h("div", { class: sheet$9.classes.Image, style: {
3465
+ index.h("div", { class: sheet$8.classes.Image, style: {
3466
3466
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3467
3467
  } },
3468
3468
  index.h("img", { class: item.unavailableReasonCode
3469
3469
  ? "image subdued"
3470
3470
  : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
3471
3471
  index.getAssetPath("./assets/Reward-image.png") })),
3472
- index.h("div", { class: sheet$9.classes.TextArea, style: {
3472
+ index.h("div", { class: sheet$8.classes.TextArea, style: {
3473
3473
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3474
3474
  } },
3475
3475
  index.h("div", { class: "title", style: {
@@ -3502,7 +3502,7 @@ function RewardExchangeView(props) {
3502
3502
  item.prettySourceMinValue,
3503
3503
  }))))))));
3504
3504
  }))),
3505
- index.h("div", { class: sheet$9.classes.Button },
3505
+ index.h("div", { class: sheet$8.classes.Button },
3506
3506
  index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
3507
3507
  ];
3508
3508
  }
@@ -3513,7 +3513,7 @@ function RewardExchangeView(props) {
3513
3513
  ? false
3514
3514
  : input && !states.amount;
3515
3515
  return (index.h("div", null,
3516
- index.h("div", { class: sheet$9.classes.ChooseAmount, part: "choose-amount-container" },
3516
+ index.h("div", { class: sheet$8.classes.ChooseAmount, part: "choose-amount-container" },
3517
3517
  index.h("div", { class: "wrapper" },
3518
3518
  index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
3519
3519
  index.getAssetPath("./assets/Reward-image.png") }),
@@ -3522,7 +3522,7 @@ function RewardExchangeView(props) {
3522
3522
  ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
3523
3523
  ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", null, input)),
3524
3524
  index.h("div", { class: "space" }))),
3525
- index.h("div", { class: sheet$9.classes.Button },
3525
+ index.h("div", { class: sheet$8.classes.Button },
3526
3526
  index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3527
3527
  index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3528
3528
  }
@@ -3530,8 +3530,8 @@ function RewardExchangeView(props) {
3530
3530
  const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
3531
3531
  const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
3532
3532
  return (index.h("div", null,
3533
- index.h("div", { class: sheet$9.classes.Confirmation, part: "confirmation-container" },
3534
- index.h("div", { class: sheet$9.classes.Title }, states.content.text.redeemTitle),
3533
+ index.h("div", { class: sheet$8.classes.Confirmation, part: "confirmation-container" },
3534
+ index.h("div", { class: sheet$8.classes.Title }, states.content.text.redeemTitle),
3535
3535
  index.h("div", { class: "wrapper" },
3536
3536
  index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
3537
3537
  index.h("div", { class: "reward-item-container" },
@@ -3546,13 +3546,13 @@ function RewardExchangeView(props) {
3546
3546
  index.h("div", { class: "wrapper top-border padding" },
3547
3547
  index.h("div", { class: "field" }, states.content.text.costTitle),
3548
3548
  index.h("div", { class: "value" }, cost)),
3549
- index.h("div", { class: sheet$9.classes.Button },
3549
+ index.h("div", { class: sheet$8.classes.Button },
3550
3550
  index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3551
3551
  index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3552
3552
  }
3553
3553
  function success() {
3554
3554
  var _a, _b, _c, _d, _e, _f;
3555
- return (index.h("div", { class: sheet$9.classes.Success, part: "success-container" },
3555
+ return (index.h("div", { class: sheet$8.classes.Success, part: "success-container" },
3556
3556
  index.h(Gift$1, null),
3557
3557
  index.h(Confetti, null),
3558
3558
  index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
@@ -3567,7 +3567,7 @@ function RewardExchangeView(props) {
3567
3567
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
3568
3568
  states.content.text.promoCode,
3569
3569
  index.h(copyTextView.CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
3570
- index.h("div", { class: sheet$9.classes.Button },
3570
+ index.h("div", { class: sheet$8.classes.Button },
3571
3571
  index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
3572
3572
  }
3573
3573
  const stages = {
@@ -3579,7 +3579,7 @@ function RewardExchangeView(props) {
3579
3579
  const currentStage = stages[states.redeemStage];
3580
3580
  function stageMap() {
3581
3581
  const stageNumber = stageList.indexOf(states.redeemStage);
3582
- return (index.h("div", { class: sheet$9.classes.ProgressBar },
3582
+ return (index.h("div", { class: sheet$8.classes.ProgressBar },
3583
3583
  index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
3584
3584
  if (stageList.indexOf(stage) <= stageNumber) {
3585
3585
  return index.h("span", { class: "text" }, stageProgressList[stage]);
@@ -3591,10 +3591,10 @@ function RewardExchangeView(props) {
3591
3591
  index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
3592
3592
  }
3593
3593
  function loading() {
3594
- return (index.h("div", { class: sheet$9.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3594
+ return (index.h("div", { class: sheet$8.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3595
3595
  return (index.h("div", null,
3596
- index.h("sl-card", { class: sheet$9.classes.Card },
3597
- index.h("div", { class: sheet$9.classes.CardLayout },
3596
+ index.h("sl-card", { class: sheet$8.classes.Card },
3597
+ index.h("div", { class: sheet$8.classes.CardLayout },
3598
3598
  index.h("div", null,
3599
3599
  index.h("sl-skeleton", { style: {
3600
3600
  width: "100px",
@@ -3626,12 +3626,12 @@ function RewardExchangeView(props) {
3626
3626
  if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
3627
3627
  return;
3628
3628
  refs.canvasRef.current = canvas;
3629
- }, id: "my-canvas", class: sheet$9.classes.Confetti }));
3629
+ }, id: "my-canvas", class: sheet$8.classes.Confetti }));
3630
3630
  }
3631
3631
  if (states.noExchangeOptions)
3632
3632
  return states.content.text.empty;
3633
- return (index.h("div", { class: sheet$9.classes.Container, part: "sqm-base" },
3634
- index.h("style", { type: "text/css" }, styleString$9),
3633
+ return (index.h("div", { class: sheet$8.classes.Container, part: "sqm-base" },
3634
+ index.h("style", { type: "text/css" }, styleString$8),
3635
3635
  index.h("div", null,
3636
3636
  stageMap(),
3637
3637
  states.exchangeError && errorMessage(),