@saasquatch/mint-components 1.15.0-1 → 1.15.0-100

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 (954) hide show
  1. package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-a9845e80.js} +8 -8
  2. package/dist/cjs/IndirectTaxDetailsView-282c1fda.js +646 -0
  3. package/dist/cjs/{ShadowViewAddon-787391f7.js → ShadowViewAddon-43eb56c9.js} +1489 -1334
  4. package/dist/cjs/copy-text-view-f3f1d00a.js +122 -0
  5. package/dist/cjs/data-d4339c2e.js +137 -0
  6. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → dom-context-hooks.module-7fa676ae.js} +18 -18
  7. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-ace50780.js} +5 -3
  8. package/dist/cjs/{global-e31dc4f5.js → global-4cd8623e.js} +11903 -11625
  9. package/dist/cjs/{index-a29c60ef.js → index-a43a63b4.js} +4 -0
  10. package/dist/cjs/{index.module-ee84433d.js → index.module-4f54e412.js} +191 -191
  11. package/dist/cjs/loader.cjs.js +5 -5
  12. package/dist/cjs/{luxon-2926d85f.js → luxon-949beaf2.js} +2 -2
  13. package/dist/cjs/mint-components.cjs.js +5 -5
  14. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  15. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-df37c8a3.js} +2 -2
  16. package/dist/cjs/parseStates-d1effc19.js +16 -0
  17. package/dist/cjs/raisins-plop-target.cjs.entry.js +1 -1
  18. package/dist/cjs/{re-render-b324deab.js → re-render-d516138a.js} +4 -4
  19. package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +872 -2448
  20. package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-8847804c.js} +3 -3
  21. package/dist/cjs/{sqm-big-stat_41.cjs.entry.js → sqm-big-stat_43.cjs.entry.js} +1196 -300
  22. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-5e85ac51.js} +2 -2
  23. package/dist/cjs/sqm-close-button.cjs.entry.js +6 -6
  24. package/dist/cjs/sqm-code-verification.cjs.entry.js +352 -0
  25. package/dist/cjs/sqm-context-router.cjs.entry.js +11 -11
  26. package/dist/cjs/sqm-email-verification.cjs.entry.js +152 -28
  27. package/dist/cjs/sqm-empty_4.cjs.entry.js +58 -63
  28. package/dist/cjs/sqm-form-message.cjs.entry.js +8 -8
  29. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +14 -14
  30. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +6 -6
  31. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  32. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +9 -9
  33. package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
  34. package/dist/cjs/sqm-leaderboard-rank-view-6a1e63de.js +10 -0
  35. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +7 -7
  36. package/dist/cjs/{sqm-logout-current-user-view-11d57c12.js → sqm-logout-current-user-view-b61c8bdf.js} +1 -1
  37. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +6 -6
  38. package/dist/cjs/sqm-navigation-sidebar-item-view-ec7a5c53.js +56 -0
  39. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +31 -8
  40. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-de90ef03.js} +18 -8
  41. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +25 -9
  42. package/dist/cjs/sqm-pagination_3.cjs.entry.js +97 -70
  43. package/dist/cjs/sqm-password-field.cjs.entry.js +11 -11
  44. package/dist/cjs/sqm-popup-container.cjs.entry.js +5 -5
  45. package/dist/cjs/{sqm-portal-container-view-4f15143a.js → sqm-portal-container-view-07e4343f.js} +2 -2
  46. package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-5a22b152.js} +4 -4
  47. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +15 -15
  48. package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-0a8d3243.js} +24 -16
  49. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +39 -10
  50. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +9 -9
  51. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +13 -13
  52. package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-bb50304c.js} +4 -4
  53. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  54. package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-4dbfeaeb.js} +4 -4
  55. package/dist/cjs/sqm-portal-profile.cjs.entry.js +15 -15
  56. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
  57. package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-5a96c2f5.js} +3 -3
  58. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -9
  59. package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-25eb2099.js} +3 -3
  60. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +11 -11
  61. package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-1c4e781f.js} +3 -3
  62. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +12 -12
  63. package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-0c3b2f48.js} +10 -10
  64. package/dist/cjs/sqm-qr-code.cjs.entry.js +12 -13
  65. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +133 -46
  66. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +4 -4
  67. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  68. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +84 -37
  69. package/dist/cjs/sqm-route.cjs.entry.js +1 -1
  70. package/dist/cjs/sqm-scroll.cjs.entry.js +3 -3
  71. package/dist/cjs/sqm-stencilbook.cjs.entry.js +13711 -12407
  72. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  73. package/dist/cjs/sqm-tabs.cjs.entry.js +27 -13
  74. package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1254 -0
  75. package/dist/cjs/sqm-text-span-view-7a61ae4c.js +63 -0
  76. package/dist/cjs/sqm-text-span.cjs.entry.js +7 -7
  77. package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +19 -11
  78. package/dist/cjs/sqm-widget-verification.cjs.entry.js +25 -13
  79. package/dist/cjs/{useChildElements-1b35d945.js → useChildElements-966c9041.js} +5 -5
  80. package/dist/cjs/{useInstantAccessRegistration-0537e28e.js → useInstantAccessRegistration-08bcb487.js} +4 -4
  81. package/dist/cjs/{usePayoutStatus-4b5894ef.js → usePayoutStatus-3b34dab1.js} +13 -10
  82. package/dist/cjs/{usePortalLogin-63d896d1.js → usePortalLogin-6aa864ef.js} +4 -4
  83. package/dist/cjs/{usePortalRegistrationForm-f25d89e7.js → usePortalRegistrationForm-75b647fe.js} +6 -6
  84. package/dist/cjs/{useReferralCodes-82e8797b.js → useReferralCodes-11cdf43b.js} +3 -3
  85. package/dist/cjs/{useReferralTable-7c3f9600.js → useReferralTable-90d4d6e9.js} +10 -10
  86. package/dist/cjs/{useRegistrationFormState-7b820f0c.js → useRegistrationFormState-bbee6e7b.js} +6 -6
  87. package/dist/cjs/{useVerificationEmail-95a82767.js → useVerificationEmail-9dd3997a.js} +6 -6
  88. package/dist/cjs/{utilities-78f5e169.js → utilities-9a0c5e91.js} +4 -4
  89. package/dist/cjs/{utils-6847bc06.js → utils-7cbd60cc.js} +5 -0
  90. package/dist/cjs/utils-aacb4233.js +105 -0
  91. package/dist/collection/collection-manifest.json +1 -1
  92. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  93. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
  94. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +169 -4
  95. package/dist/collection/components/sqm-big-stat/useBigStat.js +127 -8
  96. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +14 -5
  97. package/dist/collection/components/sqm-brand/sqm-brand.js +12 -4
  98. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -1
  99. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -0
  100. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +4 -0
  101. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  102. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +170 -1
  103. package/dist/collection/components/sqm-coupon-code/useCouponCode.js +1 -0
  104. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  105. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +62 -3
  106. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  107. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  108. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +8 -16
  109. package/dist/collection/components/sqm-form-message/sqm-form-message.css +50 -11
  110. package/dist/collection/components/sqm-form-message/sqm-form-message.js +4 -4
  111. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -0
  112. package/dist/collection/components/sqm-hero/Hero.stories.js +11 -0
  113. package/dist/collection/components/sqm-hero/sqm-hero-view.js +13 -6
  114. package/dist/collection/components/sqm-hero/sqm-hero.js +30 -4
  115. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +4 -4
  116. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +80 -0
  117. package/dist/collection/components/sqm-image/sqm-image.js +1 -0
  118. package/dist/collection/components/sqm-instant-access-registration/sqm-instant-access-registration.js +4 -3
  119. package/dist/collection/components/sqm-invoice-table/cells/sqm-invoice-table-download-cell.js +2 -2
  120. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.js +2 -1
  121. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.js +2 -1
  122. package/dist/collection/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.js +2 -1
  123. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table-view.js +1 -1
  124. package/dist/collection/components/sqm-invoice-table/sqm-invoice-table.js +6 -3
  125. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  126. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +60 -54
  127. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +202 -36
  128. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank-view.js +2 -2
  129. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  130. package/dist/collection/components/sqm-link-button/sqm-link-button.js +1 -0
  131. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +2 -1
  132. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +28 -3
  133. package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +1 -0
  134. package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +1 -0
  135. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +17 -7
  136. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +85 -5
  137. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +18 -7
  138. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  139. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  140. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  141. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -2
  142. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -1
  143. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +8 -4
  144. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +2 -1
  145. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +1 -1
  146. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +1 -8
  147. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +6 -6
  148. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer.js +1 -0
  149. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -4
  150. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +21 -13
  151. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +103 -3
  152. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  153. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +102 -2
  154. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  155. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +10 -5
  156. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +1 -1
  157. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -1
  158. package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +1 -0
  159. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  160. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +1 -0
  161. package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +1 -0
  162. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +1 -2
  163. package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +1 -0
  164. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
  165. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +2 -0
  166. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +12 -4
  167. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
  168. package/dist/collection/components/sqm-program-menu/sqm-program-menu.js +1 -0
  169. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
  170. package/dist/collection/components/sqm-qr-code/sqm-qr-code.js +1 -0
  171. package/dist/collection/components/sqm-radio-card/sqm-radio-card-view.js +2 -2
  172. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +34 -31
  173. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +81 -10
  174. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  175. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +170 -1
  176. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  177. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  178. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +29 -1
  179. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +2 -2
  180. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +55 -20
  181. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +62 -7
  182. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +2 -1
  183. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +4 -2
  184. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +6 -3
  185. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +6 -3
  186. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +4 -2
  187. package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
  188. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +4 -1
  189. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +3 -10
  190. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +19 -19
  191. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +31 -5
  192. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +10 -10
  193. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +39 -42
  194. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +50 -7
  195. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +3 -3
  196. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +6 -5
  197. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +5 -4
  198. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +57 -8
  199. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +3 -2
  200. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +3 -2
  201. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
  202. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +3 -2
  203. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +5 -3
  204. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
  205. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +4 -2
  206. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +1 -1
  207. package/dist/collection/components/sqm-route/sqm-route.js +1 -0
  208. package/dist/collection/components/sqm-router/sqm-router.js +2 -0
  209. package/dist/collection/components/sqm-scroll/sqm-scroll.js +1 -0
  210. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  211. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  212. package/dist/collection/components/sqm-share-button/sqm-share-button.js +57 -10
  213. package/dist/collection/components/sqm-share-code/sqm-share-code.js +170 -1
  214. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +13 -1
  215. package/dist/collection/components/sqm-share-link/sqm-share-link.js +172 -3
  216. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +21 -9
  217. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +111 -3
  218. package/dist/collection/components/sqm-stencilbook/BrandSelector.js +198 -0
  219. package/dist/collection/components/sqm-stencilbook/Themes.js +325 -33
  220. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +81 -99
  221. package/dist/collection/components/sqm-table-row/sqm-table-row.js +2 -2
  222. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  223. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +16 -2
  224. package/dist/collection/components/sqm-tabs/sqm-tabs.js +30 -2
  225. package/dist/collection/components/sqm-task-card/DetailsView.js +8 -2
  226. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +3 -2
  227. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -157
  228. package/dist/collection/components/sqm-task-card/sqm-task-card.js +147 -4
  229. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  230. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  231. package/dist/collection/components/sqm-text/sqm-text.js +101 -48
  232. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  233. package/dist/collection/components/sqm-text-span/sqm-text-span.js +52 -2
  234. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  235. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  236. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  237. package/dist/collection/components/sqm-timeline/sqm-timeline.js +3 -1
  238. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +2 -0
  239. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +12 -2
  240. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +2 -2
  241. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +138 -14
  242. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -7
  243. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +45 -8
  244. package/dist/collection/components/tax-and-cash/BankingForm.stories.js +12 -0
  245. package/dist/collection/components/tax-and-cash/TaxForm.stories.js +30 -9
  246. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
  247. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +54 -69
  248. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +108 -5
  249. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +8 -1
  250. package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +3 -3
  251. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +58 -75
  252. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +82 -4
  253. package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +6 -2
  254. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +54 -71
  255. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +2 -2
  256. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
  257. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card-view.js +24 -27
  258. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
  259. package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
  260. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +18 -48
  261. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +1 -0
  262. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +8 -5
  263. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/ErrorView.js +3 -27
  264. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +283 -30
  265. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
  266. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +96 -92
  267. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +49 -5
  268. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
  269. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/DocusignExpiredView.js +1 -1
  270. package/dist/collection/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.js +2 -2
  271. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +167 -54
  272. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +10 -10
  273. package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
  274. package/dist/collection/components/views/copy-text-view.js +64 -38
  275. package/dist/collection/components/views/email-registration-view.js +3 -1
  276. package/dist/collection/global/global.js +27 -12
  277. package/dist/collection/global/mixins.js +8 -8
  278. package/dist/collection/global/styles.js +330 -99
  279. package/dist/collection/global/styles.ts +419 -100
  280. package/dist/collection/insertfont.js +18 -0
  281. package/dist/collection/stories/PortalTemplates.stories.js +22 -30
  282. package/dist/collection/tables/GenericTableView.js +6 -6
  283. package/dist/collection/utils/parseStates.js +12 -0
  284. package/dist/collection/utils/utils.js +4 -0
  285. package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-e43d310f.js} +8 -8
  286. package/dist/esm/IndirectTaxDetailsView-5e60d91f.js +639 -0
  287. package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-c1c75c4f.js} +1489 -1333
  288. package/dist/esm/copy-text-view-9289f141.js +120 -0
  289. package/dist/esm/data-ee3ae298.js +121 -0
  290. package/dist/esm/{stencil-hooks.module-4bc38af4.js → dom-context-hooks.module-63370afd.js} +13 -13
  291. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-1f587f8b.js} +5 -3
  292. package/dist/esm/{global-be1f9992.js → global-f97ae778.js} +11899 -11622
  293. package/dist/esm/{index-91e7729f.js → index-b3a06de8.js} +4 -0
  294. package/dist/esm/{index.module-89a79f66.js → index.module-38dad6c9.js} +153 -153
  295. package/dist/esm/loader.js +5 -5
  296. package/dist/esm/{luxon-8d51c92b.js → luxon-bbf75a9d.js} +1 -1
  297. package/dist/esm/mint-components.js +5 -5
  298. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  299. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +2 -2
  300. package/dist/esm/parseStates-ed75e224.js +14 -0
  301. package/dist/esm/raisins-plop-target.entry.js +1 -1
  302. package/dist/esm/{re-render-cc945f38.js → re-render-9c90767d.js} +2 -2
  303. package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +721 -2290
  304. package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +3 -3
  305. package/dist/esm/{sqm-big-stat_41.entry.js → sqm-big-stat_43.entry.js} +1108 -214
  306. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +2 -2
  307. package/dist/esm/sqm-close-button.entry.js +5 -5
  308. package/dist/esm/sqm-code-verification.entry.js +348 -0
  309. package/dist/esm/sqm-context-router.entry.js +4 -4
  310. package/dist/esm/sqm-email-verification.entry.js +145 -21
  311. package/dist/esm/sqm-empty_4.entry.js +55 -60
  312. package/dist/esm/sqm-form-message.entry.js +7 -7
  313. package/dist/esm/sqm-google-sign-in.entry.js +3 -3
  314. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  315. package/dist/esm/sqm-header-logo.entry.js +2 -2
  316. package/dist/esm/sqm-instant-access-registration.entry.js +8 -8
  317. package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
  318. package/dist/esm/sqm-leaderboard-rank-view-18baae5b.js +8 -0
  319. package/dist/esm/sqm-leaderboard-rank.entry.js +6 -6
  320. package/dist/esm/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  321. package/dist/esm/sqm-logout-current-user.entry.js +5 -5
  322. package/dist/esm/sqm-navigation-sidebar-item-view-797601b0.js +54 -0
  323. package/dist/esm/sqm-navigation-sidebar-item.entry.js +30 -7
  324. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-0a2ec560.js} +18 -8
  325. package/dist/esm/sqm-navigation-sidebar.entry.js +22 -6
  326. package/dist/esm/sqm-pagination_3.entry.js +91 -64
  327. package/dist/esm/sqm-password-field.entry.js +6 -6
  328. package/dist/esm/sqm-popup-container.entry.js +4 -4
  329. package/dist/esm/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +2 -2
  330. package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-98fc3374.js} +4 -4
  331. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  332. package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-0e795cdd.js} +24 -16
  333. package/dist/esm/sqm-portal-forgot-password.entry.js +36 -7
  334. package/dist/esm/sqm-portal-google-login.entry.js +8 -8
  335. package/dist/esm/sqm-portal-google-registration-form.entry.js +9 -9
  336. package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-7670cd86.js} +4 -4
  337. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  338. package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-25b3250a.js} +4 -4
  339. package/dist/esm/sqm-portal-profile.entry.js +8 -8
  340. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  341. package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +3 -3
  342. package/dist/esm/sqm-portal-registration-form.entry.js +8 -8
  343. package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +3 -3
  344. package/dist/esm/sqm-portal-reset-password.entry.js +7 -7
  345. package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +3 -3
  346. package/dist/esm/sqm-portal-verify-email.entry.js +7 -7
  347. package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-97124a66.js} +9 -9
  348. package/dist/esm/sqm-qr-code.entry.js +6 -7
  349. package/dist/esm/sqm-referral-table_11.entry.js +122 -35
  350. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +3 -3
  351. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  352. package/dist/esm/sqm-rewards-table_9.entry.js +72 -25
  353. package/dist/esm/sqm-route.entry.js +1 -1
  354. package/dist/esm/sqm-scroll.entry.js +2 -2
  355. package/dist/esm/sqm-stencilbook.entry.js +13703 -12399
  356. package/dist/esm/sqm-tab.entry.js +4 -4
  357. package/dist/esm/sqm-tabs.entry.js +24 -10
  358. package/dist/esm/sqm-tax-and-cash.entry.js +1250 -0
  359. package/dist/esm/sqm-text-span-view-4c17b8c9.js +61 -0
  360. package/dist/esm/sqm-text-span.entry.js +6 -6
  361. package/dist/esm/sqm-widget-verification-controller.entry.js +14 -6
  362. package/dist/esm/sqm-widget-verification.entry.js +22 -10
  363. package/dist/esm/{useChildElements-7945ae56.js → useChildElements-4e70ac0e.js} +2 -2
  364. package/dist/esm/{useInstantAccessRegistration-dc4ad9f2.js → useInstantAccessRegistration-0f04459e.js} +3 -3
  365. package/dist/esm/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +10 -7
  366. package/dist/esm/{usePortalLogin-ef647a50.js → usePortalLogin-d0720c81.js} +3 -3
  367. package/dist/esm/{usePortalRegistrationForm-4b35a357.js → usePortalRegistrationForm-afc0171e.js} +3 -3
  368. package/dist/esm/{useReferralCodes-8f75921a.js → useReferralCodes-311e6d72.js} +2 -2
  369. package/dist/esm/{useReferralTable-b3876ed6.js → useReferralTable-65a01a6a.js} +5 -5
  370. package/dist/esm/{useRegistrationFormState-d6f33135.js → useRegistrationFormState-18c2cea7.js} +2 -2
  371. package/dist/esm/{useVerificationEmail-edc318cb.js → useVerificationEmail-f9413de9.js} +2 -2
  372. package/dist/esm/{utilities-5b0ca040.js → utilities-ad9c2893.js} +2 -2
  373. package/dist/esm/{utils-334c1e34.js → utils-03188de2.js} +5 -1
  374. package/dist/esm/utils-e1cdc479.js +97 -0
  375. package/dist/esm-es5/GenericTableView-e43d310f.js +1 -0
  376. package/dist/esm-es5/IndirectTaxDetailsView-5e60d91f.js +1 -0
  377. package/dist/esm-es5/ShadowViewAddon-c1c75c4f.js +1 -0
  378. package/dist/esm-es5/copy-text-view-9289f141.js +1 -0
  379. package/dist/esm-es5/data-ee3ae298.js +1 -0
  380. package/dist/esm-es5/dom-context-hooks.module-63370afd.js +53 -0
  381. package/dist/esm-es5/email-registration-view-1f587f8b.js +1 -0
  382. package/dist/esm-es5/{global-be1f9992.js → global-f97ae778.js} +5 -5
  383. package/dist/esm-es5/{index-91e7729f.js → index-b3a06de8.js} +1 -1
  384. package/dist/esm-es5/index.module-38dad6c9.js +1 -0
  385. package/dist/esm-es5/loader.js +1 -1
  386. package/dist/esm-es5/luxon-bbf75a9d.js +1 -0
  387. package/dist/esm-es5/mint-components.js +1 -1
  388. package/dist/esm-es5/mixins-f750863a.js +1 -0
  389. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-96a2d26d.js} +1 -1
  390. package/dist/esm-es5/parseStates-ed75e224.js +1 -0
  391. package/dist/esm-es5/raisins-plop-target.entry.js +1 -1
  392. package/dist/esm-es5/re-render-9c90767d.js +1 -0
  393. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
  394. package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-193f1721.js} +1 -1
  395. package/dist/esm-es5/sqm-big-stat_43.entry.js +1 -0
  396. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-2fa57229.js} +1 -1
  397. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  398. package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
  399. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  400. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  401. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  402. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  403. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  404. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  405. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  406. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  407. package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
  408. package/dist/esm-es5/sqm-leaderboard-rank-view-18baae5b.js +1 -0
  409. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  410. package/dist/esm-es5/{sqm-logout-current-user-view-8ef8180f.js → sqm-logout-current-user-view-f21e54e3.js} +1 -1
  411. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  412. package/dist/esm-es5/sqm-navigation-sidebar-item-view-797601b0.js +1 -0
  413. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  414. package/dist/esm-es5/sqm-navigation-sidebar-view-0a2ec560.js +1 -0
  415. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  416. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  417. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  418. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  419. package/dist/esm-es5/{sqm-portal-container-view-1683ae32.js → sqm-portal-container-view-176e92e3.js} +1 -1
  420. package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-98fc3374.js} +1 -1
  421. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  422. package/dist/esm-es5/sqm-portal-forgot-password-view-0e795cdd.js +1 -0
  423. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  424. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  425. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  426. package/dist/esm-es5/sqm-portal-login-view-7670cd86.js +1 -0
  427. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  428. package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-25b3250a.js} +1 -1
  429. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  430. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  431. package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-8bdc3804.js} +1 -1
  432. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  433. package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-abef7286.js} +1 -1
  434. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  435. package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-33805220.js} +1 -1
  436. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  437. package/dist/esm-es5/sqm-qr-code-view-97124a66.js +1 -0
  438. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  439. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  440. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  441. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  442. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  443. package/dist/esm-es5/sqm-route.entry.js +1 -1
  444. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  445. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  446. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  447. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  448. package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
  449. package/dist/esm-es5/sqm-text-span-view-4c17b8c9.js +1 -0
  450. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  451. package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
  452. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  453. package/dist/esm-es5/useChildElements-4e70ac0e.js +1 -0
  454. package/dist/esm-es5/useInstantAccessRegistration-0f04459e.js +1 -0
  455. package/dist/esm-es5/{usePayoutStatus-58aa56b4.js → usePayoutStatus-7eeec61b.js} +2 -2
  456. package/dist/esm-es5/usePortalLogin-d0720c81.js +1 -0
  457. package/dist/esm-es5/usePortalRegistrationForm-afc0171e.js +1 -0
  458. package/dist/esm-es5/useReferralCodes-311e6d72.js +1 -0
  459. package/dist/esm-es5/useReferralTable-65a01a6a.js +1 -0
  460. package/dist/esm-es5/useRegistrationFormState-18c2cea7.js +1 -0
  461. package/dist/esm-es5/useVerificationEmail-f9413de9.js +1 -0
  462. package/dist/esm-es5/utilities-ad9c2893.js +1 -0
  463. package/dist/esm-es5/utils-03188de2.js +1 -0
  464. package/dist/esm-es5/utils-e1cdc479.js +1 -0
  465. package/dist/mint-components/global/styles.ts +419 -100
  466. package/dist/mint-components/mint-components.esm.js +1 -1
  467. package/dist/mint-components/mint-components.js +1 -1
  468. package/dist/mint-components/p-000c91b1.js +1 -0
  469. package/dist/mint-components/{p-9b6a0152.system.entry.js → p-002e6205.system.entry.js} +1 -1
  470. package/dist/mint-components/{p-266a8b4d.js → p-00791abc.js} +1 -1
  471. package/dist/mint-components/{p-f940190a.js → p-07dc6d68.js} +1 -1
  472. package/dist/mint-components/{p-5bedb58c.js → p-08700497.js} +1 -1
  473. package/dist/mint-components/p-0935f9b7.system.js +1 -0
  474. package/dist/mint-components/{p-284e4ed5.entry.js → p-0b0f49ad.entry.js} +1 -1
  475. package/dist/mint-components/p-0bb21f5b.system.entry.js +1 -0
  476. package/dist/mint-components/{p-164a9103.system.entry.js → p-0cba75e6.system.entry.js} +1 -1
  477. package/dist/mint-components/{p-36ffebd8.system.entry.js → p-0d22c0e5.system.entry.js} +1 -1
  478. package/dist/mint-components/p-0e532b53.entry.js +1 -0
  479. package/dist/mint-components/{p-480e08e9.js → p-0e59a91e.js} +2 -2
  480. package/dist/mint-components/p-0ea61502.system.js +1 -0
  481. package/dist/mint-components/p-100c878b.system.entry.js +1 -0
  482. package/dist/mint-components/p-11500698.entry.js +25 -0
  483. package/dist/mint-components/p-115dfc03.system.js +1 -0
  484. package/dist/mint-components/p-1337f47c.entry.js +1 -0
  485. package/dist/mint-components/p-1363c4ab.system.js +1 -0
  486. package/dist/mint-components/p-13f3a647.js +1 -0
  487. package/dist/mint-components/p-14128c84.system.entry.js +1 -0
  488. package/dist/mint-components/p-14959d73.system.entry.js +1 -0
  489. package/dist/mint-components/{p-7c2b9fe4.system.js → p-15012f59.system.js} +1 -1
  490. package/dist/mint-components/p-15bfd7e2.system.js +1 -0
  491. package/dist/mint-components/p-1a278658.entry.js +1 -0
  492. package/dist/mint-components/{p-dbc0e4f8.system.js → p-1c1f4ce7.system.js} +1 -1
  493. package/dist/mint-components/p-1c727332.entry.js +1 -0
  494. package/dist/mint-components/p-1cd0e1e9.system.js +1 -0
  495. package/dist/mint-components/p-204861a6.js +1 -0
  496. package/dist/mint-components/p-209ea185.js +1 -0
  497. package/dist/mint-components/{p-a2fde301.entry.js → p-22c11f0e.entry.js} +1 -1
  498. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-22d20816.system.entry.js} +1 -1
  499. package/dist/mint-components/p-2403c6e1.system.js +1 -0
  500. package/dist/mint-components/p-240bec23.js +1 -0
  501. package/dist/mint-components/{p-90fc6774.system.entry.js → p-258f4e5e.system.entry.js} +1 -1
  502. package/dist/mint-components/p-2ed4f8fe.system.js +1 -0
  503. package/dist/mint-components/p-2f2bff39.entry.js +1 -0
  504. package/dist/mint-components/p-3285a6b3.system.entry.js +1 -0
  505. package/dist/mint-components/{p-c0f19490.js → p-3787a4d6.js} +1 -1
  506. package/dist/mint-components/p-3836d1e2.entry.js +1 -0
  507. package/dist/mint-components/p-3cb249c3.js +1 -0
  508. package/dist/mint-components/{p-50c902ca.system.entry.js → p-3d05ebb1.system.entry.js} +1 -1
  509. package/dist/mint-components/p-3d1b91a1.system.entry.js +1 -0
  510. package/dist/mint-components/p-3d99fa43.entry.js +1 -0
  511. package/dist/mint-components/{p-13ed8586.system.js → p-3dc34570.system.js} +1 -1
  512. package/dist/mint-components/p-3ea3f5e3.system.entry.js +1 -0
  513. package/dist/mint-components/{p-7a9290ba.js → p-3eba9036.js} +1 -1
  514. package/dist/mint-components/p-40c01a5a.system.js +1 -0
  515. package/dist/mint-components/{p-4b6dc0e5.entry.js → p-4204a6e3.entry.js} +1 -1
  516. package/dist/mint-components/{p-f4a72903.system.entry.js → p-4271f436.system.entry.js} +1 -1
  517. package/dist/mint-components/{p-6a8d9def.system.entry.js → p-42b62299.system.entry.js} +1 -1
  518. package/dist/mint-components/p-42da8239.system.js +1 -0
  519. package/dist/mint-components/{p-726a9924.js → p-460155de.js} +1 -1
  520. package/dist/mint-components/{p-301ddcaa.system.entry.js → p-485e2d9f.system.entry.js} +1 -1
  521. package/dist/mint-components/p-49b20dae.js +1 -0
  522. package/dist/mint-components/{p-6d2f5a1d.js → p-4d19270b.js} +2 -2
  523. package/dist/mint-components/p-4f5329a2.system.js +53 -0
  524. package/dist/mint-components/{p-59274a91.system.js → p-578a27c8.system.js} +1 -1
  525. package/dist/mint-components/p-57970440.js +1233 -0
  526. package/dist/mint-components/p-587115cb.system.entry.js +1 -0
  527. package/dist/mint-components/p-595aedb6.entry.js +13 -0
  528. package/dist/mint-components/p-5968c6bd.js +1 -0
  529. package/dist/mint-components/p-59b028db.system.js +1 -0
  530. package/dist/mint-components/{p-e8ffcc68.entry.js → p-5e0af707.entry.js} +2 -2
  531. package/dist/mint-components/{p-4e526a94.js → p-5ed49bf2.js} +1 -1
  532. package/dist/mint-components/p-5ff2da11.js +1 -0
  533. package/dist/mint-components/p-63e29387.js +42 -0
  534. package/dist/mint-components/{p-99ad7d56.system.js → p-64997b59.system.js} +1 -1
  535. package/dist/mint-components/{p-b75bb6e3.system.js → p-6578ea31.system.js} +1 -1
  536. package/dist/mint-components/p-66c14cb2.system.entry.js +1 -0
  537. package/dist/mint-components/p-672d144e.entry.js +1 -0
  538. package/dist/mint-components/p-67ad2252.system.js +1 -0
  539. package/dist/mint-components/{p-91ab3da1.js → p-68043f30.js} +1 -1
  540. package/dist/mint-components/p-6906ef5d.system.entry.js +1 -0
  541. package/dist/mint-components/p-692bacf3.js +1 -0
  542. package/dist/mint-components/{p-9ec99ced.js → p-6951663b.js} +1 -1
  543. package/dist/mint-components/p-69f09f58.system.entry.js +1 -0
  544. package/dist/mint-components/p-6ad674c2.js +103 -0
  545. package/dist/mint-components/p-6b076bae.system.entry.js +1 -0
  546. package/dist/mint-components/p-6d290019.js +1 -0
  547. package/dist/mint-components/p-6e069052.entry.js +1 -0
  548. package/dist/mint-components/{p-bbcd824a.js → p-6ef73224.js} +1 -1
  549. package/dist/mint-components/{p-b7d1469d.system.entry.js → p-7059ee40.system.entry.js} +1 -1
  550. package/dist/mint-components/{p-2ae0e06a.entry.js → p-711bc624.entry.js} +1 -1
  551. package/dist/mint-components/p-71271fbd.system.js +1 -0
  552. package/dist/mint-components/{p-6d9e52c7.system.js → p-7159c51c.system.js} +1 -1
  553. package/dist/mint-components/{p-63a75798.js → p-750e7b01.js} +1 -1
  554. package/dist/mint-components/p-75584f9e.entry.js +11 -0
  555. package/dist/mint-components/p-77d2244b.system.js +1 -0
  556. package/dist/mint-components/p-783afc04.entry.js +258 -0
  557. package/dist/mint-components/p-7970e73a.js +1 -0
  558. package/dist/mint-components/p-797fd8d9.system.js +1 -0
  559. package/dist/mint-components/{p-fa37513e.system.entry.js → p-7af4fba0.system.entry.js} +1 -1
  560. package/dist/mint-components/p-7b8d29bb.entry.js +1 -0
  561. package/dist/mint-components/{p-527216de.system.js → p-82505f6e.system.js} +1 -1
  562. package/dist/mint-components/p-843f1ba8.system.entry.js +1 -0
  563. package/dist/mint-components/{p-3f7b81b8.js → p-862845d7.js} +2 -2
  564. package/dist/mint-components/p-88b63a7c.entry.js +93 -0
  565. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  566. package/dist/mint-components/p-8caef004.js +1 -0
  567. package/dist/mint-components/{p-0d2d0b6d.entry.js → p-8dc1cd0f.entry.js} +1 -1
  568. package/dist/mint-components/{p-8413ade9.system.js → p-8e28333b.system.js} +1 -1
  569. package/dist/mint-components/p-8e2bead4.js +1 -0
  570. package/dist/mint-components/p-901cb538.system.entry.js +1 -0
  571. package/dist/mint-components/p-9049b387.entry.js +1 -0
  572. package/dist/mint-components/{p-2d52e2d7.system.js → p-91014439.system.js} +1 -1
  573. package/dist/mint-components/{p-18425f38.system.entry.js → p-910f56ca.system.entry.js} +1 -1
  574. package/dist/mint-components/p-916100a9.js +1 -0
  575. package/dist/mint-components/p-926f17f9.system.js +1 -0
  576. package/dist/mint-components/p-9374b5bb.system.entry.js +1 -0
  577. package/dist/mint-components/{p-7f80a9d7.entry.js → p-94f9fbf7.entry.js} +1 -1
  578. package/dist/mint-components/{p-a9f4ddb1.js → p-9580aac3.js} +1 -1
  579. package/dist/mint-components/{p-d07f3090.entry.js → p-9aadc253.entry.js} +1 -1
  580. package/dist/mint-components/p-9e297104.entry.js +1 -0
  581. package/dist/mint-components/p-9f3e7e48.entry.js +13 -0
  582. package/dist/mint-components/p-9f82e69d.entry.js +1 -0
  583. package/dist/mint-components/{p-5488fdd9.system.js → p-9fb8b33a.system.js} +1 -1
  584. package/dist/mint-components/{p-8175e85f.system.js → p-a148663a.system.js} +1 -1
  585. package/dist/mint-components/{p-f0772618.system.entry.js → p-a2533860.system.entry.js} +1 -1
  586. package/dist/mint-components/p-a2d3974f.entry.js +9 -0
  587. package/dist/mint-components/{p-cd569259.system.js → p-a392912a.system.js} +1 -1
  588. package/dist/mint-components/{p-35b475bf.js → p-a45680fe.js} +1 -1
  589. package/dist/mint-components/p-a5c9ce6c.entry.js +1 -0
  590. package/dist/mint-components/{p-127e66c2.system.js → p-a6f4fb03.system.js} +1 -1
  591. package/dist/mint-components/{p-faba3198.entry.js → p-a7ee19dc.entry.js} +1 -1
  592. package/dist/mint-components/p-abd33116.system.entry.js +1 -0
  593. package/dist/mint-components/{p-8362cb4c.system.entry.js → p-ac2fdad8.system.entry.js} +1 -1
  594. package/dist/mint-components/p-b065215a.entry.js +1 -0
  595. package/dist/mint-components/p-b1a2a83b.entry.js +144 -0
  596. package/dist/mint-components/{p-d6831af5.js → p-b22b7891.js} +1 -1
  597. package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-b3da317b.system.entry.js} +1 -1
  598. package/dist/mint-components/p-b51fce78.system.js +1 -0
  599. package/dist/mint-components/{p-e5d0375e.system.js → p-b6911812.system.js} +1 -1
  600. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-b9bccc55.entry.js} +1 -1
  601. package/dist/mint-components/p-bab57520.system.entry.js +1 -0
  602. package/dist/mint-components/p-bad50dc1.entry.js +1 -0
  603. package/dist/mint-components/{p-0d182dc1.system.js → p-bb12b845.system.js} +1 -1
  604. package/dist/mint-components/{p-53730ffe.entry.js → p-bb627d95.entry.js} +3 -3
  605. package/dist/mint-components/p-be88596c.system.js +1 -0
  606. package/dist/mint-components/{p-44891949.entry.js → p-c3884e55.entry.js} +1 -1
  607. package/dist/mint-components/{p-96431b4f.system.entry.js → p-c3dce602.system.entry.js} +1 -1
  608. package/dist/mint-components/p-c4886223.entry.js +1 -0
  609. package/dist/mint-components/p-c676ed3b.system.entry.js +1 -0
  610. package/dist/mint-components/p-c726f778.system.entry.js +1 -0
  611. package/dist/mint-components/p-c7965639.entry.js +1 -0
  612. package/dist/mint-components/p-c79bb1c6.entry.js +16 -0
  613. package/dist/mint-components/p-c7c11325.js +1 -0
  614. package/dist/mint-components/p-cab1f502.js +1 -0
  615. package/dist/mint-components/{p-a71b9154.system.js → p-d399162b.system.js} +1 -1
  616. package/dist/mint-components/p-d478c77d.js +448 -0
  617. package/dist/mint-components/{p-2f101bae.entry.js → p-d5f1df29.entry.js} +1 -1
  618. package/dist/mint-components/p-d785a297.system.entry.js +1 -0
  619. package/dist/mint-components/p-d821418e.system.js +1 -0
  620. package/dist/mint-components/p-d8c5b80a.system.js +1 -0
  621. package/dist/mint-components/p-da3ffd4e.system.entry.js +1 -0
  622. package/dist/mint-components/{p-9386ad84.system.entry.js → p-da6fe95f.system.entry.js} +1 -1
  623. package/dist/mint-components/{p-c2fdd608.system.entry.js → p-dbe29e53.system.entry.js} +1 -1
  624. package/dist/mint-components/{p-91959fbe.js → p-ddf3c05e.js} +1 -1
  625. package/dist/mint-components/{p-10d17989.entry.js → p-e0f9a395.entry.js} +1 -1
  626. package/dist/mint-components/{p-da7708a7.entry.js → p-e27ff213.entry.js} +1 -1
  627. package/dist/mint-components/p-e539fed3.entry.js +1 -0
  628. package/dist/mint-components/{p-b287833c.system.entry.js → p-e55f3eb6.system.entry.js} +1 -1
  629. package/dist/mint-components/p-e57d61af.system.js +1 -0
  630. package/dist/mint-components/p-eaeddfe2.system.js +1 -0
  631. package/dist/mint-components/{p-5c28406d.system.entry.js → p-ebb487d0.system.entry.js} +1 -1
  632. package/dist/mint-components/p-ecc5faba.entry.js +33 -0
  633. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-eea87fdc.system.entry.js} +1 -1
  634. package/dist/mint-components/p-f0e0d0b9.system.entry.js +1 -0
  635. package/dist/mint-components/p-f0ebccea.system.entry.js +1 -0
  636. package/dist/mint-components/p-f1dc581f.js +1 -0
  637. package/dist/mint-components/{p-bdb7d451.system.js → p-f1f20fdf.system.js} +22 -22
  638. package/dist/mint-components/{p-05f29f64.js → p-f307b716.js} +1 -1
  639. package/dist/mint-components/p-f6baa0c9.system.js +1 -0
  640. package/dist/mint-components/p-f9c7248e.js +1 -0
  641. package/dist/mint-components/{p-cc7af682.system.js → p-fa6fba34.system.js} +2 -2
  642. package/dist/mint-components/{p-19bc3406.system.entry.js → p-fb2976fc.system.entry.js} +1 -1
  643. package/dist/mint-components/{p-4e451f75.js → p-fb5be0c5.js} +1 -1
  644. package/dist/mint-components/p-fb77f662.entry.js +1 -0
  645. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  646. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  647. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +45 -1
  648. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -1
  649. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  650. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +2 -0
  651. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +43 -0
  652. package/dist/types/components/sqm-coupon-code/useCouponCode.d.ts +1 -0
  653. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  654. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +15 -0
  655. package/dist/types/components/sqm-form-message/FormMessage.stories.d.ts +0 -1
  656. package/dist/types/components/sqm-header-logo/sqm-header-logo.d.ts +1 -0
  657. package/dist/types/components/sqm-hero/Hero.stories.d.ts +1 -0
  658. package/dist/types/components/sqm-hero/sqm-hero-view.d.ts +1 -0
  659. package/dist/types/components/sqm-hero/sqm-hero.d.ts +6 -1
  660. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  661. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +20 -0
  662. package/dist/types/components/sqm-image/sqm-image.d.ts +1 -0
  663. package/dist/types/components/sqm-instant-access-registration/sqm-instant-access-registration.d.ts +2 -1
  664. package/dist/types/components/sqm-invoice-table/columns/InvoiceTableColumn.d.ts +1 -0
  665. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-data-column.d.ts +1 -0
  666. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-date-column.d.ts +1 -0
  667. package/dist/types/components/sqm-invoice-table/columns/sqm-invoice-table-download-column.d.ts +1 -0
  668. package/dist/types/components/sqm-invoice-table/mockInvoiceData.d.ts +1 -0
  669. package/dist/types/components/sqm-invoice-table/sqm-invoice-table.d.ts +3 -0
  670. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  671. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
  672. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +53 -11
  673. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  674. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +1 -0
  675. package/dist/types/components/sqm-logout-current-user/sqm-logout-current-user.d.ts +1 -0
  676. package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +1 -0
  677. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  678. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +16 -0
  679. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  680. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  681. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  682. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -2
  683. package/dist/types/components/sqm-popup-container/usePopupContainer.d.ts +2 -2
  684. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +2 -0
  685. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +1 -0
  686. package/dist/types/components/sqm-portal-footer/sqm-portal-footer.d.ts +1 -0
  687. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +5 -1
  688. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  689. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  690. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  691. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  692. package/dist/types/components/sqm-portal-login/PortalLogin.stories.d.ts +1 -0
  693. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +1 -0
  694. package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -0
  695. package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +1 -0
  696. package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -0
  697. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +2 -0
  698. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  699. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
  700. package/dist/types/components/sqm-program-menu/sqm-program-menu.d.ts +1 -0
  701. package/dist/types/components/sqm-qr-code/sqm-qr-code.d.ts +1 -0
  702. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  703. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +25 -2
  704. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  705. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +43 -0
  706. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  707. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  708. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +7 -0
  709. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +1 -0
  710. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-status-cell.d.ts +1 -0
  711. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -0
  712. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
  713. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
  714. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
  715. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
  716. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +1 -0
  717. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +3 -0
  718. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +2 -1
  719. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +457 -437
  720. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +10 -1
  721. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +1 -0
  722. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  723. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +1 -0
  724. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -0
  725. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -0
  726. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  727. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +2 -1
  728. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
  729. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -1
  730. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +2 -1
  731. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +1 -0
  732. package/dist/types/components/sqm-rewards-table/mockTaxData.d.ts +1 -0
  733. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +2 -0
  734. package/dist/types/components/sqm-rewards-table/useRewardsTable.d.ts +1 -1
  735. package/dist/types/components/sqm-route/sqm-route.d.ts +1 -0
  736. package/dist/types/components/sqm-router/sqm-router.d.ts +2 -0
  737. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +1 -0
  738. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  739. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  740. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +19 -6
  741. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +43 -0
  742. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  743. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +44 -1
  744. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  745. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +24 -1
  746. package/dist/types/components/sqm-stencilbook/BrandSelector.d.ts +9 -0
  747. package/dist/types/components/sqm-stencilbook/Themes.d.ts +6 -6
  748. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  749. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  750. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +10 -0
  751. package/dist/types/components/sqm-task-card/DetailsView.d.ts +6 -0
  752. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  753. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +33 -4
  754. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  755. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  756. package/dist/types/components/sqm-text/sqm-text.d.ts +13 -0
  757. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  758. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +14 -1
  759. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  760. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  761. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  762. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +3 -1
  763. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -0
  764. package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -2
  765. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -2
  766. package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +1 -0
  767. package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -1
  768. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +6 -0
  769. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +16 -0
  770. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +7 -1
  771. package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +12 -0
  772. package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +5 -2
  773. package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
  774. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +1 -0
  775. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
  776. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +46 -4
  777. package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
  778. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
  779. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +5 -0
  780. package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
  781. package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
  782. package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
  783. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  784. package/dist/types/components.d.ts +1339 -63
  785. package/dist/types/global/global.d.ts +2 -2
  786. package/dist/types/global/mixins.d.ts +12 -12
  787. package/dist/types/global/styles.d.ts +10 -2
  788. package/dist/types/insertfont.d.ts +1 -0
  789. package/dist/types/saasquatch.d.ts +142 -0
  790. package/dist/types/utils/parseStates.d.ts +1 -0
  791. package/dist/types/utils/utils.d.ts +1 -0
  792. package/docs/docs.docx +0 -0
  793. package/docs/raisins.json +1 -1
  794. package/grapesjs/grapesjs.js +1 -1
  795. package/package.json +3 -2
  796. package/shoelace/assets/icons/twitter-x.svg +4 -0
  797. package/dist/cjs/ErrorView-b2fcf954.js +0 -35
  798. package/dist/cjs/copy-text-view-c85acaaa.js +0 -96
  799. package/dist/cjs/sqm-asset-card-view-21ddf04f.js +0 -51
  800. package/dist/cjs/sqm-asset-card.cjs.entry.js +0 -45
  801. package/dist/cjs/sqm-invoice-table-view-16ac73d0.js +0 -2038
  802. package/dist/cjs/sqm-leaderboard-rank-view-d39a55d8.js +0 -10
  803. package/dist/cjs/sqm-navigation-sidebar-item-view-6f35d2ee.js +0 -45
  804. package/dist/cjs/sqm-referred-registration.cjs.entry.js +0 -178
  805. package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
  806. package/dist/collection/components/sqm-asset-card/AssetCard.stories.js +0 -29
  807. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +0 -46
  808. package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +0 -107
  809. package/dist/collection/components/sqm-asset-card/useAssetCard.js +0 -9
  810. package/dist/esm/ErrorView-48e2b969.js +0 -33
  811. package/dist/esm/copy-text-view-782137ba.js +0 -94
  812. package/dist/esm/sqm-asset-card-view-fe5db3c0.js +0 -49
  813. package/dist/esm/sqm-asset-card.entry.js +0 -41
  814. package/dist/esm/sqm-invoice-table-view-2c726568.js +0 -2022
  815. package/dist/esm/sqm-leaderboard-rank-view-753c8d4a.js +0 -8
  816. package/dist/esm/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -43
  817. package/dist/esm/sqm-referred-registration.entry.js +0 -174
  818. package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
  819. package/dist/esm-es5/ErrorView-48e2b969.js +0 -1
  820. package/dist/esm-es5/GenericTableView-7b9087af.js +0 -1
  821. package/dist/esm-es5/ShadowViewAddon-cf230f50.js +0 -1
  822. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  823. package/dist/esm-es5/email-registration-view-a7818cf2.js +0 -1
  824. package/dist/esm-es5/index.module-89a79f66.js +0 -1
  825. package/dist/esm-es5/luxon-8d51c92b.js +0 -1
  826. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  827. package/dist/esm-es5/re-render-cc945f38.js +0 -1
  828. package/dist/esm-es5/sqm-asset-card-view-fe5db3c0.js +0 -1
  829. package/dist/esm-es5/sqm-asset-card.entry.js +0 -1
  830. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
  831. package/dist/esm-es5/sqm-big-stat_41.entry.js +0 -1
  832. package/dist/esm-es5/sqm-invoice-table-view-2c726568.js +0 -1
  833. package/dist/esm-es5/sqm-leaderboard-rank-view-753c8d4a.js +0 -1
  834. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  835. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  836. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
  837. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +0 -1
  838. package/dist/esm-es5/sqm-qr-code-view-f1d0763b.js +0 -1
  839. package/dist/esm-es5/sqm-referred-registration.entry.js +0 -1
  840. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
  841. package/dist/esm-es5/stencil-hooks.module-4bc38af4.js +0 -53
  842. package/dist/esm-es5/useChildElements-7945ae56.js +0 -1
  843. package/dist/esm-es5/useInstantAccessRegistration-dc4ad9f2.js +0 -1
  844. package/dist/esm-es5/usePortalLogin-ef647a50.js +0 -1
  845. package/dist/esm-es5/usePortalRegistrationForm-4b35a357.js +0 -1
  846. package/dist/esm-es5/useReferralCodes-8f75921a.js +0 -1
  847. package/dist/esm-es5/useReferralTable-b3876ed6.js +0 -1
  848. package/dist/esm-es5/useRegistrationFormState-d6f33135.js +0 -1
  849. package/dist/esm-es5/useVerificationEmail-edc318cb.js +0 -1
  850. package/dist/esm-es5/utilities-5b0ca040.js +0 -1
  851. package/dist/esm-es5/utils-334c1e34.js +0 -1
  852. package/dist/mint-components/p-00ed4c2e.entry.js +0 -1
  853. package/dist/mint-components/p-04a6e457.entry.js +0 -1
  854. package/dist/mint-components/p-0c78815e.system.entry.js +0 -1
  855. package/dist/mint-components/p-0ebab63e.system.js +0 -1
  856. package/dist/mint-components/p-116baa69.entry.js +0 -258
  857. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  858. package/dist/mint-components/p-14a65f29.system.js +0 -1
  859. package/dist/mint-components/p-1513309d.entry.js +0 -1
  860. package/dist/mint-components/p-19ccb4ce.js +0 -1
  861. package/dist/mint-components/p-1b3ab15a.system.entry.js +0 -1
  862. package/dist/mint-components/p-1f089c3f.system.entry.js +0 -1
  863. package/dist/mint-components/p-1fa9ed0d.system.entry.js +0 -1
  864. package/dist/mint-components/p-21620f81.system.entry.js +0 -1
  865. package/dist/mint-components/p-229f797b.js +0 -1
  866. package/dist/mint-components/p-24db5c70.js +0 -1
  867. package/dist/mint-components/p-275b4767.entry.js +0 -1
  868. package/dist/mint-components/p-2bbff88f.entry.js +0 -1
  869. package/dist/mint-components/p-2da21ba4.entry.js +0 -1
  870. package/dist/mint-components/p-2dca9e1a.system.js +0 -1
  871. package/dist/mint-components/p-31015791.js +0 -1
  872. package/dist/mint-components/p-33c96e14.entry.js +0 -16
  873. package/dist/mint-components/p-37996351.system.js +0 -1
  874. package/dist/mint-components/p-380bfde1.entry.js +0 -1
  875. package/dist/mint-components/p-38e5c429.system.js +0 -1
  876. package/dist/mint-components/p-38fc919b.entry.js +0 -1
  877. package/dist/mint-components/p-3a62a7e2.system.js +0 -1
  878. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  879. package/dist/mint-components/p-3db34d68.js +0 -1
  880. package/dist/mint-components/p-3f067fd5.js +0 -1
  881. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  882. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  883. package/dist/mint-components/p-42187319.system.entry.js +0 -1
  884. package/dist/mint-components/p-4428294b.entry.js +0 -1
  885. package/dist/mint-components/p-4794641c.system.js +0 -1
  886. package/dist/mint-components/p-48135f99.system.js +0 -53
  887. package/dist/mint-components/p-492b70db.system.js +0 -1
  888. package/dist/mint-components/p-4e5af50c.js +0 -1
  889. package/dist/mint-components/p-4e773bb1.system.entry.js +0 -1
  890. package/dist/mint-components/p-562428ef.system.js +0 -1
  891. package/dist/mint-components/p-57eef0af.entry.js +0 -205
  892. package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
  893. package/dist/mint-components/p-5d7e308c.system.entry.js +0 -1
  894. package/dist/mint-components/p-6055eb4c.system.js +0 -1
  895. package/dist/mint-components/p-626e9e84.js +0 -1
  896. package/dist/mint-components/p-6333265f.system.js +0 -1
  897. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  898. package/dist/mint-components/p-6427e963.entry.js +0 -1
  899. package/dist/mint-components/p-65069b66.js +0 -1248
  900. package/dist/mint-components/p-653f963f.entry.js +0 -13
  901. package/dist/mint-components/p-65ba9e94.entry.js +0 -1
  902. package/dist/mint-components/p-693942df.entry.js +0 -144
  903. package/dist/mint-components/p-6b7a595f.system.js +0 -1
  904. package/dist/mint-components/p-6cc141b9.js +0 -394
  905. package/dist/mint-components/p-6cd4f2b1.system.js +0 -1
  906. package/dist/mint-components/p-6eaf9c57.entry.js +0 -1
  907. package/dist/mint-components/p-775f3ded.entry.js +0 -1
  908. package/dist/mint-components/p-7846937e.entry.js +0 -13
  909. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  910. package/dist/mint-components/p-837a0fdd.js +0 -1
  911. package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
  912. package/dist/mint-components/p-8abfeff8.entry.js +0 -1
  913. package/dist/mint-components/p-8c23d1b8.js +0 -1
  914. package/dist/mint-components/p-8d9d04b7.system.entry.js +0 -1
  915. package/dist/mint-components/p-91521e9d.js +0 -1
  916. package/dist/mint-components/p-92816d1f.js +0 -1
  917. package/dist/mint-components/p-94a876b9.js +0 -1
  918. package/dist/mint-components/p-97d4d651.system.js +0 -1
  919. package/dist/mint-components/p-98698131.js +0 -1
  920. package/dist/mint-components/p-9acb5038.js +0 -1
  921. package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
  922. package/dist/mint-components/p-a7746488.system.js +0 -1
  923. package/dist/mint-components/p-aad32fb6.system.js +0 -1
  924. package/dist/mint-components/p-b207beeb.entry.js +0 -1
  925. package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
  926. package/dist/mint-components/p-bfc7cfc0.system.js +0 -1
  927. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  928. package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
  929. package/dist/mint-components/p-c9f1dde7.js +0 -1
  930. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  931. package/dist/mint-components/p-cbbfac66.entry.js +0 -25
  932. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  933. package/dist/mint-components/p-cd651f81.js +0 -42
  934. package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
  935. package/dist/mint-components/p-dbcb5359.js +0 -1
  936. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  937. package/dist/mint-components/p-de8e9981.system.entry.js +0 -1
  938. package/dist/mint-components/p-e07bc6c4.system.js +0 -1
  939. package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
  940. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  941. package/dist/mint-components/p-ef6381d4.entry.js +0 -9
  942. package/dist/mint-components/p-f26aedcd.system.js +0 -1
  943. package/dist/mint-components/p-f2d8d3d3.system.entry.js +0 -1
  944. package/dist/mint-components/p-f56bedd5.js +0 -1
  945. package/dist/mint-components/p-f708da7b.js +0 -1
  946. package/dist/mint-components/p-f7c99803.system.js +0 -1
  947. package/dist/mint-components/p-fe2e2f4a.entry.js +0 -1
  948. package/dist/mint-components/p-ff8b8067.entry.js +0 -33
  949. package/dist/types/components/sqm-asset-card/AssetCard.stories.d.ts +0 -7
  950. package/dist/types/components/sqm-asset-card/sqm-asset-card-view.d.ts +0 -8
  951. package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +0 -24
  952. package/dist/types/components/sqm-asset-card/useAssetCard.d.ts +0 -7
  953. /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
  954. /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
