@saasquatch/mint-components 1.15.0-15 → 1.15.0-151

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 (898) hide show
  1. package/dist/cjs/{GenericTableView-f0e9c531.js → GenericTableView-a9845e80.js} +6 -6
  2. package/dist/cjs/IndirectTaxDetailsView-6888f0e0.js +646 -0
  3. package/dist/cjs/{ShadowViewAddon-d2ed86e8.js → ShadowViewAddon-135ad23d.js} +1606 -1408
  4. package/dist/cjs/{copy-text-view-b2f47da0.js → copy-text-view-51c8ee5d.js} +23 -12
  5. package/dist/cjs/data-d4339c2e.js +137 -0
  6. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  7. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  8. package/dist/cjs/{global-19fe8600.js → global-c2a8cb88.js} +11849 -11610
  9. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  10. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  11. package/dist/cjs/loader.cjs.js +5 -5
  12. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  13. package/dist/cjs/mint-components.cjs.js +5 -5
  14. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  15. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
  16. package/dist/cjs/parseStates-d1effc19.js +16 -0
  17. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  18. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  19. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +914 -2412
  20. package/dist/cjs/{sqm-base-registration-form-view-1b2440c3.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  21. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +1193 -245
  22. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  23. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  24. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  25. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  26. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  27. package/dist/cjs/sqm-empty_4.cjs.entry.js +9 -15
  28. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  29. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  30. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  33. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  34. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  35. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +6 -6
  36. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  37. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  38. package/dist/cjs/sqm-navigation-sidebar-item-view-4e88f774.js +56 -0
  39. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  40. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  41. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  42. package/dist/cjs/sqm-pagination_3.cjs.entry.js +28 -18
  43. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  44. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  45. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  46. package/dist/cjs/{sqm-portal-email-verification-view-9f7b86a9.js → sqm-portal-email-verification-view-15b88171.js} +4 -4
  47. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  48. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  49. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  50. package/dist/cjs/{sqm-portal-login-view-84e99287.js → sqm-portal-login-view-bb50304c.js} +4 -4
  51. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  52. package/dist/cjs/{sqm-portal-profile-view-e77710f0.js → sqm-portal-profile-view-02d8bdf5.js} +4 -4
  53. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  54. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  55. package/dist/cjs/{sqm-portal-registration-form-view-4377d849.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  56. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  57. package/dist/cjs/{sqm-portal-reset-password-view-52fc50fe.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  58. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  59. package/dist/cjs/{sqm-portal-verify-email-view-4f837226.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  60. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  61. package/dist/cjs/{sqm-qr-code-view-3da9ed28.js → sqm-qr-code-view-0c3b2f48.js} +9 -4
  62. package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
  63. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -44
  64. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  65. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  66. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +82 -35
  67. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  68. package/dist/cjs/sqm-scroll.cjs.entry.js +21 -67
  69. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13719 -12490
  70. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  71. package/dist/cjs/sqm-tabs.cjs.entry.js +27 -13
  72. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1254 -0
  73. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  74. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  75. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  76. package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
  77. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  78. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  79. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
  80. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
  81. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  82. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  83. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  84. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  85. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  86. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  87. package/dist/cjs/utils-7baae348.js +105 -0
  88. package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
  89. package/dist/collection/collection-manifest.json +1 -1
  90. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  91. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -7
  92. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
  93. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  94. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  95. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  96. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  97. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  98. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  99. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +2 -2
  100. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  101. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  102. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +61 -4
  103. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  104. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  105. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  106. package/dist/collection/components/sqm-form-message/sqm-form-message.js +5 -5
  107. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  108. package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
  109. package/dist/collection/components/sqm-hero/sqm-hero.js +39 -5
  110. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +5 -2
  111. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +2 -2
  112. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +3 -3
  113. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  114. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  115. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  116. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  117. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  118. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  119. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +3 -2
  120. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +5 -5
  121. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  122. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  123. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  124. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  125. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  126. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  127. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  128. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  129. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  130. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  131. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  132. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  133. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  134. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  135. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  136. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  137. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  138. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  139. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -1
  140. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
  141. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  142. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  143. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  144. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  145. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  146. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  147. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  148. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
  149. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  150. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  151. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  152. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -1
  153. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +5 -3
  154. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +5 -5
  155. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +1 -1
  156. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
  157. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +6 -4
  158. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +7 -13
  159. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +4 -4
  160. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  161. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -18
  162. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  163. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  164. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  165. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  166. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  167. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  168. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  169. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +3 -2
  170. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -10
  171. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  172. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +32 -6
  173. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  174. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +45 -49
  175. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +81 -35
  176. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
  177. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +4 -3
  178. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  179. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
  180. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  181. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  182. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  183. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
  184. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  185. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  186. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +3 -2
  187. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  188. package/dist/collection/components/sqm-scroll/sqm-scroll.js +22 -101
  189. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  190. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +12 -24
  191. package/dist/collection/components/sqm-share-button/sqm-share-button.js +56 -10
  192. package/dist/collection/components/sqm-share-code/sqm-share-code.js +5 -5
  193. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -0
  194. package/dist/collection/components/sqm-share-link/sqm-share-link.js +6 -4
  195. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  196. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  197. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  198. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  199. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +80 -100
  200. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  201. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  202. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +16 -2
  203. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  204. package/dist/collection/components/sqm-task-card/DetailsView.js +7 -1
  205. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  206. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +23 -26
  207. package/dist/collection/components/sqm-task-card/sqm-task-card.js +4 -8
  208. package/dist/collection/components/sqm-task-card/useTaskCard.js +1 -1
  209. package/dist/collection/components/sqm-text/sqm-text.js +1 -1
  210. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  211. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  212. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +2 -2
  213. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -2
  214. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  215. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  216. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  217. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
  218. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
  219. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  220. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
  221. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  222. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +58 -62
  223. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +108 -5
  224. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  225. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
  226. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +59 -61
  227. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
  228. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
  229. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +60 -63
  230. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  231. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  232. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  233. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  234. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  235. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
  236. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
  237. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  238. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  239. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +284 -30
  240. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  241. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +135 -93
  242. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +50 -5
  243. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  244. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  245. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +3 -3
  246. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +166 -54
  247. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  248. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  249. package/dist/collection/components/views/copy-text-view.js +21 -10
  250. package/dist/collection/components/views/email-registration-view.js +3 -1
  251. package/dist/collection/global/global.js +27 -12
  252. package/dist/collection/global/mixins.js +6 -6
  253. package/dist/collection/global/styles.js +328 -136
  254. package/dist/collection/global/styles.ts +428 -136
  255. package/dist/collection/insertfont.js +18 -0
  256. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  257. package/dist/collection/tables/GenericTableView.js +4 -4
  258. package/dist/collection/utils/parseStates.js +12 -0
  259. package/dist/collection/utils/utils.js +4 -0
  260. package/dist/esm/{GenericTableView-e7addb2b.js → GenericTableView-e43d310f.js} +6 -6
  261. package/dist/esm/IndirectTaxDetailsView-631017e0.js +639 -0
  262. package/dist/esm/{ShadowViewAddon-3651cb42.js → ShadowViewAddon-3aace77f.js} +1603 -1405
  263. package/dist/esm/{copy-text-view-0ac6e1d1.js → copy-text-view-83b09456.js} +23 -12
  264. package/dist/esm/data-dea73d4d.js +121 -0
  265. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  266. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  267. package/dist/esm/{global-9d6f3bbe.js → global-ed7927c1.js} +11873 -11635
  268. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  269. package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
  270. package/dist/esm/loader.js +5 -5
  271. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  272. package/dist/esm/mint-components.js +5 -5
  273. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  274. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
  275. package/dist/esm/parseStates-ed75e224.js +14 -0
  276. package/dist/esm/raisins-plop-target.entry.js +1 -1
  277. package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
  278. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +762 -2253
  279. package/dist/esm/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  280. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_44.entry.js} +1104 -159
  281. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  282. package/dist/esm/sqm-close-button.entry.js +5 -5
  283. package/dist/esm/sqm-code-verification.entry.js +348 -0
  284. package/dist/esm/sqm-context-router.entry.js +4 -4
  285. package/dist/esm/sqm-email-verification.entry.js +145 -21
  286. package/dist/esm/sqm-empty_4.entry.js +6 -12
  287. package/dist/esm/sqm-form-message.entry.js +7 -7
  288. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  289. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  290. package/dist/esm/sqm-header-logo.entry.js +2 -2
  291. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  292. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  293. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  294. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  295. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  296. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  297. package/dist/esm/sqm-navigation-sidebar-item-view-5a452423.js +54 -0
  298. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  299. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  300. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  301. package/dist/esm/sqm-pagination_3.entry.js +22 -12
  302. package/dist/esm/sqm-password-field.entry.js +6 -6
  303. package/dist/esm/sqm-popup-container.entry.js +4 -4
  304. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  305. package/dist/esm/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-b17a5a59.js} +4 -4
  306. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  307. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  308. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  309. package/dist/esm/{sqm-portal-login-view-37c85d04.js → sqm-portal-login-view-7670cd86.js} +4 -4
  310. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  311. package/dist/esm/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-d33da4af.js} +4 -4
  312. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  313. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  314. package/dist/esm/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  315. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  316. package/dist/esm/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  317. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  318. package/dist/esm/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  319. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  320. package/dist/esm/{sqm-qr-code-view-10b8b4cb.js → sqm-qr-code-view-97124a66.js} +8 -3
  321. package/dist/esm/sqm-qr-code.entry.js +6 -7
  322. package/dist/esm/sqm-referral-table_11.entry.js +122 -33
  323. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  324. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  325. package/dist/esm/sqm-rewards-table_9.entry.js +70 -23
  326. package/dist/esm/sqm-route.entry.js +1 -1
  327. package/dist/esm/sqm-scroll.entry.js +20 -66
  328. package/dist/esm/sqm-stencilbook.entry.js +10918 -9689
  329. package/dist/esm/sqm-tab.entry.js +4 -4
  330. package/dist/esm/sqm-tabs.entry.js +24 -10
  331. package/dist/esm/sqm-tax-and-cash.entry.js +1250 -0
  332. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  333. package/dist/esm/sqm-text-span.entry.js +6 -6
  334. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  335. package/dist/esm/sqm-widget-verification.entry.js +22 -10
  336. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
  337. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
  338. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +10 -7
  339. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-e95df3c3.js} +3 -3
  340. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
  341. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
  342. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
  343. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
  344. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
  345. package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
  346. package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
  347. package/dist/esm/utils-8690dd2e.js +97 -0
  348. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  349. package/dist/esm-es5/IndirectTaxDetailsView-631017e0.js +1 -0
  350. package/dist/esm-es5/ShadowViewAddon-3aace77f.js +1 -0
  351. package/dist/esm-es5/copy-text-view-83b09456.js +1 -0
  352. package/dist/esm-es5/data-dea73d4d.js +1 -0
  353. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  354. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  355. package/dist/esm-es5/{global-9d6f3bbe.js → global-ed7927c1.js} +5 -5
  356. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  357. package/dist/esm-es5/index.module-c9811a48.js +1 -0
  358. package/dist/esm-es5/loader.js +1 -1
  359. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  360. package/dist/esm-es5/mint-components.js +1 -1
  361. package/dist/esm-es5/mixins-f750863a.js +1 -0
  362. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
  363. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  364. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  365. package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
  366. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  367. package/dist/esm-es5/{sqm-base-registration-form-view-31f1cb87.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  368. package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
  369. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  370. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  371. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  372. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  373. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  374. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  375. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  376. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  377. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  378. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  379. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  380. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  381. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  382. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  383. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  384. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  385. package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a452423.js +1 -0
  386. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  387. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  388. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  389. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  390. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  391. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  392. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  393. package/dist/esm-es5/{sqm-portal-email-verification-view-14f1c22c.js → sqm-portal-email-verification-view-b17a5a59.js} +1 -1
  394. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  395. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  396. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  397. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  398. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  399. package/dist/esm-es5/{sqm-portal-profile-view-41116f1d.js → sqm-portal-profile-view-d33da4af.js} +1 -1
  400. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  401. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  402. package/dist/esm-es5/{sqm-portal-registration-form-view-21d57492.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  403. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  404. package/dist/esm-es5/{sqm-portal-reset-password-view-b000ffc5.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  405. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  406. package/dist/esm-es5/{sqm-portal-verify-email-view-2983ba9b.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  407. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  408. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
  409. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  410. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  411. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  412. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  413. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  414. package/dist/esm-es5/sqm-route.entry.js +1 -1
  415. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  416. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  417. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  418. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  419. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  420. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  421. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  422. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  423. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  424. package/dist/esm-es5/useChildElements-3d872cef.js +1 -0
  425. package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
  426. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-93462be3.js} +2 -2
  427. package/dist/esm-es5/usePortalLogin-e95df3c3.js +1 -0
  428. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
  429. package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
  430. package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
  431. package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
  432. package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
  433. package/dist/esm-es5/utilities-72c07b09.js +1 -0
  434. package/dist/esm-es5/utils-03188de2.js +1 -0
  435. package/dist/esm-es5/utils-8690dd2e.js +1 -0
  436. package/dist/mint-components/global/styles.ts +428 -136
  437. package/dist/mint-components/mint-components.esm.js +1 -1
  438. package/dist/mint-components/mint-components.js +1 -1
  439. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  440. package/dist/mint-components/p-0087ad39.system.js +1 -0
  441. package/dist/mint-components/p-01e73f14.system.entry.js +1 -0
  442. package/dist/mint-components/{p-e145e4f8.js → p-07dc6d68.js} +1 -1
  443. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  444. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  445. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  446. package/dist/mint-components/p-0ec54f97.js +1 -0
  447. package/dist/mint-components/p-10c63703.entry.js +1 -0
  448. package/dist/mint-components/p-115dfc03.system.js +1 -0
  449. package/dist/mint-components/p-125a894f.js +1 -0
  450. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  451. package/dist/mint-components/p-13f3a647.js +1 -0
  452. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  453. package/dist/mint-components/p-1470eb1d.entry.js +93 -0
  454. package/dist/mint-components/{p-a81b507f.entry.js → p-155f7d25.entry.js} +2 -2
  455. package/dist/mint-components/p-15bfd7e2.system.js +1 -0
  456. package/dist/mint-components/p-171310d9.system.js +1 -0
  457. package/dist/mint-components/p-174b20e4.js +448 -0
  458. package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
  459. package/dist/mint-components/{p-4d91a1d6.system.js → p-1936caf9.system.js} +1 -1
  460. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  461. package/dist/mint-components/p-1ef7d49f.system.entry.js +1 -0
  462. package/dist/mint-components/p-1fcfb419.entry.js +13 -0
  463. package/dist/mint-components/p-204861a6.js +1 -0
  464. package/dist/mint-components/{p-e8ffcc68.entry.js → p-20916402.entry.js} +2 -2
  465. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  466. package/dist/mint-components/p-240bec23.js +1 -0
  467. package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
  468. package/dist/mint-components/p-26b1971c.entry.js +1 -0
  469. package/dist/mint-components/{p-0559d880.entry.js → p-27a7f6a6.entry.js} +1 -1
  470. package/dist/mint-components/p-29398c98.entry.js +1 -0
  471. package/dist/mint-components/{p-480e08e9.js → p-293e3b25.js} +2 -2
  472. package/dist/mint-components/p-298cf8ee.system.entry.js +1 -0
  473. package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
  474. package/dist/mint-components/p-2d917441.system.js +1 -0
  475. package/dist/mint-components/{p-45bb63c7.system.entry.js → p-33c34619.system.entry.js} +1 -1
  476. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-355079f4.system.entry.js} +1 -1
  477. package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
  478. package/dist/mint-components/p-3c76e7c8.system.entry.js +1 -0
  479. package/dist/mint-components/p-3dd5ba75.js +1233 -0
  480. package/dist/mint-components/{p-20245645.js → p-3eba9036.js} +1 -1
  481. package/dist/mint-components/p-3edecfa4.entry.js +1 -0
  482. package/dist/mint-components/p-3fa6eac8.system.entry.js +1 -0
  483. package/dist/mint-components/p-40752a0f.entry.js +1 -0
  484. package/dist/mint-components/p-40c01a5a.system.js +1 -0
  485. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
  486. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  487. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  488. package/dist/mint-components/{p-345fd28e.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
  489. package/dist/mint-components/p-4475e203.system.entry.js +1 -0
  490. package/dist/mint-components/p-45c3ff6d.js +1 -0
  491. package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
  492. package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
  493. package/dist/mint-components/p-49b20dae.js +1 -0
  494. package/dist/mint-components/p-4b1106ff.system.js +1 -0
  495. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  496. package/dist/mint-components/{p-ac9f4085.system.entry.js → p-4f5a3dad.system.entry.js} +1 -1
  497. package/dist/mint-components/p-513f5d80.js +1 -0
  498. package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
  499. package/dist/mint-components/{p-4b6f2eca.system.entry.js → p-54abb144.system.entry.js} +1 -1
  500. package/dist/mint-components/p-552a6d1b.js +103 -0
  501. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-58e0eccc.system.entry.js} +1 -1
  502. package/dist/mint-components/p-59b028db.system.js +1 -0
  503. package/dist/mint-components/{p-f4a72903.system.entry.js → p-5b29d833.system.entry.js} +1 -1
  504. package/dist/mint-components/p-5c9a8f62.system.entry.js +1 -0
  505. package/dist/mint-components/p-5e145a54.system.entry.js +1 -0
  506. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-5e8d6f3a.system.entry.js} +1 -1
  507. package/dist/mint-components/p-5ff2da11.js +1 -0
  508. package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
  509. package/dist/mint-components/p-621f3e30.entry.js +1 -0
  510. package/dist/mint-components/p-625ca62f.entry.js +1 -0
  511. package/dist/mint-components/p-63e29387.js +42 -0
  512. package/dist/mint-components/{p-71d7c2a0.system.js → p-64997b59.system.js} +1 -1
  513. package/dist/mint-components/{p-b5fb3826.system.js → p-6578ea31.system.js} +1 -1
  514. package/dist/mint-components/p-67ad2252.system.js +1 -0
  515. package/dist/mint-components/{p-dc52c36a.js → p-68043f30.js} +1 -1
  516. package/dist/mint-components/{p-4027c743.system.entry.js → p-6849f609.system.entry.js} +1 -1
  517. package/dist/mint-components/p-692bacf3.js +1 -0
  518. package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
  519. package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
  520. package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
  521. package/dist/mint-components/{p-b385c9f0.system.entry.js → p-6d74df04.system.entry.js} +1 -1
  522. package/dist/mint-components/p-71271fbd.system.js +1 -0
  523. package/dist/mint-components/p-7129329c.entry.js +11 -0
  524. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  525. package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
  526. package/dist/mint-components/{p-cc7af682.system.js → p-71daeed9.system.js} +2 -2
  527. package/dist/mint-components/p-75b8fd75.entry.js +1 -0
  528. package/dist/mint-components/p-7602eb6a.entry.js +1 -0
  529. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
  530. package/dist/mint-components/p-79ef70f8.entry.js +25 -0
  531. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  532. package/dist/mint-components/{p-28b011a0.js → p-7d93f0ed.js} +1 -1
  533. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-7eb0573c.entry.js} +1 -1
  534. package/dist/mint-components/p-83d07288.entry.js +9 -0
  535. package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
  536. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  537. package/dist/mint-components/p-8b908fb5.js +1 -0
  538. package/dist/mint-components/p-8caef004.js +1 -0
  539. package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
  540. package/dist/mint-components/p-916a2045.system.entry.js +1 -0
  541. package/dist/mint-components/p-92a54b0c.entry.js +1 -0
  542. package/dist/mint-components/{p-3c96533f.js → p-93382c4f.js} +1 -1
  543. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
  544. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  545. package/dist/mint-components/p-976ee669.js +1 -0
  546. package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
  547. package/dist/mint-components/{p-284e4ed5.entry.js → p-9943f53e.entry.js} +1 -1
  548. package/dist/mint-components/{p-e21a1cb8.system.entry.js → p-9ab8a0fd.system.entry.js} +1 -1
  549. package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
  550. package/dist/mint-components/p-9e297104.entry.js +1 -0
  551. package/dist/mint-components/p-9eba8408.js +1 -0
  552. package/dist/mint-components/p-a1b89894.system.entry.js +1 -0
  553. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  554. package/dist/mint-components/p-a473e720.entry.js +33 -0
  555. package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
  556. package/dist/mint-components/{p-87c21535.entry.js → p-a52df294.entry.js} +1 -1
  557. package/dist/mint-components/p-a597b136.entry.js +1 -0
  558. package/dist/mint-components/{p-1b7e6ee9.entry.js → p-a5f10cbd.entry.js} +1 -1
  559. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  560. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  561. package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
  562. package/dist/mint-components/{p-4e526a94.js → p-aa596749.js} +1 -1
  563. package/dist/mint-components/p-abc5691f.system.entry.js +1 -0
  564. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
  565. package/dist/mint-components/{p-2ae0e06a.entry.js → p-b2fdb0b1.entry.js} +1 -1
  566. package/dist/mint-components/p-b4a922e1.system.entry.js +1 -0
  567. package/dist/mint-components/{p-571e1427.system.js → p-b6911812.system.js} +1 -1
  568. package/dist/mint-components/p-bad50dc1.entry.js +1 -0
  569. package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
  570. package/dist/mint-components/p-bcac83f0.system.js +1 -0
  571. package/dist/mint-components/p-bd093069.system.entry.js +1 -0
  572. package/dist/mint-components/p-be88596c.system.js +1 -0
  573. package/dist/mint-components/p-c210374a.system.js +1 -0
  574. package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
  575. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  576. package/dist/mint-components/p-c7c11325.js +1 -0
  577. package/dist/mint-components/{p-605c2904.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
  578. package/dist/mint-components/p-ced147bc.system.entry.js +1 -0
  579. package/dist/mint-components/{p-aaff68dc.entry.js → p-d08bcd88.entry.js} +1 -1
  580. package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
  581. package/dist/mint-components/p-d14f3149.system.js +1 -0
  582. package/dist/mint-components/{p-17da19a2.system.js → p-d212e319.system.js} +1 -1
  583. package/dist/mint-components/p-d251c213.system.js +1 -0
  584. package/dist/mint-components/p-d3086782.entry.js +258 -0
  585. package/dist/mint-components/p-d3262344.js +1 -0
  586. package/dist/mint-components/p-d399b343.system.entry.js +1 -0
  587. package/dist/mint-components/p-d650e349.system.entry.js +1 -0
  588. package/dist/mint-components/p-d705ed24.entry.js +144 -0
  589. package/dist/mint-components/p-d848957e.system.entry.js +1 -0
  590. package/dist/mint-components/p-dae3c988.entry.js +13 -0
  591. package/dist/mint-components/p-dcc50d90.entry.js +1 -0
  592. package/dist/mint-components/{p-69ac09d4.js → p-ddf3c05e.js} +1 -1
  593. package/dist/mint-components/p-de66c77f.entry.js +1 -0
  594. package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
  595. package/dist/mint-components/p-e5b224b9.entry.js +1 -0
  596. package/dist/mint-components/{p-ccf8c9aa.entry.js → p-ea063d99.entry.js} +1 -1
  597. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  598. package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
  599. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  600. package/dist/mint-components/p-f1dc581f.js +1 -0
  601. package/dist/mint-components/{p-527216de.system.js → p-f3392945.system.js} +1 -1
  602. package/dist/mint-components/p-f4202a64.system.entry.js +1 -0
  603. package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
  604. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  605. package/dist/mint-components/p-f764e51f.entry.js +16 -0
  606. package/dist/mint-components/{p-3af1ec4c.entry.js → p-f9295990.entry.js} +1 -1
  607. package/dist/mint-components/{p-642b0650.system.js → p-f931c628.system.js} +21 -21
  608. package/dist/mint-components/p-f9c7248e.js +1 -0
  609. package/dist/mint-components/{p-2b462e4f.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  610. package/dist/mint-components/p-fb2d2be0.system.js +1 -0
  611. package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
  612. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  613. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  614. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
  615. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  616. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  617. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +1 -1
  618. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  619. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  620. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +14 -1
  621. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  622. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  623. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  624. package/dist/types/components/sqm-hero/sqm-hero.d.ts +9 -2
  625. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +1 -1
  626. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +1 -1
  627. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  628. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  629. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  630. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  631. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  632. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  633. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +5 -5
  634. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  635. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  636. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  637. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  638. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  639. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  640. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  641. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  642. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  643. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  644. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -1
  645. package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
  646. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  647. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  648. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  649. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  650. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  651. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  652. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -1
  653. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -1
  654. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +3 -2
  655. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +6 -5
  656. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +2 -2
  657. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  658. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  659. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  660. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  661. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  662. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  663. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  664. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  665. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +2 -1
  666. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +1 -1
  667. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  668. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +8 -1
  669. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  670. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  671. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  672. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  673. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  674. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  675. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  676. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  677. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
  678. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
  679. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  680. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  681. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +1 -0
  682. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  683. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +0 -8
  684. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  685. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  686. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -6
  687. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -3
  688. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  689. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +3 -2
  690. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  691. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  692. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  693. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  694. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  695. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  696. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  697. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  698. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +1 -1
  699. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +1 -5
  700. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +1 -1
  701. package/dist/types/components/sqm-text/sqm-text.d.ts +1 -1
  702. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  703. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  704. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -2
  705. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
  706. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
  707. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  708. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
  709. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  710. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  711. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
  712. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  713. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
  714. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  715. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
  716. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  717. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +47 -4
  718. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  719. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  720. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
  721. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  722. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  723. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  724. package/dist/types/components.d.ts +718 -120
  725. package/dist/types/global/global.d.ts +2 -2
  726. package/dist/types/global/mixins.d.ts +12 -12
  727. package/dist/types/global/styles.d.ts +10 -2
  728. package/dist/types/insertfont.d.ts +1 -0
  729. package/dist/types/saasquatch.d.ts +142 -0
  730. package/dist/types/utils/parseStates.d.ts +1 -0
  731. package/dist/types/utils/utils.d.ts +1 -0
  732. package/docs/docs.docx +0 -0
  733. package/docs/raisins.json +1 -1
  734. package/grapesjs/grapesjs.js +1 -1
  735. package/package.json +3 -2
  736. package/shoelace/assets/icons/twitter-x.svg +4 -0
  737. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  738. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  739. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  740. package/dist/cjs/sqm-invoice-table-view-55066ec6.js +0 -2038
  741. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  742. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  743. package/dist/cjs/sqm-portal-forgot-password-view-b986086e.js +0 -45
  744. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
  745. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  746. package/dist/cjs/sqm-text-span-view-56e48a78.js +0 -62
  747. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  748. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  749. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  750. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  751. package/dist/esm/ErrorView-48e2b969.js +0 -33
  752. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  753. package/dist/esm/sqm-asset-card.entry.js +0 -41
  754. package/dist/esm/sqm-invoice-table-view-fda573e4.js +0 -2022
  755. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  756. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  757. package/dist/esm/sqm-portal-forgot-password-view-50444a7c.js +0 -43
  758. package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
  759. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  760. package/dist/esm/sqm-text-span-view-c577cc60.js +0 -60
  761. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  762. package/dist/esm-es5/GenericTableView-e7addb2b.js +0 -1
  763. package/dist/esm-es5/ShadowViewAddon-3651cb42.js +0 -1
  764. package/dist/esm-es5/copy-text-view-0ac6e1d1.js +0 -1
  765. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  766. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  767. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  768. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  769. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  770. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  771. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  772. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  773. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  774. package/dist/esm-es5/sqm-invoice-table-view-fda573e4.js +0 -1
  775. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  776. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  777. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  778. package/dist/esm-es5/sqm-portal-forgot-password-view-50444a7c.js +0 -1
  779. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
  780. package/dist/esm-es5/sqm-portal-login-view-37c85d04.js +0 -1
  781. package/dist/esm-es5/sqm-qr-code-view-10b8b4cb.js +0 -1
  782. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  783. package/dist/esm-es5/sqm-text-span-view-c577cc60.js +0 -1
  784. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  785. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  786. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  787. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  788. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  789. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  790. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  791. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  792. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  793. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  794. package/dist/esm-es5/utils-334c1e34.js +0 -1
  795. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  796. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  797. package/dist/mint-components/p-12536a1f.system.entry.js +0 -1
  798. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  799. package/dist/mint-components/p-14a65f29.system.js +0 -1
  800. package/dist/mint-components/p-1513309d.entry.js +0 -1
  801. package/dist/mint-components/p-16dba1eb.system.js +0 -1
  802. package/dist/mint-components/p-18425f38.system.entry.js +0 -1
  803. package/dist/mint-components/p-19ccb4ce.js +0 -1
  804. package/dist/mint-components/p-1ae6c418.entry.js +0 -1
  805. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  806. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  807. package/dist/mint-components/p-217514ac.system.js +0 -1
  808. package/dist/mint-components/p-229f797b.js +0 -1
  809. package/dist/mint-components/p-24db5c70.js +0 -1
  810. package/dist/mint-components/p-275b4767.entry.js +0 -1
  811. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  812. package/dist/mint-components/p-2c7ebd5b.js +0 -1
  813. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  814. package/dist/mint-components/p-2e110002.system.js +0 -1
  815. package/dist/mint-components/p-320d3c31.entry.js +0 -205
  816. package/dist/mint-components/p-32dbde60.system.js +0 -1
  817. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  818. package/dist/mint-components/p-38de17fa.system.js +0 -1
  819. package/dist/mint-components/p-38e5c429.system.js +0 -1
  820. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  821. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  822. package/dist/mint-components/p-3db34d68.js +0 -1
  823. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  824. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  825. package/dist/mint-components/p-4428294b.entry.js +0 -1
  826. package/dist/mint-components/p-48135f99.system.js +0 -53
  827. package/dist/mint-components/p-49206a9c.entry.js +0 -1
  828. package/dist/mint-components/p-4e5af50c.js +0 -1
  829. package/dist/mint-components/p-52858682.system.js +0 -1
  830. package/dist/mint-components/p-5dbe8b0a.system.js +0 -1
  831. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  832. package/dist/mint-components/p-60e72631.entry.js +0 -9
  833. package/dist/mint-components/p-6333265f.system.js +0 -1
  834. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  835. package/dist/mint-components/p-6427e963.entry.js +0 -1
  836. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  837. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  838. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  839. package/dist/mint-components/p-6d8f7c71.js +0 -1
  840. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  841. package/dist/mint-components/p-70c8fea5.system.entry.js +0 -1
  842. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  843. package/dist/mint-components/p-776260e8.js +0 -1248
  844. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  845. package/dist/mint-components/p-7cbec088.system.entry.js +0 -1
  846. package/dist/mint-components/p-7e3a84bc.js +0 -1
  847. package/dist/mint-components/p-7e3d84a3.entry.js +0 -13
  848. package/dist/mint-components/p-802b9f7e.entry.js +0 -1
  849. package/dist/mint-components/p-8053366e.system.entry.js +0 -1
  850. package/dist/mint-components/p-8119a65e.system.entry.js +0 -1
  851. package/dist/mint-components/p-82d04fd3.entry.js +0 -25
  852. package/dist/mint-components/p-868daffd.system.entry.js +0 -1
  853. package/dist/mint-components/p-893d7ab4.js +0 -1
  854. package/dist/mint-components/p-8ab87bd4.entry.js +0 -144
  855. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  856. package/dist/mint-components/p-8c23d1b8.js +0 -1
  857. package/dist/mint-components/p-8c494bf1.js +0 -1
  858. package/dist/mint-components/p-8d9328dd.entry.js +0 -33
  859. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  860. package/dist/mint-components/p-91521e9d.js +0 -1
  861. package/dist/mint-components/p-92816d1f.js +0 -1
  862. package/dist/mint-components/p-94a876b9.js +0 -1
  863. package/dist/mint-components/p-9617685e.system.entry.js +0 -1
  864. package/dist/mint-components/p-97d4d651.system.js +0 -1
  865. package/dist/mint-components/p-98698131.js +0 -1
  866. package/dist/mint-components/p-9abb9ab0.entry.js +0 -13
  867. package/dist/mint-components/p-9acb5038.js +0 -1
  868. package/dist/mint-components/p-9b2e60ce.entry.js +0 -258
  869. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  870. package/dist/mint-components/p-a6ca754f.js +0 -394
  871. package/dist/mint-components/p-afbb3f73.entry.js +0 -1
  872. package/dist/mint-components/p-b12e132b.system.entry.js +0 -1
  873. package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
  874. package/dist/mint-components/p-bd2a2546.system.js +0 -1
  875. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  876. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  877. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  878. package/dist/mint-components/p-ccb5699b.js +0 -1
  879. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  880. package/dist/mint-components/p-cd651f81.js +0 -42
  881. package/dist/mint-components/p-da7708a7.entry.js +0 -1
  882. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  883. package/dist/mint-components/p-dce51a2e.system.entry.js +0 -1
  884. package/dist/mint-components/p-df89186f.system.js +0 -1
  885. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  886. package/dist/mint-components/p-eab1c9f3.js +0 -1
  887. package/dist/mint-components/p-ee06426a.system.js +0 -1
  888. package/dist/mint-components/p-f2228da3.system.entry.js +0 -1
  889. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  890. package/dist/mint-components/p-f708da7b.js +0 -1
  891. package/dist/mint-components/p-f9da2c34.system.entry.js +0 -1
  892. package/dist/mint-components/p-fd0a013f.entry.js +0 -1
  893. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  894. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  895. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  896. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
  897. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  898. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -0,0 +1,144 @@
1
+ import{h as e,r as t,c as a}from"./p-c7c11325.js";import{i as s}from"./p-3dd5ba75.js";import{b as r,j as l,f as i,n,u as o}from"./p-63e29387.js";import{d,J as c,H as u,L as p,w as h,R as m,i as v}from"./p-0ec54f97.js";import{c as E}from"./p-c1086930.js";import{l as f}from"./p-6951663b.js";import{c as g}from"./p-cef45012.js";import"./p-49b20dae.js";import{G as w}from"./p-f1dc581f.js";import{u as y,a as x}from"./p-f5fff87e.js";import{u as b}from"./p-976ee669.js";import{l as A}from"./p-08700497.js";import{m as D}from"./p-460155de.js";import{g as N}from"./p-49400aab.js";const R=r("sq:useRewardsTable"),T=d.gql`
2
+ query getRewards(
3
+ $limit: Int!
4
+ $offset: Int!
5
+ $rewardFilter: RewardFilterInput
6
+ $locale: RSLocale
7
+ ) {
8
+ viewer {
9
+ ... on User {
10
+ id
11
+ rewards(
12
+ limit: $limit
13
+ offset: $offset
14
+ filter: $rewardFilter
15
+ sortBy: { field: "dateCreated", order: DESC }
16
+ ) {
17
+ totalCount
18
+ count
19
+ data {
20
+ meta {
21
+ status
22
+ integration {
23
+ name
24
+ }
25
+ message
26
+ customMeta
27
+ }
28
+ id
29
+ type
30
+ value
31
+ unit
32
+ name
33
+ dateGiven
34
+ dateCreated
35
+ dateExpires
36
+ dateCancelled
37
+ dateRedeemed
38
+ dateScheduledFor
39
+ fuelTankCode
40
+ fuelTankType
41
+ currency
42
+ prettyValue(locale: $locale)
43
+ prettyValueNumber: prettyValue(
44
+ formatType: NUMBER_FORMATTED
45
+ locale: $locale
46
+ )
47
+ prettyAvailableNumber: prettyAvailableValue(
48
+ formatType: NUMBER_FORMATTED
49
+ locale: $locale
50
+ )
51
+ prettyRedeemedNumber: prettyRedeemedCredit(
52
+ formatType: NUMBER_FORMATTED
53
+ locale: $locale
54
+ )
55
+ programId
56
+ program {
57
+ name
58
+ }
59
+ partnerFundsTransfer {
60
+ id
61
+ status
62
+ }
63
+ statuses
64
+ pendingReasons
65
+ cancelledReason
66
+ globalRewardKey
67
+ programRewardKey
68
+ rewardSource
69
+ prettyRedeemedCredit(locale: $locale)
70
+ prettyAssignedCredit(locale: $locale)
71
+ prettyAvailableValue(locale: $locale)
72
+ exchangedRewardRedemptionTransaction {
73
+ id
74
+ creditRedeemed
75
+ prettyRedeemedCredit(locale: $locale)
76
+ unit
77
+ dateRedeemed
78
+ }
79
+ referral {
80
+ id
81
+ dateModerated
82
+ referrerUser {
83
+ id
84
+ firstName
85
+ lastName
86
+ }
87
+ referredUser {
88
+ id
89
+ firstName
90
+ lastName
91
+ }
92
+ fraudData {
93
+ moderationStatus
94
+ autoModerationStatus
95
+ manualModerationStatus
96
+ }
97
+ }
98
+
99
+ rewardRedemptionTransactions {
100
+ data {
101
+ exchangedRewards {
102
+ data {
103
+ prettyValue(locale: $locale)
104
+ type
105
+ fuelTankCode
106
+ globalRewardKey
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ `,I=d.gql`
117
+ query getImpactTax {
118
+ viewer {
119
+ ... on User {
120
+ id
121
+ impactConnection {
122
+ connected
123
+ taxHandlingEnabled
124
+ publisher {
125
+ requiredTaxDocumentType
126
+ currentTaxDocument {
127
+ status
128
+ type
129
+ dateCreated
130
+ }
131
+ withdrawalSettings {
132
+ paymentMethod
133
+ }
134
+ payoutsAccount {
135
+ hold
136
+ holdReasons
137
+ balance
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ `;async function _(t,a){const s=t.tagName.toLowerCase();let r;await customElements.whenDefined(s);try{r=a()}catch(t){return R("label promise failed",t),e("span",null)}try{return await r}catch(t){R("Error rendering label",t);const a=N(t);return e("details",null,e("summary",null,"Error"),a)}}const P=class{constructor(e){t(this,e),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,n(this)}disconnectedCallback(){}render(){const t=e(S,null),a=e(C,null),{states:s,data:r,callbacks:n,elements:d}=v()?function(e,t,a){const[s,r]=l(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),n=y(),{data:d}=o((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||D(e.perPage)}),[e.perPage]),c=b();return i((()=>{r({loading:!0}),d&&async function(t){let a=d;a=d.slice(0,e.perPage);const s=t.filter((e=>{var t,a;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot"))})),l=null==s?void 0:s.map((async(e,t)=>{var a;const s=null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==s&&"empty"!==s){e.style.position="absolute",e.setAttribute("slot","column-"+t);const a=e.firstElementChild.childNodes[1];return a.innerHTML="+",a.style.lineHeight="20px",_(e,(()=>e.renderLabel(t)))}return _(e,(()=>e.renderLabel()))})),i=null==a?void 0:a.map((async e=>{const t=null==s?void 0:s.map((async t=>_(t,(()=>t.renderCell(e,void 0,{})))));return await Promise.all(t)})),n=i&&(await Promise.all(i)).filter((e=>e));r({rows:n});const o=l&&await Promise.all(l);r({columns:o,loading:!1,page:0})}(c)}),[d,c,n]),E({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:s.columns,rows:s.rows,emptyElement:t,loadingElement:a}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,t,a):function(t,a,s){var r,n,o;const d=c(),v=u(),E=p(),f=null!==(r=t.programId)&&void 0!==r?r:v,g={userId_eq:null==d?void 0:d.id,accountId_eq:null==d?void 0:d.accountId,...f?"classic"===f?{programId_exists:!1}:{programId_eq:f}:{}},[w,x]=l(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),{data:A,loading:D}=h(I,{},!(null==d?void 0:d.jwt)),{envelope:N,states:R,callbacks:P}=m(T,(e=>{var t;return null===(t=null==e?void 0:e.viewer)||void 0===t?void 0:t.rewards}),{limit:t.perPage,offset:0},{rewardFilter:g,locale:E},!(null==d?void 0:d.jwt)),S=y(),C=b(),L=null==N?void 0:N.data,q=null===(n=null==A?void 0:A.viewer)||void 0===n?void 0:n.impactConnection;i((()=>{x({loading:!0}),N&&async function(t){const a=t.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),s=null==a?void 0:a.map((async e=>_(e,(()=>e.renderLabel())))),r=null==L?void 0:L.map((async t=>{const s=null==a?void 0:a.map((async a=>_(a,(()=>a.renderCell(t,{locale:E,taxConnection:q},e)))));return await Promise.all(s)})),l=r&&(await Promise.all(r)).filter((e=>e));x({rows:l});const i=s&&await Promise.all(s);x({columns:i,loading:!1,page:R.currentPage})}(C)}),[N,C,S]);const U=!(null===(o=null==w?void 0:w.rows)||void 0===o?void 0:o.length)&&!(null==L?void 0:L.length);return{states:{hasNext:R.currentPage<R.pageCount-1,hasPrev:R.currentPage>0,show:R.loading||w.loading||D?"loading":U?"empty":"rows",namespace:"sqm-rewards-table"},data:{textOverrides:{showLabels:!t.hideLabels,prevLabel:t.prevLabel,moreLabel:t.moreLabel},hiddenColumns:t.hiddenColumns,smBreakpoint:t.smBreakpoint,mdBreakpoint:t.mdBreakpoint},elements:{columns:w.columns,rows:w.rows,emptyElement:a,loadingElement:s},callbacks:{nextPage:()=>{P.setCurrentPage(R.currentPage+1)},prevPage:()=>{P.setCurrentPage(R.currentPage-1)}}}}(this,t,a);return x([this.perPage]),e(w,{states:s,data:r,callbacks:n,elements:d})}};function S(){return e("slot",{name:"empty"},e("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function C(){return e("slot",{name:"loading"},e(L,null),e(L,null),e(L,null),e(L,null))}function L(){return e("sqm-table-row",null,e("sqm-table-cell",{colspan:5},e("sl-skeleton",null)))}const q=class{constructor(e){t(this,e),this.ignored=!0,this.locale="en",n(this)}disconnectedCallback(){}render(){var e,t;return this.date?null===(t=null===(e=A.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(f(this.locale)))||void 0===t?void 0:t.toLocaleString(A.DateTime.DATE_MED):"-"}},U=class{constructor(e){t(this,e),this.columnTitle="Date received",this.dateShown="dateGiven",n(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-date-cell",{date:t[this.dateShown],locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return x([this.dateShown,this.columnTitle]),e(a,{style:{display:"none"}})}},k=g({DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}}),O=k.toString(),F=class{constructor(e){t(this,e)}render(){return s.locale=this.locale,e("div",{style:{display:"contents"}},e("style",{type:"text/css"},O),e((({reward:t})=>{var a;const r="CENTS"===t.unit?t.prettyValue.replace(/USD/gi,"$"):null!==(a=t.prettyValue)&&void 0!==a?a:"-",l="1"===t.prettyValueNumber||t.dateRedeemed&&"0"===t.prettyAvailableNumber;if("FUELTANK"===t.type)return e("div",{class:k.classes.Fueltank},t.prettyValue,t.fuelTankCode&&e("div",{class:"code",onClick:()=>navigator.clipboard.writeText(t.fuelTankCode)},e("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:this.copyText,"onSl-show":e=>setTimeout((()=>e.path[0].hide()),1e3)},e("span",{class:"text"},t.fuelTankCode),e("span",{class:"icon"},e("sl-icon",{name:"files"})))));if("CREDIT"===t.type&&!l){const a=parseFloat(t.prettyValueNumber)-parseFloat(t.prettyRedeemedNumber),l=Math.round(a/parseFloat(t.prettyValueNumber)*100),i=t.statuses.includes("EXPIRED")||t.statuses.includes("CANCELLED")?e("div",null,s.formatMessage({id:"redeemedText",defaultMessage:this.redeemedText},{redeemedAmount:t.prettyRedeemedCredit})):e("div",null,s.formatMessage({id:"availableText",defaultMessage:this.availableText},{availableAmount:t.statuses.includes("PENDING")?t.prettyAssignedCredit:t.prettyAvailableValue})),n=g({Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sqm-border-color)","&:after":{content:'""',display:"block",background:"var(--sqm-accent-color-icon)",borderRadius:"100px",width:`${l}%`,height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sqm-text)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)"}}),o=n.toString();return e("div",null,e("style",{type:"text/css"},o),e("div",{class:n.classes.Container},e("span",{part:"sqm-reward-cell-value"},r+" "),e("br",null)," ",e("div",{part:"sqm-reward-cell-progress",class:n.classes.Progress}),e("span",{part:"sqm-reward-cell-subtext",class:n.classes.Subtext},i)))}return e("div",null,r)}),{reward:this.reward}))}},V=class{constructor(e){t(this,e),this.columnTitle="Reward",this.redeemedText="{redeemedAmount} redeemed",this.availableText="{availableAmount} remaining",this.copyText="Copied!",n(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-reward-cell",{reward:t,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:null==a?void 0:a.locale,exportparts:"sqm-rewards-cell-value, sqm-rewards-cell-progress-bar, sqm-rewards-cell-subtext"})}async renderLabel(){return this.columnTitle}render(){return x([this.columnTitle,this.redeemedText,this.availableText,this.copyText]),e(a,{style:{display:"none"}})}},M=class{constructor(e){t(this,e),this.locale="en"}render(){s.locale=this.locale;const t=({reward:t})=>{var a;return e("span",null,s.formatMessage({id:"rewardSourceText",defaultMessage:this.rewardSourceText},{rewardSource:t.rewardSource,programName:null===(a=null==t?void 0:t.program)||void 0===a?void 0:a.name}))},a=({reward:t})=>{var a;const s=e("div",null,e("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)"}},this.rewardExchangeText),e("br",null),null===(a=t.exchangedRewardRedemptionTransaction)||void 0===a?void 0:a.prettyRedeemedCredit," → ",t.prettyValue);return t.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+t.prettyValue.length<21?s:e("div",{style:{display:"inline-block",verticalAlign:"top"}},s)},r=e=>e?e.firstName||e.lastName?e.firstName?e.lastName?`${e.firstName} ${e.lastName}`:`${e.firstName}`:`${e.lastName}`:this.anonymousUserText:this.deletedUserText;return e((()=>"FRIEND_SIGNUP"===this.reward.rewardSource||"REFERRED"===this.reward.rewardSource?null===this.reward.referral?e("p",{style:{color:"var(--sqm-text-subdued)"}},this.deletedReferralText):e("div",null,e("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)"}},s.formatMessage({id:"referralText",defaultMessage:this.referralText},{rewardSource:this.reward.rewardSource})),e("div",null,r("FRIEND_SIGNUP"==this.reward.rewardSource?this.reward.referral.referredUser:this.reward.referral.referrerUser))):e(this.reward.exchangedRewardRedemptionTransaction?a:t,{reward:this.reward})),null)}},G=class{constructor(e){t(this,e),this.columnTitle="Source",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",this.rewardExchangeText="Reward Exchange",this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}",this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}",n(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-source-cell",{reward:t,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return x([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]),e(a,{style:{display:"none"}})}},B=g({Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{padding:"4px 8px",fontSize:"var(--sl-font-size-small)",textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{"&::part(base)":{padding:"4px 8px",fontSize:"var(--sl-font-size-small)",textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{"&::part(base)":{padding:"4px 8px",fontSize:"var(--sl-font-size-small)",textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{"&::part(base)":{padding:"4px 8px",fontSize:"var(--sl-font-size-small)",textAlign:"center",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)",margin:"0"}}),$=B.toString(),z=class{constructor(e){t(this,e),this.expiryText="Expires",this.locale="en",this.pendingUsTax="W-9 required",this.pendingTaxReview="Awaiting tax form review.",this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.",this.pendingTaxSubmission="Submit your tax documents to receive your rewards.",this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",this.pendingReviewText="Awaiting review",this.deniedText="Detected self-referral",this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.",this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.",this.payoutCancelled="If you think this is a mistake, contact our Support team."}rewardStatus(e){var t,a,s,r,l,i,n,o,d;const c=null===(t=e.statuses)||void 0===t?void 0:t.includes("EXPIRED"),u=null===(a=e.statuses)||void 0===a?void 0:a.includes("PENDING"),p="INTEGRATION"===e.type||"FUELTANK"===e.type,h=null===(r=null===(s=e.referral)||void 0===s?void 0:s.fraudData)||void 0===r?void 0:r.moderationStatus;if("DENIED"===h)return"DENIED";if("PENDING"===h)return"PENDING_REVIEW";const m=null===(l=e.partnerFundsTransfer)||void 0===l?void 0:l.status;return"TRANSFERRED"===m||"NOT_YET_DUE"===m?"PAYOUT_APPROVED":"OVERDUE"===m?"PAYOUT_FAILED":"REVERSED"===m?"PAYOUT_CANCELLED":e.dateCancelled?"CANCELLED":c?"EXPIRED":u?"PENDING":"CREDIT"===e.type?(null===(i=e.statuses)||void 0===i?void 0:i.includes("REDEEMED"))?"REDEEMED":"AVAILABLE":"PCT_DISCOUNT"===e.type&&(null===(n=e.statuses)||void 0===n?void 0:n.includes("AVAILABLE"))?"AVAILABLE":p&&u?"PENDING":p&&(null===(o=e.statuses)||void 0===o?void 0:o.includes("CANCELLED"))?"CANCELLED":p&&(null===(d=e.statuses)||void 0===d?void 0:d.includes("AVAILABLE"))?"AVAILABLE":""}getTaxPendingReasons(e,t){var a,s,r,l,i;if(null===(a=null==e?void 0:e.pendingReasons)||void 0===a?void 0:a.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return this.pendingUsTax;if(!(null==t?void 0:t.connected))return this.pendingPartnerCreation;if(null===(s=null==t?void 0:t.publisher)||void 0===s?void 0:s.requiredTaxDocumentType){if(!(null===(r=null==t?void 0:t.publisher)||void 0===r?void 0:r.currentTaxDocument))return this.pendingTaxSubmission;const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return this.pendingNewTaxForm;if("NOT_VERIFIED"===e)return this.pendingTaxReview}if(!(null===(l=null==t?void 0:t.publisher)||void 0===l?void 0:l.withdrawalSettings))return this.pendingPartnerCreation}return(null===(i=null==e?void 0:e.pendingReasons)||void 0===i?void 0:i.includes("MISSING_PAYOUT_CONFIGURATION"))?this.pendingPartnerCreation:""}getBadgeType(e){switch(e){case"AVAILABLE":return"success";case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"PENDING":case"PENDING_REVIEW":return"warning";default:return"danger"}}getPayoutStatusText(e){switch(e){case"US_TAX":return this.pendingUsTax;case"PAYOUT_APPROVED":return this.payoutApproved;case"PAYOUT_FAILED":return this.payoutFailed;case"PAYOUT_CANCELLED":return this.payoutCancelled;case"PENDING_TAX_REVIEW":return this.pendingTaxReview;case"PENDING_NEW_TAX_FORM":return this.pendingNewTaxForm;case"PENDING_TAX_SUBMISSION":return this.pendingTaxSubmission;case"PENDING_PARTNER_CREATION":return this.pendingPartnerCreation}}render(){var t;s.locale=this.locale;const a=this.rewardStatus(this.reward),r=s.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:a}),l=this.getBadgeType(a),i=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"",n=i&&`${"AVAILABLE"===a&&this.reward.dateExpires?this.expiryText+" ":""}${null===(t=A.DateTime.fromMillis(i))||void 0===t?void 0:t.setLocale(f(f(this.locale))).toLocaleString(A.DateTime.DATE_MED)}`,o="PENDING"===a?this.getTaxPendingReasons(this.reward,this.taxConnection)||function(e){var t;const a={SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+(null===(t=A.DateTime.fromMillis(e.reward.dateScheduledFor))||void 0===t?void 0:t.setLocale(f(f(e.locale||"en"))).toLocaleString(A.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled,SUSPECTED_FRAUD:e.pendingReview},s=e.getTaxPendingReasons(e.reward,e.taxConnection);return[...s?[s]:[],...e.reward.pendingReasons.map((e=>{var t;return null!==(t=a[e])&&void 0!==t?t:e}))].join(", ")}(this):null,d="PENDING_REVIEW"===a?this.pendingReviewText:"DENIED"===a?this.deniedText:null,c=(()=>{switch(a){case"AVAILABLE":return B.classes.SuccessBadge;case"REDEEMED":case"PAYOUT_APPROVED":return B.classes.RedeemBadge;case"PENDING":case"PENDING_REVIEW":return B.classes.WarningBadge;default:return B.classes.DangerBadge}})();return e("div",{style:{display:"contents"}},e("style",{type:"text/css"},$),e("sl-badge",{type:l,pill:!0,class:c},r),e("p",{class:B.classes.Date},d||o||this.getPayoutStatusText(a)||n))}},j=class{constructor(e){t(this,e),this.columnTitle="Status",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_CANCELLED {Payout Cancelled} PAYOUT_FAILED {Payout Failed} EXPIRED {Expired} REDEEMED {Redeemed} DENIED {Denied} other {Not available} }",this.expiryText="Expires on ",this.pendingUsTax="W-9 required",this.pendingScheduled="Until",this.pendingUnhandled="Fulfillment error",this.pendingReviewText="Awaiting review",this.deniedText="Detected self-referral",this.pendingTaxReview="Awaiting tax form review.",this.pendingNewTaxForm="Invalid tax form. Submit a new form to receive your rewards.",this.pendingTaxSubmission="Submit your tax documents to receive your rewards.",this.pendingPartnerCreation="Complete your tax and cash payout setup to receive your rewards.",this.payoutFailed="Payout failed due to a fulfillment issue and is current being retried.",this.payoutCancelled="If you think this is a mistake, contact our Support team.",this.payoutApproved="Reward approved for payout and was scheduled for payment based on your settings.",n(this)}disconnectedCallback(){}async renderCell(t,a){return e("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:t,taxConnection:null==a?void 0:a.taxConnection,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,pendingReviewText:this.pendingReviewText,payoutFailed:this.payoutFailed,payoutApproved:this.payoutApproved,payoutCancelled:this.payoutCancelled,deniedText:this.deniedText,locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}render(){return x([this.columnTitle,this.statusText,this.expiryText,this.pendingReviewText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]),e(a,{style:{display:"none"}})}};export{P as sqm_rewards_table,q as sqm_rewards_table_date_cell,U as sqm_rewards_table_date_column,F as sqm_rewards_table_reward_cell,V as sqm_rewards_table_reward_column,M as sqm_rewards_table_source_cell,G as sqm_rewards_table_source_column,z as sqm_rewards_table_status_cell,j as sqm_rewards_table_status_column}
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n["throw"](e))}catch(e){a(e)}}function c(e){e.done?r(e.value):i(e.value).then(o,s)}c((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-4bd679a7.system.js","./p-15bfd7e2.system.js","./p-115dfc03.system.js","./p-a8645c1b.system.js","./p-57dd28bd.system.js"],(function(e){"use strict";var t,r,n,i,a,o,s,c,l,u,d,f,p,m,v,h,y,_;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.k;i=e.f;a=e.n},function(e){o=e.d;s=e.J;c=e.I;l=e.p;u=e.X;d=e.i},function(e){f=e.c},function(e){p=e.g},function(e){m=e.p},function(e){v=e.e},function(e){h=e.S;y=e.V;_=e.a}],execute:function(){var g=o.gql(__makeTemplateObject(["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"],["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"]));function b(){var e=this;var t=s();var r=c({namespace:h,initialValue:false}),a=r[0],o=r[1];var d=c({namespace:y,initialValue:t===null||t===void 0?void 0:t.email}),f=d[0],p=d[1];var m=l(_);var v=n(true),b=v[0],w=v[1];var S=u(g)[0];i((function(){var t=function(){return __awaiter(e,void 0,void 0,(function(){var e,t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,3,4]);return[4,S({})];case 1:n=a.sent();if(!n||n instanceof Error)throw new Error;if((e=n===null||n===void 0?void 0:n.viewer)===null||e===void 0?void 0:e.emailVerified)m(true);else if((r=(t=n===null||n===void 0?void 0:n.viewer)===null||t===void 0?void 0:t.managedIdentity)===null||r===void 0?void 0:r.emailVerified)m(true);return[3,4];case 2:i=a.sent();console.error("Could not fetch user information:",i);return[3,4];case 3:w(false);return[7];case 4:return[2]}}))}))};t()}),[]);var x=function(){m(true)};return{showCode:a,onVerification:x,loading:b}}var w=e("sqm_widget_verification",function(){function e(e){t(this,e);this.general_verifyEmailHeader="Verify your email";this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup";this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";this.emailStep_sendCodeErrorHeader="There was an error sending your code.";this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.";this.emailStep_emailLabel="Email";this.emailStep_sendCodeText="Send code";this.emailStep_emailValidationErrorText="Please enter a valid email";this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}";this.codeStep_resendCodeLabel="Resend code";this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}";this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.codeStep_verifyText="Verify";this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";this.stateController="{}";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getStepTextProps=function(e){var t=p(this);return v(t,e)};e.prototype.render=function(){var e=d()?S(this):b();if(e.loading)return r("sl-spinner",null);var t=this.getStepTextProps("general_");return r("div",null,r("h3",{style:{fontSize:"24px",margin:"0"}},t.verifyEmailHeader),r("p",{style:{color:"var(--sl-color-neutral-500)",fontSize:"var(--sl-font-size-medium)",margin:"0"}},t.verifyEmailDescription),e.showCode?r("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),v(e,"sqm-code-verification_"))):r("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),v(e,"sqm-email-verification_"))))};return e}());function S(e){var t=c({namespace:h,initialValue:false}),r=t[0],n=t[1];var i=c({namespace:y,initialValue:undefined}),a=i[0],o=i[1];var s=l(_);var u=m(e.stateController);var d=Object.keys(u).reduce((function(e,t){var r;return t==="sqm-widget-verification"?__assign(__assign({},e),u[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=u[t],r))}),{});var p=function(){s(true)};return f({showCode:r,onVerification:p,loading:false},d||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -0,0 +1,13 @@
1
+ import{r,h as e}from"./p-c7c11325.js";import{i as t}from"./p-3dd5ba75.js";import{n as a}from"./p-63e29387.js";import{d as o,H as n,J as s,w as i,i as l}from"./p-0ec54f97.js";import{c as d}from"./p-c1086930.js";import{L as p}from"./p-8caef004.js";const c=o.gql`
2
+ query ($type: String!, $filter: UserLeaderboardFilterInput) {
3
+ viewer {
4
+ ... on User {
5
+ leaderboardRank(type: $type, filter: $filter) {
6
+ rowNumber
7
+ rank
8
+ denseRank
9
+ }
10
+ }
11
+ }
12
+ }
13
+ `,u=class{constructor(e){r(this,e),this.rankText="You are currently in {rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th} } place!",a(this)}disconnectedCallback(){}render(){const r=l()?function(r){const e=t.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:1})||"1st";return d({data:{rank:e}},r.demoData||{},{arrayMerge:(r,e)=>e})}(this):function(r){var e,a,o,l;const d=n(),p=null!==(e=r.programId)&&void 0!==e?e:d,u=s(),f=p?{type:r.leaderboardType,filter:{programId_eq:p}}:{type:r.leaderboardType,filter:{}};r.interval&&(f.filter.interval=r.interval);const{data:m}=i(c,f,!(null==u?void 0:u.jwt));return{data:{rank:(null===(a=null==m?void 0:m.viewer)||void 0===a?void 0:a.leaderboardRank)?t.formatMessage({id:"rankText",defaultMessage:r.rankText},{rank:null===(l=null===(o=null==m?void 0:m.viewer)||void 0===o?void 0:o.leaderboardRank)||void 0===l?void 0:l[r.rankType]}):r.unrankedText||"unranked"}}}(this);return e(p,Object.assign({},r))}};u.style="p,.P{font-size:var(--sl-font-size-small);color:var(--sqm-text);margin-top:0px}p.Subtitle,.P.Subtitle{color:var(--sqm-text-subdued);margin:0px}";export{u as sqm_leaderboard_rank}
@@ -0,0 +1 @@
1
+ import{r as s}from"./p-c7c11325.js";import{n as t}from"./p-63e29387.js";import{b as o,j as a,i as r}from"./p-0ec54f97.js";const c=class{constructor(o){s(this,o),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){o(void 0),a.push({pathname:s,search:""})}(this)}};export{c as sqm_portal_logout}
@@ -1 +1 @@
1
- import{h as t}from"./p-f708da7b.js";import{c as a}from"./p-cef45012.js";import{A as r,a as s,H as e,b as n,E as o}from"./p-91521e9d.js";import{T as i}from"./p-eab1c9f3.js";const l=a({Wrapper:r,Column:s,HostBlock:e,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:{...n,gap:"var(--sl-spacing-medium)","& > *":{margin:"0 !important"}},ErrorStyle:o}),p=l.toString();function m(a){const{states:r,content:s,callbacks:e}=a;return t("div",{class:l.classes.Wrapper},t("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",p),t(i,{type:"h3"},s.pageLabel),t("sl-form",{class:l.classes.Column,"onSl-submit":e.handleEmailSubmit,novalidate:!0},r.error&&t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},a.states.error)),t("sl-input",{exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:s.emailLabel||"Email",required:!0,validationError:({value:t})=>t?t.includes("@")?void 0:s.invalidEmailErrorMessage:s.requiredFieldErrorMessage}),t("div",{class:l.classes.ButtonsContainer},t("sl-button",{submit:!0,exportparts:"base: primarybutton-base",type:"primary",style:{margin:"0"}},s.submitLabel||"Register"),t("sl-menu-divider",{style:{margin:"0"}}),s.googleButton,s.secondaryButton)))}export{m as B}
1
+ import{h as t}from"./p-c7c11325.js";import{c as a}from"./p-cef45012.js";import{A as r,a as s,H as e,b as n,E as o}from"./p-49b20dae.js";import{T as i}from"./p-204861a6.js";const l=a({Wrapper:r,Column:s,HostBlock:e,":host":{margin:"0 auto",width:"100%"},ButtonsContainer:{...n,gap:"var(--sl-spacing-medium)","& > *":{margin:"0 !important"}},ErrorStyle:o}),p=l.toString();function m(a){const{states:r,content:s,callbacks:e}=a;return t("div",{class:l.classes.Wrapper},t("style",{type:"text/css"},"\nsqm-portal-register {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\n:host{\n display: block;\n}\n\n:host([hidden]) {\n display: none;\n}\n",p),t(i,{type:"h3"},s.pageLabel),t("sl-form",{class:l.classes.Column,"onSl-submit":e.handleEmailSubmit,novalidate:!0},r.error&&t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},a.states.error)),t("sl-input",{exportparts:"label: input-label, base: input-base",type:"email",name:"/email",label:s.emailLabel||"Email",required:!0,validationError:({value:t})=>t?t.includes("@")?void 0:s.invalidEmailErrorMessage:s.requiredFieldErrorMessage}),t("div",{class:l.classes.ButtonsContainer},t("sl-button",{submit:!0,exportparts:"base: primarybutton-base",type:"primary",style:{margin:"0"}},s.submitLabel||"Register"),t("sl-menu-divider",{style:{margin:"0"}}),s.googleButton,s.secondaryButton)))}export{m as B}
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as s}from"./p-c7c11325.js";import{i as n}from"./p-3dd5ba75.js";import{n as a}from"./p-63e29387.js";import"./p-0ec54f97.js";import{g as i}from"./p-6951663b.js";import"./p-cef45012.js";import{P as r,a as o}from"./p-9580aac3.js";function l(e){const{emptyStateHeader:s,emptyStateImage:a,emptyStateText:i,supportText:r,missingFeature:o=""}=e;return t("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},t("img",{style:{height:"100px",margin:"auto"},src:a}),t("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},t("sqm-text",{slot:"label"},t("p",{part:"header-text"},s)),t("sqm-text",{slot:"content"},t("p",{part:"description-text"},n.formatMessage({id:"emptyStateText",defaultMessage:i},{supportText:t("a",{target:"_blank",href:`mailto:saasquatch-support@impact.com?subject=Next steps for ${o} feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the ${o} feature. Please let me know the next steps to access this feature, including any necessary plan upgrades.%0D%0A\n %0D%0A \n - Feature Interested In: ${o}%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you`},r)})))))}const m=class{constructor(t){e(this,t),this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}render(){return t(s,{slot:"empty"},t(l,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))}},h=class{constructor(t){e(this,t),this.ignored=!0,this.direction="column",this.gap="xxx-large",this.display="grid",this.maxWidth="100%",this.flexWrap="wrap",a(this)}disconnectedCallback(){}render(){return t(r,Object.assign({},i(this)),t("slot",null))}},p=class{constructor(t){e(this,t),this.ignored=!0,a(this)}disconnectedCallback(){}componentWillLoad(){}render(){return t("div",null,t("style",null,`\n sqm-text {\n display: block;\n color: ${this.textColor||"var(--sqm-text)"};\n }\n\n sqm-text h1 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xxx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h2 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-xx-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h3 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-x-large)"};\n font-weight: var(--sl-font-weight-semibold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text h4 {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-large)"};\n font-weight: var(--sl-font-weight-bold);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text p {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-medium)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n\n sqm-text sub {\n font-size: ${this.fontSize?`${this.fontSize}px`:"var(--sl-font-size-small)"};\n font-weight: var(--sl-font-weight-normal);\n color: ${this.textColor||"var(--sqm-text)"};\n margin: 0;\n }\n `),t("slot",null))}},c=class{constructor(t){e(this,t),this.textAlign="left",this.labelMargin="small",this.padding="none",a(this)}disconnectedCallback(){}render(){const e=t("slot",{name:"label"},this.label),s=t("slot",{name:"content"});return t(o,Object.assign({},{...i(this),label:e,content:s}))}};export{m as sqm_empty,h as sqm_portal_container,p as sqm_text,c as sqm_titled_section}
@@ -1 +1 @@
1
- System.register(["./p-48135f99.system.js","./p-6cd4f2b1.system.js"],(function(n){"use strict";var t,e,r;return{setters:[function(n){t=n.k;e=n.f},function(n){r=n.u}],execute:function(){n({a:u,b:i,i:s});function i(n){var i=t(window.innerWidth),u=i[0],s=i[1];var o=r((function(){return s(window.innerWidth)}),[]);e((function(){window.addEventListener("resize",o);return function(){return window.removeEventListener("resize",o)}}),[]);return u>n?false:true}function u(n){return CSS.supports("(color: "+n+")")}function s(n){return!n||Object.keys(n).length===0&&n.constructor===Object}}}}));
1
+ System.register(["./p-4f5329a2.system.js","./p-171310d9.system.js"],(function(n){"use strict";var t,e,r;return{setters:[function(n){t=n.k;e=n.f},function(n){r=n.u}],execute:function(){n({a:u,b:i,i:s});function i(n){var i=t(window.innerWidth),u=i[0],s=i[1];var o=r((function(){return s(window.innerWidth)}),[]);e((function(){window.addEventListener("resize",o);return function(){return window.removeEventListener("resize",o)}}),[]);return u>n?false:true}function u(n){return CSS.supports("(color: "+n+")")}function s(n){return!n||Object.keys(n).length===0&&n.constructor===Object}}}}));
@@ -0,0 +1 @@
1
+ import{r as e,h as t,g as a,c as r}from"./p-c7c11325.js";import{i as s}from"./p-3dd5ba75.js";import{n as l,j as i,u as n,f as o}from"./p-63e29387.js";import{i as d}from"./p-0ec54f97.js";import{c}from"./p-c1086930.js";import{l as u}from"./p-6951663b.js";import{c as E}from"./p-cef45012.js";import"./p-49b20dae.js";import{G as p}from"./p-f1dc581f.js";import{a as h,u as v}from"./p-f5fff87e.js";import{u as m}from"./p-976ee669.js";import{l as N}from"./p-08700497.js";import{g as P}from"./p-460155de.js";import{u as I,t as A}from"./p-49400aab.js";import{T as _}from"./p-204861a6.js";const f=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]],D=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"],g=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"],y=class{constructor(t){e(this,t),this.perPage=4,this.hideLabels=!1,this.prevLabel="Prev",this.moreLabel="Next",this.showReferrer=!1,this.hiddenColumns="0",this.smBreakpoint=599,this.mdBreakpoint=799,l(this)}disconnectedCallback(){}render(){const e=t(R,null),a=t(b,null),{states:r,data:s,callbacks:l,elements:u}=d()?function(e,t,a){const[r,s]=i(((e,t)=>({...e,...t})),{columns:[],rows:[],loading:!1,page:0}),l=v(),d=n((()=>{var t;return(null===(t=e.demoData)||void 0===t?void 0:t.mockData)||((e=4)=>({totalCount:6,count:e,referredByReferral:{dateConverted:null,dateReferralStarted:1643912659850,referrerUser:{firstName:"John",lastName:"Snow",rewards:[]}},data:[...Array(e)].map((()=>({id:"5cae6b0fcc540e209db45b53",referredUser:{id:"5cae6b0ce4b0d81c67b78e82",accountId:"SPX1MZBIPTFL3E1H",firstName:D[Math.floor(Math.random()*D.length)],lastName:g[Math.floor(Math.random()*g.length)],email:"example.uexwltgh@mailosaur.io",programGoals:[]},shareLinkUsed:null,referralCodeUsed:"JIMBONEUTRON2",moderationStatus:"PENDING",dateConverted:Math.floor(10*Math.random())>=5?N.DateTime.now().minus({days:6}).toMillis():null,dateFraudChecksCompleted:null,dateModerated:1558730033306,dateModified:1554934543447,dateReferralEnded:null,dateReferralPaid:null,dateReferralStarted:N.DateTime.now().minus({days:8}).toMillis(),dateUserModified:null,programId:"sam-partner-test-2",program:{id:"sam-partner-test-2",name:"Partner Program 2.0"},rewards:Math.floor(10*Math.random())>=5?[{id:"5cae6b16cc540e209db45cfa",type:"CREDIT",value:1,unit:"POINT",name:"Partner Reward",dateGiven:1554934550726,dateExpires:null,dateCancelled:null,dateRedeemed:1637004373582,dateScheduledFor:null,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:"1 Point",statuses:f[Math.floor(Math.random()*f.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:{...P()},rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:f[Math.floor(Math.random()*f.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:f[Math.floor(Math.random()*f.length)],type:"CREDIT",value:1},depth:1}]}})))}))(e.perPage)}),[e.perPage]),u=m();return o((()=>{s({loading:!0}),(null==d?void 0:d.data)&&async function(t){var a;let r;const l=null==d?void 0:d.referredByReferral,i=e.showReferrer&&!!(null===(a=null==d?void 0:d.referredByReferral)||void 0===a?void 0:a.dateReferralStarted);r=d.data.slice(0,i?e.perPage-1:e.perPage);const n=t.filter((e=>{var t,a;return"loading"!==e.slot&&"empty"!==e.slot&&"loading"!==(null===(t=null==e?void 0:e.firstElementChild)||void 0===t?void 0:t.getAttribute("slot"))&&"empty"!==(null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot"))})),o=null==n?void 0:n.map((async(e,t)=>{var a;const r=null===(a=null==e?void 0:e.firstElementChild)||void 0===a?void 0:a.getAttribute("slot");if("RAISINS-PLOP-TARGET"===e.tagName&&"loading"!==r&&"empty"!==r){e.setAttribute("slot","column-"+t),e.style.position="absolute";const a=e.firstElementChild.childNodes[1];return a.innerHTML="+",a.style.lineHeight="20px",A(e,(()=>e.renderLabel(t)))}return A(e,(()=>e.renderLabel()))}));let c;if(i){const e=null==n?void 0:n.map((async e=>A(e,(function(){return e.renderCell(l,e)}))));c=await Promise.all(e)}const u=null==r?void 0:r.map((async e=>{const t=null==n?void 0:n.map((async t=>A(t,(()=>t.renderCell(e,void 0)))));return await Promise.all(t)})),E=u&&[c,...await Promise.all(u)].filter((e=>e));s({rows:E});const p=o&&await Promise.all(o);s({columns:p,loading:!1,page:0})}(u)}),[null==d?void 0:d.data,u,l]),c({states:{hasPrev:!1,hasNext:!1,loading:!1,show:"rows"},callbacks:{prevPage:()=>console.log("Prev"),nextPage:()=>console.log("Next")},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:r.columns,rows:r.rows,emptyElement:t,loadingElement:a}},e.demoData||{},{arrayMerge:(e,t)=>t})}(this,e,a):I(this,e,a);return h([this.showReferrer,this.perPage]),t(p,{states:r,data:s,callbacks:l,elements:u})}};function R(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_referral2.png","empty-state-header":"View your referral details","empty-state-text":"Refer a friend to view the status of your referrals and rewards earned"}))}function b(){return t("slot",{name:"loading"},t(T,null),t(T,null),t(T,null),t(T,null))}function T(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}const x=class{constructor(t){e(this,t),this.ignored=!0,l(this)}disconnectedCallback(){}render(){return t("div",{innerHTML:this.innerTemplate})}},C=class{constructor(t){e(this,t),l(this)}disconnectedCallback(){}async renderCell(e){return t("sqm-referral-table-cell",{"inner-template":a(this).innerHTML})}async renderLabel(){return Promise.resolve(this.columnTitle)}render(){return h([this.columnTitle]),t(r,{style:{display:"none"}},t("slot",null))}},w=class{constructor(t){e(this,t),this.ignored=!0,this.locale="en",l(this)}disconnectedCallback(){}render(){var e;return this.date?null===(e=N.DateTime.fromMillis(this.date))||void 0===e?void 0:e.setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED):"-"}},L=class{constructor(t){e(this,t),this.columnTitle="Date converted",this.dateShown="dateConverted",l(this)}disconnectedCallback(){}async renderCell(e,a){return t("sqm-referral-table-date-cell",{date:e[this.dateShown],locale:null==a?void 0:a.locale})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-date-cell",{date:e[this.dateShown]})}render(){return h([this.dateShown,this.columnTitle]),t(r,{style:{display:"none"}})}},O=class{constructor(t){e(this,t),this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",this.locale="en"}render(){var e;s.locale=this.locale;const a=E({"@keyframes slideRight":{from:{opacity:0},to:{opacity:1}},DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"max-width":"500px","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:this.hideDetails?"default":"pointer"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{border:"var(--sqm-border-thickness) solid var(--sqm-border-color)",opacity:"1"},"&::part(summary-icon)":{display:this.hideDetails?"none":"flex"},"&::part(summary-icon[open])":{transform:"rotate(-90deg)"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},RedeemBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}}),r=a.toString(),l=e=>{switch(e){case"primary":return a.classes.RedeemBadge;case"danger":return a.classes.DangerBadge;case"success":return a.classes.SuccessBadge;case"warning":case"info":default:return a.classes.WarningBadge}},i=e=>N.DateTime.fromMillis(e).setLocale(u(this.locale)).toRelative().replace("in","").trim();return null===(e=this.rewards)||void 0===e?void 0:e.map((e=>{var n,o;const d=((e,t)=>{var a,r,s,l,i,n,o,d,c,u,E,p;if("APPROVED"!==(null===(r=null===(a=e.referral)||void 0===a?void 0:a.fraudData)||void 0===r?void 0:r.moderationStatus)){if("PENDING"===(null===(l=null===(s=e.referral)||void 0===s?void 0:s.fraudData)||void 0===l?void 0:l.moderationStatus))return"PENDING_REVIEW";if("DENIED"===(null===(n=null===(i=e.referral)||void 0===i?void 0:i.fraudData)||void 0===n?void 0:n.moderationStatus))return"DENIED"}const h=null===(o=e.partnerFundsTransfer)||void 0===o?void 0:o.status;if("NOT_YET_DUE"===h||"TRANSFERRED"===h)return"PAYOUT_APPROVED";if("OVERDUE"===h)return"PAYOUT_FAILED";if("REVERSED"===h)return"PAYOUT_CANCELLED";if(null===(d=null==e?void 0:e.pendingReasons)||void 0===d?void 0:d.includes("US_TAX")){if(!(null==t?void 0:t.taxHandlingEnabled))return"PENDING";if(!(null==t?void 0:t.connected))return"PENDING_PARTNER_CREATION";if(null===(c=null==t?void 0:t.publisher)||void 0===c?void 0:c.requiredTaxDocumentType){if(!(null===(u=null==t?void 0:t.publisher)||void 0===u?void 0:u.currentTaxDocument))return"PENDING_TAX_SUBMISSION";const e=t.publisher.currentTaxDocument.status;if("INACTIVE"===e)return"PENDING_NEW_TAX_FORM";if("NOT_VERIFIED"===e)return"PENDING_TAX_REVIEW"}if(!(null===(E=null==t?void 0:t.publisher)||void 0===E?void 0:E.withdrawalSettings))return"PENDING_PARTNER_CREATION"}return(null===(p=null==e?void 0:e.pendingReasons)||void 0===p?void 0:p.includes("MISSING_PAYOUT_CONFIGURATION"))?"PENDING_PARTNER_CREATION":1===e.statuses.length?e.statuses[0]:["REDEEMED","CANCELLED","EXPIRED","PENDING","AVAILABLE","PENDING_REVIEW","DENIED","PAYOUT_APPROVED","PAYOUT_CANCELLED","PAYOUT_FAILED","PENDING_TAX_REVIEW","PENDING_NEW_TAX_FORM","PENDING_TAX_SUBMISSION","PENDING_PARTNER_CREATION"].find((t=>e.statuses.includes(t)&&t))})(e,this.taxConnection),c=(e=>{switch(e){case"REDEEMED":case"PAYOUT_APPROVED":return"primary";case"DENIED":case"EXPIRED":case"CANCELLED":case"PAYOUT_FAILED":case"PAYOUT_CANCELLED":return"danger";case"PENDING":case"PENDING_REVIEW":case"PENDING_TAX_REVIEW":case"PENDING_NEW_TAX_FORM":case"PENDING_TAX_SUBMISSION":case"PENDING_PARTNER_CREATION":return"warning";case"AVAILABLE":return"success"}})(d),E=s.formatMessage({id:"statusShortMessage",defaultMessage:this.statusText},{status:d}),p=s.formatMessage({id:"statusLongMessage",defaultMessage:this.statusLongText},{status:d});return t("sl-details",{class:a.classes.Details,disabled:this.hideDetails},t("style",{type:"text/css"},r),t("div",{slot:"summary",class:a.classes.DetailsContainer},t(_,{type:"p"},t("span",{part:"sqm-cell-value",class:a.classes.BoldText},e.prettyValue)),t("div",{class:a.classes.BadgeContainer},t("sl-badge",{class:l(c),type:c,pill:!0},"PENDING"===d&&e.dateScheduledFor?s.formatMessage({id:"pendingForText",defaultMessage:this.pendingForText},{status:E,date:i(e.dateScheduledFor)}):E),e.dateExpires&&"AVAILABLE"===d&&t("sl-badge",{class:l(c),type:"info",pill:!0},this.expiringText,` ${i(e.dateExpires)}`))),t("div",null,"PENDING_REVIEW"===d&&(null===(n=e.referral)||void 0===n?void 0:n.dateModerated)&&t("div",null,t(_,{type:"p"},p," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.referral.dateModerated).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED)))),"PAYOUT_APPROVED"===d&&t("div",null,t(_,{type:"p"},p)),"PAYOUT_FAILED"===d&&t("div",null,t(_,{type:"p"},p)),"PAYOUT_CANCELLED"===d&&t("div",null,t(_,{type:"p"},p)),"PENDING_TAX_REVIEW"===d&&t("div",null,t(_,{type:"p"},p)),"PENDING_NEW_TAX_FORM"===d&&t("div",null,t(_,{type:"p"},p)),"PENDING_TAX_SUBMISSION"===d&&t("div",null,t(_,{type:"p"},p)),"PENDING_PARTNER_CREATION"===d&&t("div",null,t(_,{type:"p"},p)),"DENIED"===d&&(null===(o=e.referral)||void 0===o?void 0:o.dateModerated)&&t("div",null,t(_,{type:"p"},p," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.referral.dateModerated).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED)),".",this.deniedHelpText?` ${this.deniedHelpText}`:"")),e.dateGiven&&t("div",null,t(_,{type:"p"},this.rewardReceivedText," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.dateGiven).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED)))),"EXPIRED"===d&&e.dateExpires&&t("div",null,t(_,{type:"p"},p," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.dateExpires).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED)))),"CANCELLED"===d&&e.dateCancelled&&t("div",null,t(_,{type:"p"},p," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.dateCancelled).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED)))),"PENDING"===d&&e.dateScheduledFor&&t("div",null,t(_,{type:"p"},p," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.dateScheduledFor).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED))))," ","AVAILABLE"===d&&e.dateExpires&&t("div",null,t(_,{type:"p"},p," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},N.DateTime.fromMillis(e.dateExpires).setLocale(u(this.locale)).toLocaleString(N.DateTime.DATE_MED)))),e.fuelTankCode&&t("div",null,this.fuelTankText," ",t("span",{class:a.classes.BoldText,part:"sqm-cell-value"},e.fuelTankCode))))}))}},S=class{constructor(t){e(this,t),this.columnTitle="Rewards",this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} PENDING_REVIEW {Pending} PAYOUT_APPROVED {Payout Approved} PAYOUT_FAILED {Payout Failed} PAYOUT_CANCELLED {Payout Cancelled} PENDING_TAX_REVIEW {Pending} PENDING_NEW_TAX_FORM {Pending} PENDING_TAX_SUBMISSION {Pending} PENDING_PARTNER_CREATION {Pending} DENIED {Denied} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }",this.statusLongText="{status, select, AVAILABLE {Reward expiring on} CANCELLED {Reward cancelled on} PENDING {Available on} PENDING_REVIEW {Pending since} PAYOUT_APPROVED {Reward approved for payout and was scheduled for payment based on your settings.} PAYOUT_FAILED {Payout failed due to a fulfillment issue and is currently being retried.} PAYOUT_CANCELLED {If you think this is a mistake, contact our Support team.} PENDING_TAX_REVIEW {Awaiting tax form review} PENDING_NEW_TAX_FORM {Invalid tax form. Submit a new form to receive your rewards.} PENDING_TAX_SUBMISSION {Submit your tax documents to receive your rewards} PENDING_PARTNER_CREATION {Complete your tax and cash payout setup to receive your rewards} DENIED {Denied on} EXPIRED {Reward expired on} other {Not available} }",this.fuelTankText="Your code is",this.rewardReceivedText="Reward received on",this.expiringText="Expiring in",this.pendingForText="{status} for {date}",this.deniedHelpText="Contact support if you think this is a mistake.",this.hideDetails=!1,l(this)}disconnectedCallback(){}async renderCell(e,a){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,taxConnection:null==a?void 0:a.taxConnection,statusText:this.statusText,statusLongText:this.statusLongText,fuelTankText:this.fuelTankText,rewardReceivedText:this.rewardReceivedText,expiringText:this.expiringText,pendingForText:this.pendingForText,hideDetails:this.hideDetails,deniedHelpText:this.deniedHelpText,locale:null==a?void 0:a.locale,exportparts:"sqm-cell-value"})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-rewards-cell",{rewards:e.rewards,exportparts:"sqm-cell-value"})}render(){return h([this.columnTitle,this.statusText,this.statusLongText,this.fuelTankText,this.rewardReceivedText,this.expiringText,this.pendingForText,this.hideDetails]),t(r,{style:{display:"none"}})}},G={SubText:{fontSize:"var(--sl-font-size-small)",color:"var(--sqm-text-subdued)",margin:"0"},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-informative-color-icon)",color:"var(--sl-color-white)"}},DangerBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-danger-color-icon)",color:"var(--sl-color-white)"}},WarningBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-warning-color-icon)",color:"var(--sl-color-white)"}},SuccessBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line",background:"var(--sqm-success-color-icon)",color:"var(--sl-color-white)"}}},M=(E(G).toString(),class{constructor(t){e(this,t)}render(){const e=E(G),a=e.toString(),r=e=>"PENDING"===e?"warning":"DENIED"===e?"danger":this.converted?"success":"warning";return t("div",null,t("style",{type:"text/css"},a),t("sl-badge",{pill:!0,type:r(this.fraudStatus),class:(t=>{switch(t){case"primary":return e.classes.RedeemBadge;case"danger":return e.classes.DangerBadge;case"success":return e.classes.SuccessBadge;case"warning":case"info":default:return e.classes.WarningBadge}})(r(this.fraudStatus))},this.statusText),this.statusSubText?t("p",{class:e.classes.SubText},this.statusSubText):null)}}),q=class{constructor(t){e(this,t),this.columnTitle="Status",this.convertedStatusText="Converted",this.inProgressStatusText="In Progress",this.pendingReviewStatusText="Pending",this.deniedStatusText="Denied",this.pendingReviewStatusSubText="Awaiting review",this.deniedStatusSubText="Detected self-referral",l(this)}disconnectedCallback(){}async renderCell(e){var a;let r,s;const l=null===(a=null==e?void 0:e.fraudData)||void 0===a?void 0:a.moderationStatus;return"DENIED"===l?(r=this.deniedStatusText,s=this.deniedStatusSubText):"PENDING"===l?(r=this.pendingReviewStatusText,s=this.pendingReviewStatusSubText):r=e.dateConverted?this.convertedStatusText:this.inProgressStatusText,t("sqm-referral-table-status-cell",{"status-text":r,"status-sub-text":s,"fraud-status":l,converted:!!e.dateConverted})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){return t("sqm-referral-table-status-cell",{"status-text":e.dateConverted?this.convertedStatusText:this.inProgressStatusText,converted:!!e.dateConverted})}render(){return h([this.columnTitle,this.convertedStatusText,this.inProgressStatusText]),t(r,{style:{display:"none"}})}},U=class{constructor(t){e(this,t)}render(){return this.name}},V=class{constructor(t){e(this,t),this.columnTitle="Customer",this.anonymousUser="Anonymous User",this.deletedUser="Deleted User",l(this)}disconnectedCallback(){}async renderCell(e){var a,r,s,l,i,n,o,d;let c;return c=(null==e?void 0:e.referredUser)||(null==e?void 0:e.referrerUser)?(null===(a=null==e?void 0:e.referredUser)||void 0===a?void 0:a.firstName)||(null===(r=null==e?void 0:e.referredUser)||void 0===r?void 0:r.lastName)||(null===(s=null==e?void 0:e.referrerUser)||void 0===s?void 0:s.firstName)||(null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.lastName)?(null==e?void 0:e.referrerUser)?`${null===(i=null==e?void 0:e.referrerUser)||void 0===i?void 0:i.firstName} ${null===(n=null==e?void 0:e.referrerUser)||void 0===n?void 0:n.lastName}`:`${null===(o=null==e?void 0:e.referredUser)||void 0===o?void 0:o.firstName} ${null===(d=null==e?void 0:e.referredUser)||void 0===d?void 0:d.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:c})}async renderLabel(){return this.columnTitle}async renderReferrerCell(e){var a,r,s,l;let i;return i=e?(null===(a=null==e?void 0:e.referrerUser)||void 0===a?void 0:a.firstName)||(null===(r=e.referrerUser)||void 0===r?void 0:r.lastName)?`${null===(s=null==e?void 0:e.referrerUser)||void 0===s?void 0:s.firstName} ${null===(l=null==e?void 0:e.referrerUser)||void 0===l?void 0:l.lastName}`:this.anonymousUser:this.deletedUser,t("sqm-referral-table-user-cell",{name:i})}render(){return h([this.deletedUser,this.anonymousUser,this.columnTitle]),t(r,{style:{display:"none"}})}};export{y as sqm_referral_table,x as sqm_referral_table_cell,C as sqm_referral_table_column,w as sqm_referral_table_date_cell,L as sqm_referral_table_date_column,O as sqm_referral_table_rewards_cell,S as sqm_referral_table_rewards_column,M as sqm_referral_table_status_cell,q as sqm_referral_table_status_column,U as sqm_referral_table_user_cell,V as sqm_referral_table_user_column}
@@ -1 +1 @@
1
- import{r as t,h as e}from"./p-f708da7b.js";import{k as s,n as i}from"./p-cd651f81.js";import{i as a,j as o}from"./p-94a876b9.js";import{j as r}from"./p-e7e129ac.js";import{c as n}from"./p-c1086930.js";import{c as l}from"./p-cef45012.js";import"./p-91521e9d.js";import"./p-eab1c9f3.js";import{a as m}from"./p-98698131.js";import{B as c}from"./p-69ac09d4.js";import{P as h}from"./p-dc52c36a.js";import"./p-121cdc60.js";import{u as d}from"./p-6d2f5a1d.js";class u extends Error{}function g(t){const[e,i]=s(null),[a,o]=m(),[n,l]=s({mode:"base"});return{showRegistrationForm:n,emailValidationError:e,handleGoogleInit:t=>{var e;if(null===(e=t.detail)||void 0===e?void 0:e.credential)try{const e=function(t,e){if("string"!=typeof t)throw new u("Invalid token specified: must be a string");e||(e={});const s=!0===e.header?0:1,i=t.split(".")[s];if("string"!=typeof i)throw new u(`Invalid token specified: missing part #${s+1}`);let a;try{a=function(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,((t,e)=>{let s=e.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s})))}(e)}catch(t){return atob(e)}}(i)}catch(t){throw new u(`Invalid token specified: invalid base64 for part #${s+1} (${t.message})`)}try{return JSON.parse(a)}catch(t){throw new u(`Invalid token specified: invalid json for part #${s+1} (${t.message})`)}}(t.detail.credential);o({...a,_googleOAuthIdToken:t.detail.credential,initialData:{email:e.email,firstName:e.given_name,lastName:e.family_name}}),l({mode:"google"})}catch(t){console.error("Failed to decode Google Sign In credential JWT:",t)}},handleEmailSubmit:async e=>{const s=e.target.getFormControls();let n={},m=null;s.forEach((e=>{if(e.name&&"/email"===e.name&&(r.set(n,e.name,e.value),e.required&&!e.value&&(m=t.requiredFieldErrorMessage),"function"==typeof e.validationError)){const t=(0,e.validationError)({control:e,key:"email",value:e.value});t&&(m=t)}})),m?i(m):(o({...a,initialData:{...null==a?void 0:a.initialData,...n}}),l({mode:"manual"}))}}}u.prototype.name="InvalidTokenError";const p=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",this.loginCTA="Already have an account?",this.requiredFieldErrorMessage="Cannot be empty",this.networkErrorMessage="Network request failed.",this.passwordMismatchErrorMessage="Passwords do not match.",this.invalidEmailErrorMessage="Must be a valid email address",this.formDisabledErrorMessage="The registration form is currently disabled.",this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",this.googleButtonText="signup_with",i(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i,refs:r}=a()?n({states:{error:"",loading:!1,confirmPassword:this.confirmPassword,hideInputs:this.hideInputs||!1,customPasswordField:!1,loginPath:"/login"},callbacks:{handleGoogleInit:()=>{},setShowRegistrationForm:()=>{},submit:async()=>{console.log("submit")},inputFunction:()=>{}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):d(this);const m=l({LoginButton:{"&::part(label)":{padding:"0"}}}),u=m.toString(),{handleGoogleInit:p,handleEmailSubmit:f,showRegistrationForm:b,emailValidationError:w}=a()?function(t){const[e,i]=s({mode:"base"});return n({emailValidationError:!0,handleEmailSubmit:()=>i({mode:"manual"}),showRegistrationForm:e,handleGoogleInit:()=>i({mode:"google"})},t.demoGoogleData||{},{arrayMerge:(t,e)=>e})}(this):g(this),E={formData:e("slot",{name:"formData"}),googleButton:e("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:p}),secondaryButton:e("slot",{name:"secondaryButton"},e("style",null,u),e("span",null,this.loginCTA," ",e("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:()=>o.push(t.loginPath),className:m.classes.LoginButton},this.loginLabel)," ")),terms:e("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,meetsRequirementsText:this.meetsRequirementsText,doesNotMeetRequirementsText:this.doesNotMeetRequirementsText,minErrorText:this.minErrorText,uppercaseErrorText:this.uppercaseErrorText,lowercaseErrorText:this.lowercaseErrorText,hasErrorText:this.hasErrorText};return"base"===b.mode?e(c,{states:{error:w},callbacks:{handleEmailSubmit:f},content:E}):e(h,{states:{...t,emailDisabled:!0,hidePasswords:"google"===b.mode},callbacks:i,content:{...E},refs:r})}};export{p as sqm_portal_google_registration_form}
1
+ import{r as t,h as e}from"./p-c7c11325.js";import{k as s,n as i}from"./p-63e29387.js";import{i as a,j as o}from"./p-0ec54f97.js";import{j as r}from"./p-e7e129ac.js";import{c as n}from"./p-c1086930.js";import{c as l}from"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{a as m}from"./p-125a894f.js";import{B as c}from"./p-ddf3c05e.js";import{P as h}from"./p-68043f30.js";import"./p-121cdc60.js";import{u as d}from"./p-97dc6863.js";class u extends Error{}function g(t){const[e,i]=s(null),[a,o]=m(),[n,l]=s({mode:"base"});return{showRegistrationForm:n,emailValidationError:e,handleGoogleInit:t=>{var e;if(null===(e=t.detail)||void 0===e?void 0:e.credential)try{const e=function(t,e){if("string"!=typeof t)throw new u("Invalid token specified: must be a string");e||(e={});const s=!0===e.header?0:1,i=t.split(".")[s];if("string"!=typeof i)throw new u(`Invalid token specified: missing part #${s+1}`);let a;try{a=function(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(t){return decodeURIComponent(atob(t).replace(/(.)/g,((t,e)=>{let s=e.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s})))}(e)}catch(t){return atob(e)}}(i)}catch(t){throw new u(`Invalid token specified: invalid base64 for part #${s+1} (${t.message})`)}try{return JSON.parse(a)}catch(t){throw new u(`Invalid token specified: invalid json for part #${s+1} (${t.message})`)}}(t.detail.credential);o({...a,_googleOAuthIdToken:t.detail.credential,initialData:{email:e.email,firstName:e.given_name,lastName:e.family_name}}),l({mode:"google"})}catch(t){console.error("Failed to decode Google Sign In credential JWT:",t)}},handleEmailSubmit:async e=>{const s=e.target.getFormControls();let n={},m=null;s.forEach((e=>{if(e.name&&"/email"===e.name&&(r.set(n,e.name,e.value),e.required&&!e.value&&(m=t.requiredFieldErrorMessage),"function"==typeof e.validationError)){const t=(0,e.validationError)({control:e,key:"email",value:e.value});t&&(m=t)}})),m?i(m):(o({...a,initialData:{...null==a?void 0:a.initialData,...n}}),l({mode:"manual"}))}}}u.prototype.name="InvalidTokenError";const p=class{constructor(e){t(this,e),this.ignored=!0,this.nextPage="/",this.redirectPath="/verifyEmail",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Register",this.loginLabel="Sign in",this.confirmPasswordLabel="Confirm Password",this.confirmPassword=!1,this.disablePasswordValidation=!1,this.hideInputs=!1,this.pageLabel="Register",this.loginPath="/login",this.loginCTA="Already have an account?",this.requiredFieldErrorMessage="Cannot be empty",this.networkErrorMessage="Network request failed.",this.passwordMismatchErrorMessage="Passwords do not match.",this.invalidEmailErrorMessage="Must be a valid email address",this.formDisabledErrorMessage="The registration form is currently disabled.",this.meetsRequirementsText="Password has met all requirements",this.doesNotMeetRequirementsText="Password must meet the following requirements:",this.minErrorText="be a minimum of 8 characters",this.uppercaseErrorText="contain at least 1 uppercase character",this.lowercaseErrorText="contain at least 1 lowercase character",this.hasErrorText="contain at least 1 number or symbol",this.googleButtonText="signup_with",i(this)}disconnectedCallback(){}render(){const{states:t,callbacks:i,refs:r}=a()?n({states:{error:"",loading:!1,confirmPassword:this.confirmPassword,hideInputs:this.hideInputs||!1,customPasswordField:!1,loginPath:"/login"},callbacks:{handleGoogleInit:()=>{},setShowRegistrationForm:()=>{},submit:async()=>{console.log("submit")},inputFunction:()=>{}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},this.demoData||{},{arrayMerge:(t,e)=>e}):d(this);const m=l({LoginButton:{"&::part(label)":{padding:"0"}}}),u=m.toString(),{handleGoogleInit:p,handleEmailSubmit:f,showRegistrationForm:b,emailValidationError:w}=a()?function(t){const[e,i]=s({mode:"base"});return n({emailValidationError:!0,handleEmailSubmit:()=>i({mode:"manual"}),showRegistrationForm:e,handleGoogleInit:()=>i({mode:"google"})},t.demoGoogleData||{},{arrayMerge:(t,e)=>e})}(this):g(this),E={formData:e("slot",{name:"formData"}),googleButton:e("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:p}),secondaryButton:e("slot",{name:"secondaryButton"},e("style",null,u),e("span",null,this.loginCTA," ",e("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:()=>o.push(t.loginPath),className:m.classes.LoginButton},this.loginLabel)," ")),terms:e("slot",{name:"terms"}),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel,confirmPasswordLabel:this.confirmPasswordLabel,networkErrorMessage:this.networkErrorMessage,passwordMismatchErrorMessage:this.passwordMismatchErrorMessage,invalidEmailErrorMessage:this.invalidEmailErrorMessage,formDisabledErrorMessage:this.formDisabledErrorMessage,requiredFieldErrorMessage:this.requiredFieldErrorMessage,meetsRequirementsText:this.meetsRequirementsText,doesNotMeetRequirementsText:this.doesNotMeetRequirementsText,minErrorText:this.minErrorText,uppercaseErrorText:this.uppercaseErrorText,lowercaseErrorText:this.lowercaseErrorText,hasErrorText:this.hasErrorText};return"base"===b.mode?e(c,{states:{error:w},callbacks:{handleEmailSubmit:f},content:E}):e(h,{states:{...t,emailDisabled:!0,hidePasswords:"google"===b.mode},callbacks:i,content:{...E},refs:r})}};export{p as sqm_portal_google_registration_form}
@@ -0,0 +1 @@
1
+ System.register(["./p-59b028db.system.js"],(function(n){"use strict";var e;return{setters:[function(n){e=n.h}],execute:function(){n("N",i);function i(n,i){var t="\n\n* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.container {\n background: var(--sqm-portal-background);\n}\n\n.menu-items {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n@keyframes slideIn {\n 0% {\n left: -350px;\n }\n 100% {\n left: 0;\n }\n}\n\n@media screen and (min-width: 800px) {\n :host {\n max-width: 300px;\n }\n .toggler,\n .hamburger {\n user-select: none;\n visibility:hidden;\n }\n .container{\n position: sticky;\n top: 0;\n }\n .menu-items {\n min-width: 290px;\n max-width: 320px;\n box-sizing: border-box;\n padding: 0px 15px;\n }\n .menu-items > :not(:last-child): {\n margin-bottom: 4px;\n }\n}\n@media screen and (max-width: 799px) {\n .toggler {\n border: 2px solid #eee;\n cursor: pointer;\n opacity: 0;\n z-index: 5;\n }\n\n .container {\n position: sticky;\n top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 60px;\n width: 60px;\n flex-direction: column;\n z-index: 100;\n }\n .menu-items {\n display: none;\n padding: 20px;\n border-right: var(--sqm-border-thickness) solid var(--sqm-border-color);\n padding-top: 60px;\n background: var(--sqm-portal-background); \n width: 100vw;\n height: 100vh;\n position: absolute;\n top: 0;\n right: 0;\n left: 0px;\n margin: 0;\n animation: slideIn 500ms ease-in-out;\n }\n\n .toggler,\n .hamburger {\n visibility: visible !important;\n }\n\n .container {\n display: flex;\n }\n\n .hamburger > .line {\n visibility: visible !important;\n }\n\n\n .toggler,\n .hamburger {\n position: absolute;\n padding: 20px 10px;\n }\n\n .toggler {\n z-index: 100;\n width: 100%;\n height: 100%;\n }\n\n .hamburger {\n z-index: 10;\n width: 75%;\n height: 100%;\n }\n\n .toggler:checked ~ .menu-items {\n display: block;\n }\n\n /***** Turn hamburger into an X *****/\n .toggler:checked ~ .hamburger > .line:nth-child(1) {\n opacity: 0;\n }\n\n .toggler:checked ~ .hamburger > .line:nth-child(2) {\n transform: rotate(45deg) translate(0px, -0.5px);\n }\n\n .toggler:checked ~ .hamburger > .line:nth-child(3) {\n transform: rotate(-45deg) translate(3px, -3.5px);\n }\n\n .toggler:checked ~ .hamburger > .line:nth-child(1),\n .toggler:checked ~ .hamburger > .line:nth-child(2),\n .toggler:checked ~ .hamburger > .line:nth-child(3) {\n width: 75%;\n border-bottom: 3px solid "+n.mobileMenuColor+";\n margin: 0;\n }\n\n .hamburger > .line {\n visibility:hidden;\n z-index: 2;\n height: 4px;\n width: 100%;\n margin-bottom: 3px;\n border-bottom: 5px solid "+n.mobileMenuColor+";\n }\n}\n";return e("div",{class:"container",part:"sqm-base"},e("style",null,t),e("input",Object.assign({type:"checkbox",class:"toggler"},n)),e("div",{class:"hamburger"},e("div",{class:"line"}),e("div",{class:"line"}),e("div",{class:"line"})),e("div",{class:"menu-items",part:"sqm-items-container"},i))}}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-57dd28bd.system.js"],(function(e){"use strict";var t,n,r,i,o,s,l,a,f,u,c;return{setters:[function(e){t=e.r;n=e.h;r=e.c},function(e){i=e.b;o=e.n;s=e.k;l=e.f},function(e){a=e.I;f=e.u;u=e.i},function(e){c=e.a}],execute:function(){var d=i("sq:widget-verification");function v(e){var t=e.parent,n=e.callback;var r=new MutationObserver(o);var i=new MutationObserver(n);r.observe(t,{childList:true,subtree:false});o({addedNodes:t.querySelectorAll("template")});function o(e){var t;(t=e.addedNodes)===null||t===void 0?void 0:t.forEach((function(e){i.observe(e.content,{childList:true,attributes:true,subtree:true})}))}return function(){r.disconnect();i.disconnect()}}var y=e("sqm_widget_verification_controller",function(){function e(e){t(this,e);this.stateController="{}";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e;var t=a({namespace:c,initialValue:false}),i=t[0],o=t[1];var y=JSON.parse(this.stateController);var p=u()&&((e=y["sqm-widget-verification-controller"])===null||e===void 0?void 0:e.isAuth);var h=s(undefined),m=h[0],b=h[1];var g=s(undefined),x=g[0],A=g[1];var L=f((function(){var e=p||i;var t=x.querySelectorAll("template");var n=Array.from(t).find((function(t){return t.slot===(e?"verified":"not-verified")}));if(n){var r=n.innerHTML||n.firstElementChild.outerHTML;if(r===m.innerHTML){d("don't rerender")}else if(n){m.innerHTML=r}}var o=Array.from(x.children).filter((function(e){return e.tagName==="RAISINS-PLOP-TARGET"}));if(o.length){var s=o.filter((function(e){return e.slot==="verified"}));var l=o.filter((function(e){return e.slot==="not-verified"}));l.forEach((function(t,n){if(e){t.style.display="none";return}if(n===l.length-1){t.style.bottom="0px";t.style.left="0px";t.style.right="0px";t.style.position="absolute"}t.style.height="25px"}));s.forEach((function(t,n){if(!e){t.style.display="none";return}if(n===s.length-1){t.style.bottom="0px";t.style.left="0px";t.style.right="0px";t.style.position="absolute"}t.style.height="25px"}))}}),[m,x,i,p]);l((function(){if(!m||!x){d("DOM not ready:");return}L();return v({parent:x,callback:L})}),[x,m,i,p]);return n(r,null,n("div",{ref:A,style:{display:"contents"}},n("slot",{name:"not-verified"}),n("slot",{name:"verified"})),n("div",{ref:b},n("slot",{name:"shown"})))};return e}())}}}));
@@ -1 +1 @@
1
- System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js"],(function(t){"use strict";var e,i,n,s;return{setters:[function(t){e=t.r;i=t.h;n=t.c},function(t){s=t.n}],execute:function(){var r=t("sqm_header_logo",function(){function t(t){e(this,t);this.nextPage="/";this.height=60;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return i(n,null,i("a",{href:this.nextPage,part:"sqm-link"},i("img",{style:{height:(this===null||this===void 0?void 0:this.height)+"px"},src:this===null||this===void 0?void 0:this.imageUrl})))};return t}())}}}));
1
+ System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js"],(function(t){"use strict";var e,i,n,s;return{setters:[function(t){e=t.r;i=t.h;n=t.c},function(t){s=t.n}],execute:function(){var r=t("sqm_header_logo",function(){function t(t){e(this,t);this.nextPage="/";this.height=60;s(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return i(n,null,i("a",{href:this.nextPage,part:"sqm-link"},i("img",{style:{height:(this===null||this===void 0?void 0:this.height)+"px"},src:this===null||this===void 0?void 0:this.imageUrl})))};return t}())}}}));
@@ -0,0 +1 @@
1
+ import{h as a}from"./p-c7c11325.js";import{c as t}from"./p-cef45012.js";import{g as l}from"./p-49b20dae.js";function o(o){const{states:e,data:r,callbacks:s,elements:i}=o,{columns:d,rows:n}=i,{show:p}=e,b=r.hiddenColumns&&r.hiddenColumns.split(",").map(Number),m={Table:{borderCollapse:"collapse",tableLayout:"fixed",width:"100%","& tbody tr":{borderBottom:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)","&:first-child":{borderTop:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)"}},"& th":{paddingBottom:"var(--sl-spacing-small)",textAlign:"left",fontWeight:"var(--sl-font-weight-semibold)",overflowWrap:"anywhere"},"& td":{padding:"var(--sl-spacing-small)",paddingLeft:"0",overflow:"hidden",textOverflow:"ellipsis"},["@media (max-width: "+r.mdBreakpoint+"px)"]:{"& thead":{display:"none"},"& tr":{display:"block",background:"inherit",border:"var(--sqm-border-thickness, 1px) solid var(--sqm-border-color)",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",borderRadius:"var(--sl-border-radius-large)",padding:"var(--sl-spacing-medium)",fontSize:"var(--sl-font-size-small)",marginBottom:"var(--sl-spacing-large)"},"& td":{display:"grid",borderTop:"none",padding:"0",marginBottom:"var(--sl-spacing-medium)","&:first-child":{textAlign:"left"},"&:before":{content:"attr(data-label)",whiteSpace:"nowrap"},"&:last-child":{marginBottom:"0"},"&.hidden:before":{content:"none"}}},[`@media (min-width: ${Boolean(n.length<2)?r.mdBreakpoint:r.smBreakpoint}px) and (max-width: ${r.mdBreakpoint}px)`]:{"& tbody":{display:"grid",gridTemplateColumns:"0.5fr 0.5fr",gap:"25px"}}},ButtonContainer:{display:"flex","justify-content":"flex-end","margin-top":"var(--sl-spacing-small)",...l({direction:"row",size:"var(--sl-spacing-small)"})},ButtonDisabled:{"&::part(base)":{opacity:"0.25"}}},c=t(m),g=c.toString();return"empty"===p?i.emptyElement:a("div",null,a("style",{type:"text/css"},g),a("table",{class:c.classes.Table},r.textOverrides.showLabels&&a("thead",null,a("tr",null,null==d?void 0:d.map((t=>a("th","string"==typeof t?null:{style:{width:"30px"}},t))))),a("tbody",null,"loading"===p&&i.loadingElement,"rows"===p&&(null==n?void 0:n.map(((t,l)=>a("tr",{style:{borderTop:r.textOverrides.showLabels||0!==l?"":"none"},part:"table-row"},t.map(((t,l)=>a("td","string"==typeof d[l]?{class:(null==b?void 0:b.includes(l))?"hidden":"","data-label":d[l]+":",style:{gridTemplateColumns:(null==b?void 0:b.includes(l))?"1fr":"0.5fr 0.5fr"}}:null,t))))))))),a("div",{class:c.classes.ButtonContainer,part:e.namespace+"-button-wrapper"},a("sl-button",{size:"small",disabled:!e.hasPrev,loading:"loading"===p,onClick:s.prevPage,exportparts:"base: secondarybutton-base",class:e.hasPrev?"":c.classes.ButtonDisabled},r.textOverrides.prevLabel),a("sl-button",{size:"small",loading:"loading"===p,disabled:!e.hasNext,onClick:s.nextPage,exportparts:"base: secondarybutton-base",class:e.hasNext?"":c.classes.ButtonDisabled},r.textOverrides.moreLabel)))}export{o as G}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,n,r,o){function t(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o["throw"](e))}catch(e){i(e)}}function s(e){e.done?r(e.value):t(e.value).then(a,l)}s((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,t,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(n){return s([e,n])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,t&&(i=a[0]&2?t["return"]:a[0]?t["throw"]||((i=t["return"])&&i.call(t),0):t.next)&&!(i=i.call(t,a[1])).done)return i;if(t=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;t=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1];i=a;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(a);break}if(i[2])r.ops.pop();r.trys.pop();continue}a=n.call(e,r)}catch(e){a=[6,e];t=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-b2295bc5.system.js","./p-6333265f.system.js"],(function(e){"use strict";var n,r,o,t,i,a;return{setters:[function(e){n=e.k},function(e){r=e.e;o=e.h;t=e.j},function(e){i=e.j},function(e){a=e.s}],execute:function(){e("u",l);function l(e){var l=this;var s,u,d,v,c,f,h,g,p,w,m,b,y,_;var x=r(),P=x[0],k=x[1],E=k.loading,j=k.errors,S=k.data;var M=o(),I=M[0],G=M[1],R=G.loading,T=G.errors;var U=n(""),W=U[0],A=U[1];var C=new URLSearchParams(t.location.search);var D=C.get("nextPage");var L=function(n){return __awaiter(l,void 0,void 0,(function(){var r,o,i,l,s,u;return __generator(this,(function(d){switch(d.label){case 0:if(!((r=n.detail)===null||r===void 0?void 0:r.credential))return[2];return[4,I({idToken:n.detail.credential})];case 1:s=d.sent();if(s instanceof Error){if((s===null||s===void 0?void 0:s.message)||((o=s===null||s===void 0?void 0:s["response"])===null||o===void 0?void 0:o["error"]))if((i=s===null||s===void 0?void 0:s["response"])===null||i===void 0?void 0:i["errors"].some((function(e){var n;return((n=e===null||e===void 0?void 0:e["extensions"])===null||n===void 0?void 0:n["message"])==="Invalid Credentials."}))){A(e.googleUserNotRegisteredError)}else{A(e.networkErrorMessage)}return[2]}if((l=s.authenticateManagedIdentityWithGoogle)===null||l===void 0?void 0:l.token){C.delete("nextPage");u=a(D||e.nextPage);t.push(u.href)}return[2]}}))}))};var N=function(n){return __awaiter(l,void 0,void 0,(function(){var r,o,l,s,u,d;return __generator(this,(function(v){switch(v.label){case 0:A("");l=n.detail.formData;l===null||l===void 0?void 0:l.forEach((function(e,n){i.set(l,n,e)}));s={email:l.email,password:l.password};return[4,P(s)];case 1:u=v.sent();if(u instanceof Error){if((u===null||u===void 0?void 0:u.message)||((r=u===null||u===void 0?void 0:u["response"])===null||r===void 0?void 0:r["error"]))A(e.networkErrorMessage);return[2]}if((o=u.authenticateManagedIdentityWithEmailAndPassword)===null||o===void 0?void 0:o.token){C.delete("nextPage");d=a(D||e.nextPage);t.push(d.href)}return[2]}}))}))};var q=((v=(d=(u=(s=j===null||j===void 0?void 0:j.response)===null||s===void 0?void 0:s.errors)===null||u===void 0?void 0:u[0])===null||d===void 0?void 0:d.extensions)===null||v===void 0?void 0:v.message)||((h=(f=(c=j===null||j===void 0?void 0:j.response)===null||c===void 0?void 0:c.errors)===null||f===void 0?void 0:f[0])===null||h===void 0?void 0:h.message)||W;var z=((m=(w=(p=(g=T===null||T===void 0?void 0:T.response)===null||g===void 0?void 0:g.errors)===null||p===void 0?void 0:p[0])===null||w===void 0?void 0:w.extensions)===null||m===void 0?void 0:m.message)||((_=(y=(b=T===null||T===void 0?void 0:T.response)===null||b===void 0?void 0:b.errors)===null||y===void 0?void 0:y[0])===null||_===void 0?void 0:_.message)||W;return{states:{loading:E||R,error:q||z,registerPath:e.registerPath,forgotPasswordPath:e.forgotPasswordPath},callbacks:{googleSubmit:L,submit:N}}}}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,n,r,o){function t(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o["throw"](e))}catch(e){i(e)}}function s(e){e.done?r(e.value):t(e.value).then(a,l)}s((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,t,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(n){return s([e,n])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,t&&(i=a[0]&2?t["return"]:a[0]?t["throw"]||((i=t["return"])&&i.call(t),0):t.next)&&!(i=i.call(t,a[1])).done)return i;if(t=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;t=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){r.label=a[1];break}if(a[0]===6&&r.label<i[1]){r.label=i[1];i=a;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(a);break}if(i[2])r.ops.pop();r.trys.pop();continue}a=n.call(e,r)}catch(e){a=[6,e];t=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-4f5329a2.system.js","./p-171310d9.system.js","./p-b2295bc5.system.js","./p-15bfd7e2.system.js"],(function(e){"use strict";var n,r,o,t,i,a;return{setters:[function(e){n=e.k},function(e){r=e.c;o=e.h;t=e.j},function(e){i=e.j},function(e){a=e.s}],execute:function(){e("u",l);function l(e){var l=this;var s,u,d,v,c,f,h,g,p,w,m,b,y,_;var x=r(),P=x[0],k=x[1],E=k.loading,j=k.errors,S=k.data;var M=o(),I=M[0],G=M[1],R=G.loading,T=G.errors;var U=n(""),W=U[0],A=U[1];var C=new URLSearchParams(t.location.search);var D=C.get("nextPage");var L=function(n){return __awaiter(l,void 0,void 0,(function(){var r,o,i,l,s,u;return __generator(this,(function(d){switch(d.label){case 0:if(!((r=n.detail)===null||r===void 0?void 0:r.credential))return[2];return[4,I({idToken:n.detail.credential})];case 1:s=d.sent();if(s instanceof Error){if((s===null||s===void 0?void 0:s.message)||((o=s===null||s===void 0?void 0:s["response"])===null||o===void 0?void 0:o["error"]))if((i=s===null||s===void 0?void 0:s["response"])===null||i===void 0?void 0:i["errors"].some((function(e){var n;return((n=e===null||e===void 0?void 0:e["extensions"])===null||n===void 0?void 0:n["message"])==="Invalid Credentials."}))){A(e.googleUserNotRegisteredError)}else{A(e.networkErrorMessage)}return[2]}if((l=s.authenticateManagedIdentityWithGoogle)===null||l===void 0?void 0:l.token){C.delete("nextPage");u=a(D||e.nextPage);t.push(u.href)}return[2]}}))}))};var N=function(n){return __awaiter(l,void 0,void 0,(function(){var r,o,l,s,u,d;return __generator(this,(function(v){switch(v.label){case 0:A("");l=n.detail.formData;l===null||l===void 0?void 0:l.forEach((function(e,n){i.set(l,n,e)}));s={email:l.email,password:l.password};return[4,P(s)];case 1:u=v.sent();if(u instanceof Error){if((u===null||u===void 0?void 0:u.message)||((r=u===null||u===void 0?void 0:u["response"])===null||r===void 0?void 0:r["error"]))A(e.networkErrorMessage);return[2]}if((o=u.authenticateManagedIdentityWithEmailAndPassword)===null||o===void 0?void 0:o.token){C.delete("nextPage");d=a(D||e.nextPage);t.push(d.href)}return[2]}}))}))};var q=((v=(d=(u=(s=j===null||j===void 0?void 0:j.response)===null||s===void 0?void 0:s.errors)===null||u===void 0?void 0:u[0])===null||d===void 0?void 0:d.extensions)===null||v===void 0?void 0:v.message)||((h=(f=(c=j===null||j===void 0?void 0:j.response)===null||c===void 0?void 0:c.errors)===null||f===void 0?void 0:f[0])===null||h===void 0?void 0:h.message)||W;var z=((m=(w=(p=(g=T===null||T===void 0?void 0:T.response)===null||g===void 0?void 0:g.errors)===null||p===void 0?void 0:p[0])===null||w===void 0?void 0:w.extensions)===null||m===void 0?void 0:m.message)||((_=(y=(b=T===null||T===void 0?void 0:T.response)===null||b===void 0?void 0:b.errors)===null||y===void 0?void 0:y[0])===null||_===void 0?void 0:_.message)||W;return{states:{loading:E||R,error:q||z,registerPath:e.registerPath,forgotPasswordPath:e.forgotPasswordPath},callbacks:{googleSubmit:L,submit:N}}}}}}));
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,n){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:n})}else{e.raw=n}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var a in n)if(Object.prototype.hasOwnProperty.call(n,a))e[a]=n[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,n,t,r){function a(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?t(e.value):a(e.value).then(i,s)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(n){return c([e,n])}}function c(i){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,a&&(o=i[0]&2?a["return"]:i[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,i[1])).done)return o;if(a=0,o)i=[i[0]&2,o.value];switch(i[0]){case 0:case 1:o=i;break;case 4:t.label++;return{value:i[1],done:false};case 5:t.label++;a=i[1];i=[0];continue;case 7:i=t.ops.pop();t.trys.pop();continue;default:if(!(o=t.trys,o=o.length>0&&o[o.length-1])&&(i[0]===6||i[0]===2)){t=0;continue}if(i[0]===3&&(!o||i[1]>o[0]&&i[1]<o[3])){t.label=i[1];break}if(i[0]===6&&t.label<o[1]){t.label=o[1];o=i;break}if(o&&t.label<o[2]){t.label=o[2];t.ops.push(i);break}if(o[2])t.ops.pop();t.trys.pop();continue}i=n.call(e,t)}catch(e){i=[6,e];a=0}finally{r=o=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-4bd679a7.system.js","./p-15bfd7e2.system.js","./p-1a673057.system.js","./p-17a0f310.system.js","./p-40c01a5a.system.js"],(function(e){"use strict";var n,t,r,a,o,i,s,c,u,d,l,f,v,h,g,m,p;return{setters:[function(e){n=e.r;t=e.h},function(e){r=e.k;a=e.f;o=e.n},function(e){i=e.d;s=e.H;c=e.J;u=e.B;d=e.F;l=e.w;f=e.$;v=e.i},function(e){h=e.c},function(e){g=e.g},function(){},function(e){m=e.a},function(e){p=e.Q}],execute:function(){var _=i.gql(__makeTemplateObject(["\n query shareLink($programId: ID, $engagementMedium: UserEngagementMedium!) {\n user: viewer {\n ... on User {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n )\n }\n }\n }\n"],["\n query shareLink($programId: ID, $engagementMedium: UserEngagementMedium!) {\n user: viewer {\n ... on User {\n shareLink(\n programId: $programId\n engagementMedium: $engagementMedium\n shareMedium: DIRECT\n )\n }\n }\n }\n"]));var b=i.gql(__makeTemplateObject(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"],["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"]));function w(e){var n=this;var t;var o=s();var i=c();var v=u();var h=d(m);var g=r(null),p=g[0],w=g[1];var y=r(false),C=y[0],T=y[1];var k=r(false),E=k[0],M=k[1];var R=l(_,{programId:o,engagementMedium:v},!(i===null||i===void 0?void 0:i.jwt)||(h===null||h===void 0?void 0:h.shareLink)!==undefined),j=R.data,x=R.errors,q=R.loading;var I=f(b)[0];var L=(t=j===null||j===void 0?void 0:j.user)===null||t===void 0?void 0:t.shareLink;var O=L+"?qrCode";var U=q||E;a((function(){if(!L)return;var e=function(){return __awaiter(n,void 0,void 0,(function(){var e,n,t,r;return __generator(this,(function(a){switch(a.label){case 0:M(true);a.label=1;case 1:a.trys.push([1,4,5,6]);return[4,fetch(L+"?qrCode&qrCodeImageFormat=svg&qrCodeQuietZoneSize=0")];case 2:e=a.sent();return[4,e.blob()];case 3:n=a.sent();t=URL.createObjectURL(n);w(t);return[3,6];case 4:r=a.sent();T(true);return[3,6];case 5:M(false);return[7];case 6:return[2]}}))}))};e()}),[L]);var D=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){I({eventMeta:{programId:o,id:i===null||i===void 0?void 0:i.id,accountId:i===null||i===void 0?void 0:i.accountId,type:"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",meta:{engagementMedium:v,shareMedium:"DIRECT"}}});return[2]}))}))};var $=function(){return __awaiter(n,void 0,void 0,(function(){var e,n,t,r,a;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,3,,4]);return[4,fetch(O+"&qrCodeSize=800&qrCodeImageFormat=png")];case 1:e=o.sent();return[4,e.blob()];case 2:n=o.sent();t=URL.createObjectURL(n);if(n)D();r=document.createElement("a");r.href=t;r.download="qrCode.png";document.body.appendChild(r);r.click();document.body.removeChild(r);return[3,4];case 3:a=o.sent();console.error("Failed to fetch QR code:",a);T(true);return[3,4];case 4:return[2]}}))}))};var P=function(){return __awaiter(n,void 0,void 0,(function(){var e,n,t,r,a,o;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,3,,4]);return[4,fetch(O+"&qrCodeSize=1000&qrCodeImageFormat=png&qrCodeErrorCorrectionLevel=H")];case 1:e=i.sent();return[4,e.blob()];case 2:n=i.sent();t=URL.createObjectURL(n);if(n)D();r=window.open("about:blank","_new");a=r.document.createElement("img");a.src=t;a.onload=function(){r.print();r.close()};r.document.body.appendChild(a);return[3,4];case 3:o=i.sent();console.error("Failed to fetch QR code: ",o);T(true);return[3,4];case 4:return[2]}}))}))};return __assign(__assign({},e),{loading:U,qrLink:p,error:C,createDownloadable:$,createPrintable:P})}var y=e("sqm_qr_code",function(){function e(e){n(this,e);this.titleText="Share your QR code";this.viewCodeText="View QR code";this.downloadCodeText="Download";this.printCodeText="Print";this.errorHeaderText="There was an error loading your QR code";this.errorDescriptionText="Please refresh this page and try again";this.hideTitle=false;this.alignment="center";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=g(this);var n=v()?C(e):w(e);return t(p,Object.assign({},n))};return e}());function C(e){var n=this;var t=r(false),a=t[0],o=t[1];return h({dialogIsOpen:a,hideTitle:e.hideTitle,showDialog:function(){return o(true)},hideDialog:function(){return o(false)},titleText:e.titleText,viewCodeText:e.viewCodeText,downloadCodeText:e.downloadCodeText,printCodeText:e.printCodeText,alignment:e.alignment,qrLink:"https://media.istockphoto.com/id/1251071788/vector/qr-code-bar-code-black-icon-digital-technology.jpg?s=612x612&w=0&k=20&c=maw4OqMSEegAdSo8Drm9HO7i1ddddvP2YaL1UuWbRig=",fireViewQrEvent:function(){console.log("View QR Code clicked")},createDownloadable:function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){console.log("Download QR Code clicked");return[2]}))}))},createPrintable:function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){console.log("Print QR Code clicked");return[2]}))}))}},e.demoData||{},{arrayMerge:function(e,n){return n}})}}}}));
@@ -1 +1 @@
1
- import{f as e}from"./p-cd651f81.js";import{_ as r,y as s}from"./p-94a876b9.js";function t(s){const t=r();e((()=>{t.dispatchEvent(new CustomEvent("sqm:request-rerender",{detail:!0,bubbles:!0,composed:!0}))}),s)}function n(){const t=r(),[n,o]=s();return e((()=>{const e=e=>{e.stopPropagation(),o()};return t.addEventListener("sqm:request-rerender",e),()=>{t.removeEventListener("sqm:request-rerender",e)}}),[]),n}export{t as a,n as u}
1
+ import{f as e}from"./p-63e29387.js";import{_ as r,y as s}from"./p-0ec54f97.js";function t(s){const t=r();e((()=>{t.dispatchEvent(new CustomEvent("sqm:request-rerender",{detail:!0,bubbles:!0,composed:!0}))}),s)}function n(){const t=r(),[n,o]=s();return e((()=>{const e=e=>{e.stopPropagation(),o()};return t.addEventListener("sqm:request-rerender",e),()=>{t.removeEventListener("sqm:request-rerender",e)}}),[]),n}export{t as a,n as u}
@@ -0,0 +1 @@
1
+ System.register(["./p-59b028db.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js"],(function(s){"use strict";var t,n,i;return{setters:[function(s){t=s.h},function(s){n=s.c},function(s){i=s.H}],execute:function(){s("C",r);var e={HostBlock:i,icon:{cursor:"pointer",position:"absolute",right:"var(--sl-spacing-medium)",top:"var(--sl-spacing-x-small)",zIndex:"100"}};var o=n(e);var c=o.toString();function r(s){var n=s.onClick;return t("div",null,t("style",{type:"text/css"},c),t("span",{class:o.classes.icon,onClick:n},t("svg",{width:"16",height:"16",viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("path",{d:"M56 5.64L50.36 0L28 22.36L5.64 0L0 5.64L22.36 28L0 50.36L5.64 56L28 33.64L50.36 56L56 50.36L33.64 28L56 5.64Z",fill:s.color||"black"}))))}}}}));
@@ -0,0 +1,16 @@
1
+ import{r as e,h as i}from"./p-c7c11325.js";import{k as r,f as o,n as t}from"./p-63e29387.js";import{d as a,J as s,I as n,p as c,X as l,i as d}from"./p-0ec54f97.js";import{c as m}from"./p-c1086930.js";import{g as u}from"./p-6951663b.js";import{p as f}from"./p-13f3a647.js";import{e as h}from"./p-26468242.js";import{S as p,V as y,a as v}from"./p-38c7775a.js";const g=a.gql`
2
+ query checkUserVerification {
3
+ viewer {
4
+ ... on User {
5
+ id
6
+ accountId
7
+ email
8
+ emailVerified
9
+ managedIdentity {
10
+ email
11
+ emailVerified
12
+ }
13
+ }
14
+ }
15
+ }
16
+ `,V=class{constructor(i){e(this,i),this.general_verifyEmailHeader="Verify your email",this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup",this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.",this.emailStep_sendCodeErrorHeader="There was an error sending your code.",this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.",this.emailStep_emailLabel="Email",this.emailStep_sendCodeText="Send code",this.emailStep_emailValidationErrorText="Please enter a valid email",this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}",this.codeStep_resendCodeLabel="Resend code",this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}",this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.",this.codeStep_verifyText="Verify",this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",this.stateController="{}",t(this)}disconnectedCallback(){}getStepTextProps(e){const i=u(this);return h(i,e)}render(){const e=d()?function(e){const[i,r]=n({namespace:p,initialValue:!1}),[o,t]=n({namespace:y,initialValue:void 0}),a=c(v),s=f(e.stateController),l=Object.keys(s).reduce(((e,i)=>"sqm-widget-verification"===i?{...e,...s[i]}:{...e,[`${i}_stateController`]:s[i]}),{});return m({showCode:i,onVerification:()=>{a(!0)},loading:!1},l||{},{arrayMerge:(e,i)=>i})}(this):function(){const e=s(),[i,t]=n({namespace:p,initialValue:!1}),[a,d]=n({namespace:y,initialValue:null==e?void 0:e.email}),m=c(v),[u,f]=r(!0),[h]=l(g);return o((()=>{(async()=>{var e,i,r;try{const o=await h({});if(!o||o instanceof Error)throw new Error;((null===(e=null==o?void 0:o.viewer)||void 0===e?void 0:e.emailVerified)||(null===(r=null===(i=null==o?void 0:o.viewer)||void 0===i?void 0:i.managedIdentity)||void 0===r?void 0:r.emailVerified))&&m(!0)}catch(e){console.error("Could not fetch user information:",e)}finally{f(!1)}})()}),[]),{showCode:i,onVerification:()=>{m(!0)},loading:u}}();if(e.loading)return i("sl-spinner",null);const t=this.getStepTextProps("general_");return i("div",null,i("h3",{style:{fontSize:"24px",margin:"0"}},t.verifyEmailHeader),i("p",{style:{color:"var(--sl-color-neutral-500)",fontSize:"var(--sl-font-size-medium)",margin:"0"}},t.verifyEmailDescription),e.showCode?i("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),h(e,"sqm-code-verification_"))):i("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),h(e,"sqm-email-verification_"))))}};export{V as sqm_widget_verification}
@@ -1 +1 @@
1
- import{r as e,h as i}from"./p-f708da7b.js";import{k as o,f as a,n as t}from"./p-cd651f81.js";import{J as s,o as r,j as n,b as l,i as d}from"./p-94a876b9.js";import{c}from"./p-c1086930.js";import{s as v,g as u}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-91521e9d.js";import"./p-eab1c9f3.js";import{P as f}from"./p-20245645.js";let m=null;const p=class{constructor(i){e(this,i),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.verifyEmailText="Verify your email",this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.",this.verifyInvalidText="The email verification code is invalid or has expired, please try again.",this.continueText="Continue",this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",t(this)}disconnectedCallback(){}render(){const{states:e,data:t,callbacks:p,content:h}=d()?(y=u(this),c({states:{error:"",loading:!1,success:!0},data:{oobCode:"code"},callbacks:{failed:()=>{console.log("failed")},gotoNextPage:()=>{}},content:{verifySuccessText:y.verifySuccessText,verifyEmailText:y.verifyEmailText,verifyInvalidText:y.verifyInvalidText,continueText:y.continueText}},y.demoData||{},{arrayMerge:(e,i)=>i})):function({nextPage:e,failedPage:i,verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,networkErrorMessage:u,continueText:f}){var p,h,y,g,x,b,T,j,P,k;const[C,E]=o(!1),[w,I]=o(!1),S=s(),[_,{loading:M,data:N,errors:q}]=r(),A=new URLSearchParams(n.location.search),L=A.get("oobCode"),R=A.get("email"),U=A.get("nextPage"),V=void 0===N&&void 0===q&&!!L,Y=!!((null===(p=null==S?void 0:S.managedIdentity)||void 0===p?void 0:p.emailVerified)||(null===(h=null==N?void 0:N.verifyManagedIdentityEmail)||void 0===h?void 0:h.success)||w),z=(null===(y=null==S?void 0:S.managedIdentity)||void 0===y?void 0:y.email)===R,B=()=>{A.delete("nextPage");const i=v(U||e);n.push(i.href)};return a((()=>{(async()=>{m||(m=_({oobCode:L}));const e=await m;e instanceof Error||!e.verifyManagedIdentityEmail.success||I(!0),E(!0)})()}),[]),a((()=>{C&&(Y&&z?setTimeout(B,3e3):setTimeout((()=>{l(void 0),B()}),3e3))}),[C,Y]),{states:{loading:M||!C,disableContinue:V,error:(null===(T=null===(b=null===(x=null===(g=null==q?void 0:q.response)||void 0===g?void 0:g.errors)||void 0===x?void 0:x[0])||void 0===b?void 0:b.extensions)||void 0===T?void 0:T.message)||(null===(k=null===(P=null===(j=null==q?void 0:q.response)||void 0===j?void 0:j.errors)||void 0===P?void 0:P[0])||void 0===k?void 0:k.message)||((null==q?void 0:q.message)||!z)&&u,success:C&&(Y||z)},data:{oobCode:L},callbacks:{failed:()=>n.push({pathname:i,search:A.toString()&&"?"+A.toString()}),gotoNextPage:B},content:{verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,continueText:f}}}(u(this));var y;return i(f,{states:e,data:t,callbacks:p,content:h})}};export{p as sqm_portal_verify_email}
1
+ import{r as e,h as i}from"./p-c7c11325.js";import{k as o,f as a,n as t}from"./p-63e29387.js";import{J as s,f as r,j as n,b as l,i as d}from"./p-0ec54f97.js";import{c}from"./p-c1086930.js";import{s as v,g as u}from"./p-6951663b.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as f}from"./p-3eba9036.js";let m=null;const p=class{constructor(i){e(this,i),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.verifyEmailText="Verify your email",this.verifySuccessText="Your email has been verified and you are being redirected. If you are not redirected, please click Continue.",this.verifyInvalidText="The email verification code is invalid or has expired, please try again.",this.continueText="Continue",this.networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",t(this)}disconnectedCallback(){}render(){const{states:e,data:t,callbacks:p,content:h}=d()?(y=u(this),c({states:{error:"",loading:!1,success:!0},data:{oobCode:"code"},callbacks:{failed:()=>{console.log("failed")},gotoNextPage:()=>{}},content:{verifySuccessText:y.verifySuccessText,verifyEmailText:y.verifyEmailText,verifyInvalidText:y.verifyInvalidText,continueText:y.continueText}},y.demoData||{},{arrayMerge:(e,i)=>i})):function({nextPage:e,failedPage:i,verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,networkErrorMessage:u,continueText:f}){var p,h,y,g,x,b,T,j,P,k;const[C,E]=o(!1),[w,I]=o(!1),S=s(),[_,{loading:M,data:N,errors:q}]=r(),A=new URLSearchParams(n.location.search),L=A.get("oobCode"),R=A.get("email"),U=A.get("nextPage"),V=void 0===N&&void 0===q&&!!L,Y=!!((null===(p=null==S?void 0:S.managedIdentity)||void 0===p?void 0:p.emailVerified)||(null===(h=null==N?void 0:N.verifyManagedIdentityEmail)||void 0===h?void 0:h.success)||w),z=(null===(y=null==S?void 0:S.managedIdentity)||void 0===y?void 0:y.email)===R,B=()=>{A.delete("nextPage");const i=v(U||e);n.push(i.href)};return a((()=>{(async()=>{m||(m=_({oobCode:L}));const e=await m;e instanceof Error||!e.verifyManagedIdentityEmail.success||I(!0),E(!0)})()}),[]),a((()=>{C&&(Y&&z?setTimeout(B,3e3):setTimeout((()=>{l(void 0),B()}),3e3))}),[C,Y]),{states:{loading:M||!C,disableContinue:V,error:(null===(T=null===(b=null===(x=null===(g=null==q?void 0:q.response)||void 0===g?void 0:g.errors)||void 0===x?void 0:x[0])||void 0===b?void 0:b.extensions)||void 0===T?void 0:T.message)||(null===(k=null===(P=null===(j=null==q?void 0:q.response)||void 0===j?void 0:j.errors)||void 0===P?void 0:P[0])||void 0===k?void 0:k.message)||((null==q?void 0:q.message)||!z)&&u,success:C&&(Y||z)},data:{oobCode:L},callbacks:{failed:()=>n.push({pathname:i,search:A.toString()&&"?"+A.toString()}),gotoNextPage:B},content:{verifySuccessText:t,verifyEmailText:d,verifyInvalidText:c,continueText:f}}}(u(this));var y;return i(f,{states:e,data:t,callbacks:p,content:h})}};export{p as sqm_portal_verify_email}