@saasquatch/mint-components 1.16.0-8 → 2.0.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 -2498
  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 -4
  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 -2347
  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-626e9e84.js +0 -1
  926. package/dist/mint-components/p-6333265f.system.js +0 -1
  927. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  928. package/dist/mint-components/p-63a75798.js +0 -1
  929. package/dist/mint-components/p-6427e963.entry.js +0 -1
  930. package/dist/mint-components/p-65069b66.js +0 -1248
  931. package/dist/mint-components/p-653f963f.entry.js +0 -13
  932. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  933. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  934. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  935. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  936. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  937. package/dist/mint-components/p-7846937e.entry.js +0 -13
  938. package/dist/mint-components/p-7893e7d1.entry.js +0 -9
  939. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  940. package/dist/mint-components/p-7fe7e515.entry.js +0 -205
  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-ba42732b.system.entry.js +0 -1
  959. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  960. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  961. package/dist/mint-components/p-c1b074b6.js +0 -394
  962. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  963. package/dist/mint-components/p-c9f1dde7.js +0 -1
  964. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  965. package/dist/mint-components/p-cbbfac66.entry.js +0 -25
  966. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  967. package/dist/mint-components/p-cd651f81.js +0 -42
  968. package/dist/mint-components/p-d8ea88f9.entry.js +0 -273
  969. package/dist/mint-components/p-da7708a7.entry.js +0 -1
  970. package/dist/mint-components/p-dbcb5359.js +0 -1
  971. package/dist/mint-components/p-dcc81e90.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,27 +1,73 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-a29c60ef.js');
4
- const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
5
- const global = require('./global-e31dc4f5.js');
6
- const index_module = require('./index.module-ee84433d.js');
3
+ const index = require('./index-a43a63b4.js');
4
+ const global = require('./global-8bba5b3a.js');
5
+ const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
6
+ const index_module = require('./index.module-4f54e412.js');
7
7
  const cjs = require('./cjs-1066ec21.js');
8
- const utils = require('./utils-6847bc06.js');
8
+ const utils = require('./utils-0d3ac0fb.js');
9
9
  const JSS = require('./JSS-8503a151.js');
10
- const useReferralCodes = require('./useReferralCodes-82e8797b.js');
11
- const mixins = require('./mixins-f7e0377a.js');
12
- const copyTextView = require('./copy-text-view-c85acaaa.js');
13
- const useChildElements = require('./useChildElements-1b35d945.js');
14
- const luxon = require('./luxon-2926d85f.js');
15
- const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
10
+ const useReferralCodes = require('./useReferralCodes-11cdf43b.js');
11
+ const mixins = require('./mixins-4761d472.js');
12
+ const copyTextView = require('./copy-text-view-51c8ee5d.js');
13
+ const useChildElements = require('./useChildElements-966c9041.js');
14
+ const luxon = require('./luxon-949beaf2.js');
15
+ const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
16
16
  const index$1 = require('./index-8c6255f5.js');
17
- const utilities = require('./utilities-78f5e169.js');
18
- const sqmPortalContainerView = require('./sqm-portal-container-view-4f15143a.js');
17
+ const utilities = require('./utilities-9a0c5e91.js');
18
+ const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
19
+
20
+ function BigStatView(props) {
21
+ const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;
22
+ // Dependent on props, not feasible to move out
23
+ const style = {
24
+ Container: {
25
+ display: "flex",
26
+ // height: "inherit",
27
+ // "justify-content": "space-between",
28
+ "flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
29
+ "align-items": `${alignment === "left"
30
+ ? "flex-start"
31
+ : alignment === "right"
32
+ ? "flex-end"
33
+ : "center"}`,
34
+ },
35
+ Stat: {
36
+ "font-size": statFontSize
37
+ ? `${statFontSize}px`
38
+ : "var(--sl-font-size-xx-large)",
39
+ "text-align": alignment,
40
+ color: statTextColor || "var(--sqm-text)",
41
+ lineHeight: "35px",
42
+ fontWeight: statFontWeight || "var(--sl-font-weight-normal)",
43
+ },
44
+ Description: {
45
+ "font-size": descriptionFontSize
46
+ ? `${descriptionFontSize}px`
47
+ : "var(--sl-font-size-small)",
48
+ "font-weight": "var(--sl-font-weight-normal)",
49
+ color: descriptionTextColor || "var(--sqm-text)",
50
+ "text-align": alignment,
51
+ lineHeight: "20px",
52
+ },
53
+ };
54
+ const sheet = JSS.createStyleSheet(style);
55
+ const styleString = sheet.toString();
56
+ return (index.h("div", { part: "stat-wrapper", class: sheet.classes.Container },
57
+ index.h("style", { type: "text/css" }, styleString),
58
+ index.h("div", { part: "stat-value", class: sheet.classes.Stat }, statvalue),
59
+ index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
60
+ }
19
61
 
20
62
  const medium = {
21
63
  facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
22
64
  twitter: { color: "#000000", text: "#fff", icon: "twitter-x" },
23
65
  email: { color: "#666666", text: "#fff", icon: "envelope" },
24
- direct: { color: "var(--sl-color-primary-500)", text: "#fff", icon: "send" },
66
+ direct: {
67
+ color: "var(--sqm-primary-button-background)",
68
+ text: "var(--sqm-primary-button-color)",
69
+ icon: "send",
70
+ },
25
71
  linkedin: { color: "#0077b5", text: "#fff", icon: "linkedin" },
26
72
  sms: { color: "#34DA50", text: "#fff", icon: "chat" },
27
73
  fbmessenger: { color: "#0084ff", text: "#fff", icon: "messenger" },
@@ -42,13 +88,9 @@ const sheet = JSS.createStyleSheet(style);
42
88
  const styleString = sheet.toString();
43
89
  function ShareButtonView(props, children) {
44
90
  const vanillaStyle = `
45
- *::part(base) {
46
- border: none;
47
- --sl-focus-ring-color-primary: ${props.backgroundcolor
48
- ? props.backgroundcolor
49
- : props.medium
50
- ? medium[props.medium].color
51
- : ""}80!important;
91
+ sl-button::part(base) {
92
+ border: ${props.border || "none"};
93
+ font-family: var(--sqm-primary-font);
52
94
 
53
95
  background: ${props.backgroundcolor
54
96
  ? props.backgroundcolor
@@ -60,24 +102,12 @@ function ShareButtonView(props, children) {
60
102
  : props.medium
61
103
  ? medium[props.medium].text
62
104
  : ""};
63
- border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
105
+ border-radius: ${props.borderradius
106
+ ? props.borderradius + "px"
107
+ : "var(--sqm-primary-button-radius)"};
64
108
  }
65
109
 
66
- *::part(base):hover {
67
- border-color: ${props.backgroundcolor
68
- ? props.backgroundcolor
69
- : props.medium
70
- ? medium[props.medium].color
71
- : ""}D1!important;
72
- }
73
110
 
74
- *::part(base):focus {
75
- border-color: ${props.backgroundcolor
76
- ? props.backgroundcolor
77
- : props.medium
78
- ? medium[props.medium].color
79
- : ""}D1!important;
80
- }
81
111
 
82
112
  *::part(label) {
83
113
  position: relative;
@@ -87,436 +117,183 @@ function ShareButtonView(props, children) {
87
117
  return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
88
118
  index.h("style", { type: "text/css" }, styleString),
89
119
  index.h("style", { type: "text/css" }, vanillaStyle),
90
- index.h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}sharebutton-base` },
120
+ index.h("sl-button", { class: sheet.classes.buttonStyle, target: props.openInSameTab ? "_self" : "_blank", loading: props.loading, disabled: props.disabled, pill: props.pill, size: props.size, type: props.type, onClick: !props.isPlainLink ? props.onClick : undefined, href: props.isPlainLink ? props.messageLink : undefined, exportparts: `base: ${props.type}button-base` },
91
121
  !props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
92
122
  !props.hidetext && children)));
93
123
  }
94
124
 
95
- const style$1 = {
96
- Leaderboard: {
97
- "& table": {
125
+ function StatContainerView(props, children) {
126
+ const divideSpace = () => {
127
+ const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
128
+ return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
129
+ };
130
+ // take alignment variable and convert it to CSS flexbox alignment
131
+ const alignment = props.alignment === "center"
132
+ ? "center"
133
+ : props.alignment === "right"
134
+ ? "flex-end"
135
+ : "flex-start";
136
+ // Dependent on props, not feasible to move out
137
+ const style = {
138
+ StatContainer: {
98
139
  width: "100%",
99
- borderCollapse: "collapse",
100
- },
101
- "& th": {
102
- textAlign: "left",
103
- padding: "var(--sl-spacing-medium)",
104
- paddingTop: "0",
105
- fontSize: "var(--sl-font-size-medium)",
106
- fontWeight: "var(--sl-font-weight-semibold)",
140
+ display: "flex",
141
+ flexWrap: "wrap",
142
+ alignItems: "center",
143
+ justifyContent: alignment,
144
+ flexDirection: "row",
145
+ gap: `var(--sl-spacing-${props.gap})`,
146
+ // Apply border styles conditionally based on the hideBorder prop
147
+ "& > *": {
148
+ "border-right": props.hideBorder
149
+ ? "none"
150
+ : "var(--sqm-border-thickness) solid var(--sqm-border-color)",
151
+ "padding-right": divideSpace(),
152
+ },
153
+ "& > :last-child": {
154
+ "border-right": "none",
155
+ },
156
+ "& > ::slotted(*)": {
157
+ "border-right": props.hideBorder
158
+ ? "none"
159
+ : "var(--sqm-border-thickness) solid var(--sqm-border-color)",
160
+ "padding-right": divideSpace(),
161
+ },
162
+ "& > ::slotted(*:last-child)": {
163
+ "border-right": "none",
164
+ },
165
+ "@media screen and (max-width: 430px)": {
166
+ "& > ::slotted(*)": {
167
+ borderRight: "none",
168
+ },
169
+ },
107
170
  },
108
- "& tr:not(:first-child)": {
109
- borderTop: "1px solid var(--sl-color-neutral-200)",
171
+ StatFrame: {
172
+ display: "flex",
110
173
  },
111
- "& td": {
112
- fontSize: "var(--sl-font-size-medium)",
113
- fontWeight: "var(--sl-font-weight-normal)",
174
+ BorderFix: {
175
+ "border-right": "var(--sqm-border-thickness) solid transparent",
176
+ width: "0px",
177
+ "margin-left": "-1px",
114
178
  },
115
- "& .ellipses": {
116
- textAlign: "left",
179
+ };
180
+ const sheet = JSS.createStyleSheet(style);
181
+ const styleString = sheet.toString();
182
+ return (index.h("div", { class: sheet.classes.StatFrame, part: "sqm-base" },
183
+ index.h("div", { class: sheet.classes.StatContainer, part: "sqm-inner-container" },
184
+ index.h("style", { type: "text/css" }, styleString),
185
+ children),
186
+ index.h("div", { class: sheet.classes.BorderFix, part: "sqm-border" })));
187
+ }
188
+
189
+ function PortalChangePasswordView(props) {
190
+ const { states, callbacks } = props;
191
+ const style = {
192
+ Dialog: {
117
193
  padding: "0",
118
- color: "var(--sl-color-neutral-500)",
119
- paddingLeft: "25%",
120
- },
121
- "& .highlight": {
122
- background: "var(--sl-color-primary-50)",
123
- },
124
- "& td, th": {
125
- color: "var(--sl-color-gray-800)",
126
- padding: "var(--sl-spacing-medium)",
194
+ "&::part(panel)": {
195
+ background: "var(--sqm-portal-background)",
196
+ borderRadius: "var(--sqm-border-radius-normal, var(--sl-border-radius-medium))",
197
+ },
198
+ "&::part(close-button)": {
199
+ "margin-top": "var(--sl-spacing-medium)",
200
+ },
201
+ "&::part(body)": {
202
+ padding: "0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
203
+ },
127
204
  },
128
- "& .User": {
129
- width: "100%",
205
+ Error: {
206
+ "&::part(erroralert-base)": {
207
+ "margin-bottom": "15px",
208
+ },
130
209
  },
131
- "& .Score": {
132
- width: "auto",
133
- whiteSpace: "nowrap",
210
+ Success: {
211
+ "&::part(successalert-base)": {
212
+ "margin-bottom": "15px",
213
+ },
134
214
  },
135
- "& .Rank": {
136
- whiteSpace: "nowrap",
215
+ InputContainer: {
216
+ "& > :not(:last-child)": {
217
+ "margin-bottom": "var(--sl-spacing-x-large)",
218
+ },
137
219
  },
138
- "& .fullWidth": {
220
+ CancelButton: {
221
+ margin: "var(--sl-spacing-large) auto",
139
222
  width: "100%",
140
223
  },
141
- },
142
- };
143
- const sheet$1 = JSS.createStyleSheet(style$1);
144
- const styleString$1 = sheet$1.toString();
145
- const vanillaStyle = `
146
- :host{
147
- display: block;
148
- }
149
- `;
150
- function LeaderboardView(props) {
151
- var _a, _b, _c;
152
- const { states, data, elements } = props;
153
- const { styles } = states;
154
- if (states.isEssentials) {
155
- return (index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support" }));
156
- }
157
- if (states.loading) {
158
- return (index.h("div", { class: sheet$1.classes.Leaderboard, style: { width: styles.width || "100%" } },
159
- index.h("style", { type: "text/css" },
160
- styleString$1,
161
- vanillaStyle),
162
- index.h("table", null, [...Array(10)].map(() => {
163
- return (index.h("tr", null,
164
- index.h("td", null,
165
- index.h("sl-skeleton", null))));
166
- }))));
167
- }
168
- if (!states.hasLeaders)
169
- return elements.empty;
170
- let userSeenFlag = false;
171
- const getUsersName = (user) => {
172
- if (!user.firstName && !user.lastInitial)
173
- return styles.anonymousUser;
174
- const { firstName, lastInitial } = user;
175
- if (firstName && lastInitial)
176
- return `${firstName} ${lastInitial}`;
177
- if (firstName || lastInitial)
178
- return firstName || lastInitial;
179
- return styles.anonymousUser;
180
- };
181
- const getRankCellText = (userRank, isViewingUsersRow) => {
182
- if (!userRank) {
183
- return styles.hideNames ? `${styles.viewingUserText}` : "-";
184
- }
185
- const viewingUserText = ` - ${styles.viewingUserText}`;
186
- return styles.rankSuffix
187
- ? global.intl.formatMessage({
188
- id: "rank",
189
- defaultMessage: styles.rankSuffix,
190
- }, {
191
- rank: userRank,
192
- }) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
193
- : `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
194
- };
195
- return (index.h("div", { class: sheet$1.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
196
- index.h("style", { type: "text/css" },
197
- styleString$1,
198
- vanillaStyle),
199
- index.h("table", { part: "sqm-table" },
200
- index.h("tr", null,
201
- styles.showRank && (index.h("th", { class: `Rank ${styles.hideNames ? "fullWidth" : ""}` }, styles.rankheading)),
202
- !styles.hideNames && index.h("th", { class: "User" }, styles.usersheading),
203
- index.h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
204
- _a.map((user) => {
205
- var _a, _b;
206
- if (user.rowNumber === ((_a = data.viewerRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
207
- userSeenFlag = true;
208
- const isViewingUsersRow = !styles.hideViewer && user.rowNumber === ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rowNumber);
209
- return (index.h("tr", { class: isViewingUsersRow ? "highlight" : "" },
210
- styles.showRank && (index.h("td", { class: "Rank" }, getRankCellText(user.rank, isViewingUsersRow))),
211
- !styles.hideNames && index.h("td", { class: "User" }, getUsersName(user)),
212
- index.h("td", { class: "Score" }, user.textValue)));
213
- }),
214
- !userSeenFlag && !styles.hideViewer && (index.h("tr", null,
215
- index.h("td", { colSpan: 100, class: "ellipses" },
216
- index.h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
217
- !userSeenFlag && !styles.hideViewer && (index.h("tr", { class: "highlight" },
218
- styles.showRank && (index.h("td", { class: "Rank" }, getRankCellText((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rank, true))),
219
- !styles.hideNames && (index.h("td", { class: "User" }, getUsersName(data.viewerRank || {}))),
220
- index.h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
221
- }
222
-
223
- function BigStatView(props) {
224
- const { statvalue, flexReverse, alignment } = props;
225
- // Dependent on props, not feasiable to move out
226
- const style = {
227
- Container: {
228
- display: "flex",
229
- height: "inherit",
230
- "justify-content": "space-between",
231
- "flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
232
- "align-items": `${alignment === "left"
233
- ? "flex-start"
234
- : alignment === "right"
235
- ? "flex-end"
236
- : "center"}`,
237
- },
238
- Stat: {
239
- "font-size": "var(--sl-font-size-x-large)",
240
- "text-align": alignment,
224
+ PasswordField: {
225
+ marginBottom: "var(--sl-spacing-large) !important",
226
+ display: "block",
241
227
  },
242
- Description: {
243
- "font-size": "var(--sl-font-size-small)",
244
- "font-weight": "var(--sl-font-weight-normal)",
245
- color: "var(--sl-color-gray-600)",
246
- "text-transform": "uppercase",
247
- "text-align": alignment,
228
+ ChangePasswordButton: {
229
+ paddingTop: "var(--sl-spacing-x-large)",
248
230
  },
249
231
  };
250
232
  const sheet = JSS.createStyleSheet(style);
251
233
  const styleString = sheet.toString();
252
- return (index.h("div", { part: "stat-wrapper", class: sheet.classes.Container },
234
+ return (index.h("div", null,
253
235
  index.h("style", { type: "text/css" }, styleString),
254
- index.h("div", { part: "stat-value", class: sheet.classes.Stat }, statvalue),
255
- index.h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
236
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, "onSl-hide": () => callbacks.setOpen(false) },
237
+ index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
238
+ labelMargin: "x-large",
239
+ padding: "none",
240
+ label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.modalChangePasswordHeader)),
241
+ content: (index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "none", gap: "32px" }),
242
+ states.error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
243
+ index.h("div", { part: "erroralert-text" }, states.error))),
244
+ states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
245
+ index.h("div", { part: "successalert-text" }, states.content.successMessage))),
246
+ index.h("sl-form", { "onSl-submit": callbacks.submit },
247
+ index.h("div", { class: sheet.classes.InputContainer },
248
+ index.h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText }),
249
+ index.h("sl-input", { exportparts: "label: input-label, base: input-base", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
250
+ index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
251
+ index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", exportparts: "base: primarybutton-base", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
252
+ index.h("sl-button", { class: sheet.classes.CancelButton, type: "secondary", exportparts: "base: secondarybutton-base", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
253
+ }))),
254
+ index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
255
+ labelMargin: "x-large",
256
+ padding: "xxx-large",
257
+ label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
258
+ content: (index.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
259
+ }),
260
+ index.h("style", { type: "text/css" }, styleString))));
256
261
  }
257
262
 
258
- const style$2 = {
259
- HostBlock: mixins.HostBlock,
260
- Frame: {
261
- display: "flex",
262
- "flex-direction": "column",
263
- "box-sizing": "border-box",
264
- },
265
- FooterWrapper: {
266
- width: "100%",
267
- "max-width": "100%",
268
- padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
269
- background: "var(--sqm-footer-background)",
270
- display: "flex",
271
- "justify-content": "flex-end",
272
- "align-items": "center",
273
- "box-sizing": "border-box",
274
- "margin-top": "auto",
275
- },
276
- HeaderWrapper: {
277
- width: "100%",
278
- "max-width": "100%",
279
- "box-sizing": "border-box",
280
- display: "flex",
281
- "justify-content": "space-between",
282
- padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
283
- "align-items": "center",
284
- "background-color": "var(--sqm-header-background)",
285
- "@media screen and (max-width: 499px)": {
286
- "flex-direction": "row-reverse",
287
- "justify-content": "flex-end",
288
- padding: "0",
289
- },
290
- },
291
- };
292
- const sheet$2 = JSS.createStyleSheet(style$2);
293
- const styleString$2 = sheet$2.toString();
294
- function PortalFrameView(props, children) {
295
- const { data, notFullScreen } = props;
296
- return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet$2.classes.Frame, part: "sqm-base" },
297
- index.h("style", { type: "text/css" }, styleString$2),
298
- index.h("div", { class: sheet$2.classes.HeaderWrapper, part: "sqm-header" },
299
- data.header,
300
- index.h("slot", { name: "sqm-navigation-menu" })),
301
- children,
302
- index.h("div", { class: sheet$2.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
303
- }
304
-
305
- const EditProfileView = (props) => {
306
- var _a, _b, _c, _d;
307
- const { states, callbacks } = props;
308
- const { text } = states;
309
- const { errors } = states.formState;
310
- if (states.showEdit) {
311
- return (index.h("div", { class: `CardWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
312
- index.h("h2", { part: "sqm-header", style: {
313
- fontSize: "var(--sl-font-size-x-large)",
314
- margin: "0px",
315
- textAlign: "center",
316
- } }, text.editprofileheader),
317
- index.h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
318
- index.h("div", { class: "FormSection" },
319
- states.formState.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
320
- index.h("div", { part: "erroralert-text" }, states.formState.error))),
321
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
322
- ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
323
- : []), { id: "firstName", name: "firstName", error: errors.firstName && errors.firstName.status !== "valid"
324
- ? errors.firstName.message
325
- : undefined })),
326
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, (errors.lastName && errors.lastName.status !== "valid"
327
- ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
328
- : []), { error: errors.lastName && errors.lastName.status !== "valid"
329
- ? errors.lastName.message
330
- : undefined }))),
331
- text.showregion && states.formState.currentRegion && (index.h("sl-input", { exportparts: "label: input-label, base: input-base", disabled: true, value: states.formState.currentRegion, label: text.currentregiontext, id: "currentRegion", name: "currentRegion" })),
332
- index.h("div", { class: "ButtonWrapper" },
333
- index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
334
- callbacks.onSubmit(e);
335
- }, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
336
- index.h("sl-button", { onClick: () => {
337
- callbacks.setShowEdit(false);
338
- }, exportparts: "base: defaultbutton-base" }, text.canceltext)))));
339
- }
340
- return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
341
- index.h("div", { class: "FormSection" },
342
- index.h("h2", { part: "sqm-header", style: {
343
- fontSize: "var(--sl-font-size-x-large)",
344
- marginBottom: "0px",
345
- textAlign: "center",
346
- } }, text.editprofileheader),
347
- index.h("div", null,
348
- index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" } }, (_a = states.user) === null || _a === void 0 ? void 0 :
349
- _a.firstName,
350
- " ", (_b = states.user) === null || _b === void 0 ? void 0 :
351
- _b.lastName),
352
- index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" }, title: (_c = states.user) === null || _c === void 0 ? void 0 : _c.email }, (_d = states.user) === null || _d === void 0 ? void 0 : _d.email))),
353
- index.h("sl-button", { type: "primary", loading: states.loading, onClick: () => {
354
- callbacks.resetForm();
355
- callbacks.setShowEdit(true);
356
- }, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
357
- };
358
-
359
- const MessageLinkQuery = index_module.dist.gql `
360
- query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
361
- user: viewer {
362
- ... on User {
363
- shareLink(
364
- programId: $programId
365
- engagementMedium: $engagementMedium
366
- shareMedium: DIRECT
367
- )
368
- }
369
- }
370
- }
371
- `;
372
- const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
373
- mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
374
- createUserAnalyticsEvent(eventMeta: $eventMeta)
375
- }
376
- `;
377
- function useShareLink(props) {
378
- var _a, _b;
379
- const { programId = index_module.H() } = props;
380
- const user = index_module.J();
381
- const engagementMedium = index_module.B();
382
- const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
383
- const { data } = index_module.wn(MessageLinkQuery, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
384
- const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
385
- const [setCopied, copiedRes] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
386
- const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
387
- // Shown during loading
388
- "...";
389
- const [open, setOpen] = stencilHooks_module.useState(false);
390
- async function onClick() {
391
- if (contextData) {
392
- await setCopied({ referralCode: contextData.referralCode });
393
- contextData.refresh();
394
- }
395
- // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
396
- // Only if called from a user-initiated event
397
- navigator.clipboard.writeText(copyString);
398
- setOpen(true);
399
- setTimeout(() => setOpen(false), props.tooltiplifespan);
400
- sendLoadEvent({
401
- eventMeta: {
402
- programId,
403
- id: user === null || user === void 0 ? void 0 : user.id,
404
- accountId: user === null || user === void 0 ? void 0 : user.accountId,
405
- type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
406
- meta: {
407
- engagementMedium,
408
- shareMedium: "DIRECT",
409
- },
410
- },
411
- });
412
- }
413
- return { ...props, onClick, open, copyString: copyString };
414
- }
415
-
416
- const MessageLinkQuery$1 = index_module.dist.gql `
417
- query (
418
- $programId: ID
419
- $engagementMedium: UserEngagementMedium!
420
- $shareMedium: ReferralShareMedium!
421
- ) {
422
- viewer {
423
- ... on User {
424
- messageLink(
425
- programId: $programId
426
- engagementMedium: $engagementMedium
427
- shareMedium: $shareMedium
428
- )
429
- shareLink(programId: $programId, engagementMedium: $engagementMedium)
430
- }
431
- }
432
- }
433
- `;
434
- function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformText) {
435
- const title = props.sharetitle || "Share title";
436
- const text = props.sharetext || "Share text";
437
- if (directLink === "undefined") {
438
- return alert(undefinedErrorText);
439
- }
440
- if (window.navigator.share) {
441
- window.navigator
442
- .share({
443
- title,
444
- text,
445
- url: directLink,
446
- })
447
- .catch((error) => console.error("Error on web share", error));
448
- }
449
- else {
450
- alert(unsupportedPlatformText);
451
- }
452
- }
453
- function FacebookShare(directLink, messageLink, errorText) {
454
- if (messageLink === "undefined" || directLink === "undefined") {
455
- return alert(errorText);
456
- }
457
- if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
458
- return SquatchAndroid.shareOnFacebook(directLink, messageLink);
459
- }
460
- else {
461
- return GenericShare(messageLink, errorText);
462
- }
463
- }
464
- function GenericShare(messageLink, errorText) {
465
- return messageLink ? (window.location.href = messageLink) : alert(errorText);
466
- }
467
- function useShareButton(props) {
468
- var _a, _b, _c, _d;
469
- const { sharetitle, sharetext, medium } = props;
470
- const programId = props.programId ? props.programId : index_module.H();
471
- const user = index_module.J();
472
- const engagementMedium = index_module.B();
473
- const variables = {
474
- engagementMedium,
475
- programId: programId,
476
- shareMedium: medium.toUpperCase(),
477
- };
478
- const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
479
- const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
480
- // only queries if a programId is available
481
- const res = index_module.wn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
482
- const [setCopied, copiedRes] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
483
- const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink);
484
- const environment = index_module.getEnvironmentSDK();
485
- const hide = (medium.toLocaleUpperCase() === "SMS" &&
486
- window.orientation === undefined) ||
487
- (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
488
- const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
489
- async function onClick() {
490
- if (overrideData) {
491
- await setCopied({ referralCode: contextData.referralCode });
492
- contextData.refresh();
493
- }
494
- if (medium.toLocaleUpperCase() === "FACEBOOK" &&
495
- environment.type === "SquatchAndroid") {
496
- FacebookShare(directLink, messageLink, props.errorText);
497
- }
498
- else if (medium.toLocaleUpperCase() === "DIRECT") {
499
- NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
500
- }
501
- }
502
- const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
503
- environment.type === "SquatchAndroid") &&
504
- medium.toLocaleUpperCase() !== "DIRECT" &&
505
- messageLink;
506
- const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
507
- const openInSameTab = ios && !safari;
508
- return {
509
- ...props,
510
- loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
511
- messageLink,
512
- isPlainLink,
513
- onClick,
514
- openInSameTab,
515
- hide,
516
- };
263
+ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
264
+ return (index.h("svg", { width: width, height: height, viewBox: "0 0 1662 254", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
265
+ index.h("path", { d: "M801.082 253.58L869.382 1.67969", stroke: color, "stroke-width": "3" }),
266
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M125.682 42.48C123.882 42.48 121.982 42.78 120.382 43.48C118.682 44.18 117.182 45.18 115.882 46.48C114.582 47.68 113.582 49.28 112.882 50.98C112.182 52.68 111.882 54.48 111.982 56.28C112.282 59.68 113.882 63.08 116.382 65.38C118.982 67.78 122.382 68.98 125.782 68.98C129.282 68.98 132.682 67.58 135.182 65.38C137.782 62.98 139.382 59.78 139.582 56.28C139.582 54.38 139.282 52.68 138.682 50.98C137.982 49.28 136.982 47.78 135.682 46.48C134.382 45.18 132.882 44.18 131.182 43.48C129.282 42.78 127.582 42.48 125.682 42.48Z", fill: color }),
267
+ index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
268
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z", fill: color }),
269
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
270
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
271
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M551.282 239.88C549.982 239.88 548.782 240.28 547.682 240.88C546.682 241.58 545.782 242.58 545.382 243.68C544.882 244.78 544.782 246.08 545.082 247.28C545.282 248.58 545.882 249.68 546.882 250.48C547.782 251.38 548.882 251.98 550.082 252.28C551.382 252.48 552.582 252.38 553.782 251.98C554.882 251.48 555.982 250.78 556.582 249.68C557.282 248.68 557.582 247.38 557.582 246.18C557.582 244.48 556.982 242.88 555.682 241.68C554.482 240.48 552.882 239.88 551.282 239.88Z", fill: color }),
272
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M586.182 210.78C592.282 210.78 597.582 213.08 601.082 217.18L601.482 217.68L596.282 223.08L595.782 222.58C594.482 221.18 593.082 220.18 591.382 219.48C589.682 218.78 587.882 218.38 586.082 218.48C578.882 218.48 573.682 224.08 573.682 231.58C573.682 239.18 578.882 244.78 586.082 244.78C589.782 244.68 593.282 243.18 595.882 240.58L596.382 240.08L601.382 245.68L600.982 246.08C597.182 250.18 591.982 252.18 586.082 252.18C574.082 252.18 565.382 243.58 565.382 231.58C565.582 219.48 574.182 210.78 586.182 210.78Z", fill: color }),
273
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M633.782 210.78C621.682 210.78 612.582 219.68 612.582 231.38C612.582 243.08 621.682 251.98 633.782 251.98C645.882 251.98 654.882 243.08 654.882 231.38C655.082 219.78 645.982 210.78 633.782 210.78ZM633.782 244.78C626.382 244.78 620.782 239.28 620.782 231.58C620.782 223.88 626.182 218.48 633.782 218.48C641.182 218.48 646.782 224.08 646.782 231.58C646.782 238.98 641.382 244.78 633.782 244.78Z", fill: color }),
274
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M723.982 228.78C723.982 222.18 720.382 218.28 714.082 218.28C707.682 218.28 703.382 222.78 702.982 228.98V252.18H695.082V228.68C695.082 222.08 691.482 218.18 685.182 218.18C680.082 218.18 674.482 221.48 674.482 228.88V252.08H666.582V211.38H674.482V214.78L676.682 213.28C679.582 211.38 683.082 210.48 686.582 210.48C692.082 210.48 696.782 212.48 699.882 216.08L700.882 217.28L701.882 216.08C704.782 212.48 709.582 210.48 715.182 210.48C725.082 210.48 731.982 217.08 731.982 226.38V251.88H724.082V228.68H723.982V228.78Z", fill: color }),
275
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
276
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
277
+ index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
278
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z", fill: color }),
279
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
280
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
281
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
282
+ index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
283
+ index.h("path", { d: "M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z", fill: color }),
284
+ index.h("path", { d: "M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z", fill: color }),
285
+ index.h("path", { d: "M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z", fill: color }),
286
+ index.h("path", { d: "M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z", fill: color }),
287
+ index.h("path", { d: "M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z", fill: color }),
288
+ index.h("path", { d: "M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z", fill: color }),
289
+ index.h("path", { d: "M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z", fill: color }),
290
+ index.h("path", { d: "M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z", fill: color }),
291
+ index.h("path", { d: "M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z", fill: color }),
292
+ index.h("path", { d: "M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z", fill: color }),
293
+ index.h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
517
294
  }
518
295
 
519
- const debug = stencilHooks_module.browser("sq:useBigStat");
296
+ const debug = domContextHooks_module.browser("sq:useBigStat");
520
297
  const LOADING = "...";
521
298
  const debugQuery = (query, variables, getStat) => {
522
299
  const res = index_module.wn(query, variables);
@@ -600,12 +377,18 @@ const customFieldsQuery = (_programId, locale, fieldName, goalId) => {
600
377
  };
601
378
  });
602
379
  };
603
- const referralsMonthQuery = (programId) => {
380
+ const referralsMonthQuery = (programId, status) => {
604
381
  const programFilter = programId === "classic"
605
382
  ? { programId_exists: false }
606
383
  : { programId_eq: programId };
607
- const filter = {
608
- ...programFilter,
384
+ const convertedFilter = status && status == "converted"
385
+ ? { dateConverted_exists: true }
386
+ : status && status == "started"
387
+ ? { dateConverted_exists: false }
388
+ : {};
389
+ const filter = {
390
+ ...programFilter,
391
+ ...convertedFilter,
609
392
  dateReferralStarted_timeframe: "this_month",
610
393
  };
611
394
  return debugQuery(index_module.dist.gql `
@@ -1048,6 +831,92 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
1048
831
  };
1049
832
  });