@@ -1,21 +1,63 @@
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-4cd8623e.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-7cbd60cc.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-f3f1d00a.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" },
@@ -40,15 +82,30 @@ const style = {
40
82
  };
41
83
  const sheet = JSS.createStyleSheet(style);
42
84
  const styleString = sheet.toString();
85
+ // TODO: Figure out hover and active states
86
+ // *::part(base):hover {
87
+ // border-color: ${
88
+ // props.backgroundcolor
89
+ // ? props.backgroundcolor
90
+ // : props.medium
91
+ // ? medium[props.medium].color
92
+ // : ""
93
+ // }!important;
94
+ // }
95
+ // *::part(base):focus {
96
+ // border-color: ${
97
+ // props.backgroundcolor
98
+ // ? props.backgroundcolor
99
+ // : props.medium
100
+ // ? medium[props.medium].color
101
+ // : ""
102
+ // }!important;
103
+ // }
43
104
  function ShareButtonView(props, children) {
44
105
  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;
106
+ sl-button::part(base) {
107
+ border: ${props.border || "none"};
108
+ font-family: var(--sqm-primary-font);
52
109
 
53
110
  background: ${props.backgroundcolor
54
111
  ? props.backgroundcolor
@@ -63,21 +120,7 @@ function ShareButtonView(props, children) {
63
120
  border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
64
121
  }
65
122
 
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
123
 
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
124
 
82
125
  *::part(label) {
83
126
  position: relative;
@@ -87,436 +130,183 @@ function ShareButtonView(props, children) {
87
130
  return props.hide ? (index.h(index.Host, { style: { display: "none" } })) : (index.h("div", null,
88
131
  index.h("style", { type: "text/css" }, styleString),
89
132
  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` },
133
+ 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
134
  !props.hideicon && (index.h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
92
135
  !props.hidetext && children)));
93
136
  }
94
137
 
95
- const style$1 = {
96
- Leaderboard: {
97
- "& table": {
138
+ function StatContainerView(props, children) {
139
+ const divideSpace = () => {
140
+ const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
141
+ return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
142
+ };
143
+ // take alignment variable and convert it to CSS flexbox alignment
144
+ const alignment = props.alignment === "center"
145
+ ? "center"
146
+ : props.alignment === "right"
147
+ ? "flex-end"
148
+ : "flex-start";
149
+ // Dependent on props, not feasible to move out
150
+ const style = {
151
+ StatContainer: {
98
152
  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)",
153
+ display: "flex",
154
+ flexWrap: "wrap",
155
+ alignItems: "center",
156
+ justifyContent: alignment,
157
+ flexDirection: "row",
158
+ gap: `var(--sl-spacing-${props.gap})`,
159
+ // Apply border styles conditionally based on the hideBorder prop
160
+ "& > *": {
161
+ "border-right": props.hideBorder
162
+ ? "none"
163
+ : "var(--sqm-border-thickness) solid var(--sqm-border-color)",
164
+ "padding-right": divideSpace(),
165
+ },
166
+ "& > :last-child": {
167
+ "border-right": "none",
168
+ },
169
+ "& > ::slotted(*)": {
170
+ "border-right": props.hideBorder
171
+ ? "none"
172
+ : "var(--sqm-border-thickness) solid var(--sqm-border-color)",
173
+ "padding-right": divideSpace(),
174
+ },
175
+ "& > ::slotted(*:last-child)": {
176
+ "border-right": "none",
177
+ },
178
+ "@media screen and (max-width: 430px)": {
179
+ "& > ::slotted(*)": {
180
+ borderRight: "none",
181
+ },
182
+ },
107
183
  },
108
- "& tr:not(:first-child)": {
109
- borderTop: "1px solid var(--sl-color-neutral-200)",
184
+ StatFrame: {
185
+ display: "flex",
110
186
  },
111
- "& td": {
112
- fontSize: "var(--sl-font-size-medium)",
113
- fontWeight: "var(--sl-font-weight-normal)",
187
+ BorderFix: {
188
+ "border-right": "var(--sqm-border-thickness) solid transparent",
189
+ width: "0px",
190
+ "margin-left": "-1px",
114
191
  },
115
- "& .ellipses": {
116
- textAlign: "left",
192
+ };
193
+ const sheet = JSS.createStyleSheet(style);
194
+ const styleString = sheet.toString();
195
+ return (index.h("div", { class: sheet.classes.StatFrame, part: "sqm-base" },
196
+ index.h("div", { class: sheet.classes.StatContainer, part: "sqm-inner-container" },
197
+ index.h("style", { type: "text/css" }, styleString),
198
+ children),
199
+ index.h("div", { class: sheet.classes.BorderFix, part: "sqm-border" })));
200
+ }
201
+
202
+ function PortalChangePasswordView(props) {
203
+ const { states, callbacks } = props;
204
+ const style = {
205
+ Dialog: {
117
206
  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)",
207
+ "&::part(panel)": {
208
+ background: "var(--sqm-portal-background)",
209
+ borderRadius: "var(--sqm-border-radius-normal, var(--sl-border-radius-medium))",
210
+ },
211
+ "&::part(close-button)": {
212
+ "margin-top": "var(--sl-spacing-medium)",
213
+ },
214
+ "&::part(body)": {
215
+ padding: "0 var(--sl-spacing-x-large) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
216
+ },
127
217
  },
128
- "& .User": {
129
- width: "100%",
218
+ Error: {
219
+ "&::part(erroralert-base)": {
220
+ "margin-bottom": "15px",
221
+ },
130
222
  },
131
- "& .Score": {
132
- width: "auto",
133
- whiteSpace: "nowrap",
223
+ Success: {
224
+ "&::part(successalert-base)": {
225
+ "margin-bottom": "15px",
226
+ },
134
227
  },
135
- "& .Rank": {
136
- whiteSpace: "nowrap",
228
+ InputContainer: {
229
+ "& > :not(:last-child)": {
230
+ "margin-bottom": "var(--sl-spacing-x-large)",
231
+ },
137
232
  },
138
- "& .fullWidth": {
233
+ CancelButton: {
234
+ margin: "var(--sl-spacing-large) auto",
139
235
  width: "100%",
140
236
  },
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,
237
+ PasswordField: {
238
+ marginBottom: "var(--sl-spacing-large) !important",
239
+ display: "block",
241
240
  },
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,
241
+ ChangePasswordButton: {
242
+ paddingTop: "var(--sl-spacing-x-large)",
248
243
  },
249
244
  };
250
245
  const sheet = JSS.createStyleSheet(style);
251
246
  const styleString = sheet.toString();
252
- return (index.h("div", { part: "stat-wrapper", class: sheet.classes.Container },
247
+ return (index.h("div", null,
253
248
  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)));
249
+ index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, "onSl-hide": () => callbacks.setOpen(false) },
250
+ index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
251
+ labelMargin: "x-large",
252
+ padding: "none",
253
+ label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.modalChangePasswordHeader)),
254
+ content: (index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "none", gap: "32px" }),
255
+ states.error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
256
+ index.h("div", { part: "erroralert-text" }, states.error))),
257
+ states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
258
+ index.h("div", { part: "successalert-text" }, states.content.successMessage))),
259
+ index.h("sl-form", { "onSl-submit": callbacks.submit },
260
+ index.h("div", { class: sheet.classes.InputContainer },
261
+ 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 }),
262
+ 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" })),
263
+ index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "row", padding: "none", gap: "20px" }),
264
+ index.h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", exportparts: "base: primarybutton-base", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
265
+ index.h("sl-button", { class: sheet.classes.CancelButton, type: "secondary", exportparts: "base: secondarybutton-base", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
266
+ }))),
267
+ index.h(sqmPortalContainerView.PortalSectionView, Object.assign({}, {
268
+ labelMargin: "x-large",
269
+ padding: "xxx-large",
270
+ label: (index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
271
+ content: (index.h("sl-button", { type: "primary", exportparts: "base: primarybutton-base", onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
272
+ }),
273
+ index.h("style", { type: "text/css" }, styleString))));
256
274
  }
257
275
 
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
- };
276
+ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
277
+ return (index.h("svg", { width: width, height: height, viewBox: "0 0 1662 254", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
278
+ index.h("path", { d: "M801.082 253.58L869.382 1.67969", stroke: color, "stroke-width": "3" }),
279
+ 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 }),
280
+ index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
281
+ 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 }),
282
+ 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 }),
283
+ 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 }),
284
+ 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 }),
285
+ 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 }),
286
+ 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 }),
287
+ 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 }),
288
+ 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 }),
289
+ 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 }),
290
+ index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
291
+ 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 }),
292
+ 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 }),
293
+ 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 }),
294
+ 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 }),
295
+ 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 }),
296
+ 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 }),
297
+ 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 }),
298
+ 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 }),
299
+ 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 }),
300
+ 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 }),
301
+ index.h("path", { d: "M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z", fill: color }),
302
+ 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 }),
303
+ 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 }),
304
+ 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 }),
305
+ 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 }),
306
+ 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
307
  }
518
308
 
519
- const debug = stencilHooks_module.browser("sq:useBigStat");
309
+ const debug = domContextHooks_module.browser("sq:useBigStat");
520
310
  const LOADING = "...";
521
311
  const debugQuery = (query, variables, getStat) => {
522
312
  const res = index_module.wn(query, variables);
@@ -600,13 +390,19 @@ const customFieldsQuery = (_programId, locale, fieldName, goalId) => {
600
390
  };
601
391
  });
602
392
  };
603
- const referralsMonthQuery = (programId) => {
393
+ const referralsMonthQuery = (programId, status) => {
604
394
  const programFilter = programId === "classic"
605
395
  ? { programId_exists: false }
606
396
  : { programId_eq: programId };
607
- const filter = {
608
- ...programFilter,
609
- dateReferralStarted_timeframe: "this_month",
397
+ const convertedFilter = status && status == "converted"
398
+ ? { dateConverted_exists: true }
399
+ : status && status == "started"
400
+ ? { dateConverted_exists: false }
401
+ : {};
402
+ const filter = {
403
+ ...programFilter,
404
+ ...convertedFilter,
405
+ dateReferralStarted_timeframe: "this_month",
610
406
  };
611
407
  return debugQuery(index_module.dist.gql `
612
408
  query ($filter: ReferralFilterInput) {
@@ -1048,6 +844,92 @@ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
1048
844
  };
1049
845
  });
1050
846
  };
847
+ const rewardsExpiredQuery = (programId, locale, type, unit, global = "") => {
848
+ return debugQuery(index_module.dist.gql `
849
+ query (
850
+ $programId: ID
851
+ $type: RewardType
852
+ $unit: String!
853
+ $locale: RSLocale
854
+ ) {
855
+ fallback: formatRewardPrettyValue(
856
+ value: 0
857
+ unit: $unit
858
+ locale: $locale
859
+ formatType: UNIT_FORMATTED
860
+ )
861
+ viewer: viewer {
862
+ ... on User {
863
+ rewardBalanceDetails(
864
+ programId: $programId
865
+ filter: { type_eq: $type, unit_eq: $unit }
866
+ locale: $locale
867
+ ) {
868
+ ... on CreditRewardBalance {
869
+ prettyExpiredCredit
870
+ }
871
+ }
872
+ }
873
+ }
874
+ }
875
+ `, {
876
+ programId: !global && programId !== "classic" ? programId : null,
877
+ type,
878
+ unit,
879
+ locale,
880
+ }, (res) => {
881
+ var _a, _b, _c, _d, _e;
882
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
883
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
884
+ return {
885
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
886
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
887
+ };
888
+ });
889
+ };
890
+ const rewardsCancelledQuery = (programId, locale, type, unit, global = "") => {
891
+ return debugQuery(index_module.dist.gql `
892
+ query (
893
+ $programId: ID
894
+ $type: RewardType
895
+ $unit: String!
896
+ $locale: RSLocale
897
+ ) {
898
+ fallback: formatRewardPrettyValue(
899
+ value: 0
900
+ unit: $unit
901
+ locale: $locale
902
+ formatType: UNIT_FORMATTED
903
+ )
904
+ viewer: viewer {
905
+ ... on User {
906
+ rewardBalanceDetails(
907
+ programId: $programId
908
+ filter: { type_eq: $type, unit_eq: $unit }
909
+ locale: $locale
910
+ ) {
911
+ ... on CreditRewardBalance {
912
+ prettyCancelledCredit
913
+ }
914
+ }
915
+ }
916
+ }
917
+ }
918
+ `, {
919
+ programId: !global && programId !== "classic" ? programId : null,
920
+ type,
921
+ unit,
922
+ locale,
923
+ }, (res) => {
924
+ var _a, _b, _c, _d, _e;
925
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
926
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
927
+ return {
928
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
929
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
930
+ };
931
+ });
932
+ };
1051
933
  const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
1052
934
  return debugQuery(index_module.dist.gql `
1053
935
  query (
@@ -1253,6 +1135,14 @@ const queries = {
1253
1135
  label: "Rewards Pending",
1254
1136
  query: rewardsPendingQuery,
1255
1137
  },
1138
+ rewardsExpired: {
1139
+ label: "Rewards Expired",
1140
+ query: rewardsExpiredQuery,
1141
+ },
1142
+ rewardsCancelled: {
1143
+ label: "Rewards Cancelled",
1144
+ query: rewardsCancelledQuery,
1145
+ },
1256
1146
  rewardsRedeemed: {
1257
1147
  label: "Rewards Paid",
1258
1148
  query: rewardsRedeemedQuery,
@@ -1326,19 +1216,20 @@ const queries = {
1326
1216
  query: payoutBalanceQuery,
1327
1217
  },
1328
1218
  };
1219
+ // ! Any update to this should be reflected in StatPathBuilder.tsx in the saasquatch repo
1329
1220
  // this should be exposed in documentation somehow
1330
1221
  const StatPaths = [
1331
1222
  { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
1332
1223
  { name: "customFields", route: "/(customFields)/:customField" },
1333
1224
  { name: "referralsCount", route: "/(referralsCount)/:status?" },
1334
- { name: "referralsMonth", route: "/(referralsMonth)" },
1335
- { name: "referralsWeek", route: "/(referralsWeek)" },
1225
+ { name: "referralsMonth", route: "/(referralsMonth)/:status?" },
1226
+ { name: "referralsWeek", route: "/(referralsWeek)/:status?" },
1336
1227
  { name: "rewardsCount", route: "/(rewardsCount)/:global?" },
1337
1228
  { name: "rewardsMonth", route: "/(rewardsMonth)/:global?" },
1338
1229
  { name: "rewardsWeek", route: "/(rewardsWeek)/:global?" },
1339
1230
  {
1340
1231
  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?",
1232
+ 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
1233
  },
1343
1234
  {
1344
1235
  name: "integrationRewardsCountFiltered",
@@ -1348,6 +1239,14 @@ const StatPaths = [
1348
1239
  name: "rewardsAssigned",
1349
1240
  route: "/(rewardsAssigned)/:statType/:unit/:global?",
1350
1241
  },
1242
+ {
1243
+ name: "rewardsExpired",
1244
+ route: "/(rewardsExpired)/:statType/:unit/:global?",
1245
+ },
1246
+ {
1247
+ name: "rewardsCancelled",
1248
+ route: "/(rewardsCancelled)/:statType/:unit/:global?",
1249
+ },
1351
1250
  {
1352
1251
  name: "rewardsPending",
1353
1252
  route: "/(rewardsPending)/:statType/:unit/:global?",
@@ -1393,15 +1292,20 @@ function useBigStat(props) {
1393
1292
  useChildElements.useChildElements();
1394
1293
  const locale = index_module.L();
1395
1294
  const userIdent = index_module.J();
1396
- const re = stencilHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1295
+ const re = domContextHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1397
1296
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1398
1297
  return {
1399
1298
  props: {
1400
1299
  value: 0,
1401
- statvalue: "!!!",
1300
+ statvalue: "-",
1402
1301
  flexReverse,
1403
1302
  alignment,
1404
1303
  loading: false,
1304
+ statTextColor: props.statTextColor,
1305
+ statFontSize: props.statFontSize,
1306
+ descriptionTextColor: props.descriptionTextColor,
1307
+ descriptionFontSize: props.descriptionFontSize,
1308
+ statFontWeight: props.statFontWeight,
1405
1309
  },
1406
1310
  label: "BAD PROP TYPE",
1407
1311
  };
@@ -1431,6 +1335,11 @@ function useBigStat(props) {
1431
1335
  loading: stat === null || stat === void 0 ? void 0 : stat.loading,
1432
1336
  flexReverse,
1433
1337
  alignment,
1338
+ statTextColor: props.statTextColor,
1339
+ statFontSize: props.statFontSize,
1340
+ descriptionTextColor: props.descriptionTextColor,
1341
+ descriptionFontSize: props.descriptionFontSize,
1342
+ statFontWeight: props.statFontWeight,
1434
1343
  },
1435
1344
  label,
1436
1345
  };
@@ -1438,17 +1347,21 @@ function useBigStat(props) {
1438
1347
 
1439
1348
  function useDemoBigStat(props) {
1440
1349
  const { statType } = props;
1441
- const re = stencilHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1350
+ const re = domContextHooks_module.useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1442
1351
  // triggers a re-render if the label is manually changed
1443
1352
  useChildElements.useChildElements();
1444
1353
  if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1445
1354
  return {
1446
1355
  props: {
1447
1356
  value: 0,
1448
- statvalue: "!!!",
1357
+ statvalue: "-",
1449
1358
  loading: false,
1450
- flexReverse: false,
1451
- alignment: "center",
1359
+ flexReverse: props.flexReverse,
1360
+ alignment: props.alignment,
1361
+ statTextColor: props.statTextColor,
1362
+ statFontSize: props.statFontSize,
1363
+ descriptionTextColor: props.descriptionTextColor,
1364
+ descriptionFontSize: props.descriptionFontSize,
1452
1365
  },
1453
1366
  label: "BAD PROP TYPE",
1454
1367
  };
@@ -1460,360 +1373,99 @@ function useDemoBigStat(props) {
1460
1373
  props: cjs.cjs({
1461
1374
  statvalue: "12345",
1462
1375
  value: 0,
1463
- flexReverse: false,
1464
- alignment: "center",
1376
+ flexReverse: props.flexReverse,
1377
+ alignment: props.alignment,
1378
+ statTextColor: props.statTextColor,
1379
+ statFontSize: props.statFontSize,
1380
+ descriptionTextColor: props.descriptionTextColor,
1381
+ descriptionFontSize: props.descriptionFontSize,
1382
+ statFontWeight: props.statFontWeight,
1465
1383
  }, props.demoData || {}, { arrayMerge: (_, a) => a }),
1466
1384
  label: label !== null && label !== void 0 ? label : "Demo Label",
1467
1385
  };
1468
1386
  }
1469
1387
 
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
- };
1388
+ function CardFeedView(props, children) {
1475
1389
  // Dependent on props, not feasiable to move out
1476
1390
  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
- },
1391
+ Container: {
1392
+ columnGap: props.gap + "px",
1393
+ columnWidth: props.width + "px",
1394
+ "& > div": {
1395
+ marginBottom: "24px",
1502
1396
  },
1503
1397
  },
1504
- StatFrame: {
1505
- display: "flex",
1506
- },
1507
- BorderFix: {
1508
- "border-right": "1px solid transparent",
1509
- width: "0px",
1510
- "margin-left": "-1px",
1511
- },
1512
1398
  };
1513
1399
  const sheet = JSS.createStyleSheet(style);
1514
1400
  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" })));
1401
+ const vanillaStyle = `
1402
+ :host{
1403
+ display: block;
1404
+ }
1405
+
1406
+ `;
1407
+ return (index.h("div", null,
1408
+ index.h("style", { type: "text/css" },
1409
+ styleString,
1410
+ vanillaStyle),
1411
+ index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
1520
1412
  }
1521
1413
 
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)",
1414
+ const style$1 = {
1415
+ Description: {
1416
+ "& .icon": {
1417
+ color: "var(--sqm-text)",
1418
+ "&:hover": {
1419
+ color: "var(--sqm-accent-color-icon)",
1532
1420
  },
1533
1421
  },
1534
- Error: {
1535
- "&::part(erroralert-base)": {
1536
- "margin-bottom": "15px",
1537
- },
1422
+ "& input[type=checkbox]": {
1423
+ display: "none",
1538
1424
  },
1539
- Success: {
1540
- "&::part(successalert-base)": {
1541
- "margin-bottom": "15px",
1542
- },
1425
+ "& input:checked ~ .details": {
1426
+ transform: "rotate(-180deg)",
1543
1427
  },
1544
- InputContainer: {
1545
- "& > :not(:last-child)": {
1546
- "margin-bottom": "var(--sl-spacing-x-large)",
1428
+ "& .details": {
1429
+ position: "absolute",
1430
+ top: "var(--sl-spacing-medium)",
1431
+ right: "var(--sl-spacing-medium)",
1432
+ color: "var(--sqm-text)",
1433
+ fontSize: "var(--sl-font-size-large)",
1434
+ "& :hover": {
1435
+ color: "var(--sl-color-primary-700)",
1547
1436
  },
1437
+ transformOrigin: "50% 37%",
1438
+ transition: "transform var(--sl-transition-medium) ease",
1439
+ cursor: "pointer",
1548
1440
  },
1549
- CancelButton: {
1550
- width: "25%",
1551
- margin: "var(--sl-spacing-large) auto",
1441
+ "& input:checked ~ .summary": {
1442
+ transition: "all var(--sl-transition-medium) ease",
1443
+ maxHeight: "300px",
1444
+ marginBottom: "var(--sl-spacing-x-large)",
1552
1445
  },
1553
- PasswordField: {
1554
- marginBottom: "var(--sl-spacing-large) !important",
1555
- display: "block",
1446
+ "& input:checked ~ .summary[progress-bar]": {
1447
+ marginBottom: "var(--sl-spacing-xx-large)",
1556
1448
  },
1557
- ChangePasswordButton: {
1558
- paddingTop: "var(--sl-spacing-x-large)",
1449
+ "& .summary": {
1450
+ display: "block",
1451
+ overflow: "hidden",
1452
+ fontSize: "var(--sl-font-size-small)",
1453
+ maxHeight: "0px",
1454
+ transition: "all var(--sl-transition-fast) ease-out",
1455
+ marginBottom: "var(--sl-spacing-medium)",
1559
1456
  },
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
1457
  },
1600
- ButtonsContainer: mixins.AuthButtonsContainer,
1601
- ErrorStyle: mixins.ErrorStyles,
1602
1458
  };
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
- background: "var(--sl-color-danger-10)",
1669
- borderColor: "var(--sl-color-danger-500)",
1670
- outline: "var(--sl-color-danger-500)",
1671
- },
1672
- "&:host": {
1673
- "--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
1674
- },
1675
- },
1676
- ErrorMessageStyle: {
1677
- margin: 0,
1678
- marginTop: "5px",
1679
- color: "var(--sl-color-danger-500)",
1680
- fontSize: "var(--sl-input-help-text-font-size-medium)",
1681
- fontFamily: "var(--sl-font-sans)",
1682
- fontWeight: "var(--sl-font-weight-normal)",
1683
- },
1684
- FieldContainer: {
1685
- "margin-bottom": "var(--sl-spacing-large)",
1686
- },
1687
- };
1688
- const vanillaStyle$2 = `
1689
- :host {
1690
- margin: 0 auto;
1691
- width: 100%;
1692
- display: block;
1693
- }
1694
- sl-checkbox::part(label){
1695
- font-size: var(--sl-input-label-font-size-small);
1696
- font-weight: var(--sl-font-weight-normal);
1697
- line-height: 20px;
1698
- }
1699
- sl-checkbox::part(base){
1700
- align-items: start;
1701
- }
1702
- `;
1703
- JSS.jss.setup(JSS.create());
1704
- const sheet$4 = JSS.jss.createStyleSheet(style$4);
1705
- const styleString$4 = sheet$4.toString();
1706
- function CheckboxFieldView(props) {
1707
- var _b, _c;
1708
- const { states, content, callbacks } = props;
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), required: false }), global.intl.formatMessage({
1717
- id: content.checkboxName + "-message",
1718
- defaultMessage: content.checkboxLabel,
1719
- }, {
1720
- labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
1721
- }))));
1722
- }
1723
-
1724
- function ChangeMarktingView(props) {
1725
- const { states, callbacks } = props;
1726
- const { text, formState } = states;
1727
- const { error } = formState;
1728
- const style = {
1729
- Container: {
1730
- display: "flex",
1731
- flexDirection: "column",
1732
- gap: "var(--sl-spacing-x-small)",
1733
- padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
1734
- },
1735
- SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
1736
- Error: {
1737
- "&::part(erroralert-base)": {
1738
- "margin-bottom": "15px",
1739
- },
1740
- },
1741
- Success: {
1742
- "&::part(successalert-base)": {
1743
- "margin-bottom": "15px",
1744
- },
1745
- },
1746
- };
1747
- const sheet = JSS.createStyleSheet(style);
1748
- const styleString = sheet.toString();
1749
- return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
1750
- index.h("style", { type: "text/css" }, styleString),
1751
- index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
1752
- index.h("sl-form", { "onSl-submit": callbacks.onSubmit },
1753
- index.h(CheckboxFieldView, { states: {
1754
- checked: states.formState.marketingEmailOptIn,
1755
- }, content: {
1756
- checkboxLabel: text.marketingCheckboxLabel,
1757
- checkboxName: "marketingEmailOptIn",
1758
- }, callbacks: {
1759
- setChecked: callbacks.setChecked,
1760
- } }),
1761
- index.h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
1762
- error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
1763
- index.h("div", { part: "erroralert-text" }, error))),
1764
- states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
1765
- index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
1766
- }
1767
-
1768
- const style$5 = {
1769
- Description: {
1770
- "& input[type=checkbox]": {
1771
- display: "none",
1772
- },
1773
- "& input:checked ~ .details": {
1774
- transform: "rotate(-180deg)",
1775
- },
1776
- "& .details": {
1777
- position: "absolute",
1778
- top: "var(--sl-spacing-medium)",
1779
- right: "var(--sl-spacing-medium)",
1780
- color: "var(--sl-color-neutral-700)",
1781
- fontSize: "var(--sl-font-size-large)",
1782
- "& :hover": {
1783
- color: "var(--sl-color-primary-700)",
1784
- },
1785
- transformOrigin: "50% 37%",
1786
- transition: "transform var(--sl-transition-medium) ease",
1787
- cursor: "pointer",
1788
- },
1789
- "& input:checked ~ .summary": {
1790
- transition: "all var(--sl-transition-medium) ease",
1791
- maxHeight: "300px",
1792
- marginBottom: "var(--sl-spacing-x-large)",
1793
- },
1794
- "& input:checked ~ .summary[progress-bar]": {
1795
- marginBottom: "var(--sl-spacing-xx-large)",
1796
- },
1797
- "& .summary": {
1798
- display: "block",
1799
- overflow: "hidden",
1800
- fontSize: "var(--sl-font-size-small)",
1801
- maxHeight: "0px",
1802
- transition: "all var(--sl-transition-fast) ease-out",
1803
- marginBottom: "var(--sl-spacing-medium)",
1804
- },
1805
- },
1806
- };
1807
- const sheet$5 = JSS.createStyleSheet(style$5);
1808
- const styleString$5 = sheet$5.toString();
1459
+ const sheet$1 = JSS.createStyleSheet(style$1);
1460
+ const styleString$1 = sheet$1.toString();
1809
1461
  function Details(props) {
1810
1462
  const rid = Math.random().toString(36).slice(2);
1811
1463
  return (index.h("div", { style: { opacity: props.opacity } },
1812
- index.h("style", { type: "text/css" }, styleString$5),
1813
- index.h("span", { class: sheet$5.classes.Description },
1464
+ index.h("style", { type: "text/css" }, styleString$1),
1465
+ index.h("span", { class: sheet$1.classes.Description },
1814
1466
  index.h("input", { type: "checkbox", id: "details-" + rid }),
1815
1467
  index.h("label", { class: "details", htmlFor: "details-" + rid },
1816
- index.h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
1468
+ index.h("sl-icon", { class: "icon", exportparts: "base: chevron-icon", name: "chevron-down" })),
1817
1469
  index.h("span", { class: "summary", "progress-bar": props.progressBar }, props.content.description))));
1818
1470
  }
1819
1471
 
@@ -1832,7 +1484,7 @@ const GreyGift = () => {
1832
1484
  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" })));
1833
1485
  };
1834
1486
 
1835
- const style$6 = {
1487
+ const style$2 = {
1836
1488
  ProgressBar: {
1837
1489
  "& .progress-bar": {
1838
1490
  height: "0",
@@ -1879,7 +1531,8 @@ const style$6 = {
1879
1531
  width: "100%",
1880
1532
  height: "4px",
1881
1533
  borderRadius: "4px",
1882
- backgroundColor: "var(--sl-color-primary-300)",
1534
+ backgroundColor: "var(--sqm-accent-color-icon)",
1535
+ background: "red",
1883
1536
  },
1884
1537
  "& .progress": {
1885
1538
  display: "block",
@@ -1892,7 +1545,7 @@ const style$6 = {
1892
1545
  width: "12px",
1893
1546
  height: "12px",
1894
1547
  display: "flex",
1895
- backgroundColor: "var(--sl-color-primary-300)",
1548
+ backgroundColor: "var(--sqm-accent-color-icon)",
1896
1549
  borderRadius: "50%",
1897
1550
  position: "relative",
1898
1551
  left: "47%",
@@ -1944,14 +1597,14 @@ const style$6 = {
1944
1597
  },
1945
1598
  },
1946
1599
  };
1947
- const sheet$6 = JSS.createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
1948
- const styleString$6 = sheet$6.toString();
1600
+ const sheet$2 = JSS.createStyleSheet(style$2, { classNamePrefix: "sqm-prog-bar" });
1601
+ const styleString$2 = sheet$2.toString();
1949
1602
  function ProgressBarView(props) {
1950
1603
  const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
1951
1604
  let aggregate = buildProgressBar(repeatable, steps, props);
1952
1605
  const { columns, items } = aggregate;
1953
- 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 } },
1954
- index.h("style", { type: "text/css" }, styleString$6),
1606
+ 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 } },
1607
+ index.h("style", { type: "text/css" }, styleString$2),
1955
1608
  index.h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
1956
1609
  (Boolean(finite) && progress > 2 * goal)
1957
1610
  ? "progress-bar repeatable-steps"
@@ -2242,165 +1895,151 @@ const arrow_left_right = () => {
2242
1895
  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" })));
2243
1896
  };
2244
1897
 
2245
- const style$7 = {
2246
- TaskCard: {
2247
- display: "inline-block",
2248
- width: "100%",
2249
- "& .main": {
2250
- position: "relative",
2251
- boxSizing: "border-box",
2252
- background: "var(--sl-color-neutral-0)",
2253
- border: "1px solid var(--sl-color-neutral-200)",
2254
- borderRadius: "var(--sl-border-radius-large)",
2255
- boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
1898
+ function TaskCardView(props) {
1899
+ var _a, _b;
1900
+ const { callbacks, states, content } = props;
1901
+ console.log("buttonType ", content.buttonType);
1902
+ const style = {
1903
+ TaskCard: {
1904
+ display: "inline-block",
1905
+ width: "100%",
1906
+ "& .main": {
1907
+ position: "relative",
1908
+ boxSizing: "border-box",
1909
+ background: content.backgroundColor || "var(--sqm-portal-background)",
1910
+ border: `var(--sqm-border-thickness) solid ${content.borderColor || "var(--sqm-border-color)"}`,
1911
+ borderRadius: "var(--sqm-border-radius-normal)",
1912
+ boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
1913
+ fontSize: "var(--sl-font-size-small)",
1914
+ lineHeight: "var(--sl-line-height-dense)",
1915
+ color: content.textColor || "var(--sqm-text)",
1916
+ },
1917
+ "& .main.complete": {
1918
+ opacity: "0.8",
1919
+ borderColor: "var(--sqm-accent-color-border)",
1920
+ },
1921
+ "& .main.expired": {
1922
+ color: content.textColor || "var(--sqm-text)",
1923
+ opacity: "0.8",
1924
+ },
1925
+ "& .title": {
1926
+ fontSize: "var(--sl-font-size-medium)",
1927
+ color: content.textColor || "var(--sqm-text)",
1928
+ },
1929
+ "& .container": {
1930
+ margin: "var(--sl-spacing-medium)",
1931
+ },
1932
+ "& .container.subdued": {
1933
+ opacity: "0.45",
1934
+ },
1935
+ "& .container > div": {
1936
+ margin: "var(--sl-spacing-medium) 0",
1937
+ },
1938
+ },
1939
+ NotStarted: {
2256
1940
  fontSize: "var(--sl-font-size-small)",
1941
+ padding: "var(--sl-spacing-medium)",
1942
+ color: content.textColor || "var(--sl-color-primary-600)",
1943
+ border: `var(--sqm-border-thickness, 1px) solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
1944
+ borderRadius: "var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",
1945
+ borderBottom: "none",
1946
+ background: content.backgroundColor || "var(--sl-color-primary-50)",
1947
+ fontWeight: "var(--sl-font-weight-semibold)",
2257
1948
  lineHeight: "var(--sl-line-height-dense)",
2258
- color: "var(--sl-color-neutral-600)",
2259
- },
2260
- "& .main.complete": {
2261
- background: "var(--sl-color-primary-50)",
2262
- borderColor: "var(--sl-color-primary-500)",
2263
- },
2264
- "& .main.expired": {
2265
- color: "var(--sl-color-neutral-600)",
2266
- background: "var(--sl-color-neutral-50)",
1949
+ "& .icon": {
1950
+ position: "relative",
1951
+ top: "0.1em",
1952
+ marginRight: "var(--sl-spacing-small)",
1953
+ color: content.textColor || "var(--sqm-text)",
1954
+ },
2267
1955
  },
2268
- "& .title": {
2269
- fontSize: "var(--sl-font-size-medium)",
2270
- color: "var(--sl-color-neutral-950)",
1956
+ Ended: {
1957
+ fontSize: "var(--sl-font-size-small)",
1958
+ padding: "var(--sl-spacing-medium)",
1959
+ color: content.textColor || "var(--sl-color-warning-600)",
1960
+ border: `var(--sqm-border-thickness, 1px) solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
1961
+ borderRadius: "var(--sqm-border-radius-normal) var(--sqm-border-radius-normal) 0 0",
1962
+ borderBottom: "none",
1963
+ background: content.backgroundColor || "var(--sl-color-warning-50)",
1964
+ fontWeight: "var(--sl-font-weight-semibold)",
1965
+ lineHeight: "var(--sl-line-height-dense)",
1966
+ "& .icon": {
1967
+ position: "relative",
1968
+ top: "0.1em",
1969
+ marginRight: "var(--sl-spacing-small)",
1970
+ color: content.textColor || "var(--sqm-text)",
1971
+ },
2271
1972
  },
2272
- "& .container": {
2273
- margin: "var(--sl-spacing-medium)",
1973
+ Header: {
1974
+ display: "flex",
1975
+ "& .icon": {
1976
+ position: "relative",
1977
+ top: "5%",
1978
+ alignSelf: "center",
1979
+ lineHeight: "0",
1980
+ color: "var(--sqm-accent-color-icon)",
1981
+ fontSize: "var(--sl-font-size-large)",
1982
+ marginRight: "var(--sl-spacing-x-small)",
1983
+ },
1984
+ "& .value": {
1985
+ alignSelf: "center",
1986
+ fontSize: "var(--sl-font-size-x-large)",
1987
+ fontWeight: "var(--sl-font-weight-semibold)",
1988
+ color: content.textColor || "var(--sqm-text)",
1989
+ lineHeight: "100%",
1990
+ marginRight: "var(--sl-spacing-xx-small)",
1991
+ },
1992
+ "& .text": {
1993
+ alignSelf: "end",
1994
+ textTransform: "uppercase",
1995
+ fontSize: "var(--sl-font-size-x-small)",
1996
+ color: content.textColor || "var(--sqm-text)",
1997
+ lineHeight: "var(--sl-font-size-medium)",
1998
+ marginRight: "var(--sl-spacing-xx-small)",
1999
+ },
2000
+ "& .end": {
2001
+ color: content.textColor || "var(--sl-color-warning-500)",
2002
+ fontWeight: "var(--sl-font-weight-semibold)",
2003
+ marginBottom: "var(--sl-spacing-xx-small)",
2004
+ },
2005
+ "& .neutral": {
2006
+ color: content.textColor || "var(--sl-color-neutral-400)",
2007
+ },
2274
2008
  },
2275
- "& .container.subdued": {
2276
- opacity: "0.45",
2009
+ Footer: {
2010
+ "&[data-subdue] .success": {
2011
+ color: content.textColor || "var(--sl-color-primary-300)",
2012
+ },
2013
+ "&[data-subdue] .neutral": {
2014
+ color: content.textColor || "var(--sqm-text)",
2015
+ },
2016
+ display: "flex",
2017
+ "& .icon": {
2018
+ fontSize: "var(--sl-font-size-xx-small)",
2019
+ marginRight: "var(--sl-spacing-xx-small)",
2020
+ verticalAlign: "middle",
2021
+ },
2022
+ "& .text": {
2023
+ marginTop: "auto",
2024
+ verticalAlign: "text-bottom",
2025
+ fontSize: "var(--sl-font-size-x-small)",
2026
+ color: content.textColor || "var(--sqm-text)",
2027
+ },
2028
+ "& .success": {
2029
+ color: content.textColor || "var(--sqm-text)",
2030
+ fontWeight: "var(--sl-font-weight-semibold)",
2031
+ },
2032
+ "& .neutral": {
2033
+ color: content.textColor || "var(--sqm-text)",
2034
+ },
2035
+ "& .datetime": {
2036
+ display: "block",
2037
+ marginTop: "var(--sl-spacing-xx-small)",
2038
+ },
2277
2039
  },
2278
- "& .container > div": {
2279
- margin: "var(--sl-spacing-medium) 0",
2280
- },
2281
- },
2282
- NotStarted: {
2283
- fontSize: "var(--sl-font-size-small)",
2284
- padding: "var(--sl-spacing-medium)",
2285
- color: "var(--sl-color-primary-600)",
2286
- border: "1px solid var(--sl-color-neutral-200)",
2287
- borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2288
- borderBottom: "none",
2289
- background: "var(--sl-color-primary-50)",
2290
- fontWeight: "var(--sl-font-weight-semibold)",
2291
- lineHeight: "var(--sl-line-height-dense)",
2292
- "& .icon": {
2293
- position: "relative",
2294
- top: "0.1em",
2295
- marginRight: "var(--sl-spacing-small)",
2296
- color: "var(--sl-color-primary-500)",
2297
- },
2298
- },
2299
- Ended: {
2300
- fontSize: "var(--sl-font-size-small)",
2301
- padding: "var(--sl-spacing-medium)",
2302
- color: "var(--sl-color-warning-600)",
2303
- border: "1px solid var(--sl-color-neutral-200)",
2304
- borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2305
- borderBottom: "none",
2306
- background: "var(--sl-color-warning-50)",
2307
- fontWeight: "var(--sl-font-weight-semibold)",
2308
- lineHeight: "var(--sl-line-height-dense)",
2309
- "& .icon": {
2310
- position: "relative",
2311
- top: "0.1em",
2312
- marginRight: "var(--sl-spacing-small)",
2313
- color: "var(--sl-color-warning-500)",
2314
- },
2315
- },
2316
- Header: {
2317
- display: "flex",
2318
- "& .icon": {
2319
- position: "relative",
2320
- top: "5%",
2321
- alignSelf: "center",
2322
- lineHeight: "0",
2323
- color: "var(--sl-color-primary-400)",
2324
- fontSize: "var(--sl-font-size-large)",
2325
- marginRight: "var(--sl-spacing-x-small)",
2326
- },
2327
- "& .value": {
2328
- alignSelf: "center",
2329
- fontSize: "var(--sl-font-size-x-large)",
2330
- fontWeight: "var(--sl-font-weight-semibold)",
2331
- color: "var(--sl-color-neutral-950)",
2332
- lineHeight: "100%",
2333
- marginRight: "var(--sl-spacing-xx-small)",
2334
- },
2335
- "& .text": {
2336
- alignSelf: "end",
2337
- textTransform: "uppercase",
2338
- fontSize: "var(--sl-font-size-x-small)",
2339
- color: "var(--sl-color-neutral-950)",
2340
- lineHeight: "var(--sl-font-size-medium)",
2341
- marginRight: "var(--sl-spacing-xx-small)",
2342
- },
2343
- "& .end": {
2344
- color: "var(--sl-color-warning-500)",
2345
- fontWeight: "var(--sl-font-weight-semibold)",
2346
- marginBottom: "var(--sl-spacing-xx-small)",
2347
- },
2348
- "& .neutral": {
2349
- color: "var(--sl-color-neutral-400)",
2350
- },
2351
- },
2352
- Footer: {
2353
- "&[data-subdue] .success": {
2354
- color: "var(--sl-color-primary-300)",
2355
- },
2356
- "&[data-subdue] .neutral": {
2357
- color: "var(--sl-color-neutral-300)",
2358
- },
2359
- display: "flex",
2360
- "& .icon": {
2361
- fontSize: "var(--sl-font-size-xx-small)",
2362
- marginRight: "var(--sl-spacing-xx-small)",
2363
- verticalAlign: "middle",
2364
- },
2365
- "& .text": {
2366
- marginTop: "auto",
2367
- verticalAlign: "text-bottom",
2368
- fontSize: "var(--sl-font-size-x-small)",
2369
- color: "var(--sl-color-neutral-400)",
2370
- },
2371
- "& .success": {
2372
- color: "var(--sl-color-primary-500)",
2373
- fontWeight: "var(--sl-font-weight-semibold)",
2374
- },
2375
- "& .action": {
2376
- marginTop: "auto",
2377
- marginLeft: "auto",
2378
- "&::part(base)": {
2379
- color: "var(--sl-color-neutral-0)",
2380
- },
2381
- "&.disabled::part(base)": {
2382
- border: "1px solid var(--sl-color-primary-400)",
2383
- background: "var(--sl-color-primary-400)",
2384
- },
2385
- "&.neutral::part(base)": {
2386
- border: "1px solid var(--sl-color-neutral-400)",
2387
- background: "var(--sl-color-neutral-400)",
2388
- },
2389
- },
2390
- "& .neutral": {
2391
- color: "var(--sl-color-neutral-400)",
2392
- },
2393
- "& .datetime": {
2394
- display: "block",
2395
- marginTop: "var(--sl-spacing-xx-small)",
2396
- },
2397
- },
2398
- };
2399
- const sheet$7 = JSS.createStyleSheet(style$7);
2400
- const styleString$7 = sheet$7.toString();
2401
- function TaskCardView(props) {
2402
- var _a, _b;
2403
- const { callbacks, states, content } = props;
2040
+ };
2041
+ const sheet = JSS.createStyleSheet(style);
2042
+ const contentString = sheet.toString();
2404
2043
  const dateStart = content.rewardDuration &&
2405
2044
  luxon.luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
2406
2045
  const dateEnd = content.rewardDuration &&
@@ -2433,11 +2072,11 @@ function TaskCardView(props) {
2433
2072
  }
2434
2073
 
2435
2074
  `;
2436
- return (index.h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
2075
+ return (index.h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
2437
2076
  index.h("style", { type: "text/css" },
2438
- styleString$7,
2077
+ contentString,
2439
2078
  vanillaStyle),
2440
- !states.loading && taskNotStarted && (index.h("div", { class: sheet$7.classes.NotStarted },
2079
+ !states.loading && taskNotStarted && (index.h("div", { class: sheet.classes.NotStarted },
2441
2080
  index.h("span", { class: "icon" },
2442
2081
  index.h("sl-icon", { name: "info-circle-fill" })),
2443
2082
  global.intl.formatMessage({
@@ -2448,7 +2087,7 @@ function TaskCardView(props) {
2448
2087
  .setLocale(utils.luxonLocale(states.locale))
2449
2088
  .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
2450
2089
  }))),
2451
- !states.loading && taskEnded && (index.h("div", { class: sheet$7.classes.Ended },
2090
+ !states.loading && taskEnded && (index.h("div", { class: sheet.classes.Ended },
2452
2091
  index.h("span", { class: "icon" },
2453
2092
  index.h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
2454
2093
  global.intl.formatMessage({
@@ -2461,14 +2100,14 @@ function TaskCardView(props) {
2461
2100
  }))),
2462
2101
  index.h("div", { part: "sqm-style-container", style: {
2463
2102
  borderRadius: taskUnavailable &&
2464
- "0 0 var(--sl-border-radius-large) var(--sl-border-radius-large)",
2103
+ "0 0 var(--sqm-border-radius-normal) var(--sqm-border-radius-normal)",
2465
2104
  }, class: taskUnavailable
2466
2105
  ? "main expired"
2467
2106
  : taskComplete
2468
2107
  ? "main complete"
2469
2108
  : "main" },
2470
2109
  index.h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
2471
- 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,
2110
+ 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,
2472
2111
  showComplete && (index.h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
2473
2112
  index.h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
2474
2113
  index.h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
@@ -2483,8 +2122,8 @@ function TaskCardView(props) {
2483
2122
  opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2484
2123
  } }, content.cardTitle)),
2485
2124
  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" })))),
2486
- 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 })))),
2487
- 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" } },
2125
+ 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 })))),
2126
+ 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" } },
2488
2127
  index.h("span", { class: "text" },
2489
2128
  content.repeatable && (index.h("div", null,
2490
2129
  index.h("span", { class: repetitions > 0
@@ -2513,118 +2152,407 @@ function TaskCardView(props) {
2513
2152
  .setLocale(utils.luxonLocale(states.locale))
2514
2153
  .toLocaleString(luxon.luxon.DateTime.DATETIME_MED),
2515
2154
  })))),
2516
- content.hideButton ? ("") : (index.h("sl-button", { exportparts: "base: button", id: "sl-button", class: taskUnavailable
2517
- ? "action neutral"
2518
- : taskComplete
2519
- ? "action disabled"
2520
- : "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
2155
+ 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: {
2521
2156
  opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2522
2157
  } }, content.buttonText)))))))));
