@saasquatch/mint-components 1.15.0-3 → 1.15.0-30

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 (437) hide show
  1. package/dist/cjs/{GenericTableView-a9f4ba75.js → GenericTableView-925a0842.js} +3 -3
  2. package/dist/cjs/{ShadowViewAddon-787391f7.js → ShadowViewAddon-93071495.js} +444 -411
  3. package/dist/cjs/{copy-text-view-c85acaaa.js → copy-text-view-f0702822.js} +54 -39
  4. package/dist/cjs/{email-registration-view-55b378dc.js → email-registration-view-37b44222.js} +1 -1
  5. package/dist/cjs/{global-e31dc4f5.js → global-e1930bce.js} +186 -28
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/mint-components.cjs.js +2 -2
  8. package/dist/cjs/{mixins-f7e0377a.js → mixins-4761d472.js} +6 -6
  9. package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +8 -45
  10. package/dist/cjs/{sqm-base-registration-form-view-8a2c8763.js → sqm-base-registration-form-view-1c5094d3.js} +2 -2
  11. package/dist/cjs/sqm-big-stat_41.cjs.entry.js +290 -115
  12. package/dist/cjs/{sqm-close-button-view-ea3fa23b.js → sqm-close-button-view-b297e933.js} +1 -1
  13. package/dist/cjs/sqm-close-button.cjs.entry.js +2 -2
  14. package/dist/cjs/sqm-email-verification.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-empty_4.cjs.entry.js +50 -49
  16. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +2 -2
  17. package/dist/cjs/{sqm-invoice-table-view-16ac73d0.js → sqm-invoice-table-view-2e737286.js} +1 -1
  18. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
  19. package/dist/cjs/{sqm-navigation-sidebar-item-view-6f35d2ee.js → sqm-navigation-sidebar-item-view-10b62df1.js} +18 -7
  20. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +26 -3
  21. package/dist/cjs/{sqm-navigation-sidebar-view-17111896.js → sqm-navigation-sidebar-view-38a5227a.js} +16 -6
  22. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +19 -3
  23. package/dist/cjs/sqm-pagination_3.cjs.entry.js +86 -59
  24. package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
  25. package/dist/cjs/{sqm-portal-email-verification-view-7ebb426a.js → sqm-portal-email-verification-view-d65ef736.js} +3 -3
  26. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
  27. package/dist/cjs/{sqm-portal-forgot-password-view-78f19ef9.js → sqm-portal-forgot-password-view-fdd97c18.js} +24 -17
  28. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +25 -4
  29. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +3 -3
  30. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +4 -4
  31. package/dist/cjs/{sqm-portal-login-view-761a4d8e.js → sqm-portal-login-view-8cb284d2.js} +2 -2
  32. package/dist/cjs/{sqm-portal-profile-view-33164798.js → sqm-portal-profile-view-21a99152.js} +3 -3
  33. package/dist/cjs/sqm-portal-profile.cjs.entry.js +3 -3
  34. package/dist/cjs/{sqm-portal-registration-form-view-637a4bf4.js → sqm-portal-registration-form-view-399f4eaf.js} +2 -2
  35. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +3 -3
  36. package/dist/cjs/{sqm-portal-reset-password-view-fe602822.js → sqm-portal-reset-password-view-0439a9e5.js} +2 -2
  37. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
  38. package/dist/cjs/{sqm-portal-verify-email-view-7b678f34.js → sqm-portal-verify-email-view-05f72dec.js} +2 -2
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  40. package/dist/cjs/{sqm-qr-code-view-15dfc0b6.js → sqm-qr-code-view-3da9ed28.js} +2 -7
  41. package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
  42. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +4 -6
  43. package/dist/cjs/sqm-referred-registration.cjs.entry.js +2 -2
  44. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
  45. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
  46. package/dist/cjs/sqm-stencilbook.cjs.entry.js +144 -29
  47. package/dist/cjs/sqm-tabs.cjs.entry.js +9 -4
  48. package/dist/cjs/sqm-text-span-view-ce4c0178.js +63 -0
  49. package/dist/cjs/sqm-text-span.cjs.entry.js +4 -4
  50. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +13 -0
  51. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +15 -8
  52. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +162 -2
  53. package/dist/collection/components/sqm-big-stat/useBigStat.js +10 -0
  54. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +13 -4
  55. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code-view.js +13 -13
  56. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +169 -1
  57. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +14 -6
  58. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +58 -1
  59. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +1 -1
  60. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  61. package/dist/collection/components/sqm-form-message/FormMessage.stories.js +1 -1
  62. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +3 -3
  63. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +79 -0
  64. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +37 -0
  65. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +59 -54
  66. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +197 -32
  67. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.css +2 -2
  68. package/dist/collection/components/sqm-logout-current-user/sqm-logout-current-user.js +1 -1
  69. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +1 -4
  70. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +16 -6
  71. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +83 -5
  72. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +17 -6
  73. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +233 -1
  74. package/dist/collection/components/sqm-navigation-sidebar-item/useNavigationSidebarItem.js +9 -1
  75. package/dist/collection/components/sqm-pagination/sqm-pagination-view.js +3 -3
  76. package/dist/collection/components/sqm-pagination/sqm-pagination.js +43 -0
  77. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +7 -4
  78. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +1 -1
  79. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +22 -15
  80. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +95 -2
  81. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +41 -36
  82. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame.js +103 -2
  83. package/dist/collection/components/sqm-portal-frame/usePortalFrame.js +4 -1
  84. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  85. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -1
  86. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +11 -3
  87. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +77 -2
  88. package/dist/collection/components/sqm-qr-code/sqm-qr-code-view.js +2 -7
  89. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +32 -31
  90. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +75 -0
  91. package/dist/collection/components/sqm-referral-code/ReferralCode.stories.js +3 -0
  92. package/dist/collection/components/sqm-referral-code/sqm-referral-code.js +169 -1
  93. package/dist/collection/components/sqm-referral-codes/ReferralCodes.stories.js +6 -0
  94. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes-view.js +46 -46
  95. package/dist/collection/components/sqm-referral-codes/sqm-referral-codes.js +28 -1
  96. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +0 -2
  97. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +2 -2
  98. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +3 -1
  99. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +23 -22
  100. package/dist/collection/components/sqm-share-button/sqm-share-button.js +53 -7
  101. package/dist/collection/components/sqm-share-code/sqm-share-code.js +169 -1
  102. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +12 -0
  103. package/dist/collection/components/sqm-share-link/sqm-share-link.js +171 -3
  104. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +20 -8
  105. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +110 -2
  106. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
  107. package/dist/collection/components/sqm-tabs/Tabs.stories.js +7 -0
  108. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +7 -2
  109. package/dist/collection/components/sqm-tabs/sqm-tabs.js +28 -2
  110. package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
  111. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +139 -155
  112. package/dist/collection/components/sqm-task-card/sqm-task-card.js +146 -0
  113. package/dist/collection/components/sqm-task-card/useTaskCard.js +10 -0
  114. package/dist/collection/components/sqm-text/Text.stories.js +12 -0
  115. package/dist/collection/components/sqm-text/sqm-text.js +100 -48
  116. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +44 -43
  117. package/dist/collection/components/sqm-text-span/sqm-text-span.js +51 -2
  118. package/dist/collection/components/sqm-timeline/Timeline.stories.js +8 -1
  119. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +45 -45
  120. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +52 -0
  121. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -12
  122. package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -15
  123. package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +1 -11
  124. package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +1 -2
  125. package/dist/collection/components/views/copy-text-view.js +53 -38
  126. package/dist/collection/global/mixins.js +8 -8
  127. package/dist/collection/global/styles.js +186 -28
  128. package/dist/collection/global/styles.ts +186 -28
  129. package/dist/collection/tables/GenericTableView.js +2 -2
  130. package/dist/esm/{GenericTableView-7b9087af.js → GenericTableView-cb1581d8.js} +3 -3
  131. package/dist/esm/{ShadowViewAddon-cf230f50.js → ShadowViewAddon-b6997735.js} +444 -411
  132. package/dist/esm/{copy-text-view-782137ba.js → copy-text-view-3f41072a.js} +54 -39
  133. package/dist/esm/{email-registration-view-a7818cf2.js → email-registration-view-b1c858ee.js} +1 -1
  134. package/dist/esm/{global-be1f9992.js → global-3c495429.js} +186 -28
  135. package/dist/esm/loader.js +2 -2
  136. package/dist/esm/mint-components.js +2 -2
  137. package/dist/esm/{mixins-83f90fa1.js → mixins-f750863a.js} +6 -6
  138. package/dist/esm/sqm-banking-info-form_17.entry.js +8 -45
  139. package/dist/esm/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +2 -2
  140. package/dist/esm/sqm-big-stat_41.entry.js +290 -115
  141. package/dist/esm/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  142. package/dist/esm/sqm-close-button.entry.js +2 -2
  143. package/dist/esm/sqm-email-verification.entry.js +2 -2
  144. package/dist/esm/sqm-empty_4.entry.js +50 -49
  145. package/dist/esm/sqm-instant-access-registration.entry.js +2 -2
  146. package/dist/esm/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-6d5c38fe.js} +1 -1
  147. package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
  148. package/dist/esm/{sqm-navigation-sidebar-item-view-8f1c72bc.js → sqm-navigation-sidebar-item-view-6e046743.js} +18 -7
  149. package/dist/esm/sqm-navigation-sidebar-item.entry.js +26 -3
  150. package/dist/esm/{sqm-navigation-sidebar-view-9d802b78.js → sqm-navigation-sidebar-view-f898265a.js} +16 -6
  151. package/dist/esm/sqm-navigation-sidebar.entry.js +20 -4
  152. package/dist/esm/sqm-pagination_3.entry.js +86 -59
  153. package/dist/esm/sqm-password-field.entry.js +1 -1
  154. package/dist/esm/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-ece37a13.js} +3 -3
  155. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  156. package/dist/esm/{sqm-portal-forgot-password-view-3d3182f1.js → sqm-portal-forgot-password-view-55fc0873.js} +24 -17
  157. package/dist/esm/sqm-portal-forgot-password.entry.js +25 -4
  158. package/dist/esm/sqm-portal-google-login.entry.js +3 -3
  159. package/dist/esm/sqm-portal-google-registration-form.entry.js +4 -4
  160. package/dist/esm/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-c8153720.js} +2 -2
  161. package/dist/esm/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-73cfda71.js} +3 -3
  162. package/dist/esm/sqm-portal-profile.entry.js +3 -3
  163. package/dist/esm/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +2 -2
  164. package/dist/esm/sqm-portal-registration-form.entry.js +3 -3
  165. package/dist/esm/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +2 -2
  166. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  167. package/dist/esm/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +2 -2
  168. package/dist/esm/sqm-portal-verify-email.entry.js +3 -3
  169. package/dist/esm/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +2 -7
  170. package/dist/esm/sqm-qr-code.entry.js +1 -1
  171. package/dist/esm/sqm-referral-table_11.entry.js +4 -6
  172. package/dist/esm/sqm-referred-registration.entry.js +2 -2
  173. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  174. package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
  175. package/dist/esm/sqm-stencilbook.entry.js +144 -29
  176. package/dist/esm/sqm-tabs.entry.js +9 -4
  177. package/dist/esm/sqm-text-span-view-cd3902e5.js +61 -0
  178. package/dist/esm/sqm-text-span.entry.js +4 -4
  179. package/dist/esm-es5/{GenericTableView-7b9087af.js → GenericTableView-cb1581d8.js} +1 -1
  180. package/dist/esm-es5/ShadowViewAddon-b6997735.js +1 -0
  181. package/dist/esm-es5/copy-text-view-3f41072a.js +1 -0
  182. package/dist/esm-es5/{email-registration-view-a7818cf2.js → email-registration-view-b1c858ee.js} +1 -1
  183. package/dist/esm-es5/{global-be1f9992.js → global-3c495429.js} +4 -4
  184. package/dist/esm-es5/loader.js +1 -1
  185. package/dist/esm-es5/mint-components.js +1 -1
  186. package/dist/esm-es5/mixins-f750863a.js +1 -0
  187. package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
  188. package/dist/esm-es5/{sqm-base-registration-form-view-593d4ac3.js → sqm-base-registration-form-view-d732a5df.js} +1 -1
  189. package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
  190. package/dist/esm-es5/{sqm-close-button-view-f9819751.js → sqm-close-button-view-bc2bc10e.js} +1 -1
  191. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  192. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  193. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  194. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  195. package/dist/esm-es5/{sqm-invoice-table-view-2c726568.js → sqm-invoice-table-view-6d5c38fe.js} +1 -1
  196. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  197. package/dist/esm-es5/sqm-navigation-sidebar-item-view-6e046743.js +1 -0
  198. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  199. package/dist/esm-es5/sqm-navigation-sidebar-view-f898265a.js +1 -0
  200. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  201. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  202. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-portal-email-verification-view-35b4353b.js → sqm-portal-email-verification-view-ece37a13.js} +1 -1
  204. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  205. package/dist/esm-es5/sqm-portal-forgot-password-view-55fc0873.js +1 -0
  206. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  207. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -1
  208. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  209. package/dist/esm-es5/{sqm-portal-login-view-7e49609a.js → sqm-portal-login-view-c8153720.js} +1 -1
  210. package/dist/esm-es5/{sqm-portal-profile-view-93003974.js → sqm-portal-profile-view-73cfda71.js} +1 -1
  211. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  212. package/dist/esm-es5/{sqm-portal-registration-form-view-3c1f6000.js → sqm-portal-registration-form-view-5d651c04.js} +1 -1
  213. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  214. package/dist/esm-es5/{sqm-portal-reset-password-view-54a8651f.js → sqm-portal-reset-password-view-6903828e.js} +1 -1
  215. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  216. package/dist/esm-es5/{sqm-portal-verify-email-view-b12cb894.js → sqm-portal-verify-email-view-01ac711f.js} +1 -1
  217. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  218. package/dist/esm-es5/{sqm-qr-code-view-f1d0763b.js → sqm-qr-code-view-10b8b4cb.js} +1 -1
  219. package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
  220. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  221. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  222. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  223. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  224. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  225. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  226. package/dist/esm-es5/sqm-text-span-view-cd3902e5.js +1 -0
  227. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  228. package/dist/mint-components/global/styles.ts +186 -28
  229. package/dist/mint-components/mint-components.esm.js +1 -1
  230. package/dist/mint-components/mint-components.js +1 -1
  231. package/dist/mint-components/p-042642d3.entry.js +1 -0
  232. package/dist/mint-components/{p-91ab3da1.js → p-057f5402.js} +1 -1
  233. package/dist/mint-components/{p-e5d0375e.system.js → p-0df294ad.system.js} +1 -1
  234. package/dist/mint-components/p-10586a3f.js +1 -0
  235. package/dist/mint-components/{p-99ad7d56.system.js → p-223dd3f7.system.js} +1 -1
  236. package/dist/mint-components/p-24cedc6c.system.js +1 -0
  237. package/dist/mint-components/p-2927748b.system.js +1 -0
  238. package/dist/mint-components/{p-837a0fdd.js → p-294f6682.js} +1 -1
  239. package/dist/mint-components/{p-aad32fb6.system.js → p-38de17fa.system.js} +1 -1
  240. package/dist/mint-components/p-3a21f8f9.system.entry.js +1 -0
  241. package/dist/mint-components/{p-19bc3406.system.entry.js → p-3e4e74a2.system.entry.js} +1 -1
  242. package/dist/mint-components/{p-164a9103.system.entry.js → p-41d051b1.system.entry.js} +1 -1
  243. package/dist/mint-components/{p-90fc6774.system.entry.js → p-457962b7.system.entry.js} +1 -1
  244. package/dist/mint-components/p-46a672e4.entry.js +1 -0
  245. package/dist/mint-components/p-49b20dae.js +1 -0
  246. package/dist/mint-components/{p-380bfde1.entry.js → p-4b42b756.entry.js} +1 -1
  247. package/dist/mint-components/{p-2dca9e1a.system.js → p-4b9789a2.system.js} +1 -1
  248. package/dist/mint-components/p-4e4b84bb.system.entry.js +1 -0
  249. package/dist/mint-components/{p-b75bb6e3.system.js → p-505951d2.system.js} +1 -1
  250. package/dist/mint-components/p-54b0b768.system.js +1 -0
  251. package/dist/mint-components/p-56f3427d.system.js +1 -0
  252. package/dist/mint-components/{p-10d17989.entry.js → p-576d3b4a.entry.js} +1 -1
  253. package/dist/mint-components/{p-5d7e308c.system.entry.js → p-5973487a.system.entry.js} +1 -1
  254. package/dist/mint-components/p-5c5964e0.js +1 -0
  255. package/dist/mint-components/p-5d407714.system.entry.js +1 -0
  256. package/dist/mint-components/{p-a2fde301.entry.js → p-5ef6de10.entry.js} +1 -1
  257. package/dist/mint-components/{p-ff8b8067.entry.js → p-61dec887.entry.js} +1 -1
  258. package/dist/mint-components/p-66a2b1a4.js +1 -0
  259. package/dist/mint-components/p-6798cad1.system.js +1 -0
  260. package/dist/mint-components/{p-65069b66.js → p-69d60453.js} +22 -22
  261. package/dist/mint-components/p-6b0fa3a2.entry.js +1 -0
  262. package/dist/mint-components/{p-50c902ca.system.entry.js → p-6e1acebb.system.entry.js} +1 -1
  263. package/dist/mint-components/{p-57eef0af.entry.js → p-708f58e8.entry.js} +6 -6
  264. package/dist/mint-components/p-71168e62.entry.js +258 -0
  265. package/dist/mint-components/{p-92816d1f.js → p-72ff8268.js} +1 -1
  266. package/dist/mint-components/p-74afdafb.system.js +1 -0
  267. package/dist/mint-components/{p-0d182dc1.system.js → p-79947589.system.js} +1 -1
  268. package/dist/mint-components/{p-0c78815e.system.entry.js → p-7cbec088.system.entry.js} +1 -1
  269. package/dist/mint-components/p-804ee38a.system.entry.js +1 -0
  270. package/dist/mint-components/{p-7a9290ba.js → p-82113e37.js} +1 -1
  271. package/dist/mint-components/p-83e1c41c.entry.js +13 -0
  272. package/dist/mint-components/{p-3f067fd5.js → p-850d59f3.js} +1 -1
  273. package/dist/mint-components/{p-0d2d0b6d.entry.js → p-865f812e.entry.js} +1 -1
  274. package/dist/mint-components/p-8692e7a5.entry.js +144 -0
  275. package/dist/mint-components/{p-42187319.system.entry.js → p-884ac29e.system.entry.js} +1 -1
  276. package/dist/mint-components/p-893d7ab4.js +1 -0
  277. package/dist/mint-components/p-8a6494c7.system.js +1 -0
  278. package/dist/mint-components/p-8c4992d3.js +1 -0
  279. package/dist/mint-components/{p-00ed4c2e.entry.js → p-8e93e590.entry.js} +1 -1
  280. package/dist/mint-components/p-8feb4180.entry.js +1 -0
  281. package/dist/mint-components/p-906e04ba.system.entry.js +1 -0
  282. package/dist/mint-components/{p-dbcb5359.js → p-9438e80a.js} +1 -1
  283. package/dist/mint-components/{p-cbbfac66.entry.js → p-97428eb3.entry.js} +2 -2
  284. package/dist/mint-components/p-9acf0b39.system.entry.js +1 -0
  285. package/dist/mint-components/p-9f2edf59.system.js +1 -0
  286. package/dist/mint-components/{p-6055eb4c.system.js → p-a1091368.system.js} +1 -1
  287. package/dist/mint-components/{p-4428294b.entry.js → p-a3e68251.entry.js} +1 -1
  288. package/dist/mint-components/p-a572db9b.system.entry.js +1 -0
  289. package/dist/mint-components/p-a5bc3f7b.system.entry.js +1 -0
  290. package/dist/mint-components/{p-7f80a9d7.entry.js → p-a60d5315.entry.js} +1 -1
  291. package/dist/mint-components/{p-53730ffe.entry.js → p-a81b507f.entry.js} +3 -3
  292. package/dist/mint-components/{p-21620f81.system.entry.js → p-a86f2006.system.entry.js} +1 -1
  293. package/dist/mint-components/{p-bbcd824a.js → p-a87b265e.js} +1 -1
  294. package/dist/mint-components/{p-f4a8ee29.system.entry.js → p-af516659.system.entry.js} +1 -1
  295. package/dist/mint-components/{p-2f101bae.entry.js → p-b6761073.entry.js} +1 -1
  296. package/dist/mint-components/p-b6de39a2.entry.js +1 -0
  297. package/dist/mint-components/p-b80891a8.entry.js +1 -0
  298. package/dist/mint-components/p-ba3e2d27.system.entry.js +1 -0
  299. package/dist/mint-components/{p-9bfd9bed.system.entry.js → p-bb6e411d.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-b287833c.system.entry.js → p-c16dada5.system.entry.js} +1 -1
  301. package/dist/mint-components/{p-a7746488.system.js → p-c4d80117.system.js} +1 -1
  302. package/dist/mint-components/{p-91959fbe.js → p-c96a25c6.js} +1 -1
  303. package/dist/mint-components/{p-1a6b7d2a.entry.js → p-cd0ee247.entry.js} +1 -1
  304. package/dist/mint-components/{p-0ebab63e.system.js → p-ceecfa65.system.js} +1 -1
  305. package/dist/mint-components/{p-9386ad84.system.entry.js → p-d12e9cfd.system.entry.js} +1 -1
  306. package/dist/mint-components/{p-35b475bf.js → p-d1ae7a2d.js} +1 -1
  307. package/dist/mint-components/{p-d07f3090.entry.js → p-d1b5f5b0.entry.js} +1 -1
  308. package/dist/mint-components/{p-5c28406d.system.entry.js → p-d5b3397c.system.entry.js} +1 -1
  309. package/dist/mint-components/p-d6352d15.js +1 -0
  310. package/dist/mint-components/p-db45cc4c.js +394 -0
  311. package/dist/mint-components/{p-ef6381d4.entry.js → p-de7e83b3.entry.js} +2 -2
  312. package/dist/mint-components/p-e09a3d73.system.entry.js +1 -0
  313. package/dist/mint-components/p-e1e62d55.entry.js +1 -0
  314. package/dist/mint-components/{p-4794641c.system.js → p-e2705fbe.system.js} +1 -1
  315. package/dist/mint-components/p-e309a219.js +1 -0
  316. package/dist/mint-components/{p-f940190a.js → p-e518a60d.js} +1 -1
  317. package/dist/mint-components/{p-f2d8d3d3.system.entry.js → p-e80f9e26.system.entry.js} +1 -1
  318. package/dist/mint-components/{p-f0772618.system.entry.js → p-e8ed71cf.system.entry.js} +1 -1
  319. package/dist/mint-components/{p-775f3ded.entry.js → p-f0fdbd82.entry.js} +1 -1
  320. package/dist/mint-components/{p-bdb7d451.system.js → p-f6db346b.system.js} +12 -12
  321. package/dist/mint-components/p-f80ab10b.entry.js +13 -0
  322. package/dist/mint-components/p-f84d2ed0.system.entry.js +1 -0
  323. package/dist/mint-components/p-fdaa4dbb.system.entry.js +1 -0
  324. package/dist/mint-components/{p-cd569259.system.js → p-fdba347c.system.js} +1 -1
  325. package/dist/mint-components/{p-f7c99803.system.js → p-ffaaec76.system.js} +1 -1
  326. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +2 -0
  327. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +5 -0
  328. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +41 -0
  329. package/dist/types/components/sqm-coupon-code/sqm-coupon-code-view.d.ts +1 -0
  330. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +42 -0
  331. package/dist/types/components/sqm-divided-layout/sqm-divided-layout-view.d.ts +4 -1
  332. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +13 -0
  333. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -0
  334. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +19 -0
  335. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
  336. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +6 -0
  337. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +48 -7
  338. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +6 -0
  339. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.d.ts +1 -0
  340. package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +14 -0
  341. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.d.ts +8 -0
  342. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +57 -0
  343. package/dist/types/components/sqm-pagination/sqm-pagination-view.d.ts +1 -0
  344. package/dist/types/components/sqm-pagination/sqm-pagination.d.ts +9 -0
  345. package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password-view.d.ts +3 -0
  346. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +7 -0
  347. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +15 -0
  348. package/dist/types/components/sqm-portal-frame/sqm-portal-frame-view.d.ts +3 -0
  349. package/dist/types/components/sqm-portal-frame/sqm-portal-frame.d.ts +19 -0
  350. package/dist/types/components/sqm-portal-frame/usePortalFrame.d.ts +2 -1
  351. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +3 -0
  352. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +20 -2
  353. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +5 -2
  354. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +20 -0
  355. package/dist/types/components/sqm-referral-code/ReferralCode.stories.d.ts +1 -0
  356. package/dist/types/components/sqm-referral-code/sqm-referral-code.d.ts +42 -0
  357. package/dist/types/components/sqm-referral-codes/ReferralCodes.stories.d.ts +1 -0
  358. package/dist/types/components/sqm-referral-codes/sqm-referral-codes-view.d.ts +1 -0
  359. package/dist/types/components/sqm-referral-codes/sqm-referral-codes.d.ts +6 -0
  360. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +1 -1
  361. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +2 -1
  362. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +15 -3
  363. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +42 -0
  364. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  365. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +43 -1
  366. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +3 -0
  367. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +23 -0
  368. package/dist/types/components/sqm-tabs/Tabs.stories.d.ts +1 -0
  369. package/dist/types/components/sqm-tabs/sqm-tabs-view.d.ts +1 -0
  370. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +8 -0
  371. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +5 -0
  372. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +32 -0
  373. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +9 -0
  374. package/dist/types/components/sqm-text/Text.stories.d.ts +6 -0
  375. package/dist/types/components/sqm-text/sqm-text.d.ts +12 -0
  376. package/dist/types/components/sqm-text-span/sqm-text-span-view.d.ts +4 -2
  377. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +13 -1
  378. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +1 -0
  379. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +2 -0
  380. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +14 -0
  381. package/dist/types/components/views/copy-text-view.d.ts +5 -0
  382. package/dist/types/components.d.ts +1112 -15
  383. package/dist/types/global/mixins.d.ts +12 -12
  384. package/dist/types/global/styles.d.ts +1 -1
  385. package/docs/docs.docx +0 -0
  386. package/docs/raisins.json +1 -1
  387. package/grapesjs/grapesjs.js +1 -1
  388. package/package.json +1 -1
  389. package/dist/cjs/sqm-text-span-view-0aa82125.js +0 -62
  390. package/dist/esm/sqm-text-span-view-ca32495e.js +0 -60
  391. package/dist/esm-es5/ShadowViewAddon-cf230f50.js +0 -1
  392. package/dist/esm-es5/copy-text-view-782137ba.js +0 -1
  393. package/dist/esm-es5/mixins-83f90fa1.js +0 -1
  394. package/dist/esm-es5/sqm-navigation-sidebar-item-view-8f1c72bc.js +0 -1
  395. package/dist/esm-es5/sqm-navigation-sidebar-view-9d802b78.js +0 -1
  396. package/dist/esm-es5/sqm-portal-forgot-password-view-3d3182f1.js +0 -1
  397. package/dist/esm-es5/sqm-text-span-view-ca32495e.js +0 -1
  398. package/dist/mint-components/p-116baa69.entry.js +0 -258
  399. package/dist/mint-components/p-141bf5c1.system.entry.js +0 -1
  400. package/dist/mint-components/p-1f089c3f.system.entry.js +0 -1
  401. package/dist/mint-components/p-24db5c70.js +0 -1
  402. package/dist/mint-components/p-2da21ba4.entry.js +0 -1
  403. package/dist/mint-components/p-31015791.js +0 -1
  404. package/dist/mint-components/p-37996351.system.js +0 -1
  405. package/dist/mint-components/p-38e5c429.system.js +0 -1
  406. package/dist/mint-components/p-3b90e01b.system.js +0 -1
  407. package/dist/mint-components/p-3db34d68.js +0 -1
  408. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  409. package/dist/mint-components/p-420554af.system.entry.js +0 -1
  410. package/dist/mint-components/p-492b70db.system.js +0 -1
  411. package/dist/mint-components/p-4e773bb1.system.entry.js +0 -1
  412. package/dist/mint-components/p-562428ef.system.js +0 -1
  413. package/dist/mint-components/p-5cb7f9fc.system.entry.js +0 -1
  414. package/dist/mint-components/p-626e9e84.js +0 -1
  415. package/dist/mint-components/p-635d5ef2.system.js +0 -1
  416. package/dist/mint-components/p-63a75798.js +0 -1
  417. package/dist/mint-components/p-653f963f.entry.js +0 -13
  418. package/dist/mint-components/p-693942df.entry.js +0 -144
  419. package/dist/mint-components/p-6cc141b9.js +0 -394
  420. package/dist/mint-components/p-7846937e.entry.js +0 -13
  421. package/dist/mint-components/p-7ab21e4d.entry.js +0 -1
  422. package/dist/mint-components/p-85671c3d.system.entry.js +0 -1
  423. package/dist/mint-components/p-91521e9d.js +0 -1
  424. package/dist/mint-components/p-b207beeb.entry.js +0 -1
  425. package/dist/mint-components/p-b82e1935.system.entry.js +0 -1
  426. package/dist/mint-components/p-c060f770.system.entry.js +0 -1
  427. package/dist/mint-components/p-c9f1dde7.js +0 -1
  428. package/dist/mint-components/p-cb7bdbe4.entry.js +0 -1
  429. package/dist/mint-components/p-cd1d497f.system.js +0 -1
  430. package/dist/mint-components/p-daee25f9.system.entry.js +0 -1
  431. package/dist/mint-components/p-dcc81e90.entry.js +0 -1
  432. package/dist/mint-components/p-de8e9981.system.entry.js +0 -1
  433. package/dist/mint-components/p-e07bc6c4.system.js +0 -1
  434. package/dist/mint-components/p-e5a5ae7f.system.entry.js +0 -1
  435. package/dist/mint-components/p-e6f50ffd.entry.js +0 -1
  436. package/dist/mint-components/p-f56bedd5.js +0 -1
  437. package/dist/mint-components/p-fe2e2f4a.entry.js +0 -1