1050
833
  };
834
+ const rewardsExpiredQuery = (programId, locale, type, unit, global = "") => {
835
+ return debugQuery(index_module.dist.gql `
836
+ query (
837
+ $programId: ID
838
+ $type: RewardType
839
+ $unit: String!
840
+ $locale: RSLocale
841
+ ) {
842
+ fallback: formatRewardPrettyValue(
843
+ value: 0
844
+ unit: $unit
845
+ locale: $locale
846
+ formatType: UNIT_FORMATTED
847
+ )
848
+ viewer: viewer {
849
+ ... on User {
850
+ rewardBalanceDetails(
851
+ programId: $programId
852
+ filter: { type_eq: $type, unit_eq: $unit }
853
+ locale: $locale
854
+ ) {
855
+ ... on CreditRewardBalance {
856
+ prettyExpiredCredit
857
+ }
858
+ }
859
+ }
860
+ }
861
+ }
862
+ `, {
863
+ programId: !global && programId !== "classic" ? programId : null,
864
+ type,
865
+ unit,
866
+ locale,
867
+ }, (res) => {
868
+ var _a, _b, _c, _d, _e;
869
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
870
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
871
+ return {
872
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
873
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
874
+ };
875
+ });
876
+ };
877
+ const rewardsCancelledQuery = (programId, locale, type, unit, global = "") => {
878
+ return debugQuery(index_module.dist.gql `
879
+ query (
880
+ $programId: ID
881
+ $type: RewardType
882
+ $unit: String!
883
+ $locale: RSLocale
884
+ ) {
885
+ fallback: formatRewardPrettyValue(
886
+ value: 0
887
+ unit: $unit
888
+ locale: $locale
889
+ formatType: UNIT_FORMATTED
890
+ )
891
+ viewer: viewer {
892
+ ... on User {
893
+ rewardBalanceDetails(
894
+ programId: $programId
895
+ filter: { type_eq: $type, unit_eq: $unit }
896
+ locale: $locale
897
+ ) {
898
+ ... on CreditRewardBalance {
899
+ prettyCancelledCredit
900
+ }
901
+ }
902
+ }
903
+ }
904
+ }
905
+ `, {
906
+ programId: !global && programId !== "classic" ? programId : null,
907
+ type,
908
+ unit,
909
+ locale,
910
+ }, (res) => {
911
+ var _a, _b, _c, _d, _e;
912
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
913
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
914
+ return {
915
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
916
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
917
+ };
918
+ });
919
+ };
1051
920
  const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
