@saasquatch/mint-components 1.5.0-99 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (682) hide show
  1. package/CHANGELOG.md +83 -17
  2. package/dist/cjs/{GenericTableView-8e84d356.js → GenericTableView-ed381b89.js} +7 -9
  3. package/dist/cjs/{ShadowViewAddon-4a05aa80.js → ShadowViewAddon-a039bd16.js} +1618 -597
  4. package/dist/cjs/{global-4c495d76.js → global-dd180d3b.js} +2 -1
  5. package/dist/cjs/{index.module-54724339.js → index.module-fb61a163.js} +6696 -6208
  6. package/dist/cjs/loader.cjs.js +3 -3
  7. package/dist/cjs/mint-components.cjs.js +3 -3
  8. package/dist/cjs/{re-render-2f8d0f37.js → re-render-f41e352c.js} +2 -2
  9. package/dist/cjs/sqm-asset-card.cjs.entry.js +2 -2
  10. package/dist/cjs/{sqm-brand_30.cjs.entry.js → sqm-big-stat_31.cjs.entry.js} +387 -299
  11. package/dist/cjs/{sqm-image_4.cjs.entry.js → sqm-empty_5.cjs.entry.js} +34 -16
  12. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
  13. package/dist/cjs/{sqm-hero-view-a13795c0.js → sqm-hero-view-3b0d45d0.js} +1 -0
  14. package/dist/cjs/sqm-hero.cjs.entry.js +7 -1
  15. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
  16. package/dist/cjs/sqm-name-fields.cjs.entry.js +2 -2
  17. package/dist/cjs/{sqm-navigation-sidebar-item-view-da648fbc.js → sqm-navigation-sidebar-item-view-673169c5.js} +2 -2
  18. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  19. package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
  20. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
  21. package/dist/cjs/{sqm-portal-container-view-fdfb3656.js → sqm-portal-container-view-5ea913a8.js} +2 -2
  22. package/dist/cjs/{sqm-portal-email-verification-view-1552442a.js → sqm-portal-email-verification-view-767085b1.js} +2 -2
  23. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +7 -7
  24. package/dist/cjs/{sqm-portal-footer-view-15ce261b.js → sqm-portal-footer-view-918b4817.js} +1 -1
  25. package/dist/cjs/sqm-portal-footer.cjs.entry.js +3 -3
  26. package/dist/cjs/{sqm-portal-forgot-password-view-10c0b54f.js → sqm-portal-forgot-password-view-02b046e1.js} +1 -1
  27. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +6 -6
  28. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  29. package/dist/cjs/{sqm-portal-profile-view-659635e9.js → sqm-portal-profile-view-c7b037cf.js} +3 -3
  30. package/dist/cjs/sqm-portal-profile.cjs.entry.js +9 -9
  31. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +6 -6
  32. package/dist/cjs/{sqm-portal-reset-password-view-1fdc957e.js → sqm-portal-reset-password-view-20df8d45.js} +1 -1
  33. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +8 -8
  34. package/dist/cjs/{sqm-portal-section-view-186a5f7e.js → sqm-portal-section-view-f3c8475a.js} +1 -0
  35. package/dist/cjs/{sqm-portal-verify-email-view-4c78e231.js → sqm-portal-verify-email-view-1b07a1ba.js} +1 -1
  36. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +8 -8
  37. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +170 -431
  38. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -2
  39. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -6
  40. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +281 -433
  41. package/dist/cjs/sqm-stencilbook.cjs.entry.js +873 -753
  42. package/dist/cjs/sqm-tabs.cjs.entry.js +11 -14
  43. package/dist/cjs/sqm-text-span-view-c54af22c.js +59 -0
  44. package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
  45. package/dist/cjs/{useChildElements-a68699b4.js → useChildElements-097c3dc9.js} +4 -2
  46. package/dist/cjs/{useReferralTable-273bb515.js → useReferralTable-a7fc07c6.js} +12 -11
  47. package/dist/collection/collection-manifest.json +1 -2
  48. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +12 -0
  49. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +15 -10
  50. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +3 -2
  51. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +10 -4
  52. package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
  53. package/dist/collection/components/sqm-brand/SqmBrand.stories.js +0 -15
  54. package/dist/collection/components/sqm-brand/sqm-brand.js +2 -25
  55. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +1 -1
  56. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +3 -0
  57. package/dist/collection/components/sqm-empty/EmptyState.stories.js +52 -0
  58. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  59. package/dist/collection/components/sqm-hero/sqm-hero-view.js +1 -0
  60. package/dist/collection/components/sqm-hero/sqm-hero.js +10 -3
  61. package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +16 -16
  62. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +10 -4
  63. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +22 -8
  64. package/dist/collection/components/sqm-image/Image.stories.js +6 -6
  65. package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
  66. package/dist/collection/components/sqm-image/sqm-image.js +6 -2
  67. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +131 -386
  68. package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +15 -4
  69. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +18 -26
  70. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +25 -17
  71. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +1 -3
  72. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +6 -0
  73. package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +6 -0
  74. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +72 -0
  75. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +2 -2
  76. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +45 -1
  77. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +9 -0
  78. package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +1 -1
  79. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +4 -6
  80. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +40 -36
  81. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +4 -0
  82. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -0
  83. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +12 -20
  84. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +10 -0
  85. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +7 -2
  86. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +11 -10
  87. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +11 -1
  88. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +10 -1
  89. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +5 -1
  90. package/dist/collection/components/sqm-referral-table/mockReferralData.js +97 -393
  91. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +34 -23
  92. package/dist/collection/components/sqm-referral-table/useReferralTable.js +6 -4
  93. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +3 -1
  94. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +40 -29
  95. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +348 -360
  96. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +64 -53
  97. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +5 -5
  98. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +17 -13
  99. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +47 -9
  100. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-customer-note-cell.js +0 -1
  101. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +2 -3
  102. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.js +105 -49
  103. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
  104. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +25 -25
  105. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +6 -5
  106. package/dist/collection/components/sqm-rewards-table/columns/{sqm-customer-note-column.js → sqm-rewards-table-note-column.js} +5 -7
  107. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +33 -3
  108. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +7 -4
  109. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +89 -4
  110. package/dist/collection/components/sqm-rewards-table/mockRewardData.js +98 -321
  111. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +23 -14
  112. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +12 -4
  113. package/dist/collection/components/sqm-scroll/Scroll.stories.js +108 -3
  114. package/dist/collection/components/sqm-scroll/sqm-scroll.js +280 -12
  115. package/dist/collection/components/sqm-scroll/useScroll.js +2 -3
  116. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +2 -2
  117. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +19 -18
  118. package/dist/collection/components/sqm-share-button/sqm-share-button.js +5 -1
  119. package/dist/collection/components/sqm-share-code/ShareCode.stories.js +1 -1
  120. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +1 -1
  121. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +4 -3
  122. package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +41 -0
  123. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
  124. package/dist/collection/components/sqm-tab/sqm-tab.js +7 -1
  125. package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +0 -1
  126. package/dist/collection/components/sqm-tabs/sqm-tabs.js +4 -1
  127. package/dist/collection/components/sqm-tabs/useTabs.js +9 -11
  128. package/dist/collection/components/sqm-task-card/DetailsView.js +1 -1
  129. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +12 -4
  130. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  131. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +52 -54
  132. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +25 -21
  133. package/dist/collection/components/sqm-task-card/sqm-task-card.js +7 -19
  134. package/dist/collection/components/sqm-text/sqm-text.js +4 -13
  135. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +42 -42
  136. package/dist/collection/components/sqm-text-span/sqm-text-span.js +3 -0
  137. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +77 -0
  138. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +37 -99
  139. package/dist/collection/components/sqm-timeline/sqm-timeline.js +12 -50
  140. package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +3 -16
  141. package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +1 -0
  142. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +12 -0
  143. package/dist/collection/global/styles.js +1 -0
  144. package/dist/collection/global/styles.ts +1 -0
  145. package/dist/collection/stories/PortalTemplates.stories.js +0 -7
  146. package/dist/collection/stories/Widget.stories.js +49 -0
  147. package/dist/collection/tables/GenericTableView.js +7 -9
  148. package/dist/collection/tables/useChildElements.js +3 -1
  149. package/dist/esm/{GenericTableView-4a1292db.js → GenericTableView-6924630b.js} +7 -9
  150. package/dist/esm/{ShadowViewAddon-47fc4166.js → ShadowViewAddon-e2ca6a02.js} +1612 -598
  151. package/dist/esm/{global-a8e9f822.js → global-15cdf41a.js} +2 -1
  152. package/dist/esm/{index.module-2821f17d.js → index.module-f5e17a4e.js} +6679 -6191
  153. package/dist/esm/loader.js +3 -3
  154. package/dist/esm/mint-components.js +3 -3
  155. package/dist/esm/{re-render-07721d1b.js → re-render-8f0a7ab1.js} +2 -2
  156. package/dist/esm/sqm-asset-card.entry.js +2 -2
  157. package/dist/esm/{sqm-brand_30.entry.js → sqm-big-stat_31.entry.js} +382 -295
  158. package/dist/esm/{sqm-image_4.entry.js → sqm-empty_5.entry.js} +35 -18
  159. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
  160. package/dist/esm/{sqm-hero-view-5ea17052.js → sqm-hero-view-8e70916e.js} +1 -0
  161. package/dist/esm/sqm-hero.entry.js +7 -1
  162. package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
  163. package/dist/esm/sqm-name-fields.entry.js +2 -2
  164. package/dist/esm/{sqm-navigation-sidebar-item-view-9380a346.js → sqm-navigation-sidebar-item-view-cce4518c.js} +2 -2
  165. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  166. package/dist/esm/sqm-password-field.entry.js +2 -2
  167. package/dist/esm/sqm-popup-container.entry.js +4 -4
  168. package/dist/esm/{sqm-portal-container-view-f74db584.js → sqm-portal-container-view-46929235.js} +2 -2
  169. package/dist/esm/{sqm-portal-email-verification-view-cf3a4840.js → sqm-portal-email-verification-view-d3e13e95.js} +2 -2
  170. package/dist/esm/sqm-portal-email-verification.entry.js +7 -7
  171. package/dist/esm/{sqm-portal-footer-view-ba9892f9.js → sqm-portal-footer-view-288d05a9.js} +1 -1
  172. package/dist/esm/sqm-portal-footer.entry.js +3 -3
  173. package/dist/esm/{sqm-portal-forgot-password-view-fa088f83.js → sqm-portal-forgot-password-view-6b99a1ad.js} +1 -1
  174. package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
  175. package/dist/esm/sqm-portal-logout.entry.js +4 -4
  176. package/dist/esm/{sqm-portal-profile-view-f795d0cd.js → sqm-portal-profile-view-b40ffc59.js} +3 -3
  177. package/dist/esm/sqm-portal-profile.entry.js +9 -9
  178. package/dist/esm/sqm-portal-protected-route.entry.js +6 -6
  179. package/dist/esm/{sqm-portal-reset-password-view-73e14282.js → sqm-portal-reset-password-view-2c0da51c.js} +1 -1
  180. package/dist/esm/sqm-portal-reset-password.entry.js +8 -8
  181. package/dist/esm/{sqm-portal-section-view-88a80af9.js → sqm-portal-section-view-61dbb8a9.js} +1 -0
  182. package/dist/esm/{sqm-portal-verify-email-view-cbf1cfdc.js → sqm-portal-verify-email-view-0d005914.js} +1 -1
  183. package/dist/esm/sqm-portal-verify-email.entry.js +8 -8
  184. package/dist/esm/sqm-referral-table_11.entry.js +171 -432
  185. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -2
  186. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -6
  187. package/dist/esm/sqm-rewards-table_9.entry.js +282 -434
  188. package/dist/esm/sqm-stencilbook.entry.js +844 -724
  189. package/dist/esm/sqm-tabs.entry.js +11 -14
  190. package/dist/esm/sqm-text-span-view-c8793d61.js +57 -0
  191. package/dist/esm/sqm-text-span.entry.js +1 -1
  192. package/dist/esm/{useChildElements-62af7349.js → useChildElements-3ffd7077.js} +4 -2
  193. package/dist/esm/{useReferralTable-43a3a215.js → useReferralTable-d8a7e3be.js} +13 -12
  194. package/dist/esm-es5/GenericTableView-6924630b.js +1 -0
  195. package/dist/esm-es5/ShadowViewAddon-e2ca6a02.js +1 -0
  196. package/dist/esm-es5/{global-a8e9f822.js → global-15cdf41a.js} +2 -2
  197. package/dist/esm-es5/index.module-f5e17a4e.js +1 -0
  198. package/dist/esm-es5/loader.js +1 -1
  199. package/dist/esm-es5/mint-components.js +1 -1
  200. package/dist/esm-es5/{re-render-07721d1b.js → re-render-8f0a7ab1.js} +1 -1
  201. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  202. package/dist/esm-es5/sqm-big-stat_31.entry.js +1 -0
  203. package/dist/esm-es5/sqm-empty_5.entry.js +1 -0
  204. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  205. package/dist/esm-es5/{sqm-hero-view-5ea17052.js → sqm-hero-view-8e70916e.js} +0 -0
  206. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  207. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  208. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  209. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-9380a346.js → sqm-navigation-sidebar-item-view-cce4518c.js} +1 -1
  210. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  211. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  212. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  213. package/dist/esm-es5/sqm-portal-container-view-46929235.js +1 -0
  214. package/dist/esm-es5/{sqm-portal-email-verification-view-cf3a4840.js → sqm-portal-email-verification-view-d3e13e95.js} +1 -1
  215. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  216. package/dist/esm-es5/{sqm-portal-footer-view-ba9892f9.js → sqm-portal-footer-view-288d05a9.js} +1 -1
  217. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  218. package/dist/esm-es5/{sqm-portal-forgot-password-view-fa088f83.js → sqm-portal-forgot-password-view-6b99a1ad.js} +1 -1
  219. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  220. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  221. package/dist/esm-es5/{sqm-portal-profile-view-f795d0cd.js → sqm-portal-profile-view-b40ffc59.js} +1 -1
  222. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  223. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  224. package/dist/esm-es5/{sqm-portal-reset-password-view-73e14282.js → sqm-portal-reset-password-view-2c0da51c.js} +1 -1
  225. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  226. package/dist/esm-es5/{sqm-portal-section-view-88a80af9.js → sqm-portal-section-view-61dbb8a9.js} +0 -0
  227. package/dist/esm-es5/{sqm-portal-verify-email-view-cbf1cfdc.js → sqm-portal-verify-email-view-0d005914.js} +1 -1
  228. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  229. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  230. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  231. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  232. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  233. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  234. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  235. package/dist/{mint-components/p-179988b5.js → esm-es5/sqm-text-span-view-c8793d61.js} +1 -1
  236. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  237. package/dist/esm-es5/useChildElements-3ffd7077.js +1 -0
  238. package/dist/esm-es5/useReferralTable-d8a7e3be.js +1 -0
  239. package/dist/mint-components/global/styles.ts +1 -0
  240. package/dist/mint-components/mint-components.esm.js +1 -1
  241. package/dist/mint-components/mint-components.js +1 -1
  242. package/dist/mint-components/{p-e08f5f8e.js → p-00c0fd3c.js} +0 -0
  243. package/dist/mint-components/{p-41a87a92.entry.js → p-01baf2e6.entry.js} +1 -1
  244. package/dist/mint-components/p-081b8938.system.entry.js +1 -0
  245. package/dist/mint-components/{p-266268d2.system.js → p-08592b79.system.js} +1 -1
  246. package/dist/mint-components/p-09ec464d.system.entry.js +1 -0
  247. package/dist/mint-components/{p-de2e871a.js → p-100522a7.js} +1 -1
  248. package/dist/mint-components/{p-ce0ec1c4.system.js → p-1830b02e.system.js} +1 -1
  249. package/dist/mint-components/p-1a10ffc0.entry.js +13 -0
  250. package/dist/mint-components/{p-030f89b3.entry.js → p-1ff4be7f.entry.js} +1 -1
  251. package/dist/mint-components/{p-999a46af.entry.js → p-2062f027.entry.js} +1 -1
  252. package/dist/mint-components/{p-95a89867.js → p-274a87bd.js} +1 -1
  253. package/dist/mint-components/p-284edcb1.system.entry.js +1 -0
  254. package/dist/mint-components/{p-147440c3.js → p-2ec8c64c.js} +0 -0
  255. package/dist/mint-components/{p-09fbcba5.js → p-3552d340.js} +1 -1
  256. package/dist/mint-components/{p-1703d3c0.system.entry.js → p-37e1ad86.system.entry.js} +1 -1
  257. package/dist/mint-components/{p-250d40f6.system.entry.js → p-3ab9f1ae.system.entry.js} +1 -1
  258. package/dist/mint-components/p-3bb7f637.system.entry.js +1 -0
  259. package/dist/mint-components/{p-6b43e4cc.system.js → p-3bf4f950.system.js} +1 -1
  260. package/dist/mint-components/{p-53af4433.system.js → p-3cf449ba.system.js} +0 -0
  261. package/dist/mint-components/{p-66fc28d0.js → p-3d2ee089.js} +1 -1
  262. package/dist/mint-components/p-4368bdee.system.js +1 -0
  263. package/dist/mint-components/p-436da6b8.system.js +1 -0
  264. package/dist/mint-components/{p-fe0d7472.entry.js → p-4556231d.entry.js} +1 -1
  265. package/dist/mint-components/{p-b5c6ff52.system.entry.js → p-45ff7cfd.system.entry.js} +1 -1
  266. package/dist/mint-components/p-4646a33f.system.entry.js +1 -0
  267. package/dist/mint-components/{p-b7e5ba0d.system.entry.js → p-4744a00d.system.entry.js} +1 -1
  268. package/dist/mint-components/p-47cf728e.entry.js +1 -0
  269. package/dist/mint-components/p-4907c147.entry.js +1 -0
  270. package/dist/mint-components/p-4a1f24ef.entry.js +1 -0
  271. package/dist/mint-components/p-4a2782fd.system.entry.js +1 -0
  272. package/dist/mint-components/{p-bca007f0.entry.js → p-52d599a9.entry.js} +1 -1
  273. package/dist/mint-components/{p-be02b2a2.system.entry.js → p-596902cd.system.entry.js} +1 -1
  274. package/dist/mint-components/{p-5da31edf.system.entry.js → p-5bbead79.system.entry.js} +1 -1
  275. package/dist/mint-components/p-5c35a4e6.entry.js +1 -0
  276. package/dist/mint-components/p-60abe71f.system.entry.js +1 -0
  277. package/dist/mint-components/p-6241ce09.system.entry.js +1 -0
  278. package/dist/mint-components/p-6660f97d.system.js +1 -0
  279. package/dist/mint-components/{p-c5a656af.system.entry.js → p-68f78218.system.entry.js} +1 -1
  280. package/dist/mint-components/{p-7b854fc1.system.entry.js → p-6b784bc2.system.entry.js} +1 -1
  281. package/dist/mint-components/{p-1959da16.system.js → p-73e64749.system.js} +1 -1
  282. package/dist/mint-components/{p-4ceaa514.system.js → p-774d205c.system.js} +2 -2
  283. package/dist/mint-components/p-79247be1.js +268 -0
  284. package/dist/mint-components/{p-4f4bdfad.system.entry.js → p-79e4c06a.system.entry.js} +1 -1
  285. package/dist/mint-components/{p-4a1b7d35.js → p-7fe7dbb0.js} +1 -1
  286. package/dist/mint-components/p-7ff8364c.entry.js +1 -0
  287. package/dist/mint-components/{p-4063dca2.js → p-84b01832.js} +1 -1
  288. package/dist/mint-components/{p-4e4b69c2.system.entry.js → p-8d880827.system.entry.js} +1 -1
  289. package/dist/mint-components/p-95398ce2.js +1 -0
  290. package/dist/mint-components/{p-db9e20a0.entry.js → p-95bbe8a7.entry.js} +1 -1
  291. package/dist/mint-components/p-98b05b4e.entry.js +150 -0
  292. package/dist/mint-components/{p-aa09f12b.system.js → p-9c2fd3e4.system.js} +1 -1
  293. package/dist/mint-components/{p-e1d1bbdc.system.entry.js → p-9d162fc5.system.entry.js} +1 -1
  294. package/dist/mint-components/{p-192f4931.system.entry.js → p-a36892ea.system.entry.js} +1 -1
  295. package/dist/mint-components/{p-1122f7df.system.js → p-a517d98b.system.js} +1 -1
  296. package/dist/mint-components/{p-838242f3.system.js → p-a639c6b4.system.js} +1 -1
  297. package/dist/mint-components/{p-59afa159.entry.js → p-acd89fad.entry.js} +1 -1
  298. package/dist/mint-components/p-b178e987.entry.js +1 -0
  299. package/dist/mint-components/p-b72d85d6.system.entry.js +1 -0
  300. package/dist/mint-components/{p-3e65453b.system.js → p-b756428e.system.js} +0 -0
  301. package/dist/mint-components/{p-a62a0cf6.system.entry.js → p-b7e0cff8.system.entry.js} +1 -1
  302. package/dist/mint-components/{p-75a78c16.system.entry.js → p-b9d0fee0.system.entry.js} +1 -1
  303. package/dist/mint-components/{p-1d1e9197.js → p-ba597021.js} +1 -1
  304. package/dist/mint-components/p-bb40479d.system.js +1 -0
  305. package/dist/mint-components/p-c2949a5b.entry.js +1 -0
  306. package/dist/mint-components/p-c887a653.system.js +1 -0
  307. package/dist/mint-components/{p-d33eb961.js → p-c8cb3674.js} +1 -1
  308. package/dist/mint-components/p-ca9e4ec2.entry.js +9 -0
  309. package/dist/mint-components/{p-cd69d4f6.entry.js → p-cb7b2fe7.entry.js} +2 -2
  310. package/dist/mint-components/{p-cf9c3022.system.js → p-ce474d92.system.js} +1 -1
  311. package/dist/mint-components/{p-a13b5757.system.js → p-cf6369c6.system.js} +1 -1
  312. package/dist/mint-components/{p-19822c1b.entry.js → p-d1aec4e5.entry.js} +1 -1
  313. package/dist/mint-components/p-db46fe90.js +1 -0
  314. package/dist/mint-components/{p-f94c4847.entry.js → p-dc31c423.entry.js} +1 -1
  315. package/dist/mint-components/p-e3fff405.entry.js +1 -0
  316. package/dist/mint-components/{p-c0693ddc.entry.js → p-e5a7bd1b.entry.js} +1 -1
  317. package/dist/mint-components/p-ec5633b8.js +1 -0
  318. package/dist/mint-components/p-ec77261d.system.js +1 -0
  319. package/dist/mint-components/{p-e15e8e89.js → p-ec7dd6f7.js} +1 -1
  320. package/dist/mint-components/p-ee1684ae.entry.js +1 -0
  321. package/dist/mint-components/p-f02b8fa6.entry.js +99 -0
  322. package/dist/mint-components/{p-ef030fdf.js → p-f0b9e163.js} +2 -2
  323. package/dist/mint-components/{p-62dd50b3.js → p-f214b557.js} +3 -3
  324. package/dist/mint-components/p-f298a1bc.system.entry.js +1 -0
  325. package/dist/mint-components/p-f34dd1c1.js +1 -0
  326. package/dist/mint-components/p-f4b9ba87.system.entry.js +1 -0
  327. package/dist/mint-components/p-fd4d90b9.system.js +1 -0
  328. package/dist/mint-components/p-ff932bfa.entry.js +1 -0
  329. package/dist/types/components/sqm-big-stat/BigStat.stories.d.ts +1 -0
  330. package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +24 -0
  331. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +2 -1
  332. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +1 -0
  333. package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +0 -1
  334. package/dist/types/components/sqm-brand/sqm-brand.d.ts +0 -7
  335. package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +1 -0
  336. package/dist/types/components/sqm-empty/EmptyState.stories.d.ts +9 -0
  337. package/dist/types/components/sqm-hero/sqm-hero.d.ts +5 -1
  338. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +1 -1
  339. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +6 -1
  340. package/dist/types/components/sqm-image/sqm-image-view.d.ts +0 -1
  341. package/dist/types/components/sqm-image/sqm-image.d.ts +3 -2
  342. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +3 -4
  343. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +2 -2
  344. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +6 -4
  345. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +1 -1
  346. package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +2 -0
  347. package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +2 -0
  348. package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +6 -0
  349. package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +1 -0
  350. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +12 -1
  351. package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +2 -0
  352. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +0 -2
  353. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -0
  354. package/dist/types/components/sqm-referral-table/ReferralTableRewardsCell.stories.d.ts +1 -0
  355. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +8 -0
  356. package/dist/types/components/sqm-referral-table/mockReferralData.d.ts +1 -1
  357. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +6 -3
  358. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +3 -1
  359. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +215 -35
  360. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +34 -3
  361. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +16 -8
  362. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +31 -2
  363. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +5 -0
  364. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.d.ts +1 -1
  365. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-reward-cell.d.ts +1 -0
  366. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
  367. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -1
  368. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +2 -1
  369. package/dist/types/components/sqm-rewards-table/columns/{sqm-customer-note-column.d.ts → sqm-rewards-table-note-column.d.ts} +2 -2
  370. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +5 -1
  371. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +2 -2
  372. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +17 -1
  373. package/dist/types/components/sqm-rewards-table/mockRewardData.d.ts +7 -7
  374. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +7 -4
  375. package/dist/types/components/sqm-scroll/Scroll.stories.d.ts +3 -0
  376. package/dist/types/components/sqm-scroll/sqm-scroll.d.ts +68 -1
  377. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +1 -0
  378. package/dist/types/components/sqm-stat-container/sqm-stat-container-view.d.ts +1 -0
  379. package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +8 -0
  380. package/dist/types/components/sqm-tab/sqm-tab.d.ts +4 -0
  381. package/dist/types/components/sqm-tabs/sqm-tabs.d.ts +2 -1
  382. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +2 -1
  383. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  384. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +1 -0
  385. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +4 -0
  386. package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -0
  387. package/dist/types/components/sqm-timeline/sqm-timeline-entry-view.d.ts +9 -0
  388. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +4 -5
  389. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +2 -1
  390. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +3 -0
  391. package/dist/types/components.d.ts +356 -98
  392. package/dist/types/global/styles.d.ts +1 -1
  393. package/dist/types/stories/Widget.stories.d.ts +22 -0
  394. package/dist/types/tables/useChildElements.d.ts +1 -1
  395. package/grapesjs/grapesjs.js +1 -1
  396. package/package.json +2 -2
  397. package/shoelace/assets/icons/123.svg +3 -0
  398. package/shoelace/assets/icons/activity.svg +3 -0
  399. package/shoelace/assets/icons/apple.svg +4 -0
  400. package/shoelace/assets/icons/bandaid-fill.svg +3 -0
  401. package/shoelace/assets/icons/bandaid.svg +4 -0
  402. package/shoelace/assets/icons/bank.svg +3 -0
  403. package/shoelace/assets/icons/bank2.svg +3 -0
  404. package/shoelace/assets/icons/behance.svg +3 -0
  405. package/shoelace/assets/icons/bell-slash-fill.svg +3 -0
  406. package/shoelace/assets/icons/bell-slash.svg +3 -0
  407. package/shoelace/assets/icons/bluetooth.svg +3 -0
  408. package/shoelace/assets/icons/body-text.svg +3 -0
  409. package/shoelace/assets/icons/boombox-fill.svg +4 -0
  410. package/shoelace/assets/icons/boombox.svg +6 -0
  411. package/shoelace/assets/icons/boxes.svg +3 -0
  412. package/shoelace/assets/icons/cash-coin.svg +6 -0
  413. package/shoelace/assets/icons/check-lg.svg +3 -0
  414. package/shoelace/assets/icons/cloud-haze2.svg +3 -0
  415. package/shoelace/assets/icons/coin.svg +5 -0
  416. package/shoelace/assets/icons/currency-bitcoin.svg +3 -0
  417. package/shoelace/assets/icons/currency-dollar.svg +3 -0
  418. package/shoelace/assets/icons/currency-euro.svg +3 -0
  419. package/shoelace/assets/icons/currency-exchange.svg +3 -0
  420. package/shoelace/assets/icons/currency-pound.svg +3 -0
  421. package/shoelace/assets/icons/currency-yen.svg +3 -0
  422. package/shoelace/assets/icons/dash-lg.svg +3 -0
  423. package/shoelace/assets/icons/device-hdd-fill.svg +4 -0
  424. package/shoelace/assets/icons/device-hdd.svg +5 -0
  425. package/shoelace/assets/icons/device-ssd-fill.svg +4 -0
  426. package/shoelace/assets/icons/device-ssd.svg +4 -0
  427. package/shoelace/assets/icons/displayport-fill.svg +3 -0
  428. package/shoelace/assets/icons/displayport.svg +4 -0
  429. package/shoelace/assets/icons/dpad-fill.svg +3 -0
  430. package/shoelace/assets/icons/dpad.svg +4 -0
  431. package/shoelace/assets/icons/dribbble.svg +3 -0
  432. package/shoelace/assets/icons/ear-fill.svg +3 -0
  433. package/shoelace/assets/icons/ear.svg +3 -0
  434. package/shoelace/assets/icons/easel2-fill.svg +4 -0
  435. package/shoelace/assets/icons/easel2.svg +3 -0
  436. package/shoelace/assets/icons/easel3-fill.svg +3 -0
  437. package/shoelace/assets/icons/easel3.svg +3 -0
  438. package/shoelace/assets/icons/envelope-check-fill.svg +4 -0
  439. package/shoelace/assets/icons/envelope-check.svg +4 -0
  440. package/shoelace/assets/icons/envelope-dash-fill.svg +4 -0
  441. package/shoelace/assets/icons/envelope-dash.svg +4 -0
  442. package/shoelace/assets/icons/envelope-exclamation-fill.svg +4 -0
  443. package/shoelace/assets/icons/envelope-exclamation.svg +4 -0
  444. package/shoelace/assets/icons/envelope-plus-fill.svg +4 -0
  445. package/shoelace/assets/icons/envelope-plus.svg +4 -0
  446. package/shoelace/assets/icons/envelope-slash-fill.svg +4 -0
  447. package/shoelace/assets/icons/envelope-slash.svg +4 -0
  448. package/shoelace/assets/icons/envelope-x-fill.svg +4 -0
  449. package/shoelace/assets/icons/envelope-x.svg +4 -0
  450. package/shoelace/assets/icons/ethernet.svg +4 -0
  451. package/shoelace/assets/icons/exclamation-lg.svg +3 -0
  452. package/shoelace/assets/icons/explicit-fill.svg +3 -0
  453. package/shoelace/assets/icons/explicit.svg +4 -0
  454. package/shoelace/assets/icons/fan.svg +4 -0
  455. package/shoelace/assets/icons/file-earmark-pdf-fill.svg +4 -0
  456. package/shoelace/assets/icons/file-earmark-pdf.svg +4 -0
  457. package/shoelace/assets/icons/file-pdf-fill.svg +4 -0
  458. package/shoelace/assets/icons/file-pdf.svg +4 -0
  459. package/shoelace/assets/icons/fingerprint.svg +7 -0
  460. package/shoelace/assets/icons/gender-ambiguous.svg +3 -0
  461. package/shoelace/assets/icons/gender-female.svg +3 -0
  462. package/shoelace/assets/icons/gender-male.svg +3 -0
  463. package/shoelace/assets/icons/gender-trans.svg +3 -0
  464. package/shoelace/assets/icons/git.svg +3 -0
  465. package/shoelace/assets/icons/gpu-card.svg +5 -0
  466. package/shoelace/assets/icons/graph-down-arrow.svg +3 -0
  467. package/shoelace/assets/icons/graph-up-arrow.svg +3 -0
  468. package/shoelace/assets/icons/hdmi-fill.svg +3 -0
  469. package/shoelace/assets/icons/hdmi.svg +4 -0
  470. package/shoelace/assets/icons/headset-vr.svg +4 -0
  471. package/shoelace/assets/icons/hypnotize.svg +4 -0
  472. package/shoelace/assets/icons/infinity.svg +3 -0
  473. package/shoelace/assets/icons/info-lg.svg +3 -0
  474. package/shoelace/assets/icons/line.svg +3 -0
  475. package/shoelace/assets/icons/list-columns-reverse.svg +3 -0
  476. package/shoelace/assets/icons/list-columns.svg +3 -0
  477. package/shoelace/assets/icons/magic.svg +3 -0
  478. package/shoelace/assets/icons/mastodon.svg +3 -0
  479. package/shoelace/assets/icons/medium.svg +3 -0
  480. package/shoelace/assets/icons/memory.svg +3 -0
  481. package/shoelace/assets/icons/messenger.svg +3 -0
  482. package/shoelace/assets/icons/meta.svg +3 -0
  483. package/shoelace/assets/icons/microsoft.svg +3 -0
  484. package/shoelace/assets/icons/modem-fill.svg +3 -0
  485. package/shoelace/assets/icons/modem.svg +4 -0
  486. package/shoelace/assets/icons/mortarboard-fill.svg +4 -0
  487. package/shoelace/assets/icons/mortarboard.svg +4 -0
  488. package/shoelace/assets/icons/motherboard-fill.svg +4 -0
  489. package/shoelace/assets/icons/motherboard.svg +4 -0
  490. package/shoelace/assets/icons/nintendo-switch.svg +4 -0
  491. package/shoelace/assets/icons/optical-audio-fill.svg +4 -0
  492. package/shoelace/assets/icons/optical-audio.svg +5 -0
  493. package/shoelace/assets/icons/paypal.svg +3 -0
  494. package/shoelace/assets/icons/pc-display-horizontal.svg +3 -0
  495. package/shoelace/assets/icons/pc-display.svg +3 -0
  496. package/shoelace/assets/icons/pc-horizontal.svg +3 -0
  497. package/shoelace/assets/icons/pc.svg +3 -0
  498. package/shoelace/assets/icons/pci-card.svg +4 -0
  499. package/shoelace/assets/icons/person-rolodex.svg +4 -0
  500. package/shoelace/assets/icons/person-video.svg +4 -0
  501. package/shoelace/assets/icons/person-video2.svg +4 -0
  502. package/shoelace/assets/icons/person-video3.svg +4 -0
  503. package/shoelace/assets/icons/person-workspace.svg +4 -0
  504. package/shoelace/assets/icons/piggy-bank-fill.svg +3 -0
  505. package/shoelace/assets/icons/piggy-bank.svg +4 -0
  506. package/shoelace/assets/icons/pin-map-fill.svg +4 -0
  507. package/shoelace/assets/icons/pin-map.svg +4 -0
  508. package/shoelace/assets/icons/pinterest.svg +3 -0
  509. package/shoelace/assets/icons/playstation.svg +3 -0
  510. package/shoelace/assets/icons/plus-lg.svg +3 -0
  511. package/shoelace/assets/icons/plus-slash-minus.svg +3 -0
  512. package/shoelace/assets/icons/projector-fill.svg +3 -0
  513. package/shoelace/assets/icons/projector.svg +4 -0
  514. package/shoelace/assets/icons/qr-code-scan.svg +7 -0
  515. package/shoelace/assets/icons/qr-code.svg +7 -0
  516. package/shoelace/assets/icons/question-lg.svg +3 -0
  517. package/shoelace/assets/icons/quora.svg +3 -0
  518. package/shoelace/assets/icons/quote.svg +3 -0
  519. package/shoelace/assets/icons/radioactive.svg +4 -0
  520. package/shoelace/assets/icons/recycle.svg +3 -0
  521. package/shoelace/assets/icons/reddit.svg +4 -0
  522. package/shoelace/assets/icons/robot.svg +4 -0
  523. package/shoelace/assets/icons/router-fill.svg +6 -0
  524. package/shoelace/assets/icons/router.svg +6 -0
  525. package/shoelace/assets/icons/safe-fill.svg +4 -0
  526. package/shoelace/assets/icons/safe.svg +4 -0
  527. package/shoelace/assets/icons/safe2-fill.svg +4 -0
  528. package/shoelace/assets/icons/safe2.svg +4 -0
  529. package/shoelace/assets/icons/sd-card-fill.svg +3 -0
  530. package/shoelace/assets/icons/sd-card.svg +4 -0
  531. package/shoelace/assets/icons/send-check-fill.svg +4 -0
  532. package/shoelace/assets/icons/send-check.svg +4 -0
  533. package/shoelace/assets/icons/send-dash-fill.svg +4 -0
  534. package/shoelace/assets/icons/send-dash.svg +4 -0
  535. package/shoelace/assets/icons/send-exclamation-fill.svg +4 -0
  536. package/shoelace/assets/icons/send-exclamation.svg +4 -0
  537. package/shoelace/assets/icons/send-fill.svg +3 -0
  538. package/shoelace/assets/icons/send-plus-fill.svg +4 -0
  539. package/shoelace/assets/icons/send-plus.svg +4 -0
  540. package/shoelace/assets/icons/send-slash-fill.svg +4 -0
  541. package/shoelace/assets/icons/send-slash.svg +4 -0
  542. package/shoelace/assets/icons/send-x-fill.svg +4 -0
  543. package/shoelace/assets/icons/send-x.svg +4 -0
  544. package/shoelace/assets/icons/send.svg +3 -0
  545. package/shoelace/assets/icons/signal.svg +3 -0
  546. package/shoelace/assets/icons/skype.svg +3 -0
  547. package/shoelace/assets/icons/slash-lg.svg +3 -0
  548. package/shoelace/assets/icons/snapchat.svg +3 -0
  549. package/shoelace/assets/icons/spotify.svg +3 -0
  550. package/shoelace/assets/icons/stack-overflow.svg +4 -0
  551. package/shoelace/assets/icons/steam.svg +4 -0
  552. package/shoelace/assets/icons/strava.svg +3 -0
  553. package/shoelace/assets/icons/terminal-dash.svg +4 -0
  554. package/shoelace/assets/icons/terminal-plus.svg +4 -0
  555. package/shoelace/assets/icons/terminal-split.svg +4 -0
  556. package/shoelace/assets/icons/terminal-x.svg +4 -0
  557. package/shoelace/assets/icons/thunderbolt-fill.svg +3 -0
  558. package/shoelace/assets/icons/thunderbolt.svg +4 -0
  559. package/shoelace/assets/icons/ticket-detailed-fill.svg +3 -0
  560. package/shoelace/assets/icons/ticket-detailed.svg +4 -0
  561. package/shoelace/assets/icons/ticket-fill.svg +3 -0
  562. package/shoelace/assets/icons/ticket-perforated-fill.svg +3 -0
  563. package/shoelace/assets/icons/ticket-perforated.svg +4 -0
  564. package/shoelace/assets/icons/ticket.svg +3 -0
  565. package/shoelace/assets/icons/tiktok.svg +3 -0
  566. package/shoelace/assets/icons/translate.svg +4 -0
  567. package/shoelace/assets/icons/usb-c-fill.svg +3 -0
  568. package/shoelace/assets/icons/usb-c.svg +4 -0
  569. package/shoelace/assets/icons/usb-drive-fill.svg +3 -0
  570. package/shoelace/assets/icons/usb-drive.svg +3 -0
  571. package/shoelace/assets/icons/usb-fill.svg +3 -0
  572. package/shoelace/assets/icons/usb-micro-fill.svg +3 -0
  573. package/shoelace/assets/icons/usb-micro.svg +4 -0
  574. package/shoelace/assets/icons/usb-mini-fill.svg +3 -0
  575. package/shoelace/assets/icons/usb-mini.svg +4 -0
  576. package/shoelace/assets/icons/usb-plug-fill.svg +3 -0
  577. package/shoelace/assets/icons/usb-plug.svg +3 -0
  578. package/shoelace/assets/icons/usb-symbol.svg +3 -0
  579. package/shoelace/assets/icons/usb.svg +4 -0
  580. package/shoelace/assets/icons/vimeo.svg +3 -0
  581. package/shoelace/assets/icons/webcam-fill.svg +4 -0
  582. package/shoelace/assets/icons/webcam.svg +4 -0
  583. package/shoelace/assets/icons/window-dash.svg +5 -0
  584. package/shoelace/assets/icons/window-desktop.svg +4 -0
  585. package/shoelace/assets/icons/window-fullscreen.svg +4 -0
  586. package/shoelace/assets/icons/window-plus.svg +5 -0
  587. package/shoelace/assets/icons/window-split.svg +4 -0
  588. package/shoelace/assets/icons/window-stack.svg +4 -0
  589. package/shoelace/assets/icons/window-x.svg +5 -0
  590. package/shoelace/assets/icons/windows.svg +3 -0
  591. package/shoelace/assets/icons/wordpress.svg +5 -0
  592. package/shoelace/assets/icons/x-lg.svg +4 -0
  593. package/shoelace/assets/icons/xbox.svg +3 -0
  594. package/shoelace/assets/icons/yin-yang.svg +4 -0
  595. package/shoelace/themes/themes/dark.styles.d.ts +2 -0
  596. package/shoelace/themes/themes/dark.styles.js +531 -0
  597. package/shoelace/themes/themes/light.css +439 -0
  598. package/shoelace/themes/themes/light.styles.d.ts +2 -0
  599. package/shoelace/themes/themes/light.styles.js +531 -0
  600. package/dist/cjs/sqm-big-stat-view-e5dc0877.js +0 -40
  601. package/dist/cjs/sqm-big-stat.cjs.entry.js +0 -32
  602. package/dist/cjs/sqm-refresh-button.cjs.entry.js +0 -54
  603. package/dist/cjs/sqm-stat-container-view-5b2db929.js +0 -52
  604. package/dist/cjs/sqm-stat-container.cjs.entry.js +0 -30
  605. package/dist/cjs/sqm-text-span-view-f101dedf.js +0 -59
  606. package/dist/cjs/useDemoBigStat-426e3319.js +0 -942
  607. package/dist/collection/components/sqm-referral-table/sqm-referral-table-view.js +0 -50
  608. package/dist/collection/components/sqm-refresh-button/RefreshButtonView.js +0 -8
  609. package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +0 -66
  610. package/dist/esm/sqm-big-stat-view-309f7c1f.js +0 -38
  611. package/dist/esm/sqm-big-stat.entry.js +0 -28
  612. package/dist/esm/sqm-refresh-button.entry.js +0 -50
  613. package/dist/esm/sqm-stat-container-view-8a565c5a.js +0 -50
  614. package/dist/esm/sqm-stat-container.entry.js +0 -26
  615. package/dist/esm/sqm-text-span-view-7e61c95c.js +0 -57
  616. package/dist/esm/useDemoBigStat-b5a22d26.js +0 -938
  617. package/dist/esm-es5/GenericTableView-4a1292db.js +0 -1
  618. package/dist/esm-es5/ShadowViewAddon-47fc4166.js +0 -1
  619. package/dist/esm-es5/index.module-2821f17d.js +0 -1
  620. package/dist/esm-es5/sqm-big-stat-view-309f7c1f.js +0 -1
  621. package/dist/esm-es5/sqm-big-stat.entry.js +0 -1
  622. package/dist/esm-es5/sqm-brand_30.entry.js +0 -1
  623. package/dist/esm-es5/sqm-image_4.entry.js +0 -1
  624. package/dist/esm-es5/sqm-portal-container-view-f74db584.js +0 -1
  625. package/dist/esm-es5/sqm-refresh-button.entry.js +0 -1
  626. package/dist/esm-es5/sqm-stat-container-view-8a565c5a.js +0 -1
  627. package/dist/esm-es5/sqm-stat-container.entry.js +0 -1
  628. package/dist/esm-es5/sqm-text-span-view-7e61c95c.js +0 -1
  629. package/dist/esm-es5/useChildElements-62af7349.js +0 -1
  630. package/dist/esm-es5/useDemoBigStat-b5a22d26.js +0 -1
  631. package/dist/esm-es5/useReferralTable-43a3a215.js +0 -1
  632. package/dist/mint-components/p-07fef62b.js +0 -30
  633. package/dist/mint-components/p-1af65647.js +0 -239
  634. package/dist/mint-components/p-204fd08c.js +0 -1
  635. package/dist/mint-components/p-3a0e33b9.entry.js +0 -13
  636. package/dist/mint-components/p-403e84cc.system.entry.js +0 -1
  637. package/dist/mint-components/p-48b4104d.entry.js +0 -1
  638. package/dist/mint-components/p-4b60eb5d.entry.js +0 -1
  639. package/dist/mint-components/p-4e6a61c2.system.entry.js +0 -1
  640. package/dist/mint-components/p-59e4405d.system.js +0 -1
  641. package/dist/mint-components/p-646c2b1a.system.entry.js +0 -1
  642. package/dist/mint-components/p-664f781d.system.entry.js +0 -1
  643. package/dist/mint-components/p-67749aab.system.entry.js +0 -1
  644. package/dist/mint-components/p-68bafbde.entry.js +0 -1
  645. package/dist/mint-components/p-6cb25b8b.entry.js +0 -1
  646. package/dist/mint-components/p-6cc350b9.entry.js +0 -1
  647. package/dist/mint-components/p-73d5306f.js +0 -1
  648. package/dist/mint-components/p-76b88485.system.js +0 -1
  649. package/dist/mint-components/p-77c4071b.entry.js +0 -1
  650. package/dist/mint-components/p-7e89b7ed.js +0 -1
  651. package/dist/mint-components/p-87186fdc.entry.js +0 -1
  652. package/dist/mint-components/p-8a8d0514.system.js +0 -1
  653. package/dist/mint-components/p-8bcaafaf.system.js +0 -1
  654. package/dist/mint-components/p-975d4358.js +0 -1
  655. package/dist/mint-components/p-996e20c4.entry.js +0 -1
  656. package/dist/mint-components/p-9d467470.system.js +0 -1
  657. package/dist/mint-components/p-9e2168f7.system.entry.js +0 -1
  658. package/dist/mint-components/p-a27f07cd.system.entry.js +0 -1
  659. package/dist/mint-components/p-b689f228.entry.js +0 -9
  660. package/dist/mint-components/p-b6fbd9cd.system.entry.js +0 -1
  661. package/dist/mint-components/p-b8434fc0.system.js +0 -1
  662. package/dist/mint-components/p-bc19e1c2.system.js +0 -1
  663. package/dist/mint-components/p-c00fd233.system.entry.js +0 -1
  664. package/dist/mint-components/p-c5037c05.system.entry.js +0 -1
  665. package/dist/mint-components/p-c5ce6c37.system.js +0 -1
  666. package/dist/mint-components/p-c7f81b0e.system.entry.js +0 -1
  667. package/dist/mint-components/p-cdebf9f7.system.entry.js +0 -1
  668. package/dist/mint-components/p-d0c09868.js +0 -1
  669. package/dist/mint-components/p-d13b1d06.entry.js +0 -1
  670. package/dist/mint-components/p-d1ffec5b.entry.js +0 -1
  671. package/dist/mint-components/p-d98083fb.entry.js +0 -1
  672. package/dist/mint-components/p-dca35c7c.entry.js +0 -150
  673. package/dist/mint-components/p-e1022452.system.entry.js +0 -1
  674. package/dist/mint-components/p-e4320d52.entry.js +0 -1
  675. package/dist/mint-components/p-e6fac878.entry.js +0 -1
  676. package/dist/mint-components/p-e89b298a.system.entry.js +0 -1
  677. package/dist/mint-components/p-ea110693.system.js +0 -1
  678. package/dist/mint-components/p-f983083d.system.js +0 -1
  679. package/dist/mint-components/p-fca86445.entry.js +0 -93
  680. package/dist/types/components/sqm-referral-table/sqm-referral-table-view.d.ts +0 -29
  681. package/dist/types/components/sqm-refresh-button/RefreshButtonView.d.ts +0 -15
  682. package/dist/types/components/sqm-refresh-button/sqm-refresh-button.d.ts +0 -12