@@ -1,16 +1,16 @@
1
1
  import { h, c as Host, d as getAssetPath, g as getElement } from './index-91e7729f.js';
2
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';
3
+ import { i as intl } from './global-3c495429.js';
4
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
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
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';
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-3f41072a.js';
11
11
  import { u as useChildElements } from './useChildElements-7945ae56.js';
12
12
  import { l as luxon } from './luxon-8d51c92b.js';
13
- import { T as TextSpanView } from './sqm-text-span-view-ca32495e.js';
13
+ import { T as TextSpanView } from './sqm-text-span-view-cd3902e5.js';
14
14
  import { p as pathToRegexp } from './index-ffa26b43.js';
15
15
  import { a as isValidColor, b as isMobile } from './utilities-5b0ca040.js';
16
16
  import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-1683ae32.js';
@@ -38,15 +38,30 @@ const style = {
38
38
  };
39
39
  const sheet = createStyleSheet(style);
40
40
  const styleString = sheet.toString();
41
+ // TODO: Figure out hover and active states
42
+ // *::part(base):hover {
43
+ // border-color: ${
44
+ // props.backgroundcolor
45
+ // ? props.backgroundcolor
46
+ // : props.medium
47
+ // ? medium[props.medium].color
48
+ // : ""
49
+ // }!important;
50
+ // }
51
+ // *::part(base):focus {
52
+ // border-color: ${
53
+ // props.backgroundcolor
54
+ // ? props.backgroundcolor
55
+ // : props.medium
56
+ // ? medium[props.medium].color
57
+ // : ""
58
+ // }!important;
59
+ // }
41
60
  function ShareButtonView(props, children) {
42
61
  const vanillaStyle = `
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;
62
+ sl-button::part(base) {
63
+ border: ${props.border || "none"};
64
+
50
65
 
51
66
  background: ${props.backgroundcolor
52
67
  ? props.backgroundcolor
@@ -61,21 +76,7 @@ function ShareButtonView(props, children) {
61
76
  border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
62
77
  }
63
78
 
64
- *::part(base):hover {
65
- border-color: ${props.backgroundcolor
66
- ? props.backgroundcolor
67
- : props.medium
68
- ? medium[props.medium].color
69
- : ""}D1!important;
70
- }
71
79
 
72
- *::part(base):focus {
73
- border-color: ${props.backgroundcolor
74
- ? props.backgroundcolor
75
- : props.medium
76
- ? medium[props.medium].color
77
- : ""}D1!important;
78
- }
79
80
 
80
81
  *::part(label) {
81
82
  position: relative;
@@ -85,77 +86,82 @@ function ShareButtonView(props, children) {
85
86
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
86
87
  h("style", { type: "text/css" }, styleString),
87
88
  h("style", { type: "text/css" }, vanillaStyle),
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` },
89
+ 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` },
89
90
  !props.hideicon && (h("sl-icon", { slot: props.iconslot || "prefix", name: props.icon ? props.icon : medium[props.medium].icon, exportparts: "base: icon" })),
90
91
  !props.hidetext && children)));
91
92
  }
92
93
 
93
- const style$1 = {
94
- Leaderboard: {
95
- "& table": {
96
- width: "100%",
97
- borderCollapse: "collapse",
98
- },
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)",
105
- },
106
- "& tr:not(:first-child)": {
107
- borderTop: "1px solid var(--sl-color-neutral-200)",
108
- },
109
- "& td": {
110
- fontSize: "var(--sl-font-size-medium)",
111
- fontWeight: "var(--sl-font-weight-normal)",
112
- },
113
- "& .ellipses": {
114
- textAlign: "left",
115
- padding: "0",
116
- color: "var(--sl-color-neutral-500)",
117
- paddingLeft: "25%",
118
- },
119
- "& .highlight": {
120
- background: "var(--sl-color-primary-50)",
121
- },
122
- "& td, th": {
123
- color: "var(--sl-color-gray-800)",
124
- padding: "var(--sl-spacing-medium)",
125
- },
126
- "& .User": {
127
- width: "100%",
128
- },
129
- "& .Score": {
130
- width: "auto",
131
- whiteSpace: "nowrap",
132
- },
133
- "& .Rank": {
134
- whiteSpace: "nowrap",
135
- },
136
- "& .fullWidth": {
137
- width: "100%",
94
+ function LeaderboardView(props) {
95
+ var _a, _b, _c;
96
+ const { states, data, elements } = props;
97
+ const { styles } = states;
98
+ const style = {
99
+ Leaderboard: {
100
+ "& table": {
101
+ width: "100%",
102
+ borderCollapse: "collapse",
103
+ background: styles.background || "transparent",
104
+ borderRadius: styles.borderRadius ? `${styles.borderRadius}px` : "0",
105
+ },
106
+ "& th": {
107
+ textAlign: "left",
108
+ padding: "var(--sl-spacing-medium)",
109
+ paddingTop: "0",
110
+ fontSize: "var(--sl-font-size-medium)",
111
+ fontWeight: "var(--sl-font-weight-semibold)",
112
+ },
113
+ "& tr:not(:first-child)": {
114
+ borderTop: `1px solid ${styles.borderColor || "var(--sl-color-neutral-200)"}`,
115
+ },
116
+ "& td": {
117
+ fontSize: "var(--sl-font-size-medium)",
118
+ fontWeight: "var(--sl-font-weight-normal)",
119
+ },
120
+ "& .ellipses": {
121
+ textAlign: "left",
122
+ padding: "0",
123
+ color: styles.textColor || "var(--sqm-text)",
124
+ paddingLeft: "25%",
125
+ },
126
+ "& .highlight": {
127
+ background: styles.viewingUserHighlightColor || "var(--sl-color-primary-200)",
128
+ "& td, th": {
129
+ color: styles.viewingUserHighlightTextColor || "var(--sqm-text)",
130
+ },
131
+ },
132
+ "& td, th": {
133
+ color: styles.textColor || "var(--sqm-text)",
134
+ padding: "var(--sl-spacing-medium)",
135
+ },
136
+ "& .User": {
137
+ width: "100%",
138
+ },
139
+ "& .Score": {
140
+ width: "auto",
141
+ whiteSpace: "nowrap",
142
+ },
143
+ "& .Rank": {
144
+ whiteSpace: "nowrap",
145
+ },
146
+ "& .fullWidth": {
147
+ width: "100%",
148
+ },
138
149
  },
139
- },
140
- };
141
- const sheet$1 = createStyleSheet(style$1);
142
- const styleString$1 = sheet$1.toString();
143
- const vanillaStyle = `
150
+ };
151
+ const sheet = createStyleSheet(style);
152
+ const styleString = sheet.toString();
153
+ const vanillaStyle = `
144
154
  :host{
145
155
  display: block;
146
156
  }
147
157
  `;