1052
921
  return debugQuery(index_module.dist.gql `
1053
922
  query (
@@ -1253,6 +1122,14 @@ const queries = {
1253
1122
  label: "Rewards Pending",
1254
1123
  query: rewardsPendingQuery,
1255
1124
  },
1125
+ rewardsExpired: {
1126
+ label: "Rewards Expired",
1127
+ query: rewardsExpiredQuery,
1128
+ },
1129
+ rewardsCancelled: {
1130
+ label: "Rewards Cancelled",
1131
+ query: rewardsCancelledQuery,
1132
+ },
1256
1133
  rewardsRedeemed: {
1257
1134
  label: "Rewards Paid",
1258
1135
  query: rewardsRedeemedQuery,
@@ -1326,19 +1203,20 @@ const queries = {
1326
1203
  query: payoutBalanceQuery,
1327
1204
  },
1328
1205
  };
1206
+ // ! Any update to this should be reflected in StatPathBuilder.tsx in the saasquatch repo
1329
1207
  // this should be exposed in documentation somehow
1330
1208
  const StatPaths = [
1331
1209
  { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
1332
1210
  { name: "customFields", route: "/(customFields)/:customField" },
1333
1211
  { name: "referralsCount", route: "/(referralsCount)/:status?" },
1334
- { name: "referralsMonth", route: "/(referralsMonth)" },
1335
- { name: "referralsWeek", route: "/(referralsWeek)" },
1212
+ { name: "referralsMonth", route: "/(referralsMonth)/:status?" },
1213
+ { name: "referralsWeek", route: "/(referralsWeek)/:status?" },
1336
1214
  { name: "rewardsCount", route: "/(rewardsCount)/:global?" },
1337
1215
  { name: "rewardsMonth", route: "/(rewardsMonth)/:global?" },
1338
1216
  { name: "rewardsWeek", route: "/(rewardsWeek)/:global?" },
1339
1217
  {
1340
1218
  name: "rewardsCountFiltered",
1341
- route: "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
1219
+ route: "/(rewardsCountFiltered)/:statType([FUELTANK|INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
1342
1220
  },
1343
1221
  {
1344
1222
  name: "integrationRewardsCountFiltered",
@@ -1348,6 +1226,14 @@ const StatPaths = [
1348
1226
  name: "rewardsAssigned",
1349
1227
  route: "/(rewardsAssigned)/:statType/:unit/:global?",
1350
1228
  },
1229
+ {
1230
+ name: "rewardsExpired",
1231
+ route: "/(rewardsExpired)/:statType/:unit/:global?",
1232
+ },
1233
+ {
1234
+ name: "rewardsCancelled",
1235
+ route: "/(rewardsCancelled)/:statType/:unit/:global?",
1236
+ },
1351
1237
  {
1352
1238
  name: "rewardsPending",
1353
1239
  route: "/(rewardsPending)/:statType/:unit/:global?",
@@ -1393,15 +1279,20 @@ function useBigStat(props) {
1393
1279
  useChildElements.useChildElements();
1394
1280
  const locale = index_module.L();
1395
1281
  const userIdent = index_module.J();
1396
- const re = stencilHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1282
+ const re = domContextHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1397
1283
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1398
1284
  return {
1399
1285
  props: {
1400
1286
  value: 0,
1401
- statvalue: "!!!",
1287
+ statvalue: "-",
1402
1288
  flexReverse,
1403
1289
  alignment,
1404
1290
  loading: false,
1291
+ statTextColor: props.statTextColor,
1292
+ statFontSize: props.statFontSize,
1293
+ descriptionTextColor: props.descriptionTextColor,
1294
+ descriptionFontSize: props.descriptionFontSize,
1295
+ statFontWeight: props.statFontWeight,
1405
1296
  },
1406
1297
  label: "BAD PROP TYPE",
1407
1298
  };
@@ -1431,6 +1322,11 @@ function useBigStat(props) {
1431
1322
  loading: stat === null || stat === void 0 ? void 0 : stat.loading,
1432
1323
  flexReverse,
1433
1324
  alignment,
1325
+ statTextColor: props.statTextColor,
1326
+ statFontSize: props.statFontSize,
1327
+ descriptionTextColor: props.descriptionTextColor,
1328
+ descriptionFontSize: props.descriptionFontSize,
1329
+ statFontWeight: props.statFontWeight,
1434
1330
  },
1435
1331
  label,
1436
1332
  };
@@ -1438,17 +1334,21 @@ function useBigStat(props) {
1438
1334
 
1439
1335
  function useDemoBigStat(props) {
1440
1336
  const { statType } = props;
1441
- const re = stencilHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1337
+ const re = domContextHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1442
1338
  // triggers a re-render if the label is manually changed
1443
1339
  useChildElements.useChildElements();
1444
1340
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1445
1341
  return {
1446
1342
  props: {
1447
1343
  value: 0,
1448
- statvalue: "!!!",
1344
+ statvalue: "-",
1449
1345
  loading: false,
1450
- flexReverse: false,
1451
- alignment: "center",
1346
+ flexReverse: props.flexReverse,
1347
+ alignment: props.alignment,
1348
+ statTextColor: props.statTextColor,
1349
+ statFontSize: props.statFontSize,
1350
+ descriptionTextColor: props.descriptionTextColor,
1351
+ descriptionFontSize: props.descriptionFontSize,
1452
1352
  },
1453
1353
  label: "BAD PROP TYPE",
1454
1354
  };
@@ -1460,369 +1360,100 @@ function useDemoBigStat(props) {
1460
1360
  props: cjs.cjs({
1461
1361
  statvalue: "12345",
1462
1362
  value: 0,
1463
- flexReverse: false,
1464
- alignment: "center",
1363
+ flexReverse: props.flexReverse,
1364
+ alignment: props.alignment,
1365
+ statTextColor: props.statTextColor,
1366
+ statFontSize: props.statFontSize,
1367
+ descriptionTextColor: props.descriptionTextColor,
1368
+ descriptionFontSize: props.descriptionFontSize,
1369
+ statFontWeight: props.statFontWeight,
1465
1370
  }, props.demoData || {}, { arrayMerge: (_, a) => a }),
1466
1371
  label: label !== null && label !== void 0 ? label : "Demo Label",
1467
1372
  };
1468
1373
  }
1469
1374
 
1470
- function StatContainerView(props, children) {
1471
- const divideSpace = () => {
1472
- const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
1473
- return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
1474
- };
1375
+ function CardFeedView(props, children) {
1475
1376
  // Dependent on props, not feasiable to move out
1476
1377
  const style = {
1477
- StatContainer: {
1478
- width: "100%",
1479
- display: props.display || "grid",
1480
- "grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
1481
- gap: divideSpace(),
1482
- // First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
1483
- "& > *": {
1484
- "border-right": "1px solid #EAEAEA",
1485
- "padding-right": divideSpace(),
1486
- },
1487
- "& > :last-child": {
1488
- "border-right": "none",
1489
- },
1490
- "& > ::slotted(*)": {
1491
- "border-right": "1px solid #EAEAEA",
1492
- "padding-right": divideSpace(),
1493
- height: "100%",
1494
- },
1495
- "& > ::slotted(*:last-child)": {
1496
- "border-right": "none",
1497
- },
1498
- "@media screen and (max-width: 430px)": {
1499
- "& > ::slotted(*)": {
1500
- borderRight: "none",
1501
- },
1378
+ Container: {
1379
+ columnGap: props.gap + "px",
1380
+ columnWidth: props.width + "px",
1381
+ "& > div": {
1382
+ marginBottom: "24px",
1502
1383
  },
1503
1384
  },
1504
- StatFrame: {
1505
- display: "flex",
1506
- },
1507
- BorderFix: {
1508
- "border-right": "1px solid transparent",
1509
- width: "0px",
1510
- "margin-left": "-1px",
1511
- },
1512
1385
  };
1513
1386
  const sheet = JSS.createStyleSheet(style);
1514
1387
  const styleString = sheet.toString();
1515
- return (index.h("div", { class: sheet.classes.StatFrame, part: "sqm-base" },
1516
- index.h("div", { class: sheet.classes.StatContainer, part: "sqm-inner-container" },
1517
- index.h("style", { type: "text/css" }, styleString),
1518
- children),
1519
- index.h("div", { class: sheet.classes.BorderFix, part: "sqm-border" })));
1388
+ const vanillaStyle = `
1389
+ :host{
1390
+ display: block;
1391
+ }
1392
+
1393
+ `;
1394
+ return (index.h("div", null,
1395
+ index.h("style", { type: "text/css" },
1396
+ styleString,
1397
+ vanillaStyle),
1398
+ index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
1520
1399
  }
1521
1400
 
1522
- function PortalChangePasswordView(props) {
1523
- const { states, callbacks } = props;
1524
- const style = {
1525
- Dialog: {
1526
- padding: "0",
1527
- "&::part(close-button)": {
1528
- "margin-top": "var(--sl-spacing-medium)",
1529
- },
1530
- "&::part(body)": {
1531
- padding: "0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
1401
+ const style$1 = {
1402
+ Description: {
1403
+ "& .icon": {
1404
+ color: "var(--sqm-text)",
1405
+ "&:hover": {
1406
+ color: "var(--sqm-accent-color-icon)",
1532
1407
  },
1533
1408
  },
1534
- Error: {
1535
- "&::part(erroralert-base)": {
1536
- "margin-bottom": "15px",
1537
- },
1409
+ "& input[type=checkbox]": {
1410
+ display: "none",
1538
1411
  },
1539
- Success: {
1540
- "&::part(successalert-base)": {
1541
- "margin-bottom": "15px",
1542
- },
1412
+ "& input:checked ~ .details": {
1413
+ transform: "rotate(-180deg)",
1543
1414
  },
1544
- InputContainer: {
1545
- "& > :not(:last-child)": {
1546
- "margin-bottom": "var(--sl-spacing-x-large)",
1415
+ "& .details": {
1416
+ position: "absolute",
1417
+ top: "var(--sl-spacing-medium)",
1418
+ right: "var(--sl-spacing-medium)",
1419
+ color: "var(--sqm-text)",
1420
+ fontSize: "var(--sl-font-size-large)",
1421
+ "& :hover": {
1422
+ color: "var(--sl-color-primary-700)",
1547
1423
  },
1424
+ transformOrigin: "50% 37%",
1425
+ transition: "transform var(--sl-transition-medium) ease",
1426
+ cursor: "pointer",
1548
1427
  },
1549
- CancelButton: {
1550
- width: "25%",
1551
- margin: "var(--sl-spacing-large) auto",
1428
+ "& input:checked ~ .summary": {
1429
+ transition: "all var(--sl-transition-medium) ease",
1430
+ maxHeight: "300px",
1431
+ marginBottom: "var(--sl-spacing-x-large)",
1552
1432
  },
1553
- PasswordField: {
1554
- marginBottom: "var(--sl-spacing-large) !important",
1555
- display: "block",
1433
+ "& input:checked ~ .summary[progress-bar]": {
1434
+ marginBottom: "var(--sl-spacing-xx-large)",
1556
1435
  },
1557
- ChangePasswordButton: {
1558
- paddingTop: "var(--sl-spacing-x-large)",
1436
+ "& .summary": {
1437
+ display: "block",
1438
+ overflow: "hidden",
1439
+ fontSize: "var(--sl-font-size-small)",
1440
+ maxHeight: "0px",
1441
+ transition: "all var(--sl-transition-fast) ease-out",
1442
+ marginBottom: "var(--sl-spacing-medium)",
1559
1443
  },
1560
- };
1561
- const sheet = JSS.createStyleSheet(style);
1562
- const styleString = sheet.toString();
1563
- return (index.h("div", null,
1564
- index.h("style", { type: "text/css" }, styleString),
1565
- index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, "onSl-hide": () => callbacks.setOpen(false) },
1566
- index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
1567
- labelMargin: "x-large",
1568
- padding: "none",
1569
- label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.modalChangePasswordHeader)),
1570
- content: (index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "none", gap: "32px" }),
1571
- states.error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
1572
- index.h("div", { part: "erroralert-text" }, states.error))),
1573
- states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
1574
- index.h("div", { part: "successalert-text" }, states.content.successMessage))),
1575
- index.h("sl-form", { "onSl-submit": callbacks.submit },
1576
- index.h("div", { class: sheet.classes.InputContainer },
1577
- index.h("sqm-password-field", { exportparts: "input-label: input-label", class: sheet.classes.PasswordField, fieldLabel: states.content.passwordFieldLabel, meetsRequirementsText: states.content.meetsRequirementsText, doesNotMeetRequirementsText: states.content.doesNotMeetRequirementsText, minErrorText: states.content.minErrorText, uppercaseErrorText: states.content.uppercaseErrorText, lowercaseErrorText: states.content.lowercaseErrorText, hasErrorText: states.content.hasErrorText }),
1578
- index.h("sl-input", { exportparts: "label: input-label, base: input-base", name: "/confirmPassword", label: states.content.confirmPasswordFieldLabel, required: true, togglePassword: true, disabled: states.loading, type: "password" })),
1579
- index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
1580
- index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
1581
- index.h("sl-button", { class: sheet.classes.CancelButton, type: "text", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
1582
- }))),
1583
- index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
1584
- labelMargin: "x-large",
1585
- padding: "xxx-large",
1586
- label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
1587
- content: (index.h("sl-button", { onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
1588
- }),
1589
- index.h("style", { type: "text/css" }, styleString))));
1590
- }
1591
-
1592
- const style$3 = {
1593
- Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
1594
- Column: mixins.AuthColumn,
1595
- HostBlock: mixins.HostBlock,
1596
- ":host": {
1597
- margin: "0 auto",
1598
- width: "100%",
1599
1444
  },
1600
- ButtonsContainer: mixins.AuthButtonsContainer,
1601
- ErrorStyle: mixins.ErrorStyles,
1602
1445
  };
1603
- const vanillaStyle$1 = `
1604
- sqm-portal-register {
1605
- margin: 0 auto;
1606
- width: 100%;
1607
- display: block;
1608
- }
1609
-
1610
- :host{
1611
- display: block;
1612
- }
1613
-
1614
- :host([hidden]) {
1615
- display: none;
1616
- }
1617
- `;
1618
- const sheet$3 = JSS.createStyleSheet(style$3);
1619
- const styleString$3 = sheet$3.toString();
1620
- function PortalRegisterView(props) {
1621
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
1622
- const { states, refs, callbacks, content } = props;
1623
- if (states.error) {
1624
- window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
1625
- }
1626
- return (index.h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
1627
- index.h("style", { type: "text/css" },
1628
- vanillaStyle$1,
1629
- styleString$3),
1630
- index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
1631
- index.h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1632
- states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
1633
- index.h("div", { part: "erroralert-text" }, props.states.error))),
1634
- content.formData,
1635
- !states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
1636
- if (!value) {
1637
- return content.requiredFieldErrorMessage;
1638
- }
1639
- // this matches shoelace validation, but could be better
1640
- if (!value.includes("@")) {
1641
- return content.invalidEmailErrorMessage;
1642
- }
1643
- } }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
1644
- class: sheet$3.classes.ErrorStyle,
1645
- helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
1646
- content.requiredFieldErrorMessage,
1647
- }
1648
- : [])))),
1649
- !states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
1650
- content.passwordField,
1651
- !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.disabled), required: true }, (((_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.confirmPassword) ? {
1652
- value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
1653
- }
1654
- : {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
1655
- class: sheet$3.classes.ErrorStyle,
1656
- helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
1657
- }
1658
- : [])))),
1659
- content.terms,
1660
- index.h("div", { class: sheet$3.classes.ButtonsContainer },
1661
- index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
1662
- content.secondaryButton))));
1663
- }
1664
-
1665
- const style$4 = {
1666
- ErrorStyle: {
1667
- "&::part(control)": {
1668
- borderColor: "var(--sl-color-danger-500)",
1669
- outline: "var(--sl-color-danger-500)",
1670
- },
1671
- "&:host": {
1672
- "--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
1673
- },
1674
- },
1675
- ErrorMessageStyle: {
1676
- margin: 0,
1677
- marginTop: "5px",
1678
- color: "var(--sl-color-danger-500)",
1679
- fontSize: "var(--sl-input-help-text-font-size-medium)",
1680
- fontFamily: "var(--sl-font-sans)",
1681
- fontWeight: "var(--sl-font-weight-normal)",
1682
- },
1683
- FieldContainer: {
1684
- "margin-bottom": "var(--sl-spacing-large)",
1685
- },
1686
- };
1687
- const vanillaStyle$2 = `
1688
- :host {
1689
- margin: 0 auto;
1690
- width: 100%;
1691
- display: block;
1692
- }
1693
- sl-checkbox::part(label){
1694
- font-size: var(--sl-input-label-font-size-small);
1695
- font-weight: var(--sl-font-weight-normal);
1696
- line-height: 20px;
1697
- }
1698
- sl-checkbox::part(base){
1699
- align-items: start;
1700
- }
1701
- `;
1702
- JSS.jss.setup(JSS.create());
1703
- const sheet$4 = JSS.jss.createStyleSheet(style$4);
1704
- const styleString$4 = sheet$4.toString();
1705
- function CheckboxFieldView(props) {
1706
- var _a, _b, _c, _d, _e;
1707
- const { states, content, callbacks } = props;
1708
- const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
1709
- return (index.h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
1710
- index.h("style", { type: "text/css" },
1711
- vanillaStyle$2,
1712
- styleString$4),
1713
- index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
1714
- e.target.value = e.target.checked;
1715
- callbacks.setChecked(e.target.value);
1716
- } }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
1717
- if (!value && !content.checkboxOptional) {
1718
- return content.errorMessage;
1719
- }
1720
- } }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
1721
- class: sheet$4.classes.ErrorStyle,
1722
- }
1723
- : [])), global.intl.formatMessage({
1724
- id: content.checkboxName + "-message",
1725
- defaultMessage: content.checkboxLabel,
1726
- }, {
1727
- labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
1728
- })),
1729
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
1730
- }
1731
-
1732
- function ChangeMarktingView(props) {
1733
- const { states, callbacks } = props;
1734
- const { text, formState } = states;
1735
- const { error } = formState;
1736
- const style = {
1737
- Container: {
1738
- display: "flex",
1739
- flexDirection: "column",
1740
- gap: "var(--sl-spacing-x-small)",
1741
- padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
1742
- },
1743
- SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
1744
- Error: {
1745
- "&::part(erroralert-base)": {
1746
- "margin-bottom": "15px",
1747
- },
1748
- },
1749
- Success: {
1750
- "&::part(successalert-base)": {
1751
- "margin-bottom": "15px",
1752
- },
1753
- },
1754
- };
1755
- const sheet = JSS.createStyleSheet(style);
1756
- const styleString = sheet.toString();
1757
- return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
1758
- index.h("style", { type: "text/css" }, styleString),
1759
- index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
1760
- index.h("sl-form", { "onSl-submit": callbacks.onSubmit },
1761
- index.h(CheckboxFieldView, { states: {
1762
- checked: states.formState.marketingEmailOptIn,
1763
- }, content: {
1764
- checkboxLabel: text.marketingCheckboxLabel,
1765
- checkboxName: "marketingEmailOptIn",
1766
- }, callbacks: {
1767
- setChecked: callbacks.setChecked,
1768
- } }),
1769
- index.h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
1770
- error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
1771
- index.h("div", { part: "erroralert-text" }, error))),
1772
- states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
1773
- index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
1774
- }
1775
-
1776
- const style$5 = {
1777
- Description: {
1778
- "& input[type=checkbox]": {
1779
- display: "none",
1780
- },
1781
- "& input:checked ~ .details": {
1782
- transform: "rotate(-180deg)",
1783
- },
1784
- "& .details": {
1785
- position: "absolute",
1786
- top: "var(--sl-spacing-medium)",
1787
- right: "var(--sl-spacing-medium)",
1788
- color: "var(--sl-color-neutral-700)",
1789
- fontSize: "var(--sl-font-size-large)",
1790
- "& :hover": {
1791
- color: "var(--sl-color-primary-700)",
1792
- },
1793
- transformOrigin: "50% 37%",
1794
- transition: "transform var(--sl-transition-medium) ease",
1795
- cursor: "pointer",
1796
- },
1797
- "& input:checked ~ .summary": {
1798
- transition: "all var(--sl-transition-medium) ease",
1799
- maxHeight: "300px",
1800
- marginBottom: "var(--sl-spacing-x-large)",
1801
- },
1802
- "& input:checked ~ .summary[progress-bar]": {
1803
- marginBottom: "var(--sl-spacing-xx-large)",
1804
- },
1805
- "& .summary": {
1806
- display: "block",
1807
- overflow: "hidden",
1808
- fontSize: "var(--sl-font-size-small)",
1809
- maxHeight: "0px",
1810
- transition: "all var(--sl-transition-fast) ease-out",
1811
- marginBottom: "var(--sl-spacing-medium)",
1812
- },
1813
- },
1814
- };
1815
- const sheet$5 = JSS.createStyleSheet(style$5);
1816
- const styleString$5 = sheet$5.toString();
1817
- function Details(props) {
1818
- const rid = Math.random().toString(36).slice(2);
1819
- return (index.h("div", { style: { opacity: props.opacity } },
1820
- index.h("style", { type: "text/css" }, styleString$5),
1821
- index.h("span", { class: sheet$5.classes.Description },
1822
- index.h("input", { type: "checkbox", id: "details-" + rid }),
1823
- index.h("label", { class: "details", htmlFor: "details-" + rid },
1824
- index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
1825
- index.h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
1446
+ const sheet$1 = JSS.createStyleSheet(style$1);
1447
+ const styleString$1 = sheet$1.toString();
1448
+ function Details(props) {
1449
+ const rid = Math.random().toString(36).slice(2);
1450
+ return (index.h("div", { style: { opacity: props.opacity } },
1451
+ index.h("style", { type: "text/css" }, styleString$1),
1452
+ index.h("span", { class: sheet$1.classes.Description },
1453
+ index.h("input", { type: "checkbox", id: "details-" + rid }),
1454
+ index.h("label", { class: "details", htmlFor: "details-" + rid },
1455
+ index.h("sl-icon", { class: "icon", exportparts: "base: chevron-icon", name: "chevron-down" })),
1456
+ index.h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
1826
1457
  }
1827
1458
 
1828
1459
  const Gift = () => {
@@ -1840,7 +1471,7 @@ const GreyGift = () => {
1840
1471
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#828282" })));
1841
1472
  };
1842
1473
 
1843
- const style$6 = {
1474
+ const style$2 = {
1844
1475
  ProgressBar: {
1845
1476
  "& .progress-bar": {
1846
1477
  height: "0",
@@ -1887,7 +1518,8 @@ const style$6 = {
1887
1518
  width: "100%",
1888
1519
  height: "4px",
1889
1520
  borderRadius: "4px",
1890
- backgroundColor: "var(--sl-color-primary-300)",
1521
+ backgroundColor: "var(--sqm-accent-color-icon)",
1522
+ background: "red",
1891
1523
  },
1892
1524
  "& .progress": {
1893
1525
  display: "block",
@@ -1900,7 +1532,7 @@ const style$6 = {
1900
1532
  width: "12px",
1901
1533
  height: "12px",
1902
1534
  display: "flex",
1903
- backgroundColor: "var(--sl-color-primary-300)",
1535
+ backgroundColor: "var(--sqm-accent-color-icon)",
1904
1536
  borderRadius: "50%",
1905
1537
  position: "relative",
1906
1538
  left: "47%",
@@ -1952,14 +1584,14 @@ const style$6 = {
1952
1584
  },
1953
1585
  },
1954
1586
  };
1955
- const sheet$6 = JSS.createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
1956
- const styleString$6 = sheet$6.toString();
1587
+ const sheet$2 = JSS.createStyleSheet(style$2, { classNamePrefix: "sqm-prog-bar" });
1588
+ const styleString$2 = sheet$2.toString();
1957
1589
  function ProgressBarView(props) {
1958
1590
  const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
1959
1591
  let aggregate = buildProgressBar(repeatable, steps, props);
1960
1592
  const { columns, items } = aggregate;
1961
- return (index.h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1962
- index.h("style", { type: "text/css" }, styleString$6),
1593
+ return (index.h("div", { class: sheet$2.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1594
+ index.h("style", { type: "text/css" }, styleString$2),
1963
1595
  index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
1964
1596
  (Boolean(finite) && progress > 2 * goal)
1965
1597
  ? "progress-bar repeatable-steps"
@@ -2250,165 +1882,150 @@ const arrow_left_right = () => {
2250
1882
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.265 2.789a.346.346 0 000-.489L8.066.101a.346.346 0 10-.489.489l1.61 1.609H2.073a.691.691 0 00-.69.691v1.728a.346.346 0 00.69 0V2.89h7.114L7.577 4.5a.346.346 0 10.49.488l2.198-2.2zM.101 9.21a.346.346 0 000 .489l2.2 2.199a.346.346 0 00.488-.489l-1.61-1.609h7.114c.382 0 .691-.31.691-.691V7.382a.346.346 0 00-.691 0V9.11H1.18L2.789 7.5a.346.346 0 10-.489-.488l-2.199 2.2z", fill: "currentColor" })));
2251
1883
  };
2252
1884
 
2253
- const style$7 = {
2254
- TaskCard: {
2255
- display: "inline-block",
2256
- width: "100%",
2257
- "& .main": {
2258
- position: "relative",
2259
- boxSizing: "border-box",
2260
- background: "var(--sl-color-neutral-0)",
2261
- border: "1px solid var(--sl-color-neutral-200)",
2262
- borderRadius: "var(--sl-border-radius-large)",
2263
- boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
1885
+ function TaskCardView(props) {
1886
+ var _a, _b;
1887
+ const { callbacks, states, content } = props;
1888
+ const style = {
1889
+ TaskCard: {
1890
+ display: "inline-block",
1891
+ width: "100%",
1892
+ "& .main": {
1893
+ position: "relative",
1894
+ boxSizing: "border-box",
1895
+ background: content.backgroundColor || "var(--sqm-portal-background)",
1896
+ border: `var(--sqm-border-thickness) solid ${content.borderColor || "var(--sqm-border-color)"}`,
1897
+ borderRadius: "var(--sqm-border-radius-normal)",
1898
+ boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.4)",
1899
+ fontSize: "var(--sl-font-size-small)",
1900
+ lineHeight: "var(--sl-line-height-dense)",
1901
+ color: content.textColor || "var(--sqm-text)",
1902
+ },
1903
+ "& .main.complete": {
1904
+ opacity: "0.8",
1905
+ borderColor: "var(--sqm-accent-color-border)",
1906
+ },
1907
+ "& .main.expired": {
1908
+ color: content.textColor || "var(--sqm-text)",
1909
+ opacity: "0.8",
1910
+ },
1911
+ "& .title": {
1912
+ fontSize: "var(--sl-font-size-medium)",
1913
+ color: content.textColor || "var(--sqm-text)",
1914
+ },
1915
+ "& .container": {
1916
+ margin: "var(--sl-spacing-medium)",
1917
+ },
1918
+ "& .container.subdued": {
1919
+ opacity: "0.45",
1920
+ },
1921
+ "& .container > div": {
1922
+ margin: "var(--sl-spacing-medium) 0",
1923
+ },
1924
+ },
1925
+ NotStarted: {
2264
1926
  fontSize: "var(--sl-font-size-small)",
1927
+ padding: "var(--sl-spacing-medium)",
1928
+ color: content.textColor || "var(--sqm-primary-color)",
1929
+ border: `var(--sqm-border-thickness, 1px) solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
1930
+ borderRadius: "var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",
1931
+ borderBottom: "none",
1932
+ background: content.backgroundColor || "var(--sl-color-primary-50)",
1933
+ fontWeight: "var(--sl-font-weight-semibold)",
2265
1934
  lineHeight: "var(--sl-line-height-dense)",
2266
- color: "var(--sl-color-neutral-600)",
2267
- },
2268
- "& .main.complete": {
2269
- background: "var(--sl-color-primary-50)",
2270
- borderColor: "var(--sl-color-primary-500)",
2271
- },
2272
- "& .main.expired": {
2273
- color: "var(--sl-color-neutral-600)",
2274
- background: "var(--sl-color-neutral-50)",
2275
- },
2276
- "& .title": {
2277
- fontSize: "var(--sl-font-size-medium)",
2278
- color: "var(--sl-color-neutral-950)",
2279
- },
2280
- "& .container": {
2281
- margin: "var(--sl-spacing-medium)",
1935
+ "& .icon": {
1936
+ position: "relative",
1937
+ top: "0.1em",
1938
+ marginRight: "var(--sl-spacing-small)",
1939
+ color: content.textColor || "var(--sqm-text)",
1940
+ },
2282
1941
  },