2523
2158
  }
2524
2159
 
2525
- function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
2526
- return (index.h("svg", { width: width, height: height, viewBox: "0 0 1662 254", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
2527
- index.h("path", { d: "M801.082 253.58L869.382 1.67969", stroke: color, "stroke-width": "3" }),
2528
- 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 }),
2529
- index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
2530
- 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 }),
2531
- 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 }),
2532
- 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 }),
2533
- 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 }),
2534
- 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 }),
2535
- 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 }),
2536
- 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 }),
2537
- 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 }),
2538
- 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 }),
2539
- index.h("path", { d: "M135.882 89.2798H115.582V187.58H135.882V89.2798Z", fill: color }),
2540
- 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 }),
2541
- 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 }),
2542
- 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 }),
2543
- 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 }),
2544
- 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 }),
2545
- 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 }),
2546
- 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 }),
2547
- 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 }),
2548
- 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 }),
2549
- 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 }),
2550
- index.h("path", { d: "M1208.57 104.5L1172.3 202H1161.96L1125.5 104.5H1136.61L1167.03 189.715L1197.45 104.5H1208.57Z", fill: color }),
2551
- 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 }),
2552
- 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 }),
2553
- 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 }),
2554
- 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 }),
2555
- 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 })));
2160
+ const style$3 = {
2161
+ Wrapper: { ...mixins.AuthWrapper, "max-width": "600px" },
2162
+ Column: mixins.AuthColumn,
2163
+ HostBlock: mixins.HostBlock,
2164
+ ":host": {
2165
+ margin: "0 auto",
2166
+ width: "100%",
2167
+ },
2168
+ ButtonsContainer: mixins.AuthButtonsContainer,
2169
+ ErrorStyle: mixins.ErrorStyles,
2170
+ };
2171
+ const vanillaStyle = `
2172
+ sqm-portal-register {
2173
+ margin: 0 auto;
2174
+ width: 100%;
2175
+ display: block;
2556
2176
  }
2557
2177
 
2558
- const vanillaStyle$3 = `
2178
+ :host{
2179
+ display: block;
2180
+ }
2181
+
2182
+ :host([hidden]) {
2183
+ display: none;
2184
+ }
2185
+ `;
2186
+ const sheet$3 = JSS.createStyleSheet(style$3);
2187
+ const styleString$3 = sheet$3.toString();
2188
+ function PortalRegisterView(props) {
2189
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2190
+ const { states, refs, callbacks, content } = props;
2191
+ if (states.error) {
2192
+ window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
2193
+ }
2194
+ return (index.h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
2195
+ index.h("style", { type: "text/css" },
2196
+ vanillaStyle,
2197
+ styleString$3),
2198
+ index.h(sqmTextSpanView.TextSpanView, { type: "h3" }, content.pageLabel),
2199
+ index.h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
2200
+ states.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
2201
+ index.h("div", { part: "erroralert-text" }, props.states.error))),
2202
+ content.formData,
2203
+ !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 }) => {
2204
+ if (!value) {
2205
+ return content.requiredFieldErrorMessage;
2206
+ }
2207
+ // this matches shoelace validation, but could be better
2208
+ if (!value.includes("@")) {
2209
+ return content.invalidEmailErrorMessage;
2210
+ }
2211
+ } }, (((_b = (_a = states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
2212
+ class: sheet$3.classes.ErrorStyle,
2213
+ helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
2214
+ content.requiredFieldErrorMessage,
2215
+ }
2216
+ : [])))),
2217
+ !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 })),
2218
+ content.passwordField,
2219
+ !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) ? {
2220
+ value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
2221
+ }
2222
+ : {}), (((_l = (_k = states.registrationFormState) === null || _k === void 0 ? void 0 : _k.validationErrors) === null || _l === void 0 ? void 0 : _l.confirmPassword) ? {
2223
+ class: sheet$3.classes.ErrorStyle,
2224
+ helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
2225
+ }
2226
+ : [])))),
2227
+ content.terms,
2228
+ index.h("div", { class: sheet$3.classes.ButtonsContainer },
2229
+ index.h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
2230
+ content.secondaryButton))));
2231
+ }
2232
+
2233
+ const style$4 = {
2234
+ ErrorStyle: {
2235
+ "&::part(control)": {
2236
+ background: "var(--sl-color-danger-10)",
2237
+ borderColor: "var(--sl-color-danger-500)",
2238
+ outline: "var(--sl-color-danger-500)",
2239
+ },
2240
+ "&:host": {
2241
+ "--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
2242
+ },
2243
+ },
2244
+ ErrorMessageStyle: {
2245
+ margin: 0,
2246
+ marginTop: "5px",
2247
+ color: "var(--sl-color-danger-500)",
2248
+ fontSize: "var(--sl-input-help-text-font-size-medium)",
2249
+ fontFamily: "var(--sl-font-sans)",
2250
+ fontWeight: "var(--sl-font-weight-normal)",
2251
+ },
2252
+ FieldContainer: {
2253
+ "margin-bottom": "var(--sl-spacing-large)",
2254
+ },
2255
+ };
2256
+ const vanillaStyle$1 = `
2257
+ :host {
2258
+ margin: 0 auto;
2259
+ width: 100%;
2260
+ display: block;
2261
+ }
2262
+ sl-checkbox::part(label){
2263
+ font-size: var(--sl-input-label-font-size-small);
2264
+ font-weight: var(--sl-font-weight-normal);
2265
+ line-height: 20px;
2266
+ }
2267
+ sl-checkbox::part(base){
2268
+ align-items: start;
2269
+ }
2270
+ `;
2271
+ JSS.jss.setup(JSS.create());
2272
+ const sheet$4 = JSS.jss.createStyleSheet(style$4);
2273
+ const styleString$4 = sheet$4.toString();
2274
+ function CheckboxFieldView(props) {
2275
+ var _b, _c;
2276
+ const { states, content, callbacks } = props;
2277
+ return (index.h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
2278
+ index.h("style", { type: "text/css" },
2279
+ vanillaStyle$1,
2280
+ styleString$4),
2281
+ index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
2282
+ e.target.value = e.target.checked;
2283
+ callbacks.setChecked(e.target.value);
2284
+ } }, (!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), required: false }), 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
+ }
2291
+
2292
+ function CouponCodeView(props) {
2293
+ const error = !props.loading && props.error;
2294
+ const style = {
2295
+ HostBlock: mixins.HostBlock,
2296
+ couponCodeLabel: {
2297
+ margin: "var(--sl-spacing-x-small) 0",
2298
+ color: props.textColor || "var(--sqm-text-subdued)",
2299
+ fontSize: "var(--sl-font-size-small)",
2300
+ },
2301
+ };
2302
+ const vanillaStyle = `
2559
2303
  :host{
2560
- margin: 0 auto;
2304
+ display: block;
2561
2305
  width: 100%;
2562
2306
  }