148
- function LeaderboardView(props) {
149
- var _a, _b, _c;
150
- const { states, data, elements } = props;
151
- const { styles } = states;
152
158
  if (states.isEssentials) {
153
159
  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
160
  }
155
161
  if (states.loading) {
156
- return (h("div", { class: sheet$1.classes.Leaderboard, style: { width: styles.width || "100%" } },
162
+ return (h("div", { class: sheet.classes.Leaderboard, style: { width: styles.width || "100%" } },
157
163
  h("style", { type: "text/css" },
158
- styleString$1,
164
+ styleString,
159
165
  vanillaStyle),
160
166
  h("table", null, [...Array(10)].map(() => {
161
167
  return (h("tr", null,
@@ -190,9 +196,9 @@ function LeaderboardView(props) {
190
196
  }) + `${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`
191
197
  : `${userRank} ${isViewingUsersRow && styles.hideNames ? viewingUserText : ""}`;
192
198
  };
193
- return (h("div", { class: sheet$1.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
199
+ return (h("div", { class: sheet.classes.Leaderboard, part: "sqm-base", style: { width: styles.width || "100%" } },
194
200
  h("style", { type: "text/css" },
195
- styleString$1,
201
+ styleString,
196
202
  vanillaStyle),
197
203
  h("table", { part: "sqm-table" },
198
204
  h("tr", null,
@@ -219,13 +225,13 @@ function LeaderboardView(props) {
219
225
  }
220
226
 
221
227
  function BigStatView(props) {
222
- const { statvalue, flexReverse, alignment } = props;
223
- // Dependent on props, not feasiable to move out
228
+ const { statvalue, flexReverse, alignment, statTextColor, statFontSize, descriptionTextColor, descriptionFontSize, statFontWeight, } = props;
229
+ // Dependent on props, not feasible to move out
224
230
  const style = {
225
231
  Container: {
226
232
  display: "flex",
227
- height: "inherit",
228
- "justify-content": "space-between",
233
+ // height: "inherit",
234
+ // "justify-content": "space-between",
229
235
  "flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
230
236
  "align-items": `${alignment === "left"
231
237
  ? "flex-start"
@@ -234,15 +240,22 @@ function BigStatView(props) {
234
240
  : "center"}`,
235
241
  },
236
242
  Stat: {
237
- "font-size": "var(--sl-font-size-x-large)",
243
+ "font-size": statFontSize
244
+ ? `${statFontSize}px`
245
+ : "var(--sl-font-size-xx-large)",
238
246
  "text-align": alignment,
247
+ color: statTextColor || "var(--sqm-text)",
248
+ lineHeight: "35px",
249
+ fontWeight: statFontWeight || "var(--sl-font-weight-normal)",
239
250
  },
240
251
  Description: {
241
- "font-size": "var(--sl-font-size-small)",
252
+ "font-size": descriptionFontSize
253
+ ? `${descriptionFontSize}px`
254
+ : "var(--sl-font-size-small)",
242
255
  "font-weight": "var(--sl-font-weight-normal)",
243
- color: "var(--sl-color-gray-600)",
244
- "text-transform": "uppercase",
256
+ color: descriptionTextColor || "var(--sqm-text)",
245
257
  "text-align": alignment,
258
+ lineHeight: "20px",
246
259
  },
247
260
  };
248
261
  const sheet = createStyleSheet(style);
@@ -253,51 +266,56 @@ function BigStatView(props) {
253
266
  h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
254
267
  }
255
268
 
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",
269
+ function PortalFrameView(props, children) {
270
+ const { data, notFullScreen, border } = props;
271
+ const style = {
272
+ HostBlock: HostBlock,
273
+ Frame: {
274
+ display: "flex",
275
+ "flex-direction": "column",
276
+ "box-sizing": "border-box",
277
+ "&:nth-child(2)": {
278
+ background: props.backgroundColor,
279
+ },
280
+ },
281
+ FooterWrapper: {
282
+ width: "100%",
283
+ "max-width": "100%",
284
+ padding: "var(--sl-spacing-medium) var(--sl-spacing-x-large)",
285
+ background: props.headerAndFooterBackgroundColor,
286
+ display: "flex",
285
287
  "justify-content": "flex-end",
286
- padding: "0",
288
+ "align-items": "center",
289
+ "box-sizing": "border-box",
290
+ borderTop: border,
291
+ "margin-top": "auto",
287
292
  },
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" },
293
+ HeaderWrapper: {
294
+ width: "100%",
295
+ "max-width": "100%",
296
+ "box-sizing": "border-box",
297
+ display: "flex",
298
+ "justify-content": "space-between",
299
+ padding: "var(--sl-spacing-small) var(--sl-spacing-large)",
300
+ "align-items": "center",
301
+ borderBottom: border,
302
+ background: props.headerAndFooterBackgroundColor,
303
+ "@media screen and (max-width: 499px)": {
304
+ "flex-direction": "row-reverse",
305
+ "justify-content": "flex-end",
306
+ padding: "0",
307
+ },
308
+ },
309
+ };
310
+ const sheet = createStyleSheet(style);
311
+ const styleString = sheet.toString();
312
+ return (h("div", { style: { minHeight: notFullScreen ? "100%" : "100vh" }, class: sheet.classes.Frame, part: "sqm-base" },
313
+ h("style", { type: "text/css" }, styleString),
314
+ h("div", { class: sheet.classes.HeaderWrapper, part: "sqm-header" },
297
315
  data.header,
298
316
  h("slot", { name: "sqm-navigation-menu" })),
299
317
  children,
300
- h("div", { class: sheet$2.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
318
+ h("div", { class: sheet.classes.FooterWrapper, part: "sqm-footer" }, data.footer)));
301
319
  }
302
320
 
303
321
  const EditProfileView = (props) => {
@@ -333,7 +351,7 @@ const EditProfileView = (props) => {
333
351
  }, submit: true, exportparts: "base: primarybutton-base" }, text.updatetext),
334
352
  h("sl-button", { onClick: () => {
335
353
  callbacks.setShowEdit(false);
336
- }, exportparts: "base: defaultbutton-base" }, text.canceltext)))));
354
+ }, exportparts: "base: secondarybutton-base" }, text.canceltext)))));
337
355
  }
338
356
  return (h("div", { class: `CardWrapper FormWrapper ${!states.showEdit && "ShowEdit"}`, part: "sqm-base" },
339
357
  h("div", { class: "FormSection" },
@@ -1400,6 +1418,11 @@ function useBigStat(props) {
1400
1418
  flexReverse,
1401
1419
  alignment,
1402
1420
  loading: false,
1421
+ statTextColor: props.statTextColor,
1422
+ statFontSize: props.statFontSize,
1423
+ descriptionTextColor: props.descriptionTextColor,
1424
+ descriptionFontSize: props.descriptionFontSize,
1425
+ statFontWeight: props.statFontWeight,
1403
1426
  },
1404
1427
  label: "BAD PROP TYPE",
1405
1428
  };
@@ -1429,6 +1452,11 @@ function useBigStat(props) {
1429
1452
  loading: stat === null || stat === void 0 ? void 0 : stat.loading,
1430
1453
  flexReverse,
1431
1454
  alignment,
1455
+ statTextColor: props.statTextColor,
1456
+ statFontSize: props.statFontSize,
1457
+ descriptionTextColor: props.descriptionTextColor,
1458
+ descriptionFontSize: props.descriptionFontSize,
1459
+ statFontWeight: props.statFontWeight,
1432
1460
  },
1433
1461
  label,
1434
1462
  };
@@ -1445,8 +1473,12 @@ function useDemoBigStat(props) {
1445
1473
  value: 0,
1446
1474
  statvalue: "!!!",
1447
1475
  loading: false,
1448
- flexReverse: false,
1449
- alignment: "center",
1476
+ flexReverse: props.flexReverse,
1477
+ alignment: props.alignment,
1478
+ statTextColor: props.statTextColor,
1479
+ statFontSize: props.statFontSize,
1480
+ descriptionTextColor: props.descriptionTextColor,
1481
+ descriptionFontSize: props.descriptionFontSize,
1450
1482
  },
1451
1483
  label: "BAD PROP TYPE",
1452
1484
  };
@@ -1458,8 +1490,13 @@ function useDemoBigStat(props) {
1458
1490
  props: cjs({
1459
1491
  statvalue: "12345",
1460
1492
  value: 0,
1461
- flexReverse: false,
1462
- alignment: "center",
1493
+ flexReverse: props.flexReverse,
1494
+ alignment: props.alignment,
1495
+ statTextColor: props.statTextColor,
1496
+ statFontSize: props.statFontSize,
1497
+ descriptionTextColor: props.descriptionTextColor,
1498
+ descriptionFontSize: props.descriptionFontSize,
1499
+ statFontWeight: props.statFontWeight,
1463
1500
  }, props.demoData || {}, { arrayMerge: (_, a) => a }),
1464
1501
  label: label !== null && label !== void 0 ? label : "Demo Label",
1465
1502
  };
@@ -1470,25 +1507,37 @@ function StatContainerView(props, children) {
1470
1507
  const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
1471
1508
  return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
1472
1509
  };
1473
- // Dependent on props, not feasiable to move out
1510
+ // take alignment variable and convert it to CSS flexbox alignment
1511
+ const alignment = props.alignment === "center"
1512
+ ? "center"
1513
+ : props.alignment === "right"
1514
+ ? "flex-end"
1515
+ : "flex-start";
1516
+ // Dependent on props, not feasible to move out
1474
1517
  const style = {
1475
1518
  StatContainer: {
1476
1519
  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
1520
+ display: "flex",
1521
+ flexWrap: "wrap",
1522
+ alignItems: "center",
1523
+ justifyContent: alignment,
1524
+ flexDirection: "row",
1525
+ gap: `var(--sl-spacing-${props.gap})`,
1526
+ // Apply border styles conditionally based on the hideBorder prop
1481
1527
  "& > *": {
1482
- "border-right": "1px solid #EAEAEA",
1528
+ "border-right": props.hideBorder
1529
+ ? "none"
1530
+ : "1px solid var(--sqm-text-subdued)",
1483
1531
  "padding-right": divideSpace(),
1484
1532
  },
1485
1533
  "& > :last-child": {
1486
1534
  "border-right": "none",
1487
1535
  },
1488
1536
  "& > ::slotted(*)": {
1489
- "border-right": "1px solid #EAEAEA",
1537
+ "border-right": props.hideBorder
1538
+ ? "none"
1539
+ : "1px solid var(--sqm-text-subdued)",
1490
1540
  "padding-right": divideSpace(),
1491
- height: "100%",
1492
1541
  },
1493
1542
  "& > ::slotted(*:last-child)": {
1494
1543
  "border-right": "none",
@@ -1522,6 +1571,10 @@ function PortalChangePasswordView(props) {
1522
1571
  const style = {
1523
1572
  Dialog: {
1524
1573
  padding: "0",
1574
+ "&::part(panel)": {
1575
+ background: "var(--sqm-portal-background)",
1576
+ borderRadius: "var(--sqm-border-radius-normal, var(--sl-border-radius-medium))",
1577
+ },
1525
1578
  "&::part(close-button)": {
1526
1579
  "margin-top": "var(--sl-spacing-medium)",
1527
1580
  },
@@ -1545,7 +1598,6 @@ function PortalChangePasswordView(props) {
1545
1598
  },
1546
1599
  },
1547
1600
  CancelButton: {
1548
- width: "25%",
1549
1601
  margin: "var(--sl-spacing-large) auto",
1550
1602
  },
1551
1603
  PasswordField: {
@@ -1575,19 +1627,19 @@ function PortalChangePasswordView(props) {
1575
1627
  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
1628
  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
1629
  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))))),
1630
+ h("sl-button", { class: sheet.classes.ChangePasswordButton, type: "primary", exportparts: "base: primarybutton-base", submit: true, loading: states.loading }, states.content.changePasswordButtonText),
1631
+ h("sl-button", { class: sheet.classes.CancelButton, type: "text", exportparts: "base: secondarybutton-base", onClick: () => callbacks.setOpen(false) }, states.content.cancelText))))),
1580
1632
  }))),
