@saasquatch/mint-components 1.12.0-9 → 1.12.1-1

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 (187) hide show
  1. package/dist/cjs/{ShadowViewAddon-040cffad.js → ShadowViewAddon-88821c64.js} +3 -6
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +79 -202
  5. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +160 -281
  6. package/dist/cjs/{sqm-invoice-table-view-c58966f8.js → sqm-invoice-table-view-a9133a11.js} +0 -98
  7. package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
  8. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +12 -81
  9. package/dist/cjs/sqm-stencilbook.cjs.entry.js +323 -334
  10. package/dist/collection/collection-manifest.json +1 -6
  11. package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
  12. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
  13. package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
  14. package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
  15. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
  16. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  17. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
  18. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +6 -0
  19. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
  20. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
  21. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -96
  22. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
  23. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
  24. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
  25. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -7
  26. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
  27. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
  28. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -22
  29. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -99
  30. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -8
  31. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
  32. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
  33. package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-65c8679e.js} +3 -6
  34. package/dist/esm/loader.js +1 -1
  35. package/dist/esm/mint-components.js +1 -1
  36. package/dist/esm/sqm-banking-info-form_16.entry.js +79 -202
  37. package/dist/esm/sqm-big-stat_39.entry.js +159 -280
  38. package/dist/esm/{sqm-invoice-table-view-d1cfdaf4.js → sqm-invoice-table-view-71915a5e.js} +0 -98
  39. package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
  40. package/dist/esm/sqm-portal-registration-form.entry.js +18 -87
  41. package/dist/esm/sqm-stencilbook.entry.js +323 -334
  42. package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
  43. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +1 -0
  44. package/dist/esm-es5/loader.js +1 -1
  45. package/dist/esm-es5/mint-components.js +1 -1
  46. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  47. package/dist/esm-es5/sqm-big-stat_39.entry.js +1 -1
  48. package/dist/esm-es5/sqm-invoice-table-view-71915a5e.js +1 -0
  49. package/dist/esm-es5/sqm-portal-registration-form-view-1d3066e1.js +1 -0
  50. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  51. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  52. package/dist/esm-es5/stencil-hooks.module-ac12ca1c.js +1 -1
  53. package/dist/mint-components/mint-components.esm.js +1 -1
  54. package/dist/mint-components/p-1279f7a3.system.entry.js +1 -0
  55. package/dist/mint-components/p-15a64357.entry.js +13 -0
  56. package/dist/mint-components/p-17f56865.entry.js +9 -0
  57. package/dist/mint-components/p-2a414b2e.system.js +2 -2
  58. package/dist/mint-components/p-3cb18382.system.js +1 -0
  59. package/dist/mint-components/p-40b1de58.js +1 -0
  60. package/dist/mint-components/p-4112e198.system.js +1 -0
  61. package/dist/mint-components/p-5cd917db.js +1 -0
  62. package/dist/mint-components/p-6792c8d8.system.entry.js +1 -0
  63. package/dist/mint-components/p-a02afa72.system.js +1 -0
  64. package/dist/mint-components/p-acd77a6e.entry.js +223 -0
  65. package/dist/mint-components/p-b3e97f8a.system.entry.js +1 -0
  66. package/dist/mint-components/{p-9eae245f.js → p-b651706a.js} +3 -6
  67. package/dist/mint-components/p-b8233366.entry.js +174 -0
  68. package/dist/mint-components/p-ca809fdd.system.js +1 -1
  69. package/dist/mint-components/p-cb38b9b0.system.entry.js +1 -0
  70. package/dist/mint-components/p-fd2c5407.js +2 -2
  71. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
  72. package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
  73. package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
  74. package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
  75. package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
  76. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  77. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
  78. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
  79. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
  80. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
  81. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -6
  82. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
  83. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -12
  84. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -19
  85. package/dist/types/components.d.ts +108 -625
  86. package/docs/docs.docx +0 -0
  87. package/docs/raisins.json +1 -1
  88. package/grapesjs/grapesjs.js +1 -1
  89. package/package.json +2 -2
  90. package/dist/cjs/extractProps-fd93ba62.js +0 -21
  91. package/dist/cjs/keys-cff24974.js +0 -11
  92. package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -342
  93. package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
  94. package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
  95. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
  96. package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
  97. package/dist/cjs/usePayoutStatus-b9fb7399.js +0 -70
  98. package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
  99. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
  100. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
  101. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
  102. package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
  103. package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
  104. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
  105. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
  106. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
  107. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -153
  108. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
  109. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
  110. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
  111. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
  112. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
  113. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
  114. package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
  115. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
  116. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -131
  117. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
  118. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
  119. package/dist/esm/extractProps-ae1afbb3.js +0 -19
  120. package/dist/esm/keys-db1897ae.js +0 -6
  121. package/dist/esm/sqm-code-verification.entry.js +0 -338
  122. package/dist/esm/sqm-email-verification.entry.js +0 -279
  123. package/dist/esm/sqm-scroll.entry.js +0 -105
  124. package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
  125. package/dist/esm/sqm-widget-verification.entry.js +0 -206
  126. package/dist/esm/usePayoutStatus-1a635054.js +0 -67
  127. package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
  128. package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
  129. package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
  130. package/dist/esm-es5/keys-db1897ae.js +0 -1
  131. package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
  132. package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
  133. package/dist/esm-es5/sqm-invoice-table-view-d1cfdaf4.js +0 -1
  134. package/dist/esm-es5/sqm-scroll.entry.js +0 -1
  135. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
  136. package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
  137. package/dist/esm-es5/usePayoutStatus-1a635054.js +0 -1
  138. package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
  139. package/dist/mint-components/p-1712a9fd.entry.js +0 -11
  140. package/dist/mint-components/p-1e616d45.system.js +0 -1
  141. package/dist/mint-components/p-24092973.entry.js +0 -9
  142. package/dist/mint-components/p-26468242.js +0 -1
  143. package/dist/mint-components/p-331d060e.entry.js +0 -223
  144. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  145. package/dist/mint-components/p-39840341.js +0 -1
  146. package/dist/mint-components/p-4364001c.entry.js +0 -12
  147. package/dist/mint-components/p-4bd7a472.js +0 -1
  148. package/dist/mint-components/p-517224ef.js +0 -19
  149. package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
  150. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  151. package/dist/mint-components/p-8300d8c8.system.js +0 -1
  152. package/dist/mint-components/p-8bddb468.system.entry.js +0 -1
  153. package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
  154. package/dist/mint-components/p-974070c4.system.entry.js +0 -1
  155. package/dist/mint-components/p-a85f57bb.entry.js +0 -1
  156. package/dist/mint-components/p-a8645c1b.system.js +0 -1
  157. package/dist/mint-components/p-b2a99637.system.js +0 -1
  158. package/dist/mint-components/p-b62faaa5.system.entry.js +0 -1
  159. package/dist/mint-components/p-c05e7b9f.entry.js +0 -195
  160. package/dist/mint-components/p-c510fb88.entry.js +0 -1
  161. package/dist/mint-components/p-c7057066.system.entry.js +0 -1
  162. package/dist/mint-components/p-d7806f31.js +0 -48
  163. package/dist/mint-components/p-e01ac27c.system.js +0 -1
  164. package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
  165. package/dist/mint-components/p-e990dc21.system.js +0 -1
  166. package/dist/mint-components/p-ead27698.system.entry.js +0 -1
  167. package/dist/mint-components/p-f340214f.entry.js +0 -25
  168. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
  169. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
  170. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
  171. package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
  172. package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
  173. package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
  174. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
  175. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
  176. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
  177. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
  178. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
  179. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
  180. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
  181. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
  182. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
  183. package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
  184. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
  185. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
  186. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
  187. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -21