2563
- a{
2564
- cursor:pointer;
2565
- color: inherit;
2566
- text-decoration: none;
2567
- }
2568
2307
  `;
2569
- function PortalFooterView(props) {
2308
+ const sheet = JSS.createStyleSheet(style);
2309
+ const styleString = sheet.toString();
2310
+ return (index.h("div", null,
2311
+ index.h("style", { type: "text/css" },
2312
+ styleString,
2313
+ vanillaStyle),
2314
+ index.h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
2315
+ error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
2316
+ index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
2317
+ }
2318
+
2319
+ const style$5 = {
2320
+ ErrorStyle: {
2321
+ "--sl-input-border-color": "var(--sl-color-danger-500)",
2322
+ "--sl-input-background-color": "var(--sl-color-danger-10)",
2323
+ "--sl-input-border-color-focus": "var(--sl-color-danger-500)",
2324
+ "--sl-input-border-color-hover": "var(--sl-color-danger-500)",
2325
+ },
2326
+ ErrorMessageStyle: {
2327
+ margin: 0,
2328
+ color: "var(--sl-color-danger-500)",
2329
+ fontSize: "var(--sl-input-help-text-font-size-medium)",
2330
+ },
2331
+ FieldContainer: {
2332
+ "margin-bottom": "var(--sl-spacing-large)",
2333
+ },
2334
+ };
2335
+ const vanillaStyle$2 = `
2336
+ :host {
2337
+ margin: 0 auto;
2338
+ width: 100%;
2339
+ display: block;
2340
+ }
2341
+ sl-select::part(label){
2342
+ font-size: var(--sl-input-label-font-size-small);
2343
+ font-weight: var(--sl-font-weight-semibold);
2344
+ }
2345
+ `;
2346
+ JSS.jss.setup(JSS.create());
2347
+ const sheet$5 = JSS.jss.createStyleSheet(style$5);
2348
+ const styleString$5 = sheet$5.toString();
2349
+ function DropdownFieldView(props) {
2350
+ var _a, _b, _c, _d, _e, _f, _g;
2351
+ const { states, content } = props;
2352
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2353
+ return (index.h("div", { class: sheet$5.classes.FieldContainer, part: "sqm-base" },
2354
+ index.h("style", { type: "text/css" },
2355
+ vanillaStyle$2,
2356
+ styleString$5),
2357
+ 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]) ? {
2358
+ value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2359
+ }
2360
+ : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2361
+ class: sheet$5.classes.ErrorStyle,
2362
+ }
2363
+ : [])), content.selectOptions),
2364
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$5.classes.ErrorMessageStyle }, global.intl.formatMessage({
2365
+ id: `errorMessage-${content.dropdownName}`,
2366
+ defaultMessage: content.errorMessage,
2367
+ })))));
2368
+ }
2369
+
2370
+ const EditProfileView = (props) => {
2371
+ var _a, _b, _c, _d;
2372
+ const { states, callbacks } = props;
2373
+ const { text } = states;
2374
+ const { errors } = states.formState;
2375
+ if (states.showEdit) {
2376
+ return (index.h("div", { class: `CardWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
2377
+ index.h("h2", { part: "sqm-header", style: {
2378
+ fontSize: "var(--sl-font-size-x-large)",
2379
+ margin: "0px",
2380
+ textAlign: "center",
2381
+ } }, text.editprofileheader),
2382
+ index.h("form", { class: "FormWrapper", onSubmit: callbacks.onSubmit },
2383
+ index.h("div", { class: "FormSection" },
2384
+ states.formState.error && (index.h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
2385
+ index.h("div", { part: "erroralert-text" }, states.formState.error))),
2386
+ 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"
2387
+ ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
2388
+ : []), { id: "firstName", name: "firstName", error: errors.firstName && errors.firstName.status !== "valid"
2389
+ ? errors.firstName.message
2390
+ : undefined })),
2391
+ 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"
2392
+ ? { class: "ErrorStyles", helpText: text.fieldEmptyText }
2393
+ : []), { error: errors.lastName && errors.lastName.status !== "valid"
2394
+ ? errors.lastName.message
2395
+ : undefined }))),
2396
+ 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" })),
2397
+ index.h("div", { class: "ButtonWrapper" },
2398
+ index.h("sl-button", { type: "primary", loading: states.loading, disabled: states.submitDisabled, onClick: (e) => {
2399
+ callbacks.onSubmit(e);
2400
+ }, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
2401
+ index.h("sl-button", { onClick: () => {
2402
+ callbacks.setShowEdit(false);
2403
+ }, type: "secondary", exportparts: "base: secondarybutton-base" }, text.canceltext)))));
2404
+ }
2405
+ return (index.h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
2406
+ index.h("div", { class: "FormSection" },
2407
+ index.h("h2", { part: "sqm-header", style: {
2408
+ fontSize: "var(--sl-font-size-x-large)",
2409
+ marginBottom: "0px",
2410
+ textAlign: "center",
2411
+ } }, text.editprofileheader),
2412
+ index.h("div", null,
2413
+ index.h("p", { style: { fontSize: "var(--sl-font-size-medium)" } }, (_a = states.user) === null || _a === void 0 ? void 0 :
2414
+ _a.firstName,
2415
+ " ", (_b = states.user) === null || _b === void 0 ? void 0 :
2416
+ _b.lastName),
2417
+ 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))),
2418
+ index.h("sl-button", { type: "primary", loading: states.loading, onClick: () => {
2419
+ callbacks.resetForm();
2420
+ callbacks.setShowEdit(true);
2421
+ }, exportparts: "base: primarybutton-base" }, text.editprofiletext)));
2422
+ };
2423
+
2424
+ function LeaderboardView(props) {
2425
+ var _a, _b, _c;
2426
+ const { states, data, elements } = props;
2427
+ const { styles } = states;
2570
2428
  const style = {
2571
- RowContainer: {
2572
- display: "flex",
2573
- "& > :not(:last-child)": {
2574
- "margin-right": "var(--sl-spacing-large)",
2429
+ Leaderboard: {
2430
+ "& table": {
2431
+ width: "100%",
2432
+ borderCollapse: "collapse",
2433
+ background: styles.background || "transparent",
2434
+ borderRadius: styles.borderRadius ? `${styles.borderRadius}px` : "0",
2575
2435
  },
2576
- },
2577
- Container: {
2578
- display: "flex",
2579
- "flex-direction": "column",
2580
- "align-items": "center",
2581
- "font-size": "var(--sl-font-size-small)",
2582
- color: "var(--sl-color-gray-600)",
2583
- "padding-top": `var(--sl-spacing-${props.paddingTop})`,
2584
- "padding-right": `var(--sl-spacing-${props.paddingRight})`,
2585
- "padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
2586
- "padding-left": `var(--sl-spacing-${props.paddingLeft})`,
2587
- "row-gap": `var(--sl-spacing-small)`,
2588
- "& a:hover": {
2589
- color: "var(--sl-color-gray-900)",
2436
+ "& th": {
2437
+ textAlign: "left",
2438
+ padding: "var(--sl-spacing-medium)",
2439
+ paddingTop: "0",
2440
+ fontSize: "var(--sl-font-size-medium)",
2441
+ fontWeight: "var(--sl-font-weight-semibold)",
2590
2442
  },
2591
- },
2592
- SupportText: {
2593
- textAlign: "center",
2594
- margin: 0,
2595
- },
2596
- PoweredByLink: {
2597
- color: "var(--sl-color-gray-400)",
2598
- "font-size": "var(--sl-font-size-small)",
2599
- display: "flex",
2600
- alignItems: "center",
2601
- svg: {
2602
- marginTop: "2px",
2603
- shapeRendering: "geometricprecision",
2443
+ "& tr:not(:first-child)": {
2444
+ borderTop: `var(--sqm-bordr-thickness) solid ${styles.borderColor || "var(--sqm-border-color)"}`,
2604
2445
  },
2605
- "&:hover, &:hover *": {
2606
- color: "var(--sl-color-gray-900)",
2446
+ "& td": {
2447
+ fontSize: "var(--sl-font-size-medium)",
2448
+ fontWeight: "var(--sl-font-weight-normal)",
2449
+ },
2450
+ "& .ellipses": {
2451
+ textAlign: "left",
2452
+ padding: "0",
2453
+ color: styles.textColor || "var(--sqm-text)",
2454
+ paddingLeft: "25%",
2455
+ },
2456
+ "& .highlight": {
2457
+ background: styles.viewingUserHighlightColor ||
2458
+ "var(--sqm-accent-color-background)",
2459
+ "& td, th": {
2460
+ color: styles.viewingUserHighlightTextColor || "var(--sqm-text)",
2461
+ },
2462
+ },
2463
+ "& td, th": {
2464
+ color: styles.textColor || "var(--sqm-text)",
2465
+ padding: "var(--sl-spacing-medium)",
2466
+ },
2467
+ "& .User": {
2468
+ width: "100%",
2469
+ },
2470
+ "& .Score": {
2471
+ width: "auto",
2472
+ whiteSpace: "nowrap",
2473
+ },
2474
+ "& .Rank": {
2475
+ whiteSpace: "nowrap",
2476
+ },
2477
+ "& .fullWidth": {
2478
+ width: "100%",
2607
2479
  },
2608
2480
  },
2609
2481
  };
2610
2482
  const sheet = JSS.createStyleSheet(style);
2611
2483
  const styleString = sheet.toString();
2612
- return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2484
+ const vanillaStyle = `
2485
+ :host{
2486
+ display: block;
2487
+ }
2488
+ `;
2489
+ if (states.isEssentials) {
2490
+ 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" }));
2491
+ }
2492
+ if (states.loading) {
2493
+ return (index.h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
2494
+ index.h("style", { type: "text/css" },
2495
+ styleString,
2496
+ vanillaStyle),
2497
+ index.h("table", null, [...Array(10)].map(() => {
2498
+ return (index.h("tr", null,
2499
+ index.h("td", null,
2500
+ index.h("sl-skeleton", null))));
2501
+ }))));
2502
+ }
2503
+ if (!states.hasLeaders)
2504
+ return elements.empty;
2505
+ let userSeenFlag = false;
2506
+ const getUsersName = (user) => {
2507
+ if (!user.firstName && !user.lastInitial)
2508
+ return styles.anonymousUser;
2509
+ const { firstName, lastInitial } = user;
2510
+ if (firstName && lastInitial)
2511
+ return `${firstName} ${lastInitial}`;
2512
+ if (firstName || lastInitial)
2513
+ return firstName || lastInitial;
2514
+ return styles.anonymousUser;
2515
+ };
2516
+ const getRankCellText = (userRank, isViewingUsersRow) => {
2517
+ if (!userRank) {
2518
+ return styles.hideNames ? `${styles.viewingUserText}` : "-";
2519
+ }
2520
+ const viewingUserText = ` - ${styles.viewingUserText}`;
2521
+ return styles.rankSuffix
2522
+ ? global.intl.formatMessage({
2523
+ id: "rank",
2524
+ defaultMessage: styles.rankSuffix,
2525
+ }, {
2526
+ rank: userRank,
2527
+ }) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
2528
+ : `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
2529
+ };
2530
+ return (index.h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
2613
2531
  index.h("style", { type: "text/css" },
2614
- vanillaStyle$3,
2615
- styleString),
2616
- index.h("div", { class: sheet.classes.RowContainer },
2617
- props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
2618
- props.termsLink && (index.h("a", { target: "_blank", href: props.termsLink }, props.termsText))),
2619
- !props.hideSupportText && (index.h("p", { class: sheet.classes.SupportText }, global.intl.formatMessage({
2620
- id: "supportFooter",
2621
- defaultMessage: props.supportText,
2622
- }, {
2623
- email: (index.h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
2624
- }))),
2625
- !props.hidePoweredBy && (index.h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
2626
- "Powered by ",
2627
- index.h(PoweredByImg, { color: "currentColor" })))));
2532
+ styleString,
2533
+ vanillaStyle),
2534
+ index.h("table", { part: "sqm-table" },
2535
+ index.h("tr", null,
2536
+ styles.showRank && (index.h("th", { class: `Rank ${styles.hideNames ? "fullWidth" : ""}` }, styles.rankheading)),
2537
+ !styles.hideNames && index.h("th", { class: "User" }, styles.usersheading),
2538
+ index.h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
2539
+ _a.map((user) => {
2540
+ var _a, _b;
2541
+ if (user.rowNumber === ((_a = data.viewerRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
2542
+ userSeenFlag = true;
2543
+ const isViewingUsersRow = !styles.hideViewer && user.rowNumber === ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rowNumber);
2544
+ return (index.h("tr", { class: isViewingUsersRow ? "highlight" : "" },
2545
+ styles.showRank && (index.h("td", { class: "Rank" }, getRankCellText(user.rank, isViewingUsersRow))),
2546
+ !styles.hideNames && index.h("td", { class: "User" }, getUsersName(user)),
2547
+ index.h("td", { class: "Score" }, user.textValue)));
2548
+ }),
2549
+ !userSeenFlag && !styles.hideViewer && (index.h("tr", null,
2550
+ index.h("td", { colSpan: 100, class: "ellipses" },
2551
+ index.h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
2552
+ !userSeenFlag && !styles.hideViewer && (index.h("tr", { class: "highlight" },
2553
+ styles.showRank && (index.h("td", { class: "Rank" }, getRankCellText((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rank, true))),
2554
+ !styles.hideNames && (index.h("td", { class: "User" }, getUsersName(data.viewerRank || {}))),
2555
+ index.h("td", { class: "Score" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.textValue) || "0"))))));
2628
2556
  }
2629
2557
 
2630
2558
  const paddingList = [
@@ -2661,10 +2589,10 @@ function HeroView(props) {
2661
2589
  large: 9,
2662
2590
  };
2663
2591
  var index = sizes[size];
2664
- if (utilities.isMobile(767)) {
2592
+ if (utilities.isMobile(650)) {
2665
2593
  index = index - 2;
2666
2594
  }
2667
- else if (utilities.isMobile(1023)) {
2595
+ else if (utilities.isMobile(767)) {
2668
2596
  index = index - 1;
2669
2597
  }
2670
2598
  return half ? paddingList[index - 2] : paddingList[index];
@@ -2684,7 +2612,7 @@ function HeroView(props) {
2684
2612
  const style = {
2685
2613
  TwoColumnContainer: {
2686
2614
  display: "flex",
2687
- "@media screen and (max-width: 1023px)": {
2615
+ "@media screen and (max-width: 650px)": {
2688
2616
  flexDirection: states.wrapDirection == "wrap-reverse" ? "column-reverse" : "column",
2689
2617
  justfiyContent: "center",
2690
2618
  },
@@ -2710,10 +2638,13 @@ function HeroView(props) {
2710
2638
  "&:last-of-type": {
2711
2639
  background: `no-repeat center/cover ${parseBackground(states.secondaryBackground)}`,
2712
2640
  },
2713
- "@media screen and (min-width: 1023px)": { flex: "1 1 0" },
2641
+ "@media screen and (min-width: 650px)": { flex: "1 1 0" },
2714
2642
  minHeight: `${states.minHeight}px`,
2715
2643
  display: "block",
2716
2644
  },
2645
+ HideColumn: {
2646
+ "@media screen and (max-width: 650px)": { display: "none" },
2647
+ },
2717
2648
  SingleColumnContainer: {
2718
2649
  background: `no-repeat center/cover ${parseBackground(states.background)}`,
2719
2650
  minHeight: `${states.minHeight}px`,
@@ -2751,39 +2682,52 @@ function HeroView(props) {
2751
2682
  vanillaStyle,
2752
2683
  styleString),
2753
2684
  states.columns == 2 ? (index.h("div", { class: sheet.classes.TwoColumnContainer, part: "sqm-two-col-container" },
2754
- index.h("div", { part: "sqm-two-col-primary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding}` }, content.primaryColumn),
2755
- 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))));
2685
+ index.h("div", { part: "sqm-two-col-primary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding} ${states.columnToHideInMobile === "primary"
2686
+ ? sheet.classes.HideColumn
2687
+ : ""}` }, content.primaryColumn),
2688
+ index.h("div", { part: "sqm-two-col-secondary-col", class: `${sheet.classes.ColumnWrapper} ${sheet.classes.ColumnPadding} ${states.columnToHideInMobile === "secondary"
2689
+ ? sheet.classes.HideColumn
2690
+ : ""}` }, content.secondaryColumn))) : (index.h("div", { part: "sqm-single-col", class: `${sheet.classes.SingleColumnContainer} ${sheet.classes.ColumnPadding}` }, content.primaryColumn))));
2756
2691
  }
2757
2692
 
2758
- function ReferralIframeView(props) {
2759
- const { states, data } = props;
2760
- const { content } = states;
2761
- // dependent on props
2762
- const style = {
2763
- Container: {
2764
- position: "relative",
2765
- width: content.iframeWidth,
2766
- height: content.iframeHeight,
2767
- },
2768
- IFrame: {
2769
- position: "absolute",
2770
- width: "100%",
2771
- height: "100%",
2772
- border: "0",
2773
- top: "0",
2774
- left: "0",
2775
- right: "0",
2776
- },
2777
- };
2778
- // JSS config
2779
- const sheet = JSS.createStyleSheet(style);
2780
- const styleString = sheet.toString();
2781
- return (index.h("div", { class: sheet.classes.Container },
2782
- index.h("style", { type: "text/css" }, styleString),
2783
- index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
2693
+ const style$6 = {
2694
+ ErrorStyle: mixins.ErrorStyles,
2695
+ FieldContainer: {
2696
+ "margin-bottom": "var(--sl-spacing-large)",
2697
+ },
2698
+ };
2699
+ const vanillaStyle$3 = `
2700
+ :host {
2701
+ margin: 0 auto;
2702
+ width: 100%;
2703
+ display: block;
2704
+ }
2705
+ `;
2706
+ JSS.jss.setup(JSS.create());
2707
+ const sheet$6 = JSS.jss.createStyleSheet(style$6);
2708
+ const styleString$6 = sheet$6.toString();
2709
+ function InputFieldView(props) {
2710
+ var _a, _b, _c, _d, _e, _f, _g;
2711
+ const { states, content } = props;
2712
+ const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2713
+ return (index.h("div", { class: sheet$6.classes.FieldContainer, part: "sqm-base" },
2714
+ index.h("style", { type: "text/css" },
2715
+ vanillaStyle$3,
2716
+ styleString$6),
2717
+ 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]) ? {
2718
+ value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2719
+ }
2720
+ : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2721
+ class: sheet$6.classes.ErrorStyle,
2722
+ helpText: global.intl.formatMessage({
2723
+ id: `errorMessage-${content.fieldName}`,
2724
+ defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
2725
+ }),
2726
+ }
2727
+ : [])))));
2784
2728
  }
2785
2729
 
2786
- const style$8 = {
2730
+ const style$7 = {
2787
2731
  ErrorStyle: mixins.ErrorStyles,
2788
2732
  FieldsContainer: {
2789
2733
  "& sl-input": {
@@ -2798,26 +2742,51 @@ const vanillaStyle$4 = `
2798
2742
  display: block;
2799
2743
  }