@@ -1,14 +1,15 @@
1
1
  import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
2
- import { k as useState } from './stencil-hooks.module-acc8a613.js';
3
- import { i as intl } from './global-a8e9f822.js';
4
- import { d as dist, M, n as ne, x, b as mn, D as De, f as D } from './index.module-2821f17d.js';
2
+ import { k as useState, b as browser, i as useMemo } from './stencil-hooks.module-acc8a613.js';
3
+ import { i as intl } from './global-15cdf41a.js';
4
+ import { d as dist, M, i as ie, R as Rn, b as sn, q as qe, k as kn, A as An } from './index.module-f5e17a4e.js';
5
+ import { c as cjs } from './cjs-bdfb4486.js';
5
6
  import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-10353a39.js';
6
7
  import { c as createStyleSheet } from './JSS-96eeab98.js';
7
8
  import { l as luxon } from './luxon-f44215d9.js';
8
9
  import { l as luxonLocale } from './utils-1d345130.js';
9
- import { T as TextSpanView } from './sqm-text-span-view-7e61c95c.js';
10
- import { P as PortalContainerView } from './sqm-portal-container-view-f74db584.js';
11
- import { P as PortalSectionView } from './sqm-portal-section-view-88a80af9.js';
10
+ import { T as TextSpanView } from './sqm-text-span-view-c8793d61.js';
11
+ import { P as PortalContainerView } from './sqm-portal-container-view-46929235.js';
12
+ import { P as PortalSectionView } from './sqm-portal-section-view-61dbb8a9.js';
12
13
 