1581
1633
  h(PortalSectionView, Object.assign({}, {
1582
1634
  labelMargin: "x-large",
1583
1635
  padding: "xxx-large",
1584
1636
  label: (h(TextSpanView, Object.assign({}, { type: "h2" }), states.content.portalChangePasswordHeader)),
1585
- content: (h("sl-button", { onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
1637
+ content: (h("sl-button", { exportparts: "base: primarybutton-base", onClick: () => callbacks.setOpen(true) }, states.content.portalChangePasswordButtonText)),
1586
1638
  }),
1587
1639
  h("style", { type: "text/css" }, styleString))));
1588
1640
  }
1589
1641
 
1590
- const style$3 = {
1642
+ const style$1 = {
1591
1643
  Wrapper: { ...AuthWrapper, "max-width": "600px" },
1592
1644
  Column: AuthColumn,
1593
1645
  HostBlock: HostBlock,
@@ -1598,7 +1650,7 @@ const style$3 = {
1598
1650
  ButtonsContainer: AuthButtonsContainer,
1599
1651
  ErrorStyle: ErrorStyles,
1600
1652
  };
1601
- const vanillaStyle$1 = `
1653
+ const vanillaStyle = `
1602
1654
  sqm-portal-register {
1603
1655
  margin: 0 auto;
1604
1656
  width: 100%;
@@ -1613,20 +1665,20 @@ sqm-portal-register {
1613
1665
  display: none;
1614
1666
  }
1615
1667
  `;
1616
- const sheet$3 = createStyleSheet(style$3);
1617
- const styleString$3 = sheet$3.toString();
1668
+ const sheet$1 = createStyleSheet(style$1);
1669
+ const styleString$1 = sheet$1.toString();
1618
1670
  function PortalRegisterView(props) {
1619
1671
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
1620
1672
  const { states, refs, callbacks, content } = props;
1621
1673
  if (states.error) {
1622
1674
  window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
1623
1675
  }
1624
- return (h("div", { class: sheet$3.classes.Wrapper, part: "sqm-base" },
1676
+ return (h("div", { class: sheet$1.classes.Wrapper, part: "sqm-base" },
1625
1677
  h("style", { type: "text/css" },
1626
- vanillaStyle$1,
1627
- styleString$3),
1678
+ vanillaStyle,
1679
+ styleString$1),
1628
1680
  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 },
1681
+ h("sl-form", { class: sheet$1.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1630
1682
  states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
1631
1683
  h("div", { part: "erroralert-text" }, props.states.error))),
1632
1684
  content.formData,
@@ -1639,7 +1691,7 @@ function PortalRegisterView(props) {
1639
1691
  return content.invalidEmailErrorMessage;
1640
1692
  }
1641
1693
  } }, (((_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,
1694
+ class: sheet$1.classes.ErrorStyle,
1643
1695
  helpText: ((_d = (_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
1644
1696
  content.requiredFieldErrorMessage,
1645
1697
  }
@@ -1650,17 +1702,17 @@ function PortalRegisterView(props) {
1650
1702
  value: (_j = (_h = states.registrationFormState) === null || _h === void 0 ? void 0 : _h.initialData) === null || _j === void 0 ? void 0 : _j.confirmPassword,
1651
1703
  }
1652
1704
  : {}), (((_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,
1705
+ class: sheet$1.classes.ErrorStyle,
1654
1706
  helpText: ((_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.validationErrors) === null || _o === void 0 ? void 0 : _o.confirmPassword) || content.requiredFieldErrorMessage,
1655
1707
  }
1656
1708
  : [])))),
1657
1709
  content.terms,
1658
- h("div", { class: sheet$3.classes.ButtonsContainer },
1710
+ h("div", { class: sheet$1.classes.ButtonsContainer },
1659
1711
  h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
1660
1712
  content.secondaryButton))));
1661
1713
  }
1662
1714
 
1663
- const style$4 = {
1715
+ const style$2 = {
1664
1716
  ErrorStyle: {
1665
1717
  "&::part(control)": {
1666
1718
  background: "var(--sl-color-danger-10)",
@@ -1683,7 +1735,7 @@ const style$4 = {
1683
1735
  "margin-bottom": "var(--sl-spacing-large)",
1684
1736
  },
1685
1737
  };
1686
- const vanillaStyle$2 = `
1738
+ const vanillaStyle$1 = `
1687
1739
  :host {
1688
1740
  margin: 0 auto;
1689
1741
  width: 100%;
@@ -1699,15 +1751,15 @@ sl-checkbox::part(base){
1699
1751
  }
1700
1752
  `;
1701
1753
  jss.setup(create());
1702
- const sheet$4 = jss.createStyleSheet(style$4);
1703
- const styleString$4 = sheet$4.toString();
1754
+ const sheet$2 = jss.createStyleSheet(style$2);
1755
+ const styleString$2 = sheet$2.toString();
1704
1756
  function CheckboxFieldView(props) {
1705
1757
  var _b, _c;
1706
1758
  const { states, content, callbacks } = props;
1707
- return (h("div", { class: sheet$4.classes.FieldContainer, part: "sqm-base" },
1759
+ return (h("div", { class: sheet$2.classes.FieldContainer, part: "sqm-base" },
1708
1760
  h("style", { type: "text/css" },
1709
- vanillaStyle$2,
1710
- styleString$4),
1761
+ vanillaStyle$1,
1762
+ styleString$2),
1711
1763
  h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
1712
1764
  e.target.value = e.target.checked;
1713
1765
  callbacks.setChecked(e.target.value);
@@ -1763,7 +1815,7 @@ function ChangeMarktingView(props) {
1763
1815
  h("div", { part: "successalert-text" }, states.text.successMessage))))));
1764
1816
  }
1765
1817
 
1766
- const style$5 = {
1818
+ const style$3 = {
1767
1819
  Description: {
1768
1820
  "& input[type=checkbox]": {
1769
1821
  display: "none",
@@ -1775,7 +1827,7 @@ const style$5 = {
1775
1827
  position: "absolute",
1776
1828
  top: "var(--sl-spacing-medium)",
1777
1829
  right: "var(--sl-spacing-medium)",
1778
- color: "var(--sl-color-neutral-700)",
1830
+ color: "var(--sqm-text)",
1779
1831
  fontSize: "var(--sl-font-size-large)",
1780
1832
  "& :hover": {
1781
1833
  color: "var(--sl-color-primary-700)",
@@ -1802,13 +1854,13 @@ const style$5 = {
1802
1854
  },
1803
1855
  },
1804
1856
  };
1805
- const sheet$5 = createStyleSheet(style$5);
1806
- const styleString$5 = sheet$5.toString();
1857
+ const sheet$3 = createStyleSheet(style$3);
1858
+ const styleString$3 = sheet$3.toString();
1807
1859
  function Details(props) {
1808
1860
  const rid = Math.random().toString(36).slice(2);
1809
1861
  return (h("div", { style: { opacity: props.opacity } },
1810
- h("style", { type: "text/css" }, styleString$5),
1811
- h("span", { class: sheet$5.classes.Description },
1862
+ h("style", { type: "text/css" }, styleString$3),
1863
+ h("span", { class: sheet$3.classes.Description },
1812
1864
  h("input", { type: "checkbox", id: "details-" + rid }),
1813
1865
  h("label", { class: "details", htmlFor: "details-" + rid },
1814
1866
  h("sl-icon", { exportparts: "base: chevron-icon", name: "chevron-down" })),
@@ -1830,7 +1882,7 @@ const GreyGift = () => {
1830
1882
  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" })));
1831
1883
  };
1832
1884
 
1833
- const style$6 = {
1885
+ const style$4 = {
1834
1886
  ProgressBar: {
1835
1887
  "& .progress-bar": {
1836
1888
  height: "0",
@@ -1942,14 +1994,14 @@ const style$6 = {
1942
1994
  },
1943
1995
  },
1944
1996
  };
1945
- const sheet$6 = createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
1946
- const styleString$6 = sheet$6.toString();
1997
+ const sheet$4 = createStyleSheet(style$4, { classNamePrefix: "sqm-prog-bar" });
1998
+ const styleString$4 = sheet$4.toString();
1947
1999
  function ProgressBarView(props) {
1948
2000
  const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
1949
2001
  let aggregate = buildProgressBar(repeatable, steps, props);
1950
2002
  const { columns, items } = aggregate;
1951
- return (h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1952
- h("style", { type: "text/css" }, styleString$6),
2003
+ return (h("div", { class: sheet$4.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
2004
+ h("style", { type: "text/css" }, styleString$4),
1953
2005
  h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
1954
2006
  (Boolean(finite) && progress > 2 * goal)
1955
2007
  ? "progress-bar repeatable-steps"
@@ -2240,165 +2292,151 @@ const arrow_left_right = () => {
2240
2292
  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" })));
2241
2293
  };
2242
2294
 
2243
- const style$7 = {
2244
- TaskCard: {
2245
- display: "inline-block",
2246
- width: "100%",
2247
- "& .main": {
2248
- position: "relative",
2249
- boxSizing: "border-box",
2250
- background: "var(--sl-color-neutral-0)",
2251
- border: "1px solid var(--sl-color-neutral-200)",
2252
- borderRadius: "var(--sl-border-radius-large)",
2253
- boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
2254
- fontSize: "var(--sl-font-size-small)",
2255
- lineHeight: "var(--sl-line-height-dense)",
2256
- color: "var(--sl-color-neutral-600)",
2257
- },
2258
- "& .main.complete": {
2259
- background: "var(--sl-color-primary-50)",
2260
- borderColor: "var(--sl-color-primary-500)",
2261
- },
2262
- "& .main.expired": {
2263
- color: "var(--sl-color-neutral-600)",
2264
- background: "var(--sl-color-neutral-50)",
2265
- },
2266
- "& .title": {
2267
- fontSize: "var(--sl-font-size-medium)",
2268
- color: "var(--sl-color-neutral-950)",
2269
- },
2270
- "& .container": {
2271
- margin: "var(--sl-spacing-medium)",
2272
- },
2273
- "& .container.subdued": {
2274
- opacity: "0.45",
2275
- },
2276
- "& .container > div": {
2277
- margin: "var(--sl-spacing-medium) 0",
2278
- },
2279
- },
2280
- NotStarted: {
2281
- fontSize: "var(--sl-font-size-small)",
2282
- padding: "var(--sl-spacing-medium)",
2283
- color: "var(--sl-color-primary-600)",
2284
- border: "1px solid var(--sl-color-neutral-200)",
2285
- borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2286
- borderBottom: "none",
2287
- background: "var(--sl-color-primary-50)",
2288
- fontWeight: "var(--sl-font-weight-semibold)",
2289
- lineHeight: "var(--sl-line-height-dense)",
2290
- "& .icon": {
2291
- position: "relative",
2292
- top: "0.1em",
2293
- marginRight: "var(--sl-spacing-small)",
2294
- color: "var(--sl-color-primary-500)",
2295
- },
2296
- },
2297
- Ended: {
2298
- fontSize: "var(--sl-font-size-small)",
2299
- padding: "var(--sl-spacing-medium)",
2300
- color: "var(--sl-color-warning-600)",
2301
- border: "1px solid var(--sl-color-neutral-200)",
2302
- borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2303
- borderBottom: "none",
2304
- background: "var(--sl-color-warning-50)",
2305
- fontWeight: "var(--sl-font-weight-semibold)",
2306
- lineHeight: "var(--sl-line-height-dense)",
2307
- "& .icon": {
2308
- position: "relative",
2309
- top: "0.1em",
2310
- marginRight: "var(--sl-spacing-small)",
2311
- color: "var(--sl-color-warning-500)",
2312
- },
2313
- },
2314
- Header: {
2315
- display: "flex",
2316
- "& .icon": {
2317
- position: "relative",
2318
- top: "5%",
2319
- alignSelf: "center",
2320
- lineHeight: "0",
2321
- color: "var(--sl-color-primary-400)",
2322
- fontSize: "var(--sl-font-size-large)",
2323
- marginRight: "var(--sl-spacing-x-small)",
2324
- },
2325
- "& .value": {
2326
- alignSelf: "center",
2327
- fontSize: "var(--sl-font-size-x-large)",
2328
- fontWeight: "var(--sl-font-weight-semibold)",
2329
- color: "var(--sl-color-neutral-950)",
2330
- lineHeight: "100%",
2331
- marginRight: "var(--sl-spacing-xx-small)",
2332
- },
2333
- "& .text": {
2334
- alignSelf: "end",
2335
- textTransform: "uppercase",
2336
- fontSize: "var(--sl-font-size-x-small)",
2337
- color: "var(--sl-color-neutral-950)",
2338
- lineHeight: "var(--sl-font-size-medium)",
2339
- marginRight: "var(--sl-spacing-xx-small)",
2295
+ function TaskCardView(props) {
2296
+ var _a, _b;
2297
+ const { callbacks, states, content } = props;
2298
+ console.log("text color from the view ", content.textColor);
2299
+ const style = {
2300
+ TaskCard: {
2301
+ display: "inline-block",
2302
+ width: "100%",
2303
+ "& .main": {
2304
+ position: "relative",
2305
+ boxSizing: "border-sizing",
2306
+ background: content.backgroundColor || "var(--sl-color-neutral-0)",
2307
+ border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
2308
+ borderRadius: "var(--sl-border-radius-large)",
2309
+ boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
2310
+ fontSize: "var(--sl-font-size-small)",
2311
+ lineHeight: "var(--sl-line-height-dense)",
2312
+ color: content.textColor || "var(--sqm-text)",
2313
+ },
2314
+ "& .main.complete": {
2315
+ background: content.backgroundColor || "var(--sl-color-primary-50)",
2316
+ borderColor: content.borderColor || "var(--sl-color-primary-500)",
2317
+ },
2318
+ "& .main.expired": {
2319
+ color: content.textColor || "var(--sqm-text)",
2320
+ background: content.backgroundColor || "var(--sl-color-neutral-50)",
2321
+ },
2322
+ "& .title": {
2323
+ fontSize: "var(--sl-font-size-medium)",
2324
+ color: content.textColor || "var(--sqm-text)",
2325
+ },
2326
+ "& .container": {
2327
+ margin: "var(--sl-spacing-medium)",
2328
+ },
2329
+ "& .container.subdued": {
2330
+ opacity: "0.45",
2331
+ },
2332
+ "& .container > div": {
2333
+ margin: "var(--sl-spacing-medium) 0",
2334
+ },
2340
2335
  },
2341
- "& .end": {
2342
- color: "var(--sl-color-warning-500)",
2336
+ NotStarted: {
2337
+ fontSize: "var(--sl-font-size-small)",
2338
+ padding: "var(--sl-spacing-medium)",
2339
+ color: content.textColor || "var(--sl-color-primary-600)",
2340
+ border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
2341
+ borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2342
+ borderBottom: "none",
2343
+ background: content.backgroundColor || "var(--sl-color-primary-50)",
2343
2344
  fontWeight: "var(--sl-font-weight-semibold)",
2344
- marginBottom: "var(--sl-spacing-xx-small)",
2345
- },
2346
- "& .neutral": {
2347
- color: "var(--sl-color-neutral-400)",
2348
- },
2349
- },
2350
- Footer: {
2351
- "&[data-subdue] .success": {
2352
- color: "var(--sl-color-primary-300)",
2353
- },
2354
- "&[data-subdue] .neutral": {
2355
- color: "var(--sl-color-neutral-300)",
2356
- },
2357
- display: "flex",
2358
- "& .icon": {
2359
- fontSize: "var(--sl-font-size-xx-small)",
2360
- marginRight: "var(--sl-spacing-xx-small)",
2361
- verticalAlign: "middle",
2362
- },
2363
- "& .text": {
2364
- marginTop: "auto",
2365
- verticalAlign: "text-bottom",
2366
- fontSize: "var(--sl-font-size-x-small)",
2367
- color: "var(--sl-color-neutral-400)",
2345
+ lineHeight: "var(--sl-line-height-dense)",
2346
+ "& .icon": {
2347
+ position: "relative",
2348
+ top: "0.1em",
2349
+ marginRight: "var(--sl-spacing-small)",
2350
+ color: content.textColor || "var(--sqm-text)",
2351
+ },
2368
2352
  },
2369
- "& .success": {
2370
- color: "var(--sl-color-primary-500)",
2353
+ Ended: {
2354
+ fontSize: "var(--sl-font-size-small)",
2355
+ padding: "var(--sl-spacing-medium)",
2356
+ color: content.textColor || "var(--sl-color-warning-600)",
2357
+ border: `1px solid ${content.borderColor || "var(--sl-color-neutral-200)"}`,
2358
+ borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
2359
+ borderBottom: "none",
2360
+ background: content.backgroundColor || "var(--sl-color-warning-50)",
2371
2361
  fontWeight: "var(--sl-font-weight-semibold)",
2362
+ lineHeight: "var(--sl-line-height-dense)",
2363
+ "& .icon": {
2364
+ position: "relative",
2365
+ top: "0.1em",
2366
+ marginRight: "var(--sl-spacing-small)",
2367
+ color: content.textColor || "var(--sqm-text)",
2368
+ },
2372
2369
  },
2373
- "& .action": {
2374
- marginTop: "auto",
2375
- marginLeft: "auto",
2376
- "&::part(base)": {
2377
- color: "var(--sl-color-neutral-0)",
2370
+ Header: {
2371
+ display: "flex",
2372
+ "& .icon": {
2373
+ position: "relative",
2374
+ top: "5%",
2375
+ alignSelf: "center",
2376
+ lineHeight: "0",
2377
+ color: content.textColor || "var(--sqm-text)",
2378
+ fontSize: "var(--sl-font-size-large)",
2379
+ marginRight: "var(--sl-spacing-x-small)",
2378
2380
  },
2379
- "&.disabled::part(base)": {
2380
- border: "1px solid var(--sl-color-primary-400)",
2381
- background: "var(--sl-color-primary-400)",
2381
+ "& .value": {
2382
+ alignSelf: "center",
2383
+ fontSize: "var(--sl-font-size-x-large)",
2384
+ fontWeight: "var(--sl-font-weight-semibold)",
2385
+ color: content.textColor || "var(--sqm-text)",
2386
+ lineHeight: "100%",
2387
+ marginRight: "var(--sl-spacing-xx-small)",
2382
2388
  },
2383
- "&.neutral::part(base)": {
2384
- border: "1px solid var(--sl-color-neutral-400)",
2385
- background: "var(--sl-color-neutral-400)",
2389
+ "& .text": {
2390
+ alignSelf: "end",
2391
+ textTransform: "uppercase",
2392
+ fontSize: "var(--sl-font-size-x-small)",
2393
+ color: content.textColor || "var(--sqm-text)",
2394
+ lineHeight: "var(--sl-font-size-medium)",
2395
+ marginRight: "var(--sl-spacing-xx-small)",
2396
+ },
2397
+ "& .end": {
2398
+ color: content.textColor || "var(--sl-color-warning-500)",
2399
+ fontWeight: "var(--sl-font-weight-semibold)",
2400
+ marginBottom: "var(--sl-spacing-xx-small)",
2401
+ },
2402
+ "& .neutral": {
2403
+ color: content.textColor || "var(--sl-color-neutral-400)",
2386
2404
  },
2387
2405
  },
2388
- "& .neutral": {
2389
- color: "var(--sl-color-neutral-400)",
2390
- },
2391
- "& .datetime": {
2392
- display: "block",
2393
- marginTop: "var(--sl-spacing-xx-small)",
2406
+ Footer: {
2407
+ "&[data-subdue] .success": {
2408
+ color: content.textColor || "var(--sl-color-primary-300)",
2409
+ },
2410
+ "&[data-subdue] .neutral": {
2411
+ color: content.textColor || "var(--sqm-text)",
2412
+ },
2413
+ display: "flex",
2414
+ "& .icon": {
2415
+ fontSize: "var(--sl-font-size-xx-small)",
2416
+ marginRight: "var(--sl-spacing-xx-small)",
2417
+ verticalAlign: "middle",
2418
+ },
2419
+ "& .text": {
2420
+ marginTop: "auto",
2421
+ verticalAlign: "text-bottom",
2422
+ fontSize: "var(--sl-font-size-x-small)",
2423
+ color: content.textColor || "var(--sqm-text)",
2424
+ },
2425
+ "& .success": {
2426
+ color: content.textColor || "var(--sqm-text)",
2427
+ fontWeight: "var(--sl-font-weight-semibold)",
2428
+ },
2429
+ "& .neutral": {
2430
+ color: content.textColor || "var(--sqm-text)",
2431
+ },
2432
+ "& .datetime": {
2433
+ display: "block",
2434
+ marginTop: "var(--sl-spacing-xx-small)",
2435
+ },
2394
2436
  },
2395
- },
2396
- };
2397
- const sheet$7 = createStyleSheet(style$7);
2398
- const styleString$7 = sheet$7.toString();
2399
- function TaskCardView(props) {
2400
- var _a, _b;
2401
- const { callbacks, states, content } = props;
2437
+ };
2438
+ const sheet = createStyleSheet(style);
2439
+ const contenttring = sheet.toString();
2402
2440
  const dateStart = content.rewardDuration &&
2403
2441
  luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
2404
2442
  const dateEnd = content.rewardDuration &&
@@ -2431,11 +2469,11 @@ function TaskCardView(props) {
2431
2469
  }
2432
2470
 
2433
2471
  `;
2434
- return (h("div", { class: sheet$7.classes.TaskCard, part: "sqm-base" },
2472
+ return (h("div", { class: sheet.classes.TaskCard, part: "sqm-base" },
2435
2473
  h("style", { type: "text/css" },
2436
- styleString$7,
2474
+ contenttring,
2437
2475
  vanillaStyle),
2438
- !states.loading && taskNotStarted && (h("div", { class: sheet$7.classes.NotStarted },
2476
+ !states.loading && taskNotStarted && (h("div", { class: sheet.classes.NotStarted },
2439
2477
  h("span", { class: "icon" },
2440
2478
  h("sl-icon", { name: "info-circle-fill" })),
2441
2479
  intl.formatMessage({
@@ -2446,7 +2484,7 @@ function TaskCardView(props) {
2446
2484
  .setLocale(luxonLocale(states.locale))
2447
2485
  .toLocaleString(luxon.DateTime.DATETIME_MED),
2448
2486
  }))),
2449
- !states.loading && taskEnded && (h("div", { class: sheet$7.classes.Ended },
2487
+ !states.loading && taskEnded && (h("div", { class: sheet.classes.Ended },
2450
2488
  h("span", { class: "icon" },
2451
2489
  h("sl-icon", { exportparts: "base: task-card-icon", name: "exclamation-triangle-fill" })),
2452
2490
  intl.formatMessage({
@@ -2466,7 +2504,7 @@ function TaskCardView(props) {
2466
2504
  ? "main complete"
2467
2505
  : "main" },
2468
2506
  h("div", { class: "container", part: "sqm-card-container", "data-subdue": taskComplete || taskUnavailable },
2469
- 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,
2507
+ 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,
2470
2508
  showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
2471
2509
  h("span", { part: "sqm-value", class: "value" }, content.rewardAmount),
2472
2510
  h("span", { part: "sqm-unit", class: "text" }, content.rewardUnit)))),
@@ -2482,7 +2520,7 @@ function TaskCardView(props) {
2482
2520
  } }, content.cardTitle)),
2483
2521
  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" })))),
2484
2522
  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 })))),
2485
- 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" } },
2523
+ 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" } },
2486
2524
  h("span", { class: "text" },
2487
2525
  content.repeatable && (h("div", null,
2488
2526
  h("span", { class: repetitions > 0
@@ -2511,11 +2549,9 @@ function TaskCardView(props) {
2511
2549
  .setLocale(luxonLocale(states.locale))
2512
2550
  .toLocaleString(luxon.DateTime.DATETIME_MED),
2513
2551
  })))),
2514
- content.hideButton ? ("") : (h("sl-button", { exportparts: "base: button", id: "sl-button", class: taskUnavailable
2515
- ? "action neutral"
2516
- : taskComplete
2517
- ? "action disabled"
2518
- : "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
2552
+ content.hideButton ? ("") : (h("sl-button", { exportparts: `base: ${content.buttonStyle === "primary"
2553
+ ? "primary"
2554
+ : "secondary"}button-base`, id: "sl-button", type: content.buttonStyle === "primary" ? "primary" : "default", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
2519
2555
  opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2520
2556
  } }, content.buttonText)))))))));
2521
2557
  }
@@ -2553,7 +2589,7 @@ function PoweredByImg({ color = "#A6A6A6", width = 120, height = 16, }) {
2553
2589
  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 })));
2554
2590
  }
2555
2591
 
2556
- const vanillaStyle$3 = `
2592
+ const vanillaStyle$2 = `
2557
2593
  :host{
2558
2594
  margin: 0 auto;
2559
2595
  width: 100%;
@@ -2609,7 +2645,7 @@ function PortalFooterView(props) {
2609
2645
  const styleString = sheet.toString();
2610
2646
  return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
2611
2647
  h("style", { type: "text/css" },
2612
- vanillaStyle$3,
2648
+ vanillaStyle$2,
2613
2649
  styleString),
2614
2650
  h("div", { class: sheet.classes.RowContainer },
2615
2651
  props.faqLink && (h("a", { target: "_blank", href: props.faqLink }, props.faqText)),
@@ -2781,7 +2817,7 @@ function ReferralIframeView(props) {
2781
2817
  h("iframe", { class: sheet.classes.IFrame, src: `${content.iframeSrc}?rsCode=${data.shareCode}` })));
2782
2818
  }
2783
2819
 
2784
- const style$8 = {
2820
+ const style$5 = {
2785
2821
  ErrorStyle: ErrorStyles,
2786
2822
  FieldsContainer: {
2787
2823
  "& sl-input": {
@@ -2789,33 +2825,30 @@ const style$8 = {
2789
2825
  },
2790
2826
  },
2791
2827
  };
2792
- const vanillaStyle$4 = `
2828
+ const vanillaStyle$3 = `
2793
2829
  :host {
2794
2830
  margin: 0 auto;
2795
2831
  width: 100%;
2796
2832
  display: block;
2797
2833
  }
2798
2834
 
2799
- sl-input::part(label){
2800
- font-size: var(--sl-input-label-font-size-small);
2801
- font-weight: var(--sl-font-weight-semibold);
2802
- }
2835
+
2803
2836
  `;
2804
- const sheet$8 = createStyleSheet(style$8);
2805
- const styleString$8 = sheet$8.toString();
2837
+ const sheet$5 = createStyleSheet(style$5);
2838
+ const styleString$5 = sheet$5.toString();
2806
2839
  function NameFieldsView(props) {
2807
2840
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
2808
2841
  const { states } = props;
2809
2842
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2810
- return (h("div", { class: sheet$8.classes.FieldsContainer },
2843
+ return (h("div", { class: sheet$5.classes.FieldsContainer },
2811
2844
  h("style", { type: "text/css" },
2812
- vanillaStyle$4,
2813
- styleString$8),
2845
+ vanillaStyle$3,
2846
+ styleString$5),
2814
2847
  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) ? {
2815
2848
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g.firstName,
2816
2849
  }
2817
2850
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) ? {
2818
- class: sheet$8.classes.ErrorStyle,
2851
+ class: sheet$5.classes.ErrorStyle,
2819
2852
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.firstName) || "Cannot be empty",
2820
2853
  }
2821
2854
  : []))),
@@ -2823,13 +2856,13 @@ function NameFieldsView(props) {
2823
2856
  value: (_o = (_m = states.registrationFormState) === null || _m === void 0 ? void 0 : _m.initialData) === null || _o === void 0 ? void 0 : _o.lastName,
2824
2857
  }
2825
2858
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) ? {
2826
- class: sheet$8.classes.ErrorStyle,
2859
+ class: sheet$5.classes.ErrorStyle,
2827
2860
  helpText: (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.lastName) || "Cannot be empty",
2828
2861
  }
2829
2862
  : [])))));
2830
2863
  }
2831
2864
 
2832
- const style$9 = {
2865
+ const style$6 = {
2833
2866
  ErrorStyle: {
2834
2867
  "--sl-input-border-color": "var(--sl-color-danger-500)",
2835
2868
  "--sl-input-background-color": "var(--sl-color-danger-10)",
@@ -2845,7 +2878,7 @@ const style$9 = {
2845
2878
  "margin-bottom": "var(--sl-spacing-large)",
2846
2879
  },
2847
2880
  };
2848
- const vanillaStyle$5 = `
2881
+ const vanillaStyle$4 = `
2849
2882
  :host {
2850
2883
  margin: 0 auto;
2851
2884
  width: 100%;
@@ -2857,36 +2890,36 @@ sl-select::part(label){
2857
2890
  }
2858
2891
  `;
2859
2892
  jss.setup(create());
2860
- const sheet$9 = jss.createStyleSheet(style$9);
2861
- const styleString$9 = sheet$9.toString();
2893
+ const sheet$6 = jss.createStyleSheet(style$6);
2894
+ const styleString$6 = sheet$6.toString();
2862
2895
  function DropdownFieldView(props) {
2863
2896
  var _a, _b, _c, _d, _e, _f, _g;
2864
2897
  const { states, content } = props;
2865
2898
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2866
- return (h("div", { class: sheet$9.classes.FieldContainer, part: "sqm-base" },
2899
+ return (h("div", { class: sheet$6.classes.FieldContainer, part: "sqm-base" },
2867
2900
  h("style", { type: "text/css" },
2868
- vanillaStyle$5,
2869
- styleString$9),
2901
+ vanillaStyle$4,
2902
+ styleString$6),
2870
2903
  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]) ? {
2871
2904
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
2872
2905
  }
2873
2906
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
2874
- class: sheet$9.classes.ErrorStyle,
2907
+ class: sheet$6.classes.ErrorStyle,
2875
2908
  }
2876
2909
  : [])), content.selectOptions),
2877
- (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$9.classes.ErrorMessageStyle }, intl.formatMessage({
2910
+ (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (h("p", { class: sheet$6.classes.ErrorMessageStyle }, intl.formatMessage({
2878
2911
  id: `errorMessage-${content.dropdownName}`,
2879
2912
  defaultMessage: content.errorMessage,
2880
2913
  })))));
2881
2914
  }
2882
2915
 
2883
- const style$a = {
2916
+ const style$7 = {
2884
2917
  ErrorStyle: ErrorStyles,
2885
2918
  FieldContainer: {
2886
2919
  "margin-bottom": "var(--sl-spacing-large)",
2887
2920
  },
2888
2921
  };
2889
- const vanillaStyle$6 = `
2922
+ const vanillaStyle$5 = `
2890
2923
  :host {
2891
2924
  margin: 0 auto;
2892
2925
  width: 100%;
@@ -2894,21 +2927,21 @@ const vanillaStyle$6 = `
2894
2927
  }
2895
2928
  `;
2896
2929
  jss.setup(create());
2897
- const sheet$a = jss.createStyleSheet(style$a);
2898
- const styleString$a = sheet$a.toString();
2930
+ const sheet$7 = jss.createStyleSheet(style$7);
2931
+ const styleString$7 = sheet$7.toString();
2899
2932
  function InputFieldView(props) {
2900
2933
  var _a, _b, _c, _d, _e, _f, _g;
2901
2934
  const { states, content } = props;
2902
2935
  const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
2903
- return (h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
2936
+ return (h("div", { class: sheet$7.classes.FieldContainer, part: "sqm-base" },
2904
2937
  h("style", { type: "text/css" },
2905
- vanillaStyle$6,
2906
- styleString$a),
2938
+ vanillaStyle$5,
2939
+ styleString$7),
2907
2940
  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]) ? {
2908
2941
  value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
2909
2942
  }
2910
2943
  : {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
2911
- class: sheet$a.classes.ErrorStyle,
2944
+ class: sheet$7.classes.ErrorStyle,
2912
2945
  helpText: intl.formatMessage({
2913
2946
  id: `errorMessage-${content.fieldName}`,
2914
2947
  defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
@@ -3003,7 +3036,7 @@ function ProgressBar({ stageCount, currentStage, }) {
3003
3036
  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 })))));
3004
3037
  }
3005
3038
 
3006
- const style$b = {
3039
+ const style$8 = {
3007
3040
  HostBlock: HostBlock,
3008
3041
  Container: {
3009
3042
  minWidth: "300px",
@@ -3354,8 +3387,8 @@ const style$b = {
3354
3387
  },
3355
3388
  };
3356
3389
  // JSS config
3357
- const sheet$b = createStyleSheet(style$b);
3358
- const styleString$b = sheet$b.toString();
3390
+ const sheet$8 = createStyleSheet(style$8);
3391
+ const styleString$8 = sheet$8.toString();
3359
3392
  const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
3360
3393
  function RewardExchangeView(props) {
3361
3394
  const { states, data, callbacks, refs } = props;
@@ -3378,7 +3411,7 @@ function RewardExchangeView(props) {
3378
3411
  sourceUnit: item.sourceUnit,
3379
3412
  })));
3380
3413
  }
3381
- 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) => {
3414
+ 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) => {
3382
3415
  var _a, _b, _c, _d, _e;
3383
3416
  return callbacks.setExchangeState({
3384
3417
  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,
@@ -3386,7 +3419,7 @@ function RewardExchangeView(props) {
3386
3419
  });
3387
3420
  } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
3388
3421
  var _a, _b;
3389
- return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$b.classes.SelectItem },
3422
+ return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$8.classes.SelectItem },
3390
3423
  step.prettyDestinationValue,
3391
3424
  h("br", null),
3392
3425
  h("div", { class: "step-cost", slot: "suffix" },
@@ -3405,8 +3438,8 @@ function RewardExchangeView(props) {
3405
3438
  var _a;
3406
3439
  return [
3407
3440
  h("div", { part: "choose-reward-container" },
3408
- h("div", { class: sheet$b.classes.Title }, states.content.text.rewardTitle),
3409
- states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$b.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3441
+ h("div", { class: sheet$8.classes.Title }, states.content.text.rewardTitle),
3442
+ states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$8.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
3410
3443
  var _a, _b, _c, _d, _e;
3411
3444
  const style = {
3412
3445
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
@@ -3415,7 +3448,7 @@ function RewardExchangeView(props) {
3415
3448
  borderRadius: "4px",
3416
3449
  };
3417
3450
  return (h("div", { key: item.key, style: style },
3418
- h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$b.classes.Card, style: {
3451
+ h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$8.classes.Card, style: {
3419
3452
  cursor: item.unavailableReasonCode
3420
3453
  ? "not-allowed"
3421
3454
  : "pointer",
@@ -3432,14 +3465,14 @@ function RewardExchangeView(props) {
3432
3465
  ? "rgba(0, 0, 0, 0.05)"
3433
3466
  : "rgba(0, 0, 0, 0)",
3434
3467
  } },
3435
- h("div", { class: sheet$b.classes.Image, style: {
3468
+ h("div", { class: sheet$8.classes.Image, style: {
3436
3469
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3437
3470
  } },
3438
3471
  h("img", { class: item.unavailableReasonCode
3439
3472
  ? "image subdued"
3440
3473
  : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
3441
3474
  getAssetPath("./assets/Reward-image.png") })),
3442
- h("div", { class: sheet$b.classes.TextArea, style: {
3475
+ h("div", { class: sheet$8.classes.TextArea, style: {
3443
3476
  opacity: item.unavailableReasonCode ? "0.5" : "1",
3444
3477
  } },
3445
3478
  h("div", { class: "title", style: {
@@ -3472,7 +3505,7 @@ function RewardExchangeView(props) {
3472
3505
  item.prettySourceMinValue,
3473
3506
  }))))))));
3474
3507
  }))),
3475
- h("div", { class: sheet$b.classes.Button },
3508
+ h("div", { class: sheet$8.classes.Button },
3476
3509
  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))),
3477
3510
  ];
3478
3511
  }
@@ -3483,7 +3516,7 @@ function RewardExchangeView(props) {
3483
3516
  ? false
3484
3517
  : input && !states.amount;
3485
3518
  return (h("div", null,
3486
- h("div", { class: sheet$b.classes.ChooseAmount, part: "choose-amount-container" },
3519
+ h("div", { class: sheet$8.classes.ChooseAmount, part: "choose-amount-container" },
3487
3520
  h("div", { class: "wrapper" },
3488
3521
  h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
3489
3522
  getAssetPath("./assets/Reward-image.png") }),
@@ -3492,7 +3525,7 @@ function RewardExchangeView(props) {
3492
3525
  ((_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)),
3493
3526
  ((_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)),
3494
3527
  h("div", { class: "space" }))),
3495
- h("div", { class: sheet$b.classes.Button },
3528
+ h("div", { class: sheet$8.classes.Button },
3496
3529
  h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3497
3530
  h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
3498
3531
  }
@@ -3500,8 +3533,8 @@ function RewardExchangeView(props) {
3500
3533
  const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
3501
3534
  const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
3502
3535
  return (h("div", null,
3503
- h("div", { class: sheet$b.classes.Confirmation, part: "confirmation-container" },
3504
- h("div", { class: sheet$b.classes.Title }, states.content.text.redeemTitle),
3536
+ h("div", { class: sheet$8.classes.Confirmation, part: "confirmation-container" },
3537
+ h("div", { class: sheet$8.classes.Title }, states.content.text.redeemTitle),
3505
3538
  h("div", { class: "wrapper" },
3506
3539
  h("div", { class: "field" }, states.content.text.rewardNameTitle),
3507
3540
  h("div", { class: "reward-item-container" },
@@ -3516,13 +3549,13 @@ function RewardExchangeView(props) {
3516
3549
  h("div", { class: "wrapper top-border padding" },
3517
3550
  h("div", { class: "field" }, states.content.text.costTitle),
3518
3551
  h("div", { class: "value" }, cost)),
3519
- h("div", { class: sheet$b.classes.Button },
3552
+ h("div", { class: sheet$8.classes.Button },
3520
3553
  h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
3521
3554
  h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
3522
3555
  }
3523
3556
  function success() {
3524
3557
  var _a, _b, _c, _d, _e, _f;
3525
- return (h("div", { class: sheet$b.classes.Success, part: "success-container" },
3558
+ return (h("div", { class: sheet$8.classes.Success, part: "success-container" },
3526
3559
  h(Gift$1, null),
3527
3560
  h(Confetti, null),
3528
3561
  h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
@@ -3537,7 +3570,7 @@ function RewardExchangeView(props) {
3537
3570
  (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
3538
3571
  states.content.text.promoCode,
3539
3572
  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 }))),
3540
- h("div", { class: sheet$b.classes.Button },
3573
+ h("div", { class: sheet$8.classes.Button },
3541
3574
  h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
3542
3575
  }
3543
3576
  const stages = {
@@ -3549,7 +3582,7 @@ function RewardExchangeView(props) {
3549
3582
  const currentStage = stages[states.redeemStage];
3550
3583
  function stageMap() {
3551
3584
  const stageNumber = stageList.indexOf(states.redeemStage);
3552
- return (h("div", { class: sheet$b.classes.ProgressBar },
3585
+ return (h("div", { class: sheet$8.classes.ProgressBar },
3553
3586
  h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
3554
3587
  if (stageList.indexOf(stage) <= stageNumber) {
3555
3588
  return h("span", { class: "text" }, stageProgressList[stage]);
@@ -3561,10 +3594,10 @@ function RewardExchangeView(props) {
3561
3594
  h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
3562
3595
  }
3563
3596
  function loading() {
3564
- return (h("div", { class: sheet$b.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3597
+ return (h("div", { class: sheet$8.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3565
3598
  return (h("div", null,
3566
- h("sl-card", { class: sheet$b.classes.Card },
3567
- h("div", { class: sheet$b.classes.CardLayout },
3599
+ h("sl-card", { class: sheet$8.classes.Card },
3600
+ h("div", { class: sheet$8.classes.CardLayout },
3568
3601
  h("div", null,
3569
3602
  h("sl-skeleton", { style: {
3570
3603
  width: "100px",
@@ -3596,12 +3629,12 @@ function RewardExchangeView(props) {
3596
3629
  if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
3597
3630
  return;
3598
3631
  refs.canvasRef.current = canvas;
3599
- }, id: "my-canvas", class: sheet$b.classes.Confetti }));
3632
+ }, id: "my-canvas", class: sheet$8.classes.Confetti }));
3600
3633
  }
3601
3634
  if (states.noExchangeOptions)
3602
3635
  return states.content.text.empty;
3603
- return (h("div", { class: sheet$b.classes.Container, part: "sqm-base" },
3604
- h("style", { type: "text/css" }, styleString$b),
3636
+ return (h("div", { class: sheet$8.classes.Container, part: "sqm-base" },
3637
+ h("style", { type: "text/css" }, styleString$8),
3605
3638
  h("div", null,
3606
3639
  stageMap(),
3607
3640
  states.exchangeError && errorMessage(),
@@ -4017,29 +4050,29 @@ function CardFeedView(props, children) {
4017
4050
  h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
4018
4051
  }
4019
4052
 
4020
- const style$c = {
4021
- HostBlock: HostBlock,
4022
- couponCodeLabel: {
4023
- margin: "var(--sl-spacing-x-small) 0",
4024
- color: "var(--sl-color-gray-500)",
4025
- fontSize: "var(--sl-font-size-small)",
4026
- },
4027
- };
4028
- const vanillaStyle$7 = `
4053
+ function CouponCodeView(props) {
4054
+ const error = !props.loading && props.error;
4055
+ const style = {
4056
+ HostBlock: HostBlock,
4057
+ couponCodeLabel: {
4058
+ margin: "var(--sl-spacing-x-small) 0",
4059
+ color: props.textColor || "var(--sqm-text-subdued)",
4060
+ fontSize: "var(--sl-font-size-small)",
4061
+ },
4062
+ };
4063
+ const vanillaStyle = `
4029
4064
  :host{
4030
4065
  display: block;
4031
4066
  width: 100%;
4032
4067
  }
4033
4068
  `;
4034
- const sheet$c = createStyleSheet(style$c);
4035
- const styleString$c = sheet$c.toString();
4036
- function CouponCodeView(props) {
4037
- const error = !props.loading && props.error;
4069
+ const sheet = createStyleSheet(style);
4070
+ const styleString = sheet.toString();
4038
4071
  return (h("div", null,
4039
4072
  h("style", { type: "text/css" },
4040
- styleString$c,
4041
- vanillaStyle$7),
4042
- h("p", { class: sheet$c.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4073
+ styleString,
4074
+ vanillaStyle),
4075
+ h("p", { class: sheet.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
4043
4076
  error ? (h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
4044
4077
  h("div", { part: "erroralert-text" }, props.errorText))) : (h(CopyTextView, Object.assign({}, props)))));
4045
4078
  }