@saasquatch/mint-components 1.15.0-99 → 1.16.0-1

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