13
14
  const medium = {
14
15
  facebook: { color: "#1877f2", text: "#fff", icon: "facebook" },
@@ -22,27 +23,39 @@ const medium = {
22
23
  linemessenger: { color: "#00B300", text: "#fff", icon: "line" },
23
24
  pinterest: { color: "#e60023", text: "#fff", icon: "pinterest" },
24
25
  };
26
+ const style = {
27
+ HostBlock: HostBlock,
28
+ buttonStyle: {
29
+ display: "flex",
30
+ alignItems: "center",
31
+ justifyContent: "center",
32
+ lineHeight: "0",
33
+ },
34
+ };
35
+ const sheet = createStyleSheet(style);
36
+ const styleString = sheet.toString();
25
37
  function ShareButtonView(props, children) {
26
38
  const vanillaStyle = `
27
- *::part(base) {
39
+ *::part(base) {
40
+ border: none;
28
41
  --sl-focus-ring-color-primary: ${props.backgroundcolor
29
42
  ? props.backgroundcolor
30
43
  : props.medium
31
44
  ? medium[props.medium].color
32
45
  : ""}80!important;
33
46
 
34
- background: ${props.backgroundcolor
47
+ background: ${props.backgroundcolor
35
48
  ? props.backgroundcolor
36
49
  : props.medium
37
50
  ? medium[props.medium].color
38
51
  : ""};
39
- color: ${props.textcolor
52
+ color: ${props.textcolor
40
53
  ? props.textcolor
41
54
  : props.medium
42
55
  ? medium[props.medium].text
43
56
  : ""};
44
- border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
45
- }
57
+ border-radius: ${props.borderradius ? props.borderradius + "px" : ""};
58
+ }
46
59
 
47
60
  *::part(base):hover {
48
61
  border-color: ${props.backgroundcolor
@@ -51,7 +64,7 @@ function ShareButtonView(props, children) {
51
64
  ? medium[props.medium].color
52
65
  : ""}D1!important;
53
66
  }
54
-
67
+
55
68
  *::part(base):focus {
56
69
  border-color: ${props.backgroundcolor
57
70
  ? props.backgroundcolor
@@ -64,18 +77,7 @@ function ShareButtonView(props, children) {
64
77
  position: relative;
65
78
  top: 2%;
66
79
  }
67
- `;
68
- const style = {
69
- HostBlock: HostBlock,
70
- buttonStyle: {
71
- display: "flex",
72
- alignItems: "center",
73
- justifyContent: "center",
74
- lineHeight: "0",
75
- },
76
- };
77
- const sheet = createStyleSheet(style);
78
- const styleString = sheet.toString();
80
+ `;
79
81
  return props.hide ? (h(Host, { style: { display: "none" } })) : (h("div", null,
80
82
  h("style", { type: "text/css" }, styleString),
81
83
  h("style", { type: "text/css" }, vanillaStyle),
@@ -84,22 +86,6 @@ function ShareButtonView(props, children) {
84
86
  !props.hidetext && children)));
85
87
  }
86
88
 
87
- const style = {
88
- HostBlock: HostBlock,
89
- inputStyle: {
90
- "&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
91
- },
92
- };
93
- const sheet = createStyleSheet(style);
94
- const styleString = sheet.toString();
95
- function ShareLinkView(props) {
96
- return (h("div", null,
97
- h("style", { type: "text/css" }, styleString),
98
- h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: "top-end", disabled: props.disabled, open: props.open },
99
- h("sl-input", { class: sheet.classes.inputStyle, exportparts: "label: input-label", value: props.shareString, readonly: true },
100
- h("sl-icon-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", disabled: props.disabled })))));
101
- }
102
-
103
89
  const style$1 = {
104
90
  Leaderboard: {
105
91
  "& table": {
@@ -152,26 +138,15 @@ function LeaderboardView(props) {
152
138
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
153
139
  const { states, data, elements } = props;
154
140
  const { styles } = states;
155
- console.log("LEADERBOARD PROPS", props);
156
141
  if (states.loading)
157
142
  return (h("div", { class: sheet$1.classes.Leaderboard },
158
143
  h("style", { type: "text/css" },
159
144
  styleString$1,
160
145
  vanillaStyle),
161
146
  elements.loadingstate));
147
+ if (!states.hasLeaders)
148
+ return elements.empty;
162
149
  let userSeenFlag = false;
163
- if (!states.hasLeaders) {
164
- return (h("div", { class: sheet$1.classes.Leaderboard },
165
- h("style", { type: "text/css" },
166
- styleString$1,
167
- vanillaStyle),
168
- h("table", null,
169
- h("tr", null,
170
- styles.showRank && h("th", { class: "Rank" }, styles.rankheading),
171
- h("th", { class: "User" }, styles.usersheading),
172
- h("th", { class: "Score" }, styles.statsheading))),
173
- elements.empty));
174
- }
175
150
  return (h("div", { class: sheet$1.classes.Leaderboard },
176
151
  h("style", { type: "text/css" },
177
152
  styleString$1,
@@ -183,32 +158,86 @@ function LeaderboardView(props) {
183
158
  h("th", { class: "Score" }, styles.statsheading)), (_a = data.leaderboard) === null || _a === void 0 ? void 0 :
184
159
  _a.map((user) => {
185
160
  var _a, _b;
186
- if (user.rowNumber === ((_a = data.userRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
161
+ if (user.rowNumber === ((_a = data.viewerRank) === null || _a === void 0 ? void 0 : _a.rowNumber))
187
162
  userSeenFlag = true;
188
- return (h("tr", { class: user.rowNumber === ((_b = data.userRank) === null || _b === void 0 ? void 0 : _b.rowNumber) ? "highlight" : "" },
163
+ return (h("tr", { class: !styles.hideViewer &&
164
+ user.rowNumber === ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rowNumber)
165
+ ? "highlight"
166
+ : "" },
189
167
  styles.showRank && h("td", { class: "Rank" }, user.rank),
190
168
  h("td", { class: "User" }, user.firstName && user.lastInitial
191
169
  ? user.firstName + " " + user.lastInitial
192
170
  : user.firstName || user.lastInitial
193
171
  ? user.firstName || user.lastInitial
194
- : styles.anonymousUser || "Anonymous User"),
172
+ : styles.anonymousUser),
195
173
  h("td", { class: "Score" }, user.value)));
196
174
  }),
197
- states.hasLeaders && !userSeenFlag && data.showUser && (h("tr", null,
175
+ !userSeenFlag && !styles.hideViewer && (h("tr", null,
198
176
  h("td", { colSpan: 100, class: "ellipses" },
199
177
  h("sl-icon", { name: "three-dots", style: { verticalAlign: "middle" } })))),
200
- states.hasLeaders && !userSeenFlag && data.showUser && (h("tr", { class: "highlight" },
201
- styles.showRank && (h("td", { class: "Rank" }, ((_b = data.userRank) === null || _b === void 0 ? void 0 : _b.rank) || "-")),
202
- h("td", { class: "User" }, ((_c = data.userRank) === null || _c === void 0 ? void 0 : _c.firstName) && ((_d = data.userRank) === null || _d === void 0 ? void 0 : _d.lastInitial)
203
- ? ((_e = data.userRank) === null || _e === void 0 ? void 0 : _e.firstName) + " " + ((_f = data.userRank) === null || _f === void 0 ? void 0 : _f.lastInitial)
204
- : ((_g = data.userRank) === null || _g === void 0 ? void 0 : _g.firstName) || ((_h = data.userRank) === null || _h === void 0 ? void 0 : _h.lastInitial)
205
- ? ((_j = data.userRank) === null || _j === void 0 ? void 0 : _j.firstName) || ((_k = data.userRank) === null || _k === void 0 ? void 0 : _k.lastInitial)
206
- : styles.anonymousUser || "Anonymous User"),
207
- h("td", { class: "Score" }, ((_l = data.userRank) === null || _l === void 0 ? void 0 : _l.value) || "0"))),
208
- data.leaderboard.length ? elements.empty : "")));
178
+ !userSeenFlag && !styles.hideViewer && (h("tr", { class: "highlight" },
179
+ styles.showRank && (h("td", { class: "Rank" }, ((_b = data.viewerRank) === null || _b === void 0 ? void 0 : _b.rank) || "-")),
180
+ h("td", { class: "User" }, ((_c = data.viewerRank) === null || _c === void 0 ? void 0 : _c.firstName) && ((_d = data.viewerRank) === null || _d === void 0 ? void 0 : _d.lastInitial)
181
+ ? ((_e = data.viewerRank) === null || _e === void 0 ? void 0 : _e.firstName) +
182
+ " " + ((_f = data.viewerRank) === null || _f === void 0 ? void 0 : _f.lastInitial)
183
+ : ((_g = data.viewerRank) === null || _g === void 0 ? void 0 : _g.firstName) || ((_h = data.viewerRank) === null || _h === void 0 ? void 0 : _h.lastInitial)
184
+ ? ((_j = data.viewerRank) === null || _j === void 0 ? void 0 : _j.firstName) || ((_k = data.viewerRank) === null || _k === void 0 ? void 0 : _k.lastInitial)
185
+ : styles.anonymousUser),
186
+ h("td", { class: "Score" }, ((_l = data.viewerRank) === null || _l === void 0 ? void 0 : _l.value) || "0"))))));
209
187
  }
210
188
 
211
189
  const style$2 = {
190
+ HostBlock: HostBlock,
191
+ inputStyle: {
192
+ "&::part(base)": { background: "white", opacity: "1", cursor: "pointer" },
193
+ },
194
+ };
195
+ const sheet$2 = createStyleSheet(style$2);
196
+ const styleString$2 = sheet$2.toString();
197
+ function ShareLinkView(props) {
198
+ return (h("div", null,
199
+ h("style", { type: "text/css" }, styleString$2),
200
+ h("sl-tooltip", { trigger: "manual", content: props.tooltiptext, placement: "top-end", disabled: props.disabled, open: props.open, skidding: -20 },
201
+ h("sl-input", { class: sheet$2.classes.inputStyle, exportparts: "label: input-label", value: props.shareString, readonly: true },
202
+ h("sl-icon-button", { onClick: () => { var _a; return (_a = props.onClick) === null || _a === void 0 ? void 0 : _a.call(props); }, slot: "suffix", name: "files", disabled: props.disabled })))));
203
+ }
204
+
205
+ function BigStatView(props) {
206
+ const { statvalue, flexReverse, alignment } = props;
207
+ // Dependent on props, not feasiable to move out
208
+ const style = {
209
+ Container: {
210
+ display: "flex",
211
+ height: "inherit",
212
+ "justify-content": "space-between",
213
+ "flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
214
+ "align-items": `${alignment === "left"
215
+ ? "flex-start"
216
+ : alignment === "right"
217
+ ? "flex-end"
218
+ : "center"}`,
219
+ },
220
+ Stat: {
221
+ "font-size": "var(--sl-font-size-x-large)",
222
+ "text-align": alignment,
223
+ },
224
+ Description: {
225
+ "font-size": "var(--sl-font-size-small)",
226
+ "font-weight": "var(--sl-font-weight-normal)",
227
+ color: "var(--sl-color-gray-600)",
228
+ "text-transform": "uppercase",
229
+ "text-align": alignment,
230
+ },
231
+ };
232
+ const sheet = createStyleSheet(style);
233
+ const styleString = sheet.toString();
234
+ return (h("div", { part: "stat-wrapper", class: sheet.classes.Container },
235
+ h("style", { type: "text/css" }, styleString),
236
+ h("div", { part: "stat-value", class: sheet.classes.Stat }, statvalue),
237
+ h("div", { part: "stat-description", class: sheet.classes.Description }, props.labelSlot)));
238
+ }
239
+
240
+ const style$3 = {
212
241
  HostBlock: HostBlock,
213
242
  ":host": {
214
243
  "min-height": "100vh",
@@ -246,17 +275,17 @@ const style$2 = {
246
275
  },
247
276
  },
248
277
  };
249
- const sheet$2 = createStyleSheet(style$2);
250
- const styleString$2 = sheet$2.toString();
278
+ const sheet$3 = createStyleSheet(style$3);
279
+ const styleString$3 = sheet$3.toString();
251
280
  function PortalFrameView(props, children) {
252
281
  const { data } = props;
253
- return (h("div", { class: sheet$2.classes.Frame },
254
- h("style", { type: "text/css" }, styleString$2),
255
- h("div", { class: sheet$2.classes.HeaderWrapper },
282
+ return (h("div", { class: sheet$3.classes.Frame },
283
+ h("style", { type: "text/css" }, styleString$3),
284
+ h("div", { class: sheet$3.classes.HeaderWrapper },
256
285
  data.header,
257
286
  h("slot", { name: "sqm-navigation-menu" })),
258
287
  children,
259
- h("div", { class: sheet$2.classes.FooterWrapper }, data.footer)));
288
+ h("div", { class: sheet$3.classes.FooterWrapper }, data.footer)));
260
289
  }
261
290
 
262
291
  const EditProfileView = (props) => {
@@ -330,10 +359,10 @@ const WIDGET_ENGAGEMENT_EVENT = dist.gql `
330
359
  function useShareLink(props) {
331
360
  var _a, _b;
332
361
  const { programId = M() } = props;
333
- const user = ne();
334
- const engagementMedium = x();
335
- const { data } = mn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
336
- const [sendLoadEvent] = De(WIDGET_ENGAGEMENT_EVENT);
362
+ const user = ie();
363
+ const engagementMedium = Rn();
364
+ const { data } = sn(MessageLinkQuery, { programId }, !(user === null || user === void 0 ? void 0 : user.jwt));
365
+ const [sendLoadEvent] = qe(WIDGET_ENGAGEMENT_EVENT);
337
366
  const shareString = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.shareLink) !== null && _b !== void 0 ? _b :
338
367
  // Shown during loading
339
368
  "...";
@@ -419,16 +448,16 @@ function useShareButton(props) {
419
448
  var _a, _b;
420
449
  const { sharetitle, sharetext, medium } = props;
421
450
  const programId = props.programId ? props.programId : M();
422
- const user = ne();
451
+ const user = ie();
423
452
  const variables = {
424
- engagementMedium: x(),
453
+ engagementMedium: Rn(),
425
454
  programId: programId,
426
455
  shareMedium: medium.toUpperCase(),
427
456
  };
428
457
  // only queries if a programId is available
429
- const res = mn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
458
+ const res = sn(MessageLinkQuery$1, variables, !(user === null || user === void 0 ? void 0 : user.jwt) || !programId);
430
459
  const directLink = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.shareLink;
431
- const environment = D();
460
+ const environment = kn();
432
461
  const hide = (medium.toLocaleUpperCase() === "SMS" &&
433
462
  window.orientation === undefined) ||
434
463
  (medium.toLocaleUpperCase() === "DIRECT" && !window.navigator.share);
@@ -447,6 +476,983 @@ function useShareButton(props) {
447
476
  return { ...props, loading: res.loading, onClick, hide };
448
477
  }
449
478
 
479
+ /**
480
+ * Tokenize input string.
481
+ */
482
+ function lexer(str) {
483
+ var tokens = [];
484
+ var i = 0;
485
+ while (i < str.length) {
486
+ var char = str[i];
487
+ if (char === "*" || char === "+" || char === "?") {
488
+ tokens.push({ type: "MODIFIER", index: i, value: str[i++] });
489
+ continue;
490
+ }
491
+ if (char === "\\") {
492
+ tokens.push({ type: "ESCAPED_CHAR", index: i++, value: str[i++] });
493
+ continue;
494
+ }
495
+ if (char === "{") {
496
+ tokens.push({ type: "OPEN", index: i, value: str[i++] });
497
+ continue;
498
+ }
499
+ if (char === "}") {
500
+ tokens.push({ type: "CLOSE", index: i, value: str[i++] });
501
+ continue;
502
+ }
503
+ if (char === ":") {
504
+ var name = "";
505
+ var j = i + 1;
506
+ while (j < str.length) {
507
+ var code = str.charCodeAt(j);
508
+ if (
509
+ // `0-9`
510
+ (code >= 48 && code <= 57) ||
511
+ // `A-Z`
512
+ (code >= 65 && code <= 90) ||
513
+ // `a-z`
514
+ (code >= 97 && code <= 122) ||
515
+ // `_`
516
+ code === 95) {
517
+ name += str[j++];
518
+ continue;
519
+ }
520
+ break;
521
+ }
522
+ if (!name)
523
+ throw new TypeError("Missing parameter name at " + i);
524
+ tokens.push({ type: "NAME", index: i, value: name });
525
+ i = j;
526
+ continue;
527
+ }
528
+ if (char === "(") {
529
+ var count = 1;
530
+ var pattern = "";
531
+ var j = i + 1;
532
+ if (str[j] === "?") {
533
+ throw new TypeError("Pattern cannot start with \"?\" at " + j);
534
+ }
535
+ while (j < str.length) {
536
+ if (str[j] === "\\") {
537
+ pattern += str[j++] + str[j++];
538
+ continue;
539
+ }
540
+ if (str[j] === ")") {
541
+ count--;
542
+ if (count === 0) {
543
+ j++;
544
+ break;
545
+ }
546
+ }
547
+ else if (str[j] === "(") {
548
+ count++;
549
+ if (str[j + 1] !== "?") {
550
+ throw new TypeError("Capturing groups are not allowed at " + j);
551
+ }
552
+ }
553
+ pattern += str[j++];
554
+ }
555
+ if (count)
556
+ throw new TypeError("Unbalanced pattern at " + i);
557
+ if (!pattern)
558
+ throw new TypeError("Missing pattern at " + i);
559
+ tokens.push({ type: "PATTERN", index: i, value: pattern });
560
+ i = j;
561
+ continue;
562
+ }
563
+ tokens.push({ type: "CHAR", index: i, value: str[i++] });
564
+ }
565
+ tokens.push({ type: "END", index: i, value: "" });
566
+ return tokens;
567
+ }
568
+ /**
569
+ * Parse a string for the raw tokens.
570
+ */
571
+ function parse(str, options) {
572
+ if (options === void 0) { options = {}; }
573
+ var tokens = lexer(str);
574
+ var _a = options.prefixes, prefixes = _a === void 0 ? "./" : _a;
575
+ var defaultPattern = "[^" + escapeString(options.delimiter || "/#?") + "]+?";
576
+ var result = [];
577
+ var key = 0;
578
+ var i = 0;
579
+ var path = "";
580
+ var tryConsume = function (type) {
581
+ if (i < tokens.length && tokens[i].type === type)
582
+ return tokens[i++].value;
583
+ };
584
+ var mustConsume = function (type) {
585
+ var value = tryConsume(type);
586
+ if (value !== undefined)
587
+ return value;
588
+ var _a = tokens[i], nextType = _a.type, index = _a.index;
589
+ throw new TypeError("Unexpected " + nextType + " at " + index + ", expected " + type);
590
+ };
591
+ var consumeText = function () {
592
+ var result = "";
593
+ var value;
594
+ // tslint:disable-next-line
595
+ while ((value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR"))) {
596
+ result += value;
597
+ }
598
+ return result;
599
+ };
600
+ while (i < tokens.length) {
601
+ var char = tryConsume("CHAR");
602
+ var name = tryConsume("NAME");
603
+ var pattern = tryConsume("PATTERN");
604
+ if (name || pattern) {
605
+ var prefix = char || "";
606
+ if (prefixes.indexOf(prefix) === -1) {
607
+ path += prefix;
608
+ prefix = "";
609
+ }
610
+ if (path) {
611
+ result.push(path);
612
+ path = "";
613
+ }
614
+ result.push({
615
+ name: name || key++,
616
+ prefix: prefix,
617
+ suffix: "",
618
+ pattern: pattern || defaultPattern,
619
+ modifier: tryConsume("MODIFIER") || ""
620
+ });
621
+ continue;
622
+ }
623
+ var value = char || tryConsume("ESCAPED_CHAR");
624
+ if (value) {
625
+ path += value;
626
+ continue;
627
+ }
628
+ if (path) {
629
+ result.push(path);
630
+ path = "";
631
+ }
632
+ var open = tryConsume("OPEN");
633
+ if (open) {
634
+ var prefix = consumeText();
635
+ var name_1 = tryConsume("NAME") || "";
636
+ var pattern_1 = tryConsume("PATTERN") || "";
637
+ var suffix = consumeText();
638
+ mustConsume("CLOSE");
639
+ result.push({
640
+ name: name_1 || (pattern_1 ? key++ : ""),
641
+ pattern: name_1 && !pattern_1 ? defaultPattern : pattern_1,
642
+ prefix: prefix,
643
+ suffix: suffix,
644
+ modifier: tryConsume("MODIFIER") || ""
645
+ });
646
+ continue;
647
+ }
648
+ mustConsume("END");
649
+ }
650
+ return result;
651
+ }
652
+ /**
653
+ * Escape a regular expression string.
654
+ */
655
+ function escapeString(str) {
656
+ return str.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
657
+ }
658
+ /**
659
+ * Get the flags for a regexp from the options.
660
+ */
661
+ function flags(options) {
662
+ return options && options.sensitive ? "" : "i";
663
+ }
664
+ /**
665
+ * Pull out keys from a regexp.
666
+ */
667
+ function regexpToRegexp(path, keys) {
668
+ if (!keys)
669
+ return path;
670
+ var groupsRegex = /\((?:\?<(.*?)>)?(?!\?)/g;
671
+ var index = 0;
672
+ var execResult = groupsRegex.exec(path.source);
673
+ while (execResult) {
674
+ keys.push({
675
+ // Use parenthesized substring match if available, index otherwise
676
+ name: execResult[1] || index++,
677
+ prefix: "",
678
+ suffix: "",
679
+ modifier: "",
680
+ pattern: ""
681
+ });
682
+ execResult = groupsRegex.exec(path.source);
683
+ }
684
+ return path;
685
+ }
686
+ /**
687
+ * Transform an array into a regexp.
688
+ */
689
+ function arrayToRegexp(paths, keys, options) {
690
+ var parts = paths.map(function (path) { return pathToRegexp(path, keys, options).source; });
691
+ return new RegExp("(?:" + parts.join("|") + ")", flags(options));
692
+ }
693
+ /**
694
+ * Create a path regexp from string input.
695
+ */
696
+ function stringToRegexp(path, keys, options) {
697
+ return tokensToRegexp(parse(path, options), keys, options);
698
+ }
699
+ /**
700
+ * Expose a function for taking tokens and returning a RegExp.
701
+ */
702
+ function tokensToRegexp(tokens, keys, options) {
703
+ if (options === void 0) { options = {}; }
704
+ var _a = options.strict, strict = _a === void 0 ? false : _a, _b = options.start, start = _b === void 0 ? true : _b, _c = options.end, end = _c === void 0 ? true : _c, _d = options.encode, encode = _d === void 0 ? function (x) { return x; } : _d;
705
+ var endsWith = "[" + escapeString(options.endsWith || "") + "]|$";
706
+ var delimiter = "[" + escapeString(options.delimiter || "/#?") + "]";
707
+ var route = start ? "^" : "";
708
+ // Iterate over the tokens and create our regexp string.
709
+ for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {
710
+ var token = tokens_1[_i];
711
+ if (typeof token === "string") {
712
+ route += escapeString(encode(token));
713
+ }
714
+ else {
715
+ var prefix = escapeString(encode(token.prefix));
716
+ var suffix = escapeString(encode(token.suffix));
717
+ if (token.pattern) {
718
+ if (keys)
719
+ keys.push(token);
720
+ if (prefix || suffix) {
721
+ if (token.modifier === "+" || token.modifier === "*") {
722
+ var mod = token.modifier === "*" ? "?" : "";
723
+ route += "(?:" + prefix + "((?:" + token.pattern + ")(?:" + suffix + prefix + "(?:" + token.pattern + "))*)" + suffix + ")" + mod;
724
+ }
725
+ else {
726
+ route += "(?:" + prefix + "(" + token.pattern + ")" + suffix + ")" + token.modifier;
727
+ }
728
+ }
729
+ else {
730
+ route += "(" + token.pattern + ")" + token.modifier;
731
+ }
732
+ }
733
+ else {
734
+ route += "(?:" + prefix + suffix + ")" + token.modifier;
735
+ }
736
+ }
737
+ }
738
+ if (end) {
739
+ if (!strict)
740
+ route += delimiter + "?";
741
+ route += !options.endsWith ? "$" : "(?=" + endsWith + ")";
742
+ }
743
+ else {
744
+ var endToken = tokens[tokens.length - 1];
745
+ var isEndDelimited = typeof endToken === "string"
746
+ ? delimiter.indexOf(endToken[endToken.length - 1]) > -1
747
+ : // tslint:disable-next-line
748
+ endToken === undefined;
749
+ if (!strict) {
750
+ route += "(?:" + delimiter + "(?=" + endsWith + "))?";
751
+ }
752
+ if (!isEndDelimited) {
753
+ route += "(?=" + delimiter + "|" + endsWith + ")";
754
+ }
755
+ }
756
+ return new RegExp(route, flags(options));
757
+ }
758
+ /**
759
+ * Normalize the given path string, returning a regular expression.
760
+ *
761
+ * An empty array can be passed in for the keys, which will hold the
762
+ * placeholder key descriptions. For example, using `/user/:id`, `keys` will
763
+ * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
764
+ */
765
+ function pathToRegexp(path, keys, options) {
766
+ if (path instanceof RegExp)
767
+ return regexpToRegexp(path, keys);
768
+ if (Array.isArray(path))
769
+ return arrayToRegexp(path, keys, options);
770
+ return stringToRegexp(path, keys, options);
771
+ }
772
+
773
+ const debug = browser("sq:useBigStat");
774
+ const LOADING = "...";
775
+ const debugQuery = (query, variables, getStat) => {
776
+ const res = sn(query, variables);
777
+ if (!(res === null || res === void 0 ? void 0 : res.data) && !res.loading) {
778
+ console.error("issue getting stat:", res);
779
+ }
780
+ const stat = getStat(res);
781
+ return { ...stat, loading: res.loading };
782
+ };
783
+ const referralsCountQuery = (programId,
784
+ // locale
785
+ _, status) => {
786
+ const programFilter = programId === "classic"
787
+ ? { programId_exists: false }
788
+ : { programId_eq: programId };
789
+ const convertedFilter = status && status == "converted"
790
+ ? { dateConverted_exists: true }
791
+ : status && status == "started"
792
+ ? { dateConverted_exists: false }
793
+ : {};
794
+ const queryFilter = { ...programFilter, ...convertedFilter };
795
+ return debugQuery(dist.gql `
796
+ query ($queryFilter: ReferralFilterInput) {
797
+ viewer {
798
+ ... on User {
799
+ referrals(filter: $queryFilter) {
800
+ totalCount
801
+ }
802
+ }
803
+ }
804
+ }
805
+ `, { queryFilter }, (res) => {
806
+ var _a, _b, _c, _d, _e, _f, _g;
807
+ return ({
808
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
809
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
810
+ });
811
+ });
812
+ };
813
+ const programGoalsQuery = (programId, locale, metricType, goalId) => {
814
+ // Confirm this behaviour
815
+ if (programId === "classic")
816
+ return null;
817
+ return debugQuery(dist.gql `
818
+ query {
819
+ viewer {
820
+ ... on User {
821
+ programGoals {
822
+ goalId
823
+ programId
824
+ count
825
+ conversionCount
826
+ }
827
+ }
828
+ }
829
+ }
830
+ `, { programId, metricType, goalId, locale }, (res) => {
831
+ var _a, _b, _c, _d, _e, _f;
832
+ const goal = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.programGoals) === null || _c === void 0 ? void 0 : _c.filter((goal) => goal.goalId === goalId && goal.programId === programId);
833
+ return {
834
+ value: ((_d = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _d === void 0 ? void 0 : _d[metricType]) || 0,
835
+ statvalue: ((_f = (_e = goal === null || goal === void 0 ? void 0 : goal[0]) === null || _e === void 0 ? void 0 : _e[metricType]) === null || _f === void 0 ? void 0 : _f.toString()) || 0,
836
+ };
837
+ });
838
+ };
839
+ const customFieldsQuery = (_programId, locale, fieldName, goalId) => {
840
+ return debugQuery(dist.gql `
841
+ query {
842
+ viewer {
843
+ ... on User {
844
+ customFields
845
+ }
846
+ }
847
+ }
848
+ `, { fieldName, goalId, locale }, (res) => {
849
+ var _a, _b, _c;
850
+ const customField = (_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.customFields) === null || _c === void 0 ? void 0 : _c[fieldName];
851
+ return {
852
+ value: customField || 0,
853
+ statvalue: (customField === null || customField === void 0 ? void 0 : customField.toString()) || "0",
854
+ };
855
+ });
856
+ };
857
+ const referralsMonthQuery = (programId) => {
858
+ const programFilter = programId === "classic"
859
+ ? { programId_exists: false }
860
+ : { programId_eq: programId };
861
+ const filter = {
862
+ ...programFilter,
863
+ dateReferralStarted_timeframe: "this_month",
864
+ };
865
+ return debugQuery(dist.gql `
866
+ query ($filter: ReferralFilterInput) {
867
+ viewer {
868
+ ... on User {
869
+ referrals(filter: $filter) {
870
+ totalCount
871
+ }
872
+ }
873
+ }
874
+ }
875
+ `, { filter }, (res) => {
876
+ var _a, _b, _c, _d, _e, _f, _g;
877
+ return ({
878
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
879
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
880
+ });
881
+ });
882
+ };
883
+ const referralsWeekQuery = (programId) => {
884
+ const programFilter = programId === "classic"
885
+ ? { programId_exists: false }
886
+ : { programId_eq: programId };
887
+ const filter = {
888
+ ...programFilter,
889
+ dateReferralStarted_timeframe: "this_month",
890
+ };
891
+ return debugQuery(dist.gql `
892
+ query ($filter: ReferralFilterInput) {
893
+ viewer {
894
+ ... on User {
895
+ referrals(filter: $filter) {
896
+ totalCount
897
+ }
898
+ }
899
+ }
900
+ }
901
+ `, { filter }, (res) => {
902
+ var _a, _b, _c, _d, _e, _f, _g;
903
+ return ({
904
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.referrals) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
905
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.referrals) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
906
+ });
907
+ });
908
+ };
909
+ const rewardsCountQuery = (programId,
910
+ // locale
911
+ _, global = "") => {
912
+ return debugQuery(dist.gql `
913
+ query ($programId: ID) {
914
+ viewer {
915
+ ... on User {
916
+ rewards(filter: { programId_eq: $programId }) {
917
+ totalCount
918
+ }
919
+ }
920
+ }
921
+ }
922
+ `, {
923
+ programId: !global && programId !== "classic" ? programId : null,
924
+ }, (res) => {
925
+ var _a, _b, _c, _d, _e, _f, _g;
926
+ return ({
927
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
928
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
929
+ });
930
+ });
931
+ };
932
+ const rewardsCountFilteredQuery = (programId,
933
+ // locale
934
+ _, type, unit, status, global = "") => {
935
+ const statusFilter = status ? { status } : null;
936
+ return debugQuery(dist.gql `
937
+ query (
938
+ $programId: ID
939
+ $unit: String
940
+ $type: RewardType
941
+ $statusFilter: RewardStatusFilterInput
942
+ ) {
943
+ viewer {
944
+ ... on User {
945
+ rewards(
946
+ filter: {
947
+ programId_eq: $programId
948
+ type_eq: $type
949
+ unit_eq: $unit
950
+ statuses_eq: $statusFilter
951
+ }
952
+ ) {
953
+ totalCount
954
+ }
955
+ }
956
+ }
957
+ }
958
+ `, {
959
+ programId: !global && programId !== "classic" ? programId : null,
960
+ unit,
961
+ type,
962
+ statusFilter,
963
+ }, (res) => {
964
+ var _a, _b, _c, _d, _e, _f, _g;
965
+ return ({
966
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
967
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
968
+ });
969
+ });
970
+ };
971
+ const integrationRewardsCountFilteredQuery = (programId,
972
+ // locale
973
+ _, status, global = "") => {
974
+ const statusFilter = status ? { status } : null;
975
+ return debugQuery(dist.gql `
976
+ query ($programId: ID, $statusFilter: RewardStatusFilterInput) {
977
+ viewer {
978
+ ... on User {
979
+ rewards(
980
+ filter: {
981
+ programId_eq: $programId
982
+ type_eq: INTEGRATION
983
+ statuses_eq: $statusFilter
984
+ }
985
+ ) {
986
+ totalCount
987
+ }
988
+ }
989
+ }
990
+ }
991
+ `, {
992
+ programId: !global && programId !== "classic" ? programId : null,
993
+ statusFilter,
994
+ }, (res) => {
995
+ var _a, _b, _c, _d, _e, _f, _g;
996
+ return ({
997
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
998
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
999
+ });
1000
+ });
1001
+ };
1002
+ const rewardsMonthQuery = (programId,
1003
+ // locale
1004
+ _, global = "") => {
1005
+ return debugQuery(dist.gql `
1006
+ query ($programId: ID) {
1007
+ viewer {
1008
+ ... on User {
1009
+ rewards(
1010
+ filter: {
1011
+ programId_eq: $programId
1012
+ dateGiven_timeframe: "this_month"
1013
+ }
1014
+ ) {
1015
+ totalCount
1016
+ }
1017
+ }
1018
+ }
1019
+ }
1020
+ `, {
1021
+ programId: !global && programId !== "classic" ? programId : null,
1022
+ }, (res) => {
1023
+ var _a, _b, _c, _d, _e, _f, _g;
1024
+ return ({
1025
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
1026
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
1027
+ });
1028
+ });
1029
+ };
1030
+ const rewardsWeekQuery = (programId,
1031
+ // locale
1032
+ _, global = "") => {
1033
+ return debugQuery(dist.gql `
1034
+ query ($programId: ID) {
1035
+ viewer {
1036
+ ... on User {
1037
+ rewards(
1038
+ filter: {
1039
+ programId_eq: $programId
1040
+ dateGiven_timeframe: "this_week"
1041
+ }
1042
+ ) {
1043
+ totalCount
1044
+ }
1045
+ }
1046
+ }
1047
+ }
1048
+ `, {
1049
+ programId: !global && programId !== "classic" ? programId : null,
1050
+ }, (res) => {
1051
+ var _a, _b, _c, _d, _e, _f, _g;
1052
+ return ({
1053
+ value: ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewards) === null || _c === void 0 ? void 0 : _c.totalCount) || 0,
1054
+ statvalue: (_g = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.viewer) === null || _e === void 0 ? void 0 : _e.rewards) === null || _f === void 0 ? void 0 : _f.totalCount) === null || _g === void 0 ? void 0 : _g.toString(),
1055
+ });
1056
+ });
1057
+ };
1058
+ const rewardsRedeemedQuery = (programId, locale, type, unit, global = "") => {
1059
+ return debugQuery(dist.gql `
1060
+ query (
1061
+ $programId: ID
1062
+ $type: RewardType
1063
+ $unit: String!
1064
+ $locale: RSLocale
1065
+ ) {
1066
+ fallback: formatRewardPrettyValue(
1067
+ value: 0
1068
+ unit: $unit
1069
+ locale: $locale
1070
+ formatType: UNIT_FORMATTED
1071
+ )
1072
+ viewer: viewer {
1073
+ ... on User {
1074
+ rewardBalanceDetails(
1075
+ programId: $programId
1076
+ filter: { type_eq: $type, unit_eq: $unit }
1077
+ locale: $locale
1078
+ ) {
1079
+ ... on CreditRewardBalance {
1080
+ prettyRedeemedCredit
1081
+ }
1082
+ }
1083
+ }
1084
+ }
1085
+ }
1086
+ `, {
1087
+ programId: !global && programId !== "classic" ? programId : null,
1088
+ type,
1089
+ unit,
1090
+ locale,
1091
+ }, (res) => {
1092
+ var _a, _b, _c, _d, _e;
1093
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
1094
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
1095
+ return {
1096
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyRedeemedCredit) || 0,
1097
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyRedeemedCredit) || fallback,
1098
+ };
1099
+ });
1100
+ };
1101
+ const rewardsAssignedQuery = (programId, locale, type, unit, global = "") => {
1102
+ return debugQuery(dist.gql `
1103
+ query (
1104
+ $programId: ID
1105
+ $type: RewardType
1106
+ $unit: String!
1107
+ $locale: RSLocale
1108
+ ) {
1109
+ fallback: formatRewardPrettyValue(
1110
+ value: 0
1111
+ unit: $unit
1112
+ locale: $locale
1113
+ formatType: UNIT_FORMATTED
1114
+ )
1115
+ viewer: viewer {
1116
+ ... on User {
1117
+ rewardBalanceDetails(
1118
+ programId: $programId
1119
+ filter: { type_eq: $type, unit_eq: $unit }
1120
+ locale: $locale
1121
+ ) {
1122
+ ... on CreditRewardBalance {
1123
+ prettyAssignedCredit
1124
+ }
1125
+ }
1126
+ }
1127
+ }
1128
+ }
1129
+ `, {
1130
+ programId: !global && programId !== "classic" ? programId : null,
1131
+ type,
1132
+ unit,
1133
+ locale,
1134
+ }, (res) => {
1135
+ var _a, _b, _c, _d, _e;
1136
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
1137
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
1138
+ return {
1139
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAssignedCredit) || 0,
1140
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAssignedCredit) || fallback,
1141
+ };
1142
+ });
1143
+ };
1144
+ const rewardsAvailableQuery = (programId, locale, type, unit, global = "") => {
1145
+ return debugQuery(dist.gql `
1146
+ query (
1147
+ $programId: ID
1148
+ $type: RewardType
1149
+ $unit: String!
1150
+ $locale: RSLocale
1151
+ ) {
1152
+ fallback: formatRewardPrettyValue(
1153
+ value: 0
1154
+ unit: $unit
1155
+ locale: $locale
1156
+ formatType: UNIT_FORMATTED
1157
+ )
1158
+ viewer: viewer {
1159
+ ... on User {
1160
+ rewardBalanceDetails(
1161
+ programId: $programId
1162
+ filter: { type_eq: $type, unit_eq: $unit }
1163
+ locale: $locale
1164
+ ) {
1165
+ ... on CreditRewardBalance {
1166
+ prettyAvailableValue
1167
+ }
1168
+ }
1169
+ }
1170
+ }
1171
+ }
1172
+ `, {
1173
+ programId: !global && programId !== "classic" ? programId : null,
1174
+ type,
1175
+ unit,
1176
+ locale,
1177
+ }, (res) => {
1178
+ var _a, _b, _c, _d, _e;
1179
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
1180
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
1181
+ return {
1182
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
1183
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
1184
+ };
1185
+ });
1186
+ };
1187
+ const parseRewardValueFormat = {
1188
+ prettyValue: "UNIT_FORMATTED",
1189
+ value: "NUMBER_UNFORMATTED",
1190
+ };
1191
+ const rewardsBalanceQuery = (programId, locale, type, unit, format = "prettyValue", global = "") => {
1192
+ var _a;
1193
+ return debugQuery(dist.gql `
1194
+ query (
1195
+ $programId: ID
1196
+ $type: RewardType!
1197
+ $unit: String!
1198
+ $format: RewardValueFormatType!
1199
+ $locale: RSLocale
1200
+ ) {
1201
+ fallback: formatRewardPrettyValue(
1202
+ value: 0
1203
+ unit: $unit
1204
+ locale: $locale
1205
+ formatType: $format
1206
+ )
1207
+ viewer: viewer {
1208
+ ... on User {
1209
+ rewardBalanceDetails(
1210
+ programId: $programId
1211
+ filter: { type_eq: $type, unit_eq: $unit }
1212
+ locale: $locale
1213
+ ) {
1214
+ ... on CreditRewardBalance {
1215
+ prettyAvailableValue(formatType: $format)
1216
+ }
1217
+ }
1218
+ }
1219
+ }
1220
+ }
1221
+ `, {
1222
+ programId: !global && programId !== "classic" ? programId : null,
1223
+ type,
1224
+ unit,
1225
+ format: (_a = parseRewardValueFormat[format]) !== null && _a !== void 0 ? _a : "UNIT_FORMATTED",
1226
+ locale,
1227
+ }, (res) => {
1228
+ var _a, _b, _c, _d, _e;
1229
+ const arr = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.viewer) === null || _b === void 0 ? void 0 : _b.rewardBalanceDetails;
1230
+ const fallback = (_c = res.data) === null || _c === void 0 ? void 0 : _c.fallback;
1231
+ return {
1232
+ value: ((_d = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _d === void 0 ? void 0 : _d.prettyAvailableValue) || 0,
1233
+ statvalue: ((_e = arr === null || arr === void 0 ? void 0 : arr[0]) === null || _e === void 0 ? void 0 : _e.prettyAvailableValue) || fallback,
1234
+ };
1235
+ });
1236
+ };
1237
+ // functions are of the form (programId: string, ...args: string) => string
1238
+ const queries = {
1239
+ rewardsAssigned: {
1240
+ label: "Rewards Earned",
1241
+ query: rewardsAssignedQuery,
1242
+ },
1243
+ rewardsRedeemed: {
1244
+ label: "Rewards Paid",
1245
+ query: rewardsRedeemedQuery,
1246
+ },
1247
+ rewardsAvailable: {
1248
+ label: "Rewards Available",
1249
+ query: rewardsAvailableQuery,
1250
+ },
1251
+ referralsCount: {
1252
+ label: "Referrals - Count",
1253
+ query: referralsCountQuery,
1254
+ },
1255
+ referralsMonth: {
1256
+ label: "Referrals - This Month",
1257
+ query: referralsMonthQuery,
1258
+ },
1259
+ referralsWeek: {
1260
+ label: "Referrals - This Week",
1261
+ query: referralsWeekQuery,
1262
+ },
1263
+ rewardsCount: {
1264
+ label: "Rewards",
1265
+ query: rewardsCountQuery,
1266
+ },
1267
+ rewardsCountFiltered: {
1268
+ label: "Rewards",
1269
+ query: rewardsCountFilteredQuery,
1270
+ },
1271
+ integrationRewardsCountFiltered: {
1272
+ label: "Rewards",
1273
+ query: integrationRewardsCountFilteredQuery,
1274
+ },
1275
+ rewardsMonth: {
1276
+ label: "Rewards - This Month",
1277
+ query: rewardsMonthQuery,
1278
+ },
1279
+ rewardsWeek: {
1280
+ label: "Rewards - This Week",
1281
+ query: rewardsWeekQuery,
1282
+ },
1283
+ rewardBalance: {
1284
+ label: "Balance - Credit Earned",
1285
+ query: rewardsBalanceQuery,
1286
+ },
1287
+ programGoals: {
1288
+ label: "Program Goals",
1289
+ query: programGoalsQuery,
1290
+ },
1291
+ customFields: {
1292
+ label: "Custom Fields",
1293
+ query: customFieldsQuery,
1294
+ },
1295
+ };
1296
+ // this should be exposed in documentation somehow
1297
+ const StatPaths = [
1298
+ { name: "programGoals", route: "/(programGoals)/:metricType/:goalId" },
1299
+ { name: "customFields", route: "/(customFields)/:customField" },
1300
+ { name: "referralsCount", route: "/(referralsCount)/:status?" },
1301
+ { name: "referralsMonth", route: "/(referralsMonth)" },
1302
+ { name: "referralsWeek", route: "/(referralsWeek)" },
1303
+ { name: "rewardsCount", route: "/(rewardsCount)/:global?" },
1304
+ { name: "rewardsMonth", route: "/(rewardsMonth)/:global?" },
1305
+ { name: "rewardsWeek", route: "/(rewardsWeek)/:global?" },
1306
+ {
1307
+ name: "rewardsCountFiltered",
1308
+ route: "/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
1309
+ },
1310
+ {
1311
+ name: "integrationRewardsCountFiltered",
1312
+ route: "/(integrationRewardsCountFiltered)/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?",
1313
+ },
1314
+ {
1315
+ name: "rewardsAssigned",
1316
+ route: "/(rewardsAssigned)/:statType/:unit/:global?",
1317
+ },
1318
+ {
1319
+ name: "rewardsRedeemed",
1320
+ route: "/(rewardsRedeemed)/:statType/:unit/:global?",
1321
+ },
1322
+ {
1323
+ name: "rewardsAvailable",
1324
+ route: "/(rewardsAvailable)/:statType/:unit/:global?",
1325
+ },
1326
+ {
1327
+ name: "rewardBalance",
1328
+ route: "/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?",
1329
+ },
1330
+ ];
1331
+ const StatPatterns = StatPaths.map((pattern) => pathToRegexp(pattern.route));
1332
+ function useBigStat(props) {
1333
+ var _a;
1334
+ const { statType, flexReverse, alignment, programId = M(), } = props;
1335
+ const locale = An();
1336
+ const userIdent = ie();
1337
+ const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1338
+ if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1339
+ return {
1340
+ props: {
1341
+ value: 0,
1342
+ statvalue: "!!!",
1343
+ flexReverse,
1344
+ alignment,
1345
+ loading: false,
1346
+ },
1347
+ label: "BAD PROP TYPE",
1348
+ };
1349
+ }
1350
+ const result = re.exec(statType);
1351
+ const queryName = result[1];
1352
+ const statPath = StatPaths.find((pattern) => pattern.name === queryName);
1353
+ // Get a list all possible keys in path
1354
+ const keys = [];
1355
+ const regex = pathToRegexp(statPath === null || statPath === void 0 ? void 0 : statPath.route, keys, {
1356
+ strict: false,
1357
+ sensitive: false,
1358
+ end: true,
1359
+ });
1360
+ const allQueryArgs = regex.exec(statType);
1361
+ // Retrieve all key values in order including undefined
1362
+ const queryArgs = keys.map((_, i) => allQueryArgs[i + 1] ? decodeURIComponent(allQueryArgs[i + 1]) : undefined);
1363
+ // remove query name from list
1364
+ queryArgs.shift();
1365
+ const label = queries[queryName].label;
1366
+ const stat = (userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt) && queries[queryName].query(programId, locale, ...queryArgs);
1367
+ debug("stat:", stat);
1368
+ return {
1369
+ props: {
1370
+ value: stat === null || stat === void 0 ? void 0 : stat.value,
1371
+ statvalue: (_a = stat === null || stat === void 0 ? void 0 : stat.statvalue) !== null && _a !== void 0 ? _a : LOADING,
1372
+ loading: stat === null || stat === void 0 ? void 0 : stat.loading,
1373
+ flexReverse,
1374
+ alignment,
1375
+ },
1376
+ label,
1377
+ };
1378
+ }
1379
+
1380
+ function useDemoBigStat(props) {
1381
+ const { statType } = props;
1382
+ const re = useMemo(() => StatPatterns.find((re) => re.exec(statType)), [statType]);
1383
+ if (!(re === null || re === void 0 ? void 0 : re.exec(statType))) {
1384
+ return {
1385
+ props: {
1386
+ value: 0,
1387
+ statvalue: "!!!",
1388
+ loading: false,
1389
+ flexReverse: false,
1390
+ alignment: "center",
1391
+ },
1392
+ label: "BAD PROP TYPE",
1393
+ };
1394
+ }
1395
+ const result = re.exec(statType);
1396
+ const queryName = result[1];
1397
+ const label = queries[queryName].label;
1398
+ return {
1399
+ props: cjs({
1400
+ statvalue: "12345",
1401
+ value: 0,
1402
+ flexReverse: false,
1403
+ alignment: "center",
1404
+ }, props.demoData || {}, { arrayMerge: (_, a) => a }),
1405
+ label: label !== null && label !== void 0 ? label : "Demo Label",
1406
+ };
1407
+ }
1408
+
1409
+ function StatContainerView(props, children) {
1410
+ const divideSpace = () => {
1411
+ const spaceValue = getComputedStyle(document.documentElement).getPropertyValue(`--sl-spacing-${props.space}`);
1412
+ return `${Math.floor(parseInt(spaceValue) / 2)}rem`;
1413
+ };
1414
+ // Dependent on props, not feasiable to move out
1415
+ const style = {
1416
+ StatContainer: {
1417
+ width: "100%",
1418
+ display: props.display || "grid",
1419
+ "grid-template-columns": "repeat(auto-fill, minmax(130px, auto))",
1420
+ gap: divideSpace(),
1421
+ // First set of styles applies when shadow DOM is disabled, second set applies when shadow DOM is enabled
1422
+ "& > *": {
1423
+ "border-right": "1px solid #EAEAEA",
1424
+ "padding-right": divideSpace(),
1425
+ },
1426
+ "& > :last-child": {
1427
+ "border-right": "none",
1428
+ },
1429
+ "& > ::slotted(*)": {
1430
+ "border-right": "1px solid #EAEAEA",
1431
+ "padding-right": divideSpace(),
1432
+ height: "100%",
1433
+ },
1434
+ "& > ::slotted(*:last-child)": {
1435
+ "border-right": "none",
1436
+ },
1437
+ },
1438
+ StatFrame: {
1439
+ display: "flex",
1440
+ },
1441
+ BorderFix: {
1442
+ "border-right": "1px solid transparent",
1443
+ width: "0px",
1444
+ "margin-left": "-1px",
1445
+ },
1446
+ };
1447
+ const sheet = createStyleSheet(style);
1448
+ const styleString = sheet.toString();
1449
+ return (h("div", { class: sheet.classes.StatFrame },
1450
+ h("div", { class: sheet.classes.StatContainer },
1451
+ h("style", { type: "text/css" }, styleString),
1452
+ children),
1453
+ h("div", { class: sheet.classes.BorderFix })));
1454
+ }
1455
+
450
1456
  function PortalChangePasswordView(props) {
451
1457
  const { states, callbacks } = props;
452
1458
  const style = {
@@ -517,7 +1523,7 @@ function PortalChangePasswordView(props) {
517
1523
  h("style", { type: "text/css" }, styleString))));