2800
2744
 
2801
- sl-input::part(label){
2802
- font-size: var(--sl-input-label-font-size-small);
2745
+ *::part(input-label), *::part(select-label), *::part(textarea-label){
2746
+ font-size: var(--sqm-input-label-font-size, var(--sl-input-font-size-small));
2803
2747
  font-weight: var(--sl-font-weight-semibold);
2748
+ color: var(--sqm-input-label-color, var(--sqm-text), black);
2749
+ }
2750
+
2751
+ *::part(input-base), *::part(select-base), *::part(textarea-base){
2752
+ background-color: var(--sqm-input-background, #fff);
2753
+ border-radius: var(--sqm-input-border-radius, var(--sl-input-border-radius-large), 0.25rem);
2754
+ color: var(--sqm-input-color, white);
2755
+ border-width: var(--sqm-border-thickness, 1px);
2756
+ }
2757
+
2758
+ sl-input::part(base):focus,
2759
+ sl-select::part(form-control-wrapper):focus,
2760
+ sl-textare::part(textarea-label):focus {
2761
+ border-color: none;
2762
+ border: var(--sqm-input-focus-border, var(--sqm-border-thickness) solid var(--sl-input-border-color-focus));
2763
+ }
2764
+
2765
+ *::part(input-label):disabled, *::part(select-label):disabled, *::part(textarea-label):disabled{
2766
+ background: var(--sqm-input-disabled-background, #f5f5f5);
2767
+ color: var(--sqm-input-disabled-color, var(--sl-color-gray-600));
2804
2768
  }
2769
+
2770
+ sl-input {
2771
+ --sl-input-border-color-focus: var(--sqm-border-color-focus);
2772
+ }
2773
+
2805
2774
  `;
2806
- const sheet$8 = JSS.createStyleSheet(style$8);
2807
- const styleString$8 = sheet$8.toString();
2775
+ const sheet$7 = JSS.createStyleSheet(style$7);
2776
+ const styleString$7 = sheet$7.toString();
2808
2777
  function NameFieldsView(props) {
2809
2778
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2810
2779
  const { states } = props;
2811
2780
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2812
- return (index.h("div", { class: sheet$8.classes.FieldsContainer },
2781
+ return (index.h("div", { class: sheet$7.classes.FieldsContainer },
2813
2782
  index.h("style", { type: "text/css" },
2814
2783
  vanillaStyle$4,
2815
- styleString$8),
2784
+ styleString$7),
2816
2785
  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) ? {
2817
2786
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2818
2787
  }
2819
2788
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2820
- class: sheet$8.classes.ErrorStyle,
2789
+ class: sheet$7.classes.ErrorStyle,
2821
2790
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2822
2791
  }
2823
2792
  : []))),
@@ -2825,98 +2794,206 @@ function NameFieldsView(props) {
2825
2794
  value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2826
2795
  }
2827
2796
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2828
- class: sheet$8.classes.ErrorStyle,
2797
+ class: sheet$7.classes.ErrorStyle,
2829
2798
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
2830
2799
  }
2831
2800
  : [])))));
2832
2801
  }
2833
2802
 
2834
- const style$9 = {
2835
- ErrorStyle: {
2836
- "--sl-input-border-color": "var(--sl-color-danger-500)",
2837
- "--sl-input-background-color": "var(--sl-color-danger-10)",
2838
- "--sl-input-border-color-focus": "var(--sl-color-danger-500)",
2839
- "--sl-input-border-color-hover": "var(--sl-color-danger-500)",
2840
- },
2841
- ErrorMessageStyle: {
2842
- margin: 0,
2843
- color: "var(--sl-color-danger-500)",
2844
- fontSize: "var(--sl-input-help-text-font-size-medium)",
2845
- },
2846
- FieldContainer: {
2847
- "margin-bottom": "var(--sl-spacing-large)",
2848
- },
2849
- };
2850
- const vanillaStyle$5 = `
2851
- :host {
2852
- margin: 0 auto;
2853
- width: 100%;
2854
- display: block;
2855
- }
2856
- sl-select::part(label){
2857
- font-size: var(--sl-input-label-font-size-small);
2858
- font-weight: var(--sl-font-weight-semibold);
2803
+ function ChangeMarktingView(props) {
2804
+ const { states, callbacks } = props;
2805
+ const { text, formState } = states;
2806
+ const { error } = formState;
2807
+ const style = {
2808
+ Container: {
2809
+ display: "flex",
2810
+ flexDirection: "column",
2811
+ gap: "var(--sl-spacing-x-small)",
2812
+ padding: "0 var(--sl-spacing-xxx-large) var(--sl-spacing-xxx-large)",
2813
+ },
2814
+ SubmitButton: { marginBottom: "var(--sl-spacing-medium)" },
2815
+ Error: {
2816
+ "&::part(erroralert-base)": {
2817
+ "margin-bottom": "15px",
2818
+ },
2819
+ },
2820
+ Success: {
2821
+ "&::part(successalert-base)": {
2822
+ "margin-bottom": "15px",
2823
+ },
2824
+ },
2825
+ };
2826
+ const sheet = JSS.createStyleSheet(style);
2827
+ const styleString = sheet.toString();
2828
+ return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2829
+ index.h("style", { type: "text/css" }, styleString),
2830
+ index.h(sqmTextSpanView.TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
2831
+ index.h("sl-form", { "onSl-submit": callbacks.onSubmit },
2832
+ index.h(CheckboxFieldView, { states: {
2833
+ checked: states.formState.marketingEmailOptIn,
2834
+ }, content: {
2835
+ checkboxLabel: text.marketingCheckboxLabel,
2836
+ checkboxName: "marketingEmailOptIn",
2837
+ }, callbacks: {
2838
+ setChecked: callbacks.setChecked,
2839
+ } }),
2840
+ index.h("sl-button", { class: sheet.classes.SubmitButton, type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
2841
+ error && (index.h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
2842
+ index.h("div", { part: "erroralert-text" }, error))),
2843
+ states.success && (index.h("sqm-form-message", { class: sheet.classes.Success, type: "success", exportparts: "successalert-icon" },
2844
+ index.h("div", { part: "successalert-text" }, states.text.successMessage))))));
2859
2845
  }
2846
+
2847
+ const vanillaStyle$5 = `
2848
+ :host{
2849
+ margin: 0 auto;
2850
+ width: 100%;
2851
+ }
2852
+ a{
2853
+ cursor:pointer;
2854
+ color: var(--sqm-text-subdued);
2855
+ text-decoration: none ;
2856
+ }
2860
2857
  `;
2861
- JSS.jss.setup(JSS.create());
2862
- const sheet$9 = JSS.jss.createStyleSheet(style$9);
2863
- const styleString$9 = sheet$9.toString();
2864
- function DropdownFieldView(props) {
2865
- var _a, _b, _c, _d, _e, _f, _g;
2866
- const { states, content } = props;
2867
- const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2868
- return (index.h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
2858
+ function PortalFooterView(props) {
2859
+ const style = {
2860
+ RowContainer: {
2861
+ display: "flex",
2862
+ "& > :not(:last-child)": {
2863
+ "margin-right": "var(--sl-spacing-large)",
2864
+ },
2865
+ },
2866
+ Container: {
2867
+ display: "flex",
2868
+ "flex-direction": "column",
2869
+ "align-items": "center",
2870
+ "font-size": "var(--sl-font-size-small)",
2871
+ color: "var(--sqm-text-subdued)",
2872
+ "padding-top": `var(--sl-spacing-${props.paddingTop})`,
2873
+ "padding-right": `var(--sl-spacing-${props.paddingRight})`,
2874
+ "padding-bottom": `var(--sl-spacing-${props.paddingBottom})`,
2875
+ "padding-left": `var(--sl-spacing-${props.paddingLeft})`,
2876
+ "row-gap": `var(--sl-spacing-small)`,
2877
+ "& a:hover": {
2878
+ color: "var(--sqm-text)",
2879
+ },
2880
+ },
2881
+ SupportText: {
2882
+ textAlign: "center",
2883
+ margin: 0,
2884
+ },
2885
+ PoweredByLink: {
2886
+ color: "var(--sqm-text-subdued)",
2887
+ "font-size": "var(--sl-font-size-small)",
2888
+ display: "flex",
2889
+ alignItems: "center",
2890
+ svg: {
2891
+ marginTop: "2px",
2892
+ shapeRendering: "geometricprecision",
2893
+ },
2894
+ "&:hover, &:hover *": {
2895
+ color: "var(--sqm-text)",
2896
+ },
2897
+ },
2898
+ };
2899
+ const sheet = JSS.createStyleSheet(style);
2900
+ const styleString = sheet.toString();
2901
+ return (index.h("div", { class: sheet.classes.Container, part: "sqm-base" },
2869
2902
  index.h("style", { type: "text/css" },
2870
2903
  vanillaStyle$5,
2871
- styleString$9),
2872
- 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]) ? {
2873
- value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2874
- }
2875
- : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2876
- class: sheet$9.classes.ErrorStyle,
2877
- }
2878
- : [])), content.selectOptions),
2879
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$9.classes.ErrorMessageStyle }, global.intl.formatMessage({
2880
- id: `errorMessage-${content.dropdownName}`,
2881
- defaultMessage: content.errorMessage,
2882
- })))));
2904
+ styleString),
2905
+ index.h("div", { class: sheet.classes.RowContainer },
2906
+ props.faqLink && (index.h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
2907
+ props.termsLink && (index.h("a", { target: "_blank", href: props.termsLink }, props.termsText))),
2908
+ !props.hideSupportText && (index.h("p", { class: sheet.classes.SupportText }, global.intl.formatMessage({
2909
+ id: "supportFooter",
2910
+ defaultMessage: props.supportText,
2911
+ }, {
2912
+ email: (index.h("a", { target: "_blank", href: `mailto:${props.supportEmail}` }, props.supportEmail)),
2913
+ }))),
2914
+ !props.hidePoweredBy && (index.h("a", { class: sheet.classes.PoweredByLink, target: "_blank", href: props.poweredByLink },
2915
+ "Powered by ",
2916
+ index.h(PoweredByImg, { color: "currentColor" })))));
2883
2917
  }