@@ -15,9 +15,8 @@ import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-849e27f7.js';
16
16
  import { i as isEmpty } from './utilities-443732be.js';
17
17
  import { A as AsYouType } from './AsYouType-46f67d0d.js';
18
- import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-69b61037.js';
18
+ import { b as useDemoBigStat, V as useBigStat, B as BigStatView, Q as autoColorScaleCss, K as CardFeedView, j as CheckboxFieldView, M as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, X as demoRewardExchange, k as RewardExchangeView, a as useShareButton, S as ShareButtonView, C as CopyTextView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-65c8679e.js';
19
19
  import './sqm-portal-container-view-6c582684.js';
20
- import { u as usePayoutStatus } from './usePayoutStatus-1a635054.js';
21
20
 
22
21
  const BigStat = class {
23
22
  constructor(hostRef) {
@@ -1600,6 +1599,50 @@ const LinkButton = class {
1600
1599
  }
1601
1600
  };
1602
1601
 
1602
+ const MarketingEmailsCheckbox = class {
1603
+ constructor(hostRef) {
1604
+ registerInstance(this, hostRef);
1605
+ this.ignored = true;
1606
+ /**
1607
+ * This name is used as the key for this form field on submission. The name must be unique within this specific form.
1608
+ * @uiName Checkbox name attribute
1609
+ * @required
1610
+ */
1611
+ this.checkboxName = "marketingEmails";
1612
+ /**
1613
+ * @uiName Checkbox label
1614
+ * @uiWidget textArea
1615
+ */
1616
+ this.checkboxLabel = "I would like to receive marketing and promotional emails for this referral program";
1617
+ /**
1618
+ * @uiName Required
1619
+ */
1620
+ this.checkboxRequired = false;
1621
+ h(this);
1622
+ }
1623
+ disconnectedCallback() { }
1624
+ render() {
1625
+ const content = {
1626
+ ...getProps(this),
1627
+ };
1628
+ const { states, callbacks } = isDemo()
1629
+ ? useCheckboxFieldDemo$1(this)
1630
+ : useCheckboxField(this);
1631
+ return (h$1(CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
1632
+ }
1633
+ };
1634
+ function useCheckboxFieldDemo$1(props) {
1635
+ return cjs({
1636
+ states: {
1637
+ registrationFormState: {},
1638
+ checked: false,
1639
+ },
1640
+ callbacks: {
1641
+ setChecked: () => { },
1642
+ },
1643
+ }, props.demoData || {}, { arrayMerge: (_, a) => a });
1644
+ }
1645
+
1603
1646
  function useNameFields(props) {
1604
1647
  const registrationFormState = d(REGISTRATION_FORM_STATE_CONTEXT);
1605
1648
  return {
@@ -1717,270 +1760,6 @@ function useNavigationMenuDemo(props) {
1717
1760
  }
1718
1761
  NavigationMenu.style = sqmNavigationMenuCss;
1719
1762
 
1720
- const style$2 = {
1721
- Wrapper: {
1722
- maxWidth: "200px",
1723
- },
1724
- PayoutButtonDescription: {
1725
- color: "var(--sl-color-neutral-500)",
1726
- fontSize: "var(--sl-font-size-small)",
1727
- margin: "0",
1728
- },
1729
- };
1730
- const sheet$2 = createStyleSheet(style$2);
1731
- const styleString$2 = sheet$2.toString();
1732
- function PayoutButtonScrollView(props) {
1733
- const { text, states } = props;
1734
- if (!states.payoutSettingsComplete)
1735
- return h$1("div", null);
1736
- return (h$1("div", { part: "sqm-base", class: sheet$2.classes.Wrapper },
1737
- h$1("style", { type: "text/css" }, styleString$2),
1738
- h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.payoutButtonText, "scroll-animation": "smooth" }),
1739
- h$1("p", { class: sheet$2.classes.PayoutButtonDescription }, text.payoutButtonDescription)));
1740
- }
1741
-
1742
- const PayoutButtonScroll = class {
1743
- constructor(hostRef) {
1744
- registerInstance(this, hostRef);
1745
- /**
1746
- * @uiName Payout button text
1747
- */
1748
- this.payoutButtonText = "Payouts & Tax Settings";
1749
- /**
1750
- * Description text under payout button
1751
- * @uiName Payout button description text
1752
- */
1753
- this.payoutButtonDescription = "Check your payout settings to see when you’ll get paid out next";
1754
- this.ignored = true;
1755
- h(this);
1756
- }
1757
- disconnectedCallback() { }
1758
- getTextProps() {
1759
- return getProps(this);
1760
- }
1761
- render() {
1762
- const props = useDemoPayoutButtonScroll(this);
1763
- return h$1(PayoutButtonScrollView, Object.assign({}, props));
1764
- }
1765
- };
1766
- function useDemoPayoutButtonScroll(props) {
1767
- return cjs({
1768
- states: {
1769
- payoutSettingsComplete: false,
1770
- },
1771
- text: props.getTextProps(),
1772
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
1773
- }
1774
-
1775
- const style$3 = {
1776
- SkeletonOne: {
1777
- width: "50%",
1778
- height: "16px",
1779
- },
1780
- AlertDescriptionText: {
1781
- margin: "0",
1782
- marginBottom: "var(--sl-spacing-small)",
1783
- },
1784
- ErrorAlertContainer: {
1785
- "&::part(base)": {
1786
- backgroundColor: "var(--sl-color-red-100)",
1787
- borderTop: "none",
1788
- },
1789
- "& sl-icon::part(base)": {
1790
- color: "var(--sl-color-danger-500)",
1791
- },
1792
- },
1793
- WarningAlertContainer: {
1794
- "&::part(base)": {
1795
- backgroundColor: "var(--sl-color-yellow-100)",
1796
- borderTop: "none",
1797
- },
1798
- "& sl-icon::part(base)": {
1799
- color: "var(--sl-color-danger-500)",
1800
- },
1801
- },
1802
- InfoAlertContainer: {
1803
- "&::part(base)": {
1804
- backgroundColor: "var(--sl-color-sky-100)",
1805
- borderTop: "none",
1806
- },
1807
- "& sl-icon::part(base)": {
1808
- color: "var(--sl-color-blue-500)",
1809
- },
1810
- },
1811
- Dialog: {
1812
- "&::part(panel)": {
1813
- height: "600px",
1814
- },
1815
- "&::part(close-button)": {
1816
- marginBottom: "var(--sl-spacing-xx-large)",
1817
- },
1818
- "&::part(title)": {
1819
- display: "none",
1820
- },
1821
- "&::part(header)": {},
1822
- "&::part(body)": { padding: "0" },
1823
- "&::part(footer)": {},
1824
- },
1825
- };
1826
- const sheet$3 = createStyleSheet(style$3);
1827
- const styleString$3 = sheet$3.toString();
1828
- function PayoutStatusAlertView(props) {
1829
- var _a, _b, _c, _d, _e;
1830
- const { text, states, data, callbacks } = props;
1831
- if (states.loading) {
1832
- return h$1("sl-skeleton", { class: sheet$3.classes.SkeletonOne });
1833
- }
1834
- if (states.status === "DONE") {
1835
- return h$1("div", null);
1836
- }
1837
- function getAlert(status) {
1838
- if (states.error)
1839
- return {
1840
- header: text.errorHeader,
1841
- description: text.errorDescription,
1842
- buttonText: null,
1843
- alertType: "critical",
1844
- icon: "exclamation-triangle",
1845
- class: sheet$3.classes.ErrorAlertContainer,
1846
- };
1847
- switch (status) {
1848
- case "INFORMATION_REQUIRED":
1849
- return {
1850
- header: text.informationRequiredHeader,
1851
- description: text.informationRequiredDescription,
1852
- buttonText: text.informationRequiredButtonText,
1853
- alertType: "info",
1854
- icon: "info-circle",
1855
- class: sheet$3.classes.InfoAlertContainer,
1856
- };
1857
- case "VERIFICATION_NEEDED":
1858
- return {
1859
- header: text.verificationRequiredHeader,
1860
- description: text.verificationRequiredDescription,
1861
- buttonText: text.verificationRequiredButtonText,
1862
- alertType: "warning",
1863
- icon: "exclamation-triangle",
1864
- class: sheet$3.classes.WarningAlertContainer,
1865
- };
1866
- case "HOLD":
1867
- return {
1868
- header: text.holdHeader,
1869
- description: text.holdDescription,
1870
- buttonText: null,
1871
- alertType: "warning",
1872
- icon: "exclamation-triangle",
1873
- class: sheet$3.classes.WarningAlertContainer,
1874
- };
1875
- default:
1876
- return;
1877
- }
1878
- }
1879
- //AL: TODO hookup ID
1880
- function getButton(status) {
1881
- switch (status) {
1882
- case "INFORMATION_REQUIRED":
1883
- return data.type === "SquatchJS2" ? (h$1("sqm-scroll", { "scroll-tag-name": "sqm-tabs", "button-text": text.informationRequiredButtonText, "scroll-animation": "smooth" })) : data.type === "SquatchPortal" ? (h$1("sl-button", { type: "default", onClick: callbacks.onTermsClick }, text.informationRequiredButtonText)) : (h$1("sl-button", { type: "default" }, text.informationRequiredButtonText));
1884
- case "VERIFICATION_NEEDED":
1885
- return (h$1("sl-button", { type: "default", loading: states.loading,
1886
- //AL: TODO callback to open verification form
1887
- onClick: () => callbacks.onClick }, text.verificationRequiredButtonText));
1888
- default:
1889
- return;
1890
- }
1891
- }
1892
- return (h$1("div", { part: "sqm-base" },
1893
- h$1("style", { type: "text/css" }, styleString$3),
1894
- h$1("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: (_a = getAlert(states.status)) === null || _a === void 0 ? void 0 : _a.alertType, class: (_b = getAlert(states.status)) === null || _b === void 0 ? void 0 : _b.class, open: true },
1895
- h$1("sl-icon", { slot: "icon", name: (_c = getAlert(states.status)) === null || _c === void 0 ? void 0 : _c.icon }),
1896
- h$1("strong", null, (_d = getAlert(states.status)) === null || _d === void 0 ? void 0 : _d.header),
1897
- h$1("p", { class: sheet$3.classes.AlertDescriptionText }, (_e = getAlert(states.status)) === null || _e === void 0 ? void 0 : _e.description),
1898
- getButton(states.status)),
1899
- h$1("sl-dialog", { noDismiss: true, class: sheet$3.classes.Dialog, open: states.showVerifyIdentity, "onSl-hide": callbacks.onCancel },
1900
- h$1("iframe", {
1901
- // AL: TODO replace iframe URL with verification url when available
1902
- scrolling: "yes", frameBorder: "0", width: "100%", height: "100%", src: "https://impacttech.complytaxforms.com/ServiceRedirect.aspx?Language=eng&Param1=UxBORV4bOIrqNb4gbpNmtvW3wjdZJyx4gPElIGMJNR8=&UUID=B576EA3E-80FD-4D85-AA59-653D23A7CCE8" }))));
1903
- }
1904
-
1905
- const PayoutStatusAlert = class {
1906
- constructor(hostRef) {
1907
- registerInstance(this, hostRef);
1908
- /**
1909
- * @uiName Info required alert header
1910
- */
1911
- this.informationRequiredHeader = "Payout and tax information required";
1912
- /**
1913
- * @uiName Info required alert description
1914
- */
1915
- this.informationRequiredDescription = "Submit your banking details and tax documents to receive your rewards.";
1916
- /**
1917
- * @uiName Info required alert button text
1918
- */
1919
- this.informationRequiredButtonText = "Payouts & Tax Settings";
1920
- /**
1921
- * @uiName Verification required alert header
1922
- */
1923
- this.verificationRequiredHeader = "Verify your identity";
1924
- /**
1925
- * @uiName Verification required alert description
1926
- */
1927
- this.verificationRequiredDescription = "Complete your verification to start receiving your cash rewards. It should only take a few minutes verify.";
1928
- /**
1929
- * @uiName Verification required alert button text
1930
- */
1931
- this.verificationRequiredButtonText = "Start Verification";
1932
- /**
1933
- * @uiName Payout on hold alert header
1934
- */
1935
- this.holdHeader = "Your payouts and account are on hold";
1936
- /**
1937
- * @uiName Payout on hold alert description
1938
- */
1939
- this.holdDescription = "Please check your inbox for an email from our referral provider, impact.com. It contains details on how to resolve this issue. If you need further assistance, feel free to reach out to {support email}.";
1940
- /**
1941
- * @uiName Cash & Payouts Terms and Conditions url
1942
- */
1943
- this.termsUrl = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
1944
- /**
1945
- * @uiName Error header
1946
- */
1947
- this.errorHeader = "Could not determine payout status.";
1948
- /**
1949
- * @uiName Error description
1950
- */
1951
- this.errorDescription = "There was an error with determining your payout status.";
1952
- h(this);
1953
- }
1954
- disconnectedCallback() { }
1955
- getTextProps() {
1956
- return getProps(this);
1957
- }
1958
- render() {
1959
- const props = isDemo()
1960
- ? useDemoPayoutStatusAlert(this)
1961
- : usePayoutStatus(this);
1962
- console.log({ props });
1963
- return h$1(PayoutStatusAlertView, Object.assign({}, props));
1964
- }
1965
- };
1966
- function useDemoPayoutStatusAlert(props) {
1967
- return cjs({
1968
- states: {
1969
- error: false,
1970
- status: "INFORMATION_REQUIRED",
1971
- loading: false,
1972
- showVerifyIdentity: false,
1973
- },
1974
- data: { type: "SquatchAdmin" },
1975
- text: props.getTextProps(),
1976
- callbacks: {
1977
- onTermsClick: () => { },
1978
- onClick: () => console.log("show"),
1979
- onCancel: () => console.log("hide"),
1980
- },
1981
- }, props.demoData || {}, { arrayMerge: (_, a) => a });
1982
- }
1983
-
1984
1763
  function usePortalChangePassword(props) {
1985
1764
  var _a, _b, _c, _d, _e, _f, _g;
1986
1765
  const [request, { loading, errors, data }] = ze();
@@ -2868,7 +2647,7 @@ const ProgramMenu = class {
2868
2647
  }
2869
2648
  };
2870
2649
 
2871
- const style$4 = {
2650
+ const style$2 = {
2872
2651
  Container: {
2873
2652
  borderRadius: "var(--sl-border-radius-large)",
2874
2653
  color: "var(--sl-color-neutral-900)",
@@ -2896,15 +2675,15 @@ const style$4 = {
2896
2675
  },
2897
2676
  },
2898
2677
  };
2899
- const sheet$4 = createStyleSheet(style$4);
2900
- const styleString$4 = sheet$4.toString();
2678
+ const sheet$2 = createStyleSheet(style$2);
2679
+ const styleString$2 = sheet$2.toString();
2901
2680
  const vanillaStyle$1 = `
2902
2681
  :host{
2903
2682
  display: block;
2904
2683
  }
2905
2684
  `;
2906
2685
  function ReferralCardView(props) {
2907
- return (h$1("div", { part: "sqm-base", class: sheet$4.classes.Container, style: {
2686
+ return (h$1("div", { part: "sqm-base", class: sheet$2.classes.Container, style: {
2908
2687
  border: `${props.hideBorder ? "none" : "1px solid var(--sl-color-neutral-300)"}`,
2909
2688
  "padding-top": `var(--sl-spacing-${props.paddingTop})`,
2910
2689
  "padding-right": `var(--sl-spacing-${props.paddingRight})`,
@@ -2915,15 +2694,15 @@ function ReferralCardView(props) {
2915
2694
  margin: `${props.limitWidth ? "auto" : "none"}`,
2916
2695
  } },
2917
2696
  h$1("style", { type: "text/css" },
2918
- styleString$4,
2697
+ styleString$2,
2919
2698
  vanillaStyle$1),
2920
- props.hasHeader && (h$1("div", { class: sheet$4.classes.EndContainer }, props.slots.header)),
2921
- h$1("div", { part: "sqm-column-container", class: sheet$4.classes.ColumnContainer, style: {
2699
+ props.hasHeader && (h$1("div", { class: sheet$2.classes.EndContainer }, props.slots.header)),
2700
+ h$1("div", { part: "sqm-column-container", class: sheet$2.classes.ColumnContainer, style: {
2922
2701
  alignItems: props.verticalAlignment,
2923
2702
  } },
2924
2703
  props.slots.left,
2925
2704
  props.slots.right),
2926
- props.hasFooter && (h$1("div", { class: sheet$4.classes.EndContainer }, props.slots.footer))));
2705
+ props.hasFooter && (h$1("div", { class: sheet$2.classes.EndContainer }, props.slots.footer))));
2927
2706
  }
2928
2707
 
2929
2708
  const ReferralCard = class {
@@ -4149,6 +3928,106 @@ const SqmRouter = class {
4149
3928
  };
4150
3929
  SqmRouter.style = sqmRouterCss;
4151
3930
 
3931
+ const REVEAL_EVENT = "sq:reveal";
3932
+ function useScroll(props) {
3933
+ const { scrollTagName, scrollId } = props;
3934
+ async function scroll() {
3935
+ const element = document === null || document === void 0 ? void 0 : document.querySelector(scrollTagName || `#${scrollId}`);
3936
+ element.dispatchEvent(new CustomEvent(REVEAL_EVENT, {
3937
+ detail: scrollTagName || `#${scrollId}`,
3938
+ bubbles: true,
3939
+ composed: true,
3940
+ }));
3941
+ await new Promise((resolve) => setTimeout(resolve, 500));
3942
+ element.scrollIntoView({ behavior: props.scrollAnimation });
3943
+ }
3944
+ return {
3945
+ callbacks: { scroll },
3946
+ };
3947
+ }
3948
+
3949
+ const Scroll = class {
3950
+ constructor(hostRef) {
3951
+ registerInstance(this, hostRef);
3952
+ this.ignored = true;
3953
+ /**
3954
+ * @uiName Button type
3955
+ * @uiType string
3956
+ * @uiEnum ["default", "primary", "success", "neutral", "warning", "danger", "text"]
3957
+ * @uiEnumNames ["Default", "Primary", "Success", "Neutral", "Warning", "Danger", "Text"]
3958
+
3959
+ */
3960
+ this.buttonType = "default";
3961
+ /**
3962
+ * @uiName Scroll animation style
3963
+ * @uiType string
3964
+ * @uiEnum ["smooth", "auto"]
3965
+ * @uiEnumNames ["Smooth", "Auto"]
3966
+ */
3967
+ this.scrollAnimation = "smooth";
3968
+ h(this);
3969
+ }
3970
+ disconnectedCallback() { }
3971
+ render() {
3972
+ var _a;
3973
+ const { callbacks } = useScroll(this);
3974
+ const outlineColor = (_a = this.buttonType) !== null && _a !== void 0 ? _a : "primary";
3975
+ const style = {
3976
+ Button: {
3977
+ "& .outline": {
3978
+ "&::part(base)": {
3979
+ color: "var(--sl-color-" + outlineColor + "-500)",
3980
+ borderColor: "var(--sl-color-" + outlineColor + "-500)",
3981
+ backgroundColor: "transparent",
3982
+ "&:hover": {
3983
+ color: "var(--sl-color-primary-text)",
3984
+ backgroundColor: "var(--sl-color-" + outlineColor + "-500)",
3985
+ },
3986
+ },
3987
+ },
3988
+ "& .neutral": {
3989
+ "&::part(base)": {
3990
+ color: "var(--sl-color-primary-text)",
3991
+ background: "var(--sl-color-neutral-500)",
3992
+ "&:hover": {
3993
+ opacity: "0.8",
3994
+ },
3995
+ },
3996
+ },
3997
+ "& .mobile": {
3998
+ "@media (max-width: 499px)": {
3999
+ width: "100%",
4000
+ },
4001
+ },
4002
+ },
4003
+ };
4004
+ const sheet = createStyleSheet(style);
4005
+ const styleString = sheet.toString();
4006
+ const vanillaStyle = `
4007
+ :host{
4008
+ display: contents;
4009
+ }
4010
+ ${this.mobile &&
4011
+ `
4012
+ @media only screen and (max-width: 499px) {
4013
+ :host {
4014
+ display: block;
4015
+ width: 100%;
4016
+ }
4017
+ }
4018
+ `}
4019
+ `;
4020
+ let classStack = "";
4021
+ if (this.outline && this.buttonType != "default")
4022
+ classStack += "outline ";
4023
+ if (this.buttonType === "neutral")
4024
+ classStack += "neutral ";
4025
+ if (this.mobile)
4026
+ classStack += "mobile ";
4027
+ return (h$1("div", { class: sheet.classes.Button }, h$1("style", { type: "text/css" }, vanillaStyle, styleString), h$1("sl-button", { type: this.buttonType, onClick: callbacks.scroll, size: this.size, pill: this.pill, circle: this.circle, class: classStack }, (this.iconSlot || this.iconName) && (h$1("sl-icon", { slot: this.iconSlot || "prefix", name: this.iconName })), this.buttonText, h$1("slot", null))));
4028
+ }
4029
+ };
4030
+
4152
4031
  const sqmShareButtonCss = ":host{display:block}:host([hidden]){display:none}sl-button{display:block}";
4153
4032
 
4154
4033
  const ShareButton = class {
@@ -4646,7 +4525,7 @@ const Gift = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24"
4646
4525
  const Circle = () => (h$1("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4647
4526
  h$1("circle", { cx: "12", cy: "12", r: "9", fill: "currentColor", stroke: "currentColor", "stroke-width": "2" })));
4648
4527
 
4649
- const style$5 = {
4528
+ const style$3 = {
4650
4529
  TimelineReward: {
4651
4530
  color: "var(--sl-color-neutral-900)",
4652
4531
  lineHeight: "var(--sl-line-height-dense)",
@@ -4689,8 +4568,8 @@ const style$5 = {
4689
4568
  },
4690
4569
  },
4691
4570
  };
4692
- const sheet$5 = createStyleSheet(style$5);
4693
- const styleString$5 = sheet$5.toString();
4571
+ const sheet$3 = createStyleSheet(style$3);
4572
+ const styleString$3 = sheet$3.toString();
4694
4573
  const vanillaStyle$2 = `
4695
4574
  :host{
4696
4575
  display: block;
@@ -4703,9 +4582,9 @@ const vanillaStyle$2 = `
4703
4582
  function TimelineEntryView(props) {
4704
4583
  var _a;
4705
4584
  const timeline_icon = (_a = props.icon) !== null && _a !== void 0 ? _a : props.iconState;
4706
- return (h$1("div", { class: sheet$5.classes.TimelineReward, part: "sqm-base" },
4585
+ return (h$1("div", { class: sheet$3.classes.TimelineReward, part: "sqm-base" },
4707
4586
  h$1("style", { type: "text/css" },
4708
- styleString$5,
4587
+ styleString$3,
4709
4588
  vanillaStyle$2),
4710
4589
  h$1("div", { class: "container", part: "sqm-entry-container" },
4711
4590
  h$1("div", { class: "line" }, "/"),
@@ -4796,4 +4675,4 @@ function useUserNameDemo(props) {
4796
4675
  }, props.demoData || {}, { arrayMerge: (_, a) => a });
4797
4676
  }
4798
4677
 
4799
- export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };
4678
+ export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalLogin as sqm_portal_login, PortalRegister as sqm_portal_register, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, Scroll as sqm_scroll, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name };