518
1524
  }
519
1525
 
520
- const style$3 = {
1526
+ const style$4 = {
521
1527
  Wrapper: AuthWrapper,
522
1528
  Column: AuthColumn,
523
1529
  ForgotButtonContainer: {
@@ -538,28 +1544,28 @@ const vanillaStyle$1 = `
538
1544
  display: none;
539
1545
  }
540
1546
  `;
541
- const sheet$3 = createStyleSheet(style$3);
542
- const styleString$3 = sheet$3.toString();
1547
+ const sheet$4 = createStyleSheet(style$4);
1548
+ const styleString$4 = sheet$4.toString();
543
1549
  function PortalLoginView(props) {
544
1550
  const { states, callbacks, content } = props;
545
- return (h("div", { class: sheet$3.classes.Wrapper },
1551
+ return (h("div", { class: sheet$4.classes.Wrapper },
546
1552
  h("style", { type: "text/css" },
547
1553
  vanillaStyle$1,
548
- styleString$3),
1554
+ styleString$4),
549
1555
  h(TextSpanView, { type: "h3" }, content.pageLabel),
550
- h("sl-form", { class: sheet$3.classes.Column, "onSl-submit": callbacks.submit },
1556
+ h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit },
551
1557
  props.states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
552
1558
  h("div", { part: "erroralert-text" }, props.states.error))),
553
1559
  h("sl-input", { exportparts: "label: input-label", type: "email", name: "/email", label: content.emailLabel || "Email", disabled: states.loading, required: true }),
554
1560
  h("div", null,
555
1561
  h("sl-input", { exportparts: "label: input-label", type: "password", name: "/password", label: content.passwordLabel || "Password", disabled: states.loading, required: true }),
556
- h("div", { class: sheet$3.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
557
- h("div", { class: sheet$3.classes.ButtonsContainer },
1562
+ h("div", { class: sheet$4.classes.ForgotButtonContainer }, content.forgotPasswordButton)),
1563
+ h("div", { class: sheet$4.classes.ButtonsContainer },
558
1564
  h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Login"),
559
1565
  content.secondaryButton))));
560
1566
  }
561
1567
 
562
- const style$4 = {
1568
+ const style$5 = {
563
1569
  Wrapper: { ...AuthWrapper, "max-width": "600px" },
564
1570
  Column: AuthColumn,
565
1571
  HostBlock: HostBlock,
@@ -585,20 +1591,20 @@ sqm-portal-register {
585
1591
  display: none;
586
1592
  }
587
1593
  `;
588
- const sheet$4 = createStyleSheet(style$4);
589
- const styleString$4 = sheet$4.toString();
1594
+ const sheet$5 = createStyleSheet(style$5);
1595
+ const styleString$5 = sheet$5.toString();
590
1596
  function PortalRegisterView(props) {
591
1597
  var _a, _b, _c, _d, _e, _f, _g, _h;
592
1598
  const { states, refs, callbacks, content } = props;
593
1599
  if (states.error) {
594
1600
  window.scrollTo({ top: 0, left: 0, behavior: "smooth" });
595
1601
  }
596
- return (h("div", { class: sheet$4.classes.Wrapper },
1602
+ return (h("div", { class: sheet$5.classes.Wrapper },
597
1603
  h("style", { type: "text/css" },
598
1604
  vanillaStyle$2,
599
- styleString$4),
1605
+ styleString$5),
600
1606
  h(TextSpanView, { type: "h3" }, content.pageLabel),
601
- h("sl-form", { class: sheet$4.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
1607
+ h("sl-form", { class: sheet$5.classes.Column, "onSl-submit": callbacks.submit, ref: (el) => (refs.formRef.current = el), novalidate: true },
602
1608
  states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
603
1609
  h("div", { part: "erroralert-text" }, props.states.error))),
604
1610
  content.formData,
@@ -611,7 +1617,7 @@ function PortalRegisterView(props) {
611
1617
  return "Must be a valid email address";
612
1618
  }
613
1619
  } }, (((_b = (_a = states.validationState) === null || _a === void 0 ? void 0 : _a.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ? {
614
- class: sheet$4.classes.ErrorStyle,
1620
+ class: sheet$5.classes.ErrorStyle,
615
1621
  helpText: ((_d = (_c = states.validationState) === null || _c === void 0 ? void 0 : _c.validationErrors) === null || _d === void 0 ? void 0 : _d.email) ||
616
1622
  "Cannot be empty",
617
1623
  }
@@ -619,18 +1625,18 @@ function PortalRegisterView(props) {
619
1625
  !states.hideInputs && (h("sqm-password-field", { fieldLabel: content.passwordLabel, "enable-validation": states.enablePasswordValidation })),
620
1626
  content.passwordField,
621
1627
  !states.hideInputs && states.confirmPassword && (h("sl-input", Object.assign({ exportparts: "label: input-label", type: "password", name: "/confirmPassword", label: content.confirmPasswordLabel, disabled: states.loading, required: true }, (((_f = (_e = states.validationState) === null || _e === void 0 ? void 0 : _e.validationErrors) === null || _f === void 0 ? void 0 : _f.confirmPassword) ? {
622
- class: sheet$4.classes.ErrorStyle,
1628
+ class: sheet$5.classes.ErrorStyle,
623
1629
  helpText: ((_h = (_g = states.validationState) === null || _g === void 0 ? void 0 : _g.validationErrors) === null || _h === void 0 ? void 0 : _h.confirmPassword) ||
624
1630
  "Cannot be empty",
625
1631
  }
626
1632
  : [])))),
627
1633
  content.terms,
628
- h("div", { class: sheet$4.classes.ButtonsContainer },
1634
+ h("div", { class: sheet$5.classes.ButtonsContainer },
629
1635
  h("sl-button", { submit: true, loading: states.loading, exportparts: "base: primarybutton-base", type: "primary" }, content.submitLabel || "Register"),
630
1636
  content.secondaryButton))));
631
1637
  }
632
1638
 
633
- const style$5 = {
1639
+ const style$6 = {
634
1640
  Description: {
635
1641
  "& input[type=checkbox]": {
636
1642
  display: "none",
@@ -669,13 +1675,13 @@ const style$5 = {
669
1675
  },
670
1676
  },
671
1677
  };
672
- const sheet$5 = createStyleSheet(style$5);
673
- const styleString$5 = sheet$5.toString();
1678
+ const sheet$6 = createStyleSheet(style$6);
1679
+ const styleString$6 = sheet$6.toString();
674
1680
  function Details(props) {
675
1681
  const rid = Math.random().toString(36).slice(2);
676
- return (h("div", null,
677
- h("style", { type: "text/css" }, styleString$5),
678
- h("span", { class: sheet$5.classes.Description },
1682
+ return (h("div", { style: { opacity: props.opacity } },
1683
+ h("style", { type: "text/css" }, styleString$6),
1684
+ h("span", { class: sheet$6.classes.Description },
679
1685
  h("input", { type: "checkbox", id: "details-" + rid }),
680
1686
  h("label", { class: "details", htmlFor: "details-" + rid },
681
1687
  h("sl-icon", { name: "chevron-down" })),
@@ -688,9 +1694,16 @@ const Gift = () => {
688
1694
  h("path", { d: "M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z", fill: "#F2C94C" }),
689
1695
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#BE9720" }),
690
1696
  h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M14 2.70949C14 3.59565 12.6694 4.93746 12 5H9V16H7.00179V5H4.58792C3.21247 4.70182 2 3.64537 2 2.52072C2 1.42474 2.47603 0.556701 3.34184 0.182041C4.16921 -0.175986 5.12452 0.0203328 5.87976 0.544666C6.80676 1.18825 7.32679 2.3963 7.79856 3.49226C7.83996 3.58845 7.88099 3.68378 7.9219 3.77778C7.96173 3.68865 8.00186 3.59793 8.0425 3.50608C8.50995 2.44948 9.04359 1.24325 9.9404 0.59563C10.7332 0.0231438 11.741 -0.193157 12.6121 0.198945C13.5129 0.604397 14 1.53453 14 2.70949ZM10.6123 1.5C11.0928 1.15305 11.668 1.09012 12.1597 1.5C12.5879 1.85694 12.6108 2.02497 12.6658 2.42926L12.6755 2.5C12.6755 3.09851 12.1597 4 11.6439 4C11.2785 4 10.9914 3.99691 10.7224 3.99402C10.2319 3.98875 9.80131 3.98412 9.06496 4C9.20533 3.72786 9.31743 3.46669 9.42434 3.21761C9.71026 2.55143 9.95907 1.97176 10.6123 1.5ZM4.93861 1.5C4.70607 1.33855 4.17281 1.4106 3.95166 1.5063C3.76894 1.58537 3.49602 1.82658 3.49602 2.52072C3.49602 3.19524 4.58792 3.77778 4.58792 3.77778C4.58792 3.77778 5.45441 4 7.00179 4C6.47506 2.69451 5.7289 2.04867 4.93861 1.5Z", fill: "#EB5757" })));
1697
+ };
1698
+ const GreyGift = () => {
1699
+ return (h("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
1700
+ h("path", { d: "M15 5H12.4508H9V16H13.5C14.0523 16 14.5 15.5523 14.5 15V9H15C15.5523 9 16 8.55228 16 8V6C16 5.44772 15.5523 5 15 5Z", fill: "#C9C9C9" }),
1701
+ h("path", { d: "M1.5 9V15C1.5 15.5523 1.94772 16 2.5 16H7V5H4.64242H1C0.447715 5 0 5.44772 0 6V8C0 8.55228 0.447715 9 1 9H1.5Z", fill: "#C9C9C9" }),
1702
+ h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M1.5 9V10H14.5V9H1.5Z", fill: "#A5A3A3" }),
1703
+ 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" })));
691
1704
  };
692
1705
 
693
- const style$6 = {
1706
+ const style$7 = {
694
1707
  ProgressBar: {
695
1708
  "& .progress-bar": {
696
1709
  height: "0",
@@ -702,17 +1715,34 @@ const style$6 = {
702
1715
  lineHeight: "45px",
703
1716
  userSelect: "none",
704
1717
  },
1718
+ "& .progress-bar.repeatable-steps": {
1719
+ marginLeft: "var(--sl-spacing-x-small)",
1720
+ },
705
1721
  "&[data-steps]": {
706
1722
  marginTop: "calc(-1*var(--sl-spacing-x-small))",
707
1723
  },
708
1724
  "&[data-steps] .progress-bar": {
709
1725
  marginTop: "var(--sl-spacing-medium)",
710
1726
  },
711
- "&[data-expired] .progress-bar": {
712
- filter: "grayscale(1)",
1727
+ "&[data-expired] .progress::after": {
1728
+ backgroundColor: "#bfbfbf",
713
1729
  },
714
- "& .progress-bar.repeatable-steps": {
715
- marginLeft: "var(--sl-spacing-x-small)",
1730
+ "&[data-expired] .filled::after": {
1731
+ backgroundColor: "#bfbfbf",
1732
+ },
1733
+ "&[data-complete] .filled::after .progress::after": {
1734
+ backgroundColor: "var(--sl-color-primary-200)",
1735
+ },
1736
+ "& .gift": {
1737
+ textAlign: "center",
1738
+ marginLeft: "-100px",
1739
+ marginRight: "-100px",
1740
+ position: "relative",
1741
+ top: "-18px",
1742
+ },
1743
+ "& .gift.start": {
1744
+ transform: "scale(80%)",
1745
+ top: "-20px",
716
1746
  },
717
1747
  "& .filled:after": {
718
1748
  content: '""',
@@ -780,37 +1810,19 @@ const style$6 = {
780
1810
  display: "flex",
781
1811
  width: "100%",
782
1812
  height: "4px",
783
- borderRadius: "4px",
784
- backgroundColor: "#E0E0E0",
785
- },
786
- "& .gift.bw": {
787
- filter: "grayscale(100%)",
788
- },
789
- "& .gift.start": {
790
- transform: "scale(80%)",
791
- top: "-20px",
792
- },
793
- "& .gift": {
794
- textAlign: "center",
795
- marginLeft: "-100px",
796
- marginRight: "-100px",
797
- position: "relative",
798
- top: "-18px",
1813
+ borderRadius: "4px",
1814
+ backgroundColor: "#E0E0E0",
799
1815
  },
800
1816
  },
801
1817
  };
802
- const sheet$6 = createStyleSheet(style$6, { classNamePrefix: "sqm-prog-bar" });
803
- const styleString$6 = sheet$6.toString();
1818
+ const sheet$7 = createStyleSheet(style$7, { classNamePrefix: "sqm-prog-bar" });
1819
+ const styleString$7 = sheet$7.toString();
804
1820
  function ProgressBarView(props) {
805
- var _a;
806
- const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, expired = false, finite = 0, } = props;
1821
+ const { progress = 0, goal = 1, steps = false, progressBarUnit = "", repeatable = false, complete = false, expired = false, finite = 0, opacity = "1", } = props;
807
1822
  let aggregate = buildProgressBar(repeatable, steps, props);
808
1823
  const { columns, items } = aggregate;
809
- //@ts-ignore
810
- console.log("PROGRESS BAR PROPS " + ((_a = props === null || props === void 0 ? void 0 : props.content) === null || _a === void 0 ? void 0 : _a.cardTitle));
811
- console.log({ props });
812
- return (h("div", { class: sheet$6.classes.ProgressBar, "data-expired": expired, "data-steps": steps, "data-done": goal <= progress },
813
- h("style", { type: "text/css" }, styleString$6),
1824
+ return (h("div", { class: sheet$7.classes.ProgressBar, "data-expired": expired, "data-complete": complete, "data-steps": steps, "data-done": goal <= progress, style: { opacity: opacity } },
1825
+ h("style", { type: "text/css" }, styleString$7),
814
1826
  h("div", { class: (!Boolean(finite) && progress >= 2 * goal) ||
815
1827
  (Boolean(finite) && progress > 2 * goal)
816
1828
  ? "progress-bar repeatable-steps"
@@ -838,7 +1850,7 @@ function buildProgressBar(repeatable, steps, props) {
838
1850
  }
839
1851
  }
840
1852
  }
841
- function addSteps({ progress, goal }) {
1853
+ function addSteps({ progress, goal, expired }) {
842
1854
  const items = [];
843
1855
  const columns = [];
844
1856
  let ratio = 1 / goal;
@@ -861,21 +1873,22 @@ function addSteps({ progress, goal }) {
861
1873
  columns.push("0fr");
862
1874
  items.push(h("div", { class: "filled" }));
863
1875
  items.push(h("div", { class: "progress bg" }, goal));
864
- items.push(h("div", { class: "gift" }, h(Gift, null)));
1876
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
865
1877
  }
866
1878
  // reward fail
867
1879
  else {
868
1880
  columns.push("0fr");
869
1881
  items.push(h("div", { class: "remain" }));
870
1882
  items.push(h("div", { class: "empty bg" }, goal));
871
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
1883
+ items.push(h("div", { class: "gift" },
1884
+ h(GreyGift, null)));
872
1885
  }
873
1886
  return {
874
1887
  items,
875
1888
  columns: columns.join(" "),
876
1889
  };
877
1890
  }
878
- function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
1891
+ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, expired, }) {
879
1892
  let repetitions = Math.floor(progress / goal);
880
1893
  let ratio = ((progress % goal) / goal) * 0.5;
881
1894
  const items = [];
@@ -887,11 +1900,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
887
1900
  items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progressBarUnit + progress));
888
1901
  items.push(h("div", { class: "remain" }));
889
1902
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
890
- items.push(h("div", { class: progress == goal ? "gift" : "gift bw" },
891
- h(Gift, null)));
1903
+ items.push(h("div", { class: "gift" }, progress == goal ? expired ? h(GreyGift, null) : h(Gift, null) : h(GreyGift, null)));
892
1904
  items.push(h("div", { class: "remain" }));
893
1905
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
894
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
1906
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
895
1907
  }
896
1908
  // single repetition
897
1909
  else if (repetitions == 1) {
@@ -899,18 +1911,18 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
899
1911
  "0.5fr 0fr 0fr " + ratio + "fr 0fr " + (0.5 - ratio) + "fr 0fr 0fr";
900
1912
  items.push(h("div", { class: "filled" }));
901
1913
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
902
- items.push(h("div", { class: "gift" }, h(Gift, null)));
1914
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
903
1915
  items.push(h("div", { class: "filled" }));
904
1916
  items.push(h("div", { class: progress == goal ? "progress top bg" : "progress top" }, progress == goal ? "" : progressBarUnit + progress));
905
1917
  items.push(h("div", { class: "remain" }));
906
1918
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * 2));
907
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
1919
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
908
1920
  }
909
1921
  // finite repetition hit
910
1922
  else if (finite && repetitions >= finite) {
911
1923
  if (repetitions > 2) {
912
1924
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 2)));
913
- items.push(h("div", { class: "gift start" }, h(Gift, null)));
1925
+ items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
914
1926
  columns = "0fr 0fr 0.5fr 0fr 0fr 0.5fr 0fr 0fr";
915
1927
  }
916
1928
  else {
@@ -918,10 +1930,10 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
918
1930
  }
919
1931
  items.push(h("div", { class: "filled" }));
920
1932
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (finite - 1)));
921
- items.push(h("div", { class: "gift" }, h(Gift, null)));
1933
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
922
1934
  items.push(h("div", { class: "filled" }));
923
1935
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * finite));
924
- items.push(h("div", { class: "gift" }, h(Gift, null)));
1936
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
925
1937
  }
926
1938
  // multiple repetitions
927
1939
  else {
@@ -932,19 +1944,19 @@ function addLinearRepeatable({ progress, goal, progressBarUnit, finite, }) {
932
1944
  (0.5 - ratio) +
933
1945
  "fr 0fr 0fr";
934
1946
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions - 1)));
935
- items.push(h("div", { class: "gift start" }, h(Gift, null)));
1947
+ items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
936
1948
  items.push(h("div", { class: "filled" }));
937
1949
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * repetitions));
938
- items.push(h("div", { class: "gift" }, h(Gift, null)));
1950
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
939
1951
  items.push(h("div", { class: "filled" }));
940
1952
  items.push(h("div", { class: progress == goal * repetitions ? "progress top bg" : "progress top" }, progress == goal * repetitions ? "" : progressBarUnit + progress));
941
1953
  items.push(h("div", { class: "remain" }));
942
1954
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal * (repetitions + 1)));
943
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
1955
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
944
1956
  }
945
1957
  return { items, columns };
946
1958
  }
947
- function addStepsRepeatable({ progress, goal, finite, }) {
1959
+ function addStepsRepeatable({ progress, goal, finite, expired, }) {
948
1960
  const items = [];
949
1961
  const columns = [];
950
1962
  let repetitions = Math.floor(progress / goal);
@@ -959,14 +1971,14 @@ function addStepsRepeatable({ progress, goal, finite, }) {
959
1971
  columns.push("0fr");
960
1972
  items.push(h("div", { class: "remain" }));
961
1973
  items.push(h("div", { class: "empty bg" }, goal));
962
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
1974
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
963
1975
  }
964
1976
  else if (i == goal * 2) {
965
1977
  columns.push("0fr");
966
1978
  columns.push("0fr");
967
1979
  items.push(h("div", { class: "remain" }));
968
1980
  items.push(h("div", { class: "empty bg" }, goal * 2));
969
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
1981
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
970
1982
  }
971
1983
  else {
972
1984
  items.push(h("div", { class: "remain" }));
@@ -977,7 +1989,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
977
1989
  columns.push("0fr");
978
1990
  items.push(h("div", { class: "filled" }));
979
1991
  items.push(h("div", { class: "progress bg" }, i));
980
- items.push(h("div", { class: "gift" }, h(Gift, null)));
1992
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
981
1993
  }
982
1994
  else {
983
1995
  items.push(h("div", { class: "filled" }));
@@ -992,7 +2004,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
992
2004
  columns.push("0fr");
993
2005
  columns.push("0fr");
994
2006
  items.push(h("div", { class: "progress bg" }, goal * (finite - 2)));
995
- items.push(h("div", { class: "gift start" }, h(Gift, null)));
2007
+ items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
996
2008
  }
997
2009
  for (let i = 1; i < goal * 2 + 1; i++) {
998
2010
  columns.push(ratio + "fr");
@@ -1002,21 +2014,21 @@ function addStepsRepeatable({ progress, goal, finite, }) {
1002
2014
  columns.push("0fr");
1003
2015
  items.push(h("div", { class: "remain" }));
1004
2016
  items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
1005
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
2017
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
1006
2018
  }
1007
2019
  }
1008
2020
  else if (i == goal) {
1009
2021
  columns.push("0fr");
1010
2022
  items.push(h("div", { class: "filled" }));
1011
2023
  items.push(h("div", { class: "progress bg" }, goal * (finite - 1)));
1012
- items.push(h("div", { class: "gift" }, h(Gift, null)));
2024
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
1013
2025
  }
1014
2026
  else if (i == goal * 2) {
1015
2027
  columns.push("0fr");
1016
2028
  columns.push("0fr");
1017
2029
  items.push(h("div", { class: "filled" }));
1018
2030
  items.push(h("div", { class: "progress bg" }, goal * finite));
1019
- items.push(h("div", { class: "gift" }, h(Gift, null)));
2031
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
1020
2032
  }
1021
2033
  else {
1022
2034
  items.push(h("div", { class: "filled" }));
@@ -1031,7 +2043,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
1031
2043
  columns.push("0fr");
1032
2044
  columns.push("0fr");
1033
2045
  items.push(h("div", { class: "progress bg" }, goal * (repetitions - 1)));
1034
- items.push(h("div", { class: "gift start" }, h(Gift, null)));
2046
+ items.push(h("div", { class: "gift start" }, expired ? h(GreyGift, null) : h(Gift, null)));
1035
2047
  for (let i = 1; i < goal * 2 + 1; i++) {
1036
2048
  columns.push(ratio + "fr");
1037
2049
  columns.push("0fr");
@@ -1040,7 +2052,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
1040
2052
  columns.push("0fr");
1041
2053
  items.push(h("div", { class: "filled" }));
1042
2054
  items.push(h("div", { class: "progress bg" }, i + goal * (repetitions - 1)));
1043
- items.push(h("div", { class: "gift" }, h(Gift, null)));
2055
+ items.push(h("div", { class: "gift" }, expired ? h(GreyGift, null) : h(Gift, null)));
1044
2056
  }
1045
2057
  else {
1046
2058
  items.push(h("div", { class: "filled" }));
@@ -1053,7 +2065,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
1053
2065
  columns.push("0fr");
1054
2066
  items.push(h("div", { class: "remain" }));
1055
2067
  items.push(h("div", { class: "empty bg" }, i + goal * (repetitions - 1)));
1056
- items.push(h("div", { class: "gift bw" }, h(Gift, null)));
2068
+ items.push(h("div", { class: "gift" }, h(GreyGift, null)));
1057
2069
  }
1058
2070
  else {
1059
2071
  items.push(h("div", { class: "remain" }));
@@ -1068,7 +2080,7 @@ function addStepsRepeatable({ progress, goal, finite, }) {
1068
2080
  }
1069
2081
  return { items, columns: columns.join(" ") };
1070
2082
  }
1071
- function addLinear({ progress, goal, progressBarUnit, }) {
2083
+ function addLinear({ progress, goal, progressBarUnit, expired, }) {
1072
2084
  const items = [];
1073
2085
  let columns = "";
1074
2086
  const ratio = progress / goal;
@@ -1080,8 +2092,7 @@ function addLinear({ progress, goal, progressBarUnit, }) {
1080
2092
  : progressBarUnit + clamp(progress, 0, goal)));
1081
2093
  items.push(h("div", { class: "remain" }));
1082
2094
  items.push(h("div", { class: "progress bg" }, progressBarUnit + goal));
1083
- items.push(h("div", { class: clamp(progress, 0, goal) == goal ? "gift" : "gift bw" },
1084
- h(Gift, null)));
2095
+ items.push(h("div", { class: "gift" }, clamp(progress, 0, goal) == goal ? (expired ? (h(GreyGift, null)) : (h(Gift, null))) : (h(GreyGift, null))));
1085
2096
  return { items, columns };
1086
2097
  }
1087
2098
  function clamp(x, min, max) {
@@ -1102,7 +2113,7 @@ const arrow_left_right = () => {
1102
2113
  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" })));
1103
2114
  };
1104
2115
 
1105
- const style$7 = {
2116
+ const style$8 = {
1106
2117
  TaskCard: {
1107
2118
  display: "inline-block",
1108
2119
  width: "100%",
@@ -1111,7 +2122,7 @@ const style$7 = {
1111
2122
  boxSizing: "border-box",
1112
2123
  background: "var(--sl-color-neutral-0)",
1113
2124
  border: "1px solid var(--sl-color-neutral-200)",
1114
- borderRadius: "var(--sl-border-radius-medium)",
2125
+ borderRadius: "var(--sl-border-radius-large)",
1115
2126
  boxShadow: "1px 2px 4px rgba(211, 211, 211, 0.2)",
1116
2127
  fontSize: "var(--sl-font-size-small)",
1117
2128
  lineHeight: "var(--sl-line-height-dense)",
@@ -1144,7 +2155,7 @@ const style$7 = {
1144
2155
  padding: "var(--sl-spacing-medium)",
1145
2156
  color: "var(--sl-color-primary-600)",
1146
2157
  border: "1px solid var(--sl-color-neutral-200)",
1147
- borderRadius: "var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",
2158
+ borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
1148
2159
  borderBottom: "none",
1149
2160
  background: "var(--sl-color-primary-50)",
1150
2161
  fontWeight: "var(--sl-font-weight-semibold)",
@@ -1161,7 +2172,7 @@ const style$7 = {
1161
2172
  padding: "var(--sl-spacing-medium)",
1162
2173
  color: "var(--sl-color-warning-600)",
1163
2174
  border: "1px solid var(--sl-color-neutral-200)",
1164
- borderRadius: "var(--sl-border-radius-medium) var(--sl-border-radius-medium) 0 0",
2175
+ borderRadius: "var(--sl-border-radius-large) var(--sl-border-radius-large) 0 0",
1165
2176
  borderBottom: "none",
1166
2177
  background: "var(--sl-color-warning-50)",
1167
2178
  fontWeight: "var(--sl-font-weight-semibold)",
@@ -1210,6 +2221,12 @@ const style$7 = {
1210
2221
  },
1211
2222
  },
1212
2223
  Footer: {
2224
+ "&[data-subdue] .success": {
2225
+ color: "var(--sl-color-primary-300)",
2226
+ },
2227
+ "&[data-subdue] .neutral": {
2228
+ color: "var(--sl-color-neutral-300)",
2229
+ },
1213
2230
  display: "flex",
1214
2231
  "& .icon": {
1215
2232
  fontSize: "var(--sl-font-size-xx-small)",
@@ -1231,7 +2248,6 @@ const style$7 = {
1231
2248
  marginLeft: "auto",
1232
2249
  "&::part(base)": {
1233
2250
  color: "var(--sl-color-neutral-0)",
1234
- borderRadius: "var(--sl-border-radius-medium)",
1235
2251
  },
1236
2252
  "&.disabled::part(base)": {
1237
2253
  border: "1px solid var(--sl-color-primary-400)",
@@ -1248,16 +2264,13 @@ const style$7 = {
1248
2264
  "& .datetime": {
1249
2265
  display: "block",
1250
2266
  marginTop: "var(--sl-spacing-xx-small)",
1251
- color: "var(--sl-color-neutral-400)",
1252
2267
  },
1253
2268
  },
1254
2269
  };
1255
- const sheet$7 = createStyleSheet(style$7);
1256
- const styleString$7 = sheet$7.toString();
2270
+ const sheet$8 = createStyleSheet(style$8);
2271
+ const styleString$8 = sheet$8.toString();
1257
2272
  function TaskCardView(props) {
1258
- var _a, _b, _c;
1259
- console.log("TASK CARD PROPS " + ((_a = props === null || props === void 0 ? void 0 : props.content) === null || _a === void 0 ? void 0 : _a.cardTitle));
1260
- console.log({ props });
2273
+ var _a, _b;
1261
2274
  const { callbacks, states, content } = props;
1262
2275
  const dateStart = content.rewardDuration &&
1263
2276
  luxon.DateTime.fromISO(content.rewardDuration.split("/")[0]);
@@ -1265,11 +2278,10 @@ function TaskCardView(props) {
1265
2278
  luxon.DateTime.fromISO(content.rewardDuration.split("/")[1]);
1266
2279
  const dateToday = luxon.DateTime.now();
1267
2280
  if (content.displayDuration) {
1268
- const start = (_b = content.displayDuration.split("/")) === null || _b === void 0 ? void 0 : _b[0];
1269
- const end = (_c = content.displayDuration.split("/")) === null || _c === void 0 ? void 0 : _c[1];
2281
+ const start = (_a = content.displayDuration.split("/")) === null || _a === void 0 ? void 0 : _a[0];
2282
+ const end = (_b = content.displayDuration.split("/")) === null || _b === void 0 ? void 0 : _b[1];
1270
2283
  const displayDateStart = start ? luxon.DateTime.fromISO(start) : dateToday;
1271
2284
  const displayDateEnd = end ? luxon.DateTime.fromISO(end) : dateToday;
1272
- console.log({ displayDateStart, dateToday, displayDateEnd });
1273
2285
  if (dateToday < displayDateStart || dateToday > displayDateEnd)
1274
2286
  return h("span", null);
1275
2287
  }
@@ -1291,11 +2303,11 @@ function TaskCardView(props) {
1291
2303
  margin-bottom: var(--sl-spacing-large);
1292
2304
  }
1293
2305
  `;
1294
- return (h("div", { class: sheet$7.classes.TaskCard },
2306
+ return (h("div", { class: sheet$8.classes.TaskCard },
1295
2307
  h("style", { type: "text/css" },
1296
- styleString$7,
2308
+ styleString$8,
1297
2309
  vanillaStyle),
1298
- !states.loading && taskNotStarted && (h("div", { class: sheet$7.classes.NotStarted },
2310
+ !states.loading && taskNotStarted && (h("div", { class: sheet$8.classes.NotStarted },
1299
2311
  h("span", { class: "icon" },
1300
2312
  h("sl-icon", { name: "info-circle-fill" })),
1301
2313
  intl.formatMessage({
@@ -1306,7 +2318,7 @@ function TaskCardView(props) {
1306
2318
  .setLocale(luxonLocale(states.locale))
1307
2319
  .toLocaleString(luxon.DateTime.DATETIME_MED),
1308
2320
  }))),
1309
- !states.loading && taskEnded && (h("div", { class: sheet$7.classes.Ended },
2321
+ !states.loading && taskEnded && (h("div", { class: sheet$8.classes.Ended },
1310
2322
  h("span", { class: "icon" },
1311
2323
  h("sl-icon", { name: "exclamation-triangle-fill" })),
1312
2324
  intl.formatMessage({
@@ -1319,14 +2331,14 @@ function TaskCardView(props) {
1319
2331
  }))),
1320
2332
  h("div", { style: {
1321
2333
  borderRadius: taskUnavailable &&
1322
- "0 0 var(--sl-border-radius-medium) var(--sl-border-radius-medium)",
2334
+ "0 0 var(--sl-border-radius-large) var(--sl-border-radius-large)",
1323
2335
  }, class: taskUnavailable
1324
2336
  ? "main expired"
1325
2337
  : taskComplete
1326
2338
  ? "main complete"
1327
2339
  : "main" },
1328
- h("div", { class: taskComplete || taskUnavailable ? "container subdued" : "container" },
1329
- h("div", { class: sheet$7.classes.Header }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
2340
+ h("div", { class: "container", "data-subdue": taskComplete || taskUnavailable },
2341
+ h("div", { class: sheet$8.classes.Header, style: { opacity: taskComplete || taskUnavailable ? "0.45" : "1" } }, states.loading ? (h("sl-skeleton", { style: { width: "22%", margin: "0" } })) : (h("div", null,
1330
2342
  showComplete && (h("span", { class: taskUnavailable ? "icon neutral" : "icon" }, taskComplete ? checkmark_filled$1 : checkmark_circle$1)),
1331
2343
  h("span", { class: "value" }, content.rewardAmount),
1332
2344
  h("span", { class: "text" }, content.rewardUnit)))),
@@ -1338,22 +2350,23 @@ function TaskCardView(props) {
1338
2350
  ? "var(--sl-spacing-xx-large)"
1339
2351
  : ""
1340
2352
  : "",
2353
+ opacity: taskComplete || taskUnavailable ? "0.45" : "1",
1341
2354
  } }, content.cardTitle)),
1342
- states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.description && h(Details, Object.assign({}, props))),
1343
- content.showProgressBar && states.loading ? (h("sl-skeleton", { style: { margin: "var(--sl-spacing-medium) 0" } })) : (content.showProgressBar && (h(ProgressBarView, Object.assign({}, props.content, props.states, { complete: taskComplete, expired: taskUnavailable })))),
1344
- h("div", { class: sheet$7.classes.Footer }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
2355
+ 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" })))),
2356
+ 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 })))),
2357
+ h("div", { class: sheet$8.classes.Footer, "data-subdue": taskComplete || taskUnavailable }, states.loading ? (h("sl-skeleton", { style: { width: "25%", marginLeft: "auto" } })) : (h("div", { style: { display: "contents" } },
1345
2358
  h("span", { class: "text" },
1346
2359
  content.repeatable && (h("div", null,
1347
2360
  h("span", { class: repetitions > 0
1348
2361
  ? taskUnavailable
1349
2362
  ? "icon neutral"
1350
2363
  : "icon success"
1351
- : "icon" }, arrow_left_right$1),
2364
+ : "icon neutral", "data-subdue": taskComplete || taskUnavailable }, arrow_left_right$1),
1352
2365
  h("span", { class: repetitions > 0
1353
2366
  ? taskUnavailable
1354
2367
  ? "neutral"
1355
2368
  : "success"
1356
- : "" }, intl.formatMessage({
2369
+ : "neutral", "data-subdue": taskComplete || taskUnavailable }, intl.formatMessage({
1357
2370
  id: "completedMessage",
1358
2371
  defaultMessage: content.completedText,
1359
2372
  }, {
@@ -1362,7 +2375,7 @@ function TaskCardView(props) {
1362
2375
  ? Math.min(repetitions, content.finite)
1363
2376
  : repetitions,
1364
2377
  })))),
1365
- dateEnd && !taskUnavailable && (h("span", { class: "datetime" }, intl.formatMessage({
2378
+ dateEnd && !taskUnavailable && (h("span", { class: "datetime neutral", "data-subdue": taskComplete || taskUnavailable }, intl.formatMessage({
1366
2379
  id: "expiryMessage",
1367
2380
  defaultMessage: content.expiryMessage,
1368
2381
  }, {
@@ -1374,12 +2387,15 @@ function TaskCardView(props) {
1374
2387
  ? "action neutral"
1375
2388
  : taskComplete
1376
2389
  ? "action disabled"
1377
- : "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable }, content.buttonText))))))));
2390
+ : "action", type: "primary", size: "small", onClick: callbacks.onClick, loading: states.loadingEvent, disabled: taskComplete || taskUnavailable, style: {
2391
+ opacity: taskComplete || taskUnavailable ? "0.45" : "1",
2392
+ } }, content.buttonText))))))));
1378
2393
  }
1379
2394
 
1380
2395
  function ReferralIframeView(props) {
1381
2396
  const { states, data } = props;
1382
2397
  const { content } = states;
2398
+ // dependent on props
1383
2399
  const style = {
1384
2400
  Container: {
1385
2401
  position: "relative",
@@ -1490,370 +2506,373 @@ function ProgressBar({ stageCount, currentStage, }) {
1490
2506
  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 })))));
1491
2507
  }
1492
2508
 
1493
- const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
1494
- function RewardExchangeView(props) {
1495
- const { states, data, callbacks, refs } = props;
1496
- const { selectedItem, selectedStep } = states;
1497
- const stageProgressList = {
1498
- chooseReward: states.content.text.chooseRewardTitle,
1499
- chooseAmount: states.content.text.chooseAmountTitle,
1500
- confirmation: states.content.text.confirmationTitle,
1501
- };
1502
- const style = {
1503
- HostBlock: HostBlock,
1504
- Container: {
1505
- minWidth: "300px",
1506
- position: "relative",
2509
+ const style$9 = {
2510
+ HostBlock: HostBlock,
2511
+ Container: {
2512
+ minWidth: "300px",
2513
+ position: "relative",
2514
+ },
2515
+ FullImage: {
2516
+ objectFit: "contain",
2517
+ maxWidth: "100%",
2518
+ height: "250px",
2519
+ display: "flex",
2520
+ margin: "0 auto",
2521
+ },
2522
+ Select: {
2523
+ "&::part(label)": {
2524
+ // color: "var(--sl-color-primary-500)",
1507
2525
  },
1508
- FullImage: {
1509
- objectFit: "contain",
1510
- maxWidth: "100%",
1511
- height: "250px",
1512
- display: "flex",
1513
- margin: "0 auto",
2526
+ "&::part(menu)": {
2527
+ maxHeight: "50vh",
1514
2528
  },
1515
- Select: {
1516
- "&::part(label)": {
1517
- color: "var(--sl-color-primary-500)",
1518
- },
1519
- "&::part(menu)": {
1520
- maxHeight: "50vh",
1521
- },
1522
- "& sl-menu-item::part(checked-icon)": {
1523
- top: "8px",
1524
- },
1525
- "& sl-menu-item::part(base)": {
1526
- flexDirection: "column",
2529
+ "& sl-menu-item::part(checked-icon)": {
2530
+ top: "8px",
2531
+ },
2532
+ "& sl-menu-item::part(base)": {
2533
+ flexDirection: "column",
2534
+ },
2535
+ "& sl-menu-item::part(base):focus": {
2536
+ background: "transparent",
2537
+ color: "var(--sl-color-gray-700)",
2538
+ },
2539
+ },
2540
+ ProgressBar: {
2541
+ maxWidth: "350px",
2542
+ width: "100%",
2543
+ margin: "auto",
2544
+ marginBottom: "var(--sl-spacing-xxx-large)",
2545
+ "& .text-area": {
2546
+ marginTop: "5px",
2547
+ display: "flex",
2548
+ justifyContent: "center",
2549
+ textAlign: "center",
2550
+ whiteSpace: "nowrap",
2551
+ marginBottom: "6px",
2552
+ "& .text": {
2553
+ marginBottom: "var(--sl-spacing-x-small)",
2554
+ flex: "1 1 0",
1527
2555
  },
1528
- "& sl-menu-item::part(base):focus": {
1529
- background: "transparent",
1530
- color: "var(--sl-color-gray-700)",
2556
+ "& .text.subdued": {
2557
+ color: "var(--sl-color-neutral-200)",
1531
2558
  },
1532
2559
  },
1533
- ProgressBar: {
1534
- maxWidth: "350px",
2560
+ },
2561
+ CardLayout: {
2562
+ display: "flex",
2563
+ width: "100%",
2564
+ borderRadius: "3px",
2565
+ background: "rgba(0, 0, 0, 0)",
2566
+ },
2567
+ Card: {
2568
+ display: "flex",
2569
+ userSelect: "none",
2570
+ height: "120px",
2571
+ "&::part(base)": {
2572
+ boxShadow: "none",
1535
2573
  width: "100%",
1536
- margin: "auto",
1537
- marginBottom: "var(--sl-spacing-xxx-large)",
1538
- "& .text-area": {
1539
- marginTop: "5px",
1540
- display: "flex",
1541
- justifyContent: "center",
1542
- textAlign: "center",
1543
- whiteSpace: "nowrap",
1544
- marginBottom: "6px",
1545
- "& .text": {
1546
- marginBottom: "var(--sl-spacing-x-small)",
1547
- flex: "1 1 0",
1548
- },
1549
- "& .text.subdued": {
1550
- color: "var(--sl-color-neutral-200)",
1551
- },
1552
- },
1553
2574
  },
1554
- CardLayout: {
2575
+ "&::part(body)": {
1555
2576
  display: "flex",
2577
+ padding: 0,
2578
+ },
2579
+ "& .selected": {
2580
+ position: "relative",
2581
+ top: "-2%",
2582
+ left: "100%",
2583
+ color: "var(--sl-color-primary-500)",
2584
+ margin: "-9px",
2585
+ },
2586
+ },
2587
+ Title: {
2588
+ fontSize: "var(--sl-font-size-large)",
2589
+ fontWeight: "var(--sl-font-weight-semibold)",
2590
+ margin: "var(--sl-spacing-large) 0",
2591
+ },
2592
+ Image: {
2593
+ padding: "var(--sl-spacing-small)",
2594
+ minWidth: "96px",
2595
+ maxWidth: "96px",
2596
+ "& .image": {
1556
2597
  width: "100%",
1557
- borderRadius: "3px",
1558
- background: "rgba(0, 0, 0, 0)",
2598
+ height: "100%",
2599
+ objectFit: "contain",
2600
+ borderRadius: "4px",
1559
2601
  },
1560
- Card: {
1561
- display: "flex",
1562
- userSelect: "none",
1563
- height: "120px",
1564
- "&::part(base)": {
1565
- boxShadow: "none",
1566
- width: "100%",
1567
- },
1568
- "&::part(body)": {
1569
- display: "flex",
1570
- padding: 0,
1571
- },
1572
- "& .selected": {
2602
+ "& .image.subdued": {
2603
+ filter: "brightness(0.95)",
2604
+ opacity: "0.5",
2605
+ },
2606
+ },
2607
+ TextArea: {
2608
+ textAlign: "left",
2609
+ padding: "var(--sl-spacing-small)",
2610
+ paddingLeft: "0",
2611
+ "& .title": {
2612
+ fontSize: "var(--sl-font-size-medium)",
2613
+ lineHeight: "var(--sl-line-height-dense)",
2614
+ fontWeight: "600",
2615
+ color: "var(--sl-color-neutral-1000)",
2616
+ display: "-webkit-box",
2617
+ "-webkit-line-clamp": "1",
2618
+ "-webkit-box-orient": "vertical",
2619
+ overflow: "hidden",
2620
+ },
2621
+ "& .amount": {
2622
+ fontSize: "var(--sl-font-size-small)",
2623
+ lineHeight: "var(--sl-line-height-dense)",
2624
+ marginTop: "var(--sl-spacing-x-small)",
2625
+ color: "var(--sl-color-neutral-500)",
2626
+ display: "-webkit-box",
2627
+ "-webkit-line-clamp": "1",
2628
+ "-webkit-box-orient": "vertical",
2629
+ overflow: "hidden",
2630
+ },
2631
+ "& .error": {
2632
+ fontSize: "var(--sl-font-size-small)",
2633
+ lineHeight: "var(--sl-line-height-dense)",
2634
+ marginTop: "var(--sl-spacing-x-small)",
2635
+ fontWeight: "600",
2636
+ color: "var(--sl-color-warning-600)",
2637
+ display: "-webkit-box",
2638
+ "-webkit-line-clamp": "1",
2639
+ "-webkit-box-orient": "vertical",
2640
+ overflow: "hidden",
2641
+ "& .icon": {
1573
2642
  position: "relative",
1574
- top: "-2%",
1575
- left: "100%",
1576
- color: "var(--sl-color-primary-500)",
1577
- margin: "-9px",
2643
+ top: "0.1em",
2644
+ marginRight: "var(--sl-spacing-xx-small)",
1578
2645
  },
1579
2646
  },
1580
- Image: {
1581
- padding: "var(--sl-spacing-small)",
1582
- minWidth: "96px",
1583
- maxWidth: "96px",
1584
- "& .image": {
1585
- width: "100%",
1586
- height: "100%",
1587
- objectFit: "contain",
1588
- borderRadius: "4px",
1589
- },
1590
- "& .image.subdued": {
1591
- filter: "brightness(0.95)",
1592
- opacity: "0.5",
2647
+ },
2648
+ ChooseAmount: {
2649
+ maxWidth: "800px",
2650
+ margin: "auto",
2651
+ "& .wrapper": {
2652
+ display: "flex",
2653
+ gap: "var(--sl-spacing-xx-large)",
2654
+ "@media (max-width: 799px)": {
2655
+ flexDirection: "column",
1593
2656
  },
1594
2657
  },
1595
- Square: {
1596
- width: "120px",
1597
- height: "118px",
1598
- borderRadius: "3px 0 0 3px",
1599
- "& .image": {
1600
- width: "100%",
1601
- height: "100%",
1602
- objectFit: "contain",
1603
- borderRadius: "inherit",
2658
+ "& .image": {
2659
+ width: "50%",
2660
+ objectFit: "contain",
2661
+ maxWidth: "100%",
2662
+ height: "250px",
2663
+ display: "flex",
2664
+ "@media (max-width: 799px)": {
2665
+ width: "auto",
1604
2666
  },
1605
2667
  },
1606
- TextArea: {
1607
- textAlign: "left",
1608
- padding: "var(--sl-spacing-small)",
1609
- paddingLeft: "0",
1610
- "& .title": {
1611
- fontSize: "var(--sl-font-size-medium)",
1612
- lineHeight: "var(--sl-line-height-dense)",
1613
- fontWeight: "600",
1614
- color: "var(--sl-color-neutral-1000)",
1615
- display: "-webkit-box",
1616
- "-webkit-line-clamp": "1",
1617
- "-webkit-box-orient": "vertical",
1618
- overflow: "hidden",
2668
+ "& .text": {
2669
+ width: "50%",
2670
+ maxWidth: "400px",
2671
+ // minWidth: "330px",
2672
+ "@media (max-width: 799px)": {
2673
+ width: "auto",
2674
+ margin: "auto",
1619
2675
  },
1620
- "& .amount": {
1621
- fontSize: "var(--sl-font-size-small)",
1622
- lineHeight: "var(--sl-line-height-dense)",
1623
- marginTop: "var(--sl-spacing-x-small)",
1624
- color: "var(--sl-color-neutral-500)",
1625
- display: "-webkit-box",
1626
- "-webkit-line-clamp": "1",
1627
- "-webkit-box-orient": "vertical",
1628
- overflow: "hidden",
2676
+ },
2677
+ "& .title": {
2678
+ fontSize: "var(--sl-font-size-large)",
2679
+ fontWeight: "var(--sl-font-weight-semibold)",
2680
+ color: "var(--sl-color-neutral-1000)",
2681
+ },
2682
+ "& .points": {
2683
+ fontSize: "var(--sl-font-size-large)",
2684
+ fontWeight: "var(--sl-font-weight-semibold)",
2685
+ color: "var(--sl-color-primary-500)",
2686
+ },
2687
+ "& .description": {
2688
+ fontSize: "var(--sl-font-size-medium)",
2689
+ fontWeight: "var(--sl-font-weight-normal)",
2690
+ color: "var(--sl-color-neutral-500)",
2691
+ margin: "var(--sl-spacing-medium) 0",
2692
+ lineHeight: "var(--sl-line-height-dense)",
2693
+ marginTop: "var(--sl-spacing-xx-small)",
2694
+ },
2695
+ "& .space": {
2696
+ marginBottom: "var(--sl-spacing-xxx-large)",
2697
+ },
2698
+ "& sl-menu-item[disabled]::part(label)": {
2699
+ color: "var(--sl-color-neutral-300)",
2700
+ },
2701
+ "& sl-menu-item[disabled]": {
2702
+ "& .step-cost": {
2703
+ color: "var(--sl-color-neutral-300)",
1629
2704
  },
1630
- "& .error": {
1631
- fontSize: "var(--sl-font-size-small)",
1632
- lineHeight: "var(--sl-line-height-dense)",
1633
- marginTop: "var(--sl-spacing-x-small)",
1634
- fontWeight: "600",
1635
- color: "var(--sl-color-warning-600)",
1636
- display: "-webkit-box",
1637
- "-webkit-line-clamp": "1",
1638
- "-webkit-box-orient": "vertical",
1639
- overflow: "hidden",
1640
- "& .icon": {
1641
- position: "relative",
1642
- top: "0.1em",
1643
- marginRight: "var(--sl-spacing-xx-small)",
1644
- },
2705
+ "& .step-value": {
2706
+ color: "var(--sl-color-neutral-300)",
1645
2707
  },
1646
2708
  },
1647
- ChooseAmount: {
2709
+ },
2710
+ SelectItem: {
2711
+ display: "flex",
2712
+ flexDirection: "column",
2713
+ "&::part(label)": {
2714
+ color: "var(--sl-color-neutral-900)",
2715
+ margin: "0",
2716
+ },
2717
+ "& .step-cost": {
2718
+ color: "var(--sl-color-neutral-500)",
2719
+ marginBottom: "var(--sl-spacing-x-small)",
2720
+ },
2721
+ "& .step-unavailable": {
2722
+ fontSize: "var(--sl-font-size-small)",
2723
+ color: "var(--sl-color-warning-500)",
2724
+ margin: "0",
2725
+ },
2726
+ },
2727
+ Success: {
2728
+ textAlign: "center",
2729
+ "& .title": {
2730
+ fontSize: "var(--sl-font-size-large)",
2731
+ fontWeight: "var(--sl-font-weight-semibold)",
2732
+ color: "var(--sl-color-neutral-1000)",
2733
+ },
2734
+ "& .description": {
2735
+ color: "var(--sl-color-neutral-400)",
2736
+ maxWidth: "350px",
2737
+ margin: "0 auto",
2738
+ lineHeight: "var(--sl-line-height-dense)",
2739
+ marginBottom: "var(--sl-spacing-xx-large)",
2740
+ marginTop: "var(--sl-spacing-xx-small)",
2741
+ },
2742
+ "& .promo": {
2743
+ maxWidth: "350px",
2744
+ margin: "-30px auto var(--sl-spacing-xxx-large) auto",
2745
+ textAlign: "left",
2746
+ color: "var(--sl-color-neutral-700)",
2747
+ },
2748
+ },
2749
+ Grid: {
2750
+ display: "grid",
2751
+ justifyContent: "center",
2752
+ gap: "20px",
2753
+ gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
2754
+ },
2755
+ Confirmation: {
2756
+ maxWidth: "800px",
2757
+ margin: "auto",
2758
+ "& .wrapper": {
1648
2759
  display: "flex",
1649
- alignItems: "center",
1650
- justifyContent: "center",
1651
- margin: "var(--sl-spacing-medium) 0",
1652
- "& .wrapper": {
1653
- display: "flex",
1654
- justifyContent: "center",
1655
- alignItems: "center",
1656
- gap: "var(--sl-spacing-xx-large)",
1657
- "@media (max-width: 799px)": {
1658
- flexDirection: "column",
1659
- },
2760
+ "@media (max-width: 499px)": {
2761
+ flexDirection: "column",
1660
2762
  },
1661
- "& .image": {
1662
- width: "50%",
1663
- objectFit: "contain",
1664
- maxWidth: "100%",
1665
- height: "250px",
2763
+ },
2764
+ "& .reward-item-container": {
2765
+ "@media (max-width: 499px)": {
1666
2766
  display: "flex",
1667
- "@media (max-width: 799px)": {
1668
- width: "auto",
1669
- },
1670
- },
1671
- "& .text": {
1672
- width: "50%",
1673
- maxWidth: "400px",
1674
- minWidth: "330px",
1675
- "@media (max-width: 799px)": {
1676
- width: "auto",
1677
- margin: "auto",
1678
- },
1679
- },
1680
- "& .title": {
1681
- fontSize: "var(--sl-font-size-large)",
1682
- fontWeight: "var(--sl-font-weight-semibold)",
1683
- color: "var(--sl-color-neutral-1000)",
1684
- },
1685
- "& .points": {
1686
- fontSize: "var(--sl-font-size-large)",
1687
- fontWeight: "var(--sl-font-weight-semibold)",
1688
- color: "var(--sl-color-primary-500)",
1689
- },
1690
- "& .description": {
1691
- fontSize: "var(--sl-font-size-medium)",
1692
- fontWeight: "var(--sl-font-weight-normal)",
1693
- color: "var(--sl-color-neutral-500)",
1694
- margin: "var(--sl-spacing-medium) 0",
1695
- lineHeight: "var(--sl-line-height-dense)",
1696
- marginTop: "var(--sl-spacing-xx-small)",
1697
- },
1698
- "& .space": {
1699
- marginBottom: "var(--sl-spacing-xxx-large)",
1700
- },
1701
- "& sl-menu-item[disabled]::part(label)": {
1702
- color: "var(--sl-color-neutral-200)",
1703
- },
1704
- "& sl-menu-item[disabled]": {
1705
- "& .step-cost": {
1706
- color: "var(--sl-color-neutral-200)",
1707
- },
2767
+ flexDirection: "row-reverse",
2768
+ justifyContent: "flex-end",
2769
+ alignItems: "center",
1708
2770
  },
1709
2771
  },
1710
- SelectItem: {
1711
- display: "flex",
1712
- flexDirection: "column",
1713
- "& > .step-cost": {
1714
- color: "var(--sl-color-neutral-400)",
1715
- height: "0",
1716
- marginBottom: "5px",
1717
- },
1718
- "& > .step-value": {
1719
- margin: "0",
2772
+ "& .reward-item-container .reward-title": {
2773
+ paddingBottom: "var(--sl-spacing-medium)",
2774
+ lineHeight: "20px",
2775
+ "@media (max-width: 499px)": {
2776
+ paddingBottom: "none",
2777
+ paddingLeft: "var(--sl-spacing-small)",
1720
2778
  },
1721
2779
  },
1722
- Success: {
1723
- textAlign: "center",
1724
- "& .title": {
1725
- fontSize: "var(--sl-font-size-large)",
1726
- fontWeight: "var(--sl-font-weight-semibold)",
1727
- color: "var(--sl-color-neutral-1000)",
2780
+ "& .padding": {
2781
+ padding: "var(--sl-spacing-medium) 0",
2782
+ "@media (max-width: 499px)": {
2783
+ padding: "var(--sl-spacing-small) 0",
1728
2784
  },
1729
- "& .description": {
1730
- color: "var(--sl-color-neutral-400)",
2785
+ },
2786
+ "& .field": {
2787
+ width: "30%",
2788
+ textTransform: "uppercase",
2789
+ fontSize: "var(--sl-font-size-medium)",
2790
+ fontWeight: "var(--sl-font-weight-normal)",
2791
+ color: "var(--sl-color-neutral-400)",
2792
+ textAlign: "left",
2793
+ paddingRight: "var(--sl-spacing-xxx-large)",
2794
+ "@media (max-width: 499px)": {
1731
2795
  width: "100%",
1732
- maxWidth: "350px",
1733
- margin: "0 auto",
1734
- lineHeight: "var(--sl-line-height-dense)",
1735
- marginBottom: "var(--sl-spacing-xx-large)",
1736
- marginTop: "var(--sl-spacing-xx-small)",
2796
+ paddingRight: "0",
2797
+ paddingBottom: "0",
1737
2798
  },
1738
2799
  },
1739
- Grid: {
1740
- display: "grid",
1741
- justifyContent: "center",
1742
- gap: "20px",
1743
- gridTemplateColumns: "repeat(auto-fill, minmax(300px, 1fr))",
2800
+ "& .value": {
2801
+ fontSize: "var(--sl-font-size-large)",
2802
+ fontWeight: "var(--sl-font-weight-semibold)",
1744
2803
  },
1745
- Confirmation: {
1746
- maxWidth: "800px",
1747
- margin: "auto",
1748
- "& .wrapper": {
1749
- display: "flex",
1750
- "@media (max-width: 499px)": {
1751
- flexDirection: "column",
1752
- },
1753
- },
1754
- "& .reward-item-container": {
1755
- "@media (max-width: 499px)": {
1756
- display: "flex",
1757
- flexDirection: "row-reverse",
1758
- justifyContent: "flex-end",
1759
- alignItems: "center",
1760
- },
1761
- },
1762
- "& .reward-item-container .reward-title": {
1763
- paddingBottom: "var(--sl-spacing-medium)",
1764
- lineHeight: "20px",
1765
- "@media (max-width: 499px)": {
1766
- paddingBottom: "none",
1767
- paddingLeft: "var(--sl-spacing-small)",
1768
- },
1769
- },
1770
- "& .padding": {
1771
- padding: "var(--sl-spacing-medium) 0",
1772
- "@media (max-width: 499px)": {
1773
- padding: "var(--sl-spacing-small) 0",
1774
- },
2804
+ "& .top-border": {
2805
+ borderTop: "1px solid var(--sl-color-neutral-200)",
2806
+ },
2807
+ "& .image": {
2808
+ width: "200px",
2809
+ "@media (max-width: 499px)": {
2810
+ width: "100px",
1775
2811
  },
1776
- "& .field": {
1777
- width: "30%",
1778
- textTransform: "uppercase",
1779
- fontSize: "var(--sl-font-size-medium)",
2812
+ },
2813
+ },
2814
+ Button: {
2815
+ display: "flex",
2816
+ flexWrap: "wrap-reverse",
2817
+ margin: "var(--sl-spacing-medium) 0",
2818
+ "& .cancel": {
2819
+ marginLeft: "auto",
2820
+ marginRight: "var(--sl-spacing-medium)",
2821
+ "&::part(base)": {
1780
2822
  fontWeight: "var(--sl-font-weight-normal)",
1781
- color: "var(--sl-color-neutral-400)",
1782
- textAlign: "left",
1783
- paddingRight: "var(--sl-spacing-xxx-large)",
1784
- "@media (max-width: 499px)": {
1785
- width: "100%",
1786
- paddingRight: "0",
1787
- paddingBottom: "0",
1788
- },
1789
- },
1790
- "& .value": {
1791
- fontSize: "var(--sl-font-size-large)",
1792
- fontWeight: "var(--sl-font-weight-semibold)",
1793
- },
1794
- "& .top-border": {
1795
- borderTop: "1px solid var(--sl-color-neutral-200)",
2823
+ color: "var(--sl-color-neutral-1000)",
1796
2824
  },
1797
- "& .image": {
1798
- width: "200px",
1799
- "@media (max-width: 499px)": {
1800
- width: "100px",
1801
- },
2825
+ "@media (max-width: 499px)": {
2826
+ width: "100%",
2827
+ marginRight: "0",
2828
+ marginTop: "var(--sl-spacing-small)",
1802
2829
  },
1803
2830
  },
1804
- Button: {
1805
- display: "flex",
1806
- flexWrap: "wrap-reverse",
1807
- margin: "var(--sl-spacing-medium) 0",
1808
- "& .cancel": {
1809
- marginLeft: "auto",
1810
- marginRight: "var(--sl-spacing-medium)",
1811
- "&::part(base)": {
1812
- fontWeight: "var(--sl-font-weight-normal)",
1813
- color: "var(--sl-color-neutral-1000)",
1814
- },
1815
- "@media (max-width: 499px)": {
1816
- width: "100%",
1817
- marginRight: "0",
1818
- marginTop: "var(--sl-spacing-small)",
1819
- },
1820
- },
1821
- "& .continue": {
1822
- "&::part(base)": {
1823
- background: "var(--sl-color-primary-500)",
1824
- borderColor: "var(--sl-color-primary-500)",
1825
- fontWeight: "var(--sl-font-weight-normal)",
1826
- color: "var(--sl-color-neutral-0)",
1827
- },
1828
- "@media (max-width: 499px)": {
1829
- width: "100%",
1830
- },
1831
- },
1832
- "& .continue.right": {
1833
- marginLeft: "auto",
2831
+ "& .continue": {
2832
+ "&::part(base)": {
2833
+ background: "var(--sl-color-primary-500)",
2834
+ borderColor: "var(--sl-color-primary-500)",
2835
+ fontWeight: "var(--sl-font-weight-normal)",
2836
+ color: "var(--sl-color-neutral-0)",
1834
2837
  },
1835
- "& .continue.center": {
1836
- margin: "0 auto",
2838
+ "@media (max-width: 499px)": {
2839
+ width: "100%",
1837
2840
  },
1838
2841
  },
1839
- Confetti: {
1840
- pointerEvents: "none",
1841
- position: "absolute",
1842
- width: "100%",
1843
- height: "100%",
1844
- top: "0%",
1845
- left: "0%",
1846
- zIndex: "1",
2842
+ "& .continue.right": {
2843
+ marginLeft: "auto",
2844
+ },
2845
+ "& .continue.center": {
2846
+ margin: "0 auto",
1847
2847
  },
2848
+ },
2849
+ Confetti: {
2850
+ pointerEvents: "none",
2851
+ position: "absolute",
2852
+ width: "100%",
2853
+ height: "100%",
2854
+ top: "0%",
2855
+ left: "0%",
2856
+ zIndex: "1",
2857
+ },
2858
+ };
2859
+ // JSS config
2860
+ const sheet$9 = createStyleSheet(style$9);
2861
+ const styleString$9 = sheet$9.toString();
2862
+ const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
2863
+ function RewardExchangeView(props) {
2864
+ const { states, data, callbacks, refs } = props;
2865
+ const { selectedItem, selectedStep } = states;
2866
+ const stageProgressList = {
2867
+ chooseReward: states.content.text.chooseRewardTitle,
2868
+ chooseAmount: states.content.text.chooseAmountTitle,
2869
+ confirmation: states.content.text.confirmationTitle,
1848
2870
  };
1849
- // JSS config
1850
- const sheet = createStyleSheet(style);
1851
- const styleString = sheet.toString();
1852
2871
  function getInput() {
1853
2872
  var _a, _b, _c;
1854
2873
  const item = states.selectedItem;
1855
2874
  if (!item || (item === null || item === void 0 ? void 0 : item.ruleType) === "FIXED_GLOBAL_REWARD")
1856
- return h("span", null, item === null || item === void 0 ? void 0 : item.prettySourceValue);
2875
+ return h("span", { class: "points" }, item === null || item === void 0 ? void 0 : item.prettySourceValue);
1857
2876
  if (!((_a = item.steps) === null || _a === void 0 ? void 0 : _a.length)) {
1858
2877
  return (h("p", null, intl.formatMessage({
1859
2878
  id: "notEnoughError",
@@ -1862,42 +2881,35 @@ function RewardExchangeView(props) {
1862
2881
  sourceUnit: item.sourceUnit,
1863
2882
  })));
1864
2883
  }
1865
- // console.log("SELECTED ITEM ", states.selectedStep);
1866
- // console.log("CALLBACKS ", callbacks);
1867
- 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.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
2884
+ 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$9.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
1868
2885
  var _a, _b, _c, _d, _e;
1869
2886
  return callbacks.setExchangeState({
1870
2887
  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,
1871
2888
  selectedStep: (_e = (_d = e.detail) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.value,
1872
2889
  });
1873
2890
  } }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
1874
- // console.log(item.steps);
1875
2891
  var _a, _b;
1876
- return (h("sl-menu-item", { value: step, disabled: !step.available },
2892
+ return (h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$9.classes.SelectItem },
1877
2893
  step.prettyDestinationValue,
1878
- " ",
1879
2894
  h("br", null),
1880
- step.unavailableReasonCode && (h("p", { style: {
1881
- fontSize: "var(--sl-font-size-small)",
1882
- color: "var(--sl-color-warning-500)",
1883
- margin: "0",
1884
- } }, intl.formatMessage({
1885
- id: "unavailableCode",
1886
- defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
1887
- }, {
1888
- unavailableReasonCode: step.unavailableReasonCode,
1889
- sourceUnit: item.sourceUnit,
1890
- sourceValue: step.prettySourceValue || item.prettySourceMinValue,
1891
- }))),
1892
- h("div", { class: "step-cost", slot: "suffix" }, step.prettySourceValue)));
2895
+ h("div", { class: "step-cost", slot: "suffix" },
2896
+ step.prettySourceValue,
2897
+ step.unavailableReasonCode && (h("p", { class: "step-unavailable" }, intl.formatMessage({
2898
+ id: "unavailableCode",
2899
+ defaultMessage: (_b = (_a = states.content) === null || _a === void 0 ? void 0 : _a.text) === null || _b === void 0 ? void 0 : _b.notAvailableError,
2900
+ }, {
2901
+ unavailableReasonCode: step.unavailableReasonCode,
2902
+ sourceUnit: item.sourceUnit,
2903
+ sourceValue: step.prettySourceValue || item.prettySourceMinValue,
2904
+ }))))));
1893
2905
  })));
1894
2906
  }
1895
2907
  function chooseReward() {
1896
2908
  var _a;
1897
2909
  return [
1898
2910
  h("div", null,
1899
- h("h2", { style: { margin: "var(--sl-spacing-large) 0" } }, states.content.text.rewardTitle),
1900
- states.loading ? (loading()) : (h("div", { class: sheet.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
2911
+ h("div", { class: sheet$9.classes.Title }, states.content.text.rewardTitle),
2912
+ states.loading || states.queryError ? (loading()) : (h("div", { class: sheet$9.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
1901
2913
  var _a, _b, _c, _d, _e;
1902
2914
  const style = {
1903
2915
  boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
@@ -1906,7 +2918,7 @@ function RewardExchangeView(props) {
1906
2918
  borderRadius: "4px",
1907
2919
  };
1908
2920
  return (h("div", { key: item.key, style: style },
1909
- h("sl-card", { class: sheet.classes.Card, style: {
2921
+ h("sl-card", { class: sheet$9.classes.Card, style: {
1910
2922
  cursor: item.unavailableReasonCode
1911
2923
  ? "not-allowed"
1912
2924
  : "pointer",
@@ -1923,14 +2935,14 @@ function RewardExchangeView(props) {
1923
2935
  ? "rgba(0, 0, 0, 0.05)"
1924
2936
  : "rgba(0, 0, 0, 0)",
1925
2937
  } },
1926
- h("div", { class: sheet.classes.Image, style: {
2938
+ h("div", { class: sheet$9.classes.Image, style: {
1927
2939
  opacity: item.unavailableReasonCode ? "0.5" : "1",
1928
2940
  } },
1929
2941
  h("img", { class: item.unavailableReasonCode
1930
2942
  ? "image subdued"
1931
2943
  : "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
1932
2944
  getAssetPath("./assets/Reward-image.png") })),
1933
- h("div", { class: sheet.classes.TextArea, style: {
2945
+ h("div", { class: sheet$9.classes.TextArea, style: {
1934
2946
  opacity: item.unavailableReasonCode ? "0.5" : "1",
1935
2947
  } },
1936
2948
  h("div", { class: "title", style: {
@@ -1963,7 +2975,7 @@ function RewardExchangeView(props) {
1963
2975
  item.prettySourceMinValue,
1964
2976
  }))))))));
1965
2977
  }))),
1966
- h("div", { class: sheet.classes.Button },
2978
+ h("div", { class: sheet$9.classes.Button },
1967
2979
  h("sl-button", { class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
1968
2980
  ];
1969
2981
  }
@@ -1973,30 +2985,26 @@ function RewardExchangeView(props) {
1973
2985
  const isDisabled = ((_a = states.selectedItem) === null || _a === void 0 ? void 0 : _a.ruleType) === "FIXED_GLOBAL_REWARD"
1974
2986
  ? false
1975
2987
  : input && !states.amount;
1976
- console.log("input", input);
1977
- console.log(states.amount);
1978
2988
  return (h("div", null,
1979
- h("div", { class: sheet.classes.ChooseAmount },
2989
+ h("div", { class: sheet$9.classes.ChooseAmount },
1980
2990
  h("div", { class: "wrapper" },
1981
2991
  h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
1982
2992
  getAssetPath("./assets/Reward-image.png") }),
1983
2993
  h("div", { class: "text" },
1984
2994
  h("div", { class: "title" }, (_b = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.name) !== null && _b !== void 0 ? _b : ""),
1985
2995
  ((_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)),
1986
- ((_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", { class: "points" }, input)),
1987
- h("div", { class: "space" }),
1988
- h("div", { class: sheet.classes.Button },
1989
- h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
1990
- h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))))));
2996
+ ((_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)),
2997
+ h("div", { class: "space" }))),
2998
+ h("div", { class: sheet$9.classes.Button },
2999
+ h("sl-button", { class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
3000
+ h("sl-button", { class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
1991
3001
  }
1992
3002
  function confirmation() {
1993
- // console.log(selectedItem);
1994
- // console.log(selectedStep);
1995
3003
  const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
1996
3004
  const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
1997
3005
  return (h("div", null,
1998
- h("h2", { style: { margin: "var(--sl-spacing-large) 0", textAlign: "center" } }, states.content.text.redeemTitle),
1999
- h("div", { class: sheet.classes.Confirmation },
3006
+ h("div", { class: sheet$9.classes.Confirmation },
3007
+ h("div", { class: sheet$9.classes.Title }, states.content.text.redeemTitle),
2000
3008
  h("div", { class: "wrapper" },
2001
3009
  h("div", { class: "field" }, states.content.text.rewardNameTitle),
2002
3010
  h("div", { class: "reward-item-container" },
@@ -2011,34 +3019,28 @@ function RewardExchangeView(props) {
2011
3019
  h("div", { class: "wrapper top-border padding" },
2012
3020
  h("div", { class: "field" }, states.content.text.costTitle),
2013
3021
  h("div", { class: "value" }, cost)),
2014
- h("div", { class: sheet.classes.Button },
3022
+ h("div", { class: sheet$9.classes.Button },
2015
3023
  h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
2016
3024
  h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
2017
3025
  }
2018
3026
  function success() {
2019
- var _a, _b, _c, _d, _e;
2020
- // console.log("success");
2021
- return (h("div", { class: sheet.classes.Success },
3027
+ var _a, _b, _c, _d, _e, _f;
3028
+ return (h("div", { class: sheet$9.classes.Success },
2022
3029
  h(Gift$1, null),
2023
3030
  h(Confetti, null),
2024
- h("div", { class: "title" }, states.content.text.rewardRedeemedText),
3031
+ h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
2025
3032
  h("div", { class: "description" }, intl.formatMessage({
2026
3033
  id: "successMessage",
2027
3034
  defaultMessage: states.content.text.redemptionSuccessText,
2028
3035
  }, {
2029
- sourceValue: (_a = states.selectedItem.prettySourceValue) !== null && _a !== void 0 ? _a : (_b = states.selectedStep) === null || _b === void 0 ? void 0 : _b.prettySourceValue,
2030
- destinationValue: ((_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettyDestinationValue) || ((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.name) ||
3036
+ sourceValue: (_b = states.selectedItem.prettySourceValue) !== null && _b !== void 0 ? _b : (_c = states.selectedStep) === null || _c === void 0 ? void 0 : _c.prettySourceValue,
3037
+ destinationValue: ((_d = states.selectedStep) === null || _d === void 0 ? void 0 : _d.prettyDestinationValue) || ((_e = states.selectedItem) === null || _e === void 0 ? void 0 : _e.name) ||
2031
3038
  states.selectedItem.globalRewardKey,
2032
3039
  })),
2033
- (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { style: {
2034
- width: "40%",
2035
- margin: "-30px auto var(--sl-spacing-xxx-large) auto",
2036
- textAlign: "left",
2037
- color: "var(--sl-color-neutral-700)",
2038
- } },
3040
+ (data === null || data === void 0 ? void 0 : data.fuelTankCode) && (h("div", { class: "promo" },
2039
3041
  states.content.text.promoCode,
2040
- h(ShareLinkView, { shareString: data.fuelTankCode, tooltiptext: (_e = states === null || states === void 0 ? void 0 : states.content) === null || _e === void 0 ? void 0 : _e.text.toopTipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
2041
- h("div", { class: sheet.classes.Button },
3042
+ h(ShareLinkView, { shareString: 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 }))),
3043
+ h("div", { class: sheet$9.classes.Button },
2042
3044
  h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
2043
3045
  }
2044
3046
  const stages = {
@@ -2050,7 +3052,7 @@ function RewardExchangeView(props) {
2050
3052
  const currentStage = stages[states.redeemStage];
2051
3053
  function stageMap() {
2052
3054
  const stageNumber = stageList.indexOf(states.redeemStage);
2053
- return (h("div", { class: sheet.classes.ProgressBar },
3055
+ return (h("div", { class: sheet$9.classes.ProgressBar },
2054
3056
  h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
2055
3057
  if (stageList.indexOf(stage) <= stageNumber) {
2056
3058
  return h("span", { class: "text" }, stageProgressList[stage]);
@@ -2062,10 +3064,10 @@ function RewardExchangeView(props) {
2062
3064
  h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
2063
3065
  }
2064
3066
  function loading() {
2065
- return (h("div", { class: sheet.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
3067
+ return (h("div", { class: sheet$9.classes.Grid }, [...Array(states.content.text.skeletonCardNum)].map(() => {
2066
3068
  return (h("div", null,
2067
- h("sl-card", { class: sheet.classes.Card },
2068
- h("div", { class: sheet.classes.CardLayout },
3069
+ h("sl-card", { class: sheet$9.classes.Card },
3070
+ h("div", { class: sheet$9.classes.CardLayout },
2069
3071
  h("div", null,
2070
3072
  h("sl-skeleton", { style: {
2071
3073
  width: "100px",
@@ -2097,23 +3099,24 @@ function RewardExchangeView(props) {
2097
3099
  if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
2098
3100
  return;
2099
3101
  refs.canvasRef.current = canvas;
2100
- }, id: "my-canvas", class: sheet.classes.Confetti }));
3102
+ }, id: "my-canvas", class: sheet$9.classes.Confetti }));
2101
3103
  }
2102
- return (h("div", { class: sheet.classes.Container },
2103
- h("style", { type: "text/css" }, styleString),
3104
+ if (states.noExchangeOptions)
3105
+ return states.content.text.empty;
3106
+ return (h("div", { class: sheet$9.classes.Container },
3107
+ h("style", { type: "text/css" }, styleString$9),
2104
3108
  h("div", null,
2105
3109
  stageMap(),
2106
3110
  states.exchangeError && errorMessage(),
2107
- states.queryError && queryErrorMessage(),
3111
+ states.queryError && !states.exchangeError && queryErrorMessage(),
2108
3112
  currentStage && currentStage(),
2109
3113
  states.redeemStage === "success")));
2110
3114
  }
2111
3115
 
2112
- const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
3116
+ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, exchangeError = false, loading = false, fueltank = null, noExchangeOptions = false, queryError = false) => ({
2113
3117
  states: {
2114
3118
  content: {
2115
3119
  text: {
2116
- buttonText: "Exchange Rewards",
2117
3120
  notAvailableError: "{unavailableReasonCode, select, NOT_CHAMPION {CUSTOM ERROR MESSAGE } US_TAX {Exceeds tax limit for this year} INSUFFICIENT_REDEEMABLE_CREDIT {{sourceValue} required} AVAILABILITY_PREDICATE {Not available} other {unavailableReasonCode} }",
2118
3121
  chooseRewardTitle: "Rewards",
2119
3122
  chooseAmountTitle: "Select",
@@ -2127,24 +3130,29 @@ const baseResponse = (data, stage = "chooseReward", selectedItem = null, selecte
2127
3130
  redeemTitle: "Confirm and redeem",
2128
3131
  redemptionSuccessText: "Redeemed {sourceValue} for {destinationValue}",
2129
3132
  doneText: "Done",
2130
- toolTipText: "Copied!",
3133
+ tooltipText: "Copied!",
2131
3134
  selectText: "Select amount to receive",
2132
3135
  sourceAmountMessage: "{ruleType, select, FIXED_GLOBAL_REWARD {{sourceValue}} other {{sourceMinValue} to {sourceMaxValue}}}",
2133
3136
  rewardRedeemedText: "Reward redeemed",
2134
3137
  redemptionError: "An error occured trying to redeem this reward. Please try again",
3138
+ queryError: "Unable to load reward exchange list. Please try again",
2135
3139
  promoCode: "Promo code",
2136
3140
  skeletonCardNum: 8,
2137
3141
  rewardNameTitle: "Reward Name",
2138
3142
  rewardAmountTitle: "Reward Amount",
2139
3143
  costTitle: "Cost",
3144
+ notEnoughError: "Sorry not enough!",
3145
+ empty: (h("sqm-empty", { emptyStateImage: "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png", emptyStateHeader: "Redeem rewards", emptyStateText: "Use your points to redeem rewards once they become available" })),
2140
3146
  },
2141
3147
  },
3148
+ queryError: queryError,
2142
3149
  redeemStage: stage,
2143
3150
  amount: 0,
2144
- exchangeError: error,
3151
+ exchangeError: exchangeError,
2145
3152
  loading: loading,
2146
3153
  selectedItem: selectedItem,
2147
3154
  selectedStep: selectedStep,
3155
+ noExchangeOptions: noExchangeOptions,
2148
3156
  open: false,
2149
3157
  },
2150
3158
  data: {
@@ -2229,19 +3237,19 @@ const demoData = [
2229
3237
  ...baseReward,
2230
3238
  ...selected,
2231
3239
  ...name("Visa® Prepaid Card USD"),
2232
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3240
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2233
3241
  ...variableValue(20, 80, "Points"),
2234
3242
  },
2235
3243
  {
2236
3244
  ...baseReward,
2237
3245
  ...name("$50 Store credit"),
2238
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829222/tenant_test_a7iws76wkk4az/wvxtrsytmr4h1ozhxspv.png"),
3246
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),
2239
3247
  ...fixedValue("100 Points"),
2240
3248
  },
2241
3249
  {
2242
3250
  ...baseReward,
2243
3251
  ...name("Variable amount of store credit"),
2244
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829263/tenant_test_a7iws76wkk4az/dbo8tb4qpwmhg5iudviq.png"),
3252
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000240/squatch-assets/Jn2fE0s.png"),
2245
3253
  ...variableValue(20, 100, "Points"),
2246
3254
  },
2247
3255
  ];
@@ -2256,46 +3264,46 @@ const data = [
2256
3264
  ...baseReward,
2257
3265
  ...selected,
2258
3266
  ...name("Visa® Prepaid Card USD"),
2259
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3267
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2260
3268
  ...variableValue(20, 80, "Points"),
2261
3269
  },
2262
3270
  {
2263
3271
  ...baseReward,
2264
3272
  ...name("A very exclusive gift box"),
2265
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829284/tenant_test_a7iws76wkk4az/cognmlwma874b5q94hqv.png"),
3273
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/93BvEgH.png"),
2266
3274
  ...fixedValue("30 SaaSquatch Points"),
2267
3275
  },
2268
3276
  {
2269
3277
  ...baseReward,
2270
3278
  ...name("$50 Store credit"),
2271
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829222/tenant_test_a7iws76wkk4az/wvxtrsytmr4h1ozhxspv.png"),
3279
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),
2272
3280
  ...fixedValue("100 SaaSquatch Points"),
2273
3281
  },
2274
3282
  {
2275
3283
  ...baseReward,
2276
3284
  ...name("Variable amount of store credit"),
2277
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829263/tenant_test_a7iws76wkk4az/dbo8tb4qpwmhg5iudviq.png"),
3285
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000240/squatch-assets/Jn2fE0s.png"),
2278
3286
  ...variableValue(20, 100, "Points"),
2279
3287
  },
2280
3288
  {
2281
3289
  ...baseReward,
2282
3290
  ...notEnoughPoints,
2283
3291
  ...name("A very rare cactus"),
2284
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829341/tenant_test_a7iws76wkk4az/lgrlweifpsekh2y4zjih.png"),
3292
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000224/squatch-assets/hhlF2Ey.png"),
2285
3293
  ...fixedValue("2000 SaaSquatch Points"),
2286
3294
  },
2287
3295
  {
2288
3296
  ...baseReward,
2289
3297
  ...usTax,
2290
3298
  ...name("$1000 Store credit with a really super long name in the front page"),
2291
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829384/tenant_test_a7iws76wkk4az/f0dzeyrx3hojncbgim8y.png"),
3299
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000273/squatch-assets/y9HSls1.png"),
2292
3300
  ...fixedValue("2000 SaaSquatch Long Points"),
2293
3301
  },
2294
3302
  {
2295
3303
  ...baseReward,
2296
3304
  ...notEnoughPoints,
2297
3305
  ...name("A holiday gift box"),
2298
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829450/tenant_test_a7iws76wkk4az/ujzfhfkvwqb02dlgjx6q.png"),
3306
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/dWEdB3p.png"),
2299
3307
  ...fixedValue("100 SaaSquatch Points"),
2300
3308
  },
2301
3309
  ];
@@ -2311,19 +3319,19 @@ const rewardExchangeLongText = {
2311
3319
  ...baseReward,
2312
3320
  ...notEnoughPoints,
2313
3321
  ...name("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2314
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829450/tenant_test_a7iws76wkk4az/ujzfhfkvwqb02dlgjx6q.png"),
3322
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/dWEdB3p.png"),
2315
3323
  ...fixedValue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2316
3324
  },
2317
3325
  {
2318
3326
  ...baseReward,
2319
3327
  ...name("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2320
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829384/tenant_test_a7iws76wkk4az/f0dzeyrx3hojncbgim8y.png"),
3328
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000273/squatch-assets/y9HSls1.png"),
2321
3329
  ...fixedValue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2322
3330
  },
2323
3331
  {
2324
3332
  ...baseReward,
2325
3333
  ...name("Suuuuuuuuper aweeeeesssssoooommme reward!!!!!!"),
2326
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829222/tenant_test_a7iws76wkk4az/wvxtrsytmr4h1ozhxspv.png"),
3334
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000270/squatch-assets/WkCMVSE.png"),
2327
3335
  ...fixedValue("Lorem ipsum dolor sit amet consectetur adipisicing elit. Sunt ratione a itaque non obcaecati iste, amet repudiandae at consequatur adipisci culpa nam, incidunt exercitationem aliquid."),
2328
3336
  },
2329
3337
  ...data,
@@ -2335,7 +3343,7 @@ const rewardExchangeCustomErrorMsg = {
2335
3343
  ...baseReward,
2336
3344
  ...customError,
2337
3345
  ...name("A very rare cactus"),
2338
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829341/tenant_test_a7iws76wkk4az/lgrlweifpsekh2y4zjih.png"),
3346
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000224/squatch-assets/hhlF2Ey.png"),
2339
3347
  ...fixedValue("2000 SaaSquatch Points"),
2340
3348
  },
2341
3349
  ...data,
@@ -2346,7 +3354,7 @@ const rewardExchangeSelected = {
2346
3354
  ...baseReward,
2347
3355
  ...selected,
2348
3356
  ...name("Visa® Prepaid Card USD"),
2349
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3357
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2350
3358
  ...variableValue(20, 80, "Points"),
2351
3359
  }),
2352
3360
  };
@@ -2362,7 +3370,7 @@ const chooseAmountVariable = {
2362
3370
  ...baseResponse(data, "chooseAmount", {
2363
3371
  ...baseReward,
2364
3372
  ...name("Visa® Prepaid Card USD"),
2365
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3373
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2366
3374
  ...variableValue(20, 80, "Points"),
2367
3375
  steps: [
2368
3376
  baseStep(20, "$", 40, "Points"),
@@ -2393,7 +3401,7 @@ const chooseAmountVariableDisabled = {
2393
3401
  ...baseResponse(data, "chooseAmount", {
2394
3402
  ...baseReward,
2395
3403
  ...name("Visa® Prepaid Card USD"),
2396
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3404
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2397
3405
  ...variableValue(20, 80, "Points"),
2398
3406
  steps: [
2399
3407
  baseStep(20, "$", 40, "Points"),
@@ -2408,7 +3416,7 @@ const chooseAmountVariableUnavailable = {
2408
3416
  ...baseResponse(data, "chooseAmount", {
2409
3417
  ...baseReward,
2410
3418
  ...name("Visa® Prepaid Card USD"),
2411
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3419
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2412
3420
  ...variableValue(20, 80, "Points"),
2413
3421
  steps: [
2414
3422
  baseStep(20, "$", 40, "Points"),
@@ -2423,7 +3431,7 @@ const chooseAmountFixed = {
2423
3431
  ...baseResponse(data, "chooseAmount", {
2424
3432
  ...baseReward,
2425
3433
  ...name("Free swag with a promo code"),
2426
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829486/tenant_test_a7iws76wkk4az/xtptk0dynrxxlkg0dctb.png"),
3434
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),
2427
3435
  ...fixedValue("40 SaaSquatch Points"),
2428
3436
  }),
2429
3437
  };
@@ -2440,7 +3448,7 @@ const confirmFixed = {
2440
3448
  ...baseResponse(data, "confirmation", {
2441
3449
  ...baseReward,
2442
3450
  ...name("Free swag with a promo code"),
2443
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829486/tenant_test_a7iws76wkk4az/xtptk0dynrxxlkg0dctb.png"),
3451
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),
2444
3452
  ...fixedValue("40 SaaSquatch Points"),
2445
3453
  }),
2446
3454
  };
@@ -2448,23 +3456,26 @@ const confirmVariable = {
2448
3456
  ...baseResponse(data, "confirmation", {
2449
3457
  ...baseReward,
2450
3458
  ...name("Visa® Prepaid Card USD"),
2451
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3459
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2452
3460
  ...variableValue(20, 80, "Points"),
2453
3461
  }, baseStep(20, "$", 40, "Points")),
2454
3462
  };
2455
- const error = {
3463
+ const redemptionError = {
2456
3464
  ...baseResponse(data, "confirmation", {
2457
3465
  ...baseReward,
2458
3466
  ...name("Visa® Prepaid Card USD"),
2459
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829161/tenant_test_a7iws76wkk4az/lmzj1rtxchiyquvazo5k.png"),
3467
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000268/squatch-assets/veHErQX.png"),
2460
3468
  ...variableValue(20, 80, "Points"),
2461
3469
  }, baseStep(20, "$", 40, "Points"), true),
2462
3470
  };
3471
+ const queryError = {
3472
+ ...baseResponse(undefined, "chooseReward", undefined, undefined, undefined, undefined, undefined, undefined, true),
3473
+ };
2463
3474
  const success = {
2464
3475
  ...baseResponse(data, "success", {
2465
3476
  ...baseReward,
2466
3477
  ...name("Free swag with a promo code"),
2467
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829486/tenant_test_a7iws76wkk4az/xtptk0dynrxxlkg0dctb.png"),
3478
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000252/squatch-assets/n7vC4BR.png"),
2468
3479
  ...fixedValue("40 SaaSquatch Points"),
2469
3480
  }, undefined, undefined, undefined, "4ah2-hh46-gk7r"),
2470
3481
  };
@@ -2472,15 +3483,19 @@ const successVariable = {
2472
3483
  ...baseResponse(data, "success", {
2473
3484
  ...baseReward,
2474
3485
  ...name("Visa® Prepaid Card USD"),
2475
- ...imageUrl("https://res.cloudinary.com/saasquatch-staging/image/upload/v1643829284/tenant_test_a7iws76wkk4az/cognmlwma874b5q94hqv.png"),
3486
+ ...imageUrl("https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/93BvEgH.png"),
2476
3487
  ...variableValue(20, 80, "Points"),
2477
3488
  }, baseStep(20, "$", 40, "Points")),
2478
3489
  };
2479
3490
  const loading = {
2480
3491
  ...baseResponse(null, "chooseReward", null, null, false, true),
3492
+ };
3493
+ const empty = {
3494
+ ...baseResponse(null, "chooseReward", null, null, false, false, null, true),
2481
3495
  };
2482
3496
 
2483
3497
  function CardFeedView(props, children) {
3498
+ // Dependent on props, not feasiable to move out
2484
3499
  const style = {
2485
3500
  Container: {
2486
3501
  columnGap: props.gap + "px",
@@ -2492,7 +3507,6 @@ function CardFeedView(props, children) {
2492
3507
  };
2493
3508
  const sheet = createStyleSheet(style);
2494
3509
  const styleString = sheet.toString();
2495
- console.log(props);
2496
3510
  const vanillaStyle = `
2497
3511
  :host{
2498
3512
  display: block;
@@ -2591,4 +3605,4 @@ const ShadowViewAddon = ({ story }, children) => {
2591
3605
  h(TagName, { "stencilbook-shadow-view": randomInt })));
2592
3606
  };
2593
3607
 
2594
- export { withShadowView as A, demoRewardExchange as B, CardFeedView as C, EditProfileView as E, LeaderboardView as L, PortalFrameView as P, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, ShareLinkView as a, useShareButton as b, PortalChangePasswordView as c, PortalLoginView as d, PortalRegisterView as e, ProgressBarView as f, RewardExchangeView as g, rewardExchangeLongText as h, rewardExchangeSelected as i, chooseAmountFixed as j, chooseAmountFixedNoDescription as k, chooseAmountVariable as l, chooseAmountVariableNoDescription as m, chooseAmountVariableDisabled as n, chooseAmountVariableUnavailable as o, confirmFixed as p, confirmVariable as q, rewardExchangeCustomErrorMsg as r, error as s, success as t, useShareLink as u, successVariable as v, loading as w, rewardExchange as x, autoColorScaleCss as y, ShadowViewAddon as z };
3608
+ export { empty as A, BigStatView as B, rewardExchange as C, CardFeedView as D, EditProfileView as E, autoColorScaleCss as F, ShadowViewAddon as G, useBigStat as H, withShadowView as I, demoRewardExchange as J, pathToRegexp as K, LeaderboardView as L, PortalFrameView as P, ReferralIframeView as R, ShareButtonView as S, TaskCardView as T, ShareLinkView as a, useShareButton as b, useDemoBigStat as c, StatContainerView as d, PortalChangePasswordView as e, PortalLoginView as f, PortalRegisterView as g, ProgressBarView as h, RewardExchangeView as i, rewardExchangeLongText as j, rewardExchangeSelected as k, chooseAmountFixed as l, chooseAmountFixedNoDescription as m, chooseAmountVariable as n, chooseAmountVariableNoDescription as o, chooseAmountVariableDisabled as p, chooseAmountVariableUnavailable as q, rewardExchangeCustomErrorMsg as r, confirmFixed as s, confirmVariable as t, useShareLink as u, redemptionError as v, queryError as w, success as x, successVariable as y, loading as z };