2283
- "& .container.subdued": {
2284
- opacity: "0.45",
1942
+ Ended: {
1943
+ fontSize: "var(--sl-font-size-small)",
1944
+ padding: "var(--sl-spacing-medium)",
1945
+ color: content.textColor || "var(--sqm-warning-color-text)",
1946
+ border: `var(--sqm-border-thickness, 1px) solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
1947
+ borderRadius: "var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",
1948
+ borderBottom: "none",
1949
+ background: content.backgroundColor || "var(--sqm-warning-color-background)",
1950
+ fontWeight: "var(--sl-font-weight-semibold)",
1951
+ lineHeight: "var(--sl-line-height-dense)",
1952
+ "& .icon": {
1953
+ position: "relative",
1954
+ top: "0.1em",
1955
+ marginRight: "var(--sl-spacing-small)",
1956
+ color: content.textColor || "var(--sqm-text)",
1957
+ },
2285
1958
  },
2286
- "& .container > div": {
2287
- margin: "var(--sl-spacing-medium) 0",
2288
- },
2289
- },
2290
- NotStarted: {
2291
- fontSize: "var(--sl-font-size-small)",
2292
- padding: "var(--sl-spacing-medium)",
2293
- color: "var(--sl-color-primary-600)",
2294
- border: "1px solid var(--sl-color-neutral-200)",
2295
- borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2296
- borderBottom: "none",
2297
- background: "var(--sl-color-primary-50)",
2298
- fontWeight: "var(--sl-font-weight-semibold)",
2299
- lineHeight: "var(--sl-line-height-dense)",
2300
- "& .icon": {
2301
- position: "relative",
2302
- top: "0.1em",
2303
- marginRight: "var(--sl-spacing-small)",
2304
- color: "var(--sl-color-primary-500)",
2305
- },
2306
- },
2307
- Ended: {
2308
- fontSize: "var(--sl-font-size-small)",
2309
- padding: "var(--sl-spacing-medium)",
2310
- color: "var(--sl-color-warning-600)",
2311
- border: "1px solid var(--sl-color-neutral-200)",
2312
- borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2313
- borderBottom: "none",
2314
- background: "var(--sl-color-warning-50)",
2315
- fontWeight: "var(--sl-font-weight-semibold)",
2316
- lineHeight: "var(--sl-line-height-dense)",
2317
- "& .icon": {
2318
- position: "relative",
2319
- top: "0.1em",
2320
- marginRight: "var(--sl-spacing-small)",
2321
- color: "var(--sl-color-warning-500)",
2322
- },
2323
- },
2324
- Header: {
2325
- display: "flex",
2326
- "& .icon": {
2327
- position: "relative",
2328
- top: "5%",
2329
- alignSelf: "center",
2330
- lineHeight: "0",
2331
- color: "var(--sl-color-primary-400)",
2332
- fontSize: "var(--sl-font-size-large)",
2333
- marginRight: "var(--sl-spacing-x-small)",
2334
- },
2335
- "& .value": {
2336
- alignSelf: "center",
2337
- fontSize: "var(--sl-font-size-x-large)",
2338
- fontWeight: "var(--sl-font-weight-semibold)",
2339
- color: "var(--sl-color-neutral-950)",
2340
- lineHeight: "100%",
2341
- marginRight: "var(--sl-spacing-xx-small)",
2342
- },
2343
- "& .text": {
2344
- alignSelf: "end",
2345
- textTransform: "uppercase",
2346
- fontSize: "var(--sl-font-size-x-small)",
2347
- color: "var(--sl-color-neutral-950)",
2348
- lineHeight: "var(--sl-font-size-medium)",
2349
- marginRight: "var(--sl-spacing-xx-small)",
2350
- },
2351
- "& .end": {
2352
- color: "var(--sl-color-warning-500)",
2353
- fontWeight: "var(--sl-font-weight-semibold)",
2354
- marginBottom: "var(--sl-spacing-xx-small)",
2355
- },
2356
- "& .neutral": {
2357
- color: "var(--sl-color-neutral-400)",
2358
- },
2359
- },
2360
- Footer: {
2361
- "&[data-subdue] .success": {
2362
- color: "var(--sl-color-primary-300)",
2363
- },
2364
- "&[data-subdue] .neutral": {
2365
- color: "var(--sl-color-neutral-300)",
2366
- },
2367
- display: "flex",
2368
- "& .icon": {
2369
- fontSize: "var(--sl-font-size-xx-small)",
2370
- marginRight: "var(--sl-spacing-xx-small)",
2371
- verticalAlign: "middle",
2372
- },
2373
- "& .text": {
2374
- marginTop: "auto",
2375
- verticalAlign: "text-bottom",
2376
- fontSize: "var(--sl-font-size-x-small)",
2377
- color: "var(--sl-color-neutral-400)",
2378
- },
2379
- "& .success": {
2380
- color: "var(--sl-color-primary-500)",
2381
- fontWeight: "var(--sl-font-weight-semibold)",
2382
- },
2383
- "& .action": {
2384
- marginTop: "auto",
2385
- marginLeft: "auto",
2386
- "&::part(base)": {
2387
- color: "var(--sl-color-neutral-0)",
1959
+ Header: {
1960
+ display: "flex",
1961
+ "& .icon": {
1962
+ position: "relative",
1963
+ top: "5%",
1964
+ alignSelf: "center",
1965
+ lineHeight: "0",
1966
+ color: "var(--sqm-accent-color-icon)",
1967
+ fontSize: "var(--sl-font-size-large)",
1968
+ marginRight: "var(--sl-spacing-x-small)",
1969
+ },
1970
+ "& .value": {
1971
+ alignSelf: "center",
1972
+ fontSize: "var(--sl-font-size-x-large)",
1973
+ fontWeight: "var(--sl-font-weight-semibold)",
1974
+ color: content.textColor || "var(--sqm-text)",
1975
+ lineHeight: "100%",
1976
+ marginRight: "var(--sl-spacing-xx-small)",
2388
1977
  },
2389
- "&.disabled::part(base)": {
2390
- border: "1px solid var(--sl-color-primary-400)",
2391
- background: "var(--sl-color-primary-400)",
1978
+ "& .text": {
1979
+ alignSelf: "end",
1980
+ textTransform: "uppercase",
1981
+ fontSize: "var(--sl-font-size-x-small)",
1982
+ color: content.textColor || "var(--sqm-text)",
1983
+ lineHeight: "var(--sl-font-size-medium)",
1984
+ marginRight: "var(--sl-spacing-xx-small)",
2392
1985
  },
2393
- "&.neutral::part(base)": {
2394
- border: "1px solid var(--sl-color-neutral-400)",
2395
- background: "var(--sl-color-neutral-400)",
1986
+ "& .end": {
1987
+ color: content.textColor || "var(--sqm-warning-color-text)",
1988
+ fontWeight: "var(--sl-font-weight-semibold)",
1989
+ marginBottom: "var(--sl-spacing-xx-small)",
1990
+ },
1991
+ "& .neutral": {
1992
+ color: content.textColor || "var(--sl-color-neutral-400)",
2396
1993
  },
2397
1994
  },
2398
- "& .neutral": {
2399
- color: "var(--sl-color-neutral-400)",
2400
- },
2401
- "& .datetime": {
2402
- display: "block",
2403
- marginTop: "var(--sl-spacing-xx-small)",
1995
+ Footer: {
1996
+ "&[data-subdue] .success": {
1997
+ color: content.textColor || "var(--sqm-accent-color-text)",
1998
+ },
1999
+ "&[data-subdue] .neutral": {
2000
+ color: content.textColor || "var(--sqm-text)",
2001
+ },
2002
+ display: "flex",
2003
+ "& .icon": {
2004
+ fontSize: "var(--sl-font-size-xx-small)",
2005
+ marginRight: "var(--sl-spacing-xx-small)",
2006
+ verticalAlign: "middle",
2007
+ },
2008
+ "& .text": {
2009
+ marginTop: "auto",
2010
+ verticalAlign: "text-bottom",
2011
+ fontSize: "var(--sl-font-size-x-small)",
2012
+ color: content.textColor || "var(--sqm-text)",
2013
+ },
2014
+ "& .success": {
2015
+ color: content.textColor || "var(--sqm-text)",
2016
+ fontWeight: "var(--sl-font-weight-semibold)",
2017
+ },
2018
+ "& .neutral": {
2019
+ color: content.textColor || "var(--sqm-text)",
2020
+ },
2021
+ "& .datetime": {
2022
+ display: "block",
2023
+ marginTop: "var(--sl-spacing-xx-small)",
2024
+ },
2404
2025
  },
2405
- },
2406
- };
2407
- const sheet$7 = JSS.createStyleSheet(style$7);
2408
- const styleString$7 = sheet$7.toString();
2409
- function TaskCardView(props) {
2410
- var _a, _b;
2411
- const { callbacks, states, content } = props;
2026
+ };
2027
+ const sheet = JSS.createStyleSheet(style);
2028
+ const contentString = sheet.toString();
2412
2029
  const dateStart = content.rewardDuration &&
2413
2030
  luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
2414
2031
  const dateEnd = content.rewardDuration &&
@@ -2441,11 +2058,11 @@ function TaskCardView(props) {
2441
2058
  }
2442
2059
 
2443
2060
  `;
2444
- return (index.h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
2061
+ return (index.h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
2445
2062
  index.h("style", { type: "text/css" },
2446
- styleString$7,
2063
+ contentString,
2447
2064
  vanillaStyle),
2448
- !states.loading && taskNotStarted && (index.h("div", { class: sheet$7.classes.NotStarted },
2065
+ !states.loading && taskNotStarted && (index.h("div", { class: sheet.classes.NotStarted },
2449
2066
  index.h("span", { class: "icon" },
2450
2067
  index.h("sl-icon", { name: "info-circle-fill" })),
2451
2068
  global.intl.formatMessage({
@@ -2456,7 +2073,7 @@ function TaskCardView(props) {
2456
2073
  .setLocale(utils.luxonLocale(states.locale))
2457
2074
  .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
2458
2075
  }))),
2459
- !states.loading && taskEnded && (index.h("div", { class: sheet$7.classes.Ended },
2076
+ !states.loading && taskEnded && (index.h("div", { class: sheet.classes.Ended },
2460
2077
  index.h("span", { class: "icon" },
2461
2078
  index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
2462
2079
  global.intl.formatMessage({
@@ -2469,14 +2086,14 @@ function TaskCardView(props) {
2469
2086
  }))),
2470
2087
  index.h("div", { part: "sqm-style-container", style: {
2471
2088
  borderRadius: taskUnavailable &&
2472
- "0 0 var(--sl-border-radius-large) var(--sl-border-radius-large)",
2089
+ "0 0 var(--sqm-border-radius-normal) var(--sqm-border-radius-normal)",
2473
2090
  }, class: taskUnavailable
2474
2091
  ? "main expired"
2475
2092
  : taskComplete
2476
2093
  ? "main complete"
2477
2094
  : "main" },
2478
2095
  index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
2479
- index.h("div", { class: sheet$7.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
2096
+ index.h("div", { class: sheet.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (index.h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (index.h("div", null,
2480
2097
  showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
2481
2098
  index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
2482
2099
  index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
@@ -2491,8 +2108,8 @@ function TaskCardView(props) {
2491
2108
  opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2492
2109
  } }, content.cardTitle)),
2493
2110
  states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && (index.h(Details, Object.assign({}, props, { opacity: taskComplete || taskUnavailable ? "0.45" : "1" })))),
2494
- content.showProgressBar && states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.45" : "1", complete: taskComplete, expired: taskUnavailable })))),
2495
- index.h("div", { class: sheet$7.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
2111
+ content.showProgressBar && states.loading ? (index.h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (index.h(ProgressBarView, Object.assign({}, props.content, props.states, { opacity: taskComplete || taskUnavailable ? "0.75" : "1", complete: taskComplete, expired: taskUnavailable })))),
2112
+ index.h("div", { class: sheet.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (index.h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (index.h("div", { style: { display: "contents" } },
2496
2113
  index.h("span", { class: "text" },
2497
2114
  content.repeatable && (index.h("div", null,
2498
2115
  index.h("span", { class: repetitions > 0
@@ -2521,325 +2138,186 @@ function TaskCardView(props) {
2521
2138
  .setLocale(utils.luxonLocale(states.locale))
2522
2139
  .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
2523
2140
  })))),
2524
- content.hideButton ? ("") : (index.h("sl-button", { exportparts: "base: button", id: "sl-button", class: taskUnavailable
2525
- ? "action neutral"
2526
- : taskComplete
2527
- ? "action disabled"
2528
- : "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
2141
+ content.hideButton ? ("") : (index.h("sl-button", { exportparts: `base: ${content.buttonType || "primary"}button-base`, type: "primary", id: "sl-button", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
2529
2142
  opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2530
2143
  } }, content.buttonText)))))))));
2531
2144
  }
2532
2145
 
2533
- function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
2534
- return (index.h("svg", { width: width, height: height, viewBox: "0 0 1662 254", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2535
- index.h("path", { d: "M801.082 253.58L869.382 1.67969", stroke: color, "stroke-width": "3" }),
2536
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M125.682 42.48C123.882 42.48 121.982 42.78 120.382 43.48C118.682 44.18 117.182 45.18 115.882 46.48C114.582 47.68 113.582 49.28 112.882 50.98C112.182 52.68 111.882 54.48 111.982 56.28C112.282 59.68 113.882 63.08 116.382 65.38C118.982 67.78 122.382 68.98 125.782 68.98C129.282 68.98 132.682 67.58 135.182 65.38C137.782 62.98 139.382 59.78 139.582 56.28C139.582 54.38 139.282 52.68 138.682 50.98C137.982 49.28 136.982 47.78 135.682 46.48C134.382 45.18 132.882 44.18 131.182 43.48C129.282 42.78 127.582 42.48 125.682 42.48Z", fill: color }),
2537
- index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
2538
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z", fill: color }),
2539
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
2540
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
2541
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M551.282 239.88C549.982 239.88 548.782 240.28 547.682 240.88C546.682 241.58 545.782 242.58 545.382 243.68C544.882 244.78 544.782 246.08 545.082 247.28C545.282 248.58 545.882 249.68 546.882 250.48C547.782 251.38 548.882 251.98 550.082 252.28C551.382 252.48 552.582 252.38 553.782 251.98C554.882 251.48 555.982 250.78 556.582 249.68C557.282 248.68 557.582 247.38 557.582 246.18C557.582 244.48 556.982 242.88 555.682 241.68C554.482 240.48 552.882 239.88 551.282 239.88Z", fill: color }),
2542
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M586.182 210.78C592.282 210.78 597.582 213.08 601.082 217.18L601.482 217.68L596.282 223.08L595.782 222.58C594.482 221.18 593.082 220.18 591.382 219.48C589.682 218.78 587.882 218.38 586.082 218.48C578.882 218.48 573.682 224.08 573.682 231.58C573.682 239.18 578.882 244.78 586.082 244.78C589.782 244.68 593.282 243.18 595.882 240.58L596.382 240.08L601.382 245.68L600.982 246.08C597.182 250.18 591.982 252.18 586.082 252.18C574.082 252.18 565.382 243.58 565.382 231.58C565.582 219.48 574.182 210.78 586.182 210.78Z", fill: color }),
2543
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M633.782 210.78C621.682 210.78 612.582 219.68 612.582 231.38C612.582 243.08 621.682 251.98 633.782 251.98C645.882 251.98 654.882 243.08 654.882 231.38C655.082 219.78 645.982 210.78 633.782 210.78ZM633.782 244.78C626.382 244.78 620.782 239.28 620.782 231.58C620.782 223.88 626.182 218.48 633.782 218.48C641.182 218.48 646.782 224.08 646.782 231.58C646.782 238.98 641.382 244.78 633.782 244.78Z", fill: color }),
2544
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M723.982 228.78C723.982 222.18 720.382 218.28 714.082 218.28C707.682 218.28 703.382 222.78 702.982 228.98V252.18H695.082V228.68C695.082 222.08 691.482 218.18 685.182 218.18C680.082 218.18 674.482 221.48 674.482 228.88V252.08H666.582V211.38H674.482V214.78L676.682 213.28C679.582 211.38 683.082 210.48 686.582 210.48C692.082 210.48 696.782 212.48 699.882 216.08L700.882 217.28L701.882 216.08C704.782 212.48 709.582 210.48 715.182 210.48C725.082 210.48 731.982 217.08 731.982 226.38V251.88H724.082V228.68H723.982V228.78Z", fill: color }),
2545
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
2546
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
2547
- index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
2548
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M231.481 104.18C238.781 93.4799 251.181 87.3799 266.281 87.3799C290.981 87.3799 307.581 103.28 307.381 127.08V187.48H286.781V132.38C286.781 116.38 278.281 107.18 263.381 107.18C248.481 107.18 237.981 117.68 237.981 132.68V187.48H217.281V132.38C217.281 116.38 208.781 107.18 193.881 107.18C178.981 107.18 168.481 117.68 168.481 132.68V187.48H147.981V89.3799H168.681V97.8799C178.081 88.8799 190.181 87.4799 197.081 87.4799C211.881 87.4799 224.381 93.5799 231.481 104.18Z", fill: color }),
2549
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M370.781 87.48C358.581 87.48 347.981 91.38 339.981 98.38V89.28H319.481V226.08H339.981V177.78C347.881 185.08 358.581 188.78 370.781 188.78C398.781 188.78 419.881 166.88 419.881 138.08C419.981 109.28 398.781 87.48 370.781 87.48ZM368.881 169.58C351.481 169.58 338.881 156.38 338.881 138.28C338.881 120.38 351.381 106.98 368.881 106.98C386.281 106.98 398.881 120.08 398.881 138.28C398.881 156.48 386.381 169.58 368.881 169.58Z", fill: color }),
2550
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M701.782 169.88C707.682 169.88 714.082 167.58 719.582 163.98L721.482 162.88L731.482 178.68L729.782 179.88C721.282 186.28 710.982 189.58 700.382 189.58C678.082 189.58 665.782 176.38 665.782 152.28V108.68H645.682V89.3799H665.782V59.8799H686.482V89.2798H725.682V108.48H686.482V151.88C686.482 163.38 691.982 169.88 701.782 169.88Z", fill: color }),
2551
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M511.681 89.4797V98.7797C503.681 91.4797 493.181 87.6797 480.981 87.6797C452.981 87.6797 431.981 109.68 431.981 138.68C431.981 167.78 453.081 189.68 480.981 189.68C493.181 189.68 503.681 185.78 511.681 178.38V187.68H532.381V89.4797H511.681ZM482.881 169.88C465.481 169.88 452.781 156.58 452.781 138.48C452.781 120.48 465.281 106.98 482.881 106.98C500.481 106.98 512.781 120.08 512.781 138.48C512.781 156.68 500.181 169.88 482.881 169.88Z", fill: color }),
2552
- index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M595.281 107.08C604.181 107.08 611.781 110.38 618.781 116.98L620.481 118.68L633.981 104.58L632.581 102.98C623.781 92.98 610.781 87.48 595.781 87.48C565.981 87.48 544.481 109.08 544.481 138.48C544.481 167.98 565.981 189.48 595.781 189.48C610.481 189.48 623.681 183.98 632.581 174.08L633.981 172.58L620.981 158.18L619.281 159.88C612.481 166.48 603.981 169.98 595.481 169.98C578.381 169.98 565.681 156.68 565.681 138.58C565.581 120.58 577.881 107.08 595.281 107.08Z", fill: color }),
2553
- index.h("path", { d: "M34.6815 112.78C40.6815 112.78 46.5815 114.18 51.8815 116.68C57.2815 119.18 62.0815 122.78 65.9815 127.28C67.9815 122.68 69.0815 117.78 69.0815 112.88C69.0815 108.38 68.1815 103.88 66.4815 99.8799C64.6815 95.6799 62.1815 91.9799 58.9815 88.8799C55.7815 85.7799 51.9815 83.2799 47.7815 81.4799C43.5815 79.7799 39.0815 78.8799 34.5815 78.8799C30.0815 78.8799 25.5815 79.6799 21.3815 81.4799C17.1815 83.1799 13.3815 85.7799 10.1815 88.8799C6.98154 91.9799 4.48154 95.7799 2.68154 99.8799C0.881541 104.08 0.081543 108.38 0.081543 112.88C0.181543 117.88 1.18154 122.78 3.18154 127.28C7.08154 122.68 11.8815 119.18 17.1815 116.68C22.7815 113.98 28.7815 112.68 34.6815 112.78Z", fill: color }),
2554
- index.h("path", { d: "M69.1817 153.48C69.1817 146.68 67.1817 140.18 63.2817 134.48C59.4817 128.88 54.0817 124.48 47.7817 121.88C41.4817 119.28 34.4817 118.68 27.7817 119.88C21.0817 121.28 14.8817 124.48 10.0817 129.28C5.28166 134.08 1.88166 140.08 0.681661 146.78C-0.718339 153.48 0.0816607 160.18 2.68166 166.48C5.28166 172.78 9.68166 178.08 15.4817 181.78C21.0817 185.58 27.7817 187.48 34.6817 187.48C43.7817 187.38 52.5817 183.88 59.0817 177.38C65.6817 170.98 69.1817 162.58 69.1817 153.48Z", fill: color }),
2555
- index.h("path", { d: "M69.1817 34.9799C69.1817 28.1799 67.1817 21.6799 63.2817 15.9799C59.4817 10.3799 54.1817 5.9799 47.7817 3.3799C41.4817 0.779901 34.4817 0.1799 27.7817 1.3799C21.0817 2.7799 14.8817 5.97986 10.0817 10.7799C5.28166 15.5799 1.88166 21.5799 0.681661 28.2799C-0.718339 34.9799 0.0816607 41.6799 2.68166 47.9799C5.28166 54.2799 9.68166 59.5799 15.4817 63.2799C21.0817 67.0799 27.7817 68.9799 34.6817 68.9799C43.8817 68.9799 52.6817 65.3799 59.1817 58.9799C65.5817 52.6799 69.1817 43.8799 69.1817 34.9799Z", fill: color }),
2556
- index.h("path", { d: "M962.664 203.95C953.044 203.95 945.244 201.285 939.264 195.955C933.284 190.495 930.294 183.41 930.294 174.7C930.294 165.08 933.739 157.605 940.629 152.275C947.649 146.945 957.464 144.28 970.074 144.28H993.864V138.43C993.864 129.72 991.589 123.09 987.039 118.54C982.619 113.86 976.184 111.52 967.734 111.52C962.014 111.52 956.749 112.885 951.939 115.615C947.129 118.345 943.229 122.18 940.239 127.12L933.999 120.295C937.639 114.575 942.384 110.22 948.234 107.23C954.214 104.11 960.974 102.55 968.514 102.55C979.694 102.55 988.404 105.605 994.644 111.715C1001.01 117.695 1004.2 126.015 1004.2 136.675V184.255C1004.2 188.805 1004.98 194.72 1006.54 202H997.569C996.399 199.14 995.554 194.07 995.034 186.79H994.644C990.874 192.25 986.259 196.475 980.799 199.465C975.339 202.455 969.294 203.95 962.664 203.95ZM962.664 195.175C968.124 195.175 973.259 194.07 978.069 191.86C982.879 189.52 986.714 186.465 989.574 182.695C992.434 178.795 993.864 174.7 993.864 170.41V152.665H969.489C960.389 152.665 953.239 154.615 948.039 158.515C942.969 162.415 940.434 167.81 940.434 174.7C940.434 180.68 942.514 185.62 946.674 189.52C950.834 193.29 956.164 195.175 962.664 195.175Z", fill: color }),
2557
- index.h("path", { d: "M1067.55 203.95C1055.07 203.95 1045.25 199.27 1038.1 189.91C1030.95 180.55 1027.38 167.745 1027.38 151.495C1027.38 136.415 1031.02 124.52 1038.3 115.81C1045.71 106.97 1055.72 102.55 1068.33 102.55C1074.7 102.55 1080.55 104.045 1085.88 107.035C1091.21 110.025 1095.5 114.25 1098.75 119.71H1099.14V57.3101H1109.67V178.21C1109.67 189.13 1109.86 197.06 1110.25 202H1100.89C1100.63 197.84 1100.5 192.12 1100.5 184.84H1100.11C1097.12 190.69 1092.7 195.37 1086.85 198.88C1081 202.26 1074.57 203.95 1067.55 203.95ZM1068.13 195.175C1077.23 195.175 1084.64 192.185 1090.36 186.205C1096.21 180.225 1099.14 172.49 1099.14 163V146.815C1099.14 135.895 1096.41 127.25 1090.95 120.88C1085.49 114.38 1078.08 111.13 1068.72 111.13C1059.1 111.13 1051.49 114.77 1045.9 122.05C1040.44 129.2 1037.71 139.145 1037.71 151.885C1037.71 165.275 1040.44 175.87 1045.9 183.67C1051.36 191.34 1058.77 195.175 1068.13 195.175Z", fill: color }),
2558
- index.h("path", { d: "M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z", fill: color }),
2559
- index.h("path", { d: "M1261.51 203.95C1252.54 203.95 1244.61 201.87 1237.72 197.71C1230.96 193.55 1225.7 187.635 1221.93 179.965C1218.29 172.295 1216.47 163.39 1216.47 153.25C1216.47 143.11 1218.29 134.205 1221.93 126.535C1225.7 118.865 1230.96 112.95 1237.72 108.79C1244.61 104.63 1252.54 102.55 1261.51 102.55C1270.48 102.55 1278.35 104.63 1285.11 108.79C1292 112.95 1297.33 118.865 1301.1 126.535C1304.87 134.205 1306.75 143.11 1306.75 153.25C1306.75 163.39 1304.87 172.295 1301.1 179.965C1297.33 187.635 1292 193.55 1285.11 197.71C1278.35 201.87 1270.48 203.95 1261.51 203.95ZM1261.51 195.37C1268.4 195.37 1274.45 193.615 1279.65 190.105C1284.98 186.595 1289.07 181.655 1291.93 175.285C1294.79 168.915 1296.22 161.57 1296.22 153.25C1296.22 144.93 1294.79 137.585 1291.93 131.215C1289.07 124.845 1284.98 119.905 1279.65 116.395C1274.45 112.885 1268.4 111.13 1261.51 111.13C1254.75 111.13 1248.71 112.885 1243.38 116.395C1238.18 119.905 1234.15 124.845 1231.29 131.215C1228.43 137.585 1227 144.93 1227 153.25C1227 161.57 1228.43 168.915 1231.29 175.285C1234.15 181.655 1238.18 186.595 1243.38 190.105C1248.71 193.615 1254.75 195.37 1261.51 195.37Z", fill: color }),
2560
- index.h("path", { d: "M1366.03 203.95C1352.25 203.95 1341.52 199.53 1333.85 190.69C1326.31 181.72 1322.54 169.24 1322.54 153.25C1322.54 137.39 1326.38 124.975 1334.05 116.005C1341.72 107.035 1352.38 102.55 1366.03 102.55C1373.57 102.55 1380.26 104.11 1386.11 107.23C1391.96 110.22 1396.77 114.575 1400.54 120.295L1394.3 126.34C1391.31 121.66 1387.28 118.02 1382.21 115.42C1377.27 112.69 1371.88 111.325 1366.03 111.325C1355.76 111.325 1347.63 115.03 1341.65 122.44C1335.8 129.85 1332.88 140.12 1332.88 153.25C1332.88 166.38 1335.8 176.65 1341.65 184.06C1347.63 191.47 1355.76 195.175 1366.03 195.175C1371.88 195.175 1377.27 193.875 1382.21 191.275C1387.28 188.545 1391.31 184.84 1394.3 180.16L1400.54 186.205C1396.77 191.925 1391.96 196.345 1386.11 199.465C1380.26 202.455 1373.57 203.95 1366.03 203.95Z", fill: color }),
2561
- index.h("path", { d: "M1446.55 203.95C1436.93 203.95 1429.13 201.285 1423.15 195.955C1417.17 190.495 1414.18 183.41 1414.18 174.7C1414.18 165.08 1417.62 157.605 1424.51 152.275C1431.53 146.945 1441.35 144.28 1453.96 144.28H1477.75V138.43C1477.75 129.72 1475.47 123.09 1470.92 118.54C1466.5 113.86 1460.07 111.52 1451.62 111.52C1445.9 111.52 1440.63 112.885 1435.82 115.615C1431.01 118.345 1427.11 122.18 1424.12 127.12L1417.88 120.295C1421.52 114.575 1426.27 110.22 1432.12 107.23C1438.1 104.11 1444.86 102.55 1452.4 102.55C1463.58 102.55 1472.29 105.605 1478.53 111.715C1484.9 117.695 1488.08 126.015 1488.08 136.675V184.255C1488.08 188.805 1488.86 194.72 1490.42 202H1481.45C1480.28 199.14 1479.44 194.07 1478.92 186.79H1478.53C1474.76 192.25 1470.14 196.475 1464.68 199.465C1459.22 202.455 1453.18 203.95 1446.55 203.95ZM1446.55 195.175C1452.01 195.175 1457.14 194.07 1461.95 191.86C1466.76 189.52 1470.6 186.465 1473.46 182.695C1476.32 178.795 1477.75 174.7 1477.75 170.41V152.665H1453.37C1444.27 152.665 1437.12 154.615 1431.92 158.515C1426.85 162.415 1424.32 167.81 1424.32 174.7C1424.32 180.68 1426.4 185.62 1430.56 189.52C1434.72 193.29 1440.05 195.175 1446.55 195.175Z", fill: color }),
2562
- index.h("path", { d: "M1547.14 203.95C1539.08 203.95 1532.97 201.48 1528.81 196.54C1524.65 191.47 1522.57 184.19 1522.57 174.7V113.275H1505.02V104.5H1522.57V77.9801L1532.32 74.6651H1533.1V104.5H1560.59V113.275H1533.1V172.555C1533.1 180.355 1534.33 186.01 1536.8 189.52C1539.27 193.03 1543.17 194.785 1548.5 194.785C1553.83 194.785 1558.06 194.005 1561.18 192.445L1562.35 200.83C1558.19 202.91 1553.12 203.95 1547.14 203.95Z", fill: color }),
2563
- index.h("path", { d: "M1661.53 157.54H1589.77C1590.42 169.37 1593.54 178.535 1599.13 185.035C1604.85 191.535 1612.65 194.785 1622.53 194.785C1628.51 194.785 1633.97 193.485 1638.91 190.885C1643.98 188.285 1647.95 184.645 1650.81 179.965L1657.24 186.4C1653.34 192.12 1648.4 196.475 1642.42 199.465C1636.57 202.455 1629.94 203.95 1622.53 203.95C1609.01 203.95 1598.35 199.465 1590.55 190.495C1582.88 181.525 1579.05 169.175 1579.05 153.445C1579.05 137.585 1582.82 125.17 1590.36 116.2C1597.9 107.1 1608.23 102.55 1621.36 102.55C1633.84 102.55 1643.66 106.84 1650.81 115.42C1657.96 124 1661.53 135.895 1661.53 151.105V157.54ZM1651.39 147.4C1651.39 136.48 1648.66 127.77 1643.2 121.27C1637.74 114.77 1630.46 111.52 1621.36 111.52C1611.74 111.52 1604.2 114.77 1598.74 121.27C1593.28 127.77 1590.29 137.065 1589.77 149.155H1651.39V147.4Z", fill: color })));
2146
+ const style$3 = {
2147
+ Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
2148
+ Column: mixins.AuthColumn,
2149
+ HostBlock: mixins.HostBlock,
2150
+ ":host": {
2151
+ margin: "0 auto",
2152
+ width: "100%",
2153
+ },
2154
+ ButtonsContainer: mixins.AuthButtonsContainer,
2155
+ ErrorStyle: mixins.ErrorStyles,
2156
+ };
2157
+ const vanillaStyle = `
2158
+ sqm-portal-register {
2159
+ margin: 0 auto;
2160
+ width: 100%;
2161
+ display: block;
2564
2162
  }
2565
2163
 
2566
- const vanillaStyle$3 = `
2567
- :host{
2568
- margin: 0 auto;
2569
- width: 100%;
2570
- }
2571
- a{
2572
- cursor:pointer;
2573
- color: inherit;
2574
- text-decoration: none;
2575
- }
2164
+ :host{
2165
+ display: block;
2166
+ }
2167
+
2168
+ :host([hidden]) {
2169
+ display: none;
2170
+ }
2576
2171
  `;
2577
- function PortalFooterView(props) {
2578
- const style = {
2579
- RowContainer: {
2580
- display: "flex",
2581
- "& > :not(:last-child)": {
2582
- "margin-right": "var(--sl-spacing-large)",
2583
- },
2584
- },
2585
- Container: {
2586
- display: "flex",
2587
- "flex-direction": "column",
2588
- "align-items": "center",
2589
- "font-size": "var(--sl-font-size-small)",
2590
- color: "var(--sl-color-gray-600)",
2591
- "padding-top": `var(--sl-spacing-${props.paddingTop})`,
2592
- "padding-right": `var(--sl-spacing-${props.paddingRight})`,
2593
- "padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
2594
- "padding-left": `var(--sl-spacing-${props.paddingLeft})`,
2595
- "row-gap": `var(--sl-spacing-small)`,
2596
- "& a:hover": {
2597
- color: "var(--sl-color-gray-900)",
2598
- },
2599
- },
2600
- SupportText: {
2601
- textAlign: "center",
2602
- margin: 0,
2603
- },
2604
- PoweredByLink: {
2605
- color: "var(--sl-color-gray-400)",
2606
- "font-size": "var(--sl-font-size-small)",
2607
- display: "flex",
2608
- alignItems: "center",
2609
- svg: {
2610
- marginTop: "2px",
2611
- shapeRendering: "geometricprecision",
2612
- },
2613
- "&:hover, &:hover *": {
2614
- color: "var(--sl-color-gray-900)",
2615
- },
2616
- },
2617
- };
2618
- const sheet = JSS.createStyleSheet(style);
2619
- const styleString = sheet.toString();
2620
- return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2172
+ const sheet$3 = JSS.createStyleSheet(style$3);
2173
+ const styleString$3 = sheet$3.toString();
2174
+ function PortalRegisterView(props) {
2175
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2176
+ const { states, refs, callbacks, content } = props;
2177
+ if (states.error) {
2178
+ window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
2179
+ }
2180
+ return (index.h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
2621
2181
  index.h("style", { type: "text/css" },
2622
- vanillaStyle$3,
2623
- styleString),
2624
- index.h("div", { class: sheet.classes.RowContainer },
2625
- props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
2626
- props.termsLink && (index.h("a", { target: "_blank", href: props.termsLink }, props.termsText))),
2627
- !props.hideSupportText && (index.h("p", { class: sheet.classes.SupportText }, global.intl.formatMessage({
2628
- id: "supportFooter",
2629
- defaultMessage: props.supportText,
2630
- }, {
2631
- email: (index.h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
2632
- }))),
2633
- !props.hidePoweredBy && (index.h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
2634
- "Powered by ",
2635
- index.h(PoweredByImg, { color: "currentColor" })))));
2182
+ vanillaStyle,
2183
+ styleString$3),
2184
+ index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
2185
+ index.h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2186
+ states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
2187
+ index.h("div", { part: "erroralert-text" }, props.states.error))),
2188
+ content.formData,
2189
+ !states.hideInputs && (index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
2190
+ if (!value) {
2191
+ return content.requiredFieldErrorMessage;
2192
+ }
2193
+ // this matches shoelace validation, but could be better
2194
+ if (!value.includes("@")) {
2195
+ return content.invalidEmailErrorMessage;
2196
+ }
2197
+ } }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
2198
+ class: sheet$3.classes.ErrorStyle,
2199
+ helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
2200
+ content.requiredFieldErrorMessage,
2201
+ }
2202
+ : [])))),
2203
+ !states.hideInputs && (index.h("sqm-password-field", { fieldLabel: content.passwordLabel, "disable-validation": states.disablePasswordValidation, meetsRequirementsText: content.meetsRequirementsText, doesNotMeetRequirementsText: content.doesNotMeetRequirementsText, minErrorText: content.minErrorText, uppercaseErrorText: content.uppercaseErrorText, lowercaseErrorText: content.lowercaseErrorText, hasErrorText: content.hasErrorText })),
2204
+ content.passwordField,
2205
+ !states.hideInputs && states.confirmPassword && (index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading || ((_e = states.registrationFormState) === null || _e === void 0 ? void 0 : _e.disabled), required: true }, (((_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.confirmPassword) ? {
2206
+ value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
2207
+ }
2208
+ : {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
2209
+ class: sheet$3.classes.ErrorStyle,
2210
+ helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
2211
+ }
2212
+ : [])))),
2213
+ content.terms,
2214
+ index.h("div", { class: sheet$3.classes.ButtonsContainer },
2215
+ index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
2216
+ content.secondaryButton))));
2636
2217
  }
2637
2218
 
2638
- const paddingList = [
2639
- "var(--sl-spacing-xxx-small)",
2640
- "var(--sl-spacing-xx-small)",
2641
- "var(--sl-spacing-x-small)",
2642
- "var(--sl-spacing-small)",
2643
- "var(--sl-spacing-medium)",
2644
- "var(--sl-spacing-large)",
2645
- "var(--sl-spacing-x-large)",
2646
- "var(--sl-spacing-xx-large)",
2647
- "var(--sl-spacing-xxx-large)",
2648
- "var(--sl-spacing-xxxx-large)",
2649
- ];
2650
- const parseBackground = (provided_bg) => {
2651
- if (provided_bg) {
2652
- if (utilities.isValidColor(provided_bg)) {
2653
- return provided_bg;
2654
- }
2655
- else {
2656
- return `url(${provided_bg})`;
2657
- }
2658
- }
2659
- else {
2660
- return "";
2661
- }
2662
- };
2663
- function HeroView(props) {
2664
- const { states, content } = props;
2665
- const getVertivalPadding = (size, half) => {
2666
- const sizes = {
2667
- small: 7,
2668
- medium: 8,
2669
- large: 9,
2670
- };
2671
- var index = sizes[size];
2672
- if (utilities.isMobile(767)) {
2673
- index = index - 2;
2674
- }
2675
- else if (utilities.isMobile(1023)) {
2676
- index = index - 1;
2677
- }
2678
- return half ? paddingList[index - 2] : paddingList[index];
2679
- };
2680
- const getHorizontalPadding = (size) => {
2681
- if (size == "small") {
2682
- return "1%";
2683
- }
2684
- else if (size == "medium") {
2685
- return "3%";
2686
- }
2687
- else {
2688
- return "5%";
2689
- }
2690
- };
2691
- // Dependent on props, not feasiable to move out
2692
- const style = {
2693
- TwoColumnContainer: {
2694
- display: "flex",
2695
- "@media screen and (max-width: 1023px)": {
2696
- flexDirection: states.wrapDirection == "wrap-reverse" ? "column-reverse" : "column",
2697
- justfiyContent: "center",
2698
- },
2699
- },
2700
- ColumnPadding: {
2701
- paddingTop: states.paddingSize == "none"
2702
- ? "0px"
2703
- : getVertivalPadding(states.paddingSize),
2704
- paddingBottom: states.paddingSize == "none"
2705
- ? "0px"
2706
- : getVertivalPadding(states.paddingSize),
2707
- paddingLeft: states.paddingSize == "none"
2708
- ? "0px"
2709
- : getHorizontalPadding(states.paddingSize),
2710
- paddingRight: states.paddingSize == "none"
2711
- ? "0px"
2712
- : getHorizontalPadding(states.paddingSize),
2713
- },
2714
- ColumnWrapper: {
2715
- "&:first-of-type": {
2716
- background: `no-repeat center/cover ${parseBackground(states.background)}`,
2717
- },
2718
- "&:last-of-type": {
2719
- background: `no-repeat center/cover ${parseBackground(states.secondaryBackground)}`,
2720
- },
2721
- "@media screen and (min-width: 1023px)": { flex: "1 1 0" },
2722
- minHeight: `${states.minHeight}px`,
2723
- display: "block",
2724
- },
2725
- SingleColumnContainer: {
2726
- background: `no-repeat center/cover ${parseBackground(states.background)}`,
2727
- minHeight: `${states.minHeight}px`,
2728
- },
2729
- Container: {
2730
- width: "100%",
2731
- maxWidth: "var(--sqm-max-width)",
2732
- margin: "0 auto",
2733
- flex: 1,
2734
- display: "flex",
2735
- flexDirection: "column",
2736
- minHeight: "100%",
2737
- },
2738
- };
2739
- const sheet = JSS.createStyleSheet(style);
2740
- const styleString = sheet.toString();
2741
- const vanillaStyle = `
2742
- :host{
2743
- height: 100%;
2744
- display: contents;
2745
- }
2746
- sqm-hero{
2747
- height: 100%;
2748
- display: contents;
2749
- }
2750
- img{
2751
- max-width: 100%;
2752
- height: auto;
2753
- }
2754
-
2755
- `;
2756
- // NOTE: Spacing on the columns is controlled on the slots itself. For example using inline styling
2757
- return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2758
- index.h("style", { type: "text/css" },
2759
- vanillaStyle,
2760
- styleString),
2761
- states.columns == 2 ? (index.h("div", { class: sheet.classes.TwoColumnContainer, part: "sqm-two-col-container" },
2762
- index.h("div", { part: "sqm-two-col-primary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding}` }, content.primaryColumn),
2763
- index.h("div", { part: "sqm-two-col-secondary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding}` }, content.secondaryColumn))) : (index.h("div", { part: "sqm-single-col", class: `${sheet.classes.SingleColumnContainer} ${sheet.classes.ColumnPadding}` }, content.primaryColumn))));
2764
- }
2765
-
2766
- function ReferralIframeView(props) {
2767
- const { states, data } = props;
2768
- const { content } = states;
2769
- // dependent on props
2770
- const style = {
2771
- Container: {
2772
- position: "relative",
2773
- width: content.iframeWidth,
2774
- height: content.iframeHeight,
2775
- },
2776
- IFrame: {
2777
- position: "absolute",
2778
- width: "100%",
2779
- height: "100%",
2780
- border: "0",
2781
- top: "0",
2782
- left: "0",
2783
- right: "0",
2219
+ const style$4 = {
2220
+ ErrorStyle: {
2221
+ "&::part(control)": {
2222
+ borderColor: "var(--sl-color-danger-500)",
2223
+ outline: "var(--sl-color-danger-500)",
2784
2224
  },
2785
- };
2786
- // JSS config
2787
- const sheet = JSS.createStyleSheet(style);
2788
- const styleString = sheet.toString();
2789
- return (index.h("div", { class: sheet.classes.Container },
2790
- index.h("style", { type: "text/css" }, styleString),
2791
- index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
2792
- }
2793
-
2794
- const style$8 = {
2795
- ErrorStyle: mixins.ErrorStyles,
2796
- FieldsContainer: {
2797
- "& sl-input": {
2798
- "margin-bottom": "var(--sl-spacing-large)",
2225
+ "&:host": {
2226
+ "--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
2799
2227
  },
2800
2228
  },
2229
+ ErrorMessageStyle: {
2230
+ margin: 0,
2231
+ marginTop: "5px",
2232
+ color: "var(--sl-color-danger-500)",
2233
+ fontSize: "var(--sl-input-help-text-font-size-medium)",
2234
+ fontFamily: "var(--sl-font-sans)",
2235
+ fontWeight: "var(--sl-font-weight-normal)",
2236
+ },
2237
+ FieldContainer: {
2238
+ "margin-bottom": "var(--sl-spacing-large)",
2239
+ },
2801
2240
  };
2802
- const vanillaStyle$4 = `
2241
+ const vanillaStyle$1 = `
2803
2242
  :host {
2804
2243
  margin: 0 auto;
2805
2244
  width: 100%;
2806
2245
  display: block;
2807
2246
  }
2808
-
2809
- sl-input::part(label){
2247
+ sl-checkbox::part(label){
2810
2248
  font-size: var(--sl-input-label-font-size-small);
2811
- font-weight: var(--sl-font-weight-semibold);
2249
+ font-weight: var(--sl-font-weight-normal);
2250
+ line-height: 20px;
2251
+ }
2252
+ sl-checkbox::part(base){
2253
+ align-items: start;
2254
+ }
2255
+ sl-checkbox[checked]::part(control){
2256
+ background-color: var(--sqm-input-border-color-focus);
2257
+ }
2258
+
2259
+ sl-checkbox[checked]::part(checked-icon){
2260
+ color: var(--sqm-input-background);
2812
2261
  }
2813
2262
  `;
2814
- const sheet$8 = JSS.createStyleSheet(style$8);
2815
- const styleString$8 = sheet$8.toString();
2816
- function NameFieldsView(props) {
2817
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2818
- const { states } = props;
2263
+ JSS.jss.setup(JSS.create());
2264
+ const sheet$4 = JSS.jss.createStyleSheet(style$4);
2265
+ const styleString$4 = sheet$4.toString();
2266
+ function CheckboxFieldView(props) {
2267
+ var _a, _b, _c, _d, _e;
2268
+ const { states, content, callbacks } = props;
2819
2269
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2820
- return (index.h("div", { class: sheet$8.classes.FieldsContainer },
2270
+ return (index.h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
2821
2271
  index.h("style", { type: "text/css" },
2822
- vanillaStyle$4,
2823
- styleString$8),
2824
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
2825
- value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2826
- }
2827
- : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2828
- class: sheet$8.classes.ErrorStyle,
2829
- helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2830
- }
2831
- : []))),
2832
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
2833
- value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2834
- }
2835
- : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2836
- class: sheet$8.classes.ErrorStyle,
2837
- helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
2272
+ vanillaStyle$1,
2273
+ styleString$4),
2274
+ index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
2275
+ e.target.value = e.target.checked;
2276
+ callbacks.setChecked(e.target.value);
2277
+ } }, (!content.checkboxOptional ? { required: false } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
2278
+ if (!value && !content.checkboxOptional) {
2279
+ return content.errorMessage;
2280
+ }
2281
+ } }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.checkboxName]) ? {
2282
+ class: sheet$4.classes.ErrorStyle,
2838
2283
  }
2839
- : [])))));
2284
+ : [])), global.intl.formatMessage({
2285
+ id: content.checkboxName + "-message",
2286
+ defaultMessage: content.checkboxLabel,
2287
+ }, {
2288
+ labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
2289
+ })),
2290
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$4.classes.ErrorMessageStyle }, content.errorMessage))));
2840
2291
  }
2841
2292
 
2842
- const style$9 = {
2293
+ function CouponCodeView(props) {
2294
+ const error = !props.loading && props.error;
2295
+ const style = {
2296
+ HostBlock: mixins.HostBlock,
2297
+ couponCodeLabel: {
2298
+ margin: "var(--sl-spacing-x-small) 0",
2299
+ color: props.textColor || "var(--sqm-text-subdued)",
2300
+ fontSize: "var(--sl-font-size-small)",
2301
+ },
2302
+ };
2303
+ const vanillaStyle = `
2304
+ :host{
2305
+ display: block;
2306
+ width: 100%;
2307
+ }
2308
+ `;
2309
+ const sheet = JSS.createStyleSheet(style);
2310
+ const styleString = sheet.toString();
2311
+ return (index.h("div", null,
2312
+ index.h("style", { type: "text/css" },
2313
+ styleString,
2314
+ vanillaStyle),
2315
+ index.h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
2316
+ error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
2317
+ index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
2318
+ }
2319
+
2320
+ const style$5 = {
2843
2321
  ErrorStyle: {
2844
2322
  "--sl-input-border-color": "var(--sl-color-danger-500)",
2845
2323
  "--sl-input-background-color": "var(--sl-color-danger-10)",
@@ -2855,7 +2333,7 @@ const style$9 = {
2855
2333
  "margin-bottom": "var(--sl-spacing-medium)",
2856
2334
  },
2857
2335
  };
2858
- const vanillaStyle$5 = `
2336
+ const vanillaStyle$2 = `
2859
2337
  :host {
2860
2338
  margin: 0 auto;
2861
2339
  width: 100%;
@@ -2867,58 +2345,382 @@ sl-select::part(label){
2867
2345
  }
2868
2346
  `;
2869
2347
  JSS.jss.setup(JSS.create());
2870
- const sheet$9 = JSS.jss.createStyleSheet(style$9);
2871
- const styleString$9 = sheet$9.toString();
2348
+ const sheet$5 = JSS.jss.createStyleSheet(style$5);
2349
+ const styleString$5 = sheet$5.toString();
2872
2350
  function DropdownFieldView(props) {
2873
2351
  var _a, _b, _c, _d, _e, _f, _g;
2874
2352
  const { states, content } = props;
2875
2353
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2876
- return (index.h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
2354
+ return (index.h("div", { class: sheet$5.classes.FieldContainer, part: "sqm-base" },
2877
2355
  index.h("style", { type: "text/css" },
2878
- vanillaStyle$5,
2879
- styleString$9),
2356
+ vanillaStyle$2,
2357
+ styleString$5),
2880
2358
  index.h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
2881
2359
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2882
2360
  }
2883
2361
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2884
- class: sheet$9.classes.ErrorStyle,
2362
+ class: sheet$5.classes.ErrorStyle,
2885
2363
  }
2886
2364
  : [])), content.selectOptions),
2887
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$9.classes.ErrorMessageStyle }, global.intl.formatMessage({
2365
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$5.classes.ErrorMessageStyle }, global.intl.formatMessage({
2888
2366
  id: `errorMessage-${content.dropdownName}`,
2889
2367
  defaultMessage: content.errorMessage,
2890
2368
  })))));
2891
2369
  }
2892
2370
 
2893
- const style$a = {
2894
- ErrorStyle: mixins.ErrorStyles,
2895
- FieldContainer: {
2896
- "margin-bottom": "var(--sl-spacing-large)",
2897
- },
2898
- };
2899
- const vanillaStyle$6 = `
2900
- :host {
2901
- margin: 0 auto;
2902
- width: 100%;
2903
- display: block;
2904
- }
2905
- `;
2906
- JSS.jss.setup(JSS.create());
2907
- const sheet$a = JSS.jss.createStyleSheet(style$a);
2908
- const styleString$a = sheet$a.toString();
2909
- function InputFieldView(props) {
2910
- var _a, _b, _c, _d, _e, _f, _g;
2911
- const { states, content } = props;
2912
- const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2913
- return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
2914
- index.h("style", { type: "text/css" },
2915
- vanillaStyle$6,
2916
- styleString$a),
2917
- index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
2371
+ const EditProfileView = (props) => {
2372
+ var _a, _b, _c, _d;
2373
+ const { states, callbacks } = props;
2374
+ const { text } = states;
2375
+ const { errors } = states.formState;
2376
+ if (states.showEdit) {
2377
+ return (index.h("div", { class: `CardWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
2378
+ index.h("h2", { part: "sqm-header", style: {
2379
+ fontSize: "var(--sl-font-size-x-large)",
2380
+ margin: "0px",
2381
+ textAlign: "center",
2382
+ } }, text.editprofileheader),
2383
+ index.h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
2384
+ index.h("div", { class: "FormSection" },
2385
+ states.formState.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
2386
+ index.h("div", { part: "erroralert-text" }, states.formState.error))),
2387
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.firstName, onInput: callbacks.onChange, label: text.firstnametext, disabled: states.loading }, (errors.firstName && errors.firstName.status !== "valid"
2388
+ ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
2389
+ : []), { id: "firstName", name: "firstName", error: errors.firstName && errors.firstName.status !== "valid"
2390
+ ? errors.firstName.message
2391
+ : undefined })),
2392
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", value: states.formState.lastName, onInput: callbacks.onChange, label: text.lastnametext, disabled: states.loading, id: "lastName", name: "lastName" }, (errors.lastName && errors.lastName.status !== "valid"
2393
+ ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
2394
+ : []), { error: errors.lastName && errors.lastName.status !== "valid"
2395
+ ? errors.lastName.message
2396
+ : undefined }))),
2397
+ text.showregion && states.formState.currentRegion && (index.h("sl-input", { exportparts: "label: input-label, base: input-base", disabled: true, value: states.formState.currentRegion, label: text.currentregiontext, id: "currentRegion", name: "currentRegion" })),
2398
+ index.h("div", { class: "ButtonWrapper" },
2399
+ index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
2400
+ callbacks.onSubmit(e);
2401
+ }, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
2402
+ index.h("sl-button", { onClick: () => {
2403
+ callbacks.setShowEdit(false);
2404
+ }, type: "secondary", exportparts: "base: secondarybutton-base" }, text.canceltext)))));
2405
+ }
2406
+ return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
2407
+ index.h("div", { class: "FormSection" },
2408
+ index.h("h2", { part: "sqm-header", style: {
2409
+ fontSize: "var(--sl-font-size-x-large)",
2410
+ marginBottom: "0px",
2411
+ textAlign: "center",
2412
+ } }, text.editprofileheader),
2413
+ index.h("div", null,
2414
+ index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" } }, (_a = states.user) === null || _a === void 0 ? void 0 :
2415
+ _a.firstName,
2416
+ " ", (_b = states.user) === null || _b === void 0 ? void 0 :
2417
+ _b.lastName),
2418
+ index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" }, title: (_c = states.user) === null || _c === void 0 ? void 0 : _c.email }, (_d = states.user) === null || _d === void 0 ? void 0 : _d.email))),
2419
+ index.h("sl-button", { type: "primary", loading: states.loading, onClick: () => {
2420
+ callbacks.resetForm();
2421
+ callbacks.setShowEdit(true);
2422
+ }, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
2423
+ };
2424
+
2425
+ function LeaderboardView(props) {
2426
+ var _a, _b, _c;
2427
+ const { states, data, elements } = props;
2428
+ const { styles } = states;
2429
+ const style = {
2430
+ Leaderboard: {
2431
+ "& table": {
2432
+ width: "100%",
2433
+ borderCollapse: "collapse",
2434
+ background: styles.background || "transparent",
2435
+ borderRadius: styles.borderRadius ? `${styles.borderRadius}px` : "0",
2436
+ },
2437
+ "& th": {
2438
+ textAlign: "left",
2439
+ padding: "var(--sl-spacing-medium)",
2440
+ paddingTop: "0",
2441
+ fontSize: "var(--sl-font-size-medium)",
2442
+ fontWeight: "var(--sl-font-weight-semibold)",
2443
+ },
2444
+ "& tr:not(:first-child)": {
2445
+ borderTop: `var(--sqm-border-thickness) solid ${styles.borderColor || "var(--sqm-border-color)"}`,
2446
+ },
2447
+ "& td": {
2448
+ fontSize: "var(--sl-font-size-medium)",
2449
+ fontWeight: "var(--sl-font-weight-normal)",
2450
+ },
2451
+ "& .ellipses": {
2452
+ textAlign: "left",
2453
+ padding: "0",
2454
+ color: styles.textColor || "var(--sqm-text)",
2455
+ paddingLeft: "25%",
2456
+ },
2457
+ "& .highlight": {
2458
+ background: styles.viewingUserHighlightColor ||
2459
+ "var(--sqm-accent-color-background)",
2460
+ "& td, th": {
2461
+ color: styles.viewingUserHighlightTextColor || "var(--sqm-text)",
2462
+ },
2463
+ },
2464
+ "& td, th": {
2465
+ color: styles.textColor || "var(--sqm-text)",
2466
+ padding: "var(--sl-spacing-medium)",
2467
+ },
2468
+ "& .User": {
2469
+ width: "100%",
2470
+ },
2471
+ "& .Score": {
2472
+ width: "auto",
2473
+ whiteSpace: "nowrap",
2474
+ },
2475
+ "& .Rank": {
2476
+ whiteSpace: "nowrap",
2477
+ },
2478
+ "& .fullWidth": {
2479
+ width: "100%",
2480
+ },
2481
+ },
2482
+ };
2483
+ const sheet = JSS.createStyleSheet(style);
2484
+ const styleString = sheet.toString();
2485
+ const vanillaStyle = `
2486
+ :host{
2487
+ display: block;
2488
+ }
2489
+ `;
2490
+ if (states.isEssentials) {
2491
+ return (index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1715360191/squatch-assets/Leaderboard_Not_Available.svg", "empty-state-header": "Leaderboards aren\u2019t available on your plan", "empty-state-text": "Contact {supportText} to upgrade your plan and start leveraging gamification in your program.", "support-text": "Support" }));
2492
+ }
2493
+ if (states.loading) {
2494
+ return (index.h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
2495
+ index.h("style", { type: "text/css" },
2496
+ styleString,
2497
+ vanillaStyle),
2498
+ index.h("table", null, [...Array(10)].map(() => {
2499
+ return (index.h("tr", null,
2500
+ index.h("td", null,
2501
+ index.h("sl-skeleton", null))));
2502
+ }))));
2503
+ }
2504
+ if (!states.hasLeaders)
2505
+ return elements.empty;
2506
+ let userSeenFlag = false;
2507
+ const getUsersName = (user) => {
2508
+ if (!user.firstName && !user.lastInitial)
2509
+ return styles.anonymousUser;
2510
+ const { firstName, lastInitial } = user;
2511
+ if (firstName && lastInitial)
2512
+ return `${firstName} ${lastInitial}`;
2513
+ if (firstName || lastInitial)
2514
+ return firstName || lastInitial;
2515
+ return styles.anonymousUser;
2516
+ };
2517
+ const getRankCellText = (userRank, isViewingUsersRow) => {
2518
+ if (!userRank) {
2519
+ return styles.hideNames ? `${styles.viewingUserText}` : "-";
2520
+ }
2521
+ const viewingUserText = ` - ${styles.viewingUserText}`;
2522
+ return styles.rankSuffix
2523
+ ? global.intl.formatMessage({
2524
+ id: "rank",
2525
+ defaultMessage: styles.rankSuffix,
2526
+ }, {
2527
+ rank: userRank,
2528
+ }) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
2529
+ : `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
2530
+ };
2531
+ return (index.h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
2532
+ index.h("style", { type: "text/css" },
2533
+ styleString,
2534
+ vanillaStyle),
2535
+ index.h("table", { part: "sqm-table" },
2536
+ index.h("tr", null,
2537
+ styles.showRank && (index.h("th", { class: `Rank ${styles.hideNames ? "fullWidth" : ""}` }, styles.rankheading)),
2538
+ !styles.hideNames && index.h("th", { class: "User" }, styles.usersheading),
2539
+ index.h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
2540
+ _a.map((user) => {
2541
+ var _a, _b;
2542
+ if (user.rowNumber === ((_a = data.viewerRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
2543
+ userSeenFlag = true;
2544
+ const isViewingUsersRow = !styles.hideViewer && user.rowNumber === ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rowNumber);
2545
+ return (index.h("tr", { class: isViewingUsersRow ? "highlight" : "" },
2546
+ styles.showRank && (index.h("td", { class: "Rank" }, getRankCellText(user.rank, isViewingUsersRow))),
2547
+ !styles.hideNames && index.h("td", { class: "User" }, getUsersName(user)),
2548
+ index.h("td", { class: "Score" }, user.textValue)));
2549
+ }),
2550
+ !userSeenFlag && !styles.hideViewer && (index.h("tr", null,
2551
+ index.h("td", { colSpan: 100, class: "ellipses" },
2552
+ index.h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
2553
+ !userSeenFlag && !styles.hideViewer && (index.h("tr", { class: "highlight" },
2554
+ styles.showRank && (index.h("td", { class: "Rank" }, getRankCellText((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rank, true))),
2555
+ !styles.hideNames && (index.h("td", { class: "User" }, getUsersName(data.viewerRank || {}))),
2556
+ index.h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
2557
+ }
2558
+
2559
+ const paddingList = [
2560
+ "var(--sl-spacing-xxx-small)",
2561
+ "var(--sl-spacing-xx-small)",
2562
+ "var(--sl-spacing-x-small)",
2563
+ "var(--sl-spacing-small)",
2564
+ "var(--sl-spacing-medium)",
2565
+ "var(--sl-spacing-large)",
2566
+ "var(--sl-spacing-x-large)",
2567
+ "var(--sl-spacing-xx-large)",
2568
+ "var(--sl-spacing-xxx-large)",
2569
+ "var(--sl-spacing-xxxx-large)",
2570
+ ];
2571
+ const parseBackground = (provided_bg) => {
2572
+ if (provided_bg) {
2573
+ if (utilities.isValidColor(provided_bg)) {
2574
+ return provided_bg;
2575
+ }
2576
+ else {
2577
+ return `url(${provided_bg})`;
2578
+ }
2579
+ }
2580
+ else {
2581
+ return "var(--sqm-portal-background)";
2582
+ }
2583
+ };
2584
+ function HeroView(props) {
2585
+ const { states, content } = props;
2586
+ const { secondaryBackground = "var(--sqm-portal-background)" } = states;
2587
+ const getVertivalPadding = (size, half) => {
2588
+ const sizes = {
2589
+ small: 7,
2590
+ medium: 8,
2591
+ large: 9,
2592
+ };
2593
+ var index = sizes[size];
2594
+ if (utilities.isMobile(650)) {
2595
+ index = index - 2;
2596
+ }
2597
+ else if (utilities.isMobile(767)) {
2598
+ index = index - 1;
2599
+ }
2600
+ return half ? paddingList[index - 2] : paddingList[index];
2601
+ };
2602
+ const getHorizontalPadding = (size) => {
2603
+ if (size == "small") {
2604
+ return "1%";
2605
+ }
2606
+ else if (size == "medium") {
2607
+ return "3%";
2608
+ }
2609
+ else {
2610
+ return "5%";
2611
+ }
2612
+ };
2613
+ // Dependent on props, not feasiable to move out
2614
+ const style = {
2615
+ TwoColumnContainer: {
2616
+ display: "flex",
2617
+ "@media screen and (max-width: 650px)": {
2618
+ flexDirection: states.wrapDirection == "wrap-reverse" ? "column-reverse" : "column",
2619
+ justfiyContent: "center",
2620
+ },
2621
+ },
2622
+ ColumnPadding: {
2623
+ paddingTop: states.paddingSize == "none"
2624
+ ? "0px"
2625
+ : getVertivalPadding(states.paddingSize),
2626
+ paddingBottom: states.paddingSize == "none"
2627
+ ? "0px"
2628
+ : getVertivalPadding(states.paddingSize),
2629
+ paddingLeft: states.paddingSize == "none"
2630
+ ? "0px"
2631
+ : getHorizontalPadding(states.paddingSize),
2632
+ paddingRight: states.paddingSize == "none"
2633
+ ? "0px"
2634
+ : getHorizontalPadding(states.paddingSize),
2635
+ },
2636
+ ColumnWrapper: {
2637
+ "&:first-of-type": {
2638
+ background: `no-repeat center/cover ${parseBackground(states.background)}`,
2639
+ },
2640
+ "&:last-of-type": {
2641
+ background: `no-repeat center/cover ${parseBackground(secondaryBackground)}`,
2642
+ },
2643
+ "@media screen and (min-width: 650px)": { flex: "1 1 0" },
2644
+ minHeight: `${states.minHeight}px`,
2645
+ display: "block",
2646
+ },
2647
+ HideColumn: {
2648
+ "@media screen and (max-width: 650px)": { display: "none" },
2649
+ },
2650
+ SingleColumnContainer: {
2651
+ background: `no-repeat center/cover ${parseBackground(states.background)}`,
2652
+ minHeight: `${states.minHeight}px`,
2653
+ },
2654
+ Container: {
2655
+ width: "100%",
2656
+ maxWidth: "var(--sqm-max-width)",
2657
+ margin: "0 auto",
2658
+ flex: 1,
2659
+ display: "flex",
2660
+ flexDirection: "column",
2661
+ minHeight: "100%",
2662
+ },
2663
+ };
2664
+ const sheet = JSS.createStyleSheet(style);
2665
+ const styleString = sheet.toString();
2666
+ const vanillaStyle = `
2667
+ :host{
2668
+ height: 100%;
2669
+ display: contents;
2670
+ }
2671
+ sqm-hero{
2672
+ height: 100%;
2673
+ display: contents;
2674
+ }
2675
+ img{
2676
+ max-width: 100%;
2677
+ height: auto;
2678
+ }
2679
+
2680
+ `;
2681
+ // NOTE: Spacing on the columns is controlled on the slots itself. For example using inline styling
2682
+ return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2683
+ index.h("style", { type: "text/css" },
2684
+ vanillaStyle,
2685
+ styleString),
2686
+ states.columns == 2 ? (index.h("div", { class: sheet.classes.TwoColumnContainer, part: "sqm-two-col-container" },
2687
+ index.h("div", { part: "sqm-two-col-primary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding} ${states.columnToHideInMobile === "primary"
2688
+ ? sheet.classes.HideColumn
2689
+ : ""}` }, content.primaryColumn),
2690
+ index.h("div", { part: "sqm-two-col-secondary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding} ${states.columnToHideInMobile === "secondary"
2691
+ ? sheet.classes.HideColumn
2692
+ : ""}` }, content.secondaryColumn))) : (index.h("div", { part: "sqm-single-col", class: `${sheet.classes.SingleColumnContainer} ${sheet.classes.ColumnPadding}` }, content.primaryColumn))));
2693
+ }
2694
+
2695
+ const style$6 = {
2696
+ ErrorStyle: mixins.ErrorStyles,
2697
+ FieldContainer: {
2698
+ "margin-bottom": "var(--sl-spacing-large)",
2699
+ },
2700
+ };
2701
+ const vanillaStyle$3 = `
2702
+ :host {
2703
+ margin: 0 auto;
2704
+ width: 100%;
2705
+ display: block;
2706
+ }
2707
+ `;
2708
+ JSS.jss.setup(JSS.create());
2709
+ const sheet$6 = JSS.jss.createStyleSheet(style$6);
2710
+ const styleString$6 = sheet$6.toString();
2711
+ function InputFieldView(props) {
2712
+ var _a, _b, _c, _d, _e, _f, _g;
2713
+ const { states, content } = props;
2714
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2715
+ return (index.h("div", { class: sheet$6.classes.FieldContainer, part: "sqm-base" },
2716
+ index.h("style", { type: "text/css" },
2717
+ vanillaStyle$3,
2718
+ styleString$6),
2719
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
2918
2720
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2919
2721
  }
2920
2722
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2921
- class: sheet$a.classes.ErrorStyle,
2723
+ class: sheet$6.classes.ErrorStyle,
2922
2724
  helpText: global.intl.formatMessage({
2923
2725
  id: `errorMessage-${content.fieldName}`,
2924
2726
  defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
@@ -2927,6 +2729,319 @@ function InputFieldView(props) {
2927
2729
  : [])))));
2928
2730
  }
2929
2731
 
2732
+ const style$7 = {
2733
+ ErrorStyle: mixins.ErrorStyles,
2734
+ FieldsContainer: {
2735
+ "& sl-input": {
2736
+ "margin-bottom": "var(--sl-spacing-large)",
2737
+ },
2738
+ },
2739
+ };
2740
+ const vanillaStyle$4 = `
2741
+ :host {
2742
+ margin: 0 auto;
2743
+ width: 100%;
2744
+ display: block;
2745
+ }
2746
+
2747
+ *::part(input-label), *::part(select-label), *::part(textarea-label){
2748
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
2749
+ font-weight: var(--sl-font-weight-semibold);
2750
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
2751
+ }
2752
+
2753
+ *::part(input-base), *::part(select-base), *::part(textarea-base){
2754
+ background-color: var(--sqm-input-background, #fff);
2755
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
2756
+ color: var(--sqm-input-color, white);
2757
+ border-width: var(--sqm-border-thickness, 1px);
2758
+ }
2759
+
2760
+ sl-input::part(base):focus,
2761
+ sl-select::part(form-control-wrapper):focus,
2762
+ sl-textare::part(textarea-label):focus {
2763
+ border-color: none;
2764
+ border: var(--sqm-input-focus-border, var(--sqm-border-thickness) solid var(--sl-input-border-color-focus));
2765
+ }
2766
+
2767
+ *::part(input-label):disabled, *::part(select-label):disabled, *::part(textarea-label):disabled{
2768
+ background: var(--sqm-input-disabled-background, #f5f5f5);
2769
+ color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
2770
+ }
2771
+
2772
+ sl-input {
2773
+ --sl-input-border-color-focus: var(--sqm-border-color-focus);
2774
+ }
2775
+
2776
+ `;
2777
+ const sheet$7 = JSS.createStyleSheet(style$7);
2778
+ const styleString$7 = sheet$7.toString();
2779
+ function NameFieldsView(props) {
2780
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2781
+ const { states } = props;
2782
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2783
+ return (index.h("div", { class: sheet$7.classes.FieldsContainer },
2784
+ index.h("style", { type: "text/css" },
2785
+ vanillaStyle$4,
2786
+ styleString$7),
2787
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/firstName", type: "text", label: states.content.firstNameLabel, required: true, disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e.firstName) ? {
2788
+ value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2789
+ }
2790
+ : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2791
+ class: sheet$7.classes.ErrorStyle,
2792
+ helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2793
+ }
2794
+ : []))),
2795
+ index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: "/lastName", type: "text", label: states.content.lastNameLabel, required: true, disabled: ((_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.loading) || ((_j = states.registrationFormState) === null || _j === void 0 ? void 0 : _j.disabled) }, (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.initialData) === null || _l === void 0 ? void 0 : _l.lastName) ? {
2796
+ value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2797
+ }
2798
+ : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2799
+ class: sheet$7.classes.ErrorStyle,
2800
+ helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
2801
+ }
2802
+ : [])))));
2803
+ }
2804
+
2805
+ function ChangeMarktingView(props) {
2806
+ const { states, callbacks } = props;
2807
+ const { text, formState } = states;
2808
+ const { error } = formState;
2809
+ const style = {
2810
+ Container: {
2811
+ display: "flex",
2812
+ flexDirection: "column",
2813
+ gap: "var(--sl-spacing-x-small)",
2814
+ padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
2815
+ },
2816
+ SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
2817
+ Error: {
2818
+ "&::part(erroralert-base)": {
2819
+ "margin-bottom": "15px",
2820
+ },
2821
+ },
2822
+ Success: {
2823
+ "&::part(successalert-base)": {
2824
+ "margin-bottom": "15px",
2825
+ },
2826
+ },
2827
+ };
2828
+ const sheet = JSS.createStyleSheet(style);
2829
+ const styleString = sheet.toString();
2830
+ return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2831
+ index.h("style", { type: "text/css" }, styleString),
2832
+ index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
2833
+ index.h("sl-form", { "onSl-submit": callbacks.onSubmit },
2834
+ index.h(CheckboxFieldView, { states: {
2835
+ checked: states.formState.marketingEmailOptIn,
2836
+ }, content: {
2837
+ checkboxLabel: text.marketingCheckboxLabel,
2838
+ checkboxName: "marketingEmailOptIn",
2839
+ }, callbacks: {
2840
+ setChecked: callbacks.setChecked,
2841
+ } }),
2842
+ index.h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
2843
+ error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
2844
+ index.h("div", { part: "erroralert-text" }, error))),
2845
+ states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
2846
+ index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
2847
+ }
2848
+
2849
+ const vanillaStyle$5 = `
2850
+ :host{
2851
+ margin: 0 auto;
2852
+ width: 100%;
2853
+ }
2854
+ a{
2855
+ cursor:pointer;
2856
+ color: var(--sqm-text-subdued);
2857
+ text-decoration: none ;
2858
+ }
2859
+ `;
2860
+ function PortalFooterView(props) {
2861
+ const style = {
2862
+ RowContainer: {
2863
+ display: "flex",
2864
+ "& > :not(:last-child)": {
2865
+ "margin-right": "var(--sl-spacing-large)",
2866
+ },
2867
+ },
2868
+ Container: {
2869
+ display: "flex",
2870
+ "flex-direction": "column",
2871
+ "align-items": "center",
2872
+ "font-size": "var(--sl-font-size-small)",
2873
+ color: "var(--sqm-text-subdued)",
2874
+ "padding-top": `var(--sl-spacing-${props.paddingTop})`,
2875
+ "padding-right": `var(--sl-spacing-${props.paddingRight})`,
2876
+ "padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
2877
+ "padding-left": `var(--sl-spacing-${props.paddingLeft})`,
2878
+ "row-gap": `var(--sl-spacing-small)`,
2879
+ "& a:hover": {
2880
+ color: "var(--sqm-text)",
2881
+ },
2882
+ },
2883
+ SupportText: {
2884
+ textAlign: "center",
2885
+ margin: 0,
2886
+ },
2887
+ PoweredByLink: {
2888
+ color: "var(--sqm-text-subdued)",
2889
+ "font-size": "var(--sl-font-size-small)",
2890
+ display: "flex",
2891
+ alignItems: "center",
2892
+ svg: {
2893
+ marginTop: "2px",
2894
+ shapeRendering: "geometricprecision",
2895
+ },
2896
+ "&:hover, &:hover *": {
2897
+ color: "var(--sqm-text)",
2898
+ },
2899
+ },
2900
+ };
2901
+ const sheet = JSS.createStyleSheet(style);
2902
+ const styleString = sheet.toString();
2903
+ return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2904
+ index.h("style", { type: "text/css" },
2905
+ vanillaStyle$5,
2906
+ styleString),
2907
+ index.h("div", { class: sheet.classes.RowContainer },
2908
+ props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
2909
+ props.termsLink && (index.h("a", { target: "_blank", href: props.termsLink }, props.termsText))),
2910
+ !props.hideSupportText && (index.h("p", { class: sheet.classes.SupportText }, global.intl.formatMessage({
2911
+ id: "supportFooter",
2912
+ defaultMessage: props.supportText,
2913
+ }, {
2914
+ email: (index.h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
2915
+ }))),
2916
+ !props.hidePoweredBy && (index.h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
2917
+ "Powered by ",
2918
+ index.h(PoweredByImg, { color: "currentColor" })))));
2919
+ }
2920
+
2921
+ const vanillaStyle$6 = `
2922
+ :host {
2923
+ display: block;
2924
+ }
2925
+ :host([hidden]): {
2926
+ display: none;
2927
+ }
2928
+ `;
2929
+ function PortalForgotPasswordView(props) {
2930
+ const { states, callbacks, content } = props;
2931
+ const style = {
2932
+ FormWrapper: {
2933
+ ...mixins.AuthWrapper,
2934
+ background: content.backgroundColor || "var(--sqm-portal-background)",
2935
+ borderRadius: content.borderRadius || "var(--sqm-border-radius-normal)",
2936
+ border: content.border ||
2937
+ "var(--sqm-border-thickness) solid var(--sqm-border-color)",
2938
+ },
2939
+ Column: { ...mixins.AuthColumn },
2940
+ ButtonsContainer: mixins.AuthButtonsContainer,
2941
+ SecondaryButton: {
2942
+ margin: "auto",
2943
+ display: "block",
2944
+ cursor: "pointer",
2945
+ },
2946
+ };
2947
+ const sheet = JSS.createStyleSheet(style);
2948
+ const styleString = sheet.toString();
2949
+ return (index.h("div", { class: sheet.classes.FormWrapper, part: "sqm-base" },
2950
+ index.h("style", { type: "text/css" },
2951
+ vanillaStyle$6,
2952
+ styleString),
2953
+ index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.messageSlot),
2954
+ index.h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.submit },
2955
+ props.states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
2956
+ index.h("div", { part: "erroralert-text" }, props.states.error))),
2957
+ props.states.success && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
2958
+ index.h("div", { part: "successalert-text" }, content.successAlertText))),
2959
+ index.h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
2960
+ index.h("div", { class: sheet.classes.ButtonsContainer },
2961
+ index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Reset Password"),
2962
+ index.h("sl-button", { type: "secondary", exportparts: "base: secondarybutton-base", class: sheet.classes.SecondaryButton, disabled: states.loading, onClick: () => index_module.jn.push(states.loginPath) }, content.loginText)))));
2963
+ }
2964
+
2965
+ function PortalFrameView(props, children) {
2966
+ const { data, notFullScreen, border } = props;
2967
+ const style = {
2968
+ HostBlock: mixins.HostBlock,
2969
+ Frame: {
2970
+ display: "flex",
2971
+ "flex-direction": "column",
2972
+ "box-sizing": "border-box",
2973
+ "&:nth-child(2)": {
2974
+ background: props.backgroundColor,
2975
+ },
2976
+ },
2977
+ FooterWrapper: {
2978
+ width: "100%",
2979
+ "max-width": "100%",
2980
+ padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
2981
+ background: props.headerAndFooterBackgroundColor,
2982
+ display: "flex",
2983
+ "justify-content": "flex-end",
2984
+ "align-items": "center",
2985
+ "box-sizing": "border-box",
2986
+ borderTop: border,
2987
+ "margin-top": "auto",
2988
+ },
2989
+ HeaderWrapper: {
2990
+ width: "100%",
2991
+ "max-width": "100%",
2992
+ "box-sizing": "border-box",
2993
+ display: "flex",
2994
+ "justify-content": "space-between",
2995
+ padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
2996
+ "align-items": "center",
2997
+ borderBottom: border,
2998
+ background: props.headerAndFooterBackgroundColor,
2999
+ "@media screen and (max-width: 499px)": {
3000
+ "flex-direction": "row-reverse",
3001
+ "justify-content": "flex-end",
3002
+ padding: "0",
3003
+ },
3004
+ },
3005
+ };
3006
+ const sheet = JSS.createStyleSheet(style);
3007
+ const styleString = sheet.toString();
3008
+ return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-base" },
3009
+ index.h("style", { type: "text/css" }, styleString),
3010
+ index.h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-header" },
3011
+ data.header,
3012
+ index.h("slot", { name: "sqm-navigation-menu" })),
3013
+ children,
3014
+ index.h("div", { class: sheet.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
3015
+ }
3016
+
3017
+ function ReferralIframeView(props) {
3018
+ const { states, data } = props;
3019
+ const { content } = states;
3020
+ // dependent on props
3021
+ const style = {
3022
+ Container: {
3023
+ position: "relative",
3024
+ width: content.iframeWidth,
3025
+ height: content.iframeHeight,
3026
+ },
3027
+ IFrame: {
3028
+ position: "absolute",
3029
+ width: "100%",
3030
+ height: "100%",
3031
+ border: "0",
3032
+ top: "0",
3033
+ left: "0",
3034
+ right: "0",
3035
+ },
3036
+ };
3037
+ // JSS config
3038
+ const sheet = JSS.createStyleSheet(style);
3039
+ const styleString = sheet.toString();
3040
+ return (index.h("div", { class: sheet.classes.Container },
3041
+ index.h("style", { type: "text/css" }, styleString),
3042
+ index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
3043
+ }
3044
+
2930
3045
  const CheckMark = () => (index.h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2931
3046
  index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.58.23c.475.371.56 1.057.19 1.532L5.69 9.554a1.091 1.091 0 0 1-1.631.1L.32 5.915a1.09 1.09 0 1 1 1.542-1.542L4.73 7.239 10.049.42A1.09 1.09 0 0 1 11.58.23Z", fill: "#fff" })));
2932
3047
  const CheckmarkFilled = () => (index.h("svg", { width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -2956,15 +3071,15 @@ function Dot({ active, completed, incomplete, stage, }) {
2956
3071
  } },
2957
3072
  index.h("div", { style: {
2958
3073
  backgroundColor: completed
2959
- ? "var(--sl-color-success-500)"
3074
+ ? "var(--sqm-success-color-icon)"
2960
3075
  : incomplete
2961
- ? "var(--sl-color-neutral-200)"
2962
- : "var(--sl-color-neutral-0)",
3076
+ ? "var(--sqm-border-color)"
3077
+ : "white",
2963
3078
  border: active
2964
- ? "1px solid var(--sl-color-success-500)"
3079
+ ? "1px solid var(--sqm-success-color-border)"
2965
3080
  : incomplete
2966
- ? "1px solid var(--sl-color-neutral-200)"
2967
- : "1px solid var(--sl-color-success-500)",
3081
+ ? "1px solid var(--sqm-border-color)"
3082
+ : "1px solid var(--sqm-success-color-border)",
2968
3083
  borderRadius: "50%",
2969
3084
  width: "23px",
2970
3085
  height: "23px",
@@ -2974,8 +3089,8 @@ function Dot({ active, completed, incomplete, stage, }) {
2974
3089
  } }, completed ? (index.h("div", { style: { top: "-10.5%", left: "23.5%", position: "relative" } },
2975
3090
  index.h(CheckMark, null))) : (index.h("div", { style: {
2976
3091
  color: active
2977
- ? "var(--sl-color-success-500)"
2978
- : "var(--sl-color-neutral-50)",
3092
+ ? "var(--sqm-success-color-border)"
3093
+ : "var(--sqm-text-subdued)",
2979
3094
  width: "23px",
2980
3095
  lineHeight: "24px",
2981
3096
  textAlign: "center",
@@ -2989,8 +3104,8 @@ function ProgressLine({ incomplete = false, active = false, invisible = false, }
2989
3104
  height: "4px",
2990
3105
  borderRadius: "4px",
2991
3106
  background: incomplete || active
2992
- ? "var(--sl-color-neutral-200)"
2993
- : "var(--sl-color-success-500)",
3107
+ ? "var(--sqm-border-color)"
3108
+ : "var(--sqm-success-color-icon)",
2994
3109
  position: "relative",
2995
3110
  bottom: "0",
2996
3111
  left: "0",
@@ -3013,7 +3128,7 @@ function ProgressBar({ stageCount, currentStage, }) {
3013
3128
  return (index.h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (index.h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
3014
3129
  }
3015
3130
 
3016
- const style$b = {
3131
+ const style$8 = {
3017
3132
  HostBlock: mixins.HostBlock,
3018
3133
  Container: {
3019
3134
  minWidth: "300px",
@@ -3027,21 +3142,28 @@ const style$b = {
3027
3142
  margin: "0 auto",
3028
3143
  },
3029
3144
  Select: {
3145
+ "&::part(base)": {
3146
+ borderRadius: "var(--sqm-input-border-radius)",
3147
+ },
3030
3148
  "&::part(label)": {
3031
- // color: "var(--sl-color-primary-500)",
3149
+ color: "var(--sqm-input-label-color)",
3032
3150
  },
3033
3151
  "&::part(menu)": {
3034
3152
  maxHeight: "450px",
3035
3153
  },
3036
3154
  "& sl-menu-item::part(checked-icon)": {
3037
3155
  top: "8px",
3156
+ color: "var(--sqm-text)",
3038
3157
  },
3039
3158
  "& sl-menu-item::part(base)": {
3040
3159
  flexDirection: "column",
3160
+ color: "var(--sqm-input-color)"
3161
+ },
3162
+ "& sl-menu-item::part(base):hover": {
3163
+ backgroundColor: "var(--sqm-input-border-color-hover)",
3041
3164
  },
3042
3165
  "& sl-menu-item::part(base):focus": {
3043
- background: "transparent",
3044
- color: "var(--sl-color-gray-700)",
3166
+ background: "var(--sqm-accent-color-background)",
3045
3167
  },
3046
3168
  },
3047
3169
  ProgressBar: {
@@ -3061,7 +3183,7 @@ const style$b = {
3061
3183
  flex: "1 1 0",
3062
3184
  },
3063
3185
  "& .text.subdued": {
3064
- color: "var(--sl-color-neutral-200)",
3186
+ color: "var(--sqm-text-subdued)",
3065
3187
  },
3066
3188
  },
3067
3189
  },
@@ -3076,6 +3198,9 @@ const style$b = {
3076
3198
  userSelect: "none",
3077
3199
  height: "120px",
3078
3200
  "&::part(base)": {
3201
+ background: "var(--sqm-portal-background)",
3202
+ border: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
3203
+ borderRadius: "var(--sqm-border-radius-normal)",
3079
3204
  boxShadow: "none",
3080
3205
  width: "100%",
3081
3206
  },
@@ -3084,10 +3209,11 @@ const style$b = {
3084
3209
  padding: 0,
3085
3210
  },
3086
3211
  "& .selected": {
3212
+ borderRadius: "var(--sqm-border-radius-normal)",
3087
3213
  position: "relative",
3088
3214
  top: "-2%",
3089
3215
  left: "100%",
3090
- color: "var(--sl-color-primary-500)",
3216
+ color: "var(--sqm-primary-color)",
3091
3217
  margin: "-9px",
3092
3218
  },
3093
3219
  },
@@ -3119,7 +3245,7 @@ const style$b = {
3119
3245
  fontSize: "var(--sl-font-size-medium)",
3120
3246
  lineHeight: "var(--sl-line-height-dense)",
3121
3247
  fontWeight: "600",
3122
- color: "var(--sl-color-neutral-1000)",
3248
+ color: "var(--sqm-text)",
3123
3249
  display: "-webkit-box",
3124
3250
  "-webkit-line-clamp": "1",
3125
3251
  "-webkit-box-orient": "vertical",
@@ -3129,7 +3255,7 @@ const style$b = {
3129
3255
  fontSize: "var(--sl-font-size-small)",
3130
3256
  lineHeight: "var(--sl-line-height-dense)",
3131
3257
  marginTop: "var(--sl-spacing-x-small)",
3132
- color: "var(--sl-color-neutral-500)",
3258
+ color: "var(--sqm-text-subdued)",
3133
3259
  display: "-webkit-box",
3134
3260
  "-webkit-line-clamp": "1",
3135
3261
  "-webkit-box-orient": "vertical",
@@ -3140,7 +3266,7 @@ const style$b = {
3140
3266
  lineHeight: "var(--sl-line-height-dense)",
3141
3267
  marginTop: "var(--sl-spacing-x-small)",
3142
3268
  fontWeight: "600",
3143
- color: "var(--sl-color-warning-600)",
3269
+ color: "var(--sqm-warning-color-icon)",
3144
3270
  display: "-webkit-box",
3145
3271
  "-webkit-line-clamp": "1",
3146
3272
  "-webkit-box-orient": "vertical",
@@ -3175,7 +3301,6 @@ const style$b = {
3175
3301
  "& .text": {
3176
3302
  width: "50%",
3177
3303
  maxWidth: "400px",
3178
- // minWidth: "330px",
3179
3304
  "@media (max-width: 799px)": {
3180
3305
  width: "auto",
3181
3306
  margin: "auto",
@@ -3184,17 +3309,17 @@ const style$b = {
3184
3309
  "& .title": {
3185
3310
  fontSize: "var(--sl-font-size-large)",
3186
3311
  fontWeight: "var(--sl-font-weight-semibold)",
3187
- color: "var(--sl-color-neutral-1000)",
3312
+ color: "var(--sqm-text)",
3188
3313
  },
3189
3314
  "& .points": {
3190
3315
  fontSize: "var(--sl-font-size-large)",
3191
3316
  fontWeight: "var(--sl-font-weight-semibold)",
3192
- color: "var(--sl-color-primary-500)",
3317
+ color: "var(--sqm-accent-color-text)",
3193
3318
  },
3194
3319
  "& .description": {
3195
3320
  fontSize: "var(--sl-font-size-medium)",
3196
3321
  fontWeight: "var(--sl-font-weight-normal)",
3197
- color: "var(--sl-color-neutral-500)",
3322
+ color: "var(--sqm-text-subdued)",
3198
3323
  margin: "var(--sl-spacing-medium) 0",
3199
3324
  lineHeight: "var(--sl-line-height-dense)",
3200
3325
  marginTop: "var(--sl-spacing-xx-small)",
@@ -3203,14 +3328,14 @@ const style$b = {
3203
3328
  marginBottom: "var(--sl-spacing-xxx-large)",
3204
3329
  },
3205
3330
  "& sl-menu-item[disabled]::part(label)": {
3206
- color: "var(--sl-color-neutral-300)",
3331
+ color: "var(sqm-text-subdued)",
3207
3332
  },
3208
3333
  "& sl-menu-item[disabled]": {
3209
3334
  "& .step-cost": {
3210
- color: "var(--sl-color-neutral-300)",
3335
+ color: "var(sqm-text-subdued)",
3211
3336
  },
3212
3337
  "& .step-value": {
3213
- color: "var(--sl-color-neutral-300)",
3338
+ color: "var(sqm-text-subdued)",
3214
3339
  },
3215
3340
  },
3216
3341
  },
@@ -3218,16 +3343,16 @@ const style$b = {
3218
3343
  display: "flex",
3219
3344
  flexDirection: "column",
3220
3345
  "&::part(label)": {
3221
- color: "var(--sl-color-neutral-900)",
3346
+ color: "var(--sqm-text)",
3222
3347
  margin: "0",
3223
3348
  },
3224
3349
  "& .step-cost": {
3225
- color: "var(--sl-color-neutral-500)",
3350
+ color: "var(--sqm-text-subdued)",
3226
3351
  marginBottom: "var(--sl-spacing-x-small)",
3227
3352
  },
3228
3353
  "& .step-unavailable": {
3229
3354
  fontSize: "var(--sl-font-size-small)",
3230
- color: "var(--sl-color-warning-500)",
3355
+ color: "var(--sqm-warning-color-text)",
3231
3356
  margin: "0",
3232
3357
  },
3233
3358
  },
@@ -3236,10 +3361,10 @@ const style$b = {
3236
3361
  "& .title": {
3237
3362
  fontSize: "var(--sl-font-size-large)",
3238
3363
  fontWeight: "var(--sl-font-weight-semibold)",
3239
- color: "var(--sl-color-neutral-1000)",
3364
+ color: "var(--sqm-text)",
3240
3365
  },
3241
3366
  "& .description": {
3242
- color: "var(--sl-color-neutral-400)",
3367
+ color: "var(--sqm-text-subued)",
3243
3368
  maxWidth: "350px",
3244
3369
  margin: "0 auto",
3245
3370
  lineHeight: "var(--sl-line-height-dense)",
@@ -3250,7 +3375,7 @@ const style$b = {
3250
3375
  maxWidth: "350px",
3251
3376
  margin: "-30px auto var(--sl-spacing-xxx-large) auto",
3252
3377
  textAlign: "left",
3253
- color: "var(--sl-color-neutral-700)",
3378
+ color: "var(--sqm-text-subdued)",
3254
3379
  },
3255
3380
  },
3256
3381
  Grid: {
@@ -3292,10 +3417,9 @@ const style$b = {
3292
3417
  },
3293
3418
  "& .field": {
3294
3419
  width: "30%",
3295
- textTransform: "uppercase",
3296
3420
  fontSize: "var(--sl-font-size-medium)",
3297
3421
  fontWeight: "var(--sl-font-weight-normal)",
3298
- color: "var(--sl-color-neutral-400)",
3422
+ color: "var(--sqm-text-subdued)",
3299
3423
  textAlign: "left",
3300
3424
  paddingRight: "var(--sl-spacing-xxx-large)",
3301
3425
  "@media (max-width: 499px)": {
@@ -3309,7 +3433,7 @@ const style$b = {
3309
3433
  fontWeight: "var(--sl-font-weight-semibold)",
3310
3434
  },
3311
3435
  "& .top-border": {
3312
- borderTop: "1px solid var(--sl-color-neutral-200)",
3436
+ borderTop: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
3313
3437
  },
3314
3438
  "& .image": {
3315
3439
  width: "200px",
@@ -3325,10 +3449,6 @@ const style$b = {
3325
3449
  "& .cancel": {
3326
3450
  marginLeft: "auto",
3327
3451
  marginRight: "var(--sl-spacing-medium)",
3328
- "&::part(base)": {
3329
- fontWeight: "var(--sl-font-weight-normal)",
3330
- color: "var(--sl-color-neutral-1000)",
3331
- },
3332
3452
  "@media (max-width: 499px)": {
3333
3453
  width: "100%",
3334
3454
  marginRight: "0",
@@ -3336,12 +3456,6 @@ const style$b = {
3336
3456
  },
3337
3457
  },
3338
3458
  "& .continue": {
3339
- "&::part(base)": {
3340
- background: "var(--sl-color-primary-500)",
3341
- borderColor: "var(--sl-color-primary-500)",
3342
- fontWeight: "var(--sl-font-weight-normal)",
3343
- color: "var(--sl-color-neutral-0)",
3344
- },
3345
3459
  "@media (max-width: 499px)": {
3346
3460
  width: "100%",
3347
3461
  },
@@ -3364,8 +3478,8 @@ const style$b = {
3364
3478
  },
3365
3479
  };
3366
3480
  // JSS config
3367
- const sheet$b = JSS.createStyleSheet(style$b);
3368
- const styleString$b = sheet$b.toString();
3481
+ const sheet$8 = JSS.createStyleSheet(style$8);
3482
+ const styleString$8 = sheet$8.toString();
3369
3483
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
3370
3484
  function RewardExchangeView(props) {
3371
3485
  const { states, data, callbacks, refs } = props;
@@ -3388,7 +3502,7 @@ function RewardExchangeView(props) {
3388
3502
  sourceUnit: item.sourceUnit,
3389
3503
  })));
3390
3504
  }
3391
- return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$b.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
3505
+ return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$8.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
3392
3506
  var _a, _b, _c, _d, _e;
3393
3507
  return callbacks.setExchangeState({
3394
3508
  amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
@@ -3396,7 +3510,7 @@ function RewardExchangeView(props) {
3396
3510
  });
3397
3511
  } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
3398
3512
  var _a, _b;
3399
- return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$b.classes.SelectItem },
3513
+ return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$8.classes.SelectItem },
3400
3514
  step.prettyDestinationValue,
3401
3515
  index.h("br", null),
3402
3516
  index.h("div", { class: "step-cost", slot: "suffix" },
@@ -3415,17 +3529,18 @@ function RewardExchangeView(props) {
3415
3529
  var _a;
3416
3530
  return [
3417
3531
  index.h("div", { part: "choose-reward-container" },
3418
- index.h("div", { class: sheet$b.classes.Title }, states.content.text.rewardTitle),
3419
- states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$b.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3532
+ index.h("div", { class: sheet$8.classes.Title }, states.content.text.rewardTitle),
3533
+ states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$8.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3420
3534
  var _a, _b, _c, _d, _e;
3421
3535
  const style = {
3422
3536
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
3423
- ? "0 0 0 2px var(--sl-color-primary-500)"
3537
+ ? "0 0 0 2px var(--sqm-primary-color)"
3424
3538
  : "none",
3425
- borderRadius: "4px",
3539
+ borderRadius: "var(--sqm-border-radius-normal)",
3540
+ borderColor: "none",
3426
3541
  };
3427
3542
  return (index.h("div", { key: item.key, style: style },
3428
- index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$b.classes.Card, style: {
3543
+ index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$8.classes.Card, style: {
3429
3544
  cursor: item.unavailableReasonCode
3430
3545
  ? "not-allowed"
3431
3546
  : "pointer",
@@ -3442,14 +3557,14 @@ function RewardExchangeView(props) {
3442
3557
  ? "rgba(0, 0, 0, 0.05)"
3443
3558
  : "rgba(0, 0, 0, 0)",
3444
3559
  } },
3445
- index.h("div", { class: sheet$b.classes.Image, style: {
3560
+ index.h("div", { class: sheet$8.classes.Image, style: {
3446
3561
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3447
3562
  } },
3448
3563
  index.h("img", { class: item.unavailableReasonCode
3449
3564
  ? "image subdued"
3450
3565
  : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
3451
3566
  index.getAssetPath("./assets/Reward-image.png") })),
3452
- index.h("div", { class: sheet$b.classes.TextArea, style: {
3567
+ index.h("div", { class: sheet$8.classes.TextArea, style: {
3453
3568
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3454
3569
  } },
3455
3570
  index.h("div", { class: "title", style: {
@@ -3482,8 +3597,8 @@ function RewardExchangeView(props) {
3482
3597
  item.prettySourceMinValue,
3483
3598
  }))))))));
3484
3599
  }))),
3485
- index.h("div", { class: sheet$b.classes.Button },
3486
- index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
3600
+ index.h("div", { class: sheet$8.classes.Button },
3601
+ index.h("sl-button", { exportparts: "base: primarybutton-base", type: "primary", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
3487
3602
  ];
3488
3603
  }
3489
3604
  function chooseAmount() {
@@ -3493,7 +3608,7 @@ function RewardExchangeView(props) {
3493
3608
  ? false
3494
3609
  : input && !states.amount;
3495
3610
  return (index.h("div", null,
3496
- index.h("div", { class: sheet$b.classes.ChooseAmount, part: "choose-amount-container" },
3611
+ index.h("div", { class: sheet$8.classes.ChooseAmount, part: "choose-amount-container" },
3497
3612
  index.h("div", { class: "wrapper" },
3498
3613
  index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
3499
3614
  index.getAssetPath("./assets/Reward-image.png") }),
@@ -3502,20 +3617,20 @@ function RewardExchangeView(props) {
3502
3617
  ((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
3503
3618
  ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", null, input)),
3504
3619
  index.h("div", { class: "space" }))),
3505
- index.h("div", { class: sheet$b.classes.Button },
3506
- index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3507
- index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3620
+ index.h("div", { class: sheet$8.classes.Button },
3621
+ index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "secondary", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3622
+ index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", type: "primary", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3508
3623
  }
3509
3624
  function confirmation() {
3510
- const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
3625
+ const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.prettySourceValue);
3511
3626
  const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
3512
3627
  return (index.h("div", null,
3513
- index.h("div", { class: sheet$b.classes.Confirmation, part: "confirmation-container" },
3514
- index.h("div", { class: sheet$b.classes.Title }, states.content.text.redeemTitle),
3628
+ index.h("div", { class: sheet$8.classes.Confirmation, part: "confirmation-container" },
3629
+ index.h("div", { class: sheet$8.classes.Title }, states.content.text.redeemTitle),
3515
3630
  index.h("div", { class: "wrapper" },
3516
3631
  index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
3517
3632
  index.h("div", { class: "reward-item-container" },
3518
- index.h("div", { class: "reward-title" }, selectedItem.name),
3633
+ index.h("div", { class: "reward-title" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name),
3519
3634
  index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
3520
3635
  index.getAssetPath("./assets/Reward-image.png") }))),
3521
3636
  index.h("div", { class: "wrapper padding" },
@@ -3526,13 +3641,13 @@ function RewardExchangeView(props) {
3526
3641
  index.h("div", { class: "wrapper top-border padding" },
3527
3642
  index.h("div", { class: "field" }, states.content.text.costTitle),
3528
3643
  index.h("div", { class: "value" }, cost)),
3529
- index.h("div", { class: sheet$b.classes.Button },
3530
- index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3531
- index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3644
+ index.h("div", { class: sheet$8.classes.Button },
3645
+ index.h("sl-button", { class: "cancel", type: "secondary", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3646
+ index.h("sl-button", { class: "continue", size: "large", type: "primary", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3532
3647
  }
3533
3648
  function success() {
3534
- var _a, _b, _c, _d, _e, _f;
3535
- return (index.h("div", { class: sheet$b.classes.Success, part: "success-container" },
3649
+ var _a, _b, _c, _d, _e, _f, _g, _h;
3650
+ return (index.h("div", { class: sheet$8.classes.Success, part: "success-container" },
3536
3651
  index.h(Gift$1, null),
3537
3652
  index.h(Confetti, null),
3538
3653
  index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
@@ -3540,14 +3655,13 @@ function RewardExchangeView(props) {
3540
3655
  id: "successMessage",
3541
3656
  defaultMessage: states.content.text.redemptionSuccessText,
3542
3657
  }, {
3543
- sourceValue: (_b = states.selectedItem.prettySourceValue) !== null && _b !== void 0 ? _b : (_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettySourceValue,
3544
- destinationValue: ((_d = states.selectedStep) === null || _d === void 0 ? void 0 : _d.prettyDestinationValue) || ((_e = states.selectedItem) === null || _e === void 0 ? void 0 : _e.name) ||
3545
- states.selectedItem.globalRewardKey,
3658
+ sourceValue: (_c = (_b = states.selectedItem) === null || _b === void 0 ? void 0 : _b.prettySourceValue) !== null && _c !== void 0 ? _c : (_d = states.selectedStep) === null || _d === void 0 ? void 0 : _d.prettySourceValue,
3659
+ destinationValue: ((_e = states.selectedStep) === null || _e === void 0 ? void 0 : _e.prettyDestinationValue) || ((_f = states.selectedItem) === null || _f === void 0 ? void 0 : _f.name) || ((_g = states.selectedItem) === null || _g === void 0 ? void 0 : _g.globalRewardKey),
3546
3660
  })),
3547
3661
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
3548
3662
  states.content.text.promoCode,
3549
- index.h(copyTextView.CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
3550
- index.h("div", { class: sheet$b.classes.Button },
3663
+ index.h(copyTextView.CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_h = states === null || states === void 0 ? void 0 : states.content) === null || _h === void 0 ? void 0 : _h.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
3664
+ index.h("div", { class: sheet$8.classes.Button },
3551
3665
  index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
3552
3666
  }
3553
3667
  const stages = {
@@ -3559,7 +3673,7 @@ function RewardExchangeView(props) {
3559
3673
  const currentStage = stages[states.redeemStage];
3560
3674
  function stageMap() {
3561
3675
  const stageNumber = stageList.indexOf(states.redeemStage);
3562
- return (index.h("div", { class: sheet$b.classes.ProgressBar },
3676
+ return (index.h("div", { class: sheet$8.classes.ProgressBar },
3563
3677
  index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
3564
3678
  if (stageList.indexOf(stage) <= stageNumber) {
3565
3679
  return index.h("span", { class: "text" }, stageProgressList[stage]);
@@ -3571,16 +3685,16 @@ function RewardExchangeView(props) {
3571
3685
  index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
3572
3686
  }
3573
3687
  function loading() {
3574
- return (index.h("div", { class: sheet$b.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3688
+ return (index.h("div", { class: sheet$8.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3575
3689
  return (index.h("div", null,
3576
- index.h("sl-card", { class: sheet$b.classes.Card },
3577
- index.h("div", { class: sheet$b.classes.CardLayout },
3690
+ index.h("sl-card", { class: sheet$8.classes.Card },
3691
+ index.h("div", { class: sheet$8.classes.CardLayout },
3578
3692
  index.h("div", null,
3579
3693
  index.h("sl-skeleton", { style: {
3580
3694
  width: "100px",
3581
3695
  height: "100px",
3582
3696
  margin: "9px",
3583
- "--border-radius": "4px",
3697
+ "--border-radius": "var(--sqm-border-radius-normal)",
3584
3698
  } })),
3585
3699
  index.h("div", { style: {
3586
3700
  margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
@@ -3606,12 +3720,12 @@ function RewardExchangeView(props) {
3606
3720
  if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
3607
3721
  return;
3608
3722
  refs.canvasRef.current = canvas;
3609
- }, id: "my-canvas", class: sheet$b.classes.Confetti }));
3723
+ }, id: "my-canvas", class: sheet$8.classes.Confetti }));
3610
3724
  }
3611
3725
  if (states.noExchangeOptions)
3612
3726
  return states.content.text.empty;
3613
- return (index.h("div", { class: sheet$b.classes.Container, part: "sqm-base" },
3614
- index.h("style", { type: "text/css" }, styleString$b),
3727
+ return (index.h("div", { class: sheet$8.classes.Container, part: "sqm-base" },
3728
+ index.h("style", { type: "text/css" }, styleString$8),
3615
3729
  index.h("div", null,
3616
3730
  stageMap(),
3617
3731
  states.exchangeError && errorMessage(),
@@ -3672,15 +3786,14 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
3672
3786
  setStage: null,
3673
3787
  setExchangeState: null,
3674
3788
  copyFuelTankCode: null,
3675
- refs: null,
3676
3789
  },
3677
3790
  refs: null,
3678
3791
  });
3679
3792
  const baseReward = {
3680
- key: "",
3681
- name: "",
3793
+ key: "reward",
3794
+ name: "Demo Reward",
3682
3795
  description: "Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",
3683
- imageUrl: "",
3796
+ imageUrl: "https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png",
3684
3797
  available: true,
3685
3798
  unavailableReasonCode: null,
3686
3799
  ruleType: "FIXED_GLOBAL_REWARD",
@@ -3697,7 +3810,34 @@ const baseReward = {
3697
3810
  prettyDestinationMaxValue: null,
3698
3811
  globalRewardKey: "",
3699
3812
  destinationUnit: null,
3700
- steps: [],
3813
+ steps: [
3814
+ {
3815
+ prettyDestinationValue: "Reward Step 1",
3816
+ prettySourceValue: "50 Points",
3817
+ available: true,
3818
+ unavailableReasonCode: null,
3819
+ destinationValue: 10,
3820
+ sourceValue: 1,
3821
+ globalRewardKey: "reward1",
3822
+ rewardInput: {
3823
+ accountId: "zach",
3824
+ userId: "zach",
3825
+ },
3826
+ },
3827
+ {
3828
+ prettyDestinationValue: "Reward Step 2",
3829
+ prettySourceValue: "100 Points",
3830
+ available: false,
3831
+ unavailableReasonCode: "Not enough points",
3832
+ destinationValue: 10,
3833
+ sourceValue: 1,
3834
+ globalRewardKey: "reward1",
3835
+ rewardInput: {
3836
+ accountId: "zach",
3837
+ userId: "zach",
3838
+ },
3839
+ },
3840
+ ],
3701
3841
  };
3702
3842
  const notEnoughPoints = {
3703
3843
  available: false,
@@ -3818,7 +3958,7 @@ const rewardExchange = {
3818
3958
  ...baseResponse(data),
3819
3959
  };
3820
3960
  const demoRewardExchange = {
3821
- ...baseResponse(demoData),
3961
+ ...baseResponse(demoData, "chooseReward", baseReward),
3822
3962
  };
3823
3963
  const rewardExchangeLongText = {
3824
3964
  ...baseResponse([
@@ -4001,60 +4141,167 @@ const empty = {
4001
4141
  ...baseResponse(null, "chooseReward", null, null, false, false, null, true),
4002
4142
  };
4003
4143
 
4004
- function CardFeedView(props, children) {
4005
- // Dependent on props, not feasiable to move out
4006
- const style = {
4007
- Container: {
4008
- columnGap: props.gap + "px",
4009
- columnWidth: props.width + "px",
4010
- "& > div": {
4011
- marginBottom: "24px",
4012
- },
4013
- },
4144
+ const MessageLinkQuery = index_module.dist.gql `
4145
+ query (
4146
+ $programId: ID
4147
+ $engagementMedium: UserEngagementMedium!
4148
+ $shareMedium: ReferralShareMedium!
4149
+ ) {
4150
+ viewer {
4151
+ ... on User {
4152
+ messageLink(
4153
+ programId: $programId
4154
+ engagementMedium: $engagementMedium
4155
+ shareMedium: $shareMedium
4156
+ )
4157
+ shareLink(programId: $programId, engagementMedium: $engagementMedium)
4158
+ }
4159
+ }
4160
+ }
4161
+ `;
4162
+ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformText) {
4163
+ const title = props.sharetitle || "Share title";
4164
+ const text = props.sharetext || "Share text";
4165
+ if (directLink === "undefined") {
4166
+ return alert(undefinedErrorText);
4167
+ }
4168
+ if (window.navigator.share) {
4169
+ window.navigator
4170
+ .share({
4171
+ title,
4172
+ text,
4173
+ url: directLink,
4174
+ })
4175
+ .catch((error) => console.error("Error on web share", error));
4176
+ }
4177
+ else {
4178
+ alert(unsupportedPlatformText);
4179
+ }
4180
+ }
4181
+ function FacebookShare(directLink, messageLink, errorText) {
4182
+ if (messageLink === "undefined" || directLink === "undefined") {
4183
+ return alert(errorText);
4184
+ }
4185
+ if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
4186
+ return SquatchAndroid.shareOnFacebook(directLink, messageLink);
4187
+ }
4188
+ else {
4189
+ return GenericShare(messageLink, errorText);
4190
+ }
4191
+ }
4192
+ function GenericShare(messageLink, errorText) {
4193
+ return messageLink ? (window.location.href = messageLink) : alert(errorText);
4194
+ }
4195
+ function useShareButton(props) {
4196
+ var _a, _b, _c, _d;
4197
+ const { sharetitle, sharetext, medium } = props;
4198
+ const programId = props.programId ? props.programId : index_module.H();
4199
+ const user = index_module.J();
4200
+ const engagementMedium = index_module.B();
4201
+ const variables = {
4202
+ engagementMedium,
4203
+ programId: programId,
4204
+ shareMedium: medium.toUpperCase(),
4014
4205
  };
4015
- const sheet = JSS.createStyleSheet(style);
4016
- const styleString = sheet.toString();
4017
- const vanillaStyle = `
4018
- :host{
4019
- display: block;
4206
+ const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
4207
+ const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
4208
+ // only queries if a programId is available
4209
+ const res = index_module.wn(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
4210
+ const [setCopied, copiedRes] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
4211
+ const directLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.shareLink) || ((_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink);
4212
+ const environment = index_module.getEnvironmentSDK();
4213
+ const hide = (medium.toLocaleUpperCase() === "SMS" &&
4214
+ window.orientation === undefined) ||
4215
+ (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
4216
+ const messageLink = (overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink) || ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.viewer) === null || _d === void 0 ? void 0 : _d.messageLink);
4217
+ async function onClick() {
4218
+ if (overrideData) {
4219
+ await setCopied({ referralCode: contextData.referralCode });
4220
+ contextData.refresh();
4020
4221
  }
4021
-
4022
- `;
4023
- return (index.h("div", null,
4024
- index.h("style", { type: "text/css" },
4025
- styleString,
4026
- vanillaStyle),
4027
- index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
4222
+ if (medium.toLocaleUpperCase() === "FACEBOOK" &&
4223
+ environment.type === "SquatchAndroid") {
4224
+ FacebookShare(directLink, messageLink, props.errorText);
4225
+ }
4226
+ else if (medium.toLocaleUpperCase() === "DIRECT") {
4227
+ NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
4228
+ }
4229
+ }
4230
+ const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
4231
+ environment.type === "SquatchAndroid") &&
4232
+ medium.toLocaleUpperCase() !== "DIRECT" &&
4233
+ messageLink;
4234
+ const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
4235
+ const openInSameTab = ios && !safari;
4236
+ return {
4237
+ ...props,
4238
+ loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
4239
+ messageLink,
4240
+ isPlainLink,
4241
+ onClick,
4242
+ openInSameTab,
4243
+ hide,
4244
+ };
4028
4245
  }
4029
4246
 
4030
- const style$c = {
4031
- HostBlock: mixins.HostBlock,
4032
- couponCodeLabel: {
4033
- margin: "var(--sl-spacing-x-small) 0",
4034
- color: "var(--sl-color-gray-500)",
4035
- fontSize: "var(--sl-font-size-small)",
4036
- },
4037
- };
4038
- const vanillaStyle$7 = `
4039
- :host{
4040
- display: block;
4041
- width: 100%;
4247
+ const MessageLinkQuery$1 = index_module.dist.gql `
4248
+ query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
4249
+ user: viewer {
4250
+ ... on User {
4251
+ shareLink(
4252
+ programId: $programId
4253
+ engagementMedium: $engagementMedium
4254
+ shareMedium: DIRECT
4255
+ )
4256
+ }
4257
+ }
4042
4258
  }
4043
4259
  `;
4044
- const sheet$c = JSS.createStyleSheet(style$c);
4045
- const styleString$c = sheet$c.toString();
4046
- function CouponCodeView(props) {
4047
- const error = !props.loading && props.error;
4048
- return (index.h("div", null,
4049
- index.h("style", { type: "text/css" },
4050
- styleString$c,
4051
- vanillaStyle$7),
4052
- index.h("p", { class: sheet$c.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4053
- error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
4054
- index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
4260
+ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
4261
+ mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
4262
+ createUserAnalyticsEvent(eventMeta: $eventMeta)
4263
+ }
4264
+ `;
4265
+ function useShareLink(props) {
4266
+ var _a, _b;
4267
+ const { programId = index_module.H() } = props;
4268
+ const user = index_module.J();
4269
+ const engagementMedium = index_module.B();
4270
+ const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
4271
+ const { data } = index_module.wn(MessageLinkQuery$1, { programId, engagementMedium }, !(user === null || user === void 0 ? void 0 : user.jwt) || !!props.linkOverride || (contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) !== undefined);
4272
+ const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
4273
+ const [setCopied, copiedRes] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
4274
+ const copyString = (_b = ((contextData === null || contextData === void 0 ? void 0 : contextData.shareLink) || ((_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink))) !== null && _b !== void 0 ? _b :
4275
+ // Shown during loading
4276
+ "...";
4277
+ const [open, setOpen] = domContextHooks_module.useState(false);
4278
+ async function onClick() {
4279
+ if (contextData) {
4280
+ await setCopied({ referralCode: contextData.referralCode });
4281
+ contextData.refresh();
4282
+ }
4283
+ // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
4284
+ // Only if called from a user-initiated event
4285
+ navigator.clipboard.writeText(copyString);
4286
+ setOpen(true);
4287
+ setTimeout(() => setOpen(false), props.tooltiplifespan);
4288
+ sendLoadEvent({
4289
+ eventMeta: {
4290
+ programId,
4291
+ id: user === null || user === void 0 ? void 0 : user.id,
4292
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
4293
+ type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
4294
+ meta: {
4295
+ engagementMedium,
4296
+ shareMedium: "DIRECT",
4297
+ },
4298
+ },
4299
+ });
4300
+ }
4301
+ return { ...props, onClick, open, copyString: copyString };
4055
4302
  }
4056
4303
 
4057
- const style$d = {
4304
+ const style$9 = {
4058
4305
  Wrapper: {
4059
4306
  ...mixins.AuthWrapper,
4060
4307
  "max-width": "600px",
@@ -4092,7 +4339,7 @@ const style$d = {
4092
4339
  },
4093
4340
  ErrorStyle: mixins.ErrorStyles,
4094
4341
  };
4095
- const vanillaStyle$8 = `
4342
+ const vanillaStyle$7 = `
4096
4343
  sqm-portal-register {
4097
4344
  margin: 0 auto;
4098
4345
  width: 100%;
@@ -4107,8 +4354,8 @@ sqm-portal-register {
4107
4354
  display: none;
4108
4355
  }
4109
4356
  `;
4110
- const sheet$d = JSS.createStyleSheet(style$d);
4111
- const styleString$d = sheet$d.toString();
4357
+ const sheet$9 = JSS.createStyleSheet(style$9);
4358
+ const styleString$9 = sheet$9.toString();
4112
4359
  function LeadFormView(props) {
4113
4360
  var _a, _b, _c, _d;
4114
4361
  const { states, refs, callbacks, content } = props;
@@ -4122,23 +4369,23 @@ function LeadFormView(props) {
4122
4369
  fieldLabel,
4123
4370
  });
4124
4371
  return (index.h(index.Fragment, null,
4125
- states.success && (index.h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base" },
4372
+ states.success && (index.h("div", { class: sheet$9.classes.Wrapper, part: "sqm-base" },
4126
4373
  index.h("style", { type: "text/css" },
4127
- vanillaStyle$8,
4128
- styleString$d),
4374
+ vanillaStyle$7,
4375
+ styleString$9),
4129
4376
  index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
4130
4377
  index.h("sqm-form-message", { exportparts: "success-icon" },
4131
4378
  index.h("b", null, content.submitSuccessHeader),
4132
4379
  index.h("br", null),
4133
4380
  index.h("div", { part: "successalert-text" }, content.submitSuccessDescription)),
4134
- index.h("sl-button", { class: sheet$d.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel))),
4135
- index.h("div", { class: sheet$d.classes.Wrapper, part: "sqm-base", style: { display: states.success ? "none" : "block" } },
4381
+ index.h("sl-button", { class: sheet$9.classes.ContinueButton, onClick: callbacks.resetForm, loading: states.loading, exportparts: "base: primarybutton-base", type: "default" }, content.resubmitFormLabel))),
4382
+ index.h("div", { class: sheet$9.classes.Wrapper, part: "sqm-base", style: { display: states.success ? "none" : "block" } },
4136
4383
  index.h("style", { type: "text/css" },
4137
- vanillaStyle$8,
4138
- styleString$d),
4384
+ vanillaStyle$7,
4385
+ styleString$9),
4139
4386
  index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
4140
- index.h("sl-form", { class: sheet$d.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
4141
- states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet$d.classes.ErrorAlertContainer, open: true },
4387
+ index.h("sl-form", { class: sheet$9.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
4388
+ states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", class: sheet$9.classes.ErrorAlertContainer, open: true },
4142
4389
  index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
4143
4390
  index.h("b", null, content.submitErrorHeader),
4144
4391
  index.h("br", null),
@@ -4148,9 +4395,9 @@ function LeadFormView(props) {
4148
4395
  }, {
4149
4396
  supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, content.supportLinkText)),
4150
4397
  }))),
4151
- index.h("div", { class: sheet$d.classes.NameFieldWrapper },
4152
- index.h("sqm-lead-input-field", { class: sheet$d.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
4153
- index.h("sqm-lead-input-field", { class: sheet$d.classes.NameInput, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
4398
+ index.h("div", { class: sheet$9.classes.NameFieldWrapper },
4399
+ index.h("sqm-lead-input-field", { class: sheet$9.classes.NameInput, "field-label": content.firstNameLabel || "First Name", "field-name": "firstName" }),
4400
+ index.h("sqm-lead-input-field", { class: sheet$9.classes.NameInput, "field-label": content.lastNameLabel || "Last Name", "field-name": "lastName" })),
4154
4401
  index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true, validationError: ({ value }) => {
4155
4402
  if (!value) {
4156
4403
  return getRequiredFieldErrorMessage({
@@ -4162,18 +4409,18 @@ function LeadFormView(props) {
4162
4409
  return content.invalidEmailErrorMessage;
4163
4410
  }
4164
4411
  } }, (((_b = (_a = states.leadFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
4165
- class: sheet$d.classes.ErrorStyle,
4412
+ class: sheet$9.classes.ErrorStyle,
4166
4413
  helpText: ((_d = (_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
4167
4414
  content.requiredFieldErrorMessage,
4168
4415
  }
4169
4416
  : []))),
4170
4417
  index.h("input", { type: "hidden", hidden: true, name: "/referralCode", value: states.referralCode }),
4171
4418
  content.formData,
4172
- index.h("div", { class: sheet$d.classes.ButtonsContainer },
4419
+ index.h("div", { class: sheet$9.classes.ButtonsContainer },
4173
4420
  index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"))))));
4174
4421
  }
4175
4422
 
4176
- const style$e = {
4423
+ const style$a = {
4177
4424
  ErrorStyle: {
4178
4425
  "--sl-input-border-color": "var(--sl-color-danger-500)",
4179
4426
  "--sl-input-background-color": "var(--sl-color-danger-10)",
@@ -4189,7 +4436,7 @@ const style$e = {
4189
4436
  "margin-bottom": "var(--sl-spacing-large)",
4190
4437
  },
4191
4438
  };
4192
- const vanillaStyle$9 = `
4439
+ const vanillaStyle$8 = `
4193
4440
  :host {
4194
4441
  margin: 0 auto;
4195
4442
  width: 100%;
@@ -4204,8 +4451,8 @@ sl-select::part(menu){
4204
4451
  }
4205
4452
  `;
4206
4453
  JSS.jss.setup(JSS.create());
4207
- const sheet$e = JSS.jss.createStyleSheet(style$e);
4208
- const styleString$e = sheet$e.toString();
4454
+ const sheet$a = JSS.jss.createStyleSheet(style$a);
4455
+ const styleString$a = sheet$a.toString();
4209
4456
  function LeadDropdownFieldView(props) {
4210
4457
  var _a, _b, _c, _d, _e;
4211
4458
  const { states, content } = props;
@@ -4216,10 +4463,10 @@ function LeadDropdownFieldView(props) {
4216
4463
  }, {
4217
4464
  dropdownLabel,
4218
4465
  });
4219
- return (index.h("div", { class: sheet$e.classes.FieldContainer, part: "sqm-base" },
4466
+ return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
4220
4467
  index.h("style", { type: "text/css" },
4221
- vanillaStyle$9,
4222
- styleString$e),
4468
+ vanillaStyle$8,
4469
+ styleString$a),
4223
4470
  index.h("sl-select", Object.assign({ style: { maxHeight: "100px" }, exportparts: "label: input-label, base: input-base", label: `${content.dropdownLabel}${content.dropdownOptional ? ` ${content.optionalLabel}` : ""}`, name: `/${content.dropdownName}`, multiple: content.multiple }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.leadFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.leadFormState) === null || _c === void 0 ? void 0 : _c.disabled), validationError: ({ value }) => {
4224
4471
  if (!value && !content.dropdownOptional) {
4225
4472
  return getRequiredFieldErrorMessage({
@@ -4227,65 +4474,14 @@ function LeadDropdownFieldView(props) {
4227
4474
  });
4228
4475
  }
4229
4476
  } }, (((_e = (_d = states.leadFormState) === null || _d === void 0 ? void 0 : _d.validationErrors) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
4230
- class: sheet$e.classes.ErrorStyle,
4477
+ class: sheet$a.classes.ErrorStyle,
4231
4478
  }
4232
4479
  : [])), content.selectOptions),
4233
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$e.classes.ErrorMessageStyle }, getRequiredFieldErrorMessage({
4480
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$a.classes.ErrorMessageStyle }, getRequiredFieldErrorMessage({
4234
4481
  dropdownLabel: content.dropdownLabel,
4235
4482
  })))));
4236
4483
  }
4237
4484
 
4238
- function t(t,n,r){return Math.min(Math.max(t,r),n)}class n extends Error{constructor(t){super(`Failed to parse color: "${t}"`);}}function r(r){if("string"!=typeof r)throw new n(r);if("transparent"===r.trim().toLowerCase())return [0,0,0,0];let e=r.trim();e=u.test(r)?function(t){const r=t.toLowerCase().trim(),e=o[function(t){let n=5381,r=t.length;for(;r;)n=33*n^t.charCodeAt(--r);return (n>>>0)%2341}(r)];if(!e)throw new n(t);return `#${e}`}(r):r;const f=s.exec(e);if(f){const t=Array.from(f).slice(1);return [...t.slice(0,3).map(t=>parseInt(_(t,2),16)),parseInt(_(t[3]||"f",2),16)/255]}const p=i.exec(e);if(p){const t=Array.from(p).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,16)),parseInt(t[3]||"ff",16)/255]}const z=a.exec(e);if(z){const t=Array.from(z).slice(1);return [...t.slice(0,3).map(t=>parseInt(t,10)),parseFloat(t[3]||"1")]}const h=c.exec(e);if(h){const[e,o,_,s]=Array.from(h).slice(1).map(parseFloat);if(t(0,100,o)!==o)throw new n(r);if(t(0,100,_)!==_)throw new n(r);return [...l(e,o,_),s||1]}throw new n(r)}const e=t=>parseInt(t.replace(/_/g,""),36),o="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((t,n)=>{const r=e(n.substring(0,3)),o=e(n.substring(3)).toString(16);let _="";for(let t=0;t<6-o.length;t++)_+="0";return t[r]=`${_}${o}`,t},{}),_=(t,n)=>Array.from(Array(n)).map(()=>t).join(""),s=new RegExp(`^#${_("([a-f0-9])",3)}([a-f0-9])?$`,"i"),i=new RegExp(`^#${_("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),a=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${_(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),c=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,u=/^[a-z]+$/i,f=t=>Math.round(255*t),l=(t,n,r)=>{let e=r/100;if(0===n)return [e,e,e].map(f);const o=(t%360+360)%360/60,_=(1-Math.abs(2*e-1))*(n/100),s=_*(1-Math.abs(o%2-1));let i=0,a=0,c=0;o>=0&&o<1?(i=_,a=s):o>=1&&o<2?(i=s,a=_):o>=2&&o<3?(a=_,c=s):o>=3&&o<4?(a=s,c=_):o>=4&&o<5?(i=s,c=_):o>=5&&o<6&&(i=_,c=s);const u=e-_/2;return [i+u,a+u,c+u].map(f)};function p(t){const[n,e,o,_]=r(t).map((t,n)=>3===n?t:t/255),s=Math.max(n,e,o),i=Math.min(n,e,o),a=(s+i)/2;if(s===i)return [0,0,a,_];const c=s-i;return [60*(n===s?(e-o)/c+(e<o?6:0):e===s?(o-n)/c+2:(n-e)/c+4),a>.5?c/(2-s-i):c/(s+i),a,_]}function z(n,r,e,o){return `hsla(${(n%360).toFixed()}, ${t(0,100,100*r).toFixed()}%, ${t(0,100,100*e).toFixed()}%, ${parseFloat(t(0,1,o).toFixed(3))})`}
4239
-
4240
- const colorScale = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
4241
- const lScale = [
4242
- 0.95,
4243
- 0.86,
4244
- 0.76,
4245
- 0.66,
4246
- 0.56,
4247
- 0.46,
4248
- 0.39,
4249
- 0.32,
4250
- 0.25,
4251
- 0.18,
4252
- 0.15,
4253
- ];
4254
- // https://github.com/ricokahler/color2k/blob/main/src/parseToRgba.ts
4255
- const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
4256
- function niceParseToHsla(color) {
4257
- const normalizedColor = color.trim();
4258
- const hslaMatch = hslaRegex.exec(normalizedColor);
4259
- if (hslaMatch) {
4260
- const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
4261
- if (t(0, 100, s) !== s)
4262
- throw new n(color);
4263
- if (t(0, 100, l) !== l)
4264
- throw new n(color);
4265
- return [h, s / 100, l, a || 1];
4266
- }
4267
- // Warning -- converts to RGB first, so is lossy
4268
- return p(color);
4269
- }
4270
- function generateScale(color, name = "primary") {
4271
- const [h, s, l, a] = niceParseToHsla(color);
4272
- return lScale
4273
- .map((l) => z(h, s, l, a))
4274
- .map((color, index) => {
4275
- return `--sl-color-${name}-${colorScale[index]}: ${color};\n`;
4276
- });
4277
- }
4278
- /**
4279
- * Generated a Shoelace color scale css string from a base color
4280
- *
4281
- * @param color
4282
- * @param name
4283
- * @returns
4284
- */
4285
- function autoColorScaleCss(color, name = "primary") {
4286
- return generateScale(color, name).join("\n");
4287
- }
4288
-
4289
4485
  const map = new Map();
4290
4486
  function withShadowView(component) {
4291
4487
  // TODO: Could only do this if rendered in a Stencilbook environment to prevent unintended side-effects
@@ -4335,6 +4531,7 @@ exports.LeaderboardView = LeaderboardView;
4335
4531
  exports.NameFieldsView = NameFieldsView;
4336
4532
  exports.PortalChangePasswordView = PortalChangePasswordView;
4337
4533
  exports.PortalFooterView = PortalFooterView;
4534
+ exports.PortalForgotPasswordView = PortalForgotPasswordView;
4338
4535
  exports.PortalFrameView = PortalFrameView;
4339
4536
  exports.PortalRegisterView = PortalRegisterView;
4340
4537
  exports.PoweredByImg = PoweredByImg;
@@ -4346,7 +4543,6 @@ exports.ShadowViewAddon = ShadowViewAddon;
4346
4543
  exports.ShareButtonView = ShareButtonView;
4347
4544
  exports.StatContainerView = StatContainerView;
4348
4545
  exports.TaskCardView = TaskCardView;
4349
- exports.autoColorScaleCss = autoColorScaleCss;
4350
4546
  exports.chooseAmountFixed = chooseAmountFixed;
4351
4547
  exports.chooseAmountFixedNoDescription = chooseAmountFixedNoDescription;
4352
4548
  exports.chooseAmountVariable = chooseAmountVariable;