2884
2918
 
2885
- const style$a = {
2886
- ErrorStyle: mixins.ErrorStyles,
2887
- FieldContainer: {
2888
- "margin-bottom": "var(--sl-spacing-large)",
2889
- },
2890
- };
2891
- const vanillaStyle$6 = `
2892
- :host {
2893
- margin: 0 auto;
2894
- width: 100%;
2895
- display: block;
2919
+ function PortalFrameView(props, children) {
2920
+ const { data, notFullScreen, border } = props;
2921
+ const style = {
2922
+ HostBlock: mixins.HostBlock,
2923
+ Frame: {
2924
+ display: "flex",
2925
+ "flex-direction": "column",
2926
+ "box-sizing": "border-box",
2927
+ "&:nth-child(2)": {
2928
+ background: props.backgroundColor,
2929
+ },
2930
+ },
2931
+ FooterWrapper: {
2932
+ width: "100%",
2933
+ "max-width": "100%",
2934
+ padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
2935
+ background: props.headerAndFooterBackgroundColor,
2936
+ display: "flex",
2937
+ "justify-content": "flex-end",
2938
+ "align-items": "center",
2939
+ "box-sizing": "border-box",
2940
+ borderTop: border,
2941
+ "margin-top": "auto",
2942
+ },
2943
+ HeaderWrapper: {
2944
+ width: "100%",
2945
+ "max-width": "100%",
2946
+ "box-sizing": "border-box",
2947
+ display: "flex",
2948
+ "justify-content": "space-between",
2949
+ padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
2950
+ "align-items": "center",
2951
+ borderBottom: border,
2952
+ background: props.headerAndFooterBackgroundColor,
2953
+ "@media screen and (max-width: 499px)": {
2954
+ "flex-direction": "row-reverse",
2955
+ "justify-content": "flex-end",
2956
+ padding: "0",
2957
+ },
2958
+ },
2959
+ };
2960
+ const sheet = JSS.createStyleSheet(style);
2961
+ const styleString = sheet.toString();
2962
+ return (index.h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-base" },
2963
+ index.h("style", { type: "text/css" }, styleString),
2964
+ index.h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-header" },
2965
+ data.header,
2966
+ index.h("slot", { name: "sqm-navigation-menu" })),
2967
+ children,
2968
+ index.h("div", { class: sheet.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
2896
2969
  }
2897
- `;
2898
- JSS.jss.setup(JSS.create());
2899
- const sheet$a = JSS.jss.createStyleSheet(style$a);
2900
- const styleString$a = sheet$a.toString();
2901
- function InputFieldView(props) {
2902
- var _a, _b, _c, _d, _e, _f, _g;
2903
- const { states, content } = props;
2904
- const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2905
- return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
2906
- index.h("style", { type: "text/css" },
2907
- vanillaStyle$6,
2908
- styleString$a),
2909
- 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]) ? {
2910
- value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2911
- }
2912
- : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2913
- class: sheet$a.classes.ErrorStyle,
2914
- helpText: global.intl.formatMessage({
2915
- id: `errorMessage-${content.fieldName}`,
2916
- defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
2917
- }),
2918
- }
2919
- : [])))));
2970
+
2971
+ function ReferralIframeView(props) {
2972
+ const { states, data } = props;
2973
+ const { content } = states;
2974
+ // dependent on props
2975
+ const style = {
2976
+ Container: {
2977
+ position: "relative",
2978
+ width: content.iframeWidth,
2979
+ height: content.iframeHeight,
2980
+ },
2981
+ IFrame: {
2982
+ position: "absolute",
2983
+ width: "100%",
2984
+ height: "100%",
2985
+ border: "0",
2986
+ top: "0",
2987
+ left: "0",
2988
+ right: "0",
2989
+ },
2990
+ };
2991
+ // JSS config
2992
+ const sheet = JSS.createStyleSheet(style);
2993
+ const styleString = sheet.toString();
2994
+ return (index.h("div", { class: sheet.classes.Container },
2995
+ index.h("style", { type: "text/css" }, styleString),
2996
+ index.h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
2920
2997
  }
2921
2998
 
2922
2999
  const CheckMark = () => (index.h("svg", { width: 12, height: 10, fill: "none", xmlns: "http://www.w3.org/2000/svg" },
@@ -2948,15 +3025,15 @@ function Dot({ active, completed, incomplete, stage, }) {
2948
3025
  } },
2949
3026
  index.h("div", { style: {
2950
3027
  backgroundColor: completed
2951
- ? "var(--sl-color-success-500)"
3028
+ ? "var(--sqm-success-color-icon)"
2952
3029
  : incomplete
2953
- ? "var(--sl-color-neutral-200)"
2954
- : "var(--sl-color-neutral-0)",
3030
+ ? "var(--sqm-border-color)"
3031
+ : "white",
2955
3032
  border: active
2956
- ? "1px solid var(--sl-color-success-500)"
3033
+ ? "1px solid var(--sqm-success-color-border)"
2957
3034
  : incomplete
2958
- ? "1px solid var(--sl-color-neutral-200)"
2959
- : "1px solid var(--sl-color-success-500)",
3035
+ ? "1px solid var(--sqm-border-color)"
3036
+ : "1px solid var(--sqm-success-color-border)",
2960
3037
  borderRadius: "50%",
2961
3038
  width: "23px",
2962
3039
  height: "23px",
@@ -2966,8 +3043,8 @@ function Dot({ active, completed, incomplete, stage, }) {
2966
3043
  } }, completed ? (index.h("div", { style: { top: "-10.5%", left: "23.5%", position: "relative" } },
2967
3044
  index.h(CheckMark, null))) : (index.h("div", { style: {
2968
3045
  color: active
2969
- ? "var(--sl-color-success-500)"
2970
- : "var(--sl-color-neutral-50)",
3046
+ ? "var(--sqm-success-color-border)"
3047
+ : "var(--sqm-text-subdued)",
2971
3048
  width: "23px",
2972
3049
  lineHeight: "24px",
2973
3050
  textAlign: "center",
@@ -2981,8 +3058,8 @@ function ProgressLine({ incomplete = false, active = false, invisible = false, }
2981
3058
  height: "4px",
2982
3059
  borderRadius: "4px",
2983
3060
  background: incomplete || active
2984
- ? "var(--sl-color-neutral-200)"
2985
- : "var(--sl-color-success-500)",
3061
+ ? "var(--sqm-border-color)"
3062
+ : "var(--sqm-success-color-icon)",
2986
3063
  position: "relative",
2987
3064
  bottom: "0",
2988
3065
  left: "0",
@@ -3005,7 +3082,7 @@ function ProgressBar({ stageCount, currentStage, }) {
3005
3082
  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 })))));
3006
3083
  }
3007
3084
 
3008
- const style$b = {
3085
+ const style$8 = {
3009
3086
  HostBlock: mixins.HostBlock,
3010
3087
  Container: {
3011
3088
  minWidth: "300px",
@@ -3019,21 +3096,25 @@ const style$b = {
3019
3096
  margin: "0 auto",
3020
3097
  },
3021
3098
  Select: {
3099
+ "&::part(base)": {
3100
+ borderRadius: "var(--sqm-input-border-radius)",
3101
+ },
3022
3102
  "&::part(label)": {
3023
- // color: "var(--sl-color-primary-500)",
3103
+ color: "var(--sqm-input-label-color)",
3024
3104
  },
3025
3105
  "&::part(menu)": {
3026
3106
  maxHeight: "450px",
3027
3107
  },
3028
3108
  "& sl-menu-item::part(checked-icon)": {
3029
3109
  top: "8px",
3110
+ color: "var(--sqm-text)",
3030
3111
  },
3031
3112
  "& sl-menu-item::part(base)": {
3032
3113
  flexDirection: "column",
3033
3114
  },
3034
3115
  "& sl-menu-item::part(base):focus": {
3035
- background: "transparent",
3036
- color: "var(--sl-color-gray-700)",
3116
+ background: "var(--sqm-accent-color-background)",
3117
+ color: "var(--sqm-text)",
3037
3118
  },
3038
3119
  },
3039
3120
  ProgressBar: {
@@ -3053,7 +3134,7 @@ const style$b = {
3053
3134
  flex: "1 1 0",
3054
3135
  },
3055
3136
  "& .text.subdued": {
3056
- color: "var(--sl-color-neutral-200)",
3137
+ color: "var(--sqm-text-subdued)",
3057
3138
  },
3058
3139
  },
3059
3140
  },
@@ -3068,6 +3149,9 @@ const style$b = {
3068
3149
  userSelect: "none",
3069
3150
  height: "120px",
3070
3151
  "&::part(base)": {
3152
+ background: "var(--sqm-portal-background)",
3153
+ border: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
3154
+ borderRadius: "var(--sqm-border-radius-normal)",
3071
3155
  boxShadow: "none",
3072
3156
  width: "100%",
3073
3157
  },
@@ -3076,10 +3160,11 @@ const style$b = {
3076
3160
  padding: 0,
3077
3161
  },
3078
3162
  "& .selected": {
3163
+ borderRadius: "var(--sqm-border-radius-normal)",
3079
3164
  position: "relative",
3080
3165
  top: "-2%",
3081
3166
  left: "100%",
3082
- color: "var(--sl-color-primary-500)",
3167
+ color: "var(--sqm-primary-color)",
3083
3168
  margin: "-9px",
3084
3169
  },
3085
3170
  },
@@ -3111,7 +3196,7 @@ const style$b = {
3111
3196
  fontSize: "var(--sl-font-size-medium)",
3112
3197
  lineHeight: "var(--sl-line-height-dense)",
3113
3198
  fontWeight: "600",
3114
- color: "var(--sl-color-neutral-1000)",
3199
+ color: "var(--sqm-text)",
3115
3200
  display: "-webkit-box",
3116
3201
  "-webkit-line-clamp": "1",
3117
3202
  "-webkit-box-orient": "vertical",
@@ -3121,7 +3206,7 @@ const style$b = {
3121
3206
  fontSize: "var(--sl-font-size-small)",
3122
3207
  lineHeight: "var(--sl-line-height-dense)",
3123
3208
  marginTop: "var(--sl-spacing-x-small)",
3124
- color: "var(--sl-color-neutral-500)",
3209
+ color: "var(--sqm-text-subdued)",
3125
3210
  display: "-webkit-box",
3126
3211
  "-webkit-line-clamp": "1",
3127
3212
  "-webkit-box-orient": "vertical",
@@ -3132,7 +3217,7 @@ const style$b = {
3132
3217
  lineHeight: "var(--sl-line-height-dense)",
3133
3218
  marginTop: "var(--sl-spacing-x-small)",
3134
3219
  fontWeight: "600",
3135
- color: "var(--sl-color-warning-600)",
3220
+ color: "var(--sqm-warning-color-icon)",
3136
3221
  display: "-webkit-box",
3137
3222
  "-webkit-line-clamp": "1",
3138
3223
  "-webkit-box-orient": "vertical",
@@ -3167,7 +3252,6 @@ const style$b = {
3167
3252
  "& .text": {
3168
3253
  width: "50%",
3169
3254
  maxWidth: "400px",
3170
- // minWidth: "330px",
3171
3255
  "@media (max-width: 799px)": {
3172
3256
  width: "auto",
3173
3257
  margin: "auto",
@@ -3176,17 +3260,17 @@ const style$b = {
3176
3260
  "& .title": {
3177
3261
  fontSize: "var(--sl-font-size-large)",
3178
3262
  fontWeight: "var(--sl-font-weight-semibold)",
3179
- color: "var(--sl-color-neutral-1000)",
3263
+ color: "var(--sqm-text)",
3180
3264
  },
3181
3265
  "& .points": {
3182
3266
  fontSize: "var(--sl-font-size-large)",
3183
3267
  fontWeight: "var(--sl-font-weight-semibold)",
3184
- color: "var(--sl-color-primary-500)",
3268
+ color: "var(--sqm-accent-color-text)",
3185
3269
  },
3186
3270
  "& .description": {
3187
3271
  fontSize: "var(--sl-font-size-medium)",
3188
3272
  fontWeight: "var(--sl-font-weight-normal)",
3189
- color: "var(--sl-color-neutral-500)",
3273
+ color: "var(--sqm-text-subdued)",
3190
3274
  margin: "var(--sl-spacing-medium) 0",
3191
3275
  lineHeight: "var(--sl-line-height-dense)",
3192
3276
  marginTop: "var(--sl-spacing-xx-small)",
@@ -3195,14 +3279,14 @@ const style$b = {
3195
3279
  marginBottom: "var(--sl-spacing-xxx-large)",
3196
3280
  },
3197
3281
  "& sl-menu-item[disabled]::part(label)": {
3198
- color: "var(--sl-color-neutral-300)",
3282
+ color: "var(sqm-text-subdued)",
3199
3283
  },
3200
3284
  "& sl-menu-item[disabled]": {
3201
3285
  "& .step-cost": {
3202
- color: "var(--sl-color-neutral-300)",
3286
+ color: "var(sqm-text-subdued)",
3203
3287
  },
3204
3288
  "& .step-value": {
3205
- color: "var(--sl-color-neutral-300)",
3289
+ color: "var(sqm-text-subdued)",
3206
3290
  },
3207
3291
  },
3208
3292
  },
@@ -3210,16 +3294,16 @@ const style$b = {
3210
3294
  display: "flex",
3211
3295
  flexDirection: "column",
3212
3296
  "&::part(label)": {
3213
- color: "var(--sl-color-neutral-900)",
3297
+ color: "var(--sqm-text)",
3214
3298
  margin: "0",
3215
3299
  },
3216
3300
  "& .step-cost": {
3217
- color: "var(--sl-color-neutral-500)",
3301
+ color: "var(--sqm-text-subdued)",
3218
3302
  marginBottom: "var(--sl-spacing-x-small)",
3219
3303
  },
3220
3304
  "& .step-unavailable": {
3221
3305
  fontSize: "var(--sl-font-size-small)",
3222
- color: "var(--sl-color-warning-500)",
3306
+ color: "var(--sqm-warning-color-text)",
3223
3307
  margin: "0",
3224
3308
  },
3225
3309
  },
@@ -3228,10 +3312,10 @@ const style$b = {
3228
3312
  "& .title": {
3229
3313
  fontSize: "var(--sl-font-size-large)",
3230
3314
  fontWeight: "var(--sl-font-weight-semibold)",
3231
- color: "var(--sl-color-neutral-1000)",
3315
+ color: "var(--sqm-text)",
3232
3316
  },
3233
3317
  "& .description": {
3234
- color: "var(--sl-color-neutral-400)",
3318
+ color: "var(--sqm-text-subued)",
3235
3319
  maxWidth: "350px",
3236
3320
  margin: "0 auto",
3237
3321
  lineHeight: "var(--sl-line-height-dense)",
@@ -3242,7 +3326,7 @@ const style$b = {
3242
3326
  maxWidth: "350px",
3243
3327
  margin: "-30px auto var(--sl-spacing-xxx-large) auto",
3244
3328
  textAlign: "left",
3245
- color: "var(--sl-color-neutral-700)",
3329
+ color: "var(--sqm-text-subdued)",
3246
3330
  },
3247
3331
  },
3248
3332
  Grid: {
@@ -3284,10 +3368,9 @@ const style$b = {
3284
3368
  },
3285
3369
  "& .field": {
3286
3370
  width: "30%",
3287
- textTransform: "uppercase",
3288
3371
  fontSize: "var(--sl-font-size-medium)",
3289
3372
  fontWeight: "var(--sl-font-weight-normal)",
3290
- color: "var(--sl-color-neutral-400)",
3373
+ color: "var(--sqm-text-subdued)",
3291
3374
  textAlign: "left",
3292
3375
  paddingRight: "var(--sl-spacing-xxx-large)",
3293
3376
  "@media (max-width: 499px)": {
@@ -3301,7 +3384,7 @@ const style$b = {
3301
3384
  fontWeight: "var(--sl-font-weight-semibold)",
3302
3385
  },
3303
3386
  "& .top-border": {
3304
- borderTop: "1px solid var(--sl-color-neutral-200)",
3387
+ borderTop: "var(--sqm-border-thickness) solid var(--sqm-border-color)",
3305
3388
  },
3306
3389
  "& .image": {
3307
3390
  width: "200px",
@@ -3317,10 +3400,6 @@ const style$b = {
3317
3400
  "& .cancel": {
3318
3401
  marginLeft: "auto",
3319
3402
  marginRight: "var(--sl-spacing-medium)",
3320
- "&::part(base)": {
3321
- fontWeight: "var(--sl-font-weight-normal)",
3322
- color: "var(--sl-color-neutral-1000)",
3323
- },
3324
3403
  "@media (max-width: 499px)": {
3325
3404
  width: "100%",
3326
3405
  marginRight: "0",
@@ -3328,12 +3407,6 @@ const style$b = {
3328
3407
  },
3329
3408
  },
3330
3409
  "& .continue": {
3331
- "&::part(base)": {
3332
- background: "var(--sl-color-primary-500)",
3333
- borderColor: "var(--sl-color-primary-500)",
3334
- fontWeight: "var(--sl-font-weight-normal)",
3335
- color: "var(--sl-color-neutral-0)",
3336
- },
3337
3410
  "@media (max-width: 499px)": {
3338
3411
  width: "100%",
3339
3412
  },
@@ -3356,8 +3429,8 @@ const style$b = {
3356
3429
  },
3357
3430
  };
3358
3431
  // JSS config
3359
- const sheet$b = JSS.createStyleSheet(style$b);
3360
- const styleString$b = sheet$b.toString();
3432
+ const sheet$8 = JSS.createStyleSheet(style$8);
3433
+ const styleString$8 = sheet$8.toString();
3361
3434
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
3362
3435
  function RewardExchangeView(props) {
3363
3436
  const { states, data, callbacks, refs } = props;
@@ -3380,7 +3453,7 @@ function RewardExchangeView(props) {
3380
3453
  sourceUnit: item.sourceUnit,
3381
3454
  })));
3382
3455
  }
3383
- 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) => {
3456
+ 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) => {
3384
3457
  var _a, _b, _c, _d, _e;
3385
3458
  return callbacks.setExchangeState({
3386
3459
  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,
@@ -3388,7 +3461,7 @@ function RewardExchangeView(props) {
3388
3461
  });
3389
3462
  } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
3390
3463
  var _a, _b;
3391
- return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$b.classes.SelectItem },
3464
+ return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$8.classes.SelectItem },
3392
3465
  step.prettyDestinationValue,
3393
3466
  index.h("br", null),
3394
3467
  index.h("div", { class: "step-cost", slot: "suffix" },
@@ -3407,17 +3480,18 @@ function RewardExchangeView(props) {
3407
3480
  var _a;
3408
3481
  return [
3409
3482
  index.h("div", { part: "choose-reward-container" },
3410
- index.h("div", { class: sheet$b.classes.Title }, states.content.text.rewardTitle),
3411
- 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) => {
3483
+ index.h("div", { class: sheet$8.classes.Title }, states.content.text.rewardTitle),
3484
+ 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) => {
3412
3485
  var _a, _b, _c, _d, _e;
3413
3486
  const style = {
3414
3487
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
3415
- ? "0 0 0 2px var(--sl-color-primary-500)"
3488
+ ? "0 0 0 2px var(--sqm-primary-color)"
3416
3489
  : "none",
3417
- borderRadius: "4px",
3490
+ borderRadius: "var(--sqm-border-radius-normal)",
3491
+ borderColor: "none",
3418
3492
  };
3419
3493
  return (index.h("div", { key: item.key, style: style },
3420
- index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$b.classes.Card, style: {
3494
+ index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$8.classes.Card, style: {
3421
3495
  cursor: item.unavailableReasonCode
3422
3496
  ? "not-allowed"
3423
3497
  : "pointer",
@@ -3434,14 +3508,14 @@ function RewardExchangeView(props) {
3434
3508
  ? "rgba(0, 0, 0, 0.05)"
3435
3509
  : "rgba(0, 0, 0, 0)",
3436
3510
  } },
3437
- index.h("div", { class: sheet$b.classes.Image, style: {
3511
+ index.h("div", { class: sheet$8.classes.Image, style: {
3438
3512
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3439
3513
  } },
3440
3514
  index.h("img", { class: item.unavailableReasonCode
3441
3515
  ? "image subdued"
3442
3516
  : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
3443
3517
  index.getAssetPath("./assets/Reward-image.png") })),
3444
- index.h("div", { class: sheet$b.classes.TextArea, style: {
3518
+ index.h("div", { class: sheet$8.classes.TextArea, style: {
3445
3519
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3446
3520
  } },
3447
3521
  index.h("div", { class: "title", style: {
@@ -3474,8 +3548,8 @@ function RewardExchangeView(props) {
3474
3548
  item.prettySourceMinValue,
3475
3549
  }))))))));
3476
3550
  }))),
3477
- index.h("div", { class: sheet$b.classes.Button },
3478
- 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))),
3551
+ index.h("div", { class: sheet$8.classes.Button },
3552
+ 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))),
3479
3553
  ];
3480
3554
  }
3481
3555
  function chooseAmount() {
@@ -3485,7 +3559,7 @@ function RewardExchangeView(props) {
3485
3559
  ? false
3486
3560
  : input && !states.amount;
3487
3561
  return (index.h("div", null,
3488
- index.h("div", { class: sheet$b.classes.ChooseAmount, part: "choose-amount-container" },
3562
+ index.h("div", { class: sheet$8.classes.ChooseAmount, part: "choose-amount-container" },
3489
3563
  index.h("div", { class: "wrapper" },
3490
3564
  index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
3491
3565
  index.getAssetPath("./assets/Reward-image.png") }),
@@ -3494,16 +3568,16 @@ function RewardExchangeView(props) {
3494
3568
  ((_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)),
3495
3569
  ((_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)),
3496
3570
  index.h("div", { class: "space" }))),
3497
- index.h("div", { class: sheet$b.classes.Button },
3498
- index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3499
- index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3571
+ index.h("div", { class: sheet$8.classes.Button },
3572
+ index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "secondary", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3573
+ index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", type: "primary", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3500
3574
  }
3501
3575
  function confirmation() {
3502
3576
  const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
3503
3577
  const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
3504
3578
  return (index.h("div", null,
3505
- index.h("div", { class: sheet$b.classes.Confirmation, part: "confirmation-container" },
3506
- index.h("div", { class: sheet$b.classes.Title }, states.content.text.redeemTitle),
3579
+ index.h("div", { class: sheet$8.classes.Confirmation, part: "confirmation-container" },
3580
+ index.h("div", { class: sheet$8.classes.Title }, states.content.text.redeemTitle),
3507
3581
  index.h("div", { class: "wrapper" },
3508
3582
  index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
3509
3583
  index.h("div", { class: "reward-item-container" },
@@ -3518,13 +3592,13 @@ function RewardExchangeView(props) {
3518
3592
  index.h("div", { class: "wrapper top-border padding" },
3519
3593
  index.h("div", { class: "field" }, states.content.text.costTitle),
3520
3594
  index.h("div", { class: "value" }, cost)),
3521
- index.h("div", { class: sheet$b.classes.Button },
3522
- index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3523
- index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3595
+ index.h("div", { class: sheet$8.classes.Button },
3596
+ index.h("sl-button", { class: "cancel", type: "secondary", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3597
+ index.h("sl-button", { class: "continue", size: "large", type: "primary", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3524
3598
  }
3525
3599
  function success() {
3526
3600
  var _a, _b, _c, _d, _e, _f;
3527
- return (index.h("div", { class: sheet$b.classes.Success, part: "success-container" },
3601
+ return (index.h("div", { class: sheet$8.classes.Success, part: "success-container" },
3528
3602
  index.h(Gift$1, null),
3529
3603
  index.h(Confetti, null),
3530
3604
  index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
@@ -3539,7 +3613,7 @@ function RewardExchangeView(props) {
3539
3613
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
3540
3614
  states.content.text.promoCode,
3541
3615
  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 }))),
3542
- index.h("div", { class: sheet$b.classes.Button },
3616
+ index.h("div", { class: sheet$8.classes.Button },
3543
3617
  index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
3544
3618
  }
3545
3619
  const stages = {
@@ -3551,7 +3625,7 @@ function RewardExchangeView(props) {
3551
3625
  const currentStage = stages[states.redeemStage];
3552
3626
  function stageMap() {
3553
3627
  const stageNumber = stageList.indexOf(states.redeemStage);
3554
- return (index.h("div", { class: sheet$b.classes.ProgressBar },
3628
+ return (index.h("div", { class: sheet$8.classes.ProgressBar },
3555
3629
  index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
3556
3630
  if (stageList.indexOf(stage) <= stageNumber) {
3557
3631
  return index.h("span", { class: "text" }, stageProgressList[stage]);
@@ -3563,16 +3637,16 @@ function RewardExchangeView(props) {
3563
3637
  index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
3564
3638
  }
3565
3639
  function loading() {
3566
- return (index.h("div", { class: sheet$b.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3640
+ return (index.h("div", { class: sheet$8.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3567
3641
  return (index.h("div", null,
3568
- index.h("sl-card", { class: sheet$b.classes.Card },
3569
- index.h("div", { class: sheet$b.classes.CardLayout },
3642
+ index.h("sl-card", { class: sheet$8.classes.Card },
3643
+ index.h("div", { class: sheet$8.classes.CardLayout },
3570
3644
  index.h("div", null,
3571
3645
  index.h("sl-skeleton", { style: {
3572
3646
  width: "100px",
3573
3647
  height: "100px",
3574
3648
  margin: "9px",
3575
- "--border-radius": "4px",
3649
+ "--border-radius": "var(--sqm-border-radius-normal)",
3576
3650
  } })),
3577
3651
  index.h("div", { style: {
3578
3652
  margin: "var(--sl-spacing-small) var(--sl-spacing-small) 0 0",
@@ -3598,12 +3672,12 @@ function RewardExchangeView(props) {
3598
3672
  if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
3599
3673
  return;
3600
3674
  refs.canvasRef.current = canvas;
3601
- }, id: "my-canvas", class: sheet$b.classes.Confetti }));
3675
+ }, id: "my-canvas", class: sheet$8.classes.Confetti }));
3602
3676
  }
3603
3677
  if (states.noExchangeOptions)
3604
3678
  return states.content.text.empty;
3605
- return (index.h("div", { class: sheet$b.classes.Container, part: "sqm-base" },
3606
- index.h("style", { type: "text/css" }, styleString$b),
3679
+ return (index.h("div", { class: sheet$8.classes.Container, part: "sqm-base" },
3680
+ index.h("style", { type: "text/css" }, styleString$8),
3607
3681
  index.h("div", null,
3608
3682
  stageMap(),
3609
3683
  states.exchangeError && errorMessage(),
@@ -3664,15 +3738,14 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
3664
3738
  setStage: null,
3665
3739
  setExchangeState: null,
3666
3740
  copyFuelTankCode: null,
3667
- refs: null,
3668
3741
  },
3669
3742
  refs: null,
3670
3743
  });
3671
3744
  const baseReward = {
3672
- key: "",
3673
- name: "",
3745
+ key: "reward",
3746
+ name: "Demo Reward",
3674
3747
  description: "Description of reward. Lorem ipsum dolor sit amet, consectetur adipiscing. Id nec semper sapien dignissim rhoncus nunc.",
3675
- imageUrl: "",
3748
+ imageUrl: "https://res.cloudinary.com/saasquatch/image/upload/v1643653103/squatch-assets/default_rewards_1.png",
3676
3749
  available: true,
3677
3750
  unavailableReasonCode: null,
3678
3751
  ruleType: "FIXED_GLOBAL_REWARD",
@@ -3689,7 +3762,34 @@ const baseReward = {
3689
3762
  prettyDestinationMaxValue: null,
3690
3763
  globalRewardKey: "",
3691
3764
  destinationUnit: null,
3692
- steps: [],
3765
+ steps: [
3766
+ {
3767
+ prettyDestinationValue: "Reward Step 1",
3768
+ prettySourceValue: "50 Points",
3769
+ available: true,
3770
+ unavailableReasonCode: null,
3771
+ destinationValue: 10,
3772
+ sourceValue: 1,
3773
+ globalRewardKey: "reward1",
3774
+ rewardInput: {
3775
+ accountId: "zach",
3776
+ userId: "zach",
3777
+ },
3778
+ },
3779
+ {
3780
+ prettyDestinationValue: "Reward Step 2",
3781
+ prettySourceValue: "100 Points",
3782
+ available: false,
3783
+ unavailableReasonCode: "Not enough points",
3784
+ destinationValue: 10,
3785
+ sourceValue: 1,
3786
+ globalRewardKey: "reward1",
3787
+ rewardInput: {
3788
+ accountId: "zach",
3789
+ userId: "zach",
3790
+ },
3791
+ },
3792
+ ],
3693
3793
  };
3694
3794
  const notEnoughPoints = {
3695
3795
  available: false,
@@ -3993,108 +4093,164 @@ const empty = {
3993
4093
  ...baseResponse(null, "chooseReward", null, null, false, false, null, true),
3994
4094
  };
3995
4095
 
3996
- function CardFeedView(props, children) {
3997
- // Dependent on props, not feasiable to move out
3998
- const style = {
3999
- Container: {
4000
- columnGap: props.gap + "px",
4001
- columnWidth: props.width + "px",
4002
- "& > div": {
4003
- marginBottom: "24px",
4004
- },
4005
- },
4006
- };
4007
- const sheet = JSS.createStyleSheet(style);
4008
- const styleString = sheet.toString();
4009
- const vanillaStyle = `
4010
- :host{
4011
- display: block;
4096
+ const MessageLinkQuery = index_module.dist.gql `
4097
+ query (
4098
+ $programId: ID
4099
+ $engagementMedium: UserEngagementMedium!
4100
+ $shareMedium: ReferralShareMedium!
4101
+ ) {
4102
+ viewer {
4103
+ ... on User {
4104
+ messageLink(
4105
+ programId: $programId
4106
+ engagementMedium: $engagementMedium
4107
+ shareMedium: $shareMedium
4108
+ )
4109
+ shareLink(programId: $programId, engagementMedium: $engagementMedium)
4110
+ }
4012
4111
  }
4013
-
4014
- `;
4015
- return (index.h("div", null,
4016
- index.h("style", { type: "text/css" },
4017
- styleString,
4018
- vanillaStyle),
4019
- index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
4020
- }
4021
-
4022
- const style$c = {
4023
- HostBlock: mixins.HostBlock,
4024
- couponCodeLabel: {
4025
- margin: "var(--sl-spacing-x-small) 0",
4026
- color: "var(--sl-color-gray-500)",
4027
- fontSize: "var(--sl-font-size-small)",
4028
- },
4029
- };
4030
- const vanillaStyle$7 = `
4031
- :host{
4032
- display: block;
4033
- width: 100%;
4034
4112
  }
4035
4113
  `;
4036
- const sheet$c = JSS.createStyleSheet(style$c);
4037
- const styleString$c = sheet$c.toString();
4038
- function CouponCodeView(props) {
4039
- const error = !props.loading && props.error;
4040
- return (index.h("div", null,
4041
- index.h("style", { type: "text/css" },
4042
- styleString$c,
4043
- vanillaStyle$7),
4044
- index.h("p", { class: sheet$c.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4045
- error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
4046
- index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(copyTextView.CopyTextView, Object.assign({}, props)))));
4114
+ function NativeShare(props, directLink, undefinedErrorText, unsupportedPlatformText) {
4115
+ const title = props.sharetitle || "Share title";
4116
+ const text = props.sharetext || "Share text";
4117
+ if (directLink === "undefined") {
4118
+ return alert(undefinedErrorText);
4119
+ }
4120
+ if (window.navigator.share) {
4121
+ window.navigator
4122
+ .share({
4123
+ title,
4124
+ text,
4125
+ url: directLink,
4126
+ })
4127
+ .catch((error) => console.error("Error on web share", error));
4128
+ }
4129
+ else {
4130
+ alert(unsupportedPlatformText);
4131
+ }
4047
4132
  }
4048
-
4049
- 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))})`}
4050
-
4051
- const colorScale = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
4052
- const lScale = [
4053
- 0.95,
4054
- 0.86,
4055
- 0.76,
4056
- 0.66,
4057
- 0.56,
4058
- 0.46,
4059
- 0.39,
4060
- 0.32,
4061
- 0.25,
4062
- 0.18,
4063
- 0.15,
4064
- ];
4065
- // https://github.com/ricokahler/color2k/blob/main/src/parseToRgba.ts
4066
- const hslaRegex = /^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i;
4067
- function niceParseToHsla(color) {
4068
- const normalizedColor = color.trim();
4069
- const hslaMatch = hslaRegex.exec(normalizedColor);
4070
- if (hslaMatch) {
4071
- const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
4072
- if (t(0, 100, s) !== s)
4073
- throw new n(color);
4074
- if (t(0, 100, l) !== l)
4075
- throw new n(color);
4076
- return [h, s / 100, l, a || 1];
4133
+ function FacebookShare(directLink, messageLink, errorText) {
4134
+ if (messageLink === "undefined" || directLink === "undefined") {
4135
+ return alert(errorText);
4136
+ }
4137
+ if (typeof SquatchAndroid.shareOnFacebook !== "undefined") {
4138
+ return SquatchAndroid.shareOnFacebook(directLink, messageLink);
4139
+ }
4140
+ else {
4141
+ return GenericShare(messageLink, errorText);
4077
4142
  }
4078
- // Warning -- converts to RGB first, so is lossy
4079
- return p(color);
4080
4143
  }
4081
- function generateScale(color, name = "primary") {
4082
- const [h, s, l, a] = niceParseToHsla(color);
4083
- return lScale
4084
- .map((l) => z(h, s, l, a))
4085
- .map((color, index) => {
4086
- return `--sl-color-${name}-${colorScale[index]}: ${color};\n`;
4087
- });
4144
+ function GenericShare(messageLink, errorText) {
4145
+ return messageLink ? (window.location.href = messageLink) : alert(errorText);
4088
4146
  }
4089
- /**
4090
- * Generated a Shoelace color scale css string from a base color
4091
- *
4092
- * @param color
4093
- * @param name
4094
- * @returns
4095
- */
4096
- function autoColorScaleCss(color, name = "primary") {
4097
- return generateScale(color, name).join("\n");
4147
+ function useShareButton(props) {
4148
+ var _a, _b, _c, _d;
4149
+ const { sharetitle, sharetext, medium } = props;
4150
+ const programId = props.programId ? props.programId : index_module.H();
4151
+ const user = index_module.J();
4152
+ const engagementMedium = index_module.B();
4153
+ const variables = {
4154
+ engagementMedium,
4155
+ programId: programId,
4156
+ shareMedium: medium.toUpperCase(),
4157
+ };
4158
+ const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
4159
+ const overrideData = contextData === null || contextData === void 0 ? void 0 : contextData[medium];
4160
+ // only queries if a programId is available
4161
+ const res = index_module.wn(MessageLinkQuery, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId || overrideData !== undefined);
4162
+ const [setCopied, copiedRes] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
4163
+ 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);
4164
+ const environment = index_module.getEnvironmentSDK();
4165
+ const hide = (medium.toLocaleUpperCase() === "SMS" &&
4166
+ window.orientation === undefined) ||
4167
+ (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
4168
+ 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);
4169
+ async function onClick() {
4170
+ if (overrideData) {
4171
+ await setCopied({ referralCode: contextData.referralCode });
4172
+ contextData.refresh();
4173
+ }
4174
+ if (medium.toLocaleUpperCase() === "FACEBOOK" &&
4175
+ environment.type === "SquatchAndroid") {
4176
+ FacebookShare(directLink, messageLink, props.errorText);
4177
+ }
4178
+ else if (medium.toLocaleUpperCase() === "DIRECT") {
4179
+ NativeShare({ sharetitle, sharetext }, directLink, props.errorText, props.unsupportedPlatformText);
4180
+ }
4181
+ }
4182
+ const isPlainLink = !(medium.toLocaleUpperCase() === "FACEBOOK" &&
4183
+ environment.type === "SquatchAndroid") &&
4184
+ medium.toLocaleUpperCase() !== "DIRECT" &&
4185
+ messageLink;
4186
+ const userAgent = window.navigator.userAgent.toLowerCase(), safari = /safari/.test(userAgent), ios = /iphone|ipod|ipad/.test(userAgent);
4187
+ const openInSameTab = ios && !safari;
4188
+ return {
4189
+ ...props,
4190
+ loading: res.loading && !(overrideData === null || overrideData === void 0 ? void 0 : overrideData.messageLink),
4191
+ messageLink,
4192
+ isPlainLink,
4193
+ onClick,
4194
+ openInSameTab,
4195
+ hide,
4196
+ };
4197
+ }
4198
+
4199
+ const MessageLinkQuery$1 = index_module.dist.gql `
4200
+ query ($programId: ID, $engagementMedium: UserEngagementMedium!) {
4201
+ user: viewer {
4202
+ ... on User {
4203
+ shareLink(
4204
+ programId: $programId
4205
+ engagementMedium: $engagementMedium
4206
+ shareMedium: DIRECT
4207
+ )
4208
+ }
4209
+ }
4210
+ }
4211
+ `;
4212
+ const WIDGET_ENGAGEMENT_EVENT = index_module.dist.gql `
4213
+ mutation loadEvent($eventMeta: UserAnalyticsEvent!) {
4214
+ createUserAnalyticsEvent(eventMeta: $eventMeta)
4215
+ }
4216
+ `;
4217
+ function useShareLink(props) {
4218
+ var _a, _b;
4219
+ const { programId = index_module.H() } = props;
4220
+ const user = index_module.J();
4221
+ const engagementMedium = index_module.B();
4222
+ const contextData = index_module.Fn(useReferralCodes.REFERRAL_CODES_NAMESPACE);
4223
+ 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);
4224
+ const [sendLoadEvent] = index_module.$e(WIDGET_ENGAGEMENT_EVENT);
4225
+ const [setCopied, copiedRes] = index_module.$e(useReferralCodes.SET_CODE_COPIED);
4226
+ 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 :
4227
+ // Shown during loading
4228
+ "...";
4229
+ const [open, setOpen] = domContextHooks_module.useState(false);
4230
+ async function onClick() {
4231
+ if (contextData) {
4232
+ await setCopied({ referralCode: contextData.referralCode });
4233
+ contextData.refresh();
4234
+ }
4235
+ // Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
4236
+ // Only if called from a user-initiated event
4237
+ navigator.clipboard.writeText(copyString);
4238
+ setOpen(true);
4239
+ setTimeout(() => setOpen(false), props.tooltiplifespan);
4240
+ sendLoadEvent({
4241
+ eventMeta: {
4242
+ programId,
4243
+ id: user === null || user === void 0 ? void 0 : user.id,
4244
+ accountId: user === null || user === void 0 ? void 0 : user.accountId,
4245
+ type: "USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT",
4246
+ meta: {
4247
+ engagementMedium,
4248
+ shareMedium: "DIRECT",
4249
+ },
4250
+ },
4251
+ });
4252
+ }
4253
+ return { ...props, onClick, open, copyString: copyString };
4098
4254
  }
4099
4255
 
4100
4256
  const map = new Map();
@@ -4155,7 +4311,6 @@ exports.ShadowViewAddon = ShadowViewAddon;
4155
4311
  exports.ShareButtonView = ShareButtonView;
4156
4312
  exports.StatContainerView = StatContainerView;
4157
4313
  exports.TaskCardView = TaskCardView;
4158
- exports.autoColorScaleCss = autoColorScaleCss;
4159
4314
  exports.chooseAmountFixed = chooseAmountFixed;
4160
4315
  exports.chooseAmountFixedNoDescription = chooseAmountFixedNoDescription;
4161
4316
  exports.chooseAmountVariable = chooseAmountVariable;