@saasquatch/mint-components 1.16.0-9 → 2.0.0-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (984) hide show
  1. package/dist/cjs/ErrorView-3f91e5ab.js +11 -0
  2. package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-a9845e80.js} +8 -8
  3. package/dist/cjs/IndirectTaxDetailsView-e5f70b8b.js +660 -0
  4. package/dist/cjs/{ShadowViewAddon-28865623.js → ShadowViewAddon-23b04c91.js} +1692 -1496
  5. package/dist/cjs/copy-text-view-51c8ee5d.js +122 -0
  6. package/dist/cjs/data-88adb95b.js +146 -0
  7. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  8. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  9. package/dist/cjs/{global-e31dc4f5.js → global-8bba5b3a.js} +11840 -11561
  10. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  11. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  12. package/dist/cjs/loader.cjs.js +5 -5
  13. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  14. package/dist/cjs/mint-components.cjs.js +5 -5
  15. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  16. package/dist/cjs/{mockRewardData-7815f10f.js → mockRewardData-df37c8a3.js} +1 -1
  17. package/dist/cjs/parseStates-d1effc19.js +16 -0
  18. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  19. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  20. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +795 -2496
  21. package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  22. package/dist/cjs/{sqm-big-stat_43.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +1475 -382
  23. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  24. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  25. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  26. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  27. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  28. package/dist/cjs/sqm-empty_4.cjs.entry.js +58 -63
  29. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  30. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  31. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  32. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  33. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  34. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  35. package/dist/cjs/{sqm-lead-checkbox-field-view-34d94919.js → sqm-lead-checkbox-field-view-340acad0.js} +2 -2
  36. package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +9 -9
  37. package/dist/cjs/{sqm-lead-input-field-view-89308aab.js → sqm-lead-input-field-view-06ed3632.js} +3 -3
  38. package/dist/cjs/sqm-lead-input-field.cjs.entry.js +10 -10
  39. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  40. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
  41. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  42. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  43. package/dist/cjs/sqm-navigation-sidebar-item-view-4e88f774.js +56 -0
  44. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  45. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  46. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  47. package/dist/cjs/sqm-pagination_3.cjs.entry.js +97 -70
  48. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  49. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  50. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  51. package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-5518eb0d.js} +4 -4
  52. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  53. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  54. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  55. package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-bb50304c.js} +4 -4
  56. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  57. package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-615e6975.js} +4 -4
  58. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  59. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  60. package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  61. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  62. package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  63. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  64. package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  65. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  66. package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-4ccf89da.js} +4 -9
  67. package/dist/cjs/sqm-qr-code.cjs.entry.js +14 -26
  68. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +131 -44
  69. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  70. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  71. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +85 -38
  72. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  73. package/dist/cjs/sqm-scroll.cjs.entry.js +21 -67
  74. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13741 -12408
  75. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  76. package/dist/cjs/sqm-tabs.cjs.entry.js +28 -13
  77. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1313 -0
  78. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  79. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  80. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  81. package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
  82. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  83. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  84. package/dist/cjs/{useLeadFormState-c83d2034.js → useLeadFormState-fd0445f9.js} +7 -7
  85. package/dist/cjs/{usePayoutStatus-c84a7d98.js → usePayoutStatus-fe32dd1a.js} +49 -17
  86. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-353f776a.js} +4 -4
  87. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  88. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  89. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  90. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  91. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  92. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  93. package/dist/cjs/{utils-6847bc06.js → utils-0d3ac0fb.js} +4 -0
  94. package/dist/cjs/utils-83d125fa.js +105 -0
  95. package/dist/collection/collection-manifest.json +1 -1
  96. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  97. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
  98. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +171 -4
  99. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  100. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  101. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  102. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +2 -0
  103. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +7 -0
  104. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  105. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  106. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  107. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +170 -1
  108. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  109. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  110. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +62 -3
  111. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  112. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  113. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  114. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  115. package/dist/collection/components/sqm-form-message/sqm-form-message.js +5 -5
  116. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -0
  117. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  118. package/dist/collection/components/sqm-hero/sqm-hero-view.js +16 -8
  119. package/dist/collection/components/sqm-hero/sqm-hero.js +39 -4
  120. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +7 -4
  121. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +80 -0
  122. package/dist/collection/components/sqm-image/sqm-image.js +1 -0
  123. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +4 -3
  124. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  125. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  126. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  127. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  128. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  129. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  130. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  131. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +60 -54
  132. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -36
  133. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  134. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  135. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  136. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  137. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  138. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +2 -1
  139. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
  140. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  141. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +85 -5
  142. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  143. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  144. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  145. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  146. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  147. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  148. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  149. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +2 -1
  150. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  151. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  152. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  153. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -0
  154. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +5 -4
  155. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  156. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  157. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  158. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  159. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  160. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  161. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  162. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -1
  163. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
  164. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  165. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +1 -0
  166. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
  167. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  168. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  169. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
  170. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +3 -1
  171. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +12 -4
  172. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +78 -3
  173. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
  174. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
  175. package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
  176. package/dist/collection/components/sqm-qr-code/useQRCode.js +1 -13
  177. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +9 -2
  178. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +34 -31
  179. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +81 -10
  180. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  181. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +170 -1
  182. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  183. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  184. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +29 -1
  185. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  186. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +52 -17
  187. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  188. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  189. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  190. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  191. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  192. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  193. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +4 -1
  194. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +3 -10
  195. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  196. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +32 -6
  197. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  198. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +48 -49
  199. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +83 -35
  200. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +1 -1
  201. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +6 -5
  202. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  203. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +56 -7
  204. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  205. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  206. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  207. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +2 -1
  208. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +8 -6
  209. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +4 -2
  210. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  211. package/dist/collection/components/sqm-route/sqm-route.js +1 -0
  212. package/dist/collection/components/sqm-router/sqm-router.js +2 -0
  213. package/dist/collection/components/sqm-scroll/sqm-scroll.js +23 -101
  214. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  215. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +12 -24
  216. package/dist/collection/components/sqm-share-button/sqm-share-button.js +57 -10
  217. package/dist/collection/components/sqm-share-code/sqm-share-code.js +170 -1
  218. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +25 -0
  219. package/dist/collection/components/sqm-share-link/sqm-share-link.js +173 -3
  220. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  221. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +112 -2
  222. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  223. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  224. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
  225. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  226. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  227. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +17 -2
  228. package/dist/collection/components/sqm-tabs/sqm-tabs.js +30 -2
  229. package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
  230. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  231. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +138 -157
  232. package/dist/collection/components/sqm-task-card/sqm-task-card.js +147 -4
  233. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  234. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  235. package/dist/collection/components/sqm-text/sqm-text.js +101 -48
  236. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  237. package/dist/collection/components/sqm-text-span/sqm-text-span.js +52 -2
  238. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  239. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  240. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  241. package/dist/collection/components/sqm-timeline/sqm-timeline.js +3 -1
  242. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
  243. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  244. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  245. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  246. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
  247. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
  248. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +13 -8
  249. package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +9 -0
  250. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +23 -73
  251. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +11 -2
  252. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +5 -3
  253. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +4 -4
  254. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +21 -76
  255. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +5 -5
  256. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
  257. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +59 -72
  258. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  259. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +6 -4
  260. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  261. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  262. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  263. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +59 -54
  264. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +64 -13
  265. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +44 -12
  266. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  267. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +130 -25
  268. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  269. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +51 -20
  270. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +113 -44
  271. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +23 -12
  272. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  273. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +17 -3
  274. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +183 -56
  275. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  276. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +7 -5
  277. package/dist/collection/components/views/copy-text-view.js +65 -39
  278. package/dist/collection/components/views/email-registration-view.js +3 -1
  279. package/dist/collection/global/global.js +27 -12
  280. package/dist/collection/global/mixins.js +8 -8
  281. package/dist/collection/global/styles.js +334 -102
  282. package/dist/collection/global/styles.ts +434 -102
  283. package/dist/collection/insertfont.js +18 -0
  284. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  285. package/dist/collection/tables/GenericTableView.js +6 -6
  286. package/dist/collection/utils/parseStates.js +12 -0
  287. package/dist/collection/utils/utils.js +4 -0
  288. package/dist/esm/ErrorView-bbf0a042.js +9 -0
  289. package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e43d310f.js} +8 -8
  290. package/dist/esm/IndirectTaxDetailsView-0a57b622.js +653 -0
  291. package/dist/esm/{ShadowViewAddon-f2176779.js → ShadowViewAddon-c0bd62f7.js} +1689 -1493
  292. package/dist/esm/copy-text-view-83b09456.js +120 -0
  293. package/dist/esm/data-807686c2.js +130 -0
  294. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  295. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  296. package/dist/esm/{global-be1f9992.js → global-1099f20d.js} +11864 -11586
  297. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  298. package/dist/esm/{index.module-89a79f66.js → index.module-c9811a48.js} +154 -154
  299. package/dist/esm/loader.js +5 -5
  300. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  301. package/dist/esm/mint-components.js +5 -5
  302. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  303. package/dist/esm/{mockRewardData-a3cdb832.js → mockRewardData-96a2d26d.js} +1 -1
  304. package/dist/esm/parseStates-ed75e224.js +14 -0
  305. package/dist/esm/raisins-plop-target.entry.js +1 -1
  306. package/dist/esm/{re-render-cc945f38.js → re-render-7e22fb0d.js} +2 -2
  307. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +651 -2345
  308. package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  309. package/dist/esm/{sqm-big-stat_43.entry.js → sqm-big-stat_46.entry.js} +1371 -281
  310. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  311. package/dist/esm/sqm-close-button.entry.js +5 -5
  312. package/dist/esm/sqm-code-verification.entry.js +348 -0
  313. package/dist/esm/sqm-context-router.entry.js +4 -4
  314. package/dist/esm/sqm-email-verification.entry.js +145 -21
  315. package/dist/esm/sqm-empty_4.entry.js +55 -60
  316. package/dist/esm/sqm-form-message.entry.js +7 -7
  317. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  318. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  319. package/dist/esm/sqm-header-logo.entry.js +2 -2
  320. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  321. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  322. package/dist/esm/{sqm-lead-checkbox-field-view-a8c1c78e.js → sqm-lead-checkbox-field-view-cbafee07.js} +2 -2
  323. package/dist/esm/sqm-lead-checkbox-field.entry.js +7 -7
  324. package/dist/esm/{sqm-lead-input-field-view-4ede5d7f.js → sqm-lead-input-field-view-f3775c28.js} +3 -3
  325. package/dist/esm/sqm-lead-input-field.entry.js +8 -8
  326. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  327. package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
  328. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  329. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  330. package/dist/esm/sqm-navigation-sidebar-item-view-5a452423.js +54 -0
  331. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  332. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  333. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  334. package/dist/esm/sqm-pagination_3.entry.js +91 -64
  335. package/dist/esm/sqm-password-field.entry.js +6 -6
  336. package/dist/esm/sqm-popup-container.entry.js +4 -4
  337. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  338. package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-7d86299c.js} +4 -4
  339. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  340. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  341. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  342. package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-7670cd86.js} +4 -4
  343. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  344. package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-3ed13e4d.js} +4 -4
  345. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  346. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  347. package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  348. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  349. package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  350. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  351. package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  352. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  353. package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-ea505213.js} +4 -9
  354. package/dist/esm/sqm-qr-code.entry.js +8 -20
  355. package/dist/esm/sqm-referral-table_11.entry.js +120 -33
  356. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  357. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  358. package/dist/esm/sqm-rewards-table_9.entry.js +73 -26
  359. package/dist/esm/sqm-route.entry.js +1 -1
  360. package/dist/esm/sqm-scroll.entry.js +20 -66
  361. package/dist/esm/sqm-stencilbook.entry.js +13818 -12485
  362. package/dist/esm/sqm-tab.entry.js +4 -4
  363. package/dist/esm/sqm-tabs.entry.js +25 -10
  364. package/dist/esm/sqm-tax-and-cash.entry.js +1309 -0
  365. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  366. package/dist/esm/sqm-text-span.entry.js +6 -6
  367. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  368. package/dist/esm/sqm-widget-verification.entry.js +22 -10
  369. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-3d872cef.js} +2 -2
  370. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-dda1f52b.js} +3 -3
  371. package/dist/esm/{useLeadFormState-9016d812.js → useLeadFormState-c379e5d7.js} +4 -4
  372. package/dist/esm/{usePayoutStatus-f07bcf90.js → usePayoutStatus-42cc6a2c.js} +46 -14
  373. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-95814943.js} +3 -3
  374. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-1eb3cd72.js} +3 -3
  375. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-c2e809cf.js} +2 -2
  376. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-909ccb28.js} +5 -5
  377. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-24d594ea.js} +2 -2
  378. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-55e0e98f.js} +2 -2
  379. package/dist/esm/{utilities-5b0ca040.js → utilities-72c07b09.js} +2 -2
  380. package/dist/esm/utils-6122971b.js +97 -0
  381. package/dist/esm/{utils-334c1e34.js → utils-84b4b092.js} +4 -0
  382. package/dist/esm-es5/ErrorView-bbf0a042.js +1 -0
  383. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  384. package/dist/esm-es5/IndirectTaxDetailsView-0a57b622.js +1 -0
  385. package/dist/esm-es5/ShadowViewAddon-c0bd62f7.js +1 -0
  386. package/dist/esm-es5/copy-text-view-83b09456.js +1 -0
  387. package/dist/esm-es5/data-807686c2.js +1 -0
  388. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  389. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  390. package/dist/esm-es5/{global-be1f9992.js → global-1099f20d.js} +5 -5
  391. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  392. package/dist/esm-es5/index.module-c9811a48.js +1 -0
  393. package/dist/esm-es5/loader.js +1 -1
  394. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  395. package/dist/esm-es5/mint-components.js +1 -1
  396. package/dist/esm-es5/mixins-f750863a.js +1 -0
  397. package/dist/esm-es5/{mockRewardData-a3cdb832.js → mockRewardData-96a2d26d.js} +1 -1
  398. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  399. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  400. package/dist/esm-es5/re-render-7e22fb0d.js +1 -0
  401. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  402. package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  403. package/dist/esm-es5/sqm-big-stat_46.entry.js +1 -0
  404. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  405. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  406. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  407. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  408. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  409. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  410. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  411. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  412. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  413. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  414. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  415. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  416. package/dist/esm-es5/{sqm-lead-checkbox-field-view-a8c1c78e.js → sqm-lead-checkbox-field-view-cbafee07.js} +1 -1
  417. package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
  418. package/dist/esm-es5/{sqm-lead-input-field-view-4ede5d7f.js → sqm-lead-input-field-view-f3775c28.js} +1 -1
  419. package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
  420. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  421. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  422. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  423. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  424. package/dist/esm-es5/sqm-navigation-sidebar-item-view-5a452423.js +1 -0
  425. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  426. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  427. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  428. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  429. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  430. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  431. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  432. package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-7d86299c.js} +1 -1
  433. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  434. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  435. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  436. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  437. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  438. package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-3ed13e4d.js} +1 -1
  439. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  440. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  441. package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  442. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  443. package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  444. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  445. package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  446. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  447. package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-ea505213.js} +1 -1
  448. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  449. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  450. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  451. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  452. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  453. package/dist/esm-es5/sqm-route.entry.js +1 -1
  454. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  455. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  456. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  457. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  458. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  459. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  460. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  461. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  462. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  463. package/dist/esm-es5/useChildElements-3d872cef.js +1 -0
  464. package/dist/esm-es5/useInstantAccessRegistration-dda1f52b.js +1 -0
  465. package/dist/esm-es5/useLeadFormState-c379e5d7.js +1 -0
  466. package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +6 -0
  467. package/dist/esm-es5/usePortalLogin-95814943.js +1 -0
  468. package/dist/esm-es5/usePortalRegistrationForm-1eb3cd72.js +1 -0
  469. package/dist/esm-es5/useReferralCodes-c2e809cf.js +1 -0
  470. package/dist/esm-es5/useReferralTable-909ccb28.js +1 -0
  471. package/dist/esm-es5/useRegistrationFormState-24d594ea.js +1 -0
  472. package/dist/esm-es5/useVerificationEmail-55e0e98f.js +1 -0
  473. package/dist/esm-es5/utilities-72c07b09.js +1 -0
  474. package/dist/esm-es5/utils-6122971b.js +1 -0
  475. package/dist/esm-es5/utils-84b4b092.js +1 -0
  476. package/dist/mint-components/global/styles.ts +434 -102
  477. package/dist/mint-components/mint-components.esm.js +1 -1
  478. package/dist/mint-components/mint-components.js +1 -1
  479. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  480. package/dist/mint-components/p-0087ad39.system.js +1 -0
  481. package/dist/mint-components/{p-bbcd824a.js → p-00bc7211.js} +1 -1
  482. package/dist/mint-components/{p-50c902ca.system.entry.js → p-06f13966.system.entry.js} +1 -1
  483. package/dist/mint-components/{p-f940190a.js → p-07dc6d68.js} +1 -1
  484. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  485. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  486. package/dist/mint-components/p-0caad0db.entry.js +144 -0
  487. package/dist/mint-components/{p-48c69c2d.entry.js → p-0d21194c.entry.js} +1 -1
  488. package/dist/mint-components/p-0d71303d.js +1 -0
  489. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  490. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-0ea4d6a1.system.entry.js} +1 -1
  491. package/dist/mint-components/p-0ec54f97.js +1 -0
  492. package/dist/mint-components/p-115dfc03.system.js +1 -0
  493. package/dist/mint-components/p-125a894f.js +1 -0
  494. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  495. package/dist/mint-components/p-13e66b37.system.entry.js +1 -0
  496. package/dist/mint-components/p-13f3a647.js +1 -0
  497. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  498. package/dist/mint-components/p-171310d9.system.js +1 -0
  499. package/dist/mint-components/{p-dbc0e4f8.system.js → p-17a0f310.system.js} +1 -1
  500. package/dist/mint-components/{p-5c28406d.system.entry.js → p-1c6ef258.system.entry.js} +1 -1
  501. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  502. package/dist/mint-components/p-204861a6.js +1 -0
  503. package/dist/mint-components/{p-b287833c.system.entry.js → p-22a9114f.system.entry.js} +1 -1
  504. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  505. package/dist/mint-components/p-240bec23.js +1 -0
  506. package/dist/mint-components/p-2623b232.system.entry.js +1 -0
  507. package/dist/mint-components/{p-164a9103.system.entry.js → p-26a7051d.system.entry.js} +1 -1
  508. package/dist/mint-components/p-29398c98.entry.js +1 -0
  509. package/dist/mint-components/p-29ba2eaa.entry.js +1 -0
  510. package/dist/mint-components/{p-d07f3090.entry.js → p-29f0c87d.entry.js} +1 -1
  511. package/dist/mint-components/p-2ff72acc.entry.js +16 -0
  512. package/dist/mint-components/p-35081b0c.system.entry.js +1 -0
  513. package/dist/mint-components/{p-44891949.entry.js → p-386ec00c.entry.js} +1 -1
  514. package/dist/mint-components/{p-7a9290ba.js → p-3eba9036.js} +1 -1
  515. package/dist/mint-components/p-402984b3.system.entry.js +1 -0
  516. package/dist/mint-components/p-40752a0f.entry.js +1 -0
  517. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-40c33b6a.system.entry.js} +1 -1
  518. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  519. package/dist/mint-components/p-4250b06d.entry.js +1 -0
  520. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  521. package/dist/mint-components/{p-ff8b8067.entry.js → p-4306a11d.entry.js} +1 -1
  522. package/dist/mint-components/{p-a2fde301.entry.js → p-433e7458.entry.js} +1 -1
  523. package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-43d9c1c5.system.entry.js} +1 -1
  524. package/dist/mint-components/p-45c3ff6d.js +1 -0
  525. package/dist/mint-components/{p-938f64d9.js → p-460155de.js} +1 -1
  526. package/dist/mint-components/{p-10d17989.entry.js → p-47c83656.entry.js} +1 -1
  527. package/dist/mint-components/{p-c0f19490.js → p-49400aab.js} +2 -2
  528. package/dist/mint-components/p-4965dae4.system.js +1 -0
  529. package/dist/mint-components/p-49b20dae.js +1 -0
  530. package/dist/mint-components/p-4b9976cc.system.js +1 -0
  531. package/dist/mint-components/p-4c811d12.entry.js +13 -0
  532. package/dist/mint-components/{p-2f101bae.entry.js → p-4c9d80e4.entry.js} +1 -1
  533. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  534. package/dist/mint-components/{p-00df0cac.js → p-4fed8672.js} +1 -1
  535. package/dist/mint-components/p-511c87ce.system.entry.js +1 -0
  536. package/dist/mint-components/p-513f5d80.js +1 -0
  537. package/dist/mint-components/{p-13ed8586.system.js → p-537a3894.system.js} +1 -1
  538. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-55eaba8e.system.entry.js} +1 -1
  539. package/dist/mint-components/p-59b028db.system.js +1 -0
  540. package/dist/mint-components/p-5e145a54.system.entry.js +1 -0
  541. package/dist/mint-components/p-5ff2da11.js +1 -0
  542. package/dist/mint-components/{p-cd569259.system.js → p-60465a2d.system.js} +1 -1
  543. package/dist/mint-components/{p-fa37513e.system.entry.js → p-60ec0961.system.entry.js} +1 -1
  544. package/dist/mint-components/p-60f1cca2.system.js +1 -0
  545. package/dist/mint-components/p-61157c6a.entry.js +11 -0
  546. package/dist/mint-components/p-621f3e30.entry.js +1 -0
  547. package/dist/mint-components/p-625ca62f.entry.js +1 -0
  548. package/dist/mint-components/p-63e29387.js +42 -0
  549. package/dist/mint-components/{p-99ad7d56.system.js → p-64997b59.system.js} +1 -1
  550. package/dist/mint-components/{p-b75bb6e3.system.js → p-6578ea31.system.js} +1 -1
  551. package/dist/mint-components/{p-f0772618.system.entry.js → p-66cf70f7.system.entry.js} +1 -1
  552. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-67aa0b2d.entry.js} +1 -1
  553. package/dist/mint-components/p-67ad2252.system.js +1 -0
  554. package/dist/mint-components/{p-91ab3da1.js → p-68043f30.js} +1 -1
  555. package/dist/mint-components/p-6b0f79d1.system.entry.js +1 -0
  556. package/dist/mint-components/{p-8175e85f.system.js → p-6c82d60c.system.js} +1 -1
  557. package/dist/mint-components/p-6d5bd95a.js +1 -0
  558. package/dist/mint-components/{p-9ec99ced.js → p-6dc742bc.js} +1 -1
  559. package/dist/mint-components/p-71271fbd.system.js +1 -0
  560. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  561. package/dist/mint-components/{p-05f29f64.js → p-71af93e3.js} +1 -1
  562. package/dist/mint-components/p-74f43a08.system.js +1 -0
  563. package/dist/mint-components/p-75b8fd75.entry.js +1 -0
  564. package/dist/mint-components/p-7602eb6a.entry.js +1 -0
  565. package/dist/mint-components/p-76d4ef41.entry.js +1 -0
  566. package/dist/mint-components/{p-6bb25c02.js → p-7837f69e.js} +18 -3
  567. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-78c754de.system.entry.js} +1 -1
  568. package/dist/mint-components/{p-6ba44ca9.js → p-79a3344f.js} +1 -1
  569. package/dist/mint-components/p-7a268047.js +1 -0
  570. package/dist/mint-components/p-7b8232f8.system.js +6 -0
  571. package/dist/mint-components/p-7b8cd420.system.entry.js +1 -0
  572. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  573. package/dist/mint-components/p-7bae9bb7.system.entry.js +1 -0
  574. package/dist/mint-components/p-7d735c9c.js +448 -0
  575. package/dist/mint-components/{p-f4a72903.system.entry.js → p-84d1041d.system.entry.js} +1 -1
  576. package/dist/mint-components/{p-7c2b9fe4.system.js → p-867b2baf.system.js} +1 -1
  577. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  578. package/dist/mint-components/p-8c3c4e92.js +112 -0
  579. package/dist/mint-components/p-8caef004.js +1 -0
  580. package/dist/mint-components/{p-ae1ea5ac.system.js → p-8e28333b.system.js} +1 -1
  581. package/dist/mint-components/p-916a2045.system.entry.js +1 -0
  582. package/dist/mint-components/p-92a54b0c.entry.js +1 -0
  583. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-9491f5fb.system.entry.js} +1 -1
  584. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  585. package/dist/mint-components/p-967a9040.system.js +1 -0
  586. package/dist/mint-components/p-976ee669.js +1 -0
  587. package/dist/mint-components/p-978d06ab.entry.js +1 -0
  588. package/dist/mint-components/{p-6d2f5a1d.js → p-97dc6863.js} +2 -2
  589. package/dist/mint-components/{p-3f7b81b8.js → p-9c79ab08.js} +2 -2
  590. package/dist/mint-components/p-9e297104.entry.js +1 -0
  591. package/dist/mint-components/p-9eba8408.js +1 -0
  592. package/dist/mint-components/p-a0730259.entry.js +99 -0
  593. package/dist/mint-components/p-a38dd63f.system.entry.js +1 -0
  594. package/dist/mint-components/p-a44a912b.entry.js +1 -0
  595. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  596. package/dist/mint-components/p-a4e8eb33.entry.js +1 -0
  597. package/dist/mint-components/p-a513c1a6.js +1 -0
  598. package/dist/mint-components/p-a597b136.entry.js +1 -0
  599. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  600. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  601. package/dist/mint-components/p-a8c86cd8.system.entry.js +1 -0
  602. package/dist/mint-components/p-a9ad7fb2.system.entry.js +1 -0
  603. package/dist/mint-components/{p-0d182dc1.system.js → p-aa08457e.system.js} +1 -1
  604. package/dist/mint-components/p-aa8c6332.js +1 -0
  605. package/dist/mint-components/{p-e8ffcc68.entry.js → p-ab018deb.entry.js} +2 -2
  606. package/dist/mint-components/p-ad4348c3.system.js +1 -0
  607. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-af69ee79.system.entry.js} +1 -1
  608. package/dist/mint-components/p-b1eafaae.entry.js +25 -0
  609. package/dist/mint-components/p-b487cb00.system.entry.js +1 -0
  610. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-b55002dc.system.entry.js} +1 -1
  611. package/dist/mint-components/{p-e5d0375e.system.js → p-b6911812.system.js} +1 -1
  612. package/dist/mint-components/p-b703c89f.system.entry.js +1 -0
  613. package/dist/mint-components/p-b8d3fb57.entry.js +273 -0
  614. package/dist/mint-components/p-bb452830.system.js +1 -0
  615. package/dist/mint-components/{p-5488fdd9.system.js → p-bb5d153f.system.js} +1 -1
  616. package/dist/mint-components/p-bcac83f0.system.js +1 -0
  617. package/dist/mint-components/p-bd093069.system.entry.js +1 -0
  618. package/dist/mint-components/p-be88596c.system.js +1 -0
  619. package/dist/mint-components/{p-2ae0e06a.entry.js → p-bfd77a07.entry.js} +1 -1
  620. package/dist/mint-components/p-c065057d.entry.js +17 -0
  621. package/dist/mint-components/p-c210374a.system.js +1 -0
  622. package/dist/mint-components/{p-d6831af5.js → p-c30ad421.js} +1 -1
  623. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  624. package/dist/mint-components/p-c531cc75.entry.js +1 -0
  625. package/dist/mint-components/p-c5fea579.system.entry.js +1 -0
  626. package/dist/mint-components/{p-527216de.system.js → p-c6fa4cc5.system.js} +1 -1
  627. package/dist/mint-components/p-c7c11325.js +1 -0
  628. package/dist/mint-components/p-c85f204b.system.js +1 -0
  629. package/dist/mint-components/{p-90fc6774.system.entry.js → p-c86f64ad.system.entry.js} +1 -1
  630. package/dist/mint-components/{p-95b88eb6.system.js → p-c994512c.system.js} +1 -1
  631. package/dist/mint-components/{p-0b4cac9f.system.entry.js → p-cb845a3a.system.entry.js} +1 -1
  632. package/dist/mint-components/{p-9386ad84.system.entry.js → p-cc8ca3ff.system.entry.js} +1 -1
  633. package/dist/mint-components/p-cf22cf56.entry.js +1 -0
  634. package/dist/mint-components/p-cf4e1709.entry.js +1 -0
  635. package/dist/mint-components/{p-0d2d0b6d.entry.js → p-d08bcd88.entry.js} +1 -1
  636. package/dist/mint-components/{p-a71b9154.system.js → p-d09d3b8f.system.js} +1 -1
  637. package/dist/mint-components/p-d399b343.system.entry.js +1 -0
  638. package/dist/mint-components/{p-8c0b7881.system.entry.js → p-d4edce6c.system.entry.js} +1 -1
  639. package/dist/mint-components/p-db1a0db1.js +1233 -0
  640. package/dist/mint-components/p-dcc50d90.entry.js +1 -0
  641. package/dist/mint-components/p-dd30354a.system.entry.js +1 -0
  642. package/dist/mint-components/{p-91959fbe.js → p-ddf3c05e.js} +1 -1
  643. package/dist/mint-components/{p-bdb7d451.system.js → p-e0a724dd.system.js} +21 -21
  644. package/dist/mint-components/{p-2d52e2d7.system.js → p-e174b704.system.js} +1 -1
  645. package/dist/mint-components/{p-4e526a94.js → p-e711d0e9.js} +1 -1
  646. package/dist/mint-components/{p-7f80a9d7.entry.js → p-ea063d99.entry.js} +1 -1
  647. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  648. package/dist/mint-components/p-eba70d67.system.entry.js +1 -0
  649. package/dist/mint-components/p-ecc84140.system.entry.js +1 -0
  650. package/dist/mint-components/p-ed16b35a.js +1 -0
  651. package/dist/mint-components/p-ee92a728.system.entry.js +1 -0
  652. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  653. package/dist/mint-components/{p-01dd541f.system.js → p-f0eae4e6.system.js} +1 -1
  654. package/dist/mint-components/p-f1dc581f.js +1 -0
  655. package/dist/mint-components/p-f1f6a13d.system.js +1 -0
  656. package/dist/mint-components/p-f370bddc.entry.js +13 -0
  657. package/dist/mint-components/{p-4e451f75.js → p-f5fff87e.js} +1 -1
  658. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  659. package/dist/mint-components/{p-284e4ed5.entry.js → p-f7c0877d.entry.js} +1 -1
  660. package/dist/mint-components/p-f860e7f1.entry.js +9 -0
  661. package/dist/mint-components/p-f9c7248e.js +1 -0
  662. package/dist/mint-components/{p-19bc3406.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  663. package/dist/mint-components/{p-59274a91.system.js → p-ff0e1564.system.js} +1 -1
  664. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  665. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  666. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +47 -1
  667. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +2 -0
  668. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  669. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  670. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +43 -0
  671. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  672. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  673. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +15 -0
  674. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  675. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
  676. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  677. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  678. package/dist/types/components/sqm-hero/sqm-hero.d.ts +9 -1
  679. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  680. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +20 -0
  681. package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
  682. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +2 -1
  683. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  684. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  685. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  686. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  687. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  688. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  689. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  690. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
  691. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -11
  692. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  693. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  694. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  695. package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +1 -1
  696. package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +1 -0
  697. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  698. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +16 -0
  699. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  700. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  701. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  702. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  703. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  704. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  705. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +1 -0
  706. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
  707. package/dist/types/components/sqm-portal-forgot-password/PortalForgotPassword.stories.d.ts +1 -0
  708. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  709. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  710. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  711. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  712. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  713. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  714. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
  715. package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
  716. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
  717. package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
  718. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +3 -1
  719. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  720. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +21 -3
  721. package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +1 -0
  722. package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
  723. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  724. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +25 -2
  725. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  726. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +43 -0
  727. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  728. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  729. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +7 -0
  730. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  731. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  732. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  733. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  734. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  735. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  736. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  737. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  738. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -0
  739. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +2 -1
  740. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  741. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +10 -1
  742. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  743. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  744. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  745. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +2 -1
  746. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  747. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  748. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  749. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  750. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +1 -0
  751. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +3 -2
  752. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  753. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  754. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +2 -0
  755. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  756. package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
  757. package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
  758. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -8
  759. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  760. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  761. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +19 -6
  762. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +43 -0
  763. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +2 -0
  764. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +44 -1
  765. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  766. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +25 -0
  767. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  768. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  769. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  770. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  771. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +10 -0
  772. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  773. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  774. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +33 -4
  775. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  776. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  777. package/dist/types/components/sqm-text/sqm-text.d.ts +13 -0
  778. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  779. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +14 -1
  780. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  781. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  782. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  783. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +3 -1
  784. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
  785. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
  786. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
  787. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
  788. package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +9 -0
  789. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
  790. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
  791. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  792. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +4 -1
  793. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +12 -3
  794. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +9 -2
  795. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +23 -6
  796. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  797. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +4 -2
  798. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +16 -8
  799. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  800. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  801. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  802. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  803. package/dist/types/components.d.ts +1288 -120
  804. package/dist/types/global/global.d.ts +2 -2
  805. package/dist/types/global/mixins.d.ts +12 -12
  806. package/dist/types/global/styles.d.ts +10 -2
  807. package/dist/types/insertfont.d.ts +1 -0
  808. package/dist/types/saasquatch.d.ts +142 -0
  809. package/dist/types/utils/parseStates.d.ts +1 -0
  810. package/dist/types/utils/utils.d.ts +1 -0
  811. package/docs/docs.docx +0 -0
  812. package/docs/raisins.json +1 -1
  813. package/grapesjs/grapesjs.js +1 -1
  814. package/package.json +3 -2
  815. package/shoelace/assets/icons/twitter-x.svg +4 -0
  816. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  817. package/dist/cjs/copy-text-view-c85acaaa.js +0 -96
  818. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  819. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  820. package/dist/cjs/sqm-invoice-table-view-5c74607f.js +0 -2074
  821. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  822. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  823. package/dist/cjs/sqm-portal-forgot-password-view-78f19ef9.js +0 -45
  824. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +0 -127
  825. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  826. package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
  827. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  828. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  829. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  830. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  831. package/dist/esm/ErrorView-48e2b969.js +0 -33
  832. package/dist/esm/copy-text-view-782137ba.js +0 -94
  833. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  834. package/dist/esm/sqm-asset-card.entry.js +0 -41
  835. package/dist/esm/sqm-invoice-table-view-3491dd80.js +0 -2058
  836. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  837. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  838. package/dist/esm/sqm-portal-forgot-password-view-3d3182f1.js +0 -43
  839. package/dist/esm/sqm-portal-forgot-password.entry.js +0 -123
  840. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  841. package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
  842. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  843. package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
  844. package/dist/esm-es5/ShadowViewAddon-f2176779.js +0 -1
  845. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  846. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  847. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  848. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  849. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  850. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  851. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  852. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  853. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  854. package/dist/esm-es5/sqm-big-stat_43.entry.js +0 -1
  855. package/dist/esm-es5/sqm-invoice-table-view-3491dd80.js +0 -1
  856. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  857. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  858. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  859. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
  860. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +0 -1
  861. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
  862. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  863. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
  864. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  865. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  866. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  867. package/dist/esm-es5/useLeadFormState-9016d812.js +0 -1
  868. package/dist/esm-es5/usePayoutStatus-f07bcf90.js +0 -6
  869. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  870. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  871. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  872. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  873. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  874. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  875. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  876. package/dist/esm-es5/utils-334c1e34.js +0 -1
  877. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  878. package/dist/mint-components/p-01a851f7.system.entry.js +0 -1
  879. package/dist/mint-components/p-0309fdfa.entry.js +0 -1
  880. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  881. package/dist/mint-components/p-0c78815e.system.entry.js +0 -1
  882. package/dist/mint-components/p-0c9debc1.system.js +0 -6
  883. package/dist/mint-components/p-0d939b73.system.js +0 -1
  884. package/dist/mint-components/p-0ebab63e.system.js +0 -1
  885. package/dist/mint-components/p-12bba567.entry.js +0 -1
  886. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  887. package/dist/mint-components/p-14a65f29.system.js +0 -1
  888. package/dist/mint-components/p-1513309d.entry.js +0 -1
  889. package/dist/mint-components/p-18425f38.system.entry.js +0 -1
  890. package/dist/mint-components/p-1870ab08.system.entry.js +0 -1
  891. package/dist/mint-components/p-19ccb4ce.js +0 -1
  892. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  893. package/dist/mint-components/p-1d704c40.system.js +0 -1
  894. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  895. package/dist/mint-components/p-21620f81.system.entry.js +0 -1
  896. package/dist/mint-components/p-229f797b.js +0 -1
  897. package/dist/mint-components/p-24db5c70.js +0 -1
  898. package/dist/mint-components/p-267c8f8c.entry.js +0 -144
  899. package/dist/mint-components/p-275b4767.entry.js +0 -1
  900. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  901. package/dist/mint-components/p-2da21ba4.entry.js +0 -1
  902. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  903. package/dist/mint-components/p-31015791.js +0 -1
  904. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  905. package/dist/mint-components/p-37996351.system.js +0 -1
  906. package/dist/mint-components/p-37a4452c.system.entry.js +0 -1
  907. package/dist/mint-components/p-380bfde1.entry.js +0 -1
  908. package/dist/mint-components/p-38e5c429.system.js +0 -1
  909. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  910. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  911. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  912. package/dist/mint-components/p-3db34d68.js +0 -1
  913. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  914. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  915. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  916. package/dist/mint-components/p-4428294b.entry.js +0 -1
  917. package/dist/mint-components/p-4794641c.system.js +0 -1
  918. package/dist/mint-components/p-48135f99.system.js +0 -53
  919. package/dist/mint-components/p-492b70db.system.js +0 -1
  920. package/dist/mint-components/p-49932f12.system.js +0 -1
  921. package/dist/mint-components/p-4e5af50c.js +0 -1
  922. package/dist/mint-components/p-53730ffe.entry.js +0 -17
  923. package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
  924. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  925. package/dist/mint-components/p-609613e8.entry.js +0 -205
  926. package/dist/mint-components/p-626e9e84.js +0 -1
  927. package/dist/mint-components/p-6333265f.system.js +0 -1
  928. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  929. package/dist/mint-components/p-63a75798.js +0 -1
  930. package/dist/mint-components/p-6427e963.entry.js +0 -1
  931. package/dist/mint-components/p-65069b66.js +0 -1248
  932. package/dist/mint-components/p-653f963f.entry.js +0 -13
  933. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  934. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  935. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  936. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  937. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  938. package/dist/mint-components/p-7846937e.entry.js +0 -13
  939. package/dist/mint-components/p-7893e7d1.entry.js +0 -9
  940. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  941. package/dist/mint-components/p-837a0fdd.js +0 -1
  942. package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
  943. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  944. package/dist/mint-components/p-8c23d1b8.js +0 -1
  945. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  946. package/dist/mint-components/p-91521e9d.js +0 -1
  947. package/dist/mint-components/p-92816d1f.js +0 -1
  948. package/dist/mint-components/p-94a876b9.js +0 -1
  949. package/dist/mint-components/p-97d4d651.system.js +0 -1
  950. package/dist/mint-components/p-98698131.js +0 -1
  951. package/dist/mint-components/p-986d4c17.system.entry.js +0 -1
  952. package/dist/mint-components/p-9acb5038.js +0 -1
  953. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  954. package/dist/mint-components/p-aad32fb6.system.js +0 -1
  955. package/dist/mint-components/p-b207beeb.entry.js +0 -1
  956. package/dist/mint-components/p-b7d1469d.system.entry.js +0 -1
  957. package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
  958. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  959. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  960. package/dist/mint-components/p-c1b074b6.js +0 -394
  961. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  962. package/dist/mint-components/p-c9f1dde7.js +0 -1
  963. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  964. package/dist/mint-components/p-cbbfac66.entry.js +0 -25
  965. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  966. package/dist/mint-components/p-cd651f81.js +0 -42
  967. package/dist/mint-components/p-d8ea88f9.entry.js +0 -273
  968. package/dist/mint-components/p-da7708a7.entry.js +0 -1
  969. package/dist/mint-components/p-dbcb5359.js +0 -1
  970. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  971. package/dist/mint-components/p-ddcf4a9e.system.entry.js +0 -1
  972. package/dist/mint-components/p-e07bc6c4.system.js +0 -1
  973. package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
  974. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  975. package/dist/mint-components/p-e8e48982.js +0 -1
  976. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  977. package/dist/mint-components/p-f56bedd5.js +0 -1
  978. package/dist/mint-components/p-f708da7b.js +0 -1
  979. package/dist/mint-components/p-f7c99803.system.js +0 -1
  980. package/dist/mint-components/p-f98a4354.js +0 -1
  981. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  982. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  983. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  984. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-f708da7b.js";import{n as o}from"./p-cd651f81.js";import{i as e,j as a}from"./p-94a876b9.js";import"./p-e7e129ac.js";import{c as r}from"./p-c1086930.js";import"./p-9ec99ced.js";import{c as i}from"./p-cef45012.js";import"./p-91521e9d.js";import"./p-c9f1dde7.js";import{P as n}from"./p-dbcb5359.js";import{u as l}from"./p-4e526a94.js";const c=class{constructor(t){s(this,t),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordPath="/forgotPassword",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.registerPath="/register",this.pageLabel="Sign in to your account",this.networkErrorMessage="An error occurred while logging you in. Please refresh the page and try again.",this.googleUserNotRegisteredError="Your Google account has not registered on our platform. Please complete the registration process with your Google account.",this.registerCTA="Don't have an account?",o(this)}disconnectedCallback(){}render(){const{states:s,callbacks:o}=e()?r({states:{error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},callbacks:{googleSubmit:async()=>{console.log("google submit")},submit:async()=>{console.log("submit")}},content:{googleButton:null}},this.demoData||{},{arrayMerge:(s,t)=>t}):l(this),c=i({RegisterButton:{"&::part(label)":{padding:"0"}}}),g=c.toString(),h={forgotPasswordButton:t("slot",{name:"forgotPassword"},t("a",{onClick:()=>a.push(s.forgotPasswordPath)},this.forgotPasswordLabel)),googleButton:t("sqm-google-sign-in",{onInitComplete:o.googleSubmit}),secondaryButton:t("slot",{name:"secondaryButton"},t("style",null,g),t("span",null,this.registerCTA," ",t("sl-button",{size:"large",type:"text",disabled:s.loading,onClick:()=>a.push(s.registerPath),className:c.classes.RegisterButton},this.registerLabel))),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return t(n,{states:s,callbacks:o,content:h})}};export{c as sqm_portal_google_login}
1
+ import{r as s,h as t}from"./p-c7c11325.js";import{n as o}from"./p-63e29387.js";import{i as e,j as a}from"./p-0ec54f97.js";import"./p-e7e129ac.js";import{c as r}from"./p-c1086930.js";import"./p-6dc742bc.js";import{c as i}from"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as n}from"./p-240bec23.js";import{u as l}from"./p-e711d0e9.js";const c=class{constructor(t){s(this,t),this.ignored=!0,this.nextPage="/",this.emailLabel="Email",this.passwordLabel="Password",this.submitLabel="Sign In",this.forgotPasswordPath="/forgotPassword",this.forgotPasswordLabel="Forgot Password?",this.registerLabel="Register",this.registerPath="/register",this.pageLabel="Sign in to your account",this.networkErrorMessage="An error occurred while logging you in. Please refresh the page and try again.",this.googleUserNotRegisteredError="Your Google account has not registered on our platform. Please complete the registration process with your Google account.",this.registerCTA="Don't have an account?",o(this)}disconnectedCallback(){}render(){const{states:s,callbacks:o}=e()?r({states:{error:"",loading:!1,forgotPasswordPath:"/forgotPassword",registerPath:"/register",showLoginForm:"manual"},callbacks:{googleSubmit:async()=>{console.log("google submit")},submit:async()=>{console.log("submit")}},content:{googleButton:null}},this.demoData||{},{arrayMerge:(s,t)=>t}):l(this),c=i({RegisterButton:{"&::part(label)":{padding:"0"}}}),g=c.toString(),h={forgotPasswordButton:t("slot",{name:"forgotPassword"},t("a",{onClick:()=>a.push(s.forgotPasswordPath)},this.forgotPasswordLabel)),googleButton:t("sqm-google-sign-in",{onInitComplete:o.googleSubmit}),secondaryButton:t("slot",{name:"secondaryButton"},t("style",null,g),t("span",null,this.registerCTA," ",t("sl-button",{size:"large",type:"text",disabled:s.loading,onClick:()=>a.push(s.registerPath),className:c.classes.RegisterButton},this.registerLabel))),emailLabel:this.emailLabel,passwordLabel:this.passwordLabel,submitLabel:this.submitLabel,pageLabel:this.pageLabel};return t(n,{states:s,callbacks:o,content:h})}};export{c as sqm_portal_google_login}
@@ -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-6dc742bc.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}
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,s=arguments.length;n<s;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]}return t};return __assign.apply(this,arguments)};System.register(["./p-59b028db.system.js","./p-e0a724dd.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-60f1cca2.system.js","./p-1a673057.system.js","./p-a6f4fb03.system.js"],(function(t){"use strict";var e,n,s,i,o,a,r,l;return{setters:[function(t){e=t.h;n=t.r;s=t.c},function(t){i=t.i},function(t){o=t.n},function(){},function(t){a=t.g},function(){},function(t){r=t.P;l=t.a}],execute:function(){function m(t){var n=t.emptyStateHeader,s=t.emptyStateImage,o=t.emptyStateText,a=t.supportText,r=t.missingFeature,l=r===void 0?"":r;return e("sqm-portal-container",{padding:"large",gap:"medium",part:"sqm-base"},e("img",{style:{height:"100px",margin:"auto"},src:s}),e("sqm-titled-section",{style:{maxHeight:"400px"},"label-margin":"xxx-small","text-align":"center"},e("sqm-text",{slot:"label"},e("p",{part:"header-text"},n)),e("sqm-text",{slot:"content"},e("p",{part:"description-text"},i.formatMessage({id:"emptyStateText",defaultMessage:o},{supportText:e("a",{target:"_blank",href:"mailto:saasquatch-support@impact.com?subject=Next steps for "+l+" feature&body=Hi Support Team, %0D%0A\n %0D%0A \n I am interested to learn more about the "+l+" 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: "+l+"%0D%0A\n - Company Name: [Please fill out your company name here]%0D%0A\n %0D%0A\n Thank you"},a)})))))}var p=t("sqm_empty",function(){function t(t){n(this,t);this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_leaderboard2.png"}t.prototype.render=function(){return e(s,{slot:"empty"},e(m,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText,supportText:this.supportText}))};return t}());var c=t("sqm_portal_container",function(){function t(t){n(this,t);this.ignored=true;this.direction="column";this.gap="xxx-large";this.display="grid";this.maxWidth="100%";this.flexWrap="wrap";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){return e(r,Object.assign({},a(this)),e("slot",null))};return t}());var f=t("sqm_text",function(){function t(t){n(this,t);this.ignored=true;o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.componentWillLoad=function(){};t.prototype.render=function(){var t="\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 ";return e("div",null,e("style",null,t),e("slot",null))};return t}());var h=t("sqm_titled_section",function(){function t(t){n(this,t);this.textAlign="left";this.labelMargin="small";this.padding="none";o(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=e("slot",{name:"label"},this.label);var n=e("slot",{name:"content"});return e(l,Object.assign({},__assign(__assign({},a(this)),{label:t,content:n})))};return t}())}}}));
@@ -1 +1 @@
1
- import{r as t,e,h as o,g as n}from"./p-f708da7b.js";import{k as s,f as i,n as l}from"./p-cd651f81.js";import{g as c,i as r}from"./p-94a876b9.js";const u=class{constructor(o){t(this,o),this.initComplete=e(this,"initComplete",7),this.googleButtonDiv=null,l(this)}disconnectedCallback(){}connectedCallback(){if(!document.head.querySelector('script[src="https://accounts.google.com/gsi/client"]')){const t=document.createElement("script");t.src="https://accounts.google.com/gsi/client",t.async=!0,document.head.appendChild(t)}}render(){const{setGoogleButtonDiv:t}=r()?function(t){const[e,o]=s(!1),[n,l]=s(null);return i((()=>{const t=()=>{window.onGoogleLibraryLoad=null,o(!0)};window.google&&t(),window.onGoogleLibraryLoad=t}),[]),i((()=>{if(!n||!e)return;google.accounts.id.initialize({client_id:"PLACEHOLDER",cb:()=>{}}),google.accounts.id.renderButton(n,{theme:"outline",size:"large",text:t.text,click_listener:()=>{t.initComplete.emit({credential:null})}})}),[n,e]),{setGoogleButtonDiv:l}}(this):function(t){const[e,o]=s(!1),[n,l]=s(null),[r,u]=s(400);let a=null;const g=()=>{n&&u(n.clientWidth)};return i((()=>{if(!n)return;const t=new ResizeObserver((()=>{a&&clearTimeout(a),a=setTimeout((()=>{g()}),50)}));return t.observe(n),g(),()=>t.disconnect()}),[n]),i((()=>{const e=()=>{window.onGoogleLibraryLoad=null;const e=c();"SquatchPortal"===e.type&&(google.accounts.id.initialize({client_id:e.env.googleOAuthId,callback:e=>{t.initComplete.emit(e)}}),o(!0))};window.google&&e(),window.onGoogleLibraryLoad=e}),[]),i((()=>{n&&e&&google.accounts.id.renderButton(n,{theme:"outline",size:"large",text:t.text,height:40,width:r})}),[n,e,r]),{setGoogleButtonDiv:l}}(this);return o("div",{ref:t,style:{width:"100%"}})}get el(){return n(this)}};export{u as sqm_google_sign_in}
1
+ import{r as t,e,h as o,g as n}from"./p-c7c11325.js";import{k as s,f as i,n as c}from"./p-63e29387.js";import{g as l,i as r}from"./p-0ec54f97.js";const u=class{constructor(o){t(this,o),this.initComplete=e(this,"initComplete",7),this.googleButtonDiv=null,c(this)}disconnectedCallback(){}connectedCallback(){if(!document.head.querySelector('script[src="https://accounts.google.com/gsi/client"]')){const t=document.createElement("script");t.src="https://accounts.google.com/gsi/client",t.async=!0,document.head.appendChild(t)}}render(){const{setGoogleButtonDiv:t}=r()?function(t){const[e,o]=s(!1),[n,c]=s(null);return i((()=>{const t=()=>{window.onGoogleLibraryLoad=null,o(!0)};window.google&&t(),window.onGoogleLibraryLoad=t}),[]),i((()=>{if(!n||!e)return;google.accounts.id.initialize({client_id:"PLACEHOLDER",cb:()=>{}}),google.accounts.id.renderButton(n,{theme:"outline",size:"large",text:t.text,click_listener:()=>{t.initComplete.emit({credential:null})}})}),[n,e]),{setGoogleButtonDiv:c}}(this):function(t){const[e,o]=s(!1),[n,c]=s(null),[r,u]=s(400);let g=null;const a=()=>{n&&u(n.clientWidth)};return i((()=>{if(!n)return;const t=new ResizeObserver((()=>{g&&clearTimeout(g),g=setTimeout((()=>{a()}),50)}));return t.observe(n),a(),()=>t.disconnect()}),[n]),i((()=>{const e=()=>{window.onGoogleLibraryLoad=null;const e=l();"SquatchPortal"===e.type&&(google.accounts.id.initialize({client_id:e.env.googleOAuthId,callback:e=>{t.initComplete.emit(e)}}),o(!0))};window.google&&e(),window.onGoogleLibraryLoad=e}),[]),i((()=>{n&&e&&google.accounts.id.renderButton(n,{theme:"outline",size:"large",text:t.text,height:40,width:r})}),[n,e,r]),{setGoogleButtonDiv:c}}(this);return o("div",{ref:t,style:{width:"100%"}})}get el(){return n(this)}};export{u as sqm_google_sign_in}
@@ -1 +1 @@
1
- import{h as t}from"./p-f708da7b.js";import{c as s}from"./p-cef45012.js";import{A as e,a as r}from"./p-91521e9d.js";import{T as a}from"./p-c9f1dde7.js";const o=s({Wrapper:e,Column:r,ContinueButton:{width:"100%"}}),p=o.toString();function n(s){const{states:e,data:r,callbacks:n,content:i}=s;if(!e.loading)return e.success?t("div",{class:o.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",p),t(a,{type:"h3"},i.verifyEmailText),t("sqm-form-message",{exportparts:"success-icon"},t("div",{part:"successalert-text"},i.verifySuccessText)),t("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},i.continueText)):e.error||!r.oobCode?t("div",{class:o.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},p),t(a,{type:"h3"},i.verifyEmailText),t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},i.verifyInvalidText)),t("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,disabled:e.loading,exportparts:"base: primarybutton-base",type:"primary"},i.continueText)):void 0}export{n as P}
1
+ import{h as t}from"./p-c7c11325.js";import{c as s}from"./p-cef45012.js";import{A as r,a as e}from"./p-49b20dae.js";import{T as a}from"./p-204861a6.js";const o=s({Wrapper:r,Column:e,ContinueButton:{width:"100%"}}),p=o.toString();function n(s){const{states:r,data:e,callbacks:n,content:i}=s;if(!r.loading)return r.success?t("div",{class:o.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",p),t(a,{type:"h3"},i.verifyEmailText),t("sqm-form-message",{exportparts:"success-icon"},t("div",{part:"successalert-text"},i.verifySuccessText)),t("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},i.continueText)):r.error||!e.oobCode?t("div",{class:o.classes.Wrapper,part:"sqm-base"},t("style",{type:"text/css"},p),t(a,{type:"h3"},i.verifyEmailText),t("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},i.verifyInvalidText)),t("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,disabled:r.loading,exportparts:"base: primarybutton-base",type:"primary"},i.continueText)):void 0}export{n as P}
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var i=Array(e),a=0,t=0;t<r;t++)for(var o=arguments[t],n=0,s=o.length;n<s;n++,a++)i[a]=o[n];return i};System.register(["./p-59b028db.system.js","./p-e0a724dd.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-4bd679a7.system.js","./p-60f1cca2.system.js","./p-1a673057.system.js","./p-f1f6a13d.system.js","./p-74f43a08.system.js","./p-115dfc03.system.js","./p-4b9976cc.system.js","./p-a8645c1b.system.js"],(function(e){"use strict";var t,r,i,a,o,n,s,d,u,c,h,l,p,m,f,y,b,v,_,g,x,T,S,C,I,w,A,k,P,L,N,E,D,B;return{setters:[function(e){t=e.r;r=e.h},function(e){i=e.i},function(e){a=e.u;o=e.f;n=e.n},function(e){s=e.M;d=e._;u=e.J;c=e.L;h=e.I;l=e.S;p=e.i},function(e){m=e.c},function(e){f=e.g},function(){},function(e){y=e.E},function(e){b=e.g;v=e.L},function(e){_=e.p},function(e){g=e.T;x=e.a;T=e.U;S=e.C;C=e.b;I=e.S;w=e.c;A=e.G;k=e.d;P=e.e;L=e.F;N=e.f;E=e.g;D=e.h},function(e){B=e.e}],execute:function(){function R(e){var t,r;if(!((t=e.impactConnection)===null||t===void 0?void 0:t.connected)||!((r=e.impactConnection)===null||r===void 0?void 0:r.publisher)){return"/1"}var i=e.impactConnection.publisher,a=i.requiredTaxDocumentType,o=i.currentTaxDocument,n=i.withdrawalSettings,s=i.brandedSignup,d=i.payoutsAccount;if(a&&!o){if(d.hold&&d.holdReasons.includes("NO_W9_DOCUMENT"))return"/dashboard";return"/3"}if(!n&&s)return"/4";return"/dashboard"}function F(){var e,t,r,i,n;var p=d();var m=u();var f=c();var y=h({namespace:g,initialValue:"/loading"}),v=y[0],_=y[1];var B=h({namespace:x,initialValue:{}}),F=B[0],q=B[1];var H=h({namespace:T,initialValue:{firstName:undefined,lastName:undefined,email:undefined,countryCode:undefined,currency:undefined}}),V=H[0],j=H[1];var O=h({namespace:S,initialValue:[]}),M=O[0],G=O[1];var W=h({namespace:C,initialValue:[]}),U=W[0],Y=W[1];var Q=h({namespace:I,initialValue:[]}),Z=Q[0],z=Q[1];var J=l({namespace:w,query:A,skip:!m,options:{batch:false}}),K=J.data,X=J.errors;var $=((r=(t=(e=K===null||K===void 0?void 0:K.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.countryCode)||V.countryCode;l({namespace:k,query:P,skip:!m});var ee=l({namespace:L,query:N,skip:!m,variables:{filter:he()}}),te=ee.data,re=ee.refetch;var ie=l({namespace:E,query:D,skip:!m,variables:{locale:f}}).data;var ae=a((function(){var e,t;var r=(t=(e=te===null||te===void 0?void 0:te.impactFinanceNetworkSettings)===null||e===void 0?void 0:e.data)===null||t===void 0?void 0:t.reduce((function(e,t){var r,i;var a=(i=(r=ie===null||ie===void 0?void 0:ie.currencies)===null||r===void 0?void 0:r.data)===null||i===void 0?void 0:i.find((function(e){return e.currencyCode===t.currency}));if(!a)return e;if(e.find((function(e){return e.currencyCode===t.currency})))return e;if(V.countryCode&&t.countryCode!==$)return e;return __spreadArrays(e,[a])}),[]);return r}),[te,$]);var oe=(f===null||f===void 0?void 0:f.replace("_","-"))||"en";var ne=function(e,t){return e.displayName<t.displayName?-1:1};var se=(i=te===null||te===void 0?void 0:te.impactFinanceNetworkSettings)===null||i===void 0?void 0:i.data;var de=a((function(){return new Set(se===null||se===void 0?void 0:se.map((function(e){return e.countryCode})).filter((function(e){return e})))}),[se]);var ue=["CA","GB","US"];var ce=a((function(){return Array.from(de).map((function(e){return b({countryCode:e,locale:oe})})).sort(ne).reduce((function(e,t){if(ue.includes(t.countryCode))return __spreadArrays([t],e);return __spreadArrays(e,[t])}),[])}),[de]);o((function(){if(ce)z(ce)}),[ce]);o((function(){if(ae)G(ae)}),[ae]);o((function(){if(X){_("/error");return}if(!p||!m)return;if(K){var e=K===null||K===void 0?void 0:K.user;if(!e||v!=="/loading")return;var t=R(e);_(t)}}),[p,m,(n=K===null||K===void 0?void 0:K.user)===null||n===void 0?void 0:n.email,X]);function he(){var e,t,r;if(v==="/1")return{};if(v==="/4")return{currency_eq:(r=(t=(e=K===null||K===void 0?void 0:K.user)===null||e===void 0?void 0:e.impactConnection)===null||t===void 0?void 0:t.publisher)===null||r===void 0?void 0:r.currency};if($)return{countryCode_eq:$};return{}}return{step:v,setStep:_,context:F,namespace:s(g),loading:v==="/loading"}}var q=e("sqm_tax_and_cash",function(){function e(e){t(this,e);this.step1_firstName="First name";this.step1_lastName="Last name";this.step1_email="Email";this.step1_country="Country";this.step1_phoneNumber="Phone number";this.step1_address="Address";this.step1_city="City";this.step1_state="State";this.step1_province="Province";this.step1_region="Region";this.step1_postalCode="Postal code";this.step1_currency="Currency";this.step1_currencyHelpText="Choose your preferred payout currency";this.step1_allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";this.step1_personalInformation="Personal Information";this.step1_termsAndConditionsLabel="terms and conditions";this.step1_termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html";this.step1_searchForCurrencyText="Search for currency..";this.step2_indirectTax="Indirect Tax";this.step2_indirectTaxDescription="Indirect taxes (e.g. VAT, HST, GST) are transaction based taxes often applied to goods and services. Service providers are typically required to register with their tax authority and collect these taxes on behalf governments.";this.step2_indirectTaxDetails="Indirect tax details";this.step2_otherRegion="Registered for indirect tax";this.step2_otherRegionSubtext="If you’ve registered with your tax authority, add your information to stay tax compliant.";this.step2_notRegistered="Not registered for indirect tax";this.step2_notRegisteredSubtext="If you’ve never set up indirect tax with your tax authority, then you’re likely not considered registered.";this.step2_selectedRegion="Country / region of indirect tax";this.step2_indirectTaxNumber="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";this.step2_province="Province";this.step2_indirectTaxNumberError="{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";this.step2_qstNumber="QST number";this.step2_isRegisteredQST="I am registered for QST Tax";this.step2_isRegisteredSubRegionIncomeTax="I am an individual registered for Income Tax purposes in Spain, and withholding tax will apply to any payments made to me.";this.step2_subRegion="Sub-region";this.step2_subRegionTaxNumberLabel="Income Tax Number";this.step2_cannotChangeInfoAlert="Changes to your personal and indirect tax information can only be made through our {supportLink} after you complete this step. Make sure these are correct before continuing.";this.step3_taxForm="Tax form";this.step3_taxFormLabel="{documentType} Tax Form";this.step3_participantType="Participant type";this.step3_businessEntity="I represent a business";this.step3_individualParticipant="I am an individual participant";this.step3_taxFormDescription="Participants based in the US need to submit a {documentType} form.";this.step3_taxFormDescriptionIndividualParticipant="Participants residing outside of the US, joining the referral program of a US-based company, need to submit a {documentType} form.";this.step3_taxFormDescriptionBusinessEntity="Participants residing outside of the US working with a US Brand need to submit a {documentType} form.";this.step3_docusignExpired="For your security and privacy, we automatically end your session after 20 minutes of inactivity. Please refresh and re-enter your tax information to continue.";this.step3_docusignSessionWarning="For your security, we automatically end your session when you have not interacted with the form after 20 minutes.";this.step3_docusignError="There was a problem displaying this form. Please refresh the page. If this problem continues, contact our {supportLink}.";this.step3_refreshButton="Refresh Page";this.step3_exitButton="Exit";this.step3_modalTitle="Important Note";this.step3_modalDescription="Remember the name you enter in your tax form. It must exactly match the bank account holder name configured in the next step. {br}{br}Otherwise you will have to resubmit your form again and there will be delays receiving your payout.";this.step3_modalButtonText="I understand";this.step4_taxAndPayouts="Payouts";this.step4_directlyToBankAccount="Directly to my bank account";this.step4_toPayPalAccount="PayPal (2% processing fee capped to {feeCap})";this.step4_paymentScheduleBalanceThreshold="Pay me when my balance reaches a threshold";this.step4_paymentScheduleFixedDay="Pay me on a fixed day of the month";this.step4_paymentDaySelectLabel="Payment Day";this.step4_paymentThresholdSelectLabel="Payment threshold";this.step4_paymentDayFirstOfMonthLabelText="1st of the month";this.step4_paymentDayFifteenthOfMonthLabelText="15th of the month";this.step4_paymentMethod="Payment method";this.step4_paymentSchedule="Payment schedule";this.step4_paymentMethodSubtext="Payouts will be sent from our referral program provider, impact.com.";this.step4_payPalInputLabel="PayPal email";this.step4_bankLocationLabel="Bank country location";this.step4_beneficiaryAccountNameLabel="Account holder name";this.step4_beneficiaryAccountNameDescription="The beneficiary name of your bank account. Ensure this matches the name on your tax form.";this.step4_bankAccountTypeLabel="Bank account type";this.step4_checkingSelectItemLabel="Checking";this.step4_savingsSelectItemLabel="Savings";this.step4_bankAccountNumberLabel="Bank account number";this.step4_ibanLabel="IBAN";this.step4_swiftCodeLabel="SWIFT code";this.step4_routingCodeLabel="{bankCountry, select, AU {BSB number} CA {Routing number} CZ {Bank code} HK {Clearing code} SG {Clearing code} US {ABA routing number} NZ {BSB number} ZA {Bank/Branch number} IN {IFSC} CNY {CNAPS} other {Routing code} }";this.step4_bankNameLabel="Bank name";this.step4_classificationEntityLabel="Classification entity";this.step4_businessSelectItemLabel="Business";this.step4_individualSelectItemLabel="Individual";this.step4_foreignSelectItemLabel="Foreign";this.step4_classificationCPFLabel="Classification CPF";this.step4_patronymicNameLabel="Patronymic name";this.step4_voCodeLabel="VO code";this.step4_agencyCodeLabel="Agency code";this.step4_branchCodeLabel="Branch code";this.step4_classificationLabel="Classification";this.step4_taxPayerIdLabel="Beneficiary INN";this.step4_bankAddressLabel="Bank address";this.step4_bankCityLabel="Bank city";this.step4_bankStateLabel="Bank Province / State";this.step4_bankPostalCodeLabel="Bank postal code";this.step4_eftWithdrawalLabel="EFT Withdrawal (free)";this.step4_fxWireProcessingFeeLabel="FX Wire (Processing Fee {currency}{defaultFxFee}.00)";this.step4_verifyEmailHeaderText="Verify your email";this.step4_verifyEmailDescriptionText="Verify your email to update your payment settings. Enter the code sent to {email} from our referral provider, impact.com.";this.step4_modalTitle="Important Note";this.step4_modalDescription="Updating payment information places your account and payouts on hold for up to 48 hours while we verify your change. Payments scheduled during the hold period are skipped.";this.step4_modalButtonText="I understand, update my information";this.dashboard_statusTextActive="Active";this.dashboard_statusTextNotActive="Invalid Tax Form";this.dashboard_statusTextNotVerified="Not Verified";this.dashboard_statusTextRequired="Required";this.dashboard_requiredTaxForm="Your payouts are on hold until you submit a {taxFormType} tax form.";this.dashboard_badgeTextSubmittedOn="Submitted on {dateSubmitted}.";this.dashboard_badgeTextSubmittedOnW8="Submitted on {dateSubmitted}. Valid for three years after submission.";this.dashboard_badgeTextAwaitingReview="Awaiting review. Submitted on {dateSubmitted}.";this.dashboard_taxAlertHeaderNotActiveW9="Your W-9 tax form has personal information that doesn’t match your profile";this.dashboard_taxAlertHeaderNotActiveW8="{documentType} tax form is invalid";this.dashboard_taxAlertNotActiveMessageW9="Please resubmit a new {documentType} form.";this.dashboard_taxAlertNotActiveMessageW8="Your tax form may have expired or has personal information that doesn’t match your profile. Please submit a new {documentType} form.";this.dashboard_invalidForm="Make sure your information is correct and submit new form.";this.dashboard_bankingInformationSectionHeader="Payout Information";this.dashboard_taxDocumentSectionHeader="Tax documents";this.dashboard_taxDocumentSectionSubHeader="{documentType} tax form";this.dashboard_noFormNeededSubtext="Tax documents are only required if you are based in the US or joining the referral program of a US based brand.";this.dashboard_indirectTaxInfoSectionHeader="Indirect tax";this.dashboard_indirectTaxInfoCanada="Registered in {province}, {country}";this.dashboard_indirectTaxInfoOtherCountry="Registered in {country}";this.dashboard_indirectTaxInfoSpain="Registered in {country}, {subRegion}";this.dashboard_indirectTaxTooltipSupport="To make changes to your indirect tax information, please contact our {supportLink}.";this.dashboard_indirectTaxDetails="{indirectTaxType} number: {indirectTaxNumber}";this.dashboard_newFormButton="Submit new form";this.dashboard_editPaymentInformationButton="Edit Payout Information";this.dashboard_notRegisteredForTax="Not registered for indirect tax. If you’ve previously registered with your tax authority, contact our {supportLink} to add your information to stay tax compliant.";this.dashboard_qstNumber="QST number: {qstNumber}";this.dashboard_subRegionTaxNumber="Income tax number: {subRegionTaxNumber}";this.dashboard_statusBadgeText="{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";this.dashboard_thresholdPayoutText="Next payout occurs when balance is {thresholdBalance}";this.dashboard_accountText="Account";this.dashboard_invoiceColumnTitle="Invoice";this.dashboard_dateColumnTitle="Date";this.dashboard_earningsColumnTitle="Earnings";this.dashboard_indirectTaxColumnTitle="Indirect tax";this.dashboard_payoutFromImpact="Your balance may take up to 24 hours to update. Payouts will be sent from our referral program provider, impact.com.";this.dashboard_earningsAfterTaxColumnTitle="Earnings after tax";this.dashboard_payoutHoldAlertHeader="Your payout is on hold";this.dashboard_payoutHoldAlertDescription="Please contact our {supportLink} or check your inbox for an email from our referral program provider, impact.com.";this.dashboard_payoutMissingInformationText="Missing banking information, go to Impact.com to resolve.";this.dashboard_invoiceDescription="View and download your invoices to report your earnings and stay tax compliant.";this.dashboard_invoicePrevLabel="Prev";this.dashboard_invoiceMoreLabel="Next";this.dashboard_invoiceHeader="Invoices";this.dashboard_invoiceEmptyStateHeader="View your invoice details";this.dashboard_invoiceEmptyStateText="Refer a friend to view the status of your invoices and rewards earned";this.dashboard_replaceTaxFormModalHeader="Replace existing tax form";this.dashboard_replaceTaxFormModalBodyText="Submitting a new tax form will remove your existing form. Make sure to sign and complete your new tax form to prevent any issues with your next payout.";this.dashboard_verificationRequiredHeader="Verify your identity";this.dashboard_verificationRequiredDescription="Complete your verification to start receiving your cash rewards. It should only take a few minutes verify. If you run in to an issue verifying your identity contact our {supportLink}.";this.dashboard_verificationRequiredInternalHeader="Identity Verification in Progress";this.dashboard_verificationRequiredInternalDescription="Identity verification submission has been received. Our system is currently performing additional checks and analyzing the results. You will be updated shortly. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationReviewInternalHeader="Identity Verification Under Review";this.dashboard_verificationReviewInternalDescription="Identity verification requires further review due to a potential error. Our team is reviewing the information and will update you shortly. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationFailedInternalHeader="Identity Verification Unsuccessful";this.dashboard_verificationFailedInternalDescription="Identity verification has failed. Our team is reviewing the report and will contact you with further information. If you don't hear from us contact our {supportLink}.";this.dashboard_verificationRequiredButtonText="Start Verification";this.dashboard_w9RequiredHeader="Your next payout is on hold";this.dashboard_w9RequiredDescription="You have surpassed the $600 threshold requiring a W-9 form or have multiple accounts with impact.com. To remove the hold, please submit your W-9 form.";this.dashboard_accountReviewHeader="Your account is under review";this.dashboard_accountReviewDescription="This process takes 48 hours, payouts are on hold until it's completed. You will receive an email from our referral provider, Impact.com, if any issues arise. It contains details on how to resolve this issue. If you need further assistance, please reach out to our {supportLink}.";this.dashboard_termsAndConditions="Terms and Conditions";this.dashboard_w9RequiredButtonText="Submit W-9";this.formStep="Step {step} of {count}";this.generalErrorTitle="There was a problem submitting your information";this.generalErrorDescription="Please review your information and try again. If this problem continues, contact our {supportLink}.";this.fieldRequiredError="{fieldName} is required";this.invalidCharacterError="{fieldName} includes characters that aren't supported.";this.fieldInvalidError="{fieldName} is invalid";this.continueButton="Continue";this.backButton="Back";this.cancelButton="Cancel";this.isPartnerAlertHeader="An account with this email already exists with our referral program provider, impact.com";this.isPartnerAlertDescription="If you don’t recognize this referral program provider or believe this is a mistake, please contact our {supportLink} or sign up for this referral program with a different email.";this.searchForCountryText="Search for country..";this.loadingErrorAlertHeader="There was a problem loading your form";this.loadingErrorAlertDescription="Please refresh the page and try again. If this problem continues, contact our {supportLink}.";this.taxAndPayoutsDescription="Submit your tax documents and add your banking information to receive your rewards.";this.supportLink="support team";this.termsAndConditions="Terms and Conditions";this.stateController="{}";n(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getGeneralStepTextProps=function(e){var t=f(this);return __assign(__assign({},B(t,e)),{generalErrorTitle:t.generalErrorTitle,generalErrorDescription:t.generalErrorDescription,fieldRequiredError:t.fieldRequiredError,invalidCharacterError:t.invalidCharacterError,fieldInvalidError:t.fieldInvalidError,continueButton:t.continueButton,backButton:t.backButton,cancelButton:t.cancelButton,isPartnerAlertHeader:t.isPartnerAlertHeader,isPartnerAlertDescription:t.isPartnerAlertDescription,loadingErrorAlertHeader:t.loadingErrorAlertHeader,loadingErrorAlertDescription:t.loadingErrorAlertDescription,taxAndPayoutsDescription:t.taxAndPayoutsDescription,searchForCountryText:t.searchForCountryText,formStep:t.formStep,supportLink:t.supportLink})};e.prototype.render=function(){var e=this;var t,a;var o=p()?H(this):F();if((t=this.demoData)===null||t===void 0?void 0:t.showTextProps){var n=f(this);return r("div",null,(a=Object.keys(n))===null||a===void 0?void 0:a.map((function(t){if(t==="demoData")return;return r("div",null,r("b",null,t,":")," ",e[t],r("hr",null))})))}switch(o.step){case"/1":return r("sqm-user-info-form",Object.assign({},this.getGeneralStepTextProps("step1_")));case"/2":return r("sqm-indirect-tax-form",Object.assign({},this.getGeneralStepTextProps("step2_")));case"/3":return r("sqm-docusign-form",Object.assign({},this.getGeneralStepTextProps("step3_")));case"/4":return r("sqm-banking-info-form",Object.assign({},this.getGeneralStepTextProps("step4_")));case"/dashboard":return r("sqm-tax-and-cash-dashboard",Object.assign({},this.getGeneralStepTextProps("dashboard_")));case"/error":return r(y,{loadingErrorAlertHeader:this.loadingErrorAlertHeader,loadingErrorAlertDescription:i.formatMessage({id:"loadingErrorAlertDescription",defaultMessage:this.loadingErrorAlertDescription},{supportLink:r("a",{target:"_blank",href:"mailto:advocate-support@impact.com"},this.supportLink)})})}return r(v,null)};return e}());function H(e){var t=h({namespace:g,initialValue:"/1"}),r=t[0],i=t[1];var a=_(e.stateController);var o=Object.keys(a).reduce((function(e,t){var r;return t==="sqm-tax-and-cash"?__assign(__assign({},e),a[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=a[t],r))}),{});return m({step:r,setStep:i},e.demoData||o||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -0,0 +1 @@
1
+ import{h as s,c as r,r as t}from"./p-c7c11325.js";import{n as o}from"./p-63e29387.js";import"./p-0ec54f97.js";import{a as c}from"./p-f5fff87e.js";const a=({},t)=>s(r,null,t),l=class{constructor(s){t(this,s),o(this)}disconnectedCallback(){}render(){return c([this.header]),s(a,null,s("slot",null))}};export{l as sqm_tab}
@@ -1 +1 @@
1
- System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-5488fdd9.system.js"],(function(t){"use strict";var n,e,s,r,u;return{setters:[function(t){n=t.h;e=t.c;s=t.r},function(t){r=t.n},function(){},function(t){u=t.a}],execute:function(){var c=function(t,s){return n(e,null,s)};var i=t("sqm_tab",function(){function t(t){s(this,t);r(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){u([this.header]);return n(c,null,n("slot",null))};return t}())}}}));
1
+ System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-bb5d153f.system.js"],(function(t){"use strict";var n,e,s,r,u;return{setters:[function(t){n=t.h;e=t.c;s=t.r},function(t){r=t.n},function(){},function(t){u=t.a}],execute:function(){var c=function(t,s){return n(e,null,s)};var i=t("sqm_tab",function(){function t(t){s(this,t);r(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){u([this.header]);return n(c,null,n("slot",null))};return t}())}}}));
@@ -1 +1 @@
1
- import{r,h as n,c as s}from"./p-f708da7b.js";const e=class{constructor(n){r(this,n)}async renderCell(){return n("span",null)}async renderLabel(r){return n("slot",{name:`column-${r}`})}render(){return n(s,null)}};export{e as raisins_plop_target}
1
+ import{r,h as n,c as s}from"./p-c7c11325.js";const e=class{constructor(n){r(this,n)}async renderCell(){return n("span",null)}async renderLabel(r){return n("slot",{name:`column-${r}`})}render(){return n(s,null)}};export{e as raisins_plop_target}
@@ -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-db1a0db1.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-6dc742bc.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 I}from"./p-460155de.js";import{u as P,t as _}from"./p-49400aab.js";import{T as A}from"./p-204861a6.js";const D=[["AVAILABLE"],["PENDING"],["CANCELLED"],["EXPIRED"],["REDEEMED"]],f=["Rajesh","Pierre","Ji-Ho","Chinua","Charleston","Sally","Gael","Jill","Jane","Khadija"],g=["Smith","Parker","Kent","Chew","Stark","Banner","Jones","Odinson","Pym","Rogers"],R=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(y,null),a=t(T,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:f[Math.floor(Math.random()*f.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:D[Math.floor(Math.random()*D.length)],globalRewardKey:null,programRewardKey:"partnerReward",meta:{...I()},rewardRedemptionTransactions:{data:[{exchangedRewards:{data:[{prettyValue:"CAD10.00 Visa* Prepaid Card CAD",type:"INTEGRATION",fuelTankCode:null,globalRewardKey:"gc1"}]}}]}}]:[],childNodes:{data:[{data:{id:"5cae6b16cc540e209db45cb3",statuses:D[Math.floor(Math.random()*D.length)],type:"PCT_DISCOUNT",value:50},depth:1},{data:{id:"5cae6b16cc540e209db45cfa",statuses:D[Math.floor(Math.random()*D.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",_(e,(()=>e.renderLabel(t)))}return _(e,(()=>e.renderLabel()))}));let c;if(i){const e=null==n?void 0:n.map((async e=>_(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=>_(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):P(this,e,a);return h([this.showReferrer,this.perPage]),t(p,{states:r,data:s,callbacks:l,elements:u})}};function y(){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 T(){return t("slot",{name:"loading"},t(b,null),t(b,null),t(b,null),t(b,null))}function b(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}const C=class{constructor(t){e(this,t),this.ignored=!0,l(this)}disconnectedCallback(){}render(){return t("div",{innerHTML:this.innerTemplate})}},x=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 was scheduled for payment based on your settings, barring any account holds.} 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||"INVALID_W9_ELECTRONIC_DOCUMENT"===e||"INVALID_W9_ELECTRONIC_DOCUMENT_CHECK_INTERNAL"===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(A,{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(A,{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(A,{type:"p"},p)),"PAYOUT_FAILED"===d&&t("div",null,t(A,{type:"p"},p)),"PAYOUT_CANCELLED"===d&&t("div",null,t(A,{type:"p"},p)),"PENDING_TAX_REVIEW"===d&&t("div",null,t(A,{type:"p"},p)),"PENDING_NEW_TAX_FORM"===d&&t("div",null,t(A,{type:"p"},p)),"PENDING_TAX_SUBMISSION"===d&&t("div",null,t(A,{type:"p"},p)),"PENDING_PARTNER_CREATION"===d&&t("div",null,t(A,{type:"p"},p)),"DENIED"===d&&(null===(o=e.referral)||void 0===o?void 0:o.dateModerated)&&t("div",null,t(A,{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(A,{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(A,{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(A,{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(A,{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(A,{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 was scheduled for payment based on your settings, barring any account holds.} 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)}}),U=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"}})}},q=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{R as sqm_referral_table,C as sqm_referral_table_cell,x 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,U as sqm_referral_table_status_column,q as sqm_referral_table_user_cell,V as sqm_referral_table_user_column}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,n,e,r){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?e(t.value):o(t.value).then(u,a)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(n){return c([t,n])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-f26aedcd.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.c}],execute:function(){var o=t("raisins_plop_target",function(){function t(t){n(this,t)}t.prototype.renderCell=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e("span",null)]}))}))};t.prototype.renderLabel=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,e("slot",{name:"column-"+t})]}))}))};t.prototype.render=function(){return e(r,null)};return t}())}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,n,e,r){function o(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,i){function u(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r["throw"](t))}catch(t){i(t)}}function c(t){t.done?e(t.value):o(t.value).then(u,a)}c((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(n){return c([t,n])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(e)try{if(r=1,o&&(i=u[0]&2?o["return"]:u[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;if(o=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;o=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){e.label=u[1];break}if(u[0]===6&&e.label<i[1]){e.label=i[1];i=u;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(u);break}if(i[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js"],(function(t){"use strict";var n,e,r;return{setters:[function(t){n=t.r;e=t.h;r=t.c}],execute:function(){var o=t("raisins_plop_target",function(){function t(t){n(this,t)}t.prototype.renderCell=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e("span",null)]}))}))};t.prototype.renderLabel=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,e("slot",{name:"column-"+t})]}))}))};t.prototype.render=function(){return e(r,null)};return t}())}}}));
@@ -1,4 +1,4 @@
1
- import{r as t,h as e}from"./p-f708da7b.js";import{k as r,f as i,n as o}from"./p-cd651f81.js";import"./p-65069b66.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-94a876b9.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-c9f1dde7.js";import{P as c}from"./p-63a75798.js";import{i as v}from"./p-8c23d1b8.js";const f=s.gql`
1
+ import{r as t,h as e}from"./p-c7c11325.js";import"./p-db1a0db1.js";import{k as r,f as i,n as o}from"./p-63e29387.js";import{d as s,J as a,w as l,$ as n,i as u}from"./p-0ec54f97.js";import{c as d}from"./p-c1086930.js";import{g as m}from"./p-6dc742bc.js";import"./p-cef45012.js";import"./p-204861a6.js";import{P as c}from"./p-aa8c6332.js";import{i as v}from"./p-513f5d80.js";const f=s.gql`
2
2
  query {
3
3
  viewer {
4
4
  ... on User {
@@ -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-c9f1dde7.js";import{P as f}from"./p-7a9290ba.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-6dc742bc.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}
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();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 a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-f26aedcd.system.js","./p-48135f99.system.js","./p-6cd4f2b1.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-cd1d497f.system.js","./p-e07bc6c4.system.js","./p-8175e85f.system.js","./p-4794641c.system.js","./p-e5d0375e.system.js","./p-9d362d44.system.js","./p-13ed8586.system.js"],(function(e){"use strict";var t,r,n,a,i,s,o,l,u,c,f,d,h;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.k;a=e.n},function(e){i=e.i;s=e.j},function(e){o=e.j},function(e){l=e.c},function(e){u=e.c},function(){},function(){},function(e){c=e.a},function(e){f=e.B},function(e){d=e.P},function(){},function(e){h=e.u}],execute:function(){var m=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);m.prototype.name="InvalidTokenError";function g(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();if(r.length<2){r="0"+r}return"%"+r})))}function p(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return g(t)}catch(e){return atob(t)}}function b(e,t){if(typeof e!=="string"){throw new m("Invalid token specified: must be a string")}t||(t={});var r=t.header===true?0:1;var n=e.split(".")[r];if(typeof n!=="string"){throw new m("Invalid token specified: missing part #"+(r+1))}var a;try{a=p(n)}catch(e){throw new m("Invalid token specified: invalid base64 for part #"+(r+1)+" ("+e.message+")")}try{return JSON.parse(a)}catch(e){throw new m("Invalid token specified: invalid json for part #"+(r+1)+" ("+e.message+")")}}function v(e){var t=this;var r=n(null),a=r[0],i=r[1];var s=c(),l=s[0],u=s[1];var f=n({mode:"base"}),d=f[0],h=f[1];var m=function(r){return __awaiter(t,void 0,void 0,(function(){var t,n,a;return __generator(this,(function(s){t=r.target.getFormControls();n={};a=null;t.forEach((function(t){if(!t.name||t.name!=="/email")return;o.set(n,t.name,t.value);if(t.required&&!t.value)a=e.requiredFieldErrorMessage;if(typeof t.validationError==="function"){var r=t.validationError;var i=r({control:t,key:"email",value:t.value});if(i)a=i}}));if(a){i(a);return[2]}u(__assign(__assign({},l),{initialData:__assign(__assign({},l===null||l===void 0?void 0:l.initialData),n)}));h({mode:"manual"});return[2]}))}))};var g=function(e){var t;if(!((t=e.detail)===null||t===void 0?void 0:t.credential))return;try{var r=b(e.detail.credential);u(__assign(__assign({},l),{_googleOAuthIdToken:e.detail.credential,initialData:{email:r.email,firstName:r.given_name,lastName:r.family_name}}));h({mode:"google"})}catch(e){console.error("Failed to decode Google Sign In credential JWT:",e)}};return{showRegistrationForm:d,emailValidationError:a,handleGoogleInit:g,handleEmailSubmit:m}}var _=e("sqm_portal_google_registration_form",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;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";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=i()?w(this):h(this),t=e.states,n=e.callbacks,a=e.refs;var o={LoginButton:{"&::part(label)":{padding:"0"}}};var l=u(o);var c=l.toString();var m=i()?y(this):v(this),g=m.handleGoogleInit,p=m.handleEmailSubmit,b=m.showRegistrationForm,_=m.emailValidationError;var E={formData:r("slot",{name:"formData"}),googleButton:r("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:g}),secondaryButton:r("slot",{name:"secondaryButton"},r("style",null,c),r("span",null,this.loginCTA," ",r("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:function(){return s.push(t.loginPath)},className:l.classes.LoginButton},this.loginLabel)," ")),terms:r("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};if(b.mode==="base"){return r(f,{states:{error:_},callbacks:{handleEmailSubmit:p},content:E})}return r(d,{states:__assign(__assign({},t),{emailDisabled:true,hidePasswords:b.mode==="google"}),callbacks:n,content:__assign({},E),refs:a})};return e}());function w(e){var t=this;return l({states:{error:"",loading:false,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs||false,customPasswordField:false,loginPath:"/login"},callbacks:{handleGoogleInit:function(){},setShowRegistrationForm:function(){},submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},inputFunction:function(){}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function y(e){var t=n({mode:"base"}),r=t[0],a=t[1];return l({emailValidationError:true,handleEmailSubmit:function(){return a({mode:"manual"})},showRegistrationForm:r,handleGoogleInit:function(){return a({mode:"google"})}},e.demoGoogleData||{},{arrayMerge:function(e,t){return t}})}}}}));
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();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 a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{l(n.next(e))}catch(e){i(e)}}function o(e){try{l(n["throw"](e))}catch(e){i(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-59b028db.system.js","./p-4f5329a2.system.js","./p-171310d9.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-8a6494c7.system.js","./p-67ad2252.system.js","./p-6c82d60c.system.js","./p-be88596c.system.js","./p-b6911812.system.js","./p-9d362d44.system.js","./p-537a3894.system.js"],(function(e){"use strict";var t,r,n,a,i,s,o,l,u,c,d,f,h;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.k;a=e.n},function(e){i=e.i;s=e.j},function(e){o=e.j},function(e){l=e.c},function(e){u=e.c},function(){},function(){},function(e){c=e.a},function(e){d=e.B},function(e){f=e.P},function(){},function(e){h=e.u}],execute:function(){var m=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);m.prototype.name="InvalidTokenError";function g(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){var r=t.charCodeAt(0).toString(16).toUpperCase();if(r.length<2){r="0"+r}return"%"+r})))}function p(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return g(t)}catch(e){return atob(t)}}function b(e,t){if(typeof e!=="string"){throw new m("Invalid token specified: must be a string")}t||(t={});var r=t.header===true?0:1;var n=e.split(".")[r];if(typeof n!=="string"){throw new m("Invalid token specified: missing part #"+(r+1))}var a;try{a=p(n)}catch(e){throw new m("Invalid token specified: invalid base64 for part #"+(r+1)+" ("+e.message+")")}try{return JSON.parse(a)}catch(e){throw new m("Invalid token specified: invalid json for part #"+(r+1)+" ("+e.message+")")}}function v(e){var t=this;var r=n(null),a=r[0],i=r[1];var s=c(),l=s[0],u=s[1];var d=n({mode:"base"}),f=d[0],h=d[1];var m=function(r){return __awaiter(t,void 0,void 0,(function(){var t,n,a;return __generator(this,(function(s){t=r.target.getFormControls();n={};a=null;t.forEach((function(t){if(!t.name||t.name!=="/email")return;o.set(n,t.name,t.value);if(t.required&&!t.value)a=e.requiredFieldErrorMessage;if(typeof t.validationError==="function"){var r=t.validationError;var i=r({control:t,key:"email",value:t.value});if(i)a=i}}));if(a){i(a);return[2]}u(__assign(__assign({},l),{initialData:__assign(__assign({},l===null||l===void 0?void 0:l.initialData),n)}));h({mode:"manual"});return[2]}))}))};var g=function(e){var t;if(!((t=e.detail)===null||t===void 0?void 0:t.credential))return;try{var r=b(e.detail.credential);u(__assign(__assign({},l),{_googleOAuthIdToken:e.detail.credential,initialData:{email:r.email,firstName:r.given_name,lastName:r.family_name}}));h({mode:"google"})}catch(e){console.error("Failed to decode Google Sign In credential JWT:",e)}};return{showRegistrationForm:f,emailValidationError:a,handleGoogleInit:g,handleEmailSubmit:m}}var _=e("sqm_portal_google_registration_form",function(){function e(e){t(this,e);this.ignored=true;this.nextPage="/";this.redirectPath="/verifyEmail";this.emailLabel="Email";this.passwordLabel="Password";this.submitLabel="Register";this.loginLabel="Sign in";this.confirmPasswordLabel="Confirm Password";this.confirmPassword=false;this.disablePasswordValidation=false;this.hideInputs=false;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";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=i()?w(this):h(this),t=e.states,n=e.callbacks,a=e.refs;var o={LoginButton:{"&::part(label)":{padding:"0"}}};var l=u(o);var c=l.toString();var m=i()?y(this):v(this),g=m.handleGoogleInit,p=m.handleEmailSubmit,b=m.showRegistrationForm,_=m.emailValidationError;var E={formData:r("slot",{name:"formData"}),googleButton:r("sqm-google-sign-in",{text:this.googleButtonText,onInitComplete:g}),secondaryButton:r("slot",{name:"secondaryButton"},r("style",null,c),r("span",null,this.loginCTA," ",r("sl-button",{size:"large",type:"text",disabled:t.loading,onClick:function(){return s.push(t.loginPath)},className:l.classes.LoginButton},this.loginLabel)," ")),terms:r("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};if(b.mode==="base"){return r(d,{states:{error:_},callbacks:{handleEmailSubmit:p},content:E})}return r(f,{states:__assign(__assign({},t),{emailDisabled:true,hidePasswords:b.mode==="google"}),callbacks:n,content:__assign({},E),refs:a})};return e}());function w(e){var t=this;return l({states:{error:"",loading:false,confirmPassword:e.confirmPassword,hideInputs:e.hideInputs||false,customPasswordField:false,loginPath:"/login"},callbacks:{handleGoogleInit:function(){},setShowRegistrationForm:function(){},submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){console.log("submit");return[2]}))}))},inputFunction:function(){}},content:{pageLabel:"Register",formData:null,passwordField:null},refs:{formRef:{}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function y(e){var t=n({mode:"base"}),r=t[0],a=t[1];return l({emailValidationError:true,handleEmailSubmit:function(){return a({mode:"manual"})},showRegistrationForm:r,handleGoogleInit:function(){return a({mode:"google"})}},e.demoGoogleData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-c7c11325.js";import{c as o}from"./p-cef45012.js";import{H as r}from"./p-49b20dae.js";const n={right:"\nsl-input::part(input){\n text-align: right;\n}",center:" \nsl-input::part(input){\n text-align: center;\n}",left:""};function i(i){const{buttonStyle:s="icon"}=i,l=o({HostBlock:r,inputStyle:{"&::part(input)":{textOverflow:"ellipsis",width:"100%",color:i.textColor||"var(--sl-input-color)"},"&::part(base)":{"--sl-input-border-radius":`${i.borderRadius}px`||"var(--sqm-border-radius-normal)","--sl-input-border-color":"var(--sqm-border-color)","--sl-input-border-color-hover":"#999999","--sl-input-border-color-focus":"#999999","--sl-input-color-hover":"var(--sqm-input-color-hover)","--sl-input-color-focus":"var(--sqm-input-color-focus)","--sl-input-color-disabled":"var(--sqm-input-disabled-color)","--sl-input-background-color-focus":"var(--sqm-input-background)","--sl-input-background-color-hover":"var(--sqm-input-background)",cursor:"pointer",overflow:"visible",borderRadius:`${i.borderRadius}px`||"var(--sqm-border-radius-normal)",background:i.backgroundColor||"var(--sqm-input-background)",border:`var(--sqm-border-thickness) solid ${i.borderColor||"var(--sqm-input-border-color)"}`},width:"100%"},icon:{"&::part(base)":{color:i.textColor||"var(--sqm-text)"}},inputErrorStyle:{},ContainerDiv:{display:"flex",alignItems:"flex-start",flexDirection:"column",justifyContent:"center",gap:"var(--sl-spacing-x-small)",width:"100%"},containerStyle:{display:"flex",alignItems:"center",gap:"var(--sl-spacing-x-small)",width:"100%"},errorTextStyle:{margin:"0",color:"var(--sqm-danger-color-text)"},notificationTextStyle:{margin:"0",color:"inherit"}}),e=l.toString(),a=!i.loading&&i.error,c=a?i.inputPlaceholderText:i.copyString,u=a||i.loading||i.disabled,p=t("sl-tooltip",{trigger:"manual",content:i.tooltiptext,placement:"button-below"===i.buttonStyle?"bottom":"button-outside"===i.buttonStyle?"top":"top-end",disabled:i.disabled,open:i.open,skidding:"icon"===i.buttonStyle?-5:0,slot:"suffix"},"icon"===s?t("sl-icon-button",{class:l.classes.icon,exportparts:"base: icon-button-base",onClick:()=>{var t;return null===(t=i.onClick)||void 0===t?void 0:t.call(i)},name:"files",disabled:u}):t("sl-button",{exportparts:`base: ${i.buttonType||"primary"}button-base`,onClick:()=>{var t;return null===(t=i.onClick)||void 0===t?void 0:t.call(i)},size:"medium",style:{width:`${"button-below"===s&&"100%"}`},disabled:u,type:"primary"},i.copyButtonLabel||"Copy"));return t("div",{class:l.classes.ContainerDiv},t("style",{type:"text/css"},e,"\n :host{\n display: block; \n width: 100%;\n }\n",n[i.textAlign],u&&"\n sl-input::part(input){\n cursor: default;\n }\n"),t("div",{class:l.classes.containerStyle,style:{flexDirection:"button-below"===s?"column":"row"}},t("sl-input",{class:`${l.classes.inputStyle} ${a?l.classes.inputErrorStyle:""}`,value:i.loading?"Loading...":c,readonly:!0,disabled:u},"icon"===s&&p,a&&t("p",{slot:"help-text",class:l.classes.errorTextStyle},i.errorText)),("button-outside"===s||"button-below"===s)&&p),i.isCopied&&i.showNotificationText&&i.notificationText&&t("p",{part:"sqm-notification-text",class:l.classes.notificationTextStyle},i.notificationText))}export{i as C}
@@ -1 +1 @@
1
- import{l as e}from"./p-5bedb58c.js";const t=(e=4,t)=>({data:[...Array(e)].map((()=>s(t)))}),a=["POINT","TICKET","GIFT"],d=["Points","Tickets","Gifts"],r=["AVAILABLE","PENDING","CANCELLED","EXPIRED","REDEEMED"],n=["US_TAX","SCHEDULED","UNHANDLED_ERROR"],E=["PENDING","IN_PROGRESS","FAILED","UNCLAIMED","ONHOLD","REFUNDED","RETURNED","REVERSED","BLOCKED","DENIED"],l=()=>{var t,a;const d=Math.floor(10*Math.random())>=5?null===(t=e.DateTime.now())||void 0===t?void 0:t.minus({day:1}):null,r=Math.floor(10*Math.random())>=5?null===(a=e.DateTime.now())||void 0===a?void 0:a.minus({day:1}):null,n=function(e){if(e)return"SUCCESS";const t=Math.floor(10*Math.random());return E[t]}(d);return{status:"DENIED"===n?"WARN":d?"SUCCESS":Math.floor(10*Math.random())>=8?"ERROR":"SUCCESS",customMeta:{datePaidOut:d,dateLastAttempted:r,dateFirstAttempted:r,rawPayPalInfo:{transaction_status:n}}}},s=t=>{let E,s,u,i,R=!1,o=0;const D=e.DateTime.now(),M=Math.floor(3*Math.random()),h=t||r[Math.floor(5*Math.random())],m=a[M],y=d[M],c=Math.floor(100*Math.random())+2;if("AVAILABLE"===h)o=Math.floor(Math.random()*c),i=Math.floor(10*Math.random())<3?D.plus({days:7}).toMillis():null;else if("EXPIRED"===h)R=!0,o=Math.floor(Math.random()*c),i=D.minus({days:1}).toMillis();else if("PENDING"===h){const e=n[Math.floor(3*Math.random())];E=[e],"SCHEDULED"===e&&(s=D.plus({days:6}).toMillis())}else"REDEEMED"===h?R=!0:(R=!0,u=D.minus({days:2}).toMillis());const p=Math.floor(3*Math.random());return{id:"61f7878e096c9265de88b46f",type:"CREDIT",value:c,unit:m,name:null,dateGiven:D.minus({days:3}).toMillis(),dateExpires:i,dateCancelled:u,dateRedeemed:"REDEEMED"===h?D.plus({days:2}).toMillis():null,dateScheduledFor:s,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:`${c} ${y}`,prettyValueNumber:`${c}`,prettyAvailableNumber:R?"0":""+(c-o),prettyRedeemedNumber:R&&!o?"0":`${o}`,programId:1===p?"program-id":null,program:{name:"My Program"},meta:{...l()},statuses:[h],pendingReasons:E,globalRewardKey:null,programRewardKey:null,rewardSource:1===p?"AUTOMATED":"MANUAL",prettyRedeemedCredit:`${o} ${y}`,prettyAssignedCredit:`${c} ${y}`,prettyAvailableValue:R?`0 ${y}`:`${c-o} ${y}`,exchangedRewardRedemptionTransaction:2===p?{id:"61f7878e096c9265de88b414",creditRedeemed:50,prettyRedeemedCredit:"50 Tokens",unit:"TOKEN",dateRedeemed:1643612046258,exchangedRewards:[],redeemedRewards:[]}:null,referral:null,rewardRedemptionTransactions:{data:[]}}};export{l as g,t as m}
1
+ import{l as e}from"./p-08700497.js";const t=(e=4,t)=>({data:[...Array(e)].map((()=>s(t)))}),a=["POINT","TICKET","GIFT"],d=["Points","Tickets","Gifts"],r=["AVAILABLE","PENDING","CANCELLED","EXPIRED","REDEEMED"],n=["US_TAX","SCHEDULED","UNHANDLED_ERROR"],E=["PENDING","IN_PROGRESS","FAILED","UNCLAIMED","ONHOLD","REFUNDED","RETURNED","REVERSED","BLOCKED","DENIED"],l=()=>{var t,a;const d=Math.floor(10*Math.random())>=5?null===(t=e.DateTime.now())||void 0===t?void 0:t.minus({day:1}):null,r=Math.floor(10*Math.random())>=5?null===(a=e.DateTime.now())||void 0===a?void 0:a.minus({day:1}):null,n=function(e){if(e)return"SUCCESS";const t=Math.floor(10*Math.random());return E[t]}(d);return{status:"DENIED"===n?"WARN":d?"SUCCESS":Math.floor(10*Math.random())>=8?"ERROR":"SUCCESS",customMeta:{datePaidOut:d,dateLastAttempted:r,dateFirstAttempted:r,rawPayPalInfo:{transaction_status:n}}}},s=t=>{let E,s,u,i,R=!1,o=0;const D=e.DateTime.now(),M=Math.floor(3*Math.random()),h=t||r[Math.floor(5*Math.random())],m=a[M],y=d[M],p=Math.floor(100*Math.random())+2;if("AVAILABLE"===h)o=Math.floor(Math.random()*p),i=Math.floor(10*Math.random())<3?D.plus({days:7}).toMillis():null;else if("EXPIRED"===h)R=!0,o=Math.floor(Math.random()*p),i=D.minus({days:1}).toMillis();else if("PENDING"===h){const e=n[Math.floor(3*Math.random())];E=[e],"SCHEDULED"===e&&(s=D.plus({days:6}).toMillis())}else"REDEEMED"===h?R=!0:(R=!0,u=D.minus({days:2}).toMillis());const N=Math.floor(3*Math.random());return{id:"61f7878e096c9265de88b46f",type:"CREDIT",value:p,unit:m,name:null,dateGiven:D.minus({days:3}).toMillis(),dateExpires:i,dateCancelled:u,dateRedeemed:"REDEEMED"===h?D.plus({days:2}).toMillis():null,dateScheduledFor:s,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:`${p} ${y}`,prettyValueNumber:`${p}`,prettyAvailableNumber:R?"0":""+(p-o),prettyRedeemedNumber:R&&!o?"0":`${o}`,programId:1===N?"program-id":null,program:{name:"My Program"},meta:{...l()},statuses:[h],pendingReasons:E,globalRewardKey:null,programRewardKey:null,rewardSource:1===N?"AUTOMATED":"MANUAL",prettyRedeemedCredit:`${o} ${y}`,prettyAssignedCredit:`${p} ${y}`,prettyAvailableValue:R?`0 ${y}`:`${p-o} ${y}`,exchangedRewardRedemptionTransaction:2===N?{id:"61f7878e096c9265de88b414",creditRedeemed:50,prettyRedeemedCredit:"50 Tokens",unit:"TOKEN",dateRedeemed:1643612046258,exchangedRewards:[],redeemedRewards:[]}:null,referral:null,rewardRedemptionTransactions:{data:[]}}};export{l as g,t as m}
@@ -1 +1 @@
1
- import{r as e,h as i}from"./p-f708da7b.js";import{k as a,m as t,f as s,n}from"./p-cd651f81.js";import"./p-65069b66.js";import{l as r,n as o,J as l,j as c,u as d,i as v}from"./p-94a876b9.js";import{c as u}from"./p-c1086930.js";import"./p-cef45012.js";import"./p-91521e9d.js";import"./p-c9f1dde7.js";import{P as m}from"./p-bbcd824a.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:j,loading:k}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:k,isVerified:!!(null===(p=null==j?void 0:j.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
1
+ import{r as e,h as i}from"./p-c7c11325.js";import"./p-db1a0db1.js";import{k as a,m as t,f as s,n}from"./p-63e29387.js";import{l as r,n as o,J as l,j as c,u as d,i as v}from"./p-0ec54f97.js";import{c as u}from"./p-c1086930.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as m}from"./p-00bc7211.js";const f=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal. Resending an email will invalidate the previous email.",this.verificationStatusMessage="Checking verification status in {countdown}",this.verificationLoadingMessage="Checking verification status",this.verificationResentMessage="Your verification email has been resent successfully",this.networkErrorMessage="An error occurred while verifying your password. Please refresh the page.",n(this)}disconnectedCallback(){}render(){const{states:e,callbacks:n,content:f}=v()?u({states:{error:"",loading:!1,success:!1,countdown:10},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:(h=this).verifyMessage,emailVerificationHeader:h.emailVerificationHeader,resendEmailButtonText:h.resendEmailButtonText,verificationLoadingMessage:h.verificationLoadingMessage,verificationStatusMessage:h.verificationStatusMessage,verificationResentMessage:h.verificationResentMessage,networkErrorMessage:h.networkErrorMessage}},h.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,n,v,u,m,f,h,g,p;const[y,{loading:b,errors:w}]=r(),[M,{data:j,loading:k}]=o(),I=l(),P=null===(i=null==I?void 0:I.managedIdentity)||void 0===i?void 0:i.email,E=new URLSearchParams(c.location.search),x=E.get("nextPage"),[R,V]=a(!1),[C,L]=a(""),[S,_]=a(10),A=t(void 0),B=t(void 0);async function H(){var i;const a=await M();if(null===(i=null==a?void 0:a.managedIdentitySession)||void 0===i?void 0:i.emailVerified)return clearInterval(A.current),c.push({pathname:e.redirectPath,search:E.toString()&&"?"+E.toString()});U(10)}const T=(e=1e4)=>setInterval(H,e),q=e=>setInterval((()=>_(e)),1e3);function U(e){if(clearInterval(B.current),clearInterval(A.current),"hidden"===document.visibilityState)return;e&&_(e);let i=S||10;B.current=q(e-1||i-1),A.current=T(1e3*e||1e3*i)}const Y=d((()=>U()),[S]);return s((()=>(A.current||(H(),A.current=T()),()=>{clearInterval(A.current)})),[]),s((()=>(S>0&&(clearInterval(B.current),B.current=q(S-1)),document.addEventListener("visibilitychange",Y),()=>{clearInterval(B.current),document.removeEventListener("visibilitychange",Y)})),[S]),{states:{loading:b,error:(null===(m=null===(u=null===(v=null===(n=null==w?void 0:w.response)||void 0===n?void 0:n.errors)||void 0===v?void 0:v[0])||void 0===u?void 0:u.extensions)||void 0===m?void 0:m.message)||(null===(g=null===(h=null===(f=null==w?void 0:w.response)||void 0===f?void 0:f.errors)||void 0===h?void 0:h[0])||void 0===g?void 0:g.message)||C,success:R,loadingVerification:k,isVerified:!!(null===(p=null==j?void 0:j.managedIdentitySession)||void 0===p?void 0:p.emailVerified),countdown:S},callbacks:{submit:async()=>{var i;if(!P)return;L(""),V(!1);const a={email:P,urlParams:x?{nextPage:x}:null,redirectPath:e.redirectPath},t=await y(a);t instanceof Error?t.message&&L(e.networkErrorMessage):(null===(i=t.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&V(!0)}},content:{email:P,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText,verificationLoadingMessage:e.verificationLoadingMessage,verificationStatusMessage:e.verificationStatusMessage,verificationResentMessage:e.verificationResentMessage,networkErrorMessage:e.networkErrorMessage}}}(this);var h;return i(m,{states:e,callbacks:n,content:f})}};export{f as sqm_portal_email_verification}
@@ -1,4 +1,4 @@
1
- import{h as e}from"./p-f708da7b.js";import{b as a,j as r,f as t}from"./p-cd651f81.js";import{d,J as l,H as o,L as n,w as s,R as i}from"./p-94a876b9.js";import{u}from"./p-4e451f75.js";import{u as c}from"./p-19ccb4ce.js";const m=a("sq:useReferralTable"),f=d.gql`
1
+ import{h as e}from"./p-c7c11325.js";import{b as a,j as r,f as t}from"./p-63e29387.js";import{d,J as l,H as o,L as n,w as s,R as i}from"./p-0ec54f97.js";import{u}from"./p-f5fff87e.js";import{u as c}from"./p-976ee669.js";const m=a("sq:useReferralTable"),f=d.gql`
2
2
  query getReferrals(
3
3
  $programId: ID
4
4
  $rewardFilter: RewardFilterInput
@@ -230,4 +230,4 @@ import{h as e}from"./p-f708da7b.js";import{b as a,j as r,f as t}from"./p-cd651f8
230
230
  }
231
231
  }
232
232
  }
233
- `;function v(a,d,m){var v,w,R,h;const C=l(),b=o(),I=null!==(v=a.programId)&&void 0!==v?v:b,F=I?"classic"===I?{programId_exists:!1}:{programId_eq:I}:{},T={userId_eq:null==C?void 0:C.id,accountId_eq:null==C?void 0:C.accountId},[$,S]=r(((e,a)=>({...e,...a})),{columns:[],rows:[],loading:!1,page:0}),k=n(),{data:x,loading:M}=s(f,{programId:"classic"===I?null:I,rewardFilter:T,locale:k},!a.showReferrer||!(null==C?void 0:C.jwt)),E=null===(w=null==x?void 0:x.viewer)||void 0===w?void 0:w.referredByReferral,P=a.showReferrer&&!!(null==E?void 0:E.dateReferralStarted),{data:q,loading:U}=s(g,{},!(null==C?void 0:C.jwt)),D=null===(R=null==q?void 0:q.viewer)||void 0===R?void 0:R.impactConnection,{envelope:N,states:_,callbacks:j}=i(p,(e=>{var a;return null===(a=null==e?void 0:e.viewer)||void 0===a?void 0:a.referrals}),{limit:a.perPage,offset:0},{referralFilter:F,rewardFilter:T,locale:k},a.showReferrer&&M&&!x||!(null==C?void 0:C.jwt));t((()=>{0===_.currentPage&&P&&j.setLimit(a.perPage-1)}),[P]),t((()=>{a.showReferrer&&P?(j.setLimit(a.perPage-1),j.setCurrentPage(0)):(j.setLimit(a.perPage),j.setCurrentPage(0))}),[a.showReferrer]);const K=u(),L=null==N?void 0:N.data,V=c();t((()=>{S({loading:!0}),N&&async function(a){const r=a.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),t=null==r?void 0:r.map((async e=>y(e,(()=>e.renderLabel()))));let d;if(P&&0===_.currentPage){const a=null==r?void 0:r.map((async a=>y(a,(()=>a.renderReferrerCell(E,k,e)))));d=await Promise.all(a)}const l=null==L?void 0:L.map((async a=>{const t=null==r?void 0:r.map((async r=>y(r,(()=>r.renderCell(a,{locale:k,taxConnection:D},e)))));return await Promise.all(t)})),o=l&&[d,...await Promise.all(l)].filter((e=>e));S({rows:o});const n=t&&await Promise.all(t);S({columns:n,loading:!1,page:_.currentPage})}(V)}),[N,V,K]);const B=!(null===(h=null==$?void 0:$.rows)||void 0===h?void 0:h.length)&&!(null==L?void 0:L.length);return{states:{hasNext:_.currentPage<_.pageCount-1,hasPrev:_.currentPage>0,show:_.loading||$.loading||U?"loading":B?"empty":"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!a.hideLabels,prevLabel:a.prevLabel,moreLabel:a.moreLabel},hiddenColumns:a.hiddenColumns,smBreakpoint:a.smBreakpoint,mdBreakpoint:a.mdBreakpoint},elements:{columns:$.columns,rows:$.rows,emptyElement:d,loadingElement:m},callbacks:{nextPage:()=>{0===_.currentPage&&P&&j.setLimit(a.perPage),j.setCurrentPage(_.currentPage+1)},prevPage:()=>{1===_.currentPage&&P&&j.setLimit(a.perPage-1),j.setCurrentPage(_.currentPage-1)}}}}function w(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}async function y(a,r){const t=a.tagName.toLowerCase();let d;await customElements.whenDefined(t);try{d=r()}catch(a){return"renderReferrerCell"===r.name?m("column does not have a renderReferrerCell method."):m("label promise failed",a),m("label promise failed",a),e("span",null)}try{return await d}catch(a){m("Error rendering label",a);const r=w(a);return e("details",null,e("summary",null,"Error"),r)}}export{w as g,y as t,v as u}
233
+ `;function v(a,d,m){var v,w,R,h;const C=l(),I=o(),F=null!==(v=a.programId)&&void 0!==v?v:I,b=F?"classic"===F?{programId_exists:!1}:{programId_eq:F}:{},T={userId_eq:null==C?void 0:C.id,accountId_eq:null==C?void 0:C.accountId},[$,S]=r(((e,a)=>({...e,...a})),{columns:[],rows:[],loading:!1,page:0}),k=n(),{data:x,loading:M}=s(f,{programId:"classic"===F?null:F,rewardFilter:T,locale:k},!a.showReferrer||!(null==C?void 0:C.jwt)),E=null===(w=null==x?void 0:x.viewer)||void 0===w?void 0:w.referredByReferral,P=a.showReferrer&&!!(null==E?void 0:E.dateReferralStarted),{data:q,loading:U}=s(g,{},!(null==C?void 0:C.jwt)),D=null===(R=null==q?void 0:q.viewer)||void 0===R?void 0:R.impactConnection,{envelope:N,states:_,callbacks:j}=i(p,(e=>{var a;return null===(a=null==e?void 0:e.viewer)||void 0===a?void 0:a.referrals}),{limit:a.perPage,offset:0},{referralFilter:b,rewardFilter:T,locale:k},a.showReferrer&&M&&!x||!(null==C?void 0:C.jwt));t((()=>{0===_.currentPage&&P&&j.setLimit(a.perPage-1)}),[P]),t((()=>{a.showReferrer&&P?(j.setLimit(a.perPage-1),j.setCurrentPage(0)):(j.setLimit(a.perPage),j.setCurrentPage(0))}),[a.showReferrer]);const K=u(),L=null==N?void 0:N.data,V=c();t((()=>{S({loading:!0}),N&&async function(a){const r=a.filter((e=>"loading"!==e.slot&&"empty"!==e.slot)),t=null==r?void 0:r.map((async e=>y(e,(()=>e.renderLabel()))));let d;if(P&&0===_.currentPage){const a=null==r?void 0:r.map((async a=>y(a,(()=>a.renderReferrerCell(E,k,e)))));d=await Promise.all(a)}const l=null==L?void 0:L.map((async a=>{const t=null==r?void 0:r.map((async r=>y(r,(()=>r.renderCell(a,{locale:k,taxConnection:D},e)))));return await Promise.all(t)})),o=l&&[d,...await Promise.all(l)].filter((e=>e));S({rows:o});const n=t&&await Promise.all(t);S({columns:n,loading:!1,page:_.currentPage})}(V)}),[N,V,K]);const B=!(null===(h=null==$?void 0:$.rows)||void 0===h?void 0:h.length)&&!(null==L?void 0:L.length);return{states:{hasNext:_.currentPage<_.pageCount-1,hasPrev:_.currentPage>0,show:_.loading||$.loading||U?"loading":B?"empty":"rows",namespace:"sqm-referral-table"},data:{textOverrides:{showLabels:!a.hideLabels,prevLabel:a.prevLabel,moreLabel:a.moreLabel},hiddenColumns:a.hiddenColumns,smBreakpoint:a.smBreakpoint,mdBreakpoint:a.mdBreakpoint},elements:{columns:$.columns,rows:$.rows,emptyElement:d,loadingElement:m},callbacks:{nextPage:()=>{0===_.currentPage&&P&&j.setLimit(a.perPage),j.setCurrentPage(_.currentPage+1)},prevPage:()=>{1===_.currentPage&&P&&j.setLimit(a.perPage-1),j.setCurrentPage(_.currentPage-1)}}}}function w(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}async function y(a,r){const t=a.tagName.toLowerCase();let d;await customElements.whenDefined(t);try{d=r()}catch(a){return"renderReferrerCell"===r.name?m("column does not have a renderReferrerCell method."):m("label promise failed",a),m("label promise failed",a),e("span",null)}try{return await d}catch(a){m("Error rendering label",a);const r=w(a);return e("details",null,e("summary",null,"Error"),r)}}export{w as g,y as t,v as u}
@@ -0,0 +1 @@
1
+ System.register(["./p-59b028db.system.js","./p-1a673057.system.js","./p-f1f6a13d.system.js"],(function(e){"use strict";var t,n,i;return{setters:[function(e){t=e.h},function(e){n=e.c},function(e){i=e.E}],execute:function(){e("Q",o);var r={DialogContainer:{maxWidth:"390px !important"},Container:{width:"100%",display:"flex",flexDirection:"row",gap:"var(--sl-spacing-small)"},TextContainer:{display:"flex",gap:"var(--sl-spacing-medium)",flexDirection:"column",alignItems:"center"},ButtonContainer:{display:"flex",gap:"var(--sl-spacing-medium)"},FooterContainer:{textAlign:"left",display:"flex",flexDirection:"column",gap:"var(--sl-spacing-medium)"},CodeContainer:{display:"flex",width:"100%",alignItems:"center",justifyContent:"center"},Code:{width:"100%",height:"100%",maxWidth:"335px"},LoadingSkeleton:{"&::part(indicator)":{borderRadius:"0px !important"}}};var a=n(r);var s=a.toString();var l="\n :host{\n display: flex;\n width: 100%;\n }\n @media (max-width: 499px) {\n :host{\n display: block;\n }\n\n }";function o(e){var n=e.error,r=e.qrLink,o=e.titleText,d=e.downloadCodeText,p=e.printCodeText,c=e.errorHeaderText,u=e.errorDescriptionText,x=e.createDownloadable,m=e.createPrintable,f=e.hideTitle,g=e.alignment,h=e.loading;var y=g==="left"?"flex-start":g==="right"?"flex-end":"center";var v=function(e,n,r){if(e){return t(i,{loadingErrorAlertDescription:c,loadingErrorAlertHeader:u})}else if(r){return t("sl-skeleton",{className:a.classes.LoadingSkeleton,effect:"sheen",style:{width:"100px",height:"100px",borderRadius:"0px !important"}})}else if(n){return t("svg",{width:"100",height:"100"},t("image",{href:n,width:"100",height:"100"}))}return null};var C=v(n,r,h);return t("div",{class:a.classes.Container,style:{justifyContent:y},part:"sqm-base"},t("style",null,l),t("style",null,s),t("div",{class:a.classes.TextContainer,style:{alignItems:y}},!f&&t("span",{part:"sqm-title"},o),C,t("div",{class:a.classes.ButtonContainer},t("sl-button",{size:"small",exportparts:"base: primarybutton-base",type:"primary",onClick:x},d),t("sl-button",{size:"small",exportparts:"base: secondarybutton-base",type:"text",onClick:m},p))))}}}}));
@@ -0,0 +1 @@
1
+ const r=r=>"row"===r.direction?{"& > :not(:last-child)":{"margin-right":r.size}}:{"& > :not(:last-child)":{"margin-bottom":r.size}},o={":host":{display:"block"},":host([hidden])":{display:"none"}},a={display:"flex","flex-direction":"column"},i={"&::part(base)":{background:"var(--sl-color-danger-10)",borderColor:"var(--sl-color-danger-500)",outline:"var(--sl-color-danger-500)"},"&:host":{"--something-random":"red","--focus-ring":"0 0 0 var(--sl-focus-ring-width) red !important"},"&::part(input)":{color:"var(--sl-color-danger-500) !important","&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{boxShadow:"0 0 0 var(--sl-input-height-large) var(--sl-input-background-color-hover) inset !important","-webkit-text-fill-color":"var(--sl-color-danger-500)"}},"&::part(help-text)":{color:"var(--sl-color-danger-500)"}},l={margin:"auto",boxSizing:"border-box",width:"100%",maxWidth:"var(--sqm-content-max-width)",height:"auto",display:"flex",padding:"var(--sl-spacing-xxx-large)",background:"var(--sqm-portal-background)",border:"var(--sqm-border-thickness) solid var(--sqm-border-color)",borderRadius:"var(--sqm-border-radius-normal)",maxWidth:"500px",...a,...r({direction:"column",size:"var(--sl-spacing-x-large)"})},t={...a,"& > *:not(style, div, slot)":{display:"block"},...r({direction:"column",size:"var(--sl-spacing-large)"})},e={"padding-top":"var(--sl-spacing-medium)",display:"flex","flex-direction":"column",width:"100%","&>*":{width:"100%"},...r({direction:"column",size:"var(--sl-spacing-x-large)"}),"& > div":{"text-align":"center"}};export{l as A,i as E,o as H,t as a,e as b,r as g}
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};System.register(["./p-171310d9.system.js"],(function(n){"use strict";var e;return{setters:[function(n){e=n.d}],execute:function(){var t=n("T","sq:tax-and-cash");var a=n("a","sq:tax-form-context");var i=n("c","sq:user-info-query");var r=n("U","sq:user-form-context");var o=n("F","sq:finance-network-settings");var d=n("b","sq:countries:list");var s=n("S","sq:countries:sorted");var l=n("d","sq:countries:query");var c=n("C","sq:currencies:list");var u=n("g","sq:currencies:query");var m=n("G",e.gql(__makeTemplateObject(["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n firstName\n lastName\n email\n countryCode\n customFields\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n }\n }\n }\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n }\n }\n }\n }\n }\n }\n"],["\n query getUserTaxInfo {\n user: viewer {\n ... on User {\n id\n firstName\n lastName\n email\n countryCode\n customFields\n rewards(limit: 1000) {\n data {\n statuses\n partnerFundsTransfer {\n id\n status\n }\n }\n }\n managedIdentity {\n uid\n email\n emailVerified\n }\n impactConnection {\n connected\n user {\n firstName\n lastName\n }\n publisher {\n id\n brandedSignup\n countryCode\n currency\n billingAddress\n billingCity\n billingState\n billingCountryCode\n billingPostalCode\n phoneNumberCountryCode\n phoneNumber\n taxInformation {\n indirectTaxId\n indirectTaxCountryCode\n indirectTaxRegion\n additionalTaxId\n withholdingTaxId\n withholdingTaxCountryCode\n }\n requiredTaxDocumentType\n currentTaxDocument {\n status\n type\n dateCreated\n }\n withdrawalSettings {\n paymentMethod\n paypalEmailAddress\n bankCountry\n bankAccountNumber\n paymentSchedulingType\n paymentThreshold\n paymentDay\n }\n payoutsAccount {\n hold\n holdReasons\n balance\n }\n }\n }\n }\n }\n }\n"])));var y=n("e",e.gql(__makeTemplateObject(["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"],["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"])));var p=n("h",e.gql(__makeTemplateObject(["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"],["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"])));var g=n("f",e.gql(__makeTemplateObject(["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"],["\n query impactFinanceNetworkSettings(\n $filter: ImpactFinanceNetworkSettingsFilterInput\n ) {\n impactFinanceNetworkSettings(filter: $filter, limit: 1000) {\n data {\n countryCode\n currency\n defaultFinancePaymentMethodId\n thresholdOptions\n withdrawalSettingId\n internationalEftFee\n foreignFxFee\n defaultFxFee\n }\n totalCount\n }\n }\n"])));var C=n("i",4)}}}));
@@ -0,0 +1,13 @@
1
+ import{r,h as e}from"./p-c7c11325.js";import{i as t}from"./p-db1a0db1.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}
@@ -1 +1 @@
1
- import{r as e,h as s}from"./p-f708da7b.js";import{k as t,f as o,n as r}from"./p-cd651f81.js";import{f as a,T as i,j as d,i as n}from"./p-94a876b9.js";import{j as c}from"./p-e7e129ac.js";import{c as l}from"./p-c1086930.js";import{s as m}from"./p-9ec99ced.js";import"./p-cef45012.js";import"./p-91521e9d.js";import"./p-c9f1dde7.js";import{P as u}from"./p-f940190a.js";const p=class{constructor(s){e(this,s),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",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.passwordMismatchText="Passwords do not match.",this.codeInvalidText="The password reset code is invalid or has expired, please try again.",this.resetSuccessText="Your password has been reset and you are being redirected. If you are not redirected, please click Continue.",this.networkErrorMessage="An error occurred while resetting your password. Please refresh the page and try again.",r(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r}=n()?l({states:{error:"",loading:!1,reset:!1,confirmPassword:(p=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:p.passwordResetHeader,resetPasswordHeader:p.resetPasswordHeader,continueButtonText:p.continueButtonText,resetPasswordButtonText:p.resetPasswordButtonText,confirmPasswordFieldLabel:p.confirmPasswordFieldLabel,passwordFieldLabel:p.passwordFieldLabel,meetsRequirementsText:p.meetsRequirementsText,doesNotMeetRequirementsText:p.doesNotMeetRequirementsText,minErrorText:p.minErrorText,uppercaseErrorText:p.uppercaseErrorText,lowercaseErrorText:p.lowercaseErrorText,hasErrorText:p.hasErrorText,passwordMismatchText:p.passwordMismatchText,codeInvalidText:p.codeInvalidText,resetSuccessText:p.resetSuccessText}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},p.demoData||{},{arrayMerge:(e,s)=>s}):function(e){var s,r,n,l,u,p,h,w,f,x;const[b,v]=t(!1),[T,P]=t(""),[g,j]=a(),[C,y]=i(),E=new URLSearchParams(d.location.search),R=E.get("oobCode");E.delete("oobCode");const k=E.get("nextPage");o((()=>{(async()=>{await g({oobCode:R})instanceof Error&&P(e.networkErrorMessage)})()}),[]);const q=()=>{E.delete("nextPage");const s=m(k||e.nextPage);d.push(s.href)};return{states:{loading:y.loading,reset:b,confirmPassword:e.confirmPassword,error:(null===(u=null===(l=null===(n=null===(r=null===(s=y.errors)||void 0===s?void 0:s.response)||void 0===r?void 0:r.errors)||void 0===n?void 0:n[0])||void 0===l?void 0:l.extensions)||void 0===u?void 0:u.message)||(null===(f=null===(w=null===(h=null===(p=y.errors)||void 0===p?void 0:p.response)||void 0===h?void 0:h.errors)||void 0===w?void 0:w[0])||void 0===f?void 0:f.message)||T,oobCodeValidating:j.loading,oobCodeValid:null===(x=j.data)||void 0===x?void 0:x.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText,passwordMismatchText:e.passwordMismatchText,codeInvalidText:e.codeInvalidText,resetSuccessText:e.resetSuccessText}},callbacks:{submit:async s=>{P("");let t=s.detail.formData;null==t||t.forEach(((e,s)=>{c.set(t,s,e)}));const o={oobCode:R,password:t.password};if(t.password!==t.confirmPassword)return void P(e.passwordMismatchText);const r=await C(o);if(r instanceof Error)return P(e.networkErrorMessage);r.resetManagedIdentityPassword&&(v(!0),setTimeout((()=>{q()}),5e3))},failed:()=>{d.push({pathname:e.failedPage,search:E.toString()&&"?"+E.toString()})},gotoNextPage:q}}}(this);var p;return s(u,{states:e,callbacks:r})}};export{p as sqm_portal_reset_password}
1
+ import{r as e,h as s}from"./p-c7c11325.js";import{k as t,f as o,n as r}from"./p-63e29387.js";import{e as a,T as i,j as n,i as d}from"./p-0ec54f97.js";import{j as c}from"./p-e7e129ac.js";import{c as l}from"./p-c1086930.js";import{s as m}from"./p-6dc742bc.js";import"./p-cef45012.js";import"./p-49b20dae.js";import"./p-204861a6.js";import{P as u}from"./p-07dc6d68.js";const p=class{constructor(s){e(this,s),this.ignored=!0,this.nextPage="/",this.failedPage="/",this.confirmPassword=!1,this.resetPasswordHeader="Reset your password",this.passwordResetHeader="Password reset",this.resetPasswordButtonText="Reset Password",this.continueButtonText="Continue",this.confirmPasswordFieldLabel="Confirm Password",this.passwordFieldLabel="New Password",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.passwordMismatchText="Passwords do not match.",this.codeInvalidText="The password reset code is invalid or has expired, please try again.",this.resetSuccessText="Your password has been reset and you are being redirected. If you are not redirected, please click Continue.",this.networkErrorMessage="An error occurred while resetting your password. Please refresh the page and try again.",r(this)}disconnectedCallback(){}render(){const{states:e,callbacks:r}=d()?l({states:{error:"",loading:!1,reset:!1,confirmPassword:(p=this).confirmPassword,oobCodeValidating:!1,oobCodeValid:!0,content:{passwordResetHeader:p.passwordResetHeader,resetPasswordHeader:p.resetPasswordHeader,continueButtonText:p.continueButtonText,resetPasswordButtonText:p.resetPasswordButtonText,confirmPasswordFieldLabel:p.confirmPasswordFieldLabel,passwordFieldLabel:p.passwordFieldLabel,meetsRequirementsText:p.meetsRequirementsText,doesNotMeetRequirementsText:p.doesNotMeetRequirementsText,minErrorText:p.minErrorText,uppercaseErrorText:p.uppercaseErrorText,lowercaseErrorText:p.lowercaseErrorText,hasErrorText:p.hasErrorText,passwordMismatchText:p.passwordMismatchText,codeInvalidText:p.codeInvalidText,resetSuccessText:p.resetSuccessText}},callbacks:{submit:async()=>{console.log("submit")},failed:()=>{},gotoNextPage:()=>{}}},p.demoData||{},{arrayMerge:(e,s)=>s}):function(e){var s,r,d,l,u,p,h,w,x,b;const[f,v]=t(!1),[T,P]=t(""),[g,j]=a(),[C,y]=i(),E=new URLSearchParams(n.location.search),R=E.get("oobCode");E.delete("oobCode");const k=E.get("nextPage");o((()=>{(async()=>{await g({oobCode:R})instanceof Error&&P(e.networkErrorMessage)})()}),[]);const q=()=>{E.delete("nextPage");const s=m(k||e.nextPage);n.push(s.href)};return{states:{loading:y.loading,reset:f,confirmPassword:e.confirmPassword,error:(null===(u=null===(l=null===(d=null===(r=null===(s=y.errors)||void 0===s?void 0:s.response)||void 0===r?void 0:r.errors)||void 0===d?void 0:d[0])||void 0===l?void 0:l.extensions)||void 0===u?void 0:u.message)||(null===(x=null===(w=null===(h=null===(p=y.errors)||void 0===p?void 0:p.response)||void 0===h?void 0:h.errors)||void 0===w?void 0:w[0])||void 0===x?void 0:x.message)||T,oobCodeValidating:j.loading,oobCodeValid:null===(b=j.data)||void 0===b?void 0:b.verifyManagedIdentityPasswordResetCode.success,content:{passwordResetHeader:e.passwordResetHeader,resetPasswordHeader:e.resetPasswordHeader,continueButtonText:e.continueButtonText,resetPasswordButtonText:e.resetPasswordButtonText,confirmPasswordFieldLabel:e.confirmPasswordFieldLabel,passwordFieldLabel:e.passwordFieldLabel,meetsRequirementsText:e.meetsRequirementsText,doesNotMeetRequirementsText:e.doesNotMeetRequirementsText,minErrorText:e.minErrorText,uppercaseErrorText:e.uppercaseErrorText,lowercaseErrorText:e.lowercaseErrorText,hasErrorText:e.hasErrorText,passwordMismatchText:e.passwordMismatchText,codeInvalidText:e.codeInvalidText,resetSuccessText:e.resetSuccessText}},callbacks:{submit:async s=>{P("");let t=s.detail.formData;null==t||t.forEach(((e,s)=>{c.set(t,s,e)}));const o={oobCode:R,password:t.password};if(t.password!==t.confirmPassword)return void P(e.passwordMismatchText);const r=await C(o);if(r instanceof Error)return P(e.networkErrorMessage);r.resetManagedIdentityPassword&&(v(!0),setTimeout((()=>{q()}),5e3))},failed:()=>{n.push({pathname:e.failedPage,search:E.toString()&&"?"+E.toString()})},gotoNextPage:q}}}(this);var p;return s(u,{states:e,callbacks:r})}};export{p as sqm_portal_reset_password}